@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-node/keyhive_wasm.js
CHANGED
|
@@ -24,24 +24,75 @@ function getStringFromWasm0(ptr, len) {
|
|
|
24
24
|
return decodeText(ptr, len);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return idx;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function handleError(f, args) {
|
|
34
|
-
try {
|
|
35
|
-
return f.apply(this, args);
|
|
36
|
-
} catch (e) {
|
|
37
|
-
const idx = addToExternrefTable0(e);
|
|
38
|
-
wasm.__wbindgen_exn_store(idx);
|
|
27
|
+
function _assertClass(instance, klass) {
|
|
28
|
+
if (!(instance instanceof klass)) {
|
|
29
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
39
30
|
}
|
|
40
31
|
}
|
|
41
32
|
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
function debugString(val) {
|
|
34
|
+
// primitive types
|
|
35
|
+
const type = typeof val;
|
|
36
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
37
|
+
return `${val}`;
|
|
38
|
+
}
|
|
39
|
+
if (type == 'string') {
|
|
40
|
+
return `"${val}"`;
|
|
41
|
+
}
|
|
42
|
+
if (type == 'symbol') {
|
|
43
|
+
const description = val.description;
|
|
44
|
+
if (description == null) {
|
|
45
|
+
return 'Symbol';
|
|
46
|
+
} else {
|
|
47
|
+
return `Symbol(${description})`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (type == 'function') {
|
|
51
|
+
const name = val.name;
|
|
52
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
53
|
+
return `Function(${name})`;
|
|
54
|
+
} else {
|
|
55
|
+
return 'Function';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// objects
|
|
59
|
+
if (Array.isArray(val)) {
|
|
60
|
+
const length = val.length;
|
|
61
|
+
let debug = '[';
|
|
62
|
+
if (length > 0) {
|
|
63
|
+
debug += debugString(val[0]);
|
|
64
|
+
}
|
|
65
|
+
for(let i = 1; i < length; i++) {
|
|
66
|
+
debug += ', ' + debugString(val[i]);
|
|
67
|
+
}
|
|
68
|
+
debug += ']';
|
|
69
|
+
return debug;
|
|
70
|
+
}
|
|
71
|
+
// Test for built-in
|
|
72
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
73
|
+
let className;
|
|
74
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
75
|
+
className = builtInMatches[1];
|
|
76
|
+
} else {
|
|
77
|
+
// Failed to match the standard '[object ClassName]'
|
|
78
|
+
return toString.call(val);
|
|
79
|
+
}
|
|
80
|
+
if (className == 'Object') {
|
|
81
|
+
// we're a user defined class or Object
|
|
82
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
83
|
+
// easier than looping through ownProperties of `val`.
|
|
84
|
+
try {
|
|
85
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
86
|
+
} catch (_) {
|
|
87
|
+
return 'Object';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// errors
|
|
91
|
+
if (val instanceof Error) {
|
|
92
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
93
|
+
}
|
|
94
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
95
|
+
return className;
|
|
45
96
|
}
|
|
46
97
|
|
|
47
98
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -107,82 +158,44 @@ function getDataViewMemory0() {
|
|
|
107
158
|
return cachedDataViewMemory0;
|
|
108
159
|
}
|
|
109
160
|
|
|
161
|
+
function addToExternrefTable0(obj) {
|
|
162
|
+
const idx = wasm.__externref_table_alloc();
|
|
163
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
164
|
+
return idx;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function handleError(f, args) {
|
|
168
|
+
try {
|
|
169
|
+
return f.apply(this, args);
|
|
170
|
+
} catch (e) {
|
|
171
|
+
const idx = addToExternrefTable0(e);
|
|
172
|
+
wasm.__wbindgen_exn_store(idx);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
177
|
+
ptr = ptr >>> 0;
|
|
178
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
179
|
+
}
|
|
180
|
+
|
|
110
181
|
function isLikeNone(x) {
|
|
111
182
|
return x === undefined || x === null;
|
|
112
183
|
}
|
|
113
184
|
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (type == 'string') {
|
|
121
|
-
return `"${val}"`;
|
|
122
|
-
}
|
|
123
|
-
if (type == 'symbol') {
|
|
124
|
-
const description = val.description;
|
|
125
|
-
if (description == null) {
|
|
126
|
-
return 'Symbol';
|
|
127
|
-
} else {
|
|
128
|
-
return `Symbol(${description})`;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (type == 'function') {
|
|
132
|
-
const name = val.name;
|
|
133
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
134
|
-
return `Function(${name})`;
|
|
135
|
-
} else {
|
|
136
|
-
return 'Function';
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// objects
|
|
140
|
-
if (Array.isArray(val)) {
|
|
141
|
-
const length = val.length;
|
|
142
|
-
let debug = '[';
|
|
143
|
-
if (length > 0) {
|
|
144
|
-
debug += debugString(val[0]);
|
|
145
|
-
}
|
|
146
|
-
for(let i = 1; i < length; i++) {
|
|
147
|
-
debug += ', ' + debugString(val[i]);
|
|
148
|
-
}
|
|
149
|
-
debug += ']';
|
|
150
|
-
return debug;
|
|
151
|
-
}
|
|
152
|
-
// Test for built-in
|
|
153
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
154
|
-
let className;
|
|
155
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
156
|
-
className = builtInMatches[1];
|
|
157
|
-
} else {
|
|
158
|
-
// Failed to match the standard '[object ClassName]'
|
|
159
|
-
return toString.call(val);
|
|
160
|
-
}
|
|
161
|
-
if (className == 'Object') {
|
|
162
|
-
// we're a user defined class or Object
|
|
163
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
164
|
-
// easier than looping through ownProperties of `val`.
|
|
165
|
-
try {
|
|
166
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
167
|
-
} catch (_) {
|
|
168
|
-
return 'Object';
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
// errors
|
|
172
|
-
if (val instanceof Error) {
|
|
173
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
185
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
186
|
+
ptr = ptr >>> 0;
|
|
187
|
+
const mem = getDataViewMemory0();
|
|
188
|
+
const result = [];
|
|
189
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
190
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
174
191
|
}
|
|
175
|
-
|
|
176
|
-
return
|
|
192
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
193
|
+
return result;
|
|
177
194
|
}
|
|
178
195
|
|
|
179
196
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
180
197
|
? { register: () => {}, unregister: () => {} }
|
|
181
|
-
: new FinalizationRegistry(
|
|
182
|
-
state => {
|
|
183
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
184
|
-
}
|
|
185
|
-
);
|
|
198
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
186
199
|
|
|
187
200
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
188
201
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -197,30 +210,21 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
197
210
|
try {
|
|
198
211
|
return f(a, state.b, ...args);
|
|
199
212
|
} finally {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
state.a = a;
|
|
214
|
+
real._wbg_cb_unref();
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
real._wbg_cb_unref = () => {
|
|
218
|
+
if (--state.cnt === 0) {
|
|
219
|
+
state.dtor(state.a, state.b);
|
|
220
|
+
state.a = 0;
|
|
221
|
+
CLOSURE_DTORS.unregister(state);
|
|
206
222
|
}
|
|
207
223
|
};
|
|
208
|
-
real.original = state;
|
|
209
224
|
CLOSURE_DTORS.register(real, state, state);
|
|
210
225
|
return real;
|
|
211
226
|
}
|
|
212
227
|
|
|
213
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
214
|
-
ptr = ptr >>> 0;
|
|
215
|
-
const mem = getDataViewMemory0();
|
|
216
|
-
const result = [];
|
|
217
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
218
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
219
|
-
}
|
|
220
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
221
|
-
return result;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
228
|
function passArray8ToWasm0(arg, malloc) {
|
|
225
229
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
226
230
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -229,17 +233,11 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
function takeFromExternrefTable0(idx) {
|
|
232
|
-
const value = wasm.
|
|
236
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
233
237
|
wasm.__externref_table_dealloc(idx);
|
|
234
238
|
return value;
|
|
235
239
|
}
|
|
236
240
|
|
|
237
|
-
function _assertClass(instance, klass) {
|
|
238
|
-
if (!(instance instanceof klass)) {
|
|
239
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
241
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
244
242
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
245
243
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -259,12 +257,12 @@ exports.setPanicHook = function() {
|
|
|
259
257
|
wasm.setPanicHook();
|
|
260
258
|
};
|
|
261
259
|
|
|
262
|
-
function
|
|
263
|
-
wasm.
|
|
260
|
+
function wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2) {
|
|
261
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h06e685b12973e965(arg0, arg1, arg2);
|
|
264
262
|
}
|
|
265
263
|
|
|
266
|
-
function
|
|
267
|
-
wasm.
|
|
264
|
+
function wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3) {
|
|
265
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(arg0, arg1, arg2, arg3);
|
|
268
266
|
}
|
|
269
267
|
|
|
270
268
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -322,51 +320,6 @@ if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
|
322
320
|
|
|
323
321
|
exports.Access = Access;
|
|
324
322
|
|
|
325
|
-
const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
326
|
-
? { register: () => {}, unregister: () => {} }
|
|
327
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_addmembererror_free(ptr >>> 0, 1));
|
|
328
|
-
|
|
329
|
-
class AddMemberError {
|
|
330
|
-
|
|
331
|
-
static __wrap(ptr) {
|
|
332
|
-
ptr = ptr >>> 0;
|
|
333
|
-
const obj = Object.create(AddMemberError.prototype);
|
|
334
|
-
obj.__wbg_ptr = ptr;
|
|
335
|
-
AddMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
336
|
-
return obj;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
__destroy_into_raw() {
|
|
340
|
-
const ptr = this.__wbg_ptr;
|
|
341
|
-
this.__wbg_ptr = 0;
|
|
342
|
-
AddMemberErrorFinalization.unregister(this);
|
|
343
|
-
return ptr;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
free() {
|
|
347
|
-
const ptr = this.__destroy_into_raw();
|
|
348
|
-
wasm.__wbg_addmembererror_free(ptr, 0);
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* @returns {string}
|
|
352
|
-
*/
|
|
353
|
-
message() {
|
|
354
|
-
let deferred1_0;
|
|
355
|
-
let deferred1_1;
|
|
356
|
-
try {
|
|
357
|
-
const ret = wasm.addmembererror_message(this.__wbg_ptr);
|
|
358
|
-
deferred1_0 = ret[0];
|
|
359
|
-
deferred1_1 = ret[1];
|
|
360
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
361
|
-
} finally {
|
|
362
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
|
|
367
|
-
|
|
368
|
-
exports.AddMemberError = AddMemberError;
|
|
369
|
-
|
|
370
323
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
371
324
|
? { register: () => {}, unregister: () => {} }
|
|
372
325
|
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
@@ -495,17 +448,14 @@ class Archive {
|
|
|
495
448
|
* @param {CiphertextStore} ciphertext_store
|
|
496
449
|
* @param {Signer} signer
|
|
497
450
|
* @param {Function} event_handler
|
|
498
|
-
* @returns {Keyhive}
|
|
451
|
+
* @returns {Promise<Keyhive>}
|
|
499
452
|
*/
|
|
500
453
|
tryToKeyhive(ciphertext_store, signer, event_handler) {
|
|
501
454
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
502
455
|
var ptr0 = ciphertext_store.__destroy_into_raw();
|
|
503
456
|
_assertClass(signer, Signer);
|
|
504
457
|
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]);
|
|
458
|
+
return ret;
|
|
509
459
|
}
|
|
510
460
|
}
|
|
511
461
|
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
@@ -668,22 +618,22 @@ if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prot
|
|
|
668
618
|
|
|
669
619
|
exports.CgkaOperation = CgkaOperation;
|
|
670
620
|
|
|
671
|
-
const
|
|
621
|
+
const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
672
622
|
? { register: () => {}, unregister: () => {} }
|
|
673
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
623
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
|
|
674
624
|
|
|
675
|
-
class
|
|
625
|
+
class ChangeId {
|
|
676
626
|
|
|
677
627
|
static __wrap(ptr) {
|
|
678
628
|
ptr = ptr >>> 0;
|
|
679
|
-
const obj = Object.create(
|
|
629
|
+
const obj = Object.create(ChangeId.prototype);
|
|
680
630
|
obj.__wbg_ptr = ptr;
|
|
681
|
-
|
|
631
|
+
ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
682
632
|
return obj;
|
|
683
633
|
}
|
|
684
634
|
|
|
685
635
|
static __unwrap(jsValue) {
|
|
686
|
-
if (!(jsValue instanceof
|
|
636
|
+
if (!(jsValue instanceof ChangeId)) {
|
|
687
637
|
return 0;
|
|
688
638
|
}
|
|
689
639
|
return jsValue.__destroy_into_raw();
|
|
@@ -692,13 +642,13 @@ class ChangeRef {
|
|
|
692
642
|
__destroy_into_raw() {
|
|
693
643
|
const ptr = this.__wbg_ptr;
|
|
694
644
|
this.__wbg_ptr = 0;
|
|
695
|
-
|
|
645
|
+
ChangeIdFinalization.unregister(this);
|
|
696
646
|
return ptr;
|
|
697
647
|
}
|
|
698
648
|
|
|
699
649
|
free() {
|
|
700
650
|
const ptr = this.__destroy_into_raw();
|
|
701
|
-
wasm.
|
|
651
|
+
wasm.__wbg_changeid_free(ptr, 0);
|
|
702
652
|
}
|
|
703
653
|
/**
|
|
704
654
|
* @param {Uint8Array} bytes
|
|
@@ -706,24 +656,32 @@ class ChangeRef {
|
|
|
706
656
|
constructor(bytes) {
|
|
707
657
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
708
658
|
const len0 = WASM_VECTOR_LEN;
|
|
709
|
-
const ret = wasm.
|
|
659
|
+
const ret = wasm.changeid_new(ptr0, len0);
|
|
710
660
|
this.__wbg_ptr = ret >>> 0;
|
|
711
|
-
|
|
661
|
+
ChangeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
712
662
|
return this;
|
|
713
663
|
}
|
|
714
664
|
/**
|
|
715
665
|
* @returns {Uint8Array}
|
|
716
666
|
*/
|
|
717
667
|
get bytes() {
|
|
718
|
-
const ret = wasm.
|
|
668
|
+
const ret = wasm.changeid_bytes(this.__wbg_ptr);
|
|
719
669
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
720
670
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
721
671
|
return v1;
|
|
722
672
|
}
|
|
673
|
+
/**
|
|
674
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
675
|
+
* @returns {ChangeId}
|
|
676
|
+
*/
|
|
677
|
+
__wasm_refgen_toChangeId() {
|
|
678
|
+
const ret = wasm.changeid___wasm_refgen_toChangeId(this.__wbg_ptr);
|
|
679
|
+
return ChangeId.__wrap(ret);
|
|
680
|
+
}
|
|
723
681
|
}
|
|
724
|
-
if (Symbol.dispose)
|
|
682
|
+
if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
|
|
725
683
|
|
|
726
|
-
exports.
|
|
684
|
+
exports.ChangeId = ChangeId;
|
|
727
685
|
|
|
728
686
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
729
687
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -818,6 +776,13 @@ class ContactCard {
|
|
|
818
776
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
819
777
|
return v1;
|
|
820
778
|
}
|
|
779
|
+
/**
|
|
780
|
+
* @returns {Agent}
|
|
781
|
+
*/
|
|
782
|
+
toAgent() {
|
|
783
|
+
const ret = wasm.contactcard_toAgent(this.__wbg_ptr);
|
|
784
|
+
return Agent.__wrap(ret);
|
|
785
|
+
}
|
|
821
786
|
/**
|
|
822
787
|
* @param {string} json
|
|
823
788
|
* @returns {ContactCard}
|
|
@@ -915,28 +880,6 @@ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.
|
|
|
915
880
|
|
|
916
881
|
exports.Delegation = Delegation;
|
|
917
882
|
|
|
918
|
-
const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
919
|
-
? { register: () => {}, unregister: () => {} }
|
|
920
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_delegationerror_free(ptr >>> 0, 1));
|
|
921
|
-
|
|
922
|
-
class DelegationError {
|
|
923
|
-
|
|
924
|
-
__destroy_into_raw() {
|
|
925
|
-
const ptr = this.__wbg_ptr;
|
|
926
|
-
this.__wbg_ptr = 0;
|
|
927
|
-
DelegationErrorFinalization.unregister(this);
|
|
928
|
-
return ptr;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
free() {
|
|
932
|
-
const ptr = this.__destroy_into_raw();
|
|
933
|
-
wasm.__wbg_delegationerror_free(ptr, 0);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
|
|
937
|
-
|
|
938
|
-
exports.DelegationError = DelegationError;
|
|
939
|
-
|
|
940
883
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
941
884
|
? { register: () => {}, unregister: () => {} }
|
|
942
885
|
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
@@ -964,7 +907,7 @@ class DocContentRefs {
|
|
|
964
907
|
}
|
|
965
908
|
/**
|
|
966
909
|
* @param {DocumentId} doc_id
|
|
967
|
-
* @param {
|
|
910
|
+
* @param {ChangeId[]} change_hashes
|
|
968
911
|
*/
|
|
969
912
|
constructor(doc_id, change_hashes) {
|
|
970
913
|
_assertClass(doc_id, DocumentId);
|
|
@@ -980,12 +923,14 @@ class DocContentRefs {
|
|
|
980
923
|
return this;
|
|
981
924
|
}
|
|
982
925
|
/**
|
|
983
|
-
* @param {
|
|
926
|
+
* @param {ChangeId} hash
|
|
927
|
+
* @returns {Promise<void>}
|
|
984
928
|
*/
|
|
985
|
-
|
|
986
|
-
_assertClass(hash,
|
|
929
|
+
addChangeId(hash) {
|
|
930
|
+
_assertClass(hash, ChangeId);
|
|
987
931
|
var ptr0 = hash.__destroy_into_raw();
|
|
988
|
-
wasm.
|
|
932
|
+
const ret = wasm.doccontentrefs_addChangeId(this.__wbg_ptr, ptr0);
|
|
933
|
+
return ret;
|
|
989
934
|
}
|
|
990
935
|
/**
|
|
991
936
|
* @returns {DocumentId}
|
|
@@ -995,13 +940,11 @@ class DocContentRefs {
|
|
|
995
940
|
return DocumentId.__wrap(ret);
|
|
996
941
|
}
|
|
997
942
|
/**
|
|
998
|
-
* @returns {
|
|
943
|
+
* @returns {Promise<ChangeId[]>}
|
|
999
944
|
*/
|
|
1000
945
|
get change_hashes() {
|
|
1001
946
|
const ret = wasm.doccontentrefs_change_hashes(this.__wbg_ptr);
|
|
1002
|
-
|
|
1003
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1004
|
-
return v1;
|
|
947
|
+
return ret;
|
|
1005
948
|
}
|
|
1006
949
|
}
|
|
1007
950
|
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
@@ -1022,13 +965,6 @@ class Document {
|
|
|
1022
965
|
return obj;
|
|
1023
966
|
}
|
|
1024
967
|
|
|
1025
|
-
static __unwrap(jsValue) {
|
|
1026
|
-
if (!(jsValue instanceof Document)) {
|
|
1027
|
-
return 0;
|
|
1028
|
-
}
|
|
1029
|
-
return jsValue.__destroy_into_raw();
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
968
|
__destroy_into_raw() {
|
|
1033
969
|
const ptr = this.__wbg_ptr;
|
|
1034
970
|
this.__wbg_ptr = 0;
|
|
@@ -1044,7 +980,7 @@ class Document {
|
|
|
1044
980
|
* @returns {Identifier}
|
|
1045
981
|
*/
|
|
1046
982
|
get id() {
|
|
1047
|
-
const ret = wasm.
|
|
983
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1048
984
|
return Identifier.__wrap(ret);
|
|
1049
985
|
}
|
|
1050
986
|
/**
|
|
@@ -1068,6 +1004,21 @@ class Document {
|
|
|
1068
1004
|
const ret = wasm.document_toAgent(this.__wbg_ptr);
|
|
1069
1005
|
return Agent.__wrap(ret);
|
|
1070
1006
|
}
|
|
1007
|
+
/**
|
|
1008
|
+
* @returns {Membered}
|
|
1009
|
+
*/
|
|
1010
|
+
toMembered() {
|
|
1011
|
+
const ret = wasm.document_toMembered(this.__wbg_ptr);
|
|
1012
|
+
return Membered.__wrap(ret);
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
1016
|
+
* @returns {Document}
|
|
1017
|
+
*/
|
|
1018
|
+
__wasm_refgen_toDocument() {
|
|
1019
|
+
const ret = wasm.document___wasm_refgen_toDocument(this.__wbg_ptr);
|
|
1020
|
+
return Document.__wrap(ret);
|
|
1021
|
+
}
|
|
1071
1022
|
}
|
|
1072
1023
|
if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
|
|
1073
1024
|
|
|
@@ -1115,11 +1066,11 @@ class DocumentId {
|
|
|
1115
1066
|
/**
|
|
1116
1067
|
* @returns {string}
|
|
1117
1068
|
*/
|
|
1118
|
-
|
|
1069
|
+
toString() {
|
|
1119
1070
|
let deferred1_0;
|
|
1120
1071
|
let deferred1_1;
|
|
1121
1072
|
try {
|
|
1122
|
-
const ret = wasm.
|
|
1073
|
+
const ret = wasm.documentid_toString(this.__wbg_ptr);
|
|
1123
1074
|
deferred1_0 = ret[0];
|
|
1124
1075
|
deferred1_1 = ret[1];
|
|
1125
1076
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1344,55 +1295,24 @@ class Event {
|
|
|
1344
1295
|
const ret = wasm.event_tryIntoSignedRevocation(this.__wbg_ptr);
|
|
1345
1296
|
return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
|
|
1346
1297
|
}
|
|
1347
|
-
}
|
|
1348
|
-
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1349
|
-
|
|
1350
|
-
exports.Event = Event;
|
|
1351
|
-
|
|
1352
|
-
const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1353
|
-
? { register: () => {}, unregister: () => {} }
|
|
1354
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_generatedocerror_free(ptr >>> 0, 1));
|
|
1355
|
-
|
|
1356
|
-
class GenerateDocError {
|
|
1357
|
-
|
|
1358
|
-
static __wrap(ptr) {
|
|
1359
|
-
ptr = ptr >>> 0;
|
|
1360
|
-
const obj = Object.create(GenerateDocError.prototype);
|
|
1361
|
-
obj.__wbg_ptr = ptr;
|
|
1362
|
-
GenerateDocErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1363
|
-
return obj;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
__destroy_into_raw() {
|
|
1367
|
-
const ptr = this.__wbg_ptr;
|
|
1368
|
-
this.__wbg_ptr = 0;
|
|
1369
|
-
GenerateDocErrorFinalization.unregister(this);
|
|
1370
|
-
return ptr;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
free() {
|
|
1374
|
-
const ptr = this.__destroy_into_raw();
|
|
1375
|
-
wasm.__wbg_generatedocerror_free(ptr, 0);
|
|
1376
|
-
}
|
|
1377
1298
|
/**
|
|
1378
|
-
*
|
|
1299
|
+
* Converts the underlying [`Event`] to a [`StaticEvent`] and then
|
|
1300
|
+
* serializes it.
|
|
1301
|
+
* @returns {Uint8Array}
|
|
1379
1302
|
*/
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
const ret = wasm.generatedocerror_message(this.__wbg_ptr);
|
|
1385
|
-
deferred1_0 = ret[0];
|
|
1386
|
-
deferred1_1 = ret[1];
|
|
1387
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1388
|
-
} finally {
|
|
1389
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1303
|
+
toBytes() {
|
|
1304
|
+
const ret = wasm.event_toBytes(this.__wbg_ptr);
|
|
1305
|
+
if (ret[3]) {
|
|
1306
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1390
1307
|
}
|
|
1308
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1309
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1310
|
+
return v1;
|
|
1391
1311
|
}
|
|
1392
1312
|
}
|
|
1393
|
-
if (Symbol.dispose)
|
|
1313
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1394
1314
|
|
|
1395
|
-
exports.
|
|
1315
|
+
exports.Event = Event;
|
|
1396
1316
|
|
|
1397
1317
|
const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1398
1318
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1439,43 +1359,6 @@ if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateW
|
|
|
1439
1359
|
|
|
1440
1360
|
exports.GenerateWebCryptoError = GenerateWebCryptoError;
|
|
1441
1361
|
|
|
1442
|
-
const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1443
|
-
? { register: () => {}, unregister: () => {} }
|
|
1444
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_getciphertexterror_free(ptr >>> 0, 1));
|
|
1445
|
-
|
|
1446
|
-
class GetCiphertextError {
|
|
1447
|
-
|
|
1448
|
-
__destroy_into_raw() {
|
|
1449
|
-
const ptr = this.__wbg_ptr;
|
|
1450
|
-
this.__wbg_ptr = 0;
|
|
1451
|
-
GetCiphertextErrorFinalization.unregister(this);
|
|
1452
|
-
return ptr;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
free() {
|
|
1456
|
-
const ptr = this.__destroy_into_raw();
|
|
1457
|
-
wasm.__wbg_getciphertexterror_free(ptr, 0);
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1460
|
-
* @returns {string}
|
|
1461
|
-
*/
|
|
1462
|
-
get message() {
|
|
1463
|
-
let deferred1_0;
|
|
1464
|
-
let deferred1_1;
|
|
1465
|
-
try {
|
|
1466
|
-
const ret = wasm.getciphertexterror_message(this.__wbg_ptr);
|
|
1467
|
-
deferred1_0 = ret[0];
|
|
1468
|
-
deferred1_1 = ret[1];
|
|
1469
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1470
|
-
} finally {
|
|
1471
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
|
|
1476
|
-
|
|
1477
|
-
exports.GetCiphertextError = GetCiphertextError;
|
|
1478
|
-
|
|
1479
1362
|
const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1480
1363
|
? { register: () => {}, unregister: () => {} }
|
|
1481
1364
|
: new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
|
|
@@ -1505,24 +1388,22 @@ class Group {
|
|
|
1505
1388
|
* @returns {Identifier}
|
|
1506
1389
|
*/
|
|
1507
1390
|
get id() {
|
|
1508
|
-
const ret = wasm.
|
|
1391
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1509
1392
|
return Identifier.__wrap(ret);
|
|
1510
1393
|
}
|
|
1511
1394
|
/**
|
|
1512
1395
|
* @returns {GroupId}
|
|
1513
1396
|
*/
|
|
1514
1397
|
get groupId() {
|
|
1515
|
-
const ret = wasm.
|
|
1398
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
1516
1399
|
return GroupId.__wrap(ret);
|
|
1517
1400
|
}
|
|
1518
1401
|
/**
|
|
1519
|
-
* @returns {Capability[]}
|
|
1402
|
+
* @returns {Promise<Capability[]>}
|
|
1520
1403
|
*/
|
|
1521
|
-
|
|
1404
|
+
members() {
|
|
1522
1405
|
const ret = wasm.group_members(this.__wbg_ptr);
|
|
1523
|
-
|
|
1524
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1525
|
-
return v1;
|
|
1406
|
+
return ret;
|
|
1526
1407
|
}
|
|
1527
1408
|
/**
|
|
1528
1409
|
* @returns {Peer}
|
|
@@ -1545,6 +1426,14 @@ class Group {
|
|
|
1545
1426
|
const ret = wasm.group_toMembered(this.__wbg_ptr);
|
|
1546
1427
|
return Membered.__wrap(ret);
|
|
1547
1428
|
}
|
|
1429
|
+
/**
|
|
1430
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
1431
|
+
* @returns {Group}
|
|
1432
|
+
*/
|
|
1433
|
+
__wasm_refgen_toGroup() {
|
|
1434
|
+
const ret = wasm.group___wasm_refgen_toGroup(this.__wbg_ptr);
|
|
1435
|
+
return Group.__wrap(ret);
|
|
1436
|
+
}
|
|
1548
1437
|
}
|
|
1549
1438
|
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1550
1439
|
|
|
@@ -1755,18 +1644,18 @@ class Individual {
|
|
|
1755
1644
|
* @returns {IndividualId}
|
|
1756
1645
|
*/
|
|
1757
1646
|
get individualId() {
|
|
1758
|
-
const ret = wasm.
|
|
1647
|
+
const ret = wasm.individual_id(this.__wbg_ptr);
|
|
1759
1648
|
return IndividualId.__wrap(ret);
|
|
1760
1649
|
}
|
|
1761
1650
|
/**
|
|
1762
1651
|
* @param {DocumentId} doc_id
|
|
1763
|
-
* @returns {ShareKey}
|
|
1652
|
+
* @returns {Promise<ShareKey>}
|
|
1764
1653
|
*/
|
|
1765
1654
|
pickPrekey(doc_id) {
|
|
1766
1655
|
_assertClass(doc_id, DocumentId);
|
|
1767
1656
|
var ptr0 = doc_id.__destroy_into_raw();
|
|
1768
1657
|
const ret = wasm.individual_pickPrekey(this.__wbg_ptr, ptr0);
|
|
1769
|
-
return
|
|
1658
|
+
return ret;
|
|
1770
1659
|
}
|
|
1771
1660
|
}
|
|
1772
1661
|
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
@@ -1834,126 +1723,6 @@ if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.
|
|
|
1834
1723
|
|
|
1835
1724
|
exports.Invocation = Invocation;
|
|
1836
1725
|
|
|
1837
|
-
const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1838
|
-
? { register: () => {}, unregister: () => {} }
|
|
1839
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsdecrypterror_free(ptr >>> 0, 1));
|
|
1840
|
-
|
|
1841
|
-
class JsDecryptError {
|
|
1842
|
-
|
|
1843
|
-
static __wrap(ptr) {
|
|
1844
|
-
ptr = ptr >>> 0;
|
|
1845
|
-
const obj = Object.create(JsDecryptError.prototype);
|
|
1846
|
-
obj.__wbg_ptr = ptr;
|
|
1847
|
-
JsDecryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1848
|
-
return obj;
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
__destroy_into_raw() {
|
|
1852
|
-
const ptr = this.__wbg_ptr;
|
|
1853
|
-
this.__wbg_ptr = 0;
|
|
1854
|
-
JsDecryptErrorFinalization.unregister(this);
|
|
1855
|
-
return ptr;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
free() {
|
|
1859
|
-
const ptr = this.__destroy_into_raw();
|
|
1860
|
-
wasm.__wbg_jsdecrypterror_free(ptr, 0);
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
|
|
1864
|
-
|
|
1865
|
-
exports.JsDecryptError = JsDecryptError;
|
|
1866
|
-
|
|
1867
|
-
const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1868
|
-
? { register: () => {}, unregister: () => {} }
|
|
1869
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsencrypterror_free(ptr >>> 0, 1));
|
|
1870
|
-
|
|
1871
|
-
class JsEncryptError {
|
|
1872
|
-
|
|
1873
|
-
static __wrap(ptr) {
|
|
1874
|
-
ptr = ptr >>> 0;
|
|
1875
|
-
const obj = Object.create(JsEncryptError.prototype);
|
|
1876
|
-
obj.__wbg_ptr = ptr;
|
|
1877
|
-
JsEncryptErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1878
|
-
return obj;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
__destroy_into_raw() {
|
|
1882
|
-
const ptr = this.__wbg_ptr;
|
|
1883
|
-
this.__wbg_ptr = 0;
|
|
1884
|
-
JsEncryptErrorFinalization.unregister(this);
|
|
1885
|
-
return ptr;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
free() {
|
|
1889
|
-
const ptr = this.__destroy_into_raw();
|
|
1890
|
-
wasm.__wbg_jsencrypterror_free(ptr, 0);
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
|
|
1894
|
-
|
|
1895
|
-
exports.JsEncryptError = JsEncryptError;
|
|
1896
|
-
|
|
1897
|
-
const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1898
|
-
? { register: () => {}, unregister: () => {} }
|
|
1899
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceiveprekeyoperror_free(ptr >>> 0, 1));
|
|
1900
|
-
|
|
1901
|
-
class JsReceivePreKeyOpError {
|
|
1902
|
-
|
|
1903
|
-
static __wrap(ptr) {
|
|
1904
|
-
ptr = ptr >>> 0;
|
|
1905
|
-
const obj = Object.create(JsReceivePreKeyOpError.prototype);
|
|
1906
|
-
obj.__wbg_ptr = ptr;
|
|
1907
|
-
JsReceivePreKeyOpErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1908
|
-
return obj;
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
__destroy_into_raw() {
|
|
1912
|
-
const ptr = this.__wbg_ptr;
|
|
1913
|
-
this.__wbg_ptr = 0;
|
|
1914
|
-
JsReceivePreKeyOpErrorFinalization.unregister(this);
|
|
1915
|
-
return ptr;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
free() {
|
|
1919
|
-
const ptr = this.__destroy_into_raw();
|
|
1920
|
-
wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
|
|
1924
|
-
|
|
1925
|
-
exports.JsReceivePreKeyOpError = JsReceivePreKeyOpError;
|
|
1926
|
-
|
|
1927
|
-
const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1928
|
-
? { register: () => {}, unregister: () => {} }
|
|
1929
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsreceivestaticeventerror_free(ptr >>> 0, 1));
|
|
1930
|
-
|
|
1931
|
-
class JsReceiveStaticEventError {
|
|
1932
|
-
|
|
1933
|
-
static __wrap(ptr) {
|
|
1934
|
-
ptr = ptr >>> 0;
|
|
1935
|
-
const obj = Object.create(JsReceiveStaticEventError.prototype);
|
|
1936
|
-
obj.__wbg_ptr = ptr;
|
|
1937
|
-
JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1938
|
-
return obj;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
__destroy_into_raw() {
|
|
1942
|
-
const ptr = this.__wbg_ptr;
|
|
1943
|
-
this.__wbg_ptr = 0;
|
|
1944
|
-
JsReceiveStaticEventErrorFinalization.unregister(this);
|
|
1945
|
-
return ptr;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
free() {
|
|
1949
|
-
const ptr = this.__destroy_into_raw();
|
|
1950
|
-
wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
|
|
1954
|
-
|
|
1955
|
-
exports.JsReceiveStaticEventError = JsReceiveStaticEventError;
|
|
1956
|
-
|
|
1957
1726
|
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1958
1727
|
? { register: () => {}, unregister: () => {} }
|
|
1959
1728
|
: new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
|
|
@@ -1988,8 +1757,7 @@ class Keyhive {
|
|
|
1988
1757
|
static init(signer, ciphertext_store, event_handler) {
|
|
1989
1758
|
_assertClass(signer, Signer);
|
|
1990
1759
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
1991
|
-
|
|
1992
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ptr0, event_handler);
|
|
1760
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1993
1761
|
return ret;
|
|
1994
1762
|
}
|
|
1995
1763
|
/**
|
|
@@ -2006,6 +1774,13 @@ class Keyhive {
|
|
|
2006
1774
|
const ret = wasm.keyhive_id(this.__wbg_ptr);
|
|
2007
1775
|
return IndividualId.__wrap(ret);
|
|
2008
1776
|
}
|
|
1777
|
+
/**
|
|
1778
|
+
* @returns {Promise<Individual>}
|
|
1779
|
+
*/
|
|
1780
|
+
get individual() {
|
|
1781
|
+
const ret = wasm.keyhive_individual(this.__wbg_ptr);
|
|
1782
|
+
return ret;
|
|
1783
|
+
}
|
|
2009
1784
|
/**
|
|
2010
1785
|
* @returns {string}
|
|
2011
1786
|
*/
|
|
@@ -2022,25 +1797,25 @@ class Keyhive {
|
|
|
2022
1797
|
}
|
|
2023
1798
|
}
|
|
2024
1799
|
/**
|
|
2025
|
-
* @param {Peer[]}
|
|
1800
|
+
* @param {Peer[]} js_coparents
|
|
2026
1801
|
* @returns {Promise<Group>}
|
|
2027
1802
|
*/
|
|
2028
|
-
generateGroup(
|
|
2029
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1803
|
+
generateGroup(js_coparents) {
|
|
1804
|
+
const ptr0 = passArrayJsValueToWasm0(js_coparents, wasm.__wbindgen_malloc);
|
|
2030
1805
|
const len0 = WASM_VECTOR_LEN;
|
|
2031
1806
|
const ret = wasm.keyhive_generateGroup(this.__wbg_ptr, ptr0, len0);
|
|
2032
1807
|
return ret;
|
|
2033
1808
|
}
|
|
2034
1809
|
/**
|
|
2035
1810
|
* @param {Peer[]} coparents
|
|
2036
|
-
* @param {
|
|
2037
|
-
* @param {
|
|
1811
|
+
* @param {ChangeId} initial_content_ref_head
|
|
1812
|
+
* @param {ChangeId[]} more_initial_content_refs
|
|
2038
1813
|
* @returns {Promise<Document>}
|
|
2039
1814
|
*/
|
|
2040
1815
|
generateDocument(coparents, initial_content_ref_head, more_initial_content_refs) {
|
|
2041
1816
|
const ptr0 = passArrayJsValueToWasm0(coparents, wasm.__wbindgen_malloc);
|
|
2042
1817
|
const len0 = WASM_VECTOR_LEN;
|
|
2043
|
-
_assertClass(initial_content_ref_head,
|
|
1818
|
+
_assertClass(initial_content_ref_head, ChangeId);
|
|
2044
1819
|
var ptr1 = initial_content_ref_head.__destroy_into_raw();
|
|
2045
1820
|
const ptr2 = passArrayJsValueToWasm0(more_initial_content_refs, wasm.__wbindgen_malloc);
|
|
2046
1821
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -2059,17 +1834,17 @@ class Keyhive {
|
|
|
2059
1834
|
}
|
|
2060
1835
|
/**
|
|
2061
1836
|
* @param {Document} doc
|
|
2062
|
-
* @param {
|
|
2063
|
-
* @param {
|
|
1837
|
+
* @param {ChangeId} content_ref
|
|
1838
|
+
* @param {ChangeId[]} js_pred_refs
|
|
2064
1839
|
* @param {Uint8Array} content
|
|
2065
1840
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2066
1841
|
*/
|
|
2067
|
-
tryEncrypt(doc, content_ref,
|
|
1842
|
+
tryEncrypt(doc, content_ref, js_pred_refs, content) {
|
|
2068
1843
|
_assertClass(doc, Document);
|
|
2069
1844
|
var ptr0 = doc.__destroy_into_raw();
|
|
2070
|
-
_assertClass(content_ref,
|
|
1845
|
+
_assertClass(content_ref, ChangeId);
|
|
2071
1846
|
var ptr1 = content_ref.__destroy_into_raw();
|
|
2072
|
-
const ptr2 = passArrayJsValueToWasm0(
|
|
1847
|
+
const ptr2 = passArrayJsValueToWasm0(js_pred_refs, wasm.__wbindgen_malloc);
|
|
2073
1848
|
const len2 = WASM_VECTOR_LEN;
|
|
2074
1849
|
const ptr3 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
2075
1850
|
const len3 = WASM_VECTOR_LEN;
|
|
@@ -2078,40 +1853,31 @@ class Keyhive {
|
|
|
2078
1853
|
}
|
|
2079
1854
|
/**
|
|
2080
1855
|
* @param {Document} doc
|
|
2081
|
-
* @param {
|
|
2082
|
-
* @param {
|
|
1856
|
+
* @param {ChangeId} content_ref
|
|
1857
|
+
* @param {ChangeId[]} pred_refs
|
|
2083
1858
|
* @param {Uint8Array} content
|
|
2084
1859
|
* @returns {Promise<EncryptedContentWithUpdate>}
|
|
2085
1860
|
*/
|
|
2086
1861
|
tryEncryptArchive(doc, content_ref, pred_refs, content) {
|
|
2087
1862
|
_assertClass(doc, Document);
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
const
|
|
2092
|
-
const
|
|
2093
|
-
const
|
|
2094
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2095
|
-
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3);
|
|
1863
|
+
_assertClass(content_ref, ChangeId);
|
|
1864
|
+
const ptr0 = passArrayJsValueToWasm0(pred_refs, wasm.__wbindgen_malloc);
|
|
1865
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1866
|
+
const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
1867
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1868
|
+
const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2096
1869
|
return ret;
|
|
2097
1870
|
}
|
|
2098
1871
|
/**
|
|
2099
1872
|
* @param {Document} doc
|
|
2100
1873
|
* @param {Encrypted} encrypted
|
|
2101
|
-
* @returns {Uint8Array}
|
|
1874
|
+
* @returns {Promise<Uint8Array>}
|
|
2102
1875
|
*/
|
|
2103
1876
|
tryDecrypt(doc, encrypted) {
|
|
2104
1877
|
_assertClass(doc, Document);
|
|
2105
|
-
var ptr0 = doc.__destroy_into_raw();
|
|
2106
1878
|
_assertClass(encrypted, Encrypted);
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
if (ret[3]) {
|
|
2110
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
2111
|
-
}
|
|
2112
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2113
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2114
|
-
return v3;
|
|
1879
|
+
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1880
|
+
return ret;
|
|
2115
1881
|
}
|
|
2116
1882
|
/**
|
|
2117
1883
|
* @param {Agent} to_add
|
|
@@ -2143,13 +1909,11 @@ class Keyhive {
|
|
|
2143
1909
|
return ret;
|
|
2144
1910
|
}
|
|
2145
1911
|
/**
|
|
2146
|
-
* @returns {Summary[]}
|
|
1912
|
+
* @returns {Promise<Summary[]>}
|
|
2147
1913
|
*/
|
|
2148
1914
|
reachableDocs() {
|
|
2149
1915
|
const ret = wasm.keyhive_reachableDocs(this.__wbg_ptr);
|
|
2150
|
-
|
|
2151
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2152
|
-
return v1;
|
|
1916
|
+
return ret;
|
|
2153
1917
|
}
|
|
2154
1918
|
/**
|
|
2155
1919
|
* @param {Document} doc
|
|
@@ -2186,71 +1950,74 @@ class Keyhive {
|
|
|
2186
1950
|
}
|
|
2187
1951
|
/**
|
|
2188
1952
|
* @param {ContactCard} contact_card
|
|
2189
|
-
* @returns {Individual}
|
|
1953
|
+
* @returns {Promise<Individual>}
|
|
2190
1954
|
*/
|
|
2191
1955
|
receiveContactCard(contact_card) {
|
|
2192
1956
|
_assertClass(contact_card, ContactCard);
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
if (ret[2]) {
|
|
2196
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2197
|
-
}
|
|
2198
|
-
return Individual.__wrap(ret[0]);
|
|
1957
|
+
const ret = wasm.keyhive_receiveContactCard(this.__wbg_ptr, contact_card.__wbg_ptr);
|
|
1958
|
+
return ret;
|
|
2199
1959
|
}
|
|
2200
1960
|
/**
|
|
2201
1961
|
* @param {Identifier} id
|
|
2202
|
-
* @returns {Agent | undefined}
|
|
1962
|
+
* @returns {Promise<Agent | undefined>}
|
|
2203
1963
|
*/
|
|
2204
1964
|
getAgent(id) {
|
|
2205
1965
|
_assertClass(id, Identifier);
|
|
2206
1966
|
const ret = wasm.keyhive_getAgent(this.__wbg_ptr, id.__wbg_ptr);
|
|
2207
|
-
return ret
|
|
1967
|
+
return ret;
|
|
2208
1968
|
}
|
|
2209
1969
|
/**
|
|
2210
|
-
* @param {
|
|
2211
|
-
* @returns {Group | undefined}
|
|
1970
|
+
* @param {GroupId} group_id
|
|
1971
|
+
* @returns {Promise<Group | undefined>}
|
|
2212
1972
|
*/
|
|
2213
|
-
getGroup(
|
|
2214
|
-
_assertClass(
|
|
2215
|
-
const ret = wasm.keyhive_getGroup(this.__wbg_ptr,
|
|
2216
|
-
return ret
|
|
1973
|
+
getGroup(group_id) {
|
|
1974
|
+
_assertClass(group_id, GroupId);
|
|
1975
|
+
const ret = wasm.keyhive_getGroup(this.__wbg_ptr, group_id.__wbg_ptr);
|
|
1976
|
+
return ret;
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* @param {DocumentId} doc_id
|
|
1980
|
+
* @returns {Promise<Document | undefined>}
|
|
1981
|
+
*/
|
|
1982
|
+
getDocument(doc_id) {
|
|
1983
|
+
_assertClass(doc_id, DocumentId);
|
|
1984
|
+
const ret = wasm.keyhive_getDocument(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
1985
|
+
return ret;
|
|
2217
1986
|
}
|
|
2218
1987
|
/**
|
|
2219
1988
|
* @param {DocumentId} doc_id
|
|
2220
|
-
* @returns {
|
|
1989
|
+
* @returns {Promise<Membership[]>}
|
|
2221
1990
|
*/
|
|
2222
1991
|
docMemberCapabilities(doc_id) {
|
|
2223
1992
|
_assertClass(doc_id, DocumentId);
|
|
2224
1993
|
const ret = wasm.keyhive_docMemberCapabilities(this.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2225
|
-
|
|
2226
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2227
|
-
return v1;
|
|
1994
|
+
return ret;
|
|
2228
1995
|
}
|
|
2229
1996
|
/**
|
|
2230
1997
|
* @param {Identifier} id
|
|
2231
1998
|
* @param {DocumentId} doc_id
|
|
2232
|
-
* @returns {Access | undefined}
|
|
1999
|
+
* @returns {Promise<Access | undefined>}
|
|
2233
2000
|
*/
|
|
2234
2001
|
accessForDoc(id, doc_id) {
|
|
2235
2002
|
_assertClass(id, Identifier);
|
|
2236
2003
|
_assertClass(doc_id, DocumentId);
|
|
2237
2004
|
const ret = wasm.keyhive_accessForDoc(this.__wbg_ptr, id.__wbg_ptr, doc_id.__wbg_ptr);
|
|
2238
|
-
return ret
|
|
2005
|
+
return ret;
|
|
2239
2006
|
}
|
|
2240
2007
|
/**
|
|
2241
|
-
* @returns {Archive}
|
|
2008
|
+
* @returns {Promise<Archive>}
|
|
2242
2009
|
*/
|
|
2243
2010
|
intoArchive() {
|
|
2244
2011
|
const ptr = this.__destroy_into_raw();
|
|
2245
2012
|
const ret = wasm.keyhive_intoArchive(ptr);
|
|
2246
|
-
return
|
|
2013
|
+
return ret;
|
|
2247
2014
|
}
|
|
2248
2015
|
/**
|
|
2249
|
-
* @returns {Archive}
|
|
2016
|
+
* @returns {Promise<Archive>}
|
|
2250
2017
|
*/
|
|
2251
2018
|
toArchive() {
|
|
2252
2019
|
const ret = wasm.keyhive_toArchive(this.__wbg_ptr);
|
|
2253
|
-
return
|
|
2020
|
+
return ret;
|
|
2254
2021
|
}
|
|
2255
2022
|
/**
|
|
2256
2023
|
* @param {Archive} archive
|
|
@@ -2261,6 +2028,21 @@ class Keyhive {
|
|
|
2261
2028
|
const ret = wasm.keyhive_ingestArchive(this.__wbg_ptr, archive.__wbg_ptr);
|
|
2262
2029
|
return ret;
|
|
2263
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* @param {Array<any>} events_bytes_array
|
|
2033
|
+
* @returns {Promise<Array<any>>}
|
|
2034
|
+
*/
|
|
2035
|
+
ingestEventsBytes(events_bytes_array) {
|
|
2036
|
+
const ret = wasm.keyhive_ingestEventsBytes(this.__wbg_ptr, events_bytes_array);
|
|
2037
|
+
return ret;
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* @returns {Promise<Stats>}
|
|
2041
|
+
*/
|
|
2042
|
+
stats() {
|
|
2043
|
+
const ret = wasm.keyhive_stats(this.__wbg_ptr);
|
|
2044
|
+
return ret;
|
|
2045
|
+
}
|
|
2264
2046
|
}
|
|
2265
2047
|
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2266
2048
|
|
|
@@ -2296,27 +2078,64 @@ if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free
|
|
|
2296
2078
|
|
|
2297
2079
|
exports.Membered = Membered;
|
|
2298
2080
|
|
|
2299
|
-
const
|
|
2081
|
+
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2300
2082
|
? { register: () => {}, unregister: () => {} }
|
|
2301
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2083
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
2302
2084
|
|
|
2303
|
-
class
|
|
2085
|
+
class Membership {
|
|
2304
2086
|
|
|
2305
2087
|
static __wrap(ptr) {
|
|
2306
2088
|
ptr = ptr >>> 0;
|
|
2307
|
-
const obj = Object.create(
|
|
2089
|
+
const obj = Object.create(Membership.prototype);
|
|
2308
2090
|
obj.__wbg_ptr = ptr;
|
|
2309
|
-
|
|
2091
|
+
MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2092
|
+
return obj;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
__destroy_into_raw() {
|
|
2096
|
+
const ptr = this.__wbg_ptr;
|
|
2097
|
+
this.__wbg_ptr = 0;
|
|
2098
|
+
MembershipFinalization.unregister(this);
|
|
2099
|
+
return ptr;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
free() {
|
|
2103
|
+
const ptr = this.__destroy_into_raw();
|
|
2104
|
+
wasm.__wbg_membership_free(ptr, 0);
|
|
2105
|
+
}
|
|
2106
|
+
/**
|
|
2107
|
+
* @returns {Agent}
|
|
2108
|
+
*/
|
|
2109
|
+
get who() {
|
|
2110
|
+
const ret = wasm.membership_who(this.__wbg_ptr);
|
|
2111
|
+
return Agent.__wrap(ret);
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* @returns {Access}
|
|
2115
|
+
*/
|
|
2116
|
+
get can() {
|
|
2117
|
+
const ret = wasm.membership_can(this.__wbg_ptr);
|
|
2118
|
+
return Access.__wrap(ret);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
|
|
2122
|
+
|
|
2123
|
+
exports.Membership = Membership;
|
|
2124
|
+
|
|
2125
|
+
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2126
|
+
? { register: () => {}, unregister: () => {} }
|
|
2127
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
|
|
2128
|
+
|
|
2129
|
+
class Peer {
|
|
2130
|
+
|
|
2131
|
+
static __wrap(ptr) {
|
|
2132
|
+
ptr = ptr >>> 0;
|
|
2133
|
+
const obj = Object.create(Peer.prototype);
|
|
2134
|
+
obj.__wbg_ptr = ptr;
|
|
2135
|
+
PeerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2310
2136
|
return obj;
|
|
2311
2137
|
}
|
|
2312
2138
|
|
|
2313
|
-
static __unwrap(jsValue) {
|
|
2314
|
-
if (!(jsValue instanceof Peer)) {
|
|
2315
|
-
return 0;
|
|
2316
|
-
}
|
|
2317
|
-
return jsValue.__destroy_into_raw();
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
2139
|
__destroy_into_raw() {
|
|
2321
2140
|
const ptr = this.__wbg_ptr;
|
|
2322
2141
|
this.__wbg_ptr = 0;
|
|
@@ -2328,6 +2147,13 @@ class Peer {
|
|
|
2328
2147
|
const ptr = this.__destroy_into_raw();
|
|
2329
2148
|
wasm.__wbg_peer_free(ptr, 0);
|
|
2330
2149
|
}
|
|
2150
|
+
/**
|
|
2151
|
+
* @returns {Identifier}
|
|
2152
|
+
*/
|
|
2153
|
+
get id() {
|
|
2154
|
+
const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
|
|
2155
|
+
return Identifier.__wrap(ret);
|
|
2156
|
+
}
|
|
2331
2157
|
/**
|
|
2332
2158
|
* @returns {string}
|
|
2333
2159
|
*/
|
|
@@ -2364,33 +2190,19 @@ class Peer {
|
|
|
2364
2190
|
const ret = wasm.peer_isDocument(this.__wbg_ptr);
|
|
2365
2191
|
return ret !== 0;
|
|
2366
2192
|
}
|
|
2193
|
+
/**
|
|
2194
|
+
* r" Upcasts to the JS-import type for [`#ty_ident`].
|
|
2195
|
+
* @returns {Peer}
|
|
2196
|
+
*/
|
|
2197
|
+
__wasm_refgen_toPeer() {
|
|
2198
|
+
const ret = wasm.peer___wasm_refgen_toPeer(this.__wbg_ptr);
|
|
2199
|
+
return Peer.__wrap(ret);
|
|
2200
|
+
}
|
|
2367
2201
|
}
|
|
2368
2202
|
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2369
2203
|
|
|
2370
2204
|
exports.Peer = Peer;
|
|
2371
2205
|
|
|
2372
|
-
const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2373
|
-
? { register: () => {}, unregister: () => {} }
|
|
2374
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_removeciphertexterror_free(ptr >>> 0, 1));
|
|
2375
|
-
|
|
2376
|
-
class RemoveCiphertextError {
|
|
2377
|
-
|
|
2378
|
-
__destroy_into_raw() {
|
|
2379
|
-
const ptr = this.__wbg_ptr;
|
|
2380
|
-
this.__wbg_ptr = 0;
|
|
2381
|
-
RemoveCiphertextErrorFinalization.unregister(this);
|
|
2382
|
-
return ptr;
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
free() {
|
|
2386
|
-
const ptr = this.__destroy_into_raw();
|
|
2387
|
-
wasm.__wbg_removeciphertexterror_free(ptr, 0);
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
|
|
2391
|
-
|
|
2392
|
-
exports.RemoveCiphertextError = RemoveCiphertextError;
|
|
2393
|
-
|
|
2394
2206
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2395
2207
|
? { register: () => {}, unregister: () => {} }
|
|
2396
2208
|
: new FinalizationRegistry(ptr => wasm.__wbg_revocation_free(ptr >>> 0, 1));
|
|
@@ -2449,89 +2261,6 @@ if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.
|
|
|
2449
2261
|
|
|
2450
2262
|
exports.Revocation = Revocation;
|
|
2451
2263
|
|
|
2452
|
-
const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2453
|
-
? { register: () => {}, unregister: () => {} }
|
|
2454
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_revokemembererror_free(ptr >>> 0, 1));
|
|
2455
|
-
|
|
2456
|
-
class RevokeMemberError {
|
|
2457
|
-
|
|
2458
|
-
static __wrap(ptr) {
|
|
2459
|
-
ptr = ptr >>> 0;
|
|
2460
|
-
const obj = Object.create(RevokeMemberError.prototype);
|
|
2461
|
-
obj.__wbg_ptr = ptr;
|
|
2462
|
-
RevokeMemberErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2463
|
-
return obj;
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
|
-
__destroy_into_raw() {
|
|
2467
|
-
const ptr = this.__wbg_ptr;
|
|
2468
|
-
this.__wbg_ptr = 0;
|
|
2469
|
-
RevokeMemberErrorFinalization.unregister(this);
|
|
2470
|
-
return ptr;
|
|
2471
|
-
}
|
|
2472
|
-
|
|
2473
|
-
free() {
|
|
2474
|
-
const ptr = this.__destroy_into_raw();
|
|
2475
|
-
wasm.__wbg_revokemembererror_free(ptr, 0);
|
|
2476
|
-
}
|
|
2477
|
-
/**
|
|
2478
|
-
* @returns {string}
|
|
2479
|
-
*/
|
|
2480
|
-
get message() {
|
|
2481
|
-
let deferred1_0;
|
|
2482
|
-
let deferred1_1;
|
|
2483
|
-
try {
|
|
2484
|
-
const ret = wasm.revokemembererror_message(this.__wbg_ptr);
|
|
2485
|
-
deferred1_0 = ret[0];
|
|
2486
|
-
deferred1_1 = ret[1];
|
|
2487
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2488
|
-
} finally {
|
|
2489
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
|
|
2494
|
-
|
|
2495
|
-
exports.RevokeMemberError = RevokeMemberError;
|
|
2496
|
-
|
|
2497
|
-
const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2498
|
-
? { register: () => {}, unregister: () => {} }
|
|
2499
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_serializationerror_free(ptr >>> 0, 1));
|
|
2500
|
-
|
|
2501
|
-
class SerializationError {
|
|
2502
|
-
|
|
2503
|
-
static __wrap(ptr) {
|
|
2504
|
-
ptr = ptr >>> 0;
|
|
2505
|
-
const obj = Object.create(SerializationError.prototype);
|
|
2506
|
-
obj.__wbg_ptr = ptr;
|
|
2507
|
-
SerializationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2508
|
-
return obj;
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
__destroy_into_raw() {
|
|
2512
|
-
const ptr = this.__wbg_ptr;
|
|
2513
|
-
this.__wbg_ptr = 0;
|
|
2514
|
-
SerializationErrorFinalization.unregister(this);
|
|
2515
|
-
return ptr;
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
free() {
|
|
2519
|
-
const ptr = this.__destroy_into_raw();
|
|
2520
|
-
wasm.__wbg_serializationerror_free(ptr, 0);
|
|
2521
|
-
}
|
|
2522
|
-
/**
|
|
2523
|
-
* @returns {any}
|
|
2524
|
-
*/
|
|
2525
|
-
toError() {
|
|
2526
|
-
const ptr = this.__destroy_into_raw();
|
|
2527
|
-
const ret = wasm.serializationerror_toError(ptr);
|
|
2528
|
-
return ret;
|
|
2529
|
-
}
|
|
2530
|
-
}
|
|
2531
|
-
if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
|
|
2532
|
-
|
|
2533
|
-
exports.SerializationError = SerializationError;
|
|
2534
|
-
|
|
2535
2264
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2536
2265
|
? { register: () => {}, unregister: () => {} }
|
|
2537
2266
|
: new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
|
|
@@ -2595,13 +2324,19 @@ class Signed {
|
|
|
2595
2324
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2596
2325
|
const len0 = WASM_VECTOR_LEN;
|
|
2597
2326
|
const ret = wasm.signed_fromBytes(ptr0, len0);
|
|
2598
|
-
|
|
2327
|
+
if (ret[2]) {
|
|
2328
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2329
|
+
}
|
|
2330
|
+
return Signed.__wrap(ret[0]);
|
|
2599
2331
|
}
|
|
2600
2332
|
/**
|
|
2601
2333
|
* @returns {Uint8Array}
|
|
2602
2334
|
*/
|
|
2603
2335
|
toBytes() {
|
|
2604
2336
|
const ret = wasm.signed_toBytes(this.__wbg_ptr);
|
|
2337
|
+
if (ret[3]) {
|
|
2338
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2339
|
+
}
|
|
2605
2340
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2606
2341
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2607
2342
|
return v1;
|
|
@@ -2966,94 +2701,70 @@ if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
|
2966
2701
|
|
|
2967
2702
|
exports.Signer = Signer;
|
|
2968
2703
|
|
|
2969
|
-
const
|
|
2704
|
+
const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2970
2705
|
? { register: () => {}, unregister: () => {} }
|
|
2971
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2706
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
|
|
2972
2707
|
|
|
2973
|
-
class
|
|
2708
|
+
class Stats {
|
|
2974
2709
|
|
|
2975
2710
|
static __wrap(ptr) {
|
|
2976
2711
|
ptr = ptr >>> 0;
|
|
2977
|
-
const obj = Object.create(
|
|
2712
|
+
const obj = Object.create(Stats.prototype);
|
|
2978
2713
|
obj.__wbg_ptr = ptr;
|
|
2979
|
-
|
|
2714
|
+
StatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2980
2715
|
return obj;
|
|
2981
2716
|
}
|
|
2982
2717
|
|
|
2983
2718
|
__destroy_into_raw() {
|
|
2984
2719
|
const ptr = this.__wbg_ptr;
|
|
2985
2720
|
this.__wbg_ptr = 0;
|
|
2986
|
-
|
|
2721
|
+
StatsFinalization.unregister(this);
|
|
2987
2722
|
return ptr;
|
|
2988
2723
|
}
|
|
2989
2724
|
|
|
2990
2725
|
free() {
|
|
2991
2726
|
const ptr = this.__destroy_into_raw();
|
|
2992
|
-
wasm.
|
|
2727
|
+
wasm.__wbg_stats_free(ptr, 0);
|
|
2993
2728
|
}
|
|
2994
2729
|
/**
|
|
2995
|
-
* @returns {
|
|
2730
|
+
* @returns {bigint}
|
|
2996
2731
|
*/
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
try {
|
|
3001
|
-
const ret = wasm.signingerror_message(this.__wbg_ptr);
|
|
3002
|
-
deferred1_0 = ret[0];
|
|
3003
|
-
deferred1_1 = ret[1];
|
|
3004
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
3005
|
-
} finally {
|
|
3006
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
}
|
|
3010
|
-
if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
|
|
3011
|
-
|
|
3012
|
-
exports.SigningError = SigningError;
|
|
3013
|
-
|
|
3014
|
-
const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3015
|
-
? { register: () => {}, unregister: () => {} }
|
|
3016
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_simplecapability_free(ptr >>> 0, 1));
|
|
3017
|
-
|
|
3018
|
-
class SimpleCapability {
|
|
3019
|
-
|
|
3020
|
-
static __wrap(ptr) {
|
|
3021
|
-
ptr = ptr >>> 0;
|
|
3022
|
-
const obj = Object.create(SimpleCapability.prototype);
|
|
3023
|
-
obj.__wbg_ptr = ptr;
|
|
3024
|
-
SimpleCapabilityFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3025
|
-
return obj;
|
|
2732
|
+
get individuals() {
|
|
2733
|
+
const ret = wasm.stats_individuals(this.__wbg_ptr);
|
|
2734
|
+
return BigInt.asUintN(64, ret);
|
|
3026
2735
|
}
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
return
|
|
2736
|
+
/**
|
|
2737
|
+
* @returns {bigint}
|
|
2738
|
+
*/
|
|
2739
|
+
get groups() {
|
|
2740
|
+
const ret = wasm.stats_groups(this.__wbg_ptr);
|
|
2741
|
+
return BigInt.asUintN(64, ret);
|
|
3033
2742
|
}
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
2743
|
+
/**
|
|
2744
|
+
* @returns {bigint}
|
|
2745
|
+
*/
|
|
2746
|
+
get docs() {
|
|
2747
|
+
const ret = wasm.stats_docs(this.__wbg_ptr);
|
|
2748
|
+
return BigInt.asUintN(64, ret);
|
|
3038
2749
|
}
|
|
3039
2750
|
/**
|
|
3040
|
-
* @returns {
|
|
2751
|
+
* @returns {bigint}
|
|
3041
2752
|
*/
|
|
3042
|
-
get
|
|
3043
|
-
const ret = wasm.
|
|
3044
|
-
return
|
|
2753
|
+
get delegations() {
|
|
2754
|
+
const ret = wasm.stats_delegations(this.__wbg_ptr);
|
|
2755
|
+
return BigInt.asUintN(64, ret);
|
|
3045
2756
|
}
|
|
3046
2757
|
/**
|
|
3047
|
-
* @returns {
|
|
2758
|
+
* @returns {bigint}
|
|
3048
2759
|
*/
|
|
3049
|
-
get
|
|
3050
|
-
const ret = wasm.
|
|
3051
|
-
return
|
|
2760
|
+
get revocations() {
|
|
2761
|
+
const ret = wasm.stats_revocations(this.__wbg_ptr);
|
|
2762
|
+
return BigInt.asUintN(64, ret);
|
|
3052
2763
|
}
|
|
3053
2764
|
}
|
|
3054
|
-
if (Symbol.dispose)
|
|
2765
|
+
if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
|
|
3055
2766
|
|
|
3056
|
-
exports.
|
|
2767
|
+
exports.Stats = Stats;
|
|
3057
2768
|
|
|
3058
2769
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3059
2770
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3099,64 +2810,94 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
|
3099
2810
|
|
|
3100
2811
|
exports.Summary = Summary;
|
|
3101
2812
|
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
2813
|
+
exports.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
2814
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2815
|
+
return ret;
|
|
2816
|
+
};
|
|
3105
2817
|
|
|
3106
|
-
|
|
2818
|
+
exports.__wbg___wasm_refgen_toChangeId_bdad356172ca9cbc = function(arg0) {
|
|
2819
|
+
const ret = arg0.__wasm_refgen_toChangeId();
|
|
2820
|
+
_assertClass(ret, ChangeId);
|
|
2821
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2822
|
+
return ptr1;
|
|
2823
|
+
};
|
|
3107
2824
|
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
}
|
|
2825
|
+
exports.__wbg___wasm_refgen_toDocument_970367efee8cb1d0 = function(arg0) {
|
|
2826
|
+
const ret = arg0.__wasm_refgen_toDocument();
|
|
2827
|
+
_assertClass(ret, Document);
|
|
2828
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2829
|
+
return ptr1;
|
|
2830
|
+
};
|
|
3115
2831
|
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
2832
|
+
exports.__wbg___wasm_refgen_toPeer_f5e24110e2d41e74 = function(arg0) {
|
|
2833
|
+
const ret = arg0.__wasm_refgen_toPeer();
|
|
2834
|
+
_assertClass(ret, Peer);
|
|
2835
|
+
var ptr1 = ret.__destroy_into_raw();
|
|
2836
|
+
return ptr1;
|
|
2837
|
+
};
|
|
3122
2838
|
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
toError() {
|
|
3131
|
-
const ptr = this.__destroy_into_raw();
|
|
3132
|
-
const ret = wasm.tryfromarchiveerror_toError(ptr);
|
|
3133
|
-
return ret;
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
|
|
2839
|
+
exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
2840
|
+
const ret = debugString(arg1);
|
|
2841
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2842
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2843
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2844
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2845
|
+
};
|
|
3137
2846
|
|
|
3138
|
-
exports.
|
|
2847
|
+
exports.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
2848
|
+
const ret = typeof(arg0) === 'function';
|
|
2849
|
+
return ret;
|
|
2850
|
+
};
|
|
3139
2851
|
|
|
3140
|
-
exports.
|
|
3141
|
-
const
|
|
2852
|
+
exports.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
2853
|
+
const val = arg0;
|
|
2854
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3142
2855
|
return ret;
|
|
3143
2856
|
};
|
|
3144
2857
|
|
|
3145
|
-
exports.
|
|
3146
|
-
const ret =
|
|
2858
|
+
exports.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
2859
|
+
const ret = typeof(arg0) === 'string';
|
|
3147
2860
|
return ret;
|
|
3148
2861
|
};
|
|
3149
2862
|
|
|
3150
|
-
exports.
|
|
3151
|
-
const ret = arg0
|
|
2863
|
+
exports.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
2864
|
+
const ret = arg0 === undefined;
|
|
3152
2865
|
return ret;
|
|
3153
|
-
}
|
|
2866
|
+
};
|
|
2867
|
+
|
|
2868
|
+
exports.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
2869
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2872
|
+
exports.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
2873
|
+
arg0._wbg_cb_unref();
|
|
2874
|
+
};
|
|
3154
2875
|
|
|
3155
|
-
exports.
|
|
2876
|
+
exports.__wbg_access_new = function(arg0) {
|
|
2877
|
+
const ret = Access.__wrap(arg0);
|
|
2878
|
+
return ret;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
exports.__wbg_agent_new = function(arg0) {
|
|
2882
|
+
const ret = Agent.__wrap(arg0);
|
|
2883
|
+
return ret;
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
exports.__wbg_archive_new = function(arg0) {
|
|
2887
|
+
const ret = Archive.__wrap(arg0);
|
|
2888
|
+
return ret;
|
|
2889
|
+
};
|
|
2890
|
+
|
|
2891
|
+
exports.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3156
2892
|
const ret = arg0.call(arg1, arg2);
|
|
3157
2893
|
return ret;
|
|
3158
2894
|
}, arguments) };
|
|
3159
2895
|
|
|
2896
|
+
exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
2897
|
+
const ret = arg0.call(arg1);
|
|
2898
|
+
return ret;
|
|
2899
|
+
}, arguments) };
|
|
2900
|
+
|
|
3160
2901
|
exports.__wbg_cannotparseed25519signingkey_new = function(arg0) {
|
|
3161
2902
|
const ret = CannotParseEd25519SigningKey.__wrap(arg0);
|
|
3162
2903
|
return ret;
|
|
@@ -3172,13 +2913,13 @@ exports.__wbg_capability_new = function(arg0) {
|
|
|
3172
2913
|
return ret;
|
|
3173
2914
|
};
|
|
3174
2915
|
|
|
3175
|
-
exports.
|
|
3176
|
-
const ret =
|
|
2916
|
+
exports.__wbg_changeid_new = function(arg0) {
|
|
2917
|
+
const ret = ChangeId.__wrap(arg0);
|
|
3177
2918
|
return ret;
|
|
3178
2919
|
};
|
|
3179
2920
|
|
|
3180
|
-
exports.
|
|
3181
|
-
const ret =
|
|
2921
|
+
exports.__wbg_changeid_unwrap = function(arg0) {
|
|
2922
|
+
const ret = ChangeId.__unwrap(arg0);
|
|
3182
2923
|
return ret;
|
|
3183
2924
|
};
|
|
3184
2925
|
|
|
@@ -3192,10 +2933,29 @@ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
|
3192
2933
|
return ret;
|
|
3193
2934
|
};
|
|
3194
2935
|
|
|
3195
|
-
exports.
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
2936
|
+
exports.__wbg_debug_68afdd09483bcd1b = function(arg0, arg1) {
|
|
2937
|
+
let deferred0_0;
|
|
2938
|
+
let deferred0_1;
|
|
2939
|
+
try {
|
|
2940
|
+
deferred0_0 = arg0;
|
|
2941
|
+
deferred0_1 = arg1;
|
|
2942
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2943
|
+
} finally {
|
|
2944
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2945
|
+
}
|
|
2946
|
+
};
|
|
2947
|
+
|
|
2948
|
+
exports.__wbg_debug_a4fe41d1a79aaba9 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2949
|
+
let deferred0_0;
|
|
2950
|
+
let deferred0_1;
|
|
2951
|
+
try {
|
|
2952
|
+
deferred0_0 = arg0;
|
|
2953
|
+
deferred0_1 = arg1;
|
|
2954
|
+
console.debug(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2955
|
+
} finally {
|
|
2956
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
3199
2959
|
|
|
3200
2960
|
exports.__wbg_doccontentrefs_new = function(arg0) {
|
|
3201
2961
|
const ret = DocContentRefs.__wrap(arg0);
|
|
@@ -3207,11 +2967,6 @@ exports.__wbg_document_new = function(arg0) {
|
|
|
3207
2967
|
return ret;
|
|
3208
2968
|
};
|
|
3209
2969
|
|
|
3210
|
-
exports.__wbg_document_unwrap = function(arg0) {
|
|
3211
|
-
const ret = Document.__unwrap(arg0);
|
|
3212
|
-
return ret;
|
|
3213
|
-
};
|
|
3214
|
-
|
|
3215
2970
|
exports.__wbg_encryptedcontentwithupdate_new = function(arg0) {
|
|
3216
2971
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3217
2972
|
return ret;
|
|
@@ -3229,26 +2984,45 @@ exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
3229
2984
|
}
|
|
3230
2985
|
};
|
|
3231
2986
|
|
|
2987
|
+
exports.__wbg_error_be2b0d69ec6dd379 = function(arg0, arg1) {
|
|
2988
|
+
let deferred0_0;
|
|
2989
|
+
let deferred0_1;
|
|
2990
|
+
try {
|
|
2991
|
+
deferred0_0 = arg0;
|
|
2992
|
+
deferred0_1 = arg1;
|
|
2993
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
2994
|
+
} finally {
|
|
2995
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2996
|
+
}
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
exports.__wbg_error_fa36d085107c9dd5 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3000
|
+
let deferred0_0;
|
|
3001
|
+
let deferred0_1;
|
|
3002
|
+
try {
|
|
3003
|
+
deferred0_0 = arg0;
|
|
3004
|
+
deferred0_1 = arg1;
|
|
3005
|
+
console.error(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3006
|
+
} finally {
|
|
3007
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3232
3011
|
exports.__wbg_event_new = function(arg0) {
|
|
3233
3012
|
const ret = Event.__wrap(arg0);
|
|
3234
3013
|
return ret;
|
|
3235
3014
|
};
|
|
3236
3015
|
|
|
3237
|
-
exports.
|
|
3016
|
+
exports.__wbg_exportKey_14f4c9c1691e79dc = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3238
3017
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
3239
3018
|
return ret;
|
|
3240
3019
|
}, arguments) };
|
|
3241
3020
|
|
|
3242
|
-
exports.
|
|
3021
|
+
exports.__wbg_generateKey_3530d4e1a89ee5b4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3243
3022
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
3244
3023
|
return ret;
|
|
3245
3024
|
}, arguments) };
|
|
3246
3025
|
|
|
3247
|
-
exports.__wbg_generatedocerror_new = function(arg0) {
|
|
3248
|
-
const ret = GenerateDocError.__wrap(arg0);
|
|
3249
|
-
return ret;
|
|
3250
|
-
};
|
|
3251
|
-
|
|
3252
3026
|
exports.__wbg_generatewebcryptoerror_new = function(arg0) {
|
|
3253
3027
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3254
3028
|
return ret;
|
|
@@ -3258,17 +3032,22 @@ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError
|
|
|
3258
3032
|
arg0.getRandomValues(arg1);
|
|
3259
3033
|
}, arguments) };
|
|
3260
3034
|
|
|
3261
|
-
exports.
|
|
3035
|
+
exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
3036
|
+
const ret = arg0[arg1 >>> 0];
|
|
3037
|
+
return ret;
|
|
3038
|
+
};
|
|
3039
|
+
|
|
3040
|
+
exports.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
3262
3041
|
const ret = Reflect.get(arg0, arg1);
|
|
3263
3042
|
return ret;
|
|
3264
3043
|
}, arguments) };
|
|
3265
3044
|
|
|
3266
|
-
exports.
|
|
3045
|
+
exports.__wbg_get_private_key_0a3a263ca613b0c0 = function(arg0) {
|
|
3267
3046
|
const ret = arg0.privateKey;
|
|
3268
3047
|
return ret;
|
|
3269
3048
|
};
|
|
3270
3049
|
|
|
3271
|
-
exports.
|
|
3050
|
+
exports.__wbg_get_public_key_1e2c11d159e34827 = function(arg0) {
|
|
3272
3051
|
const ret = arg0.publicKey;
|
|
3273
3052
|
return ret;
|
|
3274
3053
|
};
|
|
@@ -3278,21 +3057,15 @@ exports.__wbg_group_new = function(arg0) {
|
|
|
3278
3057
|
return ret;
|
|
3279
3058
|
};
|
|
3280
3059
|
|
|
3281
|
-
exports.
|
|
3282
|
-
|
|
3283
|
-
try {
|
|
3284
|
-
result = arg0 instanceof Crypto;
|
|
3285
|
-
} catch (_) {
|
|
3286
|
-
result = false;
|
|
3287
|
-
}
|
|
3288
|
-
const ret = result;
|
|
3060
|
+
exports.__wbg_individual_new = function(arg0) {
|
|
3061
|
+
const ret = Individual.__wrap(arg0);
|
|
3289
3062
|
return ret;
|
|
3290
3063
|
};
|
|
3291
3064
|
|
|
3292
|
-
exports.
|
|
3065
|
+
exports.__wbg_instanceof_Crypto_2574e69763b89701 = function(arg0) {
|
|
3293
3066
|
let result;
|
|
3294
3067
|
try {
|
|
3295
|
-
result = arg0 instanceof
|
|
3068
|
+
result = arg0 instanceof Crypto;
|
|
3296
3069
|
} catch (_) {
|
|
3297
3070
|
result = false;
|
|
3298
3071
|
}
|
|
@@ -3300,33 +3073,68 @@ exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
|
|
|
3300
3073
|
return ret;
|
|
3301
3074
|
};
|
|
3302
3075
|
|
|
3303
|
-
exports.
|
|
3304
|
-
const ret =
|
|
3076
|
+
exports.__wbg_keyhive_new = function(arg0) {
|
|
3077
|
+
const ret = Keyhive.__wrap(arg0);
|
|
3305
3078
|
return ret;
|
|
3306
3079
|
};
|
|
3307
3080
|
|
|
3308
|
-
exports.
|
|
3309
|
-
const ret =
|
|
3081
|
+
exports.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
3082
|
+
const ret = arg0.length;
|
|
3310
3083
|
return ret;
|
|
3311
3084
|
};
|
|
3312
3085
|
|
|
3313
|
-
exports.
|
|
3314
|
-
const ret =
|
|
3086
|
+
exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
3087
|
+
const ret = arg0.length;
|
|
3315
3088
|
return ret;
|
|
3316
3089
|
};
|
|
3317
3090
|
|
|
3318
|
-
exports.
|
|
3319
|
-
|
|
3320
|
-
|
|
3091
|
+
exports.__wbg_log_98ea330cbdc64a56 = function(arg0, arg1) {
|
|
3092
|
+
let deferred0_0;
|
|
3093
|
+
let deferred0_1;
|
|
3094
|
+
try {
|
|
3095
|
+
deferred0_0 = arg0;
|
|
3096
|
+
deferred0_1 = arg1;
|
|
3097
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
3098
|
+
} finally {
|
|
3099
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3100
|
+
}
|
|
3321
3101
|
};
|
|
3322
3102
|
|
|
3323
|
-
exports.
|
|
3324
|
-
|
|
3325
|
-
|
|
3103
|
+
exports.__wbg_log_f996de40931ab7d1 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3104
|
+
let deferred0_0;
|
|
3105
|
+
let deferred0_1;
|
|
3106
|
+
try {
|
|
3107
|
+
deferred0_0 = arg0;
|
|
3108
|
+
deferred0_1 = arg1;
|
|
3109
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3110
|
+
} finally {
|
|
3111
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3112
|
+
}
|
|
3326
3113
|
};
|
|
3327
3114
|
|
|
3328
|
-
exports.
|
|
3329
|
-
|
|
3115
|
+
exports.__wbg_mark_49688daf5a319979 = function(arg0, arg1) {
|
|
3116
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
exports.__wbg_measure_52555d98d3c0f41a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3120
|
+
let deferred0_0;
|
|
3121
|
+
let deferred0_1;
|
|
3122
|
+
let deferred1_0;
|
|
3123
|
+
let deferred1_1;
|
|
3124
|
+
try {
|
|
3125
|
+
deferred0_0 = arg0;
|
|
3126
|
+
deferred0_1 = arg1;
|
|
3127
|
+
deferred1_0 = arg2;
|
|
3128
|
+
deferred1_1 = arg3;
|
|
3129
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
3130
|
+
} finally {
|
|
3131
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3132
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3133
|
+
}
|
|
3134
|
+
}, arguments) };
|
|
3135
|
+
|
|
3136
|
+
exports.__wbg_membership_new = function(arg0) {
|
|
3137
|
+
const ret = Membership.__wrap(arg0);
|
|
3330
3138
|
return ret;
|
|
3331
3139
|
};
|
|
3332
3140
|
|
|
@@ -3335,14 +3143,14 @@ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
|
3335
3143
|
return ret;
|
|
3336
3144
|
};
|
|
3337
3145
|
|
|
3338
|
-
exports.
|
|
3146
|
+
exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
3339
3147
|
try {
|
|
3340
3148
|
var state0 = {a: arg0, b: arg1};
|
|
3341
3149
|
var cb0 = (arg0, arg1) => {
|
|
3342
3150
|
const a = state0.a;
|
|
3343
3151
|
state0.a = 0;
|
|
3344
3152
|
try {
|
|
3345
|
-
return
|
|
3153
|
+
return wasm_bindgen__convert__closures_____invoke__h4666a87517ff844e(a, state0.b, arg0, arg1);
|
|
3346
3154
|
} finally {
|
|
3347
3155
|
state0.a = a;
|
|
3348
3156
|
}
|
|
@@ -3354,7 +3162,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
|
3354
3162
|
}
|
|
3355
3163
|
};
|
|
3356
3164
|
|
|
3357
|
-
exports.
|
|
3165
|
+
exports.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
3358
3166
|
const ret = new Uint8Array(arg0);
|
|
3359
3167
|
return ret;
|
|
3360
3168
|
};
|
|
@@ -3364,12 +3172,27 @@ exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
|
3364
3172
|
return ret;
|
|
3365
3173
|
};
|
|
3366
3174
|
|
|
3367
|
-
exports.
|
|
3175
|
+
exports.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
|
|
3176
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3177
|
+
return ret;
|
|
3178
|
+
};
|
|
3179
|
+
|
|
3180
|
+
exports.__wbg_new_e17d9f43105b08be = function() {
|
|
3181
|
+
const ret = new Array();
|
|
3182
|
+
return ret;
|
|
3183
|
+
};
|
|
3184
|
+
|
|
3185
|
+
exports.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
3186
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3187
|
+
return ret;
|
|
3188
|
+
};
|
|
3189
|
+
|
|
3190
|
+
exports.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
3368
3191
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3369
3192
|
return ret;
|
|
3370
3193
|
};
|
|
3371
3194
|
|
|
3372
|
-
exports.
|
|
3195
|
+
exports.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
3373
3196
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3374
3197
|
return ret;
|
|
3375
3198
|
};
|
|
@@ -3379,29 +3202,29 @@ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
|
3379
3202
|
return ret;
|
|
3380
3203
|
};
|
|
3381
3204
|
|
|
3382
|
-
exports.__wbg_peer_unwrap = function(arg0) {
|
|
3383
|
-
const ret = Peer.__unwrap(arg0);
|
|
3384
|
-
return ret;
|
|
3385
|
-
};
|
|
3386
|
-
|
|
3387
3205
|
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
3388
3206
|
const ret = arg0.process;
|
|
3389
3207
|
return ret;
|
|
3390
3208
|
};
|
|
3391
3209
|
|
|
3392
|
-
exports.
|
|
3210
|
+
exports.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
3393
3211
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3394
3212
|
};
|
|
3395
3213
|
|
|
3396
|
-
exports.
|
|
3397
|
-
|
|
3214
|
+
exports.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
|
|
3215
|
+
const ret = arg0.push(arg1);
|
|
3216
|
+
return ret;
|
|
3398
3217
|
};
|
|
3399
3218
|
|
|
3400
|
-
exports.
|
|
3219
|
+
exports.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
3401
3220
|
const ret = arg0.queueMicrotask;
|
|
3402
3221
|
return ret;
|
|
3403
3222
|
};
|
|
3404
3223
|
|
|
3224
|
+
exports.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
3225
|
+
queueMicrotask(arg0);
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3405
3228
|
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
3406
3229
|
arg0.randomFillSync(arg1);
|
|
3407
3230
|
}, arguments) };
|
|
@@ -3411,19 +3234,13 @@ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(functio
|
|
|
3411
3234
|
return ret;
|
|
3412
3235
|
}, arguments) };
|
|
3413
3236
|
|
|
3414
|
-
exports.
|
|
3237
|
+
exports.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
3415
3238
|
const ret = Promise.resolve(arg0);
|
|
3416
3239
|
return ret;
|
|
3417
3240
|
};
|
|
3418
3241
|
|
|
3419
|
-
exports.
|
|
3420
|
-
|
|
3421
|
-
return ret;
|
|
3422
|
-
};
|
|
3423
|
-
|
|
3424
|
-
exports.__wbg_serializationerror_new = function(arg0) {
|
|
3425
|
-
const ret = SerializationError.__wrap(arg0);
|
|
3426
|
-
return ret;
|
|
3242
|
+
exports.__wbg_set_name_d94846a29e626702 = function(arg0, arg1, arg2) {
|
|
3243
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3427
3244
|
};
|
|
3428
3245
|
|
|
3429
3246
|
exports.__wbg_sharekey_new = function(arg0) {
|
|
@@ -3431,7 +3248,7 @@ exports.__wbg_sharekey_new = function(arg0) {
|
|
|
3431
3248
|
return ret;
|
|
3432
3249
|
};
|
|
3433
3250
|
|
|
3434
|
-
exports.
|
|
3251
|
+
exports.__wbg_sign_0077f2aabd37825a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3435
3252
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3436
3253
|
return ret;
|
|
3437
3254
|
}, arguments) };
|
|
@@ -3456,16 +3273,6 @@ exports.__wbg_signer_new = function(arg0) {
|
|
|
3456
3273
|
return ret;
|
|
3457
3274
|
};
|
|
3458
3275
|
|
|
3459
|
-
exports.__wbg_signingerror_new = function(arg0) {
|
|
3460
|
-
const ret = SigningError.__wrap(arg0);
|
|
3461
|
-
return ret;
|
|
3462
|
-
};
|
|
3463
|
-
|
|
3464
|
-
exports.__wbg_simplecapability_new = function(arg0) {
|
|
3465
|
-
const ret = SimpleCapability.__wrap(arg0);
|
|
3466
|
-
return ret;
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
3276
|
exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
3470
3277
|
const ret = arg1.stack;
|
|
3471
3278
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3474,32 +3281,37 @@ exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
3474
3281
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3475
3282
|
};
|
|
3476
3283
|
|
|
3477
|
-
exports.
|
|
3284
|
+
exports.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
3478
3285
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3479
3286
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3480
3287
|
};
|
|
3481
3288
|
|
|
3482
|
-
exports.
|
|
3289
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
3483
3290
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3484
3291
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3485
3292
|
};
|
|
3486
3293
|
|
|
3487
|
-
exports.
|
|
3294
|
+
exports.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
3488
3295
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3489
3296
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3490
3297
|
};
|
|
3491
3298
|
|
|
3492
|
-
exports.
|
|
3299
|
+
exports.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
3493
3300
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3494
3301
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3495
3302
|
};
|
|
3496
3303
|
|
|
3497
|
-
exports.
|
|
3304
|
+
exports.__wbg_stats_new = function(arg0) {
|
|
3305
|
+
const ret = Stats.__wrap(arg0);
|
|
3306
|
+
return ret;
|
|
3307
|
+
};
|
|
3308
|
+
|
|
3309
|
+
exports.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
3498
3310
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3499
3311
|
return ret;
|
|
3500
3312
|
};
|
|
3501
3313
|
|
|
3502
|
-
exports.
|
|
3314
|
+
exports.__wbg_subtle_a158c8cba320b8ed = function(arg0) {
|
|
3503
3315
|
const ret = arg0.subtle;
|
|
3504
3316
|
return ret;
|
|
3505
3317
|
};
|
|
@@ -3509,18 +3321,13 @@ exports.__wbg_summary_new = function(arg0) {
|
|
|
3509
3321
|
return ret;
|
|
3510
3322
|
};
|
|
3511
3323
|
|
|
3512
|
-
exports.
|
|
3513
|
-
const ret = arg0.then(arg1, arg2);
|
|
3514
|
-
return ret;
|
|
3515
|
-
};
|
|
3516
|
-
|
|
3517
|
-
exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
3324
|
+
exports.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
3518
3325
|
const ret = arg0.then(arg1);
|
|
3519
3326
|
return ret;
|
|
3520
3327
|
};
|
|
3521
3328
|
|
|
3522
|
-
exports.
|
|
3523
|
-
const ret =
|
|
3329
|
+
exports.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
3330
|
+
const ret = arg0.then(arg1, arg2);
|
|
3524
3331
|
return ret;
|
|
3525
3332
|
};
|
|
3526
3333
|
|
|
@@ -3529,65 +3336,80 @@ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
|
3529
3336
|
return ret;
|
|
3530
3337
|
};
|
|
3531
3338
|
|
|
3532
|
-
exports.
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3339
|
+
exports.__wbg_warn_c6311e9cb983aa2a = function(arg0, arg1) {
|
|
3340
|
+
let deferred0_0;
|
|
3341
|
+
let deferred0_1;
|
|
3342
|
+
try {
|
|
3343
|
+
deferred0_0 = arg0;
|
|
3344
|
+
deferred0_1 = arg1;
|
|
3345
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
3346
|
+
} finally {
|
|
3347
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3537
3348
|
}
|
|
3538
|
-
const ret = false;
|
|
3539
|
-
return ret;
|
|
3540
3349
|
};
|
|
3541
3350
|
|
|
3542
|
-
exports.
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3351
|
+
exports.__wbg_warn_de3a09d072c895e6 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3352
|
+
let deferred0_0;
|
|
3353
|
+
let deferred0_1;
|
|
3354
|
+
try {
|
|
3355
|
+
deferred0_0 = arg0;
|
|
3356
|
+
deferred0_1 = arg1;
|
|
3357
|
+
console.warn(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
3358
|
+
} finally {
|
|
3359
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3360
|
+
}
|
|
3548
3361
|
};
|
|
3549
3362
|
|
|
3550
|
-
exports.
|
|
3551
|
-
|
|
3363
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
3364
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3365
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3552
3366
|
return ret;
|
|
3553
3367
|
};
|
|
3554
3368
|
|
|
3555
|
-
exports.
|
|
3556
|
-
|
|
3557
|
-
|
|
3369
|
+
exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
3370
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3371
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3372
|
+
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
3373
|
+
const ret = v0;
|
|
3558
3374
|
return ret;
|
|
3559
3375
|
};
|
|
3560
3376
|
|
|
3561
|
-
exports.
|
|
3562
|
-
|
|
3377
|
+
exports.__wbindgen_cast_6300122139088863 = function(arg0, arg1) {
|
|
3378
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3379
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3380
|
+
// Cast intrinsic for `Vector(NamedExternref("ChangeId")) -> Externref`.
|
|
3381
|
+
const ret = v0;
|
|
3563
3382
|
return ret;
|
|
3564
3383
|
};
|
|
3565
3384
|
|
|
3566
|
-
exports.
|
|
3567
|
-
|
|
3385
|
+
exports.__wbindgen_cast_6d311b4990fb968e = function(arg0, arg1) {
|
|
3386
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3387
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3388
|
+
// Cast intrinsic for `Vector(NamedExternref("Summary")) -> Externref`.
|
|
3389
|
+
const ret = v0;
|
|
3568
3390
|
return ret;
|
|
3569
3391
|
};
|
|
3570
3392
|
|
|
3571
|
-
exports.
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3577
|
-
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_10);
|
|
3393
|
+
exports.__wbindgen_cast_6e33e4871eebdb43 = function(arg0, arg1) {
|
|
3394
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3395
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3396
|
+
// Cast intrinsic for `Vector(NamedExternref("Membership")) -> Externref`.
|
|
3397
|
+
const ret = v0;
|
|
3578
3398
|
return ret;
|
|
3579
3399
|
};
|
|
3580
3400
|
|
|
3581
|
-
exports.
|
|
3582
|
-
|
|
3583
|
-
|
|
3401
|
+
exports.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
3402
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3403
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3404
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
3405
|
+
const ret = v0;
|
|
3584
3406
|
return ret;
|
|
3585
3407
|
};
|
|
3586
3408
|
|
|
3587
|
-
exports.
|
|
3409
|
+
exports.__wbindgen_cast_a81e76255c07f2e8 = function(arg0, arg1) {
|
|
3588
3410
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3589
3411
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3590
|
-
// Cast intrinsic for `Vector(NamedExternref("
|
|
3412
|
+
// Cast intrinsic for `Vector(NamedExternref("Capability")) -> Externref`.
|
|
3591
3413
|
const ret = v0;
|
|
3592
3414
|
return ret;
|
|
3593
3415
|
};
|
|
@@ -3600,6 +3422,12 @@ exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
|
3600
3422
|
return ret;
|
|
3601
3423
|
};
|
|
3602
3424
|
|
|
3425
|
+
exports.__wbindgen_cast_bef74971622929eb = function(arg0, arg1) {
|
|
3426
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3427
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb938d8490fb5a71, wasm_bindgen__convert__closures_____invoke__h06e685b12973e965);
|
|
3428
|
+
return ret;
|
|
3429
|
+
};
|
|
3430
|
+
|
|
3603
3431
|
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3604
3432
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3605
3433
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -3607,7 +3435,7 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
|
3607
3435
|
};
|
|
3608
3436
|
|
|
3609
3437
|
exports.__wbindgen_init_externref_table = function() {
|
|
3610
|
-
const table = wasm.
|
|
3438
|
+
const table = wasm.__wbindgen_externrefs;
|
|
3611
3439
|
const offset = table.grow(4);
|
|
3612
3440
|
table.set(0, undefined);
|
|
3613
3441
|
table.set(offset + 0, undefined);
|