@openrouter/sdk 0.0.0-beta.37 → 0.0.0-beta.39
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/dist/commonjs/funcs/betaResponsesSend.d.ts +2 -2
- package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -1
- package/dist/commonjs/funcs/betaResponsesSend.js +1 -1
- package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -1
- package/dist/commonjs/funcs/chatSend.js +1 -1
- package/dist/commonjs/funcs/chatSend.js.map +1 -1
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.d.ts +43 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.d.ts.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.js +50 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.js.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.test.d.ts +2 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.test.d.ts.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.test.js +213 -0
- package/dist/commonjs/funcs/custom/oAuthCreateAuthorizationUrl.test.js.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.d.ts +35 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.d.ts.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.js +75 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.js.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.test.d.ts +2 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.test.d.ts.map +1 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.test.js +164 -0
- package/dist/commonjs/funcs/custom/oAuthCreateSHA256CodeChallenge.test.js.map +1 -0
- package/dist/commonjs/funcs/modelsList.js +1 -1
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/chatgenerationparams.d.ts +16 -42
- package/dist/commonjs/models/chatgenerationparams.d.ts.map +1 -1
- package/dist/commonjs/models/chatgenerationparams.js +27 -6
- package/dist/commonjs/models/chatgenerationparams.js.map +1 -1
- package/dist/commonjs/models/chatmessagecontentitemaudio.d.ts +6 -22
- package/dist/commonjs/models/chatmessagecontentitemaudio.d.ts.map +1 -1
- package/dist/commonjs/models/chatmessagecontentitemaudio.js +10 -2
- package/dist/commonjs/models/chatmessagecontentitemaudio.js.map +1 -1
- package/dist/commonjs/models/chatmessagecontentitemimage.d.ts +6 -14
- package/dist/commonjs/models/chatmessagecontentitemimage.d.ts.map +1 -1
- package/dist/commonjs/models/chatmessagecontentitemimage.js +10 -2
- package/dist/commonjs/models/chatmessagecontentitemimage.js.map +1 -1
- package/dist/commonjs/models/chatresponsechoice.d.ts +6 -18
- package/dist/commonjs/models/chatresponsechoice.d.ts.map +1 -1
- package/dist/commonjs/models/chatresponsechoice.js +10 -2
- package/dist/commonjs/models/chatresponsechoice.js.map +1 -1
- package/dist/commonjs/models/chatstreamingchoice.d.ts +6 -18
- package/dist/commonjs/models/chatstreamingchoice.d.ts.map +1 -1
- package/dist/commonjs/models/chatstreamingchoice.js +10 -2
- package/dist/commonjs/models/chatstreamingchoice.js.map +1 -1
- package/dist/commonjs/models/completionfinishreason.d.ts +6 -14
- package/dist/commonjs/models/completionfinishreason.d.ts.map +1 -1
- package/dist/commonjs/models/completionfinishreason.js +10 -2
- package/dist/commonjs/models/completionfinishreason.js.map +1 -1
- package/dist/commonjs/models/createapikeydata.d.ts +120 -0
- package/dist/commonjs/models/createapikeydata.d.ts.map +1 -0
- package/dist/commonjs/models/createapikeydata.js +134 -0
- package/dist/commonjs/models/createapikeydata.js.map +1 -0
- package/dist/commonjs/models/endpointslist.d.ts +21 -269
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -1
- package/dist/commonjs/models/endpointslist.js +37 -8
- package/dist/commonjs/models/endpointslist.js.map +1 -1
- package/dist/commonjs/models/errorresponse.d.ts +6 -148
- package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errorresponse.js +10 -2
- package/dist/commonjs/models/errorresponse.js.map +1 -1
- package/dist/commonjs/models/getapikeydata.d.ts +120 -0
- package/dist/commonjs/models/getapikeydata.d.ts.map +1 -0
- package/dist/commonjs/models/getapikeydata.js +134 -0
- package/dist/commonjs/models/getapikeydata.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +8 -8
- package/dist/commonjs/models/listapikeysdata.d.ts +117 -0
- package/dist/commonjs/models/listapikeysdata.d.ts.map +1 -0
- package/dist/commonjs/models/listapikeysdata.js +134 -0
- package/dist/commonjs/models/listapikeysdata.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +26 -178
- package/dist/commonjs/models/modelslist.d.ts.map +1 -1
- package/dist/commonjs/models/modelslist.js +46 -11
- package/dist/commonjs/models/modelslist.js.map +1 -1
- package/dist/commonjs/models/operations/addcoinbasecharge.d.ts +6 -14
- package/dist/commonjs/models/operations/addcoinbasecharge.d.ts.map +1 -1
- package/dist/commonjs/models/operations/addcoinbasecharge.js +9 -2
- package/dist/commonjs/models/operations/addcoinbasecharge.js.map +1 -1
- package/dist/commonjs/models/operations/create.d.ts +35 -68
- package/dist/commonjs/models/operations/create.d.ts.map +1 -1
- package/dist/commonjs/models/operations/create.js +39 -54
- package/dist/commonjs/models/operations/create.js.map +1 -1
- package/dist/commonjs/models/operations/createauthorizationcode.d.ts +6 -12
- package/dist/commonjs/models/operations/createauthorizationcode.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createauthorizationcode.js +9 -2
- package/dist/commonjs/models/operations/createauthorizationcode.js.map +1 -1
- package/dist/commonjs/models/operations/exchangeauthorizationcode.d.ts +6 -12
- package/dist/commonjs/models/operations/exchangeauthorizationcode.d.ts.map +1 -1
- package/dist/commonjs/models/operations/exchangeauthorizationcode.js +9 -2
- package/dist/commonjs/models/operations/exchangeauthorizationcode.js.map +1 -1
- package/dist/commonjs/models/operations/generate.d.ts +37 -569
- package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/generate.js +55 -12
- package/dist/commonjs/models/operations/generate.js.map +1 -1
- package/dist/commonjs/models/operations/getapikey.d.ts +3 -68
- package/dist/commonjs/models/operations/getapikey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getapikey.js +4 -55
- package/dist/commonjs/models/operations/getapikey.js.map +1 -1
- package/dist/commonjs/models/operations/getmetadata.d.ts +6 -12
- package/dist/commonjs/models/operations/getmetadata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmetadata.js +9 -2
- package/dist/commonjs/models/operations/getmetadata.js.map +1 -1
- package/dist/commonjs/models/operations/getparameters.d.ts +11 -189
- package/dist/commonjs/models/operations/getparameters.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getparameters.js +19 -4
- package/dist/commonjs/models/operations/getparameters.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +21 -125
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +36 -8
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listapikeys.d.ts +3 -65
- package/dist/commonjs/models/operations/listapikeys.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listapikeys.js +4 -54
- package/dist/commonjs/models/operations/listapikeys.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +21 -269
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +38 -9
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +57 -621
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.js +88 -20
- package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/commonjs/models/operations/update.d.ts +35 -68
- package/dist/commonjs/models/operations/update.d.ts.map +1 -1
- package/dist/commonjs/models/operations/update.js +39 -54
- package/dist/commonjs/models/operations/update.js.map +1 -1
- package/dist/commonjs/models/responsefunctioncallstatus.d.ts +6 -14
- package/dist/commonjs/models/responsefunctioncallstatus.d.ts.map +1 -1
- package/dist/commonjs/models/responsefunctioncallstatus.js +10 -2
- package/dist/commonjs/models/responsefunctioncallstatus.js.map +1 -1
- package/dist/commonjs/models/responseimagegenerationcallstatus.d.ts +6 -16
- package/dist/commonjs/models/responseimagegenerationcallstatus.d.ts.map +1 -1
- package/dist/commonjs/models/responseimagegenerationcallstatus.js +10 -2
- package/dist/commonjs/models/responseimagegenerationcallstatus.js.map +1 -1
- package/dist/commonjs/models/responseincludable.d.ts +6 -18
- package/dist/commonjs/models/responseincludable.d.ts.map +1 -1
- package/dist/commonjs/models/responseincludable.js +10 -2
- package/dist/commonjs/models/responseincludable.js.map +1 -1
- package/dist/commonjs/models/responseinputimagedetail.d.ts +6 -14
- package/dist/commonjs/models/responseinputimagedetail.d.ts.map +1 -1
- package/dist/commonjs/models/responseinputimagedetail.js +10 -2
- package/dist/commonjs/models/responseinputimagedetail.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +6 -16
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +10 -2
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsereasoningsummarymode.d.ts +6 -14
- package/dist/commonjs/models/responsereasoningsummarymode.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningsummarymode.js +10 -2
- package/dist/commonjs/models/responsereasoningsummarymode.js.map +1 -1
- package/dist/commonjs/models/responsesincompletedetails.d.ts +6 -12
- package/dist/commonjs/models/responsesincompletedetails.d.ts.map +1 -1
- package/dist/commonjs/models/responsesincompletedetails.js +10 -2
- package/dist/commonjs/models/responsesincompletedetails.js.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +21 -61
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.js +35 -8
- package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/commonjs/models/responsesoutputitemfilesearchcall.d.ts +6 -16
- package/dist/commonjs/models/responsesoutputitemfilesearchcall.d.ts.map +1 -1
- package/dist/commonjs/models/responsesoutputitemfilesearchcall.js +9 -2
- package/dist/commonjs/models/responsesoutputitemfilesearchcall.js.map +1 -1
- package/dist/commonjs/models/responsesoutputitemreasoning.d.ts +7 -14
- package/dist/commonjs/models/responsesoutputitemreasoning.d.ts.map +1 -1
- package/dist/commonjs/models/responsesoutputitemreasoning.js +11 -2
- package/dist/commonjs/models/responsesoutputitemreasoning.js.map +1 -1
- package/dist/commonjs/models/responsesstreamchunkunion.d.ts +31 -81
- package/dist/commonjs/models/responsesstreamchunkunion.d.ts.map +1 -1
- package/dist/commonjs/models/responsesstreamchunkunion.js +55 -12
- package/dist/commonjs/models/responsesstreamchunkunion.js.map +1 -1
- package/dist/commonjs/models/responseswebsearchcalloutput.d.ts +6 -16
- package/dist/commonjs/models/responseswebsearchcalloutput.d.ts.map +1 -1
- package/dist/commonjs/models/responseswebsearchcalloutput.js +10 -2
- package/dist/commonjs/models/responseswebsearchcalloutput.js.map +1 -1
- package/dist/commonjs/models/responsetextverbosity.d.ts +6 -14
- package/dist/commonjs/models/responsetextverbosity.d.ts.map +1 -1
- package/dist/commonjs/models/responsetextverbosity.js +10 -2
- package/dist/commonjs/models/responsetextverbosity.js.map +1 -1
- package/dist/commonjs/models/updateapikeydata.d.ts +120 -0
- package/dist/commonjs/models/updateapikeydata.d.ts.map +1 -0
- package/dist/commonjs/models/updateapikeydata.js +134 -0
- package/dist/commonjs/models/updateapikeydata.js.map +1 -0
- package/dist/commonjs/sdk/oauth.d.ts +27 -0
- package/dist/commonjs/sdk/oauth.d.ts.map +1 -1
- package/dist/commonjs/sdk/oauth.js +43 -0
- package/dist/commonjs/sdk/oauth.js.map +1 -1
- package/dist/commonjs/sdk/responses.d.ts +2 -2
- package/dist/commonjs/sdk/responses.d.ts.map +1 -1
- package/dist/esm/funcs/betaResponsesSend.d.ts +2 -2
- package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -1
- package/dist/esm/funcs/betaResponsesSend.js +1 -1
- package/dist/esm/funcs/betaResponsesSend.js.map +1 -1
- package/dist/esm/funcs/chatSend.js +1 -1
- package/dist/esm/funcs/chatSend.js.map +1 -1
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.d.ts +43 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.d.ts.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.js +44 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.js.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.test.d.ts +2 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.test.d.ts.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.test.js +211 -0
- package/dist/esm/funcs/custom/oAuthCreateAuthorizationUrl.test.js.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.d.ts +35 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.d.ts.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.js +69 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.js.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.test.d.ts +2 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.test.d.ts.map +1 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.test.js +162 -0
- package/dist/esm/funcs/custom/oAuthCreateSHA256CodeChallenge.test.js.map +1 -0
- package/dist/esm/funcs/modelsList.js +1 -1
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/chatgenerationparams.d.ts +16 -42
- package/dist/esm/models/chatgenerationparams.d.ts.map +1 -1
- package/dist/esm/models/chatgenerationparams.js +27 -6
- package/dist/esm/models/chatgenerationparams.js.map +1 -1
- package/dist/esm/models/chatmessagecontentitemaudio.d.ts +6 -22
- package/dist/esm/models/chatmessagecontentitemaudio.d.ts.map +1 -1
- package/dist/esm/models/chatmessagecontentitemaudio.js +10 -2
- package/dist/esm/models/chatmessagecontentitemaudio.js.map +1 -1
- package/dist/esm/models/chatmessagecontentitemimage.d.ts +6 -14
- package/dist/esm/models/chatmessagecontentitemimage.d.ts.map +1 -1
- package/dist/esm/models/chatmessagecontentitemimage.js +10 -2
- package/dist/esm/models/chatmessagecontentitemimage.js.map +1 -1
- package/dist/esm/models/chatresponsechoice.d.ts +6 -18
- package/dist/esm/models/chatresponsechoice.d.ts.map +1 -1
- package/dist/esm/models/chatresponsechoice.js +10 -2
- package/dist/esm/models/chatresponsechoice.js.map +1 -1
- package/dist/esm/models/chatstreamingchoice.d.ts +6 -18
- package/dist/esm/models/chatstreamingchoice.d.ts.map +1 -1
- package/dist/esm/models/chatstreamingchoice.js +10 -2
- package/dist/esm/models/chatstreamingchoice.js.map +1 -1
- package/dist/esm/models/completionfinishreason.d.ts +6 -14
- package/dist/esm/models/completionfinishreason.d.ts.map +1 -1
- package/dist/esm/models/completionfinishreason.js +10 -2
- package/dist/esm/models/completionfinishreason.js.map +1 -1
- package/dist/esm/models/createapikeydata.d.ts +120 -0
- package/dist/esm/models/createapikeydata.d.ts.map +1 -0
- package/dist/esm/models/createapikeydata.js +96 -0
- package/dist/esm/models/createapikeydata.js.map +1 -0
- package/dist/esm/models/endpointslist.d.ts +21 -269
- package/dist/esm/models/endpointslist.d.ts.map +1 -1
- package/dist/esm/models/endpointslist.js +37 -8
- package/dist/esm/models/endpointslist.js.map +1 -1
- package/dist/esm/models/errorresponse.d.ts +6 -148
- package/dist/esm/models/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errorresponse.js +10 -2
- package/dist/esm/models/errorresponse.js.map +1 -1
- package/dist/esm/models/getapikeydata.d.ts +120 -0
- package/dist/esm/models/getapikeydata.d.ts.map +1 -0
- package/dist/esm/models/getapikeydata.js +96 -0
- package/dist/esm/models/getapikeydata.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +8 -8
- package/dist/esm/models/listapikeysdata.d.ts +117 -0
- package/dist/esm/models/listapikeysdata.d.ts.map +1 -0
- package/dist/esm/models/listapikeysdata.js +96 -0
- package/dist/esm/models/listapikeysdata.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +26 -178
- package/dist/esm/models/modelslist.d.ts.map +1 -1
- package/dist/esm/models/modelslist.js +46 -11
- package/dist/esm/models/modelslist.js.map +1 -1
- package/dist/esm/models/operations/addcoinbasecharge.d.ts +6 -14
- package/dist/esm/models/operations/addcoinbasecharge.d.ts.map +1 -1
- package/dist/esm/models/operations/addcoinbasecharge.js +9 -2
- package/dist/esm/models/operations/addcoinbasecharge.js.map +1 -1
- package/dist/esm/models/operations/create.d.ts +35 -68
- package/dist/esm/models/operations/create.d.ts.map +1 -1
- package/dist/esm/models/operations/create.js +38 -51
- package/dist/esm/models/operations/create.js.map +1 -1
- package/dist/esm/models/operations/createauthorizationcode.d.ts +6 -12
- package/dist/esm/models/operations/createauthorizationcode.d.ts.map +1 -1
- package/dist/esm/models/operations/createauthorizationcode.js +9 -2
- package/dist/esm/models/operations/createauthorizationcode.js.map +1 -1
- package/dist/esm/models/operations/exchangeauthorizationcode.d.ts +6 -12
- package/dist/esm/models/operations/exchangeauthorizationcode.d.ts.map +1 -1
- package/dist/esm/models/operations/exchangeauthorizationcode.js +9 -2
- package/dist/esm/models/operations/exchangeauthorizationcode.js.map +1 -1
- package/dist/esm/models/operations/generate.d.ts +37 -569
- package/dist/esm/models/operations/generate.d.ts.map +1 -1
- package/dist/esm/models/operations/generate.js +55 -12
- package/dist/esm/models/operations/generate.js.map +1 -1
- package/dist/esm/models/operations/getapikey.d.ts +3 -68
- package/dist/esm/models/operations/getapikey.d.ts.map +1 -1
- package/dist/esm/models/operations/getapikey.js +3 -52
- package/dist/esm/models/operations/getapikey.js.map +1 -1
- package/dist/esm/models/operations/getmetadata.d.ts +6 -12
- package/dist/esm/models/operations/getmetadata.d.ts.map +1 -1
- package/dist/esm/models/operations/getmetadata.js +9 -2
- package/dist/esm/models/operations/getmetadata.js.map +1 -1
- package/dist/esm/models/operations/getparameters.d.ts +11 -189
- package/dist/esm/models/operations/getparameters.d.ts.map +1 -1
- package/dist/esm/models/operations/getparameters.js +19 -4
- package/dist/esm/models/operations/getparameters.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +21 -125
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +36 -8
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listapikeys.d.ts +3 -65
- package/dist/esm/models/operations/listapikeys.d.ts.map +1 -1
- package/dist/esm/models/operations/listapikeys.js +3 -51
- package/dist/esm/models/operations/listapikeys.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +21 -269
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +38 -9
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.d.ts +57 -621
- package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.js +88 -20
- package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/esm/models/operations/update.d.ts +35 -68
- package/dist/esm/models/operations/update.d.ts.map +1 -1
- package/dist/esm/models/operations/update.js +38 -51
- package/dist/esm/models/operations/update.js.map +1 -1
- package/dist/esm/models/responsefunctioncallstatus.d.ts +6 -14
- package/dist/esm/models/responsefunctioncallstatus.d.ts.map +1 -1
- package/dist/esm/models/responsefunctioncallstatus.js +10 -2
- package/dist/esm/models/responsefunctioncallstatus.js.map +1 -1
- package/dist/esm/models/responseimagegenerationcallstatus.d.ts +6 -16
- package/dist/esm/models/responseimagegenerationcallstatus.d.ts.map +1 -1
- package/dist/esm/models/responseimagegenerationcallstatus.js +10 -2
- package/dist/esm/models/responseimagegenerationcallstatus.js.map +1 -1
- package/dist/esm/models/responseincludable.d.ts +6 -18
- package/dist/esm/models/responseincludable.d.ts.map +1 -1
- package/dist/esm/models/responseincludable.js +10 -2
- package/dist/esm/models/responseincludable.js.map +1 -1
- package/dist/esm/models/responseinputimagedetail.d.ts +6 -14
- package/dist/esm/models/responseinputimagedetail.d.ts.map +1 -1
- package/dist/esm/models/responseinputimagedetail.js +10 -2
- package/dist/esm/models/responseinputimagedetail.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +6 -16
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +10 -2
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsereasoningsummarymode.d.ts +6 -14
- package/dist/esm/models/responsereasoningsummarymode.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningsummarymode.js +10 -2
- package/dist/esm/models/responsereasoningsummarymode.js.map +1 -1
- package/dist/esm/models/responsesincompletedetails.d.ts +6 -12
- package/dist/esm/models/responsesincompletedetails.d.ts.map +1 -1
- package/dist/esm/models/responsesincompletedetails.js +10 -2
- package/dist/esm/models/responsesincompletedetails.js.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.d.ts +21 -61
- package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.js +35 -8
- package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/esm/models/responsesoutputitemfilesearchcall.d.ts +6 -16
- package/dist/esm/models/responsesoutputitemfilesearchcall.d.ts.map +1 -1
- package/dist/esm/models/responsesoutputitemfilesearchcall.js +9 -2
- package/dist/esm/models/responsesoutputitemfilesearchcall.js.map +1 -1
- package/dist/esm/models/responsesoutputitemreasoning.d.ts +7 -14
- package/dist/esm/models/responsesoutputitemreasoning.d.ts.map +1 -1
- package/dist/esm/models/responsesoutputitemreasoning.js +11 -2
- package/dist/esm/models/responsesoutputitemreasoning.js.map +1 -1
- package/dist/esm/models/responsesstreamchunkunion.d.ts +31 -81
- package/dist/esm/models/responsesstreamchunkunion.d.ts.map +1 -1
- package/dist/esm/models/responsesstreamchunkunion.js +55 -12
- package/dist/esm/models/responsesstreamchunkunion.js.map +1 -1
- package/dist/esm/models/responseswebsearchcalloutput.d.ts +6 -16
- package/dist/esm/models/responseswebsearchcalloutput.d.ts.map +1 -1
- package/dist/esm/models/responseswebsearchcalloutput.js +10 -2
- package/dist/esm/models/responseswebsearchcalloutput.js.map +1 -1
- package/dist/esm/models/responsetextverbosity.d.ts +6 -14
- package/dist/esm/models/responsetextverbosity.d.ts.map +1 -1
- package/dist/esm/models/responsetextverbosity.js +10 -2
- package/dist/esm/models/responsetextverbosity.js.map +1 -1
- package/dist/esm/models/updateapikeydata.d.ts +120 -0
- package/dist/esm/models/updateapikeydata.d.ts.map +1 -0
- package/dist/esm/models/updateapikeydata.js +96 -0
- package/dist/esm/models/updateapikeydata.js.map +1 -0
- package/dist/esm/sdk/oauth.d.ts +27 -0
- package/dist/esm/sdk/oauth.d.ts.map +1 -1
- package/dist/esm/sdk/oauth.js +43 -0
- package/dist/esm/sdk/oauth.js.map +1 -1
- package/dist/esm/sdk/responses.d.ts +2 -2
- package/dist/esm/sdk/responses.d.ts.map +1 -1
- package/docs/sdks/apikeys/README.md +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -2
- package/src/funcs/betaResponsesSend.ts +3 -3
- package/src/funcs/chatSend.ts +1 -1
- package/src/funcs/custom/oAuthCreateAuthorizationUrl.test.ts +265 -0
- package/src/funcs/custom/oAuthCreateAuthorizationUrl.ts +66 -0
- package/src/funcs/custom/oAuthCreateSHA256CodeChallenge.test.ts +189 -0
- package/src/funcs/custom/oAuthCreateSHA256CodeChallenge.ts +90 -0
- package/src/funcs/modelsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/chatgenerationparams.ts +59 -20
- package/src/models/chatmessagecontentitemaudio.ts +23 -8
- package/src/models/chatmessagecontentitemimage.ts +16 -6
- package/src/models/chatresponsechoice.ts +23 -8
- package/src/models/chatstreamingchoice.ts +23 -8
- package/src/models/completionfinishreason.ts +23 -8
- package/src/models/createapikeydata.ts +222 -0
- package/src/models/endpointslist.ts +77 -25
- package/src/models/errorresponse.ts +23 -8
- package/src/models/getapikeydata.ts +218 -0
- package/src/models/index.ts +4 -0
- package/src/models/keyinfo.ts +8 -8
- package/src/models/listapikeysdata.ts +217 -0
- package/src/models/modelslist.ts +95 -32
- package/src/models/operations/addcoinbasecharge.ts +17 -6
- package/src/models/operations/create.ts +64 -123
- package/src/models/operations/createauthorizationcode.ts +20 -6
- package/src/models/operations/exchangeauthorizationcode.ts +23 -6
- package/src/models/operations/generate.ts +114 -41
- package/src/models/operations/getapikey.ts +5 -124
- package/src/models/operations/getmetadata.ts +17 -6
- package/src/models/operations/getparameters.ts +41 -15
- package/src/models/operations/list.ts +77 -25
- package/src/models/operations/listapikeys.ts +5 -122
- package/src/models/operations/previewzdr.ts +70 -25
- package/src/models/operations/sendresponsesrequest.ts +179 -63
- package/src/models/operations/update.ts +64 -123
- package/src/models/responsefunctioncallstatus.ts +23 -8
- package/src/models/responseimagegenerationcallstatus.ts +23 -8
- package/src/models/responseincludable.ts +23 -8
- package/src/models/responseinputimagedetail.ts +23 -8
- package/src/models/responsereasoningconfig.ts +23 -8
- package/src/models/responsereasoningsummarymode.ts +23 -8
- package/src/models/responsesincompletedetails.ts +23 -8
- package/src/models/responsesnonstreamingresponse.ts +78 -25
- package/src/models/responsesoutputitemfilesearchcall.ts +24 -8
- package/src/models/responsesoutputitemreasoning.ts +25 -8
- package/src/models/responsesstreamchunkunion.ts +114 -43
- package/src/models/responseswebsearchcalloutput.ts +24 -8
- package/src/models/responsetextverbosity.ts +23 -8
- package/src/models/updateapikeydata.ts +222 -0
- package/src/sdk/oauth.ts +60 -0
- package/src/sdk/responses.ts +2 -2
|
@@ -5,8 +5,27 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import {
|
|
9
|
+
catchUnrecognizedEnum,
|
|
10
|
+
OpenEnum,
|
|
11
|
+
Unrecognized,
|
|
12
|
+
} from "../../types/enums.js";
|
|
8
13
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
14
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
15
|
+
import * as models from "../index.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
|
|
19
|
+
*/
|
|
20
|
+
export const UpdateLimitReset = {
|
|
21
|
+
Daily: "daily",
|
|
22
|
+
Weekly: "weekly",
|
|
23
|
+
Monthly: "monthly",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
|
|
27
|
+
*/
|
|
28
|
+
export type UpdateLimitReset = OpenEnum<typeof UpdateLimitReset>;
|
|
10
29
|
|
|
11
30
|
export type UpdateRequestBody = {
|
|
12
31
|
/**
|
|
@@ -21,6 +40,10 @@ export type UpdateRequestBody = {
|
|
|
21
40
|
* New spending limit for the API key in USD
|
|
22
41
|
*/
|
|
23
42
|
limit?: number | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
|
|
45
|
+
*/
|
|
46
|
+
limitReset?: UpdateLimitReset | null | undefined;
|
|
24
47
|
/**
|
|
25
48
|
* Whether to include BYOK usage in the limit
|
|
26
49
|
*/
|
|
@@ -32,44 +55,6 @@ export type UpdateRequest = {
|
|
|
32
55
|
requestBody: UpdateRequestBody;
|
|
33
56
|
};
|
|
34
57
|
|
|
35
|
-
/**
|
|
36
|
-
* The updated API key information
|
|
37
|
-
*/
|
|
38
|
-
export type UpdateData = {
|
|
39
|
-
/**
|
|
40
|
-
* Unique hash identifier for the API key
|
|
41
|
-
*/
|
|
42
|
-
hash: string;
|
|
43
|
-
/**
|
|
44
|
-
* Name of the API key
|
|
45
|
-
*/
|
|
46
|
-
name: string;
|
|
47
|
-
/**
|
|
48
|
-
* Human-readable label for the API key
|
|
49
|
-
*/
|
|
50
|
-
label: string;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the API key is disabled
|
|
53
|
-
*/
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Spending limit for the API key in USD
|
|
57
|
-
*/
|
|
58
|
-
limit: number | null;
|
|
59
|
-
/**
|
|
60
|
-
* Current usage of the API key in USD
|
|
61
|
-
*/
|
|
62
|
-
usage: number;
|
|
63
|
-
/**
|
|
64
|
-
* ISO 8601 timestamp of when the API key was created
|
|
65
|
-
*/
|
|
66
|
-
createdAt: string;
|
|
67
|
-
/**
|
|
68
|
-
* ISO 8601 timestamp of when the API key was last updated
|
|
69
|
-
*/
|
|
70
|
-
updatedAt: string | null;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
58
|
/**
|
|
74
59
|
* API key updated successfully
|
|
75
60
|
*/
|
|
@@ -77,9 +62,41 @@ export type UpdateResponse = {
|
|
|
77
62
|
/**
|
|
78
63
|
* The updated API key information
|
|
79
64
|
*/
|
|
80
|
-
data:
|
|
65
|
+
data: models.UpdateAPIKeyData;
|
|
81
66
|
};
|
|
82
67
|
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const UpdateLimitReset$inboundSchema: z.ZodType<
|
|
70
|
+
UpdateLimitReset,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
unknown
|
|
73
|
+
> = z
|
|
74
|
+
.union([
|
|
75
|
+
z.nativeEnum(UpdateLimitReset),
|
|
76
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
77
|
+
]);
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const UpdateLimitReset$outboundSchema: z.ZodType<
|
|
81
|
+
UpdateLimitReset,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
UpdateLimitReset
|
|
84
|
+
> = z.union([
|
|
85
|
+
z.nativeEnum(UpdateLimitReset),
|
|
86
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
+
*/
|
|
93
|
+
export namespace UpdateLimitReset$ {
|
|
94
|
+
/** @deprecated use `UpdateLimitReset$inboundSchema` instead. */
|
|
95
|
+
export const inboundSchema = UpdateLimitReset$inboundSchema;
|
|
96
|
+
/** @deprecated use `UpdateLimitReset$outboundSchema` instead. */
|
|
97
|
+
export const outboundSchema = UpdateLimitReset$outboundSchema;
|
|
98
|
+
}
|
|
99
|
+
|
|
83
100
|
/** @internal */
|
|
84
101
|
export const UpdateRequestBody$inboundSchema: z.ZodType<
|
|
85
102
|
UpdateRequestBody,
|
|
@@ -89,9 +106,11 @@ export const UpdateRequestBody$inboundSchema: z.ZodType<
|
|
|
89
106
|
name: z.string().optional(),
|
|
90
107
|
disabled: z.boolean().optional(),
|
|
91
108
|
limit: z.nullable(z.number()).optional(),
|
|
109
|
+
limit_reset: z.nullable(UpdateLimitReset$inboundSchema).optional(),
|
|
92
110
|
include_byok_in_limit: z.boolean().optional(),
|
|
93
111
|
}).transform((v) => {
|
|
94
112
|
return remap$(v, {
|
|
113
|
+
"limit_reset": "limitReset",
|
|
95
114
|
"include_byok_in_limit": "includeByokInLimit",
|
|
96
115
|
});
|
|
97
116
|
});
|
|
@@ -101,6 +120,7 @@ export type UpdateRequestBody$Outbound = {
|
|
|
101
120
|
name?: string | undefined;
|
|
102
121
|
disabled?: boolean | undefined;
|
|
103
122
|
limit?: number | null | undefined;
|
|
123
|
+
limit_reset?: string | null | undefined;
|
|
104
124
|
include_byok_in_limit?: boolean | undefined;
|
|
105
125
|
};
|
|
106
126
|
|
|
@@ -113,9 +133,11 @@ export const UpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
113
133
|
name: z.string().optional(),
|
|
114
134
|
disabled: z.boolean().optional(),
|
|
115
135
|
limit: z.nullable(z.number()).optional(),
|
|
136
|
+
limitReset: z.nullable(UpdateLimitReset$outboundSchema).optional(),
|
|
116
137
|
includeByokInLimit: z.boolean().optional(),
|
|
117
138
|
}).transform((v) => {
|
|
118
139
|
return remap$(v, {
|
|
140
|
+
limitReset: "limit_reset",
|
|
119
141
|
includeByokInLimit: "include_byok_in_limit",
|
|
120
142
|
});
|
|
121
143
|
});
|
|
@@ -212,99 +234,18 @@ export function updateRequestFromJSON(
|
|
|
212
234
|
);
|
|
213
235
|
}
|
|
214
236
|
|
|
215
|
-
/** @internal */
|
|
216
|
-
export const UpdateData$inboundSchema: z.ZodType<
|
|
217
|
-
UpdateData,
|
|
218
|
-
z.ZodTypeDef,
|
|
219
|
-
unknown
|
|
220
|
-
> = z.object({
|
|
221
|
-
hash: z.string(),
|
|
222
|
-
name: z.string(),
|
|
223
|
-
label: z.string(),
|
|
224
|
-
disabled: z.boolean(),
|
|
225
|
-
limit: z.nullable(z.number()),
|
|
226
|
-
usage: z.number(),
|
|
227
|
-
created_at: z.string(),
|
|
228
|
-
updated_at: z.nullable(z.string()),
|
|
229
|
-
}).transform((v) => {
|
|
230
|
-
return remap$(v, {
|
|
231
|
-
"created_at": "createdAt",
|
|
232
|
-
"updated_at": "updatedAt",
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
/** @internal */
|
|
237
|
-
export type UpdateData$Outbound = {
|
|
238
|
-
hash: string;
|
|
239
|
-
name: string;
|
|
240
|
-
label: string;
|
|
241
|
-
disabled: boolean;
|
|
242
|
-
limit: number | null;
|
|
243
|
-
usage: number;
|
|
244
|
-
created_at: string;
|
|
245
|
-
updated_at: string | null;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/** @internal */
|
|
249
|
-
export const UpdateData$outboundSchema: z.ZodType<
|
|
250
|
-
UpdateData$Outbound,
|
|
251
|
-
z.ZodTypeDef,
|
|
252
|
-
UpdateData
|
|
253
|
-
> = z.object({
|
|
254
|
-
hash: z.string(),
|
|
255
|
-
name: z.string(),
|
|
256
|
-
label: z.string(),
|
|
257
|
-
disabled: z.boolean(),
|
|
258
|
-
limit: z.nullable(z.number()),
|
|
259
|
-
usage: z.number(),
|
|
260
|
-
createdAt: z.string(),
|
|
261
|
-
updatedAt: z.nullable(z.string()),
|
|
262
|
-
}).transform((v) => {
|
|
263
|
-
return remap$(v, {
|
|
264
|
-
createdAt: "created_at",
|
|
265
|
-
updatedAt: "updated_at",
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @internal
|
|
271
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
272
|
-
*/
|
|
273
|
-
export namespace UpdateData$ {
|
|
274
|
-
/** @deprecated use `UpdateData$inboundSchema` instead. */
|
|
275
|
-
export const inboundSchema = UpdateData$inboundSchema;
|
|
276
|
-
/** @deprecated use `UpdateData$outboundSchema` instead. */
|
|
277
|
-
export const outboundSchema = UpdateData$outboundSchema;
|
|
278
|
-
/** @deprecated use `UpdateData$Outbound` instead. */
|
|
279
|
-
export type Outbound = UpdateData$Outbound;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export function updateDataToJSON(updateData: UpdateData): string {
|
|
283
|
-
return JSON.stringify(UpdateData$outboundSchema.parse(updateData));
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export function updateDataFromJSON(
|
|
287
|
-
jsonString: string,
|
|
288
|
-
): SafeParseResult<UpdateData, SDKValidationError> {
|
|
289
|
-
return safeParse(
|
|
290
|
-
jsonString,
|
|
291
|
-
(x) => UpdateData$inboundSchema.parse(JSON.parse(x)),
|
|
292
|
-
`Failed to parse 'UpdateData' from JSON`,
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
237
|
/** @internal */
|
|
297
238
|
export const UpdateResponse$inboundSchema: z.ZodType<
|
|
298
239
|
UpdateResponse,
|
|
299
240
|
z.ZodTypeDef,
|
|
300
241
|
unknown
|
|
301
242
|
> = z.object({
|
|
302
|
-
data:
|
|
243
|
+
data: models.UpdateAPIKeyData$inboundSchema,
|
|
303
244
|
});
|
|
304
245
|
|
|
305
246
|
/** @internal */
|
|
306
247
|
export type UpdateResponse$Outbound = {
|
|
307
|
-
data:
|
|
248
|
+
data: models.UpdateAPIKeyData$Outbound;
|
|
308
249
|
};
|
|
309
250
|
|
|
310
251
|
/** @internal */
|
|
@@ -313,7 +254,7 @@ export const UpdateResponse$outboundSchema: z.ZodType<
|
|
|
313
254
|
z.ZodTypeDef,
|
|
314
255
|
UpdateResponse
|
|
315
256
|
> = z.object({
|
|
316
|
-
data:
|
|
257
|
+
data: models.UpdateAPIKeyData$outboundSchema,
|
|
317
258
|
});
|
|
318
259
|
|
|
319
260
|
/**
|
|
@@ -3,26 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseFunctionCallStatus = {
|
|
9
13
|
InProgress: "in_progress",
|
|
10
14
|
Completed: "completed",
|
|
11
15
|
Incomplete: "incomplete",
|
|
12
16
|
} as const;
|
|
13
|
-
export type ResponseFunctionCallStatus =
|
|
17
|
+
export type ResponseFunctionCallStatus = OpenEnum<
|
|
14
18
|
typeof ResponseFunctionCallStatus
|
|
15
19
|
>;
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
18
|
-
export const ResponseFunctionCallStatus$inboundSchema: z.
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export const ResponseFunctionCallStatus$inboundSchema: z.ZodType<
|
|
23
|
+
ResponseFunctionCallStatus,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z
|
|
27
|
+
.union([
|
|
28
|
+
z.nativeEnum(ResponseFunctionCallStatus),
|
|
29
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
30
|
+
]);
|
|
21
31
|
|
|
22
32
|
/** @internal */
|
|
23
|
-
export const ResponseFunctionCallStatus$outboundSchema: z.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export const ResponseFunctionCallStatus$outboundSchema: z.ZodType<
|
|
34
|
+
ResponseFunctionCallStatus,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ResponseFunctionCallStatus
|
|
37
|
+
> = z.union([
|
|
38
|
+
z.nativeEnum(ResponseFunctionCallStatus),
|
|
39
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
40
|
+
]);
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* @internal
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseImageGenerationCallStatus = {
|
|
9
13
|
InProgress: "in_progress",
|
|
@@ -11,19 +15,30 @@ export const ResponseImageGenerationCallStatus = {
|
|
|
11
15
|
Generating: "generating",
|
|
12
16
|
Failed: "failed",
|
|
13
17
|
} as const;
|
|
14
|
-
export type ResponseImageGenerationCallStatus =
|
|
18
|
+
export type ResponseImageGenerationCallStatus = OpenEnum<
|
|
15
19
|
typeof ResponseImageGenerationCallStatus
|
|
16
20
|
>;
|
|
17
21
|
|
|
18
22
|
/** @internal */
|
|
19
|
-
export const ResponseImageGenerationCallStatus$inboundSchema: z.
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
export const ResponseImageGenerationCallStatus$inboundSchema: z.ZodType<
|
|
24
|
+
ResponseImageGenerationCallStatus,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.union([
|
|
29
|
+
z.nativeEnum(ResponseImageGenerationCallStatus),
|
|
30
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
31
|
+
]);
|
|
22
32
|
|
|
23
33
|
/** @internal */
|
|
24
|
-
export const ResponseImageGenerationCallStatus$outboundSchema: z.
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
export const ResponseImageGenerationCallStatus$outboundSchema: z.ZodType<
|
|
35
|
+
ResponseImageGenerationCallStatus,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
ResponseImageGenerationCallStatus
|
|
38
|
+
> = z.union([
|
|
39
|
+
z.nativeEnum(ResponseImageGenerationCallStatus),
|
|
40
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
41
|
+
]);
|
|
27
42
|
|
|
28
43
|
/**
|
|
29
44
|
* @internal
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Includable fields for response
|
|
@@ -18,17 +22,28 @@ export const ResponseIncludable = {
|
|
|
18
22
|
/**
|
|
19
23
|
* Includable fields for response
|
|
20
24
|
*/
|
|
21
|
-
export type ResponseIncludable =
|
|
25
|
+
export type ResponseIncludable = OpenEnum<typeof ResponseIncludable>;
|
|
22
26
|
|
|
23
27
|
/** @internal */
|
|
24
|
-
export const ResponseIncludable$inboundSchema: z.
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
export const ResponseIncludable$inboundSchema: z.ZodType<
|
|
29
|
+
ResponseIncludable,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z
|
|
33
|
+
.union([
|
|
34
|
+
z.nativeEnum(ResponseIncludable),
|
|
35
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
36
|
+
]);
|
|
27
37
|
|
|
28
38
|
/** @internal */
|
|
29
|
-
export const ResponseIncludable$outboundSchema: z.
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
export const ResponseIncludable$outboundSchema: z.ZodType<
|
|
40
|
+
ResponseIncludable,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
ResponseIncludable
|
|
43
|
+
> = z.union([
|
|
44
|
+
z.nativeEnum(ResponseIncludable),
|
|
45
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
46
|
+
]);
|
|
32
47
|
|
|
33
48
|
/**
|
|
34
49
|
* @internal
|
|
@@ -3,26 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseInputImageDetail = {
|
|
9
13
|
Auto: "auto",
|
|
10
14
|
High: "high",
|
|
11
15
|
Low: "low",
|
|
12
16
|
} as const;
|
|
13
|
-
export type ResponseInputImageDetail =
|
|
17
|
+
export type ResponseInputImageDetail = OpenEnum<
|
|
14
18
|
typeof ResponseInputImageDetail
|
|
15
19
|
>;
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
18
|
-
export const ResponseInputImageDetail$inboundSchema: z.
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export const ResponseInputImageDetail$inboundSchema: z.ZodType<
|
|
23
|
+
ResponseInputImageDetail,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z
|
|
27
|
+
.union([
|
|
28
|
+
z.nativeEnum(ResponseInputImageDetail),
|
|
29
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
30
|
+
]);
|
|
21
31
|
|
|
22
32
|
/** @internal */
|
|
23
|
-
export const ResponseInputImageDetail$outboundSchema: z.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export const ResponseInputImageDetail$outboundSchema: z.ZodType<
|
|
34
|
+
ResponseInputImageDetail,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ResponseInputImageDetail
|
|
37
|
+
> = z.union([
|
|
38
|
+
z.nativeEnum(ResponseInputImageDetail),
|
|
39
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
40
|
+
]);
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* @internal
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
catchUnrecognizedEnum,
|
|
10
|
+
OpenEnum,
|
|
11
|
+
Unrecognized,
|
|
12
|
+
} from "../types/enums.js";
|
|
9
13
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
14
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
15
|
import {
|
|
@@ -20,7 +24,7 @@ export const ResponseReasoningConfigEffort = {
|
|
|
20
24
|
Low: "low",
|
|
21
25
|
Minimal: "minimal",
|
|
22
26
|
} as const;
|
|
23
|
-
export type ResponseReasoningConfigEffort =
|
|
27
|
+
export type ResponseReasoningConfigEffort = OpenEnum<
|
|
24
28
|
typeof ResponseReasoningConfigEffort
|
|
25
29
|
>;
|
|
26
30
|
|
|
@@ -35,14 +39,25 @@ export type ResponseReasoningConfig = {
|
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
/** @internal */
|
|
38
|
-
export const ResponseReasoningConfigEffort$inboundSchema: z.
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
export const ResponseReasoningConfigEffort$inboundSchema: z.ZodType<
|
|
43
|
+
ResponseReasoningConfigEffort,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z
|
|
47
|
+
.union([
|
|
48
|
+
z.nativeEnum(ResponseReasoningConfigEffort),
|
|
49
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
50
|
+
]);
|
|
41
51
|
|
|
42
52
|
/** @internal */
|
|
43
|
-
export const ResponseReasoningConfigEffort$outboundSchema: z.
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
export const ResponseReasoningConfigEffort$outboundSchema: z.ZodType<
|
|
54
|
+
ResponseReasoningConfigEffort,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
ResponseReasoningConfigEffort
|
|
57
|
+
> = z.union([
|
|
58
|
+
z.nativeEnum(ResponseReasoningConfigEffort),
|
|
59
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
60
|
+
]);
|
|
46
61
|
|
|
47
62
|
/**
|
|
48
63
|
* @internal
|
|
@@ -3,26 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseReasoningSummaryMode = {
|
|
9
13
|
Auto: "auto",
|
|
10
14
|
Concise: "concise",
|
|
11
15
|
Detailed: "detailed",
|
|
12
16
|
} as const;
|
|
13
|
-
export type ResponseReasoningSummaryMode =
|
|
17
|
+
export type ResponseReasoningSummaryMode = OpenEnum<
|
|
14
18
|
typeof ResponseReasoningSummaryMode
|
|
15
19
|
>;
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
18
|
-
export const ResponseReasoningSummaryMode$inboundSchema: z.
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export const ResponseReasoningSummaryMode$inboundSchema: z.ZodType<
|
|
23
|
+
ResponseReasoningSummaryMode,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z
|
|
27
|
+
.union([
|
|
28
|
+
z.nativeEnum(ResponseReasoningSummaryMode),
|
|
29
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
30
|
+
]);
|
|
21
31
|
|
|
22
32
|
/** @internal */
|
|
23
|
-
export const ResponseReasoningSummaryMode$outboundSchema: z.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export const ResponseReasoningSummaryMode$outboundSchema: z.ZodType<
|
|
34
|
+
ResponseReasoningSummaryMode,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ResponseReasoningSummaryMode
|
|
37
|
+
> = z.union([
|
|
38
|
+
z.nativeEnum(ResponseReasoningSummaryMode),
|
|
39
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
40
|
+
]);
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* @internal
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
catchUnrecognizedEnum,
|
|
9
|
+
OpenEnum,
|
|
10
|
+
Unrecognized,
|
|
11
|
+
} from "../types/enums.js";
|
|
8
12
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
13
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
14
|
|
|
@@ -12,7 +16,7 @@ export const ResponsesIncompleteDetailsReason = {
|
|
|
12
16
|
MaxOutputTokens: "max_output_tokens",
|
|
13
17
|
ContentFilter: "content_filter",
|
|
14
18
|
} as const;
|
|
15
|
-
export type ResponsesIncompleteDetailsReason =
|
|
19
|
+
export type ResponsesIncompleteDetailsReason = OpenEnum<
|
|
16
20
|
typeof ResponsesIncompleteDetailsReason
|
|
17
21
|
>;
|
|
18
22
|
|
|
@@ -24,14 +28,25 @@ export type ResponsesIncompleteDetails = {
|
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
27
|
-
export const ResponsesIncompleteDetailsReason$inboundSchema: z.
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
export const ResponsesIncompleteDetailsReason$inboundSchema: z.ZodType<
|
|
32
|
+
ResponsesIncompleteDetailsReason,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z
|
|
36
|
+
.union([
|
|
37
|
+
z.nativeEnum(ResponsesIncompleteDetailsReason),
|
|
38
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
39
|
+
]);
|
|
30
40
|
|
|
31
41
|
/** @internal */
|
|
32
|
-
export const ResponsesIncompleteDetailsReason$outboundSchema: z.
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
export const ResponsesIncompleteDetailsReason$outboundSchema: z.ZodType<
|
|
43
|
+
ResponsesIncompleteDetailsReason,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
ResponsesIncompleteDetailsReason
|
|
46
|
+
> = z.union([
|
|
47
|
+
z.nativeEnum(ResponsesIncompleteDetailsReason),
|
|
48
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
49
|
+
]);
|
|
35
50
|
|
|
36
51
|
/**
|
|
37
52
|
* @internal
|