@orq-ai/node 3.2.0-rc.35 → 3.2.0-rc.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +629 -330
- package/bin/mcp-server.js.map +20 -20
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/deploymentcreatemetric.d.ts +817 -254
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +847 -254
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +262 -190
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +280 -218
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/deploymentcreatemetric.ts +2749 -1231
- package/src/models/operations/deploymentinvoke.ts +458 -407
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
|
@@ -435,247 +435,519 @@ export type DeploymentCreateMetricMessages =
|
|
|
435
435
|
| DeploymentCreateMetricMessagesToolMessage
|
|
436
436
|
| DeploymentCreateMetricMessagesAssistantMessage;
|
|
437
437
|
|
|
438
|
-
export const DeploymentCreateMetricMessageDeploymentsMetricsRequestType = {
|
|
439
|
-
Image: "image",
|
|
440
|
-
} as const;
|
|
441
|
-
export type DeploymentCreateMetricMessageDeploymentsMetricsRequestType =
|
|
442
|
-
ClosedEnum<typeof DeploymentCreateMetricMessageDeploymentsMetricsRequestType>;
|
|
443
|
-
|
|
444
438
|
/**
|
|
445
|
-
* The role of the
|
|
439
|
+
* The role of the messages author, in this case tool.
|
|
446
440
|
*/
|
|
447
|
-
export const
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
Exception: "exception",
|
|
452
|
-
Tool: "tool",
|
|
453
|
-
Prompt: "prompt",
|
|
454
|
-
Correction: "correction",
|
|
455
|
-
ExpectedOutput: "expected_output",
|
|
456
|
-
} as const;
|
|
441
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole =
|
|
442
|
+
{
|
|
443
|
+
Tool: "tool",
|
|
444
|
+
} as const;
|
|
457
445
|
/**
|
|
458
|
-
* The role of the
|
|
446
|
+
* The role of the messages author, in this case tool.
|
|
459
447
|
*/
|
|
460
|
-
export type
|
|
461
|
-
|
|
462
|
-
|
|
448
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole =
|
|
449
|
+
ClosedEnum<
|
|
450
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
451
|
+
>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The contents of the tool message.
|
|
455
|
+
*/
|
|
456
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent =
|
|
457
|
+
| string
|
|
458
|
+
| Array<string>;
|
|
463
459
|
|
|
464
|
-
export type
|
|
465
|
-
type: DeploymentCreateMetricMessageDeploymentsMetricsRequestType;
|
|
460
|
+
export type ChoicesToolMessage = {
|
|
466
461
|
/**
|
|
467
|
-
* The role of the
|
|
462
|
+
* The role of the messages author, in this case tool.
|
|
468
463
|
*/
|
|
469
|
-
role:
|
|
470
|
-
|
|
464
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole;
|
|
465
|
+
/**
|
|
466
|
+
* The contents of the tool message.
|
|
467
|
+
*/
|
|
468
|
+
content: string | Array<string>;
|
|
469
|
+
/**
|
|
470
|
+
* Tool call that this message is responding to.
|
|
471
|
+
*/
|
|
472
|
+
toolCallId: string;
|
|
471
473
|
};
|
|
472
474
|
|
|
473
|
-
export const DeploymentCreateMetricMessageDeploymentsMetricsType = {
|
|
474
|
-
Content: "content",
|
|
475
|
-
} as const;
|
|
476
|
-
export type DeploymentCreateMetricMessageDeploymentsMetricsType = ClosedEnum<
|
|
477
|
-
typeof DeploymentCreateMetricMessageDeploymentsMetricsType
|
|
478
|
-
>;
|
|
479
|
-
|
|
480
475
|
/**
|
|
481
|
-
* The
|
|
476
|
+
* The type of the content part.
|
|
482
477
|
*/
|
|
483
|
-
export const
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
Exception: "exception",
|
|
488
|
-
Tool: "tool",
|
|
489
|
-
Prompt: "prompt",
|
|
490
|
-
Correction: "correction",
|
|
491
|
-
ExpectedOutput: "expected_output",
|
|
492
|
-
} as const;
|
|
478
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
479
|
+
{
|
|
480
|
+
Refusal: "refusal",
|
|
481
|
+
} as const;
|
|
493
482
|
/**
|
|
494
|
-
* The
|
|
483
|
+
* The type of the content part.
|
|
495
484
|
*/
|
|
496
|
-
export type
|
|
497
|
-
|
|
498
|
-
|
|
485
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
486
|
+
ClosedEnum<
|
|
487
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
488
|
+
>;
|
|
499
489
|
|
|
500
|
-
export type
|
|
501
|
-
|
|
490
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart = {
|
|
491
|
+
/**
|
|
492
|
+
* The type of the content part.
|
|
493
|
+
*/
|
|
494
|
+
type:
|
|
495
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType;
|
|
502
496
|
/**
|
|
503
|
-
* The
|
|
497
|
+
* The refusal message generated by the model.
|
|
504
498
|
*/
|
|
505
|
-
|
|
506
|
-
content: string | null;
|
|
499
|
+
refusal: string;
|
|
507
500
|
};
|
|
508
501
|
|
|
509
|
-
export const MessageType = {
|
|
510
|
-
ToolCalls: "tool_calls",
|
|
511
|
-
} as const;
|
|
512
|
-
export type MessageType = ClosedEnum<typeof MessageType>;
|
|
513
|
-
|
|
514
502
|
/**
|
|
515
|
-
* The
|
|
503
|
+
* The type of the content part.
|
|
516
504
|
*/
|
|
517
|
-
export const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
Exception: "exception",
|
|
522
|
-
Tool: "tool",
|
|
523
|
-
Prompt: "prompt",
|
|
524
|
-
Correction: "correction",
|
|
525
|
-
ExpectedOutput: "expected_output",
|
|
526
|
-
} as const;
|
|
505
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type =
|
|
506
|
+
{
|
|
507
|
+
Text: "text",
|
|
508
|
+
} as const;
|
|
527
509
|
/**
|
|
528
|
-
* The
|
|
510
|
+
* The type of the content part.
|
|
529
511
|
*/
|
|
530
|
-
export type
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
} as const;
|
|
535
|
-
export type DeploymentCreateMetricMessageType = ClosedEnum<
|
|
536
|
-
typeof DeploymentCreateMetricMessageType
|
|
537
|
-
>;
|
|
512
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type =
|
|
513
|
+
ClosedEnum<
|
|
514
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
515
|
+
>;
|
|
538
516
|
|
|
539
|
-
export type
|
|
540
|
-
name: string;
|
|
517
|
+
export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart = {
|
|
541
518
|
/**
|
|
542
|
-
*
|
|
519
|
+
* The type of the content part.
|
|
543
520
|
*/
|
|
544
|
-
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
export type MessageToolCalls = {
|
|
548
|
-
id?: string | undefined;
|
|
549
|
-
index?: number | undefined;
|
|
550
|
-
type: DeploymentCreateMetricMessageType;
|
|
551
|
-
function: MessageFunction;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
export type Message1 = {
|
|
555
|
-
type: MessageType;
|
|
521
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type;
|
|
556
522
|
/**
|
|
557
|
-
* The
|
|
523
|
+
* The text content.
|
|
558
524
|
*/
|
|
559
|
-
|
|
560
|
-
content?: string | null | undefined;
|
|
561
|
-
toolCalls: Array<MessageToolCalls>;
|
|
525
|
+
text: string;
|
|
562
526
|
};
|
|
563
527
|
|
|
564
|
-
export type
|
|
528
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2 =
|
|
529
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
530
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart;
|
|
565
531
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
532
|
+
/**
|
|
533
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
534
|
+
*/
|
|
535
|
+
export type DeploymentCreateMetricChoicesContent =
|
|
536
|
+
| string
|
|
537
|
+
| Array<
|
|
538
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
539
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
540
|
+
>;
|
|
571
541
|
|
|
572
542
|
/**
|
|
573
|
-
*
|
|
543
|
+
* The role of the messages author, in this case `assistant`.
|
|
574
544
|
*/
|
|
575
|
-
export
|
|
545
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = {
|
|
546
|
+
Assistant: "assistant",
|
|
547
|
+
} as const;
|
|
548
|
+
/**
|
|
549
|
+
* The role of the messages author, in this case `assistant`.
|
|
550
|
+
*/
|
|
551
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole =
|
|
552
|
+
ClosedEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole>;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Data about a previous audio response from the model.
|
|
556
|
+
*/
|
|
557
|
+
export type ChoicesAudio = {
|
|
576
558
|
/**
|
|
577
|
-
*
|
|
559
|
+
* Unique identifier for a previous audio response from the model.
|
|
578
560
|
*/
|
|
579
|
-
|
|
561
|
+
id: string;
|
|
580
562
|
};
|
|
581
563
|
|
|
582
564
|
/**
|
|
583
|
-
* The
|
|
565
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
584
566
|
*/
|
|
585
|
-
export
|
|
567
|
+
export const ChoicesType = {
|
|
568
|
+
Function: "function",
|
|
569
|
+
} as const;
|
|
570
|
+
/**
|
|
571
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
572
|
+
*/
|
|
573
|
+
export type ChoicesType = ClosedEnum<typeof ChoicesType>;
|
|
574
|
+
|
|
575
|
+
export type ChoicesFunction = {
|
|
586
576
|
/**
|
|
587
|
-
*
|
|
577
|
+
* The name of the function to call.
|
|
588
578
|
*/
|
|
589
|
-
|
|
579
|
+
name?: string | undefined;
|
|
590
580
|
/**
|
|
591
|
-
*
|
|
581
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
592
582
|
*/
|
|
593
|
-
|
|
594
|
-
|
|
583
|
+
arguments?: string | undefined;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
export type ChoicesToolCalls = {
|
|
595
587
|
/**
|
|
596
|
-
*
|
|
588
|
+
* The ID of the tool call.
|
|
597
589
|
*/
|
|
598
|
-
|
|
590
|
+
id: string;
|
|
591
|
+
/**
|
|
592
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
593
|
+
*/
|
|
594
|
+
type: ChoicesType;
|
|
595
|
+
function: ChoicesFunction;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
export type ChoicesAssistantMessage = {
|
|
599
|
+
/**
|
|
600
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
601
|
+
*/
|
|
602
|
+
content?:
|
|
603
|
+
| string
|
|
599
604
|
| Array<
|
|
600
|
-
|
|
|
601
|
-
|
|
|
602
|
-
| DeploymentCreateMetricMessagesUserMessage
|
|
603
|
-
| DeploymentCreateMetricMessagesToolMessage
|
|
604
|
-
| DeploymentCreateMetricMessagesAssistantMessage
|
|
605
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
606
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
605
607
|
>
|
|
606
608
|
| undefined;
|
|
607
609
|
/**
|
|
608
|
-
*
|
|
610
|
+
* The refusal message by the assistant.
|
|
609
611
|
*/
|
|
610
|
-
|
|
612
|
+
refusal?: string | null | undefined;
|
|
611
613
|
/**
|
|
612
|
-
*
|
|
614
|
+
* The role of the messages author, in this case `assistant`.
|
|
613
615
|
*/
|
|
614
|
-
|
|
616
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole;
|
|
617
|
+
/**
|
|
618
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
619
|
+
*/
|
|
620
|
+
name?: string | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* Data about a previous audio response from the model.
|
|
623
|
+
*/
|
|
624
|
+
audio?: ChoicesAudio | null | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* The tool calls generated by the model, such as function calls.
|
|
627
|
+
*/
|
|
628
|
+
toolCalls?: Array<ChoicesToolCalls> | undefined;
|
|
615
629
|
};
|
|
616
630
|
|
|
617
|
-
|
|
631
|
+
/**
|
|
632
|
+
* The role of the messages author, in this case `user`.
|
|
633
|
+
*/
|
|
634
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole = {
|
|
635
|
+
User: "user",
|
|
636
|
+
} as const;
|
|
637
|
+
/**
|
|
638
|
+
* The role of the messages author, in this case `user`.
|
|
639
|
+
*/
|
|
640
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRole = ClosedEnum<
|
|
641
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole
|
|
642
|
+
>;
|
|
643
|
+
|
|
644
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType =
|
|
645
|
+
{
|
|
646
|
+
InputAudio: "input_audio",
|
|
647
|
+
} as const;
|
|
648
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType =
|
|
649
|
+
ClosedEnum<
|
|
650
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
651
|
+
>;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
655
|
+
*/
|
|
656
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat = {
|
|
657
|
+
Mp3: "mp3",
|
|
658
|
+
Wav: "wav",
|
|
659
|
+
} as const;
|
|
660
|
+
/**
|
|
661
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
662
|
+
*/
|
|
663
|
+
export type DeploymentCreateMetric2DeploymentsMetricsFormat = ClosedEnum<
|
|
664
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsFormat
|
|
665
|
+
>;
|
|
666
|
+
|
|
667
|
+
export type DeploymentCreateMetric2DeploymentsMetricsInputAudio = {
|
|
618
668
|
/**
|
|
619
|
-
*
|
|
669
|
+
* Base64 encoded audio data.
|
|
620
670
|
*/
|
|
621
|
-
|
|
671
|
+
data: string;
|
|
622
672
|
/**
|
|
623
|
-
* The
|
|
673
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
624
674
|
*/
|
|
625
|
-
|
|
675
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
export type DeploymentCreateMetric2DeploymentsMetrics3 = {
|
|
679
|
+
type:
|
|
680
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType;
|
|
681
|
+
inputAudio: DeploymentCreateMetric2DeploymentsMetricsInputAudio;
|
|
626
682
|
};
|
|
627
683
|
|
|
684
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
685
|
+
{
|
|
686
|
+
ImageUrl: "image_url",
|
|
687
|
+
} as const;
|
|
688
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
689
|
+
ClosedEnum<
|
|
690
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
691
|
+
>;
|
|
692
|
+
|
|
628
693
|
/**
|
|
629
|
-
*
|
|
694
|
+
* Specifies the detail level of the image.
|
|
630
695
|
*/
|
|
631
|
-
export
|
|
696
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail = {
|
|
697
|
+
Low: "low",
|
|
698
|
+
High: "high",
|
|
699
|
+
Auto: "auto",
|
|
700
|
+
} as const;
|
|
701
|
+
/**
|
|
702
|
+
* Specifies the detail level of the image.
|
|
703
|
+
*/
|
|
704
|
+
export type DeploymentCreateMetric2DeploymentsMetricsDetail = ClosedEnum<
|
|
705
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsDetail
|
|
706
|
+
>;
|
|
707
|
+
|
|
708
|
+
export type DeploymentCreateMetric2DeploymentsMetricsImageUrl = {
|
|
632
709
|
/**
|
|
633
|
-
*
|
|
710
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
634
711
|
*/
|
|
635
|
-
|
|
712
|
+
url: string;
|
|
713
|
+
/**
|
|
714
|
+
* Specifies the detail level of the image.
|
|
715
|
+
*/
|
|
716
|
+
detail?: DeploymentCreateMetric2DeploymentsMetricsDetail | undefined;
|
|
636
717
|
};
|
|
637
718
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
completion_tokens: z.number(),
|
|
643
|
-
total_tokens: z.number().optional(),
|
|
644
|
-
}).transform((v) => {
|
|
645
|
-
return remap$(v, {
|
|
646
|
-
"prompt_tokens": "promptTokens",
|
|
647
|
-
"completion_tokens": "completionTokens",
|
|
648
|
-
"total_tokens": "totalTokens",
|
|
649
|
-
});
|
|
650
|
-
});
|
|
719
|
+
export type DeploymentCreateMetric2DeploymentsMetrics2 = {
|
|
720
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type;
|
|
721
|
+
imageUrl: DeploymentCreateMetric2DeploymentsMetricsImageUrl;
|
|
722
|
+
};
|
|
651
723
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
724
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType =
|
|
725
|
+
{
|
|
726
|
+
Text: "text",
|
|
727
|
+
} as const;
|
|
728
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType =
|
|
729
|
+
ClosedEnum<
|
|
730
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
731
|
+
>;
|
|
732
|
+
|
|
733
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1 = {
|
|
734
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType;
|
|
735
|
+
text: string;
|
|
657
736
|
};
|
|
658
737
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
Usage
|
|
664
|
-
> = z.object({
|
|
665
|
-
promptTokens: z.number(),
|
|
666
|
-
completionTokens: z.number(),
|
|
667
|
-
totalTokens: z.number().optional(),
|
|
668
|
-
}).transform((v) => {
|
|
669
|
-
return remap$(v, {
|
|
670
|
-
promptTokens: "prompt_tokens",
|
|
671
|
-
completionTokens: "completion_tokens",
|
|
672
|
-
totalTokens: "total_tokens",
|
|
673
|
-
});
|
|
674
|
-
});
|
|
738
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2 =
|
|
739
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
740
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
741
|
+
| DeploymentCreateMetric2DeploymentsMetrics3;
|
|
675
742
|
|
|
676
743
|
/**
|
|
677
|
-
*
|
|
678
|
-
|
|
744
|
+
* The contents of the user message.
|
|
745
|
+
*/
|
|
746
|
+
export type ChoicesContent =
|
|
747
|
+
| string
|
|
748
|
+
| Array<
|
|
749
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
750
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
751
|
+
| DeploymentCreateMetric2DeploymentsMetrics3
|
|
752
|
+
>;
|
|
753
|
+
|
|
754
|
+
export type ChoicesUserMessage = {
|
|
755
|
+
/**
|
|
756
|
+
* The role of the messages author, in this case `user`.
|
|
757
|
+
*/
|
|
758
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole;
|
|
759
|
+
/**
|
|
760
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
761
|
+
*/
|
|
762
|
+
name?: string | undefined;
|
|
763
|
+
/**
|
|
764
|
+
* The contents of the user message.
|
|
765
|
+
*/
|
|
766
|
+
content:
|
|
767
|
+
| string
|
|
768
|
+
| Array<
|
|
769
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
770
|
+
| DeploymentCreateMetric2DeploymentsMetrics2
|
|
771
|
+
| DeploymentCreateMetric2DeploymentsMetrics3
|
|
772
|
+
>;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* The role of the messages author, in this case `system`.
|
|
777
|
+
*/
|
|
778
|
+
export const DeploymentCreateMetricChoicesRole = {
|
|
779
|
+
System: "system",
|
|
780
|
+
} as const;
|
|
781
|
+
/**
|
|
782
|
+
* The role of the messages author, in this case `system`.
|
|
783
|
+
*/
|
|
784
|
+
export type DeploymentCreateMetricChoicesRole = ClosedEnum<
|
|
785
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
786
|
+
>;
|
|
787
|
+
|
|
788
|
+
export type ChoicesSystemMessage = {
|
|
789
|
+
/**
|
|
790
|
+
* The role of the messages author, in this case `system`.
|
|
791
|
+
*/
|
|
792
|
+
role: DeploymentCreateMetricChoicesRole;
|
|
793
|
+
/**
|
|
794
|
+
* The contents of the system message.
|
|
795
|
+
*/
|
|
796
|
+
content: string;
|
|
797
|
+
/**
|
|
798
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
799
|
+
*/
|
|
800
|
+
name?: string | undefined;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The role of the messages author, in this case `developer`.
|
|
805
|
+
*/
|
|
806
|
+
export const ChoicesRole = {
|
|
807
|
+
Developer: "developer",
|
|
808
|
+
} as const;
|
|
809
|
+
/**
|
|
810
|
+
* The role of the messages author, in this case `developer`.
|
|
811
|
+
*/
|
|
812
|
+
export type ChoicesRole = ClosedEnum<typeof ChoicesRole>;
|
|
813
|
+
|
|
814
|
+
export type ChoicesDeveloperMessage = {
|
|
815
|
+
/**
|
|
816
|
+
* The role of the messages author, in this case `developer`.
|
|
817
|
+
*/
|
|
818
|
+
role: ChoicesRole;
|
|
819
|
+
/**
|
|
820
|
+
* The contents of the developer message.
|
|
821
|
+
*/
|
|
822
|
+
content: string;
|
|
823
|
+
/**
|
|
824
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
825
|
+
*/
|
|
826
|
+
name?: string | undefined;
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
export type Choices =
|
|
830
|
+
| ChoicesDeveloperMessage
|
|
831
|
+
| ChoicesSystemMessage
|
|
832
|
+
| ChoicesUserMessage
|
|
833
|
+
| ChoicesToolMessage
|
|
834
|
+
| ChoicesAssistantMessage;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Feedback from the user on the completion
|
|
838
|
+
*/
|
|
839
|
+
export type Feedback = {
|
|
840
|
+
/**
|
|
841
|
+
* The feedback score. This allow you to come with specific logic on what a `score` number means
|
|
842
|
+
*/
|
|
843
|
+
score: number;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* The deployment request payload
|
|
848
|
+
*/
|
|
849
|
+
export type DeploymentCreateMetricRequestBody = {
|
|
850
|
+
/**
|
|
851
|
+
* Your own custom key-value pairs can be attached to the logs. This is useful for storing additional information related to your interactions with the LLM providers or specifics within your application.
|
|
852
|
+
*/
|
|
853
|
+
metadata?: { [k: string]: any } | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* Usage statistics to add to the deployment
|
|
856
|
+
*/
|
|
857
|
+
usage?: Usage | undefined;
|
|
858
|
+
performance?: Performance | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* A list of messages sent to the model.
|
|
861
|
+
*/
|
|
862
|
+
messages?:
|
|
863
|
+
| Array<
|
|
864
|
+
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
865
|
+
| DeploymentCreateMetricMessagesSystemMessage
|
|
866
|
+
| DeploymentCreateMetricMessagesUserMessage
|
|
867
|
+
| DeploymentCreateMetricMessagesToolMessage
|
|
868
|
+
| DeploymentCreateMetricMessagesAssistantMessage
|
|
869
|
+
>
|
|
870
|
+
| undefined;
|
|
871
|
+
/**
|
|
872
|
+
* A list of completion choices. If you are using a `completion` model then you must provide the `completion content` with the chat completion format
|
|
873
|
+
*/
|
|
874
|
+
choices?:
|
|
875
|
+
| Array<
|
|
876
|
+
| ChoicesDeveloperMessage
|
|
877
|
+
| ChoicesSystemMessage
|
|
878
|
+
| ChoicesUserMessage
|
|
879
|
+
| ChoicesToolMessage
|
|
880
|
+
| ChoicesAssistantMessage
|
|
881
|
+
>
|
|
882
|
+
| undefined;
|
|
883
|
+
/**
|
|
884
|
+
* Feedback from the user on the completion
|
|
885
|
+
*/
|
|
886
|
+
feedback?: Feedback | undefined;
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
export type DeploymentCreateMetricRequest = {
|
|
890
|
+
/**
|
|
891
|
+
* Deployment ID
|
|
892
|
+
*/
|
|
893
|
+
id: string;
|
|
894
|
+
/**
|
|
895
|
+
* The deployment request payload
|
|
896
|
+
*/
|
|
897
|
+
requestBody: DeploymentCreateMetricRequestBody;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Successful operation
|
|
902
|
+
*/
|
|
903
|
+
export type DeploymentCreateMetricResponseBody = {
|
|
904
|
+
/**
|
|
905
|
+
* Whether the request was successful
|
|
906
|
+
*/
|
|
907
|
+
success: boolean;
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
/** @internal */
|
|
911
|
+
export const Usage$inboundSchema: z.ZodType<Usage, z.ZodTypeDef, unknown> = z
|
|
912
|
+
.object({
|
|
913
|
+
prompt_tokens: z.number(),
|
|
914
|
+
completion_tokens: z.number(),
|
|
915
|
+
total_tokens: z.number().optional(),
|
|
916
|
+
}).transform((v) => {
|
|
917
|
+
return remap$(v, {
|
|
918
|
+
"prompt_tokens": "promptTokens",
|
|
919
|
+
"completion_tokens": "completionTokens",
|
|
920
|
+
"total_tokens": "totalTokens",
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
/** @internal */
|
|
925
|
+
export type Usage$Outbound = {
|
|
926
|
+
prompt_tokens: number;
|
|
927
|
+
completion_tokens: number;
|
|
928
|
+
total_tokens?: number | undefined;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
/** @internal */
|
|
932
|
+
export const Usage$outboundSchema: z.ZodType<
|
|
933
|
+
Usage$Outbound,
|
|
934
|
+
z.ZodTypeDef,
|
|
935
|
+
Usage
|
|
936
|
+
> = z.object({
|
|
937
|
+
promptTokens: z.number(),
|
|
938
|
+
completionTokens: z.number(),
|
|
939
|
+
totalTokens: z.number().optional(),
|
|
940
|
+
}).transform((v) => {
|
|
941
|
+
return remap$(v, {
|
|
942
|
+
promptTokens: "prompt_tokens",
|
|
943
|
+
completionTokens: "completion_tokens",
|
|
944
|
+
totalTokens: "total_tokens",
|
|
945
|
+
});
|
|
946
|
+
});
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* @internal
|
|
950
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
679
951
|
*/
|
|
680
952
|
export namespace Usage$ {
|
|
681
953
|
/** @deprecated use `Usage$inboundSchema` instead. */
|
|
@@ -1310,494 +1582,1388 @@ export const DeploymentCreateMetricMessagesAudio$inboundSchema: z.ZodType<
|
|
|
1310
1582
|
});
|
|
1311
1583
|
|
|
1312
1584
|
/** @internal */
|
|
1313
|
-
export type DeploymentCreateMetricMessagesAudio$Outbound = {
|
|
1314
|
-
id: string;
|
|
1315
|
-
};
|
|
1585
|
+
export type DeploymentCreateMetricMessagesAudio$Outbound = {
|
|
1586
|
+
id: string;
|
|
1587
|
+
};
|
|
1588
|
+
|
|
1589
|
+
/** @internal */
|
|
1590
|
+
export const DeploymentCreateMetricMessagesAudio$outboundSchema: z.ZodType<
|
|
1591
|
+
DeploymentCreateMetricMessagesAudio$Outbound,
|
|
1592
|
+
z.ZodTypeDef,
|
|
1593
|
+
DeploymentCreateMetricMessagesAudio
|
|
1594
|
+
> = z.object({
|
|
1595
|
+
id: z.string(),
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* @internal
|
|
1600
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1601
|
+
*/
|
|
1602
|
+
export namespace DeploymentCreateMetricMessagesAudio$ {
|
|
1603
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAudio$inboundSchema` instead. */
|
|
1604
|
+
export const inboundSchema =
|
|
1605
|
+
DeploymentCreateMetricMessagesAudio$inboundSchema;
|
|
1606
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAudio$outboundSchema` instead. */
|
|
1607
|
+
export const outboundSchema =
|
|
1608
|
+
DeploymentCreateMetricMessagesAudio$outboundSchema;
|
|
1609
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAudio$Outbound` instead. */
|
|
1610
|
+
export type Outbound = DeploymentCreateMetricMessagesAudio$Outbound;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
export function deploymentCreateMetricMessagesAudioToJSON(
|
|
1614
|
+
deploymentCreateMetricMessagesAudio: DeploymentCreateMetricMessagesAudio,
|
|
1615
|
+
): string {
|
|
1616
|
+
return JSON.stringify(
|
|
1617
|
+
DeploymentCreateMetricMessagesAudio$outboundSchema.parse(
|
|
1618
|
+
deploymentCreateMetricMessagesAudio,
|
|
1619
|
+
),
|
|
1620
|
+
);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
export function deploymentCreateMetricMessagesAudioFromJSON(
|
|
1624
|
+
jsonString: string,
|
|
1625
|
+
): SafeParseResult<DeploymentCreateMetricMessagesAudio, SDKValidationError> {
|
|
1626
|
+
return safeParse(
|
|
1627
|
+
jsonString,
|
|
1628
|
+
(x) =>
|
|
1629
|
+
DeploymentCreateMetricMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1630
|
+
`Failed to parse 'DeploymentCreateMetricMessagesAudio' from JSON`,
|
|
1631
|
+
);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/** @internal */
|
|
1635
|
+
export const DeploymentCreateMetricMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
1636
|
+
typeof DeploymentCreateMetricMessagesType
|
|
1637
|
+
> = z.nativeEnum(DeploymentCreateMetricMessagesType);
|
|
1638
|
+
|
|
1639
|
+
/** @internal */
|
|
1640
|
+
export const DeploymentCreateMetricMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1641
|
+
typeof DeploymentCreateMetricMessagesType
|
|
1642
|
+
> = DeploymentCreateMetricMessagesType$inboundSchema;
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* @internal
|
|
1646
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1647
|
+
*/
|
|
1648
|
+
export namespace DeploymentCreateMetricMessagesType$ {
|
|
1649
|
+
/** @deprecated use `DeploymentCreateMetricMessagesType$inboundSchema` instead. */
|
|
1650
|
+
export const inboundSchema = DeploymentCreateMetricMessagesType$inboundSchema;
|
|
1651
|
+
/** @deprecated use `DeploymentCreateMetricMessagesType$outboundSchema` instead. */
|
|
1652
|
+
export const outboundSchema =
|
|
1653
|
+
DeploymentCreateMetricMessagesType$outboundSchema;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/** @internal */
|
|
1657
|
+
export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
|
|
1658
|
+
DeploymentCreateMetricMessagesFunction,
|
|
1659
|
+
z.ZodTypeDef,
|
|
1660
|
+
unknown
|
|
1661
|
+
> = z.object({
|
|
1662
|
+
name: z.string().optional(),
|
|
1663
|
+
arguments: z.string().optional(),
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
/** @internal */
|
|
1667
|
+
export type DeploymentCreateMetricMessagesFunction$Outbound = {
|
|
1668
|
+
name?: string | undefined;
|
|
1669
|
+
arguments?: string | undefined;
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
/** @internal */
|
|
1673
|
+
export const DeploymentCreateMetricMessagesFunction$outboundSchema: z.ZodType<
|
|
1674
|
+
DeploymentCreateMetricMessagesFunction$Outbound,
|
|
1675
|
+
z.ZodTypeDef,
|
|
1676
|
+
DeploymentCreateMetricMessagesFunction
|
|
1677
|
+
> = z.object({
|
|
1678
|
+
name: z.string().optional(),
|
|
1679
|
+
arguments: z.string().optional(),
|
|
1680
|
+
});
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* @internal
|
|
1684
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1685
|
+
*/
|
|
1686
|
+
export namespace DeploymentCreateMetricMessagesFunction$ {
|
|
1687
|
+
/** @deprecated use `DeploymentCreateMetricMessagesFunction$inboundSchema` instead. */
|
|
1688
|
+
export const inboundSchema =
|
|
1689
|
+
DeploymentCreateMetricMessagesFunction$inboundSchema;
|
|
1690
|
+
/** @deprecated use `DeploymentCreateMetricMessagesFunction$outboundSchema` instead. */
|
|
1691
|
+
export const outboundSchema =
|
|
1692
|
+
DeploymentCreateMetricMessagesFunction$outboundSchema;
|
|
1693
|
+
/** @deprecated use `DeploymentCreateMetricMessagesFunction$Outbound` instead. */
|
|
1694
|
+
export type Outbound = DeploymentCreateMetricMessagesFunction$Outbound;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
export function deploymentCreateMetricMessagesFunctionToJSON(
|
|
1698
|
+
deploymentCreateMetricMessagesFunction:
|
|
1699
|
+
DeploymentCreateMetricMessagesFunction,
|
|
1700
|
+
): string {
|
|
1701
|
+
return JSON.stringify(
|
|
1702
|
+
DeploymentCreateMetricMessagesFunction$outboundSchema.parse(
|
|
1703
|
+
deploymentCreateMetricMessagesFunction,
|
|
1704
|
+
),
|
|
1705
|
+
);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
export function deploymentCreateMetricMessagesFunctionFromJSON(
|
|
1709
|
+
jsonString: string,
|
|
1710
|
+
): SafeParseResult<DeploymentCreateMetricMessagesFunction, SDKValidationError> {
|
|
1711
|
+
return safeParse(
|
|
1712
|
+
jsonString,
|
|
1713
|
+
(x) =>
|
|
1714
|
+
DeploymentCreateMetricMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1715
|
+
`Failed to parse 'DeploymentCreateMetricMessagesFunction' from JSON`,
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/** @internal */
|
|
1720
|
+
export const DeploymentCreateMetricMessagesToolCalls$inboundSchema: z.ZodType<
|
|
1721
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
1722
|
+
z.ZodTypeDef,
|
|
1723
|
+
unknown
|
|
1724
|
+
> = z.object({
|
|
1725
|
+
id: z.string(),
|
|
1726
|
+
type: DeploymentCreateMetricMessagesType$inboundSchema,
|
|
1727
|
+
function: z.lazy(() => DeploymentCreateMetricMessagesFunction$inboundSchema),
|
|
1728
|
+
});
|
|
1729
|
+
|
|
1730
|
+
/** @internal */
|
|
1731
|
+
export type DeploymentCreateMetricMessagesToolCalls$Outbound = {
|
|
1732
|
+
id: string;
|
|
1733
|
+
type: string;
|
|
1734
|
+
function: DeploymentCreateMetricMessagesFunction$Outbound;
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
/** @internal */
|
|
1738
|
+
export const DeploymentCreateMetricMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1739
|
+
DeploymentCreateMetricMessagesToolCalls$Outbound,
|
|
1740
|
+
z.ZodTypeDef,
|
|
1741
|
+
DeploymentCreateMetricMessagesToolCalls
|
|
1742
|
+
> = z.object({
|
|
1743
|
+
id: z.string(),
|
|
1744
|
+
type: DeploymentCreateMetricMessagesType$outboundSchema,
|
|
1745
|
+
function: z.lazy(() => DeploymentCreateMetricMessagesFunction$outboundSchema),
|
|
1746
|
+
});
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* @internal
|
|
1750
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1751
|
+
*/
|
|
1752
|
+
export namespace DeploymentCreateMetricMessagesToolCalls$ {
|
|
1753
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolCalls$inboundSchema` instead. */
|
|
1754
|
+
export const inboundSchema =
|
|
1755
|
+
DeploymentCreateMetricMessagesToolCalls$inboundSchema;
|
|
1756
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolCalls$outboundSchema` instead. */
|
|
1757
|
+
export const outboundSchema =
|
|
1758
|
+
DeploymentCreateMetricMessagesToolCalls$outboundSchema;
|
|
1759
|
+
/** @deprecated use `DeploymentCreateMetricMessagesToolCalls$Outbound` instead. */
|
|
1760
|
+
export type Outbound = DeploymentCreateMetricMessagesToolCalls$Outbound;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
export function deploymentCreateMetricMessagesToolCallsToJSON(
|
|
1764
|
+
deploymentCreateMetricMessagesToolCalls:
|
|
1765
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
1766
|
+
): string {
|
|
1767
|
+
return JSON.stringify(
|
|
1768
|
+
DeploymentCreateMetricMessagesToolCalls$outboundSchema.parse(
|
|
1769
|
+
deploymentCreateMetricMessagesToolCalls,
|
|
1770
|
+
),
|
|
1771
|
+
);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export function deploymentCreateMetricMessagesToolCallsFromJSON(
|
|
1775
|
+
jsonString: string,
|
|
1776
|
+
): SafeParseResult<
|
|
1777
|
+
DeploymentCreateMetricMessagesToolCalls,
|
|
1778
|
+
SDKValidationError
|
|
1779
|
+
> {
|
|
1780
|
+
return safeParse(
|
|
1781
|
+
jsonString,
|
|
1782
|
+
(x) =>
|
|
1783
|
+
DeploymentCreateMetricMessagesToolCalls$inboundSchema.parse(
|
|
1784
|
+
JSON.parse(x),
|
|
1785
|
+
),
|
|
1786
|
+
`Failed to parse 'DeploymentCreateMetricMessagesToolCalls' from JSON`,
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/** @internal */
|
|
1791
|
+
export const DeploymentCreateMetricMessagesAssistantMessage$inboundSchema:
|
|
1792
|
+
z.ZodType<
|
|
1793
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1794
|
+
z.ZodTypeDef,
|
|
1795
|
+
unknown
|
|
1796
|
+
> = z.object({
|
|
1797
|
+
content: z.union([
|
|
1798
|
+
z.string(),
|
|
1799
|
+
z.array(z.union([
|
|
1800
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
|
|
1801
|
+
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
|
|
1802
|
+
])),
|
|
1803
|
+
]).optional(),
|
|
1804
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1805
|
+
role:
|
|
1806
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
1807
|
+
name: z.string().optional(),
|
|
1808
|
+
audio: z.nullable(
|
|
1809
|
+
z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
|
|
1810
|
+
).optional(),
|
|
1811
|
+
tool_calls: z.array(
|
|
1812
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
|
|
1813
|
+
).optional(),
|
|
1814
|
+
}).transform((v) => {
|
|
1815
|
+
return remap$(v, {
|
|
1816
|
+
"tool_calls": "toolCalls",
|
|
1817
|
+
});
|
|
1818
|
+
});
|
|
1819
|
+
|
|
1820
|
+
/** @internal */
|
|
1821
|
+
export type DeploymentCreateMetricMessagesAssistantMessage$Outbound = {
|
|
1822
|
+
content?:
|
|
1823
|
+
| string
|
|
1824
|
+
| Array<
|
|
1825
|
+
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
1826
|
+
| DeploymentCreateMetric2RefusalContentPart$Outbound
|
|
1827
|
+
>
|
|
1828
|
+
| undefined;
|
|
1829
|
+
refusal?: string | null | undefined;
|
|
1830
|
+
role: string;
|
|
1831
|
+
name?: string | undefined;
|
|
1832
|
+
audio?: DeploymentCreateMetricMessagesAudio$Outbound | null | undefined;
|
|
1833
|
+
tool_calls?:
|
|
1834
|
+
| Array<DeploymentCreateMetricMessagesToolCalls$Outbound>
|
|
1835
|
+
| undefined;
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
/** @internal */
|
|
1839
|
+
export const DeploymentCreateMetricMessagesAssistantMessage$outboundSchema:
|
|
1840
|
+
z.ZodType<
|
|
1841
|
+
DeploymentCreateMetricMessagesAssistantMessage$Outbound,
|
|
1842
|
+
z.ZodTypeDef,
|
|
1843
|
+
DeploymentCreateMetricMessagesAssistantMessage
|
|
1844
|
+
> = z.object({
|
|
1845
|
+
content: z.union([
|
|
1846
|
+
z.string(),
|
|
1847
|
+
z.array(z.union([
|
|
1848
|
+
z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
|
|
1849
|
+
z.lazy(() =>
|
|
1850
|
+
DeploymentCreateMetric2RefusalContentPart$outboundSchema
|
|
1851
|
+
),
|
|
1852
|
+
])),
|
|
1853
|
+
]).optional(),
|
|
1854
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1855
|
+
role:
|
|
1856
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
1857
|
+
name: z.string().optional(),
|
|
1858
|
+
audio: z.nullable(
|
|
1859
|
+
z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
|
|
1860
|
+
).optional(),
|
|
1861
|
+
toolCalls: z.array(
|
|
1862
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
|
|
1863
|
+
).optional(),
|
|
1864
|
+
}).transform((v) => {
|
|
1865
|
+
return remap$(v, {
|
|
1866
|
+
toolCalls: "tool_calls",
|
|
1867
|
+
});
|
|
1868
|
+
});
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* @internal
|
|
1872
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1873
|
+
*/
|
|
1874
|
+
export namespace DeploymentCreateMetricMessagesAssistantMessage$ {
|
|
1875
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$inboundSchema` instead. */
|
|
1876
|
+
export const inboundSchema =
|
|
1877
|
+
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema;
|
|
1878
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$outboundSchema` instead. */
|
|
1879
|
+
export const outboundSchema =
|
|
1880
|
+
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema;
|
|
1881
|
+
/** @deprecated use `DeploymentCreateMetricMessagesAssistantMessage$Outbound` instead. */
|
|
1882
|
+
export type Outbound =
|
|
1883
|
+
DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export function deploymentCreateMetricMessagesAssistantMessageToJSON(
|
|
1887
|
+
deploymentCreateMetricMessagesAssistantMessage:
|
|
1888
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1889
|
+
): string {
|
|
1890
|
+
return JSON.stringify(
|
|
1891
|
+
DeploymentCreateMetricMessagesAssistantMessage$outboundSchema.parse(
|
|
1892
|
+
deploymentCreateMetricMessagesAssistantMessage,
|
|
1893
|
+
),
|
|
1894
|
+
);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
export function deploymentCreateMetricMessagesAssistantMessageFromJSON(
|
|
1898
|
+
jsonString: string,
|
|
1899
|
+
): SafeParseResult<
|
|
1900
|
+
DeploymentCreateMetricMessagesAssistantMessage,
|
|
1901
|
+
SDKValidationError
|
|
1902
|
+
> {
|
|
1903
|
+
return safeParse(
|
|
1904
|
+
jsonString,
|
|
1905
|
+
(x) =>
|
|
1906
|
+
DeploymentCreateMetricMessagesAssistantMessage$inboundSchema.parse(
|
|
1907
|
+
JSON.parse(x),
|
|
1908
|
+
),
|
|
1909
|
+
`Failed to parse 'DeploymentCreateMetricMessagesAssistantMessage' from JSON`,
|
|
1910
|
+
);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
/** @internal */
|
|
1914
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema:
|
|
1915
|
+
z.ZodNativeEnum<
|
|
1916
|
+
typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
|
|
1917
|
+
> = z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole);
|
|
1918
|
+
|
|
1919
|
+
/** @internal */
|
|
1920
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema:
|
|
1921
|
+
z.ZodNativeEnum<
|
|
1922
|
+
typeof DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole
|
|
1923
|
+
> = DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* @internal
|
|
1927
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1928
|
+
*/
|
|
1929
|
+
export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$ {
|
|
1930
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema` instead. */
|
|
1931
|
+
export const inboundSchema =
|
|
1932
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema;
|
|
1933
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema` instead. */
|
|
1934
|
+
export const outboundSchema =
|
|
1935
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
/** @internal */
|
|
1939
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema:
|
|
1940
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
|
|
1941
|
+
z.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsRequestType);
|
|
1942
|
+
|
|
1943
|
+
/** @internal */
|
|
1944
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema:
|
|
1945
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestType> =
|
|
1946
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* @internal
|
|
1950
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1951
|
+
*/
|
|
1952
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestType$ {
|
|
1953
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema` instead. */
|
|
1954
|
+
export const inboundSchema =
|
|
1955
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema;
|
|
1956
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema` instead. */
|
|
1957
|
+
export const outboundSchema =
|
|
1958
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
/** @internal */
|
|
1962
|
+
export const DeploymentCreateMetric2Format$inboundSchema: z.ZodNativeEnum<
|
|
1963
|
+
typeof DeploymentCreateMetric2Format
|
|
1964
|
+
> = z.nativeEnum(DeploymentCreateMetric2Format);
|
|
1965
|
+
|
|
1966
|
+
/** @internal */
|
|
1967
|
+
export const DeploymentCreateMetric2Format$outboundSchema: z.ZodNativeEnum<
|
|
1968
|
+
typeof DeploymentCreateMetric2Format
|
|
1969
|
+
> = DeploymentCreateMetric2Format$inboundSchema;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* @internal
|
|
1973
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1974
|
+
*/
|
|
1975
|
+
export namespace DeploymentCreateMetric2Format$ {
|
|
1976
|
+
/** @deprecated use `DeploymentCreateMetric2Format$inboundSchema` instead. */
|
|
1977
|
+
export const inboundSchema = DeploymentCreateMetric2Format$inboundSchema;
|
|
1978
|
+
/** @deprecated use `DeploymentCreateMetric2Format$outboundSchema` instead. */
|
|
1979
|
+
export const outboundSchema = DeploymentCreateMetric2Format$outboundSchema;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
/** @internal */
|
|
1983
|
+
export const DeploymentCreateMetric2InputAudio$inboundSchema: z.ZodType<
|
|
1984
|
+
DeploymentCreateMetric2InputAudio,
|
|
1985
|
+
z.ZodTypeDef,
|
|
1986
|
+
unknown
|
|
1987
|
+
> = z.object({
|
|
1988
|
+
data: z.string(),
|
|
1989
|
+
format: DeploymentCreateMetric2Format$inboundSchema,
|
|
1990
|
+
});
|
|
1991
|
+
|
|
1992
|
+
/** @internal */
|
|
1993
|
+
export type DeploymentCreateMetric2InputAudio$Outbound = {
|
|
1994
|
+
data: string;
|
|
1995
|
+
format: string;
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
/** @internal */
|
|
1999
|
+
export const DeploymentCreateMetric2InputAudio$outboundSchema: z.ZodType<
|
|
2000
|
+
DeploymentCreateMetric2InputAudio$Outbound,
|
|
2001
|
+
z.ZodTypeDef,
|
|
2002
|
+
DeploymentCreateMetric2InputAudio
|
|
2003
|
+
> = z.object({
|
|
2004
|
+
data: z.string(),
|
|
2005
|
+
format: DeploymentCreateMetric2Format$outboundSchema,
|
|
2006
|
+
});
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* @internal
|
|
2010
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2011
|
+
*/
|
|
2012
|
+
export namespace DeploymentCreateMetric2InputAudio$ {
|
|
2013
|
+
/** @deprecated use `DeploymentCreateMetric2InputAudio$inboundSchema` instead. */
|
|
2014
|
+
export const inboundSchema = DeploymentCreateMetric2InputAudio$inboundSchema;
|
|
2015
|
+
/** @deprecated use `DeploymentCreateMetric2InputAudio$outboundSchema` instead. */
|
|
2016
|
+
export const outboundSchema =
|
|
2017
|
+
DeploymentCreateMetric2InputAudio$outboundSchema;
|
|
2018
|
+
/** @deprecated use `DeploymentCreateMetric2InputAudio$Outbound` instead. */
|
|
2019
|
+
export type Outbound = DeploymentCreateMetric2InputAudio$Outbound;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
export function deploymentCreateMetric2InputAudioToJSON(
|
|
2023
|
+
deploymentCreateMetric2InputAudio: DeploymentCreateMetric2InputAudio,
|
|
2024
|
+
): string {
|
|
2025
|
+
return JSON.stringify(
|
|
2026
|
+
DeploymentCreateMetric2InputAudio$outboundSchema.parse(
|
|
2027
|
+
deploymentCreateMetric2InputAudio,
|
|
2028
|
+
),
|
|
2029
|
+
);
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
export function deploymentCreateMetric2InputAudioFromJSON(
|
|
2033
|
+
jsonString: string,
|
|
2034
|
+
): SafeParseResult<DeploymentCreateMetric2InputAudio, SDKValidationError> {
|
|
2035
|
+
return safeParse(
|
|
2036
|
+
jsonString,
|
|
2037
|
+
(x) => DeploymentCreateMetric2InputAudio$inboundSchema.parse(JSON.parse(x)),
|
|
2038
|
+
`Failed to parse 'DeploymentCreateMetric2InputAudio' from JSON`,
|
|
2039
|
+
);
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
/** @internal */
|
|
2043
|
+
export const DeploymentCreateMetric23$inboundSchema: z.ZodType<
|
|
2044
|
+
DeploymentCreateMetric23,
|
|
2045
|
+
z.ZodTypeDef,
|
|
2046
|
+
unknown
|
|
2047
|
+
> = z.object({
|
|
2048
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestType$inboundSchema,
|
|
2049
|
+
input_audio: z.lazy(() => DeploymentCreateMetric2InputAudio$inboundSchema),
|
|
2050
|
+
}).transform((v) => {
|
|
2051
|
+
return remap$(v, {
|
|
2052
|
+
"input_audio": "inputAudio",
|
|
2053
|
+
});
|
|
2054
|
+
});
|
|
2055
|
+
|
|
2056
|
+
/** @internal */
|
|
2057
|
+
export type DeploymentCreateMetric23$Outbound = {
|
|
2058
|
+
type: string;
|
|
2059
|
+
input_audio: DeploymentCreateMetric2InputAudio$Outbound;
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
/** @internal */
|
|
2063
|
+
export const DeploymentCreateMetric23$outboundSchema: z.ZodType<
|
|
2064
|
+
DeploymentCreateMetric23$Outbound,
|
|
2065
|
+
z.ZodTypeDef,
|
|
2066
|
+
DeploymentCreateMetric23
|
|
2067
|
+
> = z.object({
|
|
2068
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema,
|
|
2069
|
+
inputAudio: z.lazy(() => DeploymentCreateMetric2InputAudio$outboundSchema),
|
|
2070
|
+
}).transform((v) => {
|
|
2071
|
+
return remap$(v, {
|
|
2072
|
+
inputAudio: "input_audio",
|
|
2073
|
+
});
|
|
2074
|
+
});
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* @internal
|
|
2078
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2079
|
+
*/
|
|
2080
|
+
export namespace DeploymentCreateMetric23$ {
|
|
2081
|
+
/** @deprecated use `DeploymentCreateMetric23$inboundSchema` instead. */
|
|
2082
|
+
export const inboundSchema = DeploymentCreateMetric23$inboundSchema;
|
|
2083
|
+
/** @deprecated use `DeploymentCreateMetric23$outboundSchema` instead. */
|
|
2084
|
+
export const outboundSchema = DeploymentCreateMetric23$outboundSchema;
|
|
2085
|
+
/** @deprecated use `DeploymentCreateMetric23$Outbound` instead. */
|
|
2086
|
+
export type Outbound = DeploymentCreateMetric23$Outbound;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
export function deploymentCreateMetric23ToJSON(
|
|
2090
|
+
deploymentCreateMetric23: DeploymentCreateMetric23,
|
|
2091
|
+
): string {
|
|
2092
|
+
return JSON.stringify(
|
|
2093
|
+
DeploymentCreateMetric23$outboundSchema.parse(deploymentCreateMetric23),
|
|
2094
|
+
);
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
export function deploymentCreateMetric23FromJSON(
|
|
2098
|
+
jsonString: string,
|
|
2099
|
+
): SafeParseResult<DeploymentCreateMetric23, SDKValidationError> {
|
|
2100
|
+
return safeParse(
|
|
2101
|
+
jsonString,
|
|
2102
|
+
(x) => DeploymentCreateMetric23$inboundSchema.parse(JSON.parse(x)),
|
|
2103
|
+
`Failed to parse 'DeploymentCreateMetric23' from JSON`,
|
|
2104
|
+
);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/** @internal */
|
|
2108
|
+
export const DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema:
|
|
2109
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> = z
|
|
2110
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsType);
|
|
2111
|
+
|
|
2112
|
+
/** @internal */
|
|
2113
|
+
export const DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema:
|
|
2114
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> =
|
|
2115
|
+
DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* @internal
|
|
2119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2120
|
+
*/
|
|
2121
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsType$ {
|
|
2122
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema` instead. */
|
|
2123
|
+
export const inboundSchema =
|
|
2124
|
+
DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema;
|
|
2125
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema` instead. */
|
|
2126
|
+
export const outboundSchema =
|
|
2127
|
+
DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/** @internal */
|
|
2131
|
+
export const DeploymentCreateMetric2Detail$inboundSchema: z.ZodNativeEnum<
|
|
2132
|
+
typeof DeploymentCreateMetric2Detail
|
|
2133
|
+
> = z.nativeEnum(DeploymentCreateMetric2Detail);
|
|
2134
|
+
|
|
2135
|
+
/** @internal */
|
|
2136
|
+
export const DeploymentCreateMetric2Detail$outboundSchema: z.ZodNativeEnum<
|
|
2137
|
+
typeof DeploymentCreateMetric2Detail
|
|
2138
|
+
> = DeploymentCreateMetric2Detail$inboundSchema;
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* @internal
|
|
2142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2143
|
+
*/
|
|
2144
|
+
export namespace DeploymentCreateMetric2Detail$ {
|
|
2145
|
+
/** @deprecated use `DeploymentCreateMetric2Detail$inboundSchema` instead. */
|
|
2146
|
+
export const inboundSchema = DeploymentCreateMetric2Detail$inboundSchema;
|
|
2147
|
+
/** @deprecated use `DeploymentCreateMetric2Detail$outboundSchema` instead. */
|
|
2148
|
+
export const outboundSchema = DeploymentCreateMetric2Detail$outboundSchema;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/** @internal */
|
|
2152
|
+
export const DeploymentCreateMetric2ImageUrl$inboundSchema: z.ZodType<
|
|
2153
|
+
DeploymentCreateMetric2ImageUrl,
|
|
2154
|
+
z.ZodTypeDef,
|
|
2155
|
+
unknown
|
|
2156
|
+
> = z.object({
|
|
2157
|
+
url: z.string(),
|
|
2158
|
+
detail: DeploymentCreateMetric2Detail$inboundSchema.optional(),
|
|
2159
|
+
});
|
|
2160
|
+
|
|
2161
|
+
/** @internal */
|
|
2162
|
+
export type DeploymentCreateMetric2ImageUrl$Outbound = {
|
|
2163
|
+
url: string;
|
|
2164
|
+
detail?: string | undefined;
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export const DeploymentCreateMetric2ImageUrl$outboundSchema: z.ZodType<
|
|
2169
|
+
DeploymentCreateMetric2ImageUrl$Outbound,
|
|
2170
|
+
z.ZodTypeDef,
|
|
2171
|
+
DeploymentCreateMetric2ImageUrl
|
|
2172
|
+
> = z.object({
|
|
2173
|
+
url: z.string(),
|
|
2174
|
+
detail: DeploymentCreateMetric2Detail$outboundSchema.optional(),
|
|
2175
|
+
});
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* @internal
|
|
2179
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2180
|
+
*/
|
|
2181
|
+
export namespace DeploymentCreateMetric2ImageUrl$ {
|
|
2182
|
+
/** @deprecated use `DeploymentCreateMetric2ImageUrl$inboundSchema` instead. */
|
|
2183
|
+
export const inboundSchema = DeploymentCreateMetric2ImageUrl$inboundSchema;
|
|
2184
|
+
/** @deprecated use `DeploymentCreateMetric2ImageUrl$outboundSchema` instead. */
|
|
2185
|
+
export const outboundSchema = DeploymentCreateMetric2ImageUrl$outboundSchema;
|
|
2186
|
+
/** @deprecated use `DeploymentCreateMetric2ImageUrl$Outbound` instead. */
|
|
2187
|
+
export type Outbound = DeploymentCreateMetric2ImageUrl$Outbound;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
export function deploymentCreateMetric2ImageUrlToJSON(
|
|
2191
|
+
deploymentCreateMetric2ImageUrl: DeploymentCreateMetric2ImageUrl,
|
|
2192
|
+
): string {
|
|
2193
|
+
return JSON.stringify(
|
|
2194
|
+
DeploymentCreateMetric2ImageUrl$outboundSchema.parse(
|
|
2195
|
+
deploymentCreateMetric2ImageUrl,
|
|
2196
|
+
),
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
export function deploymentCreateMetric2ImageUrlFromJSON(
|
|
2201
|
+
jsonString: string,
|
|
2202
|
+
): SafeParseResult<DeploymentCreateMetric2ImageUrl, SDKValidationError> {
|
|
2203
|
+
return safeParse(
|
|
2204
|
+
jsonString,
|
|
2205
|
+
(x) => DeploymentCreateMetric2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
2206
|
+
`Failed to parse 'DeploymentCreateMetric2ImageUrl' from JSON`,
|
|
2207
|
+
);
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
/** @internal */
|
|
2211
|
+
export const DeploymentCreateMetric22$inboundSchema: z.ZodType<
|
|
2212
|
+
DeploymentCreateMetric22,
|
|
2213
|
+
z.ZodTypeDef,
|
|
2214
|
+
unknown
|
|
2215
|
+
> = z.object({
|
|
2216
|
+
type: DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema,
|
|
2217
|
+
image_url: z.lazy(() => DeploymentCreateMetric2ImageUrl$inboundSchema),
|
|
2218
|
+
}).transform((v) => {
|
|
2219
|
+
return remap$(v, {
|
|
2220
|
+
"image_url": "imageUrl",
|
|
2221
|
+
});
|
|
2222
|
+
});
|
|
2223
|
+
|
|
2224
|
+
/** @internal */
|
|
2225
|
+
export type DeploymentCreateMetric22$Outbound = {
|
|
2226
|
+
type: string;
|
|
2227
|
+
image_url: DeploymentCreateMetric2ImageUrl$Outbound;
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
/** @internal */
|
|
2231
|
+
export const DeploymentCreateMetric22$outboundSchema: z.ZodType<
|
|
2232
|
+
DeploymentCreateMetric22$Outbound,
|
|
2233
|
+
z.ZodTypeDef,
|
|
2234
|
+
DeploymentCreateMetric22
|
|
2235
|
+
> = z.object({
|
|
2236
|
+
type: DeploymentCreateMetric2DeploymentsMetricsType$outboundSchema,
|
|
2237
|
+
imageUrl: z.lazy(() => DeploymentCreateMetric2ImageUrl$outboundSchema),
|
|
2238
|
+
}).transform((v) => {
|
|
2239
|
+
return remap$(v, {
|
|
2240
|
+
imageUrl: "image_url",
|
|
2241
|
+
});
|
|
2242
|
+
});
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* @internal
|
|
2246
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2247
|
+
*/
|
|
2248
|
+
export namespace DeploymentCreateMetric22$ {
|
|
2249
|
+
/** @deprecated use `DeploymentCreateMetric22$inboundSchema` instead. */
|
|
2250
|
+
export const inboundSchema = DeploymentCreateMetric22$inboundSchema;
|
|
2251
|
+
/** @deprecated use `DeploymentCreateMetric22$outboundSchema` instead. */
|
|
2252
|
+
export const outboundSchema = DeploymentCreateMetric22$outboundSchema;
|
|
2253
|
+
/** @deprecated use `DeploymentCreateMetric22$Outbound` instead. */
|
|
2254
|
+
export type Outbound = DeploymentCreateMetric22$Outbound;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
export function deploymentCreateMetric22ToJSON(
|
|
2258
|
+
deploymentCreateMetric22: DeploymentCreateMetric22,
|
|
2259
|
+
): string {
|
|
2260
|
+
return JSON.stringify(
|
|
2261
|
+
DeploymentCreateMetric22$outboundSchema.parse(deploymentCreateMetric22),
|
|
2262
|
+
);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
export function deploymentCreateMetric22FromJSON(
|
|
2266
|
+
jsonString: string,
|
|
2267
|
+
): SafeParseResult<DeploymentCreateMetric22, SDKValidationError> {
|
|
2268
|
+
return safeParse(
|
|
2269
|
+
jsonString,
|
|
2270
|
+
(x) => DeploymentCreateMetric22$inboundSchema.parse(JSON.parse(x)),
|
|
2271
|
+
`Failed to parse 'DeploymentCreateMetric22' from JSON`,
|
|
2272
|
+
);
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
/** @internal */
|
|
2276
|
+
export const DeploymentCreateMetric2Type$inboundSchema: z.ZodNativeEnum<
|
|
2277
|
+
typeof DeploymentCreateMetric2Type
|
|
2278
|
+
> = z.nativeEnum(DeploymentCreateMetric2Type);
|
|
2279
|
+
|
|
2280
|
+
/** @internal */
|
|
2281
|
+
export const DeploymentCreateMetric2Type$outboundSchema: z.ZodNativeEnum<
|
|
2282
|
+
typeof DeploymentCreateMetric2Type
|
|
2283
|
+
> = DeploymentCreateMetric2Type$inboundSchema;
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* @internal
|
|
2287
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2288
|
+
*/
|
|
2289
|
+
export namespace DeploymentCreateMetric2Type$ {
|
|
2290
|
+
/** @deprecated use `DeploymentCreateMetric2Type$inboundSchema` instead. */
|
|
2291
|
+
export const inboundSchema = DeploymentCreateMetric2Type$inboundSchema;
|
|
2292
|
+
/** @deprecated use `DeploymentCreateMetric2Type$outboundSchema` instead. */
|
|
2293
|
+
export const outboundSchema = DeploymentCreateMetric2Type$outboundSchema;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
/** @internal */
|
|
2297
|
+
export const DeploymentCreateMetric21$inboundSchema: z.ZodType<
|
|
2298
|
+
DeploymentCreateMetric21,
|
|
2299
|
+
z.ZodTypeDef,
|
|
2300
|
+
unknown
|
|
2301
|
+
> = z.object({
|
|
2302
|
+
type: DeploymentCreateMetric2Type$inboundSchema,
|
|
2303
|
+
text: z.string(),
|
|
2304
|
+
});
|
|
2305
|
+
|
|
2306
|
+
/** @internal */
|
|
2307
|
+
export type DeploymentCreateMetric21$Outbound = {
|
|
2308
|
+
type: string;
|
|
2309
|
+
text: string;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
/** @internal */
|
|
2313
|
+
export const DeploymentCreateMetric21$outboundSchema: z.ZodType<
|
|
2314
|
+
DeploymentCreateMetric21$Outbound,
|
|
2315
|
+
z.ZodTypeDef,
|
|
2316
|
+
DeploymentCreateMetric21
|
|
2317
|
+
> = z.object({
|
|
2318
|
+
type: DeploymentCreateMetric2Type$outboundSchema,
|
|
2319
|
+
text: z.string(),
|
|
2320
|
+
});
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* @internal
|
|
2324
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2325
|
+
*/
|
|
2326
|
+
export namespace DeploymentCreateMetric21$ {
|
|
2327
|
+
/** @deprecated use `DeploymentCreateMetric21$inboundSchema` instead. */
|
|
2328
|
+
export const inboundSchema = DeploymentCreateMetric21$inboundSchema;
|
|
2329
|
+
/** @deprecated use `DeploymentCreateMetric21$outboundSchema` instead. */
|
|
2330
|
+
export const outboundSchema = DeploymentCreateMetric21$outboundSchema;
|
|
2331
|
+
/** @deprecated use `DeploymentCreateMetric21$Outbound` instead. */
|
|
2332
|
+
export type Outbound = DeploymentCreateMetric21$Outbound;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
export function deploymentCreateMetric21ToJSON(
|
|
2336
|
+
deploymentCreateMetric21: DeploymentCreateMetric21,
|
|
2337
|
+
): string {
|
|
2338
|
+
return JSON.stringify(
|
|
2339
|
+
DeploymentCreateMetric21$outboundSchema.parse(deploymentCreateMetric21),
|
|
2340
|
+
);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export function deploymentCreateMetric21FromJSON(
|
|
2344
|
+
jsonString: string,
|
|
2345
|
+
): SafeParseResult<DeploymentCreateMetric21, SDKValidationError> {
|
|
2346
|
+
return safeParse(
|
|
2347
|
+
jsonString,
|
|
2348
|
+
(x) => DeploymentCreateMetric21$inboundSchema.parse(JSON.parse(x)),
|
|
2349
|
+
`Failed to parse 'DeploymentCreateMetric21' from JSON`,
|
|
2350
|
+
);
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
/** @internal */
|
|
2354
|
+
export const DeploymentCreateMetricContent2$inboundSchema: z.ZodType<
|
|
2355
|
+
DeploymentCreateMetricContent2,
|
|
2356
|
+
z.ZodTypeDef,
|
|
2357
|
+
unknown
|
|
2358
|
+
> = z.union([
|
|
2359
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
2360
|
+
z.lazy(() => DeploymentCreateMetric22$inboundSchema),
|
|
2361
|
+
z.lazy(() => DeploymentCreateMetric23$inboundSchema),
|
|
2362
|
+
]);
|
|
2363
|
+
|
|
2364
|
+
/** @internal */
|
|
2365
|
+
export type DeploymentCreateMetricContent2$Outbound =
|
|
2366
|
+
| DeploymentCreateMetric21$Outbound
|
|
2367
|
+
| DeploymentCreateMetric22$Outbound
|
|
2368
|
+
| DeploymentCreateMetric23$Outbound;
|
|
2369
|
+
|
|
2370
|
+
/** @internal */
|
|
2371
|
+
export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
|
|
2372
|
+
DeploymentCreateMetricContent2$Outbound,
|
|
2373
|
+
z.ZodTypeDef,
|
|
2374
|
+
DeploymentCreateMetricContent2
|
|
2375
|
+
> = z.union([
|
|
2376
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
2377
|
+
z.lazy(() => DeploymentCreateMetric22$outboundSchema),
|
|
2378
|
+
z.lazy(() => DeploymentCreateMetric23$outboundSchema),
|
|
2379
|
+
]);
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* @internal
|
|
2383
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2384
|
+
*/
|
|
2385
|
+
export namespace DeploymentCreateMetricContent2$ {
|
|
2386
|
+
/** @deprecated use `DeploymentCreateMetricContent2$inboundSchema` instead. */
|
|
2387
|
+
export const inboundSchema = DeploymentCreateMetricContent2$inboundSchema;
|
|
2388
|
+
/** @deprecated use `DeploymentCreateMetricContent2$outboundSchema` instead. */
|
|
2389
|
+
export const outboundSchema = DeploymentCreateMetricContent2$outboundSchema;
|
|
2390
|
+
/** @deprecated use `DeploymentCreateMetricContent2$Outbound` instead. */
|
|
2391
|
+
export type Outbound = DeploymentCreateMetricContent2$Outbound;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
export function deploymentCreateMetricContent2ToJSON(
|
|
2395
|
+
deploymentCreateMetricContent2: DeploymentCreateMetricContent2,
|
|
2396
|
+
): string {
|
|
2397
|
+
return JSON.stringify(
|
|
2398
|
+
DeploymentCreateMetricContent2$outboundSchema.parse(
|
|
2399
|
+
deploymentCreateMetricContent2,
|
|
2400
|
+
),
|
|
2401
|
+
);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
export function deploymentCreateMetricContent2FromJSON(
|
|
2405
|
+
jsonString: string,
|
|
2406
|
+
): SafeParseResult<DeploymentCreateMetricContent2, SDKValidationError> {
|
|
2407
|
+
return safeParse(
|
|
2408
|
+
jsonString,
|
|
2409
|
+
(x) => DeploymentCreateMetricContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2410
|
+
`Failed to parse 'DeploymentCreateMetricContent2' from JSON`,
|
|
2411
|
+
);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
/** @internal */
|
|
2415
|
+
export const DeploymentCreateMetricMessagesContent$inboundSchema: z.ZodType<
|
|
2416
|
+
DeploymentCreateMetricMessagesContent,
|
|
2417
|
+
z.ZodTypeDef,
|
|
2418
|
+
unknown
|
|
2419
|
+
> = z.union([
|
|
2420
|
+
z.string(),
|
|
2421
|
+
z.array(z.union([
|
|
2422
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
2423
|
+
z.lazy(() => DeploymentCreateMetric22$inboundSchema),
|
|
2424
|
+
z.lazy(() => DeploymentCreateMetric23$inboundSchema),
|
|
2425
|
+
])),
|
|
2426
|
+
]);
|
|
2427
|
+
|
|
2428
|
+
/** @internal */
|
|
2429
|
+
export type DeploymentCreateMetricMessagesContent$Outbound =
|
|
2430
|
+
| string
|
|
2431
|
+
| Array<
|
|
2432
|
+
| DeploymentCreateMetric21$Outbound
|
|
2433
|
+
| DeploymentCreateMetric22$Outbound
|
|
2434
|
+
| DeploymentCreateMetric23$Outbound
|
|
2435
|
+
>;
|
|
1316
2436
|
|
|
1317
2437
|
/** @internal */
|
|
1318
|
-
export const
|
|
1319
|
-
|
|
2438
|
+
export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
|
|
2439
|
+
DeploymentCreateMetricMessagesContent$Outbound,
|
|
1320
2440
|
z.ZodTypeDef,
|
|
1321
|
-
|
|
1322
|
-
> = z.
|
|
1323
|
-
|
|
1324
|
-
|
|
2441
|
+
DeploymentCreateMetricMessagesContent
|
|
2442
|
+
> = z.union([
|
|
2443
|
+
z.string(),
|
|
2444
|
+
z.array(z.union([
|
|
2445
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
2446
|
+
z.lazy(() => DeploymentCreateMetric22$outboundSchema),
|
|
2447
|
+
z.lazy(() => DeploymentCreateMetric23$outboundSchema),
|
|
2448
|
+
])),
|
|
2449
|
+
]);
|
|
1325
2450
|
|
|
1326
2451
|
/**
|
|
1327
2452
|
* @internal
|
|
1328
2453
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1329
2454
|
*/
|
|
1330
|
-
export namespace
|
|
1331
|
-
/** @deprecated use `
|
|
2455
|
+
export namespace DeploymentCreateMetricMessagesContent$ {
|
|
2456
|
+
/** @deprecated use `DeploymentCreateMetricMessagesContent$inboundSchema` instead. */
|
|
1332
2457
|
export const inboundSchema =
|
|
1333
|
-
|
|
1334
|
-
/** @deprecated use `
|
|
2458
|
+
DeploymentCreateMetricMessagesContent$inboundSchema;
|
|
2459
|
+
/** @deprecated use `DeploymentCreateMetricMessagesContent$outboundSchema` instead. */
|
|
1335
2460
|
export const outboundSchema =
|
|
1336
|
-
|
|
1337
|
-
/** @deprecated use `
|
|
1338
|
-
export type Outbound =
|
|
2461
|
+
DeploymentCreateMetricMessagesContent$outboundSchema;
|
|
2462
|
+
/** @deprecated use `DeploymentCreateMetricMessagesContent$Outbound` instead. */
|
|
2463
|
+
export type Outbound = DeploymentCreateMetricMessagesContent$Outbound;
|
|
1339
2464
|
}
|
|
1340
2465
|
|
|
1341
|
-
export function
|
|
1342
|
-
|
|
2466
|
+
export function deploymentCreateMetricMessagesContentToJSON(
|
|
2467
|
+
deploymentCreateMetricMessagesContent: DeploymentCreateMetricMessagesContent,
|
|
1343
2468
|
): string {
|
|
1344
2469
|
return JSON.stringify(
|
|
1345
|
-
|
|
1346
|
-
|
|
2470
|
+
DeploymentCreateMetricMessagesContent$outboundSchema.parse(
|
|
2471
|
+
deploymentCreateMetricMessagesContent,
|
|
1347
2472
|
),
|
|
1348
2473
|
);
|
|
1349
2474
|
}
|
|
1350
2475
|
|
|
1351
|
-
export function
|
|
2476
|
+
export function deploymentCreateMetricMessagesContentFromJSON(
|
|
1352
2477
|
jsonString: string,
|
|
1353
|
-
): SafeParseResult<
|
|
2478
|
+
): SafeParseResult<DeploymentCreateMetricMessagesContent, SDKValidationError> {
|
|
1354
2479
|
return safeParse(
|
|
1355
2480
|
jsonString,
|
|
1356
2481
|
(x) =>
|
|
1357
|
-
|
|
1358
|
-
`Failed to parse '
|
|
2482
|
+
DeploymentCreateMetricMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
2483
|
+
`Failed to parse 'DeploymentCreateMetricMessagesContent' from JSON`,
|
|
1359
2484
|
);
|
|
1360
2485
|
}
|
|
1361
2486
|
|
|
1362
2487
|
/** @internal */
|
|
1363
|
-
export const
|
|
1364
|
-
|
|
1365
|
-
> = z.nativeEnum(DeploymentCreateMetricMessagesType);
|
|
1366
|
-
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
export const DeploymentCreateMetricMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1369
|
-
typeof DeploymentCreateMetricMessagesType
|
|
1370
|
-
> = DeploymentCreateMetricMessagesType$inboundSchema;
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* @internal
|
|
1374
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1375
|
-
*/
|
|
1376
|
-
export namespace DeploymentCreateMetricMessagesType$ {
|
|
1377
|
-
/** @deprecated use `DeploymentCreateMetricMessagesType$inboundSchema` instead. */
|
|
1378
|
-
export const inboundSchema = DeploymentCreateMetricMessagesType$inboundSchema;
|
|
1379
|
-
/** @deprecated use `DeploymentCreateMetricMessagesType$outboundSchema` instead. */
|
|
1380
|
-
export const outboundSchema =
|
|
1381
|
-
DeploymentCreateMetricMessagesType$outboundSchema;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
/** @internal */
|
|
1385
|
-
export const DeploymentCreateMetricMessagesFunction$inboundSchema: z.ZodType<
|
|
1386
|
-
DeploymentCreateMetricMessagesFunction,
|
|
2488
|
+
export const DeploymentCreateMetricMessagesUserMessage$inboundSchema: z.ZodType<
|
|
2489
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
1387
2490
|
z.ZodTypeDef,
|
|
1388
2491
|
unknown
|
|
1389
2492
|
> = z.object({
|
|
2493
|
+
role:
|
|
2494
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema,
|
|
1390
2495
|
name: z.string().optional(),
|
|
1391
|
-
|
|
2496
|
+
content: z.union([
|
|
2497
|
+
z.string(),
|
|
2498
|
+
z.array(z.union([
|
|
2499
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
2500
|
+
z.lazy(() => DeploymentCreateMetric22$inboundSchema),
|
|
2501
|
+
z.lazy(() => DeploymentCreateMetric23$inboundSchema),
|
|
2502
|
+
])),
|
|
2503
|
+
]),
|
|
1392
2504
|
});
|
|
1393
2505
|
|
|
1394
2506
|
/** @internal */
|
|
1395
|
-
export type
|
|
2507
|
+
export type DeploymentCreateMetricMessagesUserMessage$Outbound = {
|
|
2508
|
+
role: string;
|
|
1396
2509
|
name?: string | undefined;
|
|
1397
|
-
|
|
2510
|
+
content:
|
|
2511
|
+
| string
|
|
2512
|
+
| Array<
|
|
2513
|
+
| DeploymentCreateMetric21$Outbound
|
|
2514
|
+
| DeploymentCreateMetric22$Outbound
|
|
2515
|
+
| DeploymentCreateMetric23$Outbound
|
|
2516
|
+
>;
|
|
1398
2517
|
};
|
|
1399
2518
|
|
|
1400
2519
|
/** @internal */
|
|
1401
|
-
export const
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
2520
|
+
export const DeploymentCreateMetricMessagesUserMessage$outboundSchema:
|
|
2521
|
+
z.ZodType<
|
|
2522
|
+
DeploymentCreateMetricMessagesUserMessage$Outbound,
|
|
2523
|
+
z.ZodTypeDef,
|
|
2524
|
+
DeploymentCreateMetricMessagesUserMessage
|
|
2525
|
+
> = z.object({
|
|
2526
|
+
role:
|
|
2527
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$outboundSchema,
|
|
2528
|
+
name: z.string().optional(),
|
|
2529
|
+
content: z.union([
|
|
2530
|
+
z.string(),
|
|
2531
|
+
z.array(z.union([
|
|
2532
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
2533
|
+
z.lazy(() => DeploymentCreateMetric22$outboundSchema),
|
|
2534
|
+
z.lazy(() => DeploymentCreateMetric23$outboundSchema),
|
|
2535
|
+
])),
|
|
2536
|
+
]),
|
|
2537
|
+
});
|
|
1409
2538
|
|
|
1410
2539
|
/**
|
|
1411
2540
|
* @internal
|
|
1412
2541
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1413
2542
|
*/
|
|
1414
|
-
export namespace
|
|
1415
|
-
/** @deprecated use `
|
|
2543
|
+
export namespace DeploymentCreateMetricMessagesUserMessage$ {
|
|
2544
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$inboundSchema` instead. */
|
|
1416
2545
|
export const inboundSchema =
|
|
1417
|
-
|
|
1418
|
-
/** @deprecated use `
|
|
2546
|
+
DeploymentCreateMetricMessagesUserMessage$inboundSchema;
|
|
2547
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$outboundSchema` instead. */
|
|
1419
2548
|
export const outboundSchema =
|
|
1420
|
-
|
|
1421
|
-
/** @deprecated use `
|
|
1422
|
-
export type Outbound =
|
|
2549
|
+
DeploymentCreateMetricMessagesUserMessage$outboundSchema;
|
|
2550
|
+
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$Outbound` instead. */
|
|
2551
|
+
export type Outbound = DeploymentCreateMetricMessagesUserMessage$Outbound;
|
|
1423
2552
|
}
|
|
1424
2553
|
|
|
1425
|
-
export function
|
|
1426
|
-
|
|
1427
|
-
|
|
2554
|
+
export function deploymentCreateMetricMessagesUserMessageToJSON(
|
|
2555
|
+
deploymentCreateMetricMessagesUserMessage:
|
|
2556
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
1428
2557
|
): string {
|
|
1429
2558
|
return JSON.stringify(
|
|
1430
|
-
|
|
1431
|
-
|
|
2559
|
+
DeploymentCreateMetricMessagesUserMessage$outboundSchema.parse(
|
|
2560
|
+
deploymentCreateMetricMessagesUserMessage,
|
|
1432
2561
|
),
|
|
1433
2562
|
);
|
|
1434
2563
|
}
|
|
1435
2564
|
|
|
1436
|
-
export function
|
|
2565
|
+
export function deploymentCreateMetricMessagesUserMessageFromJSON(
|
|
1437
2566
|
jsonString: string,
|
|
1438
|
-
): SafeParseResult<
|
|
2567
|
+
): SafeParseResult<
|
|
2568
|
+
DeploymentCreateMetricMessagesUserMessage,
|
|
2569
|
+
SDKValidationError
|
|
2570
|
+
> {
|
|
1439
2571
|
return safeParse(
|
|
1440
2572
|
jsonString,
|
|
1441
2573
|
(x) =>
|
|
1442
|
-
|
|
1443
|
-
|
|
2574
|
+
DeploymentCreateMetricMessagesUserMessage$inboundSchema.parse(
|
|
2575
|
+
JSON.parse(x),
|
|
2576
|
+
),
|
|
2577
|
+
`Failed to parse 'DeploymentCreateMetricMessagesUserMessage' from JSON`,
|
|
1444
2578
|
);
|
|
1445
2579
|
}
|
|
1446
2580
|
|
|
1447
2581
|
/** @internal */
|
|
1448
|
-
export const
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
unknown
|
|
1452
|
-
> = z.object({
|
|
1453
|
-
id: z.string(),
|
|
1454
|
-
type: DeploymentCreateMetricMessagesType$inboundSchema,
|
|
1455
|
-
function: z.lazy(() => DeploymentCreateMetricMessagesFunction$inboundSchema),
|
|
1456
|
-
});
|
|
2582
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema:
|
|
2583
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
|
|
2584
|
+
z.nativeEnum(DeploymentCreateMetricMessagesDeploymentsMetricsRole);
|
|
1457
2585
|
|
|
1458
2586
|
/** @internal */
|
|
1459
|
-
export
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
2587
|
+
export const DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema:
|
|
2588
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricMessagesDeploymentsMetricsRole> =
|
|
2589
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* @internal
|
|
2593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2594
|
+
*/
|
|
2595
|
+
export namespace DeploymentCreateMetricMessagesDeploymentsMetricsRole$ {
|
|
2596
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema` instead. */
|
|
2597
|
+
export const inboundSchema =
|
|
2598
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema;
|
|
2599
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema` instead. */
|
|
2600
|
+
export const outboundSchema =
|
|
2601
|
+
DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/** @internal */
|
|
2605
|
+
export const DeploymentCreateMetricMessagesSystemMessage$inboundSchema:
|
|
2606
|
+
z.ZodType<
|
|
2607
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
2608
|
+
z.ZodTypeDef,
|
|
2609
|
+
unknown
|
|
2610
|
+
> = z.object({
|
|
2611
|
+
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
|
|
2612
|
+
content: z.string(),
|
|
2613
|
+
name: z.string().optional(),
|
|
2614
|
+
});
|
|
2615
|
+
|
|
2616
|
+
/** @internal */
|
|
2617
|
+
export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
|
|
2618
|
+
role: string;
|
|
2619
|
+
content: string;
|
|
2620
|
+
name?: string | undefined;
|
|
1463
2621
|
};
|
|
1464
2622
|
|
|
1465
2623
|
/** @internal */
|
|
1466
|
-
export const
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
2624
|
+
export const DeploymentCreateMetricMessagesSystemMessage$outboundSchema:
|
|
2625
|
+
z.ZodType<
|
|
2626
|
+
DeploymentCreateMetricMessagesSystemMessage$Outbound,
|
|
2627
|
+
z.ZodTypeDef,
|
|
2628
|
+
DeploymentCreateMetricMessagesSystemMessage
|
|
2629
|
+
> = z.object({
|
|
2630
|
+
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
|
|
2631
|
+
content: z.string(),
|
|
2632
|
+
name: z.string().optional(),
|
|
2633
|
+
});
|
|
1475
2634
|
|
|
1476
2635
|
/**
|
|
1477
2636
|
* @internal
|
|
1478
2637
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1479
2638
|
*/
|
|
1480
|
-
export namespace
|
|
1481
|
-
/** @deprecated use `
|
|
2639
|
+
export namespace DeploymentCreateMetricMessagesSystemMessage$ {
|
|
2640
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$inboundSchema` instead. */
|
|
1482
2641
|
export const inboundSchema =
|
|
1483
|
-
|
|
1484
|
-
/** @deprecated use `
|
|
2642
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema;
|
|
2643
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$outboundSchema` instead. */
|
|
1485
2644
|
export const outboundSchema =
|
|
1486
|
-
|
|
1487
|
-
/** @deprecated use `
|
|
1488
|
-
export type Outbound =
|
|
2645
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema;
|
|
2646
|
+
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$Outbound` instead. */
|
|
2647
|
+
export type Outbound = DeploymentCreateMetricMessagesSystemMessage$Outbound;
|
|
1489
2648
|
}
|
|
1490
2649
|
|
|
1491
|
-
export function
|
|
1492
|
-
|
|
1493
|
-
|
|
2650
|
+
export function deploymentCreateMetricMessagesSystemMessageToJSON(
|
|
2651
|
+
deploymentCreateMetricMessagesSystemMessage:
|
|
2652
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
1494
2653
|
): string {
|
|
1495
2654
|
return JSON.stringify(
|
|
1496
|
-
|
|
1497
|
-
|
|
2655
|
+
DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
|
|
2656
|
+
deploymentCreateMetricMessagesSystemMessage,
|
|
1498
2657
|
),
|
|
1499
2658
|
);
|
|
1500
2659
|
}
|
|
1501
2660
|
|
|
1502
|
-
export function
|
|
2661
|
+
export function deploymentCreateMetricMessagesSystemMessageFromJSON(
|
|
1503
2662
|
jsonString: string,
|
|
1504
2663
|
): SafeParseResult<
|
|
1505
|
-
|
|
2664
|
+
DeploymentCreateMetricMessagesSystemMessage,
|
|
1506
2665
|
SDKValidationError
|
|
1507
2666
|
> {
|
|
1508
2667
|
return safeParse(
|
|
1509
2668
|
jsonString,
|
|
1510
2669
|
(x) =>
|
|
1511
|
-
|
|
2670
|
+
DeploymentCreateMetricMessagesSystemMessage$inboundSchema.parse(
|
|
1512
2671
|
JSON.parse(x),
|
|
1513
2672
|
),
|
|
1514
|
-
`Failed to parse '
|
|
2673
|
+
`Failed to parse 'DeploymentCreateMetricMessagesSystemMessage' from JSON`,
|
|
1515
2674
|
);
|
|
1516
2675
|
}
|
|
1517
2676
|
|
|
1518
2677
|
/** @internal */
|
|
1519
|
-
export const
|
|
2678
|
+
export const DeploymentCreateMetricMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
2679
|
+
typeof DeploymentCreateMetricMessagesRole
|
|
2680
|
+
> = z.nativeEnum(DeploymentCreateMetricMessagesRole);
|
|
2681
|
+
|
|
2682
|
+
/** @internal */
|
|
2683
|
+
export const DeploymentCreateMetricMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
2684
|
+
typeof DeploymentCreateMetricMessagesRole
|
|
2685
|
+
> = DeploymentCreateMetricMessagesRole$inboundSchema;
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @internal
|
|
2689
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2690
|
+
*/
|
|
2691
|
+
export namespace DeploymentCreateMetricMessagesRole$ {
|
|
2692
|
+
/** @deprecated use `DeploymentCreateMetricMessagesRole$inboundSchema` instead. */
|
|
2693
|
+
export const inboundSchema = DeploymentCreateMetricMessagesRole$inboundSchema;
|
|
2694
|
+
/** @deprecated use `DeploymentCreateMetricMessagesRole$outboundSchema` instead. */
|
|
2695
|
+
export const outboundSchema =
|
|
2696
|
+
DeploymentCreateMetricMessagesRole$outboundSchema;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
/** @internal */
|
|
2700
|
+
export const DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema:
|
|
1520
2701
|
z.ZodType<
|
|
1521
|
-
|
|
2702
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
1522
2703
|
z.ZodTypeDef,
|
|
1523
2704
|
unknown
|
|
1524
2705
|
> = z.object({
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
z.array(z.union([
|
|
1528
|
-
z.lazy(() => DeploymentCreateMetric2TextContentPart$inboundSchema),
|
|
1529
|
-
z.lazy(() => DeploymentCreateMetric2RefusalContentPart$inboundSchema),
|
|
1530
|
-
])),
|
|
1531
|
-
]).optional(),
|
|
1532
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1533
|
-
role:
|
|
1534
|
-
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
2706
|
+
role: DeploymentCreateMetricMessagesRole$inboundSchema,
|
|
2707
|
+
content: z.string(),
|
|
1535
2708
|
name: z.string().optional(),
|
|
1536
|
-
audio: z.nullable(
|
|
1537
|
-
z.lazy(() => DeploymentCreateMetricMessagesAudio$inboundSchema),
|
|
1538
|
-
).optional(),
|
|
1539
|
-
tool_calls: z.array(
|
|
1540
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$inboundSchema),
|
|
1541
|
-
).optional(),
|
|
1542
|
-
}).transform((v) => {
|
|
1543
|
-
return remap$(v, {
|
|
1544
|
-
"tool_calls": "toolCalls",
|
|
1545
|
-
});
|
|
1546
2709
|
});
|
|
1547
2710
|
|
|
1548
2711
|
/** @internal */
|
|
1549
|
-
export type
|
|
1550
|
-
content?:
|
|
1551
|
-
| string
|
|
1552
|
-
| Array<
|
|
1553
|
-
| DeploymentCreateMetric2TextContentPart$Outbound
|
|
1554
|
-
| DeploymentCreateMetric2RefusalContentPart$Outbound
|
|
1555
|
-
>
|
|
1556
|
-
| undefined;
|
|
1557
|
-
refusal?: string | null | undefined;
|
|
2712
|
+
export type DeploymentCreateMetricMessagesDeveloperMessage$Outbound = {
|
|
1558
2713
|
role: string;
|
|
2714
|
+
content: string;
|
|
1559
2715
|
name?: string | undefined;
|
|
1560
|
-
audio?: DeploymentCreateMetricMessagesAudio$Outbound | null | undefined;
|
|
1561
|
-
tool_calls?:
|
|
1562
|
-
| Array<DeploymentCreateMetricMessagesToolCalls$Outbound>
|
|
1563
|
-
| undefined;
|
|
1564
2716
|
};
|
|
1565
2717
|
|
|
1566
2718
|
/** @internal */
|
|
1567
|
-
export const
|
|
2719
|
+
export const DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema:
|
|
1568
2720
|
z.ZodType<
|
|
1569
|
-
|
|
2721
|
+
DeploymentCreateMetricMessagesDeveloperMessage$Outbound,
|
|
1570
2722
|
z.ZodTypeDef,
|
|
1571
|
-
|
|
2723
|
+
DeploymentCreateMetricMessagesDeveloperMessage
|
|
1572
2724
|
> = z.object({
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
z.array(z.union([
|
|
1576
|
-
z.lazy(() => DeploymentCreateMetric2TextContentPart$outboundSchema),
|
|
1577
|
-
z.lazy(() =>
|
|
1578
|
-
DeploymentCreateMetric2RefusalContentPart$outboundSchema
|
|
1579
|
-
),
|
|
1580
|
-
])),
|
|
1581
|
-
]).optional(),
|
|
1582
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1583
|
-
role:
|
|
1584
|
-
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
2725
|
+
role: DeploymentCreateMetricMessagesRole$outboundSchema,
|
|
2726
|
+
content: z.string(),
|
|
1585
2727
|
name: z.string().optional(),
|
|
1586
|
-
audio: z.nullable(
|
|
1587
|
-
z.lazy(() => DeploymentCreateMetricMessagesAudio$outboundSchema),
|
|
1588
|
-
).optional(),
|
|
1589
|
-
toolCalls: z.array(
|
|
1590
|
-
z.lazy(() => DeploymentCreateMetricMessagesToolCalls$outboundSchema),
|
|
1591
|
-
).optional(),
|
|
1592
|
-
}).transform((v) => {
|
|
1593
|
-
return remap$(v, {
|
|
1594
|
-
toolCalls: "tool_calls",
|
|
1595
|
-
});
|
|
1596
2728
|
});
|
|
1597
2729
|
|
|
1598
2730
|
/**
|
|
1599
2731
|
* @internal
|
|
1600
2732
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1601
2733
|
*/
|
|
1602
|
-
export namespace
|
|
1603
|
-
/** @deprecated use `
|
|
2734
|
+
export namespace DeploymentCreateMetricMessagesDeveloperMessage$ {
|
|
2735
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema` instead. */
|
|
1604
2736
|
export const inboundSchema =
|
|
1605
|
-
|
|
1606
|
-
/** @deprecated use `
|
|
2737
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema;
|
|
2738
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema` instead. */
|
|
1607
2739
|
export const outboundSchema =
|
|
1608
|
-
|
|
1609
|
-
/** @deprecated use `
|
|
2740
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema;
|
|
2741
|
+
/** @deprecated use `DeploymentCreateMetricMessagesDeveloperMessage$Outbound` instead. */
|
|
1610
2742
|
export type Outbound =
|
|
1611
|
-
|
|
2743
|
+
DeploymentCreateMetricMessagesDeveloperMessage$Outbound;
|
|
1612
2744
|
}
|
|
1613
2745
|
|
|
1614
|
-
export function
|
|
1615
|
-
|
|
1616
|
-
|
|
2746
|
+
export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
|
|
2747
|
+
deploymentCreateMetricMessagesDeveloperMessage:
|
|
2748
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
1617
2749
|
): string {
|
|
1618
2750
|
return JSON.stringify(
|
|
1619
|
-
|
|
1620
|
-
|
|
2751
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
|
|
2752
|
+
deploymentCreateMetricMessagesDeveloperMessage,
|
|
1621
2753
|
),
|
|
1622
2754
|
);
|
|
1623
2755
|
}
|
|
1624
2756
|
|
|
1625
|
-
export function
|
|
2757
|
+
export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
|
|
1626
2758
|
jsonString: string,
|
|
1627
2759
|
): SafeParseResult<
|
|
1628
|
-
|
|
2760
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
1629
2761
|
SDKValidationError
|
|
1630
2762
|
> {
|
|
1631
2763
|
return safeParse(
|
|
1632
2764
|
jsonString,
|
|
1633
2765
|
(x) =>
|
|
1634
|
-
|
|
2766
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema.parse(
|
|
1635
2767
|
JSON.parse(x),
|
|
1636
2768
|
),
|
|
1637
|
-
`Failed to parse '
|
|
2769
|
+
`Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
|
|
1638
2770
|
);
|
|
1639
2771
|
}
|
|
1640
2772
|
|
|
1641
2773
|
/** @internal */
|
|
1642
|
-
export const
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
2774
|
+
export const DeploymentCreateMetricMessages$inboundSchema: z.ZodType<
|
|
2775
|
+
DeploymentCreateMetricMessages,
|
|
2776
|
+
z.ZodTypeDef,
|
|
2777
|
+
unknown
|
|
2778
|
+
> = z.union([
|
|
2779
|
+
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema),
|
|
2780
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$inboundSchema),
|
|
2781
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$inboundSchema),
|
|
2782
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$inboundSchema),
|
|
2783
|
+
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$inboundSchema),
|
|
2784
|
+
]);
|
|
1646
2785
|
|
|
1647
2786
|
/** @internal */
|
|
1648
|
-
export
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
2787
|
+
export type DeploymentCreateMetricMessages$Outbound =
|
|
2788
|
+
| DeploymentCreateMetricMessagesDeveloperMessage$Outbound
|
|
2789
|
+
| DeploymentCreateMetricMessagesSystemMessage$Outbound
|
|
2790
|
+
| DeploymentCreateMetricMessagesUserMessage$Outbound
|
|
2791
|
+
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
2792
|
+
| DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
2793
|
+
|
|
2794
|
+
/** @internal */
|
|
2795
|
+
export const DeploymentCreateMetricMessages$outboundSchema: z.ZodType<
|
|
2796
|
+
DeploymentCreateMetricMessages$Outbound,
|
|
2797
|
+
z.ZodTypeDef,
|
|
2798
|
+
DeploymentCreateMetricMessages
|
|
2799
|
+
> = z.union([
|
|
2800
|
+
z.lazy(() => DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema),
|
|
2801
|
+
z.lazy(() => DeploymentCreateMetricMessagesSystemMessage$outboundSchema),
|
|
2802
|
+
z.lazy(() => DeploymentCreateMetricMessagesUserMessage$outboundSchema),
|
|
2803
|
+
z.lazy(() => DeploymentCreateMetricMessagesToolMessage$outboundSchema),
|
|
2804
|
+
z.lazy(() => DeploymentCreateMetricMessagesAssistantMessage$outboundSchema),
|
|
2805
|
+
]);
|
|
1652
2806
|
|
|
1653
2807
|
/**
|
|
1654
2808
|
* @internal
|
|
1655
2809
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1656
2810
|
*/
|
|
1657
|
-
export namespace
|
|
1658
|
-
/** @deprecated use `
|
|
1659
|
-
export const inboundSchema =
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
2811
|
+
export namespace DeploymentCreateMetricMessages$ {
|
|
2812
|
+
/** @deprecated use `DeploymentCreateMetricMessages$inboundSchema` instead. */
|
|
2813
|
+
export const inboundSchema = DeploymentCreateMetricMessages$inboundSchema;
|
|
2814
|
+
/** @deprecated use `DeploymentCreateMetricMessages$outboundSchema` instead. */
|
|
2815
|
+
export const outboundSchema = DeploymentCreateMetricMessages$outboundSchema;
|
|
2816
|
+
/** @deprecated use `DeploymentCreateMetricMessages$Outbound` instead. */
|
|
2817
|
+
export type Outbound = DeploymentCreateMetricMessages$Outbound;
|
|
1664
2818
|
}
|
|
1665
2819
|
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
2820
|
+
export function deploymentCreateMetricMessagesToJSON(
|
|
2821
|
+
deploymentCreateMetricMessages: DeploymentCreateMetricMessages,
|
|
2822
|
+
): string {
|
|
2823
|
+
return JSON.stringify(
|
|
2824
|
+
DeploymentCreateMetricMessages$outboundSchema.parse(
|
|
2825
|
+
deploymentCreateMetricMessages,
|
|
2826
|
+
),
|
|
2827
|
+
);
|
|
2828
|
+
}
|
|
1675
2829
|
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema` instead. */
|
|
1685
|
-
export const outboundSchema =
|
|
1686
|
-
DeploymentCreateMetric2DeploymentsMetricsRequestType$outboundSchema;
|
|
2830
|
+
export function deploymentCreateMetricMessagesFromJSON(
|
|
2831
|
+
jsonString: string,
|
|
2832
|
+
): SafeParseResult<DeploymentCreateMetricMessages, SDKValidationError> {
|
|
2833
|
+
return safeParse(
|
|
2834
|
+
jsonString,
|
|
2835
|
+
(x) => DeploymentCreateMetricMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2836
|
+
`Failed to parse 'DeploymentCreateMetricMessages' from JSON`,
|
|
2837
|
+
);
|
|
1687
2838
|
}
|
|
1688
2839
|
|
|
1689
2840
|
/** @internal */
|
|
1690
|
-
export const
|
|
1691
|
-
|
|
1692
|
-
|
|
2841
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema:
|
|
2842
|
+
z.ZodNativeEnum<
|
|
2843
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
2844
|
+
> = z.nativeEnum(
|
|
2845
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole,
|
|
2846
|
+
);
|
|
1693
2847
|
|
|
1694
2848
|
/** @internal */
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
|
|
2849
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema:
|
|
2850
|
+
z.ZodNativeEnum<
|
|
2851
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole
|
|
2852
|
+
> =
|
|
2853
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
1698
2854
|
|
|
1699
2855
|
/**
|
|
1700
2856
|
* @internal
|
|
1701
2857
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1702
2858
|
*/
|
|
1703
|
-
export namespace
|
|
1704
|
-
/** @deprecated use `
|
|
1705
|
-
export const inboundSchema =
|
|
1706
|
-
|
|
1707
|
-
|
|
2859
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$ {
|
|
2860
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema` instead. */
|
|
2861
|
+
export const inboundSchema =
|
|
2862
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema;
|
|
2863
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema` instead. */
|
|
2864
|
+
export const outboundSchema =
|
|
2865
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema;
|
|
1708
2866
|
}
|
|
1709
2867
|
|
|
1710
2868
|
/** @internal */
|
|
1711
|
-
export const
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
format: DeploymentCreateMetric2Format$inboundSchema,
|
|
1718
|
-
});
|
|
2869
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema:
|
|
2870
|
+
z.ZodType<
|
|
2871
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2872
|
+
z.ZodTypeDef,
|
|
2873
|
+
unknown
|
|
2874
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1719
2875
|
|
|
1720
2876
|
/** @internal */
|
|
1721
|
-
export type
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
};
|
|
2877
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound =
|
|
2878
|
+
| string
|
|
2879
|
+
| Array<string>;
|
|
1725
2880
|
|
|
1726
2881
|
/** @internal */
|
|
1727
|
-
export const
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
format: DeploymentCreateMetric2Format$outboundSchema,
|
|
1734
|
-
});
|
|
2882
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema:
|
|
2883
|
+
z.ZodType<
|
|
2884
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound,
|
|
2885
|
+
z.ZodTypeDef,
|
|
2886
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent
|
|
2887
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1735
2888
|
|
|
1736
2889
|
/**
|
|
1737
2890
|
* @internal
|
|
1738
2891
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1739
2892
|
*/
|
|
1740
|
-
export namespace
|
|
1741
|
-
/** @deprecated use `
|
|
1742
|
-
export const inboundSchema =
|
|
1743
|
-
|
|
2893
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsContent$ {
|
|
2894
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema` instead. */
|
|
2895
|
+
export const inboundSchema =
|
|
2896
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema;
|
|
2897
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema` instead. */
|
|
1744
2898
|
export const outboundSchema =
|
|
1745
|
-
|
|
1746
|
-
/** @deprecated use `
|
|
1747
|
-
export type Outbound =
|
|
2899
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema;
|
|
2900
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound` instead. */
|
|
2901
|
+
export type Outbound =
|
|
2902
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound;
|
|
1748
2903
|
}
|
|
1749
2904
|
|
|
1750
|
-
export function
|
|
1751
|
-
|
|
2905
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
|
|
2906
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent:
|
|
2907
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
1752
2908
|
): string {
|
|
1753
2909
|
return JSON.stringify(
|
|
1754
|
-
|
|
1755
|
-
|
|
2910
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSchema.parse(
|
|
2911
|
+
deploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
1756
2912
|
),
|
|
1757
2913
|
);
|
|
1758
2914
|
}
|
|
1759
2915
|
|
|
1760
|
-
export function
|
|
2916
|
+
export function deploymentCreateMetricChoicesDeploymentsMetricsContentFromJSON(
|
|
1761
2917
|
jsonString: string,
|
|
1762
|
-
): SafeParseResult<
|
|
2918
|
+
): SafeParseResult<
|
|
2919
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent,
|
|
2920
|
+
SDKValidationError
|
|
2921
|
+
> {
|
|
1763
2922
|
return safeParse(
|
|
1764
2923
|
jsonString,
|
|
1765
|
-
(x) =>
|
|
1766
|
-
|
|
2924
|
+
(x) =>
|
|
2925
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchema
|
|
2926
|
+
.parse(JSON.parse(x)),
|
|
2927
|
+
`Failed to parse 'DeploymentCreateMetricChoicesDeploymentsMetricsContent' from JSON`,
|
|
1767
2928
|
);
|
|
1768
2929
|
}
|
|
1769
2930
|
|
|
1770
2931
|
/** @internal */
|
|
1771
|
-
export const
|
|
1772
|
-
|
|
2932
|
+
export const ChoicesToolMessage$inboundSchema: z.ZodType<
|
|
2933
|
+
ChoicesToolMessage,
|
|
1773
2934
|
z.ZodTypeDef,
|
|
1774
2935
|
unknown
|
|
1775
2936
|
> = z.object({
|
|
1776
|
-
|
|
1777
|
-
|
|
2937
|
+
role:
|
|
2938
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$inboundSchema,
|
|
2939
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2940
|
+
tool_call_id: z.string(),
|
|
1778
2941
|
}).transform((v) => {
|
|
1779
2942
|
return remap$(v, {
|
|
1780
|
-
"
|
|
2943
|
+
"tool_call_id": "toolCallId",
|
|
1781
2944
|
});
|
|
1782
2945
|
});
|
|
1783
2946
|
|
|
1784
2947
|
/** @internal */
|
|
1785
|
-
export type
|
|
1786
|
-
|
|
1787
|
-
|
|
2948
|
+
export type ChoicesToolMessage$Outbound = {
|
|
2949
|
+
role: string;
|
|
2950
|
+
content: string | Array<string>;
|
|
2951
|
+
tool_call_id: string;
|
|
1788
2952
|
};
|
|
1789
2953
|
|
|
1790
2954
|
/** @internal */
|
|
1791
|
-
export const
|
|
1792
|
-
|
|
2955
|
+
export const ChoicesToolMessage$outboundSchema: z.ZodType<
|
|
2956
|
+
ChoicesToolMessage$Outbound,
|
|
1793
2957
|
z.ZodTypeDef,
|
|
1794
|
-
|
|
2958
|
+
ChoicesToolMessage
|
|
1795
2959
|
> = z.object({
|
|
1796
|
-
|
|
1797
|
-
|
|
2960
|
+
role:
|
|
2961
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyRole$outboundSchema,
|
|
2962
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2963
|
+
toolCallId: z.string(),
|
|
1798
2964
|
}).transform((v) => {
|
|
1799
2965
|
return remap$(v, {
|
|
1800
|
-
|
|
2966
|
+
toolCallId: "tool_call_id",
|
|
1801
2967
|
});
|
|
1802
2968
|
});
|
|
1803
2969
|
|
|
@@ -1805,1311 +2971,1639 @@ export const DeploymentCreateMetric23$outboundSchema: z.ZodType<
|
|
|
1805
2971
|
* @internal
|
|
1806
2972
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1807
2973
|
*/
|
|
1808
|
-
export namespace
|
|
1809
|
-
/** @deprecated use `
|
|
1810
|
-
export const inboundSchema =
|
|
1811
|
-
/** @deprecated use `
|
|
1812
|
-
export const outboundSchema =
|
|
1813
|
-
/** @deprecated use `
|
|
1814
|
-
export type Outbound =
|
|
2974
|
+
export namespace ChoicesToolMessage$ {
|
|
2975
|
+
/** @deprecated use `ChoicesToolMessage$inboundSchema` instead. */
|
|
2976
|
+
export const inboundSchema = ChoicesToolMessage$inboundSchema;
|
|
2977
|
+
/** @deprecated use `ChoicesToolMessage$outboundSchema` instead. */
|
|
2978
|
+
export const outboundSchema = ChoicesToolMessage$outboundSchema;
|
|
2979
|
+
/** @deprecated use `ChoicesToolMessage$Outbound` instead. */
|
|
2980
|
+
export type Outbound = ChoicesToolMessage$Outbound;
|
|
1815
2981
|
}
|
|
1816
2982
|
|
|
1817
|
-
export function
|
|
1818
|
-
|
|
2983
|
+
export function choicesToolMessageToJSON(
|
|
2984
|
+
choicesToolMessage: ChoicesToolMessage,
|
|
1819
2985
|
): string {
|
|
1820
2986
|
return JSON.stringify(
|
|
1821
|
-
|
|
2987
|
+
ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
|
|
1822
2988
|
);
|
|
1823
2989
|
}
|
|
1824
2990
|
|
|
1825
|
-
export function
|
|
2991
|
+
export function choicesToolMessageFromJSON(
|
|
1826
2992
|
jsonString: string,
|
|
1827
|
-
): SafeParseResult<
|
|
2993
|
+
): SafeParseResult<ChoicesToolMessage, SDKValidationError> {
|
|
1828
2994
|
return safeParse(
|
|
1829
2995
|
jsonString,
|
|
1830
|
-
(x) =>
|
|
1831
|
-
`Failed to parse '
|
|
2996
|
+
(x) => ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2997
|
+
`Failed to parse 'ChoicesToolMessage' from JSON`,
|
|
1832
2998
|
);
|
|
1833
2999
|
}
|
|
1834
3000
|
|
|
1835
3001
|
/** @internal */
|
|
1836
|
-
export const
|
|
1837
|
-
z.ZodNativeEnum<
|
|
1838
|
-
|
|
3002
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema:
|
|
3003
|
+
z.ZodNativeEnum<
|
|
3004
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
3005
|
+
> = z.nativeEnum(
|
|
3006
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType,
|
|
3007
|
+
);
|
|
1839
3008
|
|
|
1840
3009
|
/** @internal */
|
|
1841
|
-
export const
|
|
1842
|
-
z.ZodNativeEnum<
|
|
1843
|
-
|
|
3010
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema:
|
|
3011
|
+
z.ZodNativeEnum<
|
|
3012
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
3013
|
+
> =
|
|
3014
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
1844
3015
|
|
|
1845
3016
|
/**
|
|
1846
3017
|
* @internal
|
|
1847
3018
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1848
3019
|
*/
|
|
1849
|
-
export namespace
|
|
1850
|
-
/** @deprecated use `
|
|
3020
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$ {
|
|
3021
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema` instead. */
|
|
1851
3022
|
export const inboundSchema =
|
|
1852
|
-
|
|
1853
|
-
/** @deprecated use `
|
|
3023
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
3024
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema` instead. */
|
|
1854
3025
|
export const outboundSchema =
|
|
1855
|
-
|
|
3026
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema;
|
|
1856
3027
|
}
|
|
1857
3028
|
|
|
1858
3029
|
/** @internal */
|
|
1859
|
-
export const
|
|
1860
|
-
|
|
1861
|
-
|
|
3030
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema:
|
|
3031
|
+
z.ZodType<
|
|
3032
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3033
|
+
z.ZodTypeDef,
|
|
3034
|
+
unknown
|
|
3035
|
+
> = z.object({
|
|
3036
|
+
type:
|
|
3037
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
3038
|
+
refusal: z.string(),
|
|
3039
|
+
});
|
|
1862
3040
|
|
|
1863
3041
|
/** @internal */
|
|
1864
|
-
export
|
|
1865
|
-
|
|
1866
|
-
|
|
3042
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound =
|
|
3043
|
+
{
|
|
3044
|
+
type: string;
|
|
3045
|
+
refusal: string;
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
/** @internal */
|
|
3049
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema:
|
|
3050
|
+
z.ZodType<
|
|
3051
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound,
|
|
3052
|
+
z.ZodTypeDef,
|
|
3053
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart
|
|
3054
|
+
> = z.object({
|
|
3055
|
+
type:
|
|
3056
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
|
|
3057
|
+
refusal: z.string(),
|
|
3058
|
+
});
|
|
1867
3059
|
|
|
1868
3060
|
/**
|
|
1869
3061
|
* @internal
|
|
1870
3062
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1871
3063
|
*/
|
|
1872
|
-
export namespace
|
|
1873
|
-
/** @deprecated use `
|
|
1874
|
-
export const inboundSchema =
|
|
1875
|
-
|
|
1876
|
-
|
|
3064
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$ {
|
|
3065
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema` instead. */
|
|
3066
|
+
export const inboundSchema =
|
|
3067
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema;
|
|
3068
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema` instead. */
|
|
3069
|
+
export const outboundSchema =
|
|
3070
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema;
|
|
3071
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound` instead. */
|
|
3072
|
+
export type Outbound =
|
|
3073
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartToJSON(
|
|
3077
|
+
deploymentCreateMetric2DeploymentsMetricsRefusalContentPart:
|
|
3078
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3079
|
+
): string {
|
|
3080
|
+
return JSON.stringify(
|
|
3081
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3082
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRefusalContentPart),
|
|
3083
|
+
);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
export function deploymentCreateMetric2DeploymentsMetricsRefusalContentPartFromJSON(
|
|
3087
|
+
jsonString: string,
|
|
3088
|
+
): SafeParseResult<
|
|
3089
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart,
|
|
3090
|
+
SDKValidationError
|
|
3091
|
+
> {
|
|
3092
|
+
return safeParse(
|
|
3093
|
+
jsonString,
|
|
3094
|
+
(x) =>
|
|
3095
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3096
|
+
.parse(JSON.parse(x)),
|
|
3097
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart' from JSON`,
|
|
3098
|
+
);
|
|
1877
3099
|
}
|
|
1878
3100
|
|
|
1879
3101
|
/** @internal */
|
|
1880
|
-
export const
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
detail: DeploymentCreateMetric2Detail$inboundSchema.optional(),
|
|
1887
|
-
});
|
|
3102
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema:
|
|
3103
|
+
z.ZodNativeEnum<
|
|
3104
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
3105
|
+
> = z.nativeEnum(
|
|
3106
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type,
|
|
3107
|
+
);
|
|
1888
3108
|
|
|
1889
3109
|
/** @internal */
|
|
1890
|
-
export
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
3110
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema:
|
|
3111
|
+
z.ZodNativeEnum<
|
|
3112
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type
|
|
3113
|
+
> =
|
|
3114
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* @internal
|
|
3118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3119
|
+
*/
|
|
3120
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$ {
|
|
3121
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema` instead. */
|
|
3122
|
+
export const inboundSchema =
|
|
3123
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema;
|
|
3124
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema` instead. */
|
|
3125
|
+
export const outboundSchema =
|
|
3126
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema;
|
|
3127
|
+
}
|
|
1894
3128
|
|
|
1895
3129
|
/** @internal */
|
|
1896
|
-
export const
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
3130
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema:
|
|
3131
|
+
z.ZodType<
|
|
3132
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
3133
|
+
z.ZodTypeDef,
|
|
3134
|
+
unknown
|
|
3135
|
+
> = z.object({
|
|
3136
|
+
type:
|
|
3137
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$inboundSchema,
|
|
3138
|
+
text: z.string(),
|
|
3139
|
+
});
|
|
3140
|
+
|
|
3141
|
+
/** @internal */
|
|
3142
|
+
export type DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound =
|
|
3143
|
+
{
|
|
3144
|
+
type: string;
|
|
3145
|
+
text: string;
|
|
3146
|
+
};
|
|
3147
|
+
|
|
3148
|
+
/** @internal */
|
|
3149
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema:
|
|
3150
|
+
z.ZodType<
|
|
3151
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound,
|
|
3152
|
+
z.ZodTypeDef,
|
|
3153
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart
|
|
3154
|
+
> = z.object({
|
|
3155
|
+
type:
|
|
3156
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Type$outboundSchema,
|
|
3157
|
+
text: z.string(),
|
|
3158
|
+
});
|
|
1904
3159
|
|
|
1905
3160
|
/**
|
|
1906
3161
|
* @internal
|
|
1907
3162
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1908
3163
|
*/
|
|
1909
|
-
export namespace
|
|
1910
|
-
/** @deprecated use `
|
|
1911
|
-
export const inboundSchema =
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
3164
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsTextContentPart$ {
|
|
3165
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema` instead. */
|
|
3166
|
+
export const inboundSchema =
|
|
3167
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema;
|
|
3168
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema` instead. */
|
|
3169
|
+
export const outboundSchema =
|
|
3170
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema;
|
|
3171
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound` instead. */
|
|
3172
|
+
export type Outbound =
|
|
3173
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound;
|
|
1916
3174
|
}
|
|
1917
3175
|
|
|
1918
|
-
export function
|
|
1919
|
-
|
|
3176
|
+
export function deploymentCreateMetric2DeploymentsMetricsTextContentPartToJSON(
|
|
3177
|
+
deploymentCreateMetric2DeploymentsMetricsTextContentPart:
|
|
3178
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
1920
3179
|
): string {
|
|
1921
3180
|
return JSON.stringify(
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
),
|
|
3181
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3182
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsTextContentPart),
|
|
1925
3183
|
);
|
|
1926
3184
|
}
|
|
1927
3185
|
|
|
1928
|
-
export function
|
|
3186
|
+
export function deploymentCreateMetric2DeploymentsMetricsTextContentPartFromJSON(
|
|
1929
3187
|
jsonString: string,
|
|
1930
|
-
): SafeParseResult<
|
|
3188
|
+
): SafeParseResult<
|
|
3189
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart,
|
|
3190
|
+
SDKValidationError
|
|
3191
|
+
> {
|
|
1931
3192
|
return safeParse(
|
|
1932
3193
|
jsonString,
|
|
1933
|
-
(x) =>
|
|
1934
|
-
|
|
3194
|
+
(x) =>
|
|
3195
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3196
|
+
.parse(JSON.parse(x)),
|
|
3197
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsTextContentPart' from JSON`,
|
|
3198
|
+
);
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
/** @internal */
|
|
3202
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema:
|
|
3203
|
+
z.ZodType<
|
|
3204
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3205
|
+
z.ZodTypeDef,
|
|
3206
|
+
unknown
|
|
3207
|
+
> = z.union([
|
|
3208
|
+
z.lazy(() =>
|
|
3209
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3210
|
+
),
|
|
3211
|
+
z.lazy(() =>
|
|
3212
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3213
|
+
),
|
|
3214
|
+
]);
|
|
3215
|
+
|
|
3216
|
+
/** @internal */
|
|
3217
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound =
|
|
3218
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3219
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound;
|
|
3220
|
+
|
|
3221
|
+
/** @internal */
|
|
3222
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema:
|
|
3223
|
+
z.ZodType<
|
|
3224
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound,
|
|
3225
|
+
z.ZodTypeDef,
|
|
3226
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2
|
|
3227
|
+
> = z.union([
|
|
3228
|
+
z.lazy(() =>
|
|
3229
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3230
|
+
),
|
|
3231
|
+
z.lazy(() =>
|
|
3232
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3233
|
+
),
|
|
3234
|
+
]);
|
|
3235
|
+
|
|
3236
|
+
/**
|
|
3237
|
+
* @internal
|
|
3238
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3239
|
+
*/
|
|
3240
|
+
export namespace DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$ {
|
|
3241
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema` instead. */
|
|
3242
|
+
export const inboundSchema =
|
|
3243
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema;
|
|
3244
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema` instead. */
|
|
3245
|
+
export const outboundSchema =
|
|
3246
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema;
|
|
3247
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound` instead. */
|
|
3248
|
+
export type Outbound =
|
|
3249
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON(
|
|
3253
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2:
|
|
3254
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3255
|
+
): string {
|
|
3256
|
+
return JSON.stringify(
|
|
3257
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema
|
|
3258
|
+
.parse(
|
|
3259
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3260
|
+
),
|
|
3261
|
+
);
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON(
|
|
3265
|
+
jsonString: string,
|
|
3266
|
+
): SafeParseResult<
|
|
3267
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
3268
|
+
SDKValidationError
|
|
3269
|
+
> {
|
|
3270
|
+
return safeParse(
|
|
3271
|
+
jsonString,
|
|
3272
|
+
(x) =>
|
|
3273
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema
|
|
3274
|
+
.parse(JSON.parse(x)),
|
|
3275
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2' from JSON`,
|
|
1935
3276
|
);
|
|
1936
3277
|
}
|
|
1937
3278
|
|
|
1938
3279
|
/** @internal */
|
|
1939
|
-
export const
|
|
1940
|
-
|
|
3280
|
+
export const DeploymentCreateMetricChoicesContent$inboundSchema: z.ZodType<
|
|
3281
|
+
DeploymentCreateMetricChoicesContent,
|
|
1941
3282
|
z.ZodTypeDef,
|
|
1942
3283
|
unknown
|
|
1943
|
-
> = z.
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
3284
|
+
> = z.union([
|
|
3285
|
+
z.string(),
|
|
3286
|
+
z.array(z.union([
|
|
3287
|
+
z.lazy(() =>
|
|
3288
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3289
|
+
),
|
|
3290
|
+
z.lazy(() =>
|
|
3291
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3292
|
+
),
|
|
3293
|
+
])),
|
|
3294
|
+
]);
|
|
1951
3295
|
|
|
1952
3296
|
/** @internal */
|
|
1953
|
-
export type
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
3297
|
+
export type DeploymentCreateMetricChoicesContent$Outbound =
|
|
3298
|
+
| string
|
|
3299
|
+
| Array<
|
|
3300
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3301
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound
|
|
3302
|
+
>;
|
|
1957
3303
|
|
|
1958
3304
|
/** @internal */
|
|
1959
|
-
export const
|
|
1960
|
-
|
|
3305
|
+
export const DeploymentCreateMetricChoicesContent$outboundSchema: z.ZodType<
|
|
3306
|
+
DeploymentCreateMetricChoicesContent$Outbound,
|
|
1961
3307
|
z.ZodTypeDef,
|
|
1962
|
-
|
|
1963
|
-
> = z.
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
3308
|
+
DeploymentCreateMetricChoicesContent
|
|
3309
|
+
> = z.union([
|
|
3310
|
+
z.string(),
|
|
3311
|
+
z.array(z.union([
|
|
3312
|
+
z.lazy(() =>
|
|
3313
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3314
|
+
),
|
|
3315
|
+
z.lazy(() =>
|
|
3316
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3317
|
+
),
|
|
3318
|
+
])),
|
|
3319
|
+
]);
|
|
1971
3320
|
|
|
1972
3321
|
/**
|
|
1973
3322
|
* @internal
|
|
1974
3323
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1975
3324
|
*/
|
|
1976
|
-
export namespace
|
|
1977
|
-
/** @deprecated use `
|
|
1978
|
-
export const inboundSchema =
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
3325
|
+
export namespace DeploymentCreateMetricChoicesContent$ {
|
|
3326
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$inboundSchema` instead. */
|
|
3327
|
+
export const inboundSchema =
|
|
3328
|
+
DeploymentCreateMetricChoicesContent$inboundSchema;
|
|
3329
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$outboundSchema` instead. */
|
|
3330
|
+
export const outboundSchema =
|
|
3331
|
+
DeploymentCreateMetricChoicesContent$outboundSchema;
|
|
3332
|
+
/** @deprecated use `DeploymentCreateMetricChoicesContent$Outbound` instead. */
|
|
3333
|
+
export type Outbound = DeploymentCreateMetricChoicesContent$Outbound;
|
|
1983
3334
|
}
|
|
1984
3335
|
|
|
1985
|
-
export function
|
|
1986
|
-
|
|
3336
|
+
export function deploymentCreateMetricChoicesContentToJSON(
|
|
3337
|
+
deploymentCreateMetricChoicesContent: DeploymentCreateMetricChoicesContent,
|
|
1987
3338
|
): string {
|
|
1988
3339
|
return JSON.stringify(
|
|
1989
|
-
|
|
3340
|
+
DeploymentCreateMetricChoicesContent$outboundSchema.parse(
|
|
3341
|
+
deploymentCreateMetricChoicesContent,
|
|
3342
|
+
),
|
|
1990
3343
|
);
|
|
1991
3344
|
}
|
|
1992
3345
|
|
|
1993
|
-
export function
|
|
3346
|
+
export function deploymentCreateMetricChoicesContentFromJSON(
|
|
1994
3347
|
jsonString: string,
|
|
1995
|
-
): SafeParseResult<
|
|
3348
|
+
): SafeParseResult<DeploymentCreateMetricChoicesContent, SDKValidationError> {
|
|
1996
3349
|
return safeParse(
|
|
1997
3350
|
jsonString,
|
|
1998
|
-
(x) =>
|
|
1999
|
-
|
|
3351
|
+
(x) =>
|
|
3352
|
+
DeploymentCreateMetricChoicesContent$inboundSchema.parse(JSON.parse(x)),
|
|
3353
|
+
`Failed to parse 'DeploymentCreateMetricChoicesContent' from JSON`,
|
|
2000
3354
|
);
|
|
2001
3355
|
}
|
|
2002
3356
|
|
|
2003
3357
|
/** @internal */
|
|
2004
|
-
export const
|
|
2005
|
-
|
|
2006
|
-
|
|
3358
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema:
|
|
3359
|
+
z.ZodNativeEnum<
|
|
3360
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole
|
|
3361
|
+
> = z.nativeEnum(DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole);
|
|
2007
3362
|
|
|
2008
3363
|
/** @internal */
|
|
2009
|
-
export const
|
|
2010
|
-
|
|
2011
|
-
|
|
3364
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema:
|
|
3365
|
+
z.ZodNativeEnum<
|
|
3366
|
+
typeof DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole
|
|
3367
|
+
> = DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
2012
3368
|
|
|
2013
3369
|
/**
|
|
2014
3370
|
* @internal
|
|
2015
3371
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2016
3372
|
*/
|
|
2017
|
-
export namespace
|
|
2018
|
-
/** @deprecated use `
|
|
2019
|
-
export const inboundSchema =
|
|
2020
|
-
|
|
2021
|
-
|
|
3373
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$ {
|
|
3374
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema` instead. */
|
|
3375
|
+
export const inboundSchema =
|
|
3376
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema;
|
|
3377
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema` instead. */
|
|
3378
|
+
export const outboundSchema =
|
|
3379
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema;
|
|
2022
3380
|
}
|
|
2023
3381
|
|
|
2024
3382
|
/** @internal */
|
|
2025
|
-
export const
|
|
2026
|
-
|
|
3383
|
+
export const ChoicesAudio$inboundSchema: z.ZodType<
|
|
3384
|
+
ChoicesAudio,
|
|
2027
3385
|
z.ZodTypeDef,
|
|
2028
3386
|
unknown
|
|
2029
3387
|
> = z.object({
|
|
2030
|
-
|
|
2031
|
-
text: z.string(),
|
|
3388
|
+
id: z.string(),
|
|
2032
3389
|
});
|
|
2033
3390
|
|
|
2034
3391
|
/** @internal */
|
|
2035
|
-
export type
|
|
2036
|
-
|
|
2037
|
-
text: string;
|
|
3392
|
+
export type ChoicesAudio$Outbound = {
|
|
3393
|
+
id: string;
|
|
2038
3394
|
};
|
|
2039
3395
|
|
|
2040
3396
|
/** @internal */
|
|
2041
|
-
export const
|
|
2042
|
-
|
|
3397
|
+
export const ChoicesAudio$outboundSchema: z.ZodType<
|
|
3398
|
+
ChoicesAudio$Outbound,
|
|
2043
3399
|
z.ZodTypeDef,
|
|
2044
|
-
|
|
3400
|
+
ChoicesAudio
|
|
2045
3401
|
> = z.object({
|
|
2046
|
-
|
|
2047
|
-
text: z.string(),
|
|
3402
|
+
id: z.string(),
|
|
2048
3403
|
});
|
|
2049
3404
|
|
|
2050
3405
|
/**
|
|
2051
3406
|
* @internal
|
|
2052
3407
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2053
3408
|
*/
|
|
2054
|
-
export namespace
|
|
2055
|
-
/** @deprecated use `
|
|
2056
|
-
export const inboundSchema =
|
|
2057
|
-
/** @deprecated use `
|
|
2058
|
-
export const outboundSchema =
|
|
2059
|
-
/** @deprecated use `
|
|
2060
|
-
export type Outbound =
|
|
3409
|
+
export namespace ChoicesAudio$ {
|
|
3410
|
+
/** @deprecated use `ChoicesAudio$inboundSchema` instead. */
|
|
3411
|
+
export const inboundSchema = ChoicesAudio$inboundSchema;
|
|
3412
|
+
/** @deprecated use `ChoicesAudio$outboundSchema` instead. */
|
|
3413
|
+
export const outboundSchema = ChoicesAudio$outboundSchema;
|
|
3414
|
+
/** @deprecated use `ChoicesAudio$Outbound` instead. */
|
|
3415
|
+
export type Outbound = ChoicesAudio$Outbound;
|
|
2061
3416
|
}
|
|
2062
3417
|
|
|
2063
|
-
export function
|
|
2064
|
-
|
|
2065
|
-
): string {
|
|
2066
|
-
return JSON.stringify(
|
|
2067
|
-
DeploymentCreateMetric21$outboundSchema.parse(deploymentCreateMetric21),
|
|
2068
|
-
);
|
|
3418
|
+
export function choicesAudioToJSON(choicesAudio: ChoicesAudio): string {
|
|
3419
|
+
return JSON.stringify(ChoicesAudio$outboundSchema.parse(choicesAudio));
|
|
2069
3420
|
}
|
|
2070
3421
|
|
|
2071
|
-
export function
|
|
3422
|
+
export function choicesAudioFromJSON(
|
|
2072
3423
|
jsonString: string,
|
|
2073
|
-
): SafeParseResult<
|
|
3424
|
+
): SafeParseResult<ChoicesAudio, SDKValidationError> {
|
|
2074
3425
|
return safeParse(
|
|
2075
3426
|
jsonString,
|
|
2076
|
-
(x) =>
|
|
2077
|
-
`Failed to parse '
|
|
3427
|
+
(x) => ChoicesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
3428
|
+
`Failed to parse 'ChoicesAudio' from JSON`,
|
|
2078
3429
|
);
|
|
2079
3430
|
}
|
|
2080
3431
|
|
|
2081
3432
|
/** @internal */
|
|
2082
|
-
export const
|
|
2083
|
-
|
|
3433
|
+
export const ChoicesType$inboundSchema: z.ZodNativeEnum<typeof ChoicesType> = z
|
|
3434
|
+
.nativeEnum(ChoicesType);
|
|
3435
|
+
|
|
3436
|
+
/** @internal */
|
|
3437
|
+
export const ChoicesType$outboundSchema: z.ZodNativeEnum<typeof ChoicesType> =
|
|
3438
|
+
ChoicesType$inboundSchema;
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @internal
|
|
3442
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3443
|
+
*/
|
|
3444
|
+
export namespace ChoicesType$ {
|
|
3445
|
+
/** @deprecated use `ChoicesType$inboundSchema` instead. */
|
|
3446
|
+
export const inboundSchema = ChoicesType$inboundSchema;
|
|
3447
|
+
/** @deprecated use `ChoicesType$outboundSchema` instead. */
|
|
3448
|
+
export const outboundSchema = ChoicesType$outboundSchema;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
/** @internal */
|
|
3452
|
+
export const ChoicesFunction$inboundSchema: z.ZodType<
|
|
3453
|
+
ChoicesFunction,
|
|
2084
3454
|
z.ZodTypeDef,
|
|
2085
3455
|
unknown
|
|
2086
|
-
> = z.
|
|
2087
|
-
z.
|
|
2088
|
-
z.
|
|
2089
|
-
|
|
2090
|
-
]);
|
|
3456
|
+
> = z.object({
|
|
3457
|
+
name: z.string().optional(),
|
|
3458
|
+
arguments: z.string().optional(),
|
|
3459
|
+
});
|
|
2091
3460
|
|
|
2092
3461
|
/** @internal */
|
|
2093
|
-
export type
|
|
2094
|
-
|
|
|
2095
|
-
|
|
|
2096
|
-
|
|
3462
|
+
export type ChoicesFunction$Outbound = {
|
|
3463
|
+
name?: string | undefined;
|
|
3464
|
+
arguments?: string | undefined;
|
|
3465
|
+
};
|
|
2097
3466
|
|
|
2098
3467
|
/** @internal */
|
|
2099
|
-
export const
|
|
2100
|
-
|
|
3468
|
+
export const ChoicesFunction$outboundSchema: z.ZodType<
|
|
3469
|
+
ChoicesFunction$Outbound,
|
|
2101
3470
|
z.ZodTypeDef,
|
|
2102
|
-
|
|
2103
|
-
> = z.
|
|
2104
|
-
z.
|
|
2105
|
-
z.
|
|
2106
|
-
|
|
2107
|
-
]);
|
|
3471
|
+
ChoicesFunction
|
|
3472
|
+
> = z.object({
|
|
3473
|
+
name: z.string().optional(),
|
|
3474
|
+
arguments: z.string().optional(),
|
|
3475
|
+
});
|
|
2108
3476
|
|
|
2109
3477
|
/**
|
|
2110
3478
|
* @internal
|
|
2111
3479
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2112
3480
|
*/
|
|
2113
|
-
export namespace
|
|
2114
|
-
/** @deprecated use `
|
|
2115
|
-
export const inboundSchema =
|
|
2116
|
-
/** @deprecated use `
|
|
2117
|
-
export const outboundSchema =
|
|
2118
|
-
/** @deprecated use `
|
|
2119
|
-
export type Outbound =
|
|
3481
|
+
export namespace ChoicesFunction$ {
|
|
3482
|
+
/** @deprecated use `ChoicesFunction$inboundSchema` instead. */
|
|
3483
|
+
export const inboundSchema = ChoicesFunction$inboundSchema;
|
|
3484
|
+
/** @deprecated use `ChoicesFunction$outboundSchema` instead. */
|
|
3485
|
+
export const outboundSchema = ChoicesFunction$outboundSchema;
|
|
3486
|
+
/** @deprecated use `ChoicesFunction$Outbound` instead. */
|
|
3487
|
+
export type Outbound = ChoicesFunction$Outbound;
|
|
2120
3488
|
}
|
|
2121
3489
|
|
|
2122
|
-
export function
|
|
2123
|
-
|
|
3490
|
+
export function choicesFunctionToJSON(
|
|
3491
|
+
choicesFunction: ChoicesFunction,
|
|
2124
3492
|
): string {
|
|
2125
|
-
return JSON.stringify(
|
|
2126
|
-
DeploymentCreateMetricContent2$outboundSchema.parse(
|
|
2127
|
-
deploymentCreateMetricContent2,
|
|
2128
|
-
),
|
|
2129
|
-
);
|
|
3493
|
+
return JSON.stringify(ChoicesFunction$outboundSchema.parse(choicesFunction));
|
|
2130
3494
|
}
|
|
2131
3495
|
|
|
2132
|
-
export function
|
|
3496
|
+
export function choicesFunctionFromJSON(
|
|
2133
3497
|
jsonString: string,
|
|
2134
|
-
): SafeParseResult<
|
|
3498
|
+
): SafeParseResult<ChoicesFunction, SDKValidationError> {
|
|
2135
3499
|
return safeParse(
|
|
2136
3500
|
jsonString,
|
|
2137
|
-
(x) =>
|
|
2138
|
-
`Failed to parse '
|
|
3501
|
+
(x) => ChoicesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3502
|
+
`Failed to parse 'ChoicesFunction' from JSON`,
|
|
2139
3503
|
);
|
|
2140
3504
|
}
|
|
2141
3505
|
|
|
2142
3506
|
/** @internal */
|
|
2143
|
-
export const
|
|
2144
|
-
|
|
3507
|
+
export const ChoicesToolCalls$inboundSchema: z.ZodType<
|
|
3508
|
+
ChoicesToolCalls,
|
|
2145
3509
|
z.ZodTypeDef,
|
|
2146
3510
|
unknown
|
|
2147
|
-
> = z.
|
|
2148
|
-
z.string(),
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
z.lazy(() => DeploymentCreateMetric23$inboundSchema),
|
|
2153
|
-
])),
|
|
2154
|
-
]);
|
|
3511
|
+
> = z.object({
|
|
3512
|
+
id: z.string(),
|
|
3513
|
+
type: ChoicesType$inboundSchema,
|
|
3514
|
+
function: z.lazy(() => ChoicesFunction$inboundSchema),
|
|
3515
|
+
});
|
|
2155
3516
|
|
|
2156
3517
|
/** @internal */
|
|
2157
|
-
export type
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
| DeploymentCreateMetric23$Outbound
|
|
2163
|
-
>;
|
|
3518
|
+
export type ChoicesToolCalls$Outbound = {
|
|
3519
|
+
id: string;
|
|
3520
|
+
type: string;
|
|
3521
|
+
function: ChoicesFunction$Outbound;
|
|
3522
|
+
};
|
|
2164
3523
|
|
|
2165
3524
|
/** @internal */
|
|
2166
|
-
export const
|
|
2167
|
-
|
|
3525
|
+
export const ChoicesToolCalls$outboundSchema: z.ZodType<
|
|
3526
|
+
ChoicesToolCalls$Outbound,
|
|
2168
3527
|
z.ZodTypeDef,
|
|
2169
|
-
|
|
2170
|
-
> = z.
|
|
2171
|
-
z.string(),
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
z.lazy(() => DeploymentCreateMetric23$outboundSchema),
|
|
2176
|
-
])),
|
|
2177
|
-
]);
|
|
3528
|
+
ChoicesToolCalls
|
|
3529
|
+
> = z.object({
|
|
3530
|
+
id: z.string(),
|
|
3531
|
+
type: ChoicesType$outboundSchema,
|
|
3532
|
+
function: z.lazy(() => ChoicesFunction$outboundSchema),
|
|
3533
|
+
});
|
|
2178
3534
|
|
|
2179
3535
|
/**
|
|
2180
3536
|
* @internal
|
|
2181
3537
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2182
3538
|
*/
|
|
2183
|
-
export namespace
|
|
2184
|
-
/** @deprecated use `
|
|
2185
|
-
export const inboundSchema =
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
/** @deprecated use `DeploymentCreateMetricMessagesContent$Outbound` instead. */
|
|
2191
|
-
export type Outbound = DeploymentCreateMetricMessagesContent$Outbound;
|
|
3539
|
+
export namespace ChoicesToolCalls$ {
|
|
3540
|
+
/** @deprecated use `ChoicesToolCalls$inboundSchema` instead. */
|
|
3541
|
+
export const inboundSchema = ChoicesToolCalls$inboundSchema;
|
|
3542
|
+
/** @deprecated use `ChoicesToolCalls$outboundSchema` instead. */
|
|
3543
|
+
export const outboundSchema = ChoicesToolCalls$outboundSchema;
|
|
3544
|
+
/** @deprecated use `ChoicesToolCalls$Outbound` instead. */
|
|
3545
|
+
export type Outbound = ChoicesToolCalls$Outbound;
|
|
2192
3546
|
}
|
|
2193
3547
|
|
|
2194
|
-
export function
|
|
2195
|
-
|
|
3548
|
+
export function choicesToolCallsToJSON(
|
|
3549
|
+
choicesToolCalls: ChoicesToolCalls,
|
|
2196
3550
|
): string {
|
|
2197
3551
|
return JSON.stringify(
|
|
2198
|
-
|
|
2199
|
-
deploymentCreateMetricMessagesContent,
|
|
2200
|
-
),
|
|
3552
|
+
ChoicesToolCalls$outboundSchema.parse(choicesToolCalls),
|
|
2201
3553
|
);
|
|
2202
3554
|
}
|
|
2203
3555
|
|
|
2204
|
-
export function
|
|
3556
|
+
export function choicesToolCallsFromJSON(
|
|
2205
3557
|
jsonString: string,
|
|
2206
|
-
): SafeParseResult<
|
|
3558
|
+
): SafeParseResult<ChoicesToolCalls, SDKValidationError> {
|
|
2207
3559
|
return safeParse(
|
|
2208
3560
|
jsonString,
|
|
2209
|
-
(x) =>
|
|
2210
|
-
|
|
2211
|
-
`Failed to parse 'DeploymentCreateMetricMessagesContent' from JSON`,
|
|
3561
|
+
(x) => ChoicesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
3562
|
+
`Failed to parse 'ChoicesToolCalls' from JSON`,
|
|
2212
3563
|
);
|
|
2213
3564
|
}
|
|
2214
3565
|
|
|
2215
3566
|
/** @internal */
|
|
2216
|
-
export const
|
|
2217
|
-
|
|
3567
|
+
export const ChoicesAssistantMessage$inboundSchema: z.ZodType<
|
|
3568
|
+
ChoicesAssistantMessage,
|
|
2218
3569
|
z.ZodTypeDef,
|
|
2219
3570
|
unknown
|
|
2220
3571
|
> = z.object({
|
|
2221
|
-
role:
|
|
2222
|
-
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRole$inboundSchema,
|
|
2223
|
-
name: z.string().optional(),
|
|
2224
3572
|
content: z.union([
|
|
2225
3573
|
z.string(),
|
|
2226
3574
|
z.array(z.union([
|
|
2227
|
-
z.lazy(() =>
|
|
2228
|
-
|
|
2229
|
-
|
|
3575
|
+
z.lazy(() =>
|
|
3576
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$inboundSchema
|
|
3577
|
+
),
|
|
3578
|
+
z.lazy(() =>
|
|
3579
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$inboundSchema
|
|
3580
|
+
),
|
|
2230
3581
|
])),
|
|
2231
|
-
]),
|
|
3582
|
+
]).optional(),
|
|
3583
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3584
|
+
role:
|
|
3585
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$inboundSchema,
|
|
3586
|
+
name: z.string().optional(),
|
|
3587
|
+
audio: z.nullable(z.lazy(() => ChoicesAudio$inboundSchema)).optional(),
|
|
3588
|
+
tool_calls: z.array(z.lazy(() => ChoicesToolCalls$inboundSchema)).optional(),
|
|
3589
|
+
}).transform((v) => {
|
|
3590
|
+
return remap$(v, {
|
|
3591
|
+
"tool_calls": "toolCalls",
|
|
3592
|
+
});
|
|
2232
3593
|
});
|
|
2233
3594
|
|
|
2234
3595
|
/** @internal */
|
|
2235
|
-
export type
|
|
2236
|
-
|
|
2237
|
-
name?: string | undefined;
|
|
2238
|
-
content:
|
|
3596
|
+
export type ChoicesAssistantMessage$Outbound = {
|
|
3597
|
+
content?:
|
|
2239
3598
|
| string
|
|
2240
3599
|
| Array<
|
|
2241
|
-
|
|
|
2242
|
-
|
|
|
2243
|
-
|
|
2244
|
-
|
|
3600
|
+
| DeploymentCreateMetric2DeploymentsMetricsTextContentPart$Outbound
|
|
3601
|
+
| DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$Outbound
|
|
3602
|
+
>
|
|
3603
|
+
| undefined;
|
|
3604
|
+
refusal?: string | null | undefined;
|
|
3605
|
+
role: string;
|
|
3606
|
+
name?: string | undefined;
|
|
3607
|
+
audio?: ChoicesAudio$Outbound | null | undefined;
|
|
3608
|
+
tool_calls?: Array<ChoicesToolCalls$Outbound> | undefined;
|
|
2245
3609
|
};
|
|
2246
3610
|
|
|
2247
3611
|
/** @internal */
|
|
2248
|
-
export const
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
z.
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
3612
|
+
export const ChoicesAssistantMessage$outboundSchema: z.ZodType<
|
|
3613
|
+
ChoicesAssistantMessage$Outbound,
|
|
3614
|
+
z.ZodTypeDef,
|
|
3615
|
+
ChoicesAssistantMessage
|
|
3616
|
+
> = z.object({
|
|
3617
|
+
content: z.union([
|
|
3618
|
+
z.string(),
|
|
3619
|
+
z.array(z.union([
|
|
3620
|
+
z.lazy(() =>
|
|
3621
|
+
DeploymentCreateMetric2DeploymentsMetricsTextContentPart$outboundSchema
|
|
3622
|
+
),
|
|
3623
|
+
z.lazy(() =>
|
|
3624
|
+
DeploymentCreateMetric2DeploymentsMetricsRefusalContentPart$outboundSchema
|
|
3625
|
+
),
|
|
3626
|
+
])),
|
|
3627
|
+
]).optional(),
|
|
3628
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3629
|
+
role:
|
|
3630
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole$outboundSchema,
|
|
3631
|
+
name: z.string().optional(),
|
|
3632
|
+
audio: z.nullable(z.lazy(() => ChoicesAudio$outboundSchema)).optional(),
|
|
3633
|
+
toolCalls: z.array(z.lazy(() => ChoicesToolCalls$outboundSchema)).optional(),
|
|
3634
|
+
}).transform((v) => {
|
|
3635
|
+
return remap$(v, {
|
|
3636
|
+
toolCalls: "tool_calls",
|
|
2265
3637
|
});
|
|
3638
|
+
});
|
|
2266
3639
|
|
|
2267
3640
|
/**
|
|
2268
3641
|
* @internal
|
|
2269
3642
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2270
3643
|
*/
|
|
2271
|
-
export namespace
|
|
2272
|
-
/** @deprecated use `
|
|
2273
|
-
export const inboundSchema =
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
/** @deprecated use `DeploymentCreateMetricMessagesUserMessage$Outbound` instead. */
|
|
2279
|
-
export type Outbound = DeploymentCreateMetricMessagesUserMessage$Outbound;
|
|
3644
|
+
export namespace ChoicesAssistantMessage$ {
|
|
3645
|
+
/** @deprecated use `ChoicesAssistantMessage$inboundSchema` instead. */
|
|
3646
|
+
export const inboundSchema = ChoicesAssistantMessage$inboundSchema;
|
|
3647
|
+
/** @deprecated use `ChoicesAssistantMessage$outboundSchema` instead. */
|
|
3648
|
+
export const outboundSchema = ChoicesAssistantMessage$outboundSchema;
|
|
3649
|
+
/** @deprecated use `ChoicesAssistantMessage$Outbound` instead. */
|
|
3650
|
+
export type Outbound = ChoicesAssistantMessage$Outbound;
|
|
2280
3651
|
}
|
|
2281
3652
|
|
|
2282
|
-
export function
|
|
2283
|
-
|
|
2284
|
-
DeploymentCreateMetricMessagesUserMessage,
|
|
3653
|
+
export function choicesAssistantMessageToJSON(
|
|
3654
|
+
choicesAssistantMessage: ChoicesAssistantMessage,
|
|
2285
3655
|
): string {
|
|
2286
3656
|
return JSON.stringify(
|
|
2287
|
-
|
|
2288
|
-
deploymentCreateMetricMessagesUserMessage,
|
|
2289
|
-
),
|
|
3657
|
+
ChoicesAssistantMessage$outboundSchema.parse(choicesAssistantMessage),
|
|
2290
3658
|
);
|
|
2291
3659
|
}
|
|
2292
3660
|
|
|
2293
|
-
export function
|
|
3661
|
+
export function choicesAssistantMessageFromJSON(
|
|
2294
3662
|
jsonString: string,
|
|
2295
|
-
): SafeParseResult<
|
|
2296
|
-
DeploymentCreateMetricMessagesUserMessage,
|
|
2297
|
-
SDKValidationError
|
|
2298
|
-
> {
|
|
3663
|
+
): SafeParseResult<ChoicesAssistantMessage, SDKValidationError> {
|
|
2299
3664
|
return safeParse(
|
|
2300
3665
|
jsonString,
|
|
2301
|
-
(x) =>
|
|
2302
|
-
|
|
2303
|
-
JSON.parse(x),
|
|
2304
|
-
),
|
|
2305
|
-
`Failed to parse 'DeploymentCreateMetricMessagesUserMessage' from JSON`,
|
|
3666
|
+
(x) => ChoicesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3667
|
+
`Failed to parse 'ChoicesAssistantMessage' from JSON`,
|
|
2306
3668
|
);
|
|
2307
3669
|
}
|
|
2308
3670
|
|
|
2309
3671
|
/** @internal */
|
|
2310
|
-
export const
|
|
2311
|
-
z.ZodNativeEnum<typeof
|
|
2312
|
-
z.nativeEnum(
|
|
3672
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema:
|
|
3673
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole> =
|
|
3674
|
+
z.nativeEnum(DeploymentCreateMetricChoicesDeploymentsMetricsRole);
|
|
2313
3675
|
|
|
2314
3676
|
/** @internal */
|
|
2315
|
-
export const
|
|
2316
|
-
z.ZodNativeEnum<typeof
|
|
2317
|
-
|
|
3677
|
+
export const DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema:
|
|
3678
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricChoicesDeploymentsMetricsRole> =
|
|
3679
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
2318
3680
|
|
|
2319
3681
|
/**
|
|
2320
3682
|
* @internal
|
|
2321
3683
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2322
3684
|
*/
|
|
2323
|
-
export namespace
|
|
2324
|
-
/** @deprecated use `
|
|
3685
|
+
export namespace DeploymentCreateMetricChoicesDeploymentsMetricsRole$ {
|
|
3686
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema` instead. */
|
|
2325
3687
|
export const inboundSchema =
|
|
2326
|
-
|
|
2327
|
-
/** @deprecated use `
|
|
3688
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema;
|
|
3689
|
+
/** @deprecated use `DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema` instead. */
|
|
2328
3690
|
export const outboundSchema =
|
|
2329
|
-
|
|
3691
|
+
DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema;
|
|
2330
3692
|
}
|
|
2331
3693
|
|
|
2332
3694
|
/** @internal */
|
|
2333
|
-
export const
|
|
2334
|
-
z.
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$inboundSchema,
|
|
2340
|
-
content: z.string(),
|
|
2341
|
-
name: z.string().optional(),
|
|
2342
|
-
});
|
|
2343
|
-
|
|
2344
|
-
/** @internal */
|
|
2345
|
-
export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
|
|
2346
|
-
role: string;
|
|
2347
|
-
content: string;
|
|
2348
|
-
name?: string | undefined;
|
|
2349
|
-
};
|
|
3695
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema:
|
|
3696
|
+
z.ZodNativeEnum<
|
|
3697
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
3698
|
+
> = z.nativeEnum(
|
|
3699
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType,
|
|
3700
|
+
);
|
|
2350
3701
|
|
|
2351
3702
|
/** @internal */
|
|
2352
|
-
export const
|
|
2353
|
-
z.
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
> = z.object({
|
|
2358
|
-
role: DeploymentCreateMetricMessagesDeploymentsMetricsRole$outboundSchema,
|
|
2359
|
-
content: z.string(),
|
|
2360
|
-
name: z.string().optional(),
|
|
2361
|
-
});
|
|
3703
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema:
|
|
3704
|
+
z.ZodNativeEnum<
|
|
3705
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType
|
|
3706
|
+
> =
|
|
3707
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
2362
3708
|
|
|
2363
3709
|
/**
|
|
2364
3710
|
* @internal
|
|
2365
3711
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2366
3712
|
*/
|
|
2367
|
-
export namespace
|
|
2368
|
-
/** @deprecated use `
|
|
3713
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$ {
|
|
3714
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema` instead. */
|
|
2369
3715
|
export const inboundSchema =
|
|
2370
|
-
|
|
2371
|
-
/** @deprecated use `
|
|
3716
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema;
|
|
3717
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema` instead. */
|
|
2372
3718
|
export const outboundSchema =
|
|
2373
|
-
|
|
2374
|
-
/** @deprecated use `DeploymentCreateMetricMessagesSystemMessage$Outbound` instead. */
|
|
2375
|
-
export type Outbound = DeploymentCreateMetricMessagesSystemMessage$Outbound;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
export function deploymentCreateMetricMessagesSystemMessageToJSON(
|
|
2379
|
-
deploymentCreateMetricMessagesSystemMessage:
|
|
2380
|
-
DeploymentCreateMetricMessagesSystemMessage,
|
|
2381
|
-
): string {
|
|
2382
|
-
return JSON.stringify(
|
|
2383
|
-
DeploymentCreateMetricMessagesSystemMessage$outboundSchema.parse(
|
|
2384
|
-
deploymentCreateMetricMessagesSystemMessage,
|
|
2385
|
-
),
|
|
2386
|
-
);
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
export function deploymentCreateMetricMessagesSystemMessageFromJSON(
|
|
2390
|
-
jsonString: string,
|
|
2391
|
-
): SafeParseResult<
|
|
2392
|
-
DeploymentCreateMetricMessagesSystemMessage,
|
|
2393
|
-
SDKValidationError
|
|
2394
|
-
> {
|
|
2395
|
-
return safeParse(
|
|
2396
|
-
jsonString,
|
|
2397
|
-
(x) =>
|
|
2398
|
-
DeploymentCreateMetricMessagesSystemMessage$inboundSchema.parse(
|
|
2399
|
-
JSON.parse(x),
|
|
2400
|
-
),
|
|
2401
|
-
`Failed to parse 'DeploymentCreateMetricMessagesSystemMessage' from JSON`,
|
|
2402
|
-
);
|
|
3719
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema;
|
|
2403
3720
|
}
|
|
2404
3721
|
|
|
2405
3722
|
/** @internal */
|
|
2406
|
-
export const
|
|
2407
|
-
typeof
|
|
2408
|
-
|
|
3723
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema:
|
|
3724
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsFormat> = z
|
|
3725
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsFormat);
|
|
2409
3726
|
|
|
2410
3727
|
/** @internal */
|
|
2411
|
-
export const
|
|
2412
|
-
typeof
|
|
2413
|
-
|
|
3728
|
+
export const DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema:
|
|
3729
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsFormat> =
|
|
3730
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
2414
3731
|
|
|
2415
3732
|
/**
|
|
2416
3733
|
* @internal
|
|
2417
3734
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2418
3735
|
*/
|
|
2419
|
-
export namespace
|
|
2420
|
-
/** @deprecated use `
|
|
2421
|
-
export const inboundSchema =
|
|
2422
|
-
|
|
3736
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsFormat$ {
|
|
3737
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema` instead. */
|
|
3738
|
+
export const inboundSchema =
|
|
3739
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema;
|
|
3740
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema` instead. */
|
|
2423
3741
|
export const outboundSchema =
|
|
2424
|
-
|
|
3742
|
+
DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema;
|
|
2425
3743
|
}
|
|
2426
3744
|
|
|
2427
3745
|
/** @internal */
|
|
2428
|
-
export const
|
|
3746
|
+
export const DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema:
|
|
2429
3747
|
z.ZodType<
|
|
2430
|
-
|
|
3748
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
2431
3749
|
z.ZodTypeDef,
|
|
2432
3750
|
unknown
|
|
2433
3751
|
> = z.object({
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
name: z.string().optional(),
|
|
3752
|
+
data: z.string(),
|
|
3753
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat$inboundSchema,
|
|
2437
3754
|
});
|
|
2438
3755
|
|
|
2439
3756
|
/** @internal */
|
|
2440
|
-
export type
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
name?: string | undefined;
|
|
3757
|
+
export type DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound = {
|
|
3758
|
+
data: string;
|
|
3759
|
+
format: string;
|
|
2444
3760
|
};
|
|
2445
3761
|
|
|
2446
3762
|
/** @internal */
|
|
2447
|
-
export const
|
|
3763
|
+
export const DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema:
|
|
2448
3764
|
z.ZodType<
|
|
2449
|
-
|
|
3765
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound,
|
|
2450
3766
|
z.ZodTypeDef,
|
|
2451
|
-
|
|
3767
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio
|
|
2452
3768
|
> = z.object({
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
name: z.string().optional(),
|
|
3769
|
+
data: z.string(),
|
|
3770
|
+
format: DeploymentCreateMetric2DeploymentsMetricsFormat$outboundSchema,
|
|
2456
3771
|
});
|
|
2457
3772
|
|
|
2458
3773
|
/**
|
|
2459
3774
|
* @internal
|
|
2460
3775
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2461
3776
|
*/
|
|
2462
|
-
export namespace
|
|
2463
|
-
/** @deprecated use `
|
|
3777
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsInputAudio$ {
|
|
3778
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema` instead. */
|
|
2464
3779
|
export const inboundSchema =
|
|
2465
|
-
|
|
2466
|
-
/** @deprecated use `
|
|
3780
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema;
|
|
3781
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema` instead. */
|
|
2467
3782
|
export const outboundSchema =
|
|
2468
|
-
|
|
2469
|
-
/** @deprecated use `
|
|
3783
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema;
|
|
3784
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound` instead. */
|
|
2470
3785
|
export type Outbound =
|
|
2471
|
-
|
|
3786
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound;
|
|
2472
3787
|
}
|
|
2473
3788
|
|
|
2474
|
-
export function
|
|
2475
|
-
|
|
2476
|
-
|
|
3789
|
+
export function deploymentCreateMetric2DeploymentsMetricsInputAudioToJSON(
|
|
3790
|
+
deploymentCreateMetric2DeploymentsMetricsInputAudio:
|
|
3791
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
2477
3792
|
): string {
|
|
2478
3793
|
return JSON.stringify(
|
|
2479
|
-
|
|
2480
|
-
|
|
3794
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema.parse(
|
|
3795
|
+
deploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
2481
3796
|
),
|
|
2482
3797
|
);
|
|
2483
3798
|
}
|
|
2484
3799
|
|
|
2485
|
-
export function
|
|
3800
|
+
export function deploymentCreateMetric2DeploymentsMetricsInputAudioFromJSON(
|
|
2486
3801
|
jsonString: string,
|
|
2487
3802
|
): SafeParseResult<
|
|
2488
|
-
|
|
3803
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio,
|
|
2489
3804
|
SDKValidationError
|
|
2490
3805
|
> {
|
|
2491
3806
|
return safeParse(
|
|
2492
3807
|
jsonString,
|
|
2493
3808
|
(x) =>
|
|
2494
|
-
|
|
3809
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema.parse(
|
|
2495
3810
|
JSON.parse(x),
|
|
2496
3811
|
),
|
|
2497
|
-
`Failed to parse '
|
|
3812
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsInputAudio' from JSON`,
|
|
2498
3813
|
);
|
|
2499
3814
|
}
|
|
2500
3815
|
|
|
2501
3816
|
/** @internal */
|
|
2502
|
-
export const
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
3817
|
+
export const DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema:
|
|
3818
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics3, z.ZodTypeDef, unknown> =
|
|
3819
|
+
z.object({
|
|
3820
|
+
type:
|
|
3821
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$inboundSchema,
|
|
3822
|
+
input_audio: z.lazy(() =>
|
|
3823
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$inboundSchema
|
|
3824
|
+
),
|
|
3825
|
+
}).transform((v) => {
|
|
3826
|
+
return remap$(v, {
|
|
3827
|
+
"input_audio": "inputAudio",
|
|
3828
|
+
});
|
|
3829
|
+
});
|
|
2513
3830
|
|
|
2514
3831
|
/** @internal */
|
|
2515
|
-
export type
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
| DeploymentCreateMetricMessagesToolMessage$Outbound
|
|
2520
|
-
| DeploymentCreateMetricMessagesAssistantMessage$Outbound;
|
|
3832
|
+
export type DeploymentCreateMetric2DeploymentsMetrics3$Outbound = {
|
|
3833
|
+
type: string;
|
|
3834
|
+
input_audio: DeploymentCreateMetric2DeploymentsMetricsInputAudio$Outbound;
|
|
3835
|
+
};
|
|
2521
3836
|
|
|
2522
3837
|
/** @internal */
|
|
2523
|
-
export const
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
z.
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
3838
|
+
export const DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema:
|
|
3839
|
+
z.ZodType<
|
|
3840
|
+
DeploymentCreateMetric2DeploymentsMetrics3$Outbound,
|
|
3841
|
+
z.ZodTypeDef,
|
|
3842
|
+
DeploymentCreateMetric2DeploymentsMetrics3
|
|
3843
|
+
> = z.object({
|
|
3844
|
+
type:
|
|
3845
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3ContentType$outboundSchema,
|
|
3846
|
+
inputAudio: z.lazy(() =>
|
|
3847
|
+
DeploymentCreateMetric2DeploymentsMetricsInputAudio$outboundSchema
|
|
3848
|
+
),
|
|
3849
|
+
}).transform((v) => {
|
|
3850
|
+
return remap$(v, {
|
|
3851
|
+
inputAudio: "input_audio",
|
|
3852
|
+
});
|
|
3853
|
+
});
|
|
2534
3854
|
|
|
2535
3855
|
/**
|
|
2536
3856
|
* @internal
|
|
2537
3857
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2538
3858
|
*/
|
|
2539
|
-
export namespace
|
|
2540
|
-
/** @deprecated use `
|
|
2541
|
-
export const inboundSchema =
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
3859
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics3$ {
|
|
3860
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema` instead. */
|
|
3861
|
+
export const inboundSchema =
|
|
3862
|
+
DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema;
|
|
3863
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema` instead. */
|
|
3864
|
+
export const outboundSchema =
|
|
3865
|
+
DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema;
|
|
3866
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics3$Outbound` instead. */
|
|
3867
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics3$Outbound;
|
|
2546
3868
|
}
|
|
2547
3869
|
|
|
2548
|
-
export function
|
|
2549
|
-
|
|
3870
|
+
export function deploymentCreateMetric2DeploymentsMetrics3ToJSON(
|
|
3871
|
+
deploymentCreateMetric2DeploymentsMetrics3:
|
|
3872
|
+
DeploymentCreateMetric2DeploymentsMetrics3,
|
|
2550
3873
|
): string {
|
|
2551
3874
|
return JSON.stringify(
|
|
2552
|
-
|
|
2553
|
-
|
|
3875
|
+
DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema.parse(
|
|
3876
|
+
deploymentCreateMetric2DeploymentsMetrics3,
|
|
2554
3877
|
),
|
|
2555
3878
|
);
|
|
2556
3879
|
}
|
|
2557
3880
|
|
|
2558
|
-
export function
|
|
3881
|
+
export function deploymentCreateMetric2DeploymentsMetrics3FromJSON(
|
|
2559
3882
|
jsonString: string,
|
|
2560
|
-
): SafeParseResult<
|
|
3883
|
+
): SafeParseResult<
|
|
3884
|
+
DeploymentCreateMetric2DeploymentsMetrics3,
|
|
3885
|
+
SDKValidationError
|
|
3886
|
+
> {
|
|
2561
3887
|
return safeParse(
|
|
2562
3888
|
jsonString,
|
|
2563
|
-
(x) =>
|
|
2564
|
-
|
|
3889
|
+
(x) =>
|
|
3890
|
+
DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema.parse(
|
|
3891
|
+
JSON.parse(x),
|
|
3892
|
+
),
|
|
3893
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics3' from JSON`,
|
|
2565
3894
|
);
|
|
2566
3895
|
}
|
|
2567
3896
|
|
|
2568
3897
|
/** @internal */
|
|
2569
|
-
export const
|
|
3898
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema:
|
|
2570
3899
|
z.ZodNativeEnum<
|
|
2571
|
-
typeof
|
|
2572
|
-
> = z.nativeEnum(
|
|
3900
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
3901
|
+
> = z.nativeEnum(
|
|
3902
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type,
|
|
3903
|
+
);
|
|
2573
3904
|
|
|
2574
3905
|
/** @internal */
|
|
2575
|
-
export const
|
|
3906
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema:
|
|
2576
3907
|
z.ZodNativeEnum<
|
|
2577
|
-
typeof
|
|
2578
|
-
> =
|
|
3908
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
3909
|
+
> =
|
|
3910
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
2579
3911
|
|
|
2580
3912
|
/**
|
|
2581
3913
|
* @internal
|
|
2582
3914
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2583
3915
|
*/
|
|
2584
|
-
export namespace
|
|
2585
|
-
/** @deprecated use `
|
|
3916
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$ {
|
|
3917
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema` instead. */
|
|
2586
3918
|
export const inboundSchema =
|
|
2587
|
-
|
|
2588
|
-
/** @deprecated use `
|
|
3919
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
3920
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema` instead. */
|
|
2589
3921
|
export const outboundSchema =
|
|
2590
|
-
|
|
3922
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema;
|
|
2591
3923
|
}
|
|
2592
3924
|
|
|
2593
3925
|
/** @internal */
|
|
2594
|
-
export const
|
|
2595
|
-
z.ZodNativeEnum<typeof
|
|
2596
|
-
|
|
3926
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema:
|
|
3927
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsDetail> = z
|
|
3928
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsDetail);
|
|
2597
3929
|
|
|
2598
3930
|
/** @internal */
|
|
2599
|
-
export const
|
|
2600
|
-
z.ZodNativeEnum<typeof
|
|
2601
|
-
|
|
3931
|
+
export const DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema:
|
|
3932
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsDetail> =
|
|
3933
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
2602
3934
|
|
|
2603
3935
|
/**
|
|
2604
3936
|
* @internal
|
|
2605
3937
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2606
3938
|
*/
|
|
2607
|
-
export namespace
|
|
2608
|
-
/** @deprecated use `
|
|
3939
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsDetail$ {
|
|
3940
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema` instead. */
|
|
2609
3941
|
export const inboundSchema =
|
|
2610
|
-
|
|
2611
|
-
/** @deprecated use `
|
|
3942
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema;
|
|
3943
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema` instead. */
|
|
2612
3944
|
export const outboundSchema =
|
|
2613
|
-
|
|
3945
|
+
DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema;
|
|
2614
3946
|
}
|
|
2615
3947
|
|
|
2616
3948
|
/** @internal */
|
|
2617
|
-
export const
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
});
|
|
3949
|
+
export const DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema:
|
|
3950
|
+
z.ZodType<
|
|
3951
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
3952
|
+
z.ZodTypeDef,
|
|
3953
|
+
unknown
|
|
3954
|
+
> = z.object({
|
|
3955
|
+
url: z.string(),
|
|
3956
|
+
detail: DeploymentCreateMetric2DeploymentsMetricsDetail$inboundSchema
|
|
3957
|
+
.optional(),
|
|
3958
|
+
});
|
|
2627
3959
|
|
|
2628
3960
|
/** @internal */
|
|
2629
|
-
export type
|
|
2630
|
-
type: string;
|
|
2631
|
-
role: string;
|
|
3961
|
+
export type DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound = {
|
|
2632
3962
|
url: string;
|
|
3963
|
+
detail?: string | undefined;
|
|
2633
3964
|
};
|
|
2634
3965
|
|
|
2635
3966
|
/** @internal */
|
|
2636
|
-
export const
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
});
|
|
3967
|
+
export const DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema:
|
|
3968
|
+
z.ZodType<
|
|
3969
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound,
|
|
3970
|
+
z.ZodTypeDef,
|
|
3971
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl
|
|
3972
|
+
> = z.object({
|
|
3973
|
+
url: z.string(),
|
|
3974
|
+
detail: DeploymentCreateMetric2DeploymentsMetricsDetail$outboundSchema
|
|
3975
|
+
.optional(),
|
|
3976
|
+
});
|
|
2646
3977
|
|
|
2647
3978
|
/**
|
|
2648
3979
|
* @internal
|
|
2649
3980
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2650
3981
|
*/
|
|
2651
|
-
export namespace
|
|
2652
|
-
/** @deprecated use `
|
|
2653
|
-
export const inboundSchema =
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
3982
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsImageUrl$ {
|
|
3983
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema` instead. */
|
|
3984
|
+
export const inboundSchema =
|
|
3985
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema;
|
|
3986
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema` instead. */
|
|
3987
|
+
export const outboundSchema =
|
|
3988
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema;
|
|
3989
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound` instead. */
|
|
3990
|
+
export type Outbound =
|
|
3991
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound;
|
|
2658
3992
|
}
|
|
2659
3993
|
|
|
2660
|
-
export function
|
|
2661
|
-
|
|
3994
|
+
export function deploymentCreateMetric2DeploymentsMetricsImageUrlToJSON(
|
|
3995
|
+
deploymentCreateMetric2DeploymentsMetricsImageUrl:
|
|
3996
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
3997
|
+
): string {
|
|
3998
|
+
return JSON.stringify(
|
|
3999
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema.parse(
|
|
4000
|
+
deploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
4001
|
+
),
|
|
4002
|
+
);
|
|
2662
4003
|
}
|
|
2663
4004
|
|
|
2664
|
-
export function
|
|
4005
|
+
export function deploymentCreateMetric2DeploymentsMetricsImageUrlFromJSON(
|
|
2665
4006
|
jsonString: string,
|
|
2666
|
-
): SafeParseResult<
|
|
4007
|
+
): SafeParseResult<
|
|
4008
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl,
|
|
4009
|
+
SDKValidationError
|
|
4010
|
+
> {
|
|
2667
4011
|
return safeParse(
|
|
2668
4012
|
jsonString,
|
|
2669
|
-
(x) =>
|
|
2670
|
-
|
|
4013
|
+
(x) =>
|
|
4014
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema.parse(
|
|
4015
|
+
JSON.parse(x),
|
|
4016
|
+
),
|
|
4017
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsImageUrl' from JSON`,
|
|
2671
4018
|
);
|
|
2672
4019
|
}
|
|
2673
4020
|
|
|
2674
4021
|
/** @internal */
|
|
2675
|
-
export const
|
|
2676
|
-
z.
|
|
2677
|
-
z.
|
|
4022
|
+
export const DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema:
|
|
4023
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics2, z.ZodTypeDef, unknown> =
|
|
4024
|
+
z.object({
|
|
4025
|
+
type:
|
|
4026
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema,
|
|
4027
|
+
image_url: z.lazy(() =>
|
|
4028
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$inboundSchema
|
|
4029
|
+
),
|
|
4030
|
+
}).transform((v) => {
|
|
4031
|
+
return remap$(v, {
|
|
4032
|
+
"image_url": "imageUrl",
|
|
4033
|
+
});
|
|
4034
|
+
});
|
|
4035
|
+
|
|
4036
|
+
/** @internal */
|
|
4037
|
+
export type DeploymentCreateMetric2DeploymentsMetrics2$Outbound = {
|
|
4038
|
+
type: string;
|
|
4039
|
+
image_url: DeploymentCreateMetric2DeploymentsMetricsImageUrl$Outbound;
|
|
4040
|
+
};
|
|
2678
4041
|
|
|
2679
4042
|
/** @internal */
|
|
2680
|
-
export const
|
|
2681
|
-
z.
|
|
2682
|
-
|
|
4043
|
+
export const DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema:
|
|
4044
|
+
z.ZodType<
|
|
4045
|
+
DeploymentCreateMetric2DeploymentsMetrics2$Outbound,
|
|
4046
|
+
z.ZodTypeDef,
|
|
4047
|
+
DeploymentCreateMetric2DeploymentsMetrics2
|
|
4048
|
+
> = z.object({
|
|
4049
|
+
type:
|
|
4050
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema,
|
|
4051
|
+
imageUrl: z.lazy(() =>
|
|
4052
|
+
DeploymentCreateMetric2DeploymentsMetricsImageUrl$outboundSchema
|
|
4053
|
+
),
|
|
4054
|
+
}).transform((v) => {
|
|
4055
|
+
return remap$(v, {
|
|
4056
|
+
imageUrl: "image_url",
|
|
4057
|
+
});
|
|
4058
|
+
});
|
|
2683
4059
|
|
|
2684
4060
|
/**
|
|
2685
4061
|
* @internal
|
|
2686
4062
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2687
4063
|
*/
|
|
2688
|
-
export namespace
|
|
2689
|
-
/** @deprecated use `
|
|
4064
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics2$ {
|
|
4065
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema` instead. */
|
|
2690
4066
|
export const inboundSchema =
|
|
2691
|
-
|
|
2692
|
-
/** @deprecated use `
|
|
4067
|
+
DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema;
|
|
4068
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema` instead. */
|
|
2693
4069
|
export const outboundSchema =
|
|
2694
|
-
|
|
4070
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema;
|
|
4071
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics2$Outbound` instead. */
|
|
4072
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics2$Outbound;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
export function deploymentCreateMetric2DeploymentsMetrics2ToJSON(
|
|
4076
|
+
deploymentCreateMetric2DeploymentsMetrics2:
|
|
4077
|
+
DeploymentCreateMetric2DeploymentsMetrics2,
|
|
4078
|
+
): string {
|
|
4079
|
+
return JSON.stringify(
|
|
4080
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema.parse(
|
|
4081
|
+
deploymentCreateMetric2DeploymentsMetrics2,
|
|
4082
|
+
),
|
|
4083
|
+
);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
export function deploymentCreateMetric2DeploymentsMetrics2FromJSON(
|
|
4087
|
+
jsonString: string,
|
|
4088
|
+
): SafeParseResult<
|
|
4089
|
+
DeploymentCreateMetric2DeploymentsMetrics2,
|
|
4090
|
+
SDKValidationError
|
|
4091
|
+
> {
|
|
4092
|
+
return safeParse(
|
|
4093
|
+
jsonString,
|
|
4094
|
+
(x) =>
|
|
4095
|
+
DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema.parse(
|
|
4096
|
+
JSON.parse(x),
|
|
4097
|
+
),
|
|
4098
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics2' from JSON`,
|
|
4099
|
+
);
|
|
2695
4100
|
}
|
|
2696
4101
|
|
|
2697
4102
|
/** @internal */
|
|
2698
|
-
export const
|
|
2699
|
-
|
|
2700
|
-
|
|
4103
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema:
|
|
4104
|
+
z.ZodNativeEnum<
|
|
4105
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
4106
|
+
> = z.nativeEnum(
|
|
4107
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType,
|
|
4108
|
+
);
|
|
2701
4109
|
|
|
2702
4110
|
/** @internal */
|
|
2703
|
-
export const
|
|
2704
|
-
|
|
2705
|
-
|
|
4111
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema:
|
|
4112
|
+
z.ZodNativeEnum<
|
|
4113
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType
|
|
4114
|
+
> =
|
|
4115
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
2706
4116
|
|
|
2707
4117
|
/**
|
|
2708
4118
|
* @internal
|
|
2709
4119
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2710
4120
|
*/
|
|
2711
|
-
export namespace
|
|
2712
|
-
/** @deprecated use `
|
|
2713
|
-
export const inboundSchema =
|
|
2714
|
-
|
|
4121
|
+
export namespace DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$ {
|
|
4122
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema` instead. */
|
|
4123
|
+
export const inboundSchema =
|
|
4124
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
4125
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema` instead. */
|
|
2715
4126
|
export const outboundSchema =
|
|
2716
|
-
|
|
4127
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema;
|
|
2717
4128
|
}
|
|
2718
4129
|
|
|
2719
4130
|
/** @internal */
|
|
2720
|
-
export const
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
content: z.nullable(z.string()),
|
|
2728
|
-
});
|
|
4131
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema:
|
|
4132
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics1, z.ZodTypeDef, unknown> =
|
|
4133
|
+
z.object({
|
|
4134
|
+
type:
|
|
4135
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema,
|
|
4136
|
+
text: z.string(),
|
|
4137
|
+
});
|
|
2729
4138
|
|
|
2730
4139
|
/** @internal */
|
|
2731
|
-
export type
|
|
4140
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1$Outbound = {
|
|
2732
4141
|
type: string;
|
|
2733
|
-
|
|
2734
|
-
content: string | null;
|
|
4142
|
+
text: string;
|
|
2735
4143
|
};
|
|
2736
4144
|
|
|
2737
4145
|
/** @internal */
|
|
2738
|
-
export const
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
4146
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema:
|
|
4147
|
+
z.ZodType<
|
|
4148
|
+
DeploymentCreateMetric2DeploymentsMetrics1$Outbound,
|
|
4149
|
+
z.ZodTypeDef,
|
|
4150
|
+
DeploymentCreateMetric2DeploymentsMetrics1
|
|
4151
|
+
> = z.object({
|
|
4152
|
+
type:
|
|
4153
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema,
|
|
4154
|
+
text: z.string(),
|
|
4155
|
+
});
|
|
2747
4156
|
|
|
2748
4157
|
/**
|
|
2749
4158
|
* @internal
|
|
2750
4159
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2751
4160
|
*/
|
|
2752
|
-
export namespace
|
|
2753
|
-
/** @deprecated use `
|
|
2754
|
-
export const inboundSchema =
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
4161
|
+
export namespace DeploymentCreateMetric2DeploymentsMetrics1$ {
|
|
4162
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema` instead. */
|
|
4163
|
+
export const inboundSchema =
|
|
4164
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema;
|
|
4165
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema` instead. */
|
|
4166
|
+
export const outboundSchema =
|
|
4167
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema;
|
|
4168
|
+
/** @deprecated use `DeploymentCreateMetric2DeploymentsMetrics1$Outbound` instead. */
|
|
4169
|
+
export type Outbound = DeploymentCreateMetric2DeploymentsMetrics1$Outbound;
|
|
2759
4170
|
}
|
|
2760
4171
|
|
|
2761
|
-
export function
|
|
2762
|
-
|
|
4172
|
+
export function deploymentCreateMetric2DeploymentsMetrics1ToJSON(
|
|
4173
|
+
deploymentCreateMetric2DeploymentsMetrics1:
|
|
4174
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
4175
|
+
): string {
|
|
4176
|
+
return JSON.stringify(
|
|
4177
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema.parse(
|
|
4178
|
+
deploymentCreateMetric2DeploymentsMetrics1,
|
|
4179
|
+
),
|
|
4180
|
+
);
|
|
2763
4181
|
}
|
|
2764
4182
|
|
|
2765
|
-
export function
|
|
4183
|
+
export function deploymentCreateMetric2DeploymentsMetrics1FromJSON(
|
|
2766
4184
|
jsonString: string,
|
|
2767
|
-
): SafeParseResult<
|
|
4185
|
+
): SafeParseResult<
|
|
4186
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
4187
|
+
SDKValidationError
|
|
4188
|
+
> {
|
|
2768
4189
|
return safeParse(
|
|
2769
4190
|
jsonString,
|
|
2770
|
-
(x) =>
|
|
2771
|
-
|
|
4191
|
+
(x) =>
|
|
4192
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema.parse(
|
|
4193
|
+
JSON.parse(x),
|
|
4194
|
+
),
|
|
4195
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`,
|
|
2772
4196
|
);
|
|
2773
4197
|
}
|
|
2774
4198
|
|
|
2775
4199
|
/** @internal */
|
|
2776
|
-
export const
|
|
2777
|
-
.
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
*/
|
|
2787
|
-
export namespace MessageType$ {
|
|
2788
|
-
/** @deprecated use `MessageType$inboundSchema` instead. */
|
|
2789
|
-
export const inboundSchema = MessageType$inboundSchema;
|
|
2790
|
-
/** @deprecated use `MessageType$outboundSchema` instead. */
|
|
2791
|
-
export const outboundSchema = MessageType$outboundSchema;
|
|
2792
|
-
}
|
|
4200
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema:
|
|
4201
|
+
z.ZodType<
|
|
4202
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4203
|
+
z.ZodTypeDef,
|
|
4204
|
+
unknown
|
|
4205
|
+
> = z.union([
|
|
4206
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4207
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4208
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4209
|
+
]);
|
|
2793
4210
|
|
|
2794
4211
|
/** @internal */
|
|
2795
|
-
export
|
|
2796
|
-
|
|
4212
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound =
|
|
4213
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4214
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4215
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound;
|
|
2797
4216
|
|
|
2798
4217
|
/** @internal */
|
|
2799
|
-
export const
|
|
2800
|
-
|
|
4218
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema:
|
|
4219
|
+
z.ZodType<
|
|
4220
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound,
|
|
4221
|
+
z.ZodTypeDef,
|
|
4222
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2
|
|
4223
|
+
> = z.union([
|
|
4224
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4225
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
4226
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4227
|
+
]);
|
|
2801
4228
|
|
|
2802
4229
|
/**
|
|
2803
4230
|
* @internal
|
|
2804
4231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2805
4232
|
*/
|
|
2806
|
-
export namespace
|
|
2807
|
-
/** @deprecated use `
|
|
2808
|
-
export const inboundSchema =
|
|
2809
|
-
|
|
2810
|
-
|
|
4233
|
+
export namespace DeploymentCreateMetricContentDeploymentsMetricsRequest2$ {
|
|
4234
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema` instead. */
|
|
4235
|
+
export const inboundSchema =
|
|
4236
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema;
|
|
4237
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema` instead. */
|
|
4238
|
+
export const outboundSchema =
|
|
4239
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema;
|
|
4240
|
+
/** @deprecated use `DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound` instead. */
|
|
4241
|
+
export type Outbound =
|
|
4242
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound;
|
|
2811
4243
|
}
|
|
2812
4244
|
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
4245
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON(
|
|
4246
|
+
deploymentCreateMetricContentDeploymentsMetricsRequest2:
|
|
4247
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4248
|
+
): string {
|
|
4249
|
+
return JSON.stringify(
|
|
4250
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema
|
|
4251
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsRequest2),
|
|
4252
|
+
);
|
|
4253
|
+
}
|
|
2822
4254
|
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
4255
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON(
|
|
4256
|
+
jsonString: string,
|
|
4257
|
+
): SafeParseResult<
|
|
4258
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
4259
|
+
SDKValidationError
|
|
4260
|
+
> {
|
|
4261
|
+
return safeParse(
|
|
4262
|
+
jsonString,
|
|
4263
|
+
(x) =>
|
|
4264
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema
|
|
4265
|
+
.parse(JSON.parse(x)),
|
|
4266
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequest2' from JSON`,
|
|
4267
|
+
);
|
|
2833
4268
|
}
|
|
2834
4269
|
|
|
2835
4270
|
/** @internal */
|
|
2836
|
-
export const
|
|
2837
|
-
|
|
4271
|
+
export const ChoicesContent$inboundSchema: z.ZodType<
|
|
4272
|
+
ChoicesContent,
|
|
2838
4273
|
z.ZodTypeDef,
|
|
2839
4274
|
unknown
|
|
2840
|
-
> = z.
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
4275
|
+
> = z.union([
|
|
4276
|
+
z.string(),
|
|
4277
|
+
z.array(z.union([
|
|
4278
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4279
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4280
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4281
|
+
])),
|
|
4282
|
+
]);
|
|
2844
4283
|
|
|
2845
4284
|
/** @internal */
|
|
2846
|
-
export type
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
4285
|
+
export type ChoicesContent$Outbound =
|
|
4286
|
+
| string
|
|
4287
|
+
| Array<
|
|
4288
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4289
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4290
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound
|
|
4291
|
+
>;
|
|
2850
4292
|
|
|
2851
4293
|
/** @internal */
|
|
2852
|
-
export const
|
|
2853
|
-
|
|
4294
|
+
export const ChoicesContent$outboundSchema: z.ZodType<
|
|
4295
|
+
ChoicesContent$Outbound,
|
|
2854
4296
|
z.ZodTypeDef,
|
|
2855
|
-
|
|
2856
|
-
> = z.
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
4297
|
+
ChoicesContent
|
|
4298
|
+
> = z.union([
|
|
4299
|
+
z.string(),
|
|
4300
|
+
z.array(z.union([
|
|
4301
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4302
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema),
|
|
4303
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4304
|
+
])),
|
|
4305
|
+
]);
|
|
2860
4306
|
|
|
2861
4307
|
/**
|
|
2862
4308
|
* @internal
|
|
2863
4309
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2864
4310
|
*/
|
|
2865
|
-
export namespace
|
|
2866
|
-
/** @deprecated use `
|
|
2867
|
-
export const inboundSchema =
|
|
2868
|
-
/** @deprecated use `
|
|
2869
|
-
export const outboundSchema =
|
|
2870
|
-
/** @deprecated use `
|
|
2871
|
-
export type Outbound =
|
|
4311
|
+
export namespace ChoicesContent$ {
|
|
4312
|
+
/** @deprecated use `ChoicesContent$inboundSchema` instead. */
|
|
4313
|
+
export const inboundSchema = ChoicesContent$inboundSchema;
|
|
4314
|
+
/** @deprecated use `ChoicesContent$outboundSchema` instead. */
|
|
4315
|
+
export const outboundSchema = ChoicesContent$outboundSchema;
|
|
4316
|
+
/** @deprecated use `ChoicesContent$Outbound` instead. */
|
|
4317
|
+
export type Outbound = ChoicesContent$Outbound;
|
|
2872
4318
|
}
|
|
2873
4319
|
|
|
2874
|
-
export function
|
|
2875
|
-
|
|
2876
|
-
): string {
|
|
2877
|
-
return JSON.stringify(MessageFunction$outboundSchema.parse(messageFunction));
|
|
4320
|
+
export function choicesContentToJSON(choicesContent: ChoicesContent): string {
|
|
4321
|
+
return JSON.stringify(ChoicesContent$outboundSchema.parse(choicesContent));
|
|
2878
4322
|
}
|
|
2879
4323
|
|
|
2880
|
-
export function
|
|
4324
|
+
export function choicesContentFromJSON(
|
|
2881
4325
|
jsonString: string,
|
|
2882
|
-
): SafeParseResult<
|
|
4326
|
+
): SafeParseResult<ChoicesContent, SDKValidationError> {
|
|
2883
4327
|
return safeParse(
|
|
2884
4328
|
jsonString,
|
|
2885
|
-
(x) =>
|
|
2886
|
-
`Failed to parse '
|
|
4329
|
+
(x) => ChoicesContent$inboundSchema.parse(JSON.parse(x)),
|
|
4330
|
+
`Failed to parse 'ChoicesContent' from JSON`,
|
|
2887
4331
|
);
|
|
2888
4332
|
}
|
|
2889
4333
|
|
|
2890
4334
|
/** @internal */
|
|
2891
|
-
export const
|
|
2892
|
-
|
|
4335
|
+
export const ChoicesUserMessage$inboundSchema: z.ZodType<
|
|
4336
|
+
ChoicesUserMessage,
|
|
2893
4337
|
z.ZodTypeDef,
|
|
2894
4338
|
unknown
|
|
2895
4339
|
> = z.object({
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
4340
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole$inboundSchema,
|
|
4341
|
+
name: z.string().optional(),
|
|
4342
|
+
content: z.union([
|
|
4343
|
+
z.string(),
|
|
4344
|
+
z.array(z.union([
|
|
4345
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
4346
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics2$inboundSchema),
|
|
4347
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$inboundSchema),
|
|
4348
|
+
])),
|
|
4349
|
+
]),
|
|
2900
4350
|
});
|
|
2901
4351
|
|
|
2902
4352
|
/** @internal */
|
|
2903
|
-
export type
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
4353
|
+
export type ChoicesUserMessage$Outbound = {
|
|
4354
|
+
role: string;
|
|
4355
|
+
name?: string | undefined;
|
|
4356
|
+
content:
|
|
4357
|
+
| string
|
|
4358
|
+
| Array<
|
|
4359
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
4360
|
+
| DeploymentCreateMetric2DeploymentsMetrics2$Outbound
|
|
4361
|
+
| DeploymentCreateMetric2DeploymentsMetrics3$Outbound
|
|
4362
|
+
>;
|
|
2908
4363
|
};
|
|
2909
4364
|
|
|
2910
4365
|
/** @internal */
|
|
2911
|
-
export const
|
|
2912
|
-
|
|
4366
|
+
export const ChoicesUserMessage$outboundSchema: z.ZodType<
|
|
4367
|
+
ChoicesUserMessage$Outbound,
|
|
2913
4368
|
z.ZodTypeDef,
|
|
2914
|
-
|
|
4369
|
+
ChoicesUserMessage
|
|
2915
4370
|
> = z.object({
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
4371
|
+
role: DeploymentCreateMetricChoicesDeploymentsMetricsRole$outboundSchema,
|
|
4372
|
+
name: z.string().optional(),
|
|
4373
|
+
content: z.union([
|
|
4374
|
+
z.string(),
|
|
4375
|
+
z.array(z.union([
|
|
4376
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
4377
|
+
z.lazy(() =>
|
|
4378
|
+
DeploymentCreateMetric2DeploymentsMetrics2$outboundSchema
|
|
4379
|
+
),
|
|
4380
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics3$outboundSchema),
|
|
4381
|
+
])),
|
|
4382
|
+
]),
|
|
2920
4383
|
});
|
|
2921
4384
|
|
|
2922
4385
|
/**
|
|
2923
4386
|
* @internal
|
|
2924
4387
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2925
4388
|
*/
|
|
2926
|
-
export namespace
|
|
2927
|
-
/** @deprecated use `
|
|
2928
|
-
export const inboundSchema =
|
|
2929
|
-
/** @deprecated use `
|
|
2930
|
-
export const outboundSchema =
|
|
2931
|
-
/** @deprecated use `
|
|
2932
|
-
export type Outbound =
|
|
4389
|
+
export namespace ChoicesUserMessage$ {
|
|
4390
|
+
/** @deprecated use `ChoicesUserMessage$inboundSchema` instead. */
|
|
4391
|
+
export const inboundSchema = ChoicesUserMessage$inboundSchema;
|
|
4392
|
+
/** @deprecated use `ChoicesUserMessage$outboundSchema` instead. */
|
|
4393
|
+
export const outboundSchema = ChoicesUserMessage$outboundSchema;
|
|
4394
|
+
/** @deprecated use `ChoicesUserMessage$Outbound` instead. */
|
|
4395
|
+
export type Outbound = ChoicesUserMessage$Outbound;
|
|
2933
4396
|
}
|
|
2934
4397
|
|
|
2935
|
-
export function
|
|
2936
|
-
|
|
4398
|
+
export function choicesUserMessageToJSON(
|
|
4399
|
+
choicesUserMessage: ChoicesUserMessage,
|
|
2937
4400
|
): string {
|
|
2938
4401
|
return JSON.stringify(
|
|
2939
|
-
|
|
4402
|
+
ChoicesUserMessage$outboundSchema.parse(choicesUserMessage),
|
|
2940
4403
|
);
|
|
2941
4404
|
}
|
|
2942
4405
|
|
|
2943
|
-
export function
|
|
4406
|
+
export function choicesUserMessageFromJSON(
|
|
2944
4407
|
jsonString: string,
|
|
2945
|
-
): SafeParseResult<
|
|
4408
|
+
): SafeParseResult<ChoicesUserMessage, SDKValidationError> {
|
|
2946
4409
|
return safeParse(
|
|
2947
4410
|
jsonString,
|
|
2948
|
-
(x) =>
|
|
2949
|
-
`Failed to parse '
|
|
4411
|
+
(x) => ChoicesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4412
|
+
`Failed to parse 'ChoicesUserMessage' from JSON`,
|
|
2950
4413
|
);
|
|
2951
4414
|
}
|
|
2952
4415
|
|
|
2953
4416
|
/** @internal */
|
|
2954
|
-
export const
|
|
2955
|
-
|
|
4417
|
+
export const DeploymentCreateMetricChoicesRole$inboundSchema: z.ZodNativeEnum<
|
|
4418
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
4419
|
+
> = z.nativeEnum(DeploymentCreateMetricChoicesRole);
|
|
4420
|
+
|
|
4421
|
+
/** @internal */
|
|
4422
|
+
export const DeploymentCreateMetricChoicesRole$outboundSchema: z.ZodNativeEnum<
|
|
4423
|
+
typeof DeploymentCreateMetricChoicesRole
|
|
4424
|
+
> = DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
4425
|
+
|
|
4426
|
+
/**
|
|
4427
|
+
* @internal
|
|
4428
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4429
|
+
*/
|
|
4430
|
+
export namespace DeploymentCreateMetricChoicesRole$ {
|
|
4431
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$inboundSchema` instead. */
|
|
4432
|
+
export const inboundSchema = DeploymentCreateMetricChoicesRole$inboundSchema;
|
|
4433
|
+
/** @deprecated use `DeploymentCreateMetricChoicesRole$outboundSchema` instead. */
|
|
4434
|
+
export const outboundSchema =
|
|
4435
|
+
DeploymentCreateMetricChoicesRole$outboundSchema;
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4438
|
+
/** @internal */
|
|
4439
|
+
export const ChoicesSystemMessage$inboundSchema: z.ZodType<
|
|
4440
|
+
ChoicesSystemMessage,
|
|
2956
4441
|
z.ZodTypeDef,
|
|
2957
4442
|
unknown
|
|
2958
4443
|
> = z.object({
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
tool_calls: z.array(z.lazy(() => MessageToolCalls$inboundSchema)),
|
|
2963
|
-
}).transform((v) => {
|
|
2964
|
-
return remap$(v, {
|
|
2965
|
-
"tool_calls": "toolCalls",
|
|
2966
|
-
});
|
|
4444
|
+
role: DeploymentCreateMetricChoicesRole$inboundSchema,
|
|
4445
|
+
content: z.string(),
|
|
4446
|
+
name: z.string().optional(),
|
|
2967
4447
|
});
|
|
2968
4448
|
|
|
2969
4449
|
/** @internal */
|
|
2970
|
-
export type
|
|
2971
|
-
type: string;
|
|
4450
|
+
export type ChoicesSystemMessage$Outbound = {
|
|
2972
4451
|
role: string;
|
|
2973
|
-
content
|
|
2974
|
-
|
|
4452
|
+
content: string;
|
|
4453
|
+
name?: string | undefined;
|
|
2975
4454
|
};
|
|
2976
4455
|
|
|
2977
4456
|
/** @internal */
|
|
2978
|
-
export const
|
|
2979
|
-
|
|
4457
|
+
export const ChoicesSystemMessage$outboundSchema: z.ZodType<
|
|
4458
|
+
ChoicesSystemMessage$Outbound,
|
|
2980
4459
|
z.ZodTypeDef,
|
|
2981
|
-
|
|
4460
|
+
ChoicesSystemMessage
|
|
2982
4461
|
> = z.object({
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
toolCalls: z.array(z.lazy(() => MessageToolCalls$outboundSchema)),
|
|
2987
|
-
}).transform((v) => {
|
|
2988
|
-
return remap$(v, {
|
|
2989
|
-
toolCalls: "tool_calls",
|
|
2990
|
-
});
|
|
4462
|
+
role: DeploymentCreateMetricChoicesRole$outboundSchema,
|
|
4463
|
+
content: z.string(),
|
|
4464
|
+
name: z.string().optional(),
|
|
2991
4465
|
});
|
|
2992
4466
|
|
|
2993
4467
|
/**
|
|
2994
4468
|
* @internal
|
|
2995
4469
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2996
4470
|
*/
|
|
2997
|
-
export namespace
|
|
2998
|
-
/** @deprecated use `
|
|
2999
|
-
export const inboundSchema =
|
|
3000
|
-
/** @deprecated use `
|
|
3001
|
-
export const outboundSchema =
|
|
3002
|
-
/** @deprecated use `
|
|
3003
|
-
export type Outbound =
|
|
4471
|
+
export namespace ChoicesSystemMessage$ {
|
|
4472
|
+
/** @deprecated use `ChoicesSystemMessage$inboundSchema` instead. */
|
|
4473
|
+
export const inboundSchema = ChoicesSystemMessage$inboundSchema;
|
|
4474
|
+
/** @deprecated use `ChoicesSystemMessage$outboundSchema` instead. */
|
|
4475
|
+
export const outboundSchema = ChoicesSystemMessage$outboundSchema;
|
|
4476
|
+
/** @deprecated use `ChoicesSystemMessage$Outbound` instead. */
|
|
4477
|
+
export type Outbound = ChoicesSystemMessage$Outbound;
|
|
3004
4478
|
}
|
|
3005
4479
|
|
|
3006
|
-
export function
|
|
3007
|
-
|
|
4480
|
+
export function choicesSystemMessageToJSON(
|
|
4481
|
+
choicesSystemMessage: ChoicesSystemMessage,
|
|
4482
|
+
): string {
|
|
4483
|
+
return JSON.stringify(
|
|
4484
|
+
ChoicesSystemMessage$outboundSchema.parse(choicesSystemMessage),
|
|
4485
|
+
);
|
|
3008
4486
|
}
|
|
3009
4487
|
|
|
3010
|
-
export function
|
|
4488
|
+
export function choicesSystemMessageFromJSON(
|
|
3011
4489
|
jsonString: string,
|
|
3012
|
-
): SafeParseResult<
|
|
4490
|
+
): SafeParseResult<ChoicesSystemMessage, SDKValidationError> {
|
|
3013
4491
|
return safeParse(
|
|
3014
4492
|
jsonString,
|
|
3015
|
-
(x) =>
|
|
3016
|
-
`Failed to parse '
|
|
4493
|
+
(x) => ChoicesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4494
|
+
`Failed to parse 'ChoicesSystemMessage' from JSON`,
|
|
3017
4495
|
);
|
|
3018
4496
|
}
|
|
3019
4497
|
|
|
3020
4498
|
/** @internal */
|
|
3021
|
-
export const
|
|
3022
|
-
|
|
3023
|
-
z.lazy(() => Message2$inboundSchema),
|
|
3024
|
-
z.lazy(() => Message3$inboundSchema),
|
|
3025
|
-
z.lazy(() => Message1$inboundSchema),
|
|
3026
|
-
]);
|
|
4499
|
+
export const ChoicesRole$inboundSchema: z.ZodNativeEnum<typeof ChoicesRole> = z
|
|
4500
|
+
.nativeEnum(ChoicesRole);
|
|
3027
4501
|
|
|
3028
4502
|
/** @internal */
|
|
3029
|
-
export
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
4503
|
+
export const ChoicesRole$outboundSchema: z.ZodNativeEnum<typeof ChoicesRole> =
|
|
4504
|
+
ChoicesRole$inboundSchema;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* @internal
|
|
4508
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4509
|
+
*/
|
|
4510
|
+
export namespace ChoicesRole$ {
|
|
4511
|
+
/** @deprecated use `ChoicesRole$inboundSchema` instead. */
|
|
4512
|
+
export const inboundSchema = ChoicesRole$inboundSchema;
|
|
4513
|
+
/** @deprecated use `ChoicesRole$outboundSchema` instead. */
|
|
4514
|
+
export const outboundSchema = ChoicesRole$outboundSchema;
|
|
4515
|
+
}
|
|
3033
4516
|
|
|
3034
4517
|
/** @internal */
|
|
3035
|
-
export const
|
|
3036
|
-
|
|
4518
|
+
export const ChoicesDeveloperMessage$inboundSchema: z.ZodType<
|
|
4519
|
+
ChoicesDeveloperMessage,
|
|
3037
4520
|
z.ZodTypeDef,
|
|
3038
|
-
|
|
3039
|
-
> = z.
|
|
3040
|
-
|
|
3041
|
-
z.
|
|
3042
|
-
z.
|
|
3043
|
-
|
|
4521
|
+
unknown
|
|
4522
|
+
> = z.object({
|
|
4523
|
+
role: ChoicesRole$inboundSchema,
|
|
4524
|
+
content: z.string(),
|
|
4525
|
+
name: z.string().optional(),
|
|
4526
|
+
});
|
|
4527
|
+
|
|
4528
|
+
/** @internal */
|
|
4529
|
+
export type ChoicesDeveloperMessage$Outbound = {
|
|
4530
|
+
role: string;
|
|
4531
|
+
content: string;
|
|
4532
|
+
name?: string | undefined;
|
|
4533
|
+
};
|
|
4534
|
+
|
|
4535
|
+
/** @internal */
|
|
4536
|
+
export const ChoicesDeveloperMessage$outboundSchema: z.ZodType<
|
|
4537
|
+
ChoicesDeveloperMessage$Outbound,
|
|
4538
|
+
z.ZodTypeDef,
|
|
4539
|
+
ChoicesDeveloperMessage
|
|
4540
|
+
> = z.object({
|
|
4541
|
+
role: ChoicesRole$outboundSchema,
|
|
4542
|
+
content: z.string(),
|
|
4543
|
+
name: z.string().optional(),
|
|
4544
|
+
});
|
|
3044
4545
|
|
|
3045
4546
|
/**
|
|
3046
4547
|
* @internal
|
|
3047
4548
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3048
4549
|
*/
|
|
3049
|
-
export namespace
|
|
3050
|
-
/** @deprecated use `
|
|
3051
|
-
export const inboundSchema =
|
|
3052
|
-
/** @deprecated use `
|
|
3053
|
-
export const outboundSchema =
|
|
3054
|
-
/** @deprecated use `
|
|
3055
|
-
export type Outbound =
|
|
4550
|
+
export namespace ChoicesDeveloperMessage$ {
|
|
4551
|
+
/** @deprecated use `ChoicesDeveloperMessage$inboundSchema` instead. */
|
|
4552
|
+
export const inboundSchema = ChoicesDeveloperMessage$inboundSchema;
|
|
4553
|
+
/** @deprecated use `ChoicesDeveloperMessage$outboundSchema` instead. */
|
|
4554
|
+
export const outboundSchema = ChoicesDeveloperMessage$outboundSchema;
|
|
4555
|
+
/** @deprecated use `ChoicesDeveloperMessage$Outbound` instead. */
|
|
4556
|
+
export type Outbound = ChoicesDeveloperMessage$Outbound;
|
|
3056
4557
|
}
|
|
3057
4558
|
|
|
3058
|
-
export function
|
|
3059
|
-
|
|
4559
|
+
export function choicesDeveloperMessageToJSON(
|
|
4560
|
+
choicesDeveloperMessage: ChoicesDeveloperMessage,
|
|
4561
|
+
): string {
|
|
4562
|
+
return JSON.stringify(
|
|
4563
|
+
ChoicesDeveloperMessage$outboundSchema.parse(choicesDeveloperMessage),
|
|
4564
|
+
);
|
|
3060
4565
|
}
|
|
3061
4566
|
|
|
3062
|
-
export function
|
|
4567
|
+
export function choicesDeveloperMessageFromJSON(
|
|
3063
4568
|
jsonString: string,
|
|
3064
|
-
): SafeParseResult<
|
|
4569
|
+
): SafeParseResult<ChoicesDeveloperMessage, SDKValidationError> {
|
|
3065
4570
|
return safeParse(
|
|
3066
4571
|
jsonString,
|
|
3067
|
-
(x) =>
|
|
3068
|
-
`Failed to parse '
|
|
4572
|
+
(x) => ChoicesDeveloperMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4573
|
+
`Failed to parse 'ChoicesDeveloperMessage' from JSON`,
|
|
3069
4574
|
);
|
|
3070
4575
|
}
|
|
3071
4576
|
|
|
3072
4577
|
/** @internal */
|
|
3073
4578
|
export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
|
|
3074
|
-
z.
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
finish_reason: z.nullable(z.string()).optional(),
|
|
3082
|
-
}).transform((v) => {
|
|
3083
|
-
return remap$(v, {
|
|
3084
|
-
"finish_reason": "finishReason",
|
|
3085
|
-
});
|
|
3086
|
-
});
|
|
4579
|
+
z.union([
|
|
4580
|
+
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
4581
|
+
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
4582
|
+
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
4583
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
4584
|
+
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
4585
|
+
]);
|
|
3087
4586
|
|
|
3088
4587
|
/** @internal */
|
|
3089
|
-
export type Choices$Outbound =
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
4588
|
+
export type Choices$Outbound =
|
|
4589
|
+
| ChoicesDeveloperMessage$Outbound
|
|
4590
|
+
| ChoicesSystemMessage$Outbound
|
|
4591
|
+
| ChoicesUserMessage$Outbound
|
|
4592
|
+
| ChoicesToolMessage$Outbound
|
|
4593
|
+
| ChoicesAssistantMessage$Outbound;
|
|
3094
4594
|
|
|
3095
4595
|
/** @internal */
|
|
3096
4596
|
export const Choices$outboundSchema: z.ZodType<
|
|
3097
4597
|
Choices$Outbound,
|
|
3098
4598
|
z.ZodTypeDef,
|
|
3099
4599
|
Choices
|
|
3100
|
-
> = z.
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
finishReason: z.nullable(z.string()).optional(),
|
|
3108
|
-
}).transform((v) => {
|
|
3109
|
-
return remap$(v, {
|
|
3110
|
-
finishReason: "finish_reason",
|
|
3111
|
-
});
|
|
3112
|
-
});
|
|
4600
|
+
> = z.union([
|
|
4601
|
+
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
4602
|
+
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
4603
|
+
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
4604
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
4605
|
+
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
4606
|
+
]);
|
|
3113
4607
|
|
|
3114
4608
|
/**
|
|
3115
4609
|
* @internal
|
|
@@ -3210,7 +4704,15 @@ export const DeploymentCreateMetricRequestBody$inboundSchema: z.ZodType<
|
|
|
3210
4704
|
),
|
|
3211
4705
|
]),
|
|
3212
4706
|
).optional(),
|
|
3213
|
-
choices: z.array(
|
|
4707
|
+
choices: z.array(
|
|
4708
|
+
z.union([
|
|
4709
|
+
z.lazy(() => ChoicesDeveloperMessage$inboundSchema),
|
|
4710
|
+
z.lazy(() => ChoicesSystemMessage$inboundSchema),
|
|
4711
|
+
z.lazy(() => ChoicesUserMessage$inboundSchema),
|
|
4712
|
+
z.lazy(() => ChoicesToolMessage$inboundSchema),
|
|
4713
|
+
z.lazy(() => ChoicesAssistantMessage$inboundSchema),
|
|
4714
|
+
]),
|
|
4715
|
+
).optional(),
|
|
3214
4716
|
feedback: z.lazy(() => Feedback$inboundSchema).optional(),
|
|
3215
4717
|
});
|
|
3216
4718
|
|
|
@@ -3228,7 +4730,15 @@ export type DeploymentCreateMetricRequestBody$Outbound = {
|
|
|
3228
4730
|
| DeploymentCreateMetricMessagesAssistantMessage$Outbound
|
|
3229
4731
|
>
|
|
3230
4732
|
| undefined;
|
|
3231
|
-
choices?:
|
|
4733
|
+
choices?:
|
|
4734
|
+
| Array<
|
|
4735
|
+
| ChoicesDeveloperMessage$Outbound
|
|
4736
|
+
| ChoicesSystemMessage$Outbound
|
|
4737
|
+
| ChoicesUserMessage$Outbound
|
|
4738
|
+
| ChoicesToolMessage$Outbound
|
|
4739
|
+
| ChoicesAssistantMessage$Outbound
|
|
4740
|
+
>
|
|
4741
|
+
| undefined;
|
|
3232
4742
|
feedback?: Feedback$Outbound | undefined;
|
|
3233
4743
|
};
|
|
3234
4744
|
|
|
@@ -3254,7 +4764,15 @@ export const DeploymentCreateMetricRequestBody$outboundSchema: z.ZodType<
|
|
|
3254
4764
|
),
|
|
3255
4765
|
]),
|
|
3256
4766
|
).optional(),
|
|
3257
|
-
choices: z.array(
|
|
4767
|
+
choices: z.array(
|
|
4768
|
+
z.union([
|
|
4769
|
+
z.lazy(() => ChoicesDeveloperMessage$outboundSchema),
|
|
4770
|
+
z.lazy(() => ChoicesSystemMessage$outboundSchema),
|
|
4771
|
+
z.lazy(() => ChoicesUserMessage$outboundSchema),
|
|
4772
|
+
z.lazy(() => ChoicesToolMessage$outboundSchema),
|
|
4773
|
+
z.lazy(() => ChoicesAssistantMessage$outboundSchema),
|
|
4774
|
+
]),
|
|
4775
|
+
).optional(),
|
|
3258
4776
|
feedback: z.lazy(() => Feedback$outboundSchema).optional(),
|
|
3259
4777
|
});
|
|
3260
4778
|
|