@orq-ai/node 4.1.0-rc.45 → 4.1.0-rc.50

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 (199) hide show
  1. package/README.md +31 -24
  2. package/bin/mcp-server.js +3439 -531
  3. package/bin/mcp-server.js.map +65 -58
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/routerChatCompletions.d.ts +23 -0
  6. package/funcs/routerChatCompletions.d.ts.map +1 -0
  7. package/funcs/routerChatCompletions.js +121 -0
  8. package/funcs/routerChatCompletions.js.map +1 -0
  9. package/funcs/routerImagesGenerate.d.ts +17 -0
  10. package/funcs/routerImagesGenerate.d.ts.map +1 -0
  11. package/funcs/routerImagesGenerate.js +114 -0
  12. package/funcs/routerImagesGenerate.js.map +1 -0
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/lib/event-streams.js +1 -1
  17. package/lib/event-streams.js.map +1 -1
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/server.d.ts.map +1 -1
  20. package/mcp-server/server.js +5 -1
  21. package/mcp-server/server.js.map +1 -1
  22. package/mcp-server/tools/routerChatCompletions.d.ts +8 -0
  23. package/mcp-server/tools/routerChatCompletions.d.ts.map +1 -0
  24. package/mcp-server/tools/routerChatCompletions.js +64 -0
  25. package/mcp-server/tools/routerChatCompletions.js.map +1 -0
  26. package/mcp-server/tools/routerImagesGenerate.d.ts +8 -0
  27. package/mcp-server/tools/routerImagesGenerate.d.ts.map +1 -0
  28. package/mcp-server/tools/routerImagesGenerate.js +64 -0
  29. package/mcp-server/tools/routerImagesGenerate.js.map +1 -0
  30. package/models/components/conversationresponse.js +2 -2
  31. package/models/components/index.d.ts +1 -0
  32. package/models/components/index.d.ts.map +1 -1
  33. package/models/components/index.js +1 -0
  34. package/models/components/index.js.map +1 -1
  35. package/models/components/partdoneevent.js +2 -2
  36. package/models/components/publiccontact.d.ts +52 -0
  37. package/models/components/publiccontact.d.ts.map +1 -0
  38. package/models/components/publiccontact.js +79 -0
  39. package/models/components/publiccontact.js.map +1 -0
  40. package/models/components/reasoningpart.js +2 -2
  41. package/models/operations/createagentrequest.d.ts +280 -36
  42. package/models/operations/createagentrequest.d.ts.map +1 -1
  43. package/models/operations/createagentrequest.js +308 -51
  44. package/models/operations/createagentrequest.js.map +1 -1
  45. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  46. package/models/operations/createagentresponserequest.js +3 -1
  47. package/models/operations/createagentresponserequest.js.map +1 -1
  48. package/models/operations/createbudget.js +2 -2
  49. package/models/operations/createchatcompletion.d.ts +3152 -0
  50. package/models/operations/createchatcompletion.d.ts.map +1 -0
  51. package/models/operations/createchatcompletion.js +3398 -0
  52. package/models/operations/createchatcompletion.js.map +1 -0
  53. package/models/operations/createcontact.js +2 -2
  54. package/models/operations/createconversation.js +2 -2
  55. package/models/operations/createdataset.js +2 -2
  56. package/models/operations/createdatasetitem.js +8 -8
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createeval.js +28 -28
  59. package/models/operations/createimage.d.ts +433 -0
  60. package/models/operations/createimage.d.ts.map +1 -0
  61. package/models/operations/createimage.js +455 -0
  62. package/models/operations/createimage.js.map +1 -0
  63. package/models/operations/creatememory.d.ts +1 -1
  64. package/models/operations/createtool.js +12 -12
  65. package/models/operations/deploymentstream.d.ts.map +1 -1
  66. package/models/operations/deploymentstream.js +3 -1
  67. package/models/operations/deploymentstream.js.map +1 -1
  68. package/models/operations/fileget.js +2 -2
  69. package/models/operations/filelist.js +2 -2
  70. package/models/operations/fileupload.js +2 -2
  71. package/models/operations/generateconversationname.js +2 -2
  72. package/models/operations/getallprompts.d.ts +8 -8
  73. package/models/operations/getallprompts.d.ts.map +1 -1
  74. package/models/operations/getallprompts.js +11 -12
  75. package/models/operations/getallprompts.js.map +1 -1
  76. package/models/operations/getalltools.js +12 -12
  77. package/models/operations/getbudget.js +2 -2
  78. package/models/operations/getevals.js +28 -28
  79. package/models/operations/index.d.ts +2 -0
  80. package/models/operations/index.d.ts.map +1 -1
  81. package/models/operations/index.js +2 -0
  82. package/models/operations/index.js.map +1 -1
  83. package/models/operations/invokeeval.d.ts +5 -5
  84. package/models/operations/invokeeval.d.ts.map +1 -1
  85. package/models/operations/invokeeval.js +7 -7
  86. package/models/operations/invokeeval.js.map +1 -1
  87. package/models/operations/listagents.d.ts +122 -0
  88. package/models/operations/listagents.d.ts.map +1 -1
  89. package/models/operations/listagents.js +129 -3
  90. package/models/operations/listagents.js.map +1 -1
  91. package/models/operations/listbudgets.js +2 -2
  92. package/models/operations/listcontacts.js +2 -2
  93. package/models/operations/listdatasetdatapoints.js +8 -8
  94. package/models/operations/listdatasets.js +2 -2
  95. package/models/operations/listdatasources.js +2 -2
  96. package/models/operations/retrieveagentrequest.d.ts +122 -0
  97. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  98. package/models/operations/retrieveagentrequest.js +128 -3
  99. package/models/operations/retrieveagentrequest.js.map +1 -1
  100. package/models/operations/retrievecontact.js +2 -2
  101. package/models/operations/retrieveconversation.js +2 -2
  102. package/models/operations/retrievedatapoint.js +8 -8
  103. package/models/operations/retrievedataset.js +2 -2
  104. package/models/operations/retrievedatasource.js +2 -2
  105. package/models/operations/retrievetool.js +12 -12
  106. package/models/operations/runagent.d.ts +122 -0
  107. package/models/operations/runagent.d.ts.map +1 -1
  108. package/models/operations/runagent.js +132 -7
  109. package/models/operations/runagent.js.map +1 -1
  110. package/models/operations/streamrunagent.d.ts +122 -0
  111. package/models/operations/streamrunagent.d.ts.map +1 -1
  112. package/models/operations/streamrunagent.js +131 -7
  113. package/models/operations/streamrunagent.js.map +1 -1
  114. package/models/operations/updateagent.d.ts +244 -0
  115. package/models/operations/updateagent.d.ts.map +1 -1
  116. package/models/operations/updateagent.js +255 -7
  117. package/models/operations/updateagent.js.map +1 -1
  118. package/models/operations/updatebudget.js +2 -2
  119. package/models/operations/updatecontact.js +2 -2
  120. package/models/operations/updateconversation.js +2 -2
  121. package/models/operations/updatedatapoint.js +8 -8
  122. package/models/operations/updatedataset.js +2 -2
  123. package/models/operations/updatedatasource.js +2 -2
  124. package/models/operations/updateeval.js +28 -28
  125. package/models/operations/updatememory.d.ts +1 -1
  126. package/models/operations/updatetool.js +14 -14
  127. package/package.json +1 -1
  128. package/sdk/router.d.ts +23 -0
  129. package/sdk/router.d.ts.map +1 -0
  130. package/sdk/router.js +34 -0
  131. package/sdk/router.js.map +1 -0
  132. package/sdk/sdk.d.ts +3 -0
  133. package/sdk/sdk.d.ts.map +1 -1
  134. package/sdk/sdk.js +4 -0
  135. package/sdk/sdk.js.map +1 -1
  136. package/src/funcs/routerChatCompletions.ts +172 -0
  137. package/src/funcs/routerImagesGenerate.ts +160 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/lib/event-streams.ts +1 -1
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +5 -1
  142. package/src/mcp-server/tools/routerChatCompletions.ts +37 -0
  143. package/src/mcp-server/tools/routerImagesGenerate.ts +37 -0
  144. package/src/models/components/conversationresponse.ts +2 -2
  145. package/src/models/components/index.ts +1 -0
  146. package/src/models/components/partdoneevent.ts +2 -2
  147. package/src/models/components/publiccontact.ts +99 -0
  148. package/src/models/components/reasoningpart.ts +2 -2
  149. package/src/models/operations/createagentrequest.ts +760 -113
  150. package/src/models/operations/createagentresponserequest.ts +2 -1
  151. package/src/models/operations/createbudget.ts +2 -2
  152. package/src/models/operations/createchatcompletion.ts +8911 -0
  153. package/src/models/operations/createcontact.ts +2 -2
  154. package/src/models/operations/createconversation.ts +2 -2
  155. package/src/models/operations/createdataset.ts +2 -2
  156. package/src/models/operations/createdatasetitem.ts +8 -8
  157. package/src/models/operations/createdatasource.ts +2 -2
  158. package/src/models/operations/createeval.ts +28 -28
  159. package/src/models/operations/createimage.ts +966 -0
  160. package/src/models/operations/creatememory.ts +1 -1
  161. package/src/models/operations/createtool.ts +12 -12
  162. package/src/models/operations/deploymentstream.ts +2 -1
  163. package/src/models/operations/fileget.ts +2 -2
  164. package/src/models/operations/filelist.ts +2 -2
  165. package/src/models/operations/fileupload.ts +2 -2
  166. package/src/models/operations/generateconversationname.ts +2 -2
  167. package/src/models/operations/getallprompts.ts +45 -38
  168. package/src/models/operations/getalltools.ts +12 -12
  169. package/src/models/operations/getbudget.ts +2 -2
  170. package/src/models/operations/getevals.ts +28 -28
  171. package/src/models/operations/index.ts +2 -0
  172. package/src/models/operations/invokeeval.ts +11 -10
  173. package/src/models/operations/listagents.ts +313 -0
  174. package/src/models/operations/listbudgets.ts +2 -2
  175. package/src/models/operations/listcontacts.ts +2 -2
  176. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  177. package/src/models/operations/listdatasets.ts +2 -2
  178. package/src/models/operations/listdatasources.ts +2 -2
  179. package/src/models/operations/retrieveagentrequest.ts +337 -0
  180. package/src/models/operations/retrievecontact.ts +2 -2
  181. package/src/models/operations/retrieveconversation.ts +2 -2
  182. package/src/models/operations/retrievedatapoint.ts +8 -8
  183. package/src/models/operations/retrievedataset.ts +2 -2
  184. package/src/models/operations/retrievedatasource.ts +2 -2
  185. package/src/models/operations/retrievetool.ts +12 -12
  186. package/src/models/operations/runagent.ts +315 -2
  187. package/src/models/operations/streamrunagent.ts +342 -2
  188. package/src/models/operations/updateagent.ts +659 -0
  189. package/src/models/operations/updatebudget.ts +2 -2
  190. package/src/models/operations/updatecontact.ts +2 -2
  191. package/src/models/operations/updateconversation.ts +2 -2
  192. package/src/models/operations/updatedatapoint.ts +8 -8
  193. package/src/models/operations/updatedataset.ts +2 -2
  194. package/src/models/operations/updatedatasource.ts +2 -2
  195. package/src/models/operations/updateeval.ts +28 -28
  196. package/src/models/operations/updatememory.ts +1 -1
  197. package/src/models/operations/updatetool.ts +14 -14
  198. package/src/sdk/router.ts +52 -0
  199. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,3152 @@
1
+ import * as z from "zod/v3";
2
+ import { EventStream } from "../../lib/event-streams.js";
3
+ import { ClosedEnum } from "../../types/enums.js";
4
+ import { Result as SafeParseResult } from "../../types/fp.js";
5
+ import * as components from "../components/index.js";
6
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
7
+ export type CreateChatCompletionContentRouterRequest2 = components.TextContentPartSchema;
8
+ /**
9
+ * The contents of the tool message.
10
+ */
11
+ export type CreateChatCompletionMessagesRouterRequestRequestBody5Content = string | Array<components.TextContentPartSchema>;
12
+ /**
13
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
14
+ */
15
+ export declare const CreateChatCompletionMessagesRouterType: {
16
+ readonly Ephemeral: "ephemeral";
17
+ };
18
+ /**
19
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
20
+ */
21
+ export type CreateChatCompletionMessagesRouterType = ClosedEnum<typeof CreateChatCompletionMessagesRouterType>;
22
+ /**
23
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
24
+ *
25
+ * @remarks
26
+ *
27
+ * - `5m`: 5 minutes
28
+ * - `1h`: 1 hour
29
+ *
30
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
31
+ */
32
+ export declare const CreateChatCompletionMessagesTtl: {
33
+ readonly Fivem: "5m";
34
+ readonly Oneh: "1h";
35
+ };
36
+ /**
37
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
+ *
39
+ * @remarks
40
+ *
41
+ * - `5m`: 5 minutes
42
+ * - `1h`: 1 hour
43
+ *
44
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
+ */
46
+ export type CreateChatCompletionMessagesTtl = ClosedEnum<typeof CreateChatCompletionMessagesTtl>;
47
+ export type CreateChatCompletionMessagesCacheControl = {
48
+ /**
49
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
50
+ */
51
+ type: CreateChatCompletionMessagesRouterType;
52
+ /**
53
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
54
+ *
55
+ * @remarks
56
+ *
57
+ * - `5m`: 5 minutes
58
+ * - `1h`: 1 hour
59
+ *
60
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
61
+ */
62
+ ttl?: CreateChatCompletionMessagesTtl | undefined;
63
+ };
64
+ export type CreateChatCompletionMessagesToolMessage = {
65
+ /**
66
+ * The role of the messages author, in this case tool.
67
+ */
68
+ role: "tool";
69
+ /**
70
+ * The contents of the tool message.
71
+ */
72
+ content: string | Array<components.TextContentPartSchema>;
73
+ /**
74
+ * Tool call that this message is responding to.
75
+ */
76
+ toolCallId: string | null;
77
+ cacheControl?: CreateChatCompletionMessagesCacheControl | undefined;
78
+ };
79
+ export type CreateChatCompletionContentRouter2 = (components.TextContentPartSchema & {
80
+ type: "text";
81
+ }) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema;
82
+ /**
83
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
84
+ */
85
+ export type CreateChatCompletionMessagesRouterRequestRequestBodyContent = string | Array<(components.TextContentPartSchema & {
86
+ type: "text";
87
+ }) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema>;
88
+ /**
89
+ * Data about a previous audio response from the model.
90
+ */
91
+ export type CreateChatCompletionMessagesAudio = {
92
+ /**
93
+ * Unique identifier for a previous audio response from the model.
94
+ */
95
+ id: string;
96
+ };
97
+ /**
98
+ * The type of the tool. Currently, only `function` is supported.
99
+ */
100
+ export declare const CreateChatCompletionMessagesType: {
101
+ readonly Function: "function";
102
+ };
103
+ /**
104
+ * The type of the tool. Currently, only `function` is supported.
105
+ */
106
+ export type CreateChatCompletionMessagesType = ClosedEnum<typeof CreateChatCompletionMessagesType>;
107
+ export type CreateChatCompletionMessagesFunction = {
108
+ /**
109
+ * The name of the function to call.
110
+ */
111
+ name?: string | undefined;
112
+ /**
113
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
114
+ */
115
+ arguments?: string | undefined;
116
+ };
117
+ export type CreateChatCompletionMessagesToolCalls = {
118
+ /**
119
+ * The ID of the tool call.
120
+ */
121
+ id: string;
122
+ /**
123
+ * The type of the tool. Currently, only `function` is supported.
124
+ */
125
+ type: CreateChatCompletionMessagesType;
126
+ function: CreateChatCompletionMessagesFunction;
127
+ /**
128
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
129
+ */
130
+ thoughtSignature?: string | undefined;
131
+ };
132
+ export type CreateChatCompletionMessagesAssistantMessage = {
133
+ /**
134
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
135
+ */
136
+ content?: string | Array<(components.TextContentPartSchema & {
137
+ type: "text";
138
+ }) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema> | null | undefined;
139
+ /**
140
+ * The refusal message by the assistant.
141
+ */
142
+ refusal?: string | null | undefined;
143
+ /**
144
+ * The role of the messages author, in this case `assistant`.
145
+ */
146
+ role: "assistant";
147
+ /**
148
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
149
+ */
150
+ name?: string | undefined;
151
+ /**
152
+ * Data about a previous audio response from the model.
153
+ */
154
+ audio?: CreateChatCompletionMessagesAudio | null | undefined;
155
+ /**
156
+ * The tool calls generated by the model, such as function calls.
157
+ */
158
+ toolCalls?: Array<CreateChatCompletionMessagesToolCalls> | undefined;
159
+ };
160
+ /**
161
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
162
+ */
163
+ export declare const CreateChatCompletion2RouterType: {
164
+ readonly Ephemeral: "ephemeral";
165
+ };
166
+ /**
167
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
168
+ */
169
+ export type CreateChatCompletion2RouterType = ClosedEnum<typeof CreateChatCompletion2RouterType>;
170
+ /**
171
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
172
+ *
173
+ * @remarks
174
+ *
175
+ * - `5m`: 5 minutes
176
+ * - `1h`: 1 hour
177
+ *
178
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
179
+ */
180
+ export declare const CreateChatCompletion2Ttl: {
181
+ readonly Fivem: "5m";
182
+ readonly Oneh: "1h";
183
+ };
184
+ /**
185
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
186
+ *
187
+ * @remarks
188
+ *
189
+ * - `5m`: 5 minutes
190
+ * - `1h`: 1 hour
191
+ *
192
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
193
+ */
194
+ export type CreateChatCompletion2Ttl = ClosedEnum<typeof CreateChatCompletion2Ttl>;
195
+ export type CreateChatCompletion2CacheControl = {
196
+ /**
197
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
198
+ */
199
+ type: CreateChatCompletion2RouterType;
200
+ /**
201
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
202
+ *
203
+ * @remarks
204
+ *
205
+ * - `5m`: 5 minutes
206
+ * - `1h`: 1 hour
207
+ *
208
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
209
+ */
210
+ ttl?: CreateChatCompletion2Ttl | undefined;
211
+ };
212
+ export type CreateChatCompletion24 = {
213
+ /**
214
+ * The type of the content part. Always `file`.
215
+ */
216
+ type: "file";
217
+ cacheControl?: CreateChatCompletion2CacheControl | undefined;
218
+ /**
219
+ * File data for the content part. Must contain either file_data or uri, but not both.
220
+ */
221
+ file: components.FileContentPartSchema;
222
+ };
223
+ export type CreateChatCompletionContent2 = (components.TextContentPartSchema & {
224
+ type: "text";
225
+ }) | components.ImageContentPartSchema | components.AudioContentPartSchema | CreateChatCompletion24;
226
+ /**
227
+ * The contents of the user message.
228
+ */
229
+ export type CreateChatCompletionMessagesRouterRequestContent = string | Array<(components.TextContentPartSchema & {
230
+ type: "text";
231
+ }) | components.ImageContentPartSchema | components.AudioContentPartSchema | CreateChatCompletion24>;
232
+ export type CreateChatCompletionMessagesUserMessage = {
233
+ /**
234
+ * The role of the messages author, in this case `user`.
235
+ */
236
+ role: "user";
237
+ /**
238
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
239
+ */
240
+ name?: string | undefined;
241
+ /**
242
+ * The contents of the user message.
243
+ */
244
+ content: string | Array<(components.TextContentPartSchema & {
245
+ type: "text";
246
+ }) | components.ImageContentPartSchema | components.AudioContentPartSchema | CreateChatCompletion24>;
247
+ };
248
+ /**
249
+ * The contents of the developer message.
250
+ */
251
+ export type CreateChatCompletionMessagesRouterContent = string | Array<components.TextContentPartSchema>;
252
+ export type CreateChatCompletionMessagesDeveloperMessage = {
253
+ /**
254
+ * The role of the messages author, in this case `developer`.
255
+ */
256
+ role: "developer";
257
+ /**
258
+ * The contents of the developer message.
259
+ */
260
+ content: string | Array<components.TextContentPartSchema>;
261
+ /**
262
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
263
+ */
264
+ name?: string | undefined;
265
+ };
266
+ /**
267
+ * The contents of the system message.
268
+ */
269
+ export type CreateChatCompletionMessagesContent = string | Array<components.TextContentPartSchema>;
270
+ /**
271
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
272
+ */
273
+ export type CreateChatCompletionMessagesSystemMessage = {
274
+ /**
275
+ * The role of the messages author, in this case `system`.
276
+ */
277
+ role: "system";
278
+ /**
279
+ * The contents of the system message.
280
+ */
281
+ content: string | Array<components.TextContentPartSchema>;
282
+ /**
283
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
284
+ */
285
+ name?: string | undefined;
286
+ };
287
+ export type CreateChatCompletionMessages = CreateChatCompletionMessagesSystemMessage | CreateChatCompletionMessagesDeveloperMessage | CreateChatCompletionMessagesUserMessage | CreateChatCompletionMessagesAssistantMessage | CreateChatCompletionMessagesToolMessage;
288
+ /**
289
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
290
+ */
291
+ export declare const CreateChatCompletionVoice: {
292
+ readonly Alloy: "alloy";
293
+ readonly Echo: "echo";
294
+ readonly Fable: "fable";
295
+ readonly Onyx: "onyx";
296
+ readonly Nova: "nova";
297
+ readonly Shimmer: "shimmer";
298
+ };
299
+ /**
300
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
301
+ */
302
+ export type CreateChatCompletionVoice = ClosedEnum<typeof CreateChatCompletionVoice>;
303
+ /**
304
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
305
+ */
306
+ export declare const CreateChatCompletionFormat: {
307
+ readonly Wav: "wav";
308
+ readonly Mp3: "mp3";
309
+ readonly Flac: "flac";
310
+ readonly Opus: "opus";
311
+ readonly Pcm16: "pcm16";
312
+ };
313
+ /**
314
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
315
+ */
316
+ export type CreateChatCompletionFormat = ClosedEnum<typeof CreateChatCompletionFormat>;
317
+ /**
318
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
319
+ */
320
+ export type CreateChatCompletionAudio = {
321
+ /**
322
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
323
+ */
324
+ voice: CreateChatCompletionVoice;
325
+ /**
326
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
327
+ */
328
+ format: CreateChatCompletionFormat;
329
+ };
330
+ export type CreateChatCompletionResponseFormatRouterJsonSchema = {
331
+ /**
332
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
333
+ */
334
+ description?: string | undefined;
335
+ /**
336
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
337
+ */
338
+ name: string;
339
+ /**
340
+ * The schema for the response format, described as a JSON Schema object.
341
+ */
342
+ schema?: any | undefined;
343
+ /**
344
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
345
+ */
346
+ strict?: boolean | undefined;
347
+ };
348
+ /**
349
+ * @remarks
350
+ *
351
+ * JSON Schema response format. Used to generate structured JSON responses
352
+ */
353
+ export type CreateChatCompletionResponseFormatJSONSchema = {
354
+ type: "json_schema";
355
+ jsonSchema: CreateChatCompletionResponseFormatRouterJsonSchema;
356
+ };
357
+ /**
358
+ * @remarks
359
+ *
360
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
361
+ */
362
+ export type CreateChatCompletionResponseFormatJSONObject = {
363
+ type: "json_object";
364
+ };
365
+ /**
366
+ * @remarks
367
+ *
368
+ * Default response format. Used to generate text responses
369
+ */
370
+ export type CreateChatCompletionResponseFormatText = {
371
+ type: "text";
372
+ };
373
+ /**
374
+ * An object specifying the format that the model must output
375
+ */
376
+ export type CreateChatCompletionResponseFormat = CreateChatCompletionResponseFormatText | CreateChatCompletionResponseFormatJSONObject | CreateChatCompletionResponseFormatJSONSchema;
377
+ /**
378
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
379
+ *
380
+ * @remarks
381
+ *
382
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
383
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
384
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
385
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
386
+ *
387
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
388
+ */
389
+ export declare const CreateChatCompletionReasoningEffort: {
390
+ readonly None: "none";
391
+ readonly Minimal: "minimal";
392
+ readonly Low: "low";
393
+ readonly Medium: "medium";
394
+ readonly High: "high";
395
+ readonly Xhigh: "xhigh";
396
+ };
397
+ /**
398
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
399
+ *
400
+ * @remarks
401
+ *
402
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
403
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
404
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
405
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
406
+ *
407
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
408
+ */
409
+ export type CreateChatCompletionReasoningEffort = ClosedEnum<typeof CreateChatCompletionReasoningEffort>;
410
+ /**
411
+ * Up to 4 sequences where the API will stop generating further tokens.
412
+ */
413
+ export type CreateChatCompletionStop = string | Array<string>;
414
+ /**
415
+ * Options for streaming response. Only set this when you set stream: true.
416
+ */
417
+ export type CreateChatCompletionStreamOptions = {
418
+ /**
419
+ * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
420
+ */
421
+ includeUsage?: boolean | undefined;
422
+ };
423
+ export type CreateChatCompletionThinking = components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema;
424
+ /**
425
+ * The type of the tool. Currently, only function is supported.
426
+ */
427
+ export declare const CreateChatCompletionType: {
428
+ readonly Function: "function";
429
+ };
430
+ /**
431
+ * The type of the tool. Currently, only function is supported.
432
+ */
433
+ export type CreateChatCompletionType = ClosedEnum<typeof CreateChatCompletionType>;
434
+ export declare const CreateChatCompletionRouterType: {
435
+ readonly Object: "object";
436
+ };
437
+ export type CreateChatCompletionRouterType = ClosedEnum<typeof CreateChatCompletionRouterType>;
438
+ /**
439
+ * The parameters the functions accepts, described as a JSON Schema object
440
+ */
441
+ export type CreateChatCompletionParameters = {
442
+ type: CreateChatCompletionRouterType;
443
+ properties: {
444
+ [k: string]: any;
445
+ };
446
+ required?: Array<string> | undefined;
447
+ additionalProperties?: boolean | undefined;
448
+ };
449
+ export type CreateChatCompletionFunction = {
450
+ /**
451
+ * The name of the function to call.
452
+ */
453
+ name: string;
454
+ /**
455
+ * A description of what the function does, used by the model to choose when and how to call the function.
456
+ */
457
+ description?: string | undefined;
458
+ /**
459
+ * The parameters the functions accepts, described as a JSON Schema object
460
+ */
461
+ parameters?: CreateChatCompletionParameters | undefined;
462
+ /**
463
+ * Whether to enable strict schema adherence when generating the function call.
464
+ */
465
+ strict?: boolean | undefined;
466
+ };
467
+ export type CreateChatCompletionTools = {
468
+ /**
469
+ * The type of the tool. Currently, only function is supported.
470
+ */
471
+ type?: CreateChatCompletionType | undefined;
472
+ function: CreateChatCompletionFunction;
473
+ };
474
+ /**
475
+ * The type of the tool. Currently, only function is supported.
476
+ */
477
+ export declare const CreateChatCompletionToolChoiceType: {
478
+ readonly Function: "function";
479
+ };
480
+ /**
481
+ * The type of the tool. Currently, only function is supported.
482
+ */
483
+ export type CreateChatCompletionToolChoiceType = ClosedEnum<typeof CreateChatCompletionToolChoiceType>;
484
+ export type CreateChatCompletionToolChoiceFunction = {
485
+ /**
486
+ * The name of the function to call.
487
+ */
488
+ name: string;
489
+ };
490
+ export type CreateChatCompletionToolChoice2 = {
491
+ /**
492
+ * The type of the tool. Currently, only function is supported.
493
+ */
494
+ type?: CreateChatCompletionToolChoiceType | undefined;
495
+ function: CreateChatCompletionToolChoiceFunction;
496
+ };
497
+ export declare const CreateChatCompletionToolChoice1: {
498
+ readonly None: "none";
499
+ readonly Auto: "auto";
500
+ readonly Required: "required";
501
+ };
502
+ export type CreateChatCompletionToolChoice1 = ClosedEnum<typeof CreateChatCompletionToolChoice1>;
503
+ /**
504
+ * Controls which (if any) tool is called by the model.
505
+ */
506
+ export type CreateChatCompletionToolChoice = CreateChatCompletionToolChoice2 | CreateChatCompletionToolChoice1;
507
+ export declare const CreateChatCompletionModalities: {
508
+ readonly Text: "text";
509
+ readonly Audio: "audio";
510
+ };
511
+ export type CreateChatCompletionModalities = ClosedEnum<typeof CreateChatCompletionModalities>;
512
+ /**
513
+ * The key of the guardrail.
514
+ */
515
+ export declare const CreateChatCompletionId1: {
516
+ readonly OrqPiiDetection: "orq_pii_detection";
517
+ };
518
+ /**
519
+ * The key of the guardrail.
520
+ */
521
+ export type CreateChatCompletionId1 = ClosedEnum<typeof CreateChatCompletionId1>;
522
+ export type CreateChatCompletionId = CreateChatCompletionId1 | string;
523
+ /**
524
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
525
+ */
526
+ export declare const CreateChatCompletionExecuteOn: {
527
+ readonly Input: "input";
528
+ readonly Output: "output";
529
+ };
530
+ /**
531
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
532
+ */
533
+ export type CreateChatCompletionExecuteOn = ClosedEnum<typeof CreateChatCompletionExecuteOn>;
534
+ export type CreateChatCompletionGuardrails = {
535
+ id: CreateChatCompletionId1 | string;
536
+ /**
537
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
538
+ */
539
+ executeOn: CreateChatCompletionExecuteOn;
540
+ };
541
+ /**
542
+ * Retry configuration for the request
543
+ */
544
+ export type CreateChatCompletionRetry = {
545
+ /**
546
+ * Number of retry attempts (1-5)
547
+ */
548
+ count?: number | undefined;
549
+ /**
550
+ * HTTP status codes that trigger retry logic
551
+ */
552
+ onCodes?: Array<number> | undefined;
553
+ };
554
+ export type Fallbacks = {
555
+ /**
556
+ * Fallback model identifier
557
+ */
558
+ model: string;
559
+ };
560
+ /**
561
+ * Version of the prompt to use (currently only "latest" supported)
562
+ */
563
+ export declare const Version: {
564
+ readonly Latest: "latest";
565
+ };
566
+ /**
567
+ * Version of the prompt to use (currently only "latest" supported)
568
+ */
569
+ export type Version = ClosedEnum<typeof Version>;
570
+ /**
571
+ * Prompt configuration for the request
572
+ */
573
+ export type Prompt = {
574
+ /**
575
+ * Unique identifier of the prompt to use
576
+ */
577
+ id: string;
578
+ /**
579
+ * Version of the prompt to use (currently only "latest" supported)
580
+ */
581
+ version: Version;
582
+ };
583
+ /**
584
+ * Thread information to group related requests
585
+ */
586
+ export type CreateChatCompletionThread = {
587
+ /**
588
+ * Unique thread identifier to group related invocations.
589
+ */
590
+ id: string;
591
+ /**
592
+ * Optional tags to differentiate or categorize threads
593
+ */
594
+ tags?: Array<string> | undefined;
595
+ };
596
+ export type Inputs2 = {
597
+ key: string;
598
+ value?: any | undefined;
599
+ isPii?: boolean | undefined;
600
+ };
601
+ /**
602
+ * Values to replace in the prompt messages using {{"{{"}}variableName}} syntax
603
+ */
604
+ export type Inputs = {
605
+ [k: string]: any;
606
+ } | Array<Inputs2>;
607
+ export declare const CreateChatCompletionRouterRequestType: {
608
+ readonly ExactMatch: "exact_match";
609
+ };
610
+ export type CreateChatCompletionRouterRequestType = ClosedEnum<typeof CreateChatCompletionRouterRequestType>;
611
+ /**
612
+ * Cache configuration for the request.
613
+ */
614
+ export type Cache = {
615
+ /**
616
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
617
+ */
618
+ ttl?: number | undefined;
619
+ type: CreateChatCompletionRouterRequestType;
620
+ };
621
+ /**
622
+ * The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
623
+ */
624
+ export declare const CreateChatCompletionSearchType: {
625
+ readonly VectorSearch: "vector_search";
626
+ readonly KeywordSearch: "keyword_search";
627
+ readonly HybridSearch: "hybrid_search";
628
+ };
629
+ /**
630
+ * The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
631
+ */
632
+ export type CreateChatCompletionSearchType = ClosedEnum<typeof CreateChatCompletionSearchType>;
633
+ /**
634
+ * Exists
635
+ */
636
+ export type CreateChatCompletionOrExists = {
637
+ exists: boolean;
638
+ };
639
+ export type CreateChatCompletionOrRouterNin = string | number | boolean;
640
+ /**
641
+ * Not in
642
+ */
643
+ export type CreateChatCompletionOrNin = {
644
+ nin: Array<string | number | boolean>;
645
+ };
646
+ export type CreateChatCompletionOrRouterIn = string | number | boolean;
647
+ /**
648
+ * In
649
+ */
650
+ export type CreateChatCompletionOrIn = {
651
+ in: Array<string | number | boolean>;
652
+ };
653
+ /**
654
+ * Less than or equal to
655
+ */
656
+ export type CreateChatCompletionOrLte = {
657
+ lte: number;
658
+ };
659
+ /**
660
+ * Less than
661
+ */
662
+ export type CreateChatCompletionOrLt = {
663
+ lt: number;
664
+ };
665
+ /**
666
+ * Greater than or equal to
667
+ */
668
+ export type CreateChatCompletionOrGte = {
669
+ gte: number;
670
+ };
671
+ /**
672
+ * Greater than
673
+ */
674
+ export type CreateChatCompletionOrGt = {
675
+ gt: number;
676
+ };
677
+ export type CreateChatCompletionOrRouterNe = string | number | boolean;
678
+ /**
679
+ * Not equal to
680
+ */
681
+ export type CreateChatCompletionOrNe = {
682
+ ne: string | number | boolean;
683
+ };
684
+ export type CreateChatCompletionOrRouterEq = string | number | boolean;
685
+ /**
686
+ * Equal to
687
+ */
688
+ export type CreateChatCompletionOrEq = {
689
+ eq: string | number | boolean;
690
+ };
691
+ export type CreateChatCompletionFilterByRouterOr = CreateChatCompletionOrEq | CreateChatCompletionOrNe | CreateChatCompletionOrGt | CreateChatCompletionOrGte | CreateChatCompletionOrLt | CreateChatCompletionOrLte | CreateChatCompletionOrIn | CreateChatCompletionOrNin | CreateChatCompletionOrExists;
692
+ /**
693
+ * Or
694
+ */
695
+ export type CreateChatCompletionFilterByOr = {
696
+ or: Array<{
697
+ [k: string]: CreateChatCompletionOrEq | CreateChatCompletionOrNe | CreateChatCompletionOrGt | CreateChatCompletionOrGte | CreateChatCompletionOrLt | CreateChatCompletionOrLte | CreateChatCompletionOrIn | CreateChatCompletionOrNin | CreateChatCompletionOrExists;
698
+ }>;
699
+ };
700
+ /**
701
+ * Exists
702
+ */
703
+ export type CreateChatCompletionAndExists = {
704
+ exists: boolean;
705
+ };
706
+ export type CreateChatCompletionAndRouterNin = string | number | boolean;
707
+ /**
708
+ * Not in
709
+ */
710
+ export type CreateChatCompletionAndNin = {
711
+ nin: Array<string | number | boolean>;
712
+ };
713
+ export type CreateChatCompletionAndRouterIn = string | number | boolean;
714
+ /**
715
+ * In
716
+ */
717
+ export type CreateChatCompletionAndIn = {
718
+ in: Array<string | number | boolean>;
719
+ };
720
+ /**
721
+ * Less than or equal to
722
+ */
723
+ export type CreateChatCompletionAndLte = {
724
+ lte: number;
725
+ };
726
+ /**
727
+ * Less than
728
+ */
729
+ export type CreateChatCompletionAndLt = {
730
+ lt: number;
731
+ };
732
+ /**
733
+ * Greater than or equal to
734
+ */
735
+ export type CreateChatCompletionAndGte = {
736
+ gte: number;
737
+ };
738
+ /**
739
+ * Greater than
740
+ */
741
+ export type CreateChatCompletionAndGt = {
742
+ gt: number;
743
+ };
744
+ export type CreateChatCompletionAndRouterNe = string | number | boolean;
745
+ /**
746
+ * Not equal to
747
+ */
748
+ export type CreateChatCompletionAndNe = {
749
+ ne: string | number | boolean;
750
+ };
751
+ export type CreateChatCompletionAndRouterEq = string | number | boolean;
752
+ /**
753
+ * Equal to
754
+ */
755
+ export type CreateChatCompletionAndEq = {
756
+ eq: string | number | boolean;
757
+ };
758
+ export type CreateChatCompletionFilterByRouterAnd = CreateChatCompletionAndEq | CreateChatCompletionAndNe | CreateChatCompletionAndGt | CreateChatCompletionAndGte | CreateChatCompletionAndLt | CreateChatCompletionAndLte | CreateChatCompletionAndIn | CreateChatCompletionAndNin | CreateChatCompletionAndExists;
759
+ /**
760
+ * And
761
+ */
762
+ export type CreateChatCompletionFilterByAnd = {
763
+ and: Array<{
764
+ [k: string]: CreateChatCompletionAndEq | CreateChatCompletionAndNe | CreateChatCompletionAndGt | CreateChatCompletionAndGte | CreateChatCompletionAndLt | CreateChatCompletionAndLte | CreateChatCompletionAndIn | CreateChatCompletionAndNin | CreateChatCompletionAndExists;
765
+ }>;
766
+ };
767
+ /**
768
+ * Exists
769
+ */
770
+ export type CreateChatCompletion1Exists = {
771
+ exists: boolean;
772
+ };
773
+ export type CreateChatCompletion1RouterNin = string | number | boolean;
774
+ /**
775
+ * Not in
776
+ */
777
+ export type CreateChatCompletion1Nin = {
778
+ nin: Array<string | number | boolean>;
779
+ };
780
+ export type CreateChatCompletion1RouterIn = string | number | boolean;
781
+ /**
782
+ * In
783
+ */
784
+ export type CreateChatCompletion1In = {
785
+ in: Array<string | number | boolean>;
786
+ };
787
+ /**
788
+ * Less than or equal to
789
+ */
790
+ export type CreateChatCompletion1Lte = {
791
+ lte: number;
792
+ };
793
+ /**
794
+ * Less than
795
+ */
796
+ export type CreateChatCompletion1Lt = {
797
+ lt: number;
798
+ };
799
+ /**
800
+ * Greater than or equal to
801
+ */
802
+ export type CreateChatCompletion1Gte = {
803
+ gte: number;
804
+ };
805
+ /**
806
+ * Greater than
807
+ */
808
+ export type CreateChatCompletion1Gt = {
809
+ gt: number;
810
+ };
811
+ export type CreateChatCompletion1RouterNe = string | number | boolean;
812
+ /**
813
+ * Not equal to
814
+ */
815
+ export type CreateChatCompletion1Ne = {
816
+ ne: string | number | boolean;
817
+ };
818
+ export type CreateChatCompletion1RouterEq = string | number | boolean;
819
+ /**
820
+ * Equal to
821
+ */
822
+ export type CreateChatCompletion1Eq = {
823
+ eq: string | number | boolean;
824
+ };
825
+ export type CreateChatCompletionFilterBy1 = CreateChatCompletion1Eq | CreateChatCompletion1Ne | CreateChatCompletion1Gt | CreateChatCompletion1Gte | CreateChatCompletion1Lt | CreateChatCompletion1Lte | CreateChatCompletion1In | CreateChatCompletion1Nin | CreateChatCompletion1Exists;
826
+ /**
827
+ * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://dash.readme.com/project/orqai/v2.0/docs/searching-a-knowledge-base) for more information.
828
+ */
829
+ export type CreateChatCompletionFilterBy = CreateChatCompletionFilterByAnd | CreateChatCompletionFilterByOr | {
830
+ [k: string]: CreateChatCompletion1Eq | CreateChatCompletion1Ne | CreateChatCompletion1Gt | CreateChatCompletion1Gte | CreateChatCompletion1Lt | CreateChatCompletion1Lte | CreateChatCompletion1In | CreateChatCompletion1Nin | CreateChatCompletion1Exists;
831
+ };
832
+ /**
833
+ * Additional search options
834
+ */
835
+ export type CreateChatCompletionSearchOptions = {
836
+ /**
837
+ * Whether to include the vector in the chunk
838
+ */
839
+ includeVectors?: boolean | undefined;
840
+ /**
841
+ * Whether to include the metadata in the chunk
842
+ */
843
+ includeMetadata?: boolean | undefined;
844
+ /**
845
+ * Whether to include the scores in the chunk
846
+ */
847
+ includeScores?: boolean | undefined;
848
+ };
849
+ /**
850
+ * Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
851
+ */
852
+ export type CreateChatCompletionRerankConfig = {
853
+ /**
854
+ * The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
855
+ */
856
+ model: string;
857
+ /**
858
+ * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
859
+ */
860
+ threshold?: number | undefined;
861
+ /**
862
+ * The number of top results to return after reranking. If not provided, will default to the knowledge base configured `top_k`.
863
+ */
864
+ topK?: number | undefined;
865
+ };
866
+ /**
867
+ * Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
868
+ */
869
+ export type CreateChatCompletionAgenticRagConfig = {
870
+ /**
871
+ * The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
872
+ */
873
+ model: string;
874
+ };
875
+ export type CreateChatCompletionKnowledgeBases = {
876
+ /**
877
+ * The number of results to return. If not provided, will default to the knowledge base configured `top_k`.
878
+ */
879
+ topK?: number | undefined;
880
+ /**
881
+ * The threshold to apply to the search. If not provided, will default to the knowledge base configured `threshold`
882
+ */
883
+ threshold?: number | undefined;
884
+ /**
885
+ * The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
886
+ */
887
+ searchType?: CreateChatCompletionSearchType | undefined;
888
+ /**
889
+ * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://dash.readme.com/project/orqai/v2.0/docs/searching-a-knowledge-base) for more information.
890
+ */
891
+ filterBy?: CreateChatCompletionFilterByAnd | CreateChatCompletionFilterByOr | {
892
+ [k: string]: CreateChatCompletion1Eq | CreateChatCompletion1Ne | CreateChatCompletion1Gt | CreateChatCompletion1Gte | CreateChatCompletion1Lt | CreateChatCompletion1Lte | CreateChatCompletion1In | CreateChatCompletion1Nin | CreateChatCompletion1Exists;
893
+ } | undefined;
894
+ /**
895
+ * Additional search options
896
+ */
897
+ searchOptions?: CreateChatCompletionSearchOptions | undefined;
898
+ /**
899
+ * Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
900
+ */
901
+ rerankConfig?: CreateChatCompletionRerankConfig | undefined;
902
+ /**
903
+ * Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
904
+ */
905
+ agenticRagConfig?: CreateChatCompletionAgenticRagConfig | undefined;
906
+ /**
907
+ * Unique identifier of the knowledge base to search
908
+ */
909
+ knowledgeId: string;
910
+ /**
911
+ * The query to use to search the knowledge base. If not provided we will use the last user message from the messages of the requests
912
+ */
913
+ query?: string | undefined;
914
+ };
915
+ export declare const LoadBalancerType: {
916
+ readonly WeightBased: "weight_based";
917
+ };
918
+ export type LoadBalancerType = ClosedEnum<typeof LoadBalancerType>;
919
+ export type LoadBalancer1 = {
920
+ type: LoadBalancerType;
921
+ /**
922
+ * Model identifier for load balancing
923
+ */
924
+ model: string;
925
+ /**
926
+ * Weight assigned to this model for load balancing
927
+ */
928
+ weight?: number | undefined;
929
+ };
930
+ export type LoadBalancer = LoadBalancer1;
931
+ /**
932
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
933
+ */
934
+ export type Timeout = {
935
+ /**
936
+ * Timeout value in milliseconds
937
+ */
938
+ callTimeout: number;
939
+ };
940
+ /**
941
+ * Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, contact-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
942
+ */
943
+ export type Orq = {
944
+ /**
945
+ * The name to display on the trace. If not specified, the default system name will be used.
946
+ */
947
+ name?: string | undefined;
948
+ /**
949
+ * Retry configuration for the request
950
+ */
951
+ retry?: CreateChatCompletionRetry | undefined;
952
+ /**
953
+ * Array of fallback models to use if primary model fails
954
+ */
955
+ fallbacks?: Array<Fallbacks> | undefined;
956
+ /**
957
+ * Prompt configuration for the request
958
+ */
959
+ prompt?: Prompt | undefined;
960
+ /**
961
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
962
+ */
963
+ contact?: components.PublicContact | undefined;
964
+ /**
965
+ * Thread information to group related requests
966
+ */
967
+ thread?: CreateChatCompletionThread | undefined;
968
+ /**
969
+ * Values to replace in the prompt messages using {{"{{"}}variableName}} syntax
970
+ */
971
+ inputs?: {
972
+ [k: string]: any;
973
+ } | Array<Inputs2> | undefined;
974
+ /**
975
+ * Cache configuration for the request.
976
+ */
977
+ cache?: Cache | undefined;
978
+ knowledgeBases?: Array<CreateChatCompletionKnowledgeBases> | undefined;
979
+ /**
980
+ * Array of models with weights for load balancing requests
981
+ */
982
+ loadBalancer?: Array<LoadBalancer1> | undefined;
983
+ /**
984
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
985
+ */
986
+ timeout?: Timeout | undefined;
987
+ };
988
+ export type CreateChatCompletionRequestBody = {
989
+ /**
990
+ * A list of messages comprising the conversation so far.
991
+ */
992
+ messages: Array<CreateChatCompletionMessagesSystemMessage | CreateChatCompletionMessagesDeveloperMessage | CreateChatCompletionMessagesUserMessage | CreateChatCompletionMessagesAssistantMessage | CreateChatCompletionMessagesToolMessage>;
993
+ /**
994
+ * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
995
+ */
996
+ model: string;
997
+ /**
998
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can have a maximum length of 64 characters and values can have a maximum length of 512 characters.
999
+ */
1000
+ metadata?: {
1001
+ [k: string]: string;
1002
+ } | undefined;
1003
+ /**
1004
+ * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1005
+ */
1006
+ audio?: CreateChatCompletionAudio | null | undefined;
1007
+ /**
1008
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
1009
+ */
1010
+ frequencyPenalty?: number | null | undefined;
1011
+ /**
1012
+ * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
1013
+ *
1014
+ * @remarks
1015
+ *
1016
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
1017
+ */
1018
+ maxTokens?: number | null | undefined;
1019
+ /**
1020
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1021
+ */
1022
+ maxCompletionTokens?: number | null | undefined;
1023
+ /**
1024
+ * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
1025
+ */
1026
+ logprobs?: boolean | null | undefined;
1027
+ /**
1028
+ * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
1029
+ */
1030
+ topLogprobs?: number | null | undefined;
1031
+ /**
1032
+ * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
1033
+ */
1034
+ n?: number | null | undefined;
1035
+ /**
1036
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
1037
+ */
1038
+ presencePenalty?: number | null | undefined;
1039
+ /**
1040
+ * An object specifying the format that the model must output
1041
+ */
1042
+ responseFormat?: CreateChatCompletionResponseFormatText | CreateChatCompletionResponseFormatJSONObject | CreateChatCompletionResponseFormatJSONSchema | undefined;
1043
+ /**
1044
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1045
+ *
1046
+ * @remarks
1047
+ *
1048
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1049
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1050
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1051
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1052
+ *
1053
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1054
+ */
1055
+ reasoningEffort?: CreateChatCompletionReasoningEffort | undefined;
1056
+ /**
1057
+ * Adjusts response verbosity. Lower levels yield shorter answers.
1058
+ */
1059
+ verbosity?: string | undefined;
1060
+ /**
1061
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
1062
+ */
1063
+ seed?: number | null | undefined;
1064
+ /**
1065
+ * Up to 4 sequences where the API will stop generating further tokens.
1066
+ */
1067
+ stop?: string | Array<string> | null | undefined;
1068
+ /**
1069
+ * Options for streaming response. Only set this when you set stream: true.
1070
+ */
1071
+ streamOptions?: CreateChatCompletionStreamOptions | null | undefined;
1072
+ thinking?: components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema | undefined;
1073
+ /**
1074
+ * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1075
+ */
1076
+ temperature?: number | null | undefined;
1077
+ /**
1078
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
1079
+ */
1080
+ topP?: number | null | undefined;
1081
+ /**
1082
+ * Limits the model to consider only the top k most likely tokens at each step.
1083
+ */
1084
+ topK?: number | null | undefined;
1085
+ /**
1086
+ * A list of tools the model may call.
1087
+ */
1088
+ tools?: Array<CreateChatCompletionTools> | undefined;
1089
+ /**
1090
+ * Controls which (if any) tool is called by the model.
1091
+ */
1092
+ toolChoice?: CreateChatCompletionToolChoice2 | CreateChatCompletionToolChoice1 | undefined;
1093
+ /**
1094
+ * Whether to enable parallel function calling during tool use.
1095
+ */
1096
+ parallelToolCalls?: boolean | undefined;
1097
+ /**
1098
+ * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1099
+ */
1100
+ modalities?: Array<CreateChatCompletionModalities> | null | undefined;
1101
+ /**
1102
+ * A list of guardrails to apply to the request.
1103
+ */
1104
+ guardrails?: Array<CreateChatCompletionGuardrails> | undefined;
1105
+ /**
1106
+ * Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, contact-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
1107
+ */
1108
+ orq?: Orq | undefined;
1109
+ stream?: boolean | undefined;
1110
+ };
1111
+ /**
1112
+ * The reason the model stopped generating tokens.
1113
+ */
1114
+ export declare const CreateChatCompletionFinishReason: {
1115
+ readonly Stop: "stop";
1116
+ readonly Length: "length";
1117
+ readonly ToolCalls: "tool_calls";
1118
+ readonly ContentFilter: "content_filter";
1119
+ readonly FunctionCall: "function_call";
1120
+ };
1121
+ /**
1122
+ * The reason the model stopped generating tokens.
1123
+ */
1124
+ export type CreateChatCompletionFinishReason = ClosedEnum<typeof CreateChatCompletionFinishReason>;
1125
+ export type CreateChatCompletionRouterTopLogprobs = {
1126
+ /**
1127
+ * The token.
1128
+ */
1129
+ token: string;
1130
+ /**
1131
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1132
+ */
1133
+ logprob: number;
1134
+ /**
1135
+ * A list of integers representing the UTF-8 bytes representation of the token.
1136
+ */
1137
+ bytes: Array<number> | null;
1138
+ };
1139
+ export type CreateChatCompletionRouterContent = {
1140
+ /**
1141
+ * The token.
1142
+ */
1143
+ token: string;
1144
+ /**
1145
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1146
+ */
1147
+ logprob: number;
1148
+ /**
1149
+ * A list of integers representing the UTF-8 bytes representation of the token.
1150
+ */
1151
+ bytes: Array<number> | null;
1152
+ /**
1153
+ * List of the most likely tokens and their log probability, at this token position.
1154
+ */
1155
+ topLogprobs: Array<CreateChatCompletionRouterTopLogprobs>;
1156
+ };
1157
+ export type CreateChatCompletionRouterResponseTopLogprobs = {
1158
+ /**
1159
+ * The token.
1160
+ */
1161
+ token: string;
1162
+ /**
1163
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1164
+ */
1165
+ logprob: number;
1166
+ /**
1167
+ * A list of integers representing the UTF-8 bytes representation of the token.
1168
+ */
1169
+ bytes: Array<number> | null;
1170
+ };
1171
+ export type CreateChatCompletionRefusal = {
1172
+ /**
1173
+ * The token.
1174
+ */
1175
+ token: string;
1176
+ /**
1177
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1178
+ */
1179
+ logprob: number;
1180
+ /**
1181
+ * A list of integers representing the UTF-8 bytes representation of the token.
1182
+ */
1183
+ bytes: Array<number> | null;
1184
+ /**
1185
+ * List of the most likely tokens and their log probability, at this token position.
1186
+ */
1187
+ topLogprobs: Array<CreateChatCompletionRouterResponseTopLogprobs>;
1188
+ };
1189
+ /**
1190
+ * Log probability information for the choice.
1191
+ */
1192
+ export type CreateChatCompletionLogprobs = {
1193
+ /**
1194
+ * A list of message content tokens with log probability information.
1195
+ */
1196
+ content: Array<CreateChatCompletionRouterContent> | null;
1197
+ /**
1198
+ * A list of message refusal tokens with log probability information.
1199
+ */
1200
+ refusal: Array<CreateChatCompletionRefusal> | null;
1201
+ };
1202
+ /**
1203
+ * The type of the tool. Currently, only `function` is supported.
1204
+ */
1205
+ export declare const CreateChatCompletionRouterResponse200Type: {
1206
+ readonly Function: "function";
1207
+ };
1208
+ /**
1209
+ * The type of the tool. Currently, only `function` is supported.
1210
+ */
1211
+ export type CreateChatCompletionRouterResponse200Type = ClosedEnum<typeof CreateChatCompletionRouterResponse200Type>;
1212
+ export type CreateChatCompletionRouterResponseFunction = {
1213
+ /**
1214
+ * The name of the function.
1215
+ */
1216
+ name?: string | undefined;
1217
+ /**
1218
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
1219
+ */
1220
+ arguments?: string | undefined;
1221
+ };
1222
+ export type CreateChatCompletionRouterToolCalls = {
1223
+ /**
1224
+ * The index of the tool call.
1225
+ */
1226
+ index?: number | undefined;
1227
+ /**
1228
+ * The ID of the tool call.
1229
+ */
1230
+ id?: string | undefined;
1231
+ /**
1232
+ * The type of the tool. Currently, only `function` is supported.
1233
+ */
1234
+ type?: CreateChatCompletionRouterResponse200Type | undefined;
1235
+ function?: CreateChatCompletionRouterResponseFunction | undefined;
1236
+ /**
1237
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models.
1238
+ */
1239
+ thoughtSignature?: string | undefined;
1240
+ };
1241
+ export declare const CreateChatCompletionRouterRole: {
1242
+ readonly Assistant: "assistant";
1243
+ };
1244
+ export type CreateChatCompletionRouterRole = ClosedEnum<typeof CreateChatCompletionRouterRole>;
1245
+ /**
1246
+ * Audio response data in streaming mode.
1247
+ */
1248
+ export type CreateChatCompletionRouterResponseAudio = {
1249
+ id?: string | undefined;
1250
+ transcript?: string | undefined;
1251
+ data?: string | undefined;
1252
+ expiresAt?: number | undefined;
1253
+ };
1254
+ /**
1255
+ * A chat completion delta generated by streamed model responses.
1256
+ */
1257
+ export type Delta = {
1258
+ /**
1259
+ * The contents of the chunk message.
1260
+ */
1261
+ content?: string | null | undefined;
1262
+ refusal?: string | null | undefined;
1263
+ toolCalls?: Array<CreateChatCompletionRouterToolCalls> | undefined;
1264
+ role?: CreateChatCompletionRouterRole | undefined;
1265
+ /**
1266
+ * Internal thought process of the model
1267
+ */
1268
+ reasoning?: string | undefined;
1269
+ /**
1270
+ * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
1271
+ */
1272
+ reasoningSignature?: string | undefined;
1273
+ /**
1274
+ * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
1275
+ */
1276
+ redactedReasoning?: string | undefined;
1277
+ /**
1278
+ * Audio response data in streaming mode.
1279
+ */
1280
+ audio?: CreateChatCompletionRouterResponseAudio | null | undefined;
1281
+ };
1282
+ export type CreateChatCompletionRouterChoices = {
1283
+ /**
1284
+ * The reason the model stopped generating tokens.
1285
+ */
1286
+ finishReason: CreateChatCompletionFinishReason | null;
1287
+ /**
1288
+ * The index of the choice in the list of choices.
1289
+ */
1290
+ index?: number | undefined;
1291
+ /**
1292
+ * Log probability information for the choice.
1293
+ */
1294
+ logprobs?: CreateChatCompletionLogprobs | null | undefined;
1295
+ /**
1296
+ * A chat completion delta generated by streamed model responses.
1297
+ */
1298
+ delta: Delta;
1299
+ };
1300
+ export type CreateChatCompletionPromptTokensDetails = {
1301
+ cachedTokens?: number | null | undefined;
1302
+ cacheCreationTokens?: number | null | undefined;
1303
+ /**
1304
+ * The number of audio input tokens consumed by the request.
1305
+ */
1306
+ audioTokens?: number | null | undefined;
1307
+ };
1308
+ export type CreateChatCompletionCompletionTokensDetails = {
1309
+ reasoningTokens?: number | null | undefined;
1310
+ acceptedPredictionTokens?: number | null | undefined;
1311
+ rejectedPredictionTokens?: number | null | undefined;
1312
+ /**
1313
+ * The number of audio output tokens produced by the response.
1314
+ */
1315
+ audioTokens?: number | null | undefined;
1316
+ };
1317
+ /**
1318
+ * Usage statistics for the completion request.
1319
+ */
1320
+ export type CreateChatCompletionRouterUsage = {
1321
+ /**
1322
+ * Number of tokens in the generated completion.
1323
+ */
1324
+ completionTokens?: number | undefined;
1325
+ /**
1326
+ * Number of tokens in the prompt.
1327
+ */
1328
+ promptTokens?: number | undefined;
1329
+ /**
1330
+ * Total number of tokens used in the request (prompt + completion).
1331
+ */
1332
+ totalTokens?: number | undefined;
1333
+ promptTokensDetails?: CreateChatCompletionPromptTokensDetails | null | undefined;
1334
+ completionTokensDetails?: CreateChatCompletionCompletionTokensDetails | null | undefined;
1335
+ };
1336
+ export declare const CreateChatCompletionRouterObject: {
1337
+ readonly ChatCompletionChunk: "chat.completion.chunk";
1338
+ };
1339
+ export type CreateChatCompletionRouterObject = ClosedEnum<typeof CreateChatCompletionRouterObject>;
1340
+ /**
1341
+ * Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
1342
+ */
1343
+ export type CreateChatCompletionData = {
1344
+ /**
1345
+ * A unique identifier for the chat completion.
1346
+ */
1347
+ id: string;
1348
+ /**
1349
+ * A list of chat completion choices. Can contain more than one elements if n is greater than 1. Can also be empty for the last chunk if you set stream_options: {"include_usage": true}.
1350
+ */
1351
+ choices: Array<CreateChatCompletionRouterChoices>;
1352
+ /**
1353
+ * The Unix timestamp (in seconds) of when the chat completion was created.
1354
+ */
1355
+ created: number;
1356
+ /**
1357
+ * The model used for the chat completion.
1358
+ */
1359
+ model: string;
1360
+ /**
1361
+ * This fingerprint represents the backend configuration that the model runs with.
1362
+ */
1363
+ systemFingerprint?: string | null | undefined;
1364
+ /**
1365
+ * Usage statistics for the completion request.
1366
+ */
1367
+ usage?: CreateChatCompletionRouterUsage | null | undefined;
1368
+ object: CreateChatCompletionRouterObject;
1369
+ };
1370
+ /**
1371
+ * Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
1372
+ */
1373
+ export type CreateChatCompletionRouterResponseBody = {
1374
+ /**
1375
+ * Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
1376
+ */
1377
+ data?: CreateChatCompletionData | undefined;
1378
+ };
1379
+ /**
1380
+ * The reason the model stopped generating tokens.
1381
+ */
1382
+ export declare const FinishReason: {
1383
+ readonly Stop: "stop";
1384
+ readonly Length: "length";
1385
+ readonly ToolCalls: "tool_calls";
1386
+ readonly ContentFilter: "content_filter";
1387
+ readonly FunctionCall: "function_call";
1388
+ };
1389
+ /**
1390
+ * The reason the model stopped generating tokens.
1391
+ */
1392
+ export type FinishReason = ClosedEnum<typeof FinishReason>;
1393
+ export declare const CreateChatCompletionRouterResponseType: {
1394
+ readonly Function: "function";
1395
+ };
1396
+ export type CreateChatCompletionRouterResponseType = ClosedEnum<typeof CreateChatCompletionRouterResponseType>;
1397
+ export type CreateChatCompletionRouterFunction = {
1398
+ /**
1399
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1400
+ */
1401
+ name?: string | undefined;
1402
+ /**
1403
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
1404
+ */
1405
+ arguments?: string | undefined;
1406
+ };
1407
+ export type CreateChatCompletionToolCalls = {
1408
+ index?: number | undefined;
1409
+ id?: string | undefined;
1410
+ type?: CreateChatCompletionRouterResponseType | undefined;
1411
+ function?: CreateChatCompletionRouterFunction | undefined;
1412
+ /**
1413
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
1414
+ */
1415
+ thoughtSignature?: string | undefined;
1416
+ };
1417
+ export declare const CreateChatCompletionRole: {
1418
+ readonly Assistant: "assistant";
1419
+ };
1420
+ export type CreateChatCompletionRole = ClosedEnum<typeof CreateChatCompletionRole>;
1421
+ /**
1422
+ * If the audio output modality is requested, this object contains data about the audio response from the model.
1423
+ */
1424
+ export type CreateChatCompletionRouterAudio = {
1425
+ id: string;
1426
+ expiresAt: number;
1427
+ data: string;
1428
+ transcript: string;
1429
+ };
1430
+ /**
1431
+ * A chat completion message generated by the model.
1432
+ */
1433
+ export type CreateChatCompletionMessage = {
1434
+ content?: string | null | undefined;
1435
+ refusal?: string | null | undefined;
1436
+ toolCalls?: Array<CreateChatCompletionToolCalls> | undefined;
1437
+ role?: CreateChatCompletionRole | undefined;
1438
+ /**
1439
+ * Internal thought process of the model
1440
+ */
1441
+ reasoning?: string | null | undefined;
1442
+ /**
1443
+ * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
1444
+ */
1445
+ reasoningSignature?: string | null | undefined;
1446
+ /**
1447
+ * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
1448
+ */
1449
+ redactedReasoning?: string | undefined;
1450
+ /**
1451
+ * If the audio output modality is requested, this object contains data about the audio response from the model.
1452
+ */
1453
+ audio?: CreateChatCompletionRouterAudio | null | undefined;
1454
+ };
1455
+ export type TopLogprobs = {
1456
+ /**
1457
+ * The token.
1458
+ */
1459
+ token: string;
1460
+ /**
1461
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1462
+ */
1463
+ logprob: number;
1464
+ /**
1465
+ * A list of integers representing the UTF-8 bytes representation of the token.
1466
+ */
1467
+ bytes: Array<number> | null;
1468
+ };
1469
+ export type CreateChatCompletionContent = {
1470
+ /**
1471
+ * The token.
1472
+ */
1473
+ token: string;
1474
+ /**
1475
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1476
+ */
1477
+ logprob: number;
1478
+ /**
1479
+ * A list of integers representing the UTF-8 bytes representation of the token.
1480
+ */
1481
+ bytes: Array<number> | null;
1482
+ /**
1483
+ * List of the most likely tokens and their log probability, at this token position.
1484
+ */
1485
+ topLogprobs: Array<TopLogprobs>;
1486
+ };
1487
+ export type CreateChatCompletionTopLogprobs = {
1488
+ /**
1489
+ * The token.
1490
+ */
1491
+ token: string;
1492
+ /**
1493
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1494
+ */
1495
+ logprob: number;
1496
+ /**
1497
+ * A list of integers representing the UTF-8 bytes representation of the token.
1498
+ */
1499
+ bytes: Array<number> | null;
1500
+ };
1501
+ export type Refusal = {
1502
+ /**
1503
+ * The token.
1504
+ */
1505
+ token: string;
1506
+ /**
1507
+ * The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
1508
+ */
1509
+ logprob: number;
1510
+ /**
1511
+ * A list of integers representing the UTF-8 bytes representation of the token.
1512
+ */
1513
+ bytes: Array<number> | null;
1514
+ /**
1515
+ * List of the most likely tokens and their log probability, at this token position.
1516
+ */
1517
+ topLogprobs: Array<CreateChatCompletionTopLogprobs>;
1518
+ };
1519
+ /**
1520
+ * Log probability information for the choice.
1521
+ */
1522
+ export type Logprobs = {
1523
+ /**
1524
+ * A list of message content tokens with log probability information.
1525
+ */
1526
+ content: Array<CreateChatCompletionContent> | null;
1527
+ /**
1528
+ * A list of message refusal tokens with log probability information.
1529
+ */
1530
+ refusal: Array<Refusal> | null;
1531
+ };
1532
+ export type CreateChatCompletionChoices = {
1533
+ /**
1534
+ * The reason the model stopped generating tokens.
1535
+ */
1536
+ finishReason: FinishReason | null;
1537
+ /**
1538
+ * The index of the choice in the list of choices.
1539
+ */
1540
+ index?: number | undefined;
1541
+ /**
1542
+ * A chat completion message generated by the model.
1543
+ */
1544
+ message: CreateChatCompletionMessage;
1545
+ /**
1546
+ * Log probability information for the choice.
1547
+ */
1548
+ logprobs?: Logprobs | null | undefined;
1549
+ };
1550
+ export type PromptTokensDetails = {
1551
+ cachedTokens?: number | null | undefined;
1552
+ cacheCreationTokens?: number | null | undefined;
1553
+ /**
1554
+ * The number of audio input tokens consumed by the request.
1555
+ */
1556
+ audioTokens?: number | null | undefined;
1557
+ };
1558
+ export type CompletionTokensDetails = {
1559
+ reasoningTokens?: number | null | undefined;
1560
+ acceptedPredictionTokens?: number | null | undefined;
1561
+ rejectedPredictionTokens?: number | null | undefined;
1562
+ /**
1563
+ * The number of audio output tokens produced by the response.
1564
+ */
1565
+ audioTokens?: number | null | undefined;
1566
+ };
1567
+ /**
1568
+ * Usage statistics for the completion request.
1569
+ */
1570
+ export type CreateChatCompletionUsage = {
1571
+ /**
1572
+ * Number of tokens in the generated completion.
1573
+ */
1574
+ completionTokens?: number | undefined;
1575
+ /**
1576
+ * Number of tokens in the prompt.
1577
+ */
1578
+ promptTokens?: number | undefined;
1579
+ /**
1580
+ * Total number of tokens used in the request (prompt + completion).
1581
+ */
1582
+ totalTokens?: number | undefined;
1583
+ promptTokensDetails?: PromptTokensDetails | null | undefined;
1584
+ completionTokensDetails?: CompletionTokensDetails | null | undefined;
1585
+ };
1586
+ export declare const CreateChatCompletionObject: {
1587
+ readonly ChatCompletion: "chat.completion";
1588
+ };
1589
+ export type CreateChatCompletionObject = ClosedEnum<typeof CreateChatCompletionObject>;
1590
+ /**
1591
+ * Represents a chat completion response returned by model, based on the provided input.
1592
+ */
1593
+ export type CreateChatCompletionResponseBody = {
1594
+ /**
1595
+ * A unique identifier for the chat completion.
1596
+ */
1597
+ id: string;
1598
+ /**
1599
+ * A list of chat completion choices. Can be more than one if n is greater than 1.
1600
+ */
1601
+ choices: Array<CreateChatCompletionChoices>;
1602
+ /**
1603
+ * The Unix timestamp (in seconds) of when the chat completion was created.
1604
+ */
1605
+ created: number;
1606
+ /**
1607
+ * The model used for the chat completion.
1608
+ */
1609
+ model: string;
1610
+ /**
1611
+ * This fingerprint represents the backend configuration that the model runs with.
1612
+ */
1613
+ systemFingerprint?: string | null | undefined;
1614
+ /**
1615
+ * Usage statistics for the completion request.
1616
+ */
1617
+ usage?: CreateChatCompletionUsage | null | undefined;
1618
+ object: CreateChatCompletionObject;
1619
+ };
1620
+ export type CreateChatCompletionResponse = CreateChatCompletionResponseBody | EventStream<CreateChatCompletionRouterResponseBody>;
1621
+ /** @internal */
1622
+ export declare const CreateChatCompletionContentRouterRequest2$inboundSchema: z.ZodType<CreateChatCompletionContentRouterRequest2, z.ZodTypeDef, unknown>;
1623
+ /** @internal */
1624
+ export type CreateChatCompletionContentRouterRequest2$Outbound = components.TextContentPartSchema$Outbound;
1625
+ /** @internal */
1626
+ export declare const CreateChatCompletionContentRouterRequest2$outboundSchema: z.ZodType<CreateChatCompletionContentRouterRequest2$Outbound, z.ZodTypeDef, CreateChatCompletionContentRouterRequest2>;
1627
+ export declare function createChatCompletionContentRouterRequest2ToJSON(createChatCompletionContentRouterRequest2: CreateChatCompletionContentRouterRequest2): string;
1628
+ export declare function createChatCompletionContentRouterRequest2FromJSON(jsonString: string): SafeParseResult<CreateChatCompletionContentRouterRequest2, SDKValidationError>;
1629
+ /** @internal */
1630
+ export declare const CreateChatCompletionMessagesRouterRequestRequestBody5Content$inboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestRequestBody5Content, z.ZodTypeDef, unknown>;
1631
+ /** @internal */
1632
+ export type CreateChatCompletionMessagesRouterRequestRequestBody5Content$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
1633
+ /** @internal */
1634
+ export declare const CreateChatCompletionMessagesRouterRequestRequestBody5Content$outboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestRequestBody5Content$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesRouterRequestRequestBody5Content>;
1635
+ export declare function createChatCompletionMessagesRouterRequestRequestBody5ContentToJSON(createChatCompletionMessagesRouterRequestRequestBody5Content: CreateChatCompletionMessagesRouterRequestRequestBody5Content): string;
1636
+ export declare function createChatCompletionMessagesRouterRequestRequestBody5ContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesRouterRequestRequestBody5Content, SDKValidationError>;
1637
+ /** @internal */
1638
+ export declare const CreateChatCompletionMessagesRouterType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesRouterType>;
1639
+ /** @internal */
1640
+ export declare const CreateChatCompletionMessagesRouterType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesRouterType>;
1641
+ /** @internal */
1642
+ export declare const CreateChatCompletionMessagesTtl$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesTtl>;
1643
+ /** @internal */
1644
+ export declare const CreateChatCompletionMessagesTtl$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesTtl>;
1645
+ /** @internal */
1646
+ export declare const CreateChatCompletionMessagesCacheControl$inboundSchema: z.ZodType<CreateChatCompletionMessagesCacheControl, z.ZodTypeDef, unknown>;
1647
+ /** @internal */
1648
+ export type CreateChatCompletionMessagesCacheControl$Outbound = {
1649
+ type: string;
1650
+ ttl: string;
1651
+ };
1652
+ /** @internal */
1653
+ export declare const CreateChatCompletionMessagesCacheControl$outboundSchema: z.ZodType<CreateChatCompletionMessagesCacheControl$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesCacheControl>;
1654
+ export declare function createChatCompletionMessagesCacheControlToJSON(createChatCompletionMessagesCacheControl: CreateChatCompletionMessagesCacheControl): string;
1655
+ export declare function createChatCompletionMessagesCacheControlFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesCacheControl, SDKValidationError>;
1656
+ /** @internal */
1657
+ export declare const CreateChatCompletionMessagesToolMessage$inboundSchema: z.ZodType<CreateChatCompletionMessagesToolMessage, z.ZodTypeDef, unknown>;
1658
+ /** @internal */
1659
+ export type CreateChatCompletionMessagesToolMessage$Outbound = {
1660
+ role: "tool";
1661
+ content: string | Array<components.TextContentPartSchema$Outbound>;
1662
+ tool_call_id: string | null;
1663
+ cache_control?: CreateChatCompletionMessagesCacheControl$Outbound | undefined;
1664
+ };
1665
+ /** @internal */
1666
+ export declare const CreateChatCompletionMessagesToolMessage$outboundSchema: z.ZodType<CreateChatCompletionMessagesToolMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesToolMessage>;
1667
+ export declare function createChatCompletionMessagesToolMessageToJSON(createChatCompletionMessagesToolMessage: CreateChatCompletionMessagesToolMessage): string;
1668
+ export declare function createChatCompletionMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesToolMessage, SDKValidationError>;
1669
+ /** @internal */
1670
+ export declare const CreateChatCompletionContentRouter2$inboundSchema: z.ZodType<CreateChatCompletionContentRouter2, z.ZodTypeDef, unknown>;
1671
+ /** @internal */
1672
+ export type CreateChatCompletionContentRouter2$Outbound = (components.TextContentPartSchema$Outbound & {
1673
+ type: "text";
1674
+ }) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound;
1675
+ /** @internal */
1676
+ export declare const CreateChatCompletionContentRouter2$outboundSchema: z.ZodType<CreateChatCompletionContentRouter2$Outbound, z.ZodTypeDef, CreateChatCompletionContentRouter2>;
1677
+ export declare function createChatCompletionContentRouter2ToJSON(createChatCompletionContentRouter2: CreateChatCompletionContentRouter2): string;
1678
+ export declare function createChatCompletionContentRouter2FromJSON(jsonString: string): SafeParseResult<CreateChatCompletionContentRouter2, SDKValidationError>;
1679
+ /** @internal */
1680
+ export declare const CreateChatCompletionMessagesRouterRequestRequestBodyContent$inboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestRequestBodyContent, z.ZodTypeDef, unknown>;
1681
+ /** @internal */
1682
+ export type CreateChatCompletionMessagesRouterRequestRequestBodyContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
1683
+ type: "text";
1684
+ }) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound>;
1685
+ /** @internal */
1686
+ export declare const CreateChatCompletionMessagesRouterRequestRequestBodyContent$outboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestRequestBodyContent$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesRouterRequestRequestBodyContent>;
1687
+ export declare function createChatCompletionMessagesRouterRequestRequestBodyContentToJSON(createChatCompletionMessagesRouterRequestRequestBodyContent: CreateChatCompletionMessagesRouterRequestRequestBodyContent): string;
1688
+ export declare function createChatCompletionMessagesRouterRequestRequestBodyContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesRouterRequestRequestBodyContent, SDKValidationError>;
1689
+ /** @internal */
1690
+ export declare const CreateChatCompletionMessagesAudio$inboundSchema: z.ZodType<CreateChatCompletionMessagesAudio, z.ZodTypeDef, unknown>;
1691
+ /** @internal */
1692
+ export type CreateChatCompletionMessagesAudio$Outbound = {
1693
+ id: string;
1694
+ };
1695
+ /** @internal */
1696
+ export declare const CreateChatCompletionMessagesAudio$outboundSchema: z.ZodType<CreateChatCompletionMessagesAudio$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesAudio>;
1697
+ export declare function createChatCompletionMessagesAudioToJSON(createChatCompletionMessagesAudio: CreateChatCompletionMessagesAudio): string;
1698
+ export declare function createChatCompletionMessagesAudioFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesAudio, SDKValidationError>;
1699
+ /** @internal */
1700
+ export declare const CreateChatCompletionMessagesType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesType>;
1701
+ /** @internal */
1702
+ export declare const CreateChatCompletionMessagesType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionMessagesType>;
1703
+ /** @internal */
1704
+ export declare const CreateChatCompletionMessagesFunction$inboundSchema: z.ZodType<CreateChatCompletionMessagesFunction, z.ZodTypeDef, unknown>;
1705
+ /** @internal */
1706
+ export type CreateChatCompletionMessagesFunction$Outbound = {
1707
+ name?: string | undefined;
1708
+ arguments?: string | undefined;
1709
+ };
1710
+ /** @internal */
1711
+ export declare const CreateChatCompletionMessagesFunction$outboundSchema: z.ZodType<CreateChatCompletionMessagesFunction$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesFunction>;
1712
+ export declare function createChatCompletionMessagesFunctionToJSON(createChatCompletionMessagesFunction: CreateChatCompletionMessagesFunction): string;
1713
+ export declare function createChatCompletionMessagesFunctionFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesFunction, SDKValidationError>;
1714
+ /** @internal */
1715
+ export declare const CreateChatCompletionMessagesToolCalls$inboundSchema: z.ZodType<CreateChatCompletionMessagesToolCalls, z.ZodTypeDef, unknown>;
1716
+ /** @internal */
1717
+ export type CreateChatCompletionMessagesToolCalls$Outbound = {
1718
+ id: string;
1719
+ type: string;
1720
+ function: CreateChatCompletionMessagesFunction$Outbound;
1721
+ thought_signature?: string | undefined;
1722
+ };
1723
+ /** @internal */
1724
+ export declare const CreateChatCompletionMessagesToolCalls$outboundSchema: z.ZodType<CreateChatCompletionMessagesToolCalls$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesToolCalls>;
1725
+ export declare function createChatCompletionMessagesToolCallsToJSON(createChatCompletionMessagesToolCalls: CreateChatCompletionMessagesToolCalls): string;
1726
+ export declare function createChatCompletionMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesToolCalls, SDKValidationError>;
1727
+ /** @internal */
1728
+ export declare const CreateChatCompletionMessagesAssistantMessage$inboundSchema: z.ZodType<CreateChatCompletionMessagesAssistantMessage, z.ZodTypeDef, unknown>;
1729
+ /** @internal */
1730
+ export type CreateChatCompletionMessagesAssistantMessage$Outbound = {
1731
+ content?: string | Array<(components.TextContentPartSchema$Outbound & {
1732
+ type: "text";
1733
+ }) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound> | null | undefined;
1734
+ refusal?: string | null | undefined;
1735
+ role: "assistant";
1736
+ name?: string | undefined;
1737
+ audio?: CreateChatCompletionMessagesAudio$Outbound | null | undefined;
1738
+ tool_calls?: Array<CreateChatCompletionMessagesToolCalls$Outbound> | undefined;
1739
+ };
1740
+ /** @internal */
1741
+ export declare const CreateChatCompletionMessagesAssistantMessage$outboundSchema: z.ZodType<CreateChatCompletionMessagesAssistantMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesAssistantMessage>;
1742
+ export declare function createChatCompletionMessagesAssistantMessageToJSON(createChatCompletionMessagesAssistantMessage: CreateChatCompletionMessagesAssistantMessage): string;
1743
+ export declare function createChatCompletionMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesAssistantMessage, SDKValidationError>;
1744
+ /** @internal */
1745
+ export declare const CreateChatCompletion2RouterType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletion2RouterType>;
1746
+ /** @internal */
1747
+ export declare const CreateChatCompletion2RouterType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletion2RouterType>;
1748
+ /** @internal */
1749
+ export declare const CreateChatCompletion2Ttl$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletion2Ttl>;
1750
+ /** @internal */
1751
+ export declare const CreateChatCompletion2Ttl$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletion2Ttl>;
1752
+ /** @internal */
1753
+ export declare const CreateChatCompletion2CacheControl$inboundSchema: z.ZodType<CreateChatCompletion2CacheControl, z.ZodTypeDef, unknown>;
1754
+ /** @internal */
1755
+ export type CreateChatCompletion2CacheControl$Outbound = {
1756
+ type: string;
1757
+ ttl: string;
1758
+ };
1759
+ /** @internal */
1760
+ export declare const CreateChatCompletion2CacheControl$outboundSchema: z.ZodType<CreateChatCompletion2CacheControl$Outbound, z.ZodTypeDef, CreateChatCompletion2CacheControl>;
1761
+ export declare function createChatCompletion2CacheControlToJSON(createChatCompletion2CacheControl: CreateChatCompletion2CacheControl): string;
1762
+ export declare function createChatCompletion2CacheControlFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion2CacheControl, SDKValidationError>;
1763
+ /** @internal */
1764
+ export declare const CreateChatCompletion24$inboundSchema: z.ZodType<CreateChatCompletion24, z.ZodTypeDef, unknown>;
1765
+ /** @internal */
1766
+ export type CreateChatCompletion24$Outbound = {
1767
+ type: "file";
1768
+ cache_control?: CreateChatCompletion2CacheControl$Outbound | undefined;
1769
+ file: components.FileContentPartSchema$Outbound;
1770
+ };
1771
+ /** @internal */
1772
+ export declare const CreateChatCompletion24$outboundSchema: z.ZodType<CreateChatCompletion24$Outbound, z.ZodTypeDef, CreateChatCompletion24>;
1773
+ export declare function createChatCompletion24ToJSON(createChatCompletion24: CreateChatCompletion24): string;
1774
+ export declare function createChatCompletion24FromJSON(jsonString: string): SafeParseResult<CreateChatCompletion24, SDKValidationError>;
1775
+ /** @internal */
1776
+ export declare const CreateChatCompletionContent2$inboundSchema: z.ZodType<CreateChatCompletionContent2, z.ZodTypeDef, unknown>;
1777
+ /** @internal */
1778
+ export type CreateChatCompletionContent2$Outbound = (components.TextContentPartSchema$Outbound & {
1779
+ type: "text";
1780
+ }) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | CreateChatCompletion24$Outbound;
1781
+ /** @internal */
1782
+ export declare const CreateChatCompletionContent2$outboundSchema: z.ZodType<CreateChatCompletionContent2$Outbound, z.ZodTypeDef, CreateChatCompletionContent2>;
1783
+ export declare function createChatCompletionContent2ToJSON(createChatCompletionContent2: CreateChatCompletionContent2): string;
1784
+ export declare function createChatCompletionContent2FromJSON(jsonString: string): SafeParseResult<CreateChatCompletionContent2, SDKValidationError>;
1785
+ /** @internal */
1786
+ export declare const CreateChatCompletionMessagesRouterRequestContent$inboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestContent, z.ZodTypeDef, unknown>;
1787
+ /** @internal */
1788
+ export type CreateChatCompletionMessagesRouterRequestContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
1789
+ type: "text";
1790
+ }) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | CreateChatCompletion24$Outbound>;
1791
+ /** @internal */
1792
+ export declare const CreateChatCompletionMessagesRouterRequestContent$outboundSchema: z.ZodType<CreateChatCompletionMessagesRouterRequestContent$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesRouterRequestContent>;
1793
+ export declare function createChatCompletionMessagesRouterRequestContentToJSON(createChatCompletionMessagesRouterRequestContent: CreateChatCompletionMessagesRouterRequestContent): string;
1794
+ export declare function createChatCompletionMessagesRouterRequestContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesRouterRequestContent, SDKValidationError>;
1795
+ /** @internal */
1796
+ export declare const CreateChatCompletionMessagesUserMessage$inboundSchema: z.ZodType<CreateChatCompletionMessagesUserMessage, z.ZodTypeDef, unknown>;
1797
+ /** @internal */
1798
+ export type CreateChatCompletionMessagesUserMessage$Outbound = {
1799
+ role: "user";
1800
+ name?: string | undefined;
1801
+ content: string | Array<(components.TextContentPartSchema$Outbound & {
1802
+ type: "text";
1803
+ }) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | CreateChatCompletion24$Outbound>;
1804
+ };
1805
+ /** @internal */
1806
+ export declare const CreateChatCompletionMessagesUserMessage$outboundSchema: z.ZodType<CreateChatCompletionMessagesUserMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesUserMessage>;
1807
+ export declare function createChatCompletionMessagesUserMessageToJSON(createChatCompletionMessagesUserMessage: CreateChatCompletionMessagesUserMessage): string;
1808
+ export declare function createChatCompletionMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesUserMessage, SDKValidationError>;
1809
+ /** @internal */
1810
+ export declare const CreateChatCompletionMessagesRouterContent$inboundSchema: z.ZodType<CreateChatCompletionMessagesRouterContent, z.ZodTypeDef, unknown>;
1811
+ /** @internal */
1812
+ export type CreateChatCompletionMessagesRouterContent$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
1813
+ /** @internal */
1814
+ export declare const CreateChatCompletionMessagesRouterContent$outboundSchema: z.ZodType<CreateChatCompletionMessagesRouterContent$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesRouterContent>;
1815
+ export declare function createChatCompletionMessagesRouterContentToJSON(createChatCompletionMessagesRouterContent: CreateChatCompletionMessagesRouterContent): string;
1816
+ export declare function createChatCompletionMessagesRouterContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesRouterContent, SDKValidationError>;
1817
+ /** @internal */
1818
+ export declare const CreateChatCompletionMessagesDeveloperMessage$inboundSchema: z.ZodType<CreateChatCompletionMessagesDeveloperMessage, z.ZodTypeDef, unknown>;
1819
+ /** @internal */
1820
+ export type CreateChatCompletionMessagesDeveloperMessage$Outbound = {
1821
+ role: "developer";
1822
+ content: string | Array<components.TextContentPartSchema$Outbound>;
1823
+ name?: string | undefined;
1824
+ };
1825
+ /** @internal */
1826
+ export declare const CreateChatCompletionMessagesDeveloperMessage$outboundSchema: z.ZodType<CreateChatCompletionMessagesDeveloperMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesDeveloperMessage>;
1827
+ export declare function createChatCompletionMessagesDeveloperMessageToJSON(createChatCompletionMessagesDeveloperMessage: CreateChatCompletionMessagesDeveloperMessage): string;
1828
+ export declare function createChatCompletionMessagesDeveloperMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesDeveloperMessage, SDKValidationError>;
1829
+ /** @internal */
1830
+ export declare const CreateChatCompletionMessagesContent$inboundSchema: z.ZodType<CreateChatCompletionMessagesContent, z.ZodTypeDef, unknown>;
1831
+ /** @internal */
1832
+ export type CreateChatCompletionMessagesContent$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
1833
+ /** @internal */
1834
+ export declare const CreateChatCompletionMessagesContent$outboundSchema: z.ZodType<CreateChatCompletionMessagesContent$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesContent>;
1835
+ export declare function createChatCompletionMessagesContentToJSON(createChatCompletionMessagesContent: CreateChatCompletionMessagesContent): string;
1836
+ export declare function createChatCompletionMessagesContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesContent, SDKValidationError>;
1837
+ /** @internal */
1838
+ export declare const CreateChatCompletionMessagesSystemMessage$inboundSchema: z.ZodType<CreateChatCompletionMessagesSystemMessage, z.ZodTypeDef, unknown>;
1839
+ /** @internal */
1840
+ export type CreateChatCompletionMessagesSystemMessage$Outbound = {
1841
+ role: "system";
1842
+ content: string | Array<components.TextContentPartSchema$Outbound>;
1843
+ name?: string | undefined;
1844
+ };
1845
+ /** @internal */
1846
+ export declare const CreateChatCompletionMessagesSystemMessage$outboundSchema: z.ZodType<CreateChatCompletionMessagesSystemMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessagesSystemMessage>;
1847
+ export declare function createChatCompletionMessagesSystemMessageToJSON(createChatCompletionMessagesSystemMessage: CreateChatCompletionMessagesSystemMessage): string;
1848
+ export declare function createChatCompletionMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessagesSystemMessage, SDKValidationError>;
1849
+ /** @internal */
1850
+ export declare const CreateChatCompletionMessages$inboundSchema: z.ZodType<CreateChatCompletionMessages, z.ZodTypeDef, unknown>;
1851
+ /** @internal */
1852
+ export type CreateChatCompletionMessages$Outbound = CreateChatCompletionMessagesSystemMessage$Outbound | CreateChatCompletionMessagesDeveloperMessage$Outbound | CreateChatCompletionMessagesUserMessage$Outbound | CreateChatCompletionMessagesAssistantMessage$Outbound | CreateChatCompletionMessagesToolMessage$Outbound;
1853
+ /** @internal */
1854
+ export declare const CreateChatCompletionMessages$outboundSchema: z.ZodType<CreateChatCompletionMessages$Outbound, z.ZodTypeDef, CreateChatCompletionMessages>;
1855
+ export declare function createChatCompletionMessagesToJSON(createChatCompletionMessages: CreateChatCompletionMessages): string;
1856
+ export declare function createChatCompletionMessagesFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessages, SDKValidationError>;
1857
+ /** @internal */
1858
+ export declare const CreateChatCompletionVoice$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionVoice>;
1859
+ /** @internal */
1860
+ export declare const CreateChatCompletionVoice$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionVoice>;
1861
+ /** @internal */
1862
+ export declare const CreateChatCompletionFormat$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionFormat>;
1863
+ /** @internal */
1864
+ export declare const CreateChatCompletionFormat$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionFormat>;
1865
+ /** @internal */
1866
+ export declare const CreateChatCompletionAudio$inboundSchema: z.ZodType<CreateChatCompletionAudio, z.ZodTypeDef, unknown>;
1867
+ /** @internal */
1868
+ export type CreateChatCompletionAudio$Outbound = {
1869
+ voice: string;
1870
+ format: string;
1871
+ };
1872
+ /** @internal */
1873
+ export declare const CreateChatCompletionAudio$outboundSchema: z.ZodType<CreateChatCompletionAudio$Outbound, z.ZodTypeDef, CreateChatCompletionAudio>;
1874
+ export declare function createChatCompletionAudioToJSON(createChatCompletionAudio: CreateChatCompletionAudio): string;
1875
+ export declare function createChatCompletionAudioFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAudio, SDKValidationError>;
1876
+ /** @internal */
1877
+ export declare const CreateChatCompletionResponseFormatRouterJsonSchema$inboundSchema: z.ZodType<CreateChatCompletionResponseFormatRouterJsonSchema, z.ZodTypeDef, unknown>;
1878
+ /** @internal */
1879
+ export type CreateChatCompletionResponseFormatRouterJsonSchema$Outbound = {
1880
+ description?: string | undefined;
1881
+ name: string;
1882
+ schema?: any | undefined;
1883
+ strict: boolean;
1884
+ };
1885
+ /** @internal */
1886
+ export declare const CreateChatCompletionResponseFormatRouterJsonSchema$outboundSchema: z.ZodType<CreateChatCompletionResponseFormatRouterJsonSchema$Outbound, z.ZodTypeDef, CreateChatCompletionResponseFormatRouterJsonSchema>;
1887
+ export declare function createChatCompletionResponseFormatRouterJsonSchemaToJSON(createChatCompletionResponseFormatRouterJsonSchema: CreateChatCompletionResponseFormatRouterJsonSchema): string;
1888
+ export declare function createChatCompletionResponseFormatRouterJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseFormatRouterJsonSchema, SDKValidationError>;
1889
+ /** @internal */
1890
+ export declare const CreateChatCompletionResponseFormatJSONSchema$inboundSchema: z.ZodType<CreateChatCompletionResponseFormatJSONSchema, z.ZodTypeDef, unknown>;
1891
+ /** @internal */
1892
+ export type CreateChatCompletionResponseFormatJSONSchema$Outbound = {
1893
+ type: "json_schema";
1894
+ json_schema: CreateChatCompletionResponseFormatRouterJsonSchema$Outbound;
1895
+ };
1896
+ /** @internal */
1897
+ export declare const CreateChatCompletionResponseFormatJSONSchema$outboundSchema: z.ZodType<CreateChatCompletionResponseFormatJSONSchema$Outbound, z.ZodTypeDef, CreateChatCompletionResponseFormatJSONSchema>;
1898
+ export declare function createChatCompletionResponseFormatJSONSchemaToJSON(createChatCompletionResponseFormatJSONSchema: CreateChatCompletionResponseFormatJSONSchema): string;
1899
+ export declare function createChatCompletionResponseFormatJSONSchemaFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseFormatJSONSchema, SDKValidationError>;
1900
+ /** @internal */
1901
+ export declare const CreateChatCompletionResponseFormatJSONObject$inboundSchema: z.ZodType<CreateChatCompletionResponseFormatJSONObject, z.ZodTypeDef, unknown>;
1902
+ /** @internal */
1903
+ export type CreateChatCompletionResponseFormatJSONObject$Outbound = {
1904
+ type: "json_object";
1905
+ };
1906
+ /** @internal */
1907
+ export declare const CreateChatCompletionResponseFormatJSONObject$outboundSchema: z.ZodType<CreateChatCompletionResponseFormatJSONObject$Outbound, z.ZodTypeDef, CreateChatCompletionResponseFormatJSONObject>;
1908
+ export declare function createChatCompletionResponseFormatJSONObjectToJSON(createChatCompletionResponseFormatJSONObject: CreateChatCompletionResponseFormatJSONObject): string;
1909
+ export declare function createChatCompletionResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseFormatJSONObject, SDKValidationError>;
1910
+ /** @internal */
1911
+ export declare const CreateChatCompletionResponseFormatText$inboundSchema: z.ZodType<CreateChatCompletionResponseFormatText, z.ZodTypeDef, unknown>;
1912
+ /** @internal */
1913
+ export type CreateChatCompletionResponseFormatText$Outbound = {
1914
+ type: "text";
1915
+ };
1916
+ /** @internal */
1917
+ export declare const CreateChatCompletionResponseFormatText$outboundSchema: z.ZodType<CreateChatCompletionResponseFormatText$Outbound, z.ZodTypeDef, CreateChatCompletionResponseFormatText>;
1918
+ export declare function createChatCompletionResponseFormatTextToJSON(createChatCompletionResponseFormatText: CreateChatCompletionResponseFormatText): string;
1919
+ export declare function createChatCompletionResponseFormatTextFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseFormatText, SDKValidationError>;
1920
+ /** @internal */
1921
+ export declare const CreateChatCompletionResponseFormat$inboundSchema: z.ZodType<CreateChatCompletionResponseFormat, z.ZodTypeDef, unknown>;
1922
+ /** @internal */
1923
+ export type CreateChatCompletionResponseFormat$Outbound = CreateChatCompletionResponseFormatText$Outbound | CreateChatCompletionResponseFormatJSONObject$Outbound | CreateChatCompletionResponseFormatJSONSchema$Outbound;
1924
+ /** @internal */
1925
+ export declare const CreateChatCompletionResponseFormat$outboundSchema: z.ZodType<CreateChatCompletionResponseFormat$Outbound, z.ZodTypeDef, CreateChatCompletionResponseFormat>;
1926
+ export declare function createChatCompletionResponseFormatToJSON(createChatCompletionResponseFormat: CreateChatCompletionResponseFormat): string;
1927
+ export declare function createChatCompletionResponseFormatFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseFormat, SDKValidationError>;
1928
+ /** @internal */
1929
+ export declare const CreateChatCompletionReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionReasoningEffort>;
1930
+ /** @internal */
1931
+ export declare const CreateChatCompletionReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionReasoningEffort>;
1932
+ /** @internal */
1933
+ export declare const CreateChatCompletionStop$inboundSchema: z.ZodType<CreateChatCompletionStop, z.ZodTypeDef, unknown>;
1934
+ /** @internal */
1935
+ export type CreateChatCompletionStop$Outbound = string | Array<string>;
1936
+ /** @internal */
1937
+ export declare const CreateChatCompletionStop$outboundSchema: z.ZodType<CreateChatCompletionStop$Outbound, z.ZodTypeDef, CreateChatCompletionStop>;
1938
+ export declare function createChatCompletionStopToJSON(createChatCompletionStop: CreateChatCompletionStop): string;
1939
+ export declare function createChatCompletionStopFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionStop, SDKValidationError>;
1940
+ /** @internal */
1941
+ export declare const CreateChatCompletionStreamOptions$inboundSchema: z.ZodType<CreateChatCompletionStreamOptions, z.ZodTypeDef, unknown>;
1942
+ /** @internal */
1943
+ export type CreateChatCompletionStreamOptions$Outbound = {
1944
+ include_usage?: boolean | undefined;
1945
+ };
1946
+ /** @internal */
1947
+ export declare const CreateChatCompletionStreamOptions$outboundSchema: z.ZodType<CreateChatCompletionStreamOptions$Outbound, z.ZodTypeDef, CreateChatCompletionStreamOptions>;
1948
+ export declare function createChatCompletionStreamOptionsToJSON(createChatCompletionStreamOptions: CreateChatCompletionStreamOptions): string;
1949
+ export declare function createChatCompletionStreamOptionsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionStreamOptions, SDKValidationError>;
1950
+ /** @internal */
1951
+ export declare const CreateChatCompletionThinking$inboundSchema: z.ZodType<CreateChatCompletionThinking, z.ZodTypeDef, unknown>;
1952
+ /** @internal */
1953
+ export type CreateChatCompletionThinking$Outbound = components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound;
1954
+ /** @internal */
1955
+ export declare const CreateChatCompletionThinking$outboundSchema: z.ZodType<CreateChatCompletionThinking$Outbound, z.ZodTypeDef, CreateChatCompletionThinking>;
1956
+ export declare function createChatCompletionThinkingToJSON(createChatCompletionThinking: CreateChatCompletionThinking): string;
1957
+ export declare function createChatCompletionThinkingFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionThinking, SDKValidationError>;
1958
+ /** @internal */
1959
+ export declare const CreateChatCompletionType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionType>;
1960
+ /** @internal */
1961
+ export declare const CreateChatCompletionType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionType>;
1962
+ /** @internal */
1963
+ export declare const CreateChatCompletionRouterType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterType>;
1964
+ /** @internal */
1965
+ export declare const CreateChatCompletionRouterType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterType>;
1966
+ /** @internal */
1967
+ export declare const CreateChatCompletionParameters$inboundSchema: z.ZodType<CreateChatCompletionParameters, z.ZodTypeDef, unknown>;
1968
+ /** @internal */
1969
+ export type CreateChatCompletionParameters$Outbound = {
1970
+ type: string;
1971
+ properties: {
1972
+ [k: string]: any;
1973
+ };
1974
+ required?: Array<string> | undefined;
1975
+ additionalProperties?: boolean | undefined;
1976
+ };
1977
+ /** @internal */
1978
+ export declare const CreateChatCompletionParameters$outboundSchema: z.ZodType<CreateChatCompletionParameters$Outbound, z.ZodTypeDef, CreateChatCompletionParameters>;
1979
+ export declare function createChatCompletionParametersToJSON(createChatCompletionParameters: CreateChatCompletionParameters): string;
1980
+ export declare function createChatCompletionParametersFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionParameters, SDKValidationError>;
1981
+ /** @internal */
1982
+ export declare const CreateChatCompletionFunction$inboundSchema: z.ZodType<CreateChatCompletionFunction, z.ZodTypeDef, unknown>;
1983
+ /** @internal */
1984
+ export type CreateChatCompletionFunction$Outbound = {
1985
+ name: string;
1986
+ description?: string | undefined;
1987
+ parameters?: CreateChatCompletionParameters$Outbound | undefined;
1988
+ strict?: boolean | undefined;
1989
+ };
1990
+ /** @internal */
1991
+ export declare const CreateChatCompletionFunction$outboundSchema: z.ZodType<CreateChatCompletionFunction$Outbound, z.ZodTypeDef, CreateChatCompletionFunction>;
1992
+ export declare function createChatCompletionFunctionToJSON(createChatCompletionFunction: CreateChatCompletionFunction): string;
1993
+ export declare function createChatCompletionFunctionFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFunction, SDKValidationError>;
1994
+ /** @internal */
1995
+ export declare const CreateChatCompletionTools$inboundSchema: z.ZodType<CreateChatCompletionTools, z.ZodTypeDef, unknown>;
1996
+ /** @internal */
1997
+ export type CreateChatCompletionTools$Outbound = {
1998
+ type?: string | undefined;
1999
+ function: CreateChatCompletionFunction$Outbound;
2000
+ };
2001
+ /** @internal */
2002
+ export declare const CreateChatCompletionTools$outboundSchema: z.ZodType<CreateChatCompletionTools$Outbound, z.ZodTypeDef, CreateChatCompletionTools>;
2003
+ export declare function createChatCompletionToolsToJSON(createChatCompletionTools: CreateChatCompletionTools): string;
2004
+ export declare function createChatCompletionToolsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionTools, SDKValidationError>;
2005
+ /** @internal */
2006
+ export declare const CreateChatCompletionToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionToolChoiceType>;
2007
+ /** @internal */
2008
+ export declare const CreateChatCompletionToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionToolChoiceType>;
2009
+ /** @internal */
2010
+ export declare const CreateChatCompletionToolChoiceFunction$inboundSchema: z.ZodType<CreateChatCompletionToolChoiceFunction, z.ZodTypeDef, unknown>;
2011
+ /** @internal */
2012
+ export type CreateChatCompletionToolChoiceFunction$Outbound = {
2013
+ name: string;
2014
+ };
2015
+ /** @internal */
2016
+ export declare const CreateChatCompletionToolChoiceFunction$outboundSchema: z.ZodType<CreateChatCompletionToolChoiceFunction$Outbound, z.ZodTypeDef, CreateChatCompletionToolChoiceFunction>;
2017
+ export declare function createChatCompletionToolChoiceFunctionToJSON(createChatCompletionToolChoiceFunction: CreateChatCompletionToolChoiceFunction): string;
2018
+ export declare function createChatCompletionToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionToolChoiceFunction, SDKValidationError>;
2019
+ /** @internal */
2020
+ export declare const CreateChatCompletionToolChoice2$inboundSchema: z.ZodType<CreateChatCompletionToolChoice2, z.ZodTypeDef, unknown>;
2021
+ /** @internal */
2022
+ export type CreateChatCompletionToolChoice2$Outbound = {
2023
+ type?: string | undefined;
2024
+ function: CreateChatCompletionToolChoiceFunction$Outbound;
2025
+ };
2026
+ /** @internal */
2027
+ export declare const CreateChatCompletionToolChoice2$outboundSchema: z.ZodType<CreateChatCompletionToolChoice2$Outbound, z.ZodTypeDef, CreateChatCompletionToolChoice2>;
2028
+ export declare function createChatCompletionToolChoice2ToJSON(createChatCompletionToolChoice2: CreateChatCompletionToolChoice2): string;
2029
+ export declare function createChatCompletionToolChoice2FromJSON(jsonString: string): SafeParseResult<CreateChatCompletionToolChoice2, SDKValidationError>;
2030
+ /** @internal */
2031
+ export declare const CreateChatCompletionToolChoice1$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionToolChoice1>;
2032
+ /** @internal */
2033
+ export declare const CreateChatCompletionToolChoice1$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionToolChoice1>;
2034
+ /** @internal */
2035
+ export declare const CreateChatCompletionToolChoice$inboundSchema: z.ZodType<CreateChatCompletionToolChoice, z.ZodTypeDef, unknown>;
2036
+ /** @internal */
2037
+ export type CreateChatCompletionToolChoice$Outbound = CreateChatCompletionToolChoice2$Outbound | string;
2038
+ /** @internal */
2039
+ export declare const CreateChatCompletionToolChoice$outboundSchema: z.ZodType<CreateChatCompletionToolChoice$Outbound, z.ZodTypeDef, CreateChatCompletionToolChoice>;
2040
+ export declare function createChatCompletionToolChoiceToJSON(createChatCompletionToolChoice: CreateChatCompletionToolChoice): string;
2041
+ export declare function createChatCompletionToolChoiceFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionToolChoice, SDKValidationError>;
2042
+ /** @internal */
2043
+ export declare const CreateChatCompletionModalities$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionModalities>;
2044
+ /** @internal */
2045
+ export declare const CreateChatCompletionModalities$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionModalities>;
2046
+ /** @internal */
2047
+ export declare const CreateChatCompletionId1$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionId1>;
2048
+ /** @internal */
2049
+ export declare const CreateChatCompletionId1$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionId1>;
2050
+ /** @internal */
2051
+ export declare const CreateChatCompletionId$inboundSchema: z.ZodType<CreateChatCompletionId, z.ZodTypeDef, unknown>;
2052
+ /** @internal */
2053
+ export type CreateChatCompletionId$Outbound = string | string;
2054
+ /** @internal */
2055
+ export declare const CreateChatCompletionId$outboundSchema: z.ZodType<CreateChatCompletionId$Outbound, z.ZodTypeDef, CreateChatCompletionId>;
2056
+ export declare function createChatCompletionIdToJSON(createChatCompletionId: CreateChatCompletionId): string;
2057
+ export declare function createChatCompletionIdFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionId, SDKValidationError>;
2058
+ /** @internal */
2059
+ export declare const CreateChatCompletionExecuteOn$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionExecuteOn>;
2060
+ /** @internal */
2061
+ export declare const CreateChatCompletionExecuteOn$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionExecuteOn>;
2062
+ /** @internal */
2063
+ export declare const CreateChatCompletionGuardrails$inboundSchema: z.ZodType<CreateChatCompletionGuardrails, z.ZodTypeDef, unknown>;
2064
+ /** @internal */
2065
+ export type CreateChatCompletionGuardrails$Outbound = {
2066
+ id: string | string;
2067
+ execute_on: string;
2068
+ };
2069
+ /** @internal */
2070
+ export declare const CreateChatCompletionGuardrails$outboundSchema: z.ZodType<CreateChatCompletionGuardrails$Outbound, z.ZodTypeDef, CreateChatCompletionGuardrails>;
2071
+ export declare function createChatCompletionGuardrailsToJSON(createChatCompletionGuardrails: CreateChatCompletionGuardrails): string;
2072
+ export declare function createChatCompletionGuardrailsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionGuardrails, SDKValidationError>;
2073
+ /** @internal */
2074
+ export declare const CreateChatCompletionRetry$inboundSchema: z.ZodType<CreateChatCompletionRetry, z.ZodTypeDef, unknown>;
2075
+ /** @internal */
2076
+ export type CreateChatCompletionRetry$Outbound = {
2077
+ count: number;
2078
+ on_codes?: Array<number> | undefined;
2079
+ };
2080
+ /** @internal */
2081
+ export declare const CreateChatCompletionRetry$outboundSchema: z.ZodType<CreateChatCompletionRetry$Outbound, z.ZodTypeDef, CreateChatCompletionRetry>;
2082
+ export declare function createChatCompletionRetryToJSON(createChatCompletionRetry: CreateChatCompletionRetry): string;
2083
+ export declare function createChatCompletionRetryFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRetry, SDKValidationError>;
2084
+ /** @internal */
2085
+ export declare const Fallbacks$inboundSchema: z.ZodType<Fallbacks, z.ZodTypeDef, unknown>;
2086
+ /** @internal */
2087
+ export type Fallbacks$Outbound = {
2088
+ model: string;
2089
+ };
2090
+ /** @internal */
2091
+ export declare const Fallbacks$outboundSchema: z.ZodType<Fallbacks$Outbound, z.ZodTypeDef, Fallbacks>;
2092
+ export declare function fallbacksToJSON(fallbacks: Fallbacks): string;
2093
+ export declare function fallbacksFromJSON(jsonString: string): SafeParseResult<Fallbacks, SDKValidationError>;
2094
+ /** @internal */
2095
+ export declare const Version$inboundSchema: z.ZodNativeEnum<typeof Version>;
2096
+ /** @internal */
2097
+ export declare const Version$outboundSchema: z.ZodNativeEnum<typeof Version>;
2098
+ /** @internal */
2099
+ export declare const Prompt$inboundSchema: z.ZodType<Prompt, z.ZodTypeDef, unknown>;
2100
+ /** @internal */
2101
+ export type Prompt$Outbound = {
2102
+ id: string;
2103
+ version: string;
2104
+ };
2105
+ /** @internal */
2106
+ export declare const Prompt$outboundSchema: z.ZodType<Prompt$Outbound, z.ZodTypeDef, Prompt>;
2107
+ export declare function promptToJSON(prompt: Prompt): string;
2108
+ export declare function promptFromJSON(jsonString: string): SafeParseResult<Prompt, SDKValidationError>;
2109
+ /** @internal */
2110
+ export declare const CreateChatCompletionThread$inboundSchema: z.ZodType<CreateChatCompletionThread, z.ZodTypeDef, unknown>;
2111
+ /** @internal */
2112
+ export type CreateChatCompletionThread$Outbound = {
2113
+ id: string;
2114
+ tags?: Array<string> | undefined;
2115
+ };
2116
+ /** @internal */
2117
+ export declare const CreateChatCompletionThread$outboundSchema: z.ZodType<CreateChatCompletionThread$Outbound, z.ZodTypeDef, CreateChatCompletionThread>;
2118
+ export declare function createChatCompletionThreadToJSON(createChatCompletionThread: CreateChatCompletionThread): string;
2119
+ export declare function createChatCompletionThreadFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionThread, SDKValidationError>;
2120
+ /** @internal */
2121
+ export declare const Inputs2$inboundSchema: z.ZodType<Inputs2, z.ZodTypeDef, unknown>;
2122
+ /** @internal */
2123
+ export type Inputs2$Outbound = {
2124
+ key: string;
2125
+ value?: any | undefined;
2126
+ is_pii?: boolean | undefined;
2127
+ };
2128
+ /** @internal */
2129
+ export declare const Inputs2$outboundSchema: z.ZodType<Inputs2$Outbound, z.ZodTypeDef, Inputs2>;
2130
+ export declare function inputs2ToJSON(inputs2: Inputs2): string;
2131
+ export declare function inputs2FromJSON(jsonString: string): SafeParseResult<Inputs2, SDKValidationError>;
2132
+ /** @internal */
2133
+ export declare const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown>;
2134
+ /** @internal */
2135
+ export type Inputs$Outbound = {
2136
+ [k: string]: any;
2137
+ } | Array<Inputs2$Outbound>;
2138
+ /** @internal */
2139
+ export declare const Inputs$outboundSchema: z.ZodType<Inputs$Outbound, z.ZodTypeDef, Inputs>;
2140
+ export declare function inputsToJSON(inputs: Inputs): string;
2141
+ export declare function inputsFromJSON(jsonString: string): SafeParseResult<Inputs, SDKValidationError>;
2142
+ /** @internal */
2143
+ export declare const CreateChatCompletionRouterRequestType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterRequestType>;
2144
+ /** @internal */
2145
+ export declare const CreateChatCompletionRouterRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterRequestType>;
2146
+ /** @internal */
2147
+ export declare const Cache$inboundSchema: z.ZodType<Cache, z.ZodTypeDef, unknown>;
2148
+ /** @internal */
2149
+ export type Cache$Outbound = {
2150
+ ttl: number;
2151
+ type: string;
2152
+ };
2153
+ /** @internal */
2154
+ export declare const Cache$outboundSchema: z.ZodType<Cache$Outbound, z.ZodTypeDef, Cache>;
2155
+ export declare function cacheToJSON(cache: Cache): string;
2156
+ export declare function cacheFromJSON(jsonString: string): SafeParseResult<Cache, SDKValidationError>;
2157
+ /** @internal */
2158
+ export declare const CreateChatCompletionSearchType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionSearchType>;
2159
+ /** @internal */
2160
+ export declare const CreateChatCompletionSearchType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionSearchType>;
2161
+ /** @internal */
2162
+ export declare const CreateChatCompletionOrExists$inboundSchema: z.ZodType<CreateChatCompletionOrExists, z.ZodTypeDef, unknown>;
2163
+ /** @internal */
2164
+ export type CreateChatCompletionOrExists$Outbound = {
2165
+ exists: boolean;
2166
+ };
2167
+ /** @internal */
2168
+ export declare const CreateChatCompletionOrExists$outboundSchema: z.ZodType<CreateChatCompletionOrExists$Outbound, z.ZodTypeDef, CreateChatCompletionOrExists>;
2169
+ export declare function createChatCompletionOrExistsToJSON(createChatCompletionOrExists: CreateChatCompletionOrExists): string;
2170
+ export declare function createChatCompletionOrExistsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrExists, SDKValidationError>;
2171
+ /** @internal */
2172
+ export declare const CreateChatCompletionOrRouterNin$inboundSchema: z.ZodType<CreateChatCompletionOrRouterNin, z.ZodTypeDef, unknown>;
2173
+ /** @internal */
2174
+ export type CreateChatCompletionOrRouterNin$Outbound = string | number | boolean;
2175
+ /** @internal */
2176
+ export declare const CreateChatCompletionOrRouterNin$outboundSchema: z.ZodType<CreateChatCompletionOrRouterNin$Outbound, z.ZodTypeDef, CreateChatCompletionOrRouterNin>;
2177
+ export declare function createChatCompletionOrRouterNinToJSON(createChatCompletionOrRouterNin: CreateChatCompletionOrRouterNin): string;
2178
+ export declare function createChatCompletionOrRouterNinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrRouterNin, SDKValidationError>;
2179
+ /** @internal */
2180
+ export declare const CreateChatCompletionOrNin$inboundSchema: z.ZodType<CreateChatCompletionOrNin, z.ZodTypeDef, unknown>;
2181
+ /** @internal */
2182
+ export type CreateChatCompletionOrNin$Outbound = {
2183
+ nin: Array<string | number | boolean>;
2184
+ };
2185
+ /** @internal */
2186
+ export declare const CreateChatCompletionOrNin$outboundSchema: z.ZodType<CreateChatCompletionOrNin$Outbound, z.ZodTypeDef, CreateChatCompletionOrNin>;
2187
+ export declare function createChatCompletionOrNinToJSON(createChatCompletionOrNin: CreateChatCompletionOrNin): string;
2188
+ export declare function createChatCompletionOrNinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrNin, SDKValidationError>;
2189
+ /** @internal */
2190
+ export declare const CreateChatCompletionOrRouterIn$inboundSchema: z.ZodType<CreateChatCompletionOrRouterIn, z.ZodTypeDef, unknown>;
2191
+ /** @internal */
2192
+ export type CreateChatCompletionOrRouterIn$Outbound = string | number | boolean;
2193
+ /** @internal */
2194
+ export declare const CreateChatCompletionOrRouterIn$outboundSchema: z.ZodType<CreateChatCompletionOrRouterIn$Outbound, z.ZodTypeDef, CreateChatCompletionOrRouterIn>;
2195
+ export declare function createChatCompletionOrRouterInToJSON(createChatCompletionOrRouterIn: CreateChatCompletionOrRouterIn): string;
2196
+ export declare function createChatCompletionOrRouterInFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrRouterIn, SDKValidationError>;
2197
+ /** @internal */
2198
+ export declare const CreateChatCompletionOrIn$inboundSchema: z.ZodType<CreateChatCompletionOrIn, z.ZodTypeDef, unknown>;
2199
+ /** @internal */
2200
+ export type CreateChatCompletionOrIn$Outbound = {
2201
+ in: Array<string | number | boolean>;
2202
+ };
2203
+ /** @internal */
2204
+ export declare const CreateChatCompletionOrIn$outboundSchema: z.ZodType<CreateChatCompletionOrIn$Outbound, z.ZodTypeDef, CreateChatCompletionOrIn>;
2205
+ export declare function createChatCompletionOrInToJSON(createChatCompletionOrIn: CreateChatCompletionOrIn): string;
2206
+ export declare function createChatCompletionOrInFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrIn, SDKValidationError>;
2207
+ /** @internal */
2208
+ export declare const CreateChatCompletionOrLte$inboundSchema: z.ZodType<CreateChatCompletionOrLte, z.ZodTypeDef, unknown>;
2209
+ /** @internal */
2210
+ export type CreateChatCompletionOrLte$Outbound = {
2211
+ lte: number;
2212
+ };
2213
+ /** @internal */
2214
+ export declare const CreateChatCompletionOrLte$outboundSchema: z.ZodType<CreateChatCompletionOrLte$Outbound, z.ZodTypeDef, CreateChatCompletionOrLte>;
2215
+ export declare function createChatCompletionOrLteToJSON(createChatCompletionOrLte: CreateChatCompletionOrLte): string;
2216
+ export declare function createChatCompletionOrLteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrLte, SDKValidationError>;
2217
+ /** @internal */
2218
+ export declare const CreateChatCompletionOrLt$inboundSchema: z.ZodType<CreateChatCompletionOrLt, z.ZodTypeDef, unknown>;
2219
+ /** @internal */
2220
+ export type CreateChatCompletionOrLt$Outbound = {
2221
+ lt: number;
2222
+ };
2223
+ /** @internal */
2224
+ export declare const CreateChatCompletionOrLt$outboundSchema: z.ZodType<CreateChatCompletionOrLt$Outbound, z.ZodTypeDef, CreateChatCompletionOrLt>;
2225
+ export declare function createChatCompletionOrLtToJSON(createChatCompletionOrLt: CreateChatCompletionOrLt): string;
2226
+ export declare function createChatCompletionOrLtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrLt, SDKValidationError>;
2227
+ /** @internal */
2228
+ export declare const CreateChatCompletionOrGte$inboundSchema: z.ZodType<CreateChatCompletionOrGte, z.ZodTypeDef, unknown>;
2229
+ /** @internal */
2230
+ export type CreateChatCompletionOrGte$Outbound = {
2231
+ gte: number;
2232
+ };
2233
+ /** @internal */
2234
+ export declare const CreateChatCompletionOrGte$outboundSchema: z.ZodType<CreateChatCompletionOrGte$Outbound, z.ZodTypeDef, CreateChatCompletionOrGte>;
2235
+ export declare function createChatCompletionOrGteToJSON(createChatCompletionOrGte: CreateChatCompletionOrGte): string;
2236
+ export declare function createChatCompletionOrGteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrGte, SDKValidationError>;
2237
+ /** @internal */
2238
+ export declare const CreateChatCompletionOrGt$inboundSchema: z.ZodType<CreateChatCompletionOrGt, z.ZodTypeDef, unknown>;
2239
+ /** @internal */
2240
+ export type CreateChatCompletionOrGt$Outbound = {
2241
+ gt: number;
2242
+ };
2243
+ /** @internal */
2244
+ export declare const CreateChatCompletionOrGt$outboundSchema: z.ZodType<CreateChatCompletionOrGt$Outbound, z.ZodTypeDef, CreateChatCompletionOrGt>;
2245
+ export declare function createChatCompletionOrGtToJSON(createChatCompletionOrGt: CreateChatCompletionOrGt): string;
2246
+ export declare function createChatCompletionOrGtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrGt, SDKValidationError>;
2247
+ /** @internal */
2248
+ export declare const CreateChatCompletionOrRouterNe$inboundSchema: z.ZodType<CreateChatCompletionOrRouterNe, z.ZodTypeDef, unknown>;
2249
+ /** @internal */
2250
+ export type CreateChatCompletionOrRouterNe$Outbound = string | number | boolean;
2251
+ /** @internal */
2252
+ export declare const CreateChatCompletionOrRouterNe$outboundSchema: z.ZodType<CreateChatCompletionOrRouterNe$Outbound, z.ZodTypeDef, CreateChatCompletionOrRouterNe>;
2253
+ export declare function createChatCompletionOrRouterNeToJSON(createChatCompletionOrRouterNe: CreateChatCompletionOrRouterNe): string;
2254
+ export declare function createChatCompletionOrRouterNeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrRouterNe, SDKValidationError>;
2255
+ /** @internal */
2256
+ export declare const CreateChatCompletionOrNe$inboundSchema: z.ZodType<CreateChatCompletionOrNe, z.ZodTypeDef, unknown>;
2257
+ /** @internal */
2258
+ export type CreateChatCompletionOrNe$Outbound = {
2259
+ ne: string | number | boolean;
2260
+ };
2261
+ /** @internal */
2262
+ export declare const CreateChatCompletionOrNe$outboundSchema: z.ZodType<CreateChatCompletionOrNe$Outbound, z.ZodTypeDef, CreateChatCompletionOrNe>;
2263
+ export declare function createChatCompletionOrNeToJSON(createChatCompletionOrNe: CreateChatCompletionOrNe): string;
2264
+ export declare function createChatCompletionOrNeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrNe, SDKValidationError>;
2265
+ /** @internal */
2266
+ export declare const CreateChatCompletionOrRouterEq$inboundSchema: z.ZodType<CreateChatCompletionOrRouterEq, z.ZodTypeDef, unknown>;
2267
+ /** @internal */
2268
+ export type CreateChatCompletionOrRouterEq$Outbound = string | number | boolean;
2269
+ /** @internal */
2270
+ export declare const CreateChatCompletionOrRouterEq$outboundSchema: z.ZodType<CreateChatCompletionOrRouterEq$Outbound, z.ZodTypeDef, CreateChatCompletionOrRouterEq>;
2271
+ export declare function createChatCompletionOrRouterEqToJSON(createChatCompletionOrRouterEq: CreateChatCompletionOrRouterEq): string;
2272
+ export declare function createChatCompletionOrRouterEqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrRouterEq, SDKValidationError>;
2273
+ /** @internal */
2274
+ export declare const CreateChatCompletionOrEq$inboundSchema: z.ZodType<CreateChatCompletionOrEq, z.ZodTypeDef, unknown>;
2275
+ /** @internal */
2276
+ export type CreateChatCompletionOrEq$Outbound = {
2277
+ eq: string | number | boolean;
2278
+ };
2279
+ /** @internal */
2280
+ export declare const CreateChatCompletionOrEq$outboundSchema: z.ZodType<CreateChatCompletionOrEq$Outbound, z.ZodTypeDef, CreateChatCompletionOrEq>;
2281
+ export declare function createChatCompletionOrEqToJSON(createChatCompletionOrEq: CreateChatCompletionOrEq): string;
2282
+ export declare function createChatCompletionOrEqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionOrEq, SDKValidationError>;
2283
+ /** @internal */
2284
+ export declare const CreateChatCompletionFilterByRouterOr$inboundSchema: z.ZodType<CreateChatCompletionFilterByRouterOr, z.ZodTypeDef, unknown>;
2285
+ /** @internal */
2286
+ export type CreateChatCompletionFilterByRouterOr$Outbound = CreateChatCompletionOrEq$Outbound | CreateChatCompletionOrNe$Outbound | CreateChatCompletionOrGt$Outbound | CreateChatCompletionOrGte$Outbound | CreateChatCompletionOrLt$Outbound | CreateChatCompletionOrLte$Outbound | CreateChatCompletionOrIn$Outbound | CreateChatCompletionOrNin$Outbound | CreateChatCompletionOrExists$Outbound;
2287
+ /** @internal */
2288
+ export declare const CreateChatCompletionFilterByRouterOr$outboundSchema: z.ZodType<CreateChatCompletionFilterByRouterOr$Outbound, z.ZodTypeDef, CreateChatCompletionFilterByRouterOr>;
2289
+ export declare function createChatCompletionFilterByRouterOrToJSON(createChatCompletionFilterByRouterOr: CreateChatCompletionFilterByRouterOr): string;
2290
+ export declare function createChatCompletionFilterByRouterOrFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterByRouterOr, SDKValidationError>;
2291
+ /** @internal */
2292
+ export declare const CreateChatCompletionFilterByOr$inboundSchema: z.ZodType<CreateChatCompletionFilterByOr, z.ZodTypeDef, unknown>;
2293
+ /** @internal */
2294
+ export type CreateChatCompletionFilterByOr$Outbound = {
2295
+ or: Array<{
2296
+ [k: string]: CreateChatCompletionOrEq$Outbound | CreateChatCompletionOrNe$Outbound | CreateChatCompletionOrGt$Outbound | CreateChatCompletionOrGte$Outbound | CreateChatCompletionOrLt$Outbound | CreateChatCompletionOrLte$Outbound | CreateChatCompletionOrIn$Outbound | CreateChatCompletionOrNin$Outbound | CreateChatCompletionOrExists$Outbound;
2297
+ }>;
2298
+ };
2299
+ /** @internal */
2300
+ export declare const CreateChatCompletionFilterByOr$outboundSchema: z.ZodType<CreateChatCompletionFilterByOr$Outbound, z.ZodTypeDef, CreateChatCompletionFilterByOr>;
2301
+ export declare function createChatCompletionFilterByOrToJSON(createChatCompletionFilterByOr: CreateChatCompletionFilterByOr): string;
2302
+ export declare function createChatCompletionFilterByOrFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterByOr, SDKValidationError>;
2303
+ /** @internal */
2304
+ export declare const CreateChatCompletionAndExists$inboundSchema: z.ZodType<CreateChatCompletionAndExists, z.ZodTypeDef, unknown>;
2305
+ /** @internal */
2306
+ export type CreateChatCompletionAndExists$Outbound = {
2307
+ exists: boolean;
2308
+ };
2309
+ /** @internal */
2310
+ export declare const CreateChatCompletionAndExists$outboundSchema: z.ZodType<CreateChatCompletionAndExists$Outbound, z.ZodTypeDef, CreateChatCompletionAndExists>;
2311
+ export declare function createChatCompletionAndExistsToJSON(createChatCompletionAndExists: CreateChatCompletionAndExists): string;
2312
+ export declare function createChatCompletionAndExistsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndExists, SDKValidationError>;
2313
+ /** @internal */
2314
+ export declare const CreateChatCompletionAndRouterNin$inboundSchema: z.ZodType<CreateChatCompletionAndRouterNin, z.ZodTypeDef, unknown>;
2315
+ /** @internal */
2316
+ export type CreateChatCompletionAndRouterNin$Outbound = string | number | boolean;
2317
+ /** @internal */
2318
+ export declare const CreateChatCompletionAndRouterNin$outboundSchema: z.ZodType<CreateChatCompletionAndRouterNin$Outbound, z.ZodTypeDef, CreateChatCompletionAndRouterNin>;
2319
+ export declare function createChatCompletionAndRouterNinToJSON(createChatCompletionAndRouterNin: CreateChatCompletionAndRouterNin): string;
2320
+ export declare function createChatCompletionAndRouterNinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndRouterNin, SDKValidationError>;
2321
+ /** @internal */
2322
+ export declare const CreateChatCompletionAndNin$inboundSchema: z.ZodType<CreateChatCompletionAndNin, z.ZodTypeDef, unknown>;
2323
+ /** @internal */
2324
+ export type CreateChatCompletionAndNin$Outbound = {
2325
+ nin: Array<string | number | boolean>;
2326
+ };
2327
+ /** @internal */
2328
+ export declare const CreateChatCompletionAndNin$outboundSchema: z.ZodType<CreateChatCompletionAndNin$Outbound, z.ZodTypeDef, CreateChatCompletionAndNin>;
2329
+ export declare function createChatCompletionAndNinToJSON(createChatCompletionAndNin: CreateChatCompletionAndNin): string;
2330
+ export declare function createChatCompletionAndNinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndNin, SDKValidationError>;
2331
+ /** @internal */
2332
+ export declare const CreateChatCompletionAndRouterIn$inboundSchema: z.ZodType<CreateChatCompletionAndRouterIn, z.ZodTypeDef, unknown>;
2333
+ /** @internal */
2334
+ export type CreateChatCompletionAndRouterIn$Outbound = string | number | boolean;
2335
+ /** @internal */
2336
+ export declare const CreateChatCompletionAndRouterIn$outboundSchema: z.ZodType<CreateChatCompletionAndRouterIn$Outbound, z.ZodTypeDef, CreateChatCompletionAndRouterIn>;
2337
+ export declare function createChatCompletionAndRouterInToJSON(createChatCompletionAndRouterIn: CreateChatCompletionAndRouterIn): string;
2338
+ export declare function createChatCompletionAndRouterInFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndRouterIn, SDKValidationError>;
2339
+ /** @internal */
2340
+ export declare const CreateChatCompletionAndIn$inboundSchema: z.ZodType<CreateChatCompletionAndIn, z.ZodTypeDef, unknown>;
2341
+ /** @internal */
2342
+ export type CreateChatCompletionAndIn$Outbound = {
2343
+ in: Array<string | number | boolean>;
2344
+ };
2345
+ /** @internal */
2346
+ export declare const CreateChatCompletionAndIn$outboundSchema: z.ZodType<CreateChatCompletionAndIn$Outbound, z.ZodTypeDef, CreateChatCompletionAndIn>;
2347
+ export declare function createChatCompletionAndInToJSON(createChatCompletionAndIn: CreateChatCompletionAndIn): string;
2348
+ export declare function createChatCompletionAndInFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndIn, SDKValidationError>;
2349
+ /** @internal */
2350
+ export declare const CreateChatCompletionAndLte$inboundSchema: z.ZodType<CreateChatCompletionAndLte, z.ZodTypeDef, unknown>;
2351
+ /** @internal */
2352
+ export type CreateChatCompletionAndLte$Outbound = {
2353
+ lte: number;
2354
+ };
2355
+ /** @internal */
2356
+ export declare const CreateChatCompletionAndLte$outboundSchema: z.ZodType<CreateChatCompletionAndLte$Outbound, z.ZodTypeDef, CreateChatCompletionAndLte>;
2357
+ export declare function createChatCompletionAndLteToJSON(createChatCompletionAndLte: CreateChatCompletionAndLte): string;
2358
+ export declare function createChatCompletionAndLteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndLte, SDKValidationError>;
2359
+ /** @internal */
2360
+ export declare const CreateChatCompletionAndLt$inboundSchema: z.ZodType<CreateChatCompletionAndLt, z.ZodTypeDef, unknown>;
2361
+ /** @internal */
2362
+ export type CreateChatCompletionAndLt$Outbound = {
2363
+ lt: number;
2364
+ };
2365
+ /** @internal */
2366
+ export declare const CreateChatCompletionAndLt$outboundSchema: z.ZodType<CreateChatCompletionAndLt$Outbound, z.ZodTypeDef, CreateChatCompletionAndLt>;
2367
+ export declare function createChatCompletionAndLtToJSON(createChatCompletionAndLt: CreateChatCompletionAndLt): string;
2368
+ export declare function createChatCompletionAndLtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndLt, SDKValidationError>;
2369
+ /** @internal */
2370
+ export declare const CreateChatCompletionAndGte$inboundSchema: z.ZodType<CreateChatCompletionAndGte, z.ZodTypeDef, unknown>;
2371
+ /** @internal */
2372
+ export type CreateChatCompletionAndGte$Outbound = {
2373
+ gte: number;
2374
+ };
2375
+ /** @internal */
2376
+ export declare const CreateChatCompletionAndGte$outboundSchema: z.ZodType<CreateChatCompletionAndGte$Outbound, z.ZodTypeDef, CreateChatCompletionAndGte>;
2377
+ export declare function createChatCompletionAndGteToJSON(createChatCompletionAndGte: CreateChatCompletionAndGte): string;
2378
+ export declare function createChatCompletionAndGteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndGte, SDKValidationError>;
2379
+ /** @internal */
2380
+ export declare const CreateChatCompletionAndGt$inboundSchema: z.ZodType<CreateChatCompletionAndGt, z.ZodTypeDef, unknown>;
2381
+ /** @internal */
2382
+ export type CreateChatCompletionAndGt$Outbound = {
2383
+ gt: number;
2384
+ };
2385
+ /** @internal */
2386
+ export declare const CreateChatCompletionAndGt$outboundSchema: z.ZodType<CreateChatCompletionAndGt$Outbound, z.ZodTypeDef, CreateChatCompletionAndGt>;
2387
+ export declare function createChatCompletionAndGtToJSON(createChatCompletionAndGt: CreateChatCompletionAndGt): string;
2388
+ export declare function createChatCompletionAndGtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndGt, SDKValidationError>;
2389
+ /** @internal */
2390
+ export declare const CreateChatCompletionAndRouterNe$inboundSchema: z.ZodType<CreateChatCompletionAndRouterNe, z.ZodTypeDef, unknown>;
2391
+ /** @internal */
2392
+ export type CreateChatCompletionAndRouterNe$Outbound = string | number | boolean;
2393
+ /** @internal */
2394
+ export declare const CreateChatCompletionAndRouterNe$outboundSchema: z.ZodType<CreateChatCompletionAndRouterNe$Outbound, z.ZodTypeDef, CreateChatCompletionAndRouterNe>;
2395
+ export declare function createChatCompletionAndRouterNeToJSON(createChatCompletionAndRouterNe: CreateChatCompletionAndRouterNe): string;
2396
+ export declare function createChatCompletionAndRouterNeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndRouterNe, SDKValidationError>;
2397
+ /** @internal */
2398
+ export declare const CreateChatCompletionAndNe$inboundSchema: z.ZodType<CreateChatCompletionAndNe, z.ZodTypeDef, unknown>;
2399
+ /** @internal */
2400
+ export type CreateChatCompletionAndNe$Outbound = {
2401
+ ne: string | number | boolean;
2402
+ };
2403
+ /** @internal */
2404
+ export declare const CreateChatCompletionAndNe$outboundSchema: z.ZodType<CreateChatCompletionAndNe$Outbound, z.ZodTypeDef, CreateChatCompletionAndNe>;
2405
+ export declare function createChatCompletionAndNeToJSON(createChatCompletionAndNe: CreateChatCompletionAndNe): string;
2406
+ export declare function createChatCompletionAndNeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndNe, SDKValidationError>;
2407
+ /** @internal */
2408
+ export declare const CreateChatCompletionAndRouterEq$inboundSchema: z.ZodType<CreateChatCompletionAndRouterEq, z.ZodTypeDef, unknown>;
2409
+ /** @internal */
2410
+ export type CreateChatCompletionAndRouterEq$Outbound = string | number | boolean;
2411
+ /** @internal */
2412
+ export declare const CreateChatCompletionAndRouterEq$outboundSchema: z.ZodType<CreateChatCompletionAndRouterEq$Outbound, z.ZodTypeDef, CreateChatCompletionAndRouterEq>;
2413
+ export declare function createChatCompletionAndRouterEqToJSON(createChatCompletionAndRouterEq: CreateChatCompletionAndRouterEq): string;
2414
+ export declare function createChatCompletionAndRouterEqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndRouterEq, SDKValidationError>;
2415
+ /** @internal */
2416
+ export declare const CreateChatCompletionAndEq$inboundSchema: z.ZodType<CreateChatCompletionAndEq, z.ZodTypeDef, unknown>;
2417
+ /** @internal */
2418
+ export type CreateChatCompletionAndEq$Outbound = {
2419
+ eq: string | number | boolean;
2420
+ };
2421
+ /** @internal */
2422
+ export declare const CreateChatCompletionAndEq$outboundSchema: z.ZodType<CreateChatCompletionAndEq$Outbound, z.ZodTypeDef, CreateChatCompletionAndEq>;
2423
+ export declare function createChatCompletionAndEqToJSON(createChatCompletionAndEq: CreateChatCompletionAndEq): string;
2424
+ export declare function createChatCompletionAndEqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAndEq, SDKValidationError>;
2425
+ /** @internal */
2426
+ export declare const CreateChatCompletionFilterByRouterAnd$inboundSchema: z.ZodType<CreateChatCompletionFilterByRouterAnd, z.ZodTypeDef, unknown>;
2427
+ /** @internal */
2428
+ export type CreateChatCompletionFilterByRouterAnd$Outbound = CreateChatCompletionAndEq$Outbound | CreateChatCompletionAndNe$Outbound | CreateChatCompletionAndGt$Outbound | CreateChatCompletionAndGte$Outbound | CreateChatCompletionAndLt$Outbound | CreateChatCompletionAndLte$Outbound | CreateChatCompletionAndIn$Outbound | CreateChatCompletionAndNin$Outbound | CreateChatCompletionAndExists$Outbound;
2429
+ /** @internal */
2430
+ export declare const CreateChatCompletionFilterByRouterAnd$outboundSchema: z.ZodType<CreateChatCompletionFilterByRouterAnd$Outbound, z.ZodTypeDef, CreateChatCompletionFilterByRouterAnd>;
2431
+ export declare function createChatCompletionFilterByRouterAndToJSON(createChatCompletionFilterByRouterAnd: CreateChatCompletionFilterByRouterAnd): string;
2432
+ export declare function createChatCompletionFilterByRouterAndFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterByRouterAnd, SDKValidationError>;
2433
+ /** @internal */
2434
+ export declare const CreateChatCompletionFilterByAnd$inboundSchema: z.ZodType<CreateChatCompletionFilterByAnd, z.ZodTypeDef, unknown>;
2435
+ /** @internal */
2436
+ export type CreateChatCompletionFilterByAnd$Outbound = {
2437
+ and: Array<{
2438
+ [k: string]: CreateChatCompletionAndEq$Outbound | CreateChatCompletionAndNe$Outbound | CreateChatCompletionAndGt$Outbound | CreateChatCompletionAndGte$Outbound | CreateChatCompletionAndLt$Outbound | CreateChatCompletionAndLte$Outbound | CreateChatCompletionAndIn$Outbound | CreateChatCompletionAndNin$Outbound | CreateChatCompletionAndExists$Outbound;
2439
+ }>;
2440
+ };
2441
+ /** @internal */
2442
+ export declare const CreateChatCompletionFilterByAnd$outboundSchema: z.ZodType<CreateChatCompletionFilterByAnd$Outbound, z.ZodTypeDef, CreateChatCompletionFilterByAnd>;
2443
+ export declare function createChatCompletionFilterByAndToJSON(createChatCompletionFilterByAnd: CreateChatCompletionFilterByAnd): string;
2444
+ export declare function createChatCompletionFilterByAndFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterByAnd, SDKValidationError>;
2445
+ /** @internal */
2446
+ export declare const CreateChatCompletion1Exists$inboundSchema: z.ZodType<CreateChatCompletion1Exists, z.ZodTypeDef, unknown>;
2447
+ /** @internal */
2448
+ export type CreateChatCompletion1Exists$Outbound = {
2449
+ exists: boolean;
2450
+ };
2451
+ /** @internal */
2452
+ export declare const CreateChatCompletion1Exists$outboundSchema: z.ZodType<CreateChatCompletion1Exists$Outbound, z.ZodTypeDef, CreateChatCompletion1Exists>;
2453
+ export declare function createChatCompletion1ExistsToJSON(createChatCompletion1Exists: CreateChatCompletion1Exists): string;
2454
+ export declare function createChatCompletion1ExistsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Exists, SDKValidationError>;
2455
+ /** @internal */
2456
+ export declare const CreateChatCompletion1RouterNin$inboundSchema: z.ZodType<CreateChatCompletion1RouterNin, z.ZodTypeDef, unknown>;
2457
+ /** @internal */
2458
+ export type CreateChatCompletion1RouterNin$Outbound = string | number | boolean;
2459
+ /** @internal */
2460
+ export declare const CreateChatCompletion1RouterNin$outboundSchema: z.ZodType<CreateChatCompletion1RouterNin$Outbound, z.ZodTypeDef, CreateChatCompletion1RouterNin>;
2461
+ export declare function createChatCompletion1RouterNinToJSON(createChatCompletion1RouterNin: CreateChatCompletion1RouterNin): string;
2462
+ export declare function createChatCompletion1RouterNinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1RouterNin, SDKValidationError>;
2463
+ /** @internal */
2464
+ export declare const CreateChatCompletion1Nin$inboundSchema: z.ZodType<CreateChatCompletion1Nin, z.ZodTypeDef, unknown>;
2465
+ /** @internal */
2466
+ export type CreateChatCompletion1Nin$Outbound = {
2467
+ nin: Array<string | number | boolean>;
2468
+ };
2469
+ /** @internal */
2470
+ export declare const CreateChatCompletion1Nin$outboundSchema: z.ZodType<CreateChatCompletion1Nin$Outbound, z.ZodTypeDef, CreateChatCompletion1Nin>;
2471
+ export declare function createChatCompletion1NinToJSON(createChatCompletion1Nin: CreateChatCompletion1Nin): string;
2472
+ export declare function createChatCompletion1NinFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Nin, SDKValidationError>;
2473
+ /** @internal */
2474
+ export declare const CreateChatCompletion1RouterIn$inboundSchema: z.ZodType<CreateChatCompletion1RouterIn, z.ZodTypeDef, unknown>;
2475
+ /** @internal */
2476
+ export type CreateChatCompletion1RouterIn$Outbound = string | number | boolean;
2477
+ /** @internal */
2478
+ export declare const CreateChatCompletion1RouterIn$outboundSchema: z.ZodType<CreateChatCompletion1RouterIn$Outbound, z.ZodTypeDef, CreateChatCompletion1RouterIn>;
2479
+ export declare function createChatCompletion1RouterInToJSON(createChatCompletion1RouterIn: CreateChatCompletion1RouterIn): string;
2480
+ export declare function createChatCompletion1RouterInFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1RouterIn, SDKValidationError>;
2481
+ /** @internal */
2482
+ export declare const CreateChatCompletion1In$inboundSchema: z.ZodType<CreateChatCompletion1In, z.ZodTypeDef, unknown>;
2483
+ /** @internal */
2484
+ export type CreateChatCompletion1In$Outbound = {
2485
+ in: Array<string | number | boolean>;
2486
+ };
2487
+ /** @internal */
2488
+ export declare const CreateChatCompletion1In$outboundSchema: z.ZodType<CreateChatCompletion1In$Outbound, z.ZodTypeDef, CreateChatCompletion1In>;
2489
+ export declare function createChatCompletion1InToJSON(createChatCompletion1In: CreateChatCompletion1In): string;
2490
+ export declare function createChatCompletion1InFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1In, SDKValidationError>;
2491
+ /** @internal */
2492
+ export declare const CreateChatCompletion1Lte$inboundSchema: z.ZodType<CreateChatCompletion1Lte, z.ZodTypeDef, unknown>;
2493
+ /** @internal */
2494
+ export type CreateChatCompletion1Lte$Outbound = {
2495
+ lte: number;
2496
+ };
2497
+ /** @internal */
2498
+ export declare const CreateChatCompletion1Lte$outboundSchema: z.ZodType<CreateChatCompletion1Lte$Outbound, z.ZodTypeDef, CreateChatCompletion1Lte>;
2499
+ export declare function createChatCompletion1LteToJSON(createChatCompletion1Lte: CreateChatCompletion1Lte): string;
2500
+ export declare function createChatCompletion1LteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Lte, SDKValidationError>;
2501
+ /** @internal */
2502
+ export declare const CreateChatCompletion1Lt$inboundSchema: z.ZodType<CreateChatCompletion1Lt, z.ZodTypeDef, unknown>;
2503
+ /** @internal */
2504
+ export type CreateChatCompletion1Lt$Outbound = {
2505
+ lt: number;
2506
+ };
2507
+ /** @internal */
2508
+ export declare const CreateChatCompletion1Lt$outboundSchema: z.ZodType<CreateChatCompletion1Lt$Outbound, z.ZodTypeDef, CreateChatCompletion1Lt>;
2509
+ export declare function createChatCompletion1LtToJSON(createChatCompletion1Lt: CreateChatCompletion1Lt): string;
2510
+ export declare function createChatCompletion1LtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Lt, SDKValidationError>;
2511
+ /** @internal */
2512
+ export declare const CreateChatCompletion1Gte$inboundSchema: z.ZodType<CreateChatCompletion1Gte, z.ZodTypeDef, unknown>;
2513
+ /** @internal */
2514
+ export type CreateChatCompletion1Gte$Outbound = {
2515
+ gte: number;
2516
+ };
2517
+ /** @internal */
2518
+ export declare const CreateChatCompletion1Gte$outboundSchema: z.ZodType<CreateChatCompletion1Gte$Outbound, z.ZodTypeDef, CreateChatCompletion1Gte>;
2519
+ export declare function createChatCompletion1GteToJSON(createChatCompletion1Gte: CreateChatCompletion1Gte): string;
2520
+ export declare function createChatCompletion1GteFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Gte, SDKValidationError>;
2521
+ /** @internal */
2522
+ export declare const CreateChatCompletion1Gt$inboundSchema: z.ZodType<CreateChatCompletion1Gt, z.ZodTypeDef, unknown>;
2523
+ /** @internal */
2524
+ export type CreateChatCompletion1Gt$Outbound = {
2525
+ gt: number;
2526
+ };
2527
+ /** @internal */
2528
+ export declare const CreateChatCompletion1Gt$outboundSchema: z.ZodType<CreateChatCompletion1Gt$Outbound, z.ZodTypeDef, CreateChatCompletion1Gt>;
2529
+ export declare function createChatCompletion1GtToJSON(createChatCompletion1Gt: CreateChatCompletion1Gt): string;
2530
+ export declare function createChatCompletion1GtFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Gt, SDKValidationError>;
2531
+ /** @internal */
2532
+ export declare const CreateChatCompletion1RouterNe$inboundSchema: z.ZodType<CreateChatCompletion1RouterNe, z.ZodTypeDef, unknown>;
2533
+ /** @internal */
2534
+ export type CreateChatCompletion1RouterNe$Outbound = string | number | boolean;
2535
+ /** @internal */
2536
+ export declare const CreateChatCompletion1RouterNe$outboundSchema: z.ZodType<CreateChatCompletion1RouterNe$Outbound, z.ZodTypeDef, CreateChatCompletion1RouterNe>;
2537
+ export declare function createChatCompletion1RouterNeToJSON(createChatCompletion1RouterNe: CreateChatCompletion1RouterNe): string;
2538
+ export declare function createChatCompletion1RouterNeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1RouterNe, SDKValidationError>;
2539
+ /** @internal */
2540
+ export declare const CreateChatCompletion1Ne$inboundSchema: z.ZodType<CreateChatCompletion1Ne, z.ZodTypeDef, unknown>;
2541
+ /** @internal */
2542
+ export type CreateChatCompletion1Ne$Outbound = {
2543
+ ne: string | number | boolean;
2544
+ };
2545
+ /** @internal */
2546
+ export declare const CreateChatCompletion1Ne$outboundSchema: z.ZodType<CreateChatCompletion1Ne$Outbound, z.ZodTypeDef, CreateChatCompletion1Ne>;
2547
+ export declare function createChatCompletion1NeToJSON(createChatCompletion1Ne: CreateChatCompletion1Ne): string;
2548
+ export declare function createChatCompletion1NeFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Ne, SDKValidationError>;
2549
+ /** @internal */
2550
+ export declare const CreateChatCompletion1RouterEq$inboundSchema: z.ZodType<CreateChatCompletion1RouterEq, z.ZodTypeDef, unknown>;
2551
+ /** @internal */
2552
+ export type CreateChatCompletion1RouterEq$Outbound = string | number | boolean;
2553
+ /** @internal */
2554
+ export declare const CreateChatCompletion1RouterEq$outboundSchema: z.ZodType<CreateChatCompletion1RouterEq$Outbound, z.ZodTypeDef, CreateChatCompletion1RouterEq>;
2555
+ export declare function createChatCompletion1RouterEqToJSON(createChatCompletion1RouterEq: CreateChatCompletion1RouterEq): string;
2556
+ export declare function createChatCompletion1RouterEqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1RouterEq, SDKValidationError>;
2557
+ /** @internal */
2558
+ export declare const CreateChatCompletion1Eq$inboundSchema: z.ZodType<CreateChatCompletion1Eq, z.ZodTypeDef, unknown>;
2559
+ /** @internal */
2560
+ export type CreateChatCompletion1Eq$Outbound = {
2561
+ eq: string | number | boolean;
2562
+ };
2563
+ /** @internal */
2564
+ export declare const CreateChatCompletion1Eq$outboundSchema: z.ZodType<CreateChatCompletion1Eq$Outbound, z.ZodTypeDef, CreateChatCompletion1Eq>;
2565
+ export declare function createChatCompletion1EqToJSON(createChatCompletion1Eq: CreateChatCompletion1Eq): string;
2566
+ export declare function createChatCompletion1EqFromJSON(jsonString: string): SafeParseResult<CreateChatCompletion1Eq, SDKValidationError>;
2567
+ /** @internal */
2568
+ export declare const CreateChatCompletionFilterBy1$inboundSchema: z.ZodType<CreateChatCompletionFilterBy1, z.ZodTypeDef, unknown>;
2569
+ /** @internal */
2570
+ export type CreateChatCompletionFilterBy1$Outbound = CreateChatCompletion1Eq$Outbound | CreateChatCompletion1Ne$Outbound | CreateChatCompletion1Gt$Outbound | CreateChatCompletion1Gte$Outbound | CreateChatCompletion1Lt$Outbound | CreateChatCompletion1Lte$Outbound | CreateChatCompletion1In$Outbound | CreateChatCompletion1Nin$Outbound | CreateChatCompletion1Exists$Outbound;
2571
+ /** @internal */
2572
+ export declare const CreateChatCompletionFilterBy1$outboundSchema: z.ZodType<CreateChatCompletionFilterBy1$Outbound, z.ZodTypeDef, CreateChatCompletionFilterBy1>;
2573
+ export declare function createChatCompletionFilterBy1ToJSON(createChatCompletionFilterBy1: CreateChatCompletionFilterBy1): string;
2574
+ export declare function createChatCompletionFilterBy1FromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterBy1, SDKValidationError>;
2575
+ /** @internal */
2576
+ export declare const CreateChatCompletionFilterBy$inboundSchema: z.ZodType<CreateChatCompletionFilterBy, z.ZodTypeDef, unknown>;
2577
+ /** @internal */
2578
+ export type CreateChatCompletionFilterBy$Outbound = CreateChatCompletionFilterByAnd$Outbound | CreateChatCompletionFilterByOr$Outbound | {
2579
+ [k: string]: CreateChatCompletion1Eq$Outbound | CreateChatCompletion1Ne$Outbound | CreateChatCompletion1Gt$Outbound | CreateChatCompletion1Gte$Outbound | CreateChatCompletion1Lt$Outbound | CreateChatCompletion1Lte$Outbound | CreateChatCompletion1In$Outbound | CreateChatCompletion1Nin$Outbound | CreateChatCompletion1Exists$Outbound;
2580
+ };
2581
+ /** @internal */
2582
+ export declare const CreateChatCompletionFilterBy$outboundSchema: z.ZodType<CreateChatCompletionFilterBy$Outbound, z.ZodTypeDef, CreateChatCompletionFilterBy>;
2583
+ export declare function createChatCompletionFilterByToJSON(createChatCompletionFilterBy: CreateChatCompletionFilterBy): string;
2584
+ export declare function createChatCompletionFilterByFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionFilterBy, SDKValidationError>;
2585
+ /** @internal */
2586
+ export declare const CreateChatCompletionSearchOptions$inboundSchema: z.ZodType<CreateChatCompletionSearchOptions, z.ZodTypeDef, unknown>;
2587
+ /** @internal */
2588
+ export type CreateChatCompletionSearchOptions$Outbound = {
2589
+ include_vectors?: boolean | undefined;
2590
+ include_metadata?: boolean | undefined;
2591
+ include_scores?: boolean | undefined;
2592
+ };
2593
+ /** @internal */
2594
+ export declare const CreateChatCompletionSearchOptions$outboundSchema: z.ZodType<CreateChatCompletionSearchOptions$Outbound, z.ZodTypeDef, CreateChatCompletionSearchOptions>;
2595
+ export declare function createChatCompletionSearchOptionsToJSON(createChatCompletionSearchOptions: CreateChatCompletionSearchOptions): string;
2596
+ export declare function createChatCompletionSearchOptionsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionSearchOptions, SDKValidationError>;
2597
+ /** @internal */
2598
+ export declare const CreateChatCompletionRerankConfig$inboundSchema: z.ZodType<CreateChatCompletionRerankConfig, z.ZodTypeDef, unknown>;
2599
+ /** @internal */
2600
+ export type CreateChatCompletionRerankConfig$Outbound = {
2601
+ model: string;
2602
+ threshold: number;
2603
+ top_k: number;
2604
+ };
2605
+ /** @internal */
2606
+ export declare const CreateChatCompletionRerankConfig$outboundSchema: z.ZodType<CreateChatCompletionRerankConfig$Outbound, z.ZodTypeDef, CreateChatCompletionRerankConfig>;
2607
+ export declare function createChatCompletionRerankConfigToJSON(createChatCompletionRerankConfig: CreateChatCompletionRerankConfig): string;
2608
+ export declare function createChatCompletionRerankConfigFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRerankConfig, SDKValidationError>;
2609
+ /** @internal */
2610
+ export declare const CreateChatCompletionAgenticRagConfig$inboundSchema: z.ZodType<CreateChatCompletionAgenticRagConfig, z.ZodTypeDef, unknown>;
2611
+ /** @internal */
2612
+ export type CreateChatCompletionAgenticRagConfig$Outbound = {
2613
+ model: string;
2614
+ };
2615
+ /** @internal */
2616
+ export declare const CreateChatCompletionAgenticRagConfig$outboundSchema: z.ZodType<CreateChatCompletionAgenticRagConfig$Outbound, z.ZodTypeDef, CreateChatCompletionAgenticRagConfig>;
2617
+ export declare function createChatCompletionAgenticRagConfigToJSON(createChatCompletionAgenticRagConfig: CreateChatCompletionAgenticRagConfig): string;
2618
+ export declare function createChatCompletionAgenticRagConfigFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionAgenticRagConfig, SDKValidationError>;
2619
+ /** @internal */
2620
+ export declare const CreateChatCompletionKnowledgeBases$inboundSchema: z.ZodType<CreateChatCompletionKnowledgeBases, z.ZodTypeDef, unknown>;
2621
+ /** @internal */
2622
+ export type CreateChatCompletionKnowledgeBases$Outbound = {
2623
+ top_k?: number | undefined;
2624
+ threshold?: number | undefined;
2625
+ search_type: string;
2626
+ filter_by?: CreateChatCompletionFilterByAnd$Outbound | CreateChatCompletionFilterByOr$Outbound | {
2627
+ [k: string]: CreateChatCompletion1Eq$Outbound | CreateChatCompletion1Ne$Outbound | CreateChatCompletion1Gt$Outbound | CreateChatCompletion1Gte$Outbound | CreateChatCompletion1Lt$Outbound | CreateChatCompletion1Lte$Outbound | CreateChatCompletion1In$Outbound | CreateChatCompletion1Nin$Outbound | CreateChatCompletion1Exists$Outbound;
2628
+ } | undefined;
2629
+ search_options?: CreateChatCompletionSearchOptions$Outbound | undefined;
2630
+ rerank_config?: CreateChatCompletionRerankConfig$Outbound | undefined;
2631
+ agentic_rag_config?: CreateChatCompletionAgenticRagConfig$Outbound | undefined;
2632
+ knowledge_id: string;
2633
+ query?: string | undefined;
2634
+ };
2635
+ /** @internal */
2636
+ export declare const CreateChatCompletionKnowledgeBases$outboundSchema: z.ZodType<CreateChatCompletionKnowledgeBases$Outbound, z.ZodTypeDef, CreateChatCompletionKnowledgeBases>;
2637
+ export declare function createChatCompletionKnowledgeBasesToJSON(createChatCompletionKnowledgeBases: CreateChatCompletionKnowledgeBases): string;
2638
+ export declare function createChatCompletionKnowledgeBasesFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionKnowledgeBases, SDKValidationError>;
2639
+ /** @internal */
2640
+ export declare const LoadBalancerType$inboundSchema: z.ZodNativeEnum<typeof LoadBalancerType>;
2641
+ /** @internal */
2642
+ export declare const LoadBalancerType$outboundSchema: z.ZodNativeEnum<typeof LoadBalancerType>;
2643
+ /** @internal */
2644
+ export declare const LoadBalancer1$inboundSchema: z.ZodType<LoadBalancer1, z.ZodTypeDef, unknown>;
2645
+ /** @internal */
2646
+ export type LoadBalancer1$Outbound = {
2647
+ type: string;
2648
+ model: string;
2649
+ weight: number;
2650
+ };
2651
+ /** @internal */
2652
+ export declare const LoadBalancer1$outboundSchema: z.ZodType<LoadBalancer1$Outbound, z.ZodTypeDef, LoadBalancer1>;
2653
+ export declare function loadBalancer1ToJSON(loadBalancer1: LoadBalancer1): string;
2654
+ export declare function loadBalancer1FromJSON(jsonString: string): SafeParseResult<LoadBalancer1, SDKValidationError>;
2655
+ /** @internal */
2656
+ export declare const LoadBalancer$inboundSchema: z.ZodType<LoadBalancer, z.ZodTypeDef, unknown>;
2657
+ /** @internal */
2658
+ export type LoadBalancer$Outbound = LoadBalancer1$Outbound;
2659
+ /** @internal */
2660
+ export declare const LoadBalancer$outboundSchema: z.ZodType<LoadBalancer$Outbound, z.ZodTypeDef, LoadBalancer>;
2661
+ export declare function loadBalancerToJSON(loadBalancer: LoadBalancer): string;
2662
+ export declare function loadBalancerFromJSON(jsonString: string): SafeParseResult<LoadBalancer, SDKValidationError>;
2663
+ /** @internal */
2664
+ export declare const Timeout$inboundSchema: z.ZodType<Timeout, z.ZodTypeDef, unknown>;
2665
+ /** @internal */
2666
+ export type Timeout$Outbound = {
2667
+ call_timeout: number;
2668
+ };
2669
+ /** @internal */
2670
+ export declare const Timeout$outboundSchema: z.ZodType<Timeout$Outbound, z.ZodTypeDef, Timeout>;
2671
+ export declare function timeoutToJSON(timeout: Timeout): string;
2672
+ export declare function timeoutFromJSON(jsonString: string): SafeParseResult<Timeout, SDKValidationError>;
2673
+ /** @internal */
2674
+ export declare const Orq$inboundSchema: z.ZodType<Orq, z.ZodTypeDef, unknown>;
2675
+ /** @internal */
2676
+ export type Orq$Outbound = {
2677
+ name?: string | undefined;
2678
+ retry?: CreateChatCompletionRetry$Outbound | undefined;
2679
+ fallbacks?: Array<Fallbacks$Outbound> | undefined;
2680
+ prompt?: Prompt$Outbound | undefined;
2681
+ contact?: components.PublicContact$Outbound | undefined;
2682
+ thread?: CreateChatCompletionThread$Outbound | undefined;
2683
+ inputs?: {
2684
+ [k: string]: any;
2685
+ } | Array<Inputs2$Outbound> | undefined;
2686
+ cache?: Cache$Outbound | undefined;
2687
+ knowledge_bases?: Array<CreateChatCompletionKnowledgeBases$Outbound> | undefined;
2688
+ load_balancer?: Array<LoadBalancer1$Outbound> | undefined;
2689
+ timeout?: Timeout$Outbound | undefined;
2690
+ };
2691
+ /** @internal */
2692
+ export declare const Orq$outboundSchema: z.ZodType<Orq$Outbound, z.ZodTypeDef, Orq>;
2693
+ export declare function orqToJSON(orq: Orq): string;
2694
+ export declare function orqFromJSON(jsonString: string): SafeParseResult<Orq, SDKValidationError>;
2695
+ /** @internal */
2696
+ export declare const CreateChatCompletionRequestBody$inboundSchema: z.ZodType<CreateChatCompletionRequestBody, z.ZodTypeDef, unknown>;
2697
+ /** @internal */
2698
+ export type CreateChatCompletionRequestBody$Outbound = {
2699
+ messages: Array<CreateChatCompletionMessagesSystemMessage$Outbound | CreateChatCompletionMessagesDeveloperMessage$Outbound | CreateChatCompletionMessagesUserMessage$Outbound | CreateChatCompletionMessagesAssistantMessage$Outbound | CreateChatCompletionMessagesToolMessage$Outbound>;
2700
+ model: string;
2701
+ metadata?: {
2702
+ [k: string]: string;
2703
+ } | undefined;
2704
+ audio?: CreateChatCompletionAudio$Outbound | null | undefined;
2705
+ frequency_penalty?: number | null | undefined;
2706
+ max_tokens?: number | null | undefined;
2707
+ max_completion_tokens?: number | null | undefined;
2708
+ logprobs?: boolean | null | undefined;
2709
+ top_logprobs?: number | null | undefined;
2710
+ n?: number | null | undefined;
2711
+ presence_penalty?: number | null | undefined;
2712
+ response_format?: CreateChatCompletionResponseFormatText$Outbound | CreateChatCompletionResponseFormatJSONObject$Outbound | CreateChatCompletionResponseFormatJSONSchema$Outbound | undefined;
2713
+ reasoning_effort?: string | undefined;
2714
+ verbosity?: string | undefined;
2715
+ seed?: number | null | undefined;
2716
+ stop?: string | Array<string> | null | undefined;
2717
+ stream_options?: CreateChatCompletionStreamOptions$Outbound | null | undefined;
2718
+ thinking?: components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound | undefined;
2719
+ temperature?: number | null | undefined;
2720
+ top_p?: number | null | undefined;
2721
+ top_k?: number | null | undefined;
2722
+ tools?: Array<CreateChatCompletionTools$Outbound> | undefined;
2723
+ tool_choice?: CreateChatCompletionToolChoice2$Outbound | string | undefined;
2724
+ parallel_tool_calls?: boolean | undefined;
2725
+ modalities?: Array<string> | null | undefined;
2726
+ guardrails?: Array<CreateChatCompletionGuardrails$Outbound> | undefined;
2727
+ orq?: Orq$Outbound | undefined;
2728
+ stream: boolean;
2729
+ };
2730
+ /** @internal */
2731
+ export declare const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<CreateChatCompletionRequestBody$Outbound, z.ZodTypeDef, CreateChatCompletionRequestBody>;
2732
+ export declare function createChatCompletionRequestBodyToJSON(createChatCompletionRequestBody: CreateChatCompletionRequestBody): string;
2733
+ export declare function createChatCompletionRequestBodyFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRequestBody, SDKValidationError>;
2734
+ /** @internal */
2735
+ export declare const CreateChatCompletionFinishReason$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionFinishReason>;
2736
+ /** @internal */
2737
+ export declare const CreateChatCompletionFinishReason$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionFinishReason>;
2738
+ /** @internal */
2739
+ export declare const CreateChatCompletionRouterTopLogprobs$inboundSchema: z.ZodType<CreateChatCompletionRouterTopLogprobs, z.ZodTypeDef, unknown>;
2740
+ /** @internal */
2741
+ export type CreateChatCompletionRouterTopLogprobs$Outbound = {
2742
+ token: string;
2743
+ logprob: number;
2744
+ bytes: Array<number> | null;
2745
+ };
2746
+ /** @internal */
2747
+ export declare const CreateChatCompletionRouterTopLogprobs$outboundSchema: z.ZodType<CreateChatCompletionRouterTopLogprobs$Outbound, z.ZodTypeDef, CreateChatCompletionRouterTopLogprobs>;
2748
+ export declare function createChatCompletionRouterTopLogprobsToJSON(createChatCompletionRouterTopLogprobs: CreateChatCompletionRouterTopLogprobs): string;
2749
+ export declare function createChatCompletionRouterTopLogprobsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterTopLogprobs, SDKValidationError>;
2750
+ /** @internal */
2751
+ export declare const CreateChatCompletionRouterContent$inboundSchema: z.ZodType<CreateChatCompletionRouterContent, z.ZodTypeDef, unknown>;
2752
+ /** @internal */
2753
+ export type CreateChatCompletionRouterContent$Outbound = {
2754
+ token: string;
2755
+ logprob: number;
2756
+ bytes: Array<number> | null;
2757
+ top_logprobs: Array<CreateChatCompletionRouterTopLogprobs$Outbound>;
2758
+ };
2759
+ /** @internal */
2760
+ export declare const CreateChatCompletionRouterContent$outboundSchema: z.ZodType<CreateChatCompletionRouterContent$Outbound, z.ZodTypeDef, CreateChatCompletionRouterContent>;
2761
+ export declare function createChatCompletionRouterContentToJSON(createChatCompletionRouterContent: CreateChatCompletionRouterContent): string;
2762
+ export declare function createChatCompletionRouterContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterContent, SDKValidationError>;
2763
+ /** @internal */
2764
+ export declare const CreateChatCompletionRouterResponseTopLogprobs$inboundSchema: z.ZodType<CreateChatCompletionRouterResponseTopLogprobs, z.ZodTypeDef, unknown>;
2765
+ /** @internal */
2766
+ export type CreateChatCompletionRouterResponseTopLogprobs$Outbound = {
2767
+ token: string;
2768
+ logprob: number;
2769
+ bytes: Array<number> | null;
2770
+ };
2771
+ /** @internal */
2772
+ export declare const CreateChatCompletionRouterResponseTopLogprobs$outboundSchema: z.ZodType<CreateChatCompletionRouterResponseTopLogprobs$Outbound, z.ZodTypeDef, CreateChatCompletionRouterResponseTopLogprobs>;
2773
+ export declare function createChatCompletionRouterResponseTopLogprobsToJSON(createChatCompletionRouterResponseTopLogprobs: CreateChatCompletionRouterResponseTopLogprobs): string;
2774
+ export declare function createChatCompletionRouterResponseTopLogprobsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterResponseTopLogprobs, SDKValidationError>;
2775
+ /** @internal */
2776
+ export declare const CreateChatCompletionRefusal$inboundSchema: z.ZodType<CreateChatCompletionRefusal, z.ZodTypeDef, unknown>;
2777
+ /** @internal */
2778
+ export type CreateChatCompletionRefusal$Outbound = {
2779
+ token: string;
2780
+ logprob: number;
2781
+ bytes: Array<number> | null;
2782
+ top_logprobs: Array<CreateChatCompletionRouterResponseTopLogprobs$Outbound>;
2783
+ };
2784
+ /** @internal */
2785
+ export declare const CreateChatCompletionRefusal$outboundSchema: z.ZodType<CreateChatCompletionRefusal$Outbound, z.ZodTypeDef, CreateChatCompletionRefusal>;
2786
+ export declare function createChatCompletionRefusalToJSON(createChatCompletionRefusal: CreateChatCompletionRefusal): string;
2787
+ export declare function createChatCompletionRefusalFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRefusal, SDKValidationError>;
2788
+ /** @internal */
2789
+ export declare const CreateChatCompletionLogprobs$inboundSchema: z.ZodType<CreateChatCompletionLogprobs, z.ZodTypeDef, unknown>;
2790
+ /** @internal */
2791
+ export type CreateChatCompletionLogprobs$Outbound = {
2792
+ content: Array<CreateChatCompletionRouterContent$Outbound> | null;
2793
+ refusal: Array<CreateChatCompletionRefusal$Outbound> | null;
2794
+ };
2795
+ /** @internal */
2796
+ export declare const CreateChatCompletionLogprobs$outboundSchema: z.ZodType<CreateChatCompletionLogprobs$Outbound, z.ZodTypeDef, CreateChatCompletionLogprobs>;
2797
+ export declare function createChatCompletionLogprobsToJSON(createChatCompletionLogprobs: CreateChatCompletionLogprobs): string;
2798
+ export declare function createChatCompletionLogprobsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionLogprobs, SDKValidationError>;
2799
+ /** @internal */
2800
+ export declare const CreateChatCompletionRouterResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterResponse200Type>;
2801
+ /** @internal */
2802
+ export declare const CreateChatCompletionRouterResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterResponse200Type>;
2803
+ /** @internal */
2804
+ export declare const CreateChatCompletionRouterResponseFunction$inboundSchema: z.ZodType<CreateChatCompletionRouterResponseFunction, z.ZodTypeDef, unknown>;
2805
+ /** @internal */
2806
+ export type CreateChatCompletionRouterResponseFunction$Outbound = {
2807
+ name?: string | undefined;
2808
+ arguments?: string | undefined;
2809
+ };
2810
+ /** @internal */
2811
+ export declare const CreateChatCompletionRouterResponseFunction$outboundSchema: z.ZodType<CreateChatCompletionRouterResponseFunction$Outbound, z.ZodTypeDef, CreateChatCompletionRouterResponseFunction>;
2812
+ export declare function createChatCompletionRouterResponseFunctionToJSON(createChatCompletionRouterResponseFunction: CreateChatCompletionRouterResponseFunction): string;
2813
+ export declare function createChatCompletionRouterResponseFunctionFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterResponseFunction, SDKValidationError>;
2814
+ /** @internal */
2815
+ export declare const CreateChatCompletionRouterToolCalls$inboundSchema: z.ZodType<CreateChatCompletionRouterToolCalls, z.ZodTypeDef, unknown>;
2816
+ /** @internal */
2817
+ export type CreateChatCompletionRouterToolCalls$Outbound = {
2818
+ index?: number | undefined;
2819
+ id?: string | undefined;
2820
+ type?: string | undefined;
2821
+ function?: CreateChatCompletionRouterResponseFunction$Outbound | undefined;
2822
+ thought_signature?: string | undefined;
2823
+ };
2824
+ /** @internal */
2825
+ export declare const CreateChatCompletionRouterToolCalls$outboundSchema: z.ZodType<CreateChatCompletionRouterToolCalls$Outbound, z.ZodTypeDef, CreateChatCompletionRouterToolCalls>;
2826
+ export declare function createChatCompletionRouterToolCallsToJSON(createChatCompletionRouterToolCalls: CreateChatCompletionRouterToolCalls): string;
2827
+ export declare function createChatCompletionRouterToolCallsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterToolCalls, SDKValidationError>;
2828
+ /** @internal */
2829
+ export declare const CreateChatCompletionRouterRole$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterRole>;
2830
+ /** @internal */
2831
+ export declare const CreateChatCompletionRouterRole$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterRole>;
2832
+ /** @internal */
2833
+ export declare const CreateChatCompletionRouterResponseAudio$inboundSchema: z.ZodType<CreateChatCompletionRouterResponseAudio, z.ZodTypeDef, unknown>;
2834
+ /** @internal */
2835
+ export type CreateChatCompletionRouterResponseAudio$Outbound = {
2836
+ id?: string | undefined;
2837
+ transcript?: string | undefined;
2838
+ data?: string | undefined;
2839
+ expires_at?: number | undefined;
2840
+ };
2841
+ /** @internal */
2842
+ export declare const CreateChatCompletionRouterResponseAudio$outboundSchema: z.ZodType<CreateChatCompletionRouterResponseAudio$Outbound, z.ZodTypeDef, CreateChatCompletionRouterResponseAudio>;
2843
+ export declare function createChatCompletionRouterResponseAudioToJSON(createChatCompletionRouterResponseAudio: CreateChatCompletionRouterResponseAudio): string;
2844
+ export declare function createChatCompletionRouterResponseAudioFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterResponseAudio, SDKValidationError>;
2845
+ /** @internal */
2846
+ export declare const Delta$inboundSchema: z.ZodType<Delta, z.ZodTypeDef, unknown>;
2847
+ /** @internal */
2848
+ export type Delta$Outbound = {
2849
+ content?: string | null | undefined;
2850
+ refusal?: string | null | undefined;
2851
+ tool_calls?: Array<CreateChatCompletionRouterToolCalls$Outbound> | undefined;
2852
+ role?: string | undefined;
2853
+ reasoning?: string | undefined;
2854
+ reasoning_signature?: string | undefined;
2855
+ redacted_reasoning?: string | undefined;
2856
+ audio?: CreateChatCompletionRouterResponseAudio$Outbound | null | undefined;
2857
+ };
2858
+ /** @internal */
2859
+ export declare const Delta$outboundSchema: z.ZodType<Delta$Outbound, z.ZodTypeDef, Delta>;
2860
+ export declare function deltaToJSON(delta: Delta): string;
2861
+ export declare function deltaFromJSON(jsonString: string): SafeParseResult<Delta, SDKValidationError>;
2862
+ /** @internal */
2863
+ export declare const CreateChatCompletionRouterChoices$inboundSchema: z.ZodType<CreateChatCompletionRouterChoices, z.ZodTypeDef, unknown>;
2864
+ /** @internal */
2865
+ export type CreateChatCompletionRouterChoices$Outbound = {
2866
+ finish_reason: string | null;
2867
+ index: number;
2868
+ logprobs?: CreateChatCompletionLogprobs$Outbound | null | undefined;
2869
+ delta: Delta$Outbound;
2870
+ };
2871
+ /** @internal */
2872
+ export declare const CreateChatCompletionRouterChoices$outboundSchema: z.ZodType<CreateChatCompletionRouterChoices$Outbound, z.ZodTypeDef, CreateChatCompletionRouterChoices>;
2873
+ export declare function createChatCompletionRouterChoicesToJSON(createChatCompletionRouterChoices: CreateChatCompletionRouterChoices): string;
2874
+ export declare function createChatCompletionRouterChoicesFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterChoices, SDKValidationError>;
2875
+ /** @internal */
2876
+ export declare const CreateChatCompletionPromptTokensDetails$inboundSchema: z.ZodType<CreateChatCompletionPromptTokensDetails, z.ZodTypeDef, unknown>;
2877
+ /** @internal */
2878
+ export type CreateChatCompletionPromptTokensDetails$Outbound = {
2879
+ cached_tokens?: number | null | undefined;
2880
+ cache_creation_tokens?: number | null | undefined;
2881
+ audio_tokens?: number | null | undefined;
2882
+ };
2883
+ /** @internal */
2884
+ export declare const CreateChatCompletionPromptTokensDetails$outboundSchema: z.ZodType<CreateChatCompletionPromptTokensDetails$Outbound, z.ZodTypeDef, CreateChatCompletionPromptTokensDetails>;
2885
+ export declare function createChatCompletionPromptTokensDetailsToJSON(createChatCompletionPromptTokensDetails: CreateChatCompletionPromptTokensDetails): string;
2886
+ export declare function createChatCompletionPromptTokensDetailsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionPromptTokensDetails, SDKValidationError>;
2887
+ /** @internal */
2888
+ export declare const CreateChatCompletionCompletionTokensDetails$inboundSchema: z.ZodType<CreateChatCompletionCompletionTokensDetails, z.ZodTypeDef, unknown>;
2889
+ /** @internal */
2890
+ export type CreateChatCompletionCompletionTokensDetails$Outbound = {
2891
+ reasoning_tokens?: number | null | undefined;
2892
+ accepted_prediction_tokens?: number | null | undefined;
2893
+ rejected_prediction_tokens?: number | null | undefined;
2894
+ audio_tokens?: number | null | undefined;
2895
+ };
2896
+ /** @internal */
2897
+ export declare const CreateChatCompletionCompletionTokensDetails$outboundSchema: z.ZodType<CreateChatCompletionCompletionTokensDetails$Outbound, z.ZodTypeDef, CreateChatCompletionCompletionTokensDetails>;
2898
+ export declare function createChatCompletionCompletionTokensDetailsToJSON(createChatCompletionCompletionTokensDetails: CreateChatCompletionCompletionTokensDetails): string;
2899
+ export declare function createChatCompletionCompletionTokensDetailsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionCompletionTokensDetails, SDKValidationError>;
2900
+ /** @internal */
2901
+ export declare const CreateChatCompletionRouterUsage$inboundSchema: z.ZodType<CreateChatCompletionRouterUsage, z.ZodTypeDef, unknown>;
2902
+ /** @internal */
2903
+ export type CreateChatCompletionRouterUsage$Outbound = {
2904
+ completion_tokens?: number | undefined;
2905
+ prompt_tokens?: number | undefined;
2906
+ total_tokens?: number | undefined;
2907
+ prompt_tokens_details?: CreateChatCompletionPromptTokensDetails$Outbound | null | undefined;
2908
+ completion_tokens_details?: CreateChatCompletionCompletionTokensDetails$Outbound | null | undefined;
2909
+ };
2910
+ /** @internal */
2911
+ export declare const CreateChatCompletionRouterUsage$outboundSchema: z.ZodType<CreateChatCompletionRouterUsage$Outbound, z.ZodTypeDef, CreateChatCompletionRouterUsage>;
2912
+ export declare function createChatCompletionRouterUsageToJSON(createChatCompletionRouterUsage: CreateChatCompletionRouterUsage): string;
2913
+ export declare function createChatCompletionRouterUsageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterUsage, SDKValidationError>;
2914
+ /** @internal */
2915
+ export declare const CreateChatCompletionRouterObject$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterObject>;
2916
+ /** @internal */
2917
+ export declare const CreateChatCompletionRouterObject$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterObject>;
2918
+ /** @internal */
2919
+ export declare const CreateChatCompletionData$inboundSchema: z.ZodType<CreateChatCompletionData, z.ZodTypeDef, unknown>;
2920
+ /** @internal */
2921
+ export type CreateChatCompletionData$Outbound = {
2922
+ id: string;
2923
+ choices: Array<CreateChatCompletionRouterChoices$Outbound>;
2924
+ created: number;
2925
+ model: string;
2926
+ system_fingerprint?: string | null | undefined;
2927
+ usage?: CreateChatCompletionRouterUsage$Outbound | null | undefined;
2928
+ object: string;
2929
+ };
2930
+ /** @internal */
2931
+ export declare const CreateChatCompletionData$outboundSchema: z.ZodType<CreateChatCompletionData$Outbound, z.ZodTypeDef, CreateChatCompletionData>;
2932
+ export declare function createChatCompletionDataToJSON(createChatCompletionData: CreateChatCompletionData): string;
2933
+ export declare function createChatCompletionDataFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionData, SDKValidationError>;
2934
+ /** @internal */
2935
+ export declare const CreateChatCompletionRouterResponseBody$inboundSchema: z.ZodType<CreateChatCompletionRouterResponseBody, z.ZodTypeDef, unknown>;
2936
+ /** @internal */
2937
+ export type CreateChatCompletionRouterResponseBody$Outbound = {
2938
+ data?: CreateChatCompletionData$Outbound | undefined;
2939
+ };
2940
+ /** @internal */
2941
+ export declare const CreateChatCompletionRouterResponseBody$outboundSchema: z.ZodType<CreateChatCompletionRouterResponseBody$Outbound, z.ZodTypeDef, CreateChatCompletionRouterResponseBody>;
2942
+ export declare function createChatCompletionRouterResponseBodyToJSON(createChatCompletionRouterResponseBody: CreateChatCompletionRouterResponseBody): string;
2943
+ export declare function createChatCompletionRouterResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterResponseBody, SDKValidationError>;
2944
+ /** @internal */
2945
+ export declare const FinishReason$inboundSchema: z.ZodNativeEnum<typeof FinishReason>;
2946
+ /** @internal */
2947
+ export declare const FinishReason$outboundSchema: z.ZodNativeEnum<typeof FinishReason>;
2948
+ /** @internal */
2949
+ export declare const CreateChatCompletionRouterResponseType$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterResponseType>;
2950
+ /** @internal */
2951
+ export declare const CreateChatCompletionRouterResponseType$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRouterResponseType>;
2952
+ /** @internal */
2953
+ export declare const CreateChatCompletionRouterFunction$inboundSchema: z.ZodType<CreateChatCompletionRouterFunction, z.ZodTypeDef, unknown>;
2954
+ /** @internal */
2955
+ export type CreateChatCompletionRouterFunction$Outbound = {
2956
+ name?: string | undefined;
2957
+ arguments?: string | undefined;
2958
+ };
2959
+ /** @internal */
2960
+ export declare const CreateChatCompletionRouterFunction$outboundSchema: z.ZodType<CreateChatCompletionRouterFunction$Outbound, z.ZodTypeDef, CreateChatCompletionRouterFunction>;
2961
+ export declare function createChatCompletionRouterFunctionToJSON(createChatCompletionRouterFunction: CreateChatCompletionRouterFunction): string;
2962
+ export declare function createChatCompletionRouterFunctionFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterFunction, SDKValidationError>;
2963
+ /** @internal */
2964
+ export declare const CreateChatCompletionToolCalls$inboundSchema: z.ZodType<CreateChatCompletionToolCalls, z.ZodTypeDef, unknown>;
2965
+ /** @internal */
2966
+ export type CreateChatCompletionToolCalls$Outbound = {
2967
+ index?: number | undefined;
2968
+ id?: string | undefined;
2969
+ type?: string | undefined;
2970
+ function?: CreateChatCompletionRouterFunction$Outbound | undefined;
2971
+ thought_signature?: string | undefined;
2972
+ };
2973
+ /** @internal */
2974
+ export declare const CreateChatCompletionToolCalls$outboundSchema: z.ZodType<CreateChatCompletionToolCalls$Outbound, z.ZodTypeDef, CreateChatCompletionToolCalls>;
2975
+ export declare function createChatCompletionToolCallsToJSON(createChatCompletionToolCalls: CreateChatCompletionToolCalls): string;
2976
+ export declare function createChatCompletionToolCallsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionToolCalls, SDKValidationError>;
2977
+ /** @internal */
2978
+ export declare const CreateChatCompletionRole$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRole>;
2979
+ /** @internal */
2980
+ export declare const CreateChatCompletionRole$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionRole>;
2981
+ /** @internal */
2982
+ export declare const CreateChatCompletionRouterAudio$inboundSchema: z.ZodType<CreateChatCompletionRouterAudio, z.ZodTypeDef, unknown>;
2983
+ /** @internal */
2984
+ export type CreateChatCompletionRouterAudio$Outbound = {
2985
+ id: string;
2986
+ expires_at: number;
2987
+ data: string;
2988
+ transcript: string;
2989
+ };
2990
+ /** @internal */
2991
+ export declare const CreateChatCompletionRouterAudio$outboundSchema: z.ZodType<CreateChatCompletionRouterAudio$Outbound, z.ZodTypeDef, CreateChatCompletionRouterAudio>;
2992
+ export declare function createChatCompletionRouterAudioToJSON(createChatCompletionRouterAudio: CreateChatCompletionRouterAudio): string;
2993
+ export declare function createChatCompletionRouterAudioFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionRouterAudio, SDKValidationError>;
2994
+ /** @internal */
2995
+ export declare const CreateChatCompletionMessage$inboundSchema: z.ZodType<CreateChatCompletionMessage, z.ZodTypeDef, unknown>;
2996
+ /** @internal */
2997
+ export type CreateChatCompletionMessage$Outbound = {
2998
+ content?: string | null | undefined;
2999
+ refusal?: string | null | undefined;
3000
+ tool_calls?: Array<CreateChatCompletionToolCalls$Outbound> | undefined;
3001
+ role?: string | undefined;
3002
+ reasoning?: string | null | undefined;
3003
+ reasoning_signature?: string | null | undefined;
3004
+ redacted_reasoning?: string | undefined;
3005
+ audio?: CreateChatCompletionRouterAudio$Outbound | null | undefined;
3006
+ };
3007
+ /** @internal */
3008
+ export declare const CreateChatCompletionMessage$outboundSchema: z.ZodType<CreateChatCompletionMessage$Outbound, z.ZodTypeDef, CreateChatCompletionMessage>;
3009
+ export declare function createChatCompletionMessageToJSON(createChatCompletionMessage: CreateChatCompletionMessage): string;
3010
+ export declare function createChatCompletionMessageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionMessage, SDKValidationError>;
3011
+ /** @internal */
3012
+ export declare const TopLogprobs$inboundSchema: z.ZodType<TopLogprobs, z.ZodTypeDef, unknown>;
3013
+ /** @internal */
3014
+ export type TopLogprobs$Outbound = {
3015
+ token: string;
3016
+ logprob: number;
3017
+ bytes: Array<number> | null;
3018
+ };
3019
+ /** @internal */
3020
+ export declare const TopLogprobs$outboundSchema: z.ZodType<TopLogprobs$Outbound, z.ZodTypeDef, TopLogprobs>;
3021
+ export declare function topLogprobsToJSON(topLogprobs: TopLogprobs): string;
3022
+ export declare function topLogprobsFromJSON(jsonString: string): SafeParseResult<TopLogprobs, SDKValidationError>;
3023
+ /** @internal */
3024
+ export declare const CreateChatCompletionContent$inboundSchema: z.ZodType<CreateChatCompletionContent, z.ZodTypeDef, unknown>;
3025
+ /** @internal */
3026
+ export type CreateChatCompletionContent$Outbound = {
3027
+ token: string;
3028
+ logprob: number;
3029
+ bytes: Array<number> | null;
3030
+ top_logprobs: Array<TopLogprobs$Outbound>;
3031
+ };
3032
+ /** @internal */
3033
+ export declare const CreateChatCompletionContent$outboundSchema: z.ZodType<CreateChatCompletionContent$Outbound, z.ZodTypeDef, CreateChatCompletionContent>;
3034
+ export declare function createChatCompletionContentToJSON(createChatCompletionContent: CreateChatCompletionContent): string;
3035
+ export declare function createChatCompletionContentFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionContent, SDKValidationError>;
3036
+ /** @internal */
3037
+ export declare const CreateChatCompletionTopLogprobs$inboundSchema: z.ZodType<CreateChatCompletionTopLogprobs, z.ZodTypeDef, unknown>;
3038
+ /** @internal */
3039
+ export type CreateChatCompletionTopLogprobs$Outbound = {
3040
+ token: string;
3041
+ logprob: number;
3042
+ bytes: Array<number> | null;
3043
+ };
3044
+ /** @internal */
3045
+ export declare const CreateChatCompletionTopLogprobs$outboundSchema: z.ZodType<CreateChatCompletionTopLogprobs$Outbound, z.ZodTypeDef, CreateChatCompletionTopLogprobs>;
3046
+ export declare function createChatCompletionTopLogprobsToJSON(createChatCompletionTopLogprobs: CreateChatCompletionTopLogprobs): string;
3047
+ export declare function createChatCompletionTopLogprobsFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionTopLogprobs, SDKValidationError>;
3048
+ /** @internal */
3049
+ export declare const Refusal$inboundSchema: z.ZodType<Refusal, z.ZodTypeDef, unknown>;
3050
+ /** @internal */
3051
+ export type Refusal$Outbound = {
3052
+ token: string;
3053
+ logprob: number;
3054
+ bytes: Array<number> | null;
3055
+ top_logprobs: Array<CreateChatCompletionTopLogprobs$Outbound>;
3056
+ };
3057
+ /** @internal */
3058
+ export declare const Refusal$outboundSchema: z.ZodType<Refusal$Outbound, z.ZodTypeDef, Refusal>;
3059
+ export declare function refusalToJSON(refusal: Refusal): string;
3060
+ export declare function refusalFromJSON(jsonString: string): SafeParseResult<Refusal, SDKValidationError>;
3061
+ /** @internal */
3062
+ export declare const Logprobs$inboundSchema: z.ZodType<Logprobs, z.ZodTypeDef, unknown>;
3063
+ /** @internal */
3064
+ export type Logprobs$Outbound = {
3065
+ content: Array<CreateChatCompletionContent$Outbound> | null;
3066
+ refusal: Array<Refusal$Outbound> | null;
3067
+ };
3068
+ /** @internal */
3069
+ export declare const Logprobs$outboundSchema: z.ZodType<Logprobs$Outbound, z.ZodTypeDef, Logprobs>;
3070
+ export declare function logprobsToJSON(logprobs: Logprobs): string;
3071
+ export declare function logprobsFromJSON(jsonString: string): SafeParseResult<Logprobs, SDKValidationError>;
3072
+ /** @internal */
3073
+ export declare const CreateChatCompletionChoices$inboundSchema: z.ZodType<CreateChatCompletionChoices, z.ZodTypeDef, unknown>;
3074
+ /** @internal */
3075
+ export type CreateChatCompletionChoices$Outbound = {
3076
+ finish_reason: string | null;
3077
+ index: number;
3078
+ message: CreateChatCompletionMessage$Outbound;
3079
+ logprobs?: Logprobs$Outbound | null | undefined;
3080
+ };
3081
+ /** @internal */
3082
+ export declare const CreateChatCompletionChoices$outboundSchema: z.ZodType<CreateChatCompletionChoices$Outbound, z.ZodTypeDef, CreateChatCompletionChoices>;
3083
+ export declare function createChatCompletionChoicesToJSON(createChatCompletionChoices: CreateChatCompletionChoices): string;
3084
+ export declare function createChatCompletionChoicesFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionChoices, SDKValidationError>;
3085
+ /** @internal */
3086
+ export declare const PromptTokensDetails$inboundSchema: z.ZodType<PromptTokensDetails, z.ZodTypeDef, unknown>;
3087
+ /** @internal */
3088
+ export type PromptTokensDetails$Outbound = {
3089
+ cached_tokens?: number | null | undefined;
3090
+ cache_creation_tokens?: number | null | undefined;
3091
+ audio_tokens?: number | null | undefined;
3092
+ };
3093
+ /** @internal */
3094
+ export declare const PromptTokensDetails$outboundSchema: z.ZodType<PromptTokensDetails$Outbound, z.ZodTypeDef, PromptTokensDetails>;
3095
+ export declare function promptTokensDetailsToJSON(promptTokensDetails: PromptTokensDetails): string;
3096
+ export declare function promptTokensDetailsFromJSON(jsonString: string): SafeParseResult<PromptTokensDetails, SDKValidationError>;
3097
+ /** @internal */
3098
+ export declare const CompletionTokensDetails$inboundSchema: z.ZodType<CompletionTokensDetails, z.ZodTypeDef, unknown>;
3099
+ /** @internal */
3100
+ export type CompletionTokensDetails$Outbound = {
3101
+ reasoning_tokens?: number | null | undefined;
3102
+ accepted_prediction_tokens?: number | null | undefined;
3103
+ rejected_prediction_tokens?: number | null | undefined;
3104
+ audio_tokens?: number | null | undefined;
3105
+ };
3106
+ /** @internal */
3107
+ export declare const CompletionTokensDetails$outboundSchema: z.ZodType<CompletionTokensDetails$Outbound, z.ZodTypeDef, CompletionTokensDetails>;
3108
+ export declare function completionTokensDetailsToJSON(completionTokensDetails: CompletionTokensDetails): string;
3109
+ export declare function completionTokensDetailsFromJSON(jsonString: string): SafeParseResult<CompletionTokensDetails, SDKValidationError>;
3110
+ /** @internal */
3111
+ export declare const CreateChatCompletionUsage$inboundSchema: z.ZodType<CreateChatCompletionUsage, z.ZodTypeDef, unknown>;
3112
+ /** @internal */
3113
+ export type CreateChatCompletionUsage$Outbound = {
3114
+ completion_tokens?: number | undefined;
3115
+ prompt_tokens?: number | undefined;
3116
+ total_tokens?: number | undefined;
3117
+ prompt_tokens_details?: PromptTokensDetails$Outbound | null | undefined;
3118
+ completion_tokens_details?: CompletionTokensDetails$Outbound | null | undefined;
3119
+ };
3120
+ /** @internal */
3121
+ export declare const CreateChatCompletionUsage$outboundSchema: z.ZodType<CreateChatCompletionUsage$Outbound, z.ZodTypeDef, CreateChatCompletionUsage>;
3122
+ export declare function createChatCompletionUsageToJSON(createChatCompletionUsage: CreateChatCompletionUsage): string;
3123
+ export declare function createChatCompletionUsageFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionUsage, SDKValidationError>;
3124
+ /** @internal */
3125
+ export declare const CreateChatCompletionObject$inboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionObject>;
3126
+ /** @internal */
3127
+ export declare const CreateChatCompletionObject$outboundSchema: z.ZodNativeEnum<typeof CreateChatCompletionObject>;
3128
+ /** @internal */
3129
+ export declare const CreateChatCompletionResponseBody$inboundSchema: z.ZodType<CreateChatCompletionResponseBody, z.ZodTypeDef, unknown>;
3130
+ /** @internal */
3131
+ export type CreateChatCompletionResponseBody$Outbound = {
3132
+ id: string;
3133
+ choices: Array<CreateChatCompletionChoices$Outbound>;
3134
+ created: number;
3135
+ model: string;
3136
+ system_fingerprint?: string | null | undefined;
3137
+ usage?: CreateChatCompletionUsage$Outbound | null | undefined;
3138
+ object: string;
3139
+ };
3140
+ /** @internal */
3141
+ export declare const CreateChatCompletionResponseBody$outboundSchema: z.ZodType<CreateChatCompletionResponseBody$Outbound, z.ZodTypeDef, CreateChatCompletionResponseBody>;
3142
+ export declare function createChatCompletionResponseBodyToJSON(createChatCompletionResponseBody: CreateChatCompletionResponseBody): string;
3143
+ export declare function createChatCompletionResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponseBody, SDKValidationError>;
3144
+ /** @internal */
3145
+ export declare const CreateChatCompletionResponse$inboundSchema: z.ZodType<CreateChatCompletionResponse, z.ZodTypeDef, unknown>;
3146
+ /** @internal */
3147
+ export type CreateChatCompletionResponse$Outbound = CreateChatCompletionResponseBody$Outbound | never;
3148
+ /** @internal */
3149
+ export declare const CreateChatCompletionResponse$outboundSchema: z.ZodType<CreateChatCompletionResponse$Outbound, z.ZodTypeDef, CreateChatCompletionResponse>;
3150
+ export declare function createChatCompletionResponseToJSON(createChatCompletionResponse: CreateChatCompletionResponse): string;
3151
+ export declare function createChatCompletionResponseFromJSON(jsonString: string): SafeParseResult<CreateChatCompletionResponse, SDKValidationError>;
3152
+ //# sourceMappingURL=createchatcompletion.d.ts.map