@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
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-08-
|
|
199
|
+
"2025-08-13T12:53:47.042Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-08-
|
|
233
|
+
created: z.date().default(() => new Date("2025-08-13T12:53:47.042Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-08-
|
|
253
|
+
"2025-08-13T12:53:47.042Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-08-
|
|
287
|
+
created: z.date().default(() => new Date("2025-08-13T12:53:47.042Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -68,7 +68,7 @@ export const GetAllPromptsFormat = {
|
|
|
68
68
|
export type GetAllPromptsFormat = ClosedEnum<typeof GetAllPromptsFormat>;
|
|
69
69
|
|
|
70
70
|
export const GetAllPromptsResponseFormatPromptsResponseType = {
|
|
71
|
-
|
|
71
|
+
Text: "text",
|
|
72
72
|
} as const;
|
|
73
73
|
export type GetAllPromptsResponseFormatPromptsResponseType = ClosedEnum<
|
|
74
74
|
typeof GetAllPromptsResponseFormatPromptsResponseType
|
|
@@ -79,32 +79,32 @@ export type GetAllPromptsResponseFormat3 = {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
export const GetAllPromptsResponseFormatPromptsType = {
|
|
82
|
-
|
|
82
|
+
JsonObject: "json_object",
|
|
83
83
|
} as const;
|
|
84
84
|
export type GetAllPromptsResponseFormatPromptsType = ClosedEnum<
|
|
85
85
|
typeof GetAllPromptsResponseFormatPromptsType
|
|
86
86
|
>;
|
|
87
87
|
|
|
88
|
-
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
89
|
-
name: string;
|
|
90
|
-
strict?: boolean | undefined;
|
|
91
|
-
schema: { [k: string]: any };
|
|
92
|
-
};
|
|
93
|
-
|
|
94
88
|
export type GetAllPromptsResponseFormat2 = {
|
|
95
89
|
type: GetAllPromptsResponseFormatPromptsType;
|
|
96
|
-
jsonSchema: GetAllPromptsResponseFormatJsonSchema;
|
|
97
90
|
};
|
|
98
91
|
|
|
99
92
|
export const GetAllPromptsResponseFormatType = {
|
|
100
|
-
|
|
93
|
+
JsonSchema: "json_schema",
|
|
101
94
|
} as const;
|
|
102
95
|
export type GetAllPromptsResponseFormatType = ClosedEnum<
|
|
103
96
|
typeof GetAllPromptsResponseFormatType
|
|
104
97
|
>;
|
|
105
98
|
|
|
99
|
+
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
100
|
+
name: string;
|
|
101
|
+
strict?: boolean | undefined;
|
|
102
|
+
schema: { [k: string]: any };
|
|
103
|
+
};
|
|
104
|
+
|
|
106
105
|
export type GetAllPromptsResponseFormat1 = {
|
|
107
106
|
type: GetAllPromptsResponseFormatType;
|
|
107
|
+
jsonSchema: GetAllPromptsResponseFormatJsonSchema;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
/**
|
|
@@ -119,8 +119,8 @@ export type GetAllPromptsResponseFormat1 = {
|
|
|
119
119
|
* 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.
|
|
120
120
|
*/
|
|
121
121
|
export type GetAllPromptsResponseFormat =
|
|
122
|
-
| GetAllPromptsResponseFormat2
|
|
123
122
|
| GetAllPromptsResponseFormat1
|
|
123
|
+
| GetAllPromptsResponseFormat2
|
|
124
124
|
| GetAllPromptsResponseFormat3;
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -244,8 +244,8 @@ export type GetAllPromptsModelParameters = {
|
|
|
244
244
|
* 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.
|
|
245
245
|
*/
|
|
246
246
|
responseFormat?:
|
|
247
|
-
| GetAllPromptsResponseFormat2
|
|
248
247
|
| GetAllPromptsResponseFormat1
|
|
248
|
+
| GetAllPromptsResponseFormat2
|
|
249
249
|
| GetAllPromptsResponseFormat3
|
|
250
250
|
| null
|
|
251
251
|
| undefined;
|
|
@@ -805,71 +805,6 @@ export namespace GetAllPromptsResponseFormatPromptsType$ {
|
|
|
805
805
|
GetAllPromptsResponseFormatPromptsType$outboundSchema;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
-
/** @internal */
|
|
809
|
-
export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
810
|
-
GetAllPromptsResponseFormatJsonSchema,
|
|
811
|
-
z.ZodTypeDef,
|
|
812
|
-
unknown
|
|
813
|
-
> = z.object({
|
|
814
|
-
name: z.string(),
|
|
815
|
-
strict: z.boolean().optional(),
|
|
816
|
-
schema: z.record(z.any()),
|
|
817
|
-
});
|
|
818
|
-
|
|
819
|
-
/** @internal */
|
|
820
|
-
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
821
|
-
name: string;
|
|
822
|
-
strict?: boolean | undefined;
|
|
823
|
-
schema: { [k: string]: any };
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
/** @internal */
|
|
827
|
-
export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
828
|
-
GetAllPromptsResponseFormatJsonSchema$Outbound,
|
|
829
|
-
z.ZodTypeDef,
|
|
830
|
-
GetAllPromptsResponseFormatJsonSchema
|
|
831
|
-
> = z.object({
|
|
832
|
-
name: z.string(),
|
|
833
|
-
strict: z.boolean().optional(),
|
|
834
|
-
schema: z.record(z.any()),
|
|
835
|
-
});
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* @internal
|
|
839
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
840
|
-
*/
|
|
841
|
-
export namespace GetAllPromptsResponseFormatJsonSchema$ {
|
|
842
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
843
|
-
export const inboundSchema =
|
|
844
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema;
|
|
845
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
846
|
-
export const outboundSchema =
|
|
847
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema;
|
|
848
|
-
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
|
|
849
|
-
export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
export function getAllPromptsResponseFormatJsonSchemaToJSON(
|
|
853
|
-
getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
|
|
854
|
-
): string {
|
|
855
|
-
return JSON.stringify(
|
|
856
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
|
|
857
|
-
getAllPromptsResponseFormatJsonSchema,
|
|
858
|
-
),
|
|
859
|
-
);
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
export function getAllPromptsResponseFormatJsonSchemaFromJSON(
|
|
863
|
-
jsonString: string,
|
|
864
|
-
): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
|
|
865
|
-
return safeParse(
|
|
866
|
-
jsonString,
|
|
867
|
-
(x) =>
|
|
868
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
869
|
-
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
|
|
873
808
|
/** @internal */
|
|
874
809
|
export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
|
|
875
810
|
GetAllPromptsResponseFormat2,
|
|
@@ -877,19 +812,11 @@ export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
|
|
|
877
812
|
unknown
|
|
878
813
|
> = z.object({
|
|
879
814
|
type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
|
|
880
|
-
json_schema: z.lazy(() =>
|
|
881
|
-
GetAllPromptsResponseFormatJsonSchema$inboundSchema
|
|
882
|
-
),
|
|
883
|
-
}).transform((v) => {
|
|
884
|
-
return remap$(v, {
|
|
885
|
-
"json_schema": "jsonSchema",
|
|
886
|
-
});
|
|
887
815
|
});
|
|
888
816
|
|
|
889
817
|
/** @internal */
|
|
890
818
|
export type GetAllPromptsResponseFormat2$Outbound = {
|
|
891
819
|
type: string;
|
|
892
|
-
json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
893
820
|
};
|
|
894
821
|
|
|
895
822
|
/** @internal */
|
|
@@ -899,13 +826,6 @@ export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
|
|
|
899
826
|
GetAllPromptsResponseFormat2
|
|
900
827
|
> = z.object({
|
|
901
828
|
type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
|
|
902
|
-
jsonSchema: z.lazy(() =>
|
|
903
|
-
GetAllPromptsResponseFormatJsonSchema$outboundSchema
|
|
904
|
-
),
|
|
905
|
-
}).transform((v) => {
|
|
906
|
-
return remap$(v, {
|
|
907
|
-
jsonSchema: "json_schema",
|
|
908
|
-
});
|
|
909
829
|
});
|
|
910
830
|
|
|
911
831
|
/**
|
|
@@ -962,6 +882,71 @@ export namespace GetAllPromptsResponseFormatType$ {
|
|
|
962
882
|
export const outboundSchema = GetAllPromptsResponseFormatType$outboundSchema;
|
|
963
883
|
}
|
|
964
884
|
|
|
885
|
+
/** @internal */
|
|
886
|
+
export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
887
|
+
GetAllPromptsResponseFormatJsonSchema,
|
|
888
|
+
z.ZodTypeDef,
|
|
889
|
+
unknown
|
|
890
|
+
> = z.object({
|
|
891
|
+
name: z.string(),
|
|
892
|
+
strict: z.boolean().optional(),
|
|
893
|
+
schema: z.record(z.any()),
|
|
894
|
+
});
|
|
895
|
+
|
|
896
|
+
/** @internal */
|
|
897
|
+
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
898
|
+
name: string;
|
|
899
|
+
strict?: boolean | undefined;
|
|
900
|
+
schema: { [k: string]: any };
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
/** @internal */
|
|
904
|
+
export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
905
|
+
GetAllPromptsResponseFormatJsonSchema$Outbound,
|
|
906
|
+
z.ZodTypeDef,
|
|
907
|
+
GetAllPromptsResponseFormatJsonSchema
|
|
908
|
+
> = z.object({
|
|
909
|
+
name: z.string(),
|
|
910
|
+
strict: z.boolean().optional(),
|
|
911
|
+
schema: z.record(z.any()),
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
917
|
+
*/
|
|
918
|
+
export namespace GetAllPromptsResponseFormatJsonSchema$ {
|
|
919
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
|
|
920
|
+
export const inboundSchema =
|
|
921
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema;
|
|
922
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
|
|
923
|
+
export const outboundSchema =
|
|
924
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema;
|
|
925
|
+
/** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
|
|
926
|
+
export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export function getAllPromptsResponseFormatJsonSchemaToJSON(
|
|
930
|
+
getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
|
|
931
|
+
): string {
|
|
932
|
+
return JSON.stringify(
|
|
933
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
|
|
934
|
+
getAllPromptsResponseFormatJsonSchema,
|
|
935
|
+
),
|
|
936
|
+
);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export function getAllPromptsResponseFormatJsonSchemaFromJSON(
|
|
940
|
+
jsonString: string,
|
|
941
|
+
): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
|
|
942
|
+
return safeParse(
|
|
943
|
+
jsonString,
|
|
944
|
+
(x) =>
|
|
945
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
946
|
+
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
947
|
+
);
|
|
948
|
+
}
|
|
949
|
+
|
|
965
950
|
/** @internal */
|
|
966
951
|
export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
|
|
967
952
|
GetAllPromptsResponseFormat1,
|
|
@@ -969,11 +954,19 @@ export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
|
|
|
969
954
|
unknown
|
|
970
955
|
> = z.object({
|
|
971
956
|
type: GetAllPromptsResponseFormatType$inboundSchema,
|
|
957
|
+
json_schema: z.lazy(() =>
|
|
958
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema
|
|
959
|
+
),
|
|
960
|
+
}).transform((v) => {
|
|
961
|
+
return remap$(v, {
|
|
962
|
+
"json_schema": "jsonSchema",
|
|
963
|
+
});
|
|
972
964
|
});
|
|
973
965
|
|
|
974
966
|
/** @internal */
|
|
975
967
|
export type GetAllPromptsResponseFormat1$Outbound = {
|
|
976
968
|
type: string;
|
|
969
|
+
json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
977
970
|
};
|
|
978
971
|
|
|
979
972
|
/** @internal */
|
|
@@ -983,6 +976,13 @@ export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
|
|
|
983
976
|
GetAllPromptsResponseFormat1
|
|
984
977
|
> = z.object({
|
|
985
978
|
type: GetAllPromptsResponseFormatType$outboundSchema,
|
|
979
|
+
jsonSchema: z.lazy(() =>
|
|
980
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema
|
|
981
|
+
),
|
|
982
|
+
}).transform((v) => {
|
|
983
|
+
return remap$(v, {
|
|
984
|
+
jsonSchema: "json_schema",
|
|
985
|
+
});
|
|
986
986
|
});
|
|
987
987
|
|
|
988
988
|
/**
|
|
@@ -1024,15 +1024,15 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
|
1024
1024
|
z.ZodTypeDef,
|
|
1025
1025
|
unknown
|
|
1026
1026
|
> = z.union([
|
|
1027
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1028
1027
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1028
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1029
1029
|
z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
|
|
1030
1030
|
]);
|
|
1031
1031
|
|
|
1032
1032
|
/** @internal */
|
|
1033
1033
|
export type GetAllPromptsResponseFormat$Outbound =
|
|
1034
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1035
1034
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1035
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1036
1036
|
| GetAllPromptsResponseFormat3$Outbound;
|
|
1037
1037
|
|
|
1038
1038
|
/** @internal */
|
|
@@ -1041,8 +1041,8 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
|
1041
1041
|
z.ZodTypeDef,
|
|
1042
1042
|
GetAllPromptsResponseFormat
|
|
1043
1043
|
> = z.union([
|
|
1044
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1045
1044
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1045
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1046
1046
|
z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
|
|
1047
1047
|
]);
|
|
1048
1048
|
|
|
@@ -1183,8 +1183,8 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
1183
1183
|
style: z.string().optional(),
|
|
1184
1184
|
responseFormat: z.nullable(
|
|
1185
1185
|
z.union([
|
|
1186
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1187
1186
|
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1187
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1188
1188
|
z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
|
|
1189
1189
|
]),
|
|
1190
1190
|
).optional(),
|
|
@@ -1214,8 +1214,8 @@ export type GetAllPromptsModelParameters$Outbound = {
|
|
|
1214
1214
|
quality?: string | undefined;
|
|
1215
1215
|
style?: string | undefined;
|
|
1216
1216
|
responseFormat?:
|
|
1217
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1218
1217
|
| GetAllPromptsResponseFormat1$Outbound
|
|
1218
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1219
1219
|
| GetAllPromptsResponseFormat3$Outbound
|
|
1220
1220
|
| null
|
|
1221
1221
|
| undefined;
|
|
@@ -1246,8 +1246,8 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
1246
1246
|
style: z.string().optional(),
|
|
1247
1247
|
responseFormat: z.nullable(
|
|
1248
1248
|
z.union([
|
|
1249
|
-
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1250
1249
|
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1250
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1251
1251
|
z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
|
|
1252
1252
|
]),
|
|
1253
1253
|
).optional(),
|
|
@@ -1551,8 +1551,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
1551
1551
|
> = z.object({
|
|
1552
1552
|
_id: z.string(),
|
|
1553
1553
|
description: z.string(),
|
|
1554
|
-
created: z.string().default("2025-08-
|
|
1555
|
-
updated: z.string().default("2025-08-
|
|
1554
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1555
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1556
1556
|
guardrail_config: z.union([
|
|
1557
1557
|
z.lazy(() =>
|
|
1558
1558
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -1595,8 +1595,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
1595
1595
|
> = z.object({
|
|
1596
1596
|
id: z.string(),
|
|
1597
1597
|
description: z.string(),
|
|
1598
|
-
created: z.string().default("2025-08-
|
|
1599
|
-
updated: z.string().default("2025-08-
|
|
1598
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1599
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1600
1600
|
guardrailConfig: z.union([
|
|
1601
1601
|
z.lazy(() =>
|
|
1602
1602
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -1992,8 +1992,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
1992
1992
|
.object({
|
|
1993
1993
|
_id: z.string(),
|
|
1994
1994
|
description: z.string(),
|
|
1995
|
-
created: z.string().default("2025-08-
|
|
1996
|
-
updated: z.string().default("2025-08-
|
|
1995
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1996
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
1997
1997
|
guardrail_config: z.union([
|
|
1998
1998
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
1999
1999
|
z.lazy(() =>
|
|
@@ -2036,8 +2036,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
2036
2036
|
> = z.object({
|
|
2037
2037
|
id: z.string(),
|
|
2038
2038
|
description: z.string(),
|
|
2039
|
-
created: z.string().default("2025-08-
|
|
2040
|
-
updated: z.string().default("2025-08-
|
|
2039
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
2040
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
2041
2041
|
guardrailConfig: z.union([
|
|
2042
2042
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2043
2043
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -5316,8 +5316,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
5316
5316
|
> = z.object({
|
|
5317
5317
|
_id: z.string(),
|
|
5318
5318
|
description: z.string(),
|
|
5319
|
-
created: z.string().default("2025-08-
|
|
5320
|
-
updated: z.string().default("2025-08-
|
|
5319
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5320
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5321
5321
|
guardrail_config: z.union([
|
|
5322
5322
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
5323
5323
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -5427,8 +5427,8 @@ export const DataFunction$outboundSchema: z.ZodType<
|
|
|
5427
5427
|
> = z.object({
|
|
5428
5428
|
id: z.string(),
|
|
5429
5429
|
description: z.string(),
|
|
5430
|
-
created: z.string().default("2025-08-
|
|
5431
|
-
updated: z.string().default("2025-08-
|
|
5430
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5431
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5432
5432
|
guardrailConfig: z.union([
|
|
5433
5433
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
5434
5434
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -5810,8 +5810,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
5810
5810
|
> = z.object({
|
|
5811
5811
|
_id: z.string(),
|
|
5812
5812
|
description: z.string(),
|
|
5813
|
-
created: z.string().default("2025-08-
|
|
5814
|
-
updated: z.string().default("2025-08-
|
|
5813
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5814
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5815
5815
|
guardrail_config: z.union([
|
|
5816
5816
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
5817
5817
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -5849,8 +5849,8 @@ export const DataPython$outboundSchema: z.ZodType<
|
|
|
5849
5849
|
> = z.object({
|
|
5850
5850
|
id: z.string(),
|
|
5851
5851
|
description: z.string(),
|
|
5852
|
-
created: z.string().default("2025-08-
|
|
5853
|
-
updated: z.string().default("2025-08-
|
|
5852
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5853
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
5854
5854
|
guardrailConfig: z.union([
|
|
5855
5855
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
5856
5856
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
|
|
@@ -6196,8 +6196,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
6196
6196
|
> = z.object({
|
|
6197
6197
|
_id: z.string(),
|
|
6198
6198
|
description: z.string(),
|
|
6199
|
-
created: z.string().default("2025-08-
|
|
6200
|
-
updated: z.string().default("2025-08-
|
|
6199
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6200
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6201
6201
|
guardrail_config: z.union([
|
|
6202
6202
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
6203
6203
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -6241,8 +6241,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
|
|
|
6241
6241
|
> = z.object({
|
|
6242
6242
|
id: z.string(),
|
|
6243
6243
|
description: z.string(),
|
|
6244
|
-
created: z.string().default("2025-08-
|
|
6245
|
-
updated: z.string().default("2025-08-
|
|
6244
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6245
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6246
6246
|
guardrailConfig: z.union([
|
|
6247
6247
|
z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
6248
6248
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
|
|
@@ -6607,8 +6607,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
6607
6607
|
> = z.object({
|
|
6608
6608
|
_id: z.string(),
|
|
6609
6609
|
description: z.string(),
|
|
6610
|
-
created: z.string().default("2025-08-
|
|
6611
|
-
updated: z.string().default("2025-08-
|
|
6610
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6611
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6612
6612
|
guardrail_config: z.union([
|
|
6613
6613
|
z.lazy(() =>
|
|
6614
6614
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
|
|
@@ -6650,8 +6650,8 @@ export const DataJSON$outboundSchema: z.ZodType<
|
|
|
6650
6650
|
> = z.object({
|
|
6651
6651
|
id: z.string(),
|
|
6652
6652
|
description: z.string(),
|
|
6653
|
-
created: z.string().default("2025-08-
|
|
6654
|
-
updated: z.string().default("2025-08-
|
|
6653
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6654
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
6655
6655
|
guardrailConfig: z.union([
|
|
6656
6656
|
z.lazy(() =>
|
|
6657
6657
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
|
|
@@ -7033,8 +7033,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
7033
7033
|
z.object({
|
|
7034
7034
|
_id: z.string(),
|
|
7035
7035
|
description: z.string(),
|
|
7036
|
-
created: z.string().default("2025-08-
|
|
7037
|
-
updated: z.string().default("2025-08-
|
|
7036
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
7037
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
7038
7038
|
guardrail_config: z.union([
|
|
7039
7039
|
z.lazy(() =>
|
|
7040
7040
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7078,8 +7078,8 @@ export const DataLLM$outboundSchema: z.ZodType<
|
|
|
7078
7078
|
> = z.object({
|
|
7079
7079
|
id: z.string(),
|
|
7080
7080
|
description: z.string(),
|
|
7081
|
-
created: z.string().default("2025-08-
|
|
7082
|
-
updated: z.string().default("2025-08-
|
|
7081
|
+
created: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
7082
|
+
updated: z.string().default("2025-08-13T12:53:46.195Z"),
|
|
7083
7083
|
guardrailConfig: z.union([
|
|
7084
7084
|
z.lazy(() =>
|
|
7085
7085
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|