@arbidocs/client 0.5.58 → 0.5.60
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/README.md +10 -0
- package/dist/index.cjs +61 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -6
- package/dist/index.d.ts +30 -6
- package/dist/index.js +59 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -39357,12 +39357,14 @@ interface SessionKeys {
|
|
|
39357
39357
|
}
|
|
39358
39358
|
/**
|
|
39359
39359
|
* Where the signed-in identity is kept between page loads (the signing key and the server session
|
|
39360
|
-
* key). Browsers default to the bundled encrypted IndexedDB store;
|
|
39361
|
-
*
|
|
39360
|
+
* key). Browsers default to the bundled encrypted IndexedDB store; without IndexedDB the default
|
|
39361
|
+
* is per-client memory. Hosts may supply their own persistence. A silent re-login reads the key from here and saves the new server session key back.
|
|
39362
39362
|
*/
|
|
39363
39363
|
interface SessionPersistence {
|
|
39364
39364
|
getSession(): Promise<SessionKeys | null>;
|
|
39365
39365
|
saveSession(data: SessionKeys): Promise<void>;
|
|
39366
|
+
/** Clear local key material when signing out everywhere. Optional for existing adapters. */
|
|
39367
|
+
clearSession?(): Promise<void>;
|
|
39366
39368
|
}
|
|
39367
39369
|
interface AuthStateProvider {
|
|
39368
39370
|
getUserEmail(): string | null;
|
|
@@ -40481,8 +40483,8 @@ interface ArbiClientOptions {
|
|
|
40481
40483
|
session?: SessionManager;
|
|
40482
40484
|
/**
|
|
40483
40485
|
* Where the signing key and server session key are kept between page loads. Browsers default to
|
|
40484
|
-
* the bundled encrypted IndexedDB store;
|
|
40485
|
-
*
|
|
40486
|
+
* the bundled encrypted IndexedDB store; without IndexedDB the default is per-client memory.
|
|
40487
|
+
* Supply an adapter explicitly to persist Node sessions beyond this instance.
|
|
40486
40488
|
*/
|
|
40487
40489
|
persistence?: SessionPersistence;
|
|
40488
40490
|
/**
|
|
@@ -40609,7 +40611,7 @@ interface ArbiClient {
|
|
|
40609
40611
|
encryptMessageWithSharedSecret: typeof encryptMessageWithSharedSecret;
|
|
40610
40612
|
decryptMessageWithSharedSecret: typeof decryptMessageWithSharedSecret;
|
|
40611
40613
|
};
|
|
40612
|
-
/**
|
|
40614
|
+
/** The same session-key persistence used by login and session recovery. */
|
|
40613
40615
|
storage: {
|
|
40614
40616
|
getSession: typeof getSession;
|
|
40615
40617
|
saveSession: typeof saveSession;
|
|
@@ -40783,4 +40785,26 @@ interface OpenAllDeps {
|
|
|
40783
40785
|
*/
|
|
40784
40786
|
declare function createAllWorkspacesOpener(deps: OpenAllDeps): () => Promise<void>;
|
|
40785
40787
|
|
|
40786
|
-
|
|
40788
|
+
/** Per-client memory only: no browser globals, files or process-wide shared identity. */
|
|
40789
|
+
declare function createMemorySessionPersistence(): SessionPersistence;
|
|
40790
|
+
|
|
40791
|
+
/**
|
|
40792
|
+
* One console logger for an ARBI frontend and its packages: errors always print; warnings, info
|
|
40793
|
+
* and debug lines print only when the host turns verbose logging on (in development, say:
|
|
40794
|
+
* `configureLogger({ verbose: import.meta.env.DEV })` at startup). The package never reads a
|
|
40795
|
+
* bundler's environment itself.
|
|
40796
|
+
*/
|
|
40797
|
+
interface LoggerOptions {
|
|
40798
|
+
/** Print `warn`, `info` and `debug` too. Off by default. */
|
|
40799
|
+
verbose: boolean;
|
|
40800
|
+
}
|
|
40801
|
+
declare function configureLogger(options: LoggerOptions): void;
|
|
40802
|
+
declare const logger: {
|
|
40803
|
+
/** Always printed, production included. */
|
|
40804
|
+
error: (...args: unknown[]) => void;
|
|
40805
|
+
warn: (...args: unknown[]) => void;
|
|
40806
|
+
info: (...args: unknown[]) => void;
|
|
40807
|
+
debug: (...args: unknown[]) => void;
|
|
40808
|
+
};
|
|
40809
|
+
|
|
40810
|
+
export { type $defs, ACCESS_TOKEN_STORAGE_KEY, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, CALL_KEY_BYTES, CHAT_KEY_BYTES, type CallPeer, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type DisconnectSsoParams, ENCRYPTED_RECOVERY_KEY_SIZE, type HttpErrorInfo, type HttpRequestInfo, type HttpResponseInfo, type HttpTransport, type HttpTransportOptions, type KeyLoginCredentials, type KeyPair, type ListedWorkspaceKey, type LoggerOptions, type LoginCredentials, type LoginParams, type LoginProfile, type LoginProvider, type LoginRequest, type LoginResponse, type LoginResult, type LoginWithKeyParams, type OfflineSealer, type OfflineSealerOptions, type OnReloginSuccess, type OpenAllDeps, type ParsedRecoveryUrl, type PasswordChangeCredentials, RECOVERY_KEY_ERRORS, type RecoveryKeyParams, type RecoveryKeyValidationResult, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginFailure, type ReloginHandler, type ReopenDeps, SECURE_MAIL_KEY_BYTES, type SealedSecureMail, type SecureMailCiphertexts, type SecureMailClaim, type SessionClaims, type SessionData, type SessionKeys, type SessionManager, type SessionManagerOptions, type SessionPersistence, type SessionSignIn, type SessionState, type SessionStateStorage, type SessionUser, type SignInHooks, type SsoTokenSource, type StoredSessionState, type TokenProvider, UNENCRYPTED_RECOVERY_KEY_SIZE, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyRefreshProvider, type WorkspaceKeys, type WorkspaceOpenProvider, type WorkspaceOpens, type WsAgentDmStatusMessage, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsChatMessageMessage, type WsChatReadMessage, type WsChatUpdatedMessage, type WsConnectionClosedMessage, type WsConversationMessagePostedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsResponseCompleteMessage, type WsTaskUpdateMessage, authRequestError, base64Decode, base64Encode, base64ToBytes, base64UrlToBytes, browserSessionStateStorage, buildCallFragment, buildCallLink, buildWebSocketUrl, bytesToBase64, bytesToBase64Url, canPersistSession, changePassword, clearAllData, clearSession, type components, computeSharedSecret, configureLogger, createAllWorkspacesOpener, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createContentHash, createHttpTransport, createMemorySessionPersistence, createOfflineSealer, createRecoveryFile, createRecoveryUrl, createReloginHandler, createSessionManager, createWorkspaceKeys, createWorkspaceOpens, createWorkspaceReopener, decodeCallKey, decodeSecureMailKey, decryptCallTitle, decryptFile, decryptMessage, decryptMessageWithSharedSecret, decryptRecoveryKey, decryptWithChatKey, deriveDirectChatKey, deriveEncryptionKeypairFromSigning, derivePublicKey, disconnectSso, encodeCallKey, encryptCallTitle, encryptFile, encryptMessage, encryptMessageWithSharedSecret, encryptRecoveryKey, encryptWithChatKey, encryptionKeypairFromSigningKey, generateCallKey, generateChatKey, generateIdentityKeypair, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRandomSigningKeypair, generateRegistrationCredentials, generateUserKeypairs, getRecoveryKeyFilename, getSession, getUserEncryptionKeypair, hasSession, identityFromLoginResponse, initSodium, initializeDatabase, isAbortError, isEncryptedRecoveryKey, isMessageType, logger, openCallKeyOf, openSealedCallKey, openSealedChatKey, openSecureMail, type operations, parseCallFragment, parseRecoveryUrl, parseServerMessage, passwordChangeErrorMessage, type paths, prewarmKeyPairs, readSessionClaims, requestSsoDisconnectCode, saveSession, sealCallKey, sealCallKeyForPeers, sealChatKey, sealKeyForSession, sealSecureMail, sealedBoxDecrypt, sealedBoxEncrypt, secureMailClaim, signMessage, unlockIdentityWithPassword, unwrapIdentityKey, unwrapWorkspaceKey, updateWrappedIdentityKey, validateRecoveryKeyFile, type webhooks, workspaceKeyRequiredOf, wrapIdentityKey };
|
package/dist/index.d.ts
CHANGED
|
@@ -39357,12 +39357,14 @@ interface SessionKeys {
|
|
|
39357
39357
|
}
|
|
39358
39358
|
/**
|
|
39359
39359
|
* Where the signed-in identity is kept between page loads (the signing key and the server session
|
|
39360
|
-
* key). Browsers default to the bundled encrypted IndexedDB store;
|
|
39361
|
-
*
|
|
39360
|
+
* key). Browsers default to the bundled encrypted IndexedDB store; without IndexedDB the default
|
|
39361
|
+
* is per-client memory. Hosts may supply their own persistence. A silent re-login reads the key from here and saves the new server session key back.
|
|
39362
39362
|
*/
|
|
39363
39363
|
interface SessionPersistence {
|
|
39364
39364
|
getSession(): Promise<SessionKeys | null>;
|
|
39365
39365
|
saveSession(data: SessionKeys): Promise<void>;
|
|
39366
|
+
/** Clear local key material when signing out everywhere. Optional for existing adapters. */
|
|
39367
|
+
clearSession?(): Promise<void>;
|
|
39366
39368
|
}
|
|
39367
39369
|
interface AuthStateProvider {
|
|
39368
39370
|
getUserEmail(): string | null;
|
|
@@ -40481,8 +40483,8 @@ interface ArbiClientOptions {
|
|
|
40481
40483
|
session?: SessionManager;
|
|
40482
40484
|
/**
|
|
40483
40485
|
* Where the signing key and server session key are kept between page loads. Browsers default to
|
|
40484
|
-
* the bundled encrypted IndexedDB store;
|
|
40485
|
-
*
|
|
40486
|
+
* the bundled encrypted IndexedDB store; without IndexedDB the default is per-client memory.
|
|
40487
|
+
* Supply an adapter explicitly to persist Node sessions beyond this instance.
|
|
40486
40488
|
*/
|
|
40487
40489
|
persistence?: SessionPersistence;
|
|
40488
40490
|
/**
|
|
@@ -40609,7 +40611,7 @@ interface ArbiClient {
|
|
|
40609
40611
|
encryptMessageWithSharedSecret: typeof encryptMessageWithSharedSecret;
|
|
40610
40612
|
decryptMessageWithSharedSecret: typeof decryptMessageWithSharedSecret;
|
|
40611
40613
|
};
|
|
40612
|
-
/**
|
|
40614
|
+
/** The same session-key persistence used by login and session recovery. */
|
|
40613
40615
|
storage: {
|
|
40614
40616
|
getSession: typeof getSession;
|
|
40615
40617
|
saveSession: typeof saveSession;
|
|
@@ -40783,4 +40785,26 @@ interface OpenAllDeps {
|
|
|
40783
40785
|
*/
|
|
40784
40786
|
declare function createAllWorkspacesOpener(deps: OpenAllDeps): () => Promise<void>;
|
|
40785
40787
|
|
|
40786
|
-
|
|
40788
|
+
/** Per-client memory only: no browser globals, files or process-wide shared identity. */
|
|
40789
|
+
declare function createMemorySessionPersistence(): SessionPersistence;
|
|
40790
|
+
|
|
40791
|
+
/**
|
|
40792
|
+
* One console logger for an ARBI frontend and its packages: errors always print; warnings, info
|
|
40793
|
+
* and debug lines print only when the host turns verbose logging on (in development, say:
|
|
40794
|
+
* `configureLogger({ verbose: import.meta.env.DEV })` at startup). The package never reads a
|
|
40795
|
+
* bundler's environment itself.
|
|
40796
|
+
*/
|
|
40797
|
+
interface LoggerOptions {
|
|
40798
|
+
/** Print `warn`, `info` and `debug` too. Off by default. */
|
|
40799
|
+
verbose: boolean;
|
|
40800
|
+
}
|
|
40801
|
+
declare function configureLogger(options: LoggerOptions): void;
|
|
40802
|
+
declare const logger: {
|
|
40803
|
+
/** Always printed, production included. */
|
|
40804
|
+
error: (...args: unknown[]) => void;
|
|
40805
|
+
warn: (...args: unknown[]) => void;
|
|
40806
|
+
info: (...args: unknown[]) => void;
|
|
40807
|
+
debug: (...args: unknown[]) => void;
|
|
40808
|
+
};
|
|
40809
|
+
|
|
40810
|
+
export { type $defs, ACCESS_TOKEN_STORAGE_KEY, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, CALL_KEY_BYTES, CHAT_KEY_BYTES, type CallPeer, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type DisconnectSsoParams, ENCRYPTED_RECOVERY_KEY_SIZE, type HttpErrorInfo, type HttpRequestInfo, type HttpResponseInfo, type HttpTransport, type HttpTransportOptions, type KeyLoginCredentials, type KeyPair, type ListedWorkspaceKey, type LoggerOptions, type LoginCredentials, type LoginParams, type LoginProfile, type LoginProvider, type LoginRequest, type LoginResponse, type LoginResult, type LoginWithKeyParams, type OfflineSealer, type OfflineSealerOptions, type OnReloginSuccess, type OpenAllDeps, type ParsedRecoveryUrl, type PasswordChangeCredentials, RECOVERY_KEY_ERRORS, type RecoveryKeyParams, type RecoveryKeyValidationResult, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginFailure, type ReloginHandler, type ReopenDeps, SECURE_MAIL_KEY_BYTES, type SealedSecureMail, type SecureMailCiphertexts, type SecureMailClaim, type SessionClaims, type SessionData, type SessionKeys, type SessionManager, type SessionManagerOptions, type SessionPersistence, type SessionSignIn, type SessionState, type SessionStateStorage, type SessionUser, type SignInHooks, type SsoTokenSource, type StoredSessionState, type TokenProvider, UNENCRYPTED_RECOVERY_KEY_SIZE, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyRefreshProvider, type WorkspaceKeys, type WorkspaceOpenProvider, type WorkspaceOpens, type WsAgentDmStatusMessage, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsChatMessageMessage, type WsChatReadMessage, type WsChatUpdatedMessage, type WsConnectionClosedMessage, type WsConversationMessagePostedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsResponseCompleteMessage, type WsTaskUpdateMessage, authRequestError, base64Decode, base64Encode, base64ToBytes, base64UrlToBytes, browserSessionStateStorage, buildCallFragment, buildCallLink, buildWebSocketUrl, bytesToBase64, bytesToBase64Url, canPersistSession, changePassword, clearAllData, clearSession, type components, computeSharedSecret, configureLogger, createAllWorkspacesOpener, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createContentHash, createHttpTransport, createMemorySessionPersistence, createOfflineSealer, createRecoveryFile, createRecoveryUrl, createReloginHandler, createSessionManager, createWorkspaceKeys, createWorkspaceOpens, createWorkspaceReopener, decodeCallKey, decodeSecureMailKey, decryptCallTitle, decryptFile, decryptMessage, decryptMessageWithSharedSecret, decryptRecoveryKey, decryptWithChatKey, deriveDirectChatKey, deriveEncryptionKeypairFromSigning, derivePublicKey, disconnectSso, encodeCallKey, encryptCallTitle, encryptFile, encryptMessage, encryptMessageWithSharedSecret, encryptRecoveryKey, encryptWithChatKey, encryptionKeypairFromSigningKey, generateCallKey, generateChatKey, generateIdentityKeypair, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRandomSigningKeypair, generateRegistrationCredentials, generateUserKeypairs, getRecoveryKeyFilename, getSession, getUserEncryptionKeypair, hasSession, identityFromLoginResponse, initSodium, initializeDatabase, isAbortError, isEncryptedRecoveryKey, isMessageType, logger, openCallKeyOf, openSealedCallKey, openSealedChatKey, openSecureMail, type operations, parseCallFragment, parseRecoveryUrl, parseServerMessage, passwordChangeErrorMessage, type paths, prewarmKeyPairs, readSessionClaims, requestSsoDisconnectCode, saveSession, sealCallKey, sealCallKeyForPeers, sealChatKey, sealKeyForSession, sealSecureMail, sealedBoxDecrypt, sealedBoxEncrypt, secureMailClaim, signMessage, unlockIdentityWithPassword, unwrapIdentityKey, unwrapWorkspaceKey, updateWrappedIdentityKey, validateRecoveryKeyFile, type webhooks, workspaceKeyRequiredOf, wrapIdentityKey };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,36 @@ import sodium from 'libsodium-wrappers-sumo';
|
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
|
|
6
|
+
// src/memory-persistence.ts
|
|
7
|
+
function copy(keys) {
|
|
8
|
+
return {
|
|
9
|
+
...keys,
|
|
10
|
+
signingPrivateKey: keys.signingPrivateKey.slice(),
|
|
11
|
+
...keys.serverSessionKey ? { serverSessionKey: keys.serverSessionKey.slice() } : {}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function createMemorySessionPersistence() {
|
|
15
|
+
let saved = null;
|
|
16
|
+
const clear = () => {
|
|
17
|
+
saved?.signingPrivateKey.fill(0);
|
|
18
|
+
saved?.serverSessionKey?.fill(0);
|
|
19
|
+
saved = null;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
async getSession() {
|
|
23
|
+
return saved ? copy(saved) : null;
|
|
24
|
+
},
|
|
25
|
+
async saveSession(keys) {
|
|
26
|
+
const next = copy(keys);
|
|
27
|
+
clear();
|
|
28
|
+
saved = next;
|
|
29
|
+
},
|
|
30
|
+
async clearSession() {
|
|
31
|
+
clear();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
6
36
|
// src/http-transport.ts
|
|
7
37
|
function createHttpTransport(options = {}) {
|
|
8
38
|
const { timeoutMs } = options;
|
|
@@ -2006,8 +2036,8 @@ function createArbiClient(options) {
|
|
|
2006
2036
|
decryptMessageWithSharedSecret
|
|
2007
2037
|
},
|
|
2008
2038
|
storage: {
|
|
2009
|
-
getSession,
|
|
2010
|
-
saveSession
|
|
2039
|
+
getSession: () => persistence.getSession(),
|
|
2040
|
+
saveSession: (data) => persistence.saveSession(data)
|
|
2011
2041
|
}
|
|
2012
2042
|
};
|
|
2013
2043
|
}
|
|
@@ -2021,7 +2051,7 @@ function createTransport(options) {
|
|
|
2021
2051
|
onRetryCloneFailed,
|
|
2022
2052
|
userEmail
|
|
2023
2053
|
} = options;
|
|
2024
|
-
const persistence = options.persistence ?? { getSession, saveSession };
|
|
2054
|
+
const persistence = options.persistence ?? (typeof indexedDB === "undefined" ? createMemorySessionPersistence() : { getSession, saveSession, clearSession: clearAllData });
|
|
2025
2055
|
const baseUrlOption = options.baseUrl;
|
|
2026
2056
|
const base = typeof baseUrlOption === "function" ? baseUrlOption : () => baseUrlOption;
|
|
2027
2057
|
const transport = createHttpTransport(options.transport);
|
|
@@ -2283,7 +2313,10 @@ function createTransport(options) {
|
|
|
2283
2313
|
}).catch((error) => console.warn("[API] Server logout failed:", error));
|
|
2284
2314
|
}
|
|
2285
2315
|
session.clear();
|
|
2286
|
-
if (everywhere)
|
|
2316
|
+
if (everywhere) {
|
|
2317
|
+
if (persistence.clearSession) await persistence.clearSession();
|
|
2318
|
+
else if (typeof indexedDB !== "undefined") await clearAllData();
|
|
2319
|
+
}
|
|
2287
2320
|
} finally {
|
|
2288
2321
|
gate.reopen();
|
|
2289
2322
|
}
|
|
@@ -2366,6 +2399,27 @@ function isMessageType(msg, type) {
|
|
|
2366
2399
|
return msg.type === type;
|
|
2367
2400
|
}
|
|
2368
2401
|
|
|
2369
|
-
|
|
2402
|
+
// src/logger.ts
|
|
2403
|
+
var verbose = false;
|
|
2404
|
+
function configureLogger(options) {
|
|
2405
|
+
verbose = options.verbose;
|
|
2406
|
+
}
|
|
2407
|
+
var logger = {
|
|
2408
|
+
/** Always printed, production included. */
|
|
2409
|
+
error: (...args) => {
|
|
2410
|
+
console.error(...args);
|
|
2411
|
+
},
|
|
2412
|
+
warn: (...args) => {
|
|
2413
|
+
if (verbose) console.warn(...args);
|
|
2414
|
+
},
|
|
2415
|
+
info: (...args) => {
|
|
2416
|
+
if (verbose) console.info(...args);
|
|
2417
|
+
},
|
|
2418
|
+
debug: (...args) => {
|
|
2419
|
+
if (verbose) console.debug(...args);
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
export { ACCESS_TOKEN_STORAGE_KEY, API_PREFIX, CALL_KEY_BYTES, CHAT_KEY_BYTES, ENCRYPTED_RECOVERY_KEY_SIZE, RECOVERY_KEY_ERRORS, SECURE_MAIL_KEY_BYTES, UNENCRYPTED_RECOVERY_KEY_SIZE, authRequestError, base64Decode, base64Encode, base64ToBytes, base64UrlToBytes, browserSessionStateStorage, buildCallFragment, buildCallLink, buildWebSocketUrl, bytesToBase64, bytesToBase64Url, canPersistSession, changePassword, clearAllData, clearSession, computeSharedSecret, configureLogger, createAllWorkspacesOpener, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createContentHash, createHttpTransport, createMemorySessionPersistence, createOfflineSealer, createRecoveryFile, createRecoveryUrl, createReloginHandler, createSessionManager, createWorkspaceKeys, createWorkspaceOpens, createWorkspaceReopener, decodeCallKey, decodeSecureMailKey, decryptCallTitle, decryptFile, decryptMessage, decryptMessageWithSharedSecret, decryptRecoveryKey, decryptWithChatKey, deriveDirectChatKey, deriveEncryptionKeypairFromSigning, derivePublicKey, disconnectSso, encodeCallKey, encryptCallTitle, encryptFile, encryptMessage, encryptMessageWithSharedSecret, encryptRecoveryKey, encryptWithChatKey, encryptionKeypairFromSigningKey, generateCallKey, generateChatKey, generateIdentityKeypair, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRandomSigningKeypair, generateRegistrationCredentials, generateUserKeypairs, getRecoveryKeyFilename, getSession, getUserEncryptionKeypair, hasSession, identityFromLoginResponse, initSodium, initializeDatabase, isAbortError, isEncryptedRecoveryKey, isMessageType, logger, openCallKeyOf, openSealedCallKey, openSealedChatKey, openSecureMail, parseCallFragment, parseRecoveryUrl, parseServerMessage, passwordChangeErrorMessage, prewarmKeyPairs, readSessionClaims, requestSsoDisconnectCode, saveSession, sealCallKey, sealCallKeyForPeers, sealChatKey, sealKeyForSession, sealSecureMail, sealedBoxDecrypt, sealedBoxEncrypt, secureMailClaim, signMessage, unlockIdentityWithPassword, unwrapIdentityKey, unwrapWorkspaceKey, updateWrappedIdentityKey, validateRecoveryKeyFile, workspaceKeyRequiredOf, wrapIdentityKey };
|
|
2370
2424
|
//# sourceMappingURL=index.js.map
|
|
2371
2425
|
//# sourceMappingURL=index.js.map
|