@orq-ai/node 4.0.18 → 4.0.20

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 (128) hide show
  1. package/bin/mcp-server.js +213 -213
  2. package/bin/mcp-server.js.map +36 -36
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +12 -12
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getalltools.js +12 -12
  20. package/models/operations/getbudget.js +2 -2
  21. package/models/operations/getevals.js +28 -28
  22. package/models/operations/listbudgets.js +2 -2
  23. package/models/operations/listcontacts.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +8 -8
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/listdatasources.js +2 -2
  27. package/models/operations/retrievecontact.js +2 -2
  28. package/models/operations/retrievedatapoint.js +8 -8
  29. package/models/operations/retrievedataset.js +2 -2
  30. package/models/operations/retrievedatasource.js +2 -2
  31. package/models/operations/retrievetool.js +12 -12
  32. package/models/operations/runagent.js +2 -2
  33. package/models/operations/streamrunagent.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +8 -8
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +28 -28
  40. package/models/operations/updatetool.js +14 -14
  41. package/package.json +1 -1
  42. package/packages/orq-rc/README.md +22 -18
  43. package/packages/orq-rc/docs/sdks/evals/README.md +103 -1
  44. package/packages/orq-rc/examples/package-lock.json +1 -1
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
  49. package/packages/orq-rc/src/lib/config.ts +2 -2
  50. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  51. package/packages/orq-rc/src/mcp-server/server.ts +3 -1
  52. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
  53. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  54. package/packages/orq-rc/src/models/errors/invokeeval.ts +128 -0
  55. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  59. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  61. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  62. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +877 -685
  63. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +35 -35
  64. package/packages/orq-rc/src/models/operations/deployments.ts +36 -36
  65. package/packages/orq-rc/src/models/operations/deploymentstream.ts +55 -38
  66. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  70. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  72. package/packages/orq-rc/src/models/operations/index.ts +1 -0
  73. package/packages/orq-rc/src/models/operations/invokeeval.ts +2062 -0
  74. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  77. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  81. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  84. package/packages/orq-rc/src/models/operations/runagent.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/streamrunagent.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  89. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  92. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  93. package/packages/orq-rc/src/sdk/evals.ts +15 -0
  94. package/src/lib/config.ts +2 -2
  95. package/src/mcp-server/mcp-server.ts +1 -1
  96. package/src/mcp-server/server.ts +1 -1
  97. package/src/models/operations/createbudget.ts +2 -2
  98. package/src/models/operations/createcontact.ts +2 -2
  99. package/src/models/operations/createdataset.ts +2 -2
  100. package/src/models/operations/createdatasetitem.ts +8 -8
  101. package/src/models/operations/createdatasource.ts +2 -2
  102. package/src/models/operations/createeval.ts +28 -28
  103. package/src/models/operations/createtool.ts +12 -12
  104. package/src/models/operations/fileget.ts +2 -2
  105. package/src/models/operations/filelist.ts +2 -2
  106. package/src/models/operations/fileupload.ts +2 -2
  107. package/src/models/operations/getalltools.ts +12 -12
  108. package/src/models/operations/getbudget.ts +2 -2
  109. package/src/models/operations/getevals.ts +28 -28
  110. package/src/models/operations/listbudgets.ts +2 -2
  111. package/src/models/operations/listcontacts.ts +2 -2
  112. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  113. package/src/models/operations/listdatasets.ts +2 -2
  114. package/src/models/operations/listdatasources.ts +2 -2
  115. package/src/models/operations/retrievecontact.ts +2 -2
  116. package/src/models/operations/retrievedatapoint.ts +8 -8
  117. package/src/models/operations/retrievedataset.ts +2 -2
  118. package/src/models/operations/retrievedatasource.ts +2 -2
  119. package/src/models/operations/retrievetool.ts +12 -12
  120. package/src/models/operations/runagent.ts +2 -2
  121. package/src/models/operations/streamrunagent.ts +2 -2
  122. package/src/models/operations/updatebudget.ts +2 -2
  123. package/src/models/operations/updatecontact.ts +2 -2
  124. package/src/models/operations/updatedatapoint.ts +8 -8
  125. package/src/models/operations/updatedataset.ts +2 -2
  126. package/src/models/operations/updatedatasource.ts +2 -2
  127. package/src/models/operations/updateeval.ts +28 -28
  128. package/src/models/operations/updatetool.ts +14 -14
@@ -12,25 +12,30 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The role of the messages author, in this case tool.
14
14
  */
15
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole = {
16
- Tool: "tool",
17
- } as const;
15
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole =
16
+ {
17
+ Tool: "tool",
18
+ } as const;
18
19
  /**
19
20
  * The role of the messages author, in this case tool.
20
21
  */
21
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRole =
22
- ClosedEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole>;
22
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole =
23
+ ClosedEnum<
24
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole
25
+ >;
23
26
 
24
27
  /**
25
28
  * The contents of the tool message.
26
29
  */
27
- export type DeploymentGetConfigPrefixMessagesContent = string | Array<string>;
30
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
31
+ | string
32
+ | Array<string>;
28
33
 
29
34
  export type ToolMessage = {
30
35
  /**
31
36
  * The role of the messages author, in this case tool.
32
37
  */
33
- role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole;
38
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole;
34
39
  /**
35
40
  * The contents of the tool message.
36
41
  */
@@ -44,21 +49,23 @@ export type ToolMessage = {
44
49
  /**
45
50
  * The type of the content part.
46
51
  */
47
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
48
- Refusal: "refusal",
49
- } as const;
52
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type =
53
+ {
54
+ Refusal: "refusal",
55
+ } as const;
50
56
  /**
51
57
  * The type of the content part.
52
58
  */
53
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
54
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
55
- >;
59
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type =
60
+ ClosedEnum<
61
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type
62
+ >;
56
63
 
57
64
  export type RefusalContentPart = {
58
65
  /**
59
66
  * The type of the content part.
60
67
  */
61
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
68
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type;
62
69
  /**
63
70
  * The refusal message generated by the model.
64
71
  */
@@ -68,15 +75,17 @@ export type RefusalContentPart = {
68
75
  /**
69
76
  * The type of the content part.
70
77
  */
71
- export const DeploymentGetConfig2DeploymentsRequestType = {
72
- Text: "text",
73
- } as const;
78
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
79
+ {
80
+ Text: "text",
81
+ } as const;
74
82
  /**
75
83
  * The type of the content part.
76
84
  */
77
- export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
78
- typeof DeploymentGetConfig2DeploymentsRequestType
79
- >;
85
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
86
+ ClosedEnum<
87
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
88
+ >;
80
89
 
81
90
  export const DeploymentGetConfigAnnotationsType = {
82
91
  FilePath: "file_path",
@@ -121,7 +130,7 @@ export type TextContentPart = {
121
130
  /**
122
131
  * The type of the content part.
123
132
  */
124
- type: DeploymentGetConfig2DeploymentsRequestType;
133
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType;
125
134
  /**
126
135
  * The text content.
127
136
  */
@@ -132,27 +141,26 @@ export type TextContentPart = {
132
141
  annotations?: Array<Annotations1 | Annotations2> | undefined;
133
142
  };
134
143
 
135
- export type Content2 = TextContentPart | RefusalContentPart;
144
+ export type DeploymentGetConfigContent2 = TextContentPart | RefusalContentPart;
136
145
 
137
146
  /**
138
147
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
139
148
  */
140
- export type PrefixMessagesContent =
149
+ export type DeploymentGetConfigPrefixMessagesContent =
141
150
  | string
142
151
  | Array<TextContentPart | RefusalContentPart>;
143
152
 
144
153
  /**
145
154
  * The role of the messages author, in this case `assistant`.
146
155
  */
147
- export const DeploymentGetConfigPrefixMessagesDeploymentsRole = {
156
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole = {
148
157
  Assistant: "assistant",
149
158
  } as const;
150
159
  /**
151
160
  * The role of the messages author, in this case `assistant`.
152
161
  */
153
- export type DeploymentGetConfigPrefixMessagesDeploymentsRole = ClosedEnum<
154
- typeof DeploymentGetConfigPrefixMessagesDeploymentsRole
155
- >;
162
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRole =
163
+ ClosedEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole>;
156
164
 
157
165
  /**
158
166
  * Data about a previous audio response from the model.
@@ -175,7 +183,7 @@ export const PrefixMessagesType = {
175
183
  */
176
184
  export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
177
185
 
178
- export type FunctionT = {
186
+ export type PrefixMessagesFunction = {
179
187
  /**
180
188
  * The name of the function to call.
181
189
  */
@@ -186,7 +194,7 @@ export type FunctionT = {
186
194
  arguments?: string | undefined;
187
195
  };
188
196
 
189
- export type ToolCalls = {
197
+ export type PrefixMessagesToolCalls = {
190
198
  /**
191
199
  * The ID of the tool call.
192
200
  */
@@ -195,7 +203,7 @@ export type ToolCalls = {
195
203
  * The type of the tool. Currently, only `function` is supported.
196
204
  */
197
205
  type: PrefixMessagesType;
198
- function: FunctionT;
206
+ function: PrefixMessagesFunction;
199
207
  };
200
208
 
201
209
  export type AssistantMessage = {
@@ -214,7 +222,7 @@ export type AssistantMessage = {
214
222
  /**
215
223
  * The role of the messages author, in this case `assistant`.
216
224
  */
217
- role: DeploymentGetConfigPrefixMessagesDeploymentsRole;
225
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole;
218
226
  /**
219
227
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
220
228
  */
@@ -226,7 +234,7 @@ export type AssistantMessage = {
226
234
  /**
227
235
  * The tool calls generated by the model, such as function calls.
228
236
  */
229
- toolCalls?: Array<ToolCalls> | undefined;
237
+ toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
230
238
  /**
231
239
  * Internal thought process of the model
232
240
  */
@@ -244,33 +252,33 @@ export type AssistantMessage = {
244
252
  /**
245
253
  * The role of the messages author, in this case `user`.
246
254
  */
247
- export const DeploymentGetConfigPrefixMessagesRole = {
255
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRole = {
248
256
  User: "user",
249
257
  } as const;
250
258
  /**
251
259
  * The role of the messages author, in this case `user`.
252
260
  */
253
- export type DeploymentGetConfigPrefixMessagesRole = ClosedEnum<
254
- typeof DeploymentGetConfigPrefixMessagesRole
261
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRole = ClosedEnum<
262
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRole
255
263
  >;
256
264
 
257
265
  /**
258
266
  * The type of the content part. Always `file`.
259
267
  */
260
- export const DeploymentGetConfig2DeploymentsType = {
268
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
261
269
  File: "file",
262
270
  } as const;
263
271
  /**
264
272
  * The type of the content part. Always `file`.
265
273
  */
266
- export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
267
- typeof DeploymentGetConfig2DeploymentsType
274
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
275
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
268
276
  >;
269
277
 
270
278
  /**
271
279
  * File data for the content part. Must contain either file_data or uri, but not both.
272
280
  */
273
- export type FileT = {
281
+ export type TwoFile = {
274
282
  /**
275
283
  * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
276
284
  */
@@ -293,18 +301,18 @@ export type Four = {
293
301
  /**
294
302
  * The type of the content part. Always `file`.
295
303
  */
296
- type: DeploymentGetConfig2DeploymentsType;
304
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
297
305
  /**
298
306
  * File data for the content part. Must contain either file_data or uri, but not both.
299
307
  */
300
- file: FileT;
308
+ file: TwoFile;
301
309
  };
302
310
 
303
- export const DeploymentGetConfig2Type = {
311
+ export const DeploymentGetConfig2DeploymentsRequestType = {
304
312
  InputAudio: "input_audio",
305
313
  } as const;
306
- export type DeploymentGetConfig2Type = ClosedEnum<
307
- typeof DeploymentGetConfig2Type
314
+ export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
315
+ typeof DeploymentGetConfig2DeploymentsRequestType
308
316
  >;
309
317
 
310
318
  /**
@@ -330,15 +338,17 @@ export type InputAudio = {
330
338
  format: Format;
331
339
  };
332
340
 
333
- export type Three = {
334
- type: DeploymentGetConfig2Type;
341
+ export type Two3 = {
342
+ type: DeploymentGetConfig2DeploymentsRequestType;
335
343
  inputAudio: InputAudio;
336
344
  };
337
345
 
338
- export const TwoType = {
346
+ export const DeploymentGetConfig2DeploymentsType = {
339
347
  ImageUrl: "image_url",
340
348
  } as const;
341
- export type TwoType = ClosedEnum<typeof TwoType>;
349
+ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
350
+ typeof DeploymentGetConfig2DeploymentsType
351
+ >;
342
352
 
343
353
  /**
344
354
  * Specifies the detail level of the image.
@@ -353,7 +363,7 @@ export const Detail = {
353
363
  */
354
364
  export type Detail = ClosedEnum<typeof Detail>;
355
365
 
356
- export type ImageUrl = {
366
+ export type TwoImageUrl = {
357
367
  /**
358
368
  * Either a URL of the image or the base64 encoded image data.
359
369
  */
@@ -364,33 +374,37 @@ export type ImageUrl = {
364
374
  detail?: Detail | undefined;
365
375
  };
366
376
 
367
- export type Two2 = {
368
- type: TwoType;
369
- imageUrl: ImageUrl;
377
+ export type DeploymentGetConfig22 = {
378
+ type: DeploymentGetConfig2DeploymentsType;
379
+ imageUrl: TwoImageUrl;
370
380
  };
371
381
 
372
- export const Type = {
382
+ export const DeploymentGetConfig2Type = {
373
383
  Text: "text",
374
384
  } as const;
375
- export type Type = ClosedEnum<typeof Type>;
385
+ export type DeploymentGetConfig2Type = ClosedEnum<
386
+ typeof DeploymentGetConfig2Type
387
+ >;
376
388
 
377
- export type One = {
378
- type: Type;
389
+ export type Two1 = {
390
+ type: DeploymentGetConfig2Type;
379
391
  text: string;
380
392
  };
381
393
 
382
- export type Two = One | Two2 | Three | Four;
394
+ export type Content2 = Two1 | DeploymentGetConfig22 | Two3 | Four;
383
395
 
384
396
  /**
385
397
  * The contents of the user message.
386
398
  */
387
- export type Content = string | Array<One | Two2 | Three | Four>;
399
+ export type PrefixMessagesContent =
400
+ | string
401
+ | Array<Two1 | DeploymentGetConfig22 | Two3 | Four>;
388
402
 
389
403
  export type UserMessage = {
390
404
  /**
391
405
  * The role of the messages author, in this case `user`.
392
406
  */
393
- role: DeploymentGetConfigPrefixMessagesRole;
407
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRole;
394
408
  /**
395
409
  * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
396
410
  */
@@ -398,25 +412,27 @@ export type UserMessage = {
398
412
  /**
399
413
  * The contents of the user message.
400
414
  */
401
- content: string | Array<One | Two2 | Three | Four>;
415
+ content: string | Array<Two1 | DeploymentGetConfig22 | Two3 | Four>;
402
416
  };
403
417
 
404
418
  /**
405
419
  * The role of the messages author, in this case `system`.
406
420
  */
407
- export const PrefixMessagesRole = {
421
+ export const DeploymentGetConfigPrefixMessagesRole = {
408
422
  System: "system",
409
423
  } as const;
410
424
  /**
411
425
  * The role of the messages author, in this case `system`.
412
426
  */
413
- export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
427
+ export type DeploymentGetConfigPrefixMessagesRole = ClosedEnum<
428
+ typeof DeploymentGetConfigPrefixMessagesRole
429
+ >;
414
430
 
415
431
  export type SystemMessage = {
416
432
  /**
417
433
  * The role of the messages author, in this case `system`.
418
434
  */
419
- role: PrefixMessagesRole;
435
+ role: DeploymentGetConfigPrefixMessagesRole;
420
436
  /**
421
437
  * The contents of the system message.
422
438
  */
@@ -430,19 +446,19 @@ export type SystemMessage = {
430
446
  /**
431
447
  * The role of the messages author, in this case `developer`.
432
448
  */
433
- export const Role = {
449
+ export const PrefixMessagesRole = {
434
450
  Developer: "developer",
435
451
  } as const;
436
452
  /**
437
453
  * The role of the messages author, in this case `developer`.
438
454
  */
439
- export type Role = ClosedEnum<typeof Role>;
455
+ export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
440
456
 
441
457
  export type DeveloperMessage = {
442
458
  /**
443
459
  * The role of the messages author, in this case `developer`.
444
460
  */
445
- role: Role;
461
+ role: PrefixMessagesRole;
446
462
  /**
447
463
  * The contents of the developer message.
448
464
  */
@@ -596,7 +612,7 @@ export type TwoTextContentPart = {
596
612
  | undefined;
597
613
  };
598
614
 
599
- export type DeploymentGetConfigContentDeployments2 =
615
+ export type DeploymentGetConfigContentDeploymentsRequest2 =
600
616
  | TwoTextContentPart
601
617
  | TwoRefusalContentPart;
602
618
 
@@ -738,7 +754,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Ty
738
754
  /**
739
755
  * File data for the content part. Must contain either file_data or uri, but not both.
740
756
  */
741
- export type TwoFile = {
757
+ export type DeploymentGetConfig2File = {
742
758
  /**
743
759
  * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
744
760
  */
@@ -765,7 +781,7 @@ export type Two4 = {
765
781
  /**
766
782
  * File data for the content part. Must contain either file_data or uri, but not both.
767
783
  */
768
- file: TwoFile;
784
+ file: DeploymentGetConfig2File;
769
785
  };
770
786
 
771
787
  export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType =
@@ -800,7 +816,7 @@ export type TwoInputAudio = {
800
816
  format: TwoFormat;
801
817
  };
802
818
 
803
- export type Two3 = {
819
+ export type DeploymentGetConfig23 = {
804
820
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType;
805
821
  inputAudio: TwoInputAudio;
806
822
  };
@@ -826,7 +842,7 @@ export const TwoDetail = {
826
842
  */
827
843
  export type TwoDetail = ClosedEnum<typeof TwoDetail>;
828
844
 
829
- export type TwoImageUrl = {
845
+ export type DeploymentGetConfig2ImageUrl = {
830
846
  /**
831
847
  * Either a URL of the image or the base64 encoded image data.
832
848
  */
@@ -837,9 +853,9 @@ export type TwoImageUrl = {
837
853
  detail?: TwoDetail | undefined;
838
854
  };
839
855
 
840
- export type DeploymentGetConfig22 = {
856
+ export type DeploymentGetConfig2Deployments2 = {
841
857
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
842
- imageUrl: TwoImageUrl;
858
+ imageUrl: DeploymentGetConfig2ImageUrl;
843
859
  };
844
860
 
845
861
  export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType = {
@@ -850,15 +866,15 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType =
850
866
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
851
867
  >;
852
868
 
853
- export type Two1 = {
869
+ export type DeploymentGetConfig21 = {
854
870
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType;
855
871
  text: string;
856
872
  };
857
873
 
858
- export type DeploymentGetConfigContent2 =
859
- | Two1
860
- | DeploymentGetConfig22
861
- | Two3
874
+ export type DeploymentGetConfigContentDeployments2 =
875
+ | DeploymentGetConfig21
876
+ | DeploymentGetConfig2Deployments2
877
+ | DeploymentGetConfig23
862
878
  | Two4;
863
879
 
864
880
  /**
@@ -866,7 +882,12 @@ export type DeploymentGetConfigContent2 =
866
882
  */
867
883
  export type MessagesContent =
868
884
  | string
869
- | Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
885
+ | Array<
886
+ | DeploymentGetConfig21
887
+ | DeploymentGetConfig2Deployments2
888
+ | DeploymentGetConfig23
889
+ | Two4
890
+ >;
870
891
 
871
892
  export type MessagesUserMessage = {
872
893
  /**
@@ -880,7 +901,14 @@ export type MessagesUserMessage = {
880
901
  /**
881
902
  * The contents of the user message.
882
903
  */
883
- content: string | Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
904
+ content:
905
+ | string
906
+ | Array<
907
+ | DeploymentGetConfig21
908
+ | DeploymentGetConfig2Deployments2
909
+ | DeploymentGetConfig23
910
+ | Two4
911
+ >;
884
912
  };
885
913
 
886
914
  /**
@@ -937,7 +965,7 @@ export type MessagesDeveloperMessage = {
937
965
  name?: string | undefined;
938
966
  };
939
967
 
940
- export type Messages =
968
+ export type DeploymentGetConfigMessages =
941
969
  | MessagesToolMessage
942
970
  | MessagesDeveloperMessage
943
971
  | MessagesSystemMessage
@@ -1406,7 +1434,7 @@ export type DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType =
1406
1434
  typeof DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType
1407
1435
  >;
1408
1436
 
1409
- export type DeploymentGetConfig2File = {
1437
+ export type DeploymentGetConfig2DeploymentsFile = {
1410
1438
  /**
1411
1439
  * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1412
1440
  */
@@ -1425,12 +1453,12 @@ export type DeploymentGetConfig2File = {
1425
1453
  filename?: string | undefined;
1426
1454
  };
1427
1455
 
1428
- export type DeploymentGetConfig23 = {
1456
+ export type DeploymentGetConfig2Deployments3 = {
1429
1457
  /**
1430
1458
  * The type of the content part. Always `file`.
1431
1459
  */
1432
1460
  type: DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType;
1433
- file: DeploymentGetConfig2File;
1461
+ file: DeploymentGetConfig2DeploymentsFile;
1434
1462
  };
1435
1463
 
1436
1464
  export const DeploymentGetConfig2DeploymentsResponse200Type = {
@@ -1440,7 +1468,7 @@ export type DeploymentGetConfig2DeploymentsResponse200Type = ClosedEnum<
1440
1468
  typeof DeploymentGetConfig2DeploymentsResponse200Type
1441
1469
  >;
1442
1470
 
1443
- export type DeploymentGetConfig2ImageUrl = {
1471
+ export type DeploymentGetConfig2DeploymentsImageUrl = {
1444
1472
  /**
1445
1473
  * The orq.ai id of the image
1446
1474
  */
@@ -1458,9 +1486,9 @@ export type DeploymentGetConfig2ImageUrl = {
1458
1486
  /**
1459
1487
  * The image part of the prompt message. Only supported with vision models.
1460
1488
  */
1461
- export type DeploymentGetConfig2Deployments2 = {
1489
+ export type DeploymentGetConfig2DeploymentsResponse2 = {
1462
1490
  type: DeploymentGetConfig2DeploymentsResponse200Type;
1463
- imageUrl: DeploymentGetConfig2ImageUrl;
1491
+ imageUrl: DeploymentGetConfig2DeploymentsImageUrl;
1464
1492
  };
1465
1493
 
1466
1494
  export const DeploymentGetConfig2DeploymentsResponseType = {
@@ -1473,15 +1501,15 @@ export type DeploymentGetConfig2DeploymentsResponseType = ClosedEnum<
1473
1501
  /**
1474
1502
  * Text content part of a prompt message
1475
1503
  */
1476
- export type DeploymentGetConfig21 = {
1504
+ export type DeploymentGetConfig2Deployments1 = {
1477
1505
  type: DeploymentGetConfig2DeploymentsResponseType;
1478
1506
  text: string;
1479
1507
  };
1480
1508
 
1481
1509
  export type DeploymentGetConfigContentDeploymentsResponse2 =
1482
- | DeploymentGetConfig21
1483
- | DeploymentGetConfig2Deployments2
1484
- | DeploymentGetConfig23;
1510
+ | DeploymentGetConfig2Deployments1
1511
+ | DeploymentGetConfig2DeploymentsResponse2
1512
+ | DeploymentGetConfig2Deployments3;
1485
1513
 
1486
1514
  /**
1487
1515
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
@@ -1489,9 +1517,9 @@ export type DeploymentGetConfigContentDeploymentsResponse2 =
1489
1517
  export type DeploymentGetConfigContent =
1490
1518
  | string
1491
1519
  | Array<
1492
- | DeploymentGetConfig21
1493
- | DeploymentGetConfig2Deployments2
1494
- | DeploymentGetConfig23
1520
+ | DeploymentGetConfig2Deployments1
1521
+ | DeploymentGetConfig2DeploymentsResponse2
1522
+ | DeploymentGetConfig2Deployments3
1495
1523
  >;
1496
1524
 
1497
1525
  export const DeploymentGetConfigDeploymentsResponseType = {
@@ -1516,7 +1544,7 @@ export type DeploymentGetConfigToolCalls = {
1516
1544
  function: DeploymentGetConfigDeploymentsFunction;
1517
1545
  };
1518
1546
 
1519
- export type DeploymentGetConfigMessages = {
1547
+ export type DeploymentGetConfigDeploymentsMessages = {
1520
1548
  /**
1521
1549
  * The role of the prompt message
1522
1550
  */
@@ -1527,9 +1555,9 @@ export type DeploymentGetConfigMessages = {
1527
1555
  content:
1528
1556
  | string
1529
1557
  | Array<
1530
- | DeploymentGetConfig21
1531
- | DeploymentGetConfig2Deployments2
1532
- | DeploymentGetConfig23
1558
+ | DeploymentGetConfig2Deployments1
1559
+ | DeploymentGetConfig2DeploymentsResponse2
1560
+ | DeploymentGetConfig2Deployments3
1533
1561
  >
1534
1562
  | null;
1535
1563
  toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
@@ -1880,7 +1908,7 @@ export type DeploymentGetConfigResponseBody = {
1880
1908
  * The current version of the deployment
1881
1909
  */
1882
1910
  version: string;
1883
- messages: Array<DeploymentGetConfigMessages>;
1911
+ messages: Array<DeploymentGetConfigDeploymentsMessages>;
1884
1912
  /**
1885
1913
  * Model Parameters: Not all parameters apply to every model
1886
1914
  */
@@ -1892,57 +1920,62 @@ export type DeploymentGetConfigResponseBody = {
1892
1920
  };
1893
1921
 
1894
1922
  /** @internal */
1895
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema:
1923
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema:
1896
1924
  z.ZodNativeEnum<
1897
- typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
1898
- > = z.nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRequestRole);
1925
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole
1926
+ > = z.nativeEnum(
1927
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole,
1928
+ );
1899
1929
  /** @internal */
1900
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema:
1930
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema:
1901
1931
  z.ZodNativeEnum<
1902
- typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
1903
- > = DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema;
1932
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole
1933
+ > =
1934
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
1904
1935
 
1905
1936
  /** @internal */
1906
- export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
1907
- DeploymentGetConfigPrefixMessagesContent,
1908
- z.ZodTypeDef,
1909
- unknown
1910
- > = z.union([z.string(), z.array(z.string())]);
1937
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema:
1938
+ z.ZodType<
1939
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
1940
+ z.ZodTypeDef,
1941
+ unknown
1942
+ > = z.union([z.string(), z.array(z.string())]);
1911
1943
  /** @internal */
1912
- export type DeploymentGetConfigPrefixMessagesContent$Outbound =
1944
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
1913
1945
  | string
1914
1946
  | Array<string>;
1915
1947
 
1916
1948
  /** @internal */
1917
- export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
1918
- DeploymentGetConfigPrefixMessagesContent$Outbound,
1919
- z.ZodTypeDef,
1920
- DeploymentGetConfigPrefixMessagesContent
1921
- > = z.union([z.string(), z.array(z.string())]);
1949
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
1950
+ z.ZodType<
1951
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
1952
+ z.ZodTypeDef,
1953
+ DeploymentGetConfigPrefixMessagesDeploymentsContent
1954
+ > = z.union([z.string(), z.array(z.string())]);
1922
1955
 
1923
- export function deploymentGetConfigPrefixMessagesContentToJSON(
1924
- deploymentGetConfigPrefixMessagesContent:
1925
- DeploymentGetConfigPrefixMessagesContent,
1956
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
1957
+ deploymentGetConfigPrefixMessagesDeploymentsContent:
1958
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
1926
1959
  ): string {
1927
1960
  return JSON.stringify(
1928
- DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
1929
- deploymentGetConfigPrefixMessagesContent,
1961
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
1962
+ deploymentGetConfigPrefixMessagesDeploymentsContent,
1930
1963
  ),
1931
1964
  );
1932
1965
  }
1933
- export function deploymentGetConfigPrefixMessagesContentFromJSON(
1966
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON(
1934
1967
  jsonString: string,
1935
1968
  ): SafeParseResult<
1936
- DeploymentGetConfigPrefixMessagesContent,
1969
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
1937
1970
  SDKValidationError
1938
1971
  > {
1939
1972
  return safeParse(
1940
1973
  jsonString,
1941
1974
  (x) =>
1942
- DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
1975
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema.parse(
1943
1976
  JSON.parse(x),
1944
1977
  ),
1945
- `Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
1978
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsContent' from JSON`,
1946
1979
  );
1947
1980
  }
1948
1981
 
@@ -1952,7 +1985,8 @@ export const ToolMessage$inboundSchema: z.ZodType<
1952
1985
  z.ZodTypeDef,
1953
1986
  unknown
1954
1987
  > = z.object({
1955
- role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema,
1988
+ role:
1989
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
1956
1990
  content: z.union([z.string(), z.array(z.string())]),
1957
1991
  tool_call_id: z.string(),
1958
1992
  }).transform((v) => {
@@ -1973,7 +2007,8 @@ export const ToolMessage$outboundSchema: z.ZodType<
1973
2007
  z.ZodTypeDef,
1974
2008
  ToolMessage
1975
2009
  > = z.object({
1976
- role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema,
2010
+ role:
2011
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
1977
2012
  content: z.union([z.string(), z.array(z.string())]),
1978
2013
  toolCallId: z.string(),
1979
2014
  }).transform((v) => {
@@ -1996,15 +2031,18 @@ export function toolMessageFromJSON(
1996
2031
  }
1997
2032
 
1998
2033
  /** @internal */
1999
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
2034
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema:
2000
2035
  z.ZodNativeEnum<
2001
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2002
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2036
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type
2037
+ > = z.nativeEnum(
2038
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type,
2039
+ );
2003
2040
  /** @internal */
2004
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2041
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema:
2005
2042
  z.ZodNativeEnum<
2006
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2007
- > = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
2043
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type
2044
+ > =
2045
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema;
2008
2046
 
2009
2047
  /** @internal */
2010
2048
  export const RefusalContentPart$inboundSchema: z.ZodType<
@@ -2012,7 +2050,8 @@ export const RefusalContentPart$inboundSchema: z.ZodType<
2012
2050
  z.ZodTypeDef,
2013
2051
  unknown
2014
2052
  > = z.object({
2015
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
2053
+ type:
2054
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema,
2016
2055
  refusal: z.string(),
2017
2056
  });
2018
2057
  /** @internal */
@@ -2027,7 +2066,8 @@ export const RefusalContentPart$outboundSchema: z.ZodType<
2027
2066
  z.ZodTypeDef,
2028
2067
  RefusalContentPart
2029
2068
  > = z.object({
2030
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2069
+ type:
2070
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema,
2031
2071
  refusal: z.string(),
2032
2072
  });
2033
2073
 
@@ -2049,13 +2089,18 @@ export function refusalContentPartFromJSON(
2049
2089
  }
2050
2090
 
2051
2091
  /** @internal */
2052
- export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
2053
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
2054
- .nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
2092
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema:
2093
+ z.ZodNativeEnum<
2094
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
2095
+ > = z.nativeEnum(
2096
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType,
2097
+ );
2055
2098
  /** @internal */
2056
- export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
2057
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
2058
- DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
2099
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema:
2100
+ z.ZodNativeEnum<
2101
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
2102
+ > =
2103
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
2059
2104
 
2060
2105
  /** @internal */
2061
2106
  export const DeploymentGetConfigAnnotationsType$inboundSchema: z.ZodNativeEnum<
@@ -2325,7 +2370,8 @@ export const TextContentPart$inboundSchema: z.ZodType<
2325
2370
  z.ZodTypeDef,
2326
2371
  unknown
2327
2372
  > = z.object({
2328
- type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
2373
+ type:
2374
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
2329
2375
  text: z.string(),
2330
2376
  annotations: z.array(
2331
2377
  z.union([
@@ -2349,7 +2395,8 @@ export const TextContentPart$outboundSchema: z.ZodType<
2349
2395
  z.ZodTypeDef,
2350
2396
  TextContentPart
2351
2397
  > = z.object({
2352
- type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
2398
+ type:
2399
+ DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
2353
2400
  text: z.string(),
2354
2401
  annotations: z.array(
2355
2402
  z.union([
@@ -2375,8 +2422,8 @@ export function textContentPartFromJSON(
2375
2422
  }
2376
2423
 
2377
2424
  /** @internal */
2378
- export const Content2$inboundSchema: z.ZodType<
2379
- Content2,
2425
+ export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
2426
+ DeploymentGetConfigContent2,
2380
2427
  z.ZodTypeDef,
2381
2428
  unknown
2382
2429
  > = z.union([
@@ -2384,36 +2431,42 @@ export const Content2$inboundSchema: z.ZodType<
2384
2431
  z.lazy(() => RefusalContentPart$inboundSchema),
2385
2432
  ]);
2386
2433
  /** @internal */
2387
- export type Content2$Outbound =
2434
+ export type DeploymentGetConfigContent2$Outbound =
2388
2435
  | TextContentPart$Outbound
2389
2436
  | RefusalContentPart$Outbound;
2390
2437
 
2391
2438
  /** @internal */
2392
- export const Content2$outboundSchema: z.ZodType<
2393
- Content2$Outbound,
2439
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
2440
+ DeploymentGetConfigContent2$Outbound,
2394
2441
  z.ZodTypeDef,
2395
- Content2
2442
+ DeploymentGetConfigContent2
2396
2443
  > = z.union([
2397
2444
  z.lazy(() => TextContentPart$outboundSchema),
2398
2445
  z.lazy(() => RefusalContentPart$outboundSchema),
2399
2446
  ]);
2400
2447
 
2401
- export function content2ToJSON(content2: Content2): string {
2402
- return JSON.stringify(Content2$outboundSchema.parse(content2));
2448
+ export function deploymentGetConfigContent2ToJSON(
2449
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
2450
+ ): string {
2451
+ return JSON.stringify(
2452
+ DeploymentGetConfigContent2$outboundSchema.parse(
2453
+ deploymentGetConfigContent2,
2454
+ ),
2455
+ );
2403
2456
  }
2404
- export function content2FromJSON(
2457
+ export function deploymentGetConfigContent2FromJSON(
2405
2458
  jsonString: string,
2406
- ): SafeParseResult<Content2, SDKValidationError> {
2459
+ ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
2407
2460
  return safeParse(
2408
2461
  jsonString,
2409
- (x) => Content2$inboundSchema.parse(JSON.parse(x)),
2410
- `Failed to parse 'Content2' from JSON`,
2462
+ (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
2463
+ `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
2411
2464
  );
2412
2465
  }
2413
2466
 
2414
2467
  /** @internal */
2415
- export const PrefixMessagesContent$inboundSchema: z.ZodType<
2416
- PrefixMessagesContent,
2468
+ export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
2469
+ DeploymentGetConfigPrefixMessagesContent,
2417
2470
  z.ZodTypeDef,
2418
2471
  unknown
2419
2472
  > = z.union([
@@ -2424,15 +2477,15 @@ export const PrefixMessagesContent$inboundSchema: z.ZodType<
2424
2477
  ])),
2425
2478
  ]);
2426
2479
  /** @internal */
2427
- export type PrefixMessagesContent$Outbound =
2480
+ export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2428
2481
  | string
2429
2482
  | Array<TextContentPart$Outbound | RefusalContentPart$Outbound>;
2430
2483
 
2431
2484
  /** @internal */
2432
- export const PrefixMessagesContent$outboundSchema: z.ZodType<
2433
- PrefixMessagesContent$Outbound,
2485
+ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2486
+ DeploymentGetConfigPrefixMessagesContent$Outbound,
2434
2487
  z.ZodTypeDef,
2435
- PrefixMessagesContent
2488
+ DeploymentGetConfigPrefixMessagesContent
2436
2489
  > = z.union([
2437
2490
  z.string(),
2438
2491
  z.array(z.union([
@@ -2441,31 +2494,42 @@ export const PrefixMessagesContent$outboundSchema: z.ZodType<
2441
2494
  ])),
2442
2495
  ]);
2443
2496
 
2444
- export function prefixMessagesContentToJSON(
2445
- prefixMessagesContent: PrefixMessagesContent,
2497
+ export function deploymentGetConfigPrefixMessagesContentToJSON(
2498
+ deploymentGetConfigPrefixMessagesContent:
2499
+ DeploymentGetConfigPrefixMessagesContent,
2446
2500
  ): string {
2447
2501
  return JSON.stringify(
2448
- PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2502
+ DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2503
+ deploymentGetConfigPrefixMessagesContent,
2504
+ ),
2449
2505
  );
2450
2506
  }
2451
- export function prefixMessagesContentFromJSON(
2507
+ export function deploymentGetConfigPrefixMessagesContentFromJSON(
2452
2508
  jsonString: string,
2453
- ): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
2509
+ ): SafeParseResult<
2510
+ DeploymentGetConfigPrefixMessagesContent,
2511
+ SDKValidationError
2512
+ > {
2454
2513
  return safeParse(
2455
2514
  jsonString,
2456
- (x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
2457
- `Failed to parse 'PrefixMessagesContent' from JSON`,
2515
+ (x) =>
2516
+ DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
2517
+ JSON.parse(x),
2518
+ ),
2519
+ `Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
2458
2520
  );
2459
2521
  }
2460
2522
 
2461
2523
  /** @internal */
2462
- export const DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema:
2463
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> = z
2464
- .nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRole);
2524
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema:
2525
+ z.ZodNativeEnum<
2526
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
2527
+ > = z.nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRequestRole);
2465
2528
  /** @internal */
2466
- export const DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema:
2467
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> =
2468
- DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema;
2529
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema:
2530
+ z.ZodNativeEnum<
2531
+ typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
2532
+ > = DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema;
2469
2533
 
2470
2534
  /** @internal */
2471
2535
  export const Audio$inboundSchema: z.ZodType<Audio, z.ZodTypeDef, unknown> = z
@@ -2509,8 +2573,8 @@ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
2509
2573
  > = PrefixMessagesType$inboundSchema;
2510
2574
 
2511
2575
  /** @internal */
2512
- export const FunctionT$inboundSchema: z.ZodType<
2513
- FunctionT,
2576
+ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
2577
+ PrefixMessagesFunction,
2514
2578
  z.ZodTypeDef,
2515
2579
  unknown
2516
2580
  > = z.object({
@@ -2518,72 +2582,80 @@ export const FunctionT$inboundSchema: z.ZodType<
2518
2582
  arguments: z.string().optional(),
2519
2583
  });
2520
2584
  /** @internal */
2521
- export type FunctionT$Outbound = {
2585
+ export type PrefixMessagesFunction$Outbound = {
2522
2586
  name?: string | undefined;
2523
2587
  arguments?: string | undefined;
2524
2588
  };
2525
2589
 
2526
2590
  /** @internal */
2527
- export const FunctionT$outboundSchema: z.ZodType<
2528
- FunctionT$Outbound,
2591
+ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
2592
+ PrefixMessagesFunction$Outbound,
2529
2593
  z.ZodTypeDef,
2530
- FunctionT
2594
+ PrefixMessagesFunction
2531
2595
  > = z.object({
2532
2596
  name: z.string().optional(),
2533
2597
  arguments: z.string().optional(),
2534
2598
  });
2535
2599
 
2536
- export function functionToJSON(functionT: FunctionT): string {
2537
- return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
2600
+ export function prefixMessagesFunctionToJSON(
2601
+ prefixMessagesFunction: PrefixMessagesFunction,
2602
+ ): string {
2603
+ return JSON.stringify(
2604
+ PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
2605
+ );
2538
2606
  }
2539
- export function functionFromJSON(
2607
+ export function prefixMessagesFunctionFromJSON(
2540
2608
  jsonString: string,
2541
- ): SafeParseResult<FunctionT, SDKValidationError> {
2609
+ ): SafeParseResult<PrefixMessagesFunction, SDKValidationError> {
2542
2610
  return safeParse(
2543
2611
  jsonString,
2544
- (x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
2545
- `Failed to parse 'FunctionT' from JSON`,
2612
+ (x) => PrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2613
+ `Failed to parse 'PrefixMessagesFunction' from JSON`,
2546
2614
  );
2547
2615
  }
2548
2616
 
2549
2617
  /** @internal */
2550
- export const ToolCalls$inboundSchema: z.ZodType<
2551
- ToolCalls,
2618
+ export const PrefixMessagesToolCalls$inboundSchema: z.ZodType<
2619
+ PrefixMessagesToolCalls,
2552
2620
  z.ZodTypeDef,
2553
2621
  unknown
2554
2622
  > = z.object({
2555
2623
  id: z.string(),
2556
2624
  type: PrefixMessagesType$inboundSchema,
2557
- function: z.lazy(() => FunctionT$inboundSchema),
2625
+ function: z.lazy(() => PrefixMessagesFunction$inboundSchema),
2558
2626
  });
2559
2627
  /** @internal */
2560
- export type ToolCalls$Outbound = {
2628
+ export type PrefixMessagesToolCalls$Outbound = {
2561
2629
  id: string;
2562
2630
  type: string;
2563
- function: FunctionT$Outbound;
2631
+ function: PrefixMessagesFunction$Outbound;
2564
2632
  };
2565
2633
 
2566
2634
  /** @internal */
2567
- export const ToolCalls$outboundSchema: z.ZodType<
2568
- ToolCalls$Outbound,
2635
+ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
2636
+ PrefixMessagesToolCalls$Outbound,
2569
2637
  z.ZodTypeDef,
2570
- ToolCalls
2638
+ PrefixMessagesToolCalls
2571
2639
  > = z.object({
2572
2640
  id: z.string(),
2573
2641
  type: PrefixMessagesType$outboundSchema,
2574
- function: z.lazy(() => FunctionT$outboundSchema),
2642
+ function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
2575
2643
  });
2576
2644
 
2577
- export function toolCallsToJSON(toolCalls: ToolCalls): string {
2578
- return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
2645
+ export function prefixMessagesToolCallsToJSON(
2646
+ prefixMessagesToolCalls: PrefixMessagesToolCalls,
2647
+ ): string {
2648
+ return JSON.stringify(
2649
+ PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
2650
+ );
2579
2651
  }
2580
- export function toolCallsFromJSON(
2652
+ export function prefixMessagesToolCallsFromJSON(
2581
2653
  jsonString: string,
2582
- ): SafeParseResult<ToolCalls, SDKValidationError> {
2654
+ ): SafeParseResult<PrefixMessagesToolCalls, SDKValidationError> {
2583
2655
  return safeParse(
2584
2656
  jsonString,
2585
- (x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
2586
- `Failed to parse 'ToolCalls' from JSON`,
2657
+ (x) => PrefixMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2658
+ `Failed to parse 'PrefixMessagesToolCalls' from JSON`,
2587
2659
  );
2588
2660
  }
2589
2661
 
@@ -2603,10 +2675,11 @@ export const AssistantMessage$inboundSchema: z.ZodType<
2603
2675
  ]),
2604
2676
  ).optional(),
2605
2677
  refusal: z.nullable(z.string()).optional(),
2606
- role: DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema,
2678
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema,
2607
2679
  name: z.string().optional(),
2608
2680
  audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
2609
- tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
2681
+ tool_calls: z.array(z.lazy(() => PrefixMessagesToolCalls$inboundSchema))
2682
+ .optional(),
2610
2683
  reasoning: z.string().optional(),
2611
2684
  reasoning_signature: z.string().optional(),
2612
2685
  redacted_reasoning: z.string().optional(),
@@ -2628,7 +2701,7 @@ export type AssistantMessage$Outbound = {
2628
2701
  role: string;
2629
2702
  name?: string | undefined;
2630
2703
  audio?: Audio$Outbound | null | undefined;
2631
- tool_calls?: Array<ToolCalls$Outbound> | undefined;
2704
+ tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
2632
2705
  reasoning?: string | undefined;
2633
2706
  reasoning_signature?: string | undefined;
2634
2707
  redacted_reasoning?: string | undefined;
@@ -2652,10 +2725,11 @@ export const AssistantMessage$outboundSchema: z.ZodType<
2652
2725
  ]),
2653
2726
  ).optional(),
2654
2727
  refusal: z.nullable(z.string()).optional(),
2655
- role: DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema,
2728
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema,
2656
2729
  name: z.string().optional(),
2657
2730
  audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
2658
- toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
2731
+ toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
2732
+ .optional(),
2659
2733
  reasoning: z.string().optional(),
2660
2734
  reasoningSignature: z.string().optional(),
2661
2735
  redactedReasoning: z.string().optional(),
@@ -2685,27 +2759,28 @@ export function assistantMessageFromJSON(
2685
2759
  }
2686
2760
 
2687
2761
  /** @internal */
2688
- export const DeploymentGetConfigPrefixMessagesRole$inboundSchema:
2689
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> = z.nativeEnum(
2690
- DeploymentGetConfigPrefixMessagesRole,
2691
- );
2762
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema:
2763
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> = z
2764
+ .nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRole);
2692
2765
  /** @internal */
2693
- export const DeploymentGetConfigPrefixMessagesRole$outboundSchema:
2694
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> =
2695
- DeploymentGetConfigPrefixMessagesRole$inboundSchema;
2766
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema:
2767
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> =
2768
+ DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema;
2696
2769
 
2697
2770
  /** @internal */
2698
- export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
2699
- typeof DeploymentGetConfig2DeploymentsType
2700
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
2771
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
2772
+ z.ZodNativeEnum<
2773
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2774
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2701
2775
  /** @internal */
2702
- export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2703
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
2704
- DeploymentGetConfig2DeploymentsType$inboundSchema;
2776
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2777
+ z.ZodNativeEnum<
2778
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2779
+ > = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
2705
2780
 
2706
2781
  /** @internal */
2707
- export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
2708
- .object({
2782
+ export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
2783
+ z.object({
2709
2784
  file_data: z.string().optional(),
2710
2785
  uri: z.string().optional(),
2711
2786
  mimeType: z.string().optional(),
@@ -2716,7 +2791,7 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
2716
2791
  });
2717
2792
  });
2718
2793
  /** @internal */
2719
- export type FileT$Outbound = {
2794
+ export type TwoFile$Outbound = {
2720
2795
  file_data?: string | undefined;
2721
2796
  uri?: string | undefined;
2722
2797
  mimeType?: string | undefined;
@@ -2724,10 +2799,10 @@ export type FileT$Outbound = {
2724
2799
  };
2725
2800
 
2726
2801
  /** @internal */
2727
- export const FileT$outboundSchema: z.ZodType<
2728
- FileT$Outbound,
2802
+ export const TwoFile$outboundSchema: z.ZodType<
2803
+ TwoFile$Outbound,
2729
2804
  z.ZodTypeDef,
2730
- FileT
2805
+ TwoFile
2731
2806
  > = z.object({
2732
2807
  fileData: z.string().optional(),
2733
2808
  uri: z.string().optional(),
@@ -2739,36 +2814,36 @@ export const FileT$outboundSchema: z.ZodType<
2739
2814
  });
2740
2815
  });
2741
2816
 
2742
- export function fileToJSON(fileT: FileT): string {
2743
- return JSON.stringify(FileT$outboundSchema.parse(fileT));
2817
+ export function twoFileToJSON(twoFile: TwoFile): string {
2818
+ return JSON.stringify(TwoFile$outboundSchema.parse(twoFile));
2744
2819
  }
2745
- export function fileFromJSON(
2820
+ export function twoFileFromJSON(
2746
2821
  jsonString: string,
2747
- ): SafeParseResult<FileT, SDKValidationError> {
2822
+ ): SafeParseResult<TwoFile, SDKValidationError> {
2748
2823
  return safeParse(
2749
2824
  jsonString,
2750
- (x) => FileT$inboundSchema.parse(JSON.parse(x)),
2751
- `Failed to parse 'FileT' from JSON`,
2825
+ (x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
2826
+ `Failed to parse 'TwoFile' from JSON`,
2752
2827
  );
2753
2828
  }
2754
2829
 
2755
2830
  /** @internal */
2756
2831
  export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
2757
2832
  .object({
2758
- type: DeploymentGetConfig2DeploymentsType$inboundSchema,
2759
- file: z.lazy(() => FileT$inboundSchema),
2833
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
2834
+ file: z.lazy(() => TwoFile$inboundSchema),
2760
2835
  });
2761
2836
  /** @internal */
2762
2837
  export type Four$Outbound = {
2763
2838
  type: string;
2764
- file: FileT$Outbound;
2839
+ file: TwoFile$Outbound;
2765
2840
  };
2766
2841
 
2767
2842
  /** @internal */
2768
2843
  export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
2769
2844
  z.object({
2770
- type: DeploymentGetConfig2DeploymentsType$outboundSchema,
2771
- file: z.lazy(() => FileT$outboundSchema),
2845
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2846
+ file: z.lazy(() => TwoFile$outboundSchema),
2772
2847
  });
2773
2848
 
2774
2849
  export function fourToJSON(four: Four): string {
@@ -2785,13 +2860,13 @@ export function fourFromJSON(
2785
2860
  }
2786
2861
 
2787
2862
  /** @internal */
2788
- export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
2789
- typeof DeploymentGetConfig2Type
2790
- > = z.nativeEnum(DeploymentGetConfig2Type);
2863
+ export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
2864
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
2865
+ .nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
2791
2866
  /** @internal */
2792
- export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
2793
- typeof DeploymentGetConfig2Type
2794
- > = DeploymentGetConfig2Type$inboundSchema;
2867
+ export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
2868
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
2869
+ DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
2795
2870
 
2796
2871
  /** @internal */
2797
2872
  export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
@@ -2839,9 +2914,9 @@ export function inputAudioFromJSON(
2839
2914
  }
2840
2915
 
2841
2916
  /** @internal */
2842
- export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
2917
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
2843
2918
  .object({
2844
- type: DeploymentGetConfig2Type$inboundSchema,
2919
+ type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
2845
2920
  input_audio: z.lazy(() => InputAudio$inboundSchema),
2846
2921
  }).transform((v) => {
2847
2922
  return remap$(v, {
@@ -2849,44 +2924,43 @@ export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
2849
2924
  });
2850
2925
  });
2851
2926
  /** @internal */
2852
- export type Three$Outbound = {
2927
+ export type Two3$Outbound = {
2853
2928
  type: string;
2854
2929
  input_audio: InputAudio$Outbound;
2855
2930
  };
2856
2931
 
2857
2932
  /** @internal */
2858
- export const Three$outboundSchema: z.ZodType<
2859
- Three$Outbound,
2860
- z.ZodTypeDef,
2861
- Three
2862
- > = z.object({
2863
- type: DeploymentGetConfig2Type$outboundSchema,
2864
- inputAudio: z.lazy(() => InputAudio$outboundSchema),
2865
- }).transform((v) => {
2866
- return remap$(v, {
2867
- inputAudio: "input_audio",
2933
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
2934
+ z.object({
2935
+ type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
2936
+ inputAudio: z.lazy(() => InputAudio$outboundSchema),
2937
+ }).transform((v) => {
2938
+ return remap$(v, {
2939
+ inputAudio: "input_audio",
2940
+ });
2868
2941
  });
2869
- });
2870
2942
 
2871
- export function threeToJSON(three: Three): string {
2872
- return JSON.stringify(Three$outboundSchema.parse(three));
2943
+ export function two3ToJSON(two3: Two3): string {
2944
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
2873
2945
  }
2874
- export function threeFromJSON(
2946
+ export function two3FromJSON(
2875
2947
  jsonString: string,
2876
- ): SafeParseResult<Three, SDKValidationError> {
2948
+ ): SafeParseResult<Two3, SDKValidationError> {
2877
2949
  return safeParse(
2878
2950
  jsonString,
2879
- (x) => Three$inboundSchema.parse(JSON.parse(x)),
2880
- `Failed to parse 'Three' from JSON`,
2951
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
2952
+ `Failed to parse 'Two3' from JSON`,
2881
2953
  );
2882
2954
  }
2883
2955
 
2884
2956
  /** @internal */
2885
- export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
2886
- .nativeEnum(TwoType);
2957
+ export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
2958
+ typeof DeploymentGetConfig2DeploymentsType
2959
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
2887
2960
  /** @internal */
2888
- export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
2889
- TwoType$inboundSchema;
2961
+ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2962
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
2963
+ DeploymentGetConfig2DeploymentsType$inboundSchema;
2890
2964
 
2891
2965
  /** @internal */
2892
2966
  export const Detail$inboundSchema: z.ZodNativeEnum<typeof Detail> = z
@@ -2896,8 +2970,8 @@ export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> =
2896
2970
  Detail$inboundSchema;
2897
2971
 
2898
2972
  /** @internal */
2899
- export const ImageUrl$inboundSchema: z.ZodType<
2900
- ImageUrl,
2973
+ export const TwoImageUrl$inboundSchema: z.ZodType<
2974
+ TwoImageUrl,
2901
2975
  z.ZodTypeDef,
2902
2976
  unknown
2903
2977
  > = z.object({
@@ -2905,193 +2979,221 @@ export const ImageUrl$inboundSchema: z.ZodType<
2905
2979
  detail: Detail$inboundSchema.optional(),
2906
2980
  });
2907
2981
  /** @internal */
2908
- export type ImageUrl$Outbound = {
2982
+ export type TwoImageUrl$Outbound = {
2909
2983
  url: string;
2910
2984
  detail?: string | undefined;
2911
2985
  };
2912
2986
 
2913
2987
  /** @internal */
2914
- export const ImageUrl$outboundSchema: z.ZodType<
2915
- ImageUrl$Outbound,
2988
+ export const TwoImageUrl$outboundSchema: z.ZodType<
2989
+ TwoImageUrl$Outbound,
2916
2990
  z.ZodTypeDef,
2917
- ImageUrl
2991
+ TwoImageUrl
2918
2992
  > = z.object({
2919
2993
  url: z.string(),
2920
2994
  detail: Detail$outboundSchema.optional(),
2921
2995
  });
2922
2996
 
2923
- export function imageUrlToJSON(imageUrl: ImageUrl): string {
2924
- return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
2997
+ export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
2998
+ return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
2925
2999
  }
2926
- export function imageUrlFromJSON(
3000
+ export function twoImageUrlFromJSON(
2927
3001
  jsonString: string,
2928
- ): SafeParseResult<ImageUrl, SDKValidationError> {
3002
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
2929
3003
  return safeParse(
2930
3004
  jsonString,
2931
- (x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
2932
- `Failed to parse 'ImageUrl' from JSON`,
3005
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
3006
+ `Failed to parse 'TwoImageUrl' from JSON`,
2933
3007
  );
2934
3008
  }
2935
3009
 
2936
3010
  /** @internal */
2937
- export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
2938
- .object({
2939
- type: TwoType$inboundSchema,
2940
- image_url: z.lazy(() => ImageUrl$inboundSchema),
2941
- }).transform((v) => {
2942
- return remap$(v, {
2943
- "image_url": "imageUrl",
2944
- });
3011
+ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
3012
+ DeploymentGetConfig22,
3013
+ z.ZodTypeDef,
3014
+ unknown
3015
+ > = z.object({
3016
+ type: DeploymentGetConfig2DeploymentsType$inboundSchema,
3017
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
3018
+ }).transform((v) => {
3019
+ return remap$(v, {
3020
+ "image_url": "imageUrl",
2945
3021
  });
3022
+ });
2946
3023
  /** @internal */
2947
- export type Two2$Outbound = {
3024
+ export type DeploymentGetConfig22$Outbound = {
2948
3025
  type: string;
2949
- image_url: ImageUrl$Outbound;
3026
+ image_url: TwoImageUrl$Outbound;
2950
3027
  };
2951
3028
 
2952
3029
  /** @internal */
2953
- export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
2954
- z.object({
2955
- type: TwoType$outboundSchema,
2956
- imageUrl: z.lazy(() => ImageUrl$outboundSchema),
2957
- }).transform((v) => {
2958
- return remap$(v, {
2959
- imageUrl: "image_url",
2960
- });
3030
+ export const DeploymentGetConfig22$outboundSchema: z.ZodType<
3031
+ DeploymentGetConfig22$Outbound,
3032
+ z.ZodTypeDef,
3033
+ DeploymentGetConfig22
3034
+ > = z.object({
3035
+ type: DeploymentGetConfig2DeploymentsType$outboundSchema,
3036
+ imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
3037
+ }).transform((v) => {
3038
+ return remap$(v, {
3039
+ imageUrl: "image_url",
2961
3040
  });
3041
+ });
2962
3042
 
2963
- export function two2ToJSON(two2: Two2): string {
2964
- return JSON.stringify(Two2$outboundSchema.parse(two2));
3043
+ export function deploymentGetConfig22ToJSON(
3044
+ deploymentGetConfig22: DeploymentGetConfig22,
3045
+ ): string {
3046
+ return JSON.stringify(
3047
+ DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
3048
+ );
2965
3049
  }
2966
- export function two2FromJSON(
3050
+ export function deploymentGetConfig22FromJSON(
2967
3051
  jsonString: string,
2968
- ): SafeParseResult<Two2, SDKValidationError> {
3052
+ ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
2969
3053
  return safeParse(
2970
3054
  jsonString,
2971
- (x) => Two2$inboundSchema.parse(JSON.parse(x)),
2972
- `Failed to parse 'Two2' from JSON`,
3055
+ (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
3056
+ `Failed to parse 'DeploymentGetConfig22' from JSON`,
2973
3057
  );
2974
3058
  }
2975
3059
 
2976
3060
  /** @internal */
2977
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
2978
- Type,
2979
- );
3061
+ export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
3062
+ typeof DeploymentGetConfig2Type
3063
+ > = z.nativeEnum(DeploymentGetConfig2Type);
2980
3064
  /** @internal */
2981
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
2982
- Type$inboundSchema;
3065
+ export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
3066
+ typeof DeploymentGetConfig2Type
3067
+ > = DeploymentGetConfig2Type$inboundSchema;
2983
3068
 
2984
3069
  /** @internal */
2985
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
3070
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
2986
3071
  .object({
2987
- type: Type$inboundSchema,
3072
+ type: DeploymentGetConfig2Type$inboundSchema,
2988
3073
  text: z.string(),
2989
3074
  });
2990
3075
  /** @internal */
2991
- export type One$Outbound = {
3076
+ export type Two1$Outbound = {
2992
3077
  type: string;
2993
3078
  text: string;
2994
3079
  };
2995
3080
 
2996
3081
  /** @internal */
2997
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
2998
- .object({
2999
- type: Type$outboundSchema,
3082
+ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
3083
+ z.object({
3084
+ type: DeploymentGetConfig2Type$outboundSchema,
3000
3085
  text: z.string(),
3001
3086
  });
3002
3087
 
3003
- export function oneToJSON(one: One): string {
3004
- return JSON.stringify(One$outboundSchema.parse(one));
3088
+ export function two1ToJSON(two1: Two1): string {
3089
+ return JSON.stringify(Two1$outboundSchema.parse(two1));
3005
3090
  }
3006
- export function oneFromJSON(
3091
+ export function two1FromJSON(
3007
3092
  jsonString: string,
3008
- ): SafeParseResult<One, SDKValidationError> {
3093
+ ): SafeParseResult<Two1, SDKValidationError> {
3009
3094
  return safeParse(
3010
3095
  jsonString,
3011
- (x) => One$inboundSchema.parse(JSON.parse(x)),
3012
- `Failed to parse 'One' from JSON`,
3096
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
3097
+ `Failed to parse 'Two1' from JSON`,
3013
3098
  );
3014
3099
  }
3015
3100
 
3016
3101
  /** @internal */
3017
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
3018
- [
3019
- z.lazy(() => One$inboundSchema),
3020
- z.lazy(() => Two2$inboundSchema),
3021
- z.lazy(() => Three$inboundSchema),
3022
- z.lazy(() => Four$inboundSchema),
3023
- ],
3024
- );
3102
+ export const Content2$inboundSchema: z.ZodType<
3103
+ Content2,
3104
+ z.ZodTypeDef,
3105
+ unknown
3106
+ > = z.union([
3107
+ z.lazy(() => Two1$inboundSchema),
3108
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
3109
+ z.lazy(() => Two3$inboundSchema),
3110
+ z.lazy(() => Four$inboundSchema),
3111
+ ]);
3025
3112
  /** @internal */
3026
- export type Two$Outbound =
3027
- | One$Outbound
3028
- | Two2$Outbound
3029
- | Three$Outbound
3113
+ export type Content2$Outbound =
3114
+ | Two1$Outbound
3115
+ | DeploymentGetConfig22$Outbound
3116
+ | Two3$Outbound
3030
3117
  | Four$Outbound;
3031
3118
 
3032
3119
  /** @internal */
3033
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
3034
- .union([
3035
- z.lazy(() => One$outboundSchema),
3036
- z.lazy(() => Two2$outboundSchema),
3037
- z.lazy(() => Three$outboundSchema),
3038
- z.lazy(() => Four$outboundSchema),
3039
- ]);
3120
+ export const Content2$outboundSchema: z.ZodType<
3121
+ Content2$Outbound,
3122
+ z.ZodTypeDef,
3123
+ Content2
3124
+ > = z.union([
3125
+ z.lazy(() => Two1$outboundSchema),
3126
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
3127
+ z.lazy(() => Two3$outboundSchema),
3128
+ z.lazy(() => Four$outboundSchema),
3129
+ ]);
3040
3130
 
3041
- export function twoToJSON(two: Two): string {
3042
- return JSON.stringify(Two$outboundSchema.parse(two));
3131
+ export function content2ToJSON(content2: Content2): string {
3132
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
3043
3133
  }
3044
- export function twoFromJSON(
3134
+ export function content2FromJSON(
3045
3135
  jsonString: string,
3046
- ): SafeParseResult<Two, SDKValidationError> {
3136
+ ): SafeParseResult<Content2, SDKValidationError> {
3047
3137
  return safeParse(
3048
3138
  jsonString,
3049
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
3050
- `Failed to parse 'Two' from JSON`,
3139
+ (x) => Content2$inboundSchema.parse(JSON.parse(x)),
3140
+ `Failed to parse 'Content2' from JSON`,
3051
3141
  );
3052
3142
  }
3053
3143
 
3054
3144
  /** @internal */
3055
- export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
3056
- z.union([
3057
- z.string(),
3058
- z.array(z.union([
3059
- z.lazy(() => One$inboundSchema),
3060
- z.lazy(() => Two2$inboundSchema),
3061
- z.lazy(() => Three$inboundSchema),
3062
- z.lazy(() => Four$inboundSchema),
3063
- ])),
3064
- ]);
3145
+ export const PrefixMessagesContent$inboundSchema: z.ZodType<
3146
+ PrefixMessagesContent,
3147
+ z.ZodTypeDef,
3148
+ unknown
3149
+ > = z.union([
3150
+ z.string(),
3151
+ z.array(z.union([
3152
+ z.lazy(() => Two1$inboundSchema),
3153
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
3154
+ z.lazy(() => Two3$inboundSchema),
3155
+ z.lazy(() => Four$inboundSchema),
3156
+ ])),
3157
+ ]);
3065
3158
  /** @internal */
3066
- export type Content$Outbound =
3159
+ export type PrefixMessagesContent$Outbound =
3067
3160
  | string
3068
- | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
3161
+ | Array<
3162
+ | Two1$Outbound
3163
+ | DeploymentGetConfig22$Outbound
3164
+ | Two3$Outbound
3165
+ | Four$Outbound
3166
+ >;
3069
3167
 
3070
3168
  /** @internal */
3071
- export const Content$outboundSchema: z.ZodType<
3072
- Content$Outbound,
3169
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
3170
+ PrefixMessagesContent$Outbound,
3073
3171
  z.ZodTypeDef,
3074
- Content
3172
+ PrefixMessagesContent
3075
3173
  > = z.union([
3076
3174
  z.string(),
3077
3175
  z.array(z.union([
3078
- z.lazy(() => One$outboundSchema),
3079
- z.lazy(() => Two2$outboundSchema),
3080
- z.lazy(() => Three$outboundSchema),
3176
+ z.lazy(() => Two1$outboundSchema),
3177
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
3178
+ z.lazy(() => Two3$outboundSchema),
3081
3179
  z.lazy(() => Four$outboundSchema),
3082
3180
  ])),
3083
3181
  ]);
3084
3182
 
3085
- export function contentToJSON(content: Content): string {
3086
- return JSON.stringify(Content$outboundSchema.parse(content));
3183
+ export function prefixMessagesContentToJSON(
3184
+ prefixMessagesContent: PrefixMessagesContent,
3185
+ ): string {
3186
+ return JSON.stringify(
3187
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
3188
+ );
3087
3189
  }
3088
- export function contentFromJSON(
3190
+ export function prefixMessagesContentFromJSON(
3089
3191
  jsonString: string,
3090
- ): SafeParseResult<Content, SDKValidationError> {
3192
+ ): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
3091
3193
  return safeParse(
3092
3194
  jsonString,
3093
- (x) => Content$inboundSchema.parse(JSON.parse(x)),
3094
- `Failed to parse 'Content' from JSON`,
3195
+ (x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
3196
+ `Failed to parse 'PrefixMessagesContent' from JSON`,
3095
3197
  );
3096
3198
  }
3097
3199
 
@@ -3101,14 +3203,14 @@ export const UserMessage$inboundSchema: z.ZodType<
3101
3203
  z.ZodTypeDef,
3102
3204
  unknown
3103
3205
  > = z.object({
3104
- role: DeploymentGetConfigPrefixMessagesRole$inboundSchema,
3206
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema,
3105
3207
  name: z.string().optional(),
3106
3208
  content: z.union([
3107
3209
  z.string(),
3108
3210
  z.array(z.union([
3109
- z.lazy(() => One$inboundSchema),
3110
- z.lazy(() => Two2$inboundSchema),
3111
- z.lazy(() => Three$inboundSchema),
3211
+ z.lazy(() => Two1$inboundSchema),
3212
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
3213
+ z.lazy(() => Two3$inboundSchema),
3112
3214
  z.lazy(() => Four$inboundSchema),
3113
3215
  ])),
3114
3216
  ]),
@@ -3119,7 +3221,12 @@ export type UserMessage$Outbound = {
3119
3221
  name?: string | undefined;
3120
3222
  content:
3121
3223
  | string
3122
- | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
3224
+ | Array<
3225
+ | Two1$Outbound
3226
+ | DeploymentGetConfig22$Outbound
3227
+ | Two3$Outbound
3228
+ | Four$Outbound
3229
+ >;
3123
3230
  };
3124
3231
 
3125
3232
  /** @internal */
@@ -3128,14 +3235,14 @@ export const UserMessage$outboundSchema: z.ZodType<
3128
3235
  z.ZodTypeDef,
3129
3236
  UserMessage
3130
3237
  > = z.object({
3131
- role: DeploymentGetConfigPrefixMessagesRole$outboundSchema,
3238
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema,
3132
3239
  name: z.string().optional(),
3133
3240
  content: z.union([
3134
3241
  z.string(),
3135
3242
  z.array(z.union([
3136
- z.lazy(() => One$outboundSchema),
3137
- z.lazy(() => Two2$outboundSchema),
3138
- z.lazy(() => Three$outboundSchema),
3243
+ z.lazy(() => Two1$outboundSchema),
3244
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
3245
+ z.lazy(() => Two3$outboundSchema),
3139
3246
  z.lazy(() => Four$outboundSchema),
3140
3247
  ])),
3141
3248
  ]),
@@ -3155,13 +3262,14 @@ export function userMessageFromJSON(
3155
3262
  }
3156
3263
 
3157
3264
  /** @internal */
3158
- export const PrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
3159
- typeof PrefixMessagesRole
3160
- > = z.nativeEnum(PrefixMessagesRole);
3265
+ export const DeploymentGetConfigPrefixMessagesRole$inboundSchema:
3266
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> = z.nativeEnum(
3267
+ DeploymentGetConfigPrefixMessagesRole,
3268
+ );
3161
3269
  /** @internal */
3162
- export const PrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
3163
- typeof PrefixMessagesRole
3164
- > = PrefixMessagesRole$inboundSchema;
3270
+ export const DeploymentGetConfigPrefixMessagesRole$outboundSchema:
3271
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> =
3272
+ DeploymentGetConfigPrefixMessagesRole$inboundSchema;
3165
3273
 
3166
3274
  /** @internal */
3167
3275
  export const SystemMessage$inboundSchema: z.ZodType<
@@ -3169,7 +3277,7 @@ export const SystemMessage$inboundSchema: z.ZodType<
3169
3277
  z.ZodTypeDef,
3170
3278
  unknown
3171
3279
  > = z.object({
3172
- role: PrefixMessagesRole$inboundSchema,
3280
+ role: DeploymentGetConfigPrefixMessagesRole$inboundSchema,
3173
3281
  content: z.string(),
3174
3282
  name: z.string().optional(),
3175
3283
  });
@@ -3186,7 +3294,7 @@ export const SystemMessage$outboundSchema: z.ZodType<
3186
3294
  z.ZodTypeDef,
3187
3295
  SystemMessage
3188
3296
  > = z.object({
3189
- role: PrefixMessagesRole$outboundSchema,
3297
+ role: DeploymentGetConfigPrefixMessagesRole$outboundSchema,
3190
3298
  content: z.string(),
3191
3299
  name: z.string().optional(),
3192
3300
  });
@@ -3205,12 +3313,13 @@ export function systemMessageFromJSON(
3205
3313
  }
3206
3314
 
3207
3315
  /** @internal */
3208
- export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
3209
- Role,
3210
- );
3316
+ export const PrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
3317
+ typeof PrefixMessagesRole
3318
+ > = z.nativeEnum(PrefixMessagesRole);
3211
3319
  /** @internal */
3212
- export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
3213
- Role$inboundSchema;
3320
+ export const PrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
3321
+ typeof PrefixMessagesRole
3322
+ > = PrefixMessagesRole$inboundSchema;
3214
3323
 
3215
3324
  /** @internal */
3216
3325
  export const DeveloperMessage$inboundSchema: z.ZodType<
@@ -3218,7 +3327,7 @@ export const DeveloperMessage$inboundSchema: z.ZodType<
3218
3327
  z.ZodTypeDef,
3219
3328
  unknown
3220
3329
  > = z.object({
3221
- role: Role$inboundSchema,
3330
+ role: PrefixMessagesRole$inboundSchema,
3222
3331
  content: z.string(),
3223
3332
  name: z.string().optional(),
3224
3333
  });
@@ -3235,7 +3344,7 @@ export const DeveloperMessage$outboundSchema: z.ZodType<
3235
3344
  z.ZodTypeDef,
3236
3345
  DeveloperMessage
3237
3346
  > = z.object({
3238
- role: Role$outboundSchema,
3347
+ role: PrefixMessagesRole$outboundSchema,
3239
3348
  content: z.string(),
3240
3349
  name: z.string().optional(),
3241
3350
  });
@@ -3835,47 +3944,54 @@ export function twoTextContentPartFromJSON(
3835
3944
  }
3836
3945
 
3837
3946
  /** @internal */
3838
- export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
3839
- DeploymentGetConfigContentDeployments2,
3840
- z.ZodTypeDef,
3841
- unknown
3842
- > = z.union([
3843
- z.lazy(() => TwoTextContentPart$inboundSchema),
3844
- z.lazy(() => TwoRefusalContentPart$inboundSchema),
3845
- ]);
3947
+ export const DeploymentGetConfigContentDeploymentsRequest2$inboundSchema:
3948
+ z.ZodType<
3949
+ DeploymentGetConfigContentDeploymentsRequest2,
3950
+ z.ZodTypeDef,
3951
+ unknown
3952
+ > = z.union([
3953
+ z.lazy(() => TwoTextContentPart$inboundSchema),
3954
+ z.lazy(() => TwoRefusalContentPart$inboundSchema),
3955
+ ]);
3846
3956
  /** @internal */
3847
- export type DeploymentGetConfigContentDeployments2$Outbound =
3957
+ export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
3848
3958
  | TwoTextContentPart$Outbound
3849
3959
  | TwoRefusalContentPart$Outbound;
3850
3960
 
3851
3961
  /** @internal */
3852
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
3853
- DeploymentGetConfigContentDeployments2$Outbound,
3854
- z.ZodTypeDef,
3855
- DeploymentGetConfigContentDeployments2
3856
- > = z.union([
3857
- z.lazy(() => TwoTextContentPart$outboundSchema),
3858
- z.lazy(() => TwoRefusalContentPart$outboundSchema),
3859
- ]);
3962
+ export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
3963
+ z.ZodType<
3964
+ DeploymentGetConfigContentDeploymentsRequest2$Outbound,
3965
+ z.ZodTypeDef,
3966
+ DeploymentGetConfigContentDeploymentsRequest2
3967
+ > = z.union([
3968
+ z.lazy(() => TwoTextContentPart$outboundSchema),
3969
+ z.lazy(() => TwoRefusalContentPart$outboundSchema),
3970
+ ]);
3860
3971
 
3861
- export function deploymentGetConfigContentDeployments2ToJSON(
3862
- deploymentGetConfigContentDeployments2:
3863
- DeploymentGetConfigContentDeployments2,
3972
+ export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
3973
+ deploymentGetConfigContentDeploymentsRequest2:
3974
+ DeploymentGetConfigContentDeploymentsRequest2,
3864
3975
  ): string {
3865
3976
  return JSON.stringify(
3866
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
3867
- deploymentGetConfigContentDeployments2,
3977
+ DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
3978
+ deploymentGetConfigContentDeploymentsRequest2,
3868
3979
  ),
3869
3980
  );
3870
3981
  }
3871
- export function deploymentGetConfigContentDeployments2FromJSON(
3982
+ export function deploymentGetConfigContentDeploymentsRequest2FromJSON(
3872
3983
  jsonString: string,
3873
- ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
3984
+ ): SafeParseResult<
3985
+ DeploymentGetConfigContentDeploymentsRequest2,
3986
+ SDKValidationError
3987
+ > {
3874
3988
  return safeParse(
3875
3989
  jsonString,
3876
3990
  (x) =>
3877
- DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
3878
- `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
3991
+ DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(
3992
+ JSON.parse(x),
3993
+ ),
3994
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
3879
3995
  );
3880
3996
  }
3881
3997
 
@@ -4190,19 +4306,22 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4T
4190
4306
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
4191
4307
 
4192
4308
  /** @internal */
4193
- export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
4194
- z.object({
4195
- file_data: z.string().optional(),
4196
- uri: z.string().optional(),
4197
- mimeType: z.string().optional(),
4198
- filename: z.string().optional(),
4199
- }).transform((v) => {
4200
- return remap$(v, {
4201
- "file_data": "fileData",
4202
- });
4309
+ export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
4310
+ DeploymentGetConfig2File,
4311
+ z.ZodTypeDef,
4312
+ unknown
4313
+ > = z.object({
4314
+ file_data: z.string().optional(),
4315
+ uri: z.string().optional(),
4316
+ mimeType: z.string().optional(),
4317
+ filename: z.string().optional(),
4318
+ }).transform((v) => {
4319
+ return remap$(v, {
4320
+ "file_data": "fileData",
4203
4321
  });
4322
+ });
4204
4323
  /** @internal */
4205
- export type TwoFile$Outbound = {
4324
+ export type DeploymentGetConfig2File$Outbound = {
4206
4325
  file_data?: string | undefined;
4207
4326
  uri?: string | undefined;
4208
4327
  mimeType?: string | undefined;
@@ -4210,10 +4329,10 @@ export type TwoFile$Outbound = {
4210
4329
  };
4211
4330
 
4212
4331
  /** @internal */
4213
- export const TwoFile$outboundSchema: z.ZodType<
4214
- TwoFile$Outbound,
4332
+ export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
4333
+ DeploymentGetConfig2File$Outbound,
4215
4334
  z.ZodTypeDef,
4216
- TwoFile
4335
+ DeploymentGetConfig2File
4217
4336
  > = z.object({
4218
4337
  fileData: z.string().optional(),
4219
4338
  uri: z.string().optional(),
@@ -4225,16 +4344,20 @@ export const TwoFile$outboundSchema: z.ZodType<
4225
4344
  });
4226
4345
  });
4227
4346
 
4228
- export function twoFileToJSON(twoFile: TwoFile): string {
4229
- return JSON.stringify(TwoFile$outboundSchema.parse(twoFile));
4347
+ export function deploymentGetConfig2FileToJSON(
4348
+ deploymentGetConfig2File: DeploymentGetConfig2File,
4349
+ ): string {
4350
+ return JSON.stringify(
4351
+ DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
4352
+ );
4230
4353
  }
4231
- export function twoFileFromJSON(
4354
+ export function deploymentGetConfig2FileFromJSON(
4232
4355
  jsonString: string,
4233
- ): SafeParseResult<TwoFile, SDKValidationError> {
4356
+ ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
4234
4357
  return safeParse(
4235
4358
  jsonString,
4236
- (x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
4237
- `Failed to parse 'TwoFile' from JSON`,
4359
+ (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
4360
+ `Failed to parse 'DeploymentGetConfig2File' from JSON`,
4238
4361
  );
4239
4362
  }
4240
4363
 
@@ -4243,12 +4366,12 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
4243
4366
  .object({
4244
4367
  type:
4245
4368
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
4246
- file: z.lazy(() => TwoFile$inboundSchema),
4369
+ file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
4247
4370
  });
4248
4371
  /** @internal */
4249
4372
  export type Two4$Outbound = {
4250
4373
  type: string;
4251
- file: TwoFile$Outbound;
4374
+ file: DeploymentGetConfig2File$Outbound;
4252
4375
  };
4253
4376
 
4254
4377
  /** @internal */
@@ -4256,7 +4379,7 @@ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
4256
4379
  z.object({
4257
4380
  type:
4258
4381
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
4259
- file: z.lazy(() => TwoFile$outboundSchema),
4382
+ file: z.lazy(() => DeploymentGetConfig2File$outboundSchema),
4260
4383
  });
4261
4384
 
4262
4385
  export function two4ToJSON(two4: Two4): string {
@@ -4332,44 +4455,54 @@ export function twoInputAudioFromJSON(
4332
4455
  }
4333
4456
 
4334
4457
  /** @internal */
4335
- export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
4336
- .object({
4337
- type:
4338
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
4339
- input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
4340
- }).transform((v) => {
4341
- return remap$(v, {
4342
- "input_audio": "inputAudio",
4343
- });
4458
+ export const DeploymentGetConfig23$inboundSchema: z.ZodType<
4459
+ DeploymentGetConfig23,
4460
+ z.ZodTypeDef,
4461
+ unknown
4462
+ > = z.object({
4463
+ type:
4464
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
4465
+ input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
4466
+ }).transform((v) => {
4467
+ return remap$(v, {
4468
+ "input_audio": "inputAudio",
4344
4469
  });
4470
+ });
4345
4471
  /** @internal */
4346
- export type Two3$Outbound = {
4472
+ export type DeploymentGetConfig23$Outbound = {
4347
4473
  type: string;
4348
4474
  input_audio: TwoInputAudio$Outbound;
4349
4475
  };
4350
4476
 
4351
4477
  /** @internal */
4352
- export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
4353
- z.object({
4354
- type:
4355
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
4356
- inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
4357
- }).transform((v) => {
4358
- return remap$(v, {
4359
- inputAudio: "input_audio",
4360
- });
4478
+ export const DeploymentGetConfig23$outboundSchema: z.ZodType<
4479
+ DeploymentGetConfig23$Outbound,
4480
+ z.ZodTypeDef,
4481
+ DeploymentGetConfig23
4482
+ > = z.object({
4483
+ type:
4484
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
4485
+ inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
4486
+ }).transform((v) => {
4487
+ return remap$(v, {
4488
+ inputAudio: "input_audio",
4361
4489
  });
4490
+ });
4362
4491
 
4363
- export function two3ToJSON(two3: Two3): string {
4364
- return JSON.stringify(Two3$outboundSchema.parse(two3));
4492
+ export function deploymentGetConfig23ToJSON(
4493
+ deploymentGetConfig23: DeploymentGetConfig23,
4494
+ ): string {
4495
+ return JSON.stringify(
4496
+ DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
4497
+ );
4365
4498
  }
4366
- export function two3FromJSON(
4499
+ export function deploymentGetConfig23FromJSON(
4367
4500
  jsonString: string,
4368
- ): SafeParseResult<Two3, SDKValidationError> {
4501
+ ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
4369
4502
  return safeParse(
4370
4503
  jsonString,
4371
- (x) => Two3$inboundSchema.parse(JSON.parse(x)),
4372
- `Failed to parse 'Two3' from JSON`,
4504
+ (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
4505
+ `Failed to parse 'DeploymentGetConfig23' from JSON`,
4373
4506
  );
4374
4507
  }
4375
4508
 
@@ -4395,8 +4528,8 @@ export const TwoDetail$outboundSchema: z.ZodNativeEnum<typeof TwoDetail> =
4395
4528
  TwoDetail$inboundSchema;
4396
4529
 
4397
4530
  /** @internal */
4398
- export const TwoImageUrl$inboundSchema: z.ZodType<
4399
- TwoImageUrl,
4531
+ export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
4532
+ DeploymentGetConfig2ImageUrl,
4400
4533
  z.ZodTypeDef,
4401
4534
  unknown
4402
4535
  > = z.object({
@@ -4404,83 +4537,91 @@ export const TwoImageUrl$inboundSchema: z.ZodType<
4404
4537
  detail: TwoDetail$inboundSchema.optional(),
4405
4538
  });
4406
4539
  /** @internal */
4407
- export type TwoImageUrl$Outbound = {
4540
+ export type DeploymentGetConfig2ImageUrl$Outbound = {
4408
4541
  url: string;
4409
4542
  detail?: string | undefined;
4410
4543
  };
4411
4544
 
4412
4545
  /** @internal */
4413
- export const TwoImageUrl$outboundSchema: z.ZodType<
4414
- TwoImageUrl$Outbound,
4546
+ export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
4547
+ DeploymentGetConfig2ImageUrl$Outbound,
4415
4548
  z.ZodTypeDef,
4416
- TwoImageUrl
4549
+ DeploymentGetConfig2ImageUrl
4417
4550
  > = z.object({
4418
4551
  url: z.string(),
4419
4552
  detail: TwoDetail$outboundSchema.optional(),
4420
4553
  });
4421
4554
 
4422
- export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
4423
- return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
4555
+ export function deploymentGetConfig2ImageUrlToJSON(
4556
+ deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl,
4557
+ ): string {
4558
+ return JSON.stringify(
4559
+ DeploymentGetConfig2ImageUrl$outboundSchema.parse(
4560
+ deploymentGetConfig2ImageUrl,
4561
+ ),
4562
+ );
4424
4563
  }
4425
- export function twoImageUrlFromJSON(
4564
+ export function deploymentGetConfig2ImageUrlFromJSON(
4426
4565
  jsonString: string,
4427
- ): SafeParseResult<TwoImageUrl, SDKValidationError> {
4566
+ ): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError> {
4428
4567
  return safeParse(
4429
4568
  jsonString,
4430
- (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
4431
- `Failed to parse 'TwoImageUrl' from JSON`,
4569
+ (x) => DeploymentGetConfig2ImageUrl$inboundSchema.parse(JSON.parse(x)),
4570
+ `Failed to parse 'DeploymentGetConfig2ImageUrl' from JSON`,
4432
4571
  );
4433
4572
  }
4434
4573
 
4435
4574
  /** @internal */
4436
- export const DeploymentGetConfig22$inboundSchema: z.ZodType<
4437
- DeploymentGetConfig22,
4575
+ export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
4576
+ DeploymentGetConfig2Deployments2,
4438
4577
  z.ZodTypeDef,
4439
4578
  unknown
4440
4579
  > = z.object({
4441
4580
  type:
4442
4581
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
4443
- image_url: z.lazy(() => TwoImageUrl$inboundSchema),
4582
+ image_url: z.lazy(() => DeploymentGetConfig2ImageUrl$inboundSchema),
4444
4583
  }).transform((v) => {
4445
4584
  return remap$(v, {
4446
4585
  "image_url": "imageUrl",
4447
4586
  });
4448
4587
  });
4449
4588
  /** @internal */
4450
- export type DeploymentGetConfig22$Outbound = {
4589
+ export type DeploymentGetConfig2Deployments2$Outbound = {
4451
4590
  type: string;
4452
- image_url: TwoImageUrl$Outbound;
4591
+ image_url: DeploymentGetConfig2ImageUrl$Outbound;
4453
4592
  };
4454
4593
 
4455
4594
  /** @internal */
4456
- export const DeploymentGetConfig22$outboundSchema: z.ZodType<
4457
- DeploymentGetConfig22$Outbound,
4595
+ export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
4596
+ DeploymentGetConfig2Deployments2$Outbound,
4458
4597
  z.ZodTypeDef,
4459
- DeploymentGetConfig22
4598
+ DeploymentGetConfig2Deployments2
4460
4599
  > = z.object({
4461
4600
  type:
4462
4601
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
4463
- imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
4602
+ imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
4464
4603
  }).transform((v) => {
4465
4604
  return remap$(v, {
4466
4605
  imageUrl: "image_url",
4467
4606
  });
4468
4607
  });
4469
4608
 
4470
- export function deploymentGetConfig22ToJSON(
4471
- deploymentGetConfig22: DeploymentGetConfig22,
4609
+ export function deploymentGetConfig2Deployments2ToJSON(
4610
+ deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
4472
4611
  ): string {
4473
4612
  return JSON.stringify(
4474
- DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
4613
+ DeploymentGetConfig2Deployments2$outboundSchema.parse(
4614
+ deploymentGetConfig2Deployments2,
4615
+ ),
4475
4616
  );
4476
4617
  }
4477
- export function deploymentGetConfig22FromJSON(
4618
+ export function deploymentGetConfig2Deployments2FromJSON(
4478
4619
  jsonString: string,
4479
- ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
4620
+ ): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
4480
4621
  return safeParse(
4481
4622
  jsonString,
4482
- (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
4483
- `Failed to parse 'DeploymentGetConfig22' from JSON`,
4623
+ (x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
4624
+ `Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
4484
4625
  );
4485
4626
  }
4486
4627
 
@@ -4497,87 +4638,99 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outbo
4497
4638
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
4498
4639
  > =
4499
4640
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
4500
-
4501
- /** @internal */
4502
- export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
4503
- .object({
4504
- type:
4505
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
4506
- text: z.string(),
4507
- });
4641
+
4508
4642
  /** @internal */
4509
- export type Two1$Outbound = {
4643
+ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
4644
+ DeploymentGetConfig21,
4645
+ z.ZodTypeDef,
4646
+ unknown
4647
+ > = z.object({
4648
+ type:
4649
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
4650
+ text: z.string(),
4651
+ });
4652
+ /** @internal */
4653
+ export type DeploymentGetConfig21$Outbound = {
4510
4654
  type: string;
4511
4655
  text: string;
4512
4656
  };
4513
4657
 
4514
4658
  /** @internal */
4515
- export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
4516
- z.object({
4517
- type:
4518
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
4519
- text: z.string(),
4520
- });
4659
+ export const DeploymentGetConfig21$outboundSchema: z.ZodType<
4660
+ DeploymentGetConfig21$Outbound,
4661
+ z.ZodTypeDef,
4662
+ DeploymentGetConfig21
4663
+ > = z.object({
4664
+ type:
4665
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
4666
+ text: z.string(),
4667
+ });
4521
4668
 
4522
- export function two1ToJSON(two1: Two1): string {
4523
- return JSON.stringify(Two1$outboundSchema.parse(two1));
4669
+ export function deploymentGetConfig21ToJSON(
4670
+ deploymentGetConfig21: DeploymentGetConfig21,
4671
+ ): string {
4672
+ return JSON.stringify(
4673
+ DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
4674
+ );
4524
4675
  }
4525
- export function two1FromJSON(
4676
+ export function deploymentGetConfig21FromJSON(
4526
4677
  jsonString: string,
4527
- ): SafeParseResult<Two1, SDKValidationError> {
4678
+ ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
4528
4679
  return safeParse(
4529
4680
  jsonString,
4530
- (x) => Two1$inboundSchema.parse(JSON.parse(x)),
4531
- `Failed to parse 'Two1' from JSON`,
4681
+ (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
4682
+ `Failed to parse 'DeploymentGetConfig21' from JSON`,
4532
4683
  );
4533
4684
  }
4534
4685
 
4535
4686
  /** @internal */
4536
- export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
4537
- DeploymentGetConfigContent2,
4687
+ export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
4688
+ DeploymentGetConfigContentDeployments2,
4538
4689
  z.ZodTypeDef,
4539
4690
  unknown
4540
4691
  > = z.union([
4541
- z.lazy(() => Two1$inboundSchema),
4542
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4543
- z.lazy(() => Two3$inboundSchema),
4692
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4693
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
4694
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4544
4695
  z.lazy(() => Two4$inboundSchema),
4545
4696
  ]);
4546
4697
  /** @internal */
4547
- export type DeploymentGetConfigContent2$Outbound =
4548
- | Two1$Outbound
4549
- | DeploymentGetConfig22$Outbound
4550
- | Two3$Outbound
4698
+ export type DeploymentGetConfigContentDeployments2$Outbound =
4699
+ | DeploymentGetConfig21$Outbound
4700
+ | DeploymentGetConfig2Deployments2$Outbound
4701
+ | DeploymentGetConfig23$Outbound
4551
4702
  | Two4$Outbound;
4552
4703
 
4553
4704
  /** @internal */
4554
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
4555
- DeploymentGetConfigContent2$Outbound,
4705
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
4706
+ DeploymentGetConfigContentDeployments2$Outbound,
4556
4707
  z.ZodTypeDef,
4557
- DeploymentGetConfigContent2
4708
+ DeploymentGetConfigContentDeployments2
4558
4709
  > = z.union([
4559
- z.lazy(() => Two1$outboundSchema),
4560
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
4561
- z.lazy(() => Two3$outboundSchema),
4710
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
4711
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4712
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
4562
4713
  z.lazy(() => Two4$outboundSchema),
4563
4714
  ]);
4564
4715
 
4565
- export function deploymentGetConfigContent2ToJSON(
4566
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
4716
+ export function deploymentGetConfigContentDeployments2ToJSON(
4717
+ deploymentGetConfigContentDeployments2:
4718
+ DeploymentGetConfigContentDeployments2,
4567
4719
  ): string {
4568
4720
  return JSON.stringify(
4569
- DeploymentGetConfigContent2$outboundSchema.parse(
4570
- deploymentGetConfigContent2,
4721
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
4722
+ deploymentGetConfigContentDeployments2,
4571
4723
  ),
4572
4724
  );
4573
4725
  }
4574
- export function deploymentGetConfigContent2FromJSON(
4726
+ export function deploymentGetConfigContentDeployments2FromJSON(
4575
4727
  jsonString: string,
4576
- ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
4728
+ ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
4577
4729
  return safeParse(
4578
4730
  jsonString,
4579
- (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
4580
- `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
4731
+ (x) =>
4732
+ DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
4733
+ `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
4581
4734
  );
4582
4735
  }
4583
4736
 
@@ -4589,9 +4742,9 @@ export const MessagesContent$inboundSchema: z.ZodType<
4589
4742
  > = z.union([
4590
4743
  z.string(),
4591
4744
  z.array(z.union([
4592
- z.lazy(() => Two1$inboundSchema),
4593
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4594
- z.lazy(() => Two3$inboundSchema),
4745
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4746
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
4747
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4595
4748
  z.lazy(() => Two4$inboundSchema),
4596
4749
  ])),
4597
4750
  ]);
@@ -4599,9 +4752,9 @@ export const MessagesContent$inboundSchema: z.ZodType<
4599
4752
  export type MessagesContent$Outbound =
4600
4753
  | string
4601
4754
  | Array<
4602
- | Two1$Outbound
4603
- | DeploymentGetConfig22$Outbound
4604
- | Two3$Outbound
4755
+ | DeploymentGetConfig21$Outbound
4756
+ | DeploymentGetConfig2Deployments2$Outbound
4757
+ | DeploymentGetConfig23$Outbound
4605
4758
  | Two4$Outbound
4606
4759
  >;
4607
4760
 
@@ -4613,9 +4766,9 @@ export const MessagesContent$outboundSchema: z.ZodType<
4613
4766
  > = z.union([
4614
4767
  z.string(),
4615
4768
  z.array(z.union([
4616
- z.lazy(() => Two1$outboundSchema),
4617
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
4618
- z.lazy(() => Two3$outboundSchema),
4769
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
4770
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4771
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
4619
4772
  z.lazy(() => Two4$outboundSchema),
4620
4773
  ])),
4621
4774
  ]);
@@ -4646,9 +4799,9 @@ export const MessagesUserMessage$inboundSchema: z.ZodType<
4646
4799
  content: z.union([
4647
4800
  z.string(),
4648
4801
  z.array(z.union([
4649
- z.lazy(() => Two1$inboundSchema),
4650
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4651
- z.lazy(() => Two3$inboundSchema),
4802
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4803
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
4804
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4652
4805
  z.lazy(() => Two4$inboundSchema),
4653
4806
  ])),
4654
4807
  ]),
@@ -4660,9 +4813,9 @@ export type MessagesUserMessage$Outbound = {
4660
4813
  content:
4661
4814
  | string
4662
4815
  | Array<
4663
- | Two1$Outbound
4664
- | DeploymentGetConfig22$Outbound
4665
- | Two3$Outbound
4816
+ | DeploymentGetConfig21$Outbound
4817
+ | DeploymentGetConfig2Deployments2$Outbound
4818
+ | DeploymentGetConfig23$Outbound
4666
4819
  | Two4$Outbound
4667
4820
  >;
4668
4821
  };
@@ -4678,9 +4831,9 @@ export const MessagesUserMessage$outboundSchema: z.ZodType<
4678
4831
  content: z.union([
4679
4832
  z.string(),
4680
4833
  z.array(z.union([
4681
- z.lazy(() => Two1$outboundSchema),
4682
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
4683
- z.lazy(() => Two3$outboundSchema),
4834
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
4835
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4836
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
4684
4837
  z.lazy(() => Two4$outboundSchema),
4685
4838
  ])),
4686
4839
  ]),
@@ -4810,8 +4963,8 @@ export function messagesDeveloperMessageFromJSON(
4810
4963
  }
4811
4964
 
4812
4965
  /** @internal */
4813
- export const Messages$inboundSchema: z.ZodType<
4814
- Messages,
4966
+ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
4967
+ DeploymentGetConfigMessages,
4815
4968
  z.ZodTypeDef,
4816
4969
  unknown
4817
4970
  > = z.union([
@@ -4822,7 +4975,7 @@ export const Messages$inboundSchema: z.ZodType<
4822
4975
  z.lazy(() => MessagesAssistantMessage$inboundSchema),
4823
4976
  ]);
4824
4977
  /** @internal */
4825
- export type Messages$Outbound =
4978
+ export type DeploymentGetConfigMessages$Outbound =
4826
4979
  | MessagesToolMessage$Outbound
4827
4980
  | MessagesDeveloperMessage$Outbound
4828
4981
  | MessagesSystemMessage$Outbound
@@ -4830,10 +4983,10 @@ export type Messages$Outbound =
4830
4983
  | MessagesAssistantMessage$Outbound;
4831
4984
 
4832
4985
  /** @internal */
4833
- export const Messages$outboundSchema: z.ZodType<
4834
- Messages$Outbound,
4986
+ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
4987
+ DeploymentGetConfigMessages$Outbound,
4835
4988
  z.ZodTypeDef,
4836
- Messages
4989
+ DeploymentGetConfigMessages
4837
4990
  > = z.union([
4838
4991
  z.lazy(() => MessagesToolMessage$outboundSchema),
4839
4992
  z.lazy(() => MessagesDeveloperMessage$outboundSchema),
@@ -4842,16 +4995,22 @@ export const Messages$outboundSchema: z.ZodType<
4842
4995
  z.lazy(() => MessagesAssistantMessage$outboundSchema),
4843
4996
  ]);
4844
4997
 
4845
- export function messagesToJSON(messages: Messages): string {
4846
- return JSON.stringify(Messages$outboundSchema.parse(messages));
4998
+ export function deploymentGetConfigMessagesToJSON(
4999
+ deploymentGetConfigMessages: DeploymentGetConfigMessages,
5000
+ ): string {
5001
+ return JSON.stringify(
5002
+ DeploymentGetConfigMessages$outboundSchema.parse(
5003
+ deploymentGetConfigMessages,
5004
+ ),
5005
+ );
4847
5006
  }
4848
- export function messagesFromJSON(
5007
+ export function deploymentGetConfigMessagesFromJSON(
4849
5008
  jsonString: string,
4850
- ): SafeParseResult<Messages, SDKValidationError> {
5009
+ ): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
4851
5010
  return safeParse(
4852
5011
  jsonString,
4853
- (x) => Messages$inboundSchema.parse(JSON.parse(x)),
4854
- `Failed to parse 'Messages' from JSON`,
5012
+ (x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
5013
+ `Failed to parse 'DeploymentGetConfigMessages' from JSON`,
4855
5014
  );
4856
5015
  }
4857
5016
 
@@ -6828,8 +6987,8 @@ export const DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outbo
6828
6987
  DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema;
6829
6988
 
6830
6989
  /** @internal */
6831
- export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
6832
- DeploymentGetConfig2File,
6990
+ export const DeploymentGetConfig2DeploymentsFile$inboundSchema: z.ZodType<
6991
+ DeploymentGetConfig2DeploymentsFile,
6833
6992
  z.ZodTypeDef,
6834
6993
  unknown
6835
6994
  > = z.object({
@@ -6843,7 +7002,7 @@ export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
6843
7002
  });
6844
7003
  });
6845
7004
  /** @internal */
6846
- export type DeploymentGetConfig2File$Outbound = {
7005
+ export type DeploymentGetConfig2DeploymentsFile$Outbound = {
6847
7006
  file_data?: string | undefined;
6848
7007
  uri?: string | undefined;
6849
7008
  mimeType?: string | undefined;
@@ -6851,10 +7010,10 @@ export type DeploymentGetConfig2File$Outbound = {
6851
7010
  };
6852
7011
 
6853
7012
  /** @internal */
6854
- export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
6855
- DeploymentGetConfig2File$Outbound,
7013
+ export const DeploymentGetConfig2DeploymentsFile$outboundSchema: z.ZodType<
7014
+ DeploymentGetConfig2DeploymentsFile$Outbound,
6856
7015
  z.ZodTypeDef,
6857
- DeploymentGetConfig2File
7016
+ DeploymentGetConfig2DeploymentsFile
6858
7017
  > = z.object({
6859
7018
  fileData: z.string().optional(),
6860
7019
  uri: z.string().optional(),
@@ -6866,64 +7025,69 @@ export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
6866
7025
  });
6867
7026
  });
6868
7027
 
6869
- export function deploymentGetConfig2FileToJSON(
6870
- deploymentGetConfig2File: DeploymentGetConfig2File,
7028
+ export function deploymentGetConfig2DeploymentsFileToJSON(
7029
+ deploymentGetConfig2DeploymentsFile: DeploymentGetConfig2DeploymentsFile,
6871
7030
  ): string {
6872
7031
  return JSON.stringify(
6873
- DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
7032
+ DeploymentGetConfig2DeploymentsFile$outboundSchema.parse(
7033
+ deploymentGetConfig2DeploymentsFile,
7034
+ ),
6874
7035
  );
6875
7036
  }
6876
- export function deploymentGetConfig2FileFromJSON(
7037
+ export function deploymentGetConfig2DeploymentsFileFromJSON(
6877
7038
  jsonString: string,
6878
- ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
7039
+ ): SafeParseResult<DeploymentGetConfig2DeploymentsFile, SDKValidationError> {
6879
7040
  return safeParse(
6880
7041
  jsonString,
6881
- (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
6882
- `Failed to parse 'DeploymentGetConfig2File' from JSON`,
7042
+ (x) =>
7043
+ DeploymentGetConfig2DeploymentsFile$inboundSchema.parse(JSON.parse(x)),
7044
+ `Failed to parse 'DeploymentGetConfig2DeploymentsFile' from JSON`,
6883
7045
  );
6884
7046
  }
6885
7047
 
6886
7048
  /** @internal */
6887
- export const DeploymentGetConfig23$inboundSchema: z.ZodType<
6888
- DeploymentGetConfig23,
7049
+ export const DeploymentGetConfig2Deployments3$inboundSchema: z.ZodType<
7050
+ DeploymentGetConfig2Deployments3,
6889
7051
  z.ZodTypeDef,
6890
7052
  unknown
6891
7053
  > = z.object({
6892
7054
  type:
6893
7055
  DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema,
6894
- file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
7056
+ file: z.lazy(() => DeploymentGetConfig2DeploymentsFile$inboundSchema),
6895
7057
  });
6896
7058
  /** @internal */
6897
- export type DeploymentGetConfig23$Outbound = {
7059
+ export type DeploymentGetConfig2Deployments3$Outbound = {
6898
7060
  type: string;
6899
- file: DeploymentGetConfig2File$Outbound;
7061
+ file: DeploymentGetConfig2DeploymentsFile$Outbound;
6900
7062
  };
6901
7063
 
6902
7064
  /** @internal */
6903
- export const DeploymentGetConfig23$outboundSchema: z.ZodType<
6904
- DeploymentGetConfig23$Outbound,
7065
+ export const DeploymentGetConfig2Deployments3$outboundSchema: z.ZodType<
7066
+ DeploymentGetConfig2Deployments3$Outbound,
6905
7067
  z.ZodTypeDef,
6906
- DeploymentGetConfig23
7068
+ DeploymentGetConfig2Deployments3
6907
7069
  > = z.object({
6908
7070
  type:
6909
7071
  DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema,
6910
- file: z.lazy(() => DeploymentGetConfig2File$outboundSchema),
7072
+ file: z.lazy(() => DeploymentGetConfig2DeploymentsFile$outboundSchema),
6911
7073
  });
6912
7074
 
6913
- export function deploymentGetConfig23ToJSON(
6914
- deploymentGetConfig23: DeploymentGetConfig23,
7075
+ export function deploymentGetConfig2Deployments3ToJSON(
7076
+ deploymentGetConfig2Deployments3: DeploymentGetConfig2Deployments3,
6915
7077
  ): string {
6916
7078
  return JSON.stringify(
6917
- DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
7079
+ DeploymentGetConfig2Deployments3$outboundSchema.parse(
7080
+ deploymentGetConfig2Deployments3,
7081
+ ),
6918
7082
  );
6919
7083
  }
6920
- export function deploymentGetConfig23FromJSON(
7084
+ export function deploymentGetConfig2Deployments3FromJSON(
6921
7085
  jsonString: string,
6922
- ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
7086
+ ): SafeParseResult<DeploymentGetConfig2Deployments3, SDKValidationError> {
6923
7087
  return safeParse(
6924
7088
  jsonString,
6925
- (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
6926
- `Failed to parse 'DeploymentGetConfig23' from JSON`,
7089
+ (x) => DeploymentGetConfig2Deployments3$inboundSchema.parse(JSON.parse(x)),
7090
+ `Failed to parse 'DeploymentGetConfig2Deployments3' from JSON`,
6927
7091
  );
6928
7092
  }
6929
7093
 
@@ -6937,8 +7101,8 @@ export const DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema:
6937
7101
  DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema;
6938
7102
 
6939
7103
  /** @internal */
6940
- export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
6941
- DeploymentGetConfig2ImageUrl,
7104
+ export const DeploymentGetConfig2DeploymentsImageUrl$inboundSchema: z.ZodType<
7105
+ DeploymentGetConfig2DeploymentsImageUrl,
6942
7106
  z.ZodTypeDef,
6943
7107
  unknown
6944
7108
  > = z.object({
@@ -6947,91 +7111,109 @@ export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
6947
7111
  detail: z.string().optional(),
6948
7112
  });
6949
7113
  /** @internal */
6950
- export type DeploymentGetConfig2ImageUrl$Outbound = {
7114
+ export type DeploymentGetConfig2DeploymentsImageUrl$Outbound = {
6951
7115
  id?: string | undefined;
6952
7116
  url: string;
6953
7117
  detail?: string | undefined;
6954
7118
  };
6955
7119
 
6956
7120
  /** @internal */
6957
- export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
6958
- DeploymentGetConfig2ImageUrl$Outbound,
7121
+ export const DeploymentGetConfig2DeploymentsImageUrl$outboundSchema: z.ZodType<
7122
+ DeploymentGetConfig2DeploymentsImageUrl$Outbound,
6959
7123
  z.ZodTypeDef,
6960
- DeploymentGetConfig2ImageUrl
7124
+ DeploymentGetConfig2DeploymentsImageUrl
6961
7125
  > = z.object({
6962
7126
  id: z.string().optional(),
6963
7127
  url: z.string(),
6964
7128
  detail: z.string().optional(),
6965
7129
  });
6966
7130
 
6967
- export function deploymentGetConfig2ImageUrlToJSON(
6968
- deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl,
7131
+ export function deploymentGetConfig2DeploymentsImageUrlToJSON(
7132
+ deploymentGetConfig2DeploymentsImageUrl:
7133
+ DeploymentGetConfig2DeploymentsImageUrl,
6969
7134
  ): string {
6970
7135
  return JSON.stringify(
6971
- DeploymentGetConfig2ImageUrl$outboundSchema.parse(
6972
- deploymentGetConfig2ImageUrl,
7136
+ DeploymentGetConfig2DeploymentsImageUrl$outboundSchema.parse(
7137
+ deploymentGetConfig2DeploymentsImageUrl,
6973
7138
  ),
6974
7139
  );
6975
7140
  }
6976
- export function deploymentGetConfig2ImageUrlFromJSON(
7141
+ export function deploymentGetConfig2DeploymentsImageUrlFromJSON(
6977
7142
  jsonString: string,
6978
- ): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError> {
7143
+ ): SafeParseResult<
7144
+ DeploymentGetConfig2DeploymentsImageUrl,
7145
+ SDKValidationError
7146
+ > {
6979
7147
  return safeParse(
6980
7148
  jsonString,
6981
- (x) => DeploymentGetConfig2ImageUrl$inboundSchema.parse(JSON.parse(x)),
6982
- `Failed to parse 'DeploymentGetConfig2ImageUrl' from JSON`,
7149
+ (x) =>
7150
+ DeploymentGetConfig2DeploymentsImageUrl$inboundSchema.parse(
7151
+ JSON.parse(x),
7152
+ ),
7153
+ `Failed to parse 'DeploymentGetConfig2DeploymentsImageUrl' from JSON`,
6983
7154
  );
6984
7155
  }
6985
7156
 
6986
7157
  /** @internal */
6987
- export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
6988
- DeploymentGetConfig2Deployments2,
7158
+ export const DeploymentGetConfig2DeploymentsResponse2$inboundSchema: z.ZodType<
7159
+ DeploymentGetConfig2DeploymentsResponse2,
6989
7160
  z.ZodTypeDef,
6990
7161
  unknown
6991
7162
  > = z.object({
6992
7163
  type: DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema,
6993
- image_url: z.lazy(() => DeploymentGetConfig2ImageUrl$inboundSchema),
7164
+ image_url: z.lazy(() =>
7165
+ DeploymentGetConfig2DeploymentsImageUrl$inboundSchema
7166
+ ),
6994
7167
  }).transform((v) => {
6995
7168
  return remap$(v, {
6996
7169
  "image_url": "imageUrl",
6997
7170
  });
6998
7171
  });
6999
7172
  /** @internal */
7000
- export type DeploymentGetConfig2Deployments2$Outbound = {
7173
+ export type DeploymentGetConfig2DeploymentsResponse2$Outbound = {
7001
7174
  type: string;
7002
- image_url: DeploymentGetConfig2ImageUrl$Outbound;
7175
+ image_url: DeploymentGetConfig2DeploymentsImageUrl$Outbound;
7003
7176
  };
7004
7177
 
7005
7178
  /** @internal */
7006
- export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
7007
- DeploymentGetConfig2Deployments2$Outbound,
7179
+ export const DeploymentGetConfig2DeploymentsResponse2$outboundSchema: z.ZodType<
7180
+ DeploymentGetConfig2DeploymentsResponse2$Outbound,
7008
7181
  z.ZodTypeDef,
7009
- DeploymentGetConfig2Deployments2
7182
+ DeploymentGetConfig2DeploymentsResponse2
7010
7183
  > = z.object({
7011
7184
  type: DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema,
7012
- imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
7185
+ imageUrl: z.lazy(() =>
7186
+ DeploymentGetConfig2DeploymentsImageUrl$outboundSchema
7187
+ ),
7013
7188
  }).transform((v) => {
7014
7189
  return remap$(v, {
7015
7190
  imageUrl: "image_url",
7016
7191
  });
7017
7192
  });
7018
7193
 
7019
- export function deploymentGetConfig2Deployments2ToJSON(
7020
- deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
7194
+ export function deploymentGetConfig2DeploymentsResponse2ToJSON(
7195
+ deploymentGetConfig2DeploymentsResponse2:
7196
+ DeploymentGetConfig2DeploymentsResponse2,
7021
7197
  ): string {
7022
7198
  return JSON.stringify(
7023
- DeploymentGetConfig2Deployments2$outboundSchema.parse(
7024
- deploymentGetConfig2Deployments2,
7199
+ DeploymentGetConfig2DeploymentsResponse2$outboundSchema.parse(
7200
+ deploymentGetConfig2DeploymentsResponse2,
7025
7201
  ),
7026
7202
  );
7027
7203
  }
7028
- export function deploymentGetConfig2Deployments2FromJSON(
7204
+ export function deploymentGetConfig2DeploymentsResponse2FromJSON(
7029
7205
  jsonString: string,
7030
- ): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
7206
+ ): SafeParseResult<
7207
+ DeploymentGetConfig2DeploymentsResponse2,
7208
+ SDKValidationError
7209
+ > {
7031
7210
  return safeParse(
7032
7211
  jsonString,
7033
- (x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
7034
- `Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
7212
+ (x) =>
7213
+ DeploymentGetConfig2DeploymentsResponse2$inboundSchema.parse(
7214
+ JSON.parse(x),
7215
+ ),
7216
+ `Failed to parse 'DeploymentGetConfig2DeploymentsResponse2' from JSON`,
7035
7217
  );
7036
7218
  }
7037
7219
 
@@ -7045,8 +7227,8 @@ export const DeploymentGetConfig2DeploymentsResponseType$outboundSchema:
7045
7227
  DeploymentGetConfig2DeploymentsResponseType$inboundSchema;
7046
7228
 
7047
7229
  /** @internal */
7048
- export const DeploymentGetConfig21$inboundSchema: z.ZodType<
7049
- DeploymentGetConfig21,
7230
+ export const DeploymentGetConfig2Deployments1$inboundSchema: z.ZodType<
7231
+ DeploymentGetConfig2Deployments1,
7050
7232
  z.ZodTypeDef,
7051
7233
  unknown
7052
7234
  > = z.object({
@@ -7054,35 +7236,37 @@ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
7054
7236
  text: z.string(),
7055
7237
  });
7056
7238
  /** @internal */
7057
- export type DeploymentGetConfig21$Outbound = {
7239
+ export type DeploymentGetConfig2Deployments1$Outbound = {
7058
7240
  type: string;
7059
7241
  text: string;
7060
7242
  };
7061
7243
 
7062
7244
  /** @internal */
7063
- export const DeploymentGetConfig21$outboundSchema: z.ZodType<
7064
- DeploymentGetConfig21$Outbound,
7245
+ export const DeploymentGetConfig2Deployments1$outboundSchema: z.ZodType<
7246
+ DeploymentGetConfig2Deployments1$Outbound,
7065
7247
  z.ZodTypeDef,
7066
- DeploymentGetConfig21
7248
+ DeploymentGetConfig2Deployments1
7067
7249
  > = z.object({
7068
7250
  type: DeploymentGetConfig2DeploymentsResponseType$outboundSchema,
7069
7251
  text: z.string(),
7070
7252
  });
7071
7253
 
7072
- export function deploymentGetConfig21ToJSON(
7073
- deploymentGetConfig21: DeploymentGetConfig21,
7254
+ export function deploymentGetConfig2Deployments1ToJSON(
7255
+ deploymentGetConfig2Deployments1: DeploymentGetConfig2Deployments1,
7074
7256
  ): string {
7075
7257
  return JSON.stringify(
7076
- DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
7258
+ DeploymentGetConfig2Deployments1$outboundSchema.parse(
7259
+ deploymentGetConfig2Deployments1,
7260
+ ),
7077
7261
  );
7078
7262
  }
7079
- export function deploymentGetConfig21FromJSON(
7263
+ export function deploymentGetConfig2Deployments1FromJSON(
7080
7264
  jsonString: string,
7081
- ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
7265
+ ): SafeParseResult<DeploymentGetConfig2Deployments1, SDKValidationError> {
7082
7266
  return safeParse(
7083
7267
  jsonString,
7084
- (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
7085
- `Failed to parse 'DeploymentGetConfig21' from JSON`,
7268
+ (x) => DeploymentGetConfig2Deployments1$inboundSchema.parse(JSON.parse(x)),
7269
+ `Failed to parse 'DeploymentGetConfig2Deployments1' from JSON`,
7086
7270
  );
7087
7271
  }
7088
7272
 
@@ -7093,15 +7277,15 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
7093
7277
  z.ZodTypeDef,
7094
7278
  unknown
7095
7279
  > = z.union([
7096
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
7097
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
7098
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
7280
+ z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
7281
+ z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
7282
+ z.lazy(() => DeploymentGetConfig2Deployments3$inboundSchema),
7099
7283
  ]);
7100
7284
  /** @internal */
7101
7285
  export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
7102
- | DeploymentGetConfig21$Outbound
7103
- | DeploymentGetConfig2Deployments2$Outbound
7104
- | DeploymentGetConfig23$Outbound;
7286
+ | DeploymentGetConfig2Deployments1$Outbound
7287
+ | DeploymentGetConfig2DeploymentsResponse2$Outbound
7288
+ | DeploymentGetConfig2Deployments3$Outbound;
7105
7289
 
7106
7290
  /** @internal */
7107
7291
  export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
@@ -7110,9 +7294,9 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
7110
7294
  z.ZodTypeDef,
7111
7295
  DeploymentGetConfigContentDeploymentsResponse2
7112
7296
  > = z.union([
7113
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
7114
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
7115
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
7297
+ z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
7298
+ z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$outboundSchema),
7299
+ z.lazy(() => DeploymentGetConfig2Deployments3$outboundSchema),
7116
7300
  ]);
7117
7301
 
7118
7302
  export function deploymentGetConfigContentDeploymentsResponse2ToJSON(
@@ -7149,18 +7333,18 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
7149
7333
  > = z.union([
7150
7334
  z.string(),
7151
7335
  z.array(z.union([
7152
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
7153
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
7154
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
7336
+ z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
7337
+ z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
7338
+ z.lazy(() => DeploymentGetConfig2Deployments3$inboundSchema),
7155
7339
  ])),
7156
7340
  ]);
7157
7341
  /** @internal */
7158
7342
  export type DeploymentGetConfigContent$Outbound =
7159
7343
  | string
7160
7344
  | Array<
7161
- | DeploymentGetConfig21$Outbound
7162
- | DeploymentGetConfig2Deployments2$Outbound
7163
- | DeploymentGetConfig23$Outbound
7345
+ | DeploymentGetConfig2Deployments1$Outbound
7346
+ | DeploymentGetConfig2DeploymentsResponse2$Outbound
7347
+ | DeploymentGetConfig2Deployments3$Outbound
7164
7348
  >;
7165
7349
 
7166
7350
  /** @internal */
@@ -7171,9 +7355,9 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
7171
7355
  > = z.union([
7172
7356
  z.string(),
7173
7357
  z.array(z.union([
7174
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
7175
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
7176
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
7358
+ z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
7359
+ z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$outboundSchema),
7360
+ z.lazy(() => DeploymentGetConfig2Deployments3$outboundSchema),
7177
7361
  ])),
7178
7362
  ]);
7179
7363
 
@@ -7300,8 +7484,8 @@ export function deploymentGetConfigToolCallsFromJSON(
7300
7484
  }
7301
7485
 
7302
7486
  /** @internal */
7303
- export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
7304
- DeploymentGetConfigMessages,
7487
+ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
7488
+ DeploymentGetConfigDeploymentsMessages,
7305
7489
  z.ZodTypeDef,
7306
7490
  unknown
7307
7491
  > = z.object({
@@ -7311,9 +7495,9 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
7311
7495
  z.string(),
7312
7496
  z.array(
7313
7497
  z.union([
7314
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
7315
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
7316
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
7498
+ z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
7499
+ z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
7500
+ z.lazy(() => DeploymentGetConfig2Deployments3$inboundSchema),
7317
7501
  ]),
7318
7502
  ),
7319
7503
  ]),
@@ -7328,14 +7512,14 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
7328
7512
  });
7329
7513
  });
7330
7514
  /** @internal */
7331
- export type DeploymentGetConfigMessages$Outbound = {
7515
+ export type DeploymentGetConfigDeploymentsMessages$Outbound = {
7332
7516
  role: string;
7333
7517
  content:
7334
7518
  | string
7335
7519
  | Array<
7336
- | DeploymentGetConfig21$Outbound
7337
- | DeploymentGetConfig2Deployments2$Outbound
7338
- | DeploymentGetConfig23$Outbound
7520
+ | DeploymentGetConfig2Deployments1$Outbound
7521
+ | DeploymentGetConfig2DeploymentsResponse2$Outbound
7522
+ | DeploymentGetConfig2Deployments3$Outbound
7339
7523
  >
7340
7524
  | null;
7341
7525
  tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
@@ -7343,10 +7527,10 @@ export type DeploymentGetConfigMessages$Outbound = {
7343
7527
  };
7344
7528
 
7345
7529
  /** @internal */
7346
- export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
7347
- DeploymentGetConfigMessages$Outbound,
7530
+ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
7531
+ DeploymentGetConfigDeploymentsMessages$Outbound,
7348
7532
  z.ZodTypeDef,
7349
- DeploymentGetConfigMessages
7533
+ DeploymentGetConfigDeploymentsMessages
7350
7534
  > = z.object({
7351
7535
  role: DeploymentGetConfigRole$outboundSchema,
7352
7536
  content: z.nullable(
@@ -7354,9 +7538,11 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
7354
7538
  z.string(),
7355
7539
  z.array(
7356
7540
  z.union([
7357
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
7358
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
7359
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
7541
+ z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
7542
+ z.lazy(() =>
7543
+ DeploymentGetConfig2DeploymentsResponse2$outboundSchema
7544
+ ),
7545
+ z.lazy(() => DeploymentGetConfig2Deployments3$outboundSchema),
7360
7546
  ]),
7361
7547
  ),
7362
7548
  ]),
@@ -7371,22 +7557,24 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
7371
7557
  });
7372
7558
  });
7373
7559
 
7374
- export function deploymentGetConfigMessagesToJSON(
7375
- deploymentGetConfigMessages: DeploymentGetConfigMessages,
7560
+ export function deploymentGetConfigDeploymentsMessagesToJSON(
7561
+ deploymentGetConfigDeploymentsMessages:
7562
+ DeploymentGetConfigDeploymentsMessages,
7376
7563
  ): string {
7377
7564
  return JSON.stringify(
7378
- DeploymentGetConfigMessages$outboundSchema.parse(
7379
- deploymentGetConfigMessages,
7565
+ DeploymentGetConfigDeploymentsMessages$outboundSchema.parse(
7566
+ deploymentGetConfigDeploymentsMessages,
7380
7567
  ),
7381
7568
  );
7382
7569
  }
7383
- export function deploymentGetConfigMessagesFromJSON(
7570
+ export function deploymentGetConfigDeploymentsMessagesFromJSON(
7384
7571
  jsonString: string,
7385
- ): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
7572
+ ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
7386
7573
  return safeParse(
7387
7574
  jsonString,
7388
- (x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
7389
- `Failed to parse 'DeploymentGetConfigMessages' from JSON`,
7575
+ (x) =>
7576
+ DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
7577
+ `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
7390
7578
  );
7391
7579
  }
7392
7580
 
@@ -8001,7 +8189,9 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
8001
8189
  model: z.string(),
8002
8190
  type: DeploymentGetConfigType$inboundSchema.optional(),
8003
8191
  version: z.string(),
8004
- messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
8192
+ messages: z.array(
8193
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
8194
+ ),
8005
8195
  parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
8006
8196
  tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
8007
8197
  .optional(),
@@ -8013,7 +8203,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
8013
8203
  model: string;
8014
8204
  type?: string | undefined;
8015
8205
  version: string;
8016
- messages: Array<DeploymentGetConfigMessages$Outbound>;
8206
+ messages: Array<DeploymentGetConfigDeploymentsMessages$Outbound>;
8017
8207
  parameters: DeploymentGetConfigParameters$Outbound;
8018
8208
  tools?: Array<DeploymentGetConfigTools$Outbound> | undefined;
8019
8209
  };
@@ -8029,7 +8219,9 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
8029
8219
  model: z.string(),
8030
8220
  type: DeploymentGetConfigType$outboundSchema.optional(),
8031
8221
  version: z.string(),
8032
- messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
8222
+ messages: z.array(
8223
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$outboundSchema),
8224
+ ),
8033
8225
  parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
8034
8226
  tools: z.array(z.lazy(() => DeploymentGetConfigTools$outboundSchema))
8035
8227
  .optional(),