@orq-ai/node 3.11.7 → 3.11.8

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 (155) hide show
  1. package/bin/mcp-server.js +104 -104
  2. package/bin/mcp-server.js.map +26 -26
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/fileget.js +2 -2
  15. package/models/operations/filelist.js +2 -2
  16. package/models/operations/fileupload.js +2 -2
  17. package/models/operations/getevals.js +28 -28
  18. package/models/operations/listcontacts.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievecontact.js +2 -2
  23. package/models/operations/retrievedatapoint.js +2 -2
  24. package/models/operations/retrievedataset.js +2 -2
  25. package/models/operations/retrievedatasource.js +2 -2
  26. package/models/operations/updatecontact.js +2 -2
  27. package/models/operations/updatedatapoint.js +2 -2
  28. package/models/operations/updatedataset.js +2 -2
  29. package/models/operations/updatedatasource.js +2 -2
  30. package/models/operations/updateeval.js +16 -16
  31. package/package.json +1 -1
  32. package/packages/orq-rc/README.md +128 -87
  33. package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
  34. package/packages/orq-rc/docs/sdks/proxy/README.md +1212 -0
  35. package/packages/orq-rc/examples/package-lock.json +1 -1
  36. package/packages/orq-rc/jsr.json +1 -1
  37. package/packages/orq-rc/package-lock.json +2 -2
  38. package/packages/orq-rc/package.json +1 -1
  39. package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
  40. package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
  41. package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
  42. package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
  43. package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
  44. package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
  45. package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
  46. package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
  47. package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
  48. package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
  49. package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
  50. package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
  51. package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
  52. package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
  53. package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
  54. package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
  55. package/packages/orq-rc/src/lib/config.ts +3 -3
  56. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  57. package/packages/orq-rc/src/mcp-server/server.ts +33 -1
  58. package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
  59. package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
  60. package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
  61. package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
  63. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
  64. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
  65. package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
  66. package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
  67. package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
  68. package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
  69. package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
  70. package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
  71. package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
  72. package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
  73. package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
  74. package/packages/orq-rc/src/models/components/deployments.ts +861 -0
  75. package/packages/orq-rc/src/models/components/index.ts +1 -0
  76. package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
  77. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  78. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
  79. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
  80. package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
  81. package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
  82. package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
  83. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
  85. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
  88. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  90. package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
  91. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
  92. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
  93. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
  94. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
  99. package/packages/orq-rc/src/models/operations/index.ts +16 -0
  100. package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
  101. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
  104. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
  107. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
  108. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
  109. package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
  110. package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +543 -0
  111. package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
  112. package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
  113. package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
  114. package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
  115. package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
  116. package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
  117. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  118. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
  119. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
  124. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  127. package/packages/orq-rc/src/sdk/batches.ts +81 -0
  128. package/packages/orq-rc/src/sdk/proxy.ts +211 -0
  129. package/packages/orq-rc/src/sdk/sdk.ts +12 -0
  130. package/packages/orq-rc/temp/example.ts +5 -0
  131. package/src/lib/config.ts +3 -3
  132. package/src/mcp-server/mcp-server.ts +1 -1
  133. package/src/mcp-server/server.ts +1 -1
  134. package/src/models/operations/createcontact.ts +2 -2
  135. package/src/models/operations/createdataset.ts +2 -2
  136. package/src/models/operations/createdatasetitem.ts +2 -2
  137. package/src/models/operations/createdatasource.ts +2 -2
  138. package/src/models/operations/createeval.ts +16 -16
  139. package/src/models/operations/fileget.ts +2 -2
  140. package/src/models/operations/filelist.ts +2 -2
  141. package/src/models/operations/fileupload.ts +2 -2
  142. package/src/models/operations/getevals.ts +28 -28
  143. package/src/models/operations/listcontacts.ts +2 -2
  144. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  145. package/src/models/operations/listdatasets.ts +2 -2
  146. package/src/models/operations/listdatasources.ts +2 -2
  147. package/src/models/operations/retrievecontact.ts +2 -2
  148. package/src/models/operations/retrievedatapoint.ts +2 -2
  149. package/src/models/operations/retrievedataset.ts +2 -2
  150. package/src/models/operations/retrievedatasource.ts +2 -2
  151. package/src/models/operations/updatecontact.ts +2 -2
  152. package/src/models/operations/updatedatapoint.ts +2 -2
  153. package/src/models/operations/updatedataset.ts +2 -2
  154. package/src/models/operations/updatedatasource.ts +2 -2
  155. package/src/models/operations/updateeval.ts +16 -16
@@ -117,6 +117,48 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesT
117
117
  typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType
118
118
  >;
119
119
 
120
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsType = {
121
+ FilePath: "file_path",
122
+ } as const;
123
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsType =
124
+ ClosedEnum<typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsType>;
125
+
126
+ export type DeploymentCreateMetricAnnotationsFilePath = {
127
+ fileId: string;
128
+ };
129
+
130
+ export type DeploymentCreateMetricAnnotations2 = {
131
+ type: DeploymentCreateMetricAnnotationsDeploymentsMetricsType;
132
+ text: string;
133
+ filePath: DeploymentCreateMetricAnnotationsFilePath;
134
+ startIndex: number;
135
+ endIndex: number;
136
+ };
137
+
138
+ export const DeploymentCreateMetricAnnotationsType = {
139
+ FileCitation: "file_citation",
140
+ } as const;
141
+ export type DeploymentCreateMetricAnnotationsType = ClosedEnum<
142
+ typeof DeploymentCreateMetricAnnotationsType
143
+ >;
144
+
145
+ export type DeploymentCreateMetricAnnotationsFileCitation = {
146
+ fileId: string;
147
+ quote?: string | undefined;
148
+ };
149
+
150
+ export type DeploymentCreateMetricAnnotations1 = {
151
+ type: DeploymentCreateMetricAnnotationsType;
152
+ text: string;
153
+ fileCitation: DeploymentCreateMetricAnnotationsFileCitation;
154
+ startIndex: number;
155
+ endIndex: number;
156
+ };
157
+
158
+ export type DeploymentCreateMetric2Annotations =
159
+ | DeploymentCreateMetricAnnotations1
160
+ | DeploymentCreateMetricAnnotations2;
161
+
120
162
  export type DeploymentCreateMetric2TextContentPart = {
121
163
  /**
122
164
  * The type of the content part.
@@ -126,6 +168,14 @@ export type DeploymentCreateMetric2TextContentPart = {
126
168
  * The text content.
127
169
  */
128
170
  text: string;
171
+ /**
172
+ * Annotations for the text content.
173
+ */
174
+ annotations?:
175
+ | Array<
176
+ DeploymentCreateMetricAnnotations1 | DeploymentCreateMetricAnnotations2
177
+ >
178
+ | undefined;
129
179
  };
130
180
 
131
181
  export type DeploymentCreateMetricContentDeploymentsMetrics2 =
@@ -565,6 +615,53 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4T
565
615
  typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
566
616
  >;
567
617
 
618
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType =
619
+ {
620
+ FilePath: "file_path",
621
+ } as const;
622
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType =
623
+ ClosedEnum<
624
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType
625
+ >;
626
+
627
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath = {
628
+ fileId: string;
629
+ };
630
+
631
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetrics2 = {
632
+ type:
633
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType;
634
+ text: string;
635
+ filePath: DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath;
636
+ startIndex: number;
637
+ endIndex: number;
638
+ };
639
+
640
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType = {
641
+ FileCitation: "file_citation",
642
+ } as const;
643
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType =
644
+ ClosedEnum<
645
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType
646
+ >;
647
+
648
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation = {
649
+ fileId: string;
650
+ quote?: string | undefined;
651
+ };
652
+
653
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetrics1 = {
654
+ type: DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType;
655
+ text: string;
656
+ fileCitation: DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation;
657
+ startIndex: number;
658
+ endIndex: number;
659
+ };
660
+
661
+ export type DeploymentCreateMetric2DeploymentsMetricsAnnotations =
662
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics1
663
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics2;
664
+
568
665
  export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart = {
569
666
  /**
570
667
  * The type of the content part.
@@ -574,6 +671,15 @@ export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart = {
574
671
  * The text content.
575
672
  */
576
673
  text: string;
674
+ /**
675
+ * Annotations for the text content.
676
+ */
677
+ annotations?:
678
+ | Array<
679
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics1
680
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics2
681
+ >
682
+ | undefined;
577
683
  };
578
684
 
579
685
  export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2 =
@@ -1435,1984 +1541,2920 @@ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMess
1435
1541
  }
1436
1542
 
1437
1543
  /** @internal */
1438
- export const DeploymentCreateMetric2TextContentPart$inboundSchema: z.ZodType<
1439
- DeploymentCreateMetric2TextContentPart,
1544
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsType$inboundSchema:
1545
+ z.ZodNativeEnum<
1546
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsType
1547
+ > = z.nativeEnum(DeploymentCreateMetricAnnotationsDeploymentsMetricsType);
1548
+
1549
+ /** @internal */
1550
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsType$outboundSchema:
1551
+ z.ZodNativeEnum<
1552
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsType
1553
+ > = DeploymentCreateMetricAnnotationsDeploymentsMetricsType$inboundSchema;
1554
+
1555
+ /**
1556
+ * @internal
1557
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1558
+ */
1559
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsType$ {
1560
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsType$inboundSchema` instead. */
1561
+ export const inboundSchema =
1562
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsType$inboundSchema;
1563
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsType$outboundSchema` instead. */
1564
+ export const outboundSchema =
1565
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsType$outboundSchema;
1566
+ }
1567
+
1568
+ /** @internal */
1569
+ export const DeploymentCreateMetricAnnotationsFilePath$inboundSchema: z.ZodType<
1570
+ DeploymentCreateMetricAnnotationsFilePath,
1440
1571
  z.ZodTypeDef,
1441
1572
  unknown
1442
1573
  > = z.object({
1443
- type:
1444
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema,
1445
- text: z.string(),
1574
+ file_id: z.string(),
1575
+ }).transform((v) => {
1576
+ return remap$(v, {
1577
+ "file_id": "fileId",
1578
+ });
1446
1579
  });
1447
1580
 
1448
1581
  /** @internal */
1449
- export type DeploymentCreateMetric2TextContentPart$Outbound = {
1450
- type: string;
1451
- text: string;
1582
+ export type DeploymentCreateMetricAnnotationsFilePath$Outbound = {
1583
+ file_id: string;
1452
1584
  };
1453
1585
 
1454
1586
  /** @internal */
1455
- export const DeploymentCreateMetric2TextContentPart$outboundSchema: z.ZodType<
1456
- DeploymentCreateMetric2TextContentPart$Outbound,
1457
- z.ZodTypeDef,
1458
- DeploymentCreateMetric2TextContentPart
1459
- > = z.object({
1460
- type:
1461
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema,
1462
- text: z.string(),
1463
- });
1587
+ export const DeploymentCreateMetricAnnotationsFilePath$outboundSchema:
1588
+ z.ZodType<
1589
+ DeploymentCreateMetricAnnotationsFilePath$Outbound,
1590
+ z.ZodTypeDef,
1591
+ DeploymentCreateMetricAnnotationsFilePath
1592
+ > = z.object({
1593
+ fileId: z.string(),
1594
+ }).transform((v) => {
1595
+ return remap$(v, {
1596
+ fileId: "file_id",
1597
+ });
1598
+ });
1464
1599
 
1465
1600
  /**
1466
1601
  * @internal
1467
1602
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1468
1603
  */
1469
- export namespace DeploymentCreateMetric2TextContentPart$ {
1470
- /** @deprecated use `DeploymentCreateMetric2TextContentPart$inboundSchema` instead. */
1604
+ export namespace DeploymentCreateMetricAnnotationsFilePath$ {
1605
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$inboundSchema` instead. */
1471
1606
  export const inboundSchema =
1472
- DeploymentCreateMetric2TextContentPart$inboundSchema;
1473
- /** @deprecated use `DeploymentCreateMetric2TextContentPart$outboundSchema` instead. */
1607
+ DeploymentCreateMetricAnnotationsFilePath$inboundSchema;
1608
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$outboundSchema` instead. */
1474
1609
  export const outboundSchema =
1475
- DeploymentCreateMetric2TextContentPart$outboundSchema;
1476
- /** @deprecated use `DeploymentCreateMetric2TextContentPart$Outbound` instead. */
1477
- export type Outbound = DeploymentCreateMetric2TextContentPart$Outbound;
1610
+ DeploymentCreateMetricAnnotationsFilePath$outboundSchema;
1611
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$Outbound` instead. */
1612
+ export type Outbound = DeploymentCreateMetricAnnotationsFilePath$Outbound;
1478
1613
  }
1479
1614
 
1480
- export function deploymentCreateMetric2TextContentPartToJSON(
1481
- deploymentCreateMetric2TextContentPart:
1482
- DeploymentCreateMetric2TextContentPart,
1615
+ export function deploymentCreateMetricAnnotationsFilePathToJSON(
1616
+ deploymentCreateMetricAnnotationsFilePath:
1617
+ DeploymentCreateMetricAnnotationsFilePath,
1483
1618
  ): string {
1484
1619
  return JSON.stringify(
1485
- DeploymentCreateMetric2TextContentPart$outboundSchema.parse(
1486
- deploymentCreateMetric2TextContentPart,
1620
+ DeploymentCreateMetricAnnotationsFilePath$outboundSchema.parse(
1621
+ deploymentCreateMetricAnnotationsFilePath,
1487
1622
  ),
1488
1623
  );
1489
1624
  }
1490
1625
 
1491
- export function deploymentCreateMetric2TextContentPartFromJSON(
1626
+ export function deploymentCreateMetricAnnotationsFilePathFromJSON(
1492
1627
  jsonString: string,
1493
- ): SafeParseResult<DeploymentCreateMetric2TextContentPart, SDKValidationError> {
1628
+ ): SafeParseResult<
1629
+ DeploymentCreateMetricAnnotationsFilePath,
1630
+ SDKValidationError
1631
+ > {
1494
1632
  return safeParse(
1495
1633
  jsonString,
1496
1634
  (x) =>
1497
- DeploymentCreateMetric2TextContentPart$inboundSchema.parse(JSON.parse(x)),
1498
- `Failed to parse 'DeploymentCreateMetric2TextContentPart' from JSON`,
1635
+ DeploymentCreateMetricAnnotationsFilePath$inboundSchema.parse(
1636
+ JSON.parse(x),
1637
+ ),
1638
+ `Failed to parse 'DeploymentCreateMetricAnnotationsFilePath' from JSON`,
1499
1639
  );
1500
1640
  }
1501
1641
 
1502
1642
  /** @internal */
1503
- export const DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema:
1504
- z.ZodType<
1505
- DeploymentCreateMetricContentDeploymentsMetrics2,
1506
- z.ZodTypeDef,
1507
- unknown
1508
- > = z.union([
1509
- z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
1510
- z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
1511
- ]);
1643
+ export const DeploymentCreateMetricAnnotations2$inboundSchema: z.ZodType<
1644
+ DeploymentCreateMetricAnnotations2,
1645
+ z.ZodTypeDef,
1646
+ unknown
1647
+ > = z.object({
1648
+ type: DeploymentCreateMetricAnnotationsDeploymentsMetricsType$inboundSchema,
1649
+ text: z.string(),
1650
+ file_path: z.lazy(() =>
1651
+ DeploymentCreateMetricAnnotationsFilePath$inboundSchema
1652
+ ),
1653
+ start_index: z.number().int(),
1654
+ end_index: z.number().int(),
1655
+ }).transform((v) => {
1656
+ return remap$(v, {
1657
+ "file_path": "filePath",
1658
+ "start_index": "startIndex",
1659
+ "end_index": "endIndex",
1660
+ });
1661
+ });
1512
1662
 
1513
1663
  /** @internal */
1514
- export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound =
1515
- | DeploymentCreateMetric2TextContentPart$Outbound
1516
- | DeploymentCreateMetric2RefusalContentPart$Outbound;
1664
+ export type DeploymentCreateMetricAnnotations2$Outbound = {
1665
+ type: string;
1666
+ text: string;
1667
+ file_path: DeploymentCreateMetricAnnotationsFilePath$Outbound;
1668
+ start_index: number;
1669
+ end_index: number;
1670
+ };
1517
1671
 
1518
1672
  /** @internal */
1519
- export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
1520
- z.ZodType<
1521
- DeploymentCreateMetricContentDeploymentsMetrics2$Outbound,
1522
- z.ZodTypeDef,
1523
- DeploymentCreateMetricContentDeploymentsMetrics2
1524
- > = z.union([
1525
- z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
1526
- z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
1527
- ]);
1673
+ export const DeploymentCreateMetricAnnotations2$outboundSchema: z.ZodType<
1674
+ DeploymentCreateMetricAnnotations2$Outbound,
1675
+ z.ZodTypeDef,
1676
+ DeploymentCreateMetricAnnotations2
1677
+ > = z.object({
1678
+ type: DeploymentCreateMetricAnnotationsDeploymentsMetricsType$outboundSchema,
1679
+ text: z.string(),
1680
+ filePath: z.lazy(() =>
1681
+ DeploymentCreateMetricAnnotationsFilePath$outboundSchema
1682
+ ),
1683
+ startIndex: z.number().int(),
1684
+ endIndex: z.number().int(),
1685
+ }).transform((v) => {
1686
+ return remap$(v, {
1687
+ filePath: "file_path",
1688
+ startIndex: "start_index",
1689
+ endIndex: "end_index",
1690
+ });
1691
+ });
1528
1692
 
1529
1693
  /**
1530
1694
  * @internal
1531
1695
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1532
1696
  */
1533
- export namespace DeploymentCreateMetricContentDeploymentsMetrics2$ {
1534
- /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema` instead. */
1535
- export const inboundSchema =
1536
- DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema;
1537
- /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema` instead. */
1697
+ export namespace DeploymentCreateMetricAnnotations2$ {
1698
+ /** @deprecated use `DeploymentCreateMetricAnnotations2$inboundSchema` instead. */
1699
+ export const inboundSchema = DeploymentCreateMetricAnnotations2$inboundSchema;
1700
+ /** @deprecated use `DeploymentCreateMetricAnnotations2$outboundSchema` instead. */
1538
1701
  export const outboundSchema =
1539
- DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema;
1540
- /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$Outbound` instead. */
1541
- export type Outbound =
1542
- DeploymentCreateMetricContentDeploymentsMetrics2$Outbound;
1702
+ DeploymentCreateMetricAnnotations2$outboundSchema;
1703
+ /** @deprecated use `DeploymentCreateMetricAnnotations2$Outbound` instead. */
1704
+ export type Outbound = DeploymentCreateMetricAnnotations2$Outbound;
1543
1705
  }
1544
1706
 
1545
- export function deploymentCreateMetricContentDeploymentsMetrics2ToJSON(
1546
- deploymentCreateMetricContentDeploymentsMetrics2:
1547
- DeploymentCreateMetricContentDeploymentsMetrics2,
1707
+ export function deploymentCreateMetricAnnotations2ToJSON(
1708
+ deploymentCreateMetricAnnotations2: DeploymentCreateMetricAnnotations2,
1548
1709
  ): string {
1549
1710
  return JSON.stringify(
1550
- DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema.parse(
1551
- deploymentCreateMetricContentDeploymentsMetrics2,
1711
+ DeploymentCreateMetricAnnotations2$outboundSchema.parse(
1712
+ deploymentCreateMetricAnnotations2,
1552
1713
  ),
1553
1714
  );
1554
1715
  }
1555
1716
 
1556
- export function deploymentCreateMetricContentDeploymentsMetrics2FromJSON(
1717
+ export function deploymentCreateMetricAnnotations2FromJSON(
1557
1718
  jsonString: string,
1558
- ): SafeParseResult<
1559
- DeploymentCreateMetricContentDeploymentsMetrics2,
1560
- SDKValidationError
1561
- > {
1719
+ ): SafeParseResult<DeploymentCreateMetricAnnotations2, SDKValidationError> {
1562
1720
  return safeParse(
1563
1721
  jsonString,
1564
1722
  (x) =>
1565
- DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema.parse(
1566
- JSON.parse(x),
1567
- ),
1568
- `Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
1723
+ DeploymentCreateMetricAnnotations2$inboundSchema.parse(JSON.parse(x)),
1724
+ `Failed to parse 'DeploymentCreateMetricAnnotations2' from JSON`,
1569
1725
  );
1570
1726
  }
1571
1727
 
1572
1728
  /** @internal */
1573
- export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema:
1729
+ export const DeploymentCreateMetricAnnotationsType$inboundSchema:
1730
+ z.ZodNativeEnum<typeof DeploymentCreateMetricAnnotationsType> = z.nativeEnum(
1731
+ DeploymentCreateMetricAnnotationsType,
1732
+ );
1733
+
1734
+ /** @internal */
1735
+ export const DeploymentCreateMetricAnnotationsType$outboundSchema:
1736
+ z.ZodNativeEnum<typeof DeploymentCreateMetricAnnotationsType> =
1737
+ DeploymentCreateMetricAnnotationsType$inboundSchema;
1738
+
1739
+ /**
1740
+ * @internal
1741
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1742
+ */
1743
+ export namespace DeploymentCreateMetricAnnotationsType$ {
1744
+ /** @deprecated use `DeploymentCreateMetricAnnotationsType$inboundSchema` instead. */
1745
+ export const inboundSchema =
1746
+ DeploymentCreateMetricAnnotationsType$inboundSchema;
1747
+ /** @deprecated use `DeploymentCreateMetricAnnotationsType$outboundSchema` instead. */
1748
+ export const outboundSchema =
1749
+ DeploymentCreateMetricAnnotationsType$outboundSchema;
1750
+ }
1751
+
1752
+ /** @internal */
1753
+ export const DeploymentCreateMetricAnnotationsFileCitation$inboundSchema:
1574
1754
  z.ZodType<
1575
- DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1755
+ DeploymentCreateMetricAnnotationsFileCitation,
1576
1756
  z.ZodTypeDef,
1577
1757
  unknown
1578
- > = z.union([
1579
- z.string(),
1580
- z.array(z.union([
1581
- z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
1582
- z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
1583
- ])),
1584
- ]);
1758
+ > = z.object({
1759
+ file_id: z.string(),
1760
+ quote: z.string().optional(),
1761
+ }).transform((v) => {
1762
+ return remap$(v, {
1763
+ "file_id": "fileId",
1764
+ });
1765
+ });
1585
1766
 
1586
1767
  /** @internal */
1587
- export type DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound =
1588
- | string
1589
- | Array<
1590
- | DeploymentCreateMetric2TextContentPart$Outbound
1591
- | DeploymentCreateMetric2RefusalContentPart$Outbound
1592
- >;
1768
+ export type DeploymentCreateMetricAnnotationsFileCitation$Outbound = {
1769
+ file_id: string;
1770
+ quote?: string | undefined;
1771
+ };
1593
1772
 
1594
1773
  /** @internal */
1595
- export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema:
1774
+ export const DeploymentCreateMetricAnnotationsFileCitation$outboundSchema:
1596
1775
  z.ZodType<
1597
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound,
1776
+ DeploymentCreateMetricAnnotationsFileCitation$Outbound,
1598
1777
  z.ZodTypeDef,
1599
- DeploymentCreateMetricMessagesDeploymentsMetricsContent
1600
- > = z.union([
1601
- z.string(),
1602
- z.array(z.union([
1603
- z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
1604
- z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
1605
- ])),
1606
- ]);
1778
+ DeploymentCreateMetricAnnotationsFileCitation
1779
+ > = z.object({
1780
+ fileId: z.string(),
1781
+ quote: z.string().optional(),
1782
+ }).transform((v) => {
1783
+ return remap$(v, {
1784
+ fileId: "file_id",
1785
+ });
1786
+ });
1607
1787
 
1608
1788
  /**
1609
1789
  * @internal
1610
1790
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
1791
  */
1612
- export namespace DeploymentCreateMetricMessagesDeploymentsMetricsContent$ {
1613
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema` instead. */
1792
+ export namespace DeploymentCreateMetricAnnotationsFileCitation$ {
1793
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFileCitation$inboundSchema` instead. */
1614
1794
  export const inboundSchema =
1615
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema;
1616
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema` instead. */
1795
+ DeploymentCreateMetricAnnotationsFileCitation$inboundSchema;
1796
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFileCitation$outboundSchema` instead. */
1617
1797
  export const outboundSchema =
1618
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema;
1619
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound` instead. */
1620
- export type Outbound =
1621
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound;
1798
+ DeploymentCreateMetricAnnotationsFileCitation$outboundSchema;
1799
+ /** @deprecated use `DeploymentCreateMetricAnnotationsFileCitation$Outbound` instead. */
1800
+ export type Outbound = DeploymentCreateMetricAnnotationsFileCitation$Outbound;
1622
1801
  }
1623
1802
 
1624
- export function deploymentCreateMetricMessagesDeploymentsMetricsContentToJSON(
1625
- deploymentCreateMetricMessagesDeploymentsMetricsContent:
1626
- DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1803
+ export function deploymentCreateMetricAnnotationsFileCitationToJSON(
1804
+ deploymentCreateMetricAnnotationsFileCitation:
1805
+ DeploymentCreateMetricAnnotationsFileCitation,
1627
1806
  ): string {
1628
1807
  return JSON.stringify(
1629
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema
1630
- .parse(deploymentCreateMetricMessagesDeploymentsMetricsContent),
1808
+ DeploymentCreateMetricAnnotationsFileCitation$outboundSchema.parse(
1809
+ deploymentCreateMetricAnnotationsFileCitation,
1810
+ ),
1631
1811
  );
1632
1812
  }
1633
1813
 
1634
- export function deploymentCreateMetricMessagesDeploymentsMetricsContentFromJSON(
1814
+ export function deploymentCreateMetricAnnotationsFileCitationFromJSON(
1635
1815
  jsonString: string,
1636
1816
  ): SafeParseResult<
1637
- DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1817
+ DeploymentCreateMetricAnnotationsFileCitation,
1638
1818
  SDKValidationError
1639
1819
  > {
1640
1820
  return safeParse(
1641
1821
  jsonString,
1642
1822
  (x) =>
1643
- DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema
1644
- .parse(JSON.parse(x)),
1645
- `Failed to parse 'DeploymentCreateMetricMessagesDeploymentsMetricsContent' from JSON`,
1823
+ DeploymentCreateMetricAnnotationsFileCitation$inboundSchema.parse(
1824
+ JSON.parse(x),
1825
+ ),
1826
+ `Failed to parse 'DeploymentCreateMetricAnnotationsFileCitation' from JSON`,
1646
1827
  );
1647
1828
  }
1648
1829
 
1649
1830
  /** @internal */
1650
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
1651
- z.ZodNativeEnum<
1652
- typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
1653
- > = z.nativeEnum(
1654
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole,
1655
- );
1831
+ export const DeploymentCreateMetricAnnotations1$inboundSchema: z.ZodType<
1832
+ DeploymentCreateMetricAnnotations1,
1833
+ z.ZodTypeDef,
1834
+ unknown
1835
+ > = z.object({
1836
+ type: DeploymentCreateMetricAnnotationsType$inboundSchema,
1837
+ text: z.string(),
1838
+ file_citation: z.lazy(() =>
1839
+ DeploymentCreateMetricAnnotationsFileCitation$inboundSchema
1840
+ ),
1841
+ start_index: z.number().int(),
1842
+ end_index: z.number().int(),
1843
+ }).transform((v) => {
1844
+ return remap$(v, {
1845
+ "file_citation": "fileCitation",
1846
+ "start_index": "startIndex",
1847
+ "end_index": "endIndex",
1848
+ });
1849
+ });
1656
1850
 
1657
1851
  /** @internal */
1658
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
1659
- z.ZodNativeEnum<
1660
- typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
1661
- > =
1662
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
1663
-
1664
- /**
1665
- * @internal
1666
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1667
- */
1668
- export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$ {
1669
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
1670
- export const inboundSchema =
1671
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
1672
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
1673
- export const outboundSchema =
1674
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
1675
- }
1676
-
1677
- /** @internal */
1678
- export const DeploymentCreateMetricMessagesAudio$inboundSchema: z.ZodType<
1679
- DeploymentCreateMetricMessagesAudio,
1680
- z.ZodTypeDef,
1681
- unknown
1682
- > = z.object({
1683
- id: z.string(),
1684
- });
1685
-
1686
- /** @internal */
1687
- export type DeploymentCreateMetricMessagesAudio$Outbound = {
1688
- id: string;
1852
+ export type DeploymentCreateMetricAnnotations1$Outbound = {
1853
+ type: string;
1854
+ text: string;
1855
+ file_citation: DeploymentCreateMetricAnnotationsFileCitation$Outbound;
1856
+ start_index: number;
1857
+ end_index: number;
1689
1858
  };
1690
1859
 
1691
1860
  /** @internal */
1692
- export const DeploymentCreateMetricMessagesAudio$outboundSchema: z.ZodType<
1693
- DeploymentCreateMetricMessagesAudio$Outbound,
1861
+ export const DeploymentCreateMetricAnnotations1$outboundSchema: z.ZodType<
1862
+ DeploymentCreateMetricAnnotations1$Outbound,
1694
1863
  z.ZodTypeDef,
1695
- DeploymentCreateMetricMessagesAudio
1864
+ DeploymentCreateMetricAnnotations1
1696
1865
  > = z.object({
1697
- id: z.string(),
1866
+ type: DeploymentCreateMetricAnnotationsType$outboundSchema,
1867
+ text: z.string(),
1868
+ fileCitation: z.lazy(() =>
1869
+ DeploymentCreateMetricAnnotationsFileCitation$outboundSchema
1870
+ ),
1871
+ startIndex: z.number().int(),
1872
+ endIndex: z.number().int(),
1873
+ }).transform((v) => {
1874
+ return remap$(v, {
1875
+ fileCitation: "file_citation",
1876
+ startIndex: "start_index",
1877
+ endIndex: "end_index",
1878
+ });
1698
1879
  });
1699
1880
 
1700
1881
  /**
1701
1882
  * @internal
1702
1883
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1703
1884
  */
1704
- export namespace DeploymentCreateMetricMessagesAudio$ {
1705
- /** @deprecated use `DeploymentCreateMetricMessagesAudio$inboundSchema` instead. */
1706
- export const inboundSchema =
1707
- DeploymentCreateMetricMessagesAudio$inboundSchema;
1708
- /** @deprecated use `DeploymentCreateMetricMessagesAudio$outboundSchema` instead. */
1885
+ export namespace DeploymentCreateMetricAnnotations1$ {
1886
+ /** @deprecated use `DeploymentCreateMetricAnnotations1$inboundSchema` instead. */
1887
+ export const inboundSchema = DeploymentCreateMetricAnnotations1$inboundSchema;
1888
+ /** @deprecated use `DeploymentCreateMetricAnnotations1$outboundSchema` instead. */
1709
1889
  export const outboundSchema =
1710
- DeploymentCreateMetricMessagesAudio$outboundSchema;
1711
- /** @deprecated use `DeploymentCreateMetricMessagesAudio$Outbound` instead. */
1712
- export type Outbound = DeploymentCreateMetricMessagesAudio$Outbound;
1890
+ DeploymentCreateMetricAnnotations1$outboundSchema;
1891
+ /** @deprecated use `DeploymentCreateMetricAnnotations1$Outbound` instead. */
1892
+ export type Outbound = DeploymentCreateMetricAnnotations1$Outbound;
1713
1893
  }
1714
1894
 
1715
- export function deploymentCreateMetricMessagesAudioToJSON(
1716
- deploymentCreateMetricMessagesAudio: DeploymentCreateMetricMessagesAudio,
1895
+ export function deploymentCreateMetricAnnotations1ToJSON(
1896
+ deploymentCreateMetricAnnotations1: DeploymentCreateMetricAnnotations1,
1717
1897
  ): string {
1718
1898
  return JSON.stringify(
1719
- DeploymentCreateMetricMessagesAudio$outboundSchema.parse(
1720
- deploymentCreateMetricMessagesAudio,
1899
+ DeploymentCreateMetricAnnotations1$outboundSchema.parse(
1900
+ deploymentCreateMetricAnnotations1,
1721
1901
  ),
1722
1902
  );
1723
1903
  }
1724
1904
 
1725
- export function deploymentCreateMetricMessagesAudioFromJSON(
1905
+ export function deploymentCreateMetricAnnotations1FromJSON(
1726
1906
  jsonString: string,
1727
- ): SafeParseResult<DeploymentCreateMetricMessagesAudio, SDKValidationError> {
1907
+ ): SafeParseResult<DeploymentCreateMetricAnnotations1, SDKValidationError> {
1728
1908
  return safeParse(
1729
1909
  jsonString,
1730
1910
  (x) =>
1731
- DeploymentCreateMetricMessagesAudio$inboundSchema.parse(JSON.parse(x)),
1732
- `Failed to parse 'DeploymentCreateMetricMessagesAudio' from JSON`,
1911
+ DeploymentCreateMetricAnnotations1$inboundSchema.parse(JSON.parse(x)),
1912
+ `Failed to parse 'DeploymentCreateMetricAnnotations1' from JSON`,
1733
1913
  );
1734
1914
  }
1735
1915
 
1736
1916
  /** @internal */
1737
- export const DeploymentCreateMetricMessagesType$inboundSchema: z.ZodNativeEnum<
1738
- typeof DeploymentCreateMetricMessagesType
1739
- > = z.nativeEnum(DeploymentCreateMetricMessagesType);
1917
+ export const DeploymentCreateMetric2Annotations$inboundSchema: z.ZodType<
1918
+ DeploymentCreateMetric2Annotations,
1919
+ z.ZodTypeDef,
1920
+ unknown
1921
+ > = z.union([
1922
+ z.lazy(() => DeploymentCreateMetricAnnotations1$inboundSchema),
1923
+ z.lazy(() => DeploymentCreateMetricAnnotations2$inboundSchema),
1924
+ ]);
1740
1925
 
1741
1926
  /** @internal */
1742
- export const DeploymentCreateMetricMessagesType$outboundSchema: z.ZodNativeEnum<
1743
- typeof DeploymentCreateMetricMessagesType
1744
- > = DeploymentCreateMetricMessagesType$inboundSchema;
1927
+ export type DeploymentCreateMetric2Annotations$Outbound =
1928
+ | DeploymentCreateMetricAnnotations1$Outbound
1929
+ | DeploymentCreateMetricAnnotations2$Outbound;
1930
+
1931
+ /** @internal */
1932
+ export const DeploymentCreateMetric2Annotations$outboundSchema: z.ZodType<
1933
+ DeploymentCreateMetric2Annotations$Outbound,
1934
+ z.ZodTypeDef,
1935
+ DeploymentCreateMetric2Annotations
1936
+ > = z.union([
1937
+ z.lazy(() => DeploymentCreateMetricAnnotations1$outboundSchema),
1938
+ z.lazy(() => DeploymentCreateMetricAnnotations2$outboundSchema),
1939
+ ]);
1745
1940
 
1746
1941
  /**
1747
1942
  * @internal
1748
1943
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1749
1944
  */
1750
- export namespace DeploymentCreateMetricMessagesType$ {
1751
- /** @deprecated use `DeploymentCreateMetricMessagesType$inboundSchema` instead. */
1752
- export const inboundSchema = DeploymentCreateMetricMessagesType$inboundSchema;
1753
- /** @deprecated use `DeploymentCreateMetricMessagesType$outboundSchema` instead. */
1945
+ export namespace DeploymentCreateMetric2Annotations$ {
1946
+ /** @deprecated use `DeploymentCreateMetric2Annotations$inboundSchema` instead. */
1947
+ export const inboundSchema = DeploymentCreateMetric2Annotations$inboundSchema;
1948
+ /** @deprecated use `DeploymentCreateMetric2Annotations$outboundSchema` instead. */
1754
1949
  export const outboundSchema =
1755
- DeploymentCreateMetricMessagesType$outboundSchema;
1950
+ DeploymentCreateMetric2Annotations$outboundSchema;
1951
+ /** @deprecated use `DeploymentCreateMetric2Annotations$Outbound` instead. */
1952
+ export type Outbound = DeploymentCreateMetric2Annotations$Outbound;
1953
+ }
1954
+
1955
+ export function deploymentCreateMetric2AnnotationsToJSON(
1956
+ deploymentCreateMetric2Annotations: DeploymentCreateMetric2Annotations,
1957
+ ): string {
1958
+ return JSON.stringify(
1959
+ DeploymentCreateMetric2Annotations$outboundSchema.parse(
1960
+ deploymentCreateMetric2Annotations,
1961
+ ),
1962
+ );
1963
+ }
1964
+
1965
+ export function deploymentCreateMetric2AnnotationsFromJSON(
1966
+ jsonString: string,
1967
+ ): SafeParseResult<DeploymentCreateMetric2Annotations, SDKValidationError> {
1968
+ return safeParse(
1969
+ jsonString,
1970
+ (x) =>
1971
+ DeploymentCreateMetric2Annotations$inboundSchema.parse(JSON.parse(x)),
1972
+ `Failed to parse 'DeploymentCreateMetric2Annotations' from JSON`,
1973
+ );
1756
1974
  }
1757
1975
 
1758
1976
  /** @internal */
1759
- export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
1760
- DeploymentCreateMetricMessagesFunction,
1977
+ export const DeploymentCreateMetric2TextContentPart$inboundSchema: z.ZodType<
1978
+ DeploymentCreateMetric2TextContentPart,
1761
1979
  z.ZodTypeDef,
1762
1980
  unknown
1763
1981
  > = z.object({
1764
- name: z.string().optional(),
1765
- arguments: z.string().optional(),
1982
+ type:
1983
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema,
1984
+ text: z.string(),
1985
+ annotations: z.array(
1986
+ z.union([
1987
+ z.lazy(() => DeploymentCreateMetricAnnotations1$inboundSchema),
1988
+ z.lazy(() => DeploymentCreateMetricAnnotations2$inboundSchema),
1989
+ ]),
1990
+ ).optional(),
1766
1991
  });
1767
1992
 
1768
1993
  /** @internal */
1769
- export type DeploymentCreateMetricMessagesFunction$Outbound = {
1770
- name?: string | undefined;
1771
- arguments?: string | undefined;
1994
+ export type DeploymentCreateMetric2TextContentPart$Outbound = {
1995
+ type: string;
1996
+ text: string;
1997
+ annotations?:
1998
+ | Array<
1999
+ | DeploymentCreateMetricAnnotations1$Outbound
2000
+ | DeploymentCreateMetricAnnotations2$Outbound
2001
+ >
2002
+ | undefined;
1772
2003
  };
1773
2004
 
1774
2005
  /** @internal */
1775
- export const DeploymentCreateMetricMessagesFunction$outboundSchema: z.ZodType<
1776
- DeploymentCreateMetricMessagesFunction$Outbound,
2006
+ export const DeploymentCreateMetric2TextContentPart$outboundSchema: z.ZodType<
2007
+ DeploymentCreateMetric2TextContentPart$Outbound,
1777
2008
  z.ZodTypeDef,
1778
- DeploymentCreateMetricMessagesFunction
2009
+ DeploymentCreateMetric2TextContentPart
1779
2010
  > = z.object({
1780
- name: z.string().optional(),
1781
- arguments: z.string().optional(),
2011
+ type:
2012
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema,
2013
+ text: z.string(),
2014
+ annotations: z.array(
2015
+ z.union([
2016
+ z.lazy(() => DeploymentCreateMetricAnnotations1$outboundSchema),
2017
+ z.lazy(() => DeploymentCreateMetricAnnotations2$outboundSchema),
2018
+ ]),
2019
+ ).optional(),
1782
2020
  });
1783
2021
 
1784
2022
  /**
1785
2023
  * @internal
1786
2024
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1787
2025
  */
1788
- export namespace DeploymentCreateMetricMessagesFunction$ {
1789
- /** @deprecated use `DeploymentCreateMetricMessagesFunction$inboundSchema` instead. */
2026
+ export namespace DeploymentCreateMetric2TextContentPart$ {
2027
+ /** @deprecated use `DeploymentCreateMetric2TextContentPart$inboundSchema` instead. */
1790
2028
  export const inboundSchema =
1791
- DeploymentCreateMetricMessagesFunction$inboundSchema;
1792
- /** @deprecated use `DeploymentCreateMetricMessagesFunction$outboundSchema` instead. */
2029
+ DeploymentCreateMetric2TextContentPart$inboundSchema;
2030
+ /** @deprecated use `DeploymentCreateMetric2TextContentPart$outboundSchema` instead. */
1793
2031
  export const outboundSchema =
1794
- DeploymentCreateMetricMessagesFunction$outboundSchema;
1795
- /** @deprecated use `DeploymentCreateMetricMessagesFunction$Outbound` instead. */
1796
- export type Outbound = DeploymentCreateMetricMessagesFunction$Outbound;
2032
+ DeploymentCreateMetric2TextContentPart$outboundSchema;
2033
+ /** @deprecated use `DeploymentCreateMetric2TextContentPart$Outbound` instead. */
2034
+ export type Outbound = DeploymentCreateMetric2TextContentPart$Outbound;
1797
2035
  }
1798
2036
 
1799
- export function deploymentCreateMetricMessagesFunctionToJSON(
1800
- deploymentCreateMetricMessagesFunction:
1801
- DeploymentCreateMetricMessagesFunction,
2037
+ export function deploymentCreateMetric2TextContentPartToJSON(
2038
+ deploymentCreateMetric2TextContentPart:
2039
+ DeploymentCreateMetric2TextContentPart,
1802
2040
  ): string {
1803
2041
  return JSON.stringify(
1804
- DeploymentCreateMetricMessagesFunction$outboundSchema.parse(
1805
- deploymentCreateMetricMessagesFunction,
2042
+ DeploymentCreateMetric2TextContentPart$outboundSchema.parse(
2043
+ deploymentCreateMetric2TextContentPart,
1806
2044
  ),
1807
2045
  );
1808
2046
  }
1809
2047
 
1810
- export function deploymentCreateMetricMessagesFunctionFromJSON(
2048
+ export function deploymentCreateMetric2TextContentPartFromJSON(
1811
2049
  jsonString: string,
1812
- ): SafeParseResult<DeploymentCreateMetricMessagesFunction, SDKValidationError> {
2050
+ ): SafeParseResult<DeploymentCreateMetric2TextContentPart, SDKValidationError> {
1813
2051
  return safeParse(
1814
2052
  jsonString,
1815
2053
  (x) =>
1816
- DeploymentCreateMetricMessagesFunction$inboundSchema.parse(JSON.parse(x)),
1817
- `Failed to parse 'DeploymentCreateMetricMessagesFunction' from JSON`,
2054
+ DeploymentCreateMetric2TextContentPart$inboundSchema.parse(JSON.parse(x)),
2055
+ `Failed to parse 'DeploymentCreateMetric2TextContentPart' from JSON`,
1818
2056
  );
1819
2057
  }
1820
2058
 
1821
2059
  /** @internal */
1822
- export const DeploymentCreateMetricMessagesToolCalls$inboundSchema: z.ZodType<
1823
- DeploymentCreateMetricMessagesToolCalls,
1824
- z.ZodTypeDef,
1825
- unknown
1826
- > = z.object({
1827
- id: z.string(),
1828
- type: DeploymentCreateMetricMessagesType$inboundSchema,
1829
- function: z.lazy(() => DeploymentCreateMetricMessagesFunction$inboundSchema),
1830
- });
2060
+ export const DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema:
2061
+ z.ZodType<
2062
+ DeploymentCreateMetricContentDeploymentsMetrics2,
2063
+ z.ZodTypeDef,
2064
+ unknown
2065
+ > = z.union([
2066
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
2067
+ z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
2068
+ ]);
1831
2069
 
1832
2070
  /** @internal */
1833
- export type DeploymentCreateMetricMessagesToolCalls$Outbound = {
1834
- id: string;
1835
- type: string;
1836
- function: DeploymentCreateMetricMessagesFunction$Outbound;
1837
- };
2071
+ export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound =
2072
+ | DeploymentCreateMetric2TextContentPart$Outbound
2073
+ | DeploymentCreateMetric2RefusalContentPart$Outbound;
1838
2074
 
1839
2075
  /** @internal */
1840
- export const DeploymentCreateMetricMessagesToolCalls$outboundSchema: z.ZodType<
1841
- DeploymentCreateMetricMessagesToolCalls$Outbound,
1842
- z.ZodTypeDef,
1843
- DeploymentCreateMetricMessagesToolCalls
1844
- > = z.object({
1845
- id: z.string(),
1846
- type: DeploymentCreateMetricMessagesType$outboundSchema,
1847
- function: z.lazy(() => DeploymentCreateMetricMessagesFunction$outboundSchema),
1848
- });
2076
+ export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
2077
+ z.ZodType<
2078
+ DeploymentCreateMetricContentDeploymentsMetrics2$Outbound,
2079
+ z.ZodTypeDef,
2080
+ DeploymentCreateMetricContentDeploymentsMetrics2
2081
+ > = z.union([
2082
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
2083
+ z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
2084
+ ]);
1849
2085
 
1850
2086
  /**
1851
2087
  * @internal
1852
2088
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1853
2089
  */
1854
- export namespace DeploymentCreateMetricMessagesToolCalls$ {
1855
- /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$inboundSchema` instead. */
2090
+ export namespace DeploymentCreateMetricContentDeploymentsMetrics2$ {
2091
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema` instead. */
1856
2092
  export const inboundSchema =
1857
- DeploymentCreateMetricMessagesToolCalls$inboundSchema;
1858
- /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$outboundSchema` instead. */
2093
+ DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema;
2094
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema` instead. */
1859
2095
  export const outboundSchema =
1860
- DeploymentCreateMetricMessagesToolCalls$outboundSchema;
1861
- /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$Outbound` instead. */
1862
- export type Outbound = DeploymentCreateMetricMessagesToolCalls$Outbound;
2096
+ DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema;
2097
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$Outbound` instead. */
2098
+ export type Outbound =
2099
+ DeploymentCreateMetricContentDeploymentsMetrics2$Outbound;
1863
2100
  }
1864
2101
 
1865
- export function deploymentCreateMetricMessagesToolCallsToJSON(
1866
- deploymentCreateMetricMessagesToolCalls:
1867
- DeploymentCreateMetricMessagesToolCalls,
2102
+ export function deploymentCreateMetricContentDeploymentsMetrics2ToJSON(
2103
+ deploymentCreateMetricContentDeploymentsMetrics2:
2104
+ DeploymentCreateMetricContentDeploymentsMetrics2,
1868
2105
  ): string {
1869
2106
  return JSON.stringify(
1870
- DeploymentCreateMetricMessagesToolCalls$outboundSchema.parse(
1871
- deploymentCreateMetricMessagesToolCalls,
2107
+ DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema.parse(
2108
+ deploymentCreateMetricContentDeploymentsMetrics2,
1872
2109
  ),
1873
2110
  );
1874
2111
  }
1875
2112
 
1876
- export function deploymentCreateMetricMessagesToolCallsFromJSON(
2113
+ export function deploymentCreateMetricContentDeploymentsMetrics2FromJSON(
1877
2114
  jsonString: string,
1878
2115
  ): SafeParseResult<
1879
- DeploymentCreateMetricMessagesToolCalls,
2116
+ DeploymentCreateMetricContentDeploymentsMetrics2,
1880
2117
  SDKValidationError
1881
2118
  > {
1882
2119
  return safeParse(
1883
2120
  jsonString,
1884
2121
  (x) =>
1885
- DeploymentCreateMetricMessagesToolCalls$inboundSchema.parse(
2122
+ DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema.parse(
1886
2123
  JSON.parse(x),
1887
2124
  ),
1888
- `Failed to parse 'DeploymentCreateMetricMessagesToolCalls' from JSON`,
2125
+ `Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
1889
2126
  );
1890
2127
  }
1891
2128
 
1892
2129
  /** @internal */
1893
- export const DeploymentCreateMetricMessagesAssistantMessage$inboundSchema:
2130
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema:
1894
2131
  z.ZodType<
1895
- DeploymentCreateMetricMessagesAssistantMessage,
2132
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1896
2133
  z.ZodTypeDef,
1897
2134
  unknown
1898
- > = z.object({
1899
- content: z.nullable(
1900
- z.union([
1901
- z.string(),
1902
- z.array(
1903
- z.union([
1904
- z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
1905
- z.lazy(() =>
1906
- DeploymentCreateMetric2RefusalContentPart$inboundSchema
1907
- ),
1908
- ]),
1909
- ),
1910
- ]),
1911
- ).optional(),
1912
- refusal: z.nullable(z.string()).optional(),
1913
- role:
1914
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
1915
- name: z.string().optional(),
1916
- audio: z.nullable(
1917
- z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
1918
- ).optional(),
1919
- tool_calls: z.array(
1920
- z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
1921
- ).optional(),
1922
- reasoning: z.string().optional(),
1923
- reasoning_signature: z.string().optional(),
1924
- redacted_reasoning: z.string().optional(),
1925
- }).transform((v) => {
1926
- return remap$(v, {
1927
- "tool_calls": "toolCalls",
1928
- "reasoning_signature": "reasoningSignature",
1929
- "redacted_reasoning": "redactedReasoning",
1930
- });
1931
- });
2135
+ > = z.union([
2136
+ z.string(),
2137
+ z.array(z.union([
2138
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
2139
+ z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
2140
+ ])),
2141
+ ]);
1932
2142
 
1933
2143
  /** @internal */
1934
- export type DeploymentCreateMetricMessagesAssistantMessage$Outbound = {
1935
- content?:
1936
- | string
1937
- | Array<
1938
- | DeploymentCreateMetric2TextContentPart$Outbound
1939
- | DeploymentCreateMetric2RefusalContentPart$Outbound
1940
- >
1941
- | null
1942
- | undefined;
1943
- refusal?: string | null | undefined;
1944
- role: string;
1945
- name?: string | undefined;
1946
- audio?: DeploymentCreateMetricMessagesAudio$Outbound | null | undefined;
1947
- tool_calls?:
1948
- | Array<DeploymentCreateMetricMessagesToolCalls$Outbound>
1949
- | undefined;
1950
- reasoning?: string | undefined;
1951
- reasoning_signature?: string | undefined;
1952
- redacted_reasoning?: string | undefined;
1953
- };
2144
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound =
2145
+ | string
2146
+ | Array<
2147
+ | DeploymentCreateMetric2TextContentPart$Outbound
2148
+ | DeploymentCreateMetric2RefusalContentPart$Outbound
2149
+ >;
1954
2150
 
1955
2151
  /** @internal */
1956
- export const DeploymentCreateMetricMessagesAssistantMessage$outboundSchema:
2152
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema:
1957
2153
  z.ZodType<
1958
- DeploymentCreateMetricMessagesAssistantMessage$Outbound,
2154
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound,
1959
2155
  z.ZodTypeDef,
1960
- DeploymentCreateMetricMessagesAssistantMessage
1961
- > = z.object({
1962
- content: z.nullable(
1963
- z.union([
1964
- z.string(),
1965
- z.array(
1966
- z.union([
1967
- z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
1968
- z.lazy(() =>
1969
- DeploymentCreateMetric2RefusalContentPart$outboundSchema
1970
- ),
1971
- ]),
1972
- ),
1973
- ]),
1974
- ).optional(),
1975
- refusal: z.nullable(z.string()).optional(),
1976
- role:
1977
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
1978
- name: z.string().optional(),
1979
- audio: z.nullable(
1980
- z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
1981
- ).optional(),
1982
- toolCalls: z.array(
1983
- z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
1984
- ).optional(),
1985
- reasoning: z.string().optional(),
1986
- reasoningSignature: z.string().optional(),
1987
- redactedReasoning: z.string().optional(),
1988
- }).transform((v) => {
1989
- return remap$(v, {
1990
- toolCalls: "tool_calls",
1991
- reasoningSignature: "reasoning_signature",
1992
- redactedReasoning: "redacted_reasoning",
1993
- });
1994
- });
2156
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent
2157
+ > = z.union([
2158
+ z.string(),
2159
+ z.array(z.union([
2160
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
2161
+ z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
2162
+ ])),
2163
+ ]);
1995
2164
 
1996
2165
  /**
1997
2166
  * @internal
1998
2167
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1999
2168
  */
2000
- export namespace DeploymentCreateMetricMessagesAssistantMessage$ {
2001
- /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$inboundSchema` instead. */
2169
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsContent$ {
2170
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema` instead. */
2002
2171
  export const inboundSchema =
2003
- DeploymentCreateMetricMessagesAssistantMessage$inboundSchema;
2004
- /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$outboundSchema` instead. */
2172
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema;
2173
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema` instead. */
2005
2174
  export const outboundSchema =
2006
- DeploymentCreateMetricMessagesAssistantMessage$outboundSchema;
2007
- /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$Outbound` instead. */
2175
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema;
2176
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound` instead. */
2008
2177
  export type Outbound =
2009
- DeploymentCreateMetricMessagesAssistantMessage$Outbound;
2178
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound;
2010
2179
  }
2011
2180
 
2012
- export function deploymentCreateMetricMessagesAssistantMessageToJSON(
2013
- deploymentCreateMetricMessagesAssistantMessage:
2014
- DeploymentCreateMetricMessagesAssistantMessage,
2181
+ export function deploymentCreateMetricMessagesDeploymentsMetricsContentToJSON(
2182
+ deploymentCreateMetricMessagesDeploymentsMetricsContent:
2183
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
2015
2184
  ): string {
2016
2185
  return JSON.stringify(
2017
- DeploymentCreateMetricMessagesAssistantMessage$outboundSchema.parse(
2018
- deploymentCreateMetricMessagesAssistantMessage,
2019
- ),
2186
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema
2187
+ .parse(deploymentCreateMetricMessagesDeploymentsMetricsContent),
2020
2188
  );
2021
2189
  }
2022
2190
 
2023
- export function deploymentCreateMetricMessagesAssistantMessageFromJSON(
2191
+ export function deploymentCreateMetricMessagesDeploymentsMetricsContentFromJSON(
2024
2192
  jsonString: string,
2025
2193
  ): SafeParseResult<
2026
- DeploymentCreateMetricMessagesAssistantMessage,
2194
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
2027
2195
  SDKValidationError
2028
2196
  > {
2029
2197
  return safeParse(
2030
2198
  jsonString,
2031
2199
  (x) =>
2032
- DeploymentCreateMetricMessagesAssistantMessage$inboundSchema.parse(
2033
- JSON.parse(x),
2034
- ),
2035
- `Failed to parse 'DeploymentCreateMetricMessagesAssistantMessage' from JSON`,
2200
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema
2201
+ .parse(JSON.parse(x)),
2202
+ `Failed to parse 'DeploymentCreateMetricMessagesDeploymentsMetricsContent' from JSON`,
2036
2203
  );
2037
2204
  }
2038
2205
 
2039
2206
  /** @internal */
2040
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema:
2041
- z.ZodNativeEnum<
2042
- typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
2043
- > = z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole);
2044
-
2045
- /** @internal */
2046
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema:
2047
- z.ZodNativeEnum<
2048
- typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
2049
- > = DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
2050
-
2051
- /**
2052
- * @internal
2053
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2054
- */
2055
- export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$ {
2056
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema` instead. */
2057
- export const inboundSchema =
2058
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
2059
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema` instead. */
2060
- export const outboundSchema =
2061
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema;
2062
- }
2063
-
2064
- /** @internal */
2065
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema:
2207
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
2066
2208
  z.ZodNativeEnum<
2067
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
2209
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
2068
2210
  > = z.nativeEnum(
2069
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType,
2211
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole,
2070
2212
  );
2071
2213
 
2072
2214
  /** @internal */
2073
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema:
2215
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
2074
2216
  z.ZodNativeEnum<
2075
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
2217
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
2076
2218
  > =
2077
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
2219
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
2078
2220
 
2079
2221
  /**
2080
2222
  * @internal
2081
2223
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2082
2224
  */
2083
- export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$ {
2084
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema` instead. */
2225
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$ {
2226
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
2085
2227
  export const inboundSchema =
2086
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
2087
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema` instead. */
2228
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
2229
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
2088
2230
  export const outboundSchema =
2089
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema;
2231
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
2090
2232
  }
2091
2233
 
2092
2234
  /** @internal */
2093
- export const DeploymentCreateMetric2File$inboundSchema: z.ZodType<
2094
- DeploymentCreateMetric2File,
2235
+ export const DeploymentCreateMetricMessagesAudio$inboundSchema: z.ZodType<
2236
+ DeploymentCreateMetricMessagesAudio,
2095
2237
  z.ZodTypeDef,
2096
2238
  unknown
2097
2239
  > = z.object({
2098
- file_data: z.string(),
2099
- filename: z.string(),
2100
- }).transform((v) => {
2101
- return remap$(v, {
2102
- "file_data": "fileData",
2103
- });
2240
+ id: z.string(),
2104
2241
  });
2105
2242
 
2106
2243
  /** @internal */
2107
- export type DeploymentCreateMetric2File$Outbound = {
2108
- file_data: string;
2109
- filename: string;
2244
+ export type DeploymentCreateMetricMessagesAudio$Outbound = {
2245
+ id: string;
2110
2246
  };
2111
2247
 
2112
2248
  /** @internal */
2113
- export const DeploymentCreateMetric2File$outboundSchema: z.ZodType<
2114
- DeploymentCreateMetric2File$Outbound,
2249
+ export const DeploymentCreateMetricMessagesAudio$outboundSchema: z.ZodType<
2250
+ DeploymentCreateMetricMessagesAudio$Outbound,
2115
2251
  z.ZodTypeDef,
2116
- DeploymentCreateMetric2File
2252
+ DeploymentCreateMetricMessagesAudio
2117
2253
  > = z.object({
2118
- fileData: z.string(),
2119
- filename: z.string(),
2120
- }).transform((v) => {
2121
- return remap$(v, {
2122
- fileData: "file_data",
2123
- });
2254
+ id: z.string(),
2124
2255
  });
2125
2256
 
2126
2257
  /**
2127
2258
  * @internal
2128
2259
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2129
2260
  */
2130
- export namespace DeploymentCreateMetric2File$ {
2131
- /** @deprecated use `DeploymentCreateMetric2File$inboundSchema` instead. */
2132
- export const inboundSchema = DeploymentCreateMetric2File$inboundSchema;
2133
- /** @deprecated use `DeploymentCreateMetric2File$outboundSchema` instead. */
2134
- export const outboundSchema = DeploymentCreateMetric2File$outboundSchema;
2135
- /** @deprecated use `DeploymentCreateMetric2File$Outbound` instead. */
2136
- export type Outbound = DeploymentCreateMetric2File$Outbound;
2261
+ export namespace DeploymentCreateMetricMessagesAudio$ {
2262
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$inboundSchema` instead. */
2263
+ export const inboundSchema =
2264
+ DeploymentCreateMetricMessagesAudio$inboundSchema;
2265
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$outboundSchema` instead. */
2266
+ export const outboundSchema =
2267
+ DeploymentCreateMetricMessagesAudio$outboundSchema;
2268
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$Outbound` instead. */
2269
+ export type Outbound = DeploymentCreateMetricMessagesAudio$Outbound;
2137
2270
  }
2138
2271
 
2139
- export function deploymentCreateMetric2FileToJSON(
2140
- deploymentCreateMetric2File: DeploymentCreateMetric2File,
2272
+ export function deploymentCreateMetricMessagesAudioToJSON(
2273
+ deploymentCreateMetricMessagesAudio: DeploymentCreateMetricMessagesAudio,
2141
2274
  ): string {
2142
2275
  return JSON.stringify(
2143
- DeploymentCreateMetric2File$outboundSchema.parse(
2144
- deploymentCreateMetric2File,
2276
+ DeploymentCreateMetricMessagesAudio$outboundSchema.parse(
2277
+ deploymentCreateMetricMessagesAudio,
2145
2278
  ),
2146
2279
  );
2147
2280
  }
2148
2281
 
2149
- export function deploymentCreateMetric2FileFromJSON(
2282
+ export function deploymentCreateMetricMessagesAudioFromJSON(
2150
2283
  jsonString: string,
2151
- ): SafeParseResult<DeploymentCreateMetric2File, SDKValidationError> {
2284
+ ): SafeParseResult<DeploymentCreateMetricMessagesAudio, SDKValidationError> {
2152
2285
  return safeParse(
2153
2286
  jsonString,
2154
- (x) => DeploymentCreateMetric2File$inboundSchema.parse(JSON.parse(x)),
2155
- `Failed to parse 'DeploymentCreateMetric2File' from JSON`,
2287
+ (x) =>
2288
+ DeploymentCreateMetricMessagesAudio$inboundSchema.parse(JSON.parse(x)),
2289
+ `Failed to parse 'DeploymentCreateMetricMessagesAudio' from JSON`,
2156
2290
  );
2157
2291
  }
2158
2292
 
2159
2293
  /** @internal */
2160
- export const DeploymentCreateMetric24$inboundSchema: z.ZodType<
2161
- DeploymentCreateMetric24,
2162
- z.ZodTypeDef,
2163
- unknown
2164
- > = z.object({
2165
- type:
2166
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema,
2167
- file: z.lazy(() => DeploymentCreateMetric2File$inboundSchema),
2168
- });
2294
+ export const DeploymentCreateMetricMessagesType$inboundSchema: z.ZodNativeEnum<
2295
+ typeof DeploymentCreateMetricMessagesType
2296
+ > = z.nativeEnum(DeploymentCreateMetricMessagesType);
2169
2297
 
2170
2298
  /** @internal */
2171
- export type DeploymentCreateMetric24$Outbound = {
2172
- type: string;
2173
- file: DeploymentCreateMetric2File$Outbound;
2174
- };
2175
-
2176
- /** @internal */
2177
- export const DeploymentCreateMetric24$outboundSchema: z.ZodType<
2178
- DeploymentCreateMetric24$Outbound,
2179
- z.ZodTypeDef,
2180
- DeploymentCreateMetric24
2181
- > = z.object({
2182
- type:
2183
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema,
2184
- file: z.lazy(() => DeploymentCreateMetric2File$outboundSchema),
2185
- });
2186
-
2187
- /**
2188
- * @internal
2189
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2190
- */
2191
- export namespace DeploymentCreateMetric24$ {
2192
- /** @deprecated use `DeploymentCreateMetric24$inboundSchema` instead. */
2193
- export const inboundSchema = DeploymentCreateMetric24$inboundSchema;
2194
- /** @deprecated use `DeploymentCreateMetric24$outboundSchema` instead. */
2195
- export const outboundSchema = DeploymentCreateMetric24$outboundSchema;
2196
- /** @deprecated use `DeploymentCreateMetric24$Outbound` instead. */
2197
- export type Outbound = DeploymentCreateMetric24$Outbound;
2198
- }
2199
-
2200
- export function deploymentCreateMetric24ToJSON(
2201
- deploymentCreateMetric24: DeploymentCreateMetric24,
2202
- ): string {
2203
- return JSON.stringify(
2204
- DeploymentCreateMetric24$outboundSchema.parse(deploymentCreateMetric24),
2205
- );
2206
- }
2207
-
2208
- export function deploymentCreateMetric24FromJSON(
2209
- jsonString: string,
2210
- ): SafeParseResult<DeploymentCreateMetric24, SDKValidationError> {
2211
- return safeParse(
2212
- jsonString,
2213
- (x) => DeploymentCreateMetric24$inboundSchema.parse(JSON.parse(x)),
2214
- `Failed to parse 'DeploymentCreateMetric24' from JSON`,
2215
- );
2216
- }
2217
-
2218
- /** @internal */
2219
- export const DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema:
2220
- z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
2221
- z.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsRequestType);
2222
-
2223
- /** @internal */
2224
- export const DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema:
2225
- z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
2226
- DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
2299
+ export const DeploymentCreateMetricMessagesType$outboundSchema: z.ZodNativeEnum<
2300
+ typeof DeploymentCreateMetricMessagesType
2301
+ > = DeploymentCreateMetricMessagesType$inboundSchema;
2227
2302
 
2228
2303
  /**
2229
2304
  * @internal
2230
2305
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2231
2306
  */
2232
- export namespace DeploymentCreateMetric2DeploymentsMetricsRequestType$ {
2233
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema` instead. */
2234
- export const inboundSchema =
2235
- DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
2236
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema` instead. */
2307
+ export namespace DeploymentCreateMetricMessagesType$ {
2308
+ /** @deprecated use `DeploymentCreateMetricMessagesType$inboundSchema` instead. */
2309
+ export const inboundSchema = DeploymentCreateMetricMessagesType$inboundSchema;
2310
+ /** @deprecated use `DeploymentCreateMetricMessagesType$outboundSchema` instead. */
2237
2311
  export const outboundSchema =
2238
- DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema;
2239
- }
2240
-
2241
- /** @internal */
2242
- export const DeploymentCreateMetric2Format$inboundSchema: z.ZodNativeEnum<
2243
- typeof DeploymentCreateMetric2Format
2244
- > = z.nativeEnum(DeploymentCreateMetric2Format);
2245
-
2246
- /** @internal */
2247
- export const DeploymentCreateMetric2Format$outboundSchema: z.ZodNativeEnum<
2248
- typeof DeploymentCreateMetric2Format
2249
- > = DeploymentCreateMetric2Format$inboundSchema;
2250
-
2251
- /**
2252
- * @internal
2253
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2254
- */
2255
- export namespace DeploymentCreateMetric2Format$ {
2256
- /** @deprecated use `DeploymentCreateMetric2Format$inboundSchema` instead. */
2257
- export const inboundSchema = DeploymentCreateMetric2Format$inboundSchema;
2258
- /** @deprecated use `DeploymentCreateMetric2Format$outboundSchema` instead. */
2259
- export const outboundSchema = DeploymentCreateMetric2Format$outboundSchema;
2312
+ DeploymentCreateMetricMessagesType$outboundSchema;
2260
2313
  }
2261
2314
 
2262
2315
  /** @internal */
2263
- export const DeploymentCreateMetric2InputAudio$inboundSchema: z.ZodType<
2264
- DeploymentCreateMetric2InputAudio,
2316
+ export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
2317
+ DeploymentCreateMetricMessagesFunction,
2265
2318
  z.ZodTypeDef,
2266
2319
  unknown
2267
2320
  > = z.object({
2268
- data: z.string(),
2269
- format: DeploymentCreateMetric2Format$inboundSchema,
2321
+ name: z.string().optional(),
2322
+ arguments: z.string().optional(),
2270
2323
  });
2271
2324
 
2272
2325
  /** @internal */
2273
- export type DeploymentCreateMetric2InputAudio$Outbound = {
2274
- data: string;
2275
- format: string;
2326
+ export type DeploymentCreateMetricMessagesFunction$Outbound = {
2327
+ name?: string | undefined;
2328
+ arguments?: string | undefined;
2276
2329
  };
2277
2330
 
2278
2331
  /** @internal */
2279
- export const DeploymentCreateMetric2InputAudio$outboundSchema: z.ZodType<
2280
- DeploymentCreateMetric2InputAudio$Outbound,
2332
+ export const DeploymentCreateMetricMessagesFunction$outboundSchema: z.ZodType<
2333
+ DeploymentCreateMetricMessagesFunction$Outbound,
2281
2334
  z.ZodTypeDef,
2282
- DeploymentCreateMetric2InputAudio
2335
+ DeploymentCreateMetricMessagesFunction
2283
2336
  > = z.object({
2284
- data: z.string(),
2285
- format: DeploymentCreateMetric2Format$outboundSchema,
2337
+ name: z.string().optional(),
2338
+ arguments: z.string().optional(),
2286
2339
  });
2287
2340
 
2288
2341
  /**
2289
2342
  * @internal
2290
2343
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2291
2344
  */
2292
- export namespace DeploymentCreateMetric2InputAudio$ {
2293
- /** @deprecated use `DeploymentCreateMetric2InputAudio$inboundSchema` instead. */
2294
- export const inboundSchema = DeploymentCreateMetric2InputAudio$inboundSchema;
2295
- /** @deprecated use `DeploymentCreateMetric2InputAudio$outboundSchema` instead. */
2345
+ export namespace DeploymentCreateMetricMessagesFunction$ {
2346
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$inboundSchema` instead. */
2347
+ export const inboundSchema =
2348
+ DeploymentCreateMetricMessagesFunction$inboundSchema;
2349
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$outboundSchema` instead. */
2296
2350
  export const outboundSchema =
2297
- DeploymentCreateMetric2InputAudio$outboundSchema;
2298
- /** @deprecated use `DeploymentCreateMetric2InputAudio$Outbound` instead. */
2299
- export type Outbound = DeploymentCreateMetric2InputAudio$Outbound;
2351
+ DeploymentCreateMetricMessagesFunction$outboundSchema;
2352
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$Outbound` instead. */
2353
+ export type Outbound = DeploymentCreateMetricMessagesFunction$Outbound;
2300
2354
  }
2301
2355
 
2302
- export function deploymentCreateMetric2InputAudioToJSON(
2303
- deploymentCreateMetric2InputAudio: DeploymentCreateMetric2InputAudio,
2356
+ export function deploymentCreateMetricMessagesFunctionToJSON(
2357
+ deploymentCreateMetricMessagesFunction:
2358
+ DeploymentCreateMetricMessagesFunction,
2304
2359
  ): string {
2305
2360
  return JSON.stringify(
2306
- DeploymentCreateMetric2InputAudio$outboundSchema.parse(
2307
- deploymentCreateMetric2InputAudio,
2361
+ DeploymentCreateMetricMessagesFunction$outboundSchema.parse(
2362
+ deploymentCreateMetricMessagesFunction,
2308
2363
  ),
2309
2364
  );
2310
2365
  }
2311
2366
 
2312
- export function deploymentCreateMetric2InputAudioFromJSON(
2367
+ export function deploymentCreateMetricMessagesFunctionFromJSON(
2313
2368
  jsonString: string,
2314
- ): SafeParseResult<DeploymentCreateMetric2InputAudio, SDKValidationError> {
2369
+ ): SafeParseResult<DeploymentCreateMetricMessagesFunction, SDKValidationError> {
2315
2370
  return safeParse(
2316
2371
  jsonString,
2317
- (x) => DeploymentCreateMetric2InputAudio$inboundSchema.parse(JSON.parse(x)),
2318
- `Failed to parse 'DeploymentCreateMetric2InputAudio' from JSON`,
2372
+ (x) =>
2373
+ DeploymentCreateMetricMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2374
+ `Failed to parse 'DeploymentCreateMetricMessagesFunction' from JSON`,
2319
2375
  );
2320
2376
  }
2321
2377
 
2322
2378
  /** @internal */
2323
- export const DeploymentCreateMetric23$inboundSchema: z.ZodType<
2324
- DeploymentCreateMetric23,
2379
+ export const DeploymentCreateMetricMessagesToolCalls$inboundSchema: z.ZodType<
2380
+ DeploymentCreateMetricMessagesToolCalls,
2325
2381
  z.ZodTypeDef,
2326
2382
  unknown
2327
2383
  > = z.object({
2328
- type: DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema,
2329
- input_audio: z.lazy(() => DeploymentCreateMetric2InputAudio$inboundSchema),
2330
- }).transform((v) => {
2331
- return remap$(v, {
2332
- "input_audio": "inputAudio",
2333
- });
2384
+ id: z.string(),
2385
+ type: DeploymentCreateMetricMessagesType$inboundSchema,
2386
+ function: z.lazy(() => DeploymentCreateMetricMessagesFunction$inboundSchema),
2334
2387
  });
2335
2388
 
2336
2389
  /** @internal */
2337
- export type DeploymentCreateMetric23$Outbound = {
2390
+ export type DeploymentCreateMetricMessagesToolCalls$Outbound = {
2391
+ id: string;
2338
2392
  type: string;
2339
- input_audio: DeploymentCreateMetric2InputAudio$Outbound;
2393
+ function: DeploymentCreateMetricMessagesFunction$Outbound;
2340
2394
  };
2341
2395
 
2342
2396
  /** @internal */
2343
- export const DeploymentCreateMetric23$outboundSchema: z.ZodType<
2344
- DeploymentCreateMetric23$Outbound,
2397
+ export const DeploymentCreateMetricMessagesToolCalls$outboundSchema: z.ZodType<
2398
+ DeploymentCreateMetricMessagesToolCalls$Outbound,
2345
2399
  z.ZodTypeDef,
2346
- DeploymentCreateMetric23
2400
+ DeploymentCreateMetricMessagesToolCalls
2347
2401
  > = z.object({
2348
- type: DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema,
2349
- inputAudio: z.lazy(() => DeploymentCreateMetric2InputAudio$outboundSchema),
2350
- }).transform((v) => {
2351
- return remap$(v, {
2352
- inputAudio: "input_audio",
2353
- });
2402
+ id: z.string(),
2403
+ type: DeploymentCreateMetricMessagesType$outboundSchema,
2404
+ function: z.lazy(() => DeploymentCreateMetricMessagesFunction$outboundSchema),
2354
2405
  });
2355
2406
 
2356
2407
  /**
2357
2408
  * @internal
2358
2409
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2359
2410
  */
2360
- export namespace DeploymentCreateMetric23$ {
2361
- /** @deprecated use `DeploymentCreateMetric23$inboundSchema` instead. */
2362
- export const inboundSchema = DeploymentCreateMetric23$inboundSchema;
2363
- /** @deprecated use `DeploymentCreateMetric23$outboundSchema` instead. */
2364
- export const outboundSchema = DeploymentCreateMetric23$outboundSchema;
2365
- /** @deprecated use `DeploymentCreateMetric23$Outbound` instead. */
2366
- export type Outbound = DeploymentCreateMetric23$Outbound;
2411
+ export namespace DeploymentCreateMetricMessagesToolCalls$ {
2412
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$inboundSchema` instead. */
2413
+ export const inboundSchema =
2414
+ DeploymentCreateMetricMessagesToolCalls$inboundSchema;
2415
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$outboundSchema` instead. */
2416
+ export const outboundSchema =
2417
+ DeploymentCreateMetricMessagesToolCalls$outboundSchema;
2418
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$Outbound` instead. */
2419
+ export type Outbound = DeploymentCreateMetricMessagesToolCalls$Outbound;
2367
2420
  }
2368
2421
 
2369
- export function deploymentCreateMetric23ToJSON(
2370
- deploymentCreateMetric23: DeploymentCreateMetric23,
2422
+ export function deploymentCreateMetricMessagesToolCallsToJSON(
2423
+ deploymentCreateMetricMessagesToolCalls:
2424
+ DeploymentCreateMetricMessagesToolCalls,
2371
2425
  ): string {
2372
2426
  return JSON.stringify(
2373
- DeploymentCreateMetric23$outboundSchema.parse(deploymentCreateMetric23),
2427
+ DeploymentCreateMetricMessagesToolCalls$outboundSchema.parse(
2428
+ deploymentCreateMetricMessagesToolCalls,
2429
+ ),
2374
2430
  );
2375
2431
  }
2376
2432
 
2377
- export function deploymentCreateMetric23FromJSON(
2433
+ export function deploymentCreateMetricMessagesToolCallsFromJSON(
2378
2434
  jsonString: string,
2379
- ): SafeParseResult<DeploymentCreateMetric23, SDKValidationError> {
2435
+ ): SafeParseResult<
2436
+ DeploymentCreateMetricMessagesToolCalls,
2437
+ SDKValidationError
2438
+ > {
2380
2439
  return safeParse(
2381
2440
  jsonString,
2382
- (x) => DeploymentCreateMetric23$inboundSchema.parse(JSON.parse(x)),
2383
- `Failed to parse 'DeploymentCreateMetric23' from JSON`,
2441
+ (x) =>
2442
+ DeploymentCreateMetricMessagesToolCalls$inboundSchema.parse(
2443
+ JSON.parse(x),
2444
+ ),
2445
+ `Failed to parse 'DeploymentCreateMetricMessagesToolCalls' from JSON`,
2384
2446
  );
2385
2447
  }
2386
2448
 
2387
2449
  /** @internal */
2388
- export const DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema:
2389
- z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> = z
2390
- .nativeEnum(DeploymentCreateMetric2DeploymentsMetricsType);
2391
-
2392
- /** @internal */
2393
- export const DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema:
2394
- z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> =
2395
- DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
2396
-
2397
- /**
2398
- * @internal
2399
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2400
- */
2401
- export namespace DeploymentCreateMetric2DeploymentsMetricsType$ {
2402
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema` instead. */
2403
- export const inboundSchema =
2404
- DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
2405
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema` instead. */
2406
- export const outboundSchema =
2407
- DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema;
2408
- }
2409
-
2410
- /** @internal */
2411
- export const DeploymentCreateMetric2Detail$inboundSchema: z.ZodNativeEnum<
2412
- typeof DeploymentCreateMetric2Detail
2413
- > = z.nativeEnum(DeploymentCreateMetric2Detail);
2414
-
2415
- /** @internal */
2416
- export const DeploymentCreateMetric2Detail$outboundSchema: z.ZodNativeEnum<
2417
- typeof DeploymentCreateMetric2Detail
2418
- > = DeploymentCreateMetric2Detail$inboundSchema;
2419
-
2420
- /**
2421
- * @internal
2422
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2423
- */
2424
- export namespace DeploymentCreateMetric2Detail$ {
2425
- /** @deprecated use `DeploymentCreateMetric2Detail$inboundSchema` instead. */
2426
- export const inboundSchema = DeploymentCreateMetric2Detail$inboundSchema;
2427
- /** @deprecated use `DeploymentCreateMetric2Detail$outboundSchema` instead. */
2428
- export const outboundSchema = DeploymentCreateMetric2Detail$outboundSchema;
2450
+ export const DeploymentCreateMetricMessagesAssistantMessage$inboundSchema:
2451
+ z.ZodType<
2452
+ DeploymentCreateMetricMessagesAssistantMessage,
2453
+ z.ZodTypeDef,
2454
+ unknown
2455
+ > = z.object({
2456
+ content: z.nullable(
2457
+ z.union([
2458
+ z.string(),
2459
+ z.array(
2460
+ z.union([
2461
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
2462
+ z.lazy(() =>
2463
+ DeploymentCreateMetric2RefusalContentPart$inboundSchema
2464
+ ),
2465
+ ]),
2466
+ ),
2467
+ ]),
2468
+ ).optional(),
2469
+ refusal: z.nullable(z.string()).optional(),
2470
+ role:
2471
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
2472
+ name: z.string().optional(),
2473
+ audio: z.nullable(
2474
+ z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
2475
+ ).optional(),
2476
+ tool_calls: z.array(
2477
+ z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
2478
+ ).optional(),
2479
+ reasoning: z.string().optional(),
2480
+ reasoning_signature: z.string().optional(),
2481
+ redacted_reasoning: z.string().optional(),
2482
+ }).transform((v) => {
2483
+ return remap$(v, {
2484
+ "tool_calls": "toolCalls",
2485
+ "reasoning_signature": "reasoningSignature",
2486
+ "redacted_reasoning": "redactedReasoning",
2487
+ });
2488
+ });
2489
+
2490
+ /** @internal */
2491
+ export type DeploymentCreateMetricMessagesAssistantMessage$Outbound = {
2492
+ content?:
2493
+ | string
2494
+ | Array<
2495
+ | DeploymentCreateMetric2TextContentPart$Outbound
2496
+ | DeploymentCreateMetric2RefusalContentPart$Outbound
2497
+ >
2498
+ | null
2499
+ | undefined;
2500
+ refusal?: string | null | undefined;
2501
+ role: string;
2502
+ name?: string | undefined;
2503
+ audio?: DeploymentCreateMetricMessagesAudio$Outbound | null | undefined;
2504
+ tool_calls?:
2505
+ | Array<DeploymentCreateMetricMessagesToolCalls$Outbound>
2506
+ | undefined;
2507
+ reasoning?: string | undefined;
2508
+ reasoning_signature?: string | undefined;
2509
+ redacted_reasoning?: string | undefined;
2510
+ };
2511
+
2512
+ /** @internal */
2513
+ export const DeploymentCreateMetricMessagesAssistantMessage$outboundSchema:
2514
+ z.ZodType<
2515
+ DeploymentCreateMetricMessagesAssistantMessage$Outbound,
2516
+ z.ZodTypeDef,
2517
+ DeploymentCreateMetricMessagesAssistantMessage
2518
+ > = z.object({
2519
+ content: z.nullable(
2520
+ z.union([
2521
+ z.string(),
2522
+ z.array(
2523
+ z.union([
2524
+ z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
2525
+ z.lazy(() =>
2526
+ DeploymentCreateMetric2RefusalContentPart$outboundSchema
2527
+ ),
2528
+ ]),
2529
+ ),
2530
+ ]),
2531
+ ).optional(),
2532
+ refusal: z.nullable(z.string()).optional(),
2533
+ role:
2534
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
2535
+ name: z.string().optional(),
2536
+ audio: z.nullable(
2537
+ z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
2538
+ ).optional(),
2539
+ toolCalls: z.array(
2540
+ z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
2541
+ ).optional(),
2542
+ reasoning: z.string().optional(),
2543
+ reasoningSignature: z.string().optional(),
2544
+ redactedReasoning: z.string().optional(),
2545
+ }).transform((v) => {
2546
+ return remap$(v, {
2547
+ toolCalls: "tool_calls",
2548
+ reasoningSignature: "reasoning_signature",
2549
+ redactedReasoning: "redacted_reasoning",
2550
+ });
2551
+ });
2552
+
2553
+ /**
2554
+ * @internal
2555
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2556
+ */
2557
+ export namespace DeploymentCreateMetricMessagesAssistantMessage$ {
2558
+ /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$inboundSchema` instead. */
2559
+ export const inboundSchema =
2560
+ DeploymentCreateMetricMessagesAssistantMessage$inboundSchema;
2561
+ /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$outboundSchema` instead. */
2562
+ export const outboundSchema =
2563
+ DeploymentCreateMetricMessagesAssistantMessage$outboundSchema;
2564
+ /** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$Outbound` instead. */
2565
+ export type Outbound =
2566
+ DeploymentCreateMetricMessagesAssistantMessage$Outbound;
2567
+ }
2568
+
2569
+ export function deploymentCreateMetricMessagesAssistantMessageToJSON(
2570
+ deploymentCreateMetricMessagesAssistantMessage:
2571
+ DeploymentCreateMetricMessagesAssistantMessage,
2572
+ ): string {
2573
+ return JSON.stringify(
2574
+ DeploymentCreateMetricMessagesAssistantMessage$outboundSchema.parse(
2575
+ deploymentCreateMetricMessagesAssistantMessage,
2576
+ ),
2577
+ );
2578
+ }
2579
+
2580
+ export function deploymentCreateMetricMessagesAssistantMessageFromJSON(
2581
+ jsonString: string,
2582
+ ): SafeParseResult<
2583
+ DeploymentCreateMetricMessagesAssistantMessage,
2584
+ SDKValidationError
2585
+ > {
2586
+ return safeParse(
2587
+ jsonString,
2588
+ (x) =>
2589
+ DeploymentCreateMetricMessagesAssistantMessage$inboundSchema.parse(
2590
+ JSON.parse(x),
2591
+ ),
2592
+ `Failed to parse 'DeploymentCreateMetricMessagesAssistantMessage' from JSON`,
2593
+ );
2429
2594
  }
2430
2595
 
2431
2596
  /** @internal */
2432
- export const DeploymentCreateMetric2ImageUrl$inboundSchema: z.ZodType<
2433
- DeploymentCreateMetric2ImageUrl,
2597
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema:
2598
+ z.ZodNativeEnum<
2599
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
2600
+ > = z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole);
2601
+
2602
+ /** @internal */
2603
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema:
2604
+ z.ZodNativeEnum<
2605
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
2606
+ > = DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
2607
+
2608
+ /**
2609
+ * @internal
2610
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2611
+ */
2612
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$ {
2613
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema` instead. */
2614
+ export const inboundSchema =
2615
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
2616
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema` instead. */
2617
+ export const outboundSchema =
2618
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema;
2619
+ }
2620
+
2621
+ /** @internal */
2622
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema:
2623
+ z.ZodNativeEnum<
2624
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
2625
+ > = z.nativeEnum(
2626
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType,
2627
+ );
2628
+
2629
+ /** @internal */
2630
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema:
2631
+ z.ZodNativeEnum<
2632
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
2633
+ > =
2634
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
2635
+
2636
+ /**
2637
+ * @internal
2638
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2639
+ */
2640
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$ {
2641
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema` instead. */
2642
+ export const inboundSchema =
2643
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
2644
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema` instead. */
2645
+ export const outboundSchema =
2646
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema;
2647
+ }
2648
+
2649
+ /** @internal */
2650
+ export const DeploymentCreateMetric2File$inboundSchema: z.ZodType<
2651
+ DeploymentCreateMetric2File,
2434
2652
  z.ZodTypeDef,
2435
2653
  unknown
2436
2654
  > = z.object({
2437
- url: z.string(),
2438
- detail: DeploymentCreateMetric2Detail$inboundSchema.optional(),
2655
+ file_data: z.string(),
2656
+ filename: z.string(),
2657
+ }).transform((v) => {
2658
+ return remap$(v, {
2659
+ "file_data": "fileData",
2660
+ });
2439
2661
  });
2440
2662
 
2441
2663
  /** @internal */
2442
- export type DeploymentCreateMetric2ImageUrl$Outbound = {
2443
- url: string;
2444
- detail?: string | undefined;
2664
+ export type DeploymentCreateMetric2File$Outbound = {
2665
+ file_data: string;
2666
+ filename: string;
2445
2667
  };
2446
2668
 
2447
2669
  /** @internal */
2448
- export const DeploymentCreateMetric2ImageUrl$outboundSchema: z.ZodType<
2449
- DeploymentCreateMetric2ImageUrl$Outbound,
2670
+ export const DeploymentCreateMetric2File$outboundSchema: z.ZodType<
2671
+ DeploymentCreateMetric2File$Outbound,
2450
2672
  z.ZodTypeDef,
2451
- DeploymentCreateMetric2ImageUrl
2673
+ DeploymentCreateMetric2File
2452
2674
  > = z.object({
2453
- url: z.string(),
2454
- detail: DeploymentCreateMetric2Detail$outboundSchema.optional(),
2675
+ fileData: z.string(),
2676
+ filename: z.string(),
2677
+ }).transform((v) => {
2678
+ return remap$(v, {
2679
+ fileData: "file_data",
2680
+ });
2455
2681
  });
2456
2682
 
2457
2683
  /**
2458
2684
  * @internal
2459
2685
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2460
2686
  */
2461
- export namespace DeploymentCreateMetric2ImageUrl$ {
2462
- /** @deprecated use `DeploymentCreateMetric2ImageUrl$inboundSchema` instead. */
2463
- export const inboundSchema = DeploymentCreateMetric2ImageUrl$inboundSchema;
2464
- /** @deprecated use `DeploymentCreateMetric2ImageUrl$outboundSchema` instead. */
2465
- export const outboundSchema = DeploymentCreateMetric2ImageUrl$outboundSchema;
2466
- /** @deprecated use `DeploymentCreateMetric2ImageUrl$Outbound` instead. */
2467
- export type Outbound = DeploymentCreateMetric2ImageUrl$Outbound;
2468
- }
2469
-
2470
- export function deploymentCreateMetric2ImageUrlToJSON(
2471
- deploymentCreateMetric2ImageUrl: DeploymentCreateMetric2ImageUrl,
2472
- ): string {
2473
- return JSON.stringify(
2474
- DeploymentCreateMetric2ImageUrl$outboundSchema.parse(
2475
- deploymentCreateMetric2ImageUrl,
2476
- ),
2477
- );
2478
- }
2479
-
2480
- export function deploymentCreateMetric2ImageUrlFromJSON(
2481
- jsonString: string,
2482
- ): SafeParseResult<DeploymentCreateMetric2ImageUrl, SDKValidationError> {
2483
- return safeParse(
2484
- jsonString,
2485
- (x) => DeploymentCreateMetric2ImageUrl$inboundSchema.parse(JSON.parse(x)),
2486
- `Failed to parse 'DeploymentCreateMetric2ImageUrl' from JSON`,
2487
- );
2687
+ export namespace DeploymentCreateMetric2File$ {
2688
+ /** @deprecated use `DeploymentCreateMetric2File$inboundSchema` instead. */
2689
+ export const inboundSchema = DeploymentCreateMetric2File$inboundSchema;
2690
+ /** @deprecated use `DeploymentCreateMetric2File$outboundSchema` instead. */
2691
+ export const outboundSchema = DeploymentCreateMetric2File$outboundSchema;
2692
+ /** @deprecated use `DeploymentCreateMetric2File$Outbound` instead. */
2693
+ export type Outbound = DeploymentCreateMetric2File$Outbound;
2694
+ }
2695
+
2696
+ export function deploymentCreateMetric2FileToJSON(
2697
+ deploymentCreateMetric2File: DeploymentCreateMetric2File,
2698
+ ): string {
2699
+ return JSON.stringify(
2700
+ DeploymentCreateMetric2File$outboundSchema.parse(
2701
+ deploymentCreateMetric2File,
2702
+ ),
2703
+ );
2704
+ }
2705
+
2706
+ export function deploymentCreateMetric2FileFromJSON(
2707
+ jsonString: string,
2708
+ ): SafeParseResult<DeploymentCreateMetric2File, SDKValidationError> {
2709
+ return safeParse(
2710
+ jsonString,
2711
+ (x) => DeploymentCreateMetric2File$inboundSchema.parse(JSON.parse(x)),
2712
+ `Failed to parse 'DeploymentCreateMetric2File' from JSON`,
2713
+ );
2714
+ }
2715
+
2716
+ /** @internal */
2717
+ export const DeploymentCreateMetric24$inboundSchema: z.ZodType<
2718
+ DeploymentCreateMetric24,
2719
+ z.ZodTypeDef,
2720
+ unknown
2721
+ > = z.object({
2722
+ type:
2723
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema,
2724
+ file: z.lazy(() => DeploymentCreateMetric2File$inboundSchema),
2725
+ });
2726
+
2727
+ /** @internal */
2728
+ export type DeploymentCreateMetric24$Outbound = {
2729
+ type: string;
2730
+ file: DeploymentCreateMetric2File$Outbound;
2731
+ };
2732
+
2733
+ /** @internal */
2734
+ export const DeploymentCreateMetric24$outboundSchema: z.ZodType<
2735
+ DeploymentCreateMetric24$Outbound,
2736
+ z.ZodTypeDef,
2737
+ DeploymentCreateMetric24
2738
+ > = z.object({
2739
+ type:
2740
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema,
2741
+ file: z.lazy(() => DeploymentCreateMetric2File$outboundSchema),
2742
+ });
2743
+
2744
+ /**
2745
+ * @internal
2746
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2747
+ */
2748
+ export namespace DeploymentCreateMetric24$ {
2749
+ /** @deprecated use `DeploymentCreateMetric24$inboundSchema` instead. */
2750
+ export const inboundSchema = DeploymentCreateMetric24$inboundSchema;
2751
+ /** @deprecated use `DeploymentCreateMetric24$outboundSchema` instead. */
2752
+ export const outboundSchema = DeploymentCreateMetric24$outboundSchema;
2753
+ /** @deprecated use `DeploymentCreateMetric24$Outbound` instead. */
2754
+ export type Outbound = DeploymentCreateMetric24$Outbound;
2755
+ }
2756
+
2757
+ export function deploymentCreateMetric24ToJSON(
2758
+ deploymentCreateMetric24: DeploymentCreateMetric24,
2759
+ ): string {
2760
+ return JSON.stringify(
2761
+ DeploymentCreateMetric24$outboundSchema.parse(deploymentCreateMetric24),
2762
+ );
2763
+ }
2764
+
2765
+ export function deploymentCreateMetric24FromJSON(
2766
+ jsonString: string,
2767
+ ): SafeParseResult<DeploymentCreateMetric24, SDKValidationError> {
2768
+ return safeParse(
2769
+ jsonString,
2770
+ (x) => DeploymentCreateMetric24$inboundSchema.parse(JSON.parse(x)),
2771
+ `Failed to parse 'DeploymentCreateMetric24' from JSON`,
2772
+ );
2773
+ }
2774
+
2775
+ /** @internal */
2776
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema:
2777
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
2778
+ z.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsRequestType);
2779
+
2780
+ /** @internal */
2781
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema:
2782
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
2783
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
2784
+
2785
+ /**
2786
+ * @internal
2787
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2788
+ */
2789
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestType$ {
2790
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema` instead. */
2791
+ export const inboundSchema =
2792
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
2793
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema` instead. */
2794
+ export const outboundSchema =
2795
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema;
2796
+ }
2797
+
2798
+ /** @internal */
2799
+ export const DeploymentCreateMetric2Format$inboundSchema: z.ZodNativeEnum<
2800
+ typeof DeploymentCreateMetric2Format
2801
+ > = z.nativeEnum(DeploymentCreateMetric2Format);
2802
+
2803
+ /** @internal */
2804
+ export const DeploymentCreateMetric2Format$outboundSchema: z.ZodNativeEnum<
2805
+ typeof DeploymentCreateMetric2Format
2806
+ > = DeploymentCreateMetric2Format$inboundSchema;
2807
+
2808
+ /**
2809
+ * @internal
2810
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2811
+ */
2812
+ export namespace DeploymentCreateMetric2Format$ {
2813
+ /** @deprecated use `DeploymentCreateMetric2Format$inboundSchema` instead. */
2814
+ export const inboundSchema = DeploymentCreateMetric2Format$inboundSchema;
2815
+ /** @deprecated use `DeploymentCreateMetric2Format$outboundSchema` instead. */
2816
+ export const outboundSchema = DeploymentCreateMetric2Format$outboundSchema;
2817
+ }
2818
+
2819
+ /** @internal */
2820
+ export const DeploymentCreateMetric2InputAudio$inboundSchema: z.ZodType<
2821
+ DeploymentCreateMetric2InputAudio,
2822
+ z.ZodTypeDef,
2823
+ unknown
2824
+ > = z.object({
2825
+ data: z.string(),
2826
+ format: DeploymentCreateMetric2Format$inboundSchema,
2827
+ });
2828
+
2829
+ /** @internal */
2830
+ export type DeploymentCreateMetric2InputAudio$Outbound = {
2831
+ data: string;
2832
+ format: string;
2833
+ };
2834
+
2835
+ /** @internal */
2836
+ export const DeploymentCreateMetric2InputAudio$outboundSchema: z.ZodType<
2837
+ DeploymentCreateMetric2InputAudio$Outbound,
2838
+ z.ZodTypeDef,
2839
+ DeploymentCreateMetric2InputAudio
2840
+ > = z.object({
2841
+ data: z.string(),
2842
+ format: DeploymentCreateMetric2Format$outboundSchema,
2843
+ });
2844
+
2845
+ /**
2846
+ * @internal
2847
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2848
+ */
2849
+ export namespace DeploymentCreateMetric2InputAudio$ {
2850
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$inboundSchema` instead. */
2851
+ export const inboundSchema = DeploymentCreateMetric2InputAudio$inboundSchema;
2852
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$outboundSchema` instead. */
2853
+ export const outboundSchema =
2854
+ DeploymentCreateMetric2InputAudio$outboundSchema;
2855
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$Outbound` instead. */
2856
+ export type Outbound = DeploymentCreateMetric2InputAudio$Outbound;
2857
+ }
2858
+
2859
+ export function deploymentCreateMetric2InputAudioToJSON(
2860
+ deploymentCreateMetric2InputAudio: DeploymentCreateMetric2InputAudio,
2861
+ ): string {
2862
+ return JSON.stringify(
2863
+ DeploymentCreateMetric2InputAudio$outboundSchema.parse(
2864
+ deploymentCreateMetric2InputAudio,
2865
+ ),
2866
+ );
2867
+ }
2868
+
2869
+ export function deploymentCreateMetric2InputAudioFromJSON(
2870
+ jsonString: string,
2871
+ ): SafeParseResult<DeploymentCreateMetric2InputAudio, SDKValidationError> {
2872
+ return safeParse(
2873
+ jsonString,
2874
+ (x) => DeploymentCreateMetric2InputAudio$inboundSchema.parse(JSON.parse(x)),
2875
+ `Failed to parse 'DeploymentCreateMetric2InputAudio' from JSON`,
2876
+ );
2877
+ }
2878
+
2879
+ /** @internal */
2880
+ export const DeploymentCreateMetric23$inboundSchema: z.ZodType<
2881
+ DeploymentCreateMetric23,
2882
+ z.ZodTypeDef,
2883
+ unknown
2884
+ > = z.object({
2885
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema,
2886
+ input_audio: z.lazy(() => DeploymentCreateMetric2InputAudio$inboundSchema),
2887
+ }).transform((v) => {
2888
+ return remap$(v, {
2889
+ "input_audio": "inputAudio",
2890
+ });
2891
+ });
2892
+
2893
+ /** @internal */
2894
+ export type DeploymentCreateMetric23$Outbound = {
2895
+ type: string;
2896
+ input_audio: DeploymentCreateMetric2InputAudio$Outbound;
2897
+ };
2898
+
2899
+ /** @internal */
2900
+ export const DeploymentCreateMetric23$outboundSchema: z.ZodType<
2901
+ DeploymentCreateMetric23$Outbound,
2902
+ z.ZodTypeDef,
2903
+ DeploymentCreateMetric23
2904
+ > = z.object({
2905
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema,
2906
+ inputAudio: z.lazy(() => DeploymentCreateMetric2InputAudio$outboundSchema),
2907
+ }).transform((v) => {
2908
+ return remap$(v, {
2909
+ inputAudio: "input_audio",
2910
+ });
2911
+ });
2912
+
2913
+ /**
2914
+ * @internal
2915
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2916
+ */
2917
+ export namespace DeploymentCreateMetric23$ {
2918
+ /** @deprecated use `DeploymentCreateMetric23$inboundSchema` instead. */
2919
+ export const inboundSchema = DeploymentCreateMetric23$inboundSchema;
2920
+ /** @deprecated use `DeploymentCreateMetric23$outboundSchema` instead. */
2921
+ export const outboundSchema = DeploymentCreateMetric23$outboundSchema;
2922
+ /** @deprecated use `DeploymentCreateMetric23$Outbound` instead. */
2923
+ export type Outbound = DeploymentCreateMetric23$Outbound;
2924
+ }
2925
+
2926
+ export function deploymentCreateMetric23ToJSON(
2927
+ deploymentCreateMetric23: DeploymentCreateMetric23,
2928
+ ): string {
2929
+ return JSON.stringify(
2930
+ DeploymentCreateMetric23$outboundSchema.parse(deploymentCreateMetric23),
2931
+ );
2932
+ }
2933
+
2934
+ export function deploymentCreateMetric23FromJSON(
2935
+ jsonString: string,
2936
+ ): SafeParseResult<DeploymentCreateMetric23, SDKValidationError> {
2937
+ return safeParse(
2938
+ jsonString,
2939
+ (x) => DeploymentCreateMetric23$inboundSchema.parse(JSON.parse(x)),
2940
+ `Failed to parse 'DeploymentCreateMetric23' from JSON`,
2941
+ );
2942
+ }
2943
+
2944
+ /** @internal */
2945
+ export const DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema:
2946
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> = z
2947
+ .nativeEnum(DeploymentCreateMetric2DeploymentsMetricsType);
2948
+
2949
+ /** @internal */
2950
+ export const DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema:
2951
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> =
2952
+ DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
2953
+
2954
+ /**
2955
+ * @internal
2956
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2957
+ */
2958
+ export namespace DeploymentCreateMetric2DeploymentsMetricsType$ {
2959
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema` instead. */
2960
+ export const inboundSchema =
2961
+ DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
2962
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema` instead. */
2963
+ export const outboundSchema =
2964
+ DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema;
2965
+ }
2966
+
2967
+ /** @internal */
2968
+ export const DeploymentCreateMetric2Detail$inboundSchema: z.ZodNativeEnum<
2969
+ typeof DeploymentCreateMetric2Detail
2970
+ > = z.nativeEnum(DeploymentCreateMetric2Detail);
2971
+
2972
+ /** @internal */
2973
+ export const DeploymentCreateMetric2Detail$outboundSchema: z.ZodNativeEnum<
2974
+ typeof DeploymentCreateMetric2Detail
2975
+ > = DeploymentCreateMetric2Detail$inboundSchema;
2976
+
2977
+ /**
2978
+ * @internal
2979
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2980
+ */
2981
+ export namespace DeploymentCreateMetric2Detail$ {
2982
+ /** @deprecated use `DeploymentCreateMetric2Detail$inboundSchema` instead. */
2983
+ export const inboundSchema = DeploymentCreateMetric2Detail$inboundSchema;
2984
+ /** @deprecated use `DeploymentCreateMetric2Detail$outboundSchema` instead. */
2985
+ export const outboundSchema = DeploymentCreateMetric2Detail$outboundSchema;
2986
+ }
2987
+
2988
+ /** @internal */
2989
+ export const DeploymentCreateMetric2ImageUrl$inboundSchema: z.ZodType<
2990
+ DeploymentCreateMetric2ImageUrl,
2991
+ z.ZodTypeDef,
2992
+ unknown
2993
+ > = z.object({
2994
+ url: z.string(),
2995
+ detail: DeploymentCreateMetric2Detail$inboundSchema.optional(),
2996
+ });
2997
+
2998
+ /** @internal */
2999
+ export type DeploymentCreateMetric2ImageUrl$Outbound = {
3000
+ url: string;
3001
+ detail?: string | undefined;
3002
+ };
3003
+
3004
+ /** @internal */
3005
+ export const DeploymentCreateMetric2ImageUrl$outboundSchema: z.ZodType<
3006
+ DeploymentCreateMetric2ImageUrl$Outbound,
3007
+ z.ZodTypeDef,
3008
+ DeploymentCreateMetric2ImageUrl
3009
+ > = z.object({
3010
+ url: z.string(),
3011
+ detail: DeploymentCreateMetric2Detail$outboundSchema.optional(),
3012
+ });
3013
+
3014
+ /**
3015
+ * @internal
3016
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3017
+ */
3018
+ export namespace DeploymentCreateMetric2ImageUrl$ {
3019
+ /** @deprecated use `DeploymentCreateMetric2ImageUrl$inboundSchema` instead. */
3020
+ export const inboundSchema = DeploymentCreateMetric2ImageUrl$inboundSchema;
3021
+ /** @deprecated use `DeploymentCreateMetric2ImageUrl$outboundSchema` instead. */
3022
+ export const outboundSchema = DeploymentCreateMetric2ImageUrl$outboundSchema;
3023
+ /** @deprecated use `DeploymentCreateMetric2ImageUrl$Outbound` instead. */
3024
+ export type Outbound = DeploymentCreateMetric2ImageUrl$Outbound;
3025
+ }
3026
+
3027
+ export function deploymentCreateMetric2ImageUrlToJSON(
3028
+ deploymentCreateMetric2ImageUrl: DeploymentCreateMetric2ImageUrl,
3029
+ ): string {
3030
+ return JSON.stringify(
3031
+ DeploymentCreateMetric2ImageUrl$outboundSchema.parse(
3032
+ deploymentCreateMetric2ImageUrl,
3033
+ ),
3034
+ );
3035
+ }
3036
+
3037
+ export function deploymentCreateMetric2ImageUrlFromJSON(
3038
+ jsonString: string,
3039
+ ): SafeParseResult<DeploymentCreateMetric2ImageUrl, SDKValidationError> {
3040
+ return safeParse(
3041
+ jsonString,
3042
+ (x) => DeploymentCreateMetric2ImageUrl$inboundSchema.parse(JSON.parse(x)),
3043
+ `Failed to parse 'DeploymentCreateMetric2ImageUrl' from JSON`,
3044
+ );
3045
+ }
3046
+
3047
+ /** @internal */
3048
+ export const DeploymentCreateMetric22$inboundSchema: z.ZodType<
3049
+ DeploymentCreateMetric22,
3050
+ z.ZodTypeDef,
3051
+ unknown
3052
+ > = z.object({
3053
+ type: DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema,
3054
+ image_url: z.lazy(() => DeploymentCreateMetric2ImageUrl$inboundSchema),
3055
+ }).transform((v) => {
3056
+ return remap$(v, {
3057
+ "image_url": "imageUrl",
3058
+ });
3059
+ });
3060
+
3061
+ /** @internal */
3062
+ export type DeploymentCreateMetric22$Outbound = {
3063
+ type: string;
3064
+ image_url: DeploymentCreateMetric2ImageUrl$Outbound;
3065
+ };
3066
+
3067
+ /** @internal */
3068
+ export const DeploymentCreateMetric22$outboundSchema: z.ZodType<
3069
+ DeploymentCreateMetric22$Outbound,
3070
+ z.ZodTypeDef,
3071
+ DeploymentCreateMetric22
3072
+ > = z.object({
3073
+ type: DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema,
3074
+ imageUrl: z.lazy(() => DeploymentCreateMetric2ImageUrl$outboundSchema),
3075
+ }).transform((v) => {
3076
+ return remap$(v, {
3077
+ imageUrl: "image_url",
3078
+ });
3079
+ });
3080
+
3081
+ /**
3082
+ * @internal
3083
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3084
+ */
3085
+ export namespace DeploymentCreateMetric22$ {
3086
+ /** @deprecated use `DeploymentCreateMetric22$inboundSchema` instead. */
3087
+ export const inboundSchema = DeploymentCreateMetric22$inboundSchema;
3088
+ /** @deprecated use `DeploymentCreateMetric22$outboundSchema` instead. */
3089
+ export const outboundSchema = DeploymentCreateMetric22$outboundSchema;
3090
+ /** @deprecated use `DeploymentCreateMetric22$Outbound` instead. */
3091
+ export type Outbound = DeploymentCreateMetric22$Outbound;
3092
+ }
3093
+
3094
+ export function deploymentCreateMetric22ToJSON(
3095
+ deploymentCreateMetric22: DeploymentCreateMetric22,
3096
+ ): string {
3097
+ return JSON.stringify(
3098
+ DeploymentCreateMetric22$outboundSchema.parse(deploymentCreateMetric22),
3099
+ );
3100
+ }
3101
+
3102
+ export function deploymentCreateMetric22FromJSON(
3103
+ jsonString: string,
3104
+ ): SafeParseResult<DeploymentCreateMetric22, SDKValidationError> {
3105
+ return safeParse(
3106
+ jsonString,
3107
+ (x) => DeploymentCreateMetric22$inboundSchema.parse(JSON.parse(x)),
3108
+ `Failed to parse 'DeploymentCreateMetric22' from JSON`,
3109
+ );
3110
+ }
3111
+
3112
+ /** @internal */
3113
+ export const DeploymentCreateMetric2Type$inboundSchema: z.ZodNativeEnum<
3114
+ typeof DeploymentCreateMetric2Type
3115
+ > = z.nativeEnum(DeploymentCreateMetric2Type);
3116
+
3117
+ /** @internal */
3118
+ export const DeploymentCreateMetric2Type$outboundSchema: z.ZodNativeEnum<
3119
+ typeof DeploymentCreateMetric2Type
3120
+ > = DeploymentCreateMetric2Type$inboundSchema;
3121
+
3122
+ /**
3123
+ * @internal
3124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3125
+ */
3126
+ export namespace DeploymentCreateMetric2Type$ {
3127
+ /** @deprecated use `DeploymentCreateMetric2Type$inboundSchema` instead. */
3128
+ export const inboundSchema = DeploymentCreateMetric2Type$inboundSchema;
3129
+ /** @deprecated use `DeploymentCreateMetric2Type$outboundSchema` instead. */
3130
+ export const outboundSchema = DeploymentCreateMetric2Type$outboundSchema;
3131
+ }
3132
+
3133
+ /** @internal */
3134
+ export const DeploymentCreateMetric21$inboundSchema: z.ZodType<
3135
+ DeploymentCreateMetric21,
3136
+ z.ZodTypeDef,
3137
+ unknown
3138
+ > = z.object({
3139
+ type: DeploymentCreateMetric2Type$inboundSchema,
3140
+ text: z.string(),
3141
+ });
3142
+
3143
+ /** @internal */
3144
+ export type DeploymentCreateMetric21$Outbound = {
3145
+ type: string;
3146
+ text: string;
3147
+ };
3148
+
3149
+ /** @internal */
3150
+ export const DeploymentCreateMetric21$outboundSchema: z.ZodType<
3151
+ DeploymentCreateMetric21$Outbound,
3152
+ z.ZodTypeDef,
3153
+ DeploymentCreateMetric21
3154
+ > = z.object({
3155
+ type: DeploymentCreateMetric2Type$outboundSchema,
3156
+ text: z.string(),
3157
+ });
3158
+
3159
+ /**
3160
+ * @internal
3161
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3162
+ */
3163
+ export namespace DeploymentCreateMetric21$ {
3164
+ /** @deprecated use `DeploymentCreateMetric21$inboundSchema` instead. */
3165
+ export const inboundSchema = DeploymentCreateMetric21$inboundSchema;
3166
+ /** @deprecated use `DeploymentCreateMetric21$outboundSchema` instead. */
3167
+ export const outboundSchema = DeploymentCreateMetric21$outboundSchema;
3168
+ /** @deprecated use `DeploymentCreateMetric21$Outbound` instead. */
3169
+ export type Outbound = DeploymentCreateMetric21$Outbound;
3170
+ }
3171
+
3172
+ export function deploymentCreateMetric21ToJSON(
3173
+ deploymentCreateMetric21: DeploymentCreateMetric21,
3174
+ ): string {
3175
+ return JSON.stringify(
3176
+ DeploymentCreateMetric21$outboundSchema.parse(deploymentCreateMetric21),
3177
+ );
3178
+ }
3179
+
3180
+ export function deploymentCreateMetric21FromJSON(
3181
+ jsonString: string,
3182
+ ): SafeParseResult<DeploymentCreateMetric21, SDKValidationError> {
3183
+ return safeParse(
3184
+ jsonString,
3185
+ (x) => DeploymentCreateMetric21$inboundSchema.parse(JSON.parse(x)),
3186
+ `Failed to parse 'DeploymentCreateMetric21' from JSON`,
3187
+ );
3188
+ }
3189
+
3190
+ /** @internal */
3191
+ export const DeploymentCreateMetricContent2$inboundSchema: z.ZodType<
3192
+ DeploymentCreateMetricContent2,
3193
+ z.ZodTypeDef,
3194
+ unknown
3195
+ > = z.union([
3196
+ z.lazy(() => DeploymentCreateMetric21$inboundSchema),
3197
+ z.lazy(() => DeploymentCreateMetric22$inboundSchema),
3198
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
3199
+ z.lazy(() => DeploymentCreateMetric24$inboundSchema),
3200
+ ]);
3201
+
3202
+ /** @internal */
3203
+ export type DeploymentCreateMetricContent2$Outbound =
3204
+ | DeploymentCreateMetric21$Outbound
3205
+ | DeploymentCreateMetric22$Outbound
3206
+ | DeploymentCreateMetric23$Outbound
3207
+ | DeploymentCreateMetric24$Outbound;
3208
+
3209
+ /** @internal */
3210
+ export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
3211
+ DeploymentCreateMetricContent2$Outbound,
3212
+ z.ZodTypeDef,
3213
+ DeploymentCreateMetricContent2
3214
+ > = z.union([
3215
+ z.lazy(() => DeploymentCreateMetric21$outboundSchema),
3216
+ z.lazy(() => DeploymentCreateMetric22$outboundSchema),
3217
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
3218
+ z.lazy(() => DeploymentCreateMetric24$outboundSchema),
3219
+ ]);
3220
+
3221
+ /**
3222
+ * @internal
3223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3224
+ */
3225
+ export namespace DeploymentCreateMetricContent2$ {
3226
+ /** @deprecated use `DeploymentCreateMetricContent2$inboundSchema` instead. */
3227
+ export const inboundSchema = DeploymentCreateMetricContent2$inboundSchema;
3228
+ /** @deprecated use `DeploymentCreateMetricContent2$outboundSchema` instead. */
3229
+ export const outboundSchema = DeploymentCreateMetricContent2$outboundSchema;
3230
+ /** @deprecated use `DeploymentCreateMetricContent2$Outbound` instead. */
3231
+ export type Outbound = DeploymentCreateMetricContent2$Outbound;
3232
+ }
3233
+
3234
+ export function deploymentCreateMetricContent2ToJSON(
3235
+ deploymentCreateMetricContent2: DeploymentCreateMetricContent2,
3236
+ ): string {
3237
+ return JSON.stringify(
3238
+ DeploymentCreateMetricContent2$outboundSchema.parse(
3239
+ deploymentCreateMetricContent2,
3240
+ ),
3241
+ );
3242
+ }
3243
+
3244
+ export function deploymentCreateMetricContent2FromJSON(
3245
+ jsonString: string,
3246
+ ): SafeParseResult<DeploymentCreateMetricContent2, SDKValidationError> {
3247
+ return safeParse(
3248
+ jsonString,
3249
+ (x) => DeploymentCreateMetricContent2$inboundSchema.parse(JSON.parse(x)),
3250
+ `Failed to parse 'DeploymentCreateMetricContent2' from JSON`,
3251
+ );
3252
+ }
3253
+
3254
+ /** @internal */
3255
+ export const DeploymentCreateMetricMessagesContent$inboundSchema: z.ZodType<
3256
+ DeploymentCreateMetricMessagesContent,
3257
+ z.ZodTypeDef,
3258
+ unknown
3259
+ > = z.union([
3260
+ z.string(),
3261
+ z.array(z.union([
3262
+ z.lazy(() => DeploymentCreateMetric21$inboundSchema),
3263
+ z.lazy(() => DeploymentCreateMetric22$inboundSchema),
3264
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
3265
+ z.lazy(() => DeploymentCreateMetric24$inboundSchema),
3266
+ ])),
3267
+ ]);
3268
+
3269
+ /** @internal */
3270
+ export type DeploymentCreateMetricMessagesContent$Outbound =
3271
+ | string
3272
+ | Array<
3273
+ | DeploymentCreateMetric21$Outbound
3274
+ | DeploymentCreateMetric22$Outbound
3275
+ | DeploymentCreateMetric23$Outbound
3276
+ | DeploymentCreateMetric24$Outbound
3277
+ >;
3278
+
3279
+ /** @internal */
3280
+ export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
3281
+ DeploymentCreateMetricMessagesContent$Outbound,
3282
+ z.ZodTypeDef,
3283
+ DeploymentCreateMetricMessagesContent
3284
+ > = z.union([
3285
+ z.string(),
3286
+ z.array(z.union([
3287
+ z.lazy(() => DeploymentCreateMetric21$outboundSchema),
3288
+ z.lazy(() => DeploymentCreateMetric22$outboundSchema),
3289
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
3290
+ z.lazy(() => DeploymentCreateMetric24$outboundSchema),
3291
+ ])),
3292
+ ]);
3293
+
3294
+ /**
3295
+ * @internal
3296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3297
+ */
3298
+ export namespace DeploymentCreateMetricMessagesContent$ {
3299
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$inboundSchema` instead. */
3300
+ export const inboundSchema =
3301
+ DeploymentCreateMetricMessagesContent$inboundSchema;
3302
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$outboundSchema` instead. */
3303
+ export const outboundSchema =
3304
+ DeploymentCreateMetricMessagesContent$outboundSchema;
3305
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$Outbound` instead. */
3306
+ export type Outbound = DeploymentCreateMetricMessagesContent$Outbound;
3307
+ }
3308
+
3309
+ export function deploymentCreateMetricMessagesContentToJSON(
3310
+ deploymentCreateMetricMessagesContent: DeploymentCreateMetricMessagesContent,
3311
+ ): string {
3312
+ return JSON.stringify(
3313
+ DeploymentCreateMetricMessagesContent$outboundSchema.parse(
3314
+ deploymentCreateMetricMessagesContent,
3315
+ ),
3316
+ );
3317
+ }
3318
+
3319
+ export function deploymentCreateMetricMessagesContentFromJSON(
3320
+ jsonString: string,
3321
+ ): SafeParseResult<DeploymentCreateMetricMessagesContent, SDKValidationError> {
3322
+ return safeParse(
3323
+ jsonString,
3324
+ (x) =>
3325
+ DeploymentCreateMetricMessagesContent$inboundSchema.parse(JSON.parse(x)),
3326
+ `Failed to parse 'DeploymentCreateMetricMessagesContent' from JSON`,
3327
+ );
3328
+ }
3329
+
3330
+ /** @internal */
3331
+ export const DeploymentCreateMetricMessagesUserMessage$inboundSchema: z.ZodType<
3332
+ DeploymentCreateMetricMessagesUserMessage,
3333
+ z.ZodTypeDef,
3334
+ unknown
3335
+ > = z.object({
3336
+ role:
3337
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema,
3338
+ name: z.string().optional(),
3339
+ content: z.union([
3340
+ z.string(),
3341
+ z.array(z.union([
3342
+ z.lazy(() => DeploymentCreateMetric21$inboundSchema),
3343
+ z.lazy(() => DeploymentCreateMetric22$inboundSchema),
3344
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
3345
+ z.lazy(() => DeploymentCreateMetric24$inboundSchema),
3346
+ ])),
3347
+ ]),
3348
+ });
3349
+
3350
+ /** @internal */
3351
+ export type DeploymentCreateMetricMessagesUserMessage$Outbound = {
3352
+ role: string;
3353
+ name?: string | undefined;
3354
+ content:
3355
+ | string
3356
+ | Array<
3357
+ | DeploymentCreateMetric21$Outbound
3358
+ | DeploymentCreateMetric22$Outbound
3359
+ | DeploymentCreateMetric23$Outbound
3360
+ | DeploymentCreateMetric24$Outbound
3361
+ >;
3362
+ };
3363
+
3364
+ /** @internal */
3365
+ export const DeploymentCreateMetricMessagesUserMessage$outboundSchema:
3366
+ z.ZodType<
3367
+ DeploymentCreateMetricMessagesUserMessage$Outbound,
3368
+ z.ZodTypeDef,
3369
+ DeploymentCreateMetricMessagesUserMessage
3370
+ > = z.object({
3371
+ role:
3372
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema,
3373
+ name: z.string().optional(),
3374
+ content: z.union([
3375
+ z.string(),
3376
+ z.array(z.union([
3377
+ z.lazy(() => DeploymentCreateMetric21$outboundSchema),
3378
+ z.lazy(() => DeploymentCreateMetric22$outboundSchema),
3379
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
3380
+ z.lazy(() => DeploymentCreateMetric24$outboundSchema),
3381
+ ])),
3382
+ ]),
3383
+ });
3384
+
3385
+ /**
3386
+ * @internal
3387
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3388
+ */
3389
+ export namespace DeploymentCreateMetricMessagesUserMessage$ {
3390
+ /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$inboundSchema` instead. */
3391
+ export const inboundSchema =
3392
+ DeploymentCreateMetricMessagesUserMessage$inboundSchema;
3393
+ /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$outboundSchema` instead. */
3394
+ export const outboundSchema =
3395
+ DeploymentCreateMetricMessagesUserMessage$outboundSchema;
3396
+ /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$Outbound` instead. */
3397
+ export type Outbound = DeploymentCreateMetricMessagesUserMessage$Outbound;
3398
+ }
3399
+
3400
+ export function deploymentCreateMetricMessagesUserMessageToJSON(
3401
+ deploymentCreateMetricMessagesUserMessage:
3402
+ DeploymentCreateMetricMessagesUserMessage,
3403
+ ): string {
3404
+ return JSON.stringify(
3405
+ DeploymentCreateMetricMessagesUserMessage$outboundSchema.parse(
3406
+ deploymentCreateMetricMessagesUserMessage,
3407
+ ),
3408
+ );
3409
+ }
3410
+
3411
+ export function deploymentCreateMetricMessagesUserMessageFromJSON(
3412
+ jsonString: string,
3413
+ ): SafeParseResult<
3414
+ DeploymentCreateMetricMessagesUserMessage,
3415
+ SDKValidationError
3416
+ > {
3417
+ return safeParse(
3418
+ jsonString,
3419
+ (x) =>
3420
+ DeploymentCreateMetricMessagesUserMessage$inboundSchema.parse(
3421
+ JSON.parse(x),
3422
+ ),
3423
+ `Failed to parse 'DeploymentCreateMetricMessagesUserMessage' from JSON`,
3424
+ );
3425
+ }
3426
+
3427
+ /** @internal */
3428
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema:
3429
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
3430
+ z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRole);
3431
+
3432
+ /** @internal */
3433
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema:
3434
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
3435
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
3436
+
3437
+ /**
3438
+ * @internal
3439
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3440
+ */
3441
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRole$ {
3442
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema` instead. */
3443
+ export const inboundSchema =
3444
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
3445
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema` instead. */
3446
+ export const outboundSchema =
3447
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema;
2488
3448
  }
2489
3449
 
2490
3450
  /** @internal */
2491
- export const DeploymentCreateMetric22$inboundSchema: z.ZodType<
2492
- DeploymentCreateMetric22,
2493
- z.ZodTypeDef,
2494
- unknown
2495
- > = z.object({
2496
- type: DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema,
2497
- image_url: z.lazy(() => DeploymentCreateMetric2ImageUrl$inboundSchema),
2498
- }).transform((v) => {
2499
- return remap$(v, {
2500
- "image_url": "imageUrl",
3451
+ export const DeploymentCreateMetricMessagesSystemMessage$inboundSchema:
3452
+ z.ZodType<
3453
+ DeploymentCreateMetricMessagesSystemMessage,
3454
+ z.ZodTypeDef,
3455
+ unknown
3456
+ > = z.object({
3457
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
3458
+ content: z.string(),
3459
+ name: z.string().optional(),
2501
3460
  });
2502
- });
2503
3461
 
2504
3462
  /** @internal */
2505
- export type DeploymentCreateMetric22$Outbound = {
2506
- type: string;
2507
- image_url: DeploymentCreateMetric2ImageUrl$Outbound;
3463
+ export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
3464
+ role: string;
3465
+ content: string;
3466
+ name?: string | undefined;
2508
3467
  };
2509
3468
 
2510
3469
  /** @internal */
2511
- export const DeploymentCreateMetric22$outboundSchema: z.ZodType<
2512
- DeploymentCreateMetric22$Outbound,
2513
- z.ZodTypeDef,
2514
- DeploymentCreateMetric22
2515
- > = z.object({
2516
- type: DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema,
2517
- imageUrl: z.lazy(() => DeploymentCreateMetric2ImageUrl$outboundSchema),
2518
- }).transform((v) => {
2519
- return remap$(v, {
2520
- imageUrl: "image_url",
3470
+ export const DeploymentCreateMetricMessagesSystemMessage$outboundSchema:
3471
+ z.ZodType<
3472
+ DeploymentCreateMetricMessagesSystemMessage$Outbound,
3473
+ z.ZodTypeDef,
3474
+ DeploymentCreateMetricMessagesSystemMessage
3475
+ > = z.object({
3476
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
3477
+ content: z.string(),
3478
+ name: z.string().optional(),
2521
3479
  });
2522
- });
2523
3480
 
2524
3481
  /**
2525
3482
  * @internal
2526
3483
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2527
3484
  */
2528
- export namespace DeploymentCreateMetric22$ {
2529
- /** @deprecated use `DeploymentCreateMetric22$inboundSchema` instead. */
2530
- export const inboundSchema = DeploymentCreateMetric22$inboundSchema;
2531
- /** @deprecated use `DeploymentCreateMetric22$outboundSchema` instead. */
2532
- export const outboundSchema = DeploymentCreateMetric22$outboundSchema;
2533
- /** @deprecated use `DeploymentCreateMetric22$Outbound` instead. */
2534
- export type Outbound = DeploymentCreateMetric22$Outbound;
3485
+ export namespace DeploymentCreateMetricMessagesSystemMessage$ {
3486
+ /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$inboundSchema` instead. */
3487
+ export const inboundSchema =
3488
+ DeploymentCreateMetricMessagesSystemMessage$inboundSchema;
3489
+ /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$outboundSchema` instead. */
3490
+ export const outboundSchema =
3491
+ DeploymentCreateMetricMessagesSystemMessage$outboundSchema;
3492
+ /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$Outbound` instead. */
3493
+ export type Outbound = DeploymentCreateMetricMessagesSystemMessage$Outbound;
2535
3494
  }
2536
3495
 
2537
- export function deploymentCreateMetric22ToJSON(
2538
- deploymentCreateMetric22: DeploymentCreateMetric22,
3496
+ export function deploymentCreateMetricMessagesSystemMessageToJSON(
3497
+ deploymentCreateMetricMessagesSystemMessage:
3498
+ DeploymentCreateMetricMessagesSystemMessage,
2539
3499
  ): string {
2540
3500
  return JSON.stringify(
2541
- DeploymentCreateMetric22$outboundSchema.parse(deploymentCreateMetric22),
3501
+ DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
3502
+ deploymentCreateMetricMessagesSystemMessage,
3503
+ ),
2542
3504
  );
2543
3505
  }
2544
3506
 
2545
- export function deploymentCreateMetric22FromJSON(
3507
+ export function deploymentCreateMetricMessagesSystemMessageFromJSON(
2546
3508
  jsonString: string,
2547
- ): SafeParseResult<DeploymentCreateMetric22, SDKValidationError> {
3509
+ ): SafeParseResult<
3510
+ DeploymentCreateMetricMessagesSystemMessage,
3511
+ SDKValidationError
3512
+ > {
2548
3513
  return safeParse(
2549
3514
  jsonString,
2550
- (x) => DeploymentCreateMetric22$inboundSchema.parse(JSON.parse(x)),
2551
- `Failed to parse 'DeploymentCreateMetric22' from JSON`,
3515
+ (x) =>
3516
+ DeploymentCreateMetricMessagesSystemMessage$inboundSchema.parse(
3517
+ JSON.parse(x),
3518
+ ),
3519
+ `Failed to parse 'DeploymentCreateMetricMessagesSystemMessage' from JSON`,
2552
3520
  );
2553
3521
  }
2554
3522
 
2555
3523
  /** @internal */
2556
- export const DeploymentCreateMetric2Type$inboundSchema: z.ZodNativeEnum<
2557
- typeof DeploymentCreateMetric2Type
2558
- > = z.nativeEnum(DeploymentCreateMetric2Type);
3524
+ export const DeploymentCreateMetricMessagesRole$inboundSchema: z.ZodNativeEnum<
3525
+ typeof DeploymentCreateMetricMessagesRole
3526
+ > = z.nativeEnum(DeploymentCreateMetricMessagesRole);
2559
3527
 
2560
3528
  /** @internal */
2561
- export const DeploymentCreateMetric2Type$outboundSchema: z.ZodNativeEnum<
2562
- typeof DeploymentCreateMetric2Type
2563
- > = DeploymentCreateMetric2Type$inboundSchema;
3529
+ export const DeploymentCreateMetricMessagesRole$outboundSchema: z.ZodNativeEnum<
3530
+ typeof DeploymentCreateMetricMessagesRole
3531
+ > = DeploymentCreateMetricMessagesRole$inboundSchema;
2564
3532
 
2565
3533
  /**
2566
3534
  * @internal
2567
3535
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2568
3536
  */
2569
- export namespace DeploymentCreateMetric2Type$ {
2570
- /** @deprecated use `DeploymentCreateMetric2Type$inboundSchema` instead. */
2571
- export const inboundSchema = DeploymentCreateMetric2Type$inboundSchema;
2572
- /** @deprecated use `DeploymentCreateMetric2Type$outboundSchema` instead. */
2573
- export const outboundSchema = DeploymentCreateMetric2Type$outboundSchema;
3537
+ export namespace DeploymentCreateMetricMessagesRole$ {
3538
+ /** @deprecated use `DeploymentCreateMetricMessagesRole$inboundSchema` instead. */
3539
+ export const inboundSchema = DeploymentCreateMetricMessagesRole$inboundSchema;
3540
+ /** @deprecated use `DeploymentCreateMetricMessagesRole$outboundSchema` instead. */
3541
+ export const outboundSchema =
3542
+ DeploymentCreateMetricMessagesRole$outboundSchema;
2574
3543
  }
2575
3544
 
2576
3545
  /** @internal */
2577
- export const DeploymentCreateMetric21$inboundSchema: z.ZodType<
2578
- DeploymentCreateMetric21,
2579
- z.ZodTypeDef,
2580
- unknown
2581
- > = z.object({
2582
- type: DeploymentCreateMetric2Type$inboundSchema,
2583
- text: z.string(),
2584
- });
3546
+ export const DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema:
3547
+ z.ZodType<
3548
+ DeploymentCreateMetricMessagesDeveloperMessage,
3549
+ z.ZodTypeDef,
3550
+ unknown
3551
+ > = z.object({
3552
+ role: DeploymentCreateMetricMessagesRole$inboundSchema,
3553
+ content: z.string(),
3554
+ name: z.string().optional(),
3555
+ });
2585
3556
 
2586
3557
  /** @internal */
2587
- export type DeploymentCreateMetric21$Outbound = {
2588
- type: string;
2589
- text: string;
3558
+ export type DeploymentCreateMetricMessagesDeveloperMessage$Outbound = {
3559
+ role: string;
3560
+ content: string;
3561
+ name?: string | undefined;
2590
3562
  };
2591
3563
 
2592
3564
  /** @internal */
2593
- export const DeploymentCreateMetric21$outboundSchema: z.ZodType<
2594
- DeploymentCreateMetric21$Outbound,
2595
- z.ZodTypeDef,
2596
- DeploymentCreateMetric21
2597
- > = z.object({
2598
- type: DeploymentCreateMetric2Type$outboundSchema,
2599
- text: z.string(),
2600
- });
3565
+ export const DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema:
3566
+ z.ZodType<
3567
+ DeploymentCreateMetricMessagesDeveloperMessage$Outbound,
3568
+ z.ZodTypeDef,
3569
+ DeploymentCreateMetricMessagesDeveloperMessage
3570
+ > = z.object({
3571
+ role: DeploymentCreateMetricMessagesRole$outboundSchema,
3572
+ content: z.string(),
3573
+ name: z.string().optional(),
3574
+ });
2601
3575
 
2602
3576
  /**
2603
3577
  * @internal
2604
3578
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2605
3579
  */
2606
- export namespace DeploymentCreateMetric21$ {
2607
- /** @deprecated use `DeploymentCreateMetric21$inboundSchema` instead. */
2608
- export const inboundSchema = DeploymentCreateMetric21$inboundSchema;
2609
- /** @deprecated use `DeploymentCreateMetric21$outboundSchema` instead. */
2610
- export const outboundSchema = DeploymentCreateMetric21$outboundSchema;
2611
- /** @deprecated use `DeploymentCreateMetric21$Outbound` instead. */
2612
- export type Outbound = DeploymentCreateMetric21$Outbound;
3580
+ export namespace DeploymentCreateMetricMessagesDeveloperMessage$ {
3581
+ /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema` instead. */
3582
+ export const inboundSchema =
3583
+ DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema;
3584
+ /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema` instead. */
3585
+ export const outboundSchema =
3586
+ DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema;
3587
+ /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$Outbound` instead. */
3588
+ export type Outbound =
3589
+ DeploymentCreateMetricMessagesDeveloperMessage$Outbound;
2613
3590
  }
2614
3591
 
2615
- export function deploymentCreateMetric21ToJSON(
2616
- deploymentCreateMetric21: DeploymentCreateMetric21,
3592
+ export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
3593
+ deploymentCreateMetricMessagesDeveloperMessage:
3594
+ DeploymentCreateMetricMessagesDeveloperMessage,
2617
3595
  ): string {
2618
3596
  return JSON.stringify(
2619
- DeploymentCreateMetric21$outboundSchema.parse(deploymentCreateMetric21),
3597
+ DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
3598
+ deploymentCreateMetricMessagesDeveloperMessage,
3599
+ ),
2620
3600
  );
2621
3601
  }
2622
3602
 
2623
- export function deploymentCreateMetric21FromJSON(
3603
+ export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
2624
3604
  jsonString: string,
2625
- ): SafeParseResult<DeploymentCreateMetric21, SDKValidationError> {
3605
+ ): SafeParseResult<
3606
+ DeploymentCreateMetricMessagesDeveloperMessage,
3607
+ SDKValidationError
3608
+ > {
2626
3609
  return safeParse(
2627
3610
  jsonString,
2628
- (x) => DeploymentCreateMetric21$inboundSchema.parse(JSON.parse(x)),
2629
- `Failed to parse 'DeploymentCreateMetric21' from JSON`,
3611
+ (x) =>
3612
+ DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema.parse(
3613
+ JSON.parse(x),
3614
+ ),
3615
+ `Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
2630
3616
  );
2631
3617
  }
2632
3618
 
2633
3619
  /** @internal */
2634
- export const DeploymentCreateMetricContent2$inboundSchema: z.ZodType<
2635
- DeploymentCreateMetricContent2,
3620
+ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
3621
+ DeploymentCreateMetricMessages,
2636
3622
  z.ZodTypeDef,
2637
3623
  unknown
2638
3624
  > = z.union([
2639
- z.lazy(() => DeploymentCreateMetric21$inboundSchema),
2640
- z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2641
- z.lazy(() => DeploymentCreateMetric23$inboundSchema),
2642
- z.lazy(() => DeploymentCreateMetric24$inboundSchema),
3625
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
3626
+ z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
3627
+ z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
3628
+ z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
3629
+ z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
2643
3630
  ]);
2644
3631
 
2645
3632
  /** @internal */
2646
- export type DeploymentCreateMetricContent2$Outbound =
2647
- | DeploymentCreateMetric21$Outbound
2648
- | DeploymentCreateMetric22$Outbound
2649
- | DeploymentCreateMetric23$Outbound
2650
- | DeploymentCreateMetric24$Outbound;
3633
+ export type DeploymentCreateMetricMessages$Outbound =
3634
+ | DeploymentCreateMetricMessagesToolMessage$Outbound
3635
+ | DeploymentCreateMetricMessagesDeveloperMessage$Outbound
3636
+ | DeploymentCreateMetricMessagesSystemMessage$Outbound
3637
+ | DeploymentCreateMetricMessagesUserMessage$Outbound
3638
+ | DeploymentCreateMetricMessagesAssistantMessage$Outbound;
2651
3639
 
2652
3640
  /** @internal */
2653
- export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
2654
- DeploymentCreateMetricContent2$Outbound,
3641
+ export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
3642
+ DeploymentCreateMetricMessages$Outbound,
2655
3643
  z.ZodTypeDef,
2656
- DeploymentCreateMetricContent2
3644
+ DeploymentCreateMetricMessages
2657
3645
  > = z.union([
2658
- z.lazy(() => DeploymentCreateMetric21$outboundSchema),
2659
- z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2660
- z.lazy(() => DeploymentCreateMetric23$outboundSchema),
2661
- z.lazy(() => DeploymentCreateMetric24$outboundSchema),
3646
+ z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
3647
+ z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
3648
+ z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
3649
+ z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
3650
+ z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
2662
3651
  ]);
2663
3652
 
2664
3653
  /**
2665
3654
  * @internal
2666
3655
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2667
3656
  */
2668
- export namespace DeploymentCreateMetricContent2$ {
2669
- /** @deprecated use `DeploymentCreateMetricContent2$inboundSchema` instead. */
2670
- export const inboundSchema = DeploymentCreateMetricContent2$inboundSchema;
2671
- /** @deprecated use `DeploymentCreateMetricContent2$outboundSchema` instead. */
2672
- export const outboundSchema = DeploymentCreateMetricContent2$outboundSchema;
2673
- /** @deprecated use `DeploymentCreateMetricContent2$Outbound` instead. */
2674
- export type Outbound = DeploymentCreateMetricContent2$Outbound;
3657
+ export namespace DeploymentCreateMetricMessages$ {
3658
+ /** @deprecated use `DeploymentCreateMetricMessages$inboundSchema` instead. */
3659
+ export const inboundSchema = DeploymentCreateMetricMessages$inboundSchema;
3660
+ /** @deprecated use `DeploymentCreateMetricMessages$outboundSchema` instead. */
3661
+ export const outboundSchema = DeploymentCreateMetricMessages$outboundSchema;
3662
+ /** @deprecated use `DeploymentCreateMetricMessages$Outbound` instead. */
3663
+ export type Outbound = DeploymentCreateMetricMessages$Outbound;
2675
3664
  }
2676
3665
 
2677
- export function deploymentCreateMetricContent2ToJSON(
2678
- deploymentCreateMetricContent2: DeploymentCreateMetricContent2,
3666
+ export function deploymentCreateMetricMessagesToJSON(
3667
+ deploymentCreateMetricMessages: DeploymentCreateMetricMessages,
2679
3668
  ): string {
2680
3669
  return JSON.stringify(
2681
- DeploymentCreateMetricContent2$outboundSchema.parse(
2682
- deploymentCreateMetricContent2,
3670
+ DeploymentCreateMetricMessages$outboundSchema.parse(
3671
+ deploymentCreateMetricMessages,
2683
3672
  ),
2684
3673
  );
2685
3674
  }
2686
3675
 
2687
- export function deploymentCreateMetricContent2FromJSON(
3676
+ export function deploymentCreateMetricMessagesFromJSON(
2688
3677
  jsonString: string,
2689
- ): SafeParseResult<DeploymentCreateMetricContent2, SDKValidationError> {
3678
+ ): SafeParseResult<DeploymentCreateMetricMessages, SDKValidationError> {
2690
3679
  return safeParse(
2691
3680
  jsonString,
2692
- (x) => DeploymentCreateMetricContent2$inboundSchema.parse(JSON.parse(x)),
2693
- `Failed to parse 'DeploymentCreateMetricContent2' from JSON`,
3681
+ (x) => DeploymentCreateMetricMessages$inboundSchema.parse(JSON.parse(x)),
3682
+ `Failed to parse 'DeploymentCreateMetricMessages' from JSON`,
2694
3683
  );
2695
3684
  }
2696
3685
 
2697
3686
  /** @internal */
2698
- export const DeploymentCreateMetricMessagesContent$inboundSchema: z.ZodType<
2699
- DeploymentCreateMetricMessagesContent,
2700
- z.ZodTypeDef,
2701
- unknown
2702
- > = z.union([
2703
- z.string(),
2704
- z.array(z.union([
2705
- z.lazy(() => DeploymentCreateMetric21$inboundSchema),
2706
- z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2707
- z.lazy(() => DeploymentCreateMetric23$inboundSchema),
2708
- z.lazy(() => DeploymentCreateMetric24$inboundSchema),
2709
- ])),
2710
- ]);
3687
+ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
3688
+ z.ZodNativeEnum<
3689
+ typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
3690
+ > = z.nativeEnum(
3691
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole,
3692
+ );
2711
3693
 
2712
3694
  /** @internal */
2713
- export type DeploymentCreateMetricMessagesContent$Outbound =
3695
+ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
3696
+ z.ZodNativeEnum<
3697
+ typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
3698
+ > =
3699
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
3700
+
3701
+ /**
3702
+ * @internal
3703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3704
+ */
3705
+ export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ {
3706
+ /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
3707
+ export const inboundSchema =
3708
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
3709
+ /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
3710
+ export const outboundSchema =
3711
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
3712
+ }
3713
+
3714
+ /** @internal */
3715
+ export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema:
3716
+ z.ZodType<
3717
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent,
3718
+ z.ZodTypeDef,
3719
+ unknown
3720
+ > = z.union([z.string(), z.array(z.string())]);
3721
+
3722
+ /** @internal */
3723
+ export type DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound =
2714
3724
  | string
2715
- | Array<
2716
- | DeploymentCreateMetric21$Outbound
2717
- | DeploymentCreateMetric22$Outbound
2718
- | DeploymentCreateMetric23$Outbound
2719
- | DeploymentCreateMetric24$Outbound
2720
- >;
3725
+ | Array<string>;
2721
3726
 
2722
3727
  /** @internal */
2723
- export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
2724
- DeploymentCreateMetricMessagesContent$Outbound,
2725
- z.ZodTypeDef,
2726
- DeploymentCreateMetricMessagesContent
2727
- > = z.union([
2728
- z.string(),
2729
- z.array(z.union([
2730
- z.lazy(() => DeploymentCreateMetric21$outboundSchema),
2731
- z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2732
- z.lazy(() => DeploymentCreateMetric23$outboundSchema),
2733
- z.lazy(() => DeploymentCreateMetric24$outboundSchema),
2734
- ])),
2735
- ]);
3728
+ export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema:
3729
+ z.ZodType<
3730
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound,
3731
+ z.ZodTypeDef,
3732
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent
3733
+ > = z.union([z.string(), z.array(z.string())]);
2736
3734
 
2737
3735
  /**
2738
3736
  * @internal
2739
3737
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2740
3738
  */
2741
- export namespace DeploymentCreateMetricMessagesContent$ {
2742
- /** @deprecated use `DeploymentCreateMetricMessagesContent$inboundSchema` instead. */
3739
+ export namespace DeploymentCreateMetricChoicesDeploymentsMetricsContent$ {
3740
+ /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
2743
3741
  export const inboundSchema =
2744
- DeploymentCreateMetricMessagesContent$inboundSchema;
2745
- /** @deprecated use `DeploymentCreateMetricMessagesContent$outboundSchema` instead. */
3742
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
3743
+ /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
2746
3744
  export const outboundSchema =
2747
- DeploymentCreateMetricMessagesContent$outboundSchema;
2748
- /** @deprecated use `DeploymentCreateMetricMessagesContent$Outbound` instead. */
2749
- export type Outbound = DeploymentCreateMetricMessagesContent$Outbound;
3745
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
3746
+ /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound` instead. */
3747
+ export type Outbound =
3748
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound;
2750
3749
  }
2751
3750
 
2752
- export function deploymentCreateMetricMessagesContentToJSON(
2753
- deploymentCreateMetricMessagesContent: DeploymentCreateMetricMessagesContent,
3751
+ export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
3752
+ deploymentCreateMetricChoicesDeploymentsMetricsContent:
3753
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent,
2754
3754
  ): string {
2755
3755
  return JSON.stringify(
2756
- DeploymentCreateMetricMessagesContent$outboundSchema.parse(
2757
- deploymentCreateMetricMessagesContent,
3756
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(
3757
+ deploymentCreateMetricChoicesDeploymentsMetricsContent,
2758
3758
  ),
2759
3759
  );
2760
3760
  }
2761
3761
 
2762
- export function deploymentCreateMetricMessagesContentFromJSON(
3762
+ export function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(
2763
3763
  jsonString: string,
2764
- ): SafeParseResult<DeploymentCreateMetricMessagesContent, SDKValidationError> {
3764
+ ): SafeParseResult<
3765
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent,
3766
+ SDKValidationError
3767
+ > {
2765
3768
  return safeParse(
2766
3769
  jsonString,
2767
3770
  (x) =>
2768
- DeploymentCreateMetricMessagesContent$inboundSchema.parse(JSON.parse(x)),
2769
- `Failed to parse 'DeploymentCreateMetricMessagesContent' from JSON`,
3771
+ DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema
3772
+ .parse(JSON.parse(x)),
3773
+ `Failed to parse 'DeploymentCreateMetricChoicesDeploymentsMetricsContent' from JSON`,
2770
3774
  );
2771
3775
  }
2772
3776
 
2773
3777
  /** @internal */
2774
- export const DeploymentCreateMetricMessagesUserMessage$inboundSchema: z.ZodType<
2775
- DeploymentCreateMetricMessagesUserMessage,
3778
+ export const ChoicesToolMessage$inboundSchema: z.ZodType<
3779
+ ChoicesToolMessage,
2776
3780
  z.ZodTypeDef,
2777
3781
  unknown
2778
3782
  > = z.object({
2779
3783
  role:
2780
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema,
2781
- name: z.string().optional(),
2782
- content: z.union([
2783
- z.string(),
2784
- z.array(z.union([
2785
- z.lazy(() => DeploymentCreateMetric21$inboundSchema),
2786
- z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2787
- z.lazy(() => DeploymentCreateMetric23$inboundSchema),
2788
- z.lazy(() => DeploymentCreateMetric24$inboundSchema),
2789
- ])),
2790
- ]),
3784
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
3785
+ content: z.union([z.string(), z.array(z.string())]),
3786
+ tool_call_id: z.string(),
3787
+ }).transform((v) => {
3788
+ return remap$(v, {
3789
+ "tool_call_id": "toolCallId",
3790
+ });
2791
3791
  });
2792
3792
 
2793
3793
  /** @internal */
2794
- export type DeploymentCreateMetricMessagesUserMessage$Outbound = {
3794
+ export type ChoicesToolMessage$Outbound = {
2795
3795
  role: string;
2796
- name?: string | undefined;
2797
- content:
2798
- | string
2799
- | Array<
2800
- | DeploymentCreateMetric21$Outbound
2801
- | DeploymentCreateMetric22$Outbound
2802
- | DeploymentCreateMetric23$Outbound
2803
- | DeploymentCreateMetric24$Outbound
2804
- >;
3796
+ content: string | Array<string>;
3797
+ tool_call_id: string;
2805
3798
  };
2806
3799
 
2807
3800
  /** @internal */
2808
- export const DeploymentCreateMetricMessagesUserMessage$outboundSchema:
2809
- z.ZodType<
2810
- DeploymentCreateMetricMessagesUserMessage$Outbound,
2811
- z.ZodTypeDef,
2812
- DeploymentCreateMetricMessagesUserMessage
2813
- > = z.object({
2814
- role:
2815
- DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema,
2816
- name: z.string().optional(),
2817
- content: z.union([
2818
- z.string(),
2819
- z.array(z.union([
2820
- z.lazy(() => DeploymentCreateMetric21$outboundSchema),
2821
- z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2822
- z.lazy(() => DeploymentCreateMetric23$outboundSchema),
2823
- z.lazy(() => DeploymentCreateMetric24$outboundSchema),
2824
- ])),
2825
- ]),
3801
+ export const ChoicesToolMessage$outboundSchema: z.ZodType<
3802
+ ChoicesToolMessage$Outbound,
3803
+ z.ZodTypeDef,
3804
+ ChoicesToolMessage
3805
+ > = z.object({
3806
+ role:
3807
+ DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
3808
+ content: z.union([z.string(), z.array(z.string())]),
3809
+ toolCallId: z.string(),
3810
+ }).transform((v) => {
3811
+ return remap$(v, {
3812
+ toolCallId: "tool_call_id",
2826
3813
  });
3814
+ });
2827
3815
 
2828
3816
  /**
2829
3817
  * @internal
2830
3818
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2831
3819
  */
2832
- export namespace DeploymentCreateMetricMessagesUserMessage$ {
2833
- /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$inboundSchema` instead. */
2834
- export const inboundSchema =
2835
- DeploymentCreateMetricMessagesUserMessage$inboundSchema;
2836
- /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$outboundSchema` instead. */
2837
- export const outboundSchema =
2838
- DeploymentCreateMetricMessagesUserMessage$outboundSchema;
2839
- /** @deprecated use `DeploymentCreateMetricMessagesUserMessage$Outbound` instead. */
2840
- export type Outbound = DeploymentCreateMetricMessagesUserMessage$Outbound;
3820
+ export namespace ChoicesToolMessage$ {
3821
+ /** @deprecated use `ChoicesToolMessage$inboundSchema` instead. */
3822
+ export const inboundSchema = ChoicesToolMessage$inboundSchema;
3823
+ /** @deprecated use `ChoicesToolMessage$outboundSchema` instead. */
3824
+ export const outboundSchema = ChoicesToolMessage$outboundSchema;
3825
+ /** @deprecated use `ChoicesToolMessage$Outbound` instead. */
3826
+ export type Outbound = ChoicesToolMessage$Outbound;
2841
3827
  }
2842
3828
 
2843
- export function deploymentCreateMetricMessagesUserMessageToJSON(
2844
- deploymentCreateMetricMessagesUserMessage:
2845
- DeploymentCreateMetricMessagesUserMessage,
3829
+ export function choicesToolMessageToJSON(
3830
+ choicesToolMessage: ChoicesToolMessage,
2846
3831
  ): string {
2847
3832
  return JSON.stringify(
2848
- DeploymentCreateMetricMessagesUserMessage$outboundSchema.parse(
2849
- deploymentCreateMetricMessagesUserMessage,
2850
- ),
3833
+ ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
2851
3834
  );
2852
3835
  }
2853
3836
 
2854
- export function deploymentCreateMetricMessagesUserMessageFromJSON(
2855
- jsonString: string,
2856
- ): SafeParseResult<
2857
- DeploymentCreateMetricMessagesUserMessage,
2858
- SDKValidationError
2859
- > {
2860
- return safeParse(
2861
- jsonString,
2862
- (x) =>
2863
- DeploymentCreateMetricMessagesUserMessage$inboundSchema.parse(
2864
- JSON.parse(x),
2865
- ),
2866
- `Failed to parse 'DeploymentCreateMetricMessagesUserMessage' from JSON`,
3837
+ export function choicesToolMessageFromJSON(
3838
+ jsonString: string,
3839
+ ): SafeParseResult<ChoicesToolMessage, SDKValidationError> {
3840
+ return safeParse(
3841
+ jsonString,
3842
+ (x) => ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)),
3843
+ `Failed to parse 'ChoicesToolMessage' from JSON`,
2867
3844
  );
2868
3845
  }
2869
3846
 
2870
3847
  /** @internal */
2871
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema:
2872
- z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
2873
- z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRole);
3848
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema:
3849
+ z.ZodNativeEnum<
3850
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
3851
+ > = z.nativeEnum(
3852
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType,
3853
+ );
2874
3854
 
2875
3855
  /** @internal */
2876
- export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema:
2877
- z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
2878
- DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
3856
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema:
3857
+ z.ZodNativeEnum<
3858
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
3859
+ > =
3860
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
2879
3861
 
2880
3862
  /**
2881
3863
  * @internal
2882
3864
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2883
3865
  */
2884
- export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRole$ {
2885
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema` instead. */
3866
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ {
3867
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
2886
3868
  export const inboundSchema =
2887
- DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
2888
- /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema` instead. */
3869
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
3870
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
2889
3871
  export const outboundSchema =
2890
- DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema;
3872
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
2891
3873
  }
2892
3874
 
2893
3875
  /** @internal */
2894
- export const DeploymentCreateMetricMessagesSystemMessage$inboundSchema:
3876
+ export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema:
2895
3877
  z.ZodType<
2896
- DeploymentCreateMetricMessagesSystemMessage,
3878
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
2897
3879
  z.ZodTypeDef,
2898
3880
  unknown
2899
3881
  > = z.object({
2900
- role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
2901
- content: z.string(),
2902
- name: z.string().optional(),
3882
+ type:
3883
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
3884
+ refusal: z.string(),
2903
3885
  });
2904
3886
 
2905
3887
  /** @internal */
2906
- export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
2907
- role: string;
2908
- content: string;
2909
- name?: string | undefined;
2910
- };
3888
+ export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound =
3889
+ {
3890
+ type: string;
3891
+ refusal: string;
3892
+ };
2911
3893
 
2912
3894
  /** @internal */
2913
- export const DeploymentCreateMetricMessagesSystemMessage$outboundSchema:
3895
+ export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema:
2914
3896
  z.ZodType<
2915
- DeploymentCreateMetricMessagesSystemMessage$Outbound,
3897
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound,
2916
3898
  z.ZodTypeDef,
2917
- DeploymentCreateMetricMessagesSystemMessage
3899
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
2918
3900
  > = z.object({
2919
- role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
2920
- content: z.string(),
2921
- name: z.string().optional(),
3901
+ type:
3902
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
3903
+ refusal: z.string(),
2922
3904
  });
2923
3905
 
2924
3906
  /**
2925
3907
  * @internal
2926
3908
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2927
3909
  */
2928
- export namespace DeploymentCreateMetricMessagesSystemMessage$ {
2929
- /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$inboundSchema` instead. */
3910
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ {
3911
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
2930
3912
  export const inboundSchema =
2931
- DeploymentCreateMetricMessagesSystemMessage$inboundSchema;
2932
- /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$outboundSchema` instead. */
3913
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
3914
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
2933
3915
  export const outboundSchema =
2934
- DeploymentCreateMetricMessagesSystemMessage$outboundSchema;
2935
- /** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$Outbound` instead. */
2936
- export type Outbound = DeploymentCreateMetricMessagesSystemMessage$Outbound;
3916
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
3917
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound` instead. */
3918
+ export type Outbound =
3919
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
2937
3920
  }
2938
3921
 
2939
- export function deploymentCreateMetricMessagesSystemMessageToJSON(
2940
- deploymentCreateMetricMessagesSystemMessage:
2941
- DeploymentCreateMetricMessagesSystemMessage,
3922
+ export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(
3923
+ deploymentCreateMetric2DeploymentsMetricsRefusalContentPart:
3924
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
2942
3925
  ): string {
2943
3926
  return JSON.stringify(
2944
- DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
2945
- deploymentCreateMetricMessagesSystemMessage,
2946
- ),
3927
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
3928
+ .parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart),
2947
3929
  );
2948
3930
  }
2949
3931
 
2950
- export function deploymentCreateMetricMessagesSystemMessageFromJSON(
3932
+ export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(
2951
3933
  jsonString: string,
2952
3934
  ): SafeParseResult<
2953
- DeploymentCreateMetricMessagesSystemMessage,
3935
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
2954
3936
  SDKValidationError
2955
3937
  > {
2956
3938
  return safeParse(
2957
3939
  jsonString,
2958
3940
  (x) =>
2959
- DeploymentCreateMetricMessagesSystemMessage$inboundSchema.parse(
2960
- JSON.parse(x),
2961
- ),
2962
- `Failed to parse 'DeploymentCreateMetricMessagesSystemMessage' from JSON`,
3941
+ DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
3942
+ .parse(JSON.parse(x)),
3943
+ `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart' from JSON`,
2963
3944
  );
2964
3945
  }
2965
3946
 
2966
3947
  /** @internal */
2967
- export const DeploymentCreateMetricMessagesRole$inboundSchema: z.ZodNativeEnum<
2968
- typeof DeploymentCreateMetricMessagesRole
2969
- > = z.nativeEnum(DeploymentCreateMetricMessagesRole);
3948
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema:
3949
+ z.ZodNativeEnum<
3950
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
3951
+ > = z.nativeEnum(
3952
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type,
3953
+ );
2970
3954
 
2971
3955
  /** @internal */
2972
- export const DeploymentCreateMetricMessagesRole$outboundSchema: z.ZodNativeEnum<
2973
- typeof DeploymentCreateMetricMessagesRole
2974
- > = DeploymentCreateMetricMessagesRole$inboundSchema;
3956
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema:
3957
+ z.ZodNativeEnum<
3958
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
3959
+ > =
3960
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
2975
3961
 
2976
3962
  /**
2977
3963
  * @internal
2978
3964
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2979
3965
  */
2980
- export namespace DeploymentCreateMetricMessagesRole$ {
2981
- /** @deprecated use `DeploymentCreateMetricMessagesRole$inboundSchema` instead. */
2982
- export const inboundSchema = DeploymentCreateMetricMessagesRole$inboundSchema;
2983
- /** @deprecated use `DeploymentCreateMetricMessagesRole$outboundSchema` instead. */
3966
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ {
3967
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema` instead. */
3968
+ export const inboundSchema =
3969
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
3970
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema` instead. */
2984
3971
  export const outboundSchema =
2985
- DeploymentCreateMetricMessagesRole$outboundSchema;
3972
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
2986
3973
  }
2987
3974
 
2988
3975
  /** @internal */
2989
- export const DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema:
3976
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$inboundSchema:
3977
+ z.ZodNativeEnum<
3978
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType
3979
+ > = z.nativeEnum(
3980
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType,
3981
+ );
3982
+
3983
+ /** @internal */
3984
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$outboundSchema:
3985
+ z.ZodNativeEnum<
3986
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType
3987
+ > =
3988
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$inboundSchema;
3989
+
3990
+ /**
3991
+ * @internal
3992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3993
+ */
3994
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$ {
3995
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$inboundSchema` instead. */
3996
+ export const inboundSchema =
3997
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$inboundSchema;
3998
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$outboundSchema` instead. */
3999
+ export const outboundSchema =
4000
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$outboundSchema;
4001
+ }
4002
+
4003
+ /** @internal */
4004
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema:
2990
4005
  z.ZodType<
2991
- DeploymentCreateMetricMessagesDeveloperMessage,
4006
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
2992
4007
  z.ZodTypeDef,
2993
4008
  unknown
2994
4009
  > = z.object({
2995
- role: DeploymentCreateMetricMessagesRole$inboundSchema,
2996
- content: z.string(),
2997
- name: z.string().optional(),
4010
+ file_id: z.string(),
4011
+ }).transform((v) => {
4012
+ return remap$(v, {
4013
+ "file_id": "fileId",
4014
+ });
2998
4015
  });
2999
4016
 
3000
4017
  /** @internal */
3001
- export type DeploymentCreateMetricMessagesDeveloperMessage$Outbound = {
3002
- role: string;
3003
- content: string;
3004
- name?: string | undefined;
3005
- };
4018
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound =
4019
+ {
4020
+ file_id: string;
4021
+ };
3006
4022
 
3007
4023
  /** @internal */
3008
- export const DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema:
4024
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema:
3009
4025
  z.ZodType<
3010
- DeploymentCreateMetricMessagesDeveloperMessage$Outbound,
4026
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound,
3011
4027
  z.ZodTypeDef,
3012
- DeploymentCreateMetricMessagesDeveloperMessage
4028
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath
3013
4029
  > = z.object({
3014
- role: DeploymentCreateMetricMessagesRole$outboundSchema,
3015
- content: z.string(),
3016
- name: z.string().optional(),
4030
+ fileId: z.string(),
4031
+ }).transform((v) => {
4032
+ return remap$(v, {
4033
+ fileId: "file_id",
4034
+ });
3017
4035
  });
3018
4036
 
3019
4037
  /**
3020
4038
  * @internal
3021
4039
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3022
4040
  */
3023
- export namespace DeploymentCreateMetricMessagesDeveloperMessage$ {
3024
- /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema` instead. */
4041
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$ {
4042
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema` instead. */
3025
4043
  export const inboundSchema =
3026
- DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema;
3027
- /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema` instead. */
4044
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema;
4045
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema` instead. */
3028
4046
  export const outboundSchema =
3029
- DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema;
3030
- /** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$Outbound` instead. */
4047
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema;
4048
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound` instead. */
3031
4049
  export type Outbound =
3032
- DeploymentCreateMetricMessagesDeveloperMessage$Outbound;
4050
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound;
3033
4051
  }
3034
4052
 
3035
- export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
3036
- deploymentCreateMetricMessagesDeveloperMessage:
3037
- DeploymentCreateMetricMessagesDeveloperMessage,
4053
+ export function deploymentCreateMetricAnnotationsDeploymentsMetricsFilePathToJSON(
4054
+ deploymentCreateMetricAnnotationsDeploymentsMetricsFilePath:
4055
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
3038
4056
  ): string {
3039
4057
  return JSON.stringify(
3040
- DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
3041
- deploymentCreateMetricMessagesDeveloperMessage,
3042
- ),
4058
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema
4059
+ .parse(deploymentCreateMetricAnnotationsDeploymentsMetricsFilePath),
3043
4060
  );
3044
4061
  }
3045
4062
 
3046
- export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
4063
+ export function deploymentCreateMetricAnnotationsDeploymentsMetricsFilePathFromJSON(
3047
4064
  jsonString: string,
3048
4065
  ): SafeParseResult<
3049
- DeploymentCreateMetricMessagesDeveloperMessage,
4066
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
3050
4067
  SDKValidationError
3051
4068
  > {
3052
4069
  return safeParse(
3053
4070
  jsonString,
3054
4071
  (x) =>
3055
- DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema.parse(
3056
- JSON.parse(x),
3057
- ),
3058
- `Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
4072
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema
4073
+ .parse(JSON.parse(x)),
4074
+ `Failed to parse 'DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath' from JSON`,
3059
4075
  );
3060
4076
  }
3061
4077
 
3062
4078
  /** @internal */
3063
- export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
3064
- DeploymentCreateMetricMessages,
3065
- z.ZodTypeDef,
3066
- unknown
3067
- > = z.union([
3068
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
3069
- z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
3070
- z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
3071
- z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
3072
- z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
3073
- ]);
4079
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema:
4080
+ z.ZodType<
4081
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2,
4082
+ z.ZodTypeDef,
4083
+ unknown
4084
+ > = z.object({
4085
+ type:
4086
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$inboundSchema,
4087
+ text: z.string(),
4088
+ file_path: z.lazy(() =>
4089
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema
4090
+ ),
4091
+ start_index: z.number().int(),
4092
+ end_index: z.number().int(),
4093
+ }).transform((v) => {
4094
+ return remap$(v, {
4095
+ "file_path": "filePath",
4096
+ "start_index": "startIndex",
4097
+ "end_index": "endIndex",
4098
+ });
4099
+ });
3074
4100
 
3075
4101
  /** @internal */
3076
- export type DeploymentCreateMetricMessages$Outbound =
3077
- | DeploymentCreateMetricMessagesToolMessage$Outbound
3078
- | DeploymentCreateMetricMessagesDeveloperMessage$Outbound
3079
- | DeploymentCreateMetricMessagesSystemMessage$Outbound
3080
- | DeploymentCreateMetricMessagesUserMessage$Outbound
3081
- | DeploymentCreateMetricMessagesAssistantMessage$Outbound;
4102
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound = {
4103
+ type: string;
4104
+ text: string;
4105
+ file_path:
4106
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound;
4107
+ start_index: number;
4108
+ end_index: number;
4109
+ };
3082
4110
 
3083
4111
  /** @internal */
3084
- export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
3085
- DeploymentCreateMetricMessages$Outbound,
3086
- z.ZodTypeDef,
3087
- DeploymentCreateMetricMessages
3088
- > = z.union([
3089
- z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
3090
- z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
3091
- z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
3092
- z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
3093
- z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
3094
- ]);
4112
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema:
4113
+ z.ZodType<
4114
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound,
4115
+ z.ZodTypeDef,
4116
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2
4117
+ > = z.object({
4118
+ type:
4119
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestRequestBodyType$outboundSchema,
4120
+ text: z.string(),
4121
+ filePath: z.lazy(() =>
4122
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema
4123
+ ),
4124
+ startIndex: z.number().int(),
4125
+ endIndex: z.number().int(),
4126
+ }).transform((v) => {
4127
+ return remap$(v, {
4128
+ filePath: "file_path",
4129
+ startIndex: "start_index",
4130
+ endIndex: "end_index",
4131
+ });
4132
+ });
3095
4133
 
3096
4134
  /**
3097
4135
  * @internal
3098
4136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3099
4137
  */
3100
- export namespace DeploymentCreateMetricMessages$ {
3101
- /** @deprecated use `DeploymentCreateMetricMessages$inboundSchema` instead. */
3102
- export const inboundSchema = DeploymentCreateMetricMessages$inboundSchema;
3103
- /** @deprecated use `DeploymentCreateMetricMessages$outboundSchema` instead. */
3104
- export const outboundSchema = DeploymentCreateMetricMessages$outboundSchema;
3105
- /** @deprecated use `DeploymentCreateMetricMessages$Outbound` instead. */
3106
- export type Outbound = DeploymentCreateMetricMessages$Outbound;
4138
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetrics2$ {
4139
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema` instead. */
4140
+ export const inboundSchema =
4141
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema;
4142
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema` instead. */
4143
+ export const outboundSchema =
4144
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema;
4145
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound` instead. */
4146
+ export type Outbound =
4147
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound;
3107
4148
  }
3108
-
3109
- export function deploymentCreateMetricMessagesToJSON(
3110
- deploymentCreateMetricMessages: DeploymentCreateMetricMessages,
4149
+
4150
+ export function deploymentCreateMetricAnnotationsDeploymentsMetrics2ToJSON(
4151
+ deploymentCreateMetricAnnotationsDeploymentsMetrics2:
4152
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2,
3111
4153
  ): string {
3112
4154
  return JSON.stringify(
3113
- DeploymentCreateMetricMessages$outboundSchema.parse(
3114
- deploymentCreateMetricMessages,
4155
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema.parse(
4156
+ deploymentCreateMetricAnnotationsDeploymentsMetrics2,
3115
4157
  ),
3116
4158
  );
3117
4159
  }
3118
4160
 
3119
- export function deploymentCreateMetricMessagesFromJSON(
4161
+ export function deploymentCreateMetricAnnotationsDeploymentsMetrics2FromJSON(
3120
4162
  jsonString: string,
3121
- ): SafeParseResult<DeploymentCreateMetricMessages, SDKValidationError> {
4163
+ ): SafeParseResult<
4164
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2,
4165
+ SDKValidationError
4166
+ > {
3122
4167
  return safeParse(
3123
4168
  jsonString,
3124
- (x) => DeploymentCreateMetricMessages$inboundSchema.parse(JSON.parse(x)),
3125
- `Failed to parse 'DeploymentCreateMetricMessages' from JSON`,
4169
+ (x) =>
4170
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema.parse(
4171
+ JSON.parse(x),
4172
+ ),
4173
+ `Failed to parse 'DeploymentCreateMetricAnnotationsDeploymentsMetrics2' from JSON`,
3126
4174
  );
3127
4175
  }
3128
4176
 
3129
4177
  /** @internal */
3130
- export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
4178
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema:
3131
4179
  z.ZodNativeEnum<
3132
- typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
4180
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType
3133
4181
  > = z.nativeEnum(
3134
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole,
4182
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType,
3135
4183
  );
3136
4184
 
3137
4185
  /** @internal */
3138
- export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
4186
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema:
3139
4187
  z.ZodNativeEnum<
3140
- typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
4188
+ typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType
3141
4189
  > =
3142
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
4190
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema;
3143
4191
 
3144
4192
  /**
3145
4193
  * @internal
3146
4194
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3147
4195
  */
3148
- export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ {
3149
- /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
4196
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$ {
4197
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema` instead. */
3150
4198
  export const inboundSchema =
3151
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
3152
- /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
4199
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema;
4200
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema` instead. */
3153
4201
  export const outboundSchema =
3154
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
4202
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema;
3155
4203
  }
3156
4204
 
3157
4205
  /** @internal */
3158
- export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema:
4206
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema:
3159
4207
  z.ZodType<
3160
- DeploymentCreateMetricChoicesDeploymentsMetricsContent,
4208
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
3161
4209
  z.ZodTypeDef,
3162
4210
  unknown
3163
- > = z.union([z.string(), z.array(z.string())]);
4211
+ > = z.object({
4212
+ file_id: z.string(),
4213
+ quote: z.string().optional(),
4214
+ }).transform((v) => {
4215
+ return remap$(v, {
4216
+ "file_id": "fileId",
4217
+ });
4218
+ });
3164
4219
 
3165
4220
  /** @internal */
3166
- export type DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound =
3167
- | string
3168
- | Array<string>;
4221
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound =
4222
+ {
4223
+ file_id: string;
4224
+ quote?: string | undefined;
4225
+ };
3169
4226
 
3170
4227
  /** @internal */
3171
- export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema:
4228
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema:
3172
4229
  z.ZodType<
3173
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound,
4230
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound,
3174
4231
  z.ZodTypeDef,
3175
- DeploymentCreateMetricChoicesDeploymentsMetricsContent
3176
- > = z.union([z.string(), z.array(z.string())]);
4232
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation
4233
+ > = z.object({
4234
+ fileId: z.string(),
4235
+ quote: z.string().optional(),
4236
+ }).transform((v) => {
4237
+ return remap$(v, {
4238
+ fileId: "file_id",
4239
+ });
4240
+ });
3177
4241
 
3178
4242
  /**
3179
4243
  * @internal
3180
4244
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3181
4245
  */
3182
- export namespace DeploymentCreateMetricChoicesDeploymentsMetricsContent$ {
3183
- /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
4246
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$ {
4247
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema` instead. */
3184
4248
  export const inboundSchema =
3185
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
3186
- /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
4249
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema;
4250
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema` instead. */
3187
4251
  export const outboundSchema =
3188
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
3189
- /** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound` instead. */
4252
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema;
4253
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound` instead. */
3190
4254
  export type Outbound =
3191
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound;
4255
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound;
3192
4256
  }
3193
4257
 
3194
- export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
3195
- deploymentCreateMetricChoicesDeploymentsMetricsContent:
3196
- DeploymentCreateMetricChoicesDeploymentsMetricsContent,
4258
+ export function deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitationToJSON(
4259
+ deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation:
4260
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
3197
4261
  ): string {
3198
4262
  return JSON.stringify(
3199
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(
3200
- deploymentCreateMetricChoicesDeploymentsMetricsContent,
3201
- ),
4263
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema
4264
+ .parse(deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation),
3202
4265
  );
3203
4266
  }
3204
4267
 
3205
- export function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(
4268
+ export function deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitationFromJSON(
3206
4269
  jsonString: string,
3207
4270
  ): SafeParseResult<
3208
- DeploymentCreateMetricChoicesDeploymentsMetricsContent,
4271
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
3209
4272
  SDKValidationError
3210
4273
  > {
3211
4274
  return safeParse(
3212
4275
  jsonString,
3213
4276
  (x) =>
3214
- DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema
4277
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema
3215
4278
  .parse(JSON.parse(x)),
3216
- `Failed to parse 'DeploymentCreateMetricChoicesDeploymentsMetricsContent' from JSON`,
4279
+ `Failed to parse 'DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation' from JSON`,
3217
4280
  );
3218
4281
  }
3219
4282
 
3220
4283
  /** @internal */
3221
- export const ChoicesToolMessage$inboundSchema: z.ZodType<
3222
- ChoicesToolMessage,
3223
- z.ZodTypeDef,
3224
- unknown
3225
- > = z.object({
3226
- role:
3227
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
3228
- content: z.union([z.string(), z.array(z.string())]),
3229
- tool_call_id: z.string(),
3230
- }).transform((v) => {
3231
- return remap$(v, {
3232
- "tool_call_id": "toolCallId",
4284
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema:
4285
+ z.ZodType<
4286
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1,
4287
+ z.ZodTypeDef,
4288
+ unknown
4289
+ > = z.object({
4290
+ type:
4291
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema,
4292
+ text: z.string(),
4293
+ file_citation: z.lazy(() =>
4294
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema
4295
+ ),
4296
+ start_index: z.number().int(),
4297
+ end_index: z.number().int(),
4298
+ }).transform((v) => {
4299
+ return remap$(v, {
4300
+ "file_citation": "fileCitation",
4301
+ "start_index": "startIndex",
4302
+ "end_index": "endIndex",
4303
+ });
3233
4304
  });
3234
- });
3235
4305
 
3236
4306
  /** @internal */
3237
- export type ChoicesToolMessage$Outbound = {
3238
- role: string;
3239
- content: string | Array<string>;
3240
- tool_call_id: string;
4307
+ export type DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound = {
4308
+ type: string;
4309
+ text: string;
4310
+ file_citation:
4311
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound;
4312
+ start_index: number;
4313
+ end_index: number;
3241
4314
  };
3242
4315
 
3243
4316
  /** @internal */
3244
- export const ChoicesToolMessage$outboundSchema: z.ZodType<
3245
- ChoicesToolMessage$Outbound,
3246
- z.ZodTypeDef,
3247
- ChoicesToolMessage
3248
- > = z.object({
3249
- role:
3250
- DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
3251
- content: z.union([z.string(), z.array(z.string())]),
3252
- toolCallId: z.string(),
3253
- }).transform((v) => {
3254
- return remap$(v, {
3255
- toolCallId: "tool_call_id",
4317
+ export const DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema:
4318
+ z.ZodType<
4319
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound,
4320
+ z.ZodTypeDef,
4321
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1
4322
+ > = z.object({
4323
+ type:
4324
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema,
4325
+ text: z.string(),
4326
+ fileCitation: z.lazy(() =>
4327
+ DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema
4328
+ ),
4329
+ startIndex: z.number().int(),
4330
+ endIndex: z.number().int(),
4331
+ }).transform((v) => {
4332
+ return remap$(v, {
4333
+ fileCitation: "file_citation",
4334
+ startIndex: "start_index",
4335
+ endIndex: "end_index",
4336
+ });
3256
4337
  });
3257
- });
3258
4338
 
3259
4339
  /**
3260
4340
  * @internal
3261
4341
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3262
4342
  */
3263
- export namespace ChoicesToolMessage$ {
3264
- /** @deprecated use `ChoicesToolMessage$inboundSchema` instead. */
3265
- export const inboundSchema = ChoicesToolMessage$inboundSchema;
3266
- /** @deprecated use `ChoicesToolMessage$outboundSchema` instead. */
3267
- export const outboundSchema = ChoicesToolMessage$outboundSchema;
3268
- /** @deprecated use `ChoicesToolMessage$Outbound` instead. */
3269
- export type Outbound = ChoicesToolMessage$Outbound;
4343
+ export namespace DeploymentCreateMetricAnnotationsDeploymentsMetrics1$ {
4344
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema` instead. */
4345
+ export const inboundSchema =
4346
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema;
4347
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema` instead. */
4348
+ export const outboundSchema =
4349
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema;
4350
+ /** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound` instead. */
4351
+ export type Outbound =
4352
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound;
3270
4353
  }
3271
4354
 
3272
- export function choicesToolMessageToJSON(
3273
- choicesToolMessage: ChoicesToolMessage,
4355
+ export function deploymentCreateMetricAnnotationsDeploymentsMetrics1ToJSON(
4356
+ deploymentCreateMetricAnnotationsDeploymentsMetrics1:
4357
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1,
3274
4358
  ): string {
3275
4359
  return JSON.stringify(
3276
- ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
4360
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema.parse(
4361
+ deploymentCreateMetricAnnotationsDeploymentsMetrics1,
4362
+ ),
3277
4363
  );
3278
4364
  }
3279
4365
 
3280
- export function choicesToolMessageFromJSON(
4366
+ export function deploymentCreateMetricAnnotationsDeploymentsMetrics1FromJSON(
3281
4367
  jsonString: string,
3282
- ): SafeParseResult<ChoicesToolMessage, SDKValidationError> {
4368
+ ): SafeParseResult<
4369
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1,
4370
+ SDKValidationError
4371
+ > {
3283
4372
  return safeParse(
3284
4373
  jsonString,
3285
- (x) => ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)),
3286
- `Failed to parse 'ChoicesToolMessage' from JSON`,
3287
- );
3288
- }
3289
-
3290
- /** @internal */
3291
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema:
3292
- z.ZodNativeEnum<
3293
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
3294
- > = z.nativeEnum(
3295
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType,
4374
+ (x) =>
4375
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema.parse(
4376
+ JSON.parse(x),
4377
+ ),
4378
+ `Failed to parse 'DeploymentCreateMetricAnnotationsDeploymentsMetrics1' from JSON`,
3296
4379
  );
3297
-
3298
- /** @internal */
3299
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema:
3300
- z.ZodNativeEnum<
3301
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
3302
- > =
3303
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
3304
-
3305
- /**
3306
- * @internal
3307
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3308
- */
3309
- export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ {
3310
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
3311
- export const inboundSchema =
3312
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
3313
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
3314
- export const outboundSchema =
3315
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
3316
4380
  }
3317
4381
 
3318
4382
  /** @internal */
3319
- export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema:
4383
+ export const DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema:
3320
4384
  z.ZodType<
3321
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
4385
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations,
3322
4386
  z.ZodTypeDef,
3323
4387
  unknown
3324
- > = z.object({
3325
- type:
3326
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
3327
- refusal: z.string(),
3328
- });
4388
+ > = z.union([
4389
+ z.lazy(() =>
4390
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema
4391
+ ),
4392
+ z.lazy(() =>
4393
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema
4394
+ ),
4395
+ ]);
3329
4396
 
3330
4397
  /** @internal */
3331
- export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound =
3332
- {
3333
- type: string;
3334
- refusal: string;
3335
- };
4398
+ export type DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound =
4399
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound
4400
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound;
3336
4401
 
3337
4402
  /** @internal */
3338
- export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema:
4403
+ export const DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema:
3339
4404
  z.ZodType<
3340
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound,
4405
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound,
3341
4406
  z.ZodTypeDef,
3342
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
3343
- > = z.object({
3344
- type:
3345
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
3346
- refusal: z.string(),
3347
- });
4407
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations
4408
+ > = z.union([
4409
+ z.lazy(() =>
4410
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema
4411
+ ),
4412
+ z.lazy(() =>
4413
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema
4414
+ ),
4415
+ ]);
3348
4416
 
3349
4417
  /**
3350
4418
  * @internal
3351
4419
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3352
4420
  */
3353
- export namespace DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ {
3354
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
4421
+ export namespace DeploymentCreateMetric2DeploymentsMetricsAnnotations$ {
4422
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema` instead. */
3355
4423
  export const inboundSchema =
3356
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
3357
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
4424
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema;
4425
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema` instead. */
3358
4426
  export const outboundSchema =
3359
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
3360
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound` instead. */
4427
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema;
4428
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound` instead. */
3361
4429
  export type Outbound =
3362
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
4430
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound;
3363
4431
  }
3364
4432
 
3365
- export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(
3366
- deploymentCreateMetric2DeploymentsMetricsRefusalContentPart:
3367
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
4433
+ export function deploymentCreateMetric2DeploymentsMetricsAnnotationsToJSON(
4434
+ deploymentCreateMetric2DeploymentsMetricsAnnotations:
4435
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations,
3368
4436
  ): string {
3369
4437
  return JSON.stringify(
3370
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
3371
- .parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart),
4438
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema.parse(
4439
+ deploymentCreateMetric2DeploymentsMetricsAnnotations,
4440
+ ),
3372
4441
  );
3373
4442
  }
3374
4443
 
3375
- export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(
4444
+ export function deploymentCreateMetric2DeploymentsMetricsAnnotationsFromJSON(
3376
4445
  jsonString: string,
3377
4446
  ): SafeParseResult<
3378
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
4447
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations,
3379
4448
  SDKValidationError
3380
4449
  > {
3381
4450
  return safeParse(
3382
4451
  jsonString,
3383
4452
  (x) =>
3384
- DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
3385
- .parse(JSON.parse(x)),
3386
- `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart' from JSON`,
3387
- );
3388
- }
3389
-
3390
- /** @internal */
3391
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema:
3392
- z.ZodNativeEnum<
3393
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
3394
- > = z.nativeEnum(
3395
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type,
4453
+ DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema.parse(
4454
+ JSON.parse(x),
4455
+ ),
4456
+ `Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsAnnotations' from JSON`,
3396
4457
  );
3397
-
3398
- /** @internal */
3399
- export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema:
3400
- z.ZodNativeEnum<
3401
- typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
3402
- > =
3403
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
3404
-
3405
- /**
3406
- * @internal
3407
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3408
- */
3409
- export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ {
3410
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema` instead. */
3411
- export const inboundSchema =
3412
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
3413
- /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema` instead. */
3414
- export const outboundSchema =
3415
- DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
3416
4458
  }
3417
4459
 
3418
4460
  /** @internal */
@@ -3425,6 +4467,16 @@ export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSch
3425
4467
  type:
3426
4468
  DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema,
3427
4469
  text: z.string(),
4470
+ annotations: z.array(
4471
+ z.union([
4472
+ z.lazy(() =>
4473
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$inboundSchema
4474
+ ),
4475
+ z.lazy(() =>
4476
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$inboundSchema
4477
+ ),
4478
+ ]),
4479
+ ).optional(),
3428
4480
  });
3429
4481
 
3430
4482
  /** @internal */
@@ -3432,6 +4484,12 @@ export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound =
3432
4484
  {
3433
4485
  type: string;
3434
4486
  text: string;
4487
+ annotations?:
4488
+ | Array<
4489
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound
4490
+ | DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound
4491
+ >
4492
+ | undefined;
3435
4493
  };
3436
4494
 
3437
4495
  /** @internal */
@@ -3444,6 +4502,16 @@ export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSc
3444
4502
  type:
3445
4503
  DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema,
3446
4504
  text: z.string(),
4505
+ annotations: z.array(
4506
+ z.union([
4507
+ z.lazy(() =>
4508
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema
4509
+ ),
4510
+ z.lazy(() =>
4511
+ DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema
4512
+ ),
4513
+ ]),
4514
+ ).optional(),
3447
4515
  });
3448
4516
 
3449
4517
  /**