@keyhive/keyhive 0.0.0-alpha.4 → 0.0.0-alpha.41
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 +62 -96
- package/pkg/keyhive_wasm_bg.js +665 -813
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +122 -124
- package/pkg/package.json +2 -2
- package/pkg-node/README.md +1 -6
- package/pkg-node/keyhive_wasm.d.ts +62 -96
- package/pkg-node/keyhive_wasm.js +660 -832
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +122 -124
- package/pkg-node/package.json +2 -2
- package/pkg-slim/README.md +1 -6
- package/pkg-slim/keyhive_wasm.d.ts +184 -220
- package/pkg-slim/keyhive_wasm.js +645 -817
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +1 -1
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +122 -124
- package/pkg-slim/package.json +2 -2
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -34,24 +34,75 @@ function getStringFromWasm0(ptr, len) {
|
|
|
34
34
|
return decodeText(ptr, len);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return idx;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function handleError(f, args) {
|
|
44
|
-
try {
|
|
45
|
-
return f.apply(this, args);
|
|
46
|
-
} catch (e) {
|
|
47
|
-
const idx = addToExternrefTable0(e);
|
|
48
|
-
wasm.__wbindgen_exn_store(idx);
|
|
37
|
+
function _assertClass(instance, klass) {
|
|
38
|
+
if (!(instance instanceof klass)) {
|
|
39
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
49
40
|
}
|
|
50
41
|
}
|
|
51
42
|
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
function debugString(val) {
|
|
44
|
+
// primitive types
|
|
45
|
+
const type = typeof val;
|
|
46
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
47
|
+
return `${val}`;
|
|
48
|
+
}
|
|
49
|
+
if (type == 'string') {
|
|
50
|
+
return `"${val}"`;
|
|
51
|
+
}
|
|
52
|
+
if (type == 'symbol') {
|
|
53
|
+
const description = val.description;
|
|
54
|
+
if (description == null) {
|
|
55
|
+
return 'Symbol';
|
|
56
|
+
} else {
|
|
57
|
+
return `Symbol(${description})`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (type == 'function') {
|
|
61
|
+
const name = val.name;
|
|
62
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
63
|
+
return `Function(${name})`;
|
|
64
|
+
} else {
|
|
65
|
+
return 'Function';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// objects
|
|
69
|
+
if (Array.isArray(val)) {
|
|
70
|
+
const length = val.length;
|
|
71
|
+
let debug = '[';
|
|
72
|
+
if (length > 0) {
|
|
73
|
+
debug += debugString(val[0]);
|
|
74
|
+
}
|
|
75
|
+
for(let i = 1; i < length; i++) {
|
|
76
|
+
debug += ', ' + debugString(val[i]);
|
|
77
|
+
}
|
|
78
|
+
debug += ']';
|
|
79
|
+
return debug;
|
|
80
|
+
}
|
|
81
|
+
// Test for built-in
|
|
82
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
83
|
+
let className;
|
|
84
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
85
|
+
className = builtInMatches[1];
|
|
86
|
+
} else {
|
|
87
|
+
// Failed to match the standard '[object ClassName]'
|
|
88
|
+
return toString.call(val);
|
|
89
|
+
}
|
|
90
|
+
if (className == 'Object') {
|
|
91
|
+
// we're a user defined class or Object
|
|
92
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
93
|
+
// easier than looping through ownProperties of `val`.
|
|
94
|
+
try {
|
|
95
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
96
|
+
} catch (_) {
|
|
97
|
+
return 'Object';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// errors
|
|
101
|
+
if (val instanceof Error) {
|
|
102
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
103
|
+
}
|
|
104
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
105
|
+
return className;
|
|
55
106
|
}
|
|
56
107
|
|
|
57
108
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -117,82 +168,44 @@ function getDataViewMemory0() {
|
|
|
117
168
|
return cachedDataViewMemory0;
|
|
118
169
|
}
|
|
119
170
|
|
|
171
|
+
function addToExternrefTable0(obj) {
|
|
172
|
+
const idx = wasm.__externref_table_alloc();
|
|
173
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
174
|
+
return idx;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function handleError(f, args) {
|
|
178
|
+
try {
|
|
179
|
+
return f.apply(this, args);
|
|
180
|
+
} catch (e) {
|
|
181
|
+
const idx = addToExternrefTable0(e);
|
|
182
|
+
wasm.__wbindgen_exn_store(idx);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
187
|
+
ptr = ptr >>> 0;
|
|
188
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
189
|
+
}
|
|
190
|
+
|
|
120
191
|
function isLikeNone(x) {
|
|
121
192
|
return x === undefined || x === null;
|
|
122
193
|
}
|
|
123
194
|
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (type == 'string') {
|
|
131
|
-
return `"${val}"`;
|
|
132
|
-
}
|
|
133
|
-
if (type == 'symbol') {
|
|
134
|
-
const description = val.description;
|
|
135
|
-
if (description == null) {
|
|
136
|
-
return 'Symbol';
|
|
137
|
-
} else {
|
|
138
|
-
return `Symbol(${description})`;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
if (type == 'function') {
|
|
142
|
-
const name = val.name;
|
|
143
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
144
|
-
return `Function(${name})`;
|
|
145
|
-
} else {
|
|
146
|
-
return 'Function';
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
// objects
|
|
150
|
-
if (Array.isArray(val)) {
|
|
151
|
-
const length = val.length;
|
|
152
|
-
let debug = '[';
|
|
153
|
-
if (length > 0) {
|
|
154
|
-
debug += debugString(val[0]);
|
|
155
|
-
}
|
|
156
|
-
for(let i = 1; i < length; i++) {
|
|
157
|
-
debug += ', ' + debugString(val[i]);
|
|
158
|
-
}
|
|
159
|
-
debug += ']';
|
|
160
|
-
return debug;
|
|
161
|
-
}
|
|
162
|
-
// Test for built-in
|
|
163
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
164
|
-
let className;
|
|
165
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
166
|
-
className = builtInMatches[1];
|
|
167
|
-
} else {
|
|
168
|
-
// Failed to match the standard '[object ClassName]'
|
|
169
|
-
return toString.call(val);
|
|
170
|
-
}
|
|
171
|
-
if (className == 'Object') {
|
|
172
|
-
// we're a user defined class or Object
|
|
173
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
174
|
-
// easier than looping through ownProperties of `val`.
|
|
175
|
-
try {
|
|
176
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
177
|
-
} catch (_) {
|
|
178
|
-
return 'Object';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
// errors
|
|
182
|
-
if (val instanceof Error) {
|
|
183
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
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_externrefs.get(mem.getUint32(i, true)));
|
|
184
201
|
}
|
|
185
|
-
|
|
186
|
-
return
|
|
202
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
203
|
+
return result;
|
|
187
204
|
}
|
|
188
205
|
|
|
189
206
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
190
207
|
? { register: () => {}, unregister: () => {} }
|
|
191
|
-
: new FinalizationRegistry(
|
|
192
|
-
state => {
|
|
193
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
194
|
-
}
|
|
195
|
-
);
|
|
208
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
196
209
|
|
|
197
210
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
198
211
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -207,30 +220,21 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
207
220
|
try {
|
|
208
221
|
return f(a, state.b, ...args);
|
|
209
222
|
} finally {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
223
|
+
state.a = a;
|
|
224
|
+
real._wbg_cb_unref();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
real._wbg_cb_unref = () => {
|
|
228
|
+
if (--state.cnt === 0) {
|
|
229
|
+
state.dtor(state.a, state.b);
|
|
230
|
+
state.a = 0;
|
|
231
|
+
CLOSURE_DTORS.unregister(state);
|
|
216
232
|
}
|
|
217
233
|
};
|
|
218
|
-
real.original = state;
|
|
219
234
|
CLOSURE_DTORS.register(real, state, state);
|
|
220
235
|
return real;
|
|
221
236
|
}
|
|
222
237
|
|
|
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
238
|
function passArray8ToWasm0(arg, malloc) {
|
|
235
239
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
236
240
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -239,17 +243,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
239
243
|
}
|
|
240
244
|
|
|
241
245
|
function takeFromExternrefTable0(idx) {
|
|
242
|
-
const value = wasm.
|
|
246
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
243
247
|
wasm.__externref_table_dealloc(idx);
|
|
244
248
|
return value;
|
|
245
249
|
}
|
|
246
250
|
|
|
247
|
-
function _assertClass(instance, klass) {
|
|
248
|
-
if (!(instance instanceof klass)) {
|
|
249
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
251
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
254
252
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
255
253
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -269,12 +267,12 @@ export function setPanicHook() {
|
|
|
269
267
|
wasm.setPanicHook();
|
|
270
268
|
}
|
|
271
269
|
|
|
272
|
-
function
|
|
273
|
-
wasm.
|
|
270
|
+
function wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2) {
|
|
271
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2);
|
|
274
272
|
}
|
|
275
273
|
|
|
276
|
-
function
|
|
277
|
-
wasm.
|
|
274
|
+
function wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3) {
|
|
275
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3);
|
|
278
276
|
}
|
|
279
277
|
|
|
280
278
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -330,49 +328,6 @@ export class Access {
|
|
|
330
328
|
}
|
|
331
329
|
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
332
330
|
|
|
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
331
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
377
332
|
? { register: () => {}, unregister: () => {} }
|
|
378
333
|
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
@@ -499,17 +454,14 @@ export class Archive {
|
|
|
499
454
|
* @param {CiphertextStore} ciphertext_store
|
|
500
455
|
* @param {Signer} signer
|
|
501
456
|
* @param {Function} event_handler
|
|
502
|
-
* @returns {Keyhive}
|
|
457
|
+
* @returns {Promise<Keyhive>}
|
|
503
458
|
*/
|
|
504
459
|
tryToKeyhive(ciphertext_store, signer, event_handler) {
|
|
505
460
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
506
461
|
var ptr0 = ciphertext_store.__destroy_into_raw();
|
|
507
462
|
_assertClass(signer, Signer);
|
|
508
463
|
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]);
|
|
464
|
+
return ret;
|
|
513
465
|
}
|
|
514
466
|
}
|
|
515
467
|
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
@@ -662,22 +614,22 @@ export class CgkaOperation {
|
|
|
662
614
|
}
|
|
663
615
|
if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
|
|
664
616
|
|
|
665
|
-
const
|
|
617
|
+
const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
666
618
|
? { register: () => {}, unregister: () => {} }
|
|
667
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
619
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
|
|
668
620
|
|
|
669
|
-
export class
|
|
621
|
+
export class ChangeId {
|
|
670
622
|
|
|
671
623
|
static __wrap(ptr) {
|
|
672
624
|
ptr = ptr >>> 0;
|
|
673
|
-
const obj = Object.create(
|
|
625
|
+
const obj = Object.create(ChangeId.prototype);
|
|
674
626
|
obj.__wbg_ptr = ptr;
|
|
675
|
-
|
|
627
|
+
ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
676
628
|
return obj;
|
|
677
629
|
}
|
|
678
630
|
|
|
679
631
|
static __unwrap(jsValue) {
|
|
680
|
-
if (!(jsValue instanceof
|
|
632
|
+
if (!(jsValue instanceof ChangeId)) {
|
|
681
633
|
return 0;
|
|
682
634
|
}
|
|
683
635
|
return jsValue.__destroy_into_raw();
|
|
@@ -686,13 +638,13 @@ export class ChangeRef {
|
|
|
686
638
|
__destroy_into_raw() {
|
|
687
639
|
const ptr = this.__wbg_ptr;
|
|
688
640
|
this.__wbg_ptr = 0;
|
|
689
|
-
|
|
641
|
+
ChangeIdFinalization.unregister(this);
|
|
690
642
|
return ptr;
|
|
691
643
|
}
|
|
692
644
|
|
|
693
645
|
free() {
|
|
694
646
|
const ptr = this.__destroy_into_raw();
|
|
695
|
-
wasm.
|
|
647
|
+
wasm.__wbg_changeid_free(ptr, 0);
|
|
696
648
|
}
|
|
697
649
|
/**
|
|
698
650
|
* @param {Uint8Array} bytes
|
|
@@ -700,22 +652,30 @@ export class ChangeRef {
|
|
|
700
652
|
constructor(bytes) {
|
|
701
653
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
702
654
|
const len0 = WASM_VECTOR_LEN;
|
|
703
|
-
const ret = wasm.
|
|
655
|
+
const ret = wasm.changeid_new(ptr0, len0);
|
|
704
656
|
this.__wbg_ptr = ret >>> 0;
|
|
705
|
-
|
|
657
|
+
ChangeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
706
658
|
return this;
|
|
707
659
|
}
|
|
708
660
|
/**
|
|
709
661
|
* @returns {Uint8Array}
|
|
710
662
|
*/
|
|
711
663
|
get bytes() {
|
|
712
|
-
const ret = wasm.
|
|
664
|
+
const ret = wasm.changeid_bytes(this.__wbg_ptr);
|
|
713
665
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
714
666
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
715
667
|
return v1;
|
|
716
668
|
}
|
|
669
|
+
/**
|
|
670
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
671
|
+
* @returns {ChangeId}
|
|
672
|
+
*/
|
|
673
|
+
__wasm_refgen_toChangeId() {
|
|
674
|
+
const ret = wasm.changeid___wasm_refgen_toChangeId(this.__wbg_ptr);
|
|
675
|
+
return ChangeId.__wrap(ret);
|
|
676
|
+
}
|
|
717
677
|
}
|
|
718
|
-
if (Symbol.dispose)
|
|
678
|
+
if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
|
|
719
679
|
|
|
720
680
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
721
681
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -808,6 +768,13 @@ export class ContactCard {
|
|
|
808
768
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
809
769
|
return v1;
|
|
810
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* @returns {Agent}
|
|
773
|
+
*/
|
|
774
|
+
toAgent() {
|
|
775
|
+
const ret = wasm.contactcard_toAgent(this.__wbg_ptr);
|
|
776
|
+
return Agent.__wrap(ret);
|
|
777
|
+
}
|
|
811
778
|
/**
|
|
812
779
|
* @param {string} json
|
|
813
780
|
* @returns {ContactCard}
|
|
@@ -901,26 +868,6 @@ export class Delegation {
|
|
|
901
868
|
}
|
|
902
869
|
if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
|
|
903
870
|
|
|
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
871
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
925
872
|
? { register: () => {}, unregister: () => {} }
|
|
926
873
|
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
@@ -948,7 +895,7 @@ export class DocContentRefs {
|
|
|
948
895
|
}
|
|
949
896
|
/**
|
|
950
897
|
* @param {DocumentId} doc_id
|
|
951
|
-
* @param {
|
|
898
|
+
* @param {ChangeId[]} change_hashes
|
|
952
899
|
*/
|
|
953
900
|
constructor(doc_id, change_hashes) {
|
|
954
901
|
_assertClass(doc_id, DocumentId);
|
|
@@ -964,12 +911,14 @@ export class DocContentRefs {
|
|
|
964
911
|
return this;
|
|
965
912
|
}
|
|
966
913
|
/**
|
|
967
|
-
* @param {
|
|
914
|
+
* @param {ChangeId} hash
|
|
915
|
+
* @returns {Promise<void>}
|
|
968
916
|
*/
|
|
969
|
-
|
|
970
|
-
_assertClass(hash,
|
|
917
|
+
addChangeId(hash) {
|
|
918
|
+
_assertClass(hash, ChangeId);
|
|
971
919
|
var ptr0 = hash.__destroy_into_raw();
|
|
972
|
-
wasm.
|
|
920
|
+
const ret = wasm.doccontentrefs_addChangeId(this.__wbg_ptr, ptr0);
|
|
921
|
+
return ret;
|
|
973
922
|
}
|
|
974
923
|
/**
|
|
975
924
|
* @returns {DocumentId}
|
|
@@ -979,13 +928,11 @@ export class DocContentRefs {
|
|
|
979
928
|
return DocumentId.__wrap(ret);
|
|
980
929
|
}
|
|
981
930
|
/**
|
|
982
|
-
* @returns {
|
|
931
|
+
* @returns {Promise<ChangeId[]>}
|
|
983
932
|
*/
|
|
984
933
|
get change_hashes() {
|
|
985
934
|
const ret = wasm.doccontentrefs_change_hashes(this.__wbg_ptr);
|
|
986
|
-
|
|
987
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
988
|
-
return v1;
|
|
935
|
+
return ret;
|
|
989
936
|
}
|
|
990
937
|
}
|
|
991
938
|
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
@@ -1004,13 +951,6 @@ export class Document {
|
|
|
1004
951
|
return obj;
|
|
1005
952
|
}
|
|
1006
953
|
|
|
1007
|
-
static __unwrap(jsValue) {
|
|
1008
|
-
if (!(jsValue instanceof Document)) {
|
|
1009
|
-
return 0;
|
|
1010
|
-
}
|
|
1011
|
-
return jsValue.__destroy_into_raw();
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
954
|
__destroy_into_raw() {
|
|
1015
955
|
const ptr = this.__wbg_ptr;
|
|
1016
956
|
this.__wbg_ptr = 0;
|
|
@@ -1026,7 +966,7 @@ export class Document {
|
|
|
1026
966
|
* @returns {Identifier}
|
|
1027
967
|
*/
|
|
1028
968
|
get id() {
|
|
1029
|
-
const ret = wasm.
|
|
969
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1030
970
|
return Identifier.__wrap(ret);
|
|
1031
971
|
}
|
|
1032
972
|
/**
|
|
@@ -1050,6 +990,21 @@ export class Document {
|
|
|
1050
990
|
const ret = wasm.document_toAgent(this.__wbg_ptr);
|
|
1051
991
|
return Agent.__wrap(ret);
|
|
1052
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* @returns {Membered}
|
|
995
|
+
*/
|
|
996
|
+
toMembered() {
|
|
997
|
+
const ret = wasm.document_toMembered(this.__wbg_ptr);
|
|
998
|
+
return Membered.__wrap(ret);
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
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,24 +1362,22 @@ export class Group {
|
|
|
1471
1362
|
* @returns {Identifier}
|
|
1472
1363
|
*/
|
|
1473
1364
|
get id() {
|
|
1474
|
-
const ret = wasm.
|
|
1365
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1475
1366
|
return Identifier.__wrap(ret);
|
|
1476
1367
|
}
|
|
1477
1368
|
/**
|
|
1478
1369
|
* @returns {GroupId}
|
|
1479
1370
|
*/
|
|
1480
1371
|
get groupId() {
|
|
1481
|
-
const ret = wasm.
|
|
1372
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
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,14 @@ export class Group {
|
|
|
1511
1400
|
const ret = wasm.group_toMembered(this.__wbg_ptr);
|
|
1512
1401
|
return Membered.__wrap(ret);
|
|
1513
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
1405
|
+
* @returns {Group}
|
|
1406
|
+
*/
|
|
1407
|
+
__wasm_refgen_toGroup() {
|
|
1408
|
+
const ret = wasm.group___wasm_refgen_toGroup(this.__wbg_ptr);
|
|
1409
|
+
return Group.__wrap(ret);
|
|
1410
|
+
}
|
|
1514
1411
|
}
|
|
1515
1412
|
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1516
1413
|
|
|
@@ -1713,18 +1610,18 @@ export class Individual {
|
|
|
1713
1610
|
* @returns {IndividualId}
|
|
1714
1611
|
*/
|
|
1715
1612
|
get individualId() {
|
|
1716
|
-
const ret = wasm.
|
|
1613
|
+
const ret = wasm.individual_id(this.__wbg_ptr);
|
|
1717
1614
|
return IndividualId.__wrap(ret);
|
|
1718
1615
|
}
|
|
1719
1616
|
/**
|
|
1720
1617
|
* @param {DocumentId} doc_id
|
|
1721
|
-
* @returns {ShareKey}
|
|
1618
|
+
* @returns {Promise<ShareKey>}
|
|
1722
1619
|
*/
|
|
1723
1620
|
pickPrekey(doc_id) {
|
|
1724
1621
|
_assertClass(doc_id, DocumentId);
|
|
1725
1622
|
var ptr0 = doc_id.__destroy_into_raw();
|
|
1726
1623
|
const ret = wasm.individual_pickPrekey(this.__wbg_ptr, ptr0);
|
|
1727
|
-
return
|
|
1624
|
+
return ret;
|
|
1728
1625
|
}
|
|
1729
1626
|
}
|
|
1730
1627
|
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
@@ -1786,118 +1683,6 @@ export class Invocation {
|
|
|
1786
1683
|
}
|
|
1787
1684
|
if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
|
|
1788
1685
|
|
|
1789
|
-
const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1790
|
-
? { register: () => {}, unregister: () => {} }
|
|
1791
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsdecrypterror_free(ptr >>> 0, 1));
|
|
1792
|
-
|
|
1793
|
-
export class JsDecryptError {
|
|
1794
|
-
|
|
1795
|
-
static __wrap(ptr) {
|
|
1796
|
-
ptr = ptr >>> 0;
|
|
1797
|
-
const obj = Object.create(JsDecryptError.prototype);
|
|
1798
|
-
obj.__wbg_ptr = ptr;
|
|
1799
|
-
JsDecryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1800
|
-
return obj;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
__destroy_into_raw() {
|
|
1804
|
-
const ptr = this.__wbg_ptr;
|
|
1805
|
-
this.__wbg_ptr = 0;
|
|
1806
|
-
JsDecryptErrorFinalization.unregister(this);
|
|
1807
|
-
return ptr;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
free() {
|
|
1811
|
-
const ptr = this.__destroy_into_raw();
|
|
1812
|
-
wasm.__wbg_jsdecrypterror_free(ptr, 0);
|
|
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;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
__destroy_into_raw() {
|
|
1832
|
-
const ptr = this.__wbg_ptr;
|
|
1833
|
-
this.__wbg_ptr = 0;
|
|
1834
|
-
JsEncryptErrorFinalization.unregister(this);
|
|
1835
|
-
return ptr;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
free() {
|
|
1839
|
-
const ptr = this.__destroy_into_raw();
|
|
1840
|
-
wasm.__wbg_jsencrypterror_free(ptr, 0);
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
|
|
1844
|
-
|
|
1845
|
-
const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1846
|
-
? { register: () => {}, unregister: () => {} }
|
|
1847
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceiveprekeyoperror_free(ptr >>> 0, 1));
|
|
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
1686
|
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1902
1687
|
? { register: () => {}, unregister: () => {} }
|
|
1903
1688
|
: new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
|
|
@@ -1932,8 +1717,7 @@ export class Keyhive {
|
|
|
1932
1717
|
static init(signer, ciphertext_store, event_handler) {
|
|
1933
1718
|
_assertClass(signer, Signer);
|
|
1934
1719
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
1935
|
-
|
|
1936
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ptr0, event_handler);
|
|
1720
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1937
1721
|
return ret;
|
|
1938
1722
|
}
|
|
1939
1723
|
/**
|
|
@@ -1950,6 +1734,13 @@ export class Keyhive {
|
|
|
1950
1734
|
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
1951
1735
|
return IndividualId.__wrap(ret);
|
|
1952
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
* @returns {Promise<Individual>}
|
|
1739
|
+
*/
|
|
1740
|
+
get individual() {
|
|
1741
|
+
const ret = wasm.keyhive_individual(this.__wbg_ptr);
|
|
1742
|
+
return ret;
|
|
1743
|
+
}
|
|
1953
1744
|
/**
|
|
1954
1745
|
* @returns {string}
|
|
1955
1746
|
*/
|
|
@@ -1966,25 +1757,25 @@ export class Keyhive {
|
|
|
1966
1757
|
}
|
|
1967
1758
|
}
|
|
1968
1759
|
/**
|
|
1969
|
-
* @param {Peer[]}
|
|
1760
|
+
* @param {Peer[]} js_coparents
|
|
1970
1761
|
* @returns {Promise<Group>}
|
|
1971
1762
|
*/
|
|
1972
|
-
generateGroup(
|
|
1973
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1763
|
+
generateGroup(js_coparents) {
|
|
1764
|
+
const ptr0 = passArrayJsValueToWasm0(js_coparents, wasm.__wbindgen_malloc);
|
|
1974
1765
|
const len0 = WASM_VECTOR_LEN;
|
|
1975
1766
|
const ret = wasm.keyhive_generateGroup(this.__wbg_ptr, ptr0, len0);
|
|
1976
1767
|
return ret;
|
|
1977
1768
|
}
|
|
1978
1769
|
/**
|
|
1979
1770
|
* @param {Peer[]} coparents
|
|
1980
|
-
* @param {
|
|
1981
|
-
* @param {
|
|
1771
|
+
* @param {ChangeId} initial_content_ref_head
|
|
1772
|
+
* @param {ChangeId[]} more_initial_content_refs
|
|
1982
1773
|
* @returns {Promise<Document>}
|
|
1983
1774
|
*/
|
|
1984
1775
|
generateDocument(coparents, initial_content_ref_head, more_initial_content_refs) {
|
|
1985
1776
|
const ptr0 = passArrayJsValueToWasm0(coparents, wasm.__wbindgen_malloc);
|
|
1986
1777
|
const len0 = WASM_VECTOR_LEN;
|
|
1987
|
-
_assertClass(initial_content_ref_head,
|
|
1778
|
+
_assertClass(initial_content_ref_head, ChangeId);
|
|
1988
1779
|
var ptr1 = initial_content_ref_head.__destroy_into_raw();
|
|
1989
1780
|
const ptr2 = passArrayJsValueToWasm0(more_initial_content_refs, wasm.__wbindgen_malloc);
|
|
1990
1781
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -2003,17 +1794,17 @@ export class Keyhive {
|
|
|
2003
1794
|
}
|
|
2004
1795
|
/**
|
|
2005
1796
|
* @param {Document} doc
|
|
2006
|
-
* @param {
|
|
2007
|
-
* @param {
|
|
1797
|
+
* @param {ChangeId} content_ref
|
|
1798
|
+
* @param {ChangeId[]} js_pred_refs
|
|
2008
1799
|
* @param {Uint8Array} content
|
|
2009
1800
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2010
1801
|
*/
|
|
2011
|
-
tryEncrypt(doc, content_ref,
|
|
1802
|
+
tryEncrypt(doc, content_ref, js_pred_refs, content) {
|
|
2012
1803
|
_assertClass(doc, Document);
|
|
2013
1804
|
var ptr0 = doc.__destroy_into_raw();
|
|
2014
|
-
_assertClass(content_ref,
|
|
1805
|
+
_assertClass(content_ref, ChangeId);
|
|
2015
1806
|
var ptr1 = content_ref.__destroy_into_raw();
|
|
2016
|
-
const ptr2 = passArrayJsValueToWasm0(
|
|
1807
|
+
const ptr2 = passArrayJsValueToWasm0(js_pred_refs, wasm.__wbindgen_malloc);
|
|
2017
1808
|
const len2 = WASM_VECTOR_LEN;
|
|
2018
1809
|
const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
2019
1810
|
const len3 = WASM_VECTOR_LEN;
|
|
@@ -2022,40 +1813,31 @@ export class Keyhive {
|
|
|
2022
1813
|
}
|
|
2023
1814
|
/**
|
|
2024
1815
|
* @param {Document} doc
|
|
2025
|
-
* @param {
|
|
2026
|
-
* @param {
|
|
1816
|
+
* @param {ChangeId} content_ref
|
|
1817
|
+
* @param {ChangeId[]} pred_refs
|
|
2027
1818
|
* @param {Uint8Array} content
|
|
2028
1819
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2029
1820
|
*/
|
|
2030
1821
|
tryEncryptArchive(doc, content_ref, pred_refs, content) {
|
|
2031
1822
|
_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);
|
|
1823
|
+
_assertClass(content_ref, ChangeId);
|
|
1824
|
+
const ptr0 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
|
|
1825
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1826
|
+
const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
1827
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1828
|
+
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2040
1829
|
return ret;
|
|
2041
1830
|
}
|
|
2042
1831
|
/**
|
|
2043
1832
|
* @param {Document} doc
|
|
2044
1833
|
* @param {Encrypted} encrypted
|
|
2045
|
-
* @returns {Uint8Array}
|
|
1834
|
+
* @returns {Promise<Uint8Array>}
|
|
2046
1835
|
*/
|
|
2047
1836
|
tryDecrypt(doc, encrypted) {
|
|
2048
1837
|
_assertClass(doc, Document);
|
|
2049
|
-
var ptr0 = doc.__destroy_into_raw();
|
|
2050
1838
|
_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;
|
|
1839
|
+
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1840
|
+
return ret;
|
|
2059
1841
|
}
|
|
2060
1842
|
/**
|
|
2061
1843
|
* @param {Agent} to_add
|
|
@@ -2087,13 +1869,11 @@ export class Keyhive {
|
|
|
2087
1869
|
return ret;
|
|
2088
1870
|
}
|
|
2089
1871
|
/**
|
|
2090
|
-
* @returns {Summary[]}
|
|
1872
|
+
* @returns {Promise<Summary[]>}
|
|
2091
1873
|
*/
|
|
2092
1874
|
reachableDocs() {
|
|
2093
1875
|
const ret = wasm.keyhive_reachableDocs(this.__wbg_ptr);
|
|
2094
|
-
|
|
2095
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2096
|
-
return v1;
|
|
1876
|
+
return ret;
|
|
2097
1877
|
}
|
|
2098
1878
|
/**
|
|
2099
1879
|
* @param {Document} doc
|
|
@@ -2130,71 +1910,74 @@ export class Keyhive {
|
|
|
2130
1910
|
}
|
|
2131
1911
|
/**
|
|
2132
1912
|
* @param {ContactCard} contact_card
|
|
2133
|
-
* @returns {Individual}
|
|
1913
|
+
* @returns {Promise<Individual>}
|
|
2134
1914
|
*/
|
|
2135
1915
|
receiveContactCard(contact_card) {
|
|
2136
1916
|
_assertClass(contact_card, ContactCard);
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
if (ret[2]) {
|
|
2140
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2141
|
-
}
|
|
2142
|
-
return Individual.__wrap(ret[0]);
|
|
1917
|
+
const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
|
|
1918
|
+
return ret;
|
|
2143
1919
|
}
|
|
2144
1920
|
/**
|
|
2145
1921
|
* @param {Identifier} id
|
|
2146
|
-
* @returns {Agent | undefined}
|
|
1922
|
+
* @returns {Promise<Agent | undefined>}
|
|
2147
1923
|
*/
|
|
2148
1924
|
getAgent(id) {
|
|
2149
1925
|
_assertClass(id, Identifier);
|
|
2150
1926
|
const ret = wasm.keyhive_getAgent(this.__wbg_ptr, id.__wbg_ptr);
|
|
2151
|
-
return ret
|
|
1927
|
+
return ret;
|
|
2152
1928
|
}
|
|
2153
1929
|
/**
|
|
2154
|
-
* @param {
|
|
2155
|
-
* @returns {Group | undefined}
|
|
1930
|
+
* @param {GroupId} group_id
|
|
1931
|
+
* @returns {Promise<Group | undefined>}
|
|
2156
1932
|
*/
|
|
2157
|
-
getGroup(
|
|
2158
|
-
_assertClass(
|
|
2159
|
-
const ret = wasm.keyhive_getGroup(this.__wbg_ptr,
|
|
2160
|
-
return ret
|
|
1933
|
+
getGroup(group_id) {
|
|
1934
|
+
_assertClass(group_id, GroupId);
|
|
1935
|
+
const ret = wasm.keyhive_getGroup(this.__wbg_ptr, group_id.__wbg_ptr);
|
|
1936
|
+
return ret;
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* @param {DocumentId} doc_id
|
|
1940
|
+
* @returns {Promise<Document | undefined>}
|
|
1941
|
+
*/
|
|
1942
|
+
getDocument(doc_id) {
|
|
1943
|
+
_assertClass(doc_id, DocumentId);
|
|
1944
|
+
const ret = wasm.keyhive_getDocument(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1945
|
+
return ret;
|
|
2161
1946
|
}
|
|
2162
1947
|
/**
|
|
2163
1948
|
* @param {DocumentId} doc_id
|
|
2164
|
-
* @returns {
|
|
1949
|
+
* @returns {Promise<Membership[]>}
|
|
2165
1950
|
*/
|
|
2166
1951
|
docMemberCapabilities(doc_id) {
|
|
2167
1952
|
_assertClass(doc_id, DocumentId);
|
|
2168
1953
|
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;
|
|
1954
|
+
return ret;
|
|
2172
1955
|
}
|
|
2173
1956
|
/**
|
|
2174
1957
|
* @param {Identifier} id
|
|
2175
1958
|
* @param {DocumentId} doc_id
|
|
2176
|
-
* @returns {Access | undefined}
|
|
1959
|
+
* @returns {Promise<Access | undefined>}
|
|
2177
1960
|
*/
|
|
2178
1961
|
accessForDoc(id, doc_id) {
|
|
2179
1962
|
_assertClass(id, Identifier);
|
|
2180
1963
|
_assertClass(doc_id, DocumentId);
|
|
2181
1964
|
const ret = wasm.keyhive_accessForDoc(this.__wbg_ptr, id.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2182
|
-
return ret
|
|
1965
|
+
return ret;
|
|
2183
1966
|
}
|
|
2184
1967
|
/**
|
|
2185
|
-
* @returns {Archive}
|
|
1968
|
+
* @returns {Promise<Archive>}
|
|
2186
1969
|
*/
|
|
2187
1970
|
intoArchive() {
|
|
2188
1971
|
const ptr = this.__destroy_into_raw();
|
|
2189
1972
|
const ret = wasm.keyhive_intoArchive(ptr);
|
|
2190
|
-
return
|
|
1973
|
+
return ret;
|
|
2191
1974
|
}
|
|
2192
1975
|
/**
|
|
2193
|
-
* @returns {Archive}
|
|
1976
|
+
* @returns {Promise<Archive>}
|
|
2194
1977
|
*/
|
|
2195
1978
|
toArchive() {
|
|
2196
1979
|
const ret = wasm.keyhive_toArchive(this.__wbg_ptr);
|
|
2197
|
-
return
|
|
1980
|
+
return ret;
|
|
2198
1981
|
}
|
|
2199
1982
|
/**
|
|
2200
1983
|
* @param {Archive} archive
|
|
@@ -2205,6 +1988,21 @@ export class Keyhive {
|
|
|
2205
1988
|
const ret = wasm.keyhive_ingestArchive(this.__wbg_ptr, archive.__wbg_ptr);
|
|
2206
1989
|
return ret;
|
|
2207
1990
|
}
|
|
1991
|
+
/**
|
|
1992
|
+
* @param {Array<any>} events_bytes_array
|
|
1993
|
+
* @returns {Promise<Array<any>>}
|
|
1994
|
+
*/
|
|
1995
|
+
ingestEventsBytes(events_bytes_array) {
|
|
1996
|
+
const ret = wasm.keyhive_ingestEventsBytes(this.__wbg_ptr, events_bytes_array);
|
|
1997
|
+
return ret;
|
|
1998
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* @returns {Promise<Stats>}
|
|
2001
|
+
*/
|
|
2002
|
+
stats() {
|
|
2003
|
+
const ret = wasm.keyhive_stats(this.__wbg_ptr);
|
|
2004
|
+
return ret;
|
|
2005
|
+
}
|
|
2208
2006
|
}
|
|
2209
2007
|
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2210
2008
|
|
|
@@ -2236,47 +2034,89 @@ export class Membered {
|
|
|
2236
2034
|
}
|
|
2237
2035
|
if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
|
|
2238
2036
|
|
|
2239
|
-
const
|
|
2037
|
+
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2240
2038
|
? { register: () => {}, unregister: () => {} }
|
|
2241
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2039
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
2242
2040
|
|
|
2243
|
-
export class
|
|
2041
|
+
export class Membership {
|
|
2244
2042
|
|
|
2245
2043
|
static __wrap(ptr) {
|
|
2246
2044
|
ptr = ptr >>> 0;
|
|
2247
|
-
const obj = Object.create(
|
|
2045
|
+
const obj = Object.create(Membership.prototype);
|
|
2248
2046
|
obj.__wbg_ptr = ptr;
|
|
2249
|
-
|
|
2047
|
+
MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2250
2048
|
return obj;
|
|
2251
2049
|
}
|
|
2252
2050
|
|
|
2253
|
-
static __unwrap(jsValue) {
|
|
2254
|
-
if (!(jsValue instanceof Peer)) {
|
|
2255
|
-
return 0;
|
|
2256
|
-
}
|
|
2257
|
-
return jsValue.__destroy_into_raw();
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
2051
|
__destroy_into_raw() {
|
|
2261
2052
|
const ptr = this.__wbg_ptr;
|
|
2262
2053
|
this.__wbg_ptr = 0;
|
|
2263
|
-
|
|
2054
|
+
MembershipFinalization.unregister(this);
|
|
2264
2055
|
return ptr;
|
|
2265
2056
|
}
|
|
2266
2057
|
|
|
2267
2058
|
free() {
|
|
2268
2059
|
const ptr = this.__destroy_into_raw();
|
|
2269
|
-
wasm.
|
|
2060
|
+
wasm.__wbg_membership_free(ptr, 0);
|
|
2270
2061
|
}
|
|
2271
2062
|
/**
|
|
2272
|
-
* @returns {
|
|
2063
|
+
* @returns {Agent}
|
|
2273
2064
|
*/
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2065
|
+
get who() {
|
|
2066
|
+
const ret = wasm.membership_who(this.__wbg_ptr);
|
|
2067
|
+
return Agent.__wrap(ret);
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* @returns {Access}
|
|
2071
|
+
*/
|
|
2072
|
+
get can() {
|
|
2073
|
+
const ret = wasm.membership_can(this.__wbg_ptr);
|
|
2074
|
+
return Access.__wrap(ret);
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
|
|
2078
|
+
|
|
2079
|
+
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2080
|
+
? { register: () => {}, unregister: () => {} }
|
|
2081
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
|
|
2082
|
+
|
|
2083
|
+
export class Peer {
|
|
2084
|
+
|
|
2085
|
+
static __wrap(ptr) {
|
|
2086
|
+
ptr = ptr >>> 0;
|
|
2087
|
+
const obj = Object.create(Peer.prototype);
|
|
2088
|
+
obj.__wbg_ptr = ptr;
|
|
2089
|
+
PeerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2090
|
+
return obj;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
__destroy_into_raw() {
|
|
2094
|
+
const ptr = this.__wbg_ptr;
|
|
2095
|
+
this.__wbg_ptr = 0;
|
|
2096
|
+
PeerFinalization.unregister(this);
|
|
2097
|
+
return ptr;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
free() {
|
|
2101
|
+
const ptr = this.__destroy_into_raw();
|
|
2102
|
+
wasm.__wbg_peer_free(ptr, 0);
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* @returns {Identifier}
|
|
2106
|
+
*/
|
|
2107
|
+
get id() {
|
|
2108
|
+
const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
|
|
2109
|
+
return Identifier.__wrap(ret);
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* @returns {string}
|
|
2113
|
+
*/
|
|
2114
|
+
toString() {
|
|
2115
|
+
let deferred1_0;
|
|
2116
|
+
let deferred1_1;
|
|
2117
|
+
try {
|
|
2118
|
+
const ret = wasm.peer_toString(this.__wbg_ptr);
|
|
2119
|
+
deferred1_0 = ret[0];
|
|
2280
2120
|
deferred1_1 = ret[1];
|
|
2281
2121
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
2282
2122
|
} finally {
|
|
@@ -2304,28 +2144,16 @@ export class Peer {
|
|
|
2304
2144
|
const ret = wasm.peer_isDocument(this.__wbg_ptr);
|
|
2305
2145
|
return ret !== 0;
|
|
2306
2146
|
}
|
|
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);
|
|
2147
|
+
/**
|
|
2148
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
2149
|
+
* @returns {Peer}
|
|
2150
|
+
*/
|
|
2151
|
+
__wasm_refgen_toPeer() {
|
|
2152
|
+
const ret = wasm.peer___wasm_refgen_toPeer(this.__wbg_ptr);
|
|
2153
|
+
return Peer.__wrap(ret);
|
|
2326
2154
|
}
|
|
2327
2155
|
}
|
|
2328
|
-
if (Symbol.dispose)
|
|
2156
|
+
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2329
2157
|
|
|
2330
2158
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2331
2159
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2383,85 +2211,6 @@ export class Revocation {
|
|
|
2383
2211
|
}
|
|
2384
2212
|
if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
|
|
2385
2213
|
|
|
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
2214
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2466
2215
|
? { register: () => {}, unregister: () => {} }
|
|
2467
2216
|
: new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
|
|
@@ -2523,13 +2272,19 @@ export class Signed {
|
|
|
2523
2272
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2524
2273
|
const len0 = WASM_VECTOR_LEN;
|
|
2525
2274
|
const ret = wasm.signed_fromBytes(ptr0, len0);
|
|
2526
|
-
|
|
2275
|
+
if (ret[2]) {
|
|
2276
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2277
|
+
}
|
|
2278
|
+
return Signed.__wrap(ret[0]);
|
|
2527
2279
|
}
|
|
2528
2280
|
/**
|
|
2529
2281
|
* @returns {Uint8Array}
|
|
2530
2282
|
*/
|
|
2531
2283
|
toBytes() {
|
|
2532
2284
|
const ret = wasm.signed_toBytes(this.__wbg_ptr);
|
|
2285
|
+
if (ret[3]) {
|
|
2286
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2287
|
+
}
|
|
2533
2288
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2534
2289
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2535
2290
|
return v1;
|
|
@@ -2882,90 +2637,68 @@ export class Signer {
|
|
|
2882
2637
|
}
|
|
2883
2638
|
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2884
2639
|
|
|
2885
|
-
const
|
|
2640
|
+
const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2886
2641
|
? { register: () => {}, unregister: () => {} }
|
|
2887
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2642
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
|
|
2888
2643
|
|
|
2889
|
-
export class
|
|
2644
|
+
export class Stats {
|
|
2890
2645
|
|
|
2891
2646
|
static __wrap(ptr) {
|
|
2892
2647
|
ptr = ptr >>> 0;
|
|
2893
|
-
const obj = Object.create(
|
|
2648
|
+
const obj = Object.create(Stats.prototype);
|
|
2894
2649
|
obj.__wbg_ptr = ptr;
|
|
2895
|
-
|
|
2650
|
+
StatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2896
2651
|
return obj;
|
|
2897
2652
|
}
|
|
2898
2653
|
|
|
2899
2654
|
__destroy_into_raw() {
|
|
2900
2655
|
const ptr = this.__wbg_ptr;
|
|
2901
2656
|
this.__wbg_ptr = 0;
|
|
2902
|
-
|
|
2657
|
+
StatsFinalization.unregister(this);
|
|
2903
2658
|
return ptr;
|
|
2904
2659
|
}
|
|
2905
2660
|
|
|
2906
2661
|
free() {
|
|
2907
2662
|
const ptr = this.__destroy_into_raw();
|
|
2908
|
-
wasm.
|
|
2663
|
+
wasm.__wbg_stats_free(ptr, 0);
|
|
2909
2664
|
}
|
|
2910
2665
|
/**
|
|
2911
|
-
* @returns {
|
|
2666
|
+
* @returns {bigint}
|
|
2912
2667
|
*/
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
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
|
-
}
|
|
2668
|
+
get individuals() {
|
|
2669
|
+
const ret = wasm.stats_individuals(this.__wbg_ptr);
|
|
2670
|
+
return BigInt.asUintN(64, ret);
|
|
2924
2671
|
}
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
export class SimpleCapability {
|
|
2933
|
-
|
|
2934
|
-
static __wrap(ptr) {
|
|
2935
|
-
ptr = ptr >>> 0;
|
|
2936
|
-
const obj = Object.create(SimpleCapability.prototype);
|
|
2937
|
-
obj.__wbg_ptr = ptr;
|
|
2938
|
-
SimpleCapabilityFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2939
|
-
return obj;
|
|
2940
|
-
}
|
|
2941
|
-
|
|
2942
|
-
__destroy_into_raw() {
|
|
2943
|
-
const ptr = this.__wbg_ptr;
|
|
2944
|
-
this.__wbg_ptr = 0;
|
|
2945
|
-
SimpleCapabilityFinalization.unregister(this);
|
|
2946
|
-
return ptr;
|
|
2672
|
+
/**
|
|
2673
|
+
* @returns {bigint}
|
|
2674
|
+
*/
|
|
2675
|
+
get groups() {
|
|
2676
|
+
const ret = wasm.stats_groups(this.__wbg_ptr);
|
|
2677
|
+
return BigInt.asUintN(64, ret);
|
|
2947
2678
|
}
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2679
|
+
/**
|
|
2680
|
+
* @returns {bigint}
|
|
2681
|
+
*/
|
|
2682
|
+
get docs() {
|
|
2683
|
+
const ret = wasm.stats_docs(this.__wbg_ptr);
|
|
2684
|
+
return BigInt.asUintN(64, ret);
|
|
2952
2685
|
}
|
|
2953
2686
|
/**
|
|
2954
|
-
* @returns {
|
|
2687
|
+
* @returns {bigint}
|
|
2955
2688
|
*/
|
|
2956
|
-
get
|
|
2957
|
-
const ret = wasm.
|
|
2958
|
-
return
|
|
2689
|
+
get delegations() {
|
|
2690
|
+
const ret = wasm.stats_delegations(this.__wbg_ptr);
|
|
2691
|
+
return BigInt.asUintN(64, ret);
|
|
2959
2692
|
}
|
|
2960
2693
|
/**
|
|
2961
|
-
* @returns {
|
|
2694
|
+
* @returns {bigint}
|
|
2962
2695
|
*/
|
|
2963
|
-
get
|
|
2964
|
-
const ret = wasm.
|
|
2965
|
-
return
|
|
2696
|
+
get revocations() {
|
|
2697
|
+
const ret = wasm.stats_revocations(this.__wbg_ptr);
|
|
2698
|
+
return BigInt.asUintN(64, ret);
|
|
2966
2699
|
}
|
|
2967
2700
|
}
|
|
2968
|
-
if (Symbol.dispose)
|
|
2701
|
+
if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
|
|
2969
2702
|
|
|
2970
2703
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2971
2704
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3009,62 +2742,94 @@ export class Summary {
|
|
|
3009
2742
|
}
|
|
3010
2743
|
if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
3011
2744
|
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
2745
|
+
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
2746
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2747
|
+
return ret;
|
|
2748
|
+
};
|
|
3015
2749
|
|
|
3016
|
-
export
|
|
2750
|
+
export function __wbg___wasm_refgen_toChangeId_bdad356172ca9cbc(arg0) {
|
|
2751
|
+
const ret = arg0.__wasm_refgen_toChangeId();
|
|
2752
|
+
_assertClass(ret, ChangeId);
|
|
2753
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2754
|
+
return ptr1;
|
|
2755
|
+
};
|
|
3017
2756
|
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
}
|
|
2757
|
+
export function __wbg___wasm_refgen_toDocument_970367efee8cb1d0(arg0) {
|
|
2758
|
+
const ret = arg0.__wasm_refgen_toDocument();
|
|
2759
|
+
_assertClass(ret, Document);
|
|
2760
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2761
|
+
return ptr1;
|
|
2762
|
+
};
|
|
3025
2763
|
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
2764
|
+
export function __wbg___wasm_refgen_toPeer_f5e24110e2d41e74(arg0) {
|
|
2765
|
+
const ret = arg0.__wasm_refgen_toPeer();
|
|
2766
|
+
_assertClass(ret, Peer);
|
|
2767
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2768
|
+
return ptr1;
|
|
2769
|
+
};
|
|
3032
2770
|
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
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;
|
|
2771
|
+
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
2772
|
+
const ret = debugString(arg1);
|
|
2773
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2774
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2775
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2776
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2777
|
+
};
|
|
3047
2778
|
|
|
3048
|
-
export function
|
|
3049
|
-
const ret =
|
|
2779
|
+
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
2780
|
+
const ret = typeof(arg0) === 'function';
|
|
3050
2781
|
return ret;
|
|
3051
2782
|
};
|
|
3052
2783
|
|
|
3053
|
-
export function
|
|
3054
|
-
const
|
|
2784
|
+
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
2785
|
+
const val = arg0;
|
|
2786
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3055
2787
|
return ret;
|
|
3056
2788
|
};
|
|
3057
2789
|
|
|
3058
|
-
export function
|
|
3059
|
-
const ret = arg0
|
|
2790
|
+
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
|
|
2791
|
+
const ret = typeof(arg0) === 'string';
|
|
3060
2792
|
return ret;
|
|
3061
|
-
}
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
|
|
2796
|
+
const ret = arg0 === undefined;
|
|
2797
|
+
return ret;
|
|
2798
|
+
};
|
|
3062
2799
|
|
|
3063
|
-
export function
|
|
2800
|
+
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
2801
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2802
|
+
};
|
|
2803
|
+
|
|
2804
|
+
export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0) {
|
|
2805
|
+
arg0._wbg_cb_unref();
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
export function __wbg_access_new(arg0) {
|
|
2809
|
+
const ret = Access.__wrap(arg0);
|
|
2810
|
+
return ret;
|
|
2811
|
+
};
|
|
2812
|
+
|
|
2813
|
+
export function __wbg_agent_new(arg0) {
|
|
2814
|
+
const ret = Agent.__wrap(arg0);
|
|
2815
|
+
return ret;
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
export function __wbg_archive_new(arg0) {
|
|
2819
|
+
const ret = Archive.__wrap(arg0);
|
|
2820
|
+
return ret;
|
|
2821
|
+
};
|
|
2822
|
+
|
|
2823
|
+
export function __wbg_call_525440f72fbfc0ea() { return handleError(function (arg0, arg1, arg2) {
|
|
3064
2824
|
const ret = arg0.call(arg1, arg2);
|
|
3065
2825
|
return ret;
|
|
3066
2826
|
}, arguments) };
|
|
3067
2827
|
|
|
2828
|
+
export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
|
|
2829
|
+
const ret = arg0.call(arg1);
|
|
2830
|
+
return ret;
|
|
2831
|
+
}, arguments) };
|
|
2832
|
+
|
|
3068
2833
|
export function __wbg_cannotparseed25519signingkey_new(arg0) {
|
|
3069
2834
|
const ret = CannotParseEd25519SigningKey.__wrap(arg0);
|
|
3070
2835
|
return ret;
|
|
@@ -3080,13 +2845,13 @@ export function __wbg_capability_new(arg0) {
|
|
|
3080
2845
|
return ret;
|
|
3081
2846
|
};
|
|
3082
2847
|
|
|
3083
|
-
export function
|
|
3084
|
-
const ret =
|
|
2848
|
+
export function __wbg_changeid_new(arg0) {
|
|
2849
|
+
const ret = ChangeId.__wrap(arg0);
|
|
3085
2850
|
return ret;
|
|
3086
2851
|
};
|
|
3087
2852
|
|
|
3088
|
-
export function
|
|
3089
|
-
const ret =
|
|
2853
|
+
export function __wbg_changeid_unwrap(arg0) {
|
|
2854
|
+
const ret = ChangeId.__unwrap(arg0);
|
|
3090
2855
|
return ret;
|
|
3091
2856
|
};
|
|
3092
2857
|
|
|
@@ -3100,10 +2865,29 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
|
3100
2865
|
return ret;
|
|
3101
2866
|
};
|
|
3102
2867
|
|
|
3103
|
-
export function
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
2868
|
+
export function __wbg_debug_68afdd09483bcd1b(arg0, arg1) {
|
|
2869
|
+
let deferred0_0;
|
|
2870
|
+
let deferred0_1;
|
|
2871
|
+
try {
|
|
2872
|
+
deferred0_0 = arg0;
|
|
2873
|
+
deferred0_1 = arg1;
|
|
2874
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2875
|
+
} finally {
|
|
2876
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
export function __wbg_debug_a4fe41d1a79aaba9(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2881
|
+
let deferred0_0;
|
|
2882
|
+
let deferred0_1;
|
|
2883
|
+
try {
|
|
2884
|
+
deferred0_0 = arg0;
|
|
2885
|
+
deferred0_1 = arg1;
|
|
2886
|
+
console.debug(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2887
|
+
} finally {
|
|
2888
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
3107
2891
|
|
|
3108
2892
|
export function __wbg_doccontentrefs_new(arg0) {
|
|
3109
2893
|
const ret = DocContentRefs.__wrap(arg0);
|
|
@@ -3115,11 +2899,6 @@ export function __wbg_document_new(arg0) {
|
|
|
3115
2899
|
return ret;
|
|
3116
2900
|
};
|
|
3117
2901
|
|
|
3118
|
-
export function __wbg_document_unwrap(arg0) {
|
|
3119
|
-
const ret = Document.__unwrap(arg0);
|
|
3120
|
-
return ret;
|
|
3121
|
-
};
|
|
3122
|
-
|
|
3123
2902
|
export function __wbg_encryptedcontentwithupdate_new(arg0) {
|
|
3124
2903
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3125
2904
|
return ret;
|
|
@@ -3137,26 +2916,45 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
3137
2916
|
}
|
|
3138
2917
|
};
|
|
3139
2918
|
|
|
2919
|
+
export function __wbg_error_be2b0d69ec6dd379(arg0, arg1) {
|
|
2920
|
+
let deferred0_0;
|
|
2921
|
+
let deferred0_1;
|
|
2922
|
+
try {
|
|
2923
|
+
deferred0_0 = arg0;
|
|
2924
|
+
deferred0_1 = arg1;
|
|
2925
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
2926
|
+
} finally {
|
|
2927
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2928
|
+
}
|
|
2929
|
+
};
|
|
2930
|
+
|
|
2931
|
+
export function __wbg_error_fa36d085107c9dd5(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2932
|
+
let deferred0_0;
|
|
2933
|
+
let deferred0_1;
|
|
2934
|
+
try {
|
|
2935
|
+
deferred0_0 = arg0;
|
|
2936
|
+
deferred0_1 = arg1;
|
|
2937
|
+
console.error(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2938
|
+
} finally {
|
|
2939
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2940
|
+
}
|
|
2941
|
+
};
|
|
2942
|
+
|
|
3140
2943
|
export function __wbg_event_new(arg0) {
|
|
3141
2944
|
const ret = Event.__wrap(arg0);
|
|
3142
2945
|
return ret;
|
|
3143
2946
|
};
|
|
3144
2947
|
|
|
3145
|
-
export function
|
|
2948
|
+
export function __wbg_exportKey_14f4c9c1691e79dc() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3146
2949
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
3147
2950
|
return ret;
|
|
3148
2951
|
}, arguments) };
|
|
3149
2952
|
|
|
3150
|
-
export function
|
|
2953
|
+
export function __wbg_generateKey_3530d4e1a89ee5b4() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3151
2954
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
3152
2955
|
return ret;
|
|
3153
2956
|
}, arguments) };
|
|
3154
2957
|
|
|
3155
|
-
export function __wbg_generatedocerror_new(arg0) {
|
|
3156
|
-
const ret = GenerateDocError.__wrap(arg0);
|
|
3157
|
-
return ret;
|
|
3158
|
-
};
|
|
3159
|
-
|
|
3160
2958
|
export function __wbg_generatewebcryptoerror_new(arg0) {
|
|
3161
2959
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3162
2960
|
return ret;
|
|
@@ -3166,17 +2964,22 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
|
|
|
3166
2964
|
arg0.getRandomValues(arg1);
|
|
3167
2965
|
}, arguments) };
|
|
3168
2966
|
|
|
3169
|
-
export function
|
|
2967
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
2968
|
+
const ret = arg0[arg1 >>> 0];
|
|
2969
|
+
return ret;
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
3170
2973
|
const ret = Reflect.get(arg0, arg1);
|
|
3171
2974
|
return ret;
|
|
3172
2975
|
}, arguments) };
|
|
3173
2976
|
|
|
3174
|
-
export function
|
|
2977
|
+
export function __wbg_get_private_key_0a3a263ca613b0c0(arg0) {
|
|
3175
2978
|
const ret = arg0.privateKey;
|
|
3176
2979
|
return ret;
|
|
3177
2980
|
};
|
|
3178
2981
|
|
|
3179
|
-
export function
|
|
2982
|
+
export function __wbg_get_public_key_1e2c11d159e34827(arg0) {
|
|
3180
2983
|
const ret = arg0.publicKey;
|
|
3181
2984
|
return ret;
|
|
3182
2985
|
};
|
|
@@ -3186,21 +2989,15 @@ export function __wbg_group_new(arg0) {
|
|
|
3186
2989
|
return ret;
|
|
3187
2990
|
};
|
|
3188
2991
|
|
|
3189
|
-
export function
|
|
3190
|
-
|
|
3191
|
-
try {
|
|
3192
|
-
result = arg0 instanceof Crypto;
|
|
3193
|
-
} catch (_) {
|
|
3194
|
-
result = false;
|
|
3195
|
-
}
|
|
3196
|
-
const ret = result;
|
|
2992
|
+
export function __wbg_individual_new(arg0) {
|
|
2993
|
+
const ret = Individual.__wrap(arg0);
|
|
3197
2994
|
return ret;
|
|
3198
2995
|
};
|
|
3199
2996
|
|
|
3200
|
-
export function
|
|
2997
|
+
export function __wbg_instanceof_Crypto_2574e69763b89701(arg0) {
|
|
3201
2998
|
let result;
|
|
3202
2999
|
try {
|
|
3203
|
-
result = arg0 instanceof
|
|
3000
|
+
result = arg0 instanceof Crypto;
|
|
3204
3001
|
} catch (_) {
|
|
3205
3002
|
result = false;
|
|
3206
3003
|
}
|
|
@@ -3208,33 +3005,68 @@ export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
|
|
|
3208
3005
|
return ret;
|
|
3209
3006
|
};
|
|
3210
3007
|
|
|
3211
|
-
export function
|
|
3212
|
-
const ret =
|
|
3008
|
+
export function __wbg_keyhive_new(arg0) {
|
|
3009
|
+
const ret = Keyhive.__wrap(arg0);
|
|
3213
3010
|
return ret;
|
|
3214
3011
|
};
|
|
3215
3012
|
|
|
3216
|
-
export function
|
|
3217
|
-
const ret =
|
|
3013
|
+
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
3014
|
+
const ret = arg0.length;
|
|
3218
3015
|
return ret;
|
|
3219
3016
|
};
|
|
3220
3017
|
|
|
3221
|
-
export function
|
|
3222
|
-
const ret =
|
|
3018
|
+
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
3019
|
+
const ret = arg0.length;
|
|
3223
3020
|
return ret;
|
|
3224
3021
|
};
|
|
3225
3022
|
|
|
3226
|
-
export function
|
|
3227
|
-
|
|
3228
|
-
|
|
3023
|
+
export function __wbg_log_98ea330cbdc64a56(arg0, arg1) {
|
|
3024
|
+
let deferred0_0;
|
|
3025
|
+
let deferred0_1;
|
|
3026
|
+
try {
|
|
3027
|
+
deferred0_0 = arg0;
|
|
3028
|
+
deferred0_1 = arg1;
|
|
3029
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
3030
|
+
} finally {
|
|
3031
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3032
|
+
}
|
|
3229
3033
|
};
|
|
3230
3034
|
|
|
3231
|
-
export function
|
|
3232
|
-
|
|
3233
|
-
|
|
3035
|
+
export function __wbg_log_f996de40931ab7d1(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3036
|
+
let deferred0_0;
|
|
3037
|
+
let deferred0_1;
|
|
3038
|
+
try {
|
|
3039
|
+
deferred0_0 = arg0;
|
|
3040
|
+
deferred0_1 = arg1;
|
|
3041
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3042
|
+
} finally {
|
|
3043
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3044
|
+
}
|
|
3234
3045
|
};
|
|
3235
3046
|
|
|
3236
|
-
export function
|
|
3237
|
-
|
|
3047
|
+
export function __wbg_mark_49688daf5a319979(arg0, arg1) {
|
|
3048
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
export function __wbg_measure_52555d98d3c0f41a() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3052
|
+
let deferred0_0;
|
|
3053
|
+
let deferred0_1;
|
|
3054
|
+
let deferred1_0;
|
|
3055
|
+
let deferred1_1;
|
|
3056
|
+
try {
|
|
3057
|
+
deferred0_0 = arg0;
|
|
3058
|
+
deferred0_1 = arg1;
|
|
3059
|
+
deferred1_0 = arg2;
|
|
3060
|
+
deferred1_1 = arg3;
|
|
3061
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
3062
|
+
} finally {
|
|
3063
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3064
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3065
|
+
}
|
|
3066
|
+
}, arguments) };
|
|
3067
|
+
|
|
3068
|
+
export function __wbg_membership_new(arg0) {
|
|
3069
|
+
const ret = Membership.__wrap(arg0);
|
|
3238
3070
|
return ret;
|
|
3239
3071
|
};
|
|
3240
3072
|
|
|
@@ -3243,14 +3075,14 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
|
3243
3075
|
return ret;
|
|
3244
3076
|
};
|
|
3245
3077
|
|
|
3246
|
-
export function
|
|
3078
|
+
export function __wbg_new_3c3d849046688a66(arg0, arg1) {
|
|
3247
3079
|
try {
|
|
3248
3080
|
var state0 = {a: arg0, b: arg1};
|
|
3249
3081
|
var cb0 = (arg0, arg1) => {
|
|
3250
3082
|
const a = state0.a;
|
|
3251
3083
|
state0.a = 0;
|
|
3252
3084
|
try {
|
|
3253
|
-
return
|
|
3085
|
+
return wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(a, state0.b, arg0, arg1);
|
|
3254
3086
|
} finally {
|
|
3255
3087
|
state0.a = a;
|
|
3256
3088
|
}
|
|
@@ -3262,7 +3094,7 @@ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
|
|
|
3262
3094
|
}
|
|
3263
3095
|
};
|
|
3264
3096
|
|
|
3265
|
-
export function
|
|
3097
|
+
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
3266
3098
|
const ret = new Uint8Array(arg0);
|
|
3267
3099
|
return ret;
|
|
3268
3100
|
};
|
|
@@ -3272,12 +3104,27 @@ export function __wbg_new_8a6f238a6ece86ea() {
|
|
|
3272
3104
|
return ret;
|
|
3273
3105
|
};
|
|
3274
3106
|
|
|
3275
|
-
export function
|
|
3107
|
+
export function __wbg_new_a7442b4b19c1a356(arg0, arg1) {
|
|
3108
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3109
|
+
return ret;
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
export function __wbg_new_e17d9f43105b08be() {
|
|
3113
|
+
const ret = new Array();
|
|
3114
|
+
return ret;
|
|
3115
|
+
};
|
|
3116
|
+
|
|
3117
|
+
export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
|
|
3118
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3119
|
+
return ret;
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
export function __wbg_new_no_args_ee98eee5275000a4(arg0, arg1) {
|
|
3276
3123
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3277
3124
|
return ret;
|
|
3278
3125
|
};
|
|
3279
3126
|
|
|
3280
|
-
export function
|
|
3127
|
+
export function __wbg_new_with_length_01aa0dc35aa13543(arg0) {
|
|
3281
3128
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3282
3129
|
return ret;
|
|
3283
3130
|
};
|
|
@@ -3287,29 +3134,29 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
|
3287
3134
|
return ret;
|
|
3288
3135
|
};
|
|
3289
3136
|
|
|
3290
|
-
export function __wbg_peer_unwrap(arg0) {
|
|
3291
|
-
const ret = Peer.__unwrap(arg0);
|
|
3292
|
-
return ret;
|
|
3293
|
-
};
|
|
3294
|
-
|
|
3295
3137
|
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
3296
3138
|
const ret = arg0.process;
|
|
3297
3139
|
return ret;
|
|
3298
3140
|
};
|
|
3299
3141
|
|
|
3300
|
-
export function
|
|
3142
|
+
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
3301
3143
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3302
3144
|
};
|
|
3303
3145
|
|
|
3304
|
-
export function
|
|
3305
|
-
|
|
3146
|
+
export function __wbg_push_df81a39d04db858c(arg0, arg1) {
|
|
3147
|
+
const ret = arg0.push(arg1);
|
|
3148
|
+
return ret;
|
|
3306
3149
|
};
|
|
3307
3150
|
|
|
3308
|
-
export function
|
|
3151
|
+
export function __wbg_queueMicrotask_34d692c25c47d05b(arg0) {
|
|
3309
3152
|
const ret = arg0.queueMicrotask;
|
|
3310
3153
|
return ret;
|
|
3311
3154
|
};
|
|
3312
3155
|
|
|
3156
|
+
export function __wbg_queueMicrotask_9d76cacb20c84d58(arg0) {
|
|
3157
|
+
queueMicrotask(arg0);
|
|
3158
|
+
};
|
|
3159
|
+
|
|
3313
3160
|
export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
|
|
3314
3161
|
arg0.randomFillSync(arg1);
|
|
3315
3162
|
}, arguments) };
|
|
@@ -3319,19 +3166,13 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
|
|
|
3319
3166
|
return ret;
|
|
3320
3167
|
}, arguments) };
|
|
3321
3168
|
|
|
3322
|
-
export function
|
|
3169
|
+
export function __wbg_resolve_caf97c30b83f7053(arg0) {
|
|
3323
3170
|
const ret = Promise.resolve(arg0);
|
|
3324
3171
|
return ret;
|
|
3325
3172
|
};
|
|
3326
3173
|
|
|
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;
|
|
3174
|
+
export function __wbg_set_name_d94846a29e626702(arg0, arg1, arg2) {
|
|
3175
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3335
3176
|
};
|
|
3336
3177
|
|
|
3337
3178
|
export function __wbg_sharekey_new(arg0) {
|
|
@@ -3339,7 +3180,7 @@ export function __wbg_sharekey_new(arg0) {
|
|
|
3339
3180
|
return ret;
|
|
3340
3181
|
};
|
|
3341
3182
|
|
|
3342
|
-
export function
|
|
3183
|
+
export function __wbg_sign_0077f2aabd37825a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3343
3184
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3344
3185
|
return ret;
|
|
3345
3186
|
}, arguments) };
|
|
@@ -3364,16 +3205,6 @@ export function __wbg_signer_new(arg0) {
|
|
|
3364
3205
|
return ret;
|
|
3365
3206
|
};
|
|
3366
3207
|
|
|
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
3208
|
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
3378
3209
|
const ret = arg1.stack;
|
|
3379
3210
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3382,32 +3213,37 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
3382
3213
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3383
3214
|
};
|
|
3384
3215
|
|
|
3385
|
-
export function
|
|
3216
|
+
export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e() {
|
|
3386
3217
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3387
3218
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3388
3219
|
};
|
|
3389
3220
|
|
|
3390
|
-
export function
|
|
3221
|
+
export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac() {
|
|
3391
3222
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3392
3223
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3393
3224
|
};
|
|
3394
3225
|
|
|
3395
|
-
export function
|
|
3226
|
+
export function __wbg_static_accessor_SELF_6fdf4b64710cc91b() {
|
|
3396
3227
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3397
3228
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3398
3229
|
};
|
|
3399
3230
|
|
|
3400
|
-
export function
|
|
3231
|
+
export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2() {
|
|
3401
3232
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3402
3233
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3403
3234
|
};
|
|
3404
3235
|
|
|
3405
|
-
export function
|
|
3236
|
+
export function __wbg_stats_new(arg0) {
|
|
3237
|
+
const ret = Stats.__wrap(arg0);
|
|
3238
|
+
return ret;
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
export function __wbg_subarray_480600f3d6a9f26c(arg0, arg1, arg2) {
|
|
3406
3242
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3407
3243
|
return ret;
|
|
3408
3244
|
};
|
|
3409
3245
|
|
|
3410
|
-
export function
|
|
3246
|
+
export function __wbg_subtle_a158c8cba320b8ed(arg0) {
|
|
3411
3247
|
const ret = arg0.subtle;
|
|
3412
3248
|
return ret;
|
|
3413
3249
|
};
|
|
@@ -3417,18 +3253,13 @@ export function __wbg_summary_new(arg0) {
|
|
|
3417
3253
|
return ret;
|
|
3418
3254
|
};
|
|
3419
3255
|
|
|
3420
|
-
export function
|
|
3421
|
-
const ret = arg0.then(arg1, arg2);
|
|
3422
|
-
return ret;
|
|
3423
|
-
};
|
|
3424
|
-
|
|
3425
|
-
export function __wbg_then_e22500defe16819f(arg0, arg1) {
|
|
3256
|
+
export function __wbg_then_4f46f6544e6b4a28(arg0, arg1) {
|
|
3426
3257
|
const ret = arg0.then(arg1);
|
|
3427
3258
|
return ret;
|
|
3428
3259
|
};
|
|
3429
3260
|
|
|
3430
|
-
export function
|
|
3431
|
-
const ret =
|
|
3261
|
+
export function __wbg_then_70d05cf780a18d77(arg0, arg1, arg2) {
|
|
3262
|
+
const ret = arg0.then(arg1, arg2);
|
|
3432
3263
|
return ret;
|
|
3433
3264
|
};
|
|
3434
3265
|
|
|
@@ -3437,65 +3268,80 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
|
3437
3268
|
return ret;
|
|
3438
3269
|
};
|
|
3439
3270
|
|
|
3440
|
-
export function
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3271
|
+
export function __wbg_warn_c6311e9cb983aa2a(arg0, arg1) {
|
|
3272
|
+
let deferred0_0;
|
|
3273
|
+
let deferred0_1;
|
|
3274
|
+
try {
|
|
3275
|
+
deferred0_0 = arg0;
|
|
3276
|
+
deferred0_1 = arg1;
|
|
3277
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
3278
|
+
} finally {
|
|
3279
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3445
3280
|
}
|
|
3446
|
-
const ret = false;
|
|
3447
|
-
return ret;
|
|
3448
3281
|
};
|
|
3449
3282
|
|
|
3450
|
-
export function
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3283
|
+
export function __wbg_warn_de3a09d072c895e6(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3284
|
+
let deferred0_0;
|
|
3285
|
+
let deferred0_1;
|
|
3286
|
+
try {
|
|
3287
|
+
deferred0_0 = arg0;
|
|
3288
|
+
deferred0_1 = arg1;
|
|
3289
|
+
console.warn(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3290
|
+
} finally {
|
|
3291
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3292
|
+
}
|
|
3456
3293
|
};
|
|
3457
3294
|
|
|
3458
|
-
export function
|
|
3459
|
-
|
|
3295
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
3296
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3297
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3460
3298
|
return ret;
|
|
3461
3299
|
};
|
|
3462
3300
|
|
|
3463
|
-
export function
|
|
3464
|
-
|
|
3465
|
-
|
|
3301
|
+
export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
|
|
3302
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3303
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3304
|
+
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
3305
|
+
const ret = v0;
|
|
3466
3306
|
return ret;
|
|
3467
3307
|
};
|
|
3468
3308
|
|
|
3469
|
-
export function
|
|
3470
|
-
|
|
3309
|
+
export function __wbindgen_cast_6300122139088863(arg0, arg1) {
|
|
3310
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3311
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3312
|
+
// Cast intrinsic for `Vector(NamedExternref("ChangeId")) -> Externref`.
|
|
3313
|
+
const ret = v0;
|
|
3471
3314
|
return ret;
|
|
3472
3315
|
};
|
|
3473
3316
|
|
|
3474
|
-
export function
|
|
3475
|
-
|
|
3317
|
+
export function __wbindgen_cast_6d311b4990fb968e(arg0, arg1) {
|
|
3318
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3319
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3320
|
+
// Cast intrinsic for `Vector(NamedExternref("Summary")) -> Externref`.
|
|
3321
|
+
const ret = v0;
|
|
3476
3322
|
return ret;
|
|
3477
3323
|
};
|
|
3478
3324
|
|
|
3479
|
-
export function
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
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);
|
|
3325
|
+
export function __wbindgen_cast_6e33e4871eebdb43(arg0, arg1) {
|
|
3326
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3327
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3328
|
+
// Cast intrinsic for `Vector(NamedExternref("Membership")) -> Externref`.
|
|
3329
|
+
const ret = v0;
|
|
3486
3330
|
return ret;
|
|
3487
3331
|
};
|
|
3488
3332
|
|
|
3489
|
-
export function
|
|
3490
|
-
|
|
3491
|
-
|
|
3333
|
+
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
3334
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3335
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3336
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
3337
|
+
const ret = v0;
|
|
3492
3338
|
return ret;
|
|
3493
3339
|
};
|
|
3494
3340
|
|
|
3495
|
-
export function
|
|
3341
|
+
export function __wbindgen_cast_a81e76255c07f2e8(arg0, arg1) {
|
|
3496
3342
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3497
3343
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3498
|
-
// Cast intrinsic for `Vector(NamedExternref("
|
|
3344
|
+
// Cast intrinsic for `Vector(NamedExternref("Capability")) -> Externref`.
|
|
3499
3345
|
const ret = v0;
|
|
3500
3346
|
return ret;
|
|
3501
3347
|
};
|
|
@@ -3508,6 +3354,12 @@ export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
|
|
|
3508
3354
|
return ret;
|
|
3509
3355
|
};
|
|
3510
3356
|
|
|
3357
|
+
export function __wbindgen_cast_bef74971622929eb(arg0, arg1) {
|
|
3358
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3359
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb938d8490fb5a71, wasm_bindgen__convert__closures_____invoke__h06e685b12973e965);
|
|
3360
|
+
return ret;
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3511
3363
|
export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
3512
3364
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3513
3365
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -3515,7 +3367,7 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
3515
3367
|
};
|
|
3516
3368
|
|
|
3517
3369
|
export function __wbindgen_init_externref_table() {
|
|
3518
|
-
const table = wasm.
|
|
3370
|
+
const table = wasm.__wbindgen_externrefs;
|
|
3519
3371
|
const offset = table.grow(4);
|
|
3520
3372
|
table.set(0, undefined);
|
|
3521
3373
|
table.set(offset + 0, undefined);
|