@orq-ai/node 3.11.7 → 3.11.9
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.
- package/bin/mcp-server.js +104 -104
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +128 -87
- package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/docs/sdks/proxy/README.md +1284 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
- package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
- package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
- package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
- package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
- package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
- package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
- package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
- package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
- package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
- package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
- package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +33 -1
- package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
- package/packages/orq-rc/src/models/components/deployments.ts +861 -0
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
- package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
- package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
- package/packages/orq-rc/src/models/operations/index.ts +16 -0
- package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
- package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
- package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +878 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
- package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
- package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
- package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/batches.ts +81 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/packages/orq-rc/src/sdk/proxy.ts +211 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/temp/example.ts +5 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- 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
|
|
1439
|
-
|
|
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
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
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
|
|
1450
|
-
|
|
1451
|
-
text: string;
|
|
1582
|
+
export type DeploymentCreateMetricAnnotationsFilePath$Outbound = {
|
|
1583
|
+
file_id: string;
|
|
1452
1584
|
};
|
|
1453
1585
|
|
|
1454
1586
|
/** @internal */
|
|
1455
|
-
export const
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
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
|
|
1470
|
-
/** @deprecated use `
|
|
1604
|
+
export namespace DeploymentCreateMetricAnnotationsFilePath$ {
|
|
1605
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$inboundSchema` instead. */
|
|
1471
1606
|
export const inboundSchema =
|
|
1472
|
-
|
|
1473
|
-
/** @deprecated use `
|
|
1607
|
+
DeploymentCreateMetricAnnotationsFilePath$inboundSchema;
|
|
1608
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$outboundSchema` instead. */
|
|
1474
1609
|
export const outboundSchema =
|
|
1475
|
-
|
|
1476
|
-
/** @deprecated use `
|
|
1477
|
-
export type Outbound =
|
|
1610
|
+
DeploymentCreateMetricAnnotationsFilePath$outboundSchema;
|
|
1611
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsFilePath$Outbound` instead. */
|
|
1612
|
+
export type Outbound = DeploymentCreateMetricAnnotationsFilePath$Outbound;
|
|
1478
1613
|
}
|
|
1479
1614
|
|
|
1480
|
-
export function
|
|
1481
|
-
|
|
1482
|
-
|
|
1615
|
+
export function deploymentCreateMetricAnnotationsFilePathToJSON(
|
|
1616
|
+
deploymentCreateMetricAnnotationsFilePath:
|
|
1617
|
+
DeploymentCreateMetricAnnotationsFilePath,
|
|
1483
1618
|
): string {
|
|
1484
1619
|
return JSON.stringify(
|
|
1485
|
-
|
|
1486
|
-
|
|
1620
|
+
DeploymentCreateMetricAnnotationsFilePath$outboundSchema.parse(
|
|
1621
|
+
deploymentCreateMetricAnnotationsFilePath,
|
|
1487
1622
|
),
|
|
1488
1623
|
);
|
|
1489
1624
|
}
|
|
1490
1625
|
|
|
1491
|
-
export function
|
|
1626
|
+
export function deploymentCreateMetricAnnotationsFilePathFromJSON(
|
|
1492
1627
|
jsonString: string,
|
|
1493
|
-
): SafeParseResult<
|
|
1628
|
+
): SafeParseResult<
|
|
1629
|
+
DeploymentCreateMetricAnnotationsFilePath,
|
|
1630
|
+
SDKValidationError
|
|
1631
|
+
> {
|
|
1494
1632
|
return safeParse(
|
|
1495
1633
|
jsonString,
|
|
1496
1634
|
(x) =>
|
|
1497
|
-
|
|
1498
|
-
|
|
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
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
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
|
|
1515
|
-
|
|
1516
|
-
|
|
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
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
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
|
|
1534
|
-
/** @deprecated use `
|
|
1535
|
-
export const inboundSchema =
|
|
1536
|
-
|
|
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
|
-
|
|
1540
|
-
/** @deprecated use `
|
|
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
|
|
1546
|
-
|
|
1547
|
-
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
1707
|
+
export function deploymentCreateMetricAnnotations2ToJSON(
|
|
1708
|
+
deploymentCreateMetricAnnotations2: DeploymentCreateMetricAnnotations2,
|
|
1548
1709
|
): string {
|
|
1549
1710
|
return JSON.stringify(
|
|
1550
|
-
|
|
1551
|
-
|
|
1711
|
+
DeploymentCreateMetricAnnotations2$outboundSchema.parse(
|
|
1712
|
+
deploymentCreateMetricAnnotations2,
|
|
1552
1713
|
),
|
|
1553
1714
|
);
|
|
1554
1715
|
}
|
|
1555
1716
|
|
|
1556
|
-
export function
|
|
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
|
-
|
|
1566
|
-
|
|
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
|
|
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
|
-
|
|
1755
|
+
DeploymentCreateMetricAnnotationsFileCitation,
|
|
1576
1756
|
z.ZodTypeDef,
|
|
1577
1757
|
unknown
|
|
1578
|
-
> = z.
|
|
1579
|
-
z.string(),
|
|
1580
|
-
z.
|
|
1581
|
-
|
|
1582
|
-
|
|
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
|
|
1588
|
-
|
|
1589
|
-
|
|
|
1590
|
-
|
|
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
|
|
1774
|
+
export const DeploymentCreateMetricAnnotationsFileCitation$outboundSchema:
|
|
1596
1775
|
z.ZodType<
|
|
1597
|
-
|
|
1776
|
+
DeploymentCreateMetricAnnotationsFileCitation$Outbound,
|
|
1598
1777
|
z.ZodTypeDef,
|
|
1599
|
-
|
|
1600
|
-
> = z.
|
|
1601
|
-
z.string(),
|
|
1602
|
-
z.
|
|
1603
|
-
|
|
1604
|
-
|
|
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
|
|
1613
|
-
/** @deprecated use `
|
|
1792
|
+
export namespace DeploymentCreateMetricAnnotationsFileCitation$ {
|
|
1793
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsFileCitation$inboundSchema` instead. */
|
|
1614
1794
|
export const inboundSchema =
|
|
1615
|
-
|
|
1616
|
-
/** @deprecated use `
|
|
1795
|
+
DeploymentCreateMetricAnnotationsFileCitation$inboundSchema;
|
|
1796
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsFileCitation$outboundSchema` instead. */
|
|
1617
1797
|
export const outboundSchema =
|
|
1618
|
-
|
|
1619
|
-
/** @deprecated use `
|
|
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
|
|
1625
|
-
|
|
1626
|
-
|
|
1803
|
+
export function deploymentCreateMetricAnnotationsFileCitationToJSON(
|
|
1804
|
+
deploymentCreateMetricAnnotationsFileCitation:
|
|
1805
|
+
DeploymentCreateMetricAnnotationsFileCitation,
|
|
1627
1806
|
): string {
|
|
1628
1807
|
return JSON.stringify(
|
|
1629
|
-
|
|
1630
|
-
|
|
1808
|
+
DeploymentCreateMetricAnnotationsFileCitation$outboundSchema.parse(
|
|
1809
|
+
deploymentCreateMetricAnnotationsFileCitation,
|
|
1810
|
+
),
|
|
1631
1811
|
);
|
|
1632
1812
|
}
|
|
1633
1813
|
|
|
1634
|
-
export function
|
|
1814
|
+
export function deploymentCreateMetricAnnotationsFileCitationFromJSON(
|
|
1635
1815
|
jsonString: string,
|
|
1636
1816
|
): SafeParseResult<
|
|
1637
|
-
|
|
1817
|
+
DeploymentCreateMetricAnnotationsFileCitation,
|
|
1638
1818
|
SDKValidationError
|
|
1639
1819
|
> {
|
|
1640
1820
|
return safeParse(
|
|
1641
1821
|
jsonString,
|
|
1642
1822
|
(x) =>
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
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
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
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
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
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
|
|
1693
|
-
|
|
1861
|
+
export const DeploymentCreateMetricAnnotations1$outboundSchema: z.ZodType<
|
|
1862
|
+
DeploymentCreateMetricAnnotations1$Outbound,
|
|
1694
1863
|
z.ZodTypeDef,
|
|
1695
|
-
|
|
1864
|
+
DeploymentCreateMetricAnnotations1
|
|
1696
1865
|
> = z.object({
|
|
1697
|
-
|
|
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
|
|
1705
|
-
/** @deprecated use `
|
|
1706
|
-
export const inboundSchema =
|
|
1707
|
-
|
|
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
|
-
|
|
1711
|
-
/** @deprecated use `
|
|
1712
|
-
export type Outbound =
|
|
1890
|
+
DeploymentCreateMetricAnnotations1$outboundSchema;
|
|
1891
|
+
/** @deprecated use `DeploymentCreateMetricAnnotations1$Outbound` instead. */
|
|
1892
|
+
export type Outbound = DeploymentCreateMetricAnnotations1$Outbound;
|
|
1713
1893
|
}
|
|
1714
1894
|
|
|
1715
|
-
export function
|
|
1716
|
-
|
|
1895
|
+
export function deploymentCreateMetricAnnotations1ToJSON(
|
|
1896
|
+
deploymentCreateMetricAnnotations1: DeploymentCreateMetricAnnotations1,
|
|
1717
1897
|
): string {
|
|
1718
1898
|
return JSON.stringify(
|
|
1719
|
-
|
|
1720
|
-
|
|
1899
|
+
DeploymentCreateMetricAnnotations1$outboundSchema.parse(
|
|
1900
|
+
deploymentCreateMetricAnnotations1,
|
|
1721
1901
|
),
|
|
1722
1902
|
);
|
|
1723
1903
|
}
|
|
1724
1904
|
|
|
1725
|
-
export function
|
|
1905
|
+
export function deploymentCreateMetricAnnotations1FromJSON(
|
|
1726
1906
|
jsonString: string,
|
|
1727
|
-
): SafeParseResult<
|
|
1907
|
+
): SafeParseResult<DeploymentCreateMetricAnnotations1, SDKValidationError> {
|
|
1728
1908
|
return safeParse(
|
|
1729
1909
|
jsonString,
|
|
1730
1910
|
(x) =>
|
|
1731
|
-
|
|
1732
|
-
`Failed to parse '
|
|
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
|
|
1738
|
-
|
|
1739
|
-
|
|
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
|
|
1743
|
-
|
|
1744
|
-
|
|
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
|
|
1751
|
-
/** @deprecated use `
|
|
1752
|
-
export const inboundSchema =
|
|
1753
|
-
/** @deprecated use `
|
|
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
|
-
|
|
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
|
|
1760
|
-
|
|
1977
|
+
export const DeploymentCreateMetric2TextContentPart$inboundSchema: z.ZodType<
|
|
1978
|
+
DeploymentCreateMetric2TextContentPart,
|
|
1761
1979
|
z.ZodTypeDef,
|
|
1762
1980
|
unknown
|
|
1763
1981
|
> = z.object({
|
|
1764
|
-
|
|
1765
|
-
|
|
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
|
|
1770
|
-
|
|
1771
|
-
|
|
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
|
|
1776
|
-
|
|
2006
|
+
export const DeploymentCreateMetric2TextContentPart$outboundSchema: z.ZodType<
|
|
2007
|
+
DeploymentCreateMetric2TextContentPart$Outbound,
|
|
1777
2008
|
z.ZodTypeDef,
|
|
1778
|
-
|
|
2009
|
+
DeploymentCreateMetric2TextContentPart
|
|
1779
2010
|
> = z.object({
|
|
1780
|
-
|
|
1781
|
-
|
|
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
|
|
1789
|
-
/** @deprecated use `
|
|
2026
|
+
export namespace DeploymentCreateMetric2TextContentPart$ {
|
|
2027
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$inboundSchema` instead. */
|
|
1790
2028
|
export const inboundSchema =
|
|
1791
|
-
|
|
1792
|
-
/** @deprecated use `
|
|
2029
|
+
DeploymentCreateMetric2TextContentPart$inboundSchema;
|
|
2030
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$outboundSchema` instead. */
|
|
1793
2031
|
export const outboundSchema =
|
|
1794
|
-
|
|
1795
|
-
/** @deprecated use `
|
|
1796
|
-
export type Outbound =
|
|
2032
|
+
DeploymentCreateMetric2TextContentPart$outboundSchema;
|
|
2033
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$Outbound` instead. */
|
|
2034
|
+
export type Outbound = DeploymentCreateMetric2TextContentPart$Outbound;
|
|
1797
2035
|
}
|
|
1798
2036
|
|
|
1799
|
-
export function
|
|
1800
|
-
|
|
1801
|
-
|
|
2037
|
+
export function deploymentCreateMetric2TextContentPartToJSON(
|
|
2038
|
+
deploymentCreateMetric2TextContentPart:
|
|
2039
|
+
DeploymentCreateMetric2TextContentPart,
|
|
1802
2040
|
): string {
|
|
1803
2041
|
return JSON.stringify(
|
|
1804
|
-
|
|
1805
|
-
|
|
2042
|
+
DeploymentCreateMetric2TextContentPart$outboundSchema.parse(
|
|
2043
|
+
deploymentCreateMetric2TextContentPart,
|
|
1806
2044
|
),
|
|
1807
2045
|
);
|
|
1808
2046
|
}
|
|
1809
2047
|
|
|
1810
|
-
export function
|
|
2048
|
+
export function deploymentCreateMetric2TextContentPartFromJSON(
|
|
1811
2049
|
jsonString: string,
|
|
1812
|
-
): SafeParseResult<
|
|
2050
|
+
): SafeParseResult<DeploymentCreateMetric2TextContentPart, SDKValidationError> {
|
|
1813
2051
|
return safeParse(
|
|
1814
2052
|
jsonString,
|
|
1815
2053
|
(x) =>
|
|
1816
|
-
|
|
1817
|
-
`Failed to parse '
|
|
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
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
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
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
function: DeploymentCreateMetricMessagesFunction$Outbound;
|
|
1837
|
-
};
|
|
2071
|
+
export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound =
|
|
2072
|
+
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
2073
|
+
| DeploymentCreateMetric2RefusalContentPart$Outbound;
|
|
1838
2074
|
|
|
1839
2075
|
/** @internal */
|
|
1840
|
-
export const
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
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
|
|
1855
|
-
/** @deprecated use `
|
|
2090
|
+
export namespace DeploymentCreateMetricContentDeploymentsMetrics2$ {
|
|
2091
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema` instead. */
|
|
1856
2092
|
export const inboundSchema =
|
|
1857
|
-
|
|
1858
|
-
/** @deprecated use `
|
|
2093
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema;
|
|
2094
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema` instead. */
|
|
1859
2095
|
export const outboundSchema =
|
|
1860
|
-
|
|
1861
|
-
/** @deprecated use `
|
|
1862
|
-
export type Outbound =
|
|
2096
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema;
|
|
2097
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$Outbound` instead. */
|
|
2098
|
+
export type Outbound =
|
|
2099
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$Outbound;
|
|
1863
2100
|
}
|
|
1864
2101
|
|
|
1865
|
-
export function
|
|
1866
|
-
|
|
1867
|
-
|
|
2102
|
+
export function deploymentCreateMetricContentDeploymentsMetrics2ToJSON(
|
|
2103
|
+
deploymentCreateMetricContentDeploymentsMetrics2:
|
|
2104
|
+
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
1868
2105
|
): string {
|
|
1869
2106
|
return JSON.stringify(
|
|
1870
|
-
|
|
1871
|
-
|
|
2107
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema.parse(
|
|
2108
|
+
deploymentCreateMetricContentDeploymentsMetrics2,
|
|
1872
2109
|
),
|
|
1873
2110
|
);
|
|
1874
2111
|
}
|
|
1875
2112
|
|
|
1876
|
-
export function
|
|
2113
|
+
export function deploymentCreateMetricContentDeploymentsMetrics2FromJSON(
|
|
1877
2114
|
jsonString: string,
|
|
1878
2115
|
): SafeParseResult<
|
|
1879
|
-
|
|
2116
|
+
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
1880
2117
|
SDKValidationError
|
|
1881
2118
|
> {
|
|
1882
2119
|
return safeParse(
|
|
1883
2120
|
jsonString,
|
|
1884
2121
|
(x) =>
|
|
1885
|
-
|
|
2122
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema.parse(
|
|
1886
2123
|
JSON.parse(x),
|
|
1887
2124
|
),
|
|
1888
|
-
`Failed to parse '
|
|
2125
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
|
|
1889
2126
|
);
|
|
1890
2127
|
}
|
|
1891
2128
|
|
|
1892
2129
|
/** @internal */
|
|
1893
|
-
export const
|
|
2130
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema:
|
|
1894
2131
|
z.ZodType<
|
|
1895
|
-
|
|
2132
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent,
|
|
1896
2133
|
z.ZodTypeDef,
|
|
1897
2134
|
unknown
|
|
1898
|
-
> = z.
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
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
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
|
1938
|
-
|
|
1939
|
-
|
|
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
|
|
2152
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema:
|
|
1957
2153
|
z.ZodType<
|
|
1958
|
-
|
|
2154
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound,
|
|
1959
2155
|
z.ZodTypeDef,
|
|
1960
|
-
|
|
1961
|
-
> = z.
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
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
|
|
2001
|
-
/** @deprecated use `
|
|
2169
|
+
export namespace DeploymentCreateMetricMessagesDeploymentsMetricsContent$ {
|
|
2170
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema` instead. */
|
|
2002
2171
|
export const inboundSchema =
|
|
2003
|
-
|
|
2004
|
-
/** @deprecated use `
|
|
2172
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema;
|
|
2173
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema` instead. */
|
|
2005
2174
|
export const outboundSchema =
|
|
2006
|
-
|
|
2007
|
-
/** @deprecated use `
|
|
2175
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema;
|
|
2176
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound` instead. */
|
|
2008
2177
|
export type Outbound =
|
|
2009
|
-
|
|
2178
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound;
|
|
2010
2179
|
}
|
|
2011
2180
|
|
|
2012
|
-
export function
|
|
2013
|
-
|
|
2014
|
-
|
|
2181
|
+
export function deploymentCreateMetricMessagesDeploymentsMetricsContentToJSON(
|
|
2182
|
+
deploymentCreateMetricMessagesDeploymentsMetricsContent:
|
|
2183
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent,
|
|
2015
2184
|
): string {
|
|
2016
2185
|
return JSON.stringify(
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
),
|
|
2186
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema
|
|
2187
|
+
.parse(deploymentCreateMetricMessagesDeploymentsMetricsContent),
|
|
2020
2188
|
);
|
|
2021
2189
|
}
|
|
2022
2190
|
|
|
2023
|
-
export function
|
|
2191
|
+
export function deploymentCreateMetricMessagesDeploymentsMetricsContentFromJSON(
|
|
2024
2192
|
jsonString: string,
|
|
2025
2193
|
): SafeParseResult<
|
|
2026
|
-
|
|
2194
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsContent,
|
|
2027
2195
|
SDKValidationError
|
|
2028
2196
|
> {
|
|
2029
2197
|
return safeParse(
|
|
2030
2198
|
jsonString,
|
|
2031
2199
|
(x) =>
|
|
2032
|
-
|
|
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
|
|
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
|
|
2209
|
+
typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
|
|
2068
2210
|
> = z.nativeEnum(
|
|
2069
|
-
|
|
2211
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole,
|
|
2070
2212
|
);
|
|
2071
2213
|
|
|
2072
2214
|
/** @internal */
|
|
2073
|
-
export const
|
|
2215
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
|
|
2074
2216
|
z.ZodNativeEnum<
|
|
2075
|
-
typeof
|
|
2217
|
+
typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
|
|
2076
2218
|
> =
|
|
2077
|
-
|
|
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
|
|
2084
|
-
/** @deprecated use `
|
|
2225
|
+
export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$ {
|
|
2226
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
|
|
2085
2227
|
export const inboundSchema =
|
|
2086
|
-
|
|
2087
|
-
/** @deprecated use `
|
|
2228
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
2229
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
|
|
2088
2230
|
export const outboundSchema =
|
|
2089
|
-
|
|
2231
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
|
|
2090
2232
|
}
|
|
2091
2233
|
|
|
2092
2234
|
/** @internal */
|
|
2093
|
-
export const
|
|
2094
|
-
|
|
2235
|
+
export const DeploymentCreateMetricMessagesAudio$inboundSchema: z.ZodType<
|
|
2236
|
+
DeploymentCreateMetricMessagesAudio,
|
|
2095
2237
|
z.ZodTypeDef,
|
|
2096
2238
|
unknown
|
|
2097
2239
|
> = z.object({
|
|
2098
|
-
|
|
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
|
|
2108
|
-
|
|
2109
|
-
filename: string;
|
|
2244
|
+
export type DeploymentCreateMetricMessagesAudio$Outbound = {
|
|
2245
|
+
id: string;
|
|
2110
2246
|
};
|
|
2111
2247
|
|
|
2112
2248
|
/** @internal */
|
|
2113
|
-
export const
|
|
2114
|
-
|
|
2249
|
+
export const DeploymentCreateMetricMessagesAudio$outboundSchema: z.ZodType<
|
|
2250
|
+
DeploymentCreateMetricMessagesAudio$Outbound,
|
|
2115
2251
|
z.ZodTypeDef,
|
|
2116
|
-
|
|
2252
|
+
DeploymentCreateMetricMessagesAudio
|
|
2117
2253
|
> = z.object({
|
|
2118
|
-
|
|
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
|
|
2131
|
-
/** @deprecated use `
|
|
2132
|
-
export const inboundSchema =
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
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
|
|
2140
|
-
|
|
2272
|
+
export function deploymentCreateMetricMessagesAudioToJSON(
|
|
2273
|
+
deploymentCreateMetricMessagesAudio: DeploymentCreateMetricMessagesAudio,
|
|
2141
2274
|
): string {
|
|
2142
2275
|
return JSON.stringify(
|
|
2143
|
-
|
|
2144
|
-
|
|
2276
|
+
DeploymentCreateMetricMessagesAudio$outboundSchema.parse(
|
|
2277
|
+
deploymentCreateMetricMessagesAudio,
|
|
2145
2278
|
),
|
|
2146
2279
|
);
|
|
2147
2280
|
}
|
|
2148
2281
|
|
|
2149
|
-
export function
|
|
2282
|
+
export function deploymentCreateMetricMessagesAudioFromJSON(
|
|
2150
2283
|
jsonString: string,
|
|
2151
|
-
): SafeParseResult<
|
|
2284
|
+
): SafeParseResult<DeploymentCreateMetricMessagesAudio, SDKValidationError> {
|
|
2152
2285
|
return safeParse(
|
|
2153
2286
|
jsonString,
|
|
2154
|
-
(x) =>
|
|
2155
|
-
|
|
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
|
|
2161
|
-
|
|
2162
|
-
|
|
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
|
|
2172
|
-
|
|
2173
|
-
|
|
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
|
|
2233
|
-
/** @deprecated use `
|
|
2234
|
-
export const inboundSchema =
|
|
2235
|
-
|
|
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
|
-
|
|
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
|
|
2264
|
-
|
|
2316
|
+
export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
|
|
2317
|
+
DeploymentCreateMetricMessagesFunction,
|
|
2265
2318
|
z.ZodTypeDef,
|
|
2266
2319
|
unknown
|
|
2267
2320
|
> = z.object({
|
|
2268
|
-
|
|
2269
|
-
|
|
2321
|
+
name: z.string().optional(),
|
|
2322
|
+
arguments: z.string().optional(),
|
|
2270
2323
|
});
|
|
2271
2324
|
|
|
2272
2325
|
/** @internal */
|
|
2273
|
-
export type
|
|
2274
|
-
|
|
2275
|
-
|
|
2326
|
+
export type DeploymentCreateMetricMessagesFunction$Outbound = {
|
|
2327
|
+
name?: string | undefined;
|
|
2328
|
+
arguments?: string | undefined;
|
|
2276
2329
|
};
|
|
2277
2330
|
|
|
2278
2331
|
/** @internal */
|
|
2279
|
-
export const
|
|
2280
|
-
|
|
2332
|
+
export const DeploymentCreateMetricMessagesFunction$outboundSchema: z.ZodType<
|
|
2333
|
+
DeploymentCreateMetricMessagesFunction$Outbound,
|
|
2281
2334
|
z.ZodTypeDef,
|
|
2282
|
-
|
|
2335
|
+
DeploymentCreateMetricMessagesFunction
|
|
2283
2336
|
> = z.object({
|
|
2284
|
-
|
|
2285
|
-
|
|
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
|
|
2293
|
-
/** @deprecated use `
|
|
2294
|
-
export const inboundSchema =
|
|
2295
|
-
|
|
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
|
-
|
|
2298
|
-
/** @deprecated use `
|
|
2299
|
-
export type Outbound =
|
|
2351
|
+
DeploymentCreateMetricMessagesFunction$outboundSchema;
|
|
2352
|
+
/** @deprecated use `DeploymentCreateMetricMessagesFunction$Outbound` instead. */
|
|
2353
|
+
export type Outbound = DeploymentCreateMetricMessagesFunction$Outbound;
|
|
2300
2354
|
}
|
|
2301
2355
|
|
|
2302
|
-
export function
|
|
2303
|
-
|
|
2356
|
+
export function deploymentCreateMetricMessagesFunctionToJSON(
|
|
2357
|
+
deploymentCreateMetricMessagesFunction:
|
|
2358
|
+
DeploymentCreateMetricMessagesFunction,
|
|
2304
2359
|
): string {
|
|
2305
2360
|
return JSON.stringify(
|
|
2306
|
-
|
|
2307
|
-
|
|
2361
|
+
DeploymentCreateMetricMessagesFunction$outboundSchema.parse(
|
|
2362
|
+
deploymentCreateMetricMessagesFunction,
|
|
2308
2363
|
),
|
|
2309
2364
|
);
|
|
2310
2365
|
}
|
|
2311
2366
|
|
|
2312
|
-
export function
|
|
2367
|
+
export function deploymentCreateMetricMessagesFunctionFromJSON(
|
|
2313
2368
|
jsonString: string,
|
|
2314
|
-
): SafeParseResult<
|
|
2369
|
+
): SafeParseResult<DeploymentCreateMetricMessagesFunction, SDKValidationError> {
|
|
2315
2370
|
return safeParse(
|
|
2316
2371
|
jsonString,
|
|
2317
|
-
(x) =>
|
|
2318
|
-
|
|
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
|
|
2324
|
-
|
|
2379
|
+
export const DeploymentCreateMetricMessagesToolCalls$inboundSchema: z.ZodType<
|
|
2380
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
2325
2381
|
z.ZodTypeDef,
|
|
2326
2382
|
unknown
|
|
2327
2383
|
> = z.object({
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
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
|
|
2390
|
+
export type DeploymentCreateMetricMessagesToolCalls$Outbound = {
|
|
2391
|
+
id: string;
|
|
2338
2392
|
type: string;
|
|
2339
|
-
|
|
2393
|
+
function: DeploymentCreateMetricMessagesFunction$Outbound;
|
|
2340
2394
|
};
|
|
2341
2395
|
|
|
2342
2396
|
/** @internal */
|
|
2343
|
-
export const
|
|
2344
|
-
|
|
2397
|
+
export const DeploymentCreateMetricMessagesToolCalls$outboundSchema: z.ZodType<
|
|
2398
|
+
DeploymentCreateMetricMessagesToolCalls$Outbound,
|
|
2345
2399
|
z.ZodTypeDef,
|
|
2346
|
-
|
|
2400
|
+
DeploymentCreateMetricMessagesToolCalls
|
|
2347
2401
|
> = z.object({
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
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
|
|
2361
|
-
/** @deprecated use `
|
|
2362
|
-
export const inboundSchema =
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
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
|
|
2370
|
-
|
|
2422
|
+
export function deploymentCreateMetricMessagesToolCallsToJSON(
|
|
2423
|
+
deploymentCreateMetricMessagesToolCalls:
|
|
2424
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
2371
2425
|
): string {
|
|
2372
2426
|
return JSON.stringify(
|
|
2373
|
-
|
|
2427
|
+
DeploymentCreateMetricMessagesToolCalls$outboundSchema.parse(
|
|
2428
|
+
deploymentCreateMetricMessagesToolCalls,
|
|
2429
|
+
),
|
|
2374
2430
|
);
|
|
2375
2431
|
}
|
|
2376
2432
|
|
|
2377
|
-
export function
|
|
2433
|
+
export function deploymentCreateMetricMessagesToolCallsFromJSON(
|
|
2378
2434
|
jsonString: string,
|
|
2379
|
-
): SafeParseResult<
|
|
2435
|
+
): SafeParseResult<
|
|
2436
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
2437
|
+
SDKValidationError
|
|
2438
|
+
> {
|
|
2380
2439
|
return safeParse(
|
|
2381
2440
|
jsonString,
|
|
2382
|
-
(x) =>
|
|
2383
|
-
|
|
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
|
|
2389
|
-
z.
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
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
|
|
2433
|
-
|
|
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
|
-
|
|
2438
|
-
|
|
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
|
|
2443
|
-
|
|
2444
|
-
|
|
2664
|
+
export type DeploymentCreateMetric2File$Outbound = {
|
|
2665
|
+
file_data: string;
|
|
2666
|
+
filename: string;
|
|
2445
2667
|
};
|
|
2446
2668
|
|
|
2447
2669
|
/** @internal */
|
|
2448
|
-
export const
|
|
2449
|
-
|
|
2670
|
+
export const DeploymentCreateMetric2File$outboundSchema: z.ZodType<
|
|
2671
|
+
DeploymentCreateMetric2File$Outbound,
|
|
2450
2672
|
z.ZodTypeDef,
|
|
2451
|
-
|
|
2673
|
+
DeploymentCreateMetric2File
|
|
2452
2674
|
> = z.object({
|
|
2453
|
-
|
|
2454
|
-
|
|
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
|
|
2462
|
-
/** @deprecated use `
|
|
2463
|
-
export const inboundSchema =
|
|
2464
|
-
/** @deprecated use `
|
|
2465
|
-
export const outboundSchema =
|
|
2466
|
-
/** @deprecated use `
|
|
2467
|
-
export type Outbound =
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
export function
|
|
2471
|
-
|
|
2472
|
-
): string {
|
|
2473
|
-
return JSON.stringify(
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
),
|
|
2477
|
-
);
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
export function
|
|
2481
|
-
jsonString: string,
|
|
2482
|
-
): SafeParseResult<
|
|
2483
|
-
return safeParse(
|
|
2484
|
-
jsonString,
|
|
2485
|
-
(x) =>
|
|
2486
|
-
`Failed to parse '
|
|
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
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
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
|
|
2506
|
-
|
|
2507
|
-
|
|
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
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
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
|
|
2529
|
-
/** @deprecated use `
|
|
2530
|
-
export const inboundSchema =
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
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
|
|
2538
|
-
|
|
3496
|
+
export function deploymentCreateMetricMessagesSystemMessageToJSON(
|
|
3497
|
+
deploymentCreateMetricMessagesSystemMessage:
|
|
3498
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
2539
3499
|
): string {
|
|
2540
3500
|
return JSON.stringify(
|
|
2541
|
-
|
|
3501
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
|
|
3502
|
+
deploymentCreateMetricMessagesSystemMessage,
|
|
3503
|
+
),
|
|
2542
3504
|
);
|
|
2543
3505
|
}
|
|
2544
3506
|
|
|
2545
|
-
export function
|
|
3507
|
+
export function deploymentCreateMetricMessagesSystemMessageFromJSON(
|
|
2546
3508
|
jsonString: string,
|
|
2547
|
-
): SafeParseResult<
|
|
3509
|
+
): SafeParseResult<
|
|
3510
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
3511
|
+
SDKValidationError
|
|
3512
|
+
> {
|
|
2548
3513
|
return safeParse(
|
|
2549
3514
|
jsonString,
|
|
2550
|
-
(x) =>
|
|
2551
|
-
|
|
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
|
|
2557
|
-
typeof
|
|
2558
|
-
> = z.nativeEnum(
|
|
3524
|
+
export const DeploymentCreateMetricMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
3525
|
+
typeof DeploymentCreateMetricMessagesRole
|
|
3526
|
+
> = z.nativeEnum(DeploymentCreateMetricMessagesRole);
|
|
2559
3527
|
|
|
2560
3528
|
/** @internal */
|
|
2561
|
-
export const
|
|
2562
|
-
typeof
|
|
2563
|
-
> =
|
|
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
|
|
2570
|
-
/** @deprecated use `
|
|
2571
|
-
export const inboundSchema =
|
|
2572
|
-
/** @deprecated use `
|
|
2573
|
-
export const 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
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
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
|
|
2588
|
-
|
|
2589
|
-
|
|
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
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
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
|
|
2607
|
-
/** @deprecated use `
|
|
2608
|
-
export const inboundSchema =
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
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
|
|
2616
|
-
|
|
3592
|
+
export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
|
|
3593
|
+
deploymentCreateMetricMessagesDeveloperMessage:
|
|
3594
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
2617
3595
|
): string {
|
|
2618
3596
|
return JSON.stringify(
|
|
2619
|
-
|
|
3597
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
|
|
3598
|
+
deploymentCreateMetricMessagesDeveloperMessage,
|
|
3599
|
+
),
|
|
2620
3600
|
);
|
|
2621
3601
|
}
|
|
2622
3602
|
|
|
2623
|
-
export function
|
|
3603
|
+
export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
|
|
2624
3604
|
jsonString: string,
|
|
2625
|
-
): SafeParseResult<
|
|
3605
|
+
): SafeParseResult<
|
|
3606
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
3607
|
+
SDKValidationError
|
|
3608
|
+
> {
|
|
2626
3609
|
return safeParse(
|
|
2627
3610
|
jsonString,
|
|
2628
|
-
(x) =>
|
|
2629
|
-
|
|
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
|
|
2635
|
-
|
|
3620
|
+
export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
|
|
3621
|
+
DeploymentCreateMetricMessages,
|
|
2636
3622
|
z.ZodTypeDef,
|
|
2637
3623
|
unknown
|
|
2638
3624
|
> = z.union([
|
|
2639
|
-
z.lazy(() =>
|
|
2640
|
-
z.lazy(() =>
|
|
2641
|
-
z.lazy(() =>
|
|
2642
|
-
z.lazy(() =>
|
|
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
|
|
2647
|
-
|
|
|
2648
|
-
|
|
|
2649
|
-
|
|
|
2650
|
-
|
|
|
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
|
|
2654
|
-
|
|
3641
|
+
export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
3642
|
+
DeploymentCreateMetricMessages$Outbound,
|
|
2655
3643
|
z.ZodTypeDef,
|
|
2656
|
-
|
|
3644
|
+
DeploymentCreateMetricMessages
|
|
2657
3645
|
> = z.union([
|
|
2658
|
-
z.lazy(() =>
|
|
2659
|
-
z.lazy(() =>
|
|
2660
|
-
z.lazy(() =>
|
|
2661
|
-
z.lazy(() =>
|
|
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
|
|
2669
|
-
/** @deprecated use `
|
|
2670
|
-
export const inboundSchema =
|
|
2671
|
-
/** @deprecated use `
|
|
2672
|
-
export const outboundSchema =
|
|
2673
|
-
/** @deprecated use `
|
|
2674
|
-
export type 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
|
|
2678
|
-
|
|
3666
|
+
export function deploymentCreateMetricMessagesToJSON(
|
|
3667
|
+
deploymentCreateMetricMessages: DeploymentCreateMetricMessages,
|
|
2679
3668
|
): string {
|
|
2680
3669
|
return JSON.stringify(
|
|
2681
|
-
|
|
2682
|
-
|
|
3670
|
+
DeploymentCreateMetricMessages$outboundSchema.parse(
|
|
3671
|
+
deploymentCreateMetricMessages,
|
|
2683
3672
|
),
|
|
2684
3673
|
);
|
|
2685
3674
|
}
|
|
2686
3675
|
|
|
2687
|
-
export function
|
|
3676
|
+
export function deploymentCreateMetricMessagesFromJSON(
|
|
2688
3677
|
jsonString: string,
|
|
2689
|
-
): SafeParseResult<
|
|
3678
|
+
): SafeParseResult<DeploymentCreateMetricMessages, SDKValidationError> {
|
|
2690
3679
|
return safeParse(
|
|
2691
3680
|
jsonString,
|
|
2692
|
-
(x) =>
|
|
2693
|
-
`Failed to parse '
|
|
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
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
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
|
|
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
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
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
|
|
2742
|
-
/** @deprecated use `
|
|
3739
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsContent$ {
|
|
3740
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
|
|
2743
3741
|
export const inboundSchema =
|
|
2744
|
-
|
|
2745
|
-
/** @deprecated use `
|
|
3742
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
|
|
3743
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
|
|
2746
3744
|
export const outboundSchema =
|
|
2747
|
-
|
|
2748
|
-
/** @deprecated use `
|
|
2749
|
-
export type Outbound =
|
|
3745
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
|
|
3746
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound` instead. */
|
|
3747
|
+
export type Outbound =
|
|
3748
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound;
|
|
2750
3749
|
}
|
|
2751
3750
|
|
|
2752
|
-
export function
|
|
2753
|
-
|
|
3751
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
|
|
3752
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent:
|
|
3753
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2754
3754
|
): string {
|
|
2755
3755
|
return JSON.stringify(
|
|
2756
|
-
|
|
2757
|
-
|
|
3756
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(
|
|
3757
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2758
3758
|
),
|
|
2759
3759
|
);
|
|
2760
3760
|
}
|
|
2761
3761
|
|
|
2762
|
-
export function
|
|
3762
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(
|
|
2763
3763
|
jsonString: string,
|
|
2764
|
-
): SafeParseResult<
|
|
3764
|
+
): SafeParseResult<
|
|
3765
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
3766
|
+
SDKValidationError
|
|
3767
|
+
> {
|
|
2765
3768
|
return safeParse(
|
|
2766
3769
|
jsonString,
|
|
2767
3770
|
(x) =>
|
|
2768
|
-
|
|
2769
|
-
|
|
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
|
|
2775
|
-
|
|
3778
|
+
export const ChoicesToolMessage$inboundSchema: z.ZodType<
|
|
3779
|
+
ChoicesToolMessage,
|
|
2776
3780
|
z.ZodTypeDef,
|
|
2777
3781
|
unknown
|
|
2778
3782
|
> = z.object({
|
|
2779
3783
|
role:
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
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
|
|
3794
|
+
export type ChoicesToolMessage$Outbound = {
|
|
2795
3795
|
role: string;
|
|
2796
|
-
|
|
2797
|
-
|
|
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
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
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
|
|
2833
|
-
/** @deprecated use `
|
|
2834
|
-
export const inboundSchema =
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
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
|
|
2844
|
-
|
|
2845
|
-
DeploymentCreateMetricMessagesUserMessage,
|
|
3829
|
+
export function choicesToolMessageToJSON(
|
|
3830
|
+
choicesToolMessage: ChoicesToolMessage,
|
|
2846
3831
|
): string {
|
|
2847
3832
|
return JSON.stringify(
|
|
2848
|
-
|
|
2849
|
-
deploymentCreateMetricMessagesUserMessage,
|
|
2850
|
-
),
|
|
3833
|
+
ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
|
|
2851
3834
|
);
|
|
2852
3835
|
}
|
|
2853
3836
|
|
|
2854
|
-
export function
|
|
2855
|
-
jsonString: string,
|
|
2856
|
-
): SafeParseResult<
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
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
|
|
2872
|
-
z.ZodNativeEnum<
|
|
2873
|
-
|
|
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
|
|
2877
|
-
z.ZodNativeEnum<
|
|
2878
|
-
|
|
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
|
|
2885
|
-
/** @deprecated use `
|
|
3866
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ {
|
|
3867
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
|
|
2886
3868
|
export const inboundSchema =
|
|
2887
|
-
|
|
2888
|
-
/** @deprecated use `
|
|
3869
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
3870
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
|
|
2889
3871
|
export const outboundSchema =
|
|
2890
|
-
|
|
3872
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
|
|
2891
3873
|
}
|
|
2892
3874
|
|
|
2893
3875
|
/** @internal */
|
|
2894
|
-
export const
|
|
3876
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema:
|
|
2895
3877
|
z.ZodType<
|
|
2896
|
-
|
|
3878
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
2897
3879
|
z.ZodTypeDef,
|
|
2898
3880
|
unknown
|
|
2899
3881
|
> = z.object({
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
3882
|
+
type:
|
|
3883
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
3884
|
+
refusal: z.string(),
|
|
2903
3885
|
});
|
|
2904
3886
|
|
|
2905
3887
|
/** @internal */
|
|
2906
|
-
export type
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
};
|
|
3888
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound =
|
|
3889
|
+
{
|
|
3890
|
+
type: string;
|
|
3891
|
+
refusal: string;
|
|
3892
|
+
};
|
|
2911
3893
|
|
|
2912
3894
|
/** @internal */
|
|
2913
|
-
export const
|
|
3895
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema:
|
|
2914
3896
|
z.ZodType<
|
|
2915
|
-
|
|
3897
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound,
|
|
2916
3898
|
z.ZodTypeDef,
|
|
2917
|
-
|
|
3899
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
2918
3900
|
> = z.object({
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
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
|
|
2929
|
-
/** @deprecated use `
|
|
3910
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ {
|
|
3911
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
|
|
2930
3912
|
export const inboundSchema =
|
|
2931
|
-
|
|
2932
|
-
/** @deprecated use `
|
|
3913
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
|
|
3914
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
|
|
2933
3915
|
export const outboundSchema =
|
|
2934
|
-
|
|
2935
|
-
/** @deprecated use `
|
|
2936
|
-
export type Outbound =
|
|
3916
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
|
|
3917
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound` instead. */
|
|
3918
|
+
export type Outbound =
|
|
3919
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
|
|
2937
3920
|
}
|
|
2938
3921
|
|
|
2939
|
-
export function
|
|
2940
|
-
|
|
2941
|
-
|
|
3922
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(
|
|
3923
|
+
deploymentCreateMetric2DeploymentsMetricsRefusalContentPart:
|
|
3924
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
2942
3925
|
): string {
|
|
2943
3926
|
return JSON.stringify(
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
),
|
|
3927
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3928
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart),
|
|
2947
3929
|
);
|
|
2948
3930
|
}
|
|
2949
3931
|
|
|
2950
|
-
export function
|
|
3932
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(
|
|
2951
3933
|
jsonString: string,
|
|
2952
3934
|
): SafeParseResult<
|
|
2953
|
-
|
|
3935
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
2954
3936
|
SDKValidationError
|
|
2955
3937
|
> {
|
|
2956
3938
|
return safeParse(
|
|
2957
3939
|
jsonString,
|
|
2958
3940
|
(x) =>
|
|
2959
|
-
|
|
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
|
|
2968
|
-
|
|
2969
|
-
|
|
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
|
|
2973
|
-
|
|
2974
|
-
|
|
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
|
|
2981
|
-
/** @deprecated use `
|
|
2982
|
-
export const inboundSchema =
|
|
2983
|
-
|
|
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
|
-
|
|
3972
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
|
|
2986
3973
|
}
|
|
2987
3974
|
|
|
2988
3975
|
/** @internal */
|
|
2989
|
-
export const
|
|
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
|
-
|
|
4006
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
|
|
2992
4007
|
z.ZodTypeDef,
|
|
2993
4008
|
unknown
|
|
2994
4009
|
> = z.object({
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
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
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
};
|
|
4018
|
+
export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound =
|
|
4019
|
+
{
|
|
4020
|
+
file_id: string;
|
|
4021
|
+
};
|
|
3006
4022
|
|
|
3007
4023
|
/** @internal */
|
|
3008
|
-
export const
|
|
4024
|
+
export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema:
|
|
3009
4025
|
z.ZodType<
|
|
3010
|
-
|
|
4026
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound,
|
|
3011
4027
|
z.ZodTypeDef,
|
|
3012
|
-
|
|
4028
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath
|
|
3013
4029
|
> = z.object({
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
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
|
|
3024
|
-
/** @deprecated use `
|
|
4041
|
+
export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$ {
|
|
4042
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema` instead. */
|
|
3025
4043
|
export const inboundSchema =
|
|
3026
|
-
|
|
3027
|
-
/** @deprecated use `
|
|
4044
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$inboundSchema;
|
|
4045
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema` instead. */
|
|
3028
4046
|
export const outboundSchema =
|
|
3029
|
-
|
|
3030
|
-
/** @deprecated use `
|
|
4047
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema;
|
|
4048
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound` instead. */
|
|
3031
4049
|
export type Outbound =
|
|
3032
|
-
|
|
4050
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$Outbound;
|
|
3033
4051
|
}
|
|
3034
4052
|
|
|
3035
|
-
export function
|
|
3036
|
-
|
|
3037
|
-
|
|
4053
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetricsFilePathToJSON(
|
|
4054
|
+
deploymentCreateMetricAnnotationsDeploymentsMetricsFilePath:
|
|
4055
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
|
|
3038
4056
|
): string {
|
|
3039
4057
|
return JSON.stringify(
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
),
|
|
4058
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath$outboundSchema
|
|
4059
|
+
.parse(deploymentCreateMetricAnnotationsDeploymentsMetricsFilePath),
|
|
3043
4060
|
);
|
|
3044
4061
|
}
|
|
3045
4062
|
|
|
3046
|
-
export function
|
|
4063
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetricsFilePathFromJSON(
|
|
3047
4064
|
jsonString: string,
|
|
3048
4065
|
): SafeParseResult<
|
|
3049
|
-
|
|
4066
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFilePath,
|
|
3050
4067
|
SDKValidationError
|
|
3051
4068
|
> {
|
|
3052
4069
|
return safeParse(
|
|
3053
4070
|
jsonString,
|
|
3054
4071
|
(x) =>
|
|
3055
|
-
|
|
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
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
z.
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
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
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
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
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
z.
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
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
|
|
3101
|
-
/** @deprecated use `
|
|
3102
|
-
export const inboundSchema =
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
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
|
|
3110
|
-
|
|
4149
|
+
|
|
4150
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetrics2ToJSON(
|
|
4151
|
+
deploymentCreateMetricAnnotationsDeploymentsMetrics2:
|
|
4152
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics2,
|
|
3111
4153
|
): string {
|
|
3112
4154
|
return JSON.stringify(
|
|
3113
|
-
|
|
3114
|
-
|
|
4155
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics2$outboundSchema.parse(
|
|
4156
|
+
deploymentCreateMetricAnnotationsDeploymentsMetrics2,
|
|
3115
4157
|
),
|
|
3116
4158
|
);
|
|
3117
4159
|
}
|
|
3118
4160
|
|
|
3119
|
-
export function
|
|
4161
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetrics2FromJSON(
|
|
3120
4162
|
jsonString: string,
|
|
3121
|
-
): SafeParseResult<
|
|
4163
|
+
): SafeParseResult<
|
|
4164
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics2,
|
|
4165
|
+
SDKValidationError
|
|
4166
|
+
> {
|
|
3122
4167
|
return safeParse(
|
|
3123
4168
|
jsonString,
|
|
3124
|
-
(x) =>
|
|
3125
|
-
|
|
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
|
|
4178
|
+
export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema:
|
|
3131
4179
|
z.ZodNativeEnum<
|
|
3132
|
-
typeof
|
|
4180
|
+
typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType
|
|
3133
4181
|
> = z.nativeEnum(
|
|
3134
|
-
|
|
4182
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType,
|
|
3135
4183
|
);
|
|
3136
4184
|
|
|
3137
4185
|
/** @internal */
|
|
3138
|
-
export const
|
|
4186
|
+
export const DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema:
|
|
3139
4187
|
z.ZodNativeEnum<
|
|
3140
|
-
typeof
|
|
4188
|
+
typeof DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType
|
|
3141
4189
|
> =
|
|
3142
|
-
|
|
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
|
|
3149
|
-
/** @deprecated use `
|
|
4196
|
+
export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$ {
|
|
4197
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema` instead. */
|
|
3150
4198
|
export const inboundSchema =
|
|
3151
|
-
|
|
3152
|
-
/** @deprecated use `
|
|
4199
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$inboundSchema;
|
|
4200
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema` instead. */
|
|
3153
4201
|
export const outboundSchema =
|
|
3154
|
-
|
|
4202
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsRequestType$outboundSchema;
|
|
3155
4203
|
}
|
|
3156
4204
|
|
|
3157
4205
|
/** @internal */
|
|
3158
|
-
export const
|
|
4206
|
+
export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema:
|
|
3159
4207
|
z.ZodType<
|
|
3160
|
-
|
|
4208
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
|
|
3161
4209
|
z.ZodTypeDef,
|
|
3162
4210
|
unknown
|
|
3163
|
-
> = z.
|
|
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
|
|
3167
|
-
|
|
3168
|
-
|
|
4221
|
+
export type DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound =
|
|
4222
|
+
{
|
|
4223
|
+
file_id: string;
|
|
4224
|
+
quote?: string | undefined;
|
|
4225
|
+
};
|
|
3169
4226
|
|
|
3170
4227
|
/** @internal */
|
|
3171
|
-
export const
|
|
4228
|
+
export const DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema:
|
|
3172
4229
|
z.ZodType<
|
|
3173
|
-
|
|
4230
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound,
|
|
3174
4231
|
z.ZodTypeDef,
|
|
3175
|
-
|
|
3176
|
-
> = z.
|
|
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
|
|
3183
|
-
/** @deprecated use `
|
|
4246
|
+
export namespace DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$ {
|
|
4247
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema` instead. */
|
|
3184
4248
|
export const inboundSchema =
|
|
3185
|
-
|
|
3186
|
-
/** @deprecated use `
|
|
4249
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema;
|
|
4250
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema` instead. */
|
|
3187
4251
|
export const outboundSchema =
|
|
3188
|
-
|
|
3189
|
-
/** @deprecated use `
|
|
4252
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema;
|
|
4253
|
+
/** @deprecated use `DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound` instead. */
|
|
3190
4254
|
export type Outbound =
|
|
3191
|
-
|
|
4255
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$Outbound;
|
|
3192
4256
|
}
|
|
3193
4257
|
|
|
3194
|
-
export function
|
|
3195
|
-
|
|
3196
|
-
|
|
4258
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitationToJSON(
|
|
4259
|
+
deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation:
|
|
4260
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
|
|
3197
4261
|
): string {
|
|
3198
4262
|
return JSON.stringify(
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
),
|
|
4263
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$outboundSchema
|
|
4264
|
+
.parse(deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation),
|
|
3202
4265
|
);
|
|
3203
4266
|
}
|
|
3204
4267
|
|
|
3205
|
-
export function
|
|
4268
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetricsFileCitationFromJSON(
|
|
3206
4269
|
jsonString: string,
|
|
3207
4270
|
): SafeParseResult<
|
|
3208
|
-
|
|
4271
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation,
|
|
3209
4272
|
SDKValidationError
|
|
3210
4273
|
> {
|
|
3211
4274
|
return safeParse(
|
|
3212
4275
|
jsonString,
|
|
3213
4276
|
(x) =>
|
|
3214
|
-
|
|
4277
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation$inboundSchema
|
|
3215
4278
|
.parse(JSON.parse(x)),
|
|
3216
|
-
`Failed to parse '
|
|
4279
|
+
`Failed to parse 'DeploymentCreateMetricAnnotationsDeploymentsMetricsFileCitation' from JSON`,
|
|
3217
4280
|
);
|
|
3218
4281
|
}
|
|
3219
4282
|
|
|
3220
4283
|
/** @internal */
|
|
3221
|
-
export const
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
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
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
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
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
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
|
|
3264
|
-
/** @deprecated use `
|
|
3265
|
-
export const inboundSchema =
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
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
|
|
3273
|
-
|
|
4355
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetrics1ToJSON(
|
|
4356
|
+
deploymentCreateMetricAnnotationsDeploymentsMetrics1:
|
|
4357
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics1,
|
|
3274
4358
|
): string {
|
|
3275
4359
|
return JSON.stringify(
|
|
3276
|
-
|
|
4360
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics1$outboundSchema.parse(
|
|
4361
|
+
deploymentCreateMetricAnnotationsDeploymentsMetrics1,
|
|
4362
|
+
),
|
|
3277
4363
|
);
|
|
3278
4364
|
}
|
|
3279
4365
|
|
|
3280
|
-
export function
|
|
4366
|
+
export function deploymentCreateMetricAnnotationsDeploymentsMetrics1FromJSON(
|
|
3281
4367
|
jsonString: string,
|
|
3282
|
-
): SafeParseResult<
|
|
4368
|
+
): SafeParseResult<
|
|
4369
|
+
DeploymentCreateMetricAnnotationsDeploymentsMetrics1,
|
|
4370
|
+
SDKValidationError
|
|
4371
|
+
> {
|
|
3283
4372
|
return safeParse(
|
|
3284
4373
|
jsonString,
|
|
3285
|
-
(x) =>
|
|
3286
|
-
|
|
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
|
|
4383
|
+
export const DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema:
|
|
3320
4384
|
z.ZodType<
|
|
3321
|
-
|
|
4385
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations,
|
|
3322
4386
|
z.ZodTypeDef,
|
|
3323
4387
|
unknown
|
|
3324
|
-
> = z.
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
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
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
refusal: string;
|
|
3335
|
-
};
|
|
4398
|
+
export type DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound =
|
|
4399
|
+
| DeploymentCreateMetricAnnotationsDeploymentsMetrics1$Outbound
|
|
4400
|
+
| DeploymentCreateMetricAnnotationsDeploymentsMetrics2$Outbound;
|
|
3336
4401
|
|
|
3337
4402
|
/** @internal */
|
|
3338
|
-
export const
|
|
4403
|
+
export const DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema:
|
|
3339
4404
|
z.ZodType<
|
|
3340
|
-
|
|
4405
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound,
|
|
3341
4406
|
z.ZodTypeDef,
|
|
3342
|
-
|
|
3343
|
-
> = z.
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
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
|
|
3354
|
-
/** @deprecated use `
|
|
4421
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsAnnotations$ {
|
|
4422
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema` instead. */
|
|
3355
4423
|
export const inboundSchema =
|
|
3356
|
-
|
|
3357
|
-
/** @deprecated use `
|
|
4424
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations$inboundSchema;
|
|
4425
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema` instead. */
|
|
3358
4426
|
export const outboundSchema =
|
|
3359
|
-
|
|
3360
|
-
/** @deprecated use `
|
|
4427
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema;
|
|
4428
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound` instead. */
|
|
3361
4429
|
export type Outbound =
|
|
3362
|
-
|
|
4430
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations$Outbound;
|
|
3363
4431
|
}
|
|
3364
4432
|
|
|
3365
|
-
export function
|
|
3366
|
-
|
|
3367
|
-
|
|
4433
|
+
export function deploymentCreateMetric2DeploymentsMetricsAnnotationsToJSON(
|
|
4434
|
+
deploymentCreateMetric2DeploymentsMetricsAnnotations:
|
|
4435
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations,
|
|
3368
4436
|
): string {
|
|
3369
4437
|
return JSON.stringify(
|
|
3370
|
-
|
|
3371
|
-
|
|
4438
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations$outboundSchema.parse(
|
|
4439
|
+
deploymentCreateMetric2DeploymentsMetricsAnnotations,
|
|
4440
|
+
),
|
|
3372
4441
|
);
|
|
3373
4442
|
}
|
|
3374
4443
|
|
|
3375
|
-
export function
|
|
4444
|
+
export function deploymentCreateMetric2DeploymentsMetricsAnnotationsFromJSON(
|
|
3376
4445
|
jsonString: string,
|
|
3377
4446
|
): SafeParseResult<
|
|
3378
|
-
|
|
4447
|
+
DeploymentCreateMetric2DeploymentsMetricsAnnotations,
|
|
3379
4448
|
SDKValidationError
|
|
3380
4449
|
> {
|
|
3381
4450
|
return safeParse(
|
|
3382
4451
|
jsonString,
|
|
3383
4452
|
(x) =>
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
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
|
/**
|