@orq-ai/node 3.10.17 → 3.10.19
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 +382 -382
- package/bin/mcp-server.js.map +35 -35
- package/examples/contactsCreate.example.ts +1 -1
- 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 +94 -94
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +98 -98
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +47 -47
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +49 -49
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +47 -47
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +49 -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 +47 -47
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +50 -50
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +47 -47
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +49 -49
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +47 -47
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +49 -49
- 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 +47 -47
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +49 -49
- 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 +94 -94
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +99 -99
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +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/contactsCreate.ts +1 -1
- 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/mcp-server/tools/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +246 -40
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +121 -20
- package/packages/orq-rc/src/models/operations/deployments.ts +115 -19
- 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/getallprompts.ts +100 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +100 -2
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +100 -2
- 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/listpromptversions.ts +101 -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/models/operations/updateprompt.ts +210 -4
- package/packages/orq-rc/src/sdk/contacts.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 +179 -179
- package/src/models/operations/deploymentgetconfig.ts +106 -106
- package/src/models/operations/deployments.ts +94 -94
- 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 +98 -98
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +94 -94
- package/src/models/operations/getpromptversion.ts +104 -104
- 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 +103 -103
- 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 +183 -183
|
@@ -55,7 +55,7 @@ export const GetOnePromptFormat = {
|
|
|
55
55
|
export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
|
|
56
56
|
|
|
57
57
|
export const GetOnePromptResponseFormatPromptsResponseType = {
|
|
58
|
-
|
|
58
|
+
Text: "text",
|
|
59
59
|
} as const;
|
|
60
60
|
export type GetOnePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
61
61
|
typeof GetOnePromptResponseFormatPromptsResponseType
|
|
@@ -66,32 +66,32 @@ export type GetOnePromptResponseFormat3 = {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export const GetOnePromptResponseFormatPromptsType = {
|
|
69
|
-
|
|
69
|
+
JsonObject: "json_object",
|
|
70
70
|
} as const;
|
|
71
71
|
export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
|
|
72
72
|
typeof GetOnePromptResponseFormatPromptsType
|
|
73
73
|
>;
|
|
74
74
|
|
|
75
|
-
export type GetOnePromptResponseFormatJsonSchema = {
|
|
76
|
-
name: string;
|
|
77
|
-
strict?: boolean | undefined;
|
|
78
|
-
schema: { [k: string]: any };
|
|
79
|
-
};
|
|
80
|
-
|
|
81
75
|
export type GetOnePromptResponseFormat2 = {
|
|
82
76
|
type: GetOnePromptResponseFormatPromptsType;
|
|
83
|
-
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
84
77
|
};
|
|
85
78
|
|
|
86
79
|
export const GetOnePromptResponseFormatType = {
|
|
87
|
-
|
|
80
|
+
JsonSchema: "json_schema",
|
|
88
81
|
} as const;
|
|
89
82
|
export type GetOnePromptResponseFormatType = ClosedEnum<
|
|
90
83
|
typeof GetOnePromptResponseFormatType
|
|
91
84
|
>;
|
|
92
85
|
|
|
86
|
+
export type GetOnePromptResponseFormatJsonSchema = {
|
|
87
|
+
name: string;
|
|
88
|
+
strict?: boolean | undefined;
|
|
89
|
+
schema: { [k: string]: any };
|
|
90
|
+
};
|
|
91
|
+
|
|
93
92
|
export type GetOnePromptResponseFormat1 = {
|
|
94
93
|
type: GetOnePromptResponseFormatType;
|
|
94
|
+
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -106,8 +106,8 @@ export type GetOnePromptResponseFormat1 = {
|
|
|
106
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.
|
|
107
107
|
*/
|
|
108
108
|
export type GetOnePromptResponseFormat =
|
|
109
|
-
| GetOnePromptResponseFormat2
|
|
110
109
|
| GetOnePromptResponseFormat1
|
|
110
|
+
| GetOnePromptResponseFormat2
|
|
111
111
|
| GetOnePromptResponseFormat3;
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -231,8 +231,8 @@ export type GetOnePromptModelParameters = {
|
|
|
231
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.
|
|
232
232
|
*/
|
|
233
233
|
responseFormat?:
|
|
234
|
-
| GetOnePromptResponseFormat2
|
|
235
234
|
| GetOnePromptResponseFormat1
|
|
235
|
+
| GetOnePromptResponseFormat2
|
|
236
236
|
| GetOnePromptResponseFormat3
|
|
237
237
|
| null
|
|
238
238
|
| undefined;
|
|
@@ -749,71 +749,6 @@ export namespace GetOnePromptResponseFormatPromptsType$ {
|
|
|
749
749
|
GetOnePromptResponseFormatPromptsType$outboundSchema;
|
|
750
750
|
}
|
|
751
751
|
|
|
752
|
-
/** @internal */
|
|
753
|
-
export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
754
|
-
GetOnePromptResponseFormatJsonSchema,
|
|
755
|
-
z.ZodTypeDef,
|
|
756
|
-
unknown
|
|
757
|
-
> = z.object({
|
|
758
|
-
name: z.string(),
|
|
759
|
-
strict: z.boolean().optional(),
|
|
760
|
-
schema: z.record(z.any()),
|
|
761
|
-
});
|
|
762
|
-
|
|
763
|
-
/** @internal */
|
|
764
|
-
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
765
|
-
name: string;
|
|
766
|
-
strict?: boolean | undefined;
|
|
767
|
-
schema: { [k: string]: any };
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
/** @internal */
|
|
771
|
-
export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
772
|
-
GetOnePromptResponseFormatJsonSchema$Outbound,
|
|
773
|
-
z.ZodTypeDef,
|
|
774
|
-
GetOnePromptResponseFormatJsonSchema
|
|
775
|
-
> = z.object({
|
|
776
|
-
name: z.string(),
|
|
777
|
-
strict: z.boolean().optional(),
|
|
778
|
-
schema: z.record(z.any()),
|
|
779
|
-
});
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* @internal
|
|
783
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
784
|
-
*/
|
|
785
|
-
export namespace GetOnePromptResponseFormatJsonSchema$ {
|
|
786
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
787
|
-
export const inboundSchema =
|
|
788
|
-
GetOnePromptResponseFormatJsonSchema$inboundSchema;
|
|
789
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
790
|
-
export const outboundSchema =
|
|
791
|
-
GetOnePromptResponseFormatJsonSchema$outboundSchema;
|
|
792
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
793
|
-
export type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
export function getOnePromptResponseFormatJsonSchemaToJSON(
|
|
797
|
-
getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema,
|
|
798
|
-
): string {
|
|
799
|
-
return JSON.stringify(
|
|
800
|
-
GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
801
|
-
getOnePromptResponseFormatJsonSchema,
|
|
802
|
-
),
|
|
803
|
-
);
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
export function getOnePromptResponseFormatJsonSchemaFromJSON(
|
|
807
|
-
jsonString: string,
|
|
808
|
-
): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
809
|
-
return safeParse(
|
|
810
|
-
jsonString,
|
|
811
|
-
(x) =>
|
|
812
|
-
GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
813
|
-
`Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`,
|
|
814
|
-
);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
752
|
/** @internal */
|
|
818
753
|
export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
819
754
|
GetOnePromptResponseFormat2,
|
|
@@ -821,17 +756,11 @@ export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
|
821
756
|
unknown
|
|
822
757
|
> = z.object({
|
|
823
758
|
type: GetOnePromptResponseFormatPromptsType$inboundSchema,
|
|
824
|
-
json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
825
|
-
}).transform((v) => {
|
|
826
|
-
return remap$(v, {
|
|
827
|
-
"json_schema": "jsonSchema",
|
|
828
|
-
});
|
|
829
759
|
});
|
|
830
760
|
|
|
831
761
|
/** @internal */
|
|
832
762
|
export type GetOnePromptResponseFormat2$Outbound = {
|
|
833
763
|
type: string;
|
|
834
|
-
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
835
764
|
};
|
|
836
765
|
|
|
837
766
|
/** @internal */
|
|
@@ -841,11 +770,6 @@ export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
|
841
770
|
GetOnePromptResponseFormat2
|
|
842
771
|
> = z.object({
|
|
843
772
|
type: GetOnePromptResponseFormatPromptsType$outboundSchema,
|
|
844
|
-
jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
845
|
-
}).transform((v) => {
|
|
846
|
-
return remap$(v, {
|
|
847
|
-
jsonSchema: "json_schema",
|
|
848
|
-
});
|
|
849
773
|
});
|
|
850
774
|
|
|
851
775
|
/**
|
|
@@ -902,6 +826,71 @@ export namespace GetOnePromptResponseFormatType$ {
|
|
|
902
826
|
export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
|
|
903
827
|
}
|
|
904
828
|
|
|
829
|
+
/** @internal */
|
|
830
|
+
export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
831
|
+
GetOnePromptResponseFormatJsonSchema,
|
|
832
|
+
z.ZodTypeDef,
|
|
833
|
+
unknown
|
|
834
|
+
> = z.object({
|
|
835
|
+
name: z.string(),
|
|
836
|
+
strict: z.boolean().optional(),
|
|
837
|
+
schema: z.record(z.any()),
|
|
838
|
+
});
|
|
839
|
+
|
|
840
|
+
/** @internal */
|
|
841
|
+
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
842
|
+
name: string;
|
|
843
|
+
strict?: boolean | undefined;
|
|
844
|
+
schema: { [k: string]: any };
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
/** @internal */
|
|
848
|
+
export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
849
|
+
GetOnePromptResponseFormatJsonSchema$Outbound,
|
|
850
|
+
z.ZodTypeDef,
|
|
851
|
+
GetOnePromptResponseFormatJsonSchema
|
|
852
|
+
> = z.object({
|
|
853
|
+
name: z.string(),
|
|
854
|
+
strict: z.boolean().optional(),
|
|
855
|
+
schema: z.record(z.any()),
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* @internal
|
|
860
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
861
|
+
*/
|
|
862
|
+
export namespace GetOnePromptResponseFormatJsonSchema$ {
|
|
863
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
864
|
+
export const inboundSchema =
|
|
865
|
+
GetOnePromptResponseFormatJsonSchema$inboundSchema;
|
|
866
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
867
|
+
export const outboundSchema =
|
|
868
|
+
GetOnePromptResponseFormatJsonSchema$outboundSchema;
|
|
869
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
870
|
+
export type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export function getOnePromptResponseFormatJsonSchemaToJSON(
|
|
874
|
+
getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema,
|
|
875
|
+
): string {
|
|
876
|
+
return JSON.stringify(
|
|
877
|
+
GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
878
|
+
getOnePromptResponseFormatJsonSchema,
|
|
879
|
+
),
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
export function getOnePromptResponseFormatJsonSchemaFromJSON(
|
|
884
|
+
jsonString: string,
|
|
885
|
+
): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
886
|
+
return safeParse(
|
|
887
|
+
jsonString,
|
|
888
|
+
(x) =>
|
|
889
|
+
GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
890
|
+
`Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`,
|
|
891
|
+
);
|
|
892
|
+
}
|
|
893
|
+
|
|
905
894
|
/** @internal */
|
|
906
895
|
export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
907
896
|
GetOnePromptResponseFormat1,
|
|
@@ -909,11 +898,17 @@ export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
909
898
|
unknown
|
|
910
899
|
> = z.object({
|
|
911
900
|
type: GetOnePromptResponseFormatType$inboundSchema,
|
|
901
|
+
json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
902
|
+
}).transform((v) => {
|
|
903
|
+
return remap$(v, {
|
|
904
|
+
"json_schema": "jsonSchema",
|
|
905
|
+
});
|
|
912
906
|
});
|
|
913
907
|
|
|
914
908
|
/** @internal */
|
|
915
909
|
export type GetOnePromptResponseFormat1$Outbound = {
|
|
916
910
|
type: string;
|
|
911
|
+
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
917
912
|
};
|
|
918
913
|
|
|
919
914
|
/** @internal */
|
|
@@ -923,6 +918,11 @@ export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
923
918
|
GetOnePromptResponseFormat1
|
|
924
919
|
> = z.object({
|
|
925
920
|
type: GetOnePromptResponseFormatType$outboundSchema,
|
|
921
|
+
jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
922
|
+
}).transform((v) => {
|
|
923
|
+
return remap$(v, {
|
|
924
|
+
jsonSchema: "json_schema",
|
|
925
|
+
});
|
|
926
926
|
});
|
|
927
927
|
|
|
928
928
|
/**
|
|
@@ -964,15 +964,15 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
964
964
|
z.ZodTypeDef,
|
|
965
965
|
unknown
|
|
966
966
|
> = z.union([
|
|
967
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
968
967
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
968
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
969
969
|
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
970
970
|
]);
|
|
971
971
|
|
|
972
972
|
/** @internal */
|
|
973
973
|
export type GetOnePromptResponseFormat$Outbound =
|
|
974
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
975
974
|
| GetOnePromptResponseFormat1$Outbound
|
|
975
|
+
| GetOnePromptResponseFormat2$Outbound
|
|
976
976
|
| GetOnePromptResponseFormat3$Outbound;
|
|
977
977
|
|
|
978
978
|
/** @internal */
|
|
@@ -981,8 +981,8 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
981
981
|
z.ZodTypeDef,
|
|
982
982
|
GetOnePromptResponseFormat
|
|
983
983
|
> = z.union([
|
|
984
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
985
984
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
985
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
986
986
|
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
987
987
|
]);
|
|
988
988
|
|
|
@@ -1121,8 +1121,8 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1121
1121
|
style: z.string().optional(),
|
|
1122
1122
|
responseFormat: z.nullable(
|
|
1123
1123
|
z.union([
|
|
1124
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1125
1124
|
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1125
|
+
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1126
1126
|
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
1127
1127
|
]),
|
|
1128
1128
|
).optional(),
|
|
@@ -1152,8 +1152,8 @@ export type GetOnePromptModelParameters$Outbound = {
|
|
|
1152
1152
|
quality?: string | undefined;
|
|
1153
1153
|
style?: string | undefined;
|
|
1154
1154
|
responseFormat?:
|
|
1155
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1156
1155
|
| GetOnePromptResponseFormat1$Outbound
|
|
1156
|
+
| GetOnePromptResponseFormat2$Outbound
|
|
1157
1157
|
| GetOnePromptResponseFormat3$Outbound
|
|
1158
1158
|
| null
|
|
1159
1159
|
| undefined;
|
|
@@ -1184,8 +1184,8 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1184
1184
|
style: z.string().optional(),
|
|
1185
1185
|
responseFormat: z.nullable(
|
|
1186
1186
|
z.union([
|
|
1187
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1188
1187
|
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1188
|
+
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1189
1189
|
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
1190
1190
|
]),
|
|
1191
1191
|
).optional(),
|
|
@@ -56,7 +56,7 @@ export const GetPromptVersionFormat = {
|
|
|
56
56
|
export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
|
|
57
57
|
|
|
58
58
|
export const GetPromptVersionResponseFormatPromptsResponseType = {
|
|
59
|
-
|
|
59
|
+
Text: "text",
|
|
60
60
|
} as const;
|
|
61
61
|
export type GetPromptVersionResponseFormatPromptsResponseType = ClosedEnum<
|
|
62
62
|
typeof GetPromptVersionResponseFormatPromptsResponseType
|
|
@@ -67,32 +67,32 @@ export type GetPromptVersionResponseFormat3 = {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
export const GetPromptVersionResponseFormatPromptsType = {
|
|
70
|
-
|
|
70
|
+
JsonObject: "json_object",
|
|
71
71
|
} as const;
|
|
72
72
|
export type GetPromptVersionResponseFormatPromptsType = ClosedEnum<
|
|
73
73
|
typeof GetPromptVersionResponseFormatPromptsType
|
|
74
74
|
>;
|
|
75
75
|
|
|
76
|
-
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
77
|
-
name: string;
|
|
78
|
-
strict?: boolean | undefined;
|
|
79
|
-
schema: { [k: string]: any };
|
|
80
|
-
};
|
|
81
|
-
|
|
82
76
|
export type GetPromptVersionResponseFormat2 = {
|
|
83
77
|
type: GetPromptVersionResponseFormatPromptsType;
|
|
84
|
-
jsonSchema: GetPromptVersionResponseFormatJsonSchema;
|
|
85
78
|
};
|
|
86
79
|
|
|
87
80
|
export const GetPromptVersionResponseFormatType = {
|
|
88
|
-
|
|
81
|
+
JsonSchema: "json_schema",
|
|
89
82
|
} as const;
|
|
90
83
|
export type GetPromptVersionResponseFormatType = ClosedEnum<
|
|
91
84
|
typeof GetPromptVersionResponseFormatType
|
|
92
85
|
>;
|
|
93
86
|
|
|
87
|
+
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
88
|
+
name: string;
|
|
89
|
+
strict?: boolean | undefined;
|
|
90
|
+
schema: { [k: string]: any };
|
|
91
|
+
};
|
|
92
|
+
|
|
94
93
|
export type GetPromptVersionResponseFormat1 = {
|
|
95
94
|
type: GetPromptVersionResponseFormatType;
|
|
95
|
+
jsonSchema: GetPromptVersionResponseFormatJsonSchema;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
/**
|
|
@@ -107,8 +107,8 @@ export type GetPromptVersionResponseFormat1 = {
|
|
|
107
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.
|
|
108
108
|
*/
|
|
109
109
|
export type GetPromptVersionResponseFormat =
|
|
110
|
-
| GetPromptVersionResponseFormat2
|
|
111
110
|
| GetPromptVersionResponseFormat1
|
|
111
|
+
| GetPromptVersionResponseFormat2
|
|
112
112
|
| GetPromptVersionResponseFormat3;
|
|
113
113
|
|
|
114
114
|
/**
|
|
@@ -234,8 +234,8 @@ export type GetPromptVersionModelParameters = {
|
|
|
234
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.
|
|
235
235
|
*/
|
|
236
236
|
responseFormat?:
|
|
237
|
-
| GetPromptVersionResponseFormat2
|
|
238
237
|
| GetPromptVersionResponseFormat1
|
|
238
|
+
| GetPromptVersionResponseFormat2
|
|
239
239
|
| GetPromptVersionResponseFormat3
|
|
240
240
|
| null
|
|
241
241
|
| undefined;
|
|
@@ -741,77 +741,6 @@ export namespace GetPromptVersionResponseFormatPromptsType$ {
|
|
|
741
741
|
GetPromptVersionResponseFormatPromptsType$outboundSchema;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
/** @internal */
|
|
745
|
-
export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
746
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
747
|
-
z.ZodTypeDef,
|
|
748
|
-
unknown
|
|
749
|
-
> = z.object({
|
|
750
|
-
name: z.string(),
|
|
751
|
-
strict: z.boolean().optional(),
|
|
752
|
-
schema: z.record(z.any()),
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
/** @internal */
|
|
756
|
-
export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
|
|
757
|
-
name: string;
|
|
758
|
-
strict?: boolean | undefined;
|
|
759
|
-
schema: { [k: string]: any };
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
/** @internal */
|
|
763
|
-
export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
764
|
-
GetPromptVersionResponseFormatJsonSchema$Outbound,
|
|
765
|
-
z.ZodTypeDef,
|
|
766
|
-
GetPromptVersionResponseFormatJsonSchema
|
|
767
|
-
> = z.object({
|
|
768
|
-
name: z.string(),
|
|
769
|
-
strict: z.boolean().optional(),
|
|
770
|
-
schema: z.record(z.any()),
|
|
771
|
-
});
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* @internal
|
|
775
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
776
|
-
*/
|
|
777
|
-
export namespace GetPromptVersionResponseFormatJsonSchema$ {
|
|
778
|
-
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
|
|
779
|
-
export const inboundSchema =
|
|
780
|
-
GetPromptVersionResponseFormatJsonSchema$inboundSchema;
|
|
781
|
-
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
|
|
782
|
-
export const outboundSchema =
|
|
783
|
-
GetPromptVersionResponseFormatJsonSchema$outboundSchema;
|
|
784
|
-
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$Outbound` instead. */
|
|
785
|
-
export type Outbound = GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export function getPromptVersionResponseFormatJsonSchemaToJSON(
|
|
789
|
-
getPromptVersionResponseFormatJsonSchema:
|
|
790
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
791
|
-
): string {
|
|
792
|
-
return JSON.stringify(
|
|
793
|
-
GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(
|
|
794
|
-
getPromptVersionResponseFormatJsonSchema,
|
|
795
|
-
),
|
|
796
|
-
);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
export function getPromptVersionResponseFormatJsonSchemaFromJSON(
|
|
800
|
-
jsonString: string,
|
|
801
|
-
): SafeParseResult<
|
|
802
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
803
|
-
SDKValidationError
|
|
804
|
-
> {
|
|
805
|
-
return safeParse(
|
|
806
|
-
jsonString,
|
|
807
|
-
(x) =>
|
|
808
|
-
GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
|
|
809
|
-
JSON.parse(x),
|
|
810
|
-
),
|
|
811
|
-
`Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
744
|
/** @internal */
|
|
816
745
|
export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
|
|
817
746
|
GetPromptVersionResponseFormat2,
|
|
@@ -819,19 +748,11 @@ export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
|
|
|
819
748
|
unknown
|
|
820
749
|
> = z.object({
|
|
821
750
|
type: GetPromptVersionResponseFormatPromptsType$inboundSchema,
|
|
822
|
-
json_schema: z.lazy(() =>
|
|
823
|
-
GetPromptVersionResponseFormatJsonSchema$inboundSchema
|
|
824
|
-
),
|
|
825
|
-
}).transform((v) => {
|
|
826
|
-
return remap$(v, {
|
|
827
|
-
"json_schema": "jsonSchema",
|
|
828
|
-
});
|
|
829
751
|
});
|
|
830
752
|
|
|
831
753
|
/** @internal */
|
|
832
754
|
export type GetPromptVersionResponseFormat2$Outbound = {
|
|
833
755
|
type: string;
|
|
834
|
-
json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
835
756
|
};
|
|
836
757
|
|
|
837
758
|
/** @internal */
|
|
@@ -841,13 +762,6 @@ export const GetPromptVersionResponseFormat2$outboundSchema: z.ZodType<
|
|
|
841
762
|
GetPromptVersionResponseFormat2
|
|
842
763
|
> = z.object({
|
|
843
764
|
type: GetPromptVersionResponseFormatPromptsType$outboundSchema,
|
|
844
|
-
jsonSchema: z.lazy(() =>
|
|
845
|
-
GetPromptVersionResponseFormatJsonSchema$outboundSchema
|
|
846
|
-
),
|
|
847
|
-
}).transform((v) => {
|
|
848
|
-
return remap$(v, {
|
|
849
|
-
jsonSchema: "json_schema",
|
|
850
|
-
});
|
|
851
765
|
});
|
|
852
766
|
|
|
853
767
|
/**
|
|
@@ -905,6 +819,77 @@ export namespace GetPromptVersionResponseFormatType$ {
|
|
|
905
819
|
GetPromptVersionResponseFormatType$outboundSchema;
|
|
906
820
|
}
|
|
907
821
|
|
|
822
|
+
/** @internal */
|
|
823
|
+
export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
824
|
+
GetPromptVersionResponseFormatJsonSchema,
|
|
825
|
+
z.ZodTypeDef,
|
|
826
|
+
unknown
|
|
827
|
+
> = z.object({
|
|
828
|
+
name: z.string(),
|
|
829
|
+
strict: z.boolean().optional(),
|
|
830
|
+
schema: z.record(z.any()),
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
/** @internal */
|
|
834
|
+
export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
|
|
835
|
+
name: string;
|
|
836
|
+
strict?: boolean | undefined;
|
|
837
|
+
schema: { [k: string]: any };
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
/** @internal */
|
|
841
|
+
export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
842
|
+
GetPromptVersionResponseFormatJsonSchema$Outbound,
|
|
843
|
+
z.ZodTypeDef,
|
|
844
|
+
GetPromptVersionResponseFormatJsonSchema
|
|
845
|
+
> = z.object({
|
|
846
|
+
name: z.string(),
|
|
847
|
+
strict: z.boolean().optional(),
|
|
848
|
+
schema: z.record(z.any()),
|
|
849
|
+
});
|
|
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 GetPromptVersionResponseFormatJsonSchema$ {
|
|
856
|
+
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
|
|
857
|
+
export const inboundSchema =
|
|
858
|
+
GetPromptVersionResponseFormatJsonSchema$inboundSchema;
|
|
859
|
+
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
|
|
860
|
+
export const outboundSchema =
|
|
861
|
+
GetPromptVersionResponseFormatJsonSchema$outboundSchema;
|
|
862
|
+
/** @deprecated use `GetPromptVersionResponseFormatJsonSchema$Outbound` instead. */
|
|
863
|
+
export type Outbound = GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export function getPromptVersionResponseFormatJsonSchemaToJSON(
|
|
867
|
+
getPromptVersionResponseFormatJsonSchema:
|
|
868
|
+
GetPromptVersionResponseFormatJsonSchema,
|
|
869
|
+
): string {
|
|
870
|
+
return JSON.stringify(
|
|
871
|
+
GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(
|
|
872
|
+
getPromptVersionResponseFormatJsonSchema,
|
|
873
|
+
),
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
export function getPromptVersionResponseFormatJsonSchemaFromJSON(
|
|
878
|
+
jsonString: string,
|
|
879
|
+
): SafeParseResult<
|
|
880
|
+
GetPromptVersionResponseFormatJsonSchema,
|
|
881
|
+
SDKValidationError
|
|
882
|
+
> {
|
|
883
|
+
return safeParse(
|
|
884
|
+
jsonString,
|
|
885
|
+
(x) =>
|
|
886
|
+
GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
|
|
887
|
+
JSON.parse(x),
|
|
888
|
+
),
|
|
889
|
+
`Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
|
|
908
893
|
/** @internal */
|
|
909
894
|
export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
|
|
910
895
|
GetPromptVersionResponseFormat1,
|
|
@@ -912,11 +897,19 @@ export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
|
|
|
912
897
|
unknown
|
|
913
898
|
> = z.object({
|
|
914
899
|
type: GetPromptVersionResponseFormatType$inboundSchema,
|
|
900
|
+
json_schema: z.lazy(() =>
|
|
901
|
+
GetPromptVersionResponseFormatJsonSchema$inboundSchema
|
|
902
|
+
),
|
|
903
|
+
}).transform((v) => {
|
|
904
|
+
return remap$(v, {
|
|
905
|
+
"json_schema": "jsonSchema",
|
|
906
|
+
});
|
|
915
907
|
});
|
|
916
908
|
|
|
917
909
|
/** @internal */
|
|
918
910
|
export type GetPromptVersionResponseFormat1$Outbound = {
|
|
919
911
|
type: string;
|
|
912
|
+
json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
920
913
|
};
|
|
921
914
|
|
|
922
915
|
/** @internal */
|
|
@@ -926,6 +919,13 @@ export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
|
|
|
926
919
|
GetPromptVersionResponseFormat1
|
|
927
920
|
> = z.object({
|
|
928
921
|
type: GetPromptVersionResponseFormatType$outboundSchema,
|
|
922
|
+
jsonSchema: z.lazy(() =>
|
|
923
|
+
GetPromptVersionResponseFormatJsonSchema$outboundSchema
|
|
924
|
+
),
|
|
925
|
+
}).transform((v) => {
|
|
926
|
+
return remap$(v, {
|
|
927
|
+
jsonSchema: "json_schema",
|
|
928
|
+
});
|
|
929
929
|
});
|
|
930
930
|
|
|
931
931
|
/**
|
|
@@ -967,15 +967,15 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
|
|
|
967
967
|
z.ZodTypeDef,
|
|
968
968
|
unknown
|
|
969
969
|
> = z.union([
|
|
970
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
971
970
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
971
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
972
972
|
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
973
973
|
]);
|
|
974
974
|
|
|
975
975
|
/** @internal */
|
|
976
976
|
export type GetPromptVersionResponseFormat$Outbound =
|
|
977
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
978
977
|
| GetPromptVersionResponseFormat1$Outbound
|
|
978
|
+
| GetPromptVersionResponseFormat2$Outbound
|
|
979
979
|
| GetPromptVersionResponseFormat3$Outbound;
|
|
980
980
|
|
|
981
981
|
/** @internal */
|
|
@@ -984,8 +984,8 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
|
984
984
|
z.ZodTypeDef,
|
|
985
985
|
GetPromptVersionResponseFormat
|
|
986
986
|
> = z.union([
|
|
987
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
988
987
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
988
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
989
989
|
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
990
990
|
]);
|
|
991
991
|
|
|
@@ -1126,8 +1126,8 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
|
1126
1126
|
style: z.string().optional(),
|
|
1127
1127
|
responseFormat: z.nullable(
|
|
1128
1128
|
z.union([
|
|
1129
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
1130
1129
|
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
1130
|
+
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
1131
1131
|
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
1132
1132
|
]),
|
|
1133
1133
|
).optional(),
|
|
@@ -1157,8 +1157,8 @@ export type GetPromptVersionModelParameters$Outbound = {
|
|
|
1157
1157
|
quality?: string | undefined;
|
|
1158
1158
|
style?: string | undefined;
|
|
1159
1159
|
responseFormat?:
|
|
1160
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
1161
1160
|
| GetPromptVersionResponseFormat1$Outbound
|
|
1161
|
+
| GetPromptVersionResponseFormat2$Outbound
|
|
1162
1162
|
| GetPromptVersionResponseFormat3$Outbound
|
|
1163
1163
|
| null
|
|
1164
1164
|
| undefined;
|
|
@@ -1189,8 +1189,8 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
|
|
|
1189
1189
|
style: z.string().optional(),
|
|
1190
1190
|
responseFormat: z.nullable(
|
|
1191
1191
|
z.union([
|
|
1192
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1193
1192
|
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1193
|
+
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1194
1194
|
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
1195
1195
|
]),
|
|
1196
1196
|
).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-13T12:53:43.771Z",
|
|
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-13T12:53:43.771Z"))
|
|
386
386
|
.transform(v => v.toISOString()),
|
|
387
387
|
metrics: z.lazy(() => Metrics$outboundSchema),
|
|
388
388
|
}).transform((v) => {
|