@orq-ai/node 3.12.12 → 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 +126 -232
- package/bin/mcp-server.js.map +33 -33
- package/docs/sdks/knowledge/README.md +12 -0
- 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/searchknowledge.d.ts +17 -246
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +16 -167
- package/models/operations/searchknowledge.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 +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/searchknowledge.ts +29 -259
- 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
|
@@ -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,
|
|
@@ -141,6 +141,50 @@ export type Message = {
|
|
|
141
141
|
metadata?: { [k: string]: any } | undefined;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
146
|
+
*/
|
|
147
|
+
export type Contact = {
|
|
148
|
+
/**
|
|
149
|
+
* Unique identifier for the contact
|
|
150
|
+
*/
|
|
151
|
+
id: string;
|
|
152
|
+
/**
|
|
153
|
+
* Display name of the contact
|
|
154
|
+
*/
|
|
155
|
+
displayName?: string | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Email address of the contact
|
|
158
|
+
*/
|
|
159
|
+
email?: string | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
162
|
+
*/
|
|
163
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* URL to the contact's avatar or logo
|
|
166
|
+
*/
|
|
167
|
+
logoUrl?: string | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* A list of tags associated with the contact
|
|
170
|
+
*/
|
|
171
|
+
tags?: Array<string> | undefined;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Thread information to group related requests
|
|
176
|
+
*/
|
|
177
|
+
export type RunAgentThread = {
|
|
178
|
+
/**
|
|
179
|
+
* Unique thread identifier to group related invocations.
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
/**
|
|
183
|
+
* Optional tags to differentiate or categorize threads
|
|
184
|
+
*/
|
|
185
|
+
tags?: Array<string> | undefined;
|
|
186
|
+
};
|
|
187
|
+
|
|
144
188
|
/**
|
|
145
189
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
146
190
|
*/
|
|
@@ -570,9 +614,13 @@ export type RunAgentRequestBody = {
|
|
|
570
614
|
*/
|
|
571
615
|
variables?: { [k: string]: any } | undefined;
|
|
572
616
|
/**
|
|
573
|
-
*
|
|
617
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
618
|
+
*/
|
|
619
|
+
contact?: Contact | undefined;
|
|
620
|
+
/**
|
|
621
|
+
* Thread information to group related requests
|
|
574
622
|
*/
|
|
575
|
-
|
|
623
|
+
thread?: RunAgentThread | undefined;
|
|
576
624
|
/**
|
|
577
625
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
578
626
|
*/
|
|
@@ -585,10 +633,6 @@ export type RunAgentRequestBody = {
|
|
|
585
633
|
* A brief summary of the agent's purpose.
|
|
586
634
|
*/
|
|
587
635
|
description?: string | undefined;
|
|
588
|
-
/**
|
|
589
|
-
* Optional URL to an icon for the agent
|
|
590
|
-
*/
|
|
591
|
-
iconUrl?: string | undefined;
|
|
592
636
|
/**
|
|
593
637
|
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
594
638
|
*/
|
|
@@ -1478,6 +1522,131 @@ export function messageFromJSON(
|
|
|
1478
1522
|
);
|
|
1479
1523
|
}
|
|
1480
1524
|
|
|
1525
|
+
/** @internal */
|
|
1526
|
+
export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
1527
|
+
z.object({
|
|
1528
|
+
id: z.string(),
|
|
1529
|
+
display_name: z.string().optional(),
|
|
1530
|
+
email: z.string().optional(),
|
|
1531
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1532
|
+
logo_url: z.string().optional(),
|
|
1533
|
+
tags: z.array(z.string()).optional(),
|
|
1534
|
+
}).transform((v) => {
|
|
1535
|
+
return remap$(v, {
|
|
1536
|
+
"display_name": "displayName",
|
|
1537
|
+
"logo_url": "logoUrl",
|
|
1538
|
+
});
|
|
1539
|
+
});
|
|
1540
|
+
|
|
1541
|
+
/** @internal */
|
|
1542
|
+
export type Contact$Outbound = {
|
|
1543
|
+
id: string;
|
|
1544
|
+
display_name?: string | undefined;
|
|
1545
|
+
email?: string | undefined;
|
|
1546
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
1547
|
+
logo_url?: string | undefined;
|
|
1548
|
+
tags?: Array<string> | undefined;
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
/** @internal */
|
|
1552
|
+
export const Contact$outboundSchema: z.ZodType<
|
|
1553
|
+
Contact$Outbound,
|
|
1554
|
+
z.ZodTypeDef,
|
|
1555
|
+
Contact
|
|
1556
|
+
> = z.object({
|
|
1557
|
+
id: z.string(),
|
|
1558
|
+
displayName: z.string().optional(),
|
|
1559
|
+
email: z.string().optional(),
|
|
1560
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1561
|
+
logoUrl: z.string().optional(),
|
|
1562
|
+
tags: z.array(z.string()).optional(),
|
|
1563
|
+
}).transform((v) => {
|
|
1564
|
+
return remap$(v, {
|
|
1565
|
+
displayName: "display_name",
|
|
1566
|
+
logoUrl: "logo_url",
|
|
1567
|
+
});
|
|
1568
|
+
});
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* @internal
|
|
1572
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1573
|
+
*/
|
|
1574
|
+
export namespace Contact$ {
|
|
1575
|
+
/** @deprecated use `Contact$inboundSchema` instead. */
|
|
1576
|
+
export const inboundSchema = Contact$inboundSchema;
|
|
1577
|
+
/** @deprecated use `Contact$outboundSchema` instead. */
|
|
1578
|
+
export const outboundSchema = Contact$outboundSchema;
|
|
1579
|
+
/** @deprecated use `Contact$Outbound` instead. */
|
|
1580
|
+
export type Outbound = Contact$Outbound;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export function contactToJSON(contact: Contact): string {
|
|
1584
|
+
return JSON.stringify(Contact$outboundSchema.parse(contact));
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export function contactFromJSON(
|
|
1588
|
+
jsonString: string,
|
|
1589
|
+
): SafeParseResult<Contact, SDKValidationError> {
|
|
1590
|
+
return safeParse(
|
|
1591
|
+
jsonString,
|
|
1592
|
+
(x) => Contact$inboundSchema.parse(JSON.parse(x)),
|
|
1593
|
+
`Failed to parse 'Contact' from JSON`,
|
|
1594
|
+
);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export const RunAgentThread$inboundSchema: z.ZodType<
|
|
1599
|
+
RunAgentThread,
|
|
1600
|
+
z.ZodTypeDef,
|
|
1601
|
+
unknown
|
|
1602
|
+
> = z.object({
|
|
1603
|
+
id: z.string(),
|
|
1604
|
+
tags: z.array(z.string()).optional(),
|
|
1605
|
+
});
|
|
1606
|
+
|
|
1607
|
+
/** @internal */
|
|
1608
|
+
export type RunAgentThread$Outbound = {
|
|
1609
|
+
id: string;
|
|
1610
|
+
tags?: Array<string> | undefined;
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
/** @internal */
|
|
1614
|
+
export const RunAgentThread$outboundSchema: z.ZodType<
|
|
1615
|
+
RunAgentThread$Outbound,
|
|
1616
|
+
z.ZodTypeDef,
|
|
1617
|
+
RunAgentThread
|
|
1618
|
+
> = z.object({
|
|
1619
|
+
id: z.string(),
|
|
1620
|
+
tags: z.array(z.string()).optional(),
|
|
1621
|
+
});
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* @internal
|
|
1625
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1626
|
+
*/
|
|
1627
|
+
export namespace RunAgentThread$ {
|
|
1628
|
+
/** @deprecated use `RunAgentThread$inboundSchema` instead. */
|
|
1629
|
+
export const inboundSchema = RunAgentThread$inboundSchema;
|
|
1630
|
+
/** @deprecated use `RunAgentThread$outboundSchema` instead. */
|
|
1631
|
+
export const outboundSchema = RunAgentThread$outboundSchema;
|
|
1632
|
+
/** @deprecated use `RunAgentThread$Outbound` instead. */
|
|
1633
|
+
export type Outbound = RunAgentThread$Outbound;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
|
|
1637
|
+
return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export function runAgentThreadFromJSON(
|
|
1641
|
+
jsonString: string,
|
|
1642
|
+
): SafeParseResult<RunAgentThread, SDKValidationError> {
|
|
1643
|
+
return safeParse(
|
|
1644
|
+
jsonString,
|
|
1645
|
+
(x) => RunAgentThread$inboundSchema.parse(JSON.parse(x)),
|
|
1646
|
+
`Failed to parse 'RunAgentThread' from JSON`,
|
|
1647
|
+
);
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1481
1650
|
/** @internal */
|
|
1482
1651
|
export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
|
|
1483
1652
|
.object({
|
|
@@ -2317,7 +2486,7 @@ export function httpFromJSON(
|
|
|
2317
2486
|
/** @internal */
|
|
2318
2487
|
export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
|
|
2319
2488
|
.object({
|
|
2320
|
-
_id: z.string().default("
|
|
2489
|
+
_id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
|
|
2321
2490
|
path: z.string(),
|
|
2322
2491
|
key: z.string(),
|
|
2323
2492
|
display_name: z.string(),
|
|
@@ -2356,7 +2525,7 @@ export const Twelve$outboundSchema: z.ZodType<
|
|
|
2356
2525
|
z.ZodTypeDef,
|
|
2357
2526
|
Twelve
|
|
2358
2527
|
> = z.object({
|
|
2359
|
-
id: z.string().default("
|
|
2528
|
+
id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
|
|
2360
2529
|
path: z.string(),
|
|
2361
2530
|
key: z.string(),
|
|
2362
2531
|
displayName: z.string(),
|
|
@@ -3508,11 +3677,11 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3508
3677
|
instructions: z.string(),
|
|
3509
3678
|
message: z.lazy(() => Message$inboundSchema),
|
|
3510
3679
|
variables: z.record(z.any()).optional(),
|
|
3511
|
-
|
|
3680
|
+
contact: z.lazy(() => Contact$inboundSchema).optional(),
|
|
3681
|
+
thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
|
|
3512
3682
|
memory: z.lazy(() => Memory$inboundSchema).optional(),
|
|
3513
3683
|
path: z.string(),
|
|
3514
3684
|
description: z.string().optional(),
|
|
3515
|
-
iconUrl: z.string().optional(),
|
|
3516
3685
|
system_prompt: z.string().optional(),
|
|
3517
3686
|
memory_stores: z.array(z.string()).optional(),
|
|
3518
3687
|
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
@@ -3539,11 +3708,11 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
3539
3708
|
instructions: string;
|
|
3540
3709
|
message: Message$Outbound;
|
|
3541
3710
|
variables?: { [k: string]: any } | undefined;
|
|
3542
|
-
|
|
3711
|
+
contact?: Contact$Outbound | undefined;
|
|
3712
|
+
thread?: RunAgentThread$Outbound | undefined;
|
|
3543
3713
|
memory?: Memory$Outbound | undefined;
|
|
3544
3714
|
path: string;
|
|
3545
3715
|
description?: string | undefined;
|
|
3546
|
-
iconUrl?: string | undefined;
|
|
3547
3716
|
system_prompt?: string | undefined;
|
|
3548
3717
|
memory_stores?: Array<string> | undefined;
|
|
3549
3718
|
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
@@ -3565,11 +3734,11 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3565
3734
|
instructions: z.string(),
|
|
3566
3735
|
message: z.lazy(() => Message$outboundSchema),
|
|
3567
3736
|
variables: z.record(z.any()).optional(),
|
|
3568
|
-
|
|
3737
|
+
contact: z.lazy(() => Contact$outboundSchema).optional(),
|
|
3738
|
+
thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
|
|
3569
3739
|
memory: z.lazy(() => Memory$outboundSchema).optional(),
|
|
3570
3740
|
path: z.string(),
|
|
3571
3741
|
description: z.string().optional(),
|
|
3572
|
-
iconUrl: z.string().optional(),
|
|
3573
3742
|
systemPrompt: z.string().optional(),
|
|
3574
3743
|
memoryStores: z.array(z.string()).optional(),
|
|
3575
3744
|
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|