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