@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.37
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/FUNCTIONS.md +5 -3
- package/REACT_QUERY.md +6 -4
- package/README.md +21 -9
- package/dist/commonjs/funcs/betaResponsesSend.d.ts +26 -0
- package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -0
- package/dist/commonjs/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +5 -13
- package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -0
- package/dist/commonjs/funcs/chatSend.d.ts +3 -13
- package/dist/commonjs/funcs/chatSend.d.ts.map +1 -1
- package/dist/commonjs/funcs/chatSend.js +1 -8
- package/dist/commonjs/funcs/chatSend.js.map +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsList.js +1 -1
- package/dist/commonjs/funcs/endpointsList.js.map +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts +1 -7
- package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsList.js +2 -9
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/endpointslist.d.ts +768 -0
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
- package/dist/commonjs/models/endpointslist.js +625 -0
- package/dist/commonjs/models/endpointslist.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +4 -4
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -4
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +155 -0
- package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
- package/dist/commonjs/models/keyinfo.js +163 -0
- package/dist/commonjs/models/keyinfo.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +854 -0
- package/dist/commonjs/models/modelslist.d.ts.map +1 -0
- package/dist/commonjs/models/modelslist.js +768 -0
- package/dist/commonjs/models/modelslist.js.map +1 -0
- package/dist/commonjs/models/operations/generate.d.ts +103 -103
- package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/generate.js +142 -153
- package/dist/commonjs/models/operations/generate.js.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
- package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +63 -825
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +86 -667
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +19 -742
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
- package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.js +4 -730
- package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +134 -133
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +1693 -0
- package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.js +1156 -1
- package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +13 -0
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +19 -19
- package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/commonjs/models/responsesnonstreamingresponse.js +30 -32
- package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/commonjs/models/responsesusage.d.ts +41 -0
- package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
- package/dist/commonjs/models/responsesusage.js +54 -1
- package/dist/commonjs/models/responsesusage.js.map +1 -1
- package/dist/commonjs/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
- package/dist/commonjs/models/toolchoiceunion.d.ts.map +1 -0
- package/dist/commonjs/models/{toolchoice.js → toolchoiceunion.js} +94 -21
- package/dist/commonjs/models/toolchoiceunion.js.map +1 -0
- package/dist/commonjs/react-query/betaResponsesSend.d.ts +23 -0
- package/dist/commonjs/react-query/betaResponsesSend.d.ts.map +1 -0
- package/dist/commonjs/react-query/betaResponsesSend.js +47 -0
- package/dist/commonjs/react-query/betaResponsesSend.js.map +1 -0
- package/dist/commonjs/react-query/chatSend.d.ts +1 -5
- package/dist/commonjs/react-query/chatSend.d.ts.map +1 -1
- package/dist/commonjs/react-query/chatSend.js +0 -3
- package/dist/commonjs/react-query/chatSend.js.map +1 -1
- package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
- package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/endpointsList.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -1
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -1
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/modelsList.d.ts +4 -8
- package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsList.js +0 -3
- package/dist/commonjs/react-query/modelsList.js.map +1 -1
- package/dist/commonjs/sdk/chat.d.ts +3 -11
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +1 -3
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/endpoints.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -5
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js +1 -3
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/commonjs/sdk/responses.d.ts +6 -14
- package/dist/commonjs/sdk/responses.d.ts.map +1 -1
- package/dist/commonjs/sdk/responses.js +4 -6
- package/dist/commonjs/sdk/responses.js.map +1 -1
- package/dist/esm/funcs/betaResponsesSend.d.ts +26 -0
- package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -0
- package/dist/esm/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +4 -11
- package/dist/esm/funcs/betaResponsesSend.js.map +1 -0
- package/dist/esm/funcs/chatSend.d.ts +3 -13
- package/dist/esm/funcs/chatSend.d.ts.map +1 -1
- package/dist/esm/funcs/chatSend.js +1 -7
- package/dist/esm/funcs/chatSend.js.map +1 -1
- package/dist/esm/funcs/endpointsList.d.ts +1 -1
- package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsList.js +1 -1
- package/dist/esm/funcs/endpointsList.js.map +1 -1
- package/dist/esm/funcs/modelsList.d.ts +1 -7
- package/dist/esm/funcs/modelsList.d.ts.map +1 -1
- package/dist/esm/funcs/modelsList.js +2 -8
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/endpointslist.d.ts +768 -0
- package/dist/esm/models/endpointslist.d.ts.map +1 -0
- package/dist/esm/models/endpointslist.js +562 -0
- package/dist/esm/models/endpointslist.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +155 -0
- package/dist/esm/models/keyinfo.d.ts.map +1 -0
- package/dist/esm/models/keyinfo.js +123 -0
- package/dist/esm/models/keyinfo.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +854 -0
- package/dist/esm/models/modelslist.d.ts.map +1 -0
- package/dist/esm/models/modelslist.js +697 -0
- package/dist/esm/models/modelslist.js.map +1 -0
- package/dist/esm/models/operations/generate.d.ts +103 -103
- package/dist/esm/models/operations/generate.d.ts.map +1 -1
- package/dist/esm/models/operations/generate.js +138 -149
- package/dist/esm/models/operations/generate.js.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.js +3 -83
- package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +63 -825
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +81 -635
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -865
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +16 -704
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listusermodels.d.ts +3 -852
- package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listusermodels.js +3 -694
- package/dist/esm/models/operations/listusermodels.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +97 -97
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +118 -117
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.d.ts +1693 -0
- package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/operations/sendresponsesrequest.js +1117 -0
- package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +13 -0
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.d.ts +19 -19
- package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
- package/dist/esm/models/responsesnonstreamingresponse.js +29 -31
- package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
- package/dist/esm/models/responsesusage.d.ts +41 -0
- package/dist/esm/models/responsesusage.d.ts.map +1 -1
- package/dist/esm/models/responsesusage.js +51 -0
- package/dist/esm/models/responsesusage.js.map +1 -1
- package/dist/esm/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
- package/dist/esm/models/toolchoiceunion.d.ts.map +1 -0
- package/dist/esm/models/toolchoiceunion.js +164 -0
- package/dist/esm/models/toolchoiceunion.js.map +1 -0
- package/dist/esm/react-query/betaResponsesSend.d.ts +23 -0
- package/dist/esm/react-query/betaResponsesSend.d.ts.map +1 -0
- package/dist/esm/react-query/{betaResponsesSendRequest.js → betaResponsesSend.js} +10 -11
- package/dist/esm/react-query/betaResponsesSend.js.map +1 -0
- package/dist/esm/react-query/chatSend.d.ts +1 -5
- package/dist/esm/react-query/chatSend.d.ts.map +1 -1
- package/dist/esm/react-query/chatSend.js +0 -1
- package/dist/esm/react-query/chatSend.js.map +1 -1
- package/dist/esm/react-query/endpointsList.d.ts +4 -4
- package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
- package/dist/esm/react-query/endpointsList.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -1
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -1
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/modelsList.d.ts +4 -8
- package/dist/esm/react-query/modelsList.d.ts.map +1 -1
- package/dist/esm/react-query/modelsList.js +0 -1
- package/dist/esm/react-query/modelsList.js.map +1 -1
- package/dist/esm/sdk/chat.d.ts +3 -11
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +0 -1
- package/dist/esm/sdk/chat.js.map +1 -1
- package/dist/esm/sdk/endpoints.d.ts +1 -1
- package/dist/esm/sdk/endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/endpoints.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +1 -5
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js +0 -1
- package/dist/esm/sdk/models.js.map +1 -1
- package/dist/esm/sdk/responses.d.ts +6 -14
- package/dist/esm/sdk/responses.d.ts.map +1 -1
- package/dist/esm/sdk/responses.js +3 -4
- package/dist/esm/sdk/responses.js.map +1 -1
- package/docs/sdks/endpoints/README.md +1 -1
- package/docs/sdks/models/README.md +1 -1
- package/docs/sdks/responses/README.md +13 -9
- package/examples/{betaResponsesSendRequest.example.ts → betaResponsesSend.example.ts} +4 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +19 -24
- package/src/funcs/chatSend.ts +6 -12
- package/src/funcs/endpointsList.ts +3 -3
- package/src/funcs/modelsList.ts +6 -14
- package/src/lib/config.ts +2 -2
- package/src/models/endpointslist.ts +1030 -0
- package/src/models/index.ts +4 -4
- package/src/models/keyinfo.ts +281 -0
- package/src/models/modelslist.ts +1394 -0
- package/src/models/operations/generate.ts +232 -188
- package/src/models/operations/getcurrentkey.ts +5 -203
- package/src/models/operations/list.ts +109 -1106
- package/src/models/operations/listmodels.ts +26 -1436
- package/src/models/operations/listusermodels.ts +5 -1440
- package/src/models/operations/previewzdr.ts +196 -225
- package/src/models/operations/sendresponsesrequest.ts +2005 -0
- package/src/models/responsereasoningconfig.ts +17 -0
- package/src/models/responsesnonstreamingresponse.ts +37 -55
- package/src/models/responsesusage.ts +96 -0
- package/src/models/{toolchoice.ts → toolchoiceunion.ts} +181 -37
- package/src/react-query/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +20 -26
- package/src/react-query/chatSend.ts +2 -4
- package/src/react-query/endpointsList.ts +4 -4
- package/src/react-query/index.ts +1 -1
- package/src/react-query/modelsList.ts +6 -8
- package/src/sdk/chat.ts +5 -7
- package/src/sdk/endpoints.ts +1 -1
- package/src/sdk/models.ts +3 -5
- package/src/sdk/responses.ts +18 -21
- package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts +0 -36
- package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/commonjs/funcs/betaResponsesSendRequest.js.map +0 -1
- package/dist/commonjs/models/openairesponsesrequest.d.ts +0 -1704
- package/dist/commonjs/models/openairesponsesrequest.d.ts.map +0 -1
- package/dist/commonjs/models/openairesponsesrequest.js +0 -1212
- package/dist/commonjs/models/openairesponsesrequest.js.map +0 -1
- package/dist/commonjs/models/toolchoice.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoice.js.map +0 -1
- package/dist/commonjs/models/toolchoicefunction.d.ts +0 -57
- package/dist/commonjs/models/toolchoicefunction.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoicefunction.js +0 -89
- package/dist/commonjs/models/toolchoicefunction.js.map +0 -1
- package/dist/commonjs/models/toolchoicetypes.d.ts +0 -33
- package/dist/commonjs/models/toolchoicetypes.d.ts.map +0 -1
- package/dist/commonjs/models/toolchoicetypes.js +0 -70
- package/dist/commonjs/models/toolchoicetypes.js.map +0 -1
- package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts +0 -28
- package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/commonjs/react-query/betaResponsesSendRequest.js +0 -50
- package/dist/commonjs/react-query/betaResponsesSendRequest.js.map +0 -1
- package/dist/esm/funcs/betaResponsesSendRequest.d.ts +0 -36
- package/dist/esm/funcs/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/esm/funcs/betaResponsesSendRequest.js.map +0 -1
- package/dist/esm/models/openairesponsesrequest.d.ts +0 -1704
- package/dist/esm/models/openairesponsesrequest.d.ts.map +0 -1
- package/dist/esm/models/openairesponsesrequest.js +0 -1138
- package/dist/esm/models/openairesponsesrequest.js.map +0 -1
- package/dist/esm/models/toolchoice.d.ts.map +0 -1
- package/dist/esm/models/toolchoice.js +0 -95
- package/dist/esm/models/toolchoice.js.map +0 -1
- package/dist/esm/models/toolchoicefunction.d.ts +0 -57
- package/dist/esm/models/toolchoicefunction.d.ts.map +0 -1
- package/dist/esm/models/toolchoicefunction.js +0 -51
- package/dist/esm/models/toolchoicefunction.js.map +0 -1
- package/dist/esm/models/toolchoicetypes.d.ts +0 -33
- package/dist/esm/models/toolchoicetypes.d.ts.map +0 -1
- package/dist/esm/models/toolchoicetypes.js +0 -32
- package/dist/esm/models/toolchoicetypes.js.map +0 -1
- package/dist/esm/react-query/betaResponsesSendRequest.d.ts +0 -28
- package/dist/esm/react-query/betaResponsesSendRequest.d.ts.map +0 -1
- package/dist/esm/react-query/betaResponsesSendRequest.js.map +0 -1
- package/src/models/openairesponsesrequest.ts +0 -1935
- package/src/models/toolchoicefunction.ts +0 -100
- package/src/models/toolchoicetypes.ts +0 -73
|
@@ -36,15 +36,1170 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.SendResponsesRequestPrompt$ = exports.SendResponsesRequestPrompt$outboundSchema = exports.SendResponsesRequestPrompt$inboundSchema = exports.SendResponsesRequestSort$ = exports.SendResponsesRequestSort$outboundSchema = exports.SendResponsesRequestSort$inboundSchema = exports.SendResponsesRequestQuantization$ = exports.SendResponsesRequestQuantization$outboundSchema = exports.SendResponsesRequestQuantization$inboundSchema = exports.SendResponsesRequestIgnoreUnion$ = exports.SendResponsesRequestIgnoreUnion$outboundSchema = exports.SendResponsesRequestIgnoreUnion$inboundSchema = exports.SendResponsesRequestIgnoreEnum$ = exports.SendResponsesRequestIgnoreEnum$outboundSchema = exports.SendResponsesRequestIgnoreEnum$inboundSchema = exports.SendResponsesRequestOnlyUnion$ = exports.SendResponsesRequestOnlyUnion$outboundSchema = exports.SendResponsesRequestOnlyUnion$inboundSchema = exports.SendResponsesRequestOnlyEnum$ = exports.SendResponsesRequestOnlyEnum$outboundSchema = exports.SendResponsesRequestOnlyEnum$inboundSchema = exports.SendResponsesRequestOrderUnion$ = exports.SendResponsesRequestOrderUnion$outboundSchema = exports.SendResponsesRequestOrderUnion$inboundSchema = exports.SendResponsesRequestOrderEnum$ = exports.SendResponsesRequestOrderEnum$outboundSchema = exports.SendResponsesRequestOrderEnum$inboundSchema = exports.SendResponsesRequestDataCollection$ = exports.SendResponsesRequestDataCollection$outboundSchema = exports.SendResponsesRequestDataCollection$inboundSchema = exports.Truncation$ = exports.Truncation$outboundSchema = exports.Truncation$inboundSchema = exports.ServiceTier$ = exports.ServiceTier$outboundSchema = exports.ServiceTier$inboundSchema = exports.IdModeration = exports.Engine = exports.IdWeb = exports.IdChainOfThought = exports.PdfEngine = exports.IdFileParser = exports.SendResponsesRequestSort = exports.SendResponsesRequestQuantization = exports.SendResponsesRequestIgnoreEnum = exports.SendResponsesRequestOnlyEnum = exports.SendResponsesRequestOrderEnum = exports.SendResponsesRequestDataCollection = exports.Truncation = exports.ServiceTier = void 0;
|
|
40
|
+
exports.IdModeration$outboundSchema = exports.IdModeration$inboundSchema = exports.PluginWeb$ = exports.PluginWeb$outboundSchema = exports.PluginWeb$inboundSchema = exports.Engine$ = exports.Engine$outboundSchema = exports.Engine$inboundSchema = exports.IdWeb$ = exports.IdWeb$outboundSchema = exports.IdWeb$inboundSchema = exports.PluginChainOfThought$ = exports.PluginChainOfThought$outboundSchema = exports.PluginChainOfThought$inboundSchema = exports.IdChainOfThought$ = exports.IdChainOfThought$outboundSchema = exports.IdChainOfThought$inboundSchema = exports.PluginFileParser$ = exports.PluginFileParser$outboundSchema = exports.PluginFileParser$inboundSchema = exports.Pdf$ = exports.Pdf$outboundSchema = exports.Pdf$inboundSchema = exports.PdfEngine$ = exports.PdfEngine$outboundSchema = exports.PdfEngine$inboundSchema = exports.IdFileParser$ = exports.IdFileParser$outboundSchema = exports.IdFileParser$inboundSchema = exports.SendResponsesRequestProvider$ = exports.SendResponsesRequestProvider$outboundSchema = exports.SendResponsesRequestProvider$inboundSchema = exports.SendResponsesRequestExperimental$ = exports.SendResponsesRequestExperimental$outboundSchema = exports.SendResponsesRequestExperimental$inboundSchema = exports.SendResponsesRequestMaxPrice$ = exports.SendResponsesRequestMaxPrice$outboundSchema = exports.SendResponsesRequestMaxPrice$inboundSchema = exports.SendResponsesRequestRequestUnion$ = exports.SendResponsesRequestRequestUnion$outboundSchema = exports.SendResponsesRequestRequestUnion$inboundSchema = exports.SendResponsesRequestAudio$ = exports.SendResponsesRequestAudio$outboundSchema = exports.SendResponsesRequestAudio$inboundSchema = exports.SendResponsesRequestImage$ = exports.SendResponsesRequestImage$outboundSchema = exports.SendResponsesRequestImage$inboundSchema = exports.SendResponsesRequestCompletion$ = exports.SendResponsesRequestCompletion$outboundSchema = exports.SendResponsesRequestCompletion$inboundSchema = void 0;
|
|
41
|
+
exports.SendResponsesRequestResponse$ = exports.SendResponsesRequestResponse$outboundSchema = exports.SendResponsesRequestResponse$inboundSchema = exports.SendResponsesRequestResponseBody$ = exports.SendResponsesRequestResponseBody$outboundSchema = exports.SendResponsesRequestResponseBody$inboundSchema = exports.SendResponsesRequestRequest$ = exports.SendResponsesRequestRequest$outboundSchema = exports.SendResponsesRequestRequest$inboundSchema = exports.Plugin$ = exports.Plugin$outboundSchema = exports.Plugin$inboundSchema = exports.PluginModeration$ = exports.PluginModeration$outboundSchema = exports.PluginModeration$inboundSchema = exports.IdModeration$ = void 0;
|
|
42
|
+
exports.sendResponsesRequestOrderUnionToJSON = sendResponsesRequestOrderUnionToJSON;
|
|
43
|
+
exports.sendResponsesRequestOrderUnionFromJSON = sendResponsesRequestOrderUnionFromJSON;
|
|
44
|
+
exports.sendResponsesRequestOnlyUnionToJSON = sendResponsesRequestOnlyUnionToJSON;
|
|
45
|
+
exports.sendResponsesRequestOnlyUnionFromJSON = sendResponsesRequestOnlyUnionFromJSON;
|
|
46
|
+
exports.sendResponsesRequestIgnoreUnionToJSON = sendResponsesRequestIgnoreUnionToJSON;
|
|
47
|
+
exports.sendResponsesRequestIgnoreUnionFromJSON = sendResponsesRequestIgnoreUnionFromJSON;
|
|
48
|
+
exports.sendResponsesRequestPromptToJSON = sendResponsesRequestPromptToJSON;
|
|
49
|
+
exports.sendResponsesRequestPromptFromJSON = sendResponsesRequestPromptFromJSON;
|
|
50
|
+
exports.sendResponsesRequestCompletionToJSON = sendResponsesRequestCompletionToJSON;
|
|
51
|
+
exports.sendResponsesRequestCompletionFromJSON = sendResponsesRequestCompletionFromJSON;
|
|
52
|
+
exports.sendResponsesRequestImageToJSON = sendResponsesRequestImageToJSON;
|
|
53
|
+
exports.sendResponsesRequestImageFromJSON = sendResponsesRequestImageFromJSON;
|
|
54
|
+
exports.sendResponsesRequestAudioToJSON = sendResponsesRequestAudioToJSON;
|
|
55
|
+
exports.sendResponsesRequestAudioFromJSON = sendResponsesRequestAudioFromJSON;
|
|
56
|
+
exports.sendResponsesRequestRequestUnionToJSON = sendResponsesRequestRequestUnionToJSON;
|
|
57
|
+
exports.sendResponsesRequestRequestUnionFromJSON = sendResponsesRequestRequestUnionFromJSON;
|
|
58
|
+
exports.sendResponsesRequestMaxPriceToJSON = sendResponsesRequestMaxPriceToJSON;
|
|
59
|
+
exports.sendResponsesRequestMaxPriceFromJSON = sendResponsesRequestMaxPriceFromJSON;
|
|
60
|
+
exports.sendResponsesRequestExperimentalToJSON = sendResponsesRequestExperimentalToJSON;
|
|
61
|
+
exports.sendResponsesRequestExperimentalFromJSON = sendResponsesRequestExperimentalFromJSON;
|
|
62
|
+
exports.sendResponsesRequestProviderToJSON = sendResponsesRequestProviderToJSON;
|
|
63
|
+
exports.sendResponsesRequestProviderFromJSON = sendResponsesRequestProviderFromJSON;
|
|
64
|
+
exports.pdfToJSON = pdfToJSON;
|
|
65
|
+
exports.pdfFromJSON = pdfFromJSON;
|
|
66
|
+
exports.pluginFileParserToJSON = pluginFileParserToJSON;
|
|
67
|
+
exports.pluginFileParserFromJSON = pluginFileParserFromJSON;
|
|
68
|
+
exports.pluginChainOfThoughtToJSON = pluginChainOfThoughtToJSON;
|
|
69
|
+
exports.pluginChainOfThoughtFromJSON = pluginChainOfThoughtFromJSON;
|
|
70
|
+
exports.pluginWebToJSON = pluginWebToJSON;
|
|
71
|
+
exports.pluginWebFromJSON = pluginWebFromJSON;
|
|
72
|
+
exports.pluginModerationToJSON = pluginModerationToJSON;
|
|
73
|
+
exports.pluginModerationFromJSON = pluginModerationFromJSON;
|
|
74
|
+
exports.pluginToJSON = pluginToJSON;
|
|
75
|
+
exports.pluginFromJSON = pluginFromJSON;
|
|
76
|
+
exports.sendResponsesRequestRequestToJSON = sendResponsesRequestRequestToJSON;
|
|
77
|
+
exports.sendResponsesRequestRequestFromJSON = sendResponsesRequestRequestFromJSON;
|
|
40
78
|
exports.sendResponsesRequestResponseBodyToJSON = sendResponsesRequestResponseBodyToJSON;
|
|
41
79
|
exports.sendResponsesRequestResponseBodyFromJSON = sendResponsesRequestResponseBodyFromJSON;
|
|
42
80
|
exports.sendResponsesRequestResponseToJSON = sendResponsesRequestResponseToJSON;
|
|
43
81
|
exports.sendResponsesRequestResponseFromJSON = sendResponsesRequestResponseFromJSON;
|
|
44
82
|
const z = __importStar(require("zod"));
|
|
45
83
|
const event_streams_js_1 = require("../../lib/event-streams.js");
|
|
84
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
85
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
86
|
const models = __importStar(require("../index.js"));
|
|
87
|
+
exports.ServiceTier = {
|
|
88
|
+
Auto: "auto",
|
|
89
|
+
Default: "default",
|
|
90
|
+
Flex: "flex",
|
|
91
|
+
Priority: "priority",
|
|
92
|
+
Scale: "scale",
|
|
93
|
+
};
|
|
94
|
+
exports.Truncation = {
|
|
95
|
+
Auto: "auto",
|
|
96
|
+
Disabled: "disabled",
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
103
|
+
* - deny: use only providers which do not collect user data.
|
|
104
|
+
*/
|
|
105
|
+
exports.SendResponsesRequestDataCollection = {
|
|
106
|
+
Deny: "deny",
|
|
107
|
+
Allow: "allow",
|
|
108
|
+
};
|
|
109
|
+
exports.SendResponsesRequestOrderEnum = {
|
|
110
|
+
AnyScale: "AnyScale",
|
|
111
|
+
CentML: "Cent-ML",
|
|
112
|
+
HuggingFace: "HuggingFace",
|
|
113
|
+
Hyperbolic2: "Hyperbolic 2",
|
|
114
|
+
Lepton: "Lepton",
|
|
115
|
+
Lynn2: "Lynn 2",
|
|
116
|
+
Lynn: "Lynn",
|
|
117
|
+
Mancer: "Mancer",
|
|
118
|
+
Modal: "Modal",
|
|
119
|
+
OctoAI: "OctoAI",
|
|
120
|
+
Recursal: "Recursal",
|
|
121
|
+
Reflection: "Reflection",
|
|
122
|
+
Replicate: "Replicate",
|
|
123
|
+
SambaNova2: "SambaNova 2",
|
|
124
|
+
SFCompute: "SF Compute",
|
|
125
|
+
Together2: "Together 2",
|
|
126
|
+
OneDotAI: "01.AI",
|
|
127
|
+
Ai21: "AI21",
|
|
128
|
+
AionLabs: "AionLabs",
|
|
129
|
+
Alibaba: "Alibaba",
|
|
130
|
+
AmazonBedrock: "Amazon Bedrock",
|
|
131
|
+
Anthropic: "Anthropic",
|
|
132
|
+
AtlasCloud: "AtlasCloud",
|
|
133
|
+
Atoma: "Atoma",
|
|
134
|
+
Avian: "Avian",
|
|
135
|
+
Azure: "Azure",
|
|
136
|
+
BaseTen: "BaseTen",
|
|
137
|
+
Cerebras: "Cerebras",
|
|
138
|
+
Chutes: "Chutes",
|
|
139
|
+
Cloudflare: "Cloudflare",
|
|
140
|
+
Cohere: "Cohere",
|
|
141
|
+
CrofAI: "CrofAI",
|
|
142
|
+
Crusoe: "Crusoe",
|
|
143
|
+
DeepInfra: "DeepInfra",
|
|
144
|
+
DeepSeek: "DeepSeek",
|
|
145
|
+
Enfer: "Enfer",
|
|
146
|
+
Featherless: "Featherless",
|
|
147
|
+
Fireworks: "Fireworks",
|
|
148
|
+
Friendli: "Friendli",
|
|
149
|
+
GMICloud: "GMICloud",
|
|
150
|
+
Google: "Google",
|
|
151
|
+
GoogleAIStudio: "Google AI Studio",
|
|
152
|
+
Groq: "Groq",
|
|
153
|
+
Hyperbolic: "Hyperbolic",
|
|
154
|
+
Inception: "Inception",
|
|
155
|
+
InferenceNet: "InferenceNet",
|
|
156
|
+
Infermatic: "Infermatic",
|
|
157
|
+
Inflection: "Inflection",
|
|
158
|
+
InoCloud: "InoCloud",
|
|
159
|
+
Kluster: "Kluster",
|
|
160
|
+
Lambda: "Lambda",
|
|
161
|
+
Liquid: "Liquid",
|
|
162
|
+
Mancer2: "Mancer 2",
|
|
163
|
+
Meta: "Meta",
|
|
164
|
+
Minimax: "Minimax",
|
|
165
|
+
Mistral: "Mistral",
|
|
166
|
+
MoonshotAI: "Moonshot AI",
|
|
167
|
+
Morph: "Morph",
|
|
168
|
+
NCompass: "NCompass",
|
|
169
|
+
Nebius: "Nebius",
|
|
170
|
+
NextBit: "NextBit",
|
|
171
|
+
Nineteen: "Nineteen",
|
|
172
|
+
Novita: "Novita",
|
|
173
|
+
Nvidia: "Nvidia",
|
|
174
|
+
OpenAI: "OpenAI",
|
|
175
|
+
OpenInference: "OpenInference",
|
|
176
|
+
Parasail: "Parasail",
|
|
177
|
+
Perplexity: "Perplexity",
|
|
178
|
+
Phala: "Phala",
|
|
179
|
+
Relace: "Relace",
|
|
180
|
+
SambaNova: "SambaNova",
|
|
181
|
+
SiliconFlow: "SiliconFlow",
|
|
182
|
+
Stealth: "Stealth",
|
|
183
|
+
Switchpoint: "Switchpoint",
|
|
184
|
+
Targon: "Targon",
|
|
185
|
+
Together: "Together",
|
|
186
|
+
Ubicloud: "Ubicloud",
|
|
187
|
+
Venice: "Venice",
|
|
188
|
+
WandB: "WandB",
|
|
189
|
+
XAI: "xAI",
|
|
190
|
+
ZAi: "Z.AI",
|
|
191
|
+
FakeProvider: "FakeProvider",
|
|
192
|
+
};
|
|
193
|
+
exports.SendResponsesRequestOnlyEnum = {
|
|
194
|
+
AnyScale: "AnyScale",
|
|
195
|
+
CentML: "Cent-ML",
|
|
196
|
+
HuggingFace: "HuggingFace",
|
|
197
|
+
Hyperbolic2: "Hyperbolic 2",
|
|
198
|
+
Lepton: "Lepton",
|
|
199
|
+
Lynn2: "Lynn 2",
|
|
200
|
+
Lynn: "Lynn",
|
|
201
|
+
Mancer: "Mancer",
|
|
202
|
+
Modal: "Modal",
|
|
203
|
+
OctoAI: "OctoAI",
|
|
204
|
+
Recursal: "Recursal",
|
|
205
|
+
Reflection: "Reflection",
|
|
206
|
+
Replicate: "Replicate",
|
|
207
|
+
SambaNova2: "SambaNova 2",
|
|
208
|
+
SFCompute: "SF Compute",
|
|
209
|
+
Together2: "Together 2",
|
|
210
|
+
OneDotAI: "01.AI",
|
|
211
|
+
Ai21: "AI21",
|
|
212
|
+
AionLabs: "AionLabs",
|
|
213
|
+
Alibaba: "Alibaba",
|
|
214
|
+
AmazonBedrock: "Amazon Bedrock",
|
|
215
|
+
Anthropic: "Anthropic",
|
|
216
|
+
AtlasCloud: "AtlasCloud",
|
|
217
|
+
Atoma: "Atoma",
|
|
218
|
+
Avian: "Avian",
|
|
219
|
+
Azure: "Azure",
|
|
220
|
+
BaseTen: "BaseTen",
|
|
221
|
+
Cerebras: "Cerebras",
|
|
222
|
+
Chutes: "Chutes",
|
|
223
|
+
Cloudflare: "Cloudflare",
|
|
224
|
+
Cohere: "Cohere",
|
|
225
|
+
CrofAI: "CrofAI",
|
|
226
|
+
Crusoe: "Crusoe",
|
|
227
|
+
DeepInfra: "DeepInfra",
|
|
228
|
+
DeepSeek: "DeepSeek",
|
|
229
|
+
Enfer: "Enfer",
|
|
230
|
+
Featherless: "Featherless",
|
|
231
|
+
Fireworks: "Fireworks",
|
|
232
|
+
Friendli: "Friendli",
|
|
233
|
+
GMICloud: "GMICloud",
|
|
234
|
+
Google: "Google",
|
|
235
|
+
GoogleAIStudio: "Google AI Studio",
|
|
236
|
+
Groq: "Groq",
|
|
237
|
+
Hyperbolic: "Hyperbolic",
|
|
238
|
+
Inception: "Inception",
|
|
239
|
+
InferenceNet: "InferenceNet",
|
|
240
|
+
Infermatic: "Infermatic",
|
|
241
|
+
Inflection: "Inflection",
|
|
242
|
+
InoCloud: "InoCloud",
|
|
243
|
+
Kluster: "Kluster",
|
|
244
|
+
Lambda: "Lambda",
|
|
245
|
+
Liquid: "Liquid",
|
|
246
|
+
Mancer2: "Mancer 2",
|
|
247
|
+
Meta: "Meta",
|
|
248
|
+
Minimax: "Minimax",
|
|
249
|
+
Mistral: "Mistral",
|
|
250
|
+
MoonshotAI: "Moonshot AI",
|
|
251
|
+
Morph: "Morph",
|
|
252
|
+
NCompass: "NCompass",
|
|
253
|
+
Nebius: "Nebius",
|
|
254
|
+
NextBit: "NextBit",
|
|
255
|
+
Nineteen: "Nineteen",
|
|
256
|
+
Novita: "Novita",
|
|
257
|
+
Nvidia: "Nvidia",
|
|
258
|
+
OpenAI: "OpenAI",
|
|
259
|
+
OpenInference: "OpenInference",
|
|
260
|
+
Parasail: "Parasail",
|
|
261
|
+
Perplexity: "Perplexity",
|
|
262
|
+
Phala: "Phala",
|
|
263
|
+
Relace: "Relace",
|
|
264
|
+
SambaNova: "SambaNova",
|
|
265
|
+
SiliconFlow: "SiliconFlow",
|
|
266
|
+
Stealth: "Stealth",
|
|
267
|
+
Switchpoint: "Switchpoint",
|
|
268
|
+
Targon: "Targon",
|
|
269
|
+
Together: "Together",
|
|
270
|
+
Ubicloud: "Ubicloud",
|
|
271
|
+
Venice: "Venice",
|
|
272
|
+
WandB: "WandB",
|
|
273
|
+
XAI: "xAI",
|
|
274
|
+
ZAi: "Z.AI",
|
|
275
|
+
FakeProvider: "FakeProvider",
|
|
276
|
+
};
|
|
277
|
+
exports.SendResponsesRequestIgnoreEnum = {
|
|
278
|
+
AnyScale: "AnyScale",
|
|
279
|
+
CentML: "Cent-ML",
|
|
280
|
+
HuggingFace: "HuggingFace",
|
|
281
|
+
Hyperbolic2: "Hyperbolic 2",
|
|
282
|
+
Lepton: "Lepton",
|
|
283
|
+
Lynn2: "Lynn 2",
|
|
284
|
+
Lynn: "Lynn",
|
|
285
|
+
Mancer: "Mancer",
|
|
286
|
+
Modal: "Modal",
|
|
287
|
+
OctoAI: "OctoAI",
|
|
288
|
+
Recursal: "Recursal",
|
|
289
|
+
Reflection: "Reflection",
|
|
290
|
+
Replicate: "Replicate",
|
|
291
|
+
SambaNova2: "SambaNova 2",
|
|
292
|
+
SFCompute: "SF Compute",
|
|
293
|
+
Together2: "Together 2",
|
|
294
|
+
OneDotAI: "01.AI",
|
|
295
|
+
Ai21: "AI21",
|
|
296
|
+
AionLabs: "AionLabs",
|
|
297
|
+
Alibaba: "Alibaba",
|
|
298
|
+
AmazonBedrock: "Amazon Bedrock",
|
|
299
|
+
Anthropic: "Anthropic",
|
|
300
|
+
AtlasCloud: "AtlasCloud",
|
|
301
|
+
Atoma: "Atoma",
|
|
302
|
+
Avian: "Avian",
|
|
303
|
+
Azure: "Azure",
|
|
304
|
+
BaseTen: "BaseTen",
|
|
305
|
+
Cerebras: "Cerebras",
|
|
306
|
+
Chutes: "Chutes",
|
|
307
|
+
Cloudflare: "Cloudflare",
|
|
308
|
+
Cohere: "Cohere",
|
|
309
|
+
CrofAI: "CrofAI",
|
|
310
|
+
Crusoe: "Crusoe",
|
|
311
|
+
DeepInfra: "DeepInfra",
|
|
312
|
+
DeepSeek: "DeepSeek",
|
|
313
|
+
Enfer: "Enfer",
|
|
314
|
+
Featherless: "Featherless",
|
|
315
|
+
Fireworks: "Fireworks",
|
|
316
|
+
Friendli: "Friendli",
|
|
317
|
+
GMICloud: "GMICloud",
|
|
318
|
+
Google: "Google",
|
|
319
|
+
GoogleAIStudio: "Google AI Studio",
|
|
320
|
+
Groq: "Groq",
|
|
321
|
+
Hyperbolic: "Hyperbolic",
|
|
322
|
+
Inception: "Inception",
|
|
323
|
+
InferenceNet: "InferenceNet",
|
|
324
|
+
Infermatic: "Infermatic",
|
|
325
|
+
Inflection: "Inflection",
|
|
326
|
+
InoCloud: "InoCloud",
|
|
327
|
+
Kluster: "Kluster",
|
|
328
|
+
Lambda: "Lambda",
|
|
329
|
+
Liquid: "Liquid",
|
|
330
|
+
Mancer2: "Mancer 2",
|
|
331
|
+
Meta: "Meta",
|
|
332
|
+
Minimax: "Minimax",
|
|
333
|
+
Mistral: "Mistral",
|
|
334
|
+
MoonshotAI: "Moonshot AI",
|
|
335
|
+
Morph: "Morph",
|
|
336
|
+
NCompass: "NCompass",
|
|
337
|
+
Nebius: "Nebius",
|
|
338
|
+
NextBit: "NextBit",
|
|
339
|
+
Nineteen: "Nineteen",
|
|
340
|
+
Novita: "Novita",
|
|
341
|
+
Nvidia: "Nvidia",
|
|
342
|
+
OpenAI: "OpenAI",
|
|
343
|
+
OpenInference: "OpenInference",
|
|
344
|
+
Parasail: "Parasail",
|
|
345
|
+
Perplexity: "Perplexity",
|
|
346
|
+
Phala: "Phala",
|
|
347
|
+
Relace: "Relace",
|
|
348
|
+
SambaNova: "SambaNova",
|
|
349
|
+
SiliconFlow: "SiliconFlow",
|
|
350
|
+
Stealth: "Stealth",
|
|
351
|
+
Switchpoint: "Switchpoint",
|
|
352
|
+
Targon: "Targon",
|
|
353
|
+
Together: "Together",
|
|
354
|
+
Ubicloud: "Ubicloud",
|
|
355
|
+
Venice: "Venice",
|
|
356
|
+
WandB: "WandB",
|
|
357
|
+
XAI: "xAI",
|
|
358
|
+
ZAi: "Z.AI",
|
|
359
|
+
FakeProvider: "FakeProvider",
|
|
360
|
+
};
|
|
361
|
+
exports.SendResponsesRequestQuantization = {
|
|
362
|
+
Int4: "int4",
|
|
363
|
+
Int8: "int8",
|
|
364
|
+
Fp4: "fp4",
|
|
365
|
+
Fp6: "fp6",
|
|
366
|
+
Fp8: "fp8",
|
|
367
|
+
Fp16: "fp16",
|
|
368
|
+
Bf16: "bf16",
|
|
369
|
+
Fp32: "fp32",
|
|
370
|
+
Unknown: "unknown",
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
374
|
+
*/
|
|
375
|
+
exports.SendResponsesRequestSort = {
|
|
376
|
+
Price: "price",
|
|
377
|
+
Throughput: "throughput",
|
|
378
|
+
Latency: "latency",
|
|
379
|
+
};
|
|
380
|
+
exports.IdFileParser = {
|
|
381
|
+
FileParser: "file-parser",
|
|
382
|
+
};
|
|
383
|
+
exports.PdfEngine = {
|
|
384
|
+
MistralOcr: "mistral-ocr",
|
|
385
|
+
PdfText: "pdf-text",
|
|
386
|
+
Native: "native",
|
|
387
|
+
};
|
|
388
|
+
exports.IdChainOfThought = {
|
|
389
|
+
ChainOfThought: "chain-of-thought",
|
|
390
|
+
};
|
|
391
|
+
exports.IdWeb = {
|
|
392
|
+
Web: "web",
|
|
393
|
+
};
|
|
394
|
+
exports.Engine = {
|
|
395
|
+
Native: "native",
|
|
396
|
+
Exa: "exa",
|
|
397
|
+
};
|
|
398
|
+
exports.IdModeration = {
|
|
399
|
+
Moderation: "moderation",
|
|
400
|
+
};
|
|
401
|
+
/** @internal */
|
|
402
|
+
exports.ServiceTier$inboundSchema = z
|
|
403
|
+
.nativeEnum(exports.ServiceTier);
|
|
404
|
+
/** @internal */
|
|
405
|
+
exports.ServiceTier$outboundSchema = exports.ServiceTier$inboundSchema;
|
|
406
|
+
/**
|
|
407
|
+
* @internal
|
|
408
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
409
|
+
*/
|
|
410
|
+
var ServiceTier$;
|
|
411
|
+
(function (ServiceTier$) {
|
|
412
|
+
/** @deprecated use `ServiceTier$inboundSchema` instead. */
|
|
413
|
+
ServiceTier$.inboundSchema = exports.ServiceTier$inboundSchema;
|
|
414
|
+
/** @deprecated use `ServiceTier$outboundSchema` instead. */
|
|
415
|
+
ServiceTier$.outboundSchema = exports.ServiceTier$outboundSchema;
|
|
416
|
+
})(ServiceTier$ || (exports.ServiceTier$ = ServiceTier$ = {}));
|
|
417
|
+
/** @internal */
|
|
418
|
+
exports.Truncation$inboundSchema = z
|
|
419
|
+
.nativeEnum(exports.Truncation);
|
|
420
|
+
/** @internal */
|
|
421
|
+
exports.Truncation$outboundSchema = exports.Truncation$inboundSchema;
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
|
+
*/
|
|
426
|
+
var Truncation$;
|
|
427
|
+
(function (Truncation$) {
|
|
428
|
+
/** @deprecated use `Truncation$inboundSchema` instead. */
|
|
429
|
+
Truncation$.inboundSchema = exports.Truncation$inboundSchema;
|
|
430
|
+
/** @deprecated use `Truncation$outboundSchema` instead. */
|
|
431
|
+
Truncation$.outboundSchema = exports.Truncation$outboundSchema;
|
|
432
|
+
})(Truncation$ || (exports.Truncation$ = Truncation$ = {}));
|
|
433
|
+
/** @internal */
|
|
434
|
+
exports.SendResponsesRequestDataCollection$inboundSchema = z.nativeEnum(exports.SendResponsesRequestDataCollection);
|
|
435
|
+
/** @internal */
|
|
436
|
+
exports.SendResponsesRequestDataCollection$outboundSchema = exports.SendResponsesRequestDataCollection$inboundSchema;
|
|
437
|
+
/**
|
|
438
|
+
* @internal
|
|
439
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
440
|
+
*/
|
|
441
|
+
var SendResponsesRequestDataCollection$;
|
|
442
|
+
(function (SendResponsesRequestDataCollection$) {
|
|
443
|
+
/** @deprecated use `SendResponsesRequestDataCollection$inboundSchema` instead. */
|
|
444
|
+
SendResponsesRequestDataCollection$.inboundSchema = exports.SendResponsesRequestDataCollection$inboundSchema;
|
|
445
|
+
/** @deprecated use `SendResponsesRequestDataCollection$outboundSchema` instead. */
|
|
446
|
+
SendResponsesRequestDataCollection$.outboundSchema = exports.SendResponsesRequestDataCollection$outboundSchema;
|
|
447
|
+
})(SendResponsesRequestDataCollection$ || (exports.SendResponsesRequestDataCollection$ = SendResponsesRequestDataCollection$ = {}));
|
|
448
|
+
/** @internal */
|
|
449
|
+
exports.SendResponsesRequestOrderEnum$inboundSchema = z.nativeEnum(exports.SendResponsesRequestOrderEnum);
|
|
450
|
+
/** @internal */
|
|
451
|
+
exports.SendResponsesRequestOrderEnum$outboundSchema = exports.SendResponsesRequestOrderEnum$inboundSchema;
|
|
452
|
+
/**
|
|
453
|
+
* @internal
|
|
454
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
455
|
+
*/
|
|
456
|
+
var SendResponsesRequestOrderEnum$;
|
|
457
|
+
(function (SendResponsesRequestOrderEnum$) {
|
|
458
|
+
/** @deprecated use `SendResponsesRequestOrderEnum$inboundSchema` instead. */
|
|
459
|
+
SendResponsesRequestOrderEnum$.inboundSchema = exports.SendResponsesRequestOrderEnum$inboundSchema;
|
|
460
|
+
/** @deprecated use `SendResponsesRequestOrderEnum$outboundSchema` instead. */
|
|
461
|
+
SendResponsesRequestOrderEnum$.outboundSchema = exports.SendResponsesRequestOrderEnum$outboundSchema;
|
|
462
|
+
})(SendResponsesRequestOrderEnum$ || (exports.SendResponsesRequestOrderEnum$ = SendResponsesRequestOrderEnum$ = {}));
|
|
463
|
+
/** @internal */
|
|
464
|
+
exports.SendResponsesRequestOrderUnion$inboundSchema = z.union([exports.SendResponsesRequestOrderEnum$inboundSchema, z.string()]);
|
|
465
|
+
/** @internal */
|
|
466
|
+
exports.SendResponsesRequestOrderUnion$outboundSchema = z.union([exports.SendResponsesRequestOrderEnum$outboundSchema, z.string()]);
|
|
467
|
+
/**
|
|
468
|
+
* @internal
|
|
469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
+
*/
|
|
471
|
+
var SendResponsesRequestOrderUnion$;
|
|
472
|
+
(function (SendResponsesRequestOrderUnion$) {
|
|
473
|
+
/** @deprecated use `SendResponsesRequestOrderUnion$inboundSchema` instead. */
|
|
474
|
+
SendResponsesRequestOrderUnion$.inboundSchema = exports.SendResponsesRequestOrderUnion$inboundSchema;
|
|
475
|
+
/** @deprecated use `SendResponsesRequestOrderUnion$outboundSchema` instead. */
|
|
476
|
+
SendResponsesRequestOrderUnion$.outboundSchema = exports.SendResponsesRequestOrderUnion$outboundSchema;
|
|
477
|
+
})(SendResponsesRequestOrderUnion$ || (exports.SendResponsesRequestOrderUnion$ = SendResponsesRequestOrderUnion$ = {}));
|
|
478
|
+
function sendResponsesRequestOrderUnionToJSON(sendResponsesRequestOrderUnion) {
|
|
479
|
+
return JSON.stringify(exports.SendResponsesRequestOrderUnion$outboundSchema.parse(sendResponsesRequestOrderUnion));
|
|
480
|
+
}
|
|
481
|
+
function sendResponsesRequestOrderUnionFromJSON(jsonString) {
|
|
482
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestOrderUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestOrderUnion' from JSON`);
|
|
483
|
+
}
|
|
484
|
+
/** @internal */
|
|
485
|
+
exports.SendResponsesRequestOnlyEnum$inboundSchema = z.nativeEnum(exports.SendResponsesRequestOnlyEnum);
|
|
486
|
+
/** @internal */
|
|
487
|
+
exports.SendResponsesRequestOnlyEnum$outboundSchema = exports.SendResponsesRequestOnlyEnum$inboundSchema;
|
|
488
|
+
/**
|
|
489
|
+
* @internal
|
|
490
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
491
|
+
*/
|
|
492
|
+
var SendResponsesRequestOnlyEnum$;
|
|
493
|
+
(function (SendResponsesRequestOnlyEnum$) {
|
|
494
|
+
/** @deprecated use `SendResponsesRequestOnlyEnum$inboundSchema` instead. */
|
|
495
|
+
SendResponsesRequestOnlyEnum$.inboundSchema = exports.SendResponsesRequestOnlyEnum$inboundSchema;
|
|
496
|
+
/** @deprecated use `SendResponsesRequestOnlyEnum$outboundSchema` instead. */
|
|
497
|
+
SendResponsesRequestOnlyEnum$.outboundSchema = exports.SendResponsesRequestOnlyEnum$outboundSchema;
|
|
498
|
+
})(SendResponsesRequestOnlyEnum$ || (exports.SendResponsesRequestOnlyEnum$ = SendResponsesRequestOnlyEnum$ = {}));
|
|
499
|
+
/** @internal */
|
|
500
|
+
exports.SendResponsesRequestOnlyUnion$inboundSchema = z.union([exports.SendResponsesRequestOnlyEnum$inboundSchema, z.string()]);
|
|
501
|
+
/** @internal */
|
|
502
|
+
exports.SendResponsesRequestOnlyUnion$outboundSchema = z.union([exports.SendResponsesRequestOnlyEnum$outboundSchema, z.string()]);
|
|
503
|
+
/**
|
|
504
|
+
* @internal
|
|
505
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
506
|
+
*/
|
|
507
|
+
var SendResponsesRequestOnlyUnion$;
|
|
508
|
+
(function (SendResponsesRequestOnlyUnion$) {
|
|
509
|
+
/** @deprecated use `SendResponsesRequestOnlyUnion$inboundSchema` instead. */
|
|
510
|
+
SendResponsesRequestOnlyUnion$.inboundSchema = exports.SendResponsesRequestOnlyUnion$inboundSchema;
|
|
511
|
+
/** @deprecated use `SendResponsesRequestOnlyUnion$outboundSchema` instead. */
|
|
512
|
+
SendResponsesRequestOnlyUnion$.outboundSchema = exports.SendResponsesRequestOnlyUnion$outboundSchema;
|
|
513
|
+
})(SendResponsesRequestOnlyUnion$ || (exports.SendResponsesRequestOnlyUnion$ = SendResponsesRequestOnlyUnion$ = {}));
|
|
514
|
+
function sendResponsesRequestOnlyUnionToJSON(sendResponsesRequestOnlyUnion) {
|
|
515
|
+
return JSON.stringify(exports.SendResponsesRequestOnlyUnion$outboundSchema.parse(sendResponsesRequestOnlyUnion));
|
|
516
|
+
}
|
|
517
|
+
function sendResponsesRequestOnlyUnionFromJSON(jsonString) {
|
|
518
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestOnlyUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestOnlyUnion' from JSON`);
|
|
519
|
+
}
|
|
520
|
+
/** @internal */
|
|
521
|
+
exports.SendResponsesRequestIgnoreEnum$inboundSchema = z.nativeEnum(exports.SendResponsesRequestIgnoreEnum);
|
|
522
|
+
/** @internal */
|
|
523
|
+
exports.SendResponsesRequestIgnoreEnum$outboundSchema = exports.SendResponsesRequestIgnoreEnum$inboundSchema;
|
|
524
|
+
/**
|
|
525
|
+
* @internal
|
|
526
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
527
|
+
*/
|
|
528
|
+
var SendResponsesRequestIgnoreEnum$;
|
|
529
|
+
(function (SendResponsesRequestIgnoreEnum$) {
|
|
530
|
+
/** @deprecated use `SendResponsesRequestIgnoreEnum$inboundSchema` instead. */
|
|
531
|
+
SendResponsesRequestIgnoreEnum$.inboundSchema = exports.SendResponsesRequestIgnoreEnum$inboundSchema;
|
|
532
|
+
/** @deprecated use `SendResponsesRequestIgnoreEnum$outboundSchema` instead. */
|
|
533
|
+
SendResponsesRequestIgnoreEnum$.outboundSchema = exports.SendResponsesRequestIgnoreEnum$outboundSchema;
|
|
534
|
+
})(SendResponsesRequestIgnoreEnum$ || (exports.SendResponsesRequestIgnoreEnum$ = SendResponsesRequestIgnoreEnum$ = {}));
|
|
535
|
+
/** @internal */
|
|
536
|
+
exports.SendResponsesRequestIgnoreUnion$inboundSchema = z.union([exports.SendResponsesRequestIgnoreEnum$inboundSchema, z.string()]);
|
|
537
|
+
/** @internal */
|
|
538
|
+
exports.SendResponsesRequestIgnoreUnion$outboundSchema = z.union([exports.SendResponsesRequestIgnoreEnum$outboundSchema, z.string()]);
|
|
539
|
+
/**
|
|
540
|
+
* @internal
|
|
541
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
542
|
+
*/
|
|
543
|
+
var SendResponsesRequestIgnoreUnion$;
|
|
544
|
+
(function (SendResponsesRequestIgnoreUnion$) {
|
|
545
|
+
/** @deprecated use `SendResponsesRequestIgnoreUnion$inboundSchema` instead. */
|
|
546
|
+
SendResponsesRequestIgnoreUnion$.inboundSchema = exports.SendResponsesRequestIgnoreUnion$inboundSchema;
|
|
547
|
+
/** @deprecated use `SendResponsesRequestIgnoreUnion$outboundSchema` instead. */
|
|
548
|
+
SendResponsesRequestIgnoreUnion$.outboundSchema = exports.SendResponsesRequestIgnoreUnion$outboundSchema;
|
|
549
|
+
})(SendResponsesRequestIgnoreUnion$ || (exports.SendResponsesRequestIgnoreUnion$ = SendResponsesRequestIgnoreUnion$ = {}));
|
|
550
|
+
function sendResponsesRequestIgnoreUnionToJSON(sendResponsesRequestIgnoreUnion) {
|
|
551
|
+
return JSON.stringify(exports.SendResponsesRequestIgnoreUnion$outboundSchema.parse(sendResponsesRequestIgnoreUnion));
|
|
552
|
+
}
|
|
553
|
+
function sendResponsesRequestIgnoreUnionFromJSON(jsonString) {
|
|
554
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestIgnoreUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestIgnoreUnion' from JSON`);
|
|
555
|
+
}
|
|
556
|
+
/** @internal */
|
|
557
|
+
exports.SendResponsesRequestQuantization$inboundSchema = z.nativeEnum(exports.SendResponsesRequestQuantization);
|
|
558
|
+
/** @internal */
|
|
559
|
+
exports.SendResponsesRequestQuantization$outboundSchema = exports.SendResponsesRequestQuantization$inboundSchema;
|
|
560
|
+
/**
|
|
561
|
+
* @internal
|
|
562
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
563
|
+
*/
|
|
564
|
+
var SendResponsesRequestQuantization$;
|
|
565
|
+
(function (SendResponsesRequestQuantization$) {
|
|
566
|
+
/** @deprecated use `SendResponsesRequestQuantization$inboundSchema` instead. */
|
|
567
|
+
SendResponsesRequestQuantization$.inboundSchema = exports.SendResponsesRequestQuantization$inboundSchema;
|
|
568
|
+
/** @deprecated use `SendResponsesRequestQuantization$outboundSchema` instead. */
|
|
569
|
+
SendResponsesRequestQuantization$.outboundSchema = exports.SendResponsesRequestQuantization$outboundSchema;
|
|
570
|
+
})(SendResponsesRequestQuantization$ || (exports.SendResponsesRequestQuantization$ = SendResponsesRequestQuantization$ = {}));
|
|
571
|
+
/** @internal */
|
|
572
|
+
exports.SendResponsesRequestSort$inboundSchema = z.nativeEnum(exports.SendResponsesRequestSort);
|
|
573
|
+
/** @internal */
|
|
574
|
+
exports.SendResponsesRequestSort$outboundSchema = exports.SendResponsesRequestSort$inboundSchema;
|
|
575
|
+
/**
|
|
576
|
+
* @internal
|
|
577
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
578
|
+
*/
|
|
579
|
+
var SendResponsesRequestSort$;
|
|
580
|
+
(function (SendResponsesRequestSort$) {
|
|
581
|
+
/** @deprecated use `SendResponsesRequestSort$inboundSchema` instead. */
|
|
582
|
+
SendResponsesRequestSort$.inboundSchema = exports.SendResponsesRequestSort$inboundSchema;
|
|
583
|
+
/** @deprecated use `SendResponsesRequestSort$outboundSchema` instead. */
|
|
584
|
+
SendResponsesRequestSort$.outboundSchema = exports.SendResponsesRequestSort$outboundSchema;
|
|
585
|
+
})(SendResponsesRequestSort$ || (exports.SendResponsesRequestSort$ = SendResponsesRequestSort$ = {}));
|
|
586
|
+
/** @internal */
|
|
587
|
+
exports.SendResponsesRequestPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
588
|
+
/** @internal */
|
|
589
|
+
exports.SendResponsesRequestPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
590
|
+
/**
|
|
591
|
+
* @internal
|
|
592
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
593
|
+
*/
|
|
594
|
+
var SendResponsesRequestPrompt$;
|
|
595
|
+
(function (SendResponsesRequestPrompt$) {
|
|
596
|
+
/** @deprecated use `SendResponsesRequestPrompt$inboundSchema` instead. */
|
|
597
|
+
SendResponsesRequestPrompt$.inboundSchema = exports.SendResponsesRequestPrompt$inboundSchema;
|
|
598
|
+
/** @deprecated use `SendResponsesRequestPrompt$outboundSchema` instead. */
|
|
599
|
+
SendResponsesRequestPrompt$.outboundSchema = exports.SendResponsesRequestPrompt$outboundSchema;
|
|
600
|
+
})(SendResponsesRequestPrompt$ || (exports.SendResponsesRequestPrompt$ = SendResponsesRequestPrompt$ = {}));
|
|
601
|
+
function sendResponsesRequestPromptToJSON(sendResponsesRequestPrompt) {
|
|
602
|
+
return JSON.stringify(exports.SendResponsesRequestPrompt$outboundSchema.parse(sendResponsesRequestPrompt));
|
|
603
|
+
}
|
|
604
|
+
function sendResponsesRequestPromptFromJSON(jsonString) {
|
|
605
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestPrompt' from JSON`);
|
|
606
|
+
}
|
|
607
|
+
/** @internal */
|
|
608
|
+
exports.SendResponsesRequestCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
609
|
+
/** @internal */
|
|
610
|
+
exports.SendResponsesRequestCompletion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
611
|
+
/**
|
|
612
|
+
* @internal
|
|
613
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
614
|
+
*/
|
|
615
|
+
var SendResponsesRequestCompletion$;
|
|
616
|
+
(function (SendResponsesRequestCompletion$) {
|
|
617
|
+
/** @deprecated use `SendResponsesRequestCompletion$inboundSchema` instead. */
|
|
618
|
+
SendResponsesRequestCompletion$.inboundSchema = exports.SendResponsesRequestCompletion$inboundSchema;
|
|
619
|
+
/** @deprecated use `SendResponsesRequestCompletion$outboundSchema` instead. */
|
|
620
|
+
SendResponsesRequestCompletion$.outboundSchema = exports.SendResponsesRequestCompletion$outboundSchema;
|
|
621
|
+
})(SendResponsesRequestCompletion$ || (exports.SendResponsesRequestCompletion$ = SendResponsesRequestCompletion$ = {}));
|
|
622
|
+
function sendResponsesRequestCompletionToJSON(sendResponsesRequestCompletion) {
|
|
623
|
+
return JSON.stringify(exports.SendResponsesRequestCompletion$outboundSchema.parse(sendResponsesRequestCompletion));
|
|
624
|
+
}
|
|
625
|
+
function sendResponsesRequestCompletionFromJSON(jsonString) {
|
|
626
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestCompletion' from JSON`);
|
|
627
|
+
}
|
|
628
|
+
/** @internal */
|
|
629
|
+
exports.SendResponsesRequestImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
630
|
+
/** @internal */
|
|
631
|
+
exports.SendResponsesRequestImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
632
|
+
/**
|
|
633
|
+
* @internal
|
|
634
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
635
|
+
*/
|
|
636
|
+
var SendResponsesRequestImage$;
|
|
637
|
+
(function (SendResponsesRequestImage$) {
|
|
638
|
+
/** @deprecated use `SendResponsesRequestImage$inboundSchema` instead. */
|
|
639
|
+
SendResponsesRequestImage$.inboundSchema = exports.SendResponsesRequestImage$inboundSchema;
|
|
640
|
+
/** @deprecated use `SendResponsesRequestImage$outboundSchema` instead. */
|
|
641
|
+
SendResponsesRequestImage$.outboundSchema = exports.SendResponsesRequestImage$outboundSchema;
|
|
642
|
+
})(SendResponsesRequestImage$ || (exports.SendResponsesRequestImage$ = SendResponsesRequestImage$ = {}));
|
|
643
|
+
function sendResponsesRequestImageToJSON(sendResponsesRequestImage) {
|
|
644
|
+
return JSON.stringify(exports.SendResponsesRequestImage$outboundSchema.parse(sendResponsesRequestImage));
|
|
645
|
+
}
|
|
646
|
+
function sendResponsesRequestImageFromJSON(jsonString) {
|
|
647
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestImage' from JSON`);
|
|
648
|
+
}
|
|
649
|
+
/** @internal */
|
|
650
|
+
exports.SendResponsesRequestAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
651
|
+
/** @internal */
|
|
652
|
+
exports.SendResponsesRequestAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
653
|
+
/**
|
|
654
|
+
* @internal
|
|
655
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
656
|
+
*/
|
|
657
|
+
var SendResponsesRequestAudio$;
|
|
658
|
+
(function (SendResponsesRequestAudio$) {
|
|
659
|
+
/** @deprecated use `SendResponsesRequestAudio$inboundSchema` instead. */
|
|
660
|
+
SendResponsesRequestAudio$.inboundSchema = exports.SendResponsesRequestAudio$inboundSchema;
|
|
661
|
+
/** @deprecated use `SendResponsesRequestAudio$outboundSchema` instead. */
|
|
662
|
+
SendResponsesRequestAudio$.outboundSchema = exports.SendResponsesRequestAudio$outboundSchema;
|
|
663
|
+
})(SendResponsesRequestAudio$ || (exports.SendResponsesRequestAudio$ = SendResponsesRequestAudio$ = {}));
|
|
664
|
+
function sendResponsesRequestAudioToJSON(sendResponsesRequestAudio) {
|
|
665
|
+
return JSON.stringify(exports.SendResponsesRequestAudio$outboundSchema.parse(sendResponsesRequestAudio));
|
|
666
|
+
}
|
|
667
|
+
function sendResponsesRequestAudioFromJSON(jsonString) {
|
|
668
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestAudio' from JSON`);
|
|
669
|
+
}
|
|
670
|
+
/** @internal */
|
|
671
|
+
exports.SendResponsesRequestRequestUnion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
672
|
+
/** @internal */
|
|
673
|
+
exports.SendResponsesRequestRequestUnion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
674
|
+
/**
|
|
675
|
+
* @internal
|
|
676
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
677
|
+
*/
|
|
678
|
+
var SendResponsesRequestRequestUnion$;
|
|
679
|
+
(function (SendResponsesRequestRequestUnion$) {
|
|
680
|
+
/** @deprecated use `SendResponsesRequestRequestUnion$inboundSchema` instead. */
|
|
681
|
+
SendResponsesRequestRequestUnion$.inboundSchema = exports.SendResponsesRequestRequestUnion$inboundSchema;
|
|
682
|
+
/** @deprecated use `SendResponsesRequestRequestUnion$outboundSchema` instead. */
|
|
683
|
+
SendResponsesRequestRequestUnion$.outboundSchema = exports.SendResponsesRequestRequestUnion$outboundSchema;
|
|
684
|
+
})(SendResponsesRequestRequestUnion$ || (exports.SendResponsesRequestRequestUnion$ = SendResponsesRequestRequestUnion$ = {}));
|
|
685
|
+
function sendResponsesRequestRequestUnionToJSON(sendResponsesRequestRequestUnion) {
|
|
686
|
+
return JSON.stringify(exports.SendResponsesRequestRequestUnion$outboundSchema.parse(sendResponsesRequestRequestUnion));
|
|
687
|
+
}
|
|
688
|
+
function sendResponsesRequestRequestUnionFromJSON(jsonString) {
|
|
689
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestRequestUnion' from JSON`);
|
|
690
|
+
}
|
|
691
|
+
/** @internal */
|
|
692
|
+
exports.SendResponsesRequestMaxPrice$inboundSchema = z.object({
|
|
693
|
+
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
694
|
+
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
695
|
+
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
696
|
+
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
697
|
+
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
698
|
+
});
|
|
699
|
+
/** @internal */
|
|
700
|
+
exports.SendResponsesRequestMaxPrice$outboundSchema = z.object({
|
|
701
|
+
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
702
|
+
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
703
|
+
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
704
|
+
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
705
|
+
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
706
|
+
});
|
|
707
|
+
/**
|
|
708
|
+
* @internal
|
|
709
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
710
|
+
*/
|
|
711
|
+
var SendResponsesRequestMaxPrice$;
|
|
712
|
+
(function (SendResponsesRequestMaxPrice$) {
|
|
713
|
+
/** @deprecated use `SendResponsesRequestMaxPrice$inboundSchema` instead. */
|
|
714
|
+
SendResponsesRequestMaxPrice$.inboundSchema = exports.SendResponsesRequestMaxPrice$inboundSchema;
|
|
715
|
+
/** @deprecated use `SendResponsesRequestMaxPrice$outboundSchema` instead. */
|
|
716
|
+
SendResponsesRequestMaxPrice$.outboundSchema = exports.SendResponsesRequestMaxPrice$outboundSchema;
|
|
717
|
+
})(SendResponsesRequestMaxPrice$ || (exports.SendResponsesRequestMaxPrice$ = SendResponsesRequestMaxPrice$ = {}));
|
|
718
|
+
function sendResponsesRequestMaxPriceToJSON(sendResponsesRequestMaxPrice) {
|
|
719
|
+
return JSON.stringify(exports.SendResponsesRequestMaxPrice$outboundSchema.parse(sendResponsesRequestMaxPrice));
|
|
720
|
+
}
|
|
721
|
+
function sendResponsesRequestMaxPriceFromJSON(jsonString) {
|
|
722
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestMaxPrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestMaxPrice' from JSON`);
|
|
723
|
+
}
|
|
724
|
+
/** @internal */
|
|
725
|
+
exports.SendResponsesRequestExperimental$inboundSchema = z.object({});
|
|
726
|
+
/** @internal */
|
|
727
|
+
exports.SendResponsesRequestExperimental$outboundSchema = z.object({});
|
|
728
|
+
/**
|
|
729
|
+
* @internal
|
|
730
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
731
|
+
*/
|
|
732
|
+
var SendResponsesRequestExperimental$;
|
|
733
|
+
(function (SendResponsesRequestExperimental$) {
|
|
734
|
+
/** @deprecated use `SendResponsesRequestExperimental$inboundSchema` instead. */
|
|
735
|
+
SendResponsesRequestExperimental$.inboundSchema = exports.SendResponsesRequestExperimental$inboundSchema;
|
|
736
|
+
/** @deprecated use `SendResponsesRequestExperimental$outboundSchema` instead. */
|
|
737
|
+
SendResponsesRequestExperimental$.outboundSchema = exports.SendResponsesRequestExperimental$outboundSchema;
|
|
738
|
+
})(SendResponsesRequestExperimental$ || (exports.SendResponsesRequestExperimental$ = SendResponsesRequestExperimental$ = {}));
|
|
739
|
+
function sendResponsesRequestExperimentalToJSON(sendResponsesRequestExperimental) {
|
|
740
|
+
return JSON.stringify(exports.SendResponsesRequestExperimental$outboundSchema.parse(sendResponsesRequestExperimental));
|
|
741
|
+
}
|
|
742
|
+
function sendResponsesRequestExperimentalFromJSON(jsonString) {
|
|
743
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestExperimental$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestExperimental' from JSON`);
|
|
744
|
+
}
|
|
745
|
+
/** @internal */
|
|
746
|
+
exports.SendResponsesRequestProvider$inboundSchema = z.object({
|
|
747
|
+
allow_fallbacks: z.nullable(z.boolean()).optional(),
|
|
748
|
+
require_parameters: z.nullable(z.boolean()).optional(),
|
|
749
|
+
data_collection: z.nullable(exports.SendResponsesRequestDataCollection$inboundSchema)
|
|
750
|
+
.optional(),
|
|
751
|
+
zdr: z.nullable(z.boolean()).optional(),
|
|
752
|
+
order: z.nullable(z.array(z.union([exports.SendResponsesRequestOrderEnum$inboundSchema, z.string()]))).optional(),
|
|
753
|
+
only: z.nullable(z.array(z.union([exports.SendResponsesRequestOnlyEnum$inboundSchema, z.string()]))).optional(),
|
|
754
|
+
ignore: z.nullable(z.array(z.union([exports.SendResponsesRequestIgnoreEnum$inboundSchema, z.string()]))).optional(),
|
|
755
|
+
quantizations: z.nullable(z.array(exports.SendResponsesRequestQuantization$inboundSchema)).optional(),
|
|
756
|
+
sort: z.nullable(exports.SendResponsesRequestSort$inboundSchema).optional(),
|
|
757
|
+
max_price: z.lazy(() => exports.SendResponsesRequestMaxPrice$inboundSchema)
|
|
758
|
+
.optional(),
|
|
759
|
+
experimental: z.nullable(z.lazy(() => exports.SendResponsesRequestExperimental$inboundSchema)).optional(),
|
|
760
|
+
}).transform((v) => {
|
|
761
|
+
return (0, primitives_js_1.remap)(v, {
|
|
762
|
+
"allow_fallbacks": "allowFallbacks",
|
|
763
|
+
"require_parameters": "requireParameters",
|
|
764
|
+
"data_collection": "dataCollection",
|
|
765
|
+
"max_price": "maxPrice",
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
/** @internal */
|
|
769
|
+
exports.SendResponsesRequestProvider$outboundSchema = z.object({
|
|
770
|
+
allowFallbacks: z.nullable(z.boolean()).optional(),
|
|
771
|
+
requireParameters: z.nullable(z.boolean()).optional(),
|
|
772
|
+
dataCollection: z.nullable(exports.SendResponsesRequestDataCollection$outboundSchema)
|
|
773
|
+
.optional(),
|
|
774
|
+
zdr: z.nullable(z.boolean()).optional(),
|
|
775
|
+
order: z.nullable(z.array(z.union([exports.SendResponsesRequestOrderEnum$outboundSchema, z.string()]))).optional(),
|
|
776
|
+
only: z.nullable(z.array(z.union([exports.SendResponsesRequestOnlyEnum$outboundSchema, z.string()]))).optional(),
|
|
777
|
+
ignore: z.nullable(z.array(z.union([exports.SendResponsesRequestIgnoreEnum$outboundSchema, z.string()]))).optional(),
|
|
778
|
+
quantizations: z.nullable(z.array(exports.SendResponsesRequestQuantization$outboundSchema)).optional(),
|
|
779
|
+
sort: z.nullable(exports.SendResponsesRequestSort$outboundSchema).optional(),
|
|
780
|
+
maxPrice: z.lazy(() => exports.SendResponsesRequestMaxPrice$outboundSchema)
|
|
781
|
+
.optional(),
|
|
782
|
+
experimental: z.nullable(z.lazy(() => exports.SendResponsesRequestExperimental$outboundSchema)).optional(),
|
|
783
|
+
}).transform((v) => {
|
|
784
|
+
return (0, primitives_js_1.remap)(v, {
|
|
785
|
+
allowFallbacks: "allow_fallbacks",
|
|
786
|
+
requireParameters: "require_parameters",
|
|
787
|
+
dataCollection: "data_collection",
|
|
788
|
+
maxPrice: "max_price",
|
|
789
|
+
});
|
|
790
|
+
});
|
|
791
|
+
/**
|
|
792
|
+
* @internal
|
|
793
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
794
|
+
*/
|
|
795
|
+
var SendResponsesRequestProvider$;
|
|
796
|
+
(function (SendResponsesRequestProvider$) {
|
|
797
|
+
/** @deprecated use `SendResponsesRequestProvider$inboundSchema` instead. */
|
|
798
|
+
SendResponsesRequestProvider$.inboundSchema = exports.SendResponsesRequestProvider$inboundSchema;
|
|
799
|
+
/** @deprecated use `SendResponsesRequestProvider$outboundSchema` instead. */
|
|
800
|
+
SendResponsesRequestProvider$.outboundSchema = exports.SendResponsesRequestProvider$outboundSchema;
|
|
801
|
+
})(SendResponsesRequestProvider$ || (exports.SendResponsesRequestProvider$ = SendResponsesRequestProvider$ = {}));
|
|
802
|
+
function sendResponsesRequestProviderToJSON(sendResponsesRequestProvider) {
|
|
803
|
+
return JSON.stringify(exports.SendResponsesRequestProvider$outboundSchema.parse(sendResponsesRequestProvider));
|
|
804
|
+
}
|
|
805
|
+
function sendResponsesRequestProviderFromJSON(jsonString) {
|
|
806
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestProvider' from JSON`);
|
|
807
|
+
}
|
|
808
|
+
/** @internal */
|
|
809
|
+
exports.IdFileParser$inboundSchema = z.nativeEnum(exports.IdFileParser);
|
|
810
|
+
/** @internal */
|
|
811
|
+
exports.IdFileParser$outboundSchema = exports.IdFileParser$inboundSchema;
|
|
812
|
+
/**
|
|
813
|
+
* @internal
|
|
814
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
815
|
+
*/
|
|
816
|
+
var IdFileParser$;
|
|
817
|
+
(function (IdFileParser$) {
|
|
818
|
+
/** @deprecated use `IdFileParser$inboundSchema` instead. */
|
|
819
|
+
IdFileParser$.inboundSchema = exports.IdFileParser$inboundSchema;
|
|
820
|
+
/** @deprecated use `IdFileParser$outboundSchema` instead. */
|
|
821
|
+
IdFileParser$.outboundSchema = exports.IdFileParser$outboundSchema;
|
|
822
|
+
})(IdFileParser$ || (exports.IdFileParser$ = IdFileParser$ = {}));
|
|
823
|
+
/** @internal */
|
|
824
|
+
exports.PdfEngine$inboundSchema = z
|
|
825
|
+
.nativeEnum(exports.PdfEngine);
|
|
826
|
+
/** @internal */
|
|
827
|
+
exports.PdfEngine$outboundSchema = exports.PdfEngine$inboundSchema;
|
|
828
|
+
/**
|
|
829
|
+
* @internal
|
|
830
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
831
|
+
*/
|
|
832
|
+
var PdfEngine$;
|
|
833
|
+
(function (PdfEngine$) {
|
|
834
|
+
/** @deprecated use `PdfEngine$inboundSchema` instead. */
|
|
835
|
+
PdfEngine$.inboundSchema = exports.PdfEngine$inboundSchema;
|
|
836
|
+
/** @deprecated use `PdfEngine$outboundSchema` instead. */
|
|
837
|
+
PdfEngine$.outboundSchema = exports.PdfEngine$outboundSchema;
|
|
838
|
+
})(PdfEngine$ || (exports.PdfEngine$ = PdfEngine$ = {}));
|
|
839
|
+
/** @internal */
|
|
840
|
+
exports.Pdf$inboundSchema = z
|
|
841
|
+
.object({
|
|
842
|
+
engine: exports.PdfEngine$inboundSchema.optional(),
|
|
843
|
+
});
|
|
844
|
+
/** @internal */
|
|
845
|
+
exports.Pdf$outboundSchema = z
|
|
846
|
+
.object({
|
|
847
|
+
engine: exports.PdfEngine$outboundSchema.optional(),
|
|
848
|
+
});
|
|
849
|
+
/**
|
|
850
|
+
* @internal
|
|
851
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
852
|
+
*/
|
|
853
|
+
var Pdf$;
|
|
854
|
+
(function (Pdf$) {
|
|
855
|
+
/** @deprecated use `Pdf$inboundSchema` instead. */
|
|
856
|
+
Pdf$.inboundSchema = exports.Pdf$inboundSchema;
|
|
857
|
+
/** @deprecated use `Pdf$outboundSchema` instead. */
|
|
858
|
+
Pdf$.outboundSchema = exports.Pdf$outboundSchema;
|
|
859
|
+
})(Pdf$ || (exports.Pdf$ = Pdf$ = {}));
|
|
860
|
+
function pdfToJSON(pdf) {
|
|
861
|
+
return JSON.stringify(exports.Pdf$outboundSchema.parse(pdf));
|
|
862
|
+
}
|
|
863
|
+
function pdfFromJSON(jsonString) {
|
|
864
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Pdf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pdf' from JSON`);
|
|
865
|
+
}
|
|
866
|
+
/** @internal */
|
|
867
|
+
exports.PluginFileParser$inboundSchema = z.object({
|
|
868
|
+
id: exports.IdFileParser$inboundSchema,
|
|
869
|
+
max_files: z.number().optional(),
|
|
870
|
+
pdf: z.lazy(() => exports.Pdf$inboundSchema).optional(),
|
|
871
|
+
}).transform((v) => {
|
|
872
|
+
return (0, primitives_js_1.remap)(v, {
|
|
873
|
+
"max_files": "maxFiles",
|
|
874
|
+
});
|
|
875
|
+
});
|
|
876
|
+
/** @internal */
|
|
877
|
+
exports.PluginFileParser$outboundSchema = z.object({
|
|
878
|
+
id: exports.IdFileParser$outboundSchema,
|
|
879
|
+
maxFiles: z.number().optional(),
|
|
880
|
+
pdf: z.lazy(() => exports.Pdf$outboundSchema).optional(),
|
|
881
|
+
}).transform((v) => {
|
|
882
|
+
return (0, primitives_js_1.remap)(v, {
|
|
883
|
+
maxFiles: "max_files",
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
/**
|
|
887
|
+
* @internal
|
|
888
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
889
|
+
*/
|
|
890
|
+
var PluginFileParser$;
|
|
891
|
+
(function (PluginFileParser$) {
|
|
892
|
+
/** @deprecated use `PluginFileParser$inboundSchema` instead. */
|
|
893
|
+
PluginFileParser$.inboundSchema = exports.PluginFileParser$inboundSchema;
|
|
894
|
+
/** @deprecated use `PluginFileParser$outboundSchema` instead. */
|
|
895
|
+
PluginFileParser$.outboundSchema = exports.PluginFileParser$outboundSchema;
|
|
896
|
+
})(PluginFileParser$ || (exports.PluginFileParser$ = PluginFileParser$ = {}));
|
|
897
|
+
function pluginFileParserToJSON(pluginFileParser) {
|
|
898
|
+
return JSON.stringify(exports.PluginFileParser$outboundSchema.parse(pluginFileParser));
|
|
899
|
+
}
|
|
900
|
+
function pluginFileParserFromJSON(jsonString) {
|
|
901
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginFileParser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginFileParser' from JSON`);
|
|
902
|
+
}
|
|
903
|
+
/** @internal */
|
|
904
|
+
exports.IdChainOfThought$inboundSchema = z.nativeEnum(exports.IdChainOfThought);
|
|
905
|
+
/** @internal */
|
|
906
|
+
exports.IdChainOfThought$outboundSchema = exports.IdChainOfThought$inboundSchema;
|
|
907
|
+
/**
|
|
908
|
+
* @internal
|
|
909
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
910
|
+
*/
|
|
911
|
+
var IdChainOfThought$;
|
|
912
|
+
(function (IdChainOfThought$) {
|
|
913
|
+
/** @deprecated use `IdChainOfThought$inboundSchema` instead. */
|
|
914
|
+
IdChainOfThought$.inboundSchema = exports.IdChainOfThought$inboundSchema;
|
|
915
|
+
/** @deprecated use `IdChainOfThought$outboundSchema` instead. */
|
|
916
|
+
IdChainOfThought$.outboundSchema = exports.IdChainOfThought$outboundSchema;
|
|
917
|
+
})(IdChainOfThought$ || (exports.IdChainOfThought$ = IdChainOfThought$ = {}));
|
|
918
|
+
/** @internal */
|
|
919
|
+
exports.PluginChainOfThought$inboundSchema = z.object({
|
|
920
|
+
id: exports.IdChainOfThought$inboundSchema,
|
|
921
|
+
});
|
|
922
|
+
/** @internal */
|
|
923
|
+
exports.PluginChainOfThought$outboundSchema = z.object({
|
|
924
|
+
id: exports.IdChainOfThought$outboundSchema,
|
|
925
|
+
});
|
|
926
|
+
/**
|
|
927
|
+
* @internal
|
|
928
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
929
|
+
*/
|
|
930
|
+
var PluginChainOfThought$;
|
|
931
|
+
(function (PluginChainOfThought$) {
|
|
932
|
+
/** @deprecated use `PluginChainOfThought$inboundSchema` instead. */
|
|
933
|
+
PluginChainOfThought$.inboundSchema = exports.PluginChainOfThought$inboundSchema;
|
|
934
|
+
/** @deprecated use `PluginChainOfThought$outboundSchema` instead. */
|
|
935
|
+
PluginChainOfThought$.outboundSchema = exports.PluginChainOfThought$outboundSchema;
|
|
936
|
+
})(PluginChainOfThought$ || (exports.PluginChainOfThought$ = PluginChainOfThought$ = {}));
|
|
937
|
+
function pluginChainOfThoughtToJSON(pluginChainOfThought) {
|
|
938
|
+
return JSON.stringify(exports.PluginChainOfThought$outboundSchema.parse(pluginChainOfThought));
|
|
939
|
+
}
|
|
940
|
+
function pluginChainOfThoughtFromJSON(jsonString) {
|
|
941
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginChainOfThought$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginChainOfThought' from JSON`);
|
|
942
|
+
}
|
|
943
|
+
/** @internal */
|
|
944
|
+
exports.IdWeb$inboundSchema = z.nativeEnum(exports.IdWeb);
|
|
945
|
+
/** @internal */
|
|
946
|
+
exports.IdWeb$outboundSchema = exports.IdWeb$inboundSchema;
|
|
947
|
+
/**
|
|
948
|
+
* @internal
|
|
949
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
950
|
+
*/
|
|
951
|
+
var IdWeb$;
|
|
952
|
+
(function (IdWeb$) {
|
|
953
|
+
/** @deprecated use `IdWeb$inboundSchema` instead. */
|
|
954
|
+
IdWeb$.inboundSchema = exports.IdWeb$inboundSchema;
|
|
955
|
+
/** @deprecated use `IdWeb$outboundSchema` instead. */
|
|
956
|
+
IdWeb$.outboundSchema = exports.IdWeb$outboundSchema;
|
|
957
|
+
})(IdWeb$ || (exports.IdWeb$ = IdWeb$ = {}));
|
|
958
|
+
/** @internal */
|
|
959
|
+
exports.Engine$inboundSchema = z
|
|
960
|
+
.nativeEnum(exports.Engine);
|
|
961
|
+
/** @internal */
|
|
962
|
+
exports.Engine$outboundSchema = exports.Engine$inboundSchema;
|
|
963
|
+
/**
|
|
964
|
+
* @internal
|
|
965
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
966
|
+
*/
|
|
967
|
+
var Engine$;
|
|
968
|
+
(function (Engine$) {
|
|
969
|
+
/** @deprecated use `Engine$inboundSchema` instead. */
|
|
970
|
+
Engine$.inboundSchema = exports.Engine$inboundSchema;
|
|
971
|
+
/** @deprecated use `Engine$outboundSchema` instead. */
|
|
972
|
+
Engine$.outboundSchema = exports.Engine$outboundSchema;
|
|
973
|
+
})(Engine$ || (exports.Engine$ = Engine$ = {}));
|
|
974
|
+
/** @internal */
|
|
975
|
+
exports.PluginWeb$inboundSchema = z.object({
|
|
976
|
+
id: exports.IdWeb$inboundSchema,
|
|
977
|
+
max_results: z.number().optional(),
|
|
978
|
+
search_prompt: z.string().optional(),
|
|
979
|
+
engine: exports.Engine$inboundSchema.optional(),
|
|
980
|
+
}).transform((v) => {
|
|
981
|
+
return (0, primitives_js_1.remap)(v, {
|
|
982
|
+
"max_results": "maxResults",
|
|
983
|
+
"search_prompt": "searchPrompt",
|
|
984
|
+
});
|
|
985
|
+
});
|
|
986
|
+
/** @internal */
|
|
987
|
+
exports.PluginWeb$outboundSchema = z.object({
|
|
988
|
+
id: exports.IdWeb$outboundSchema,
|
|
989
|
+
maxResults: z.number().optional(),
|
|
990
|
+
searchPrompt: z.string().optional(),
|
|
991
|
+
engine: exports.Engine$outboundSchema.optional(),
|
|
992
|
+
}).transform((v) => {
|
|
993
|
+
return (0, primitives_js_1.remap)(v, {
|
|
994
|
+
maxResults: "max_results",
|
|
995
|
+
searchPrompt: "search_prompt",
|
|
996
|
+
});
|
|
997
|
+
});
|
|
998
|
+
/**
|
|
999
|
+
* @internal
|
|
1000
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1001
|
+
*/
|
|
1002
|
+
var PluginWeb$;
|
|
1003
|
+
(function (PluginWeb$) {
|
|
1004
|
+
/** @deprecated use `PluginWeb$inboundSchema` instead. */
|
|
1005
|
+
PluginWeb$.inboundSchema = exports.PluginWeb$inboundSchema;
|
|
1006
|
+
/** @deprecated use `PluginWeb$outboundSchema` instead. */
|
|
1007
|
+
PluginWeb$.outboundSchema = exports.PluginWeb$outboundSchema;
|
|
1008
|
+
})(PluginWeb$ || (exports.PluginWeb$ = PluginWeb$ = {}));
|
|
1009
|
+
function pluginWebToJSON(pluginWeb) {
|
|
1010
|
+
return JSON.stringify(exports.PluginWeb$outboundSchema.parse(pluginWeb));
|
|
1011
|
+
}
|
|
1012
|
+
function pluginWebFromJSON(jsonString) {
|
|
1013
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginWeb$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginWeb' from JSON`);
|
|
1014
|
+
}
|
|
1015
|
+
/** @internal */
|
|
1016
|
+
exports.IdModeration$inboundSchema = z.nativeEnum(exports.IdModeration);
|
|
1017
|
+
/** @internal */
|
|
1018
|
+
exports.IdModeration$outboundSchema = exports.IdModeration$inboundSchema;
|
|
1019
|
+
/**
|
|
1020
|
+
* @internal
|
|
1021
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1022
|
+
*/
|
|
1023
|
+
var IdModeration$;
|
|
1024
|
+
(function (IdModeration$) {
|
|
1025
|
+
/** @deprecated use `IdModeration$inboundSchema` instead. */
|
|
1026
|
+
IdModeration$.inboundSchema = exports.IdModeration$inboundSchema;
|
|
1027
|
+
/** @deprecated use `IdModeration$outboundSchema` instead. */
|
|
1028
|
+
IdModeration$.outboundSchema = exports.IdModeration$outboundSchema;
|
|
1029
|
+
})(IdModeration$ || (exports.IdModeration$ = IdModeration$ = {}));
|
|
1030
|
+
/** @internal */
|
|
1031
|
+
exports.PluginModeration$inboundSchema = z.object({
|
|
1032
|
+
id: exports.IdModeration$inboundSchema,
|
|
1033
|
+
});
|
|
1034
|
+
/** @internal */
|
|
1035
|
+
exports.PluginModeration$outboundSchema = z.object({
|
|
1036
|
+
id: exports.IdModeration$outboundSchema,
|
|
1037
|
+
});
|
|
1038
|
+
/**
|
|
1039
|
+
* @internal
|
|
1040
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1041
|
+
*/
|
|
1042
|
+
var PluginModeration$;
|
|
1043
|
+
(function (PluginModeration$) {
|
|
1044
|
+
/** @deprecated use `PluginModeration$inboundSchema` instead. */
|
|
1045
|
+
PluginModeration$.inboundSchema = exports.PluginModeration$inboundSchema;
|
|
1046
|
+
/** @deprecated use `PluginModeration$outboundSchema` instead. */
|
|
1047
|
+
PluginModeration$.outboundSchema = exports.PluginModeration$outboundSchema;
|
|
1048
|
+
})(PluginModeration$ || (exports.PluginModeration$ = PluginModeration$ = {}));
|
|
1049
|
+
function pluginModerationToJSON(pluginModeration) {
|
|
1050
|
+
return JSON.stringify(exports.PluginModeration$outboundSchema.parse(pluginModeration));
|
|
1051
|
+
}
|
|
1052
|
+
function pluginModerationFromJSON(jsonString) {
|
|
1053
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PluginModeration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PluginModeration' from JSON`);
|
|
1054
|
+
}
|
|
1055
|
+
/** @internal */
|
|
1056
|
+
exports.Plugin$inboundSchema = z
|
|
1057
|
+
.union([
|
|
1058
|
+
z.lazy(() => exports.PluginModeration$inboundSchema),
|
|
1059
|
+
z.lazy(() => exports.PluginWeb$inboundSchema),
|
|
1060
|
+
z.lazy(() => exports.PluginChainOfThought$inboundSchema),
|
|
1061
|
+
z.lazy(() => exports.PluginFileParser$inboundSchema),
|
|
1062
|
+
]);
|
|
1063
|
+
/** @internal */
|
|
1064
|
+
exports.Plugin$outboundSchema = z.union([
|
|
1065
|
+
z.lazy(() => exports.PluginModeration$outboundSchema),
|
|
1066
|
+
z.lazy(() => exports.PluginWeb$outboundSchema),
|
|
1067
|
+
z.lazy(() => exports.PluginChainOfThought$outboundSchema),
|
|
1068
|
+
z.lazy(() => exports.PluginFileParser$outboundSchema),
|
|
1069
|
+
]);
|
|
1070
|
+
/**
|
|
1071
|
+
* @internal
|
|
1072
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1073
|
+
*/
|
|
1074
|
+
var Plugin$;
|
|
1075
|
+
(function (Plugin$) {
|
|
1076
|
+
/** @deprecated use `Plugin$inboundSchema` instead. */
|
|
1077
|
+
Plugin$.inboundSchema = exports.Plugin$inboundSchema;
|
|
1078
|
+
/** @deprecated use `Plugin$outboundSchema` instead. */
|
|
1079
|
+
Plugin$.outboundSchema = exports.Plugin$outboundSchema;
|
|
1080
|
+
})(Plugin$ || (exports.Plugin$ = Plugin$ = {}));
|
|
1081
|
+
function pluginToJSON(plugin) {
|
|
1082
|
+
return JSON.stringify(exports.Plugin$outboundSchema.parse(plugin));
|
|
1083
|
+
}
|
|
1084
|
+
function pluginFromJSON(jsonString) {
|
|
1085
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Plugin$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Plugin' from JSON`);
|
|
1086
|
+
}
|
|
1087
|
+
/** @internal */
|
|
1088
|
+
exports.SendResponsesRequestRequest$inboundSchema = z.object({
|
|
1089
|
+
input: models.ResponseInput$inboundSchema.optional(),
|
|
1090
|
+
instructions: z.nullable(z.string()).optional(),
|
|
1091
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
1092
|
+
tools: z.array(models.Tool$inboundSchema).optional(),
|
|
1093
|
+
tool_choice: models.ToolChoiceUnion$inboundSchema.optional(),
|
|
1094
|
+
parallel_tool_calls: z.nullable(z.boolean()).optional(),
|
|
1095
|
+
model: z.string().optional(),
|
|
1096
|
+
models: z.array(z.string()).optional(),
|
|
1097
|
+
text: models.ResponseTextConfig$inboundSchema.optional(),
|
|
1098
|
+
reasoning: z.nullable(models.ResponseReasoningConfig$inboundSchema)
|
|
1099
|
+
.optional(),
|
|
1100
|
+
max_output_tokens: z.nullable(z.number()).optional(),
|
|
1101
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1102
|
+
top_p: z.nullable(z.number()).optional(),
|
|
1103
|
+
top_k: z.number().optional(),
|
|
1104
|
+
prompt_cache_key: z.string().optional(),
|
|
1105
|
+
previous_response_id: z.nullable(z.string()).optional(),
|
|
1106
|
+
prompt: z.nullable(models.ResponsePrompt$inboundSchema).optional(),
|
|
1107
|
+
include: z.nullable(z.array(models.ResponseIncludable$inboundSchema))
|
|
1108
|
+
.optional(),
|
|
1109
|
+
background: z.nullable(z.boolean()).optional(),
|
|
1110
|
+
safety_identifier: z.string().optional(),
|
|
1111
|
+
store: z.nullable(z.boolean()).optional(),
|
|
1112
|
+
service_tier: z.nullable(exports.ServiceTier$inboundSchema).optional(),
|
|
1113
|
+
truncation: z.nullable(exports.Truncation$inboundSchema).optional(),
|
|
1114
|
+
stream: z.nullable(z.boolean()).optional(),
|
|
1115
|
+
provider: z.nullable(z.lazy(() => exports.SendResponsesRequestProvider$inboundSchema))
|
|
1116
|
+
.optional(),
|
|
1117
|
+
plugins: z.array(z.union([
|
|
1118
|
+
z.lazy(() => exports.PluginModeration$inboundSchema),
|
|
1119
|
+
z.lazy(() => exports.PluginWeb$inboundSchema),
|
|
1120
|
+
z.lazy(() => exports.PluginChainOfThought$inboundSchema),
|
|
1121
|
+
z.lazy(() => exports.PluginFileParser$inboundSchema),
|
|
1122
|
+
])).optional(),
|
|
1123
|
+
user: z.string().optional(),
|
|
1124
|
+
}).transform((v) => {
|
|
1125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1126
|
+
"tool_choice": "toolChoice",
|
|
1127
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
1128
|
+
"max_output_tokens": "maxOutputTokens",
|
|
1129
|
+
"top_p": "topP",
|
|
1130
|
+
"top_k": "topK",
|
|
1131
|
+
"prompt_cache_key": "promptCacheKey",
|
|
1132
|
+
"previous_response_id": "previousResponseId",
|
|
1133
|
+
"safety_identifier": "safetyIdentifier",
|
|
1134
|
+
"service_tier": "serviceTier",
|
|
1135
|
+
});
|
|
1136
|
+
});
|
|
1137
|
+
/** @internal */
|
|
1138
|
+
exports.SendResponsesRequestRequest$outboundSchema = z.object({
|
|
1139
|
+
input: models.ResponseInput$outboundSchema.optional(),
|
|
1140
|
+
instructions: z.nullable(z.string()).optional(),
|
|
1141
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
1142
|
+
tools: z.array(models.Tool$outboundSchema).optional(),
|
|
1143
|
+
toolChoice: models.ToolChoiceUnion$outboundSchema.optional(),
|
|
1144
|
+
parallelToolCalls: z.nullable(z.boolean()).optional(),
|
|
1145
|
+
model: z.string().optional(),
|
|
1146
|
+
models: z.array(z.string()).optional(),
|
|
1147
|
+
text: models.ResponseTextConfig$outboundSchema.optional(),
|
|
1148
|
+
reasoning: z.nullable(models.ResponseReasoningConfig$outboundSchema)
|
|
1149
|
+
.optional(),
|
|
1150
|
+
maxOutputTokens: z.nullable(z.number()).optional(),
|
|
1151
|
+
temperature: z.nullable(z.number()).optional(),
|
|
1152
|
+
topP: z.nullable(z.number()).optional(),
|
|
1153
|
+
topK: z.number().optional(),
|
|
1154
|
+
promptCacheKey: z.string().optional(),
|
|
1155
|
+
previousResponseId: z.nullable(z.string()).optional(),
|
|
1156
|
+
prompt: z.nullable(models.ResponsePrompt$outboundSchema).optional(),
|
|
1157
|
+
include: z.nullable(z.array(models.ResponseIncludable$outboundSchema))
|
|
1158
|
+
.optional(),
|
|
1159
|
+
background: z.nullable(z.boolean()).optional(),
|
|
1160
|
+
safetyIdentifier: z.string().optional(),
|
|
1161
|
+
store: z.nullable(z.boolean()).optional(),
|
|
1162
|
+
serviceTier: z.nullable(exports.ServiceTier$outboundSchema).optional(),
|
|
1163
|
+
truncation: z.nullable(exports.Truncation$outboundSchema).optional(),
|
|
1164
|
+
stream: z.nullable(z.boolean()).optional(),
|
|
1165
|
+
provider: z.nullable(z.lazy(() => exports.SendResponsesRequestProvider$outboundSchema)).optional(),
|
|
1166
|
+
plugins: z.array(z.union([
|
|
1167
|
+
z.lazy(() => exports.PluginModeration$outboundSchema),
|
|
1168
|
+
z.lazy(() => exports.PluginWeb$outboundSchema),
|
|
1169
|
+
z.lazy(() => exports.PluginChainOfThought$outboundSchema),
|
|
1170
|
+
z.lazy(() => exports.PluginFileParser$outboundSchema),
|
|
1171
|
+
])).optional(),
|
|
1172
|
+
user: z.string().optional(),
|
|
1173
|
+
}).transform((v) => {
|
|
1174
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1175
|
+
toolChoice: "tool_choice",
|
|
1176
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
1177
|
+
maxOutputTokens: "max_output_tokens",
|
|
1178
|
+
topP: "top_p",
|
|
1179
|
+
topK: "top_k",
|
|
1180
|
+
promptCacheKey: "prompt_cache_key",
|
|
1181
|
+
previousResponseId: "previous_response_id",
|
|
1182
|
+
safetyIdentifier: "safety_identifier",
|
|
1183
|
+
serviceTier: "service_tier",
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
/**
|
|
1187
|
+
* @internal
|
|
1188
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1189
|
+
*/
|
|
1190
|
+
var SendResponsesRequestRequest$;
|
|
1191
|
+
(function (SendResponsesRequestRequest$) {
|
|
1192
|
+
/** @deprecated use `SendResponsesRequestRequest$inboundSchema` instead. */
|
|
1193
|
+
SendResponsesRequestRequest$.inboundSchema = exports.SendResponsesRequestRequest$inboundSchema;
|
|
1194
|
+
/** @deprecated use `SendResponsesRequestRequest$outboundSchema` instead. */
|
|
1195
|
+
SendResponsesRequestRequest$.outboundSchema = exports.SendResponsesRequestRequest$outboundSchema;
|
|
1196
|
+
})(SendResponsesRequestRequest$ || (exports.SendResponsesRequestRequest$ = SendResponsesRequestRequest$ = {}));
|
|
1197
|
+
function sendResponsesRequestRequestToJSON(sendResponsesRequestRequest) {
|
|
1198
|
+
return JSON.stringify(exports.SendResponsesRequestRequest$outboundSchema.parse(sendResponsesRequestRequest));
|
|
1199
|
+
}
|
|
1200
|
+
function sendResponsesRequestRequestFromJSON(jsonString) {
|
|
1201
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SendResponsesRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendResponsesRequestRequest' from JSON`);
|
|
1202
|
+
}
|
|
48
1203
|
/** @internal */
|
|
49
1204
|
exports.SendResponsesRequestResponseBody$inboundSchema = z.object({
|
|
50
1205
|
data: z.string().transform((v, ctx) => {
|