@keyhive/keyhive 0.0.0-alpha.4 → 0.0.0-alpha.40
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/README.md +1 -6
- package/package.json +7 -4
- package/pkg/README.md +1 -6
- package/pkg/keyhive_wasm.d.ts +51 -96
- package/pkg/keyhive_wasm_bg.js +561 -690
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +146 -147
- package/pkg/package.json +1 -1
- package/pkg-node/README.md +1 -6
- package/pkg-node/keyhive_wasm.d.ts +51 -96
- package/pkg-node/keyhive_wasm.js +564 -717
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +146 -147
- package/pkg-node/package.json +1 -1
- package/pkg-slim/README.md +1 -6
- package/pkg-slim/keyhive_wasm.d.ts +197 -243
- package/pkg-slim/keyhive_wasm.js +525 -670
- 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 +146 -147
- package/pkg-slim/package.json +1 -1
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -121,6 +121,12 @@ function isLikeNone(x) {
|
|
|
121
121
|
return x === undefined || x === null;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
function _assertClass(instance, klass) {
|
|
125
|
+
if (!(instance instanceof klass)) {
|
|
126
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
124
130
|
function debugString(val) {
|
|
125
131
|
// primitive types
|
|
126
132
|
const type = typeof val;
|
|
@@ -186,11 +192,22 @@ function debugString(val) {
|
|
|
186
192
|
return className;
|
|
187
193
|
}
|
|
188
194
|
|
|
195
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
196
|
+
ptr = ptr >>> 0;
|
|
197
|
+
const mem = getDataViewMemory0();
|
|
198
|
+
const result = [];
|
|
199
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
200
|
+
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
201
|
+
}
|
|
202
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
|
|
189
206
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
190
207
|
? { register: () => {}, unregister: () => {} }
|
|
191
208
|
: new FinalizationRegistry(
|
|
192
209
|
state => {
|
|
193
|
-
wasm.
|
|
210
|
+
wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
|
|
194
211
|
}
|
|
195
212
|
);
|
|
196
213
|
|
|
@@ -208,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
208
225
|
return f(a, state.b, ...args);
|
|
209
226
|
} finally {
|
|
210
227
|
if (--state.cnt === 0) {
|
|
211
|
-
wasm.
|
|
228
|
+
wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
|
|
212
229
|
CLOSURE_DTORS.unregister(state);
|
|
213
230
|
} else {
|
|
214
231
|
state.a = a;
|
|
@@ -220,17 +237,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
220
237
|
return real;
|
|
221
238
|
}
|
|
222
239
|
|
|
223
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
224
|
-
ptr = ptr >>> 0;
|
|
225
|
-
const mem = getDataViewMemory0();
|
|
226
|
-
const result = [];
|
|
227
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
228
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
229
|
-
}
|
|
230
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
231
|
-
return result;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
240
|
function passArray8ToWasm0(arg, malloc) {
|
|
235
241
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
236
242
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -244,12 +250,6 @@ function takeFromExternrefTable0(idx) {
|
|
|
244
250
|
return value;
|
|
245
251
|
}
|
|
246
252
|
|
|
247
|
-
function _assertClass(instance, klass) {
|
|
248
|
-
if (!(instance instanceof klass)) {
|
|
249
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
253
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
254
254
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
255
255
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -269,12 +269,12 @@ export function setPanicHook() {
|
|
|
269
269
|
wasm.setPanicHook();
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function
|
|
273
|
-
wasm.
|
|
272
|
+
function __wbg_adapter_10(arg0, arg1, arg2) {
|
|
273
|
+
wasm.closure425_externref_shim(arg0, arg1, arg2);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function
|
|
277
|
-
wasm.
|
|
276
|
+
function __wbg_adapter_315(arg0, arg1, arg2, arg3) {
|
|
277
|
+
wasm.closure582_externref_shim(arg0, arg1, arg2, arg3);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -330,49 +330,6 @@ export class Access {
|
|
|
330
330
|
}
|
|
331
331
|
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
332
332
|
|
|
333
|
-
const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
334
|
-
? { register: () => {}, unregister: () => {} }
|
|
335
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_addmembererror_free(ptr >>> 0, 1));
|
|
336
|
-
|
|
337
|
-
export class AddMemberError {
|
|
338
|
-
|
|
339
|
-
static __wrap(ptr) {
|
|
340
|
-
ptr = ptr >>> 0;
|
|
341
|
-
const obj = Object.create(AddMemberError.prototype);
|
|
342
|
-
obj.__wbg_ptr = ptr;
|
|
343
|
-
AddMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
344
|
-
return obj;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
__destroy_into_raw() {
|
|
348
|
-
const ptr = this.__wbg_ptr;
|
|
349
|
-
this.__wbg_ptr = 0;
|
|
350
|
-
AddMemberErrorFinalization.unregister(this);
|
|
351
|
-
return ptr;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
free() {
|
|
355
|
-
const ptr = this.__destroy_into_raw();
|
|
356
|
-
wasm.__wbg_addmembererror_free(ptr, 0);
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* @returns {string}
|
|
360
|
-
*/
|
|
361
|
-
message() {
|
|
362
|
-
let deferred1_0;
|
|
363
|
-
let deferred1_1;
|
|
364
|
-
try {
|
|
365
|
-
const ret = wasm.addmembererror_message(this.__wbg_ptr);
|
|
366
|
-
deferred1_0 = ret[0];
|
|
367
|
-
deferred1_1 = ret[1];
|
|
368
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
369
|
-
} finally {
|
|
370
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
|
|
375
|
-
|
|
376
333
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
377
334
|
? { register: () => {}, unregister: () => {} }
|
|
378
335
|
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
@@ -499,17 +456,14 @@ export class Archive {
|
|
|
499
456
|
* @param {CiphertextStore} ciphertext_store
|
|
500
457
|
* @param {Signer} signer
|
|
501
458
|
* @param {Function} event_handler
|
|
502
|
-
* @returns {Keyhive}
|
|
459
|
+
* @returns {Promise<Keyhive>}
|
|
503
460
|
*/
|
|
504
461
|
tryToKeyhive(ciphertext_store, signer, event_handler) {
|
|
505
462
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
506
463
|
var ptr0 = ciphertext_store.__destroy_into_raw();
|
|
507
464
|
_assertClass(signer, Signer);
|
|
508
465
|
const ret = wasm.archive_tryToKeyhive(this.__wbg_ptr, ptr0, signer.__wbg_ptr, event_handler);
|
|
509
|
-
|
|
510
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
511
|
-
}
|
|
512
|
-
return Keyhive.__wrap(ret[0]);
|
|
466
|
+
return ret;
|
|
513
467
|
}
|
|
514
468
|
}
|
|
515
469
|
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
@@ -662,22 +616,22 @@ export class CgkaOperation {
|
|
|
662
616
|
}
|
|
663
617
|
if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
|
|
664
618
|
|
|
665
|
-
const
|
|
619
|
+
const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
666
620
|
? { register: () => {}, unregister: () => {} }
|
|
667
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
621
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
|
|
668
622
|
|
|
669
|
-
export class
|
|
623
|
+
export class ChangeId {
|
|
670
624
|
|
|
671
625
|
static __wrap(ptr) {
|
|
672
626
|
ptr = ptr >>> 0;
|
|
673
|
-
const obj = Object.create(
|
|
627
|
+
const obj = Object.create(ChangeId.prototype);
|
|
674
628
|
obj.__wbg_ptr = ptr;
|
|
675
|
-
|
|
629
|
+
ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
676
630
|
return obj;
|
|
677
631
|
}
|
|
678
632
|
|
|
679
633
|
static __unwrap(jsValue) {
|
|
680
|
-
if (!(jsValue instanceof
|
|
634
|
+
if (!(jsValue instanceof ChangeId)) {
|
|
681
635
|
return 0;
|
|
682
636
|
}
|
|
683
637
|
return jsValue.__destroy_into_raw();
|
|
@@ -686,13 +640,13 @@ export class ChangeRef {
|
|
|
686
640
|
__destroy_into_raw() {
|
|
687
641
|
const ptr = this.__wbg_ptr;
|
|
688
642
|
this.__wbg_ptr = 0;
|
|
689
|
-
|
|
643
|
+
ChangeIdFinalization.unregister(this);
|
|
690
644
|
return ptr;
|
|
691
645
|
}
|
|
692
646
|
|
|
693
647
|
free() {
|
|
694
648
|
const ptr = this.__destroy_into_raw();
|
|
695
|
-
wasm.
|
|
649
|
+
wasm.__wbg_changeid_free(ptr, 0);
|
|
696
650
|
}
|
|
697
651
|
/**
|
|
698
652
|
* @param {Uint8Array} bytes
|
|
@@ -700,22 +654,29 @@ export class ChangeRef {
|
|
|
700
654
|
constructor(bytes) {
|
|
701
655
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
702
656
|
const len0 = WASM_VECTOR_LEN;
|
|
703
|
-
const ret = wasm.
|
|
657
|
+
const ret = wasm.changeid_new(ptr0, len0);
|
|
704
658
|
this.__wbg_ptr = ret >>> 0;
|
|
705
|
-
|
|
659
|
+
ChangeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
706
660
|
return this;
|
|
707
661
|
}
|
|
708
662
|
/**
|
|
709
663
|
* @returns {Uint8Array}
|
|
710
664
|
*/
|
|
711
665
|
get bytes() {
|
|
712
|
-
const ret = wasm.
|
|
666
|
+
const ret = wasm.changeid_bytes(this.__wbg_ptr);
|
|
713
667
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
714
668
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
715
669
|
return v1;
|
|
716
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* @returns {ChangeId}
|
|
673
|
+
*/
|
|
674
|
+
__wasm_refgen_toChangeId() {
|
|
675
|
+
const ret = wasm.changeid___wasm_refgen_toChangeId(this.__wbg_ptr);
|
|
676
|
+
return ChangeId.__wrap(ret);
|
|
677
|
+
}
|
|
717
678
|
}
|
|
718
|
-
if (Symbol.dispose)
|
|
679
|
+
if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
|
|
719
680
|
|
|
720
681
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
721
682
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -808,6 +769,13 @@ export class ContactCard {
|
|
|
808
769
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
809
770
|
return v1;
|
|
810
771
|
}
|
|
772
|
+
/**
|
|
773
|
+
* @returns {Agent}
|
|
774
|
+
*/
|
|
775
|
+
toAgent() {
|
|
776
|
+
const ret = wasm.contactcard_toAgent(this.__wbg_ptr);
|
|
777
|
+
return Agent.__wrap(ret);
|
|
778
|
+
}
|
|
811
779
|
/**
|
|
812
780
|
* @param {string} json
|
|
813
781
|
* @returns {ContactCard}
|
|
@@ -901,26 +869,6 @@ export class Delegation {
|
|
|
901
869
|
}
|
|
902
870
|
if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
|
|
903
871
|
|
|
904
|
-
const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
905
|
-
? { register: () => {}, unregister: () => {} }
|
|
906
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_delegationerror_free(ptr >>> 0, 1));
|
|
907
|
-
|
|
908
|
-
export class DelegationError {
|
|
909
|
-
|
|
910
|
-
__destroy_into_raw() {
|
|
911
|
-
const ptr = this.__wbg_ptr;
|
|
912
|
-
this.__wbg_ptr = 0;
|
|
913
|
-
DelegationErrorFinalization.unregister(this);
|
|
914
|
-
return ptr;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
free() {
|
|
918
|
-
const ptr = this.__destroy_into_raw();
|
|
919
|
-
wasm.__wbg_delegationerror_free(ptr, 0);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
|
|
923
|
-
|
|
924
872
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
925
873
|
? { register: () => {}, unregister: () => {} }
|
|
926
874
|
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
@@ -948,7 +896,7 @@ export class DocContentRefs {
|
|
|
948
896
|
}
|
|
949
897
|
/**
|
|
950
898
|
* @param {DocumentId} doc_id
|
|
951
|
-
* @param {
|
|
899
|
+
* @param {ChangeId[]} change_hashes
|
|
952
900
|
*/
|
|
953
901
|
constructor(doc_id, change_hashes) {
|
|
954
902
|
_assertClass(doc_id, DocumentId);
|
|
@@ -964,12 +912,14 @@ export class DocContentRefs {
|
|
|
964
912
|
return this;
|
|
965
913
|
}
|
|
966
914
|
/**
|
|
967
|
-
* @param {
|
|
915
|
+
* @param {ChangeId} hash
|
|
916
|
+
* @returns {Promise<void>}
|
|
968
917
|
*/
|
|
969
|
-
|
|
970
|
-
_assertClass(hash,
|
|
918
|
+
addChangeId(hash) {
|
|
919
|
+
_assertClass(hash, ChangeId);
|
|
971
920
|
var ptr0 = hash.__destroy_into_raw();
|
|
972
|
-
wasm.
|
|
921
|
+
const ret = wasm.doccontentrefs_addChangeId(this.__wbg_ptr, ptr0);
|
|
922
|
+
return ret;
|
|
973
923
|
}
|
|
974
924
|
/**
|
|
975
925
|
* @returns {DocumentId}
|
|
@@ -979,13 +929,11 @@ export class DocContentRefs {
|
|
|
979
929
|
return DocumentId.__wrap(ret);
|
|
980
930
|
}
|
|
981
931
|
/**
|
|
982
|
-
* @returns {
|
|
932
|
+
* @returns {Promise<ChangeId[]>}
|
|
983
933
|
*/
|
|
984
934
|
get change_hashes() {
|
|
985
935
|
const ret = wasm.doccontentrefs_change_hashes(this.__wbg_ptr);
|
|
986
|
-
|
|
987
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
988
|
-
return v1;
|
|
936
|
+
return ret;
|
|
989
937
|
}
|
|
990
938
|
}
|
|
991
939
|
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
@@ -1004,13 +952,6 @@ export class Document {
|
|
|
1004
952
|
return obj;
|
|
1005
953
|
}
|
|
1006
954
|
|
|
1007
|
-
static __unwrap(jsValue) {
|
|
1008
|
-
if (!(jsValue instanceof Document)) {
|
|
1009
|
-
return 0;
|
|
1010
|
-
}
|
|
1011
|
-
return jsValue.__destroy_into_raw();
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
955
|
__destroy_into_raw() {
|
|
1015
956
|
const ptr = this.__wbg_ptr;
|
|
1016
957
|
this.__wbg_ptr = 0;
|
|
@@ -1026,7 +967,7 @@ export class Document {
|
|
|
1026
967
|
* @returns {Identifier}
|
|
1027
968
|
*/
|
|
1028
969
|
get id() {
|
|
1029
|
-
const ret = wasm.
|
|
970
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1030
971
|
return Identifier.__wrap(ret);
|
|
1031
972
|
}
|
|
1032
973
|
/**
|
|
@@ -1050,6 +991,20 @@ export class Document {
|
|
|
1050
991
|
const ret = wasm.document_toAgent(this.__wbg_ptr);
|
|
1051
992
|
return Agent.__wrap(ret);
|
|
1052
993
|
}
|
|
994
|
+
/**
|
|
995
|
+
* @returns {Membered}
|
|
996
|
+
*/
|
|
997
|
+
toMembered() {
|
|
998
|
+
const ret = wasm.document_toMembered(this.__wbg_ptr);
|
|
999
|
+
return Membered.__wrap(ret);
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* @returns {Document}
|
|
1003
|
+
*/
|
|
1004
|
+
__wasm_refgen_toDocument() {
|
|
1005
|
+
const ret = wasm.document___wasm_refgen_toDocument(this.__wbg_ptr);
|
|
1006
|
+
return Document.__wrap(ret);
|
|
1007
|
+
}
|
|
1053
1008
|
}
|
|
1054
1009
|
if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
|
|
1055
1010
|
|
|
@@ -1095,11 +1050,11 @@ export class DocumentId {
|
|
|
1095
1050
|
/**
|
|
1096
1051
|
* @returns {string}
|
|
1097
1052
|
*/
|
|
1098
|
-
|
|
1053
|
+
toString() {
|
|
1099
1054
|
let deferred1_0;
|
|
1100
1055
|
let deferred1_1;
|
|
1101
1056
|
try {
|
|
1102
|
-
const ret = wasm.
|
|
1057
|
+
const ret = wasm.documentid_toString(this.__wbg_ptr);
|
|
1103
1058
|
deferred1_0 = ret[0];
|
|
1104
1059
|
deferred1_1 = ret[1];
|
|
1105
1060
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1318,51 +1273,22 @@ export class Event {
|
|
|
1318
1273
|
const ret = wasm.event_tryIntoSignedRevocation(this.__wbg_ptr);
|
|
1319
1274
|
return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
|
|
1320
1275
|
}
|
|
1321
|
-
}
|
|
1322
|
-
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1323
|
-
|
|
1324
|
-
const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1325
|
-
? { register: () => {}, unregister: () => {} }
|
|
1326
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_generatedocerror_free(ptr >>> 0, 1));
|
|
1327
|
-
|
|
1328
|
-
export class GenerateDocError {
|
|
1329
|
-
|
|
1330
|
-
static __wrap(ptr) {
|
|
1331
|
-
ptr = ptr >>> 0;
|
|
1332
|
-
const obj = Object.create(GenerateDocError.prototype);
|
|
1333
|
-
obj.__wbg_ptr = ptr;
|
|
1334
|
-
GenerateDocErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1335
|
-
return obj;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
__destroy_into_raw() {
|
|
1339
|
-
const ptr = this.__wbg_ptr;
|
|
1340
|
-
this.__wbg_ptr = 0;
|
|
1341
|
-
GenerateDocErrorFinalization.unregister(this);
|
|
1342
|
-
return ptr;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
free() {
|
|
1346
|
-
const ptr = this.__destroy_into_raw();
|
|
1347
|
-
wasm.__wbg_generatedocerror_free(ptr, 0);
|
|
1348
|
-
}
|
|
1349
1276
|
/**
|
|
1350
|
-
*
|
|
1277
|
+
* Converts the underlying [`Event`] to a [`StaticEvent`] and then
|
|
1278
|
+
* serializes it.
|
|
1279
|
+
* @returns {Uint8Array}
|
|
1351
1280
|
*/
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
const ret = wasm.generatedocerror_message(this.__wbg_ptr);
|
|
1357
|
-
deferred1_0 = ret[0];
|
|
1358
|
-
deferred1_1 = ret[1];
|
|
1359
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1360
|
-
} finally {
|
|
1361
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1281
|
+
toBytes() {
|
|
1282
|
+
const ret = wasm.event_toBytes(this.__wbg_ptr);
|
|
1283
|
+
if (ret[3]) {
|
|
1284
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1362
1285
|
}
|
|
1286
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1287
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1288
|
+
return v1;
|
|
1363
1289
|
}
|
|
1364
1290
|
}
|
|
1365
|
-
if (Symbol.dispose)
|
|
1291
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1366
1292
|
|
|
1367
1293
|
const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1368
1294
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1407,41 +1333,6 @@ export class GenerateWebCryptoError {
|
|
|
1407
1333
|
}
|
|
1408
1334
|
if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
|
|
1409
1335
|
|
|
1410
|
-
const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1411
|
-
? { register: () => {}, unregister: () => {} }
|
|
1412
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_getciphertexterror_free(ptr >>> 0, 1));
|
|
1413
|
-
|
|
1414
|
-
export class GetCiphertextError {
|
|
1415
|
-
|
|
1416
|
-
__destroy_into_raw() {
|
|
1417
|
-
const ptr = this.__wbg_ptr;
|
|
1418
|
-
this.__wbg_ptr = 0;
|
|
1419
|
-
GetCiphertextErrorFinalization.unregister(this);
|
|
1420
|
-
return ptr;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
free() {
|
|
1424
|
-
const ptr = this.__destroy_into_raw();
|
|
1425
|
-
wasm.__wbg_getciphertexterror_free(ptr, 0);
|
|
1426
|
-
}
|
|
1427
|
-
/**
|
|
1428
|
-
* @returns {string}
|
|
1429
|
-
*/
|
|
1430
|
-
get message() {
|
|
1431
|
-
let deferred1_0;
|
|
1432
|
-
let deferred1_1;
|
|
1433
|
-
try {
|
|
1434
|
-
const ret = wasm.getciphertexterror_message(this.__wbg_ptr);
|
|
1435
|
-
deferred1_0 = ret[0];
|
|
1436
|
-
deferred1_1 = ret[1];
|
|
1437
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1438
|
-
} finally {
|
|
1439
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
|
|
1444
|
-
|
|
1445
1336
|
const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1446
1337
|
? { register: () => {}, unregister: () => {} }
|
|
1447
1338
|
: new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
|
|
@@ -1471,7 +1362,7 @@ export class Group {
|
|
|
1471
1362
|
* @returns {Identifier}
|
|
1472
1363
|
*/
|
|
1473
1364
|
get id() {
|
|
1474
|
-
const ret = wasm.
|
|
1365
|
+
const ret = wasm.group_groupId(this.__wbg_ptr);
|
|
1475
1366
|
return Identifier.__wrap(ret);
|
|
1476
1367
|
}
|
|
1477
1368
|
/**
|
|
@@ -1482,13 +1373,11 @@ export class Group {
|
|
|
1482
1373
|
return GroupId.__wrap(ret);
|
|
1483
1374
|
}
|
|
1484
1375
|
/**
|
|
1485
|
-
* @returns {Capability[]}
|
|
1376
|
+
* @returns {Promise<Capability[]>}
|
|
1486
1377
|
*/
|
|
1487
|
-
|
|
1378
|
+
members() {
|
|
1488
1379
|
const ret = wasm.group_members(this.__wbg_ptr);
|
|
1489
|
-
|
|
1490
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1491
|
-
return v1;
|
|
1380
|
+
return ret;
|
|
1492
1381
|
}
|
|
1493
1382
|
/**
|
|
1494
1383
|
* @returns {Peer}
|
|
@@ -1511,6 +1400,13 @@ export class Group {
|
|
|
1511
1400
|
const ret = wasm.group_toMembered(this.__wbg_ptr);
|
|
1512
1401
|
return Membered.__wrap(ret);
|
|
1513
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* @returns {Group}
|
|
1405
|
+
*/
|
|
1406
|
+
__wasm_refgen_toGroup() {
|
|
1407
|
+
const ret = wasm.group___wasm_refgen_toGroup(this.__wbg_ptr);
|
|
1408
|
+
return Group.__wrap(ret);
|
|
1409
|
+
}
|
|
1514
1410
|
}
|
|
1515
1411
|
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1516
1412
|
|
|
@@ -1713,18 +1609,18 @@ export class Individual {
|
|
|
1713
1609
|
* @returns {IndividualId}
|
|
1714
1610
|
*/
|
|
1715
1611
|
get individualId() {
|
|
1716
|
-
const ret = wasm.
|
|
1612
|
+
const ret = wasm.individual_id(this.__wbg_ptr);
|
|
1717
1613
|
return IndividualId.__wrap(ret);
|
|
1718
1614
|
}
|
|
1719
1615
|
/**
|
|
1720
1616
|
* @param {DocumentId} doc_id
|
|
1721
|
-
* @returns {ShareKey}
|
|
1617
|
+
* @returns {Promise<ShareKey>}
|
|
1722
1618
|
*/
|
|
1723
1619
|
pickPrekey(doc_id) {
|
|
1724
1620
|
_assertClass(doc_id, DocumentId);
|
|
1725
1621
|
var ptr0 = doc_id.__destroy_into_raw();
|
|
1726
1622
|
const ret = wasm.individual_pickPrekey(this.__wbg_ptr, ptr0);
|
|
1727
|
-
return
|
|
1623
|
+
return ret;
|
|
1728
1624
|
}
|
|
1729
1625
|
}
|
|
1730
1626
|
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
@@ -1786,170 +1682,64 @@ export class Invocation {
|
|
|
1786
1682
|
}
|
|
1787
1683
|
if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
|
|
1788
1684
|
|
|
1789
|
-
const
|
|
1685
|
+
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1790
1686
|
? { register: () => {}, unregister: () => {} }
|
|
1791
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1687
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
|
|
1792
1688
|
|
|
1793
|
-
export class
|
|
1689
|
+
export class Keyhive {
|
|
1794
1690
|
|
|
1795
1691
|
static __wrap(ptr) {
|
|
1796
1692
|
ptr = ptr >>> 0;
|
|
1797
|
-
const obj = Object.create(
|
|
1693
|
+
const obj = Object.create(Keyhive.prototype);
|
|
1798
1694
|
obj.__wbg_ptr = ptr;
|
|
1799
|
-
|
|
1695
|
+
KeyhiveFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1800
1696
|
return obj;
|
|
1801
1697
|
}
|
|
1802
1698
|
|
|
1803
1699
|
__destroy_into_raw() {
|
|
1804
1700
|
const ptr = this.__wbg_ptr;
|
|
1805
1701
|
this.__wbg_ptr = 0;
|
|
1806
|
-
|
|
1702
|
+
KeyhiveFinalization.unregister(this);
|
|
1807
1703
|
return ptr;
|
|
1808
1704
|
}
|
|
1809
1705
|
|
|
1810
1706
|
free() {
|
|
1811
1707
|
const ptr = this.__destroy_into_raw();
|
|
1812
|
-
wasm.
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
|
|
1816
|
-
|
|
1817
|
-
const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1818
|
-
? { register: () => {}, unregister: () => {} }
|
|
1819
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsencrypterror_free(ptr >>> 0, 1));
|
|
1820
|
-
|
|
1821
|
-
export class JsEncryptError {
|
|
1822
|
-
|
|
1823
|
-
static __wrap(ptr) {
|
|
1824
|
-
ptr = ptr >>> 0;
|
|
1825
|
-
const obj = Object.create(JsEncryptError.prototype);
|
|
1826
|
-
obj.__wbg_ptr = ptr;
|
|
1827
|
-
JsEncryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1828
|
-
return obj;
|
|
1708
|
+
wasm.__wbg_keyhive_free(ptr, 0);
|
|
1829
1709
|
}
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1710
|
+
/**
|
|
1711
|
+
* @param {Signer} signer
|
|
1712
|
+
* @param {CiphertextStore} ciphertext_store
|
|
1713
|
+
* @param {Function} event_handler
|
|
1714
|
+
* @returns {Promise<Keyhive>}
|
|
1715
|
+
*/
|
|
1716
|
+
static init(signer, ciphertext_store, event_handler) {
|
|
1717
|
+
_assertClass(signer, Signer);
|
|
1718
|
+
_assertClass(ciphertext_store, CiphertextStore);
|
|
1719
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1720
|
+
return ret;
|
|
1836
1721
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1722
|
+
/**
|
|
1723
|
+
* @returns {IndividualId}
|
|
1724
|
+
*/
|
|
1725
|
+
get id() {
|
|
1726
|
+
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
1727
|
+
return IndividualId.__wrap(ret);
|
|
1841
1728
|
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
export class JsReceivePreKeyOpError {
|
|
1850
|
-
|
|
1851
|
-
static __wrap(ptr) {
|
|
1852
|
-
ptr = ptr >>> 0;
|
|
1853
|
-
const obj = Object.create(JsReceivePreKeyOpError.prototype);
|
|
1854
|
-
obj.__wbg_ptr = ptr;
|
|
1855
|
-
JsReceivePreKeyOpErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1856
|
-
return obj;
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
__destroy_into_raw() {
|
|
1860
|
-
const ptr = this.__wbg_ptr;
|
|
1861
|
-
this.__wbg_ptr = 0;
|
|
1862
|
-
JsReceivePreKeyOpErrorFinalization.unregister(this);
|
|
1863
|
-
return ptr;
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
free() {
|
|
1867
|
-
const ptr = this.__destroy_into_raw();
|
|
1868
|
-
wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
|
|
1872
|
-
|
|
1873
|
-
const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1874
|
-
? { register: () => {}, unregister: () => {} }
|
|
1875
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceivestaticeventerror_free(ptr >>> 0, 1));
|
|
1876
|
-
|
|
1877
|
-
export class JsReceiveStaticEventError {
|
|
1878
|
-
|
|
1879
|
-
static __wrap(ptr) {
|
|
1880
|
-
ptr = ptr >>> 0;
|
|
1881
|
-
const obj = Object.create(JsReceiveStaticEventError.prototype);
|
|
1882
|
-
obj.__wbg_ptr = ptr;
|
|
1883
|
-
JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1884
|
-
return obj;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
__destroy_into_raw() {
|
|
1888
|
-
const ptr = this.__wbg_ptr;
|
|
1889
|
-
this.__wbg_ptr = 0;
|
|
1890
|
-
JsReceiveStaticEventErrorFinalization.unregister(this);
|
|
1891
|
-
return ptr;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
free() {
|
|
1895
|
-
const ptr = this.__destroy_into_raw();
|
|
1896
|
-
wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
|
|
1900
|
-
|
|
1901
|
-
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1902
|
-
? { register: () => {}, unregister: () => {} }
|
|
1903
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
|
|
1904
|
-
|
|
1905
|
-
export class Keyhive {
|
|
1906
|
-
|
|
1907
|
-
static __wrap(ptr) {
|
|
1908
|
-
ptr = ptr >>> 0;
|
|
1909
|
-
const obj = Object.create(Keyhive.prototype);
|
|
1910
|
-
obj.__wbg_ptr = ptr;
|
|
1911
|
-
KeyhiveFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1912
|
-
return obj;
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
__destroy_into_raw() {
|
|
1916
|
-
const ptr = this.__wbg_ptr;
|
|
1917
|
-
this.__wbg_ptr = 0;
|
|
1918
|
-
KeyhiveFinalization.unregister(this);
|
|
1919
|
-
return ptr;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
free() {
|
|
1923
|
-
const ptr = this.__destroy_into_raw();
|
|
1924
|
-
wasm.__wbg_keyhive_free(ptr, 0);
|
|
1729
|
+
/**
|
|
1730
|
+
* @returns {IndividualId}
|
|
1731
|
+
*/
|
|
1732
|
+
get whoami() {
|
|
1733
|
+
const ret = wasm.keyhive_whoami(this.__wbg_ptr);
|
|
1734
|
+
return IndividualId.__wrap(ret);
|
|
1925
1735
|
}
|
|
1926
1736
|
/**
|
|
1927
|
-
* @
|
|
1928
|
-
* @param {CiphertextStore} ciphertext_store
|
|
1929
|
-
* @param {Function} event_handler
|
|
1930
|
-
* @returns {Promise<Keyhive>}
|
|
1737
|
+
* @returns {Promise<Individual>}
|
|
1931
1738
|
*/
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
_assertClass(ciphertext_store, CiphertextStore);
|
|
1935
|
-
var ptr0 = ciphertext_store.__destroy_into_raw();
|
|
1936
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ptr0, event_handler);
|
|
1739
|
+
get individual() {
|
|
1740
|
+
const ret = wasm.keyhive_individual(this.__wbg_ptr);
|
|
1937
1741
|
return ret;
|
|
1938
1742
|
}
|
|
1939
|
-
/**
|
|
1940
|
-
* @returns {IndividualId}
|
|
1941
|
-
*/
|
|
1942
|
-
get id() {
|
|
1943
|
-
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
1944
|
-
return IndividualId.__wrap(ret);
|
|
1945
|
-
}
|
|
1946
|
-
/**
|
|
1947
|
-
* @returns {IndividualId}
|
|
1948
|
-
*/
|
|
1949
|
-
get whoami() {
|
|
1950
|
-
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
1951
|
-
return IndividualId.__wrap(ret);
|
|
1952
|
-
}
|
|
1953
1743
|
/**
|
|
1954
1744
|
* @returns {string}
|
|
1955
1745
|
*/
|
|
@@ -1966,25 +1756,25 @@ export class Keyhive {
|
|
|
1966
1756
|
}
|
|
1967
1757
|
}
|
|
1968
1758
|
/**
|
|
1969
|
-
* @param {Peer[]}
|
|
1759
|
+
* @param {Peer[]} js_coparents
|
|
1970
1760
|
* @returns {Promise<Group>}
|
|
1971
1761
|
*/
|
|
1972
|
-
generateGroup(
|
|
1973
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1762
|
+
generateGroup(js_coparents) {
|
|
1763
|
+
const ptr0 = passArrayJsValueToWasm0(js_coparents, wasm.__wbindgen_malloc);
|
|
1974
1764
|
const len0 = WASM_VECTOR_LEN;
|
|
1975
1765
|
const ret = wasm.keyhive_generateGroup(this.__wbg_ptr, ptr0, len0);
|
|
1976
1766
|
return ret;
|
|
1977
1767
|
}
|
|
1978
1768
|
/**
|
|
1979
1769
|
* @param {Peer[]} coparents
|
|
1980
|
-
* @param {
|
|
1981
|
-
* @param {
|
|
1770
|
+
* @param {ChangeId} initial_content_ref_head
|
|
1771
|
+
* @param {ChangeId[]} more_initial_content_refs
|
|
1982
1772
|
* @returns {Promise<Document>}
|
|
1983
1773
|
*/
|
|
1984
1774
|
generateDocument(coparents, initial_content_ref_head, more_initial_content_refs) {
|
|
1985
1775
|
const ptr0 = passArrayJsValueToWasm0(coparents, wasm.__wbindgen_malloc);
|
|
1986
1776
|
const len0 = WASM_VECTOR_LEN;
|
|
1987
|
-
_assertClass(initial_content_ref_head,
|
|
1777
|
+
_assertClass(initial_content_ref_head, ChangeId);
|
|
1988
1778
|
var ptr1 = initial_content_ref_head.__destroy_into_raw();
|
|
1989
1779
|
const ptr2 = passArrayJsValueToWasm0(more_initial_content_refs, wasm.__wbindgen_malloc);
|
|
1990
1780
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -2003,17 +1793,17 @@ export class Keyhive {
|
|
|
2003
1793
|
}
|
|
2004
1794
|
/**
|
|
2005
1795
|
* @param {Document} doc
|
|
2006
|
-
* @param {
|
|
2007
|
-
* @param {
|
|
1796
|
+
* @param {ChangeId} content_ref
|
|
1797
|
+
* @param {ChangeId[]} js_pred_refs
|
|
2008
1798
|
* @param {Uint8Array} content
|
|
2009
1799
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2010
1800
|
*/
|
|
2011
|
-
tryEncrypt(doc, content_ref,
|
|
1801
|
+
tryEncrypt(doc, content_ref, js_pred_refs, content) {
|
|
2012
1802
|
_assertClass(doc, Document);
|
|
2013
1803
|
var ptr0 = doc.__destroy_into_raw();
|
|
2014
|
-
_assertClass(content_ref,
|
|
1804
|
+
_assertClass(content_ref, ChangeId);
|
|
2015
1805
|
var ptr1 = content_ref.__destroy_into_raw();
|
|
2016
|
-
const ptr2 = passArrayJsValueToWasm0(
|
|
1806
|
+
const ptr2 = passArrayJsValueToWasm0(js_pred_refs, wasm.__wbindgen_malloc);
|
|
2017
1807
|
const len2 = WASM_VECTOR_LEN;
|
|
2018
1808
|
const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
2019
1809
|
const len3 = WASM_VECTOR_LEN;
|
|
@@ -2022,40 +1812,31 @@ export class Keyhive {
|
|
|
2022
1812
|
}
|
|
2023
1813
|
/**
|
|
2024
1814
|
* @param {Document} doc
|
|
2025
|
-
* @param {
|
|
2026
|
-
* @param {
|
|
1815
|
+
* @param {ChangeId} content_ref
|
|
1816
|
+
* @param {ChangeId[]} pred_refs
|
|
2027
1817
|
* @param {Uint8Array} content
|
|
2028
1818
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2029
1819
|
*/
|
|
2030
1820
|
tryEncryptArchive(doc, content_ref, pred_refs, content) {
|
|
2031
1821
|
_assertClass(doc, Document);
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
const
|
|
2036
|
-
const
|
|
2037
|
-
const
|
|
2038
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2039
|
-
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
|
|
1822
|
+
_assertClass(content_ref, ChangeId);
|
|
1823
|
+
const ptr0 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
|
|
1824
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1825
|
+
const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
1826
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1827
|
+
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2040
1828
|
return ret;
|
|
2041
1829
|
}
|
|
2042
1830
|
/**
|
|
2043
1831
|
* @param {Document} doc
|
|
2044
1832
|
* @param {Encrypted} encrypted
|
|
2045
|
-
* @returns {Uint8Array}
|
|
1833
|
+
* @returns {Promise<Uint8Array>}
|
|
2046
1834
|
*/
|
|
2047
1835
|
tryDecrypt(doc, encrypted) {
|
|
2048
1836
|
_assertClass(doc, Document);
|
|
2049
|
-
var ptr0 = doc.__destroy_into_raw();
|
|
2050
1837
|
_assertClass(encrypted, Encrypted);
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
if (ret[3]) {
|
|
2054
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
2055
|
-
}
|
|
2056
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2057
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2058
|
-
return v3;
|
|
1838
|
+
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1839
|
+
return ret;
|
|
2059
1840
|
}
|
|
2060
1841
|
/**
|
|
2061
1842
|
* @param {Agent} to_add
|
|
@@ -2087,13 +1868,11 @@ export class Keyhive {
|
|
|
2087
1868
|
return ret;
|
|
2088
1869
|
}
|
|
2089
1870
|
/**
|
|
2090
|
-
* @returns {Summary[]}
|
|
1871
|
+
* @returns {Promise<Summary[]>}
|
|
2091
1872
|
*/
|
|
2092
1873
|
reachableDocs() {
|
|
2093
1874
|
const ret = wasm.keyhive_reachableDocs(this.__wbg_ptr);
|
|
2094
|
-
|
|
2095
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2096
|
-
return v1;
|
|
1875
|
+
return ret;
|
|
2097
1876
|
}
|
|
2098
1877
|
/**
|
|
2099
1878
|
* @param {Document} doc
|
|
@@ -2130,71 +1909,74 @@ export class Keyhive {
|
|
|
2130
1909
|
}
|
|
2131
1910
|
/**
|
|
2132
1911
|
* @param {ContactCard} contact_card
|
|
2133
|
-
* @returns {Individual}
|
|
1912
|
+
* @returns {Promise<Individual>}
|
|
2134
1913
|
*/
|
|
2135
1914
|
receiveContactCard(contact_card) {
|
|
2136
1915
|
_assertClass(contact_card, ContactCard);
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
if (ret[2]) {
|
|
2140
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2141
|
-
}
|
|
2142
|
-
return Individual.__wrap(ret[0]);
|
|
1916
|
+
const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
|
|
1917
|
+
return ret;
|
|
2143
1918
|
}
|
|
2144
1919
|
/**
|
|
2145
1920
|
* @param {Identifier} id
|
|
2146
|
-
* @returns {Agent | undefined}
|
|
1921
|
+
* @returns {Promise<Agent | undefined>}
|
|
2147
1922
|
*/
|
|
2148
1923
|
getAgent(id) {
|
|
2149
1924
|
_assertClass(id, Identifier);
|
|
2150
1925
|
const ret = wasm.keyhive_getAgent(this.__wbg_ptr, id.__wbg_ptr);
|
|
2151
|
-
return ret
|
|
1926
|
+
return ret;
|
|
2152
1927
|
}
|
|
2153
1928
|
/**
|
|
2154
|
-
* @param {
|
|
2155
|
-
* @returns {Group | undefined}
|
|
1929
|
+
* @param {GroupId} group_id
|
|
1930
|
+
* @returns {Promise<Group | undefined>}
|
|
2156
1931
|
*/
|
|
2157
|
-
getGroup(
|
|
2158
|
-
_assertClass(
|
|
2159
|
-
const ret = wasm.keyhive_getGroup(this.__wbg_ptr,
|
|
2160
|
-
return ret
|
|
1932
|
+
getGroup(group_id) {
|
|
1933
|
+
_assertClass(group_id, GroupId);
|
|
1934
|
+
const ret = wasm.keyhive_getGroup(this.__wbg_ptr, group_id.__wbg_ptr);
|
|
1935
|
+
return ret;
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* @param {DocumentId} doc_id
|
|
1939
|
+
* @returns {Promise<Document | undefined>}
|
|
1940
|
+
*/
|
|
1941
|
+
getDocument(doc_id) {
|
|
1942
|
+
_assertClass(doc_id, DocumentId);
|
|
1943
|
+
const ret = wasm.keyhive_getDocument(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1944
|
+
return ret;
|
|
2161
1945
|
}
|
|
2162
1946
|
/**
|
|
2163
1947
|
* @param {DocumentId} doc_id
|
|
2164
|
-
* @returns {
|
|
1948
|
+
* @returns {Promise<Membership[]>}
|
|
2165
1949
|
*/
|
|
2166
1950
|
docMemberCapabilities(doc_id) {
|
|
2167
1951
|
_assertClass(doc_id, DocumentId);
|
|
2168
1952
|
const ret = wasm.keyhive_docMemberCapabilities(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2169
|
-
|
|
2170
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2171
|
-
return v1;
|
|
1953
|
+
return ret;
|
|
2172
1954
|
}
|
|
2173
1955
|
/**
|
|
2174
1956
|
* @param {Identifier} id
|
|
2175
1957
|
* @param {DocumentId} doc_id
|
|
2176
|
-
* @returns {Access | undefined}
|
|
1958
|
+
* @returns {Promise<Access | undefined>}
|
|
2177
1959
|
*/
|
|
2178
1960
|
accessForDoc(id, doc_id) {
|
|
2179
1961
|
_assertClass(id, Identifier);
|
|
2180
1962
|
_assertClass(doc_id, DocumentId);
|
|
2181
1963
|
const ret = wasm.keyhive_accessForDoc(this.__wbg_ptr, id.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2182
|
-
return ret
|
|
1964
|
+
return ret;
|
|
2183
1965
|
}
|
|
2184
1966
|
/**
|
|
2185
|
-
* @returns {Archive}
|
|
1967
|
+
* @returns {Promise<Archive>}
|
|
2186
1968
|
*/
|
|
2187
1969
|
intoArchive() {
|
|
2188
1970
|
const ptr = this.__destroy_into_raw();
|
|
2189
1971
|
const ret = wasm.keyhive_intoArchive(ptr);
|
|
2190
|
-
return
|
|
1972
|
+
return ret;
|
|
2191
1973
|
}
|
|
2192
1974
|
/**
|
|
2193
|
-
* @returns {Archive}
|
|
1975
|
+
* @returns {Promise<Archive>}
|
|
2194
1976
|
*/
|
|
2195
1977
|
toArchive() {
|
|
2196
1978
|
const ret = wasm.keyhive_toArchive(this.__wbg_ptr);
|
|
2197
|
-
return
|
|
1979
|
+
return ret;
|
|
2198
1980
|
}
|
|
2199
1981
|
/**
|
|
2200
1982
|
* @param {Archive} archive
|
|
@@ -2205,6 +1987,21 @@ export class Keyhive {
|
|
|
2205
1987
|
const ret = wasm.keyhive_ingestArchive(this.__wbg_ptr, archive.__wbg_ptr);
|
|
2206
1988
|
return ret;
|
|
2207
1989
|
}
|
|
1990
|
+
/**
|
|
1991
|
+
* @param {Array<any>} events_bytes_array
|
|
1992
|
+
* @returns {Promise<Array<any>>}
|
|
1993
|
+
*/
|
|
1994
|
+
ingestEventsBytes(events_bytes_array) {
|
|
1995
|
+
const ret = wasm.keyhive_ingestEventsBytes(this.__wbg_ptr, events_bytes_array);
|
|
1996
|
+
return ret;
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* @returns {Promise<Stats>}
|
|
2000
|
+
*/
|
|
2001
|
+
stats() {
|
|
2002
|
+
const ret = wasm.keyhive_stats(this.__wbg_ptr);
|
|
2003
|
+
return ret;
|
|
2004
|
+
}
|
|
2208
2005
|
}
|
|
2209
2006
|
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2210
2007
|
|
|
@@ -2236,6 +2033,48 @@ export class Membered {
|
|
|
2236
2033
|
}
|
|
2237
2034
|
if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
|
|
2238
2035
|
|
|
2036
|
+
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2037
|
+
? { register: () => {}, unregister: () => {} }
|
|
2038
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
2039
|
+
|
|
2040
|
+
export class Membership {
|
|
2041
|
+
|
|
2042
|
+
static __wrap(ptr) {
|
|
2043
|
+
ptr = ptr >>> 0;
|
|
2044
|
+
const obj = Object.create(Membership.prototype);
|
|
2045
|
+
obj.__wbg_ptr = ptr;
|
|
2046
|
+
MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2047
|
+
return obj;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
__destroy_into_raw() {
|
|
2051
|
+
const ptr = this.__wbg_ptr;
|
|
2052
|
+
this.__wbg_ptr = 0;
|
|
2053
|
+
MembershipFinalization.unregister(this);
|
|
2054
|
+
return ptr;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
free() {
|
|
2058
|
+
const ptr = this.__destroy_into_raw();
|
|
2059
|
+
wasm.__wbg_membership_free(ptr, 0);
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* @returns {Agent}
|
|
2063
|
+
*/
|
|
2064
|
+
get who() {
|
|
2065
|
+
const ret = wasm.membership_who(this.__wbg_ptr);
|
|
2066
|
+
return Agent.__wrap(ret);
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* @returns {Access}
|
|
2070
|
+
*/
|
|
2071
|
+
get can() {
|
|
2072
|
+
const ret = wasm.membership_can(this.__wbg_ptr);
|
|
2073
|
+
return Access.__wrap(ret);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
|
|
2077
|
+
|
|
2239
2078
|
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2240
2079
|
? { register: () => {}, unregister: () => {} }
|
|
2241
2080
|
: new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
|
|
@@ -2250,13 +2089,6 @@ export class Peer {
|
|
|
2250
2089
|
return obj;
|
|
2251
2090
|
}
|
|
2252
2091
|
|
|
2253
|
-
static __unwrap(jsValue) {
|
|
2254
|
-
if (!(jsValue instanceof Peer)) {
|
|
2255
|
-
return 0;
|
|
2256
|
-
}
|
|
2257
|
-
return jsValue.__destroy_into_raw();
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
2092
|
__destroy_into_raw() {
|
|
2261
2093
|
const ptr = this.__wbg_ptr;
|
|
2262
2094
|
this.__wbg_ptr = 0;
|
|
@@ -2268,6 +2100,13 @@ export class Peer {
|
|
|
2268
2100
|
const ptr = this.__destroy_into_raw();
|
|
2269
2101
|
wasm.__wbg_peer_free(ptr, 0);
|
|
2270
2102
|
}
|
|
2103
|
+
/**
|
|
2104
|
+
* @returns {Identifier}
|
|
2105
|
+
*/
|
|
2106
|
+
get id() {
|
|
2107
|
+
const ret = wasm.peer_id(this.__wbg_ptr);
|
|
2108
|
+
return Identifier.__wrap(ret);
|
|
2109
|
+
}
|
|
2271
2110
|
/**
|
|
2272
2111
|
* @returns {string}
|
|
2273
2112
|
*/
|
|
@@ -2304,28 +2143,15 @@ export class Peer {
|
|
|
2304
2143
|
const ret = wasm.peer_isDocument(this.__wbg_ptr);
|
|
2305
2144
|
return ret !== 0;
|
|
2306
2145
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
export class RemoveCiphertextError {
|
|
2315
|
-
|
|
2316
|
-
__destroy_into_raw() {
|
|
2317
|
-
const ptr = this.__wbg_ptr;
|
|
2318
|
-
this.__wbg_ptr = 0;
|
|
2319
|
-
RemoveCiphertextErrorFinalization.unregister(this);
|
|
2320
|
-
return ptr;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
free() {
|
|
2324
|
-
const ptr = this.__destroy_into_raw();
|
|
2325
|
-
wasm.__wbg_removeciphertexterror_free(ptr, 0);
|
|
2146
|
+
/**
|
|
2147
|
+
* @returns {Peer}
|
|
2148
|
+
*/
|
|
2149
|
+
__wasm_refgen_toPeer() {
|
|
2150
|
+
const ret = wasm.peer___wasm_refgen_toPeer(this.__wbg_ptr);
|
|
2151
|
+
return Peer.__wrap(ret);
|
|
2326
2152
|
}
|
|
2327
2153
|
}
|
|
2328
|
-
if (Symbol.dispose)
|
|
2154
|
+
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2329
2155
|
|
|
2330
2156
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2331
2157
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2383,85 +2209,6 @@ export class Revocation {
|
|
|
2383
2209
|
}
|
|
2384
2210
|
if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
|
|
2385
2211
|
|
|
2386
|
-
const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2387
|
-
? { register: () => {}, unregister: () => {} }
|
|
2388
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_revokemembererror_free(ptr >>> 0, 1));
|
|
2389
|
-
|
|
2390
|
-
export class RevokeMemberError {
|
|
2391
|
-
|
|
2392
|
-
static __wrap(ptr) {
|
|
2393
|
-
ptr = ptr >>> 0;
|
|
2394
|
-
const obj = Object.create(RevokeMemberError.prototype);
|
|
2395
|
-
obj.__wbg_ptr = ptr;
|
|
2396
|
-
RevokeMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2397
|
-
return obj;
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
__destroy_into_raw() {
|
|
2401
|
-
const ptr = this.__wbg_ptr;
|
|
2402
|
-
this.__wbg_ptr = 0;
|
|
2403
|
-
RevokeMemberErrorFinalization.unregister(this);
|
|
2404
|
-
return ptr;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
free() {
|
|
2408
|
-
const ptr = this.__destroy_into_raw();
|
|
2409
|
-
wasm.__wbg_revokemembererror_free(ptr, 0);
|
|
2410
|
-
}
|
|
2411
|
-
/**
|
|
2412
|
-
* @returns {string}
|
|
2413
|
-
*/
|
|
2414
|
-
get message() {
|
|
2415
|
-
let deferred1_0;
|
|
2416
|
-
let deferred1_1;
|
|
2417
|
-
try {
|
|
2418
|
-
const ret = wasm.revokemembererror_message(this.__wbg_ptr);
|
|
2419
|
-
deferred1_0 = ret[0];
|
|
2420
|
-
deferred1_1 = ret[1];
|
|
2421
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2422
|
-
} finally {
|
|
2423
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
|
|
2428
|
-
|
|
2429
|
-
const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2430
|
-
? { register: () => {}, unregister: () => {} }
|
|
2431
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_serializationerror_free(ptr >>> 0, 1));
|
|
2432
|
-
|
|
2433
|
-
export class SerializationError {
|
|
2434
|
-
|
|
2435
|
-
static __wrap(ptr) {
|
|
2436
|
-
ptr = ptr >>> 0;
|
|
2437
|
-
const obj = Object.create(SerializationError.prototype);
|
|
2438
|
-
obj.__wbg_ptr = ptr;
|
|
2439
|
-
SerializationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2440
|
-
return obj;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
__destroy_into_raw() {
|
|
2444
|
-
const ptr = this.__wbg_ptr;
|
|
2445
|
-
this.__wbg_ptr = 0;
|
|
2446
|
-
SerializationErrorFinalization.unregister(this);
|
|
2447
|
-
return ptr;
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
free() {
|
|
2451
|
-
const ptr = this.__destroy_into_raw();
|
|
2452
|
-
wasm.__wbg_serializationerror_free(ptr, 0);
|
|
2453
|
-
}
|
|
2454
|
-
/**
|
|
2455
|
-
* @returns {any}
|
|
2456
|
-
*/
|
|
2457
|
-
toError() {
|
|
2458
|
-
const ptr = this.__destroy_into_raw();
|
|
2459
|
-
const ret = wasm.serializationerror_toError(ptr);
|
|
2460
|
-
return ret;
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
|
|
2464
|
-
|
|
2465
2212
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2466
2213
|
? { register: () => {}, unregister: () => {} }
|
|
2467
2214
|
: new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
|
|
@@ -2523,13 +2270,19 @@ export class Signed {
|
|
|
2523
2270
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2524
2271
|
const len0 = WASM_VECTOR_LEN;
|
|
2525
2272
|
const ret = wasm.signed_fromBytes(ptr0, len0);
|
|
2526
|
-
|
|
2273
|
+
if (ret[2]) {
|
|
2274
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2275
|
+
}
|
|
2276
|
+
return Signed.__wrap(ret[0]);
|
|
2527
2277
|
}
|
|
2528
2278
|
/**
|
|
2529
2279
|
* @returns {Uint8Array}
|
|
2530
2280
|
*/
|
|
2531
2281
|
toBytes() {
|
|
2532
2282
|
const ret = wasm.signed_toBytes(this.__wbg_ptr);
|
|
2283
|
+
if (ret[3]) {
|
|
2284
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2285
|
+
}
|
|
2533
2286
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2534
2287
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2535
2288
|
return v1;
|
|
@@ -2874,98 +2627,91 @@ export class Signer {
|
|
|
2874
2627
|
}
|
|
2875
2628
|
/**
|
|
2876
2629
|
* @returns {Signer}
|
|
2877
|
-
*/
|
|
2878
|
-
clone() {
|
|
2879
|
-
const ret = wasm.signer_clone(this.__wbg_ptr);
|
|
2880
|
-
return Signer.__wrap(ret);
|
|
2881
|
-
}
|
|
2882
|
-
}
|
|
2883
|
-
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2884
|
-
|
|
2885
|
-
const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2886
|
-
? { register: () => {}, unregister: () => {} }
|
|
2887
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_signingerror_free(ptr >>> 0, 1));
|
|
2888
|
-
|
|
2889
|
-
export class SigningError {
|
|
2890
|
-
|
|
2891
|
-
static __wrap(ptr) {
|
|
2892
|
-
ptr = ptr >>> 0;
|
|
2893
|
-
const obj = Object.create(SigningError.prototype);
|
|
2894
|
-
obj.__wbg_ptr = ptr;
|
|
2895
|
-
SigningErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2896
|
-
return obj;
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
__destroy_into_raw() {
|
|
2900
|
-
const ptr = this.__wbg_ptr;
|
|
2901
|
-
this.__wbg_ptr = 0;
|
|
2902
|
-
SigningErrorFinalization.unregister(this);
|
|
2903
|
-
return ptr;
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
free() {
|
|
2907
|
-
const ptr = this.__destroy_into_raw();
|
|
2908
|
-
wasm.__wbg_signingerror_free(ptr, 0);
|
|
2909
|
-
}
|
|
2910
|
-
/**
|
|
2911
|
-
* @returns {string}
|
|
2912
|
-
*/
|
|
2913
|
-
message() {
|
|
2914
|
-
let deferred1_0;
|
|
2915
|
-
let deferred1_1;
|
|
2916
|
-
try {
|
|
2917
|
-
const ret = wasm.signingerror_message(this.__wbg_ptr);
|
|
2918
|
-
deferred1_0 = ret[0];
|
|
2919
|
-
deferred1_1 = ret[1];
|
|
2920
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2921
|
-
} finally {
|
|
2922
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2923
|
-
}
|
|
2630
|
+
*/
|
|
2631
|
+
clone() {
|
|
2632
|
+
const ret = wasm.signer_clone(this.__wbg_ptr);
|
|
2633
|
+
return Signer.__wrap(ret);
|
|
2924
2634
|
}
|
|
2925
2635
|
}
|
|
2926
|
-
if (Symbol.dispose)
|
|
2636
|
+
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2927
2637
|
|
|
2928
|
-
const
|
|
2638
|
+
const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2929
2639
|
? { register: () => {}, unregister: () => {} }
|
|
2930
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2640
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
|
|
2931
2641
|
|
|
2932
|
-
export class
|
|
2642
|
+
export class Stats {
|
|
2933
2643
|
|
|
2934
2644
|
static __wrap(ptr) {
|
|
2935
2645
|
ptr = ptr >>> 0;
|
|
2936
|
-
const obj = Object.create(
|
|
2646
|
+
const obj = Object.create(Stats.prototype);
|
|
2937
2647
|
obj.__wbg_ptr = ptr;
|
|
2938
|
-
|
|
2648
|
+
StatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2939
2649
|
return obj;
|
|
2940
2650
|
}
|
|
2941
2651
|
|
|
2942
2652
|
__destroy_into_raw() {
|
|
2943
2653
|
const ptr = this.__wbg_ptr;
|
|
2944
2654
|
this.__wbg_ptr = 0;
|
|
2945
|
-
|
|
2655
|
+
StatsFinalization.unregister(this);
|
|
2946
2656
|
return ptr;
|
|
2947
2657
|
}
|
|
2948
2658
|
|
|
2949
2659
|
free() {
|
|
2950
2660
|
const ptr = this.__destroy_into_raw();
|
|
2951
|
-
wasm.
|
|
2661
|
+
wasm.__wbg_stats_free(ptr, 0);
|
|
2952
2662
|
}
|
|
2953
2663
|
/**
|
|
2954
|
-
* @returns {
|
|
2664
|
+
* @returns {bigint}
|
|
2955
2665
|
*/
|
|
2956
|
-
get
|
|
2957
|
-
const ret = wasm.
|
|
2958
|
-
return
|
|
2666
|
+
get individuals() {
|
|
2667
|
+
const ret = wasm.stats_individuals(this.__wbg_ptr);
|
|
2668
|
+
return BigInt.asUintN(64, ret);
|
|
2959
2669
|
}
|
|
2960
2670
|
/**
|
|
2961
|
-
* @returns {
|
|
2671
|
+
* @returns {bigint}
|
|
2962
2672
|
*/
|
|
2963
|
-
get
|
|
2964
|
-
const ret = wasm.
|
|
2965
|
-
return
|
|
2673
|
+
get groups() {
|
|
2674
|
+
const ret = wasm.stats_groups(this.__wbg_ptr);
|
|
2675
|
+
return BigInt.asUintN(64, ret);
|
|
2676
|
+
}
|
|
2677
|
+
/**
|
|
2678
|
+
* @returns {bigint}
|
|
2679
|
+
*/
|
|
2680
|
+
get docs() {
|
|
2681
|
+
const ret = wasm.stats_docs(this.__wbg_ptr);
|
|
2682
|
+
return BigInt.asUintN(64, ret);
|
|
2683
|
+
}
|
|
2684
|
+
/**
|
|
2685
|
+
* @returns {bigint}
|
|
2686
|
+
*/
|
|
2687
|
+
get delegations() {
|
|
2688
|
+
const ret = wasm.stats_delegations(this.__wbg_ptr);
|
|
2689
|
+
return BigInt.asUintN(64, ret);
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* @returns {bigint}
|
|
2693
|
+
*/
|
|
2694
|
+
get revocations() {
|
|
2695
|
+
const ret = wasm.stats_revocations(this.__wbg_ptr);
|
|
2696
|
+
return BigInt.asUintN(64, ret);
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* @returns {string}
|
|
2700
|
+
*/
|
|
2701
|
+
toString() {
|
|
2702
|
+
let deferred1_0;
|
|
2703
|
+
let deferred1_1;
|
|
2704
|
+
try {
|
|
2705
|
+
const ret = wasm.stats_toString(this.__wbg_ptr);
|
|
2706
|
+
deferred1_0 = ret[0];
|
|
2707
|
+
deferred1_1 = ret[1];
|
|
2708
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2709
|
+
} finally {
|
|
2710
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2711
|
+
}
|
|
2966
2712
|
}
|
|
2967
2713
|
}
|
|
2968
|
-
if (Symbol.dispose)
|
|
2714
|
+
if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
|
|
2969
2715
|
|
|
2970
2716
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2971
2717
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3009,49 +2755,23 @@ export class Summary {
|
|
|
3009
2755
|
}
|
|
3010
2756
|
if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
3011
2757
|
|
|
3012
|
-
const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3013
|
-
? { register: () => {}, unregister: () => {} }
|
|
3014
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_tryfromarchiveerror_free(ptr >>> 0, 1));
|
|
3015
|
-
|
|
3016
|
-
export class TryFromArchiveError {
|
|
3017
|
-
|
|
3018
|
-
static __wrap(ptr) {
|
|
3019
|
-
ptr = ptr >>> 0;
|
|
3020
|
-
const obj = Object.create(TryFromArchiveError.prototype);
|
|
3021
|
-
obj.__wbg_ptr = ptr;
|
|
3022
|
-
TryFromArchiveErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3023
|
-
return obj;
|
|
3024
|
-
}
|
|
3025
|
-
|
|
3026
|
-
__destroy_into_raw() {
|
|
3027
|
-
const ptr = this.__wbg_ptr;
|
|
3028
|
-
this.__wbg_ptr = 0;
|
|
3029
|
-
TryFromArchiveErrorFinalization.unregister(this);
|
|
3030
|
-
return ptr;
|
|
3031
|
-
}
|
|
3032
|
-
|
|
3033
|
-
free() {
|
|
3034
|
-
const ptr = this.__destroy_into_raw();
|
|
3035
|
-
wasm.__wbg_tryfromarchiveerror_free(ptr, 0);
|
|
3036
|
-
}
|
|
3037
|
-
/**
|
|
3038
|
-
* @returns {any}
|
|
3039
|
-
*/
|
|
3040
|
-
toError() {
|
|
3041
|
-
const ptr = this.__destroy_into_raw();
|
|
3042
|
-
const ret = wasm.tryfromarchiveerror_toError(ptr);
|
|
3043
|
-
return ret;
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
|
|
3047
|
-
|
|
3048
2758
|
export function __wbg_Error_e17e777aac105295(arg0, arg1) {
|
|
3049
2759
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
3050
2760
|
return ret;
|
|
3051
2761
|
};
|
|
3052
2762
|
|
|
3053
|
-
export function
|
|
3054
|
-
const ret =
|
|
2763
|
+
export function __wbg_access_new(arg0) {
|
|
2764
|
+
const ret = Access.__wrap(arg0);
|
|
2765
|
+
return ret;
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
export function __wbg_agent_new(arg0) {
|
|
2769
|
+
const ret = Agent.__wrap(arg0);
|
|
2770
|
+
return ret;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
export function __wbg_archive_new(arg0) {
|
|
2774
|
+
const ret = Archive.__wrap(arg0);
|
|
3055
2775
|
return ret;
|
|
3056
2776
|
};
|
|
3057
2777
|
|
|
@@ -3080,13 +2800,13 @@ export function __wbg_capability_new(arg0) {
|
|
|
3080
2800
|
return ret;
|
|
3081
2801
|
};
|
|
3082
2802
|
|
|
3083
|
-
export function
|
|
3084
|
-
const ret =
|
|
2803
|
+
export function __wbg_changeid_new(arg0) {
|
|
2804
|
+
const ret = ChangeId.__wrap(arg0);
|
|
3085
2805
|
return ret;
|
|
3086
2806
|
};
|
|
3087
2807
|
|
|
3088
|
-
export function
|
|
3089
|
-
const ret =
|
|
2808
|
+
export function __wbg_changeid_unwrap(arg0) {
|
|
2809
|
+
const ret = ChangeId.__unwrap(arg0);
|
|
3090
2810
|
return ret;
|
|
3091
2811
|
};
|
|
3092
2812
|
|
|
@@ -3100,10 +2820,29 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
|
3100
2820
|
return ret;
|
|
3101
2821
|
};
|
|
3102
2822
|
|
|
3103
|
-
export function
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
2823
|
+
export function __wbg_debug_68afdd09483bcd1b(arg0, arg1) {
|
|
2824
|
+
let deferred0_0;
|
|
2825
|
+
let deferred0_1;
|
|
2826
|
+
try {
|
|
2827
|
+
deferred0_0 = arg0;
|
|
2828
|
+
deferred0_1 = arg1;
|
|
2829
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2830
|
+
} finally {
|
|
2831
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2832
|
+
}
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
export function __wbg_debug_a4fe41d1a79aaba9(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2836
|
+
let deferred0_0;
|
|
2837
|
+
let deferred0_1;
|
|
2838
|
+
try {
|
|
2839
|
+
deferred0_0 = arg0;
|
|
2840
|
+
deferred0_1 = arg1;
|
|
2841
|
+
console.debug(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2842
|
+
} finally {
|
|
2843
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2844
|
+
}
|
|
2845
|
+
};
|
|
3107
2846
|
|
|
3108
2847
|
export function __wbg_doccontentrefs_new(arg0) {
|
|
3109
2848
|
const ret = DocContentRefs.__wrap(arg0);
|
|
@@ -3115,11 +2854,6 @@ export function __wbg_document_new(arg0) {
|
|
|
3115
2854
|
return ret;
|
|
3116
2855
|
};
|
|
3117
2856
|
|
|
3118
|
-
export function __wbg_document_unwrap(arg0) {
|
|
3119
|
-
const ret = Document.__unwrap(arg0);
|
|
3120
|
-
return ret;
|
|
3121
|
-
};
|
|
3122
|
-
|
|
3123
2857
|
export function __wbg_encryptedcontentwithupdate_new(arg0) {
|
|
3124
2858
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3125
2859
|
return ret;
|
|
@@ -3137,6 +2871,30 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
3137
2871
|
}
|
|
3138
2872
|
};
|
|
3139
2873
|
|
|
2874
|
+
export function __wbg_error_be2b0d69ec6dd379(arg0, arg1) {
|
|
2875
|
+
let deferred0_0;
|
|
2876
|
+
let deferred0_1;
|
|
2877
|
+
try {
|
|
2878
|
+
deferred0_0 = arg0;
|
|
2879
|
+
deferred0_1 = arg1;
|
|
2880
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
2881
|
+
} finally {
|
|
2882
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2883
|
+
}
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
export function __wbg_error_fa36d085107c9dd5(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2887
|
+
let deferred0_0;
|
|
2888
|
+
let deferred0_1;
|
|
2889
|
+
try {
|
|
2890
|
+
deferred0_0 = arg0;
|
|
2891
|
+
deferred0_1 = arg1;
|
|
2892
|
+
console.error(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2893
|
+
} finally {
|
|
2894
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2895
|
+
}
|
|
2896
|
+
};
|
|
2897
|
+
|
|
3140
2898
|
export function __wbg_event_new(arg0) {
|
|
3141
2899
|
const ret = Event.__wrap(arg0);
|
|
3142
2900
|
return ret;
|
|
@@ -3152,11 +2910,6 @@ export function __wbg_generateKey_b8902ccb0e50ff4e() { return handleError(functi
|
|
|
3152
2910
|
return ret;
|
|
3153
2911
|
}, arguments) };
|
|
3154
2912
|
|
|
3155
|
-
export function __wbg_generatedocerror_new(arg0) {
|
|
3156
|
-
const ret = GenerateDocError.__wrap(arg0);
|
|
3157
|
-
return ret;
|
|
3158
|
-
};
|
|
3159
|
-
|
|
3160
2913
|
export function __wbg_generatewebcryptoerror_new(arg0) {
|
|
3161
2914
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3162
2915
|
return ret;
|
|
@@ -3166,6 +2919,11 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
|
|
|
3166
2919
|
arg0.getRandomValues(arg1);
|
|
3167
2920
|
}, arguments) };
|
|
3168
2921
|
|
|
2922
|
+
export function __wbg_get_0da715ceaecea5c8(arg0, arg1) {
|
|
2923
|
+
const ret = arg0[arg1 >>> 0];
|
|
2924
|
+
return ret;
|
|
2925
|
+
};
|
|
2926
|
+
|
|
3169
2927
|
export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
|
|
3170
2928
|
const ret = Reflect.get(arg0, arg1);
|
|
3171
2929
|
return ret;
|
|
@@ -3186,6 +2944,11 @@ export function __wbg_group_new(arg0) {
|
|
|
3186
2944
|
return ret;
|
|
3187
2945
|
};
|
|
3188
2946
|
|
|
2947
|
+
export function __wbg_individual_new(arg0) {
|
|
2948
|
+
const ret = Individual.__wrap(arg0);
|
|
2949
|
+
return ret;
|
|
2950
|
+
};
|
|
2951
|
+
|
|
3189
2952
|
export function __wbg_instanceof_Crypto_33ac2d91cca59233(arg0) {
|
|
3190
2953
|
let result;
|
|
3191
2954
|
try {
|
|
@@ -3197,44 +2960,68 @@ export function __wbg_instanceof_Crypto_33ac2d91cca59233(arg0) {
|
|
|
3197
2960
|
return ret;
|
|
3198
2961
|
};
|
|
3199
2962
|
|
|
3200
|
-
export function
|
|
3201
|
-
|
|
3202
|
-
try {
|
|
3203
|
-
result = arg0 instanceof Window;
|
|
3204
|
-
} catch (_) {
|
|
3205
|
-
result = false;
|
|
3206
|
-
}
|
|
3207
|
-
const ret = result;
|
|
2963
|
+
export function __wbg_keyhive_new(arg0) {
|
|
2964
|
+
const ret = Keyhive.__wrap(arg0);
|
|
3208
2965
|
return ret;
|
|
3209
2966
|
};
|
|
3210
2967
|
|
|
3211
|
-
export function
|
|
3212
|
-
const ret =
|
|
2968
|
+
export function __wbg_length_186546c51cd61acd(arg0) {
|
|
2969
|
+
const ret = arg0.length;
|
|
3213
2970
|
return ret;
|
|
3214
2971
|
};
|
|
3215
2972
|
|
|
3216
|
-
export function
|
|
3217
|
-
const ret =
|
|
2973
|
+
export function __wbg_length_6bb7e81f9d7713e4(arg0) {
|
|
2974
|
+
const ret = arg0.length;
|
|
3218
2975
|
return ret;
|
|
3219
2976
|
};
|
|
3220
2977
|
|
|
3221
|
-
export function
|
|
3222
|
-
|
|
3223
|
-
|
|
2978
|
+
export function __wbg_log_98ea330cbdc64a56(arg0, arg1) {
|
|
2979
|
+
let deferred0_0;
|
|
2980
|
+
let deferred0_1;
|
|
2981
|
+
try {
|
|
2982
|
+
deferred0_0 = arg0;
|
|
2983
|
+
deferred0_1 = arg1;
|
|
2984
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
2985
|
+
} finally {
|
|
2986
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2987
|
+
}
|
|
3224
2988
|
};
|
|
3225
2989
|
|
|
3226
|
-
export function
|
|
3227
|
-
|
|
3228
|
-
|
|
2990
|
+
export function __wbg_log_f996de40931ab7d1(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2991
|
+
let deferred0_0;
|
|
2992
|
+
let deferred0_1;
|
|
2993
|
+
try {
|
|
2994
|
+
deferred0_0 = arg0;
|
|
2995
|
+
deferred0_1 = arg1;
|
|
2996
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2997
|
+
} finally {
|
|
2998
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2999
|
+
}
|
|
3229
3000
|
};
|
|
3230
3001
|
|
|
3231
|
-
export function
|
|
3232
|
-
|
|
3233
|
-
return ret;
|
|
3002
|
+
export function __wbg_mark_49688daf5a319979(arg0, arg1) {
|
|
3003
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
3234
3004
|
};
|
|
3235
3005
|
|
|
3236
|
-
export function
|
|
3237
|
-
|
|
3006
|
+
export function __wbg_measure_52555d98d3c0f41a() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3007
|
+
let deferred0_0;
|
|
3008
|
+
let deferred0_1;
|
|
3009
|
+
let deferred1_0;
|
|
3010
|
+
let deferred1_1;
|
|
3011
|
+
try {
|
|
3012
|
+
deferred0_0 = arg0;
|
|
3013
|
+
deferred0_1 = arg1;
|
|
3014
|
+
deferred1_0 = arg2;
|
|
3015
|
+
deferred1_1 = arg3;
|
|
3016
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
3017
|
+
} finally {
|
|
3018
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3019
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3020
|
+
}
|
|
3021
|
+
}, arguments) };
|
|
3022
|
+
|
|
3023
|
+
export function __wbg_membership_new(arg0) {
|
|
3024
|
+
const ret = Membership.__wrap(arg0);
|
|
3238
3025
|
return ret;
|
|
3239
3026
|
};
|
|
3240
3027
|
|
|
@@ -3243,6 +3030,11 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
|
3243
3030
|
return ret;
|
|
3244
3031
|
};
|
|
3245
3032
|
|
|
3033
|
+
export function __wbg_new_1f3a344cf3123716() {
|
|
3034
|
+
const ret = new Array();
|
|
3035
|
+
return ret;
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3246
3038
|
export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
|
|
3247
3039
|
try {
|
|
3248
3040
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -3250,7 +3042,7 @@ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
|
|
|
3250
3042
|
const a = state0.a;
|
|
3251
3043
|
state0.a = 0;
|
|
3252
3044
|
try {
|
|
3253
|
-
return
|
|
3045
|
+
return __wbg_adapter_315(a, state0.b, arg0, arg1);
|
|
3254
3046
|
} finally {
|
|
3255
3047
|
state0.a = a;
|
|
3256
3048
|
}
|
|
@@ -3272,6 +3064,16 @@ export function __wbg_new_8a6f238a6ece86ea() {
|
|
|
3272
3064
|
return ret;
|
|
3273
3065
|
};
|
|
3274
3066
|
|
|
3067
|
+
export function __wbg_new_da9dc54c5db29dfa(arg0, arg1) {
|
|
3068
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3069
|
+
return ret;
|
|
3070
|
+
};
|
|
3071
|
+
|
|
3072
|
+
export function __wbg_newfromslice_074c56947bd43469(arg0, arg1) {
|
|
3073
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3074
|
+
return ret;
|
|
3075
|
+
};
|
|
3076
|
+
|
|
3275
3077
|
export function __wbg_newnoargs_254190557c45b4ec(arg0, arg1) {
|
|
3276
3078
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3277
3079
|
return ret;
|
|
@@ -3287,11 +3089,6 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
|
3287
3089
|
return ret;
|
|
3288
3090
|
};
|
|
3289
3091
|
|
|
3290
|
-
export function __wbg_peer_unwrap(arg0) {
|
|
3291
|
-
const ret = Peer.__unwrap(arg0);
|
|
3292
|
-
return ret;
|
|
3293
|
-
};
|
|
3294
|
-
|
|
3295
3092
|
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
3296
3093
|
const ret = arg0.process;
|
|
3297
3094
|
return ret;
|
|
@@ -3301,6 +3098,11 @@ export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
|
|
|
3301
3098
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3302
3099
|
};
|
|
3303
3100
|
|
|
3101
|
+
export function __wbg_push_330b2eb93e4e1212(arg0, arg1) {
|
|
3102
|
+
const ret = arg0.push(arg1);
|
|
3103
|
+
return ret;
|
|
3104
|
+
};
|
|
3105
|
+
|
|
3304
3106
|
export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
|
|
3305
3107
|
queueMicrotask(arg0);
|
|
3306
3108
|
};
|
|
@@ -3324,14 +3126,8 @@ export function __wbg_resolve_4055c623acdd6a1b(arg0) {
|
|
|
3324
3126
|
return ret;
|
|
3325
3127
|
};
|
|
3326
3128
|
|
|
3327
|
-
export function
|
|
3328
|
-
|
|
3329
|
-
return ret;
|
|
3330
|
-
};
|
|
3331
|
-
|
|
3332
|
-
export function __wbg_serializationerror_new(arg0) {
|
|
3333
|
-
const ret = SerializationError.__wrap(arg0);
|
|
3334
|
-
return ret;
|
|
3129
|
+
export function __wbg_setname_832b43d4602cb930(arg0, arg1, arg2) {
|
|
3130
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3335
3131
|
};
|
|
3336
3132
|
|
|
3337
3133
|
export function __wbg_sharekey_new(arg0) {
|
|
@@ -3364,16 +3160,6 @@ export function __wbg_signer_new(arg0) {
|
|
|
3364
3160
|
return ret;
|
|
3365
3161
|
};
|
|
3366
3162
|
|
|
3367
|
-
export function __wbg_signingerror_new(arg0) {
|
|
3368
|
-
const ret = SigningError.__wrap(arg0);
|
|
3369
|
-
return ret;
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
export function __wbg_simplecapability_new(arg0) {
|
|
3373
|
-
const ret = SimpleCapability.__wrap(arg0);
|
|
3374
|
-
return ret;
|
|
3375
|
-
};
|
|
3376
|
-
|
|
3377
3163
|
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
3378
3164
|
const ret = arg1.stack;
|
|
3379
3165
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3402,6 +3188,11 @@ export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
|
|
|
3402
3188
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3403
3189
|
};
|
|
3404
3190
|
|
|
3191
|
+
export function __wbg_stats_new(arg0) {
|
|
3192
|
+
const ret = Stats.__wrap(arg0);
|
|
3193
|
+
return ret;
|
|
3194
|
+
};
|
|
3195
|
+
|
|
3405
3196
|
export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
|
|
3406
3197
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3407
3198
|
return ret;
|
|
@@ -3427,16 +3218,56 @@ export function __wbg_then_e22500defe16819f(arg0, arg1) {
|
|
|
3427
3218
|
return ret;
|
|
3428
3219
|
};
|
|
3429
3220
|
|
|
3430
|
-
export function __wbg_tryfromarchiveerror_new(arg0) {
|
|
3431
|
-
const ret = TryFromArchiveError.__wrap(arg0);
|
|
3432
|
-
return ret;
|
|
3433
|
-
};
|
|
3434
|
-
|
|
3435
3221
|
export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
3436
3222
|
const ret = arg0.versions;
|
|
3437
3223
|
return ret;
|
|
3438
3224
|
};
|
|
3439
3225
|
|
|
3226
|
+
export function __wbg_warn_c6311e9cb983aa2a(arg0, arg1) {
|
|
3227
|
+
let deferred0_0;
|
|
3228
|
+
let deferred0_1;
|
|
3229
|
+
try {
|
|
3230
|
+
deferred0_0 = arg0;
|
|
3231
|
+
deferred0_1 = arg1;
|
|
3232
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
3233
|
+
} finally {
|
|
3234
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3235
|
+
}
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
export function __wbg_warn_de3a09d072c895e6(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3239
|
+
let deferred0_0;
|
|
3240
|
+
let deferred0_1;
|
|
3241
|
+
try {
|
|
3242
|
+
deferred0_0 = arg0;
|
|
3243
|
+
deferred0_1 = arg1;
|
|
3244
|
+
console.warn(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3245
|
+
} finally {
|
|
3246
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3247
|
+
}
|
|
3248
|
+
};
|
|
3249
|
+
|
|
3250
|
+
export function __wbg_wasmrefgentoChangeId_31238620806c0c3d(arg0) {
|
|
3251
|
+
const ret = arg0.__wasm_refgen_toChangeId();
|
|
3252
|
+
_assertClass(ret, ChangeId);
|
|
3253
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
3254
|
+
return ptr1;
|
|
3255
|
+
};
|
|
3256
|
+
|
|
3257
|
+
export function __wbg_wasmrefgentoDocument_d755d52439ab43bc(arg0) {
|
|
3258
|
+
const ret = arg0.__wasm_refgen_toDocument();
|
|
3259
|
+
_assertClass(ret, Document);
|
|
3260
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
3261
|
+
return ptr1;
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
export function __wbg_wasmrefgentoPeer_e7758239790d7eb6(arg0) {
|
|
3265
|
+
const ret = arg0.__wasm_refgen_toPeer();
|
|
3266
|
+
_assertClass(ret, Peer);
|
|
3267
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
3268
|
+
return ptr1;
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3440
3271
|
export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
|
|
3441
3272
|
const obj = arg0.original;
|
|
3442
3273
|
if (obj.cnt-- == 1) {
|
|
@@ -3480,12 +3311,6 @@ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
|
|
|
3480
3311
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3481
3312
|
};
|
|
3482
3313
|
|
|
3483
|
-
export function __wbindgen_cast_133053e9d0cd85aa(arg0, arg1) {
|
|
3484
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3485
|
-
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_14);
|
|
3486
|
-
return ret;
|
|
3487
|
-
};
|
|
3488
|
-
|
|
3489
3314
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
3490
3315
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3491
3316
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -3500,6 +3325,46 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
|
|
|
3500
3325
|
return ret;
|
|
3501
3326
|
};
|
|
3502
3327
|
|
|
3328
|
+
export function __wbindgen_cast_6300122139088863(arg0, arg1) {
|
|
3329
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3330
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3331
|
+
// Cast intrinsic for `Vector(NamedExternref("ChangeId")) -> Externref`.
|
|
3332
|
+
const ret = v0;
|
|
3333
|
+
return ret;
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
export function __wbindgen_cast_6d311b4990fb968e(arg0, arg1) {
|
|
3337
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3338
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3339
|
+
// Cast intrinsic for `Vector(NamedExternref("Summary")) -> Externref`.
|
|
3340
|
+
const ret = v0;
|
|
3341
|
+
return ret;
|
|
3342
|
+
};
|
|
3343
|
+
|
|
3344
|
+
export function __wbindgen_cast_6e33e4871eebdb43(arg0, arg1) {
|
|
3345
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3346
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3347
|
+
// Cast intrinsic for `Vector(NamedExternref("Membership")) -> Externref`.
|
|
3348
|
+
const ret = v0;
|
|
3349
|
+
return ret;
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3352
|
+
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
3353
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3354
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3355
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
3356
|
+
const ret = v0;
|
|
3357
|
+
return ret;
|
|
3358
|
+
};
|
|
3359
|
+
|
|
3360
|
+
export function __wbindgen_cast_a81e76255c07f2e8(arg0, arg1) {
|
|
3361
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3362
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3363
|
+
// Cast intrinsic for `Vector(NamedExternref("Capability")) -> Externref`.
|
|
3364
|
+
const ret = v0;
|
|
3365
|
+
return ret;
|
|
3366
|
+
};
|
|
3367
|
+
|
|
3503
3368
|
export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
|
|
3504
3369
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3505
3370
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -3514,6 +3379,12 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
3514
3379
|
return ret;
|
|
3515
3380
|
};
|
|
3516
3381
|
|
|
3382
|
+
export function __wbindgen_cast_eec2736b920f1ce2(arg0, arg1) {
|
|
3383
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 424, function: Function { arguments: [Externref], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3384
|
+
const ret = makeMutClosure(arg0, arg1, 424, __wbg_adapter_10);
|
|
3385
|
+
return ret;
|
|
3386
|
+
};
|
|
3387
|
+
|
|
3517
3388
|
export function __wbindgen_init_externref_table() {
|
|
3518
3389
|
const table = wasm.__wbindgen_export_2;
|
|
3519
3390
|
const offset = table.grow(4);
|