@memnexus-ai/typescript-sdk 1.84.2 → 1.85.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
@@ -6496,7 +6496,9 @@ var createMemoryRequest = import_zod.z.lazy(() => import_zod.z.object({
6496
6496
  /** Task outcome status for this memory */
6497
6497
  outcome: import_zod.z.enum(["resolved", "unresolved"]).optional(),
6498
6498
  /** Request distillation of this memory (Pro/Enterprise only) */
6499
- distill: import_zod.z.boolean().optional()
6499
+ distill: import_zod.z.boolean().optional(),
6500
+ /** ID of an existing memory, owned by the caller, that this new memory supersedes. Creates a SUPERSEDES relationship from the new memory to it. A target that does not exist or belongs to another user returns 404 before anything is written. A named create that targets the current head of a different named memory returns 400. An unnamed create that targets a named memory's current head moves that name to the new memory (the response data is serialised before the move, so it does not show the name yet). Any other memory's SUPERSEDES relationship onto the target is replaced and listed in meta.supersedes.replaced. */
6501
+ supersedes: import_zod.z.string().uuid().optional()
6500
6502
  }));
6501
6503
  var updateMemoryRequest = import_zod.z.object({
6502
6504
  /** Updated memory content */
@@ -6520,7 +6522,18 @@ var createMemoryResponseMeta = import_zod.z.object({
6520
6522
  /** Whether a new session was created (true) or existing session was reused (false) */
6521
6523
  sessionCreated: import_zod.z.boolean(),
6522
6524
  /** Whether a new conversation was created (true if conversationId was "NEW") */
6523
- conversationCreated: import_zod.z.boolean()
6525
+ conversationCreated: import_zod.z.boolean(),
6526
+ /** Present only when the request sent `supersedes`. Reports whether the SUPERSEDES relationship was written after the memory was created. */
6527
+ supersedes: import_zod.z.object({
6528
+ /** The memory ID sent as `supersedes` */
6529
+ targetMemoryId: import_zod.z.string(),
6530
+ /** Whether the SUPERSEDES relationship was written. False means the memory was created but is not chained. True with a reason means the relationship was written but a follow-up update did not complete. */
6531
+ linked: import_zod.z.boolean(),
6532
+ /** IDs of memories whose existing SUPERSEDES relationship onto the target was removed to keep a single linear chain (empty when none). Read just before the write, so it can be stale. On a failure it lists the edges that may already have been removed. Absent when it could not be read. */
6533
+ replaced: import_zod.z.array(import_zod.z.string()).optional(),
6534
+ /** Present only when the supersedes was not fully applied. relationship_write_failed: no relationship was written (linked is false). post_link_update_failed: the relationship was written (linked is true) but a follow-up update failed, such as moving a named head's name or marking the target superseded. */
6535
+ reason: import_zod.z.enum(["relationship_write_failed", "post_link_update_failed"]).optional()
6536
+ }).optional()
6524
6537
  });
6525
6538
  var createMemoryResponse = import_zod.z.lazy(() => import_zod.z.object({
6526
6539
  data: memory,