@orq-ai/node 3.12.10 → 3.12.12
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 +246 -130
- package/bin/mcp-server.js.map +31 -31
- package/docs/sdks/evals/README.md +2 -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/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.d.ts +114 -0
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +117 -21
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/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.d.ts +114 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +122 -21
- package/models/operations/updateeval.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
- 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 -1
- 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/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/creatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
- 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 -2
- package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
- 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/listagents.ts +2 -2
- 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/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/retrievememory.ts +7 -4
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +279 -112
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +273 -99
- 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/models/operations/updatememory.ts +17 -8
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
- package/packages/orq-rc/src/sdk/agents.ts +2 -2
- 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/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 +155 -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 +169 -16
|
@@ -3209,8 +3209,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
3209
3209
|
> = z.object({
|
|
3210
3210
|
_id: z.string(),
|
|
3211
3211
|
description: z.string(),
|
|
3212
|
-
created: z.string().default("2025-09-
|
|
3213
|
-
updated: z.string().default("2025-09-
|
|
3212
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3213
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3214
3214
|
guardrail_config: z.union([
|
|
3215
3215
|
z.lazy(() =>
|
|
3216
3216
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3253,8 +3253,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
3253
3253
|
> = z.object({
|
|
3254
3254
|
id: z.string(),
|
|
3255
3255
|
description: z.string(),
|
|
3256
|
-
created: z.string().default("2025-09-
|
|
3257
|
-
updated: z.string().default("2025-09-
|
|
3256
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3257
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3258
3258
|
guardrailConfig: z.union([
|
|
3259
3259
|
z.lazy(() =>
|
|
3260
3260
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3671,8 +3671,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
3671
3671
|
.object({
|
|
3672
3672
|
_id: z.string(),
|
|
3673
3673
|
description: z.string(),
|
|
3674
|
-
created: z.string().default("2025-09-
|
|
3675
|
-
updated: z.string().default("2025-09-
|
|
3674
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3675
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3676
3676
|
guardrail_config: z.union([
|
|
3677
3677
|
z.lazy(() =>
|
|
3678
3678
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3718,8 +3718,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
3718
3718
|
> = z.object({
|
|
3719
3719
|
id: z.string(),
|
|
3720
3720
|
description: z.string(),
|
|
3721
|
-
created: z.string().default("2025-09-
|
|
3722
|
-
updated: z.string().default("2025-09-
|
|
3721
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3722
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
3723
3723
|
guardrailConfig: z.union([
|
|
3724
3724
|
z.lazy(() =>
|
|
3725
3725
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -7143,8 +7143,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7143
7143
|
> = z.object({
|
|
7144
7144
|
_id: z.string(),
|
|
7145
7145
|
description: z.string(),
|
|
7146
|
-
created: z.string().default("2025-09-
|
|
7147
|
-
updated: z.string().default("2025-09-
|
|
7146
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7147
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7148
7148
|
guardrail_config: z.union([
|
|
7149
7149
|
z.lazy(() =>
|
|
7150
7150
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7258,8 +7258,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7258
7258
|
> = z.object({
|
|
7259
7259
|
id: z.string(),
|
|
7260
7260
|
description: z.string(),
|
|
7261
|
-
created: z.string().default("2025-09-
|
|
7262
|
-
updated: z.string().default("2025-09-
|
|
7261
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7262
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7263
7263
|
guardrailConfig: z.union([
|
|
7264
7264
|
z.lazy(() =>
|
|
7265
7265
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -7698,8 +7698,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
7698
7698
|
> = z.object({
|
|
7699
7699
|
_id: z.string(),
|
|
7700
7700
|
description: z.string(),
|
|
7701
|
-
created: z.string().default("2025-09-
|
|
7702
|
-
updated: z.string().default("2025-09-
|
|
7701
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7702
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7703
7703
|
guardrail_config: z.union([
|
|
7704
7704
|
z.lazy(() =>
|
|
7705
7705
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7741,8 +7741,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
7741
7741
|
> = z.object({
|
|
7742
7742
|
id: z.string(),
|
|
7743
7743
|
description: z.string(),
|
|
7744
|
-
created: z.string().default("2025-09-
|
|
7745
|
-
updated: z.string().default("2025-09-
|
|
7744
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7745
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
7746
7746
|
guardrailConfig: z.union([
|
|
7747
7747
|
z.lazy(() =>
|
|
7748
7748
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8155,8 +8155,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8155
8155
|
> = z.object({
|
|
8156
8156
|
_id: z.string(),
|
|
8157
8157
|
description: z.string(),
|
|
8158
|
-
created: z.string().default("2025-09-
|
|
8159
|
-
updated: z.string().default("2025-09-
|
|
8158
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8159
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8160
8160
|
guardrail_config: z.union([
|
|
8161
8161
|
z.lazy(() =>
|
|
8162
8162
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8204,8 +8204,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8204
8204
|
> = z.object({
|
|
8205
8205
|
id: z.string(),
|
|
8206
8206
|
description: z.string(),
|
|
8207
|
-
created: z.string().default("2025-09-
|
|
8208
|
-
updated: z.string().default("2025-09-
|
|
8207
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8208
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8209
8209
|
guardrailConfig: z.union([
|
|
8210
8210
|
z.lazy(() =>
|
|
8211
8211
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -8582,8 +8582,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
8582
8582
|
> = z.object({
|
|
8583
8583
|
_id: z.string(),
|
|
8584
8584
|
description: z.string(),
|
|
8585
|
-
created: z.string().default("2025-09-
|
|
8586
|
-
updated: z.string().default("2025-09-
|
|
8585
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8586
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8587
8587
|
guardrail_config: z.union([
|
|
8588
8588
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
8589
8589
|
z.lazy(() =>
|
|
@@ -8623,8 +8623,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
8623
8623
|
> = z.object({
|
|
8624
8624
|
id: z.string(),
|
|
8625
8625
|
description: z.string(),
|
|
8626
|
-
created: z.string().default("2025-09-
|
|
8627
|
-
updated: z.string().default("2025-09-
|
|
8626
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8627
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8628
8628
|
guardrailConfig: z.union([
|
|
8629
8629
|
z.lazy(() =>
|
|
8630
8630
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -8979,8 +8979,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
8979
8979
|
> = z.object({
|
|
8980
8980
|
_id: z.string(),
|
|
8981
8981
|
description: z.string(),
|
|
8982
|
-
created: z.string().default("2025-09-
|
|
8983
|
-
updated: z.string().default("2025-09-
|
|
8982
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8983
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
8984
8984
|
guardrail_config: z.union([
|
|
8985
8985
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
8986
8986
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9020,8 +9020,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9020
9020
|
> = z.object({
|
|
9021
9021
|
id: z.string(),
|
|
9022
9022
|
description: z.string(),
|
|
9023
|
-
created: z.string().default("2025-09-
|
|
9024
|
-
updated: z.string().default("2025-09-
|
|
9023
|
+
created: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
9024
|
+
updated: z.string().default("2025-09-18T14:59:15.167Z"),
|
|
9025
9025
|
guardrailConfig: z.union([
|
|
9026
9026
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9027
9027
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -9,8 +9,14 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type CreateMemoryRequestBody = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the entity this memory is associated with (e.g., user ID, session ID, conversation ID)
|
|
14
|
+
*/
|
|
12
15
|
entityId: string;
|
|
13
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory access based on their specific needs (e.g., user segments, topics, contexts, or any custom taxonomy).
|
|
18
|
+
*/
|
|
19
|
+
metadata: { [k: string]: string };
|
|
14
20
|
};
|
|
15
21
|
|
|
16
22
|
export type CreateMemoryRequest = {
|
|
@@ -32,7 +38,10 @@ export type CreateMemoryResponseBody = {
|
|
|
32
38
|
createdById?: string | null | undefined;
|
|
33
39
|
updatedById?: string | null | undefined;
|
|
34
40
|
storeId: string;
|
|
35
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory access based on their specific needs (e.g., user segments, topics, contexts, or any custom taxonomy).
|
|
43
|
+
*/
|
|
44
|
+
metadata: { [k: string]: string };
|
|
36
45
|
workspaceId: string;
|
|
37
46
|
};
|
|
38
47
|
|
|
@@ -43,7 +52,7 @@ export const CreateMemoryRequestBody$inboundSchema: z.ZodType<
|
|
|
43
52
|
unknown
|
|
44
53
|
> = z.object({
|
|
45
54
|
entity_id: z.string(),
|
|
46
|
-
|
|
55
|
+
metadata: z.record(z.string()),
|
|
47
56
|
}).transform((v) => {
|
|
48
57
|
return remap$(v, {
|
|
49
58
|
"entity_id": "entityId",
|
|
@@ -53,7 +62,7 @@ export const CreateMemoryRequestBody$inboundSchema: z.ZodType<
|
|
|
53
62
|
/** @internal */
|
|
54
63
|
export type CreateMemoryRequestBody$Outbound = {
|
|
55
64
|
entity_id: string;
|
|
56
|
-
|
|
65
|
+
metadata: { [k: string]: string };
|
|
57
66
|
};
|
|
58
67
|
|
|
59
68
|
/** @internal */
|
|
@@ -63,7 +72,7 @@ export const CreateMemoryRequestBody$outboundSchema: z.ZodType<
|
|
|
63
72
|
CreateMemoryRequestBody
|
|
64
73
|
> = z.object({
|
|
65
74
|
entityId: z.string(),
|
|
66
|
-
|
|
75
|
+
metadata: z.record(z.string()),
|
|
67
76
|
}).transform((v) => {
|
|
68
77
|
return remap$(v, {
|
|
69
78
|
entityId: "entity_id",
|
|
@@ -181,7 +190,7 @@ export const CreateMemoryResponseBody$inboundSchema: z.ZodType<
|
|
|
181
190
|
created_by_id: z.nullable(z.string()).optional(),
|
|
182
191
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
183
192
|
store_id: z.string(),
|
|
184
|
-
|
|
193
|
+
metadata: z.record(z.string()),
|
|
185
194
|
workspace_id: z.string(),
|
|
186
195
|
}).transform((v) => {
|
|
187
196
|
return remap$(v, {
|
|
@@ -203,7 +212,7 @@ export type CreateMemoryResponseBody$Outbound = {
|
|
|
203
212
|
created_by_id?: string | null | undefined;
|
|
204
213
|
updated_by_id?: string | null | undefined;
|
|
205
214
|
store_id: string;
|
|
206
|
-
|
|
215
|
+
metadata: { [k: string]: string };
|
|
207
216
|
workspace_id: string;
|
|
208
217
|
};
|
|
209
218
|
|
|
@@ -220,7 +229,7 @@ export const CreateMemoryResponseBody$outboundSchema: z.ZodType<
|
|
|
220
229
|
createdById: z.nullable(z.string()).optional(),
|
|
221
230
|
updatedById: z.nullable(z.string()).optional(),
|
|
222
231
|
storeId: z.string(),
|
|
223
|
-
|
|
232
|
+
metadata: z.record(z.string()),
|
|
224
233
|
workspaceId: z.string(),
|
|
225
234
|
}).transform((v) => {
|
|
226
235
|
return remap$(v, {
|
|
@@ -10,13 +10,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type CreateMemoryDocumentRequestBody = {
|
|
12
12
|
/**
|
|
13
|
-
* The content of the memory
|
|
13
|
+
* The content of the memory document
|
|
14
14
|
*/
|
|
15
15
|
text: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Flexible key-value pairs for custom filtering and categorization of documents within a memory collection. Clients can add arbitrary string metadata to enable future filtering based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy). This enables powerful querying and retrieval strategies.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
metadata: { [k: string]: string };
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export type CreateMemoryDocumentRequest = {
|
|
@@ -44,7 +44,10 @@ export type CreateMemoryDocumentResponseBody = {
|
|
|
44
44
|
createdById?: string | undefined;
|
|
45
45
|
updatedById?: string | undefined;
|
|
46
46
|
workspaceId: string;
|
|
47
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
|
|
49
|
+
*/
|
|
50
|
+
metadata?: { [k: string]: string } | undefined;
|
|
48
51
|
};
|
|
49
52
|
|
|
50
53
|
/** @internal */
|
|
@@ -54,13 +57,13 @@ export const CreateMemoryDocumentRequestBody$inboundSchema: z.ZodType<
|
|
|
54
57
|
unknown
|
|
55
58
|
> = z.object({
|
|
56
59
|
text: z.string(),
|
|
57
|
-
|
|
60
|
+
metadata: z.record(z.string()),
|
|
58
61
|
});
|
|
59
62
|
|
|
60
63
|
/** @internal */
|
|
61
64
|
export type CreateMemoryDocumentRequestBody$Outbound = {
|
|
62
65
|
text: string;
|
|
63
|
-
|
|
66
|
+
metadata: { [k: string]: string };
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
/** @internal */
|
|
@@ -70,7 +73,7 @@ export const CreateMemoryDocumentRequestBody$outboundSchema: z.ZodType<
|
|
|
70
73
|
CreateMemoryDocumentRequestBody
|
|
71
74
|
> = z.object({
|
|
72
75
|
text: z.string(),
|
|
73
|
-
|
|
76
|
+
metadata: z.record(z.string()),
|
|
74
77
|
});
|
|
75
78
|
|
|
76
79
|
/**
|
|
@@ -197,7 +200,7 @@ export const CreateMemoryDocumentResponseBody$inboundSchema: z.ZodType<
|
|
|
197
200
|
created_by_id: z.string().optional(),
|
|
198
201
|
updated_by_id: z.string().optional(),
|
|
199
202
|
workspace_id: z.string(),
|
|
200
|
-
|
|
203
|
+
metadata: z.record(z.string()).optional(),
|
|
201
204
|
}).transform((v) => {
|
|
202
205
|
return remap$(v, {
|
|
203
206
|
"_id": "id",
|
|
@@ -220,7 +223,7 @@ export type CreateMemoryDocumentResponseBody$Outbound = {
|
|
|
220
223
|
created_by_id?: string | undefined;
|
|
221
224
|
updated_by_id?: string | undefined;
|
|
222
225
|
workspace_id: string;
|
|
223
|
-
|
|
226
|
+
metadata?: { [k: string]: string } | undefined;
|
|
224
227
|
};
|
|
225
228
|
|
|
226
229
|
/** @internal */
|
|
@@ -238,7 +241,7 @@ export const CreateMemoryDocumentResponseBody$outboundSchema: z.ZodType<
|
|
|
238
241
|
createdById: z.string().optional(),
|
|
239
242
|
updatedById: z.string().optional(),
|
|
240
243
|
workspaceId: z.string(),
|
|
241
|
-
|
|
244
|
+
metadata: z.record(z.string()).optional(),
|
|
242
245
|
}).transform((v) => {
|
|
243
246
|
return remap$(v, {
|
|
244
247
|
id: "_id",
|
|
@@ -54,10 +54,10 @@ export const Fourteen = {
|
|
|
54
54
|
} as const;
|
|
55
55
|
export type Fourteen = ClosedEnum<typeof Fourteen>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const Model13 = {
|
|
58
58
|
GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
60
|
+
export type Model13 = ClosedEnum<typeof Model13>;
|
|
61
61
|
|
|
62
62
|
export const Model12 = {
|
|
63
63
|
GoogleTextMultilingualEmbedding002: "google/text-multilingual-embedding-002",
|
|
@@ -132,7 +132,7 @@ export type Model =
|
|
|
132
132
|
| Model10
|
|
133
133
|
| Model11
|
|
134
134
|
| Model12
|
|
135
|
-
|
|
|
135
|
+
| Model13
|
|
136
136
|
| Fourteen
|
|
137
137
|
| Fifteen
|
|
138
138
|
| Sixteen
|
|
@@ -157,7 +157,7 @@ export type EmbeddingConfig = {
|
|
|
157
157
|
| Model10
|
|
158
158
|
| Model11
|
|
159
159
|
| Model12
|
|
160
|
-
|
|
|
160
|
+
| Model13
|
|
161
161
|
| Fourteen
|
|
162
162
|
| Fifteen
|
|
163
163
|
| Sixteen
|
|
@@ -604,22 +604,22 @@ export namespace Fourteen$ {
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
/** @internal */
|
|
607
|
-
export const
|
|
608
|
-
.nativeEnum(
|
|
607
|
+
export const Model13$inboundSchema: z.ZodNativeEnum<typeof Model13> = z
|
|
608
|
+
.nativeEnum(Model13);
|
|
609
609
|
|
|
610
610
|
/** @internal */
|
|
611
|
-
export const
|
|
612
|
-
|
|
611
|
+
export const Model13$outboundSchema: z.ZodNativeEnum<typeof Model13> =
|
|
612
|
+
Model13$inboundSchema;
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
615
|
* @internal
|
|
616
616
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
617
617
|
*/
|
|
618
|
-
export namespace
|
|
619
|
-
/** @deprecated use `
|
|
620
|
-
export const inboundSchema =
|
|
621
|
-
/** @deprecated use `
|
|
622
|
-
export const outboundSchema =
|
|
618
|
+
export namespace Model13$ {
|
|
619
|
+
/** @deprecated use `Model13$inboundSchema` instead. */
|
|
620
|
+
export const inboundSchema = Model13$inboundSchema;
|
|
621
|
+
/** @deprecated use `Model13$outboundSchema` instead. */
|
|
622
|
+
export const outboundSchema = Model13$outboundSchema;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
/** @internal */
|
|
@@ -865,7 +865,7 @@ export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
|
865
865
|
Model10$inboundSchema,
|
|
866
866
|
Model11$inboundSchema,
|
|
867
867
|
Model12$inboundSchema,
|
|
868
|
-
|
|
868
|
+
Model13$inboundSchema,
|
|
869
869
|
Fourteen$inboundSchema,
|
|
870
870
|
Fifteen$inboundSchema,
|
|
871
871
|
Sixteen$inboundSchema,
|
|
@@ -920,7 +920,7 @@ export const Model$outboundSchema: z.ZodType<
|
|
|
920
920
|
Model10$outboundSchema,
|
|
921
921
|
Model11$outboundSchema,
|
|
922
922
|
Model12$outboundSchema,
|
|
923
|
-
|
|
923
|
+
Model13$outboundSchema,
|
|
924
924
|
Fourteen$outboundSchema,
|
|
925
925
|
Fifteen$outboundSchema,
|
|
926
926
|
Sixteen$outboundSchema,
|
|
@@ -978,7 +978,7 @@ export const EmbeddingConfig$inboundSchema: z.ZodType<
|
|
|
978
978
|
Model10$inboundSchema,
|
|
979
979
|
Model11$inboundSchema,
|
|
980
980
|
Model12$inboundSchema,
|
|
981
|
-
|
|
981
|
+
Model13$inboundSchema,
|
|
982
982
|
Fourteen$inboundSchema,
|
|
983
983
|
Fifteen$inboundSchema,
|
|
984
984
|
Sixteen$inboundSchema,
|
|
@@ -1037,7 +1037,7 @@ export const EmbeddingConfig$outboundSchema: z.ZodType<
|
|
|
1037
1037
|
Model10$outboundSchema,
|
|
1038
1038
|
Model11$outboundSchema,
|
|
1039
1039
|
Model12$outboundSchema,
|
|
1040
|
-
|
|
1040
|
+
Model13$outboundSchema,
|
|
1041
1041
|
Fourteen$outboundSchema,
|
|
1042
1042
|
Fifteen$outboundSchema,
|
|
1043
1043
|
Sixteen$outboundSchema,
|
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-09-
|
|
149
|
+
"2025-09-18T14:59:15.855Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-09-
|
|
183
|
+
created: z.date().default(() => new Date("2025-09-18T14:59:15.855Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-09-
|
|
199
|
+
"2025-09-18T14:59:15.855Z",
|
|
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-18T14:59:15.855Z"))
|
|
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-18T14:59:15.855Z",
|
|
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-18T14:59:15.855Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -950,7 +950,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
950
950
|
z.ZodTypeDef,
|
|
951
951
|
unknown
|
|
952
952
|
> = z.object({
|
|
953
|
-
id: z.string().default("
|
|
953
|
+
id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
|
|
954
954
|
knowledge_id: z.string(),
|
|
955
955
|
configuration: z.union([
|
|
956
956
|
z.lazy(() => GetAgentConfiguration2$inboundSchema),
|
|
@@ -977,7 +977,7 @@ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
977
977
|
z.ZodTypeDef,
|
|
978
978
|
GetAgentKnowledgeBases
|
|
979
979
|
> = z.object({
|
|
980
|
-
id: z.string().default("
|
|
980
|
+
id: z.string().default("01K5ENCKRNR22BVKBXRXDPAZWA"),
|
|
981
981
|
knowledgeId: z.string(),
|
|
982
982
|
configuration: z.union([
|
|
983
983
|
z.lazy(() => GetAgentConfiguration2$outboundSchema),
|
|
@@ -41,7 +41,10 @@ export type GetAllMemoriesData = {
|
|
|
41
41
|
createdById?: string | null | undefined;
|
|
42
42
|
updatedById?: string | null | undefined;
|
|
43
43
|
storeId: string;
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory access based on their specific needs (e.g., user segments, topics, contexts, or any custom taxonomy).
|
|
46
|
+
*/
|
|
47
|
+
metadata: { [k: string]: string };
|
|
45
48
|
workspaceId: string;
|
|
46
49
|
};
|
|
47
50
|
|
|
@@ -163,7 +166,7 @@ export const GetAllMemoriesData$inboundSchema: z.ZodType<
|
|
|
163
166
|
created_by_id: z.nullable(z.string()).optional(),
|
|
164
167
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
165
168
|
store_id: z.string(),
|
|
166
|
-
|
|
169
|
+
metadata: z.record(z.string()),
|
|
167
170
|
workspace_id: z.string(),
|
|
168
171
|
}).transform((v) => {
|
|
169
172
|
return remap$(v, {
|
|
@@ -185,7 +188,7 @@ export type GetAllMemoriesData$Outbound = {
|
|
|
185
188
|
created_by_id?: string | null | undefined;
|
|
186
189
|
updated_by_id?: string | null | undefined;
|
|
187
190
|
store_id: string;
|
|
188
|
-
|
|
191
|
+
metadata: { [k: string]: string };
|
|
189
192
|
workspace_id: string;
|
|
190
193
|
};
|
|
191
194
|
|
|
@@ -202,7 +205,7 @@ export const GetAllMemoriesData$outboundSchema: z.ZodType<
|
|
|
202
205
|
createdById: z.nullable(z.string()).optional(),
|
|
203
206
|
updatedById: z.nullable(z.string()).optional(),
|
|
204
207
|
storeId: z.string(),
|
|
205
|
-
|
|
208
|
+
metadata: z.record(z.string()),
|
|
206
209
|
workspaceId: z.string(),
|
|
207
210
|
}).transform((v) => {
|
|
208
211
|
return remap$(v, {
|
|
@@ -49,7 +49,10 @@ export type GetAllMemoryDocumentsData = {
|
|
|
49
49
|
createdById?: string | undefined;
|
|
50
50
|
updatedById?: string | undefined;
|
|
51
51
|
workspaceId: string;
|
|
52
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
|
|
54
|
+
*/
|
|
55
|
+
metadata?: { [k: string]: string } | undefined;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
/**
|
|
@@ -179,7 +182,7 @@ export const GetAllMemoryDocumentsData$inboundSchema: z.ZodType<
|
|
|
179
182
|
created_by_id: z.string().optional(),
|
|
180
183
|
updated_by_id: z.string().optional(),
|
|
181
184
|
workspace_id: z.string(),
|
|
182
|
-
|
|
185
|
+
metadata: z.record(z.string()).optional(),
|
|
183
186
|
}).transform((v) => {
|
|
184
187
|
return remap$(v, {
|
|
185
188
|
"_id": "id",
|
|
@@ -202,7 +205,7 @@ export type GetAllMemoryDocumentsData$Outbound = {
|
|
|
202
205
|
created_by_id?: string | undefined;
|
|
203
206
|
updated_by_id?: string | undefined;
|
|
204
207
|
workspace_id: string;
|
|
205
|
-
|
|
208
|
+
metadata?: { [k: string]: string } | undefined;
|
|
206
209
|
};
|
|
207
210
|
|
|
208
211
|
/** @internal */
|
|
@@ -220,7 +223,7 @@ export const GetAllMemoryDocumentsData$outboundSchema: z.ZodType<
|
|
|
220
223
|
createdById: z.string().optional(),
|
|
221
224
|
updatedById: z.string().optional(),
|
|
222
225
|
workspaceId: z.string(),
|
|
223
|
-
|
|
226
|
+
metadata: z.record(z.string()).optional(),
|
|
224
227
|
}).transform((v) => {
|
|
225
228
|
return remap$(v, {
|
|
226
229
|
id: "_id",
|
|
@@ -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-18T14:59:12.873Z",
|
|
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-18T14:59:12.873Z"))
|
|
390
390
|
.transform(v => v.toISOString()),
|
|
391
391
|
}).transform((v) => {
|
|
392
392
|
return remap$(v, {
|