@openrouter/sdk 0.0.1-beta.9 → 0.0.1
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 +109 -1
- package/REACT_QUERY.md +109 -1
- 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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { ResponsesFormatJSONObject$inboundSchema, ResponsesFormatJSONObject$outboundSchema, } from "./responsesformatjsonobject.js";
|
|
7
|
+
import { ResponsesFormatText$inboundSchema, ResponsesFormatText$outboundSchema, } from "./responsesformattext.js";
|
|
8
|
+
import { ResponsesFormatTextJSONSchemaConfig$inboundSchema, ResponsesFormatTextJSONSchemaConfig$outboundSchema, } from "./responsesformattextjsonschemaconfig.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ResponseFormatTextConfig$inboundSchema = z.union([
|
|
11
|
+
ResponsesFormatTextJSONSchemaConfig$inboundSchema,
|
|
12
|
+
ResponsesFormatText$inboundSchema,
|
|
13
|
+
ResponsesFormatJSONObject$inboundSchema,
|
|
14
|
+
]);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ResponseFormatTextConfig$outboundSchema = z.union([
|
|
17
|
+
ResponsesFormatTextJSONSchemaConfig$outboundSchema,
|
|
18
|
+
ResponsesFormatText$outboundSchema,
|
|
19
|
+
ResponsesFormatJSONObject$outboundSchema,
|
|
20
|
+
]);
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export var ResponseFormatTextConfig$;
|
|
26
|
+
(function (ResponseFormatTextConfig$) {
|
|
27
|
+
/** @deprecated use `ResponseFormatTextConfig$inboundSchema` instead. */
|
|
28
|
+
ResponseFormatTextConfig$.inboundSchema = ResponseFormatTextConfig$inboundSchema;
|
|
29
|
+
/** @deprecated use `ResponseFormatTextConfig$outboundSchema` instead. */
|
|
30
|
+
ResponseFormatTextConfig$.outboundSchema = ResponseFormatTextConfig$outboundSchema;
|
|
31
|
+
})(ResponseFormatTextConfig$ || (ResponseFormatTextConfig$ = {}));
|
|
32
|
+
export function responseFormatTextConfigToJSON(responseFormatTextConfig) {
|
|
33
|
+
return JSON.stringify(ResponseFormatTextConfig$outboundSchema.parse(responseFormatTextConfig));
|
|
34
|
+
}
|
|
35
|
+
export function responseFormatTextConfigFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => ResponseFormatTextConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseFormatTextConfig' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=responseformattextconfig.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const ResponseInputFileType: {
|
|
6
|
+
readonly InputFile: "input_file";
|
|
7
|
+
};
|
|
8
|
+
export type ResponseInputFileType = ClosedEnum<typeof ResponseInputFileType>;
|
|
9
|
+
/**
|
|
10
|
+
* File input content item
|
|
11
|
+
*/
|
|
12
|
+
export type ResponseInputFile = {
|
|
13
|
+
type: ResponseInputFileType;
|
|
14
|
+
fileId?: string | null | undefined;
|
|
15
|
+
fileData?: string | undefined;
|
|
16
|
+
filename?: string | undefined;
|
|
17
|
+
fileUrl?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const ResponseInputFileType$inboundSchema: z.ZodEnum<typeof ResponseInputFileType>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const ResponseInputFileType$outboundSchema: z.ZodEnum<typeof ResponseInputFileType>;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
+
*/
|
|
27
|
+
export declare namespace ResponseInputFileType$ {
|
|
28
|
+
/** @deprecated use `ResponseInputFileType$inboundSchema` instead. */
|
|
29
|
+
const inboundSchema: z.ZodEnum<{
|
|
30
|
+
readonly InputFile: "input_file";
|
|
31
|
+
}>;
|
|
32
|
+
/** @deprecated use `ResponseInputFileType$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodEnum<{
|
|
34
|
+
readonly InputFile: "input_file";
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const ResponseInputFile$inboundSchema: z.ZodType<ResponseInputFile, unknown>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type ResponseInputFile$Outbound = {
|
|
41
|
+
type: string;
|
|
42
|
+
file_id?: string | null | undefined;
|
|
43
|
+
file_data?: string | undefined;
|
|
44
|
+
filename?: string | undefined;
|
|
45
|
+
file_url?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const ResponseInputFile$outboundSchema: z.ZodType<ResponseInputFile$Outbound, ResponseInputFile>;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export declare namespace ResponseInputFile$ {
|
|
54
|
+
/** @deprecated use `ResponseInputFile$inboundSchema` instead. */
|
|
55
|
+
const inboundSchema: z.ZodType<ResponseInputFile, unknown, z.core.$ZodTypeInternals<ResponseInputFile, unknown>>;
|
|
56
|
+
/** @deprecated use `ResponseInputFile$outboundSchema` instead. */
|
|
57
|
+
const outboundSchema: z.ZodType<ResponseInputFile$Outbound, ResponseInputFile, z.core.$ZodTypeInternals<ResponseInputFile$Outbound, ResponseInputFile>>;
|
|
58
|
+
/** @deprecated use `ResponseInputFile$Outbound` instead. */
|
|
59
|
+
type Outbound = ResponseInputFile$Outbound;
|
|
60
|
+
}
|
|
61
|
+
export declare function responseInputFileToJSON(responseInputFile: ResponseInputFile): string;
|
|
62
|
+
export declare function responseInputFileFromJSON(jsonString: string): SafeParseResult<ResponseInputFile, SDKValidationError>;
|
|
63
|
+
//# sourceMappingURL=responseinputfile.d.ts.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const ResponseInputFileType = {
|
|
8
|
+
InputFile: "input_file",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ResponseInputFileType$inboundSchema = z.enum(ResponseInputFileType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ResponseInputFileType$outboundSchema = ResponseInputFileType$inboundSchema;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
+
*/
|
|
18
|
+
export var ResponseInputFileType$;
|
|
19
|
+
(function (ResponseInputFileType$) {
|
|
20
|
+
/** @deprecated use `ResponseInputFileType$inboundSchema` instead. */
|
|
21
|
+
ResponseInputFileType$.inboundSchema = ResponseInputFileType$inboundSchema;
|
|
22
|
+
/** @deprecated use `ResponseInputFileType$outboundSchema` instead. */
|
|
23
|
+
ResponseInputFileType$.outboundSchema = ResponseInputFileType$outboundSchema;
|
|
24
|
+
})(ResponseInputFileType$ || (ResponseInputFileType$ = {}));
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ResponseInputFile$inboundSchema = z.object({
|
|
27
|
+
type: ResponseInputFileType$inboundSchema,
|
|
28
|
+
file_id: z.nullable(z.string()).optional(),
|
|
29
|
+
file_data: z.string().optional(),
|
|
30
|
+
filename: z.string().optional(),
|
|
31
|
+
file_url: z.string().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"file_id": "fileId",
|
|
35
|
+
"file_data": "fileData",
|
|
36
|
+
"file_url": "fileUrl",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ResponseInputFile$outboundSchema = z.object({
|
|
41
|
+
type: ResponseInputFileType$outboundSchema,
|
|
42
|
+
fileId: z.nullable(z.string()).optional(),
|
|
43
|
+
fileData: z.string().optional(),
|
|
44
|
+
filename: z.string().optional(),
|
|
45
|
+
fileUrl: z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
fileId: "file_id",
|
|
49
|
+
fileData: "file_data",
|
|
50
|
+
fileUrl: "file_url",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export var ResponseInputFile$;
|
|
58
|
+
(function (ResponseInputFile$) {
|
|
59
|
+
/** @deprecated use `ResponseInputFile$inboundSchema` instead. */
|
|
60
|
+
ResponseInputFile$.inboundSchema = ResponseInputFile$inboundSchema;
|
|
61
|
+
/** @deprecated use `ResponseInputFile$outboundSchema` instead. */
|
|
62
|
+
ResponseInputFile$.outboundSchema = ResponseInputFile$outboundSchema;
|
|
63
|
+
})(ResponseInputFile$ || (ResponseInputFile$ = {}));
|
|
64
|
+
export function responseInputFileToJSON(responseInputFile) {
|
|
65
|
+
return JSON.stringify(ResponseInputFile$outboundSchema.parse(responseInputFile));
|
|
66
|
+
}
|
|
67
|
+
export function responseInputFileFromJSON(jsonString) {
|
|
68
|
+
return safeParse(jsonString, (x) => ResponseInputFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseInputFile' from JSON`);
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=responseinputfile.js.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum, 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 ResponseInputImageType: {
|
|
6
|
+
readonly InputImage: "input_image";
|
|
7
|
+
};
|
|
8
|
+
export type ResponseInputImageType = ClosedEnum<typeof ResponseInputImageType>;
|
|
9
|
+
export declare const ResponseInputImageDetail: {
|
|
10
|
+
readonly Auto: "auto";
|
|
11
|
+
readonly High: "high";
|
|
12
|
+
readonly Low: "low";
|
|
13
|
+
};
|
|
14
|
+
export type ResponseInputImageDetail = OpenEnum<typeof ResponseInputImageDetail>;
|
|
15
|
+
/**
|
|
16
|
+
* Image input content item
|
|
17
|
+
*/
|
|
18
|
+
export type ResponseInputImage = {
|
|
19
|
+
type: ResponseInputImageType;
|
|
20
|
+
detail: ResponseInputImageDetail;
|
|
21
|
+
imageUrl?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const ResponseInputImageType$inboundSchema: z.ZodEnum<typeof ResponseInputImageType>;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ResponseInputImageType$outboundSchema: z.ZodEnum<typeof ResponseInputImageType>;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export declare namespace ResponseInputImageType$ {
|
|
32
|
+
/** @deprecated use `ResponseInputImageType$inboundSchema` instead. */
|
|
33
|
+
const inboundSchema: z.ZodEnum<{
|
|
34
|
+
readonly InputImage: "input_image";
|
|
35
|
+
}>;
|
|
36
|
+
/** @deprecated use `ResponseInputImageType$outboundSchema` instead. */
|
|
37
|
+
const outboundSchema: z.ZodEnum<{
|
|
38
|
+
readonly InputImage: "input_image";
|
|
39
|
+
}>;
|
|
40
|
+
}
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const ResponseInputImageDetail$inboundSchema: z.ZodType<ResponseInputImageDetail, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const ResponseInputImageDetail$outboundSchema: z.ZodType<ResponseInputImageDetail, ResponseInputImageDetail>;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export declare namespace ResponseInputImageDetail$ {
|
|
50
|
+
/** @deprecated use `ResponseInputImageDetail$inboundSchema` instead. */
|
|
51
|
+
const inboundSchema: z.ZodType<ResponseInputImageDetail, unknown, z.core.$ZodTypeInternals<ResponseInputImageDetail, unknown>>;
|
|
52
|
+
/** @deprecated use `ResponseInputImageDetail$outboundSchema` instead. */
|
|
53
|
+
const outboundSchema: z.ZodType<ResponseInputImageDetail, ResponseInputImageDetail, z.core.$ZodTypeInternals<ResponseInputImageDetail, ResponseInputImageDetail>>;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const ResponseInputImage$inboundSchema: z.ZodType<ResponseInputImage, unknown>;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type ResponseInputImage$Outbound = {
|
|
59
|
+
type: string;
|
|
60
|
+
detail: string;
|
|
61
|
+
image_url?: string | null | undefined;
|
|
62
|
+
};
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const ResponseInputImage$outboundSchema: z.ZodType<ResponseInputImage$Outbound, ResponseInputImage>;
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export declare namespace ResponseInputImage$ {
|
|
70
|
+
/** @deprecated use `ResponseInputImage$inboundSchema` instead. */
|
|
71
|
+
const inboundSchema: z.ZodType<ResponseInputImage, unknown, z.core.$ZodTypeInternals<ResponseInputImage, unknown>>;
|
|
72
|
+
/** @deprecated use `ResponseInputImage$outboundSchema` instead. */
|
|
73
|
+
const outboundSchema: z.ZodType<ResponseInputImage$Outbound, ResponseInputImage, z.core.$ZodTypeInternals<ResponseInputImage$Outbound, ResponseInputImage>>;
|
|
74
|
+
/** @deprecated use `ResponseInputImage$Outbound` instead. */
|
|
75
|
+
type Outbound = ResponseInputImage$Outbound;
|
|
76
|
+
}
|
|
77
|
+
export declare function responseInputImageToJSON(responseInputImage: ResponseInputImage): string;
|
|
78
|
+
export declare function responseInputImageFromJSON(jsonString: string): SafeParseResult<ResponseInputImage, SDKValidationError>;
|
|
79
|
+
//# sourceMappingURL=responseinputimage.d.ts.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
8
|
+
export const ResponseInputImageType = {
|
|
9
|
+
InputImage: "input_image",
|
|
10
|
+
};
|
|
11
|
+
export const ResponseInputImageDetail = {
|
|
12
|
+
Auto: "auto",
|
|
13
|
+
High: "high",
|
|
14
|
+
Low: "low",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ResponseInputImageType$inboundSchema = z.enum(ResponseInputImageType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ResponseInputImageType$outboundSchema = ResponseInputImageType$inboundSchema;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export var ResponseInputImageType$;
|
|
25
|
+
(function (ResponseInputImageType$) {
|
|
26
|
+
/** @deprecated use `ResponseInputImageType$inboundSchema` instead. */
|
|
27
|
+
ResponseInputImageType$.inboundSchema = ResponseInputImageType$inboundSchema;
|
|
28
|
+
/** @deprecated use `ResponseInputImageType$outboundSchema` instead. */
|
|
29
|
+
ResponseInputImageType$.outboundSchema = ResponseInputImageType$outboundSchema;
|
|
30
|
+
})(ResponseInputImageType$ || (ResponseInputImageType$ = {}));
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ResponseInputImageDetail$inboundSchema = z
|
|
33
|
+
.union([
|
|
34
|
+
z.enum(ResponseInputImageDetail),
|
|
35
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
36
|
+
]);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ResponseInputImageDetail$outboundSchema = z.union([
|
|
39
|
+
z.enum(ResponseInputImageDetail),
|
|
40
|
+
z.string().and(z.custom()),
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export var ResponseInputImageDetail$;
|
|
47
|
+
(function (ResponseInputImageDetail$) {
|
|
48
|
+
/** @deprecated use `ResponseInputImageDetail$inboundSchema` instead. */
|
|
49
|
+
ResponseInputImageDetail$.inboundSchema = ResponseInputImageDetail$inboundSchema;
|
|
50
|
+
/** @deprecated use `ResponseInputImageDetail$outboundSchema` instead. */
|
|
51
|
+
ResponseInputImageDetail$.outboundSchema = ResponseInputImageDetail$outboundSchema;
|
|
52
|
+
})(ResponseInputImageDetail$ || (ResponseInputImageDetail$ = {}));
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ResponseInputImage$inboundSchema = z.object({
|
|
55
|
+
type: ResponseInputImageType$inboundSchema,
|
|
56
|
+
detail: ResponseInputImageDetail$inboundSchema,
|
|
57
|
+
image_url: z.nullable(z.string()).optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"image_url": "imageUrl",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ResponseInputImage$outboundSchema = z.object({
|
|
65
|
+
type: ResponseInputImageType$outboundSchema,
|
|
66
|
+
detail: ResponseInputImageDetail$outboundSchema,
|
|
67
|
+
imageUrl: z.nullable(z.string()).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
imageUrl: "image_url",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export var ResponseInputImage$;
|
|
78
|
+
(function (ResponseInputImage$) {
|
|
79
|
+
/** @deprecated use `ResponseInputImage$inboundSchema` instead. */
|
|
80
|
+
ResponseInputImage$.inboundSchema = ResponseInputImage$inboundSchema;
|
|
81
|
+
/** @deprecated use `ResponseInputImage$outboundSchema` instead. */
|
|
82
|
+
ResponseInputImage$.outboundSchema = ResponseInputImage$outboundSchema;
|
|
83
|
+
})(ResponseInputImage$ || (ResponseInputImage$ = {}));
|
|
84
|
+
export function responseInputImageToJSON(responseInputImage) {
|
|
85
|
+
return JSON.stringify(ResponseInputImage$outboundSchema.parse(responseInputImage));
|
|
86
|
+
}
|
|
87
|
+
export function responseInputImageFromJSON(jsonString) {
|
|
88
|
+
return safeParse(jsonString, (x) => ResponseInputImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseInputImage' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=responseinputimage.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const ResponseInputTextType: {
|
|
6
|
+
readonly InputText: "input_text";
|
|
7
|
+
};
|
|
8
|
+
export type ResponseInputTextType = ClosedEnum<typeof ResponseInputTextType>;
|
|
9
|
+
/**
|
|
10
|
+
* Text input content item
|
|
11
|
+
*/
|
|
12
|
+
export type ResponseInputText = {
|
|
13
|
+
type: ResponseInputTextType;
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const ResponseInputTextType$inboundSchema: z.ZodEnum<typeof ResponseInputTextType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const ResponseInputTextType$outboundSchema: z.ZodEnum<typeof ResponseInputTextType>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace ResponseInputTextType$ {
|
|
25
|
+
/** @deprecated use `ResponseInputTextType$inboundSchema` instead. */
|
|
26
|
+
const inboundSchema: z.ZodEnum<{
|
|
27
|
+
readonly InputText: "input_text";
|
|
28
|
+
}>;
|
|
29
|
+
/** @deprecated use `ResponseInputTextType$outboundSchema` instead. */
|
|
30
|
+
const outboundSchema: z.ZodEnum<{
|
|
31
|
+
readonly InputText: "input_text";
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const ResponseInputText$inboundSchema: z.ZodType<ResponseInputText, unknown>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ResponseInputText$Outbound = {
|
|
38
|
+
type: string;
|
|
39
|
+
text: string;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const ResponseInputText$outboundSchema: z.ZodType<ResponseInputText$Outbound, ResponseInputText>;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export declare namespace ResponseInputText$ {
|
|
48
|
+
/** @deprecated use `ResponseInputText$inboundSchema` instead. */
|
|
49
|
+
const inboundSchema: z.ZodType<ResponseInputText, unknown, z.core.$ZodTypeInternals<ResponseInputText, unknown>>;
|
|
50
|
+
/** @deprecated use `ResponseInputText$outboundSchema` instead. */
|
|
51
|
+
const outboundSchema: z.ZodType<ResponseInputText$Outbound, ResponseInputText, z.core.$ZodTypeInternals<ResponseInputText$Outbound, ResponseInputText>>;
|
|
52
|
+
/** @deprecated use `ResponseInputText$Outbound` instead. */
|
|
53
|
+
type Outbound = ResponseInputText$Outbound;
|
|
54
|
+
}
|
|
55
|
+
export declare function responseInputTextToJSON(responseInputText: ResponseInputText): string;
|
|
56
|
+
export declare function responseInputTextFromJSON(jsonString: string): SafeParseResult<ResponseInputText, SDKValidationError>;
|
|
57
|
+
//# sourceMappingURL=responseinputtext.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
export const ResponseInputTextType = {
|
|
7
|
+
InputText: "input_text",
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ResponseInputTextType$inboundSchema = z.enum(ResponseInputTextType);
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const ResponseInputTextType$outboundSchema = ResponseInputTextType$inboundSchema;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
+
*/
|
|
17
|
+
export var ResponseInputTextType$;
|
|
18
|
+
(function (ResponseInputTextType$) {
|
|
19
|
+
/** @deprecated use `ResponseInputTextType$inboundSchema` instead. */
|
|
20
|
+
ResponseInputTextType$.inboundSchema = ResponseInputTextType$inboundSchema;
|
|
21
|
+
/** @deprecated use `ResponseInputTextType$outboundSchema` instead. */
|
|
22
|
+
ResponseInputTextType$.outboundSchema = ResponseInputTextType$outboundSchema;
|
|
23
|
+
})(ResponseInputTextType$ || (ResponseInputTextType$ = {}));
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ResponseInputText$inboundSchema = z.object({
|
|
26
|
+
type: ResponseInputTextType$inboundSchema,
|
|
27
|
+
text: z.string(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ResponseInputText$outboundSchema = z.object({
|
|
31
|
+
type: ResponseInputTextType$outboundSchema,
|
|
32
|
+
text: z.string(),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
+
*/
|
|
38
|
+
export var ResponseInputText$;
|
|
39
|
+
(function (ResponseInputText$) {
|
|
40
|
+
/** @deprecated use `ResponseInputText$inboundSchema` instead. */
|
|
41
|
+
ResponseInputText$.inboundSchema = ResponseInputText$inboundSchema;
|
|
42
|
+
/** @deprecated use `ResponseInputText$outboundSchema` instead. */
|
|
43
|
+
ResponseInputText$.outboundSchema = ResponseInputText$outboundSchema;
|
|
44
|
+
})(ResponseInputText$ || (ResponseInputText$ = {}));
|
|
45
|
+
export function responseInputTextToJSON(responseInputText) {
|
|
46
|
+
return JSON.stringify(ResponseInputText$outboundSchema.parse(responseInputText));
|
|
47
|
+
}
|
|
48
|
+
export function responseInputTextFromJSON(jsonString) {
|
|
49
|
+
return safeParse(jsonString, (x) => ResponseInputText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseInputText' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=responseinputtext.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { OpenAIResponsesAnnotation, OpenAIResponsesAnnotation$Outbound } from "./openairesponsesannotation.js";
|
|
6
|
+
export declare const ResponseOutputTextType: {
|
|
7
|
+
readonly OutputText: "output_text";
|
|
8
|
+
};
|
|
9
|
+
export type ResponseOutputTextType = ClosedEnum<typeof ResponseOutputTextType>;
|
|
10
|
+
export type ResponseOutputText = {
|
|
11
|
+
type: ResponseOutputTextType;
|
|
12
|
+
text: string;
|
|
13
|
+
annotations?: Array<OpenAIResponsesAnnotation> | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const ResponseOutputTextType$inboundSchema: z.ZodEnum<typeof ResponseOutputTextType>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const ResponseOutputTextType$outboundSchema: z.ZodEnum<typeof ResponseOutputTextType>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace ResponseOutputTextType$ {
|
|
24
|
+
/** @deprecated use `ResponseOutputTextType$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodEnum<{
|
|
26
|
+
readonly OutputText: "output_text";
|
|
27
|
+
}>;
|
|
28
|
+
/** @deprecated use `ResponseOutputTextType$outboundSchema` instead. */
|
|
29
|
+
const outboundSchema: z.ZodEnum<{
|
|
30
|
+
readonly OutputText: "output_text";
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const ResponseOutputText$inboundSchema: z.ZodType<ResponseOutputText, unknown>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ResponseOutputText$Outbound = {
|
|
37
|
+
type: string;
|
|
38
|
+
text: string;
|
|
39
|
+
annotations?: Array<OpenAIResponsesAnnotation$Outbound> | undefined;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const ResponseOutputText$outboundSchema: z.ZodType<ResponseOutputText$Outbound, ResponseOutputText>;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export declare namespace ResponseOutputText$ {
|
|
48
|
+
/** @deprecated use `ResponseOutputText$inboundSchema` instead. */
|
|
49
|
+
const inboundSchema: z.ZodType<ResponseOutputText, unknown, z.core.$ZodTypeInternals<ResponseOutputText, unknown>>;
|
|
50
|
+
/** @deprecated use `ResponseOutputText$outboundSchema` instead. */
|
|
51
|
+
const outboundSchema: z.ZodType<ResponseOutputText$Outbound, ResponseOutputText, z.core.$ZodTypeInternals<ResponseOutputText$Outbound, ResponseOutputText>>;
|
|
52
|
+
/** @deprecated use `ResponseOutputText$Outbound` instead. */
|
|
53
|
+
type Outbound = ResponseOutputText$Outbound;
|
|
54
|
+
}
|
|
55
|
+
export declare function responseOutputTextToJSON(responseOutputText: ResponseOutputText): string;
|
|
56
|
+
export declare function responseOutputTextFromJSON(jsonString: string): SafeParseResult<ResponseOutputText, SDKValidationError>;
|
|
57
|
+
//# sourceMappingURL=responseoutputtext.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { OpenAIResponsesAnnotation$inboundSchema, OpenAIResponsesAnnotation$outboundSchema, } from "./openairesponsesannotation.js";
|
|
7
|
+
export const ResponseOutputTextType = {
|
|
8
|
+
OutputText: "output_text",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ResponseOutputTextType$inboundSchema = z.enum(ResponseOutputTextType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ResponseOutputTextType$outboundSchema = ResponseOutputTextType$inboundSchema;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
+
*/
|
|
18
|
+
export var ResponseOutputTextType$;
|
|
19
|
+
(function (ResponseOutputTextType$) {
|
|
20
|
+
/** @deprecated use `ResponseOutputTextType$inboundSchema` instead. */
|
|
21
|
+
ResponseOutputTextType$.inboundSchema = ResponseOutputTextType$inboundSchema;
|
|
22
|
+
/** @deprecated use `ResponseOutputTextType$outboundSchema` instead. */
|
|
23
|
+
ResponseOutputTextType$.outboundSchema = ResponseOutputTextType$outboundSchema;
|
|
24
|
+
})(ResponseOutputTextType$ || (ResponseOutputTextType$ = {}));
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ResponseOutputText$inboundSchema = z.object({
|
|
27
|
+
type: ResponseOutputTextType$inboundSchema,
|
|
28
|
+
text: z.string(),
|
|
29
|
+
annotations: z.array(OpenAIResponsesAnnotation$inboundSchema).optional(),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ResponseOutputText$outboundSchema = z.object({
|
|
33
|
+
type: ResponseOutputTextType$outboundSchema,
|
|
34
|
+
text: z.string(),
|
|
35
|
+
annotations: z.array(OpenAIResponsesAnnotation$outboundSchema).optional(),
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export var ResponseOutputText$;
|
|
42
|
+
(function (ResponseOutputText$) {
|
|
43
|
+
/** @deprecated use `ResponseOutputText$inboundSchema` instead. */
|
|
44
|
+
ResponseOutputText$.inboundSchema = ResponseOutputText$inboundSchema;
|
|
45
|
+
/** @deprecated use `ResponseOutputText$outboundSchema` instead. */
|
|
46
|
+
ResponseOutputText$.outboundSchema = ResponseOutputText$outboundSchema;
|
|
47
|
+
})(ResponseOutputText$ || (ResponseOutputText$ = {}));
|
|
48
|
+
export function responseOutputTextToJSON(responseOutputText) {
|
|
49
|
+
return JSON.stringify(ResponseOutputText$outboundSchema.parse(responseOutputText));
|
|
50
|
+
}
|
|
51
|
+
export function responseOutputTextFromJSON(jsonString) {
|
|
52
|
+
return safeParse(jsonString, (x) => ResponseOutputText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseOutputText' from JSON`);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=responseoutputtext.js.map
|
|
@@ -2,32 +2,47 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const CodeEnum: {
|
|
6
6
|
readonly ServerError: "server_error";
|
|
7
7
|
readonly RateLimitExceeded: "rate_limit_exceeded";
|
|
8
8
|
readonly InvalidPrompt: "invalid_prompt";
|
|
9
|
+
readonly VectorStoreTimeout: "vector_store_timeout";
|
|
10
|
+
readonly InvalidImage: "invalid_image";
|
|
11
|
+
readonly InvalidImageFormat: "invalid_image_format";
|
|
12
|
+
readonly InvalidBase64Image: "invalid_base64_image";
|
|
13
|
+
readonly InvalidImageUrl: "invalid_image_url";
|
|
14
|
+
readonly ImageTooLarge: "image_too_large";
|
|
15
|
+
readonly ImageTooSmall: "image_too_small";
|
|
16
|
+
readonly ImageParseError: "image_parse_error";
|
|
17
|
+
readonly ImageContentPolicyViolation: "image_content_policy_violation";
|
|
18
|
+
readonly InvalidImageMode: "invalid_image_mode";
|
|
19
|
+
readonly ImageFileTooLarge: "image_file_too_large";
|
|
20
|
+
readonly UnsupportedImageMediaType: "unsupported_image_media_type";
|
|
21
|
+
readonly EmptyImageFile: "empty_image_file";
|
|
22
|
+
readonly FailedToDownloadImage: "failed_to_download_image";
|
|
23
|
+
readonly ImageFileNotFound: "image_file_not_found";
|
|
9
24
|
};
|
|
10
|
-
export type
|
|
25
|
+
export type CodeEnum = OpenEnum<typeof CodeEnum>;
|
|
11
26
|
/**
|
|
12
27
|
* Error information returned from the API
|
|
13
28
|
*/
|
|
14
29
|
export type ResponsesErrorField = {
|
|
15
|
-
code:
|
|
30
|
+
code: CodeEnum;
|
|
16
31
|
message: string;
|
|
17
32
|
};
|
|
18
33
|
/** @internal */
|
|
19
|
-
export declare const
|
|
34
|
+
export declare const CodeEnum$inboundSchema: z.ZodType<CodeEnum, unknown>;
|
|
20
35
|
/** @internal */
|
|
21
|
-
export declare const
|
|
36
|
+
export declare const CodeEnum$outboundSchema: z.ZodType<CodeEnum, CodeEnum>;
|
|
22
37
|
/**
|
|
23
38
|
* @internal
|
|
24
39
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
40
|
*/
|
|
26
|
-
export declare namespace
|
|
27
|
-
/** @deprecated use `
|
|
28
|
-
const inboundSchema: z.ZodType<
|
|
29
|
-
/** @deprecated use `
|
|
30
|
-
const outboundSchema: z.ZodType<
|
|
41
|
+
export declare namespace CodeEnum$ {
|
|
42
|
+
/** @deprecated use `CodeEnum$inboundSchema` instead. */
|
|
43
|
+
const inboundSchema: z.ZodType<CodeEnum, unknown, z.core.$ZodTypeInternals<CodeEnum, unknown>>;
|
|
44
|
+
/** @deprecated use `CodeEnum$outboundSchema` instead. */
|
|
45
|
+
const outboundSchema: z.ZodType<CodeEnum, CodeEnum, z.core.$ZodTypeInternals<CodeEnum, CodeEnum>>;
|
|
31
46
|
}
|
|
32
47
|
/** @internal */
|
|
33
48
|
export declare const ResponsesErrorField$inboundSchema: z.ZodType<ResponsesErrorField, unknown>;
|