@orq-ai/node 3.10.16 → 3.10.17
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 +608 -378
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +163 -69
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +196 -96
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +82 -35
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +106 -57
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +82 -35
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +99 -49
- package/models/operations/deployments.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/getallprompts.d.ts +81 -34
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +99 -49
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +81 -34
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +99 -49
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +81 -34
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +100 -50
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +81 -34
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +99 -50
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +162 -68
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +197 -97
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +46 -63
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/datasets.ts +1 -1
- package/packages/orq-rc/src/sdk/knowledge.ts +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/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +347 -141
- package/src/models/operations/deploymentgetconfig.ts +173 -72
- package/src/models/operations/deployments.ts +168 -72
- 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/getallprompts.ts +169 -71
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +169 -71
- package/src/models/operations/getpromptversion.ts +168 -70
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +170 -71
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +347 -141
|
@@ -55,22 +55,22 @@ export const GetPromptVersionFormat = {
|
|
|
55
55
|
*/
|
|
56
56
|
export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
|
|
57
57
|
|
|
58
|
-
export const
|
|
58
|
+
export const GetPromptVersionResponseFormatPromptsResponseType = {
|
|
59
59
|
JsonObject: "json_object",
|
|
60
60
|
} as const;
|
|
61
|
-
export type
|
|
62
|
-
typeof
|
|
61
|
+
export type GetPromptVersionResponseFormatPromptsResponseType = ClosedEnum<
|
|
62
|
+
typeof GetPromptVersionResponseFormatPromptsResponseType
|
|
63
63
|
>;
|
|
64
64
|
|
|
65
|
-
export type
|
|
66
|
-
type:
|
|
65
|
+
export type GetPromptVersionResponseFormat3 = {
|
|
66
|
+
type: GetPromptVersionResponseFormatPromptsResponseType;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export const
|
|
69
|
+
export const GetPromptVersionResponseFormatPromptsType = {
|
|
70
70
|
JsonSchema: "json_schema",
|
|
71
71
|
} as const;
|
|
72
|
-
export type
|
|
73
|
-
typeof
|
|
72
|
+
export type GetPromptVersionResponseFormatPromptsType = ClosedEnum<
|
|
73
|
+
typeof GetPromptVersionResponseFormatPromptsType
|
|
74
74
|
>;
|
|
75
75
|
|
|
76
76
|
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
@@ -79,9 +79,20 @@ export type GetPromptVersionResponseFormatJsonSchema = {
|
|
|
79
79
|
schema: { [k: string]: any };
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
export type GetPromptVersionResponseFormat2 = {
|
|
83
|
+
type: GetPromptVersionResponseFormatPromptsType;
|
|
84
|
+
jsonSchema: GetPromptVersionResponseFormatJsonSchema;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const GetPromptVersionResponseFormatType = {
|
|
88
|
+
Text: "text",
|
|
89
|
+
} as const;
|
|
90
|
+
export type GetPromptVersionResponseFormatType = ClosedEnum<
|
|
91
|
+
typeof GetPromptVersionResponseFormatType
|
|
92
|
+
>;
|
|
93
|
+
|
|
82
94
|
export type GetPromptVersionResponseFormat1 = {
|
|
83
95
|
type: GetPromptVersionResponseFormatType;
|
|
84
|
-
jsonSchema: GetPromptVersionResponseFormatJsonSchema;
|
|
85
96
|
};
|
|
86
97
|
|
|
87
98
|
/**
|
|
@@ -96,8 +107,9 @@ export type GetPromptVersionResponseFormat1 = {
|
|
|
96
107
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
97
108
|
*/
|
|
98
109
|
export type GetPromptVersionResponseFormat =
|
|
110
|
+
| GetPromptVersionResponseFormat2
|
|
99
111
|
| GetPromptVersionResponseFormat1
|
|
100
|
-
|
|
|
112
|
+
| GetPromptVersionResponseFormat3;
|
|
101
113
|
|
|
102
114
|
/**
|
|
103
115
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -222,8 +234,9 @@ export type GetPromptVersionModelParameters = {
|
|
|
222
234
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
223
235
|
*/
|
|
224
236
|
responseFormat?:
|
|
225
|
-
| GetPromptVersionResponseFormat1
|
|
226
237
|
| GetPromptVersionResponseFormat2
|
|
238
|
+
| GetPromptVersionResponseFormat1
|
|
239
|
+
| GetPromptVersionResponseFormat3
|
|
227
240
|
| null
|
|
228
241
|
| undefined;
|
|
229
242
|
/**
|
|
@@ -627,104 +640,105 @@ export namespace GetPromptVersionFormat$ {
|
|
|
627
640
|
}
|
|
628
641
|
|
|
629
642
|
/** @internal */
|
|
630
|
-
export const
|
|
631
|
-
z.ZodNativeEnum<typeof
|
|
632
|
-
.nativeEnum(
|
|
643
|
+
export const GetPromptVersionResponseFormatPromptsResponseType$inboundSchema:
|
|
644
|
+
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> = z
|
|
645
|
+
.nativeEnum(GetPromptVersionResponseFormatPromptsResponseType);
|
|
633
646
|
|
|
634
647
|
/** @internal */
|
|
635
|
-
export const
|
|
636
|
-
z.ZodNativeEnum<typeof
|
|
637
|
-
|
|
648
|
+
export const GetPromptVersionResponseFormatPromptsResponseType$outboundSchema:
|
|
649
|
+
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> =
|
|
650
|
+
GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
|
|
638
651
|
|
|
639
652
|
/**
|
|
640
653
|
* @internal
|
|
641
654
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
642
655
|
*/
|
|
643
|
-
export namespace
|
|
644
|
-
/** @deprecated use `
|
|
656
|
+
export namespace GetPromptVersionResponseFormatPromptsResponseType$ {
|
|
657
|
+
/** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
645
658
|
export const inboundSchema =
|
|
646
|
-
|
|
647
|
-
/** @deprecated use `
|
|
659
|
+
GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
|
|
660
|
+
/** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
648
661
|
export const outboundSchema =
|
|
649
|
-
|
|
662
|
+
GetPromptVersionResponseFormatPromptsResponseType$outboundSchema;
|
|
650
663
|
}
|
|
651
664
|
|
|
652
665
|
/** @internal */
|
|
653
|
-
export const
|
|
654
|
-
|
|
666
|
+
export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
|
|
667
|
+
GetPromptVersionResponseFormat3,
|
|
655
668
|
z.ZodTypeDef,
|
|
656
669
|
unknown
|
|
657
670
|
> = z.object({
|
|
658
|
-
type:
|
|
671
|
+
type: GetPromptVersionResponseFormatPromptsResponseType$inboundSchema,
|
|
659
672
|
});
|
|
660
673
|
|
|
661
674
|
/** @internal */
|
|
662
|
-
export type
|
|
675
|
+
export type GetPromptVersionResponseFormat3$Outbound = {
|
|
663
676
|
type: string;
|
|
664
677
|
};
|
|
665
678
|
|
|
666
679
|
/** @internal */
|
|
667
|
-
export const
|
|
668
|
-
|
|
680
|
+
export const GetPromptVersionResponseFormat3$outboundSchema: z.ZodType<
|
|
681
|
+
GetPromptVersionResponseFormat3$Outbound,
|
|
669
682
|
z.ZodTypeDef,
|
|
670
|
-
|
|
683
|
+
GetPromptVersionResponseFormat3
|
|
671
684
|
> = z.object({
|
|
672
|
-
type:
|
|
685
|
+
type: GetPromptVersionResponseFormatPromptsResponseType$outboundSchema,
|
|
673
686
|
});
|
|
674
687
|
|
|
675
688
|
/**
|
|
676
689
|
* @internal
|
|
677
690
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
678
691
|
*/
|
|
679
|
-
export namespace
|
|
680
|
-
/** @deprecated use `
|
|
681
|
-
export const inboundSchema =
|
|
682
|
-
/** @deprecated use `
|
|
683
|
-
export const outboundSchema =
|
|
684
|
-
/** @deprecated use `
|
|
685
|
-
export type Outbound =
|
|
692
|
+
export namespace GetPromptVersionResponseFormat3$ {
|
|
693
|
+
/** @deprecated use `GetPromptVersionResponseFormat3$inboundSchema` instead. */
|
|
694
|
+
export const inboundSchema = GetPromptVersionResponseFormat3$inboundSchema;
|
|
695
|
+
/** @deprecated use `GetPromptVersionResponseFormat3$outboundSchema` instead. */
|
|
696
|
+
export const outboundSchema = GetPromptVersionResponseFormat3$outboundSchema;
|
|
697
|
+
/** @deprecated use `GetPromptVersionResponseFormat3$Outbound` instead. */
|
|
698
|
+
export type Outbound = GetPromptVersionResponseFormat3$Outbound;
|
|
686
699
|
}
|
|
687
700
|
|
|
688
|
-
export function
|
|
689
|
-
|
|
701
|
+
export function getPromptVersionResponseFormat3ToJSON(
|
|
702
|
+
getPromptVersionResponseFormat3: GetPromptVersionResponseFormat3,
|
|
690
703
|
): string {
|
|
691
704
|
return JSON.stringify(
|
|
692
|
-
|
|
693
|
-
|
|
705
|
+
GetPromptVersionResponseFormat3$outboundSchema.parse(
|
|
706
|
+
getPromptVersionResponseFormat3,
|
|
694
707
|
),
|
|
695
708
|
);
|
|
696
709
|
}
|
|
697
710
|
|
|
698
|
-
export function
|
|
711
|
+
export function getPromptVersionResponseFormat3FromJSON(
|
|
699
712
|
jsonString: string,
|
|
700
|
-
): SafeParseResult<
|
|
713
|
+
): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
|
|
701
714
|
return safeParse(
|
|
702
715
|
jsonString,
|
|
703
|
-
(x) =>
|
|
704
|
-
`Failed to parse '
|
|
716
|
+
(x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
717
|
+
`Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
|
|
705
718
|
);
|
|
706
719
|
}
|
|
707
720
|
|
|
708
721
|
/** @internal */
|
|
709
|
-
export const
|
|
710
|
-
typeof
|
|
711
|
-
|
|
722
|
+
export const GetPromptVersionResponseFormatPromptsType$inboundSchema:
|
|
723
|
+
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> = z
|
|
724
|
+
.nativeEnum(GetPromptVersionResponseFormatPromptsType);
|
|
712
725
|
|
|
713
726
|
/** @internal */
|
|
714
|
-
export const
|
|
715
|
-
typeof
|
|
716
|
-
|
|
727
|
+
export const GetPromptVersionResponseFormatPromptsType$outboundSchema:
|
|
728
|
+
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> =
|
|
729
|
+
GetPromptVersionResponseFormatPromptsType$inboundSchema;
|
|
717
730
|
|
|
718
731
|
/**
|
|
719
732
|
* @internal
|
|
720
733
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
721
734
|
*/
|
|
722
|
-
export namespace
|
|
723
|
-
/** @deprecated use `
|
|
724
|
-
export const inboundSchema =
|
|
725
|
-
|
|
735
|
+
export namespace GetPromptVersionResponseFormatPromptsType$ {
|
|
736
|
+
/** @deprecated use `GetPromptVersionResponseFormatPromptsType$inboundSchema` instead. */
|
|
737
|
+
export const inboundSchema =
|
|
738
|
+
GetPromptVersionResponseFormatPromptsType$inboundSchema;
|
|
739
|
+
/** @deprecated use `GetPromptVersionResponseFormatPromptsType$outboundSchema` instead. */
|
|
726
740
|
export const outboundSchema =
|
|
727
|
-
|
|
741
|
+
GetPromptVersionResponseFormatPromptsType$outboundSchema;
|
|
728
742
|
}
|
|
729
743
|
|
|
730
744
|
/** @internal */
|
|
@@ -799,12 +813,12 @@ export function getPromptVersionResponseFormatJsonSchemaFromJSON(
|
|
|
799
813
|
}
|
|
800
814
|
|
|
801
815
|
/** @internal */
|
|
802
|
-
export const
|
|
803
|
-
|
|
816
|
+
export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
|
|
817
|
+
GetPromptVersionResponseFormat2,
|
|
804
818
|
z.ZodTypeDef,
|
|
805
819
|
unknown
|
|
806
820
|
> = z.object({
|
|
807
|
-
type:
|
|
821
|
+
type: GetPromptVersionResponseFormatPromptsType$inboundSchema,
|
|
808
822
|
json_schema: z.lazy(() =>
|
|
809
823
|
GetPromptVersionResponseFormatJsonSchema$inboundSchema
|
|
810
824
|
),
|
|
@@ -815,18 +829,18 @@ export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
|
|
|
815
829
|
});
|
|
816
830
|
|
|
817
831
|
/** @internal */
|
|
818
|
-
export type
|
|
832
|
+
export type GetPromptVersionResponseFormat2$Outbound = {
|
|
819
833
|
type: string;
|
|
820
834
|
json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
821
835
|
};
|
|
822
836
|
|
|
823
837
|
/** @internal */
|
|
824
|
-
export const
|
|
825
|
-
|
|
838
|
+
export const GetPromptVersionResponseFormat2$outboundSchema: z.ZodType<
|
|
839
|
+
GetPromptVersionResponseFormat2$Outbound,
|
|
826
840
|
z.ZodTypeDef,
|
|
827
|
-
|
|
841
|
+
GetPromptVersionResponseFormat2
|
|
828
842
|
> = z.object({
|
|
829
|
-
type:
|
|
843
|
+
type: GetPromptVersionResponseFormatPromptsType$outboundSchema,
|
|
830
844
|
jsonSchema: z.lazy(() =>
|
|
831
845
|
GetPromptVersionResponseFormatJsonSchema$outboundSchema
|
|
832
846
|
),
|
|
@@ -836,6 +850,84 @@ export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
|
|
|
836
850
|
});
|
|
837
851
|
});
|
|
838
852
|
|
|
853
|
+
/**
|
|
854
|
+
* @internal
|
|
855
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
856
|
+
*/
|
|
857
|
+
export namespace GetPromptVersionResponseFormat2$ {
|
|
858
|
+
/** @deprecated use `GetPromptVersionResponseFormat2$inboundSchema` instead. */
|
|
859
|
+
export const inboundSchema = GetPromptVersionResponseFormat2$inboundSchema;
|
|
860
|
+
/** @deprecated use `GetPromptVersionResponseFormat2$outboundSchema` instead. */
|
|
861
|
+
export const outboundSchema = GetPromptVersionResponseFormat2$outboundSchema;
|
|
862
|
+
/** @deprecated use `GetPromptVersionResponseFormat2$Outbound` instead. */
|
|
863
|
+
export type Outbound = GetPromptVersionResponseFormat2$Outbound;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export function getPromptVersionResponseFormat2ToJSON(
|
|
867
|
+
getPromptVersionResponseFormat2: GetPromptVersionResponseFormat2,
|
|
868
|
+
): string {
|
|
869
|
+
return JSON.stringify(
|
|
870
|
+
GetPromptVersionResponseFormat2$outboundSchema.parse(
|
|
871
|
+
getPromptVersionResponseFormat2,
|
|
872
|
+
),
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export function getPromptVersionResponseFormat2FromJSON(
|
|
877
|
+
jsonString: string,
|
|
878
|
+
): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
|
|
879
|
+
return safeParse(
|
|
880
|
+
jsonString,
|
|
881
|
+
(x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
882
|
+
`Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/** @internal */
|
|
887
|
+
export const GetPromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
888
|
+
typeof GetPromptVersionResponseFormatType
|
|
889
|
+
> = z.nativeEnum(GetPromptVersionResponseFormatType);
|
|
890
|
+
|
|
891
|
+
/** @internal */
|
|
892
|
+
export const GetPromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
893
|
+
typeof GetPromptVersionResponseFormatType
|
|
894
|
+
> = GetPromptVersionResponseFormatType$inboundSchema;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* @internal
|
|
898
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
899
|
+
*/
|
|
900
|
+
export namespace GetPromptVersionResponseFormatType$ {
|
|
901
|
+
/** @deprecated use `GetPromptVersionResponseFormatType$inboundSchema` instead. */
|
|
902
|
+
export const inboundSchema = GetPromptVersionResponseFormatType$inboundSchema;
|
|
903
|
+
/** @deprecated use `GetPromptVersionResponseFormatType$outboundSchema` instead. */
|
|
904
|
+
export const outboundSchema =
|
|
905
|
+
GetPromptVersionResponseFormatType$outboundSchema;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/** @internal */
|
|
909
|
+
export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
|
|
910
|
+
GetPromptVersionResponseFormat1,
|
|
911
|
+
z.ZodTypeDef,
|
|
912
|
+
unknown
|
|
913
|
+
> = z.object({
|
|
914
|
+
type: GetPromptVersionResponseFormatType$inboundSchema,
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
/** @internal */
|
|
918
|
+
export type GetPromptVersionResponseFormat1$Outbound = {
|
|
919
|
+
type: string;
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
/** @internal */
|
|
923
|
+
export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
|
|
924
|
+
GetPromptVersionResponseFormat1$Outbound,
|
|
925
|
+
z.ZodTypeDef,
|
|
926
|
+
GetPromptVersionResponseFormat1
|
|
927
|
+
> = z.object({
|
|
928
|
+
type: GetPromptVersionResponseFormatType$outboundSchema,
|
|
929
|
+
});
|
|
930
|
+
|
|
839
931
|
/**
|
|
840
932
|
* @internal
|
|
841
933
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -875,14 +967,16 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
|
|
|
875
967
|
z.ZodTypeDef,
|
|
876
968
|
unknown
|
|
877
969
|
> = z.union([
|
|
878
|
-
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
879
970
|
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
971
|
+
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
972
|
+
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
880
973
|
]);
|
|
881
974
|
|
|
882
975
|
/** @internal */
|
|
883
976
|
export type GetPromptVersionResponseFormat$Outbound =
|
|
977
|
+
| GetPromptVersionResponseFormat2$Outbound
|
|
884
978
|
| GetPromptVersionResponseFormat1$Outbound
|
|
885
|
-
|
|
|
979
|
+
| GetPromptVersionResponseFormat3$Outbound;
|
|
886
980
|
|
|
887
981
|
/** @internal */
|
|
888
982
|
export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -890,8 +984,9 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
|
890
984
|
z.ZodTypeDef,
|
|
891
985
|
GetPromptVersionResponseFormat
|
|
892
986
|
> = z.union([
|
|
893
|
-
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
894
987
|
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
988
|
+
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
989
|
+
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
895
990
|
]);
|
|
896
991
|
|
|
897
992
|
/**
|
|
@@ -1031,8 +1126,9 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
|
1031
1126
|
style: z.string().optional(),
|
|
1032
1127
|
responseFormat: z.nullable(
|
|
1033
1128
|
z.union([
|
|
1034
|
-
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
1035
1129
|
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
1130
|
+
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
1131
|
+
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
1036
1132
|
]),
|
|
1037
1133
|
).optional(),
|
|
1038
1134
|
photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1061,8 +1157,9 @@ export type GetPromptVersionModelParameters$Outbound = {
|
|
|
1061
1157
|
quality?: string | undefined;
|
|
1062
1158
|
style?: string | undefined;
|
|
1063
1159
|
responseFormat?:
|
|
1064
|
-
| GetPromptVersionResponseFormat1$Outbound
|
|
1065
1160
|
| GetPromptVersionResponseFormat2$Outbound
|
|
1161
|
+
| GetPromptVersionResponseFormat1$Outbound
|
|
1162
|
+
| GetPromptVersionResponseFormat3$Outbound
|
|
1066
1163
|
| null
|
|
1067
1164
|
| undefined;
|
|
1068
1165
|
photoRealVersion?: string | undefined;
|
|
@@ -1092,8 +1189,9 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
|
|
|
1092
1189
|
style: z.string().optional(),
|
|
1093
1190
|
responseFormat: z.nullable(
|
|
1094
1191
|
z.union([
|
|
1095
|
-
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1096
1192
|
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1193
|
+
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1194
|
+
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
1097
1195
|
]),
|
|
1098
1196
|
).optional(),
|
|
1099
1197
|
photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
|
|
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
345
345
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
346
346
|
.optional(),
|
|
347
347
|
updated: z.string().datetime({ offset: true }).default(
|
|
348
|
-
"2025-08-
|
|
348
|
+
"2025-08-12T10:35:45.801Z",
|
|
349
349
|
).transform(v => new Date(v)),
|
|
350
350
|
metrics: z.lazy(() => Metrics$inboundSchema),
|
|
351
351
|
}).transform((v) => {
|
|
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
382
382
|
tags: z.array(z.string()).optional(),
|
|
383
383
|
metadata: z.record(z.any()).optional(),
|
|
384
384
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
385
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
385
|
+
updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
|
|
386
386
|
.transform(v => v.toISOString()),
|
|
387
387
|
metrics: z.lazy(() => Metrics$outboundSchema),
|
|
388
388
|
}).transform((v) => {
|
|
@@ -2604,7 +2604,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2604
2604
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2605
2605
|
.optional(),
|
|
2606
2606
|
updated: z.string().datetime({ offset: true }).default(
|
|
2607
|
-
"2025-08-
|
|
2607
|
+
"2025-08-12T10:35:45.801Z",
|
|
2608
2608
|
).transform(v => new Date(v)),
|
|
2609
2609
|
}).transform((v) => {
|
|
2610
2610
|
return remap$(v, {
|
|
@@ -2668,7 +2668,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
2668
2668
|
createdById: z.string().optional(),
|
|
2669
2669
|
updatedById: z.string().optional(),
|
|
2670
2670
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2671
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
2671
|
+
updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
|
|
2672
2672
|
.transform(v => v.toISOString()),
|
|
2673
2673
|
}).transform((v) => {
|
|
2674
2674
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-08-
|
|
256
|
+
"2025-08-12T10:35:45.801Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01K2EXKNBAC6YFEQK3JBTVC98C"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01K2EXKNBAC6YFEQK3JBTVC98C"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|