@orq-ai/node 3.9.20 → 3.9.22
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 +112 -130
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/deployments.d.ts +2 -23
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +10 -35
- package/models/components/deployments.js.map +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/deploymentgetconfig.d.ts +2 -23
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +13 -37
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2 -23
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -35
- package/models/operations/deploymentstream.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/getevals.js +28 -28
- 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/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/package.json +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/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/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/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/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +4 -47
- 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/deploymentgetconfig.ts +4 -47
- package/src/models/operations/deploymentstream.ts +4 -54
- 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/getevals.ts +28 -28
- 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/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
|
@@ -2674,8 +2674,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2674
2674
|
> = z.object({
|
|
2675
2675
|
_id: z.string(),
|
|
2676
2676
|
description: z.string(),
|
|
2677
|
-
created: z.string().default("2025-07-
|
|
2678
|
-
updated: z.string().default("2025-07-
|
|
2677
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
2678
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
2679
2679
|
guardrail_config: z.union([
|
|
2680
2680
|
z.lazy(() =>
|
|
2681
2681
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2717,8 +2717,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2717
2717
|
> = z.object({
|
|
2718
2718
|
id: z.string(),
|
|
2719
2719
|
description: z.string(),
|
|
2720
|
-
created: z.string().default("2025-07-
|
|
2721
|
-
updated: z.string().default("2025-07-
|
|
2720
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
2721
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
2722
2722
|
guardrailConfig: z.union([
|
|
2723
2723
|
z.lazy(() =>
|
|
2724
2724
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -3139,8 +3139,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3139
3139
|
> = z.object({
|
|
3140
3140
|
_id: z.string(),
|
|
3141
3141
|
description: z.string(),
|
|
3142
|
-
created: z.string().default("2025-07-
|
|
3143
|
-
updated: z.string().default("2025-07-
|
|
3142
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3143
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3144
3144
|
guardrail_config: z.union([
|
|
3145
3145
|
z.lazy(() =>
|
|
3146
3146
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -3188,8 +3188,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
3188
3188
|
> = z.object({
|
|
3189
3189
|
id: z.string(),
|
|
3190
3190
|
description: z.string(),
|
|
3191
|
-
created: z.string().default("2025-07-
|
|
3192
|
-
updated: z.string().default("2025-07-
|
|
3191
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3192
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3193
3193
|
guardrailConfig: z.union([
|
|
3194
3194
|
z.lazy(() =>
|
|
3195
3195
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3579,8 +3579,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3579
3579
|
> = z.object({
|
|
3580
3580
|
_id: z.string(),
|
|
3581
3581
|
description: z.string(),
|
|
3582
|
-
created: z.string().default("2025-07-
|
|
3583
|
-
updated: z.string().default("2025-07-
|
|
3582
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3583
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3584
3584
|
guardrail_config: z.union([
|
|
3585
3585
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3586
3586
|
z.lazy(() =>
|
|
@@ -3620,8 +3620,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3620
3620
|
> = z.object({
|
|
3621
3621
|
id: z.string(),
|
|
3622
3622
|
description: z.string(),
|
|
3623
|
-
created: z.string().default("2025-07-
|
|
3624
|
-
updated: z.string().default("2025-07-
|
|
3623
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3624
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3625
3625
|
guardrailConfig: z.union([
|
|
3626
3626
|
z.lazy(() =>
|
|
3627
3627
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3979,8 +3979,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3979
3979
|
> = z.object({
|
|
3980
3980
|
_id: z.string(),
|
|
3981
3981
|
description: z.string(),
|
|
3982
|
-
created: z.string().default("2025-07-
|
|
3983
|
-
updated: z.string().default("2025-07-
|
|
3982
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3983
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
3984
3984
|
guardrail_config: z.union([
|
|
3985
3985
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3986
3986
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4020,8 +4020,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
4020
4020
|
> = z.object({
|
|
4021
4021
|
id: z.string(),
|
|
4022
4022
|
description: z.string(),
|
|
4023
|
-
created: z.string().default("2025-07-
|
|
4024
|
-
updated: z.string().default("2025-07-
|
|
4023
|
+
created: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
4024
|
+
updated: z.string().default("2025-07-25T09:42:11.510Z"),
|
|
4025
4025
|
guardrailConfig: z.union([
|
|
4026
4026
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4027
4027
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.9.
|
|
71
|
+
sdkVersion: "3.9.22",
|
|
72
72
|
genVersion: "2.664.0",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.9.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.9.22 2.664.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type Inputs = string | number | boolean;
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* The role of the messages author, in this case tool.
|
|
16
14
|
*/
|
|
@@ -1159,7 +1157,7 @@ export type Deployments = {
|
|
|
1159
1157
|
/**
|
|
1160
1158
|
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
1161
1159
|
*/
|
|
1162
|
-
inputs?: { [k: string]:
|
|
1160
|
+
inputs?: { [k: string]: any } | undefined;
|
|
1163
1161
|
/**
|
|
1164
1162
|
* Key-value pairs that match your data model and fields declared in your deployment routing configuration
|
|
1165
1163
|
*/
|
|
@@ -1223,47 +1221,6 @@ export type Deployments = {
|
|
|
1223
1221
|
} | undefined;
|
|
1224
1222
|
};
|
|
1225
1223
|
|
|
1226
|
-
/** @internal */
|
|
1227
|
-
export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
|
|
1228
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
1229
|
-
|
|
1230
|
-
/** @internal */
|
|
1231
|
-
export type Inputs$Outbound = string | number | boolean;
|
|
1232
|
-
|
|
1233
|
-
/** @internal */
|
|
1234
|
-
export const Inputs$outboundSchema: z.ZodType<
|
|
1235
|
-
Inputs$Outbound,
|
|
1236
|
-
z.ZodTypeDef,
|
|
1237
|
-
Inputs
|
|
1238
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* @internal
|
|
1242
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1243
|
-
*/
|
|
1244
|
-
export namespace Inputs$ {
|
|
1245
|
-
/** @deprecated use `Inputs$inboundSchema` instead. */
|
|
1246
|
-
export const inboundSchema = Inputs$inboundSchema;
|
|
1247
|
-
/** @deprecated use `Inputs$outboundSchema` instead. */
|
|
1248
|
-
export const outboundSchema = Inputs$outboundSchema;
|
|
1249
|
-
/** @deprecated use `Inputs$Outbound` instead. */
|
|
1250
|
-
export type Outbound = Inputs$Outbound;
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
export function inputsToJSON(inputs: Inputs): string {
|
|
1254
|
-
return JSON.stringify(Inputs$outboundSchema.parse(inputs));
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
export function inputsFromJSON(
|
|
1258
|
-
jsonString: string,
|
|
1259
|
-
): SafeParseResult<Inputs, SDKValidationError> {
|
|
1260
|
-
return safeParse(
|
|
1261
|
-
jsonString,
|
|
1262
|
-
(x) => Inputs$inboundSchema.parse(JSON.parse(x)),
|
|
1263
|
-
`Failed to parse 'Inputs' from JSON`,
|
|
1264
|
-
);
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
1224
|
/** @internal */
|
|
1268
1225
|
export const DeploymentsPrefixMessages5Role$inboundSchema: z.ZodNativeEnum<
|
|
1269
1226
|
typeof DeploymentsPrefixMessages5Role
|
|
@@ -7105,7 +7062,7 @@ export const Deployments$inboundSchema: z.ZodType<
|
|
|
7105
7062
|
unknown
|
|
7106
7063
|
> = z.object({
|
|
7107
7064
|
key: z.string(),
|
|
7108
|
-
inputs: z.record(z.
|
|
7065
|
+
inputs: z.record(z.any()).optional(),
|
|
7109
7066
|
context: z.record(z.any()).optional(),
|
|
7110
7067
|
prefix_messages: z.array(
|
|
7111
7068
|
z.union([
|
|
@@ -7159,7 +7116,7 @@ export const Deployments$inboundSchema: z.ZodType<
|
|
|
7159
7116
|
/** @internal */
|
|
7160
7117
|
export type Deployments$Outbound = {
|
|
7161
7118
|
key: string;
|
|
7162
|
-
inputs?: { [k: string]:
|
|
7119
|
+
inputs?: { [k: string]: any } | undefined;
|
|
7163
7120
|
context?: { [k: string]: any } | undefined;
|
|
7164
7121
|
prefix_messages?:
|
|
7165
7122
|
| Array<
|
|
@@ -7210,7 +7167,7 @@ export const Deployments$outboundSchema: z.ZodType<
|
|
|
7210
7167
|
Deployments
|
|
7211
7168
|
> = z.object({
|
|
7212
7169
|
key: z.string(),
|
|
7213
|
-
inputs: z.record(z.
|
|
7170
|
+
inputs: z.record(z.any()).optional(),
|
|
7214
7171
|
context: z.record(z.any()).optional(),
|
|
7215
7172
|
prefixMessages: z.array(
|
|
7216
7173
|
z.union([
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-07-
|
|
185
|
+
"2025-07-25T10:00:00.471Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-07-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-07-25T10:00:00.471Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-07-
|
|
214
|
+
"2025-07-25T10:00:00.471Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-07-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-07-25T10:00:00.471Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -5111,7 +5111,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5111
5111
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5112
5112
|
.optional(),
|
|
5113
5113
|
updated: z.string().datetime({ offset: true }).default(
|
|
5114
|
-
"2025-07-
|
|
5114
|
+
"2025-07-25T10:00:00.471Z",
|
|
5115
5115
|
).transform(v => new Date(v)),
|
|
5116
5116
|
}).transform((v) => {
|
|
5117
5117
|
return remap$(v, {
|
|
@@ -5175,7 +5175,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5175
5175
|
createdById: z.string().optional(),
|
|
5176
5176
|
updatedById: z.string().optional(),
|
|
5177
5177
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5178
|
-
updated: z.date().default(() => new Date("2025-07-
|
|
5178
|
+
updated: z.date().default(() => new Date("2025-07-25T10:00:00.471Z"))
|
|
5179
5179
|
.transform(v => v.toISOString()),
|
|
5180
5180
|
}).transform((v) => {
|
|
5181
5181
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01K10GD6X70WERK18YKYE1A86X"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01K10GD6X70WERK18YKYE1A86X"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2399
2399
|
> = z.object({
|
|
2400
2400
|
_id: z.string(),
|
|
2401
2401
|
description: z.string(),
|
|
2402
|
-
created: z.string().default("2025-07-
|
|
2403
|
-
updated: z.string().default("2025-07-
|
|
2402
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2403
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2404
2404
|
guardrail_config: z.union([
|
|
2405
2405
|
z.lazy(() =>
|
|
2406
2406
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2442
2442
|
> = z.object({
|
|
2443
2443
|
id: z.string(),
|
|
2444
2444
|
description: z.string(),
|
|
2445
|
-
created: z.string().default("2025-07-
|
|
2446
|
-
updated: z.string().default("2025-07-
|
|
2445
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2446
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2447
2447
|
guardrailConfig: z.union([
|
|
2448
2448
|
z.lazy(() =>
|
|
2449
2449
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2856
2856
|
> = z.object({
|
|
2857
2857
|
_id: z.string(),
|
|
2858
2858
|
description: z.string(),
|
|
2859
|
-
created: z.string().default("2025-07-
|
|
2860
|
-
updated: z.string().default("2025-07-
|
|
2859
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2860
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2861
2861
|
guardrail_config: z.union([
|
|
2862
2862
|
z.lazy(() =>
|
|
2863
2863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2905
2905
|
> = z.object({
|
|
2906
2906
|
id: z.string(),
|
|
2907
2907
|
description: z.string(),
|
|
2908
|
-
created: z.string().default("2025-07-
|
|
2909
|
-
updated: z.string().default("2025-07-
|
|
2908
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2909
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
2910
2910
|
guardrailConfig: z.union([
|
|
2911
2911
|
z.lazy(() =>
|
|
2912
2912
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3283
3283
|
> = z.object({
|
|
3284
3284
|
_id: z.string(),
|
|
3285
3285
|
description: z.string(),
|
|
3286
|
-
created: z.string().default("2025-07-
|
|
3287
|
-
updated: z.string().default("2025-07-
|
|
3286
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3287
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3288
3288
|
guardrail_config: z.union([
|
|
3289
3289
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3290
3290
|
z.lazy(() =>
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-07-
|
|
3328
|
-
updated: z.string().default("2025-07-
|
|
3327
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3328
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3329
3329
|
guardrailConfig: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3680
3680
|
> = z.object({
|
|
3681
3681
|
_id: z.string(),
|
|
3682
3682
|
description: z.string(),
|
|
3683
|
-
created: z.string().default("2025-07-
|
|
3684
|
-
updated: z.string().default("2025-07-
|
|
3683
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3684
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3685
3685
|
guardrail_config: z.union([
|
|
3686
3686
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3687
3687
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
3721
3721
|
> = z.object({
|
|
3722
3722
|
id: z.string(),
|
|
3723
3723
|
description: z.string(),
|
|
3724
|
-
created: z.string().default("2025-07-
|
|
3725
|
-
updated: z.string().default("2025-07-
|
|
3724
|
+
created: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3725
|
+
updated: z.string().default("2025-07-25T10:00:02.717Z"),
|
|
3726
3726
|
guardrailConfig: z.union([
|
|
3727
3727
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
3728
3728
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type Inputs = string | number | boolean;
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* The role of the messages author, in this case tool.
|
|
16
14
|
*/
|
|
@@ -1169,7 +1167,7 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1169
1167
|
/**
|
|
1170
1168
|
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
1171
1169
|
*/
|
|
1172
|
-
inputs?: { [k: string]:
|
|
1170
|
+
inputs?: { [k: string]: any } | undefined;
|
|
1173
1171
|
/**
|
|
1174
1172
|
* Key-value pairs that match your data model and fields declared in your deployment routing configuration
|
|
1175
1173
|
*/
|
|
@@ -1665,47 +1663,6 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1665
1663
|
tools?: Array<Tools> | undefined;
|
|
1666
1664
|
};
|
|
1667
1665
|
|
|
1668
|
-
/** @internal */
|
|
1669
|
-
export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
|
|
1670
|
-
.union([z.string(), z.number(), z.boolean()]);
|
|
1671
|
-
|
|
1672
|
-
/** @internal */
|
|
1673
|
-
export type Inputs$Outbound = string | number | boolean;
|
|
1674
|
-
|
|
1675
|
-
/** @internal */
|
|
1676
|
-
export const Inputs$outboundSchema: z.ZodType<
|
|
1677
|
-
Inputs$Outbound,
|
|
1678
|
-
z.ZodTypeDef,
|
|
1679
|
-
Inputs
|
|
1680
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* @internal
|
|
1684
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1685
|
-
*/
|
|
1686
|
-
export namespace Inputs$ {
|
|
1687
|
-
/** @deprecated use `Inputs$inboundSchema` instead. */
|
|
1688
|
-
export const inboundSchema = Inputs$inboundSchema;
|
|
1689
|
-
/** @deprecated use `Inputs$outboundSchema` instead. */
|
|
1690
|
-
export const outboundSchema = Inputs$outboundSchema;
|
|
1691
|
-
/** @deprecated use `Inputs$Outbound` instead. */
|
|
1692
|
-
export type Outbound = Inputs$Outbound;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
export function inputsToJSON(inputs: Inputs): string {
|
|
1696
|
-
return JSON.stringify(Inputs$outboundSchema.parse(inputs));
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
export function inputsFromJSON(
|
|
1700
|
-
jsonString: string,
|
|
1701
|
-
): SafeParseResult<Inputs, SDKValidationError> {
|
|
1702
|
-
return safeParse(
|
|
1703
|
-
jsonString,
|
|
1704
|
-
(x) => Inputs$inboundSchema.parse(JSON.parse(x)),
|
|
1705
|
-
`Failed to parse 'Inputs' from JSON`,
|
|
1706
|
-
);
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
1666
|
/** @internal */
|
|
1710
1667
|
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema:
|
|
1711
1668
|
z.ZodNativeEnum<
|
|
@@ -7647,7 +7604,7 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
7647
7604
|
unknown
|
|
7648
7605
|
> = z.object({
|
|
7649
7606
|
key: z.string(),
|
|
7650
|
-
inputs: z.record(z.
|
|
7607
|
+
inputs: z.record(z.any()).optional(),
|
|
7651
7608
|
context: z.record(z.any()).optional(),
|
|
7652
7609
|
prefix_messages: z.array(
|
|
7653
7610
|
z.union([
|
|
@@ -7701,7 +7658,7 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
7701
7658
|
/** @internal */
|
|
7702
7659
|
export type DeploymentGetConfigRequestBody$Outbound = {
|
|
7703
7660
|
key: string;
|
|
7704
|
-
inputs?: { [k: string]:
|
|
7661
|
+
inputs?: { [k: string]: any } | undefined;
|
|
7705
7662
|
context?: { [k: string]: any } | undefined;
|
|
7706
7663
|
prefix_messages?:
|
|
7707
7664
|
| Array<
|
|
@@ -7748,7 +7705,7 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
7748
7705
|
DeploymentGetConfigRequestBody
|
|
7749
7706
|
> = z.object({
|
|
7750
7707
|
key: z.string(),
|
|
7751
|
-
inputs: z.record(z.
|
|
7708
|
+
inputs: z.record(z.any()).optional(),
|
|
7752
7709
|
context: z.record(z.any()).optional(),
|
|
7753
7710
|
prefixMessages: z.array(
|
|
7754
7711
|
z.union([
|
|
@@ -14,8 +14,6 @@ export type DeploymentStreamGlobals = {
|
|
|
14
14
|
contactId?: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export type DeploymentStreamInputs = string | number | boolean;
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* The role of the messages author, in this case tool.
|
|
21
19
|
*/
|
|
@@ -1253,7 +1251,7 @@ export type DeploymentStreamRequestBody = {
|
|
|
1253
1251
|
/**
|
|
1254
1252
|
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
1255
1253
|
*/
|
|
1256
|
-
inputs?: { [k: string]:
|
|
1254
|
+
inputs?: { [k: string]: any } | undefined;
|
|
1257
1255
|
/**
|
|
1258
1256
|
* Key-value pairs that match your data model and fields declared in your deployment routing configuration
|
|
1259
1257
|
*/
|
|
@@ -1639,54 +1637,6 @@ export function deploymentStreamGlobalsFromJSON(
|
|
|
1639
1637
|
);
|
|
1640
1638
|
}
|
|
1641
1639
|
|
|
1642
|
-
/** @internal */
|
|
1643
|
-
export const DeploymentStreamInputs$inboundSchema: z.ZodType<
|
|
1644
|
-
DeploymentStreamInputs,
|
|
1645
|
-
z.ZodTypeDef,
|
|
1646
|
-
unknown
|
|
1647
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1648
|
-
|
|
1649
|
-
/** @internal */
|
|
1650
|
-
export type DeploymentStreamInputs$Outbound = string | number | boolean;
|
|
1651
|
-
|
|
1652
|
-
/** @internal */
|
|
1653
|
-
export const DeploymentStreamInputs$outboundSchema: z.ZodType<
|
|
1654
|
-
DeploymentStreamInputs$Outbound,
|
|
1655
|
-
z.ZodTypeDef,
|
|
1656
|
-
DeploymentStreamInputs
|
|
1657
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1658
|
-
|
|
1659
|
-
/**
|
|
1660
|
-
* @internal
|
|
1661
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1662
|
-
*/
|
|
1663
|
-
export namespace DeploymentStreamInputs$ {
|
|
1664
|
-
/** @deprecated use `DeploymentStreamInputs$inboundSchema` instead. */
|
|
1665
|
-
export const inboundSchema = DeploymentStreamInputs$inboundSchema;
|
|
1666
|
-
/** @deprecated use `DeploymentStreamInputs$outboundSchema` instead. */
|
|
1667
|
-
export const outboundSchema = DeploymentStreamInputs$outboundSchema;
|
|
1668
|
-
/** @deprecated use `DeploymentStreamInputs$Outbound` instead. */
|
|
1669
|
-
export type Outbound = DeploymentStreamInputs$Outbound;
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
export function deploymentStreamInputsToJSON(
|
|
1673
|
-
deploymentStreamInputs: DeploymentStreamInputs,
|
|
1674
|
-
): string {
|
|
1675
|
-
return JSON.stringify(
|
|
1676
|
-
DeploymentStreamInputs$outboundSchema.parse(deploymentStreamInputs),
|
|
1677
|
-
);
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
export function deploymentStreamInputsFromJSON(
|
|
1681
|
-
jsonString: string,
|
|
1682
|
-
): SafeParseResult<DeploymentStreamInputs, SDKValidationError> {
|
|
1683
|
-
return safeParse(
|
|
1684
|
-
jsonString,
|
|
1685
|
-
(x) => DeploymentStreamInputs$inboundSchema.parse(JSON.parse(x)),
|
|
1686
|
-
`Failed to parse 'DeploymentStreamInputs' from JSON`,
|
|
1687
|
-
);
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
1640
|
/** @internal */
|
|
1691
1641
|
export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema:
|
|
1692
1642
|
z.ZodNativeEnum<
|
|
@@ -8404,7 +8354,7 @@ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
|
|
|
8404
8354
|
unknown
|
|
8405
8355
|
> = z.object({
|
|
8406
8356
|
key: z.string(),
|
|
8407
|
-
inputs: z.record(z.
|
|
8357
|
+
inputs: z.record(z.any()).optional(),
|
|
8408
8358
|
context: z.record(z.any()).optional(),
|
|
8409
8359
|
prefix_messages: z.array(
|
|
8410
8360
|
z.union([
|
|
@@ -8462,7 +8412,7 @@ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
|
|
|
8462
8412
|
/** @internal */
|
|
8463
8413
|
export type DeploymentStreamRequestBody$Outbound = {
|
|
8464
8414
|
key: string;
|
|
8465
|
-
inputs?: { [k: string]:
|
|
8415
|
+
inputs?: { [k: string]: any } | undefined;
|
|
8466
8416
|
context?: { [k: string]: any } | undefined;
|
|
8467
8417
|
prefix_messages?:
|
|
8468
8418
|
| Array<
|
|
@@ -8513,7 +8463,7 @@ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
|
|
|
8513
8463
|
DeploymentStreamRequestBody
|
|
8514
8464
|
> = z.object({
|
|
8515
8465
|
key: z.string(),
|
|
8516
|
-
inputs: z.record(z.
|
|
8466
|
+
inputs: z.record(z.any()).optional(),
|
|
8517
8467
|
context: z.record(z.any()).optional(),
|
|
8518
8468
|
prefixMessages: z.array(
|
|
8519
8469
|
z.union([
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-07-
|
|
149
|
+
"2025-07-25T10:00:03.611Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-07-
|
|
183
|
+
created: z.date().default(() => new Date("2025-07-25T10:00:03.611Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -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-07-
|
|
199
|
+
"2025-07-25T10:00:03.611Z",
|
|
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-07-
|
|
233
|
+
created: z.date().default(() => new Date("2025-07-25T10:00:03.611Z"))
|
|
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-07-
|
|
253
|
+
"2025-07-25T10:00:03.611Z",
|
|
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-07-
|
|
287
|
+
created: z.date().default(() => new Date("2025-07-25T10:00:03.611Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|