@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
|
+
* Type of limit reset 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 CreateLimitReset = {
|
|
21
|
+
Daily: "daily",
|
|
22
|
+
Weekly: "weekly",
|
|
23
|
+
Monthly: "monthly",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* Type of limit reset 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 CreateLimitReset = OpenEnum<typeof CreateLimitReset>;
|
|
10
29
|
|
|
11
30
|
export type CreateRequest = {
|
|
12
31
|
/**
|
|
@@ -18,47 +37,13 @@ export type CreateRequest = {
|
|
|
18
37
|
*/
|
|
19
38
|
limit?: number | null | undefined;
|
|
20
39
|
/**
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
includeByokInLimit?: boolean | undefined;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The created API key information
|
|
28
|
-
*/
|
|
29
|
-
export type CreateData = {
|
|
30
|
-
/**
|
|
31
|
-
* Unique hash identifier for the API key
|
|
32
|
-
*/
|
|
33
|
-
hash: string;
|
|
34
|
-
/**
|
|
35
|
-
* Name of the API key
|
|
36
|
-
*/
|
|
37
|
-
name: string;
|
|
38
|
-
/**
|
|
39
|
-
* Human-readable label for the API key
|
|
40
|
-
*/
|
|
41
|
-
label: string;
|
|
42
|
-
/**
|
|
43
|
-
* Whether the API key is disabled
|
|
40
|
+
* Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
|
|
44
41
|
*/
|
|
45
|
-
|
|
42
|
+
limitReset?: CreateLimitReset | null | undefined;
|
|
46
43
|
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
limit: number | null;
|
|
50
|
-
/**
|
|
51
|
-
* Current usage of the API key in USD
|
|
52
|
-
*/
|
|
53
|
-
usage: number;
|
|
54
|
-
/**
|
|
55
|
-
* ISO 8601 timestamp of when the API key was created
|
|
56
|
-
*/
|
|
57
|
-
createdAt: string;
|
|
58
|
-
/**
|
|
59
|
-
* ISO 8601 timestamp of when the API key was last updated
|
|
44
|
+
* Whether to include BYOK usage in the limit
|
|
60
45
|
*/
|
|
61
|
-
|
|
46
|
+
includeByokInLimit?: boolean | undefined;
|
|
62
47
|
};
|
|
63
48
|
|
|
64
49
|
/**
|
|
@@ -68,13 +53,45 @@ export type CreateResponse = {
|
|
|
68
53
|
/**
|
|
69
54
|
* The created API key information
|
|
70
55
|
*/
|
|
71
|
-
data:
|
|
56
|
+
data: models.CreateAPIKeyData;
|
|
72
57
|
/**
|
|
73
58
|
* The actual API key string (only shown once)
|
|
74
59
|
*/
|
|
75
60
|
key: string;
|
|
76
61
|
};
|
|
77
62
|
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const CreateLimitReset$inboundSchema: z.ZodType<
|
|
65
|
+
CreateLimitReset,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z
|
|
69
|
+
.union([
|
|
70
|
+
z.nativeEnum(CreateLimitReset),
|
|
71
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
72
|
+
]);
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const CreateLimitReset$outboundSchema: z.ZodType<
|
|
76
|
+
CreateLimitReset,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
CreateLimitReset
|
|
79
|
+
> = z.union([
|
|
80
|
+
z.nativeEnum(CreateLimitReset),
|
|
81
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
82
|
+
]);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace CreateLimitReset$ {
|
|
89
|
+
/** @deprecated use `CreateLimitReset$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = CreateLimitReset$inboundSchema;
|
|
91
|
+
/** @deprecated use `CreateLimitReset$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = CreateLimitReset$outboundSchema;
|
|
93
|
+
}
|
|
94
|
+
|
|
78
95
|
/** @internal */
|
|
79
96
|
export const CreateRequest$inboundSchema: z.ZodType<
|
|
80
97
|
CreateRequest,
|
|
@@ -83,9 +100,11 @@ export const CreateRequest$inboundSchema: z.ZodType<
|
|
|
83
100
|
> = z.object({
|
|
84
101
|
name: z.string(),
|
|
85
102
|
limit: z.nullable(z.number()).optional(),
|
|
103
|
+
limit_reset: z.nullable(CreateLimitReset$inboundSchema).optional(),
|
|
86
104
|
include_byok_in_limit: z.boolean().optional(),
|
|
87
105
|
}).transform((v) => {
|
|
88
106
|
return remap$(v, {
|
|
107
|
+
"limit_reset": "limitReset",
|
|
89
108
|
"include_byok_in_limit": "includeByokInLimit",
|
|
90
109
|
});
|
|
91
110
|
});
|
|
@@ -94,6 +113,7 @@ export const CreateRequest$inboundSchema: z.ZodType<
|
|
|
94
113
|
export type CreateRequest$Outbound = {
|
|
95
114
|
name: string;
|
|
96
115
|
limit?: number | null | undefined;
|
|
116
|
+
limit_reset?: string | null | undefined;
|
|
97
117
|
include_byok_in_limit?: boolean | undefined;
|
|
98
118
|
};
|
|
99
119
|
|
|
@@ -105,9 +125,11 @@ export const CreateRequest$outboundSchema: z.ZodType<
|
|
|
105
125
|
> = z.object({
|
|
106
126
|
name: z.string(),
|
|
107
127
|
limit: z.nullable(z.number()).optional(),
|
|
128
|
+
limitReset: z.nullable(CreateLimitReset$outboundSchema).optional(),
|
|
108
129
|
includeByokInLimit: z.boolean().optional(),
|
|
109
130
|
}).transform((v) => {
|
|
110
131
|
return remap$(v, {
|
|
132
|
+
limitReset: "limit_reset",
|
|
111
133
|
includeByokInLimit: "include_byok_in_limit",
|
|
112
134
|
});
|
|
113
135
|
});
|
|
@@ -139,100 +161,19 @@ export function createRequestFromJSON(
|
|
|
139
161
|
);
|
|
140
162
|
}
|
|
141
163
|
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const CreateData$inboundSchema: z.ZodType<
|
|
144
|
-
CreateData,
|
|
145
|
-
z.ZodTypeDef,
|
|
146
|
-
unknown
|
|
147
|
-
> = z.object({
|
|
148
|
-
hash: z.string(),
|
|
149
|
-
name: z.string(),
|
|
150
|
-
label: z.string(),
|
|
151
|
-
disabled: z.boolean(),
|
|
152
|
-
limit: z.nullable(z.number()),
|
|
153
|
-
usage: z.number(),
|
|
154
|
-
created_at: z.string(),
|
|
155
|
-
updated_at: z.nullable(z.string()),
|
|
156
|
-
}).transform((v) => {
|
|
157
|
-
return remap$(v, {
|
|
158
|
-
"created_at": "createdAt",
|
|
159
|
-
"updated_at": "updatedAt",
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
/** @internal */
|
|
164
|
-
export type CreateData$Outbound = {
|
|
165
|
-
hash: string;
|
|
166
|
-
name: string;
|
|
167
|
-
label: string;
|
|
168
|
-
disabled: boolean;
|
|
169
|
-
limit: number | null;
|
|
170
|
-
usage: number;
|
|
171
|
-
created_at: string;
|
|
172
|
-
updated_at: string | null;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
/** @internal */
|
|
176
|
-
export const CreateData$outboundSchema: z.ZodType<
|
|
177
|
-
CreateData$Outbound,
|
|
178
|
-
z.ZodTypeDef,
|
|
179
|
-
CreateData
|
|
180
|
-
> = z.object({
|
|
181
|
-
hash: z.string(),
|
|
182
|
-
name: z.string(),
|
|
183
|
-
label: z.string(),
|
|
184
|
-
disabled: z.boolean(),
|
|
185
|
-
limit: z.nullable(z.number()),
|
|
186
|
-
usage: z.number(),
|
|
187
|
-
createdAt: z.string(),
|
|
188
|
-
updatedAt: z.nullable(z.string()),
|
|
189
|
-
}).transform((v) => {
|
|
190
|
-
return remap$(v, {
|
|
191
|
-
createdAt: "created_at",
|
|
192
|
-
updatedAt: "updated_at",
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
199
|
-
*/
|
|
200
|
-
export namespace CreateData$ {
|
|
201
|
-
/** @deprecated use `CreateData$inboundSchema` instead. */
|
|
202
|
-
export const inboundSchema = CreateData$inboundSchema;
|
|
203
|
-
/** @deprecated use `CreateData$outboundSchema` instead. */
|
|
204
|
-
export const outboundSchema = CreateData$outboundSchema;
|
|
205
|
-
/** @deprecated use `CreateData$Outbound` instead. */
|
|
206
|
-
export type Outbound = CreateData$Outbound;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function createDataToJSON(createData: CreateData): string {
|
|
210
|
-
return JSON.stringify(CreateData$outboundSchema.parse(createData));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function createDataFromJSON(
|
|
214
|
-
jsonString: string,
|
|
215
|
-
): SafeParseResult<CreateData, SDKValidationError> {
|
|
216
|
-
return safeParse(
|
|
217
|
-
jsonString,
|
|
218
|
-
(x) => CreateData$inboundSchema.parse(JSON.parse(x)),
|
|
219
|
-
`Failed to parse 'CreateData' from JSON`,
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
164
|
/** @internal */
|
|
224
165
|
export const CreateResponse$inboundSchema: z.ZodType<
|
|
225
166
|
CreateResponse,
|
|
226
167
|
z.ZodTypeDef,
|
|
227
168
|
unknown
|
|
228
169
|
> = z.object({
|
|
229
|
-
data:
|
|
170
|
+
data: models.CreateAPIKeyData$inboundSchema,
|
|
230
171
|
key: z.string(),
|
|
231
172
|
});
|
|
232
173
|
|
|
233
174
|
/** @internal */
|
|
234
175
|
export type CreateResponse$Outbound = {
|
|
235
|
-
data:
|
|
176
|
+
data: models.CreateAPIKeyData$Outbound;
|
|
236
177
|
key: string;
|
|
237
178
|
};
|
|
238
179
|
|
|
@@ -242,7 +183,7 @@ export const CreateResponse$outboundSchema: z.ZodType<
|
|
|
242
183
|
z.ZodTypeDef,
|
|
243
184
|
CreateResponse
|
|
244
185
|
> = z.object({
|
|
245
|
-
data:
|
|
186
|
+
data: models.CreateAPIKeyData$outboundSchema,
|
|
246
187
|
key: z.string(),
|
|
247
188
|
});
|
|
248
189
|
|
|
@@ -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
|
|
|
@@ -19,7 +23,7 @@ export const CreateAuthorizationCodeCodeChallengeMethod = {
|
|
|
19
23
|
/**
|
|
20
24
|
* The method used to generate the code challenge
|
|
21
25
|
*/
|
|
22
|
-
export type CreateAuthorizationCodeCodeChallengeMethod =
|
|
26
|
+
export type CreateAuthorizationCodeCodeChallengeMethod = OpenEnum<
|
|
23
27
|
typeof CreateAuthorizationCodeCodeChallengeMethod
|
|
24
28
|
>;
|
|
25
29
|
|
|
@@ -72,13 +76,23 @@ export type CreateAuthorizationCodeResponse = {
|
|
|
72
76
|
|
|
73
77
|
/** @internal */
|
|
74
78
|
export const CreateAuthorizationCodeCodeChallengeMethod$inboundSchema:
|
|
75
|
-
z.
|
|
76
|
-
|
|
79
|
+
z.ZodType<CreateAuthorizationCodeCodeChallengeMethod, z.ZodTypeDef, unknown> =
|
|
80
|
+
z
|
|
81
|
+
.union([
|
|
82
|
+
z.nativeEnum(CreateAuthorizationCodeCodeChallengeMethod),
|
|
83
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
84
|
+
]);
|
|
77
85
|
|
|
78
86
|
/** @internal */
|
|
79
87
|
export const CreateAuthorizationCodeCodeChallengeMethod$outboundSchema:
|
|
80
|
-
z.
|
|
81
|
-
CreateAuthorizationCodeCodeChallengeMethod
|
|
88
|
+
z.ZodType<
|
|
89
|
+
CreateAuthorizationCodeCodeChallengeMethod,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
CreateAuthorizationCodeCodeChallengeMethod
|
|
92
|
+
> = z.union([
|
|
93
|
+
z.nativeEnum(CreateAuthorizationCodeCodeChallengeMethod),
|
|
94
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
95
|
+
]);
|
|
82
96
|
|
|
83
97
|
/**
|
|
84
98
|
* @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
|
|
|
@@ -19,7 +23,7 @@ export const ExchangeAuthorizationCodeCodeChallengeMethod = {
|
|
|
19
23
|
/**
|
|
20
24
|
* The method used to generate the code challenge
|
|
21
25
|
*/
|
|
22
|
-
export type ExchangeAuthorizationCodeCodeChallengeMethod =
|
|
26
|
+
export type ExchangeAuthorizationCodeCodeChallengeMethod = OpenEnum<
|
|
23
27
|
typeof ExchangeAuthorizationCodeCodeChallengeMethod
|
|
24
28
|
>;
|
|
25
29
|
|
|
@@ -56,13 +60,26 @@ export type ExchangeAuthorizationCodeResponse = {
|
|
|
56
60
|
|
|
57
61
|
/** @internal */
|
|
58
62
|
export const ExchangeAuthorizationCodeCodeChallengeMethod$inboundSchema:
|
|
59
|
-
z.
|
|
60
|
-
|
|
63
|
+
z.ZodType<
|
|
64
|
+
ExchangeAuthorizationCodeCodeChallengeMethod,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z
|
|
68
|
+
.union([
|
|
69
|
+
z.nativeEnum(ExchangeAuthorizationCodeCodeChallengeMethod),
|
|
70
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
71
|
+
]);
|
|
61
72
|
|
|
62
73
|
/** @internal */
|
|
63
74
|
export const ExchangeAuthorizationCodeCodeChallengeMethod$outboundSchema:
|
|
64
|
-
z.
|
|
65
|
-
ExchangeAuthorizationCodeCodeChallengeMethod
|
|
75
|
+
z.ZodType<
|
|
76
|
+
ExchangeAuthorizationCodeCodeChallengeMethod,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
ExchangeAuthorizationCodeCodeChallengeMethod
|
|
79
|
+
> = z.union([
|
|
80
|
+
z.nativeEnum(ExchangeAuthorizationCodeCodeChallengeMethod),
|
|
81
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
82
|
+
]);
|
|
66
83
|
|
|
67
84
|
/**
|
|
68
85
|
* @internal
|
|
@@ -5,7 +5,12 @@
|
|
|
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
|
+
ClosedEnum,
|
|
11
|
+
OpenEnum,
|
|
12
|
+
Unrecognized,
|
|
13
|
+
} from "../../types/enums.js";
|
|
9
14
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
15
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
16
|
|
|
@@ -33,7 +38,7 @@ export const GenerateDataCollection = {
|
|
|
33
38
|
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
34
39
|
* - deny: use only providers which do not collect user data.
|
|
35
40
|
*/
|
|
36
|
-
export type GenerateDataCollection =
|
|
41
|
+
export type GenerateDataCollection = OpenEnum<typeof GenerateDataCollection>;
|
|
37
42
|
|
|
38
43
|
export const GenerateOrderEnum = {
|
|
39
44
|
AnyScale: "AnyScale",
|
|
@@ -119,7 +124,7 @@ export const GenerateOrderEnum = {
|
|
|
119
124
|
ZAi: "Z.AI",
|
|
120
125
|
FakeProvider: "FakeProvider",
|
|
121
126
|
} as const;
|
|
122
|
-
export type GenerateOrderEnum =
|
|
127
|
+
export type GenerateOrderEnum = OpenEnum<typeof GenerateOrderEnum>;
|
|
123
128
|
|
|
124
129
|
export type GenerateOrderUnion = GenerateOrderEnum | string;
|
|
125
130
|
|
|
@@ -207,7 +212,7 @@ export const GenerateOnlyEnum = {
|
|
|
207
212
|
ZAi: "Z.AI",
|
|
208
213
|
FakeProvider: "FakeProvider",
|
|
209
214
|
} as const;
|
|
210
|
-
export type GenerateOnlyEnum =
|
|
215
|
+
export type GenerateOnlyEnum = OpenEnum<typeof GenerateOnlyEnum>;
|
|
211
216
|
|
|
212
217
|
export type GenerateOnlyUnion = GenerateOnlyEnum | string;
|
|
213
218
|
|
|
@@ -295,7 +300,7 @@ export const GenerateIgnoreEnum = {
|
|
|
295
300
|
ZAi: "Z.AI",
|
|
296
301
|
FakeProvider: "FakeProvider",
|
|
297
302
|
} as const;
|
|
298
|
-
export type GenerateIgnoreEnum =
|
|
303
|
+
export type GenerateIgnoreEnum = OpenEnum<typeof GenerateIgnoreEnum>;
|
|
299
304
|
|
|
300
305
|
export type GenerateIgnoreUnion = GenerateIgnoreEnum | string;
|
|
301
306
|
|
|
@@ -310,7 +315,7 @@ export const GenerateQuantization = {
|
|
|
310
315
|
Fp32: "fp32",
|
|
311
316
|
Unknown: "unknown",
|
|
312
317
|
} as const;
|
|
313
|
-
export type GenerateQuantization =
|
|
318
|
+
export type GenerateQuantization = OpenEnum<typeof GenerateQuantization>;
|
|
314
319
|
|
|
315
320
|
/**
|
|
316
321
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
@@ -323,7 +328,7 @@ export const GenerateSort = {
|
|
|
323
328
|
/**
|
|
324
329
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
325
330
|
*/
|
|
326
|
-
export type GenerateSort =
|
|
331
|
+
export type GenerateSort = OpenEnum<typeof GenerateSort>;
|
|
327
332
|
|
|
328
333
|
export type GeneratePrompt = number | string | any;
|
|
329
334
|
|
|
@@ -509,14 +514,25 @@ export function inputFromJSON(
|
|
|
509
514
|
}
|
|
510
515
|
|
|
511
516
|
/** @internal */
|
|
512
|
-
export const GenerateDataCollection$inboundSchema: z.
|
|
513
|
-
|
|
514
|
-
|
|
517
|
+
export const GenerateDataCollection$inboundSchema: z.ZodType<
|
|
518
|
+
GenerateDataCollection,
|
|
519
|
+
z.ZodTypeDef,
|
|
520
|
+
unknown
|
|
521
|
+
> = z
|
|
522
|
+
.union([
|
|
523
|
+
z.nativeEnum(GenerateDataCollection),
|
|
524
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
525
|
+
]);
|
|
515
526
|
|
|
516
527
|
/** @internal */
|
|
517
|
-
export const GenerateDataCollection$outboundSchema: z.
|
|
518
|
-
|
|
519
|
-
|
|
528
|
+
export const GenerateDataCollection$outboundSchema: z.ZodType<
|
|
529
|
+
GenerateDataCollection,
|
|
530
|
+
z.ZodTypeDef,
|
|
531
|
+
GenerateDataCollection
|
|
532
|
+
> = z.union([
|
|
533
|
+
z.nativeEnum(GenerateDataCollection),
|
|
534
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
535
|
+
]);
|
|
520
536
|
|
|
521
537
|
/**
|
|
522
538
|
* @internal
|
|
@@ -530,14 +546,25 @@ export namespace GenerateDataCollection$ {
|
|
|
530
546
|
}
|
|
531
547
|
|
|
532
548
|
/** @internal */
|
|
533
|
-
export const GenerateOrderEnum$inboundSchema: z.
|
|
534
|
-
|
|
535
|
-
|
|
549
|
+
export const GenerateOrderEnum$inboundSchema: z.ZodType<
|
|
550
|
+
GenerateOrderEnum,
|
|
551
|
+
z.ZodTypeDef,
|
|
552
|
+
unknown
|
|
553
|
+
> = z
|
|
554
|
+
.union([
|
|
555
|
+
z.nativeEnum(GenerateOrderEnum),
|
|
556
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
557
|
+
]);
|
|
536
558
|
|
|
537
559
|
/** @internal */
|
|
538
|
-
export const GenerateOrderEnum$outboundSchema: z.
|
|
539
|
-
|
|
540
|
-
|
|
560
|
+
export const GenerateOrderEnum$outboundSchema: z.ZodType<
|
|
561
|
+
GenerateOrderEnum,
|
|
562
|
+
z.ZodTypeDef,
|
|
563
|
+
GenerateOrderEnum
|
|
564
|
+
> = z.union([
|
|
565
|
+
z.nativeEnum(GenerateOrderEnum),
|
|
566
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
567
|
+
]);
|
|
541
568
|
|
|
542
569
|
/**
|
|
543
570
|
* @internal
|
|
@@ -599,14 +626,25 @@ export function generateOrderUnionFromJSON(
|
|
|
599
626
|
}
|
|
600
627
|
|
|
601
628
|
/** @internal */
|
|
602
|
-
export const GenerateOnlyEnum$inboundSchema: z.
|
|
603
|
-
|
|
604
|
-
|
|
629
|
+
export const GenerateOnlyEnum$inboundSchema: z.ZodType<
|
|
630
|
+
GenerateOnlyEnum,
|
|
631
|
+
z.ZodTypeDef,
|
|
632
|
+
unknown
|
|
633
|
+
> = z
|
|
634
|
+
.union([
|
|
635
|
+
z.nativeEnum(GenerateOnlyEnum),
|
|
636
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
637
|
+
]);
|
|
605
638
|
|
|
606
639
|
/** @internal */
|
|
607
|
-
export const GenerateOnlyEnum$outboundSchema: z.
|
|
608
|
-
|
|
609
|
-
|
|
640
|
+
export const GenerateOnlyEnum$outboundSchema: z.ZodType<
|
|
641
|
+
GenerateOnlyEnum,
|
|
642
|
+
z.ZodTypeDef,
|
|
643
|
+
GenerateOnlyEnum
|
|
644
|
+
> = z.union([
|
|
645
|
+
z.nativeEnum(GenerateOnlyEnum),
|
|
646
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
647
|
+
]);
|
|
610
648
|
|
|
611
649
|
/**
|
|
612
650
|
* @internal
|
|
@@ -668,14 +706,25 @@ export function generateOnlyUnionFromJSON(
|
|
|
668
706
|
}
|
|
669
707
|
|
|
670
708
|
/** @internal */
|
|
671
|
-
export const GenerateIgnoreEnum$inboundSchema: z.
|
|
672
|
-
|
|
673
|
-
|
|
709
|
+
export const GenerateIgnoreEnum$inboundSchema: z.ZodType<
|
|
710
|
+
GenerateIgnoreEnum,
|
|
711
|
+
z.ZodTypeDef,
|
|
712
|
+
unknown
|
|
713
|
+
> = z
|
|
714
|
+
.union([
|
|
715
|
+
z.nativeEnum(GenerateIgnoreEnum),
|
|
716
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
717
|
+
]);
|
|
674
718
|
|
|
675
719
|
/** @internal */
|
|
676
|
-
export const GenerateIgnoreEnum$outboundSchema: z.
|
|
677
|
-
|
|
678
|
-
|
|
720
|
+
export const GenerateIgnoreEnum$outboundSchema: z.ZodType<
|
|
721
|
+
GenerateIgnoreEnum,
|
|
722
|
+
z.ZodTypeDef,
|
|
723
|
+
GenerateIgnoreEnum
|
|
724
|
+
> = z.union([
|
|
725
|
+
z.nativeEnum(GenerateIgnoreEnum),
|
|
726
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
727
|
+
]);
|
|
679
728
|
|
|
680
729
|
/**
|
|
681
730
|
* @internal
|
|
@@ -737,14 +786,25 @@ export function generateIgnoreUnionFromJSON(
|
|
|
737
786
|
}
|
|
738
787
|
|
|
739
788
|
/** @internal */
|
|
740
|
-
export const GenerateQuantization$inboundSchema: z.
|
|
741
|
-
|
|
742
|
-
|
|
789
|
+
export const GenerateQuantization$inboundSchema: z.ZodType<
|
|
790
|
+
GenerateQuantization,
|
|
791
|
+
z.ZodTypeDef,
|
|
792
|
+
unknown
|
|
793
|
+
> = z
|
|
794
|
+
.union([
|
|
795
|
+
z.nativeEnum(GenerateQuantization),
|
|
796
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
797
|
+
]);
|
|
743
798
|
|
|
744
799
|
/** @internal */
|
|
745
|
-
export const GenerateQuantization$outboundSchema: z.
|
|
746
|
-
|
|
747
|
-
|
|
800
|
+
export const GenerateQuantization$outboundSchema: z.ZodType<
|
|
801
|
+
GenerateQuantization,
|
|
802
|
+
z.ZodTypeDef,
|
|
803
|
+
GenerateQuantization
|
|
804
|
+
> = z.union([
|
|
805
|
+
z.nativeEnum(GenerateQuantization),
|
|
806
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
807
|
+
]);
|
|
748
808
|
|
|
749
809
|
/**
|
|
750
810
|
* @internal
|
|
@@ -758,12 +818,25 @@ export namespace GenerateQuantization$ {
|
|
|
758
818
|
}
|
|
759
819
|
|
|
760
820
|
/** @internal */
|
|
761
|
-
export const GenerateSort$inboundSchema: z.
|
|
762
|
-
|
|
821
|
+
export const GenerateSort$inboundSchema: z.ZodType<
|
|
822
|
+
GenerateSort,
|
|
823
|
+
z.ZodTypeDef,
|
|
824
|
+
unknown
|
|
825
|
+
> = z
|
|
826
|
+
.union([
|
|
827
|
+
z.nativeEnum(GenerateSort),
|
|
828
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
829
|
+
]);
|
|
763
830
|
|
|
764
831
|
/** @internal */
|
|
765
|
-
export const GenerateSort$outboundSchema: z.
|
|
766
|
-
GenerateSort
|
|
832
|
+
export const GenerateSort$outboundSchema: z.ZodType<
|
|
833
|
+
GenerateSort,
|
|
834
|
+
z.ZodTypeDef,
|
|
835
|
+
GenerateSort
|
|
836
|
+
> = z.union([
|
|
837
|
+
z.nativeEnum(GenerateSort),
|
|
838
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
839
|
+
]);
|
|
767
840
|
|
|
768
841
|
/**
|
|
769
842
|
* @internal
|