@xmtp/wasm-bindings 0.0.1
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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/bindings_wasm.d.ts +904 -0
- package/dist/bindings_wasm.js +3779 -0
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +233 -0
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js +692 -0
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/wa-sqlite-diesel-bundle.js +14738 -0
- package/package.json +56 -0
|
@@ -0,0 +1,3779 @@
|
|
|
1
|
+
import { SQLite } from './snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/wa-sqlite-diesel-bundle.js';
|
|
2
|
+
|
|
3
|
+
let wasm;
|
|
4
|
+
|
|
5
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
6
|
+
|
|
7
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
8
|
+
|
|
9
|
+
let cachedUint8ArrayMemory0 = null;
|
|
10
|
+
|
|
11
|
+
function getUint8ArrayMemory0() {
|
|
12
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
13
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
+
}
|
|
15
|
+
return cachedUint8ArrayMemory0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function getStringFromWasm0(ptr, len) {
|
|
19
|
+
ptr = ptr >>> 0;
|
|
20
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let WASM_VECTOR_LEN = 0;
|
|
24
|
+
|
|
25
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
26
|
+
|
|
27
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
28
|
+
? function (arg, view) {
|
|
29
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
30
|
+
}
|
|
31
|
+
: function (arg, view) {
|
|
32
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
33
|
+
view.set(buf);
|
|
34
|
+
return {
|
|
35
|
+
read: arg.length,
|
|
36
|
+
written: buf.length
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
41
|
+
|
|
42
|
+
if (realloc === undefined) {
|
|
43
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
44
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
45
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
46
|
+
WASM_VECTOR_LEN = buf.length;
|
|
47
|
+
return ptr;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
let len = arg.length;
|
|
51
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
52
|
+
|
|
53
|
+
const mem = getUint8ArrayMemory0();
|
|
54
|
+
|
|
55
|
+
let offset = 0;
|
|
56
|
+
|
|
57
|
+
for (; offset < len; offset++) {
|
|
58
|
+
const code = arg.charCodeAt(offset);
|
|
59
|
+
if (code > 0x7F) break;
|
|
60
|
+
mem[ptr + offset] = code;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (offset !== len) {
|
|
64
|
+
if (offset !== 0) {
|
|
65
|
+
arg = arg.slice(offset);
|
|
66
|
+
}
|
|
67
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
68
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
69
|
+
const ret = encodeString(arg, view);
|
|
70
|
+
|
|
71
|
+
offset += ret.written;
|
|
72
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
WASM_VECTOR_LEN = offset;
|
|
76
|
+
return ptr;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function isLikeNone(x) {
|
|
80
|
+
return x === undefined || x === null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let cachedDataViewMemory0 = null;
|
|
84
|
+
|
|
85
|
+
function getDataViewMemory0() {
|
|
86
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
87
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
88
|
+
}
|
|
89
|
+
return cachedDataViewMemory0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function debugString(val) {
|
|
93
|
+
// primitive types
|
|
94
|
+
const type = typeof val;
|
|
95
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
96
|
+
return `${val}`;
|
|
97
|
+
}
|
|
98
|
+
if (type == 'string') {
|
|
99
|
+
return `"${val}"`;
|
|
100
|
+
}
|
|
101
|
+
if (type == 'symbol') {
|
|
102
|
+
const description = val.description;
|
|
103
|
+
if (description == null) {
|
|
104
|
+
return 'Symbol';
|
|
105
|
+
} else {
|
|
106
|
+
return `Symbol(${description})`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (type == 'function') {
|
|
110
|
+
const name = val.name;
|
|
111
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
112
|
+
return `Function(${name})`;
|
|
113
|
+
} else {
|
|
114
|
+
return 'Function';
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// objects
|
|
118
|
+
if (Array.isArray(val)) {
|
|
119
|
+
const length = val.length;
|
|
120
|
+
let debug = '[';
|
|
121
|
+
if (length > 0) {
|
|
122
|
+
debug += debugString(val[0]);
|
|
123
|
+
}
|
|
124
|
+
for(let i = 1; i < length; i++) {
|
|
125
|
+
debug += ', ' + debugString(val[i]);
|
|
126
|
+
}
|
|
127
|
+
debug += ']';
|
|
128
|
+
return debug;
|
|
129
|
+
}
|
|
130
|
+
// Test for built-in
|
|
131
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
132
|
+
let className;
|
|
133
|
+
if (builtInMatches.length > 1) {
|
|
134
|
+
className = builtInMatches[1];
|
|
135
|
+
} else {
|
|
136
|
+
// Failed to match the standard '[object ClassName]'
|
|
137
|
+
return toString.call(val);
|
|
138
|
+
}
|
|
139
|
+
if (className == 'Object') {
|
|
140
|
+
// we're a user defined class or Object
|
|
141
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
142
|
+
// easier than looping through ownProperties of `val`.
|
|
143
|
+
try {
|
|
144
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
145
|
+
} catch (_) {
|
|
146
|
+
return 'Object';
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
// errors
|
|
150
|
+
if (val instanceof Error) {
|
|
151
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
152
|
+
}
|
|
153
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
154
|
+
return className;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
158
|
+
? { register: () => {}, unregister: () => {} }
|
|
159
|
+
: new FinalizationRegistry(state => {
|
|
160
|
+
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
164
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
165
|
+
const real = (...args) => {
|
|
166
|
+
// First up with a closure we increment the internal reference
|
|
167
|
+
// count. This ensures that the Rust closure environment won't
|
|
168
|
+
// be deallocated while we're invoking it.
|
|
169
|
+
state.cnt++;
|
|
170
|
+
const a = state.a;
|
|
171
|
+
state.a = 0;
|
|
172
|
+
try {
|
|
173
|
+
return f(a, state.b, ...args);
|
|
174
|
+
} finally {
|
|
175
|
+
if (--state.cnt === 0) {
|
|
176
|
+
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
|
|
177
|
+
CLOSURE_DTORS.unregister(state);
|
|
178
|
+
} else {
|
|
179
|
+
state.a = a;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
real.original = state;
|
|
184
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
185
|
+
return real;
|
|
186
|
+
}
|
|
187
|
+
function __wbg_adapter_44(arg0, arg1) {
|
|
188
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccdc993aebae1d0b(arg0, arg1);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function __wbg_adapter_47(arg0, arg1, arg2) {
|
|
192
|
+
wasm.closure2262_externref_shim(arg0, arg1, arg2);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function takeFromExternrefTable0(idx) {
|
|
196
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
197
|
+
wasm.__externref_table_dealloc(idx);
|
|
198
|
+
return value;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
202
|
+
ptr = ptr >>> 0;
|
|
203
|
+
const mem = getDataViewMemory0();
|
|
204
|
+
const result = [];
|
|
205
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
206
|
+
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
207
|
+
}
|
|
208
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
209
|
+
return result;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function addToExternrefTable0(obj) {
|
|
213
|
+
const idx = wasm.__externref_table_alloc();
|
|
214
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
215
|
+
return idx;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
219
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
220
|
+
const mem = getDataViewMemory0();
|
|
221
|
+
for (let i = 0; i < array.length; i++) {
|
|
222
|
+
mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
|
|
223
|
+
}
|
|
224
|
+
WASM_VECTOR_LEN = array.length;
|
|
225
|
+
return ptr;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function _assertClass(instance, klass) {
|
|
229
|
+
if (!(instance instanceof klass)) {
|
|
230
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
231
|
+
}
|
|
232
|
+
return instance.ptr;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} host
|
|
236
|
+
* @param {string} inbox_id
|
|
237
|
+
* @param {string} account_address
|
|
238
|
+
* @param {string} db_path
|
|
239
|
+
* @param {Uint8Array | undefined} [encryption_key]
|
|
240
|
+
* @param {string | undefined} [history_sync_url]
|
|
241
|
+
* @returns {Promise<WasmClient>}
|
|
242
|
+
*/
|
|
243
|
+
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
|
|
244
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len0 = WASM_VECTOR_LEN;
|
|
246
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
+
const len1 = WASM_VECTOR_LEN;
|
|
248
|
+
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
+
const len2 = WASM_VECTOR_LEN;
|
|
250
|
+
const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
+
const len3 = WASM_VECTOR_LEN;
|
|
252
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
+
var len4 = WASM_VECTOR_LEN;
|
|
254
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4);
|
|
255
|
+
return ret;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @param {string} host
|
|
260
|
+
* @param {string} account_address
|
|
261
|
+
* @returns {Promise<string | undefined>}
|
|
262
|
+
*/
|
|
263
|
+
export function getInboxIdForAddress(host, account_address) {
|
|
264
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
+
const len0 = WASM_VECTOR_LEN;
|
|
266
|
+
const ptr1 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
267
|
+
const len1 = WASM_VECTOR_LEN;
|
|
268
|
+
const ret = wasm.getInboxIdForAddress(ptr0, len0, ptr1, len1);
|
|
269
|
+
return ret;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @param {string} account_address
|
|
274
|
+
* @returns {string}
|
|
275
|
+
*/
|
|
276
|
+
export function generateInboxId(account_address) {
|
|
277
|
+
let deferred2_0;
|
|
278
|
+
let deferred2_1;
|
|
279
|
+
try {
|
|
280
|
+
const ptr0 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
const ret = wasm.generateInboxId(ptr0, len0);
|
|
283
|
+
deferred2_0 = ret[0];
|
|
284
|
+
deferred2_1 = ret[1];
|
|
285
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
286
|
+
} finally {
|
|
287
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function handleError(f, args) {
|
|
292
|
+
try {
|
|
293
|
+
return f.apply(this, args);
|
|
294
|
+
} catch (e) {
|
|
295
|
+
const idx = addToExternrefTable0(e);
|
|
296
|
+
wasm.__wbindgen_exn_store(idx);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
301
|
+
/**
|
|
302
|
+
* Handler for `console.log` invocations.
|
|
303
|
+
*
|
|
304
|
+
* If a test is currently running it takes the `args` array and stringifies
|
|
305
|
+
* it and appends it to the current output of the test. Otherwise it passes
|
|
306
|
+
* the arguments to the original `console.log` function, psased as
|
|
307
|
+
* `original`.
|
|
308
|
+
* @param {Array<any>} args
|
|
309
|
+
*/
|
|
310
|
+
export function __wbgtest_console_log(args) {
|
|
311
|
+
wasm.__wbgtest_console_log(args);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Handler for `console.debug` invocations. See above.
|
|
316
|
+
* @param {Array<any>} args
|
|
317
|
+
*/
|
|
318
|
+
export function __wbgtest_console_debug(args) {
|
|
319
|
+
wasm.__wbgtest_console_debug(args);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Handler for `console.info` invocations. See above.
|
|
324
|
+
* @param {Array<any>} args
|
|
325
|
+
*/
|
|
326
|
+
export function __wbgtest_console_info(args) {
|
|
327
|
+
wasm.__wbgtest_console_info(args);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Handler for `console.warn` invocations. See above.
|
|
332
|
+
* @param {Array<any>} args
|
|
333
|
+
*/
|
|
334
|
+
export function __wbgtest_console_warn(args) {
|
|
335
|
+
wasm.__wbgtest_console_warn(args);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Handler for `console.error` invocations. See above.
|
|
340
|
+
* @param {Array<any>} args
|
|
341
|
+
*/
|
|
342
|
+
export function __wbgtest_console_error(args) {
|
|
343
|
+
wasm.__wbgtest_console_error(args);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
347
|
+
ptr = ptr >>> 0;
|
|
348
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @returns {Uint8Array | undefined}
|
|
352
|
+
*/
|
|
353
|
+
export function __wbgtest_cov_dump() {
|
|
354
|
+
const ret = wasm.__wbgtest_cov_dump();
|
|
355
|
+
let v1;
|
|
356
|
+
if (ret[0] !== 0) {
|
|
357
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
358
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
359
|
+
}
|
|
360
|
+
return v1;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function __wbg_adapter_523(arg0, arg1, arg2, arg3, arg4) {
|
|
364
|
+
wasm.closure3105_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
function __wbg_adapter_566(arg0, arg1, arg2, arg3) {
|
|
368
|
+
wasm.closure3103_externref_shim(arg0, arg1, arg2, arg3);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export const WasmConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
|
|
372
|
+
|
|
373
|
+
export const WasmConsentState = Object.freeze({ Unknown:0,"0":"Unknown",Allowed:1,"1":"Allowed",Denied:2,"2":"Denied", });
|
|
374
|
+
|
|
375
|
+
export const WasmDeliveryStatus = Object.freeze({ Unpublished:0,"0":"Unpublished",Published:1,"1":"Published",Failed:2,"2":"Failed", });
|
|
376
|
+
|
|
377
|
+
export const WasmGroupMessageKind = Object.freeze({ Application:0,"0":"Application",MembershipChange:1,"1":"MembershipChange", });
|
|
378
|
+
|
|
379
|
+
export const WasmGroupPermissionsOptions = Object.freeze({ AllMembers:0,"0":"AllMembers",AdminOnly:1,"1":"AdminOnly",CustomPolicy:2,"2":"CustomPolicy", });
|
|
380
|
+
|
|
381
|
+
export const WasmPermissionLevel = Object.freeze({ Member:0,"0":"Member",Admin:1,"1":"Admin",SuperAdmin:2,"2":"SuperAdmin", });
|
|
382
|
+
|
|
383
|
+
export const WasmPermissionPolicy = Object.freeze({ Allow:0,"0":"Allow",Deny:1,"1":"Deny",Admin:2,"2":"Admin",SuperAdmin:3,"3":"SuperAdmin",DoesNotExist:4,"4":"DoesNotExist",Other:5,"5":"Other", });
|
|
384
|
+
|
|
385
|
+
export const WasmPermissionUpdateType = Object.freeze({ AddMember:0,"0":"AddMember",RemoveMember:1,"1":"RemoveMember",AddAdmin:2,"2":"AddAdmin",RemoveAdmin:3,"3":"RemoveAdmin",UpdateMetadata:4,"4":"UpdateMetadata", });
|
|
386
|
+
|
|
387
|
+
export const WasmSignatureRequestType = Object.freeze({ AddWallet:0,"0":"AddWallet",CreateInbox:1,"1":"CreateInbox",RevokeWallet:2,"2":"RevokeWallet",RevokeInstallations:3,"3":"RevokeInstallations", });
|
|
388
|
+
|
|
389
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
390
|
+
|
|
391
|
+
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
|
|
392
|
+
|
|
393
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
394
|
+
|
|
395
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
396
|
+
|
|
397
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
398
|
+
|
|
399
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
400
|
+
? { register: () => {}, unregister: () => {} }
|
|
401
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
402
|
+
|
|
403
|
+
export class IntoUnderlyingByteSource {
|
|
404
|
+
|
|
405
|
+
__destroy_into_raw() {
|
|
406
|
+
const ptr = this.__wbg_ptr;
|
|
407
|
+
this.__wbg_ptr = 0;
|
|
408
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
409
|
+
return ptr;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
free() {
|
|
413
|
+
const ptr = this.__destroy_into_raw();
|
|
414
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @returns {string}
|
|
418
|
+
*/
|
|
419
|
+
get type() {
|
|
420
|
+
let deferred1_0;
|
|
421
|
+
let deferred1_1;
|
|
422
|
+
try {
|
|
423
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
424
|
+
deferred1_0 = ret[0];
|
|
425
|
+
deferred1_1 = ret[1];
|
|
426
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
427
|
+
} finally {
|
|
428
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @returns {number}
|
|
433
|
+
*/
|
|
434
|
+
get autoAllocateChunkSize() {
|
|
435
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
436
|
+
return ret >>> 0;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* @param {ReadableByteStreamController} controller
|
|
440
|
+
*/
|
|
441
|
+
start(controller) {
|
|
442
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @param {ReadableByteStreamController} controller
|
|
446
|
+
* @returns {Promise<any>}
|
|
447
|
+
*/
|
|
448
|
+
pull(controller) {
|
|
449
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
450
|
+
return ret;
|
|
451
|
+
}
|
|
452
|
+
cancel() {
|
|
453
|
+
const ptr = this.__destroy_into_raw();
|
|
454
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
459
|
+
? { register: () => {}, unregister: () => {} }
|
|
460
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
461
|
+
|
|
462
|
+
export class IntoUnderlyingSink {
|
|
463
|
+
|
|
464
|
+
__destroy_into_raw() {
|
|
465
|
+
const ptr = this.__wbg_ptr;
|
|
466
|
+
this.__wbg_ptr = 0;
|
|
467
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
468
|
+
return ptr;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
free() {
|
|
472
|
+
const ptr = this.__destroy_into_raw();
|
|
473
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* @param {any} chunk
|
|
477
|
+
* @returns {Promise<any>}
|
|
478
|
+
*/
|
|
479
|
+
write(chunk) {
|
|
480
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
481
|
+
return ret;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @returns {Promise<any>}
|
|
485
|
+
*/
|
|
486
|
+
close() {
|
|
487
|
+
const ptr = this.__destroy_into_raw();
|
|
488
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
489
|
+
return ret;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* @param {any} reason
|
|
493
|
+
* @returns {Promise<any>}
|
|
494
|
+
*/
|
|
495
|
+
abort(reason) {
|
|
496
|
+
const ptr = this.__destroy_into_raw();
|
|
497
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
498
|
+
return ret;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
503
|
+
? { register: () => {}, unregister: () => {} }
|
|
504
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
505
|
+
|
|
506
|
+
export class IntoUnderlyingSource {
|
|
507
|
+
|
|
508
|
+
__destroy_into_raw() {
|
|
509
|
+
const ptr = this.__wbg_ptr;
|
|
510
|
+
this.__wbg_ptr = 0;
|
|
511
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
512
|
+
return ptr;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
free() {
|
|
516
|
+
const ptr = this.__destroy_into_raw();
|
|
517
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @param {ReadableStreamDefaultController} controller
|
|
521
|
+
* @returns {Promise<any>}
|
|
522
|
+
*/
|
|
523
|
+
pull(controller) {
|
|
524
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
525
|
+
return ret;
|
|
526
|
+
}
|
|
527
|
+
cancel() {
|
|
528
|
+
const ptr = this.__destroy_into_raw();
|
|
529
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
const VersionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
534
|
+
? { register: () => {}, unregister: () => {} }
|
|
535
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_version_free(ptr >>> 0, 1));
|
|
536
|
+
|
|
537
|
+
export class Version {
|
|
538
|
+
|
|
539
|
+
__destroy_into_raw() {
|
|
540
|
+
const ptr = this.__wbg_ptr;
|
|
541
|
+
this.__wbg_ptr = 0;
|
|
542
|
+
VersionFinalization.unregister(this);
|
|
543
|
+
return ptr;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
free() {
|
|
547
|
+
const ptr = this.__destroy_into_raw();
|
|
548
|
+
wasm.__wbg_version_free(ptr, 0);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
553
|
+
? { register: () => {}, unregister: () => {} }
|
|
554
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0, 1));
|
|
555
|
+
/**
|
|
556
|
+
* Runtime test harness support instantiated in JS.
|
|
557
|
+
*
|
|
558
|
+
* The node.js entry script instantiates a `Context` here which is used to
|
|
559
|
+
* drive test execution.
|
|
560
|
+
*/
|
|
561
|
+
export class WasmBindgenTestContext {
|
|
562
|
+
|
|
563
|
+
__destroy_into_raw() {
|
|
564
|
+
const ptr = this.__wbg_ptr;
|
|
565
|
+
this.__wbg_ptr = 0;
|
|
566
|
+
WasmBindgenTestContextFinalization.unregister(this);
|
|
567
|
+
return ptr;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
free() {
|
|
571
|
+
const ptr = this.__destroy_into_raw();
|
|
572
|
+
wasm.__wbg_wasmbindgentestcontext_free(ptr, 0);
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Creates a new context ready to run tests.
|
|
576
|
+
*
|
|
577
|
+
* A `Context` is the main structure through which test execution is
|
|
578
|
+
* coordinated, and this will collect output and results for all executed
|
|
579
|
+
* tests.
|
|
580
|
+
*/
|
|
581
|
+
constructor() {
|
|
582
|
+
const ret = wasm.wasmbindgentestcontext_new();
|
|
583
|
+
this.__wbg_ptr = ret >>> 0;
|
|
584
|
+
WasmBindgenTestContextFinalization.register(this, this.__wbg_ptr, this);
|
|
585
|
+
return this;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Inform this context about runtime arguments passed to the test
|
|
589
|
+
* harness.
|
|
590
|
+
* @param {any[]} args
|
|
591
|
+
*/
|
|
592
|
+
args(args) {
|
|
593
|
+
const ptr0 = passArrayJsValueToWasm0(args, wasm.__wbindgen_malloc);
|
|
594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
595
|
+
wasm.wasmbindgentestcontext_args(this.__wbg_ptr, ptr0, len0);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Executes a list of tests, returning a promise representing their
|
|
599
|
+
* eventual completion.
|
|
600
|
+
*
|
|
601
|
+
* This is the main entry point for executing tests. All the tests passed
|
|
602
|
+
* in are the JS `Function` object that was plucked off the
|
|
603
|
+
* `WebAssembly.Instance` exports list.
|
|
604
|
+
*
|
|
605
|
+
* The promise returned resolves to either `true` if all tests passed or
|
|
606
|
+
* `false` if at least one test failed.
|
|
607
|
+
* @param {any[]} tests
|
|
608
|
+
* @returns {Promise<any>}
|
|
609
|
+
*/
|
|
610
|
+
run(tests) {
|
|
611
|
+
const ptr0 = passArrayJsValueToWasm0(tests, wasm.__wbindgen_malloc);
|
|
612
|
+
const len0 = WASM_VECTOR_LEN;
|
|
613
|
+
const ret = wasm.wasmbindgentestcontext_run(this.__wbg_ptr, ptr0, len0);
|
|
614
|
+
return ret;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
const WasmClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
619
|
+
? { register: () => {}, unregister: () => {} }
|
|
620
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmclient_free(ptr >>> 0, 1));
|
|
621
|
+
|
|
622
|
+
export class WasmClient {
|
|
623
|
+
|
|
624
|
+
static __wrap(ptr) {
|
|
625
|
+
ptr = ptr >>> 0;
|
|
626
|
+
const obj = Object.create(WasmClient.prototype);
|
|
627
|
+
obj.__wbg_ptr = ptr;
|
|
628
|
+
WasmClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
629
|
+
return obj;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
__destroy_into_raw() {
|
|
633
|
+
const ptr = this.__wbg_ptr;
|
|
634
|
+
this.__wbg_ptr = 0;
|
|
635
|
+
WasmClientFinalization.unregister(this);
|
|
636
|
+
return ptr;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
free() {
|
|
640
|
+
const ptr = this.__destroy_into_raw();
|
|
641
|
+
wasm.__wbg_wasmclient_free(ptr, 0);
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @returns {string}
|
|
645
|
+
*/
|
|
646
|
+
get accountAddress() {
|
|
647
|
+
let deferred1_0;
|
|
648
|
+
let deferred1_1;
|
|
649
|
+
try {
|
|
650
|
+
const ret = wasm.wasmclient_accountAddress(this.__wbg_ptr);
|
|
651
|
+
deferred1_0 = ret[0];
|
|
652
|
+
deferred1_1 = ret[1];
|
|
653
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
654
|
+
} finally {
|
|
655
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* @returns {string}
|
|
660
|
+
*/
|
|
661
|
+
get inboxId() {
|
|
662
|
+
let deferred1_0;
|
|
663
|
+
let deferred1_1;
|
|
664
|
+
try {
|
|
665
|
+
const ret = wasm.wasmclient_inboxId(this.__wbg_ptr);
|
|
666
|
+
deferred1_0 = ret[0];
|
|
667
|
+
deferred1_1 = ret[1];
|
|
668
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
669
|
+
} finally {
|
|
670
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* @returns {boolean}
|
|
675
|
+
*/
|
|
676
|
+
get isRegistered() {
|
|
677
|
+
const ret = wasm.wasmclient_isRegistered(this.__wbg_ptr);
|
|
678
|
+
return ret !== 0;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* @returns {string}
|
|
682
|
+
*/
|
|
683
|
+
get installationId() {
|
|
684
|
+
let deferred1_0;
|
|
685
|
+
let deferred1_1;
|
|
686
|
+
try {
|
|
687
|
+
const ret = wasm.wasmclient_installationId(this.__wbg_ptr);
|
|
688
|
+
deferred1_0 = ret[0];
|
|
689
|
+
deferred1_1 = ret[1];
|
|
690
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
691
|
+
} finally {
|
|
692
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* @param {(string)[]} account_addresses
|
|
697
|
+
* @returns {Promise<any>}
|
|
698
|
+
*/
|
|
699
|
+
canMessage(account_addresses) {
|
|
700
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
701
|
+
const len0 = WASM_VECTOR_LEN;
|
|
702
|
+
const ret = wasm.wasmclient_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
703
|
+
return ret;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* @returns {Promise<void>}
|
|
707
|
+
*/
|
|
708
|
+
registerIdentity() {
|
|
709
|
+
const ret = wasm.wasmclient_registerIdentity(this.__wbg_ptr);
|
|
710
|
+
return ret;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* @returns {Promise<string | undefined>}
|
|
714
|
+
*/
|
|
715
|
+
createInboxSignatureText() {
|
|
716
|
+
const ret = wasm.wasmclient_createInboxSignatureText(this.__wbg_ptr);
|
|
717
|
+
return ret;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* @param {string} existing_wallet_address
|
|
721
|
+
* @param {string} new_wallet_address
|
|
722
|
+
* @returns {Promise<string>}
|
|
723
|
+
*/
|
|
724
|
+
addWalletSignatureText(existing_wallet_address, new_wallet_address) {
|
|
725
|
+
const ptr0 = passStringToWasm0(existing_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
726
|
+
const len0 = WASM_VECTOR_LEN;
|
|
727
|
+
const ptr1 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
728
|
+
const len1 = WASM_VECTOR_LEN;
|
|
729
|
+
const ret = wasm.wasmclient_addWalletSignatureText(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
730
|
+
return ret;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* @param {string} wallet_address
|
|
734
|
+
* @returns {Promise<string>}
|
|
735
|
+
*/
|
|
736
|
+
revokeWalletSignatureText(wallet_address) {
|
|
737
|
+
const ptr0 = passStringToWasm0(wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
738
|
+
const len0 = WASM_VECTOR_LEN;
|
|
739
|
+
const ret = wasm.wasmclient_revokeWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
740
|
+
return ret;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* @returns {Promise<string>}
|
|
744
|
+
*/
|
|
745
|
+
revokeInstallationsSignatureText() {
|
|
746
|
+
const ret = wasm.wasmclient_revokeInstallationsSignatureText(this.__wbg_ptr);
|
|
747
|
+
return ret;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @param {WasmSignatureRequestType} signature_type
|
|
751
|
+
* @param {Uint8Array} signature_bytes
|
|
752
|
+
* @returns {Promise<void>}
|
|
753
|
+
*/
|
|
754
|
+
addSignature(signature_type, signature_bytes) {
|
|
755
|
+
const ret = wasm.wasmclient_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
756
|
+
return ret;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* @returns {Promise<void>}
|
|
760
|
+
*/
|
|
761
|
+
applySignatureRequests() {
|
|
762
|
+
const ret = wasm.wasmclient_applySignatureRequests(this.__wbg_ptr);
|
|
763
|
+
return ret;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* @returns {Promise<void>}
|
|
767
|
+
*/
|
|
768
|
+
requestHistorySync() {
|
|
769
|
+
const ret = wasm.wasmclient_requestHistorySync(this.__wbg_ptr);
|
|
770
|
+
return ret;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* @param {string} address
|
|
774
|
+
* @returns {Promise<string | undefined>}
|
|
775
|
+
*/
|
|
776
|
+
findInboxIdByAddress(address) {
|
|
777
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
778
|
+
const len0 = WASM_VECTOR_LEN;
|
|
779
|
+
const ret = wasm.wasmclient_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
|
|
780
|
+
return ret;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* * Get the client's inbox state.
|
|
785
|
+
* *
|
|
786
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
787
|
+
* * Otherwise, the state will be read from the local database.
|
|
788
|
+
*
|
|
789
|
+
* @param {boolean} refresh_from_network
|
|
790
|
+
* @returns {Promise<WasmInboxState>}
|
|
791
|
+
*/
|
|
792
|
+
inboxState(refresh_from_network) {
|
|
793
|
+
const ret = wasm.wasmclient_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
794
|
+
return ret;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @param {string} inbox_id
|
|
798
|
+
* @returns {Promise<WasmInboxState>}
|
|
799
|
+
*/
|
|
800
|
+
getLatestInboxState(inbox_id) {
|
|
801
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
802
|
+
const len0 = WASM_VECTOR_LEN;
|
|
803
|
+
const ret = wasm.wasmclient_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
804
|
+
return ret;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @param {(WasmConsent)[]} records
|
|
808
|
+
* @returns {Promise<void>}
|
|
809
|
+
*/
|
|
810
|
+
setConsentStates(records) {
|
|
811
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
812
|
+
const len0 = WASM_VECTOR_LEN;
|
|
813
|
+
const ret = wasm.wasmclient_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
814
|
+
return ret;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* @param {WasmConsentEntityType} entity_type
|
|
818
|
+
* @param {string} entity
|
|
819
|
+
* @returns {Promise<WasmConsentState>}
|
|
820
|
+
*/
|
|
821
|
+
getConsentState(entity_type, entity) {
|
|
822
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
823
|
+
const len0 = WASM_VECTOR_LEN;
|
|
824
|
+
const ret = wasm.wasmclient_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
825
|
+
return ret;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* @returns {WasmConversations}
|
|
829
|
+
*/
|
|
830
|
+
conversations() {
|
|
831
|
+
const ret = wasm.wasmclient_conversations(this.__wbg_ptr);
|
|
832
|
+
return WasmConversations.__wrap(ret);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
const WasmConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
837
|
+
? { register: () => {}, unregister: () => {} }
|
|
838
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconsent_free(ptr >>> 0, 1));
|
|
839
|
+
|
|
840
|
+
export class WasmConsent {
|
|
841
|
+
|
|
842
|
+
static __unwrap(jsValue) {
|
|
843
|
+
if (!(jsValue instanceof WasmConsent)) {
|
|
844
|
+
return 0;
|
|
845
|
+
}
|
|
846
|
+
return jsValue.__destroy_into_raw();
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
__destroy_into_raw() {
|
|
850
|
+
const ptr = this.__wbg_ptr;
|
|
851
|
+
this.__wbg_ptr = 0;
|
|
852
|
+
WasmConsentFinalization.unregister(this);
|
|
853
|
+
return ptr;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
free() {
|
|
857
|
+
const ptr = this.__destroy_into_raw();
|
|
858
|
+
wasm.__wbg_wasmconsent_free(ptr, 0);
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* @returns {WasmConsentEntityType}
|
|
862
|
+
*/
|
|
863
|
+
get entity_type() {
|
|
864
|
+
const ret = wasm.__wbg_get_wasmconsent_entity_type(this.__wbg_ptr);
|
|
865
|
+
return ret;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* @param {WasmConsentEntityType} arg0
|
|
869
|
+
*/
|
|
870
|
+
set entity_type(arg0) {
|
|
871
|
+
wasm.__wbg_set_wasmconsent_entity_type(this.__wbg_ptr, arg0);
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* @returns {WasmConsentState}
|
|
875
|
+
*/
|
|
876
|
+
get state() {
|
|
877
|
+
const ret = wasm.__wbg_get_wasmconsent_state(this.__wbg_ptr);
|
|
878
|
+
return ret;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* @param {WasmConsentState} arg0
|
|
882
|
+
*/
|
|
883
|
+
set state(arg0) {
|
|
884
|
+
wasm.__wbg_set_wasmconsent_state(this.__wbg_ptr, arg0);
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* @returns {string}
|
|
888
|
+
*/
|
|
889
|
+
get entity() {
|
|
890
|
+
let deferred1_0;
|
|
891
|
+
let deferred1_1;
|
|
892
|
+
try {
|
|
893
|
+
const ret = wasm.__wbg_get_wasmconsent_entity(this.__wbg_ptr);
|
|
894
|
+
deferred1_0 = ret[0];
|
|
895
|
+
deferred1_1 = ret[1];
|
|
896
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
897
|
+
} finally {
|
|
898
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @param {string} arg0
|
|
903
|
+
*/
|
|
904
|
+
set entity(arg0) {
|
|
905
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
906
|
+
const len0 = WASM_VECTOR_LEN;
|
|
907
|
+
wasm.__wbg_set_wasmconsent_entity(this.__wbg_ptr, ptr0, len0);
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* @param {WasmConsentEntityType} entity_type
|
|
911
|
+
* @param {WasmConsentState} state
|
|
912
|
+
* @param {string} entity
|
|
913
|
+
*/
|
|
914
|
+
constructor(entity_type, state, entity) {
|
|
915
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
916
|
+
const len0 = WASM_VECTOR_LEN;
|
|
917
|
+
const ret = wasm.wasmconsent_new(entity_type, state, ptr0, len0);
|
|
918
|
+
this.__wbg_ptr = ret >>> 0;
|
|
919
|
+
WasmConsentFinalization.register(this, this.__wbg_ptr, this);
|
|
920
|
+
return this;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
const WasmContentTypeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
925
|
+
? { register: () => {}, unregister: () => {} }
|
|
926
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcontenttypeid_free(ptr >>> 0, 1));
|
|
927
|
+
|
|
928
|
+
export class WasmContentTypeId {
|
|
929
|
+
|
|
930
|
+
static __wrap(ptr) {
|
|
931
|
+
ptr = ptr >>> 0;
|
|
932
|
+
const obj = Object.create(WasmContentTypeId.prototype);
|
|
933
|
+
obj.__wbg_ptr = ptr;
|
|
934
|
+
WasmContentTypeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
935
|
+
return obj;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
__destroy_into_raw() {
|
|
939
|
+
const ptr = this.__wbg_ptr;
|
|
940
|
+
this.__wbg_ptr = 0;
|
|
941
|
+
WasmContentTypeIdFinalization.unregister(this);
|
|
942
|
+
return ptr;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
free() {
|
|
946
|
+
const ptr = this.__destroy_into_raw();
|
|
947
|
+
wasm.__wbg_wasmcontenttypeid_free(ptr, 0);
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* @returns {string}
|
|
951
|
+
*/
|
|
952
|
+
get authority_id() {
|
|
953
|
+
let deferred1_0;
|
|
954
|
+
let deferred1_1;
|
|
955
|
+
try {
|
|
956
|
+
const ret = wasm.__wbg_get_wasmcontenttypeid_authority_id(this.__wbg_ptr);
|
|
957
|
+
deferred1_0 = ret[0];
|
|
958
|
+
deferred1_1 = ret[1];
|
|
959
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
960
|
+
} finally {
|
|
961
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* @param {string} arg0
|
|
966
|
+
*/
|
|
967
|
+
set authority_id(arg0) {
|
|
968
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
969
|
+
const len0 = WASM_VECTOR_LEN;
|
|
970
|
+
wasm.__wbg_set_wasmcontenttypeid_authority_id(this.__wbg_ptr, ptr0, len0);
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* @returns {string}
|
|
974
|
+
*/
|
|
975
|
+
get type_id() {
|
|
976
|
+
let deferred1_0;
|
|
977
|
+
let deferred1_1;
|
|
978
|
+
try {
|
|
979
|
+
const ret = wasm.__wbg_get_wasmcontenttypeid_type_id(this.__wbg_ptr);
|
|
980
|
+
deferred1_0 = ret[0];
|
|
981
|
+
deferred1_1 = ret[1];
|
|
982
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
983
|
+
} finally {
|
|
984
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* @param {string} arg0
|
|
989
|
+
*/
|
|
990
|
+
set type_id(arg0) {
|
|
991
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
992
|
+
const len0 = WASM_VECTOR_LEN;
|
|
993
|
+
wasm.__wbg_set_wasmcontenttypeid_type_id(this.__wbg_ptr, ptr0, len0);
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* @returns {number}
|
|
997
|
+
*/
|
|
998
|
+
get version_major() {
|
|
999
|
+
const ret = wasm.__wbg_get_wasmcontenttypeid_version_major(this.__wbg_ptr);
|
|
1000
|
+
return ret >>> 0;
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* @param {number} arg0
|
|
1004
|
+
*/
|
|
1005
|
+
set version_major(arg0) {
|
|
1006
|
+
wasm.__wbg_set_wasmcontenttypeid_version_major(this.__wbg_ptr, arg0);
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* @returns {number}
|
|
1010
|
+
*/
|
|
1011
|
+
get version_minor() {
|
|
1012
|
+
const ret = wasm.__wbg_get_wasmcontenttypeid_version_minor(this.__wbg_ptr);
|
|
1013
|
+
return ret >>> 0;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* @param {number} arg0
|
|
1017
|
+
*/
|
|
1018
|
+
set version_minor(arg0) {
|
|
1019
|
+
wasm.__wbg_set_wasmcontenttypeid_version_minor(this.__wbg_ptr, arg0);
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* @param {string} authority_id
|
|
1023
|
+
* @param {string} type_id
|
|
1024
|
+
* @param {number} version_major
|
|
1025
|
+
* @param {number} version_minor
|
|
1026
|
+
*/
|
|
1027
|
+
constructor(authority_id, type_id, version_major, version_minor) {
|
|
1028
|
+
const ptr0 = passStringToWasm0(authority_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1029
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1030
|
+
const ptr1 = passStringToWasm0(type_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1031
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1032
|
+
const ret = wasm.wasmcontenttypeid_new(ptr0, len0, ptr1, len1, version_major, version_minor);
|
|
1033
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1034
|
+
WasmContentTypeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
1035
|
+
return this;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
const WasmConversationsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1040
|
+
? { register: () => {}, unregister: () => {} }
|
|
1041
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversations_free(ptr >>> 0, 1));
|
|
1042
|
+
|
|
1043
|
+
export class WasmConversations {
|
|
1044
|
+
|
|
1045
|
+
static __wrap(ptr) {
|
|
1046
|
+
ptr = ptr >>> 0;
|
|
1047
|
+
const obj = Object.create(WasmConversations.prototype);
|
|
1048
|
+
obj.__wbg_ptr = ptr;
|
|
1049
|
+
WasmConversationsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1050
|
+
return obj;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
__destroy_into_raw() {
|
|
1054
|
+
const ptr = this.__wbg_ptr;
|
|
1055
|
+
this.__wbg_ptr = 0;
|
|
1056
|
+
WasmConversationsFinalization.unregister(this);
|
|
1057
|
+
return ptr;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
free() {
|
|
1061
|
+
const ptr = this.__destroy_into_raw();
|
|
1062
|
+
wasm.__wbg_wasmconversations_free(ptr, 0);
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* @param {(string)[]} account_addresses
|
|
1066
|
+
* @param {WasmCreateGroupOptions | undefined} [options]
|
|
1067
|
+
* @returns {Promise<WasmGroup>}
|
|
1068
|
+
*/
|
|
1069
|
+
create_group(account_addresses, options) {
|
|
1070
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1071
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1072
|
+
let ptr1 = 0;
|
|
1073
|
+
if (!isLikeNone(options)) {
|
|
1074
|
+
_assertClass(options, WasmCreateGroupOptions);
|
|
1075
|
+
ptr1 = options.__destroy_into_raw();
|
|
1076
|
+
}
|
|
1077
|
+
const ret = wasm.wasmconversations_create_group(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
1078
|
+
return ret;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* @param {string} group_id
|
|
1082
|
+
* @returns {WasmGroup}
|
|
1083
|
+
*/
|
|
1084
|
+
find_group_by_id(group_id) {
|
|
1085
|
+
const ptr0 = passStringToWasm0(group_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1086
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1087
|
+
const ret = wasm.wasmconversations_find_group_by_id(this.__wbg_ptr, ptr0, len0);
|
|
1088
|
+
if (ret[2]) {
|
|
1089
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1090
|
+
}
|
|
1091
|
+
return WasmGroup.__wrap(ret[0]);
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* @param {string} message_id
|
|
1095
|
+
* @returns {WasmMessage}
|
|
1096
|
+
*/
|
|
1097
|
+
find_message_by_id(message_id) {
|
|
1098
|
+
const ptr0 = passStringToWasm0(message_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1099
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1100
|
+
const ret = wasm.wasmconversations_find_message_by_id(this.__wbg_ptr, ptr0, len0);
|
|
1101
|
+
if (ret[2]) {
|
|
1102
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1103
|
+
}
|
|
1104
|
+
return WasmMessage.__wrap(ret[0]);
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* @returns {Promise<void>}
|
|
1108
|
+
*/
|
|
1109
|
+
sync() {
|
|
1110
|
+
const ret = wasm.wasmconversations_sync(this.__wbg_ptr);
|
|
1111
|
+
return ret;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* @param {WasmListConversationsOptions | undefined} [opts]
|
|
1115
|
+
* @returns {Promise<Array<any>>}
|
|
1116
|
+
*/
|
|
1117
|
+
list(opts) {
|
|
1118
|
+
let ptr0 = 0;
|
|
1119
|
+
if (!isLikeNone(opts)) {
|
|
1120
|
+
_assertClass(opts, WasmListConversationsOptions);
|
|
1121
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1122
|
+
}
|
|
1123
|
+
const ret = wasm.wasmconversations_list(this.__wbg_ptr, ptr0);
|
|
1124
|
+
return ret;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
const WasmCreateGroupOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1129
|
+
? { register: () => {}, unregister: () => {} }
|
|
1130
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcreategroupoptions_free(ptr >>> 0, 1));
|
|
1131
|
+
|
|
1132
|
+
export class WasmCreateGroupOptions {
|
|
1133
|
+
|
|
1134
|
+
__destroy_into_raw() {
|
|
1135
|
+
const ptr = this.__wbg_ptr;
|
|
1136
|
+
this.__wbg_ptr = 0;
|
|
1137
|
+
WasmCreateGroupOptionsFinalization.unregister(this);
|
|
1138
|
+
return ptr;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
free() {
|
|
1142
|
+
const ptr = this.__destroy_into_raw();
|
|
1143
|
+
wasm.__wbg_wasmcreategroupoptions_free(ptr, 0);
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* @returns {WasmGroupPermissionsOptions | undefined}
|
|
1147
|
+
*/
|
|
1148
|
+
get permissions() {
|
|
1149
|
+
const ret = wasm.__wbg_get_wasmcreategroupoptions_permissions(this.__wbg_ptr);
|
|
1150
|
+
return ret === 3 ? undefined : ret;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* @param {WasmGroupPermissionsOptions | undefined} [arg0]
|
|
1154
|
+
*/
|
|
1155
|
+
set permissions(arg0) {
|
|
1156
|
+
wasm.__wbg_set_wasmcreategroupoptions_permissions(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* @returns {string | undefined}
|
|
1160
|
+
*/
|
|
1161
|
+
get group_name() {
|
|
1162
|
+
const ret = wasm.__wbg_get_wasmcreategroupoptions_group_name(this.__wbg_ptr);
|
|
1163
|
+
let v1;
|
|
1164
|
+
if (ret[0] !== 0) {
|
|
1165
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1166
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1167
|
+
}
|
|
1168
|
+
return v1;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* @param {string | undefined} [arg0]
|
|
1172
|
+
*/
|
|
1173
|
+
set group_name(arg0) {
|
|
1174
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1175
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1176
|
+
wasm.__wbg_set_wasmcreategroupoptions_group_name(this.__wbg_ptr, ptr0, len0);
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* @returns {string | undefined}
|
|
1180
|
+
*/
|
|
1181
|
+
get group_image_url_square() {
|
|
1182
|
+
const ret = wasm.__wbg_get_wasmcreategroupoptions_group_image_url_square(this.__wbg_ptr);
|
|
1183
|
+
let v1;
|
|
1184
|
+
if (ret[0] !== 0) {
|
|
1185
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1186
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1187
|
+
}
|
|
1188
|
+
return v1;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* @param {string | undefined} [arg0]
|
|
1192
|
+
*/
|
|
1193
|
+
set group_image_url_square(arg0) {
|
|
1194
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1195
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1196
|
+
wasm.__wbg_set_wasmcreategroupoptions_group_image_url_square(this.__wbg_ptr, ptr0, len0);
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* @returns {string | undefined}
|
|
1200
|
+
*/
|
|
1201
|
+
get group_description() {
|
|
1202
|
+
const ret = wasm.__wbg_get_wasmcreategroupoptions_group_description(this.__wbg_ptr);
|
|
1203
|
+
let v1;
|
|
1204
|
+
if (ret[0] !== 0) {
|
|
1205
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1206
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1207
|
+
}
|
|
1208
|
+
return v1;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* @param {string | undefined} [arg0]
|
|
1212
|
+
*/
|
|
1213
|
+
set group_description(arg0) {
|
|
1214
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1215
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1216
|
+
wasm.__wbg_set_wasmcreategroupoptions_group_description(this.__wbg_ptr, ptr0, len0);
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* @returns {string | undefined}
|
|
1220
|
+
*/
|
|
1221
|
+
get group_pinned_frame_url() {
|
|
1222
|
+
const ret = wasm.__wbg_get_wasmcreategroupoptions_group_pinned_frame_url(this.__wbg_ptr);
|
|
1223
|
+
let v1;
|
|
1224
|
+
if (ret[0] !== 0) {
|
|
1225
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1226
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1227
|
+
}
|
|
1228
|
+
return v1;
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* @param {string | undefined} [arg0]
|
|
1232
|
+
*/
|
|
1233
|
+
set group_pinned_frame_url(arg0) {
|
|
1234
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1235
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1236
|
+
wasm.__wbg_set_wasmcreategroupoptions_group_pinned_frame_url(this.__wbg_ptr, ptr0, len0);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* @param {WasmGroupPermissionsOptions | undefined} [permissions]
|
|
1240
|
+
* @param {string | undefined} [group_name]
|
|
1241
|
+
* @param {string | undefined} [group_image_url_square]
|
|
1242
|
+
* @param {string | undefined} [group_description]
|
|
1243
|
+
* @param {string | undefined} [group_pinned_frame_url]
|
|
1244
|
+
*/
|
|
1245
|
+
constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url) {
|
|
1246
|
+
var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1247
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1248
|
+
var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1249
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1250
|
+
var ptr2 = isLikeNone(group_description) ? 0 : passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1251
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1252
|
+
var ptr3 = isLikeNone(group_pinned_frame_url) ? 0 : passStringToWasm0(group_pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1253
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1254
|
+
const ret = wasm.wasmcreategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1255
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1256
|
+
WasmCreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1257
|
+
return this;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
const WasmEncodedContentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1262
|
+
? { register: () => {}, unregister: () => {} }
|
|
1263
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencodedcontent_free(ptr >>> 0, 1));
|
|
1264
|
+
|
|
1265
|
+
export class WasmEncodedContent {
|
|
1266
|
+
|
|
1267
|
+
static __wrap(ptr) {
|
|
1268
|
+
ptr = ptr >>> 0;
|
|
1269
|
+
const obj = Object.create(WasmEncodedContent.prototype);
|
|
1270
|
+
obj.__wbg_ptr = ptr;
|
|
1271
|
+
WasmEncodedContentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1272
|
+
return obj;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
__destroy_into_raw() {
|
|
1276
|
+
const ptr = this.__wbg_ptr;
|
|
1277
|
+
this.__wbg_ptr = 0;
|
|
1278
|
+
WasmEncodedContentFinalization.unregister(this);
|
|
1279
|
+
return ptr;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
free() {
|
|
1283
|
+
const ptr = this.__destroy_into_raw();
|
|
1284
|
+
wasm.__wbg_wasmencodedcontent_free(ptr, 0);
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @returns {WasmContentTypeId | undefined}
|
|
1288
|
+
*/
|
|
1289
|
+
get type() {
|
|
1290
|
+
const ret = wasm.__wbg_get_wasmencodedcontent_type(this.__wbg_ptr);
|
|
1291
|
+
return ret === 0 ? undefined : WasmContentTypeId.__wrap(ret);
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* @param {WasmContentTypeId | undefined} [arg0]
|
|
1295
|
+
*/
|
|
1296
|
+
set type(arg0) {
|
|
1297
|
+
let ptr0 = 0;
|
|
1298
|
+
if (!isLikeNone(arg0)) {
|
|
1299
|
+
_assertClass(arg0, WasmContentTypeId);
|
|
1300
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1301
|
+
}
|
|
1302
|
+
wasm.__wbg_set_wasmencodedcontent_type(this.__wbg_ptr, ptr0);
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* @returns {any}
|
|
1306
|
+
*/
|
|
1307
|
+
get parameters() {
|
|
1308
|
+
const ret = wasm.__wbg_get_wasmencodedcontent_parameters(this.__wbg_ptr);
|
|
1309
|
+
return ret;
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* @param {any} arg0
|
|
1313
|
+
*/
|
|
1314
|
+
set parameters(arg0) {
|
|
1315
|
+
wasm.__wbg_set_wasmencodedcontent_parameters(this.__wbg_ptr, arg0);
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* @returns {string | undefined}
|
|
1319
|
+
*/
|
|
1320
|
+
get fallback() {
|
|
1321
|
+
const ret = wasm.__wbg_get_wasmencodedcontent_fallback(this.__wbg_ptr);
|
|
1322
|
+
let v1;
|
|
1323
|
+
if (ret[0] !== 0) {
|
|
1324
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1325
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1326
|
+
}
|
|
1327
|
+
return v1;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* @param {string | undefined} [arg0]
|
|
1331
|
+
*/
|
|
1332
|
+
set fallback(arg0) {
|
|
1333
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1334
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1335
|
+
wasm.__wbg_set_wasmencodedcontent_fallback(this.__wbg_ptr, ptr0, len0);
|
|
1336
|
+
}
|
|
1337
|
+
/**
|
|
1338
|
+
* @returns {number | undefined}
|
|
1339
|
+
*/
|
|
1340
|
+
get compression() {
|
|
1341
|
+
const ret = wasm.__wbg_get_wasmencodedcontent_compression(this.__wbg_ptr);
|
|
1342
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* @param {number | undefined} [arg0]
|
|
1346
|
+
*/
|
|
1347
|
+
set compression(arg0) {
|
|
1348
|
+
wasm.__wbg_set_wasmencodedcontent_compression(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* @returns {Uint8Array}
|
|
1352
|
+
*/
|
|
1353
|
+
get content() {
|
|
1354
|
+
const ret = wasm.__wbg_get_wasmencodedcontent_content(this.__wbg_ptr);
|
|
1355
|
+
return ret;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* @param {Uint8Array} arg0
|
|
1359
|
+
*/
|
|
1360
|
+
set content(arg0) {
|
|
1361
|
+
wasm.__wbg_set_wasmencodedcontent_content(this.__wbg_ptr, arg0);
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* @param {WasmContentTypeId | undefined} type
|
|
1365
|
+
* @param {any} parameters
|
|
1366
|
+
* @param {string | undefined} fallback
|
|
1367
|
+
* @param {number | undefined} compression
|
|
1368
|
+
* @param {Uint8Array} content
|
|
1369
|
+
*/
|
|
1370
|
+
constructor(type, parameters, fallback, compression, content) {
|
|
1371
|
+
let ptr0 = 0;
|
|
1372
|
+
if (!isLikeNone(type)) {
|
|
1373
|
+
_assertClass(type, WasmContentTypeId);
|
|
1374
|
+
ptr0 = type.__destroy_into_raw();
|
|
1375
|
+
}
|
|
1376
|
+
var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1377
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1378
|
+
const ret = wasm.wasmencodedcontent_new(ptr0, parameters, ptr1, len1, !isLikeNone(compression), isLikeNone(compression) ? 0 : compression, content);
|
|
1379
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1380
|
+
WasmEncodedContentFinalization.register(this, this.__wbg_ptr, this);
|
|
1381
|
+
return this;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
const WasmGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1386
|
+
? { register: () => {}, unregister: () => {} }
|
|
1387
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgroup_free(ptr >>> 0, 1));
|
|
1388
|
+
|
|
1389
|
+
export class WasmGroup {
|
|
1390
|
+
|
|
1391
|
+
static __wrap(ptr) {
|
|
1392
|
+
ptr = ptr >>> 0;
|
|
1393
|
+
const obj = Object.create(WasmGroup.prototype);
|
|
1394
|
+
obj.__wbg_ptr = ptr;
|
|
1395
|
+
WasmGroupFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1396
|
+
return obj;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
__destroy_into_raw() {
|
|
1400
|
+
const ptr = this.__wbg_ptr;
|
|
1401
|
+
this.__wbg_ptr = 0;
|
|
1402
|
+
WasmGroupFinalization.unregister(this);
|
|
1403
|
+
return ptr;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
free() {
|
|
1407
|
+
const ptr = this.__destroy_into_raw();
|
|
1408
|
+
wasm.__wbg_wasmgroup_free(ptr, 0);
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* @returns {string}
|
|
1412
|
+
*/
|
|
1413
|
+
id() {
|
|
1414
|
+
let deferred1_0;
|
|
1415
|
+
let deferred1_1;
|
|
1416
|
+
try {
|
|
1417
|
+
const ret = wasm.wasmgroup_id(this.__wbg_ptr);
|
|
1418
|
+
deferred1_0 = ret[0];
|
|
1419
|
+
deferred1_1 = ret[1];
|
|
1420
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1421
|
+
} finally {
|
|
1422
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @param {WasmEncodedContent} encoded_content
|
|
1427
|
+
* @returns {Promise<string>}
|
|
1428
|
+
*/
|
|
1429
|
+
send(encoded_content) {
|
|
1430
|
+
_assertClass(encoded_content, WasmEncodedContent);
|
|
1431
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
1432
|
+
const ret = wasm.wasmgroup_send(this.__wbg_ptr, ptr0);
|
|
1433
|
+
return ret;
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* send a message without immediately publishing to the delivery service.
|
|
1437
|
+
* @param {WasmEncodedContent} encoded_content
|
|
1438
|
+
* @returns {string}
|
|
1439
|
+
*/
|
|
1440
|
+
send_optimistic(encoded_content) {
|
|
1441
|
+
let deferred3_0;
|
|
1442
|
+
let deferred3_1;
|
|
1443
|
+
try {
|
|
1444
|
+
_assertClass(encoded_content, WasmEncodedContent);
|
|
1445
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
1446
|
+
const ret = wasm.wasmgroup_send_optimistic(this.__wbg_ptr, ptr0);
|
|
1447
|
+
var ptr2 = ret[0];
|
|
1448
|
+
var len2 = ret[1];
|
|
1449
|
+
if (ret[3]) {
|
|
1450
|
+
ptr2 = 0; len2 = 0;
|
|
1451
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1452
|
+
}
|
|
1453
|
+
deferred3_0 = ptr2;
|
|
1454
|
+
deferred3_1 = len2;
|
|
1455
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1456
|
+
} finally {
|
|
1457
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Publish all unpublished messages
|
|
1462
|
+
* @returns {Promise<void>}
|
|
1463
|
+
*/
|
|
1464
|
+
publish_messages() {
|
|
1465
|
+
const ret = wasm.wasmgroup_publish_messages(this.__wbg_ptr);
|
|
1466
|
+
return ret;
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* @returns {Promise<void>}
|
|
1470
|
+
*/
|
|
1471
|
+
sync() {
|
|
1472
|
+
const ret = wasm.wasmgroup_sync(this.__wbg_ptr);
|
|
1473
|
+
return ret;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @param {WasmListMessagesOptions | undefined} [opts]
|
|
1477
|
+
* @returns {(WasmMessage)[]}
|
|
1478
|
+
*/
|
|
1479
|
+
find_messages(opts) {
|
|
1480
|
+
let ptr0 = 0;
|
|
1481
|
+
if (!isLikeNone(opts)) {
|
|
1482
|
+
_assertClass(opts, WasmListMessagesOptions);
|
|
1483
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1484
|
+
}
|
|
1485
|
+
const ret = wasm.wasmgroup_find_messages(this.__wbg_ptr, ptr0);
|
|
1486
|
+
if (ret[3]) {
|
|
1487
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1488
|
+
}
|
|
1489
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1490
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1491
|
+
return v2;
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* @returns {Promise<any>}
|
|
1495
|
+
*/
|
|
1496
|
+
list_members() {
|
|
1497
|
+
const ret = wasm.wasmgroup_list_members(this.__wbg_ptr);
|
|
1498
|
+
return ret;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* @returns {(string)[]}
|
|
1502
|
+
*/
|
|
1503
|
+
admin_list() {
|
|
1504
|
+
const ret = wasm.wasmgroup_admin_list(this.__wbg_ptr);
|
|
1505
|
+
if (ret[3]) {
|
|
1506
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1507
|
+
}
|
|
1508
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1509
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1510
|
+
return v1;
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* @returns {(string)[]}
|
|
1514
|
+
*/
|
|
1515
|
+
super_admin_list() {
|
|
1516
|
+
const ret = wasm.wasmgroup_super_admin_list(this.__wbg_ptr);
|
|
1517
|
+
if (ret[3]) {
|
|
1518
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1519
|
+
}
|
|
1520
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1521
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1522
|
+
return v1;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* @param {string} inbox_id
|
|
1526
|
+
* @returns {boolean}
|
|
1527
|
+
*/
|
|
1528
|
+
is_admin(inbox_id) {
|
|
1529
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1531
|
+
const ret = wasm.wasmgroup_is_admin(this.__wbg_ptr, ptr0, len0);
|
|
1532
|
+
if (ret[2]) {
|
|
1533
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1534
|
+
}
|
|
1535
|
+
return ret[0] !== 0;
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* @param {string} inbox_id
|
|
1539
|
+
* @returns {boolean}
|
|
1540
|
+
*/
|
|
1541
|
+
is_super_admin(inbox_id) {
|
|
1542
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1544
|
+
const ret = wasm.wasmgroup_is_super_admin(this.__wbg_ptr, ptr0, len0);
|
|
1545
|
+
if (ret[2]) {
|
|
1546
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1547
|
+
}
|
|
1548
|
+
return ret[0] !== 0;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* @param {(string)[]} account_addresses
|
|
1552
|
+
* @returns {Promise<void>}
|
|
1553
|
+
*/
|
|
1554
|
+
add_members(account_addresses) {
|
|
1555
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1556
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1557
|
+
const ret = wasm.wasmgroup_add_members(this.__wbg_ptr, ptr0, len0);
|
|
1558
|
+
return ret;
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* @param {string} inbox_id
|
|
1562
|
+
* @returns {Promise<void>}
|
|
1563
|
+
*/
|
|
1564
|
+
add_admin(inbox_id) {
|
|
1565
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1566
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1567
|
+
const ret = wasm.wasmgroup_add_admin(this.__wbg_ptr, ptr0, len0);
|
|
1568
|
+
return ret;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @param {string} inbox_id
|
|
1572
|
+
* @returns {Promise<void>}
|
|
1573
|
+
*/
|
|
1574
|
+
remove_admin(inbox_id) {
|
|
1575
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1577
|
+
const ret = wasm.wasmgroup_remove_admin(this.__wbg_ptr, ptr0, len0);
|
|
1578
|
+
return ret;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* @param {string} inbox_id
|
|
1582
|
+
* @returns {Promise<void>}
|
|
1583
|
+
*/
|
|
1584
|
+
add_super_admin(inbox_id) {
|
|
1585
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1587
|
+
const ret = wasm.wasmgroup_add_super_admin(this.__wbg_ptr, ptr0, len0);
|
|
1588
|
+
return ret;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* @param {string} inbox_id
|
|
1592
|
+
* @returns {Promise<void>}
|
|
1593
|
+
*/
|
|
1594
|
+
remove_super_admin(inbox_id) {
|
|
1595
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1596
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1597
|
+
const ret = wasm.wasmgroup_remove_super_admin(this.__wbg_ptr, ptr0, len0);
|
|
1598
|
+
return ret;
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @returns {WasmGroupPermissions}
|
|
1602
|
+
*/
|
|
1603
|
+
group_permissions() {
|
|
1604
|
+
const ret = wasm.wasmgroup_group_permissions(this.__wbg_ptr);
|
|
1605
|
+
if (ret[2]) {
|
|
1606
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1607
|
+
}
|
|
1608
|
+
return WasmGroupPermissions.__wrap(ret[0]);
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* @param {(string)[]} inbox_ids
|
|
1612
|
+
* @returns {Promise<void>}
|
|
1613
|
+
*/
|
|
1614
|
+
add_members_by_inbox_id(inbox_ids) {
|
|
1615
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1616
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1617
|
+
const ret = wasm.wasmgroup_add_members_by_inbox_id(this.__wbg_ptr, ptr0, len0);
|
|
1618
|
+
return ret;
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* @param {(string)[]} account_addresses
|
|
1622
|
+
* @returns {Promise<void>}
|
|
1623
|
+
*/
|
|
1624
|
+
remove_members(account_addresses) {
|
|
1625
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1626
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1627
|
+
const ret = wasm.wasmgroup_remove_members(this.__wbg_ptr, ptr0, len0);
|
|
1628
|
+
return ret;
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
* @param {(string)[]} inbox_ids
|
|
1632
|
+
* @returns {Promise<void>}
|
|
1633
|
+
*/
|
|
1634
|
+
remove_members_by_inbox_id(inbox_ids) {
|
|
1635
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1636
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1637
|
+
const ret = wasm.wasmgroup_remove_members_by_inbox_id(this.__wbg_ptr, ptr0, len0);
|
|
1638
|
+
return ret;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* @param {string} group_name
|
|
1642
|
+
* @returns {Promise<void>}
|
|
1643
|
+
*/
|
|
1644
|
+
update_group_name(group_name) {
|
|
1645
|
+
const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1646
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1647
|
+
const ret = wasm.wasmgroup_update_group_name(this.__wbg_ptr, ptr0, len0);
|
|
1648
|
+
return ret;
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* @returns {string}
|
|
1652
|
+
*/
|
|
1653
|
+
group_name() {
|
|
1654
|
+
let deferred2_0;
|
|
1655
|
+
let deferred2_1;
|
|
1656
|
+
try {
|
|
1657
|
+
const ret = wasm.wasmgroup_group_name(this.__wbg_ptr);
|
|
1658
|
+
var ptr1 = ret[0];
|
|
1659
|
+
var len1 = ret[1];
|
|
1660
|
+
if (ret[3]) {
|
|
1661
|
+
ptr1 = 0; len1 = 0;
|
|
1662
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1663
|
+
}
|
|
1664
|
+
deferred2_0 = ptr1;
|
|
1665
|
+
deferred2_1 = len1;
|
|
1666
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1667
|
+
} finally {
|
|
1668
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* @param {string} group_image_url_square
|
|
1673
|
+
* @returns {Promise<void>}
|
|
1674
|
+
*/
|
|
1675
|
+
update_group_image_url_square(group_image_url_square) {
|
|
1676
|
+
const ptr0 = passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1677
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1678
|
+
const ret = wasm.wasmgroup_update_group_image_url_square(this.__wbg_ptr, ptr0, len0);
|
|
1679
|
+
return ret;
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* @returns {string}
|
|
1683
|
+
*/
|
|
1684
|
+
group_image_url_square() {
|
|
1685
|
+
let deferred2_0;
|
|
1686
|
+
let deferred2_1;
|
|
1687
|
+
try {
|
|
1688
|
+
const ret = wasm.wasmgroup_group_image_url_square(this.__wbg_ptr);
|
|
1689
|
+
var ptr1 = ret[0];
|
|
1690
|
+
var len1 = ret[1];
|
|
1691
|
+
if (ret[3]) {
|
|
1692
|
+
ptr1 = 0; len1 = 0;
|
|
1693
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1694
|
+
}
|
|
1695
|
+
deferred2_0 = ptr1;
|
|
1696
|
+
deferred2_1 = len1;
|
|
1697
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1698
|
+
} finally {
|
|
1699
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* @param {string} group_description
|
|
1704
|
+
* @returns {Promise<void>}
|
|
1705
|
+
*/
|
|
1706
|
+
update_group_description(group_description) {
|
|
1707
|
+
const ptr0 = passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1708
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1709
|
+
const ret = wasm.wasmgroup_update_group_description(this.__wbg_ptr, ptr0, len0);
|
|
1710
|
+
return ret;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* @returns {string}
|
|
1714
|
+
*/
|
|
1715
|
+
group_description() {
|
|
1716
|
+
let deferred2_0;
|
|
1717
|
+
let deferred2_1;
|
|
1718
|
+
try {
|
|
1719
|
+
const ret = wasm.wasmgroup_group_description(this.__wbg_ptr);
|
|
1720
|
+
var ptr1 = ret[0];
|
|
1721
|
+
var len1 = ret[1];
|
|
1722
|
+
if (ret[3]) {
|
|
1723
|
+
ptr1 = 0; len1 = 0;
|
|
1724
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1725
|
+
}
|
|
1726
|
+
deferred2_0 = ptr1;
|
|
1727
|
+
deferred2_1 = len1;
|
|
1728
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1729
|
+
} finally {
|
|
1730
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* @param {string} pinned_frame_url
|
|
1735
|
+
* @returns {Promise<void>}
|
|
1736
|
+
*/
|
|
1737
|
+
update_group_pinned_frame_url(pinned_frame_url) {
|
|
1738
|
+
const ptr0 = passStringToWasm0(pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1739
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1740
|
+
const ret = wasm.wasmgroup_update_group_pinned_frame_url(this.__wbg_ptr, ptr0, len0);
|
|
1741
|
+
return ret;
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* @returns {string}
|
|
1745
|
+
*/
|
|
1746
|
+
group_pinned_frame_url() {
|
|
1747
|
+
let deferred2_0;
|
|
1748
|
+
let deferred2_1;
|
|
1749
|
+
try {
|
|
1750
|
+
const ret = wasm.wasmgroup_group_pinned_frame_url(this.__wbg_ptr);
|
|
1751
|
+
var ptr1 = ret[0];
|
|
1752
|
+
var len1 = ret[1];
|
|
1753
|
+
if (ret[3]) {
|
|
1754
|
+
ptr1 = 0; len1 = 0;
|
|
1755
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1756
|
+
}
|
|
1757
|
+
deferred2_0 = ptr1;
|
|
1758
|
+
deferred2_1 = len1;
|
|
1759
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1760
|
+
} finally {
|
|
1761
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* @returns {bigint}
|
|
1766
|
+
*/
|
|
1767
|
+
created_at_ns() {
|
|
1768
|
+
const ret = wasm.wasmgroup_created_at_ns(this.__wbg_ptr);
|
|
1769
|
+
return ret;
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* @returns {boolean}
|
|
1773
|
+
*/
|
|
1774
|
+
is_active() {
|
|
1775
|
+
const ret = wasm.wasmgroup_is_active(this.__wbg_ptr);
|
|
1776
|
+
if (ret[2]) {
|
|
1777
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1778
|
+
}
|
|
1779
|
+
return ret[0] !== 0;
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* @returns {string}
|
|
1783
|
+
*/
|
|
1784
|
+
added_by_inbox_id() {
|
|
1785
|
+
let deferred2_0;
|
|
1786
|
+
let deferred2_1;
|
|
1787
|
+
try {
|
|
1788
|
+
const ret = wasm.wasmgroup_added_by_inbox_id(this.__wbg_ptr);
|
|
1789
|
+
var ptr1 = ret[0];
|
|
1790
|
+
var len1 = ret[1];
|
|
1791
|
+
if (ret[3]) {
|
|
1792
|
+
ptr1 = 0; len1 = 0;
|
|
1793
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1794
|
+
}
|
|
1795
|
+
deferred2_0 = ptr1;
|
|
1796
|
+
deferred2_1 = len1;
|
|
1797
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1798
|
+
} finally {
|
|
1799
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @returns {WasmGroupMetadata}
|
|
1804
|
+
*/
|
|
1805
|
+
group_metadata() {
|
|
1806
|
+
const ret = wasm.wasmgroup_group_metadata(this.__wbg_ptr);
|
|
1807
|
+
if (ret[2]) {
|
|
1808
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1809
|
+
}
|
|
1810
|
+
return WasmGroupMetadata.__wrap(ret[0]);
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* @returns {WasmConsentState}
|
|
1814
|
+
*/
|
|
1815
|
+
consent_state() {
|
|
1816
|
+
const ret = wasm.wasmgroup_consent_state(this.__wbg_ptr);
|
|
1817
|
+
if (ret[2]) {
|
|
1818
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1819
|
+
}
|
|
1820
|
+
return ret[0];
|
|
1821
|
+
}
|
|
1822
|
+
/**
|
|
1823
|
+
* @param {WasmConsentState} state
|
|
1824
|
+
*/
|
|
1825
|
+
update_consent_state(state) {
|
|
1826
|
+
const ret = wasm.wasmgroup_update_consent_state(this.__wbg_ptr, state);
|
|
1827
|
+
if (ret[1]) {
|
|
1828
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
const WasmGroupMemberFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1834
|
+
? { register: () => {}, unregister: () => {} }
|
|
1835
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgroupmember_free(ptr >>> 0, 1));
|
|
1836
|
+
|
|
1837
|
+
export class WasmGroupMember {
|
|
1838
|
+
|
|
1839
|
+
__destroy_into_raw() {
|
|
1840
|
+
const ptr = this.__wbg_ptr;
|
|
1841
|
+
this.__wbg_ptr = 0;
|
|
1842
|
+
WasmGroupMemberFinalization.unregister(this);
|
|
1843
|
+
return ptr;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
free() {
|
|
1847
|
+
const ptr = this.__destroy_into_raw();
|
|
1848
|
+
wasm.__wbg_wasmgroupmember_free(ptr, 0);
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* @returns {string}
|
|
1852
|
+
*/
|
|
1853
|
+
get inbox_id() {
|
|
1854
|
+
let deferred1_0;
|
|
1855
|
+
let deferred1_1;
|
|
1856
|
+
try {
|
|
1857
|
+
const ret = wasm.__wbg_get_wasmgroupmember_inbox_id(this.__wbg_ptr);
|
|
1858
|
+
deferred1_0 = ret[0];
|
|
1859
|
+
deferred1_1 = ret[1];
|
|
1860
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1861
|
+
} finally {
|
|
1862
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
/**
|
|
1866
|
+
* @param {string} arg0
|
|
1867
|
+
*/
|
|
1868
|
+
set inbox_id(arg0) {
|
|
1869
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1870
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1871
|
+
wasm.__wbg_set_wasmconsent_entity(this.__wbg_ptr, ptr0, len0);
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* @returns {(string)[]}
|
|
1875
|
+
*/
|
|
1876
|
+
get account_addresses() {
|
|
1877
|
+
const ret = wasm.__wbg_get_wasmgroupmember_account_addresses(this.__wbg_ptr);
|
|
1878
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1879
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1880
|
+
return v1;
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* @param {(string)[]} arg0
|
|
1884
|
+
*/
|
|
1885
|
+
set account_addresses(arg0) {
|
|
1886
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1887
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1888
|
+
wasm.__wbg_set_wasmgroupmember_account_addresses(this.__wbg_ptr, ptr0, len0);
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* @returns {(string)[]}
|
|
1892
|
+
*/
|
|
1893
|
+
get installation_ids() {
|
|
1894
|
+
const ret = wasm.__wbg_get_wasmgroupmember_installation_ids(this.__wbg_ptr);
|
|
1895
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1896
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1897
|
+
return v1;
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* @param {(string)[]} arg0
|
|
1901
|
+
*/
|
|
1902
|
+
set installation_ids(arg0) {
|
|
1903
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1904
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1905
|
+
wasm.__wbg_set_wasmgroupmember_installation_ids(this.__wbg_ptr, ptr0, len0);
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* @returns {WasmPermissionLevel}
|
|
1909
|
+
*/
|
|
1910
|
+
get permission_level() {
|
|
1911
|
+
const ret = wasm.__wbg_get_wasmgroupmember_permission_level(this.__wbg_ptr);
|
|
1912
|
+
return ret;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* @param {WasmPermissionLevel} arg0
|
|
1916
|
+
*/
|
|
1917
|
+
set permission_level(arg0) {
|
|
1918
|
+
wasm.__wbg_set_wasmgroupmember_permission_level(this.__wbg_ptr, arg0);
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
* @returns {WasmConsentState}
|
|
1922
|
+
*/
|
|
1923
|
+
get consent_state() {
|
|
1924
|
+
const ret = wasm.__wbg_get_wasmgroupmember_consent_state(this.__wbg_ptr);
|
|
1925
|
+
return ret;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* @param {WasmConsentState} arg0
|
|
1929
|
+
*/
|
|
1930
|
+
set consent_state(arg0) {
|
|
1931
|
+
wasm.__wbg_set_wasmgroupmember_consent_state(this.__wbg_ptr, arg0);
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* @param {string} inbox_id
|
|
1935
|
+
* @param {(string)[]} account_addresses
|
|
1936
|
+
* @param {(string)[]} installation_ids
|
|
1937
|
+
* @param {WasmPermissionLevel} permission_level
|
|
1938
|
+
* @param {WasmConsentState} consent_state
|
|
1939
|
+
*/
|
|
1940
|
+
constructor(inbox_id, account_addresses, installation_ids, permission_level, consent_state) {
|
|
1941
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1942
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1943
|
+
const ptr1 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1944
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1945
|
+
const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1946
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1947
|
+
const ret = wasm.wasmgroupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permission_level, consent_state);
|
|
1948
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1949
|
+
WasmGroupMemberFinalization.register(this, this.__wbg_ptr, this);
|
|
1950
|
+
return this;
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
const WasmGroupMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1955
|
+
? { register: () => {}, unregister: () => {} }
|
|
1956
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgroupmetadata_free(ptr >>> 0, 1));
|
|
1957
|
+
|
|
1958
|
+
export class WasmGroupMetadata {
|
|
1959
|
+
|
|
1960
|
+
static __wrap(ptr) {
|
|
1961
|
+
ptr = ptr >>> 0;
|
|
1962
|
+
const obj = Object.create(WasmGroupMetadata.prototype);
|
|
1963
|
+
obj.__wbg_ptr = ptr;
|
|
1964
|
+
WasmGroupMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1965
|
+
return obj;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
__destroy_into_raw() {
|
|
1969
|
+
const ptr = this.__wbg_ptr;
|
|
1970
|
+
this.__wbg_ptr = 0;
|
|
1971
|
+
WasmGroupMetadataFinalization.unregister(this);
|
|
1972
|
+
return ptr;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
free() {
|
|
1976
|
+
const ptr = this.__destroy_into_raw();
|
|
1977
|
+
wasm.__wbg_wasmgroupmetadata_free(ptr, 0);
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* @returns {string}
|
|
1981
|
+
*/
|
|
1982
|
+
creator_inbox_id() {
|
|
1983
|
+
let deferred1_0;
|
|
1984
|
+
let deferred1_1;
|
|
1985
|
+
try {
|
|
1986
|
+
const ret = wasm.wasmgroupmetadata_creator_inbox_id(this.__wbg_ptr);
|
|
1987
|
+
deferred1_0 = ret[0];
|
|
1988
|
+
deferred1_1 = ret[1];
|
|
1989
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1990
|
+
} finally {
|
|
1991
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* @returns {string}
|
|
1996
|
+
*/
|
|
1997
|
+
conversation_type() {
|
|
1998
|
+
let deferred1_0;
|
|
1999
|
+
let deferred1_1;
|
|
2000
|
+
try {
|
|
2001
|
+
const ret = wasm.wasmgroupmetadata_conversation_type(this.__wbg_ptr);
|
|
2002
|
+
deferred1_0 = ret[0];
|
|
2003
|
+
deferred1_1 = ret[1];
|
|
2004
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2005
|
+
} finally {
|
|
2006
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
const WasmGroupPermissionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2012
|
+
? { register: () => {}, unregister: () => {} }
|
|
2013
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgrouppermissions_free(ptr >>> 0, 1));
|
|
2014
|
+
|
|
2015
|
+
export class WasmGroupPermissions {
|
|
2016
|
+
|
|
2017
|
+
static __wrap(ptr) {
|
|
2018
|
+
ptr = ptr >>> 0;
|
|
2019
|
+
const obj = Object.create(WasmGroupPermissions.prototype);
|
|
2020
|
+
obj.__wbg_ptr = ptr;
|
|
2021
|
+
WasmGroupPermissionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2022
|
+
return obj;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
__destroy_into_raw() {
|
|
2026
|
+
const ptr = this.__wbg_ptr;
|
|
2027
|
+
this.__wbg_ptr = 0;
|
|
2028
|
+
WasmGroupPermissionsFinalization.unregister(this);
|
|
2029
|
+
return ptr;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
free() {
|
|
2033
|
+
const ptr = this.__destroy_into_raw();
|
|
2034
|
+
wasm.__wbg_wasmgrouppermissions_free(ptr, 0);
|
|
2035
|
+
}
|
|
2036
|
+
/**
|
|
2037
|
+
* @returns {WasmGroupPermissionsOptions}
|
|
2038
|
+
*/
|
|
2039
|
+
policy_type() {
|
|
2040
|
+
const ret = wasm.wasmgrouppermissions_policy_type(this.__wbg_ptr);
|
|
2041
|
+
if (ret[2]) {
|
|
2042
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2043
|
+
}
|
|
2044
|
+
return ret[0];
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* @returns {WasmPermissionPolicySet}
|
|
2048
|
+
*/
|
|
2049
|
+
policy_set() {
|
|
2050
|
+
const ret = wasm.wasmgrouppermissions_policy_set(this.__wbg_ptr);
|
|
2051
|
+
if (ret[2]) {
|
|
2052
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2053
|
+
}
|
|
2054
|
+
return WasmPermissionPolicySet.__wrap(ret[0]);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
const WasmInboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2059
|
+
? { register: () => {}, unregister: () => {} }
|
|
2060
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasminboxstate_free(ptr >>> 0, 1));
|
|
2061
|
+
|
|
2062
|
+
export class WasmInboxState {
|
|
2063
|
+
|
|
2064
|
+
static __wrap(ptr) {
|
|
2065
|
+
ptr = ptr >>> 0;
|
|
2066
|
+
const obj = Object.create(WasmInboxState.prototype);
|
|
2067
|
+
obj.__wbg_ptr = ptr;
|
|
2068
|
+
WasmInboxStateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2069
|
+
return obj;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
__destroy_into_raw() {
|
|
2073
|
+
const ptr = this.__wbg_ptr;
|
|
2074
|
+
this.__wbg_ptr = 0;
|
|
2075
|
+
WasmInboxStateFinalization.unregister(this);
|
|
2076
|
+
return ptr;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
free() {
|
|
2080
|
+
const ptr = this.__destroy_into_raw();
|
|
2081
|
+
wasm.__wbg_wasminboxstate_free(ptr, 0);
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* @returns {string}
|
|
2085
|
+
*/
|
|
2086
|
+
get inbox_id() {
|
|
2087
|
+
let deferred1_0;
|
|
2088
|
+
let deferred1_1;
|
|
2089
|
+
try {
|
|
2090
|
+
const ret = wasm.__wbg_get_wasminboxstate_inbox_id(this.__wbg_ptr);
|
|
2091
|
+
deferred1_0 = ret[0];
|
|
2092
|
+
deferred1_1 = ret[1];
|
|
2093
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2094
|
+
} finally {
|
|
2095
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* @param {string} arg0
|
|
2100
|
+
*/
|
|
2101
|
+
set inbox_id(arg0) {
|
|
2102
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2103
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2104
|
+
wasm.__wbg_set_wasmconsent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2105
|
+
}
|
|
2106
|
+
/**
|
|
2107
|
+
* @returns {string}
|
|
2108
|
+
*/
|
|
2109
|
+
get recovery_address() {
|
|
2110
|
+
let deferred1_0;
|
|
2111
|
+
let deferred1_1;
|
|
2112
|
+
try {
|
|
2113
|
+
const ret = wasm.__wbg_get_wasminboxstate_recovery_address(this.__wbg_ptr);
|
|
2114
|
+
deferred1_0 = ret[0];
|
|
2115
|
+
deferred1_1 = ret[1];
|
|
2116
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2117
|
+
} finally {
|
|
2118
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
/**
|
|
2122
|
+
* @param {string} arg0
|
|
2123
|
+
*/
|
|
2124
|
+
set recovery_address(arg0) {
|
|
2125
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2126
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2127
|
+
wasm.__wbg_set_wasminboxstate_recovery_address(this.__wbg_ptr, ptr0, len0);
|
|
2128
|
+
}
|
|
2129
|
+
/**
|
|
2130
|
+
* @returns {(WasmInstallation)[]}
|
|
2131
|
+
*/
|
|
2132
|
+
get installations() {
|
|
2133
|
+
const ret = wasm.__wbg_get_wasminboxstate_installations(this.__wbg_ptr);
|
|
2134
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
2135
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2136
|
+
return v1;
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* @param {(WasmInstallation)[]} arg0
|
|
2140
|
+
*/
|
|
2141
|
+
set installations(arg0) {
|
|
2142
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2143
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2144
|
+
wasm.__wbg_set_wasminboxstate_installations(this.__wbg_ptr, ptr0, len0);
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* @returns {(string)[]}
|
|
2148
|
+
*/
|
|
2149
|
+
get account_addresses() {
|
|
2150
|
+
const ret = wasm.__wbg_get_wasminboxstate_account_addresses(this.__wbg_ptr);
|
|
2151
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
2152
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2153
|
+
return v1;
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* @param {(string)[]} arg0
|
|
2157
|
+
*/
|
|
2158
|
+
set account_addresses(arg0) {
|
|
2159
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2160
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2161
|
+
wasm.__wbg_set_wasminboxstate_account_addresses(this.__wbg_ptr, ptr0, len0);
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* @param {string} inbox_id
|
|
2165
|
+
* @param {string} recovery_address
|
|
2166
|
+
* @param {(WasmInstallation)[]} installations
|
|
2167
|
+
* @param {(string)[]} account_addresses
|
|
2168
|
+
*/
|
|
2169
|
+
constructor(inbox_id, recovery_address, installations, account_addresses) {
|
|
2170
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2171
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2172
|
+
const ptr1 = passStringToWasm0(recovery_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2173
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2174
|
+
const ptr2 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
2175
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2176
|
+
const ptr3 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
2177
|
+
const len3 = WASM_VECTOR_LEN;
|
|
2178
|
+
const ret = wasm.wasminboxstate_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2179
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2180
|
+
WasmInboxStateFinalization.register(this, this.__wbg_ptr, this);
|
|
2181
|
+
return this;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
const WasmInstallationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2186
|
+
? { register: () => {}, unregister: () => {} }
|
|
2187
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasminstallation_free(ptr >>> 0, 1));
|
|
2188
|
+
|
|
2189
|
+
export class WasmInstallation {
|
|
2190
|
+
|
|
2191
|
+
static __wrap(ptr) {
|
|
2192
|
+
ptr = ptr >>> 0;
|
|
2193
|
+
const obj = Object.create(WasmInstallation.prototype);
|
|
2194
|
+
obj.__wbg_ptr = ptr;
|
|
2195
|
+
WasmInstallationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2196
|
+
return obj;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
static __unwrap(jsValue) {
|
|
2200
|
+
if (!(jsValue instanceof WasmInstallation)) {
|
|
2201
|
+
return 0;
|
|
2202
|
+
}
|
|
2203
|
+
return jsValue.__destroy_into_raw();
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
__destroy_into_raw() {
|
|
2207
|
+
const ptr = this.__wbg_ptr;
|
|
2208
|
+
this.__wbg_ptr = 0;
|
|
2209
|
+
WasmInstallationFinalization.unregister(this);
|
|
2210
|
+
return ptr;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
free() {
|
|
2214
|
+
const ptr = this.__destroy_into_raw();
|
|
2215
|
+
wasm.__wbg_wasminstallation_free(ptr, 0);
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* @returns {string}
|
|
2219
|
+
*/
|
|
2220
|
+
get id() {
|
|
2221
|
+
let deferred1_0;
|
|
2222
|
+
let deferred1_1;
|
|
2223
|
+
try {
|
|
2224
|
+
const ret = wasm.__wbg_get_wasminstallation_id(this.__wbg_ptr);
|
|
2225
|
+
deferred1_0 = ret[0];
|
|
2226
|
+
deferred1_1 = ret[1];
|
|
2227
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2228
|
+
} finally {
|
|
2229
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
/**
|
|
2233
|
+
* @param {string} arg0
|
|
2234
|
+
*/
|
|
2235
|
+
set id(arg0) {
|
|
2236
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2237
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2238
|
+
wasm.__wbg_set_wasminstallation_id(this.__wbg_ptr, ptr0, len0);
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* @returns {bigint | undefined}
|
|
2242
|
+
*/
|
|
2243
|
+
get client_timestamp_ns() {
|
|
2244
|
+
const ret = wasm.__wbg_get_wasminstallation_client_timestamp_ns(this.__wbg_ptr);
|
|
2245
|
+
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* @param {bigint | undefined} [arg0]
|
|
2249
|
+
*/
|
|
2250
|
+
set client_timestamp_ns(arg0) {
|
|
2251
|
+
wasm.__wbg_set_wasminstallation_client_timestamp_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* @param {string} id
|
|
2255
|
+
* @param {bigint | undefined} [client_timestamp_ns]
|
|
2256
|
+
*/
|
|
2257
|
+
constructor(id, client_timestamp_ns) {
|
|
2258
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2259
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2260
|
+
const ret = wasm.wasminstallation_new(ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
|
|
2261
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2262
|
+
WasmInstallationFinalization.register(this, this.__wbg_ptr, this);
|
|
2263
|
+
return this;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
const WasmListConversationsOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2268
|
+
? { register: () => {}, unregister: () => {} }
|
|
2269
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlistconversationsoptions_free(ptr >>> 0, 1));
|
|
2270
|
+
|
|
2271
|
+
export class WasmListConversationsOptions {
|
|
2272
|
+
|
|
2273
|
+
__destroy_into_raw() {
|
|
2274
|
+
const ptr = this.__wbg_ptr;
|
|
2275
|
+
this.__wbg_ptr = 0;
|
|
2276
|
+
WasmListConversationsOptionsFinalization.unregister(this);
|
|
2277
|
+
return ptr;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
free() {
|
|
2281
|
+
const ptr = this.__destroy_into_raw();
|
|
2282
|
+
wasm.__wbg_wasmlistconversationsoptions_free(ptr, 0);
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* @returns {bigint | undefined}
|
|
2286
|
+
*/
|
|
2287
|
+
get created_after_ns() {
|
|
2288
|
+
const ret = wasm.__wbg_get_wasmlistconversationsoptions_created_after_ns(this.__wbg_ptr);
|
|
2289
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2290
|
+
}
|
|
2291
|
+
/**
|
|
2292
|
+
* @param {bigint | undefined} [arg0]
|
|
2293
|
+
*/
|
|
2294
|
+
set created_after_ns(arg0) {
|
|
2295
|
+
wasm.__wbg_set_wasmlistconversationsoptions_created_after_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2296
|
+
}
|
|
2297
|
+
/**
|
|
2298
|
+
* @returns {bigint | undefined}
|
|
2299
|
+
*/
|
|
2300
|
+
get created_before_ns() {
|
|
2301
|
+
const ret = wasm.__wbg_get_wasmlistconversationsoptions_created_before_ns(this.__wbg_ptr);
|
|
2302
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2303
|
+
}
|
|
2304
|
+
/**
|
|
2305
|
+
* @param {bigint | undefined} [arg0]
|
|
2306
|
+
*/
|
|
2307
|
+
set created_before_ns(arg0) {
|
|
2308
|
+
wasm.__wbg_set_wasmlistconversationsoptions_created_before_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* @returns {bigint | undefined}
|
|
2312
|
+
*/
|
|
2313
|
+
get limit() {
|
|
2314
|
+
const ret = wasm.__wbg_get_wasmlistconversationsoptions_limit(this.__wbg_ptr);
|
|
2315
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2316
|
+
}
|
|
2317
|
+
/**
|
|
2318
|
+
* @param {bigint | undefined} [arg0]
|
|
2319
|
+
*/
|
|
2320
|
+
set limit(arg0) {
|
|
2321
|
+
wasm.__wbg_set_wasmlistconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* @param {bigint | undefined} [created_after_ns]
|
|
2325
|
+
* @param {bigint | undefined} [created_before_ns]
|
|
2326
|
+
* @param {bigint | undefined} [limit]
|
|
2327
|
+
*/
|
|
2328
|
+
constructor(created_after_ns, created_before_ns, limit) {
|
|
2329
|
+
const ret = wasm.wasmlistconversationsoptions_new(!isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
|
|
2330
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2331
|
+
WasmListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2332
|
+
return this;
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
const WasmListMessagesOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2337
|
+
? { register: () => {}, unregister: () => {} }
|
|
2338
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlistmessagesoptions_free(ptr >>> 0, 1));
|
|
2339
|
+
|
|
2340
|
+
export class WasmListMessagesOptions {
|
|
2341
|
+
|
|
2342
|
+
__destroy_into_raw() {
|
|
2343
|
+
const ptr = this.__wbg_ptr;
|
|
2344
|
+
this.__wbg_ptr = 0;
|
|
2345
|
+
WasmListMessagesOptionsFinalization.unregister(this);
|
|
2346
|
+
return ptr;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
free() {
|
|
2350
|
+
const ptr = this.__destroy_into_raw();
|
|
2351
|
+
wasm.__wbg_wasmlistmessagesoptions_free(ptr, 0);
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* @returns {bigint | undefined}
|
|
2355
|
+
*/
|
|
2356
|
+
get sent_before_ns() {
|
|
2357
|
+
const ret = wasm.__wbg_get_wasmlistmessagesoptions_sent_before_ns(this.__wbg_ptr);
|
|
2358
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* @param {bigint | undefined} [arg0]
|
|
2362
|
+
*/
|
|
2363
|
+
set sent_before_ns(arg0) {
|
|
2364
|
+
wasm.__wbg_set_wasmlistconversationsoptions_created_after_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* @returns {bigint | undefined}
|
|
2368
|
+
*/
|
|
2369
|
+
get sent_after_ns() {
|
|
2370
|
+
const ret = wasm.__wbg_get_wasmlistmessagesoptions_sent_after_ns(this.__wbg_ptr);
|
|
2371
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
* @param {bigint | undefined} [arg0]
|
|
2375
|
+
*/
|
|
2376
|
+
set sent_after_ns(arg0) {
|
|
2377
|
+
wasm.__wbg_set_wasmlistconversationsoptions_created_before_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2378
|
+
}
|
|
2379
|
+
/**
|
|
2380
|
+
* @returns {bigint | undefined}
|
|
2381
|
+
*/
|
|
2382
|
+
get limit() {
|
|
2383
|
+
const ret = wasm.__wbg_get_wasmlistmessagesoptions_limit(this.__wbg_ptr);
|
|
2384
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2385
|
+
}
|
|
2386
|
+
/**
|
|
2387
|
+
* @param {bigint | undefined} [arg0]
|
|
2388
|
+
*/
|
|
2389
|
+
set limit(arg0) {
|
|
2390
|
+
wasm.__wbg_set_wasmlistconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* @returns {WasmDeliveryStatus | undefined}
|
|
2394
|
+
*/
|
|
2395
|
+
get delivery_status() {
|
|
2396
|
+
const ret = wasm.__wbg_get_wasmlistmessagesoptions_delivery_status(this.__wbg_ptr);
|
|
2397
|
+
return ret === 3 ? undefined : ret;
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* @param {WasmDeliveryStatus | undefined} [arg0]
|
|
2401
|
+
*/
|
|
2402
|
+
set delivery_status(arg0) {
|
|
2403
|
+
wasm.__wbg_set_wasmlistmessagesoptions_delivery_status(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
2404
|
+
}
|
|
2405
|
+
/**
|
|
2406
|
+
* @param {bigint | undefined} [sent_before_ns]
|
|
2407
|
+
* @param {bigint | undefined} [sent_after_ns]
|
|
2408
|
+
* @param {bigint | undefined} [limit]
|
|
2409
|
+
* @param {WasmDeliveryStatus | undefined} [delivery_status]
|
|
2410
|
+
*/
|
|
2411
|
+
constructor(sent_before_ns, sent_after_ns, limit, delivery_status) {
|
|
2412
|
+
const ret = wasm.wasmlistmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status);
|
|
2413
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2414
|
+
WasmListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2415
|
+
return this;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
const WasmMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2420
|
+
? { register: () => {}, unregister: () => {} }
|
|
2421
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmessage_free(ptr >>> 0, 1));
|
|
2422
|
+
|
|
2423
|
+
export class WasmMessage {
|
|
2424
|
+
|
|
2425
|
+
static __wrap(ptr) {
|
|
2426
|
+
ptr = ptr >>> 0;
|
|
2427
|
+
const obj = Object.create(WasmMessage.prototype);
|
|
2428
|
+
obj.__wbg_ptr = ptr;
|
|
2429
|
+
WasmMessageFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2430
|
+
return obj;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
__destroy_into_raw() {
|
|
2434
|
+
const ptr = this.__wbg_ptr;
|
|
2435
|
+
this.__wbg_ptr = 0;
|
|
2436
|
+
WasmMessageFinalization.unregister(this);
|
|
2437
|
+
return ptr;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
free() {
|
|
2441
|
+
const ptr = this.__destroy_into_raw();
|
|
2442
|
+
wasm.__wbg_wasmmessage_free(ptr, 0);
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* @returns {string}
|
|
2446
|
+
*/
|
|
2447
|
+
get id() {
|
|
2448
|
+
let deferred1_0;
|
|
2449
|
+
let deferred1_1;
|
|
2450
|
+
try {
|
|
2451
|
+
const ret = wasm.__wbg_get_wasmmessage_id(this.__wbg_ptr);
|
|
2452
|
+
deferred1_0 = ret[0];
|
|
2453
|
+
deferred1_1 = ret[1];
|
|
2454
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2455
|
+
} finally {
|
|
2456
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
/**
|
|
2460
|
+
* @param {string} arg0
|
|
2461
|
+
*/
|
|
2462
|
+
set id(arg0) {
|
|
2463
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2464
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2465
|
+
wasm.__wbg_set_wasmmessage_id(this.__wbg_ptr, ptr0, len0);
|
|
2466
|
+
}
|
|
2467
|
+
/**
|
|
2468
|
+
* @returns {bigint}
|
|
2469
|
+
*/
|
|
2470
|
+
get sent_at_ns() {
|
|
2471
|
+
const ret = wasm.__wbg_get_wasmmessage_sent_at_ns(this.__wbg_ptr);
|
|
2472
|
+
return ret;
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* @param {bigint} arg0
|
|
2476
|
+
*/
|
|
2477
|
+
set sent_at_ns(arg0) {
|
|
2478
|
+
wasm.__wbg_set_wasmmessage_sent_at_ns(this.__wbg_ptr, arg0);
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* @returns {string}
|
|
2482
|
+
*/
|
|
2483
|
+
get convo_id() {
|
|
2484
|
+
let deferred1_0;
|
|
2485
|
+
let deferred1_1;
|
|
2486
|
+
try {
|
|
2487
|
+
const ret = wasm.__wbg_get_wasmmessage_convo_id(this.__wbg_ptr);
|
|
2488
|
+
deferred1_0 = ret[0];
|
|
2489
|
+
deferred1_1 = ret[1];
|
|
2490
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2491
|
+
} finally {
|
|
2492
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
/**
|
|
2496
|
+
* @param {string} arg0
|
|
2497
|
+
*/
|
|
2498
|
+
set convo_id(arg0) {
|
|
2499
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2500
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2501
|
+
wasm.__wbg_set_wasmmessage_convo_id(this.__wbg_ptr, ptr0, len0);
|
|
2502
|
+
}
|
|
2503
|
+
/**
|
|
2504
|
+
* @returns {string}
|
|
2505
|
+
*/
|
|
2506
|
+
get sender_inbox_id() {
|
|
2507
|
+
let deferred1_0;
|
|
2508
|
+
let deferred1_1;
|
|
2509
|
+
try {
|
|
2510
|
+
const ret = wasm.__wbg_get_wasmmessage_sender_inbox_id(this.__wbg_ptr);
|
|
2511
|
+
deferred1_0 = ret[0];
|
|
2512
|
+
deferred1_1 = ret[1];
|
|
2513
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2514
|
+
} finally {
|
|
2515
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
/**
|
|
2519
|
+
* @param {string} arg0
|
|
2520
|
+
*/
|
|
2521
|
+
set sender_inbox_id(arg0) {
|
|
2522
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2523
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2524
|
+
wasm.__wbg_set_wasmmessage_sender_inbox_id(this.__wbg_ptr, ptr0, len0);
|
|
2525
|
+
}
|
|
2526
|
+
/**
|
|
2527
|
+
* @returns {WasmEncodedContent}
|
|
2528
|
+
*/
|
|
2529
|
+
get content() {
|
|
2530
|
+
const ret = wasm.__wbg_get_wasmmessage_content(this.__wbg_ptr);
|
|
2531
|
+
return WasmEncodedContent.__wrap(ret);
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2534
|
+
* @param {WasmEncodedContent} arg0
|
|
2535
|
+
*/
|
|
2536
|
+
set content(arg0) {
|
|
2537
|
+
_assertClass(arg0, WasmEncodedContent);
|
|
2538
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
2539
|
+
wasm.__wbg_set_wasmmessage_content(this.__wbg_ptr, ptr0);
|
|
2540
|
+
}
|
|
2541
|
+
/**
|
|
2542
|
+
* @returns {WasmGroupMessageKind}
|
|
2543
|
+
*/
|
|
2544
|
+
get kind() {
|
|
2545
|
+
const ret = wasm.__wbg_get_wasmmessage_kind(this.__wbg_ptr);
|
|
2546
|
+
return ret;
|
|
2547
|
+
}
|
|
2548
|
+
/**
|
|
2549
|
+
* @param {WasmGroupMessageKind} arg0
|
|
2550
|
+
*/
|
|
2551
|
+
set kind(arg0) {
|
|
2552
|
+
wasm.__wbg_set_wasmmessage_kind(this.__wbg_ptr, arg0);
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* @returns {WasmDeliveryStatus}
|
|
2556
|
+
*/
|
|
2557
|
+
get delivery_status() {
|
|
2558
|
+
const ret = wasm.__wbg_get_wasmmessage_delivery_status(this.__wbg_ptr);
|
|
2559
|
+
return ret;
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
* @param {WasmDeliveryStatus} arg0
|
|
2563
|
+
*/
|
|
2564
|
+
set delivery_status(arg0) {
|
|
2565
|
+
wasm.__wbg_set_wasmmessage_delivery_status(this.__wbg_ptr, arg0);
|
|
2566
|
+
}
|
|
2567
|
+
/**
|
|
2568
|
+
* @param {string} id
|
|
2569
|
+
* @param {bigint} sent_at_ns
|
|
2570
|
+
* @param {string} convo_id
|
|
2571
|
+
* @param {string} sender_inbox_id
|
|
2572
|
+
* @param {WasmEncodedContent} content
|
|
2573
|
+
* @param {WasmGroupMessageKind} kind
|
|
2574
|
+
* @param {WasmDeliveryStatus} delivery_status
|
|
2575
|
+
*/
|
|
2576
|
+
constructor(id, sent_at_ns, convo_id, sender_inbox_id, content, kind, delivery_status) {
|
|
2577
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2578
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2579
|
+
const ptr1 = passStringToWasm0(convo_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2580
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2581
|
+
const ptr2 = passStringToWasm0(sender_inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2582
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2583
|
+
_assertClass(content, WasmEncodedContent);
|
|
2584
|
+
var ptr3 = content.__destroy_into_raw();
|
|
2585
|
+
const ret = wasm.wasmmessage_new(ptr0, len0, sent_at_ns, ptr1, len1, ptr2, len2, ptr3, kind, delivery_status);
|
|
2586
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2587
|
+
WasmMessageFinalization.register(this, this.__wbg_ptr, this);
|
|
2588
|
+
return this;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
const WasmPermissionPolicySetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2593
|
+
? { register: () => {}, unregister: () => {} }
|
|
2594
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpermissionpolicyset_free(ptr >>> 0, 1));
|
|
2595
|
+
|
|
2596
|
+
export class WasmPermissionPolicySet {
|
|
2597
|
+
|
|
2598
|
+
static __wrap(ptr) {
|
|
2599
|
+
ptr = ptr >>> 0;
|
|
2600
|
+
const obj = Object.create(WasmPermissionPolicySet.prototype);
|
|
2601
|
+
obj.__wbg_ptr = ptr;
|
|
2602
|
+
WasmPermissionPolicySetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2603
|
+
return obj;
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
__destroy_into_raw() {
|
|
2607
|
+
const ptr = this.__wbg_ptr;
|
|
2608
|
+
this.__wbg_ptr = 0;
|
|
2609
|
+
WasmPermissionPolicySetFinalization.unregister(this);
|
|
2610
|
+
return ptr;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
free() {
|
|
2614
|
+
const ptr = this.__destroy_into_raw();
|
|
2615
|
+
wasm.__wbg_wasmpermissionpolicyset_free(ptr, 0);
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* @returns {WasmPermissionPolicy}
|
|
2619
|
+
*/
|
|
2620
|
+
get add_member_policy() {
|
|
2621
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_add_member_policy(this.__wbg_ptr);
|
|
2622
|
+
return ret;
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2626
|
+
*/
|
|
2627
|
+
set add_member_policy(arg0) {
|
|
2628
|
+
wasm.__wbg_set_wasmpermissionpolicyset_add_member_policy(this.__wbg_ptr, arg0);
|
|
2629
|
+
}
|
|
2630
|
+
/**
|
|
2631
|
+
* @returns {WasmPermissionPolicy}
|
|
2632
|
+
*/
|
|
2633
|
+
get remove_member_policy() {
|
|
2634
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_remove_member_policy(this.__wbg_ptr);
|
|
2635
|
+
return ret;
|
|
2636
|
+
}
|
|
2637
|
+
/**
|
|
2638
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2639
|
+
*/
|
|
2640
|
+
set remove_member_policy(arg0) {
|
|
2641
|
+
wasm.__wbg_set_wasmpermissionpolicyset_remove_member_policy(this.__wbg_ptr, arg0);
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* @returns {WasmPermissionPolicy}
|
|
2645
|
+
*/
|
|
2646
|
+
get add_admin_policy() {
|
|
2647
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_add_admin_policy(this.__wbg_ptr);
|
|
2648
|
+
return ret;
|
|
2649
|
+
}
|
|
2650
|
+
/**
|
|
2651
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2652
|
+
*/
|
|
2653
|
+
set add_admin_policy(arg0) {
|
|
2654
|
+
wasm.__wbg_set_wasmpermissionpolicyset_add_admin_policy(this.__wbg_ptr, arg0);
|
|
2655
|
+
}
|
|
2656
|
+
/**
|
|
2657
|
+
* @returns {WasmPermissionPolicy}
|
|
2658
|
+
*/
|
|
2659
|
+
get remove_admin_policy() {
|
|
2660
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_remove_admin_policy(this.__wbg_ptr);
|
|
2661
|
+
return ret;
|
|
2662
|
+
}
|
|
2663
|
+
/**
|
|
2664
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2665
|
+
*/
|
|
2666
|
+
set remove_admin_policy(arg0) {
|
|
2667
|
+
wasm.__wbg_set_wasmpermissionpolicyset_remove_admin_policy(this.__wbg_ptr, arg0);
|
|
2668
|
+
}
|
|
2669
|
+
/**
|
|
2670
|
+
* @returns {WasmPermissionPolicy}
|
|
2671
|
+
*/
|
|
2672
|
+
get update_group_name_policy() {
|
|
2673
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_update_group_name_policy(this.__wbg_ptr);
|
|
2674
|
+
return ret;
|
|
2675
|
+
}
|
|
2676
|
+
/**
|
|
2677
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2678
|
+
*/
|
|
2679
|
+
set update_group_name_policy(arg0) {
|
|
2680
|
+
wasm.__wbg_set_wasmpermissionpolicyset_update_group_name_policy(this.__wbg_ptr, arg0);
|
|
2681
|
+
}
|
|
2682
|
+
/**
|
|
2683
|
+
* @returns {WasmPermissionPolicy}
|
|
2684
|
+
*/
|
|
2685
|
+
get update_group_description_policy() {
|
|
2686
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_update_group_description_policy(this.__wbg_ptr);
|
|
2687
|
+
return ret;
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2691
|
+
*/
|
|
2692
|
+
set update_group_description_policy(arg0) {
|
|
2693
|
+
wasm.__wbg_set_wasmpermissionpolicyset_update_group_description_policy(this.__wbg_ptr, arg0);
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
* @returns {WasmPermissionPolicy}
|
|
2697
|
+
*/
|
|
2698
|
+
get update_group_image_url_square_policy() {
|
|
2699
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_update_group_image_url_square_policy(this.__wbg_ptr);
|
|
2700
|
+
return ret;
|
|
2701
|
+
}
|
|
2702
|
+
/**
|
|
2703
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2704
|
+
*/
|
|
2705
|
+
set update_group_image_url_square_policy(arg0) {
|
|
2706
|
+
wasm.__wbg_set_wasmpermissionpolicyset_update_group_image_url_square_policy(this.__wbg_ptr, arg0);
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* @returns {WasmPermissionPolicy}
|
|
2710
|
+
*/
|
|
2711
|
+
get update_group_pinned_frame_url_policy() {
|
|
2712
|
+
const ret = wasm.__wbg_get_wasmpermissionpolicyset_update_group_pinned_frame_url_policy(this.__wbg_ptr);
|
|
2713
|
+
return ret;
|
|
2714
|
+
}
|
|
2715
|
+
/**
|
|
2716
|
+
* @param {WasmPermissionPolicy} arg0
|
|
2717
|
+
*/
|
|
2718
|
+
set update_group_pinned_frame_url_policy(arg0) {
|
|
2719
|
+
wasm.__wbg_set_wasmpermissionpolicyset_update_group_pinned_frame_url_policy(this.__wbg_ptr, arg0);
|
|
2720
|
+
}
|
|
2721
|
+
/**
|
|
2722
|
+
* @param {WasmPermissionPolicy} add_member_policy
|
|
2723
|
+
* @param {WasmPermissionPolicy} remove_member_policy
|
|
2724
|
+
* @param {WasmPermissionPolicy} add_admin_policy
|
|
2725
|
+
* @param {WasmPermissionPolicy} remove_admin_policy
|
|
2726
|
+
* @param {WasmPermissionPolicy} update_group_name_policy
|
|
2727
|
+
* @param {WasmPermissionPolicy} update_group_description_policy
|
|
2728
|
+
* @param {WasmPermissionPolicy} update_group_image_url_square_policy
|
|
2729
|
+
* @param {WasmPermissionPolicy} update_group_pinned_frame_url_policy
|
|
2730
|
+
*/
|
|
2731
|
+
constructor(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy) {
|
|
2732
|
+
const ret = wasm.wasmpermissionpolicyset_new(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy);
|
|
2733
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2734
|
+
WasmPermissionPolicySetFinalization.register(this, this.__wbg_ptr, this);
|
|
2735
|
+
return this;
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
async function __wbg_load(module, imports) {
|
|
2740
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
2741
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2742
|
+
try {
|
|
2743
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2744
|
+
|
|
2745
|
+
} catch (e) {
|
|
2746
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
2747
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
2748
|
+
|
|
2749
|
+
} else {
|
|
2750
|
+
throw e;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
const bytes = await module.arrayBuffer();
|
|
2756
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
2757
|
+
|
|
2758
|
+
} else {
|
|
2759
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
2760
|
+
|
|
2761
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
2762
|
+
return { instance, module };
|
|
2763
|
+
|
|
2764
|
+
} else {
|
|
2765
|
+
return instance;
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
function __wbg_get_imports() {
|
|
2771
|
+
const imports = {};
|
|
2772
|
+
imports.wbg = {};
|
|
2773
|
+
imports.wbg.__wbg_initmodule_6df8583bfed9380b = function(arg0) {
|
|
2774
|
+
const ret = SQLite.init_module(arg0);
|
|
2775
|
+
return ret;
|
|
2776
|
+
};
|
|
2777
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2778
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2779
|
+
return ret;
|
|
2780
|
+
};
|
|
2781
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2782
|
+
const ret = arg0;
|
|
2783
|
+
return ret;
|
|
2784
|
+
};
|
|
2785
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2786
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2787
|
+
return ret;
|
|
2788
|
+
};
|
|
2789
|
+
imports.wbg.__wbg_wasminstallation_new = function(arg0) {
|
|
2790
|
+
const ret = WasmInstallation.__wrap(arg0);
|
|
2791
|
+
return ret;
|
|
2792
|
+
};
|
|
2793
|
+
imports.wbg.__wbg_wasmgroup_new = function(arg0) {
|
|
2794
|
+
const ret = WasmGroup.__wrap(arg0);
|
|
2795
|
+
return ret;
|
|
2796
|
+
};
|
|
2797
|
+
imports.wbg.__wbg_wasminboxstate_new = function(arg0) {
|
|
2798
|
+
const ret = WasmInboxState.__wrap(arg0);
|
|
2799
|
+
return ret;
|
|
2800
|
+
};
|
|
2801
|
+
imports.wbg.__wbg_wasmmessage_new = function(arg0) {
|
|
2802
|
+
const ret = WasmMessage.__wrap(arg0);
|
|
2803
|
+
return ret;
|
|
2804
|
+
};
|
|
2805
|
+
imports.wbg.__wbg_wasmclient_new = function(arg0) {
|
|
2806
|
+
const ret = WasmClient.__wrap(arg0);
|
|
2807
|
+
return ret;
|
|
2808
|
+
};
|
|
2809
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2810
|
+
const ret = arg0 === undefined;
|
|
2811
|
+
return ret;
|
|
2812
|
+
};
|
|
2813
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2814
|
+
const ret = arg0 in arg1;
|
|
2815
|
+
return ret;
|
|
2816
|
+
};
|
|
2817
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2818
|
+
const obj = arg1;
|
|
2819
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2820
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2821
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2822
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2823
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2824
|
+
};
|
|
2825
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2826
|
+
const val = arg0;
|
|
2827
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2828
|
+
return ret;
|
|
2829
|
+
};
|
|
2830
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
2831
|
+
const obj = arg1;
|
|
2832
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2833
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2834
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2835
|
+
};
|
|
2836
|
+
imports.wbg.__wbg_wasmconsent_unwrap = function(arg0) {
|
|
2837
|
+
const ret = WasmConsent.__unwrap(arg0);
|
|
2838
|
+
return ret;
|
|
2839
|
+
};
|
|
2840
|
+
imports.wbg.__wbg_wasminstallation_unwrap = function(arg0) {
|
|
2841
|
+
const ret = WasmInstallation.__unwrap(arg0);
|
|
2842
|
+
return ret;
|
|
2843
|
+
};
|
|
2844
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2845
|
+
const ret = +arg0;
|
|
2846
|
+
return ret;
|
|
2847
|
+
};
|
|
2848
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2849
|
+
const obj = arg0.original;
|
|
2850
|
+
if (obj.cnt-- == 1) {
|
|
2851
|
+
obj.a = 0;
|
|
2852
|
+
return true;
|
|
2853
|
+
}
|
|
2854
|
+
const ret = false;
|
|
2855
|
+
return ret;
|
|
2856
|
+
};
|
|
2857
|
+
imports.wbg.__wbg_clearTimeout_541ac0980ffcef74 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
|
|
2858
|
+
imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(function (arg0, arg1) {
|
|
2859
|
+
const ret = setTimeout(arg0, arg1);
|
|
2860
|
+
return ret;
|
|
2861
|
+
}, arguments) };
|
|
2862
|
+
imports.wbg.__wbg_log_c9486ca5d8e2cbe8 = function(arg0, arg1) {
|
|
2863
|
+
let deferred0_0;
|
|
2864
|
+
let deferred0_1;
|
|
2865
|
+
try {
|
|
2866
|
+
deferred0_0 = arg0;
|
|
2867
|
+
deferred0_1 = arg1;
|
|
2868
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
2869
|
+
} finally {
|
|
2870
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
imports.wbg.__wbg_log_aba5996d9bde071f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2874
|
+
let deferred0_0;
|
|
2875
|
+
let deferred0_1;
|
|
2876
|
+
try {
|
|
2877
|
+
deferred0_0 = arg0;
|
|
2878
|
+
deferred0_1 = arg1;
|
|
2879
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2880
|
+
} finally {
|
|
2881
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
imports.wbg.__wbg_mark_40e050a77cc39fea = function(arg0, arg1) {
|
|
2885
|
+
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
2886
|
+
};
|
|
2887
|
+
imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2888
|
+
let deferred0_0;
|
|
2889
|
+
let deferred0_1;
|
|
2890
|
+
let deferred1_0;
|
|
2891
|
+
let deferred1_1;
|
|
2892
|
+
try {
|
|
2893
|
+
deferred0_0 = arg0;
|
|
2894
|
+
deferred0_1 = arg1;
|
|
2895
|
+
deferred1_0 = arg2;
|
|
2896
|
+
deferred1_1 = arg3;
|
|
2897
|
+
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2898
|
+
} finally {
|
|
2899
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2900
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2901
|
+
}
|
|
2902
|
+
}, arguments) };
|
|
2903
|
+
imports.wbg.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
2904
|
+
imports.wbg.__wbg_sqlite3_ae38011f61b040f1 = function(arg0) {
|
|
2905
|
+
const ret = arg0.sqlite3;
|
|
2906
|
+
return ret;
|
|
2907
|
+
};
|
|
2908
|
+
imports.wbg.__wbg_wasm_d435af5a2079512e = function(arg0) {
|
|
2909
|
+
const ret = arg0.wasm;
|
|
2910
|
+
return ret;
|
|
2911
|
+
};
|
|
2912
|
+
imports.wbg.__wbg_pstack_fc77b7165420650a = function(arg0) {
|
|
2913
|
+
const ret = arg0.pstack;
|
|
2914
|
+
return ret;
|
|
2915
|
+
};
|
|
2916
|
+
imports.wbg.__wbg_pointer_d3c7ebff6fec1c91 = function(arg0) {
|
|
2917
|
+
const ret = arg0.pointer;
|
|
2918
|
+
return ret;
|
|
2919
|
+
};
|
|
2920
|
+
imports.wbg.__wbg_alloc_3dc7f2dcc7f32fdb = function(arg0, arg1) {
|
|
2921
|
+
const ret = arg0.alloc(arg1 >>> 0);
|
|
2922
|
+
return ret;
|
|
2923
|
+
};
|
|
2924
|
+
imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
|
|
2925
|
+
const ret = arg0.alloc(arg1 >>> 0);
|
|
2926
|
+
return ret;
|
|
2927
|
+
};
|
|
2928
|
+
imports.wbg.__wbg_preparev3_b9722ce244c18dbc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2929
|
+
const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
|
|
2930
|
+
return ret;
|
|
2931
|
+
};
|
|
2932
|
+
imports.wbg.__wbg_peekPtr_a3eb6c43e8226b33 = function(arg0, arg1) {
|
|
2933
|
+
const ret = arg0.peekPtr(arg1);
|
|
2934
|
+
return ret;
|
|
2935
|
+
};
|
|
2936
|
+
imports.wbg.__wbg_restore_f0dcf7e42f529814 = function(arg0, arg1) {
|
|
2937
|
+
arg0.restore(arg1);
|
|
2938
|
+
};
|
|
2939
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
2940
|
+
const ret = arg0 === null;
|
|
2941
|
+
return ret;
|
|
2942
|
+
};
|
|
2943
|
+
imports.wbg.__wbg_alloc_12d3472bbd917658 = function(arg0) {
|
|
2944
|
+
const ret = arg0.alloc;
|
|
2945
|
+
return ret;
|
|
2946
|
+
};
|
|
2947
|
+
imports.wbg.__wbg_allocPtr_a9d5b0a7a6dfb5ab = function(arg0, arg1, arg2) {
|
|
2948
|
+
const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
|
|
2949
|
+
return ret;
|
|
2950
|
+
};
|
|
2951
|
+
imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
|
|
2952
|
+
const ret = arg0.impl(arg1 >>> 0);
|
|
2953
|
+
return ret;
|
|
2954
|
+
};
|
|
2955
|
+
imports.wbg.__wbg_bindnull_a579e45de8665932 = function(arg0, arg1, arg2) {
|
|
2956
|
+
const ret = arg0.bind_null(arg1, arg2);
|
|
2957
|
+
return ret;
|
|
2958
|
+
};
|
|
2959
|
+
imports.wbg.__wbg_bindtext_b0a790891eeafc66 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2960
|
+
const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
2961
|
+
return ret;
|
|
2962
|
+
};
|
|
2963
|
+
imports.wbg.__wbg_bindint_e1f4dcb68267a201 = function(arg0, arg1, arg2, arg3) {
|
|
2964
|
+
const ret = arg0.bind_int(arg1, arg2, arg3);
|
|
2965
|
+
return ret;
|
|
2966
|
+
};
|
|
2967
|
+
imports.wbg.__wbg_bindint64_4cb9d1672a18e57b = function(arg0, arg1, arg2, arg3) {
|
|
2968
|
+
const ret = arg0.bind_int64(arg1, arg2, arg3);
|
|
2969
|
+
return ret;
|
|
2970
|
+
};
|
|
2971
|
+
imports.wbg.__wbg_binddouble_1506f6b8c0c42d14 = function(arg0, arg1, arg2, arg3) {
|
|
2972
|
+
const ret = arg0.bind_double(arg1, arg2, arg3);
|
|
2973
|
+
return ret;
|
|
2974
|
+
};
|
|
2975
|
+
imports.wbg.__wbg_bindblob_f2a0872798d6b562 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2976
|
+
const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
2977
|
+
return ret;
|
|
2978
|
+
};
|
|
2979
|
+
imports.wbg.__wbg_dbhandle_9fa910514462f201 = function(arg0, arg1) {
|
|
2980
|
+
const ret = arg0.db_handle(arg1);
|
|
2981
|
+
return ret;
|
|
2982
|
+
};
|
|
2983
|
+
imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
|
|
2984
|
+
arg0.dealloc(arg1 >>> 0);
|
|
2985
|
+
};
|
|
2986
|
+
imports.wbg.__wbg_finalize_7ee740fba804fefe = function() { return handleError(function (arg0, arg1) {
|
|
2987
|
+
arg0.finalize(arg1);
|
|
2988
|
+
}, arguments) };
|
|
2989
|
+
imports.wbg.__wbg_reset_64daad59c50383d3 = function(arg0, arg1) {
|
|
2990
|
+
const ret = arg0.reset(arg1);
|
|
2991
|
+
return ret;
|
|
2992
|
+
};
|
|
2993
|
+
imports.wbg.__wbg_step_09504a247e0ba954 = function(arg0, arg1) {
|
|
2994
|
+
const ret = arg0.step(arg1);
|
|
2995
|
+
return ret;
|
|
2996
|
+
};
|
|
2997
|
+
imports.wbg.__wbg_columncount_da141db0617412dd = function(arg0, arg1) {
|
|
2998
|
+
const ret = arg0.column_count(arg1);
|
|
2999
|
+
return ret;
|
|
3000
|
+
};
|
|
3001
|
+
imports.wbg.__wbg_columnvalue_83d37aeaa7f4bef6 = function(arg0, arg1, arg2) {
|
|
3002
|
+
const ret = arg0.column_value(arg1, arg2);
|
|
3003
|
+
return ret;
|
|
3004
|
+
};
|
|
3005
|
+
imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
|
|
3006
|
+
const ret = new URL('snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
|
|
3007
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3008
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3009
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3010
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3011
|
+
};
|
|
3012
|
+
imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
|
|
3013
|
+
const ret = arg0.heap8u();
|
|
3014
|
+
return ret;
|
|
3015
|
+
};
|
|
3016
|
+
imports.wbg.__wbg_capi_74a1a04b4eb066db = function(arg0) {
|
|
3017
|
+
const ret = arg0.capi;
|
|
3018
|
+
return ret;
|
|
3019
|
+
};
|
|
3020
|
+
imports.wbg.__wbg_new_d2b35c9d7f4b1471 = function(arg0) {
|
|
3021
|
+
const ret = new SQLite(arg0);
|
|
3022
|
+
return ret;
|
|
3023
|
+
};
|
|
3024
|
+
imports.wbg.__wbg_version_7fb95c5a88d542ce = function(arg0) {
|
|
3025
|
+
const ret = arg0.version();
|
|
3026
|
+
return ret;
|
|
3027
|
+
};
|
|
3028
|
+
imports.wbg.__wbg_filename_9eb2d8c937e22432 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
3029
|
+
let deferred0_0;
|
|
3030
|
+
let deferred0_1;
|
|
3031
|
+
try {
|
|
3032
|
+
deferred0_0 = arg3;
|
|
3033
|
+
deferred0_1 = arg4;
|
|
3034
|
+
const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
|
|
3035
|
+
const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3036
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3037
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
|
|
3038
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
|
|
3039
|
+
} finally {
|
|
3040
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3041
|
+
}
|
|
3042
|
+
};
|
|
3043
|
+
imports.wbg.__wbg_errstr_5114edcda623dd5a = function(arg0, arg1, arg2) {
|
|
3044
|
+
const ret = arg1.errstr(arg2);
|
|
3045
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3046
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3047
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3048
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3049
|
+
};
|
|
3050
|
+
imports.wbg.__wbg_errmsg_43ea55533a3ea740 = function(arg0, arg1, arg2) {
|
|
3051
|
+
const ret = arg1.errmsg(arg2);
|
|
3052
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3053
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3054
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3055
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3056
|
+
};
|
|
3057
|
+
imports.wbg.__wbg_extendederrcode_2e0c706dd10fe107 = function(arg0, arg1) {
|
|
3058
|
+
const ret = arg0.extended_errcode(arg1);
|
|
3059
|
+
return ret;
|
|
3060
|
+
};
|
|
3061
|
+
imports.wbg.__wbg_valuedup_186941ef4d6d7d09 = function(arg0, arg1) {
|
|
3062
|
+
const ret = arg0.value_dup(arg1 >>> 0);
|
|
3063
|
+
return ret;
|
|
3064
|
+
};
|
|
3065
|
+
imports.wbg.__wbg_valueblob_80b0d28b673e9efc = function(arg0, arg1) {
|
|
3066
|
+
const ret = arg0.value_blob(arg1 >>> 0);
|
|
3067
|
+
return ret;
|
|
3068
|
+
};
|
|
3069
|
+
imports.wbg.__wbg_valuebytes_ae42a50aaa4db15e = function(arg0, arg1) {
|
|
3070
|
+
const ret = arg0.value_bytes(arg1 >>> 0);
|
|
3071
|
+
return ret;
|
|
3072
|
+
};
|
|
3073
|
+
imports.wbg.__wbg_valuefree_47295db839c6fbb4 = function(arg0, arg1) {
|
|
3074
|
+
arg0.value_free(arg1 >>> 0);
|
|
3075
|
+
};
|
|
3076
|
+
imports.wbg.__wbg_valueint_b4d6710e3940d2d0 = function(arg0, arg1) {
|
|
3077
|
+
const ret = arg0.value_int(arg1 >>> 0);
|
|
3078
|
+
return ret;
|
|
3079
|
+
};
|
|
3080
|
+
imports.wbg.__wbg_valueint64_89f223f9f63833ee = function(arg0, arg1) {
|
|
3081
|
+
const ret = arg0.value_int64(arg1 >>> 0);
|
|
3082
|
+
return ret;
|
|
3083
|
+
};
|
|
3084
|
+
imports.wbg.__wbg_valuetext_503dfdd35d1a5d23 = function(arg0, arg1, arg2) {
|
|
3085
|
+
const ret = arg1.value_text(arg2 >>> 0);
|
|
3086
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3087
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3088
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3089
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3090
|
+
};
|
|
3091
|
+
imports.wbg.__wbg_valuetype_10265d962173575d = function(arg0, arg1) {
|
|
3092
|
+
const ret = arg0.value_type(arg1 >>> 0);
|
|
3093
|
+
return ret;
|
|
3094
|
+
};
|
|
3095
|
+
imports.wbg.__wbg_open_630840f0e3bfa104 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3096
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
|
|
3097
|
+
return ret;
|
|
3098
|
+
}, arguments) };
|
|
3099
|
+
imports.wbg.__wbg_exec_891e7bcb242b8263 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3100
|
+
arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
|
|
3101
|
+
}, arguments) };
|
|
3102
|
+
imports.wbg.__wbg_changes_449e8e7adde4811b = function(arg0, arg1) {
|
|
3103
|
+
const ret = arg0.changes(arg1);
|
|
3104
|
+
return ret;
|
|
3105
|
+
};
|
|
3106
|
+
imports.wbg.__wbg_close_f1e03beafae72a1f = function(arg0, arg1) {
|
|
3107
|
+
const ret = arg0.close(arg1);
|
|
3108
|
+
return ret;
|
|
3109
|
+
};
|
|
3110
|
+
imports.wbg.__wbg_columnname_ff3aa78d6aa3c952 = function(arg0, arg1, arg2, arg3) {
|
|
3111
|
+
const ret = arg1.column_name(arg2, arg3);
|
|
3112
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3113
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3114
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3115
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3116
|
+
};
|
|
3117
|
+
imports.wbg.__wbg_registerdieselsqlfunctions_376c3851387d1a3a = function() { return handleError(function (arg0, arg1) {
|
|
3118
|
+
arg0.register_diesel_sql_functions(arg1);
|
|
3119
|
+
}, arguments) };
|
|
3120
|
+
imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
|
|
3121
|
+
let deferred0_0;
|
|
3122
|
+
let deferred0_1;
|
|
3123
|
+
try {
|
|
3124
|
+
deferred0_0 = arg1;
|
|
3125
|
+
deferred0_1 = arg2;
|
|
3126
|
+
const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
|
|
3127
|
+
return ret;
|
|
3128
|
+
} finally {
|
|
3129
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3130
|
+
}
|
|
3131
|
+
};
|
|
3132
|
+
imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
|
|
3133
|
+
const ret = arg0.SQLITE_NULL;
|
|
3134
|
+
return ret;
|
|
3135
|
+
};
|
|
3136
|
+
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3137
|
+
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3138
|
+
return ret;
|
|
3139
|
+
};
|
|
3140
|
+
imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
|
|
3141
|
+
const ret = arg0.SQLITE_ROW;
|
|
3142
|
+
return ret;
|
|
3143
|
+
};
|
|
3144
|
+
imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
|
|
3145
|
+
const ret = arg0.SQLITE_OK;
|
|
3146
|
+
return ret;
|
|
3147
|
+
};
|
|
3148
|
+
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3149
|
+
const ret = arg0.SQLITE_FLOAT;
|
|
3150
|
+
return ret;
|
|
3151
|
+
};
|
|
3152
|
+
imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
|
|
3153
|
+
const ret = arg0.SQLITE_INTEGER;
|
|
3154
|
+
return ret;
|
|
3155
|
+
};
|
|
3156
|
+
imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
|
|
3157
|
+
const ret = arg0.SQLITE_DONE;
|
|
3158
|
+
return ret;
|
|
3159
|
+
};
|
|
3160
|
+
imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
|
|
3161
|
+
const ret = arg0.SQLITE_BLOB;
|
|
3162
|
+
return ret;
|
|
3163
|
+
};
|
|
3164
|
+
imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
|
|
3165
|
+
const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
|
|
3166
|
+
return ret;
|
|
3167
|
+
};
|
|
3168
|
+
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3169
|
+
const ret = arg0.SQLITE_STATIC;
|
|
3170
|
+
return ret;
|
|
3171
|
+
};
|
|
3172
|
+
imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
|
|
3173
|
+
const ret = arg0.SQLITE_CONSTRAINT_CHECK;
|
|
3174
|
+
return ret;
|
|
3175
|
+
};
|
|
3176
|
+
imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
|
|
3177
|
+
const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
|
|
3178
|
+
return ret;
|
|
3179
|
+
};
|
|
3180
|
+
imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
|
|
3181
|
+
const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
|
|
3182
|
+
return ret;
|
|
3183
|
+
};
|
|
3184
|
+
imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
|
|
3185
|
+
const ret = arg0.SQLITE_PREPARE_PERSISTENT;
|
|
3186
|
+
return ret;
|
|
3187
|
+
};
|
|
3188
|
+
imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
|
|
3189
|
+
const ret = arg0.SQLITE_TEXT;
|
|
3190
|
+
return ret;
|
|
3191
|
+
};
|
|
3192
|
+
imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
|
|
3193
|
+
const ret = arg0.SQLITE_OPEN_READWRITE;
|
|
3194
|
+
return ret;
|
|
3195
|
+
};
|
|
3196
|
+
imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
|
|
3197
|
+
const ret = arg0.SQLITE_OPEN_CREATE;
|
|
3198
|
+
return ret;
|
|
3199
|
+
};
|
|
3200
|
+
imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
|
|
3201
|
+
const ret = arg0.SQLITE_OPEN_URI;
|
|
3202
|
+
return ret;
|
|
3203
|
+
};
|
|
3204
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
3205
|
+
const ret = arg0 == arg1;
|
|
3206
|
+
return ret;
|
|
3207
|
+
};
|
|
3208
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
3209
|
+
const v = arg0;
|
|
3210
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
3211
|
+
return ret;
|
|
3212
|
+
};
|
|
3213
|
+
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
|
|
3214
|
+
const ret = String(arg1);
|
|
3215
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3216
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3217
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3218
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3219
|
+
};
|
|
3220
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
3221
|
+
const ret = arg0[arg1];
|
|
3222
|
+
return ret;
|
|
3223
|
+
};
|
|
3224
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
3225
|
+
arg0[arg1] = arg2;
|
|
3226
|
+
};
|
|
3227
|
+
imports.wbg.__wbg_log_491a5231a6310c13 = function(arg0, arg1) {
|
|
3228
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
3229
|
+
};
|
|
3230
|
+
imports.wbg.__wbg_self_fa85e99720202dd4 = function(arg0) {
|
|
3231
|
+
const ret = arg0.self;
|
|
3232
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3233
|
+
};
|
|
3234
|
+
imports.wbg.__wbg_constructor_41b3ab5898fdf330 = function(arg0) {
|
|
3235
|
+
const ret = arg0.constructor;
|
|
3236
|
+
return ret;
|
|
3237
|
+
};
|
|
3238
|
+
imports.wbg.__wbg_name_963614637094aad8 = function(arg0, arg1) {
|
|
3239
|
+
const ret = arg1.name;
|
|
3240
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3241
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3242
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3243
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3244
|
+
};
|
|
3245
|
+
imports.wbg.__wbg_Deno_a6da1a839b626101 = function(arg0) {
|
|
3246
|
+
const ret = arg0.Deno;
|
|
3247
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3248
|
+
};
|
|
3249
|
+
imports.wbg.__wbg_stack_9dc96582e4822571 = function(arg0, arg1) {
|
|
3250
|
+
const ret = arg1.stack;
|
|
3251
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3252
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3253
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3254
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3255
|
+
};
|
|
3256
|
+
imports.wbg.__wbg_String_c3b43c66a02c6ca8 = function(arg0, arg1) {
|
|
3257
|
+
const ret = String(arg1);
|
|
3258
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3259
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3260
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3261
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3262
|
+
};
|
|
3263
|
+
imports.wbg.__wbg_settextcontent_ea3dfc9f7afe7f06 = function(arg0, arg1, arg2) {
|
|
3264
|
+
arg0.textContent = getStringFromWasm0(arg1, arg2);
|
|
3265
|
+
};
|
|
3266
|
+
imports.wbg.__wbg_static_accessor_DOCUMENT_a5bca7f6e8b241cf = function() {
|
|
3267
|
+
const ret = document;
|
|
3268
|
+
return ret;
|
|
3269
|
+
};
|
|
3270
|
+
imports.wbg.__wbg_getElementById_605f2ff21c779a7e = function(arg0, arg1, arg2) {
|
|
3271
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
3272
|
+
return ret;
|
|
3273
|
+
};
|
|
3274
|
+
imports.wbg.__wbg_textcontent_6e4b01ce1801d4e6 = function(arg0, arg1) {
|
|
3275
|
+
const ret = arg1.textContent;
|
|
3276
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3277
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3278
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3279
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3280
|
+
};
|
|
3281
|
+
imports.wbg.__wbg_stack_e7498cc287ef84ec = function(arg0) {
|
|
3282
|
+
const ret = arg0.stack;
|
|
3283
|
+
return ret;
|
|
3284
|
+
};
|
|
3285
|
+
imports.wbg.__wbg_wbgtestoutputwriteln_1db413808589922e = typeof __wbg_test_output_writeln == 'function' ? __wbg_test_output_writeln : notDefined('__wbg_test_output_writeln');
|
|
3286
|
+
imports.wbg.__wbg_stack_660f03fff6667bdc = function(arg0) {
|
|
3287
|
+
const ret = arg0.stack;
|
|
3288
|
+
return ret;
|
|
3289
|
+
};
|
|
3290
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
3291
|
+
const ret = new Error();
|
|
3292
|
+
return ret;
|
|
3293
|
+
};
|
|
3294
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
3295
|
+
const ret = arg1.stack;
|
|
3296
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3297
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3298
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3300
|
+
};
|
|
3301
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
3302
|
+
let deferred0_0;
|
|
3303
|
+
let deferred0_1;
|
|
3304
|
+
try {
|
|
3305
|
+
deferred0_0 = arg0;
|
|
3306
|
+
deferred0_1 = arg1;
|
|
3307
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
3308
|
+
} finally {
|
|
3309
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
3312
|
+
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
|
3313
|
+
const ret = arg0.queueMicrotask;
|
|
3314
|
+
return ret;
|
|
3315
|
+
};
|
|
3316
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
3317
|
+
const ret = typeof(arg0) === 'function';
|
|
3318
|
+
return ret;
|
|
3319
|
+
};
|
|
3320
|
+
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
|
|
3321
|
+
imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
|
|
3322
|
+
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
|
|
3323
|
+
const ret = arg0.fetch(arg1);
|
|
3324
|
+
return ret;
|
|
3325
|
+
};
|
|
3326
|
+
imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) {
|
|
3327
|
+
arg0.close();
|
|
3328
|
+
}, arguments) };
|
|
3329
|
+
imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) {
|
|
3330
|
+
arg0.enqueue(arg1);
|
|
3331
|
+
}, arguments) };
|
|
3332
|
+
imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
|
|
3333
|
+
let result;
|
|
3334
|
+
try {
|
|
3335
|
+
result = arg0 instanceof Response;
|
|
3336
|
+
} catch (_) {
|
|
3337
|
+
result = false;
|
|
3338
|
+
}
|
|
3339
|
+
const ret = result;
|
|
3340
|
+
return ret;
|
|
3341
|
+
};
|
|
3342
|
+
imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
|
|
3343
|
+
const ret = arg1.url;
|
|
3344
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3345
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3346
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3347
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3348
|
+
};
|
|
3349
|
+
imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
|
|
3350
|
+
const ret = arg0.status;
|
|
3351
|
+
return ret;
|
|
3352
|
+
};
|
|
3353
|
+
imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
|
|
3354
|
+
const ret = arg0.headers;
|
|
3355
|
+
return ret;
|
|
3356
|
+
};
|
|
3357
|
+
imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
|
|
3358
|
+
const ret = arg0.arrayBuffer();
|
|
3359
|
+
return ret;
|
|
3360
|
+
}, arguments) };
|
|
3361
|
+
imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) {
|
|
3362
|
+
const ret = arg0.byobRequest;
|
|
3363
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3364
|
+
};
|
|
3365
|
+
imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) {
|
|
3366
|
+
arg0.close();
|
|
3367
|
+
}, arguments) };
|
|
3368
|
+
imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
|
|
3369
|
+
const ret = arg0.signal;
|
|
3370
|
+
return ret;
|
|
3371
|
+
};
|
|
3372
|
+
imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
|
|
3373
|
+
const ret = new AbortController();
|
|
3374
|
+
return ret;
|
|
3375
|
+
}, arguments) };
|
|
3376
|
+
imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
|
|
3377
|
+
arg0.abort();
|
|
3378
|
+
};
|
|
3379
|
+
imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) {
|
|
3380
|
+
const ret = arg0.view;
|
|
3381
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3382
|
+
};
|
|
3383
|
+
imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) {
|
|
3384
|
+
arg0.respond(arg1 >>> 0);
|
|
3385
|
+
}, arguments) };
|
|
3386
|
+
imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3387
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
3388
|
+
return ret;
|
|
3389
|
+
}, arguments) };
|
|
3390
|
+
imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
|
|
3391
|
+
arg0.body = arg1;
|
|
3392
|
+
};
|
|
3393
|
+
imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
|
|
3394
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
3395
|
+
};
|
|
3396
|
+
imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
|
|
3397
|
+
arg0.headers = arg1;
|
|
3398
|
+
};
|
|
3399
|
+
imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
|
|
3400
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
3401
|
+
};
|
|
3402
|
+
imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
|
|
3403
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
3404
|
+
};
|
|
3405
|
+
imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
|
|
3406
|
+
arg0.signal = arg1;
|
|
3407
|
+
};
|
|
3408
|
+
imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
|
|
3409
|
+
const ret = new Headers();
|
|
3410
|
+
return ret;
|
|
3411
|
+
}, arguments) };
|
|
3412
|
+
imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3413
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3414
|
+
}, arguments) };
|
|
3415
|
+
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
3416
|
+
const ret = arg0.crypto;
|
|
3417
|
+
return ret;
|
|
3418
|
+
};
|
|
3419
|
+
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
3420
|
+
const ret = arg0.process;
|
|
3421
|
+
return ret;
|
|
3422
|
+
};
|
|
3423
|
+
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
3424
|
+
const ret = arg0.versions;
|
|
3425
|
+
return ret;
|
|
3426
|
+
};
|
|
3427
|
+
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
3428
|
+
const ret = arg0.node;
|
|
3429
|
+
return ret;
|
|
3430
|
+
};
|
|
3431
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
3432
|
+
const ret = typeof(arg0) === 'string';
|
|
3433
|
+
return ret;
|
|
3434
|
+
};
|
|
3435
|
+
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
3436
|
+
const ret = module.require;
|
|
3437
|
+
return ret;
|
|
3438
|
+
}, arguments) };
|
|
3439
|
+
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
3440
|
+
const ret = arg0.msCrypto;
|
|
3441
|
+
return ret;
|
|
3442
|
+
};
|
|
3443
|
+
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
3444
|
+
arg0.getRandomValues(arg1);
|
|
3445
|
+
}, arguments) };
|
|
3446
|
+
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
3447
|
+
arg0.randomFillSync(arg1);
|
|
3448
|
+
}, arguments) };
|
|
3449
|
+
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
|
|
3450
|
+
const ret = arg0[arg1 >>> 0];
|
|
3451
|
+
return ret;
|
|
3452
|
+
};
|
|
3453
|
+
imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
|
|
3454
|
+
const ret = arg0.length;
|
|
3455
|
+
return ret;
|
|
3456
|
+
};
|
|
3457
|
+
imports.wbg.__wbg_new_034f913e7636e987 = function() {
|
|
3458
|
+
const ret = new Array();
|
|
3459
|
+
return ret;
|
|
3460
|
+
};
|
|
3461
|
+
imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
|
|
3462
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3463
|
+
return ret;
|
|
3464
|
+
};
|
|
3465
|
+
imports.wbg.__wbg_new_7a87a0376e40533b = function() {
|
|
3466
|
+
const ret = new Map();
|
|
3467
|
+
return ret;
|
|
3468
|
+
};
|
|
3469
|
+
imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
|
|
3470
|
+
const ret = arg0.next;
|
|
3471
|
+
return ret;
|
|
3472
|
+
};
|
|
3473
|
+
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
|
|
3474
|
+
const ret = arg0.next();
|
|
3475
|
+
return ret;
|
|
3476
|
+
}, arguments) };
|
|
3477
|
+
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
|
|
3478
|
+
const ret = arg0.done;
|
|
3479
|
+
return ret;
|
|
3480
|
+
};
|
|
3481
|
+
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
|
|
3482
|
+
const ret = arg0.value;
|
|
3483
|
+
return ret;
|
|
3484
|
+
};
|
|
3485
|
+
imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
|
|
3486
|
+
const ret = Symbol.iterator;
|
|
3487
|
+
return ret;
|
|
3488
|
+
};
|
|
3489
|
+
imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
|
|
3490
|
+
const ret = Reflect.get(arg0, arg1);
|
|
3491
|
+
return ret;
|
|
3492
|
+
}, arguments) };
|
|
3493
|
+
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
|
|
3494
|
+
const ret = arg0.call(arg1);
|
|
3495
|
+
return ret;
|
|
3496
|
+
}, arguments) };
|
|
3497
|
+
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
|
|
3498
|
+
const ret = new Object();
|
|
3499
|
+
return ret;
|
|
3500
|
+
};
|
|
3501
|
+
imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
|
|
3502
|
+
const ret = self.self;
|
|
3503
|
+
return ret;
|
|
3504
|
+
}, arguments) };
|
|
3505
|
+
imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
|
|
3506
|
+
const ret = window.window;
|
|
3507
|
+
return ret;
|
|
3508
|
+
}, arguments) };
|
|
3509
|
+
imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
|
|
3510
|
+
const ret = globalThis.globalThis;
|
|
3511
|
+
return ret;
|
|
3512
|
+
}, arguments) };
|
|
3513
|
+
imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
|
|
3514
|
+
const ret = global.global;
|
|
3515
|
+
return ret;
|
|
3516
|
+
}, arguments) };
|
|
3517
|
+
imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
|
|
3518
|
+
arg0[arg1 >>> 0] = arg2;
|
|
3519
|
+
};
|
|
3520
|
+
imports.wbg.__wbg_forEach_678f416cbff9306a = function(arg0, arg1, arg2) {
|
|
3521
|
+
try {
|
|
3522
|
+
var state0 = {a: arg1, b: arg2};
|
|
3523
|
+
var cb0 = (arg0, arg1, arg2) => {
|
|
3524
|
+
const a = state0.a;
|
|
3525
|
+
state0.a = 0;
|
|
3526
|
+
try {
|
|
3527
|
+
return __wbg_adapter_523(a, state0.b, arg0, arg1, arg2);
|
|
3528
|
+
} finally {
|
|
3529
|
+
state0.a = a;
|
|
3530
|
+
}
|
|
3531
|
+
};
|
|
3532
|
+
arg0.forEach(cb0);
|
|
3533
|
+
} finally {
|
|
3534
|
+
state0.a = state0.b = 0;
|
|
3535
|
+
}
|
|
3536
|
+
};
|
|
3537
|
+
imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
|
|
3538
|
+
const ret = arg0.push(arg1);
|
|
3539
|
+
return ret;
|
|
3540
|
+
};
|
|
3541
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
|
|
3542
|
+
let result;
|
|
3543
|
+
try {
|
|
3544
|
+
result = arg0 instanceof ArrayBuffer;
|
|
3545
|
+
} catch (_) {
|
|
3546
|
+
result = false;
|
|
3547
|
+
}
|
|
3548
|
+
const ret = result;
|
|
3549
|
+
return ret;
|
|
3550
|
+
};
|
|
3551
|
+
imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
|
|
3552
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3553
|
+
return ret;
|
|
3554
|
+
};
|
|
3555
|
+
imports.wbg.__wbg_message_00eebca8fa4dd7db = function(arg0) {
|
|
3556
|
+
const ret = arg0.message;
|
|
3557
|
+
return ret;
|
|
3558
|
+
};
|
|
3559
|
+
imports.wbg.__wbg_name_aa32a0ae51232604 = function(arg0) {
|
|
3560
|
+
const ret = arg0.name;
|
|
3561
|
+
return ret;
|
|
3562
|
+
};
|
|
3563
|
+
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3564
|
+
const ret = arg0.call(arg1, arg2);
|
|
3565
|
+
return ret;
|
|
3566
|
+
}, arguments) };
|
|
3567
|
+
imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
|
|
3568
|
+
const ret = arg0.set(arg1, arg2);
|
|
3569
|
+
return ret;
|
|
3570
|
+
};
|
|
3571
|
+
imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
|
|
3572
|
+
const ret = Number.isSafeInteger(arg0);
|
|
3573
|
+
return ret;
|
|
3574
|
+
};
|
|
3575
|
+
imports.wbg.__wbg_now_70af4fe37a792251 = function() {
|
|
3576
|
+
const ret = Date.now();
|
|
3577
|
+
return ret;
|
|
3578
|
+
};
|
|
3579
|
+
imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
|
|
3580
|
+
const ret = Object.entries(arg0);
|
|
3581
|
+
return ret;
|
|
3582
|
+
};
|
|
3583
|
+
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
|
3584
|
+
try {
|
|
3585
|
+
var state0 = {a: arg0, b: arg1};
|
|
3586
|
+
var cb0 = (arg0, arg1) => {
|
|
3587
|
+
const a = state0.a;
|
|
3588
|
+
state0.a = 0;
|
|
3589
|
+
try {
|
|
3590
|
+
return __wbg_adapter_566(a, state0.b, arg0, arg1);
|
|
3591
|
+
} finally {
|
|
3592
|
+
state0.a = a;
|
|
3593
|
+
}
|
|
3594
|
+
};
|
|
3595
|
+
const ret = new Promise(cb0);
|
|
3596
|
+
return ret;
|
|
3597
|
+
} finally {
|
|
3598
|
+
state0.a = state0.b = 0;
|
|
3599
|
+
}
|
|
3600
|
+
};
|
|
3601
|
+
imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
|
|
3602
|
+
const ret = Promise.resolve(arg0);
|
|
3603
|
+
return ret;
|
|
3604
|
+
};
|
|
3605
|
+
imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
|
|
3606
|
+
const ret = arg0.then(arg1);
|
|
3607
|
+
return ret;
|
|
3608
|
+
};
|
|
3609
|
+
imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
|
|
3610
|
+
const ret = arg0.then(arg1, arg2);
|
|
3611
|
+
return ret;
|
|
3612
|
+
};
|
|
3613
|
+
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
|
|
3614
|
+
const ret = arg0.buffer;
|
|
3615
|
+
return ret;
|
|
3616
|
+
};
|
|
3617
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
|
|
3618
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
3619
|
+
return ret;
|
|
3620
|
+
};
|
|
3621
|
+
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
|
|
3622
|
+
const ret = new Uint8Array(arg0);
|
|
3623
|
+
return ret;
|
|
3624
|
+
};
|
|
3625
|
+
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
|
|
3626
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
3627
|
+
};
|
|
3628
|
+
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
|
|
3629
|
+
const ret = arg0.length;
|
|
3630
|
+
return ret;
|
|
3631
|
+
};
|
|
3632
|
+
imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
|
|
3633
|
+
let result;
|
|
3634
|
+
try {
|
|
3635
|
+
result = arg0 instanceof Uint8Array;
|
|
3636
|
+
} catch (_) {
|
|
3637
|
+
result = false;
|
|
3638
|
+
}
|
|
3639
|
+
const ret = result;
|
|
3640
|
+
return ret;
|
|
3641
|
+
};
|
|
3642
|
+
imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
|
|
3643
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
3644
|
+
return ret;
|
|
3645
|
+
};
|
|
3646
|
+
imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) {
|
|
3647
|
+
const ret = arg0.buffer;
|
|
3648
|
+
return ret;
|
|
3649
|
+
};
|
|
3650
|
+
imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
|
|
3651
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3652
|
+
return ret;
|
|
3653
|
+
};
|
|
3654
|
+
imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) {
|
|
3655
|
+
const ret = arg0.byteLength;
|
|
3656
|
+
return ret;
|
|
3657
|
+
};
|
|
3658
|
+
imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) {
|
|
3659
|
+
const ret = arg0.byteOffset;
|
|
3660
|
+
return ret;
|
|
3661
|
+
};
|
|
3662
|
+
imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
|
|
3663
|
+
const ret = Reflect.has(arg0, arg1);
|
|
3664
|
+
return ret;
|
|
3665
|
+
}, arguments) };
|
|
3666
|
+
imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
|
|
3667
|
+
const ret = new WebAssembly.Memory(arg0);
|
|
3668
|
+
return ret;
|
|
3669
|
+
}, arguments) };
|
|
3670
|
+
imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
|
|
3671
|
+
const ret = JSON.stringify(arg0);
|
|
3672
|
+
return ret;
|
|
3673
|
+
}, arguments) };
|
|
3674
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
3675
|
+
const ret = debugString(arg1);
|
|
3676
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3677
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3678
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3679
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3680
|
+
};
|
|
3681
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
3682
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3683
|
+
};
|
|
3684
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
3685
|
+
const ret = wasm.memory;
|
|
3686
|
+
return ret;
|
|
3687
|
+
};
|
|
3688
|
+
imports.wbg.__wbindgen_closure_wrapper7553 = function(arg0, arg1, arg2) {
|
|
3689
|
+
const ret = makeMutClosure(arg0, arg1, 1618, __wbg_adapter_44);
|
|
3690
|
+
return ret;
|
|
3691
|
+
};
|
|
3692
|
+
imports.wbg.__wbindgen_closure_wrapper11082 = function(arg0, arg1, arg2) {
|
|
3693
|
+
const ret = makeMutClosure(arg0, arg1, 2263, __wbg_adapter_47);
|
|
3694
|
+
return ret;
|
|
3695
|
+
};
|
|
3696
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3697
|
+
const table = wasm.__wbindgen_export_2;
|
|
3698
|
+
const offset = table.grow(4);
|
|
3699
|
+
table.set(0, undefined);
|
|
3700
|
+
table.set(offset + 0, undefined);
|
|
3701
|
+
table.set(offset + 1, null);
|
|
3702
|
+
table.set(offset + 2, true);
|
|
3703
|
+
table.set(offset + 3, false);
|
|
3704
|
+
;
|
|
3705
|
+
};
|
|
3706
|
+
|
|
3707
|
+
return imports;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
function __wbg_init_memory(imports, memory) {
|
|
3711
|
+
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
function __wbg_finalize_init(instance, module) {
|
|
3715
|
+
wasm = instance.exports;
|
|
3716
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
3717
|
+
cachedDataViewMemory0 = null;
|
|
3718
|
+
cachedUint8ArrayMemory0 = null;
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
wasm.__wbindgen_start();
|
|
3722
|
+
return wasm;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
function initSync(module) {
|
|
3726
|
+
if (wasm !== undefined) return wasm;
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
if (typeof module !== 'undefined') {
|
|
3730
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
3731
|
+
({module} = module)
|
|
3732
|
+
} else {
|
|
3733
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
const imports = __wbg_get_imports();
|
|
3738
|
+
|
|
3739
|
+
__wbg_init_memory(imports);
|
|
3740
|
+
|
|
3741
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
3742
|
+
module = new WebAssembly.Module(module);
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
3746
|
+
|
|
3747
|
+
return __wbg_finalize_init(instance, module);
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
async function __wbg_init(module_or_path) {
|
|
3751
|
+
if (wasm !== undefined) return wasm;
|
|
3752
|
+
|
|
3753
|
+
|
|
3754
|
+
if (typeof module_or_path !== 'undefined') {
|
|
3755
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
3756
|
+
({module_or_path} = module_or_path)
|
|
3757
|
+
} else {
|
|
3758
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
if (typeof module_or_path === 'undefined') {
|
|
3763
|
+
module_or_path = new URL('bindings_wasm_bg.wasm', import.meta.url);
|
|
3764
|
+
}
|
|
3765
|
+
const imports = __wbg_get_imports();
|
|
3766
|
+
|
|
3767
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
3768
|
+
module_or_path = fetch(module_or_path);
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3771
|
+
__wbg_init_memory(imports);
|
|
3772
|
+
|
|
3773
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
3774
|
+
|
|
3775
|
+
return __wbg_finalize_init(instance, module);
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
export { initSync };
|
|
3779
|
+
export default __wbg_init;
|