@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-slim/keyhive_wasm.js
CHANGED
|
@@ -30,24 +30,75 @@ function getStringFromWasm0(ptr, len) {
|
|
|
30
30
|
return decodeText(ptr, len);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return idx;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function handleError(f, args) {
|
|
40
|
-
try {
|
|
41
|
-
return f.apply(this, args);
|
|
42
|
-
} catch (e) {
|
|
43
|
-
const idx = addToExternrefTable0(e);
|
|
44
|
-
wasm.__wbindgen_exn_store(idx);
|
|
33
|
+
function _assertClass(instance, klass) {
|
|
34
|
+
if (!(instance instanceof klass)) {
|
|
35
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
45
36
|
}
|
|
46
37
|
}
|
|
47
38
|
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
function debugString(val) {
|
|
40
|
+
// primitive types
|
|
41
|
+
const type = typeof val;
|
|
42
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
43
|
+
return `${val}`;
|
|
44
|
+
}
|
|
45
|
+
if (type == 'string') {
|
|
46
|
+
return `"${val}"`;
|
|
47
|
+
}
|
|
48
|
+
if (type == 'symbol') {
|
|
49
|
+
const description = val.description;
|
|
50
|
+
if (description == null) {
|
|
51
|
+
return 'Symbol';
|
|
52
|
+
} else {
|
|
53
|
+
return `Symbol(${description})`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (type == 'function') {
|
|
57
|
+
const name = val.name;
|
|
58
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
59
|
+
return `Function(${name})`;
|
|
60
|
+
} else {
|
|
61
|
+
return 'Function';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// objects
|
|
65
|
+
if (Array.isArray(val)) {
|
|
66
|
+
const length = val.length;
|
|
67
|
+
let debug = '[';
|
|
68
|
+
if (length > 0) {
|
|
69
|
+
debug += debugString(val[0]);
|
|
70
|
+
}
|
|
71
|
+
for(let i = 1; i < length; i++) {
|
|
72
|
+
debug += ', ' + debugString(val[i]);
|
|
73
|
+
}
|
|
74
|
+
debug += ']';
|
|
75
|
+
return debug;
|
|
76
|
+
}
|
|
77
|
+
// Test for built-in
|
|
78
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
79
|
+
let className;
|
|
80
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
81
|
+
className = builtInMatches[1];
|
|
82
|
+
} else {
|
|
83
|
+
// Failed to match the standard '[object ClassName]'
|
|
84
|
+
return toString.call(val);
|
|
85
|
+
}
|
|
86
|
+
if (className == 'Object') {
|
|
87
|
+
// we're a user defined class or Object
|
|
88
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
89
|
+
// easier than looping through ownProperties of `val`.
|
|
90
|
+
try {
|
|
91
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
92
|
+
} catch (_) {
|
|
93
|
+
return 'Object';
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// errors
|
|
97
|
+
if (val instanceof Error) {
|
|
98
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
99
|
+
}
|
|
100
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
101
|
+
return className;
|
|
51
102
|
}
|
|
52
103
|
|
|
53
104
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -113,82 +164,44 @@ function getDataViewMemory0() {
|
|
|
113
164
|
return cachedDataViewMemory0;
|
|
114
165
|
}
|
|
115
166
|
|
|
167
|
+
function addToExternrefTable0(obj) {
|
|
168
|
+
const idx = wasm.__externref_table_alloc();
|
|
169
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
170
|
+
return idx;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function handleError(f, args) {
|
|
174
|
+
try {
|
|
175
|
+
return f.apply(this, args);
|
|
176
|
+
} catch (e) {
|
|
177
|
+
const idx = addToExternrefTable0(e);
|
|
178
|
+
wasm.__wbindgen_exn_store(idx);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
183
|
+
ptr = ptr >>> 0;
|
|
184
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
185
|
+
}
|
|
186
|
+
|
|
116
187
|
function isLikeNone(x) {
|
|
117
188
|
return x === undefined || x === null;
|
|
118
189
|
}
|
|
119
190
|
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (type == 'string') {
|
|
127
|
-
return `"${val}"`;
|
|
128
|
-
}
|
|
129
|
-
if (type == 'symbol') {
|
|
130
|
-
const description = val.description;
|
|
131
|
-
if (description == null) {
|
|
132
|
-
return 'Symbol';
|
|
133
|
-
} else {
|
|
134
|
-
return `Symbol(${description})`;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if (type == 'function') {
|
|
138
|
-
const name = val.name;
|
|
139
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
140
|
-
return `Function(${name})`;
|
|
141
|
-
} else {
|
|
142
|
-
return 'Function';
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
// objects
|
|
146
|
-
if (Array.isArray(val)) {
|
|
147
|
-
const length = val.length;
|
|
148
|
-
let debug = '[';
|
|
149
|
-
if (length > 0) {
|
|
150
|
-
debug += debugString(val[0]);
|
|
151
|
-
}
|
|
152
|
-
for(let i = 1; i < length; i++) {
|
|
153
|
-
debug += ', ' + debugString(val[i]);
|
|
154
|
-
}
|
|
155
|
-
debug += ']';
|
|
156
|
-
return debug;
|
|
157
|
-
}
|
|
158
|
-
// Test for built-in
|
|
159
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
160
|
-
let className;
|
|
161
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
162
|
-
className = builtInMatches[1];
|
|
163
|
-
} else {
|
|
164
|
-
// Failed to match the standard '[object ClassName]'
|
|
165
|
-
return toString.call(val);
|
|
166
|
-
}
|
|
167
|
-
if (className == 'Object') {
|
|
168
|
-
// we're a user defined class or Object
|
|
169
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
170
|
-
// easier than looping through ownProperties of `val`.
|
|
171
|
-
try {
|
|
172
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
173
|
-
} catch (_) {
|
|
174
|
-
return 'Object';
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
// errors
|
|
178
|
-
if (val instanceof Error) {
|
|
179
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
191
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
192
|
+
ptr = ptr >>> 0;
|
|
193
|
+
const mem = getDataViewMemory0();
|
|
194
|
+
const result = [];
|
|
195
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
196
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
180
197
|
}
|
|
181
|
-
|
|
182
|
-
return
|
|
198
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
199
|
+
return result;
|
|
183
200
|
}
|
|
184
201
|
|
|
185
202
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
186
203
|
? { register: () => {}, unregister: () => {} }
|
|
187
|
-
: new FinalizationRegistry(
|
|
188
|
-
state => {
|
|
189
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
190
|
-
}
|
|
191
|
-
);
|
|
204
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
192
205
|
|
|
193
206
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
194
207
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -203,30 +216,21 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
203
216
|
try {
|
|
204
217
|
return f(a, state.b, ...args);
|
|
205
218
|
} finally {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
219
|
+
state.a = a;
|
|
220
|
+
real._wbg_cb_unref();
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
real._wbg_cb_unref = () => {
|
|
224
|
+
if (--state.cnt === 0) {
|
|
225
|
+
state.dtor(state.a, state.b);
|
|
226
|
+
state.a = 0;
|
|
227
|
+
CLOSURE_DTORS.unregister(state);
|
|
212
228
|
}
|
|
213
229
|
};
|
|
214
|
-
real.original = state;
|
|
215
230
|
CLOSURE_DTORS.register(real, state, state);
|
|
216
231
|
return real;
|
|
217
232
|
}
|
|
218
233
|
|
|
219
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
220
|
-
ptr = ptr >>> 0;
|
|
221
|
-
const mem = getDataViewMemory0();
|
|
222
|
-
const result = [];
|
|
223
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
224
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
225
|
-
}
|
|
226
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
227
|
-
return result;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
234
|
function passArray8ToWasm0(arg, malloc) {
|
|
231
235
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
232
236
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -235,17 +239,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
235
239
|
}
|
|
236
240
|
|
|
237
241
|
function takeFromExternrefTable0(idx) {
|
|
238
|
-
const value = wasm.
|
|
242
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
239
243
|
wasm.__externref_table_dealloc(idx);
|
|
240
244
|
return value;
|
|
241
245
|
}
|
|
242
246
|
|
|
243
|
-
function _assertClass(instance, klass) {
|
|
244
|
-
if (!(instance instanceof klass)) {
|
|
245
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
247
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
250
248
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
251
249
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -265,12 +263,12 @@ export function setPanicHook() {
|
|
|
265
263
|
wasm.setPanicHook();
|
|
266
264
|
}
|
|
267
265
|
|
|
268
|
-
function
|
|
269
|
-
wasm.
|
|
266
|
+
function wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2) {
|
|
267
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2);
|
|
270
268
|
}
|
|
271
269
|
|
|
272
|
-
function
|
|
273
|
-
wasm.
|
|
270
|
+
function wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3) {
|
|
271
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3);
|
|
274
272
|
}
|
|
275
273
|
|
|
276
274
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -326,49 +324,6 @@ export class Access {
|
|
|
326
324
|
}
|
|
327
325
|
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
328
326
|
|
|
329
|
-
const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
330
|
-
? { register: () => {}, unregister: () => {} }
|
|
331
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_addmembererror_free(ptr >>> 0, 1));
|
|
332
|
-
|
|
333
|
-
export class AddMemberError {
|
|
334
|
-
|
|
335
|
-
static __wrap(ptr) {
|
|
336
|
-
ptr = ptr >>> 0;
|
|
337
|
-
const obj = Object.create(AddMemberError.prototype);
|
|
338
|
-
obj.__wbg_ptr = ptr;
|
|
339
|
-
AddMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
340
|
-
return obj;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
__destroy_into_raw() {
|
|
344
|
-
const ptr = this.__wbg_ptr;
|
|
345
|
-
this.__wbg_ptr = 0;
|
|
346
|
-
AddMemberErrorFinalization.unregister(this);
|
|
347
|
-
return ptr;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
free() {
|
|
351
|
-
const ptr = this.__destroy_into_raw();
|
|
352
|
-
wasm.__wbg_addmembererror_free(ptr, 0);
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @returns {string}
|
|
356
|
-
*/
|
|
357
|
-
message() {
|
|
358
|
-
let deferred1_0;
|
|
359
|
-
let deferred1_1;
|
|
360
|
-
try {
|
|
361
|
-
const ret = wasm.addmembererror_message(this.__wbg_ptr);
|
|
362
|
-
deferred1_0 = ret[0];
|
|
363
|
-
deferred1_1 = ret[1];
|
|
364
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
365
|
-
} finally {
|
|
366
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
|
|
371
|
-
|
|
372
327
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
373
328
|
? { register: () => {}, unregister: () => {} }
|
|
374
329
|
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
@@ -495,17 +450,14 @@ export class Archive {
|
|
|
495
450
|
* @param {CiphertextStore} ciphertext_store
|
|
496
451
|
* @param {Signer} signer
|
|
497
452
|
* @param {Function} event_handler
|
|
498
|
-
* @returns {Keyhive}
|
|
453
|
+
* @returns {Promise<Keyhive>}
|
|
499
454
|
*/
|
|
500
455
|
tryToKeyhive(ciphertext_store, signer, event_handler) {
|
|
501
456
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
502
457
|
var ptr0 = ciphertext_store.__destroy_into_raw();
|
|
503
458
|
_assertClass(signer, Signer);
|
|
504
459
|
const ret = wasm.archive_tryToKeyhive(this.__wbg_ptr, ptr0, signer.__wbg_ptr, event_handler);
|
|
505
|
-
|
|
506
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
507
|
-
}
|
|
508
|
-
return Keyhive.__wrap(ret[0]);
|
|
460
|
+
return ret;
|
|
509
461
|
}
|
|
510
462
|
}
|
|
511
463
|
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
@@ -658,22 +610,22 @@ export class CgkaOperation {
|
|
|
658
610
|
}
|
|
659
611
|
if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
|
|
660
612
|
|
|
661
|
-
const
|
|
613
|
+
const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
662
614
|
? { register: () => {}, unregister: () => {} }
|
|
663
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
615
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
|
|
664
616
|
|
|
665
|
-
export class
|
|
617
|
+
export class ChangeId {
|
|
666
618
|
|
|
667
619
|
static __wrap(ptr) {
|
|
668
620
|
ptr = ptr >>> 0;
|
|
669
|
-
const obj = Object.create(
|
|
621
|
+
const obj = Object.create(ChangeId.prototype);
|
|
670
622
|
obj.__wbg_ptr = ptr;
|
|
671
|
-
|
|
623
|
+
ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
672
624
|
return obj;
|
|
673
625
|
}
|
|
674
626
|
|
|
675
627
|
static __unwrap(jsValue) {
|
|
676
|
-
if (!(jsValue instanceof
|
|
628
|
+
if (!(jsValue instanceof ChangeId)) {
|
|
677
629
|
return 0;
|
|
678
630
|
}
|
|
679
631
|
return jsValue.__destroy_into_raw();
|
|
@@ -682,13 +634,13 @@ export class ChangeRef {
|
|
|
682
634
|
__destroy_into_raw() {
|
|
683
635
|
const ptr = this.__wbg_ptr;
|
|
684
636
|
this.__wbg_ptr = 0;
|
|
685
|
-
|
|
637
|
+
ChangeIdFinalization.unregister(this);
|
|
686
638
|
return ptr;
|
|
687
639
|
}
|
|
688
640
|
|
|
689
641
|
free() {
|
|
690
642
|
const ptr = this.__destroy_into_raw();
|
|
691
|
-
wasm.
|
|
643
|
+
wasm.__wbg_changeid_free(ptr, 0);
|
|
692
644
|
}
|
|
693
645
|
/**
|
|
694
646
|
* @param {Uint8Array} bytes
|
|
@@ -696,22 +648,30 @@ export class ChangeRef {
|
|
|
696
648
|
constructor(bytes) {
|
|
697
649
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
698
650
|
const len0 = WASM_VECTOR_LEN;
|
|
699
|
-
const ret = wasm.
|
|
651
|
+
const ret = wasm.changeid_new(ptr0, len0);
|
|
700
652
|
this.__wbg_ptr = ret >>> 0;
|
|
701
|
-
|
|
653
|
+
ChangeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
702
654
|
return this;
|
|
703
655
|
}
|
|
704
656
|
/**
|
|
705
657
|
* @returns {Uint8Array}
|
|
706
658
|
*/
|
|
707
659
|
get bytes() {
|
|
708
|
-
const ret = wasm.
|
|
660
|
+
const ret = wasm.changeid_bytes(this.__wbg_ptr);
|
|
709
661
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
710
662
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
711
663
|
return v1;
|
|
712
664
|
}
|
|
665
|
+
/**
|
|
666
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
667
|
+
* @returns {ChangeId}
|
|
668
|
+
*/
|
|
669
|
+
__wasm_refgen_toChangeId() {
|
|
670
|
+
const ret = wasm.changeid___wasm_refgen_toChangeId(this.__wbg_ptr);
|
|
671
|
+
return ChangeId.__wrap(ret);
|
|
672
|
+
}
|
|
713
673
|
}
|
|
714
|
-
if (Symbol.dispose)
|
|
674
|
+
if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
|
|
715
675
|
|
|
716
676
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
717
677
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -804,6 +764,13 @@ export class ContactCard {
|
|
|
804
764
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
805
765
|
return v1;
|
|
806
766
|
}
|
|
767
|
+
/**
|
|
768
|
+
* @returns {Agent}
|
|
769
|
+
*/
|
|
770
|
+
toAgent() {
|
|
771
|
+
const ret = wasm.contactcard_toAgent(this.__wbg_ptr);
|
|
772
|
+
return Agent.__wrap(ret);
|
|
773
|
+
}
|
|
807
774
|
/**
|
|
808
775
|
* @param {string} json
|
|
809
776
|
* @returns {ContactCard}
|
|
@@ -897,26 +864,6 @@ export class Delegation {
|
|
|
897
864
|
}
|
|
898
865
|
if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
|
|
899
866
|
|
|
900
|
-
const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
901
|
-
? { register: () => {}, unregister: () => {} }
|
|
902
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_delegationerror_free(ptr >>> 0, 1));
|
|
903
|
-
|
|
904
|
-
export class DelegationError {
|
|
905
|
-
|
|
906
|
-
__destroy_into_raw() {
|
|
907
|
-
const ptr = this.__wbg_ptr;
|
|
908
|
-
this.__wbg_ptr = 0;
|
|
909
|
-
DelegationErrorFinalization.unregister(this);
|
|
910
|
-
return ptr;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
free() {
|
|
914
|
-
const ptr = this.__destroy_into_raw();
|
|
915
|
-
wasm.__wbg_delegationerror_free(ptr, 0);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
|
|
919
|
-
|
|
920
867
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
921
868
|
? { register: () => {}, unregister: () => {} }
|
|
922
869
|
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
@@ -944,7 +891,7 @@ export class DocContentRefs {
|
|
|
944
891
|
}
|
|
945
892
|
/**
|
|
946
893
|
* @param {DocumentId} doc_id
|
|
947
|
-
* @param {
|
|
894
|
+
* @param {ChangeId[]} change_hashes
|
|
948
895
|
*/
|
|
949
896
|
constructor(doc_id, change_hashes) {
|
|
950
897
|
_assertClass(doc_id, DocumentId);
|
|
@@ -960,12 +907,14 @@ export class DocContentRefs {
|
|
|
960
907
|
return this;
|
|
961
908
|
}
|
|
962
909
|
/**
|
|
963
|
-
* @param {
|
|
910
|
+
* @param {ChangeId} hash
|
|
911
|
+
* @returns {Promise<void>}
|
|
964
912
|
*/
|
|
965
|
-
|
|
966
|
-
_assertClass(hash,
|
|
913
|
+
addChangeId(hash) {
|
|
914
|
+
_assertClass(hash, ChangeId);
|
|
967
915
|
var ptr0 = hash.__destroy_into_raw();
|
|
968
|
-
wasm.
|
|
916
|
+
const ret = wasm.doccontentrefs_addChangeId(this.__wbg_ptr, ptr0);
|
|
917
|
+
return ret;
|
|
969
918
|
}
|
|
970
919
|
/**
|
|
971
920
|
* @returns {DocumentId}
|
|
@@ -975,13 +924,11 @@ export class DocContentRefs {
|
|
|
975
924
|
return DocumentId.__wrap(ret);
|
|
976
925
|
}
|
|
977
926
|
/**
|
|
978
|
-
* @returns {
|
|
927
|
+
* @returns {Promise<ChangeId[]>}
|
|
979
928
|
*/
|
|
980
929
|
get change_hashes() {
|
|
981
930
|
const ret = wasm.doccontentrefs_change_hashes(this.__wbg_ptr);
|
|
982
|
-
|
|
983
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
984
|
-
return v1;
|
|
931
|
+
return ret;
|
|
985
932
|
}
|
|
986
933
|
}
|
|
987
934
|
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
@@ -1000,13 +947,6 @@ export class Document {
|
|
|
1000
947
|
return obj;
|
|
1001
948
|
}
|
|
1002
949
|
|
|
1003
|
-
static __unwrap(jsValue) {
|
|
1004
|
-
if (!(jsValue instanceof Document)) {
|
|
1005
|
-
return 0;
|
|
1006
|
-
}
|
|
1007
|
-
return jsValue.__destroy_into_raw();
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
950
|
__destroy_into_raw() {
|
|
1011
951
|
const ptr = this.__wbg_ptr;
|
|
1012
952
|
this.__wbg_ptr = 0;
|
|
@@ -1022,7 +962,7 @@ export class Document {
|
|
|
1022
962
|
* @returns {Identifier}
|
|
1023
963
|
*/
|
|
1024
964
|
get id() {
|
|
1025
|
-
const ret = wasm.
|
|
965
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1026
966
|
return Identifier.__wrap(ret);
|
|
1027
967
|
}
|
|
1028
968
|
/**
|
|
@@ -1046,6 +986,21 @@ export class Document {
|
|
|
1046
986
|
const ret = wasm.document_toAgent(this.__wbg_ptr);
|
|
1047
987
|
return Agent.__wrap(ret);
|
|
1048
988
|
}
|
|
989
|
+
/**
|
|
990
|
+
* @returns {Membered}
|
|
991
|
+
*/
|
|
992
|
+
toMembered() {
|
|
993
|
+
const ret = wasm.document_toMembered(this.__wbg_ptr);
|
|
994
|
+
return Membered.__wrap(ret);
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
998
|
+
* @returns {Document}
|
|
999
|
+
*/
|
|
1000
|
+
__wasm_refgen_toDocument() {
|
|
1001
|
+
const ret = wasm.document___wasm_refgen_toDocument(this.__wbg_ptr);
|
|
1002
|
+
return Document.__wrap(ret);
|
|
1003
|
+
}
|
|
1049
1004
|
}
|
|
1050
1005
|
if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
|
|
1051
1006
|
|
|
@@ -1091,11 +1046,11 @@ export class DocumentId {
|
|
|
1091
1046
|
/**
|
|
1092
1047
|
* @returns {string}
|
|
1093
1048
|
*/
|
|
1094
|
-
|
|
1049
|
+
toString() {
|
|
1095
1050
|
let deferred1_0;
|
|
1096
1051
|
let deferred1_1;
|
|
1097
1052
|
try {
|
|
1098
|
-
const ret = wasm.
|
|
1053
|
+
const ret = wasm.documentid_toString(this.__wbg_ptr);
|
|
1099
1054
|
deferred1_0 = ret[0];
|
|
1100
1055
|
deferred1_1 = ret[1];
|
|
1101
1056
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1314,51 +1269,22 @@ export class Event {
|
|
|
1314
1269
|
const ret = wasm.event_tryIntoSignedRevocation(this.__wbg_ptr);
|
|
1315
1270
|
return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
|
|
1316
1271
|
}
|
|
1317
|
-
}
|
|
1318
|
-
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1319
|
-
|
|
1320
|
-
const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1321
|
-
? { register: () => {}, unregister: () => {} }
|
|
1322
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_generatedocerror_free(ptr >>> 0, 1));
|
|
1323
|
-
|
|
1324
|
-
export class GenerateDocError {
|
|
1325
|
-
|
|
1326
|
-
static __wrap(ptr) {
|
|
1327
|
-
ptr = ptr >>> 0;
|
|
1328
|
-
const obj = Object.create(GenerateDocError.prototype);
|
|
1329
|
-
obj.__wbg_ptr = ptr;
|
|
1330
|
-
GenerateDocErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1331
|
-
return obj;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
__destroy_into_raw() {
|
|
1335
|
-
const ptr = this.__wbg_ptr;
|
|
1336
|
-
this.__wbg_ptr = 0;
|
|
1337
|
-
GenerateDocErrorFinalization.unregister(this);
|
|
1338
|
-
return ptr;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
free() {
|
|
1342
|
-
const ptr = this.__destroy_into_raw();
|
|
1343
|
-
wasm.__wbg_generatedocerror_free(ptr, 0);
|
|
1344
|
-
}
|
|
1345
1272
|
/**
|
|
1346
|
-
*
|
|
1273
|
+
* Converts the underlying [`Event`] to a [`StaticEvent`] and then
|
|
1274
|
+
* serializes it.
|
|
1275
|
+
* @returns {Uint8Array}
|
|
1347
1276
|
*/
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
const ret = wasm.generatedocerror_message(this.__wbg_ptr);
|
|
1353
|
-
deferred1_0 = ret[0];
|
|
1354
|
-
deferred1_1 = ret[1];
|
|
1355
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1356
|
-
} finally {
|
|
1357
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1277
|
+
toBytes() {
|
|
1278
|
+
const ret = wasm.event_toBytes(this.__wbg_ptr);
|
|
1279
|
+
if (ret[3]) {
|
|
1280
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1358
1281
|
}
|
|
1282
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1283
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1284
|
+
return v1;
|
|
1359
1285
|
}
|
|
1360
1286
|
}
|
|
1361
|
-
if (Symbol.dispose)
|
|
1287
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1362
1288
|
|
|
1363
1289
|
const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1364
1290
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1403,41 +1329,6 @@ export class GenerateWebCryptoError {
|
|
|
1403
1329
|
}
|
|
1404
1330
|
if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
|
|
1405
1331
|
|
|
1406
|
-
const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1407
|
-
? { register: () => {}, unregister: () => {} }
|
|
1408
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_getciphertexterror_free(ptr >>> 0, 1));
|
|
1409
|
-
|
|
1410
|
-
export class GetCiphertextError {
|
|
1411
|
-
|
|
1412
|
-
__destroy_into_raw() {
|
|
1413
|
-
const ptr = this.__wbg_ptr;
|
|
1414
|
-
this.__wbg_ptr = 0;
|
|
1415
|
-
GetCiphertextErrorFinalization.unregister(this);
|
|
1416
|
-
return ptr;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
free() {
|
|
1420
|
-
const ptr = this.__destroy_into_raw();
|
|
1421
|
-
wasm.__wbg_getciphertexterror_free(ptr, 0);
|
|
1422
|
-
}
|
|
1423
|
-
/**
|
|
1424
|
-
* @returns {string}
|
|
1425
|
-
*/
|
|
1426
|
-
get message() {
|
|
1427
|
-
let deferred1_0;
|
|
1428
|
-
let deferred1_1;
|
|
1429
|
-
try {
|
|
1430
|
-
const ret = wasm.getciphertexterror_message(this.__wbg_ptr);
|
|
1431
|
-
deferred1_0 = ret[0];
|
|
1432
|
-
deferred1_1 = ret[1];
|
|
1433
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1434
|
-
} finally {
|
|
1435
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
|
|
1440
|
-
|
|
1441
1332
|
const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1442
1333
|
? { register: () => {}, unregister: () => {} }
|
|
1443
1334
|
: new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
|
|
@@ -1467,24 +1358,22 @@ export class Group {
|
|
|
1467
1358
|
* @returns {Identifier}
|
|
1468
1359
|
*/
|
|
1469
1360
|
get id() {
|
|
1470
|
-
const ret = wasm.
|
|
1361
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1471
1362
|
return Identifier.__wrap(ret);
|
|
1472
1363
|
}
|
|
1473
1364
|
/**
|
|
1474
1365
|
* @returns {GroupId}
|
|
1475
1366
|
*/
|
|
1476
1367
|
get groupId() {
|
|
1477
|
-
const ret = wasm.
|
|
1368
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1478
1369
|
return GroupId.__wrap(ret);
|
|
1479
1370
|
}
|
|
1480
1371
|
/**
|
|
1481
|
-
* @returns {Capability[]}
|
|
1372
|
+
* @returns {Promise<Capability[]>}
|
|
1482
1373
|
*/
|
|
1483
|
-
|
|
1374
|
+
members() {
|
|
1484
1375
|
const ret = wasm.group_members(this.__wbg_ptr);
|
|
1485
|
-
|
|
1486
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1487
|
-
return v1;
|
|
1376
|
+
return ret;
|
|
1488
1377
|
}
|
|
1489
1378
|
/**
|
|
1490
1379
|
* @returns {Peer}
|
|
@@ -1507,6 +1396,14 @@ export class Group {
|
|
|
1507
1396
|
const ret = wasm.group_toMembered(this.__wbg_ptr);
|
|
1508
1397
|
return Membered.__wrap(ret);
|
|
1509
1398
|
}
|
|
1399
|
+
/**
|
|
1400
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
1401
|
+
* @returns {Group}
|
|
1402
|
+
*/
|
|
1403
|
+
__wasm_refgen_toGroup() {
|
|
1404
|
+
const ret = wasm.group___wasm_refgen_toGroup(this.__wbg_ptr);
|
|
1405
|
+
return Group.__wrap(ret);
|
|
1406
|
+
}
|
|
1510
1407
|
}
|
|
1511
1408
|
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1512
1409
|
|
|
@@ -1709,18 +1606,18 @@ export class Individual {
|
|
|
1709
1606
|
* @returns {IndividualId}
|
|
1710
1607
|
*/
|
|
1711
1608
|
get individualId() {
|
|
1712
|
-
const ret = wasm.
|
|
1609
|
+
const ret = wasm.individual_id(this.__wbg_ptr);
|
|
1713
1610
|
return IndividualId.__wrap(ret);
|
|
1714
1611
|
}
|
|
1715
1612
|
/**
|
|
1716
1613
|
* @param {DocumentId} doc_id
|
|
1717
|
-
* @returns {ShareKey}
|
|
1614
|
+
* @returns {Promise<ShareKey>}
|
|
1718
1615
|
*/
|
|
1719
1616
|
pickPrekey(doc_id) {
|
|
1720
1617
|
_assertClass(doc_id, DocumentId);
|
|
1721
1618
|
var ptr0 = doc_id.__destroy_into_raw();
|
|
1722
1619
|
const ret = wasm.individual_pickPrekey(this.__wbg_ptr, ptr0);
|
|
1723
|
-
return
|
|
1620
|
+
return ret;
|
|
1724
1621
|
}
|
|
1725
1622
|
}
|
|
1726
1623
|
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
@@ -1782,118 +1679,6 @@ export class Invocation {
|
|
|
1782
1679
|
}
|
|
1783
1680
|
if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
|
|
1784
1681
|
|
|
1785
|
-
const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1786
|
-
? { register: () => {}, unregister: () => {} }
|
|
1787
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsdecrypterror_free(ptr >>> 0, 1));
|
|
1788
|
-
|
|
1789
|
-
export class JsDecryptError {
|
|
1790
|
-
|
|
1791
|
-
static __wrap(ptr) {
|
|
1792
|
-
ptr = ptr >>> 0;
|
|
1793
|
-
const obj = Object.create(JsDecryptError.prototype);
|
|
1794
|
-
obj.__wbg_ptr = ptr;
|
|
1795
|
-
JsDecryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1796
|
-
return obj;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
__destroy_into_raw() {
|
|
1800
|
-
const ptr = this.__wbg_ptr;
|
|
1801
|
-
this.__wbg_ptr = 0;
|
|
1802
|
-
JsDecryptErrorFinalization.unregister(this);
|
|
1803
|
-
return ptr;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
free() {
|
|
1807
|
-
const ptr = this.__destroy_into_raw();
|
|
1808
|
-
wasm.__wbg_jsdecrypterror_free(ptr, 0);
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
|
|
1812
|
-
|
|
1813
|
-
const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1814
|
-
? { register: () => {}, unregister: () => {} }
|
|
1815
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsencrypterror_free(ptr >>> 0, 1));
|
|
1816
|
-
|
|
1817
|
-
export class JsEncryptError {
|
|
1818
|
-
|
|
1819
|
-
static __wrap(ptr) {
|
|
1820
|
-
ptr = ptr >>> 0;
|
|
1821
|
-
const obj = Object.create(JsEncryptError.prototype);
|
|
1822
|
-
obj.__wbg_ptr = ptr;
|
|
1823
|
-
JsEncryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1824
|
-
return obj;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
__destroy_into_raw() {
|
|
1828
|
-
const ptr = this.__wbg_ptr;
|
|
1829
|
-
this.__wbg_ptr = 0;
|
|
1830
|
-
JsEncryptErrorFinalization.unregister(this);
|
|
1831
|
-
return ptr;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
free() {
|
|
1835
|
-
const ptr = this.__destroy_into_raw();
|
|
1836
|
-
wasm.__wbg_jsencrypterror_free(ptr, 0);
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
|
|
1840
|
-
|
|
1841
|
-
const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1842
|
-
? { register: () => {}, unregister: () => {} }
|
|
1843
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceiveprekeyoperror_free(ptr >>> 0, 1));
|
|
1844
|
-
|
|
1845
|
-
export class JsReceivePreKeyOpError {
|
|
1846
|
-
|
|
1847
|
-
static __wrap(ptr) {
|
|
1848
|
-
ptr = ptr >>> 0;
|
|
1849
|
-
const obj = Object.create(JsReceivePreKeyOpError.prototype);
|
|
1850
|
-
obj.__wbg_ptr = ptr;
|
|
1851
|
-
JsReceivePreKeyOpErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1852
|
-
return obj;
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
__destroy_into_raw() {
|
|
1856
|
-
const ptr = this.__wbg_ptr;
|
|
1857
|
-
this.__wbg_ptr = 0;
|
|
1858
|
-
JsReceivePreKeyOpErrorFinalization.unregister(this);
|
|
1859
|
-
return ptr;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
free() {
|
|
1863
|
-
const ptr = this.__destroy_into_raw();
|
|
1864
|
-
wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
|
|
1868
|
-
|
|
1869
|
-
const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1870
|
-
? { register: () => {}, unregister: () => {} }
|
|
1871
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceivestaticeventerror_free(ptr >>> 0, 1));
|
|
1872
|
-
|
|
1873
|
-
export class JsReceiveStaticEventError {
|
|
1874
|
-
|
|
1875
|
-
static __wrap(ptr) {
|
|
1876
|
-
ptr = ptr >>> 0;
|
|
1877
|
-
const obj = Object.create(JsReceiveStaticEventError.prototype);
|
|
1878
|
-
obj.__wbg_ptr = ptr;
|
|
1879
|
-
JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1880
|
-
return obj;
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
__destroy_into_raw() {
|
|
1884
|
-
const ptr = this.__wbg_ptr;
|
|
1885
|
-
this.__wbg_ptr = 0;
|
|
1886
|
-
JsReceiveStaticEventErrorFinalization.unregister(this);
|
|
1887
|
-
return ptr;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
free() {
|
|
1891
|
-
const ptr = this.__destroy_into_raw();
|
|
1892
|
-
wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
|
|
1896
|
-
|
|
1897
1682
|
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1898
1683
|
? { register: () => {}, unregister: () => {} }
|
|
1899
1684
|
: new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
|
|
@@ -1928,8 +1713,7 @@ export class Keyhive {
|
|
|
1928
1713
|
static init(signer, ciphertext_store, event_handler) {
|
|
1929
1714
|
_assertClass(signer, Signer);
|
|
1930
1715
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
1931
|
-
|
|
1932
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ptr0, event_handler);
|
|
1716
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1933
1717
|
return ret;
|
|
1934
1718
|
}
|
|
1935
1719
|
/**
|
|
@@ -1946,6 +1730,13 @@ export class Keyhive {
|
|
|
1946
1730
|
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
1947
1731
|
return IndividualId.__wrap(ret);
|
|
1948
1732
|
}
|
|
1733
|
+
/**
|
|
1734
|
+
* @returns {Promise<Individual>}
|
|
1735
|
+
*/
|
|
1736
|
+
get individual() {
|
|
1737
|
+
const ret = wasm.keyhive_individual(this.__wbg_ptr);
|
|
1738
|
+
return ret;
|
|
1739
|
+
}
|
|
1949
1740
|
/**
|
|
1950
1741
|
* @returns {string}
|
|
1951
1742
|
*/
|
|
@@ -1962,25 +1753,25 @@ export class Keyhive {
|
|
|
1962
1753
|
}
|
|
1963
1754
|
}
|
|
1964
1755
|
/**
|
|
1965
|
-
* @param {Peer[]}
|
|
1756
|
+
* @param {Peer[]} js_coparents
|
|
1966
1757
|
* @returns {Promise<Group>}
|
|
1967
1758
|
*/
|
|
1968
|
-
generateGroup(
|
|
1969
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1759
|
+
generateGroup(js_coparents) {
|
|
1760
|
+
const ptr0 = passArrayJsValueToWasm0(js_coparents, wasm.__wbindgen_malloc);
|
|
1970
1761
|
const len0 = WASM_VECTOR_LEN;
|
|
1971
1762
|
const ret = wasm.keyhive_generateGroup(this.__wbg_ptr, ptr0, len0);
|
|
1972
1763
|
return ret;
|
|
1973
1764
|
}
|
|
1974
1765
|
/**
|
|
1975
1766
|
* @param {Peer[]} coparents
|
|
1976
|
-
* @param {
|
|
1977
|
-
* @param {
|
|
1767
|
+
* @param {ChangeId} initial_content_ref_head
|
|
1768
|
+
* @param {ChangeId[]} more_initial_content_refs
|
|
1978
1769
|
* @returns {Promise<Document>}
|
|
1979
1770
|
*/
|
|
1980
1771
|
generateDocument(coparents, initial_content_ref_head, more_initial_content_refs) {
|
|
1981
1772
|
const ptr0 = passArrayJsValueToWasm0(coparents, wasm.__wbindgen_malloc);
|
|
1982
1773
|
const len0 = WASM_VECTOR_LEN;
|
|
1983
|
-
_assertClass(initial_content_ref_head,
|
|
1774
|
+
_assertClass(initial_content_ref_head, ChangeId);
|
|
1984
1775
|
var ptr1 = initial_content_ref_head.__destroy_into_raw();
|
|
1985
1776
|
const ptr2 = passArrayJsValueToWasm0(more_initial_content_refs, wasm.__wbindgen_malloc);
|
|
1986
1777
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -1999,17 +1790,17 @@ export class Keyhive {
|
|
|
1999
1790
|
}
|
|
2000
1791
|
/**
|
|
2001
1792
|
* @param {Document} doc
|
|
2002
|
-
* @param {
|
|
2003
|
-
* @param {
|
|
1793
|
+
* @param {ChangeId} content_ref
|
|
1794
|
+
* @param {ChangeId[]} js_pred_refs
|
|
2004
1795
|
* @param {Uint8Array} content
|
|
2005
1796
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2006
1797
|
*/
|
|
2007
|
-
tryEncrypt(doc, content_ref,
|
|
1798
|
+
tryEncrypt(doc, content_ref, js_pred_refs, content) {
|
|
2008
1799
|
_assertClass(doc, Document);
|
|
2009
1800
|
var ptr0 = doc.__destroy_into_raw();
|
|
2010
|
-
_assertClass(content_ref,
|
|
1801
|
+
_assertClass(content_ref, ChangeId);
|
|
2011
1802
|
var ptr1 = content_ref.__destroy_into_raw();
|
|
2012
|
-
const ptr2 = passArrayJsValueToWasm0(
|
|
1803
|
+
const ptr2 = passArrayJsValueToWasm0(js_pred_refs, wasm.__wbindgen_malloc);
|
|
2013
1804
|
const len2 = WASM_VECTOR_LEN;
|
|
2014
1805
|
const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
2015
1806
|
const len3 = WASM_VECTOR_LEN;
|
|
@@ -2018,40 +1809,31 @@ export class Keyhive {
|
|
|
2018
1809
|
}
|
|
2019
1810
|
/**
|
|
2020
1811
|
* @param {Document} doc
|
|
2021
|
-
* @param {
|
|
2022
|
-
* @param {
|
|
1812
|
+
* @param {ChangeId} content_ref
|
|
1813
|
+
* @param {ChangeId[]} pred_refs
|
|
2023
1814
|
* @param {Uint8Array} content
|
|
2024
1815
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2025
1816
|
*/
|
|
2026
1817
|
tryEncryptArchive(doc, content_ref, pred_refs, content) {
|
|
2027
1818
|
_assertClass(doc, Document);
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
const
|
|
2032
|
-
const
|
|
2033
|
-
const
|
|
2034
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2035
|
-
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
|
|
1819
|
+
_assertClass(content_ref, ChangeId);
|
|
1820
|
+
const ptr0 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
|
|
1821
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1822
|
+
const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
1823
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1824
|
+
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2036
1825
|
return ret;
|
|
2037
1826
|
}
|
|
2038
1827
|
/**
|
|
2039
1828
|
* @param {Document} doc
|
|
2040
1829
|
* @param {Encrypted} encrypted
|
|
2041
|
-
* @returns {Uint8Array}
|
|
1830
|
+
* @returns {Promise<Uint8Array>}
|
|
2042
1831
|
*/
|
|
2043
1832
|
tryDecrypt(doc, encrypted) {
|
|
2044
1833
|
_assertClass(doc, Document);
|
|
2045
|
-
var ptr0 = doc.__destroy_into_raw();
|
|
2046
1834
|
_assertClass(encrypted, Encrypted);
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
if (ret[3]) {
|
|
2050
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
2051
|
-
}
|
|
2052
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2053
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2054
|
-
return v3;
|
|
1835
|
+
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1836
|
+
return ret;
|
|
2055
1837
|
}
|
|
2056
1838
|
/**
|
|
2057
1839
|
* @param {Agent} to_add
|
|
@@ -2083,13 +1865,11 @@ export class Keyhive {
|
|
|
2083
1865
|
return ret;
|
|
2084
1866
|
}
|
|
2085
1867
|
/**
|
|
2086
|
-
* @returns {Summary[]}
|
|
1868
|
+
* @returns {Promise<Summary[]>}
|
|
2087
1869
|
*/
|
|
2088
1870
|
reachableDocs() {
|
|
2089
1871
|
const ret = wasm.keyhive_reachableDocs(this.__wbg_ptr);
|
|
2090
|
-
|
|
2091
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2092
|
-
return v1;
|
|
1872
|
+
return ret;
|
|
2093
1873
|
}
|
|
2094
1874
|
/**
|
|
2095
1875
|
* @param {Document} doc
|
|
@@ -2126,71 +1906,74 @@ export class Keyhive {
|
|
|
2126
1906
|
}
|
|
2127
1907
|
/**
|
|
2128
1908
|
* @param {ContactCard} contact_card
|
|
2129
|
-
* @returns {Individual}
|
|
1909
|
+
* @returns {Promise<Individual>}
|
|
2130
1910
|
*/
|
|
2131
1911
|
receiveContactCard(contact_card) {
|
|
2132
1912
|
_assertClass(contact_card, ContactCard);
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
if (ret[2]) {
|
|
2136
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2137
|
-
}
|
|
2138
|
-
return Individual.__wrap(ret[0]);
|
|
1913
|
+
const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
|
|
1914
|
+
return ret;
|
|
2139
1915
|
}
|
|
2140
1916
|
/**
|
|
2141
1917
|
* @param {Identifier} id
|
|
2142
|
-
* @returns {Agent | undefined}
|
|
1918
|
+
* @returns {Promise<Agent | undefined>}
|
|
2143
1919
|
*/
|
|
2144
1920
|
getAgent(id) {
|
|
2145
1921
|
_assertClass(id, Identifier);
|
|
2146
1922
|
const ret = wasm.keyhive_getAgent(this.__wbg_ptr, id.__wbg_ptr);
|
|
2147
|
-
return ret
|
|
1923
|
+
return ret;
|
|
2148
1924
|
}
|
|
2149
1925
|
/**
|
|
2150
|
-
* @param {
|
|
2151
|
-
* @returns {Group | undefined}
|
|
1926
|
+
* @param {GroupId} group_id
|
|
1927
|
+
* @returns {Promise<Group | undefined>}
|
|
2152
1928
|
*/
|
|
2153
|
-
getGroup(
|
|
2154
|
-
_assertClass(
|
|
2155
|
-
const ret = wasm.keyhive_getGroup(this.__wbg_ptr,
|
|
2156
|
-
return ret
|
|
1929
|
+
getGroup(group_id) {
|
|
1930
|
+
_assertClass(group_id, GroupId);
|
|
1931
|
+
const ret = wasm.keyhive_getGroup(this.__wbg_ptr, group_id.__wbg_ptr);
|
|
1932
|
+
return ret;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* @param {DocumentId} doc_id
|
|
1936
|
+
* @returns {Promise<Document | undefined>}
|
|
1937
|
+
*/
|
|
1938
|
+
getDocument(doc_id) {
|
|
1939
|
+
_assertClass(doc_id, DocumentId);
|
|
1940
|
+
const ret = wasm.keyhive_getDocument(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1941
|
+
return ret;
|
|
2157
1942
|
}
|
|
2158
1943
|
/**
|
|
2159
1944
|
* @param {DocumentId} doc_id
|
|
2160
|
-
* @returns {
|
|
1945
|
+
* @returns {Promise<Membership[]>}
|
|
2161
1946
|
*/
|
|
2162
1947
|
docMemberCapabilities(doc_id) {
|
|
2163
1948
|
_assertClass(doc_id, DocumentId);
|
|
2164
1949
|
const ret = wasm.keyhive_docMemberCapabilities(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2165
|
-
|
|
2166
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2167
|
-
return v1;
|
|
1950
|
+
return ret;
|
|
2168
1951
|
}
|
|
2169
1952
|
/**
|
|
2170
1953
|
* @param {Identifier} id
|
|
2171
1954
|
* @param {DocumentId} doc_id
|
|
2172
|
-
* @returns {Access | undefined}
|
|
1955
|
+
* @returns {Promise<Access | undefined>}
|
|
2173
1956
|
*/
|
|
2174
1957
|
accessForDoc(id, doc_id) {
|
|
2175
1958
|
_assertClass(id, Identifier);
|
|
2176
1959
|
_assertClass(doc_id, DocumentId);
|
|
2177
1960
|
const ret = wasm.keyhive_accessForDoc(this.__wbg_ptr, id.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2178
|
-
return ret
|
|
1961
|
+
return ret;
|
|
2179
1962
|
}
|
|
2180
1963
|
/**
|
|
2181
|
-
* @returns {Archive}
|
|
1964
|
+
* @returns {Promise<Archive>}
|
|
2182
1965
|
*/
|
|
2183
1966
|
intoArchive() {
|
|
2184
1967
|
const ptr = this.__destroy_into_raw();
|
|
2185
1968
|
const ret = wasm.keyhive_intoArchive(ptr);
|
|
2186
|
-
return
|
|
1969
|
+
return ret;
|
|
2187
1970
|
}
|
|
2188
1971
|
/**
|
|
2189
|
-
* @returns {Archive}
|
|
1972
|
+
* @returns {Promise<Archive>}
|
|
2190
1973
|
*/
|
|
2191
1974
|
toArchive() {
|
|
2192
1975
|
const ret = wasm.keyhive_toArchive(this.__wbg_ptr);
|
|
2193
|
-
return
|
|
1976
|
+
return ret;
|
|
2194
1977
|
}
|
|
2195
1978
|
/**
|
|
2196
1979
|
* @param {Archive} archive
|
|
@@ -2201,6 +1984,21 @@ export class Keyhive {
|
|
|
2201
1984
|
const ret = wasm.keyhive_ingestArchive(this.__wbg_ptr, archive.__wbg_ptr);
|
|
2202
1985
|
return ret;
|
|
2203
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* @param {Array<any>} events_bytes_array
|
|
1989
|
+
* @returns {Promise<Array<any>>}
|
|
1990
|
+
*/
|
|
1991
|
+
ingestEventsBytes(events_bytes_array) {
|
|
1992
|
+
const ret = wasm.keyhive_ingestEventsBytes(this.__wbg_ptr, events_bytes_array);
|
|
1993
|
+
return ret;
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* @returns {Promise<Stats>}
|
|
1997
|
+
*/
|
|
1998
|
+
stats() {
|
|
1999
|
+
const ret = wasm.keyhive_stats(this.__wbg_ptr);
|
|
2000
|
+
return ret;
|
|
2001
|
+
}
|
|
2204
2002
|
}
|
|
2205
2003
|
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2206
2004
|
|
|
@@ -2232,47 +2030,89 @@ export class Membered {
|
|
|
2232
2030
|
}
|
|
2233
2031
|
if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
|
|
2234
2032
|
|
|
2235
|
-
const
|
|
2033
|
+
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2236
2034
|
? { register: () => {}, unregister: () => {} }
|
|
2237
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2035
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
2238
2036
|
|
|
2239
|
-
export class
|
|
2037
|
+
export class Membership {
|
|
2240
2038
|
|
|
2241
2039
|
static __wrap(ptr) {
|
|
2242
2040
|
ptr = ptr >>> 0;
|
|
2243
|
-
const obj = Object.create(
|
|
2041
|
+
const obj = Object.create(Membership.prototype);
|
|
2244
2042
|
obj.__wbg_ptr = ptr;
|
|
2245
|
-
|
|
2043
|
+
MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2246
2044
|
return obj;
|
|
2247
2045
|
}
|
|
2248
2046
|
|
|
2249
|
-
static __unwrap(jsValue) {
|
|
2250
|
-
if (!(jsValue instanceof Peer)) {
|
|
2251
|
-
return 0;
|
|
2252
|
-
}
|
|
2253
|
-
return jsValue.__destroy_into_raw();
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
2047
|
__destroy_into_raw() {
|
|
2257
2048
|
const ptr = this.__wbg_ptr;
|
|
2258
2049
|
this.__wbg_ptr = 0;
|
|
2259
|
-
|
|
2050
|
+
MembershipFinalization.unregister(this);
|
|
2260
2051
|
return ptr;
|
|
2261
2052
|
}
|
|
2262
2053
|
|
|
2263
2054
|
free() {
|
|
2264
2055
|
const ptr = this.__destroy_into_raw();
|
|
2265
|
-
wasm.
|
|
2056
|
+
wasm.__wbg_membership_free(ptr, 0);
|
|
2266
2057
|
}
|
|
2267
2058
|
/**
|
|
2268
|
-
* @returns {
|
|
2059
|
+
* @returns {Agent}
|
|
2269
2060
|
*/
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2061
|
+
get who() {
|
|
2062
|
+
const ret = wasm.membership_who(this.__wbg_ptr);
|
|
2063
|
+
return Agent.__wrap(ret);
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* @returns {Access}
|
|
2067
|
+
*/
|
|
2068
|
+
get can() {
|
|
2069
|
+
const ret = wasm.membership_can(this.__wbg_ptr);
|
|
2070
|
+
return Access.__wrap(ret);
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
|
|
2074
|
+
|
|
2075
|
+
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2076
|
+
? { register: () => {}, unregister: () => {} }
|
|
2077
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
|
|
2078
|
+
|
|
2079
|
+
export class Peer {
|
|
2080
|
+
|
|
2081
|
+
static __wrap(ptr) {
|
|
2082
|
+
ptr = ptr >>> 0;
|
|
2083
|
+
const obj = Object.create(Peer.prototype);
|
|
2084
|
+
obj.__wbg_ptr = ptr;
|
|
2085
|
+
PeerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2086
|
+
return obj;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
__destroy_into_raw() {
|
|
2090
|
+
const ptr = this.__wbg_ptr;
|
|
2091
|
+
this.__wbg_ptr = 0;
|
|
2092
|
+
PeerFinalization.unregister(this);
|
|
2093
|
+
return ptr;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
free() {
|
|
2097
|
+
const ptr = this.__destroy_into_raw();
|
|
2098
|
+
wasm.__wbg_peer_free(ptr, 0);
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* @returns {Identifier}
|
|
2102
|
+
*/
|
|
2103
|
+
get id() {
|
|
2104
|
+
const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
|
|
2105
|
+
return Identifier.__wrap(ret);
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
* @returns {string}
|
|
2109
|
+
*/
|
|
2110
|
+
toString() {
|
|
2111
|
+
let deferred1_0;
|
|
2112
|
+
let deferred1_1;
|
|
2113
|
+
try {
|
|
2114
|
+
const ret = wasm.peer_toString(this.__wbg_ptr);
|
|
2115
|
+
deferred1_0 = ret[0];
|
|
2276
2116
|
deferred1_1 = ret[1];
|
|
2277
2117
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
2278
2118
|
} finally {
|
|
@@ -2300,28 +2140,16 @@ export class Peer {
|
|
|
2300
2140
|
const ret = wasm.peer_isDocument(this.__wbg_ptr);
|
|
2301
2141
|
return ret !== 0;
|
|
2302
2142
|
}
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
export class RemoveCiphertextError {
|
|
2311
|
-
|
|
2312
|
-
__destroy_into_raw() {
|
|
2313
|
-
const ptr = this.__wbg_ptr;
|
|
2314
|
-
this.__wbg_ptr = 0;
|
|
2315
|
-
RemoveCiphertextErrorFinalization.unregister(this);
|
|
2316
|
-
return ptr;
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
free() {
|
|
2320
|
-
const ptr = this.__destroy_into_raw();
|
|
2321
|
-
wasm.__wbg_removeciphertexterror_free(ptr, 0);
|
|
2143
|
+
/**
|
|
2144
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
2145
|
+
* @returns {Peer}
|
|
2146
|
+
*/
|
|
2147
|
+
__wasm_refgen_toPeer() {
|
|
2148
|
+
const ret = wasm.peer___wasm_refgen_toPeer(this.__wbg_ptr);
|
|
2149
|
+
return Peer.__wrap(ret);
|
|
2322
2150
|
}
|
|
2323
2151
|
}
|
|
2324
|
-
if (Symbol.dispose)
|
|
2152
|
+
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2325
2153
|
|
|
2326
2154
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2327
2155
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2379,85 +2207,6 @@ export class Revocation {
|
|
|
2379
2207
|
}
|
|
2380
2208
|
if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
|
|
2381
2209
|
|
|
2382
|
-
const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2383
|
-
? { register: () => {}, unregister: () => {} }
|
|
2384
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_revokemembererror_free(ptr >>> 0, 1));
|
|
2385
|
-
|
|
2386
|
-
export class RevokeMemberError {
|
|
2387
|
-
|
|
2388
|
-
static __wrap(ptr) {
|
|
2389
|
-
ptr = ptr >>> 0;
|
|
2390
|
-
const obj = Object.create(RevokeMemberError.prototype);
|
|
2391
|
-
obj.__wbg_ptr = ptr;
|
|
2392
|
-
RevokeMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2393
|
-
return obj;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
__destroy_into_raw() {
|
|
2397
|
-
const ptr = this.__wbg_ptr;
|
|
2398
|
-
this.__wbg_ptr = 0;
|
|
2399
|
-
RevokeMemberErrorFinalization.unregister(this);
|
|
2400
|
-
return ptr;
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
free() {
|
|
2404
|
-
const ptr = this.__destroy_into_raw();
|
|
2405
|
-
wasm.__wbg_revokemembererror_free(ptr, 0);
|
|
2406
|
-
}
|
|
2407
|
-
/**
|
|
2408
|
-
* @returns {string}
|
|
2409
|
-
*/
|
|
2410
|
-
get message() {
|
|
2411
|
-
let deferred1_0;
|
|
2412
|
-
let deferred1_1;
|
|
2413
|
-
try {
|
|
2414
|
-
const ret = wasm.revokemembererror_message(this.__wbg_ptr);
|
|
2415
|
-
deferred1_0 = ret[0];
|
|
2416
|
-
deferred1_1 = ret[1];
|
|
2417
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2418
|
-
} finally {
|
|
2419
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
|
|
2424
|
-
|
|
2425
|
-
const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2426
|
-
? { register: () => {}, unregister: () => {} }
|
|
2427
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_serializationerror_free(ptr >>> 0, 1));
|
|
2428
|
-
|
|
2429
|
-
export class SerializationError {
|
|
2430
|
-
|
|
2431
|
-
static __wrap(ptr) {
|
|
2432
|
-
ptr = ptr >>> 0;
|
|
2433
|
-
const obj = Object.create(SerializationError.prototype);
|
|
2434
|
-
obj.__wbg_ptr = ptr;
|
|
2435
|
-
SerializationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2436
|
-
return obj;
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
__destroy_into_raw() {
|
|
2440
|
-
const ptr = this.__wbg_ptr;
|
|
2441
|
-
this.__wbg_ptr = 0;
|
|
2442
|
-
SerializationErrorFinalization.unregister(this);
|
|
2443
|
-
return ptr;
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
free() {
|
|
2447
|
-
const ptr = this.__destroy_into_raw();
|
|
2448
|
-
wasm.__wbg_serializationerror_free(ptr, 0);
|
|
2449
|
-
}
|
|
2450
|
-
/**
|
|
2451
|
-
* @returns {any}
|
|
2452
|
-
*/
|
|
2453
|
-
toError() {
|
|
2454
|
-
const ptr = this.__destroy_into_raw();
|
|
2455
|
-
const ret = wasm.serializationerror_toError(ptr);
|
|
2456
|
-
return ret;
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
|
|
2460
|
-
|
|
2461
2210
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2462
2211
|
? { register: () => {}, unregister: () => {} }
|
|
2463
2212
|
: new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
|
|
@@ -2519,13 +2268,19 @@ export class Signed {
|
|
|
2519
2268
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2520
2269
|
const len0 = WASM_VECTOR_LEN;
|
|
2521
2270
|
const ret = wasm.signed_fromBytes(ptr0, len0);
|
|
2522
|
-
|
|
2271
|
+
if (ret[2]) {
|
|
2272
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2273
|
+
}
|
|
2274
|
+
return Signed.__wrap(ret[0]);
|
|
2523
2275
|
}
|
|
2524
2276
|
/**
|
|
2525
2277
|
* @returns {Uint8Array}
|
|
2526
2278
|
*/
|
|
2527
2279
|
toBytes() {
|
|
2528
2280
|
const ret = wasm.signed_toBytes(this.__wbg_ptr);
|
|
2281
|
+
if (ret[3]) {
|
|
2282
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2283
|
+
}
|
|
2529
2284
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2530
2285
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2531
2286
|
return v1;
|
|
@@ -2878,90 +2633,68 @@ export class Signer {
|
|
|
2878
2633
|
}
|
|
2879
2634
|
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2880
2635
|
|
|
2881
|
-
const
|
|
2636
|
+
const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2882
2637
|
? { register: () => {}, unregister: () => {} }
|
|
2883
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2638
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
|
|
2884
2639
|
|
|
2885
|
-
export class
|
|
2640
|
+
export class Stats {
|
|
2886
2641
|
|
|
2887
2642
|
static __wrap(ptr) {
|
|
2888
2643
|
ptr = ptr >>> 0;
|
|
2889
|
-
const obj = Object.create(
|
|
2644
|
+
const obj = Object.create(Stats.prototype);
|
|
2890
2645
|
obj.__wbg_ptr = ptr;
|
|
2891
|
-
|
|
2646
|
+
StatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2892
2647
|
return obj;
|
|
2893
2648
|
}
|
|
2894
2649
|
|
|
2895
2650
|
__destroy_into_raw() {
|
|
2896
2651
|
const ptr = this.__wbg_ptr;
|
|
2897
2652
|
this.__wbg_ptr = 0;
|
|
2898
|
-
|
|
2653
|
+
StatsFinalization.unregister(this);
|
|
2899
2654
|
return ptr;
|
|
2900
2655
|
}
|
|
2901
2656
|
|
|
2902
2657
|
free() {
|
|
2903
2658
|
const ptr = this.__destroy_into_raw();
|
|
2904
|
-
wasm.
|
|
2659
|
+
wasm.__wbg_stats_free(ptr, 0);
|
|
2905
2660
|
}
|
|
2906
2661
|
/**
|
|
2907
|
-
* @returns {
|
|
2662
|
+
* @returns {bigint}
|
|
2908
2663
|
*/
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
try {
|
|
2913
|
-
const ret = wasm.signingerror_message(this.__wbg_ptr);
|
|
2914
|
-
deferred1_0 = ret[0];
|
|
2915
|
-
deferred1_1 = ret[1];
|
|
2916
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2917
|
-
} finally {
|
|
2918
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2919
|
-
}
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
|
|
2923
|
-
|
|
2924
|
-
const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2925
|
-
? { register: () => {}, unregister: () => {} }
|
|
2926
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_simplecapability_free(ptr >>> 0, 1));
|
|
2927
|
-
|
|
2928
|
-
export class SimpleCapability {
|
|
2929
|
-
|
|
2930
|
-
static __wrap(ptr) {
|
|
2931
|
-
ptr = ptr >>> 0;
|
|
2932
|
-
const obj = Object.create(SimpleCapability.prototype);
|
|
2933
|
-
obj.__wbg_ptr = ptr;
|
|
2934
|
-
SimpleCapabilityFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2935
|
-
return obj;
|
|
2664
|
+
get individuals() {
|
|
2665
|
+
const ret = wasm.stats_individuals(this.__wbg_ptr);
|
|
2666
|
+
return BigInt.asUintN(64, ret);
|
|
2936
2667
|
}
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
return
|
|
2668
|
+
/**
|
|
2669
|
+
* @returns {bigint}
|
|
2670
|
+
*/
|
|
2671
|
+
get groups() {
|
|
2672
|
+
const ret = wasm.stats_groups(this.__wbg_ptr);
|
|
2673
|
+
return BigInt.asUintN(64, ret);
|
|
2943
2674
|
}
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2675
|
+
/**
|
|
2676
|
+
* @returns {bigint}
|
|
2677
|
+
*/
|
|
2678
|
+
get docs() {
|
|
2679
|
+
const ret = wasm.stats_docs(this.__wbg_ptr);
|
|
2680
|
+
return BigInt.asUintN(64, ret);
|
|
2948
2681
|
}
|
|
2949
2682
|
/**
|
|
2950
|
-
* @returns {
|
|
2683
|
+
* @returns {bigint}
|
|
2951
2684
|
*/
|
|
2952
|
-
get
|
|
2953
|
-
const ret = wasm.
|
|
2954
|
-
return
|
|
2685
|
+
get delegations() {
|
|
2686
|
+
const ret = wasm.stats_delegations(this.__wbg_ptr);
|
|
2687
|
+
return BigInt.asUintN(64, ret);
|
|
2955
2688
|
}
|
|
2956
2689
|
/**
|
|
2957
|
-
* @returns {
|
|
2690
|
+
* @returns {bigint}
|
|
2958
2691
|
*/
|
|
2959
|
-
get
|
|
2960
|
-
const ret = wasm.
|
|
2961
|
-
return
|
|
2692
|
+
get revocations() {
|
|
2693
|
+
const ret = wasm.stats_revocations(this.__wbg_ptr);
|
|
2694
|
+
return BigInt.asUintN(64, ret);
|
|
2962
2695
|
}
|
|
2963
2696
|
}
|
|
2964
|
-
if (Symbol.dispose)
|
|
2697
|
+
if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
|
|
2965
2698
|
|
|
2966
2699
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2967
2700
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3005,42 +2738,6 @@ export class Summary {
|
|
|
3005
2738
|
}
|
|
3006
2739
|
if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
3007
2740
|
|
|
3008
|
-
const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3009
|
-
? { register: () => {}, unregister: () => {} }
|
|
3010
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_tryfromarchiveerror_free(ptr >>> 0, 1));
|
|
3011
|
-
|
|
3012
|
-
export class TryFromArchiveError {
|
|
3013
|
-
|
|
3014
|
-
static __wrap(ptr) {
|
|
3015
|
-
ptr = ptr >>> 0;
|
|
3016
|
-
const obj = Object.create(TryFromArchiveError.prototype);
|
|
3017
|
-
obj.__wbg_ptr = ptr;
|
|
3018
|
-
TryFromArchiveErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3019
|
-
return obj;
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
__destroy_into_raw() {
|
|
3023
|
-
const ptr = this.__wbg_ptr;
|
|
3024
|
-
this.__wbg_ptr = 0;
|
|
3025
|
-
TryFromArchiveErrorFinalization.unregister(this);
|
|
3026
|
-
return ptr;
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
-
free() {
|
|
3030
|
-
const ptr = this.__destroy_into_raw();
|
|
3031
|
-
wasm.__wbg_tryfromarchiveerror_free(ptr, 0);
|
|
3032
|
-
}
|
|
3033
|
-
/**
|
|
3034
|
-
* @returns {any}
|
|
3035
|
-
*/
|
|
3036
|
-
toError() {
|
|
3037
|
-
const ptr = this.__destroy_into_raw();
|
|
3038
|
-
const ret = wasm.tryfromarchiveerror_toError(ptr);
|
|
3039
|
-
return ret;
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
|
-
if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
|
|
3043
|
-
|
|
3044
2741
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
3045
2742
|
|
|
3046
2743
|
async function __wbg_load(module, imports) {
|
|
@@ -3079,22 +2776,78 @@ async function __wbg_load(module, imports) {
|
|
|
3079
2776
|
function __wbg_get_imports() {
|
|
3080
2777
|
const imports = {};
|
|
3081
2778
|
imports.wbg = {};
|
|
3082
|
-
imports.wbg.
|
|
2779
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
3083
2780
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
3084
2781
|
return ret;
|
|
3085
2782
|
};
|
|
3086
|
-
imports.wbg.
|
|
3087
|
-
const ret =
|
|
2783
|
+
imports.wbg.__wbg___wasm_refgen_toChangeId_bdad356172ca9cbc = function(arg0) {
|
|
2784
|
+
const ret = arg0.__wasm_refgen_toChangeId();
|
|
2785
|
+
_assertClass(ret, ChangeId);
|
|
2786
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2787
|
+
return ptr1;
|
|
2788
|
+
};
|
|
2789
|
+
imports.wbg.__wbg___wasm_refgen_toDocument_970367efee8cb1d0 = function(arg0) {
|
|
2790
|
+
const ret = arg0.__wasm_refgen_toDocument();
|
|
2791
|
+
_assertClass(ret, Document);
|
|
2792
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2793
|
+
return ptr1;
|
|
2794
|
+
};
|
|
2795
|
+
imports.wbg.__wbg___wasm_refgen_toPeer_f5e24110e2d41e74 = function(arg0) {
|
|
2796
|
+
const ret = arg0.__wasm_refgen_toPeer();
|
|
2797
|
+
_assertClass(ret, Peer);
|
|
2798
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2799
|
+
return ptr1;
|
|
2800
|
+
};
|
|
2801
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
2802
|
+
const ret = debugString(arg1);
|
|
2803
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2804
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2805
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2806
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2807
|
+
};
|
|
2808
|
+
imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
2809
|
+
const ret = typeof(arg0) === 'function';
|
|
3088
2810
|
return ret;
|
|
3089
2811
|
};
|
|
3090
|
-
imports.wbg.
|
|
3091
|
-
const
|
|
2812
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
2813
|
+
const val = arg0;
|
|
2814
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3092
2815
|
return ret;
|
|
3093
|
-
}
|
|
3094
|
-
imports.wbg.
|
|
2816
|
+
};
|
|
2817
|
+
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
2818
|
+
const ret = typeof(arg0) === 'string';
|
|
2819
|
+
return ret;
|
|
2820
|
+
};
|
|
2821
|
+
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
2822
|
+
const ret = arg0 === undefined;
|
|
2823
|
+
return ret;
|
|
2824
|
+
};
|
|
2825
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
2826
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2827
|
+
};
|
|
2828
|
+
imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
2829
|
+
arg0._wbg_cb_unref();
|
|
2830
|
+
};
|
|
2831
|
+
imports.wbg.__wbg_access_new = function(arg0) {
|
|
2832
|
+
const ret = Access.__wrap(arg0);
|
|
2833
|
+
return ret;
|
|
2834
|
+
};
|
|
2835
|
+
imports.wbg.__wbg_agent_new = function(arg0) {
|
|
2836
|
+
const ret = Agent.__wrap(arg0);
|
|
2837
|
+
return ret;
|
|
2838
|
+
};
|
|
2839
|
+
imports.wbg.__wbg_archive_new = function(arg0) {
|
|
2840
|
+
const ret = Archive.__wrap(arg0);
|
|
2841
|
+
return ret;
|
|
2842
|
+
};
|
|
2843
|
+
imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3095
2844
|
const ret = arg0.call(arg1, arg2);
|
|
3096
2845
|
return ret;
|
|
3097
2846
|
}, arguments) };
|
|
2847
|
+
imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
2848
|
+
const ret = arg0.call(arg1);
|
|
2849
|
+
return ret;
|
|
2850
|
+
}, arguments) };
|
|
3098
2851
|
imports.wbg.__wbg_cannotparseed25519signingkey_new = function(arg0) {
|
|
3099
2852
|
const ret = CannotParseEd25519SigningKey.__wrap(arg0);
|
|
3100
2853
|
return ret;
|
|
@@ -3107,12 +2860,12 @@ function __wbg_get_imports() {
|
|
|
3107
2860
|
const ret = Capability.__wrap(arg0);
|
|
3108
2861
|
return ret;
|
|
3109
2862
|
};
|
|
3110
|
-
imports.wbg.
|
|
3111
|
-
const ret =
|
|
2863
|
+
imports.wbg.__wbg_changeid_new = function(arg0) {
|
|
2864
|
+
const ret = ChangeId.__wrap(arg0);
|
|
3112
2865
|
return ret;
|
|
3113
2866
|
};
|
|
3114
|
-
imports.wbg.
|
|
3115
|
-
const ret =
|
|
2867
|
+
imports.wbg.__wbg_changeid_unwrap = function(arg0) {
|
|
2868
|
+
const ret = ChangeId.__unwrap(arg0);
|
|
3116
2869
|
return ret;
|
|
3117
2870
|
};
|
|
3118
2871
|
imports.wbg.__wbg_contactcard_new = function(arg0) {
|
|
@@ -3123,10 +2876,28 @@ function __wbg_get_imports() {
|
|
|
3123
2876
|
const ret = arg0.crypto;
|
|
3124
2877
|
return ret;
|
|
3125
2878
|
};
|
|
3126
|
-
imports.wbg.
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
2879
|
+
imports.wbg.__wbg_debug_68afdd09483bcd1b = function(arg0, arg1) {
|
|
2880
|
+
let deferred0_0;
|
|
2881
|
+
let deferred0_1;
|
|
2882
|
+
try {
|
|
2883
|
+
deferred0_0 = arg0;
|
|
2884
|
+
deferred0_1 = arg1;
|
|
2885
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2886
|
+
} finally {
|
|
2887
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2890
|
+
imports.wbg.__wbg_debug_a4fe41d1a79aaba9 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2891
|
+
let deferred0_0;
|
|
2892
|
+
let deferred0_1;
|
|
2893
|
+
try {
|
|
2894
|
+
deferred0_0 = arg0;
|
|
2895
|
+
deferred0_1 = arg1;
|
|
2896
|
+
console.debug(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2897
|
+
} finally {
|
|
2898
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2899
|
+
}
|
|
2900
|
+
};
|
|
3130
2901
|
imports.wbg.__wbg_doccontentrefs_new = function(arg0) {
|
|
3131
2902
|
const ret = DocContentRefs.__wrap(arg0);
|
|
3132
2903
|
return ret;
|
|
@@ -3135,10 +2906,6 @@ function __wbg_get_imports() {
|
|
|
3135
2906
|
const ret = Document.__wrap(arg0);
|
|
3136
2907
|
return ret;
|
|
3137
2908
|
};
|
|
3138
|
-
imports.wbg.__wbg_document_unwrap = function(arg0) {
|
|
3139
|
-
const ret = Document.__unwrap(arg0);
|
|
3140
|
-
return ret;
|
|
3141
|
-
};
|
|
3142
2909
|
imports.wbg.__wbg_encryptedcontentwithupdate_new = function(arg0) {
|
|
3143
2910
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3144
2911
|
return ret;
|
|
@@ -3154,22 +2921,40 @@ function __wbg_get_imports() {
|
|
|
3154
2921
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3155
2922
|
}
|
|
3156
2923
|
};
|
|
2924
|
+
imports.wbg.__wbg_error_be2b0d69ec6dd379 = function(arg0, arg1) {
|
|
2925
|
+
let deferred0_0;
|
|
2926
|
+
let deferred0_1;
|
|
2927
|
+
try {
|
|
2928
|
+
deferred0_0 = arg0;
|
|
2929
|
+
deferred0_1 = arg1;
|
|
2930
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
2931
|
+
} finally {
|
|
2932
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2933
|
+
}
|
|
2934
|
+
};
|
|
2935
|
+
imports.wbg.__wbg_error_fa36d085107c9dd5 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2936
|
+
let deferred0_0;
|
|
2937
|
+
let deferred0_1;
|
|
2938
|
+
try {
|
|
2939
|
+
deferred0_0 = arg0;
|
|
2940
|
+
deferred0_1 = arg1;
|
|
2941
|
+
console.error(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2942
|
+
} finally {
|
|
2943
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2944
|
+
}
|
|
2945
|
+
};
|
|
3157
2946
|
imports.wbg.__wbg_event_new = function(arg0) {
|
|
3158
2947
|
const ret = Event.__wrap(arg0);
|
|
3159
2948
|
return ret;
|
|
3160
2949
|
};
|
|
3161
|
-
imports.wbg.
|
|
2950
|
+
imports.wbg.__wbg_exportKey_14f4c9c1691e79dc = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3162
2951
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
3163
2952
|
return ret;
|
|
3164
2953
|
}, arguments) };
|
|
3165
|
-
imports.wbg.
|
|
2954
|
+
imports.wbg.__wbg_generateKey_3530d4e1a89ee5b4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3166
2955
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
3167
2956
|
return ret;
|
|
3168
2957
|
}, arguments) };
|
|
3169
|
-
imports.wbg.__wbg_generatedocerror_new = function(arg0) {
|
|
3170
|
-
const ret = GenerateDocError.__wrap(arg0);
|
|
3171
|
-
return ret;
|
|
3172
|
-
};
|
|
3173
2958
|
imports.wbg.__wbg_generatewebcryptoerror_new = function(arg0) {
|
|
3174
2959
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3175
2960
|
return ret;
|
|
@@ -3177,15 +2962,19 @@ function __wbg_get_imports() {
|
|
|
3177
2962
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
3178
2963
|
arg0.getRandomValues(arg1);
|
|
3179
2964
|
}, arguments) };
|
|
3180
|
-
imports.wbg.
|
|
2965
|
+
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
2966
|
+
const ret = arg0[arg1 >>> 0];
|
|
2967
|
+
return ret;
|
|
2968
|
+
};
|
|
2969
|
+
imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
3181
2970
|
const ret = Reflect.get(arg0, arg1);
|
|
3182
2971
|
return ret;
|
|
3183
2972
|
}, arguments) };
|
|
3184
|
-
imports.wbg.
|
|
2973
|
+
imports.wbg.__wbg_get_private_key_0a3a263ca613b0c0 = function(arg0) {
|
|
3185
2974
|
const ret = arg0.privateKey;
|
|
3186
2975
|
return ret;
|
|
3187
2976
|
};
|
|
3188
|
-
imports.wbg.
|
|
2977
|
+
imports.wbg.__wbg_get_public_key_1e2c11d159e34827 = function(arg0) {
|
|
3189
2978
|
const ret = arg0.publicKey;
|
|
3190
2979
|
return ret;
|
|
3191
2980
|
};
|
|
@@ -3193,62 +2982,89 @@ function __wbg_get_imports() {
|
|
|
3193
2982
|
const ret = Group.__wrap(arg0);
|
|
3194
2983
|
return ret;
|
|
3195
2984
|
};
|
|
3196
|
-
imports.wbg.
|
|
3197
|
-
|
|
3198
|
-
try {
|
|
3199
|
-
result = arg0 instanceof Crypto;
|
|
3200
|
-
} catch (_) {
|
|
3201
|
-
result = false;
|
|
3202
|
-
}
|
|
3203
|
-
const ret = result;
|
|
2985
|
+
imports.wbg.__wbg_individual_new = function(arg0) {
|
|
2986
|
+
const ret = Individual.__wrap(arg0);
|
|
3204
2987
|
return ret;
|
|
3205
2988
|
};
|
|
3206
|
-
imports.wbg.
|
|
2989
|
+
imports.wbg.__wbg_instanceof_Crypto_2574e69763b89701 = function(arg0) {
|
|
3207
2990
|
let result;
|
|
3208
2991
|
try {
|
|
3209
|
-
result = arg0 instanceof
|
|
2992
|
+
result = arg0 instanceof Crypto;
|
|
3210
2993
|
} catch (_) {
|
|
3211
2994
|
result = false;
|
|
3212
2995
|
}
|
|
3213
2996
|
const ret = result;
|
|
3214
2997
|
return ret;
|
|
3215
2998
|
};
|
|
3216
|
-
imports.wbg.
|
|
3217
|
-
const ret =
|
|
2999
|
+
imports.wbg.__wbg_keyhive_new = function(arg0) {
|
|
3000
|
+
const ret = Keyhive.__wrap(arg0);
|
|
3218
3001
|
return ret;
|
|
3219
3002
|
};
|
|
3220
|
-
imports.wbg.
|
|
3221
|
-
const ret =
|
|
3003
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
3004
|
+
const ret = arg0.length;
|
|
3222
3005
|
return ret;
|
|
3223
3006
|
};
|
|
3224
|
-
imports.wbg.
|
|
3225
|
-
const ret =
|
|
3007
|
+
imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
3008
|
+
const ret = arg0.length;
|
|
3226
3009
|
return ret;
|
|
3227
3010
|
};
|
|
3228
|
-
imports.wbg.
|
|
3229
|
-
|
|
3230
|
-
|
|
3011
|
+
imports.wbg.__wbg_log_98ea330cbdc64a56 = function(arg0, arg1) {
|
|
3012
|
+
let deferred0_0;
|
|
3013
|
+
let deferred0_1;
|
|
3014
|
+
try {
|
|
3015
|
+
deferred0_0 = arg0;
|
|
3016
|
+
deferred0_1 = arg1;
|
|
3017
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
3018
|
+
} finally {
|
|
3019
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3020
|
+
}
|
|
3231
3021
|
};
|
|
3232
|
-
imports.wbg.
|
|
3233
|
-
|
|
3234
|
-
|
|
3022
|
+
imports.wbg.__wbg_log_f996de40931ab7d1 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3023
|
+
let deferred0_0;
|
|
3024
|
+
let deferred0_1;
|
|
3025
|
+
try {
|
|
3026
|
+
deferred0_0 = arg0;
|
|
3027
|
+
deferred0_1 = arg1;
|
|
3028
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3029
|
+
} finally {
|
|
3030
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3031
|
+
}
|
|
3235
3032
|
};
|
|
3236
|
-
imports.wbg.
|
|
3237
|
-
|
|
3033
|
+
imports.wbg.__wbg_mark_49688daf5a319979 = function(arg0, arg1) {
|
|
3034
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
3035
|
+
};
|
|
3036
|
+
imports.wbg.__wbg_measure_52555d98d3c0f41a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3037
|
+
let deferred0_0;
|
|
3038
|
+
let deferred0_1;
|
|
3039
|
+
let deferred1_0;
|
|
3040
|
+
let deferred1_1;
|
|
3041
|
+
try {
|
|
3042
|
+
deferred0_0 = arg0;
|
|
3043
|
+
deferred0_1 = arg1;
|
|
3044
|
+
deferred1_0 = arg2;
|
|
3045
|
+
deferred1_1 = arg3;
|
|
3046
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
3047
|
+
} finally {
|
|
3048
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3049
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3050
|
+
}
|
|
3051
|
+
}, arguments) };
|
|
3052
|
+
imports.wbg.__wbg_membership_new = function(arg0) {
|
|
3053
|
+
const ret = Membership.__wrap(arg0);
|
|
3238
3054
|
return ret;
|
|
3239
3055
|
};
|
|
3240
3056
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
3241
3057
|
const ret = arg0.msCrypto;
|
|
3242
3058
|
return ret;
|
|
3243
3059
|
};
|
|
3244
|
-
imports.wbg.
|
|
3060
|
+
imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
3245
3061
|
try {
|
|
3246
3062
|
var state0 = {a: arg0, b: arg1};
|
|
3247
3063
|
var cb0 = (arg0, arg1) => {
|
|
3248
3064
|
const a = state0.a;
|
|
3249
3065
|
state0.a = 0;
|
|
3250
3066
|
try {
|
|
3251
|
-
return
|
|
3067
|
+
return wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(a, state0.b, arg0, arg1);
|
|
3252
3068
|
} finally {
|
|
3253
3069
|
state0.a = a;
|
|
3254
3070
|
}
|
|
@@ -3259,7 +3075,7 @@ function __wbg_get_imports() {
|
|
|
3259
3075
|
state0.a = state0.b = 0;
|
|
3260
3076
|
}
|
|
3261
3077
|
};
|
|
3262
|
-
imports.wbg.
|
|
3078
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
3263
3079
|
const ret = new Uint8Array(arg0);
|
|
3264
3080
|
return ret;
|
|
3265
3081
|
};
|
|
@@ -3267,11 +3083,23 @@ function __wbg_get_imports() {
|
|
|
3267
3083
|
const ret = new Error();
|
|
3268
3084
|
return ret;
|
|
3269
3085
|
};
|
|
3270
|
-
imports.wbg.
|
|
3086
|
+
imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
|
|
3087
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3088
|
+
return ret;
|
|
3089
|
+
};
|
|
3090
|
+
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
3091
|
+
const ret = new Array();
|
|
3092
|
+
return ret;
|
|
3093
|
+
};
|
|
3094
|
+
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
3095
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3096
|
+
return ret;
|
|
3097
|
+
};
|
|
3098
|
+
imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
3271
3099
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3272
3100
|
return ret;
|
|
3273
3101
|
};
|
|
3274
|
-
imports.wbg.
|
|
3102
|
+
imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
3275
3103
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3276
3104
|
return ret;
|
|
3277
3105
|
};
|
|
@@ -3279,24 +3107,24 @@ function __wbg_get_imports() {
|
|
|
3279
3107
|
const ret = arg0.node;
|
|
3280
3108
|
return ret;
|
|
3281
3109
|
};
|
|
3282
|
-
imports.wbg.__wbg_peer_unwrap = function(arg0) {
|
|
3283
|
-
const ret = Peer.__unwrap(arg0);
|
|
3284
|
-
return ret;
|
|
3285
|
-
};
|
|
3286
3110
|
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
3287
3111
|
const ret = arg0.process;
|
|
3288
3112
|
return ret;
|
|
3289
3113
|
};
|
|
3290
|
-
imports.wbg.
|
|
3114
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
3291
3115
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3292
3116
|
};
|
|
3293
|
-
imports.wbg.
|
|
3294
|
-
|
|
3117
|
+
imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
|
|
3118
|
+
const ret = arg0.push(arg1);
|
|
3119
|
+
return ret;
|
|
3295
3120
|
};
|
|
3296
|
-
imports.wbg.
|
|
3121
|
+
imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
3297
3122
|
const ret = arg0.queueMicrotask;
|
|
3298
3123
|
return ret;
|
|
3299
3124
|
};
|
|
3125
|
+
imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
3126
|
+
queueMicrotask(arg0);
|
|
3127
|
+
};
|
|
3300
3128
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
3301
3129
|
arg0.randomFillSync(arg1);
|
|
3302
3130
|
}, arguments) };
|
|
@@ -3304,23 +3132,18 @@ function __wbg_get_imports() {
|
|
|
3304
3132
|
const ret = module.require;
|
|
3305
3133
|
return ret;
|
|
3306
3134
|
}, arguments) };
|
|
3307
|
-
imports.wbg.
|
|
3135
|
+
imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
3308
3136
|
const ret = Promise.resolve(arg0);
|
|
3309
3137
|
return ret;
|
|
3310
3138
|
};
|
|
3311
|
-
imports.wbg.
|
|
3312
|
-
|
|
3313
|
-
return ret;
|
|
3314
|
-
};
|
|
3315
|
-
imports.wbg.__wbg_serializationerror_new = function(arg0) {
|
|
3316
|
-
const ret = SerializationError.__wrap(arg0);
|
|
3317
|
-
return ret;
|
|
3139
|
+
imports.wbg.__wbg_set_name_d94846a29e626702 = function(arg0, arg1, arg2) {
|
|
3140
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3318
3141
|
};
|
|
3319
3142
|
imports.wbg.__wbg_sharekey_new = function(arg0) {
|
|
3320
3143
|
const ret = ShareKey.__wrap(arg0);
|
|
3321
3144
|
return ret;
|
|
3322
3145
|
};
|
|
3323
|
-
imports.wbg.
|
|
3146
|
+
imports.wbg.__wbg_sign_0077f2aabd37825a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3324
3147
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3325
3148
|
return ret;
|
|
3326
3149
|
}, arguments) };
|
|
@@ -3340,14 +3163,6 @@ function __wbg_get_imports() {
|
|
|
3340
3163
|
const ret = Signer.__wrap(arg0);
|
|
3341
3164
|
return ret;
|
|
3342
3165
|
};
|
|
3343
|
-
imports.wbg.__wbg_signingerror_new = function(arg0) {
|
|
3344
|
-
const ret = SigningError.__wrap(arg0);
|
|
3345
|
-
return ret;
|
|
3346
|
-
};
|
|
3347
|
-
imports.wbg.__wbg_simplecapability_new = function(arg0) {
|
|
3348
|
-
const ret = SimpleCapability.__wrap(arg0);
|
|
3349
|
-
return ret;
|
|
3350
|
-
};
|
|
3351
3166
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
3352
3167
|
const ret = arg1.stack;
|
|
3353
3168
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3355,27 +3170,31 @@ function __wbg_get_imports() {
|
|
|
3355
3170
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3356
3171
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3357
3172
|
};
|
|
3358
|
-
imports.wbg.
|
|
3173
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
3359
3174
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3360
3175
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3361
3176
|
};
|
|
3362
|
-
imports.wbg.
|
|
3177
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
3363
3178
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3364
3179
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3365
3180
|
};
|
|
3366
|
-
imports.wbg.
|
|
3181
|
+
imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
3367
3182
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3368
3183
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3369
3184
|
};
|
|
3370
|
-
imports.wbg.
|
|
3185
|
+
imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
3371
3186
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3372
3187
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3373
3188
|
};
|
|
3374
|
-
imports.wbg.
|
|
3189
|
+
imports.wbg.__wbg_stats_new = function(arg0) {
|
|
3190
|
+
const ret = Stats.__wrap(arg0);
|
|
3191
|
+
return ret;
|
|
3192
|
+
};
|
|
3193
|
+
imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
3375
3194
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3376
3195
|
return ret;
|
|
3377
3196
|
};
|
|
3378
|
-
imports.wbg.
|
|
3197
|
+
imports.wbg.__wbg_subtle_a158c8cba320b8ed = function(arg0) {
|
|
3379
3198
|
const ret = arg0.subtle;
|
|
3380
3199
|
return ret;
|
|
3381
3200
|
};
|
|
@@ -3383,72 +3202,84 @@ function __wbg_get_imports() {
|
|
|
3383
3202
|
const ret = Summary.__wrap(arg0);
|
|
3384
3203
|
return ret;
|
|
3385
3204
|
};
|
|
3386
|
-
imports.wbg.
|
|
3387
|
-
const ret = arg0.then(arg1, arg2);
|
|
3388
|
-
return ret;
|
|
3389
|
-
};
|
|
3390
|
-
imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
3205
|
+
imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
3391
3206
|
const ret = arg0.then(arg1);
|
|
3392
3207
|
return ret;
|
|
3393
3208
|
};
|
|
3394
|
-
imports.wbg.
|
|
3395
|
-
const ret =
|
|
3209
|
+
imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
3210
|
+
const ret = arg0.then(arg1, arg2);
|
|
3396
3211
|
return ret;
|
|
3397
3212
|
};
|
|
3398
3213
|
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
3399
3214
|
const ret = arg0.versions;
|
|
3400
3215
|
return ret;
|
|
3401
3216
|
};
|
|
3402
|
-
imports.wbg.
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3217
|
+
imports.wbg.__wbg_warn_c6311e9cb983aa2a = function(arg0, arg1) {
|
|
3218
|
+
let deferred0_0;
|
|
3219
|
+
let deferred0_1;
|
|
3220
|
+
try {
|
|
3221
|
+
deferred0_0 = arg0;
|
|
3222
|
+
deferred0_1 = arg1;
|
|
3223
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
3224
|
+
} finally {
|
|
3225
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3407
3226
|
}
|
|
3408
|
-
const ret = false;
|
|
3409
|
-
return ret;
|
|
3410
3227
|
};
|
|
3411
|
-
imports.wbg.
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3228
|
+
imports.wbg.__wbg_warn_de3a09d072c895e6 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3229
|
+
let deferred0_0;
|
|
3230
|
+
let deferred0_1;
|
|
3231
|
+
try {
|
|
3232
|
+
deferred0_0 = arg0;
|
|
3233
|
+
deferred0_1 = arg1;
|
|
3234
|
+
console.warn(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3235
|
+
} finally {
|
|
3236
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3237
|
+
}
|
|
3417
3238
|
};
|
|
3418
|
-
imports.wbg.
|
|
3419
|
-
|
|
3239
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
3240
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3241
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3420
3242
|
return ret;
|
|
3421
3243
|
};
|
|
3422
|
-
imports.wbg.
|
|
3423
|
-
|
|
3424
|
-
|
|
3244
|
+
imports.wbg.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
3245
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3246
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3247
|
+
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
3248
|
+
const ret = v0;
|
|
3425
3249
|
return ret;
|
|
3426
3250
|
};
|
|
3427
|
-
imports.wbg.
|
|
3428
|
-
|
|
3251
|
+
imports.wbg.__wbindgen_cast_6300122139088863 = function(arg0, arg1) {
|
|
3252
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3253
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3254
|
+
// Cast intrinsic for `Vector(NamedExternref("ChangeId")) -> Externref`.
|
|
3255
|
+
const ret = v0;
|
|
3429
3256
|
return ret;
|
|
3430
3257
|
};
|
|
3431
|
-
imports.wbg.
|
|
3432
|
-
|
|
3258
|
+
imports.wbg.__wbindgen_cast_6d311b4990fb968e = function(arg0, arg1) {
|
|
3259
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3260
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3261
|
+
// Cast intrinsic for `Vector(NamedExternref("Summary")) -> Externref`.
|
|
3262
|
+
const ret = v0;
|
|
3433
3263
|
return ret;
|
|
3434
3264
|
};
|
|
3435
|
-
imports.wbg.
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_14);
|
|
3265
|
+
imports.wbg.__wbindgen_cast_6e33e4871eebdb43 = function(arg0, arg1) {
|
|
3266
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3267
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3268
|
+
// Cast intrinsic for `Vector(NamedExternref("Membership")) -> Externref`.
|
|
3269
|
+
const ret = v0;
|
|
3441
3270
|
return ret;
|
|
3442
3271
|
};
|
|
3443
|
-
imports.wbg.
|
|
3444
|
-
|
|
3445
|
-
|
|
3272
|
+
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
3273
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3274
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3275
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
3276
|
+
const ret = v0;
|
|
3446
3277
|
return ret;
|
|
3447
3278
|
};
|
|
3448
|
-
imports.wbg.
|
|
3279
|
+
imports.wbg.__wbindgen_cast_a81e76255c07f2e8 = function(arg0, arg1) {
|
|
3449
3280
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3450
3281
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3451
|
-
// Cast intrinsic for `Vector(NamedExternref("
|
|
3282
|
+
// Cast intrinsic for `Vector(NamedExternref("Capability")) -> Externref`.
|
|
3452
3283
|
const ret = v0;
|
|
3453
3284
|
return ret;
|
|
3454
3285
|
};
|
|
@@ -3459,13 +3290,18 @@ function __wbg_get_imports() {
|
|
|
3459
3290
|
const ret = v0;
|
|
3460
3291
|
return ret;
|
|
3461
3292
|
};
|
|
3293
|
+
imports.wbg.__wbindgen_cast_bef74971622929eb = function(arg0, arg1) {
|
|
3294
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3295
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb938d8490fb5a71, wasm_bindgen__convert__closures_____invoke__h06e685b12973e965);
|
|
3296
|
+
return ret;
|
|
3297
|
+
};
|
|
3462
3298
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3463
3299
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3464
3300
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3465
3301
|
return ret;
|
|
3466
3302
|
};
|
|
3467
3303
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3468
|
-
const table = wasm.
|
|
3304
|
+
const table = wasm.__wbindgen_externrefs;
|
|
3469
3305
|
const offset = table.grow(4);
|
|
3470
3306
|
table.set(0, undefined);
|
|
3471
3307
|
table.set(offset + 0, undefined);
|
|
@@ -3478,10 +3314,6 @@ function __wbg_get_imports() {
|
|
|
3478
3314
|
return imports;
|
|
3479
3315
|
}
|
|
3480
3316
|
|
|
3481
|
-
function __wbg_init_memory(imports, memory) {
|
|
3482
|
-
|
|
3483
|
-
}
|
|
3484
|
-
|
|
3485
3317
|
function __wbg_finalize_init(instance, module) {
|
|
3486
3318
|
wasm = instance.exports;
|
|
3487
3319
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -3507,8 +3339,6 @@ function initSync(module) {
|
|
|
3507
3339
|
|
|
3508
3340
|
const imports = __wbg_get_imports();
|
|
3509
3341
|
|
|
3510
|
-
__wbg_init_memory(imports);
|
|
3511
|
-
|
|
3512
3342
|
if (!(module instanceof WebAssembly.Module)) {
|
|
3513
3343
|
module = new WebAssembly.Module(module);
|
|
3514
3344
|
}
|
|
@@ -3539,8 +3369,6 @@ async function __wbg_init(module_or_path) {
|
|
|
3539
3369
|
module_or_path = fetch(module_or_path);
|
|
3540
3370
|
}
|
|
3541
3371
|
|
|
3542
|
-
__wbg_init_memory(imports);
|
|
3543
|
-
|
|
3544
3372
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
3545
3373
|
|
|
3546
3374
|
return __wbg_finalize_init(instance, module);
|