@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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenResponsesEasyInputMessage, OpenResponsesEasyInputMessage$Outbound } from "./openresponseseasyinputmessage.js";
|
|
3
|
-
import { OpenResponsesFunctionCallOutput, OpenResponsesFunctionCallOutput$Outbound } from "./openresponsesfunctioncalloutput.js";
|
|
4
|
-
import { OpenResponsesFunctionToolCall, OpenResponsesFunctionToolCall$Outbound } from "./openresponsesfunctiontoolcall.js";
|
|
5
|
-
import { OpenResponsesInputMessageItem, OpenResponsesInputMessageItem$Outbound } from "./openresponsesinputmessageitem.js";
|
|
6
|
-
import { OpenResponsesReasoning, OpenResponsesReasoning$Outbound } from "./openresponsesreasoning.js";
|
|
7
|
-
import { ResponsesImageGenerationCall, ResponsesImageGenerationCall$Outbound } from "./responsesimagegenerationcall.js";
|
|
8
|
-
import { ResponsesOutputItemFileSearchCall, ResponsesOutputItemFileSearchCall$Outbound } from "./responsesoutputitemfilesearchcall.js";
|
|
9
|
-
import { ResponsesOutputItemFunctionCall, ResponsesOutputItemFunctionCall$Outbound } from "./responsesoutputitemfunctioncall.js";
|
|
10
|
-
import { ResponsesOutputItemReasoning, ResponsesOutputItemReasoning$Outbound } from "./responsesoutputitemreasoning.js";
|
|
11
|
-
import { ResponsesOutputMessage, ResponsesOutputMessage$Outbound } from "./responsesoutputmessage.js";
|
|
12
|
-
import { ResponsesWebSearchCallOutput, ResponsesWebSearchCallOutput$Outbound } from "./responseswebsearchcalloutput.js";
|
|
13
|
-
export type OpenResponsesInput1 = OpenResponsesFunctionToolCall | ResponsesOutputMessage | ResponsesOutputItemFunctionCall | ResponsesOutputItemFileSearchCall | OpenResponsesReasoning | OpenResponsesFunctionCallOutput | ResponsesOutputItemReasoning | ResponsesWebSearchCallOutput | ResponsesImageGenerationCall | OpenResponsesEasyInputMessage | OpenResponsesInputMessageItem;
|
|
14
|
-
/**
|
|
15
|
-
* Input for a response request - can be a string or array of items
|
|
16
|
-
*/
|
|
17
|
-
export type OpenResponsesInput = string | Array<OpenResponsesFunctionToolCall | ResponsesOutputMessage | ResponsesOutputItemFunctionCall | ResponsesOutputItemFileSearchCall | OpenResponsesReasoning | OpenResponsesFunctionCallOutput | ResponsesOutputItemReasoning | ResponsesWebSearchCallOutput | ResponsesImageGenerationCall | OpenResponsesEasyInputMessage | OpenResponsesInputMessageItem>;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export type OpenResponsesInput1$Outbound = OpenResponsesFunctionToolCall$Outbound | ResponsesOutputMessage$Outbound | ResponsesOutputItemFunctionCall$Outbound | ResponsesOutputItemFileSearchCall$Outbound | OpenResponsesReasoning$Outbound | OpenResponsesFunctionCallOutput$Outbound | ResponsesOutputItemReasoning$Outbound | ResponsesWebSearchCallOutput$Outbound | ResponsesImageGenerationCall$Outbound | OpenResponsesEasyInputMessage$Outbound | OpenResponsesInputMessageItem$Outbound;
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const OpenResponsesInput1$outboundSchema: z.ZodType<OpenResponsesInput1$Outbound, OpenResponsesInput1>;
|
|
22
|
-
export declare function openResponsesInput1ToJSON(openResponsesInput1: OpenResponsesInput1): string;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type OpenResponsesInput$Outbound = string | Array<OpenResponsesFunctionToolCall$Outbound | ResponsesOutputMessage$Outbound | ResponsesOutputItemFunctionCall$Outbound | ResponsesOutputItemFileSearchCall$Outbound | OpenResponsesReasoning$Outbound | OpenResponsesFunctionCallOutput$Outbound | ResponsesOutputItemReasoning$Outbound | ResponsesWebSearchCallOutput$Outbound | ResponsesImageGenerationCall$Outbound | OpenResponsesEasyInputMessage$Outbound | OpenResponsesInputMessageItem$Outbound>;
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const OpenResponsesInput$outboundSchema: z.ZodType<OpenResponsesInput$Outbound, OpenResponsesInput>;
|
|
27
|
-
export declare function openResponsesInputToJSON(openResponsesInput: OpenResponsesInput): string;
|
|
28
|
-
//# sourceMappingURL=openresponsesinput.d.ts.map
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: cc6c94fdea13
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { OpenResponsesEasyInputMessage$outboundSchema, } from "./openresponseseasyinputmessage.js";
|
|
7
|
-
import { OpenResponsesFunctionCallOutput$outboundSchema, } from "./openresponsesfunctioncalloutput.js";
|
|
8
|
-
import { OpenResponsesFunctionToolCall$outboundSchema, } from "./openresponsesfunctiontoolcall.js";
|
|
9
|
-
import { OpenResponsesInputMessageItem$outboundSchema, } from "./openresponsesinputmessageitem.js";
|
|
10
|
-
import { OpenResponsesReasoning$outboundSchema, } from "./openresponsesreasoning.js";
|
|
11
|
-
import { ResponsesImageGenerationCall$outboundSchema, } from "./responsesimagegenerationcall.js";
|
|
12
|
-
import { ResponsesOutputItemFileSearchCall$outboundSchema, } from "./responsesoutputitemfilesearchcall.js";
|
|
13
|
-
import { ResponsesOutputItemFunctionCall$outboundSchema, } from "./responsesoutputitemfunctioncall.js";
|
|
14
|
-
import { ResponsesOutputItemReasoning$outboundSchema, } from "./responsesoutputitemreasoning.js";
|
|
15
|
-
import { ResponsesOutputMessage$outboundSchema, } from "./responsesoutputmessage.js";
|
|
16
|
-
import { ResponsesWebSearchCallOutput$outboundSchema, } from "./responseswebsearchcalloutput.js";
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const OpenResponsesInput1$outboundSchema = z.union([
|
|
19
|
-
OpenResponsesFunctionToolCall$outboundSchema,
|
|
20
|
-
ResponsesOutputMessage$outboundSchema,
|
|
21
|
-
ResponsesOutputItemFunctionCall$outboundSchema,
|
|
22
|
-
ResponsesOutputItemFileSearchCall$outboundSchema,
|
|
23
|
-
OpenResponsesReasoning$outboundSchema,
|
|
24
|
-
OpenResponsesFunctionCallOutput$outboundSchema,
|
|
25
|
-
ResponsesOutputItemReasoning$outboundSchema,
|
|
26
|
-
ResponsesWebSearchCallOutput$outboundSchema,
|
|
27
|
-
ResponsesImageGenerationCall$outboundSchema,
|
|
28
|
-
OpenResponsesEasyInputMessage$outboundSchema,
|
|
29
|
-
OpenResponsesInputMessageItem$outboundSchema,
|
|
30
|
-
]);
|
|
31
|
-
export function openResponsesInput1ToJSON(openResponsesInput1) {
|
|
32
|
-
return JSON.stringify(OpenResponsesInput1$outboundSchema.parse(openResponsesInput1));
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const OpenResponsesInput$outboundSchema = z.union([
|
|
36
|
-
z.string(),
|
|
37
|
-
z.array(z.union([
|
|
38
|
-
OpenResponsesFunctionToolCall$outboundSchema,
|
|
39
|
-
ResponsesOutputMessage$outboundSchema,
|
|
40
|
-
ResponsesOutputItemFunctionCall$outboundSchema,
|
|
41
|
-
ResponsesOutputItemFileSearchCall$outboundSchema,
|
|
42
|
-
OpenResponsesReasoning$outboundSchema,
|
|
43
|
-
OpenResponsesFunctionCallOutput$outboundSchema,
|
|
44
|
-
ResponsesOutputItemReasoning$outboundSchema,
|
|
45
|
-
ResponsesWebSearchCallOutput$outboundSchema,
|
|
46
|
-
ResponsesImageGenerationCall$outboundSchema,
|
|
47
|
-
OpenResponsesEasyInputMessage$outboundSchema,
|
|
48
|
-
OpenResponsesInputMessageItem$outboundSchema,
|
|
49
|
-
])),
|
|
50
|
-
]);
|
|
51
|
-
export function openResponsesInputToJSON(openResponsesInput) {
|
|
52
|
-
return JSON.stringify(OpenResponsesInput$outboundSchema.parse(openResponsesInput));
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=openresponsesinput.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
import { OpenResponsesTopLogprobs } from "./openresponsestoplogprobs.js";
|
|
5
|
-
/**
|
|
6
|
-
* Log probability information for a token
|
|
7
|
-
*/
|
|
8
|
-
export type OpenResponsesLogProbs = {
|
|
9
|
-
logprob: number;
|
|
10
|
-
token: string;
|
|
11
|
-
topLogprobs?: Array<OpenResponsesTopLogprobs> | undefined;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const OpenResponsesLogProbs$inboundSchema: z.ZodType<OpenResponsesLogProbs, unknown>;
|
|
15
|
-
export declare function openResponsesLogProbsFromJSON(jsonString: string): SafeParseResult<OpenResponsesLogProbs, SDKValidationError>;
|
|
16
|
-
//# sourceMappingURL=openresponseslogprobs.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 7ec69a3158fc
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { OpenResponsesTopLogprobs$inboundSchema, } from "./openresponsestoplogprobs.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesLogProbs$inboundSchema = z.object({
|
|
11
|
-
logprob: z.number(),
|
|
12
|
-
token: z.string(),
|
|
13
|
-
top_logprobs: z.array(OpenResponsesTopLogprobs$inboundSchema).optional(),
|
|
14
|
-
}).transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
"top_logprobs": "topLogprobs",
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
export function openResponsesLogProbsFromJSON(jsonString) {
|
|
20
|
-
return safeParse(jsonString, (x) => OpenResponsesLogProbs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesLogProbs' from JSON`);
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=openresponseslogprobs.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Alternative token with its log probability
|
|
6
|
-
*/
|
|
7
|
-
export type OpenResponsesTopLogprobs = {
|
|
8
|
-
token?: string | undefined;
|
|
9
|
-
logprob?: number | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const OpenResponsesTopLogprobs$inboundSchema: z.ZodType<OpenResponsesTopLogprobs, unknown>;
|
|
13
|
-
export declare function openResponsesTopLogprobsFromJSON(jsonString: string): SafeParseResult<OpenResponsesTopLogprobs, SDKValidationError>;
|
|
14
|
-
//# sourceMappingURL=openresponsestoplogprobs.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 9deb0a6359d1
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const OpenResponsesTopLogprobs$inboundSchema = z.object({
|
|
9
|
-
token: z.string().optional(),
|
|
10
|
-
logprob: z.number().optional(),
|
|
11
|
-
});
|
|
12
|
-
export function openResponsesTopLogprobsFromJSON(jsonString) {
|
|
13
|
-
return safeParse(jsonString, (x) => OpenResponsesTopLogprobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesTopLogprobs' from JSON`);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=openresponsestoplogprobs.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { ProviderSort } from "./providersort.js";
|
|
3
|
-
import { ProviderSortConfig, ProviderSortConfig$Outbound } from "./providersortconfig.js";
|
|
4
|
-
export type ProviderSortUnion = ProviderSort | ProviderSortConfig;
|
|
5
|
-
/** @internal */
|
|
6
|
-
export type ProviderSortUnion$Outbound = string | ProviderSortConfig$Outbound;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const ProviderSortUnion$outboundSchema: z.ZodType<ProviderSortUnion$Outbound, ProviderSortUnion>;
|
|
9
|
-
export declare function providerSortUnionToJSON(providerSortUnion: ProviderSortUnion): string;
|
|
10
|
-
//# sourceMappingURL=providersortunion.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 7a2d23baab80
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { ProviderSort$outboundSchema } from "./providersort.js";
|
|
7
|
-
import { ProviderSortConfig$outboundSchema, } from "./providersortconfig.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const ProviderSortUnion$outboundSchema = z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema]);
|
|
10
|
-
export function providerSortUnionToJSON(providerSortUnion) {
|
|
11
|
-
return JSON.stringify(ProviderSortUnion$outboundSchema.parse(providerSortUnion));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=providersortunion.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* JSON object response format
|
|
6
|
-
*/
|
|
7
|
-
export type ResponsesFormatJSONObject = {
|
|
8
|
-
type: "json_object";
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const ResponsesFormatJSONObject$inboundSchema: z.ZodType<ResponsesFormatJSONObject, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type ResponsesFormatJSONObject$Outbound = {
|
|
14
|
-
type: "json_object";
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const ResponsesFormatJSONObject$outboundSchema: z.ZodType<ResponsesFormatJSONObject$Outbound, ResponsesFormatJSONObject>;
|
|
18
|
-
export declare function responsesFormatJSONObjectToJSON(responsesFormatJSONObject: ResponsesFormatJSONObject): string;
|
|
19
|
-
export declare function responsesFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<ResponsesFormatJSONObject, SDKValidationError>;
|
|
20
|
-
//# sourceMappingURL=responsesformatjsonobject.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: cd67052e598c
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const ResponsesFormatJSONObject$inboundSchema = z.object({
|
|
9
|
-
type: z.literal("json_object"),
|
|
10
|
-
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const ResponsesFormatJSONObject$outboundSchema = z.object({
|
|
13
|
-
type: z.literal("json_object"),
|
|
14
|
-
});
|
|
15
|
-
export function responsesFormatJSONObjectToJSON(responsesFormatJSONObject) {
|
|
16
|
-
return JSON.stringify(ResponsesFormatJSONObject$outboundSchema.parse(responsesFormatJSONObject));
|
|
17
|
-
}
|
|
18
|
-
export function responsesFormatJSONObjectFromJSON(jsonString) {
|
|
19
|
-
return safeParse(jsonString, (x) => ResponsesFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesFormatJSONObject' from JSON`);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=responsesformatjsonobject.js.map
|
package/esm/models/schema10.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Schema14, Schema14$Outbound } from "./schema14.js";
|
|
3
|
-
export type Prompt = number | string | any;
|
|
4
|
-
export type Completion = number | string | any;
|
|
5
|
-
export type Schema10 = {
|
|
6
|
-
prompt?: number | string | any | undefined;
|
|
7
|
-
completion?: number | string | any | undefined;
|
|
8
|
-
image?: Schema14 | undefined;
|
|
9
|
-
audio?: Schema14 | undefined;
|
|
10
|
-
request?: Schema14 | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type Prompt$Outbound = number | string | any;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const Prompt$outboundSchema: z.ZodType<Prompt$Outbound, Prompt>;
|
|
16
|
-
export declare function promptToJSON(prompt: Prompt): string;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type Completion$Outbound = number | string | any;
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const Completion$outboundSchema: z.ZodType<Completion$Outbound, Completion>;
|
|
21
|
-
export declare function completionToJSON(completion: Completion): string;
|
|
22
|
-
/** @internal */
|
|
23
|
-
export type Schema10$Outbound = {
|
|
24
|
-
prompt?: number | string | any | undefined;
|
|
25
|
-
completion?: number | string | any | undefined;
|
|
26
|
-
image?: Schema14$Outbound | undefined;
|
|
27
|
-
audio?: Schema14$Outbound | undefined;
|
|
28
|
-
request?: Schema14$Outbound | undefined;
|
|
29
|
-
};
|
|
30
|
-
/** @internal */
|
|
31
|
-
export declare const Schema10$outboundSchema: z.ZodType<Schema10$Outbound, Schema10>;
|
|
32
|
-
export declare function schema10ToJSON(schema10: Schema10): string;
|
|
33
|
-
//# sourceMappingURL=schema10.d.ts.map
|
package/esm/models/schema10.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 3a361cbac0f8
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { Schema14$outboundSchema, } from "./schema14.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const Prompt$outboundSchema = z
|
|
9
|
-
.union([z.number(), z.string(), z.any()]);
|
|
10
|
-
export function promptToJSON(prompt) {
|
|
11
|
-
return JSON.stringify(Prompt$outboundSchema.parse(prompt));
|
|
12
|
-
}
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const Completion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
15
|
-
export function completionToJSON(completion) {
|
|
16
|
-
return JSON.stringify(Completion$outboundSchema.parse(completion));
|
|
17
|
-
}
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const Schema10$outboundSchema = z
|
|
20
|
-
.object({
|
|
21
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
22
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
23
|
-
image: Schema14$outboundSchema.optional(),
|
|
24
|
-
audio: Schema14$outboundSchema.optional(),
|
|
25
|
-
request: Schema14$outboundSchema.optional(),
|
|
26
|
-
});
|
|
27
|
-
export function schema10ToJSON(schema10) {
|
|
28
|
-
return JSON.stringify(Schema10$outboundSchema.parse(schema10));
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=schema10.js.map
|
package/esm/models/schema14.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
export type Schema14 = number | string | any;
|
|
3
|
-
/** @internal */
|
|
4
|
-
export type Schema14$Outbound = number | string | any;
|
|
5
|
-
/** @internal */
|
|
6
|
-
export declare const Schema14$outboundSchema: z.ZodType<Schema14$Outbound, Schema14>;
|
|
7
|
-
export declare function schema14ToJSON(schema14: Schema14): string;
|
|
8
|
-
//# sourceMappingURL=schema14.d.ts.map
|
package/esm/models/schema14.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 197e0ddbcace
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const Schema14$outboundSchema = z
|
|
8
|
-
.union([z.number(), z.string(), z.any()]);
|
|
9
|
-
export function schema14ToJSON(schema14) {
|
|
10
|
-
return JSON.stringify(Schema14$outboundSchema.parse(schema14));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=schema14.js.map
|
package/esm/models/schema17.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
export type Schema17ResponseHealing = {
|
|
4
|
-
id: "response-healing";
|
|
5
|
-
enabled?: boolean | undefined;
|
|
6
|
-
};
|
|
7
|
-
export declare const PdfEngine: {
|
|
8
|
-
readonly MistralOcr: "mistral-ocr";
|
|
9
|
-
readonly PdfText: "pdf-text";
|
|
10
|
-
readonly Native: "native";
|
|
11
|
-
};
|
|
12
|
-
export type PdfEngine = OpenEnum<typeof PdfEngine>;
|
|
13
|
-
export type Pdf = {
|
|
14
|
-
engine?: PdfEngine | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type Schema17FileParser = {
|
|
17
|
-
id: "file-parser";
|
|
18
|
-
enabled?: boolean | undefined;
|
|
19
|
-
pdf?: Pdf | undefined;
|
|
20
|
-
};
|
|
21
|
-
export declare const Engine: {
|
|
22
|
-
readonly Native: "native";
|
|
23
|
-
readonly Exa: "exa";
|
|
24
|
-
};
|
|
25
|
-
export type Engine = OpenEnum<typeof Engine>;
|
|
26
|
-
export type Schema17Web = {
|
|
27
|
-
id: "web";
|
|
28
|
-
enabled?: boolean | undefined;
|
|
29
|
-
maxResults?: number | undefined;
|
|
30
|
-
searchPrompt?: string | undefined;
|
|
31
|
-
engine?: Engine | undefined;
|
|
32
|
-
};
|
|
33
|
-
export type Schema17Moderation = {
|
|
34
|
-
id: "moderation";
|
|
35
|
-
};
|
|
36
|
-
export type Schema17AutoRouter = {
|
|
37
|
-
id: "auto-router";
|
|
38
|
-
enabled?: boolean | undefined;
|
|
39
|
-
allowedModels?: Array<string> | undefined;
|
|
40
|
-
};
|
|
41
|
-
export type Schema17 = Schema17AutoRouter | Schema17Moderation | Schema17Web | Schema17FileParser | Schema17ResponseHealing;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type Schema17ResponseHealing$Outbound = {
|
|
44
|
-
id: "response-healing";
|
|
45
|
-
enabled?: boolean | undefined;
|
|
46
|
-
};
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const Schema17ResponseHealing$outboundSchema: z.ZodType<Schema17ResponseHealing$Outbound, Schema17ResponseHealing>;
|
|
49
|
-
export declare function schema17ResponseHealingToJSON(schema17ResponseHealing: Schema17ResponseHealing): string;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const PdfEngine$outboundSchema: z.ZodType<string, PdfEngine>;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export type Pdf$Outbound = {
|
|
54
|
-
engine?: string | undefined;
|
|
55
|
-
};
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const Pdf$outboundSchema: z.ZodType<Pdf$Outbound, Pdf>;
|
|
58
|
-
export declare function pdfToJSON(pdf: Pdf): string;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type Schema17FileParser$Outbound = {
|
|
61
|
-
id: "file-parser";
|
|
62
|
-
enabled?: boolean | undefined;
|
|
63
|
-
pdf?: Pdf$Outbound | undefined;
|
|
64
|
-
};
|
|
65
|
-
/** @internal */
|
|
66
|
-
export declare const Schema17FileParser$outboundSchema: z.ZodType<Schema17FileParser$Outbound, Schema17FileParser>;
|
|
67
|
-
export declare function schema17FileParserToJSON(schema17FileParser: Schema17FileParser): string;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const Engine$outboundSchema: z.ZodType<string, Engine>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export type Schema17Web$Outbound = {
|
|
72
|
-
id: "web";
|
|
73
|
-
enabled?: boolean | undefined;
|
|
74
|
-
max_results?: number | undefined;
|
|
75
|
-
search_prompt?: string | undefined;
|
|
76
|
-
engine?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
/** @internal */
|
|
79
|
-
export declare const Schema17Web$outboundSchema: z.ZodType<Schema17Web$Outbound, Schema17Web>;
|
|
80
|
-
export declare function schema17WebToJSON(schema17Web: Schema17Web): string;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export type Schema17Moderation$Outbound = {
|
|
83
|
-
id: "moderation";
|
|
84
|
-
};
|
|
85
|
-
/** @internal */
|
|
86
|
-
export declare const Schema17Moderation$outboundSchema: z.ZodType<Schema17Moderation$Outbound, Schema17Moderation>;
|
|
87
|
-
export declare function schema17ModerationToJSON(schema17Moderation: Schema17Moderation): string;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export type Schema17AutoRouter$Outbound = {
|
|
90
|
-
id: "auto-router";
|
|
91
|
-
enabled?: boolean | undefined;
|
|
92
|
-
allowed_models?: Array<string> | undefined;
|
|
93
|
-
};
|
|
94
|
-
/** @internal */
|
|
95
|
-
export declare const Schema17AutoRouter$outboundSchema: z.ZodType<Schema17AutoRouter$Outbound, Schema17AutoRouter>;
|
|
96
|
-
export declare function schema17AutoRouterToJSON(schema17AutoRouter: Schema17AutoRouter): string;
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type Schema17$Outbound = Schema17AutoRouter$Outbound | Schema17Moderation$Outbound | Schema17Web$Outbound | Schema17FileParser$Outbound | Schema17ResponseHealing$Outbound;
|
|
99
|
-
/** @internal */
|
|
100
|
-
export declare const Schema17$outboundSchema: z.ZodType<Schema17$Outbound, Schema17>;
|
|
101
|
-
export declare function schema17ToJSON(schema17: Schema17): string;
|
|
102
|
-
//# sourceMappingURL=schema17.d.ts.map
|
package/esm/models/schema17.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: f882e1dc50da
|
|
4
|
-
*/
|
|
5
|
-
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
export const PdfEngine = {
|
|
9
|
-
MistralOcr: "mistral-ocr",
|
|
10
|
-
PdfText: "pdf-text",
|
|
11
|
-
Native: "native",
|
|
12
|
-
};
|
|
13
|
-
export const Engine = {
|
|
14
|
-
Native: "native",
|
|
15
|
-
Exa: "exa",
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const Schema17ResponseHealing$outboundSchema = z.object({
|
|
19
|
-
id: z.literal("response-healing"),
|
|
20
|
-
enabled: z.boolean().optional(),
|
|
21
|
-
});
|
|
22
|
-
export function schema17ResponseHealingToJSON(schema17ResponseHealing) {
|
|
23
|
-
return JSON.stringify(Schema17ResponseHealing$outboundSchema.parse(schema17ResponseHealing));
|
|
24
|
-
}
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const PdfEngine$outboundSchema = openEnums
|
|
27
|
-
.outboundSchema(PdfEngine);
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const Pdf$outboundSchema = z.object({
|
|
30
|
-
engine: PdfEngine$outboundSchema.optional(),
|
|
31
|
-
});
|
|
32
|
-
export function pdfToJSON(pdf) {
|
|
33
|
-
return JSON.stringify(Pdf$outboundSchema.parse(pdf));
|
|
34
|
-
}
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Schema17FileParser$outboundSchema = z.object({
|
|
37
|
-
id: z.literal("file-parser"),
|
|
38
|
-
enabled: z.boolean().optional(),
|
|
39
|
-
pdf: z.lazy(() => Pdf$outboundSchema).optional(),
|
|
40
|
-
});
|
|
41
|
-
export function schema17FileParserToJSON(schema17FileParser) {
|
|
42
|
-
return JSON.stringify(Schema17FileParser$outboundSchema.parse(schema17FileParser));
|
|
43
|
-
}
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const Engine$outboundSchema = openEnums
|
|
46
|
-
.outboundSchema(Engine);
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const Schema17Web$outboundSchema = z.object({
|
|
49
|
-
id: z.literal("web"),
|
|
50
|
-
enabled: z.boolean().optional(),
|
|
51
|
-
maxResults: z.number().optional(),
|
|
52
|
-
searchPrompt: z.string().optional(),
|
|
53
|
-
engine: Engine$outboundSchema.optional(),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
maxResults: "max_results",
|
|
57
|
-
searchPrompt: "search_prompt",
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
export function schema17WebToJSON(schema17Web) {
|
|
61
|
-
return JSON.stringify(Schema17Web$outboundSchema.parse(schema17Web));
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const Schema17Moderation$outboundSchema = z.object({
|
|
65
|
-
id: z.literal("moderation"),
|
|
66
|
-
});
|
|
67
|
-
export function schema17ModerationToJSON(schema17Moderation) {
|
|
68
|
-
return JSON.stringify(Schema17Moderation$outboundSchema.parse(schema17Moderation));
|
|
69
|
-
}
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const Schema17AutoRouter$outboundSchema = z.object({
|
|
72
|
-
id: z.literal("auto-router"),
|
|
73
|
-
enabled: z.boolean().optional(),
|
|
74
|
-
allowedModels: z.array(z.string()).optional(),
|
|
75
|
-
}).transform((v) => {
|
|
76
|
-
return remap$(v, {
|
|
77
|
-
allowedModels: "allowed_models",
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
export function schema17AutoRouterToJSON(schema17AutoRouter) {
|
|
81
|
-
return JSON.stringify(Schema17AutoRouter$outboundSchema.parse(schema17AutoRouter));
|
|
82
|
-
}
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const Schema17$outboundSchema = z
|
|
85
|
-
.union([
|
|
86
|
-
z.lazy(() => Schema17AutoRouter$outboundSchema),
|
|
87
|
-
z.lazy(() => Schema17Moderation$outboundSchema),
|
|
88
|
-
z.lazy(() => Schema17Web$outboundSchema),
|
|
89
|
-
z.lazy(() => Schema17FileParser$outboundSchema),
|
|
90
|
-
z.lazy(() => Schema17ResponseHealing$outboundSchema),
|
|
91
|
-
]);
|
|
92
|
-
export function schema17ToJSON(schema17) {
|
|
93
|
-
return JSON.stringify(Schema17$outboundSchema.parse(schema17));
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=schema17.js.map
|
package/esm/models/schema19.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const Schema21: {
|
|
6
|
-
readonly Unknown: "unknown";
|
|
7
|
-
readonly OpenaiResponsesV1: "openai-responses-v1";
|
|
8
|
-
readonly AzureOpenaiResponsesV1: "azure-openai-responses-v1";
|
|
9
|
-
readonly XaiResponsesV1: "xai-responses-v1";
|
|
10
|
-
readonly AnthropicClaudeV1: "anthropic-claude-v1";
|
|
11
|
-
readonly GoogleGeminiV1: "google-gemini-v1";
|
|
12
|
-
};
|
|
13
|
-
export type Schema21 = OpenEnum<typeof Schema21>;
|
|
14
|
-
export type Schema19ReasoningText = {
|
|
15
|
-
type: "reasoning.text";
|
|
16
|
-
text?: string | null | undefined;
|
|
17
|
-
signature?: string | null | undefined;
|
|
18
|
-
id?: string | null | undefined;
|
|
19
|
-
format?: Schema21 | null | undefined;
|
|
20
|
-
index?: number | undefined;
|
|
21
|
-
};
|
|
22
|
-
export type Schema19ReasoningEncrypted = {
|
|
23
|
-
type: "reasoning.encrypted";
|
|
24
|
-
data: string;
|
|
25
|
-
id?: string | null | undefined;
|
|
26
|
-
format?: Schema21 | null | undefined;
|
|
27
|
-
index?: number | undefined;
|
|
28
|
-
};
|
|
29
|
-
export type Schema19ReasoningSummary = {
|
|
30
|
-
type: "reasoning.summary";
|
|
31
|
-
summary: string;
|
|
32
|
-
id?: string | null | undefined;
|
|
33
|
-
format?: Schema21 | null | undefined;
|
|
34
|
-
index?: number | undefined;
|
|
35
|
-
};
|
|
36
|
-
export type Schema19 = Schema19ReasoningSummary | Schema19ReasoningEncrypted | Schema19ReasoningText;
|
|
37
|
-
/** @internal */
|
|
38
|
-
export declare const Schema21$inboundSchema: z.ZodType<Schema21, unknown>;
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const Schema21$outboundSchema: z.ZodType<string, Schema21>;
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const Schema19ReasoningText$inboundSchema: z.ZodType<Schema19ReasoningText, unknown>;
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type Schema19ReasoningText$Outbound = {
|
|
45
|
-
type: "reasoning.text";
|
|
46
|
-
text?: string | null | undefined;
|
|
47
|
-
signature?: string | null | undefined;
|
|
48
|
-
id?: string | null | undefined;
|
|
49
|
-
format?: string | null | undefined;
|
|
50
|
-
index?: number | undefined;
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const Schema19ReasoningText$outboundSchema: z.ZodType<Schema19ReasoningText$Outbound, Schema19ReasoningText>;
|
|
54
|
-
export declare function schema19ReasoningTextToJSON(schema19ReasoningText: Schema19ReasoningText): string;
|
|
55
|
-
export declare function schema19ReasoningTextFromJSON(jsonString: string): SafeParseResult<Schema19ReasoningText, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const Schema19ReasoningEncrypted$inboundSchema: z.ZodType<Schema19ReasoningEncrypted, unknown>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type Schema19ReasoningEncrypted$Outbound = {
|
|
60
|
-
type: "reasoning.encrypted";
|
|
61
|
-
data: string;
|
|
62
|
-
id?: string | null | undefined;
|
|
63
|
-
format?: string | null | undefined;
|
|
64
|
-
index?: number | undefined;
|
|
65
|
-
};
|
|
66
|
-
/** @internal */
|
|
67
|
-
export declare const Schema19ReasoningEncrypted$outboundSchema: z.ZodType<Schema19ReasoningEncrypted$Outbound, Schema19ReasoningEncrypted>;
|
|
68
|
-
export declare function schema19ReasoningEncryptedToJSON(schema19ReasoningEncrypted: Schema19ReasoningEncrypted): string;
|
|
69
|
-
export declare function schema19ReasoningEncryptedFromJSON(jsonString: string): SafeParseResult<Schema19ReasoningEncrypted, SDKValidationError>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const Schema19ReasoningSummary$inboundSchema: z.ZodType<Schema19ReasoningSummary, unknown>;
|
|
72
|
-
/** @internal */
|
|
73
|
-
export type Schema19ReasoningSummary$Outbound = {
|
|
74
|
-
type: "reasoning.summary";
|
|
75
|
-
summary: string;
|
|
76
|
-
id?: string | null | undefined;
|
|
77
|
-
format?: string | null | undefined;
|
|
78
|
-
index?: number | undefined;
|
|
79
|
-
};
|
|
80
|
-
/** @internal */
|
|
81
|
-
export declare const Schema19ReasoningSummary$outboundSchema: z.ZodType<Schema19ReasoningSummary$Outbound, Schema19ReasoningSummary>;
|
|
82
|
-
export declare function schema19ReasoningSummaryToJSON(schema19ReasoningSummary: Schema19ReasoningSummary): string;
|
|
83
|
-
export declare function schema19ReasoningSummaryFromJSON(jsonString: string): SafeParseResult<Schema19ReasoningSummary, SDKValidationError>;
|
|
84
|
-
/** @internal */
|
|
85
|
-
export declare const Schema19$inboundSchema: z.ZodType<Schema19, unknown>;
|
|
86
|
-
/** @internal */
|
|
87
|
-
export type Schema19$Outbound = Schema19ReasoningSummary$Outbound | Schema19ReasoningEncrypted$Outbound | Schema19ReasoningText$Outbound;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export declare const Schema19$outboundSchema: z.ZodType<Schema19$Outbound, Schema19>;
|
|
90
|
-
export declare function schema19ToJSON(schema19: Schema19): string;
|
|
91
|
-
export declare function schema19FromJSON(jsonString: string): SafeParseResult<Schema19, SDKValidationError>;
|
|
92
|
-
//# sourceMappingURL=schema19.d.ts.map
|