@orq-ai/node 3.13.12 → 3.13.13
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 +253 -221
- package/bin/mcp-server.js.map +39 -39
- 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/createagent.d.ts +38 -0
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +35 -1
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- 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 +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- 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/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +15 -15
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +20 -18
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +53 -18
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +54 -19
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.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 +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/prompts/README.md +47 -13
- package/packages/orq-rc/docs/sdks/tools/README.md +7 -3
- 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/promptsCreate.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +4 -4
- package/packages/orq-rc/src/funcs/toolsList.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/toolsList.ts +1 -1
- package/packages/orq-rc/src/models/operations/createagent.ts +73 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- 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 +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +108 -40
- package/packages/orq-rc/src/models/operations/createprompt.ts +4603 -1478
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- 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/getallmemorystores.ts +56 -20
- package/packages/orq-rc/src/models/operations/getallprompts.ts +48 -52
- package/packages/orq-rc/src/models/operations/getalltools.ts +14 -14
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- 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 +8 -8
- 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/retrievememorystore.ts +56 -20
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +30 -24
- package/packages/orq-rc/src/models/operations/updateagent.ts +110 -28
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- 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 +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +52 -20
- package/packages/orq-rc/src/models/operations/updateprompt.ts +5018 -1772
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/prompts.ts +3 -3
- package/packages/orq-rc/src/sdk/tools.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/createagent.ts +73 -0
- package/src/models/operations/createbudget.ts +2 -2
- 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 +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- 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/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +30 -24
- package/src/models/operations/updateagent.ts +110 -28
- package/src/models/operations/updatebudget.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 +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -408,6 +408,17 @@ export type KnowledgeBases = {
|
|
|
408
408
|
knowledgeId: string;
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
+
export type TeamOfAgents = {
|
|
412
|
+
/**
|
|
413
|
+
* The unique key of the agent within the workspace
|
|
414
|
+
*/
|
|
415
|
+
key: string;
|
|
416
|
+
/**
|
|
417
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
418
|
+
*/
|
|
419
|
+
role?: string | undefined;
|
|
420
|
+
};
|
|
421
|
+
|
|
411
422
|
export type CreateAgentRequestBody = {
|
|
412
423
|
/**
|
|
413
424
|
* The path where the agent will be stored in the project structure
|
|
@@ -453,6 +464,10 @@ export type CreateAgentRequestBody = {
|
|
|
453
464
|
* Optional array of knowledge base configurations for the agent to access
|
|
454
465
|
*/
|
|
455
466
|
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
469
|
+
*/
|
|
470
|
+
teamOfAgents?: Array<TeamOfAgents> | undefined;
|
|
456
471
|
};
|
|
457
472
|
|
|
458
473
|
/**
|
|
@@ -2239,6 +2254,59 @@ export function knowledgeBasesFromJSON(
|
|
|
2239
2254
|
);
|
|
2240
2255
|
}
|
|
2241
2256
|
|
|
2257
|
+
/** @internal */
|
|
2258
|
+
export const TeamOfAgents$inboundSchema: z.ZodType<
|
|
2259
|
+
TeamOfAgents,
|
|
2260
|
+
z.ZodTypeDef,
|
|
2261
|
+
unknown
|
|
2262
|
+
> = z.object({
|
|
2263
|
+
key: z.string(),
|
|
2264
|
+
role: z.string().optional(),
|
|
2265
|
+
});
|
|
2266
|
+
|
|
2267
|
+
/** @internal */
|
|
2268
|
+
export type TeamOfAgents$Outbound = {
|
|
2269
|
+
key: string;
|
|
2270
|
+
role?: string | undefined;
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
/** @internal */
|
|
2274
|
+
export const TeamOfAgents$outboundSchema: z.ZodType<
|
|
2275
|
+
TeamOfAgents$Outbound,
|
|
2276
|
+
z.ZodTypeDef,
|
|
2277
|
+
TeamOfAgents
|
|
2278
|
+
> = z.object({
|
|
2279
|
+
key: z.string(),
|
|
2280
|
+
role: z.string().optional(),
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* @internal
|
|
2285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2286
|
+
*/
|
|
2287
|
+
export namespace TeamOfAgents$ {
|
|
2288
|
+
/** @deprecated use `TeamOfAgents$inboundSchema` instead. */
|
|
2289
|
+
export const inboundSchema = TeamOfAgents$inboundSchema;
|
|
2290
|
+
/** @deprecated use `TeamOfAgents$outboundSchema` instead. */
|
|
2291
|
+
export const outboundSchema = TeamOfAgents$outboundSchema;
|
|
2292
|
+
/** @deprecated use `TeamOfAgents$Outbound` instead. */
|
|
2293
|
+
export type Outbound = TeamOfAgents$Outbound;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
|
|
2297
|
+
return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
export function teamOfAgentsFromJSON(
|
|
2301
|
+
jsonString: string,
|
|
2302
|
+
): SafeParseResult<TeamOfAgents, SDKValidationError> {
|
|
2303
|
+
return safeParse(
|
|
2304
|
+
jsonString,
|
|
2305
|
+
(x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2306
|
+
`Failed to parse 'TeamOfAgents' from JSON`,
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2242
2310
|
/** @internal */
|
|
2243
2311
|
export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
2244
2312
|
CreateAgentRequestBody,
|
|
@@ -2257,12 +2325,14 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
2257
2325
|
memory_stores: z.array(z.string()).optional(),
|
|
2258
2326
|
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
2259
2327
|
.optional(),
|
|
2328
|
+
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
2260
2329
|
}).transform((v) => {
|
|
2261
2330
|
return remap$(v, {
|
|
2262
2331
|
"system_prompt": "systemPrompt",
|
|
2263
2332
|
"fallback_models": "fallbackModels",
|
|
2264
2333
|
"memory_stores": "memoryStores",
|
|
2265
2334
|
"knowledge_bases": "knowledgeBases",
|
|
2335
|
+
"team_of_agents": "teamOfAgents",
|
|
2266
2336
|
});
|
|
2267
2337
|
});
|
|
2268
2338
|
|
|
@@ -2279,6 +2349,7 @@ export type CreateAgentRequestBody$Outbound = {
|
|
|
2279
2349
|
settings: Settings$Outbound;
|
|
2280
2350
|
memory_stores?: Array<string> | undefined;
|
|
2281
2351
|
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
2352
|
+
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
2282
2353
|
};
|
|
2283
2354
|
|
|
2284
2355
|
/** @internal */
|
|
@@ -2299,12 +2370,14 @@ export const CreateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
2299
2370
|
memoryStores: z.array(z.string()).optional(),
|
|
2300
2371
|
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
2301
2372
|
.optional(),
|
|
2373
|
+
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
2302
2374
|
}).transform((v) => {
|
|
2303
2375
|
return remap$(v, {
|
|
2304
2376
|
systemPrompt: "system_prompt",
|
|
2305
2377
|
fallbackModels: "fallback_models",
|
|
2306
2378
|
memoryStores: "memory_stores",
|
|
2307
2379
|
knowledgeBases: "knowledge_bases",
|
|
2380
|
+
teamOfAgents: "team_of_agents",
|
|
2308
2381
|
});
|
|
2309
2382
|
});
|
|
2310
2383
|
|
|
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
658
658
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
659
659
|
.optional(),
|
|
660
660
|
updated: z.string().datetime({ offset: true }).default(
|
|
661
|
-
"2025-10-
|
|
661
|
+
"2025-10-21T15:04:06.875Z",
|
|
662
662
|
).transform(v => new Date(v)),
|
|
663
663
|
}).transform((v) => {
|
|
664
664
|
return remap$(v, {
|
|
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
693
693
|
isActive: z.boolean(),
|
|
694
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
695
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
696
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
697
697
|
.transform(v => v.toISOString()),
|
|
698
698
|
}).transform((v) => {
|
|
699
699
|
return remap$(v, {
|
|
@@ -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-10-
|
|
185
|
+
"2025-10-21T15:04:06.875Z",
|
|
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-10-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -217,7 +217,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
217
217
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
218
218
|
.optional(),
|
|
219
219
|
updated: z.string().datetime({ offset: true }).default(
|
|
220
|
-
"2025-10-
|
|
220
|
+
"2025-10-21T15:04:06.875Z",
|
|
221
221
|
).transform(v => new Date(v)),
|
|
222
222
|
}).transform((v) => {
|
|
223
223
|
return remap$(v, {
|
|
@@ -257,7 +257,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
257
257
|
createdById: z.string().optional(),
|
|
258
258
|
updatedById: z.string().optional(),
|
|
259
259
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
260
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
260
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
261
261
|
.transform(v => v.toISOString()),
|
|
262
262
|
}).transform((v) => {
|
|
263
263
|
return remap$(v, {
|
|
@@ -6294,7 +6294,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
6294
6294
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
6295
6295
|
reviewed_by_id: z.string(),
|
|
6296
6296
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6297
|
-
"2025-10-
|
|
6297
|
+
"2025-10-21T15:04:16.417Z",
|
|
6298
6298
|
).transform(v => new Date(v)),
|
|
6299
6299
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
6300
6300
|
values: z.array(z.string()),
|
|
@@ -6330,7 +6330,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
6330
6330
|
humanReviewId: z.string(),
|
|
6331
6331
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
6332
6332
|
reviewedById: z.string(),
|
|
6333
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6333
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.417Z"))
|
|
6334
6334
|
.transform(v => v.toISOString()),
|
|
6335
6335
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
6336
6336
|
values: z.array(z.string()),
|
|
@@ -6445,7 +6445,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
6445
6445
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
6446
6446
|
reviewed_by_id: z.string(),
|
|
6447
6447
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6448
|
-
"2025-10-
|
|
6448
|
+
"2025-10-21T15:04:16.416Z",
|
|
6449
6449
|
).transform(v => new Date(v)),
|
|
6450
6450
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
6451
6451
|
value: z.number(),
|
|
@@ -6481,7 +6481,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
6481
6481
|
humanReviewId: z.string(),
|
|
6482
6482
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
6483
6483
|
reviewedById: z.string(),
|
|
6484
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6484
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.416Z"))
|
|
6485
6485
|
.transform(v => v.toISOString()),
|
|
6486
6486
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
6487
6487
|
value: z.number(),
|
|
@@ -6594,7 +6594,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
6594
6594
|
source: Source$inboundSchema.default("orq"),
|
|
6595
6595
|
reviewed_by_id: z.string(),
|
|
6596
6596
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
6597
|
-
"2025-10-
|
|
6597
|
+
"2025-10-21T15:04:16.416Z",
|
|
6598
6598
|
).transform(v => new Date(v)),
|
|
6599
6599
|
type: EvaluationsType$inboundSchema,
|
|
6600
6600
|
value: z.string(),
|
|
@@ -6630,7 +6630,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
6630
6630
|
humanReviewId: z.string(),
|
|
6631
6631
|
source: Source$outboundSchema.default("orq"),
|
|
6632
6632
|
reviewedById: z.string(),
|
|
6633
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
6633
|
+
reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.416Z"))
|
|
6634
6634
|
.transform(v => v.toISOString()),
|
|
6635
6635
|
type: EvaluationsType$outboundSchema,
|
|
6636
6636
|
value: z.string(),
|
|
@@ -6764,7 +6764,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6764
6764
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6765
6765
|
.optional(),
|
|
6766
6766
|
updated: z.string().datetime({ offset: true }).default(
|
|
6767
|
-
"2025-10-
|
|
6767
|
+
"2025-10-21T15:04:06.875Z",
|
|
6768
6768
|
).transform(v => new Date(v)),
|
|
6769
6769
|
}).transform((v) => {
|
|
6770
6770
|
return remap$(v, {
|
|
@@ -6843,7 +6843,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6843
6843
|
createdById: z.string().optional(),
|
|
6844
6844
|
updatedById: z.string().optional(),
|
|
6845
6845
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6846
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
6846
|
+
updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
|
|
6847
6847
|
.transform(v => v.toISOString()),
|
|
6848
6848
|
}).transform((v) => {
|
|
6849
6849
|
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("01K83MSATKVG65V1626Q5FV34S"),
|
|
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("01K83MSATKVG65V1626Q5FV34S"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -730,7 +730,7 @@ export type CreateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody5
|
|
|
730
730
|
typeof CreateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody523Type
|
|
731
731
|
>;
|
|
732
732
|
|
|
733
|
-
export type
|
|
733
|
+
export type FunctionParams23 = {
|
|
734
734
|
type:
|
|
735
735
|
CreateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody523Type;
|
|
736
736
|
};
|
|
@@ -1059,7 +1059,7 @@ export type CreateEvalResponseBodyFunctionParams =
|
|
|
1059
1059
|
| FunctionParams20
|
|
1060
1060
|
| FunctionParams21
|
|
1061
1061
|
| FunctionParams22
|
|
1062
|
-
|
|
|
1062
|
+
| FunctionParams23
|
|
1063
1063
|
| TwentyFour
|
|
1064
1064
|
| TwentySeven
|
|
1065
1065
|
| TwentyEight
|
|
@@ -1106,7 +1106,7 @@ export type ResponseBodyFunction = {
|
|
|
1106
1106
|
| FunctionParams20
|
|
1107
1107
|
| FunctionParams21
|
|
1108
1108
|
| FunctionParams22
|
|
1109
|
-
|
|
|
1109
|
+
| FunctionParams23
|
|
1110
1110
|
| TwentyFour
|
|
1111
1111
|
| TwentySeven
|
|
1112
1112
|
| TwentyEight
|
|
@@ -3377,8 +3377,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
3377
3377
|
> = z.object({
|
|
3378
3378
|
_id: z.string(),
|
|
3379
3379
|
description: z.string(),
|
|
3380
|
-
created: z.string().default("2025-10-
|
|
3381
|
-
updated: z.string().default("2025-10-
|
|
3380
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3381
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3382
3382
|
guardrail_config: z.union([
|
|
3383
3383
|
z.lazy(() =>
|
|
3384
3384
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3421,8 +3421,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
3421
3421
|
> = z.object({
|
|
3422
3422
|
id: z.string(),
|
|
3423
3423
|
description: z.string(),
|
|
3424
|
-
created: z.string().default("2025-10-
|
|
3425
|
-
updated: z.string().default("2025-10-
|
|
3424
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3425
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3426
3426
|
guardrailConfig: z.union([
|
|
3427
3427
|
z.lazy(() =>
|
|
3428
3428
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3839,8 +3839,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
3839
3839
|
.object({
|
|
3840
3840
|
_id: z.string(),
|
|
3841
3841
|
description: z.string(),
|
|
3842
|
-
created: z.string().default("2025-10-
|
|
3843
|
-
updated: z.string().default("2025-10-
|
|
3842
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3843
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3844
3844
|
guardrail_config: z.union([
|
|
3845
3845
|
z.lazy(() =>
|
|
3846
3846
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3886,8 +3886,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
3886
3886
|
> = z.object({
|
|
3887
3887
|
id: z.string(),
|
|
3888
3888
|
description: z.string(),
|
|
3889
|
-
created: z.string().default("2025-10-
|
|
3890
|
-
updated: z.string().default("2025-10-
|
|
3889
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3890
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
3891
3891
|
guardrailConfig: z.union([
|
|
3892
3892
|
z.lazy(() =>
|
|
3893
3893
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -5274,8 +5274,8 @@ export namespace CreateEvalFunctionParamsEvalsResponse200ApplicationJSONResponse
|
|
|
5274
5274
|
}
|
|
5275
5275
|
|
|
5276
5276
|
/** @internal */
|
|
5277
|
-
export const
|
|
5278
|
-
|
|
5277
|
+
export const FunctionParams23$inboundSchema: z.ZodType<
|
|
5278
|
+
FunctionParams23,
|
|
5279
5279
|
z.ZodTypeDef,
|
|
5280
5280
|
unknown
|
|
5281
5281
|
> = z.object({
|
|
@@ -5284,15 +5284,15 @@ export const TwentyThree$inboundSchema: z.ZodType<
|
|
|
5284
5284
|
});
|
|
5285
5285
|
|
|
5286
5286
|
/** @internal */
|
|
5287
|
-
export type
|
|
5287
|
+
export type FunctionParams23$Outbound = {
|
|
5288
5288
|
type: string;
|
|
5289
5289
|
};
|
|
5290
5290
|
|
|
5291
5291
|
/** @internal */
|
|
5292
|
-
export const
|
|
5293
|
-
|
|
5292
|
+
export const FunctionParams23$outboundSchema: z.ZodType<
|
|
5293
|
+
FunctionParams23$Outbound,
|
|
5294
5294
|
z.ZodTypeDef,
|
|
5295
|
-
|
|
5295
|
+
FunctionParams23
|
|
5296
5296
|
> = z.object({
|
|
5297
5297
|
type:
|
|
5298
5298
|
CreateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody523Type$outboundSchema,
|
|
@@ -5302,26 +5302,30 @@ export const TwentyThree$outboundSchema: z.ZodType<
|
|
|
5302
5302
|
* @internal
|
|
5303
5303
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5304
5304
|
*/
|
|
5305
|
-
export namespace
|
|
5306
|
-
/** @deprecated use `
|
|
5307
|
-
export const inboundSchema =
|
|
5308
|
-
/** @deprecated use `
|
|
5309
|
-
export const outboundSchema =
|
|
5310
|
-
/** @deprecated use `
|
|
5311
|
-
export type Outbound =
|
|
5305
|
+
export namespace FunctionParams23$ {
|
|
5306
|
+
/** @deprecated use `FunctionParams23$inboundSchema` instead. */
|
|
5307
|
+
export const inboundSchema = FunctionParams23$inboundSchema;
|
|
5308
|
+
/** @deprecated use `FunctionParams23$outboundSchema` instead. */
|
|
5309
|
+
export const outboundSchema = FunctionParams23$outboundSchema;
|
|
5310
|
+
/** @deprecated use `FunctionParams23$Outbound` instead. */
|
|
5311
|
+
export type Outbound = FunctionParams23$Outbound;
|
|
5312
5312
|
}
|
|
5313
5313
|
|
|
5314
|
-
export function
|
|
5315
|
-
|
|
5314
|
+
export function functionParams23ToJSON(
|
|
5315
|
+
functionParams23: FunctionParams23,
|
|
5316
|
+
): string {
|
|
5317
|
+
return JSON.stringify(
|
|
5318
|
+
FunctionParams23$outboundSchema.parse(functionParams23),
|
|
5319
|
+
);
|
|
5316
5320
|
}
|
|
5317
5321
|
|
|
5318
|
-
export function
|
|
5322
|
+
export function functionParams23FromJSON(
|
|
5319
5323
|
jsonString: string,
|
|
5320
|
-
): SafeParseResult<
|
|
5324
|
+
): SafeParseResult<FunctionParams23, SDKValidationError> {
|
|
5321
5325
|
return safeParse(
|
|
5322
5326
|
jsonString,
|
|
5323
|
-
(x) =>
|
|
5324
|
-
`Failed to parse '
|
|
5327
|
+
(x) => FunctionParams23$inboundSchema.parse(JSON.parse(x)),
|
|
5328
|
+
`Failed to parse 'FunctionParams23' from JSON`,
|
|
5325
5329
|
);
|
|
5326
5330
|
}
|
|
5327
5331
|
|
|
@@ -7175,7 +7179,7 @@ export const CreateEvalResponseBodyFunctionParams$inboundSchema: z.ZodType<
|
|
|
7175
7179
|
z.lazy(() => FunctionParams20$inboundSchema),
|
|
7176
7180
|
z.lazy(() => FunctionParams21$inboundSchema),
|
|
7177
7181
|
z.lazy(() => FunctionParams22$inboundSchema),
|
|
7178
|
-
z.lazy(() =>
|
|
7182
|
+
z.lazy(() => FunctionParams23$inboundSchema),
|
|
7179
7183
|
z.lazy(() => TwentyFour$inboundSchema),
|
|
7180
7184
|
z.lazy(() => TwentySeven$inboundSchema),
|
|
7181
7185
|
z.lazy(() => TwentyEight$inboundSchema),
|
|
@@ -7214,7 +7218,7 @@ export type CreateEvalResponseBodyFunctionParams$Outbound =
|
|
|
7214
7218
|
| FunctionParams20$Outbound
|
|
7215
7219
|
| FunctionParams21$Outbound
|
|
7216
7220
|
| FunctionParams22$Outbound
|
|
7217
|
-
|
|
|
7221
|
+
| FunctionParams23$Outbound
|
|
7218
7222
|
| TwentyFour$Outbound
|
|
7219
7223
|
| TwentySeven$Outbound
|
|
7220
7224
|
| TwentyEight$Outbound
|
|
@@ -7256,7 +7260,7 @@ export const CreateEvalResponseBodyFunctionParams$outboundSchema: z.ZodType<
|
|
|
7256
7260
|
z.lazy(() => FunctionParams20$outboundSchema),
|
|
7257
7261
|
z.lazy(() => FunctionParams21$outboundSchema),
|
|
7258
7262
|
z.lazy(() => FunctionParams22$outboundSchema),
|
|
7259
|
-
z.lazy(() =>
|
|
7263
|
+
z.lazy(() => FunctionParams23$outboundSchema),
|
|
7260
7264
|
z.lazy(() => TwentyFour$outboundSchema),
|
|
7261
7265
|
z.lazy(() => TwentySeven$outboundSchema),
|
|
7262
7266
|
z.lazy(() => TwentyEight$outboundSchema),
|
|
@@ -7313,8 +7317,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7313
7317
|
> = z.object({
|
|
7314
7318
|
_id: z.string(),
|
|
7315
7319
|
description: z.string(),
|
|
7316
|
-
created: z.string().default("2025-10-
|
|
7317
|
-
updated: z.string().default("2025-10-
|
|
7320
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7321
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7318
7322
|
guardrail_config: z.union([
|
|
7319
7323
|
z.lazy(() =>
|
|
7320
7324
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7349,7 +7353,7 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7349
7353
|
z.lazy(() => FunctionParams20$inboundSchema),
|
|
7350
7354
|
z.lazy(() => FunctionParams21$inboundSchema),
|
|
7351
7355
|
z.lazy(() => FunctionParams22$inboundSchema),
|
|
7352
|
-
z.lazy(() =>
|
|
7356
|
+
z.lazy(() => FunctionParams23$inboundSchema),
|
|
7353
7357
|
z.lazy(() => TwentyFour$inboundSchema),
|
|
7354
7358
|
z.lazy(() => TwentySeven$inboundSchema),
|
|
7355
7359
|
z.lazy(() => TwentyEight$inboundSchema),
|
|
@@ -7406,7 +7410,7 @@ export type ResponseBodyFunction$Outbound = {
|
|
|
7406
7410
|
| FunctionParams20$Outbound
|
|
7407
7411
|
| FunctionParams21$Outbound
|
|
7408
7412
|
| FunctionParams22$Outbound
|
|
7409
|
-
|
|
|
7413
|
+
| FunctionParams23$Outbound
|
|
7410
7414
|
| TwentyFour$Outbound
|
|
7411
7415
|
| TwentySeven$Outbound
|
|
7412
7416
|
| TwentyEight$Outbound
|
|
@@ -7428,8 +7432,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7428
7432
|
> = z.object({
|
|
7429
7433
|
id: z.string(),
|
|
7430
7434
|
description: z.string(),
|
|
7431
|
-
created: z.string().default("2025-10-
|
|
7432
|
-
updated: z.string().default("2025-10-
|
|
7435
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7436
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7433
7437
|
guardrailConfig: z.union([
|
|
7434
7438
|
z.lazy(() =>
|
|
7435
7439
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -7465,7 +7469,7 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7465
7469
|
z.lazy(() => FunctionParams20$outboundSchema),
|
|
7466
7470
|
z.lazy(() => FunctionParams21$outboundSchema),
|
|
7467
7471
|
z.lazy(() => FunctionParams22$outboundSchema),
|
|
7468
|
-
z.lazy(() =>
|
|
7472
|
+
z.lazy(() => FunctionParams23$outboundSchema),
|
|
7469
7473
|
z.lazy(() => TwentyFour$outboundSchema),
|
|
7470
7474
|
z.lazy(() => TwentySeven$outboundSchema),
|
|
7471
7475
|
z.lazy(() => TwentyEight$outboundSchema),
|
|
@@ -7869,8 +7873,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
7869
7873
|
> = z.object({
|
|
7870
7874
|
_id: z.string(),
|
|
7871
7875
|
description: z.string(),
|
|
7872
|
-
created: z.string().default("2025-10-
|
|
7873
|
-
updated: z.string().default("2025-10-
|
|
7876
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7877
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7874
7878
|
guardrail_config: z.union([
|
|
7875
7879
|
z.lazy(() =>
|
|
7876
7880
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7912,8 +7916,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
7912
7916
|
> = z.object({
|
|
7913
7917
|
id: z.string(),
|
|
7914
7918
|
description: z.string(),
|
|
7915
|
-
created: z.string().default("2025-10-
|
|
7916
|
-
updated: z.string().default("2025-10-
|
|
7919
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7920
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
7917
7921
|
guardrailConfig: z.union([
|
|
7918
7922
|
z.lazy(() =>
|
|
7919
7923
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8328,8 +8332,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8328
8332
|
> = z.object({
|
|
8329
8333
|
_id: z.string(),
|
|
8330
8334
|
description: z.string(),
|
|
8331
|
-
created: z.string().default("2025-10-
|
|
8332
|
-
updated: z.string().default("2025-10-
|
|
8335
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8336
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8333
8337
|
guardrail_config: z.union([
|
|
8334
8338
|
z.lazy(() =>
|
|
8335
8339
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8377,8 +8381,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8377
8381
|
> = z.object({
|
|
8378
8382
|
id: z.string(),
|
|
8379
8383
|
description: z.string(),
|
|
8380
|
-
created: z.string().default("2025-10-
|
|
8381
|
-
updated: z.string().default("2025-10-
|
|
8384
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8385
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8382
8386
|
guardrailConfig: z.union([
|
|
8383
8387
|
z.lazy(() =>
|
|
8384
8388
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -8755,8 +8759,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
8755
8759
|
> = z.object({
|
|
8756
8760
|
_id: z.string(),
|
|
8757
8761
|
description: z.string(),
|
|
8758
|
-
created: z.string().default("2025-10-
|
|
8759
|
-
updated: z.string().default("2025-10-
|
|
8762
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8763
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8760
8764
|
guardrail_config: z.union([
|
|
8761
8765
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
8762
8766
|
z.lazy(() =>
|
|
@@ -8796,8 +8800,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
8796
8800
|
> = z.object({
|
|
8797
8801
|
id: z.string(),
|
|
8798
8802
|
description: z.string(),
|
|
8799
|
-
created: z.string().default("2025-10-
|
|
8800
|
-
updated: z.string().default("2025-10-
|
|
8803
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8804
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
8801
8805
|
guardrailConfig: z.union([
|
|
8802
8806
|
z.lazy(() =>
|
|
8803
8807
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -9152,8 +9156,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
9152
9156
|
> = z.object({
|
|
9153
9157
|
_id: z.string(),
|
|
9154
9158
|
description: z.string(),
|
|
9155
|
-
created: z.string().default("2025-10-
|
|
9156
|
-
updated: z.string().default("2025-10-
|
|
9159
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
9160
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
9157
9161
|
guardrail_config: z.union([
|
|
9158
9162
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
9159
9163
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9193,8 +9197,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9193
9197
|
> = z.object({
|
|
9194
9198
|
id: z.string(),
|
|
9195
9199
|
description: z.string(),
|
|
9196
|
-
created: z.string().default("2025-10-
|
|
9197
|
-
updated: z.string().default("2025-10-
|
|
9200
|
+
created: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
9201
|
+
updated: z.string().default("2025-10-21T15:04:09.282Z"),
|
|
9198
9202
|
guardrailConfig: z.union([
|
|
9199
9203
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9200
9204
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|