@anuma/sdk 10.10.0 → 11.0.1
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 +1024 -552
- package/dist/expo/index.d.mts +9 -5
- package/dist/expo/index.d.ts +9 -5
- package/dist/expo/index.mjs +1020 -552
- package/dist/react/index.cjs +1204 -661
- package/dist/react/index.d.mts +9 -5
- package/dist/react/index.d.ts +9 -5
- package/dist/react/index.mjs +1200 -661
- package/dist/tools/index.cjs +36 -2
- package/dist/tools/index.mjs +36 -2
- package/package.json +1 -1
package/dist/expo/index.d.mts
CHANGED
|
@@ -8613,13 +8613,14 @@ declare function saveSetting(store: ChatStore, section: string, data: {
|
|
|
8613
8613
|
}, signal?: AbortSignal): Promise<Setting>;
|
|
8614
8614
|
|
|
8615
8615
|
/**
|
|
8616
|
-
* AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
|
|
8616
|
+
* AES-GCM keys and the topic HMAC key derived from one wallet signature over `SIGN_MESSAGE`.
|
|
8617
8617
|
* @public
|
|
8618
8618
|
*/
|
|
8619
8619
|
interface MemoryKeyRing {
|
|
8620
8620
|
keyId: string;
|
|
8621
8621
|
v3: CryptoKey;
|
|
8622
8622
|
v2: CryptoKey;
|
|
8623
|
+
topicHash: CryptoKey;
|
|
8623
8624
|
}
|
|
8624
8625
|
/**
|
|
8625
8626
|
* Thrown when no supplied key decrypts a field.
|
|
@@ -8629,17 +8630,18 @@ declare class MemoryKeyError extends Error {
|
|
|
8629
8630
|
constructor(message: string);
|
|
8630
8631
|
}
|
|
8631
8632
|
/**
|
|
8632
|
-
* Derive the v3 and legacy v2 memory keys from a hex wallet signature.
|
|
8633
|
+
* Derive the v3 and legacy v2 memory keys and the topic HMAC key from a hex wallet signature.
|
|
8633
8634
|
* @public
|
|
8634
8635
|
*/
|
|
8635
8636
|
declare function deriveMemoryKeyRing(signatureHex: string): Promise<MemoryKeyRing>;
|
|
8636
8637
|
/**
|
|
8637
|
-
* Encrypt and
|
|
8638
|
+
* Encrypt, decrypt and topic-hash callbacks for `createRemoteMemoryPersistence` under the canonical key.
|
|
8638
8639
|
* @public
|
|
8639
8640
|
*/
|
|
8640
8641
|
declare function memoryCipher(canonical: MemoryKeyRing): {
|
|
8641
8642
|
encrypt: (plaintext: string) => Promise<string>;
|
|
8642
8643
|
decrypt: (ciphertext: string) => Promise<string>;
|
|
8644
|
+
hashTopic: (normalized: string) => Promise<string>;
|
|
8643
8645
|
};
|
|
8644
8646
|
/**
|
|
8645
8647
|
* Re-encrypt a local field under the canonical key.
|
|
@@ -10415,7 +10417,7 @@ interface RemoteMemoryWorkPersistence {
|
|
|
10415
10417
|
releaseWork(kind: RemoteMemoryWorkKind, token: string): Promise<void>;
|
|
10416
10418
|
}
|
|
10417
10419
|
|
|
10418
|
-
/** The nearby private-memory row. Content and
|
|
10420
|
+
/** The nearby private-memory row. Content, kind_value and topic names are plaintext ONLY on the device. */
|
|
10419
10421
|
interface RemoteMemoryRow {
|
|
10420
10422
|
memory_id: string;
|
|
10421
10423
|
content: string;
|
|
@@ -10536,8 +10538,10 @@ interface RemoteMemoryPersistenceOptions {
|
|
|
10536
10538
|
keyId: string;
|
|
10537
10539
|
encrypt: (plaintext: string) => Promise<string>;
|
|
10538
10540
|
decrypt: (ciphertext: string) => Promise<string>;
|
|
10541
|
+
/** Keyed hash of a normalized topic name, as provided by `memoryCipher`. */
|
|
10542
|
+
hashTopic: (normalized: string) => Promise<string>;
|
|
10539
10543
|
fetch?: typeof globalThis.fetch;
|
|
10540
|
-
/** Cancellation for the initial account/key check. Individual operations take their own signal. */
|
|
10544
|
+
/** Cancellation for the initial account/key check and the background topic upgrade. Individual operations take their own signal. */
|
|
10541
10545
|
signal?: AbortSignal;
|
|
10542
10546
|
timeoutMs?: number;
|
|
10543
10547
|
}
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -8613,13 +8613,14 @@ declare function saveSetting(store: ChatStore, section: string, data: {
|
|
|
8613
8613
|
}, signal?: AbortSignal): Promise<Setting>;
|
|
8614
8614
|
|
|
8615
8615
|
/**
|
|
8616
|
-
* AES-GCM keys derived from one wallet signature over `SIGN_MESSAGE`.
|
|
8616
|
+
* AES-GCM keys and the topic HMAC key derived from one wallet signature over `SIGN_MESSAGE`.
|
|
8617
8617
|
* @public
|
|
8618
8618
|
*/
|
|
8619
8619
|
interface MemoryKeyRing {
|
|
8620
8620
|
keyId: string;
|
|
8621
8621
|
v3: CryptoKey;
|
|
8622
8622
|
v2: CryptoKey;
|
|
8623
|
+
topicHash: CryptoKey;
|
|
8623
8624
|
}
|
|
8624
8625
|
/**
|
|
8625
8626
|
* Thrown when no supplied key decrypts a field.
|
|
@@ -8629,17 +8630,18 @@ declare class MemoryKeyError extends Error {
|
|
|
8629
8630
|
constructor(message: string);
|
|
8630
8631
|
}
|
|
8631
8632
|
/**
|
|
8632
|
-
* Derive the v3 and legacy v2 memory keys from a hex wallet signature.
|
|
8633
|
+
* Derive the v3 and legacy v2 memory keys and the topic HMAC key from a hex wallet signature.
|
|
8633
8634
|
* @public
|
|
8634
8635
|
*/
|
|
8635
8636
|
declare function deriveMemoryKeyRing(signatureHex: string): Promise<MemoryKeyRing>;
|
|
8636
8637
|
/**
|
|
8637
|
-
* Encrypt and
|
|
8638
|
+
* Encrypt, decrypt and topic-hash callbacks for `createRemoteMemoryPersistence` under the canonical key.
|
|
8638
8639
|
* @public
|
|
8639
8640
|
*/
|
|
8640
8641
|
declare function memoryCipher(canonical: MemoryKeyRing): {
|
|
8641
8642
|
encrypt: (plaintext: string) => Promise<string>;
|
|
8642
8643
|
decrypt: (ciphertext: string) => Promise<string>;
|
|
8644
|
+
hashTopic: (normalized: string) => Promise<string>;
|
|
8643
8645
|
};
|
|
8644
8646
|
/**
|
|
8645
8647
|
* Re-encrypt a local field under the canonical key.
|
|
@@ -10415,7 +10417,7 @@ interface RemoteMemoryWorkPersistence {
|
|
|
10415
10417
|
releaseWork(kind: RemoteMemoryWorkKind, token: string): Promise<void>;
|
|
10416
10418
|
}
|
|
10417
10419
|
|
|
10418
|
-
/** The nearby private-memory row. Content and
|
|
10420
|
+
/** The nearby private-memory row. Content, kind_value and topic names are plaintext ONLY on the device. */
|
|
10419
10421
|
interface RemoteMemoryRow {
|
|
10420
10422
|
memory_id: string;
|
|
10421
10423
|
content: string;
|
|
@@ -10536,8 +10538,10 @@ interface RemoteMemoryPersistenceOptions {
|
|
|
10536
10538
|
keyId: string;
|
|
10537
10539
|
encrypt: (plaintext: string) => Promise<string>;
|
|
10538
10540
|
decrypt: (ciphertext: string) => Promise<string>;
|
|
10541
|
+
/** Keyed hash of a normalized topic name, as provided by `memoryCipher`. */
|
|
10542
|
+
hashTopic: (normalized: string) => Promise<string>;
|
|
10539
10543
|
fetch?: typeof globalThis.fetch;
|
|
10540
|
-
/** Cancellation for the initial account/key check. Individual operations take their own signal. */
|
|
10544
|
+
/** Cancellation for the initial account/key check and the background topic upgrade. Individual operations take their own signal. */
|
|
10541
10545
|
signal?: AbortSignal;
|
|
10542
10546
|
timeoutMs?: number;
|
|
10543
10547
|
}
|