docs: Mintlify MDX docs + docs.json; bump Speakeasy to 1.787.0 (#382)

This commit is contained in:
Matt Apperson
2026-06-30 16:13:28 -04:00
committed by GitHub
parent 778e2e36fb
commit babeffc9aa
2100 changed files with 50407 additions and 16612 deletions
+84 -41
View File
@@ -1,9 +1,8 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from typing import TYPE_CHECKING
from importlib import import_module
import builtins
import sys
from typing import Any, TYPE_CHECKING
from openrouter.utils.dynamic_imports import lazy_getattr, lazy_dir
if TYPE_CHECKING:
from .aabenchmarkentry import AABenchmarkEntry, AABenchmarkEntryTypedDict
@@ -204,6 +203,7 @@ if TYPE_CHECKING:
from .applypatchcalloperation import (
ApplyPatchCallOperation,
ApplyPatchCallOperationTypedDict,
UnknownApplyPatchCallOperation,
)
from .applypatchcalloperationdiffdeltaevent import (
ApplyPatchCallOperationDiffDeltaEvent,
@@ -289,6 +289,7 @@ if TYPE_CHECKING:
BaseInputsUnion1,
BaseInputsUnion1TypedDict,
BaseInputsUnionTypedDict,
UnknownBaseInputsContent1,
)
from .basereasoningconfig import BaseReasoningConfig, BaseReasoningConfigTypedDict
from .bashservertool import (
@@ -363,6 +364,7 @@ if TYPE_CHECKING:
from .capabilitydescriptor import (
CapabilityDescriptor,
CapabilityDescriptorTypedDict,
UnknownCapabilityDescriptor,
)
from .chatassistantimages import (
ChatAssistantImages,
@@ -406,7 +408,11 @@ if TYPE_CHECKING:
ChatContentImageType,
ChatContentImageTypedDict,
)
from .chatcontentitems import ChatContentItems, ChatContentItemsTypedDict
from .chatcontentitems import (
ChatContentItems,
ChatContentItemsTypedDict,
UnknownChatContentItems,
)
from .chatcontenttext import (
ChatContentText,
ChatContentTextType,
@@ -646,6 +652,7 @@ if TYPE_CHECKING:
ContentPartAddedEventPartTypedDict,
ContentPartAddedEventType,
ContentPartAddedEventTypedDict,
UnknownContentPartAddedEventPart,
)
from .contentpartaudio import (
AudioURL,
@@ -660,6 +667,7 @@ if TYPE_CHECKING:
ContentPartDoneEventPartTypedDict,
ContentPartDoneEventType,
ContentPartDoneEventTypedDict,
UnknownContentPartDoneEventPart,
)
from .contentpartimage import (
ContentPartImage,
@@ -747,6 +755,7 @@ if TYPE_CHECKING:
FormatTypeText,
FormatTypedDict,
Syntax,
UnknownFormat,
)
from .customtoolcallinputdeltaevent import (
CustomToolCallInputDeltaEvent,
@@ -898,7 +907,7 @@ if TYPE_CHECKING:
FormatJSONSchemaConfigType,
FormatJSONSchemaConfigTypedDict,
)
from .formats import Formats, FormatsTypedDict
from .formats import Formats, FormatsTypedDict, UnknownFormats
from .formattextconfig import (
FormatTextConfig,
FormatTextConfigType,
@@ -1186,6 +1195,7 @@ if TYPE_CHECKING:
ImageStreamingResponseData,
ImageStreamingResponseDataTypedDict,
ImageStreamingResponseTypedDict,
UnknownImageStreamingResponseData,
)
from .incompletedetails import IncompleteDetails, IncompleteDetailsTypedDict, Reason
from .inputaudio import (
@@ -1585,6 +1595,7 @@ if TYPE_CHECKING:
from .observabilitydestination import (
ObservabilityDestination,
ObservabilityDestinationTypedDict,
UnknownObservabilityDestination,
)
from .observabilityfilterrulesconfig import (
FieldT,
@@ -1705,6 +1716,7 @@ if TYPE_CHECKING:
OpenAIResponseCustomToolCallOutputOutput2TypedDict,
OpenAIResponseCustomToolCallOutputType,
OpenAIResponseCustomToolCallOutputTypedDict,
UnknownOpenAIResponseCustomToolCallOutputOutput1,
)
from .openairesponsefunctiontoolcall import (
OpenAIResponseFunctionToolCall,
@@ -1720,6 +1732,7 @@ if TYPE_CHECKING:
OpenAIResponseFunctionToolCallOutputStatus,
OpenAIResponseFunctionToolCallOutputType,
OpenAIResponseFunctionToolCallOutputTypedDict,
UnknownOpenAIResponseFunctionToolCallOutputOutput1,
)
from .openairesponseinputmessageitem import (
OpenAIResponseInputMessageItem,
@@ -1732,10 +1745,12 @@ if TYPE_CHECKING:
OpenAIResponseInputMessageItemRoleUser,
OpenAIResponseInputMessageItemType,
OpenAIResponseInputMessageItemTypedDict,
UnknownOpenAIResponseInputMessageItemContent,
)
from .openairesponsesannotation import (
OpenAIResponsesAnnotation,
OpenAIResponsesAnnotationTypedDict,
UnknownOpenAIResponsesAnnotation,
)
from .openairesponsesrefusalcontent import (
OpenAIResponsesRefusalContent,
@@ -1785,6 +1800,7 @@ if TYPE_CHECKING:
OpenResponsesResultToolUnionTypedDict,
OpenResponsesResultType,
OpenResponsesResultTypedDict,
UnknownOpenResponsesResultToolUnion,
)
from .openroutermetadata import OpenRouterMetadata, OpenRouterMetadataTypedDict
from .openrouterwebsearchservertool import (
@@ -1829,6 +1845,7 @@ if TYPE_CHECKING:
OutputLogsTypedDict,
TypeCodeInterpreterCall,
TypeLogs,
UnknownOutputCodeInterpreterCallItemOutputUnion,
)
from .outputcodeinterpreterservertoolitem import (
OutputCodeInterpreterServerToolItem,
@@ -1897,7 +1914,7 @@ if TYPE_CHECKING:
OutputItemImageGenerationCallType,
OutputItemImageGenerationCallTypedDict,
)
from .outputitems import OutputItems, OutputItemsTypedDict
from .outputitems import OutputItems, OutputItemsTypedDict, UnknownOutputItems
from .outputmcpservertoolitem import (
OutputMcpServerToolItem,
OutputMcpServerToolItemType,
@@ -1925,6 +1942,7 @@ if TYPE_CHECKING:
OutputMessageStatusUnionTypedDict,
OutputMessageType,
OutputMessageTypedDict,
UnknownOutputMessageContent,
)
from .outputmessageitem import (
OutputMessageItem,
@@ -1942,6 +1960,7 @@ if TYPE_CHECKING:
OutputMessageItemStatusUnionTypedDict,
OutputMessageItemType,
OutputMessageItemTypedDict,
UnknownOutputMessageItemContent,
)
from .outputmodality import OutputModality
from .outputmodalityenum import OutputModalityEnum
@@ -1981,6 +2000,7 @@ if TYPE_CHECKING:
OutputShellCallOutputItemTypedDict,
TypeExit,
TypeTimeout,
UnknownOutcome,
)
from .outputsubagentservertoolitem import (
OutputSubagentServerToolItem,
@@ -2018,6 +2038,7 @@ if TYPE_CHECKING:
TypeFindInPage,
TypeOpenPage,
TypeWebSearchCall,
UnknownAction,
)
from .outputwebsearchservertoolitem import (
OutputWebSearchServerToolItem,
@@ -2175,6 +2196,7 @@ if TYPE_CHECKING:
from .reasoningdetailunion import (
ReasoningDetailUnion,
ReasoningDetailUnionTypedDict,
UnknownReasoningDetailUnion,
)
from .reasoningdoneevent import (
ReasoningDoneEvent,
@@ -2366,7 +2388,7 @@ if TYPE_CHECKING:
Variables,
VariablesTypedDict,
)
from .streamevents import StreamEvents, StreamEventsTypedDict
from .streamevents import StreamEvents, StreamEventsTypedDict, UnknownStreamEvents
from .streameventsresponsecompleted import (
StreamEventsResponseCompleted,
StreamEventsResponseCompletedType,
@@ -2498,6 +2520,7 @@ if TYPE_CHECKING:
UnifiedBenchmarksResponseData,
UnifiedBenchmarksResponseDataTypedDict,
UnifiedBenchmarksResponseTypedDict,
UnknownUnifiedBenchmarksResponseData,
)
from .unprocessableentityresponseerrordata import (
UnprocessableEntityResponseErrorData,
@@ -4528,6 +4551,30 @@ __all__ = [
"UniqueInsight",
"UniqueInsightTypedDict",
"Unit",
"UnknownAction",
"UnknownApplyPatchCallOperation",
"UnknownBaseInputsContent1",
"UnknownCapabilityDescriptor",
"UnknownChatContentItems",
"UnknownContentPartAddedEventPart",
"UnknownContentPartDoneEventPart",
"UnknownFormat",
"UnknownFormats",
"UnknownImageStreamingResponseData",
"UnknownObservabilityDestination",
"UnknownOpenAIResponseCustomToolCallOutputOutput1",
"UnknownOpenAIResponseFunctionToolCallOutputOutput1",
"UnknownOpenAIResponseInputMessageItemContent",
"UnknownOpenAIResponsesAnnotation",
"UnknownOpenResponsesResultToolUnion",
"UnknownOutcome",
"UnknownOutputCodeInterpreterCallItemOutputUnion",
"UnknownOutputItems",
"UnknownOutputMessageContent",
"UnknownOutputMessageItemContent",
"UnknownReasoningDetailUnion",
"UnknownStreamEvents",
"UnknownUnifiedBenchmarksResponseData",
"UnprocessableEntityResponseErrorData",
"UnprocessableEntityResponseErrorDataTypedDict",
"UpdateBYOKKeyRequest",
@@ -4768,6 +4815,7 @@ _dynamic_imports: dict[str, str] = {
"ApplyPatchCallItemTypedDict": ".applypatchcallitem",
"ApplyPatchCallOperation": ".applypatchcalloperation",
"ApplyPatchCallOperationTypedDict": ".applypatchcalloperation",
"UnknownApplyPatchCallOperation": ".applypatchcalloperation",
"ApplyPatchCallOperationDiffDeltaEvent": ".applypatchcalloperationdiffdeltaevent",
"ApplyPatchCallOperationDiffDeltaEventType": ".applypatchcalloperationdiffdeltaevent",
"ApplyPatchCallOperationDiffDeltaEventTypedDict": ".applypatchcalloperationdiffdeltaevent",
@@ -4829,6 +4877,7 @@ _dynamic_imports: dict[str, str] = {
"BaseInputsUnion1": ".baseinputs_union",
"BaseInputsUnion1TypedDict": ".baseinputs_union",
"BaseInputsUnionTypedDict": ".baseinputs_union",
"UnknownBaseInputsContent1": ".baseinputs_union",
"BaseReasoningConfig": ".basereasoningconfig",
"BaseReasoningConfigTypedDict": ".basereasoningconfig",
"BashServerTool": ".bashservertool",
@@ -4871,6 +4920,7 @@ _dynamic_imports: dict[str, str] = {
"BYOKProviderSlug": ".byokproviderslug",
"CapabilityDescriptor": ".capabilitydescriptor",
"CapabilityDescriptorTypedDict": ".capabilitydescriptor",
"UnknownCapabilityDescriptor": ".capabilitydescriptor",
"ChatAssistantImages": ".chatassistantimages",
"ChatAssistantImagesImageURL": ".chatassistantimages",
"ChatAssistantImagesImageURLTypedDict": ".chatassistantimages",
@@ -4905,6 +4955,7 @@ _dynamic_imports: dict[str, str] = {
"ChatContentImageTypedDict": ".chatcontentimage",
"ChatContentItems": ".chatcontentitems",
"ChatContentItemsTypedDict": ".chatcontentitems",
"UnknownChatContentItems": ".chatcontentitems",
"ChatContentText": ".chatcontenttext",
"ChatContentTextType": ".chatcontenttext",
"ChatContentTextTypedDict": ".chatcontenttext",
@@ -5079,6 +5130,7 @@ _dynamic_imports: dict[str, str] = {
"ContentPartAddedEventPartTypedDict": ".contentpartaddedevent",
"ContentPartAddedEventType": ".contentpartaddedevent",
"ContentPartAddedEventTypedDict": ".contentpartaddedevent",
"UnknownContentPartAddedEventPart": ".contentpartaddedevent",
"AudioURL": ".contentpartaudio",
"AudioURLTypedDict": ".contentpartaudio",
"ContentPartAudio": ".contentpartaudio",
@@ -5089,6 +5141,7 @@ _dynamic_imports: dict[str, str] = {
"ContentPartDoneEventPartTypedDict": ".contentpartdoneevent",
"ContentPartDoneEventType": ".contentpartdoneevent",
"ContentPartDoneEventTypedDict": ".contentpartdoneevent",
"UnknownContentPartDoneEventPart": ".contentpartdoneevent",
"ContentPartImage": ".contentpartimage",
"ContentPartImageImageURL": ".contentpartimage",
"ContentPartImageImageURLTypedDict": ".contentpartimage",
@@ -5145,6 +5198,7 @@ _dynamic_imports: dict[str, str] = {
"FormatTypeText": ".customtool",
"FormatTypedDict": ".customtool",
"Syntax": ".customtool",
"UnknownFormat": ".customtool",
"CustomToolCallInputDeltaEvent": ".customtoolcallinputdeltaevent",
"CustomToolCallInputDeltaEventType": ".customtoolcallinputdeltaevent",
"CustomToolCallInputDeltaEventTypedDict": ".customtoolcallinputdeltaevent",
@@ -5268,6 +5322,7 @@ _dynamic_imports: dict[str, str] = {
"FormatJSONSchemaConfigTypedDict": ".formatjsonschemaconfig",
"Formats": ".formats",
"FormatsTypedDict": ".formats",
"UnknownFormats": ".formats",
"FormatTextConfig": ".formattextconfig",
"FormatTextConfigType": ".formattextconfig",
"FormatTextConfigTypedDict": ".formattextconfig",
@@ -5473,6 +5528,7 @@ _dynamic_imports: dict[str, str] = {
"ImageStreamingResponseData": ".imagestreamingresponse",
"ImageStreamingResponseDataTypedDict": ".imagestreamingresponse",
"ImageStreamingResponseTypedDict": ".imagestreamingresponse",
"UnknownImageStreamingResponseData": ".imagestreamingresponse",
"IncompleteDetails": ".incompletedetails",
"IncompleteDetailsTypedDict": ".incompletedetails",
"Reason": ".incompletedetails",
@@ -5820,6 +5876,7 @@ _dynamic_imports: dict[str, str] = {
"ObservabilityDatadogDestinationTypedDict": ".observabilitydatadogdestination",
"ObservabilityDestination": ".observabilitydestination",
"ObservabilityDestinationTypedDict": ".observabilitydestination",
"UnknownObservabilityDestination": ".observabilitydestination",
"FieldT": ".observabilityfilterrulesconfig",
"Group": ".observabilityfilterrulesconfig",
"GroupTypedDict": ".observabilityfilterrulesconfig",
@@ -5908,6 +5965,7 @@ _dynamic_imports: dict[str, str] = {
"OpenAIResponseCustomToolCallOutputOutput2TypedDict": ".openairesponsecustomtoolcalloutput",
"OpenAIResponseCustomToolCallOutputType": ".openairesponsecustomtoolcalloutput",
"OpenAIResponseCustomToolCallOutputTypedDict": ".openairesponsecustomtoolcalloutput",
"UnknownOpenAIResponseCustomToolCallOutputOutput1": ".openairesponsecustomtoolcalloutput",
"OpenAIResponseFunctionToolCall": ".openairesponsefunctiontoolcall",
"OpenAIResponseFunctionToolCallType": ".openairesponsefunctiontoolcall",
"OpenAIResponseFunctionToolCallTypedDict": ".openairesponsefunctiontoolcall",
@@ -5919,6 +5977,7 @@ _dynamic_imports: dict[str, str] = {
"OpenAIResponseFunctionToolCallOutputStatus": ".openairesponsefunctiontoolcalloutput",
"OpenAIResponseFunctionToolCallOutputType": ".openairesponsefunctiontoolcalloutput",
"OpenAIResponseFunctionToolCallOutputTypedDict": ".openairesponsefunctiontoolcalloutput",
"UnknownOpenAIResponseFunctionToolCallOutputOutput1": ".openairesponsefunctiontoolcalloutput",
"OpenAIResponseInputMessageItem": ".openairesponseinputmessageitem",
"OpenAIResponseInputMessageItemContent": ".openairesponseinputmessageitem",
"OpenAIResponseInputMessageItemContentTypedDict": ".openairesponseinputmessageitem",
@@ -5929,8 +5988,10 @@ _dynamic_imports: dict[str, str] = {
"OpenAIResponseInputMessageItemRoleUser": ".openairesponseinputmessageitem",
"OpenAIResponseInputMessageItemType": ".openairesponseinputmessageitem",
"OpenAIResponseInputMessageItemTypedDict": ".openairesponseinputmessageitem",
"UnknownOpenAIResponseInputMessageItemContent": ".openairesponseinputmessageitem",
"OpenAIResponsesAnnotation": ".openairesponsesannotation",
"OpenAIResponsesAnnotationTypedDict": ".openairesponsesannotation",
"UnknownOpenAIResponsesAnnotation": ".openairesponsesannotation",
"OpenAIResponsesRefusalContent": ".openairesponsesrefusalcontent",
"OpenAIResponsesRefusalContentType": ".openairesponsesrefusalcontent",
"OpenAIResponsesRefusalContentTypedDict": ".openairesponsesrefusalcontent",
@@ -5970,6 +6031,7 @@ _dynamic_imports: dict[str, str] = {
"OpenResponsesResultToolUnionTypedDict": ".openresponsesresult",
"OpenResponsesResultType": ".openresponsesresult",
"OpenResponsesResultTypedDict": ".openresponsesresult",
"UnknownOpenResponsesResultToolUnion": ".openresponsesresult",
"OpenRouterMetadata": ".openroutermetadata",
"OpenRouterMetadataTypedDict": ".openroutermetadata",
"OpenRouterWebSearchServerTool": ".openrouterwebsearchservertool",
@@ -6001,6 +6063,7 @@ _dynamic_imports: dict[str, str] = {
"OutputLogsTypedDict": ".outputcodeinterpretercallitem",
"TypeCodeInterpreterCall": ".outputcodeinterpretercallitem",
"TypeLogs": ".outputcodeinterpretercallitem",
"UnknownOutputCodeInterpreterCallItemOutputUnion": ".outputcodeinterpretercallitem",
"OutputCodeInterpreterServerToolItem": ".outputcodeinterpreterservertoolitem",
"OutputCodeInterpreterServerToolItemType": ".outputcodeinterpreterservertoolitem",
"OutputCodeInterpreterServerToolItemTypedDict": ".outputcodeinterpreterservertoolitem",
@@ -6048,6 +6111,7 @@ _dynamic_imports: dict[str, str] = {
"OutputItemImageGenerationCallTypedDict": ".outputitemimagegenerationcall",
"OutputItems": ".outputitems",
"OutputItemsTypedDict": ".outputitems",
"UnknownOutputItems": ".outputitems",
"OutputMcpServerToolItem": ".outputmcpservertoolitem",
"OutputMcpServerToolItemType": ".outputmcpservertoolitem",
"OutputMcpServerToolItemTypedDict": ".outputmcpservertoolitem",
@@ -6070,6 +6134,7 @@ _dynamic_imports: dict[str, str] = {
"OutputMessageStatusUnionTypedDict": ".outputmessage",
"OutputMessageType": ".outputmessage",
"OutputMessageTypedDict": ".outputmessage",
"UnknownOutputMessageContent": ".outputmessage",
"OutputMessageItem": ".outputmessageitem",
"OutputMessageItemContent": ".outputmessageitem",
"OutputMessageItemContentTypedDict": ".outputmessageitem",
@@ -6085,6 +6150,7 @@ _dynamic_imports: dict[str, str] = {
"OutputMessageItemStatusUnionTypedDict": ".outputmessageitem",
"OutputMessageItemType": ".outputmessageitem",
"OutputMessageItemTypedDict": ".outputmessageitem",
"UnknownOutputMessageItemContent": ".outputmessageitem",
"OutputModality": ".outputmodality",
"OutputModalityEnum": ".outputmodalityenum",
"OutputReasoningItem": ".outputreasoningitem",
@@ -6116,6 +6182,7 @@ _dynamic_imports: dict[str, str] = {
"OutputShellCallOutputItemTypedDict": ".outputshellcalloutputitem",
"TypeExit": ".outputshellcalloutputitem",
"TypeTimeout": ".outputshellcalloutputitem",
"UnknownOutcome": ".outputshellcalloutputitem",
"OutputSubagentServerToolItem": ".outputsubagentservertoolitem",
"OutputSubagentServerToolItemType": ".outputsubagentservertoolitem",
"OutputSubagentServerToolItemTypedDict": ".outputsubagentservertoolitem",
@@ -6143,6 +6210,7 @@ _dynamic_imports: dict[str, str] = {
"TypeFindInPage": ".outputwebsearchcallitem",
"TypeOpenPage": ".outputwebsearchcallitem",
"TypeWebSearchCall": ".outputwebsearchcallitem",
"UnknownAction": ".outputwebsearchcallitem",
"OutputWebSearchServerToolItem": ".outputwebsearchservertoolitem",
"OutputWebSearchServerToolItemAction": ".outputwebsearchservertoolitem",
"OutputWebSearchServerToolItemActionTypedDict": ".outputwebsearchservertoolitem",
@@ -6258,6 +6326,7 @@ _dynamic_imports: dict[str, str] = {
"ReasoningDetailTextTypedDict": ".reasoningdetailtext",
"ReasoningDetailUnion": ".reasoningdetailunion",
"ReasoningDetailUnionTypedDict": ".reasoningdetailunion",
"UnknownReasoningDetailUnion": ".reasoningdetailunion",
"ReasoningDoneEvent": ".reasoningdoneevent",
"ReasoningDoneEventType": ".reasoningdoneevent",
"ReasoningDoneEventTypedDict": ".reasoningdoneevent",
@@ -6389,6 +6458,7 @@ _dynamic_imports: dict[str, str] = {
"VariablesTypedDict": ".storedprompttemplate",
"StreamEvents": ".streamevents",
"StreamEventsTypedDict": ".streamevents",
"UnknownStreamEvents": ".streamevents",
"StreamEventsResponseCompleted": ".streameventsresponsecompleted",
"StreamEventsResponseCompletedType": ".streameventsresponsecompleted",
"StreamEventsResponseCompletedTypedDict": ".streameventsresponsecompleted",
@@ -6482,6 +6552,7 @@ _dynamic_imports: dict[str, str] = {
"UnifiedBenchmarksResponseData": ".unifiedbenchmarksresponse",
"UnifiedBenchmarksResponseDataTypedDict": ".unifiedbenchmarksresponse",
"UnifiedBenchmarksResponseTypedDict": ".unifiedbenchmarksresponse",
"UnknownUnifiedBenchmarksResponseData": ".unifiedbenchmarksresponse",
"UnprocessableEntityResponseErrorData": ".unprocessableentityresponseerrordata",
"UnprocessableEntityResponseErrorDataTypedDict": ".unprocessableentityresponseerrordata",
"UpdateBYOKKeyRequest": ".updatebyokkeyrequest",
@@ -6596,39 +6667,11 @@ _dynamic_imports: dict[str, str] = {
}
def dynamic_import(modname, retries=3):
for attempt in range(retries):
try:
return import_module(modname, __package__)
except KeyError:
# Clear any half-initialized module and retry
sys.modules.pop(modname, None)
if attempt == retries - 1:
break
raise KeyError(f"Failed to import module '{modname}' after {retries} attempts")
def __getattr__(attr_name: str) -> object:
module_name = _dynamic_imports.get(attr_name)
if module_name is None:
raise AttributeError(
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
)
try:
module = dynamic_import(module_name)
result = getattr(module, attr_name)
return result
except ImportError as e:
raise ImportError(
f"Failed to import {attr_name} from {module_name}: {e}"
) from e
except AttributeError as e:
raise AttributeError(
f"Failed to get {attr_name} from {module_name}: {e}"
) from e
def __getattr__(attr_name: str) -> Any:
return lazy_getattr(
attr_name, package=__package__, dynamic_imports=_dynamic_imports
)
def __dir__():
lazy_attrs = builtins.list(_dynamic_imports.keys())
return builtins.sorted(lazy_attrs)
return lazy_dir(dynamic_imports=_dynamic_imports)