@openrouter/sdk 0.0.1-beta.6 → 0.0.1-beta.8
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/esm/core.d.ts +10 -0
- package/esm/core.js +13 -0
- package/esm/funcs/analyticsGetUserActivity.d.ts +18 -0
- package/esm/funcs/analyticsGetUserActivity.js +85 -0
- package/esm/funcs/apiKeysCreate.d.ts +15 -0
- package/esm/funcs/apiKeysCreate.js +79 -0
- package/esm/funcs/apiKeysDelete.d.ts +15 -0
- package/esm/funcs/apiKeysDelete.js +84 -0
- package/esm/funcs/apiKeysGet.d.ts +15 -0
- package/esm/funcs/apiKeysGet.js +84 -0
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +18 -0
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +72 -0
- package/esm/funcs/apiKeysList.d.ts +15 -0
- package/esm/funcs/apiKeysList.js +83 -0
- package/esm/funcs/apiKeysUpdate.d.ts +15 -0
- package/esm/funcs/apiKeysUpdate.js +85 -0
- package/esm/funcs/betaResponsesSend.d.ts +18 -0
- package/esm/funcs/betaResponsesSend.js +69 -0
- package/esm/funcs/chatSend.d.ts +19 -0
- package/esm/funcs/chatSend.js +83 -0
- package/esm/funcs/completionsGenerate.d.ts +18 -0
- package/esm/funcs/completionsGenerate.js +82 -0
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +19 -0
- package/esm/funcs/creditsCreateCoinbaseCharge.js +77 -0
- package/esm/funcs/creditsGetCredits.d.ts +18 -0
- package/esm/funcs/creditsGetCredits.js +72 -0
- package/esm/funcs/endpointsList.d.ts +15 -0
- package/esm/funcs/endpointsList.js +88 -0
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +14 -0
- package/esm/funcs/endpointsListZdrEndpoints.js +65 -0
- package/esm/funcs/generationsGetGeneration.d.ts +15 -0
- package/esm/funcs/generationsGetGeneration.js +82 -0
- package/esm/funcs/modelsCount.d.ts +14 -0
- package/esm/funcs/modelsCount.js +65 -0
- package/esm/funcs/modelsList.d.ts +14 -0
- package/esm/funcs/modelsList.js +83 -0
- package/esm/funcs/modelsListForUser.d.ts +14 -0
- package/esm/funcs/modelsListForUser.js +69 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +43 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.js +44 -0
- package/esm/funcs/oAuthCreateSHA256CodeChallenge.d.ts +35 -0
- package/esm/funcs/oAuthCreateSHA256CodeChallenge.js +69 -0
- package/esm/funcs/parametersGetParameters.d.ts +15 -0
- package/esm/funcs/parametersGetParameters.js +96 -0
- package/esm/funcs/providersList.d.ts +15 -0
- package/esm/funcs/providersList.js +69 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.js +82 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/registration.d.ts +3 -0
- package/esm/hooks/registration.js +12 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.js +5 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +8 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.js +29 -0
- package/esm/lib/config.d.ts +44 -0
- package/esm/lib/config.js +32 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/encodings.d.ts +52 -0
- package/esm/lib/encodings.js +354 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/event-streams.d.ts +11 -0
- package/esm/lib/event-streams.js +125 -0
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.js +73 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.js +207 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.js +203 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.js +147 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.js +269 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.js +137 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.js +22 -0
- package/esm/models/activityitem.d.ts +82 -0
- package/esm/models/activityitem.js +73 -0
- package/esm/models/assistantmessage.d.ts +62 -0
- package/esm/models/assistantmessage.js +73 -0
- package/esm/models/chatcompletionfinishreason.d.ts +25 -0
- package/esm/models/chatcompletionfinishreason.js +35 -0
- package/esm/models/chaterror.d.ts +56 -0
- package/esm/models/chaterror.js +64 -0
- package/esm/models/chatgenerationparams.d.ts +249 -0
- package/esm/models/chatgenerationparams.js +301 -0
- package/esm/models/chatgenerationtokenusage.d.ts +95 -0
- package/esm/models/chatgenerationtokenusage.js +142 -0
- package/esm/models/chatmessagecontentitem.d.ts +40 -0
- package/esm/models/chatmessagecontentitem.js +46 -0
- package/esm/models/chatmessagecontentitemaudio.d.ts +83 -0
- package/esm/models/chatmessagecontentitemaudio.js +102 -0
- package/esm/models/chatmessagecontentitemimage.d.ts +79 -0
- package/esm/models/chatmessagecontentitemimage.js +98 -0
- package/esm/models/chatmessagecontentitemtext.d.ts +31 -0
- package/esm/models/chatmessagecontentitemtext.js +33 -0
- package/esm/models/chatmessagetokenlogprob.d.ts +64 -0
- package/esm/models/chatmessagetokenlogprob.js +75 -0
- package/esm/models/chatmessagetokenlogprobs.d.ts +32 -0
- package/esm/models/chatmessagetokenlogprobs.js +34 -0
- package/esm/models/chatmessagetoolcall.d.ts +60 -0
- package/esm/models/chatmessagetoolcall.js +62 -0
- package/esm/models/chatresponse.d.ts +43 -0
- package/esm/models/chatresponse.js +55 -0
- package/esm/models/chatresponsechoice.d.ts +38 -0
- package/esm/models/chatresponsechoice.js +49 -0
- package/esm/models/chatstreamingchoice.d.ts +38 -0
- package/esm/models/chatstreamingchoice.js +49 -0
- package/esm/models/chatstreamingmessagechunk.d.ts +61 -0
- package/esm/models/chatstreamingmessagechunk.js +67 -0
- package/esm/models/chatstreamingmessagetoolcall.d.ts +62 -0
- package/esm/models/chatstreamingmessagetoolcall.js +66 -0
- package/esm/models/chatstreamingresponsechunk.d.ts +97 -0
- package/esm/models/chatstreamingresponsechunk.js +120 -0
- package/esm/models/chatstreamoptions.d.ts +29 -0
- package/esm/models/chatstreamoptions.js +40 -0
- package/esm/models/completionchoice.d.ts +57 -0
- package/esm/models/completionchoice.js +75 -0
- package/esm/models/completioncreateparams.d.ts +240 -0
- package/esm/models/completioncreateparams.js +313 -0
- package/esm/models/completionlogprobs.d.ts +39 -0
- package/esm/models/completionlogprobs.js +50 -0
- package/esm/models/completionresponse.d.ts +43 -0
- package/esm/models/completionresponse.js +54 -0
- package/esm/models/completionusage.d.ts +33 -0
- package/esm/models/completionusage.js +48 -0
- package/esm/models/createchargerequest.d.ts +28 -0
- package/esm/models/createchargerequest.js +27 -0
- package/esm/models/errorresponse.d.ts +155 -0
- package/esm/models/errorresponse.js +167 -0
- package/esm/models/errors/chaterror.d.ts +37 -0
- package/esm/models/errors/chaterror.js +48 -0
- package/esm/models/errors/errorresponse.d.ts +46 -0
- package/esm/models/errors/errorresponse.js +64 -0
- package/esm/models/errors/httpclienterrors.d.ts +44 -0
- package/esm/models/errors/httpclienterrors.js +69 -0
- package/esm/models/errors/index.d.ts +9 -0
- package/esm/models/errors/index.js +12 -0
- package/esm/models/errors/listproviders.d.ts +49 -0
- package/esm/models/errors/listproviders.js +51 -0
- package/esm/models/errors/openrouterdefaulterror.d.ts +10 -0
- package/esm/models/errors/openrouterdefaulterror.js +30 -0
- package/esm/models/errors/openroutererror.d.ts +19 -0
- package/esm/models/errors/openroutererror.js +16 -0
- package/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/esm/models/errors/responsevalidationerror.js +29 -0
- package/esm/models/errors/sdkvalidationerror.d.ts +21 -0
- package/esm/models/errors/sdkvalidationerror.js +44 -0
- package/esm/models/filecitationannotation.d.ts +58 -0
- package/esm/models/filecitationannotation.js +64 -0
- package/esm/models/filepathannotation.d.ts +56 -0
- package/esm/models/filepathannotation.js +62 -0
- package/esm/models/imagegenerationstatus.d.ts +24 -0
- package/esm/models/imagegenerationstatus.js +34 -0
- package/esm/models/index.d.ts +96 -0
- package/esm/models/index.js +99 -0
- package/esm/models/jsonschemaconfig.d.ts +39 -0
- package/esm/models/jsonschemaconfig.js +37 -0
- package/esm/models/listendpointsresponse.d.ts +28 -0
- package/esm/models/listendpointsresponse.js +27 -0
- package/esm/models/message.d.ts +80 -0
- package/esm/models/message.js +101 -0
- package/esm/models/modelscountresponse.d.ts +28 -0
- package/esm/models/modelscountresponse.js +27 -0
- package/esm/models/modelslistresponse.d.ts +28 -0
- package/esm/models/modelslistresponse.js +27 -0
- package/esm/models/namedtoolchoice.d.ts +56 -0
- package/esm/models/namedtoolchoice.js +58 -0
- package/esm/models/openresponseseasyinputmessage.d.ts +190 -0
- package/esm/models/openresponseseasyinputmessage.js +194 -0
- package/esm/models/openresponsesformatjsonobject.d.ts +55 -0
- package/esm/models/openresponsesformatjsonobject.js +49 -0
- package/esm/models/openresponsesformatjsonschema.d.ts +67 -0
- package/esm/models/openresponsesformatjsonschema.js +57 -0
- package/esm/models/openresponsesformattext.d.ts +55 -0
- package/esm/models/openresponsesformattext.js +49 -0
- package/esm/models/openresponsesformattextconfig.d.ts +31 -0
- package/esm/models/openresponsesformattextconfig.js +38 -0
- package/esm/models/openresponsesfunctioncalloutput.d.ts +64 -0
- package/esm/models/openresponsesfunctioncalloutput.js +67 -0
- package/esm/models/openresponsesfunctiontoolcall.d.ts +66 -0
- package/esm/models/openresponsesfunctiontoolcall.js +69 -0
- package/esm/models/openresponsesinput.d.ts +29 -0
- package/esm/models/openresponsesinput.js +36 -0
- package/esm/models/openresponsesinputcontent.d.ts +43 -0
- package/esm/models/openresponsesinputcontent.js +50 -0
- package/esm/models/openresponsesinputfile.d.ts +63 -0
- package/esm/models/openresponsesinputfile.js +70 -0
- package/esm/models/openresponsesinputimage.d.ts +79 -0
- package/esm/models/openresponsesinputimage.js +90 -0
- package/esm/models/openresponsesinputitem.d.ts +39 -0
- package/esm/models/openresponsesinputitem.js +62 -0
- package/esm/models/openresponsesinputmessageitem.d.ts +149 -0
- package/esm/models/openresponsesinputmessageitem.js +147 -0
- package/esm/models/openresponsesinputtext.d.ts +57 -0
- package/esm/models/openresponsesinputtext.js +51 -0
- package/esm/models/openresponseslogprobs.d.ts +66 -0
- package/esm/models/openresponseslogprobs.js +71 -0
- package/esm/models/openresponsesnonstreamingresponse.d.ts +260 -0
- package/esm/models/openresponsesnonstreamingresponse.js +290 -0
- package/esm/models/openresponsesoutputtext.d.ts +80 -0
- package/esm/models/openresponsesoutputtext.js +93 -0
- package/esm/models/openresponsesprompt.d.ts +39 -0
- package/esm/models/openresponsesprompt.js +34 -0
- package/esm/models/openresponsesreasoning.d.ts +90 -0
- package/esm/models/openresponsesreasoning.js +101 -0
- package/esm/models/openresponsesreasoningconfig.d.ts +61 -0
- package/esm/models/openresponsesreasoningconfig.js +78 -0
- package/esm/models/openresponsesrefusalcontent.d.ts +54 -0
- package/esm/models/openresponsesrefusalcontent.js +51 -0
- package/esm/models/openresponsesrequest.d.ts +28 -0
- package/esm/models/openresponsesrequest.js +27 -0
- package/esm/models/openresponsesstreamevent.d.ts +1683 -0
- package/esm/models/openresponsesstreamevent.js +1944 -0
- package/esm/models/openresponsestextconfig.d.ts +59 -0
- package/esm/models/openresponsestextconfig.js +63 -0
- package/esm/models/openresponsestoolchoice.d.ts +148 -0
- package/esm/models/openresponsestoolchoice.js +139 -0
- package/esm/models/openresponsestoolunion.d.ts +95 -0
- package/esm/models/openresponsestoolunion.js +94 -0
- package/esm/models/openresponseswebsearch20250826tool.d.ts +94 -0
- package/esm/models/openresponseswebsearch20250826tool.js +103 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +64 -0
- package/esm/models/openresponseswebsearchpreview20250311tool.js +68 -0
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +64 -0
- package/esm/models/openresponseswebsearchpreviewtool.js +68 -0
- package/esm/models/openresponseswebsearchtool.d.ts +94 -0
- package/esm/models/openresponseswebsearchtool.js +103 -0
- package/esm/models/operations/createapialpharesponses.d.ts +58 -0
- package/esm/models/operations/createapialpharesponses.js +83 -0
- package/esm/models/operations/createcoinbasecharge.d.ts +212 -0
- package/esm/models/operations/createcoinbasecharge.js +267 -0
- package/esm/models/operations/createkeys.d.ts +226 -0
- package/esm/models/operations/createkeys.js +195 -0
- package/esm/models/operations/deletekeys.d.ts +63 -0
- package/esm/models/operations/deletekeys.js +56 -0
- package/esm/models/operations/getcredits.d.ts +28 -0
- package/esm/models/operations/getcredits.js +27 -0
- package/esm/models/operations/getcurrentkey.d.ts +186 -0
- package/esm/models/operations/getcurrentkey.js +148 -0
- package/esm/models/operations/getgeneration.d.ts +272 -0
- package/esm/models/operations/getgeneration.js +230 -0
- package/esm/models/operations/getkey.d.ts +179 -0
- package/esm/models/operations/getkey.js +148 -0
- package/esm/models/operations/getmodels.d.ts +57 -0
- package/esm/models/operations/getmodels.js +80 -0
- package/esm/models/operations/getparameters.d.ts +250 -0
- package/esm/models/operations/getparameters.js +260 -0
- package/esm/models/operations/getuseractivity.d.ts +64 -0
- package/esm/models/operations/getuseractivity.js +57 -0
- package/esm/models/operations/index.d.ts +20 -0
- package/esm/models/operations/index.js +23 -0
- package/esm/models/operations/list.d.ts +181 -0
- package/esm/models/operations/list.js +159 -0
- package/esm/models/operations/listendpoints.d.ts +63 -0
- package/esm/models/operations/listendpoints.js +59 -0
- package/esm/models/operations/listendpointszdr.d.ts +54 -0
- package/esm/models/operations/listendpointszdr.js +59 -0
- package/esm/models/operations/listmodelscount.d.ts +26 -0
- package/esm/models/operations/listmodelscount.js +34 -0
- package/esm/models/operations/listmodelsuser.d.ts +51 -0
- package/esm/models/operations/listmodelsuser.js +59 -0
- package/esm/models/operations/listproviders.d.ts +116 -0
- package/esm/models/operations/listproviders.js +105 -0
- package/esm/models/operations/sendchatcompletionrequest.d.ts +27 -0
- package/esm/models/operations/sendchatcompletionrequest.js +41 -0
- package/esm/models/operations/updatekeys.d.ts +256 -0
- package/esm/models/operations/updatekeys.js +230 -0
- package/esm/models/outputtextcontent.d.ts +80 -0
- package/esm/models/outputtextcontent.js +93 -0
- package/esm/models/publicendpoint.d.ts +28 -0
- package/esm/models/publicendpoint.js +27 -0
- package/esm/models/reasoningsummarytext.d.ts +54 -0
- package/esm/models/reasoningsummarytext.js +51 -0
- package/esm/models/reasoningsummaryverbosity.d.ts +23 -0
- package/esm/models/reasoningsummaryverbosity.js +33 -0
- package/esm/models/reasoningtextcontent.d.ts +54 -0
- package/esm/models/reasoningtextcontent.js +51 -0
- package/esm/models/refusalcontent.d.ts +54 -0
- package/esm/models/refusalcontent.js +51 -0
- package/esm/models/responseformatjsonschema.d.ts +32 -0
- package/esm/models/responseformatjsonschema.js +43 -0
- package/esm/models/responseformattextgrammar.d.ts +31 -0
- package/esm/models/responseformattextgrammar.js +33 -0
- package/esm/models/responseserrorfield.d.ts +55 -0
- package/esm/models/responseserrorfield.js +61 -0
- package/esm/models/responsesimagegenerationcall.d.ts +59 -0
- package/esm/models/responsesimagegenerationcall.js +56 -0
- package/esm/models/responsesoutputitem.d.ts +34 -0
- package/esm/models/responsesoutputitem.js +47 -0
- package/esm/models/responsesoutputitemfilesearchcall.d.ts +59 -0
- package/esm/models/responsesoutputitemfilesearchcall.js +56 -0
- package/esm/models/responsesoutputitemfunctioncall.d.ts +60 -0
- package/esm/models/responsesoutputitemfunctioncall.js +66 -0
- package/esm/models/responsesoutputitemreasoning.d.ts +62 -0
- package/esm/models/responsesoutputitemreasoning.js +68 -0
- package/esm/models/responsesoutputmessage.d.ts +192 -0
- package/esm/models/responsesoutputmessage.js +190 -0
- package/esm/models/responsessearchcontextsize.d.ts +29 -0
- package/esm/models/responsessearchcontextsize.js +36 -0
- package/esm/models/responsesusage.d.ts +131 -0
- package/esm/models/responsesusage.js +174 -0
- package/esm/models/responseswebsearchcalloutput.d.ts +57 -0
- package/esm/models/responseswebsearchcalloutput.js +54 -0
- package/esm/models/responseswebsearchuserlocation.d.ts +63 -0
- package/esm/models/responseswebsearchuserlocation.js +57 -0
- package/esm/models/security.d.ts +29 -0
- package/esm/models/security.js +32 -0
- package/esm/models/systemmessage.d.ts +55 -0
- package/esm/models/systemmessage.js +64 -0
- package/esm/models/tool.d.ts +66 -0
- package/esm/models/tool.js +65 -0
- package/esm/models/toolcallstatus.d.ts +23 -0
- package/esm/models/toolcallstatus.js +33 -0
- package/esm/models/toolchoicetypes.d.ts +164 -0
- package/esm/models/toolchoicetypes.js +167 -0
- package/esm/models/toolresponsemessage.d.ts +55 -0
- package/esm/models/toolresponsemessage.js +69 -0
- package/esm/models/urlcitationannotation.d.ts +60 -0
- package/esm/models/urlcitationannotation.js +68 -0
- package/esm/models/usermessage.d.ts +55 -0
- package/esm/models/usermessage.js +64 -0
- package/esm/models/websearchpreviewtooluserlocation.d.ts +60 -0
- package/esm/models/websearchpreviewtooluserlocation.js +57 -0
- package/esm/models/websearchstatus.d.ts +24 -0
- package/esm/models/websearchstatus.js +34 -0
- package/esm/react-query/_context.d.ts +8 -0
- package/esm/react-query/_context.js +14 -0
- package/esm/react-query/_types.d.ts +27 -0
- package/esm/react-query/_types.js +5 -0
- package/esm/react-query/analyticsGetUserActivity.d.ts +36 -0
- package/esm/react-query/analyticsGetUserActivity.js +77 -0
- package/esm/react-query/apiKeysCreate.d.ts +20 -0
- package/esm/react-query/apiKeysCreate.js +39 -0
- package/esm/react-query/apiKeysDelete.d.ts +20 -0
- package/esm/react-query/apiKeysDelete.js +39 -0
- package/esm/react-query/apiKeysGet.d.ts +24 -0
- package/esm/react-query/apiKeysGet.js +66 -0
- package/esm/react-query/apiKeysGetCurrentKeyMetadata.d.ts +29 -0
- package/esm/react-query/apiKeysGetCurrentKeyMetadata.js +66 -0
- package/esm/react-query/apiKeysList.d.ts +37 -0
- package/esm/react-query/apiKeysList.js +69 -0
- package/esm/react-query/apiKeysUpdate.d.ts +20 -0
- package/esm/react-query/apiKeysUpdate.js +39 -0
- package/esm/react-query/betaResponsesSend.d.ts +24 -0
- package/esm/react-query/betaResponsesSend.js +42 -0
- package/esm/react-query/chatSend.d.ts +24 -0
- package/esm/react-query/chatSend.js +42 -0
- package/esm/react-query/completionsGenerate.d.ts +23 -0
- package/esm/react-query/completionsGenerate.js +42 -0
- package/esm/react-query/creditsCreateCoinbaseCharge.d.ts +25 -0
- package/esm/react-query/creditsCreateCoinbaseCharge.js +42 -0
- package/esm/react-query/creditsGetCredits.d.ts +29 -0
- package/esm/react-query/creditsGetCredits.js +66 -0
- package/esm/react-query/endpointsList.d.ts +24 -0
- package/esm/react-query/endpointsList.js +66 -0
- package/esm/react-query/endpointsListZdrEndpoints.d.ts +23 -0
- package/esm/react-query/endpointsListZdrEndpoints.js +60 -0
- package/esm/react-query/generationsGetGeneration.d.ts +30 -0
- package/esm/react-query/generationsGetGeneration.js +71 -0
- package/esm/react-query/index.d.ts +23 -0
- package/esm/react-query/index.js +26 -0
- package/esm/react-query/modelsCount.d.ts +23 -0
- package/esm/react-query/modelsCount.js +60 -0
- package/esm/react-query/modelsList.d.ts +43 -0
- package/esm/react-query/modelsList.js +71 -0
- package/esm/react-query/modelsListForUser.d.ts +23 -0
- package/esm/react-query/modelsListForUser.js +60 -0
- package/esm/react-query/parametersGetParameters.d.ts +38 -0
- package/esm/react-query/parametersGetParameters.js +80 -0
- package/esm/react-query/providersList.d.ts +23 -0
- package/esm/react-query/providersList.js +60 -0
- package/esm/sdk/analytics.d.ts +12 -0
- package/esm/sdk/analytics.js +18 -0
- package/esm/sdk/apikeys.d.ts +32 -0
- package/esm/sdk/apikeys.js +53 -0
- package/esm/sdk/beta.d.ts +7 -0
- package/esm/sdk/beta.js +11 -0
- package/esm/sdk/chat.d.ts +13 -0
- package/esm/sdk/chat.js +18 -0
- package/esm/sdk/completions.d.ts +12 -0
- package/esm/sdk/completions.js +18 -0
- package/esm/sdk/credits.d.ts +20 -0
- package/esm/sdk/credits.js +28 -0
- package/esm/sdk/endpoints.d.ts +13 -0
- package/esm/sdk/endpoints.js +22 -0
- package/esm/sdk/generations.d.ts +9 -0
- package/esm/sdk/generations.js +15 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/models.d.ts +17 -0
- package/esm/sdk/models.js +29 -0
- package/esm/sdk/parameters.d.ts +9 -0
- package/esm/sdk/parameters.js +15 -0
- package/esm/sdk/providers.d.ts +9 -0
- package/esm/sdk/providers.js +15 -0
- package/esm/sdk/responses.d.ts +13 -0
- package/esm/sdk/responses.js +18 -0
- package/esm/sdk/sdk.d.ts +37 -0
- package/esm/sdk/sdk.js +51 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.js +40 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/constdatetime.d.ts +3 -0
- package/esm/types/constdatetime.js +10 -0
- package/esm/types/enums.d.ts +12 -0
- package/esm/types/enums.js +7 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/index.d.ts +8 -0
- package/esm/types/index.js +8 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.js +42 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.js +15 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/tsconfig.json +3 -3
- package/core.d.ts +0 -9
- package/core.js +0 -12
- package/funcs/analyticsGetUserActivity.d.ts +0 -17
- package/funcs/analyticsGetUserActivity.js +0 -84
- package/funcs/apiKeysCreate.d.ts +0 -14
- package/funcs/apiKeysCreate.js +0 -78
- package/funcs/apiKeysDelete.d.ts +0 -14
- package/funcs/apiKeysDelete.js +0 -83
- package/funcs/apiKeysGet.d.ts +0 -14
- package/funcs/apiKeysGet.js +0 -83
- package/funcs/apiKeysGetCurrentKeyMetadata.d.ts +0 -17
- package/funcs/apiKeysGetCurrentKeyMetadata.js +0 -71
- package/funcs/apiKeysList.d.ts +0 -14
- package/funcs/apiKeysList.js +0 -82
- package/funcs/apiKeysUpdate.d.ts +0 -14
- package/funcs/apiKeysUpdate.js +0 -84
- package/funcs/betaResponsesSend.d.ts +0 -17
- package/funcs/betaResponsesSend.js +0 -68
- package/funcs/chatSend.d.ts +0 -18
- package/funcs/chatSend.js +0 -82
- package/funcs/completionsGenerate.d.ts +0 -17
- package/funcs/completionsGenerate.js +0 -81
- package/funcs/creditsCreateCoinbaseCharge.d.ts +0 -18
- package/funcs/creditsCreateCoinbaseCharge.js +0 -76
- package/funcs/creditsGetCredits.d.ts +0 -17
- package/funcs/creditsGetCredits.js +0 -71
- package/funcs/endpointsList.d.ts +0 -14
- package/funcs/endpointsList.js +0 -87
- package/funcs/endpointsListZdrEndpoints.d.ts +0 -13
- package/funcs/endpointsListZdrEndpoints.js +0 -64
- package/funcs/generationsGetGeneration.d.ts +0 -14
- package/funcs/generationsGetGeneration.js +0 -81
- package/funcs/modelsCount.d.ts +0 -13
- package/funcs/modelsCount.js +0 -64
- package/funcs/modelsList.d.ts +0 -13
- package/funcs/modelsList.js +0 -82
- package/funcs/modelsListForUser.d.ts +0 -13
- package/funcs/modelsListForUser.js +0 -68
- package/funcs/oAuthCreateAuthorizationUrl.d.ts +0 -42
- package/funcs/oAuthCreateAuthorizationUrl.js +0 -43
- package/funcs/oAuthCreateSHA256CodeChallenge.d.ts +0 -34
- package/funcs/oAuthCreateSHA256CodeChallenge.js +0 -68
- package/funcs/parametersGetParameters.d.ts +0 -14
- package/funcs/parametersGetParameters.js +0 -95
- package/funcs/providersList.d.ts +0 -14
- package/funcs/providersList.js +0 -68
- package/hooks/hooks.d.ts +0 -24
- package/hooks/hooks.js +0 -81
- package/hooks/index.d.ts +0 -2
- package/hooks/index.js +0 -5
- package/hooks/registration.d.ts +0 -2
- package/hooks/registration.js +0 -11
- package/hooks/types.d.ts +0 -75
- package/hooks/types.js +0 -4
- package/index.d.ts +0 -5
- package/index.js +0 -7
- package/lib/base64.d.ts +0 -9
- package/lib/base64.js +0 -28
- package/lib/config.d.ts +0 -43
- package/lib/config.js +0 -31
- package/lib/dlv.d.ts +0 -13
- package/lib/dlv.js +0 -45
- package/lib/encodings.d.ts +0 -51
- package/lib/encodings.js +0 -353
- package/lib/env.d.ts +0 -14
- package/lib/env.js +0 -43
- package/lib/event-streams.d.ts +0 -10
- package/lib/event-streams.js +0 -124
- package/lib/files.d.ts +0 -12
- package/lib/files.js +0 -72
- package/lib/http.d.ts +0 -66
- package/lib/http.js +0 -206
- package/lib/is-plain-object.d.ts +0 -1
- package/lib/is-plain-object.js +0 -37
- package/lib/logger.d.ts +0 -5
- package/lib/logger.js +0 -4
- package/lib/matchers.d.ts +0 -58
- package/lib/matchers.js +0 -202
- package/lib/primitives.d.ts +0 -25
- package/lib/primitives.js +0 -102
- package/lib/retries.d.ts +0 -37
- package/lib/retries.js +0 -146
- package/lib/schemas.d.ts +0 -18
- package/lib/schemas.js +0 -56
- package/lib/sdks.d.ts +0 -62
- package/lib/sdks.js +0 -268
- package/lib/security.d.ts +0 -82
- package/lib/security.js +0 -136
- package/lib/url.d.ts +0 -4
- package/lib/url.js +0 -21
- package/models/activityitem.d.ts +0 -81
- package/models/activityitem.js +0 -71
- package/models/assistantmessage.d.ts +0 -61
- package/models/assistantmessage.js +0 -72
- package/models/chatcompletionfinishreason.d.ts +0 -24
- package/models/chatcompletionfinishreason.js +0 -34
- package/models/chaterror.d.ts +0 -55
- package/models/chaterror.js +0 -58
- package/models/chatgenerationparams.d.ts +0 -248
- package/models/chatgenerationparams.js +0 -300
- package/models/chatgenerationtokenusage.d.ts +0 -94
- package/models/chatgenerationtokenusage.js +0 -141
- package/models/chatmessagecontentitem.d.ts +0 -39
- package/models/chatmessagecontentitem.js +0 -45
- package/models/chatmessagecontentitemaudio.d.ts +0 -82
- package/models/chatmessagecontentitemaudio.js +0 -100
- package/models/chatmessagecontentitemimage.d.ts +0 -78
- package/models/chatmessagecontentitemimage.js +0 -96
- package/models/chatmessagecontentitemtext.d.ts +0 -30
- package/models/chatmessagecontentitemtext.js +0 -32
- package/models/chatmessagetokenlogprob.d.ts +0 -63
- package/models/chatmessagetokenlogprob.js +0 -74
- package/models/chatmessagetokenlogprobs.d.ts +0 -31
- package/models/chatmessagetokenlogprobs.js +0 -33
- package/models/chatmessagetoolcall.d.ts +0 -59
- package/models/chatmessagetoolcall.js +0 -61
- package/models/chatresponse.d.ts +0 -42
- package/models/chatresponse.js +0 -53
- package/models/chatresponsechoice.d.ts +0 -37
- package/models/chatresponsechoice.js +0 -48
- package/models/chatstreamingchoice.d.ts +0 -37
- package/models/chatstreamingchoice.js +0 -48
- package/models/chatstreamingmessagechunk.d.ts +0 -60
- package/models/chatstreamingmessagechunk.js +0 -66
- package/models/chatstreamingmessagetoolcall.d.ts +0 -61
- package/models/chatstreamingmessagetoolcall.js +0 -65
- package/models/chatstreamingresponsechunk.d.ts +0 -96
- package/models/chatstreamingresponsechunk.js +0 -121
- package/models/chatstreamoptions.d.ts +0 -28
- package/models/chatstreamoptions.js +0 -39
- package/models/completionchoice.d.ts +0 -56
- package/models/completionchoice.js +0 -74
- package/models/completioncreateparams.d.ts +0 -239
- package/models/completioncreateparams.js +0 -311
- package/models/completionlogprobs.d.ts +0 -38
- package/models/completionlogprobs.js +0 -49
- package/models/completionresponse.d.ts +0 -42
- package/models/completionresponse.js +0 -53
- package/models/completionusage.d.ts +0 -32
- package/models/completionusage.js +0 -47
- package/models/createchargerequest.d.ts +0 -27
- package/models/createchargerequest.js +0 -26
- package/models/errorresponse.d.ts +0 -154
- package/models/errorresponse.js +0 -165
- package/models/errors/chaterror.d.ts +0 -36
- package/models/errors/chaterror.js +0 -47
- package/models/errors/errorresponse.d.ts +0 -45
- package/models/errors/errorresponse.js +0 -62
- package/models/errors/httpclienterrors.d.ts +0 -43
- package/models/errors/httpclienterrors.js +0 -68
- package/models/errors/index.d.ts +0 -8
- package/models/errors/index.js +0 -11
- package/models/errors/listproviders.d.ts +0 -48
- package/models/errors/listproviders.js +0 -50
- package/models/errors/openrouterdefaulterror.d.ts +0 -9
- package/models/errors/openrouterdefaulterror.js +0 -29
- package/models/errors/openroutererror.d.ts +0 -18
- package/models/errors/openroutererror.js +0 -15
- package/models/errors/responsevalidationerror.d.ts +0 -25
- package/models/errors/responsevalidationerror.js +0 -28
- package/models/errors/sdkvalidationerror.d.ts +0 -20
- package/models/errors/sdkvalidationerror.js +0 -90
- package/models/filecitationannotation.d.ts +0 -57
- package/models/filecitationannotation.js +0 -63
- package/models/filepathannotation.d.ts +0 -55
- package/models/filepathannotation.js +0 -61
- package/models/imagegenerationstatus.d.ts +0 -23
- package/models/imagegenerationstatus.js +0 -33
- package/models/index.d.ts +0 -95
- package/models/index.js +0 -98
- package/models/jsonschemaconfig.d.ts +0 -38
- package/models/jsonschemaconfig.js +0 -36
- package/models/listendpointsresponse.d.ts +0 -27
- package/models/listendpointsresponse.js +0 -26
- package/models/message.d.ts +0 -79
- package/models/message.js +0 -99
- package/models/modelscountresponse.d.ts +0 -27
- package/models/modelscountresponse.js +0 -26
- package/models/modelslistresponse.d.ts +0 -27
- package/models/modelslistresponse.js +0 -26
- package/models/namedtoolchoice.d.ts +0 -55
- package/models/namedtoolchoice.js +0 -57
- package/models/openresponseseasyinputmessage.d.ts +0 -189
- package/models/openresponseseasyinputmessage.js +0 -196
- package/models/openresponsesformatjsonobject.d.ts +0 -54
- package/models/openresponsesformatjsonobject.js +0 -48
- package/models/openresponsesformatjsonschema.d.ts +0 -66
- package/models/openresponsesformatjsonschema.js +0 -56
- package/models/openresponsesformattext.d.ts +0 -54
- package/models/openresponsesformattext.js +0 -48
- package/models/openresponsesformattextconfig.d.ts +0 -30
- package/models/openresponsesformattextconfig.js +0 -37
- package/models/openresponsesfunctioncalloutput.d.ts +0 -63
- package/models/openresponsesfunctioncalloutput.js +0 -66
- package/models/openresponsesfunctiontoolcall.d.ts +0 -65
- package/models/openresponsesfunctiontoolcall.js +0 -68
- package/models/openresponsesinput.d.ts +0 -28
- package/models/openresponsesinput.js +0 -35
- package/models/openresponsesinputcontent.d.ts +0 -42
- package/models/openresponsesinputcontent.js +0 -49
- package/models/openresponsesinputfile.d.ts +0 -62
- package/models/openresponsesinputfile.js +0 -69
- package/models/openresponsesinputimage.d.ts +0 -78
- package/models/openresponsesinputimage.js +0 -89
- package/models/openresponsesinputitem.d.ts +0 -38
- package/models/openresponsesinputitem.js +0 -61
- package/models/openresponsesinputmessageitem.d.ts +0 -148
- package/models/openresponsesinputmessageitem.js +0 -148
- package/models/openresponsesinputtext.d.ts +0 -56
- package/models/openresponsesinputtext.js +0 -50
- package/models/openresponseslogprobs.d.ts +0 -65
- package/models/openresponseslogprobs.js +0 -70
- package/models/openresponsesnonstreamingresponse.d.ts +0 -259
- package/models/openresponsesnonstreamingresponse.js +0 -289
- package/models/openresponsesoutputtext.d.ts +0 -79
- package/models/openresponsesoutputtext.js +0 -92
- package/models/openresponsesprompt.d.ts +0 -38
- package/models/openresponsesprompt.js +0 -35
- package/models/openresponsesreasoning.d.ts +0 -89
- package/models/openresponsesreasoning.js +0 -100
- package/models/openresponsesreasoningconfig.d.ts +0 -60
- package/models/openresponsesreasoningconfig.js +0 -77
- package/models/openresponsesrefusalcontent.d.ts +0 -53
- package/models/openresponsesrefusalcontent.js +0 -50
- package/models/openresponsesrequest.d.ts +0 -27
- package/models/openresponsesrequest.js +0 -26
- package/models/openresponsesstreamevent.d.ts +0 -1682
- package/models/openresponsesstreamevent.js +0 -1944
- package/models/openresponsestextconfig.d.ts +0 -58
- package/models/openresponsestextconfig.js +0 -61
- package/models/openresponsestoolchoice.d.ts +0 -147
- package/models/openresponsestoolchoice.js +0 -138
- package/models/openresponsestoolunion.d.ts +0 -94
- package/models/openresponsestoolunion.js +0 -93
- package/models/openresponseswebsearch20250826tool.d.ts +0 -93
- package/models/openresponseswebsearch20250826tool.js +0 -102
- package/models/openresponseswebsearchpreview20250311tool.d.ts +0 -63
- package/models/openresponseswebsearchpreview20250311tool.js +0 -68
- package/models/openresponseswebsearchpreviewtool.d.ts +0 -63
- package/models/openresponseswebsearchpreviewtool.js +0 -67
- package/models/openresponseswebsearchtool.d.ts +0 -93
- package/models/openresponseswebsearchtool.js +0 -102
- package/models/operations/createapialpharesponses.d.ts +0 -57
- package/models/operations/createapialpharesponses.js +0 -83
- package/models/operations/createcoinbasecharge.d.ts +0 -211
- package/models/operations/createcoinbasecharge.js +0 -263
- package/models/operations/createkeys.d.ts +0 -225
- package/models/operations/createkeys.js +0 -194
- package/models/operations/deletekeys.d.ts +0 -62
- package/models/operations/deletekeys.js +0 -55
- package/models/operations/getcredits.d.ts +0 -27
- package/models/operations/getcredits.js +0 -26
- package/models/operations/getcurrentkey.d.ts +0 -185
- package/models/operations/getcurrentkey.js +0 -147
- package/models/operations/getgeneration.d.ts +0 -271
- package/models/operations/getgeneration.js +0 -229
- package/models/operations/getkey.d.ts +0 -178
- package/models/operations/getkey.js +0 -145
- package/models/operations/getmodels.d.ts +0 -56
- package/models/operations/getmodels.js +0 -79
- package/models/operations/getparameters.d.ts +0 -249
- package/models/operations/getparameters.js +0 -259
- package/models/operations/getuseractivity.d.ts +0 -63
- package/models/operations/getuseractivity.js +0 -56
- package/models/operations/index.d.ts +0 -19
- package/models/operations/index.js +0 -22
- package/models/operations/list.d.ts +0 -180
- package/models/operations/list.js +0 -155
- package/models/operations/listendpoints.d.ts +0 -62
- package/models/operations/listendpoints.js +0 -58
- package/models/operations/listendpointszdr.d.ts +0 -53
- package/models/operations/listendpointszdr.js +0 -58
- package/models/operations/listmodelscount.d.ts +0 -25
- package/models/operations/listmodelscount.js +0 -33
- package/models/operations/listmodelsuser.d.ts +0 -50
- package/models/operations/listmodelsuser.js +0 -58
- package/models/operations/listproviders.d.ts +0 -115
- package/models/operations/listproviders.js +0 -104
- package/models/operations/sendchatcompletionrequest.d.ts +0 -26
- package/models/operations/sendchatcompletionrequest.js +0 -41
- package/models/operations/updatekeys.d.ts +0 -255
- package/models/operations/updatekeys.js +0 -229
- package/models/outputtextcontent.d.ts +0 -79
- package/models/outputtextcontent.js +0 -92
- package/models/publicendpoint.d.ts +0 -27
- package/models/publicendpoint.js +0 -26
- package/models/reasoningsummarytext.d.ts +0 -53
- package/models/reasoningsummarytext.js +0 -50
- package/models/reasoningsummaryverbosity.d.ts +0 -22
- package/models/reasoningsummaryverbosity.js +0 -32
- package/models/reasoningtextcontent.d.ts +0 -53
- package/models/reasoningtextcontent.js +0 -50
- package/models/refusalcontent.d.ts +0 -53
- package/models/refusalcontent.js +0 -50
- package/models/responseformatjsonschema.d.ts +0 -31
- package/models/responseformatjsonschema.js +0 -42
- package/models/responseformattextgrammar.d.ts +0 -30
- package/models/responseformattextgrammar.js +0 -32
- package/models/responseserrorfield.d.ts +0 -54
- package/models/responseserrorfield.js +0 -60
- package/models/responsesimagegenerationcall.d.ts +0 -58
- package/models/responsesimagegenerationcall.js +0 -55
- package/models/responsesoutputitem.d.ts +0 -33
- package/models/responsesoutputitem.js +0 -46
- package/models/responsesoutputitemfilesearchcall.d.ts +0 -58
- package/models/responsesoutputitemfilesearchcall.js +0 -55
- package/models/responsesoutputitemfunctioncall.d.ts +0 -59
- package/models/responsesoutputitemfunctioncall.js +0 -65
- package/models/responsesoutputitemreasoning.d.ts +0 -61
- package/models/responsesoutputitemreasoning.js +0 -67
- package/models/responsesoutputmessage.d.ts +0 -191
- package/models/responsesoutputmessage.js +0 -189
- package/models/responsessearchcontextsize.d.ts +0 -28
- package/models/responsessearchcontextsize.js +0 -35
- package/models/responsesusage.d.ts +0 -130
- package/models/responsesusage.js +0 -172
- package/models/responseswebsearchcalloutput.d.ts +0 -56
- package/models/responseswebsearchcalloutput.js +0 -53
- package/models/responseswebsearchuserlocation.d.ts +0 -62
- package/models/responseswebsearchuserlocation.js +0 -56
- package/models/security.d.ts +0 -28
- package/models/security.js +0 -30
- package/models/systemmessage.d.ts +0 -54
- package/models/systemmessage.js +0 -62
- package/models/tool.d.ts +0 -65
- package/models/tool.js +0 -64
- package/models/toolcallstatus.d.ts +0 -22
- package/models/toolcallstatus.js +0 -32
- package/models/toolchoicetypes.d.ts +0 -163
- package/models/toolchoicetypes.js +0 -167
- package/models/toolresponsemessage.d.ts +0 -54
- package/models/toolresponsemessage.js +0 -68
- package/models/urlcitationannotation.d.ts +0 -59
- package/models/urlcitationannotation.js +0 -67
- package/models/usermessage.d.ts +0 -54
- package/models/usermessage.js +0 -59
- package/models/websearchpreviewtooluserlocation.d.ts +0 -59
- package/models/websearchpreviewtooluserlocation.js +0 -56
- package/models/websearchstatus.d.ts +0 -23
- package/models/websearchstatus.js +0 -33
- package/react-query/_context.d.ts +0 -7
- package/react-query/_context.js +0 -13
- package/react-query/_types.d.ts +0 -26
- package/react-query/_types.js +0 -4
- package/react-query/analyticsGetUserActivity.d.ts +0 -35
- package/react-query/analyticsGetUserActivity.js +0 -76
- package/react-query/apiKeysCreate.d.ts +0 -19
- package/react-query/apiKeysCreate.js +0 -38
- package/react-query/apiKeysDelete.d.ts +0 -19
- package/react-query/apiKeysDelete.js +0 -38
- package/react-query/apiKeysGet.d.ts +0 -23
- package/react-query/apiKeysGet.js +0 -65
- package/react-query/apiKeysGetCurrentKeyMetadata.d.ts +0 -28
- package/react-query/apiKeysGetCurrentKeyMetadata.js +0 -65
- package/react-query/apiKeysList.d.ts +0 -36
- package/react-query/apiKeysList.js +0 -68
- package/react-query/apiKeysUpdate.d.ts +0 -19
- package/react-query/apiKeysUpdate.js +0 -38
- package/react-query/betaResponsesSend.d.ts +0 -23
- package/react-query/betaResponsesSend.js +0 -41
- package/react-query/chatSend.d.ts +0 -23
- package/react-query/chatSend.js +0 -41
- package/react-query/completionsGenerate.d.ts +0 -22
- package/react-query/completionsGenerate.js +0 -41
- package/react-query/creditsCreateCoinbaseCharge.d.ts +0 -24
- package/react-query/creditsCreateCoinbaseCharge.js +0 -41
- package/react-query/creditsGetCredits.d.ts +0 -28
- package/react-query/creditsGetCredits.js +0 -65
- package/react-query/endpointsList.d.ts +0 -23
- package/react-query/endpointsList.js +0 -65
- package/react-query/endpointsListZdrEndpoints.d.ts +0 -22
- package/react-query/endpointsListZdrEndpoints.js +0 -59
- package/react-query/generationsGetGeneration.d.ts +0 -29
- package/react-query/generationsGetGeneration.js +0 -70
- package/react-query/index.d.ts +0 -22
- package/react-query/index.js +0 -25
- package/react-query/modelsCount.d.ts +0 -22
- package/react-query/modelsCount.js +0 -59
- package/react-query/modelsList.d.ts +0 -42
- package/react-query/modelsList.js +0 -70
- package/react-query/modelsListForUser.d.ts +0 -22
- package/react-query/modelsListForUser.js +0 -59
- package/react-query/parametersGetParameters.d.ts +0 -37
- package/react-query/parametersGetParameters.js +0 -79
- package/react-query/providersList.d.ts +0 -22
- package/react-query/providersList.js +0 -59
- package/sdk/analytics.d.ts +0 -11
- package/sdk/analytics.js +0 -17
- package/sdk/apikeys.d.ts +0 -31
- package/sdk/apikeys.js +0 -52
- package/sdk/beta.d.ts +0 -6
- package/sdk/beta.js +0 -10
- package/sdk/chat.d.ts +0 -12
- package/sdk/chat.js +0 -17
- package/sdk/completions.d.ts +0 -11
- package/sdk/completions.js +0 -17
- package/sdk/credits.d.ts +0 -19
- package/sdk/credits.js +0 -27
- package/sdk/endpoints.d.ts +0 -12
- package/sdk/endpoints.js +0 -21
- package/sdk/generations.d.ts +0 -8
- package/sdk/generations.js +0 -14
- package/sdk/index.d.ts +0 -1
- package/sdk/index.js +0 -4
- package/sdk/models.d.ts +0 -16
- package/sdk/models.js +0 -28
- package/sdk/parameters.d.ts +0 -8
- package/sdk/parameters.js +0 -14
- package/sdk/providers.d.ts +0 -8
- package/sdk/providers.js +0 -14
- package/sdk/responses.d.ts +0 -12
- package/sdk/responses.js +0 -17
- package/sdk/sdk.d.ts +0 -36
- package/sdk/sdk.js +0 -50
- package/types/async.d.ts +0 -22
- package/types/async.js +0 -39
- package/types/blobs.d.ts +0 -3
- package/types/blobs.js +0 -24
- package/types/constdatetime.d.ts +0 -2
- package/types/constdatetime.js +0 -9
- package/types/enums.d.ts +0 -11
- package/types/enums.js +0 -6
- package/types/fp.d.ts +0 -30
- package/types/fp.js +0 -30
- package/types/index.d.ts +0 -7
- package/types/index.js +0 -7
- package/types/operations.d.ts +0 -26
- package/types/operations.js +0 -76
- package/types/rfcdate.d.ts +0 -20
- package/types/rfcdate.js +0 -41
- package/types/streams.d.ts +0 -1
- package/types/streams.js +0 -14
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
import { OutputTextContent$inboundSchema, OutputTextContent$outboundSchema, } from "./outputtextcontent.js";
|
|
7
|
-
import { RefusalContent$inboundSchema, RefusalContent$outboundSchema, } from "./refusalcontent.js";
|
|
8
|
-
export const ResponsesOutputMessageRole = {
|
|
9
|
-
Assistant: "assistant",
|
|
10
|
-
};
|
|
11
|
-
export const ResponsesOutputMessageType = {
|
|
12
|
-
Message: "message",
|
|
13
|
-
};
|
|
14
|
-
export const StatusInProgress = {
|
|
15
|
-
InProgress: "in_progress",
|
|
16
|
-
};
|
|
17
|
-
export const StatusIncomplete = {
|
|
18
|
-
Incomplete: "incomplete",
|
|
19
|
-
};
|
|
20
|
-
export const StatusCompleted = {
|
|
21
|
-
Completed: "completed",
|
|
22
|
-
};
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const ResponsesOutputMessageRole$inboundSchema = z.nativeEnum(ResponsesOutputMessageRole);
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const ResponsesOutputMessageRole$outboundSchema = ResponsesOutputMessageRole$inboundSchema;
|
|
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 ResponsesOutputMessageRole$;
|
|
32
|
-
(function (ResponsesOutputMessageRole$) {
|
|
33
|
-
/** @deprecated use `ResponsesOutputMessageRole$inboundSchema` instead. */
|
|
34
|
-
ResponsesOutputMessageRole$.inboundSchema = ResponsesOutputMessageRole$inboundSchema;
|
|
35
|
-
/** @deprecated use `ResponsesOutputMessageRole$outboundSchema` instead. */
|
|
36
|
-
ResponsesOutputMessageRole$.outboundSchema = ResponsesOutputMessageRole$outboundSchema;
|
|
37
|
-
})(ResponsesOutputMessageRole$ || (ResponsesOutputMessageRole$ = {}));
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const ResponsesOutputMessageType$inboundSchema = z.nativeEnum(ResponsesOutputMessageType);
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const ResponsesOutputMessageType$outboundSchema = ResponsesOutputMessageType$inboundSchema;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export var ResponsesOutputMessageType$;
|
|
47
|
-
(function (ResponsesOutputMessageType$) {
|
|
48
|
-
/** @deprecated use `ResponsesOutputMessageType$inboundSchema` instead. */
|
|
49
|
-
ResponsesOutputMessageType$.inboundSchema = ResponsesOutputMessageType$inboundSchema;
|
|
50
|
-
/** @deprecated use `ResponsesOutputMessageType$outboundSchema` instead. */
|
|
51
|
-
ResponsesOutputMessageType$.outboundSchema = ResponsesOutputMessageType$outboundSchema;
|
|
52
|
-
})(ResponsesOutputMessageType$ || (ResponsesOutputMessageType$ = {}));
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const StatusInProgress$inboundSchema = z.nativeEnum(StatusInProgress);
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const StatusInProgress$outboundSchema = StatusInProgress$inboundSchema;
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export var StatusInProgress$;
|
|
62
|
-
(function (StatusInProgress$) {
|
|
63
|
-
/** @deprecated use `StatusInProgress$inboundSchema` instead. */
|
|
64
|
-
StatusInProgress$.inboundSchema = StatusInProgress$inboundSchema;
|
|
65
|
-
/** @deprecated use `StatusInProgress$outboundSchema` instead. */
|
|
66
|
-
StatusInProgress$.outboundSchema = StatusInProgress$outboundSchema;
|
|
67
|
-
})(StatusInProgress$ || (StatusInProgress$ = {}));
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const StatusIncomplete$inboundSchema = z.nativeEnum(StatusIncomplete);
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const StatusIncomplete$outboundSchema = StatusIncomplete$inboundSchema;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export var StatusIncomplete$;
|
|
77
|
-
(function (StatusIncomplete$) {
|
|
78
|
-
/** @deprecated use `StatusIncomplete$inboundSchema` instead. */
|
|
79
|
-
StatusIncomplete$.inboundSchema = StatusIncomplete$inboundSchema;
|
|
80
|
-
/** @deprecated use `StatusIncomplete$outboundSchema` instead. */
|
|
81
|
-
StatusIncomplete$.outboundSchema = StatusIncomplete$outboundSchema;
|
|
82
|
-
})(StatusIncomplete$ || (StatusIncomplete$ = {}));
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const StatusCompleted$inboundSchema = z.nativeEnum(StatusCompleted);
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const StatusCompleted$outboundSchema = StatusCompleted$inboundSchema;
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export var StatusCompleted$;
|
|
92
|
-
(function (StatusCompleted$) {
|
|
93
|
-
/** @deprecated use `StatusCompleted$inboundSchema` instead. */
|
|
94
|
-
StatusCompleted$.inboundSchema = StatusCompleted$inboundSchema;
|
|
95
|
-
/** @deprecated use `StatusCompleted$outboundSchema` instead. */
|
|
96
|
-
StatusCompleted$.outboundSchema = StatusCompleted$outboundSchema;
|
|
97
|
-
})(StatusCompleted$ || (StatusCompleted$ = {}));
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const Status$inboundSchema = z
|
|
100
|
-
.union([
|
|
101
|
-
StatusCompleted$inboundSchema,
|
|
102
|
-
StatusIncomplete$inboundSchema,
|
|
103
|
-
StatusInProgress$inboundSchema,
|
|
104
|
-
]);
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const Status$outboundSchema = z.union([
|
|
107
|
-
StatusCompleted$outboundSchema,
|
|
108
|
-
StatusIncomplete$outboundSchema,
|
|
109
|
-
StatusInProgress$outboundSchema,
|
|
110
|
-
]);
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
113
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
|
-
*/
|
|
115
|
-
export var Status$;
|
|
116
|
-
(function (Status$) {
|
|
117
|
-
/** @deprecated use `Status$inboundSchema` instead. */
|
|
118
|
-
Status$.inboundSchema = Status$inboundSchema;
|
|
119
|
-
/** @deprecated use `Status$outboundSchema` instead. */
|
|
120
|
-
Status$.outboundSchema = Status$outboundSchema;
|
|
121
|
-
})(Status$ || (Status$ = {}));
|
|
122
|
-
export function statusToJSON(status) {
|
|
123
|
-
return JSON.stringify(Status$outboundSchema.parse(status));
|
|
124
|
-
}
|
|
125
|
-
export function statusFromJSON(jsonString) {
|
|
126
|
-
return safeParse(jsonString, (x) => Status$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Status' from JSON`);
|
|
127
|
-
}
|
|
128
|
-
/** @internal */
|
|
129
|
-
export const ResponsesOutputMessageContent$inboundSchema = z.union([OutputTextContent$inboundSchema, RefusalContent$inboundSchema]);
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const ResponsesOutputMessageContent$outboundSchema = z.union([OutputTextContent$outboundSchema, RefusalContent$outboundSchema]);
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
-
*/
|
|
136
|
-
export var ResponsesOutputMessageContent$;
|
|
137
|
-
(function (ResponsesOutputMessageContent$) {
|
|
138
|
-
/** @deprecated use `ResponsesOutputMessageContent$inboundSchema` instead. */
|
|
139
|
-
ResponsesOutputMessageContent$.inboundSchema = ResponsesOutputMessageContent$inboundSchema;
|
|
140
|
-
/** @deprecated use `ResponsesOutputMessageContent$outboundSchema` instead. */
|
|
141
|
-
ResponsesOutputMessageContent$.outboundSchema = ResponsesOutputMessageContent$outboundSchema;
|
|
142
|
-
})(ResponsesOutputMessageContent$ || (ResponsesOutputMessageContent$ = {}));
|
|
143
|
-
export function responsesOutputMessageContentToJSON(responsesOutputMessageContent) {
|
|
144
|
-
return JSON.stringify(ResponsesOutputMessageContent$outboundSchema.parse(responsesOutputMessageContent));
|
|
145
|
-
}
|
|
146
|
-
export function responsesOutputMessageContentFromJSON(jsonString) {
|
|
147
|
-
return safeParse(jsonString, (x) => ResponsesOutputMessageContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesOutputMessageContent' from JSON`);
|
|
148
|
-
}
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const ResponsesOutputMessage$inboundSchema = z.object({
|
|
151
|
-
id: z.string(),
|
|
152
|
-
role: ResponsesOutputMessageRole$inboundSchema,
|
|
153
|
-
type: ResponsesOutputMessageType$inboundSchema,
|
|
154
|
-
status: z.union([
|
|
155
|
-
StatusCompleted$inboundSchema,
|
|
156
|
-
StatusIncomplete$inboundSchema,
|
|
157
|
-
StatusInProgress$inboundSchema,
|
|
158
|
-
]),
|
|
159
|
-
content: z.array(z.union([OutputTextContent$inboundSchema, RefusalContent$inboundSchema])),
|
|
160
|
-
});
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const ResponsesOutputMessage$outboundSchema = z.object({
|
|
163
|
-
id: z.string(),
|
|
164
|
-
role: ResponsesOutputMessageRole$outboundSchema,
|
|
165
|
-
type: ResponsesOutputMessageType$outboundSchema,
|
|
166
|
-
status: z.union([
|
|
167
|
-
StatusCompleted$outboundSchema,
|
|
168
|
-
StatusIncomplete$outboundSchema,
|
|
169
|
-
StatusInProgress$outboundSchema,
|
|
170
|
-
]),
|
|
171
|
-
content: z.array(z.union([OutputTextContent$outboundSchema, RefusalContent$outboundSchema])),
|
|
172
|
-
});
|
|
173
|
-
/**
|
|
174
|
-
* @internal
|
|
175
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
-
*/
|
|
177
|
-
export var ResponsesOutputMessage$;
|
|
178
|
-
(function (ResponsesOutputMessage$) {
|
|
179
|
-
/** @deprecated use `ResponsesOutputMessage$inboundSchema` instead. */
|
|
180
|
-
ResponsesOutputMessage$.inboundSchema = ResponsesOutputMessage$inboundSchema;
|
|
181
|
-
/** @deprecated use `ResponsesOutputMessage$outboundSchema` instead. */
|
|
182
|
-
ResponsesOutputMessage$.outboundSchema = ResponsesOutputMessage$outboundSchema;
|
|
183
|
-
})(ResponsesOutputMessage$ || (ResponsesOutputMessage$ = {}));
|
|
184
|
-
export function responsesOutputMessageToJSON(responsesOutputMessage) {
|
|
185
|
-
return JSON.stringify(ResponsesOutputMessage$outboundSchema.parse(responsesOutputMessage));
|
|
186
|
-
}
|
|
187
|
-
export function responsesOutputMessageFromJSON(jsonString) {
|
|
188
|
-
return safeParse(jsonString, (x) => ResponsesOutputMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesOutputMessage' from JSON`);
|
|
189
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* Size of the search context for web search tools
|
|
5
|
-
*/
|
|
6
|
-
export declare const ResponsesSearchContextSize: {
|
|
7
|
-
readonly Low: "low";
|
|
8
|
-
readonly Medium: "medium";
|
|
9
|
-
readonly High: "high";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Size of the search context for web search tools
|
|
13
|
-
*/
|
|
14
|
-
export type ResponsesSearchContextSize = OpenEnum<typeof ResponsesSearchContextSize>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const ResponsesSearchContextSize$inboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const ResponsesSearchContextSize$outboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, ResponsesSearchContextSize>;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export declare namespace ResponsesSearchContextSize$ {
|
|
24
|
-
/** @deprecated use `ResponsesSearchContextSize$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, unknown>;
|
|
26
|
-
/** @deprecated use `ResponsesSearchContextSize$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, ResponsesSearchContextSize>;
|
|
28
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
6
|
-
/**
|
|
7
|
-
* Size of the search context for web search tools
|
|
8
|
-
*/
|
|
9
|
-
export const ResponsesSearchContextSize = {
|
|
10
|
-
Low: "low",
|
|
11
|
-
Medium: "medium",
|
|
12
|
-
High: "high",
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const ResponsesSearchContextSize$inboundSchema = z
|
|
16
|
-
.union([
|
|
17
|
-
z.nativeEnum(ResponsesSearchContextSize),
|
|
18
|
-
z.string().transform(catchUnrecognizedEnum),
|
|
19
|
-
]);
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const ResponsesSearchContextSize$outboundSchema = z.union([
|
|
22
|
-
z.nativeEnum(ResponsesSearchContextSize),
|
|
23
|
-
z.string().and(z.custom()),
|
|
24
|
-
]);
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export var ResponsesSearchContextSize$;
|
|
30
|
-
(function (ResponsesSearchContextSize$) {
|
|
31
|
-
/** @deprecated use `ResponsesSearchContextSize$inboundSchema` instead. */
|
|
32
|
-
ResponsesSearchContextSize$.inboundSchema = ResponsesSearchContextSize$inboundSchema;
|
|
33
|
-
/** @deprecated use `ResponsesSearchContextSize$outboundSchema` instead. */
|
|
34
|
-
ResponsesSearchContextSize$.outboundSchema = ResponsesSearchContextSize$outboundSchema;
|
|
35
|
-
})(ResponsesSearchContextSize$ || (ResponsesSearchContextSize$ = {}));
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
-
export type InputTokensDetails = {
|
|
5
|
-
cachedTokens: number;
|
|
6
|
-
};
|
|
7
|
-
export type OutputTokensDetails = {
|
|
8
|
-
reasoningTokens: number;
|
|
9
|
-
};
|
|
10
|
-
export type CostDetails = {
|
|
11
|
-
upstreamInferenceCost?: number | null | undefined;
|
|
12
|
-
upstreamInferenceInputCost: number;
|
|
13
|
-
upstreamInferenceOutputCost: number;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Token usage information for the response
|
|
17
|
-
*/
|
|
18
|
-
export type ResponsesUsage = {
|
|
19
|
-
inputTokens: number;
|
|
20
|
-
inputTokensDetails: InputTokensDetails;
|
|
21
|
-
outputTokens: number;
|
|
22
|
-
outputTokensDetails: OutputTokensDetails;
|
|
23
|
-
totalTokens: number;
|
|
24
|
-
/**
|
|
25
|
-
* Cost of the completion
|
|
26
|
-
*/
|
|
27
|
-
cost?: number | null | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Whether a request was made using a Bring Your Own Key configuration
|
|
30
|
-
*/
|
|
31
|
-
isByok?: boolean | undefined;
|
|
32
|
-
costDetails?: CostDetails | undefined;
|
|
33
|
-
};
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare const InputTokensDetails$inboundSchema: z.ZodType<InputTokensDetails, z.ZodTypeDef, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type InputTokensDetails$Outbound = {
|
|
38
|
-
cached_tokens: number;
|
|
39
|
-
};
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const InputTokensDetails$outboundSchema: z.ZodType<InputTokensDetails$Outbound, z.ZodTypeDef, InputTokensDetails>;
|
|
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 InputTokensDetails$ {
|
|
47
|
-
/** @deprecated use `InputTokensDetails$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<InputTokensDetails, z.ZodTypeDef, unknown>;
|
|
49
|
-
/** @deprecated use `InputTokensDetails$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<InputTokensDetails$Outbound, z.ZodTypeDef, InputTokensDetails>;
|
|
51
|
-
/** @deprecated use `InputTokensDetails$Outbound` instead. */
|
|
52
|
-
type Outbound = InputTokensDetails$Outbound;
|
|
53
|
-
}
|
|
54
|
-
export declare function inputTokensDetailsToJSON(inputTokensDetails: InputTokensDetails): string;
|
|
55
|
-
export declare function inputTokensDetailsFromJSON(jsonString: string): SafeParseResult<InputTokensDetails, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const OutputTokensDetails$inboundSchema: z.ZodType<OutputTokensDetails, z.ZodTypeDef, unknown>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type OutputTokensDetails$Outbound = {
|
|
60
|
-
reasoning_tokens: number;
|
|
61
|
-
};
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const OutputTokensDetails$outboundSchema: z.ZodType<OutputTokensDetails$Outbound, z.ZodTypeDef, OutputTokensDetails>;
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export declare namespace OutputTokensDetails$ {
|
|
69
|
-
/** @deprecated use `OutputTokensDetails$inboundSchema` instead. */
|
|
70
|
-
const inboundSchema: z.ZodType<OutputTokensDetails, z.ZodTypeDef, unknown>;
|
|
71
|
-
/** @deprecated use `OutputTokensDetails$outboundSchema` instead. */
|
|
72
|
-
const outboundSchema: z.ZodType<OutputTokensDetails$Outbound, z.ZodTypeDef, OutputTokensDetails>;
|
|
73
|
-
/** @deprecated use `OutputTokensDetails$Outbound` instead. */
|
|
74
|
-
type Outbound = OutputTokensDetails$Outbound;
|
|
75
|
-
}
|
|
76
|
-
export declare function outputTokensDetailsToJSON(outputTokensDetails: OutputTokensDetails): string;
|
|
77
|
-
export declare function outputTokensDetailsFromJSON(jsonString: string): SafeParseResult<OutputTokensDetails, SDKValidationError>;
|
|
78
|
-
/** @internal */
|
|
79
|
-
export declare const CostDetails$inboundSchema: z.ZodType<CostDetails, z.ZodTypeDef, unknown>;
|
|
80
|
-
/** @internal */
|
|
81
|
-
export type CostDetails$Outbound = {
|
|
82
|
-
upstream_inference_cost?: number | null | undefined;
|
|
83
|
-
upstream_inference_input_cost: number;
|
|
84
|
-
upstream_inference_output_cost: number;
|
|
85
|
-
};
|
|
86
|
-
/** @internal */
|
|
87
|
-
export declare const CostDetails$outboundSchema: z.ZodType<CostDetails$Outbound, z.ZodTypeDef, CostDetails>;
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
-
*/
|
|
92
|
-
export declare namespace CostDetails$ {
|
|
93
|
-
/** @deprecated use `CostDetails$inboundSchema` instead. */
|
|
94
|
-
const inboundSchema: z.ZodType<CostDetails, z.ZodTypeDef, unknown>;
|
|
95
|
-
/** @deprecated use `CostDetails$outboundSchema` instead. */
|
|
96
|
-
const outboundSchema: z.ZodType<CostDetails$Outbound, z.ZodTypeDef, CostDetails>;
|
|
97
|
-
/** @deprecated use `CostDetails$Outbound` instead. */
|
|
98
|
-
type Outbound = CostDetails$Outbound;
|
|
99
|
-
}
|
|
100
|
-
export declare function costDetailsToJSON(costDetails: CostDetails): string;
|
|
101
|
-
export declare function costDetailsFromJSON(jsonString: string): SafeParseResult<CostDetails, SDKValidationError>;
|
|
102
|
-
/** @internal */
|
|
103
|
-
export declare const ResponsesUsage$inboundSchema: z.ZodType<ResponsesUsage, z.ZodTypeDef, unknown>;
|
|
104
|
-
/** @internal */
|
|
105
|
-
export type ResponsesUsage$Outbound = {
|
|
106
|
-
input_tokens: number;
|
|
107
|
-
input_tokens_details: InputTokensDetails$Outbound;
|
|
108
|
-
output_tokens: number;
|
|
109
|
-
output_tokens_details: OutputTokensDetails$Outbound;
|
|
110
|
-
total_tokens: number;
|
|
111
|
-
cost?: number | null | undefined;
|
|
112
|
-
is_byok?: boolean | undefined;
|
|
113
|
-
cost_details?: CostDetails$Outbound | undefined;
|
|
114
|
-
};
|
|
115
|
-
/** @internal */
|
|
116
|
-
export declare const ResponsesUsage$outboundSchema: z.ZodType<ResponsesUsage$Outbound, z.ZodTypeDef, ResponsesUsage>;
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
120
|
-
*/
|
|
121
|
-
export declare namespace ResponsesUsage$ {
|
|
122
|
-
/** @deprecated use `ResponsesUsage$inboundSchema` instead. */
|
|
123
|
-
const inboundSchema: z.ZodType<ResponsesUsage, z.ZodTypeDef, unknown>;
|
|
124
|
-
/** @deprecated use `ResponsesUsage$outboundSchema` instead. */
|
|
125
|
-
const outboundSchema: z.ZodType<ResponsesUsage$Outbound, z.ZodTypeDef, ResponsesUsage>;
|
|
126
|
-
/** @deprecated use `ResponsesUsage$Outbound` instead. */
|
|
127
|
-
type Outbound = ResponsesUsage$Outbound;
|
|
128
|
-
}
|
|
129
|
-
export declare function responsesUsageToJSON(responsesUsage: ResponsesUsage): string;
|
|
130
|
-
export declare function responsesUsageFromJSON(jsonString: string): SafeParseResult<ResponsesUsage, SDKValidationError>;
|
package/models/responsesusage.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const InputTokensDetails$inboundSchema = z.object({
|
|
9
|
-
cached_tokens: z.number(),
|
|
10
|
-
}).transform((v) => {
|
|
11
|
-
return remap$(v, {
|
|
12
|
-
"cached_tokens": "cachedTokens",
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const InputTokensDetails$outboundSchema = z.object({
|
|
17
|
-
cachedTokens: z.number(),
|
|
18
|
-
}).transform((v) => {
|
|
19
|
-
return remap$(v, {
|
|
20
|
-
cachedTokens: "cached_tokens",
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
-
*/
|
|
27
|
-
export var InputTokensDetails$;
|
|
28
|
-
(function (InputTokensDetails$) {
|
|
29
|
-
/** @deprecated use `InputTokensDetails$inboundSchema` instead. */
|
|
30
|
-
InputTokensDetails$.inboundSchema = InputTokensDetails$inboundSchema;
|
|
31
|
-
/** @deprecated use `InputTokensDetails$outboundSchema` instead. */
|
|
32
|
-
InputTokensDetails$.outboundSchema = InputTokensDetails$outboundSchema;
|
|
33
|
-
})(InputTokensDetails$ || (InputTokensDetails$ = {}));
|
|
34
|
-
export function inputTokensDetailsToJSON(inputTokensDetails) {
|
|
35
|
-
return JSON.stringify(InputTokensDetails$outboundSchema.parse(inputTokensDetails));
|
|
36
|
-
}
|
|
37
|
-
export function inputTokensDetailsFromJSON(jsonString) {
|
|
38
|
-
return safeParse(jsonString, (x) => InputTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputTokensDetails' from JSON`);
|
|
39
|
-
}
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const OutputTokensDetails$inboundSchema = z.object({
|
|
42
|
-
reasoning_tokens: z.number(),
|
|
43
|
-
}).transform((v) => {
|
|
44
|
-
return remap$(v, {
|
|
45
|
-
"reasoning_tokens": "reasoningTokens",
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const OutputTokensDetails$outboundSchema = z.object({
|
|
50
|
-
reasoningTokens: z.number(),
|
|
51
|
-
}).transform((v) => {
|
|
52
|
-
return remap$(v, {
|
|
53
|
-
reasoningTokens: "reasoning_tokens",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export var OutputTokensDetails$;
|
|
61
|
-
(function (OutputTokensDetails$) {
|
|
62
|
-
/** @deprecated use `OutputTokensDetails$inboundSchema` instead. */
|
|
63
|
-
OutputTokensDetails$.inboundSchema = OutputTokensDetails$inboundSchema;
|
|
64
|
-
/** @deprecated use `OutputTokensDetails$outboundSchema` instead. */
|
|
65
|
-
OutputTokensDetails$.outboundSchema = OutputTokensDetails$outboundSchema;
|
|
66
|
-
})(OutputTokensDetails$ || (OutputTokensDetails$ = {}));
|
|
67
|
-
export function outputTokensDetailsToJSON(outputTokensDetails) {
|
|
68
|
-
return JSON.stringify(OutputTokensDetails$outboundSchema.parse(outputTokensDetails));
|
|
69
|
-
}
|
|
70
|
-
export function outputTokensDetailsFromJSON(jsonString) {
|
|
71
|
-
return safeParse(jsonString, (x) => OutputTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputTokensDetails' from JSON`);
|
|
72
|
-
}
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const CostDetails$inboundSchema = z.object({
|
|
75
|
-
upstream_inference_cost: z.nullable(z.number()).optional(),
|
|
76
|
-
upstream_inference_input_cost: z.number(),
|
|
77
|
-
upstream_inference_output_cost: z.number(),
|
|
78
|
-
}).transform((v) => {
|
|
79
|
-
return remap$(v, {
|
|
80
|
-
"upstream_inference_cost": "upstreamInferenceCost",
|
|
81
|
-
"upstream_inference_input_cost": "upstreamInferenceInputCost",
|
|
82
|
-
"upstream_inference_output_cost": "upstreamInferenceOutputCost",
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const CostDetails$outboundSchema = z.object({
|
|
87
|
-
upstreamInferenceCost: z.nullable(z.number()).optional(),
|
|
88
|
-
upstreamInferenceInputCost: z.number(),
|
|
89
|
-
upstreamInferenceOutputCost: z.number(),
|
|
90
|
-
}).transform((v) => {
|
|
91
|
-
return remap$(v, {
|
|
92
|
-
upstreamInferenceCost: "upstream_inference_cost",
|
|
93
|
-
upstreamInferenceInputCost: "upstream_inference_input_cost",
|
|
94
|
-
upstreamInferenceOutputCost: "upstream_inference_output_cost",
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
-
*/
|
|
101
|
-
export var CostDetails$;
|
|
102
|
-
(function (CostDetails$) {
|
|
103
|
-
/** @deprecated use `CostDetails$inboundSchema` instead. */
|
|
104
|
-
CostDetails$.inboundSchema = CostDetails$inboundSchema;
|
|
105
|
-
/** @deprecated use `CostDetails$outboundSchema` instead. */
|
|
106
|
-
CostDetails$.outboundSchema = CostDetails$outboundSchema;
|
|
107
|
-
})(CostDetails$ || (CostDetails$ = {}));
|
|
108
|
-
export function costDetailsToJSON(costDetails) {
|
|
109
|
-
return JSON.stringify(CostDetails$outboundSchema.parse(costDetails));
|
|
110
|
-
}
|
|
111
|
-
export function costDetailsFromJSON(jsonString) {
|
|
112
|
-
return safeParse(jsonString, (x) => CostDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CostDetails' from JSON`);
|
|
113
|
-
}
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const ResponsesUsage$inboundSchema = z.object({
|
|
116
|
-
input_tokens: z.number(),
|
|
117
|
-
input_tokens_details: z.lazy(() => InputTokensDetails$inboundSchema),
|
|
118
|
-
output_tokens: z.number(),
|
|
119
|
-
output_tokens_details: z.lazy(() => OutputTokensDetails$inboundSchema),
|
|
120
|
-
total_tokens: z.number(),
|
|
121
|
-
cost: z.nullable(z.number()).optional(),
|
|
122
|
-
is_byok: z.boolean().optional(),
|
|
123
|
-
cost_details: z.lazy(() => CostDetails$inboundSchema).optional(),
|
|
124
|
-
}).transform((v) => {
|
|
125
|
-
return remap$(v, {
|
|
126
|
-
"input_tokens": "inputTokens",
|
|
127
|
-
"input_tokens_details": "inputTokensDetails",
|
|
128
|
-
"output_tokens": "outputTokens",
|
|
129
|
-
"output_tokens_details": "outputTokensDetails",
|
|
130
|
-
"total_tokens": "totalTokens",
|
|
131
|
-
"is_byok": "isByok",
|
|
132
|
-
"cost_details": "costDetails",
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const ResponsesUsage$outboundSchema = z.object({
|
|
137
|
-
inputTokens: z.number(),
|
|
138
|
-
inputTokensDetails: z.lazy(() => InputTokensDetails$outboundSchema),
|
|
139
|
-
outputTokens: z.number(),
|
|
140
|
-
outputTokensDetails: z.lazy(() => OutputTokensDetails$outboundSchema),
|
|
141
|
-
totalTokens: z.number(),
|
|
142
|
-
cost: z.nullable(z.number()).optional(),
|
|
143
|
-
isByok: z.boolean().optional(),
|
|
144
|
-
costDetails: z.lazy(() => CostDetails$outboundSchema).optional(),
|
|
145
|
-
}).transform((v) => {
|
|
146
|
-
return remap$(v, {
|
|
147
|
-
inputTokens: "input_tokens",
|
|
148
|
-
inputTokensDetails: "input_tokens_details",
|
|
149
|
-
outputTokens: "output_tokens",
|
|
150
|
-
outputTokensDetails: "output_tokens_details",
|
|
151
|
-
totalTokens: "total_tokens",
|
|
152
|
-
isByok: "is_byok",
|
|
153
|
-
costDetails: "cost_details",
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
-
*/
|
|
160
|
-
export var ResponsesUsage$;
|
|
161
|
-
(function (ResponsesUsage$) {
|
|
162
|
-
/** @deprecated use `ResponsesUsage$inboundSchema` instead. */
|
|
163
|
-
ResponsesUsage$.inboundSchema = ResponsesUsage$inboundSchema;
|
|
164
|
-
/** @deprecated use `ResponsesUsage$outboundSchema` instead. */
|
|
165
|
-
ResponsesUsage$.outboundSchema = ResponsesUsage$outboundSchema;
|
|
166
|
-
})(ResponsesUsage$ || (ResponsesUsage$ = {}));
|
|
167
|
-
export function responsesUsageToJSON(responsesUsage) {
|
|
168
|
-
return JSON.stringify(ResponsesUsage$outboundSchema.parse(responsesUsage));
|
|
169
|
-
}
|
|
170
|
-
export function responsesUsageFromJSON(jsonString) {
|
|
171
|
-
return safeParse(jsonString, (x) => ResponsesUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesUsage' from JSON`);
|
|
172
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
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 { WebSearchStatus } from "./websearchstatus.js";
|
|
6
|
-
export declare const ResponsesWebSearchCallOutputType: {
|
|
7
|
-
readonly WebSearchCall: "web_search_call";
|
|
8
|
-
};
|
|
9
|
-
export type ResponsesWebSearchCallOutputType = ClosedEnum<typeof ResponsesWebSearchCallOutputType>;
|
|
10
|
-
export type ResponsesWebSearchCallOutput = {
|
|
11
|
-
type: ResponsesWebSearchCallOutputType;
|
|
12
|
-
id: string;
|
|
13
|
-
status: WebSearchStatus;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const ResponsesWebSearchCallOutputType$inboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchCallOutputType>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const ResponsesWebSearchCallOutputType$outboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchCallOutputType>;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export declare namespace ResponsesWebSearchCallOutputType$ {
|
|
24
|
-
/** @deprecated use `ResponsesWebSearchCallOutputType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
26
|
-
readonly WebSearchCall: "web_search_call";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `ResponsesWebSearchCallOutputType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
30
|
-
readonly WebSearchCall: "web_search_call";
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export declare const ResponsesWebSearchCallOutput$inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, z.ZodTypeDef, unknown>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export type ResponsesWebSearchCallOutput$Outbound = {
|
|
37
|
-
type: string;
|
|
38
|
-
id: string;
|
|
39
|
-
status: string;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const ResponsesWebSearchCallOutput$outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, z.ZodTypeDef, ResponsesWebSearchCallOutput>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace ResponsesWebSearchCallOutput$ {
|
|
48
|
-
/** @deprecated use `ResponsesWebSearchCallOutput$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @deprecated use `ResponsesWebSearchCallOutput$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, z.ZodTypeDef, ResponsesWebSearchCallOutput>;
|
|
52
|
-
/** @deprecated use `ResponsesWebSearchCallOutput$Outbound` instead. */
|
|
53
|
-
type Outbound = ResponsesWebSearchCallOutput$Outbound;
|
|
54
|
-
}
|
|
55
|
-
export declare function responsesWebSearchCallOutputToJSON(responsesWebSearchCallOutput: ResponsesWebSearchCallOutput): string;
|
|
56
|
-
export declare function responsesWebSearchCallOutputFromJSON(jsonString: string): SafeParseResult<ResponsesWebSearchCallOutput, SDKValidationError>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
import { WebSearchStatus$inboundSchema, WebSearchStatus$outboundSchema, } from "./websearchstatus.js";
|
|
7
|
-
export const ResponsesWebSearchCallOutputType = {
|
|
8
|
-
WebSearchCall: "web_search_call",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const ResponsesWebSearchCallOutputType$inboundSchema = z.nativeEnum(ResponsesWebSearchCallOutputType);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const ResponsesWebSearchCallOutputType$outboundSchema = ResponsesWebSearchCallOutputType$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 ResponsesWebSearchCallOutputType$;
|
|
19
|
-
(function (ResponsesWebSearchCallOutputType$) {
|
|
20
|
-
/** @deprecated use `ResponsesWebSearchCallOutputType$inboundSchema` instead. */
|
|
21
|
-
ResponsesWebSearchCallOutputType$.inboundSchema = ResponsesWebSearchCallOutputType$inboundSchema;
|
|
22
|
-
/** @deprecated use `ResponsesWebSearchCallOutputType$outboundSchema` instead. */
|
|
23
|
-
ResponsesWebSearchCallOutputType$.outboundSchema = ResponsesWebSearchCallOutputType$outboundSchema;
|
|
24
|
-
})(ResponsesWebSearchCallOutputType$ || (ResponsesWebSearchCallOutputType$ = {}));
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const ResponsesWebSearchCallOutput$inboundSchema = z.object({
|
|
27
|
-
type: ResponsesWebSearchCallOutputType$inboundSchema,
|
|
28
|
-
id: z.string(),
|
|
29
|
-
status: WebSearchStatus$inboundSchema,
|
|
30
|
-
});
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const ResponsesWebSearchCallOutput$outboundSchema = z.object({
|
|
33
|
-
type: ResponsesWebSearchCallOutputType$outboundSchema,
|
|
34
|
-
id: z.string(),
|
|
35
|
-
status: WebSearchStatus$outboundSchema,
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export var ResponsesWebSearchCallOutput$;
|
|
42
|
-
(function (ResponsesWebSearchCallOutput$) {
|
|
43
|
-
/** @deprecated use `ResponsesWebSearchCallOutput$inboundSchema` instead. */
|
|
44
|
-
ResponsesWebSearchCallOutput$.inboundSchema = ResponsesWebSearchCallOutput$inboundSchema;
|
|
45
|
-
/** @deprecated use `ResponsesWebSearchCallOutput$outboundSchema` instead. */
|
|
46
|
-
ResponsesWebSearchCallOutput$.outboundSchema = ResponsesWebSearchCallOutput$outboundSchema;
|
|
47
|
-
})(ResponsesWebSearchCallOutput$ || (ResponsesWebSearchCallOutput$ = {}));
|
|
48
|
-
export function responsesWebSearchCallOutputToJSON(responsesWebSearchCallOutput) {
|
|
49
|
-
return JSON.stringify(ResponsesWebSearchCallOutput$outboundSchema.parse(responsesWebSearchCallOutput));
|
|
50
|
-
}
|
|
51
|
-
export function responsesWebSearchCallOutputFromJSON(jsonString) {
|
|
52
|
-
return safeParse(jsonString, (x) => ResponsesWebSearchCallOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesWebSearchCallOutput' from JSON`);
|
|
53
|
-
}
|