@openrouter/sdk 0.0.1-beta.9 → 0.1.0
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/REACT_QUERY.md +3 -12
- package/README.md +52 -396
- package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -2
- package/esm/funcs/apiKeysCreate.d.ts +1 -1
- package/esm/funcs/apiKeysCreate.js +2 -2
- package/esm/funcs/apiKeysDelete.d.ts +1 -1
- package/esm/funcs/apiKeysDelete.js +2 -2
- package/esm/funcs/apiKeysGet.d.ts +1 -1
- package/esm/funcs/apiKeysGet.js +2 -2
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +2 -2
- package/esm/funcs/apiKeysUpdate.d.ts +1 -1
- package/esm/funcs/apiKeysUpdate.js +2 -2
- package/esm/funcs/betaResponsesSend.d.ts +9 -1
- package/esm/funcs/betaResponsesSend.js +38 -14
- package/esm/funcs/chatSend.d.ts +7 -0
- package/esm/funcs/chatSend.js +1 -7
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
- package/esm/funcs/creditsGetCredits.d.ts +1 -1
- package/esm/funcs/creditsGetCredits.js +2 -2
- package/esm/funcs/endpointsList.d.ts +1 -1
- package/esm/funcs/endpointsList.js +2 -2
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
- package/esm/funcs/generationsGetGeneration.d.ts +1 -1
- package/esm/funcs/generationsGetGeneration.js +13 -2
- package/esm/funcs/modelsCount.d.ts +3 -2
- package/esm/funcs/modelsCount.js +7 -3
- package/esm/funcs/modelsList.d.ts +3 -1
- package/esm/funcs/modelsList.js +8 -7
- package/esm/funcs/modelsListForUser.d.ts +3 -1
- package/esm/funcs/modelsListForUser.js +7 -3
- package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
- package/esm/funcs/oAuthCreateAuthCode.js +82 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
- package/esm/funcs/parametersGetParameters.d.ts +1 -1
- package/esm/funcs/parametersGetParameters.js +2 -2
- package/esm/funcs/providersList.d.ts +1 -1
- package/esm/funcs/providersList.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/event-streams.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
- package/esm/models/badgatewayresponseerrordata.js +35 -0
- package/esm/models/badrequestresponseerrordata.d.ts +40 -0
- package/esm/models/badrequestresponseerrordata.js +35 -0
- package/esm/models/chatgenerationparams.d.ts +12 -12
- package/esm/models/chatgenerationparams.js +16 -16
- package/esm/models/chatgenerationtokenusage.d.ts +2 -2
- package/esm/models/chatgenerationtokenusage.js +2 -4
- package/esm/models/chatmessagetokenlogprob.d.ts +15 -15
- package/esm/models/chatmessagetokenlogprob.js +16 -15
- package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
- package/esm/models/chatstreamingresponsechunk.js +15 -15
- package/esm/models/completioncreateparams.d.ts +2 -2
- package/esm/models/completioncreateparams.js +2 -2
- package/esm/models/createchargerequest.d.ts +31 -2
- package/esm/models/createchargerequest.js +47 -2
- package/esm/models/defaultparameters.d.ts +36 -0
- package/esm/models/defaultparameters.js +46 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
- package/esm/models/endpointstatus.d.ts +26 -0
- package/esm/models/endpointstatus.js +36 -0
- package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
- package/esm/models/errors/badgatewayresponseerror.js +63 -0
- package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
- package/esm/models/errors/badrequestresponseerror.js +63 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
- package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
- package/esm/models/errors/forbiddenresponseerror.js +63 -0
- package/esm/models/errors/index.d.ts +14 -2
- package/esm/models/errors/index.js +14 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
- package/esm/models/errors/internalserverresponseerror.js +63 -0
- package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
- package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
- package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
- package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
- package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
- package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
- package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
- package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
- package/esm/models/errors/unauthorizedresponseerror.js +63 -0
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
- package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
- package/esm/models/filecitation.d.ts +58 -0
- package/esm/models/filecitation.js +65 -0
- package/esm/models/filepath.d.ts +56 -0
- package/esm/models/filepath.js +64 -0
- package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
- package/esm/models/forbiddenresponseerrordata.js +35 -0
- package/esm/models/index.d.ts +67 -23
- package/esm/models/index.js +67 -23
- package/esm/models/inputmodality.d.ts +25 -0
- package/esm/models/inputmodality.js +35 -0
- package/esm/models/instructtype.d.ts +48 -0
- package/esm/models/instructtype.js +55 -0
- package/esm/models/internalserverresponseerrordata.d.ts +40 -0
- package/esm/models/internalserverresponseerrordata.js +35 -0
- package/esm/models/listendpointsresponse.d.ts +126 -2
- package/esm/models/listendpointsresponse.js +115 -2
- package/esm/models/model.d.ts +101 -0
- package/esm/models/model.js +82 -0
- package/esm/models/modelarchitecture.d.ts +104 -0
- package/esm/models/modelarchitecture.js +107 -0
- package/esm/models/modelgroup.d.ts +45 -0
- package/esm/models/modelgroup.js +53 -0
- package/esm/models/modelscountresponse.d.ts +40 -2
- package/esm/models/modelscountresponse.js +31 -2
- package/esm/models/modelslistresponse.d.ts +10 -2
- package/esm/models/modelslistresponse.js +7 -2
- package/esm/models/notfoundresponseerrordata.d.ts +40 -0
- package/esm/models/notfoundresponseerrordata.js +35 -0
- package/esm/models/openairesponsesannotation.d.ts +28 -0
- package/esm/models/openairesponsesannotation.js +38 -0
- package/esm/models/openairesponsesincludable.d.ts +25 -0
- package/esm/models/openairesponsesincludable.js +35 -0
- package/esm/models/openairesponsesincompletedetails.d.ts +49 -0
- package/esm/models/openairesponsesincompletedetails.js +58 -0
- package/esm/models/openairesponsesinputunion.d.ts +588 -0
- package/esm/models/openairesponsesinputunion.js +686 -0
- package/esm/models/openairesponsesprompt.d.ts +83 -0
- package/esm/models/openairesponsesprompt.js +97 -0
- package/esm/models/openairesponsesreasoningconfig.d.ts +33 -0
- package/esm/models/openairesponsesreasoningconfig.js +35 -0
- package/esm/models/openairesponsesreasoningeffort.d.ts +24 -0
- package/esm/models/openairesponsesreasoningeffort.js +34 -0
- package/esm/models/openairesponsesrefusalcontent.d.ts +54 -0
- package/esm/models/openairesponsesrefusalcontent.js +51 -0
- package/esm/models/openairesponsesresponsestatus.d.ts +26 -0
- package/esm/models/openairesponsesresponsestatus.js +36 -0
- package/esm/models/openairesponsesservicetier.d.ts +25 -0
- package/esm/models/openairesponsesservicetier.js +35 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +231 -0
- package/esm/models/openairesponsestoolchoiceunion.js +233 -0
- package/esm/models/openairesponsestruncation.d.ts +22 -0
- package/esm/models/openairesponsestruncation.js +32 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +75 -19
- package/esm/models/openresponseseasyinputmessage.js +105 -16
- package/esm/models/openresponseserrorevent.d.ts +63 -0
- package/esm/models/openresponseserrorevent.js +66 -0
- package/esm/models/openresponsesimagegencallcompleted.d.ts +61 -0
- package/esm/models/openresponsesimagegencallcompleted.js +68 -0
- package/esm/models/openresponsesimagegencallgenerating.d.ts +61 -0
- package/esm/models/openresponsesimagegencallgenerating.js +68 -0
- package/esm/models/openresponsesimagegencallinprogress.d.ts +61 -0
- package/esm/models/openresponsesimagegencallinprogress.js +68 -0
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +65 -0
- package/esm/models/openresponsesimagegencallpartialimage.js +76 -0
- package/esm/models/openresponsesinput.d.ts +36 -5
- package/esm/models/openresponsesinput.js +82 -5
- package/esm/models/openresponsesinputmessageitem.d.ts +52 -8
- package/esm/models/openresponsesinputmessageitem.js +68 -5
- package/esm/models/openresponseslogprobs.d.ts +3 -32
- package/esm/models/openresponseslogprobs.js +3 -29
- package/esm/models/openresponsesnonstreamingresponse.d.ts +93 -123
- package/esm/models/openresponsesnonstreamingresponse.js +111 -145
- package/esm/models/openresponsesreasoning.d.ts +89 -0
- package/esm/models/openresponsesreasoning.js +93 -0
- package/esm/models/openresponsesreasoningconfig.d.ts +2 -23
- package/esm/models/openresponsesreasoningconfig.js +3 -33
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdoneevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +66 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +75 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +74 -0
- package/esm/models/openresponsesrequest.d.ts +736 -2
- package/esm/models/openresponsesrequest.js +789 -2
- package/esm/models/openresponsesresponsetext.d.ts +59 -0
- package/esm/models/openresponsesresponsetext.js +64 -0
- package/esm/models/openresponsesstreamevent.d.ts +25 -612
- package/esm/models/openresponsesstreamevent.js +51 -742
- package/esm/models/openresponsestoplogprobs.d.ts +34 -0
- package/esm/models/openresponsestoplogprobs.js +33 -0
- package/esm/models/{responsesusage.d.ts → openresponsesusage.d.ts} +14 -14
- package/esm/models/{responsesusage.js → openresponsesusage.js} +14 -14
- package/esm/models/operations/createauthkeyscode.d.ts +145 -0
- package/esm/models/operations/createauthkeyscode.js +146 -0
- package/esm/models/operations/createresponses.d.ts +58 -0
- package/esm/models/operations/createresponses.js +80 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
- package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
- package/esm/models/operations/getmodels.d.ts +0 -26
- package/esm/models/operations/getmodels.js +0 -38
- package/esm/models/operations/getparameters.d.ts +1 -0
- package/esm/models/operations/getparameters.js +1 -0
- package/esm/models/operations/index.d.ts +3 -2
- package/esm/models/operations/index.js +3 -2
- package/esm/models/operations/listendpointszdr.d.ts +3 -24
- package/esm/models/operations/listendpointszdr.js +2 -29
- package/esm/models/operations/listmodelsuser.d.ts +0 -22
- package/esm/models/operations/listmodelsuser.js +0 -28
- package/esm/models/operations/listproviders.d.ts +0 -36
- package/esm/models/operations/listproviders.js +0 -28
- package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
- package/esm/models/operations/sendchatcompletionrequest.js +2 -1
- package/esm/models/outputitemimagegenerationcall.d.ts +59 -0
- package/esm/models/outputitemimagegenerationcall.js +56 -0
- package/esm/models/outputmessage.d.ts +192 -0
- package/esm/models/outputmessage.js +202 -0
- package/esm/models/outputmodality.d.ts +23 -0
- package/esm/models/outputmodality.js +33 -0
- package/esm/models/parameter.d.ts +43 -0
- package/esm/models/parameter.js +54 -0
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
- package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
- package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
- package/esm/models/paymentrequiredresponseerrordata.js +35 -0
- package/esm/models/perrequestlimits.d.ts +40 -0
- package/esm/models/perrequestlimits.js +44 -0
- package/esm/models/providername.d.ts +106 -0
- package/esm/models/providername.js +116 -0
- package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
- package/esm/models/provideroverloadedresponseerrordata.js +35 -0
- package/esm/models/publicendpoint.d.ts +140 -2
- package/esm/models/publicendpoint.js +156 -2
- package/esm/models/publicpricing.d.ts +87 -0
- package/esm/models/publicpricing.js +73 -0
- package/esm/models/quantization.d.ts +29 -0
- package/esm/models/quantization.js +39 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/requesttimeoutresponseerrordata.js +35 -0
- package/esm/models/responseformattextconfig.d.ts +31 -0
- package/esm/models/responseformattextconfig.js +38 -0
- package/esm/models/responseinputfile.d.ts +63 -0
- package/esm/models/responseinputfile.js +70 -0
- package/esm/models/responseinputimage.d.ts +79 -0
- package/esm/models/responseinputimage.js +90 -0
- package/esm/models/responseinputtext.d.ts +57 -0
- package/esm/models/responseinputtext.js +51 -0
- package/esm/models/responseoutputtext.d.ts +57 -0
- package/esm/models/responseoutputtext.js +54 -0
- package/esm/models/responseserrorfield.d.ts +25 -10
- package/esm/models/responseserrorfield.js +29 -14
- package/esm/models/responsesformatjsonobject.d.ts +55 -0
- package/esm/models/responsesformatjsonobject.js +49 -0
- package/esm/models/responsesformattext.d.ts +55 -0
- package/esm/models/responsesformattext.js +49 -0
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +67 -0
- package/esm/models/responsesformattextjsonschemaconfig.js +57 -0
- package/esm/models/responsesoutputitemfunctioncall.d.ts +89 -0
- package/esm/models/responsesoutputitemfunctioncall.js +93 -0
- package/esm/models/responsesoutputitemreasoning.d.ts +92 -0
- package/esm/models/responsesoutputitemreasoning.js +93 -0
- package/esm/models/responsesoutputmessage.d.ts +45 -42
- package/esm/models/responsesoutputmessage.js +76 -65
- package/esm/models/responsetextconfig.d.ts +59 -0
- package/esm/models/responsetextconfig.js +62 -0
- package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
- package/esm/models/serviceunavailableresponseerrordata.js +35 -0
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
- package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
- package/esm/models/topproviderinfo.d.ts +45 -0
- package/esm/models/topproviderinfo.js +48 -0
- package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
- package/esm/models/unauthorizedresponseerrordata.js +35 -0
- package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
- package/esm/models/unprocessableentityresponseerrordata.js +35 -0
- package/esm/models/urlcitation.d.ts +60 -0
- package/esm/models/urlcitation.js +69 -0
- package/esm/react-query/betaResponsesSend.d.ts +1 -1
- package/esm/react-query/index.d.ts +2 -0
- package/esm/react-query/index.js +2 -0
- package/esm/react-query/modelsCount.d.ts +2 -2
- package/esm/react-query/modelsList.d.ts +2 -7
- package/esm/react-query/modelsList.js +0 -2
- package/esm/react-query/modelsListForUser.d.ts +2 -1
- package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
- package/esm/react-query/oAuthCreateAuthCode.js +42 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
- package/esm/sdk/chat.d.ts +7 -0
- package/esm/sdk/chat.js +0 -6
- package/esm/sdk/models.d.ts +4 -3
- package/esm/sdk/oauth.d.ts +46 -0
- package/esm/sdk/oauth.js +67 -0
- package/esm/sdk/responses.d.ts +8 -1
- package/esm/sdk/responses.js +0 -6
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -1
- package/vitest.config.ts +26 -0
- package/.devcontainer/README.md +0 -35
- package/esm/models/errorresponse.d.ts +0 -155
- package/esm/models/errorresponse.js +0 -167
- package/esm/models/errors/errorresponse.d.ts +0 -46
- package/esm/models/errors/listproviders.d.ts +0 -49
- package/esm/models/errors/listproviders.js +0 -51
- package/esm/models/filecitationannotation.d.ts +0 -58
- package/esm/models/filecitationannotation.js +0 -64
- package/esm/models/filepathannotation.d.ts +0 -56
- package/esm/models/filepathannotation.js +0 -62
- package/esm/models/openresponsesformatjsonobject.d.ts +0 -55
- package/esm/models/openresponsesformatjsonobject.js +0 -49
- package/esm/models/openresponsesformatjsonschema.d.ts +0 -67
- package/esm/models/openresponsesformatjsonschema.js +0 -57
- package/esm/models/openresponsesformattext.d.ts +0 -55
- package/esm/models/openresponsesformattext.js +0 -49
- package/esm/models/openresponsesformattextconfig.d.ts +0 -31
- package/esm/models/openresponsesformattextconfig.js +0 -38
- package/esm/models/openresponsesinputcontent.d.ts +0 -43
- package/esm/models/openresponsesinputcontent.js +0 -50
- package/esm/models/openresponsesinputfile.d.ts +0 -63
- package/esm/models/openresponsesinputfile.js +0 -70
- package/esm/models/openresponsesinputimage.d.ts +0 -79
- package/esm/models/openresponsesinputimage.js +0 -90
- package/esm/models/openresponsesinputitem.d.ts +0 -39
- package/esm/models/openresponsesinputitem.js +0 -62
- package/esm/models/openresponsesinputtext.d.ts +0 -57
- package/esm/models/openresponsesinputtext.js +0 -51
- package/esm/models/openresponsesoutputtext.d.ts +0 -80
- package/esm/models/openresponsesoutputtext.js +0 -93
- package/esm/models/openresponsesprompt.d.ts +0 -39
- package/esm/models/openresponsesprompt.js +0 -34
- package/esm/models/openresponsesrefusalcontent.d.ts +0 -54
- package/esm/models/openresponsesrefusalcontent.js +0 -51
- package/esm/models/openresponsestextconfig.d.ts +0 -59
- package/esm/models/openresponsestextconfig.js +0 -63
- package/esm/models/openresponsestoolchoice.d.ts +0 -148
- package/esm/models/openresponsestoolchoice.js +0 -139
- package/esm/models/openresponsestoolunion.d.ts +0 -95
- package/esm/models/openresponsestoolunion.js +0 -94
- package/esm/models/operations/createapialpharesponses.d.ts +0 -58
- package/esm/models/operations/createapialpharesponses.js +0 -83
- package/esm/models/operations/listmodelscount.d.ts +0 -26
- package/esm/models/operations/listmodelscount.js +0 -34
- package/esm/models/outputtextcontent.d.ts +0 -80
- package/esm/models/outputtextcontent.js +0 -93
- package/esm/models/refusalcontent.d.ts +0 -54
- package/esm/models/refusalcontent.js +0 -51
- package/esm/models/toolchoicetypes.d.ts +0 -164
- package/esm/models/toolchoicetypes.js +0 -167
- package/esm/models/urlcitationannotation.d.ts +0 -60
- package/esm/models/urlcitationannotation.js +0 -68
- package/examples/README.md +0 -31
|
@@ -2,11 +2,798 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
8
|
+
import { OpenAIResponsesIncludable$inboundSchema, OpenAIResponsesIncludable$outboundSchema, } from "./openairesponsesincludable.js";
|
|
9
|
+
import { OpenAIResponsesPrompt$inboundSchema, OpenAIResponsesPrompt$outboundSchema, } from "./openairesponsesprompt.js";
|
|
10
|
+
import { OpenAIResponsesToolChoiceUnion$inboundSchema, OpenAIResponsesToolChoiceUnion$outboundSchema, } from "./openairesponsestoolchoiceunion.js";
|
|
11
|
+
import { OpenResponsesInput$inboundSchema, OpenResponsesInput$outboundSchema, } from "./openresponsesinput.js";
|
|
12
|
+
import { OpenResponsesReasoningConfig$inboundSchema, OpenResponsesReasoningConfig$outboundSchema, } from "./openresponsesreasoningconfig.js";
|
|
13
|
+
import { OpenResponsesResponseText$inboundSchema, OpenResponsesResponseText$outboundSchema, } from "./openresponsesresponsetext.js";
|
|
14
|
+
import { OpenResponsesWebSearch20250826Tool$inboundSchema, OpenResponsesWebSearch20250826Tool$outboundSchema, } from "./openresponseswebsearch20250826tool.js";
|
|
15
|
+
import { OpenResponsesWebSearchPreview20250311Tool$inboundSchema, OpenResponsesWebSearchPreview20250311Tool$outboundSchema, } from "./openresponseswebsearchpreview20250311tool.js";
|
|
16
|
+
import { OpenResponsesWebSearchPreviewTool$inboundSchema, OpenResponsesWebSearchPreviewTool$outboundSchema, } from "./openresponseswebsearchpreviewtool.js";
|
|
17
|
+
import { OpenResponsesWebSearchTool$inboundSchema, OpenResponsesWebSearchTool$outboundSchema, } from "./openresponseswebsearchtool.js";
|
|
18
|
+
import { ProviderName$inboundSchema, ProviderName$outboundSchema, } from "./providername.js";
|
|
19
|
+
import { Quantization$inboundSchema, Quantization$outboundSchema, } from "./quantization.js";
|
|
20
|
+
export const OpenResponsesRequestType = {
|
|
21
|
+
Function: "function",
|
|
22
|
+
};
|
|
23
|
+
export const ServiceTier = {
|
|
24
|
+
Auto: "auto",
|
|
25
|
+
Default: "default",
|
|
26
|
+
Flex: "flex",
|
|
27
|
+
Priority: "priority",
|
|
28
|
+
Scale: "scale",
|
|
29
|
+
};
|
|
30
|
+
export const Truncation = {
|
|
31
|
+
Auto: "auto",
|
|
32
|
+
Disabled: "disabled",
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
39
|
+
* - deny: use only providers which do not collect user data.
|
|
40
|
+
*/
|
|
41
|
+
export const DataCollection = {
|
|
42
|
+
Deny: "deny",
|
|
43
|
+
Allow: "allow",
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
47
|
+
*/
|
|
48
|
+
export const Sort = {
|
|
49
|
+
Price: "price",
|
|
50
|
+
Throughput: "throughput",
|
|
51
|
+
Latency: "latency",
|
|
52
|
+
};
|
|
53
|
+
export const IdFileParser = {
|
|
54
|
+
FileParser: "file-parser",
|
|
55
|
+
};
|
|
56
|
+
export const PdfEngine = {
|
|
57
|
+
MistralOcr: "mistral-ocr",
|
|
58
|
+
PdfText: "pdf-text",
|
|
59
|
+
Native: "native",
|
|
60
|
+
};
|
|
61
|
+
export const IdWeb = {
|
|
62
|
+
Web: "web",
|
|
63
|
+
};
|
|
64
|
+
export const Engine = {
|
|
65
|
+
Native: "native",
|
|
66
|
+
Exa: "exa",
|
|
67
|
+
};
|
|
68
|
+
export const IdModeration = {
|
|
69
|
+
Moderation: "moderation",
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const OpenResponsesRequestType$inboundSchema = z.enum(OpenResponsesRequestType);
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const OpenResponsesRequestType$outboundSchema = OpenResponsesRequestType$inboundSchema;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export var OpenResponsesRequestType$;
|
|
80
|
+
(function (OpenResponsesRequestType$) {
|
|
81
|
+
/** @deprecated use `OpenResponsesRequestType$inboundSchema` instead. */
|
|
82
|
+
OpenResponsesRequestType$.inboundSchema = OpenResponsesRequestType$inboundSchema;
|
|
83
|
+
/** @deprecated use `OpenResponsesRequestType$outboundSchema` instead. */
|
|
84
|
+
OpenResponsesRequestType$.outboundSchema = OpenResponsesRequestType$outboundSchema;
|
|
85
|
+
})(OpenResponsesRequestType$ || (OpenResponsesRequestType$ = {}));
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const OpenResponsesRequestToolFunction$inboundSchema = z.object({
|
|
88
|
+
type: OpenResponsesRequestType$inboundSchema,
|
|
89
|
+
name: z.string(),
|
|
90
|
+
description: z.nullable(z.string()).optional(),
|
|
91
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
92
|
+
parameters: z.nullable(z.record(z.string(), z.nullable(z.any()))),
|
|
93
|
+
});
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const OpenResponsesRequestToolFunction$outboundSchema = z.object({
|
|
96
|
+
type: OpenResponsesRequestType$outboundSchema,
|
|
97
|
+
name: z.string(),
|
|
98
|
+
description: z.nullable(z.string()).optional(),
|
|
99
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
100
|
+
parameters: z.nullable(z.record(z.string(), z.nullable(z.any()))),
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
export var OpenResponsesRequestToolFunction$;
|
|
107
|
+
(function (OpenResponsesRequestToolFunction$) {
|
|
108
|
+
/** @deprecated use `OpenResponsesRequestToolFunction$inboundSchema` instead. */
|
|
109
|
+
OpenResponsesRequestToolFunction$.inboundSchema = OpenResponsesRequestToolFunction$inboundSchema;
|
|
110
|
+
/** @deprecated use `OpenResponsesRequestToolFunction$outboundSchema` instead. */
|
|
111
|
+
OpenResponsesRequestToolFunction$.outboundSchema = OpenResponsesRequestToolFunction$outboundSchema;
|
|
112
|
+
})(OpenResponsesRequestToolFunction$ || (OpenResponsesRequestToolFunction$ = {}));
|
|
113
|
+
export function openResponsesRequestToolFunctionToJSON(openResponsesRequestToolFunction) {
|
|
114
|
+
return JSON.stringify(OpenResponsesRequestToolFunction$outboundSchema.parse(openResponsesRequestToolFunction));
|
|
115
|
+
}
|
|
116
|
+
export function openResponsesRequestToolFunctionFromJSON(jsonString) {
|
|
117
|
+
return safeParse(jsonString, (x) => OpenResponsesRequestToolFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesRequestToolFunction' from JSON`);
|
|
118
|
+
}
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const OpenResponsesRequestToolUnion$inboundSchema = z.union([
|
|
121
|
+
z.lazy(() => OpenResponsesRequestToolFunction$inboundSchema),
|
|
122
|
+
OpenResponsesWebSearchPreviewTool$inboundSchema,
|
|
123
|
+
OpenResponsesWebSearchPreview20250311Tool$inboundSchema,
|
|
124
|
+
OpenResponsesWebSearchTool$inboundSchema,
|
|
125
|
+
OpenResponsesWebSearch20250826Tool$inboundSchema,
|
|
126
|
+
]);
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const OpenResponsesRequestToolUnion$outboundSchema = z.union([
|
|
129
|
+
z.lazy(() => OpenResponsesRequestToolFunction$outboundSchema),
|
|
130
|
+
OpenResponsesWebSearchPreviewTool$outboundSchema,
|
|
131
|
+
OpenResponsesWebSearchPreview20250311Tool$outboundSchema,
|
|
132
|
+
OpenResponsesWebSearchTool$outboundSchema,
|
|
133
|
+
OpenResponsesWebSearch20250826Tool$outboundSchema,
|
|
134
|
+
]);
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export var OpenResponsesRequestToolUnion$;
|
|
140
|
+
(function (OpenResponsesRequestToolUnion$) {
|
|
141
|
+
/** @deprecated use `OpenResponsesRequestToolUnion$inboundSchema` instead. */
|
|
142
|
+
OpenResponsesRequestToolUnion$.inboundSchema = OpenResponsesRequestToolUnion$inboundSchema;
|
|
143
|
+
/** @deprecated use `OpenResponsesRequestToolUnion$outboundSchema` instead. */
|
|
144
|
+
OpenResponsesRequestToolUnion$.outboundSchema = OpenResponsesRequestToolUnion$outboundSchema;
|
|
145
|
+
})(OpenResponsesRequestToolUnion$ || (OpenResponsesRequestToolUnion$ = {}));
|
|
146
|
+
export function openResponsesRequestToolUnionToJSON(openResponsesRequestToolUnion) {
|
|
147
|
+
return JSON.stringify(OpenResponsesRequestToolUnion$outboundSchema.parse(openResponsesRequestToolUnion));
|
|
148
|
+
}
|
|
149
|
+
export function openResponsesRequestToolUnionFromJSON(jsonString) {
|
|
150
|
+
return safeParse(jsonString, (x) => OpenResponsesRequestToolUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesRequestToolUnion' from JSON`);
|
|
151
|
+
}
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const ServiceTier$inboundSchema = z
|
|
154
|
+
.union([
|
|
155
|
+
z.enum(ServiceTier),
|
|
156
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
157
|
+
]);
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const ServiceTier$outboundSchema = z
|
|
160
|
+
.union([
|
|
161
|
+
z.enum(ServiceTier),
|
|
162
|
+
z.string().and(z.custom()),
|
|
163
|
+
]);
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
167
|
+
*/
|
|
168
|
+
export var ServiceTier$;
|
|
169
|
+
(function (ServiceTier$) {
|
|
170
|
+
/** @deprecated use `ServiceTier$inboundSchema` instead. */
|
|
171
|
+
ServiceTier$.inboundSchema = ServiceTier$inboundSchema;
|
|
172
|
+
/** @deprecated use `ServiceTier$outboundSchema` instead. */
|
|
173
|
+
ServiceTier$.outboundSchema = ServiceTier$outboundSchema;
|
|
174
|
+
})(ServiceTier$ || (ServiceTier$ = {}));
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const Truncation$inboundSchema = z
|
|
177
|
+
.union([
|
|
178
|
+
z.enum(Truncation),
|
|
179
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
180
|
+
]);
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const Truncation$outboundSchema = z
|
|
183
|
+
.union([
|
|
184
|
+
z.enum(Truncation),
|
|
185
|
+
z.string().and(z.custom()),
|
|
186
|
+
]);
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
190
|
+
*/
|
|
191
|
+
export var Truncation$;
|
|
192
|
+
(function (Truncation$) {
|
|
193
|
+
/** @deprecated use `Truncation$inboundSchema` instead. */
|
|
194
|
+
Truncation$.inboundSchema = Truncation$inboundSchema;
|
|
195
|
+
/** @deprecated use `Truncation$outboundSchema` instead. */
|
|
196
|
+
Truncation$.outboundSchema = Truncation$outboundSchema;
|
|
197
|
+
})(Truncation$ || (Truncation$ = {}));
|
|
198
|
+
/** @internal */
|
|
199
|
+
export const DataCollection$inboundSchema = z
|
|
200
|
+
.union([
|
|
201
|
+
z.enum(DataCollection),
|
|
202
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
203
|
+
]);
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const DataCollection$outboundSchema = z.union([
|
|
206
|
+
z.enum(DataCollection),
|
|
207
|
+
z.string().and(z.custom()),
|
|
208
|
+
]);
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
212
|
+
*/
|
|
213
|
+
export var DataCollection$;
|
|
214
|
+
(function (DataCollection$) {
|
|
215
|
+
/** @deprecated use `DataCollection$inboundSchema` instead. */
|
|
216
|
+
DataCollection$.inboundSchema = DataCollection$inboundSchema;
|
|
217
|
+
/** @deprecated use `DataCollection$outboundSchema` instead. */
|
|
218
|
+
DataCollection$.outboundSchema = DataCollection$outboundSchema;
|
|
219
|
+
})(DataCollection$ || (DataCollection$ = {}));
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const Order$inboundSchema = z.union([
|
|
222
|
+
ProviderName$inboundSchema,
|
|
223
|
+
z.string(),
|
|
224
|
+
]);
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const Order$outboundSchema = z.union([
|
|
227
|
+
ProviderName$outboundSchema,
|
|
228
|
+
z.string(),
|
|
229
|
+
]);
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
233
|
+
*/
|
|
234
|
+
export var Order$;
|
|
235
|
+
(function (Order$) {
|
|
236
|
+
/** @deprecated use `Order$inboundSchema` instead. */
|
|
237
|
+
Order$.inboundSchema = Order$inboundSchema;
|
|
238
|
+
/** @deprecated use `Order$outboundSchema` instead. */
|
|
239
|
+
Order$.outboundSchema = Order$outboundSchema;
|
|
240
|
+
})(Order$ || (Order$ = {}));
|
|
241
|
+
export function orderToJSON(order) {
|
|
242
|
+
return JSON.stringify(Order$outboundSchema.parse(order));
|
|
243
|
+
}
|
|
244
|
+
export function orderFromJSON(jsonString) {
|
|
245
|
+
return safeParse(jsonString, (x) => Order$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Order' from JSON`);
|
|
246
|
+
}
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const Only$inboundSchema = z.union([
|
|
249
|
+
ProviderName$inboundSchema,
|
|
250
|
+
z.string(),
|
|
251
|
+
]);
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const Only$outboundSchema = z.union([
|
|
254
|
+
ProviderName$outboundSchema,
|
|
255
|
+
z.string(),
|
|
256
|
+
]);
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
260
|
+
*/
|
|
261
|
+
export var Only$;
|
|
262
|
+
(function (Only$) {
|
|
263
|
+
/** @deprecated use `Only$inboundSchema` instead. */
|
|
264
|
+
Only$.inboundSchema = Only$inboundSchema;
|
|
265
|
+
/** @deprecated use `Only$outboundSchema` instead. */
|
|
266
|
+
Only$.outboundSchema = Only$outboundSchema;
|
|
267
|
+
})(Only$ || (Only$ = {}));
|
|
268
|
+
export function onlyToJSON(only) {
|
|
269
|
+
return JSON.stringify(Only$outboundSchema.parse(only));
|
|
270
|
+
}
|
|
271
|
+
export function onlyFromJSON(jsonString) {
|
|
272
|
+
return safeParse(jsonString, (x) => Only$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Only' from JSON`);
|
|
273
|
+
}
|
|
274
|
+
/** @internal */
|
|
275
|
+
export const Ignore$inboundSchema = z.union([
|
|
276
|
+
ProviderName$inboundSchema,
|
|
277
|
+
z.string(),
|
|
278
|
+
]);
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const Ignore$outboundSchema = z
|
|
281
|
+
.union([ProviderName$outboundSchema, z.string()]);
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
285
|
+
*/
|
|
286
|
+
export var Ignore$;
|
|
287
|
+
(function (Ignore$) {
|
|
288
|
+
/** @deprecated use `Ignore$inboundSchema` instead. */
|
|
289
|
+
Ignore$.inboundSchema = Ignore$inboundSchema;
|
|
290
|
+
/** @deprecated use `Ignore$outboundSchema` instead. */
|
|
291
|
+
Ignore$.outboundSchema = Ignore$outboundSchema;
|
|
292
|
+
})(Ignore$ || (Ignore$ = {}));
|
|
293
|
+
export function ignoreToJSON(ignore) {
|
|
294
|
+
return JSON.stringify(Ignore$outboundSchema.parse(ignore));
|
|
295
|
+
}
|
|
296
|
+
export function ignoreFromJSON(jsonString) {
|
|
297
|
+
return safeParse(jsonString, (x) => Ignore$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ignore' from JSON`);
|
|
298
|
+
}
|
|
299
|
+
/** @internal */
|
|
300
|
+
export const Sort$inboundSchema = z
|
|
301
|
+
.union([
|
|
302
|
+
z.enum(Sort),
|
|
303
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
304
|
+
]);
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const Sort$outboundSchema = z.union([
|
|
307
|
+
z.enum(Sort),
|
|
308
|
+
z.string().and(z.custom()),
|
|
309
|
+
]);
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
313
|
+
*/
|
|
314
|
+
export var Sort$;
|
|
315
|
+
(function (Sort$) {
|
|
316
|
+
/** @deprecated use `Sort$inboundSchema` instead. */
|
|
317
|
+
Sort$.inboundSchema = Sort$inboundSchema;
|
|
318
|
+
/** @deprecated use `Sort$outboundSchema` instead. */
|
|
319
|
+
Sort$.outboundSchema = Sort$outboundSchema;
|
|
320
|
+
})(Sort$ || (Sort$ = {}));
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const MaxPrice$inboundSchema = z.object({
|
|
323
|
+
prompt: z.any().optional(),
|
|
324
|
+
completion: z.any().optional(),
|
|
325
|
+
image: z.any().optional(),
|
|
326
|
+
audio: z.any().optional(),
|
|
327
|
+
request: z.any().optional(),
|
|
328
|
+
});
|
|
329
|
+
/** @internal */
|
|
330
|
+
export const MaxPrice$outboundSchema = z
|
|
331
|
+
.object({
|
|
332
|
+
prompt: z.any().optional(),
|
|
333
|
+
completion: z.any().optional(),
|
|
334
|
+
image: z.any().optional(),
|
|
335
|
+
audio: z.any().optional(),
|
|
336
|
+
request: z.any().optional(),
|
|
337
|
+
});
|
|
338
|
+
/**
|
|
339
|
+
* @internal
|
|
340
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
341
|
+
*/
|
|
342
|
+
export var MaxPrice$;
|
|
343
|
+
(function (MaxPrice$) {
|
|
344
|
+
/** @deprecated use `MaxPrice$inboundSchema` instead. */
|
|
345
|
+
MaxPrice$.inboundSchema = MaxPrice$inboundSchema;
|
|
346
|
+
/** @deprecated use `MaxPrice$outboundSchema` instead. */
|
|
347
|
+
MaxPrice$.outboundSchema = MaxPrice$outboundSchema;
|
|
348
|
+
})(MaxPrice$ || (MaxPrice$ = {}));
|
|
349
|
+
export function maxPriceToJSON(maxPrice) {
|
|
350
|
+
return JSON.stringify(MaxPrice$outboundSchema.parse(maxPrice));
|
|
351
|
+
}
|
|
352
|
+
export function maxPriceFromJSON(jsonString) {
|
|
353
|
+
return safeParse(jsonString, (x) => MaxPrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MaxPrice' from JSON`);
|
|
354
|
+
}
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const Experimental$inboundSchema = z
|
|
357
|
+
.object({});
|
|
358
|
+
/** @internal */
|
|
359
|
+
export const Experimental$outboundSchema = z.object({});
|
|
360
|
+
/**
|
|
361
|
+
* @internal
|
|
362
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
363
|
+
*/
|
|
364
|
+
export var Experimental$;
|
|
365
|
+
(function (Experimental$) {
|
|
366
|
+
/** @deprecated use `Experimental$inboundSchema` instead. */
|
|
367
|
+
Experimental$.inboundSchema = Experimental$inboundSchema;
|
|
368
|
+
/** @deprecated use `Experimental$outboundSchema` instead. */
|
|
369
|
+
Experimental$.outboundSchema = Experimental$outboundSchema;
|
|
370
|
+
})(Experimental$ || (Experimental$ = {}));
|
|
371
|
+
export function experimentalToJSON(experimental) {
|
|
372
|
+
return JSON.stringify(Experimental$outboundSchema.parse(experimental));
|
|
373
|
+
}
|
|
374
|
+
export function experimentalFromJSON(jsonString) {
|
|
375
|
+
return safeParse(jsonString, (x) => Experimental$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Experimental' from JSON`);
|
|
376
|
+
}
|
|
377
|
+
/** @internal */
|
|
378
|
+
export const Provider$inboundSchema = z.object({
|
|
379
|
+
allow_fallbacks: z.nullable(z.boolean()).optional(),
|
|
380
|
+
require_parameters: z.nullable(z.boolean()).optional(),
|
|
381
|
+
data_collection: z.nullable(DataCollection$inboundSchema).optional(),
|
|
382
|
+
zdr: z.nullable(z.boolean()).optional(),
|
|
383
|
+
order: z.nullable(z.array(z.union([ProviderName$inboundSchema, z.string()])))
|
|
384
|
+
.optional(),
|
|
385
|
+
only: z.nullable(z.array(z.union([ProviderName$inboundSchema, z.string()])))
|
|
386
|
+
.optional(),
|
|
387
|
+
ignore: z.nullable(z.array(z.union([ProviderName$inboundSchema, z.string()])))
|
|
388
|
+
.optional(),
|
|
389
|
+
quantizations: z.nullable(z.array(Quantization$inboundSchema)).optional(),
|
|
390
|
+
sort: z.nullable(Sort$inboundSchema).optional(),
|
|
391
|
+
max_price: z.lazy(() => MaxPrice$inboundSchema).optional(),
|
|
392
|
+
experimental: z.nullable(z.lazy(() => Experimental$inboundSchema)).optional(),
|
|
393
|
+
}).transform((v) => {
|
|
394
|
+
return remap$(v, {
|
|
395
|
+
"allow_fallbacks": "allowFallbacks",
|
|
396
|
+
"require_parameters": "requireParameters",
|
|
397
|
+
"data_collection": "dataCollection",
|
|
398
|
+
"max_price": "maxPrice",
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
/** @internal */
|
|
402
|
+
export const Provider$outboundSchema = z
|
|
403
|
+
.object({
|
|
404
|
+
allowFallbacks: z.nullable(z.boolean()).optional(),
|
|
405
|
+
requireParameters: z.nullable(z.boolean()).optional(),
|
|
406
|
+
dataCollection: z.nullable(DataCollection$outboundSchema).optional(),
|
|
407
|
+
zdr: z.nullable(z.boolean()).optional(),
|
|
408
|
+
order: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
|
|
409
|
+
only: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
|
|
410
|
+
ignore: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
|
|
411
|
+
quantizations: z.nullable(z.array(Quantization$outboundSchema)).optional(),
|
|
412
|
+
sort: z.nullable(Sort$outboundSchema).optional(),
|
|
413
|
+
maxPrice: z.lazy(() => MaxPrice$outboundSchema).optional(),
|
|
414
|
+
experimental: z.nullable(z.lazy(() => Experimental$outboundSchema))
|
|
415
|
+
.optional(),
|
|
416
|
+
}).transform((v) => {
|
|
417
|
+
return remap$(v, {
|
|
418
|
+
allowFallbacks: "allow_fallbacks",
|
|
419
|
+
requireParameters: "require_parameters",
|
|
420
|
+
dataCollection: "data_collection",
|
|
421
|
+
maxPrice: "max_price",
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
/**
|
|
425
|
+
* @internal
|
|
426
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
427
|
+
*/
|
|
428
|
+
export var Provider$;
|
|
429
|
+
(function (Provider$) {
|
|
430
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
431
|
+
Provider$.inboundSchema = Provider$inboundSchema;
|
|
432
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
433
|
+
Provider$.outboundSchema = Provider$outboundSchema;
|
|
434
|
+
})(Provider$ || (Provider$ = {}));
|
|
435
|
+
export function providerToJSON(provider) {
|
|
436
|
+
return JSON.stringify(Provider$outboundSchema.parse(provider));
|
|
437
|
+
}
|
|
438
|
+
export function providerFromJSON(jsonString) {
|
|
439
|
+
return safeParse(jsonString, (x) => Provider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Provider' from JSON`);
|
|
440
|
+
}
|
|
441
|
+
/** @internal */
|
|
442
|
+
export const IdFileParser$inboundSchema = z
|
|
443
|
+
.enum(IdFileParser);
|
|
444
|
+
/** @internal */
|
|
445
|
+
export const IdFileParser$outboundSchema = IdFileParser$inboundSchema;
|
|
446
|
+
/**
|
|
447
|
+
* @internal
|
|
448
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
+
*/
|
|
450
|
+
export var IdFileParser$;
|
|
451
|
+
(function (IdFileParser$) {
|
|
452
|
+
/** @deprecated use `IdFileParser$inboundSchema` instead. */
|
|
453
|
+
IdFileParser$.inboundSchema = IdFileParser$inboundSchema;
|
|
454
|
+
/** @deprecated use `IdFileParser$outboundSchema` instead. */
|
|
455
|
+
IdFileParser$.outboundSchema = IdFileParser$outboundSchema;
|
|
456
|
+
})(IdFileParser$ || (IdFileParser$ = {}));
|
|
457
|
+
/** @internal */
|
|
458
|
+
export const PdfEngine$inboundSchema = z
|
|
459
|
+
.union([
|
|
460
|
+
z.enum(PdfEngine),
|
|
461
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
462
|
+
]);
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const PdfEngine$outboundSchema = z
|
|
465
|
+
.union([
|
|
466
|
+
z.enum(PdfEngine),
|
|
467
|
+
z.string().and(z.custom()),
|
|
468
|
+
]);
|
|
469
|
+
/**
|
|
470
|
+
* @internal
|
|
471
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
472
|
+
*/
|
|
473
|
+
export var PdfEngine$;
|
|
474
|
+
(function (PdfEngine$) {
|
|
475
|
+
/** @deprecated use `PdfEngine$inboundSchema` instead. */
|
|
476
|
+
PdfEngine$.inboundSchema = PdfEngine$inboundSchema;
|
|
477
|
+
/** @deprecated use `PdfEngine$outboundSchema` instead. */
|
|
478
|
+
PdfEngine$.outboundSchema = PdfEngine$outboundSchema;
|
|
479
|
+
})(PdfEngine$ || (PdfEngine$ = {}));
|
|
480
|
+
/** @internal */
|
|
481
|
+
export const Pdf$inboundSchema = z.object({
|
|
482
|
+
engine: PdfEngine$inboundSchema.optional(),
|
|
483
|
+
});
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const Pdf$outboundSchema = z.object({
|
|
486
|
+
engine: PdfEngine$outboundSchema.optional(),
|
|
487
|
+
});
|
|
488
|
+
/**
|
|
489
|
+
* @internal
|
|
490
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
491
|
+
*/
|
|
492
|
+
export var Pdf$;
|
|
493
|
+
(function (Pdf$) {
|
|
494
|
+
/** @deprecated use `Pdf$inboundSchema` instead. */
|
|
495
|
+
Pdf$.inboundSchema = Pdf$inboundSchema;
|
|
496
|
+
/** @deprecated use `Pdf$outboundSchema` instead. */
|
|
497
|
+
Pdf$.outboundSchema = Pdf$outboundSchema;
|
|
498
|
+
})(Pdf$ || (Pdf$ = {}));
|
|
499
|
+
export function pdfToJSON(pdf) {
|
|
500
|
+
return JSON.stringify(Pdf$outboundSchema.parse(pdf));
|
|
501
|
+
}
|
|
502
|
+
export function pdfFromJSON(jsonString) {
|
|
503
|
+
return safeParse(jsonString, (x) => Pdf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pdf' from JSON`);
|
|
504
|
+
}
|
|
505
|
+
/** @internal */
|
|
506
|
+
export const PluginFileParser$inboundSchema = z.object({
|
|
507
|
+
id: IdFileParser$inboundSchema,
|
|
508
|
+
max_files: z.number().optional(),
|
|
509
|
+
pdf: z.lazy(() => Pdf$inboundSchema).optional(),
|
|
510
|
+
}).transform((v) => {
|
|
511
|
+
return remap$(v, {
|
|
512
|
+
"max_files": "maxFiles",
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
/** @internal */
|
|
516
|
+
export const PluginFileParser$outboundSchema = z.object({
|
|
517
|
+
id: IdFileParser$outboundSchema,
|
|
518
|
+
maxFiles: z.number().optional(),
|
|
519
|
+
pdf: z.lazy(() => Pdf$outboundSchema).optional(),
|
|
520
|
+
}).transform((v) => {
|
|
521
|
+
return remap$(v, {
|
|
522
|
+
maxFiles: "max_files",
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
/**
|
|
526
|
+
* @internal
|
|
527
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
528
|
+
*/
|
|
529
|
+
export var PluginFileParser$;
|
|
530
|
+
(function (PluginFileParser$) {
|
|
531
|
+
/** @deprecated use `PluginFileParser$inboundSchema` instead. */
|
|
532
|
+
PluginFileParser$.inboundSchema = PluginFileParser$inboundSchema;
|
|
533
|
+
/** @deprecated use `PluginFileParser$outboundSchema` instead. */
|
|
534
|
+
PluginFileParser$.outboundSchema = PluginFileParser$outboundSchema;
|
|
535
|
+
})(PluginFileParser$ || (PluginFileParser$ = {}));
|
|
536
|
+
export function pluginFileParserToJSON(pluginFileParser) {
|
|
537
|
+
return JSON.stringify(PluginFileParser$outboundSchema.parse(pluginFileParser));
|
|
538
|
+
}
|
|
539
|
+
export function pluginFileParserFromJSON(jsonString) {
|
|
540
|
+
return safeParse(jsonString, (x) => PluginFileParser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginFileParser' from JSON`);
|
|
541
|
+
}
|
|
542
|
+
/** @internal */
|
|
543
|
+
export const IdWeb$inboundSchema = z.enum(IdWeb);
|
|
544
|
+
/** @internal */
|
|
545
|
+
export const IdWeb$outboundSchema = IdWeb$inboundSchema;
|
|
546
|
+
/**
|
|
547
|
+
* @internal
|
|
548
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
549
|
+
*/
|
|
550
|
+
export var IdWeb$;
|
|
551
|
+
(function (IdWeb$) {
|
|
552
|
+
/** @deprecated use `IdWeb$inboundSchema` instead. */
|
|
553
|
+
IdWeb$.inboundSchema = IdWeb$inboundSchema;
|
|
554
|
+
/** @deprecated use `IdWeb$outboundSchema` instead. */
|
|
555
|
+
IdWeb$.outboundSchema = IdWeb$outboundSchema;
|
|
556
|
+
})(IdWeb$ || (IdWeb$ = {}));
|
|
557
|
+
/** @internal */
|
|
558
|
+
export const Engine$inboundSchema = z
|
|
559
|
+
.union([
|
|
560
|
+
z.enum(Engine),
|
|
561
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
562
|
+
]);
|
|
563
|
+
/** @internal */
|
|
564
|
+
export const Engine$outboundSchema = z.union([
|
|
565
|
+
z.enum(Engine),
|
|
566
|
+
z.string().and(z.custom()),
|
|
567
|
+
]);
|
|
568
|
+
/**
|
|
569
|
+
* @internal
|
|
570
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
571
|
+
*/
|
|
572
|
+
export var Engine$;
|
|
573
|
+
(function (Engine$) {
|
|
574
|
+
/** @deprecated use `Engine$inboundSchema` instead. */
|
|
575
|
+
Engine$.inboundSchema = Engine$inboundSchema;
|
|
576
|
+
/** @deprecated use `Engine$outboundSchema` instead. */
|
|
577
|
+
Engine$.outboundSchema = Engine$outboundSchema;
|
|
578
|
+
})(Engine$ || (Engine$ = {}));
|
|
579
|
+
/** @internal */
|
|
580
|
+
export const PluginWeb$inboundSchema = z.object({
|
|
581
|
+
id: IdWeb$inboundSchema,
|
|
582
|
+
max_results: z.number().optional(),
|
|
583
|
+
search_prompt: z.string().optional(),
|
|
584
|
+
engine: Engine$inboundSchema.optional(),
|
|
585
|
+
}).transform((v) => {
|
|
586
|
+
return remap$(v, {
|
|
587
|
+
"max_results": "maxResults",
|
|
588
|
+
"search_prompt": "searchPrompt",
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
/** @internal */
|
|
592
|
+
export const PluginWeb$outboundSchema = z.object({
|
|
593
|
+
id: IdWeb$outboundSchema,
|
|
594
|
+
maxResults: z.number().optional(),
|
|
595
|
+
searchPrompt: z.string().optional(),
|
|
596
|
+
engine: Engine$outboundSchema.optional(),
|
|
597
|
+
}).transform((v) => {
|
|
598
|
+
return remap$(v, {
|
|
599
|
+
maxResults: "max_results",
|
|
600
|
+
searchPrompt: "search_prompt",
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
/**
|
|
604
|
+
* @internal
|
|
605
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
606
|
+
*/
|
|
607
|
+
export var PluginWeb$;
|
|
608
|
+
(function (PluginWeb$) {
|
|
609
|
+
/** @deprecated use `PluginWeb$inboundSchema` instead. */
|
|
610
|
+
PluginWeb$.inboundSchema = PluginWeb$inboundSchema;
|
|
611
|
+
/** @deprecated use `PluginWeb$outboundSchema` instead. */
|
|
612
|
+
PluginWeb$.outboundSchema = PluginWeb$outboundSchema;
|
|
613
|
+
})(PluginWeb$ || (PluginWeb$ = {}));
|
|
614
|
+
export function pluginWebToJSON(pluginWeb) {
|
|
615
|
+
return JSON.stringify(PluginWeb$outboundSchema.parse(pluginWeb));
|
|
616
|
+
}
|
|
617
|
+
export function pluginWebFromJSON(jsonString) {
|
|
618
|
+
return safeParse(jsonString, (x) => PluginWeb$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginWeb' from JSON`);
|
|
619
|
+
}
|
|
620
|
+
/** @internal */
|
|
621
|
+
export const IdModeration$inboundSchema = z
|
|
622
|
+
.enum(IdModeration);
|
|
623
|
+
/** @internal */
|
|
624
|
+
export const IdModeration$outboundSchema = IdModeration$inboundSchema;
|
|
625
|
+
/**
|
|
626
|
+
* @internal
|
|
627
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
628
|
+
*/
|
|
629
|
+
export var IdModeration$;
|
|
630
|
+
(function (IdModeration$) {
|
|
631
|
+
/** @deprecated use `IdModeration$inboundSchema` instead. */
|
|
632
|
+
IdModeration$.inboundSchema = IdModeration$inboundSchema;
|
|
633
|
+
/** @deprecated use `IdModeration$outboundSchema` instead. */
|
|
634
|
+
IdModeration$.outboundSchema = IdModeration$outboundSchema;
|
|
635
|
+
})(IdModeration$ || (IdModeration$ = {}));
|
|
636
|
+
/** @internal */
|
|
637
|
+
export const PluginModeration$inboundSchema = z.object({
|
|
638
|
+
id: IdModeration$inboundSchema,
|
|
639
|
+
});
|
|
640
|
+
/** @internal */
|
|
641
|
+
export const PluginModeration$outboundSchema = z.object({
|
|
642
|
+
id: IdModeration$outboundSchema,
|
|
643
|
+
});
|
|
644
|
+
/**
|
|
645
|
+
* @internal
|
|
646
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
647
|
+
*/
|
|
648
|
+
export var PluginModeration$;
|
|
649
|
+
(function (PluginModeration$) {
|
|
650
|
+
/** @deprecated use `PluginModeration$inboundSchema` instead. */
|
|
651
|
+
PluginModeration$.inboundSchema = PluginModeration$inboundSchema;
|
|
652
|
+
/** @deprecated use `PluginModeration$outboundSchema` instead. */
|
|
653
|
+
PluginModeration$.outboundSchema = PluginModeration$outboundSchema;
|
|
654
|
+
})(PluginModeration$ || (PluginModeration$ = {}));
|
|
655
|
+
export function pluginModerationToJSON(pluginModeration) {
|
|
656
|
+
return JSON.stringify(PluginModeration$outboundSchema.parse(pluginModeration));
|
|
657
|
+
}
|
|
658
|
+
export function pluginModerationFromJSON(jsonString) {
|
|
659
|
+
return safeParse(jsonString, (x) => PluginModeration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginModeration' from JSON`);
|
|
660
|
+
}
|
|
661
|
+
/** @internal */
|
|
662
|
+
export const Plugin$inboundSchema = z.union([
|
|
663
|
+
z.lazy(() => PluginModeration$inboundSchema),
|
|
664
|
+
z.lazy(() => PluginWeb$inboundSchema),
|
|
665
|
+
z.lazy(() => PluginFileParser$inboundSchema),
|
|
666
|
+
]);
|
|
667
|
+
/** @internal */
|
|
668
|
+
export const Plugin$outboundSchema = z
|
|
669
|
+
.union([
|
|
670
|
+
z.lazy(() => PluginModeration$outboundSchema),
|
|
671
|
+
z.lazy(() => PluginWeb$outboundSchema),
|
|
672
|
+
z.lazy(() => PluginFileParser$outboundSchema),
|
|
673
|
+
]);
|
|
674
|
+
/**
|
|
675
|
+
* @internal
|
|
676
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
677
|
+
*/
|
|
678
|
+
export var Plugin$;
|
|
679
|
+
(function (Plugin$) {
|
|
680
|
+
/** @deprecated use `Plugin$inboundSchema` instead. */
|
|
681
|
+
Plugin$.inboundSchema = Plugin$inboundSchema;
|
|
682
|
+
/** @deprecated use `Plugin$outboundSchema` instead. */
|
|
683
|
+
Plugin$.outboundSchema = Plugin$outboundSchema;
|
|
684
|
+
})(Plugin$ || (Plugin$ = {}));
|
|
685
|
+
export function pluginToJSON(plugin) {
|
|
686
|
+
return JSON.stringify(Plugin$outboundSchema.parse(plugin));
|
|
687
|
+
}
|
|
688
|
+
export function pluginFromJSON(jsonString) {
|
|
689
|
+
return safeParse(jsonString, (x) => Plugin$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Plugin' from JSON`);
|
|
690
|
+
}
|
|
6
691
|
/** @internal */
|
|
7
|
-
export const OpenResponsesRequest$inboundSchema = z.object({
|
|
692
|
+
export const OpenResponsesRequest$inboundSchema = z.object({
|
|
693
|
+
input: OpenResponsesInput$inboundSchema.optional(),
|
|
694
|
+
instructions: z.nullable(z.string()).optional(),
|
|
695
|
+
metadata: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
696
|
+
tools: z.array(z.union([
|
|
697
|
+
z.lazy(() => OpenResponsesRequestToolFunction$inboundSchema),
|
|
698
|
+
OpenResponsesWebSearchPreviewTool$inboundSchema,
|
|
699
|
+
OpenResponsesWebSearchPreview20250311Tool$inboundSchema,
|
|
700
|
+
OpenResponsesWebSearchTool$inboundSchema,
|
|
701
|
+
OpenResponsesWebSearch20250826Tool$inboundSchema,
|
|
702
|
+
])).optional(),
|
|
703
|
+
tool_choice: OpenAIResponsesToolChoiceUnion$inboundSchema.optional(),
|
|
704
|
+
parallel_tool_calls: z.nullable(z.boolean()).optional(),
|
|
705
|
+
model: z.string().optional(),
|
|
706
|
+
models: z.array(z.string()).optional(),
|
|
707
|
+
text: OpenResponsesResponseText$inboundSchema.optional(),
|
|
708
|
+
reasoning: z.nullable(OpenResponsesReasoningConfig$inboundSchema).optional(),
|
|
709
|
+
max_output_tokens: z.nullable(z.number()).optional(),
|
|
710
|
+
temperature: z.nullable(z.number()).optional(),
|
|
711
|
+
top_p: z.nullable(z.number()).optional(),
|
|
712
|
+
top_k: z.number().optional(),
|
|
713
|
+
prompt_cache_key: z.nullable(z.string()).optional(),
|
|
714
|
+
previous_response_id: z.nullable(z.string()).optional(),
|
|
715
|
+
prompt: z.nullable(OpenAIResponsesPrompt$inboundSchema).optional(),
|
|
716
|
+
include: z.nullable(z.array(OpenAIResponsesIncludable$inboundSchema))
|
|
717
|
+
.optional(),
|
|
718
|
+
background: z.nullable(z.boolean()).optional(),
|
|
719
|
+
safety_identifier: z.nullable(z.string()).optional(),
|
|
720
|
+
store: z.nullable(z.boolean()).optional(),
|
|
721
|
+
service_tier: z.nullable(ServiceTier$inboundSchema).optional(),
|
|
722
|
+
truncation: z.nullable(Truncation$inboundSchema).optional(),
|
|
723
|
+
stream: z.boolean().default(false),
|
|
724
|
+
provider: z.nullable(z.lazy(() => Provider$inboundSchema)).optional(),
|
|
725
|
+
plugins: z.array(z.union([
|
|
726
|
+
z.lazy(() => PluginModeration$inboundSchema),
|
|
727
|
+
z.lazy(() => PluginWeb$inboundSchema),
|
|
728
|
+
z.lazy(() => PluginFileParser$inboundSchema),
|
|
729
|
+
])).optional(),
|
|
730
|
+
user: z.string().optional(),
|
|
731
|
+
}).transform((v) => {
|
|
732
|
+
return remap$(v, {
|
|
733
|
+
"tool_choice": "toolChoice",
|
|
734
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
735
|
+
"max_output_tokens": "maxOutputTokens",
|
|
736
|
+
"top_p": "topP",
|
|
737
|
+
"top_k": "topK",
|
|
738
|
+
"prompt_cache_key": "promptCacheKey",
|
|
739
|
+
"previous_response_id": "previousResponseId",
|
|
740
|
+
"safety_identifier": "safetyIdentifier",
|
|
741
|
+
"service_tier": "serviceTier",
|
|
742
|
+
});
|
|
743
|
+
});
|
|
8
744
|
/** @internal */
|
|
9
|
-
export const OpenResponsesRequest$outboundSchema = z.object({
|
|
745
|
+
export const OpenResponsesRequest$outboundSchema = z.object({
|
|
746
|
+
input: OpenResponsesInput$outboundSchema.optional(),
|
|
747
|
+
instructions: z.nullable(z.string()).optional(),
|
|
748
|
+
metadata: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
749
|
+
tools: z.array(z.union([
|
|
750
|
+
z.lazy(() => OpenResponsesRequestToolFunction$outboundSchema),
|
|
751
|
+
OpenResponsesWebSearchPreviewTool$outboundSchema,
|
|
752
|
+
OpenResponsesWebSearchPreview20250311Tool$outboundSchema,
|
|
753
|
+
OpenResponsesWebSearchTool$outboundSchema,
|
|
754
|
+
OpenResponsesWebSearch20250826Tool$outboundSchema,
|
|
755
|
+
])).optional(),
|
|
756
|
+
toolChoice: OpenAIResponsesToolChoiceUnion$outboundSchema.optional(),
|
|
757
|
+
parallelToolCalls: z.nullable(z.boolean()).optional(),
|
|
758
|
+
model: z.string().optional(),
|
|
759
|
+
models: z.array(z.string()).optional(),
|
|
760
|
+
text: OpenResponsesResponseText$outboundSchema.optional(),
|
|
761
|
+
reasoning: z.nullable(OpenResponsesReasoningConfig$outboundSchema).optional(),
|
|
762
|
+
maxOutputTokens: z.nullable(z.number()).optional(),
|
|
763
|
+
temperature: z.nullable(z.number()).optional(),
|
|
764
|
+
topP: z.nullable(z.number()).optional(),
|
|
765
|
+
topK: z.number().optional(),
|
|
766
|
+
promptCacheKey: z.nullable(z.string()).optional(),
|
|
767
|
+
previousResponseId: z.nullable(z.string()).optional(),
|
|
768
|
+
prompt: z.nullable(OpenAIResponsesPrompt$outboundSchema).optional(),
|
|
769
|
+
include: z.nullable(z.array(OpenAIResponsesIncludable$outboundSchema))
|
|
770
|
+
.optional(),
|
|
771
|
+
background: z.nullable(z.boolean()).optional(),
|
|
772
|
+
safetyIdentifier: z.nullable(z.string()).optional(),
|
|
773
|
+
store: z.nullable(z.boolean()).optional(),
|
|
774
|
+
serviceTier: z.nullable(ServiceTier$outboundSchema).optional(),
|
|
775
|
+
truncation: z.nullable(Truncation$outboundSchema).optional(),
|
|
776
|
+
stream: z.boolean().default(false),
|
|
777
|
+
provider: z.nullable(z.lazy(() => Provider$outboundSchema)).optional(),
|
|
778
|
+
plugins: z.array(z.union([
|
|
779
|
+
z.lazy(() => PluginModeration$outboundSchema),
|
|
780
|
+
z.lazy(() => PluginWeb$outboundSchema),
|
|
781
|
+
z.lazy(() => PluginFileParser$outboundSchema),
|
|
782
|
+
])).optional(),
|
|
783
|
+
user: z.string().optional(),
|
|
784
|
+
}).transform((v) => {
|
|
785
|
+
return remap$(v, {
|
|
786
|
+
toolChoice: "tool_choice",
|
|
787
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
788
|
+
maxOutputTokens: "max_output_tokens",
|
|
789
|
+
topP: "top_p",
|
|
790
|
+
topK: "top_k",
|
|
791
|
+
promptCacheKey: "prompt_cache_key",
|
|
792
|
+
previousResponseId: "previous_response_id",
|
|
793
|
+
safetyIdentifier: "safety_identifier",
|
|
794
|
+
serviceTier: "service_tier",
|
|
795
|
+
});
|
|
796
|
+
});
|
|
10
797
|
/**
|
|
11
798
|
* @internal
|
|
12
799
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|