@openrouter/sdk 0.0.1-beta.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REACT_QUERY.md +3 -12
- package/README.md +52 -396
- package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -2
- package/esm/funcs/apiKeysCreate.d.ts +1 -1
- package/esm/funcs/apiKeysCreate.js +2 -2
- package/esm/funcs/apiKeysDelete.d.ts +1 -1
- package/esm/funcs/apiKeysDelete.js +2 -2
- package/esm/funcs/apiKeysGet.d.ts +1 -1
- package/esm/funcs/apiKeysGet.js +2 -2
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +2 -2
- package/esm/funcs/apiKeysUpdate.d.ts +1 -1
- package/esm/funcs/apiKeysUpdate.js +2 -2
- package/esm/funcs/betaResponsesSend.d.ts +9 -1
- package/esm/funcs/betaResponsesSend.js +38 -14
- package/esm/funcs/chatSend.d.ts +7 -0
- package/esm/funcs/chatSend.js +1 -7
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
- package/esm/funcs/creditsGetCredits.d.ts +1 -1
- package/esm/funcs/creditsGetCredits.js +2 -2
- package/esm/funcs/endpointsList.d.ts +1 -1
- package/esm/funcs/endpointsList.js +2 -2
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
- package/esm/funcs/generationsGetGeneration.d.ts +1 -1
- package/esm/funcs/generationsGetGeneration.js +13 -2
- package/esm/funcs/modelsCount.d.ts +3 -2
- package/esm/funcs/modelsCount.js +7 -3
- package/esm/funcs/modelsList.d.ts +3 -1
- package/esm/funcs/modelsList.js +8 -7
- package/esm/funcs/modelsListForUser.d.ts +3 -1
- package/esm/funcs/modelsListForUser.js +7 -3
- package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
- package/esm/funcs/oAuthCreateAuthCode.js +82 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
- package/esm/funcs/parametersGetParameters.d.ts +1 -1
- package/esm/funcs/parametersGetParameters.js +2 -2
- package/esm/funcs/providersList.d.ts +1 -1
- package/esm/funcs/providersList.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/event-streams.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
- package/esm/models/badgatewayresponseerrordata.js +35 -0
- package/esm/models/badrequestresponseerrordata.d.ts +40 -0
- package/esm/models/badrequestresponseerrordata.js +35 -0
- package/esm/models/chatgenerationparams.d.ts +12 -12
- package/esm/models/chatgenerationparams.js +16 -16
- package/esm/models/chatgenerationtokenusage.d.ts +2 -2
- package/esm/models/chatgenerationtokenusage.js +2 -4
- package/esm/models/chatmessagetokenlogprob.d.ts +15 -15
- package/esm/models/chatmessagetokenlogprob.js +16 -15
- package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
- package/esm/models/chatstreamingresponsechunk.js +15 -15
- package/esm/models/completioncreateparams.d.ts +2 -2
- package/esm/models/completioncreateparams.js +2 -2
- package/esm/models/createchargerequest.d.ts +31 -2
- package/esm/models/createchargerequest.js +47 -2
- package/esm/models/defaultparameters.d.ts +36 -0
- package/esm/models/defaultparameters.js +46 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
- package/esm/models/endpointstatus.d.ts +26 -0
- package/esm/models/endpointstatus.js +36 -0
- package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
- package/esm/models/errors/badgatewayresponseerror.js +63 -0
- package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
- package/esm/models/errors/badrequestresponseerror.js +63 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
- package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
- package/esm/models/errors/forbiddenresponseerror.js +63 -0
- package/esm/models/errors/index.d.ts +14 -2
- package/esm/models/errors/index.js +14 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
- package/esm/models/errors/internalserverresponseerror.js +63 -0
- package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
- package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
- package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
- package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
- package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
- package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
- package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
- package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
- package/esm/models/errors/unauthorizedresponseerror.js +63 -0
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
- package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
- package/esm/models/filecitation.d.ts +58 -0
- package/esm/models/filecitation.js +65 -0
- package/esm/models/filepath.d.ts +56 -0
- package/esm/models/filepath.js +64 -0
- package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
- package/esm/models/forbiddenresponseerrordata.js +35 -0
- package/esm/models/index.d.ts +67 -23
- package/esm/models/index.js +67 -23
- package/esm/models/inputmodality.d.ts +25 -0
- package/esm/models/inputmodality.js +35 -0
- package/esm/models/instructtype.d.ts +48 -0
- package/esm/models/instructtype.js +55 -0
- package/esm/models/internalserverresponseerrordata.d.ts +40 -0
- package/esm/models/internalserverresponseerrordata.js +35 -0
- package/esm/models/listendpointsresponse.d.ts +126 -2
- package/esm/models/listendpointsresponse.js +115 -2
- package/esm/models/model.d.ts +101 -0
- package/esm/models/model.js +82 -0
- package/esm/models/modelarchitecture.d.ts +104 -0
- package/esm/models/modelarchitecture.js +107 -0
- package/esm/models/modelgroup.d.ts +45 -0
- package/esm/models/modelgroup.js +53 -0
- package/esm/models/modelscountresponse.d.ts +40 -2
- package/esm/models/modelscountresponse.js +31 -2
- package/esm/models/modelslistresponse.d.ts +10 -2
- package/esm/models/modelslistresponse.js +7 -2
- package/esm/models/notfoundresponseerrordata.d.ts +40 -0
- package/esm/models/notfoundresponseerrordata.js +35 -0
- package/esm/models/openairesponsesannotation.d.ts +28 -0
- package/esm/models/openairesponsesannotation.js +38 -0
- package/esm/models/openairesponsesincludable.d.ts +25 -0
- package/esm/models/openairesponsesincludable.js +35 -0
- package/esm/models/openairesponsesincompletedetails.d.ts +49 -0
- package/esm/models/openairesponsesincompletedetails.js +58 -0
- package/esm/models/openairesponsesinputunion.d.ts +588 -0
- package/esm/models/openairesponsesinputunion.js +686 -0
- package/esm/models/openairesponsesprompt.d.ts +83 -0
- package/esm/models/openairesponsesprompt.js +97 -0
- package/esm/models/openairesponsesreasoningconfig.d.ts +33 -0
- package/esm/models/openairesponsesreasoningconfig.js +35 -0
- package/esm/models/openairesponsesreasoningeffort.d.ts +24 -0
- package/esm/models/openairesponsesreasoningeffort.js +34 -0
- package/esm/models/openairesponsesrefusalcontent.d.ts +54 -0
- package/esm/models/openairesponsesrefusalcontent.js +51 -0
- package/esm/models/openairesponsesresponsestatus.d.ts +26 -0
- package/esm/models/openairesponsesresponsestatus.js +36 -0
- package/esm/models/openairesponsesservicetier.d.ts +25 -0
- package/esm/models/openairesponsesservicetier.js +35 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +231 -0
- package/esm/models/openairesponsestoolchoiceunion.js +233 -0
- package/esm/models/openairesponsestruncation.d.ts +22 -0
- package/esm/models/openairesponsestruncation.js +32 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +75 -19
- package/esm/models/openresponseseasyinputmessage.js +105 -16
- package/esm/models/openresponseserrorevent.d.ts +63 -0
- package/esm/models/openresponseserrorevent.js +66 -0
- package/esm/models/openresponsesimagegencallcompleted.d.ts +61 -0
- package/esm/models/openresponsesimagegencallcompleted.js +68 -0
- package/esm/models/openresponsesimagegencallgenerating.d.ts +61 -0
- package/esm/models/openresponsesimagegencallgenerating.js +68 -0
- package/esm/models/openresponsesimagegencallinprogress.d.ts +61 -0
- package/esm/models/openresponsesimagegencallinprogress.js +68 -0
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +65 -0
- package/esm/models/openresponsesimagegencallpartialimage.js +76 -0
- package/esm/models/openresponsesinput.d.ts +36 -5
- package/esm/models/openresponsesinput.js +82 -5
- package/esm/models/openresponsesinputmessageitem.d.ts +52 -8
- package/esm/models/openresponsesinputmessageitem.js +68 -5
- package/esm/models/openresponseslogprobs.d.ts +3 -32
- package/esm/models/openresponseslogprobs.js +3 -29
- package/esm/models/openresponsesnonstreamingresponse.d.ts +93 -123
- package/esm/models/openresponsesnonstreamingresponse.js +111 -145
- package/esm/models/openresponsesreasoning.d.ts +89 -0
- package/esm/models/openresponsesreasoning.js +93 -0
- package/esm/models/openresponsesreasoningconfig.d.ts +2 -23
- package/esm/models/openresponsesreasoningconfig.js +3 -33
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdoneevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +66 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +75 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +74 -0
- package/esm/models/openresponsesrequest.d.ts +736 -2
- package/esm/models/openresponsesrequest.js +789 -2
- package/esm/models/openresponsesresponsetext.d.ts +59 -0
- package/esm/models/openresponsesresponsetext.js +64 -0
- package/esm/models/openresponsesstreamevent.d.ts +25 -612
- package/esm/models/openresponsesstreamevent.js +51 -742
- package/esm/models/openresponsestoplogprobs.d.ts +34 -0
- package/esm/models/openresponsestoplogprobs.js +33 -0
- package/esm/models/{responsesusage.d.ts → openresponsesusage.d.ts} +14 -14
- package/esm/models/{responsesusage.js → openresponsesusage.js} +14 -14
- package/esm/models/operations/createauthkeyscode.d.ts +145 -0
- package/esm/models/operations/createauthkeyscode.js +146 -0
- package/esm/models/operations/createresponses.d.ts +58 -0
- package/esm/models/operations/createresponses.js +80 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
- package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
- package/esm/models/operations/getmodels.d.ts +0 -26
- package/esm/models/operations/getmodels.js +0 -38
- package/esm/models/operations/getparameters.d.ts +1 -0
- package/esm/models/operations/getparameters.js +1 -0
- package/esm/models/operations/index.d.ts +3 -2
- package/esm/models/operations/index.js +3 -2
- package/esm/models/operations/listendpointszdr.d.ts +3 -24
- package/esm/models/operations/listendpointszdr.js +2 -29
- package/esm/models/operations/listmodelsuser.d.ts +0 -22
- package/esm/models/operations/listmodelsuser.js +0 -28
- package/esm/models/operations/listproviders.d.ts +0 -36
- package/esm/models/operations/listproviders.js +0 -28
- package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
- package/esm/models/operations/sendchatcompletionrequest.js +2 -1
- package/esm/models/outputitemimagegenerationcall.d.ts +59 -0
- package/esm/models/outputitemimagegenerationcall.js +56 -0
- package/esm/models/outputmessage.d.ts +192 -0
- package/esm/models/outputmessage.js +202 -0
- package/esm/models/outputmodality.d.ts +23 -0
- package/esm/models/outputmodality.js +33 -0
- package/esm/models/parameter.d.ts +43 -0
- package/esm/models/parameter.js +54 -0
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
- package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
- package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
- package/esm/models/paymentrequiredresponseerrordata.js +35 -0
- package/esm/models/perrequestlimits.d.ts +40 -0
- package/esm/models/perrequestlimits.js +44 -0
- package/esm/models/providername.d.ts +106 -0
- package/esm/models/providername.js +116 -0
- package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
- package/esm/models/provideroverloadedresponseerrordata.js +35 -0
- package/esm/models/publicendpoint.d.ts +140 -2
- package/esm/models/publicendpoint.js +156 -2
- package/esm/models/publicpricing.d.ts +87 -0
- package/esm/models/publicpricing.js +73 -0
- package/esm/models/quantization.d.ts +29 -0
- package/esm/models/quantization.js +39 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/requesttimeoutresponseerrordata.js +35 -0
- package/esm/models/responseformattextconfig.d.ts +31 -0
- package/esm/models/responseformattextconfig.js +38 -0
- package/esm/models/responseinputfile.d.ts +63 -0
- package/esm/models/responseinputfile.js +70 -0
- package/esm/models/responseinputimage.d.ts +79 -0
- package/esm/models/responseinputimage.js +90 -0
- package/esm/models/responseinputtext.d.ts +57 -0
- package/esm/models/responseinputtext.js +51 -0
- package/esm/models/responseoutputtext.d.ts +57 -0
- package/esm/models/responseoutputtext.js +54 -0
- package/esm/models/responseserrorfield.d.ts +25 -10
- package/esm/models/responseserrorfield.js +29 -14
- package/esm/models/responsesformatjsonobject.d.ts +55 -0
- package/esm/models/responsesformatjsonobject.js +49 -0
- package/esm/models/responsesformattext.d.ts +55 -0
- package/esm/models/responsesformattext.js +49 -0
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +67 -0
- package/esm/models/responsesformattextjsonschemaconfig.js +57 -0
- package/esm/models/responsesoutputitemfunctioncall.d.ts +89 -0
- package/esm/models/responsesoutputitemfunctioncall.js +93 -0
- package/esm/models/responsesoutputitemreasoning.d.ts +92 -0
- package/esm/models/responsesoutputitemreasoning.js +93 -0
- package/esm/models/responsesoutputmessage.d.ts +45 -42
- package/esm/models/responsesoutputmessage.js +76 -65
- package/esm/models/responsetextconfig.d.ts +59 -0
- package/esm/models/responsetextconfig.js +62 -0
- package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
- package/esm/models/serviceunavailableresponseerrordata.js +35 -0
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
- package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
- package/esm/models/topproviderinfo.d.ts +45 -0
- package/esm/models/topproviderinfo.js +48 -0
- package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
- package/esm/models/unauthorizedresponseerrordata.js +35 -0
- package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
- package/esm/models/unprocessableentityresponseerrordata.js +35 -0
- package/esm/models/urlcitation.d.ts +60 -0
- package/esm/models/urlcitation.js +69 -0
- package/esm/react-query/betaResponsesSend.d.ts +1 -1
- package/esm/react-query/index.d.ts +2 -0
- package/esm/react-query/index.js +2 -0
- package/esm/react-query/modelsCount.d.ts +2 -2
- package/esm/react-query/modelsList.d.ts +2 -7
- package/esm/react-query/modelsList.js +0 -2
- package/esm/react-query/modelsListForUser.d.ts +2 -1
- package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
- package/esm/react-query/oAuthCreateAuthCode.js +42 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
- package/esm/sdk/chat.d.ts +7 -0
- package/esm/sdk/chat.js +0 -6
- package/esm/sdk/models.d.ts +4 -3
- package/esm/sdk/oauth.d.ts +46 -0
- package/esm/sdk/oauth.js +67 -0
- package/esm/sdk/responses.d.ts +8 -1
- package/esm/sdk/responses.js +0 -6
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -1
- package/vitest.config.ts +26 -0
- package/.devcontainer/README.md +0 -35
- package/esm/models/errorresponse.d.ts +0 -155
- package/esm/models/errorresponse.js +0 -167
- package/esm/models/errors/errorresponse.d.ts +0 -46
- package/esm/models/errors/listproviders.d.ts +0 -49
- package/esm/models/errors/listproviders.js +0 -51
- package/esm/models/filecitationannotation.d.ts +0 -58
- package/esm/models/filecitationannotation.js +0 -64
- package/esm/models/filepathannotation.d.ts +0 -56
- package/esm/models/filepathannotation.js +0 -62
- package/esm/models/openresponsesformatjsonobject.d.ts +0 -55
- package/esm/models/openresponsesformatjsonobject.js +0 -49
- package/esm/models/openresponsesformatjsonschema.d.ts +0 -67
- package/esm/models/openresponsesformatjsonschema.js +0 -57
- package/esm/models/openresponsesformattext.d.ts +0 -55
- package/esm/models/openresponsesformattext.js +0 -49
- package/esm/models/openresponsesformattextconfig.d.ts +0 -31
- package/esm/models/openresponsesformattextconfig.js +0 -38
- package/esm/models/openresponsesinputcontent.d.ts +0 -43
- package/esm/models/openresponsesinputcontent.js +0 -50
- package/esm/models/openresponsesinputfile.d.ts +0 -63
- package/esm/models/openresponsesinputfile.js +0 -70
- package/esm/models/openresponsesinputimage.d.ts +0 -79
- package/esm/models/openresponsesinputimage.js +0 -90
- package/esm/models/openresponsesinputitem.d.ts +0 -39
- package/esm/models/openresponsesinputitem.js +0 -62
- package/esm/models/openresponsesinputtext.d.ts +0 -57
- package/esm/models/openresponsesinputtext.js +0 -51
- package/esm/models/openresponsesoutputtext.d.ts +0 -80
- package/esm/models/openresponsesoutputtext.js +0 -93
- package/esm/models/openresponsesprompt.d.ts +0 -39
- package/esm/models/openresponsesprompt.js +0 -34
- package/esm/models/openresponsesrefusalcontent.d.ts +0 -54
- package/esm/models/openresponsesrefusalcontent.js +0 -51
- package/esm/models/openresponsestextconfig.d.ts +0 -59
- package/esm/models/openresponsestextconfig.js +0 -63
- package/esm/models/openresponsestoolchoice.d.ts +0 -148
- package/esm/models/openresponsestoolchoice.js +0 -139
- package/esm/models/openresponsestoolunion.d.ts +0 -95
- package/esm/models/openresponsestoolunion.js +0 -94
- package/esm/models/operations/createapialpharesponses.d.ts +0 -58
- package/esm/models/operations/createapialpharesponses.js +0 -83
- package/esm/models/operations/listmodelscount.d.ts +0 -26
- package/esm/models/operations/listmodelscount.js +0 -34
- package/esm/models/outputtextcontent.d.ts +0 -80
- package/esm/models/outputtextcontent.js +0 -93
- package/esm/models/refusalcontent.d.ts +0 -54
- package/esm/models/refusalcontent.js +0 -51
- package/esm/models/toolchoicetypes.d.ts +0 -164
- package/esm/models/toolchoicetypes.js +0 -167
- package/esm/models/urlcitationannotation.d.ts +0 -60
- package/esm/models/urlcitationannotation.js +0 -68
- package/examples/README.md +0 -31
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { ResponseFormatTextConfig, ResponseFormatTextConfig$Outbound } from "./responseformattextconfig.js";
|
|
6
|
+
export declare const ResponseTextConfigVerbosity: {
|
|
7
|
+
readonly High: "high";
|
|
8
|
+
readonly Low: "low";
|
|
9
|
+
readonly Medium: "medium";
|
|
10
|
+
};
|
|
11
|
+
export type ResponseTextConfigVerbosity = OpenEnum<typeof ResponseTextConfigVerbosity>;
|
|
12
|
+
/**
|
|
13
|
+
* Text output configuration including format and verbosity
|
|
14
|
+
*/
|
|
15
|
+
export type ResponseTextConfig = {
|
|
16
|
+
/**
|
|
17
|
+
* Text response format configuration
|
|
18
|
+
*/
|
|
19
|
+
format?: ResponseFormatTextConfig | undefined;
|
|
20
|
+
verbosity?: ResponseTextConfigVerbosity | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const ResponseTextConfigVerbosity$inboundSchema: z.ZodType<ResponseTextConfigVerbosity, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const ResponseTextConfigVerbosity$outboundSchema: z.ZodType<ResponseTextConfigVerbosity, ResponseTextConfigVerbosity>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace ResponseTextConfigVerbosity$ {
|
|
31
|
+
/** @deprecated use `ResponseTextConfigVerbosity$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<ResponseTextConfigVerbosity, unknown, z.core.$ZodTypeInternals<ResponseTextConfigVerbosity, unknown>>;
|
|
33
|
+
/** @deprecated use `ResponseTextConfigVerbosity$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<ResponseTextConfigVerbosity, ResponseTextConfigVerbosity, z.core.$ZodTypeInternals<ResponseTextConfigVerbosity, ResponseTextConfigVerbosity>>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const ResponseTextConfig$inboundSchema: z.ZodType<ResponseTextConfig, unknown>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type ResponseTextConfig$Outbound = {
|
|
40
|
+
format?: ResponseFormatTextConfig$Outbound | undefined;
|
|
41
|
+
verbosity?: string | null | undefined;
|
|
42
|
+
};
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const ResponseTextConfig$outboundSchema: z.ZodType<ResponseTextConfig$Outbound, ResponseTextConfig>;
|
|
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 ResponseTextConfig$ {
|
|
50
|
+
/** @deprecated use `ResponseTextConfig$inboundSchema` instead. */
|
|
51
|
+
const inboundSchema: z.ZodType<ResponseTextConfig, unknown, z.core.$ZodTypeInternals<ResponseTextConfig, unknown>>;
|
|
52
|
+
/** @deprecated use `ResponseTextConfig$outboundSchema` instead. */
|
|
53
|
+
const outboundSchema: z.ZodType<ResponseTextConfig$Outbound, ResponseTextConfig, z.core.$ZodTypeInternals<ResponseTextConfig$Outbound, ResponseTextConfig>>;
|
|
54
|
+
/** @deprecated use `ResponseTextConfig$Outbound` instead. */
|
|
55
|
+
type Outbound = ResponseTextConfig$Outbound;
|
|
56
|
+
}
|
|
57
|
+
export declare function responseTextConfigToJSON(responseTextConfig: ResponseTextConfig): string;
|
|
58
|
+
export declare function responseTextConfigFromJSON(jsonString: string): SafeParseResult<ResponseTextConfig, SDKValidationError>;
|
|
59
|
+
//# sourceMappingURL=responsetextconfig.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
7
|
+
import { ResponseFormatTextConfig$inboundSchema, ResponseFormatTextConfig$outboundSchema, } from "./responseformattextconfig.js";
|
|
8
|
+
export const ResponseTextConfigVerbosity = {
|
|
9
|
+
High: "high",
|
|
10
|
+
Low: "low",
|
|
11
|
+
Medium: "medium",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const ResponseTextConfigVerbosity$inboundSchema = z
|
|
15
|
+
.union([
|
|
16
|
+
z.enum(ResponseTextConfigVerbosity),
|
|
17
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
18
|
+
]);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ResponseTextConfigVerbosity$outboundSchema = z.union([
|
|
21
|
+
z.enum(ResponseTextConfigVerbosity),
|
|
22
|
+
z.string().and(z.custom()),
|
|
23
|
+
]);
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export var ResponseTextConfigVerbosity$;
|
|
29
|
+
(function (ResponseTextConfigVerbosity$) {
|
|
30
|
+
/** @deprecated use `ResponseTextConfigVerbosity$inboundSchema` instead. */
|
|
31
|
+
ResponseTextConfigVerbosity$.inboundSchema = ResponseTextConfigVerbosity$inboundSchema;
|
|
32
|
+
/** @deprecated use `ResponseTextConfigVerbosity$outboundSchema` instead. */
|
|
33
|
+
ResponseTextConfigVerbosity$.outboundSchema = ResponseTextConfigVerbosity$outboundSchema;
|
|
34
|
+
})(ResponseTextConfigVerbosity$ || (ResponseTextConfigVerbosity$ = {}));
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ResponseTextConfig$inboundSchema = z.object({
|
|
37
|
+
format: ResponseFormatTextConfig$inboundSchema.optional(),
|
|
38
|
+
verbosity: z.nullable(ResponseTextConfigVerbosity$inboundSchema).optional(),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ResponseTextConfig$outboundSchema = z.object({
|
|
42
|
+
format: ResponseFormatTextConfig$outboundSchema.optional(),
|
|
43
|
+
verbosity: z.nullable(ResponseTextConfigVerbosity$outboundSchema).optional(),
|
|
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 ResponseTextConfig$;
|
|
50
|
+
(function (ResponseTextConfig$) {
|
|
51
|
+
/** @deprecated use `ResponseTextConfig$inboundSchema` instead. */
|
|
52
|
+
ResponseTextConfig$.inboundSchema = ResponseTextConfig$inboundSchema;
|
|
53
|
+
/** @deprecated use `ResponseTextConfig$outboundSchema` instead. */
|
|
54
|
+
ResponseTextConfig$.outboundSchema = ResponseTextConfig$outboundSchema;
|
|
55
|
+
})(ResponseTextConfig$ || (ResponseTextConfig$ = {}));
|
|
56
|
+
export function responseTextConfigToJSON(responseTextConfig) {
|
|
57
|
+
return JSON.stringify(ResponseTextConfig$outboundSchema.parse(responseTextConfig));
|
|
58
|
+
}
|
|
59
|
+
export function responseTextConfigFromJSON(jsonString) {
|
|
60
|
+
return safeParse(jsonString, (x) => ResponseTextConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseTextConfig' from JSON`);
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=responsetextconfig.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Error data for ServiceUnavailableResponse
|
|
6
|
+
*/
|
|
7
|
+
export type ServiceUnavailableResponseErrorData = {
|
|
8
|
+
code: number;
|
|
9
|
+
message: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[k: string]: any | null;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const ServiceUnavailableResponseErrorData$inboundSchema: z.ZodType<ServiceUnavailableResponseErrorData, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type ServiceUnavailableResponseErrorData$Outbound = {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
metadata?: {
|
|
21
|
+
[k: string]: any | null;
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const ServiceUnavailableResponseErrorData$outboundSchema: z.ZodType<ServiceUnavailableResponseErrorData$Outbound, ServiceUnavailableResponseErrorData>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace ServiceUnavailableResponseErrorData$ {
|
|
31
|
+
/** @deprecated use `ServiceUnavailableResponseErrorData$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<ServiceUnavailableResponseErrorData, unknown, z.core.$ZodTypeInternals<ServiceUnavailableResponseErrorData, unknown>>;
|
|
33
|
+
/** @deprecated use `ServiceUnavailableResponseErrorData$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<ServiceUnavailableResponseErrorData$Outbound, ServiceUnavailableResponseErrorData, z.core.$ZodTypeInternals<ServiceUnavailableResponseErrorData$Outbound, ServiceUnavailableResponseErrorData>>;
|
|
35
|
+
/** @deprecated use `ServiceUnavailableResponseErrorData$Outbound` instead. */
|
|
36
|
+
type Outbound = ServiceUnavailableResponseErrorData$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function serviceUnavailableResponseErrorDataToJSON(serviceUnavailableResponseErrorData: ServiceUnavailableResponseErrorData): string;
|
|
39
|
+
export declare function serviceUnavailableResponseErrorDataFromJSON(jsonString: string): SafeParseResult<ServiceUnavailableResponseErrorData, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=serviceunavailableresponseerrordata.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const ServiceUnavailableResponseErrorData$inboundSchema = z.object({
|
|
8
|
+
code: z.number().int(),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ServiceUnavailableResponseErrorData$outboundSchema = z.object({
|
|
14
|
+
code: z.number().int(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var ServiceUnavailableResponseErrorData$;
|
|
23
|
+
(function (ServiceUnavailableResponseErrorData$) {
|
|
24
|
+
/** @deprecated use `ServiceUnavailableResponseErrorData$inboundSchema` instead. */
|
|
25
|
+
ServiceUnavailableResponseErrorData$.inboundSchema = ServiceUnavailableResponseErrorData$inboundSchema;
|
|
26
|
+
/** @deprecated use `ServiceUnavailableResponseErrorData$outboundSchema` instead. */
|
|
27
|
+
ServiceUnavailableResponseErrorData$.outboundSchema = ServiceUnavailableResponseErrorData$outboundSchema;
|
|
28
|
+
})(ServiceUnavailableResponseErrorData$ || (ServiceUnavailableResponseErrorData$ = {}));
|
|
29
|
+
export function serviceUnavailableResponseErrorDataToJSON(serviceUnavailableResponseErrorData) {
|
|
30
|
+
return JSON.stringify(ServiceUnavailableResponseErrorData$outboundSchema.parse(serviceUnavailableResponseErrorData));
|
|
31
|
+
}
|
|
32
|
+
export function serviceUnavailableResponseErrorDataFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ServiceUnavailableResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ServiceUnavailableResponseErrorData' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=serviceunavailableresponseerrordata.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Error data for TooManyRequestsResponse
|
|
6
|
+
*/
|
|
7
|
+
export type TooManyRequestsResponseErrorData = {
|
|
8
|
+
code: number;
|
|
9
|
+
message: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[k: string]: any | null;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const TooManyRequestsResponseErrorData$inboundSchema: z.ZodType<TooManyRequestsResponseErrorData, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type TooManyRequestsResponseErrorData$Outbound = {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
metadata?: {
|
|
21
|
+
[k: string]: any | null;
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const TooManyRequestsResponseErrorData$outboundSchema: z.ZodType<TooManyRequestsResponseErrorData$Outbound, TooManyRequestsResponseErrorData>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace TooManyRequestsResponseErrorData$ {
|
|
31
|
+
/** @deprecated use `TooManyRequestsResponseErrorData$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<TooManyRequestsResponseErrorData, unknown, z.core.$ZodTypeInternals<TooManyRequestsResponseErrorData, unknown>>;
|
|
33
|
+
/** @deprecated use `TooManyRequestsResponseErrorData$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<TooManyRequestsResponseErrorData$Outbound, TooManyRequestsResponseErrorData, z.core.$ZodTypeInternals<TooManyRequestsResponseErrorData$Outbound, TooManyRequestsResponseErrorData>>;
|
|
35
|
+
/** @deprecated use `TooManyRequestsResponseErrorData$Outbound` instead. */
|
|
36
|
+
type Outbound = TooManyRequestsResponseErrorData$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function tooManyRequestsResponseErrorDataToJSON(tooManyRequestsResponseErrorData: TooManyRequestsResponseErrorData): string;
|
|
39
|
+
export declare function tooManyRequestsResponseErrorDataFromJSON(jsonString: string): SafeParseResult<TooManyRequestsResponseErrorData, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=toomanyrequestsresponseerrordata.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const TooManyRequestsResponseErrorData$inboundSchema = z.object({
|
|
8
|
+
code: z.number().int(),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const TooManyRequestsResponseErrorData$outboundSchema = z.object({
|
|
14
|
+
code: z.number().int(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var TooManyRequestsResponseErrorData$;
|
|
23
|
+
(function (TooManyRequestsResponseErrorData$) {
|
|
24
|
+
/** @deprecated use `TooManyRequestsResponseErrorData$inboundSchema` instead. */
|
|
25
|
+
TooManyRequestsResponseErrorData$.inboundSchema = TooManyRequestsResponseErrorData$inboundSchema;
|
|
26
|
+
/** @deprecated use `TooManyRequestsResponseErrorData$outboundSchema` instead. */
|
|
27
|
+
TooManyRequestsResponseErrorData$.outboundSchema = TooManyRequestsResponseErrorData$outboundSchema;
|
|
28
|
+
})(TooManyRequestsResponseErrorData$ || (TooManyRequestsResponseErrorData$ = {}));
|
|
29
|
+
export function tooManyRequestsResponseErrorDataToJSON(tooManyRequestsResponseErrorData) {
|
|
30
|
+
return JSON.stringify(TooManyRequestsResponseErrorData$outboundSchema.parse(tooManyRequestsResponseErrorData));
|
|
31
|
+
}
|
|
32
|
+
export function tooManyRequestsResponseErrorDataFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => TooManyRequestsResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TooManyRequestsResponseErrorData' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=toomanyrequestsresponseerrordata.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Information about the top provider for this model
|
|
6
|
+
*/
|
|
7
|
+
export type TopProviderInfo = {
|
|
8
|
+
/**
|
|
9
|
+
* Context length from the top provider
|
|
10
|
+
*/
|
|
11
|
+
contextLength?: number | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum completion tokens from the top provider
|
|
14
|
+
*/
|
|
15
|
+
maxCompletionTokens?: number | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the top provider moderates content
|
|
18
|
+
*/
|
|
19
|
+
isModerated: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const TopProviderInfo$inboundSchema: z.ZodType<TopProviderInfo, unknown>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type TopProviderInfo$Outbound = {
|
|
25
|
+
context_length?: number | null | undefined;
|
|
26
|
+
max_completion_tokens?: number | null | undefined;
|
|
27
|
+
is_moderated: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const TopProviderInfo$outboundSchema: z.ZodType<TopProviderInfo$Outbound, TopProviderInfo>;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export declare namespace TopProviderInfo$ {
|
|
36
|
+
/** @deprecated use `TopProviderInfo$inboundSchema` instead. */
|
|
37
|
+
const inboundSchema: z.ZodType<TopProviderInfo, unknown, z.core.$ZodTypeInternals<TopProviderInfo, unknown>>;
|
|
38
|
+
/** @deprecated use `TopProviderInfo$outboundSchema` instead. */
|
|
39
|
+
const outboundSchema: z.ZodType<TopProviderInfo$Outbound, TopProviderInfo, z.core.$ZodTypeInternals<TopProviderInfo$Outbound, TopProviderInfo>>;
|
|
40
|
+
/** @deprecated use `TopProviderInfo$Outbound` instead. */
|
|
41
|
+
type Outbound = TopProviderInfo$Outbound;
|
|
42
|
+
}
|
|
43
|
+
export declare function topProviderInfoToJSON(topProviderInfo: TopProviderInfo): string;
|
|
44
|
+
export declare function topProviderInfoFromJSON(jsonString: string): SafeParseResult<TopProviderInfo, SDKValidationError>;
|
|
45
|
+
//# sourceMappingURL=topproviderinfo.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
/** @internal */
|
|
8
|
+
export const TopProviderInfo$inboundSchema = z.object({
|
|
9
|
+
context_length: z.nullable(z.number()).optional(),
|
|
10
|
+
max_completion_tokens: z.nullable(z.number()).optional(),
|
|
11
|
+
is_moderated: z.boolean(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"context_length": "contextLength",
|
|
15
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
16
|
+
"is_moderated": "isModerated",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const TopProviderInfo$outboundSchema = z.object({
|
|
21
|
+
contextLength: z.nullable(z.number()).optional(),
|
|
22
|
+
maxCompletionTokens: z.nullable(z.number()).optional(),
|
|
23
|
+
isModerated: z.boolean(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
contextLength: "context_length",
|
|
27
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
28
|
+
isModerated: "is_moderated",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export var TopProviderInfo$;
|
|
36
|
+
(function (TopProviderInfo$) {
|
|
37
|
+
/** @deprecated use `TopProviderInfo$inboundSchema` instead. */
|
|
38
|
+
TopProviderInfo$.inboundSchema = TopProviderInfo$inboundSchema;
|
|
39
|
+
/** @deprecated use `TopProviderInfo$outboundSchema` instead. */
|
|
40
|
+
TopProviderInfo$.outboundSchema = TopProviderInfo$outboundSchema;
|
|
41
|
+
})(TopProviderInfo$ || (TopProviderInfo$ = {}));
|
|
42
|
+
export function topProviderInfoToJSON(topProviderInfo) {
|
|
43
|
+
return JSON.stringify(TopProviderInfo$outboundSchema.parse(topProviderInfo));
|
|
44
|
+
}
|
|
45
|
+
export function topProviderInfoFromJSON(jsonString) {
|
|
46
|
+
return safeParse(jsonString, (x) => TopProviderInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TopProviderInfo' from JSON`);
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=topproviderinfo.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Error data for UnauthorizedResponse
|
|
6
|
+
*/
|
|
7
|
+
export type UnauthorizedResponseErrorData = {
|
|
8
|
+
code: number;
|
|
9
|
+
message: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[k: string]: any | null;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const UnauthorizedResponseErrorData$inboundSchema: z.ZodType<UnauthorizedResponseErrorData, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type UnauthorizedResponseErrorData$Outbound = {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
metadata?: {
|
|
21
|
+
[k: string]: any | null;
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const UnauthorizedResponseErrorData$outboundSchema: z.ZodType<UnauthorizedResponseErrorData$Outbound, UnauthorizedResponseErrorData>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace UnauthorizedResponseErrorData$ {
|
|
31
|
+
/** @deprecated use `UnauthorizedResponseErrorData$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<UnauthorizedResponseErrorData, unknown, z.core.$ZodTypeInternals<UnauthorizedResponseErrorData, unknown>>;
|
|
33
|
+
/** @deprecated use `UnauthorizedResponseErrorData$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<UnauthorizedResponseErrorData$Outbound, UnauthorizedResponseErrorData, z.core.$ZodTypeInternals<UnauthorizedResponseErrorData$Outbound, UnauthorizedResponseErrorData>>;
|
|
35
|
+
/** @deprecated use `UnauthorizedResponseErrorData$Outbound` instead. */
|
|
36
|
+
type Outbound = UnauthorizedResponseErrorData$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function unauthorizedResponseErrorDataToJSON(unauthorizedResponseErrorData: UnauthorizedResponseErrorData): string;
|
|
39
|
+
export declare function unauthorizedResponseErrorDataFromJSON(jsonString: string): SafeParseResult<UnauthorizedResponseErrorData, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=unauthorizedresponseerrordata.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const UnauthorizedResponseErrorData$inboundSchema = z.object({
|
|
8
|
+
code: z.number().int(),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const UnauthorizedResponseErrorData$outboundSchema = z.object({
|
|
14
|
+
code: z.number().int(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var UnauthorizedResponseErrorData$;
|
|
23
|
+
(function (UnauthorizedResponseErrorData$) {
|
|
24
|
+
/** @deprecated use `UnauthorizedResponseErrorData$inboundSchema` instead. */
|
|
25
|
+
UnauthorizedResponseErrorData$.inboundSchema = UnauthorizedResponseErrorData$inboundSchema;
|
|
26
|
+
/** @deprecated use `UnauthorizedResponseErrorData$outboundSchema` instead. */
|
|
27
|
+
UnauthorizedResponseErrorData$.outboundSchema = UnauthorizedResponseErrorData$outboundSchema;
|
|
28
|
+
})(UnauthorizedResponseErrorData$ || (UnauthorizedResponseErrorData$ = {}));
|
|
29
|
+
export function unauthorizedResponseErrorDataToJSON(unauthorizedResponseErrorData) {
|
|
30
|
+
return JSON.stringify(UnauthorizedResponseErrorData$outboundSchema.parse(unauthorizedResponseErrorData));
|
|
31
|
+
}
|
|
32
|
+
export function unauthorizedResponseErrorDataFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => UnauthorizedResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnauthorizedResponseErrorData' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=unauthorizedresponseerrordata.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Error data for UnprocessableEntityResponse
|
|
6
|
+
*/
|
|
7
|
+
export type UnprocessableEntityResponseErrorData = {
|
|
8
|
+
code: number;
|
|
9
|
+
message: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[k: string]: any | null;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const UnprocessableEntityResponseErrorData$inboundSchema: z.ZodType<UnprocessableEntityResponseErrorData, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type UnprocessableEntityResponseErrorData$Outbound = {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
metadata?: {
|
|
21
|
+
[k: string]: any | null;
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const UnprocessableEntityResponseErrorData$outboundSchema: z.ZodType<UnprocessableEntityResponseErrorData$Outbound, UnprocessableEntityResponseErrorData>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace UnprocessableEntityResponseErrorData$ {
|
|
31
|
+
/** @deprecated use `UnprocessableEntityResponseErrorData$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<UnprocessableEntityResponseErrorData, unknown, z.core.$ZodTypeInternals<UnprocessableEntityResponseErrorData, unknown>>;
|
|
33
|
+
/** @deprecated use `UnprocessableEntityResponseErrorData$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<UnprocessableEntityResponseErrorData$Outbound, UnprocessableEntityResponseErrorData, z.core.$ZodTypeInternals<UnprocessableEntityResponseErrorData$Outbound, UnprocessableEntityResponseErrorData>>;
|
|
35
|
+
/** @deprecated use `UnprocessableEntityResponseErrorData$Outbound` instead. */
|
|
36
|
+
type Outbound = UnprocessableEntityResponseErrorData$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function unprocessableEntityResponseErrorDataToJSON(unprocessableEntityResponseErrorData: UnprocessableEntityResponseErrorData): string;
|
|
39
|
+
export declare function unprocessableEntityResponseErrorDataFromJSON(jsonString: string): SafeParseResult<UnprocessableEntityResponseErrorData, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=unprocessableentityresponseerrordata.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const UnprocessableEntityResponseErrorData$inboundSchema = z.object({
|
|
8
|
+
code: z.number().int(),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const UnprocessableEntityResponseErrorData$outboundSchema = z.object({
|
|
14
|
+
code: z.number().int(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var UnprocessableEntityResponseErrorData$;
|
|
23
|
+
(function (UnprocessableEntityResponseErrorData$) {
|
|
24
|
+
/** @deprecated use `UnprocessableEntityResponseErrorData$inboundSchema` instead. */
|
|
25
|
+
UnprocessableEntityResponseErrorData$.inboundSchema = UnprocessableEntityResponseErrorData$inboundSchema;
|
|
26
|
+
/** @deprecated use `UnprocessableEntityResponseErrorData$outboundSchema` instead. */
|
|
27
|
+
UnprocessableEntityResponseErrorData$.outboundSchema = UnprocessableEntityResponseErrorData$outboundSchema;
|
|
28
|
+
})(UnprocessableEntityResponseErrorData$ || (UnprocessableEntityResponseErrorData$ = {}));
|
|
29
|
+
export function unprocessableEntityResponseErrorDataToJSON(unprocessableEntityResponseErrorData) {
|
|
30
|
+
return JSON.stringify(UnprocessableEntityResponseErrorData$outboundSchema.parse(unprocessableEntityResponseErrorData));
|
|
31
|
+
}
|
|
32
|
+
export function unprocessableEntityResponseErrorDataFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => UnprocessableEntityResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnprocessableEntityResponseErrorData' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=unprocessableentityresponseerrordata.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
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 URLCitationType: {
|
|
6
|
+
readonly UrlCitation: "url_citation";
|
|
7
|
+
};
|
|
8
|
+
export type URLCitationType = ClosedEnum<typeof URLCitationType>;
|
|
9
|
+
export type URLCitation = {
|
|
10
|
+
type: URLCitationType;
|
|
11
|
+
url: string;
|
|
12
|
+
title: string;
|
|
13
|
+
startIndex: number;
|
|
14
|
+
endIndex: number;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const URLCitationType$inboundSchema: z.ZodEnum<typeof URLCitationType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const URLCitationType$outboundSchema: z.ZodEnum<typeof URLCitationType>;
|
|
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 URLCitationType$ {
|
|
25
|
+
/** @deprecated use `URLCitationType$inboundSchema` instead. */
|
|
26
|
+
const inboundSchema: z.ZodEnum<{
|
|
27
|
+
readonly UrlCitation: "url_citation";
|
|
28
|
+
}>;
|
|
29
|
+
/** @deprecated use `URLCitationType$outboundSchema` instead. */
|
|
30
|
+
const outboundSchema: z.ZodEnum<{
|
|
31
|
+
readonly UrlCitation: "url_citation";
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const URLCitation$inboundSchema: z.ZodType<URLCitation, unknown>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type URLCitation$Outbound = {
|
|
38
|
+
type: string;
|
|
39
|
+
url: string;
|
|
40
|
+
title: string;
|
|
41
|
+
start_index: number;
|
|
42
|
+
end_index: number;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const URLCitation$outboundSchema: z.ZodType<URLCitation$Outbound, URLCitation>;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace URLCitation$ {
|
|
51
|
+
/** @deprecated use `URLCitation$inboundSchema` instead. */
|
|
52
|
+
const inboundSchema: z.ZodType<URLCitation, unknown, z.core.$ZodTypeInternals<URLCitation, unknown>>;
|
|
53
|
+
/** @deprecated use `URLCitation$outboundSchema` instead. */
|
|
54
|
+
const outboundSchema: z.ZodType<URLCitation$Outbound, URLCitation, z.core.$ZodTypeInternals<URLCitation$Outbound, URLCitation>>;
|
|
55
|
+
/** @deprecated use `URLCitation$Outbound` instead. */
|
|
56
|
+
type Outbound = URLCitation$Outbound;
|
|
57
|
+
}
|
|
58
|
+
export declare function urlCitationToJSON(urlCitation: URLCitation): string;
|
|
59
|
+
export declare function urlCitationFromJSON(jsonString: string): SafeParseResult<URLCitation, SDKValidationError>;
|
|
60
|
+
//# sourceMappingURL=urlcitation.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
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 URLCitationType = {
|
|
8
|
+
UrlCitation: "url_citation",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const URLCitationType$inboundSchema = z.enum(URLCitationType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const URLCitationType$outboundSchema = URLCitationType$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 URLCitationType$;
|
|
19
|
+
(function (URLCitationType$) {
|
|
20
|
+
/** @deprecated use `URLCitationType$inboundSchema` instead. */
|
|
21
|
+
URLCitationType$.inboundSchema = URLCitationType$inboundSchema;
|
|
22
|
+
/** @deprecated use `URLCitationType$outboundSchema` instead. */
|
|
23
|
+
URLCitationType$.outboundSchema = URLCitationType$outboundSchema;
|
|
24
|
+
})(URLCitationType$ || (URLCitationType$ = {}));
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const URLCitation$inboundSchema = z
|
|
27
|
+
.object({
|
|
28
|
+
type: URLCitationType$inboundSchema,
|
|
29
|
+
url: z.string(),
|
|
30
|
+
title: z.string(),
|
|
31
|
+
start_index: z.number(),
|
|
32
|
+
end_index: z.number(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"start_index": "startIndex",
|
|
36
|
+
"end_index": "endIndex",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const URLCitation$outboundSchema = z.object({
|
|
41
|
+
type: URLCitationType$outboundSchema,
|
|
42
|
+
url: z.string(),
|
|
43
|
+
title: z.string(),
|
|
44
|
+
startIndex: z.number(),
|
|
45
|
+
endIndex: z.number(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
startIndex: "start_index",
|
|
49
|
+
endIndex: "end_index",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export var URLCitation$;
|
|
57
|
+
(function (URLCitation$) {
|
|
58
|
+
/** @deprecated use `URLCitation$inboundSchema` instead. */
|
|
59
|
+
URLCitation$.inboundSchema = URLCitation$inboundSchema;
|
|
60
|
+
/** @deprecated use `URLCitation$outboundSchema` instead. */
|
|
61
|
+
URLCitation$.outboundSchema = URLCitation$outboundSchema;
|
|
62
|
+
})(URLCitation$ || (URLCitation$ = {}));
|
|
63
|
+
export function urlCitationToJSON(urlCitation) {
|
|
64
|
+
return JSON.stringify(URLCitation$outboundSchema.parse(urlCitation));
|
|
65
|
+
}
|
|
66
|
+
export function urlCitationFromJSON(jsonString) {
|
|
67
|
+
return safeParse(jsonString, (x) => URLCitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'URLCitation' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=urlcitation.js.map
|