Changeset View
Changeset View
Standalone View
Standalone View
keyserver/flow-typed/npm/@matrix-org/olm_vx.x.x.js
Show All 24 Lines | declare export class Account { | ||||
create(): void; | create(): void; | ||||
identity_keys(): string; | identity_keys(): string; | ||||
sign(message: string | Uint8Array): string; | sign(message: string | Uint8Array): string; | ||||
one_time_keys(): string; | one_time_keys(): string; | ||||
mark_keys_as_published(): void; | mark_keys_as_published(): void; | ||||
max_number_of_one_time_keys(): number; | max_number_of_one_time_keys(): number; | ||||
generate_one_time_keys(number_of_keys: number): void; | generate_one_time_keys(number_of_keys: number): void; | ||||
remove_one_time_keys(session: Session): void; | remove_one_time_keys(session: Session): void; | ||||
generate_prekey(): void; | |||||
prekey(): string; | |||||
forget_old_prekey(): void; | |||||
ashoat: Changes we might need here if we take the "caller owns rotation" approach:
1. Change to the… | |||||
generate_fallback_key(): void; | generate_fallback_key(): void; | ||||
fallback_key(): string; | fallback_key(): string; | ||||
unpublished_fallback_key(): string; | unpublished_fallback_key(): string; | ||||
forget_old_fallback_key(): void; | forget_old_fallback_key(): void; | ||||
pickle(key: string | Uint8Array): string; | pickle(key: string | Uint8Array): string; | ||||
unpickle(key: string | Uint8Array, pickle: string): void; | unpickle(key: string | Uint8Array, pickle: string): void; | ||||
} | } | ||||
declare export type EncryptResult = { | declare export type EncryptResult = { | ||||
+type: 0 | 1, // 0: PreKey, 1: Message | +type: 0 | 1, // 0: PreKey, 1: Message | ||||
+body: string, | +body: string, | ||||
}; | }; | ||||
declare export class Session { | declare export class Session { | ||||
constructor(): void; | constructor(): void; | ||||
free(): void; | free(): void; | ||||
pickle(key: string | Uint8Array): string; | pickle(key: string | Uint8Array): string; | ||||
unpickle(key: string | Uint8Array, pickle: string): void; | unpickle(key: string | Uint8Array, pickle: string): void; | ||||
create_outbound( | create_outbound( | ||||
account: Account, | account: Account, | ||||
their_identity_key: string, | their_identity_key: string, | ||||
their_pre_key: string, | |||||
their_one_time_key: string, | their_one_time_key: string, | ||||
): void; | ): void; | ||||
create_inbound(account: Account, one_time_key_message: string): void; | create_inbound(account: Account, one_time_key_message: string): void; | ||||
create_inbound_from( | create_inbound_from( | ||||
account: Account, | account: Account, | ||||
identity_key: string, | identity_key: string, | ||||
one_time_key_message: string, | one_time_key_message: string, | ||||
): void; | ): void; | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |
Changes we might need here if we take the "caller owns rotation" approach: