@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/expo/index.d.mts
CHANGED
|
@@ -6090,20 +6090,7 @@ interface DecayCandidateRaw {
|
|
|
6090
6090
|
* not egress poison content — see the decay sweeper's `isBorderline`). */
|
|
6091
6091
|
trustTier: string | null;
|
|
6092
6092
|
}
|
|
6093
|
-
/**
|
|
6094
|
-
* Decay sweep candidate scan (PR2). Selects the plaintext columns
|
|
6095
|
-
* `classifyDecay` (in `memory/decay`) needs via
|
|
6096
|
-
* `unsafeFetchRaw` — NO Model per row (dodges the never-evicted RecordCache /
|
|
6097
|
-
* web Pile-2 OOM history) and NO `content` read / decrypt (zero-knowledge).
|
|
6098
|
-
*
|
|
6099
|
-
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
6100
|
-
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
6101
|
-
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
6102
|
-
* (profile) memories, which never decay.
|
|
6103
|
-
*
|
|
6104
|
-
* Refuses to run on an unscoped multi-tenant context (see
|
|
6105
|
-
* {@link assertVaultScopeForSweep}).
|
|
6106
|
-
*/
|
|
6093
|
+
/** Return the projected plaintext fields for the decay sweep within the required vault scope. */
|
|
6107
6094
|
declare function getDecayCandidatesRawOp(ctx: VaultMemoryOperationsContext): Promise<DecayCandidateRaw[]>;
|
|
6108
6095
|
/**
|
|
6109
6096
|
* Archive a memory (decay soft state, PR2) — set `archived_at`. An archived row
|
|
@@ -9873,7 +9860,8 @@ declare class RemoteMemoryError extends Error {
|
|
|
9873
9860
|
readonly status: number;
|
|
9874
9861
|
readonly code?: string | undefined;
|
|
9875
9862
|
readonly retryAfterMs?: number | undefined;
|
|
9876
|
-
|
|
9863
|
+
readonly rateLimitBucket?: string | undefined;
|
|
9864
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined, rateLimitBucket?: string | undefined);
|
|
9877
9865
|
}
|
|
9878
9866
|
/**
|
|
9879
9867
|
* Remote persistence foundation for MemoryStore, not yet its recall/retain implementation.
|
|
@@ -9882,6 +9870,7 @@ declare class RemoteMemoryError extends Error {
|
|
|
9882
9870
|
* Migration must have activated the account under the canonical key before construction.
|
|
9883
9871
|
*/
|
|
9884
9872
|
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
9873
|
+
supportsRealtimeChanges?: boolean;
|
|
9885
9874
|
counts(): Promise<MemoryCounts>;
|
|
9886
9875
|
temporal(window: {
|
|
9887
9876
|
start: number;
|
|
@@ -10013,6 +10002,12 @@ interface RemoteMemoryStoreOptions {
|
|
|
10013
10002
|
graphRanking?: RecallFactSource["graphRanking"];
|
|
10014
10003
|
temporalRanking?: RecallFactSource["temporalRanking"];
|
|
10015
10004
|
pollIntervalMs?: number;
|
|
10005
|
+
activity?: {
|
|
10006
|
+
isActive: () => boolean;
|
|
10007
|
+
subscribe: (onChange: () => void) => () => void;
|
|
10008
|
+
};
|
|
10009
|
+
/** Report connection state on subscribe/reconnect and true on each account memory change. */
|
|
10010
|
+
subscribeChanges?: (onChange: (connected: boolean) => void) => () => void;
|
|
10016
10011
|
}
|
|
10017
10012
|
declare class RemoteMemoryPartialCreateError extends Error {
|
|
10018
10013
|
readonly created: StoredVaultMemory[];
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -6090,20 +6090,7 @@ interface DecayCandidateRaw {
|
|
|
6090
6090
|
* not egress poison content — see the decay sweeper's `isBorderline`). */
|
|
6091
6091
|
trustTier: string | null;
|
|
6092
6092
|
}
|
|
6093
|
-
/**
|
|
6094
|
-
* Decay sweep candidate scan (PR2). Selects the plaintext columns
|
|
6095
|
-
* `classifyDecay` (in `memory/decay`) needs via
|
|
6096
|
-
* `unsafeFetchRaw` — NO Model per row (dodges the never-evicted RecordCache /
|
|
6097
|
-
* web Pile-2 OOM history) and NO `content` read / decrypt (zero-knowledge).
|
|
6098
|
-
*
|
|
6099
|
-
* Includes archived AND quarantined rows (so archived→delete transitions and
|
|
6100
|
-
* aged quarantined rows are seen) but excludes hard-deleted rows — the
|
|
6101
|
-
* `baseVaultConditions` default keeps `is_deleted = false`. Excludes kinded
|
|
6102
|
-
* (profile) memories, which never decay.
|
|
6103
|
-
*
|
|
6104
|
-
* Refuses to run on an unscoped multi-tenant context (see
|
|
6105
|
-
* {@link assertVaultScopeForSweep}).
|
|
6106
|
-
*/
|
|
6093
|
+
/** Return the projected plaintext fields for the decay sweep within the required vault scope. */
|
|
6107
6094
|
declare function getDecayCandidatesRawOp(ctx: VaultMemoryOperationsContext): Promise<DecayCandidateRaw[]>;
|
|
6108
6095
|
/**
|
|
6109
6096
|
* Archive a memory (decay soft state, PR2) — set `archived_at`. An archived row
|
|
@@ -9873,7 +9860,8 @@ declare class RemoteMemoryError extends Error {
|
|
|
9873
9860
|
readonly status: number;
|
|
9874
9861
|
readonly code?: string | undefined;
|
|
9875
9862
|
readonly retryAfterMs?: number | undefined;
|
|
9876
|
-
|
|
9863
|
+
readonly rateLimitBucket?: string | undefined;
|
|
9864
|
+
constructor(message: string, status: number, code?: string | undefined, retryAfterMs?: number | undefined, rateLimitBucket?: string | undefined);
|
|
9877
9865
|
}
|
|
9878
9866
|
/**
|
|
9879
9867
|
* Remote persistence foundation for MemoryStore, not yet its recall/retain implementation.
|
|
@@ -9882,6 +9870,7 @@ declare class RemoteMemoryError extends Error {
|
|
|
9882
9870
|
* Migration must have activated the account under the canonical key before construction.
|
|
9883
9871
|
*/
|
|
9884
9872
|
interface RemoteMemoryPersistence extends RemoteTopicPersistence, RemoteMemoryWorkPersistence {
|
|
9873
|
+
supportsRealtimeChanges?: boolean;
|
|
9885
9874
|
counts(): Promise<MemoryCounts>;
|
|
9886
9875
|
temporal(window: {
|
|
9887
9876
|
start: number;
|
|
@@ -10013,6 +10002,12 @@ interface RemoteMemoryStoreOptions {
|
|
|
10013
10002
|
graphRanking?: RecallFactSource["graphRanking"];
|
|
10014
10003
|
temporalRanking?: RecallFactSource["temporalRanking"];
|
|
10015
10004
|
pollIntervalMs?: number;
|
|
10005
|
+
activity?: {
|
|
10006
|
+
isActive: () => boolean;
|
|
10007
|
+
subscribe: (onChange: () => void) => () => void;
|
|
10008
|
+
};
|
|
10009
|
+
/** Report connection state on subscribe/reconnect and true on each account memory change. */
|
|
10010
|
+
subscribeChanges?: (onChange: (connected: boolean) => void) => () => void;
|
|
10016
10011
|
}
|
|
10017
10012
|
declare class RemoteMemoryPartialCreateError extends Error {
|
|
10018
10013
|
readonly created: StoredVaultMemory[];
|