@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
|
@@ -54,22 +54,22 @@ export const GetOnePromptFormat = {
|
|
|
54
54
|
*/
|
|
55
55
|
export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const GetOnePromptResponseFormatPromptsResponseType = {
|
|
58
58
|
JsonObject: "json_object",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
60
|
+
export type GetOnePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
61
|
+
typeof GetOnePromptResponseFormatPromptsResponseType
|
|
62
62
|
>;
|
|
63
63
|
|
|
64
|
-
export type
|
|
65
|
-
type:
|
|
64
|
+
export type GetOnePromptResponseFormat3 = {
|
|
65
|
+
type: GetOnePromptResponseFormatPromptsResponseType;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const
|
|
68
|
+
export const GetOnePromptResponseFormatPromptsType = {
|
|
69
69
|
JsonSchema: "json_schema",
|
|
70
70
|
} as const;
|
|
71
|
-
export type
|
|
72
|
-
typeof
|
|
71
|
+
export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
|
|
72
|
+
typeof GetOnePromptResponseFormatPromptsType
|
|
73
73
|
>;
|
|
74
74
|
|
|
75
75
|
export type GetOnePromptResponseFormatJsonSchema = {
|
|
@@ -78,9 +78,20 @@ export type GetOnePromptResponseFormatJsonSchema = {
|
|
|
78
78
|
schema: { [k: string]: any };
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
export type GetOnePromptResponseFormat2 = {
|
|
82
|
+
type: GetOnePromptResponseFormatPromptsType;
|
|
83
|
+
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const GetOnePromptResponseFormatType = {
|
|
87
|
+
Text: "text",
|
|
88
|
+
} as const;
|
|
89
|
+
export type GetOnePromptResponseFormatType = ClosedEnum<
|
|
90
|
+
typeof GetOnePromptResponseFormatType
|
|
91
|
+
>;
|
|
92
|
+
|
|
81
93
|
export type GetOnePromptResponseFormat1 = {
|
|
82
94
|
type: GetOnePromptResponseFormatType;
|
|
83
|
-
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
84
95
|
};
|
|
85
96
|
|
|
86
97
|
/**
|
|
@@ -95,8 +106,9 @@ export type GetOnePromptResponseFormat1 = {
|
|
|
95
106
|
* 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.
|
|
96
107
|
*/
|
|
97
108
|
export type GetOnePromptResponseFormat =
|
|
109
|
+
| GetOnePromptResponseFormat2
|
|
98
110
|
| GetOnePromptResponseFormat1
|
|
99
|
-
|
|
|
111
|
+
| GetOnePromptResponseFormat3;
|
|
100
112
|
|
|
101
113
|
/**
|
|
102
114
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -219,8 +231,9 @@ export type GetOnePromptModelParameters = {
|
|
|
219
231
|
* 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.
|
|
220
232
|
*/
|
|
221
233
|
responseFormat?:
|
|
222
|
-
| GetOnePromptResponseFormat1
|
|
223
234
|
| GetOnePromptResponseFormat2
|
|
235
|
+
| GetOnePromptResponseFormat1
|
|
236
|
+
| GetOnePromptResponseFormat3
|
|
224
237
|
| null
|
|
225
238
|
| undefined;
|
|
226
239
|
/**
|
|
@@ -634,104 +647,106 @@ export namespace GetOnePromptFormat$ {
|
|
|
634
647
|
}
|
|
635
648
|
|
|
636
649
|
/** @internal */
|
|
637
|
-
export const
|
|
638
|
-
z.ZodNativeEnum<typeof
|
|
639
|
-
|
|
640
|
-
);
|
|
650
|
+
export const GetOnePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
651
|
+
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> = z
|
|
652
|
+
.nativeEnum(GetOnePromptResponseFormatPromptsResponseType);
|
|
641
653
|
|
|
642
654
|
/** @internal */
|
|
643
|
-
export const
|
|
644
|
-
z.ZodNativeEnum<typeof
|
|
645
|
-
|
|
655
|
+
export const GetOnePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
656
|
+
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> =
|
|
657
|
+
GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
646
658
|
|
|
647
659
|
/**
|
|
648
660
|
* @internal
|
|
649
661
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
650
662
|
*/
|
|
651
|
-
export namespace
|
|
652
|
-
/** @deprecated use `
|
|
663
|
+
export namespace GetOnePromptResponseFormatPromptsResponseType$ {
|
|
664
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
653
665
|
export const inboundSchema =
|
|
654
|
-
|
|
655
|
-
/** @deprecated use `
|
|
666
|
+
GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
667
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
656
668
|
export const outboundSchema =
|
|
657
|
-
|
|
669
|
+
GetOnePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
658
670
|
}
|
|
659
671
|
|
|
660
672
|
/** @internal */
|
|
661
|
-
export const
|
|
662
|
-
|
|
673
|
+
export const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
674
|
+
GetOnePromptResponseFormat3,
|
|
663
675
|
z.ZodTypeDef,
|
|
664
676
|
unknown
|
|
665
677
|
> = z.object({
|
|
666
|
-
type:
|
|
678
|
+
type: GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
667
679
|
});
|
|
668
680
|
|
|
669
681
|
/** @internal */
|
|
670
|
-
export type
|
|
682
|
+
export type GetOnePromptResponseFormat3$Outbound = {
|
|
671
683
|
type: string;
|
|
672
684
|
};
|
|
673
685
|
|
|
674
686
|
/** @internal */
|
|
675
|
-
export const
|
|
676
|
-
|
|
687
|
+
export const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
688
|
+
GetOnePromptResponseFormat3$Outbound,
|
|
677
689
|
z.ZodTypeDef,
|
|
678
|
-
|
|
690
|
+
GetOnePromptResponseFormat3
|
|
679
691
|
> = z.object({
|
|
680
|
-
type:
|
|
692
|
+
type: GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
681
693
|
});
|
|
682
694
|
|
|
683
695
|
/**
|
|
684
696
|
* @internal
|
|
685
697
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
686
698
|
*/
|
|
687
|
-
export namespace
|
|
688
|
-
/** @deprecated use `
|
|
689
|
-
export const inboundSchema =
|
|
690
|
-
/** @deprecated use `
|
|
691
|
-
export const outboundSchema =
|
|
692
|
-
/** @deprecated use `
|
|
693
|
-
export type Outbound =
|
|
699
|
+
export namespace GetOnePromptResponseFormat3$ {
|
|
700
|
+
/** @deprecated use `GetOnePromptResponseFormat3$inboundSchema` instead. */
|
|
701
|
+
export const inboundSchema = GetOnePromptResponseFormat3$inboundSchema;
|
|
702
|
+
/** @deprecated use `GetOnePromptResponseFormat3$outboundSchema` instead. */
|
|
703
|
+
export const outboundSchema = GetOnePromptResponseFormat3$outboundSchema;
|
|
704
|
+
/** @deprecated use `GetOnePromptResponseFormat3$Outbound` instead. */
|
|
705
|
+
export type Outbound = GetOnePromptResponseFormat3$Outbound;
|
|
694
706
|
}
|
|
695
707
|
|
|
696
|
-
export function
|
|
697
|
-
|
|
708
|
+
export function getOnePromptResponseFormat3ToJSON(
|
|
709
|
+
getOnePromptResponseFormat3: GetOnePromptResponseFormat3,
|
|
698
710
|
): string {
|
|
699
711
|
return JSON.stringify(
|
|
700
|
-
|
|
701
|
-
|
|
712
|
+
GetOnePromptResponseFormat3$outboundSchema.parse(
|
|
713
|
+
getOnePromptResponseFormat3,
|
|
702
714
|
),
|
|
703
715
|
);
|
|
704
716
|
}
|
|
705
717
|
|
|
706
|
-
export function
|
|
718
|
+
export function getOnePromptResponseFormat3FromJSON(
|
|
707
719
|
jsonString: string,
|
|
708
|
-
): SafeParseResult<
|
|
720
|
+
): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError> {
|
|
709
721
|
return safeParse(
|
|
710
722
|
jsonString,
|
|
711
|
-
(x) =>
|
|
712
|
-
`Failed to parse '
|
|
723
|
+
(x) => GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
724
|
+
`Failed to parse 'GetOnePromptResponseFormat3' from JSON`,
|
|
713
725
|
);
|
|
714
726
|
}
|
|
715
727
|
|
|
716
728
|
/** @internal */
|
|
717
|
-
export const
|
|
718
|
-
typeof
|
|
719
|
-
|
|
729
|
+
export const GetOnePromptResponseFormatPromptsType$inboundSchema:
|
|
730
|
+
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
731
|
+
GetOnePromptResponseFormatPromptsType,
|
|
732
|
+
);
|
|
720
733
|
|
|
721
734
|
/** @internal */
|
|
722
|
-
export const
|
|
723
|
-
typeof
|
|
724
|
-
|
|
735
|
+
export const GetOnePromptResponseFormatPromptsType$outboundSchema:
|
|
736
|
+
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
|
|
737
|
+
GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
725
738
|
|
|
726
739
|
/**
|
|
727
740
|
* @internal
|
|
728
741
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
729
742
|
*/
|
|
730
|
-
export namespace
|
|
731
|
-
/** @deprecated use `
|
|
732
|
-
export const inboundSchema =
|
|
733
|
-
|
|
734
|
-
|
|
743
|
+
export namespace GetOnePromptResponseFormatPromptsType$ {
|
|
744
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
745
|
+
export const inboundSchema =
|
|
746
|
+
GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
747
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
748
|
+
export const outboundSchema =
|
|
749
|
+
GetOnePromptResponseFormatPromptsType$outboundSchema;
|
|
735
750
|
}
|
|
736
751
|
|
|
737
752
|
/** @internal */
|
|
@@ -800,12 +815,12 @@ export function getOnePromptResponseFormatJsonSchemaFromJSON(
|
|
|
800
815
|
}
|
|
801
816
|
|
|
802
817
|
/** @internal */
|
|
803
|
-
export const
|
|
804
|
-
|
|
818
|
+
export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
819
|
+
GetOnePromptResponseFormat2,
|
|
805
820
|
z.ZodTypeDef,
|
|
806
821
|
unknown
|
|
807
822
|
> = z.object({
|
|
808
|
-
type:
|
|
823
|
+
type: GetOnePromptResponseFormatPromptsType$inboundSchema,
|
|
809
824
|
json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
810
825
|
}).transform((v) => {
|
|
811
826
|
return remap$(v, {
|
|
@@ -814,18 +829,18 @@ export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
814
829
|
});
|
|
815
830
|
|
|
816
831
|
/** @internal */
|
|
817
|
-
export type
|
|
832
|
+
export type GetOnePromptResponseFormat2$Outbound = {
|
|
818
833
|
type: string;
|
|
819
834
|
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
820
835
|
};
|
|
821
836
|
|
|
822
837
|
/** @internal */
|
|
823
|
-
export const
|
|
824
|
-
|
|
838
|
+
export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
839
|
+
GetOnePromptResponseFormat2$Outbound,
|
|
825
840
|
z.ZodTypeDef,
|
|
826
|
-
|
|
841
|
+
GetOnePromptResponseFormat2
|
|
827
842
|
> = z.object({
|
|
828
|
-
type:
|
|
843
|
+
type: GetOnePromptResponseFormatPromptsType$outboundSchema,
|
|
829
844
|
jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
830
845
|
}).transform((v) => {
|
|
831
846
|
return remap$(v, {
|
|
@@ -833,6 +848,83 @@ export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
833
848
|
});
|
|
834
849
|
});
|
|
835
850
|
|
|
851
|
+
/**
|
|
852
|
+
* @internal
|
|
853
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
854
|
+
*/
|
|
855
|
+
export namespace GetOnePromptResponseFormat2$ {
|
|
856
|
+
/** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
|
|
857
|
+
export const inboundSchema = GetOnePromptResponseFormat2$inboundSchema;
|
|
858
|
+
/** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
|
|
859
|
+
export const outboundSchema = GetOnePromptResponseFormat2$outboundSchema;
|
|
860
|
+
/** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
|
|
861
|
+
export type Outbound = GetOnePromptResponseFormat2$Outbound;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export function getOnePromptResponseFormat2ToJSON(
|
|
865
|
+
getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
|
|
866
|
+
): string {
|
|
867
|
+
return JSON.stringify(
|
|
868
|
+
GetOnePromptResponseFormat2$outboundSchema.parse(
|
|
869
|
+
getOnePromptResponseFormat2,
|
|
870
|
+
),
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export function getOnePromptResponseFormat2FromJSON(
|
|
875
|
+
jsonString: string,
|
|
876
|
+
): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
|
|
877
|
+
return safeParse(
|
|
878
|
+
jsonString,
|
|
879
|
+
(x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
880
|
+
`Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/** @internal */
|
|
885
|
+
export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
886
|
+
typeof GetOnePromptResponseFormatType
|
|
887
|
+
> = z.nativeEnum(GetOnePromptResponseFormatType);
|
|
888
|
+
|
|
889
|
+
/** @internal */
|
|
890
|
+
export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
891
|
+
typeof GetOnePromptResponseFormatType
|
|
892
|
+
> = GetOnePromptResponseFormatType$inboundSchema;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* @internal
|
|
896
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
897
|
+
*/
|
|
898
|
+
export namespace GetOnePromptResponseFormatType$ {
|
|
899
|
+
/** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
|
|
900
|
+
export const inboundSchema = GetOnePromptResponseFormatType$inboundSchema;
|
|
901
|
+
/** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
|
|
902
|
+
export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/** @internal */
|
|
906
|
+
export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
907
|
+
GetOnePromptResponseFormat1,
|
|
908
|
+
z.ZodTypeDef,
|
|
909
|
+
unknown
|
|
910
|
+
> = z.object({
|
|
911
|
+
type: GetOnePromptResponseFormatType$inboundSchema,
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
/** @internal */
|
|
915
|
+
export type GetOnePromptResponseFormat1$Outbound = {
|
|
916
|
+
type: string;
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
/** @internal */
|
|
920
|
+
export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
921
|
+
GetOnePromptResponseFormat1$Outbound,
|
|
922
|
+
z.ZodTypeDef,
|
|
923
|
+
GetOnePromptResponseFormat1
|
|
924
|
+
> = z.object({
|
|
925
|
+
type: GetOnePromptResponseFormatType$outboundSchema,
|
|
926
|
+
});
|
|
927
|
+
|
|
836
928
|
/**
|
|
837
929
|
* @internal
|
|
838
930
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -872,14 +964,16 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
872
964
|
z.ZodTypeDef,
|
|
873
965
|
unknown
|
|
874
966
|
> = z.union([
|
|
875
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
876
967
|
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
968
|
+
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
969
|
+
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
877
970
|
]);
|
|
878
971
|
|
|
879
972
|
/** @internal */
|
|
880
973
|
export type GetOnePromptResponseFormat$Outbound =
|
|
974
|
+
| GetOnePromptResponseFormat2$Outbound
|
|
881
975
|
| GetOnePromptResponseFormat1$Outbound
|
|
882
|
-
|
|
|
976
|
+
| GetOnePromptResponseFormat3$Outbound;
|
|
883
977
|
|
|
884
978
|
/** @internal */
|
|
885
979
|
export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -887,8 +981,9 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
887
981
|
z.ZodTypeDef,
|
|
888
982
|
GetOnePromptResponseFormat
|
|
889
983
|
> = z.union([
|
|
890
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
891
984
|
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
985
|
+
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
986
|
+
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
892
987
|
]);
|
|
893
988
|
|
|
894
989
|
/**
|
|
@@ -1026,8 +1121,9 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1026
1121
|
style: z.string().optional(),
|
|
1027
1122
|
responseFormat: z.nullable(
|
|
1028
1123
|
z.union([
|
|
1029
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1030
1124
|
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1125
|
+
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1126
|
+
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
1031
1127
|
]),
|
|
1032
1128
|
).optional(),
|
|
1033
1129
|
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1056,8 +1152,9 @@ export type GetOnePromptModelParameters$Outbound = {
|
|
|
1056
1152
|
quality?: string | undefined;
|
|
1057
1153
|
style?: string | undefined;
|
|
1058
1154
|
responseFormat?:
|
|
1059
|
-
| GetOnePromptResponseFormat1$Outbound
|
|
1060
1155
|
| GetOnePromptResponseFormat2$Outbound
|
|
1156
|
+
| GetOnePromptResponseFormat1$Outbound
|
|
1157
|
+
| GetOnePromptResponseFormat3$Outbound
|
|
1061
1158
|
| null
|
|
1062
1159
|
| undefined;
|
|
1063
1160
|
photoRealVersion?: string | undefined;
|
|
@@ -1087,8 +1184,9 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1087
1184
|
style: z.string().optional(),
|
|
1088
1185
|
responseFormat: z.nullable(
|
|
1089
1186
|
z.union([
|
|
1090
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1091
1187
|
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1188
|
+
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1189
|
+
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
1092
1190
|
]),
|
|
1093
1191
|
).optional(),
|
|
1094
1192
|
photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|