@orq-ai/node 3.1.11 → 3.1.13

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 (143) hide show
  1. package/bin/mcp-server.js +74 -38
  2. package/bin/mcp-server.js.map +32 -31
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/sdks.d.ts.map +1 -1
  7. package/lib/sdks.js +2 -8
  8. package/lib/sdks.js.map +1 -1
  9. package/mcp-server/extensions.d.ts +9 -0
  10. package/mcp-server/extensions.d.ts.map +1 -0
  11. package/mcp-server/extensions.js +6 -0
  12. package/mcp-server/extensions.js.map +1 -0
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/resources.d.ts +9 -4
  15. package/mcp-server/resources.d.ts.map +1 -1
  16. package/mcp-server/resources.js +36 -9
  17. package/mcp-server/resources.js.map +1 -1
  18. package/mcp-server/server.d.ts.map +1 -1
  19. package/mcp-server/server.js +6 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/contactsCreate.js +1 -1
  22. package/mcp-server/tools/deploymentsGetConfig.js +1 -1
  23. package/mcp-server/tools/deploymentsInvoke.js +1 -1
  24. package/mcp-server/tools/deploymentsList.js +1 -1
  25. package/mcp-server/tools/deploymentsMetricsCreate.js +1 -1
  26. package/mcp-server/tools/deploymentsStream.js +1 -1
  27. package/mcp-server/tools/feedbackCreate.js +1 -1
  28. package/mcp-server/tools/filesCreate.js +1 -1
  29. package/mcp-server/tools/filesDelete.js +1 -1
  30. package/mcp-server/tools/filesGet.js +1 -1
  31. package/mcp-server/tools/filesList.js +1 -1
  32. package/mcp-server/tools/promptsCreate.js +1 -1
  33. package/mcp-server/tools/promptsDelete.js +1 -1
  34. package/mcp-server/tools/promptsGetVersion.js +1 -1
  35. package/mcp-server/tools/promptsList.js +1 -1
  36. package/mcp-server/tools/promptsListVersions.js +1 -1
  37. package/mcp-server/tools/promptsRetrieve.js +1 -1
  38. package/mcp-server/tools/promptsUpdate.js +1 -1
  39. package/mcp-server/tools/remoteconfigsRetrieve.js +1 -1
  40. package/mcp-server/tools.d.ts.map +1 -1
  41. package/mcp-server/tools.js +3 -0
  42. package/mcp-server/tools.js.map +1 -1
  43. package/models/operations/createcontact.js +2 -2
  44. package/models/operations/fileget.js +2 -2
  45. package/models/operations/filelist.js +2 -2
  46. package/models/operations/fileupload.js +2 -2
  47. package/package.json +1 -1
  48. package/packages/orq-rc/jsr.json +1 -1
  49. package/packages/orq-rc/package-lock.json +2 -2
  50. package/packages/orq-rc/package.json +1 -1
  51. package/packages/orq-rc/src/funcs/datasetsList.ts +1 -0
  52. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -0
  53. package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
  54. package/packages/orq-rc/src/funcs/filesList.ts +1 -0
  55. package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
  56. package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
  57. package/packages/orq-rc/src/lib/config.ts +3 -3
  58. package/packages/orq-rc/src/lib/sdks.ts +2 -7
  59. package/packages/orq-rc/src/mcp-server/extensions.ts +13 -0
  60. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  61. package/packages/orq-rc/src/mcp-server/resources.ts +75 -14
  62. package/packages/orq-rc/src/mcp-server/server.ts +16 -1
  63. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
  64. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +1 -1
  65. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +1 -1
  66. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +1 -1
  67. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +1 -1
  68. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +1 -1
  69. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +1 -1
  70. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +1 -1
  71. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +1 -1
  72. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +1 -1
  73. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +1 -1
  74. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +1 -1
  75. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +1 -1
  76. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
  77. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
  78. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +1 -1
  79. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +1 -1
  81. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +1 -1
  82. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +1 -1
  83. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +1 -1
  84. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +1 -1
  85. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +1 -1
  86. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +1 -1
  88. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +1 -1
  89. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +1 -1
  90. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +1 -1
  91. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +1 -1
  92. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
  93. package/packages/orq-rc/src/mcp-server/tools.ts +4 -0
  94. package/packages/orq-rc/src/models/components/deployments.ts +786 -749
  95. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2448 -767
  100. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +857 -917
  101. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +458 -407
  102. package/packages/orq-rc/src/models/operations/deployments.ts +39 -0
  103. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/filelist.ts +42 -2
  105. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/getallprompts.ts +42 -0
  107. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +46 -2
  108. package/packages/orq-rc/src/models/operations/listdatasets.ts +44 -2
  109. package/packages/orq-rc/src/models/operations/listpromptversions.ts +42 -0
  110. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  114. package/src/lib/config.ts +3 -3
  115. package/src/lib/sdks.ts +2 -7
  116. package/src/mcp-server/extensions.ts +13 -0
  117. package/src/mcp-server/mcp-server.ts +1 -1
  118. package/src/mcp-server/resources.ts +75 -14
  119. package/src/mcp-server/server.ts +16 -1
  120. package/src/mcp-server/tools/contactsCreate.ts +1 -1
  121. package/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
  122. package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
  123. package/src/mcp-server/tools/deploymentsList.ts +1 -1
  124. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
  125. package/src/mcp-server/tools/deploymentsStream.ts +1 -1
  126. package/src/mcp-server/tools/feedbackCreate.ts +1 -1
  127. package/src/mcp-server/tools/filesCreate.ts +1 -1
  128. package/src/mcp-server/tools/filesDelete.ts +1 -1
  129. package/src/mcp-server/tools/filesGet.ts +1 -1
  130. package/src/mcp-server/tools/filesList.ts +1 -1
  131. package/src/mcp-server/tools/promptsCreate.ts +1 -1
  132. package/src/mcp-server/tools/promptsDelete.ts +1 -1
  133. package/src/mcp-server/tools/promptsGetVersion.ts +1 -1
  134. package/src/mcp-server/tools/promptsList.ts +1 -1
  135. package/src/mcp-server/tools/promptsListVersions.ts +1 -1
  136. package/src/mcp-server/tools/promptsRetrieve.ts +1 -1
  137. package/src/mcp-server/tools/promptsUpdate.ts +1 -1
  138. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
  139. package/src/mcp-server/tools.ts +4 -0
  140. package/src/models/operations/createcontact.ts +2 -2
  141. package/src/models/operations/fileget.ts +2 -2
  142. package/src/models/operations/filelist.ts +2 -2
  143. package/src/models/operations/fileupload.ts +2 -2
@@ -28,7 +28,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRole =
28
28
  */
29
29
  export type DeploymentGetConfigPrefixMessagesContent = string | Array<string>;
30
30
 
31
- export type Five = {
31
+ export type ToolMessage = {
32
32
  /**
33
33
  * The role of the messages author, in this case tool.
34
34
  */
@@ -56,7 +56,7 @@ export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
56
56
  typeof DeploymentGetConfig2DeploymentsRequestType
57
57
  >;
58
58
 
59
- export type DeploymentGetConfig22 = {
59
+ export type RefusalContentPart = {
60
60
  /**
61
61
  * The type of the content part.
62
62
  */
@@ -80,7 +80,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
80
80
  typeof DeploymentGetConfig2DeploymentsType
81
81
  >;
82
82
 
83
- export type DeploymentGetConfig21 = {
83
+ export type TextContentPart = {
84
84
  /**
85
85
  * The type of the content part.
86
86
  */
@@ -91,16 +91,14 @@ export type DeploymentGetConfig21 = {
91
91
  text: string;
92
92
  };
93
93
 
94
- export type DeploymentGetConfigContent2 =
95
- | DeploymentGetConfig21
96
- | DeploymentGetConfig22;
94
+ export type Content2 = TextContentPart | RefusalContentPart;
97
95
 
98
96
  /**
99
97
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
100
98
  */
101
99
  export type PrefixMessagesContent =
102
100
  | string
103
- | Array<DeploymentGetConfig21 | DeploymentGetConfig22>;
101
+ | Array<TextContentPart | RefusalContentPart>;
104
102
 
105
103
  /**
106
104
  * The role of the messages author, in this case `assistant`.
@@ -126,13 +124,13 @@ export type Audio = {
126
124
  };
127
125
 
128
126
  /**
129
- * The type of the tool. Currently, only `5` is supported.
127
+ * The type of the tool. Currently, only `function` is supported.
130
128
  */
131
129
  export const PrefixMessagesType = {
132
130
  Function: "function",
133
131
  } as const;
134
132
  /**
135
- * The type of the tool. Currently, only `5` is supported.
133
+ * The type of the tool. Currently, only `function` is supported.
136
134
  */
137
135
  export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
138
136
 
@@ -153,20 +151,17 @@ export type ToolCalls = {
153
151
  */
154
152
  id: string;
155
153
  /**
156
- * The type of the tool. Currently, only `5` is supported.
154
+ * The type of the tool. Currently, only `function` is supported.
157
155
  */
158
156
  type: PrefixMessagesType;
159
157
  function: FunctionT;
160
158
  };
161
159
 
162
- export type Four = {
160
+ export type AssistantMessage = {
163
161
  /**
164
162
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
165
163
  */
166
- content?:
167
- | string
168
- | Array<DeploymentGetConfig21 | DeploymentGetConfig22>
169
- | undefined;
164
+ content?: string | Array<TextContentPart | RefusalContentPart> | undefined;
170
165
  /**
171
166
  * The refusal message by the assistant.
172
167
  */
@@ -232,7 +227,7 @@ export type InputAudio = {
232
227
  format: Format;
233
228
  };
234
229
 
235
- export type Two3 = {
230
+ export type Three = {
236
231
  type: DeploymentGetConfig2Type;
237
232
  inputAudio: InputAudio;
238
233
  };
@@ -276,19 +271,19 @@ export const Type = {
276
271
  } as const;
277
272
  export type Type = ClosedEnum<typeof Type>;
278
273
 
279
- export type Two1 = {
274
+ export type One = {
280
275
  type: Type;
281
276
  text: string;
282
277
  };
283
278
 
284
- export type Content2 = Two1 | Two2 | Two3;
279
+ export type Two = One | Two2 | Three;
285
280
 
286
281
  /**
287
282
  * The contents of the user message.
288
283
  */
289
- export type Content = string | Array<Two1 | Two2 | Two3>;
284
+ export type Content = string | Array<One | Two2 | Three>;
290
285
 
291
- export type Three = {
286
+ export type UserMessage = {
292
287
  /**
293
288
  * The role of the messages author, in this case `user`.
294
289
  */
@@ -300,7 +295,7 @@ export type Three = {
300
295
  /**
301
296
  * The contents of the user message.
302
297
  */
303
- content: string | Array<Two1 | Two2 | Two3>;
298
+ content: string | Array<One | Two2 | Three>;
304
299
  };
305
300
 
306
301
  /**
@@ -314,7 +309,7 @@ export const PrefixMessagesRole = {
314
309
  */
315
310
  export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
316
311
 
317
- export type Two = {
312
+ export type SystemMessage = {
318
313
  /**
319
314
  * The role of the messages author, in this case `system`.
320
315
  */
@@ -340,7 +335,7 @@ export const Role = {
340
335
  */
341
336
  export type Role = ClosedEnum<typeof Role>;
342
337
 
343
- export type One = {
338
+ export type DeveloperMessage = {
344
339
  /**
345
340
  * The role of the messages author, in this case `developer`.
346
341
  */
@@ -355,7 +350,12 @@ export type One = {
355
350
  name?: string | undefined;
356
351
  };
357
352
 
358
- export type PrefixMessages = One | Two | Three | Five | Four;
353
+ export type PrefixMessages =
354
+ | DeveloperMessage
355
+ | SystemMessage
356
+ | UserMessage
357
+ | ToolMessage
358
+ | AssistantMessage;
359
359
 
360
360
  /**
361
361
  * The role of the messages author, in this case tool.
@@ -378,7 +378,7 @@ export type DeploymentGetConfigMessagesDeploymentsContent =
378
378
  | string
379
379
  | Array<string>;
380
380
 
381
- export type Messages5 = {
381
+ export type MessagesToolMessage = {
382
382
  /**
383
383
  * The role of the messages author, in this case tool.
384
384
  */
@@ -408,7 +408,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentTyp
408
408
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
409
409
  >;
410
410
 
411
- export type DeploymentGetConfig2DeploymentsRequest2 = {
411
+ export type TwoRefusalContentPart = {
412
412
  /**
413
413
  * The type of the content part.
414
414
  */
@@ -433,7 +433,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type =
433
433
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type
434
434
  >;
435
435
 
436
- export type DeploymentGetConfig2DeploymentsRequest1 = {
436
+ export type TwoTextContentPart = {
437
437
  /**
438
438
  * The type of the content part.
439
439
  */
@@ -444,19 +444,16 @@ export type DeploymentGetConfig2DeploymentsRequest1 = {
444
444
  text: string;
445
445
  };
446
446
 
447
- export type DeploymentGetConfigContentDeploymentsRequest2 =
448
- | DeploymentGetConfig2DeploymentsRequest1
449
- | DeploymentGetConfig2DeploymentsRequest2;
447
+ export type DeploymentGetConfigContentDeployments2 =
448
+ | TwoTextContentPart
449
+ | TwoRefusalContentPart;
450
450
 
451
451
  /**
452
452
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
453
453
  */
454
454
  export type DeploymentGetConfigMessagesContent =
455
455
  | string
456
- | Array<
457
- | DeploymentGetConfig2DeploymentsRequest1
458
- | DeploymentGetConfig2DeploymentsRequest2
459
- >;
456
+ | Array<TwoTextContentPart | TwoRefusalContentPart>;
460
457
 
461
458
  /**
462
459
  * The role of the messages author, in this case `assistant`.
@@ -482,13 +479,13 @@ export type MessagesAudio = {
482
479
  };
483
480
 
484
481
  /**
485
- * The type of the tool. Currently, only `5` is supported.
482
+ * The type of the tool. Currently, only `function` is supported.
486
483
  */
487
484
  export const MessagesType = {
488
485
  Function: "function",
489
486
  } as const;
490
487
  /**
491
- * The type of the tool. Currently, only `5` is supported.
488
+ * The type of the tool. Currently, only `function` is supported.
492
489
  */
493
490
  export type MessagesType = ClosedEnum<typeof MessagesType>;
494
491
 
@@ -509,22 +506,19 @@ export type MessagesToolCalls = {
509
506
  */
510
507
  id: string;
511
508
  /**
512
- * The type of the tool. Currently, only `5` is supported.
509
+ * The type of the tool. Currently, only `function` is supported.
513
510
  */
514
511
  type: MessagesType;
515
512
  function: MessagesFunction;
516
513
  };
517
514
 
518
- export type Messages4 = {
515
+ export type MessagesAssistantMessage = {
519
516
  /**
520
517
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
521
518
  */
522
519
  content?:
523
520
  | string
524
- | Array<
525
- | DeploymentGetConfig2DeploymentsRequest1
526
- | DeploymentGetConfig2DeploymentsRequest2
527
- >
521
+ | Array<TwoTextContentPart | TwoRefusalContentPart>
528
522
  | undefined;
529
523
  /**
530
524
  * The refusal message by the assistant.
@@ -592,7 +586,7 @@ export type TwoInputAudio = {
592
586
  format: TwoFormat;
593
587
  };
594
588
 
595
- export type DeploymentGetConfig23 = {
589
+ export type Two3 = {
596
590
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
597
591
  inputAudio: TwoInputAudio;
598
592
  };
@@ -629,7 +623,7 @@ export type TwoImageUrl = {
629
623
  detail?: TwoDetail | undefined;
630
624
  };
631
625
 
632
- export type DeploymentGetConfig2Deployments2 = {
626
+ export type DeploymentGetConfig22 = {
633
627
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType;
634
628
  imageUrl: TwoImageUrl;
635
629
  };
@@ -641,28 +635,21 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
641
635
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
642
636
  >;
643
637
 
644
- export type DeploymentGetConfig2Deployments1 = {
638
+ export type Two1 = {
645
639
  type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
646
640
  text: string;
647
641
  };
648
642
 
649
- export type DeploymentGetConfigContentDeployments2 =
650
- | DeploymentGetConfig2Deployments1
651
- | DeploymentGetConfig2Deployments2
652
- | DeploymentGetConfig23;
643
+ export type DeploymentGetConfigContent2 = Two1 | DeploymentGetConfig22 | Two3;
653
644
 
654
645
  /**
655
646
  * The contents of the user message.
656
647
  */
657
648
  export type MessagesContent =
658
649
  | string
659
- | Array<
660
- | DeploymentGetConfig2Deployments1
661
- | DeploymentGetConfig2Deployments2
662
- | DeploymentGetConfig23
663
- >;
650
+ | Array<Two1 | DeploymentGetConfig22 | Two3>;
664
651
 
665
- export type Messages3 = {
652
+ export type MessagesUserMessage = {
666
653
  /**
667
654
  * The role of the messages author, in this case `user`.
668
655
  */
@@ -674,13 +661,7 @@ export type Messages3 = {
674
661
  /**
675
662
  * The contents of the user message.
676
663
  */
677
- content:
678
- | string
679
- | Array<
680
- | DeploymentGetConfig2Deployments1
681
- | DeploymentGetConfig2Deployments2
682
- | DeploymentGetConfig23
683
- >;
664
+ content: string | Array<Two1 | DeploymentGetConfig22 | Two3>;
684
665
  };
685
666
 
686
667
  /**
@@ -696,7 +677,7 @@ export type DeploymentGetConfigMessagesRole = ClosedEnum<
696
677
  typeof DeploymentGetConfigMessagesRole
697
678
  >;
698
679
 
699
- export type Messages2 = {
680
+ export type MessagesSystemMessage = {
700
681
  /**
701
682
  * The role of the messages author, in this case `system`.
702
683
  */
@@ -722,7 +703,7 @@ export const MessagesRole = {
722
703
  */
723
704
  export type MessagesRole = ClosedEnum<typeof MessagesRole>;
724
705
 
725
- export type Messages1 = {
706
+ export type MessagesDeveloperMessage = {
726
707
  /**
727
708
  * The role of the messages author, in this case `developer`.
728
709
  */
@@ -738,11 +719,11 @@ export type Messages1 = {
738
719
  };
739
720
 
740
721
  export type Messages =
741
- | Messages1
742
- | Messages2
743
- | Messages3
744
- | Messages5
745
- | Messages4;
722
+ | MessagesDeveloperMessage
723
+ | MessagesSystemMessage
724
+ | MessagesUserMessage
725
+ | MessagesToolMessage
726
+ | MessagesAssistantMessage;
746
727
 
747
728
  /**
748
729
  * Metadata about the document
@@ -796,12 +777,26 @@ export type DeploymentGetConfigRequestBody = {
796
777
  /**
797
778
  * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
798
779
  */
799
- prefixMessages?: Array<One | Two | Three | Five | Four> | undefined;
780
+ prefixMessages?:
781
+ | Array<
782
+ | DeveloperMessage
783
+ | SystemMessage
784
+ | UserMessage
785
+ | ToolMessage
786
+ | AssistantMessage
787
+ >
788
+ | undefined;
800
789
  /**
801
790
  * A list of messages to send to the deployment.
802
791
  */
803
792
  messages?:
804
- | Array<Messages1 | Messages2 | Messages3 | Messages5 | Messages4>
793
+ | Array<
794
+ | MessagesDeveloperMessage
795
+ | MessagesSystemMessage
796
+ | MessagesUserMessage
797
+ | MessagesToolMessage
798
+ | MessagesAssistantMessage
799
+ >
805
800
  | undefined;
806
801
  /**
807
802
  * A list of file IDs that are associated with the deployment request.
@@ -888,7 +883,7 @@ export type DeploymentGetConfig2ImageUrl = {
888
883
  /**
889
884
  * The image part of the prompt message. Only supported with vision models.
890
885
  */
891
- export type DeploymentGetConfig2DeploymentsResponse2 = {
886
+ export type DeploymentGetConfig2Deployments2 = {
892
887
  type: DeploymentGetConfig2DeploymentsResponse200Type;
893
888
  imageUrl: DeploymentGetConfig2ImageUrl;
894
889
  };
@@ -903,24 +898,21 @@ export type DeploymentGetConfig2DeploymentsResponseType = ClosedEnum<
903
898
  /**
904
899
  * Text content part of a prompt message
905
900
  */
906
- export type DeploymentGetConfig2DeploymentsResponse1 = {
901
+ export type DeploymentGetConfig21 = {
907
902
  type: DeploymentGetConfig2DeploymentsResponseType;
908
903
  text: string;
909
904
  };
910
905
 
911
906
  export type DeploymentGetConfigContentDeploymentsResponse2 =
912
- | DeploymentGetConfig2DeploymentsResponse1
913
- | DeploymentGetConfig2DeploymentsResponse2;
907
+ | DeploymentGetConfig21
908
+ | DeploymentGetConfig2Deployments2;
914
909
 
915
910
  /**
916
911
  * 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.
917
912
  */
918
913
  export type DeploymentGetConfigContent =
919
914
  | string
920
- | Array<
921
- | DeploymentGetConfig2DeploymentsResponse1
922
- | DeploymentGetConfig2DeploymentsResponse2
923
- >;
915
+ | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
924
916
 
925
917
  export const DeploymentGetConfigDeploymentsResponseType = {
926
918
  Function: "function",
@@ -954,10 +946,7 @@ export type DeploymentGetConfigMessages = {
954
946
  */
955
947
  content:
956
948
  | string
957
- | Array<
958
- | DeploymentGetConfig2DeploymentsResponse1
959
- | DeploymentGetConfig2DeploymentsResponse2
960
- >;
949
+ | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
961
950
  toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
962
951
  };
963
952
 
@@ -1367,61 +1356,66 @@ export function deploymentGetConfigPrefixMessagesContentFromJSON(
1367
1356
  }
1368
1357
 
1369
1358
  /** @internal */
1370
- export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
1371
- .object({
1372
- role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema,
1373
- content: z.union([z.string(), z.array(z.string())]),
1374
- tool_call_id: z.string(),
1375
- }).transform((v) => {
1376
- return remap$(v, {
1377
- "tool_call_id": "toolCallId",
1378
- });
1359
+ export const ToolMessage$inboundSchema: z.ZodType<
1360
+ ToolMessage,
1361
+ z.ZodTypeDef,
1362
+ unknown
1363
+ > = z.object({
1364
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema,
1365
+ content: z.union([z.string(), z.array(z.string())]),
1366
+ tool_call_id: z.string(),
1367
+ }).transform((v) => {
1368
+ return remap$(v, {
1369
+ "tool_call_id": "toolCallId",
1379
1370
  });
1371
+ });
1380
1372
 
1381
1373
  /** @internal */
1382
- export type Five$Outbound = {
1374
+ export type ToolMessage$Outbound = {
1383
1375
  role: string;
1384
1376
  content: string | Array<string>;
1385
1377
  tool_call_id: string;
1386
1378
  };
1387
1379
 
1388
1380
  /** @internal */
1389
- export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
1390
- z.object({
1391
- role:
1392
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema,
1393
- content: z.union([z.string(), z.array(z.string())]),
1394
- toolCallId: z.string(),
1395
- }).transform((v) => {
1396
- return remap$(v, {
1397
- toolCallId: "tool_call_id",
1398
- });
1381
+ export const ToolMessage$outboundSchema: z.ZodType<
1382
+ ToolMessage$Outbound,
1383
+ z.ZodTypeDef,
1384
+ ToolMessage
1385
+ > = z.object({
1386
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema,
1387
+ content: z.union([z.string(), z.array(z.string())]),
1388
+ toolCallId: z.string(),
1389
+ }).transform((v) => {
1390
+ return remap$(v, {
1391
+ toolCallId: "tool_call_id",
1399
1392
  });
1393
+ });
1400
1394
 
1401
1395
  /**
1402
1396
  * @internal
1403
1397
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1404
1398
  */
1405
- export namespace Five$ {
1406
- /** @deprecated use `Five$inboundSchema` instead. */
1407
- export const inboundSchema = Five$inboundSchema;
1408
- /** @deprecated use `Five$outboundSchema` instead. */
1409
- export const outboundSchema = Five$outboundSchema;
1410
- /** @deprecated use `Five$Outbound` instead. */
1411
- export type Outbound = Five$Outbound;
1399
+ export namespace ToolMessage$ {
1400
+ /** @deprecated use `ToolMessage$inboundSchema` instead. */
1401
+ export const inboundSchema = ToolMessage$inboundSchema;
1402
+ /** @deprecated use `ToolMessage$outboundSchema` instead. */
1403
+ export const outboundSchema = ToolMessage$outboundSchema;
1404
+ /** @deprecated use `ToolMessage$Outbound` instead. */
1405
+ export type Outbound = ToolMessage$Outbound;
1412
1406
  }
1413
1407
 
1414
- export function fiveToJSON(five: Five): string {
1415
- return JSON.stringify(Five$outboundSchema.parse(five));
1408
+ export function toolMessageToJSON(toolMessage: ToolMessage): string {
1409
+ return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1416
1410
  }
1417
1411
 
1418
- export function fiveFromJSON(
1412
+ export function toolMessageFromJSON(
1419
1413
  jsonString: string,
1420
- ): SafeParseResult<Five, SDKValidationError> {
1414
+ ): SafeParseResult<ToolMessage, SDKValidationError> {
1421
1415
  return safeParse(
1422
1416
  jsonString,
1423
- (x) => Five$inboundSchema.parse(JSON.parse(x)),
1424
- `Failed to parse 'Five' from JSON`,
1417
+ (x) => ToolMessage$inboundSchema.parse(JSON.parse(x)),
1418
+ `Failed to parse 'ToolMessage' from JSON`,
1425
1419
  );
1426
1420
  }
1427
1421
 
@@ -1449,8 +1443,8 @@ export namespace DeploymentGetConfig2DeploymentsRequestType$ {
1449
1443
  }
1450
1444
 
1451
1445
  /** @internal */
1452
- export const DeploymentGetConfig22$inboundSchema: z.ZodType<
1453
- DeploymentGetConfig22,
1446
+ export const RefusalContentPart$inboundSchema: z.ZodType<
1447
+ RefusalContentPart,
1454
1448
  z.ZodTypeDef,
1455
1449
  unknown
1456
1450
  > = z.object({
@@ -1459,16 +1453,16 @@ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
1459
1453
  });
1460
1454
 
1461
1455
  /** @internal */
1462
- export type DeploymentGetConfig22$Outbound = {
1456
+ export type RefusalContentPart$Outbound = {
1463
1457
  type: string;
1464
1458
  refusal: string;
1465
1459
  };
1466
1460
 
1467
1461
  /** @internal */
1468
- export const DeploymentGetConfig22$outboundSchema: z.ZodType<
1469
- DeploymentGetConfig22$Outbound,
1462
+ export const RefusalContentPart$outboundSchema: z.ZodType<
1463
+ RefusalContentPart$Outbound,
1470
1464
  z.ZodTypeDef,
1471
- DeploymentGetConfig22
1465
+ RefusalContentPart
1472
1466
  > = z.object({
1473
1467
  type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
1474
1468
  refusal: z.string(),
@@ -1478,30 +1472,30 @@ export const DeploymentGetConfig22$outboundSchema: z.ZodType<
1478
1472
  * @internal
1479
1473
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1480
1474
  */
1481
- export namespace DeploymentGetConfig22$ {
1482
- /** @deprecated use `DeploymentGetConfig22$inboundSchema` instead. */
1483
- export const inboundSchema = DeploymentGetConfig22$inboundSchema;
1484
- /** @deprecated use `DeploymentGetConfig22$outboundSchema` instead. */
1485
- export const outboundSchema = DeploymentGetConfig22$outboundSchema;
1486
- /** @deprecated use `DeploymentGetConfig22$Outbound` instead. */
1487
- export type Outbound = DeploymentGetConfig22$Outbound;
1475
+ export namespace RefusalContentPart$ {
1476
+ /** @deprecated use `RefusalContentPart$inboundSchema` instead. */
1477
+ export const inboundSchema = RefusalContentPart$inboundSchema;
1478
+ /** @deprecated use `RefusalContentPart$outboundSchema` instead. */
1479
+ export const outboundSchema = RefusalContentPart$outboundSchema;
1480
+ /** @deprecated use `RefusalContentPart$Outbound` instead. */
1481
+ export type Outbound = RefusalContentPart$Outbound;
1488
1482
  }
1489
1483
 
1490
- export function deploymentGetConfig22ToJSON(
1491
- deploymentGetConfig22: DeploymentGetConfig22,
1484
+ export function refusalContentPartToJSON(
1485
+ refusalContentPart: RefusalContentPart,
1492
1486
  ): string {
1493
1487
  return JSON.stringify(
1494
- DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
1488
+ RefusalContentPart$outboundSchema.parse(refusalContentPart),
1495
1489
  );
1496
1490
  }
1497
1491
 
1498
- export function deploymentGetConfig22FromJSON(
1492
+ export function refusalContentPartFromJSON(
1499
1493
  jsonString: string,
1500
- ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
1494
+ ): SafeParseResult<RefusalContentPart, SDKValidationError> {
1501
1495
  return safeParse(
1502
1496
  jsonString,
1503
- (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
1504
- `Failed to parse 'DeploymentGetConfig22' from JSON`,
1497
+ (x) => RefusalContentPart$inboundSchema.parse(JSON.parse(x)),
1498
+ `Failed to parse 'RefusalContentPart' from JSON`,
1505
1499
  );
1506
1500
  }
1507
1501
 
@@ -1529,8 +1523,8 @@ export namespace DeploymentGetConfig2DeploymentsType$ {
1529
1523
  }
1530
1524
 
1531
1525
  /** @internal */
1532
- export const DeploymentGetConfig21$inboundSchema: z.ZodType<
1533
- DeploymentGetConfig21,
1526
+ export const TextContentPart$inboundSchema: z.ZodType<
1527
+ TextContentPart,
1534
1528
  z.ZodTypeDef,
1535
1529
  unknown
1536
1530
  > = z.object({
@@ -1539,16 +1533,16 @@ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
1539
1533
  });
1540
1534
 
1541
1535
  /** @internal */
1542
- export type DeploymentGetConfig21$Outbound = {
1536
+ export type TextContentPart$Outbound = {
1543
1537
  type: string;
1544
1538
  text: string;
1545
1539
  };
1546
1540
 
1547
1541
  /** @internal */
1548
- export const DeploymentGetConfig21$outboundSchema: z.ZodType<
1549
- DeploymentGetConfig21$Outbound,
1542
+ export const TextContentPart$outboundSchema: z.ZodType<
1543
+ TextContentPart$Outbound,
1550
1544
  z.ZodTypeDef,
1551
- DeploymentGetConfig21
1545
+ TextContentPart
1552
1546
  > = z.object({
1553
1547
  type: DeploymentGetConfig2DeploymentsType$outboundSchema,
1554
1548
  text: z.string(),
@@ -1558,88 +1552,80 @@ export const DeploymentGetConfig21$outboundSchema: z.ZodType<
1558
1552
  * @internal
1559
1553
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1560
1554
  */
1561
- export namespace DeploymentGetConfig21$ {
1562
- /** @deprecated use `DeploymentGetConfig21$inboundSchema` instead. */
1563
- export const inboundSchema = DeploymentGetConfig21$inboundSchema;
1564
- /** @deprecated use `DeploymentGetConfig21$outboundSchema` instead. */
1565
- export const outboundSchema = DeploymentGetConfig21$outboundSchema;
1566
- /** @deprecated use `DeploymentGetConfig21$Outbound` instead. */
1567
- export type Outbound = DeploymentGetConfig21$Outbound;
1555
+ export namespace TextContentPart$ {
1556
+ /** @deprecated use `TextContentPart$inboundSchema` instead. */
1557
+ export const inboundSchema = TextContentPart$inboundSchema;
1558
+ /** @deprecated use `TextContentPart$outboundSchema` instead. */
1559
+ export const outboundSchema = TextContentPart$outboundSchema;
1560
+ /** @deprecated use `TextContentPart$Outbound` instead. */
1561
+ export type Outbound = TextContentPart$Outbound;
1568
1562
  }
1569
1563
 
1570
- export function deploymentGetConfig21ToJSON(
1571
- deploymentGetConfig21: DeploymentGetConfig21,
1564
+ export function textContentPartToJSON(
1565
+ textContentPart: TextContentPart,
1572
1566
  ): string {
1573
- return JSON.stringify(
1574
- DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
1575
- );
1567
+ return JSON.stringify(TextContentPart$outboundSchema.parse(textContentPart));
1576
1568
  }
1577
1569
 
1578
- export function deploymentGetConfig21FromJSON(
1570
+ export function textContentPartFromJSON(
1579
1571
  jsonString: string,
1580
- ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
1572
+ ): SafeParseResult<TextContentPart, SDKValidationError> {
1581
1573
  return safeParse(
1582
1574
  jsonString,
1583
- (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
1584
- `Failed to parse 'DeploymentGetConfig21' from JSON`,
1575
+ (x) => TextContentPart$inboundSchema.parse(JSON.parse(x)),
1576
+ `Failed to parse 'TextContentPart' from JSON`,
1585
1577
  );
1586
1578
  }
1587
1579
 
1588
1580
  /** @internal */
1589
- export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
1590
- DeploymentGetConfigContent2,
1581
+ export const Content2$inboundSchema: z.ZodType<
1582
+ Content2,
1591
1583
  z.ZodTypeDef,
1592
1584
  unknown
1593
1585
  > = z.union([
1594
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
1595
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
1586
+ z.lazy(() => TextContentPart$inboundSchema),
1587
+ z.lazy(() => RefusalContentPart$inboundSchema),
1596
1588
  ]);
1597
1589
 
1598
1590
  /** @internal */
1599
- export type DeploymentGetConfigContent2$Outbound =
1600
- | DeploymentGetConfig21$Outbound
1601
- | DeploymentGetConfig22$Outbound;
1591
+ export type Content2$Outbound =
1592
+ | TextContentPart$Outbound
1593
+ | RefusalContentPart$Outbound;
1602
1594
 
1603
1595
  /** @internal */
1604
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1605
- DeploymentGetConfigContent2$Outbound,
1596
+ export const Content2$outboundSchema: z.ZodType<
1597
+ Content2$Outbound,
1606
1598
  z.ZodTypeDef,
1607
- DeploymentGetConfigContent2
1599
+ Content2
1608
1600
  > = z.union([
1609
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
1610
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
1601
+ z.lazy(() => TextContentPart$outboundSchema),
1602
+ z.lazy(() => RefusalContentPart$outboundSchema),
1611
1603
  ]);
1612
1604
 
1613
1605
  /**
1614
1606
  * @internal
1615
1607
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1616
1608
  */
1617
- export namespace DeploymentGetConfigContent2$ {
1618
- /** @deprecated use `DeploymentGetConfigContent2$inboundSchema` instead. */
1619
- export const inboundSchema = DeploymentGetConfigContent2$inboundSchema;
1620
- /** @deprecated use `DeploymentGetConfigContent2$outboundSchema` instead. */
1621
- export const outboundSchema = DeploymentGetConfigContent2$outboundSchema;
1622
- /** @deprecated use `DeploymentGetConfigContent2$Outbound` instead. */
1623
- export type Outbound = DeploymentGetConfigContent2$Outbound;
1609
+ export namespace Content2$ {
1610
+ /** @deprecated use `Content2$inboundSchema` instead. */
1611
+ export const inboundSchema = Content2$inboundSchema;
1612
+ /** @deprecated use `Content2$outboundSchema` instead. */
1613
+ export const outboundSchema = Content2$outboundSchema;
1614
+ /** @deprecated use `Content2$Outbound` instead. */
1615
+ export type Outbound = Content2$Outbound;
1624
1616
  }
1625
1617
 
1626
- export function deploymentGetConfigContent2ToJSON(
1627
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
1628
- ): string {
1629
- return JSON.stringify(
1630
- DeploymentGetConfigContent2$outboundSchema.parse(
1631
- deploymentGetConfigContent2,
1632
- ),
1633
- );
1618
+ export function content2ToJSON(content2: Content2): string {
1619
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
1634
1620
  }
1635
1621
 
1636
- export function deploymentGetConfigContent2FromJSON(
1622
+ export function content2FromJSON(
1637
1623
  jsonString: string,
1638
- ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
1624
+ ): SafeParseResult<Content2, SDKValidationError> {
1639
1625
  return safeParse(
1640
1626
  jsonString,
1641
- (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
1642
- `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
1627
+ (x) => Content2$inboundSchema.parse(JSON.parse(x)),
1628
+ `Failed to parse 'Content2' from JSON`,
1643
1629
  );
1644
1630
  }
1645
1631
 
@@ -1651,15 +1637,15 @@ export const PrefixMessagesContent$inboundSchema: z.ZodType<
1651
1637
  > = z.union([
1652
1638
  z.string(),
1653
1639
  z.array(z.union([
1654
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
1655
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
1640
+ z.lazy(() => TextContentPart$inboundSchema),
1641
+ z.lazy(() => RefusalContentPart$inboundSchema),
1656
1642
  ])),
1657
1643
  ]);
1658
1644
 
1659
1645
  /** @internal */
1660
1646
  export type PrefixMessagesContent$Outbound =
1661
1647
  | string
1662
- | Array<DeploymentGetConfig21$Outbound | DeploymentGetConfig22$Outbound>;
1648
+ | Array<TextContentPart$Outbound | RefusalContentPart$Outbound>;
1663
1649
 
1664
1650
  /** @internal */
1665
1651
  export const PrefixMessagesContent$outboundSchema: z.ZodType<
@@ -1669,8 +1655,8 @@ export const PrefixMessagesContent$outboundSchema: z.ZodType<
1669
1655
  > = z.union([
1670
1656
  z.string(),
1671
1657
  z.array(z.union([
1672
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
1673
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
1658
+ z.lazy(() => TextContentPart$outboundSchema),
1659
+ z.lazy(() => RefusalContentPart$outboundSchema),
1674
1660
  ])),
1675
1661
  ]);
1676
1662
 
@@ -1906,31 +1892,34 @@ export function toolCallsFromJSON(
1906
1892
  }
1907
1893
 
1908
1894
  /** @internal */
1909
- export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
1910
- .object({
1911
- content: z.union([
1912
- z.string(),
1913
- z.array(z.union([
1914
- z.lazy(() => DeploymentGetConfig21$inboundSchema),
1915
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
1916
- ])),
1917
- ]).optional(),
1918
- refusal: z.nullable(z.string()).optional(),
1919
- role: DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema,
1920
- name: z.string().optional(),
1921
- audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
1922
- tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
1923
- }).transform((v) => {
1924
- return remap$(v, {
1925
- "tool_calls": "toolCalls",
1926
- });
1895
+ export const AssistantMessage$inboundSchema: z.ZodType<
1896
+ AssistantMessage,
1897
+ z.ZodTypeDef,
1898
+ unknown
1899
+ > = z.object({
1900
+ content: z.union([
1901
+ z.string(),
1902
+ z.array(z.union([
1903
+ z.lazy(() => TextContentPart$inboundSchema),
1904
+ z.lazy(() => RefusalContentPart$inboundSchema),
1905
+ ])),
1906
+ ]).optional(),
1907
+ refusal: z.nullable(z.string()).optional(),
1908
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema,
1909
+ name: z.string().optional(),
1910
+ audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
1911
+ tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
1912
+ }).transform((v) => {
1913
+ return remap$(v, {
1914
+ "tool_calls": "toolCalls",
1927
1915
  });
1916
+ });
1928
1917
 
1929
1918
  /** @internal */
1930
- export type Four$Outbound = {
1919
+ export type AssistantMessage$Outbound = {
1931
1920
  content?:
1932
1921
  | string
1933
- | Array<DeploymentGetConfig21$Outbound | DeploymentGetConfig22$Outbound>
1922
+ | Array<TextContentPart$Outbound | RefusalContentPart$Outbound>
1934
1923
  | undefined;
1935
1924
  refusal?: string | null | undefined;
1936
1925
  role: string;
@@ -1940,50 +1929,57 @@ export type Four$Outbound = {
1940
1929
  };
1941
1930
 
1942
1931
  /** @internal */
1943
- export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
1944
- z.object({
1945
- content: z.union([
1946
- z.string(),
1947
- z.array(z.union([
1948
- z.lazy(() => DeploymentGetConfig21$outboundSchema),
1949
- z.lazy(() => DeploymentGetConfig22$outboundSchema),
1950
- ])),
1951
- ]).optional(),
1952
- refusal: z.nullable(z.string()).optional(),
1953
- role: DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema,
1954
- name: z.string().optional(),
1955
- audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1956
- toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
1957
- }).transform((v) => {
1958
- return remap$(v, {
1959
- toolCalls: "tool_calls",
1960
- });
1932
+ export const AssistantMessage$outboundSchema: z.ZodType<
1933
+ AssistantMessage$Outbound,
1934
+ z.ZodTypeDef,
1935
+ AssistantMessage
1936
+ > = z.object({
1937
+ content: z.union([
1938
+ z.string(),
1939
+ z.array(z.union([
1940
+ z.lazy(() => TextContentPart$outboundSchema),
1941
+ z.lazy(() => RefusalContentPart$outboundSchema),
1942
+ ])),
1943
+ ]).optional(),
1944
+ refusal: z.nullable(z.string()).optional(),
1945
+ role: DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema,
1946
+ name: z.string().optional(),
1947
+ audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1948
+ toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
1949
+ }).transform((v) => {
1950
+ return remap$(v, {
1951
+ toolCalls: "tool_calls",
1961
1952
  });
1953
+ });
1962
1954
 
1963
1955
  /**
1964
1956
  * @internal
1965
1957
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1966
1958
  */
1967
- export namespace Four$ {
1968
- /** @deprecated use `Four$inboundSchema` instead. */
1969
- export const inboundSchema = Four$inboundSchema;
1970
- /** @deprecated use `Four$outboundSchema` instead. */
1971
- export const outboundSchema = Four$outboundSchema;
1972
- /** @deprecated use `Four$Outbound` instead. */
1973
- export type Outbound = Four$Outbound;
1959
+ export namespace AssistantMessage$ {
1960
+ /** @deprecated use `AssistantMessage$inboundSchema` instead. */
1961
+ export const inboundSchema = AssistantMessage$inboundSchema;
1962
+ /** @deprecated use `AssistantMessage$outboundSchema` instead. */
1963
+ export const outboundSchema = AssistantMessage$outboundSchema;
1964
+ /** @deprecated use `AssistantMessage$Outbound` instead. */
1965
+ export type Outbound = AssistantMessage$Outbound;
1974
1966
  }
1975
1967
 
1976
- export function fourToJSON(four: Four): string {
1977
- return JSON.stringify(Four$outboundSchema.parse(four));
1968
+ export function assistantMessageToJSON(
1969
+ assistantMessage: AssistantMessage,
1970
+ ): string {
1971
+ return JSON.stringify(
1972
+ AssistantMessage$outboundSchema.parse(assistantMessage),
1973
+ );
1978
1974
  }
1979
1975
 
1980
- export function fourFromJSON(
1976
+ export function assistantMessageFromJSON(
1981
1977
  jsonString: string,
1982
- ): SafeParseResult<Four, SDKValidationError> {
1978
+ ): SafeParseResult<AssistantMessage, SDKValidationError> {
1983
1979
  return safeParse(
1984
1980
  jsonString,
1985
- (x) => Four$inboundSchema.parse(JSON.parse(x)),
1986
- `Failed to parse 'Four' from JSON`,
1981
+ (x) => AssistantMessage$inboundSchema.parse(JSON.parse(x)),
1982
+ `Failed to parse 'AssistantMessage' from JSON`,
1987
1983
  );
1988
1984
  }
1989
1985
 
@@ -2105,7 +2101,7 @@ export function inputAudioFromJSON(
2105
2101
  }
2106
2102
 
2107
2103
  /** @internal */
2108
- export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
2104
+ export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
2109
2105
  .object({
2110
2106
  type: DeploymentGetConfig2Type$inboundSchema,
2111
2107
  input_audio: z.lazy(() => InputAudio$inboundSchema),
@@ -2116,46 +2112,49 @@ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
2116
2112
  });
2117
2113
 
2118
2114
  /** @internal */
2119
- export type Two3$Outbound = {
2115
+ export type Three$Outbound = {
2120
2116
  type: string;
2121
2117
  input_audio: InputAudio$Outbound;
2122
2118
  };
2123
2119
 
2124
2120
  /** @internal */
2125
- export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
2126
- z.object({
2127
- type: DeploymentGetConfig2Type$outboundSchema,
2128
- inputAudio: z.lazy(() => InputAudio$outboundSchema),
2129
- }).transform((v) => {
2130
- return remap$(v, {
2131
- inputAudio: "input_audio",
2132
- });
2121
+ export const Three$outboundSchema: z.ZodType<
2122
+ Three$Outbound,
2123
+ z.ZodTypeDef,
2124
+ Three
2125
+ > = z.object({
2126
+ type: DeploymentGetConfig2Type$outboundSchema,
2127
+ inputAudio: z.lazy(() => InputAudio$outboundSchema),
2128
+ }).transform((v) => {
2129
+ return remap$(v, {
2130
+ inputAudio: "input_audio",
2133
2131
  });
2132
+ });
2134
2133
 
2135
2134
  /**
2136
2135
  * @internal
2137
2136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2138
2137
  */
2139
- export namespace Two3$ {
2140
- /** @deprecated use `Two3$inboundSchema` instead. */
2141
- export const inboundSchema = Two3$inboundSchema;
2142
- /** @deprecated use `Two3$outboundSchema` instead. */
2143
- export const outboundSchema = Two3$outboundSchema;
2144
- /** @deprecated use `Two3$Outbound` instead. */
2145
- export type Outbound = Two3$Outbound;
2138
+ export namespace Three$ {
2139
+ /** @deprecated use `Three$inboundSchema` instead. */
2140
+ export const inboundSchema = Three$inboundSchema;
2141
+ /** @deprecated use `Three$outboundSchema` instead. */
2142
+ export const outboundSchema = Three$outboundSchema;
2143
+ /** @deprecated use `Three$Outbound` instead. */
2144
+ export type Outbound = Three$Outbound;
2146
2145
  }
2147
2146
 
2148
- export function two3ToJSON(two3: Two3): string {
2149
- return JSON.stringify(Two3$outboundSchema.parse(two3));
2147
+ export function threeToJSON(three: Three): string {
2148
+ return JSON.stringify(Three$outboundSchema.parse(three));
2150
2149
  }
2151
2150
 
2152
- export function two3FromJSON(
2151
+ export function threeFromJSON(
2153
2152
  jsonString: string,
2154
- ): SafeParseResult<Two3, SDKValidationError> {
2153
+ ): SafeParseResult<Three, SDKValidationError> {
2155
2154
  return safeParse(
2156
2155
  jsonString,
2157
- (x) => Two3$inboundSchema.parse(JSON.parse(x)),
2158
- `Failed to parse 'Two3' from JSON`,
2156
+ (x) => Three$inboundSchema.parse(JSON.parse(x)),
2157
+ `Failed to parse 'Three' from JSON`,
2159
2158
  );
2160
2159
  }
2161
2160
 
@@ -2326,21 +2325,21 @@ export namespace Type$ {
2326
2325
  }
2327
2326
 
2328
2327
  /** @internal */
2329
- export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
2328
+ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
2330
2329
  .object({
2331
2330
  type: Type$inboundSchema,
2332
2331
  text: z.string(),
2333
2332
  });
2334
2333
 
2335
2334
  /** @internal */
2336
- export type Two1$Outbound = {
2335
+ export type One$Outbound = {
2337
2336
  type: string;
2338
2337
  text: string;
2339
2338
  };
2340
2339
 
2341
2340
  /** @internal */
2342
- export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
2343
- z.object({
2341
+ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
2342
+ .object({
2344
2343
  type: Type$outboundSchema,
2345
2344
  text: z.string(),
2346
2345
  });
@@ -2349,78 +2348,73 @@ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
2349
2348
  * @internal
2350
2349
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2351
2350
  */
2352
- export namespace Two1$ {
2353
- /** @deprecated use `Two1$inboundSchema` instead. */
2354
- export const inboundSchema = Two1$inboundSchema;
2355
- /** @deprecated use `Two1$outboundSchema` instead. */
2356
- export const outboundSchema = Two1$outboundSchema;
2357
- /** @deprecated use `Two1$Outbound` instead. */
2358
- export type Outbound = Two1$Outbound;
2351
+ export namespace One$ {
2352
+ /** @deprecated use `One$inboundSchema` instead. */
2353
+ export const inboundSchema = One$inboundSchema;
2354
+ /** @deprecated use `One$outboundSchema` instead. */
2355
+ export const outboundSchema = One$outboundSchema;
2356
+ /** @deprecated use `One$Outbound` instead. */
2357
+ export type Outbound = One$Outbound;
2359
2358
  }
2360
2359
 
2361
- export function two1ToJSON(two1: Two1): string {
2362
- return JSON.stringify(Two1$outboundSchema.parse(two1));
2360
+ export function oneToJSON(one: One): string {
2361
+ return JSON.stringify(One$outboundSchema.parse(one));
2363
2362
  }
2364
2363
 
2365
- export function two1FromJSON(
2364
+ export function oneFromJSON(
2366
2365
  jsonString: string,
2367
- ): SafeParseResult<Two1, SDKValidationError> {
2366
+ ): SafeParseResult<One, SDKValidationError> {
2368
2367
  return safeParse(
2369
2368
  jsonString,
2370
- (x) => Two1$inboundSchema.parse(JSON.parse(x)),
2371
- `Failed to parse 'Two1' from JSON`,
2369
+ (x) => One$inboundSchema.parse(JSON.parse(x)),
2370
+ `Failed to parse 'One' from JSON`,
2372
2371
  );
2373
2372
  }
2374
2373
 
2375
2374
  /** @internal */
2376
- export const Content2$inboundSchema: z.ZodType<
2377
- Content2,
2378
- z.ZodTypeDef,
2379
- unknown
2380
- > = z.union([
2381
- z.lazy(() => Two1$inboundSchema),
2382
- z.lazy(() => Two2$inboundSchema),
2383
- z.lazy(() => Two3$inboundSchema),
2384
- ]);
2375
+ export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
2376
+ [
2377
+ z.lazy(() => One$inboundSchema),
2378
+ z.lazy(() => Two2$inboundSchema),
2379
+ z.lazy(() => Three$inboundSchema),
2380
+ ],
2381
+ );
2385
2382
 
2386
2383
  /** @internal */
2387
- export type Content2$Outbound = Two1$Outbound | Two2$Outbound | Two3$Outbound;
2384
+ export type Two$Outbound = One$Outbound | Two2$Outbound | Three$Outbound;
2388
2385
 
2389
2386
  /** @internal */
2390
- export const Content2$outboundSchema: z.ZodType<
2391
- Content2$Outbound,
2392
- z.ZodTypeDef,
2393
- Content2
2394
- > = z.union([
2395
- z.lazy(() => Two1$outboundSchema),
2396
- z.lazy(() => Two2$outboundSchema),
2397
- z.lazy(() => Two3$outboundSchema),
2398
- ]);
2387
+ export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
2388
+ .union([
2389
+ z.lazy(() => One$outboundSchema),
2390
+ z.lazy(() => Two2$outboundSchema),
2391
+ z.lazy(() => Three$outboundSchema),
2392
+ ]);
2399
2393
 
2400
2394
  /**
2401
2395
  * @internal
2402
2396
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2403
2397
  */
2404
- export namespace Content2$ {
2405
- /** @deprecated use `Content2$inboundSchema` instead. */
2406
- export const inboundSchema = Content2$inboundSchema;
2407
- /** @deprecated use `Content2$outboundSchema` instead. */
2408
- export const outboundSchema = Content2$outboundSchema;
2409
- /** @deprecated use `Content2$Outbound` instead. */
2410
- export type Outbound = Content2$Outbound;
2398
+ export namespace Two$ {
2399
+ /** @deprecated use `Two$inboundSchema` instead. */
2400
+ export const inboundSchema = Two$inboundSchema;
2401
+ /** @deprecated use `Two$outboundSchema` instead. */
2402
+ export const outboundSchema = Two$outboundSchema;
2403
+ /** @deprecated use `Two$Outbound` instead. */
2404
+ export type Outbound = Two$Outbound;
2411
2405
  }
2412
2406
 
2413
- export function content2ToJSON(content2: Content2): string {
2414
- return JSON.stringify(Content2$outboundSchema.parse(content2));
2407
+ export function twoToJSON(two: Two): string {
2408
+ return JSON.stringify(Two$outboundSchema.parse(two));
2415
2409
  }
2416
2410
 
2417
- export function content2FromJSON(
2411
+ export function twoFromJSON(
2418
2412
  jsonString: string,
2419
- ): SafeParseResult<Content2, SDKValidationError> {
2413
+ ): SafeParseResult<Two, SDKValidationError> {
2420
2414
  return safeParse(
2421
2415
  jsonString,
2422
- (x) => Content2$inboundSchema.parse(JSON.parse(x)),
2423
- `Failed to parse 'Content2' from JSON`,
2416
+ (x) => Two$inboundSchema.parse(JSON.parse(x)),
2417
+ `Failed to parse 'Two' from JSON`,
2424
2418
  );
2425
2419
  }
2426
2420
 
@@ -2429,16 +2423,16 @@ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
2429
2423
  z.union([
2430
2424
  z.string(),
2431
2425
  z.array(z.union([
2432
- z.lazy(() => Two1$inboundSchema),
2426
+ z.lazy(() => One$inboundSchema),
2433
2427
  z.lazy(() => Two2$inboundSchema),
2434
- z.lazy(() => Two3$inboundSchema),
2428
+ z.lazy(() => Three$inboundSchema),
2435
2429
  ])),
2436
2430
  ]);
2437
2431
 
2438
2432
  /** @internal */
2439
2433
  export type Content$Outbound =
2440
2434
  | string
2441
- | Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
2435
+ | Array<One$Outbound | Two2$Outbound | Three$Outbound>;
2442
2436
 
2443
2437
  /** @internal */
2444
2438
  export const Content$outboundSchema: z.ZodType<
@@ -2448,9 +2442,9 @@ export const Content$outboundSchema: z.ZodType<
2448
2442
  > = z.union([
2449
2443
  z.string(),
2450
2444
  z.array(z.union([
2451
- z.lazy(() => Two1$outboundSchema),
2445
+ z.lazy(() => One$outboundSchema),
2452
2446
  z.lazy(() => Two2$outboundSchema),
2453
- z.lazy(() => Two3$outboundSchema),
2447
+ z.lazy(() => Three$outboundSchema),
2454
2448
  ])),
2455
2449
  ]);
2456
2450
 
@@ -2482,41 +2476,44 @@ export function contentFromJSON(
2482
2476
  }
2483
2477
 
2484
2478
  /** @internal */
2485
- export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
2486
- .object({
2487
- role: DeploymentGetConfigPrefixMessagesRole$inboundSchema,
2488
- name: z.string().optional(),
2489
- content: z.union([
2490
- z.string(),
2491
- z.array(z.union([
2492
- z.lazy(() => Two1$inboundSchema),
2493
- z.lazy(() => Two2$inboundSchema),
2494
- z.lazy(() => Two3$inboundSchema),
2495
- ])),
2496
- ]),
2497
- });
2479
+ export const UserMessage$inboundSchema: z.ZodType<
2480
+ UserMessage,
2481
+ z.ZodTypeDef,
2482
+ unknown
2483
+ > = z.object({
2484
+ role: DeploymentGetConfigPrefixMessagesRole$inboundSchema,
2485
+ name: z.string().optional(),
2486
+ content: z.union([
2487
+ z.string(),
2488
+ z.array(z.union([
2489
+ z.lazy(() => One$inboundSchema),
2490
+ z.lazy(() => Two2$inboundSchema),
2491
+ z.lazy(() => Three$inboundSchema),
2492
+ ])),
2493
+ ]),
2494
+ });
2498
2495
 
2499
2496
  /** @internal */
2500
- export type Three$Outbound = {
2497
+ export type UserMessage$Outbound = {
2501
2498
  role: string;
2502
2499
  name?: string | undefined;
2503
- content: string | Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
2500
+ content: string | Array<One$Outbound | Two2$Outbound | Three$Outbound>;
2504
2501
  };
2505
2502
 
2506
2503
  /** @internal */
2507
- export const Three$outboundSchema: z.ZodType<
2508
- Three$Outbound,
2504
+ export const UserMessage$outboundSchema: z.ZodType<
2505
+ UserMessage$Outbound,
2509
2506
  z.ZodTypeDef,
2510
- Three
2507
+ UserMessage
2511
2508
  > = z.object({
2512
2509
  role: DeploymentGetConfigPrefixMessagesRole$outboundSchema,
2513
2510
  name: z.string().optional(),
2514
2511
  content: z.union([
2515
2512
  z.string(),
2516
2513
  z.array(z.union([
2517
- z.lazy(() => Two1$outboundSchema),
2514
+ z.lazy(() => One$outboundSchema),
2518
2515
  z.lazy(() => Two2$outboundSchema),
2519
- z.lazy(() => Two3$outboundSchema),
2516
+ z.lazy(() => Three$outboundSchema),
2520
2517
  ])),
2521
2518
  ]),
2522
2519
  });
@@ -2525,26 +2522,26 @@ export const Three$outboundSchema: z.ZodType<
2525
2522
  * @internal
2526
2523
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2527
2524
  */
2528
- export namespace Three$ {
2529
- /** @deprecated use `Three$inboundSchema` instead. */
2530
- export const inboundSchema = Three$inboundSchema;
2531
- /** @deprecated use `Three$outboundSchema` instead. */
2532
- export const outboundSchema = Three$outboundSchema;
2533
- /** @deprecated use `Three$Outbound` instead. */
2534
- export type Outbound = Three$Outbound;
2525
+ export namespace UserMessage$ {
2526
+ /** @deprecated use `UserMessage$inboundSchema` instead. */
2527
+ export const inboundSchema = UserMessage$inboundSchema;
2528
+ /** @deprecated use `UserMessage$outboundSchema` instead. */
2529
+ export const outboundSchema = UserMessage$outboundSchema;
2530
+ /** @deprecated use `UserMessage$Outbound` instead. */
2531
+ export type Outbound = UserMessage$Outbound;
2535
2532
  }
2536
2533
 
2537
- export function threeToJSON(three: Three): string {
2538
- return JSON.stringify(Three$outboundSchema.parse(three));
2534
+ export function userMessageToJSON(userMessage: UserMessage): string {
2535
+ return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2539
2536
  }
2540
2537
 
2541
- export function threeFromJSON(
2538
+ export function userMessageFromJSON(
2542
2539
  jsonString: string,
2543
- ): SafeParseResult<Three, SDKValidationError> {
2540
+ ): SafeParseResult<UserMessage, SDKValidationError> {
2544
2541
  return safeParse(
2545
2542
  jsonString,
2546
- (x) => Three$inboundSchema.parse(JSON.parse(x)),
2547
- `Failed to parse 'Three' from JSON`,
2543
+ (x) => UserMessage$inboundSchema.parse(JSON.parse(x)),
2544
+ `Failed to parse 'UserMessage' from JSON`,
2548
2545
  );
2549
2546
  }
2550
2547
 
@@ -2570,52 +2567,58 @@ export namespace PrefixMessagesRole$ {
2570
2567
  }
2571
2568
 
2572
2569
  /** @internal */
2573
- export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
2574
- .object({
2575
- role: PrefixMessagesRole$inboundSchema,
2576
- content: z.string(),
2577
- name: z.string().optional(),
2578
- });
2570
+ export const SystemMessage$inboundSchema: z.ZodType<
2571
+ SystemMessage,
2572
+ z.ZodTypeDef,
2573
+ unknown
2574
+ > = z.object({
2575
+ role: PrefixMessagesRole$inboundSchema,
2576
+ content: z.string(),
2577
+ name: z.string().optional(),
2578
+ });
2579
2579
 
2580
2580
  /** @internal */
2581
- export type Two$Outbound = {
2581
+ export type SystemMessage$Outbound = {
2582
2582
  role: string;
2583
2583
  content: string;
2584
2584
  name?: string | undefined;
2585
2585
  };
2586
2586
 
2587
2587
  /** @internal */
2588
- export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
2589
- .object({
2590
- role: PrefixMessagesRole$outboundSchema,
2591
- content: z.string(),
2592
- name: z.string().optional(),
2593
- });
2588
+ export const SystemMessage$outboundSchema: z.ZodType<
2589
+ SystemMessage$Outbound,
2590
+ z.ZodTypeDef,
2591
+ SystemMessage
2592
+ > = z.object({
2593
+ role: PrefixMessagesRole$outboundSchema,
2594
+ content: z.string(),
2595
+ name: z.string().optional(),
2596
+ });
2594
2597
 
2595
2598
  /**
2596
2599
  * @internal
2597
2600
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2598
2601
  */
2599
- export namespace Two$ {
2600
- /** @deprecated use `Two$inboundSchema` instead. */
2601
- export const inboundSchema = Two$inboundSchema;
2602
- /** @deprecated use `Two$outboundSchema` instead. */
2603
- export const outboundSchema = Two$outboundSchema;
2604
- /** @deprecated use `Two$Outbound` instead. */
2605
- export type Outbound = Two$Outbound;
2602
+ export namespace SystemMessage$ {
2603
+ /** @deprecated use `SystemMessage$inboundSchema` instead. */
2604
+ export const inboundSchema = SystemMessage$inboundSchema;
2605
+ /** @deprecated use `SystemMessage$outboundSchema` instead. */
2606
+ export const outboundSchema = SystemMessage$outboundSchema;
2607
+ /** @deprecated use `SystemMessage$Outbound` instead. */
2608
+ export type Outbound = SystemMessage$Outbound;
2606
2609
  }
2607
2610
 
2608
- export function twoToJSON(two: Two): string {
2609
- return JSON.stringify(Two$outboundSchema.parse(two));
2611
+ export function systemMessageToJSON(systemMessage: SystemMessage): string {
2612
+ return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2610
2613
  }
2611
2614
 
2612
- export function twoFromJSON(
2615
+ export function systemMessageFromJSON(
2613
2616
  jsonString: string,
2614
- ): SafeParseResult<Two, SDKValidationError> {
2617
+ ): SafeParseResult<SystemMessage, SDKValidationError> {
2615
2618
  return safeParse(
2616
2619
  jsonString,
2617
- (x) => Two$inboundSchema.parse(JSON.parse(x)),
2618
- `Failed to parse 'Two' from JSON`,
2620
+ (x) => SystemMessage$inboundSchema.parse(JSON.parse(x)),
2621
+ `Failed to parse 'SystemMessage' from JSON`,
2619
2622
  );
2620
2623
  }
2621
2624
 
@@ -2640,52 +2643,62 @@ export namespace Role$ {
2640
2643
  }
2641
2644
 
2642
2645
  /** @internal */
2643
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
2644
- .object({
2645
- role: Role$inboundSchema,
2646
- content: z.string(),
2647
- name: z.string().optional(),
2648
- });
2646
+ export const DeveloperMessage$inboundSchema: z.ZodType<
2647
+ DeveloperMessage,
2648
+ z.ZodTypeDef,
2649
+ unknown
2650
+ > = z.object({
2651
+ role: Role$inboundSchema,
2652
+ content: z.string(),
2653
+ name: z.string().optional(),
2654
+ });
2649
2655
 
2650
2656
  /** @internal */
2651
- export type One$Outbound = {
2657
+ export type DeveloperMessage$Outbound = {
2652
2658
  role: string;
2653
2659
  content: string;
2654
2660
  name?: string | undefined;
2655
2661
  };
2656
2662
 
2657
2663
  /** @internal */
2658
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
2659
- .object({
2660
- role: Role$outboundSchema,
2661
- content: z.string(),
2662
- name: z.string().optional(),
2663
- });
2664
+ export const DeveloperMessage$outboundSchema: z.ZodType<
2665
+ DeveloperMessage$Outbound,
2666
+ z.ZodTypeDef,
2667
+ DeveloperMessage
2668
+ > = z.object({
2669
+ role: Role$outboundSchema,
2670
+ content: z.string(),
2671
+ name: z.string().optional(),
2672
+ });
2664
2673
 
2665
2674
  /**
2666
2675
  * @internal
2667
2676
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2668
2677
  */
2669
- export namespace One$ {
2670
- /** @deprecated use `One$inboundSchema` instead. */
2671
- export const inboundSchema = One$inboundSchema;
2672
- /** @deprecated use `One$outboundSchema` instead. */
2673
- export const outboundSchema = One$outboundSchema;
2674
- /** @deprecated use `One$Outbound` instead. */
2675
- export type Outbound = One$Outbound;
2678
+ export namespace DeveloperMessage$ {
2679
+ /** @deprecated use `DeveloperMessage$inboundSchema` instead. */
2680
+ export const inboundSchema = DeveloperMessage$inboundSchema;
2681
+ /** @deprecated use `DeveloperMessage$outboundSchema` instead. */
2682
+ export const outboundSchema = DeveloperMessage$outboundSchema;
2683
+ /** @deprecated use `DeveloperMessage$Outbound` instead. */
2684
+ export type Outbound = DeveloperMessage$Outbound;
2676
2685
  }
2677
2686
 
2678
- export function oneToJSON(one: One): string {
2679
- return JSON.stringify(One$outboundSchema.parse(one));
2687
+ export function developerMessageToJSON(
2688
+ developerMessage: DeveloperMessage,
2689
+ ): string {
2690
+ return JSON.stringify(
2691
+ DeveloperMessage$outboundSchema.parse(developerMessage),
2692
+ );
2680
2693
  }
2681
2694
 
2682
- export function oneFromJSON(
2695
+ export function developerMessageFromJSON(
2683
2696
  jsonString: string,
2684
- ): SafeParseResult<One, SDKValidationError> {
2697
+ ): SafeParseResult<DeveloperMessage, SDKValidationError> {
2685
2698
  return safeParse(
2686
2699
  jsonString,
2687
- (x) => One$inboundSchema.parse(JSON.parse(x)),
2688
- `Failed to parse 'One' from JSON`,
2700
+ (x) => DeveloperMessage$inboundSchema.parse(JSON.parse(x)),
2701
+ `Failed to parse 'DeveloperMessage' from JSON`,
2689
2702
  );
2690
2703
  }
2691
2704
 
@@ -2695,20 +2708,20 @@ export const PrefixMessages$inboundSchema: z.ZodType<
2695
2708
  z.ZodTypeDef,
2696
2709
  unknown
2697
2710
  > = z.union([
2698
- z.lazy(() => One$inboundSchema),
2699
- z.lazy(() => Two$inboundSchema),
2700
- z.lazy(() => Three$inboundSchema),
2701
- z.lazy(() => Five$inboundSchema),
2702
- z.lazy(() => Four$inboundSchema),
2711
+ z.lazy(() => DeveloperMessage$inboundSchema),
2712
+ z.lazy(() => SystemMessage$inboundSchema),
2713
+ z.lazy(() => UserMessage$inboundSchema),
2714
+ z.lazy(() => ToolMessage$inboundSchema),
2715
+ z.lazy(() => AssistantMessage$inboundSchema),
2703
2716
  ]);
2704
2717
 
2705
2718
  /** @internal */
2706
2719
  export type PrefixMessages$Outbound =
2707
- | One$Outbound
2708
- | Two$Outbound
2709
- | Three$Outbound
2710
- | Five$Outbound
2711
- | Four$Outbound;
2720
+ | DeveloperMessage$Outbound
2721
+ | SystemMessage$Outbound
2722
+ | UserMessage$Outbound
2723
+ | ToolMessage$Outbound
2724
+ | AssistantMessage$Outbound;
2712
2725
 
2713
2726
  /** @internal */
2714
2727
  export const PrefixMessages$outboundSchema: z.ZodType<
@@ -2716,11 +2729,11 @@ export const PrefixMessages$outboundSchema: z.ZodType<
2716
2729
  z.ZodTypeDef,
2717
2730
  PrefixMessages
2718
2731
  > = z.union([
2719
- z.lazy(() => One$outboundSchema),
2720
- z.lazy(() => Two$outboundSchema),
2721
- z.lazy(() => Three$outboundSchema),
2722
- z.lazy(() => Five$outboundSchema),
2723
- z.lazy(() => Four$outboundSchema),
2732
+ z.lazy(() => DeveloperMessage$outboundSchema),
2733
+ z.lazy(() => SystemMessage$outboundSchema),
2734
+ z.lazy(() => UserMessage$outboundSchema),
2735
+ z.lazy(() => ToolMessage$outboundSchema),
2736
+ z.lazy(() => AssistantMessage$outboundSchema),
2724
2737
  ]);
2725
2738
 
2726
2739
  /**
@@ -2842,8 +2855,8 @@ export function deploymentGetConfigMessagesDeploymentsContentFromJSON(
2842
2855
  }
2843
2856
 
2844
2857
  /** @internal */
2845
- export const Messages5$inboundSchema: z.ZodType<
2846
- Messages5,
2858
+ export const MessagesToolMessage$inboundSchema: z.ZodType<
2859
+ MessagesToolMessage,
2847
2860
  z.ZodTypeDef,
2848
2861
  unknown
2849
2862
  > = z.object({
@@ -2858,17 +2871,17 @@ export const Messages5$inboundSchema: z.ZodType<
2858
2871
  });
2859
2872
 
2860
2873
  /** @internal */
2861
- export type Messages5$Outbound = {
2874
+ export type MessagesToolMessage$Outbound = {
2862
2875
  role: string;
2863
2876
  content: string | Array<string>;
2864
2877
  tool_call_id: string;
2865
2878
  };
2866
2879
 
2867
2880
  /** @internal */
2868
- export const Messages5$outboundSchema: z.ZodType<
2869
- Messages5$Outbound,
2881
+ export const MessagesToolMessage$outboundSchema: z.ZodType<
2882
+ MessagesToolMessage$Outbound,
2870
2883
  z.ZodTypeDef,
2871
- Messages5
2884
+ MessagesToolMessage
2872
2885
  > = z.object({
2873
2886
  role:
2874
2887
  DeploymentGetConfigMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
@@ -2884,26 +2897,30 @@ export const Messages5$outboundSchema: z.ZodType<
2884
2897
  * @internal
2885
2898
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2886
2899
  */
2887
- export namespace Messages5$ {
2888
- /** @deprecated use `Messages5$inboundSchema` instead. */
2889
- export const inboundSchema = Messages5$inboundSchema;
2890
- /** @deprecated use `Messages5$outboundSchema` instead. */
2891
- export const outboundSchema = Messages5$outboundSchema;
2892
- /** @deprecated use `Messages5$Outbound` instead. */
2893
- export type Outbound = Messages5$Outbound;
2900
+ export namespace MessagesToolMessage$ {
2901
+ /** @deprecated use `MessagesToolMessage$inboundSchema` instead. */
2902
+ export const inboundSchema = MessagesToolMessage$inboundSchema;
2903
+ /** @deprecated use `MessagesToolMessage$outboundSchema` instead. */
2904
+ export const outboundSchema = MessagesToolMessage$outboundSchema;
2905
+ /** @deprecated use `MessagesToolMessage$Outbound` instead. */
2906
+ export type Outbound = MessagesToolMessage$Outbound;
2894
2907
  }
2895
2908
 
2896
- export function messages5ToJSON(messages5: Messages5): string {
2897
- return JSON.stringify(Messages5$outboundSchema.parse(messages5));
2909
+ export function messagesToolMessageToJSON(
2910
+ messagesToolMessage: MessagesToolMessage,
2911
+ ): string {
2912
+ return JSON.stringify(
2913
+ MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2914
+ );
2898
2915
  }
2899
2916
 
2900
- export function messages5FromJSON(
2917
+ export function messagesToolMessageFromJSON(
2901
2918
  jsonString: string,
2902
- ): SafeParseResult<Messages5, SDKValidationError> {
2919
+ ): SafeParseResult<MessagesToolMessage, SDKValidationError> {
2903
2920
  return safeParse(
2904
2921
  jsonString,
2905
- (x) => Messages5$inboundSchema.parse(JSON.parse(x)),
2906
- `Failed to parse 'Messages5' from JSON`,
2922
+ (x) => MessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
2923
+ `Failed to parse 'MessagesToolMessage' from JSON`,
2907
2924
  );
2908
2925
  }
2909
2926
 
@@ -2936,8 +2953,8 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Conte
2936
2953
  }
2937
2954
 
2938
2955
  /** @internal */
2939
- export const DeploymentGetConfig2DeploymentsRequest2$inboundSchema: z.ZodType<
2940
- DeploymentGetConfig2DeploymentsRequest2,
2956
+ export const TwoRefusalContentPart$inboundSchema: z.ZodType<
2957
+ TwoRefusalContentPart,
2941
2958
  z.ZodTypeDef,
2942
2959
  unknown
2943
2960
  > = z.object({
@@ -2947,16 +2964,16 @@ export const DeploymentGetConfig2DeploymentsRequest2$inboundSchema: z.ZodType<
2947
2964
  });
2948
2965
 
2949
2966
  /** @internal */
2950
- export type DeploymentGetConfig2DeploymentsRequest2$Outbound = {
2967
+ export type TwoRefusalContentPart$Outbound = {
2951
2968
  type: string;
2952
2969
  refusal: string;
2953
2970
  };
2954
2971
 
2955
2972
  /** @internal */
2956
- export const DeploymentGetConfig2DeploymentsRequest2$outboundSchema: z.ZodType<
2957
- DeploymentGetConfig2DeploymentsRequest2$Outbound,
2973
+ export const TwoRefusalContentPart$outboundSchema: z.ZodType<
2974
+ TwoRefusalContentPart$Outbound,
2958
2975
  z.ZodTypeDef,
2959
- DeploymentGetConfig2DeploymentsRequest2
2976
+ TwoRefusalContentPart
2960
2977
  > = z.object({
2961
2978
  type:
2962
2979
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
@@ -2967,41 +2984,30 @@ export const DeploymentGetConfig2DeploymentsRequest2$outboundSchema: z.ZodType<
2967
2984
  * @internal
2968
2985
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2969
2986
  */
2970
- export namespace DeploymentGetConfig2DeploymentsRequest2$ {
2971
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest2$inboundSchema` instead. */
2972
- export const inboundSchema =
2973
- DeploymentGetConfig2DeploymentsRequest2$inboundSchema;
2974
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest2$outboundSchema` instead. */
2975
- export const outboundSchema =
2976
- DeploymentGetConfig2DeploymentsRequest2$outboundSchema;
2977
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest2$Outbound` instead. */
2978
- export type Outbound = DeploymentGetConfig2DeploymentsRequest2$Outbound;
2987
+ export namespace TwoRefusalContentPart$ {
2988
+ /** @deprecated use `TwoRefusalContentPart$inboundSchema` instead. */
2989
+ export const inboundSchema = TwoRefusalContentPart$inboundSchema;
2990
+ /** @deprecated use `TwoRefusalContentPart$outboundSchema` instead. */
2991
+ export const outboundSchema = TwoRefusalContentPart$outboundSchema;
2992
+ /** @deprecated use `TwoRefusalContentPart$Outbound` instead. */
2993
+ export type Outbound = TwoRefusalContentPart$Outbound;
2979
2994
  }
2980
2995
 
2981
- export function deploymentGetConfig2DeploymentsRequest2ToJSON(
2982
- deploymentGetConfig2DeploymentsRequest2:
2983
- DeploymentGetConfig2DeploymentsRequest2,
2996
+ export function twoRefusalContentPartToJSON(
2997
+ twoRefusalContentPart: TwoRefusalContentPart,
2984
2998
  ): string {
2985
2999
  return JSON.stringify(
2986
- DeploymentGetConfig2DeploymentsRequest2$outboundSchema.parse(
2987
- deploymentGetConfig2DeploymentsRequest2,
2988
- ),
3000
+ TwoRefusalContentPart$outboundSchema.parse(twoRefusalContentPart),
2989
3001
  );
2990
3002
  }
2991
3003
 
2992
- export function deploymentGetConfig2DeploymentsRequest2FromJSON(
3004
+ export function twoRefusalContentPartFromJSON(
2993
3005
  jsonString: string,
2994
- ): SafeParseResult<
2995
- DeploymentGetConfig2DeploymentsRequest2,
2996
- SDKValidationError
2997
- > {
3006
+ ): SafeParseResult<TwoRefusalContentPart, SDKValidationError> {
2998
3007
  return safeParse(
2999
3008
  jsonString,
3000
- (x) =>
3001
- DeploymentGetConfig2DeploymentsRequest2$inboundSchema.parse(
3002
- JSON.parse(x),
3003
- ),
3004
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequest2' from JSON`,
3009
+ (x) => TwoRefusalContentPart$inboundSchema.parse(JSON.parse(x)),
3010
+ `Failed to parse 'TwoRefusalContentPart' from JSON`,
3005
3011
  );
3006
3012
  }
3007
3013
 
@@ -3034,8 +3040,8 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$
3034
3040
  }
3035
3041
 
3036
3042
  /** @internal */
3037
- export const DeploymentGetConfig2DeploymentsRequest1$inboundSchema: z.ZodType<
3038
- DeploymentGetConfig2DeploymentsRequest1,
3043
+ export const TwoTextContentPart$inboundSchema: z.ZodType<
3044
+ TwoTextContentPart,
3039
3045
  z.ZodTypeDef,
3040
3046
  unknown
3041
3047
  > = z.object({
@@ -3045,16 +3051,16 @@ export const DeploymentGetConfig2DeploymentsRequest1$inboundSchema: z.ZodType<
3045
3051
  });
3046
3052
 
3047
3053
  /** @internal */
3048
- export type DeploymentGetConfig2DeploymentsRequest1$Outbound = {
3054
+ export type TwoTextContentPart$Outbound = {
3049
3055
  type: string;
3050
3056
  text: string;
3051
3057
  };
3052
3058
 
3053
3059
  /** @internal */
3054
- export const DeploymentGetConfig2DeploymentsRequest1$outboundSchema: z.ZodType<
3055
- DeploymentGetConfig2DeploymentsRequest1$Outbound,
3060
+ export const TwoTextContentPart$outboundSchema: z.ZodType<
3061
+ TwoTextContentPart$Outbound,
3056
3062
  z.ZodTypeDef,
3057
- DeploymentGetConfig2DeploymentsRequest1
3063
+ TwoTextContentPart
3058
3064
  > = z.object({
3059
3065
  type:
3060
3066
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$outboundSchema,
@@ -3065,110 +3071,92 @@ export const DeploymentGetConfig2DeploymentsRequest1$outboundSchema: z.ZodType<
3065
3071
  * @internal
3066
3072
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3067
3073
  */
3068
- export namespace DeploymentGetConfig2DeploymentsRequest1$ {
3069
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest1$inboundSchema` instead. */
3070
- export const inboundSchema =
3071
- DeploymentGetConfig2DeploymentsRequest1$inboundSchema;
3072
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest1$outboundSchema` instead. */
3073
- export const outboundSchema =
3074
- DeploymentGetConfig2DeploymentsRequest1$outboundSchema;
3075
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequest1$Outbound` instead. */
3076
- export type Outbound = DeploymentGetConfig2DeploymentsRequest1$Outbound;
3074
+ export namespace TwoTextContentPart$ {
3075
+ /** @deprecated use `TwoTextContentPart$inboundSchema` instead. */
3076
+ export const inboundSchema = TwoTextContentPart$inboundSchema;
3077
+ /** @deprecated use `TwoTextContentPart$outboundSchema` instead. */
3078
+ export const outboundSchema = TwoTextContentPart$outboundSchema;
3079
+ /** @deprecated use `TwoTextContentPart$Outbound` instead. */
3080
+ export type Outbound = TwoTextContentPart$Outbound;
3077
3081
  }
3078
3082
 
3079
- export function deploymentGetConfig2DeploymentsRequest1ToJSON(
3080
- deploymentGetConfig2DeploymentsRequest1:
3081
- DeploymentGetConfig2DeploymentsRequest1,
3083
+ export function twoTextContentPartToJSON(
3084
+ twoTextContentPart: TwoTextContentPart,
3082
3085
  ): string {
3083
3086
  return JSON.stringify(
3084
- DeploymentGetConfig2DeploymentsRequest1$outboundSchema.parse(
3085
- deploymentGetConfig2DeploymentsRequest1,
3086
- ),
3087
+ TwoTextContentPart$outboundSchema.parse(twoTextContentPart),
3087
3088
  );
3088
3089
  }
3089
3090
 
3090
- export function deploymentGetConfig2DeploymentsRequest1FromJSON(
3091
+ export function twoTextContentPartFromJSON(
3091
3092
  jsonString: string,
3092
- ): SafeParseResult<
3093
- DeploymentGetConfig2DeploymentsRequest1,
3094
- SDKValidationError
3095
- > {
3093
+ ): SafeParseResult<TwoTextContentPart, SDKValidationError> {
3096
3094
  return safeParse(
3097
3095
  jsonString,
3098
- (x) =>
3099
- DeploymentGetConfig2DeploymentsRequest1$inboundSchema.parse(
3100
- JSON.parse(x),
3101
- ),
3102
- `Failed to parse 'DeploymentGetConfig2DeploymentsRequest1' from JSON`,
3096
+ (x) => TwoTextContentPart$inboundSchema.parse(JSON.parse(x)),
3097
+ `Failed to parse 'TwoTextContentPart' from JSON`,
3103
3098
  );
3104
3099
  }
3105
3100
 
3106
3101
  /** @internal */
3107
- export const DeploymentGetConfigContentDeploymentsRequest2$inboundSchema:
3108
- z.ZodType<
3109
- DeploymentGetConfigContentDeploymentsRequest2,
3110
- z.ZodTypeDef,
3111
- unknown
3112
- > = z.union([
3113
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
3114
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$inboundSchema),
3115
- ]);
3102
+ export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
3103
+ DeploymentGetConfigContentDeployments2,
3104
+ z.ZodTypeDef,
3105
+ unknown
3106
+ > = z.union([
3107
+ z.lazy(() => TwoTextContentPart$inboundSchema),
3108
+ z.lazy(() => TwoRefusalContentPart$inboundSchema),
3109
+ ]);
3116
3110
 
3117
3111
  /** @internal */
3118
- export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
3119
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
3120
- | DeploymentGetConfig2DeploymentsRequest2$Outbound;
3112
+ export type DeploymentGetConfigContentDeployments2$Outbound =
3113
+ | TwoTextContentPart$Outbound
3114
+ | TwoRefusalContentPart$Outbound;
3121
3115
 
3122
3116
  /** @internal */
3123
- export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
3124
- z.ZodType<
3125
- DeploymentGetConfigContentDeploymentsRequest2$Outbound,
3126
- z.ZodTypeDef,
3127
- DeploymentGetConfigContentDeploymentsRequest2
3128
- > = z.union([
3129
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
3130
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$outboundSchema),
3131
- ]);
3117
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
3118
+ DeploymentGetConfigContentDeployments2$Outbound,
3119
+ z.ZodTypeDef,
3120
+ DeploymentGetConfigContentDeployments2
3121
+ > = z.union([
3122
+ z.lazy(() => TwoTextContentPart$outboundSchema),
3123
+ z.lazy(() => TwoRefusalContentPart$outboundSchema),
3124
+ ]);
3132
3125
 
3133
3126
  /**
3134
3127
  * @internal
3135
3128
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3136
3129
  */
3137
- export namespace DeploymentGetConfigContentDeploymentsRequest2$ {
3138
- /** @deprecated use `DeploymentGetConfigContentDeploymentsRequest2$inboundSchema` instead. */
3130
+ export namespace DeploymentGetConfigContentDeployments2$ {
3131
+ /** @deprecated use `DeploymentGetConfigContentDeployments2$inboundSchema` instead. */
3139
3132
  export const inboundSchema =
3140
- DeploymentGetConfigContentDeploymentsRequest2$inboundSchema;
3141
- /** @deprecated use `DeploymentGetConfigContentDeploymentsRequest2$outboundSchema` instead. */
3133
+ DeploymentGetConfigContentDeployments2$inboundSchema;
3134
+ /** @deprecated use `DeploymentGetConfigContentDeployments2$outboundSchema` instead. */
3142
3135
  export const outboundSchema =
3143
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema;
3144
- /** @deprecated use `DeploymentGetConfigContentDeploymentsRequest2$Outbound` instead. */
3145
- export type Outbound = DeploymentGetConfigContentDeploymentsRequest2$Outbound;
3136
+ DeploymentGetConfigContentDeployments2$outboundSchema;
3137
+ /** @deprecated use `DeploymentGetConfigContentDeployments2$Outbound` instead. */
3138
+ export type Outbound = DeploymentGetConfigContentDeployments2$Outbound;
3146
3139
  }
3147
3140
 
3148
- export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
3149
- deploymentGetConfigContentDeploymentsRequest2:
3150
- DeploymentGetConfigContentDeploymentsRequest2,
3141
+ export function deploymentGetConfigContentDeployments2ToJSON(
3142
+ deploymentGetConfigContentDeployments2:
3143
+ DeploymentGetConfigContentDeployments2,
3151
3144
  ): string {
3152
3145
  return JSON.stringify(
3153
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
3154
- deploymentGetConfigContentDeploymentsRequest2,
3146
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
3147
+ deploymentGetConfigContentDeployments2,
3155
3148
  ),
3156
3149
  );
3157
3150
  }
3158
3151
 
3159
- export function deploymentGetConfigContentDeploymentsRequest2FromJSON(
3152
+ export function deploymentGetConfigContentDeployments2FromJSON(
3160
3153
  jsonString: string,
3161
- ): SafeParseResult<
3162
- DeploymentGetConfigContentDeploymentsRequest2,
3163
- SDKValidationError
3164
- > {
3154
+ ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
3165
3155
  return safeParse(
3166
3156
  jsonString,
3167
3157
  (x) =>
3168
- DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(
3169
- JSON.parse(x),
3170
- ),
3171
- `Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
3158
+ DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
3159
+ `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
3172
3160
  );
3173
3161
  }
3174
3162
 
@@ -3180,18 +3168,15 @@ export const DeploymentGetConfigMessagesContent$inboundSchema: z.ZodType<
3180
3168
  > = z.union([
3181
3169
  z.string(),
3182
3170
  z.array(z.union([
3183
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
3184
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$inboundSchema),
3171
+ z.lazy(() => TwoTextContentPart$inboundSchema),
3172
+ z.lazy(() => TwoRefusalContentPart$inboundSchema),
3185
3173
  ])),
3186
3174
  ]);
3187
3175
 
3188
3176
  /** @internal */
3189
3177
  export type DeploymentGetConfigMessagesContent$Outbound =
3190
3178
  | string
3191
- | Array<
3192
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
3193
- | DeploymentGetConfig2DeploymentsRequest2$Outbound
3194
- >;
3179
+ | Array<TwoTextContentPart$Outbound | TwoRefusalContentPart$Outbound>;
3195
3180
 
3196
3181
  /** @internal */
3197
3182
  export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
@@ -3201,8 +3186,8 @@ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
3201
3186
  > = z.union([
3202
3187
  z.string(),
3203
3188
  z.array(z.union([
3204
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
3205
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$outboundSchema),
3189
+ z.lazy(() => TwoTextContentPart$outboundSchema),
3190
+ z.lazy(() => TwoRefusalContentPart$outboundSchema),
3206
3191
  ])),
3207
3192
  ]);
3208
3193
 
@@ -3451,16 +3436,16 @@ export function messagesToolCallsFromJSON(
3451
3436
  }
3452
3437
 
3453
3438
  /** @internal */
3454
- export const Messages4$inboundSchema: z.ZodType<
3455
- Messages4,
3439
+ export const MessagesAssistantMessage$inboundSchema: z.ZodType<
3440
+ MessagesAssistantMessage,
3456
3441
  z.ZodTypeDef,
3457
3442
  unknown
3458
3443
  > = z.object({
3459
3444
  content: z.union([
3460
3445
  z.string(),
3461
3446
  z.array(z.union([
3462
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
3463
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$inboundSchema),
3447
+ z.lazy(() => TwoTextContentPart$inboundSchema),
3448
+ z.lazy(() => TwoRefusalContentPart$inboundSchema),
3464
3449
  ])),
3465
3450
  ]).optional(),
3466
3451
  refusal: z.nullable(z.string()).optional(),
@@ -3475,13 +3460,10 @@ export const Messages4$inboundSchema: z.ZodType<
3475
3460
  });
3476
3461
 
3477
3462
  /** @internal */
3478
- export type Messages4$Outbound = {
3463
+ export type MessagesAssistantMessage$Outbound = {
3479
3464
  content?:
3480
3465
  | string
3481
- | Array<
3482
- | DeploymentGetConfig2DeploymentsRequest1$Outbound
3483
- | DeploymentGetConfig2DeploymentsRequest2$Outbound
3484
- >
3466
+ | Array<TwoTextContentPart$Outbound | TwoRefusalContentPart$Outbound>
3485
3467
  | undefined;
3486
3468
  refusal?: string | null | undefined;
3487
3469
  role: string;
@@ -3491,16 +3473,16 @@ export type Messages4$Outbound = {
3491
3473
  };
3492
3474
 
3493
3475
  /** @internal */
3494
- export const Messages4$outboundSchema: z.ZodType<
3495
- Messages4$Outbound,
3476
+ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
3477
+ MessagesAssistantMessage$Outbound,
3496
3478
  z.ZodTypeDef,
3497
- Messages4
3479
+ MessagesAssistantMessage
3498
3480
  > = z.object({
3499
3481
  content: z.union([
3500
3482
  z.string(),
3501
3483
  z.array(z.union([
3502
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
3503
- z.lazy(() => DeploymentGetConfig2DeploymentsRequest2$outboundSchema),
3484
+ z.lazy(() => TwoTextContentPart$outboundSchema),
3485
+ z.lazy(() => TwoRefusalContentPart$outboundSchema),
3504
3486
  ])),
3505
3487
  ]).optional(),
3506
3488
  refusal: z.nullable(z.string()).optional(),
@@ -3518,26 +3500,30 @@ export const Messages4$outboundSchema: z.ZodType<
3518
3500
  * @internal
3519
3501
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3520
3502
  */
3521
- export namespace Messages4$ {
3522
- /** @deprecated use `Messages4$inboundSchema` instead. */
3523
- export const inboundSchema = Messages4$inboundSchema;
3524
- /** @deprecated use `Messages4$outboundSchema` instead. */
3525
- export const outboundSchema = Messages4$outboundSchema;
3526
- /** @deprecated use `Messages4$Outbound` instead. */
3527
- export type Outbound = Messages4$Outbound;
3503
+ export namespace MessagesAssistantMessage$ {
3504
+ /** @deprecated use `MessagesAssistantMessage$inboundSchema` instead. */
3505
+ export const inboundSchema = MessagesAssistantMessage$inboundSchema;
3506
+ /** @deprecated use `MessagesAssistantMessage$outboundSchema` instead. */
3507
+ export const outboundSchema = MessagesAssistantMessage$outboundSchema;
3508
+ /** @deprecated use `MessagesAssistantMessage$Outbound` instead. */
3509
+ export type Outbound = MessagesAssistantMessage$Outbound;
3528
3510
  }
3529
3511
 
3530
- export function messages4ToJSON(messages4: Messages4): string {
3531
- return JSON.stringify(Messages4$outboundSchema.parse(messages4));
3512
+ export function messagesAssistantMessageToJSON(
3513
+ messagesAssistantMessage: MessagesAssistantMessage,
3514
+ ): string {
3515
+ return JSON.stringify(
3516
+ MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
3517
+ );
3532
3518
  }
3533
3519
 
3534
- export function messages4FromJSON(
3520
+ export function messagesAssistantMessageFromJSON(
3535
3521
  jsonString: string,
3536
- ): SafeParseResult<Messages4, SDKValidationError> {
3522
+ ): SafeParseResult<MessagesAssistantMessage, SDKValidationError> {
3537
3523
  return safeParse(
3538
3524
  jsonString,
3539
- (x) => Messages4$inboundSchema.parse(JSON.parse(x)),
3540
- `Failed to parse 'Messages4' from JSON`,
3525
+ (x) => MessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
3526
+ `Failed to parse 'MessagesAssistantMessage' from JSON`,
3541
3527
  );
3542
3528
  }
3543
3529
 
@@ -3665,69 +3651,59 @@ export function twoInputAudioFromJSON(
3665
3651
  }
3666
3652
 
3667
3653
  /** @internal */
3668
- export const DeploymentGetConfig23$inboundSchema: z.ZodType<
3669
- DeploymentGetConfig23,
3670
- z.ZodTypeDef,
3671
- unknown
3672
- > = z.object({
3673
- type:
3674
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
3675
- input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
3676
- }).transform((v) => {
3677
- return remap$(v, {
3678
- "input_audio": "inputAudio",
3654
+ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
3655
+ .object({
3656
+ type:
3657
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
3658
+ input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
3659
+ }).transform((v) => {
3660
+ return remap$(v, {
3661
+ "input_audio": "inputAudio",
3662
+ });
3679
3663
  });
3680
- });
3681
3664
 
3682
3665
  /** @internal */
3683
- export type DeploymentGetConfig23$Outbound = {
3666
+ export type Two3$Outbound = {
3684
3667
  type: string;
3685
3668
  input_audio: TwoInputAudio$Outbound;
3686
3669
  };
3687
3670
 
3688
3671
  /** @internal */
3689
- export const DeploymentGetConfig23$outboundSchema: z.ZodType<
3690
- DeploymentGetConfig23$Outbound,
3691
- z.ZodTypeDef,
3692
- DeploymentGetConfig23
3693
- > = z.object({
3694
- type:
3695
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
3696
- inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
3697
- }).transform((v) => {
3698
- return remap$(v, {
3699
- inputAudio: "input_audio",
3672
+ export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
3673
+ z.object({
3674
+ type:
3675
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
3676
+ inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
3677
+ }).transform((v) => {
3678
+ return remap$(v, {
3679
+ inputAudio: "input_audio",
3680
+ });
3700
3681
  });
3701
- });
3702
3682
 
3703
3683
  /**
3704
3684
  * @internal
3705
3685
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3706
3686
  */
3707
- export namespace DeploymentGetConfig23$ {
3708
- /** @deprecated use `DeploymentGetConfig23$inboundSchema` instead. */
3709
- export const inboundSchema = DeploymentGetConfig23$inboundSchema;
3710
- /** @deprecated use `DeploymentGetConfig23$outboundSchema` instead. */
3711
- export const outboundSchema = DeploymentGetConfig23$outboundSchema;
3712
- /** @deprecated use `DeploymentGetConfig23$Outbound` instead. */
3713
- export type Outbound = DeploymentGetConfig23$Outbound;
3687
+ export namespace Two3$ {
3688
+ /** @deprecated use `Two3$inboundSchema` instead. */
3689
+ export const inboundSchema = Two3$inboundSchema;
3690
+ /** @deprecated use `Two3$outboundSchema` instead. */
3691
+ export const outboundSchema = Two3$outboundSchema;
3692
+ /** @deprecated use `Two3$Outbound` instead. */
3693
+ export type Outbound = Two3$Outbound;
3714
3694
  }
3715
3695
 
3716
- export function deploymentGetConfig23ToJSON(
3717
- deploymentGetConfig23: DeploymentGetConfig23,
3718
- ): string {
3719
- return JSON.stringify(
3720
- DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
3721
- );
3696
+ export function two3ToJSON(two3: Two3): string {
3697
+ return JSON.stringify(Two3$outboundSchema.parse(two3));
3722
3698
  }
3723
3699
 
3724
- export function deploymentGetConfig23FromJSON(
3700
+ export function two3FromJSON(
3725
3701
  jsonString: string,
3726
- ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
3702
+ ): SafeParseResult<Two3, SDKValidationError> {
3727
3703
  return safeParse(
3728
3704
  jsonString,
3729
- (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
3730
- `Failed to parse 'DeploymentGetConfig23' from JSON`,
3705
+ (x) => Two3$inboundSchema.parse(JSON.parse(x)),
3706
+ `Failed to parse 'Two3' from JSON`,
3731
3707
  );
3732
3708
  }
3733
3709
 
@@ -3832,8 +3808,8 @@ export function twoImageUrlFromJSON(
3832
3808
  }
3833
3809
 
3834
3810
  /** @internal */
3835
- export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
3836
- DeploymentGetConfig2Deployments2,
3811
+ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
3812
+ DeploymentGetConfig22,
3837
3813
  z.ZodTypeDef,
3838
3814
  unknown
3839
3815
  > = z.object({
@@ -3847,16 +3823,16 @@ export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
3847
3823
  });
3848
3824
 
3849
3825
  /** @internal */
3850
- export type DeploymentGetConfig2Deployments2$Outbound = {
3826
+ export type DeploymentGetConfig22$Outbound = {
3851
3827
  type: string;
3852
3828
  image_url: TwoImageUrl$Outbound;
3853
3829
  };
3854
3830
 
3855
3831
  /** @internal */
3856
- export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
3857
- DeploymentGetConfig2Deployments2$Outbound,
3832
+ export const DeploymentGetConfig22$outboundSchema: z.ZodType<
3833
+ DeploymentGetConfig22$Outbound,
3858
3834
  z.ZodTypeDef,
3859
- DeploymentGetConfig2Deployments2
3835
+ DeploymentGetConfig22
3860
3836
  > = z.object({
3861
3837
  type:
3862
3838
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
@@ -3871,32 +3847,30 @@ export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
3871
3847
  * @internal
3872
3848
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3873
3849
  */
3874
- export namespace DeploymentGetConfig2Deployments2$ {
3875
- /** @deprecated use `DeploymentGetConfig2Deployments2$inboundSchema` instead. */
3876
- export const inboundSchema = DeploymentGetConfig2Deployments2$inboundSchema;
3877
- /** @deprecated use `DeploymentGetConfig2Deployments2$outboundSchema` instead. */
3878
- export const outboundSchema = DeploymentGetConfig2Deployments2$outboundSchema;
3879
- /** @deprecated use `DeploymentGetConfig2Deployments2$Outbound` instead. */
3880
- export type Outbound = DeploymentGetConfig2Deployments2$Outbound;
3850
+ export namespace DeploymentGetConfig22$ {
3851
+ /** @deprecated use `DeploymentGetConfig22$inboundSchema` instead. */
3852
+ export const inboundSchema = DeploymentGetConfig22$inboundSchema;
3853
+ /** @deprecated use `DeploymentGetConfig22$outboundSchema` instead. */
3854
+ export const outboundSchema = DeploymentGetConfig22$outboundSchema;
3855
+ /** @deprecated use `DeploymentGetConfig22$Outbound` instead. */
3856
+ export type Outbound = DeploymentGetConfig22$Outbound;
3881
3857
  }
3882
3858
 
3883
- export function deploymentGetConfig2Deployments2ToJSON(
3884
- deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
3859
+ export function deploymentGetConfig22ToJSON(
3860
+ deploymentGetConfig22: DeploymentGetConfig22,
3885
3861
  ): string {
3886
3862
  return JSON.stringify(
3887
- DeploymentGetConfig2Deployments2$outboundSchema.parse(
3888
- deploymentGetConfig2Deployments2,
3889
- ),
3863
+ DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
3890
3864
  );
3891
3865
  }
3892
3866
 
3893
- export function deploymentGetConfig2Deployments2FromJSON(
3867
+ export function deploymentGetConfig22FromJSON(
3894
3868
  jsonString: string,
3895
- ): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
3869
+ ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
3896
3870
  return safeParse(
3897
3871
  jsonString,
3898
- (x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
3899
- `Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
3872
+ (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
3873
+ `Failed to parse 'DeploymentGetConfig22' from JSON`,
3900
3874
  );
3901
3875
  }
3902
3876
 
@@ -3926,126 +3900,110 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyType$ {
3926
3900
  }
3927
3901
 
3928
3902
  /** @internal */
3929
- export const DeploymentGetConfig2Deployments1$inboundSchema: z.ZodType<
3930
- DeploymentGetConfig2Deployments1,
3931
- z.ZodTypeDef,
3932
- unknown
3933
- > = z.object({
3934
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
3935
- text: z.string(),
3936
- });
3903
+ export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
3904
+ .object({
3905
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
3906
+ text: z.string(),
3907
+ });
3937
3908
 
3938
3909
  /** @internal */
3939
- export type DeploymentGetConfig2Deployments1$Outbound = {
3910
+ export type Two1$Outbound = {
3940
3911
  type: string;
3941
3912
  text: string;
3942
3913
  };
3943
3914
 
3944
3915
  /** @internal */
3945
- export const DeploymentGetConfig2Deployments1$outboundSchema: z.ZodType<
3946
- DeploymentGetConfig2Deployments1$Outbound,
3947
- z.ZodTypeDef,
3948
- DeploymentGetConfig2Deployments1
3949
- > = z.object({
3950
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
3951
- text: z.string(),
3952
- });
3916
+ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
3917
+ z.object({
3918
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
3919
+ text: z.string(),
3920
+ });
3953
3921
 
3954
3922
  /**
3955
3923
  * @internal
3956
3924
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3957
3925
  */
3958
- export namespace DeploymentGetConfig2Deployments1$ {
3959
- /** @deprecated use `DeploymentGetConfig2Deployments1$inboundSchema` instead. */
3960
- export const inboundSchema = DeploymentGetConfig2Deployments1$inboundSchema;
3961
- /** @deprecated use `DeploymentGetConfig2Deployments1$outboundSchema` instead. */
3962
- export const outboundSchema = DeploymentGetConfig2Deployments1$outboundSchema;
3963
- /** @deprecated use `DeploymentGetConfig2Deployments1$Outbound` instead. */
3964
- export type Outbound = DeploymentGetConfig2Deployments1$Outbound;
3926
+ export namespace Two1$ {
3927
+ /** @deprecated use `Two1$inboundSchema` instead. */
3928
+ export const inboundSchema = Two1$inboundSchema;
3929
+ /** @deprecated use `Two1$outboundSchema` instead. */
3930
+ export const outboundSchema = Two1$outboundSchema;
3931
+ /** @deprecated use `Two1$Outbound` instead. */
3932
+ export type Outbound = Two1$Outbound;
3965
3933
  }
3966
3934
 
3967
- export function deploymentGetConfig2Deployments1ToJSON(
3968
- deploymentGetConfig2Deployments1: DeploymentGetConfig2Deployments1,
3969
- ): string {
3970
- return JSON.stringify(
3971
- DeploymentGetConfig2Deployments1$outboundSchema.parse(
3972
- deploymentGetConfig2Deployments1,
3973
- ),
3974
- );
3935
+ export function two1ToJSON(two1: Two1): string {
3936
+ return JSON.stringify(Two1$outboundSchema.parse(two1));
3975
3937
  }
3976
3938
 
3977
- export function deploymentGetConfig2Deployments1FromJSON(
3939
+ export function two1FromJSON(
3978
3940
  jsonString: string,
3979
- ): SafeParseResult<DeploymentGetConfig2Deployments1, SDKValidationError> {
3941
+ ): SafeParseResult<Two1, SDKValidationError> {
3980
3942
  return safeParse(
3981
3943
  jsonString,
3982
- (x) => DeploymentGetConfig2Deployments1$inboundSchema.parse(JSON.parse(x)),
3983
- `Failed to parse 'DeploymentGetConfig2Deployments1' from JSON`,
3944
+ (x) => Two1$inboundSchema.parse(JSON.parse(x)),
3945
+ `Failed to parse 'Two1' from JSON`,
3984
3946
  );
3985
3947
  }
3986
3948
 
3987
3949
  /** @internal */
3988
- export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
3989
- DeploymentGetConfigContentDeployments2,
3950
+ export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
3951
+ DeploymentGetConfigContent2,
3990
3952
  z.ZodTypeDef,
3991
3953
  unknown
3992
3954
  > = z.union([
3993
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
3994
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
3995
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
3955
+ z.lazy(() => Two1$inboundSchema),
3956
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
3957
+ z.lazy(() => Two3$inboundSchema),
3996
3958
  ]);
3997
3959
 
3998
3960
  /** @internal */
3999
- export type DeploymentGetConfigContentDeployments2$Outbound =
4000
- | DeploymentGetConfig2Deployments1$Outbound
4001
- | DeploymentGetConfig2Deployments2$Outbound
4002
- | DeploymentGetConfig23$Outbound;
3961
+ export type DeploymentGetConfigContent2$Outbound =
3962
+ | Two1$Outbound
3963
+ | DeploymentGetConfig22$Outbound
3964
+ | Two3$Outbound;
4003
3965
 
4004
3966
  /** @internal */
4005
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
4006
- DeploymentGetConfigContentDeployments2$Outbound,
3967
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
3968
+ DeploymentGetConfigContent2$Outbound,
4007
3969
  z.ZodTypeDef,
4008
- DeploymentGetConfigContentDeployments2
3970
+ DeploymentGetConfigContent2
4009
3971
  > = z.union([
4010
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
4011
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4012
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
3972
+ z.lazy(() => Two1$outboundSchema),
3973
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
3974
+ z.lazy(() => Two3$outboundSchema),
4013
3975
  ]);
4014
3976
 
4015
3977
  /**
4016
3978
  * @internal
4017
3979
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4018
3980
  */
4019
- export namespace DeploymentGetConfigContentDeployments2$ {
4020
- /** @deprecated use `DeploymentGetConfigContentDeployments2$inboundSchema` instead. */
4021
- export const inboundSchema =
4022
- DeploymentGetConfigContentDeployments2$inboundSchema;
4023
- /** @deprecated use `DeploymentGetConfigContentDeployments2$outboundSchema` instead. */
4024
- export const outboundSchema =
4025
- DeploymentGetConfigContentDeployments2$outboundSchema;
4026
- /** @deprecated use `DeploymentGetConfigContentDeployments2$Outbound` instead. */
4027
- export type Outbound = DeploymentGetConfigContentDeployments2$Outbound;
3981
+ export namespace DeploymentGetConfigContent2$ {
3982
+ /** @deprecated use `DeploymentGetConfigContent2$inboundSchema` instead. */
3983
+ export const inboundSchema = DeploymentGetConfigContent2$inboundSchema;
3984
+ /** @deprecated use `DeploymentGetConfigContent2$outboundSchema` instead. */
3985
+ export const outboundSchema = DeploymentGetConfigContent2$outboundSchema;
3986
+ /** @deprecated use `DeploymentGetConfigContent2$Outbound` instead. */
3987
+ export type Outbound = DeploymentGetConfigContent2$Outbound;
4028
3988
  }
4029
3989
 
4030
- export function deploymentGetConfigContentDeployments2ToJSON(
4031
- deploymentGetConfigContentDeployments2:
4032
- DeploymentGetConfigContentDeployments2,
3990
+ export function deploymentGetConfigContent2ToJSON(
3991
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
4033
3992
  ): string {
4034
3993
  return JSON.stringify(
4035
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
4036
- deploymentGetConfigContentDeployments2,
3994
+ DeploymentGetConfigContent2$outboundSchema.parse(
3995
+ deploymentGetConfigContent2,
4037
3996
  ),
4038
3997
  );
4039
3998
  }
4040
3999
 
4041
- export function deploymentGetConfigContentDeployments2FromJSON(
4000
+ export function deploymentGetConfigContent2FromJSON(
4042
4001
  jsonString: string,
4043
- ): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
4002
+ ): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
4044
4003
  return safeParse(
4045
4004
  jsonString,
4046
- (x) =>
4047
- DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
4048
- `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
4005
+ (x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
4006
+ `Failed to parse 'DeploymentGetConfigContent2' from JSON`,
4049
4007
  );
4050
4008
  }
4051
4009
 
@@ -4057,20 +4015,16 @@ export const MessagesContent$inboundSchema: z.ZodType<
4057
4015
  > = z.union([
4058
4016
  z.string(),
4059
4017
  z.array(z.union([
4060
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
4061
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
4062
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
4018
+ z.lazy(() => Two1$inboundSchema),
4019
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4020
+ z.lazy(() => Two3$inboundSchema),
4063
4021
  ])),
4064
4022
  ]);
4065
4023
 
4066
4024
  /** @internal */
4067
4025
  export type MessagesContent$Outbound =
4068
4026
  | string
4069
- | Array<
4070
- | DeploymentGetConfig2Deployments1$Outbound
4071
- | DeploymentGetConfig2Deployments2$Outbound
4072
- | DeploymentGetConfig23$Outbound
4073
- >;
4027
+ | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>;
4074
4028
 
4075
4029
  /** @internal */
4076
4030
  export const MessagesContent$outboundSchema: z.ZodType<
@@ -4080,9 +4034,9 @@ export const MessagesContent$outboundSchema: z.ZodType<
4080
4034
  > = z.union([
4081
4035
  z.string(),
4082
4036
  z.array(z.union([
4083
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
4084
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4085
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
4037
+ z.lazy(() => Two1$outboundSchema),
4038
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
4039
+ z.lazy(() => Two3$outboundSchema),
4086
4040
  ])),
4087
4041
  ]);
4088
4042
 
@@ -4116,8 +4070,8 @@ export function messagesContentFromJSON(
4116
4070
  }
4117
4071
 
4118
4072
  /** @internal */
4119
- export const Messages3$inboundSchema: z.ZodType<
4120
- Messages3,
4073
+ export const MessagesUserMessage$inboundSchema: z.ZodType<
4074
+ MessagesUserMessage,
4121
4075
  z.ZodTypeDef,
4122
4076
  unknown
4123
4077
  > = z.object({
@@ -4126,40 +4080,36 @@ export const Messages3$inboundSchema: z.ZodType<
4126
4080
  content: z.union([
4127
4081
  z.string(),
4128
4082
  z.array(z.union([
4129
- z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
4130
- z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
4131
- z.lazy(() => DeploymentGetConfig23$inboundSchema),
4083
+ z.lazy(() => Two1$inboundSchema),
4084
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4085
+ z.lazy(() => Two3$inboundSchema),
4132
4086
  ])),
4133
4087
  ]),
4134
4088
  });
4135
4089
 
4136
4090
  /** @internal */
4137
- export type Messages3$Outbound = {
4091
+ export type MessagesUserMessage$Outbound = {
4138
4092
  role: string;
4139
4093
  name?: string | undefined;
4140
4094
  content:
4141
4095
  | string
4142
- | Array<
4143
- | DeploymentGetConfig2Deployments1$Outbound
4144
- | DeploymentGetConfig2Deployments2$Outbound
4145
- | DeploymentGetConfig23$Outbound
4146
- >;
4096
+ | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>;
4147
4097
  };
4148
4098
 
4149
4099
  /** @internal */
4150
- export const Messages3$outboundSchema: z.ZodType<
4151
- Messages3$Outbound,
4100
+ export const MessagesUserMessage$outboundSchema: z.ZodType<
4101
+ MessagesUserMessage$Outbound,
4152
4102
  z.ZodTypeDef,
4153
- Messages3
4103
+ MessagesUserMessage
4154
4104
  > = z.object({
4155
4105
  role: DeploymentGetConfigMessagesDeploymentsRole$outboundSchema,
4156
4106
  name: z.string().optional(),
4157
4107
  content: z.union([
4158
4108
  z.string(),
4159
4109
  z.array(z.union([
4160
- z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
4161
- z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
4162
- z.lazy(() => DeploymentGetConfig23$outboundSchema),
4110
+ z.lazy(() => Two1$outboundSchema),
4111
+ z.lazy(() => DeploymentGetConfig22$outboundSchema),
4112
+ z.lazy(() => Two3$outboundSchema),
4163
4113
  ])),
4164
4114
  ]),
4165
4115
  });
@@ -4168,26 +4118,30 @@ export const Messages3$outboundSchema: z.ZodType<
4168
4118
  * @internal
4169
4119
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4170
4120
  */
4171
- export namespace Messages3$ {
4172
- /** @deprecated use `Messages3$inboundSchema` instead. */
4173
- export const inboundSchema = Messages3$inboundSchema;
4174
- /** @deprecated use `Messages3$outboundSchema` instead. */
4175
- export const outboundSchema = Messages3$outboundSchema;
4176
- /** @deprecated use `Messages3$Outbound` instead. */
4177
- export type Outbound = Messages3$Outbound;
4121
+ export namespace MessagesUserMessage$ {
4122
+ /** @deprecated use `MessagesUserMessage$inboundSchema` instead. */
4123
+ export const inboundSchema = MessagesUserMessage$inboundSchema;
4124
+ /** @deprecated use `MessagesUserMessage$outboundSchema` instead. */
4125
+ export const outboundSchema = MessagesUserMessage$outboundSchema;
4126
+ /** @deprecated use `MessagesUserMessage$Outbound` instead. */
4127
+ export type Outbound = MessagesUserMessage$Outbound;
4178
4128
  }
4179
4129
 
4180
- export function messages3ToJSON(messages3: Messages3): string {
4181
- return JSON.stringify(Messages3$outboundSchema.parse(messages3));
4130
+ export function messagesUserMessageToJSON(
4131
+ messagesUserMessage: MessagesUserMessage,
4132
+ ): string {
4133
+ return JSON.stringify(
4134
+ MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
4135
+ );
4182
4136
  }
4183
4137
 
4184
- export function messages3FromJSON(
4138
+ export function messagesUserMessageFromJSON(
4185
4139
  jsonString: string,
4186
- ): SafeParseResult<Messages3, SDKValidationError> {
4140
+ ): SafeParseResult<MessagesUserMessage, SDKValidationError> {
4187
4141
  return safeParse(
4188
4142
  jsonString,
4189
- (x) => Messages3$inboundSchema.parse(JSON.parse(x)),
4190
- `Failed to parse 'Messages3' from JSON`,
4143
+ (x) => MessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
4144
+ `Failed to parse 'MessagesUserMessage' from JSON`,
4191
4145
  );
4192
4146
  }
4193
4147
 
@@ -4213,8 +4167,8 @@ export namespace DeploymentGetConfigMessagesRole$ {
4213
4167
  }
4214
4168
 
4215
4169
  /** @internal */
4216
- export const Messages2$inboundSchema: z.ZodType<
4217
- Messages2,
4170
+ export const MessagesSystemMessage$inboundSchema: z.ZodType<
4171
+ MessagesSystemMessage,
4218
4172
  z.ZodTypeDef,
4219
4173
  unknown
4220
4174
  > = z.object({
@@ -4224,17 +4178,17 @@ export const Messages2$inboundSchema: z.ZodType<
4224
4178
  });
4225
4179
 
4226
4180
  /** @internal */
4227
- export type Messages2$Outbound = {
4181
+ export type MessagesSystemMessage$Outbound = {
4228
4182
  role: string;
4229
4183
  content: string;
4230
4184
  name?: string | undefined;
4231
4185
  };
4232
4186
 
4233
4187
  /** @internal */
4234
- export const Messages2$outboundSchema: z.ZodType<
4235
- Messages2$Outbound,
4188
+ export const MessagesSystemMessage$outboundSchema: z.ZodType<
4189
+ MessagesSystemMessage$Outbound,
4236
4190
  z.ZodTypeDef,
4237
- Messages2
4191
+ MessagesSystemMessage
4238
4192
  > = z.object({
4239
4193
  role: DeploymentGetConfigMessagesRole$outboundSchema,
4240
4194
  content: z.string(),
@@ -4245,26 +4199,30 @@ export const Messages2$outboundSchema: z.ZodType<
4245
4199
  * @internal
4246
4200
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4247
4201
  */
4248
- export namespace Messages2$ {
4249
- /** @deprecated use `Messages2$inboundSchema` instead. */
4250
- export const inboundSchema = Messages2$inboundSchema;
4251
- /** @deprecated use `Messages2$outboundSchema` instead. */
4252
- export const outboundSchema = Messages2$outboundSchema;
4253
- /** @deprecated use `Messages2$Outbound` instead. */
4254
- export type Outbound = Messages2$Outbound;
4202
+ export namespace MessagesSystemMessage$ {
4203
+ /** @deprecated use `MessagesSystemMessage$inboundSchema` instead. */
4204
+ export const inboundSchema = MessagesSystemMessage$inboundSchema;
4205
+ /** @deprecated use `MessagesSystemMessage$outboundSchema` instead. */
4206
+ export const outboundSchema = MessagesSystemMessage$outboundSchema;
4207
+ /** @deprecated use `MessagesSystemMessage$Outbound` instead. */
4208
+ export type Outbound = MessagesSystemMessage$Outbound;
4255
4209
  }
4256
4210
 
4257
- export function messages2ToJSON(messages2: Messages2): string {
4258
- return JSON.stringify(Messages2$outboundSchema.parse(messages2));
4211
+ export function messagesSystemMessageToJSON(
4212
+ messagesSystemMessage: MessagesSystemMessage,
4213
+ ): string {
4214
+ return JSON.stringify(
4215
+ MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
4216
+ );
4259
4217
  }
4260
4218
 
4261
- export function messages2FromJSON(
4219
+ export function messagesSystemMessageFromJSON(
4262
4220
  jsonString: string,
4263
- ): SafeParseResult<Messages2, SDKValidationError> {
4221
+ ): SafeParseResult<MessagesSystemMessage, SDKValidationError> {
4264
4222
  return safeParse(
4265
4223
  jsonString,
4266
- (x) => Messages2$inboundSchema.parse(JSON.parse(x)),
4267
- `Failed to parse 'Messages2' from JSON`,
4224
+ (x) => MessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
4225
+ `Failed to parse 'MessagesSystemMessage' from JSON`,
4268
4226
  );
4269
4227
  }
4270
4228
 
@@ -4288,8 +4246,8 @@ export namespace MessagesRole$ {
4288
4246
  }
4289
4247
 
4290
4248
  /** @internal */
4291
- export const Messages1$inboundSchema: z.ZodType<
4292
- Messages1,
4249
+ export const MessagesDeveloperMessage$inboundSchema: z.ZodType<
4250
+ MessagesDeveloperMessage,
4293
4251
  z.ZodTypeDef,
4294
4252
  unknown
4295
4253
  > = z.object({
@@ -4299,17 +4257,17 @@ export const Messages1$inboundSchema: z.ZodType<
4299
4257
  });
4300
4258
 
4301
4259
  /** @internal */
4302
- export type Messages1$Outbound = {
4260
+ export type MessagesDeveloperMessage$Outbound = {
4303
4261
  role: string;
4304
4262
  content: string;
4305
4263
  name?: string | undefined;
4306
4264
  };
4307
4265
 
4308
4266
  /** @internal */
4309
- export const Messages1$outboundSchema: z.ZodType<
4310
- Messages1$Outbound,
4267
+ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
4268
+ MessagesDeveloperMessage$Outbound,
4311
4269
  z.ZodTypeDef,
4312
- Messages1
4270
+ MessagesDeveloperMessage
4313
4271
  > = z.object({
4314
4272
  role: MessagesRole$outboundSchema,
4315
4273
  content: z.string(),
@@ -4320,26 +4278,30 @@ export const Messages1$outboundSchema: z.ZodType<
4320
4278
  * @internal
4321
4279
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4322
4280
  */
4323
- export namespace Messages1$ {
4324
- /** @deprecated use `Messages1$inboundSchema` instead. */
4325
- export const inboundSchema = Messages1$inboundSchema;
4326
- /** @deprecated use `Messages1$outboundSchema` instead. */
4327
- export const outboundSchema = Messages1$outboundSchema;
4328
- /** @deprecated use `Messages1$Outbound` instead. */
4329
- export type Outbound = Messages1$Outbound;
4281
+ export namespace MessagesDeveloperMessage$ {
4282
+ /** @deprecated use `MessagesDeveloperMessage$inboundSchema` instead. */
4283
+ export const inboundSchema = MessagesDeveloperMessage$inboundSchema;
4284
+ /** @deprecated use `MessagesDeveloperMessage$outboundSchema` instead. */
4285
+ export const outboundSchema = MessagesDeveloperMessage$outboundSchema;
4286
+ /** @deprecated use `MessagesDeveloperMessage$Outbound` instead. */
4287
+ export type Outbound = MessagesDeveloperMessage$Outbound;
4330
4288
  }
4331
4289
 
4332
- export function messages1ToJSON(messages1: Messages1): string {
4333
- return JSON.stringify(Messages1$outboundSchema.parse(messages1));
4290
+ export function messagesDeveloperMessageToJSON(
4291
+ messagesDeveloperMessage: MessagesDeveloperMessage,
4292
+ ): string {
4293
+ return JSON.stringify(
4294
+ MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
4295
+ );
4334
4296
  }
4335
4297
 
4336
- export function messages1FromJSON(
4298
+ export function messagesDeveloperMessageFromJSON(
4337
4299
  jsonString: string,
4338
- ): SafeParseResult<Messages1, SDKValidationError> {
4300
+ ): SafeParseResult<MessagesDeveloperMessage, SDKValidationError> {
4339
4301
  return safeParse(
4340
4302
  jsonString,
4341
- (x) => Messages1$inboundSchema.parse(JSON.parse(x)),
4342
- `Failed to parse 'Messages1' from JSON`,
4303
+ (x) => MessagesDeveloperMessage$inboundSchema.parse(JSON.parse(x)),
4304
+ `Failed to parse 'MessagesDeveloperMessage' from JSON`,
4343
4305
  );
4344
4306
  }
4345
4307
 
@@ -4349,20 +4311,20 @@ export const Messages$inboundSchema: z.ZodType<
4349
4311
  z.ZodTypeDef,
4350
4312
  unknown
4351
4313
  > = z.union([
4352
- z.lazy(() => Messages1$inboundSchema),
4353
- z.lazy(() => Messages2$inboundSchema),
4354
- z.lazy(() => Messages3$inboundSchema),
4355
- z.lazy(() => Messages5$inboundSchema),
4356
- z.lazy(() => Messages4$inboundSchema),
4314
+ z.lazy(() => MessagesDeveloperMessage$inboundSchema),
4315
+ z.lazy(() => MessagesSystemMessage$inboundSchema),
4316
+ z.lazy(() => MessagesUserMessage$inboundSchema),
4317
+ z.lazy(() => MessagesToolMessage$inboundSchema),
4318
+ z.lazy(() => MessagesAssistantMessage$inboundSchema),
4357
4319
  ]);
4358
4320
 
4359
4321
  /** @internal */
4360
4322
  export type Messages$Outbound =
4361
- | Messages1$Outbound
4362
- | Messages2$Outbound
4363
- | Messages3$Outbound
4364
- | Messages5$Outbound
4365
- | Messages4$Outbound;
4323
+ | MessagesDeveloperMessage$Outbound
4324
+ | MessagesSystemMessage$Outbound
4325
+ | MessagesUserMessage$Outbound
4326
+ | MessagesToolMessage$Outbound
4327
+ | MessagesAssistantMessage$Outbound;
4366
4328
 
4367
4329
  /** @internal */
4368
4330
  export const Messages$outboundSchema: z.ZodType<
@@ -4370,11 +4332,11 @@ export const Messages$outboundSchema: z.ZodType<
4370
4332
  z.ZodTypeDef,
4371
4333
  Messages
4372
4334
  > = z.union([
4373
- z.lazy(() => Messages1$outboundSchema),
4374
- z.lazy(() => Messages2$outboundSchema),
4375
- z.lazy(() => Messages3$outboundSchema),
4376
- z.lazy(() => Messages5$outboundSchema),
4377
- z.lazy(() => Messages4$outboundSchema),
4335
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
4336
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
4337
+ z.lazy(() => MessagesUserMessage$outboundSchema),
4338
+ z.lazy(() => MessagesToolMessage$outboundSchema),
4339
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
4378
4340
  ]);
4379
4341
 
4380
4342
  /**
@@ -4594,20 +4556,20 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
4594
4556
  context: z.record(z.any()).optional(),
4595
4557
  prefix_messages: z.array(
4596
4558
  z.union([
4597
- z.lazy(() => One$inboundSchema),
4598
- z.lazy(() => Two$inboundSchema),
4599
- z.lazy(() => Three$inboundSchema),
4600
- z.lazy(() => Five$inboundSchema),
4601
- z.lazy(() => Four$inboundSchema),
4559
+ z.lazy(() => DeveloperMessage$inboundSchema),
4560
+ z.lazy(() => SystemMessage$inboundSchema),
4561
+ z.lazy(() => UserMessage$inboundSchema),
4562
+ z.lazy(() => ToolMessage$inboundSchema),
4563
+ z.lazy(() => AssistantMessage$inboundSchema),
4602
4564
  ]),
4603
4565
  ).optional(),
4604
4566
  messages: z.array(
4605
4567
  z.union([
4606
- z.lazy(() => Messages1$inboundSchema),
4607
- z.lazy(() => Messages2$inboundSchema),
4608
- z.lazy(() => Messages3$inboundSchema),
4609
- z.lazy(() => Messages5$inboundSchema),
4610
- z.lazy(() => Messages4$inboundSchema),
4568
+ z.lazy(() => MessagesDeveloperMessage$inboundSchema),
4569
+ z.lazy(() => MessagesSystemMessage$inboundSchema),
4570
+ z.lazy(() => MessagesUserMessage$inboundSchema),
4571
+ z.lazy(() => MessagesToolMessage$inboundSchema),
4572
+ z.lazy(() => MessagesAssistantMessage$inboundSchema),
4611
4573
  ]),
4612
4574
  ).optional(),
4613
4575
  file_ids: z.array(z.string()).optional(),
@@ -4631,20 +4593,20 @@ export type DeploymentGetConfigRequestBody$Outbound = {
4631
4593
  context?: { [k: string]: any } | undefined;
4632
4594
  prefix_messages?:
4633
4595
  | Array<
4634
- | One$Outbound
4635
- | Two$Outbound
4636
- | Three$Outbound
4637
- | Five$Outbound
4638
- | Four$Outbound
4596
+ | DeveloperMessage$Outbound
4597
+ | SystemMessage$Outbound
4598
+ | UserMessage$Outbound
4599
+ | ToolMessage$Outbound
4600
+ | AssistantMessage$Outbound
4639
4601
  >
4640
4602
  | undefined;
4641
4603
  messages?:
4642
4604
  | Array<
4643
- | Messages1$Outbound
4644
- | Messages2$Outbound
4645
- | Messages3$Outbound
4646
- | Messages5$Outbound
4647
- | Messages4$Outbound
4605
+ | MessagesDeveloperMessage$Outbound
4606
+ | MessagesSystemMessage$Outbound
4607
+ | MessagesUserMessage$Outbound
4608
+ | MessagesToolMessage$Outbound
4609
+ | MessagesAssistantMessage$Outbound
4648
4610
  >
4649
4611
  | undefined;
4650
4612
  file_ids?: Array<string> | undefined;
@@ -4665,20 +4627,20 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
4665
4627
  context: z.record(z.any()).optional(),
4666
4628
  prefixMessages: z.array(
4667
4629
  z.union([
4668
- z.lazy(() => One$outboundSchema),
4669
- z.lazy(() => Two$outboundSchema),
4670
- z.lazy(() => Three$outboundSchema),
4671
- z.lazy(() => Five$outboundSchema),
4672
- z.lazy(() => Four$outboundSchema),
4630
+ z.lazy(() => DeveloperMessage$outboundSchema),
4631
+ z.lazy(() => SystemMessage$outboundSchema),
4632
+ z.lazy(() => UserMessage$outboundSchema),
4633
+ z.lazy(() => ToolMessage$outboundSchema),
4634
+ z.lazy(() => AssistantMessage$outboundSchema),
4673
4635
  ]),
4674
4636
  ).optional(),
4675
4637
  messages: z.array(
4676
4638
  z.union([
4677
- z.lazy(() => Messages1$outboundSchema),
4678
- z.lazy(() => Messages2$outboundSchema),
4679
- z.lazy(() => Messages3$outboundSchema),
4680
- z.lazy(() => Messages5$outboundSchema),
4681
- z.lazy(() => Messages4$outboundSchema),
4639
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
4640
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
4641
+ z.lazy(() => MessagesUserMessage$outboundSchema),
4642
+ z.lazy(() => MessagesToolMessage$outboundSchema),
4643
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
4682
4644
  ]),
4683
4645
  ).optional(),
4684
4646
  fileIds: z.array(z.string()).optional(),
@@ -4856,8 +4818,8 @@ export function deploymentGetConfig2ImageUrlFromJSON(
4856
4818
  }
4857
4819
 
4858
4820
  /** @internal */
4859
- export const DeploymentGetConfig2DeploymentsResponse2$inboundSchema: z.ZodType<
4860
- DeploymentGetConfig2DeploymentsResponse2,
4821
+ export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
4822
+ DeploymentGetConfig2Deployments2,
4861
4823
  z.ZodTypeDef,
4862
4824
  unknown
4863
4825
  > = z.object({
@@ -4870,16 +4832,16 @@ export const DeploymentGetConfig2DeploymentsResponse2$inboundSchema: z.ZodType<
4870
4832
  });
4871
4833
 
4872
4834
  /** @internal */
4873
- export type DeploymentGetConfig2DeploymentsResponse2$Outbound = {
4835
+ export type DeploymentGetConfig2Deployments2$Outbound = {
4874
4836
  type: string;
4875
4837
  image_url: DeploymentGetConfig2ImageUrl$Outbound;
4876
4838
  };
4877
4839
 
4878
4840
  /** @internal */
4879
- export const DeploymentGetConfig2DeploymentsResponse2$outboundSchema: z.ZodType<
4880
- DeploymentGetConfig2DeploymentsResponse2$Outbound,
4841
+ export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
4842
+ DeploymentGetConfig2Deployments2$Outbound,
4881
4843
  z.ZodTypeDef,
4882
- DeploymentGetConfig2DeploymentsResponse2
4844
+ DeploymentGetConfig2Deployments2
4883
4845
  > = z.object({
4884
4846
  type: DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema,
4885
4847
  imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
@@ -4893,41 +4855,32 @@ export const DeploymentGetConfig2DeploymentsResponse2$outboundSchema: z.ZodType<
4893
4855
  * @internal
4894
4856
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4895
4857
  */
4896
- export namespace DeploymentGetConfig2DeploymentsResponse2$ {
4897
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse2$inboundSchema` instead. */
4898
- export const inboundSchema =
4899
- DeploymentGetConfig2DeploymentsResponse2$inboundSchema;
4900
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse2$outboundSchema` instead. */
4901
- export const outboundSchema =
4902
- DeploymentGetConfig2DeploymentsResponse2$outboundSchema;
4903
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse2$Outbound` instead. */
4904
- export type Outbound = DeploymentGetConfig2DeploymentsResponse2$Outbound;
4858
+ export namespace DeploymentGetConfig2Deployments2$ {
4859
+ /** @deprecated use `DeploymentGetConfig2Deployments2$inboundSchema` instead. */
4860
+ export const inboundSchema = DeploymentGetConfig2Deployments2$inboundSchema;
4861
+ /** @deprecated use `DeploymentGetConfig2Deployments2$outboundSchema` instead. */
4862
+ export const outboundSchema = DeploymentGetConfig2Deployments2$outboundSchema;
4863
+ /** @deprecated use `DeploymentGetConfig2Deployments2$Outbound` instead. */
4864
+ export type Outbound = DeploymentGetConfig2Deployments2$Outbound;
4905
4865
  }
4906
4866
 
4907
- export function deploymentGetConfig2DeploymentsResponse2ToJSON(
4908
- deploymentGetConfig2DeploymentsResponse2:
4909
- DeploymentGetConfig2DeploymentsResponse2,
4867
+ export function deploymentGetConfig2Deployments2ToJSON(
4868
+ deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
4910
4869
  ): string {
4911
4870
  return JSON.stringify(
4912
- DeploymentGetConfig2DeploymentsResponse2$outboundSchema.parse(
4913
- deploymentGetConfig2DeploymentsResponse2,
4871
+ DeploymentGetConfig2Deployments2$outboundSchema.parse(
4872
+ deploymentGetConfig2Deployments2,
4914
4873
  ),
4915
4874
  );
4916
4875
  }
4917
4876
 
4918
- export function deploymentGetConfig2DeploymentsResponse2FromJSON(
4877
+ export function deploymentGetConfig2Deployments2FromJSON(
4919
4878
  jsonString: string,
4920
- ): SafeParseResult<
4921
- DeploymentGetConfig2DeploymentsResponse2,
4922
- SDKValidationError
4923
- > {
4879
+ ): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
4924
4880
  return safeParse(
4925
4881
  jsonString,
4926
- (x) =>
4927
- DeploymentGetConfig2DeploymentsResponse2$inboundSchema.parse(
4928
- JSON.parse(x),
4929
- ),
4930
- `Failed to parse 'DeploymentGetConfig2DeploymentsResponse2' from JSON`,
4882
+ (x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
4883
+ `Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
4931
4884
  );
4932
4885
  }
4933
4886
 
@@ -4955,8 +4908,8 @@ export namespace DeploymentGetConfig2DeploymentsResponseType$ {
4955
4908
  }
4956
4909
 
4957
4910
  /** @internal */
4958
- export const DeploymentGetConfig2DeploymentsResponse1$inboundSchema: z.ZodType<
4959
- DeploymentGetConfig2DeploymentsResponse1,
4911
+ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
4912
+ DeploymentGetConfig21,
4960
4913
  z.ZodTypeDef,
4961
4914
  unknown
4962
4915
  > = z.object({
@@ -4965,16 +4918,16 @@ export const DeploymentGetConfig2DeploymentsResponse1$inboundSchema: z.ZodType<
4965
4918
  });
4966
4919
 
4967
4920
  /** @internal */
4968
- export type DeploymentGetConfig2DeploymentsResponse1$Outbound = {
4921
+ export type DeploymentGetConfig21$Outbound = {
4969
4922
  type: string;
4970
4923
  text: string;
4971
4924
  };
4972
4925
 
4973
4926
  /** @internal */
4974
- export const DeploymentGetConfig2DeploymentsResponse1$outboundSchema: z.ZodType<
4975
- DeploymentGetConfig2DeploymentsResponse1$Outbound,
4927
+ export const DeploymentGetConfig21$outboundSchema: z.ZodType<
4928
+ DeploymentGetConfig21$Outbound,
4976
4929
  z.ZodTypeDef,
4977
- DeploymentGetConfig2DeploymentsResponse1
4930
+ DeploymentGetConfig21
4978
4931
  > = z.object({
4979
4932
  type: DeploymentGetConfig2DeploymentsResponseType$outboundSchema,
4980
4933
  text: z.string(),
@@ -4984,41 +4937,30 @@ export const DeploymentGetConfig2DeploymentsResponse1$outboundSchema: z.ZodType<
4984
4937
  * @internal
4985
4938
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4986
4939
  */
4987
- export namespace DeploymentGetConfig2DeploymentsResponse1$ {
4988
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse1$inboundSchema` instead. */
4989
- export const inboundSchema =
4990
- DeploymentGetConfig2DeploymentsResponse1$inboundSchema;
4991
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse1$outboundSchema` instead. */
4992
- export const outboundSchema =
4993
- DeploymentGetConfig2DeploymentsResponse1$outboundSchema;
4994
- /** @deprecated use `DeploymentGetConfig2DeploymentsResponse1$Outbound` instead. */
4995
- export type Outbound = DeploymentGetConfig2DeploymentsResponse1$Outbound;
4940
+ export namespace DeploymentGetConfig21$ {
4941
+ /** @deprecated use `DeploymentGetConfig21$inboundSchema` instead. */
4942
+ export const inboundSchema = DeploymentGetConfig21$inboundSchema;
4943
+ /** @deprecated use `DeploymentGetConfig21$outboundSchema` instead. */
4944
+ export const outboundSchema = DeploymentGetConfig21$outboundSchema;
4945
+ /** @deprecated use `DeploymentGetConfig21$Outbound` instead. */
4946
+ export type Outbound = DeploymentGetConfig21$Outbound;
4996
4947
  }
4997
4948
 
4998
- export function deploymentGetConfig2DeploymentsResponse1ToJSON(
4999
- deploymentGetConfig2DeploymentsResponse1:
5000
- DeploymentGetConfig2DeploymentsResponse1,
4949
+ export function deploymentGetConfig21ToJSON(
4950
+ deploymentGetConfig21: DeploymentGetConfig21,
5001
4951
  ): string {
5002
4952
  return JSON.stringify(
5003
- DeploymentGetConfig2DeploymentsResponse1$outboundSchema.parse(
5004
- deploymentGetConfig2DeploymentsResponse1,
5005
- ),
4953
+ DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
5006
4954
  );
5007
4955
  }
5008
4956
 
5009
- export function deploymentGetConfig2DeploymentsResponse1FromJSON(
4957
+ export function deploymentGetConfig21FromJSON(
5010
4958
  jsonString: string,
5011
- ): SafeParseResult<
5012
- DeploymentGetConfig2DeploymentsResponse1,
5013
- SDKValidationError
5014
- > {
4959
+ ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
5015
4960
  return safeParse(
5016
4961
  jsonString,
5017
- (x) =>
5018
- DeploymentGetConfig2DeploymentsResponse1$inboundSchema.parse(
5019
- JSON.parse(x),
5020
- ),
5021
- `Failed to parse 'DeploymentGetConfig2DeploymentsResponse1' from JSON`,
4962
+ (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
4963
+ `Failed to parse 'DeploymentGetConfig21' from JSON`,
5022
4964
  );
5023
4965
  }
5024
4966
 
@@ -5029,14 +4971,14 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
5029
4971
  z.ZodTypeDef,
5030
4972
  unknown
5031
4973
  > = z.union([
5032
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
5033
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
4974
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4975
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
5034
4976
  ]);
5035
4977
 
5036
4978
  /** @internal */
5037
4979
  export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
5038
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
5039
- | DeploymentGetConfig2DeploymentsResponse2$Outbound;
4980
+ | DeploymentGetConfig21$Outbound
4981
+ | DeploymentGetConfig2Deployments2$Outbound;
5040
4982
 
5041
4983
  /** @internal */
5042
4984
  export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
@@ -5045,8 +4987,8 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
5045
4987
  z.ZodTypeDef,
5046
4988
  DeploymentGetConfigContentDeploymentsResponse2
5047
4989
  > = z.union([
5048
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
5049
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$outboundSchema),
4990
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
4991
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
5050
4992
  ]);
5051
4993
 
5052
4994
  /**
@@ -5100,8 +5042,8 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
5100
5042
  > = z.union([
5101
5043
  z.string(),
5102
5044
  z.array(z.union([
5103
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
5104
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
5045
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
5046
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
5105
5047
  ])),
5106
5048
  ]);
5107
5049
 
@@ -5109,8 +5051,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
5109
5051
  export type DeploymentGetConfigContent$Outbound =
5110
5052
  | string
5111
5053
  | Array<
5112
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
5113
- | DeploymentGetConfig2DeploymentsResponse2$Outbound
5054
+ DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
5114
5055
  >;
5115
5056
 
5116
5057
  /** @internal */
@@ -5121,8 +5062,8 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
5121
5062
  > = z.union([
5122
5063
  z.string(),
5123
5064
  z.array(z.union([
5124
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
5125
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$outboundSchema),
5065
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
5066
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
5126
5067
  ])),
5127
5068
  ]);
5128
5069
 
@@ -5318,8 +5259,8 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
5318
5259
  content: z.union([
5319
5260
  z.string(),
5320
5261
  z.array(z.union([
5321
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
5322
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$inboundSchema),
5262
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
5263
+ z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
5323
5264
  ])),
5324
5265
  ]),
5325
5266
  tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
@@ -5336,8 +5277,7 @@ export type DeploymentGetConfigMessages$Outbound = {
5336
5277
  content:
5337
5278
  | string
5338
5279
  | Array<
5339
- | DeploymentGetConfig2DeploymentsResponse1$Outbound
5340
- | DeploymentGetConfig2DeploymentsResponse2$Outbound
5280
+ DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
5341
5281
  >;
5342
5282
  tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
5343
5283
  };
@@ -5352,8 +5292,8 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
5352
5292
  content: z.union([
5353
5293
  z.string(),
5354
5294
  z.array(z.union([
5355
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
5356
- z.lazy(() => DeploymentGetConfig2DeploymentsResponse2$outboundSchema),
5295
+ z.lazy(() => DeploymentGetConfig21$outboundSchema),
5296
+ z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
5357
5297
  ])),
5358
5298
  ]),
5359
5299
  toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))