@orq-ai/node 3.12.9 → 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 (132) hide show
  1. package/bin/mcp-server.js +112 -112
  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 +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/mcp-server.js.map +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/mcp-server/server.js.map +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +16 -16
  18. package/models/operations/fileget.js +2 -2
  19. package/models/operations/filelist.js +2 -2
  20. package/models/operations/fileupload.js +2 -2
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +2 -2
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +2 -2
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/updatebudget.js +2 -2
  33. package/models/operations/updatecontact.js +2 -2
  34. package/models/operations/updatedatapoint.js +2 -2
  35. package/models/operations/updatedataset.js +2 -2
  36. package/models/operations/updatedatasource.js +2 -2
  37. package/models/operations/updateeval.js +16 -16
  38. package/package.json +1 -1
  39. package/packages/orq-rc/FUNCTIONS.md +19 -9
  40. package/packages/orq-rc/README.md +179 -123
  41. package/packages/orq-rc/docs/sdks/agents/README.md +2 -2
  42. package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
  43. package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
  44. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  50. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +3 -3
  52. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  53. package/packages/orq-rc/src/mcp-server/server.ts +1 -3
  54. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  56. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  62. package/packages/orq-rc/src/models/operations/creatememory.ts +17 -8
  63. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +13 -10
  64. package/packages/orq-rc/src/models/operations/creatememorystore.ts +17 -17
  65. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/getagent.ts +139 -117
  69. package/packages/orq-rc/src/models/operations/getallmemories.ts +7 -4
  70. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +7 -4
  71. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  73. package/packages/orq-rc/src/models/operations/index.ts +0 -1
  74. package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
  75. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/retrievememory.ts +7 -4
  85. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +7 -4
  86. package/packages/orq-rc/src/models/operations/runagent.ts +577 -122
  87. package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
  88. package/packages/orq-rc/src/models/operations/streamrunagent.ts +606 -109
  89. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  95. package/packages/orq-rc/src/models/operations/updatememory.ts +17 -8
  96. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +13 -10
  97. package/packages/orq-rc/src/models/operations/updatememorystore.ts +21 -17
  98. package/packages/orq-rc/src/sdk/agents.ts +2 -2
  99. package/packages/orq-rc/src/sdk/sdk.ts +1 -15
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/operations/createbudget.ts +2 -2
  104. package/src/models/operations/createcontact.ts +2 -2
  105. package/src/models/operations/createdataset.ts +2 -2
  106. package/src/models/operations/createdatasetitem.ts +2 -2
  107. package/src/models/operations/createdatasource.ts +2 -2
  108. package/src/models/operations/createeval.ts +16 -16
  109. package/src/models/operations/fileget.ts +2 -2
  110. package/src/models/operations/filelist.ts +2 -2
  111. package/src/models/operations/fileupload.ts +2 -2
  112. package/src/models/operations/getbudget.ts +2 -2
  113. package/src/models/operations/getevals.ts +28 -28
  114. package/src/models/operations/listbudgets.ts +2 -2
  115. package/src/models/operations/listcontacts.ts +2 -2
  116. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  117. package/src/models/operations/listdatasets.ts +2 -2
  118. package/src/models/operations/listdatasources.ts +2 -2
  119. package/src/models/operations/retrievecontact.ts +2 -2
  120. package/src/models/operations/retrievedatapoint.ts +2 -2
  121. package/src/models/operations/retrievedataset.ts +2 -2
  122. package/src/models/operations/retrievedatasource.ts +2 -2
  123. package/src/models/operations/updatebudget.ts +2 -2
  124. package/src/models/operations/updatecontact.ts +2 -2
  125. package/src/models/operations/updatedatapoint.ts +2 -2
  126. package/src/models/operations/updatedataset.ts +2 -2
  127. package/src/models/operations/updatedatasource.ts +2 -2
  128. package/src/models/operations/updateeval.ts +16 -16
  129. package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +0 -30
  130. package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
  131. package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
  132. package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * Run an agent
29
29
  *
30
30
  * @remarks
31
- * Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.
31
+ * Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution. Memory stores can be associated with specific entities (users, sessions) using the memory.entity_id parameter.
32
32
  */
33
33
  export function agentsRun(
34
34
  client: OrqCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Run and stream agent execution
32
32
  *
33
33
  * @remarks
34
- * Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.
34
+ * Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout. Memory stores can be associated with specific entities (users, sessions) using the memory.entity_id parameter.
35
35
  */
36
36
  export function agentsStreamRun(
37
37
  client: OrqCore,
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "3.13.0-rc.6",
72
- genVersion: "2.698.4",
73
- userAgent: "speakeasy-sdk/typescript 3.13.0-rc.6 2.698.4 2.0 @orq-ai/node",
71
+ sdkVersion: "3.13.0-rc.18",
72
+ genVersion: "2.706.0",
73
+ userAgent: "speakeasy-sdk/typescript 3.13.0-rc.18 2.706.0 2.0 @orq-ai/node",
74
74
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "3.13.0-rc.6",
22
+ currentVersion: "3.13.0-rc.18",
23
23
  },
24
24
  });
25
25
 
@@ -127,7 +127,6 @@ import { tool$memoryStoresUpdate } from "./tools/memoryStoresUpdate.js";
127
127
  import { tool$memoryStoresUpdateDocument } from "./tools/memoryStoresUpdateDocument.js";
128
128
  import { tool$memoryStoresUpdateMemory } from "./tools/memoryStoresUpdateMemory.js";
129
129
  import { tool$modelsList } from "./tools/modelsList.js";
130
- import { tool$postV2AgentsInternal } from "./tools/postV2AgentsInternal.js";
131
130
  import { tool$promptsCreate } from "./tools/promptsCreate.js";
132
131
  import { tool$promptsDelete } from "./tools/promptsDelete.js";
133
132
  import { tool$promptsGetVersion } from "./tools/promptsGetVersion.js";
@@ -149,7 +148,7 @@ export function createMCPServer(deps: {
149
148
  }) {
150
149
  const server = new McpServer({
151
150
  name: "Orq",
152
- version: "3.13.0-rc.6",
151
+ version: "3.13.0-rc.18",
153
152
  });
154
153
 
155
154
  const client = new OrqCore({
@@ -181,7 +180,6 @@ export function createMCPServer(deps: {
181
180
  const register = { tool, resource, resourceTemplate, prompt };
182
181
  void register; // suppress unused warnings
183
182
 
184
- tool(tool$postV2AgentsInternal);
185
183
  tool(tool$contactsCreate);
186
184
  tool(tool$contactsList);
187
185
  tool(tool$contactsRetrieve);
@@ -14,7 +14,7 @@ export const tool$agentsRun: ToolDefinition<typeof args> = {
14
14
  name: "agents-run",
15
15
  description: `Run an agent
16
16
 
17
- Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution.`,
17
+ Executes an agent with the provided configuration using A2A message format. If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The fallback model is configured at the agent level and will be used automatically if the primary model fails during execution. Memory stores can be associated with specific entities (users, sessions) using the memory.entity_id parameter.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await agentsRun(
@@ -14,7 +14,7 @@ export const tool$agentsStreamRun: ToolDefinition<typeof args> = {
14
14
  name: "agents-stream-run",
15
15
  description: `Run and stream agent execution
16
16
 
17
- Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout.`,
17
+ Creates or updates an agent with the provided configuration, then streams execution events via Server-Sent Events (SSE). If the agent already exists with the same configuration, it will be reused. If the configuration differs, a new version is created. The stream will continue until the agent completes, errors, or reaches the configured timeout. Memory stores can be associated with specific entities (users, sessions) using the memory.entity_id parameter.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await agentsStreamRun(
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
658
658
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
659
659
  .optional(),
660
660
  updated: z.string().datetime({ offset: true }).default(
661
- "2025-09-12T04:39:34.577Z",
661
+ "2025-09-18T14:59:12.873Z",
662
662
  ).transform(v => new Date(v)),
663
663
  }).transform((v) => {
664
664
  return remap$(v, {
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
693
693
  isActive: z.boolean(),
694
694
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
695
695
  created: z.date().transform(v => v.toISOString()).optional(),
696
- updated: z.date().default(() => new Date("2025-09-12T04:39:34.577Z"))
696
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
697
697
  .transform(v => v.toISOString()),
698
698
  }).transform((v) => {
699
699
  return remap$(v, {
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2025-09-12T04:39:34.577Z",
185
+ "2025-09-18T14:59:12.873Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
223
223
  tags: z.array(z.string()).optional(),
224
224
  metadata: z.record(z.any()).optional(),
225
225
  created: z.date().transform(v => v.toISOString()).optional(),
226
- updated: z.date().default(() => new Date("2025-09-12T04:39:34.577Z"))
226
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
227
227
  .transform(v => v.toISOString()),
228
228
  }).transform((v) => {
229
229
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-09-12T04:39:34.577Z",
214
+ "2025-09-18T14:59:12.873Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-09-12T04:39:34.577Z"))
254
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -6081,7 +6081,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
6081
6081
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6082
6082
  .optional(),
6083
6083
  updated: z.string().datetime({ offset: true }).default(
6084
- "2025-09-12T04:39:34.577Z",
6084
+ "2025-09-18T14:59:12.873Z",
6085
6085
  ).transform(v => new Date(v)),
6086
6086
  }).transform((v) => {
6087
6087
  return remap$(v, {
@@ -6145,7 +6145,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
6145
6145
  createdById: z.string().optional(),
6146
6146
  updatedById: z.string().optional(),
6147
6147
  created: z.date().transform(v => v.toISOString()).optional(),
6148
- updated: z.date().default(() => new Date("2025-09-12T04:39:34.577Z"))
6148
+ updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
6149
6149
  .transform(v => v.toISOString()),
6150
6150
  }).transform((v) => {
6151
6151
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01K4Y3HQP4SGW7FMZ8467DEQ05"),
754
+ _id: z.string().default("01K5ENCKXG019QVTPNPZYNVQN0"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01K4Y3HQP4SGW7FMZ8467DEQ05"),
798
+ id: z.string().default("01K5ENCKXG019QVTPNPZYNVQN0"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -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-12T04:39:37.055Z"),
3213
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
3257
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
3675
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
3722
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7147
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7262
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7702
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
7745
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
8159
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
8208
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
8586
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
8627
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
8983
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.055Z"),
9024
- updated: z.string().default("2025-09-12T04:39:37.055Z"),
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-12T04:39:37.797Z",
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-12T04:39:37.797Z"))
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-12T04:39:37.797Z",
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-12T04:39:37.797Z"))
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-12T04:39:37.797Z",
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-12T04:39:37.797Z"))
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, {