@openrouter/sdk 0.0.1-beta.8 → 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
|
@@ -1,62 +0,0 @@
|
|
|
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 FilePathAnnotationType = {
|
|
8
|
-
FilePath: "file_path",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const FilePathAnnotationType$inboundSchema = z.enum(FilePathAnnotationType);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const FilePathAnnotationType$outboundSchema = FilePathAnnotationType$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 FilePathAnnotationType$;
|
|
19
|
-
(function (FilePathAnnotationType$) {
|
|
20
|
-
/** @deprecated use `FilePathAnnotationType$inboundSchema` instead. */
|
|
21
|
-
FilePathAnnotationType$.inboundSchema = FilePathAnnotationType$inboundSchema;
|
|
22
|
-
/** @deprecated use `FilePathAnnotationType$outboundSchema` instead. */
|
|
23
|
-
FilePathAnnotationType$.outboundSchema = FilePathAnnotationType$outboundSchema;
|
|
24
|
-
})(FilePathAnnotationType$ || (FilePathAnnotationType$ = {}));
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const FilePathAnnotation$inboundSchema = z.object({
|
|
27
|
-
type: FilePathAnnotationType$inboundSchema,
|
|
28
|
-
file_id: z.string(),
|
|
29
|
-
index: z.number(),
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
"file_id": "fileId",
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const FilePathAnnotation$outboundSchema = z.object({
|
|
37
|
-
type: FilePathAnnotationType$outboundSchema,
|
|
38
|
-
fileId: z.string(),
|
|
39
|
-
index: z.number(),
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
fileId: "file_id",
|
|
43
|
-
});
|
|
44
|
-
});
|
|
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 var FilePathAnnotation$;
|
|
50
|
-
(function (FilePathAnnotation$) {
|
|
51
|
-
/** @deprecated use `FilePathAnnotation$inboundSchema` instead. */
|
|
52
|
-
FilePathAnnotation$.inboundSchema = FilePathAnnotation$inboundSchema;
|
|
53
|
-
/** @deprecated use `FilePathAnnotation$outboundSchema` instead. */
|
|
54
|
-
FilePathAnnotation$.outboundSchema = FilePathAnnotation$outboundSchema;
|
|
55
|
-
})(FilePathAnnotation$ || (FilePathAnnotation$ = {}));
|
|
56
|
-
export function filePathAnnotationToJSON(filePathAnnotation) {
|
|
57
|
-
return JSON.stringify(FilePathAnnotation$outboundSchema.parse(filePathAnnotation));
|
|
58
|
-
}
|
|
59
|
-
export function filePathAnnotationFromJSON(jsonString) {
|
|
60
|
-
return safeParse(jsonString, (x) => FilePathAnnotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilePathAnnotation' from JSON`);
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=filepathannotation.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
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 OpenResponsesFormatJSONObjectType: {
|
|
6
|
-
readonly JsonObject: "json_object";
|
|
7
|
-
};
|
|
8
|
-
export type OpenResponsesFormatJSONObjectType = ClosedEnum<typeof OpenResponsesFormatJSONObjectType>;
|
|
9
|
-
/**
|
|
10
|
-
* JSON object response format
|
|
11
|
-
*/
|
|
12
|
-
export type OpenResponsesFormatJSONObject = {
|
|
13
|
-
type: OpenResponsesFormatJSONObjectType;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const OpenResponsesFormatJSONObjectType$inboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONObjectType>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const OpenResponsesFormatJSONObjectType$outboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONObjectType>;
|
|
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 OpenResponsesFormatJSONObjectType$ {
|
|
24
|
-
/** @deprecated use `OpenResponsesFormatJSONObjectType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodEnum<{
|
|
26
|
-
readonly JsonObject: "json_object";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `OpenResponsesFormatJSONObjectType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodEnum<{
|
|
30
|
-
readonly JsonObject: "json_object";
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export declare const OpenResponsesFormatJSONObject$inboundSchema: z.ZodType<OpenResponsesFormatJSONObject, unknown>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export type OpenResponsesFormatJSONObject$Outbound = {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFormatJSONObject$outboundSchema: z.ZodType<OpenResponsesFormatJSONObject$Outbound, OpenResponsesFormatJSONObject>;
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export declare namespace OpenResponsesFormatJSONObject$ {
|
|
46
|
-
/** @deprecated use `OpenResponsesFormatJSONObject$inboundSchema` instead. */
|
|
47
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatJSONObject, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatJSONObject, unknown>>;
|
|
48
|
-
/** @deprecated use `OpenResponsesFormatJSONObject$outboundSchema` instead. */
|
|
49
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatJSONObject$Outbound, OpenResponsesFormatJSONObject, z.core.$ZodTypeInternals<OpenResponsesFormatJSONObject$Outbound, OpenResponsesFormatJSONObject>>;
|
|
50
|
-
/** @deprecated use `OpenResponsesFormatJSONObject$Outbound` instead. */
|
|
51
|
-
type Outbound = OpenResponsesFormatJSONObject$Outbound;
|
|
52
|
-
}
|
|
53
|
-
export declare function openResponsesFormatJSONObjectToJSON(openResponsesFormatJSONObject: OpenResponsesFormatJSONObject): string;
|
|
54
|
-
export declare function openResponsesFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<OpenResponsesFormatJSONObject, SDKValidationError>;
|
|
55
|
-
//# sourceMappingURL=openresponsesformatjsonobject.d.ts.map
|
|
@@ -1,49 +0,0 @@
|
|
|
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 OpenResponsesFormatJSONObjectType = {
|
|
7
|
-
JsonObject: "json_object",
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatJSONObjectType$inboundSchema = z.enum(OpenResponsesFormatJSONObjectType);
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const OpenResponsesFormatJSONObjectType$outboundSchema = OpenResponsesFormatJSONObjectType$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 OpenResponsesFormatJSONObjectType$;
|
|
18
|
-
(function (OpenResponsesFormatJSONObjectType$) {
|
|
19
|
-
/** @deprecated use `OpenResponsesFormatJSONObjectType$inboundSchema` instead. */
|
|
20
|
-
OpenResponsesFormatJSONObjectType$.inboundSchema = OpenResponsesFormatJSONObjectType$inboundSchema;
|
|
21
|
-
/** @deprecated use `OpenResponsesFormatJSONObjectType$outboundSchema` instead. */
|
|
22
|
-
OpenResponsesFormatJSONObjectType$.outboundSchema = OpenResponsesFormatJSONObjectType$outboundSchema;
|
|
23
|
-
})(OpenResponsesFormatJSONObjectType$ || (OpenResponsesFormatJSONObjectType$ = {}));
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const OpenResponsesFormatJSONObject$inboundSchema = z.object({
|
|
26
|
-
type: OpenResponsesFormatJSONObjectType$inboundSchema,
|
|
27
|
-
});
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const OpenResponsesFormatJSONObject$outboundSchema = z.object({
|
|
30
|
-
type: OpenResponsesFormatJSONObjectType$outboundSchema,
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
-
*/
|
|
36
|
-
export var OpenResponsesFormatJSONObject$;
|
|
37
|
-
(function (OpenResponsesFormatJSONObject$) {
|
|
38
|
-
/** @deprecated use `OpenResponsesFormatJSONObject$inboundSchema` instead. */
|
|
39
|
-
OpenResponsesFormatJSONObject$.inboundSchema = OpenResponsesFormatJSONObject$inboundSchema;
|
|
40
|
-
/** @deprecated use `OpenResponsesFormatJSONObject$outboundSchema` instead. */
|
|
41
|
-
OpenResponsesFormatJSONObject$.outboundSchema = OpenResponsesFormatJSONObject$outboundSchema;
|
|
42
|
-
})(OpenResponsesFormatJSONObject$ || (OpenResponsesFormatJSONObject$ = {}));
|
|
43
|
-
export function openResponsesFormatJSONObjectToJSON(openResponsesFormatJSONObject) {
|
|
44
|
-
return JSON.stringify(OpenResponsesFormatJSONObject$outboundSchema.parse(openResponsesFormatJSONObject));
|
|
45
|
-
}
|
|
46
|
-
export function openResponsesFormatJSONObjectFromJSON(jsonString) {
|
|
47
|
-
return safeParse(jsonString, (x) => OpenResponsesFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFormatJSONObject' from JSON`);
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=openresponsesformatjsonobject.js.map
|
|
@@ -1,67 +0,0 @@
|
|
|
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 OpenResponsesFormatJSONSchemaType: {
|
|
6
|
-
readonly JsonSchema: "json_schema";
|
|
7
|
-
};
|
|
8
|
-
export type OpenResponsesFormatJSONSchemaType = ClosedEnum<typeof OpenResponsesFormatJSONSchemaType>;
|
|
9
|
-
/**
|
|
10
|
-
* JSON schema constrained response format
|
|
11
|
-
*/
|
|
12
|
-
export type OpenResponsesFormatJSONSchema = {
|
|
13
|
-
type: OpenResponsesFormatJSONSchemaType;
|
|
14
|
-
name: string;
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
strict?: boolean | null | undefined;
|
|
17
|
-
schema: {
|
|
18
|
-
[k: string]: any | null;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const OpenResponsesFormatJSONSchemaType$inboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONSchemaType>;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const OpenResponsesFormatJSONSchemaType$outboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONSchemaType>;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export declare namespace OpenResponsesFormatJSONSchemaType$ {
|
|
30
|
-
/** @deprecated use `OpenResponsesFormatJSONSchemaType$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodEnum<{
|
|
32
|
-
readonly JsonSchema: "json_schema";
|
|
33
|
-
}>;
|
|
34
|
-
/** @deprecated use `OpenResponsesFormatJSONSchemaType$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodEnum<{
|
|
36
|
-
readonly JsonSchema: "json_schema";
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFormatJSONSchema$inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema, unknown>;
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type OpenResponsesFormatJSONSchema$Outbound = {
|
|
43
|
-
type: string;
|
|
44
|
-
name: string;
|
|
45
|
-
description?: string | undefined;
|
|
46
|
-
strict?: boolean | null | undefined;
|
|
47
|
-
schema: {
|
|
48
|
-
[k: string]: any | null;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const OpenResponsesFormatJSONSchema$outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema>;
|
|
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 declare namespace OpenResponsesFormatJSONSchema$ {
|
|
58
|
-
/** @deprecated use `OpenResponsesFormatJSONSchema$inboundSchema` instead. */
|
|
59
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatJSONSchema, unknown>>;
|
|
60
|
-
/** @deprecated use `OpenResponsesFormatJSONSchema$outboundSchema` instead. */
|
|
61
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema, z.core.$ZodTypeInternals<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema>>;
|
|
62
|
-
/** @deprecated use `OpenResponsesFormatJSONSchema$Outbound` instead. */
|
|
63
|
-
type Outbound = OpenResponsesFormatJSONSchema$Outbound;
|
|
64
|
-
}
|
|
65
|
-
export declare function openResponsesFormatJSONSchemaToJSON(openResponsesFormatJSONSchema: OpenResponsesFormatJSONSchema): string;
|
|
66
|
-
export declare function openResponsesFormatJSONSchemaFromJSON(jsonString: string): SafeParseResult<OpenResponsesFormatJSONSchema, SDKValidationError>;
|
|
67
|
-
//# sourceMappingURL=openresponsesformatjsonschema.d.ts.map
|
|
@@ -1,57 +0,0 @@
|
|
|
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 OpenResponsesFormatJSONSchemaType = {
|
|
7
|
-
JsonSchema: "json_schema",
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatJSONSchemaType$inboundSchema = z.enum(OpenResponsesFormatJSONSchemaType);
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const OpenResponsesFormatJSONSchemaType$outboundSchema = OpenResponsesFormatJSONSchemaType$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 OpenResponsesFormatJSONSchemaType$;
|
|
18
|
-
(function (OpenResponsesFormatJSONSchemaType$) {
|
|
19
|
-
/** @deprecated use `OpenResponsesFormatJSONSchemaType$inboundSchema` instead. */
|
|
20
|
-
OpenResponsesFormatJSONSchemaType$.inboundSchema = OpenResponsesFormatJSONSchemaType$inboundSchema;
|
|
21
|
-
/** @deprecated use `OpenResponsesFormatJSONSchemaType$outboundSchema` instead. */
|
|
22
|
-
OpenResponsesFormatJSONSchemaType$.outboundSchema = OpenResponsesFormatJSONSchemaType$outboundSchema;
|
|
23
|
-
})(OpenResponsesFormatJSONSchemaType$ || (OpenResponsesFormatJSONSchemaType$ = {}));
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const OpenResponsesFormatJSONSchema$inboundSchema = z.object({
|
|
26
|
-
type: OpenResponsesFormatJSONSchemaType$inboundSchema,
|
|
27
|
-
name: z.string(),
|
|
28
|
-
description: z.string().optional(),
|
|
29
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
30
|
-
schema: z.record(z.string(), z.nullable(z.any())),
|
|
31
|
-
});
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const OpenResponsesFormatJSONSchema$outboundSchema = z.object({
|
|
34
|
-
type: OpenResponsesFormatJSONSchemaType$outboundSchema,
|
|
35
|
-
name: z.string(),
|
|
36
|
-
description: z.string().optional(),
|
|
37
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
38
|
-
schema: z.record(z.string(), z.nullable(z.any())),
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export var OpenResponsesFormatJSONSchema$;
|
|
45
|
-
(function (OpenResponsesFormatJSONSchema$) {
|
|
46
|
-
/** @deprecated use `OpenResponsesFormatJSONSchema$inboundSchema` instead. */
|
|
47
|
-
OpenResponsesFormatJSONSchema$.inboundSchema = OpenResponsesFormatJSONSchema$inboundSchema;
|
|
48
|
-
/** @deprecated use `OpenResponsesFormatJSONSchema$outboundSchema` instead. */
|
|
49
|
-
OpenResponsesFormatJSONSchema$.outboundSchema = OpenResponsesFormatJSONSchema$outboundSchema;
|
|
50
|
-
})(OpenResponsesFormatJSONSchema$ || (OpenResponsesFormatJSONSchema$ = {}));
|
|
51
|
-
export function openResponsesFormatJSONSchemaToJSON(openResponsesFormatJSONSchema) {
|
|
52
|
-
return JSON.stringify(OpenResponsesFormatJSONSchema$outboundSchema.parse(openResponsesFormatJSONSchema));
|
|
53
|
-
}
|
|
54
|
-
export function openResponsesFormatJSONSchemaFromJSON(jsonString) {
|
|
55
|
-
return safeParse(jsonString, (x) => OpenResponsesFormatJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFormatJSONSchema' from JSON`);
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=openresponsesformatjsonschema.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
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 OpenResponsesFormatTextType: {
|
|
6
|
-
readonly Text: "text";
|
|
7
|
-
};
|
|
8
|
-
export type OpenResponsesFormatTextType = ClosedEnum<typeof OpenResponsesFormatTextType>;
|
|
9
|
-
/**
|
|
10
|
-
* Plain text response format
|
|
11
|
-
*/
|
|
12
|
-
export type OpenResponsesFormatText = {
|
|
13
|
-
type: OpenResponsesFormatTextType;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const OpenResponsesFormatTextType$inboundSchema: z.ZodEnum<typeof OpenResponsesFormatTextType>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const OpenResponsesFormatTextType$outboundSchema: z.ZodEnum<typeof OpenResponsesFormatTextType>;
|
|
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 OpenResponsesFormatTextType$ {
|
|
24
|
-
/** @deprecated use `OpenResponsesFormatTextType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodEnum<{
|
|
26
|
-
readonly Text: "text";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `OpenResponsesFormatTextType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodEnum<{
|
|
30
|
-
readonly Text: "text";
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export declare const OpenResponsesFormatText$inboundSchema: z.ZodType<OpenResponsesFormatText, unknown>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export type OpenResponsesFormatText$Outbound = {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFormatText$outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound, OpenResponsesFormatText>;
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export declare namespace OpenResponsesFormatText$ {
|
|
46
|
-
/** @deprecated use `OpenResponsesFormatText$inboundSchema` instead. */
|
|
47
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatText, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatText, unknown>>;
|
|
48
|
-
/** @deprecated use `OpenResponsesFormatText$outboundSchema` instead. */
|
|
49
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound, OpenResponsesFormatText, z.core.$ZodTypeInternals<OpenResponsesFormatText$Outbound, OpenResponsesFormatText>>;
|
|
50
|
-
/** @deprecated use `OpenResponsesFormatText$Outbound` instead. */
|
|
51
|
-
type Outbound = OpenResponsesFormatText$Outbound;
|
|
52
|
-
}
|
|
53
|
-
export declare function openResponsesFormatTextToJSON(openResponsesFormatText: OpenResponsesFormatText): string;
|
|
54
|
-
export declare function openResponsesFormatTextFromJSON(jsonString: string): SafeParseResult<OpenResponsesFormatText, SDKValidationError>;
|
|
55
|
-
//# sourceMappingURL=openresponsesformattext.d.ts.map
|
|
@@ -1,49 +0,0 @@
|
|
|
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 OpenResponsesFormatTextType = {
|
|
7
|
-
Text: "text",
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatTextType$inboundSchema = z.enum(OpenResponsesFormatTextType);
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const OpenResponsesFormatTextType$outboundSchema = OpenResponsesFormatTextType$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 OpenResponsesFormatTextType$;
|
|
18
|
-
(function (OpenResponsesFormatTextType$) {
|
|
19
|
-
/** @deprecated use `OpenResponsesFormatTextType$inboundSchema` instead. */
|
|
20
|
-
OpenResponsesFormatTextType$.inboundSchema = OpenResponsesFormatTextType$inboundSchema;
|
|
21
|
-
/** @deprecated use `OpenResponsesFormatTextType$outboundSchema` instead. */
|
|
22
|
-
OpenResponsesFormatTextType$.outboundSchema = OpenResponsesFormatTextType$outboundSchema;
|
|
23
|
-
})(OpenResponsesFormatTextType$ || (OpenResponsesFormatTextType$ = {}));
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const OpenResponsesFormatText$inboundSchema = z.object({
|
|
26
|
-
type: OpenResponsesFormatTextType$inboundSchema,
|
|
27
|
-
});
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const OpenResponsesFormatText$outboundSchema = z.object({
|
|
30
|
-
type: OpenResponsesFormatTextType$outboundSchema,
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
-
*/
|
|
36
|
-
export var OpenResponsesFormatText$;
|
|
37
|
-
(function (OpenResponsesFormatText$) {
|
|
38
|
-
/** @deprecated use `OpenResponsesFormatText$inboundSchema` instead. */
|
|
39
|
-
OpenResponsesFormatText$.inboundSchema = OpenResponsesFormatText$inboundSchema;
|
|
40
|
-
/** @deprecated use `OpenResponsesFormatText$outboundSchema` instead. */
|
|
41
|
-
OpenResponsesFormatText$.outboundSchema = OpenResponsesFormatText$outboundSchema;
|
|
42
|
-
})(OpenResponsesFormatText$ || (OpenResponsesFormatText$ = {}));
|
|
43
|
-
export function openResponsesFormatTextToJSON(openResponsesFormatText) {
|
|
44
|
-
return JSON.stringify(OpenResponsesFormatText$outboundSchema.parse(openResponsesFormatText));
|
|
45
|
-
}
|
|
46
|
-
export function openResponsesFormatTextFromJSON(jsonString) {
|
|
47
|
-
return safeParse(jsonString, (x) => OpenResponsesFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFormatText' from JSON`);
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=openresponsesformattext.js.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
import { OpenResponsesFormatJSONObject, OpenResponsesFormatJSONObject$Outbound } from "./openresponsesformatjsonobject.js";
|
|
5
|
-
import { OpenResponsesFormatJSONSchema, OpenResponsesFormatJSONSchema$Outbound } from "./openresponsesformatjsonschema.js";
|
|
6
|
-
import { OpenResponsesFormatText, OpenResponsesFormatText$Outbound } from "./openresponsesformattext.js";
|
|
7
|
-
/**
|
|
8
|
-
* Text response format configuration
|
|
9
|
-
*/
|
|
10
|
-
export type OpenResponsesFormatTextConfig = OpenResponsesFormatJSONSchema | OpenResponsesFormatText | OpenResponsesFormatJSONObject;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const OpenResponsesFormatTextConfig$inboundSchema: z.ZodType<OpenResponsesFormatTextConfig, unknown>;
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type OpenResponsesFormatTextConfig$Outbound = OpenResponsesFormatJSONSchema$Outbound | OpenResponsesFormatText$Outbound | OpenResponsesFormatJSONObject$Outbound;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const OpenResponsesFormatTextConfig$outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig>;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
-
*/
|
|
21
|
-
export declare namespace OpenResponsesFormatTextConfig$ {
|
|
22
|
-
/** @deprecated use `OpenResponsesFormatTextConfig$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatTextConfig, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatTextConfig, unknown>>;
|
|
24
|
-
/** @deprecated use `OpenResponsesFormatTextConfig$outboundSchema` instead. */
|
|
25
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig, z.core.$ZodTypeInternals<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig>>;
|
|
26
|
-
/** @deprecated use `OpenResponsesFormatTextConfig$Outbound` instead. */
|
|
27
|
-
type Outbound = OpenResponsesFormatTextConfig$Outbound;
|
|
28
|
-
}
|
|
29
|
-
export declare function openResponsesFormatTextConfigToJSON(openResponsesFormatTextConfig: OpenResponsesFormatTextConfig): string;
|
|
30
|
-
export declare function openResponsesFormatTextConfigFromJSON(jsonString: string): SafeParseResult<OpenResponsesFormatTextConfig, SDKValidationError>;
|
|
31
|
-
//# sourceMappingURL=openresponsesformattextconfig.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
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 { OpenResponsesFormatJSONObject$inboundSchema, OpenResponsesFormatJSONObject$outboundSchema, } from "./openresponsesformatjsonobject.js";
|
|
7
|
-
import { OpenResponsesFormatJSONSchema$inboundSchema, OpenResponsesFormatJSONSchema$outboundSchema, } from "./openresponsesformatjsonschema.js";
|
|
8
|
-
import { OpenResponsesFormatText$inboundSchema, OpenResponsesFormatText$outboundSchema, } from "./openresponsesformattext.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatTextConfig$inboundSchema = z.union([
|
|
11
|
-
OpenResponsesFormatJSONSchema$inboundSchema,
|
|
12
|
-
OpenResponsesFormatText$inboundSchema,
|
|
13
|
-
OpenResponsesFormatJSONObject$inboundSchema,
|
|
14
|
-
]);
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const OpenResponsesFormatTextConfig$outboundSchema = z.union([
|
|
17
|
-
OpenResponsesFormatJSONSchema$outboundSchema,
|
|
18
|
-
OpenResponsesFormatText$outboundSchema,
|
|
19
|
-
OpenResponsesFormatJSONObject$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 OpenResponsesFormatTextConfig$;
|
|
26
|
-
(function (OpenResponsesFormatTextConfig$) {
|
|
27
|
-
/** @deprecated use `OpenResponsesFormatTextConfig$inboundSchema` instead. */
|
|
28
|
-
OpenResponsesFormatTextConfig$.inboundSchema = OpenResponsesFormatTextConfig$inboundSchema;
|
|
29
|
-
/** @deprecated use `OpenResponsesFormatTextConfig$outboundSchema` instead. */
|
|
30
|
-
OpenResponsesFormatTextConfig$.outboundSchema = OpenResponsesFormatTextConfig$outboundSchema;
|
|
31
|
-
})(OpenResponsesFormatTextConfig$ || (OpenResponsesFormatTextConfig$ = {}));
|
|
32
|
-
export function openResponsesFormatTextConfigToJSON(openResponsesFormatTextConfig) {
|
|
33
|
-
return JSON.stringify(OpenResponsesFormatTextConfig$outboundSchema.parse(openResponsesFormatTextConfig));
|
|
34
|
-
}
|
|
35
|
-
export function openResponsesFormatTextConfigFromJSON(jsonString) {
|
|
36
|
-
return safeParse(jsonString, (x) => OpenResponsesFormatTextConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFormatTextConfig' from JSON`);
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=openresponsesformattextconfig.js.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
import { OpenResponsesInputFile, OpenResponsesInputFile$Outbound } from "./openresponsesinputfile.js";
|
|
5
|
-
import { OpenResponsesInputImage, OpenResponsesInputImage$Outbound } from "./openresponsesinputimage.js";
|
|
6
|
-
import { OpenResponsesInputText, OpenResponsesInputText$Outbound } from "./openresponsesinputtext.js";
|
|
7
|
-
/**
|
|
8
|
-
* Content item in a response input message
|
|
9
|
-
*/
|
|
10
|
-
export type OpenResponsesInputContent = (OpenResponsesInputText & {
|
|
11
|
-
type: "input_text";
|
|
12
|
-
}) | (OpenResponsesInputImage & {
|
|
13
|
-
type: "input_image";
|
|
14
|
-
}) | (OpenResponsesInputFile & {
|
|
15
|
-
type: "input_file";
|
|
16
|
-
});
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const OpenResponsesInputContent$inboundSchema: z.ZodType<OpenResponsesInputContent, unknown>;
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type OpenResponsesInputContent$Outbound = (OpenResponsesInputText$Outbound & {
|
|
21
|
-
type: "input_text";
|
|
22
|
-
}) | (OpenResponsesInputImage$Outbound & {
|
|
23
|
-
type: "input_image";
|
|
24
|
-
}) | (OpenResponsesInputFile$Outbound & {
|
|
25
|
-
type: "input_file";
|
|
26
|
-
});
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const OpenResponsesInputContent$outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound, OpenResponsesInputContent>;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export declare namespace OpenResponsesInputContent$ {
|
|
34
|
-
/** @deprecated use `OpenResponsesInputContent$inboundSchema` instead. */
|
|
35
|
-
const inboundSchema: z.ZodType<OpenResponsesInputContent, unknown, z.core.$ZodTypeInternals<OpenResponsesInputContent, unknown>>;
|
|
36
|
-
/** @deprecated use `OpenResponsesInputContent$outboundSchema` instead. */
|
|
37
|
-
const outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound, OpenResponsesInputContent, z.core.$ZodTypeInternals<OpenResponsesInputContent$Outbound, OpenResponsesInputContent>>;
|
|
38
|
-
/** @deprecated use `OpenResponsesInputContent$Outbound` instead. */
|
|
39
|
-
type Outbound = OpenResponsesInputContent$Outbound;
|
|
40
|
-
}
|
|
41
|
-
export declare function openResponsesInputContentToJSON(openResponsesInputContent: OpenResponsesInputContent): string;
|
|
42
|
-
export declare function openResponsesInputContentFromJSON(jsonString: string): SafeParseResult<OpenResponsesInputContent, SDKValidationError>;
|
|
43
|
-
//# sourceMappingURL=openresponsesinputcontent.d.ts.map
|
|
@@ -1,50 +0,0 @@
|
|
|
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 { OpenResponsesInputFile$inboundSchema, OpenResponsesInputFile$outboundSchema, } from "./openresponsesinputfile.js";
|
|
7
|
-
import { OpenResponsesInputImage$inboundSchema, OpenResponsesInputImage$outboundSchema, } from "./openresponsesinputimage.js";
|
|
8
|
-
import { OpenResponsesInputText$inboundSchema, OpenResponsesInputText$outboundSchema, } from "./openresponsesinputtext.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OpenResponsesInputContent$inboundSchema = z.union([
|
|
11
|
-
OpenResponsesInputText$inboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
12
|
-
type: v.type,
|
|
13
|
-
}))),
|
|
14
|
-
OpenResponsesInputImage$inboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
15
|
-
type: v.type,
|
|
16
|
-
}))),
|
|
17
|
-
OpenResponsesInputFile$inboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
18
|
-
type: v.type,
|
|
19
|
-
}))),
|
|
20
|
-
]);
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const OpenResponsesInputContent$outboundSchema = z.union([
|
|
23
|
-
OpenResponsesInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
24
|
-
type: v.type,
|
|
25
|
-
}))),
|
|
26
|
-
OpenResponsesInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
27
|
-
type: v.type,
|
|
28
|
-
}))),
|
|
29
|
-
OpenResponsesInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
30
|
-
type: v.type,
|
|
31
|
-
}))),
|
|
32
|
-
]);
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
-
*/
|
|
37
|
-
export var OpenResponsesInputContent$;
|
|
38
|
-
(function (OpenResponsesInputContent$) {
|
|
39
|
-
/** @deprecated use `OpenResponsesInputContent$inboundSchema` instead. */
|
|
40
|
-
OpenResponsesInputContent$.inboundSchema = OpenResponsesInputContent$inboundSchema;
|
|
41
|
-
/** @deprecated use `OpenResponsesInputContent$outboundSchema` instead. */
|
|
42
|
-
OpenResponsesInputContent$.outboundSchema = OpenResponsesInputContent$outboundSchema;
|
|
43
|
-
})(OpenResponsesInputContent$ || (OpenResponsesInputContent$ = {}));
|
|
44
|
-
export function openResponsesInputContentToJSON(openResponsesInputContent) {
|
|
45
|
-
return JSON.stringify(OpenResponsesInputContent$outboundSchema.parse(openResponsesInputContent));
|
|
46
|
-
}
|
|
47
|
-
export function openResponsesInputContentFromJSON(jsonString) {
|
|
48
|
-
return safeParse(jsonString, (x) => OpenResponsesInputContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesInputContent' from JSON`);
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=openresponsesinputcontent.js.map
|
|
@@ -1,63 +0,0 @@
|
|
|
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 OpenResponsesInputFileType: {
|
|
6
|
-
readonly InputFile: "input_file";
|
|
7
|
-
};
|
|
8
|
-
export type OpenResponsesInputFileType = ClosedEnum<typeof OpenResponsesInputFileType>;
|
|
9
|
-
/**
|
|
10
|
-
* File input content item
|
|
11
|
-
*/
|
|
12
|
-
export type OpenResponsesInputFile = {
|
|
13
|
-
type: OpenResponsesInputFileType;
|
|
14
|
-
fileId?: string | null | undefined;
|
|
15
|
-
fileData?: string | undefined;
|
|
16
|
-
filename?: string | undefined;
|
|
17
|
-
fileUrl?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const OpenResponsesInputFileType$inboundSchema: z.ZodEnum<typeof OpenResponsesInputFileType>;
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const OpenResponsesInputFileType$outboundSchema: z.ZodEnum<typeof OpenResponsesInputFileType>;
|
|
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 OpenResponsesInputFileType$ {
|
|
28
|
-
/** @deprecated use `OpenResponsesInputFileType$inboundSchema` instead. */
|
|
29
|
-
const inboundSchema: z.ZodEnum<{
|
|
30
|
-
readonly InputFile: "input_file";
|
|
31
|
-
}>;
|
|
32
|
-
/** @deprecated use `OpenResponsesInputFileType$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodEnum<{
|
|
34
|
-
readonly InputFile: "input_file";
|
|
35
|
-
}>;
|
|
36
|
-
}
|
|
37
|
-
/** @internal */
|
|
38
|
-
export declare const OpenResponsesInputFile$inboundSchema: z.ZodType<OpenResponsesInputFile, unknown>;
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type OpenResponsesInputFile$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 OpenResponsesInputFile$outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound, OpenResponsesInputFile>;
|
|
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 OpenResponsesInputFile$ {
|
|
54
|
-
/** @deprecated use `OpenResponsesInputFile$inboundSchema` instead. */
|
|
55
|
-
const inboundSchema: z.ZodType<OpenResponsesInputFile, unknown, z.core.$ZodTypeInternals<OpenResponsesInputFile, unknown>>;
|
|
56
|
-
/** @deprecated use `OpenResponsesInputFile$outboundSchema` instead. */
|
|
57
|
-
const outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound, OpenResponsesInputFile, z.core.$ZodTypeInternals<OpenResponsesInputFile$Outbound, OpenResponsesInputFile>>;
|
|
58
|
-
/** @deprecated use `OpenResponsesInputFile$Outbound` instead. */
|
|
59
|
-
type Outbound = OpenResponsesInputFile$Outbound;
|
|
60
|
-
}
|
|
61
|
-
export declare function openResponsesInputFileToJSON(openResponsesInputFile: OpenResponsesInputFile): string;
|
|
62
|
-
export declare function openResponsesInputFileFromJSON(jsonString: string): SafeParseResult<OpenResponsesInputFile, SDKValidationError>;
|
|
63
|
-
//# sourceMappingURL=openresponsesinputfile.d.ts.map
|