@memnexus-ai/typescript-sdk 1.22.0 → 1.24.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
@@ -3988,7 +3988,16 @@ var memory = import_zod.z.object({
3988
3988
  /** Topics explicitly provided by the user */
3989
3989
  userTopics: import_zod.z.array(import_zod.z.string()).optional(),
3990
3990
  /** Topics automatically extracted from content */
3991
- extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
3991
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional(),
3992
+ /** Entities extracted from memory content */
3993
+ entities: import_zod.z.array(import_zod.z.object({
3994
+ /** Entity name */
3995
+ name: import_zod.z.string(),
3996
+ /** Entity type */
3997
+ type: import_zod.z.string(),
3998
+ /** Extraction confidence */
3999
+ confidence: import_zod.z.number().min(0).max(1).optional()
4000
+ })).optional()
3992
4001
  });
3993
4002
  var createMemoryRequest = import_zod.z.object({
3994
4003
  /** Conversation ID - use "NEW" to create a new conversation or provide existing conversation ID */
@@ -4077,7 +4086,16 @@ var relatedMemoryResult = import_zod.z.object({
4077
4086
  /** Topics explicitly provided by the user */
4078
4087
  userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4079
4088
  /** Topics automatically extracted from content */
4080
- extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4089
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional(),
4090
+ /** Entities extracted from memory content */
4091
+ entities: import_zod.z.array(import_zod.z.object({
4092
+ /** Entity name */
4093
+ name: import_zod.z.string(),
4094
+ /** Entity type */
4095
+ type: import_zod.z.string(),
4096
+ /** Extraction confidence */
4097
+ confidence: import_zod.z.number().min(0).max(1).optional()
4098
+ })).optional()
4081
4099
  }),
4082
4100
  /** Relevance score (0-1). For similar: semantic similarity. For related: topic overlap ratio. For conversation: position score. */
4083
4101
  score: import_zod.z.number().min(0).max(1),
@@ -4313,7 +4331,16 @@ var searchResult = import_zod.z.lazy(() => import_zod.z.object({
4313
4331
  /** Topics explicitly provided by the user */
4314
4332
  userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4315
4333
  /** Topics automatically extracted from content */
4316
- extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4334
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional(),
4335
+ /** Entities extracted from memory content */
4336
+ entities: import_zod.z.array(import_zod.z.object({
4337
+ /** Entity name */
4338
+ name: import_zod.z.string(),
4339
+ /** Entity type */
4340
+ type: import_zod.z.string(),
4341
+ /** Extraction confidence */
4342
+ confidence: import_zod.z.number().min(0).max(1).optional()
4343
+ })).optional()
4317
4344
  }),
4318
4345
  /** Relevance score for this result */
4319
4346
  score: import_zod.z.number(),
@@ -4388,14 +4415,24 @@ var fact = import_zod.z.object({
4388
4415
  id: import_zod.z.string(),
4389
4416
  /** User ID who owns this fact */
4390
4417
  userId: import_zod.z.string(),
4391
- /** Fact name/label */
4392
- name: import_zod.z.string(),
4393
- /** Entity type */
4394
- type: import_zod.z.string(),
4395
- /** Fact description */
4418
+ /** The subject of the fact (what the fact is about) */
4419
+ subject: import_zod.z.string(),
4420
+ /** The relationship or property type */
4421
+ predicate: import_zod.z.string(),
4422
+ /** The value or target of the relationship */
4423
+ object: import_zod.z.string(),
4424
+ /** Fact name/label (deprecated, use subject) */
4425
+ name: import_zod.z.string().optional(),
4426
+ /** Entity type (deprecated, use predicate) */
4427
+ type: import_zod.z.string().optional(),
4428
+ /** Fact description (deprecated) */
4396
4429
  description: import_zod.z.string().nullable().optional(),
4397
4430
  /** Confidence score (0-1) */
4398
4431
  confidence: import_zod.z.number().min(0).max(1).optional(),
4432
+ /** ID of the memory this fact was extracted from */
4433
+ sourceMemoryId: import_zod.z.string().uuid().optional(),
4434
+ /** When this fact was extracted */
4435
+ extractedAt: import_zod.z.string().datetime().optional(),
4399
4436
  /** Creation timestamp */
4400
4437
  createdAt: import_zod.z.string().datetime(),
4401
4438
  /** Last update timestamp */
@@ -4623,7 +4660,16 @@ var narrativeMemory = import_zod.z.object({
4623
4660
  /** Topics explicitly provided by the user */
4624
4661
  userTopics: import_zod.z.array(import_zod.z.string()).optional(),
4625
4662
  /** Topics automatically extracted from content */
4626
- extractedTopics: import_zod.z.array(import_zod.z.string()).optional()
4663
+ extractedTopics: import_zod.z.array(import_zod.z.string()).optional(),
4664
+ /** Entities extracted from memory content */
4665
+ entities: import_zod.z.array(import_zod.z.object({
4666
+ /** Entity name */
4667
+ name: import_zod.z.string(),
4668
+ /** Entity type */
4669
+ type: import_zod.z.string(),
4670
+ /** Extraction confidence */
4671
+ confidence: import_zod.z.number().min(0).max(1).optional()
4672
+ })).optional()
4627
4673
  }),
4628
4674
  /** Position of this memory in the narrative (0-indexed) */
4629
4675
  position: import_zod.z.number().min(0),