@keyhive/keyhive 0.1.0-alpha.5 → 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 +56 -0
- package/pkg/keyhive_wasm_bg.js +127 -7
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +157 -145
- package/pkg-node/keyhive_wasm.d.ts +56 -0
- package/pkg-node/keyhive_wasm.js +127 -7
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +157 -145
- package/pkg-slim/keyhive_wasm.d.ts +213 -145
- package/pkg-slim/keyhive_wasm.js +127 -7
- 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 +157 -145
|
@@ -5,8 +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;
|
|
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;
|
|
10
58
|
}
|
|
11
59
|
|
|
12
60
|
export class Agent {
|
|
@@ -212,6 +260,7 @@ export class EncryptedKeyed {
|
|
|
212
260
|
update_op(): SignedCgkaOperation | undefined;
|
|
213
261
|
/**
|
|
214
262
|
* The 32-byte application secret key used to encrypt this content.
|
|
263
|
+
* Treat as secret: do not log or persist unencrypted.
|
|
215
264
|
*/
|
|
216
265
|
readonly applicationSecret: Uint8Array;
|
|
217
266
|
}
|
|
@@ -314,6 +363,12 @@ export class Keyhive {
|
|
|
314
363
|
* for membership, prekey, and CGKA ops.
|
|
315
364
|
*/
|
|
316
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>;
|
|
317
372
|
contactCard(): Promise<ContactCard>;
|
|
318
373
|
docMemberCapabilities(doc_id: DocumentId): Promise<Membership[]>;
|
|
319
374
|
/**
|
|
@@ -330,6 +385,7 @@ export class Keyhive {
|
|
|
330
385
|
* Force a PCS key rotation and return the new leaf secret, serialized as a
|
|
331
386
|
* one-entry `BTreeMap<ShareKey, ShareSecretKey>` (the exact format
|
|
332
387
|
* `importPrekeySecrets` accepts).
|
|
388
|
+
* The returned bytes are secret key material: do not log or persist unencrypted.
|
|
333
389
|
*/
|
|
334
390
|
forcePcsUpdate(doc: Document): Promise<Uint8Array>;
|
|
335
391
|
generateDocument(coparents: Peer[], initial_content_ref_head: ChangeId, more_initial_content_refs: ChangeId[]): Promise<Document>;
|
package/pkg-node/keyhive_wasm.js
CHANGED
|
@@ -17,6 +17,108 @@ class Access {
|
|
|
17
17
|
const ptr = this.__destroy_into_raw();
|
|
18
18
|
wasm.__wbg_access_free(ptr, 0);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The ability to revoke any members of a group, not just those that they have causal senority over.
|
|
22
|
+
* @returns {Access}
|
|
23
|
+
*/
|
|
24
|
+
static admin() {
|
|
25
|
+
const ret = wasm.access_admin();
|
|
26
|
+
return Access.__wrap(ret);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* True if this level is at least as permissive as `other`.
|
|
30
|
+
* @param {Access} other
|
|
31
|
+
* @returns {boolean}
|
|
32
|
+
*/
|
|
33
|
+
atLeast(other) {
|
|
34
|
+
_assertClass(other, Access);
|
|
35
|
+
const ret = wasm.access_atLeast(this.__wbg_ptr, other.__wbg_ptr);
|
|
36
|
+
return ret !== 0;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Standard comparator result: -1 if less permissive than `other`,
|
|
40
|
+
* 0 if equal, 1 if more permissive.
|
|
41
|
+
* @param {Access} other
|
|
42
|
+
* @returns {number}
|
|
43
|
+
*/
|
|
44
|
+
compareTo(other) {
|
|
45
|
+
_assertClass(other, Access);
|
|
46
|
+
const ret = wasm.access_compareTo(this.__wbg_ptr, other.__wbg_ptr);
|
|
47
|
+
return ret;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The ability to edit (append ops to) the content of a document.
|
|
51
|
+
* @returns {Access}
|
|
52
|
+
*/
|
|
53
|
+
static edit() {
|
|
54
|
+
const ret = wasm.access_edit();
|
|
55
|
+
return Access.__wrap(ret);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @param {Access} other
|
|
59
|
+
* @returns {boolean}
|
|
60
|
+
*/
|
|
61
|
+
equals(other) {
|
|
62
|
+
_assertClass(other, Access);
|
|
63
|
+
const ret = wasm.access_equals(this.__wbg_ptr, other.__wbg_ptr);
|
|
64
|
+
return ret !== 0;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Parse an access level, throwing on invalid input.
|
|
68
|
+
* Accepts "relay", "read", "edit", or "admin" (case-insensitive).
|
|
69
|
+
* @param {string} s
|
|
70
|
+
* @returns {Access}
|
|
71
|
+
*/
|
|
72
|
+
static fromString(s) {
|
|
73
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
74
|
+
const len0 = WASM_VECTOR_LEN;
|
|
75
|
+
const ret = wasm.access_fromString(ptr0, len0);
|
|
76
|
+
if (ret[2]) {
|
|
77
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
78
|
+
}
|
|
79
|
+
return Access.__wrap(ret[0]);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* True for Edit access or higher.
|
|
83
|
+
* @returns {boolean}
|
|
84
|
+
*/
|
|
85
|
+
get isEditor() {
|
|
86
|
+
const ret = wasm.access_isEditor(this.__wbg_ptr);
|
|
87
|
+
return ret !== 0;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* True for Read access or higher.
|
|
91
|
+
* @returns {boolean}
|
|
92
|
+
*/
|
|
93
|
+
get isReader() {
|
|
94
|
+
const ret = wasm.access_isReader(this.__wbg_ptr);
|
|
95
|
+
return ret !== 0;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Numeric level for ordering: Relay = 0, Read = 1, Edit = 2, Admin = 3.
|
|
99
|
+
* Higher levels imply all lower levels.
|
|
100
|
+
* @returns {number}
|
|
101
|
+
*/
|
|
102
|
+
get level() {
|
|
103
|
+
const ret = wasm.access_level(this.__wbg_ptr);
|
|
104
|
+
return ret;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The ability to read (decrypt) the content of a document.
|
|
108
|
+
* @returns {Access}
|
|
109
|
+
*/
|
|
110
|
+
static read() {
|
|
111
|
+
const ret = wasm.access_read();
|
|
112
|
+
return Access.__wrap(ret);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The ability to retrieve bytes over the network.
|
|
116
|
+
* @returns {Access}
|
|
117
|
+
*/
|
|
118
|
+
static relay() {
|
|
119
|
+
const ret = wasm.access_relay();
|
|
120
|
+
return Access.__wrap(ret);
|
|
121
|
+
}
|
|
20
122
|
/**
|
|
21
123
|
* @returns {string}
|
|
22
124
|
*/
|
|
@@ -33,6 +135,8 @@ class Access {
|
|
|
33
135
|
}
|
|
34
136
|
}
|
|
35
137
|
/**
|
|
138
|
+
* Parse an access level, returning undefined on invalid input.
|
|
139
|
+
* Prefer `fromString`, which throws a descriptive error instead.
|
|
36
140
|
* @param {string} s
|
|
37
141
|
* @returns {Access | undefined}
|
|
38
142
|
*/
|
|
@@ -1031,6 +1135,7 @@ class EncryptedKeyed {
|
|
|
1031
1135
|
}
|
|
1032
1136
|
/**
|
|
1033
1137
|
* The 32-byte application secret key used to encrypt this content.
|
|
1138
|
+
* Treat as secret: do not log or persist unencrypted.
|
|
1034
1139
|
* @returns {Uint8Array}
|
|
1035
1140
|
*/
|
|
1036
1141
|
get applicationSecret() {
|
|
@@ -1534,6 +1639,20 @@ class Keyhive {
|
|
|
1534
1639
|
const ret = wasm.keyhive_allAgentEvents(this.__wbg_ptr);
|
|
1535
1640
|
return ret;
|
|
1536
1641
|
}
|
|
1642
|
+
/**
|
|
1643
|
+
* The most permissive of `id`'s direct access and the document's
|
|
1644
|
+
* public access. Returns undefined if neither grants access (or the
|
|
1645
|
+
* document is unknown).
|
|
1646
|
+
* @param {Identifier} id
|
|
1647
|
+
* @param {DocumentId} doc_id
|
|
1648
|
+
* @returns {Promise<Access | undefined>}
|
|
1649
|
+
*/
|
|
1650
|
+
bestAccessForDoc(id, doc_id) {
|
|
1651
|
+
_assertClass(id, Identifier);
|
|
1652
|
+
_assertClass(doc_id, DocumentId);
|
|
1653
|
+
const ret = wasm.keyhive_bestAccessForDoc(this.__wbg_ptr, id.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1654
|
+
return ret;
|
|
1655
|
+
}
|
|
1537
1656
|
/**
|
|
1538
1657
|
* @returns {Promise<ContactCard>}
|
|
1539
1658
|
*/
|
|
@@ -1588,6 +1707,7 @@ class Keyhive {
|
|
|
1588
1707
|
* Force a PCS key rotation and return the new leaf secret, serialized as a
|
|
1589
1708
|
* one-entry `BTreeMap<ShareKey, ShareSecretKey>` (the exact format
|
|
1590
1709
|
* `importPrekeySecrets` accepts).
|
|
1710
|
+
* The returned bytes are secret key material: do not log or persist unencrypted.
|
|
1591
1711
|
* @param {Document} doc
|
|
1592
1712
|
* @returns {Promise<Uint8Array>}
|
|
1593
1713
|
*/
|
|
@@ -3074,7 +3194,7 @@ function __wbg_get_imports() {
|
|
|
3074
3194
|
const a = state0.a;
|
|
3075
3195
|
state0.a = 0;
|
|
3076
3196
|
try {
|
|
3077
|
-
return
|
|
3197
|
+
return wasm_bindgen__convert__closures_____invoke__h3240482818b7fa6b(a, state0.b, arg0, arg1);
|
|
3078
3198
|
} finally {
|
|
3079
3199
|
state0.a = a;
|
|
3080
3200
|
}
|
|
@@ -3227,8 +3347,8 @@ function __wbg_get_imports() {
|
|
|
3227
3347
|
}
|
|
3228
3348
|
},
|
|
3229
3349
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3230
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3231
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3350
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 719, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3351
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h264249ebd10d2c4e);
|
|
3232
3352
|
return ret;
|
|
3233
3353
|
},
|
|
3234
3354
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -3313,15 +3433,15 @@ function __wbg_get_imports() {
|
|
|
3313
3433
|
};
|
|
3314
3434
|
}
|
|
3315
3435
|
|
|
3316
|
-
function
|
|
3317
|
-
const ret = wasm.
|
|
3436
|
+
function wasm_bindgen__convert__closures_____invoke__h264249ebd10d2c4e(arg0, arg1, arg2) {
|
|
3437
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h264249ebd10d2c4e(arg0, arg1, arg2);
|
|
3318
3438
|
if (ret[1]) {
|
|
3319
3439
|
throw takeFromExternrefTable0(ret[0]);
|
|
3320
3440
|
}
|
|
3321
3441
|
}
|
|
3322
3442
|
|
|
3323
|
-
function
|
|
3324
|
-
wasm.
|
|
3443
|
+
function wasm_bindgen__convert__closures_____invoke__h3240482818b7fa6b(arg0, arg1, arg2, arg3) {
|
|
3444
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3240482818b7fa6b(arg0, arg1, arg2, arg3);
|
|
3325
3445
|
}
|
|
3326
3446
|
|
|
3327
3447
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -1,144 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
6
|
-
export const setPanicHook: () => void;
|
|
7
|
-
export const __wbg_signed_free: (a: number, b: number) => void;
|
|
8
|
-
export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
9
|
-
export const signed_fromBytes: (a: number, b: number) => [number, number, number];
|
|
10
|
-
export const signed_payload: (a: number) => [number, number];
|
|
11
|
-
export const signed_signature: (a: number) => [number, number];
|
|
12
|
-
export const signed_toBytes: (a: number) => [number, number, number, number];
|
|
13
|
-
export const signed_verify: (a: number) => number;
|
|
14
|
-
export const signed_verifyingKey: (a: number) => [number, number];
|
|
15
|
-
export const signedcgkaoperation_delegation: (a: number) => number;
|
|
16
|
-
export const signedcgkaoperation_signature: (a: number) => [number, number];
|
|
17
|
-
export const signedcgkaoperation_verify: (a: number) => number;
|
|
18
|
-
export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
19
|
-
export const __wbg_allagentevents_free: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
21
|
-
export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
|
|
22
|
-
export const __wbg_decryptedkeyed_free: (a: number, b: number) => void;
|
|
23
|
-
export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
24
|
-
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
25
|
-
export const __wbg_sharekey_free: (a: number, b: number) => void;
|
|
26
|
-
export const allagentevents_agentCgkaSources: (a: number) => any;
|
|
27
|
-
export const allagentevents_agentMembershipSources: (a: number) => any;
|
|
28
|
-
export const allagentevents_agentPrekeySources: (a: number) => any;
|
|
29
|
-
export const allagentevents_cgkaSources: (a: number) => any;
|
|
30
|
-
export const allagentevents_events: (a: number) => any;
|
|
31
|
-
export const allagentevents_membershipSources: (a: number) => any;
|
|
32
|
-
export const allagentevents_prekeySources: (a: number) => any;
|
|
33
|
-
export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
34
|
-
export const changeid_bytes: (a: number) => [number, number];
|
|
35
|
-
export const changeid_new: (a: number, b: number) => number;
|
|
36
|
-
export const ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
37
|
-
export const ciphertextstore_newInMemory: () => number;
|
|
38
|
-
export const decryptedkeyed_applicationSecret: (a: number) => [number, number];
|
|
39
|
-
export const decryptedkeyed_plaintext: (a: number) => [number, number];
|
|
40
|
-
export const doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
41
|
-
export const doccontentrefs_change_hashes: (a: number) => any;
|
|
42
|
-
export const doccontentrefs_docId: (a: number) => number;
|
|
43
|
-
export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
44
|
-
export const revocation_after: (a: number) => number;
|
|
45
|
-
export const revocation_proof: (a: number) => number;
|
|
46
|
-
export const revocation_revoked: (a: number) => number;
|
|
47
|
-
export const revocation_subject_id: (a: number) => number;
|
|
48
|
-
export const __wbg_access_free: (a: number, b: number) => void;
|
|
49
|
-
export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
50
|
-
export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
51
|
-
export const __wbg_contactcard_free: (a: number, b: number) => void;
|
|
52
|
-
export const __wbg_documentid_free: (a: number, b: number) => void;
|
|
53
|
-
export const __wbg_encrypted_free: (a: number, b: number) => void;
|
|
54
|
-
export const __wbg_event_free: (a: number, b: number) => void;
|
|
55
|
-
export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
|
|
56
|
-
export const __wbg_groupid_free: (a: number, b: number) => void;
|
|
57
|
-
export const __wbg_signer_free: (a: number, b: number) => void;
|
|
58
|
-
export const access_toString: (a: number) => [number, number];
|
|
59
|
-
export const access_tryFromString: (a: number, b: number) => number;
|
|
60
|
-
export const cgkaoperation_variant: (a: number) => [number, number];
|
|
61
|
-
export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
|
|
62
|
-
export const contactcard_id: (a: number) => number;
|
|
63
|
-
export const contactcard_individualId: (a: number) => number;
|
|
64
|
-
export const contactcard_op: (a: number) => number;
|
|
65
|
-
export const contactcard_shareKey: (a: number) => number;
|
|
66
|
-
export const contactcard_signature: (a: number) => [number, number];
|
|
67
|
-
export const contactcard_toJson: (a: number) => [number, number, number, number];
|
|
68
|
-
export const documentid_new: (a: number, b: number) => [number, number, number];
|
|
69
|
-
export const documentid_toBytes: (a: number) => [number, number];
|
|
70
|
-
export const documentid_toJsValue: (a: number) => any;
|
|
71
|
-
export const documentid_toString: (a: number) => [number, number];
|
|
72
|
-
export const encrypted_ciphertext: (a: number) => [number, number];
|
|
73
|
-
export const encrypted_content_ref: (a: number) => [number, number];
|
|
74
|
-
export const encrypted_decryptWithKey: (a: number, b: number, c: number) => [number, number, number, number];
|
|
75
|
-
export const encrypted_fromBytes: (a: number, b: number) => [number, number, number];
|
|
76
|
-
export const encrypted_nonce: (a: number) => [number, number];
|
|
77
|
-
export const encrypted_pcs_key_hash: (a: number) => [number, number];
|
|
78
|
-
export const encrypted_pred_refs: (a: number) => [number, number];
|
|
79
|
-
export const encrypted_serialize: (a: number) => [number, number, number, number];
|
|
80
|
-
export const event_isDelegated: (a: number) => number;
|
|
81
|
-
export const event_isRevoked: (a: number) => number;
|
|
82
|
-
export const event_toBytes: (a: number) => [number, number, number, number];
|
|
83
|
-
export const event_tryIntoSignedDelegation: (a: number) => number;
|
|
84
|
-
export const event_tryIntoSignedRevocation: (a: number) => number;
|
|
85
|
-
export const event_variant: (a: number) => [number, number];
|
|
86
|
-
export const generatewebcryptoerror_message: (a: number) => [number, number];
|
|
87
|
-
export const groupid_toString: (a: number) => [number, number];
|
|
88
|
-
export const signer_clone: (a: number) => number;
|
|
89
|
-
export const signer_generate: () => any;
|
|
90
|
-
export const signer_generateMemory: () => number;
|
|
91
|
-
export const signer_generateWebCrypto: () => any;
|
|
92
|
-
export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
|
|
93
|
-
export const signer_trySign: (a: number, b: number, c: number) => any;
|
|
94
|
-
export const signer_variant: (a: number) => [number, number];
|
|
95
|
-
export const signer_verifyingKey: (a: number) => [number, number];
|
|
96
|
-
export const signer_webCryptoSigner: (a: any) => any;
|
|
97
|
-
export const symmetricDecrypt: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
98
|
-
export const symmetricEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
99
|
-
export const encrypted_toBytes: (a: number) => [number, number];
|
|
100
|
-
export const __wbg_archive_free: (a: number, b: number) => void;
|
|
101
|
-
export const __wbg_capability_free: (a: number, b: number) => void;
|
|
102
|
-
export const __wbg_delegation_free: (a: number, b: number) => void;
|
|
103
|
-
export const __wbg_history_free: (a: number, b: number) => void;
|
|
104
|
-
export const __wbg_individualid_free: (a: number, b: number) => void;
|
|
105
|
-
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
106
|
-
export const __wbg_membership_free: (a: number, b: number) => void;
|
|
107
|
-
export const __wbg_signeddelegation_free: (a: number, b: number) => void;
|
|
108
|
-
export const __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
109
|
-
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
110
|
-
export const archive_toBytes: (a: number) => [number, number, number, number];
|
|
111
|
-
export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
112
|
-
export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
113
|
-
export const capability_can: (a: number) => number;
|
|
114
|
-
export const capability_proof: (a: number) => number;
|
|
115
|
-
export const capability_who: (a: number) => number;
|
|
116
|
-
export const delegation_after: (a: number) => number;
|
|
117
|
-
export const delegation_can: (a: number) => number;
|
|
118
|
-
export const delegation_delegate: (a: number) => number;
|
|
119
|
-
export const delegation_proof: (a: number) => number;
|
|
120
|
-
export const history_contentRefs: (a: number) => [number, number];
|
|
121
|
-
export const history_delegations: (a: number) => [number, number];
|
|
122
|
-
export const history_revocations: (a: number) => [number, number];
|
|
123
|
-
export const individualid_bytes: (a: number) => [number, number];
|
|
124
|
-
export const membership_can: (a: number) => number;
|
|
125
|
-
export const membership_who: (a: number) => number;
|
|
126
|
-
export const signeddelegation_delegation: (a: number) => number;
|
|
127
|
-
export const signeddelegation_signature: (a: number) => [number, number];
|
|
128
|
-
export const signeddelegation_subjectId: (a: number) => number;
|
|
129
|
-
export const signeddelegation_verify: (a: number) => number;
|
|
130
|
-
export const signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
131
|
-
export const signedrevocation_delegation: (a: number) => number;
|
|
132
|
-
export const signedrevocation_signature: (a: number) => [number, number];
|
|
133
|
-
export const signedrevocation_verify: (a: number) => number;
|
|
134
|
-
export const signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
135
|
-
export const summary_access: (a: number) => number;
|
|
136
|
-
export const summary_doc: (a: number) => number;
|
|
137
|
-
export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
138
|
-
export const __wbg_identifier_free: (a: number, b: number) => void;
|
|
139
|
-
export const identifier_new: (a: number, b: number) => [number, number, number];
|
|
140
|
-
export const identifier_publicId: () => number;
|
|
141
|
-
export const identifier_toBytes: (a: number) => [number, number];
|
|
142
4
|
export const __wbg_agent_free: (a: number, b: number) => void;
|
|
143
5
|
export const __wbg_document_free: (a: number, b: number) => void;
|
|
144
6
|
export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
|
|
@@ -147,7 +9,6 @@ export const __wbg_group_free: (a: number, b: number) => void;
|
|
|
147
9
|
export const __wbg_individual_free: (a: number, b: number) => void;
|
|
148
10
|
export const __wbg_keyhive_free: (a: number, b: number) => void;
|
|
149
11
|
export const __wbg_peer_free: (a: number, b: number) => void;
|
|
150
|
-
export const __wbg_stats_free: (a: number, b: number) => void;
|
|
151
12
|
export const agent_id: (a: number) => number;
|
|
152
13
|
export const agent_isDocument: (a: number) => number;
|
|
153
14
|
export const agent_isGroup: (a: number) => number;
|
|
@@ -179,6 +40,7 @@ export const individual_toPeer: (a: number) => number;
|
|
|
179
40
|
export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
|
|
180
41
|
export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
181
42
|
export const keyhive_allAgentEvents: (a: number) => any;
|
|
43
|
+
export const keyhive_bestAccessForDoc: (a: number, b: number, c: number) => any;
|
|
182
44
|
export const keyhive_contactCard: (a: number) => any;
|
|
183
45
|
export const keyhive_docMemberCapabilities: (a: number, b: number) => any;
|
|
184
46
|
export const keyhive_eventHashesForAgent: (a: number, b: number) => any;
|
|
@@ -223,6 +85,57 @@ export const peer_isDocument: (a: number) => number;
|
|
|
223
85
|
export const peer_isGroup: (a: number) => number;
|
|
224
86
|
export const peer_isIndividual: (a: number) => number;
|
|
225
87
|
export const peer_toString: (a: number) => [number, number];
|
|
88
|
+
export const setPanicHook: () => void;
|
|
89
|
+
export const group_groupId: (a: number) => number;
|
|
90
|
+
export const group_id: (a: number) => number;
|
|
91
|
+
export const individual_id: (a: number) => number;
|
|
92
|
+
export const peer_id: (a: number) => number;
|
|
93
|
+
export const __wbg_signed_free: (a: number, b: number) => void;
|
|
94
|
+
export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
|
|
95
|
+
export const signed_fromBytes: (a: number, b: number) => [number, number, number];
|
|
96
|
+
export const signed_payload: (a: number) => [number, number];
|
|
97
|
+
export const signed_signature: (a: number) => [number, number];
|
|
98
|
+
export const signed_toBytes: (a: number) => [number, number, number, number];
|
|
99
|
+
export const signed_verify: (a: number) => number;
|
|
100
|
+
export const signed_verifyingKey: (a: number) => [number, number];
|
|
101
|
+
export const signedcgkaoperation_delegation: (a: number) => number;
|
|
102
|
+
export const signedcgkaoperation_signature: (a: number) => [number, number];
|
|
103
|
+
export const signedcgkaoperation_verify: (a: number) => number;
|
|
104
|
+
export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
|
|
105
|
+
export const __wbg_archive_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_capability_free: (a: number, b: number) => void;
|
|
107
|
+
export const __wbg_delegation_free: (a: number, b: number) => void;
|
|
108
|
+
export const __wbg_history_free: (a: number, b: number) => void;
|
|
109
|
+
export const __wbg_membered_free: (a: number, b: number) => void;
|
|
110
|
+
export const __wbg_membership_free: (a: number, b: number) => void;
|
|
111
|
+
export const __wbg_signeddelegation_free: (a: number, b: number) => void;
|
|
112
|
+
export const __wbg_signedrevocation_free: (a: number, b: number) => void;
|
|
113
|
+
export const __wbg_stats_free: (a: number, b: number) => void;
|
|
114
|
+
export const __wbg_summary_free: (a: number, b: number) => void;
|
|
115
|
+
export const archive_toBytes: (a: number) => [number, number, number, number];
|
|
116
|
+
export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
|
|
117
|
+
export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
|
|
118
|
+
export const capability_can: (a: number) => number;
|
|
119
|
+
export const capability_proof: (a: number) => number;
|
|
120
|
+
export const capability_who: (a: number) => number;
|
|
121
|
+
export const delegation_after: (a: number) => number;
|
|
122
|
+
export const delegation_can: (a: number) => number;
|
|
123
|
+
export const delegation_delegate: (a: number) => number;
|
|
124
|
+
export const delegation_proof: (a: number) => number;
|
|
125
|
+
export const history_contentRefs: (a: number) => [number, number];
|
|
126
|
+
export const history_delegations: (a: number) => [number, number];
|
|
127
|
+
export const history_revocations: (a: number) => [number, number];
|
|
128
|
+
export const membership_can: (a: number) => number;
|
|
129
|
+
export const membership_who: (a: number) => number;
|
|
130
|
+
export const signeddelegation_delegation: (a: number) => number;
|
|
131
|
+
export const signeddelegation_signature: (a: number) => [number, number];
|
|
132
|
+
export const signeddelegation_subjectId: (a: number) => number;
|
|
133
|
+
export const signeddelegation_verify: (a: number) => number;
|
|
134
|
+
export const signeddelegation_verifyingKey: (a: number) => [number, number];
|
|
135
|
+
export const signedrevocation_delegation: (a: number) => number;
|
|
136
|
+
export const signedrevocation_signature: (a: number) => [number, number];
|
|
137
|
+
export const signedrevocation_verify: (a: number) => number;
|
|
138
|
+
export const signedrevocation_verifyingKey: (a: number) => [number, number];
|
|
226
139
|
export const stats_activePrekeyCount: (a: number) => bigint;
|
|
227
140
|
export const stats_cgkaOperations: (a: number) => bigint;
|
|
228
141
|
export const stats_delegations: (a: number) => bigint;
|
|
@@ -244,12 +157,111 @@ export const stats_prekeysExpanded: (a: number) => bigint;
|
|
|
244
157
|
export const stats_revocations: (a: number) => bigint;
|
|
245
158
|
export const stats_totalOps: (a: number) => bigint;
|
|
246
159
|
export const stats_totalPendingOps: (a: number) => bigint;
|
|
247
|
-
export const
|
|
248
|
-
export const
|
|
249
|
-
export const
|
|
250
|
-
export const
|
|
251
|
-
export const
|
|
252
|
-
export const
|
|
160
|
+
export const summary_access: (a: number) => number;
|
|
161
|
+
export const summary_doc: (a: number) => number;
|
|
162
|
+
export const __wbg_access_free: (a: number, b: number) => void;
|
|
163
|
+
export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
|
|
164
|
+
export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
|
|
165
|
+
export const __wbg_contactcard_free: (a: number, b: number) => void;
|
|
166
|
+
export const __wbg_documentid_free: (a: number, b: number) => void;
|
|
167
|
+
export const __wbg_encrypted_free: (a: number, b: number) => void;
|
|
168
|
+
export const __wbg_event_free: (a: number, b: number) => void;
|
|
169
|
+
export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
|
|
170
|
+
export const __wbg_groupid_free: (a: number, b: number) => void;
|
|
171
|
+
export const __wbg_sharekey_free: (a: number, b: number) => void;
|
|
172
|
+
export const __wbg_signer_free: (a: number, b: number) => void;
|
|
173
|
+
export const access_admin: () => number;
|
|
174
|
+
export const access_atLeast: (a: number, b: number) => number;
|
|
175
|
+
export const access_compareTo: (a: number, b: number) => number;
|
|
176
|
+
export const access_edit: () => number;
|
|
177
|
+
export const access_equals: (a: number, b: number) => number;
|
|
178
|
+
export const access_fromString: (a: number, b: number) => [number, number, number];
|
|
179
|
+
export const access_isEditor: (a: number) => number;
|
|
180
|
+
export const access_isReader: (a: number) => number;
|
|
181
|
+
export const access_level: (a: number) => number;
|
|
182
|
+
export const access_read: () => number;
|
|
183
|
+
export const access_relay: () => number;
|
|
184
|
+
export const access_toString: (a: number) => [number, number];
|
|
185
|
+
export const access_tryFromString: (a: number, b: number) => number;
|
|
186
|
+
export const cgkaoperation_variant: (a: number) => [number, number];
|
|
187
|
+
export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
|
|
188
|
+
export const contactcard_id: (a: number) => number;
|
|
189
|
+
export const contactcard_individualId: (a: number) => number;
|
|
190
|
+
export const contactcard_op: (a: number) => number;
|
|
191
|
+
export const contactcard_shareKey: (a: number) => number;
|
|
192
|
+
export const contactcard_signature: (a: number) => [number, number];
|
|
193
|
+
export const contactcard_toJson: (a: number) => [number, number, number, number];
|
|
194
|
+
export const documentid_new: (a: number, b: number) => [number, number, number];
|
|
195
|
+
export const documentid_toBytes: (a: number) => [number, number];
|
|
196
|
+
export const documentid_toJsValue: (a: number) => any;
|
|
197
|
+
export const documentid_toString: (a: number) => [number, number];
|
|
198
|
+
export const encrypted_ciphertext: (a: number) => [number, number];
|
|
199
|
+
export const encrypted_content_ref: (a: number) => [number, number];
|
|
200
|
+
export const encrypted_decryptWithKey: (a: number, b: number, c: number) => [number, number, number, number];
|
|
201
|
+
export const encrypted_fromBytes: (a: number, b: number) => [number, number, number];
|
|
202
|
+
export const encrypted_nonce: (a: number) => [number, number];
|
|
203
|
+
export const encrypted_pcs_key_hash: (a: number) => [number, number];
|
|
204
|
+
export const encrypted_pred_refs: (a: number) => [number, number];
|
|
205
|
+
export const encrypted_serialize: (a: number) => [number, number, number, number];
|
|
206
|
+
export const event_isDelegated: (a: number) => number;
|
|
207
|
+
export const event_isRevoked: (a: number) => number;
|
|
208
|
+
export const event_toBytes: (a: number) => [number, number, number, number];
|
|
209
|
+
export const event_tryIntoSignedDelegation: (a: number) => number;
|
|
210
|
+
export const event_tryIntoSignedRevocation: (a: number) => number;
|
|
211
|
+
export const event_variant: (a: number) => [number, number];
|
|
212
|
+
export const generatewebcryptoerror_message: (a: number) => [number, number];
|
|
213
|
+
export const groupid_toString: (a: number) => [number, number];
|
|
214
|
+
export const signer_clone: (a: number) => number;
|
|
215
|
+
export const signer_generate: () => any;
|
|
216
|
+
export const signer_generateMemory: () => number;
|
|
217
|
+
export const signer_generateWebCrypto: () => any;
|
|
218
|
+
export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
|
|
219
|
+
export const signer_trySign: (a: number, b: number, c: number) => any;
|
|
220
|
+
export const signer_variant: (a: number) => [number, number];
|
|
221
|
+
export const signer_verifyingKey: (a: number) => [number, number];
|
|
222
|
+
export const signer_webCryptoSigner: (a: any) => any;
|
|
223
|
+
export const symmetricDecrypt: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
224
|
+
export const symmetricEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
225
|
+
export const encrypted_toBytes: (a: number) => [number, number];
|
|
226
|
+
export const __wbg_invocation_free: (a: number, b: number) => void;
|
|
227
|
+
export const __wbg_signedinvocation_free: (a: number, b: number) => void;
|
|
228
|
+
export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
|
|
229
|
+
export const __wbg_identifier_free: (a: number, b: number) => void;
|
|
230
|
+
export const identifier_new: (a: number, b: number) => [number, number, number];
|
|
231
|
+
export const identifier_publicId: () => number;
|
|
232
|
+
export const identifier_toBytes: (a: number) => [number, number];
|
|
233
|
+
export const __wbg_allagentevents_free: (a: number, b: number) => void;
|
|
234
|
+
export const __wbg_changeid_free: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
|
|
236
|
+
export const __wbg_decryptedkeyed_free: (a: number, b: number) => void;
|
|
237
|
+
export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
|
|
238
|
+
export const __wbg_individualid_free: (a: number, b: number) => void;
|
|
239
|
+
export const __wbg_revocation_free: (a: number, b: number) => void;
|
|
240
|
+
export const allagentevents_agentCgkaSources: (a: number) => any;
|
|
241
|
+
export const allagentevents_agentMembershipSources: (a: number) => any;
|
|
242
|
+
export const allagentevents_agentPrekeySources: (a: number) => any;
|
|
243
|
+
export const allagentevents_cgkaSources: (a: number) => any;
|
|
244
|
+
export const allagentevents_events: (a: number) => any;
|
|
245
|
+
export const allagentevents_membershipSources: (a: number) => any;
|
|
246
|
+
export const allagentevents_prekeySources: (a: number) => any;
|
|
247
|
+
export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
|
|
248
|
+
export const changeid_bytes: (a: number) => [number, number];
|
|
249
|
+
export const changeid_new: (a: number, b: number) => number;
|
|
250
|
+
export const ciphertextstore_newFromWebStorage: (a: any) => number;
|
|
251
|
+
export const ciphertextstore_newInMemory: () => number;
|
|
252
|
+
export const decryptedkeyed_applicationSecret: (a: number) => [number, number];
|
|
253
|
+
export const decryptedkeyed_plaintext: (a: number) => [number, number];
|
|
254
|
+
export const doccontentrefs_addChangeId: (a: number, b: number) => any;
|
|
255
|
+
export const doccontentrefs_change_hashes: (a: number) => any;
|
|
256
|
+
export const doccontentrefs_docId: (a: number) => number;
|
|
257
|
+
export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
|
|
258
|
+
export const individualid_bytes: (a: number) => [number, number];
|
|
259
|
+
export const revocation_after: (a: number) => number;
|
|
260
|
+
export const revocation_proof: (a: number) => number;
|
|
261
|
+
export const revocation_revoked: (a: number) => number;
|
|
262
|
+
export const revocation_subject_id: (a: number) => number;
|
|
263
|
+
export const wasm_bindgen__convert__closures_____invoke__h264249ebd10d2c4e: (a: number, b: number, c: any) => [number, number];
|
|
264
|
+
export const wasm_bindgen__convert__closures_____invoke__h3240482818b7fa6b: (a: number, b: number, c: any, d: any) => void;
|
|
253
265
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
254
266
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
255
267
|
export const __wbindgen_exn_store: (a: number) => void;
|