@orq-ai/node 3.12.13 → 3.12.14
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/README.md +1 -1
- package/bin/mcp-server.js +113 -112
- package/bin/mcp-server.js.map +32 -32
- 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/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.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 +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- 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/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 +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +90 -92
- package/packages/orq-rc/docs/sdks/agents/README.md +94 -80
- 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/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.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 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- 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/getagent.ts +2 -9
- 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/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
- 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 +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/retrieveaction.ts +14 -16
- 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/runagent.ts +183 -14
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +194 -14
- 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 +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 +28 -28
- package/packages/orq-rc/src/sdk/agents.ts +2 -20
- 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/errors/index.ts +1 -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 +16 -16
- 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/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/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 +16 -16
- package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
- package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
- package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
|
@@ -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-09-
|
|
199
|
+
"2025-09-22T14:20:43.867Z",
|
|
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-09-
|
|
233
|
+
created: z.date().default(() => new Date("2025-09-22T14:20:43.867Z"))
|
|
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-09-
|
|
253
|
+
"2025-09-22T14:20:43.867Z",
|
|
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-09-
|
|
287
|
+
created: z.date().default(() => new Date("2025-09-22T14:20:43.867Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -197,10 +197,6 @@ export type GetAgentResponseBody = {
|
|
|
197
197
|
description: string;
|
|
198
198
|
systemPrompt?: string | undefined;
|
|
199
199
|
instructions: string;
|
|
200
|
-
/**
|
|
201
|
-
* Optional URL to an icon for the agent
|
|
202
|
-
*/
|
|
203
|
-
iconUrl?: string | undefined;
|
|
204
200
|
/**
|
|
205
201
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
206
202
|
*/
|
|
@@ -950,7 +946,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
950
946
|
z.ZodTypeDef,
|
|
951
947
|
unknown
|
|
952
948
|
> = z.object({
|
|
953
|
-
id: z.string().default("
|
|
949
|
+
id: z.string().default("01K5RWRYKBTWN1BNJDA656Y2VN"),
|
|
954
950
|
knowledge_id: z.string(),
|
|
955
951
|
configuration: z.union([
|
|
956
952
|
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
@@ -977,7 +973,7 @@ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
977
973
|
z.ZodTypeDef,
|
|
978
974
|
GetAgentKnowledgeBases
|
|
979
975
|
> = z.object({
|
|
980
|
-
id: z.string().default("
|
|
976
|
+
id: z.string().default("01K5RWRYKBTWN1BNJDA656Y2VN"),
|
|
981
977
|
knowledgeId: z.string(),
|
|
982
978
|
configuration: z.union([
|
|
983
979
|
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
@@ -1057,7 +1053,6 @@ export const GetAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
1057
1053
|
description: z.string(),
|
|
1058
1054
|
system_prompt: z.string().optional(),
|
|
1059
1055
|
instructions: z.string(),
|
|
1060
|
-
iconUrl: z.string().optional(),
|
|
1061
1056
|
status: GetAgentStatus$inboundSchema,
|
|
1062
1057
|
settings: z.lazy(() => GetAgentSettings$inboundSchema).optional(),
|
|
1063
1058
|
model: z.lazy(() => GetAgentModel$inboundSchema),
|
|
@@ -1100,7 +1095,6 @@ export type GetAgentResponseBody$Outbound = {
|
|
|
1100
1095
|
description: string;
|
|
1101
1096
|
system_prompt?: string | undefined;
|
|
1102
1097
|
instructions: string;
|
|
1103
|
-
iconUrl?: string | undefined;
|
|
1104
1098
|
status: string;
|
|
1105
1099
|
settings?: GetAgentSettings$Outbound | undefined;
|
|
1106
1100
|
model: GetAgentModel$Outbound;
|
|
@@ -1132,7 +1126,6 @@ export const GetAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
1132
1126
|
description: z.string(),
|
|
1133
1127
|
systemPrompt: z.string().optional(),
|
|
1134
1128
|
instructions: z.string(),
|
|
1135
|
-
iconUrl: z.string().optional(),
|
|
1136
1129
|
status: GetAgentStatus$outboundSchema,
|
|
1137
1130
|
settings: z.lazy(() => GetAgentSettings$outboundSchema).optional(),
|
|
1138
1131
|
model: z.lazy(() => GetAgentModel$outboundSchema),
|
|
@@ -351,7 +351,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
351
351
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
352
352
|
.optional(),
|
|
353
353
|
updated: z.string().datetime({ offset: true }).default(
|
|
354
|
-
"2025-09-
|
|
354
|
+
"2025-09-22T14:20:40.492Z",
|
|
355
355
|
).transform(v => new Date(v)),
|
|
356
356
|
}).transform((v) => {
|
|
357
357
|
return remap$(v, {
|
|
@@ -386,7 +386,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
386
386
|
isActive: z.boolean(),
|
|
387
387
|
consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
|
|
388
388
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
389
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
389
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
390
390
|
.transform(v => v.toISOString()),
|
|
391
391
|
}).transform((v) => {
|
|
392
392
|
return remap$(v, {
|
|
@@ -1556,8 +1556,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1556
1556
|
> = z.object({
|
|
1557
1557
|
_id: z.string(),
|
|
1558
1558
|
description: z.string(),
|
|
1559
|
-
created: z.string().default("2025-09-
|
|
1560
|
-
updated: z.string().default("2025-09-
|
|
1559
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
1560
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
1561
1561
|
guardrail_config: z.union([
|
|
1562
1562
|
z.lazy(() =>
|
|
1563
1563
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -1600,8 +1600,8 @@ export const DataTypescript$outboundSchema: z.ZodType<
|
|
|
1600
1600
|
> = z.object({
|
|
1601
1601
|
id: z.string(),
|
|
1602
1602
|
description: z.string(),
|
|
1603
|
-
created: z.string().default("2025-09-
|
|
1604
|
-
updated: z.string().default("2025-09-
|
|
1603
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
1604
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
1605
1605
|
guardrailConfig: z.union([
|
|
1606
1606
|
z.lazy(() =>
|
|
1607
1607
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -2002,8 +2002,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
2002
2002
|
> = z.object({
|
|
2003
2003
|
_id: z.string(),
|
|
2004
2004
|
description: z.string(),
|
|
2005
|
-
created: z.string().default("2025-09-
|
|
2006
|
-
updated: z.string().default("2025-09-
|
|
2005
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
2006
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
2007
2007
|
guardrail_config: z.union([
|
|
2008
2008
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
2009
2009
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -2044,8 +2044,8 @@ export const DataRagas$outboundSchema: z.ZodType<
|
|
|
2044
2044
|
> = z.object({
|
|
2045
2045
|
id: z.string(),
|
|
2046
2046
|
description: z.string(),
|
|
2047
|
-
created: z.string().default("2025-09-
|
|
2048
|
-
updated: z.string().default("2025-09-
|
|
2047
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
2048
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
2049
2049
|
guardrailConfig: z.union([
|
|
2050
2050
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2051
2051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -5512,8 +5512,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
5512
5512
|
> = z.object({
|
|
5513
5513
|
_id: z.string(),
|
|
5514
5514
|
description: z.string(),
|
|
5515
|
-
created: z.string().default("2025-09-
|
|
5516
|
-
updated: z.string().default("2025-09-
|
|
5515
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
5516
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
5517
5517
|
guardrail_config: z.union([
|
|
5518
5518
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
5519
5519
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -5623,8 +5623,8 @@ export const DataFunction$outboundSchema: z.ZodType<
|
|
|
5623
5623
|
> = z.object({
|
|
5624
5624
|
id: z.string(),
|
|
5625
5625
|
description: z.string(),
|
|
5626
|
-
created: z.string().default("2025-09-
|
|
5627
|
-
updated: z.string().default("2025-09-
|
|
5626
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
5627
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
5628
5628
|
guardrailConfig: z.union([
|
|
5629
5629
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
5630
5630
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -6006,8 +6006,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
6006
6006
|
> = z.object({
|
|
6007
6007
|
_id: z.string(),
|
|
6008
6008
|
description: z.string(),
|
|
6009
|
-
created: z.string().default("2025-09-
|
|
6010
|
-
updated: z.string().default("2025-09-
|
|
6009
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6010
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6011
6011
|
guardrail_config: z.union([
|
|
6012
6012
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
6013
6013
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -6045,8 +6045,8 @@ export const DataPython$outboundSchema: z.ZodType<
|
|
|
6045
6045
|
> = z.object({
|
|
6046
6046
|
id: z.string(),
|
|
6047
6047
|
description: z.string(),
|
|
6048
|
-
created: z.string().default("2025-09-
|
|
6049
|
-
updated: z.string().default("2025-09-
|
|
6048
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6049
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6050
6050
|
guardrailConfig: z.union([
|
|
6051
6051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
6052
6052
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
|
|
@@ -6392,8 +6392,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
6392
6392
|
> = z.object({
|
|
6393
6393
|
_id: z.string(),
|
|
6394
6394
|
description: z.string(),
|
|
6395
|
-
created: z.string().default("2025-09-
|
|
6396
|
-
updated: z.string().default("2025-09-
|
|
6395
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6396
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6397
6397
|
guardrail_config: z.union([
|
|
6398
6398
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
6399
6399
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -6437,8 +6437,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
|
|
|
6437
6437
|
> = z.object({
|
|
6438
6438
|
id: z.string(),
|
|
6439
6439
|
description: z.string(),
|
|
6440
|
-
created: z.string().default("2025-09-
|
|
6441
|
-
updated: z.string().default("2025-09-
|
|
6440
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6441
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6442
6442
|
guardrailConfig: z.union([
|
|
6443
6443
|
z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
6444
6444
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
|
|
@@ -6803,8 +6803,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
6803
6803
|
> = z.object({
|
|
6804
6804
|
_id: z.string(),
|
|
6805
6805
|
description: z.string(),
|
|
6806
|
-
created: z.string().default("2025-09-
|
|
6807
|
-
updated: z.string().default("2025-09-
|
|
6806
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6807
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6808
6808
|
guardrail_config: z.union([
|
|
6809
6809
|
z.lazy(() =>
|
|
6810
6810
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
|
|
@@ -6846,8 +6846,8 @@ export const DataJSON$outboundSchema: z.ZodType<
|
|
|
6846
6846
|
> = z.object({
|
|
6847
6847
|
id: z.string(),
|
|
6848
6848
|
description: z.string(),
|
|
6849
|
-
created: z.string().default("2025-09-
|
|
6850
|
-
updated: z.string().default("2025-09-
|
|
6849
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
6850
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
6851
6851
|
guardrailConfig: z.union([
|
|
6852
6852
|
z.lazy(() =>
|
|
6853
6853
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
|
|
@@ -7229,8 +7229,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
7229
7229
|
z.object({
|
|
7230
7230
|
_id: z.string(),
|
|
7231
7231
|
description: z.string(),
|
|
7232
|
-
created: z.string().default("2025-09-
|
|
7233
|
-
updated: z.string().default("2025-09-
|
|
7232
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
7233
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
7234
7234
|
guardrail_config: z.union([
|
|
7235
7235
|
z.lazy(() =>
|
|
7236
7236
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7274,8 +7274,8 @@ export const DataLLM$outboundSchema: z.ZodType<
|
|
|
7274
7274
|
> = z.object({
|
|
7275
7275
|
id: z.string(),
|
|
7276
7276
|
description: z.string(),
|
|
7277
|
-
created: z.string().default("2025-09-
|
|
7278
|
-
updated: z.string().default("2025-09-
|
|
7277
|
+
created: z.string().default("2025-09-22T14:20:43.147Z"),
|
|
7278
|
+
updated: z.string().default("2025-09-22T14:20:43.148Z"),
|
|
7279
7279
|
guardrailConfig: z.union([
|
|
7280
7280
|
z.lazy(() =>
|
|
7281
7281
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -108,7 +108,6 @@ export * from "./retrievedatasource.js";
|
|
|
108
108
|
export * from "./retrievememory.js";
|
|
109
109
|
export * from "./retrievememorydocument.js";
|
|
110
110
|
export * from "./retrievememorystore.js";
|
|
111
|
-
export * from "./reviewaction.js";
|
|
112
111
|
export * from "./runagent.js";
|
|
113
112
|
export * from "./searchknowledge.js";
|
|
114
113
|
export * from "./streamrunagent.js";
|
|
@@ -207,10 +207,6 @@ export type ListAgentsData = {
|
|
|
207
207
|
description: string;
|
|
208
208
|
systemPrompt?: string | undefined;
|
|
209
209
|
instructions: string;
|
|
210
|
-
/**
|
|
211
|
-
* Optional URL to an icon for the agent
|
|
212
|
-
*/
|
|
213
|
-
iconUrl?: string | undefined;
|
|
214
210
|
/**
|
|
215
211
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
216
212
|
*/
|
|
@@ -1026,7 +1022,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1026
1022
|
z.ZodTypeDef,
|
|
1027
1023
|
unknown
|
|
1028
1024
|
> = z.object({
|
|
1029
|
-
id: z.string().default("
|
|
1025
|
+
id: z.string().default("01K5RWRYK6QDX0QEJXTW2178DP"),
|
|
1030
1026
|
knowledge_id: z.string(),
|
|
1031
1027
|
configuration: z.union([
|
|
1032
1028
|
z.lazy(() => ListAgentsConfiguration2$inboundSchema),
|
|
@@ -1053,7 +1049,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1053
1049
|
z.ZodTypeDef,
|
|
1054
1050
|
ListAgentsKnowledgeBases
|
|
1055
1051
|
> = z.object({
|
|
1056
|
-
id: z.string().default("
|
|
1052
|
+
id: z.string().default("01K5RWRYK6QDX0QEJXTW2178DP"),
|
|
1057
1053
|
knowledgeId: z.string(),
|
|
1058
1054
|
configuration: z.union([
|
|
1059
1055
|
z.lazy(() => ListAgentsConfiguration2$outboundSchema),
|
|
@@ -1135,7 +1131,6 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
1135
1131
|
description: z.string(),
|
|
1136
1132
|
system_prompt: z.string().optional(),
|
|
1137
1133
|
instructions: z.string(),
|
|
1138
|
-
iconUrl: z.string().optional(),
|
|
1139
1134
|
status: ListAgentsStatus$inboundSchema,
|
|
1140
1135
|
settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
|
|
1141
1136
|
model: z.lazy(() => ListAgentsModel$inboundSchema),
|
|
@@ -1178,7 +1173,6 @@ export type ListAgentsData$Outbound = {
|
|
|
1178
1173
|
description: string;
|
|
1179
1174
|
system_prompt?: string | undefined;
|
|
1180
1175
|
instructions: string;
|
|
1181
|
-
iconUrl?: string | undefined;
|
|
1182
1176
|
status: string;
|
|
1183
1177
|
settings?: ListAgentsSettings$Outbound | undefined;
|
|
1184
1178
|
model: ListAgentsModel$Outbound;
|
|
@@ -1210,7 +1204,6 @@ export const ListAgentsData$outboundSchema: z.ZodType<
|
|
|
1210
1204
|
description: z.string(),
|
|
1211
1205
|
systemPrompt: z.string().optional(),
|
|
1212
1206
|
instructions: z.string(),
|
|
1213
|
-
iconUrl: z.string().optional(),
|
|
1214
1207
|
status: ListAgentsStatus$outboundSchema,
|
|
1215
1208
|
settings: z.lazy(() => ListAgentsSettings$outboundSchema).optional(),
|
|
1216
1209
|
model: z.lazy(() => ListAgentsModel$outboundSchema),
|
|
@@ -464,7 +464,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
464
464
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
465
465
|
.optional(),
|
|
466
466
|
updated: z.string().datetime({ offset: true }).default(
|
|
467
|
-
"2025-09-
|
|
467
|
+
"2025-09-22T14:20:40.492Z",
|
|
468
468
|
).transform(v => new Date(v)),
|
|
469
469
|
}).transform((v) => {
|
|
470
470
|
return remap$(v, {
|
|
@@ -499,7 +499,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
499
499
|
isActive: z.boolean(),
|
|
500
500
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
501
501
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
502
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
502
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
503
503
|
.transform(v => v.toISOString()),
|
|
504
504
|
}).transform((v) => {
|
|
505
505
|
return remap$(v, {
|
|
@@ -352,7 +352,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
352
352
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
353
353
|
.optional(),
|
|
354
354
|
updated: z.string().datetime({ offset: true }).default(
|
|
355
|
-
"2025-09-
|
|
355
|
+
"2025-09-22T14:20:40.492Z",
|
|
356
356
|
).transform(v => new Date(v)),
|
|
357
357
|
metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
|
|
358
358
|
}).transform((v) => {
|
|
@@ -389,7 +389,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
389
389
|
tags: z.array(z.string()).optional(),
|
|
390
390
|
metadata: z.record(z.any()).optional(),
|
|
391
391
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
392
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
392
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
393
393
|
.transform(v => v.toISOString()),
|
|
394
394
|
metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
|
|
395
395
|
}).transform((v) => {
|
|
@@ -3100,7 +3100,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3100
3100
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3101
3101
|
.optional(),
|
|
3102
3102
|
updated: z.string().datetime({ offset: true }).default(
|
|
3103
|
-
"2025-09-
|
|
3103
|
+
"2025-09-22T14:20:40.492Z",
|
|
3104
3104
|
).transform(v => new Date(v)),
|
|
3105
3105
|
}).transform((v) => {
|
|
3106
3106
|
return remap$(v, {
|
|
@@ -3164,7 +3164,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3164
3164
|
createdById: z.string().optional(),
|
|
3165
3165
|
updatedById: z.string().optional(),
|
|
3166
3166
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3167
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3167
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
3168
3168
|
.transform(v => v.toISOString()),
|
|
3169
3169
|
}).transform((v) => {
|
|
3170
3170
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-09-
|
|
256
|
+
"2025-09-22T14:20:40.492Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -285,7 +285,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
285
285
|
z.ZodTypeDef,
|
|
286
286
|
unknown
|
|
287
287
|
> = z.object({
|
|
288
|
-
_id: z.string().default("
|
|
288
|
+
_id: z.string().default("01K5RWRYR8S2EYS00ABE811GS4"),
|
|
289
289
|
display_name: z.string(),
|
|
290
290
|
description: z.string().optional(),
|
|
291
291
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -329,7 +329,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
329
329
|
z.ZodTypeDef,
|
|
330
330
|
ListDatasourcesData
|
|
331
331
|
> = z.object({
|
|
332
|
-
id: z.string().default("
|
|
332
|
+
id: z.string().default("01K5RWRYR8S2EYS00ABE811GS4"),
|
|
333
333
|
displayName: z.string(),
|
|
334
334
|
description: z.string().optional(),
|
|
335
335
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -33,17 +33,17 @@ export type Tool = {
|
|
|
33
33
|
requiresApproval?: boolean | undefined;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export const
|
|
36
|
+
export const Review = {
|
|
37
37
|
Approved: "approved",
|
|
38
38
|
Rejected: "rejected",
|
|
39
39
|
} as const;
|
|
40
|
-
export type
|
|
40
|
+
export type Review = ClosedEnum<typeof Review>;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
|
|
44
44
|
*/
|
|
45
45
|
export type State = {
|
|
46
|
-
review?:
|
|
46
|
+
review?: Review | null | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* The source of the review, where it was approved or rejected
|
|
49
49
|
*/
|
|
@@ -218,30 +218,28 @@ export function toolFromJSON(
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/** @internal */
|
|
221
|
-
export const
|
|
222
|
-
|
|
223
|
-
> = z.nativeEnum(RetrieveActionReview);
|
|
221
|
+
export const Review$inboundSchema: z.ZodNativeEnum<typeof Review> = z
|
|
222
|
+
.nativeEnum(Review);
|
|
224
223
|
|
|
225
224
|
/** @internal */
|
|
226
|
-
export const
|
|
227
|
-
|
|
228
|
-
> = RetrieveActionReview$inboundSchema;
|
|
225
|
+
export const Review$outboundSchema: z.ZodNativeEnum<typeof Review> =
|
|
226
|
+
Review$inboundSchema;
|
|
229
227
|
|
|
230
228
|
/**
|
|
231
229
|
* @internal
|
|
232
230
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
233
231
|
*/
|
|
234
|
-
export namespace
|
|
235
|
-
/** @deprecated use `
|
|
236
|
-
export const inboundSchema =
|
|
237
|
-
/** @deprecated use `
|
|
238
|
-
export const outboundSchema =
|
|
232
|
+
export namespace Review$ {
|
|
233
|
+
/** @deprecated use `Review$inboundSchema` instead. */
|
|
234
|
+
export const inboundSchema = Review$inboundSchema;
|
|
235
|
+
/** @deprecated use `Review$outboundSchema` instead. */
|
|
236
|
+
export const outboundSchema = Review$outboundSchema;
|
|
239
237
|
}
|
|
240
238
|
|
|
241
239
|
/** @internal */
|
|
242
240
|
export const State$inboundSchema: z.ZodType<State, z.ZodTypeDef, unknown> = z
|
|
243
241
|
.object({
|
|
244
|
-
review: z.nullable(
|
|
242
|
+
review: z.nullable(Review$inboundSchema).optional(),
|
|
245
243
|
review_source: z.string().optional(),
|
|
246
244
|
reviewed_by_id: z.string().optional(),
|
|
247
245
|
executed: z.boolean().default(false),
|
|
@@ -272,7 +270,7 @@ export const State$outboundSchema: z.ZodType<
|
|
|
272
270
|
z.ZodTypeDef,
|
|
273
271
|
State
|
|
274
272
|
> = z.object({
|
|
275
|
-
review: z.nullable(
|
|
273
|
+
review: z.nullable(Review$outboundSchema).optional(),
|
|
276
274
|
reviewSource: z.string().optional(),
|
|
277
275
|
reviewedById: z.string().optional(),
|
|
278
276
|
executed: z.boolean().default(false),
|
|
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
127
127
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
128
|
.optional(),
|
|
129
129
|
updated: z.string().datetime({ offset: true }).default(
|
|
130
|
-
"2025-09-
|
|
130
|
+
"2025-09-22T14:20:40.492Z",
|
|
131
131
|
).transform(v => new Date(v)),
|
|
132
132
|
}).transform((v) => {
|
|
133
133
|
return remap$(v, {
|
|
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
165
165
|
tags: z.array(z.string()).optional(),
|
|
166
166
|
metadata: z.record(z.any()).optional(),
|
|
167
167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
168
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
169
169
|
.transform(v => v.toISOString()),
|
|
170
170
|
}).transform((v) => {
|
|
171
171
|
return remap$(v, {
|
|
@@ -2957,7 +2957,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2957
2957
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2958
2958
|
.optional(),
|
|
2959
2959
|
updated: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2025-09-
|
|
2960
|
+
"2025-09-22T14:20:40.492Z",
|
|
2961
2961
|
).transform(v => new Date(v)),
|
|
2962
2962
|
}).transform((v) => {
|
|
2963
2963
|
return remap$(v, {
|
|
@@ -3015,7 +3015,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
3015
3015
|
createdById: z.string().optional(),
|
|
3016
3016
|
updatedById: z.string().optional(),
|
|
3017
3017
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3018
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3018
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
3019
3019
|
.transform(v => v.toISOString()),
|
|
3020
3020
|
}).transform((v) => {
|
|
3021
3021
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-09-
|
|
204
|
+
"2025-09-22T14:20:40.492Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01K5RWRYR99NWEZ4RE6DMXAQP5"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01K5RWRYR99NWEZ4RE6DMXAQP5"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|