@openrouter/sdk 0.0.0-beta.38 → 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.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/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/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 +6 -14
- package/dist/commonjs/models/operations/create.d.ts.map +1 -1
- package/dist/commonjs/models/operations/create.js +10 -2
- 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/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/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 +6 -14
- package/dist/commonjs/models/operations/update.d.ts.map +1 -1
- package/dist/commonjs/models/operations/update.js +10 -2
- 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 +6 -16
- package/dist/commonjs/models/responsesoutputitemreasoning.d.ts.map +1 -1
- package/dist/commonjs/models/responsesoutputitemreasoning.js +10 -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/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/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/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/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 +6 -14
- package/dist/esm/models/operations/create.d.ts.map +1 -1
- package/dist/esm/models/operations/create.js +10 -2
- 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/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/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 +6 -14
- package/dist/esm/models/operations/update.d.ts.map +1 -1
- package/dist/esm/models/operations/update.js +10 -2
- 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 +6 -16
- package/dist/esm/models/responsesoutputitemreasoning.d.ts.map +1 -1
- package/dist/esm/models/responsesoutputitemreasoning.js +10 -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/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/jsr.json +1 -1
- package/package.json +3 -2
- package/src/funcs/betaResponsesSend.ts +1 -1
- 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/endpointslist.ts +77 -25
- package/src/models/errorresponse.ts +23 -8
- package/src/models/modelslist.ts +95 -32
- package/src/models/operations/addcoinbasecharge.ts +17 -6
- package/src/models/operations/create.ts +23 -8
- 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/getmetadata.ts +17 -6
- package/src/models/operations/getparameters.ts +41 -15
- package/src/models/operations/list.ts +77 -25
- package/src/models/operations/previewzdr.ts +70 -25
- package/src/models/operations/sendresponsesrequest.ts +179 -63
- package/src/models/operations/update.ts +23 -8
- 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 +24 -8
- package/src/models/responsesstreamchunkunion.ts +114 -43
- package/src/models/responseswebsearchcalloutput.ts +24 -8
- package/src/models/responsetextverbosity.ts +23 -8
- package/src/sdk/oauth.ts +60 -0
|
@@ -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
|
|
|
@@ -130,7 +134,7 @@ export const ProviderName = {
|
|
|
130
134
|
ZAi: "Z.AI",
|
|
131
135
|
FakeProvider: "FakeProvider",
|
|
132
136
|
} as const;
|
|
133
|
-
export type ProviderName =
|
|
137
|
+
export type ProviderName = OpenEnum<typeof ProviderName>;
|
|
134
138
|
|
|
135
139
|
export const Quantization = {
|
|
136
140
|
Int4: "int4",
|
|
@@ -143,7 +147,7 @@ export const Quantization = {
|
|
|
143
147
|
Fp32: "fp32",
|
|
144
148
|
Unknown: "unknown",
|
|
145
149
|
} as const;
|
|
146
|
-
export type Quantization =
|
|
150
|
+
export type Quantization = OpenEnum<typeof Quantization>;
|
|
147
151
|
|
|
148
152
|
export const EndpointsListSupportedParameter = {
|
|
149
153
|
Temperature: "temperature",
|
|
@@ -170,7 +174,7 @@ export const EndpointsListSupportedParameter = {
|
|
|
170
174
|
WebSearchOptions: "web_search_options",
|
|
171
175
|
Verbosity: "verbosity",
|
|
172
176
|
} as const;
|
|
173
|
-
export type EndpointsListSupportedParameter =
|
|
177
|
+
export type EndpointsListSupportedParameter = OpenEnum<
|
|
174
178
|
typeof EndpointsListSupportedParameter
|
|
175
179
|
>;
|
|
176
180
|
|
|
@@ -182,7 +186,7 @@ export const EndpointsListStatus = {
|
|
|
182
186
|
Minus5: -5,
|
|
183
187
|
Minus10: -10,
|
|
184
188
|
} as const;
|
|
185
|
-
export type EndpointsListStatus =
|
|
189
|
+
export type EndpointsListStatus = OpenEnum<typeof EndpointsListStatus>;
|
|
186
190
|
|
|
187
191
|
export type EndpointsList = {
|
|
188
192
|
name: string;
|
|
@@ -842,12 +846,25 @@ export function endpointsListPricingFromJSON(
|
|
|
842
846
|
}
|
|
843
847
|
|
|
844
848
|
/** @internal */
|
|
845
|
-
export const ProviderName$inboundSchema: z.
|
|
846
|
-
|
|
849
|
+
export const ProviderName$inboundSchema: z.ZodType<
|
|
850
|
+
ProviderName,
|
|
851
|
+
z.ZodTypeDef,
|
|
852
|
+
unknown
|
|
853
|
+
> = z
|
|
854
|
+
.union([
|
|
855
|
+
z.nativeEnum(ProviderName),
|
|
856
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
857
|
+
]);
|
|
847
858
|
|
|
848
859
|
/** @internal */
|
|
849
|
-
export const ProviderName$outboundSchema: z.
|
|
850
|
-
ProviderName
|
|
860
|
+
export const ProviderName$outboundSchema: z.ZodType<
|
|
861
|
+
ProviderName,
|
|
862
|
+
z.ZodTypeDef,
|
|
863
|
+
ProviderName
|
|
864
|
+
> = z.union([
|
|
865
|
+
z.nativeEnum(ProviderName),
|
|
866
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
867
|
+
]);
|
|
851
868
|
|
|
852
869
|
/**
|
|
853
870
|
* @internal
|
|
@@ -861,12 +878,25 @@ export namespace ProviderName$ {
|
|
|
861
878
|
}
|
|
862
879
|
|
|
863
880
|
/** @internal */
|
|
864
|
-
export const Quantization$inboundSchema: z.
|
|
865
|
-
|
|
881
|
+
export const Quantization$inboundSchema: z.ZodType<
|
|
882
|
+
Quantization,
|
|
883
|
+
z.ZodTypeDef,
|
|
884
|
+
unknown
|
|
885
|
+
> = z
|
|
886
|
+
.union([
|
|
887
|
+
z.nativeEnum(Quantization),
|
|
888
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
889
|
+
]);
|
|
866
890
|
|
|
867
891
|
/** @internal */
|
|
868
|
-
export const Quantization$outboundSchema: z.
|
|
869
|
-
Quantization
|
|
892
|
+
export const Quantization$outboundSchema: z.ZodType<
|
|
893
|
+
Quantization,
|
|
894
|
+
z.ZodTypeDef,
|
|
895
|
+
Quantization
|
|
896
|
+
> = z.union([
|
|
897
|
+
z.nativeEnum(Quantization),
|
|
898
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
899
|
+
]);
|
|
870
900
|
|
|
871
901
|
/**
|
|
872
902
|
* @internal
|
|
@@ -880,14 +910,25 @@ export namespace Quantization$ {
|
|
|
880
910
|
}
|
|
881
911
|
|
|
882
912
|
/** @internal */
|
|
883
|
-
export const EndpointsListSupportedParameter$inboundSchema: z.
|
|
884
|
-
|
|
885
|
-
|
|
913
|
+
export const EndpointsListSupportedParameter$inboundSchema: z.ZodType<
|
|
914
|
+
EndpointsListSupportedParameter,
|
|
915
|
+
z.ZodTypeDef,
|
|
916
|
+
unknown
|
|
917
|
+
> = z
|
|
918
|
+
.union([
|
|
919
|
+
z.nativeEnum(EndpointsListSupportedParameter),
|
|
920
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
921
|
+
]);
|
|
886
922
|
|
|
887
923
|
/** @internal */
|
|
888
|
-
export const EndpointsListSupportedParameter$outboundSchema: z.
|
|
889
|
-
|
|
890
|
-
|
|
924
|
+
export const EndpointsListSupportedParameter$outboundSchema: z.ZodType<
|
|
925
|
+
EndpointsListSupportedParameter,
|
|
926
|
+
z.ZodTypeDef,
|
|
927
|
+
EndpointsListSupportedParameter
|
|
928
|
+
> = z.union([
|
|
929
|
+
z.nativeEnum(EndpointsListSupportedParameter),
|
|
930
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
931
|
+
]);
|
|
891
932
|
|
|
892
933
|
/**
|
|
893
934
|
* @internal
|
|
@@ -901,14 +942,25 @@ export namespace EndpointsListSupportedParameter$ {
|
|
|
901
942
|
}
|
|
902
943
|
|
|
903
944
|
/** @internal */
|
|
904
|
-
export const EndpointsListStatus$inboundSchema: z.
|
|
905
|
-
|
|
906
|
-
|
|
945
|
+
export const EndpointsListStatus$inboundSchema: z.ZodType<
|
|
946
|
+
EndpointsListStatus,
|
|
947
|
+
z.ZodTypeDef,
|
|
948
|
+
unknown
|
|
949
|
+
> = z
|
|
950
|
+
.union([
|
|
951
|
+
z.nativeEnum(EndpointsListStatus),
|
|
952
|
+
z.number().transform(catchUnrecognizedEnum),
|
|
953
|
+
]);
|
|
907
954
|
|
|
908
955
|
/** @internal */
|
|
909
|
-
export const EndpointsListStatus$outboundSchema: z.
|
|
910
|
-
|
|
911
|
-
|
|
956
|
+
export const EndpointsListStatus$outboundSchema: z.ZodType<
|
|
957
|
+
EndpointsListStatus,
|
|
958
|
+
z.ZodTypeDef,
|
|
959
|
+
EndpointsListStatus
|
|
960
|
+
> = z.union([
|
|
961
|
+
z.nativeEnum(EndpointsListStatus),
|
|
962
|
+
z.number().and(z.custom<Unrecognized<number>>()),
|
|
963
|
+
]);
|
|
912
964
|
|
|
913
965
|
/**
|
|
914
966
|
* @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
|
|
|
@@ -80,7 +84,7 @@ export const ErrorResponseCode = {
|
|
|
80
84
|
FiveHundredAndTwentyNine: 529,
|
|
81
85
|
FiveHundredAndThirty: 530,
|
|
82
86
|
} as const;
|
|
83
|
-
export type ErrorResponseCode =
|
|
87
|
+
export type ErrorResponseCode = OpenEnum<typeof ErrorResponseCode>;
|
|
84
88
|
|
|
85
89
|
export type ErrorResponseError = {
|
|
86
90
|
code: ErrorResponseCode;
|
|
@@ -89,14 +93,25 @@ export type ErrorResponseError = {
|
|
|
89
93
|
};
|
|
90
94
|
|
|
91
95
|
/** @internal */
|
|
92
|
-
export const ErrorResponseCode$inboundSchema: z.
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
export const ErrorResponseCode$inboundSchema: z.ZodType<
|
|
97
|
+
ErrorResponseCode,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z
|
|
101
|
+
.union([
|
|
102
|
+
z.nativeEnum(ErrorResponseCode),
|
|
103
|
+
z.number().transform(catchUnrecognizedEnum),
|
|
104
|
+
]);
|
|
95
105
|
|
|
96
106
|
/** @internal */
|
|
97
|
-
export const ErrorResponseCode$outboundSchema: z.
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
export const ErrorResponseCode$outboundSchema: z.ZodType<
|
|
108
|
+
ErrorResponseCode,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
ErrorResponseCode
|
|
111
|
+
> = z.union([
|
|
112
|
+
z.nativeEnum(ErrorResponseCode),
|
|
113
|
+
z.number().and(z.custom<Unrecognized<number>>()),
|
|
114
|
+
]);
|
|
100
115
|
|
|
101
116
|
/**
|
|
102
117
|
* @internal
|
package/src/models/modelslist.ts
CHANGED
|
@@ -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
|
|
|
@@ -76,7 +80,7 @@ export const Tokenizer = {
|
|
|
76
80
|
/**
|
|
77
81
|
* Tokenizer type used by the model
|
|
78
82
|
*/
|
|
79
|
-
export type Tokenizer =
|
|
83
|
+
export type Tokenizer = OpenEnum<typeof Tokenizer>;
|
|
80
84
|
|
|
81
85
|
/**
|
|
82
86
|
* Instruction format type
|
|
@@ -108,7 +112,7 @@ export const InstructType = {
|
|
|
108
112
|
/**
|
|
109
113
|
* Instruction format type
|
|
110
114
|
*/
|
|
111
|
-
export type InstructType =
|
|
115
|
+
export type InstructType = OpenEnum<typeof InstructType>;
|
|
112
116
|
|
|
113
117
|
export const InputModality = {
|
|
114
118
|
Text: "text",
|
|
@@ -116,14 +120,14 @@ export const InputModality = {
|
|
|
116
120
|
File: "file",
|
|
117
121
|
Audio: "audio",
|
|
118
122
|
} as const;
|
|
119
|
-
export type InputModality =
|
|
123
|
+
export type InputModality = OpenEnum<typeof InputModality>;
|
|
120
124
|
|
|
121
125
|
export const OutputModality = {
|
|
122
126
|
Text: "text",
|
|
123
127
|
Image: "image",
|
|
124
128
|
Embeddings: "embeddings",
|
|
125
129
|
} as const;
|
|
126
|
-
export type OutputModality =
|
|
130
|
+
export type OutputModality = OpenEnum<typeof OutputModality>;
|
|
127
131
|
|
|
128
132
|
/**
|
|
129
133
|
* Model architecture information
|
|
@@ -208,7 +212,7 @@ export const ModelsListSupportedParameter = {
|
|
|
208
212
|
WebSearchOptions: "web_search_options",
|
|
209
213
|
Verbosity: "verbosity",
|
|
210
214
|
} as const;
|
|
211
|
-
export type ModelsListSupportedParameter =
|
|
215
|
+
export type ModelsListSupportedParameter = OpenEnum<
|
|
212
216
|
typeof ModelsListSupportedParameter
|
|
213
217
|
>;
|
|
214
218
|
|
|
@@ -908,12 +912,25 @@ export function modelsListPricingFromJSON(
|
|
|
908
912
|
}
|
|
909
913
|
|
|
910
914
|
/** @internal */
|
|
911
|
-
export const Tokenizer$inboundSchema: z.
|
|
912
|
-
|
|
915
|
+
export const Tokenizer$inboundSchema: z.ZodType<
|
|
916
|
+
Tokenizer,
|
|
917
|
+
z.ZodTypeDef,
|
|
918
|
+
unknown
|
|
919
|
+
> = z
|
|
920
|
+
.union([
|
|
921
|
+
z.nativeEnum(Tokenizer),
|
|
922
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
923
|
+
]);
|
|
913
924
|
|
|
914
925
|
/** @internal */
|
|
915
|
-
export const Tokenizer$outboundSchema: z.
|
|
916
|
-
Tokenizer
|
|
926
|
+
export const Tokenizer$outboundSchema: z.ZodType<
|
|
927
|
+
Tokenizer,
|
|
928
|
+
z.ZodTypeDef,
|
|
929
|
+
Tokenizer
|
|
930
|
+
> = z.union([
|
|
931
|
+
z.nativeEnum(Tokenizer),
|
|
932
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
933
|
+
]);
|
|
917
934
|
|
|
918
935
|
/**
|
|
919
936
|
* @internal
|
|
@@ -927,12 +944,25 @@ export namespace Tokenizer$ {
|
|
|
927
944
|
}
|
|
928
945
|
|
|
929
946
|
/** @internal */
|
|
930
|
-
export const InstructType$inboundSchema: z.
|
|
931
|
-
|
|
947
|
+
export const InstructType$inboundSchema: z.ZodType<
|
|
948
|
+
InstructType,
|
|
949
|
+
z.ZodTypeDef,
|
|
950
|
+
unknown
|
|
951
|
+
> = z
|
|
952
|
+
.union([
|
|
953
|
+
z.nativeEnum(InstructType),
|
|
954
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
955
|
+
]);
|
|
932
956
|
|
|
933
957
|
/** @internal */
|
|
934
|
-
export const InstructType$outboundSchema: z.
|
|
935
|
-
InstructType
|
|
958
|
+
export const InstructType$outboundSchema: z.ZodType<
|
|
959
|
+
InstructType,
|
|
960
|
+
z.ZodTypeDef,
|
|
961
|
+
InstructType
|
|
962
|
+
> = z.union([
|
|
963
|
+
z.nativeEnum(InstructType),
|
|
964
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
965
|
+
]);
|
|
936
966
|
|
|
937
967
|
/**
|
|
938
968
|
* @internal
|
|
@@ -946,14 +976,25 @@ export namespace InstructType$ {
|
|
|
946
976
|
}
|
|
947
977
|
|
|
948
978
|
/** @internal */
|
|
949
|
-
export const InputModality$inboundSchema: z.
|
|
950
|
-
|
|
951
|
-
|
|
979
|
+
export const InputModality$inboundSchema: z.ZodType<
|
|
980
|
+
InputModality,
|
|
981
|
+
z.ZodTypeDef,
|
|
982
|
+
unknown
|
|
983
|
+
> = z
|
|
984
|
+
.union([
|
|
985
|
+
z.nativeEnum(InputModality),
|
|
986
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
987
|
+
]);
|
|
952
988
|
|
|
953
989
|
/** @internal */
|
|
954
|
-
export const InputModality$outboundSchema: z.
|
|
955
|
-
|
|
956
|
-
|
|
990
|
+
export const InputModality$outboundSchema: z.ZodType<
|
|
991
|
+
InputModality,
|
|
992
|
+
z.ZodTypeDef,
|
|
993
|
+
InputModality
|
|
994
|
+
> = z.union([
|
|
995
|
+
z.nativeEnum(InputModality),
|
|
996
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
997
|
+
]);
|
|
957
998
|
|
|
958
999
|
/**
|
|
959
1000
|
* @internal
|
|
@@ -967,14 +1008,25 @@ export namespace InputModality$ {
|
|
|
967
1008
|
}
|
|
968
1009
|
|
|
969
1010
|
/** @internal */
|
|
970
|
-
export const OutputModality$inboundSchema: z.
|
|
971
|
-
|
|
972
|
-
|
|
1011
|
+
export const OutputModality$inboundSchema: z.ZodType<
|
|
1012
|
+
OutputModality,
|
|
1013
|
+
z.ZodTypeDef,
|
|
1014
|
+
unknown
|
|
1015
|
+
> = z
|
|
1016
|
+
.union([
|
|
1017
|
+
z.nativeEnum(OutputModality),
|
|
1018
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
1019
|
+
]);
|
|
973
1020
|
|
|
974
1021
|
/** @internal */
|
|
975
|
-
export const OutputModality$outboundSchema: z.
|
|
976
|
-
|
|
977
|
-
|
|
1022
|
+
export const OutputModality$outboundSchema: z.ZodType<
|
|
1023
|
+
OutputModality,
|
|
1024
|
+
z.ZodTypeDef,
|
|
1025
|
+
OutputModality
|
|
1026
|
+
> = z.union([
|
|
1027
|
+
z.nativeEnum(OutputModality),
|
|
1028
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
1029
|
+
]);
|
|
978
1030
|
|
|
979
1031
|
/**
|
|
980
1032
|
* @internal
|
|
@@ -1197,14 +1249,25 @@ export function perRequestLimitsFromJSON(
|
|
|
1197
1249
|
}
|
|
1198
1250
|
|
|
1199
1251
|
/** @internal */
|
|
1200
|
-
export const ModelsListSupportedParameter$inboundSchema: z.
|
|
1201
|
-
|
|
1202
|
-
|
|
1252
|
+
export const ModelsListSupportedParameter$inboundSchema: z.ZodType<
|
|
1253
|
+
ModelsListSupportedParameter,
|
|
1254
|
+
z.ZodTypeDef,
|
|
1255
|
+
unknown
|
|
1256
|
+
> = z
|
|
1257
|
+
.union([
|
|
1258
|
+
z.nativeEnum(ModelsListSupportedParameter),
|
|
1259
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
1260
|
+
]);
|
|
1203
1261
|
|
|
1204
1262
|
/** @internal */
|
|
1205
|
-
export const ModelsListSupportedParameter$outboundSchema: z.
|
|
1206
|
-
|
|
1207
|
-
|
|
1263
|
+
export const ModelsListSupportedParameter$outboundSchema: z.ZodType<
|
|
1264
|
+
ModelsListSupportedParameter,
|
|
1265
|
+
z.ZodTypeDef,
|
|
1266
|
+
ModelsListSupportedParameter
|
|
1267
|
+
> = z.union([
|
|
1268
|
+
z.nativeEnum(ModelsListSupportedParameter),
|
|
1269
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
1270
|
+
]);
|
|
1208
1271
|
|
|
1209
1272
|
/**
|
|
1210
1273
|
* @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
|
|
|
@@ -18,7 +22,7 @@ export const ChainId = {
|
|
|
18
22
|
OneHundredAndThirtySeven: 137,
|
|
19
23
|
EightThousandFourHundredAndFiftyThree: 8453,
|
|
20
24
|
} as const;
|
|
21
|
-
export type ChainId =
|
|
25
|
+
export type ChainId = OpenEnum<typeof ChainId>;
|
|
22
26
|
|
|
23
27
|
export type AddCoinbaseChargeRequest = {
|
|
24
28
|
amount: number;
|
|
@@ -123,12 +127,19 @@ export function addCoinbaseChargeSecurityFromJSON(
|
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
/** @internal */
|
|
126
|
-
export const ChainId$inboundSchema: z.
|
|
127
|
-
|
|
130
|
+
export const ChainId$inboundSchema: z.ZodType<ChainId, z.ZodTypeDef, unknown> =
|
|
131
|
+
z
|
|
132
|
+
.union([
|
|
133
|
+
z.nativeEnum(ChainId),
|
|
134
|
+
z.number().transform(catchUnrecognizedEnum),
|
|
135
|
+
]);
|
|
128
136
|
|
|
129
137
|
/** @internal */
|
|
130
|
-
export const ChainId$outboundSchema: z.
|
|
131
|
-
|
|
138
|
+
export const ChainId$outboundSchema: z.ZodType<ChainId, z.ZodTypeDef, ChainId> =
|
|
139
|
+
z.union([
|
|
140
|
+
z.nativeEnum(ChainId),
|
|
141
|
+
z.number().and(z.custom<Unrecognized<number>>()),
|
|
142
|
+
]);
|
|
132
143
|
|
|
133
144
|
/**
|
|
134
145
|
* @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 * as models from "../index.js";
|
|
@@ -21,7 +25,7 @@ export const CreateLimitReset = {
|
|
|
21
25
|
/**
|
|
22
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.
|
|
23
27
|
*/
|
|
24
|
-
export type CreateLimitReset =
|
|
28
|
+
export type CreateLimitReset = OpenEnum<typeof CreateLimitReset>;
|
|
25
29
|
|
|
26
30
|
export type CreateRequest = {
|
|
27
31
|
/**
|
|
@@ -57,14 +61,25 @@ export type CreateResponse = {
|
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
/** @internal */
|
|
60
|
-
export const CreateLimitReset$inboundSchema: z.
|
|
61
|
-
|
|
62
|
-
|
|
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
|
+
]);
|
|
63
73
|
|
|
64
74
|
/** @internal */
|
|
65
|
-
export const CreateLimitReset$outboundSchema: z.
|
|
66
|
-
|
|
67
|
-
|
|
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
|
+
]);
|
|
68
83
|
|
|
69
84
|
/**
|
|
70
85
|
* @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 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
|