@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
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseImageGenerationCallStatus = {
|
|
9
13
|
InProgress: "in_progress",
|
|
@@ -11,19 +15,30 @@ export const ResponseImageGenerationCallStatus = {
|
|
|
11
15
|
Generating: "generating",
|
|
12
16
|
Failed: "failed",
|
|
13
17
|
} as const;
|
|
14
|
-
export type ResponseImageGenerationCallStatus =
|
|
18
|
+
export type ResponseImageGenerationCallStatus = OpenEnum<
|
|
15
19
|
typeof ResponseImageGenerationCallStatus
|
|
16
20
|
>;
|
|
17
21
|
|
|
18
22
|
/** @internal */
|
|
19
|
-
export const ResponseImageGenerationCallStatus$inboundSchema: z.
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
export const ResponseImageGenerationCallStatus$inboundSchema: z.ZodType<
|
|
24
|
+
ResponseImageGenerationCallStatus,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.union([
|
|
29
|
+
z.nativeEnum(ResponseImageGenerationCallStatus),
|
|
30
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
31
|
+
]);
|
|
22
32
|
|
|
23
33
|
/** @internal */
|
|
24
|
-
export const ResponseImageGenerationCallStatus$outboundSchema: z.
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
export const ResponseImageGenerationCallStatus$outboundSchema: z.ZodType<
|
|
35
|
+
ResponseImageGenerationCallStatus,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
ResponseImageGenerationCallStatus
|
|
38
|
+
> = z.union([
|
|
39
|
+
z.nativeEnum(ResponseImageGenerationCallStatus),
|
|
40
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
41
|
+
]);
|
|
27
42
|
|
|
28
43
|
/**
|
|
29
44
|
* @internal
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Includable fields for response
|
|
@@ -18,17 +22,28 @@ export const ResponseIncludable = {
|
|
|
18
22
|
/**
|
|
19
23
|
* Includable fields for response
|
|
20
24
|
*/
|
|
21
|
-
export type ResponseIncludable =
|
|
25
|
+
export type ResponseIncludable = OpenEnum<typeof ResponseIncludable>;
|
|
22
26
|
|
|
23
27
|
/** @internal */
|
|
24
|
-
export const ResponseIncludable$inboundSchema: z.
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
export const ResponseIncludable$inboundSchema: z.ZodType<
|
|
29
|
+
ResponseIncludable,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z
|
|
33
|
+
.union([
|
|
34
|
+
z.nativeEnum(ResponseIncludable),
|
|
35
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
36
|
+
]);
|
|
27
37
|
|
|
28
38
|
/** @internal */
|
|
29
|
-
export const ResponseIncludable$outboundSchema: z.
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
export const ResponseIncludable$outboundSchema: z.ZodType<
|
|
40
|
+
ResponseIncludable,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
ResponseIncludable
|
|
43
|
+
> = z.union([
|
|
44
|
+
z.nativeEnum(ResponseIncludable),
|
|
45
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
46
|
+
]);
|
|
32
47
|
|
|
33
48
|
/**
|
|
34
49
|
* @internal
|
|
@@ -3,26 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseInputImageDetail = {
|
|
9
13
|
Auto: "auto",
|
|
10
14
|
High: "high",
|
|
11
15
|
Low: "low",
|
|
12
16
|
} as const;
|
|
13
|
-
export type ResponseInputImageDetail =
|
|
17
|
+
export type ResponseInputImageDetail = OpenEnum<
|
|
14
18
|
typeof ResponseInputImageDetail
|
|
15
19
|
>;
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
18
|
-
export const ResponseInputImageDetail$inboundSchema: z.
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export const ResponseInputImageDetail$inboundSchema: z.ZodType<
|
|
23
|
+
ResponseInputImageDetail,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z
|
|
27
|
+
.union([
|
|
28
|
+
z.nativeEnum(ResponseInputImageDetail),
|
|
29
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
30
|
+
]);
|
|
21
31
|
|
|
22
32
|
/** @internal */
|
|
23
|
-
export const ResponseInputImageDetail$outboundSchema: z.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export const ResponseInputImageDetail$outboundSchema: z.ZodType<
|
|
34
|
+
ResponseInputImageDetail,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ResponseInputImageDetail
|
|
37
|
+
> = z.union([
|
|
38
|
+
z.nativeEnum(ResponseInputImageDetail),
|
|
39
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
40
|
+
]);
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* @internal
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
catchUnrecognizedEnum,
|
|
10
|
+
OpenEnum,
|
|
11
|
+
Unrecognized,
|
|
12
|
+
} from "../types/enums.js";
|
|
9
13
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
14
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
15
|
import {
|
|
@@ -20,7 +24,7 @@ export const ResponseReasoningConfigEffort = {
|
|
|
20
24
|
Low: "low",
|
|
21
25
|
Minimal: "minimal",
|
|
22
26
|
} as const;
|
|
23
|
-
export type ResponseReasoningConfigEffort =
|
|
27
|
+
export type ResponseReasoningConfigEffort = OpenEnum<
|
|
24
28
|
typeof ResponseReasoningConfigEffort
|
|
25
29
|
>;
|
|
26
30
|
|
|
@@ -35,14 +39,25 @@ export type ResponseReasoningConfig = {
|
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
/** @internal */
|
|
38
|
-
export const ResponseReasoningConfigEffort$inboundSchema: z.
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
export const ResponseReasoningConfigEffort$inboundSchema: z.ZodType<
|
|
43
|
+
ResponseReasoningConfigEffort,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z
|
|
47
|
+
.union([
|
|
48
|
+
z.nativeEnum(ResponseReasoningConfigEffort),
|
|
49
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
50
|
+
]);
|
|
41
51
|
|
|
42
52
|
/** @internal */
|
|
43
|
-
export const ResponseReasoningConfigEffort$outboundSchema: z.
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
export const ResponseReasoningConfigEffort$outboundSchema: z.ZodType<
|
|
54
|
+
ResponseReasoningConfigEffort,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
ResponseReasoningConfigEffort
|
|
57
|
+
> = z.union([
|
|
58
|
+
z.nativeEnum(ResponseReasoningConfigEffort),
|
|
59
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
60
|
+
]);
|
|
46
61
|
|
|
47
62
|
/**
|
|
48
63
|
* @internal
|
|
@@ -3,26 +3,41 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../types/enums.js";
|
|
7
11
|
|
|
8
12
|
export const ResponseReasoningSummaryMode = {
|
|
9
13
|
Auto: "auto",
|
|
10
14
|
Concise: "concise",
|
|
11
15
|
Detailed: "detailed",
|
|
12
16
|
} as const;
|
|
13
|
-
export type ResponseReasoningSummaryMode =
|
|
17
|
+
export type ResponseReasoningSummaryMode = OpenEnum<
|
|
14
18
|
typeof ResponseReasoningSummaryMode
|
|
15
19
|
>;
|
|
16
20
|
|
|
17
21
|
/** @internal */
|
|
18
|
-
export const ResponseReasoningSummaryMode$inboundSchema: z.
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export const ResponseReasoningSummaryMode$inboundSchema: z.ZodType<
|
|
23
|
+
ResponseReasoningSummaryMode,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z
|
|
27
|
+
.union([
|
|
28
|
+
z.nativeEnum(ResponseReasoningSummaryMode),
|
|
29
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
30
|
+
]);
|
|
21
31
|
|
|
22
32
|
/** @internal */
|
|
23
|
-
export const ResponseReasoningSummaryMode$outboundSchema: z.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
export const ResponseReasoningSummaryMode$outboundSchema: z.ZodType<
|
|
34
|
+
ResponseReasoningSummaryMode,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ResponseReasoningSummaryMode
|
|
37
|
+
> = z.union([
|
|
38
|
+
z.nativeEnum(ResponseReasoningSummaryMode),
|
|
39
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
40
|
+
]);
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* @internal
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
catchUnrecognizedEnum,
|
|
9
|
+
OpenEnum,
|
|
10
|
+
Unrecognized,
|
|
11
|
+
} from "../types/enums.js";
|
|
8
12
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
13
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
14
|
|
|
@@ -12,7 +16,7 @@ export const ResponsesIncompleteDetailsReason = {
|
|
|
12
16
|
MaxOutputTokens: "max_output_tokens",
|
|
13
17
|
ContentFilter: "content_filter",
|
|
14
18
|
} as const;
|
|
15
|
-
export type ResponsesIncompleteDetailsReason =
|
|
19
|
+
export type ResponsesIncompleteDetailsReason = OpenEnum<
|
|
16
20
|
typeof ResponsesIncompleteDetailsReason
|
|
17
21
|
>;
|
|
18
22
|
|
|
@@ -24,14 +28,25 @@ export type ResponsesIncompleteDetails = {
|
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
27
|
-
export const ResponsesIncompleteDetailsReason$inboundSchema: z.
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
export const ResponsesIncompleteDetailsReason$inboundSchema: z.ZodType<
|
|
32
|
+
ResponsesIncompleteDetailsReason,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z
|
|
36
|
+
.union([
|
|
37
|
+
z.nativeEnum(ResponsesIncompleteDetailsReason),
|
|
38
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
39
|
+
]);
|
|
30
40
|
|
|
31
41
|
/** @internal */
|
|
32
|
-
export const ResponsesIncompleteDetailsReason$outboundSchema: z.
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
export const ResponsesIncompleteDetailsReason$outboundSchema: z.ZodType<
|
|
43
|
+
ResponsesIncompleteDetailsReason,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
ResponsesIncompleteDetailsReason
|
|
46
|
+
> = z.union([
|
|
47
|
+
z.nativeEnum(ResponsesIncompleteDetailsReason),
|
|
48
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
49
|
+
]);
|
|
35
50
|
|
|
36
51
|
/**
|
|
37
52
|
* @internal
|
|
@@ -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
|
import {
|
|
@@ -76,7 +81,7 @@ export const ResponsesNonStreamingResponseStatus = {
|
|
|
76
81
|
Cancelled: "cancelled",
|
|
77
82
|
Queued: "queued",
|
|
78
83
|
} as const;
|
|
79
|
-
export type ResponsesNonStreamingResponseStatus =
|
|
84
|
+
export type ResponsesNonStreamingResponseStatus = OpenEnum<
|
|
80
85
|
typeof ResponsesNonStreamingResponseStatus
|
|
81
86
|
>;
|
|
82
87
|
|
|
@@ -85,7 +90,7 @@ export const ResponsesNonStreamingResponseCode = {
|
|
|
85
90
|
RateLimitExceeded: "rate_limit_exceeded",
|
|
86
91
|
InvalidPrompt: "invalid_prompt",
|
|
87
92
|
} as const;
|
|
88
|
-
export type ResponsesNonStreamingResponseCode =
|
|
93
|
+
export type ResponsesNonStreamingResponseCode = OpenEnum<
|
|
89
94
|
typeof ResponsesNonStreamingResponseCode
|
|
90
95
|
>;
|
|
91
96
|
|
|
@@ -103,13 +108,13 @@ export const ServiceTier = {
|
|
|
103
108
|
Priority: "priority",
|
|
104
109
|
Scale: "scale",
|
|
105
110
|
} as const;
|
|
106
|
-
export type ServiceTier =
|
|
111
|
+
export type ServiceTier = OpenEnum<typeof ServiceTier>;
|
|
107
112
|
|
|
108
113
|
export const Truncation = {
|
|
109
114
|
Auto: "auto",
|
|
110
115
|
Disabled: "disabled",
|
|
111
116
|
} as const;
|
|
112
|
-
export type Truncation =
|
|
117
|
+
export type Truncation = OpenEnum<typeof Truncation>;
|
|
113
118
|
|
|
114
119
|
/**
|
|
115
120
|
* Non-streaming response from Responses API
|
|
@@ -189,14 +194,25 @@ export namespace ObjectT$ {
|
|
|
189
194
|
}
|
|
190
195
|
|
|
191
196
|
/** @internal */
|
|
192
|
-
export const ResponsesNonStreamingResponseStatus$inboundSchema: z.
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
export const ResponsesNonStreamingResponseStatus$inboundSchema: z.ZodType<
|
|
198
|
+
ResponsesNonStreamingResponseStatus,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
unknown
|
|
201
|
+
> = z
|
|
202
|
+
.union([
|
|
203
|
+
z.nativeEnum(ResponsesNonStreamingResponseStatus),
|
|
204
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
205
|
+
]);
|
|
195
206
|
|
|
196
207
|
/** @internal */
|
|
197
|
-
export const ResponsesNonStreamingResponseStatus$outboundSchema:
|
|
198
|
-
|
|
199
|
-
|
|
208
|
+
export const ResponsesNonStreamingResponseStatus$outboundSchema: z.ZodType<
|
|
209
|
+
ResponsesNonStreamingResponseStatus,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
ResponsesNonStreamingResponseStatus
|
|
212
|
+
> = z.union([
|
|
213
|
+
z.nativeEnum(ResponsesNonStreamingResponseStatus),
|
|
214
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
215
|
+
]);
|
|
200
216
|
|
|
201
217
|
/**
|
|
202
218
|
* @internal
|
|
@@ -212,14 +228,25 @@ export namespace ResponsesNonStreamingResponseStatus$ {
|
|
|
212
228
|
}
|
|
213
229
|
|
|
214
230
|
/** @internal */
|
|
215
|
-
export const ResponsesNonStreamingResponseCode$inboundSchema: z.
|
|
216
|
-
|
|
217
|
-
|
|
231
|
+
export const ResponsesNonStreamingResponseCode$inboundSchema: z.ZodType<
|
|
232
|
+
ResponsesNonStreamingResponseCode,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
unknown
|
|
235
|
+
> = z
|
|
236
|
+
.union([
|
|
237
|
+
z.nativeEnum(ResponsesNonStreamingResponseCode),
|
|
238
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
239
|
+
]);
|
|
218
240
|
|
|
219
241
|
/** @internal */
|
|
220
|
-
export const ResponsesNonStreamingResponseCode$outboundSchema: z.
|
|
221
|
-
|
|
222
|
-
|
|
242
|
+
export const ResponsesNonStreamingResponseCode$outboundSchema: z.ZodType<
|
|
243
|
+
ResponsesNonStreamingResponseCode,
|
|
244
|
+
z.ZodTypeDef,
|
|
245
|
+
ResponsesNonStreamingResponseCode
|
|
246
|
+
> = z.union([
|
|
247
|
+
z.nativeEnum(ResponsesNonStreamingResponseCode),
|
|
248
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
249
|
+
]);
|
|
223
250
|
|
|
224
251
|
/**
|
|
225
252
|
* @internal
|
|
@@ -342,12 +369,25 @@ export function instructionsFromJSON(
|
|
|
342
369
|
}
|
|
343
370
|
|
|
344
371
|
/** @internal */
|
|
345
|
-
export const ServiceTier$inboundSchema: z.
|
|
346
|
-
|
|
372
|
+
export const ServiceTier$inboundSchema: z.ZodType<
|
|
373
|
+
ServiceTier,
|
|
374
|
+
z.ZodTypeDef,
|
|
375
|
+
unknown
|
|
376
|
+
> = z
|
|
377
|
+
.union([
|
|
378
|
+
z.nativeEnum(ServiceTier),
|
|
379
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
380
|
+
]);
|
|
347
381
|
|
|
348
382
|
/** @internal */
|
|
349
|
-
export const ServiceTier$outboundSchema: z.
|
|
350
|
-
ServiceTier
|
|
383
|
+
export const ServiceTier$outboundSchema: z.ZodType<
|
|
384
|
+
ServiceTier,
|
|
385
|
+
z.ZodTypeDef,
|
|
386
|
+
ServiceTier
|
|
387
|
+
> = z.union([
|
|
388
|
+
z.nativeEnum(ServiceTier),
|
|
389
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
390
|
+
]);
|
|
351
391
|
|
|
352
392
|
/**
|
|
353
393
|
* @internal
|
|
@@ -361,12 +401,25 @@ export namespace ServiceTier$ {
|
|
|
361
401
|
}
|
|
362
402
|
|
|
363
403
|
/** @internal */
|
|
364
|
-
export const Truncation$inboundSchema: z.
|
|
365
|
-
|
|
404
|
+
export const Truncation$inboundSchema: z.ZodType<
|
|
405
|
+
Truncation,
|
|
406
|
+
z.ZodTypeDef,
|
|
407
|
+
unknown
|
|
408
|
+
> = z
|
|
409
|
+
.union([
|
|
410
|
+
z.nativeEnum(Truncation),
|
|
411
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
412
|
+
]);
|
|
366
413
|
|
|
367
414
|
/** @internal */
|
|
368
|
-
export const Truncation$outboundSchema: z.
|
|
369
|
-
Truncation
|
|
415
|
+
export const Truncation$outboundSchema: z.ZodType<
|
|
416
|
+
Truncation,
|
|
417
|
+
z.ZodTypeDef,
|
|
418
|
+
Truncation
|
|
419
|
+
> = z.union([
|
|
420
|
+
z.nativeEnum(Truncation),
|
|
421
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
422
|
+
]);
|
|
370
423
|
|
|
371
424
|
/**
|
|
372
425
|
* @internal
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
catchUnrecognizedEnum,
|
|
9
|
+
ClosedEnum,
|
|
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";
|
|
10
15
|
|
|
@@ -21,7 +26,7 @@ export const ResponsesOutputItemFileSearchCallStatus = {
|
|
|
21
26
|
InProgress: "in_progress",
|
|
22
27
|
Failed: "failed",
|
|
23
28
|
} as const;
|
|
24
|
-
export type ResponsesOutputItemFileSearchCallStatus =
|
|
29
|
+
export type ResponsesOutputItemFileSearchCallStatus = OpenEnum<
|
|
25
30
|
typeof ResponsesOutputItemFileSearchCallStatus
|
|
26
31
|
>;
|
|
27
32
|
|
|
@@ -60,14 +65,25 @@ export namespace ResponsesOutputItemFileSearchCallType$ {
|
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
/** @internal */
|
|
63
|
-
export const ResponsesOutputItemFileSearchCallStatus$inboundSchema:
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
export const ResponsesOutputItemFileSearchCallStatus$inboundSchema: z.ZodType<
|
|
69
|
+
ResponsesOutputItemFileSearchCallStatus,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
unknown
|
|
72
|
+
> = z
|
|
73
|
+
.union([
|
|
74
|
+
z.nativeEnum(ResponsesOutputItemFileSearchCallStatus),
|
|
75
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
76
|
+
]);
|
|
66
77
|
|
|
67
78
|
/** @internal */
|
|
68
|
-
export const ResponsesOutputItemFileSearchCallStatus$outboundSchema:
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
export const ResponsesOutputItemFileSearchCallStatus$outboundSchema: z.ZodType<
|
|
80
|
+
ResponsesOutputItemFileSearchCallStatus,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
ResponsesOutputItemFileSearchCallStatus
|
|
83
|
+
> = z.union([
|
|
84
|
+
z.nativeEnum(ResponsesOutputItemFileSearchCallStatus),
|
|
85
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
86
|
+
]);
|
|
71
87
|
|
|
72
88
|
/**
|
|
73
89
|
* @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
|
import {
|
|
@@ -34,7 +39,7 @@ export const ResponsesOutputItemReasoningFormat = {
|
|
|
34
39
|
XaiResponsesV1: "xai-responses-v1",
|
|
35
40
|
AnthropicClaudeV1: "anthropic-claude-v1",
|
|
36
41
|
} as const;
|
|
37
|
-
export type ResponsesOutputItemReasoningFormat =
|
|
42
|
+
export type ResponsesOutputItemReasoningFormat = OpenEnum<
|
|
38
43
|
typeof ResponsesOutputItemReasoningFormat
|
|
39
44
|
>;
|
|
40
45
|
|
|
@@ -73,14 +78,25 @@ export namespace ResponsesOutputItemReasoningType$ {
|
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
/** @internal */
|
|
76
|
-
export const ResponsesOutputItemReasoningFormat$inboundSchema: z.
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
export const ResponsesOutputItemReasoningFormat$inboundSchema: z.ZodType<
|
|
82
|
+
ResponsesOutputItemReasoningFormat,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z
|
|
86
|
+
.union([
|
|
87
|
+
z.nativeEnum(ResponsesOutputItemReasoningFormat),
|
|
88
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
89
|
+
]);
|
|
79
90
|
|
|
80
91
|
/** @internal */
|
|
81
|
-
export const ResponsesOutputItemReasoningFormat$outboundSchema: z.
|
|
82
|
-
|
|
83
|
-
|
|
92
|
+
export const ResponsesOutputItemReasoningFormat$outboundSchema: z.ZodType<
|
|
93
|
+
ResponsesOutputItemReasoningFormat,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
ResponsesOutputItemReasoningFormat
|
|
96
|
+
> = z.union([
|
|
97
|
+
z.nativeEnum(ResponsesOutputItemReasoningFormat),
|
|
98
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
99
|
+
]);
|
|
84
100
|
|
|
85
101
|
/**
|
|
86
102
|
* @internal
|