@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,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
|
|
@@ -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
|
|
|
@@ -23,7 +27,7 @@ export const ApiType = {
|
|
|
23
27
|
/**
|
|
24
28
|
* Type of API used for the generation
|
|
25
29
|
*/
|
|
26
|
-
export type ApiType =
|
|
30
|
+
export type ApiType = OpenEnum<typeof ApiType>;
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
33
|
* Generation data
|
|
@@ -220,12 +224,19 @@ export function getMetadataRequestFromJSON(
|
|
|
220
224
|
}
|
|
221
225
|
|
|
222
226
|
/** @internal */
|
|
223
|
-
export const ApiType$inboundSchema: z.
|
|
224
|
-
|
|
227
|
+
export const ApiType$inboundSchema: z.ZodType<ApiType, z.ZodTypeDef, unknown> =
|
|
228
|
+
z
|
|
229
|
+
.union([
|
|
230
|
+
z.nativeEnum(ApiType),
|
|
231
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
232
|
+
]);
|
|
225
233
|
|
|
226
234
|
/** @internal */
|
|
227
|
-
export const ApiType$outboundSchema: z.
|
|
228
|
-
|
|
235
|
+
export const ApiType$outboundSchema: z.ZodType<ApiType, z.ZodTypeDef, ApiType> =
|
|
236
|
+
z.union([
|
|
237
|
+
z.nativeEnum(ApiType),
|
|
238
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
239
|
+
]);
|
|
229
240
|
|
|
230
241
|
/**
|
|
231
242
|
* @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
|
|
|
@@ -79,7 +83,7 @@ export const GetParametersProvider = {
|
|
|
79
83
|
ZAi: "Z.AI",
|
|
80
84
|
FakeProvider: "FakeProvider",
|
|
81
85
|
} as const;
|
|
82
|
-
export type GetParametersProvider =
|
|
86
|
+
export type GetParametersProvider = OpenEnum<typeof GetParametersProvider>;
|
|
83
87
|
|
|
84
88
|
export type GetParametersRequest = {
|
|
85
89
|
author: string;
|
|
@@ -112,7 +116,7 @@ export const GetParametersSupportedParameter = {
|
|
|
112
116
|
WebSearchOptions: "web_search_options",
|
|
113
117
|
Verbosity: "verbosity",
|
|
114
118
|
} as const;
|
|
115
|
-
export type GetParametersSupportedParameter =
|
|
119
|
+
export type GetParametersSupportedParameter = OpenEnum<
|
|
116
120
|
typeof GetParametersSupportedParameter
|
|
117
121
|
>;
|
|
118
122
|
|
|
@@ -195,14 +199,25 @@ export function getParametersSecurityFromJSON(
|
|
|
195
199
|
}
|
|
196
200
|
|
|
197
201
|
/** @internal */
|
|
198
|
-
export const GetParametersProvider$inboundSchema: z.
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
export const GetParametersProvider$inboundSchema: z.ZodType<
|
|
203
|
+
GetParametersProvider,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
unknown
|
|
206
|
+
> = z
|
|
207
|
+
.union([
|
|
208
|
+
z.nativeEnum(GetParametersProvider),
|
|
209
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
210
|
+
]);
|
|
201
211
|
|
|
202
212
|
/** @internal */
|
|
203
|
-
export const GetParametersProvider$outboundSchema: z.
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
export const GetParametersProvider$outboundSchema: z.ZodType<
|
|
214
|
+
GetParametersProvider,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
GetParametersProvider
|
|
217
|
+
> = z.union([
|
|
218
|
+
z.nativeEnum(GetParametersProvider),
|
|
219
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
220
|
+
]);
|
|
206
221
|
|
|
207
222
|
/**
|
|
208
223
|
* @internal
|
|
@@ -276,14 +291,25 @@ export function getParametersRequestFromJSON(
|
|
|
276
291
|
}
|
|
277
292
|
|
|
278
293
|
/** @internal */
|
|
279
|
-
export const GetParametersSupportedParameter$inboundSchema: z.
|
|
280
|
-
|
|
281
|
-
|
|
294
|
+
export const GetParametersSupportedParameter$inboundSchema: z.ZodType<
|
|
295
|
+
GetParametersSupportedParameter,
|
|
296
|
+
z.ZodTypeDef,
|
|
297
|
+
unknown
|
|
298
|
+
> = z
|
|
299
|
+
.union([
|
|
300
|
+
z.nativeEnum(GetParametersSupportedParameter),
|
|
301
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
302
|
+
]);
|
|
282
303
|
|
|
283
304
|
/** @internal */
|
|
284
|
-
export const GetParametersSupportedParameter$outboundSchema: z.
|
|
285
|
-
|
|
286
|
-
|
|
305
|
+
export const GetParametersSupportedParameter$outboundSchema: z.ZodType<
|
|
306
|
+
GetParametersSupportedParameter,
|
|
307
|
+
z.ZodTypeDef,
|
|
308
|
+
GetParametersSupportedParameter
|
|
309
|
+
> = z.union([
|
|
310
|
+
z.nativeEnum(GetParametersSupportedParameter),
|
|
311
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
312
|
+
]);
|
|
287
313
|
|
|
288
314
|
/**
|
|
289
315
|
* @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";
|
|
@@ -42,7 +46,7 @@ export const Tokenizer = {
|
|
|
42
46
|
/**
|
|
43
47
|
* Tokenizer type used by the model
|
|
44
48
|
*/
|
|
45
|
-
export type Tokenizer =
|
|
49
|
+
export type Tokenizer = OpenEnum<typeof Tokenizer>;
|
|
46
50
|
|
|
47
51
|
/**
|
|
48
52
|
* Instruction format type
|
|
@@ -74,7 +78,7 @@ export const InstructType = {
|
|
|
74
78
|
/**
|
|
75
79
|
* Instruction format type
|
|
76
80
|
*/
|
|
77
|
-
export type InstructType =
|
|
81
|
+
export type InstructType = OpenEnum<typeof InstructType>;
|
|
78
82
|
|
|
79
83
|
export const InputModality = {
|
|
80
84
|
Text: "text",
|
|
@@ -82,14 +86,14 @@ export const InputModality = {
|
|
|
82
86
|
File: "file",
|
|
83
87
|
Audio: "audio",
|
|
84
88
|
} as const;
|
|
85
|
-
export type InputModality =
|
|
89
|
+
export type InputModality = OpenEnum<typeof InputModality>;
|
|
86
90
|
|
|
87
91
|
export const OutputModality = {
|
|
88
92
|
Text: "text",
|
|
89
93
|
Image: "image",
|
|
90
94
|
Embeddings: "embeddings",
|
|
91
95
|
} as const;
|
|
92
|
-
export type OutputModality =
|
|
96
|
+
export type OutputModality = OpenEnum<typeof OutputModality>;
|
|
93
97
|
|
|
94
98
|
/**
|
|
95
99
|
* Model architecture information
|
|
@@ -205,12 +209,25 @@ export function listRequestFromJSON(
|
|
|
205
209
|
}
|
|
206
210
|
|
|
207
211
|
/** @internal */
|
|
208
|
-
export const Tokenizer$inboundSchema: z.
|
|
209
|
-
|
|
212
|
+
export const Tokenizer$inboundSchema: z.ZodType<
|
|
213
|
+
Tokenizer,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
unknown
|
|
216
|
+
> = z
|
|
217
|
+
.union([
|
|
218
|
+
z.nativeEnum(Tokenizer),
|
|
219
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
220
|
+
]);
|
|
210
221
|
|
|
211
222
|
/** @internal */
|
|
212
|
-
export const Tokenizer$outboundSchema: z.
|
|
213
|
-
Tokenizer
|
|
223
|
+
export const Tokenizer$outboundSchema: z.ZodType<
|
|
224
|
+
Tokenizer,
|
|
225
|
+
z.ZodTypeDef,
|
|
226
|
+
Tokenizer
|
|
227
|
+
> = z.union([
|
|
228
|
+
z.nativeEnum(Tokenizer),
|
|
229
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
230
|
+
]);
|
|
214
231
|
|
|
215
232
|
/**
|
|
216
233
|
* @internal
|
|
@@ -224,12 +241,25 @@ export namespace Tokenizer$ {
|
|
|
224
241
|
}
|
|
225
242
|
|
|
226
243
|
/** @internal */
|
|
227
|
-
export const InstructType$inboundSchema: z.
|
|
228
|
-
|
|
244
|
+
export const InstructType$inboundSchema: z.ZodType<
|
|
245
|
+
InstructType,
|
|
246
|
+
z.ZodTypeDef,
|
|
247
|
+
unknown
|
|
248
|
+
> = z
|
|
249
|
+
.union([
|
|
250
|
+
z.nativeEnum(InstructType),
|
|
251
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
252
|
+
]);
|
|
229
253
|
|
|
230
254
|
/** @internal */
|
|
231
|
-
export const InstructType$outboundSchema: z.
|
|
232
|
-
InstructType
|
|
255
|
+
export const InstructType$outboundSchema: z.ZodType<
|
|
256
|
+
InstructType,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
InstructType
|
|
259
|
+
> = z.union([
|
|
260
|
+
z.nativeEnum(InstructType),
|
|
261
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
262
|
+
]);
|
|
233
263
|
|
|
234
264
|
/**
|
|
235
265
|
* @internal
|
|
@@ -243,14 +273,25 @@ export namespace InstructType$ {
|
|
|
243
273
|
}
|
|
244
274
|
|
|
245
275
|
/** @internal */
|
|
246
|
-
export const InputModality$inboundSchema: z.
|
|
247
|
-
|
|
248
|
-
|
|
276
|
+
export const InputModality$inboundSchema: z.ZodType<
|
|
277
|
+
InputModality,
|
|
278
|
+
z.ZodTypeDef,
|
|
279
|
+
unknown
|
|
280
|
+
> = z
|
|
281
|
+
.union([
|
|
282
|
+
z.nativeEnum(InputModality),
|
|
283
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
284
|
+
]);
|
|
249
285
|
|
|
250
286
|
/** @internal */
|
|
251
|
-
export const InputModality$outboundSchema: z.
|
|
252
|
-
|
|
253
|
-
|
|
287
|
+
export const InputModality$outboundSchema: z.ZodType<
|
|
288
|
+
InputModality,
|
|
289
|
+
z.ZodTypeDef,
|
|
290
|
+
InputModality
|
|
291
|
+
> = z.union([
|
|
292
|
+
z.nativeEnum(InputModality),
|
|
293
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
294
|
+
]);
|
|
254
295
|
|
|
255
296
|
/**
|
|
256
297
|
* @internal
|
|
@@ -264,14 +305,25 @@ export namespace InputModality$ {
|
|
|
264
305
|
}
|
|
265
306
|
|
|
266
307
|
/** @internal */
|
|
267
|
-
export const OutputModality$inboundSchema: z.
|
|
268
|
-
|
|
269
|
-
|
|
308
|
+
export const OutputModality$inboundSchema: z.ZodType<
|
|
309
|
+
OutputModality,
|
|
310
|
+
z.ZodTypeDef,
|
|
311
|
+
unknown
|
|
312
|
+
> = z
|
|
313
|
+
.union([
|
|
314
|
+
z.nativeEnum(OutputModality),
|
|
315
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
316
|
+
]);
|
|
270
317
|
|
|
271
318
|
/** @internal */
|
|
272
|
-
export const OutputModality$outboundSchema: z.
|
|
273
|
-
|
|
274
|
-
|
|
319
|
+
export const OutputModality$outboundSchema: z.ZodType<
|
|
320
|
+
OutputModality,
|
|
321
|
+
z.ZodTypeDef,
|
|
322
|
+
OutputModality
|
|
323
|
+
> = z.union([
|
|
324
|
+
z.nativeEnum(OutputModality),
|
|
325
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
326
|
+
]);
|
|
275
327
|
|
|
276
328
|
/**
|
|
277
329
|
* @internal
|