Skip to Content
Anuma SDKReactInternalInterfacesRemoteMemoryPersistenceOptions

RemoteMemoryPersistenceOptions

Defined in: src/lib/memory/store/remotePersistence.ts:149 

The caller supplies the canonical account key’s field encryption on the device. These callbacks and authentication credentials never enter a request body. The encryption format must be the SDK’s enc:vN: field format.

Properties

baseUrl

baseUrl: string

Defined in: src/lib/memory/store/remotePersistence.ts:150 


decrypt()

decrypt: (ciphertext: string) => Promise<string>

Defined in: src/lib/memory/store/remotePersistence.ts:154 

Parameters

ParameterType

ciphertext

string

Returns

Promise<string>


encrypt()

encrypt: (plaintext: string) => Promise<string>

Defined in: src/lib/memory/store/remotePersistence.ts:153 

Parameters

ParameterType

plaintext

string

Returns

Promise<string>


fetch()?

optional fetch: {(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response>; }

Defined in: src/lib/memory/store/remotePersistence.ts:157 

Call Signature

(input: RequestInfo | URL, init?: RequestInit): Promise<Response>

MDN Reference 

Parameters

ParameterType

input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input: string | Request | URL, init?: RequestInit): Promise<Response>

MDN Reference 

Parameters

ParameterType

input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>


getToken()

getToken: () => Promise<string | null>

Defined in: src/lib/memory/store/remotePersistence.ts:151 

Returns

Promise<string | null>


hashTopic()

hashTopic: (normalized: string) => Promise<string>

Defined in: src/lib/memory/store/remotePersistence.ts:156 

Keyed hash of a normalized topic name, as provided by memoryCipher.

Parameters

ParameterType

normalized

string

Returns

Promise<string>


keyId

keyId: string

Defined in: src/lib/memory/store/remotePersistence.ts:152 


signal?

optional signal: AbortSignal

Defined in: src/lib/memory/store/remotePersistence.ts:159 

Cancellation for the initial account/key check and the background topic upgrade. Individual operations take their own signal.


timeoutMs?

optional timeoutMs: number

Defined in: src/lib/memory/store/remotePersistence.ts:160 

Last updated on