@memnexus-ai/typescript-sdk 1.21.2 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3984,7 +3984,11 @@ var memory = import_zod.z.object({
3984
3984
  /** Number of facts extracted from content */
3985
3985
  extractedFactCount: import_zod.z.number().min(0).optional(),
3986
3986
  /** Number of entities extracted from content */
3987
- extractedEntityCount: import_zod.z.number().min(0).optional()
3987
+ extractedEntityCount: import_zod.z.number().min(0).optional(),
3988
+ /** Topics explicitly provided by the user */
3989
+ userTopics: import_zod.z.array(import_zod.z.string()).optional(),
3990
+ /** Topics automatically extracted from content */
3991
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
3988
3992
  });
3989
3993
  var createMemoryRequest = import_zod.z.object({
3990
3994
  /** Conversation ID - use "NEW" to create a new conversation or provide existing conversation ID */
@@ -4069,7 +4073,11 @@ var relatedMemoryResult = import_zod.z.object({
4069
4073
  /** Number of facts extracted from content */
4070
4074
  extractedFactCount: import_zod.z.number().min(0).optional(),
4071
4075
  /** Number of entities extracted from content */
4072
- extractedEntityCount: import_zod.z.number().min(0).optional()
4076
+ extractedEntityCount: import_zod.z.number().min(0).optional(),
4077
+ /** Topics explicitly provided by the user */
4078
+ userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4079
+ /** Topics automatically extracted from content */
4080
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4073
4081
  }),
4074
4082
  /** Relevance score (0-1). For similar: semantic similarity. For related: topic overlap ratio. For conversation: position score. */
4075
4083
  score: import_zod.z.number().min(0).max(1),
@@ -4301,7 +4309,11 @@ var searchResult = import_zod.z.lazy(() => import_zod.z.object({
4301
4309
  /** Number of facts extracted from content */
4302
4310
  extractedFactCount: import_zod.z.number().min(0).optional(),
4303
4311
  /** Number of entities extracted from content */
4304
- extractedEntityCount: import_zod.z.number().min(0).optional()
4312
+ extractedEntityCount: import_zod.z.number().min(0).optional(),
4313
+ /** Topics explicitly provided by the user */
4314
+ userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4315
+ /** Topics automatically extracted from content */
4316
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4305
4317
  }),
4306
4318
  /** Relevance score for this result */
4307
4319
  score: import_zod.z.number(),
@@ -4376,14 +4388,24 @@ var fact = import_zod.z.object({
4376
4388
  id: import_zod.z.string(),
4377
4389
  /** User ID who owns this fact */
4378
4390
  userId: import_zod.z.string(),
4379
- /** Fact name/label */
4380
- name: import_zod.z.string(),
4381
- /** Entity type */
4382
- type: import_zod.z.string(),
4383
- /** Fact description */
4391
+ /** The subject of the fact (what the fact is about) */
4392
+ subject: import_zod.z.string(),
4393
+ /** The relationship or property type */
4394
+ predicate: import_zod.z.string(),
4395
+ /** The value or target of the relationship */
4396
+ object: import_zod.z.string(),
4397
+ /** Fact name/label (deprecated, use subject) */
4398
+ name: import_zod.z.string().optional(),
4399
+ /** Entity type (deprecated, use predicate) */
4400
+ type: import_zod.z.string().optional(),
4401
+ /** Fact description (deprecated) */
4384
4402
  description: import_zod.z.string().nullable().optional(),
4385
4403
  /** Confidence score (0-1) */
4386
4404
  confidence: import_zod.z.number().min(0).max(1).optional(),
4405
+ /** ID of the memory this fact was extracted from */
4406
+ sourceMemoryId: import_zod.z.string().uuid().optional(),
4407
+ /** When this fact was extracted */
4408
+ extractedAt: import_zod.z.string().datetime().optional(),
4387
4409
  /** Creation timestamp */
4388
4410
  createdAt: import_zod.z.string().datetime(),
4389
4411
  /** Last update timestamp */
@@ -4607,7 +4629,11 @@ var narrativeMemory = import_zod.z.object({
4607
4629
  /** Number of facts extracted from content */
4608
4630
  extractedFactCount: import_zod.z.number().min(0).optional(),
4609
4631
  /** Number of entities extracted from content */
4610
- extractedEntityCount: import_zod.z.number().min(0).optional()
4632
+ extractedEntityCount: import_zod.z.number().min(0).optional(),
4633
+ /** Topics explicitly provided by the user */
4634
+ userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4635
+ /** Topics automatically extracted from content */
4636
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4611
4637
  }),
4612
4638
  /** Position of this memory in the narrative (0-indexed) */
4613
4639
  position: import_zod.z.number().min(0),