tiny-crypto-suite
Version:
Tiny tools, big crypto — seamless encryption and certificate handling for modern web and Node apps.
65 lines • 2.6 kB
text/typescript
export default TinyOlmEvents;
/**
* List of event names used by TinyOlm in the EventEmitter.
* Each key maps to its string identifier.
*/
declare class TinyOlmEvents {
/** Emits when a value needs to be stored in the database */
static DbPut: string;
/** Emits when a value needs to be deleted in the database */
static DbDelete: string;
/** Emits when a entire table list needs to be deleted in the database */
static DbClear: string;
/** Sets the user's password */
static SetPassword: string;
/** Sets the unique user ID */
static SetUserId: string;
/** Sets the current device ID */
static SetDeviceId: string;
/** Imports a account (usually from backup or export) */
static ImportAccount: string;
/** Imports a user session */
static ImportSession: string;
/** Imports a Megolm group session */
static ImportGroupSession: string;
/** Imports an inbound Megolm group session (for receiving messages) */
static ImportInboundGroupSession: string;
/** Imports a session by ID of a group session */
static ImportGroupSessionId: string;
/** Removes a single user session */
static RemoveSession: string;
/** Removes a specific Megolm group session */
static RemoveGroupSession: string;
/** Removes a specific inbound Megolm group session */
static RemoveInboundGroupSession: string;
/** Clears all stored user sessions */
static ClearSessions: string;
/** Clears all inbound group sessions */
static ClearInboundGroupSessions: string;
/** Clears all outbound group sessions */
static ClearGroupSessions: string;
/** Creates a new cryptographic account (fresh keys; etc.) */
static CreateAccount: string;
/** Creates a new Megolm outbound group session */
static CreateGroupSession: string;
/** Creates an inbound Olm session for receiving messages */
static CreateInboundSession: string;
/** Creates an outbound Olm session for sending messages */
static CreateOutboundSession: string;
/** Signs all remaining one-time keys (after upload) */
static SignOneTimeKeys: string;
/** Marks keys as already published; preventing reuse */
static MarkKeysAsPublished: string;
/** Resets the current cryptographic account (destroys keys and sessions) */
static ResetAccount: string;
/**
* @returns {string[]}
*/
static get all(): string[];
/**
* @param {string} event
* @returns {boolean}
*/
static isValid(event: string): boolean;
}
//# sourceMappingURL=TinyOlmEvents.d.mts.map