@keyhive/keyhive 0.1.0-alpha.4 → 0.1.0-alpha.6
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/package.json +1 -1
- package/pkg/keyhive_wasm.d.ts +79 -40
- package/pkg/keyhive_wasm.js +1 -1
- package/pkg/keyhive_wasm_bg.js +214 -87
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +122 -108
- package/pkg-node/keyhive_wasm.d.ts +79 -40
- package/pkg-node/keyhive_wasm.js +217 -90
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +122 -108
- package/pkg-slim/keyhive_wasm.d.ts +201 -148
- package/pkg-slim/keyhive_wasm.js +214 -87
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +1 -1
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +122 -108
|
@@ -5,18 +5,56 @@ export class Access {
|
|
|
5
5
|
private constructor();
|
|
6
6
|
free(): void;
|
|
7
7
|
[Symbol.dispose](): void;
|
|
8
|
+
/**
|
|
9
|
+
* The ability to revoke any members of a group, not just those that they have causal senority over.
|
|
10
|
+
*/
|
|
11
|
+
static admin(): Access;
|
|
12
|
+
/**
|
|
13
|
+
* True if this level is at least as permissive as `other`.
|
|
14
|
+
*/
|
|
15
|
+
atLeast(other: Access): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Standard comparator result: -1 if less permissive than `other`,
|
|
18
|
+
* 0 if equal, 1 if more permissive.
|
|
19
|
+
*/
|
|
20
|
+
compareTo(other: Access): number;
|
|
21
|
+
/**
|
|
22
|
+
* The ability to edit (append ops to) the content of a document.
|
|
23
|
+
*/
|
|
24
|
+
static edit(): Access;
|
|
25
|
+
equals(other: Access): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Parse an access level, throwing on invalid input.
|
|
28
|
+
* Accepts "relay", "read", "edit", or "admin" (case-insensitive).
|
|
29
|
+
*/
|
|
30
|
+
static fromString(s: string): Access;
|
|
31
|
+
/**
|
|
32
|
+
* The ability to read (decrypt) the content of a document.
|
|
33
|
+
*/
|
|
34
|
+
static read(): Access;
|
|
35
|
+
/**
|
|
36
|
+
* The ability to retrieve bytes over the network.
|
|
37
|
+
*/
|
|
38
|
+
static relay(): Access;
|
|
8
39
|
toString(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Parse an access level, returning undefined on invalid input.
|
|
42
|
+
* Prefer `fromString`, which throws a descriptive error instead.
|
|
43
|
+
*/
|
|
9
44
|
static tryFromString(s: string): Access | undefined;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
45
|
+
/**
|
|
46
|
+
* True for Edit access or higher.
|
|
47
|
+
*/
|
|
48
|
+
readonly isEditor: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* True for Read access or higher.
|
|
51
|
+
*/
|
|
52
|
+
readonly isReader: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Numeric level for ordering: Relay = 0, Read = 1, Edit = 2, Admin = 3.
|
|
55
|
+
* Higher levels imply all lower levels.
|
|
56
|
+
*/
|
|
57
|
+
readonly level: number;
|
|
20
58
|
}
|
|
21
59
|
|
|
22
60
|
export class Agent {
|
|
@@ -127,16 +165,14 @@ export class ContactCard {
|
|
|
127
165
|
|
|
128
166
|
/**
|
|
129
167
|
* Plaintext plus the application secret key that decrypted it.
|
|
130
|
-
*
|
|
131
|
-
* The key lets the consumer recover the blob's external predecessor-secret
|
|
132
|
-
* chain and chain further encryptions onto it, without re-entering CGKA.
|
|
133
168
|
*/
|
|
134
|
-
export class
|
|
169
|
+
export class DecryptedKeyed {
|
|
135
170
|
private constructor();
|
|
136
171
|
free(): void;
|
|
137
172
|
[Symbol.dispose](): void;
|
|
138
173
|
/**
|
|
139
174
|
* The 32-byte application secret key used to decrypt this content.
|
|
175
|
+
* Treat as secret: do not log or persist unencrypted.
|
|
140
176
|
*/
|
|
141
177
|
readonly applicationSecret: Uint8Array;
|
|
142
178
|
readonly plaintext: Uint8Array;
|
|
@@ -192,8 +228,7 @@ export class Encrypted {
|
|
|
192
228
|
[Symbol.dispose](): void;
|
|
193
229
|
/**
|
|
194
230
|
* Decrypt this content with an explicit 32-byte application secret key,
|
|
195
|
-
* bypassing CGKA.
|
|
196
|
-
* predecessor-secret chain once it has recovered a blob's key.
|
|
231
|
+
* bypassing CGKA.
|
|
197
232
|
*/
|
|
198
233
|
decryptWithKey(key: Uint8Array): Uint8Array;
|
|
199
234
|
static fromBytes(bytes: Uint8Array): Encrypted;
|
|
@@ -212,11 +247,20 @@ export class EncryptedContentWithUpdate {
|
|
|
212
247
|
[Symbol.dispose](): void;
|
|
213
248
|
encrypted_content(): Encrypted;
|
|
214
249
|
update_op(): SignedCgkaOperation | undefined;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Encrypted content plus the application secret key it was encrypted under.
|
|
254
|
+
*/
|
|
255
|
+
export class EncryptedKeyed {
|
|
256
|
+
private constructor();
|
|
257
|
+
free(): void;
|
|
258
|
+
[Symbol.dispose](): void;
|
|
259
|
+
encrypted_content(): Encrypted;
|
|
260
|
+
update_op(): SignedCgkaOperation | undefined;
|
|
215
261
|
/**
|
|
216
262
|
* The 32-byte application secret key used to encrypt this content.
|
|
217
|
-
*
|
|
218
|
-
* Lets the consumer build the external predecessor-secret chain and chain
|
|
219
|
-
* further encryptions onto this blob.
|
|
263
|
+
* Treat as secret: do not log or persist unencrypted.
|
|
220
264
|
*/
|
|
221
265
|
readonly applicationSecret: Uint8Array;
|
|
222
266
|
}
|
|
@@ -313,12 +357,18 @@ export class Keyhive {
|
|
|
313
357
|
free(): void;
|
|
314
358
|
[Symbol.dispose](): void;
|
|
315
359
|
accessForDoc(id: Identifier, doc_id: DocumentId): Promise<Access | undefined>;
|
|
316
|
-
addMember(to_add: Agent, membered: Membered, access: Access, other_relevant_docs: Document[]): Promise<
|
|
360
|
+
addMember(to_add: Agent, membered: Membered, access: Access, other_relevant_docs: Document[]): Promise<SignedDelegation>;
|
|
317
361
|
/**
|
|
318
362
|
* Returns all agent events with deduplicated storage and two-tier indirection
|
|
319
363
|
* for membership, prekey, and CGKA ops.
|
|
320
364
|
*/
|
|
321
365
|
allAgentEvents(): Promise<AllAgentEvents>;
|
|
366
|
+
/**
|
|
367
|
+
* The most permissive of `id`'s direct access and the document's
|
|
368
|
+
* public access. Returns undefined if neither grants access (or the
|
|
369
|
+
* document is unknown).
|
|
370
|
+
*/
|
|
371
|
+
bestAccessForDoc(id: Identifier, doc_id: DocumentId): Promise<Access | undefined>;
|
|
322
372
|
contactCard(): Promise<ContactCard>;
|
|
323
373
|
docMemberCapabilities(doc_id: DocumentId): Promise<Membership[]>;
|
|
324
374
|
/**
|
|
@@ -334,14 +384,10 @@ export class Keyhive {
|
|
|
334
384
|
/**
|
|
335
385
|
* Force a PCS key rotation and return the new leaf secret, serialized as a
|
|
336
386
|
* one-entry `BTreeMap<ShareKey, ShareSecretKey>` (the exact format
|
|
337
|
-
* `importPrekeySecrets` accepts).
|
|
338
|
-
*
|
|
387
|
+
* `importPrekeySecrets` accepts).
|
|
388
|
+
* The returned bytes are secret key material: do not log or persist unencrypted.
|
|
339
389
|
*/
|
|
340
390
|
forcePcsUpdate(doc: Document): Promise<Uint8Array>;
|
|
341
|
-
/**
|
|
342
|
-
* Generate a document. Whether it provides forward secrecy is determined by
|
|
343
|
-
* this peer's forward-secrecy policy (chosen at `Keyhive.init`).
|
|
344
|
-
*/
|
|
345
391
|
generateDocument(coparents: Peer[], initial_content_ref_head: ChangeId, more_initial_content_refs: ChangeId[]): Promise<Document>;
|
|
346
392
|
generateGroup(js_coparents: Peer[]): Promise<Group>;
|
|
347
393
|
getAgent(id: Identifier): Promise<Agent | undefined>;
|
|
@@ -352,9 +398,6 @@ export class Keyhive {
|
|
|
352
398
|
importPrekeySecrets(bytes: Uint8Array): Promise<void>;
|
|
353
399
|
ingestArchive(archive: Archive): Promise<void>;
|
|
354
400
|
ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
|
|
355
|
-
/**
|
|
356
|
-
* Initialize a peer.
|
|
357
|
-
*/
|
|
358
401
|
static init(signer: Signer, ciphertext_store: CiphertextStore, event_handler: Function): Promise<Keyhive>;
|
|
359
402
|
intoArchive(): Promise<Archive>;
|
|
360
403
|
membershipOpsForAgent(agent: Agent): Promise<Map<any, any>>;
|
|
@@ -369,13 +412,15 @@ export class Keyhive {
|
|
|
369
412
|
tryDecrypt(doc: Document, encrypted: Encrypted): Promise<Uint8Array>;
|
|
370
413
|
/**
|
|
371
414
|
* Decrypt content and also return the 32-byte application secret key used.
|
|
372
|
-
*
|
|
373
|
-
* The consumer follows the external predecessor-secret chain from this key
|
|
374
|
-
* with `Encrypted.decryptWithKey`, avoiding further CGKA dives.
|
|
375
415
|
*/
|
|
376
|
-
|
|
416
|
+
tryDecryptKeyed(doc: Document, encrypted: Encrypted): Promise<DecryptedKeyed>;
|
|
377
417
|
tryEncrypt(doc: Document, content_ref: ChangeId, js_pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedContentWithUpdate>;
|
|
378
418
|
tryEncryptArchive(doc: Document, content_ref: ChangeId, pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedContentWithUpdate>;
|
|
419
|
+
/**
|
|
420
|
+
* Encrypt content and also return the application secret key it was
|
|
421
|
+
* encrypted under.
|
|
422
|
+
*/
|
|
423
|
+
tryEncryptKeyed(doc: Document, content_ref: ChangeId, js_pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedKeyed>;
|
|
379
424
|
tryPcsKeyHash(doc: Document): Promise<Uint8Array | undefined>;
|
|
380
425
|
trySign(data: Uint8Array): Promise<Signed>;
|
|
381
426
|
readonly id: IndividualId;
|
|
@@ -542,13 +587,7 @@ export function setPanicHook(): void;
|
|
|
542
587
|
export function symmetricDecrypt(key: Uint8Array, blob: Uint8Array): Uint8Array;
|
|
543
588
|
|
|
544
589
|
/**
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
* `associated_data` flavors the synthetic nonce (e.g. the document or content
|
|
548
|
-
* id) so identical plaintext under the same key in different contexts produces
|
|
549
|
-
* distinct ciphertext. Returns `nonce(24) || ciphertext` (the ciphertext
|
|
550
|
-
* includes the Poly1305 tag). The nonce is carried in the output, so
|
|
551
|
-
* [`symmetric_decrypt`] does not need the associated data.
|
|
590
|
+
* Encrypt `plaintext` under a 32-byte `key`, returning `nonce(24) || ciphertext`.
|
|
552
591
|
*/
|
|
553
592
|
export function symmetricEncrypt(key: Uint8Array, plaintext: Uint8Array, associated_data: Uint8Array): Uint8Array;
|
|
554
593
|
|
|
@@ -556,25 +595,14 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
556
595
|
|
|
557
596
|
export interface InitOutput {
|
|
558
597
|
readonly memory: WebAssembly.Memory;
|
|
559
|
-
readonly __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
560
|
-
readonly signedcgkaoperation_delegation: (a: number) => number;
|
|
561
|
-
readonly signedcgkaoperation_signature: (a: number) => [number, number];
|
|
562
|
-
readonly signedcgkaoperation_verify: (a: number) => number;
|
|
563
|
-
readonly signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
564
|
-
readonly __wbg_invocation_free: (a: number, b: number) => void;
|
|
565
|
-
readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
566
|
-
readonly symmetricDecrypt: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
567
|
-
readonly symmetricEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
568
598
|
readonly __wbg_agent_free: (a: number, b: number) => void;
|
|
569
|
-
readonly
|
|
570
|
-
readonly __wbg_ciphertextstore_free: (a: number, b: number) => void;
|
|
571
|
-
readonly __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
599
|
+
readonly __wbg_document_free: (a: number, b: number) => void;
|
|
572
600
|
readonly __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
|
|
601
|
+
readonly __wbg_encryptedkeyed_free: (a: number, b: number) => void;
|
|
602
|
+
readonly __wbg_group_free: (a: number, b: number) => void;
|
|
573
603
|
readonly __wbg_individual_free: (a: number, b: number) => void;
|
|
574
604
|
readonly __wbg_keyhive_free: (a: number, b: number) => void;
|
|
575
605
|
readonly __wbg_peer_free: (a: number, b: number) => void;
|
|
576
|
-
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
577
|
-
readonly __wbg_stats_free: (a: number, b: number) => void;
|
|
578
606
|
readonly agent_id: (a: number) => number;
|
|
579
607
|
readonly agent_isDocument: (a: number) => number;
|
|
580
608
|
readonly agent_isGroup: (a: number) => number;
|
|
@@ -582,29 +610,31 @@ export interface InitOutput {
|
|
|
582
610
|
readonly agent_keyOpHashes: (a: number) => any;
|
|
583
611
|
readonly agent_keyOps: (a: number) => any;
|
|
584
612
|
readonly agent_toString: (a: number) => [number, number];
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
591
|
-
readonly
|
|
592
|
-
readonly ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
593
|
-
readonly ciphertextstore_newInMemory: () => number;
|
|
594
|
-
readonly doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
595
|
-
readonly doccontentrefs_change_hashes: (a: number) => any;
|
|
596
|
-
readonly doccontentrefs_docId: (a: number) => number;
|
|
597
|
-
readonly doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
598
|
-
readonly encryptedcontentwithupdate_applicationSecret: (a: number) => [number, number];
|
|
613
|
+
readonly document___wasm_refgen_toJsDocument: (a: number) => number;
|
|
614
|
+
readonly document_doc_id: (a: number) => number;
|
|
615
|
+
readonly document_id: (a: number) => number;
|
|
616
|
+
readonly document_members: (a: number) => any;
|
|
617
|
+
readonly document_toAgent: (a: number) => number;
|
|
618
|
+
readonly document_toMembered: (a: number) => number;
|
|
619
|
+
readonly document_toPeer: (a: number) => number;
|
|
599
620
|
readonly encryptedcontentwithupdate_encrypted_content: (a: number) => number;
|
|
600
621
|
readonly encryptedcontentwithupdate_update_op: (a: number) => number;
|
|
601
|
-
readonly
|
|
622
|
+
readonly encryptedkeyed_applicationSecret: (a: number) => [number, number];
|
|
623
|
+
readonly encryptedkeyed_encrypted_content: (a: number) => number;
|
|
624
|
+
readonly encryptedkeyed_update_op: (a: number) => number;
|
|
625
|
+
readonly group___wasm_refgen_toJsGroup: (a: number) => number;
|
|
626
|
+
readonly group_members: (a: number) => any;
|
|
627
|
+
readonly group_toAgent: (a: number) => number;
|
|
628
|
+
readonly group_toMembered: (a: number) => number;
|
|
629
|
+
readonly group_toPeer: (a: number) => number;
|
|
630
|
+
readonly individual_individualId: (a: number) => number;
|
|
602
631
|
readonly individual_pickPrekey: (a: number, b: number) => any;
|
|
603
632
|
readonly individual_toAgent: (a: number) => number;
|
|
604
633
|
readonly individual_toPeer: (a: number) => number;
|
|
605
634
|
readonly keyhive_accessForDoc: (a: number, b: number, c: number) => any;
|
|
606
635
|
readonly keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
607
636
|
readonly keyhive_allAgentEvents: (a: number) => any;
|
|
637
|
+
readonly keyhive_bestAccessForDoc: (a: number, b: number, c: number) => any;
|
|
608
638
|
readonly keyhive_contactCard: (a: number) => any;
|
|
609
639
|
readonly keyhive_docMemberCapabilities: (a: number, b: number) => any;
|
|
610
640
|
readonly keyhive_eventHashesForAgent: (a: number, b: number) => any;
|
|
@@ -637,9 +667,10 @@ export interface InitOutput {
|
|
|
637
667
|
readonly keyhive_stats: (a: number) => any;
|
|
638
668
|
readonly keyhive_toArchive: (a: number) => any;
|
|
639
669
|
readonly keyhive_tryDecrypt: (a: number, b: number, c: number) => any;
|
|
640
|
-
readonly
|
|
670
|
+
readonly keyhive_tryDecryptKeyed: (a: number, b: number, c: number) => any;
|
|
641
671
|
readonly keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
642
672
|
readonly keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
673
|
+
readonly keyhive_tryEncryptKeyed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
643
674
|
readonly keyhive_tryPcsKeyHash: (a: number, b: number) => any;
|
|
644
675
|
readonly keyhive_trySign: (a: number, b: number, c: number) => any;
|
|
645
676
|
readonly keyhive_whoami: (a: number) => number;
|
|
@@ -648,11 +679,57 @@ export interface InitOutput {
|
|
|
648
679
|
readonly peer_isGroup: (a: number) => number;
|
|
649
680
|
readonly peer_isIndividual: (a: number) => number;
|
|
650
681
|
readonly peer_toString: (a: number) => [number, number];
|
|
651
|
-
readonly revocation_after: (a: number) => number;
|
|
652
|
-
readonly revocation_proof: (a: number) => number;
|
|
653
|
-
readonly revocation_revoked: (a: number) => number;
|
|
654
|
-
readonly revocation_subject_id: (a: number) => number;
|
|
655
682
|
readonly setPanicHook: () => void;
|
|
683
|
+
readonly group_groupId: (a: number) => number;
|
|
684
|
+
readonly group_id: (a: number) => number;
|
|
685
|
+
readonly individual_id: (a: number) => number;
|
|
686
|
+
readonly peer_id: (a: number) => number;
|
|
687
|
+
readonly __wbg_signed_free: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
689
|
+
readonly signed_fromBytes: (a: number, b: number) => [number, number, number];
|
|
690
|
+
readonly signed_payload: (a: number) => [number, number];
|
|
691
|
+
readonly signed_signature: (a: number) => [number, number];
|
|
692
|
+
readonly signed_toBytes: (a: number) => [number, number, number, number];
|
|
693
|
+
readonly signed_verify: (a: number) => number;
|
|
694
|
+
readonly signed_verifyingKey: (a: number) => [number, number];
|
|
695
|
+
readonly signedcgkaoperation_delegation: (a: number) => number;
|
|
696
|
+
readonly signedcgkaoperation_signature: (a: number) => [number, number];
|
|
697
|
+
readonly signedcgkaoperation_verify: (a: number) => number;
|
|
698
|
+
readonly signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
699
|
+
readonly __wbg_archive_free: (a: number, b: number) => void;
|
|
700
|
+
readonly __wbg_capability_free: (a: number, b: number) => void;
|
|
701
|
+
readonly __wbg_delegation_free: (a: number, b: number) => void;
|
|
702
|
+
readonly __wbg_history_free: (a: number, b: number) => void;
|
|
703
|
+
readonly __wbg_membered_free: (a: number, b: number) => void;
|
|
704
|
+
readonly __wbg_membership_free: (a: number, b: number) => void;
|
|
705
|
+
readonly __wbg_signeddelegation_free: (a: number, b: number) => void;
|
|
706
|
+
readonly __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
707
|
+
readonly __wbg_stats_free: (a: number, b: number) => void;
|
|
708
|
+
readonly __wbg_summary_free: (a: number, b: number) => void;
|
|
709
|
+
readonly archive_toBytes: (a: number) => [number, number, number, number];
|
|
710
|
+
readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
711
|
+
readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
712
|
+
readonly capability_can: (a: number) => number;
|
|
713
|
+
readonly capability_proof: (a: number) => number;
|
|
714
|
+
readonly capability_who: (a: number) => number;
|
|
715
|
+
readonly delegation_after: (a: number) => number;
|
|
716
|
+
readonly delegation_can: (a: number) => number;
|
|
717
|
+
readonly delegation_delegate: (a: number) => number;
|
|
718
|
+
readonly delegation_proof: (a: number) => number;
|
|
719
|
+
readonly history_contentRefs: (a: number) => [number, number];
|
|
720
|
+
readonly history_delegations: (a: number) => [number, number];
|
|
721
|
+
readonly history_revocations: (a: number) => [number, number];
|
|
722
|
+
readonly membership_can: (a: number) => number;
|
|
723
|
+
readonly membership_who: (a: number) => number;
|
|
724
|
+
readonly signeddelegation_delegation: (a: number) => number;
|
|
725
|
+
readonly signeddelegation_signature: (a: number) => [number, number];
|
|
726
|
+
readonly signeddelegation_subjectId: (a: number) => number;
|
|
727
|
+
readonly signeddelegation_verify: (a: number) => number;
|
|
728
|
+
readonly signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
729
|
+
readonly signedrevocation_delegation: (a: number) => number;
|
|
730
|
+
readonly signedrevocation_signature: (a: number) => [number, number];
|
|
731
|
+
readonly signedrevocation_verify: (a: number) => number;
|
|
732
|
+
readonly signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
656
733
|
readonly stats_activePrekeyCount: (a: number) => bigint;
|
|
657
734
|
readonly stats_cgkaOperations: (a: number) => bigint;
|
|
658
735
|
readonly stats_delegations: (a: number) => bigint;
|
|
@@ -674,8 +751,8 @@ export interface InitOutput {
|
|
|
674
751
|
readonly stats_revocations: (a: number) => bigint;
|
|
675
752
|
readonly stats_totalOps: (a: number) => bigint;
|
|
676
753
|
readonly stats_totalPendingOps: (a: number) => bigint;
|
|
677
|
-
readonly
|
|
678
|
-
readonly
|
|
754
|
+
readonly summary_access: (a: number) => number;
|
|
755
|
+
readonly summary_doc: (a: number) => number;
|
|
679
756
|
readonly __wbg_access_free: (a: number, b: number) => void;
|
|
680
757
|
readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
681
758
|
readonly __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
@@ -685,8 +762,19 @@ export interface InitOutput {
|
|
|
685
762
|
readonly __wbg_event_free: (a: number, b: number) => void;
|
|
686
763
|
readonly __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
|
|
687
764
|
readonly __wbg_groupid_free: (a: number, b: number) => void;
|
|
688
|
-
readonly
|
|
765
|
+
readonly __wbg_sharekey_free: (a: number, b: number) => void;
|
|
689
766
|
readonly __wbg_signer_free: (a: number, b: number) => void;
|
|
767
|
+
readonly access_admin: () => number;
|
|
768
|
+
readonly access_atLeast: (a: number, b: number) => number;
|
|
769
|
+
readonly access_compareTo: (a: number, b: number) => number;
|
|
770
|
+
readonly access_edit: () => number;
|
|
771
|
+
readonly access_equals: (a: number, b: number) => number;
|
|
772
|
+
readonly access_fromString: (a: number, b: number) => [number, number, number];
|
|
773
|
+
readonly access_isEditor: (a: number) => number;
|
|
774
|
+
readonly access_isReader: (a: number) => number;
|
|
775
|
+
readonly access_level: (a: number) => number;
|
|
776
|
+
readonly access_read: () => number;
|
|
777
|
+
readonly access_relay: () => number;
|
|
690
778
|
readonly access_toString: (a: number) => [number, number];
|
|
691
779
|
readonly access_tryFromString: (a: number, b: number) => number;
|
|
692
780
|
readonly cgkaoperation_variant: (a: number) => [number, number];
|
|
@@ -717,7 +805,6 @@ export interface InitOutput {
|
|
|
717
805
|
readonly event_variant: (a: number) => [number, number];
|
|
718
806
|
readonly generatewebcryptoerror_message: (a: number) => [number, number];
|
|
719
807
|
readonly groupid_toString: (a: number) => [number, number];
|
|
720
|
-
readonly individualid_bytes: (a: number) => [number, number];
|
|
721
808
|
readonly signer_clone: (a: number) => number;
|
|
722
809
|
readonly signer_generate: () => any;
|
|
723
810
|
readonly signer_generateMemory: () => number;
|
|
@@ -727,82 +814,48 @@ export interface InitOutput {
|
|
|
727
814
|
readonly signer_variant: (a: number) => [number, number];
|
|
728
815
|
readonly signer_verifyingKey: (a: number) => [number, number];
|
|
729
816
|
readonly signer_webCryptoSigner: (a: any) => any;
|
|
817
|
+
readonly symmetricDecrypt: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
818
|
+
readonly symmetricEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
730
819
|
readonly encrypted_toBytes: (a: number) => [number, number];
|
|
731
|
-
readonly
|
|
820
|
+
readonly __wbg_invocation_free: (a: number, b: number) => void;
|
|
821
|
+
readonly __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
732
822
|
readonly __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
733
|
-
readonly __wbg_capability_free: (a: number, b: number) => void;
|
|
734
|
-
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
735
823
|
readonly __wbg_identifier_free: (a: number, b: number) => void;
|
|
736
|
-
readonly __wbg_membered_free: (a: number, b: number) => void;
|
|
737
|
-
readonly __wbg_membership_free: (a: number, b: number) => void;
|
|
738
|
-
readonly __wbg_sharekey_free: (a: number, b: number) => void;
|
|
739
|
-
readonly __wbg_signed_free: (a: number, b: number) => void;
|
|
740
|
-
readonly __wbg_signeddelegation_free: (a: number, b: number) => void;
|
|
741
|
-
readonly __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
742
|
-
readonly archive_toBytes: (a: number) => [number, number, number, number];
|
|
743
|
-
readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
744
|
-
readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
745
|
-
readonly capability_can: (a: number) => number;
|
|
746
|
-
readonly capability_proof: (a: number) => number;
|
|
747
|
-
readonly capability_who: (a: number) => number;
|
|
748
|
-
readonly changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
749
|
-
readonly changeid_bytes: (a: number) => [number, number];
|
|
750
|
-
readonly changeid_new: (a: number, b: number) => number;
|
|
751
824
|
readonly identifier_new: (a: number, b: number) => [number, number, number];
|
|
752
825
|
readonly identifier_publicId: () => number;
|
|
753
826
|
readonly identifier_toBytes: (a: number) => [number, number];
|
|
754
|
-
readonly
|
|
755
|
-
readonly
|
|
756
|
-
readonly
|
|
757
|
-
readonly
|
|
758
|
-
readonly
|
|
759
|
-
readonly
|
|
760
|
-
readonly
|
|
761
|
-
readonly
|
|
762
|
-
readonly
|
|
763
|
-
readonly
|
|
764
|
-
readonly
|
|
765
|
-
readonly
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
readonly
|
|
770
|
-
readonly
|
|
771
|
-
readonly
|
|
772
|
-
readonly
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
775
|
-
readonly
|
|
776
|
-
readonly
|
|
777
|
-
readonly
|
|
778
|
-
readonly
|
|
779
|
-
readonly
|
|
780
|
-
readonly
|
|
781
|
-
readonly
|
|
782
|
-
readonly
|
|
783
|
-
readonly
|
|
784
|
-
readonly
|
|
785
|
-
readonly
|
|
786
|
-
readonly document_doc_id: (a: number) => number;
|
|
787
|
-
readonly document_id: (a: number) => number;
|
|
788
|
-
readonly document_members: (a: number) => any;
|
|
789
|
-
readonly document_toAgent: (a: number) => number;
|
|
790
|
-
readonly document_toMembered: (a: number) => number;
|
|
791
|
-
readonly document_toPeer: (a: number) => number;
|
|
792
|
-
readonly group___wasm_refgen_toJsGroup: (a: number) => number;
|
|
793
|
-
readonly group_members: (a: number) => any;
|
|
794
|
-
readonly group_toAgent: (a: number) => number;
|
|
795
|
-
readonly group_toMembered: (a: number) => number;
|
|
796
|
-
readonly group_toPeer: (a: number) => number;
|
|
797
|
-
readonly history_contentRefs: (a: number) => [number, number];
|
|
798
|
-
readonly history_delegations: (a: number) => [number, number];
|
|
799
|
-
readonly history_revocations: (a: number) => [number, number];
|
|
800
|
-
readonly summary_access: (a: number) => number;
|
|
801
|
-
readonly summary_doc: (a: number) => number;
|
|
802
|
-
readonly group_groupId: (a: number) => number;
|
|
803
|
-
readonly group_id: (a: number) => number;
|
|
804
|
-
readonly wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a: (a: number, b: number, c: any) => [number, number];
|
|
805
|
-
readonly wasm_bindgen__convert__closures_____invoke__h58982df154245cbc: (a: number, b: number, c: any, d: any) => void;
|
|
827
|
+
readonly __wbg_allagentevents_free: (a: number, b: number) => void;
|
|
828
|
+
readonly __wbg_changeid_free: (a: number, b: number) => void;
|
|
829
|
+
readonly __wbg_ciphertextstore_free: (a: number, b: number) => void;
|
|
830
|
+
readonly __wbg_decryptedkeyed_free: (a: number, b: number) => void;
|
|
831
|
+
readonly __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
832
|
+
readonly __wbg_individualid_free: (a: number, b: number) => void;
|
|
833
|
+
readonly __wbg_revocation_free: (a: number, b: number) => void;
|
|
834
|
+
readonly allagentevents_agentCgkaSources: (a: number) => any;
|
|
835
|
+
readonly allagentevents_agentMembershipSources: (a: number) => any;
|
|
836
|
+
readonly allagentevents_agentPrekeySources: (a: number) => any;
|
|
837
|
+
readonly allagentevents_cgkaSources: (a: number) => any;
|
|
838
|
+
readonly allagentevents_events: (a: number) => any;
|
|
839
|
+
readonly allagentevents_membershipSources: (a: number) => any;
|
|
840
|
+
readonly allagentevents_prekeySources: (a: number) => any;
|
|
841
|
+
readonly changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
842
|
+
readonly changeid_bytes: (a: number) => [number, number];
|
|
843
|
+
readonly changeid_new: (a: number, b: number) => number;
|
|
844
|
+
readonly ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
845
|
+
readonly ciphertextstore_newInMemory: () => number;
|
|
846
|
+
readonly decryptedkeyed_applicationSecret: (a: number) => [number, number];
|
|
847
|
+
readonly decryptedkeyed_plaintext: (a: number) => [number, number];
|
|
848
|
+
readonly doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
849
|
+
readonly doccontentrefs_change_hashes: (a: number) => any;
|
|
850
|
+
readonly doccontentrefs_docId: (a: number) => number;
|
|
851
|
+
readonly doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
852
|
+
readonly individualid_bytes: (a: number) => [number, number];
|
|
853
|
+
readonly revocation_after: (a: number) => number;
|
|
854
|
+
readonly revocation_proof: (a: number) => number;
|
|
855
|
+
readonly revocation_revoked: (a: number) => number;
|
|
856
|
+
readonly revocation_subject_id: (a: number) => number;
|
|
857
|
+
readonly wasm_bindgen__convert__closures_____invoke__h264249ebd10d2c4e: (a: number, b: number, c: any) => [number, number];
|
|
858
|
+
readonly wasm_bindgen__convert__closures_____invoke__h3240482818b7fa6b: (a: number, b: number, c: any, d: any) => void;
|
|
806
859
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
807
860
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
808
861
|
readonly __wbindgen_exn_store: (a: number) => void;
|