@ixo/matrix-sdk-crypto-nodejs
Advanced tools
+29
-0
@@ -224,2 +224,11 @@ /* tslint:disable */ | ||
| } | ||
| /** Result of importing room keys. */ | ||
| export declare class RoomKeyImportResult { | ||
| /** The number of room keys that were imported. */ | ||
| importedCount: number | ||
| /** The total number of room keys that were found in the export. */ | ||
| totalCount: number | ||
| /** Keys that were imported, as a JSON object mapping room_id -> sender_key -> [session_ids] */ | ||
| keys: string | ||
| } | ||
| /** | ||
@@ -617,2 +626,22 @@ * Settings for an encrypted room. | ||
| /** | ||
| * Import room keys from a JSON-encoded list of exported keys. | ||
| * | ||
| * This is used to restore keys from a backup or to import keys | ||
| * that were exported from another device. | ||
| * | ||
| * # Arguments | ||
| * | ||
| * * `exported_room_keys` - A JSON-encoded array of exported room keys. | ||
| * Each key should have the format produced by `export_room_keys`. | ||
| * * `from_backup_version` - Optional backup version string if the keys | ||
| * are being imported from a backup. Pass null/undefined if importing | ||
| * from a file export. | ||
| * | ||
| * # Returns | ||
| * | ||
| * A `RoomKeyImportResult` containing the number of imported keys and | ||
| * details about which sessions were imported. | ||
| */ | ||
| importRoomKeys(exportedRoomKeys: string, fromBackupVersion?: string | undefined | null): Promise<RoomKeyImportResult> | ||
| /** | ||
| * Shut down the `OlmMachine`. | ||
@@ -619,0 +648,0 @@ * |
+2
-1
@@ -313,3 +313,3 @@ /* tslint:disable */ | ||
| const { Attachment, EncryptedAttachment, BackupDecryptionKey, MegolmV1BackupKey, RoomKeyCounts, BackupKeys, EncryptionAlgorithm, EncryptionSettings, ShieldColor, ShieldStateCode, ShieldState, HistoryVisibility, UserId, DeviceId, DeviceKeyId, DeviceKeyAlgorithm, DeviceKeyAlgorithmName, RoomId, ServerName, StoreType, OlmMachine, CrossSigningStatus, KeysUploadRequest, KeysQueryRequest, KeysClaimRequest, ToDeviceRequest, SignatureUploadRequest, RoomMessageRequest, KeysBackupRequest, RequestType, DecryptedRoomEvent, DeviceLists, Signatures, Signature, MaybeSignature, SignatureVerification, SignatureState, Ed25519PublicKey, Ed25519Signature, Curve25519PublicKey, IdentityKeys, Versions, getVersions } = nativeBinding | ||
| const { Attachment, EncryptedAttachment, BackupDecryptionKey, MegolmV1BackupKey, RoomKeyCounts, BackupKeys, RoomKeyImportResult, EncryptionAlgorithm, EncryptionSettings, ShieldColor, ShieldStateCode, ShieldState, HistoryVisibility, UserId, DeviceId, DeviceKeyId, DeviceKeyAlgorithm, DeviceKeyAlgorithmName, RoomId, ServerName, StoreType, OlmMachine, CrossSigningStatus, KeysUploadRequest, KeysQueryRequest, KeysClaimRequest, ToDeviceRequest, SignatureUploadRequest, RoomMessageRequest, KeysBackupRequest, RequestType, DecryptedRoomEvent, DeviceLists, Signatures, Signature, MaybeSignature, SignatureVerification, SignatureState, Ed25519PublicKey, Ed25519Signature, Curve25519PublicKey, IdentityKeys, Versions, getVersions } = nativeBinding | ||
@@ -322,2 +322,3 @@ module.exports.Attachment = Attachment | ||
| module.exports.BackupKeys = BackupKeys | ||
| module.exports.RoomKeyImportResult = RoomKeyImportResult | ||
| module.exports.EncryptionAlgorithm = EncryptionAlgorithm | ||
@@ -324,0 +325,0 @@ module.exports.EncryptionSettings = EncryptionSettings |
+1
-1
| { | ||
| "name": "@ixo/matrix-sdk-crypto-nodejs", | ||
| "version": "0.4.1", | ||
| "version": "0.4.2", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
74158
1.71%1485
2.06%