add declarations for Inbound/OutboundGroupSession
This commit is contained in:
parent
954d6f98eb
commit
f409b69e88
1 changed files with 25 additions and 0 deletions
25
javascript/index.d.ts
vendored
25
javascript/index.d.ts
vendored
|
@ -59,6 +59,31 @@ declare class Utility {
|
||||||
ed25519verify(key: string, message: string, signature: string): void;
|
ed25519verify(key: string, message: string, signature: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class InboundGroupSession {
|
||||||
|
constructor();
|
||||||
|
free(): void;
|
||||||
|
pickle(key: string): string;
|
||||||
|
unpickle(key: string, pickle: string): string;
|
||||||
|
create(session_key: string): string;
|
||||||
|
import_session(session_key: string): string;
|
||||||
|
decrypt(message: string): object;
|
||||||
|
session_id(): string;
|
||||||
|
first_known_index(): number;
|
||||||
|
export_session(message_index: number): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class OutboundGroupSession {
|
||||||
|
constructor();
|
||||||
|
free(): void;
|
||||||
|
pickle(key: string): string;
|
||||||
|
unpickle(key: string): string;
|
||||||
|
create(): void;
|
||||||
|
encrypt(plaintext: string): string;
|
||||||
|
session_id(): string;
|
||||||
|
session_key(): string;
|
||||||
|
message_index(): number;
|
||||||
|
}
|
||||||
|
|
||||||
declare class PkEncryption {
|
declare class PkEncryption {
|
||||||
constructor();
|
constructor();
|
||||||
free(): void;
|
free(): void;
|
||||||
|
|
Loading…
Reference in a new issue