@openrouter/sdk 0.0.1-beta.9 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +109 -1
- package/REACT_QUERY.md +109 -1
- package/README.md +52 -396
- package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -2
- package/esm/funcs/apiKeysCreate.d.ts +1 -1
- package/esm/funcs/apiKeysCreate.js +2 -2
- package/esm/funcs/apiKeysDelete.d.ts +1 -1
- package/esm/funcs/apiKeysDelete.js +2 -2
- package/esm/funcs/apiKeysGet.d.ts +1 -1
- package/esm/funcs/apiKeysGet.js +2 -2
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +2 -2
- package/esm/funcs/apiKeysUpdate.d.ts +1 -1
- package/esm/funcs/apiKeysUpdate.js +2 -2
- package/esm/funcs/betaResponsesSend.d.ts +9 -1
- package/esm/funcs/betaResponsesSend.js +38 -14
- package/esm/funcs/chatSend.d.ts +7 -0
- package/esm/funcs/chatSend.js +1 -7
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
- package/esm/funcs/creditsGetCredits.d.ts +1 -1
- package/esm/funcs/creditsGetCredits.js +2 -2
- package/esm/funcs/endpointsList.d.ts +1 -1
- package/esm/funcs/endpointsList.js +2 -2
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
- package/esm/funcs/generationsGetGeneration.d.ts +1 -1
- package/esm/funcs/generationsGetGeneration.js +13 -2
- package/esm/funcs/modelsCount.d.ts +3 -2
- package/esm/funcs/modelsCount.js +7 -3
- package/esm/funcs/modelsList.d.ts +3 -1
- package/esm/funcs/modelsList.js +8 -7
- package/esm/funcs/modelsListForUser.d.ts +3 -1
- package/esm/funcs/modelsListForUser.js +7 -3
- package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
- package/esm/funcs/oAuthCreateAuthCode.js +82 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
- package/esm/funcs/parametersGetParameters.d.ts +1 -1
- package/esm/funcs/parametersGetParameters.js +2 -2
- package/esm/funcs/providersList.d.ts +1 -1
- package/esm/funcs/providersList.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/event-streams.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
- package/esm/models/badgatewayresponseerrordata.js +35 -0
- package/esm/models/badrequestresponseerrordata.d.ts +40 -0
- package/esm/models/badrequestresponseerrordata.js +35 -0
- package/esm/models/chatgenerationparams.d.ts +12 -12
- package/esm/models/chatgenerationparams.js +16 -16
- package/esm/models/chatgenerationtokenusage.d.ts +2 -2
- package/esm/models/chatgenerationtokenusage.js +2 -4
- package/esm/models/chatmessagetokenlogprob.d.ts +15 -15
- package/esm/models/chatmessagetokenlogprob.js +16 -15
- package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
- package/esm/models/chatstreamingresponsechunk.js +15 -15
- package/esm/models/completioncreateparams.d.ts +2 -2
- package/esm/models/completioncreateparams.js +2 -2
- package/esm/models/createchargerequest.d.ts +31 -2
- package/esm/models/createchargerequest.js +47 -2
- package/esm/models/defaultparameters.d.ts +36 -0
- package/esm/models/defaultparameters.js +46 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
- package/esm/models/endpointstatus.d.ts +26 -0
- package/esm/models/endpointstatus.js +36 -0
- package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
- package/esm/models/errors/badgatewayresponseerror.js +63 -0
- package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
- package/esm/models/errors/badrequestresponseerror.js +63 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
- package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
- package/esm/models/errors/forbiddenresponseerror.js +63 -0
- package/esm/models/errors/index.d.ts +14 -2
- package/esm/models/errors/index.js +14 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
- package/esm/models/errors/internalserverresponseerror.js +63 -0
- package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
- package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
- package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
- package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
- package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
- package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
- package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
- package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
- package/esm/models/errors/unauthorizedresponseerror.js +63 -0
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
- package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
- package/esm/models/filecitation.d.ts +58 -0
- package/esm/models/filecitation.js +65 -0
- package/esm/models/filepath.d.ts +56 -0
- package/esm/models/filepath.js +64 -0
- package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
- package/esm/models/forbiddenresponseerrordata.js +35 -0
- package/esm/models/index.d.ts +67 -23
- package/esm/models/index.js +67 -23
- package/esm/models/inputmodality.d.ts +25 -0
- package/esm/models/inputmodality.js +35 -0
- package/esm/models/instructtype.d.ts +48 -0
- package/esm/models/instructtype.js +55 -0
- package/esm/models/internalserverresponseerrordata.d.ts +40 -0
- package/esm/models/internalserverresponseerrordata.js +35 -0
- package/esm/models/listendpointsresponse.d.ts +126 -2
- package/esm/models/listendpointsresponse.js +115 -2
- package/esm/models/model.d.ts +101 -0
- package/esm/models/model.js +82 -0
- package/esm/models/modelarchitecture.d.ts +104 -0
- package/esm/models/modelarchitecture.js +107 -0
- package/esm/models/modelgroup.d.ts +45 -0
- package/esm/models/modelgroup.js +53 -0
- package/esm/models/modelscountresponse.d.ts +40 -2
- package/esm/models/modelscountresponse.js +31 -2
- package/esm/models/modelslistresponse.d.ts +10 -2
- package/esm/models/modelslistresponse.js +7 -2
- package/esm/models/notfoundresponseerrordata.d.ts +40 -0
- package/esm/models/notfoundresponseerrordata.js +35 -0
- package/esm/models/openairesponsesannotation.d.ts +28 -0
- package/esm/models/openairesponsesannotation.js +38 -0
- package/esm/models/openairesponsesincludable.d.ts +25 -0
- package/esm/models/openairesponsesincludable.js +35 -0
- package/esm/models/openairesponsesincompletedetails.d.ts +49 -0
- package/esm/models/openairesponsesincompletedetails.js +58 -0
- package/esm/models/openairesponsesinputunion.d.ts +588 -0
- package/esm/models/openairesponsesinputunion.js +686 -0
- package/esm/models/openairesponsesprompt.d.ts +83 -0
- package/esm/models/openairesponsesprompt.js +97 -0
- package/esm/models/openairesponsesreasoningconfig.d.ts +33 -0
- package/esm/models/openairesponsesreasoningconfig.js +35 -0
- package/esm/models/openairesponsesreasoningeffort.d.ts +24 -0
- package/esm/models/openairesponsesreasoningeffort.js +34 -0
- package/esm/models/openairesponsesrefusalcontent.d.ts +54 -0
- package/esm/models/openairesponsesrefusalcontent.js +51 -0
- package/esm/models/openairesponsesresponsestatus.d.ts +26 -0
- package/esm/models/openairesponsesresponsestatus.js +36 -0
- package/esm/models/openairesponsesservicetier.d.ts +25 -0
- package/esm/models/openairesponsesservicetier.js +35 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +231 -0
- package/esm/models/openairesponsestoolchoiceunion.js +233 -0
- package/esm/models/openairesponsestruncation.d.ts +22 -0
- package/esm/models/openairesponsestruncation.js +32 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +75 -19
- package/esm/models/openresponseseasyinputmessage.js +105 -16
- package/esm/models/openresponseserrorevent.d.ts +63 -0
- package/esm/models/openresponseserrorevent.js +66 -0
- package/esm/models/openresponsesimagegencallcompleted.d.ts +61 -0
- package/esm/models/openresponsesimagegencallcompleted.js +68 -0
- package/esm/models/openresponsesimagegencallgenerating.d.ts +61 -0
- package/esm/models/openresponsesimagegencallgenerating.js +68 -0
- package/esm/models/openresponsesimagegencallinprogress.d.ts +61 -0
- package/esm/models/openresponsesimagegencallinprogress.js +68 -0
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +65 -0
- package/esm/models/openresponsesimagegencallpartialimage.js +76 -0
- package/esm/models/openresponsesinput.d.ts +36 -5
- package/esm/models/openresponsesinput.js +82 -5
- package/esm/models/openresponsesinputmessageitem.d.ts +52 -8
- package/esm/models/openresponsesinputmessageitem.js +68 -5
- package/esm/models/openresponseslogprobs.d.ts +3 -32
- package/esm/models/openresponseslogprobs.js +3 -29
- package/esm/models/openresponsesnonstreamingresponse.d.ts +93 -123
- package/esm/models/openresponsesnonstreamingresponse.js +111 -145
- package/esm/models/openresponsesreasoning.d.ts +89 -0
- package/esm/models/openresponsesreasoning.js +93 -0
- package/esm/models/openresponsesreasoningconfig.d.ts +2 -23
- package/esm/models/openresponsesreasoningconfig.js +3 -33
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningdoneevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +66 -0
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +75 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +74 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +65 -0
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +74 -0
- package/esm/models/openresponsesrequest.d.ts +736 -2
- package/esm/models/openresponsesrequest.js +789 -2
- package/esm/models/openresponsesresponsetext.d.ts +59 -0
- package/esm/models/openresponsesresponsetext.js +64 -0
- package/esm/models/openresponsesstreamevent.d.ts +25 -612
- package/esm/models/openresponsesstreamevent.js +51 -742
- package/esm/models/openresponsestoplogprobs.d.ts +34 -0
- package/esm/models/openresponsestoplogprobs.js +33 -0
- package/esm/models/{responsesusage.d.ts → openresponsesusage.d.ts} +14 -14
- package/esm/models/{responsesusage.js → openresponsesusage.js} +14 -14
- package/esm/models/operations/createauthkeyscode.d.ts +145 -0
- package/esm/models/operations/createauthkeyscode.js +146 -0
- package/esm/models/operations/createresponses.d.ts +58 -0
- package/esm/models/operations/createresponses.js +80 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
- package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
- package/esm/models/operations/getmodels.d.ts +0 -26
- package/esm/models/operations/getmodels.js +0 -38
- package/esm/models/operations/getparameters.d.ts +1 -0
- package/esm/models/operations/getparameters.js +1 -0
- package/esm/models/operations/index.d.ts +3 -2
- package/esm/models/operations/index.js +3 -2
- package/esm/models/operations/listendpointszdr.d.ts +3 -24
- package/esm/models/operations/listendpointszdr.js +2 -29
- package/esm/models/operations/listmodelsuser.d.ts +0 -22
- package/esm/models/operations/listmodelsuser.js +0 -28
- package/esm/models/operations/listproviders.d.ts +0 -36
- package/esm/models/operations/listproviders.js +0 -28
- package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
- package/esm/models/operations/sendchatcompletionrequest.js +2 -1
- package/esm/models/outputitemimagegenerationcall.d.ts +59 -0
- package/esm/models/outputitemimagegenerationcall.js +56 -0
- package/esm/models/outputmessage.d.ts +192 -0
- package/esm/models/outputmessage.js +202 -0
- package/esm/models/outputmodality.d.ts +23 -0
- package/esm/models/outputmodality.js +33 -0
- package/esm/models/parameter.d.ts +43 -0
- package/esm/models/parameter.js +54 -0
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
- package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
- package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
- package/esm/models/paymentrequiredresponseerrordata.js +35 -0
- package/esm/models/perrequestlimits.d.ts +40 -0
- package/esm/models/perrequestlimits.js +44 -0
- package/esm/models/providername.d.ts +106 -0
- package/esm/models/providername.js +116 -0
- package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
- package/esm/models/provideroverloadedresponseerrordata.js +35 -0
- package/esm/models/publicendpoint.d.ts +140 -2
- package/esm/models/publicendpoint.js +156 -2
- package/esm/models/publicpricing.d.ts +87 -0
- package/esm/models/publicpricing.js +73 -0
- package/esm/models/quantization.d.ts +29 -0
- package/esm/models/quantization.js +39 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/requesttimeoutresponseerrordata.js +35 -0
- package/esm/models/responseformattextconfig.d.ts +31 -0
- package/esm/models/responseformattextconfig.js +38 -0
- package/esm/models/responseinputfile.d.ts +63 -0
- package/esm/models/responseinputfile.js +70 -0
- package/esm/models/responseinputimage.d.ts +79 -0
- package/esm/models/responseinputimage.js +90 -0
- package/esm/models/responseinputtext.d.ts +57 -0
- package/esm/models/responseinputtext.js +51 -0
- package/esm/models/responseoutputtext.d.ts +57 -0
- package/esm/models/responseoutputtext.js +54 -0
- package/esm/models/responseserrorfield.d.ts +25 -10
- package/esm/models/responseserrorfield.js +29 -14
- package/esm/models/responsesformatjsonobject.d.ts +55 -0
- package/esm/models/responsesformatjsonobject.js +49 -0
- package/esm/models/responsesformattext.d.ts +55 -0
- package/esm/models/responsesformattext.js +49 -0
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +67 -0
- package/esm/models/responsesformattextjsonschemaconfig.js +57 -0
- package/esm/models/responsesoutputitemfunctioncall.d.ts +89 -0
- package/esm/models/responsesoutputitemfunctioncall.js +93 -0
- package/esm/models/responsesoutputitemreasoning.d.ts +92 -0
- package/esm/models/responsesoutputitemreasoning.js +93 -0
- package/esm/models/responsesoutputmessage.d.ts +45 -42
- package/esm/models/responsesoutputmessage.js +76 -65
- package/esm/models/responsetextconfig.d.ts +59 -0
- package/esm/models/responsetextconfig.js +62 -0
- package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
- package/esm/models/serviceunavailableresponseerrordata.js +35 -0
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
- package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
- package/esm/models/topproviderinfo.d.ts +45 -0
- package/esm/models/topproviderinfo.js +48 -0
- package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
- package/esm/models/unauthorizedresponseerrordata.js +35 -0
- package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
- package/esm/models/unprocessableentityresponseerrordata.js +35 -0
- package/esm/models/urlcitation.d.ts +60 -0
- package/esm/models/urlcitation.js +69 -0
- package/esm/react-query/betaResponsesSend.d.ts +1 -1
- package/esm/react-query/index.d.ts +2 -0
- package/esm/react-query/index.js +2 -0
- package/esm/react-query/modelsCount.d.ts +2 -2
- package/esm/react-query/modelsList.d.ts +2 -7
- package/esm/react-query/modelsList.js +0 -2
- package/esm/react-query/modelsListForUser.d.ts +2 -1
- package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
- package/esm/react-query/oAuthCreateAuthCode.js +42 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
- package/esm/sdk/chat.d.ts +7 -0
- package/esm/sdk/chat.js +0 -6
- package/esm/sdk/models.d.ts +4 -3
- package/esm/sdk/oauth.d.ts +46 -0
- package/esm/sdk/oauth.js +67 -0
- package/esm/sdk/responses.d.ts +8 -1
- package/esm/sdk/responses.js +0 -6
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -1
- package/vitest.config.ts +26 -0
- package/esm/models/errorresponse.d.ts +0 -155
- package/esm/models/errorresponse.js +0 -167
- package/esm/models/errors/errorresponse.d.ts +0 -46
- package/esm/models/errors/listproviders.d.ts +0 -49
- package/esm/models/errors/listproviders.js +0 -51
- package/esm/models/filecitationannotation.d.ts +0 -58
- package/esm/models/filecitationannotation.js +0 -64
- package/esm/models/filepathannotation.d.ts +0 -56
- package/esm/models/filepathannotation.js +0 -62
- package/esm/models/openresponsesformatjsonobject.d.ts +0 -55
- package/esm/models/openresponsesformatjsonobject.js +0 -49
- package/esm/models/openresponsesformatjsonschema.d.ts +0 -67
- package/esm/models/openresponsesformatjsonschema.js +0 -57
- package/esm/models/openresponsesformattext.d.ts +0 -55
- package/esm/models/openresponsesformattext.js +0 -49
- package/esm/models/openresponsesformattextconfig.d.ts +0 -31
- package/esm/models/openresponsesformattextconfig.js +0 -38
- package/esm/models/openresponsesinputcontent.d.ts +0 -43
- package/esm/models/openresponsesinputcontent.js +0 -50
- package/esm/models/openresponsesinputfile.d.ts +0 -63
- package/esm/models/openresponsesinputfile.js +0 -70
- package/esm/models/openresponsesinputimage.d.ts +0 -79
- package/esm/models/openresponsesinputimage.js +0 -90
- package/esm/models/openresponsesinputitem.d.ts +0 -39
- package/esm/models/openresponsesinputitem.js +0 -62
- package/esm/models/openresponsesinputtext.d.ts +0 -57
- package/esm/models/openresponsesinputtext.js +0 -51
- package/esm/models/openresponsesoutputtext.d.ts +0 -80
- package/esm/models/openresponsesoutputtext.js +0 -93
- package/esm/models/openresponsesprompt.d.ts +0 -39
- package/esm/models/openresponsesprompt.js +0 -34
- package/esm/models/openresponsesrefusalcontent.d.ts +0 -54
- package/esm/models/openresponsesrefusalcontent.js +0 -51
- package/esm/models/openresponsestextconfig.d.ts +0 -59
- package/esm/models/openresponsestextconfig.js +0 -63
- package/esm/models/openresponsestoolchoice.d.ts +0 -148
- package/esm/models/openresponsestoolchoice.js +0 -139
- package/esm/models/openresponsestoolunion.d.ts +0 -95
- package/esm/models/openresponsestoolunion.js +0 -94
- package/esm/models/operations/createapialpharesponses.d.ts +0 -58
- package/esm/models/operations/createapialpharesponses.js +0 -83
- package/esm/models/operations/listmodelscount.d.ts +0 -26
- package/esm/models/operations/listmodelscount.js +0 -34
- package/esm/models/outputtextcontent.d.ts +0 -80
- package/esm/models/outputtextcontent.js +0 -93
- package/esm/models/refusalcontent.d.ts +0 -54
- package/esm/models/refusalcontent.js +0 -51
- package/esm/models/toolchoicetypes.d.ts +0 -164
- package/esm/models/toolchoicetypes.js +0 -167
- package/esm/models/urlcitationannotation.d.ts +0 -60
- package/esm/models/urlcitationannotation.js +0 -68
|
@@ -1,95 +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
|
-
import { OpenResponsesWebSearch20250826Tool, OpenResponsesWebSearch20250826Tool$Outbound } from "./openresponseswebsearch20250826tool.js";
|
|
6
|
-
import { OpenResponsesWebSearchPreview20250311Tool, OpenResponsesWebSearchPreview20250311Tool$Outbound } from "./openresponseswebsearchpreview20250311tool.js";
|
|
7
|
-
import { OpenResponsesWebSearchPreviewTool, OpenResponsesWebSearchPreviewTool$Outbound } from "./openresponseswebsearchpreviewtool.js";
|
|
8
|
-
import { OpenResponsesWebSearchTool, OpenResponsesWebSearchTool$Outbound } from "./openresponseswebsearchtool.js";
|
|
9
|
-
export declare const OpenResponsesToolUnionType: {
|
|
10
|
-
readonly Function: "function";
|
|
11
|
-
};
|
|
12
|
-
export type OpenResponsesToolUnionType = ClosedEnum<typeof OpenResponsesToolUnionType>;
|
|
13
|
-
/**
|
|
14
|
-
* Function tool definition
|
|
15
|
-
*/
|
|
16
|
-
export type OpenResponsesToolUnionFunction = {
|
|
17
|
-
type: OpenResponsesToolUnionType;
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string | null | undefined;
|
|
20
|
-
strict?: boolean | null | undefined;
|
|
21
|
-
parameters: {
|
|
22
|
-
[k: string]: any | null;
|
|
23
|
-
} | null;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Union of all supported tool definitions
|
|
27
|
-
*/
|
|
28
|
-
export type OpenResponsesToolUnion = OpenResponsesToolUnionFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool;
|
|
29
|
-
/** @internal */
|
|
30
|
-
export declare const OpenResponsesToolUnionType$inboundSchema: z.ZodEnum<typeof OpenResponsesToolUnionType>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const OpenResponsesToolUnionType$outboundSchema: z.ZodEnum<typeof OpenResponsesToolUnionType>;
|
|
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 declare namespace OpenResponsesToolUnionType$ {
|
|
38
|
-
/** @deprecated use `OpenResponsesToolUnionType$inboundSchema` instead. */
|
|
39
|
-
const inboundSchema: z.ZodEnum<{
|
|
40
|
-
readonly Function: "function";
|
|
41
|
-
}>;
|
|
42
|
-
/** @deprecated use `OpenResponsesToolUnionType$outboundSchema` instead. */
|
|
43
|
-
const outboundSchema: z.ZodEnum<{
|
|
44
|
-
readonly Function: "function";
|
|
45
|
-
}>;
|
|
46
|
-
}
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const OpenResponsesToolUnionFunction$inboundSchema: z.ZodType<OpenResponsesToolUnionFunction, unknown>;
|
|
49
|
-
/** @internal */
|
|
50
|
-
export type OpenResponsesToolUnionFunction$Outbound = {
|
|
51
|
-
type: string;
|
|
52
|
-
name: string;
|
|
53
|
-
description?: string | null | undefined;
|
|
54
|
-
strict?: boolean | null | undefined;
|
|
55
|
-
parameters: {
|
|
56
|
-
[k: string]: any | null;
|
|
57
|
-
} | null;
|
|
58
|
-
};
|
|
59
|
-
/** @internal */
|
|
60
|
-
export declare const OpenResponsesToolUnionFunction$outboundSchema: z.ZodType<OpenResponsesToolUnionFunction$Outbound, OpenResponsesToolUnionFunction>;
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export declare namespace OpenResponsesToolUnionFunction$ {
|
|
66
|
-
/** @deprecated use `OpenResponsesToolUnionFunction$inboundSchema` instead. */
|
|
67
|
-
const inboundSchema: z.ZodType<OpenResponsesToolUnionFunction, unknown, z.core.$ZodTypeInternals<OpenResponsesToolUnionFunction, unknown>>;
|
|
68
|
-
/** @deprecated use `OpenResponsesToolUnionFunction$outboundSchema` instead. */
|
|
69
|
-
const outboundSchema: z.ZodType<OpenResponsesToolUnionFunction$Outbound, OpenResponsesToolUnionFunction, z.core.$ZodTypeInternals<OpenResponsesToolUnionFunction$Outbound, OpenResponsesToolUnionFunction>>;
|
|
70
|
-
/** @deprecated use `OpenResponsesToolUnionFunction$Outbound` instead. */
|
|
71
|
-
type Outbound = OpenResponsesToolUnionFunction$Outbound;
|
|
72
|
-
}
|
|
73
|
-
export declare function openResponsesToolUnionFunctionToJSON(openResponsesToolUnionFunction: OpenResponsesToolUnionFunction): string;
|
|
74
|
-
export declare function openResponsesToolUnionFunctionFromJSON(jsonString: string): SafeParseResult<OpenResponsesToolUnionFunction, SDKValidationError>;
|
|
75
|
-
/** @internal */
|
|
76
|
-
export declare const OpenResponsesToolUnion$inboundSchema: z.ZodType<OpenResponsesToolUnion, unknown>;
|
|
77
|
-
/** @internal */
|
|
78
|
-
export type OpenResponsesToolUnion$Outbound = OpenResponsesToolUnionFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound;
|
|
79
|
-
/** @internal */
|
|
80
|
-
export declare const OpenResponsesToolUnion$outboundSchema: z.ZodType<OpenResponsesToolUnion$Outbound, OpenResponsesToolUnion>;
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export declare namespace OpenResponsesToolUnion$ {
|
|
86
|
-
/** @deprecated use `OpenResponsesToolUnion$inboundSchema` instead. */
|
|
87
|
-
const inboundSchema: z.ZodType<OpenResponsesToolUnion, unknown, z.core.$ZodTypeInternals<OpenResponsesToolUnion, unknown>>;
|
|
88
|
-
/** @deprecated use `OpenResponsesToolUnion$outboundSchema` instead. */
|
|
89
|
-
const outboundSchema: z.ZodType<OpenResponsesToolUnion$Outbound, OpenResponsesToolUnion, z.core.$ZodTypeInternals<OpenResponsesToolUnion$Outbound, OpenResponsesToolUnion>>;
|
|
90
|
-
/** @deprecated use `OpenResponsesToolUnion$Outbound` instead. */
|
|
91
|
-
type Outbound = OpenResponsesToolUnion$Outbound;
|
|
92
|
-
}
|
|
93
|
-
export declare function openResponsesToolUnionToJSON(openResponsesToolUnion: OpenResponsesToolUnion): string;
|
|
94
|
-
export declare function openResponsesToolUnionFromJSON(jsonString: string): SafeParseResult<OpenResponsesToolUnion, SDKValidationError>;
|
|
95
|
-
//# sourceMappingURL=openresponsestoolunion.d.ts.map
|
|
@@ -1,94 +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 { OpenResponsesWebSearch20250826Tool$inboundSchema, OpenResponsesWebSearch20250826Tool$outboundSchema, } from "./openresponseswebsearch20250826tool.js";
|
|
7
|
-
import { OpenResponsesWebSearchPreview20250311Tool$inboundSchema, OpenResponsesWebSearchPreview20250311Tool$outboundSchema, } from "./openresponseswebsearchpreview20250311tool.js";
|
|
8
|
-
import { OpenResponsesWebSearchPreviewTool$inboundSchema, OpenResponsesWebSearchPreviewTool$outboundSchema, } from "./openresponseswebsearchpreviewtool.js";
|
|
9
|
-
import { OpenResponsesWebSearchTool$inboundSchema, OpenResponsesWebSearchTool$outboundSchema, } from "./openresponseswebsearchtool.js";
|
|
10
|
-
export const OpenResponsesToolUnionType = {
|
|
11
|
-
Function: "function",
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const OpenResponsesToolUnionType$inboundSchema = z.enum(OpenResponsesToolUnionType);
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const OpenResponsesToolUnionType$outboundSchema = OpenResponsesToolUnionType$inboundSchema;
|
|
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 var OpenResponsesToolUnionType$;
|
|
22
|
-
(function (OpenResponsesToolUnionType$) {
|
|
23
|
-
/** @deprecated use `OpenResponsesToolUnionType$inboundSchema` instead. */
|
|
24
|
-
OpenResponsesToolUnionType$.inboundSchema = OpenResponsesToolUnionType$inboundSchema;
|
|
25
|
-
/** @deprecated use `OpenResponsesToolUnionType$outboundSchema` instead. */
|
|
26
|
-
OpenResponsesToolUnionType$.outboundSchema = OpenResponsesToolUnionType$outboundSchema;
|
|
27
|
-
})(OpenResponsesToolUnionType$ || (OpenResponsesToolUnionType$ = {}));
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const OpenResponsesToolUnionFunction$inboundSchema = z.object({
|
|
30
|
-
type: OpenResponsesToolUnionType$inboundSchema,
|
|
31
|
-
name: z.string(),
|
|
32
|
-
description: z.nullable(z.string()).optional(),
|
|
33
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
34
|
-
parameters: z.nullable(z.record(z.string(), z.nullable(z.any()))),
|
|
35
|
-
});
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const OpenResponsesToolUnionFunction$outboundSchema = z.object({
|
|
38
|
-
type: OpenResponsesToolUnionType$outboundSchema,
|
|
39
|
-
name: z.string(),
|
|
40
|
-
description: z.nullable(z.string()).optional(),
|
|
41
|
-
strict: z.nullable(z.boolean()).optional(),
|
|
42
|
-
parameters: z.nullable(z.record(z.string(), z.nullable(z.any()))),
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export var OpenResponsesToolUnionFunction$;
|
|
49
|
-
(function (OpenResponsesToolUnionFunction$) {
|
|
50
|
-
/** @deprecated use `OpenResponsesToolUnionFunction$inboundSchema` instead. */
|
|
51
|
-
OpenResponsesToolUnionFunction$.inboundSchema = OpenResponsesToolUnionFunction$inboundSchema;
|
|
52
|
-
/** @deprecated use `OpenResponsesToolUnionFunction$outboundSchema` instead. */
|
|
53
|
-
OpenResponsesToolUnionFunction$.outboundSchema = OpenResponsesToolUnionFunction$outboundSchema;
|
|
54
|
-
})(OpenResponsesToolUnionFunction$ || (OpenResponsesToolUnionFunction$ = {}));
|
|
55
|
-
export function openResponsesToolUnionFunctionToJSON(openResponsesToolUnionFunction) {
|
|
56
|
-
return JSON.stringify(OpenResponsesToolUnionFunction$outboundSchema.parse(openResponsesToolUnionFunction));
|
|
57
|
-
}
|
|
58
|
-
export function openResponsesToolUnionFunctionFromJSON(jsonString) {
|
|
59
|
-
return safeParse(jsonString, (x) => OpenResponsesToolUnionFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesToolUnionFunction' from JSON`);
|
|
60
|
-
}
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const OpenResponsesToolUnion$inboundSchema = z.union([
|
|
63
|
-
z.lazy(() => OpenResponsesToolUnionFunction$inboundSchema),
|
|
64
|
-
OpenResponsesWebSearchPreviewTool$inboundSchema,
|
|
65
|
-
OpenResponsesWebSearchPreview20250311Tool$inboundSchema,
|
|
66
|
-
OpenResponsesWebSearchTool$inboundSchema,
|
|
67
|
-
OpenResponsesWebSearch20250826Tool$inboundSchema,
|
|
68
|
-
]);
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const OpenResponsesToolUnion$outboundSchema = z.union([
|
|
71
|
-
z.lazy(() => OpenResponsesToolUnionFunction$outboundSchema),
|
|
72
|
-
OpenResponsesWebSearchPreviewTool$outboundSchema,
|
|
73
|
-
OpenResponsesWebSearchPreview20250311Tool$outboundSchema,
|
|
74
|
-
OpenResponsesWebSearchTool$outboundSchema,
|
|
75
|
-
OpenResponsesWebSearch20250826Tool$outboundSchema,
|
|
76
|
-
]);
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
export var OpenResponsesToolUnion$;
|
|
82
|
-
(function (OpenResponsesToolUnion$) {
|
|
83
|
-
/** @deprecated use `OpenResponsesToolUnion$inboundSchema` instead. */
|
|
84
|
-
OpenResponsesToolUnion$.inboundSchema = OpenResponsesToolUnion$inboundSchema;
|
|
85
|
-
/** @deprecated use `OpenResponsesToolUnion$outboundSchema` instead. */
|
|
86
|
-
OpenResponsesToolUnion$.outboundSchema = OpenResponsesToolUnion$outboundSchema;
|
|
87
|
-
})(OpenResponsesToolUnion$ || (OpenResponsesToolUnion$ = {}));
|
|
88
|
-
export function openResponsesToolUnionToJSON(openResponsesToolUnion) {
|
|
89
|
-
return JSON.stringify(OpenResponsesToolUnion$outboundSchema.parse(openResponsesToolUnion));
|
|
90
|
-
}
|
|
91
|
-
export function openResponsesToolUnionFromJSON(jsonString) {
|
|
92
|
-
return safeParse(jsonString, (x) => OpenResponsesToolUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesToolUnion' from JSON`);
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=openresponsestoolunion.js.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
import { EventStream } from "../../lib/event-streams.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import * as models from "../index.js";
|
|
6
|
-
/**
|
|
7
|
-
* Successful response
|
|
8
|
-
*/
|
|
9
|
-
export type CreateApiAlphaResponsesResponseBody = {
|
|
10
|
-
/**
|
|
11
|
-
* Union of all possible event types emitted during response streaming
|
|
12
|
-
*/
|
|
13
|
-
data: models.OpenResponsesStreamEvent;
|
|
14
|
-
};
|
|
15
|
-
export type CreateApiAlphaResponsesResponse = models.OpenResponsesNonStreamingResponse | models.ErrorResponse | EventStream<CreateApiAlphaResponsesResponseBody>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const CreateApiAlphaResponsesResponseBody$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody, unknown>;
|
|
18
|
-
/** @internal */
|
|
19
|
-
export type CreateApiAlphaResponsesResponseBody$Outbound = {
|
|
20
|
-
data: models.OpenResponsesStreamEvent$Outbound;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const CreateApiAlphaResponsesResponseBody$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody>;
|
|
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 declare namespace CreateApiAlphaResponsesResponseBody$ {
|
|
29
|
-
/** @deprecated use `CreateApiAlphaResponsesResponseBody$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody, unknown, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponseBody, unknown>>;
|
|
31
|
-
/** @deprecated use `CreateApiAlphaResponsesResponseBody$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody>>;
|
|
33
|
-
/** @deprecated use `CreateApiAlphaResponsesResponseBody$Outbound` instead. */
|
|
34
|
-
type Outbound = CreateApiAlphaResponsesResponseBody$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function createApiAlphaResponsesResponseBodyToJSON(createApiAlphaResponsesResponseBody: CreateApiAlphaResponsesResponseBody): string;
|
|
37
|
-
export declare function createApiAlphaResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateApiAlphaResponsesResponseBody, SDKValidationError>;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const CreateApiAlphaResponsesResponse$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse, unknown>;
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type CreateApiAlphaResponsesResponse$Outbound = models.OpenResponsesNonStreamingResponse$Outbound | models.ErrorResponse$Outbound | never;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export declare const CreateApiAlphaResponsesResponse$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export declare namespace CreateApiAlphaResponsesResponse$ {
|
|
49
|
-
/** @deprecated use `CreateApiAlphaResponsesResponse$inboundSchema` instead. */
|
|
50
|
-
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse, unknown, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponse, unknown>>;
|
|
51
|
-
/** @deprecated use `CreateApiAlphaResponsesResponse$outboundSchema` instead. */
|
|
52
|
-
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse>>;
|
|
53
|
-
/** @deprecated use `CreateApiAlphaResponsesResponse$Outbound` instead. */
|
|
54
|
-
type Outbound = CreateApiAlphaResponsesResponse$Outbound;
|
|
55
|
-
}
|
|
56
|
-
export declare function createApiAlphaResponsesResponseToJSON(createApiAlphaResponsesResponse: CreateApiAlphaResponsesResponse): string;
|
|
57
|
-
export declare function createApiAlphaResponsesResponseFromJSON(jsonString: string): SafeParseResult<CreateApiAlphaResponsesResponse, SDKValidationError>;
|
|
58
|
-
//# sourceMappingURL=createapialpharesponses.d.ts.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4";
|
|
5
|
-
import { EventStream } from "../../lib/event-streams.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as models from "../index.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const CreateApiAlphaResponsesResponseBody$inboundSchema = z.object({
|
|
10
|
-
data: z.string().transform((v, ctx) => {
|
|
11
|
-
try {
|
|
12
|
-
return JSON.parse(v);
|
|
13
|
-
}
|
|
14
|
-
catch (err) {
|
|
15
|
-
ctx.addIssue({
|
|
16
|
-
code: z.ZodIssueCode.custom,
|
|
17
|
-
message: `malformed json: ${err}`,
|
|
18
|
-
});
|
|
19
|
-
return z.NEVER;
|
|
20
|
-
}
|
|
21
|
-
}).pipe(models.OpenResponsesStreamEvent$inboundSchema),
|
|
22
|
-
});
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const CreateApiAlphaResponsesResponseBody$outboundSchema = z.object({
|
|
25
|
-
data: models.OpenResponsesStreamEvent$outboundSchema,
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export var CreateApiAlphaResponsesResponseBody$;
|
|
32
|
-
(function (CreateApiAlphaResponsesResponseBody$) {
|
|
33
|
-
/** @deprecated use `CreateApiAlphaResponsesResponseBody$inboundSchema` instead. */
|
|
34
|
-
CreateApiAlphaResponsesResponseBody$.inboundSchema = CreateApiAlphaResponsesResponseBody$inboundSchema;
|
|
35
|
-
/** @deprecated use `CreateApiAlphaResponsesResponseBody$outboundSchema` instead. */
|
|
36
|
-
CreateApiAlphaResponsesResponseBody$.outboundSchema = CreateApiAlphaResponsesResponseBody$outboundSchema;
|
|
37
|
-
})(CreateApiAlphaResponsesResponseBody$ || (CreateApiAlphaResponsesResponseBody$ = {}));
|
|
38
|
-
export function createApiAlphaResponsesResponseBodyToJSON(createApiAlphaResponsesResponseBody) {
|
|
39
|
-
return JSON.stringify(CreateApiAlphaResponsesResponseBody$outboundSchema.parse(createApiAlphaResponsesResponseBody));
|
|
40
|
-
}
|
|
41
|
-
export function createApiAlphaResponsesResponseBodyFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => CreateApiAlphaResponsesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateApiAlphaResponsesResponseBody' from JSON`);
|
|
43
|
-
}
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const CreateApiAlphaResponsesResponse$inboundSchema = z.union([
|
|
46
|
-
models.OpenResponsesNonStreamingResponse$inboundSchema,
|
|
47
|
-
models.ErrorResponse$inboundSchema,
|
|
48
|
-
z.custom(x => x instanceof ReadableStream)
|
|
49
|
-
.transform(stream => {
|
|
50
|
-
return new EventStream(stream, rawEvent => {
|
|
51
|
-
if (rawEvent.data === "[DONE]")
|
|
52
|
-
return { done: true };
|
|
53
|
-
return {
|
|
54
|
-
value: z.lazy(() => CreateApiAlphaResponsesResponseBody$inboundSchema)
|
|
55
|
-
.parse(rawEvent),
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
}),
|
|
59
|
-
]);
|
|
60
|
-
/** @internal */
|
|
61
|
-
export const CreateApiAlphaResponsesResponse$outboundSchema = z.union([
|
|
62
|
-
models.OpenResponsesNonStreamingResponse$outboundSchema,
|
|
63
|
-
models.ErrorResponse$outboundSchema,
|
|
64
|
-
z.never(),
|
|
65
|
-
]);
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
export var CreateApiAlphaResponsesResponse$;
|
|
71
|
-
(function (CreateApiAlphaResponsesResponse$) {
|
|
72
|
-
/** @deprecated use `CreateApiAlphaResponsesResponse$inboundSchema` instead. */
|
|
73
|
-
CreateApiAlphaResponsesResponse$.inboundSchema = CreateApiAlphaResponsesResponse$inboundSchema;
|
|
74
|
-
/** @deprecated use `CreateApiAlphaResponsesResponse$outboundSchema` instead. */
|
|
75
|
-
CreateApiAlphaResponsesResponse$.outboundSchema = CreateApiAlphaResponsesResponse$outboundSchema;
|
|
76
|
-
})(CreateApiAlphaResponsesResponse$ || (CreateApiAlphaResponsesResponse$ = {}));
|
|
77
|
-
export function createApiAlphaResponsesResponseToJSON(createApiAlphaResponsesResponse) {
|
|
78
|
-
return JSON.stringify(CreateApiAlphaResponsesResponse$outboundSchema.parse(createApiAlphaResponsesResponse));
|
|
79
|
-
}
|
|
80
|
-
export function createApiAlphaResponsesResponseFromJSON(jsonString) {
|
|
81
|
-
return safeParse(jsonString, (x) => CreateApiAlphaResponsesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateApiAlphaResponsesResponse' from JSON`);
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=createapialpharesponses.js.map
|
|
@@ -1,26 +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 * as models from "../index.js";
|
|
5
|
-
export type ListModelsCountResponse = models.ErrorResponse | models.ModelsCountResponse;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare const ListModelsCountResponse$inboundSchema: z.ZodType<ListModelsCountResponse, unknown>;
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type ListModelsCountResponse$Outbound = models.ErrorResponse$Outbound | models.ModelsCountResponse$Outbound;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const ListModelsCountResponse$outboundSchema: z.ZodType<ListModelsCountResponse$Outbound, ListModelsCountResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
-
*/
|
|
16
|
-
export declare namespace ListModelsCountResponse$ {
|
|
17
|
-
/** @deprecated use `ListModelsCountResponse$inboundSchema` instead. */
|
|
18
|
-
const inboundSchema: z.ZodType<ListModelsCountResponse, unknown, z.core.$ZodTypeInternals<ListModelsCountResponse, unknown>>;
|
|
19
|
-
/** @deprecated use `ListModelsCountResponse$outboundSchema` instead. */
|
|
20
|
-
const outboundSchema: z.ZodType<ListModelsCountResponse$Outbound, ListModelsCountResponse, z.core.$ZodTypeInternals<ListModelsCountResponse$Outbound, ListModelsCountResponse>>;
|
|
21
|
-
/** @deprecated use `ListModelsCountResponse$Outbound` instead. */
|
|
22
|
-
type Outbound = ListModelsCountResponse$Outbound;
|
|
23
|
-
}
|
|
24
|
-
export declare function listModelsCountResponseToJSON(listModelsCountResponse: ListModelsCountResponse): string;
|
|
25
|
-
export declare function listModelsCountResponseFromJSON(jsonString: string): SafeParseResult<ListModelsCountResponse, SDKValidationError>;
|
|
26
|
-
//# sourceMappingURL=listmodelscount.d.ts.map
|
|
@@ -1,34 +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 * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const ListModelsCountResponse$inboundSchema = z.union([
|
|
9
|
-
models.ErrorResponse$inboundSchema,
|
|
10
|
-
models.ModelsCountResponse$inboundSchema,
|
|
11
|
-
]);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const ListModelsCountResponse$outboundSchema = z.union([
|
|
14
|
-
models.ErrorResponse$outboundSchema,
|
|
15
|
-
models.ModelsCountResponse$outboundSchema,
|
|
16
|
-
]);
|
|
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 var ListModelsCountResponse$;
|
|
22
|
-
(function (ListModelsCountResponse$) {
|
|
23
|
-
/** @deprecated use `ListModelsCountResponse$inboundSchema` instead. */
|
|
24
|
-
ListModelsCountResponse$.inboundSchema = ListModelsCountResponse$inboundSchema;
|
|
25
|
-
/** @deprecated use `ListModelsCountResponse$outboundSchema` instead. */
|
|
26
|
-
ListModelsCountResponse$.outboundSchema = ListModelsCountResponse$outboundSchema;
|
|
27
|
-
})(ListModelsCountResponse$ || (ListModelsCountResponse$ = {}));
|
|
28
|
-
export function listModelsCountResponseToJSON(listModelsCountResponse) {
|
|
29
|
-
return JSON.stringify(ListModelsCountResponse$outboundSchema.parse(listModelsCountResponse));
|
|
30
|
-
}
|
|
31
|
-
export function listModelsCountResponseFromJSON(jsonString) {
|
|
32
|
-
return safeParse(jsonString, (x) => ListModelsCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListModelsCountResponse' from JSON`);
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=listmodelscount.js.map
|
|
@@ -1,80 +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
|
-
import { FileCitationAnnotation, FileCitationAnnotation$Outbound } from "./filecitationannotation.js";
|
|
6
|
-
import { FilePathAnnotation, FilePathAnnotation$Outbound } from "./filepathannotation.js";
|
|
7
|
-
import { URLCitationAnnotation, URLCitationAnnotation$Outbound } from "./urlcitationannotation.js";
|
|
8
|
-
export declare const OutputTextContentType: {
|
|
9
|
-
readonly OutputText: "output_text";
|
|
10
|
-
};
|
|
11
|
-
export type OutputTextContentType = ClosedEnum<typeof OutputTextContentType>;
|
|
12
|
-
export type OutputTextContentAnnotation = URLCitationAnnotation | FileCitationAnnotation | FilePathAnnotation;
|
|
13
|
-
export type OutputTextContent = {
|
|
14
|
-
type: OutputTextContentType;
|
|
15
|
-
text: string;
|
|
16
|
-
annotations?: Array<URLCitationAnnotation | FileCitationAnnotation | FilePathAnnotation> | undefined;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const OutputTextContentType$inboundSchema: z.ZodEnum<typeof OutputTextContentType>;
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const OutputTextContentType$outboundSchema: z.ZodEnum<typeof OutputTextContentType>;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace OutputTextContentType$ {
|
|
27
|
-
/** @deprecated use `OutputTextContentType$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodEnum<{
|
|
29
|
-
readonly OutputText: "output_text";
|
|
30
|
-
}>;
|
|
31
|
-
/** @deprecated use `OutputTextContentType$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodEnum<{
|
|
33
|
-
readonly OutputText: "output_text";
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const OutputTextContentAnnotation$inboundSchema: z.ZodType<OutputTextContentAnnotation, unknown>;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type OutputTextContentAnnotation$Outbound = URLCitationAnnotation$Outbound | FileCitationAnnotation$Outbound | FilePathAnnotation$Outbound;
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const OutputTextContentAnnotation$outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation>;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export declare namespace OutputTextContentAnnotation$ {
|
|
47
|
-
/** @deprecated use `OutputTextContentAnnotation$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<OutputTextContentAnnotation, unknown, z.core.$ZodTypeInternals<OutputTextContentAnnotation, unknown>>;
|
|
49
|
-
/** @deprecated use `OutputTextContentAnnotation$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation, z.core.$ZodTypeInternals<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation>>;
|
|
51
|
-
/** @deprecated use `OutputTextContentAnnotation$Outbound` instead. */
|
|
52
|
-
type Outbound = OutputTextContentAnnotation$Outbound;
|
|
53
|
-
}
|
|
54
|
-
export declare function outputTextContentAnnotationToJSON(outputTextContentAnnotation: OutputTextContentAnnotation): string;
|
|
55
|
-
export declare function outputTextContentAnnotationFromJSON(jsonString: string): SafeParseResult<OutputTextContentAnnotation, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const OutputTextContent$inboundSchema: z.ZodType<OutputTextContent, unknown>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type OutputTextContent$Outbound = {
|
|
60
|
-
type: string;
|
|
61
|
-
text: string;
|
|
62
|
-
annotations?: Array<URLCitationAnnotation$Outbound | FileCitationAnnotation$Outbound | FilePathAnnotation$Outbound> | undefined;
|
|
63
|
-
};
|
|
64
|
-
/** @internal */
|
|
65
|
-
export declare const OutputTextContent$outboundSchema: z.ZodType<OutputTextContent$Outbound, OutputTextContent>;
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
export declare namespace OutputTextContent$ {
|
|
71
|
-
/** @deprecated use `OutputTextContent$inboundSchema` instead. */
|
|
72
|
-
const inboundSchema: z.ZodType<OutputTextContent, unknown, z.core.$ZodTypeInternals<OutputTextContent, unknown>>;
|
|
73
|
-
/** @deprecated use `OutputTextContent$outboundSchema` instead. */
|
|
74
|
-
const outboundSchema: z.ZodType<OutputTextContent$Outbound, OutputTextContent, z.core.$ZodTypeInternals<OutputTextContent$Outbound, OutputTextContent>>;
|
|
75
|
-
/** @deprecated use `OutputTextContent$Outbound` instead. */
|
|
76
|
-
type Outbound = OutputTextContent$Outbound;
|
|
77
|
-
}
|
|
78
|
-
export declare function outputTextContentToJSON(outputTextContent: OutputTextContent): string;
|
|
79
|
-
export declare function outputTextContentFromJSON(jsonString: string): SafeParseResult<OutputTextContent, SDKValidationError>;
|
|
80
|
-
//# sourceMappingURL=outputtextcontent.d.ts.map
|
|
@@ -1,93 +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 { FileCitationAnnotation$inboundSchema, FileCitationAnnotation$outboundSchema, } from "./filecitationannotation.js";
|
|
7
|
-
import { FilePathAnnotation$inboundSchema, FilePathAnnotation$outboundSchema, } from "./filepathannotation.js";
|
|
8
|
-
import { URLCitationAnnotation$inboundSchema, URLCitationAnnotation$outboundSchema, } from "./urlcitationannotation.js";
|
|
9
|
-
export const OutputTextContentType = {
|
|
10
|
-
OutputText: "output_text",
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const OutputTextContentType$inboundSchema = z.enum(OutputTextContentType);
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const OutputTextContentType$outboundSchema = OutputTextContentType$inboundSchema;
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
-
*/
|
|
20
|
-
export var OutputTextContentType$;
|
|
21
|
-
(function (OutputTextContentType$) {
|
|
22
|
-
/** @deprecated use `OutputTextContentType$inboundSchema` instead. */
|
|
23
|
-
OutputTextContentType$.inboundSchema = OutputTextContentType$inboundSchema;
|
|
24
|
-
/** @deprecated use `OutputTextContentType$outboundSchema` instead. */
|
|
25
|
-
OutputTextContentType$.outboundSchema = OutputTextContentType$outboundSchema;
|
|
26
|
-
})(OutputTextContentType$ || (OutputTextContentType$ = {}));
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const OutputTextContentAnnotation$inboundSchema = z.union([
|
|
29
|
-
URLCitationAnnotation$inboundSchema,
|
|
30
|
-
FileCitationAnnotation$inboundSchema,
|
|
31
|
-
FilePathAnnotation$inboundSchema,
|
|
32
|
-
]);
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const OutputTextContentAnnotation$outboundSchema = z.union([
|
|
35
|
-
URLCitationAnnotation$outboundSchema,
|
|
36
|
-
FileCitationAnnotation$outboundSchema,
|
|
37
|
-
FilePathAnnotation$outboundSchema,
|
|
38
|
-
]);
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export var OutputTextContentAnnotation$;
|
|
44
|
-
(function (OutputTextContentAnnotation$) {
|
|
45
|
-
/** @deprecated use `OutputTextContentAnnotation$inboundSchema` instead. */
|
|
46
|
-
OutputTextContentAnnotation$.inboundSchema = OutputTextContentAnnotation$inboundSchema;
|
|
47
|
-
/** @deprecated use `OutputTextContentAnnotation$outboundSchema` instead. */
|
|
48
|
-
OutputTextContentAnnotation$.outboundSchema = OutputTextContentAnnotation$outboundSchema;
|
|
49
|
-
})(OutputTextContentAnnotation$ || (OutputTextContentAnnotation$ = {}));
|
|
50
|
-
export function outputTextContentAnnotationToJSON(outputTextContentAnnotation) {
|
|
51
|
-
return JSON.stringify(OutputTextContentAnnotation$outboundSchema.parse(outputTextContentAnnotation));
|
|
52
|
-
}
|
|
53
|
-
export function outputTextContentAnnotationFromJSON(jsonString) {
|
|
54
|
-
return safeParse(jsonString, (x) => OutputTextContentAnnotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputTextContentAnnotation' from JSON`);
|
|
55
|
-
}
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const OutputTextContent$inboundSchema = z.object({
|
|
58
|
-
type: OutputTextContentType$inboundSchema,
|
|
59
|
-
text: z.string(),
|
|
60
|
-
annotations: z.array(z.union([
|
|
61
|
-
URLCitationAnnotation$inboundSchema,
|
|
62
|
-
FileCitationAnnotation$inboundSchema,
|
|
63
|
-
FilePathAnnotation$inboundSchema,
|
|
64
|
-
])).optional(),
|
|
65
|
-
});
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const OutputTextContent$outboundSchema = z.object({
|
|
68
|
-
type: OutputTextContentType$outboundSchema,
|
|
69
|
-
text: z.string(),
|
|
70
|
-
annotations: z.array(z.union([
|
|
71
|
-
URLCitationAnnotation$outboundSchema,
|
|
72
|
-
FileCitationAnnotation$outboundSchema,
|
|
73
|
-
FilePathAnnotation$outboundSchema,
|
|
74
|
-
])).optional(),
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export var OutputTextContent$;
|
|
81
|
-
(function (OutputTextContent$) {
|
|
82
|
-
/** @deprecated use `OutputTextContent$inboundSchema` instead. */
|
|
83
|
-
OutputTextContent$.inboundSchema = OutputTextContent$inboundSchema;
|
|
84
|
-
/** @deprecated use `OutputTextContent$outboundSchema` instead. */
|
|
85
|
-
OutputTextContent$.outboundSchema = OutputTextContent$outboundSchema;
|
|
86
|
-
})(OutputTextContent$ || (OutputTextContent$ = {}));
|
|
87
|
-
export function outputTextContentToJSON(outputTextContent) {
|
|
88
|
-
return JSON.stringify(OutputTextContent$outboundSchema.parse(outputTextContent));
|
|
89
|
-
}
|
|
90
|
-
export function outputTextContentFromJSON(jsonString) {
|
|
91
|
-
return safeParse(jsonString, (x) => OutputTextContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputTextContent' from JSON`);
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=outputtextcontent.js.map
|
|
@@ -1,54 +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 RefusalContentType: {
|
|
6
|
-
readonly Refusal: "refusal";
|
|
7
|
-
};
|
|
8
|
-
export type RefusalContentType = ClosedEnum<typeof RefusalContentType>;
|
|
9
|
-
export type RefusalContent = {
|
|
10
|
-
type: RefusalContentType;
|
|
11
|
-
refusal: string;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const RefusalContentType$inboundSchema: z.ZodEnum<typeof RefusalContentType>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const RefusalContentType$outboundSchema: z.ZodEnum<typeof RefusalContentType>;
|
|
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 RefusalContentType$ {
|
|
22
|
-
/** @deprecated use `RefusalContentType$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodEnum<{
|
|
24
|
-
readonly Refusal: "refusal";
|
|
25
|
-
}>;
|
|
26
|
-
/** @deprecated use `RefusalContentType$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodEnum<{
|
|
28
|
-
readonly Refusal: "refusal";
|
|
29
|
-
}>;
|
|
30
|
-
}
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const RefusalContent$inboundSchema: z.ZodType<RefusalContent, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type RefusalContent$Outbound = {
|
|
35
|
-
type: string;
|
|
36
|
-
refusal: string;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const RefusalContent$outboundSchema: z.ZodType<RefusalContent$Outbound, RefusalContent>;
|
|
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 declare namespace RefusalContent$ {
|
|
45
|
-
/** @deprecated use `RefusalContent$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<RefusalContent, unknown, z.core.$ZodTypeInternals<RefusalContent, unknown>>;
|
|
47
|
-
/** @deprecated use `RefusalContent$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<RefusalContent$Outbound, RefusalContent, z.core.$ZodTypeInternals<RefusalContent$Outbound, RefusalContent>>;
|
|
49
|
-
/** @deprecated use `RefusalContent$Outbound` instead. */
|
|
50
|
-
type Outbound = RefusalContent$Outbound;
|
|
51
|
-
}
|
|
52
|
-
export declare function refusalContentToJSON(refusalContent: RefusalContent): string;
|
|
53
|
-
export declare function refusalContentFromJSON(jsonString: string): SafeParseResult<RefusalContent, SDKValidationError>;
|
|
54
|
-
//# sourceMappingURL=refusalcontent.d.ts.map
|