@anuma/sdk 9.1.0 → 9.1.2
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/expo/index.cjs +349 -97
- package/dist/expo/index.d.mts +10 -15
- package/dist/expo/index.d.ts +10 -15
- package/dist/expo/index.mjs +348 -96
- package/dist/index.cjs +37 -3
- package/dist/index.mjs +37 -3
- package/dist/react/index.cjs +349 -97
- package/dist/react/index.d.mts +10 -15
- package/dist/react/index.d.ts +10 -15
- package/dist/react/index.mjs +349 -97
- package/dist/server/index.cjs +40 -11
- package/dist/server/index.d.mts +1 -14
- package/dist/server/index.d.ts +1 -14
- package/dist/server/index.mjs +40 -11
- package/package.json +1 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -6695,20 +6695,7 @@ interface DecayCandidateRaw {
|
|
|
6695
6695
|
* not egress poison content — see the decay sweeper's `isBorderline`). */
|
|
6696
6696
|
trustTier: string | null;
|
|
6697
6697
|
}
|
|
6698
|
-
/**
|
|
6699
|
-
* Decay sweep candidate scan (PR2). Selects the plaintext columns
|
|
6700
|
-
* `classifyDecay` (in `memory/decay`) needs via
|
|
6701
|
-
* `unsafeFetchRaw` — NO Model per row (dodges the never-evicted RecordCache /
|
|
6702
|
-
* web Pile-2 OOM history) and NO `content` read / decrypt (zero-knowledge).
|
|
6703
|
-
*
|
|
6704
|
-
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
6705
|
-
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
6706
|
-
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
6707
|
-
* (profile) memories, which never decay.
|
|
6708
|
-
*
|
|
6709
|
-
* Refuses to run on an unscoped multi-tenant context (see
|
|
6710
|
-
* {@link assertVaultScopeForSweep}).
|
|
6711
|
-
*/
|
|
6698
|
+
/** Return the projected plaintext fields for the decay sweep within the required vault scope. */
|
|
6712
6699
|
declare function getDecayCandidatesRawOp(ctx: VaultMemoryOperationsContext): Promise<DecayCandidateRaw[]>;
|
|
6713
6700
|
/**
|
|
6714
6701
|
* Archive a memory (decay soft state, PR2) — set `archived_at`. An archived row
|
|
@@ -11607,7 +11594,8 @@ declare class RemoteMemoryError extends Error {
|
|
|
11607
11594
|
readonly status: number;
|
|
11608
11595
|
readonly code?: string | undefined;
|
|
11609
11596
|
readonly retryAfterMs?: number | undefined;
|
|
11610
|
-
|
|
11597
|
+
readonly rateLimitBucket?: string | undefined;
|
|
11598
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined, rateLimitBucket?: string | undefined);
|
|
11611
11599
|
}
|
|
11612
11600
|
/**
|
|
11613
11601
|
* Remote persistence foundation for MemoryStore, not yet its recall/retain implementation.
|
|
@@ -11616,6 +11604,7 @@ declare class RemoteMemoryError extends Error {
|
|
|
11616
11604
|
* Migration must have activated the account under the canonical key before construction.
|
|
11617
11605
|
*/
|
|
11618
11606
|
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
11607
|
+
supportsRealtimeChanges?: boolean;
|
|
11619
11608
|
counts(): Promise<MemoryCounts>;
|
|
11620
11609
|
temporal(window: {
|
|
11621
11610
|
start: number;
|
|
@@ -11747,6 +11736,12 @@ interface RemoteMemoryStoreOptions {
|
|
|
11747
11736
|
graphRanking?: RecallFactSource["graphRanking"];
|
|
11748
11737
|
temporalRanking?: RecallFactSource["temporalRanking"];
|
|
11749
11738
|
pollIntervalMs?: number;
|
|
11739
|
+
activity?: {
|
|
11740
|
+
isActive: () => boolean;
|
|
11741
|
+
subscribe: (onChange: () => void) => () => void;
|
|
11742
|
+
};
|
|
11743
|
+
/** Report connection state on subscribe/reconnect and true on each account memory change. */
|
|
11744
|
+
subscribeChanges?: (onChange: (connected: boolean) => void) => () => void;
|
|
11750
11745
|
}
|
|
11751
11746
|
declare class RemoteMemoryPartialCreateError extends Error {
|
|
11752
11747
|
readonly created: StoredVaultMemory[];
|
package/dist/react/index.d.ts
CHANGED
|
@@ -6695,20 +6695,7 @@ interface DecayCandidateRaw {
|
|
|
6695
6695
|
* not egress poison content — see the decay sweeper's `isBorderline`). */
|
|
6696
6696
|
trustTier: string | null;
|
|
6697
6697
|
}
|
|
6698
|
-
/**
|
|
6699
|
-
* Decay sweep candidate scan (PR2). Selects the plaintext columns
|
|
6700
|
-
* `classifyDecay` (in `memory/decay`) needs via
|
|
6701
|
-
* `unsafeFetchRaw` — NO Model per row (dodges the never-evicted RecordCache /
|
|
6702
|
-
* web Pile-2 OOM history) and NO `content` read / decrypt (zero-knowledge).
|
|
6703
|
-
*
|
|
6704
|
-
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
6705
|
-
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
6706
|
-
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
6707
|
-
* (profile) memories, which never decay.
|
|
6708
|
-
*
|
|
6709
|
-
* Refuses to run on an unscoped multi-tenant context (see
|
|
6710
|
-
* {@link assertVaultScopeForSweep}).
|
|
6711
|
-
*/
|
|
6698
|
+
/** Return the projected plaintext fields for the decay sweep within the required vault scope. */
|
|
6712
6699
|
declare function getDecayCandidatesRawOp(ctx: VaultMemoryOperationsContext): Promise<DecayCandidateRaw[]>;
|
|
6713
6700
|
/**
|
|
6714
6701
|
* Archive a memory (decay soft state, PR2) — set `archived_at`. An archived row
|
|
@@ -11607,7 +11594,8 @@ declare class RemoteMemoryError extends Error {
|
|
|
11607
11594
|
readonly status: number;
|
|
11608
11595
|
readonly code?: string | undefined;
|
|
11609
11596
|
readonly retryAfterMs?: number | undefined;
|
|
11610
|
-
|
|
11597
|
+
readonly rateLimitBucket?: string | undefined;
|
|
11598
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined, rateLimitBucket?: string | undefined);
|
|
11611
11599
|
}
|
|
11612
11600
|
/**
|
|
11613
11601
|
* Remote persistence foundation for MemoryStore, not yet its recall/retain implementation.
|
|
@@ -11616,6 +11604,7 @@ declare class RemoteMemoryError extends Error {
|
|
|
11616
11604
|
* Migration must have activated the account under the canonical key before construction.
|
|
11617
11605
|
*/
|
|
11618
11606
|
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
11607
|
+
supportsRealtimeChanges?: boolean;
|
|
11619
11608
|
counts(): Promise<MemoryCounts>;
|
|
11620
11609
|
temporal(window: {
|
|
11621
11610
|
start: number;
|
|
@@ -11747,6 +11736,12 @@ interface RemoteMemoryStoreOptions {
|
|
|
11747
11736
|
graphRanking?: RecallFactSource["graphRanking"];
|
|
11748
11737
|
temporalRanking?: RecallFactSource["temporalRanking"];
|
|
11749
11738
|
pollIntervalMs?: number;
|
|
11739
|
+
activity?: {
|
|
11740
|
+
isActive: () => boolean;
|
|
11741
|
+
subscribe: (onChange: () => void) => () => void;
|
|
11742
|
+
};
|
|
11743
|
+
/** Report connection state on subscribe/reconnect and true on each account memory change. */
|
|
11744
|
+
subscribeChanges?: (onChange: (connected: boolean) => void) => () => void;
|
|
11750
11745
|
}
|
|
11751
11746
|
declare class RemoteMemoryPartialCreateError extends Error {
|
|
11752
11747
|
readonly created: StoredVaultMemory[];
|