@orq-ai/node 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +74 -38
- package/bin/mcp-server.js.map +32 -31
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/mcp-server/extensions.d.ts +9 -0
- package/mcp-server/extensions.d.ts.map +1 -0
- package/mcp-server/extensions.js +6 -0
- package/mcp-server/extensions.js.map +1 -0
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/resources.d.ts +9 -4
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +36 -9
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +6 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/contactsCreate.js +1 -1
- package/mcp-server/tools/deploymentsGetConfig.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsList.js +1 -1
- package/mcp-server/tools/deploymentsMetricsCreate.js +1 -1
- package/mcp-server/tools/deploymentsStream.js +1 -1
- package/mcp-server/tools/feedbackCreate.js +1 -1
- package/mcp-server/tools/filesCreate.js +1 -1
- package/mcp-server/tools/filesDelete.js +1 -1
- package/mcp-server/tools/filesGet.js +1 -1
- package/mcp-server/tools/filesList.js +1 -1
- package/mcp-server/tools/promptsCreate.js +1 -1
- package/mcp-server/tools/promptsDelete.js +1 -1
- package/mcp-server/tools/promptsGetVersion.js +1 -1
- package/mcp-server/tools/promptsList.js +1 -1
- package/mcp-server/tools/promptsListVersions.js +1 -1
- package/mcp-server/tools/promptsRetrieve.js +1 -1
- package/mcp-server/tools/promptsUpdate.js +1 -1
- package/mcp-server/tools/remoteconfigsRetrieve.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +3 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/package.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/datasetsList.ts +1 -0
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
- package/packages/orq-rc/src/funcs/filesList.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/sdks.ts +2 -7
- package/packages/orq-rc/src/mcp-server/extensions.ts +13 -0
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/resources.ts +75 -14
- package/packages/orq-rc/src/mcp-server/server.ts +16 -1
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools.ts +4 -0
- package/packages/orq-rc/src/models/components/deployments.ts +786 -749
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2448 -767
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +857 -917
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +458 -407
- package/packages/orq-rc/src/models/operations/deployments.ts +39 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +42 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +42 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +46 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +44 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +42 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/mcp-server/extensions.ts +13 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/resources.ts +75 -14
- package/src/mcp-server/server.ts +16 -1
- package/src/mcp-server/tools/contactsCreate.ts +1 -1
- package/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/mcp-server/tools/deploymentsList.ts +1 -1
- package/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
- package/src/mcp-server/tools/deploymentsStream.ts +1 -1
- package/src/mcp-server/tools/feedbackCreate.ts +1 -1
- package/src/mcp-server/tools/filesCreate.ts +1 -1
- package/src/mcp-server/tools/filesDelete.ts +1 -1
- package/src/mcp-server/tools/filesGet.ts +1 -1
- package/src/mcp-server/tools/filesList.ts +1 -1
- package/src/mcp-server/tools/promptsCreate.ts +1 -1
- package/src/mcp-server/tools/promptsDelete.ts +1 -1
- package/src/mcp-server/tools/promptsGetVersion.ts +1 -1
- package/src/mcp-server/tools/promptsList.ts +1 -1
- package/src/mcp-server/tools/promptsListVersions.ts +1 -1
- package/src/mcp-server/tools/promptsRetrieve.ts +1 -1
- package/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
- package/src/mcp-server/tools.ts +4 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
|
@@ -60,7 +60,7 @@ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent =
|
|
|
60
60
|
| string
|
|
61
61
|
| Array<string>;
|
|
62
62
|
|
|
63
|
-
export type
|
|
63
|
+
export type DeploymentCreateMetricMessagesToolMessage = {
|
|
64
64
|
/**
|
|
65
65
|
* The role of the messages author, in this case tool.
|
|
66
66
|
*/
|
|
@@ -90,7 +90,7 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesT
|
|
|
90
90
|
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType
|
|
91
91
|
>;
|
|
92
92
|
|
|
93
|
-
export type
|
|
93
|
+
export type DeploymentCreateMetric2RefusalContentPart = {
|
|
94
94
|
/**
|
|
95
95
|
* The type of the content part.
|
|
96
96
|
*/
|
|
@@ -115,7 +115,7 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType =
|
|
|
115
115
|
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
|
|
116
116
|
>;
|
|
117
117
|
|
|
118
|
-
export type
|
|
118
|
+
export type DeploymentCreateMetric2TextContentPart = {
|
|
119
119
|
/**
|
|
120
120
|
* The type of the content part.
|
|
121
121
|
*/
|
|
@@ -127,8 +127,8 @@ export type DeploymentCreateMetric2DeploymentsMetrics1 = {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
export type DeploymentCreateMetricContentDeploymentsMetrics2 =
|
|
130
|
-
|
|
|
131
|
-
|
|
|
130
|
+
| DeploymentCreateMetric2TextContentPart
|
|
131
|
+
| DeploymentCreateMetric2RefusalContentPart;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
@@ -136,8 +136,8 @@ export type DeploymentCreateMetricContentDeploymentsMetrics2 =
|
|
|
136
136
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsContent =
|
|
137
137
|
| string
|
|
138
138
|
| Array<
|
|
139
|
-
|
|
|
140
|
-
|
|
|
139
|
+
| DeploymentCreateMetric2TextContentPart
|
|
140
|
+
| DeploymentCreateMetric2RefusalContentPart
|
|
141
141
|
>;
|
|
142
142
|
|
|
143
143
|
/**
|
|
@@ -166,13 +166,13 @@ export type DeploymentCreateMetricMessagesAudio = {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* The type of the tool. Currently, only `
|
|
169
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
170
170
|
*/
|
|
171
171
|
export const DeploymentCreateMetricMessagesType = {
|
|
172
172
|
Function: "function",
|
|
173
173
|
} as const;
|
|
174
174
|
/**
|
|
175
|
-
* The type of the tool. Currently, only `
|
|
175
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
176
176
|
*/
|
|
177
177
|
export type DeploymentCreateMetricMessagesType = ClosedEnum<
|
|
178
178
|
typeof DeploymentCreateMetricMessagesType
|
|
@@ -195,21 +195,21 @@ export type DeploymentCreateMetricMessagesToolCalls = {
|
|
|
195
195
|
*/
|
|
196
196
|
id: string;
|
|
197
197
|
/**
|
|
198
|
-
* The type of the tool. Currently, only `
|
|
198
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
199
199
|
*/
|
|
200
200
|
type: DeploymentCreateMetricMessagesType;
|
|
201
201
|
function: DeploymentCreateMetricMessagesFunction;
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
export type
|
|
204
|
+
export type DeploymentCreateMetricMessagesAssistantMessage = {
|
|
205
205
|
/**
|
|
206
206
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
207
207
|
*/
|
|
208
208
|
content?:
|
|
209
209
|
| string
|
|
210
210
|
| Array<
|
|
211
|
-
|
|
|
212
|
-
|
|
|
211
|
+
| DeploymentCreateMetric2TextContentPart
|
|
212
|
+
| DeploymentCreateMetric2RefusalContentPart
|
|
213
213
|
>
|
|
214
214
|
| undefined;
|
|
215
215
|
/**
|
|
@@ -351,7 +351,7 @@ export type DeploymentCreateMetricMessagesContent =
|
|
|
351
351
|
| DeploymentCreateMetric23
|
|
352
352
|
>;
|
|
353
353
|
|
|
354
|
-
export type
|
|
354
|
+
export type DeploymentCreateMetricMessagesUserMessage = {
|
|
355
355
|
/**
|
|
356
356
|
* The role of the messages author, in this case `user`.
|
|
357
357
|
*/
|
|
@@ -385,7 +385,7 @@ export type DeploymentCreateMetricMessagesDeploymentsMetricsRole = ClosedEnum<
|
|
|
385
385
|
typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole
|
|
386
386
|
>;
|
|
387
387
|
|
|
388
|
-
export type
|
|
388
|
+
export type DeploymentCreateMetricMessagesSystemMessage = {
|
|
389
389
|
/**
|
|
390
390
|
* The role of the messages author, in this case `system`.
|
|
391
391
|
*/
|
|
@@ -413,7 +413,7 @@ export type DeploymentCreateMetricMessagesRole = ClosedEnum<
|
|
|
413
413
|
typeof DeploymentCreateMetricMessagesRole
|
|
414
414
|
>;
|
|
415
415
|
|
|
416
|
-
export type
|
|
416
|
+
export type DeploymentCreateMetricMessagesDeveloperMessage = {
|
|
417
417
|
/**
|
|
418
418
|
* The role of the messages author, in this case `developer`.
|
|
419
419
|
*/
|
|
@@ -429,238 +429,533 @@ export type DeploymentCreateMetricMessages1 = {
|
|
|
429
429
|
};
|
|
430
430
|
|
|
431
431
|
export type DeploymentCreateMetricMessages =
|
|
432
|
-
|
|
|
433
|
-
|
|
|
434
|
-
|
|
|
435
|
-
|
|
|
436
|
-
|
|
|
432
|
+
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
433
|
+
| DeploymentCreateMetricMessagesSystemMessage
|
|
434
|
+
| DeploymentCreateMetricMessagesUserMessage
|
|
435
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
436
|
+
| DeploymentCreateMetricMessagesAssistantMessage;
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
* The role of the
|
|
439
|
+
* The role of the messages author, in this case tool.
|
|
440
440
|
*/
|
|
441
|
-
export const
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
441
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole =
|
|
442
|
+
{
|
|
443
|
+
Tool: "tool",
|
|
444
|
+
} as const;
|
|
445
|
+
/**
|
|
446
|
+
* The role of the messages author, in this case tool.
|
|
447
|
+
*/
|
|
448
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole =
|
|
449
|
+
ClosedEnum<
|
|
450
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
451
|
+
>;
|
|
452
|
+
|
|
451
453
|
/**
|
|
452
|
-
* The
|
|
454
|
+
* The contents of the tool message.
|
|
453
455
|
*/
|
|
454
|
-
export type
|
|
455
|
-
|
|
456
|
-
>;
|
|
456
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent =
|
|
457
|
+
| string
|
|
458
|
+
| Array<string>;
|
|
457
459
|
|
|
458
|
-
export type
|
|
460
|
+
export type ChoicesToolMessage = {
|
|
459
461
|
/**
|
|
460
|
-
* The role of the
|
|
462
|
+
* The role of the messages author, in this case tool.
|
|
461
463
|
*/
|
|
462
|
-
role:
|
|
463
|
-
|
|
464
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole;
|
|
465
|
+
/**
|
|
466
|
+
* The contents of the tool message.
|
|
467
|
+
*/
|
|
468
|
+
content: string | Array<string>;
|
|
469
|
+
/**
|
|
470
|
+
* Tool call that this message is responding to.
|
|
471
|
+
*/
|
|
472
|
+
toolCallId: string;
|
|
464
473
|
};
|
|
465
474
|
|
|
466
475
|
/**
|
|
467
|
-
* The
|
|
476
|
+
* The type of the content part.
|
|
468
477
|
*/
|
|
469
|
-
export const
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
Exception: "exception",
|
|
474
|
-
Tool: "tool",
|
|
475
|
-
Prompt: "prompt",
|
|
476
|
-
Correction: "correction",
|
|
477
|
-
ExpectedOutput: "expected_output",
|
|
478
|
-
} as const;
|
|
478
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
479
|
+
{
|
|
480
|
+
Refusal: "refusal",
|
|
481
|
+
} as const;
|
|
479
482
|
/**
|
|
480
|
-
* The
|
|
483
|
+
* The type of the content part.
|
|
481
484
|
*/
|
|
482
|
-
export type
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
486
|
+
ClosedEnum<
|
|
487
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
488
|
+
>;
|
|
485
489
|
|
|
486
|
-
export type
|
|
490
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart = {
|
|
491
|
+
/**
|
|
492
|
+
* The type of the content part.
|
|
493
|
+
*/
|
|
494
|
+
type:
|
|
495
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType;
|
|
487
496
|
/**
|
|
488
|
-
* The
|
|
497
|
+
* The refusal message generated by the model.
|
|
489
498
|
*/
|
|
490
|
-
|
|
491
|
-
content: string | null;
|
|
499
|
+
refusal: string;
|
|
492
500
|
};
|
|
493
501
|
|
|
494
502
|
/**
|
|
495
|
-
* The
|
|
503
|
+
* The type of the content part.
|
|
496
504
|
*/
|
|
497
|
-
export const
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
Exception: "exception",
|
|
502
|
-
Tool: "tool",
|
|
503
|
-
Prompt: "prompt",
|
|
504
|
-
Correction: "correction",
|
|
505
|
-
ExpectedOutput: "expected_output",
|
|
506
|
-
} as const;
|
|
505
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type =
|
|
506
|
+
{
|
|
507
|
+
Text: "text",
|
|
508
|
+
} as const;
|
|
507
509
|
/**
|
|
508
|
-
* The
|
|
510
|
+
* The type of the content part.
|
|
509
511
|
*/
|
|
510
|
-
export type
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
} as const;
|
|
515
|
-
export type MessageType = ClosedEnum<typeof MessageType>;
|
|
512
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type =
|
|
513
|
+
ClosedEnum<
|
|
514
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
515
|
+
>;
|
|
516
516
|
|
|
517
|
-
export type
|
|
518
|
-
name: string;
|
|
517
|
+
export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart = {
|
|
519
518
|
/**
|
|
520
|
-
*
|
|
519
|
+
* The type of the content part.
|
|
521
520
|
*/
|
|
522
|
-
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
export type MessageToolCalls = {
|
|
526
|
-
id?: string | undefined;
|
|
527
|
-
index?: number | undefined;
|
|
528
|
-
type: MessageType;
|
|
529
|
-
function: MessageFunction;
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
export type Message1 = {
|
|
521
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type;
|
|
533
522
|
/**
|
|
534
|
-
* The
|
|
523
|
+
* The text content.
|
|
535
524
|
*/
|
|
536
|
-
|
|
537
|
-
content?: string | null | undefined;
|
|
538
|
-
toolCalls: Array<MessageToolCalls>;
|
|
525
|
+
text: string;
|
|
539
526
|
};
|
|
540
527
|
|
|
541
|
-
export type
|
|
528
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2 =
|
|
529
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
530
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart;
|
|
542
531
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
532
|
+
/**
|
|
533
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
534
|
+
*/
|
|
535
|
+
export type DeploymentCreateMetricChoicesContent =
|
|
536
|
+
| string
|
|
537
|
+
| Array<
|
|
538
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
539
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
540
|
+
>;
|
|
548
541
|
|
|
549
542
|
/**
|
|
550
|
-
*
|
|
543
|
+
* The role of the messages author, in this case `assistant`.
|
|
551
544
|
*/
|
|
552
|
-
export
|
|
545
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = {
|
|
546
|
+
Assistant: "assistant",
|
|
547
|
+
} as const;
|
|
548
|
+
/**
|
|
549
|
+
* The role of the messages author, in this case `assistant`.
|
|
550
|
+
*/
|
|
551
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole =
|
|
552
|
+
ClosedEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole>;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Data about a previous audio response from the model.
|
|
556
|
+
*/
|
|
557
|
+
export type ChoicesAudio = {
|
|
553
558
|
/**
|
|
554
|
-
*
|
|
559
|
+
* Unique identifier for a previous audio response from the model.
|
|
555
560
|
*/
|
|
556
|
-
|
|
561
|
+
id: string;
|
|
557
562
|
};
|
|
558
563
|
|
|
559
564
|
/**
|
|
560
|
-
* The
|
|
565
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
561
566
|
*/
|
|
562
|
-
export
|
|
567
|
+
export const ChoicesType = {
|
|
568
|
+
Function: "function",
|
|
569
|
+
} as const;
|
|
570
|
+
/**
|
|
571
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
572
|
+
*/
|
|
573
|
+
export type ChoicesType = ClosedEnum<typeof ChoicesType>;
|
|
574
|
+
|
|
575
|
+
export type ChoicesFunction = {
|
|
563
576
|
/**
|
|
564
|
-
*
|
|
577
|
+
* The name of the function to call.
|
|
565
578
|
*/
|
|
566
|
-
|
|
579
|
+
name?: string | undefined;
|
|
567
580
|
/**
|
|
568
|
-
*
|
|
581
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
569
582
|
*/
|
|
570
|
-
|
|
571
|
-
|
|
583
|
+
arguments?: string | undefined;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
export type ChoicesToolCalls = {
|
|
572
587
|
/**
|
|
573
|
-
*
|
|
588
|
+
* The ID of the tool call.
|
|
574
589
|
*/
|
|
575
|
-
|
|
590
|
+
id: string;
|
|
591
|
+
/**
|
|
592
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
593
|
+
*/
|
|
594
|
+
type: ChoicesType;
|
|
595
|
+
function: ChoicesFunction;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
export type ChoicesAssistantMessage = {
|
|
599
|
+
/**
|
|
600
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
601
|
+
*/
|
|
602
|
+
content?:
|
|
603
|
+
| string
|
|
576
604
|
| Array<
|
|
577
|
-
|
|
|
578
|
-
|
|
|
579
|
-
| DeploymentCreateMetricMessages3
|
|
580
|
-
| DeploymentCreateMetricMessages5
|
|
581
|
-
| DeploymentCreateMetricMessages4
|
|
605
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
606
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
582
607
|
>
|
|
583
608
|
| undefined;
|
|
584
609
|
/**
|
|
585
|
-
*
|
|
610
|
+
* The refusal message by the assistant.
|
|
586
611
|
*/
|
|
587
|
-
|
|
612
|
+
refusal?: string | null | undefined;
|
|
588
613
|
/**
|
|
589
|
-
*
|
|
614
|
+
* The role of the messages author, in this case `assistant`.
|
|
590
615
|
*/
|
|
591
|
-
|
|
616
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole;
|
|
617
|
+
/**
|
|
618
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
619
|
+
*/
|
|
620
|
+
name?: string | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* Data about a previous audio response from the model.
|
|
623
|
+
*/
|
|
624
|
+
audio?: ChoicesAudio | null | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* The tool calls generated by the model, such as function calls.
|
|
627
|
+
*/
|
|
628
|
+
toolCalls?: Array<ChoicesToolCalls> | undefined;
|
|
592
629
|
};
|
|
593
630
|
|
|
594
|
-
|
|
631
|
+
/**
|
|
632
|
+
* The role of the messages author, in this case `user`.
|
|
633
|
+
*/
|
|
634
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole = {
|
|
635
|
+
User: "user",
|
|
636
|
+
} as const;
|
|
637
|
+
/**
|
|
638
|
+
* The role of the messages author, in this case `user`.
|
|
639
|
+
*/
|
|
640
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRole = ClosedEnum<
|
|
641
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole
|
|
642
|
+
>;
|
|
643
|
+
|
|
644
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType =
|
|
645
|
+
{
|
|
646
|
+
InputAudio: "input_audio",
|
|
647
|
+
} as const;
|
|
648
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType =
|
|
649
|
+
ClosedEnum<
|
|
650
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
651
|
+
>;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
655
|
+
*/
|
|
656
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat = {
|
|
657
|
+
Mp3: "mp3",
|
|
658
|
+
Wav: "wav",
|
|
659
|
+
} as const;
|
|
660
|
+
/**
|
|
661
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
662
|
+
*/
|
|
663
|
+
export type DeploymentCreateMetric2DeploymentsMetricsFormat = ClosedEnum<
|
|
664
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsFormat
|
|
665
|
+
>;
|
|
666
|
+
|
|
667
|
+
export type DeploymentCreateMetric2DeploymentsMetricsInputAudio = {
|
|
595
668
|
/**
|
|
596
|
-
*
|
|
669
|
+
* Base64 encoded audio data.
|
|
597
670
|
*/
|
|
598
|
-
|
|
671
|
+
data: string;
|
|
599
672
|
/**
|
|
600
|
-
* The
|
|
673
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
601
674
|
*/
|
|
602
|
-
|
|
675
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat;
|
|
603
676
|
};
|
|
604
677
|
|
|
678
|
+
export type DeploymentCreateMetric2DeploymentsMetrics3 = {
|
|
679
|
+
type:
|
|
680
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType;
|
|
681
|
+
inputAudio: DeploymentCreateMetric2DeploymentsMetricsInputAudio;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
685
|
+
{
|
|
686
|
+
ImageUrl: "image_url",
|
|
687
|
+
} as const;
|
|
688
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
689
|
+
ClosedEnum<
|
|
690
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
691
|
+
>;
|
|
692
|
+
|
|
605
693
|
/**
|
|
606
|
-
*
|
|
694
|
+
* Specifies the detail level of the image.
|
|
607
695
|
*/
|
|
608
|
-
export
|
|
696
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail = {
|
|
697
|
+
Low: "low",
|
|
698
|
+
High: "high",
|
|
699
|
+
Auto: "auto",
|
|
700
|
+
} as const;
|
|
701
|
+
/**
|
|
702
|
+
* Specifies the detail level of the image.
|
|
703
|
+
*/
|
|
704
|
+
export type DeploymentCreateMetric2DeploymentsMetricsDetail = ClosedEnum<
|
|
705
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsDetail
|
|
706
|
+
>;
|
|
707
|
+
|
|
708
|
+
export type DeploymentCreateMetric2DeploymentsMetricsImageUrl = {
|
|
609
709
|
/**
|
|
610
|
-
*
|
|
710
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
611
711
|
*/
|
|
612
|
-
|
|
712
|
+
url: string;
|
|
713
|
+
/**
|
|
714
|
+
* Specifies the detail level of the image.
|
|
715
|
+
*/
|
|
716
|
+
detail?: DeploymentCreateMetric2DeploymentsMetricsDetail | undefined;
|
|
613
717
|
};
|
|
614
718
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
completion_tokens: z.number(),
|
|
620
|
-
total_tokens: z.number().optional(),
|
|
621
|
-
}).transform((v) => {
|
|
622
|
-
return remap$(v, {
|
|
623
|
-
"prompt_tokens": "promptTokens",
|
|
624
|
-
"completion_tokens": "completionTokens",
|
|
625
|
-
"total_tokens": "totalTokens",
|
|
626
|
-
});
|
|
627
|
-
});
|
|
719
|
+
export type DeploymentCreateMetric2DeploymentsMetrics2 = {
|
|
720
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type;
|
|
721
|
+
imageUrl: DeploymentCreateMetric2DeploymentsMetricsImageUrl;
|
|
722
|
+
};
|
|
628
723
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
724
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType =
|
|
725
|
+
{
|
|
726
|
+
Text: "text",
|
|
727
|
+
} as const;
|
|
728
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType =
|
|
729
|
+
ClosedEnum<
|
|
730
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
731
|
+
>;
|
|
732
|
+
|
|
733
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1 = {
|
|
734
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType;
|
|
735
|
+
text: string;
|
|
634
736
|
};
|
|
635
737
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
Usage
|
|
641
|
-
> = z.object({
|
|
642
|
-
promptTokens: z.number(),
|
|
643
|
-
completionTokens: z.number(),
|
|
644
|
-
totalTokens: z.number().optional(),
|
|
645
|
-
}).transform((v) => {
|
|
646
|
-
return remap$(v, {
|
|
647
|
-
promptTokens: "prompt_tokens",
|
|
648
|
-
completionTokens: "completion_tokens",
|
|
649
|
-
totalTokens: "total_tokens",
|
|
650
|
-
});
|
|
651
|
-
});
|
|
738
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2 =
|
|
739
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
740
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
741
|
+
| DeploymentCreateMetric2DeploymentsMetrics3;
|
|
652
742
|
|
|
653
743
|
/**
|
|
654
|
-
*
|
|
655
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
744
|
+
* The contents of the user message.
|
|
656
745
|
*/
|
|
657
|
-
export
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
746
|
+
export type ChoicesContent =
|
|
747
|
+
| string
|
|
748
|
+
| Array<
|
|
749
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
750
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
751
|
+
| DeploymentCreateMetric2DeploymentsMetrics3
|
|
752
|
+
>;
|
|
753
|
+
|
|
754
|
+
export type ChoicesUserMessage = {
|
|
755
|
+
/**
|
|
756
|
+
* The role of the messages author, in this case `user`.
|
|
757
|
+
*/
|
|
758
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole;
|
|
759
|
+
/**
|
|
760
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
761
|
+
*/
|
|
762
|
+
name?: string | undefined;
|
|
763
|
+
/**
|
|
764
|
+
* The contents of the user message.
|
|
765
|
+
*/
|
|
766
|
+
content:
|
|
767
|
+
| string
|
|
768
|
+
| Array<
|
|
769
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
770
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
771
|
+
| DeploymentCreateMetric2DeploymentsMetrics3
|
|
772
|
+
>;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* The role of the messages author, in this case `system`.
|
|
777
|
+
*/
|
|
778
|
+
export const DeploymentCreateMetricChoicesRole = {
|
|
779
|
+
System: "system",
|
|
780
|
+
} as const;
|
|
781
|
+
/**
|
|
782
|
+
* The role of the messages author, in this case `system`.
|
|
783
|
+
*/
|
|
784
|
+
export type DeploymentCreateMetricChoicesRole = ClosedEnum<
|
|
785
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
786
|
+
>;
|
|
787
|
+
|
|
788
|
+
export type ChoicesSystemMessage = {
|
|
789
|
+
/**
|
|
790
|
+
* The role of the messages author, in this case `system`.
|
|
791
|
+
*/
|
|
792
|
+
role: DeploymentCreateMetricChoicesRole;
|
|
793
|
+
/**
|
|
794
|
+
* The contents of the system message.
|
|
795
|
+
*/
|
|
796
|
+
content: string;
|
|
797
|
+
/**
|
|
798
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
799
|
+
*/
|
|
800
|
+
name?: string | undefined;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The role of the messages author, in this case `developer`.
|
|
805
|
+
*/
|
|
806
|
+
export const ChoicesRole = {
|
|
807
|
+
Developer: "developer",
|
|
808
|
+
} as const;
|
|
809
|
+
/**
|
|
810
|
+
* The role of the messages author, in this case `developer`.
|
|
811
|
+
*/
|
|
812
|
+
export type ChoicesRole = ClosedEnum<typeof ChoicesRole>;
|
|
813
|
+
|
|
814
|
+
export type ChoicesDeveloperMessage = {
|
|
815
|
+
/**
|
|
816
|
+
* The role of the messages author, in this case `developer`.
|
|
817
|
+
*/
|
|
818
|
+
role: ChoicesRole;
|
|
819
|
+
/**
|
|
820
|
+
* The contents of the developer message.
|
|
821
|
+
*/
|
|
822
|
+
content: string;
|
|
823
|
+
/**
|
|
824
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
825
|
+
*/
|
|
826
|
+
name?: string | undefined;
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
export type Choices =
|
|
830
|
+
| ChoicesDeveloperMessage
|
|
831
|
+
| ChoicesSystemMessage
|
|
832
|
+
| ChoicesUserMessage
|
|
833
|
+
| ChoicesToolMessage
|
|
834
|
+
| ChoicesAssistantMessage;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Feedback from the user on the completion
|
|
838
|
+
*/
|
|
839
|
+
export type Feedback = {
|
|
840
|
+
/**
|
|
841
|
+
* The feedback score. This allow you to come with specific logic on what a `score` number means
|
|
842
|
+
*/
|
|
843
|
+
score: number;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* The deployment request payload
|
|
848
|
+
*/
|
|
849
|
+
export type DeploymentCreateMetricRequestBody = {
|
|
850
|
+
/**
|
|
851
|
+
* Your own custom key-value pairs can be attached to the logs. This is useful for storing additional information related to your interactions with the LLM providers or specifics within your application.
|
|
852
|
+
*/
|
|
853
|
+
metadata?: { [k: string]: any } | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* Usage statistics to add to the deployment
|
|
856
|
+
*/
|
|
857
|
+
usage?: Usage | undefined;
|
|
858
|
+
performance?: Performance | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* A list of messages sent to the model.
|
|
861
|
+
*/
|
|
862
|
+
messages?:
|
|
863
|
+
| Array<
|
|
864
|
+
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
865
|
+
| DeploymentCreateMetricMessagesSystemMessage
|
|
866
|
+
| DeploymentCreateMetricMessagesUserMessage
|
|
867
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
868
|
+
| DeploymentCreateMetricMessagesAssistantMessage
|
|
869
|
+
>
|
|
870
|
+
| undefined;
|
|
871
|
+
/**
|
|
872
|
+
* A list of completion choices. If you are using a `completion` model then you must provide the `completion content` with the chat completion format
|
|
873
|
+
*/
|
|
874
|
+
choices?:
|
|
875
|
+
| Array<
|
|
876
|
+
| ChoicesDeveloperMessage
|
|
877
|
+
| ChoicesSystemMessage
|
|
878
|
+
| ChoicesUserMessage
|
|
879
|
+
| ChoicesToolMessage
|
|
880
|
+
| ChoicesAssistantMessage
|
|
881
|
+
>
|
|
882
|
+
| undefined;
|
|
883
|
+
/**
|
|
884
|
+
* Feedback from the user on the completion
|
|
885
|
+
*/
|
|
886
|
+
feedback?: Feedback | undefined;
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
export type DeploymentCreateMetricRequest = {
|
|
890
|
+
/**
|
|
891
|
+
* Deployment ID
|
|
892
|
+
*/
|
|
893
|
+
id: string;
|
|
894
|
+
/**
|
|
895
|
+
* The deployment request payload
|
|
896
|
+
*/
|
|
897
|
+
requestBody: DeploymentCreateMetricRequestBody;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Successful operation
|
|
902
|
+
*/
|
|
903
|
+
export type DeploymentCreateMetricResponseBody = {
|
|
904
|
+
/**
|
|
905
|
+
* Whether the request was successful
|
|
906
|
+
*/
|
|
907
|
+
success: boolean;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
/** @internal */
|
|
911
|
+
export const Usage$inboundSchema: z.ZodType<Usage, z.ZodTypeDef, unknown> = z
|
|
912
|
+
.object({
|
|
913
|
+
prompt_tokens: z.number(),
|
|
914
|
+
completion_tokens: z.number(),
|
|
915
|
+
total_tokens: z.number().optional(),
|
|
916
|
+
}).transform((v) => {
|
|
917
|
+
return remap$(v, {
|
|
918
|
+
"prompt_tokens": "promptTokens",
|
|
919
|
+
"completion_tokens": "completionTokens",
|
|
920
|
+
"total_tokens": "totalTokens",
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
/** @internal */
|
|
925
|
+
export type Usage$Outbound = {
|
|
926
|
+
prompt_tokens: number;
|
|
927
|
+
completion_tokens: number;
|
|
928
|
+
total_tokens?: number | undefined;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
/** @internal */
|
|
932
|
+
export const Usage$outboundSchema: z.ZodType<
|
|
933
|
+
Usage$Outbound,
|
|
934
|
+
z.ZodTypeDef,
|
|
935
|
+
Usage
|
|
936
|
+
> = z.object({
|
|
937
|
+
promptTokens: z.number(),
|
|
938
|
+
completionTokens: z.number(),
|
|
939
|
+
totalTokens: z.number().optional(),
|
|
940
|
+
}).transform((v) => {
|
|
941
|
+
return remap$(v, {
|
|
942
|
+
promptTokens: "prompt_tokens",
|
|
943
|
+
completionTokens: "completion_tokens",
|
|
944
|
+
totalTokens: "total_tokens",
|
|
945
|
+
});
|
|
946
|
+
});
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* @internal
|
|
950
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
951
|
+
*/
|
|
952
|
+
export namespace Usage$ {
|
|
953
|
+
/** @deprecated use `Usage$inboundSchema` instead. */
|
|
954
|
+
export const inboundSchema = Usage$inboundSchema;
|
|
955
|
+
/** @deprecated use `Usage$outboundSchema` instead. */
|
|
956
|
+
export const outboundSchema = Usage$outboundSchema;
|
|
957
|
+
/** @deprecated use `Usage$Outbound` instead. */
|
|
958
|
+
export type Outbound = Usage$Outbound;
|
|
664
959
|
}
|
|
665
960
|
|
|
666
961
|
export function usageToJSON(usage: Usage): string {
|
|
@@ -829,8 +1124,8 @@ export function deploymentCreateMetricMessagesDeploymentsMetricsRequestContentFr
|
|
|
829
1124
|
}
|
|
830
1125
|
|
|
831
1126
|
/** @internal */
|
|
832
|
-
export const
|
|
833
|
-
|
|
1127
|
+
export const DeploymentCreateMetricMessagesToolMessage$inboundSchema: z.ZodType<
|
|
1128
|
+
DeploymentCreateMetricMessagesToolMessage,
|
|
834
1129
|
z.ZodTypeDef,
|
|
835
1130
|
unknown
|
|
836
1131
|
> = z.object({
|
|
@@ -845,58 +1140,68 @@ export const DeploymentCreateMetricMessages5$inboundSchema: z.ZodType<
|
|
|
845
1140
|
});
|
|
846
1141
|
|
|
847
1142
|
/** @internal */
|
|
848
|
-
export type
|
|
1143
|
+
export type DeploymentCreateMetricMessagesToolMessage$Outbound = {
|
|
849
1144
|
role: string;
|
|
850
1145
|
content: string | Array<string>;
|
|
851
1146
|
tool_call_id: string;
|
|
852
1147
|
};
|
|
853
1148
|
|
|
854
1149
|
/** @internal */
|
|
855
|
-
export const
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1150
|
+
export const DeploymentCreateMetricMessagesToolMessage$outboundSchema:
|
|
1151
|
+
z.ZodType<
|
|
1152
|
+
DeploymentCreateMetricMessagesToolMessage$Outbound,
|
|
1153
|
+
z.ZodTypeDef,
|
|
1154
|
+
DeploymentCreateMetricMessagesToolMessage
|
|
1155
|
+
> = z.object({
|
|
1156
|
+
role:
|
|
1157
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema,
|
|
1158
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
1159
|
+
toolCallId: z.string(),
|
|
1160
|
+
}).transform((v) => {
|
|
1161
|
+
return remap$(v, {
|
|
1162
|
+
toolCallId: "tool_call_id",
|
|
1163
|
+
});
|
|
867
1164
|
});
|
|
868
|
-
});
|
|
869
1165
|
|
|
870
1166
|
/**
|
|
871
1167
|
* @internal
|
|
872
1168
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
873
1169
|
*/
|
|
874
|
-
export namespace
|
|
875
|
-
/** @deprecated use `
|
|
876
|
-
export const inboundSchema =
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1170
|
+
export namespace DeploymentCreateMetricMessagesToolMessage$ {
|
|
1171
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolMessage$inboundSchema` instead. */
|
|
1172
|
+
export const inboundSchema =
|
|
1173
|
+
DeploymentCreateMetricMessagesToolMessage$inboundSchema;
|
|
1174
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolMessage$outboundSchema` instead. */
|
|
1175
|
+
export const outboundSchema =
|
|
1176
|
+
DeploymentCreateMetricMessagesToolMessage$outboundSchema;
|
|
1177
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolMessage$Outbound` instead. */
|
|
1178
|
+
export type Outbound = DeploymentCreateMetricMessagesToolMessage$Outbound;
|
|
881
1179
|
}
|
|
882
1180
|
|
|
883
|
-
export function
|
|
884
|
-
|
|
1181
|
+
export function deploymentCreateMetricMessagesToolMessageToJSON(
|
|
1182
|
+
deploymentCreateMetricMessagesToolMessage:
|
|
1183
|
+
DeploymentCreateMetricMessagesToolMessage,
|
|
885
1184
|
): string {
|
|
886
1185
|
return JSON.stringify(
|
|
887
|
-
|
|
888
|
-
|
|
1186
|
+
DeploymentCreateMetricMessagesToolMessage$outboundSchema.parse(
|
|
1187
|
+
deploymentCreateMetricMessagesToolMessage,
|
|
889
1188
|
),
|
|
890
1189
|
);
|
|
891
1190
|
}
|
|
892
1191
|
|
|
893
|
-
export function
|
|
1192
|
+
export function deploymentCreateMetricMessagesToolMessageFromJSON(
|
|
894
1193
|
jsonString: string,
|
|
895
|
-
): SafeParseResult<
|
|
1194
|
+
): SafeParseResult<
|
|
1195
|
+
DeploymentCreateMetricMessagesToolMessage,
|
|
1196
|
+
SDKValidationError
|
|
1197
|
+
> {
|
|
896
1198
|
return safeParse(
|
|
897
1199
|
jsonString,
|
|
898
|
-
(x) =>
|
|
899
|
-
|
|
1200
|
+
(x) =>
|
|
1201
|
+
DeploymentCreateMetricMessagesToolMessage$inboundSchema.parse(
|
|
1202
|
+
JSON.parse(x),
|
|
1203
|
+
),
|
|
1204
|
+
`Failed to parse 'DeploymentCreateMetricMessagesToolMessage' from JSON`,
|
|
900
1205
|
);
|
|
901
1206
|
}
|
|
902
1207
|
|
|
@@ -929,26 +1234,28 @@ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMess
|
|
|
929
1234
|
}
|
|
930
1235
|
|
|
931
1236
|
/** @internal */
|
|
932
|
-
export const
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
1237
|
+
export const DeploymentCreateMetric2RefusalContentPart$inboundSchema: z.ZodType<
|
|
1238
|
+
DeploymentCreateMetric2RefusalContentPart,
|
|
1239
|
+
z.ZodTypeDef,
|
|
1240
|
+
unknown
|
|
1241
|
+
> = z.object({
|
|
1242
|
+
type:
|
|
1243
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema,
|
|
1244
|
+
refusal: z.string(),
|
|
1245
|
+
});
|
|
939
1246
|
|
|
940
1247
|
/** @internal */
|
|
941
|
-
export type
|
|
1248
|
+
export type DeploymentCreateMetric2RefusalContentPart$Outbound = {
|
|
942
1249
|
type: string;
|
|
943
1250
|
refusal: string;
|
|
944
1251
|
};
|
|
945
1252
|
|
|
946
1253
|
/** @internal */
|
|
947
|
-
export const
|
|
1254
|
+
export const DeploymentCreateMetric2RefusalContentPart$outboundSchema:
|
|
948
1255
|
z.ZodType<
|
|
949
|
-
|
|
1256
|
+
DeploymentCreateMetric2RefusalContentPart$Outbound,
|
|
950
1257
|
z.ZodTypeDef,
|
|
951
|
-
|
|
1258
|
+
DeploymentCreateMetric2RefusalContentPart
|
|
952
1259
|
> = z.object({
|
|
953
1260
|
type:
|
|
954
1261
|
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema,
|
|
@@ -959,41 +1266,41 @@ export const DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema:
|
|
|
959
1266
|
* @internal
|
|
960
1267
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
961
1268
|
*/
|
|
962
|
-
export namespace
|
|
963
|
-
/** @deprecated use `
|
|
1269
|
+
export namespace DeploymentCreateMetric2RefusalContentPart$ {
|
|
1270
|
+
/** @deprecated use `DeploymentCreateMetric2RefusalContentPart$inboundSchema` instead. */
|
|
964
1271
|
export const inboundSchema =
|
|
965
|
-
|
|
966
|
-
/** @deprecated use `
|
|
1272
|
+
DeploymentCreateMetric2RefusalContentPart$inboundSchema;
|
|
1273
|
+
/** @deprecated use `DeploymentCreateMetric2RefusalContentPart$outboundSchema` instead. */
|
|
967
1274
|
export const outboundSchema =
|
|
968
|
-
|
|
969
|
-
/** @deprecated use `
|
|
970
|
-
export type Outbound =
|
|
1275
|
+
DeploymentCreateMetric2RefusalContentPart$outboundSchema;
|
|
1276
|
+
/** @deprecated use `DeploymentCreateMetric2RefusalContentPart$Outbound` instead. */
|
|
1277
|
+
export type Outbound = DeploymentCreateMetric2RefusalContentPart$Outbound;
|
|
971
1278
|
}
|
|
972
1279
|
|
|
973
|
-
export function
|
|
974
|
-
|
|
975
|
-
|
|
1280
|
+
export function deploymentCreateMetric2RefusalContentPartToJSON(
|
|
1281
|
+
deploymentCreateMetric2RefusalContentPart:
|
|
1282
|
+
DeploymentCreateMetric2RefusalContentPart,
|
|
976
1283
|
): string {
|
|
977
1284
|
return JSON.stringify(
|
|
978
|
-
|
|
979
|
-
|
|
1285
|
+
DeploymentCreateMetric2RefusalContentPart$outboundSchema.parse(
|
|
1286
|
+
deploymentCreateMetric2RefusalContentPart,
|
|
980
1287
|
),
|
|
981
1288
|
);
|
|
982
1289
|
}
|
|
983
1290
|
|
|
984
|
-
export function
|
|
1291
|
+
export function deploymentCreateMetric2RefusalContentPartFromJSON(
|
|
985
1292
|
jsonString: string,
|
|
986
1293
|
): SafeParseResult<
|
|
987
|
-
|
|
1294
|
+
DeploymentCreateMetric2RefusalContentPart,
|
|
988
1295
|
SDKValidationError
|
|
989
1296
|
> {
|
|
990
1297
|
return safeParse(
|
|
991
1298
|
jsonString,
|
|
992
1299
|
(x) =>
|
|
993
|
-
|
|
1300
|
+
DeploymentCreateMetric2RefusalContentPart$inboundSchema.parse(
|
|
994
1301
|
JSON.parse(x),
|
|
995
1302
|
),
|
|
996
|
-
`Failed to parse '
|
|
1303
|
+
`Failed to parse 'DeploymentCreateMetric2RefusalContentPart' from JSON`,
|
|
997
1304
|
);
|
|
998
1305
|
}
|
|
999
1306
|
|
|
@@ -1026,71 +1333,67 @@ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
|
|
|
1026
1333
|
}
|
|
1027
1334
|
|
|
1028
1335
|
/** @internal */
|
|
1029
|
-
export const
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1336
|
+
export const DeploymentCreateMetric2TextContentPart$inboundSchema: z.ZodType<
|
|
1337
|
+
DeploymentCreateMetric2TextContentPart,
|
|
1338
|
+
z.ZodTypeDef,
|
|
1339
|
+
unknown
|
|
1340
|
+
> = z.object({
|
|
1341
|
+
type:
|
|
1342
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema,
|
|
1343
|
+
text: z.string(),
|
|
1344
|
+
});
|
|
1036
1345
|
|
|
1037
1346
|
/** @internal */
|
|
1038
|
-
export type
|
|
1347
|
+
export type DeploymentCreateMetric2TextContentPart$Outbound = {
|
|
1039
1348
|
type: string;
|
|
1040
1349
|
text: string;
|
|
1041
1350
|
};
|
|
1042
1351
|
|
|
1043
1352
|
/** @internal */
|
|
1044
|
-
export const
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1353
|
+
export const DeploymentCreateMetric2TextContentPart$outboundSchema: z.ZodType<
|
|
1354
|
+
DeploymentCreateMetric2TextContentPart$Outbound,
|
|
1355
|
+
z.ZodTypeDef,
|
|
1356
|
+
DeploymentCreateMetric2TextContentPart
|
|
1357
|
+
> = z.object({
|
|
1358
|
+
type:
|
|
1359
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema,
|
|
1360
|
+
text: z.string(),
|
|
1361
|
+
});
|
|
1362
|
+
|
|
1055
1363
|
/**
|
|
1056
1364
|
* @internal
|
|
1057
1365
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1058
1366
|
*/
|
|
1059
|
-
export namespace
|
|
1060
|
-
/** @deprecated use `
|
|
1367
|
+
export namespace DeploymentCreateMetric2TextContentPart$ {
|
|
1368
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$inboundSchema` instead. */
|
|
1061
1369
|
export const inboundSchema =
|
|
1062
|
-
|
|
1063
|
-
/** @deprecated use `
|
|
1370
|
+
DeploymentCreateMetric2TextContentPart$inboundSchema;
|
|
1371
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$outboundSchema` instead. */
|
|
1064
1372
|
export const outboundSchema =
|
|
1065
|
-
|
|
1066
|
-
/** @deprecated use `
|
|
1067
|
-
export type Outbound =
|
|
1373
|
+
DeploymentCreateMetric2TextContentPart$outboundSchema;
|
|
1374
|
+
/** @deprecated use `DeploymentCreateMetric2TextContentPart$Outbound` instead. */
|
|
1375
|
+
export type Outbound = DeploymentCreateMetric2TextContentPart$Outbound;
|
|
1068
1376
|
}
|
|
1069
1377
|
|
|
1070
|
-
export function
|
|
1071
|
-
|
|
1072
|
-
|
|
1378
|
+
export function deploymentCreateMetric2TextContentPartToJSON(
|
|
1379
|
+
deploymentCreateMetric2TextContentPart:
|
|
1380
|
+
DeploymentCreateMetric2TextContentPart,
|
|
1073
1381
|
): string {
|
|
1074
1382
|
return JSON.stringify(
|
|
1075
|
-
|
|
1076
|
-
|
|
1383
|
+
DeploymentCreateMetric2TextContentPart$outboundSchema.parse(
|
|
1384
|
+
deploymentCreateMetric2TextContentPart,
|
|
1077
1385
|
),
|
|
1078
1386
|
);
|
|
1079
1387
|
}
|
|
1080
1388
|
|
|
1081
|
-
export function
|
|
1389
|
+
export function deploymentCreateMetric2TextContentPartFromJSON(
|
|
1082
1390
|
jsonString: string,
|
|
1083
|
-
): SafeParseResult<
|
|
1084
|
-
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
1085
|
-
SDKValidationError
|
|
1086
|
-
> {
|
|
1391
|
+
): SafeParseResult<DeploymentCreateMetric2TextContentPart, SDKValidationError> {
|
|
1087
1392
|
return safeParse(
|
|
1088
1393
|
jsonString,
|
|
1089
1394
|
(x) =>
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
),
|
|
1093
|
-
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`,
|
|
1395
|
+
DeploymentCreateMetric2TextContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
1396
|
+
`Failed to parse 'DeploymentCreateMetric2TextContentPart' from JSON`,
|
|
1094
1397
|
);
|
|
1095
1398
|
}
|
|
1096
1399
|
|
|
@@ -1101,14 +1404,14 @@ export const DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema:
|
|
|
1101
1404
|
z.ZodTypeDef,
|
|
1102
1405
|
unknown
|
|
1103
1406
|
> = z.union([
|
|
1104
|
-
z.lazy(() =>
|
|
1105
|
-
z.lazy(() =>
|
|
1407
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
|
|
1408
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
|
|
1106
1409
|
]);
|
|
1107
1410
|
|
|
1108
1411
|
/** @internal */
|
|
1109
1412
|
export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound =
|
|
1110
|
-
|
|
|
1111
|
-
|
|
|
1413
|
+
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
1414
|
+
| DeploymentCreateMetric2RefusalContentPart$Outbound;
|
|
1112
1415
|
|
|
1113
1416
|
/** @internal */
|
|
1114
1417
|
export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
|
|
@@ -1117,8 +1420,8 @@ export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
|
|
|
1117
1420
|
z.ZodTypeDef,
|
|
1118
1421
|
DeploymentCreateMetricContentDeploymentsMetrics2
|
|
1119
1422
|
> = z.union([
|
|
1120
|
-
z.lazy(() =>
|
|
1121
|
-
z.lazy(() =>
|
|
1423
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
|
|
1424
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
|
|
1122
1425
|
]);
|
|
1123
1426
|
|
|
1124
1427
|
/**
|
|
@@ -1173,8 +1476,8 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSche
|
|
|
1173
1476
|
> = z.union([
|
|
1174
1477
|
z.string(),
|
|
1175
1478
|
z.array(z.union([
|
|
1176
|
-
z.lazy(() =>
|
|
1177
|
-
z.lazy(() =>
|
|
1479
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
|
|
1480
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
|
|
1178
1481
|
])),
|
|
1179
1482
|
]);
|
|
1180
1483
|
|
|
@@ -1182,8 +1485,8 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSche
|
|
|
1182
1485
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound =
|
|
1183
1486
|
| string
|
|
1184
1487
|
| Array<
|
|
1185
|
-
|
|
|
1186
|
-
|
|
|
1488
|
+
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
1489
|
+
| DeploymentCreateMetric2RefusalContentPart$Outbound
|
|
1187
1490
|
>;
|
|
1188
1491
|
|
|
1189
1492
|
/** @internal */
|
|
@@ -1195,8 +1498,8 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSch
|
|
|
1195
1498
|
> = z.union([
|
|
1196
1499
|
z.string(),
|
|
1197
1500
|
z.array(z.union([
|
|
1198
|
-
z.lazy(() =>
|
|
1199
|
-
z.lazy(() =>
|
|
1501
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
|
|
1502
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$outboundSchema),
|
|
1200
1503
|
])),
|
|
1201
1504
|
]);
|
|
1202
1505
|
|
|
@@ -1485,41 +1788,42 @@ export function deploymentCreateMetricMessagesToolCallsFromJSON(
|
|
|
1485
1788
|
}
|
|
1486
1789
|
|
|
1487
1790
|
/** @internal */
|
|
1488
|
-
export const
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
z.
|
|
1495
|
-
|
|
1496
|
-
z.
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
z.
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
z.
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1791
|
+
export const DeploymentCreateMetricMessagesAssistantMessage$inboundSchema:
|
|
1792
|
+
z.ZodType<
|
|
1793
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1794
|
+
z.ZodTypeDef,
|
|
1795
|
+
unknown
|
|
1796
|
+
> = z.object({
|
|
1797
|
+
content: z.union([
|
|
1798
|
+
z.string(),
|
|
1799
|
+
z.array(z.union([
|
|
1800
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
|
|
1801
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
|
|
1802
|
+
])),
|
|
1803
|
+
]).optional(),
|
|
1804
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1805
|
+
role:
|
|
1806
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
1807
|
+
name: z.string().optional(),
|
|
1808
|
+
audio: z.nullable(
|
|
1809
|
+
z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
|
|
1810
|
+
).optional(),
|
|
1811
|
+
tool_calls: z.array(
|
|
1812
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
|
|
1813
|
+
).optional(),
|
|
1814
|
+
}).transform((v) => {
|
|
1815
|
+
return remap$(v, {
|
|
1816
|
+
"tool_calls": "toolCalls",
|
|
1817
|
+
});
|
|
1513
1818
|
});
|
|
1514
|
-
});
|
|
1515
1819
|
|
|
1516
1820
|
/** @internal */
|
|
1517
|
-
export type
|
|
1821
|
+
export type DeploymentCreateMetricMessagesAssistantMessage$Outbound = {
|
|
1518
1822
|
content?:
|
|
1519
1823
|
| string
|
|
1520
1824
|
| Array<
|
|
1521
|
-
|
|
|
1522
|
-
|
|
|
1825
|
+
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
1826
|
+
| DeploymentCreateMetric2RefusalContentPart$Outbound
|
|
1523
1827
|
>
|
|
1524
1828
|
| undefined;
|
|
1525
1829
|
refusal?: string | null | undefined;
|
|
@@ -1532,64 +1836,77 @@ export type DeploymentCreateMetricMessages4$Outbound = {
|
|
|
1532
1836
|
};
|
|
1533
1837
|
|
|
1534
1838
|
/** @internal */
|
|
1535
|
-
export const
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
z.
|
|
1542
|
-
|
|
1543
|
-
z.
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1839
|
+
export const DeploymentCreateMetricMessagesAssistantMessage$outboundSchema:
|
|
1840
|
+
z.ZodType<
|
|
1841
|
+
DeploymentCreateMetricMessagesAssistantMessage$Outbound,
|
|
1842
|
+
z.ZodTypeDef,
|
|
1843
|
+
DeploymentCreateMetricMessagesAssistantMessage
|
|
1844
|
+
> = z.object({
|
|
1845
|
+
content: z.union([
|
|
1846
|
+
z.string(),
|
|
1847
|
+
z.array(z.union([
|
|
1848
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
|
|
1849
|
+
z.lazy(() =>
|
|
1850
|
+
DeploymentCreateMetric2RefusalContentPart$outboundSchema
|
|
1851
|
+
),
|
|
1852
|
+
])),
|
|
1853
|
+
]).optional(),
|
|
1854
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1855
|
+
role:
|
|
1856
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
1857
|
+
name: z.string().optional(),
|
|
1858
|
+
audio: z.nullable(
|
|
1859
|
+
z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
|
|
1860
|
+
).optional(),
|
|
1861
|
+
toolCalls: z.array(
|
|
1862
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
|
|
1863
|
+
).optional(),
|
|
1864
|
+
}).transform((v) => {
|
|
1865
|
+
return remap$(v, {
|
|
1866
|
+
toolCalls: "tool_calls",
|
|
1867
|
+
});
|
|
1560
1868
|
});
|
|
1561
|
-
});
|
|
1562
1869
|
|
|
1563
1870
|
/**
|
|
1564
1871
|
* @internal
|
|
1565
1872
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1566
1873
|
*/
|
|
1567
|
-
export namespace
|
|
1568
|
-
/** @deprecated use `
|
|
1569
|
-
export const inboundSchema =
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1874
|
+
export namespace DeploymentCreateMetricMessagesAssistantMessage$ {
|
|
1875
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$inboundSchema` instead. */
|
|
1876
|
+
export const inboundSchema =
|
|
1877
|
+
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema;
|
|
1878
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$outboundSchema` instead. */
|
|
1879
|
+
export const outboundSchema =
|
|
1880
|
+
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema;
|
|
1881
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$Outbound` instead. */
|
|
1882
|
+
export type Outbound =
|
|
1883
|
+
DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
1574
1884
|
}
|
|
1575
1885
|
|
|
1576
|
-
export function
|
|
1577
|
-
|
|
1886
|
+
export function deploymentCreateMetricMessagesAssistantMessageToJSON(
|
|
1887
|
+
deploymentCreateMetricMessagesAssistantMessage:
|
|
1888
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1578
1889
|
): string {
|
|
1579
1890
|
return JSON.stringify(
|
|
1580
|
-
|
|
1581
|
-
|
|
1891
|
+
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema.parse(
|
|
1892
|
+
deploymentCreateMetricMessagesAssistantMessage,
|
|
1582
1893
|
),
|
|
1583
1894
|
);
|
|
1584
1895
|
}
|
|
1585
1896
|
|
|
1586
|
-
export function
|
|
1897
|
+
export function deploymentCreateMetricMessagesAssistantMessageFromJSON(
|
|
1587
1898
|
jsonString: string,
|
|
1588
|
-
): SafeParseResult<
|
|
1899
|
+
): SafeParseResult<
|
|
1900
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1901
|
+
SDKValidationError
|
|
1902
|
+
> {
|
|
1589
1903
|
return safeParse(
|
|
1590
1904
|
jsonString,
|
|
1591
|
-
(x) =>
|
|
1592
|
-
|
|
1905
|
+
(x) =>
|
|
1906
|
+
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema.parse(
|
|
1907
|
+
JSON.parse(x),
|
|
1908
|
+
),
|
|
1909
|
+
`Failed to parse 'DeploymentCreateMetricMessagesAssistantMessage' from JSON`,
|
|
1593
1910
|
);
|
|
1594
1911
|
}
|
|
1595
1912
|
|
|
@@ -2168,8 +2485,8 @@ export function deploymentCreateMetricMessagesContentFromJSON(
|
|
|
2168
2485
|
}
|
|
2169
2486
|
|
|
2170
2487
|
/** @internal */
|
|
2171
|
-
export const
|
|
2172
|
-
|
|
2488
|
+
export const DeploymentCreateMetricMessagesUserMessage$inboundSchema: z.ZodType<
|
|
2489
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
2173
2490
|
z.ZodTypeDef,
|
|
2174
2491
|
unknown
|
|
2175
2492
|
> = z.object({
|
|
@@ -2187,7 +2504,7 @@ export const DeploymentCreateMetricMessages3$inboundSchema: z.ZodType<
|
|
|
2187
2504
|
});
|
|
2188
2505
|
|
|
2189
2506
|
/** @internal */
|
|
2190
|
-
export type
|
|
2507
|
+
export type DeploymentCreateMetricMessagesUserMessage$Outbound = {
|
|
2191
2508
|
role: string;
|
|
2192
2509
|
name?: string | undefined;
|
|
2193
2510
|
content:
|
|
@@ -2200,54 +2517,64 @@ export type DeploymentCreateMetricMessages3$Outbound = {
|
|
|
2200
2517
|
};
|
|
2201
2518
|
|
|
2202
2519
|
/** @internal */
|
|
2203
|
-
export const
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
z.
|
|
2213
|
-
|
|
2214
|
-
z.
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2520
|
+
export const DeploymentCreateMetricMessagesUserMessage$outboundSchema:
|
|
2521
|
+
z.ZodType<
|
|
2522
|
+
DeploymentCreateMetricMessagesUserMessage$Outbound,
|
|
2523
|
+
z.ZodTypeDef,
|
|
2524
|
+
DeploymentCreateMetricMessagesUserMessage
|
|
2525
|
+
> = z.object({
|
|
2526
|
+
role:
|
|
2527
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema,
|
|
2528
|
+
name: z.string().optional(),
|
|
2529
|
+
content: z.union([
|
|
2530
|
+
z.string(),
|
|
2531
|
+
z.array(z.union([
|
|
2532
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
2533
|
+
z.lazy(() => DeploymentCreateMetric22$outboundSchema),
|
|
2534
|
+
z.lazy(() => DeploymentCreateMetric23$outboundSchema),
|
|
2535
|
+
])),
|
|
2536
|
+
]),
|
|
2537
|
+
});
|
|
2220
2538
|
|
|
2221
2539
|
/**
|
|
2222
2540
|
* @internal
|
|
2223
2541
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2224
2542
|
*/
|
|
2225
|
-
export namespace
|
|
2226
|
-
/** @deprecated use `
|
|
2227
|
-
export const inboundSchema =
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2543
|
+
export namespace DeploymentCreateMetricMessagesUserMessage$ {
|
|
2544
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$inboundSchema` instead. */
|
|
2545
|
+
export const inboundSchema =
|
|
2546
|
+
DeploymentCreateMetricMessagesUserMessage$inboundSchema;
|
|
2547
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$outboundSchema` instead. */
|
|
2548
|
+
export const outboundSchema =
|
|
2549
|
+
DeploymentCreateMetricMessagesUserMessage$outboundSchema;
|
|
2550
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$Outbound` instead. */
|
|
2551
|
+
export type Outbound = DeploymentCreateMetricMessagesUserMessage$Outbound;
|
|
2232
2552
|
}
|
|
2233
2553
|
|
|
2234
|
-
export function
|
|
2235
|
-
|
|
2554
|
+
export function deploymentCreateMetricMessagesUserMessageToJSON(
|
|
2555
|
+
deploymentCreateMetricMessagesUserMessage:
|
|
2556
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
2236
2557
|
): string {
|
|
2237
2558
|
return JSON.stringify(
|
|
2238
|
-
|
|
2239
|
-
|
|
2559
|
+
DeploymentCreateMetricMessagesUserMessage$outboundSchema.parse(
|
|
2560
|
+
deploymentCreateMetricMessagesUserMessage,
|
|
2240
2561
|
),
|
|
2241
2562
|
);
|
|
2242
2563
|
}
|
|
2243
2564
|
|
|
2244
|
-
export function
|
|
2565
|
+
export function deploymentCreateMetricMessagesUserMessageFromJSON(
|
|
2245
2566
|
jsonString: string,
|
|
2246
|
-
): SafeParseResult<
|
|
2567
|
+
): SafeParseResult<
|
|
2568
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
2569
|
+
SDKValidationError
|
|
2570
|
+
> {
|
|
2247
2571
|
return safeParse(
|
|
2248
2572
|
jsonString,
|
|
2249
|
-
(x) =>
|
|
2250
|
-
|
|
2573
|
+
(x) =>
|
|
2574
|
+
DeploymentCreateMetricMessagesUserMessage$inboundSchema.parse(
|
|
2575
|
+
JSON.parse(x),
|
|
2576
|
+
),
|
|
2577
|
+
`Failed to parse 'DeploymentCreateMetricMessagesUserMessage' from JSON`,
|
|
2251
2578
|
);
|
|
2252
2579
|
}
|
|
2253
2580
|
|
|
@@ -2275,64 +2602,75 @@ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRole$ {
|
|
|
2275
2602
|
}
|
|
2276
2603
|
|
|
2277
2604
|
/** @internal */
|
|
2278
|
-
export const
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2605
|
+
export const DeploymentCreateMetricMessagesSystemMessage$inboundSchema:
|
|
2606
|
+
z.ZodType<
|
|
2607
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
2608
|
+
z.ZodTypeDef,
|
|
2609
|
+
unknown
|
|
2610
|
+
> = z.object({
|
|
2611
|
+
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
|
|
2612
|
+
content: z.string(),
|
|
2613
|
+
name: z.string().optional(),
|
|
2614
|
+
});
|
|
2287
2615
|
|
|
2288
2616
|
/** @internal */
|
|
2289
|
-
export type
|
|
2617
|
+
export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
|
|
2290
2618
|
role: string;
|
|
2291
2619
|
content: string;
|
|
2292
2620
|
name?: string | undefined;
|
|
2293
2621
|
};
|
|
2294
2622
|
|
|
2295
2623
|
/** @internal */
|
|
2296
|
-
export const
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2624
|
+
export const DeploymentCreateMetricMessagesSystemMessage$outboundSchema:
|
|
2625
|
+
z.ZodType<
|
|
2626
|
+
DeploymentCreateMetricMessagesSystemMessage$Outbound,
|
|
2627
|
+
z.ZodTypeDef,
|
|
2628
|
+
DeploymentCreateMetricMessagesSystemMessage
|
|
2629
|
+
> = z.object({
|
|
2630
|
+
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
|
|
2631
|
+
content: z.string(),
|
|
2632
|
+
name: z.string().optional(),
|
|
2633
|
+
});
|
|
2305
2634
|
|
|
2306
2635
|
/**
|
|
2307
2636
|
* @internal
|
|
2308
2637
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2309
2638
|
*/
|
|
2310
|
-
export namespace
|
|
2311
|
-
/** @deprecated use `
|
|
2312
|
-
export const inboundSchema =
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2639
|
+
export namespace DeploymentCreateMetricMessagesSystemMessage$ {
|
|
2640
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$inboundSchema` instead. */
|
|
2641
|
+
export const inboundSchema =
|
|
2642
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema;
|
|
2643
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$outboundSchema` instead. */
|
|
2644
|
+
export const outboundSchema =
|
|
2645
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema;
|
|
2646
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$Outbound` instead. */
|
|
2647
|
+
export type Outbound = DeploymentCreateMetricMessagesSystemMessage$Outbound;
|
|
2317
2648
|
}
|
|
2318
2649
|
|
|
2319
|
-
export function
|
|
2320
|
-
|
|
2650
|
+
export function deploymentCreateMetricMessagesSystemMessageToJSON(
|
|
2651
|
+
deploymentCreateMetricMessagesSystemMessage:
|
|
2652
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
2321
2653
|
): string {
|
|
2322
2654
|
return JSON.stringify(
|
|
2323
|
-
|
|
2324
|
-
|
|
2655
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
|
|
2656
|
+
deploymentCreateMetricMessagesSystemMessage,
|
|
2325
2657
|
),
|
|
2326
2658
|
);
|
|
2327
2659
|
}
|
|
2328
2660
|
|
|
2329
|
-
export function
|
|
2661
|
+
export function deploymentCreateMetricMessagesSystemMessageFromJSON(
|
|
2330
2662
|
jsonString: string,
|
|
2331
|
-
): SafeParseResult<
|
|
2663
|
+
): SafeParseResult<
|
|
2664
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
2665
|
+
SDKValidationError
|
|
2666
|
+
> {
|
|
2332
2667
|
return safeParse(
|
|
2333
2668
|
jsonString,
|
|
2334
|
-
(x) =>
|
|
2335
|
-
|
|
2669
|
+
(x) =>
|
|
2670
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema.parse(
|
|
2671
|
+
JSON.parse(x),
|
|
2672
|
+
),
|
|
2673
|
+
`Failed to parse 'DeploymentCreateMetricMessagesSystemMessage' from JSON`,
|
|
2336
2674
|
);
|
|
2337
2675
|
}
|
|
2338
2676
|
|
|
@@ -2359,64 +2697,76 @@ export namespace DeploymentCreateMetricMessagesRole$ {
|
|
|
2359
2697
|
}
|
|
2360
2698
|
|
|
2361
2699
|
/** @internal */
|
|
2362
|
-
export const
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2700
|
+
export const DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema:
|
|
2701
|
+
z.ZodType<
|
|
2702
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
2703
|
+
z.ZodTypeDef,
|
|
2704
|
+
unknown
|
|
2705
|
+
> = z.object({
|
|
2706
|
+
role: DeploymentCreateMetricMessagesRole$inboundSchema,
|
|
2707
|
+
content: z.string(),
|
|
2708
|
+
name: z.string().optional(),
|
|
2709
|
+
});
|
|
2371
2710
|
|
|
2372
2711
|
/** @internal */
|
|
2373
|
-
export type
|
|
2712
|
+
export type DeploymentCreateMetricMessagesDeveloperMessage$Outbound = {
|
|
2374
2713
|
role: string;
|
|
2375
2714
|
content: string;
|
|
2376
2715
|
name?: string | undefined;
|
|
2377
2716
|
};
|
|
2378
2717
|
|
|
2379
2718
|
/** @internal */
|
|
2380
|
-
export const
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2719
|
+
export const DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema:
|
|
2720
|
+
z.ZodType<
|
|
2721
|
+
DeploymentCreateMetricMessagesDeveloperMessage$Outbound,
|
|
2722
|
+
z.ZodTypeDef,
|
|
2723
|
+
DeploymentCreateMetricMessagesDeveloperMessage
|
|
2724
|
+
> = z.object({
|
|
2725
|
+
role: DeploymentCreateMetricMessagesRole$outboundSchema,
|
|
2726
|
+
content: z.string(),
|
|
2727
|
+
name: z.string().optional(),
|
|
2728
|
+
});
|
|
2389
2729
|
|
|
2390
2730
|
/**
|
|
2391
2731
|
* @internal
|
|
2392
2732
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2393
2733
|
*/
|
|
2394
|
-
export namespace
|
|
2395
|
-
/** @deprecated use `
|
|
2396
|
-
export const inboundSchema =
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2734
|
+
export namespace DeploymentCreateMetricMessagesDeveloperMessage$ {
|
|
2735
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema` instead. */
|
|
2736
|
+
export const inboundSchema =
|
|
2737
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema;
|
|
2738
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema` instead. */
|
|
2739
|
+
export const outboundSchema =
|
|
2740
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema;
|
|
2741
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$Outbound` instead. */
|
|
2742
|
+
export type Outbound =
|
|
2743
|
+
DeploymentCreateMetricMessagesDeveloperMessage$Outbound;
|
|
2401
2744
|
}
|
|
2402
2745
|
|
|
2403
|
-
export function
|
|
2404
|
-
|
|
2746
|
+
export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
|
|
2747
|
+
deploymentCreateMetricMessagesDeveloperMessage:
|
|
2748
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
2405
2749
|
): string {
|
|
2406
2750
|
return JSON.stringify(
|
|
2407
|
-
|
|
2408
|
-
|
|
2751
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
|
|
2752
|
+
deploymentCreateMetricMessagesDeveloperMessage,
|
|
2409
2753
|
),
|
|
2410
2754
|
);
|
|
2411
2755
|
}
|
|
2412
2756
|
|
|
2413
|
-
export function
|
|
2757
|
+
export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
|
|
2414
2758
|
jsonString: string,
|
|
2415
|
-
): SafeParseResult<
|
|
2759
|
+
): SafeParseResult<
|
|
2760
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
2761
|
+
SDKValidationError
|
|
2762
|
+
> {
|
|
2416
2763
|
return safeParse(
|
|
2417
2764
|
jsonString,
|
|
2418
|
-
(x) =>
|
|
2419
|
-
|
|
2765
|
+
(x) =>
|
|
2766
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema.parse(
|
|
2767
|
+
JSON.parse(x),
|
|
2768
|
+
),
|
|
2769
|
+
`Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
|
|
2420
2770
|
);
|
|
2421
2771
|
}
|
|
2422
2772
|
|
|
@@ -2426,20 +2776,20 @@ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
|
|
|
2426
2776
|
z.ZodTypeDef,
|
|
2427
2777
|
unknown
|
|
2428
2778
|
> = z.union([
|
|
2429
|
-
z.lazy(() =>
|
|
2430
|
-
z.lazy(() =>
|
|
2431
|
-
z.lazy(() =>
|
|
2432
|
-
z.lazy(() =>
|
|
2433
|
-
z.lazy(() =>
|
|
2779
|
+
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
|
|
2780
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
|
|
2781
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
2782
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
2783
|
+
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
2434
2784
|
]);
|
|
2435
2785
|
|
|
2436
2786
|
/** @internal */
|
|
2437
2787
|
export type DeploymentCreateMetricMessages$Outbound =
|
|
2438
|
-
|
|
|
2439
|
-
|
|
|
2440
|
-
|
|
|
2441
|
-
|
|
|
2442
|
-
|
|
|
2788
|
+
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
2789
|
+
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
2790
|
+
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
2791
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
2792
|
+
| DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
2443
2793
|
|
|
2444
2794
|
/** @internal */
|
|
2445
2795
|
export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
@@ -2447,11 +2797,11 @@ export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
|
2447
2797
|
z.ZodTypeDef,
|
|
2448
2798
|
DeploymentCreateMetricMessages
|
|
2449
2799
|
> = z.union([
|
|
2450
|
-
z.lazy(() =>
|
|
2451
|
-
z.lazy(() =>
|
|
2452
|
-
z.lazy(() =>
|
|
2453
|
-
z.lazy(() =>
|
|
2454
|
-
z.lazy(() =>
|
|
2800
|
+
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
|
|
2801
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
|
|
2802
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
2803
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
2804
|
+
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
2455
2805
|
]);
|
|
2456
2806
|
|
|
2457
2807
|
/**
|
|
@@ -2488,473 +2838,1772 @@ export function deploymentCreateMetricMessagesFromJSON(
|
|
|
2488
2838
|
}
|
|
2489
2839
|
|
|
2490
2840
|
/** @internal */
|
|
2491
|
-
export const
|
|
2492
|
-
z.ZodNativeEnum<
|
|
2493
|
-
|
|
2841
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
|
|
2842
|
+
z.ZodNativeEnum<
|
|
2843
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
2844
|
+
> = z.nativeEnum(
|
|
2845
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole,
|
|
2846
|
+
);
|
|
2494
2847
|
|
|
2495
2848
|
/** @internal */
|
|
2496
|
-
export const
|
|
2497
|
-
z.ZodNativeEnum<
|
|
2498
|
-
|
|
2849
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
|
|
2850
|
+
z.ZodNativeEnum<
|
|
2851
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
2852
|
+
> =
|
|
2853
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
2499
2854
|
|
|
2500
2855
|
/**
|
|
2501
2856
|
* @internal
|
|
2502
2857
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2503
2858
|
*/
|
|
2504
|
-
export namespace
|
|
2505
|
-
/** @deprecated use `
|
|
2859
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ {
|
|
2860
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
|
|
2506
2861
|
export const inboundSchema =
|
|
2507
|
-
|
|
2508
|
-
/** @deprecated use `
|
|
2862
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
2863
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
|
|
2509
2864
|
export const outboundSchema =
|
|
2510
|
-
|
|
2865
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
|
|
2511
2866
|
}
|
|
2512
2867
|
|
|
2513
2868
|
/** @internal */
|
|
2514
|
-
export const
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
url: z.string(),
|
|
2521
|
-
});
|
|
2869
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema:
|
|
2870
|
+
z.ZodType<
|
|
2871
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2872
|
+
z.ZodTypeDef,
|
|
2873
|
+
unknown
|
|
2874
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2522
2875
|
|
|
2523
2876
|
/** @internal */
|
|
2524
|
-
export type
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
};
|
|
2877
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound =
|
|
2878
|
+
| string
|
|
2879
|
+
| Array<string>;
|
|
2528
2880
|
|
|
2529
2881
|
/** @internal */
|
|
2530
|
-
export const
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
url: z.string(),
|
|
2537
|
-
});
|
|
2882
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema:
|
|
2883
|
+
z.ZodType<
|
|
2884
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound,
|
|
2885
|
+
z.ZodTypeDef,
|
|
2886
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent
|
|
2887
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2538
2888
|
|
|
2539
2889
|
/**
|
|
2540
2890
|
* @internal
|
|
2541
2891
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2542
2892
|
*/
|
|
2543
|
-
export namespace
|
|
2544
|
-
/** @deprecated use `
|
|
2545
|
-
export const inboundSchema =
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2893
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsContent$ {
|
|
2894
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
|
|
2895
|
+
export const inboundSchema =
|
|
2896
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
|
|
2897
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
|
|
2898
|
+
export const outboundSchema =
|
|
2899
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
|
|
2900
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound` instead. */
|
|
2901
|
+
export type Outbound =
|
|
2902
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound;
|
|
2550
2903
|
}
|
|
2551
2904
|
|
|
2552
|
-
export function
|
|
2553
|
-
|
|
2905
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
|
|
2906
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent:
|
|
2907
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2908
|
+
): string {
|
|
2909
|
+
return JSON.stringify(
|
|
2910
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(
|
|
2911
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2912
|
+
),
|
|
2913
|
+
);
|
|
2554
2914
|
}
|
|
2555
2915
|
|
|
2556
|
-
export function
|
|
2916
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(
|
|
2557
2917
|
jsonString: string,
|
|
2558
|
-
): SafeParseResult<
|
|
2918
|
+
): SafeParseResult<
|
|
2919
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2920
|
+
SDKValidationError
|
|
2921
|
+
> {
|
|
2559
2922
|
return safeParse(
|
|
2560
2923
|
jsonString,
|
|
2561
|
-
(x) =>
|
|
2562
|
-
|
|
2924
|
+
(x) =>
|
|
2925
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema
|
|
2926
|
+
.parse(JSON.parse(x)),
|
|
2927
|
+
`Failed to parse 'DeploymentCreateMetricChoicesDeploymentsMetricsContent' from JSON`,
|
|
2563
2928
|
);
|
|
2564
2929
|
}
|
|
2565
2930
|
|
|
2566
2931
|
/** @internal */
|
|
2567
|
-
export const
|
|
2568
|
-
|
|
2569
|
-
> = z.nativeEnum(DeploymentCreateMetricMessageRole);
|
|
2570
|
-
|
|
2571
|
-
/** @internal */
|
|
2572
|
-
export const DeploymentCreateMetricMessageRole$outboundSchema: z.ZodNativeEnum<
|
|
2573
|
-
typeof DeploymentCreateMetricMessageRole
|
|
2574
|
-
> = DeploymentCreateMetricMessageRole$inboundSchema;
|
|
2575
|
-
|
|
2576
|
-
/**
|
|
2577
|
-
* @internal
|
|
2578
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2579
|
-
*/
|
|
2580
|
-
export namespace DeploymentCreateMetricMessageRole$ {
|
|
2581
|
-
/** @deprecated use `DeploymentCreateMetricMessageRole$inboundSchema` instead. */
|
|
2582
|
-
export const inboundSchema = DeploymentCreateMetricMessageRole$inboundSchema;
|
|
2583
|
-
/** @deprecated use `DeploymentCreateMetricMessageRole$outboundSchema` instead. */
|
|
2584
|
-
export const outboundSchema =
|
|
2585
|
-
DeploymentCreateMetricMessageRole$outboundSchema;
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
/** @internal */
|
|
2589
|
-
export const Message2$inboundSchema: z.ZodType<
|
|
2590
|
-
Message2,
|
|
2932
|
+
export const ChoicesToolMessage$inboundSchema: z.ZodType<
|
|
2933
|
+
ChoicesToolMessage,
|
|
2591
2934
|
z.ZodTypeDef,
|
|
2592
2935
|
unknown
|
|
2593
2936
|
> = z.object({
|
|
2594
|
-
role:
|
|
2595
|
-
|
|
2937
|
+
role:
|
|
2938
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
2939
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2940
|
+
tool_call_id: z.string(),
|
|
2941
|
+
}).transform((v) => {
|
|
2942
|
+
return remap$(v, {
|
|
2943
|
+
"tool_call_id": "toolCallId",
|
|
2944
|
+
});
|
|
2596
2945
|
});
|
|
2597
2946
|
|
|
2598
2947
|
/** @internal */
|
|
2599
|
-
export type
|
|
2948
|
+
export type ChoicesToolMessage$Outbound = {
|
|
2600
2949
|
role: string;
|
|
2601
|
-
content: string |
|
|
2950
|
+
content: string | Array<string>;
|
|
2951
|
+
tool_call_id: string;
|
|
2602
2952
|
};
|
|
2603
2953
|
|
|
2604
2954
|
/** @internal */
|
|
2605
|
-
export const
|
|
2606
|
-
|
|
2955
|
+
export const ChoicesToolMessage$outboundSchema: z.ZodType<
|
|
2956
|
+
ChoicesToolMessage$Outbound,
|
|
2607
2957
|
z.ZodTypeDef,
|
|
2608
|
-
|
|
2958
|
+
ChoicesToolMessage
|
|
2609
2959
|
> = z.object({
|
|
2610
|
-
role:
|
|
2611
|
-
|
|
2960
|
+
role:
|
|
2961
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
2962
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2963
|
+
toolCallId: z.string(),
|
|
2964
|
+
}).transform((v) => {
|
|
2965
|
+
return remap$(v, {
|
|
2966
|
+
toolCallId: "tool_call_id",
|
|
2967
|
+
});
|
|
2612
2968
|
});
|
|
2613
2969
|
|
|
2614
2970
|
/**
|
|
2615
2971
|
* @internal
|
|
2616
2972
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2617
2973
|
*/
|
|
2618
|
-
export namespace
|
|
2619
|
-
/** @deprecated use `
|
|
2620
|
-
export const inboundSchema =
|
|
2621
|
-
/** @deprecated use `
|
|
2622
|
-
export const outboundSchema =
|
|
2623
|
-
/** @deprecated use `
|
|
2624
|
-
export type Outbound =
|
|
2974
|
+
export namespace ChoicesToolMessage$ {
|
|
2975
|
+
/** @deprecated use `ChoicesToolMessage$inboundSchema` instead. */
|
|
2976
|
+
export const inboundSchema = ChoicesToolMessage$inboundSchema;
|
|
2977
|
+
/** @deprecated use `ChoicesToolMessage$outboundSchema` instead. */
|
|
2978
|
+
export const outboundSchema = ChoicesToolMessage$outboundSchema;
|
|
2979
|
+
/** @deprecated use `ChoicesToolMessage$Outbound` instead. */
|
|
2980
|
+
export type Outbound = ChoicesToolMessage$Outbound;
|
|
2625
2981
|
}
|
|
2626
2982
|
|
|
2627
|
-
export function
|
|
2628
|
-
|
|
2983
|
+
export function choicesToolMessageToJSON(
|
|
2984
|
+
choicesToolMessage: ChoicesToolMessage,
|
|
2985
|
+
): string {
|
|
2986
|
+
return JSON.stringify(
|
|
2987
|
+
ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
|
|
2988
|
+
);
|
|
2629
2989
|
}
|
|
2630
2990
|
|
|
2631
|
-
export function
|
|
2991
|
+
export function choicesToolMessageFromJSON(
|
|
2632
2992
|
jsonString: string,
|
|
2633
|
-
): SafeParseResult<
|
|
2993
|
+
): SafeParseResult<ChoicesToolMessage, SDKValidationError> {
|
|
2634
2994
|
return safeParse(
|
|
2635
2995
|
jsonString,
|
|
2636
|
-
(x) =>
|
|
2637
|
-
`Failed to parse '
|
|
2996
|
+
(x) => ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2997
|
+
`Failed to parse 'ChoicesToolMessage' from JSON`,
|
|
2638
2998
|
);
|
|
2639
2999
|
}
|
|
2640
3000
|
|
|
2641
3001
|
/** @internal */
|
|
2642
|
-
export const
|
|
2643
|
-
.
|
|
3002
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema:
|
|
3003
|
+
z.ZodNativeEnum<
|
|
3004
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
3005
|
+
> = z.nativeEnum(
|
|
3006
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType,
|
|
3007
|
+
);
|
|
2644
3008
|
|
|
2645
3009
|
/** @internal */
|
|
2646
|
-
export const
|
|
2647
|
-
|
|
3010
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema:
|
|
3011
|
+
z.ZodNativeEnum<
|
|
3012
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
3013
|
+
> =
|
|
3014
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
2648
3015
|
|
|
2649
3016
|
/**
|
|
2650
3017
|
* @internal
|
|
2651
3018
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2652
3019
|
*/
|
|
2653
|
-
export namespace
|
|
2654
|
-
/** @deprecated use `
|
|
2655
|
-
export const inboundSchema =
|
|
2656
|
-
|
|
2657
|
-
|
|
3020
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ {
|
|
3021
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
|
|
3022
|
+
export const inboundSchema =
|
|
3023
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
3024
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
|
|
3025
|
+
export const outboundSchema =
|
|
3026
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
|
|
2658
3027
|
}
|
|
2659
3028
|
|
|
2660
3029
|
/** @internal */
|
|
2661
|
-
export const
|
|
2662
|
-
.
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
3030
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema:
|
|
3031
|
+
z.ZodType<
|
|
3032
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3033
|
+
z.ZodTypeDef,
|
|
3034
|
+
unknown
|
|
3035
|
+
> = z.object({
|
|
3036
|
+
type:
|
|
3037
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
3038
|
+
refusal: z.string(),
|
|
3039
|
+
});
|
|
3040
|
+
|
|
3041
|
+
/** @internal */
|
|
3042
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound =
|
|
3043
|
+
{
|
|
3044
|
+
type: string;
|
|
3045
|
+
refusal: string;
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
/** @internal */
|
|
3049
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema:
|
|
3050
|
+
z.ZodType<
|
|
3051
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound,
|
|
3052
|
+
z.ZodTypeDef,
|
|
3053
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
3054
|
+
> = z.object({
|
|
3055
|
+
type:
|
|
3056
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
|
|
3057
|
+
refusal: z.string(),
|
|
3058
|
+
});
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* @internal
|
|
3062
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3063
|
+
*/
|
|
3064
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ {
|
|
3065
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
|
|
3066
|
+
export const inboundSchema =
|
|
3067
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
|
|
3068
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
|
|
3069
|
+
export const outboundSchema =
|
|
3070
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
|
|
3071
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound` instead. */
|
|
3072
|
+
export type Outbound =
|
|
3073
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(
|
|
3077
|
+
deploymentCreateMetric2DeploymentsMetricsRefusalContentPart:
|
|
3078
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3079
|
+
): string {
|
|
3080
|
+
return JSON.stringify(
|
|
3081
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3082
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart),
|
|
3083
|
+
);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(
|
|
3087
|
+
jsonString: string,
|
|
3088
|
+
): SafeParseResult<
|
|
3089
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3090
|
+
SDKValidationError
|
|
3091
|
+
> {
|
|
3092
|
+
return safeParse(
|
|
3093
|
+
jsonString,
|
|
3094
|
+
(x) =>
|
|
3095
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3096
|
+
.parse(JSON.parse(x)),
|
|
3097
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart' from JSON`,
|
|
3098
|
+
);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
/** @internal */
|
|
3102
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema:
|
|
3103
|
+
z.ZodNativeEnum<
|
|
3104
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
3105
|
+
> = z.nativeEnum(
|
|
3106
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type,
|
|
3107
|
+
);
|
|
3108
|
+
|
|
3109
|
+
/** @internal */
|
|
3110
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema:
|
|
3111
|
+
z.ZodNativeEnum<
|
|
3112
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
3113
|
+
> =
|
|
3114
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* @internal
|
|
3118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3119
|
+
*/
|
|
3120
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ {
|
|
3121
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema` instead. */
|
|
3122
|
+
export const inboundSchema =
|
|
3123
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
3124
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema` instead. */
|
|
3125
|
+
export const outboundSchema =
|
|
3126
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
/** @internal */
|
|
3130
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema:
|
|
3131
|
+
z.ZodType<
|
|
3132
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
3133
|
+
z.ZodTypeDef,
|
|
3134
|
+
unknown
|
|
3135
|
+
> = z.object({
|
|
3136
|
+
type:
|
|
3137
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema,
|
|
3138
|
+
text: z.string(),
|
|
3139
|
+
});
|
|
3140
|
+
|
|
3141
|
+
/** @internal */
|
|
3142
|
+
export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound =
|
|
3143
|
+
{
|
|
3144
|
+
type: string;
|
|
3145
|
+
text: string;
|
|
3146
|
+
};
|
|
3147
|
+
|
|
3148
|
+
/** @internal */
|
|
3149
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema:
|
|
3150
|
+
z.ZodType<
|
|
3151
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound,
|
|
3152
|
+
z.ZodTypeDef,
|
|
3153
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
3154
|
+
> = z.object({
|
|
3155
|
+
type:
|
|
3156
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema,
|
|
3157
|
+
text: z.string(),
|
|
3158
|
+
});
|
|
3159
|
+
|
|
3160
|
+
/**
|
|
3161
|
+
* @internal
|
|
3162
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3163
|
+
*/
|
|
3164
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ {
|
|
3165
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema` instead. */
|
|
3166
|
+
export const inboundSchema =
|
|
3167
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema;
|
|
3168
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema` instead. */
|
|
3169
|
+
export const outboundSchema =
|
|
3170
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema;
|
|
3171
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound` instead. */
|
|
3172
|
+
export type Outbound =
|
|
3173
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound;
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
export function deploymentCreateMetric2DeploymentsMetricsTextContentPartToJSON(
|
|
3177
|
+
deploymentCreateMetric2DeploymentsMetricsTextContentPart:
|
|
3178
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
3179
|
+
): string {
|
|
3180
|
+
return JSON.stringify(
|
|
3181
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3182
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsTextContentPart),
|
|
3183
|
+
);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
export function deploymentCreateMetric2DeploymentsMetricsTextContentPartFromJSON(
|
|
3187
|
+
jsonString: string,
|
|
3188
|
+
): SafeParseResult<
|
|
3189
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
3190
|
+
SDKValidationError
|
|
3191
|
+
> {
|
|
3192
|
+
return safeParse(
|
|
3193
|
+
jsonString,
|
|
3194
|
+
(x) =>
|
|
3195
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3196
|
+
.parse(JSON.parse(x)),
|
|
3197
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsTextContentPart' from JSON`,
|
|
3198
|
+
);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
/** @internal */
|
|
3202
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema:
|
|
3203
|
+
z.ZodType<
|
|
3204
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3205
|
+
z.ZodTypeDef,
|
|
3206
|
+
unknown
|
|
3207
|
+
> = z.union([
|
|
3208
|
+
z.lazy(() =>
|
|
3209
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3210
|
+
),
|
|
3211
|
+
z.lazy(() =>
|
|
3212
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3213
|
+
),
|
|
3214
|
+
]);
|
|
3215
|
+
|
|
3216
|
+
/** @internal */
|
|
3217
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound =
|
|
3218
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3219
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
|
|
3220
|
+
|
|
3221
|
+
/** @internal */
|
|
3222
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema:
|
|
3223
|
+
z.ZodType<
|
|
3224
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound,
|
|
3225
|
+
z.ZodTypeDef,
|
|
3226
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2
|
|
3227
|
+
> = z.union([
|
|
3228
|
+
z.lazy(() =>
|
|
3229
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3230
|
+
),
|
|
3231
|
+
z.lazy(() =>
|
|
3232
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3233
|
+
),
|
|
3234
|
+
]);
|
|
3235
|
+
|
|
3236
|
+
/**
|
|
3237
|
+
* @internal
|
|
3238
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3239
|
+
*/
|
|
3240
|
+
export namespace DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ {
|
|
3241
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema` instead. */
|
|
3242
|
+
export const inboundSchema =
|
|
3243
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema;
|
|
3244
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema` instead. */
|
|
3245
|
+
export const outboundSchema =
|
|
3246
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema;
|
|
3247
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound` instead. */
|
|
3248
|
+
export type Outbound =
|
|
3249
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON(
|
|
3253
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2:
|
|
3254
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3255
|
+
): string {
|
|
3256
|
+
return JSON.stringify(
|
|
3257
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema
|
|
3258
|
+
.parse(
|
|
3259
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3260
|
+
),
|
|
3261
|
+
);
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON(
|
|
3265
|
+
jsonString: string,
|
|
3266
|
+
): SafeParseResult<
|
|
3267
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3268
|
+
SDKValidationError
|
|
3269
|
+
> {
|
|
3270
|
+
return safeParse(
|
|
3271
|
+
jsonString,
|
|
3272
|
+
(x) =>
|
|
3273
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema
|
|
3274
|
+
.parse(JSON.parse(x)),
|
|
3275
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2' from JSON`,
|
|
3276
|
+
);
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
/** @internal */
|
|
3280
|
+
export const DeploymentCreateMetricChoicesContent$inboundSchema: z.ZodType<
|
|
3281
|
+
DeploymentCreateMetricChoicesContent,
|
|
3282
|
+
z.ZodTypeDef,
|
|
3283
|
+
unknown
|
|
3284
|
+
> = z.union([
|
|
3285
|
+
z.string(),
|
|
3286
|
+
z.array(z.union([
|
|
3287
|
+
z.lazy(() =>
|
|
3288
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3289
|
+
),
|
|
3290
|
+
z.lazy(() =>
|
|
3291
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3292
|
+
),
|
|
3293
|
+
])),
|
|
3294
|
+
]);
|
|
3295
|
+
|
|
3296
|
+
/** @internal */
|
|
3297
|
+
export type DeploymentCreateMetricChoicesContent$Outbound =
|
|
3298
|
+
| string
|
|
3299
|
+
| Array<
|
|
3300
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3301
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound
|
|
3302
|
+
>;
|
|
3303
|
+
|
|
3304
|
+
/** @internal */
|
|
3305
|
+
export const DeploymentCreateMetricChoicesContent$outboundSchema: z.ZodType<
|
|
3306
|
+
DeploymentCreateMetricChoicesContent$Outbound,
|
|
3307
|
+
z.ZodTypeDef,
|
|
3308
|
+
DeploymentCreateMetricChoicesContent
|
|
3309
|
+
> = z.union([
|
|
3310
|
+
z.string(),
|
|
3311
|
+
z.array(z.union([
|
|
3312
|
+
z.lazy(() =>
|
|
3313
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3314
|
+
),
|
|
3315
|
+
z.lazy(() =>
|
|
3316
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3317
|
+
),
|
|
3318
|
+
])),
|
|
3319
|
+
]);
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* @internal
|
|
3323
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3324
|
+
*/
|
|
3325
|
+
export namespace DeploymentCreateMetricChoicesContent$ {
|
|
3326
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$inboundSchema` instead. */
|
|
3327
|
+
export const inboundSchema =
|
|
3328
|
+
DeploymentCreateMetricChoicesContent$inboundSchema;
|
|
3329
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$outboundSchema` instead. */
|
|
3330
|
+
export const outboundSchema =
|
|
3331
|
+
DeploymentCreateMetricChoicesContent$outboundSchema;
|
|
3332
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$Outbound` instead. */
|
|
3333
|
+
export type Outbound = DeploymentCreateMetricChoicesContent$Outbound;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
export function deploymentCreateMetricChoicesContentToJSON(
|
|
3337
|
+
deploymentCreateMetricChoicesContent: DeploymentCreateMetricChoicesContent,
|
|
3338
|
+
): string {
|
|
3339
|
+
return JSON.stringify(
|
|
3340
|
+
DeploymentCreateMetricChoicesContent$outboundSchema.parse(
|
|
3341
|
+
deploymentCreateMetricChoicesContent,
|
|
3342
|
+
),
|
|
3343
|
+
);
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
export function deploymentCreateMetricChoicesContentFromJSON(
|
|
3347
|
+
jsonString: string,
|
|
3348
|
+
): SafeParseResult<DeploymentCreateMetricChoicesContent, SDKValidationError> {
|
|
3349
|
+
return safeParse(
|
|
3350
|
+
jsonString,
|
|
3351
|
+
(x) =>
|
|
3352
|
+
DeploymentCreateMetricChoicesContent$inboundSchema.parse(JSON.parse(x)),
|
|
3353
|
+
`Failed to parse 'DeploymentCreateMetricChoicesContent' from JSON`,
|
|
3354
|
+
);
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
/** @internal */
|
|
3358
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema:
|
|
3359
|
+
z.ZodNativeEnum<
|
|
3360
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole
|
|
3361
|
+
> = z.nativeEnum(DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole);
|
|
3362
|
+
|
|
3363
|
+
/** @internal */
|
|
3364
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema:
|
|
3365
|
+
z.ZodNativeEnum<
|
|
3366
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole
|
|
3367
|
+
> = DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
3368
|
+
|
|
3369
|
+
/**
|
|
3370
|
+
* @internal
|
|
3371
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3372
|
+
*/
|
|
3373
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ {
|
|
3374
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema` instead. */
|
|
3375
|
+
export const inboundSchema =
|
|
3376
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
3377
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema` instead. */
|
|
3378
|
+
export const outboundSchema =
|
|
3379
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
/** @internal */
|
|
3383
|
+
export const ChoicesAudio$inboundSchema: z.ZodType<
|
|
3384
|
+
ChoicesAudio,
|
|
3385
|
+
z.ZodTypeDef,
|
|
3386
|
+
unknown
|
|
3387
|
+
> = z.object({
|
|
3388
|
+
id: z.string(),
|
|
3389
|
+
});
|
|
3390
|
+
|
|
3391
|
+
/** @internal */
|
|
3392
|
+
export type ChoicesAudio$Outbound = {
|
|
3393
|
+
id: string;
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
/** @internal */
|
|
3397
|
+
export const ChoicesAudio$outboundSchema: z.ZodType<
|
|
3398
|
+
ChoicesAudio$Outbound,
|
|
3399
|
+
z.ZodTypeDef,
|
|
3400
|
+
ChoicesAudio
|
|
3401
|
+
> = z.object({
|
|
3402
|
+
id: z.string(),
|
|
3403
|
+
});
|
|
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 ChoicesAudio$ {
|
|
3410
|
+
/** @deprecated use `ChoicesAudio$inboundSchema` instead. */
|
|
3411
|
+
export const inboundSchema = ChoicesAudio$inboundSchema;
|
|
3412
|
+
/** @deprecated use `ChoicesAudio$outboundSchema` instead. */
|
|
3413
|
+
export const outboundSchema = ChoicesAudio$outboundSchema;
|
|
3414
|
+
/** @deprecated use `ChoicesAudio$Outbound` instead. */
|
|
3415
|
+
export type Outbound = ChoicesAudio$Outbound;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
export function choicesAudioToJSON(choicesAudio: ChoicesAudio): string {
|
|
3419
|
+
return JSON.stringify(ChoicesAudio$outboundSchema.parse(choicesAudio));
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
export function choicesAudioFromJSON(
|
|
3423
|
+
jsonString: string,
|
|
3424
|
+
): SafeParseResult<ChoicesAudio, SDKValidationError> {
|
|
3425
|
+
return safeParse(
|
|
3426
|
+
jsonString,
|
|
3427
|
+
(x) => ChoicesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
3428
|
+
`Failed to parse 'ChoicesAudio' from JSON`,
|
|
3429
|
+
);
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
/** @internal */
|
|
3433
|
+
export const ChoicesType$inboundSchema: z.ZodNativeEnum<typeof ChoicesType> = z
|
|
3434
|
+
.nativeEnum(ChoicesType);
|
|
3435
|
+
|
|
3436
|
+
/** @internal */
|
|
3437
|
+
export const ChoicesType$outboundSchema: z.ZodNativeEnum<typeof ChoicesType> =
|
|
3438
|
+
ChoicesType$inboundSchema;
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @internal
|
|
3442
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3443
|
+
*/
|
|
3444
|
+
export namespace ChoicesType$ {
|
|
3445
|
+
/** @deprecated use `ChoicesType$inboundSchema` instead. */
|
|
3446
|
+
export const inboundSchema = ChoicesType$inboundSchema;
|
|
3447
|
+
/** @deprecated use `ChoicesType$outboundSchema` instead. */
|
|
3448
|
+
export const outboundSchema = ChoicesType$outboundSchema;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
/** @internal */
|
|
3452
|
+
export const ChoicesFunction$inboundSchema: z.ZodType<
|
|
3453
|
+
ChoicesFunction,
|
|
3454
|
+
z.ZodTypeDef,
|
|
3455
|
+
unknown
|
|
3456
|
+
> = z.object({
|
|
3457
|
+
name: z.string().optional(),
|
|
3458
|
+
arguments: z.string().optional(),
|
|
3459
|
+
});
|
|
3460
|
+
|
|
3461
|
+
/** @internal */
|
|
3462
|
+
export type ChoicesFunction$Outbound = {
|
|
3463
|
+
name?: string | undefined;
|
|
3464
|
+
arguments?: string | undefined;
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3467
|
+
/** @internal */
|
|
3468
|
+
export const ChoicesFunction$outboundSchema: z.ZodType<
|
|
3469
|
+
ChoicesFunction$Outbound,
|
|
3470
|
+
z.ZodTypeDef,
|
|
3471
|
+
ChoicesFunction
|
|
3472
|
+
> = z.object({
|
|
3473
|
+
name: z.string().optional(),
|
|
3474
|
+
arguments: z.string().optional(),
|
|
3475
|
+
});
|
|
3476
|
+
|
|
3477
|
+
/**
|
|
3478
|
+
* @internal
|
|
3479
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3480
|
+
*/
|
|
3481
|
+
export namespace ChoicesFunction$ {
|
|
3482
|
+
/** @deprecated use `ChoicesFunction$inboundSchema` instead. */
|
|
3483
|
+
export const inboundSchema = ChoicesFunction$inboundSchema;
|
|
3484
|
+
/** @deprecated use `ChoicesFunction$outboundSchema` instead. */
|
|
3485
|
+
export const outboundSchema = ChoicesFunction$outboundSchema;
|
|
3486
|
+
/** @deprecated use `ChoicesFunction$Outbound` instead. */
|
|
3487
|
+
export type Outbound = ChoicesFunction$Outbound;
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
export function choicesFunctionToJSON(
|
|
3491
|
+
choicesFunction: ChoicesFunction,
|
|
3492
|
+
): string {
|
|
3493
|
+
return JSON.stringify(ChoicesFunction$outboundSchema.parse(choicesFunction));
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export function choicesFunctionFromJSON(
|
|
3497
|
+
jsonString: string,
|
|
3498
|
+
): SafeParseResult<ChoicesFunction, SDKValidationError> {
|
|
3499
|
+
return safeParse(
|
|
3500
|
+
jsonString,
|
|
3501
|
+
(x) => ChoicesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3502
|
+
`Failed to parse 'ChoicesFunction' from JSON`,
|
|
3503
|
+
);
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
/** @internal */
|
|
3507
|
+
export const ChoicesToolCalls$inboundSchema: z.ZodType<
|
|
3508
|
+
ChoicesToolCalls,
|
|
3509
|
+
z.ZodTypeDef,
|
|
3510
|
+
unknown
|
|
3511
|
+
> = z.object({
|
|
3512
|
+
id: z.string(),
|
|
3513
|
+
type: ChoicesType$inboundSchema,
|
|
3514
|
+
function: z.lazy(() => ChoicesFunction$inboundSchema),
|
|
3515
|
+
});
|
|
3516
|
+
|
|
3517
|
+
/** @internal */
|
|
3518
|
+
export type ChoicesToolCalls$Outbound = {
|
|
3519
|
+
id: string;
|
|
3520
|
+
type: string;
|
|
3521
|
+
function: ChoicesFunction$Outbound;
|
|
3522
|
+
};
|
|
3523
|
+
|
|
3524
|
+
/** @internal */
|
|
3525
|
+
export const ChoicesToolCalls$outboundSchema: z.ZodType<
|
|
3526
|
+
ChoicesToolCalls$Outbound,
|
|
3527
|
+
z.ZodTypeDef,
|
|
3528
|
+
ChoicesToolCalls
|
|
3529
|
+
> = z.object({
|
|
3530
|
+
id: z.string(),
|
|
3531
|
+
type: ChoicesType$outboundSchema,
|
|
3532
|
+
function: z.lazy(() => ChoicesFunction$outboundSchema),
|
|
3533
|
+
});
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* @internal
|
|
3537
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3538
|
+
*/
|
|
3539
|
+
export namespace ChoicesToolCalls$ {
|
|
3540
|
+
/** @deprecated use `ChoicesToolCalls$inboundSchema` instead. */
|
|
3541
|
+
export const inboundSchema = ChoicesToolCalls$inboundSchema;
|
|
3542
|
+
/** @deprecated use `ChoicesToolCalls$outboundSchema` instead. */
|
|
3543
|
+
export const outboundSchema = ChoicesToolCalls$outboundSchema;
|
|
3544
|
+
/** @deprecated use `ChoicesToolCalls$Outbound` instead. */
|
|
3545
|
+
export type Outbound = ChoicesToolCalls$Outbound;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
export function choicesToolCallsToJSON(
|
|
3549
|
+
choicesToolCalls: ChoicesToolCalls,
|
|
3550
|
+
): string {
|
|
3551
|
+
return JSON.stringify(
|
|
3552
|
+
ChoicesToolCalls$outboundSchema.parse(choicesToolCalls),
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
export function choicesToolCallsFromJSON(
|
|
3557
|
+
jsonString: string,
|
|
3558
|
+
): SafeParseResult<ChoicesToolCalls, SDKValidationError> {
|
|
3559
|
+
return safeParse(
|
|
3560
|
+
jsonString,
|
|
3561
|
+
(x) => ChoicesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
3562
|
+
`Failed to parse 'ChoicesToolCalls' from JSON`,
|
|
3563
|
+
);
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
/** @internal */
|
|
3567
|
+
export const ChoicesAssistantMessage$inboundSchema: z.ZodType<
|
|
3568
|
+
ChoicesAssistantMessage,
|
|
3569
|
+
z.ZodTypeDef,
|
|
3570
|
+
unknown
|
|
3571
|
+
> = z.object({
|
|
3572
|
+
content: z.union([
|
|
3573
|
+
z.string(),
|
|
3574
|
+
z.array(z.union([
|
|
3575
|
+
z.lazy(() =>
|
|
3576
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3577
|
+
),
|
|
3578
|
+
z.lazy(() =>
|
|
3579
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3580
|
+
),
|
|
3581
|
+
])),
|
|
3582
|
+
]).optional(),
|
|
3583
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3584
|
+
role:
|
|
3585
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema,
|
|
3586
|
+
name: z.string().optional(),
|
|
3587
|
+
audio: z.nullable(z.lazy(() => ChoicesAudio$inboundSchema)).optional(),
|
|
3588
|
+
tool_calls: z.array(z.lazy(() => ChoicesToolCalls$inboundSchema)).optional(),
|
|
3589
|
+
}).transform((v) => {
|
|
3590
|
+
return remap$(v, {
|
|
3591
|
+
"tool_calls": "toolCalls",
|
|
3592
|
+
});
|
|
3593
|
+
});
|
|
3594
|
+
|
|
3595
|
+
/** @internal */
|
|
3596
|
+
export type ChoicesAssistantMessage$Outbound = {
|
|
3597
|
+
content?:
|
|
3598
|
+
| string
|
|
3599
|
+
| Array<
|
|
3600
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3601
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound
|
|
3602
|
+
>
|
|
3603
|
+
| undefined;
|
|
3604
|
+
refusal?: string | null | undefined;
|
|
3605
|
+
role: string;
|
|
3606
|
+
name?: string | undefined;
|
|
3607
|
+
audio?: ChoicesAudio$Outbound | null | undefined;
|
|
3608
|
+
tool_calls?: Array<ChoicesToolCalls$Outbound> | undefined;
|
|
3609
|
+
};
|
|
3610
|
+
|
|
3611
|
+
/** @internal */
|
|
3612
|
+
export const ChoicesAssistantMessage$outboundSchema: z.ZodType<
|
|
3613
|
+
ChoicesAssistantMessage$Outbound,
|
|
3614
|
+
z.ZodTypeDef,
|
|
3615
|
+
ChoicesAssistantMessage
|
|
3616
|
+
> = z.object({
|
|
3617
|
+
content: z.union([
|
|
3618
|
+
z.string(),
|
|
3619
|
+
z.array(z.union([
|
|
3620
|
+
z.lazy(() =>
|
|
3621
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3622
|
+
),
|
|
3623
|
+
z.lazy(() =>
|
|
3624
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3625
|
+
),
|
|
3626
|
+
])),
|
|
3627
|
+
]).optional(),
|
|
3628
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3629
|
+
role:
|
|
3630
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema,
|
|
3631
|
+
name: z.string().optional(),
|
|
3632
|
+
audio: z.nullable(z.lazy(() => ChoicesAudio$outboundSchema)).optional(),
|
|
3633
|
+
toolCalls: z.array(z.lazy(() => ChoicesToolCalls$outboundSchema)).optional(),
|
|
3634
|
+
}).transform((v) => {
|
|
3635
|
+
return remap$(v, {
|
|
3636
|
+
toolCalls: "tool_calls",
|
|
3637
|
+
});
|
|
3638
|
+
});
|
|
3639
|
+
|
|
3640
|
+
/**
|
|
3641
|
+
* @internal
|
|
3642
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3643
|
+
*/
|
|
3644
|
+
export namespace ChoicesAssistantMessage$ {
|
|
3645
|
+
/** @deprecated use `ChoicesAssistantMessage$inboundSchema` instead. */
|
|
3646
|
+
export const inboundSchema = ChoicesAssistantMessage$inboundSchema;
|
|
3647
|
+
/** @deprecated use `ChoicesAssistantMessage$outboundSchema` instead. */
|
|
3648
|
+
export const outboundSchema = ChoicesAssistantMessage$outboundSchema;
|
|
3649
|
+
/** @deprecated use `ChoicesAssistantMessage$Outbound` instead. */
|
|
3650
|
+
export type Outbound = ChoicesAssistantMessage$Outbound;
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
export function choicesAssistantMessageToJSON(
|
|
3654
|
+
choicesAssistantMessage: ChoicesAssistantMessage,
|
|
3655
|
+
): string {
|
|
3656
|
+
return JSON.stringify(
|
|
3657
|
+
ChoicesAssistantMessage$outboundSchema.parse(choicesAssistantMessage),
|
|
3658
|
+
);
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
export function choicesAssistantMessageFromJSON(
|
|
3662
|
+
jsonString: string,
|
|
3663
|
+
): SafeParseResult<ChoicesAssistantMessage, SDKValidationError> {
|
|
3664
|
+
return safeParse(
|
|
3665
|
+
jsonString,
|
|
3666
|
+
(x) => ChoicesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3667
|
+
`Failed to parse 'ChoicesAssistantMessage' from JSON`,
|
|
3668
|
+
);
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
/** @internal */
|
|
3672
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema:
|
|
3673
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole> =
|
|
3674
|
+
z.nativeEnum(DeploymentCreateMetricChoicesDeploymentsMetricsRole);
|
|
3675
|
+
|
|
3676
|
+
/** @internal */
|
|
3677
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema:
|
|
3678
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole> =
|
|
3679
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
3680
|
+
|
|
3681
|
+
/**
|
|
3682
|
+
* @internal
|
|
3683
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3684
|
+
*/
|
|
3685
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRole$ {
|
|
3686
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema` instead. */
|
|
3687
|
+
export const inboundSchema =
|
|
3688
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
3689
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema` instead. */
|
|
3690
|
+
export const outboundSchema =
|
|
3691
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
/** @internal */
|
|
3695
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema:
|
|
3696
|
+
z.ZodNativeEnum<
|
|
3697
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
3698
|
+
> = z.nativeEnum(
|
|
3699
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType,
|
|
3700
|
+
);
|
|
3701
|
+
|
|
3702
|
+
/** @internal */
|
|
3703
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema:
|
|
3704
|
+
z.ZodNativeEnum<
|
|
3705
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
3706
|
+
> =
|
|
3707
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
3708
|
+
|
|
3709
|
+
/**
|
|
3710
|
+
* @internal
|
|
3711
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3712
|
+
*/
|
|
3713
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ {
|
|
3714
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema` instead. */
|
|
3715
|
+
export const inboundSchema =
|
|
3716
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
3717
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema` instead. */
|
|
3718
|
+
export const outboundSchema =
|
|
3719
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema;
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
/** @internal */
|
|
3723
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema:
|
|
3724
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsFormat> = z
|
|
3725
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsFormat);
|
|
3726
|
+
|
|
3727
|
+
/** @internal */
|
|
3728
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema:
|
|
3729
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsFormat> =
|
|
3730
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
3731
|
+
|
|
3732
|
+
/**
|
|
3733
|
+
* @internal
|
|
3734
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3735
|
+
*/
|
|
3736
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsFormat$ {
|
|
3737
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema` instead. */
|
|
3738
|
+
export const inboundSchema =
|
|
3739
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
3740
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema` instead. */
|
|
3741
|
+
export const outboundSchema =
|
|
3742
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema;
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
/** @internal */
|
|
3746
|
+
export const DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema:
|
|
3747
|
+
z.ZodType<
|
|
3748
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
3749
|
+
z.ZodTypeDef,
|
|
3750
|
+
unknown
|
|
3751
|
+
> = z.object({
|
|
3752
|
+
data: z.string(),
|
|
3753
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema,
|
|
3754
|
+
});
|
|
3755
|
+
|
|
3756
|
+
/** @internal */
|
|
3757
|
+
export type DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound = {
|
|
3758
|
+
data: string;
|
|
3759
|
+
format: string;
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3762
|
+
/** @internal */
|
|
3763
|
+
export const DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema:
|
|
3764
|
+
z.ZodType<
|
|
3765
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound,
|
|
3766
|
+
z.ZodTypeDef,
|
|
3767
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio
|
|
3768
|
+
> = z.object({
|
|
3769
|
+
data: z.string(),
|
|
3770
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema,
|
|
3771
|
+
});
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* @internal
|
|
3775
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3776
|
+
*/
|
|
3777
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsInputAudio$ {
|
|
3778
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema` instead. */
|
|
3779
|
+
export const inboundSchema =
|
|
3780
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema;
|
|
3781
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema` instead. */
|
|
3782
|
+
export const outboundSchema =
|
|
3783
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema;
|
|
3784
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound` instead. */
|
|
3785
|
+
export type Outbound =
|
|
3786
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound;
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
export function deploymentCreateMetric2DeploymentsMetricsInputAudioToJSON(
|
|
3790
|
+
deploymentCreateMetric2DeploymentsMetricsInputAudio:
|
|
3791
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
3792
|
+
): string {
|
|
3793
|
+
return JSON.stringify(
|
|
3794
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema.parse(
|
|
3795
|
+
deploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
3796
|
+
),
|
|
3797
|
+
);
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
export function deploymentCreateMetric2DeploymentsMetricsInputAudioFromJSON(
|
|
3801
|
+
jsonString: string,
|
|
3802
|
+
): SafeParseResult<
|
|
3803
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
3804
|
+
SDKValidationError
|
|
3805
|
+
> {
|
|
3806
|
+
return safeParse(
|
|
3807
|
+
jsonString,
|
|
3808
|
+
(x) =>
|
|
3809
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema.parse(
|
|
3810
|
+
JSON.parse(x),
|
|
3811
|
+
),
|
|
3812
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsInputAudio' from JSON`,
|
|
3813
|
+
);
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
/** @internal */
|
|
3817
|
+
export const DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema:
|
|
3818
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics3, z.ZodTypeDef, unknown> =
|
|
3819
|
+
z.object({
|
|
3820
|
+
type:
|
|
3821
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema,
|
|
3822
|
+
input_audio: z.lazy(() =>
|
|
3823
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema
|
|
3824
|
+
),
|
|
3825
|
+
}).transform((v) => {
|
|
3826
|
+
return remap$(v, {
|
|
3827
|
+
"input_audio": "inputAudio",
|
|
3828
|
+
});
|
|
3829
|
+
});
|
|
3830
|
+
|
|
3831
|
+
/** @internal */
|
|
3832
|
+
export type DeploymentCreateMetric2DeploymentsMetrics3$Outbound = {
|
|
3833
|
+
type: string;
|
|
3834
|
+
input_audio: DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound;
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
/** @internal */
|
|
3838
|
+
export const DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema:
|
|
3839
|
+
z.ZodType<
|
|
3840
|
+
DeploymentCreateMetric2DeploymentsMetrics3$Outbound,
|
|
3841
|
+
z.ZodTypeDef,
|
|
3842
|
+
DeploymentCreateMetric2DeploymentsMetrics3
|
|
3843
|
+
> = z.object({
|
|
3844
|
+
type:
|
|
3845
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema,
|
|
3846
|
+
inputAudio: z.lazy(() =>
|
|
3847
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema
|
|
3848
|
+
),
|
|
3849
|
+
}).transform((v) => {
|
|
3850
|
+
return remap$(v, {
|
|
3851
|
+
inputAudio: "input_audio",
|
|
3852
|
+
});
|
|
3853
|
+
});
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* @internal
|
|
3857
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3858
|
+
*/
|
|
3859
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics3$ {
|
|
3860
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema` instead. */
|
|
3861
|
+
export const inboundSchema =
|
|
3862
|
+
DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema;
|
|
3863
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema` instead. */
|
|
3864
|
+
export const outboundSchema =
|
|
3865
|
+
DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema;
|
|
3866
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$Outbound` instead. */
|
|
3867
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics3$Outbound;
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
export function deploymentCreateMetric2DeploymentsMetrics3ToJSON(
|
|
3871
|
+
deploymentCreateMetric2DeploymentsMetrics3:
|
|
3872
|
+
DeploymentCreateMetric2DeploymentsMetrics3,
|
|
3873
|
+
): string {
|
|
3874
|
+
return JSON.stringify(
|
|
3875
|
+
DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema.parse(
|
|
3876
|
+
deploymentCreateMetric2DeploymentsMetrics3,
|
|
3877
|
+
),
|
|
3878
|
+
);
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
export function deploymentCreateMetric2DeploymentsMetrics3FromJSON(
|
|
3882
|
+
jsonString: string,
|
|
3883
|
+
): SafeParseResult<
|
|
3884
|
+
DeploymentCreateMetric2DeploymentsMetrics3,
|
|
3885
|
+
SDKValidationError
|
|
3886
|
+
> {
|
|
3887
|
+
return safeParse(
|
|
3888
|
+
jsonString,
|
|
3889
|
+
(x) =>
|
|
3890
|
+
DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema.parse(
|
|
3891
|
+
JSON.parse(x),
|
|
3892
|
+
),
|
|
3893
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics3' from JSON`,
|
|
3894
|
+
);
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
/** @internal */
|
|
3898
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema:
|
|
3899
|
+
z.ZodNativeEnum<
|
|
3900
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
3901
|
+
> = z.nativeEnum(
|
|
3902
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type,
|
|
3903
|
+
);
|
|
3904
|
+
|
|
3905
|
+
/** @internal */
|
|
3906
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema:
|
|
3907
|
+
z.ZodNativeEnum<
|
|
3908
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
3909
|
+
> =
|
|
3910
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
3911
|
+
|
|
3912
|
+
/**
|
|
3913
|
+
* @internal
|
|
3914
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3915
|
+
*/
|
|
3916
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ {
|
|
3917
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema` instead. */
|
|
3918
|
+
export const inboundSchema =
|
|
3919
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
3920
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema` instead. */
|
|
3921
|
+
export const outboundSchema =
|
|
3922
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
/** @internal */
|
|
3926
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema:
|
|
3927
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsDetail> = z
|
|
3928
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsDetail);
|
|
3929
|
+
|
|
3930
|
+
/** @internal */
|
|
3931
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema:
|
|
3932
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsDetail> =
|
|
3933
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
3934
|
+
|
|
3935
|
+
/**
|
|
3936
|
+
* @internal
|
|
3937
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3938
|
+
*/
|
|
3939
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsDetail$ {
|
|
3940
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema` instead. */
|
|
3941
|
+
export const inboundSchema =
|
|
3942
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
3943
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema` instead. */
|
|
3944
|
+
export const outboundSchema =
|
|
3945
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
/** @internal */
|
|
3949
|
+
export const DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema:
|
|
3950
|
+
z.ZodType<
|
|
3951
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
3952
|
+
z.ZodTypeDef,
|
|
3953
|
+
unknown
|
|
3954
|
+
> = z.object({
|
|
3955
|
+
url: z.string(),
|
|
3956
|
+
detail: DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema
|
|
3957
|
+
.optional(),
|
|
3958
|
+
});
|
|
3959
|
+
|
|
3960
|
+
/** @internal */
|
|
3961
|
+
export type DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound = {
|
|
3962
|
+
url: string;
|
|
3963
|
+
detail?: string | undefined;
|
|
3964
|
+
};
|
|
3965
|
+
|
|
3966
|
+
/** @internal */
|
|
3967
|
+
export const DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema:
|
|
3968
|
+
z.ZodType<
|
|
3969
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound,
|
|
3970
|
+
z.ZodTypeDef,
|
|
3971
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl
|
|
3972
|
+
> = z.object({
|
|
3973
|
+
url: z.string(),
|
|
3974
|
+
detail: DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema
|
|
3975
|
+
.optional(),
|
|
3976
|
+
});
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* @internal
|
|
3980
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3981
|
+
*/
|
|
3982
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsImageUrl$ {
|
|
3983
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema` instead. */
|
|
3984
|
+
export const inboundSchema =
|
|
3985
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema;
|
|
3986
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema` instead. */
|
|
3987
|
+
export const outboundSchema =
|
|
3988
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema;
|
|
3989
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound` instead. */
|
|
3990
|
+
export type Outbound =
|
|
3991
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
export function deploymentCreateMetric2DeploymentsMetricsImageUrlToJSON(
|
|
3995
|
+
deploymentCreateMetric2DeploymentsMetricsImageUrl:
|
|
3996
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
3997
|
+
): string {
|
|
3998
|
+
return JSON.stringify(
|
|
3999
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema.parse(
|
|
4000
|
+
deploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
4001
|
+
),
|
|
4002
|
+
);
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
export function deploymentCreateMetric2DeploymentsMetricsImageUrlFromJSON(
|
|
4006
|
+
jsonString: string,
|
|
4007
|
+
): SafeParseResult<
|
|
4008
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
4009
|
+
SDKValidationError
|
|
4010
|
+
> {
|
|
4011
|
+
return safeParse(
|
|
4012
|
+
jsonString,
|
|
4013
|
+
(x) =>
|
|
4014
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema.parse(
|
|
4015
|
+
JSON.parse(x),
|
|
4016
|
+
),
|
|
4017
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsImageUrl' from JSON`,
|
|
4018
|
+
);
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
/** @internal */
|
|
4022
|
+
export const DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema:
|
|
4023
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics2, z.ZodTypeDef, unknown> =
|
|
4024
|
+
z.object({
|
|
4025
|
+
type:
|
|
4026
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema,
|
|
4027
|
+
image_url: z.lazy(() =>
|
|
4028
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema
|
|
4029
|
+
),
|
|
4030
|
+
}).transform((v) => {
|
|
4031
|
+
return remap$(v, {
|
|
4032
|
+
"image_url": "imageUrl",
|
|
4033
|
+
});
|
|
4034
|
+
});
|
|
4035
|
+
|
|
4036
|
+
/** @internal */
|
|
4037
|
+
export type DeploymentCreateMetric2DeploymentsMetrics2$Outbound = {
|
|
4038
|
+
type: string;
|
|
4039
|
+
image_url: DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound;
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
/** @internal */
|
|
4043
|
+
export const DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema:
|
|
4044
|
+
z.ZodType<
|
|
4045
|
+
DeploymentCreateMetric2DeploymentsMetrics2$Outbound,
|
|
4046
|
+
z.ZodTypeDef,
|
|
4047
|
+
DeploymentCreateMetric2DeploymentsMetrics2
|
|
4048
|
+
> = z.object({
|
|
4049
|
+
type:
|
|
4050
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema,
|
|
4051
|
+
imageUrl: z.lazy(() =>
|
|
4052
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema
|
|
4053
|
+
),
|
|
4054
|
+
}).transform((v) => {
|
|
4055
|
+
return remap$(v, {
|
|
4056
|
+
imageUrl: "image_url",
|
|
4057
|
+
});
|
|
4058
|
+
});
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* @internal
|
|
4062
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4063
|
+
*/
|
|
4064
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics2$ {
|
|
4065
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema` instead. */
|
|
4066
|
+
export const inboundSchema =
|
|
4067
|
+
DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema;
|
|
4068
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema` instead. */
|
|
4069
|
+
export const outboundSchema =
|
|
4070
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema;
|
|
4071
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$Outbound` instead. */
|
|
4072
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics2$Outbound;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
export function deploymentCreateMetric2DeploymentsMetrics2ToJSON(
|
|
4076
|
+
deploymentCreateMetric2DeploymentsMetrics2:
|
|
4077
|
+
DeploymentCreateMetric2DeploymentsMetrics2,
|
|
4078
|
+
): string {
|
|
4079
|
+
return JSON.stringify(
|
|
4080
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema.parse(
|
|
4081
|
+
deploymentCreateMetric2DeploymentsMetrics2,
|
|
4082
|
+
),
|
|
4083
|
+
);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
export function deploymentCreateMetric2DeploymentsMetrics2FromJSON(
|
|
4087
|
+
jsonString: string,
|
|
4088
|
+
): SafeParseResult<
|
|
4089
|
+
DeploymentCreateMetric2DeploymentsMetrics2,
|
|
4090
|
+
SDKValidationError
|
|
4091
|
+
> {
|
|
4092
|
+
return safeParse(
|
|
4093
|
+
jsonString,
|
|
4094
|
+
(x) =>
|
|
4095
|
+
DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema.parse(
|
|
4096
|
+
JSON.parse(x),
|
|
4097
|
+
),
|
|
4098
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics2' from JSON`,
|
|
4099
|
+
);
|
|
4100
|
+
}
|
|
4101
|
+
|
|
4102
|
+
/** @internal */
|
|
4103
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema:
|
|
4104
|
+
z.ZodNativeEnum<
|
|
4105
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
4106
|
+
> = z.nativeEnum(
|
|
4107
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType,
|
|
4108
|
+
);
|
|
4109
|
+
|
|
4110
|
+
/** @internal */
|
|
4111
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema:
|
|
4112
|
+
z.ZodNativeEnum<
|
|
4113
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
4114
|
+
> =
|
|
4115
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* @internal
|
|
4119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4120
|
+
*/
|
|
4121
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ {
|
|
4122
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema` instead. */
|
|
4123
|
+
export const inboundSchema =
|
|
4124
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
4125
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema` instead. */
|
|
4126
|
+
export const outboundSchema =
|
|
4127
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
/** @internal */
|
|
4131
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema:
|
|
4132
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics1, z.ZodTypeDef, unknown> =
|
|
4133
|
+
z.object({
|
|
4134
|
+
type:
|
|
4135
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema,
|
|
4136
|
+
text: z.string(),
|
|
4137
|
+
});
|
|
4138
|
+
|
|
4139
|
+
/** @internal */
|
|
4140
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1$Outbound = {
|
|
4141
|
+
type: string;
|
|
4142
|
+
text: string;
|
|
4143
|
+
};
|
|
4144
|
+
|
|
4145
|
+
/** @internal */
|
|
4146
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema:
|
|
4147
|
+
z.ZodType<
|
|
4148
|
+
DeploymentCreateMetric2DeploymentsMetrics1$Outbound,
|
|
4149
|
+
z.ZodTypeDef,
|
|
4150
|
+
DeploymentCreateMetric2DeploymentsMetrics1
|
|
4151
|
+
> = z.object({
|
|
4152
|
+
type:
|
|
4153
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema,
|
|
4154
|
+
text: z.string(),
|
|
4155
|
+
});
|
|
4156
|
+
|
|
4157
|
+
/**
|
|
4158
|
+
* @internal
|
|
4159
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4160
|
+
*/
|
|
4161
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics1$ {
|
|
4162
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema` instead. */
|
|
4163
|
+
export const inboundSchema =
|
|
4164
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema;
|
|
4165
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema` instead. */
|
|
4166
|
+
export const outboundSchema =
|
|
4167
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema;
|
|
4168
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$Outbound` instead. */
|
|
4169
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics1$Outbound;
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
export function deploymentCreateMetric2DeploymentsMetrics1ToJSON(
|
|
4173
|
+
deploymentCreateMetric2DeploymentsMetrics1:
|
|
4174
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
4175
|
+
): string {
|
|
4176
|
+
return JSON.stringify(
|
|
4177
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema.parse(
|
|
4178
|
+
deploymentCreateMetric2DeploymentsMetrics1,
|
|
4179
|
+
),
|
|
4180
|
+
);
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
export function deploymentCreateMetric2DeploymentsMetrics1FromJSON(
|
|
4184
|
+
jsonString: string,
|
|
4185
|
+
): SafeParseResult<
|
|
4186
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
4187
|
+
SDKValidationError
|
|
4188
|
+
> {
|
|
4189
|
+
return safeParse(
|
|
4190
|
+
jsonString,
|
|
4191
|
+
(x) =>
|
|
4192
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema.parse(
|
|
4193
|
+
JSON.parse(x),
|
|
4194
|
+
),
|
|
4195
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`,
|
|
4196
|
+
);
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
/** @internal */
|
|
4200
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema:
|
|
4201
|
+
z.ZodType<
|
|
4202
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4203
|
+
z.ZodTypeDef,
|
|
4204
|
+
unknown
|
|
4205
|
+
> = z.union([
|
|
4206
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4207
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4208
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4209
|
+
]);
|
|
4210
|
+
|
|
4211
|
+
/** @internal */
|
|
4212
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound =
|
|
4213
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4214
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4215
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound;
|
|
4216
|
+
|
|
4217
|
+
/** @internal */
|
|
4218
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema:
|
|
4219
|
+
z.ZodType<
|
|
4220
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound,
|
|
4221
|
+
z.ZodTypeDef,
|
|
4222
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2
|
|
4223
|
+
> = z.union([
|
|
4224
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4225
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
4226
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4227
|
+
]);
|
|
4228
|
+
|
|
2668
4229
|
/**
|
|
2669
4230
|
* @internal
|
|
2670
4231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2671
4232
|
*/
|
|
2672
|
-
export namespace
|
|
2673
|
-
/** @deprecated use `
|
|
2674
|
-
export const inboundSchema =
|
|
2675
|
-
|
|
2676
|
-
|
|
4233
|
+
export namespace DeploymentCreateMetricContentDeploymentsMetricsRequest2$ {
|
|
4234
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema` instead. */
|
|
4235
|
+
export const inboundSchema =
|
|
4236
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema;
|
|
4237
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema` instead. */
|
|
4238
|
+
export const outboundSchema =
|
|
4239
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema;
|
|
4240
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound` instead. */
|
|
4241
|
+
export type Outbound =
|
|
4242
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound;
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON(
|
|
4246
|
+
deploymentCreateMetricContentDeploymentsMetricsRequest2:
|
|
4247
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4248
|
+
): string {
|
|
4249
|
+
return JSON.stringify(
|
|
4250
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema
|
|
4251
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsRequest2),
|
|
4252
|
+
);
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON(
|
|
4256
|
+
jsonString: string,
|
|
4257
|
+
): SafeParseResult<
|
|
4258
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4259
|
+
SDKValidationError
|
|
4260
|
+
> {
|
|
4261
|
+
return safeParse(
|
|
4262
|
+
jsonString,
|
|
4263
|
+
(x) =>
|
|
4264
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema
|
|
4265
|
+
.parse(JSON.parse(x)),
|
|
4266
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequest2' from JSON`,
|
|
4267
|
+
);
|
|
2677
4268
|
}
|
|
2678
4269
|
|
|
2679
4270
|
/** @internal */
|
|
2680
|
-
export const
|
|
2681
|
-
|
|
4271
|
+
export const ChoicesContent$inboundSchema: z.ZodType<
|
|
4272
|
+
ChoicesContent,
|
|
2682
4273
|
z.ZodTypeDef,
|
|
2683
4274
|
unknown
|
|
2684
|
-
> = z.
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
4275
|
+
> = z.union([
|
|
4276
|
+
z.string(),
|
|
4277
|
+
z.array(z.union([
|
|
4278
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4279
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4280
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4281
|
+
])),
|
|
4282
|
+
]);
|
|
2688
4283
|
|
|
2689
4284
|
/** @internal */
|
|
2690
|
-
export type
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
4285
|
+
export type ChoicesContent$Outbound =
|
|
4286
|
+
| string
|
|
4287
|
+
| Array<
|
|
4288
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4289
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4290
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound
|
|
4291
|
+
>;
|
|
2694
4292
|
|
|
2695
4293
|
/** @internal */
|
|
2696
|
-
export const
|
|
2697
|
-
|
|
4294
|
+
export const ChoicesContent$outboundSchema: z.ZodType<
|
|
4295
|
+
ChoicesContent$Outbound,
|
|
2698
4296
|
z.ZodTypeDef,
|
|
2699
|
-
|
|
2700
|
-
> = z.
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
4297
|
+
ChoicesContent
|
|
4298
|
+
> = z.union([
|
|
4299
|
+
z.string(),
|
|
4300
|
+
z.array(z.union([
|
|
4301
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4302
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
4303
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4304
|
+
])),
|
|
4305
|
+
]);
|
|
2704
4306
|
|
|
2705
4307
|
/**
|
|
2706
4308
|
* @internal
|
|
2707
4309
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2708
4310
|
*/
|
|
2709
|
-
export namespace
|
|
2710
|
-
/** @deprecated use `
|
|
2711
|
-
export const inboundSchema =
|
|
2712
|
-
/** @deprecated use `
|
|
2713
|
-
export const outboundSchema =
|
|
2714
|
-
/** @deprecated use `
|
|
2715
|
-
export type Outbound =
|
|
4311
|
+
export namespace ChoicesContent$ {
|
|
4312
|
+
/** @deprecated use `ChoicesContent$inboundSchema` instead. */
|
|
4313
|
+
export const inboundSchema = ChoicesContent$inboundSchema;
|
|
4314
|
+
/** @deprecated use `ChoicesContent$outboundSchema` instead. */
|
|
4315
|
+
export const outboundSchema = ChoicesContent$outboundSchema;
|
|
4316
|
+
/** @deprecated use `ChoicesContent$Outbound` instead. */
|
|
4317
|
+
export type Outbound = ChoicesContent$Outbound;
|
|
2716
4318
|
}
|
|
2717
4319
|
|
|
2718
|
-
export function
|
|
2719
|
-
|
|
2720
|
-
): string {
|
|
2721
|
-
return JSON.stringify(MessageFunction$outboundSchema.parse(messageFunction));
|
|
4320
|
+
export function choicesContentToJSON(choicesContent: ChoicesContent): string {
|
|
4321
|
+
return JSON.stringify(ChoicesContent$outboundSchema.parse(choicesContent));
|
|
2722
4322
|
}
|
|
2723
4323
|
|
|
2724
|
-
export function
|
|
4324
|
+
export function choicesContentFromJSON(
|
|
2725
4325
|
jsonString: string,
|
|
2726
|
-
): SafeParseResult<
|
|
4326
|
+
): SafeParseResult<ChoicesContent, SDKValidationError> {
|
|
2727
4327
|
return safeParse(
|
|
2728
4328
|
jsonString,
|
|
2729
|
-
(x) =>
|
|
2730
|
-
`Failed to parse '
|
|
4329
|
+
(x) => ChoicesContent$inboundSchema.parse(JSON.parse(x)),
|
|
4330
|
+
`Failed to parse 'ChoicesContent' from JSON`,
|
|
2731
4331
|
);
|
|
2732
4332
|
}
|
|
2733
4333
|
|
|
2734
4334
|
/** @internal */
|
|
2735
|
-
export const
|
|
2736
|
-
|
|
4335
|
+
export const ChoicesUserMessage$inboundSchema: z.ZodType<
|
|
4336
|
+
ChoicesUserMessage,
|
|
2737
4337
|
z.ZodTypeDef,
|
|
2738
4338
|
unknown
|
|
2739
4339
|
> = z.object({
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
4340
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema,
|
|
4341
|
+
name: z.string().optional(),
|
|
4342
|
+
content: z.union([
|
|
4343
|
+
z.string(),
|
|
4344
|
+
z.array(z.union([
|
|
4345
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4346
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4347
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4348
|
+
])),
|
|
4349
|
+
]),
|
|
2744
4350
|
});
|
|
2745
4351
|
|
|
2746
4352
|
/** @internal */
|
|
2747
|
-
export type
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
4353
|
+
export type ChoicesUserMessage$Outbound = {
|
|
4354
|
+
role: string;
|
|
4355
|
+
name?: string | undefined;
|
|
4356
|
+
content:
|
|
4357
|
+
| string
|
|
4358
|
+
| Array<
|
|
4359
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4360
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4361
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound
|
|
4362
|
+
>;
|
|
2752
4363
|
};
|
|
2753
4364
|
|
|
2754
4365
|
/** @internal */
|
|
2755
|
-
export const
|
|
2756
|
-
|
|
4366
|
+
export const ChoicesUserMessage$outboundSchema: z.ZodType<
|
|
4367
|
+
ChoicesUserMessage$Outbound,
|
|
2757
4368
|
z.ZodTypeDef,
|
|
2758
|
-
|
|
4369
|
+
ChoicesUserMessage
|
|
2759
4370
|
> = z.object({
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
4371
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema,
|
|
4372
|
+
name: z.string().optional(),
|
|
4373
|
+
content: z.union([
|
|
4374
|
+
z.string(),
|
|
4375
|
+
z.array(z.union([
|
|
4376
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4377
|
+
z.lazy(() =>
|
|
4378
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema
|
|
4379
|
+
),
|
|
4380
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4381
|
+
])),
|
|
4382
|
+
]),
|
|
2764
4383
|
});
|
|
2765
4384
|
|
|
2766
4385
|
/**
|
|
2767
4386
|
* @internal
|
|
2768
4387
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2769
4388
|
*/
|
|
2770
|
-
export namespace
|
|
2771
|
-
/** @deprecated use `
|
|
2772
|
-
export const inboundSchema =
|
|
2773
|
-
/** @deprecated use `
|
|
2774
|
-
export const outboundSchema =
|
|
2775
|
-
/** @deprecated use `
|
|
2776
|
-
export type Outbound =
|
|
4389
|
+
export namespace ChoicesUserMessage$ {
|
|
4390
|
+
/** @deprecated use `ChoicesUserMessage$inboundSchema` instead. */
|
|
4391
|
+
export const inboundSchema = ChoicesUserMessage$inboundSchema;
|
|
4392
|
+
/** @deprecated use `ChoicesUserMessage$outboundSchema` instead. */
|
|
4393
|
+
export const outboundSchema = ChoicesUserMessage$outboundSchema;
|
|
4394
|
+
/** @deprecated use `ChoicesUserMessage$Outbound` instead. */
|
|
4395
|
+
export type Outbound = ChoicesUserMessage$Outbound;
|
|
2777
4396
|
}
|
|
2778
4397
|
|
|
2779
|
-
export function
|
|
2780
|
-
|
|
4398
|
+
export function choicesUserMessageToJSON(
|
|
4399
|
+
choicesUserMessage: ChoicesUserMessage,
|
|
2781
4400
|
): string {
|
|
2782
4401
|
return JSON.stringify(
|
|
2783
|
-
|
|
4402
|
+
ChoicesUserMessage$outboundSchema.parse(choicesUserMessage),
|
|
2784
4403
|
);
|
|
2785
4404
|
}
|
|
2786
4405
|
|
|
2787
|
-
export function
|
|
4406
|
+
export function choicesUserMessageFromJSON(
|
|
2788
4407
|
jsonString: string,
|
|
2789
|
-
): SafeParseResult<
|
|
4408
|
+
): SafeParseResult<ChoicesUserMessage, SDKValidationError> {
|
|
2790
4409
|
return safeParse(
|
|
2791
4410
|
jsonString,
|
|
2792
|
-
(x) =>
|
|
2793
|
-
`Failed to parse '
|
|
4411
|
+
(x) => ChoicesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4412
|
+
`Failed to parse 'ChoicesUserMessage' from JSON`,
|
|
2794
4413
|
);
|
|
2795
4414
|
}
|
|
2796
4415
|
|
|
2797
4416
|
/** @internal */
|
|
2798
|
-
export const
|
|
2799
|
-
|
|
4417
|
+
export const DeploymentCreateMetricChoicesRole$inboundSchema: z.ZodNativeEnum<
|
|
4418
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
4419
|
+
> = z.nativeEnum(DeploymentCreateMetricChoicesRole);
|
|
4420
|
+
|
|
4421
|
+
/** @internal */
|
|
4422
|
+
export const DeploymentCreateMetricChoicesRole$outboundSchema: z.ZodNativeEnum<
|
|
4423
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
4424
|
+
> = DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
4425
|
+
|
|
4426
|
+
/**
|
|
4427
|
+
* @internal
|
|
4428
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4429
|
+
*/
|
|
4430
|
+
export namespace DeploymentCreateMetricChoicesRole$ {
|
|
4431
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$inboundSchema` instead. */
|
|
4432
|
+
export const inboundSchema = DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
4433
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$outboundSchema` instead. */
|
|
4434
|
+
export const outboundSchema =
|
|
4435
|
+
DeploymentCreateMetricChoicesRole$outboundSchema;
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4438
|
+
/** @internal */
|
|
4439
|
+
export const ChoicesSystemMessage$inboundSchema: z.ZodType<
|
|
4440
|
+
ChoicesSystemMessage,
|
|
2800
4441
|
z.ZodTypeDef,
|
|
2801
4442
|
unknown
|
|
2802
4443
|
> = z.object({
|
|
2803
|
-
role:
|
|
2804
|
-
content: z.
|
|
2805
|
-
|
|
2806
|
-
}).transform((v) => {
|
|
2807
|
-
return remap$(v, {
|
|
2808
|
-
"tool_calls": "toolCalls",
|
|
2809
|
-
});
|
|
4444
|
+
role: DeploymentCreateMetricChoicesRole$inboundSchema,
|
|
4445
|
+
content: z.string(),
|
|
4446
|
+
name: z.string().optional(),
|
|
2810
4447
|
});
|
|
2811
4448
|
|
|
2812
4449
|
/** @internal */
|
|
2813
|
-
export type
|
|
4450
|
+
export type ChoicesSystemMessage$Outbound = {
|
|
2814
4451
|
role: string;
|
|
2815
|
-
content
|
|
2816
|
-
|
|
4452
|
+
content: string;
|
|
4453
|
+
name?: string | undefined;
|
|
2817
4454
|
};
|
|
2818
4455
|
|
|
2819
4456
|
/** @internal */
|
|
2820
|
-
export const
|
|
2821
|
-
|
|
4457
|
+
export const ChoicesSystemMessage$outboundSchema: z.ZodType<
|
|
4458
|
+
ChoicesSystemMessage$Outbound,
|
|
2822
4459
|
z.ZodTypeDef,
|
|
2823
|
-
|
|
4460
|
+
ChoicesSystemMessage
|
|
2824
4461
|
> = z.object({
|
|
2825
|
-
role:
|
|
2826
|
-
content: z.
|
|
2827
|
-
|
|
2828
|
-
}).transform((v) => {
|
|
2829
|
-
return remap$(v, {
|
|
2830
|
-
toolCalls: "tool_calls",
|
|
2831
|
-
});
|
|
4462
|
+
role: DeploymentCreateMetricChoicesRole$outboundSchema,
|
|
4463
|
+
content: z.string(),
|
|
4464
|
+
name: z.string().optional(),
|
|
2832
4465
|
});
|
|
2833
4466
|
|
|
2834
4467
|
/**
|
|
2835
4468
|
* @internal
|
|
2836
4469
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2837
4470
|
*/
|
|
2838
|
-
export namespace
|
|
2839
|
-
/** @deprecated use `
|
|
2840
|
-
export const inboundSchema =
|
|
2841
|
-
/** @deprecated use `
|
|
2842
|
-
export const outboundSchema =
|
|
2843
|
-
/** @deprecated use `
|
|
2844
|
-
export type Outbound =
|
|
4471
|
+
export namespace ChoicesSystemMessage$ {
|
|
4472
|
+
/** @deprecated use `ChoicesSystemMessage$inboundSchema` instead. */
|
|
4473
|
+
export const inboundSchema = ChoicesSystemMessage$inboundSchema;
|
|
4474
|
+
/** @deprecated use `ChoicesSystemMessage$outboundSchema` instead. */
|
|
4475
|
+
export const outboundSchema = ChoicesSystemMessage$outboundSchema;
|
|
4476
|
+
/** @deprecated use `ChoicesSystemMessage$Outbound` instead. */
|
|
4477
|
+
export type Outbound = ChoicesSystemMessage$Outbound;
|
|
2845
4478
|
}
|
|
2846
4479
|
|
|
2847
|
-
export function
|
|
2848
|
-
|
|
4480
|
+
export function choicesSystemMessageToJSON(
|
|
4481
|
+
choicesSystemMessage: ChoicesSystemMessage,
|
|
4482
|
+
): string {
|
|
4483
|
+
return JSON.stringify(
|
|
4484
|
+
ChoicesSystemMessage$outboundSchema.parse(choicesSystemMessage),
|
|
4485
|
+
);
|
|
2849
4486
|
}
|
|
2850
4487
|
|
|
2851
|
-
export function
|
|
4488
|
+
export function choicesSystemMessageFromJSON(
|
|
2852
4489
|
jsonString: string,
|
|
2853
|
-
): SafeParseResult<
|
|
4490
|
+
): SafeParseResult<ChoicesSystemMessage, SDKValidationError> {
|
|
2854
4491
|
return safeParse(
|
|
2855
4492
|
jsonString,
|
|
2856
|
-
(x) =>
|
|
2857
|
-
`Failed to parse '
|
|
4493
|
+
(x) => ChoicesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4494
|
+
`Failed to parse 'ChoicesSystemMessage' from JSON`,
|
|
2858
4495
|
);
|
|
2859
4496
|
}
|
|
2860
4497
|
|
|
2861
4498
|
/** @internal */
|
|
2862
|
-
export const
|
|
2863
|
-
|
|
2864
|
-
z.lazy(() => Message2$inboundSchema),
|
|
2865
|
-
z.lazy(() => Message3$inboundSchema),
|
|
2866
|
-
z.lazy(() => Message1$inboundSchema),
|
|
2867
|
-
]);
|
|
4499
|
+
export const ChoicesRole$inboundSchema: z.ZodNativeEnum<typeof ChoicesRole> = z
|
|
4500
|
+
.nativeEnum(ChoicesRole);
|
|
2868
4501
|
|
|
2869
4502
|
/** @internal */
|
|
2870
|
-
export
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
4503
|
+
export const ChoicesRole$outboundSchema: z.ZodNativeEnum<typeof ChoicesRole> =
|
|
4504
|
+
ChoicesRole$inboundSchema;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* @internal
|
|
4508
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4509
|
+
*/
|
|
4510
|
+
export namespace ChoicesRole$ {
|
|
4511
|
+
/** @deprecated use `ChoicesRole$inboundSchema` instead. */
|
|
4512
|
+
export const inboundSchema = ChoicesRole$inboundSchema;
|
|
4513
|
+
/** @deprecated use `ChoicesRole$outboundSchema` instead. */
|
|
4514
|
+
export const outboundSchema = ChoicesRole$outboundSchema;
|
|
4515
|
+
}
|
|
2874
4516
|
|
|
2875
4517
|
/** @internal */
|
|
2876
|
-
export const
|
|
2877
|
-
|
|
4518
|
+
export const ChoicesDeveloperMessage$inboundSchema: z.ZodType<
|
|
4519
|
+
ChoicesDeveloperMessage,
|
|
2878
4520
|
z.ZodTypeDef,
|
|
2879
|
-
|
|
2880
|
-
> = z.
|
|
2881
|
-
|
|
2882
|
-
z.
|
|
2883
|
-
z.
|
|
2884
|
-
|
|
4521
|
+
unknown
|
|
4522
|
+
> = z.object({
|
|
4523
|
+
role: ChoicesRole$inboundSchema,
|
|
4524
|
+
content: z.string(),
|
|
4525
|
+
name: z.string().optional(),
|
|
4526
|
+
});
|
|
4527
|
+
|
|
4528
|
+
/** @internal */
|
|
4529
|
+
export type ChoicesDeveloperMessage$Outbound = {
|
|
4530
|
+
role: string;
|
|
4531
|
+
content: string;
|
|
4532
|
+
name?: string | undefined;
|
|
4533
|
+
};
|
|
4534
|
+
|
|
4535
|
+
/** @internal */
|
|
4536
|
+
export const ChoicesDeveloperMessage$outboundSchema: z.ZodType<
|
|
4537
|
+
ChoicesDeveloperMessage$Outbound,
|
|
4538
|
+
z.ZodTypeDef,
|
|
4539
|
+
ChoicesDeveloperMessage
|
|
4540
|
+
> = z.object({
|
|
4541
|
+
role: ChoicesRole$outboundSchema,
|
|
4542
|
+
content: z.string(),
|
|
4543
|
+
name: z.string().optional(),
|
|
4544
|
+
});
|
|
2885
4545
|
|
|
2886
4546
|
/**
|
|
2887
4547
|
* @internal
|
|
2888
4548
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2889
4549
|
*/
|
|
2890
|
-
export namespace
|
|
2891
|
-
/** @deprecated use `
|
|
2892
|
-
export const inboundSchema =
|
|
2893
|
-
/** @deprecated use `
|
|
2894
|
-
export const outboundSchema =
|
|
2895
|
-
/** @deprecated use `
|
|
2896
|
-
export type Outbound =
|
|
4550
|
+
export namespace ChoicesDeveloperMessage$ {
|
|
4551
|
+
/** @deprecated use `ChoicesDeveloperMessage$inboundSchema` instead. */
|
|
4552
|
+
export const inboundSchema = ChoicesDeveloperMessage$inboundSchema;
|
|
4553
|
+
/** @deprecated use `ChoicesDeveloperMessage$outboundSchema` instead. */
|
|
4554
|
+
export const outboundSchema = ChoicesDeveloperMessage$outboundSchema;
|
|
4555
|
+
/** @deprecated use `ChoicesDeveloperMessage$Outbound` instead. */
|
|
4556
|
+
export type Outbound = ChoicesDeveloperMessage$Outbound;
|
|
2897
4557
|
}
|
|
2898
4558
|
|
|
2899
|
-
export function
|
|
2900
|
-
|
|
4559
|
+
export function choicesDeveloperMessageToJSON(
|
|
4560
|
+
choicesDeveloperMessage: ChoicesDeveloperMessage,
|
|
4561
|
+
): string {
|
|
4562
|
+
return JSON.stringify(
|
|
4563
|
+
ChoicesDeveloperMessage$outboundSchema.parse(choicesDeveloperMessage),
|
|
4564
|
+
);
|
|
2901
4565
|
}
|
|
2902
4566
|
|
|
2903
|
-
export function
|
|
4567
|
+
export function choicesDeveloperMessageFromJSON(
|
|
2904
4568
|
jsonString: string,
|
|
2905
|
-
): SafeParseResult<
|
|
4569
|
+
): SafeParseResult<ChoicesDeveloperMessage, SDKValidationError> {
|
|
2906
4570
|
return safeParse(
|
|
2907
4571
|
jsonString,
|
|
2908
|
-
(x) =>
|
|
2909
|
-
`Failed to parse '
|
|
4572
|
+
(x) => ChoicesDeveloperMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4573
|
+
`Failed to parse 'ChoicesDeveloperMessage' from JSON`,
|
|
2910
4574
|
);
|
|
2911
4575
|
}
|
|
2912
4576
|
|
|
2913
4577
|
/** @internal */
|
|
2914
4578
|
export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
|
|
2915
|
-
z.
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
finish_reason: z.nullable(z.string()).optional(),
|
|
2923
|
-
}).transform((v) => {
|
|
2924
|
-
return remap$(v, {
|
|
2925
|
-
"finish_reason": "finishReason",
|
|
2926
|
-
});
|
|
2927
|
-
});
|
|
4579
|
+
z.union([
|
|
4580
|
+
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
4581
|
+
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
4582
|
+
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
4583
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
4584
|
+
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
4585
|
+
]);
|
|
2928
4586
|
|
|
2929
4587
|
/** @internal */
|
|
2930
|
-
export type Choices$Outbound =
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
| undefined;
|
|
2937
|
-
finish_reason?: string | null | undefined;
|
|
2938
|
-
};
|
|
4588
|
+
export type Choices$Outbound =
|
|
4589
|
+
| ChoicesDeveloperMessage$Outbound
|
|
4590
|
+
| ChoicesSystemMessage$Outbound
|
|
4591
|
+
| ChoicesUserMessage$Outbound
|
|
4592
|
+
| ChoicesToolMessage$Outbound
|
|
4593
|
+
| ChoicesAssistantMessage$Outbound;
|
|
2939
4594
|
|
|
2940
4595
|
/** @internal */
|
|
2941
4596
|
export const Choices$outboundSchema: z.ZodType<
|
|
2942
4597
|
Choices$Outbound,
|
|
2943
4598
|
z.ZodTypeDef,
|
|
2944
4599
|
Choices
|
|
2945
|
-
> = z.
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
finishReason: z.nullable(z.string()).optional(),
|
|
2953
|
-
}).transform((v) => {
|
|
2954
|
-
return remap$(v, {
|
|
2955
|
-
finishReason: "finish_reason",
|
|
2956
|
-
});
|
|
2957
|
-
});
|
|
4600
|
+
> = z.union([
|
|
4601
|
+
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
4602
|
+
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
4603
|
+
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
4604
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
4605
|
+
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
4606
|
+
]);
|
|
2958
4607
|
|
|
2959
4608
|
/**
|
|
2960
4609
|
* @internal
|
|
@@ -3044,14 +4693,26 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
3044
4693
|
performance: z.lazy(() => Performance$inboundSchema).optional(),
|
|
3045
4694
|
messages: z.array(
|
|
3046
4695
|
z.union([
|
|
3047
|
-
z.lazy(() =>
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
z.lazy(() =>
|
|
3051
|
-
z.lazy(() =>
|
|
4696
|
+
z.lazy(() =>
|
|
4697
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema
|
|
4698
|
+
),
|
|
4699
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
|
|
4700
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
4701
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
4702
|
+
z.lazy(() =>
|
|
4703
|
+
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema
|
|
4704
|
+
),
|
|
4705
|
+
]),
|
|
4706
|
+
).optional(),
|
|
4707
|
+
choices: z.array(
|
|
4708
|
+
z.union([
|
|
4709
|
+
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
4710
|
+
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
4711
|
+
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
4712
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
4713
|
+
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
3052
4714
|
]),
|
|
3053
4715
|
).optional(),
|
|
3054
|
-
choices: z.array(z.lazy(() => Choices$inboundSchema)).optional(),
|
|
3055
4716
|
feedback: z.lazy(() => Feedback$inboundSchema).optional(),
|
|
3056
4717
|
});
|
|
3057
4718
|
|
|
@@ -3062,14 +4723,22 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
|
|
|
3062
4723
|
performance?: Performance$Outbound | undefined;
|
|
3063
4724
|
messages?:
|
|
3064
4725
|
| Array<
|
|
3065
|
-
|
|
|
3066
|
-
|
|
|
3067
|
-
|
|
|
3068
|
-
|
|
|
3069
|
-
|
|
|
4726
|
+
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
4727
|
+
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
4728
|
+
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
4729
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
4730
|
+
| DeploymentCreateMetricMessagesAssistantMessage$Outbound
|
|
4731
|
+
>
|
|
4732
|
+
| undefined;
|
|
4733
|
+
choices?:
|
|
4734
|
+
| Array<
|
|
4735
|
+
| ChoicesDeveloperMessage$Outbound
|
|
4736
|
+
| ChoicesSystemMessage$Outbound
|
|
4737
|
+
| ChoicesUserMessage$Outbound
|
|
4738
|
+
| ChoicesToolMessage$Outbound
|
|
4739
|
+
| ChoicesAssistantMessage$Outbound
|
|
3070
4740
|
>
|
|
3071
4741
|
| undefined;
|
|
3072
|
-
choices?: Array<Choices$Outbound> | undefined;
|
|
3073
4742
|
feedback?: Feedback$Outbound | undefined;
|
|
3074
4743
|
};
|
|
3075
4744
|
|
|
@@ -3084,14 +4753,26 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
3084
4753
|
performance: z.lazy(() => Performance$outboundSchema).optional(),
|
|
3085
4754
|
messages: z.array(
|
|
3086
4755
|
z.union([
|
|
3087
|
-
z.lazy(() =>
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
z.lazy(() =>
|
|
3091
|
-
z.lazy(() =>
|
|
4756
|
+
z.lazy(() =>
|
|
4757
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema
|
|
4758
|
+
),
|
|
4759
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
|
|
4760
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
4761
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
4762
|
+
z.lazy(() =>
|
|
4763
|
+
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema
|
|
4764
|
+
),
|
|
4765
|
+
]),
|
|
4766
|
+
).optional(),
|
|
4767
|
+
choices: z.array(
|
|
4768
|
+
z.union([
|
|
4769
|
+
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
4770
|
+
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
4771
|
+
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
4772
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
4773
|
+
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
3092
4774
|
]),
|
|
3093
4775
|
).optional(),
|
|
3094
|
-
choices: z.array(z.lazy(() => Choices$outboundSchema)).optional(),
|
|
3095
4776
|
feedback: z.lazy(() => Feedback$outboundSchema).optional(),
|
|
3096
4777
|
});
|
|
3097
4778
|
|