@orq-ai/node 4.1.0-rc.15 → 4.1.0-rc.19

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 (104) hide show
  1. package/bin/mcp-server.js +230 -246
  2. package/bin/mcp-server.js.map +43 -43
  3. package/docs/sdks/memorystores/README.md +0 -6
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +2 -2
  7. package/lib/config.js +2 -2
  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 +8 -8
  14. package/models/operations/createdatasource.js +2 -2
  15. package/models/operations/createeval.js +28 -28
  16. package/models/operations/creatememory.d.ts +5 -5
  17. package/models/operations/creatememory.d.ts.map +1 -1
  18. package/models/operations/creatememory.js +2 -2
  19. package/models/operations/creatememory.js.map +1 -1
  20. package/models/operations/creatememorydocument.d.ts +4 -4
  21. package/models/operations/creatememorydocument.d.ts.map +1 -1
  22. package/models/operations/creatememorydocument.js +2 -2
  23. package/models/operations/creatememorydocument.js.map +1 -1
  24. package/models/operations/createtool.js +12 -12
  25. package/models/operations/fileget.js +2 -2
  26. package/models/operations/filelist.js +2 -2
  27. package/models/operations/fileupload.js +2 -2
  28. package/models/operations/getalltools.js +12 -12
  29. package/models/operations/getbudget.js +2 -2
  30. package/models/operations/getevals.js +28 -28
  31. package/models/operations/listbudgets.js +2 -2
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +8 -8
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/parse.d.ts +2 -2
  37. package/models/operations/retrievecontact.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.js +12 -12
  42. package/models/operations/runagent.js +2 -2
  43. package/models/operations/streamrunagent.js +2 -2
  44. package/models/operations/updatebudget.js +2 -2
  45. package/models/operations/updatecontact.js +2 -2
  46. package/models/operations/updatedatapoint.js +8 -8
  47. package/models/operations/updatedataset.js +2 -2
  48. package/models/operations/updatedatasource.js +2 -2
  49. package/models/operations/updateeval.js +28 -28
  50. package/models/operations/updatememory.d.ts +5 -5
  51. package/models/operations/updatememory.d.ts.map +1 -1
  52. package/models/operations/updatememory.js +2 -2
  53. package/models/operations/updatememory.js.map +1 -1
  54. package/models/operations/updatememorydocument.d.ts +4 -4
  55. package/models/operations/updatememorydocument.d.ts.map +1 -1
  56. package/models/operations/updatememorydocument.js +2 -2
  57. package/models/operations/updatememorydocument.js.map +1 -1
  58. package/models/operations/updatememorystore.d.ts +12 -39
  59. package/models/operations/updatememorystore.d.ts.map +1 -1
  60. package/models/operations/updatememorystore.js +15 -41
  61. package/models/operations/updatememorystore.js.map +1 -1
  62. package/models/operations/updatetool.js +14 -14
  63. package/package.json +1 -1
  64. package/src/lib/config.ts +2 -2
  65. package/src/mcp-server/mcp-server.ts +1 -1
  66. package/src/mcp-server/server.ts +1 -1
  67. package/src/models/operations/createbudget.ts +2 -2
  68. package/src/models/operations/createcontact.ts +2 -2
  69. package/src/models/operations/createdataset.ts +2 -2
  70. package/src/models/operations/createdatasetitem.ts +8 -8
  71. package/src/models/operations/createdatasource.ts +2 -2
  72. package/src/models/operations/createeval.ts +28 -28
  73. package/src/models/operations/creatememory.ts +5 -5
  74. package/src/models/operations/creatememorydocument.ts +4 -4
  75. package/src/models/operations/createtool.ts +12 -12
  76. package/src/models/operations/fileget.ts +2 -2
  77. package/src/models/operations/filelist.ts +2 -2
  78. package/src/models/operations/fileupload.ts +2 -2
  79. package/src/models/operations/getalltools.ts +12 -12
  80. package/src/models/operations/getbudget.ts +2 -2
  81. package/src/models/operations/getevals.ts +28 -28
  82. package/src/models/operations/listbudgets.ts +2 -2
  83. package/src/models/operations/listcontacts.ts +2 -2
  84. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  85. package/src/models/operations/listdatasets.ts +2 -2
  86. package/src/models/operations/listdatasources.ts +2 -2
  87. package/src/models/operations/parse.ts +2 -2
  88. package/src/models/operations/retrievecontact.ts +2 -2
  89. package/src/models/operations/retrievedatapoint.ts +8 -8
  90. package/src/models/operations/retrievedataset.ts +2 -2
  91. package/src/models/operations/retrievedatasource.ts +2 -2
  92. package/src/models/operations/retrievetool.ts +12 -12
  93. package/src/models/operations/runagent.ts +2 -2
  94. package/src/models/operations/streamrunagent.ts +2 -2
  95. package/src/models/operations/updatebudget.ts +2 -2
  96. package/src/models/operations/updatecontact.ts +2 -2
  97. package/src/models/operations/updatedatapoint.ts +8 -8
  98. package/src/models/operations/updatedataset.ts +2 -2
  99. package/src/models/operations/updatedatasource.ts +2 -2
  100. package/src/models/operations/updateeval.ts +28 -28
  101. package/src/models/operations/updatememory.ts +5 -5
  102. package/src/models/operations/updatememorydocument.ts +4 -4
  103. package/src/models/operations/updatememorystore.ts +52 -134
  104. package/src/models/operations/updatetool.ts +14 -14
@@ -4893,7 +4893,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
4893
4893
  .default("orq"),
4894
4894
  reviewed_by_id: z.string(),
4895
4895
  reviewed_at: z.string().datetime({ offset: true }).default(
4896
- "2025-11-27T14:02:23.074Z",
4896
+ "2025-11-28T12:16:22.840Z",
4897
4897
  ).transform(v => new Date(v)),
4898
4898
  type: UpdateDatapointEvaluationsDatasetsResponseType$inboundSchema,
4899
4899
  values: z.array(z.string()),
@@ -4930,7 +4930,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
4930
4930
  source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
4931
4931
  .default("orq"),
4932
4932
  reviewedById: z.string(),
4933
- reviewedAt: z.date().default(() => new Date("2025-11-27T14:02:23.074Z"))
4933
+ reviewedAt: z.date().default(() => new Date("2025-11-28T12:16:22.840Z"))
4934
4934
  .transform(v => v.toISOString()),
4935
4935
  type: UpdateDatapointEvaluationsDatasetsResponseType$outboundSchema,
4936
4936
  values: z.array(z.string()),
@@ -5003,7 +5003,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
5003
5003
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
5004
5004
  reviewed_by_id: z.string(),
5005
5005
  reviewed_at: z.string().datetime({ offset: true }).default(
5006
- "2025-11-27T14:02:23.073Z",
5006
+ "2025-11-28T12:16:22.840Z",
5007
5007
  ).transform(v => new Date(v)),
5008
5008
  type: UpdateDatapointEvaluationsDatasetsType$inboundSchema,
5009
5009
  value: z.number(),
@@ -5041,7 +5041,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
5041
5041
  "orq",
5042
5042
  ),
5043
5043
  reviewedById: z.string(),
5044
- reviewedAt: z.date().default(() => new Date("2025-11-27T14:02:23.073Z"))
5044
+ reviewedAt: z.date().default(() => new Date("2025-11-28T12:16:22.840Z"))
5045
5045
  .transform(v => v.toISOString()),
5046
5046
  type: UpdateDatapointEvaluationsDatasetsType$outboundSchema,
5047
5047
  value: z.number(),
@@ -5112,7 +5112,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
5112
5112
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
5113
5113
  reviewed_by_id: z.string(),
5114
5114
  reviewed_at: z.string().datetime({ offset: true }).default(
5115
- "2025-11-27T14:02:23.071Z",
5115
+ "2025-11-28T12:16:22.839Z",
5116
5116
  ).transform(v => new Date(v)),
5117
5117
  type: UpdateDatapointEvaluationsType$inboundSchema,
5118
5118
  value: z.string(),
@@ -5147,7 +5147,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
5147
5147
  humanReviewId: z.string(),
5148
5148
  source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
5149
5149
  reviewedById: z.string(),
5150
- reviewedAt: z.date().default(() => new Date("2025-11-27T14:02:23.071Z"))
5150
+ reviewedAt: z.date().default(() => new Date("2025-11-28T12:16:22.839Z"))
5151
5151
  .transform(v => v.toISOString()),
5152
5152
  type: UpdateDatapointEvaluationsType$outboundSchema,
5153
5153
  value: z.string(),
@@ -5262,7 +5262,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
5262
5262
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5263
5263
  .optional(),
5264
5264
  updated: z.string().datetime({ offset: true }).default(
5265
- "2025-11-27T14:02:11.843Z",
5265
+ "2025-11-28T12:16:10.264Z",
5266
5266
  ).transform(v => new Date(v)),
5267
5267
  }).transform((v) => {
5268
5268
  return remap$(v, {
@@ -5340,7 +5340,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
5340
5340
  createdById: z.string().optional(),
5341
5341
  updatedById: z.string().optional(),
5342
5342
  created: z.date().transform(v => v.toISOString()).optional(),
5343
- updated: z.date().default(() => new Date("2025-11-27T14:02:11.843Z"))
5343
+ updated: z.date().default(() => new Date("2025-11-28T12:16:10.264Z"))
5344
5344
  .transform(v => v.toISOString()),
5345
5345
  }).transform((v) => {
5346
5346
  return remap$(v, {
@@ -256,7 +256,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
256
256
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
257
257
  .optional(),
258
258
  updated: z.string().datetime({ offset: true }).default(
259
- "2025-11-27T14:02:11.843Z",
259
+ "2025-11-28T12:16:10.264Z",
260
260
  ).transform(v => new Date(v)),
261
261
  }).transform((v) => {
262
262
  return remap$(v, {
@@ -295,7 +295,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
295
295
  createdById: z.string().optional(),
296
296
  updatedById: z.string().optional(),
297
297
  created: z.date().transform(v => v.toISOString()).optional(),
298
- updated: z.date().default(() => new Date("2025-11-27T14:02:11.843Z"))
298
+ updated: z.date().default(() => new Date("2025-11-28T12:16:10.264Z"))
299
299
  .transform(v => v.toISOString()),
300
300
  }).transform((v) => {
301
301
  return remap$(v, {
@@ -202,7 +202,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
202
202
  z.ZodTypeDef,
203
203
  unknown
204
204
  > = z.object({
205
- _id: z.string().default("01KB2SYKB24NQD5KTJGG97JEYQ"),
205
+ _id: z.string().default("01KB569762XADAVT62XVPPE4ES"),
206
206
  display_name: z.string(),
207
207
  description: z.string().optional(),
208
208
  status: UpdateDatasourceStatus$inboundSchema,
@@ -245,7 +245,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
245
245
  z.ZodTypeDef,
246
246
  UpdateDatasourceResponseBody
247
247
  > = z.object({
248
- id: z.string().default("01KB2SYKB24NQD5KTJGG97JEYQ"),
248
+ id: z.string().default("01KB569762XADAVT62XVPPE4ES"),
249
249
  displayName: z.string(),
250
250
  description: z.string().optional(),
251
251
  status: UpdateDatasourceStatus$outboundSchema,
@@ -2941,8 +2941,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
2941
2941
  > = z.object({
2942
2942
  _id: z.string(),
2943
2943
  description: z.string(),
2944
- created: z.string().default("2025-11-27T14:02:13.857Z"),
2945
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
2944
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
2945
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
2946
2946
  guardrail_config: z.union([
2947
2947
  z.lazy(() =>
2948
2948
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
@@ -2984,8 +2984,8 @@ export const ResponseBodyTypescript$outboundSchema: z.ZodType<
2984
2984
  > = z.object({
2985
2985
  id: z.string(),
2986
2986
  description: z.string(),
2987
- created: z.string().default("2025-11-27T14:02:13.857Z"),
2988
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
2987
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
2988
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
2989
2989
  guardrailConfig: z.union([
2990
2990
  z.lazy(() =>
2991
2991
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
@@ -3275,8 +3275,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
3275
3275
  > = z.object({
3276
3276
  _id: z.string(),
3277
3277
  description: z.string(),
3278
- created: z.string().default("2025-11-27T14:02:13.857Z"),
3279
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
3278
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
3279
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
3280
3280
  guardrail_config: z.union([
3281
3281
  z.lazy(() =>
3282
3282
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
@@ -3321,8 +3321,8 @@ export const ResponseBodyRagas$outboundSchema: z.ZodType<
3321
3321
  > = z.object({
3322
3322
  id: z.string(),
3323
3323
  description: z.string(),
3324
- created: z.string().default("2025-11-27T14:02:13.857Z"),
3325
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
3324
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
3325
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
3326
3326
  guardrailConfig: z.union([
3327
3327
  z.lazy(() =>
3328
3328
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
@@ -5483,8 +5483,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
5483
5483
  > = z.object({
5484
5484
  _id: z.string(),
5485
5485
  description: z.string(),
5486
- created: z.string().default("2025-11-27T14:02:13.857Z"),
5487
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
5486
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
5487
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
5488
5488
  guardrail_config: z.union([
5489
5489
  z.lazy(() =>
5490
5490
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
@@ -5591,8 +5591,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
5591
5591
  > = z.object({
5592
5592
  id: z.string(),
5593
5593
  description: z.string(),
5594
- created: z.string().default("2025-11-27T14:02:13.857Z"),
5595
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
5594
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
5595
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
5596
5596
  guardrailConfig: z.union([
5597
5597
  z.lazy(() =>
5598
5598
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
@@ -5905,8 +5905,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
5905
5905
  > = z.object({
5906
5906
  _id: z.string(),
5907
5907
  description: z.string(),
5908
- created: z.string().default("2025-11-27T14:02:13.857Z"),
5909
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
5908
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
5909
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
5910
5910
  guardrail_config: z.union([
5911
5911
  z.lazy(() =>
5912
5912
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -5947,8 +5947,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
5947
5947
  > = z.object({
5948
5948
  id: z.string(),
5949
5949
  description: z.string(),
5950
- created: z.string().default("2025-11-27T14:02:13.857Z"),
5951
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
5950
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
5951
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
5952
5952
  guardrailConfig: z.union([
5953
5953
  z.lazy(() =>
5954
5954
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -6233,8 +6233,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
6233
6233
  > = z.object({
6234
6234
  _id: z.string(),
6235
6235
  description: z.string(),
6236
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6237
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6236
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6237
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6238
6238
  guardrail_config: z.union([
6239
6239
  z.lazy(() =>
6240
6240
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -6281,8 +6281,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
6281
6281
  > = z.object({
6282
6282
  id: z.string(),
6283
6283
  description: z.string(),
6284
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6285
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6284
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6285
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6286
6286
  guardrailConfig: z.union([
6287
6287
  z.lazy(() =>
6288
6288
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -6551,8 +6551,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
6551
6551
  > = z.object({
6552
6552
  _id: z.string(),
6553
6553
  description: z.string(),
6554
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6555
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6554
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6555
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6556
6556
  guardrail_config: z.union([
6557
6557
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
6558
6558
  z.lazy(() =>
@@ -6591,8 +6591,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
6591
6591
  > = z.object({
6592
6592
  id: z.string(),
6593
6593
  description: z.string(),
6594
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6595
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6594
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6595
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6596
6596
  guardrailConfig: z.union([
6597
6597
  z.lazy(() =>
6598
6598
  UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
@@ -6831,8 +6831,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
6831
6831
  > = z.object({
6832
6832
  _id: z.string(),
6833
6833
  description: z.string(),
6834
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6835
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6834
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6835
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6836
6836
  guardrail_config: z.union([
6837
6837
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
6838
6838
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -6871,8 +6871,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
6871
6871
  > = z.object({
6872
6872
  id: z.string(),
6873
6873
  description: z.string(),
6874
- created: z.string().default("2025-11-27T14:02:13.857Z"),
6875
- updated: z.string().default("2025-11-27T14:02:13.857Z"),
6874
+ created: z.string().default("2025-11-28T12:16:12.523Z"),
6875
+ updated: z.string().default("2025-11-28T12:16:12.523Z"),
6876
6876
  guardrailConfig: z.union([
6877
6877
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
6878
6878
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -10,13 +10,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type UpdateMemoryRequestBody = {
12
12
  /**
13
- * Unique identifier for the entity this memory is associated with (e.g., user ID, session ID, conversation ID)
13
+ * Unique identifier for the entity this memory is associated with (e.g., user ID, session ID, conversation ID). Must be a valid UUID or ULID.
14
14
  */
15
15
  entityId: string;
16
16
  /**
17
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
18
  */
19
- metadata: { [k: string]: string };
19
+ metadata?: { [k: string]: string } | undefined;
20
20
  };
21
21
 
22
22
  export type UpdateMemoryRequest = {
@@ -56,7 +56,7 @@ export const UpdateMemoryRequestBody$inboundSchema: z.ZodType<
56
56
  unknown
57
57
  > = z.object({
58
58
  entity_id: z.string(),
59
- metadata: z.record(z.string()),
59
+ metadata: z.record(z.string()).optional(),
60
60
  }).transform((v) => {
61
61
  return remap$(v, {
62
62
  "entity_id": "entityId",
@@ -65,7 +65,7 @@ export const UpdateMemoryRequestBody$inboundSchema: z.ZodType<
65
65
  /** @internal */
66
66
  export type UpdateMemoryRequestBody$Outbound = {
67
67
  entity_id: string;
68
- metadata: { [k: string]: string };
68
+ metadata?: { [k: string]: string } | undefined;
69
69
  };
70
70
 
71
71
  /** @internal */
@@ -75,7 +75,7 @@ export const UpdateMemoryRequestBody$outboundSchema: z.ZodType<
75
75
  UpdateMemoryRequestBody
76
76
  > = z.object({
77
77
  entityId: z.string(),
78
- metadata: z.record(z.string()),
78
+ metadata: z.record(z.string()).optional(),
79
79
  }).transform((v) => {
80
80
  return remap$(v, {
81
81
  entityId: "entity_id",
@@ -16,7 +16,7 @@ export type UpdateMemoryDocumentRequestBody = {
16
16
  /**
17
17
  * Flexible key-value pairs for custom filtering and categorization of documents within a memory collection. Clients can add arbitrary string metadata to enable future filtering based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy). This enables powerful querying and retrieval strategies.
18
18
  */
19
- metadata: { [k: string]: string };
19
+ metadata?: { [k: string]: string } | undefined;
20
20
  };
21
21
 
22
22
  export type UpdateMemoryDocumentRequest = {
@@ -61,12 +61,12 @@ export const UpdateMemoryDocumentRequestBody$inboundSchema: z.ZodType<
61
61
  unknown
62
62
  > = z.object({
63
63
  text: z.string(),
64
- metadata: z.record(z.string()),
64
+ metadata: z.record(z.string()).optional(),
65
65
  });
66
66
  /** @internal */
67
67
  export type UpdateMemoryDocumentRequestBody$Outbound = {
68
68
  text: string;
69
- metadata: { [k: string]: string };
69
+ metadata?: { [k: string]: string } | undefined;
70
70
  };
71
71
 
72
72
  /** @internal */
@@ -76,7 +76,7 @@ export const UpdateMemoryDocumentRequestBody$outboundSchema: z.ZodType<
76
76
  UpdateMemoryDocumentRequestBody
77
77
  > = z.object({
78
78
  text: z.string(),
79
- metadata: z.record(z.string()),
79
+ metadata: z.record(z.string()).optional(),
80
80
  });
81
81
 
82
82
  export function updateMemoryDocumentRequestBodyToJSON(
@@ -9,33 +9,16 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type UpdateMemoryStoreEmbeddingConfig = {
13
- /**
14
- * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
15
- */
16
- model: string;
17
- };
18
-
19
12
  export type UpdateMemoryStoreRequestBody = {
20
- embeddingConfig: UpdateMemoryStoreEmbeddingConfig;
21
13
  /**
22
14
  * The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
23
15
  */
24
- description: string;
16
+ description?: string | undefined;
25
17
  /**
26
18
  * The default time to live of every memory document created within the memory store. Useful to control if the documents in the memory should be store for short or long term.
27
19
  */
28
20
  ttl?: number | undefined;
29
- /**
30
- * Entity storage path in the format: `project/folder/subfolder/...`
31
- *
32
- * @remarks
33
- *
34
- * The first element identifies the project, followed by nested folders (auto-created as needed).
35
- *
36
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
37
- */
38
- path: string;
21
+ path?: string | undefined;
39
22
  };
40
23
 
41
24
  export type UpdateMemoryStoreRequest = {
@@ -73,7 +56,7 @@ export type UpdateMemoryStoreProvider = ClosedEnum<
73
56
  typeof UpdateMemoryStoreProvider
74
57
  >;
75
58
 
76
- export type UpdateMemoryStoreMemoryStoresEmbeddingConfig = {
59
+ export type UpdateMemoryStoreEmbeddingConfig = {
77
60
  modelId: string;
78
61
  integrationId?: string | undefined;
79
62
  /**
@@ -123,73 +106,24 @@ export type UpdateMemoryStoreResponseBody = {
123
106
  * The default time to live of every memory document created within the memory store. Useful to control if the documents in the memory should be store for short or long term.
124
107
  */
125
108
  ttl?: number | undefined;
126
- embeddingConfig: UpdateMemoryStoreMemoryStoresEmbeddingConfig;
127
- };
128
-
129
- /** @internal */
130
- export const UpdateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
131
- UpdateMemoryStoreEmbeddingConfig,
132
- z.ZodTypeDef,
133
- unknown
134
- > = z.object({
135
- model: z.string(),
136
- });
137
- /** @internal */
138
- export type UpdateMemoryStoreEmbeddingConfig$Outbound = {
139
- model: string;
109
+ embeddingConfig: UpdateMemoryStoreEmbeddingConfig;
140
110
  };
141
111
 
142
- /** @internal */
143
- export const UpdateMemoryStoreEmbeddingConfig$outboundSchema: z.ZodType<
144
- UpdateMemoryStoreEmbeddingConfig$Outbound,
145
- z.ZodTypeDef,
146
- UpdateMemoryStoreEmbeddingConfig
147
- > = z.object({
148
- model: z.string(),
149
- });
150
-
151
- export function updateMemoryStoreEmbeddingConfigToJSON(
152
- updateMemoryStoreEmbeddingConfig: UpdateMemoryStoreEmbeddingConfig,
153
- ): string {
154
- return JSON.stringify(
155
- UpdateMemoryStoreEmbeddingConfig$outboundSchema.parse(
156
- updateMemoryStoreEmbeddingConfig,
157
- ),
158
- );
159
- }
160
- export function updateMemoryStoreEmbeddingConfigFromJSON(
161
- jsonString: string,
162
- ): SafeParseResult<UpdateMemoryStoreEmbeddingConfig, SDKValidationError> {
163
- return safeParse(
164
- jsonString,
165
- (x) => UpdateMemoryStoreEmbeddingConfig$inboundSchema.parse(JSON.parse(x)),
166
- `Failed to parse 'UpdateMemoryStoreEmbeddingConfig' from JSON`,
167
- );
168
- }
169
-
170
112
  /** @internal */
171
113
  export const UpdateMemoryStoreRequestBody$inboundSchema: z.ZodType<
172
114
  UpdateMemoryStoreRequestBody,
173
115
  z.ZodTypeDef,
174
116
  unknown
175
117
  > = z.object({
176
- embedding_config: z.lazy(() =>
177
- UpdateMemoryStoreEmbeddingConfig$inboundSchema
178
- ),
179
- description: z.string(),
118
+ description: z.string().optional(),
180
119
  ttl: z.number().optional(),
181
- path: z.string(),
182
- }).transform((v) => {
183
- return remap$(v, {
184
- "embedding_config": "embeddingConfig",
185
- });
120
+ path: z.string().optional(),
186
121
  });
187
122
  /** @internal */
188
123
  export type UpdateMemoryStoreRequestBody$Outbound = {
189
- embedding_config: UpdateMemoryStoreEmbeddingConfig$Outbound;
190
- description: string;
124
+ description?: string | undefined;
191
125
  ttl?: number | undefined;
192
- path: string;
126
+ path?: string | undefined;
193
127
  };
194
128
 
195
129
  /** @internal */
@@ -198,16 +132,9 @@ export const UpdateMemoryStoreRequestBody$outboundSchema: z.ZodType<
198
132
  z.ZodTypeDef,
199
133
  UpdateMemoryStoreRequestBody
200
134
  > = z.object({
201
- embeddingConfig: z.lazy(() =>
202
- UpdateMemoryStoreEmbeddingConfig$outboundSchema
203
- ),
204
- description: z.string(),
135
+ description: z.string().optional(),
205
136
  ttl: z.number().optional(),
206
- path: z.string(),
207
- }).transform((v) => {
208
- return remap$(v, {
209
- embeddingConfig: "embedding_config",
210
- });
137
+ path: z.string().optional(),
211
138
  });
212
139
 
213
140
  export function updateMemoryStoreRequestBodyToJSON(
@@ -293,25 +220,24 @@ export const UpdateMemoryStoreProvider$outboundSchema: z.ZodNativeEnum<
293
220
  > = UpdateMemoryStoreProvider$inboundSchema;
294
221
 
295
222
  /** @internal */
296
- export const UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema:
297
- z.ZodType<
298
- UpdateMemoryStoreMemoryStoresEmbeddingConfig,
299
- z.ZodTypeDef,
300
- unknown
301
- > = z.object({
302
- model_id: z.string(),
303
- integration_id: z.string().optional(),
304
- top_k: z.number().optional(),
305
- provider: UpdateMemoryStoreProvider$inboundSchema,
306
- }).transform((v) => {
307
- return remap$(v, {
308
- "model_id": "modelId",
309
- "integration_id": "integrationId",
310
- "top_k": "topK",
311
- });
223
+ export const UpdateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
224
+ UpdateMemoryStoreEmbeddingConfig,
225
+ z.ZodTypeDef,
226
+ unknown
227
+ > = z.object({
228
+ model_id: z.string(),
229
+ integration_id: z.string().optional(),
230
+ top_k: z.number().optional(),
231
+ provider: UpdateMemoryStoreProvider$inboundSchema,
232
+ }).transform((v) => {
233
+ return remap$(v, {
234
+ "model_id": "modelId",
235
+ "integration_id": "integrationId",
236
+ "top_k": "topK",
312
237
  });
238
+ });
313
239
  /** @internal */
314
- export type UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound = {
240
+ export type UpdateMemoryStoreEmbeddingConfig$Outbound = {
315
241
  model_id: string;
316
242
  integration_id?: string | undefined;
317
243
  top_k?: number | undefined;
@@ -319,47 +245,39 @@ export type UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound = {
319
245
  };
320
246
 
321
247
  /** @internal */
322
- export const UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema:
323
- z.ZodType<
324
- UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound,
325
- z.ZodTypeDef,
326
- UpdateMemoryStoreMemoryStoresEmbeddingConfig
327
- > = z.object({
328
- modelId: z.string(),
329
- integrationId: z.string().optional(),
330
- topK: z.number().optional(),
331
- provider: UpdateMemoryStoreProvider$outboundSchema,
332
- }).transform((v) => {
333
- return remap$(v, {
334
- modelId: "model_id",
335
- integrationId: "integration_id",
336
- topK: "top_k",
337
- });
248
+ export const UpdateMemoryStoreEmbeddingConfig$outboundSchema: z.ZodType<
249
+ UpdateMemoryStoreEmbeddingConfig$Outbound,
250
+ z.ZodTypeDef,
251
+ UpdateMemoryStoreEmbeddingConfig
252
+ > = z.object({
253
+ modelId: z.string(),
254
+ integrationId: z.string().optional(),
255
+ topK: z.number().optional(),
256
+ provider: UpdateMemoryStoreProvider$outboundSchema,
257
+ }).transform((v) => {
258
+ return remap$(v, {
259
+ modelId: "model_id",
260
+ integrationId: "integration_id",
261
+ topK: "top_k",
338
262
  });
263
+ });
339
264
 
340
- export function updateMemoryStoreMemoryStoresEmbeddingConfigToJSON(
341
- updateMemoryStoreMemoryStoresEmbeddingConfig:
342
- UpdateMemoryStoreMemoryStoresEmbeddingConfig,
265
+ export function updateMemoryStoreEmbeddingConfigToJSON(
266
+ updateMemoryStoreEmbeddingConfig: UpdateMemoryStoreEmbeddingConfig,
343
267
  ): string {
344
268
  return JSON.stringify(
345
- UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema.parse(
346
- updateMemoryStoreMemoryStoresEmbeddingConfig,
269
+ UpdateMemoryStoreEmbeddingConfig$outboundSchema.parse(
270
+ updateMemoryStoreEmbeddingConfig,
347
271
  ),
348
272
  );
349
273
  }
350
- export function updateMemoryStoreMemoryStoresEmbeddingConfigFromJSON(
274
+ export function updateMemoryStoreEmbeddingConfigFromJSON(
351
275
  jsonString: string,
352
- ): SafeParseResult<
353
- UpdateMemoryStoreMemoryStoresEmbeddingConfig,
354
- SDKValidationError
355
- > {
276
+ ): SafeParseResult<UpdateMemoryStoreEmbeddingConfig, SDKValidationError> {
356
277
  return safeParse(
357
278
  jsonString,
358
- (x) =>
359
- UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema.parse(
360
- JSON.parse(x),
361
- ),
362
- `Failed to parse 'UpdateMemoryStoreMemoryStoresEmbeddingConfig' from JSON`,
279
+ (x) => UpdateMemoryStoreEmbeddingConfig$inboundSchema.parse(JSON.parse(x)),
280
+ `Failed to parse 'UpdateMemoryStoreEmbeddingConfig' from JSON`,
363
281
  );
364
282
  }
365
283
 
@@ -379,7 +297,7 @@ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
379
297
  updated: z.string(),
380
298
  ttl: z.number().optional(),
381
299
  embedding_config: z.lazy(() =>
382
- UpdateMemoryStoreMemoryStoresEmbeddingConfig$inboundSchema
300
+ UpdateMemoryStoreEmbeddingConfig$inboundSchema
383
301
  ),
384
302
  }).transform((v) => {
385
303
  return remap$(v, {
@@ -401,7 +319,7 @@ export type UpdateMemoryStoreResponseBody$Outbound = {
401
319
  created: string;
402
320
  updated: string;
403
321
  ttl?: number | undefined;
404
- embedding_config: UpdateMemoryStoreMemoryStoresEmbeddingConfig$Outbound;
322
+ embedding_config: UpdateMemoryStoreEmbeddingConfig$Outbound;
405
323
  };
406
324
 
407
325
  /** @internal */
@@ -420,7 +338,7 @@ export const UpdateMemoryStoreResponseBody$outboundSchema: z.ZodType<
420
338
  updated: z.string(),
421
339
  ttl: z.number().optional(),
422
340
  embeddingConfig: z.lazy(() =>
423
- UpdateMemoryStoreMemoryStoresEmbeddingConfig$outboundSchema
341
+ UpdateMemoryStoreEmbeddingConfig$outboundSchema
424
342
  ),
425
343
  }).transform((v) => {
426
344
  return remap$(v, {