@orq-ai/node 3.12.10 → 3.12.11

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.
Files changed (117) hide show
  1. package/bin/mcp-server.js +111 -111
  2. package/bin/mcp-server.js.map +30 -30
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/fileget.js +2 -2
  16. package/models/operations/filelist.js +2 -2
  17. package/models/operations/fileupload.js +2 -2
  18. package/models/operations/getbudget.js +2 -2
  19. package/models/operations/getevals.js +28 -28
  20. package/models/operations/listbudgets.js +2 -2
  21. package/models/operations/listcontacts.js +2 -2
  22. package/models/operations/listdatasetdatapoints.js +2 -2
  23. package/models/operations/listdatasets.js +2 -2
  24. package/models/operations/listdatasources.js +2 -2
  25. package/models/operations/retrievecontact.js +2 -2
  26. package/models/operations/retrievedatapoint.js +2 -2
  27. package/models/operations/retrievedataset.js +2 -2
  28. package/models/operations/retrievedatasource.js +2 -2
  29. package/models/operations/updatebudget.js +2 -2
  30. package/models/operations/updatecontact.js +2 -2
  31. package/models/operations/updatedatapoint.js +2 -2
  32. package/models/operations/updatedataset.js +2 -2
  33. package/models/operations/updatedatasource.js +2 -2
  34. package/models/operations/updateeval.js +16 -16
  35. package/package.json +1 -1
  36. package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
  37. package/packages/orq-rc/examples/package-lock.json +1 -1
  38. package/packages/orq-rc/jsr.json +1 -1
  39. package/packages/orq-rc/package-lock.json +2 -2
  40. package/packages/orq-rc/package.json +1 -1
  41. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  42. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  43. package/packages/orq-rc/src/lib/config.ts +3 -3
  44. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  45. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  46. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  47. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  48. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  49. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  54. package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
  55. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
  56. package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
  57. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
  62. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
  63. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  65. package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
  76. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
  77. package/packages/orq-rc/src/models/operations/runagent.ts +279 -112
  78. package/packages/orq-rc/src/models/operations/streamrunagent.ts +273 -99
  79. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
  86. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
  87. package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
  88. package/packages/orq-rc/src/sdk/agents.ts +2 -2
  89. package/src/lib/config.ts +2 -2
  90. package/src/mcp-server/mcp-server.ts +1 -1
  91. package/src/mcp-server/server.ts +1 -1
  92. package/src/models/operations/createbudget.ts +2 -2
  93. package/src/models/operations/createcontact.ts +2 -2
  94. package/src/models/operations/createdataset.ts +2 -2
  95. package/src/models/operations/createdatasetitem.ts +2 -2
  96. package/src/models/operations/createdatasource.ts +2 -2
  97. package/src/models/operations/createeval.ts +16 -16
  98. package/src/models/operations/fileget.ts +2 -2
  99. package/src/models/operations/filelist.ts +2 -2
  100. package/src/models/operations/fileupload.ts +2 -2
  101. package/src/models/operations/getbudget.ts +2 -2
  102. package/src/models/operations/getevals.ts +28 -28
  103. package/src/models/operations/listbudgets.ts +2 -2
  104. package/src/models/operations/listcontacts.ts +2 -2
  105. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  106. package/src/models/operations/listdatasets.ts +2 -2
  107. package/src/models/operations/listdatasources.ts +2 -2
  108. package/src/models/operations/retrievecontact.ts +2 -2
  109. package/src/models/operations/retrievedatapoint.ts +2 -2
  110. package/src/models/operations/retrievedataset.ts +2 -2
  111. package/src/models/operations/retrievedatasource.ts +2 -2
  112. package/src/models/operations/updatebudget.ts +2 -2
  113. package/src/models/operations/updatecontact.ts +2 -2
  114. package/src/models/operations/updatedatapoint.ts +2 -2
  115. package/src/models/operations/updatedataset.ts +2 -2
  116. package/src/models/operations/updatedatasource.ts +2 -2
  117. package/src/models/operations/updateeval.ts +16 -16
@@ -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
- tags: { [k: string]: string };
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags: z.record(z.string()),
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- * Use the tags to categorize documents within a memory collection
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
- tags: { [k: string]: string };
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()),
60
+ metadata: z.record(z.string()),
58
61
  });
59
62
 
60
63
  /** @internal */
61
64
  export type CreateMemoryDocumentRequestBody$Outbound = {
62
65
  text: string;
63
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags: z.record(z.string()).optional(),
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()).optional(),
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 Thirteen = {
57
+ export const Model13 = {
58
58
  GoogleMultimodalembeddingAt001: "google/multimodalembedding@001",
59
59
  } as const;
60
- export type Thirteen = ClosedEnum<typeof Thirteen>;
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
- | Thirteen
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
- | Thirteen
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 Thirteen$inboundSchema: z.ZodNativeEnum<typeof Thirteen> = z
608
- .nativeEnum(Thirteen);
607
+ export const Model13$inboundSchema: z.ZodNativeEnum<typeof Model13> = z
608
+ .nativeEnum(Model13);
609
609
 
610
610
  /** @internal */
611
- export const Thirteen$outboundSchema: z.ZodNativeEnum<typeof Thirteen> =
612
- Thirteen$inboundSchema;
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 Thirteen$ {
619
- /** @deprecated use `Thirteen$inboundSchema` instead. */
620
- export const inboundSchema = Thirteen$inboundSchema;
621
- /** @deprecated use `Thirteen$outboundSchema` instead. */
622
- export const outboundSchema = Thirteen$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
- Thirteen$inboundSchema,
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
- Thirteen$outboundSchema,
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
- Thirteen$inboundSchema,
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
- Thirteen$outboundSchema,
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-18T11:10:45.163Z",
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-18T11:10:45.163Z"))
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-18T11:10:45.163Z",
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-18T11:10:45.163Z"))
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-18T11:10:45.163Z",
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-18T11:10:45.163Z"))
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("01K5E8A6S0QYXQBKAVKD0103F8"),
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("01K5E8A6S0QYXQBKAVKD0103F8"),
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags: { [k: string]: string };
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
- tags: z.record(z.string()),
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()).optional(),
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
- tags?: { [k: string]: string } | undefined;
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
- tags: z.record(z.string()).optional(),
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-18T11:10:42.158Z",
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-18T11:10:42.158Z"))
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, {
@@ -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-18T11:10:44.471Z"),
1560
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
1559
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
1560
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
1604
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
1603
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
1604
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
2006
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
2005
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
2006
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
2048
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
2047
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
2048
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
5516
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
5515
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
5516
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
5627
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
5626
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
5627
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6010
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6009
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6010
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6049
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6048
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6049
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6396
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6395
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6396
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6441
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6440
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6441
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6807
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6806
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6807
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
6850
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
6849
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
6850
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
7233
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
7232
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
7233
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
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-18T11:10:44.471Z"),
7278
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
7277
+ created: z.string().default("2025-09-18T14:59:15.167Z"),
7278
+ updated: z.string().default("2025-09-18T14:59:15.167Z"),
7279
7279
  guardrailConfig: z.union([
7280
7280
  z.lazy(() =>
7281
7281
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -1026,7 +1026,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
1026
1026
  z.ZodTypeDef,
1027
1027
  unknown
1028
1028
  > = z.object({
1029
- id: z.string().default("01K5E8A6RZT1PCVK58XFAA34WS"),
1029
+ id: z.string().default("01K5ENCKRKHT796JCBNMRC3S1A"),
1030
1030
  knowledge_id: z.string(),
1031
1031
  configuration: z.union([
1032
1032
  z.lazy(() => ListAgentsConfiguration2$inboundSchema),
@@ -1053,7 +1053,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
1053
1053
  z.ZodTypeDef,
1054
1054
  ListAgentsKnowledgeBases
1055
1055
  > = z.object({
1056
- id: z.string().default("01K5E8A6RZT1PCVK58XFAA34WS"),
1056
+ id: z.string().default("01K5ENCKRKHT796JCBNMRC3S1A"),
1057
1057
  knowledgeId: z.string(),
1058
1058
  configuration: z.union([
1059
1059
  z.lazy(() => ListAgentsConfiguration2$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-18T11:10:42.158Z",
467
+ "2025-09-18T14:59:12.873Z",
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-18T11:10:42.158Z"))
502
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
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-18T11:10:42.158Z",
355
+ "2025-09-18T14:59:12.873Z",
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-18T11:10:42.158Z"))
392
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
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-18T11:10:42.158Z",
3103
+ "2025-09-18T14:59:12.873Z",
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-18T11:10:42.158Z"))
3167
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
3168
3168
  .transform(v => v.toISOString()),
3169
3169
  }).transform((v) => {
3170
3170
  return remap$(v, {