@keyhive/keyhive 0.0.0-alpha.54d → 0.0.0-alpha.54e

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.54d",
3
+ "version": "0.0.0-alpha.54e",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -1601,14 +1601,14 @@ export class Individual {
1601
1601
  * @returns {IndividualId}
1602
1602
  */
1603
1603
  get individualId() {
1604
- const ret = wasm.group_groupId(this.__wbg_ptr);
1604
+ const ret = wasm.individual_id(this.__wbg_ptr);
1605
1605
  return IndividualId.__wrap(ret);
1606
1606
  }
1607
1607
  /**
1608
1608
  * @returns {Identifier}
1609
1609
  */
1610
1610
  get id() {
1611
- const ret = wasm.group_groupId(this.__wbg_ptr);
1611
+ const ret = wasm.individual_id(this.__wbg_ptr);
1612
1612
  return Identifier.__wrap(ret);
1613
1613
  }
1614
1614
  /**
@@ -3369,6 +3369,12 @@ export function __wbg_warn_de3a09d072c895e6(arg0, arg1, arg2, arg3, arg4, arg5,
3369
3369
  }
3370
3370
  };
3371
3371
 
3372
+ export function __wbindgen_cast_135e7c4dddfc5e2a(arg0, arg1) {
3373
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [Externref], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3374
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3375
+ return ret;
3376
+ };
3377
+
3372
3378
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
3373
3379
  // Cast intrinsic for `Ref(String) -> Externref`.
3374
3380
  const ret = getStringFromWasm0(arg0, arg1);
@@ -3383,12 +3389,6 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
3383
3389
  return ret;
3384
3390
  };
3385
3391
 
3386
- export function __wbindgen_cast_2eab6f6adaa15bfa(arg0, arg1) {
3387
- // Cast intrinsic for `Closure(Closure { dtor_idx: 477, function: Function { arguments: [Externref], shim_idx: 478, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3388
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3389
- return ret;
3390
- };
3391
-
3392
3392
  export function __wbindgen_cast_6300122139088863(arg0, arg1) {
3393
3393
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3394
3394
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -1,58 +1,34 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const setPanicHook: () => void;
5
- export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
6
- export const __wbg_event_free: (a: number, b: number) => void;
7
- export const __wbg_groupid_free: (a: number, b: number) => void;
8
- export const __wbg_individualid_free: (a: number, b: number) => void;
9
- export const __wbg_invocation_free: (a: number, b: number) => void;
10
- export const __wbg_revocation_free: (a: number, b: number) => void;
11
- export const __wbg_signedrevocation_free: (a: number, b: number) => void;
12
- export const cgkaoperation_variant: (a: number) => [number, number];
13
- export const event_isDelegated: (a: number) => number;
14
- export const event_isRevoked: (a: number) => number;
15
- export const event_toBytes: (a: number) => [number, number, number, number];
16
- export const event_tryIntoSignedDelegation: (a: number) => number;
17
- export const event_tryIntoSignedRevocation: (a: number) => number;
18
- export const event_variant: (a: number) => [number, number];
19
- export const groupid_toString: (a: number) => [number, number];
20
- export const individualid_bytes: (a: number) => [number, number];
21
- export const revocation_after: (a: number) => number;
22
- export const revocation_proof: (a: number) => number;
23
- export const revocation_revoked: (a: number) => number;
24
- export const revocation_subject_id: (a: number) => number;
25
- export const signedrevocation_delegation: (a: number) => number;
26
- export const signedrevocation_signature: (a: number) => [number, number];
27
- export const signedrevocation_verify: (a: number) => number;
28
- export const signedrevocation_verifyingKey: (a: number) => [number, number];
29
4
  export const __wbg_agent_free: (a: number, b: number) => void;
30
- export const __wbg_document_free: (a: number, b: number) => void;
31
5
  export const __wbg_encrypted_free: (a: number, b: number) => void;
32
- export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
6
+ export const __wbg_group_free: (a: number, b: number) => void;
7
+ export const __wbg_history_free: (a: number, b: number) => void;
33
8
  export const __wbg_keyhive_free: (a: number, b: number) => void;
34
- export const __wbg_membered_free: (a: number, b: number) => void;
35
9
  export const __wbg_peer_free: (a: number, b: number) => void;
36
- export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
37
- export const __wbg_stats_free: (a: number, b: number) => void;
10
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
11
+ export const __wbg_signedrevocation_free: (a: number, b: number) => void;
38
12
  export const agent_id: (a: number) => number;
39
13
  export const agent_isDocument: (a: number) => number;
40
14
  export const agent_isGroup: (a: number) => number;
41
15
  export const agent_isIndividual: (a: number) => number;
42
16
  export const agent_keyOps: (a: number) => any;
43
17
  export const agent_toString: (a: number) => [number, number];
44
- export const document___wasm_refgen_toJsDocument: (a: number) => number;
45
- export const document_doc_id: (a: number) => number;
46
- export const document_toAgent: (a: number) => number;
47
- export const document_toMembered: (a: number) => number;
48
- export const document_toPeer: (a: number) => number;
49
18
  export const encrypted_ciphertext: (a: number) => [number, number];
50
19
  export const encrypted_content_ref: (a: number) => [number, number];
51
20
  export const encrypted_nonce: (a: number) => [number, number];
52
21
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
53
22
  export const encrypted_pred_refs: (a: number) => [number, number];
54
- export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
55
- export const encryptedcontentwithupdate_update_op: (a: number) => number;
23
+ export const group___wasm_refgen_toJsGroup: (a: number) => number;
24
+ export const group_groupId: (a: number) => number;
25
+ export const group_members: (a: number) => any;
26
+ export const group_toAgent: (a: number) => number;
27
+ export const group_toMembered: (a: number) => number;
28
+ export const group_toPeer: (a: number) => number;
29
+ export const history_contentRefs: (a: number) => [number, number];
30
+ export const history_delegations: (a: number) => [number, number];
31
+ export const history_revocations: (a: number) => [number, number];
56
32
  export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
57
33
  export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
58
34
  export const keyhive_contactCard: (a: number) => any;
@@ -92,74 +68,40 @@ export const peer_isDocument: (a: number) => number;
92
68
  export const peer_isGroup: (a: number) => number;
93
69
  export const peer_isIndividual: (a: number) => number;
94
70
  export const peer_toString: (a: number) => [number, number];
95
- export const signedcgkaoperation_delegation: (a: number) => number;
96
- export const signedcgkaoperation_signature: (a: number) => [number, number];
97
- export const signedcgkaoperation_verify: (a: number) => number;
98
- export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
99
- export const stats_activePrekeyCount: (a: number) => bigint;
100
- export const stats_cgkaOperations: (a: number) => bigint;
101
- export const stats_delegations: (a: number) => bigint;
102
- export const stats_docs: (a: number) => bigint;
103
- export const stats_groups: (a: number) => bigint;
104
- export const stats_individuals: (a: number) => bigint;
105
- export const stats_pendingCgkaOperation: (a: number) => bigint;
106
- export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
107
- export const stats_pendingDelegated: (a: number) => bigint;
108
- export const stats_pendingDelegatedByActive: (a: number) => bigint;
109
- export const stats_pendingPrekeyRotated: (a: number) => bigint;
110
- export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
111
- export const stats_pendingPrekeysExpanded: (a: number) => bigint;
112
- export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
113
- export const stats_pendingRevoked: (a: number) => bigint;
114
- export const stats_pendingRevokedByActive: (a: number) => bigint;
115
- export const stats_prekeyRotations: (a: number) => bigint;
116
- export const stats_prekeysExpanded: (a: number) => bigint;
117
- export const stats_revocations: (a: number) => bigint;
118
- export const stats_totalOps: (a: number) => bigint;
119
- export const stats_totalPendingOps: (a: number) => bigint;
71
+ export const setPanicHook: () => void;
72
+ export const signedrevocation_delegation: (a: number) => number;
73
+ export const signedrevocation_signature: (a: number) => [number, number];
74
+ export const signedrevocation_verify: (a: number) => number;
75
+ export const signedrevocation_verifyingKey: (a: number) => [number, number];
120
76
  export const encrypted_toBytes: (a: number) => [number, number];
121
- export const document_id: (a: number) => number;
77
+ export const group_id: (a: number) => number;
122
78
  export const peer_id: (a: number) => number;
79
+ export const __wbg_invocation_free: (a: number, b: number) => void;
123
80
  export const __wbg_changeid_free: (a: number, b: number) => void;
124
- export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
125
81
  export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
126
- export const __wbg_history_free: (a: number, b: number) => void;
127
82
  export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
128
83
  export const changeid_bytes: (a: number) => [number, number];
129
84
  export const changeid_new: (a: number, b: number) => number;
130
- export const ciphertextstore_newFromWebStorage: (a: any) => number;
131
- export const ciphertextstore_newInMemory: () => number;
132
85
  export const doccontentrefs_addChangeId: (a: number, b: number) => any;
133
86
  export const doccontentrefs_change_hashes: (a: number) => any;
134
87
  export const doccontentrefs_docId: (a: number) => number;
135
88
  export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
136
- export const history_contentRefs: (a: number) => [number, number];
137
- export const history_delegations: (a: number) => [number, number];
138
- export const history_revocations: (a: number) => [number, number];
139
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
140
89
  export const __wbg_access_free: (a: number, b: number) => void;
141
- export const __wbg_archive_free: (a: number, b: number) => void;
142
90
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
143
91
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
144
92
  export const __wbg_capability_free: (a: number, b: number) => void;
145
93
  export const __wbg_contactcard_free: (a: number, b: number) => void;
146
94
  export const __wbg_delegation_free: (a: number, b: number) => void;
147
- export const __wbg_documentid_free: (a: number, b: number) => void;
95
+ export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
148
96
  export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
149
- export const __wbg_group_free: (a: number, b: number) => void;
150
97
  export const __wbg_identifier_free: (a: number, b: number) => void;
151
- export const __wbg_individual_free: (a: number, b: number) => void;
152
98
  export const __wbg_membership_free: (a: number, b: number) => void;
153
- export const __wbg_sharekey_free: (a: number, b: number) => void;
154
99
  export const __wbg_signed_free: (a: number, b: number) => void;
100
+ export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
155
101
  export const __wbg_signeddelegation_free: (a: number, b: number) => void;
156
102
  export const __wbg_signer_free: (a: number, b: number) => void;
157
- export const __wbg_summary_free: (a: number, b: number) => void;
158
103
  export const access_toString: (a: number) => [number, number];
159
104
  export const access_tryFromString: (a: number, b: number) => number;
160
- export const archive_toBytes: (a: number) => [number, number, number, number];
161
- export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
162
- export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
163
105
  export const capability_can: (a: number) => number;
164
106
  export const capability_proof: (a: number) => number;
165
107
  export const capability_who: (a: number) => number;
@@ -173,23 +115,12 @@ export const delegation_after: (a: number) => number;
173
115
  export const delegation_can: (a: number) => number;
174
116
  export const delegation_delegate: (a: number) => number;
175
117
  export const delegation_proof: (a: number) => number;
176
- export const documentid_new: (a: number, b: number) => [number, number, number];
177
- export const documentid_toBytes: (a: number) => [number, number];
178
- export const documentid_toJsValue: (a: number) => any;
179
- export const documentid_toString: (a: number) => [number, number];
118
+ export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
119
+ export const encryptedcontentwithupdate_update_op: (a: number) => number;
180
120
  export const generatewebcryptoerror_message: (a: number) => [number, number];
181
- export const group___wasm_refgen_toJsGroup: (a: number) => number;
182
- export const group_groupId: (a: number) => number;
183
- export const group_members: (a: number) => any;
184
- export const group_toAgent: (a: number) => number;
185
- export const group_toMembered: (a: number) => number;
186
- export const group_toPeer: (a: number) => number;
187
121
  export const identifier_new: (a: number, b: number) => [number, number, number];
188
122
  export const identifier_publicId: () => number;
189
123
  export const identifier_toBytes: (a: number) => [number, number];
190
- export const individual_pickPrekey: (a: number, b: number) => any;
191
- export const individual_toAgent: (a: number) => number;
192
- export const individual_toPeer: (a: number) => number;
193
124
  export const membership_can: (a: number) => number;
194
125
  export const membership_who: (a: number) => number;
195
126
  export const signed_fromBytes: (a: number, b: number) => [number, number, number];
@@ -198,6 +129,10 @@ export const signed_signature: (a: number) => [number, number];
198
129
  export const signed_toBytes: (a: number) => [number, number, number, number];
199
130
  export const signed_verify: (a: number) => number;
200
131
  export const signed_verifyingKey: (a: number) => [number, number];
132
+ export const signedcgkaoperation_delegation: (a: number) => number;
133
+ export const signedcgkaoperation_signature: (a: number) => [number, number];
134
+ export const signedcgkaoperation_verify: (a: number) => number;
135
+ export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
201
136
  export const signeddelegation_delegation: (a: number) => number;
202
137
  export const signeddelegation_signature: (a: number) => [number, number];
203
138
  export const signeddelegation_verify: (a: number) => number;
@@ -211,12 +146,77 @@ export const signer_trySign: (a: number, b: number, c: number) => any;
211
146
  export const signer_variant: (a: number) => [number, number];
212
147
  export const signer_verifyingKey: (a: number) => [number, number];
213
148
  export const signer_webCryptoSigner: (a: any) => any;
214
- export const summary_access: (a: number) => number;
215
- export const summary_doc: (a: number) => number;
216
149
  export const contactcard_individualId: (a: number) => number;
217
- export const group_id: (a: number) => number;
150
+ export const __wbg_stats_free: (a: number, b: number) => void;
151
+ export const stats_activePrekeyCount: (a: number) => bigint;
152
+ export const stats_cgkaOperations: (a: number) => bigint;
153
+ export const stats_delegations: (a: number) => bigint;
154
+ export const stats_docs: (a: number) => bigint;
155
+ export const stats_groups: (a: number) => bigint;
156
+ export const stats_individuals: (a: number) => bigint;
157
+ export const stats_pendingCgkaOperation: (a: number) => bigint;
158
+ export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
159
+ export const stats_pendingDelegated: (a: number) => bigint;
160
+ export const stats_pendingDelegatedByActive: (a: number) => bigint;
161
+ export const stats_pendingPrekeyRotated: (a: number) => bigint;
162
+ export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
163
+ export const stats_pendingPrekeysExpanded: (a: number) => bigint;
164
+ export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
165
+ export const stats_pendingRevoked: (a: number) => bigint;
166
+ export const stats_pendingRevokedByActive: (a: number) => bigint;
167
+ export const stats_prekeyRotations: (a: number) => bigint;
168
+ export const stats_prekeysExpanded: (a: number) => bigint;
169
+ export const stats_revocations: (a: number) => bigint;
170
+ export const stats_totalOps: (a: number) => bigint;
171
+ export const stats_totalPendingOps: (a: number) => bigint;
172
+ export const __wbg_individual_free: (a: number, b: number) => void;
218
173
  export const individual_id: (a: number) => number;
174
+ export const individual_pickPrekey: (a: number, b: number) => any;
175
+ export const individual_toAgent: (a: number) => number;
176
+ export const individual_toPeer: (a: number) => number;
219
177
  export const individual_individualId: (a: number) => number;
178
+ export const __wbg_archive_free: (a: number, b: number) => void;
179
+ export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
180
+ export const __wbg_documentid_free: (a: number, b: number) => void;
181
+ export const __wbg_event_free: (a: number, b: number) => void;
182
+ export const __wbg_groupid_free: (a: number, b: number) => void;
183
+ export const __wbg_revocation_free: (a: number, b: number) => void;
184
+ export const __wbg_summary_free: (a: number, b: number) => void;
185
+ export const archive_toBytes: (a: number) => [number, number, number, number];
186
+ export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
187
+ export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
188
+ export const cgkaoperation_variant: (a: number) => [number, number];
189
+ export const documentid_new: (a: number, b: number) => [number, number, number];
190
+ export const documentid_toBytes: (a: number) => [number, number];
191
+ export const documentid_toJsValue: (a: number) => any;
192
+ export const documentid_toString: (a: number) => [number, number];
193
+ export const event_isDelegated: (a: number) => number;
194
+ export const event_isRevoked: (a: number) => number;
195
+ export const event_toBytes: (a: number) => [number, number, number, number];
196
+ export const event_tryIntoSignedDelegation: (a: number) => number;
197
+ export const event_tryIntoSignedRevocation: (a: number) => number;
198
+ export const event_variant: (a: number) => [number, number];
199
+ export const groupid_toString: (a: number) => [number, number];
200
+ export const revocation_after: (a: number) => number;
201
+ export const revocation_proof: (a: number) => number;
202
+ export const revocation_revoked: (a: number) => number;
203
+ export const revocation_subject_id: (a: number) => number;
204
+ export const summary_access: (a: number) => number;
205
+ export const summary_doc: (a: number) => number;
206
+ export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
207
+ export const __wbg_document_free: (a: number, b: number) => void;
208
+ export const __wbg_individualid_free: (a: number, b: number) => void;
209
+ export const __wbg_membered_free: (a: number, b: number) => void;
210
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
211
+ export const ciphertextstore_newFromWebStorage: (a: any) => number;
212
+ export const ciphertextstore_newInMemory: () => number;
213
+ export const document___wasm_refgen_toJsDocument: (a: number) => number;
214
+ export const document_doc_id: (a: number) => number;
215
+ export const document_toAgent: (a: number) => number;
216
+ export const document_toMembered: (a: number) => number;
217
+ export const document_toPeer: (a: number) => number;
218
+ export const individualid_bytes: (a: number) => [number, number];
219
+ export const document_id: (a: number) => number;
220
220
  export const wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
221
221
  export const wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
222
222
  export const wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
@@ -1614,14 +1614,14 @@ class Individual {
1614
1614
  * @returns {IndividualId}
1615
1615
  */
1616
1616
  get individualId() {
1617
- const ret = wasm.group_groupId(this.__wbg_ptr);
1617
+ const ret = wasm.individual_id(this.__wbg_ptr);
1618
1618
  return IndividualId.__wrap(ret);
1619
1619
  }
1620
1620
  /**
1621
1621
  * @returns {Identifier}
1622
1622
  */
1623
1623
  get id() {
1624
- const ret = wasm.group_groupId(this.__wbg_ptr);
1624
+ const ret = wasm.individual_id(this.__wbg_ptr);
1625
1625
  return Identifier.__wrap(ret);
1626
1626
  }
1627
1627
  /**
@@ -3400,6 +3400,12 @@ exports.__wbg_warn_de3a09d072c895e6 = function(arg0, arg1, arg2, arg3, arg4, arg
3400
3400
  }
3401
3401
  };
3402
3402
 
3403
+ exports.__wbindgen_cast_135e7c4dddfc5e2a = function(arg0, arg1) {
3404
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [Externref], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3405
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3406
+ return ret;
3407
+ };
3408
+
3403
3409
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3404
3410
  // Cast intrinsic for `Ref(String) -> Externref`.
3405
3411
  const ret = getStringFromWasm0(arg0, arg1);
@@ -3414,12 +3420,6 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3414
3420
  return ret;
3415
3421
  };
3416
3422
 
3417
- exports.__wbindgen_cast_2eab6f6adaa15bfa = function(arg0, arg1) {
3418
- // Cast intrinsic for `Closure(Closure { dtor_idx: 477, function: Function { arguments: [Externref], shim_idx: 478, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3419
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3420
- return ret;
3421
- };
3422
-
3423
3423
  exports.__wbindgen_cast_6300122139088863 = function(arg0, arg1) {
3424
3424
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3425
3425
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -1,58 +1,34 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const setPanicHook: () => void;
5
- export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
6
- export const __wbg_event_free: (a: number, b: number) => void;
7
- export const __wbg_groupid_free: (a: number, b: number) => void;
8
- export const __wbg_individualid_free: (a: number, b: number) => void;
9
- export const __wbg_invocation_free: (a: number, b: number) => void;
10
- export const __wbg_revocation_free: (a: number, b: number) => void;
11
- export const __wbg_signedrevocation_free: (a: number, b: number) => void;
12
- export const cgkaoperation_variant: (a: number) => [number, number];
13
- export const event_isDelegated: (a: number) => number;
14
- export const event_isRevoked: (a: number) => number;
15
- export const event_toBytes: (a: number) => [number, number, number, number];
16
- export const event_tryIntoSignedDelegation: (a: number) => number;
17
- export const event_tryIntoSignedRevocation: (a: number) => number;
18
- export const event_variant: (a: number) => [number, number];
19
- export const groupid_toString: (a: number) => [number, number];
20
- export const individualid_bytes: (a: number) => [number, number];
21
- export const revocation_after: (a: number) => number;
22
- export const revocation_proof: (a: number) => number;
23
- export const revocation_revoked: (a: number) => number;
24
- export const revocation_subject_id: (a: number) => number;
25
- export const signedrevocation_delegation: (a: number) => number;
26
- export const signedrevocation_signature: (a: number) => [number, number];
27
- export const signedrevocation_verify: (a: number) => number;
28
- export const signedrevocation_verifyingKey: (a: number) => [number, number];
29
4
  export const __wbg_agent_free: (a: number, b: number) => void;
30
- export const __wbg_document_free: (a: number, b: number) => void;
31
5
  export const __wbg_encrypted_free: (a: number, b: number) => void;
32
- export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
6
+ export const __wbg_group_free: (a: number, b: number) => void;
7
+ export const __wbg_history_free: (a: number, b: number) => void;
33
8
  export const __wbg_keyhive_free: (a: number, b: number) => void;
34
- export const __wbg_membered_free: (a: number, b: number) => void;
35
9
  export const __wbg_peer_free: (a: number, b: number) => void;
36
- export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
37
- export const __wbg_stats_free: (a: number, b: number) => void;
10
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
11
+ export const __wbg_signedrevocation_free: (a: number, b: number) => void;
38
12
  export const agent_id: (a: number) => number;
39
13
  export const agent_isDocument: (a: number) => number;
40
14
  export const agent_isGroup: (a: number) => number;
41
15
  export const agent_isIndividual: (a: number) => number;
42
16
  export const agent_keyOps: (a: number) => any;
43
17
  export const agent_toString: (a: number) => [number, number];
44
- export const document___wasm_refgen_toJsDocument: (a: number) => number;
45
- export const document_doc_id: (a: number) => number;
46
- export const document_toAgent: (a: number) => number;
47
- export const document_toMembered: (a: number) => number;
48
- export const document_toPeer: (a: number) => number;
49
18
  export const encrypted_ciphertext: (a: number) => [number, number];
50
19
  export const encrypted_content_ref: (a: number) => [number, number];
51
20
  export const encrypted_nonce: (a: number) => [number, number];
52
21
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
53
22
  export const encrypted_pred_refs: (a: number) => [number, number];
54
- export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
55
- export const encryptedcontentwithupdate_update_op: (a: number) => number;
23
+ export const group___wasm_refgen_toJsGroup: (a: number) => number;
24
+ export const group_groupId: (a: number) => number;
25
+ export const group_members: (a: number) => any;
26
+ export const group_toAgent: (a: number) => number;
27
+ export const group_toMembered: (a: number) => number;
28
+ export const group_toPeer: (a: number) => number;
29
+ export const history_contentRefs: (a: number) => [number, number];
30
+ export const history_delegations: (a: number) => [number, number];
31
+ export const history_revocations: (a: number) => [number, number];
56
32
  export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
57
33
  export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
58
34
  export const keyhive_contactCard: (a: number) => any;
@@ -92,74 +68,40 @@ export const peer_isDocument: (a: number) => number;
92
68
  export const peer_isGroup: (a: number) => number;
93
69
  export const peer_isIndividual: (a: number) => number;
94
70
  export const peer_toString: (a: number) => [number, number];
95
- export const signedcgkaoperation_delegation: (a: number) => number;
96
- export const signedcgkaoperation_signature: (a: number) => [number, number];
97
- export const signedcgkaoperation_verify: (a: number) => number;
98
- export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
99
- export const stats_activePrekeyCount: (a: number) => bigint;
100
- export const stats_cgkaOperations: (a: number) => bigint;
101
- export const stats_delegations: (a: number) => bigint;
102
- export const stats_docs: (a: number) => bigint;
103
- export const stats_groups: (a: number) => bigint;
104
- export const stats_individuals: (a: number) => bigint;
105
- export const stats_pendingCgkaOperation: (a: number) => bigint;
106
- export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
107
- export const stats_pendingDelegated: (a: number) => bigint;
108
- export const stats_pendingDelegatedByActive: (a: number) => bigint;
109
- export const stats_pendingPrekeyRotated: (a: number) => bigint;
110
- export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
111
- export const stats_pendingPrekeysExpanded: (a: number) => bigint;
112
- export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
113
- export const stats_pendingRevoked: (a: number) => bigint;
114
- export const stats_pendingRevokedByActive: (a: number) => bigint;
115
- export const stats_prekeyRotations: (a: number) => bigint;
116
- export const stats_prekeysExpanded: (a: number) => bigint;
117
- export const stats_revocations: (a: number) => bigint;
118
- export const stats_totalOps: (a: number) => bigint;
119
- export const stats_totalPendingOps: (a: number) => bigint;
71
+ export const setPanicHook: () => void;
72
+ export const signedrevocation_delegation: (a: number) => number;
73
+ export const signedrevocation_signature: (a: number) => [number, number];
74
+ export const signedrevocation_verify: (a: number) => number;
75
+ export const signedrevocation_verifyingKey: (a: number) => [number, number];
120
76
  export const encrypted_toBytes: (a: number) => [number, number];
121
- export const document_id: (a: number) => number;
77
+ export const group_id: (a: number) => number;
122
78
  export const peer_id: (a: number) => number;
79
+ export const __wbg_invocation_free: (a: number, b: number) => void;
123
80
  export const __wbg_changeid_free: (a: number, b: number) => void;
124
- export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
125
81
  export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
126
- export const __wbg_history_free: (a: number, b: number) => void;
127
82
  export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
128
83
  export const changeid_bytes: (a: number) => [number, number];
129
84
  export const changeid_new: (a: number, b: number) => number;
130
- export const ciphertextstore_newFromWebStorage: (a: any) => number;
131
- export const ciphertextstore_newInMemory: () => number;
132
85
  export const doccontentrefs_addChangeId: (a: number, b: number) => any;
133
86
  export const doccontentrefs_change_hashes: (a: number) => any;
134
87
  export const doccontentrefs_docId: (a: number) => number;
135
88
  export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
136
- export const history_contentRefs: (a: number) => [number, number];
137
- export const history_delegations: (a: number) => [number, number];
138
- export const history_revocations: (a: number) => [number, number];
139
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
140
89
  export const __wbg_access_free: (a: number, b: number) => void;
141
- export const __wbg_archive_free: (a: number, b: number) => void;
142
90
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
143
91
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
144
92
  export const __wbg_capability_free: (a: number, b: number) => void;
145
93
  export const __wbg_contactcard_free: (a: number, b: number) => void;
146
94
  export const __wbg_delegation_free: (a: number, b: number) => void;
147
- export const __wbg_documentid_free: (a: number, b: number) => void;
95
+ export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
148
96
  export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
149
- export const __wbg_group_free: (a: number, b: number) => void;
150
97
  export const __wbg_identifier_free: (a: number, b: number) => void;
151
- export const __wbg_individual_free: (a: number, b: number) => void;
152
98
  export const __wbg_membership_free: (a: number, b: number) => void;
153
- export const __wbg_sharekey_free: (a: number, b: number) => void;
154
99
  export const __wbg_signed_free: (a: number, b: number) => void;
100
+ export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
155
101
  export const __wbg_signeddelegation_free: (a: number, b: number) => void;
156
102
  export const __wbg_signer_free: (a: number, b: number) => void;
157
- export const __wbg_summary_free: (a: number, b: number) => void;
158
103
  export const access_toString: (a: number) => [number, number];
159
104
  export const access_tryFromString: (a: number, b: number) => number;
160
- export const archive_toBytes: (a: number) => [number, number, number, number];
161
- export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
162
- export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
163
105
  export const capability_can: (a: number) => number;
164
106
  export const capability_proof: (a: number) => number;
165
107
  export const capability_who: (a: number) => number;
@@ -173,23 +115,12 @@ export const delegation_after: (a: number) => number;
173
115
  export const delegation_can: (a: number) => number;
174
116
  export const delegation_delegate: (a: number) => number;
175
117
  export const delegation_proof: (a: number) => number;
176
- export const documentid_new: (a: number, b: number) => [number, number, number];
177
- export const documentid_toBytes: (a: number) => [number, number];
178
- export const documentid_toJsValue: (a: number) => any;
179
- export const documentid_toString: (a: number) => [number, number];
118
+ export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
119
+ export const encryptedcontentwithupdate_update_op: (a: number) => number;
180
120
  export const generatewebcryptoerror_message: (a: number) => [number, number];
181
- export const group___wasm_refgen_toJsGroup: (a: number) => number;
182
- export const group_groupId: (a: number) => number;
183
- export const group_members: (a: number) => any;
184
- export const group_toAgent: (a: number) => number;
185
- export const group_toMembered: (a: number) => number;
186
- export const group_toPeer: (a: number) => number;
187
121
  export const identifier_new: (a: number, b: number) => [number, number, number];
188
122
  export const identifier_publicId: () => number;
189
123
  export const identifier_toBytes: (a: number) => [number, number];
190
- export const individual_pickPrekey: (a: number, b: number) => any;
191
- export const individual_toAgent: (a: number) => number;
192
- export const individual_toPeer: (a: number) => number;
193
124
  export const membership_can: (a: number) => number;
194
125
  export const membership_who: (a: number) => number;
195
126
  export const signed_fromBytes: (a: number, b: number) => [number, number, number];
@@ -198,6 +129,10 @@ export const signed_signature: (a: number) => [number, number];
198
129
  export const signed_toBytes: (a: number) => [number, number, number, number];
199
130
  export const signed_verify: (a: number) => number;
200
131
  export const signed_verifyingKey: (a: number) => [number, number];
132
+ export const signedcgkaoperation_delegation: (a: number) => number;
133
+ export const signedcgkaoperation_signature: (a: number) => [number, number];
134
+ export const signedcgkaoperation_verify: (a: number) => number;
135
+ export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
201
136
  export const signeddelegation_delegation: (a: number) => number;
202
137
  export const signeddelegation_signature: (a: number) => [number, number];
203
138
  export const signeddelegation_verify: (a: number) => number;
@@ -211,12 +146,77 @@ export const signer_trySign: (a: number, b: number, c: number) => any;
211
146
  export const signer_variant: (a: number) => [number, number];
212
147
  export const signer_verifyingKey: (a: number) => [number, number];
213
148
  export const signer_webCryptoSigner: (a: any) => any;
214
- export const summary_access: (a: number) => number;
215
- export const summary_doc: (a: number) => number;
216
149
  export const contactcard_individualId: (a: number) => number;
217
- export const group_id: (a: number) => number;
150
+ export const __wbg_stats_free: (a: number, b: number) => void;
151
+ export const stats_activePrekeyCount: (a: number) => bigint;
152
+ export const stats_cgkaOperations: (a: number) => bigint;
153
+ export const stats_delegations: (a: number) => bigint;
154
+ export const stats_docs: (a: number) => bigint;
155
+ export const stats_groups: (a: number) => bigint;
156
+ export const stats_individuals: (a: number) => bigint;
157
+ export const stats_pendingCgkaOperation: (a: number) => bigint;
158
+ export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
159
+ export const stats_pendingDelegated: (a: number) => bigint;
160
+ export const stats_pendingDelegatedByActive: (a: number) => bigint;
161
+ export const stats_pendingPrekeyRotated: (a: number) => bigint;
162
+ export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
163
+ export const stats_pendingPrekeysExpanded: (a: number) => bigint;
164
+ export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
165
+ export const stats_pendingRevoked: (a: number) => bigint;
166
+ export const stats_pendingRevokedByActive: (a: number) => bigint;
167
+ export const stats_prekeyRotations: (a: number) => bigint;
168
+ export const stats_prekeysExpanded: (a: number) => bigint;
169
+ export const stats_revocations: (a: number) => bigint;
170
+ export const stats_totalOps: (a: number) => bigint;
171
+ export const stats_totalPendingOps: (a: number) => bigint;
172
+ export const __wbg_individual_free: (a: number, b: number) => void;
218
173
  export const individual_id: (a: number) => number;
174
+ export const individual_pickPrekey: (a: number, b: number) => any;
175
+ export const individual_toAgent: (a: number) => number;
176
+ export const individual_toPeer: (a: number) => number;
219
177
  export const individual_individualId: (a: number) => number;
178
+ export const __wbg_archive_free: (a: number, b: number) => void;
179
+ export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
180
+ export const __wbg_documentid_free: (a: number, b: number) => void;
181
+ export const __wbg_event_free: (a: number, b: number) => void;
182
+ export const __wbg_groupid_free: (a: number, b: number) => void;
183
+ export const __wbg_revocation_free: (a: number, b: number) => void;
184
+ export const __wbg_summary_free: (a: number, b: number) => void;
185
+ export const archive_toBytes: (a: number) => [number, number, number, number];
186
+ export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
187
+ export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
188
+ export const cgkaoperation_variant: (a: number) => [number, number];
189
+ export const documentid_new: (a: number, b: number) => [number, number, number];
190
+ export const documentid_toBytes: (a: number) => [number, number];
191
+ export const documentid_toJsValue: (a: number) => any;
192
+ export const documentid_toString: (a: number) => [number, number];
193
+ export const event_isDelegated: (a: number) => number;
194
+ export const event_isRevoked: (a: number) => number;
195
+ export const event_toBytes: (a: number) => [number, number, number, number];
196
+ export const event_tryIntoSignedDelegation: (a: number) => number;
197
+ export const event_tryIntoSignedRevocation: (a: number) => number;
198
+ export const event_variant: (a: number) => [number, number];
199
+ export const groupid_toString: (a: number) => [number, number];
200
+ export const revocation_after: (a: number) => number;
201
+ export const revocation_proof: (a: number) => number;
202
+ export const revocation_revoked: (a: number) => number;
203
+ export const revocation_subject_id: (a: number) => number;
204
+ export const summary_access: (a: number) => number;
205
+ export const summary_doc: (a: number) => number;
206
+ export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
207
+ export const __wbg_document_free: (a: number, b: number) => void;
208
+ export const __wbg_individualid_free: (a: number, b: number) => void;
209
+ export const __wbg_membered_free: (a: number, b: number) => void;
210
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
211
+ export const ciphertextstore_newFromWebStorage: (a: any) => number;
212
+ export const ciphertextstore_newInMemory: () => number;
213
+ export const document___wasm_refgen_toJsDocument: (a: number) => number;
214
+ export const document_doc_id: (a: number) => number;
215
+ export const document_toAgent: (a: number) => number;
216
+ export const document_toMembered: (a: number) => number;
217
+ export const document_toPeer: (a: number) => number;
218
+ export const individualid_bytes: (a: number) => [number, number];
219
+ export const document_id: (a: number) => number;
220
220
  export const wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
221
221
  export const wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
222
222
  export const wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;