@anuma/sdk 6.34.0 → 6.36.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.
@@ -28,6 +28,12 @@ declare class VaultMemory extends Model {
28
28
  static table: string;
29
29
  content: string;
30
30
  scope: string;
31
+ /** Profile kind, or null for a free-form memory. */
32
+ kind: string | null;
33
+ /** Canonical JSON value of a kinded memory, encrypted at rest. */
34
+ kindValue: string | null;
35
+ /** private | matching | profile. */
36
+ level: string | null;
31
37
  folderId: string | null;
32
38
  userId: string | null;
33
39
  embedding: string | null;
@@ -674,13 +680,23 @@ type FactType = (typeof FACT_TYPES)[number];
674
680
  * the fail-safe direction: it un-publishes rather than exposes.
675
681
  */
676
682
  type VaultMemoryVisibility = "private" | "public";
683
+ /** Who a memory reaches. */
684
+ declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
685
+ /** One of {@link MEMORY_LEVELS}. */
686
+ type MemoryLevel = (typeof MEMORY_LEVELS)[number];
677
687
  interface StoredVaultMemory {
678
688
  /** WatermelonDB internal ID */
679
689
  uniqueId: string;
680
690
  /** Plain text memory content */
681
691
  content: string;
682
- /** Scope for partitioning memories (e.g., "private", "shared") */
692
+ /** Scope for partitioning memories (e.g., "private", "shared"). */
683
693
  scope: string;
694
+ /** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
695
+ kind?: string | null;
696
+ /** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
697
+ kindValue?: string | null;
698
+ /** Who this memory reaches. */
699
+ level?: MemoryLevel;
684
700
  /** Folder ID for organization, null if unfiled */
685
701
  folderId: string | null;
686
702
  /** User ID for multi-user server-side scoping, null on client */
@@ -837,6 +853,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
837
853
  * published set to diff against the server index.
838
854
  */
839
855
  visibility?: VaultMemoryVisibility[];
856
+ /** Filter by level. */
857
+ levels?: MemoryLevel[];
858
+ /** Restrict to these profile kinds. */
859
+ kinds?: string[];
840
860
  }): Promise<StoredVaultMemory[]>;
841
861
 
842
862
  type MemoryContextLane = "profile" | "fact" | "episode" | "session";
@@ -28,6 +28,12 @@ declare class VaultMemory extends Model {
28
28
  static table: string;
29
29
  content: string;
30
30
  scope: string;
31
+ /** Profile kind, or null for a free-form memory. */
32
+ kind: string | null;
33
+ /** Canonical JSON value of a kinded memory, encrypted at rest. */
34
+ kindValue: string | null;
35
+ /** private | matching | profile. */
36
+ level: string | null;
31
37
  folderId: string | null;
32
38
  userId: string | null;
33
39
  embedding: string | null;
@@ -674,13 +680,23 @@ type FactType = (typeof FACT_TYPES)[number];
674
680
  * the fail-safe direction: it un-publishes rather than exposes.
675
681
  */
676
682
  type VaultMemoryVisibility = "private" | "public";
683
+ /** Who a memory reaches. */
684
+ declare const MEMORY_LEVELS: readonly ["private", "matching", "profile"];
685
+ /** One of {@link MEMORY_LEVELS}. */
686
+ type MemoryLevel = (typeof MEMORY_LEVELS)[number];
677
687
  interface StoredVaultMemory {
678
688
  /** WatermelonDB internal ID */
679
689
  uniqueId: string;
680
690
  /** Plain text memory content */
681
691
  content: string;
682
- /** Scope for partitioning memories (e.g., "private", "shared") */
692
+ /** Scope for partitioning memories (e.g., "private", "shared"). */
683
693
  scope: string;
694
+ /** Profile kind ({@link MEMORY_KINDS}) or null for a free-form memory. */
695
+ kind?: string | null;
696
+ /** Canonical value of a kinded memory, JSON-encoded (slug, slug[], int, date, text). */
697
+ kindValue?: string | null;
698
+ /** Who this memory reaches. */
699
+ level?: MemoryLevel;
684
700
  /** Folder ID for organization, null if unfiled */
685
701
  folderId: string | null;
686
702
  /** User ID for multi-user server-side scoping, null on client */
@@ -837,6 +853,10 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
837
853
  * published set to diff against the server index.
838
854
  */
839
855
  visibility?: VaultMemoryVisibility[];
856
+ /** Filter by level. */
857
+ levels?: MemoryLevel[];
858
+ /** Restrict to these profile kinds. */
859
+ kinds?: string[];
840
860
  }): Promise<StoredVaultMemory[]>;
841
861
 
842
862
  type MemoryContextLane = "profile" | "fact" | "episode" | "session";