@openrouter/sdk 0.8.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -1
- package/_speakeasy/.github/action-inputs-config.json +4 -0
- package/esm/funcs/analyticsGetUserActivity.js +2 -1
- package/esm/funcs/apiKeysCreate.js +2 -1
- package/esm/funcs/apiKeysDelete.js +2 -1
- package/esm/funcs/apiKeysGet.js +2 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -1
- package/esm/funcs/apiKeysList.js +2 -1
- package/esm/funcs/apiKeysUpdate.js +2 -1
- package/esm/funcs/betaResponsesSend.js +2 -1
- package/esm/funcs/call-model.d.ts +19 -70
- package/esm/funcs/call-model.js +29 -71
- package/esm/funcs/chatSend.d.ts +3 -3
- package/esm/funcs/chatSend.js +20 -3
- package/esm/funcs/creditsCreateCoinbaseCharge.js +2 -1
- package/esm/funcs/creditsGetCredits.js +2 -1
- package/esm/funcs/embeddingsGenerate.js +2 -1
- package/esm/funcs/embeddingsListModels.js +2 -1
- package/esm/funcs/endpointsList.js +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +2 -1
- package/esm/funcs/generationsGetGeneration.js +2 -1
- package/esm/funcs/guardrailsBulkAssignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +2 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +2 -1
- package/esm/funcs/guardrailsCreate.js +2 -1
- package/esm/funcs/guardrailsDelete.js +2 -1
- package/esm/funcs/guardrailsGet.js +2 -1
- package/esm/funcs/guardrailsList.js +2 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +2 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +2 -1
- package/esm/funcs/guardrailsUpdate.js +2 -1
- package/esm/funcs/modelsCount.d.ts +1 -1
- package/esm/funcs/modelsCount.js +9 -4
- package/esm/funcs/modelsList.js +3 -1
- package/esm/funcs/modelsListForUser.js +2 -1
- package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
- package/esm/funcs/oAuthCreateAuthCode.js +4 -3
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +2 -1
- package/esm/funcs/providersList.js +2 -1
- package/esm/index.d.ts +22 -23
- package/esm/index.js +20 -17
- package/esm/lib/anthropic-compat.d.ts +2 -1
- package/esm/lib/anthropic-compat.js +1 -2
- package/esm/lib/async-params.d.ts +19 -5
- package/esm/lib/async-params.js +5 -1
- package/esm/lib/chat-compat.d.ts +1 -1
- package/esm/lib/chat-compat.js +1 -2
- package/esm/lib/claude-type-guards.d.ts +2 -2
- package/esm/lib/config.d.ts +8 -10
- package/esm/lib/config.js +2 -2
- package/esm/lib/conversation-state.d.ts +1 -1
- package/esm/lib/conversation-state.js +35 -32
- package/esm/lib/env.d.ts +6 -2
- package/esm/lib/env.js +7 -3
- package/esm/lib/model-result.d.ts +73 -17
- package/esm/lib/model-result.js +329 -125
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.js +8 -28
- package/esm/lib/stream-transformers.d.ts +5 -4
- package/esm/lib/stream-transformers.js +24 -29
- package/esm/lib/stream-type-guards.js +8 -32
- package/esm/lib/tool-context.d.ts +68 -0
- package/esm/lib/tool-context.js +175 -0
- package/esm/lib/tool-executor.d.ts +9 -5
- package/esm/lib/tool-executor.js +26 -16
- package/esm/lib/tool-orchestrator.d.ts +2 -2
- package/esm/lib/tool-types.d.ts +101 -14
- package/esm/lib/tool-types.js +17 -0
- package/esm/lib/tool.d.ts +49 -60
- package/esm/lib/tool.js +15 -19
- package/esm/lib/turn-context.d.ts +1 -1
- package/esm/models/assistantmessage.d.ts +53 -36
- package/esm/models/assistantmessage.js +38 -47
- package/esm/models/assistantmessageimages.d.ts +33 -0
- package/esm/models/assistantmessageimages.js +44 -0
- package/esm/models/chatcompletionaudiooutput.d.ts +38 -0
- package/esm/models/chatcompletionaudiooutput.js +36 -0
- package/esm/models/chatgenerationparams.d.ts +527 -131
- package/esm/models/chatgenerationparams.js +280 -97
- package/esm/models/chatgenerationtokenusage.d.ts +48 -0
- package/esm/models/chatmessagecontentitem.d.ts +16 -10
- package/esm/models/chatmessagecontentitem.js +28 -4
- package/esm/models/chatmessagecontentitemaudio.d.ts +20 -2
- package/esm/models/chatmessagecontentitemaudio.js +9 -2
- package/esm/models/chatmessagecontentitemcachecontrol.d.ts +19 -8
- package/esm/models/chatmessagecontentitemcachecontrol.js +14 -9
- package/esm/models/chatmessagecontentitemfile.d.ts +57 -0
- package/esm/models/chatmessagecontentitemfile.js +59 -0
- package/esm/models/chatmessagecontentitemimage.d.ts +26 -3
- package/esm/models/chatmessagecontentitemimage.js +12 -2
- package/esm/models/chatmessagecontentitemtext.d.ts +17 -2
- package/esm/models/chatmessagecontentitemtext.js +9 -2
- package/esm/models/chatmessagecontentitemvideo.d.ts +12 -55
- package/esm/models/chatmessagecontentitemvideo.js +5 -72
- package/esm/models/chatmessagecontentitemvideolegacy.d.ts +28 -0
- package/esm/models/chatmessagecontentitemvideolegacy.js +33 -0
- package/esm/models/chatmessagetokenlogprob.d.ts +15 -0
- package/esm/models/chatmessagetokenlogprobs.d.ts +10 -1
- package/esm/models/chatmessagetokenlogprobs.js +2 -1
- package/esm/models/chatmessagetoolcall.d.ts +23 -2
- package/esm/models/chatmessagetoolcall.js +9 -2
- package/esm/models/chatresponse.d.ts +30 -2
- package/esm/models/chatresponse.js +7 -2
- package/esm/models/chatresponsechoice.d.ts +13 -2
- package/esm/models/chatresponsechoice.js +1 -2
- package/esm/models/chatstreamingchoice.d.ts +13 -2
- package/esm/models/chatstreamingchoice.js +1 -2
- package/esm/models/chatstreamingmessagechunk.d.ts +31 -2
- package/esm/models/chatstreamingmessagechunk.js +7 -2
- package/esm/models/chatstreamingmessagetoolcall.d.ts +38 -1
- package/esm/models/chatstreamingmessagetoolcall.js +9 -1
- package/esm/models/chatstreamingresponsechunk.d.ts +46 -12
- package/esm/models/chatstreamingresponsechunk.js +12 -26
- package/esm/models/chatstreamoptions.d.ts +8 -0
- package/esm/models/compoundfilter.d.ts +36 -0
- package/esm/models/compoundfilter.js +32 -0
- package/esm/models/conflictresponseerrordata.d.ts +17 -0
- package/esm/models/conflictresponseerrordata.js +16 -0
- package/esm/models/contextcompressionengine.d.ts +15 -0
- package/esm/models/contextcompressionengine.js +14 -0
- package/esm/models/datetimeservertool.d.ts +30 -0
- package/esm/models/datetimeservertool.js +22 -0
- package/esm/models/debugoptions.d.ts +18 -0
- package/esm/models/debugoptions.js +18 -0
- package/esm/models/defaultparameters.d.ts +3 -0
- package/esm/models/defaultparameters.js +6 -0
- package/esm/models/developermessage.d.ts +12 -0
- package/esm/models/errors/conflictresponseerror.d.ts +33 -0
- package/esm/models/errors/{chaterror.js → conflictresponseerror.js} +17 -7
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/index.d.ts +35 -12
- package/esm/models/index.js +35 -12
- package/esm/models/jsonschemaconfig.d.ts +17 -2
- package/esm/models/jsonschemaconfig.js +1 -1
- package/esm/models/message.d.ts +9 -2
- package/esm/models/message.js +1 -1
- package/esm/models/modelscountresponse.d.ts +4 -4
- package/esm/models/modelscountresponse.js +4 -4
- package/esm/models/namedtoolchoice.d.ts +15 -2
- package/esm/models/namedtoolchoice.js +6 -1
- package/esm/models/openairesponsesinputunion.d.ts +32 -1
- package/esm/models/openairesponsesinputunion.js +53 -1
- package/esm/models/openairesponsesreasoningconfig.d.ts +1 -1
- package/esm/models/openairesponsesreasoningconfig.js +1 -1
- package/esm/models/openresponsesapplypatchtool.d.ts +20 -0
- package/esm/models/openresponsesapplypatchtool.js +21 -0
- package/esm/models/openresponsescodeinterpretertool.d.ts +68 -0
- package/esm/models/openresponsescodeinterpretertool.js +85 -0
- package/esm/models/openresponsescomputertool.d.ts +39 -0
- package/esm/models/openresponsescomputertool.js +50 -0
- package/esm/models/openresponsescustomtool.d.ts +75 -0
- package/esm/models/openresponsescustomtool.js +95 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +30 -4
- package/esm/models/openresponseseasyinputmessage.js +28 -2
- package/esm/models/openresponsesfilesearchtool.d.ts +111 -0
- package/esm/models/openresponsesfilesearchtool.js +180 -0
- package/esm/models/openresponsesfunctioncalloutput.d.ts +46 -7
- package/esm/models/openresponsesfunctioncalloutput.js +56 -4
- package/esm/models/openresponsesfunctionshelltool.d.ts +20 -0
- package/esm/models/openresponsesfunctionshelltool.js +21 -0
- package/esm/models/openresponsesimagegenerationtool.d.ts +125 -0
- package/esm/models/openresponsesimagegenerationtool.js +153 -0
- package/esm/models/openresponsesinputmessageitem.d.ts +2 -2
- package/esm/models/openresponsesinputmessageitem.js +2 -2
- package/esm/models/openresponsesinputunion.d.ts +207 -0
- package/esm/models/openresponsesinputunion.js +225 -0
- package/esm/models/openresponseslocalshelltool.d.ts +20 -0
- package/esm/models/openresponseslocalshelltool.js +21 -0
- package/esm/models/openresponsesmcptool.d.ts +128 -0
- package/esm/models/openresponsesmcptool.js +173 -0
- package/esm/models/openresponsesnonstreamingresponse.d.ts +15 -6
- package/esm/models/openresponsesnonstreamingresponse.js +30 -3
- package/esm/models/openresponsesreasoning.d.ts +2 -2
- package/esm/models/openresponsesreasoning.js +1 -1
- package/esm/models/openresponsesreasoningconfig.d.ts +2 -2
- package/esm/models/openresponsesreasoningconfig.js +1 -1
- package/esm/models/openresponsesrequest.d.ts +111 -39
- package/esm/models/openresponsesrequest.js +112 -38
- package/esm/models/openresponsesstreamevent.d.ts +52 -4
- package/esm/models/openresponsesstreamevent.js +54 -3
- package/esm/models/openresponseswebsearch20250826tool.d.ts +29 -0
- package/esm/models/openresponseswebsearch20250826tool.js +23 -0
- package/esm/models/openresponseswebsearchcallcompleted.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallcompleted.js +24 -0
- package/esm/models/openresponseswebsearchcallinprogress.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallinprogress.js +24 -0
- package/esm/models/openresponseswebsearchcallsearching.d.ts +16 -0
- package/esm/models/openresponseswebsearchcallsearching.js +24 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +44 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.js +51 -0
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +44 -0
- package/esm/models/openresponseswebsearchpreviewtool.js +47 -0
- package/esm/models/openresponseswebsearchtool.d.ts +29 -0
- package/esm/models/openresponseswebsearchtool.js +23 -0
- package/esm/models/operations/bulkassignkeystoguardrail.d.ts +16 -3
- package/esm/models/operations/bulkassignkeystoguardrail.js +2 -2
- package/esm/models/operations/bulkassignmemberstoguardrail.d.ts +16 -3
- package/esm/models/operations/bulkassignmemberstoguardrail.js +2 -2
- package/esm/models/operations/bulkunassignkeysfromguardrail.d.ts +16 -3
- package/esm/models/operations/bulkunassignkeysfromguardrail.js +2 -2
- package/esm/models/operations/bulkunassignmembersfromguardrail.d.ts +16 -3
- package/esm/models/operations/bulkunassignmembersfromguardrail.js +2 -2
- package/esm/models/operations/createauthkeyscode.d.ts +40 -3
- package/esm/models/operations/createauthkeyscode.js +16 -2
- package/esm/models/operations/createcoinbasecharge.d.ts +16 -3
- package/esm/models/operations/createcoinbasecharge.js +2 -2
- package/esm/models/operations/createembeddings.d.ts +16 -3
- package/esm/models/operations/createembeddings.js +2 -2
- package/esm/models/operations/createguardrail.d.ts +25 -3
- package/esm/models/operations/createguardrail.js +6 -2
- package/esm/models/operations/createkeys.d.ts +16 -3
- package/esm/models/operations/createkeys.js +2 -2
- package/esm/models/operations/createresponses.d.ts +16 -3
- package/esm/models/operations/createresponses.js +2 -2
- package/esm/models/operations/deleteguardrail.d.ts +16 -3
- package/esm/models/operations/deleteguardrail.js +2 -2
- package/esm/models/operations/deletekeys.d.ts +16 -3
- package/esm/models/operations/deletekeys.js +2 -2
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +16 -3
- package/esm/models/operations/exchangeauthcodeforapikey.js +2 -2
- package/esm/models/operations/getcredits.d.ts +16 -3
- package/esm/models/operations/getcredits.js +2 -2
- package/esm/models/operations/getcurrentkey.d.ts +16 -3
- package/esm/models/operations/getcurrentkey.js +2 -2
- package/esm/models/operations/getgeneration.d.ts +27 -3
- package/esm/models/operations/getgeneration.js +9 -2
- package/esm/models/operations/getguardrail.d.ts +20 -3
- package/esm/models/operations/getguardrail.js +4 -2
- package/esm/models/operations/getkey.d.ts +16 -3
- package/esm/models/operations/getkey.js +2 -2
- package/esm/models/operations/getmodels.d.ts +21 -3
- package/esm/models/operations/getmodels.js +4 -2
- package/esm/models/operations/getuseractivity.d.ts +16 -3
- package/esm/models/operations/getuseractivity.js +2 -2
- package/esm/models/operations/list.d.ts +16 -3
- package/esm/models/operations/list.js +2 -2
- package/esm/models/operations/listembeddingsmodels.d.ts +16 -3
- package/esm/models/operations/listembeddingsmodels.js +2 -2
- package/esm/models/operations/listendpoints.d.ts +16 -3
- package/esm/models/operations/listendpoints.js +2 -2
- package/esm/models/operations/listendpointszdr.d.ts +16 -3
- package/esm/models/operations/listendpointszdr.js +2 -2
- package/esm/models/operations/listguardrailkeyassignments.d.ts +16 -3
- package/esm/models/operations/listguardrailkeyassignments.js +2 -2
- package/esm/models/operations/listguardrailmemberassignments.d.ts +16 -3
- package/esm/models/operations/listguardrailmemberassignments.js +2 -2
- package/esm/models/operations/listguardrails.d.ts +20 -3
- package/esm/models/operations/listguardrails.js +4 -2
- package/esm/models/operations/listkeyassignments.d.ts +16 -3
- package/esm/models/operations/listkeyassignments.js +2 -2
- package/esm/models/operations/listmemberassignments.d.ts +16 -3
- package/esm/models/operations/listmemberassignments.js +2 -2
- package/esm/models/operations/listmodelscount.d.ts +21 -3
- package/esm/models/operations/listmodelscount.js +4 -2
- package/esm/models/operations/listmodelsuser.d.ts +16 -3
- package/esm/models/operations/listmodelsuser.js +2 -2
- package/esm/models/operations/listproviders.d.ts +16 -3
- package/esm/models/operations/listproviders.js +2 -2
- package/esm/models/operations/sendchatcompletionrequest.d.ts +27 -5
- package/esm/models/operations/sendchatcompletionrequest.js +22 -4
- package/esm/models/operations/updateguardrail.d.ts +25 -3
- package/esm/models/operations/updateguardrail.js +6 -2
- package/esm/models/operations/updatekeys.d.ts +16 -3
- package/esm/models/operations/updatekeys.js +2 -2
- package/esm/models/outputmessage.d.ts +23 -0
- package/esm/models/outputmessage.js +24 -0
- package/esm/models/outputmodality.d.ts +1 -0
- package/esm/models/outputmodality.js +1 -0
- package/esm/models/providername.d.ts +3 -0
- package/esm/models/providername.js +3 -0
- package/esm/models/providerpreferences.d.ts +49 -14
- package/esm/models/providerpreferences.js +33 -15
- package/esm/models/providersort.d.ts +7 -0
- package/esm/models/providersort.js +4 -0
- package/esm/models/providersortconfig.d.ts +31 -2
- package/esm/models/providersortconfig.js +16 -2
- package/esm/models/reasoningdetailencrypted.d.ts +42 -0
- package/esm/models/reasoningdetailencrypted.js +42 -0
- package/esm/models/reasoningdetailsummary.d.ts +42 -0
- package/esm/models/reasoningdetailsummary.js +42 -0
- package/esm/models/reasoningdetailtext.d.ts +44 -0
- package/esm/models/reasoningdetailtext.js +44 -0
- package/esm/models/reasoningdetailunion.d.ts +19 -0
- package/esm/models/reasoningdetailunion.js +28 -0
- package/esm/models/responseformatjsonobject.d.ts +20 -0
- package/esm/models/responseformatjsonobject.js +21 -0
- package/esm/models/responseformatjsonschema.d.ts +6 -0
- package/esm/models/responseformattext.d.ts +15 -0
- package/esm/models/responseformattext.js +13 -0
- package/esm/models/responseformattextconfig.d.ts +3 -3
- package/esm/models/responseformattextconfig.js +3 -3
- package/esm/models/responseformattextgrammar.d.ts +6 -0
- package/esm/models/responseformattextpython.d.ts +15 -0
- package/esm/models/responseformattextpython.js +13 -0
- package/esm/models/responseoutputtext.d.ts +8 -8
- package/esm/models/responseoutputtext.js +10 -9
- package/esm/models/responseserrorfield.d.ts +4 -4
- package/esm/models/responseserrorfield.js +4 -4
- package/esm/models/responsesoutputitem.d.ts +2 -13
- package/esm/models/responsesoutputitem.js +8 -6
- package/esm/models/responsesoutputitemreasoning.d.ts +3 -32
- package/esm/models/responsesoutputitemreasoning.js +3 -45
- package/esm/models/responsesoutputmessage.d.ts +24 -32
- package/esm/models/responsesoutputmessage.js +26 -47
- package/esm/models/responsesservertooloutput.d.ts +42 -0
- package/esm/models/responsesservertooloutput.js +44 -0
- package/esm/models/responseswebsearchcalloutput.d.ts +90 -5
- package/esm/models/responseswebsearchcalloutput.js +113 -5
- package/esm/models/responseswebsearchservertool.d.ts +35 -0
- package/esm/models/responseswebsearchservertool.js +28 -0
- package/esm/models/systemmessage.d.ts +12 -0
- package/esm/models/toolchoiceoption.d.ts +31 -0
- package/esm/models/toolchoiceoption.js +32 -0
- package/esm/models/tooldefinitionjson.d.ts +62 -10
- package/esm/models/tooldefinitionjson.js +29 -6
- package/esm/models/toolresponsemessage.d.ts +12 -0
- package/esm/models/usermessage.d.ts +12 -0
- package/esm/models/videoinput.d.ts +23 -0
- package/esm/models/videoinput.js +22 -0
- package/esm/models/websearchengine.d.ts +2 -0
- package/esm/models/websearchengine.js +2 -0
- package/esm/models/websearchservertool.d.ts +116 -0
- package/esm/models/websearchservertool.js +77 -0
- package/esm/models/websearchshorthand.d.ts +215 -0
- package/esm/models/websearchshorthand.js +138 -0
- package/esm/sdk/chat.d.ts +1 -1
- package/esm/sdk/sdk.d.ts +6 -3
- package/esm/sdk/sdk.js +3 -4
- package/esm/types/index.d.ts +0 -2
- package/esm/types/index.js +0 -1
- package/jsr.json +1 -1
- package/package.json +11 -6
- package/turbo.json +10 -0
- package/esm/models/chaterror.d.ts +0 -17
- package/esm/models/chaterror.js +0 -25
- package/esm/models/errors/chaterror.d.ts +0 -19
- package/esm/models/openresponsesinput.d.ts +0 -28
- package/esm/models/openresponsesinput.js +0 -54
- package/esm/models/openresponseslogprobs.d.ts +0 -16
- package/esm/models/openresponseslogprobs.js +0 -22
- package/esm/models/openresponsestoplogprobs.d.ts +0 -14
- package/esm/models/openresponsestoplogprobs.js +0 -15
- package/esm/models/providersortunion.d.ts +0 -10
- package/esm/models/providersortunion.js +0 -13
- package/esm/models/responsesformatjsonobject.d.ts +0 -20
- package/esm/models/responsesformatjsonobject.js +0 -21
- package/esm/models/schema10.d.ts +0 -33
- package/esm/models/schema10.js +0 -30
- package/esm/models/schema14.d.ts +0 -8
- package/esm/models/schema14.js +0 -12
- package/esm/models/schema17.d.ts +0 -102
- package/esm/models/schema17.js +0 -95
- package/esm/models/schema19.d.ts +0 -92
- package/esm/models/schema19.js +0 -109
- package/esm/models/schema5.d.ts +0 -86
- package/esm/models/schema5.js +0 -89
package/esm/models/schema19.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 81bc92589adb
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
export const Schema21 = {
|
|
9
|
-
Unknown: "unknown",
|
|
10
|
-
OpenaiResponsesV1: "openai-responses-v1",
|
|
11
|
-
AzureOpenaiResponsesV1: "azure-openai-responses-v1",
|
|
12
|
-
XaiResponsesV1: "xai-responses-v1",
|
|
13
|
-
AnthropicClaudeV1: "anthropic-claude-v1",
|
|
14
|
-
GoogleGeminiV1: "google-gemini-v1",
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const Schema21$inboundSchema = openEnums
|
|
18
|
-
.inboundSchema(Schema21);
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const Schema21$outboundSchema = openEnums
|
|
21
|
-
.outboundSchema(Schema21);
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const Schema19ReasoningText$inboundSchema = z.object({
|
|
24
|
-
type: z.literal("reasoning.text"),
|
|
25
|
-
text: z.nullable(z.string()).optional(),
|
|
26
|
-
signature: z.nullable(z.string()).optional(),
|
|
27
|
-
id: z.nullable(z.string()).optional(),
|
|
28
|
-
format: z.nullable(Schema21$inboundSchema).optional(),
|
|
29
|
-
index: z.number().optional(),
|
|
30
|
-
});
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const Schema19ReasoningText$outboundSchema = z.object({
|
|
33
|
-
type: z.literal("reasoning.text"),
|
|
34
|
-
text: z.nullable(z.string()).optional(),
|
|
35
|
-
signature: z.nullable(z.string()).optional(),
|
|
36
|
-
id: z.nullable(z.string()).optional(),
|
|
37
|
-
format: z.nullable(Schema21$outboundSchema).optional(),
|
|
38
|
-
index: z.number().optional(),
|
|
39
|
-
});
|
|
40
|
-
export function schema19ReasoningTextToJSON(schema19ReasoningText) {
|
|
41
|
-
return JSON.stringify(Schema19ReasoningText$outboundSchema.parse(schema19ReasoningText));
|
|
42
|
-
}
|
|
43
|
-
export function schema19ReasoningTextFromJSON(jsonString) {
|
|
44
|
-
return safeParse(jsonString, (x) => Schema19ReasoningText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema19ReasoningText' from JSON`);
|
|
45
|
-
}
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Schema19ReasoningEncrypted$inboundSchema = z.object({
|
|
48
|
-
type: z.literal("reasoning.encrypted"),
|
|
49
|
-
data: z.string(),
|
|
50
|
-
id: z.nullable(z.string()).optional(),
|
|
51
|
-
format: z.nullable(Schema21$inboundSchema).optional(),
|
|
52
|
-
index: z.number().optional(),
|
|
53
|
-
});
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const Schema19ReasoningEncrypted$outboundSchema = z.object({
|
|
56
|
-
type: z.literal("reasoning.encrypted"),
|
|
57
|
-
data: z.string(),
|
|
58
|
-
id: z.nullable(z.string()).optional(),
|
|
59
|
-
format: z.nullable(Schema21$outboundSchema).optional(),
|
|
60
|
-
index: z.number().optional(),
|
|
61
|
-
});
|
|
62
|
-
export function schema19ReasoningEncryptedToJSON(schema19ReasoningEncrypted) {
|
|
63
|
-
return JSON.stringify(Schema19ReasoningEncrypted$outboundSchema.parse(schema19ReasoningEncrypted));
|
|
64
|
-
}
|
|
65
|
-
export function schema19ReasoningEncryptedFromJSON(jsonString) {
|
|
66
|
-
return safeParse(jsonString, (x) => Schema19ReasoningEncrypted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema19ReasoningEncrypted' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const Schema19ReasoningSummary$inboundSchema = z.object({
|
|
70
|
-
type: z.literal("reasoning.summary"),
|
|
71
|
-
summary: z.string(),
|
|
72
|
-
id: z.nullable(z.string()).optional(),
|
|
73
|
-
format: z.nullable(Schema21$inboundSchema).optional(),
|
|
74
|
-
index: z.number().optional(),
|
|
75
|
-
});
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const Schema19ReasoningSummary$outboundSchema = z.object({
|
|
78
|
-
type: z.literal("reasoning.summary"),
|
|
79
|
-
summary: z.string(),
|
|
80
|
-
id: z.nullable(z.string()).optional(),
|
|
81
|
-
format: z.nullable(Schema21$outboundSchema).optional(),
|
|
82
|
-
index: z.number().optional(),
|
|
83
|
-
});
|
|
84
|
-
export function schema19ReasoningSummaryToJSON(schema19ReasoningSummary) {
|
|
85
|
-
return JSON.stringify(Schema19ReasoningSummary$outboundSchema.parse(schema19ReasoningSummary));
|
|
86
|
-
}
|
|
87
|
-
export function schema19ReasoningSummaryFromJSON(jsonString) {
|
|
88
|
-
return safeParse(jsonString, (x) => Schema19ReasoningSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema19ReasoningSummary' from JSON`);
|
|
89
|
-
}
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const Schema19$inboundSchema = z.union([
|
|
92
|
-
z.lazy(() => Schema19ReasoningSummary$inboundSchema),
|
|
93
|
-
z.lazy(() => Schema19ReasoningEncrypted$inboundSchema),
|
|
94
|
-
z.lazy(() => Schema19ReasoningText$inboundSchema),
|
|
95
|
-
]);
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const Schema19$outboundSchema = z
|
|
98
|
-
.union([
|
|
99
|
-
z.lazy(() => Schema19ReasoningSummary$outboundSchema),
|
|
100
|
-
z.lazy(() => Schema19ReasoningEncrypted$outboundSchema),
|
|
101
|
-
z.lazy(() => Schema19ReasoningText$outboundSchema),
|
|
102
|
-
]);
|
|
103
|
-
export function schema19ToJSON(schema19) {
|
|
104
|
-
return JSON.stringify(Schema19$outboundSchema.parse(schema19));
|
|
105
|
-
}
|
|
106
|
-
export function schema19FromJSON(jsonString) {
|
|
107
|
-
return safeParse(jsonString, (x) => Schema19$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema19' from JSON`);
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=schema19.js.map
|
package/esm/models/schema5.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
export declare const Schema5Enum: {
|
|
4
|
-
readonly Ai21: "AI21";
|
|
5
|
-
readonly AionLabs: "AionLabs";
|
|
6
|
-
readonly Alibaba: "Alibaba";
|
|
7
|
-
readonly Ambient: "Ambient";
|
|
8
|
-
readonly AmazonBedrock: "Amazon Bedrock";
|
|
9
|
-
readonly AmazonNova: "Amazon Nova";
|
|
10
|
-
readonly Anthropic: "Anthropic";
|
|
11
|
-
readonly ArceeAI: "Arcee AI";
|
|
12
|
-
readonly AtlasCloud: "AtlasCloud";
|
|
13
|
-
readonly Avian: "Avian";
|
|
14
|
-
readonly Azure: "Azure";
|
|
15
|
-
readonly BaseTen: "BaseTen";
|
|
16
|
-
readonly BytePlus: "BytePlus";
|
|
17
|
-
readonly BlackForestLabs: "Black Forest Labs";
|
|
18
|
-
readonly Cerebras: "Cerebras";
|
|
19
|
-
readonly Chutes: "Chutes";
|
|
20
|
-
readonly Cirrascale: "Cirrascale";
|
|
21
|
-
readonly Clarifai: "Clarifai";
|
|
22
|
-
readonly Cloudflare: "Cloudflare";
|
|
23
|
-
readonly Cohere: "Cohere";
|
|
24
|
-
readonly Crusoe: "Crusoe";
|
|
25
|
-
readonly DeepInfra: "DeepInfra";
|
|
26
|
-
readonly DeepSeek: "DeepSeek";
|
|
27
|
-
readonly Featherless: "Featherless";
|
|
28
|
-
readonly Fireworks: "Fireworks";
|
|
29
|
-
readonly Friendli: "Friendli";
|
|
30
|
-
readonly GMICloud: "GMICloud";
|
|
31
|
-
readonly Google: "Google";
|
|
32
|
-
readonly GoogleAIStudio: "Google AI Studio";
|
|
33
|
-
readonly Groq: "Groq";
|
|
34
|
-
readonly Hyperbolic: "Hyperbolic";
|
|
35
|
-
readonly Inception: "Inception";
|
|
36
|
-
readonly Inceptron: "Inceptron";
|
|
37
|
-
readonly InferenceNet: "InferenceNet";
|
|
38
|
-
readonly Infermatic: "Infermatic";
|
|
39
|
-
readonly Inflection: "Inflection";
|
|
40
|
-
readonly Liquid: "Liquid";
|
|
41
|
-
readonly Mara: "Mara";
|
|
42
|
-
readonly Mancer2: "Mancer 2";
|
|
43
|
-
readonly Minimax: "Minimax";
|
|
44
|
-
readonly ModelRun: "ModelRun";
|
|
45
|
-
readonly Mistral: "Mistral";
|
|
46
|
-
readonly Modular: "Modular";
|
|
47
|
-
readonly MoonshotAI: "Moonshot AI";
|
|
48
|
-
readonly Morph: "Morph";
|
|
49
|
-
readonly NCompass: "NCompass";
|
|
50
|
-
readonly Nebius: "Nebius";
|
|
51
|
-
readonly NextBit: "NextBit";
|
|
52
|
-
readonly Novita: "Novita";
|
|
53
|
-
readonly Nvidia: "Nvidia";
|
|
54
|
-
readonly OpenAI: "OpenAI";
|
|
55
|
-
readonly OpenInference: "OpenInference";
|
|
56
|
-
readonly Parasail: "Parasail";
|
|
57
|
-
readonly Perplexity: "Perplexity";
|
|
58
|
-
readonly Phala: "Phala";
|
|
59
|
-
readonly Relace: "Relace";
|
|
60
|
-
readonly SambaNova: "SambaNova";
|
|
61
|
-
readonly Seed: "Seed";
|
|
62
|
-
readonly SiliconFlow: "SiliconFlow";
|
|
63
|
-
readonly Sourceful: "Sourceful";
|
|
64
|
-
readonly StepFun: "StepFun";
|
|
65
|
-
readonly Stealth: "Stealth";
|
|
66
|
-
readonly StreamLake: "StreamLake";
|
|
67
|
-
readonly Switchpoint: "Switchpoint";
|
|
68
|
-
readonly Together: "Together";
|
|
69
|
-
readonly Upstage: "Upstage";
|
|
70
|
-
readonly Venice: "Venice";
|
|
71
|
-
readonly WandB: "WandB";
|
|
72
|
-
readonly Xiaomi: "Xiaomi";
|
|
73
|
-
readonly XAI: "xAI";
|
|
74
|
-
readonly ZAi: "Z.AI";
|
|
75
|
-
readonly FakeProvider: "FakeProvider";
|
|
76
|
-
};
|
|
77
|
-
export type Schema5Enum = OpenEnum<typeof Schema5Enum>;
|
|
78
|
-
export type Schema5 = Schema5Enum | string;
|
|
79
|
-
/** @internal */
|
|
80
|
-
export declare const Schema5Enum$outboundSchema: z.ZodType<string, Schema5Enum>;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export type Schema5$Outbound = string | string;
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const Schema5$outboundSchema: z.ZodType<Schema5$Outbound, Schema5>;
|
|
85
|
-
export declare function schema5ToJSON(schema5: Schema5): string;
|
|
86
|
-
//# sourceMappingURL=schema5.d.ts.map
|
package/esm/models/schema5.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: ceb3f15ca425
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import * as openEnums from "../types/enums.js";
|
|
7
|
-
export const Schema5Enum = {
|
|
8
|
-
Ai21: "AI21",
|
|
9
|
-
AionLabs: "AionLabs",
|
|
10
|
-
Alibaba: "Alibaba",
|
|
11
|
-
Ambient: "Ambient",
|
|
12
|
-
AmazonBedrock: "Amazon Bedrock",
|
|
13
|
-
AmazonNova: "Amazon Nova",
|
|
14
|
-
Anthropic: "Anthropic",
|
|
15
|
-
ArceeAI: "Arcee AI",
|
|
16
|
-
AtlasCloud: "AtlasCloud",
|
|
17
|
-
Avian: "Avian",
|
|
18
|
-
Azure: "Azure",
|
|
19
|
-
BaseTen: "BaseTen",
|
|
20
|
-
BytePlus: "BytePlus",
|
|
21
|
-
BlackForestLabs: "Black Forest Labs",
|
|
22
|
-
Cerebras: "Cerebras",
|
|
23
|
-
Chutes: "Chutes",
|
|
24
|
-
Cirrascale: "Cirrascale",
|
|
25
|
-
Clarifai: "Clarifai",
|
|
26
|
-
Cloudflare: "Cloudflare",
|
|
27
|
-
Cohere: "Cohere",
|
|
28
|
-
Crusoe: "Crusoe",
|
|
29
|
-
DeepInfra: "DeepInfra",
|
|
30
|
-
DeepSeek: "DeepSeek",
|
|
31
|
-
Featherless: "Featherless",
|
|
32
|
-
Fireworks: "Fireworks",
|
|
33
|
-
Friendli: "Friendli",
|
|
34
|
-
GMICloud: "GMICloud",
|
|
35
|
-
Google: "Google",
|
|
36
|
-
GoogleAIStudio: "Google AI Studio",
|
|
37
|
-
Groq: "Groq",
|
|
38
|
-
Hyperbolic: "Hyperbolic",
|
|
39
|
-
Inception: "Inception",
|
|
40
|
-
Inceptron: "Inceptron",
|
|
41
|
-
InferenceNet: "InferenceNet",
|
|
42
|
-
Infermatic: "Infermatic",
|
|
43
|
-
Inflection: "Inflection",
|
|
44
|
-
Liquid: "Liquid",
|
|
45
|
-
Mara: "Mara",
|
|
46
|
-
Mancer2: "Mancer 2",
|
|
47
|
-
Minimax: "Minimax",
|
|
48
|
-
ModelRun: "ModelRun",
|
|
49
|
-
Mistral: "Mistral",
|
|
50
|
-
Modular: "Modular",
|
|
51
|
-
MoonshotAI: "Moonshot AI",
|
|
52
|
-
Morph: "Morph",
|
|
53
|
-
NCompass: "NCompass",
|
|
54
|
-
Nebius: "Nebius",
|
|
55
|
-
NextBit: "NextBit",
|
|
56
|
-
Novita: "Novita",
|
|
57
|
-
Nvidia: "Nvidia",
|
|
58
|
-
OpenAI: "OpenAI",
|
|
59
|
-
OpenInference: "OpenInference",
|
|
60
|
-
Parasail: "Parasail",
|
|
61
|
-
Perplexity: "Perplexity",
|
|
62
|
-
Phala: "Phala",
|
|
63
|
-
Relace: "Relace",
|
|
64
|
-
SambaNova: "SambaNova",
|
|
65
|
-
Seed: "Seed",
|
|
66
|
-
SiliconFlow: "SiliconFlow",
|
|
67
|
-
Sourceful: "Sourceful",
|
|
68
|
-
StepFun: "StepFun",
|
|
69
|
-
Stealth: "Stealth",
|
|
70
|
-
StreamLake: "StreamLake",
|
|
71
|
-
Switchpoint: "Switchpoint",
|
|
72
|
-
Together: "Together",
|
|
73
|
-
Upstage: "Upstage",
|
|
74
|
-
Venice: "Venice",
|
|
75
|
-
WandB: "WandB",
|
|
76
|
-
Xiaomi: "Xiaomi",
|
|
77
|
-
XAI: "xAI",
|
|
78
|
-
ZAi: "Z.AI",
|
|
79
|
-
FakeProvider: "FakeProvider",
|
|
80
|
-
};
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const Schema5Enum$outboundSchema = openEnums.outboundSchema(Schema5Enum);
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const Schema5$outboundSchema = z
|
|
85
|
-
.union([Schema5Enum$outboundSchema, z.string()]);
|
|
86
|
-
export function schema5ToJSON(schema5) {
|
|
87
|
-
return JSON.stringify(Schema5$outboundSchema.parse(schema5));
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=schema5.js.map
|