@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.
Files changed (124) hide show
  1. package/bin/mcp-server.js +246 -130
  2. package/bin/mcp-server.js.map +31 -31
  3. package/docs/sdks/evals/README.md +2 -0
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createbudget.js +2 -2
  11. package/models/operations/createcontact.js +2 -2
  12. package/models/operations/createdataset.js +2 -2
  13. package/models/operations/createdatasetitem.js +2 -2
  14. package/models/operations/createdatasource.js +2 -2
  15. package/models/operations/createeval.d.ts +114 -0
  16. package/models/operations/createeval.d.ts.map +1 -1
  17. package/models/operations/createeval.js +117 -21
  18. package/models/operations/createeval.js.map +1 -1
  19. package/models/operations/fileget.js +2 -2
  20. package/models/operations/filelist.js +2 -2
  21. package/models/operations/fileupload.js +2 -2
  22. package/models/operations/getbudget.js +2 -2
  23. package/models/operations/getevals.js +28 -28
  24. package/models/operations/listbudgets.js +2 -2
  25. package/models/operations/listcontacts.js +2 -2
  26. package/models/operations/listdatasetdatapoints.js +2 -2
  27. package/models/operations/listdatasets.js +2 -2
  28. package/models/operations/listdatasources.js +2 -2
  29. package/models/operations/retrievecontact.js +2 -2
  30. package/models/operations/retrievedatapoint.js +2 -2
  31. package/models/operations/retrievedataset.js +2 -2
  32. package/models/operations/retrievedatasource.js +2 -2
  33. package/models/operations/updatebudget.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +2 -2
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.d.ts +114 -0
  39. package/models/operations/updateeval.d.ts.map +1 -1
  40. package/models/operations/updateeval.js +122 -21
  41. package/models/operations/updateeval.js.map +1 -1
  42. package/package.json +1 -1
  43. package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
  44. package/packages/orq-rc/examples/package-lock.json +1 -1
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  49. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  50. package/packages/orq-rc/src/lib/config.ts +3 -3
  51. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  52. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  53. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  54. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  55. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  61. package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
  62. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
  63. package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
  64. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
  69. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
  70. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  72. package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
  83. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
  84. package/packages/orq-rc/src/models/operations/runagent.ts +279 -112
  85. package/packages/orq-rc/src/models/operations/streamrunagent.ts +273 -99
  86. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  92. package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
  93. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
  94. package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
  95. package/packages/orq-rc/src/sdk/agents.ts +2 -2
  96. package/src/lib/config.ts +3 -3
  97. package/src/mcp-server/mcp-server.ts +1 -1
  98. package/src/mcp-server/server.ts +1 -1
  99. package/src/models/operations/createbudget.ts +2 -2
  100. package/src/models/operations/createcontact.ts +2 -2
  101. package/src/models/operations/createdataset.ts +2 -2
  102. package/src/models/operations/createdatasetitem.ts +2 -2
  103. package/src/models/operations/createdatasource.ts +2 -2
  104. package/src/models/operations/createeval.ts +155 -16
  105. package/src/models/operations/fileget.ts +2 -2
  106. package/src/models/operations/filelist.ts +2 -2
  107. package/src/models/operations/fileupload.ts +2 -2
  108. package/src/models/operations/getbudget.ts +2 -2
  109. package/src/models/operations/getevals.ts +28 -28
  110. package/src/models/operations/listbudgets.ts +2 -2
  111. package/src/models/operations/listcontacts.ts +2 -2
  112. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  113. package/src/models/operations/listdatasets.ts +2 -2
  114. package/src/models/operations/listdatasources.ts +2 -2
  115. package/src/models/operations/retrievecontact.ts +2 -2
  116. package/src/models/operations/retrievedatapoint.ts +2 -2
  117. package/src/models/operations/retrievedataset.ts +2 -2
  118. package/src/models/operations/retrievedatasource.ts +2 -2
  119. package/src/models/operations/updatebudget.ts +2 -2
  120. package/src/models/operations/updatecontact.ts +2 -2
  121. package/src/models/operations/updatedatapoint.ts +2 -2
  122. package/src/models/operations/updatedataset.ts +2 -2
  123. package/src/models/operations/updatedatasource.ts +2 -2
  124. 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-18T11:10:44.471Z"),
3213
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
3257
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
3675
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
3722
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
7147
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
7262
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
7702
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
7745
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
8159
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
8208
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
8586
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
8627
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
8983
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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-18T11:10:44.471Z"),
9024
- updated: z.string().default("2025-09-18T11:10:44.471Z"),
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
- 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, {