@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.js CHANGED
@@ -3884,7 +3884,16 @@ var memory = z.object({
3884
3884
  /** Topics explicitly provided by the user */
3885
3885
  userTopics: z.array(z.string()).optional(),
3886
3886
  /** Topics automatically extracted from content */
3887
- extractedTopics: z.array(z.string()).optional()
3887
+ extractedTopics: z.array(z.string()).optional(),
3888
+ /** Entities extracted from memory content */
3889
+ entities: z.array(z.object({
3890
+ /** Entity name */
3891
+ name: z.string(),
3892
+ /** Entity type */
3893
+ type: z.string(),
3894
+ /** Extraction confidence */
3895
+ confidence: z.number().min(0).max(1).optional()
3896
+ })).optional()
3888
3897
  });
3889
3898
  var createMemoryRequest = z.object({
3890
3899
  /** Conversation ID - use "NEW" to create a new conversation or provide existing conversation ID */
@@ -3973,7 +3982,16 @@ var relatedMemoryResult = z.object({
3973
3982
  /** Topics explicitly provided by the user */
3974
3983
  userTopics: z.array(z.string()).optional(),
3975
3984
  /** Topics automatically extracted from content */
3976
- extractedTopics: z.array(z.string()).optional()
3985
+ extractedTopics: z.array(z.string()).optional(),
3986
+ /** Entities extracted from memory content */
3987
+ entities: z.array(z.object({
3988
+ /** Entity name */
3989
+ name: z.string(),
3990
+ /** Entity type */
3991
+ type: z.string(),
3992
+ /** Extraction confidence */
3993
+ confidence: z.number().min(0).max(1).optional()
3994
+ })).optional()
3977
3995
  }),
3978
3996
  /** Relevance score (0-1). For similar: semantic similarity. For related: topic overlap ratio. For conversation: position score. */
3979
3997
  score: z.number().min(0).max(1),
@@ -4209,7 +4227,16 @@ var searchResult = z.lazy(() => z.object({
4209
4227
  /** Topics explicitly provided by the user */
4210
4228
  userTopics: z.array(z.string()).optional(),
4211
4229
  /** Topics automatically extracted from content */
4212
- extractedTopics: z.array(z.string()).optional()
4230
+ extractedTopics: z.array(z.string()).optional(),
4231
+ /** Entities extracted from memory content */
4232
+ entities: z.array(z.object({
4233
+ /** Entity name */
4234
+ name: z.string(),
4235
+ /** Entity type */
4236
+ type: z.string(),
4237
+ /** Extraction confidence */
4238
+ confidence: z.number().min(0).max(1).optional()
4239
+ })).optional()
4213
4240
  }),
4214
4241
  /** Relevance score for this result */
4215
4242
  score: z.number(),
@@ -4284,14 +4311,24 @@ var fact = z.object({
4284
4311
  id: z.string(),
4285
4312
  /** User ID who owns this fact */
4286
4313
  userId: z.string(),
4287
- /** Fact name/label */
4288
- name: z.string(),
4289
- /** Entity type */
4290
- type: z.string(),
4291
- /** Fact description */
4314
+ /** The subject of the fact (what the fact is about) */
4315
+ subject: z.string(),
4316
+ /** The relationship or property type */
4317
+ predicate: z.string(),
4318
+ /** The value or target of the relationship */
4319
+ object: z.string(),
4320
+ /** Fact name/label (deprecated, use subject) */
4321
+ name: z.string().optional(),
4322
+ /** Entity type (deprecated, use predicate) */
4323
+ type: z.string().optional(),
4324
+ /** Fact description (deprecated) */
4292
4325
  description: z.string().nullable().optional(),
4293
4326
  /** Confidence score (0-1) */
4294
4327
  confidence: z.number().min(0).max(1).optional(),
4328
+ /** ID of the memory this fact was extracted from */
4329
+ sourceMemoryId: z.string().uuid().optional(),
4330
+ /** When this fact was extracted */
4331
+ extractedAt: z.string().datetime().optional(),
4295
4332
  /** Creation timestamp */
4296
4333
  createdAt: z.string().datetime(),
4297
4334
  /** Last update timestamp */
@@ -4519,7 +4556,16 @@ var narrativeMemory = z.object({
4519
4556
  /** Topics explicitly provided by the user */
4520
4557
  userTopics: z.array(z.string()).optional(),
4521
4558
  /** Topics automatically extracted from content */
4522
- extractedTopics: z.array(z.string()).optional()
4559
+ extractedTopics: z.array(z.string()).optional(),
4560
+ /** Entities extracted from memory content */
4561
+ entities: z.array(z.object({
4562
+ /** Entity name */
4563
+ name: z.string(),
4564
+ /** Entity type */
4565
+ type: z.string(),
4566
+ /** Extraction confidence */
4567
+ confidence: z.number().min(0).max(1).optional()
4568
+ })).optional()
4523
4569
  }),
4524
4570
  /** Position of this memory in the narrative (0-indexed) */
4525
4571
  position: z.number().min(0),