@orq-ai/node 3.2.0-rc.24 → 3.2.0-rc.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/bin/mcp-server.js +2187 -685
  2. package/bin/mcp-server.js.map +26 -26
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/cli/start/command.d.ts.map +1 -1
  7. package/mcp-server/cli/start/command.js +9 -0
  8. package/mcp-server/cli/start/command.js.map +1 -1
  9. package/mcp-server/cli/start/impl.d.ts +1 -0
  10. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  11. package/mcp-server/cli/start/impl.js +2 -0
  12. package/mcp-server/cli/start/impl.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts +1 -0
  15. package/mcp-server/server.d.ts.map +1 -1
  16. package/mcp-server/server.js +3 -2
  17. package/mcp-server/server.js.map +1 -1
  18. package/mcp-server/tools.d.ts +1 -1
  19. package/mcp-server/tools.d.ts.map +1 -1
  20. package/mcp-server/tools.js +4 -1
  21. package/mcp-server/tools.js.map +1 -1
  22. package/models/components/deployments.d.ts +1755 -439
  23. package/models/components/deployments.d.ts.map +1 -1
  24. package/models/components/deployments.js +1664 -401
  25. package/models/components/deployments.js.map +1 -1
  26. package/models/operations/bulkcreatedatapoints.js +2 -2
  27. package/models/operations/createcontact.js +2 -2
  28. package/models/operations/createdataset.js +2 -2
  29. package/models/operations/createdatasetitem.js +2 -2
  30. package/models/operations/deploymentcreatemetric.d.ts +790 -132
  31. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  32. package/models/operations/deploymentcreatemetric.js +770 -143
  33. package/models/operations/deploymentcreatemetric.js.map +1 -1
  34. package/models/operations/deploymentgetconfig.d.ts +1863 -547
  35. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  36. package/models/operations/deploymentgetconfig.js +1814 -546
  37. package/models/operations/deploymentgetconfig.js.map +1 -1
  38. package/models/operations/deploymentinvoke.d.ts +17 -17
  39. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  40. package/models/operations/deploymentinvoke.js +20 -20
  41. package/models/operations/deploymentinvoke.js.map +1 -1
  42. package/models/operations/fileget.js +2 -2
  43. package/models/operations/filelist.js +2 -2
  44. package/models/operations/fileupload.js +2 -2
  45. package/models/operations/listdatasetdatapoints.js +2 -2
  46. package/models/operations/listdatasets.js +2 -2
  47. package/models/operations/retrievedatapoint.js +2 -2
  48. package/models/operations/retrievedataset.js +2 -2
  49. package/models/operations/updatedatapoint.js +2 -2
  50. package/models/operations/updatedataset.js +2 -2
  51. package/models/operations/updateprompt.d.ts +16 -16
  52. package/models/operations/updateprompt.d.ts.map +1 -1
  53. package/models/operations/updateprompt.js +26 -27
  54. package/models/operations/updateprompt.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/lib/config.ts +3 -3
  57. package/src/mcp-server/cli/start/command.ts +9 -0
  58. package/src/mcp-server/cli/start/impl.ts +3 -0
  59. package/src/mcp-server/mcp-server.ts +1 -1
  60. package/src/mcp-server/server.ts +10 -2
  61. package/src/mcp-server/tools.ts +5 -0
  62. package/src/models/components/deployments.ts +3134 -673
  63. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  64. package/src/models/operations/createcontact.ts +2 -2
  65. package/src/models/operations/createdataset.ts +2 -2
  66. package/src/models/operations/createdatasetitem.ts +2 -2
  67. package/src/models/operations/deploymentcreatemetric.ts +1799 -327
  68. package/src/models/operations/deploymentgetconfig.ts +3619 -1003
  69. package/src/models/operations/deploymentinvoke.ts +32 -28
  70. package/src/models/operations/fileget.ts +2 -2
  71. package/src/models/operations/filelist.ts +2 -2
  72. package/src/models/operations/fileupload.ts +2 -2
  73. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  74. package/src/models/operations/listdatasets.ts +2 -2
  75. package/src/models/operations/retrievedatapoint.ts +2 -2
  76. package/src/models/operations/retrievedataset.ts +2 -2
  77. package/src/models/operations/updatedatapoint.ts +2 -2
  78. package/src/models/operations/updatedataset.ts +2 -2
  79. package/src/models/operations/updateprompt.ts +34 -30
@@ -39,25 +39,252 @@ export type Performance = {
39
39
  };
40
40
 
41
41
  /**
42
- * The role of the prompt message
42
+ * The role of the messages author, in this case tool.
43
43
  */
44
- export const DeploymentCreateMetricRole = {
45
- System: "system",
46
- Assistant: "assistant",
44
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role =
45
+ {
46
+ Tool: "tool",
47
+ } as const;
48
+ /**
49
+ * The role of the messages author, in this case tool.
50
+ */
51
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role =
52
+ ClosedEnum<
53
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role
54
+ >;
55
+
56
+ /**
57
+ * The contents of the tool message.
58
+ */
59
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent =
60
+ | string
61
+ | Array<string>;
62
+
63
+ export type DeploymentCreateMetricMessages5 = {
64
+ /**
65
+ * The role of the messages author, in this case tool.
66
+ */
67
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role;
68
+ /**
69
+ * The contents of the tool message.
70
+ */
71
+ content: string | Array<string>;
72
+ /**
73
+ * Tool call that this message is responding to.
74
+ */
75
+ toolCallId: string;
76
+ };
77
+
78
+ /**
79
+ * The type of the content part.
80
+ */
81
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType =
82
+ {
83
+ Refusal: "refusal",
84
+ } as const;
85
+ /**
86
+ * The type of the content part.
87
+ */
88
+ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType =
89
+ ClosedEnum<
90
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType
91
+ >;
92
+
93
+ export type DeploymentCreateMetric2DeploymentsMetrics2 = {
94
+ /**
95
+ * The type of the content part.
96
+ */
97
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType;
98
+ /**
99
+ * The refusal message generated by the model.
100
+ */
101
+ refusal: string;
102
+ };
103
+
104
+ /**
105
+ * The type of the content part.
106
+ */
107
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType = {
108
+ Text: "text",
109
+ } as const;
110
+ /**
111
+ * The type of the content part.
112
+ */
113
+ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType =
114
+ ClosedEnum<
115
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
116
+ >;
117
+
118
+ export type DeploymentCreateMetric2DeploymentsMetrics1 = {
119
+ /**
120
+ * The type of the content part.
121
+ */
122
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType;
123
+ /**
124
+ * The text content.
125
+ */
126
+ text: string;
127
+ };
128
+
129
+ export type DeploymentCreateMetricContentDeploymentsMetrics2 =
130
+ | DeploymentCreateMetric2DeploymentsMetrics1
131
+ | DeploymentCreateMetric2DeploymentsMetrics2;
132
+
133
+ /**
134
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
135
+ */
136
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsContent =
137
+ | string
138
+ | Array<
139
+ | DeploymentCreateMetric2DeploymentsMetrics1
140
+ | DeploymentCreateMetric2DeploymentsMetrics2
141
+ >;
142
+
143
+ /**
144
+ * The role of the messages author, in this case `assistant`.
145
+ */
146
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole =
147
+ {
148
+ Assistant: "assistant",
149
+ } as const;
150
+ /**
151
+ * The role of the messages author, in this case `assistant`.
152
+ */
153
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole =
154
+ ClosedEnum<
155
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
156
+ >;
157
+
158
+ /**
159
+ * Data about a previous audio response from the model.
160
+ */
161
+ export type DeploymentCreateMetricMessagesAudio = {
162
+ /**
163
+ * Unique identifier for a previous audio response from the model.
164
+ */
165
+ id: string;
166
+ };
167
+
168
+ /**
169
+ * The type of the tool. Currently, only `5` is supported.
170
+ */
171
+ export const DeploymentCreateMetricMessagesType = {
172
+ Function: "function",
173
+ } as const;
174
+ /**
175
+ * The type of the tool. Currently, only `5` is supported.
176
+ */
177
+ export type DeploymentCreateMetricMessagesType = ClosedEnum<
178
+ typeof DeploymentCreateMetricMessagesType
179
+ >;
180
+
181
+ export type DeploymentCreateMetricMessagesFunction = {
182
+ /**
183
+ * The name of the function to call.
184
+ */
185
+ name?: string | undefined;
186
+ /**
187
+ * 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.
188
+ */
189
+ arguments?: string | undefined;
190
+ };
191
+
192
+ export type DeploymentCreateMetricMessagesToolCalls = {
193
+ /**
194
+ * The ID of the tool call.
195
+ */
196
+ id: string;
197
+ /**
198
+ * The type of the tool. Currently, only `5` is supported.
199
+ */
200
+ type: DeploymentCreateMetricMessagesType;
201
+ function: DeploymentCreateMetricMessagesFunction;
202
+ };
203
+
204
+ export type DeploymentCreateMetricMessages4 = {
205
+ /**
206
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
207
+ */
208
+ content?:
209
+ | string
210
+ | Array<
211
+ | DeploymentCreateMetric2DeploymentsMetrics1
212
+ | DeploymentCreateMetric2DeploymentsMetrics2
213
+ >
214
+ | undefined;
215
+ /**
216
+ * The refusal message by the assistant.
217
+ */
218
+ refusal?: string | null | undefined;
219
+ /**
220
+ * The role of the messages author, in this case `assistant`.
221
+ */
222
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole;
223
+ /**
224
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
225
+ */
226
+ name?: string | undefined;
227
+ /**
228
+ * Data about a previous audio response from the model.
229
+ */
230
+ audio?: DeploymentCreateMetricMessagesAudio | null | undefined;
231
+ /**
232
+ * The tool calls generated by the model, such as function calls.
233
+ */
234
+ toolCalls?: Array<DeploymentCreateMetricMessagesToolCalls> | undefined;
235
+ };
236
+
237
+ /**
238
+ * The role of the messages author, in this case `user`.
239
+ */
240
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole = {
47
241
  User: "user",
48
- Exception: "exception",
49
- Tool: "tool",
50
- Prompt: "prompt",
51
- Correction: "correction",
52
- ExpectedOutput: "expected_output",
53
242
  } as const;
54
243
  /**
55
- * The role of the prompt message
244
+ * The role of the messages author, in this case `user`.
245
+ */
246
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole =
247
+ ClosedEnum<
248
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
249
+ >;
250
+
251
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestType = {
252
+ InputAudio: "input_audio",
253
+ } as const;
254
+ export type DeploymentCreateMetric2DeploymentsMetricsRequestType = ClosedEnum<
255
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestType
256
+ >;
257
+
258
+ /**
259
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
260
+ */
261
+ export const DeploymentCreateMetric2Format = {
262
+ Mp3: "mp3",
263
+ Wav: "wav",
264
+ } as const;
265
+ /**
266
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
56
267
  */
57
- export type DeploymentCreateMetricRole = ClosedEnum<
58
- typeof DeploymentCreateMetricRole
268
+ export type DeploymentCreateMetric2Format = ClosedEnum<
269
+ typeof DeploymentCreateMetric2Format
59
270
  >;
60
271
 
272
+ export type DeploymentCreateMetric2InputAudio = {
273
+ /**
274
+ * Base64 encoded audio data.
275
+ */
276
+ data: string;
277
+ /**
278
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
279
+ */
280
+ format: DeploymentCreateMetric2Format;
281
+ };
282
+
283
+ export type DeploymentCreateMetric23 = {
284
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestType;
285
+ inputAudio: DeploymentCreateMetric2InputAudio;
286
+ };
287
+
61
288
  export const DeploymentCreateMetric2DeploymentsMetricsType = {
62
289
  ImageUrl: "image_url",
63
290
  } as const;
@@ -65,20 +292,32 @@ export type DeploymentCreateMetric2DeploymentsMetricsType = ClosedEnum<
65
292
  typeof DeploymentCreateMetric2DeploymentsMetricsType
66
293
  >;
67
294
 
295
+ /**
296
+ * Specifies the detail level of the image.
297
+ */
298
+ export const DeploymentCreateMetric2Detail = {
299
+ Low: "low",
300
+ High: "high",
301
+ Auto: "auto",
302
+ } as const;
303
+ /**
304
+ * Specifies the detail level of the image.
305
+ */
306
+ export type DeploymentCreateMetric2Detail = ClosedEnum<
307
+ typeof DeploymentCreateMetric2Detail
308
+ >;
309
+
68
310
  export type DeploymentCreateMetric2ImageUrl = {
69
311
  /**
70
- * Either a URL of the image or the base64 encoded data URI.
312
+ * Either a URL of the image or the base64 encoded image data.
71
313
  */
72
314
  url: string;
73
315
  /**
74
- * Specifies the detail level of the image. Currently only supported with OpenAI models
316
+ * Specifies the detail level of the image.
75
317
  */
76
- detail?: string | undefined;
318
+ detail?: DeploymentCreateMetric2Detail | undefined;
77
319
  };
78
320
 
79
- /**
80
- * The image part of the prompt message. Only supported with vision models.
81
- */
82
321
  export type DeploymentCreateMetric22 = {
83
322
  type: DeploymentCreateMetric2DeploymentsMetricsType;
84
323
  imageUrl: DeploymentCreateMetric2ImageUrl;
@@ -91,9 +330,6 @@ export type DeploymentCreateMetric2Type = ClosedEnum<
91
330
  typeof DeploymentCreateMetric2Type
92
331
  >;
93
332
 
94
- /**
95
- * Text content part of a prompt message
96
- */
97
333
  export type DeploymentCreateMetric21 = {
98
334
  type: DeploymentCreateMetric2Type;
99
335
  text: string;
@@ -101,49 +337,104 @@ export type DeploymentCreateMetric21 = {
101
337
 
102
338
  export type DeploymentCreateMetricContent2 =
103
339
  | DeploymentCreateMetric21
104
- | DeploymentCreateMetric22;
340
+ | DeploymentCreateMetric22
341
+ | DeploymentCreateMetric23;
105
342
 
106
343
  /**
107
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
344
+ * The contents of the user message.
108
345
  */
109
- export type DeploymentCreateMetricContent =
346
+ export type DeploymentCreateMetricMessagesContent =
110
347
  | string
111
- | Array<DeploymentCreateMetric21 | DeploymentCreateMetric22>;
348
+ | Array<
349
+ | DeploymentCreateMetric21
350
+ | DeploymentCreateMetric22
351
+ | DeploymentCreateMetric23
352
+ >;
112
353
 
113
- export const DeploymentCreateMetricType = {
114
- Function: "function",
354
+ export type DeploymentCreateMetricMessages3 = {
355
+ /**
356
+ * The role of the messages author, in this case `user`.
357
+ */
358
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole;
359
+ /**
360
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
361
+ */
362
+ name?: string | undefined;
363
+ /**
364
+ * The contents of the user message.
365
+ */
366
+ content:
367
+ | string
368
+ | Array<
369
+ | DeploymentCreateMetric21
370
+ | DeploymentCreateMetric22
371
+ | DeploymentCreateMetric23
372
+ >;
373
+ };
374
+
375
+ /**
376
+ * The role of the messages author, in this case `system`.
377
+ */
378
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRole = {
379
+ System: "system",
115
380
  } as const;
116
- export type DeploymentCreateMetricType = ClosedEnum<
117
- typeof DeploymentCreateMetricType
381
+ /**
382
+ * The role of the messages author, in this case `system`.
383
+ */
384
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRole = ClosedEnum<
385
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole
118
386
  >;
119
387
 
120
- export type DeploymentCreateMetricFunction = {
121
- name: string;
388
+ export type DeploymentCreateMetricMessages2 = {
122
389
  /**
123
- * JSON string arguments for the functions
390
+ * The role of the messages author, in this case `system`.
124
391
  */
125
- arguments: string;
392
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRole;
393
+ /**
394
+ * The contents of the system message.
395
+ */
396
+ content: string;
397
+ /**
398
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
399
+ */
400
+ name?: string | undefined;
126
401
  };
127
402
 
128
- export type DeploymentCreateMetricToolCalls = {
129
- id?: string | undefined;
130
- index?: number | undefined;
131
- type: DeploymentCreateMetricType;
132
- function: DeploymentCreateMetricFunction;
133
- };
403
+ /**
404
+ * The role of the messages author, in this case `developer`.
405
+ */
406
+ export const DeploymentCreateMetricMessagesRole = {
407
+ Developer: "developer",
408
+ } as const;
409
+ /**
410
+ * The role of the messages author, in this case `developer`.
411
+ */
412
+ export type DeploymentCreateMetricMessagesRole = ClosedEnum<
413
+ typeof DeploymentCreateMetricMessagesRole
414
+ >;
134
415
 
135
- export type DeploymentCreateMetricMessages = {
416
+ export type DeploymentCreateMetricMessages1 = {
136
417
  /**
137
- * The role of the prompt message
418
+ * The role of the messages author, in this case `developer`.
419
+ */
420
+ role: DeploymentCreateMetricMessagesRole;
421
+ /**
422
+ * The contents of the developer message.
138
423
  */
139
- role: DeploymentCreateMetricRole;
424
+ content: string;
140
425
  /**
141
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
426
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
142
427
  */
143
- content: string | Array<DeploymentCreateMetric21 | DeploymentCreateMetric22>;
144
- toolCalls?: Array<DeploymentCreateMetricToolCalls> | undefined;
428
+ name?: string | undefined;
145
429
  };
146
430
 
431
+ export type DeploymentCreateMetricMessages =
432
+ | DeploymentCreateMetricMessages1
433
+ | DeploymentCreateMetricMessages2
434
+ | DeploymentCreateMetricMessages3
435
+ | DeploymentCreateMetricMessages5
436
+ | DeploymentCreateMetricMessages4;
437
+
147
438
  /**
148
439
  * The role of the prompt message
149
440
  */
@@ -164,7 +455,7 @@ export type DeploymentCreateMetricMessageDeploymentsMetricsRole = ClosedEnum<
164
455
  typeof DeploymentCreateMetricMessageDeploymentsMetricsRole
165
456
  >;
166
457
 
167
- export type Three = {
458
+ export type Message3 = {
168
459
  /**
169
460
  * The role of the prompt message
170
461
  */
@@ -247,11 +538,11 @@ export type Message1 = {
247
538
  toolCalls: Array<MessageToolCalls>;
248
539
  };
249
540
 
250
- export type Message = Message2 | Three | Message1;
541
+ export type Message = Message2 | Message3 | Message1;
251
542
 
252
543
  export type Choices = {
253
544
  index: number;
254
- message?: Message2 | Three | Message1 | undefined;
545
+ message?: Message2 | Message3 | Message1 | undefined;
255
546
  finishReason?: string | null | undefined;
256
547
  };
257
548
 
@@ -281,7 +572,15 @@ export type DeploymentCreateMetricRequestBody = {
281
572
  /**
282
573
  * A list of messages sent to the model.
283
574
  */
284
- messages?: Array<DeploymentCreateMetricMessages> | undefined;
575
+ messages?:
576
+ | Array<
577
+ | DeploymentCreateMetricMessages1
578
+ | DeploymentCreateMetricMessages2
579
+ | DeploymentCreateMetricMessages3
580
+ | DeploymentCreateMetricMessages5
581
+ | DeploymentCreateMetricMessages4
582
+ >
583
+ | undefined;
285
584
  /**
286
585
  * A list of completion choices. If you are using a `completion` model then you must provide the `completion content` with the chat completion format
287
586
  */
@@ -292,123 +591,1168 @@ export type DeploymentCreateMetricRequestBody = {
292
591
  feedback?: Feedback | undefined;
293
592
  };
294
593
 
295
- export type DeploymentCreateMetricRequest = {
296
- /**
297
- * Deployment ID
298
- */
299
- id: string;
300
- /**
301
- * The deployment request payload
302
- */
303
- requestBody: DeploymentCreateMetricRequestBody;
304
- };
594
+ export type DeploymentCreateMetricRequest = {
595
+ /**
596
+ * Deployment ID
597
+ */
598
+ id: string;
599
+ /**
600
+ * The deployment request payload
601
+ */
602
+ requestBody: DeploymentCreateMetricRequestBody;
603
+ };
604
+
605
+ /**
606
+ * Successful operation
607
+ */
608
+ export type DeploymentCreateMetricResponseBody = {
609
+ /**
610
+ * Whether the request was successful
611
+ */
612
+ success: boolean;
613
+ };
614
+
615
+ /** @internal */
616
+ export const Usage$inboundSchema: z.ZodType<Usage, z.ZodTypeDef, unknown> = z
617
+ .object({
618
+ prompt_tokens: z.number(),
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
+ });
628
+
629
+ /** @internal */
630
+ export type Usage$Outbound = {
631
+ prompt_tokens: number;
632
+ completion_tokens: number;
633
+ total_tokens?: number | undefined;
634
+ };
635
+
636
+ /** @internal */
637
+ export const Usage$outboundSchema: z.ZodType<
638
+ Usage$Outbound,
639
+ z.ZodTypeDef,
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
+ });
652
+
653
+ /**
654
+ * @internal
655
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
656
+ */
657
+ export namespace Usage$ {
658
+ /** @deprecated use `Usage$inboundSchema` instead. */
659
+ export const inboundSchema = Usage$inboundSchema;
660
+ /** @deprecated use `Usage$outboundSchema` instead. */
661
+ export const outboundSchema = Usage$outboundSchema;
662
+ /** @deprecated use `Usage$Outbound` instead. */
663
+ export type Outbound = Usage$Outbound;
664
+ }
665
+
666
+ export function usageToJSON(usage: Usage): string {
667
+ return JSON.stringify(Usage$outboundSchema.parse(usage));
668
+ }
669
+
670
+ export function usageFromJSON(
671
+ jsonString: string,
672
+ ): SafeParseResult<Usage, SDKValidationError> {
673
+ return safeParse(
674
+ jsonString,
675
+ (x) => Usage$inboundSchema.parse(JSON.parse(x)),
676
+ `Failed to parse 'Usage' from JSON`,
677
+ );
678
+ }
679
+
680
+ /** @internal */
681
+ export const Performance$inboundSchema: z.ZodType<
682
+ Performance,
683
+ z.ZodTypeDef,
684
+ unknown
685
+ > = z.object({
686
+ latency: z.number(),
687
+ time_to_first_token: z.number().optional(),
688
+ }).transform((v) => {
689
+ return remap$(v, {
690
+ "time_to_first_token": "timeToFirstToken",
691
+ });
692
+ });
693
+
694
+ /** @internal */
695
+ export type Performance$Outbound = {
696
+ latency: number;
697
+ time_to_first_token?: number | undefined;
698
+ };
699
+
700
+ /** @internal */
701
+ export const Performance$outboundSchema: z.ZodType<
702
+ Performance$Outbound,
703
+ z.ZodTypeDef,
704
+ Performance
705
+ > = z.object({
706
+ latency: z.number(),
707
+ timeToFirstToken: z.number().optional(),
708
+ }).transform((v) => {
709
+ return remap$(v, {
710
+ timeToFirstToken: "time_to_first_token",
711
+ });
712
+ });
713
+
714
+ /**
715
+ * @internal
716
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
717
+ */
718
+ export namespace Performance$ {
719
+ /** @deprecated use `Performance$inboundSchema` instead. */
720
+ export const inboundSchema = Performance$inboundSchema;
721
+ /** @deprecated use `Performance$outboundSchema` instead. */
722
+ export const outboundSchema = Performance$outboundSchema;
723
+ /** @deprecated use `Performance$Outbound` instead. */
724
+ export type Outbound = Performance$Outbound;
725
+ }
726
+
727
+ export function performanceToJSON(performance: Performance): string {
728
+ return JSON.stringify(Performance$outboundSchema.parse(performance));
729
+ }
730
+
731
+ export function performanceFromJSON(
732
+ jsonString: string,
733
+ ): SafeParseResult<Performance, SDKValidationError> {
734
+ return safeParse(
735
+ jsonString,
736
+ (x) => Performance$inboundSchema.parse(JSON.parse(x)),
737
+ `Failed to parse 'Performance' from JSON`,
738
+ );
739
+ }
740
+
741
+ /** @internal */
742
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema:
743
+ z.ZodNativeEnum<
744
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role
745
+ > = z.nativeEnum(
746
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role,
747
+ );
748
+
749
+ /** @internal */
750
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema:
751
+ z.ZodNativeEnum<
752
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role
753
+ > =
754
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema;
755
+
756
+ /**
757
+ * @internal
758
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
759
+ */
760
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$ {
761
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema` instead. */
762
+ export const inboundSchema =
763
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema;
764
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema` instead. */
765
+ export const outboundSchema =
766
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema;
767
+ }
768
+
769
+ /** @internal */
770
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inboundSchema:
771
+ z.ZodType<
772
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent,
773
+ z.ZodTypeDef,
774
+ unknown
775
+ > = z.union([z.string(), z.array(z.string())]);
776
+
777
+ /** @internal */
778
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$Outbound =
779
+ | string
780
+ | Array<string>;
781
+
782
+ /** @internal */
783
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outboundSchema:
784
+ z.ZodType<
785
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$Outbound,
786
+ z.ZodTypeDef,
787
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent
788
+ > = z.union([z.string(), z.array(z.string())]);
789
+
790
+ /**
791
+ * @internal
792
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
793
+ */
794
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$ {
795
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inboundSchema` instead. */
796
+ export const inboundSchema =
797
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inboundSchema;
798
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outboundSchema` instead. */
799
+ export const outboundSchema =
800
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outboundSchema;
801
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$Outbound` instead. */
802
+ export type Outbound =
803
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$Outbound;
804
+ }
805
+
806
+ export function deploymentCreateMetricMessagesDeploymentsMetricsRequestContentToJSON(
807
+ deploymentCreateMetricMessagesDeploymentsMetricsRequestContent:
808
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent,
809
+ ): string {
810
+ return JSON.stringify(
811
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outboundSchema
812
+ .parse(deploymentCreateMetricMessagesDeploymentsMetricsRequestContent),
813
+ );
814
+ }
815
+
816
+ export function deploymentCreateMetricMessagesDeploymentsMetricsRequestContentFromJSON(
817
+ jsonString: string,
818
+ ): SafeParseResult<
819
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent,
820
+ SDKValidationError
821
+ > {
822
+ return safeParse(
823
+ jsonString,
824
+ (x) =>
825
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inboundSchema
826
+ .parse(JSON.parse(x)),
827
+ `Failed to parse 'DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent' from JSON`,
828
+ );
829
+ }
830
+
831
+ /** @internal */
832
+ export const DeploymentCreateMetricMessages5$inboundSchema: z.ZodType<
833
+ DeploymentCreateMetricMessages5,
834
+ z.ZodTypeDef,
835
+ unknown
836
+ > = z.object({
837
+ role:
838
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$inboundSchema,
839
+ content: z.union([z.string(), z.array(z.string())]),
840
+ tool_call_id: z.string(),
841
+ }).transform((v) => {
842
+ return remap$(v, {
843
+ "tool_call_id": "toolCallId",
844
+ });
845
+ });
846
+
847
+ /** @internal */
848
+ export type DeploymentCreateMetricMessages5$Outbound = {
849
+ role: string;
850
+ content: string | Array<string>;
851
+ tool_call_id: string;
852
+ };
853
+
854
+ /** @internal */
855
+ export const DeploymentCreateMetricMessages5$outboundSchema: z.ZodType<
856
+ DeploymentCreateMetricMessages5$Outbound,
857
+ z.ZodTypeDef,
858
+ DeploymentCreateMetricMessages5
859
+ > = z.object({
860
+ role:
861
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Role$outboundSchema,
862
+ content: z.union([z.string(), z.array(z.string())]),
863
+ toolCallId: z.string(),
864
+ }).transform((v) => {
865
+ return remap$(v, {
866
+ toolCallId: "tool_call_id",
867
+ });
868
+ });
869
+
870
+ /**
871
+ * @internal
872
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
873
+ */
874
+ export namespace DeploymentCreateMetricMessages5$ {
875
+ /** @deprecated use `DeploymentCreateMetricMessages5$inboundSchema` instead. */
876
+ export const inboundSchema = DeploymentCreateMetricMessages5$inboundSchema;
877
+ /** @deprecated use `DeploymentCreateMetricMessages5$outboundSchema` instead. */
878
+ export const outboundSchema = DeploymentCreateMetricMessages5$outboundSchema;
879
+ /** @deprecated use `DeploymentCreateMetricMessages5$Outbound` instead. */
880
+ export type Outbound = DeploymentCreateMetricMessages5$Outbound;
881
+ }
882
+
883
+ export function deploymentCreateMetricMessages5ToJSON(
884
+ deploymentCreateMetricMessages5: DeploymentCreateMetricMessages5,
885
+ ): string {
886
+ return JSON.stringify(
887
+ DeploymentCreateMetricMessages5$outboundSchema.parse(
888
+ deploymentCreateMetricMessages5,
889
+ ),
890
+ );
891
+ }
892
+
893
+ export function deploymentCreateMetricMessages5FromJSON(
894
+ jsonString: string,
895
+ ): SafeParseResult<DeploymentCreateMetricMessages5, SDKValidationError> {
896
+ return safeParse(
897
+ jsonString,
898
+ (x) => DeploymentCreateMetricMessages5$inboundSchema.parse(JSON.parse(x)),
899
+ `Failed to parse 'DeploymentCreateMetricMessages5' from JSON`,
900
+ );
901
+ }
902
+
903
+ /** @internal */
904
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema:
905
+ z.ZodNativeEnum<
906
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType
907
+ > = z.nativeEnum(
908
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType,
909
+ );
910
+
911
+ /** @internal */
912
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema:
913
+ z.ZodNativeEnum<
914
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType
915
+ > =
916
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema;
917
+
918
+ /**
919
+ * @internal
920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
921
+ */
922
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$ {
923
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema` instead. */
924
+ export const inboundSchema =
925
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema;
926
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema` instead. */
927
+ export const outboundSchema =
928
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema;
929
+ }
930
+
931
+ /** @internal */
932
+ export const DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema:
933
+ z.ZodType<DeploymentCreateMetric2DeploymentsMetrics2, z.ZodTypeDef, unknown> =
934
+ z.object({
935
+ type:
936
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$inboundSchema,
937
+ refusal: z.string(),
938
+ });
939
+
940
+ /** @internal */
941
+ export type DeploymentCreateMetric2DeploymentsMetrics2$Outbound = {
942
+ type: string;
943
+ refusal: string;
944
+ };
945
+
946
+ /** @internal */
947
+ export const DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema:
948
+ z.ZodType<
949
+ DeploymentCreateMetric2DeploymentsMetrics2$Outbound,
950
+ z.ZodTypeDef,
951
+ DeploymentCreateMetric2DeploymentsMetrics2
952
+ > = z.object({
953
+ type:
954
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessagesType$outboundSchema,
955
+ refusal: z.string(),
956
+ });
957
+
958
+ /**
959
+ * @internal
960
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
961
+ */
962
+ export namespace DeploymentCreateMetric2DeploymentsMetrics2$ {
963
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema` instead. */
964
+ export const inboundSchema =
965
+ DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema;
966
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema` instead. */
967
+ export const outboundSchema =
968
+ DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema;
969
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$Outbound` instead. */
970
+ export type Outbound = DeploymentCreateMetric2DeploymentsMetrics2$Outbound;
971
+ }
972
+
973
+ export function deploymentCreateMetric2DeploymentsMetrics2ToJSON(
974
+ deploymentCreateMetric2DeploymentsMetrics2:
975
+ DeploymentCreateMetric2DeploymentsMetrics2,
976
+ ): string {
977
+ return JSON.stringify(
978
+ DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema.parse(
979
+ deploymentCreateMetric2DeploymentsMetrics2,
980
+ ),
981
+ );
982
+ }
983
+
984
+ export function deploymentCreateMetric2DeploymentsMetrics2FromJSON(
985
+ jsonString: string,
986
+ ): SafeParseResult<
987
+ DeploymentCreateMetric2DeploymentsMetrics2,
988
+ SDKValidationError
989
+ > {
990
+ return safeParse(
991
+ jsonString,
992
+ (x) =>
993
+ DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema.parse(
994
+ JSON.parse(x),
995
+ ),
996
+ `Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics2' from JSON`,
997
+ );
998
+ }
999
+
1000
+ /** @internal */
1001
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema:
1002
+ z.ZodNativeEnum<
1003
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
1004
+ > = z.nativeEnum(
1005
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType,
1006
+ );
1007
+
1008
+ /** @internal */
1009
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema:
1010
+ z.ZodNativeEnum<
1011
+ typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
1012
+ > =
1013
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
1014
+
1015
+ /**
1016
+ * @internal
1017
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1018
+ */
1019
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$ {
1020
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema` instead. */
1021
+ export const inboundSchema =
1022
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
1023
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema` instead. */
1024
+ export const outboundSchema =
1025
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema;
1026
+ }
1027
+
1028
+ /** @internal */
1029
+ export const DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema:
1030
+ z.ZodType<DeploymentCreateMetric2DeploymentsMetrics1, z.ZodTypeDef, unknown> =
1031
+ z.object({
1032
+ type:
1033
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema,
1034
+ text: z.string(),
1035
+ });
1036
+
1037
+ /** @internal */
1038
+ export type DeploymentCreateMetric2DeploymentsMetrics1$Outbound = {
1039
+ type: string;
1040
+ text: string;
1041
+ };
1042
+
1043
+ /** @internal */
1044
+ export const DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema:
1045
+ z.ZodType<
1046
+ DeploymentCreateMetric2DeploymentsMetrics1$Outbound,
1047
+ z.ZodTypeDef,
1048
+ DeploymentCreateMetric2DeploymentsMetrics1
1049
+ > = z.object({
1050
+ type:
1051
+ DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema,
1052
+ text: z.string(),
1053
+ });
1054
+
1055
+ /**
1056
+ * @internal
1057
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1058
+ */
1059
+ export namespace DeploymentCreateMetric2DeploymentsMetrics1$ {
1060
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema` instead. */
1061
+ export const inboundSchema =
1062
+ DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema;
1063
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema` instead. */
1064
+ export const outboundSchema =
1065
+ DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema;
1066
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$Outbound` instead. */
1067
+ export type Outbound = DeploymentCreateMetric2DeploymentsMetrics1$Outbound;
1068
+ }
1069
+
1070
+ export function deploymentCreateMetric2DeploymentsMetrics1ToJSON(
1071
+ deploymentCreateMetric2DeploymentsMetrics1:
1072
+ DeploymentCreateMetric2DeploymentsMetrics1,
1073
+ ): string {
1074
+ return JSON.stringify(
1075
+ DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema.parse(
1076
+ deploymentCreateMetric2DeploymentsMetrics1,
1077
+ ),
1078
+ );
1079
+ }
1080
+
1081
+ export function deploymentCreateMetric2DeploymentsMetrics1FromJSON(
1082
+ jsonString: string,
1083
+ ): SafeParseResult<
1084
+ DeploymentCreateMetric2DeploymentsMetrics1,
1085
+ SDKValidationError
1086
+ > {
1087
+ return safeParse(
1088
+ jsonString,
1089
+ (x) =>
1090
+ DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema.parse(
1091
+ JSON.parse(x),
1092
+ ),
1093
+ `Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`,
1094
+ );
1095
+ }
1096
+
1097
+ /** @internal */
1098
+ export const DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema:
1099
+ z.ZodType<
1100
+ DeploymentCreateMetricContentDeploymentsMetrics2,
1101
+ z.ZodTypeDef,
1102
+ unknown
1103
+ > = z.union([
1104
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
1105
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
1106
+ ]);
1107
+
1108
+ /** @internal */
1109
+ export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound =
1110
+ | DeploymentCreateMetric2DeploymentsMetrics1$Outbound
1111
+ | DeploymentCreateMetric2DeploymentsMetrics2$Outbound;
1112
+
1113
+ /** @internal */
1114
+ export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
1115
+ z.ZodType<
1116
+ DeploymentCreateMetricContentDeploymentsMetrics2$Outbound,
1117
+ z.ZodTypeDef,
1118
+ DeploymentCreateMetricContentDeploymentsMetrics2
1119
+ > = z.union([
1120
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
1121
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
1122
+ ]);
1123
+
1124
+ /**
1125
+ * @internal
1126
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1127
+ */
1128
+ export namespace DeploymentCreateMetricContentDeploymentsMetrics2$ {
1129
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema` instead. */
1130
+ export const inboundSchema =
1131
+ DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema;
1132
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema` instead. */
1133
+ export const outboundSchema =
1134
+ DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema;
1135
+ /** @deprecated use `DeploymentCreateMetricContentDeploymentsMetrics2$Outbound` instead. */
1136
+ export type Outbound =
1137
+ DeploymentCreateMetricContentDeploymentsMetrics2$Outbound;
1138
+ }
1139
+
1140
+ export function deploymentCreateMetricContentDeploymentsMetrics2ToJSON(
1141
+ deploymentCreateMetricContentDeploymentsMetrics2:
1142
+ DeploymentCreateMetricContentDeploymentsMetrics2,
1143
+ ): string {
1144
+ return JSON.stringify(
1145
+ DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema.parse(
1146
+ deploymentCreateMetricContentDeploymentsMetrics2,
1147
+ ),
1148
+ );
1149
+ }
1150
+
1151
+ export function deploymentCreateMetricContentDeploymentsMetrics2FromJSON(
1152
+ jsonString: string,
1153
+ ): SafeParseResult<
1154
+ DeploymentCreateMetricContentDeploymentsMetrics2,
1155
+ SDKValidationError
1156
+ > {
1157
+ return safeParse(
1158
+ jsonString,
1159
+ (x) =>
1160
+ DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema.parse(
1161
+ JSON.parse(x),
1162
+ ),
1163
+ `Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
1164
+ );
1165
+ }
1166
+
1167
+ /** @internal */
1168
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema:
1169
+ z.ZodType<
1170
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1171
+ z.ZodTypeDef,
1172
+ unknown
1173
+ > = z.union([
1174
+ z.string(),
1175
+ z.array(z.union([
1176
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
1177
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
1178
+ ])),
1179
+ ]);
1180
+
1181
+ /** @internal */
1182
+ export type DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound =
1183
+ | string
1184
+ | Array<
1185
+ | DeploymentCreateMetric2DeploymentsMetrics1$Outbound
1186
+ | DeploymentCreateMetric2DeploymentsMetrics2$Outbound
1187
+ >;
1188
+
1189
+ /** @internal */
1190
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema:
1191
+ z.ZodType<
1192
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound,
1193
+ z.ZodTypeDef,
1194
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent
1195
+ > = z.union([
1196
+ z.string(),
1197
+ z.array(z.union([
1198
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
1199
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
1200
+ ])),
1201
+ ]);
1202
+
1203
+ /**
1204
+ * @internal
1205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1206
+ */
1207
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsContent$ {
1208
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema` instead. */
1209
+ export const inboundSchema =
1210
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema;
1211
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema` instead. */
1212
+ export const outboundSchema =
1213
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema;
1214
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound` instead. */
1215
+ export type Outbound =
1216
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound;
1217
+ }
1218
+
1219
+ export function deploymentCreateMetricMessagesDeploymentsMetricsContentToJSON(
1220
+ deploymentCreateMetricMessagesDeploymentsMetricsContent:
1221
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1222
+ ): string {
1223
+ return JSON.stringify(
1224
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema
1225
+ .parse(deploymentCreateMetricMessagesDeploymentsMetricsContent),
1226
+ );
1227
+ }
1228
+
1229
+ export function deploymentCreateMetricMessagesDeploymentsMetricsContentFromJSON(
1230
+ jsonString: string,
1231
+ ): SafeParseResult<
1232
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent,
1233
+ SDKValidationError
1234
+ > {
1235
+ return safeParse(
1236
+ jsonString,
1237
+ (x) =>
1238
+ DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema
1239
+ .parse(JSON.parse(x)),
1240
+ `Failed to parse 'DeploymentCreateMetricMessagesDeploymentsMetricsContent' from JSON`,
1241
+ );
1242
+ }
1243
+
1244
+ /** @internal */
1245
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
1246
+ z.ZodNativeEnum<
1247
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
1248
+ > = z.nativeEnum(
1249
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole,
1250
+ );
1251
+
1252
+ /** @internal */
1253
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
1254
+ z.ZodNativeEnum<
1255
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole
1256
+ > =
1257
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
1258
+
1259
+ /**
1260
+ * @internal
1261
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1262
+ */
1263
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$ {
1264
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
1265
+ export const inboundSchema =
1266
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
1267
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
1268
+ export const outboundSchema =
1269
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
1270
+ }
1271
+
1272
+ /** @internal */
1273
+ export const DeploymentCreateMetricMessagesAudio$inboundSchema: z.ZodType<
1274
+ DeploymentCreateMetricMessagesAudio,
1275
+ z.ZodTypeDef,
1276
+ unknown
1277
+ > = z.object({
1278
+ id: z.string(),
1279
+ });
1280
+
1281
+ /** @internal */
1282
+ export type DeploymentCreateMetricMessagesAudio$Outbound = {
1283
+ id: string;
1284
+ };
1285
+
1286
+ /** @internal */
1287
+ export const DeploymentCreateMetricMessagesAudio$outboundSchema: z.ZodType<
1288
+ DeploymentCreateMetricMessagesAudio$Outbound,
1289
+ z.ZodTypeDef,
1290
+ DeploymentCreateMetricMessagesAudio
1291
+ > = z.object({
1292
+ id: z.string(),
1293
+ });
1294
+
1295
+ /**
1296
+ * @internal
1297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1298
+ */
1299
+ export namespace DeploymentCreateMetricMessagesAudio$ {
1300
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$inboundSchema` instead. */
1301
+ export const inboundSchema =
1302
+ DeploymentCreateMetricMessagesAudio$inboundSchema;
1303
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$outboundSchema` instead. */
1304
+ export const outboundSchema =
1305
+ DeploymentCreateMetricMessagesAudio$outboundSchema;
1306
+ /** @deprecated use `DeploymentCreateMetricMessagesAudio$Outbound` instead. */
1307
+ export type Outbound = DeploymentCreateMetricMessagesAudio$Outbound;
1308
+ }
1309
+
1310
+ export function deploymentCreateMetricMessagesAudioToJSON(
1311
+ deploymentCreateMetricMessagesAudio: DeploymentCreateMetricMessagesAudio,
1312
+ ): string {
1313
+ return JSON.stringify(
1314
+ DeploymentCreateMetricMessagesAudio$outboundSchema.parse(
1315
+ deploymentCreateMetricMessagesAudio,
1316
+ ),
1317
+ );
1318
+ }
1319
+
1320
+ export function deploymentCreateMetricMessagesAudioFromJSON(
1321
+ jsonString: string,
1322
+ ): SafeParseResult<DeploymentCreateMetricMessagesAudio, SDKValidationError> {
1323
+ return safeParse(
1324
+ jsonString,
1325
+ (x) =>
1326
+ DeploymentCreateMetricMessagesAudio$inboundSchema.parse(JSON.parse(x)),
1327
+ `Failed to parse 'DeploymentCreateMetricMessagesAudio' from JSON`,
1328
+ );
1329
+ }
1330
+
1331
+ /** @internal */
1332
+ export const DeploymentCreateMetricMessagesType$inboundSchema: z.ZodNativeEnum<
1333
+ typeof DeploymentCreateMetricMessagesType
1334
+ > = z.nativeEnum(DeploymentCreateMetricMessagesType);
1335
+
1336
+ /** @internal */
1337
+ export const DeploymentCreateMetricMessagesType$outboundSchema: z.ZodNativeEnum<
1338
+ typeof DeploymentCreateMetricMessagesType
1339
+ > = DeploymentCreateMetricMessagesType$inboundSchema;
1340
+
1341
+ /**
1342
+ * @internal
1343
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1344
+ */
1345
+ export namespace DeploymentCreateMetricMessagesType$ {
1346
+ /** @deprecated use `DeploymentCreateMetricMessagesType$inboundSchema` instead. */
1347
+ export const inboundSchema = DeploymentCreateMetricMessagesType$inboundSchema;
1348
+ /** @deprecated use `DeploymentCreateMetricMessagesType$outboundSchema` instead. */
1349
+ export const outboundSchema =
1350
+ DeploymentCreateMetricMessagesType$outboundSchema;
1351
+ }
1352
+
1353
+ /** @internal */
1354
+ export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
1355
+ DeploymentCreateMetricMessagesFunction,
1356
+ z.ZodTypeDef,
1357
+ unknown
1358
+ > = z.object({
1359
+ name: z.string().optional(),
1360
+ arguments: z.string().optional(),
1361
+ });
1362
+
1363
+ /** @internal */
1364
+ export type DeploymentCreateMetricMessagesFunction$Outbound = {
1365
+ name?: string | undefined;
1366
+ arguments?: string | undefined;
1367
+ };
1368
+
1369
+ /** @internal */
1370
+ export const DeploymentCreateMetricMessagesFunction$outboundSchema: z.ZodType<
1371
+ DeploymentCreateMetricMessagesFunction$Outbound,
1372
+ z.ZodTypeDef,
1373
+ DeploymentCreateMetricMessagesFunction
1374
+ > = z.object({
1375
+ name: z.string().optional(),
1376
+ arguments: z.string().optional(),
1377
+ });
1378
+
1379
+ /**
1380
+ * @internal
1381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1382
+ */
1383
+ export namespace DeploymentCreateMetricMessagesFunction$ {
1384
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$inboundSchema` instead. */
1385
+ export const inboundSchema =
1386
+ DeploymentCreateMetricMessagesFunction$inboundSchema;
1387
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$outboundSchema` instead. */
1388
+ export const outboundSchema =
1389
+ DeploymentCreateMetricMessagesFunction$outboundSchema;
1390
+ /** @deprecated use `DeploymentCreateMetricMessagesFunction$Outbound` instead. */
1391
+ export type Outbound = DeploymentCreateMetricMessagesFunction$Outbound;
1392
+ }
1393
+
1394
+ export function deploymentCreateMetricMessagesFunctionToJSON(
1395
+ deploymentCreateMetricMessagesFunction:
1396
+ DeploymentCreateMetricMessagesFunction,
1397
+ ): string {
1398
+ return JSON.stringify(
1399
+ DeploymentCreateMetricMessagesFunction$outboundSchema.parse(
1400
+ deploymentCreateMetricMessagesFunction,
1401
+ ),
1402
+ );
1403
+ }
1404
+
1405
+ export function deploymentCreateMetricMessagesFunctionFromJSON(
1406
+ jsonString: string,
1407
+ ): SafeParseResult<DeploymentCreateMetricMessagesFunction, SDKValidationError> {
1408
+ return safeParse(
1409
+ jsonString,
1410
+ (x) =>
1411
+ DeploymentCreateMetricMessagesFunction$inboundSchema.parse(JSON.parse(x)),
1412
+ `Failed to parse 'DeploymentCreateMetricMessagesFunction' from JSON`,
1413
+ );
1414
+ }
1415
+
1416
+ /** @internal */
1417
+ export const DeploymentCreateMetricMessagesToolCalls$inboundSchema: z.ZodType<
1418
+ DeploymentCreateMetricMessagesToolCalls,
1419
+ z.ZodTypeDef,
1420
+ unknown
1421
+ > = z.object({
1422
+ id: z.string(),
1423
+ type: DeploymentCreateMetricMessagesType$inboundSchema,
1424
+ function: z.lazy(() => DeploymentCreateMetricMessagesFunction$inboundSchema),
1425
+ });
1426
+
1427
+ /** @internal */
1428
+ export type DeploymentCreateMetricMessagesToolCalls$Outbound = {
1429
+ id: string;
1430
+ type: string;
1431
+ function: DeploymentCreateMetricMessagesFunction$Outbound;
1432
+ };
1433
+
1434
+ /** @internal */
1435
+ export const DeploymentCreateMetricMessagesToolCalls$outboundSchema: z.ZodType<
1436
+ DeploymentCreateMetricMessagesToolCalls$Outbound,
1437
+ z.ZodTypeDef,
1438
+ DeploymentCreateMetricMessagesToolCalls
1439
+ > = z.object({
1440
+ id: z.string(),
1441
+ type: DeploymentCreateMetricMessagesType$outboundSchema,
1442
+ function: z.lazy(() => DeploymentCreateMetricMessagesFunction$outboundSchema),
1443
+ });
1444
+
1445
+ /**
1446
+ * @internal
1447
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1448
+ */
1449
+ export namespace DeploymentCreateMetricMessagesToolCalls$ {
1450
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$inboundSchema` instead. */
1451
+ export const inboundSchema =
1452
+ DeploymentCreateMetricMessagesToolCalls$inboundSchema;
1453
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$outboundSchema` instead. */
1454
+ export const outboundSchema =
1455
+ DeploymentCreateMetricMessagesToolCalls$outboundSchema;
1456
+ /** @deprecated use `DeploymentCreateMetricMessagesToolCalls$Outbound` instead. */
1457
+ export type Outbound = DeploymentCreateMetricMessagesToolCalls$Outbound;
1458
+ }
1459
+
1460
+ export function deploymentCreateMetricMessagesToolCallsToJSON(
1461
+ deploymentCreateMetricMessagesToolCalls:
1462
+ DeploymentCreateMetricMessagesToolCalls,
1463
+ ): string {
1464
+ return JSON.stringify(
1465
+ DeploymentCreateMetricMessagesToolCalls$outboundSchema.parse(
1466
+ deploymentCreateMetricMessagesToolCalls,
1467
+ ),
1468
+ );
1469
+ }
1470
+
1471
+ export function deploymentCreateMetricMessagesToolCallsFromJSON(
1472
+ jsonString: string,
1473
+ ): SafeParseResult<
1474
+ DeploymentCreateMetricMessagesToolCalls,
1475
+ SDKValidationError
1476
+ > {
1477
+ return safeParse(
1478
+ jsonString,
1479
+ (x) =>
1480
+ DeploymentCreateMetricMessagesToolCalls$inboundSchema.parse(
1481
+ JSON.parse(x),
1482
+ ),
1483
+ `Failed to parse 'DeploymentCreateMetricMessagesToolCalls' from JSON`,
1484
+ );
1485
+ }
1486
+
1487
+ /** @internal */
1488
+ export const DeploymentCreateMetricMessages4$inboundSchema: z.ZodType<
1489
+ DeploymentCreateMetricMessages4,
1490
+ z.ZodTypeDef,
1491
+ unknown
1492
+ > = z.object({
1493
+ content: z.union([
1494
+ z.string(),
1495
+ z.array(z.union([
1496
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
1497
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
1498
+ ])),
1499
+ ]).optional(),
1500
+ refusal: z.nullable(z.string()).optional(),
1501
+ role:
1502
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
1503
+ name: z.string().optional(),
1504
+ audio: z.nullable(
1505
+ z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
1506
+ ).optional(),
1507
+ tool_calls: z.array(
1508
+ z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
1509
+ ).optional(),
1510
+ }).transform((v) => {
1511
+ return remap$(v, {
1512
+ "tool_calls": "toolCalls",
1513
+ });
1514
+ });
1515
+
1516
+ /** @internal */
1517
+ export type DeploymentCreateMetricMessages4$Outbound = {
1518
+ content?:
1519
+ | string
1520
+ | Array<
1521
+ | DeploymentCreateMetric2DeploymentsMetrics1$Outbound
1522
+ | DeploymentCreateMetric2DeploymentsMetrics2$Outbound
1523
+ >
1524
+ | undefined;
1525
+ refusal?: string | null | undefined;
1526
+ role: string;
1527
+ name?: string | undefined;
1528
+ audio?: DeploymentCreateMetricMessagesAudio$Outbound | null | undefined;
1529
+ tool_calls?:
1530
+ | Array<DeploymentCreateMetricMessagesToolCalls$Outbound>
1531
+ | undefined;
1532
+ };
1533
+
1534
+ /** @internal */
1535
+ export const DeploymentCreateMetricMessages4$outboundSchema: z.ZodType<
1536
+ DeploymentCreateMetricMessages4$Outbound,
1537
+ z.ZodTypeDef,
1538
+ DeploymentCreateMetricMessages4
1539
+ > = z.object({
1540
+ content: z.union([
1541
+ z.string(),
1542
+ z.array(z.union([
1543
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
1544
+ z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
1545
+ ])),
1546
+ ]).optional(),
1547
+ refusal: z.nullable(z.string()).optional(),
1548
+ role:
1549
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
1550
+ name: z.string().optional(),
1551
+ audio: z.nullable(
1552
+ z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
1553
+ ).optional(),
1554
+ toolCalls: z.array(
1555
+ z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
1556
+ ).optional(),
1557
+ }).transform((v) => {
1558
+ return remap$(v, {
1559
+ toolCalls: "tool_calls",
1560
+ });
1561
+ });
1562
+
1563
+ /**
1564
+ * @internal
1565
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1566
+ */
1567
+ export namespace DeploymentCreateMetricMessages4$ {
1568
+ /** @deprecated use `DeploymentCreateMetricMessages4$inboundSchema` instead. */
1569
+ export const inboundSchema = DeploymentCreateMetricMessages4$inboundSchema;
1570
+ /** @deprecated use `DeploymentCreateMetricMessages4$outboundSchema` instead. */
1571
+ export const outboundSchema = DeploymentCreateMetricMessages4$outboundSchema;
1572
+ /** @deprecated use `DeploymentCreateMetricMessages4$Outbound` instead. */
1573
+ export type Outbound = DeploymentCreateMetricMessages4$Outbound;
1574
+ }
1575
+
1576
+ export function deploymentCreateMetricMessages4ToJSON(
1577
+ deploymentCreateMetricMessages4: DeploymentCreateMetricMessages4,
1578
+ ): string {
1579
+ return JSON.stringify(
1580
+ DeploymentCreateMetricMessages4$outboundSchema.parse(
1581
+ deploymentCreateMetricMessages4,
1582
+ ),
1583
+ );
1584
+ }
1585
+
1586
+ export function deploymentCreateMetricMessages4FromJSON(
1587
+ jsonString: string,
1588
+ ): SafeParseResult<DeploymentCreateMetricMessages4, SDKValidationError> {
1589
+ return safeParse(
1590
+ jsonString,
1591
+ (x) => DeploymentCreateMetricMessages4$inboundSchema.parse(JSON.parse(x)),
1592
+ `Failed to parse 'DeploymentCreateMetricMessages4' from JSON`,
1593
+ );
1594
+ }
1595
+
1596
+ /** @internal */
1597
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema:
1598
+ z.ZodNativeEnum<
1599
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
1600
+ > = z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole);
1601
+
1602
+ /** @internal */
1603
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema:
1604
+ z.ZodNativeEnum<
1605
+ typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
1606
+ > = DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
1607
+
1608
+ /**
1609
+ * @internal
1610
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
+ */
1612
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$ {
1613
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema` instead. */
1614
+ export const inboundSchema =
1615
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
1616
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema` instead. */
1617
+ export const outboundSchema =
1618
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema;
1619
+ }
1620
+
1621
+ /** @internal */
1622
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema:
1623
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
1624
+ z.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsRequestType);
1625
+
1626
+ /** @internal */
1627
+ export const DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema:
1628
+ z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
1629
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
1630
+
1631
+ /**
1632
+ * @internal
1633
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1634
+ */
1635
+ export namespace DeploymentCreateMetric2DeploymentsMetricsRequestType$ {
1636
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema` instead. */
1637
+ export const inboundSchema =
1638
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
1639
+ /** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema` instead. */
1640
+ export const outboundSchema =
1641
+ DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema;
1642
+ }
1643
+
1644
+ /** @internal */
1645
+ export const DeploymentCreateMetric2Format$inboundSchema: z.ZodNativeEnum<
1646
+ typeof DeploymentCreateMetric2Format
1647
+ > = z.nativeEnum(DeploymentCreateMetric2Format);
1648
+
1649
+ /** @internal */
1650
+ export const DeploymentCreateMetric2Format$outboundSchema: z.ZodNativeEnum<
1651
+ typeof DeploymentCreateMetric2Format
1652
+ > = DeploymentCreateMetric2Format$inboundSchema;
305
1653
 
306
1654
  /**
307
- * Successful operation
1655
+ * @internal
1656
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
308
1657
  */
309
- export type DeploymentCreateMetricResponseBody = {
310
- /**
311
- * Whether the request was successful
312
- */
313
- success: boolean;
314
- };
1658
+ export namespace DeploymentCreateMetric2Format$ {
1659
+ /** @deprecated use `DeploymentCreateMetric2Format$inboundSchema` instead. */
1660
+ export const inboundSchema = DeploymentCreateMetric2Format$inboundSchema;
1661
+ /** @deprecated use `DeploymentCreateMetric2Format$outboundSchema` instead. */
1662
+ export const outboundSchema = DeploymentCreateMetric2Format$outboundSchema;
1663
+ }
315
1664
 
316
1665
  /** @internal */
317
- export const Usage$inboundSchema: z.ZodType<Usage, z.ZodTypeDef, unknown> = z
318
- .object({
319
- prompt_tokens: z.number(),
320
- completion_tokens: z.number(),
321
- total_tokens: z.number().optional(),
322
- }).transform((v) => {
323
- return remap$(v, {
324
- "prompt_tokens": "promptTokens",
325
- "completion_tokens": "completionTokens",
326
- "total_tokens": "totalTokens",
327
- });
328
- });
1666
+ export const DeploymentCreateMetric2InputAudio$inboundSchema: z.ZodType<
1667
+ DeploymentCreateMetric2InputAudio,
1668
+ z.ZodTypeDef,
1669
+ unknown
1670
+ > = z.object({
1671
+ data: z.string(),
1672
+ format: DeploymentCreateMetric2Format$inboundSchema,
1673
+ });
329
1674
 
330
1675
  /** @internal */
331
- export type Usage$Outbound = {
332
- prompt_tokens: number;
333
- completion_tokens: number;
334
- total_tokens?: number | undefined;
1676
+ export type DeploymentCreateMetric2InputAudio$Outbound = {
1677
+ data: string;
1678
+ format: string;
335
1679
  };
336
1680
 
337
1681
  /** @internal */
338
- export const Usage$outboundSchema: z.ZodType<
339
- Usage$Outbound,
1682
+ export const DeploymentCreateMetric2InputAudio$outboundSchema: z.ZodType<
1683
+ DeploymentCreateMetric2InputAudio$Outbound,
340
1684
  z.ZodTypeDef,
341
- Usage
1685
+ DeploymentCreateMetric2InputAudio
342
1686
  > = z.object({
343
- promptTokens: z.number(),
344
- completionTokens: z.number(),
345
- totalTokens: z.number().optional(),
346
- }).transform((v) => {
347
- return remap$(v, {
348
- promptTokens: "prompt_tokens",
349
- completionTokens: "completion_tokens",
350
- totalTokens: "total_tokens",
351
- });
1687
+ data: z.string(),
1688
+ format: DeploymentCreateMetric2Format$outboundSchema,
352
1689
  });
353
1690
 
354
1691
  /**
355
1692
  * @internal
356
1693
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
1694
  */
358
- export namespace Usage$ {
359
- /** @deprecated use `Usage$inboundSchema` instead. */
360
- export const inboundSchema = Usage$inboundSchema;
361
- /** @deprecated use `Usage$outboundSchema` instead. */
362
- export const outboundSchema = Usage$outboundSchema;
363
- /** @deprecated use `Usage$Outbound` instead. */
364
- export type Outbound = Usage$Outbound;
1695
+ export namespace DeploymentCreateMetric2InputAudio$ {
1696
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$inboundSchema` instead. */
1697
+ export const inboundSchema = DeploymentCreateMetric2InputAudio$inboundSchema;
1698
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$outboundSchema` instead. */
1699
+ export const outboundSchema =
1700
+ DeploymentCreateMetric2InputAudio$outboundSchema;
1701
+ /** @deprecated use `DeploymentCreateMetric2InputAudio$Outbound` instead. */
1702
+ export type Outbound = DeploymentCreateMetric2InputAudio$Outbound;
365
1703
  }
366
1704
 
367
- export function usageToJSON(usage: Usage): string {
368
- return JSON.stringify(Usage$outboundSchema.parse(usage));
1705
+ export function deploymentCreateMetric2InputAudioToJSON(
1706
+ deploymentCreateMetric2InputAudio: DeploymentCreateMetric2InputAudio,
1707
+ ): string {
1708
+ return JSON.stringify(
1709
+ DeploymentCreateMetric2InputAudio$outboundSchema.parse(
1710
+ deploymentCreateMetric2InputAudio,
1711
+ ),
1712
+ );
369
1713
  }
370
1714
 
371
- export function usageFromJSON(
1715
+ export function deploymentCreateMetric2InputAudioFromJSON(
372
1716
  jsonString: string,
373
- ): SafeParseResult<Usage, SDKValidationError> {
1717
+ ): SafeParseResult<DeploymentCreateMetric2InputAudio, SDKValidationError> {
374
1718
  return safeParse(
375
1719
  jsonString,
376
- (x) => Usage$inboundSchema.parse(JSON.parse(x)),
377
- `Failed to parse 'Usage' from JSON`,
1720
+ (x) => DeploymentCreateMetric2InputAudio$inboundSchema.parse(JSON.parse(x)),
1721
+ `Failed to parse 'DeploymentCreateMetric2InputAudio' from JSON`,
378
1722
  );
379
1723
  }
380
1724
 
381
1725
  /** @internal */
382
- export const Performance$inboundSchema: z.ZodType<
383
- Performance,
1726
+ export const DeploymentCreateMetric23$inboundSchema: z.ZodType<
1727
+ DeploymentCreateMetric23,
384
1728
  z.ZodTypeDef,
385
1729
  unknown
386
1730
  > = z.object({
387
- latency: z.number(),
388
- time_to_first_token: z.number().optional(),
1731
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema,
1732
+ input_audio: z.lazy(() => DeploymentCreateMetric2InputAudio$inboundSchema),
389
1733
  }).transform((v) => {
390
1734
  return remap$(v, {
391
- "time_to_first_token": "timeToFirstToken",
1735
+ "input_audio": "inputAudio",
392
1736
  });
393
1737
  });
394
1738
 
395
1739
  /** @internal */
396
- export type Performance$Outbound = {
397
- latency: number;
398
- time_to_first_token?: number | undefined;
1740
+ export type DeploymentCreateMetric23$Outbound = {
1741
+ type: string;
1742
+ input_audio: DeploymentCreateMetric2InputAudio$Outbound;
399
1743
  };
400
1744
 
401
1745
  /** @internal */
402
- export const Performance$outboundSchema: z.ZodType<
403
- Performance$Outbound,
1746
+ export const DeploymentCreateMetric23$outboundSchema: z.ZodType<
1747
+ DeploymentCreateMetric23$Outbound,
404
1748
  z.ZodTypeDef,
405
- Performance
1749
+ DeploymentCreateMetric23
406
1750
  > = z.object({
407
- latency: z.number(),
408
- timeToFirstToken: z.number().optional(),
1751
+ type: DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema,
1752
+ inputAudio: z.lazy(() => DeploymentCreateMetric2InputAudio$outboundSchema),
409
1753
  }).transform((v) => {
410
1754
  return remap$(v, {
411
- timeToFirstToken: "time_to_first_token",
1755
+ inputAudio: "input_audio",
412
1756
  });
413
1757
  });
414
1758
 
@@ -416,50 +1760,33 @@ export const Performance$outboundSchema: z.ZodType<
416
1760
  * @internal
417
1761
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
418
1762
  */
419
- export namespace Performance$ {
420
- /** @deprecated use `Performance$inboundSchema` instead. */
421
- export const inboundSchema = Performance$inboundSchema;
422
- /** @deprecated use `Performance$outboundSchema` instead. */
423
- export const outboundSchema = Performance$outboundSchema;
424
- /** @deprecated use `Performance$Outbound` instead. */
425
- export type Outbound = Performance$Outbound;
1763
+ export namespace DeploymentCreateMetric23$ {
1764
+ /** @deprecated use `DeploymentCreateMetric23$inboundSchema` instead. */
1765
+ export const inboundSchema = DeploymentCreateMetric23$inboundSchema;
1766
+ /** @deprecated use `DeploymentCreateMetric23$outboundSchema` instead. */
1767
+ export const outboundSchema = DeploymentCreateMetric23$outboundSchema;
1768
+ /** @deprecated use `DeploymentCreateMetric23$Outbound` instead. */
1769
+ export type Outbound = DeploymentCreateMetric23$Outbound;
426
1770
  }
427
1771
 
428
- export function performanceToJSON(performance: Performance): string {
429
- return JSON.stringify(Performance$outboundSchema.parse(performance));
1772
+ export function deploymentCreateMetric23ToJSON(
1773
+ deploymentCreateMetric23: DeploymentCreateMetric23,
1774
+ ): string {
1775
+ return JSON.stringify(
1776
+ DeploymentCreateMetric23$outboundSchema.parse(deploymentCreateMetric23),
1777
+ );
430
1778
  }
431
1779
 
432
- export function performanceFromJSON(
1780
+ export function deploymentCreateMetric23FromJSON(
433
1781
  jsonString: string,
434
- ): SafeParseResult<Performance, SDKValidationError> {
1782
+ ): SafeParseResult<DeploymentCreateMetric23, SDKValidationError> {
435
1783
  return safeParse(
436
1784
  jsonString,
437
- (x) => Performance$inboundSchema.parse(JSON.parse(x)),
438
- `Failed to parse 'Performance' from JSON`,
1785
+ (x) => DeploymentCreateMetric23$inboundSchema.parse(JSON.parse(x)),
1786
+ `Failed to parse 'DeploymentCreateMetric23' from JSON`,
439
1787
  );
440
1788
  }
441
1789
 
442
- /** @internal */
443
- export const DeploymentCreateMetricRole$inboundSchema: z.ZodNativeEnum<
444
- typeof DeploymentCreateMetricRole
445
- > = z.nativeEnum(DeploymentCreateMetricRole);
446
-
447
- /** @internal */
448
- export const DeploymentCreateMetricRole$outboundSchema: z.ZodNativeEnum<
449
- typeof DeploymentCreateMetricRole
450
- > = DeploymentCreateMetricRole$inboundSchema;
451
-
452
- /**
453
- * @internal
454
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
455
- */
456
- export namespace DeploymentCreateMetricRole$ {
457
- /** @deprecated use `DeploymentCreateMetricRole$inboundSchema` instead. */
458
- export const inboundSchema = DeploymentCreateMetricRole$inboundSchema;
459
- /** @deprecated use `DeploymentCreateMetricRole$outboundSchema` instead. */
460
- export const outboundSchema = DeploymentCreateMetricRole$outboundSchema;
461
- }
462
-
463
1790
  /** @internal */
464
1791
  export const DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema:
465
1792
  z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> = z
@@ -483,6 +1810,27 @@ export namespace DeploymentCreateMetric2DeploymentsMetricsType$ {
483
1810
  DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema;
484
1811
  }
485
1812
 
1813
+ /** @internal */
1814
+ export const DeploymentCreateMetric2Detail$inboundSchema: z.ZodNativeEnum<
1815
+ typeof DeploymentCreateMetric2Detail
1816
+ > = z.nativeEnum(DeploymentCreateMetric2Detail);
1817
+
1818
+ /** @internal */
1819
+ export const DeploymentCreateMetric2Detail$outboundSchema: z.ZodNativeEnum<
1820
+ typeof DeploymentCreateMetric2Detail
1821
+ > = DeploymentCreateMetric2Detail$inboundSchema;
1822
+
1823
+ /**
1824
+ * @internal
1825
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1826
+ */
1827
+ export namespace DeploymentCreateMetric2Detail$ {
1828
+ /** @deprecated use `DeploymentCreateMetric2Detail$inboundSchema` instead. */
1829
+ export const inboundSchema = DeploymentCreateMetric2Detail$inboundSchema;
1830
+ /** @deprecated use `DeploymentCreateMetric2Detail$outboundSchema` instead. */
1831
+ export const outboundSchema = DeploymentCreateMetric2Detail$outboundSchema;
1832
+ }
1833
+
486
1834
  /** @internal */
487
1835
  export const DeploymentCreateMetric2ImageUrl$inboundSchema: z.ZodType<
488
1836
  DeploymentCreateMetric2ImageUrl,
@@ -490,7 +1838,7 @@ export const DeploymentCreateMetric2ImageUrl$inboundSchema: z.ZodType<
490
1838
  unknown
491
1839
  > = z.object({
492
1840
  url: z.string(),
493
- detail: z.string().optional(),
1841
+ detail: DeploymentCreateMetric2Detail$inboundSchema.optional(),
494
1842
  });
495
1843
 
496
1844
  /** @internal */
@@ -506,7 +1854,7 @@ export const DeploymentCreateMetric2ImageUrl$outboundSchema: z.ZodType<
506
1854
  DeploymentCreateMetric2ImageUrl
507
1855
  > = z.object({
508
1856
  url: z.string(),
509
- detail: z.string().optional(),
1857
+ detail: DeploymentCreateMetric2Detail$outboundSchema.optional(),
510
1858
  });
511
1859
 
512
1860
  /**
@@ -693,12 +2041,14 @@ export const DeploymentCreateMetricContent2$inboundSchema: z.ZodType<
693
2041
  > = z.union([
694
2042
  z.lazy(() => DeploymentCreateMetric21$inboundSchema),
695
2043
  z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2044
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
696
2045
  ]);
697
2046
 
698
2047
  /** @internal */
699
2048
  export type DeploymentCreateMetricContent2$Outbound =
700
2049
  | DeploymentCreateMetric21$Outbound
701
- | DeploymentCreateMetric22$Outbound;
2050
+ | DeploymentCreateMetric22$Outbound
2051
+ | DeploymentCreateMetric23$Outbound;
702
2052
 
703
2053
  /** @internal */
704
2054
  export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
@@ -708,6 +2058,7 @@ export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
708
2058
  > = z.union([
709
2059
  z.lazy(() => DeploymentCreateMetric21$outboundSchema),
710
2060
  z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2061
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
711
2062
  ]);
712
2063
 
713
2064
  /**
@@ -744,8 +2095,8 @@ export function deploymentCreateMetricContent2FromJSON(
744
2095
  }
745
2096
 
746
2097
  /** @internal */
747
- export const DeploymentCreateMetricContent$inboundSchema: z.ZodType<
748
- DeploymentCreateMetricContent,
2098
+ export const DeploymentCreateMetricMessagesContent$inboundSchema: z.ZodType<
2099
+ DeploymentCreateMetricMessagesContent,
749
2100
  z.ZodTypeDef,
750
2101
  unknown
751
2102
  > = z.union([
@@ -753,26 +2104,30 @@ export const DeploymentCreateMetricContent$inboundSchema: z.ZodType<
753
2104
  z.array(z.union([
754
2105
  z.lazy(() => DeploymentCreateMetric21$inboundSchema),
755
2106
  z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2107
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
756
2108
  ])),
757
2109
  ]);
758
2110
 
759
2111
  /** @internal */
760
- export type DeploymentCreateMetricContent$Outbound =
2112
+ export type DeploymentCreateMetricMessagesContent$Outbound =
761
2113
  | string
762
2114
  | Array<
763
- DeploymentCreateMetric21$Outbound | DeploymentCreateMetric22$Outbound
2115
+ | DeploymentCreateMetric21$Outbound
2116
+ | DeploymentCreateMetric22$Outbound
2117
+ | DeploymentCreateMetric23$Outbound
764
2118
  >;
765
2119
 
766
2120
  /** @internal */
767
- export const DeploymentCreateMetricContent$outboundSchema: z.ZodType<
768
- DeploymentCreateMetricContent$Outbound,
2121
+ export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
2122
+ DeploymentCreateMetricMessagesContent$Outbound,
769
2123
  z.ZodTypeDef,
770
- DeploymentCreateMetricContent
2124
+ DeploymentCreateMetricMessagesContent
771
2125
  > = z.union([
772
2126
  z.string(),
773
2127
  z.array(z.union([
774
2128
  z.lazy(() => DeploymentCreateMetric21$outboundSchema),
775
2129
  z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2130
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
776
2131
  ])),
777
2132
  ]);
778
2133
 
@@ -780,177 +2135,288 @@ export const DeploymentCreateMetricContent$outboundSchema: z.ZodType<
780
2135
  * @internal
781
2136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
782
2137
  */
783
- export namespace DeploymentCreateMetricContent$ {
784
- /** @deprecated use `DeploymentCreateMetricContent$inboundSchema` instead. */
785
- export const inboundSchema = DeploymentCreateMetricContent$inboundSchema;
786
- /** @deprecated use `DeploymentCreateMetricContent$outboundSchema` instead. */
787
- export const outboundSchema = DeploymentCreateMetricContent$outboundSchema;
788
- /** @deprecated use `DeploymentCreateMetricContent$Outbound` instead. */
789
- export type Outbound = DeploymentCreateMetricContent$Outbound;
2138
+ export namespace DeploymentCreateMetricMessagesContent$ {
2139
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$inboundSchema` instead. */
2140
+ export const inboundSchema =
2141
+ DeploymentCreateMetricMessagesContent$inboundSchema;
2142
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$outboundSchema` instead. */
2143
+ export const outboundSchema =
2144
+ DeploymentCreateMetricMessagesContent$outboundSchema;
2145
+ /** @deprecated use `DeploymentCreateMetricMessagesContent$Outbound` instead. */
2146
+ export type Outbound = DeploymentCreateMetricMessagesContent$Outbound;
2147
+ }
2148
+
2149
+ export function deploymentCreateMetricMessagesContentToJSON(
2150
+ deploymentCreateMetricMessagesContent: DeploymentCreateMetricMessagesContent,
2151
+ ): string {
2152
+ return JSON.stringify(
2153
+ DeploymentCreateMetricMessagesContent$outboundSchema.parse(
2154
+ deploymentCreateMetricMessagesContent,
2155
+ ),
2156
+ );
2157
+ }
2158
+
2159
+ export function deploymentCreateMetricMessagesContentFromJSON(
2160
+ jsonString: string,
2161
+ ): SafeParseResult<DeploymentCreateMetricMessagesContent, SDKValidationError> {
2162
+ return safeParse(
2163
+ jsonString,
2164
+ (x) =>
2165
+ DeploymentCreateMetricMessagesContent$inboundSchema.parse(JSON.parse(x)),
2166
+ `Failed to parse 'DeploymentCreateMetricMessagesContent' from JSON`,
2167
+ );
2168
+ }
2169
+
2170
+ /** @internal */
2171
+ export const DeploymentCreateMetricMessages3$inboundSchema: z.ZodType<
2172
+ DeploymentCreateMetricMessages3,
2173
+ z.ZodTypeDef,
2174
+ unknown
2175
+ > = z.object({
2176
+ role:
2177
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema,
2178
+ name: z.string().optional(),
2179
+ content: z.union([
2180
+ z.string(),
2181
+ z.array(z.union([
2182
+ z.lazy(() => DeploymentCreateMetric21$inboundSchema),
2183
+ z.lazy(() => DeploymentCreateMetric22$inboundSchema),
2184
+ z.lazy(() => DeploymentCreateMetric23$inboundSchema),
2185
+ ])),
2186
+ ]),
2187
+ });
2188
+
2189
+ /** @internal */
2190
+ export type DeploymentCreateMetricMessages3$Outbound = {
2191
+ role: string;
2192
+ name?: string | undefined;
2193
+ content:
2194
+ | string
2195
+ | Array<
2196
+ | DeploymentCreateMetric21$Outbound
2197
+ | DeploymentCreateMetric22$Outbound
2198
+ | DeploymentCreateMetric23$Outbound
2199
+ >;
2200
+ };
2201
+
2202
+ /** @internal */
2203
+ export const DeploymentCreateMetricMessages3$outboundSchema: z.ZodType<
2204
+ DeploymentCreateMetricMessages3$Outbound,
2205
+ z.ZodTypeDef,
2206
+ DeploymentCreateMetricMessages3
2207
+ > = z.object({
2208
+ role:
2209
+ DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema,
2210
+ name: z.string().optional(),
2211
+ content: z.union([
2212
+ z.string(),
2213
+ z.array(z.union([
2214
+ z.lazy(() => DeploymentCreateMetric21$outboundSchema),
2215
+ z.lazy(() => DeploymentCreateMetric22$outboundSchema),
2216
+ z.lazy(() => DeploymentCreateMetric23$outboundSchema),
2217
+ ])),
2218
+ ]),
2219
+ });
2220
+
2221
+ /**
2222
+ * @internal
2223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2224
+ */
2225
+ export namespace DeploymentCreateMetricMessages3$ {
2226
+ /** @deprecated use `DeploymentCreateMetricMessages3$inboundSchema` instead. */
2227
+ export const inboundSchema = DeploymentCreateMetricMessages3$inboundSchema;
2228
+ /** @deprecated use `DeploymentCreateMetricMessages3$outboundSchema` instead. */
2229
+ export const outboundSchema = DeploymentCreateMetricMessages3$outboundSchema;
2230
+ /** @deprecated use `DeploymentCreateMetricMessages3$Outbound` instead. */
2231
+ export type Outbound = DeploymentCreateMetricMessages3$Outbound;
790
2232
  }
791
2233
 
792
- export function deploymentCreateMetricContentToJSON(
793
- deploymentCreateMetricContent: DeploymentCreateMetricContent,
2234
+ export function deploymentCreateMetricMessages3ToJSON(
2235
+ deploymentCreateMetricMessages3: DeploymentCreateMetricMessages3,
794
2236
  ): string {
795
2237
  return JSON.stringify(
796
- DeploymentCreateMetricContent$outboundSchema.parse(
797
- deploymentCreateMetricContent,
2238
+ DeploymentCreateMetricMessages3$outboundSchema.parse(
2239
+ deploymentCreateMetricMessages3,
798
2240
  ),
799
2241
  );
800
2242
  }
801
2243
 
802
- export function deploymentCreateMetricContentFromJSON(
2244
+ export function deploymentCreateMetricMessages3FromJSON(
803
2245
  jsonString: string,
804
- ): SafeParseResult<DeploymentCreateMetricContent, SDKValidationError> {
2246
+ ): SafeParseResult<DeploymentCreateMetricMessages3, SDKValidationError> {
805
2247
  return safeParse(
806
2248
  jsonString,
807
- (x) => DeploymentCreateMetricContent$inboundSchema.parse(JSON.parse(x)),
808
- `Failed to parse 'DeploymentCreateMetricContent' from JSON`,
2249
+ (x) => DeploymentCreateMetricMessages3$inboundSchema.parse(JSON.parse(x)),
2250
+ `Failed to parse 'DeploymentCreateMetricMessages3' from JSON`,
809
2251
  );
810
2252
  }
811
2253
 
812
2254
  /** @internal */
813
- export const DeploymentCreateMetricType$inboundSchema: z.ZodNativeEnum<
814
- typeof DeploymentCreateMetricType
815
- > = z.nativeEnum(DeploymentCreateMetricType);
2255
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema:
2256
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
2257
+ z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRole);
816
2258
 
817
2259
  /** @internal */
818
- export const DeploymentCreateMetricType$outboundSchema: z.ZodNativeEnum<
819
- typeof DeploymentCreateMetricType
820
- > = DeploymentCreateMetricType$inboundSchema;
2260
+ export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema:
2261
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
2262
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
821
2263
 
822
2264
  /**
823
2265
  * @internal
824
2266
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
825
2267
  */
826
- export namespace DeploymentCreateMetricType$ {
827
- /** @deprecated use `DeploymentCreateMetricType$inboundSchema` instead. */
828
- export const inboundSchema = DeploymentCreateMetricType$inboundSchema;
829
- /** @deprecated use `DeploymentCreateMetricType$outboundSchema` instead. */
830
- export const outboundSchema = DeploymentCreateMetricType$outboundSchema;
2268
+ export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRole$ {
2269
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema` instead. */
2270
+ export const inboundSchema =
2271
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
2272
+ /** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema` instead. */
2273
+ export const outboundSchema =
2274
+ DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema;
831
2275
  }
832
2276
 
833
2277
  /** @internal */
834
- export const DeploymentCreateMetricFunction$inboundSchema: z.ZodType<
835
- DeploymentCreateMetricFunction,
2278
+ export const DeploymentCreateMetricMessages2$inboundSchema: z.ZodType<
2279
+ DeploymentCreateMetricMessages2,
836
2280
  z.ZodTypeDef,
837
2281
  unknown
838
2282
  > = z.object({
839
- name: z.string(),
840
- arguments: z.string(),
2283
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
2284
+ content: z.string(),
2285
+ name: z.string().optional(),
841
2286
  });
842
2287
 
843
2288
  /** @internal */
844
- export type DeploymentCreateMetricFunction$Outbound = {
845
- name: string;
846
- arguments: string;
2289
+ export type DeploymentCreateMetricMessages2$Outbound = {
2290
+ role: string;
2291
+ content: string;
2292
+ name?: string | undefined;
847
2293
  };
848
2294
 
849
2295
  /** @internal */
850
- export const DeploymentCreateMetricFunction$outboundSchema: z.ZodType<
851
- DeploymentCreateMetricFunction$Outbound,
2296
+ export const DeploymentCreateMetricMessages2$outboundSchema: z.ZodType<
2297
+ DeploymentCreateMetricMessages2$Outbound,
852
2298
  z.ZodTypeDef,
853
- DeploymentCreateMetricFunction
2299
+ DeploymentCreateMetricMessages2
854
2300
  > = z.object({
855
- name: z.string(),
856
- arguments: z.string(),
2301
+ role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
2302
+ content: z.string(),
2303
+ name: z.string().optional(),
857
2304
  });
858
2305
 
859
2306
  /**
860
2307
  * @internal
861
2308
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
862
2309
  */
863
- export namespace DeploymentCreateMetricFunction$ {
864
- /** @deprecated use `DeploymentCreateMetricFunction$inboundSchema` instead. */
865
- export const inboundSchema = DeploymentCreateMetricFunction$inboundSchema;
866
- /** @deprecated use `DeploymentCreateMetricFunction$outboundSchema` instead. */
867
- export const outboundSchema = DeploymentCreateMetricFunction$outboundSchema;
868
- /** @deprecated use `DeploymentCreateMetricFunction$Outbound` instead. */
869
- export type Outbound = DeploymentCreateMetricFunction$Outbound;
2310
+ export namespace DeploymentCreateMetricMessages2$ {
2311
+ /** @deprecated use `DeploymentCreateMetricMessages2$inboundSchema` instead. */
2312
+ export const inboundSchema = DeploymentCreateMetricMessages2$inboundSchema;
2313
+ /** @deprecated use `DeploymentCreateMetricMessages2$outboundSchema` instead. */
2314
+ export const outboundSchema = DeploymentCreateMetricMessages2$outboundSchema;
2315
+ /** @deprecated use `DeploymentCreateMetricMessages2$Outbound` instead. */
2316
+ export type Outbound = DeploymentCreateMetricMessages2$Outbound;
870
2317
  }
871
2318
 
872
- export function deploymentCreateMetricFunctionToJSON(
873
- deploymentCreateMetricFunction: DeploymentCreateMetricFunction,
2319
+ export function deploymentCreateMetricMessages2ToJSON(
2320
+ deploymentCreateMetricMessages2: DeploymentCreateMetricMessages2,
874
2321
  ): string {
875
2322
  return JSON.stringify(
876
- DeploymentCreateMetricFunction$outboundSchema.parse(
877
- deploymentCreateMetricFunction,
2323
+ DeploymentCreateMetricMessages2$outboundSchema.parse(
2324
+ deploymentCreateMetricMessages2,
878
2325
  ),
879
2326
  );
880
2327
  }
881
2328
 
882
- export function deploymentCreateMetricFunctionFromJSON(
2329
+ export function deploymentCreateMetricMessages2FromJSON(
883
2330
  jsonString: string,
884
- ): SafeParseResult<DeploymentCreateMetricFunction, SDKValidationError> {
2331
+ ): SafeParseResult<DeploymentCreateMetricMessages2, SDKValidationError> {
885
2332
  return safeParse(
886
2333
  jsonString,
887
- (x) => DeploymentCreateMetricFunction$inboundSchema.parse(JSON.parse(x)),
888
- `Failed to parse 'DeploymentCreateMetricFunction' from JSON`,
2334
+ (x) => DeploymentCreateMetricMessages2$inboundSchema.parse(JSON.parse(x)),
2335
+ `Failed to parse 'DeploymentCreateMetricMessages2' from JSON`,
889
2336
  );
890
2337
  }
891
2338
 
892
2339
  /** @internal */
893
- export const DeploymentCreateMetricToolCalls$inboundSchema: z.ZodType<
894
- DeploymentCreateMetricToolCalls,
2340
+ export const DeploymentCreateMetricMessagesRole$inboundSchema: z.ZodNativeEnum<
2341
+ typeof DeploymentCreateMetricMessagesRole
2342
+ > = z.nativeEnum(DeploymentCreateMetricMessagesRole);
2343
+
2344
+ /** @internal */
2345
+ export const DeploymentCreateMetricMessagesRole$outboundSchema: z.ZodNativeEnum<
2346
+ typeof DeploymentCreateMetricMessagesRole
2347
+ > = DeploymentCreateMetricMessagesRole$inboundSchema;
2348
+
2349
+ /**
2350
+ * @internal
2351
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2352
+ */
2353
+ export namespace DeploymentCreateMetricMessagesRole$ {
2354
+ /** @deprecated use `DeploymentCreateMetricMessagesRole$inboundSchema` instead. */
2355
+ export const inboundSchema = DeploymentCreateMetricMessagesRole$inboundSchema;
2356
+ /** @deprecated use `DeploymentCreateMetricMessagesRole$outboundSchema` instead. */
2357
+ export const outboundSchema =
2358
+ DeploymentCreateMetricMessagesRole$outboundSchema;
2359
+ }
2360
+
2361
+ /** @internal */
2362
+ export const DeploymentCreateMetricMessages1$inboundSchema: z.ZodType<
2363
+ DeploymentCreateMetricMessages1,
895
2364
  z.ZodTypeDef,
896
2365
  unknown
897
2366
  > = z.object({
898
- id: z.string().optional(),
899
- index: z.number().optional(),
900
- type: DeploymentCreateMetricType$inboundSchema,
901
- function: z.lazy(() => DeploymentCreateMetricFunction$inboundSchema),
2367
+ role: DeploymentCreateMetricMessagesRole$inboundSchema,
2368
+ content: z.string(),
2369
+ name: z.string().optional(),
902
2370
  });
903
2371
 
904
2372
  /** @internal */
905
- export type DeploymentCreateMetricToolCalls$Outbound = {
906
- id?: string | undefined;
907
- index?: number | undefined;
908
- type: string;
909
- function: DeploymentCreateMetricFunction$Outbound;
2373
+ export type DeploymentCreateMetricMessages1$Outbound = {
2374
+ role: string;
2375
+ content: string;
2376
+ name?: string | undefined;
910
2377
  };
911
2378
 
912
2379
  /** @internal */
913
- export const DeploymentCreateMetricToolCalls$outboundSchema: z.ZodType<
914
- DeploymentCreateMetricToolCalls$Outbound,
2380
+ export const DeploymentCreateMetricMessages1$outboundSchema: z.ZodType<
2381
+ DeploymentCreateMetricMessages1$Outbound,
915
2382
  z.ZodTypeDef,
916
- DeploymentCreateMetricToolCalls
2383
+ DeploymentCreateMetricMessages1
917
2384
  > = z.object({
918
- id: z.string().optional(),
919
- index: z.number().optional(),
920
- type: DeploymentCreateMetricType$outboundSchema,
921
- function: z.lazy(() => DeploymentCreateMetricFunction$outboundSchema),
2385
+ role: DeploymentCreateMetricMessagesRole$outboundSchema,
2386
+ content: z.string(),
2387
+ name: z.string().optional(),
922
2388
  });
923
2389
 
924
2390
  /**
925
2391
  * @internal
926
2392
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
927
2393
  */
928
- export namespace DeploymentCreateMetricToolCalls$ {
929
- /** @deprecated use `DeploymentCreateMetricToolCalls$inboundSchema` instead. */
930
- export const inboundSchema = DeploymentCreateMetricToolCalls$inboundSchema;
931
- /** @deprecated use `DeploymentCreateMetricToolCalls$outboundSchema` instead. */
932
- export const outboundSchema = DeploymentCreateMetricToolCalls$outboundSchema;
933
- /** @deprecated use `DeploymentCreateMetricToolCalls$Outbound` instead. */
934
- export type Outbound = DeploymentCreateMetricToolCalls$Outbound;
2394
+ export namespace DeploymentCreateMetricMessages1$ {
2395
+ /** @deprecated use `DeploymentCreateMetricMessages1$inboundSchema` instead. */
2396
+ export const inboundSchema = DeploymentCreateMetricMessages1$inboundSchema;
2397
+ /** @deprecated use `DeploymentCreateMetricMessages1$outboundSchema` instead. */
2398
+ export const outboundSchema = DeploymentCreateMetricMessages1$outboundSchema;
2399
+ /** @deprecated use `DeploymentCreateMetricMessages1$Outbound` instead. */
2400
+ export type Outbound = DeploymentCreateMetricMessages1$Outbound;
935
2401
  }
936
2402
 
937
- export function deploymentCreateMetricToolCallsToJSON(
938
- deploymentCreateMetricToolCalls: DeploymentCreateMetricToolCalls,
2403
+ export function deploymentCreateMetricMessages1ToJSON(
2404
+ deploymentCreateMetricMessages1: DeploymentCreateMetricMessages1,
939
2405
  ): string {
940
2406
  return JSON.stringify(
941
- DeploymentCreateMetricToolCalls$outboundSchema.parse(
942
- deploymentCreateMetricToolCalls,
2407
+ DeploymentCreateMetricMessages1$outboundSchema.parse(
2408
+ deploymentCreateMetricMessages1,
943
2409
  ),
944
2410
  );
945
2411
  }
946
2412
 
947
- export function deploymentCreateMetricToolCallsFromJSON(
2413
+ export function deploymentCreateMetricMessages1FromJSON(
948
2414
  jsonString: string,
949
- ): SafeParseResult<DeploymentCreateMetricToolCalls, SDKValidationError> {
2415
+ ): SafeParseResult<DeploymentCreateMetricMessages1, SDKValidationError> {
950
2416
  return safeParse(
951
2417
  jsonString,
952
- (x) => DeploymentCreateMetricToolCalls$inboundSchema.parse(JSON.parse(x)),
953
- `Failed to parse 'DeploymentCreateMetricToolCalls' from JSON`,
2418
+ (x) => DeploymentCreateMetricMessages1$inboundSchema.parse(JSON.parse(x)),
2419
+ `Failed to parse 'DeploymentCreateMetricMessages1' from JSON`,
954
2420
  );
955
2421
  }
956
2422
 
@@ -959,57 +2425,34 @@ export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
959
2425
  DeploymentCreateMetricMessages,
960
2426
  z.ZodTypeDef,
961
2427
  unknown
962
- > = z.object({
963
- role: DeploymentCreateMetricRole$inboundSchema,
964
- content: z.union([
965
- z.string(),
966
- z.array(z.union([
967
- z.lazy(() => DeploymentCreateMetric21$inboundSchema),
968
- z.lazy(() => DeploymentCreateMetric22$inboundSchema),
969
- ])),
970
- ]),
971
- tool_calls: z.array(
972
- z.lazy(() => DeploymentCreateMetricToolCalls$inboundSchema),
973
- ).optional(),
974
- }).transform((v) => {
975
- return remap$(v, {
976
- "tool_calls": "toolCalls",
977
- });
978
- });
2428
+ > = z.union([
2429
+ z.lazy(() => DeploymentCreateMetricMessages1$inboundSchema),
2430
+ z.lazy(() => DeploymentCreateMetricMessages2$inboundSchema),
2431
+ z.lazy(() => DeploymentCreateMetricMessages3$inboundSchema),
2432
+ z.lazy(() => DeploymentCreateMetricMessages5$inboundSchema),
2433
+ z.lazy(() => DeploymentCreateMetricMessages4$inboundSchema),
2434
+ ]);
979
2435
 
980
2436
  /** @internal */
981
- export type DeploymentCreateMetricMessages$Outbound = {
982
- role: string;
983
- content:
984
- | string
985
- | Array<
986
- DeploymentCreateMetric21$Outbound | DeploymentCreateMetric22$Outbound
987
- >;
988
- tool_calls?: Array<DeploymentCreateMetricToolCalls$Outbound> | undefined;
989
- };
2437
+ export type DeploymentCreateMetricMessages$Outbound =
2438
+ | DeploymentCreateMetricMessages1$Outbound
2439
+ | DeploymentCreateMetricMessages2$Outbound
2440
+ | DeploymentCreateMetricMessages3$Outbound
2441
+ | DeploymentCreateMetricMessages5$Outbound
2442
+ | DeploymentCreateMetricMessages4$Outbound;
990
2443
 
991
2444
  /** @internal */
992
2445
  export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
993
2446
  DeploymentCreateMetricMessages$Outbound,
994
2447
  z.ZodTypeDef,
995
2448
  DeploymentCreateMetricMessages
996
- > = z.object({
997
- role: DeploymentCreateMetricRole$outboundSchema,
998
- content: z.union([
999
- z.string(),
1000
- z.array(z.union([
1001
- z.lazy(() => DeploymentCreateMetric21$outboundSchema),
1002
- z.lazy(() => DeploymentCreateMetric22$outboundSchema),
1003
- ])),
1004
- ]),
1005
- toolCalls: z.array(
1006
- z.lazy(() => DeploymentCreateMetricToolCalls$outboundSchema),
1007
- ).optional(),
1008
- }).transform((v) => {
1009
- return remap$(v, {
1010
- toolCalls: "tool_calls",
1011
- });
1012
- });
2449
+ > = z.union([
2450
+ z.lazy(() => DeploymentCreateMetricMessages1$outboundSchema),
2451
+ z.lazy(() => DeploymentCreateMetricMessages2$outboundSchema),
2452
+ z.lazy(() => DeploymentCreateMetricMessages3$outboundSchema),
2453
+ z.lazy(() => DeploymentCreateMetricMessages5$outboundSchema),
2454
+ z.lazy(() => DeploymentCreateMetricMessages4$outboundSchema),
2455
+ ]);
1013
2456
 
1014
2457
  /**
1015
2458
  * @internal
@@ -1068,23 +2511,26 @@ export namespace DeploymentCreateMetricMessageDeploymentsMetricsRole$ {
1068
2511
  }
1069
2512
 
1070
2513
  /** @internal */
1071
- export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
1072
- .object({
1073
- role: DeploymentCreateMetricMessageDeploymentsMetricsRole$inboundSchema,
1074
- url: z.string(),
1075
- });
2514
+ export const Message3$inboundSchema: z.ZodType<
2515
+ Message3,
2516
+ z.ZodTypeDef,
2517
+ unknown
2518
+ > = z.object({
2519
+ role: DeploymentCreateMetricMessageDeploymentsMetricsRole$inboundSchema,
2520
+ url: z.string(),
2521
+ });
1076
2522
 
1077
2523
  /** @internal */
1078
- export type Three$Outbound = {
2524
+ export type Message3$Outbound = {
1079
2525
  role: string;
1080
2526
  url: string;
1081
2527
  };
1082
2528
 
1083
2529
  /** @internal */
1084
- export const Three$outboundSchema: z.ZodType<
1085
- Three$Outbound,
2530
+ export const Message3$outboundSchema: z.ZodType<
2531
+ Message3$Outbound,
1086
2532
  z.ZodTypeDef,
1087
- Three
2533
+ Message3
1088
2534
  > = z.object({
1089
2535
  role: DeploymentCreateMetricMessageDeploymentsMetricsRole$outboundSchema,
1090
2536
  url: z.string(),
@@ -1094,26 +2540,26 @@ export const Three$outboundSchema: z.ZodType<
1094
2540
  * @internal
1095
2541
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1096
2542
  */
1097
- export namespace Three$ {
1098
- /** @deprecated use `Three$inboundSchema` instead. */
1099
- export const inboundSchema = Three$inboundSchema;
1100
- /** @deprecated use `Three$outboundSchema` instead. */
1101
- export const outboundSchema = Three$outboundSchema;
1102
- /** @deprecated use `Three$Outbound` instead. */
1103
- export type Outbound = Three$Outbound;
2543
+ export namespace Message3$ {
2544
+ /** @deprecated use `Message3$inboundSchema` instead. */
2545
+ export const inboundSchema = Message3$inboundSchema;
2546
+ /** @deprecated use `Message3$outboundSchema` instead. */
2547
+ export const outboundSchema = Message3$outboundSchema;
2548
+ /** @deprecated use `Message3$Outbound` instead. */
2549
+ export type Outbound = Message3$Outbound;
1104
2550
  }
1105
2551
 
1106
- export function threeToJSON(three: Three): string {
1107
- return JSON.stringify(Three$outboundSchema.parse(three));
2552
+ export function message3ToJSON(message3: Message3): string {
2553
+ return JSON.stringify(Message3$outboundSchema.parse(message3));
1108
2554
  }
1109
2555
 
1110
- export function threeFromJSON(
2556
+ export function message3FromJSON(
1111
2557
  jsonString: string,
1112
- ): SafeParseResult<Three, SDKValidationError> {
2558
+ ): SafeParseResult<Message3, SDKValidationError> {
1113
2559
  return safeParse(
1114
2560
  jsonString,
1115
- (x) => Three$inboundSchema.parse(JSON.parse(x)),
1116
- `Failed to parse 'Three' from JSON`,
2561
+ (x) => Message3$inboundSchema.parse(JSON.parse(x)),
2562
+ `Failed to parse 'Message3' from JSON`,
1117
2563
  );
1118
2564
  }
1119
2565
 
@@ -1416,14 +2862,14 @@ export function message1FromJSON(
1416
2862
  export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
1417
2863
  z.union([
1418
2864
  z.lazy(() => Message2$inboundSchema),
1419
- z.lazy(() => Three$inboundSchema),
2865
+ z.lazy(() => Message3$inboundSchema),
1420
2866
  z.lazy(() => Message1$inboundSchema),
1421
2867
  ]);
1422
2868
 
1423
2869
  /** @internal */
1424
2870
  export type Message$Outbound =
1425
2871
  | Message2$Outbound
1426
- | Three$Outbound
2872
+ | Message3$Outbound
1427
2873
  | Message1$Outbound;
1428
2874
 
1429
2875
  /** @internal */
@@ -1433,7 +2879,7 @@ export const Message$outboundSchema: z.ZodType<
1433
2879
  Message
1434
2880
  > = z.union([
1435
2881
  z.lazy(() => Message2$outboundSchema),
1436
- z.lazy(() => Three$outboundSchema),
2882
+ z.lazy(() => Message3$outboundSchema),
1437
2883
  z.lazy(() => Message1$outboundSchema),
1438
2884
  ]);
1439
2885
 
@@ -1470,7 +2916,7 @@ export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
1470
2916
  index: z.number(),
1471
2917
  message: z.union([
1472
2918
  z.lazy(() => Message2$inboundSchema),
1473
- z.lazy(() => Three$inboundSchema),
2919
+ z.lazy(() => Message3$inboundSchema),
1474
2920
  z.lazy(() => Message1$inboundSchema),
1475
2921
  ]).optional(),
1476
2922
  finish_reason: z.nullable(z.string()).optional(),
@@ -1483,7 +2929,11 @@ export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
1483
2929
  /** @internal */
1484
2930
  export type Choices$Outbound = {
1485
2931
  index: number;
1486
- message?: Message2$Outbound | Three$Outbound | Message1$Outbound | undefined;
2932
+ message?:
2933
+ | Message2$Outbound
2934
+ | Message3$Outbound
2935
+ | Message1$Outbound
2936
+ | undefined;
1487
2937
  finish_reason?: string | null | undefined;
1488
2938
  };
1489
2939
 
@@ -1496,7 +2946,7 @@ export const Choices$outboundSchema: z.ZodType<
1496
2946
  index: z.number(),
1497
2947
  message: z.union([
1498
2948
  z.lazy(() => Message2$outboundSchema),
1499
- z.lazy(() => Three$outboundSchema),
2949
+ z.lazy(() => Message3$outboundSchema),
1500
2950
  z.lazy(() => Message1$outboundSchema),
1501
2951
  ]).optional(),
1502
2952
  finishReason: z.nullable(z.string()).optional(),
@@ -1592,8 +3042,15 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
1592
3042
  metadata: z.record(z.any()).optional(),
1593
3043
  usage: z.lazy(() => Usage$inboundSchema).optional(),
1594
3044
  performance: z.lazy(() => Performance$inboundSchema).optional(),
1595
- messages: z.array(z.lazy(() => DeploymentCreateMetricMessages$inboundSchema))
1596
- .optional(),
3045
+ messages: z.array(
3046
+ z.union([
3047
+ z.lazy(() => DeploymentCreateMetricMessages1$inboundSchema),
3048
+ z.lazy(() => DeploymentCreateMetricMessages2$inboundSchema),
3049
+ z.lazy(() => DeploymentCreateMetricMessages3$inboundSchema),
3050
+ z.lazy(() => DeploymentCreateMetricMessages5$inboundSchema),
3051
+ z.lazy(() => DeploymentCreateMetricMessages4$inboundSchema),
3052
+ ]),
3053
+ ).optional(),
1597
3054
  choices: z.array(z.lazy(() => Choices$inboundSchema)).optional(),
1598
3055
  feedback: z.lazy(() => Feedback$inboundSchema).optional(),
1599
3056
  });
@@ -1603,7 +3060,15 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
1603
3060
  metadata?: { [k: string]: any } | undefined;
1604
3061
  usage?: Usage$Outbound | undefined;
1605
3062
  performance?: Performance$Outbound | undefined;
1606
- messages?: Array<DeploymentCreateMetricMessages$Outbound> | undefined;
3063
+ messages?:
3064
+ | Array<
3065
+ | DeploymentCreateMetricMessages1$Outbound
3066
+ | DeploymentCreateMetricMessages2$Outbound
3067
+ | DeploymentCreateMetricMessages3$Outbound
3068
+ | DeploymentCreateMetricMessages5$Outbound
3069
+ | DeploymentCreateMetricMessages4$Outbound
3070
+ >
3071
+ | undefined;
1607
3072
  choices?: Array<Choices$Outbound> | undefined;
1608
3073
  feedback?: Feedback$Outbound | undefined;
1609
3074
  };
@@ -1617,8 +3082,15 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
1617
3082
  metadata: z.record(z.any()).optional(),
1618
3083
  usage: z.lazy(() => Usage$outboundSchema).optional(),
1619
3084
  performance: z.lazy(() => Performance$outboundSchema).optional(),
1620
- messages: z.array(z.lazy(() => DeploymentCreateMetricMessages$outboundSchema))
1621
- .optional(),
3085
+ messages: z.array(
3086
+ z.union([
3087
+ z.lazy(() => DeploymentCreateMetricMessages1$outboundSchema),
3088
+ z.lazy(() => DeploymentCreateMetricMessages2$outboundSchema),
3089
+ z.lazy(() => DeploymentCreateMetricMessages3$outboundSchema),
3090
+ z.lazy(() => DeploymentCreateMetricMessages5$outboundSchema),
3091
+ z.lazy(() => DeploymentCreateMetricMessages4$outboundSchema),
3092
+ ]),
3093
+ ).optional(),
1622
3094
  choices: z.array(z.lazy(() => Choices$outboundSchema)).optional(),
1623
3095
  feedback: z.lazy(() => Feedback$outboundSchema).optional(),
1624
3096
  });