@openrouter/sdk 0.0.0-beta.33 → 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.
Files changed (201) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/REACT_QUERY.md +4 -4
  3. package/README.md +9 -9
  4. package/dist/commonjs/funcs/betaResponsesSend.d.ts +26 -0
  5. package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +5 -13
  7. package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -0
  8. package/dist/commonjs/funcs/chatSend.d.ts +3 -13
  9. package/dist/commonjs/funcs/chatSend.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/chatSend.js +1 -8
  11. package/dist/commonjs/funcs/chatSend.js.map +1 -1
  12. package/dist/commonjs/funcs/modelsList.d.ts +1 -7
  13. package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/modelsList.js +1 -8
  15. package/dist/commonjs/funcs/modelsList.js.map +1 -1
  16. package/dist/commonjs/lib/config.d.ts +2 -2
  17. package/dist/commonjs/lib/config.js +2 -2
  18. package/dist/commonjs/models/endpointslist.d.ts +8 -8
  19. package/dist/commonjs/models/endpointslist.d.ts.map +1 -1
  20. package/dist/commonjs/models/endpointslist.js +13 -13
  21. package/dist/commonjs/models/endpointslist.js.map +1 -1
  22. package/dist/commonjs/models/index.d.ts +1 -4
  23. package/dist/commonjs/models/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/index.js +1 -4
  25. package/dist/commonjs/models/index.js.map +1 -1
  26. package/dist/commonjs/models/operations/generate.d.ts +103 -103
  27. package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/generate.js +142 -153
  29. package/dist/commonjs/models/operations/generate.js.map +1 -1
  30. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +1693 -0
  31. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/sendresponsesrequest.js +1156 -1
  33. package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
  34. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +19 -19
  35. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
  36. package/dist/commonjs/models/responsesnonstreamingresponse.js +30 -32
  37. package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
  38. package/dist/commonjs/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  39. package/dist/commonjs/models/toolchoiceunion.d.ts.map +1 -0
  40. package/dist/commonjs/models/{toolchoice.js → toolchoiceunion.js} +94 -21
  41. package/dist/commonjs/models/toolchoiceunion.js.map +1 -0
  42. package/dist/commonjs/react-query/betaResponsesSend.d.ts +23 -0
  43. package/dist/commonjs/react-query/betaResponsesSend.d.ts.map +1 -0
  44. package/dist/commonjs/react-query/betaResponsesSend.js +47 -0
  45. package/dist/commonjs/react-query/betaResponsesSend.js.map +1 -0
  46. package/dist/commonjs/react-query/chatSend.d.ts +1 -5
  47. package/dist/commonjs/react-query/chatSend.d.ts.map +1 -1
  48. package/dist/commonjs/react-query/chatSend.js +0 -3
  49. package/dist/commonjs/react-query/chatSend.js.map +1 -1
  50. package/dist/commonjs/react-query/index.d.ts +1 -1
  51. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  52. package/dist/commonjs/react-query/index.js +1 -1
  53. package/dist/commonjs/react-query/index.js.map +1 -1
  54. package/dist/commonjs/react-query/modelsList.d.ts +1 -5
  55. package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/modelsList.js +0 -3
  57. package/dist/commonjs/react-query/modelsList.js.map +1 -1
  58. package/dist/commonjs/sdk/chat.d.ts +3 -11
  59. package/dist/commonjs/sdk/chat.d.ts.map +1 -1
  60. package/dist/commonjs/sdk/chat.js +1 -3
  61. package/dist/commonjs/sdk/chat.js.map +1 -1
  62. package/dist/commonjs/sdk/models.d.ts +1 -5
  63. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  64. package/dist/commonjs/sdk/models.js +1 -3
  65. package/dist/commonjs/sdk/models.js.map +1 -1
  66. package/dist/commonjs/sdk/responses.d.ts +6 -14
  67. package/dist/commonjs/sdk/responses.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/responses.js +4 -6
  69. package/dist/commonjs/sdk/responses.js.map +1 -1
  70. package/dist/esm/funcs/betaResponsesSend.d.ts +26 -0
  71. package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -0
  72. package/dist/esm/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +4 -11
  73. package/dist/esm/funcs/betaResponsesSend.js.map +1 -0
  74. package/dist/esm/funcs/chatSend.d.ts +3 -13
  75. package/dist/esm/funcs/chatSend.d.ts.map +1 -1
  76. package/dist/esm/funcs/chatSend.js +1 -7
  77. package/dist/esm/funcs/chatSend.js.map +1 -1
  78. package/dist/esm/funcs/modelsList.d.ts +1 -7
  79. package/dist/esm/funcs/modelsList.d.ts.map +1 -1
  80. package/dist/esm/funcs/modelsList.js +1 -7
  81. package/dist/esm/funcs/modelsList.js.map +1 -1
  82. package/dist/esm/lib/config.d.ts +2 -2
  83. package/dist/esm/lib/config.js +2 -2
  84. package/dist/esm/models/endpointslist.d.ts +8 -8
  85. package/dist/esm/models/endpointslist.d.ts.map +1 -1
  86. package/dist/esm/models/endpointslist.js +12 -12
  87. package/dist/esm/models/endpointslist.js.map +1 -1
  88. package/dist/esm/models/index.d.ts +1 -4
  89. package/dist/esm/models/index.d.ts.map +1 -1
  90. package/dist/esm/models/index.js +1 -4
  91. package/dist/esm/models/index.js.map +1 -1
  92. package/dist/esm/models/operations/generate.d.ts +103 -103
  93. package/dist/esm/models/operations/generate.d.ts.map +1 -1
  94. package/dist/esm/models/operations/generate.js +138 -149
  95. package/dist/esm/models/operations/generate.js.map +1 -1
  96. package/dist/esm/models/operations/sendresponsesrequest.d.ts +1693 -0
  97. package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
  98. package/dist/esm/models/operations/sendresponsesrequest.js +1117 -0
  99. package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
  100. package/dist/esm/models/responsesnonstreamingresponse.d.ts +19 -19
  101. package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
  102. package/dist/esm/models/responsesnonstreamingresponse.js +29 -31
  103. package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
  104. package/dist/esm/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  105. package/dist/esm/models/toolchoiceunion.d.ts.map +1 -0
  106. package/dist/esm/models/toolchoiceunion.js +164 -0
  107. package/dist/esm/models/toolchoiceunion.js.map +1 -0
  108. package/dist/esm/react-query/betaResponsesSend.d.ts +23 -0
  109. package/dist/esm/react-query/betaResponsesSend.d.ts.map +1 -0
  110. package/dist/esm/react-query/{betaResponsesSendRequest.js → betaResponsesSend.js} +10 -11
  111. package/dist/esm/react-query/betaResponsesSend.js.map +1 -0
  112. package/dist/esm/react-query/chatSend.d.ts +1 -5
  113. package/dist/esm/react-query/chatSend.d.ts.map +1 -1
  114. package/dist/esm/react-query/chatSend.js +0 -1
  115. package/dist/esm/react-query/chatSend.js.map +1 -1
  116. package/dist/esm/react-query/index.d.ts +1 -1
  117. package/dist/esm/react-query/index.d.ts.map +1 -1
  118. package/dist/esm/react-query/index.js +1 -1
  119. package/dist/esm/react-query/index.js.map +1 -1
  120. package/dist/esm/react-query/modelsList.d.ts +1 -5
  121. package/dist/esm/react-query/modelsList.d.ts.map +1 -1
  122. package/dist/esm/react-query/modelsList.js +0 -1
  123. package/dist/esm/react-query/modelsList.js.map +1 -1
  124. package/dist/esm/sdk/chat.d.ts +3 -11
  125. package/dist/esm/sdk/chat.d.ts.map +1 -1
  126. package/dist/esm/sdk/chat.js +0 -1
  127. package/dist/esm/sdk/chat.js.map +1 -1
  128. package/dist/esm/sdk/models.d.ts +1 -5
  129. package/dist/esm/sdk/models.d.ts.map +1 -1
  130. package/dist/esm/sdk/models.js +0 -1
  131. package/dist/esm/sdk/models.js.map +1 -1
  132. package/dist/esm/sdk/responses.d.ts +6 -14
  133. package/dist/esm/sdk/responses.d.ts.map +1 -1
  134. package/dist/esm/sdk/responses.js +3 -4
  135. package/dist/esm/sdk/responses.js.map +1 -1
  136. package/docs/sdks/responses/README.md +9 -9
  137. package/examples/{betaResponsesSendRequest.example.ts → betaResponsesSend.example.ts} +2 -2
  138. package/jsr.json +1 -1
  139. package/package.json +1 -1
  140. package/src/funcs/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +19 -24
  141. package/src/funcs/chatSend.ts +6 -12
  142. package/src/funcs/modelsList.ts +3 -9
  143. package/src/lib/config.ts +2 -2
  144. package/src/models/endpointslist.ts +14 -18
  145. package/src/models/index.ts +1 -4
  146. package/src/models/operations/generate.ts +232 -188
  147. package/src/models/operations/sendresponsesrequest.ts +2005 -0
  148. package/src/models/responsesnonstreamingresponse.ts +37 -55
  149. package/src/models/{toolchoice.ts → toolchoiceunion.ts} +181 -37
  150. package/src/react-query/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +20 -26
  151. package/src/react-query/chatSend.ts +2 -4
  152. package/src/react-query/index.ts +1 -1
  153. package/src/react-query/modelsList.ts +2 -4
  154. package/src/sdk/chat.ts +5 -7
  155. package/src/sdk/models.ts +2 -4
  156. package/src/sdk/responses.ts +18 -21
  157. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts +0 -36
  158. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  159. package/dist/commonjs/funcs/betaResponsesSendRequest.js.map +0 -1
  160. package/dist/commonjs/models/openairesponsesrequest.d.ts +0 -1704
  161. package/dist/commonjs/models/openairesponsesrequest.d.ts.map +0 -1
  162. package/dist/commonjs/models/openairesponsesrequest.js +0 -1210
  163. package/dist/commonjs/models/openairesponsesrequest.js.map +0 -1
  164. package/dist/commonjs/models/toolchoice.d.ts.map +0 -1
  165. package/dist/commonjs/models/toolchoice.js.map +0 -1
  166. package/dist/commonjs/models/toolchoicefunction.d.ts +0 -57
  167. package/dist/commonjs/models/toolchoicefunction.d.ts.map +0 -1
  168. package/dist/commonjs/models/toolchoicefunction.js +0 -89
  169. package/dist/commonjs/models/toolchoicefunction.js.map +0 -1
  170. package/dist/commonjs/models/toolchoicetypes.d.ts +0 -33
  171. package/dist/commonjs/models/toolchoicetypes.d.ts.map +0 -1
  172. package/dist/commonjs/models/toolchoicetypes.js +0 -70
  173. package/dist/commonjs/models/toolchoicetypes.js.map +0 -1
  174. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts +0 -28
  175. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  176. package/dist/commonjs/react-query/betaResponsesSendRequest.js +0 -50
  177. package/dist/commonjs/react-query/betaResponsesSendRequest.js.map +0 -1
  178. package/dist/esm/funcs/betaResponsesSendRequest.d.ts +0 -36
  179. package/dist/esm/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  180. package/dist/esm/funcs/betaResponsesSendRequest.js.map +0 -1
  181. package/dist/esm/models/openairesponsesrequest.d.ts +0 -1704
  182. package/dist/esm/models/openairesponsesrequest.d.ts.map +0 -1
  183. package/dist/esm/models/openairesponsesrequest.js +0 -1136
  184. package/dist/esm/models/openairesponsesrequest.js.map +0 -1
  185. package/dist/esm/models/toolchoice.d.ts.map +0 -1
  186. package/dist/esm/models/toolchoice.js +0 -95
  187. package/dist/esm/models/toolchoice.js.map +0 -1
  188. package/dist/esm/models/toolchoicefunction.d.ts +0 -57
  189. package/dist/esm/models/toolchoicefunction.d.ts.map +0 -1
  190. package/dist/esm/models/toolchoicefunction.js +0 -51
  191. package/dist/esm/models/toolchoicefunction.js.map +0 -1
  192. package/dist/esm/models/toolchoicetypes.d.ts +0 -33
  193. package/dist/esm/models/toolchoicetypes.d.ts.map +0 -1
  194. package/dist/esm/models/toolchoicetypes.js +0 -32
  195. package/dist/esm/models/toolchoicetypes.js.map +0 -1
  196. package/dist/esm/react-query/betaResponsesSendRequest.d.ts +0 -28
  197. package/dist/esm/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  198. package/dist/esm/react-query/betaResponsesSendRequest.js.map +0 -1
  199. package/src/models/openairesponsesrequest.ts +0 -1974
  200. package/src/models/toolchoicefunction.ts +0 -100
  201. package/src/models/toolchoicetypes.ts +0 -73
@@ -1,1974 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
8
- import { ClosedEnum } from "../types/enums.js";
9
- import { Result as SafeParseResult } from "../types/fp.js";
10
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
11
- import {
12
- ResponseIncludable,
13
- ResponseIncludable$inboundSchema,
14
- ResponseIncludable$outboundSchema,
15
- } from "./responseincludable.js";
16
- import {
17
- ResponseInput,
18
- ResponseInput$inboundSchema,
19
- ResponseInput$Outbound,
20
- ResponseInput$outboundSchema,
21
- } from "./responseinput.js";
22
- import {
23
- ResponsePrompt,
24
- ResponsePrompt$inboundSchema,
25
- ResponsePrompt$Outbound,
26
- ResponsePrompt$outboundSchema,
27
- } from "./responseprompt.js";
28
- import {
29
- ResponseReasoningConfig,
30
- ResponseReasoningConfig$inboundSchema,
31
- ResponseReasoningConfig$Outbound,
32
- ResponseReasoningConfig$outboundSchema,
33
- } from "./responsereasoningconfig.js";
34
- import {
35
- ResponseTextConfig,
36
- ResponseTextConfig$inboundSchema,
37
- ResponseTextConfig$Outbound,
38
- ResponseTextConfig$outboundSchema,
39
- } from "./responsetextconfig.js";
40
- import {
41
- Tool,
42
- Tool$inboundSchema,
43
- Tool$Outbound,
44
- Tool$outboundSchema,
45
- } from "./tool.js";
46
- import {
47
- ToolChoice,
48
- ToolChoice$inboundSchema,
49
- ToolChoice$Outbound,
50
- ToolChoice$outboundSchema,
51
- } from "./toolchoice.js";
52
-
53
- export const OpenAIResponsesRequestServiceTier = {
54
- Auto: "auto",
55
- Default: "default",
56
- Flex: "flex",
57
- Priority: "priority",
58
- Scale: "scale",
59
- } as const;
60
- export type OpenAIResponsesRequestServiceTier = ClosedEnum<
61
- typeof OpenAIResponsesRequestServiceTier
62
- >;
63
-
64
- export const OpenAIResponsesRequestTruncation = {
65
- Auto: "auto",
66
- Disabled: "disabled",
67
- } as const;
68
- export type OpenAIResponsesRequestTruncation = ClosedEnum<
69
- typeof OpenAIResponsesRequestTruncation
70
- >;
71
-
72
- /**
73
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
74
- *
75
- * @remarks
76
- * - allow: (default) allow providers which store user data non-transiently and may train on it
77
- * - deny: use only providers which do not collect user data.
78
- */
79
- export const DataCollection = {
80
- Deny: "deny",
81
- Allow: "allow",
82
- } as const;
83
- /**
84
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
85
- *
86
- * @remarks
87
- * - allow: (default) allow providers which store user data non-transiently and may train on it
88
- * - deny: use only providers which do not collect user data.
89
- */
90
- export type DataCollection = ClosedEnum<typeof DataCollection>;
91
-
92
- export const OrderEnum = {
93
- AnyScale: "AnyScale",
94
- CentML: "Cent-ML",
95
- HuggingFace: "HuggingFace",
96
- Hyperbolic2: "Hyperbolic 2",
97
- Lepton: "Lepton",
98
- Lynn2: "Lynn 2",
99
- Lynn: "Lynn",
100
- Mancer: "Mancer",
101
- Modal: "Modal",
102
- OctoAI: "OctoAI",
103
- Recursal: "Recursal",
104
- Reflection: "Reflection",
105
- Replicate: "Replicate",
106
- SambaNova2: "SambaNova 2",
107
- SFCompute: "SF Compute",
108
- Together2: "Together 2",
109
- OneDotAI: "01.AI",
110
- Ai21: "AI21",
111
- AionLabs: "AionLabs",
112
- Alibaba: "Alibaba",
113
- AmazonBedrock: "Amazon Bedrock",
114
- Anthropic: "Anthropic",
115
- AtlasCloud: "AtlasCloud",
116
- Atoma: "Atoma",
117
- Avian: "Avian",
118
- Azure: "Azure",
119
- BaseTen: "BaseTen",
120
- Cerebras: "Cerebras",
121
- Chutes: "Chutes",
122
- Cloudflare: "Cloudflare",
123
- Cohere: "Cohere",
124
- CrofAI: "CrofAI",
125
- Crusoe: "Crusoe",
126
- DeepInfra: "DeepInfra",
127
- DeepSeek: "DeepSeek",
128
- Enfer: "Enfer",
129
- Featherless: "Featherless",
130
- Fireworks: "Fireworks",
131
- Friendli: "Friendli",
132
- GMICloud: "GMICloud",
133
- Google: "Google",
134
- GoogleAIStudio: "Google AI Studio",
135
- Groq: "Groq",
136
- Hyperbolic: "Hyperbolic",
137
- Inception: "Inception",
138
- InferenceNet: "InferenceNet",
139
- Infermatic: "Infermatic",
140
- Inflection: "Inflection",
141
- InoCloud: "InoCloud",
142
- Kluster: "Kluster",
143
- Lambda: "Lambda",
144
- Liquid: "Liquid",
145
- Mancer2: "Mancer 2",
146
- Meta: "Meta",
147
- Minimax: "Minimax",
148
- Mistral: "Mistral",
149
- MoonshotAI: "Moonshot AI",
150
- Morph: "Morph",
151
- NCompass: "NCompass",
152
- Nebius: "Nebius",
153
- NextBit: "NextBit",
154
- Nineteen: "Nineteen",
155
- Novita: "Novita",
156
- Nvidia: "Nvidia",
157
- OpenAI: "OpenAI",
158
- OpenInference: "OpenInference",
159
- Parasail: "Parasail",
160
- Perplexity: "Perplexity",
161
- Phala: "Phala",
162
- Relace: "Relace",
163
- SambaNova: "SambaNova",
164
- SiliconFlow: "SiliconFlow",
165
- Stealth: "Stealth",
166
- Switchpoint: "Switchpoint",
167
- Targon: "Targon",
168
- Together: "Together",
169
- Ubicloud: "Ubicloud",
170
- Venice: "Venice",
171
- WandB: "WandB",
172
- XAI: "xAI",
173
- ZAi: "Z.AI",
174
- FakeProvider: "FakeProvider",
175
- } as const;
176
- export type OrderEnum = ClosedEnum<typeof OrderEnum>;
177
-
178
- export type Order = OrderEnum | string;
179
-
180
- export const OnlyEnum = {
181
- AnyScale: "AnyScale",
182
- CentML: "Cent-ML",
183
- HuggingFace: "HuggingFace",
184
- Hyperbolic2: "Hyperbolic 2",
185
- Lepton: "Lepton",
186
- Lynn2: "Lynn 2",
187
- Lynn: "Lynn",
188
- Mancer: "Mancer",
189
- Modal: "Modal",
190
- OctoAI: "OctoAI",
191
- Recursal: "Recursal",
192
- Reflection: "Reflection",
193
- Replicate: "Replicate",
194
- SambaNova2: "SambaNova 2",
195
- SFCompute: "SF Compute",
196
- Together2: "Together 2",
197
- OneDotAI: "01.AI",
198
- Ai21: "AI21",
199
- AionLabs: "AionLabs",
200
- Alibaba: "Alibaba",
201
- AmazonBedrock: "Amazon Bedrock",
202
- Anthropic: "Anthropic",
203
- AtlasCloud: "AtlasCloud",
204
- Atoma: "Atoma",
205
- Avian: "Avian",
206
- Azure: "Azure",
207
- BaseTen: "BaseTen",
208
- Cerebras: "Cerebras",
209
- Chutes: "Chutes",
210
- Cloudflare: "Cloudflare",
211
- Cohere: "Cohere",
212
- CrofAI: "CrofAI",
213
- Crusoe: "Crusoe",
214
- DeepInfra: "DeepInfra",
215
- DeepSeek: "DeepSeek",
216
- Enfer: "Enfer",
217
- Featherless: "Featherless",
218
- Fireworks: "Fireworks",
219
- Friendli: "Friendli",
220
- GMICloud: "GMICloud",
221
- Google: "Google",
222
- GoogleAIStudio: "Google AI Studio",
223
- Groq: "Groq",
224
- Hyperbolic: "Hyperbolic",
225
- Inception: "Inception",
226
- InferenceNet: "InferenceNet",
227
- Infermatic: "Infermatic",
228
- Inflection: "Inflection",
229
- InoCloud: "InoCloud",
230
- Kluster: "Kluster",
231
- Lambda: "Lambda",
232
- Liquid: "Liquid",
233
- Mancer2: "Mancer 2",
234
- Meta: "Meta",
235
- Minimax: "Minimax",
236
- Mistral: "Mistral",
237
- MoonshotAI: "Moonshot AI",
238
- Morph: "Morph",
239
- NCompass: "NCompass",
240
- Nebius: "Nebius",
241
- NextBit: "NextBit",
242
- Nineteen: "Nineteen",
243
- Novita: "Novita",
244
- Nvidia: "Nvidia",
245
- OpenAI: "OpenAI",
246
- OpenInference: "OpenInference",
247
- Parasail: "Parasail",
248
- Perplexity: "Perplexity",
249
- Phala: "Phala",
250
- Relace: "Relace",
251
- SambaNova: "SambaNova",
252
- SiliconFlow: "SiliconFlow",
253
- Stealth: "Stealth",
254
- Switchpoint: "Switchpoint",
255
- Targon: "Targon",
256
- Together: "Together",
257
- Ubicloud: "Ubicloud",
258
- Venice: "Venice",
259
- WandB: "WandB",
260
- XAI: "xAI",
261
- ZAi: "Z.AI",
262
- FakeProvider: "FakeProvider",
263
- } as const;
264
- export type OnlyEnum = ClosedEnum<typeof OnlyEnum>;
265
-
266
- export type Only = OnlyEnum | string;
267
-
268
- export const IgnoreEnum = {
269
- AnyScale: "AnyScale",
270
- CentML: "Cent-ML",
271
- HuggingFace: "HuggingFace",
272
- Hyperbolic2: "Hyperbolic 2",
273
- Lepton: "Lepton",
274
- Lynn2: "Lynn 2",
275
- Lynn: "Lynn",
276
- Mancer: "Mancer",
277
- Modal: "Modal",
278
- OctoAI: "OctoAI",
279
- Recursal: "Recursal",
280
- Reflection: "Reflection",
281
- Replicate: "Replicate",
282
- SambaNova2: "SambaNova 2",
283
- SFCompute: "SF Compute",
284
- Together2: "Together 2",
285
- OneDotAI: "01.AI",
286
- Ai21: "AI21",
287
- AionLabs: "AionLabs",
288
- Alibaba: "Alibaba",
289
- AmazonBedrock: "Amazon Bedrock",
290
- Anthropic: "Anthropic",
291
- AtlasCloud: "AtlasCloud",
292
- Atoma: "Atoma",
293
- Avian: "Avian",
294
- Azure: "Azure",
295
- BaseTen: "BaseTen",
296
- Cerebras: "Cerebras",
297
- Chutes: "Chutes",
298
- Cloudflare: "Cloudflare",
299
- Cohere: "Cohere",
300
- CrofAI: "CrofAI",
301
- Crusoe: "Crusoe",
302
- DeepInfra: "DeepInfra",
303
- DeepSeek: "DeepSeek",
304
- Enfer: "Enfer",
305
- Featherless: "Featherless",
306
- Fireworks: "Fireworks",
307
- Friendli: "Friendli",
308
- GMICloud: "GMICloud",
309
- Google: "Google",
310
- GoogleAIStudio: "Google AI Studio",
311
- Groq: "Groq",
312
- Hyperbolic: "Hyperbolic",
313
- Inception: "Inception",
314
- InferenceNet: "InferenceNet",
315
- Infermatic: "Infermatic",
316
- Inflection: "Inflection",
317
- InoCloud: "InoCloud",
318
- Kluster: "Kluster",
319
- Lambda: "Lambda",
320
- Liquid: "Liquid",
321
- Mancer2: "Mancer 2",
322
- Meta: "Meta",
323
- Minimax: "Minimax",
324
- Mistral: "Mistral",
325
- MoonshotAI: "Moonshot AI",
326
- Morph: "Morph",
327
- NCompass: "NCompass",
328
- Nebius: "Nebius",
329
- NextBit: "NextBit",
330
- Nineteen: "Nineteen",
331
- Novita: "Novita",
332
- Nvidia: "Nvidia",
333
- OpenAI: "OpenAI",
334
- OpenInference: "OpenInference",
335
- Parasail: "Parasail",
336
- Perplexity: "Perplexity",
337
- Phala: "Phala",
338
- Relace: "Relace",
339
- SambaNova: "SambaNova",
340
- SiliconFlow: "SiliconFlow",
341
- Stealth: "Stealth",
342
- Switchpoint: "Switchpoint",
343
- Targon: "Targon",
344
- Together: "Together",
345
- Ubicloud: "Ubicloud",
346
- Venice: "Venice",
347
- WandB: "WandB",
348
- XAI: "xAI",
349
- ZAi: "Z.AI",
350
- FakeProvider: "FakeProvider",
351
- } as const;
352
- export type IgnoreEnum = ClosedEnum<typeof IgnoreEnum>;
353
-
354
- export type Ignore = IgnoreEnum | string;
355
-
356
- export const OpenAIResponsesRequestQuantization = {
357
- Int4: "int4",
358
- Int8: "int8",
359
- Fp4: "fp4",
360
- Fp6: "fp6",
361
- Fp8: "fp8",
362
- Fp16: "fp16",
363
- Bf16: "bf16",
364
- Fp32: "fp32",
365
- Unknown: "unknown",
366
- } as const;
367
- export type OpenAIResponsesRequestQuantization = ClosedEnum<
368
- typeof OpenAIResponsesRequestQuantization
369
- >;
370
-
371
- /**
372
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
373
- */
374
- export const Sort = {
375
- Price: "price",
376
- Throughput: "throughput",
377
- Latency: "latency",
378
- } as const;
379
- /**
380
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
381
- */
382
- export type Sort = ClosedEnum<typeof Sort>;
383
-
384
- export type OpenAIResponsesRequestPrompt = number | string | any;
385
-
386
- export type OpenAIResponsesRequestCompletion = number | string | any;
387
-
388
- export type OpenAIResponsesRequestImage = number | string | any;
389
-
390
- export type OpenAIResponsesRequestAudio = number | string | any;
391
-
392
- export type OpenAIResponsesRequestRequest = number | string | any;
393
-
394
- /**
395
- * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
396
- */
397
- export type MaxPrice = {
398
- prompt?: number | string | any | undefined;
399
- completion?: number | string | any | undefined;
400
- image?: number | string | any | undefined;
401
- audio?: number | string | any | undefined;
402
- request?: number | string | any | undefined;
403
- };
404
-
405
- export type Experimental = {};
406
-
407
- /**
408
- * When multiple model providers are available, optionally indicate your routing preference.
409
- */
410
- export type Provider = {
411
- /**
412
- * Whether to allow backup providers to serve requests
413
- *
414
- * @remarks
415
- * - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
416
- * - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
417
- */
418
- allowFallbacks?: boolean | null | undefined;
419
- /**
420
- * Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
421
- */
422
- requireParameters?: boolean | null | undefined;
423
- /**
424
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
425
- *
426
- * @remarks
427
- * - allow: (default) allow providers which store user data non-transiently and may train on it
428
- * - deny: use only providers which do not collect user data.
429
- */
430
- dataCollection?: DataCollection | null | undefined;
431
- /**
432
- * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
433
- */
434
- zdr?: boolean | null | undefined;
435
- /**
436
- * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
437
- */
438
- order?: Array<OrderEnum | string> | null | undefined;
439
- /**
440
- * List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
441
- */
442
- only?: Array<OnlyEnum | string> | null | undefined;
443
- /**
444
- * List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
445
- */
446
- ignore?: Array<IgnoreEnum | string> | null | undefined;
447
- /**
448
- * A list of quantization levels to filter the provider by.
449
- */
450
- quantizations?: Array<OpenAIResponsesRequestQuantization> | null | undefined;
451
- /**
452
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
453
- */
454
- sort?: Sort | null | undefined;
455
- /**
456
- * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
457
- */
458
- maxPrice?: MaxPrice | undefined;
459
- experimental?: Experimental | null | undefined;
460
- };
461
-
462
- export const IdFileParser = {
463
- FileParser: "file-parser",
464
- } as const;
465
- export type IdFileParser = ClosedEnum<typeof IdFileParser>;
466
-
467
- export const PdfEngine = {
468
- MistralOcr: "mistral-ocr",
469
- PdfText: "pdf-text",
470
- Native: "native",
471
- } as const;
472
- export type PdfEngine = ClosedEnum<typeof PdfEngine>;
473
-
474
- export type Pdf = {
475
- engine?: PdfEngine | undefined;
476
- };
477
-
478
- export type PluginFileParser = {
479
- id: IdFileParser;
480
- maxFiles?: number | undefined;
481
- pdf?: Pdf | undefined;
482
- };
483
-
484
- export const IdChainOfThought = {
485
- ChainOfThought: "chain-of-thought",
486
- } as const;
487
- export type IdChainOfThought = ClosedEnum<typeof IdChainOfThought>;
488
-
489
- export type PluginChainOfThought = {
490
- id: IdChainOfThought;
491
- };
492
-
493
- export const IdWeb = {
494
- Web: "web",
495
- } as const;
496
- export type IdWeb = ClosedEnum<typeof IdWeb>;
497
-
498
- export const Engine = {
499
- Native: "native",
500
- Exa: "exa",
501
- } as const;
502
- export type Engine = ClosedEnum<typeof Engine>;
503
-
504
- export type PluginWeb = {
505
- id: IdWeb;
506
- maxResults?: number | undefined;
507
- searchPrompt?: string | undefined;
508
- engine?: Engine | undefined;
509
- };
510
-
511
- export const IdModeration = {
512
- Moderation: "moderation",
513
- } as const;
514
- export type IdModeration = ClosedEnum<typeof IdModeration>;
515
-
516
- export type PluginModeration = {
517
- id: IdModeration;
518
- };
519
-
520
- export type Plugin =
521
- | PluginModeration
522
- | PluginWeb
523
- | PluginChainOfThought
524
- | PluginFileParser;
525
-
526
- /**
527
- * Request schema for OpenAI-compatible Responses API
528
- */
529
- export type OpenAIResponsesRequest = {
530
- /**
531
- * Input for Responses API (can be a string or array of input items)
532
- */
533
- input?: ResponseInput | undefined;
534
- instructions?: string | null | undefined;
535
- /**
536
- * Metadata for Responses API requests (max 16 pairs, keys ≤64 chars, values ≤512 chars)
537
- */
538
- metadata?: { [k: string]: string } | null | undefined;
539
- tools?: Array<Tool> | undefined;
540
- /**
541
- * Tool choice configuration
542
- */
543
- toolChoice?: ToolChoice | undefined;
544
- parallelToolCalls?: boolean | null | undefined;
545
- model?: string | undefined;
546
- models?: Array<string> | undefined;
547
- /**
548
- * Text configuration for Responses API
549
- */
550
- text?: ResponseTextConfig | undefined;
551
- /**
552
- * Reasoning configuration for Responses API
553
- */
554
- reasoning?: ResponseReasoningConfig | null | undefined;
555
- maxOutputTokens?: number | null | undefined;
556
- temperature?: number | null | undefined;
557
- topP?: number | null | undefined;
558
- topK?: number | undefined;
559
- promptCacheKey?: string | undefined;
560
- previousResponseId?: string | null | undefined;
561
- /**
562
- * Prompt configuration with variables
563
- */
564
- prompt?: ResponsePrompt | null | undefined;
565
- include?: Array<ResponseIncludable> | null | undefined;
566
- background?: boolean | null | undefined;
567
- safetyIdentifier?: string | undefined;
568
- store?: boolean | null | undefined;
569
- serviceTier?: OpenAIResponsesRequestServiceTier | null | undefined;
570
- truncation?: OpenAIResponsesRequestTruncation | null | undefined;
571
- stream?: boolean | null | undefined;
572
- /**
573
- * When multiple model providers are available, optionally indicate your routing preference.
574
- */
575
- provider?: Provider | null | undefined;
576
- /**
577
- * Plugins you want to enable for this request, including their settings.
578
- */
579
- plugins?:
580
- | Array<
581
- PluginModeration | PluginWeb | PluginChainOfThought | PluginFileParser
582
- >
583
- | undefined;
584
- /**
585
- * A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
586
- */
587
- user?: string | undefined;
588
- };
589
-
590
- /** @internal */
591
- export const OpenAIResponsesRequestServiceTier$inboundSchema: z.ZodNativeEnum<
592
- typeof OpenAIResponsesRequestServiceTier
593
- > = z.nativeEnum(OpenAIResponsesRequestServiceTier);
594
-
595
- /** @internal */
596
- export const OpenAIResponsesRequestServiceTier$outboundSchema: z.ZodNativeEnum<
597
- typeof OpenAIResponsesRequestServiceTier
598
- > = OpenAIResponsesRequestServiceTier$inboundSchema;
599
-
600
- /**
601
- * @internal
602
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
603
- */
604
- export namespace OpenAIResponsesRequestServiceTier$ {
605
- /** @deprecated use `OpenAIResponsesRequestServiceTier$inboundSchema` instead. */
606
- export const inboundSchema = OpenAIResponsesRequestServiceTier$inboundSchema;
607
- /** @deprecated use `OpenAIResponsesRequestServiceTier$outboundSchema` instead. */
608
- export const outboundSchema =
609
- OpenAIResponsesRequestServiceTier$outboundSchema;
610
- }
611
-
612
- /** @internal */
613
- export const OpenAIResponsesRequestTruncation$inboundSchema: z.ZodNativeEnum<
614
- typeof OpenAIResponsesRequestTruncation
615
- > = z.nativeEnum(OpenAIResponsesRequestTruncation);
616
-
617
- /** @internal */
618
- export const OpenAIResponsesRequestTruncation$outboundSchema: z.ZodNativeEnum<
619
- typeof OpenAIResponsesRequestTruncation
620
- > = OpenAIResponsesRequestTruncation$inboundSchema;
621
-
622
- /**
623
- * @internal
624
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
625
- */
626
- export namespace OpenAIResponsesRequestTruncation$ {
627
- /** @deprecated use `OpenAIResponsesRequestTruncation$inboundSchema` instead. */
628
- export const inboundSchema = OpenAIResponsesRequestTruncation$inboundSchema;
629
- /** @deprecated use `OpenAIResponsesRequestTruncation$outboundSchema` instead. */
630
- export const outboundSchema = OpenAIResponsesRequestTruncation$outboundSchema;
631
- }
632
-
633
- /** @internal */
634
- export const DataCollection$inboundSchema: z.ZodNativeEnum<
635
- typeof DataCollection
636
- > = z.nativeEnum(DataCollection);
637
-
638
- /** @internal */
639
- export const DataCollection$outboundSchema: z.ZodNativeEnum<
640
- typeof DataCollection
641
- > = DataCollection$inboundSchema;
642
-
643
- /**
644
- * @internal
645
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
646
- */
647
- export namespace DataCollection$ {
648
- /** @deprecated use `DataCollection$inboundSchema` instead. */
649
- export const inboundSchema = DataCollection$inboundSchema;
650
- /** @deprecated use `DataCollection$outboundSchema` instead. */
651
- export const outboundSchema = DataCollection$outboundSchema;
652
- }
653
-
654
- /** @internal */
655
- export const OrderEnum$inboundSchema: z.ZodNativeEnum<typeof OrderEnum> = z
656
- .nativeEnum(OrderEnum);
657
-
658
- /** @internal */
659
- export const OrderEnum$outboundSchema: z.ZodNativeEnum<typeof OrderEnum> =
660
- OrderEnum$inboundSchema;
661
-
662
- /**
663
- * @internal
664
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
665
- */
666
- export namespace OrderEnum$ {
667
- /** @deprecated use `OrderEnum$inboundSchema` instead. */
668
- export const inboundSchema = OrderEnum$inboundSchema;
669
- /** @deprecated use `OrderEnum$outboundSchema` instead. */
670
- export const outboundSchema = OrderEnum$outboundSchema;
671
- }
672
-
673
- /** @internal */
674
- export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
675
- .union([OrderEnum$inboundSchema, z.string()]);
676
-
677
- /** @internal */
678
- export type Order$Outbound = string | string;
679
-
680
- /** @internal */
681
- export const Order$outboundSchema: z.ZodType<
682
- Order$Outbound,
683
- z.ZodTypeDef,
684
- Order
685
- > = z.union([OrderEnum$outboundSchema, z.string()]);
686
-
687
- /**
688
- * @internal
689
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
690
- */
691
- export namespace Order$ {
692
- /** @deprecated use `Order$inboundSchema` instead. */
693
- export const inboundSchema = Order$inboundSchema;
694
- /** @deprecated use `Order$outboundSchema` instead. */
695
- export const outboundSchema = Order$outboundSchema;
696
- /** @deprecated use `Order$Outbound` instead. */
697
- export type Outbound = Order$Outbound;
698
- }
699
-
700
- export function orderToJSON(order: Order): string {
701
- return JSON.stringify(Order$outboundSchema.parse(order));
702
- }
703
-
704
- export function orderFromJSON(
705
- jsonString: string,
706
- ): SafeParseResult<Order, SDKValidationError> {
707
- return safeParse(
708
- jsonString,
709
- (x) => Order$inboundSchema.parse(JSON.parse(x)),
710
- `Failed to parse 'Order' from JSON`,
711
- );
712
- }
713
-
714
- /** @internal */
715
- export const OnlyEnum$inboundSchema: z.ZodNativeEnum<typeof OnlyEnum> = z
716
- .nativeEnum(OnlyEnum);
717
-
718
- /** @internal */
719
- export const OnlyEnum$outboundSchema: z.ZodNativeEnum<typeof OnlyEnum> =
720
- OnlyEnum$inboundSchema;
721
-
722
- /**
723
- * @internal
724
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
725
- */
726
- export namespace OnlyEnum$ {
727
- /** @deprecated use `OnlyEnum$inboundSchema` instead. */
728
- export const inboundSchema = OnlyEnum$inboundSchema;
729
- /** @deprecated use `OnlyEnum$outboundSchema` instead. */
730
- export const outboundSchema = OnlyEnum$outboundSchema;
731
- }
732
-
733
- /** @internal */
734
- export const Only$inboundSchema: z.ZodType<Only, z.ZodTypeDef, unknown> = z
735
- .union([OnlyEnum$inboundSchema, z.string()]);
736
-
737
- /** @internal */
738
- export type Only$Outbound = string | string;
739
-
740
- /** @internal */
741
- export const Only$outboundSchema: z.ZodType<Only$Outbound, z.ZodTypeDef, Only> =
742
- z.union([OnlyEnum$outboundSchema, z.string()]);
743
-
744
- /**
745
- * @internal
746
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
747
- */
748
- export namespace Only$ {
749
- /** @deprecated use `Only$inboundSchema` instead. */
750
- export const inboundSchema = Only$inboundSchema;
751
- /** @deprecated use `Only$outboundSchema` instead. */
752
- export const outboundSchema = Only$outboundSchema;
753
- /** @deprecated use `Only$Outbound` instead. */
754
- export type Outbound = Only$Outbound;
755
- }
756
-
757
- export function onlyToJSON(only: Only): string {
758
- return JSON.stringify(Only$outboundSchema.parse(only));
759
- }
760
-
761
- export function onlyFromJSON(
762
- jsonString: string,
763
- ): SafeParseResult<Only, SDKValidationError> {
764
- return safeParse(
765
- jsonString,
766
- (x) => Only$inboundSchema.parse(JSON.parse(x)),
767
- `Failed to parse 'Only' from JSON`,
768
- );
769
- }
770
-
771
- /** @internal */
772
- export const IgnoreEnum$inboundSchema: z.ZodNativeEnum<typeof IgnoreEnum> = z
773
- .nativeEnum(IgnoreEnum);
774
-
775
- /** @internal */
776
- export const IgnoreEnum$outboundSchema: z.ZodNativeEnum<typeof IgnoreEnum> =
777
- IgnoreEnum$inboundSchema;
778
-
779
- /**
780
- * @internal
781
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
782
- */
783
- export namespace IgnoreEnum$ {
784
- /** @deprecated use `IgnoreEnum$inboundSchema` instead. */
785
- export const inboundSchema = IgnoreEnum$inboundSchema;
786
- /** @deprecated use `IgnoreEnum$outboundSchema` instead. */
787
- export const outboundSchema = IgnoreEnum$outboundSchema;
788
- }
789
-
790
- /** @internal */
791
- export const Ignore$inboundSchema: z.ZodType<Ignore, z.ZodTypeDef, unknown> = z
792
- .union([IgnoreEnum$inboundSchema, z.string()]);
793
-
794
- /** @internal */
795
- export type Ignore$Outbound = string | string;
796
-
797
- /** @internal */
798
- export const Ignore$outboundSchema: z.ZodType<
799
- Ignore$Outbound,
800
- z.ZodTypeDef,
801
- Ignore
802
- > = z.union([IgnoreEnum$outboundSchema, z.string()]);
803
-
804
- /**
805
- * @internal
806
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
807
- */
808
- export namespace Ignore$ {
809
- /** @deprecated use `Ignore$inboundSchema` instead. */
810
- export const inboundSchema = Ignore$inboundSchema;
811
- /** @deprecated use `Ignore$outboundSchema` instead. */
812
- export const outboundSchema = Ignore$outboundSchema;
813
- /** @deprecated use `Ignore$Outbound` instead. */
814
- export type Outbound = Ignore$Outbound;
815
- }
816
-
817
- export function ignoreToJSON(ignore: Ignore): string {
818
- return JSON.stringify(Ignore$outboundSchema.parse(ignore));
819
- }
820
-
821
- export function ignoreFromJSON(
822
- jsonString: string,
823
- ): SafeParseResult<Ignore, SDKValidationError> {
824
- return safeParse(
825
- jsonString,
826
- (x) => Ignore$inboundSchema.parse(JSON.parse(x)),
827
- `Failed to parse 'Ignore' from JSON`,
828
- );
829
- }
830
-
831
- /** @internal */
832
- export const OpenAIResponsesRequestQuantization$inboundSchema: z.ZodNativeEnum<
833
- typeof OpenAIResponsesRequestQuantization
834
- > = z.nativeEnum(OpenAIResponsesRequestQuantization);
835
-
836
- /** @internal */
837
- export const OpenAIResponsesRequestQuantization$outboundSchema: z.ZodNativeEnum<
838
- typeof OpenAIResponsesRequestQuantization
839
- > = OpenAIResponsesRequestQuantization$inboundSchema;
840
-
841
- /**
842
- * @internal
843
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
844
- */
845
- export namespace OpenAIResponsesRequestQuantization$ {
846
- /** @deprecated use `OpenAIResponsesRequestQuantization$inboundSchema` instead. */
847
- export const inboundSchema = OpenAIResponsesRequestQuantization$inboundSchema;
848
- /** @deprecated use `OpenAIResponsesRequestQuantization$outboundSchema` instead. */
849
- export const outboundSchema =
850
- OpenAIResponsesRequestQuantization$outboundSchema;
851
- }
852
-
853
- /** @internal */
854
- export const Sort$inboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(
855
- Sort,
856
- );
857
-
858
- /** @internal */
859
- export const Sort$outboundSchema: z.ZodNativeEnum<typeof Sort> =
860
- Sort$inboundSchema;
861
-
862
- /**
863
- * @internal
864
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
865
- */
866
- export namespace Sort$ {
867
- /** @deprecated use `Sort$inboundSchema` instead. */
868
- export const inboundSchema = Sort$inboundSchema;
869
- /** @deprecated use `Sort$outboundSchema` instead. */
870
- export const outboundSchema = Sort$outboundSchema;
871
- }
872
-
873
- /** @internal */
874
- export const OpenAIResponsesRequestPrompt$inboundSchema: z.ZodType<
875
- OpenAIResponsesRequestPrompt,
876
- z.ZodTypeDef,
877
- unknown
878
- > = z.union([z.number(), z.string(), z.any()]);
879
-
880
- /** @internal */
881
- export type OpenAIResponsesRequestPrompt$Outbound = number | string | any;
882
-
883
- /** @internal */
884
- export const OpenAIResponsesRequestPrompt$outboundSchema: z.ZodType<
885
- OpenAIResponsesRequestPrompt$Outbound,
886
- z.ZodTypeDef,
887
- OpenAIResponsesRequestPrompt
888
- > = z.union([z.number(), z.string(), z.any()]);
889
-
890
- /**
891
- * @internal
892
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
893
- */
894
- export namespace OpenAIResponsesRequestPrompt$ {
895
- /** @deprecated use `OpenAIResponsesRequestPrompt$inboundSchema` instead. */
896
- export const inboundSchema = OpenAIResponsesRequestPrompt$inboundSchema;
897
- /** @deprecated use `OpenAIResponsesRequestPrompt$outboundSchema` instead. */
898
- export const outboundSchema = OpenAIResponsesRequestPrompt$outboundSchema;
899
- /** @deprecated use `OpenAIResponsesRequestPrompt$Outbound` instead. */
900
- export type Outbound = OpenAIResponsesRequestPrompt$Outbound;
901
- }
902
-
903
- export function openAIResponsesRequestPromptToJSON(
904
- openAIResponsesRequestPrompt: OpenAIResponsesRequestPrompt,
905
- ): string {
906
- return JSON.stringify(
907
- OpenAIResponsesRequestPrompt$outboundSchema.parse(
908
- openAIResponsesRequestPrompt,
909
- ),
910
- );
911
- }
912
-
913
- export function openAIResponsesRequestPromptFromJSON(
914
- jsonString: string,
915
- ): SafeParseResult<OpenAIResponsesRequestPrompt, SDKValidationError> {
916
- return safeParse(
917
- jsonString,
918
- (x) => OpenAIResponsesRequestPrompt$inboundSchema.parse(JSON.parse(x)),
919
- `Failed to parse 'OpenAIResponsesRequestPrompt' from JSON`,
920
- );
921
- }
922
-
923
- /** @internal */
924
- export const OpenAIResponsesRequestCompletion$inboundSchema: z.ZodType<
925
- OpenAIResponsesRequestCompletion,
926
- z.ZodTypeDef,
927
- unknown
928
- > = z.union([z.number(), z.string(), z.any()]);
929
-
930
- /** @internal */
931
- export type OpenAIResponsesRequestCompletion$Outbound = number | string | any;
932
-
933
- /** @internal */
934
- export const OpenAIResponsesRequestCompletion$outboundSchema: z.ZodType<
935
- OpenAIResponsesRequestCompletion$Outbound,
936
- z.ZodTypeDef,
937
- OpenAIResponsesRequestCompletion
938
- > = z.union([z.number(), z.string(), z.any()]);
939
-
940
- /**
941
- * @internal
942
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
943
- */
944
- export namespace OpenAIResponsesRequestCompletion$ {
945
- /** @deprecated use `OpenAIResponsesRequestCompletion$inboundSchema` instead. */
946
- export const inboundSchema = OpenAIResponsesRequestCompletion$inboundSchema;
947
- /** @deprecated use `OpenAIResponsesRequestCompletion$outboundSchema` instead. */
948
- export const outboundSchema = OpenAIResponsesRequestCompletion$outboundSchema;
949
- /** @deprecated use `OpenAIResponsesRequestCompletion$Outbound` instead. */
950
- export type Outbound = OpenAIResponsesRequestCompletion$Outbound;
951
- }
952
-
953
- export function openAIResponsesRequestCompletionToJSON(
954
- openAIResponsesRequestCompletion: OpenAIResponsesRequestCompletion,
955
- ): string {
956
- return JSON.stringify(
957
- OpenAIResponsesRequestCompletion$outboundSchema.parse(
958
- openAIResponsesRequestCompletion,
959
- ),
960
- );
961
- }
962
-
963
- export function openAIResponsesRequestCompletionFromJSON(
964
- jsonString: string,
965
- ): SafeParseResult<OpenAIResponsesRequestCompletion, SDKValidationError> {
966
- return safeParse(
967
- jsonString,
968
- (x) => OpenAIResponsesRequestCompletion$inboundSchema.parse(JSON.parse(x)),
969
- `Failed to parse 'OpenAIResponsesRequestCompletion' from JSON`,
970
- );
971
- }
972
-
973
- /** @internal */
974
- export const OpenAIResponsesRequestImage$inboundSchema: z.ZodType<
975
- OpenAIResponsesRequestImage,
976
- z.ZodTypeDef,
977
- unknown
978
- > = z.union([z.number(), z.string(), z.any()]);
979
-
980
- /** @internal */
981
- export type OpenAIResponsesRequestImage$Outbound = number | string | any;
982
-
983
- /** @internal */
984
- export const OpenAIResponsesRequestImage$outboundSchema: z.ZodType<
985
- OpenAIResponsesRequestImage$Outbound,
986
- z.ZodTypeDef,
987
- OpenAIResponsesRequestImage
988
- > = z.union([z.number(), z.string(), z.any()]);
989
-
990
- /**
991
- * @internal
992
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
993
- */
994
- export namespace OpenAIResponsesRequestImage$ {
995
- /** @deprecated use `OpenAIResponsesRequestImage$inboundSchema` instead. */
996
- export const inboundSchema = OpenAIResponsesRequestImage$inboundSchema;
997
- /** @deprecated use `OpenAIResponsesRequestImage$outboundSchema` instead. */
998
- export const outboundSchema = OpenAIResponsesRequestImage$outboundSchema;
999
- /** @deprecated use `OpenAIResponsesRequestImage$Outbound` instead. */
1000
- export type Outbound = OpenAIResponsesRequestImage$Outbound;
1001
- }
1002
-
1003
- export function openAIResponsesRequestImageToJSON(
1004
- openAIResponsesRequestImage: OpenAIResponsesRequestImage,
1005
- ): string {
1006
- return JSON.stringify(
1007
- OpenAIResponsesRequestImage$outboundSchema.parse(
1008
- openAIResponsesRequestImage,
1009
- ),
1010
- );
1011
- }
1012
-
1013
- export function openAIResponsesRequestImageFromJSON(
1014
- jsonString: string,
1015
- ): SafeParseResult<OpenAIResponsesRequestImage, SDKValidationError> {
1016
- return safeParse(
1017
- jsonString,
1018
- (x) => OpenAIResponsesRequestImage$inboundSchema.parse(JSON.parse(x)),
1019
- `Failed to parse 'OpenAIResponsesRequestImage' from JSON`,
1020
- );
1021
- }
1022
-
1023
- /** @internal */
1024
- export const OpenAIResponsesRequestAudio$inboundSchema: z.ZodType<
1025
- OpenAIResponsesRequestAudio,
1026
- z.ZodTypeDef,
1027
- unknown
1028
- > = z.union([z.number(), z.string(), z.any()]);
1029
-
1030
- /** @internal */
1031
- export type OpenAIResponsesRequestAudio$Outbound = number | string | any;
1032
-
1033
- /** @internal */
1034
- export const OpenAIResponsesRequestAudio$outboundSchema: z.ZodType<
1035
- OpenAIResponsesRequestAudio$Outbound,
1036
- z.ZodTypeDef,
1037
- OpenAIResponsesRequestAudio
1038
- > = z.union([z.number(), z.string(), z.any()]);
1039
-
1040
- /**
1041
- * @internal
1042
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1043
- */
1044
- export namespace OpenAIResponsesRequestAudio$ {
1045
- /** @deprecated use `OpenAIResponsesRequestAudio$inboundSchema` instead. */
1046
- export const inboundSchema = OpenAIResponsesRequestAudio$inboundSchema;
1047
- /** @deprecated use `OpenAIResponsesRequestAudio$outboundSchema` instead. */
1048
- export const outboundSchema = OpenAIResponsesRequestAudio$outboundSchema;
1049
- /** @deprecated use `OpenAIResponsesRequestAudio$Outbound` instead. */
1050
- export type Outbound = OpenAIResponsesRequestAudio$Outbound;
1051
- }
1052
-
1053
- export function openAIResponsesRequestAudioToJSON(
1054
- openAIResponsesRequestAudio: OpenAIResponsesRequestAudio,
1055
- ): string {
1056
- return JSON.stringify(
1057
- OpenAIResponsesRequestAudio$outboundSchema.parse(
1058
- openAIResponsesRequestAudio,
1059
- ),
1060
- );
1061
- }
1062
-
1063
- export function openAIResponsesRequestAudioFromJSON(
1064
- jsonString: string,
1065
- ): SafeParseResult<OpenAIResponsesRequestAudio, SDKValidationError> {
1066
- return safeParse(
1067
- jsonString,
1068
- (x) => OpenAIResponsesRequestAudio$inboundSchema.parse(JSON.parse(x)),
1069
- `Failed to parse 'OpenAIResponsesRequestAudio' from JSON`,
1070
- );
1071
- }
1072
-
1073
- /** @internal */
1074
- export const OpenAIResponsesRequestRequest$inboundSchema: z.ZodType<
1075
- OpenAIResponsesRequestRequest,
1076
- z.ZodTypeDef,
1077
- unknown
1078
- > = z.union([z.number(), z.string(), z.any()]);
1079
-
1080
- /** @internal */
1081
- export type OpenAIResponsesRequestRequest$Outbound = number | string | any;
1082
-
1083
- /** @internal */
1084
- export const OpenAIResponsesRequestRequest$outboundSchema: z.ZodType<
1085
- OpenAIResponsesRequestRequest$Outbound,
1086
- z.ZodTypeDef,
1087
- OpenAIResponsesRequestRequest
1088
- > = z.union([z.number(), z.string(), z.any()]);
1089
-
1090
- /**
1091
- * @internal
1092
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1093
- */
1094
- export namespace OpenAIResponsesRequestRequest$ {
1095
- /** @deprecated use `OpenAIResponsesRequestRequest$inboundSchema` instead. */
1096
- export const inboundSchema = OpenAIResponsesRequestRequest$inboundSchema;
1097
- /** @deprecated use `OpenAIResponsesRequestRequest$outboundSchema` instead. */
1098
- export const outboundSchema = OpenAIResponsesRequestRequest$outboundSchema;
1099
- /** @deprecated use `OpenAIResponsesRequestRequest$Outbound` instead. */
1100
- export type Outbound = OpenAIResponsesRequestRequest$Outbound;
1101
- }
1102
-
1103
- export function openAIResponsesRequestRequestToJSON(
1104
- openAIResponsesRequestRequest: OpenAIResponsesRequestRequest,
1105
- ): string {
1106
- return JSON.stringify(
1107
- OpenAIResponsesRequestRequest$outboundSchema.parse(
1108
- openAIResponsesRequestRequest,
1109
- ),
1110
- );
1111
- }
1112
-
1113
- export function openAIResponsesRequestRequestFromJSON(
1114
- jsonString: string,
1115
- ): SafeParseResult<OpenAIResponsesRequestRequest, SDKValidationError> {
1116
- return safeParse(
1117
- jsonString,
1118
- (x) => OpenAIResponsesRequestRequest$inboundSchema.parse(JSON.parse(x)),
1119
- `Failed to parse 'OpenAIResponsesRequestRequest' from JSON`,
1120
- );
1121
- }
1122
-
1123
- /** @internal */
1124
- export const MaxPrice$inboundSchema: z.ZodType<
1125
- MaxPrice,
1126
- z.ZodTypeDef,
1127
- unknown
1128
- > = z.object({
1129
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
1130
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
1131
- image: z.union([z.number(), z.string(), z.any()]).optional(),
1132
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
1133
- request: z.union([z.number(), z.string(), z.any()]).optional(),
1134
- });
1135
-
1136
- /** @internal */
1137
- export type MaxPrice$Outbound = {
1138
- prompt?: number | string | any | undefined;
1139
- completion?: number | string | any | undefined;
1140
- image?: number | string | any | undefined;
1141
- audio?: number | string | any | undefined;
1142
- request?: number | string | any | undefined;
1143
- };
1144
-
1145
- /** @internal */
1146
- export const MaxPrice$outboundSchema: z.ZodType<
1147
- MaxPrice$Outbound,
1148
- z.ZodTypeDef,
1149
- MaxPrice
1150
- > = z.object({
1151
- prompt: z.union([z.number(), z.string(), z.any()]).optional(),
1152
- completion: z.union([z.number(), z.string(), z.any()]).optional(),
1153
- image: z.union([z.number(), z.string(), z.any()]).optional(),
1154
- audio: z.union([z.number(), z.string(), z.any()]).optional(),
1155
- request: z.union([z.number(), z.string(), z.any()]).optional(),
1156
- });
1157
-
1158
- /**
1159
- * @internal
1160
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1161
- */
1162
- export namespace MaxPrice$ {
1163
- /** @deprecated use `MaxPrice$inboundSchema` instead. */
1164
- export const inboundSchema = MaxPrice$inboundSchema;
1165
- /** @deprecated use `MaxPrice$outboundSchema` instead. */
1166
- export const outboundSchema = MaxPrice$outboundSchema;
1167
- /** @deprecated use `MaxPrice$Outbound` instead. */
1168
- export type Outbound = MaxPrice$Outbound;
1169
- }
1170
-
1171
- export function maxPriceToJSON(maxPrice: MaxPrice): string {
1172
- return JSON.stringify(MaxPrice$outboundSchema.parse(maxPrice));
1173
- }
1174
-
1175
- export function maxPriceFromJSON(
1176
- jsonString: string,
1177
- ): SafeParseResult<MaxPrice, SDKValidationError> {
1178
- return safeParse(
1179
- jsonString,
1180
- (x) => MaxPrice$inboundSchema.parse(JSON.parse(x)),
1181
- `Failed to parse 'MaxPrice' from JSON`,
1182
- );
1183
- }
1184
-
1185
- /** @internal */
1186
- export const Experimental$inboundSchema: z.ZodType<
1187
- Experimental,
1188
- z.ZodTypeDef,
1189
- unknown
1190
- > = z.object({});
1191
-
1192
- /** @internal */
1193
- export type Experimental$Outbound = {};
1194
-
1195
- /** @internal */
1196
- export const Experimental$outboundSchema: z.ZodType<
1197
- Experimental$Outbound,
1198
- z.ZodTypeDef,
1199
- Experimental
1200
- > = z.object({});
1201
-
1202
- /**
1203
- * @internal
1204
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1205
- */
1206
- export namespace Experimental$ {
1207
- /** @deprecated use `Experimental$inboundSchema` instead. */
1208
- export const inboundSchema = Experimental$inboundSchema;
1209
- /** @deprecated use `Experimental$outboundSchema` instead. */
1210
- export const outboundSchema = Experimental$outboundSchema;
1211
- /** @deprecated use `Experimental$Outbound` instead. */
1212
- export type Outbound = Experimental$Outbound;
1213
- }
1214
-
1215
- export function experimentalToJSON(experimental: Experimental): string {
1216
- return JSON.stringify(Experimental$outboundSchema.parse(experimental));
1217
- }
1218
-
1219
- export function experimentalFromJSON(
1220
- jsonString: string,
1221
- ): SafeParseResult<Experimental, SDKValidationError> {
1222
- return safeParse(
1223
- jsonString,
1224
- (x) => Experimental$inboundSchema.parse(JSON.parse(x)),
1225
- `Failed to parse 'Experimental' from JSON`,
1226
- );
1227
- }
1228
-
1229
- /** @internal */
1230
- export const Provider$inboundSchema: z.ZodType<
1231
- Provider,
1232
- z.ZodTypeDef,
1233
- unknown
1234
- > = z.object({
1235
- allow_fallbacks: z.nullable(z.boolean()).optional(),
1236
- require_parameters: z.nullable(z.boolean()).optional(),
1237
- data_collection: z.nullable(DataCollection$inboundSchema).optional(),
1238
- zdr: z.nullable(z.boolean()).optional(),
1239
- order: z.nullable(z.array(z.union([OrderEnum$inboundSchema, z.string()])))
1240
- .optional(),
1241
- only: z.nullable(z.array(z.union([OnlyEnum$inboundSchema, z.string()])))
1242
- .optional(),
1243
- ignore: z.nullable(z.array(z.union([IgnoreEnum$inboundSchema, z.string()])))
1244
- .optional(),
1245
- quantizations: z.nullable(
1246
- z.array(OpenAIResponsesRequestQuantization$inboundSchema),
1247
- ).optional(),
1248
- sort: z.nullable(Sort$inboundSchema).optional(),
1249
- max_price: z.lazy(() => MaxPrice$inboundSchema).optional(),
1250
- experimental: z.nullable(z.lazy(() => Experimental$inboundSchema)).optional(),
1251
- }).transform((v) => {
1252
- return remap$(v, {
1253
- "allow_fallbacks": "allowFallbacks",
1254
- "require_parameters": "requireParameters",
1255
- "data_collection": "dataCollection",
1256
- "max_price": "maxPrice",
1257
- });
1258
- });
1259
-
1260
- /** @internal */
1261
- export type Provider$Outbound = {
1262
- allow_fallbacks?: boolean | null | undefined;
1263
- require_parameters?: boolean | null | undefined;
1264
- data_collection?: string | null | undefined;
1265
- zdr?: boolean | null | undefined;
1266
- order?: Array<string | string> | null | undefined;
1267
- only?: Array<string | string> | null | undefined;
1268
- ignore?: Array<string | string> | null | undefined;
1269
- quantizations?: Array<string> | null | undefined;
1270
- sort?: string | null | undefined;
1271
- max_price?: MaxPrice$Outbound | undefined;
1272
- experimental?: Experimental$Outbound | null | undefined;
1273
- };
1274
-
1275
- /** @internal */
1276
- export const Provider$outboundSchema: z.ZodType<
1277
- Provider$Outbound,
1278
- z.ZodTypeDef,
1279
- Provider
1280
- > = z.object({
1281
- allowFallbacks: z.nullable(z.boolean()).optional(),
1282
- requireParameters: z.nullable(z.boolean()).optional(),
1283
- dataCollection: z.nullable(DataCollection$outboundSchema).optional(),
1284
- zdr: z.nullable(z.boolean()).optional(),
1285
- order: z.nullable(z.array(z.union([OrderEnum$outboundSchema, z.string()])))
1286
- .optional(),
1287
- only: z.nullable(z.array(z.union([OnlyEnum$outboundSchema, z.string()])))
1288
- .optional(),
1289
- ignore: z.nullable(z.array(z.union([IgnoreEnum$outboundSchema, z.string()])))
1290
- .optional(),
1291
- quantizations: z.nullable(
1292
- z.array(OpenAIResponsesRequestQuantization$outboundSchema),
1293
- ).optional(),
1294
- sort: z.nullable(Sort$outboundSchema).optional(),
1295
- maxPrice: z.lazy(() => MaxPrice$outboundSchema).optional(),
1296
- experimental: z.nullable(z.lazy(() => Experimental$outboundSchema))
1297
- .optional(),
1298
- }).transform((v) => {
1299
- return remap$(v, {
1300
- allowFallbacks: "allow_fallbacks",
1301
- requireParameters: "require_parameters",
1302
- dataCollection: "data_collection",
1303
- maxPrice: "max_price",
1304
- });
1305
- });
1306
-
1307
- /**
1308
- * @internal
1309
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1310
- */
1311
- export namespace Provider$ {
1312
- /** @deprecated use `Provider$inboundSchema` instead. */
1313
- export const inboundSchema = Provider$inboundSchema;
1314
- /** @deprecated use `Provider$outboundSchema` instead. */
1315
- export const outboundSchema = Provider$outboundSchema;
1316
- /** @deprecated use `Provider$Outbound` instead. */
1317
- export type Outbound = Provider$Outbound;
1318
- }
1319
-
1320
- export function providerToJSON(provider: Provider): string {
1321
- return JSON.stringify(Provider$outboundSchema.parse(provider));
1322
- }
1323
-
1324
- export function providerFromJSON(
1325
- jsonString: string,
1326
- ): SafeParseResult<Provider, SDKValidationError> {
1327
- return safeParse(
1328
- jsonString,
1329
- (x) => Provider$inboundSchema.parse(JSON.parse(x)),
1330
- `Failed to parse 'Provider' from JSON`,
1331
- );
1332
- }
1333
-
1334
- /** @internal */
1335
- export const IdFileParser$inboundSchema: z.ZodNativeEnum<typeof IdFileParser> =
1336
- z.nativeEnum(IdFileParser);
1337
-
1338
- /** @internal */
1339
- export const IdFileParser$outboundSchema: z.ZodNativeEnum<typeof IdFileParser> =
1340
- IdFileParser$inboundSchema;
1341
-
1342
- /**
1343
- * @internal
1344
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1345
- */
1346
- export namespace IdFileParser$ {
1347
- /** @deprecated use `IdFileParser$inboundSchema` instead. */
1348
- export const inboundSchema = IdFileParser$inboundSchema;
1349
- /** @deprecated use `IdFileParser$outboundSchema` instead. */
1350
- export const outboundSchema = IdFileParser$outboundSchema;
1351
- }
1352
-
1353
- /** @internal */
1354
- export const PdfEngine$inboundSchema: z.ZodNativeEnum<typeof PdfEngine> = z
1355
- .nativeEnum(PdfEngine);
1356
-
1357
- /** @internal */
1358
- export const PdfEngine$outboundSchema: z.ZodNativeEnum<typeof PdfEngine> =
1359
- PdfEngine$inboundSchema;
1360
-
1361
- /**
1362
- * @internal
1363
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1364
- */
1365
- export namespace PdfEngine$ {
1366
- /** @deprecated use `PdfEngine$inboundSchema` instead. */
1367
- export const inboundSchema = PdfEngine$inboundSchema;
1368
- /** @deprecated use `PdfEngine$outboundSchema` instead. */
1369
- export const outboundSchema = PdfEngine$outboundSchema;
1370
- }
1371
-
1372
- /** @internal */
1373
- export const Pdf$inboundSchema: z.ZodType<Pdf, z.ZodTypeDef, unknown> = z
1374
- .object({
1375
- engine: PdfEngine$inboundSchema.optional(),
1376
- });
1377
-
1378
- /** @internal */
1379
- export type Pdf$Outbound = {
1380
- engine?: string | undefined;
1381
- };
1382
-
1383
- /** @internal */
1384
- export const Pdf$outboundSchema: z.ZodType<Pdf$Outbound, z.ZodTypeDef, Pdf> = z
1385
- .object({
1386
- engine: PdfEngine$outboundSchema.optional(),
1387
- });
1388
-
1389
- /**
1390
- * @internal
1391
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1392
- */
1393
- export namespace Pdf$ {
1394
- /** @deprecated use `Pdf$inboundSchema` instead. */
1395
- export const inboundSchema = Pdf$inboundSchema;
1396
- /** @deprecated use `Pdf$outboundSchema` instead. */
1397
- export const outboundSchema = Pdf$outboundSchema;
1398
- /** @deprecated use `Pdf$Outbound` instead. */
1399
- export type Outbound = Pdf$Outbound;
1400
- }
1401
-
1402
- export function pdfToJSON(pdf: Pdf): string {
1403
- return JSON.stringify(Pdf$outboundSchema.parse(pdf));
1404
- }
1405
-
1406
- export function pdfFromJSON(
1407
- jsonString: string,
1408
- ): SafeParseResult<Pdf, SDKValidationError> {
1409
- return safeParse(
1410
- jsonString,
1411
- (x) => Pdf$inboundSchema.parse(JSON.parse(x)),
1412
- `Failed to parse 'Pdf' from JSON`,
1413
- );
1414
- }
1415
-
1416
- /** @internal */
1417
- export const PluginFileParser$inboundSchema: z.ZodType<
1418
- PluginFileParser,
1419
- z.ZodTypeDef,
1420
- unknown
1421
- > = z.object({
1422
- id: IdFileParser$inboundSchema,
1423
- max_files: z.number().optional(),
1424
- pdf: z.lazy(() => Pdf$inboundSchema).optional(),
1425
- }).transform((v) => {
1426
- return remap$(v, {
1427
- "max_files": "maxFiles",
1428
- });
1429
- });
1430
-
1431
- /** @internal */
1432
- export type PluginFileParser$Outbound = {
1433
- id: string;
1434
- max_files?: number | undefined;
1435
- pdf?: Pdf$Outbound | undefined;
1436
- };
1437
-
1438
- /** @internal */
1439
- export const PluginFileParser$outboundSchema: z.ZodType<
1440
- PluginFileParser$Outbound,
1441
- z.ZodTypeDef,
1442
- PluginFileParser
1443
- > = z.object({
1444
- id: IdFileParser$outboundSchema,
1445
- maxFiles: z.number().optional(),
1446
- pdf: z.lazy(() => Pdf$outboundSchema).optional(),
1447
- }).transform((v) => {
1448
- return remap$(v, {
1449
- maxFiles: "max_files",
1450
- });
1451
- });
1452
-
1453
- /**
1454
- * @internal
1455
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1456
- */
1457
- export namespace PluginFileParser$ {
1458
- /** @deprecated use `PluginFileParser$inboundSchema` instead. */
1459
- export const inboundSchema = PluginFileParser$inboundSchema;
1460
- /** @deprecated use `PluginFileParser$outboundSchema` instead. */
1461
- export const outboundSchema = PluginFileParser$outboundSchema;
1462
- /** @deprecated use `PluginFileParser$Outbound` instead. */
1463
- export type Outbound = PluginFileParser$Outbound;
1464
- }
1465
-
1466
- export function pluginFileParserToJSON(
1467
- pluginFileParser: PluginFileParser,
1468
- ): string {
1469
- return JSON.stringify(
1470
- PluginFileParser$outboundSchema.parse(pluginFileParser),
1471
- );
1472
- }
1473
-
1474
- export function pluginFileParserFromJSON(
1475
- jsonString: string,
1476
- ): SafeParseResult<PluginFileParser, SDKValidationError> {
1477
- return safeParse(
1478
- jsonString,
1479
- (x) => PluginFileParser$inboundSchema.parse(JSON.parse(x)),
1480
- `Failed to parse 'PluginFileParser' from JSON`,
1481
- );
1482
- }
1483
-
1484
- /** @internal */
1485
- export const IdChainOfThought$inboundSchema: z.ZodNativeEnum<
1486
- typeof IdChainOfThought
1487
- > = z.nativeEnum(IdChainOfThought);
1488
-
1489
- /** @internal */
1490
- export const IdChainOfThought$outboundSchema: z.ZodNativeEnum<
1491
- typeof IdChainOfThought
1492
- > = IdChainOfThought$inboundSchema;
1493
-
1494
- /**
1495
- * @internal
1496
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1497
- */
1498
- export namespace IdChainOfThought$ {
1499
- /** @deprecated use `IdChainOfThought$inboundSchema` instead. */
1500
- export const inboundSchema = IdChainOfThought$inboundSchema;
1501
- /** @deprecated use `IdChainOfThought$outboundSchema` instead. */
1502
- export const outboundSchema = IdChainOfThought$outboundSchema;
1503
- }
1504
-
1505
- /** @internal */
1506
- export const PluginChainOfThought$inboundSchema: z.ZodType<
1507
- PluginChainOfThought,
1508
- z.ZodTypeDef,
1509
- unknown
1510
- > = z.object({
1511
- id: IdChainOfThought$inboundSchema,
1512
- });
1513
-
1514
- /** @internal */
1515
- export type PluginChainOfThought$Outbound = {
1516
- id: string;
1517
- };
1518
-
1519
- /** @internal */
1520
- export const PluginChainOfThought$outboundSchema: z.ZodType<
1521
- PluginChainOfThought$Outbound,
1522
- z.ZodTypeDef,
1523
- PluginChainOfThought
1524
- > = z.object({
1525
- id: IdChainOfThought$outboundSchema,
1526
- });
1527
-
1528
- /**
1529
- * @internal
1530
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1531
- */
1532
- export namespace PluginChainOfThought$ {
1533
- /** @deprecated use `PluginChainOfThought$inboundSchema` instead. */
1534
- export const inboundSchema = PluginChainOfThought$inboundSchema;
1535
- /** @deprecated use `PluginChainOfThought$outboundSchema` instead. */
1536
- export const outboundSchema = PluginChainOfThought$outboundSchema;
1537
- /** @deprecated use `PluginChainOfThought$Outbound` instead. */
1538
- export type Outbound = PluginChainOfThought$Outbound;
1539
- }
1540
-
1541
- export function pluginChainOfThoughtToJSON(
1542
- pluginChainOfThought: PluginChainOfThought,
1543
- ): string {
1544
- return JSON.stringify(
1545
- PluginChainOfThought$outboundSchema.parse(pluginChainOfThought),
1546
- );
1547
- }
1548
-
1549
- export function pluginChainOfThoughtFromJSON(
1550
- jsonString: string,
1551
- ): SafeParseResult<PluginChainOfThought, SDKValidationError> {
1552
- return safeParse(
1553
- jsonString,
1554
- (x) => PluginChainOfThought$inboundSchema.parse(JSON.parse(x)),
1555
- `Failed to parse 'PluginChainOfThought' from JSON`,
1556
- );
1557
- }
1558
-
1559
- /** @internal */
1560
- export const IdWeb$inboundSchema: z.ZodNativeEnum<typeof IdWeb> = z.nativeEnum(
1561
- IdWeb,
1562
- );
1563
-
1564
- /** @internal */
1565
- export const IdWeb$outboundSchema: z.ZodNativeEnum<typeof IdWeb> =
1566
- IdWeb$inboundSchema;
1567
-
1568
- /**
1569
- * @internal
1570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1571
- */
1572
- export namespace IdWeb$ {
1573
- /** @deprecated use `IdWeb$inboundSchema` instead. */
1574
- export const inboundSchema = IdWeb$inboundSchema;
1575
- /** @deprecated use `IdWeb$outboundSchema` instead. */
1576
- export const outboundSchema = IdWeb$outboundSchema;
1577
- }
1578
-
1579
- /** @internal */
1580
- export const Engine$inboundSchema: z.ZodNativeEnum<typeof Engine> = z
1581
- .nativeEnum(Engine);
1582
-
1583
- /** @internal */
1584
- export const Engine$outboundSchema: z.ZodNativeEnum<typeof Engine> =
1585
- Engine$inboundSchema;
1586
-
1587
- /**
1588
- * @internal
1589
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1590
- */
1591
- export namespace Engine$ {
1592
- /** @deprecated use `Engine$inboundSchema` instead. */
1593
- export const inboundSchema = Engine$inboundSchema;
1594
- /** @deprecated use `Engine$outboundSchema` instead. */
1595
- export const outboundSchema = Engine$outboundSchema;
1596
- }
1597
-
1598
- /** @internal */
1599
- export const PluginWeb$inboundSchema: z.ZodType<
1600
- PluginWeb,
1601
- z.ZodTypeDef,
1602
- unknown
1603
- > = z.object({
1604
- id: IdWeb$inboundSchema,
1605
- max_results: z.number().optional(),
1606
- search_prompt: z.string().optional(),
1607
- engine: Engine$inboundSchema.optional(),
1608
- }).transform((v) => {
1609
- return remap$(v, {
1610
- "max_results": "maxResults",
1611
- "search_prompt": "searchPrompt",
1612
- });
1613
- });
1614
-
1615
- /** @internal */
1616
- export type PluginWeb$Outbound = {
1617
- id: string;
1618
- max_results?: number | undefined;
1619
- search_prompt?: string | undefined;
1620
- engine?: string | undefined;
1621
- };
1622
-
1623
- /** @internal */
1624
- export const PluginWeb$outboundSchema: z.ZodType<
1625
- PluginWeb$Outbound,
1626
- z.ZodTypeDef,
1627
- PluginWeb
1628
- > = z.object({
1629
- id: IdWeb$outboundSchema,
1630
- maxResults: z.number().optional(),
1631
- searchPrompt: z.string().optional(),
1632
- engine: Engine$outboundSchema.optional(),
1633
- }).transform((v) => {
1634
- return remap$(v, {
1635
- maxResults: "max_results",
1636
- searchPrompt: "search_prompt",
1637
- });
1638
- });
1639
-
1640
- /**
1641
- * @internal
1642
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1643
- */
1644
- export namespace PluginWeb$ {
1645
- /** @deprecated use `PluginWeb$inboundSchema` instead. */
1646
- export const inboundSchema = PluginWeb$inboundSchema;
1647
- /** @deprecated use `PluginWeb$outboundSchema` instead. */
1648
- export const outboundSchema = PluginWeb$outboundSchema;
1649
- /** @deprecated use `PluginWeb$Outbound` instead. */
1650
- export type Outbound = PluginWeb$Outbound;
1651
- }
1652
-
1653
- export function pluginWebToJSON(pluginWeb: PluginWeb): string {
1654
- return JSON.stringify(PluginWeb$outboundSchema.parse(pluginWeb));
1655
- }
1656
-
1657
- export function pluginWebFromJSON(
1658
- jsonString: string,
1659
- ): SafeParseResult<PluginWeb, SDKValidationError> {
1660
- return safeParse(
1661
- jsonString,
1662
- (x) => PluginWeb$inboundSchema.parse(JSON.parse(x)),
1663
- `Failed to parse 'PluginWeb' from JSON`,
1664
- );
1665
- }
1666
-
1667
- /** @internal */
1668
- export const IdModeration$inboundSchema: z.ZodNativeEnum<typeof IdModeration> =
1669
- z.nativeEnum(IdModeration);
1670
-
1671
- /** @internal */
1672
- export const IdModeration$outboundSchema: z.ZodNativeEnum<typeof IdModeration> =
1673
- IdModeration$inboundSchema;
1674
-
1675
- /**
1676
- * @internal
1677
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1678
- */
1679
- export namespace IdModeration$ {
1680
- /** @deprecated use `IdModeration$inboundSchema` instead. */
1681
- export const inboundSchema = IdModeration$inboundSchema;
1682
- /** @deprecated use `IdModeration$outboundSchema` instead. */
1683
- export const outboundSchema = IdModeration$outboundSchema;
1684
- }
1685
-
1686
- /** @internal */
1687
- export const PluginModeration$inboundSchema: z.ZodType<
1688
- PluginModeration,
1689
- z.ZodTypeDef,
1690
- unknown
1691
- > = z.object({
1692
- id: IdModeration$inboundSchema,
1693
- });
1694
-
1695
- /** @internal */
1696
- export type PluginModeration$Outbound = {
1697
- id: string;
1698
- };
1699
-
1700
- /** @internal */
1701
- export const PluginModeration$outboundSchema: z.ZodType<
1702
- PluginModeration$Outbound,
1703
- z.ZodTypeDef,
1704
- PluginModeration
1705
- > = z.object({
1706
- id: IdModeration$outboundSchema,
1707
- });
1708
-
1709
- /**
1710
- * @internal
1711
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1712
- */
1713
- export namespace PluginModeration$ {
1714
- /** @deprecated use `PluginModeration$inboundSchema` instead. */
1715
- export const inboundSchema = PluginModeration$inboundSchema;
1716
- /** @deprecated use `PluginModeration$outboundSchema` instead. */
1717
- export const outboundSchema = PluginModeration$outboundSchema;
1718
- /** @deprecated use `PluginModeration$Outbound` instead. */
1719
- export type Outbound = PluginModeration$Outbound;
1720
- }
1721
-
1722
- export function pluginModerationToJSON(
1723
- pluginModeration: PluginModeration,
1724
- ): string {
1725
- return JSON.stringify(
1726
- PluginModeration$outboundSchema.parse(pluginModeration),
1727
- );
1728
- }
1729
-
1730
- export function pluginModerationFromJSON(
1731
- jsonString: string,
1732
- ): SafeParseResult<PluginModeration, SDKValidationError> {
1733
- return safeParse(
1734
- jsonString,
1735
- (x) => PluginModeration$inboundSchema.parse(JSON.parse(x)),
1736
- `Failed to parse 'PluginModeration' from JSON`,
1737
- );
1738
- }
1739
-
1740
- /** @internal */
1741
- export const Plugin$inboundSchema: z.ZodType<Plugin, z.ZodTypeDef, unknown> = z
1742
- .union([
1743
- z.lazy(() => PluginModeration$inboundSchema),
1744
- z.lazy(() => PluginWeb$inboundSchema),
1745
- z.lazy(() => PluginChainOfThought$inboundSchema),
1746
- z.lazy(() => PluginFileParser$inboundSchema),
1747
- ]);
1748
-
1749
- /** @internal */
1750
- export type Plugin$Outbound =
1751
- | PluginModeration$Outbound
1752
- | PluginWeb$Outbound
1753
- | PluginChainOfThought$Outbound
1754
- | PluginFileParser$Outbound;
1755
-
1756
- /** @internal */
1757
- export const Plugin$outboundSchema: z.ZodType<
1758
- Plugin$Outbound,
1759
- z.ZodTypeDef,
1760
- Plugin
1761
- > = z.union([
1762
- z.lazy(() => PluginModeration$outboundSchema),
1763
- z.lazy(() => PluginWeb$outboundSchema),
1764
- z.lazy(() => PluginChainOfThought$outboundSchema),
1765
- z.lazy(() => PluginFileParser$outboundSchema),
1766
- ]);
1767
-
1768
- /**
1769
- * @internal
1770
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1771
- */
1772
- export namespace Plugin$ {
1773
- /** @deprecated use `Plugin$inboundSchema` instead. */
1774
- export const inboundSchema = Plugin$inboundSchema;
1775
- /** @deprecated use `Plugin$outboundSchema` instead. */
1776
- export const outboundSchema = Plugin$outboundSchema;
1777
- /** @deprecated use `Plugin$Outbound` instead. */
1778
- export type Outbound = Plugin$Outbound;
1779
- }
1780
-
1781
- export function pluginToJSON(plugin: Plugin): string {
1782
- return JSON.stringify(Plugin$outboundSchema.parse(plugin));
1783
- }
1784
-
1785
- export function pluginFromJSON(
1786
- jsonString: string,
1787
- ): SafeParseResult<Plugin, SDKValidationError> {
1788
- return safeParse(
1789
- jsonString,
1790
- (x) => Plugin$inboundSchema.parse(JSON.parse(x)),
1791
- `Failed to parse 'Plugin' from JSON`,
1792
- );
1793
- }
1794
-
1795
- /** @internal */
1796
- export const OpenAIResponsesRequest$inboundSchema: z.ZodType<
1797
- OpenAIResponsesRequest,
1798
- z.ZodTypeDef,
1799
- unknown
1800
- > = z.object({
1801
- input: ResponseInput$inboundSchema.optional(),
1802
- instructions: z.nullable(z.string()).optional(),
1803
- metadata: z.nullable(z.record(z.string())).optional(),
1804
- tools: z.array(Tool$inboundSchema).optional(),
1805
- tool_choice: ToolChoice$inboundSchema.optional(),
1806
- parallel_tool_calls: z.nullable(z.boolean()).optional(),
1807
- model: z.string().optional(),
1808
- models: z.array(z.string()).optional(),
1809
- text: ResponseTextConfig$inboundSchema.optional(),
1810
- reasoning: z.nullable(ResponseReasoningConfig$inboundSchema).optional(),
1811
- max_output_tokens: z.nullable(z.number()).optional(),
1812
- temperature: z.nullable(z.number()).optional(),
1813
- top_p: z.nullable(z.number()).optional(),
1814
- top_k: z.number().optional(),
1815
- prompt_cache_key: z.string().optional(),
1816
- previous_response_id: z.nullable(z.string()).optional(),
1817
- prompt: z.nullable(ResponsePrompt$inboundSchema).optional(),
1818
- include: z.nullable(z.array(ResponseIncludable$inboundSchema)).optional(),
1819
- background: z.nullable(z.boolean()).optional(),
1820
- safety_identifier: z.string().optional(),
1821
- store: z.nullable(z.boolean()).optional(),
1822
- service_tier: z.nullable(OpenAIResponsesRequestServiceTier$inboundSchema)
1823
- .optional(),
1824
- truncation: z.nullable(OpenAIResponsesRequestTruncation$inboundSchema)
1825
- .optional(),
1826
- stream: z.nullable(z.boolean()).optional(),
1827
- provider: z.nullable(z.lazy(() => Provider$inboundSchema)).optional(),
1828
- plugins: z.array(
1829
- z.union([
1830
- z.lazy(() => PluginModeration$inboundSchema),
1831
- z.lazy(() => PluginWeb$inboundSchema),
1832
- z.lazy(() => PluginChainOfThought$inboundSchema),
1833
- z.lazy(() => PluginFileParser$inboundSchema),
1834
- ]),
1835
- ).optional(),
1836
- user: z.string().optional(),
1837
- }).transform((v) => {
1838
- return remap$(v, {
1839
- "tool_choice": "toolChoice",
1840
- "parallel_tool_calls": "parallelToolCalls",
1841
- "max_output_tokens": "maxOutputTokens",
1842
- "top_p": "topP",
1843
- "top_k": "topK",
1844
- "prompt_cache_key": "promptCacheKey",
1845
- "previous_response_id": "previousResponseId",
1846
- "safety_identifier": "safetyIdentifier",
1847
- "service_tier": "serviceTier",
1848
- });
1849
- });
1850
-
1851
- /** @internal */
1852
- export type OpenAIResponsesRequest$Outbound = {
1853
- input?: ResponseInput$Outbound | undefined;
1854
- instructions?: string | null | undefined;
1855
- metadata?: { [k: string]: string } | null | undefined;
1856
- tools?: Array<Tool$Outbound> | undefined;
1857
- tool_choice?: ToolChoice$Outbound | undefined;
1858
- parallel_tool_calls?: boolean | null | undefined;
1859
- model?: string | undefined;
1860
- models?: Array<string> | undefined;
1861
- text?: ResponseTextConfig$Outbound | undefined;
1862
- reasoning?: ResponseReasoningConfig$Outbound | null | undefined;
1863
- max_output_tokens?: number | null | undefined;
1864
- temperature?: number | null | undefined;
1865
- top_p?: number | null | undefined;
1866
- top_k?: number | undefined;
1867
- prompt_cache_key?: string | undefined;
1868
- previous_response_id?: string | null | undefined;
1869
- prompt?: ResponsePrompt$Outbound | null | undefined;
1870
- include?: Array<string> | null | undefined;
1871
- background?: boolean | null | undefined;
1872
- safety_identifier?: string | undefined;
1873
- store?: boolean | null | undefined;
1874
- service_tier?: string | null | undefined;
1875
- truncation?: string | null | undefined;
1876
- stream?: boolean | null | undefined;
1877
- provider?: Provider$Outbound | null | undefined;
1878
- plugins?:
1879
- | Array<
1880
- | PluginModeration$Outbound
1881
- | PluginWeb$Outbound
1882
- | PluginChainOfThought$Outbound
1883
- | PluginFileParser$Outbound
1884
- >
1885
- | undefined;
1886
- user?: string | undefined;
1887
- };
1888
-
1889
- /** @internal */
1890
- export const OpenAIResponsesRequest$outboundSchema: z.ZodType<
1891
- OpenAIResponsesRequest$Outbound,
1892
- z.ZodTypeDef,
1893
- OpenAIResponsesRequest
1894
- > = z.object({
1895
- input: ResponseInput$outboundSchema.optional(),
1896
- instructions: z.nullable(z.string()).optional(),
1897
- metadata: z.nullable(z.record(z.string())).optional(),
1898
- tools: z.array(Tool$outboundSchema).optional(),
1899
- toolChoice: ToolChoice$outboundSchema.optional(),
1900
- parallelToolCalls: z.nullable(z.boolean()).optional(),
1901
- model: z.string().optional(),
1902
- models: z.array(z.string()).optional(),
1903
- text: ResponseTextConfig$outboundSchema.optional(),
1904
- reasoning: z.nullable(ResponseReasoningConfig$outboundSchema).optional(),
1905
- maxOutputTokens: z.nullable(z.number()).optional(),
1906
- temperature: z.nullable(z.number()).optional(),
1907
- topP: z.nullable(z.number()).optional(),
1908
- topK: z.number().optional(),
1909
- promptCacheKey: z.string().optional(),
1910
- previousResponseId: z.nullable(z.string()).optional(),
1911
- prompt: z.nullable(ResponsePrompt$outboundSchema).optional(),
1912
- include: z.nullable(z.array(ResponseIncludable$outboundSchema)).optional(),
1913
- background: z.nullable(z.boolean()).optional(),
1914
- safetyIdentifier: z.string().optional(),
1915
- store: z.nullable(z.boolean()).optional(),
1916
- serviceTier: z.nullable(OpenAIResponsesRequestServiceTier$outboundSchema)
1917
- .optional(),
1918
- truncation: z.nullable(OpenAIResponsesRequestTruncation$outboundSchema)
1919
- .optional(),
1920
- stream: z.nullable(z.boolean()).optional(),
1921
- provider: z.nullable(z.lazy(() => Provider$outboundSchema)).optional(),
1922
- plugins: z.array(
1923
- z.union([
1924
- z.lazy(() => PluginModeration$outboundSchema),
1925
- z.lazy(() => PluginWeb$outboundSchema),
1926
- z.lazy(() => PluginChainOfThought$outboundSchema),
1927
- z.lazy(() => PluginFileParser$outboundSchema),
1928
- ]),
1929
- ).optional(),
1930
- user: z.string().optional(),
1931
- }).transform((v) => {
1932
- return remap$(v, {
1933
- toolChoice: "tool_choice",
1934
- parallelToolCalls: "parallel_tool_calls",
1935
- maxOutputTokens: "max_output_tokens",
1936
- topP: "top_p",
1937
- topK: "top_k",
1938
- promptCacheKey: "prompt_cache_key",
1939
- previousResponseId: "previous_response_id",
1940
- safetyIdentifier: "safety_identifier",
1941
- serviceTier: "service_tier",
1942
- });
1943
- });
1944
-
1945
- /**
1946
- * @internal
1947
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1948
- */
1949
- export namespace OpenAIResponsesRequest$ {
1950
- /** @deprecated use `OpenAIResponsesRequest$inboundSchema` instead. */
1951
- export const inboundSchema = OpenAIResponsesRequest$inboundSchema;
1952
- /** @deprecated use `OpenAIResponsesRequest$outboundSchema` instead. */
1953
- export const outboundSchema = OpenAIResponsesRequest$outboundSchema;
1954
- /** @deprecated use `OpenAIResponsesRequest$Outbound` instead. */
1955
- export type Outbound = OpenAIResponsesRequest$Outbound;
1956
- }
1957
-
1958
- export function openAIResponsesRequestToJSON(
1959
- openAIResponsesRequest: OpenAIResponsesRequest,
1960
- ): string {
1961
- return JSON.stringify(
1962
- OpenAIResponsesRequest$outboundSchema.parse(openAIResponsesRequest),
1963
- );
1964
- }
1965
-
1966
- export function openAIResponsesRequestFromJSON(
1967
- jsonString: string,
1968
- ): SafeParseResult<OpenAIResponsesRequest, SDKValidationError> {
1969
- return safeParse(
1970
- jsonString,
1971
- (x) => OpenAIResponsesRequest$inboundSchema.parse(JSON.parse(x)),
1972
- `Failed to parse 'OpenAIResponsesRequest' from JSON`,
1973
- );
1974
- }