@xmtp/wasm-bindings 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -18
- package/dist/bindings_wasm.d.ts +507 -589
- package/dist/bindings_wasm.js +1480 -1703
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +212 -223
- package/package.json +5 -4
package/dist/bindings_wasm.js
CHANGED
|
@@ -20,19 +20,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
20
20
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function isLikeNone(x) {
|
|
24
|
-
return x === undefined || x === null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let cachedDataViewMemory0 = null;
|
|
28
|
-
|
|
29
|
-
function getDataViewMemory0() {
|
|
30
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
31
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
32
|
-
}
|
|
33
|
-
return cachedDataViewMemory0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
23
|
let WASM_VECTOR_LEN = 0;
|
|
37
24
|
|
|
38
25
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -89,6 +76,19 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
89
76
|
return ptr;
|
|
90
77
|
}
|
|
91
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
92
|
function debugString(val) {
|
|
93
93
|
// primitive types
|
|
94
94
|
const type = typeof val;
|
|
@@ -185,22 +185,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
185
185
|
return real;
|
|
186
186
|
}
|
|
187
187
|
function __wbg_adapter_46(arg0, arg1) {
|
|
188
|
-
wasm.
|
|
188
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(arg0, arg1);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
192
|
-
wasm.
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
196
|
-
ptr = ptr >>> 0;
|
|
197
|
-
const mem = getDataViewMemory0();
|
|
198
|
-
const result = [];
|
|
199
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
200
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
201
|
-
}
|
|
202
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
203
|
-
return result;
|
|
192
|
+
wasm.closure2955_externref_shim(arg0, arg1, arg2);
|
|
204
193
|
}
|
|
205
194
|
|
|
206
195
|
function addToExternrefTable0(obj) {
|
|
@@ -208,6 +197,29 @@ function addToExternrefTable0(obj) {
|
|
|
208
197
|
wasm.__wbindgen_export_2.set(idx, obj);
|
|
209
198
|
return idx;
|
|
210
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* @param {string} host
|
|
202
|
+
* @param {string} inbox_id
|
|
203
|
+
* @param {string} account_address
|
|
204
|
+
* @param {string} db_path
|
|
205
|
+
* @param {Uint8Array | undefined} [encryption_key]
|
|
206
|
+
* @param {string | undefined} [history_sync_url]
|
|
207
|
+
* @returns {Promise<Client>}
|
|
208
|
+
*/
|
|
209
|
+
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
|
|
210
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
211
|
+
const len0 = WASM_VECTOR_LEN;
|
|
212
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
213
|
+
const len1 = WASM_VECTOR_LEN;
|
|
214
|
+
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
215
|
+
const len2 = WASM_VECTOR_LEN;
|
|
216
|
+
const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
217
|
+
const len3 = WASM_VECTOR_LEN;
|
|
218
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
219
|
+
var len4 = WASM_VECTOR_LEN;
|
|
220
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4);
|
|
221
|
+
return ret;
|
|
222
|
+
}
|
|
211
223
|
|
|
212
224
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
213
225
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
@@ -219,6 +231,17 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
219
231
|
return ptr;
|
|
220
232
|
}
|
|
221
233
|
|
|
234
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
235
|
+
ptr = ptr >>> 0;
|
|
236
|
+
const mem = getDataViewMemory0();
|
|
237
|
+
const result = [];
|
|
238
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
239
|
+
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
240
|
+
}
|
|
241
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
242
|
+
return result;
|
|
243
|
+
}
|
|
244
|
+
|
|
222
245
|
function _assertClass(instance, klass) {
|
|
223
246
|
if (!(instance instanceof klass)) {
|
|
224
247
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -250,44 +273,26 @@ export function getInboxIdForAddress(host, account_address) {
|
|
|
250
273
|
* @returns {string}
|
|
251
274
|
*/
|
|
252
275
|
export function generateInboxId(account_address) {
|
|
253
|
-
let
|
|
254
|
-
let
|
|
276
|
+
let deferred3_0;
|
|
277
|
+
let deferred3_1;
|
|
255
278
|
try {
|
|
256
279
|
const ptr0 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
280
|
const len0 = WASM_VECTOR_LEN;
|
|
258
281
|
const ret = wasm.generateInboxId(ptr0, len0);
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
282
|
+
var ptr2 = ret[0];
|
|
283
|
+
var len2 = ret[1];
|
|
284
|
+
if (ret[3]) {
|
|
285
|
+
ptr2 = 0; len2 = 0;
|
|
286
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
287
|
+
}
|
|
288
|
+
deferred3_0 = ptr2;
|
|
289
|
+
deferred3_1 = len2;
|
|
290
|
+
return getStringFromWasm0(ptr2, len2);
|
|
262
291
|
} finally {
|
|
263
|
-
wasm.__wbindgen_free(
|
|
292
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
264
293
|
}
|
|
265
294
|
}
|
|
266
295
|
|
|
267
|
-
/**
|
|
268
|
-
* @param {string} host
|
|
269
|
-
* @param {string} inbox_id
|
|
270
|
-
* @param {string} account_address
|
|
271
|
-
* @param {string} db_path
|
|
272
|
-
* @param {Uint8Array | undefined} [encryption_key]
|
|
273
|
-
* @param {string | undefined} [history_sync_url]
|
|
274
|
-
* @returns {Promise<WasmClient>}
|
|
275
|
-
*/
|
|
276
|
-
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
|
|
277
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
278
|
-
const len0 = WASM_VECTOR_LEN;
|
|
279
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
280
|
-
const len1 = WASM_VECTOR_LEN;
|
|
281
|
-
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
282
|
-
const len2 = WASM_VECTOR_LEN;
|
|
283
|
-
const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
284
|
-
const len3 = WASM_VECTOR_LEN;
|
|
285
|
-
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
286
|
-
var len4 = WASM_VECTOR_LEN;
|
|
287
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4);
|
|
288
|
-
return ret;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
296
|
function handleError(f, args) {
|
|
292
297
|
try {
|
|
293
298
|
return f.apply(this, args);
|
|
@@ -298,99 +303,33 @@ function handleError(f, args) {
|
|
|
298
303
|
}
|
|
299
304
|
|
|
300
305
|
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
301
|
-
|
|
302
|
-
|
|
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;
|
|
306
|
+
function __wbg_adapter_536(arg0, arg1, arg2, arg3) {
|
|
307
|
+
wasm.closure3167_externref_shim(arg0, arg1, arg2, arg3);
|
|
361
308
|
}
|
|
362
309
|
|
|
363
|
-
|
|
364
|
-
wasm.closure3231_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
function __wbg_adapter_580(arg0, arg1, arg2, arg3) {
|
|
368
|
-
wasm.closure3227_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", });
|
|
310
|
+
export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
|
|
372
311
|
|
|
373
|
-
export const
|
|
312
|
+
export const ConsentState = Object.freeze({ Unknown:0,"0":"Unknown",Allowed:1,"1":"Allowed",Denied:2,"2":"Denied", });
|
|
374
313
|
|
|
375
|
-
export const
|
|
314
|
+
export const ConversationType = Object.freeze({ Dm:0,"0":"Dm",Group:1,"1":"Group",Sync:2,"2":"Sync", });
|
|
376
315
|
|
|
377
|
-
export const
|
|
316
|
+
export const DeliveryStatus = Object.freeze({ Unpublished:0,"0":"Unpublished",Published:1,"1":"Published",Failed:2,"2":"Failed", });
|
|
378
317
|
|
|
379
|
-
export const
|
|
318
|
+
export const GroupMembershipState = Object.freeze({ Allowed:0,"0":"Allowed",Rejected:1,"1":"Rejected",Pending:2,"2":"Pending", });
|
|
380
319
|
|
|
381
|
-
export const
|
|
320
|
+
export const GroupMessageKind = Object.freeze({ Application:0,"0":"Application",MembershipChange:1,"1":"MembershipChange", });
|
|
382
321
|
|
|
383
|
-
export const
|
|
322
|
+
export const GroupPermissionsOptions = Object.freeze({ AllMembers:0,"0":"AllMembers",AdminOnly:1,"1":"AdminOnly",CustomPolicy:2,"2":"CustomPolicy", });
|
|
384
323
|
|
|
385
|
-
export const
|
|
324
|
+
export const PermissionLevel = Object.freeze({ Member:0,"0":"Member",Admin:1,"1":"Admin",SuperAdmin:2,"2":"SuperAdmin", });
|
|
386
325
|
|
|
387
|
-
export const
|
|
326
|
+
export const PermissionPolicy = 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", });
|
|
388
327
|
|
|
389
|
-
export const
|
|
328
|
+
export const PermissionUpdateType = Object.freeze({ AddMember:0,"0":"AddMember",RemoveMember:1,"1":"RemoveMember",AddAdmin:2,"2":"AddAdmin",RemoveAdmin:3,"3":"RemoveAdmin",UpdateMetadata:4,"4":"UpdateMetadata", });
|
|
390
329
|
|
|
391
|
-
export const
|
|
330
|
+
export const SignatureRequestType = Object.freeze({ AddWallet:0,"0":"AddWallet",CreateInbox:1,"1":"CreateInbox",RevokeWallet:2,"2":"RevokeWallet",RevokeInstallations:3,"3":"RevokeInstallations", });
|
|
392
331
|
|
|
393
|
-
export const
|
|
332
|
+
export const SortDirection = Object.freeze({ Ascending:0,"0":"Ascending",Descending:1,"1":"Descending", });
|
|
394
333
|
|
|
395
334
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
396
335
|
|
|
@@ -402,31 +341,39 @@ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
|
402
341
|
|
|
403
342
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
404
343
|
|
|
405
|
-
const
|
|
344
|
+
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
406
345
|
? { register: () => {}, unregister: () => {} }
|
|
407
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
346
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
408
347
|
|
|
409
|
-
export class
|
|
348
|
+
export class Client {
|
|
349
|
+
|
|
350
|
+
static __wrap(ptr) {
|
|
351
|
+
ptr = ptr >>> 0;
|
|
352
|
+
const obj = Object.create(Client.prototype);
|
|
353
|
+
obj.__wbg_ptr = ptr;
|
|
354
|
+
ClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
355
|
+
return obj;
|
|
356
|
+
}
|
|
410
357
|
|
|
411
358
|
__destroy_into_raw() {
|
|
412
359
|
const ptr = this.__wbg_ptr;
|
|
413
360
|
this.__wbg_ptr = 0;
|
|
414
|
-
|
|
361
|
+
ClientFinalization.unregister(this);
|
|
415
362
|
return ptr;
|
|
416
363
|
}
|
|
417
364
|
|
|
418
365
|
free() {
|
|
419
366
|
const ptr = this.__destroy_into_raw();
|
|
420
|
-
wasm.
|
|
367
|
+
wasm.__wbg_client_free(ptr, 0);
|
|
421
368
|
}
|
|
422
369
|
/**
|
|
423
370
|
* @returns {string}
|
|
424
371
|
*/
|
|
425
|
-
get
|
|
372
|
+
get accountAddress() {
|
|
426
373
|
let deferred1_0;
|
|
427
374
|
let deferred1_1;
|
|
428
375
|
try {
|
|
429
|
-
const ret = wasm.
|
|
376
|
+
const ret = wasm.client_accountAddress(this.__wbg_ptr);
|
|
430
377
|
deferred1_0 = ret[0];
|
|
431
378
|
deferred1_1 = ret[1];
|
|
432
379
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -435,222 +382,95 @@ export class IntoUnderlyingByteSource {
|
|
|
435
382
|
}
|
|
436
383
|
}
|
|
437
384
|
/**
|
|
438
|
-
* @returns {
|
|
385
|
+
* @returns {string}
|
|
439
386
|
*/
|
|
440
|
-
get
|
|
441
|
-
|
|
442
|
-
|
|
387
|
+
get inboxId() {
|
|
388
|
+
let deferred1_0;
|
|
389
|
+
let deferred1_1;
|
|
390
|
+
try {
|
|
391
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
392
|
+
deferred1_0 = ret[0];
|
|
393
|
+
deferred1_1 = ret[1];
|
|
394
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
395
|
+
} finally {
|
|
396
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
397
|
+
}
|
|
443
398
|
}
|
|
444
399
|
/**
|
|
445
|
-
* @
|
|
400
|
+
* @returns {boolean}
|
|
446
401
|
*/
|
|
447
|
-
|
|
448
|
-
wasm.
|
|
402
|
+
get isRegistered() {
|
|
403
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
404
|
+
return ret !== 0;
|
|
449
405
|
}
|
|
450
406
|
/**
|
|
451
|
-
* @
|
|
407
|
+
* @returns {string}
|
|
408
|
+
*/
|
|
409
|
+
get installationId() {
|
|
410
|
+
let deferred1_0;
|
|
411
|
+
let deferred1_1;
|
|
412
|
+
try {
|
|
413
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
414
|
+
deferred1_0 = ret[0];
|
|
415
|
+
deferred1_1 = ret[1];
|
|
416
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
417
|
+
} finally {
|
|
418
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* @param {(string)[]} account_addresses
|
|
452
423
|
* @returns {Promise<any>}
|
|
453
424
|
*/
|
|
454
|
-
|
|
455
|
-
const
|
|
425
|
+
canMessage(account_addresses) {
|
|
426
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
427
|
+
const len0 = WASM_VECTOR_LEN;
|
|
428
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
456
429
|
return ret;
|
|
457
430
|
}
|
|
458
|
-
cancel() {
|
|
459
|
-
const ptr = this.__destroy_into_raw();
|
|
460
|
-
wasm.intounderlyingbytesource_cancel(ptr);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
465
|
-
? { register: () => {}, unregister: () => {} }
|
|
466
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
467
|
-
|
|
468
|
-
export class IntoUnderlyingSink {
|
|
469
|
-
|
|
470
|
-
__destroy_into_raw() {
|
|
471
|
-
const ptr = this.__wbg_ptr;
|
|
472
|
-
this.__wbg_ptr = 0;
|
|
473
|
-
IntoUnderlyingSinkFinalization.unregister(this);
|
|
474
|
-
return ptr;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
free() {
|
|
478
|
-
const ptr = this.__destroy_into_raw();
|
|
479
|
-
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
480
|
-
}
|
|
481
431
|
/**
|
|
482
|
-
* @
|
|
483
|
-
* @returns {Promise<any>}
|
|
432
|
+
* @returns {Promise<void>}
|
|
484
433
|
*/
|
|
485
|
-
|
|
486
|
-
const ret = wasm.
|
|
434
|
+
registerIdentity() {
|
|
435
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
487
436
|
return ret;
|
|
488
437
|
}
|
|
489
438
|
/**
|
|
490
|
-
* @returns {Promise<
|
|
439
|
+
* @returns {Promise<void>}
|
|
491
440
|
*/
|
|
492
|
-
|
|
493
|
-
const
|
|
494
|
-
const ret = wasm.intounderlyingsink_close(ptr);
|
|
441
|
+
sendHistorySyncRequest() {
|
|
442
|
+
const ret = wasm.client_sendHistorySyncRequest(this.__wbg_ptr);
|
|
495
443
|
return ret;
|
|
496
444
|
}
|
|
497
445
|
/**
|
|
498
|
-
* @
|
|
499
|
-
* @returns {Promise<any>}
|
|
446
|
+
* @returns {Promise<void>}
|
|
500
447
|
*/
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
448
|
+
sendConsentSyncRequest() {
|
|
449
|
+
const ret = wasm.client_sendConsentSyncRequest(this.__wbg_ptr);
|
|
504
450
|
return ret;
|
|
505
451
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
const ptr = this.__wbg_ptr;
|
|
516
|
-
this.__wbg_ptr = 0;
|
|
517
|
-
IntoUnderlyingSourceFinalization.unregister(this);
|
|
518
|
-
return ptr;
|
|
452
|
+
/**
|
|
453
|
+
* @param {string} address
|
|
454
|
+
* @returns {Promise<string | undefined>}
|
|
455
|
+
*/
|
|
456
|
+
findInboxIdByAddress(address) {
|
|
457
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
458
|
+
const len0 = WASM_VECTOR_LEN;
|
|
459
|
+
const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
|
|
460
|
+
return ret;
|
|
519
461
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
462
|
+
/**
|
|
463
|
+
* @returns {Conversations}
|
|
464
|
+
*/
|
|
465
|
+
conversations() {
|
|
466
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
467
|
+
return Conversations.__wrap(ret);
|
|
524
468
|
}
|
|
525
469
|
/**
|
|
526
|
-
* @
|
|
527
|
-
* @returns {Promise<any>}
|
|
470
|
+
* @returns {Promise<string | undefined>}
|
|
528
471
|
*/
|
|
529
|
-
|
|
530
|
-
const ret = wasm.
|
|
531
|
-
return ret;
|
|
532
|
-
}
|
|
533
|
-
cancel() {
|
|
534
|
-
const ptr = this.__destroy_into_raw();
|
|
535
|
-
wasm.intounderlyingsource_cancel(ptr);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
const VersionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
540
|
-
? { register: () => {}, unregister: () => {} }
|
|
541
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_version_free(ptr >>> 0, 1));
|
|
542
|
-
|
|
543
|
-
export class Version {
|
|
544
|
-
|
|
545
|
-
__destroy_into_raw() {
|
|
546
|
-
const ptr = this.__wbg_ptr;
|
|
547
|
-
this.__wbg_ptr = 0;
|
|
548
|
-
VersionFinalization.unregister(this);
|
|
549
|
-
return ptr;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
free() {
|
|
553
|
-
const ptr = this.__destroy_into_raw();
|
|
554
|
-
wasm.__wbg_version_free(ptr, 0);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
559
|
-
? { register: () => {}, unregister: () => {} }
|
|
560
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0, 1));
|
|
561
|
-
/**
|
|
562
|
-
* Runtime test harness support instantiated in JS.
|
|
563
|
-
*
|
|
564
|
-
* The node.js entry script instantiates a `Context` here which is used to
|
|
565
|
-
* drive test execution.
|
|
566
|
-
*/
|
|
567
|
-
export class WasmBindgenTestContext {
|
|
568
|
-
|
|
569
|
-
__destroy_into_raw() {
|
|
570
|
-
const ptr = this.__wbg_ptr;
|
|
571
|
-
this.__wbg_ptr = 0;
|
|
572
|
-
WasmBindgenTestContextFinalization.unregister(this);
|
|
573
|
-
return ptr;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
free() {
|
|
577
|
-
const ptr = this.__destroy_into_raw();
|
|
578
|
-
wasm.__wbg_wasmbindgentestcontext_free(ptr, 0);
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Creates a new context ready to run tests.
|
|
582
|
-
*
|
|
583
|
-
* A `Context` is the main structure through which test execution is
|
|
584
|
-
* coordinated, and this will collect output and results for all executed
|
|
585
|
-
* tests.
|
|
586
|
-
*/
|
|
587
|
-
constructor() {
|
|
588
|
-
const ret = wasm.wasmbindgentestcontext_new();
|
|
589
|
-
this.__wbg_ptr = ret >>> 0;
|
|
590
|
-
WasmBindgenTestContextFinalization.register(this, this.__wbg_ptr, this);
|
|
591
|
-
return this;
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Inform this context about runtime arguments passed to the test
|
|
595
|
-
* harness.
|
|
596
|
-
* @param {any[]} args
|
|
597
|
-
*/
|
|
598
|
-
args(args) {
|
|
599
|
-
const ptr0 = passArrayJsValueToWasm0(args, wasm.__wbindgen_malloc);
|
|
600
|
-
const len0 = WASM_VECTOR_LEN;
|
|
601
|
-
wasm.wasmbindgentestcontext_args(this.__wbg_ptr, ptr0, len0);
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* Executes a list of tests, returning a promise representing their
|
|
605
|
-
* eventual completion.
|
|
606
|
-
*
|
|
607
|
-
* This is the main entry point for executing tests. All the tests passed
|
|
608
|
-
* in are the JS `Function` object that was plucked off the
|
|
609
|
-
* `WebAssembly.Instance` exports list.
|
|
610
|
-
*
|
|
611
|
-
* The promise returned resolves to either `true` if all tests passed or
|
|
612
|
-
* `false` if at least one test failed.
|
|
613
|
-
* @param {any[]} tests
|
|
614
|
-
* @returns {Promise<any>}
|
|
615
|
-
*/
|
|
616
|
-
run(tests) {
|
|
617
|
-
const ptr0 = passArrayJsValueToWasm0(tests, wasm.__wbindgen_malloc);
|
|
618
|
-
const len0 = WASM_VECTOR_LEN;
|
|
619
|
-
const ret = wasm.wasmbindgentestcontext_run(this.__wbg_ptr, ptr0, len0);
|
|
620
|
-
return ret;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
const WasmClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
625
|
-
? { register: () => {}, unregister: () => {} }
|
|
626
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmclient_free(ptr >>> 0, 1));
|
|
627
|
-
|
|
628
|
-
export class WasmClient {
|
|
629
|
-
|
|
630
|
-
static __wrap(ptr) {
|
|
631
|
-
ptr = ptr >>> 0;
|
|
632
|
-
const obj = Object.create(WasmClient.prototype);
|
|
633
|
-
obj.__wbg_ptr = ptr;
|
|
634
|
-
WasmClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
635
|
-
return obj;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
__destroy_into_raw() {
|
|
639
|
-
const ptr = this.__wbg_ptr;
|
|
640
|
-
this.__wbg_ptr = 0;
|
|
641
|
-
WasmClientFinalization.unregister(this);
|
|
642
|
-
return ptr;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
free() {
|
|
646
|
-
const ptr = this.__destroy_into_raw();
|
|
647
|
-
wasm.__wbg_wasmclient_free(ptr, 0);
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* @returns {Promise<string | undefined>}
|
|
651
|
-
*/
|
|
652
|
-
createInboxSignatureText() {
|
|
653
|
-
const ret = wasm.wasmclient_createInboxSignatureText(this.__wbg_ptr);
|
|
472
|
+
createInboxSignatureText() {
|
|
473
|
+
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
654
474
|
return ret;
|
|
655
475
|
}
|
|
656
476
|
/**
|
|
@@ -663,7 +483,7 @@ export class WasmClient {
|
|
|
663
483
|
const len0 = WASM_VECTOR_LEN;
|
|
664
484
|
const ptr1 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
665
485
|
const len1 = WASM_VECTOR_LEN;
|
|
666
|
-
const ret = wasm.
|
|
486
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
667
487
|
return ret;
|
|
668
488
|
}
|
|
669
489
|
/**
|
|
@@ -673,51 +493,51 @@ export class WasmClient {
|
|
|
673
493
|
revokeWalletSignatureText(wallet_address) {
|
|
674
494
|
const ptr0 = passStringToWasm0(wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
675
495
|
const len0 = WASM_VECTOR_LEN;
|
|
676
|
-
const ret = wasm.
|
|
496
|
+
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
677
497
|
return ret;
|
|
678
498
|
}
|
|
679
499
|
/**
|
|
680
500
|
* @returns {Promise<string>}
|
|
681
501
|
*/
|
|
682
502
|
revokeInstallationsSignatureText() {
|
|
683
|
-
const ret = wasm.
|
|
503
|
+
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr);
|
|
684
504
|
return ret;
|
|
685
505
|
}
|
|
686
506
|
/**
|
|
687
|
-
* @param {
|
|
507
|
+
* @param {SignatureRequestType} signature_type
|
|
688
508
|
* @param {Uint8Array} signature_bytes
|
|
689
509
|
* @returns {Promise<void>}
|
|
690
510
|
*/
|
|
691
511
|
addSignature(signature_type, signature_bytes) {
|
|
692
|
-
const ret = wasm.
|
|
512
|
+
const ret = wasm.client_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
693
513
|
return ret;
|
|
694
514
|
}
|
|
695
515
|
/**
|
|
696
516
|
* @returns {Promise<void>}
|
|
697
517
|
*/
|
|
698
518
|
applySignatureRequests() {
|
|
699
|
-
const ret = wasm.
|
|
519
|
+
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
700
520
|
return ret;
|
|
701
521
|
}
|
|
702
522
|
/**
|
|
703
|
-
* @param {(
|
|
523
|
+
* @param {(Consent)[]} records
|
|
704
524
|
* @returns {Promise<void>}
|
|
705
525
|
*/
|
|
706
526
|
setConsentStates(records) {
|
|
707
527
|
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
708
528
|
const len0 = WASM_VECTOR_LEN;
|
|
709
|
-
const ret = wasm.
|
|
529
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
710
530
|
return ret;
|
|
711
531
|
}
|
|
712
532
|
/**
|
|
713
|
-
* @param {
|
|
533
|
+
* @param {ConsentEntityType} entity_type
|
|
714
534
|
* @param {string} entity
|
|
715
|
-
* @returns {Promise<
|
|
535
|
+
* @returns {Promise<ConsentState>}
|
|
716
536
|
*/
|
|
717
537
|
getConsentState(entity_type, entity) {
|
|
718
538
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
719
539
|
const len0 = WASM_VECTOR_LEN;
|
|
720
|
-
const ret = wasm.
|
|
540
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
721
541
|
return ret;
|
|
722
542
|
}
|
|
723
543
|
/**
|
|
@@ -728,132 +548,32 @@ export class WasmClient {
|
|
|
728
548
|
* * Otherwise, the state will be read from the local database.
|
|
729
549
|
*
|
|
730
550
|
* @param {boolean} refresh_from_network
|
|
731
|
-
* @returns {Promise<
|
|
551
|
+
* @returns {Promise<InboxState>}
|
|
732
552
|
*/
|
|
733
553
|
inboxState(refresh_from_network) {
|
|
734
|
-
const ret = wasm.
|
|
554
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
735
555
|
return ret;
|
|
736
556
|
}
|
|
737
557
|
/**
|
|
738
558
|
* @param {string} inbox_id
|
|
739
|
-
* @returns {Promise<
|
|
559
|
+
* @returns {Promise<InboxState>}
|
|
740
560
|
*/
|
|
741
561
|
getLatestInboxState(inbox_id) {
|
|
742
562
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
743
563
|
const len0 = WASM_VECTOR_LEN;
|
|
744
|
-
const ret = wasm.
|
|
745
|
-
return ret;
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* @returns {string}
|
|
749
|
-
*/
|
|
750
|
-
get accountAddress() {
|
|
751
|
-
let deferred1_0;
|
|
752
|
-
let deferred1_1;
|
|
753
|
-
try {
|
|
754
|
-
const ret = wasm.wasmclient_accountAddress(this.__wbg_ptr);
|
|
755
|
-
deferred1_0 = ret[0];
|
|
756
|
-
deferred1_1 = ret[1];
|
|
757
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
758
|
-
} finally {
|
|
759
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* @returns {string}
|
|
764
|
-
*/
|
|
765
|
-
get inboxId() {
|
|
766
|
-
let deferred1_0;
|
|
767
|
-
let deferred1_1;
|
|
768
|
-
try {
|
|
769
|
-
const ret = wasm.wasmclient_inboxId(this.__wbg_ptr);
|
|
770
|
-
deferred1_0 = ret[0];
|
|
771
|
-
deferred1_1 = ret[1];
|
|
772
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
773
|
-
} finally {
|
|
774
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* @returns {boolean}
|
|
779
|
-
*/
|
|
780
|
-
get isRegistered() {
|
|
781
|
-
const ret = wasm.wasmclient_isRegistered(this.__wbg_ptr);
|
|
782
|
-
return ret !== 0;
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* @returns {string}
|
|
786
|
-
*/
|
|
787
|
-
get installationId() {
|
|
788
|
-
let deferred1_0;
|
|
789
|
-
let deferred1_1;
|
|
790
|
-
try {
|
|
791
|
-
const ret = wasm.wasmclient_installationId(this.__wbg_ptr);
|
|
792
|
-
deferred1_0 = ret[0];
|
|
793
|
-
deferred1_1 = ret[1];
|
|
794
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
795
|
-
} finally {
|
|
796
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* @param {(string)[]} account_addresses
|
|
801
|
-
* @returns {Promise<any>}
|
|
802
|
-
*/
|
|
803
|
-
canMessage(account_addresses) {
|
|
804
|
-
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
805
|
-
const len0 = WASM_VECTOR_LEN;
|
|
806
|
-
const ret = wasm.wasmclient_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
807
|
-
return ret;
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* @returns {Promise<void>}
|
|
811
|
-
*/
|
|
812
|
-
registerIdentity() {
|
|
813
|
-
const ret = wasm.wasmclient_registerIdentity(this.__wbg_ptr);
|
|
814
|
-
return ret;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @returns {Promise<void>}
|
|
818
|
-
*/
|
|
819
|
-
sendHistorySyncRequest() {
|
|
820
|
-
const ret = wasm.wasmclient_sendHistorySyncRequest(this.__wbg_ptr);
|
|
821
|
-
return ret;
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @returns {Promise<void>}
|
|
825
|
-
*/
|
|
826
|
-
sendConsentSyncRequest() {
|
|
827
|
-
const ret = wasm.wasmclient_sendConsentSyncRequest(this.__wbg_ptr);
|
|
828
|
-
return ret;
|
|
829
|
-
}
|
|
830
|
-
/**
|
|
831
|
-
* @param {string} address
|
|
832
|
-
* @returns {Promise<string | undefined>}
|
|
833
|
-
*/
|
|
834
|
-
findInboxIdByAddress(address) {
|
|
835
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
836
|
-
const len0 = WASM_VECTOR_LEN;
|
|
837
|
-
const ret = wasm.wasmclient_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
|
|
564
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
838
565
|
return ret;
|
|
839
566
|
}
|
|
840
|
-
/**
|
|
841
|
-
* @returns {WasmConversations}
|
|
842
|
-
*/
|
|
843
|
-
conversations() {
|
|
844
|
-
const ret = wasm.wasmclient_conversations(this.__wbg_ptr);
|
|
845
|
-
return WasmConversations.__wrap(ret);
|
|
846
|
-
}
|
|
847
567
|
}
|
|
848
568
|
|
|
849
|
-
const
|
|
569
|
+
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
850
570
|
? { register: () => {}, unregister: () => {} }
|
|
851
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
571
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_consent_free(ptr >>> 0, 1));
|
|
852
572
|
|
|
853
|
-
export class
|
|
573
|
+
export class Consent {
|
|
854
574
|
|
|
855
575
|
static __unwrap(jsValue) {
|
|
856
|
-
if (!(jsValue instanceof
|
|
576
|
+
if (!(jsValue instanceof Consent)) {
|
|
857
577
|
return 0;
|
|
858
578
|
}
|
|
859
579
|
return jsValue.__destroy_into_raw();
|
|
@@ -862,39 +582,39 @@ export class WasmConsent {
|
|
|
862
582
|
__destroy_into_raw() {
|
|
863
583
|
const ptr = this.__wbg_ptr;
|
|
864
584
|
this.__wbg_ptr = 0;
|
|
865
|
-
|
|
585
|
+
ConsentFinalization.unregister(this);
|
|
866
586
|
return ptr;
|
|
867
587
|
}
|
|
868
588
|
|
|
869
589
|
free() {
|
|
870
590
|
const ptr = this.__destroy_into_raw();
|
|
871
|
-
wasm.
|
|
591
|
+
wasm.__wbg_consent_free(ptr, 0);
|
|
872
592
|
}
|
|
873
593
|
/**
|
|
874
|
-
* @returns {
|
|
594
|
+
* @returns {ConsentEntityType}
|
|
875
595
|
*/
|
|
876
|
-
get
|
|
877
|
-
const ret = wasm.
|
|
596
|
+
get entityType() {
|
|
597
|
+
const ret = wasm.__wbg_get_consent_entityType(this.__wbg_ptr);
|
|
878
598
|
return ret;
|
|
879
599
|
}
|
|
880
600
|
/**
|
|
881
|
-
* @param {
|
|
601
|
+
* @param {ConsentEntityType} arg0
|
|
882
602
|
*/
|
|
883
|
-
set
|
|
884
|
-
wasm.
|
|
603
|
+
set entityType(arg0) {
|
|
604
|
+
wasm.__wbg_set_consent_entityType(this.__wbg_ptr, arg0);
|
|
885
605
|
}
|
|
886
606
|
/**
|
|
887
|
-
* @returns {
|
|
607
|
+
* @returns {ConsentState}
|
|
888
608
|
*/
|
|
889
609
|
get state() {
|
|
890
|
-
const ret = wasm.
|
|
610
|
+
const ret = wasm.__wbg_get_consent_state(this.__wbg_ptr);
|
|
891
611
|
return ret;
|
|
892
612
|
}
|
|
893
613
|
/**
|
|
894
|
-
* @param {
|
|
614
|
+
* @param {ConsentState} arg0
|
|
895
615
|
*/
|
|
896
616
|
set state(arg0) {
|
|
897
|
-
wasm.
|
|
617
|
+
wasm.__wbg_set_consent_state(this.__wbg_ptr, arg0);
|
|
898
618
|
}
|
|
899
619
|
/**
|
|
900
620
|
* @returns {string}
|
|
@@ -903,7 +623,7 @@ export class WasmConsent {
|
|
|
903
623
|
let deferred1_0;
|
|
904
624
|
let deferred1_1;
|
|
905
625
|
try {
|
|
906
|
-
const ret = wasm.
|
|
626
|
+
const ret = wasm.__wbg_get_consent_entity(this.__wbg_ptr);
|
|
907
627
|
deferred1_0 = ret[0];
|
|
908
628
|
deferred1_1 = ret[1];
|
|
909
629
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -917,56 +637,56 @@ export class WasmConsent {
|
|
|
917
637
|
set entity(arg0) {
|
|
918
638
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
919
639
|
const len0 = WASM_VECTOR_LEN;
|
|
920
|
-
wasm.
|
|
640
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
921
641
|
}
|
|
922
642
|
/**
|
|
923
|
-
* @param {
|
|
924
|
-
* @param {
|
|
643
|
+
* @param {ConsentEntityType} entity_type
|
|
644
|
+
* @param {ConsentState} state
|
|
925
645
|
* @param {string} entity
|
|
926
646
|
*/
|
|
927
647
|
constructor(entity_type, state, entity) {
|
|
928
648
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
929
649
|
const len0 = WASM_VECTOR_LEN;
|
|
930
|
-
const ret = wasm.
|
|
650
|
+
const ret = wasm.consent_new(entity_type, state, ptr0, len0);
|
|
931
651
|
this.__wbg_ptr = ret >>> 0;
|
|
932
|
-
|
|
652
|
+
ConsentFinalization.register(this, this.__wbg_ptr, this);
|
|
933
653
|
return this;
|
|
934
654
|
}
|
|
935
655
|
}
|
|
936
656
|
|
|
937
|
-
const
|
|
657
|
+
const ContentTypeIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
938
658
|
? { register: () => {}, unregister: () => {} }
|
|
939
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
659
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_contenttypeid_free(ptr >>> 0, 1));
|
|
940
660
|
|
|
941
|
-
export class
|
|
661
|
+
export class ContentTypeId {
|
|
942
662
|
|
|
943
663
|
static __wrap(ptr) {
|
|
944
664
|
ptr = ptr >>> 0;
|
|
945
|
-
const obj = Object.create(
|
|
665
|
+
const obj = Object.create(ContentTypeId.prototype);
|
|
946
666
|
obj.__wbg_ptr = ptr;
|
|
947
|
-
|
|
667
|
+
ContentTypeIdFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
948
668
|
return obj;
|
|
949
669
|
}
|
|
950
670
|
|
|
951
671
|
__destroy_into_raw() {
|
|
952
672
|
const ptr = this.__wbg_ptr;
|
|
953
673
|
this.__wbg_ptr = 0;
|
|
954
|
-
|
|
674
|
+
ContentTypeIdFinalization.unregister(this);
|
|
955
675
|
return ptr;
|
|
956
676
|
}
|
|
957
677
|
|
|
958
678
|
free() {
|
|
959
679
|
const ptr = this.__destroy_into_raw();
|
|
960
|
-
wasm.
|
|
680
|
+
wasm.__wbg_contenttypeid_free(ptr, 0);
|
|
961
681
|
}
|
|
962
682
|
/**
|
|
963
683
|
* @returns {string}
|
|
964
684
|
*/
|
|
965
|
-
get
|
|
685
|
+
get authorityId() {
|
|
966
686
|
let deferred1_0;
|
|
967
687
|
let deferred1_1;
|
|
968
688
|
try {
|
|
969
|
-
const ret = wasm.
|
|
689
|
+
const ret = wasm.__wbg_get_contenttypeid_authorityId(this.__wbg_ptr);
|
|
970
690
|
deferred1_0 = ret[0];
|
|
971
691
|
deferred1_1 = ret[1];
|
|
972
692
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -977,19 +697,19 @@ export class WasmContentTypeId {
|
|
|
977
697
|
/**
|
|
978
698
|
* @param {string} arg0
|
|
979
699
|
*/
|
|
980
|
-
set
|
|
700
|
+
set authorityId(arg0) {
|
|
981
701
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
982
702
|
const len0 = WASM_VECTOR_LEN;
|
|
983
|
-
wasm.
|
|
703
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
984
704
|
}
|
|
985
705
|
/**
|
|
986
706
|
* @returns {string}
|
|
987
707
|
*/
|
|
988
|
-
get
|
|
708
|
+
get typeId() {
|
|
989
709
|
let deferred1_0;
|
|
990
710
|
let deferred1_1;
|
|
991
711
|
try {
|
|
992
|
-
const ret = wasm.
|
|
712
|
+
const ret = wasm.__wbg_get_contenttypeid_typeId(this.__wbg_ptr);
|
|
993
713
|
deferred1_0 = ret[0];
|
|
994
714
|
deferred1_1 = ret[1];
|
|
995
715
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1000,36 +720,36 @@ export class WasmContentTypeId {
|
|
|
1000
720
|
/**
|
|
1001
721
|
* @param {string} arg0
|
|
1002
722
|
*/
|
|
1003
|
-
set
|
|
723
|
+
set typeId(arg0) {
|
|
1004
724
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1005
725
|
const len0 = WASM_VECTOR_LEN;
|
|
1006
|
-
wasm.
|
|
726
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
1007
727
|
}
|
|
1008
728
|
/**
|
|
1009
729
|
* @returns {number}
|
|
1010
730
|
*/
|
|
1011
|
-
get
|
|
1012
|
-
const ret = wasm.
|
|
731
|
+
get versionMajor() {
|
|
732
|
+
const ret = wasm.__wbg_get_contenttypeid_versionMajor(this.__wbg_ptr);
|
|
1013
733
|
return ret >>> 0;
|
|
1014
734
|
}
|
|
1015
735
|
/**
|
|
1016
736
|
* @param {number} arg0
|
|
1017
737
|
*/
|
|
1018
|
-
set
|
|
1019
|
-
wasm.
|
|
738
|
+
set versionMajor(arg0) {
|
|
739
|
+
wasm.__wbg_set_contenttypeid_versionMajor(this.__wbg_ptr, arg0);
|
|
1020
740
|
}
|
|
1021
741
|
/**
|
|
1022
742
|
* @returns {number}
|
|
1023
743
|
*/
|
|
1024
|
-
get
|
|
1025
|
-
const ret = wasm.
|
|
744
|
+
get versionMinor() {
|
|
745
|
+
const ret = wasm.__wbg_get_contenttypeid_versionMinor(this.__wbg_ptr);
|
|
1026
746
|
return ret >>> 0;
|
|
1027
747
|
}
|
|
1028
748
|
/**
|
|
1029
749
|
* @param {number} arg0
|
|
1030
750
|
*/
|
|
1031
|
-
set
|
|
1032
|
-
wasm.
|
|
751
|
+
set versionMinor(arg0) {
|
|
752
|
+
wasm.__wbg_set_contenttypeid_versionMinor(this.__wbg_ptr, arg0);
|
|
1033
753
|
}
|
|
1034
754
|
/**
|
|
1035
755
|
* @param {string} authority_id
|
|
@@ -1042,902 +762,902 @@ export class WasmContentTypeId {
|
|
|
1042
762
|
const len0 = WASM_VECTOR_LEN;
|
|
1043
763
|
const ptr1 = passStringToWasm0(type_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1044
764
|
const len1 = WASM_VECTOR_LEN;
|
|
1045
|
-
const ret = wasm.
|
|
765
|
+
const ret = wasm.contenttypeid_new(ptr0, len0, ptr1, len1, version_major, version_minor);
|
|
1046
766
|
this.__wbg_ptr = ret >>> 0;
|
|
1047
|
-
|
|
767
|
+
ContentTypeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
1048
768
|
return this;
|
|
1049
769
|
}
|
|
1050
770
|
}
|
|
1051
771
|
|
|
1052
|
-
const
|
|
772
|
+
const ConversationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1053
773
|
? { register: () => {}, unregister: () => {} }
|
|
1054
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
774
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_conversation_free(ptr >>> 0, 1));
|
|
1055
775
|
|
|
1056
|
-
export class
|
|
776
|
+
export class Conversation {
|
|
1057
777
|
|
|
1058
778
|
static __wrap(ptr) {
|
|
1059
779
|
ptr = ptr >>> 0;
|
|
1060
|
-
const obj = Object.create(
|
|
780
|
+
const obj = Object.create(Conversation.prototype);
|
|
1061
781
|
obj.__wbg_ptr = ptr;
|
|
1062
|
-
|
|
782
|
+
ConversationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1063
783
|
return obj;
|
|
1064
784
|
}
|
|
1065
785
|
|
|
1066
786
|
__destroy_into_raw() {
|
|
1067
787
|
const ptr = this.__wbg_ptr;
|
|
1068
788
|
this.__wbg_ptr = 0;
|
|
1069
|
-
|
|
789
|
+
ConversationFinalization.unregister(this);
|
|
1070
790
|
return ptr;
|
|
1071
791
|
}
|
|
1072
792
|
|
|
1073
793
|
free() {
|
|
1074
794
|
const ptr = this.__destroy_into_raw();
|
|
1075
|
-
wasm.
|
|
795
|
+
wasm.__wbg_conversation_free(ptr, 0);
|
|
1076
796
|
}
|
|
1077
797
|
/**
|
|
1078
|
-
* @
|
|
1079
|
-
* @param {WasmCreateGroupOptions | undefined} [options]
|
|
1080
|
-
* @returns {Promise<WasmGroup>}
|
|
798
|
+
* @returns {ConsentState}
|
|
1081
799
|
*/
|
|
1082
|
-
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
if (!isLikeNone(options)) {
|
|
1087
|
-
_assertClass(options, WasmCreateGroupOptions);
|
|
1088
|
-
ptr1 = options.__destroy_into_raw();
|
|
800
|
+
consentState() {
|
|
801
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
802
|
+
if (ret[2]) {
|
|
803
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1089
804
|
}
|
|
1090
|
-
|
|
1091
|
-
return ret;
|
|
805
|
+
return ret[0];
|
|
1092
806
|
}
|
|
1093
807
|
/**
|
|
1094
|
-
* @param {
|
|
1095
|
-
* @returns {Promise<WasmGroup>}
|
|
808
|
+
* @param {ConsentState} state
|
|
1096
809
|
*/
|
|
1097
|
-
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
810
|
+
updateConsentState(state) {
|
|
811
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
812
|
+
if (ret[1]) {
|
|
813
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
814
|
+
}
|
|
1102
815
|
}
|
|
1103
816
|
/**
|
|
1104
|
-
* @
|
|
1105
|
-
* @returns {WasmGroup}
|
|
817
|
+
* @returns {string}
|
|
1106
818
|
*/
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
819
|
+
id() {
|
|
820
|
+
let deferred1_0;
|
|
821
|
+
let deferred1_1;
|
|
822
|
+
try {
|
|
823
|
+
const ret = wasm.conversation_id(this.__wbg_ptr);
|
|
824
|
+
deferred1_0 = ret[0];
|
|
825
|
+
deferred1_1 = ret[1];
|
|
826
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
827
|
+
} finally {
|
|
828
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1113
829
|
}
|
|
1114
|
-
return WasmGroup.__wrap(ret[0]);
|
|
1115
830
|
}
|
|
1116
831
|
/**
|
|
1117
|
-
* @param {
|
|
1118
|
-
* @returns {
|
|
832
|
+
* @param {EncodedContent} encoded_content
|
|
833
|
+
* @returns {Promise<string>}
|
|
1119
834
|
*/
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
const ret = wasm.
|
|
1124
|
-
|
|
1125
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1126
|
-
}
|
|
1127
|
-
return WasmGroup.__wrap(ret[0]);
|
|
835
|
+
send(encoded_content) {
|
|
836
|
+
_assertClass(encoded_content, EncodedContent);
|
|
837
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
838
|
+
const ret = wasm.conversation_send(this.__wbg_ptr, ptr0);
|
|
839
|
+
return ret;
|
|
1128
840
|
}
|
|
1129
841
|
/**
|
|
1130
|
-
*
|
|
1131
|
-
* @
|
|
842
|
+
* send a message without immediately publishing to the delivery service.
|
|
843
|
+
* @param {EncodedContent} encoded_content
|
|
844
|
+
* @returns {string}
|
|
1132
845
|
*/
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
846
|
+
sendOptimistic(encoded_content) {
|
|
847
|
+
let deferred3_0;
|
|
848
|
+
let deferred3_1;
|
|
849
|
+
try {
|
|
850
|
+
_assertClass(encoded_content, EncodedContent);
|
|
851
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
852
|
+
const ret = wasm.conversation_sendOptimistic(this.__wbg_ptr, ptr0);
|
|
853
|
+
var ptr2 = ret[0];
|
|
854
|
+
var len2 = ret[1];
|
|
855
|
+
if (ret[3]) {
|
|
856
|
+
ptr2 = 0; len2 = 0;
|
|
857
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
858
|
+
}
|
|
859
|
+
deferred3_0 = ptr2;
|
|
860
|
+
deferred3_1 = len2;
|
|
861
|
+
return getStringFromWasm0(ptr2, len2);
|
|
862
|
+
} finally {
|
|
863
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
1139
864
|
}
|
|
1140
|
-
return WasmMessage.__wrap(ret[0]);
|
|
1141
865
|
}
|
|
1142
866
|
/**
|
|
867
|
+
* Publish all unpublished messages
|
|
1143
868
|
* @returns {Promise<void>}
|
|
1144
869
|
*/
|
|
1145
|
-
|
|
1146
|
-
const ret = wasm.
|
|
870
|
+
publishMessages() {
|
|
871
|
+
const ret = wasm.conversation_publishMessages(this.__wbg_ptr);
|
|
1147
872
|
return ret;
|
|
1148
873
|
}
|
|
1149
874
|
/**
|
|
1150
|
-
* @
|
|
1151
|
-
* @returns {Promise<Array<any>>}
|
|
875
|
+
* @returns {Promise<void>}
|
|
1152
876
|
*/
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
if (!isLikeNone(opts)) {
|
|
1156
|
-
_assertClass(opts, WasmListConversationsOptions);
|
|
1157
|
-
ptr0 = opts.__destroy_into_raw();
|
|
1158
|
-
}
|
|
1159
|
-
const ret = wasm.wasmconversations_list(this.__wbg_ptr, ptr0);
|
|
877
|
+
sync() {
|
|
878
|
+
const ret = wasm.conversation_sync(this.__wbg_ptr);
|
|
1160
879
|
return ret;
|
|
1161
880
|
}
|
|
1162
881
|
/**
|
|
1163
|
-
* @param {
|
|
1164
|
-
* @returns {
|
|
882
|
+
* @param {ListMessagesOptions | undefined} [opts]
|
|
883
|
+
* @returns {(Message)[]}
|
|
1165
884
|
*/
|
|
1166
|
-
|
|
885
|
+
findMessages(opts) {
|
|
1167
886
|
let ptr0 = 0;
|
|
1168
887
|
if (!isLikeNone(opts)) {
|
|
1169
|
-
_assertClass(opts,
|
|
888
|
+
_assertClass(opts, ListMessagesOptions);
|
|
1170
889
|
ptr0 = opts.__destroy_into_raw();
|
|
1171
890
|
}
|
|
1172
|
-
const ret = wasm.
|
|
891
|
+
const ret = wasm.conversation_findMessages(this.__wbg_ptr, ptr0);
|
|
892
|
+
if (ret[3]) {
|
|
893
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
894
|
+
}
|
|
895
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
896
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
897
|
+
return v2;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* @returns {Promise<any>}
|
|
901
|
+
*/
|
|
902
|
+
listMembers() {
|
|
903
|
+
const ret = wasm.conversation_listMembers(this.__wbg_ptr);
|
|
1173
904
|
return ret;
|
|
1174
905
|
}
|
|
1175
906
|
/**
|
|
1176
|
-
* @
|
|
1177
|
-
* @returns {Promise<Array<any>>}
|
|
907
|
+
* @returns {(string)[]}
|
|
1178
908
|
*/
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1183
|
-
ptr0 = opts.__destroy_into_raw();
|
|
909
|
+
adminList() {
|
|
910
|
+
const ret = wasm.conversation_adminList(this.__wbg_ptr);
|
|
911
|
+
if (ret[3]) {
|
|
912
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1184
913
|
}
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
const WasmCreateGroupOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1191
|
-
? { register: () => {}, unregister: () => {} }
|
|
1192
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcreategroupoptions_free(ptr >>> 0, 1));
|
|
1193
|
-
|
|
1194
|
-
export class WasmCreateGroupOptions {
|
|
1195
|
-
|
|
1196
|
-
__destroy_into_raw() {
|
|
1197
|
-
const ptr = this.__wbg_ptr;
|
|
1198
|
-
this.__wbg_ptr = 0;
|
|
1199
|
-
WasmCreateGroupOptionsFinalization.unregister(this);
|
|
1200
|
-
return ptr;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
free() {
|
|
1204
|
-
const ptr = this.__destroy_into_raw();
|
|
1205
|
-
wasm.__wbg_wasmcreategroupoptions_free(ptr, 0);
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* @returns {WasmGroupPermissionsOptions | undefined}
|
|
1209
|
-
*/
|
|
1210
|
-
get permissions() {
|
|
1211
|
-
const ret = wasm.__wbg_get_wasmcreategroupoptions_permissions(this.__wbg_ptr);
|
|
1212
|
-
return ret === 3 ? undefined : ret;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* @param {WasmGroupPermissionsOptions | undefined} [arg0]
|
|
1216
|
-
*/
|
|
1217
|
-
set permissions(arg0) {
|
|
1218
|
-
wasm.__wbg_set_wasmcreategroupoptions_permissions(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
914
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
915
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
916
|
+
return v1;
|
|
1219
917
|
}
|
|
1220
918
|
/**
|
|
1221
|
-
* @returns {string
|
|
919
|
+
* @returns {(string)[]}
|
|
1222
920
|
*/
|
|
1223
|
-
|
|
1224
|
-
const ret = wasm.
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1228
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
921
|
+
superAdminList() {
|
|
922
|
+
const ret = wasm.conversation_superAdminList(this.__wbg_ptr);
|
|
923
|
+
if (ret[3]) {
|
|
924
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1229
925
|
}
|
|
926
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
927
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1230
928
|
return v1;
|
|
1231
929
|
}
|
|
1232
930
|
/**
|
|
1233
|
-
* @param {string
|
|
931
|
+
* @param {string} inbox_id
|
|
932
|
+
* @returns {boolean}
|
|
1234
933
|
*/
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
wasm.
|
|
934
|
+
isAdmin(inbox_id) {
|
|
935
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
936
|
+
const len0 = WASM_VECTOR_LEN;
|
|
937
|
+
const ret = wasm.conversation_isAdmin(this.__wbg_ptr, ptr0, len0);
|
|
938
|
+
if (ret[2]) {
|
|
939
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
940
|
+
}
|
|
941
|
+
return ret[0] !== 0;
|
|
1239
942
|
}
|
|
1240
943
|
/**
|
|
1241
|
-
* @
|
|
944
|
+
* @param {string} inbox_id
|
|
945
|
+
* @returns {boolean}
|
|
1242
946
|
*/
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
947
|
+
isSuperAdmin(inbox_id) {
|
|
948
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
949
|
+
const len0 = WASM_VECTOR_LEN;
|
|
950
|
+
const ret = wasm.conversation_isSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
951
|
+
if (ret[2]) {
|
|
952
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1249
953
|
}
|
|
1250
|
-
return
|
|
954
|
+
return ret[0] !== 0;
|
|
1251
955
|
}
|
|
1252
956
|
/**
|
|
1253
|
-
* @param {string
|
|
957
|
+
* @param {(string)[]} account_addresses
|
|
958
|
+
* @returns {Promise<void>}
|
|
1254
959
|
*/
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
wasm.
|
|
960
|
+
addMembers(account_addresses) {
|
|
961
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
962
|
+
const len0 = WASM_VECTOR_LEN;
|
|
963
|
+
const ret = wasm.conversation_addMembers(this.__wbg_ptr, ptr0, len0);
|
|
964
|
+
return ret;
|
|
1259
965
|
}
|
|
1260
966
|
/**
|
|
1261
|
-
* @
|
|
967
|
+
* @param {string} inbox_id
|
|
968
|
+
* @returns {Promise<void>}
|
|
1262
969
|
*/
|
|
1263
|
-
|
|
1264
|
-
const
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1269
|
-
}
|
|
1270
|
-
return v1;
|
|
970
|
+
addAdmin(inbox_id) {
|
|
971
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
972
|
+
const len0 = WASM_VECTOR_LEN;
|
|
973
|
+
const ret = wasm.conversation_addAdmin(this.__wbg_ptr, ptr0, len0);
|
|
974
|
+
return ret;
|
|
1271
975
|
}
|
|
1272
976
|
/**
|
|
1273
|
-
* @param {string
|
|
977
|
+
* @param {string} inbox_id
|
|
978
|
+
* @returns {Promise<void>}
|
|
1274
979
|
*/
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
wasm.
|
|
980
|
+
removeAdmin(inbox_id) {
|
|
981
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
982
|
+
const len0 = WASM_VECTOR_LEN;
|
|
983
|
+
const ret = wasm.conversation_removeAdmin(this.__wbg_ptr, ptr0, len0);
|
|
984
|
+
return ret;
|
|
1279
985
|
}
|
|
1280
986
|
/**
|
|
1281
|
-
* @
|
|
987
|
+
* @param {string} inbox_id
|
|
988
|
+
* @returns {Promise<void>}
|
|
1282
989
|
*/
|
|
1283
|
-
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1289
|
-
}
|
|
1290
|
-
return v1;
|
|
990
|
+
addSuperAdmin(inbox_id) {
|
|
991
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
992
|
+
const len0 = WASM_VECTOR_LEN;
|
|
993
|
+
const ret = wasm.conversation_addSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
994
|
+
return ret;
|
|
1291
995
|
}
|
|
1292
996
|
/**
|
|
1293
|
-
* @param {string
|
|
997
|
+
* @param {string} inbox_id
|
|
998
|
+
* @returns {Promise<void>}
|
|
1294
999
|
*/
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
wasm.
|
|
1000
|
+
removeSuperAdmin(inbox_id) {
|
|
1001
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1002
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1003
|
+
const ret = wasm.conversation_removeSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1004
|
+
return ret;
|
|
1299
1005
|
}
|
|
1300
1006
|
/**
|
|
1301
|
-
* @
|
|
1302
|
-
* @param {string | undefined} [group_name]
|
|
1303
|
-
* @param {string | undefined} [group_image_url_square]
|
|
1304
|
-
* @param {string | undefined} [group_description]
|
|
1305
|
-
* @param {string | undefined} [group_pinned_frame_url]
|
|
1007
|
+
* @returns {GroupPermissions}
|
|
1306
1008
|
*/
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
var len2 = WASM_VECTOR_LEN;
|
|
1314
|
-
var ptr3 = isLikeNone(group_pinned_frame_url) ? 0 : passStringToWasm0(group_pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1315
|
-
var len3 = WASM_VECTOR_LEN;
|
|
1316
|
-
const ret = wasm.wasmcreategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1317
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1318
|
-
WasmCreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1319
|
-
return this;
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
const WasmEncodedContentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1324
|
-
? { register: () => {}, unregister: () => {} }
|
|
1325
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencodedcontent_free(ptr >>> 0, 1));
|
|
1326
|
-
|
|
1327
|
-
export class WasmEncodedContent {
|
|
1328
|
-
|
|
1329
|
-
static __wrap(ptr) {
|
|
1330
|
-
ptr = ptr >>> 0;
|
|
1331
|
-
const obj = Object.create(WasmEncodedContent.prototype);
|
|
1332
|
-
obj.__wbg_ptr = ptr;
|
|
1333
|
-
WasmEncodedContentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1334
|
-
return obj;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
__destroy_into_raw() {
|
|
1338
|
-
const ptr = this.__wbg_ptr;
|
|
1339
|
-
this.__wbg_ptr = 0;
|
|
1340
|
-
WasmEncodedContentFinalization.unregister(this);
|
|
1341
|
-
return ptr;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
free() {
|
|
1345
|
-
const ptr = this.__destroy_into_raw();
|
|
1346
|
-
wasm.__wbg_wasmencodedcontent_free(ptr, 0);
|
|
1009
|
+
groupPermissions() {
|
|
1010
|
+
const ret = wasm.conversation_groupPermissions(this.__wbg_ptr);
|
|
1011
|
+
if (ret[2]) {
|
|
1012
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1013
|
+
}
|
|
1014
|
+
return GroupPermissions.__wrap(ret[0]);
|
|
1347
1015
|
}
|
|
1348
1016
|
/**
|
|
1349
|
-
* @
|
|
1017
|
+
* @param {(string)[]} inbox_ids
|
|
1018
|
+
* @returns {Promise<void>}
|
|
1350
1019
|
*/
|
|
1351
|
-
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1020
|
+
addMembersByInboxId(inbox_ids) {
|
|
1021
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1022
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1023
|
+
const ret = wasm.conversation_addMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1024
|
+
return ret;
|
|
1354
1025
|
}
|
|
1355
1026
|
/**
|
|
1356
|
-
* @param {
|
|
1027
|
+
* @param {(string)[]} account_addresses
|
|
1028
|
+
* @returns {Promise<void>}
|
|
1357
1029
|
*/
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
wasm.__wbg_set_wasmencodedcontent_type(this.__wbg_ptr, ptr0);
|
|
1030
|
+
removeMembers(account_addresses) {
|
|
1031
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1032
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1033
|
+
const ret = wasm.conversation_removeMembers(this.__wbg_ptr, ptr0, len0);
|
|
1034
|
+
return ret;
|
|
1365
1035
|
}
|
|
1366
1036
|
/**
|
|
1367
|
-
* @
|
|
1037
|
+
* @param {(string)[]} inbox_ids
|
|
1038
|
+
* @returns {Promise<void>}
|
|
1368
1039
|
*/
|
|
1369
|
-
|
|
1370
|
-
const
|
|
1040
|
+
removeMembersByInboxId(inbox_ids) {
|
|
1041
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1042
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1043
|
+
const ret = wasm.conversation_removeMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1371
1044
|
return ret;
|
|
1372
1045
|
}
|
|
1373
1046
|
/**
|
|
1374
|
-
* @param {
|
|
1047
|
+
* @param {string} group_name
|
|
1048
|
+
* @returns {Promise<void>}
|
|
1375
1049
|
*/
|
|
1376
|
-
|
|
1377
|
-
wasm.
|
|
1050
|
+
updateGroupName(group_name) {
|
|
1051
|
+
const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1052
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1053
|
+
const ret = wasm.conversation_updateGroupName(this.__wbg_ptr, ptr0, len0);
|
|
1054
|
+
return ret;
|
|
1378
1055
|
}
|
|
1379
1056
|
/**
|
|
1380
|
-
* @returns {string
|
|
1057
|
+
* @returns {string}
|
|
1381
1058
|
*/
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
let
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1059
|
+
groupName() {
|
|
1060
|
+
let deferred2_0;
|
|
1061
|
+
let deferred2_1;
|
|
1062
|
+
try {
|
|
1063
|
+
const ret = wasm.conversation_groupName(this.__wbg_ptr);
|
|
1064
|
+
var ptr1 = ret[0];
|
|
1065
|
+
var len1 = ret[1];
|
|
1066
|
+
if (ret[3]) {
|
|
1067
|
+
ptr1 = 0; len1 = 0;
|
|
1068
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1069
|
+
}
|
|
1070
|
+
deferred2_0 = ptr1;
|
|
1071
|
+
deferred2_1 = len1;
|
|
1072
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1073
|
+
} finally {
|
|
1074
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1388
1075
|
}
|
|
1389
|
-
return v1;
|
|
1390
1076
|
}
|
|
1391
1077
|
/**
|
|
1392
|
-
* @param {string
|
|
1078
|
+
* @param {string} group_image_url_square
|
|
1079
|
+
* @returns {Promise<void>}
|
|
1393
1080
|
*/
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
wasm.
|
|
1081
|
+
updateGroupImageUrlSquare(group_image_url_square) {
|
|
1082
|
+
const ptr0 = passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1083
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1084
|
+
const ret = wasm.conversation_updateGroupImageUrlSquare(this.__wbg_ptr, ptr0, len0);
|
|
1085
|
+
return ret;
|
|
1398
1086
|
}
|
|
1399
1087
|
/**
|
|
1400
|
-
* @returns {
|
|
1088
|
+
* @returns {string}
|
|
1401
1089
|
*/
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1090
|
+
groupImageUrlSquare() {
|
|
1091
|
+
let deferred2_0;
|
|
1092
|
+
let deferred2_1;
|
|
1093
|
+
try {
|
|
1094
|
+
const ret = wasm.conversation_groupImageUrlSquare(this.__wbg_ptr);
|
|
1095
|
+
var ptr1 = ret[0];
|
|
1096
|
+
var len1 = ret[1];
|
|
1097
|
+
if (ret[3]) {
|
|
1098
|
+
ptr1 = 0; len1 = 0;
|
|
1099
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1100
|
+
}
|
|
1101
|
+
deferred2_0 = ptr1;
|
|
1102
|
+
deferred2_1 = len1;
|
|
1103
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1104
|
+
} finally {
|
|
1105
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1106
|
+
}
|
|
1405
1107
|
}
|
|
1406
1108
|
/**
|
|
1407
|
-
* @param {
|
|
1109
|
+
* @param {string} group_description
|
|
1110
|
+
* @returns {Promise<void>}
|
|
1408
1111
|
*/
|
|
1409
|
-
|
|
1410
|
-
|
|
1112
|
+
updateGroupDescription(group_description) {
|
|
1113
|
+
const ptr0 = passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1114
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1115
|
+
const ret = wasm.conversation_updateGroupDescription(this.__wbg_ptr, ptr0, len0);
|
|
1116
|
+
return ret;
|
|
1411
1117
|
}
|
|
1412
1118
|
/**
|
|
1413
|
-
* @returns {
|
|
1119
|
+
* @returns {string}
|
|
1414
1120
|
*/
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1121
|
+
groupDescription() {
|
|
1122
|
+
let deferred2_0;
|
|
1123
|
+
let deferred2_1;
|
|
1124
|
+
try {
|
|
1125
|
+
const ret = wasm.conversation_groupDescription(this.__wbg_ptr);
|
|
1126
|
+
var ptr1 = ret[0];
|
|
1127
|
+
var len1 = ret[1];
|
|
1128
|
+
if (ret[3]) {
|
|
1129
|
+
ptr1 = 0; len1 = 0;
|
|
1130
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1131
|
+
}
|
|
1132
|
+
deferred2_0 = ptr1;
|
|
1133
|
+
deferred2_1 = len1;
|
|
1134
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1135
|
+
} finally {
|
|
1136
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1137
|
+
}
|
|
1418
1138
|
}
|
|
1419
1139
|
/**
|
|
1420
|
-
* @param {
|
|
1140
|
+
* @param {string} pinned_frame_url
|
|
1141
|
+
* @returns {Promise<void>}
|
|
1421
1142
|
*/
|
|
1422
|
-
|
|
1423
|
-
wasm.
|
|
1143
|
+
updateGroupPinnedFrameUrl(pinned_frame_url) {
|
|
1144
|
+
const ptr0 = passStringToWasm0(pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1145
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1146
|
+
const ret = wasm.conversation_updateGroupPinnedFrameUrl(this.__wbg_ptr, ptr0, len0);
|
|
1147
|
+
return ret;
|
|
1424
1148
|
}
|
|
1425
1149
|
/**
|
|
1426
|
-
* @
|
|
1427
|
-
* @param {any} parameters
|
|
1428
|
-
* @param {string | undefined} fallback
|
|
1429
|
-
* @param {number | undefined} compression
|
|
1430
|
-
* @param {Uint8Array} content
|
|
1150
|
+
* @returns {string}
|
|
1431
1151
|
*/
|
|
1432
|
-
|
|
1433
|
-
let
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1152
|
+
groupPinnedFrameUrl() {
|
|
1153
|
+
let deferred2_0;
|
|
1154
|
+
let deferred2_1;
|
|
1155
|
+
try {
|
|
1156
|
+
const ret = wasm.conversation_groupPinnedFrameUrl(this.__wbg_ptr);
|
|
1157
|
+
var ptr1 = ret[0];
|
|
1158
|
+
var len1 = ret[1];
|
|
1159
|
+
if (ret[3]) {
|
|
1160
|
+
ptr1 = 0; len1 = 0;
|
|
1161
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1162
|
+
}
|
|
1163
|
+
deferred2_0 = ptr1;
|
|
1164
|
+
deferred2_1 = len1;
|
|
1165
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1166
|
+
} finally {
|
|
1167
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1437
1168
|
}
|
|
1438
|
-
var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1439
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1440
|
-
const ret = wasm.wasmencodedcontent_new(ptr0, parameters, ptr1, len1, !isLikeNone(compression), isLikeNone(compression) ? 0 : compression, content);
|
|
1441
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1442
|
-
WasmEncodedContentFinalization.register(this, this.__wbg_ptr, this);
|
|
1443
|
-
return this;
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
const WasmGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1448
|
-
? { register: () => {}, unregister: () => {} }
|
|
1449
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgroup_free(ptr >>> 0, 1));
|
|
1450
|
-
|
|
1451
|
-
export class WasmGroup {
|
|
1452
|
-
|
|
1453
|
-
static __wrap(ptr) {
|
|
1454
|
-
ptr = ptr >>> 0;
|
|
1455
|
-
const obj = Object.create(WasmGroup.prototype);
|
|
1456
|
-
obj.__wbg_ptr = ptr;
|
|
1457
|
-
WasmGroupFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1458
|
-
return obj;
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
__destroy_into_raw() {
|
|
1462
|
-
const ptr = this.__wbg_ptr;
|
|
1463
|
-
this.__wbg_ptr = 0;
|
|
1464
|
-
WasmGroupFinalization.unregister(this);
|
|
1465
|
-
return ptr;
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
free() {
|
|
1469
|
-
const ptr = this.__destroy_into_raw();
|
|
1470
|
-
wasm.__wbg_wasmgroup_free(ptr, 0);
|
|
1471
1169
|
}
|
|
1472
1170
|
/**
|
|
1473
|
-
* @returns {
|
|
1171
|
+
* @returns {bigint}
|
|
1474
1172
|
*/
|
|
1475
|
-
|
|
1476
|
-
const ret = wasm.
|
|
1477
|
-
|
|
1478
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1479
|
-
}
|
|
1480
|
-
return ret[0];
|
|
1173
|
+
createdAtNs() {
|
|
1174
|
+
const ret = wasm.conversation_createdAtNs(this.__wbg_ptr);
|
|
1175
|
+
return ret;
|
|
1481
1176
|
}
|
|
1482
1177
|
/**
|
|
1483
|
-
* @
|
|
1178
|
+
* @returns {boolean}
|
|
1484
1179
|
*/
|
|
1485
|
-
|
|
1486
|
-
const ret = wasm.
|
|
1487
|
-
if (ret[
|
|
1488
|
-
throw takeFromExternrefTable0(ret[
|
|
1180
|
+
isActive() {
|
|
1181
|
+
const ret = wasm.conversation_isActive(this.__wbg_ptr);
|
|
1182
|
+
if (ret[2]) {
|
|
1183
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1489
1184
|
}
|
|
1185
|
+
return ret[0] !== 0;
|
|
1490
1186
|
}
|
|
1491
1187
|
/**
|
|
1492
1188
|
* @returns {string}
|
|
1493
1189
|
*/
|
|
1494
|
-
|
|
1495
|
-
let
|
|
1496
|
-
let
|
|
1190
|
+
addedByInboxId() {
|
|
1191
|
+
let deferred2_0;
|
|
1192
|
+
let deferred2_1;
|
|
1497
1193
|
try {
|
|
1498
|
-
const ret = wasm.
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1194
|
+
const ret = wasm.conversation_addedByInboxId(this.__wbg_ptr);
|
|
1195
|
+
var ptr1 = ret[0];
|
|
1196
|
+
var len1 = ret[1];
|
|
1197
|
+
if (ret[3]) {
|
|
1198
|
+
ptr1 = 0; len1 = 0;
|
|
1199
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1200
|
+
}
|
|
1201
|
+
deferred2_0 = ptr1;
|
|
1202
|
+
deferred2_1 = len1;
|
|
1203
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1502
1204
|
} finally {
|
|
1503
|
-
wasm.__wbindgen_free(
|
|
1205
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1504
1206
|
}
|
|
1505
1207
|
}
|
|
1506
1208
|
/**
|
|
1507
|
-
* @
|
|
1508
|
-
* @returns {Promise<string>}
|
|
1209
|
+
* @returns {GroupMetadata}
|
|
1509
1210
|
*/
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1211
|
+
groupMetadata() {
|
|
1212
|
+
const ret = wasm.conversation_groupMetadata(this.__wbg_ptr);
|
|
1213
|
+
if (ret[2]) {
|
|
1214
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1215
|
+
}
|
|
1216
|
+
return GroupMetadata.__wrap(ret[0]);
|
|
1515
1217
|
}
|
|
1516
1218
|
/**
|
|
1517
|
-
* send a message without immediately publishing to the delivery service.
|
|
1518
|
-
* @param {WasmEncodedContent} encoded_content
|
|
1519
1219
|
* @returns {string}
|
|
1520
1220
|
*/
|
|
1521
|
-
|
|
1522
|
-
let
|
|
1523
|
-
let
|
|
1221
|
+
dmPeerInboxId() {
|
|
1222
|
+
let deferred2_0;
|
|
1223
|
+
let deferred2_1;
|
|
1524
1224
|
try {
|
|
1525
|
-
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1528
|
-
var ptr2 = ret[0];
|
|
1529
|
-
var len2 = ret[1];
|
|
1225
|
+
const ret = wasm.conversation_dmPeerInboxId(this.__wbg_ptr);
|
|
1226
|
+
var ptr1 = ret[0];
|
|
1227
|
+
var len1 = ret[1];
|
|
1530
1228
|
if (ret[3]) {
|
|
1531
|
-
|
|
1229
|
+
ptr1 = 0; len1 = 0;
|
|
1532
1230
|
throw takeFromExternrefTable0(ret[2]);
|
|
1533
1231
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
return getStringFromWasm0(
|
|
1232
|
+
deferred2_0 = ptr1;
|
|
1233
|
+
deferred2_1 = len1;
|
|
1234
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1537
1235
|
} finally {
|
|
1538
|
-
wasm.__wbindgen_free(
|
|
1236
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1539
1237
|
}
|
|
1540
1238
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
const ConversationsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1242
|
+
? { register: () => {}, unregister: () => {} }
|
|
1243
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_conversations_free(ptr >>> 0, 1));
|
|
1244
|
+
|
|
1245
|
+
export class Conversations {
|
|
1246
|
+
|
|
1247
|
+
static __wrap(ptr) {
|
|
1248
|
+
ptr = ptr >>> 0;
|
|
1249
|
+
const obj = Object.create(Conversations.prototype);
|
|
1250
|
+
obj.__wbg_ptr = ptr;
|
|
1251
|
+
ConversationsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1252
|
+
return obj;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
__destroy_into_raw() {
|
|
1256
|
+
const ptr = this.__wbg_ptr;
|
|
1257
|
+
this.__wbg_ptr = 0;
|
|
1258
|
+
ConversationsFinalization.unregister(this);
|
|
1259
|
+
return ptr;
|
|
1548
1260
|
}
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
const ret = wasm.wasmgroup_sync(this.__wbg_ptr);
|
|
1554
|
-
return ret;
|
|
1261
|
+
|
|
1262
|
+
free() {
|
|
1263
|
+
const ptr = this.__destroy_into_raw();
|
|
1264
|
+
wasm.__wbg_conversations_free(ptr, 0);
|
|
1555
1265
|
}
|
|
1556
1266
|
/**
|
|
1557
|
-
* @param {
|
|
1558
|
-
* @
|
|
1267
|
+
* @param {(string)[]} account_addresses
|
|
1268
|
+
* @param {CreateGroupOptions | undefined} [options]
|
|
1269
|
+
* @returns {Promise<Conversation>}
|
|
1559
1270
|
*/
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
if (ret[3]) {
|
|
1568
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1271
|
+
createGroup(account_addresses, options) {
|
|
1272
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1273
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1274
|
+
let ptr1 = 0;
|
|
1275
|
+
if (!isLikeNone(options)) {
|
|
1276
|
+
_assertClass(options, CreateGroupOptions);
|
|
1277
|
+
ptr1 = options.__destroy_into_raw();
|
|
1569
1278
|
}
|
|
1570
|
-
|
|
1571
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1572
|
-
return v2;
|
|
1573
|
-
}
|
|
1574
|
-
/**
|
|
1575
|
-
* @returns {Promise<any>}
|
|
1576
|
-
*/
|
|
1577
|
-
list_members() {
|
|
1578
|
-
const ret = wasm.wasmgroup_list_members(this.__wbg_ptr);
|
|
1279
|
+
const ret = wasm.conversations_createGroup(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
1579
1280
|
return ret;
|
|
1580
1281
|
}
|
|
1581
1282
|
/**
|
|
1582
|
-
* @
|
|
1283
|
+
* @param {string} account_address
|
|
1284
|
+
* @returns {Promise<Conversation>}
|
|
1583
1285
|
*/
|
|
1584
|
-
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1590
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1591
|
-
return v1;
|
|
1286
|
+
createDm(account_address) {
|
|
1287
|
+
const ptr0 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1288
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1289
|
+
const ret = wasm.conversations_createDm(this.__wbg_ptr, ptr0, len0);
|
|
1290
|
+
return ret;
|
|
1592
1291
|
}
|
|
1593
1292
|
/**
|
|
1594
|
-
* @
|
|
1293
|
+
* @param {string} group_id
|
|
1294
|
+
* @returns {Conversation}
|
|
1595
1295
|
*/
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1599
|
-
|
|
1296
|
+
findGroupById(group_id) {
|
|
1297
|
+
const ptr0 = passStringToWasm0(group_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1298
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1299
|
+
const ret = wasm.conversations_findGroupById(this.__wbg_ptr, ptr0, len0);
|
|
1300
|
+
if (ret[2]) {
|
|
1301
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1600
1302
|
}
|
|
1601
|
-
|
|
1602
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1603
|
-
return v1;
|
|
1303
|
+
return Conversation.__wrap(ret[0]);
|
|
1604
1304
|
}
|
|
1605
1305
|
/**
|
|
1606
|
-
* @param {string}
|
|
1607
|
-
* @returns {
|
|
1306
|
+
* @param {string} target_inbox_id
|
|
1307
|
+
* @returns {Conversation}
|
|
1608
1308
|
*/
|
|
1609
|
-
|
|
1610
|
-
const ptr0 = passStringToWasm0(
|
|
1309
|
+
findDmByTargetInboxId(target_inbox_id) {
|
|
1310
|
+
const ptr0 = passStringToWasm0(target_inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1611
1311
|
const len0 = WASM_VECTOR_LEN;
|
|
1612
|
-
const ret = wasm.
|
|
1312
|
+
const ret = wasm.conversations_findDmByTargetInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1613
1313
|
if (ret[2]) {
|
|
1614
1314
|
throw takeFromExternrefTable0(ret[1]);
|
|
1615
1315
|
}
|
|
1616
|
-
return ret[0]
|
|
1316
|
+
return Conversation.__wrap(ret[0]);
|
|
1617
1317
|
}
|
|
1618
1318
|
/**
|
|
1619
|
-
* @param {string}
|
|
1620
|
-
* @returns {
|
|
1319
|
+
* @param {string} message_id
|
|
1320
|
+
* @returns {Message}
|
|
1621
1321
|
*/
|
|
1622
|
-
|
|
1623
|
-
const ptr0 = passStringToWasm0(
|
|
1322
|
+
findMessageById(message_id) {
|
|
1323
|
+
const ptr0 = passStringToWasm0(message_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1624
1324
|
const len0 = WASM_VECTOR_LEN;
|
|
1625
|
-
const ret = wasm.
|
|
1325
|
+
const ret = wasm.conversations_findMessageById(this.__wbg_ptr, ptr0, len0);
|
|
1626
1326
|
if (ret[2]) {
|
|
1627
1327
|
throw takeFromExternrefTable0(ret[1]);
|
|
1628
1328
|
}
|
|
1629
|
-
return ret[0]
|
|
1329
|
+
return Message.__wrap(ret[0]);
|
|
1630
1330
|
}
|
|
1631
1331
|
/**
|
|
1632
|
-
* @param {(string)[]} account_addresses
|
|
1633
1332
|
* @returns {Promise<void>}
|
|
1634
1333
|
*/
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1638
|
-
const ret = wasm.wasmgroup_add_members(this.__wbg_ptr, ptr0, len0);
|
|
1334
|
+
sync() {
|
|
1335
|
+
const ret = wasm.conversations_sync(this.__wbg_ptr);
|
|
1639
1336
|
return ret;
|
|
1640
1337
|
}
|
|
1641
1338
|
/**
|
|
1642
|
-
* @param {
|
|
1643
|
-
* @returns {Promise<
|
|
1339
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
1340
|
+
* @returns {Promise<Array<any>>}
|
|
1644
1341
|
*/
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1342
|
+
list(opts) {
|
|
1343
|
+
let ptr0 = 0;
|
|
1344
|
+
if (!isLikeNone(opts)) {
|
|
1345
|
+
_assertClass(opts, ListConversationsOptions);
|
|
1346
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1347
|
+
}
|
|
1348
|
+
const ret = wasm.conversations_list(this.__wbg_ptr, ptr0);
|
|
1649
1349
|
return ret;
|
|
1650
1350
|
}
|
|
1651
1351
|
/**
|
|
1652
|
-
* @param {
|
|
1653
|
-
* @returns {Promise<
|
|
1352
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
1353
|
+
* @returns {Promise<Array<any>>}
|
|
1654
1354
|
*/
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1355
|
+
listGroups(opts) {
|
|
1356
|
+
let ptr0 = 0;
|
|
1357
|
+
if (!isLikeNone(opts)) {
|
|
1358
|
+
_assertClass(opts, ListConversationsOptions);
|
|
1359
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1360
|
+
}
|
|
1361
|
+
const ret = wasm.conversations_listGroups(this.__wbg_ptr, ptr0);
|
|
1659
1362
|
return ret;
|
|
1660
1363
|
}
|
|
1661
1364
|
/**
|
|
1662
|
-
* @param {
|
|
1663
|
-
* @returns {Promise<
|
|
1365
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
1366
|
+
* @returns {Promise<Array<any>>}
|
|
1664
1367
|
*/
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1368
|
+
listDms(opts) {
|
|
1369
|
+
let ptr0 = 0;
|
|
1370
|
+
if (!isLikeNone(opts)) {
|
|
1371
|
+
_assertClass(opts, ListConversationsOptions);
|
|
1372
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1373
|
+
}
|
|
1374
|
+
const ret = wasm.conversations_listDms(this.__wbg_ptr, ptr0);
|
|
1669
1375
|
return ret;
|
|
1670
1376
|
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
const CreateGroupOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1380
|
+
? { register: () => {}, unregister: () => {} }
|
|
1381
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_creategroupoptions_free(ptr >>> 0, 1));
|
|
1382
|
+
|
|
1383
|
+
export class CreateGroupOptions {
|
|
1384
|
+
|
|
1385
|
+
__destroy_into_raw() {
|
|
1386
|
+
const ptr = this.__wbg_ptr;
|
|
1387
|
+
this.__wbg_ptr = 0;
|
|
1388
|
+
CreateGroupOptionsFinalization.unregister(this);
|
|
1389
|
+
return ptr;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
free() {
|
|
1393
|
+
const ptr = this.__destroy_into_raw();
|
|
1394
|
+
wasm.__wbg_creategroupoptions_free(ptr, 0);
|
|
1395
|
+
}
|
|
1671
1396
|
/**
|
|
1672
|
-
* @
|
|
1673
|
-
* @returns {Promise<void>}
|
|
1397
|
+
* @returns {GroupPermissionsOptions | undefined}
|
|
1674
1398
|
*/
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
const ret = wasm.wasmgroup_remove_super_admin(this.__wbg_ptr, ptr0, len0);
|
|
1679
|
-
return ret;
|
|
1399
|
+
get permissions() {
|
|
1400
|
+
const ret = wasm.__wbg_get_creategroupoptions_permissions(this.__wbg_ptr);
|
|
1401
|
+
return ret === 3 ? undefined : ret;
|
|
1680
1402
|
}
|
|
1681
1403
|
/**
|
|
1682
|
-
* @
|
|
1404
|
+
* @param {GroupPermissionsOptions | undefined} [arg0]
|
|
1683
1405
|
*/
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
if (ret[2]) {
|
|
1687
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1688
|
-
}
|
|
1689
|
-
return WasmGroupPermissions.__wrap(ret[0]);
|
|
1406
|
+
set permissions(arg0) {
|
|
1407
|
+
wasm.__wbg_set_creategroupoptions_permissions(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
1690
1408
|
}
|
|
1691
1409
|
/**
|
|
1692
|
-
* @
|
|
1693
|
-
* @returns {Promise<void>}
|
|
1410
|
+
* @returns {string | undefined}
|
|
1694
1411
|
*/
|
|
1695
|
-
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1412
|
+
get groupName() {
|
|
1413
|
+
const ret = wasm.__wbg_get_creategroupoptions_groupName(this.__wbg_ptr);
|
|
1414
|
+
let v1;
|
|
1415
|
+
if (ret[0] !== 0) {
|
|
1416
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1417
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1418
|
+
}
|
|
1419
|
+
return v1;
|
|
1700
1420
|
}
|
|
1701
1421
|
/**
|
|
1702
|
-
* @param {
|
|
1703
|
-
* @returns {Promise<void>}
|
|
1422
|
+
* @param {string | undefined} [arg0]
|
|
1704
1423
|
*/
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
return ret;
|
|
1424
|
+
set groupName(arg0) {
|
|
1425
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1426
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1427
|
+
wasm.__wbg_set_creategroupoptions_groupName(this.__wbg_ptr, ptr0, len0);
|
|
1710
1428
|
}
|
|
1711
1429
|
/**
|
|
1712
|
-
* @
|
|
1713
|
-
* @returns {Promise<void>}
|
|
1430
|
+
* @returns {string | undefined}
|
|
1714
1431
|
*/
|
|
1715
|
-
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1432
|
+
get groupImageUrlSquare() {
|
|
1433
|
+
const ret = wasm.__wbg_get_creategroupoptions_groupImageUrlSquare(this.__wbg_ptr);
|
|
1434
|
+
let v1;
|
|
1435
|
+
if (ret[0] !== 0) {
|
|
1436
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1437
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1438
|
+
}
|
|
1439
|
+
return v1;
|
|
1720
1440
|
}
|
|
1721
1441
|
/**
|
|
1722
|
-
* @param {string}
|
|
1723
|
-
* @returns {Promise<void>}
|
|
1442
|
+
* @param {string | undefined} [arg0]
|
|
1724
1443
|
*/
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
return ret;
|
|
1444
|
+
set groupImageUrlSquare(arg0) {
|
|
1445
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1446
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1447
|
+
wasm.__wbg_set_creategroupoptions_groupImageUrlSquare(this.__wbg_ptr, ptr0, len0);
|
|
1730
1448
|
}
|
|
1731
1449
|
/**
|
|
1732
|
-
* @returns {string}
|
|
1450
|
+
* @returns {string | undefined}
|
|
1733
1451
|
*/
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
let
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
var len1 = ret[1];
|
|
1741
|
-
if (ret[3]) {
|
|
1742
|
-
ptr1 = 0; len1 = 0;
|
|
1743
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1744
|
-
}
|
|
1745
|
-
deferred2_0 = ptr1;
|
|
1746
|
-
deferred2_1 = len1;
|
|
1747
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1748
|
-
} finally {
|
|
1749
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1452
|
+
get groupDescription() {
|
|
1453
|
+
const ret = wasm.__wbg_get_creategroupoptions_groupDescription(this.__wbg_ptr);
|
|
1454
|
+
let v1;
|
|
1455
|
+
if (ret[0] !== 0) {
|
|
1456
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1457
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1750
1458
|
}
|
|
1459
|
+
return v1;
|
|
1751
1460
|
}
|
|
1752
1461
|
/**
|
|
1753
|
-
* @param {string}
|
|
1754
|
-
* @returns {Promise<void>}
|
|
1462
|
+
* @param {string | undefined} [arg0]
|
|
1755
1463
|
*/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
return ret;
|
|
1464
|
+
set groupDescription(arg0) {
|
|
1465
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1466
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1467
|
+
wasm.__wbg_set_creategroupoptions_groupDescription(this.__wbg_ptr, ptr0, len0);
|
|
1761
1468
|
}
|
|
1762
1469
|
/**
|
|
1763
|
-
* @returns {string}
|
|
1470
|
+
* @returns {string | undefined}
|
|
1764
1471
|
*/
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
let
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
var len1 = ret[1];
|
|
1772
|
-
if (ret[3]) {
|
|
1773
|
-
ptr1 = 0; len1 = 0;
|
|
1774
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1775
|
-
}
|
|
1776
|
-
deferred2_0 = ptr1;
|
|
1777
|
-
deferred2_1 = len1;
|
|
1778
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1779
|
-
} finally {
|
|
1780
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1472
|
+
get groupPinnedFrameUrl() {
|
|
1473
|
+
const ret = wasm.__wbg_get_creategroupoptions_groupPinnedFrameUrl(this.__wbg_ptr);
|
|
1474
|
+
let v1;
|
|
1475
|
+
if (ret[0] !== 0) {
|
|
1476
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1477
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1781
1478
|
}
|
|
1479
|
+
return v1;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* @param {string | undefined} [arg0]
|
|
1483
|
+
*/
|
|
1484
|
+
set groupPinnedFrameUrl(arg0) {
|
|
1485
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1486
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1487
|
+
wasm.__wbg_set_creategroupoptions_groupPinnedFrameUrl(this.__wbg_ptr, ptr0, len0);
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* @param {GroupPermissionsOptions | undefined} [permissions]
|
|
1491
|
+
* @param {string | undefined} [group_name]
|
|
1492
|
+
* @param {string | undefined} [group_image_url_square]
|
|
1493
|
+
* @param {string | undefined} [group_description]
|
|
1494
|
+
* @param {string | undefined} [group_pinned_frame_url]
|
|
1495
|
+
*/
|
|
1496
|
+
constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url) {
|
|
1497
|
+
var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1498
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1499
|
+
var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1500
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1501
|
+
var ptr2 = isLikeNone(group_description) ? 0 : passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1502
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1503
|
+
var ptr3 = isLikeNone(group_pinned_frame_url) ? 0 : passStringToWasm0(group_pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1504
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1505
|
+
const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1506
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1507
|
+
CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1508
|
+
return this;
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
const EncodedContentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1513
|
+
? { register: () => {}, unregister: () => {} }
|
|
1514
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_encodedcontent_free(ptr >>> 0, 1));
|
|
1515
|
+
|
|
1516
|
+
export class EncodedContent {
|
|
1517
|
+
|
|
1518
|
+
static __wrap(ptr) {
|
|
1519
|
+
ptr = ptr >>> 0;
|
|
1520
|
+
const obj = Object.create(EncodedContent.prototype);
|
|
1521
|
+
obj.__wbg_ptr = ptr;
|
|
1522
|
+
EncodedContentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1523
|
+
return obj;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
__destroy_into_raw() {
|
|
1527
|
+
const ptr = this.__wbg_ptr;
|
|
1528
|
+
this.__wbg_ptr = 0;
|
|
1529
|
+
EncodedContentFinalization.unregister(this);
|
|
1530
|
+
return ptr;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
free() {
|
|
1534
|
+
const ptr = this.__destroy_into_raw();
|
|
1535
|
+
wasm.__wbg_encodedcontent_free(ptr, 0);
|
|
1782
1536
|
}
|
|
1783
1537
|
/**
|
|
1784
|
-
* @
|
|
1785
|
-
* @returns {Promise<void>}
|
|
1538
|
+
* @returns {ContentTypeId | undefined}
|
|
1786
1539
|
*/
|
|
1787
|
-
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1790
|
-
const ret = wasm.wasmgroup_update_group_description(this.__wbg_ptr, ptr0, len0);
|
|
1791
|
-
return ret;
|
|
1540
|
+
get type() {
|
|
1541
|
+
const ret = wasm.__wbg_get_encodedcontent_type(this.__wbg_ptr);
|
|
1542
|
+
return ret === 0 ? undefined : ContentTypeId.__wrap(ret);
|
|
1792
1543
|
}
|
|
1793
1544
|
/**
|
|
1794
|
-
* @
|
|
1545
|
+
* @param {ContentTypeId | undefined} [arg0]
|
|
1795
1546
|
*/
|
|
1796
|
-
|
|
1797
|
-
let
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
var ptr1 = ret[0];
|
|
1802
|
-
var len1 = ret[1];
|
|
1803
|
-
if (ret[3]) {
|
|
1804
|
-
ptr1 = 0; len1 = 0;
|
|
1805
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1806
|
-
}
|
|
1807
|
-
deferred2_0 = ptr1;
|
|
1808
|
-
deferred2_1 = len1;
|
|
1809
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1810
|
-
} finally {
|
|
1811
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1547
|
+
set type(arg0) {
|
|
1548
|
+
let ptr0 = 0;
|
|
1549
|
+
if (!isLikeNone(arg0)) {
|
|
1550
|
+
_assertClass(arg0, ContentTypeId);
|
|
1551
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1812
1552
|
}
|
|
1553
|
+
wasm.__wbg_set_encodedcontent_type(this.__wbg_ptr, ptr0);
|
|
1813
1554
|
}
|
|
1814
1555
|
/**
|
|
1815
|
-
* @
|
|
1816
|
-
* @returns {Promise<void>}
|
|
1556
|
+
* @returns {any}
|
|
1817
1557
|
*/
|
|
1818
|
-
|
|
1819
|
-
const
|
|
1820
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1821
|
-
const ret = wasm.wasmgroup_update_group_pinned_frame_url(this.__wbg_ptr, ptr0, len0);
|
|
1558
|
+
get parameters() {
|
|
1559
|
+
const ret = wasm.__wbg_get_encodedcontent_parameters(this.__wbg_ptr);
|
|
1822
1560
|
return ret;
|
|
1823
1561
|
}
|
|
1824
1562
|
/**
|
|
1825
|
-
* @
|
|
1563
|
+
* @param {any} arg0
|
|
1826
1564
|
*/
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
deferred2_1 = len1;
|
|
1840
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1841
|
-
} finally {
|
|
1842
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1565
|
+
set parameters(arg0) {
|
|
1566
|
+
wasm.__wbg_set_encodedcontent_parameters(this.__wbg_ptr, arg0);
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* @returns {string | undefined}
|
|
1570
|
+
*/
|
|
1571
|
+
get fallback() {
|
|
1572
|
+
const ret = wasm.__wbg_get_encodedcontent_fallback(this.__wbg_ptr);
|
|
1573
|
+
let v1;
|
|
1574
|
+
if (ret[0] !== 0) {
|
|
1575
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1576
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1843
1577
|
}
|
|
1578
|
+
return v1;
|
|
1844
1579
|
}
|
|
1845
1580
|
/**
|
|
1846
|
-
* @
|
|
1581
|
+
* @param {string | undefined} [arg0]
|
|
1847
1582
|
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1583
|
+
set fallback(arg0) {
|
|
1584
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1585
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1586
|
+
wasm.__wbg_set_encodedcontent_fallback(this.__wbg_ptr, ptr0, len0);
|
|
1851
1587
|
}
|
|
1852
1588
|
/**
|
|
1853
|
-
* @returns {
|
|
1589
|
+
* @returns {number | undefined}
|
|
1854
1590
|
*/
|
|
1855
|
-
|
|
1856
|
-
const ret = wasm.
|
|
1857
|
-
|
|
1858
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1859
|
-
}
|
|
1860
|
-
return ret[0] !== 0;
|
|
1591
|
+
get compression() {
|
|
1592
|
+
const ret = wasm.__wbg_get_encodedcontent_compression(this.__wbg_ptr);
|
|
1593
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1861
1594
|
}
|
|
1862
1595
|
/**
|
|
1863
|
-
* @
|
|
1596
|
+
* @param {number | undefined} [arg0]
|
|
1864
1597
|
*/
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
let deferred2_1;
|
|
1868
|
-
try {
|
|
1869
|
-
const ret = wasm.wasmgroup_added_by_inbox_id(this.__wbg_ptr);
|
|
1870
|
-
var ptr1 = ret[0];
|
|
1871
|
-
var len1 = ret[1];
|
|
1872
|
-
if (ret[3]) {
|
|
1873
|
-
ptr1 = 0; len1 = 0;
|
|
1874
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1875
|
-
}
|
|
1876
|
-
deferred2_0 = ptr1;
|
|
1877
|
-
deferred2_1 = len1;
|
|
1878
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1879
|
-
} finally {
|
|
1880
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1881
|
-
}
|
|
1598
|
+
set compression(arg0) {
|
|
1599
|
+
wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1882
1600
|
}
|
|
1883
1601
|
/**
|
|
1884
|
-
* @returns {
|
|
1602
|
+
* @returns {Uint8Array}
|
|
1885
1603
|
*/
|
|
1886
|
-
|
|
1887
|
-
const ret = wasm.
|
|
1888
|
-
|
|
1889
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1890
|
-
}
|
|
1891
|
-
return WasmGroupMetadata.__wrap(ret[0]);
|
|
1604
|
+
get content() {
|
|
1605
|
+
const ret = wasm.__wbg_get_encodedcontent_content(this.__wbg_ptr);
|
|
1606
|
+
return ret;
|
|
1892
1607
|
}
|
|
1893
1608
|
/**
|
|
1894
|
-
* @
|
|
1609
|
+
* @param {Uint8Array} arg0
|
|
1895
1610
|
*/
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1611
|
+
set content(arg0) {
|
|
1612
|
+
wasm.__wbg_set_encodedcontent_content(this.__wbg_ptr, arg0);
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* @param {ContentTypeId | undefined} type
|
|
1616
|
+
* @param {any} parameters
|
|
1617
|
+
* @param {string | undefined} fallback
|
|
1618
|
+
* @param {number | undefined} compression
|
|
1619
|
+
* @param {Uint8Array} content
|
|
1620
|
+
*/
|
|
1621
|
+
constructor(type, parameters, fallback, compression, content) {
|
|
1622
|
+
let ptr0 = 0;
|
|
1623
|
+
if (!isLikeNone(type)) {
|
|
1624
|
+
_assertClass(type, ContentTypeId);
|
|
1625
|
+
ptr0 = type.__destroy_into_raw();
|
|
1912
1626
|
}
|
|
1627
|
+
var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1628
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1629
|
+
const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, !isLikeNone(compression), isLikeNone(compression) ? 0 : compression, content);
|
|
1630
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1631
|
+
EncodedContentFinalization.register(this, this.__wbg_ptr, this);
|
|
1632
|
+
return this;
|
|
1913
1633
|
}
|
|
1914
1634
|
}
|
|
1915
1635
|
|
|
1916
|
-
const
|
|
1636
|
+
const GroupMemberFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1917
1637
|
? { register: () => {}, unregister: () => {} }
|
|
1918
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1638
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_groupmember_free(ptr >>> 0, 1));
|
|
1919
1639
|
|
|
1920
|
-
export class
|
|
1640
|
+
export class GroupMember {
|
|
1921
1641
|
|
|
1922
1642
|
__destroy_into_raw() {
|
|
1923
1643
|
const ptr = this.__wbg_ptr;
|
|
1924
1644
|
this.__wbg_ptr = 0;
|
|
1925
|
-
|
|
1645
|
+
GroupMemberFinalization.unregister(this);
|
|
1926
1646
|
return ptr;
|
|
1927
1647
|
}
|
|
1928
1648
|
|
|
1929
1649
|
free() {
|
|
1930
1650
|
const ptr = this.__destroy_into_raw();
|
|
1931
|
-
wasm.
|
|
1651
|
+
wasm.__wbg_groupmember_free(ptr, 0);
|
|
1932
1652
|
}
|
|
1933
1653
|
/**
|
|
1934
1654
|
* @returns {string}
|
|
1935
1655
|
*/
|
|
1936
|
-
get
|
|
1656
|
+
get inboxId() {
|
|
1937
1657
|
let deferred1_0;
|
|
1938
1658
|
let deferred1_1;
|
|
1939
1659
|
try {
|
|
1940
|
-
const ret = wasm.
|
|
1660
|
+
const ret = wasm.__wbg_get_groupmember_inboxId(this.__wbg_ptr);
|
|
1941
1661
|
deferred1_0 = ret[0];
|
|
1942
1662
|
deferred1_1 = ret[1];
|
|
1943
1663
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1948,16 +1668,16 @@ export class WasmGroupMember {
|
|
|
1948
1668
|
/**
|
|
1949
1669
|
* @param {string} arg0
|
|
1950
1670
|
*/
|
|
1951
|
-
set
|
|
1671
|
+
set inboxId(arg0) {
|
|
1952
1672
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1953
1673
|
const len0 = WASM_VECTOR_LEN;
|
|
1954
|
-
wasm.
|
|
1674
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
1955
1675
|
}
|
|
1956
1676
|
/**
|
|
1957
1677
|
* @returns {(string)[]}
|
|
1958
1678
|
*/
|
|
1959
|
-
get
|
|
1960
|
-
const ret = wasm.
|
|
1679
|
+
get accountAddresses() {
|
|
1680
|
+
const ret = wasm.__wbg_get_groupmember_accountAddresses(this.__wbg_ptr);
|
|
1961
1681
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1962
1682
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1963
1683
|
return v1;
|
|
@@ -1965,16 +1685,16 @@ export class WasmGroupMember {
|
|
|
1965
1685
|
/**
|
|
1966
1686
|
* @param {(string)[]} arg0
|
|
1967
1687
|
*/
|
|
1968
|
-
set
|
|
1688
|
+
set accountAddresses(arg0) {
|
|
1969
1689
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1970
1690
|
const len0 = WASM_VECTOR_LEN;
|
|
1971
|
-
wasm.
|
|
1691
|
+
wasm.__wbg_set_groupmember_accountAddresses(this.__wbg_ptr, ptr0, len0);
|
|
1972
1692
|
}
|
|
1973
1693
|
/**
|
|
1974
1694
|
* @returns {(string)[]}
|
|
1975
1695
|
*/
|
|
1976
|
-
get
|
|
1977
|
-
const ret = wasm.
|
|
1696
|
+
get installationIds() {
|
|
1697
|
+
const ret = wasm.__wbg_get_groupmember_installationIds(this.__wbg_ptr);
|
|
1978
1698
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1979
1699
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1980
1700
|
return v1;
|
|
@@ -1982,43 +1702,43 @@ export class WasmGroupMember {
|
|
|
1982
1702
|
/**
|
|
1983
1703
|
* @param {(string)[]} arg0
|
|
1984
1704
|
*/
|
|
1985
|
-
set
|
|
1705
|
+
set installationIds(arg0) {
|
|
1986
1706
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1987
1707
|
const len0 = WASM_VECTOR_LEN;
|
|
1988
|
-
wasm.
|
|
1708
|
+
wasm.__wbg_set_groupmember_installationIds(this.__wbg_ptr, ptr0, len0);
|
|
1989
1709
|
}
|
|
1990
1710
|
/**
|
|
1991
|
-
* @returns {
|
|
1711
|
+
* @returns {PermissionLevel}
|
|
1992
1712
|
*/
|
|
1993
|
-
get
|
|
1994
|
-
const ret = wasm.
|
|
1713
|
+
get permissionLevel() {
|
|
1714
|
+
const ret = wasm.__wbg_get_groupmember_permissionLevel(this.__wbg_ptr);
|
|
1995
1715
|
return ret;
|
|
1996
1716
|
}
|
|
1997
1717
|
/**
|
|
1998
|
-
* @param {
|
|
1718
|
+
* @param {PermissionLevel} arg0
|
|
1999
1719
|
*/
|
|
2000
|
-
set
|
|
2001
|
-
wasm.
|
|
1720
|
+
set permissionLevel(arg0) {
|
|
1721
|
+
wasm.__wbg_set_groupmember_permissionLevel(this.__wbg_ptr, arg0);
|
|
2002
1722
|
}
|
|
2003
1723
|
/**
|
|
2004
|
-
* @returns {
|
|
1724
|
+
* @returns {ConsentState}
|
|
2005
1725
|
*/
|
|
2006
|
-
get
|
|
2007
|
-
const ret = wasm.
|
|
1726
|
+
get consentState() {
|
|
1727
|
+
const ret = wasm.__wbg_get_groupmember_consentState(this.__wbg_ptr);
|
|
2008
1728
|
return ret;
|
|
2009
1729
|
}
|
|
2010
1730
|
/**
|
|
2011
|
-
* @param {
|
|
1731
|
+
* @param {ConsentState} arg0
|
|
2012
1732
|
*/
|
|
2013
|
-
set
|
|
2014
|
-
wasm.
|
|
1733
|
+
set consentState(arg0) {
|
|
1734
|
+
wasm.__wbg_set_groupmember_consentState(this.__wbg_ptr, arg0);
|
|
2015
1735
|
}
|
|
2016
1736
|
/**
|
|
2017
1737
|
* @param {string} inbox_id
|
|
2018
1738
|
* @param {(string)[]} account_addresses
|
|
2019
1739
|
* @param {(string)[]} installation_ids
|
|
2020
|
-
* @param {
|
|
2021
|
-
* @param {
|
|
1740
|
+
* @param {PermissionLevel} permission_level
|
|
1741
|
+
* @param {ConsentState} consent_state
|
|
2022
1742
|
*/
|
|
2023
1743
|
constructor(inbox_id, account_addresses, installation_ids, permission_level, consent_state) {
|
|
2024
1744
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2027,37 +1747,37 @@ export class WasmGroupMember {
|
|
|
2027
1747
|
const len1 = WASM_VECTOR_LEN;
|
|
2028
1748
|
const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
2029
1749
|
const len2 = WASM_VECTOR_LEN;
|
|
2030
|
-
const ret = wasm.
|
|
1750
|
+
const ret = wasm.groupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permission_level, consent_state);
|
|
2031
1751
|
this.__wbg_ptr = ret >>> 0;
|
|
2032
|
-
|
|
1752
|
+
GroupMemberFinalization.register(this, this.__wbg_ptr, this);
|
|
2033
1753
|
return this;
|
|
2034
1754
|
}
|
|
2035
1755
|
}
|
|
2036
1756
|
|
|
2037
|
-
const
|
|
1757
|
+
const GroupMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2038
1758
|
? { register: () => {}, unregister: () => {} }
|
|
2039
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1759
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_groupmetadata_free(ptr >>> 0, 1));
|
|
2040
1760
|
|
|
2041
|
-
export class
|
|
1761
|
+
export class GroupMetadata {
|
|
2042
1762
|
|
|
2043
1763
|
static __wrap(ptr) {
|
|
2044
1764
|
ptr = ptr >>> 0;
|
|
2045
|
-
const obj = Object.create(
|
|
1765
|
+
const obj = Object.create(GroupMetadata.prototype);
|
|
2046
1766
|
obj.__wbg_ptr = ptr;
|
|
2047
|
-
|
|
1767
|
+
GroupMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2048
1768
|
return obj;
|
|
2049
1769
|
}
|
|
2050
1770
|
|
|
2051
1771
|
__destroy_into_raw() {
|
|
2052
1772
|
const ptr = this.__wbg_ptr;
|
|
2053
1773
|
this.__wbg_ptr = 0;
|
|
2054
|
-
|
|
1774
|
+
GroupMetadataFinalization.unregister(this);
|
|
2055
1775
|
return ptr;
|
|
2056
1776
|
}
|
|
2057
1777
|
|
|
2058
1778
|
free() {
|
|
2059
1779
|
const ptr = this.__destroy_into_raw();
|
|
2060
|
-
wasm.
|
|
1780
|
+
wasm.__wbg_groupmetadata_free(ptr, 0);
|
|
2061
1781
|
}
|
|
2062
1782
|
/**
|
|
2063
1783
|
* @returns {string}
|
|
@@ -2066,7 +1786,7 @@ export class WasmGroupMetadata {
|
|
|
2066
1786
|
let deferred1_0;
|
|
2067
1787
|
let deferred1_1;
|
|
2068
1788
|
try {
|
|
2069
|
-
const ret = wasm.
|
|
1789
|
+
const ret = wasm.groupmetadata_creator_inbox_id(this.__wbg_ptr);
|
|
2070
1790
|
deferred1_0 = ret[0];
|
|
2071
1791
|
deferred1_1 = ret[1];
|
|
2072
1792
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2081,7 +1801,7 @@ export class WasmGroupMetadata {
|
|
|
2081
1801
|
let deferred1_0;
|
|
2082
1802
|
let deferred1_1;
|
|
2083
1803
|
try {
|
|
2084
|
-
const ret = wasm.
|
|
1804
|
+
const ret = wasm.groupmetadata_conversation_type(this.__wbg_ptr);
|
|
2085
1805
|
deferred1_0 = ret[0];
|
|
2086
1806
|
deferred1_1 = ret[1];
|
|
2087
1807
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2091,86 +1811,86 @@ export class WasmGroupMetadata {
|
|
|
2091
1811
|
}
|
|
2092
1812
|
}
|
|
2093
1813
|
|
|
2094
|
-
const
|
|
1814
|
+
const GroupPermissionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2095
1815
|
? { register: () => {}, unregister: () => {} }
|
|
2096
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1816
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_grouppermissions_free(ptr >>> 0, 1));
|
|
2097
1817
|
|
|
2098
|
-
export class
|
|
1818
|
+
export class GroupPermissions {
|
|
2099
1819
|
|
|
2100
1820
|
static __wrap(ptr) {
|
|
2101
1821
|
ptr = ptr >>> 0;
|
|
2102
|
-
const obj = Object.create(
|
|
1822
|
+
const obj = Object.create(GroupPermissions.prototype);
|
|
2103
1823
|
obj.__wbg_ptr = ptr;
|
|
2104
|
-
|
|
1824
|
+
GroupPermissionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2105
1825
|
return obj;
|
|
2106
1826
|
}
|
|
2107
1827
|
|
|
2108
1828
|
__destroy_into_raw() {
|
|
2109
1829
|
const ptr = this.__wbg_ptr;
|
|
2110
1830
|
this.__wbg_ptr = 0;
|
|
2111
|
-
|
|
1831
|
+
GroupPermissionsFinalization.unregister(this);
|
|
2112
1832
|
return ptr;
|
|
2113
1833
|
}
|
|
2114
1834
|
|
|
2115
1835
|
free() {
|
|
2116
1836
|
const ptr = this.__destroy_into_raw();
|
|
2117
|
-
wasm.
|
|
1837
|
+
wasm.__wbg_grouppermissions_free(ptr, 0);
|
|
2118
1838
|
}
|
|
2119
1839
|
/**
|
|
2120
|
-
* @returns {
|
|
1840
|
+
* @returns {GroupPermissionsOptions}
|
|
2121
1841
|
*/
|
|
2122
|
-
|
|
2123
|
-
const ret = wasm.
|
|
1842
|
+
policyType() {
|
|
1843
|
+
const ret = wasm.grouppermissions_policyType(this.__wbg_ptr);
|
|
2124
1844
|
if (ret[2]) {
|
|
2125
1845
|
throw takeFromExternrefTable0(ret[1]);
|
|
2126
1846
|
}
|
|
2127
1847
|
return ret[0];
|
|
2128
1848
|
}
|
|
2129
1849
|
/**
|
|
2130
|
-
* @returns {
|
|
1850
|
+
* @returns {PermissionPolicySet}
|
|
2131
1851
|
*/
|
|
2132
|
-
|
|
2133
|
-
const ret = wasm.
|
|
1852
|
+
policySet() {
|
|
1853
|
+
const ret = wasm.grouppermissions_policySet(this.__wbg_ptr);
|
|
2134
1854
|
if (ret[2]) {
|
|
2135
1855
|
throw takeFromExternrefTable0(ret[1]);
|
|
2136
1856
|
}
|
|
2137
|
-
return
|
|
1857
|
+
return PermissionPolicySet.__wrap(ret[0]);
|
|
2138
1858
|
}
|
|
2139
1859
|
}
|
|
2140
1860
|
|
|
2141
|
-
const
|
|
1861
|
+
const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2142
1862
|
? { register: () => {}, unregister: () => {} }
|
|
2143
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1863
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
|
|
2144
1864
|
|
|
2145
|
-
export class
|
|
1865
|
+
export class InboxState {
|
|
2146
1866
|
|
|
2147
1867
|
static __wrap(ptr) {
|
|
2148
1868
|
ptr = ptr >>> 0;
|
|
2149
|
-
const obj = Object.create(
|
|
1869
|
+
const obj = Object.create(InboxState.prototype);
|
|
2150
1870
|
obj.__wbg_ptr = ptr;
|
|
2151
|
-
|
|
1871
|
+
InboxStateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2152
1872
|
return obj;
|
|
2153
1873
|
}
|
|
2154
1874
|
|
|
2155
1875
|
__destroy_into_raw() {
|
|
2156
1876
|
const ptr = this.__wbg_ptr;
|
|
2157
1877
|
this.__wbg_ptr = 0;
|
|
2158
|
-
|
|
1878
|
+
InboxStateFinalization.unregister(this);
|
|
2159
1879
|
return ptr;
|
|
2160
1880
|
}
|
|
2161
1881
|
|
|
2162
1882
|
free() {
|
|
2163
1883
|
const ptr = this.__destroy_into_raw();
|
|
2164
|
-
wasm.
|
|
1884
|
+
wasm.__wbg_inboxstate_free(ptr, 0);
|
|
2165
1885
|
}
|
|
2166
1886
|
/**
|
|
2167
1887
|
* @returns {string}
|
|
2168
1888
|
*/
|
|
2169
|
-
get
|
|
1889
|
+
get inboxId() {
|
|
2170
1890
|
let deferred1_0;
|
|
2171
1891
|
let deferred1_1;
|
|
2172
1892
|
try {
|
|
2173
|
-
const ret = wasm.
|
|
1893
|
+
const ret = wasm.__wbg_get_inboxstate_inboxId(this.__wbg_ptr);
|
|
2174
1894
|
deferred1_0 = ret[0];
|
|
2175
1895
|
deferred1_1 = ret[1];
|
|
2176
1896
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2181,19 +1901,19 @@ export class WasmInboxState {
|
|
|
2181
1901
|
/**
|
|
2182
1902
|
* @param {string} arg0
|
|
2183
1903
|
*/
|
|
2184
|
-
set
|
|
1904
|
+
set inboxId(arg0) {
|
|
2185
1905
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2186
1906
|
const len0 = WASM_VECTOR_LEN;
|
|
2187
|
-
wasm.
|
|
1907
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2188
1908
|
}
|
|
2189
1909
|
/**
|
|
2190
1910
|
* @returns {string}
|
|
2191
1911
|
*/
|
|
2192
|
-
get
|
|
1912
|
+
get recoveryAddress() {
|
|
2193
1913
|
let deferred1_0;
|
|
2194
1914
|
let deferred1_1;
|
|
2195
1915
|
try {
|
|
2196
|
-
const ret = wasm.
|
|
1916
|
+
const ret = wasm.__wbg_get_inboxstate_recoveryAddress(this.__wbg_ptr);
|
|
2197
1917
|
deferred1_0 = ret[0];
|
|
2198
1918
|
deferred1_1 = ret[1];
|
|
2199
1919
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2204,33 +1924,33 @@ export class WasmInboxState {
|
|
|
2204
1924
|
/**
|
|
2205
1925
|
* @param {string} arg0
|
|
2206
1926
|
*/
|
|
2207
|
-
set
|
|
1927
|
+
set recoveryAddress(arg0) {
|
|
2208
1928
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2209
1929
|
const len0 = WASM_VECTOR_LEN;
|
|
2210
|
-
wasm.
|
|
1930
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
2211
1931
|
}
|
|
2212
1932
|
/**
|
|
2213
|
-
* @returns {(
|
|
1933
|
+
* @returns {(Installation)[]}
|
|
2214
1934
|
*/
|
|
2215
1935
|
get installations() {
|
|
2216
|
-
const ret = wasm.
|
|
1936
|
+
const ret = wasm.__wbg_get_inboxstate_installations(this.__wbg_ptr);
|
|
2217
1937
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
2218
1938
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2219
1939
|
return v1;
|
|
2220
1940
|
}
|
|
2221
1941
|
/**
|
|
2222
|
-
* @param {(
|
|
1942
|
+
* @param {(Installation)[]} arg0
|
|
2223
1943
|
*/
|
|
2224
1944
|
set installations(arg0) {
|
|
2225
1945
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2226
1946
|
const len0 = WASM_VECTOR_LEN;
|
|
2227
|
-
wasm.
|
|
1947
|
+
wasm.__wbg_set_inboxstate_installations(this.__wbg_ptr, ptr0, len0);
|
|
2228
1948
|
}
|
|
2229
1949
|
/**
|
|
2230
1950
|
* @returns {(string)[]}
|
|
2231
1951
|
*/
|
|
2232
|
-
get
|
|
2233
|
-
const ret = wasm.
|
|
1952
|
+
get accountAddresses() {
|
|
1953
|
+
const ret = wasm.__wbg_get_inboxstate_accountAddresses(this.__wbg_ptr);
|
|
2234
1954
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
2235
1955
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
2236
1956
|
return v1;
|
|
@@ -2238,137 +1958,263 @@ export class WasmInboxState {
|
|
|
2238
1958
|
/**
|
|
2239
1959
|
* @param {(string)[]} arg0
|
|
2240
1960
|
*/
|
|
2241
|
-
set
|
|
1961
|
+
set accountAddresses(arg0) {
|
|
2242
1962
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2243
1963
|
const len0 = WASM_VECTOR_LEN;
|
|
2244
|
-
wasm.
|
|
1964
|
+
wasm.__wbg_set_inboxstate_accountAddresses(this.__wbg_ptr, ptr0, len0);
|
|
2245
1965
|
}
|
|
2246
1966
|
/**
|
|
2247
1967
|
* @param {string} inbox_id
|
|
2248
1968
|
* @param {string} recovery_address
|
|
2249
|
-
* @param {(
|
|
1969
|
+
* @param {(Installation)[]} installations
|
|
2250
1970
|
* @param {(string)[]} account_addresses
|
|
2251
1971
|
*/
|
|
2252
|
-
constructor(inbox_id, recovery_address, installations, account_addresses) {
|
|
2253
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2254
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2255
|
-
const ptr1 = passStringToWasm0(recovery_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2256
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2257
|
-
const ptr2 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
2258
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2259
|
-
const ptr3 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
2260
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2261
|
-
const ret = wasm.
|
|
2262
|
-
this.__wbg_ptr = ret >>> 0;
|
|
2263
|
-
|
|
2264
|
-
return this;
|
|
1972
|
+
constructor(inbox_id, recovery_address, installations, account_addresses) {
|
|
1973
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1974
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1975
|
+
const ptr1 = passStringToWasm0(recovery_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1976
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1977
|
+
const ptr2 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
1978
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1979
|
+
const ptr3 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
1980
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1981
|
+
const ret = wasm.inboxstate_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1982
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1983
|
+
InboxStateFinalization.register(this, this.__wbg_ptr, this);
|
|
1984
|
+
return this;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
const InstallationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1989
|
+
? { register: () => {}, unregister: () => {} }
|
|
1990
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_installation_free(ptr >>> 0, 1));
|
|
1991
|
+
|
|
1992
|
+
export class Installation {
|
|
1993
|
+
|
|
1994
|
+
static __wrap(ptr) {
|
|
1995
|
+
ptr = ptr >>> 0;
|
|
1996
|
+
const obj = Object.create(Installation.prototype);
|
|
1997
|
+
obj.__wbg_ptr = ptr;
|
|
1998
|
+
InstallationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1999
|
+
return obj;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
static __unwrap(jsValue) {
|
|
2003
|
+
if (!(jsValue instanceof Installation)) {
|
|
2004
|
+
return 0;
|
|
2005
|
+
}
|
|
2006
|
+
return jsValue.__destroy_into_raw();
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
__destroy_into_raw() {
|
|
2010
|
+
const ptr = this.__wbg_ptr;
|
|
2011
|
+
this.__wbg_ptr = 0;
|
|
2012
|
+
InstallationFinalization.unregister(this);
|
|
2013
|
+
return ptr;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
free() {
|
|
2017
|
+
const ptr = this.__destroy_into_raw();
|
|
2018
|
+
wasm.__wbg_installation_free(ptr, 0);
|
|
2019
|
+
}
|
|
2020
|
+
/**
|
|
2021
|
+
* @returns {string}
|
|
2022
|
+
*/
|
|
2023
|
+
get id() {
|
|
2024
|
+
let deferred1_0;
|
|
2025
|
+
let deferred1_1;
|
|
2026
|
+
try {
|
|
2027
|
+
const ret = wasm.__wbg_get_installation_id(this.__wbg_ptr);
|
|
2028
|
+
deferred1_0 = ret[0];
|
|
2029
|
+
deferred1_1 = ret[1];
|
|
2030
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2031
|
+
} finally {
|
|
2032
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* @param {string} arg0
|
|
2037
|
+
*/
|
|
2038
|
+
set id(arg0) {
|
|
2039
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2040
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2041
|
+
wasm.__wbg_set_installation_id(this.__wbg_ptr, ptr0, len0);
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* @returns {bigint | undefined}
|
|
2045
|
+
*/
|
|
2046
|
+
get clientTimestampNs() {
|
|
2047
|
+
const ret = wasm.__wbg_get_installation_clientTimestampNs(this.__wbg_ptr);
|
|
2048
|
+
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* @param {bigint | undefined} [arg0]
|
|
2052
|
+
*/
|
|
2053
|
+
set clientTimestampNs(arg0) {
|
|
2054
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* @param {string} id
|
|
2058
|
+
* @param {bigint | undefined} [client_timestamp_ns]
|
|
2059
|
+
*/
|
|
2060
|
+
constructor(id, client_timestamp_ns) {
|
|
2061
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2062
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2063
|
+
const ret = wasm.installation_new(ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
|
|
2064
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2065
|
+
InstallationFinalization.register(this, this.__wbg_ptr, this);
|
|
2066
|
+
return this;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2071
|
+
? { register: () => {}, unregister: () => {} }
|
|
2072
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
2073
|
+
|
|
2074
|
+
export class IntoUnderlyingByteSource {
|
|
2075
|
+
|
|
2076
|
+
__destroy_into_raw() {
|
|
2077
|
+
const ptr = this.__wbg_ptr;
|
|
2078
|
+
this.__wbg_ptr = 0;
|
|
2079
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
2080
|
+
return ptr;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
free() {
|
|
2084
|
+
const ptr = this.__destroy_into_raw();
|
|
2085
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* @returns {any}
|
|
2089
|
+
*/
|
|
2090
|
+
get type() {
|
|
2091
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
2092
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* @returns {number}
|
|
2096
|
+
*/
|
|
2097
|
+
get autoAllocateChunkSize() {
|
|
2098
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
2099
|
+
return ret >>> 0;
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* @param {ReadableByteStreamController} controller
|
|
2103
|
+
*/
|
|
2104
|
+
start(controller) {
|
|
2105
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
* @param {ReadableByteStreamController} controller
|
|
2109
|
+
* @returns {Promise<any>}
|
|
2110
|
+
*/
|
|
2111
|
+
pull(controller) {
|
|
2112
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
2113
|
+
return ret;
|
|
2114
|
+
}
|
|
2115
|
+
cancel() {
|
|
2116
|
+
const ptr = this.__destroy_into_raw();
|
|
2117
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
2265
2118
|
}
|
|
2266
2119
|
}
|
|
2267
2120
|
|
|
2268
|
-
const
|
|
2121
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2269
2122
|
? { register: () => {}, unregister: () => {} }
|
|
2270
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2271
|
-
|
|
2272
|
-
export class WasmInstallation {
|
|
2273
|
-
|
|
2274
|
-
static __wrap(ptr) {
|
|
2275
|
-
ptr = ptr >>> 0;
|
|
2276
|
-
const obj = Object.create(WasmInstallation.prototype);
|
|
2277
|
-
obj.__wbg_ptr = ptr;
|
|
2278
|
-
WasmInstallationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2279
|
-
return obj;
|
|
2280
|
-
}
|
|
2123
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
2281
2124
|
|
|
2282
|
-
|
|
2283
|
-
if (!(jsValue instanceof WasmInstallation)) {
|
|
2284
|
-
return 0;
|
|
2285
|
-
}
|
|
2286
|
-
return jsValue.__destroy_into_raw();
|
|
2287
|
-
}
|
|
2125
|
+
export class IntoUnderlyingSink {
|
|
2288
2126
|
|
|
2289
2127
|
__destroy_into_raw() {
|
|
2290
2128
|
const ptr = this.__wbg_ptr;
|
|
2291
2129
|
this.__wbg_ptr = 0;
|
|
2292
|
-
|
|
2130
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
2293
2131
|
return ptr;
|
|
2294
2132
|
}
|
|
2295
2133
|
|
|
2296
2134
|
free() {
|
|
2297
2135
|
const ptr = this.__destroy_into_raw();
|
|
2298
|
-
wasm.
|
|
2136
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
2299
2137
|
}
|
|
2300
2138
|
/**
|
|
2301
|
-
* @
|
|
2139
|
+
* @param {any} chunk
|
|
2140
|
+
* @returns {Promise<any>}
|
|
2302
2141
|
*/
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
try {
|
|
2307
|
-
const ret = wasm.__wbg_get_wasminstallation_id(this.__wbg_ptr);
|
|
2308
|
-
deferred1_0 = ret[0];
|
|
2309
|
-
deferred1_1 = ret[1];
|
|
2310
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
2311
|
-
} finally {
|
|
2312
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2313
|
-
}
|
|
2142
|
+
write(chunk) {
|
|
2143
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
2144
|
+
return ret;
|
|
2314
2145
|
}
|
|
2315
2146
|
/**
|
|
2316
|
-
* @
|
|
2147
|
+
* @returns {Promise<any>}
|
|
2317
2148
|
*/
|
|
2318
|
-
|
|
2319
|
-
const
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2149
|
+
close() {
|
|
2150
|
+
const ptr = this.__destroy_into_raw();
|
|
2151
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
2152
|
+
return ret;
|
|
2322
2153
|
}
|
|
2323
2154
|
/**
|
|
2324
|
-
* @
|
|
2155
|
+
* @param {any} reason
|
|
2156
|
+
* @returns {Promise<any>}
|
|
2325
2157
|
*/
|
|
2326
|
-
|
|
2327
|
-
const
|
|
2328
|
-
|
|
2158
|
+
abort(reason) {
|
|
2159
|
+
const ptr = this.__destroy_into_raw();
|
|
2160
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
2161
|
+
return ret;
|
|
2329
2162
|
}
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2166
|
+
? { register: () => {}, unregister: () => {} }
|
|
2167
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
2168
|
+
|
|
2169
|
+
export class IntoUnderlyingSource {
|
|
2170
|
+
|
|
2171
|
+
__destroy_into_raw() {
|
|
2172
|
+
const ptr = this.__wbg_ptr;
|
|
2173
|
+
this.__wbg_ptr = 0;
|
|
2174
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
2175
|
+
return ptr;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
free() {
|
|
2179
|
+
const ptr = this.__destroy_into_raw();
|
|
2180
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
2335
2181
|
}
|
|
2336
2182
|
/**
|
|
2337
|
-
* @param {
|
|
2338
|
-
* @
|
|
2183
|
+
* @param {ReadableStreamDefaultController} controller
|
|
2184
|
+
* @returns {Promise<any>}
|
|
2339
2185
|
*/
|
|
2340
|
-
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2186
|
+
pull(controller) {
|
|
2187
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
2188
|
+
return ret;
|
|
2189
|
+
}
|
|
2190
|
+
cancel() {
|
|
2191
|
+
const ptr = this.__destroy_into_raw();
|
|
2192
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
2347
2193
|
}
|
|
2348
2194
|
}
|
|
2349
2195
|
|
|
2350
|
-
const
|
|
2196
|
+
const ListConversationsOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2351
2197
|
? { register: () => {}, unregister: () => {} }
|
|
2352
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2198
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_listconversationsoptions_free(ptr >>> 0, 1));
|
|
2353
2199
|
|
|
2354
|
-
export class
|
|
2200
|
+
export class ListConversationsOptions {
|
|
2355
2201
|
|
|
2356
2202
|
__destroy_into_raw() {
|
|
2357
2203
|
const ptr = this.__wbg_ptr;
|
|
2358
2204
|
this.__wbg_ptr = 0;
|
|
2359
|
-
|
|
2205
|
+
ListConversationsOptionsFinalization.unregister(this);
|
|
2360
2206
|
return ptr;
|
|
2361
2207
|
}
|
|
2362
2208
|
|
|
2363
2209
|
free() {
|
|
2364
2210
|
const ptr = this.__destroy_into_raw();
|
|
2365
|
-
wasm.
|
|
2211
|
+
wasm.__wbg_listconversationsoptions_free(ptr, 0);
|
|
2366
2212
|
}
|
|
2367
2213
|
/**
|
|
2368
2214
|
* @returns {any[] | undefined}
|
|
2369
2215
|
*/
|
|
2370
|
-
get
|
|
2371
|
-
const ret = wasm.
|
|
2216
|
+
get allowedStates() {
|
|
2217
|
+
const ret = wasm.__wbg_get_listconversationsoptions_allowedStates(this.__wbg_ptr);
|
|
2372
2218
|
let v1;
|
|
2373
2219
|
if (ret[0] !== 0) {
|
|
2374
2220
|
v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -2379,66 +2225,66 @@ export class WasmListConversationsOptions {
|
|
|
2379
2225
|
/**
|
|
2380
2226
|
* @param {any[] | undefined} [arg0]
|
|
2381
2227
|
*/
|
|
2382
|
-
set
|
|
2228
|
+
set allowedStates(arg0) {
|
|
2383
2229
|
var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2384
2230
|
var len0 = WASM_VECTOR_LEN;
|
|
2385
|
-
wasm.
|
|
2231
|
+
wasm.__wbg_set_listconversationsoptions_allowedStates(this.__wbg_ptr, ptr0, len0);
|
|
2386
2232
|
}
|
|
2387
2233
|
/**
|
|
2388
|
-
* @returns {
|
|
2234
|
+
* @returns {ConversationType | undefined}
|
|
2389
2235
|
*/
|
|
2390
|
-
get
|
|
2391
|
-
const ret = wasm.
|
|
2236
|
+
get conversationType() {
|
|
2237
|
+
const ret = wasm.__wbg_get_listconversationsoptions_conversationType(this.__wbg_ptr);
|
|
2392
2238
|
return ret === 3 ? undefined : ret;
|
|
2393
2239
|
}
|
|
2394
2240
|
/**
|
|
2395
|
-
* @param {
|
|
2241
|
+
* @param {ConversationType | undefined} [arg0]
|
|
2396
2242
|
*/
|
|
2397
|
-
set
|
|
2398
|
-
wasm.
|
|
2243
|
+
set conversationType(arg0) {
|
|
2244
|
+
wasm.__wbg_set_listconversationsoptions_conversationType(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
2399
2245
|
}
|
|
2400
2246
|
/**
|
|
2401
2247
|
* @returns {bigint | undefined}
|
|
2402
2248
|
*/
|
|
2403
|
-
get
|
|
2404
|
-
const ret = wasm.
|
|
2249
|
+
get createdAfterNs() {
|
|
2250
|
+
const ret = wasm.__wbg_get_listconversationsoptions_createdAfterNs(this.__wbg_ptr);
|
|
2405
2251
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2406
2252
|
}
|
|
2407
2253
|
/**
|
|
2408
2254
|
* @param {bigint | undefined} [arg0]
|
|
2409
2255
|
*/
|
|
2410
|
-
set
|
|
2411
|
-
wasm.
|
|
2256
|
+
set createdAfterNs(arg0) {
|
|
2257
|
+
wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2412
2258
|
}
|
|
2413
2259
|
/**
|
|
2414
2260
|
* @returns {bigint | undefined}
|
|
2415
2261
|
*/
|
|
2416
|
-
get
|
|
2417
|
-
const ret = wasm.
|
|
2262
|
+
get createdBeforeNs() {
|
|
2263
|
+
const ret = wasm.__wbg_get_listconversationsoptions_createdBeforeNs(this.__wbg_ptr);
|
|
2418
2264
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2419
2265
|
}
|
|
2420
2266
|
/**
|
|
2421
2267
|
* @param {bigint | undefined} [arg0]
|
|
2422
2268
|
*/
|
|
2423
|
-
set
|
|
2424
|
-
wasm.
|
|
2269
|
+
set createdBeforeNs(arg0) {
|
|
2270
|
+
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2425
2271
|
}
|
|
2426
2272
|
/**
|
|
2427
2273
|
* @returns {bigint | undefined}
|
|
2428
2274
|
*/
|
|
2429
2275
|
get limit() {
|
|
2430
|
-
const ret = wasm.
|
|
2276
|
+
const ret = wasm.__wbg_get_listconversationsoptions_limit(this.__wbg_ptr);
|
|
2431
2277
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2432
2278
|
}
|
|
2433
2279
|
/**
|
|
2434
2280
|
* @param {bigint | undefined} [arg0]
|
|
2435
2281
|
*/
|
|
2436
2282
|
set limit(arg0) {
|
|
2437
|
-
wasm.
|
|
2283
|
+
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2438
2284
|
}
|
|
2439
2285
|
/**
|
|
2440
2286
|
* @param {any[] | undefined} [allowed_states]
|
|
2441
|
-
* @param {
|
|
2287
|
+
* @param {ConversationType | undefined} [conversation_type]
|
|
2442
2288
|
* @param {bigint | undefined} [created_after_ns]
|
|
2443
2289
|
* @param {bigint | undefined} [created_before_ns]
|
|
2444
2290
|
* @param {bigint | undefined} [limit]
|
|
@@ -2446,134 +2292,134 @@ export class WasmListConversationsOptions {
|
|
|
2446
2292
|
constructor(allowed_states, conversation_type, created_after_ns, created_before_ns, limit) {
|
|
2447
2293
|
var ptr0 = isLikeNone(allowed_states) ? 0 : passArrayJsValueToWasm0(allowed_states, wasm.__wbindgen_malloc);
|
|
2448
2294
|
var len0 = WASM_VECTOR_LEN;
|
|
2449
|
-
const ret = wasm.
|
|
2295
|
+
const ret = wasm.listconversationsoptions_new(ptr0, len0, isLikeNone(conversation_type) ? 3 : conversation_type, !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);
|
|
2450
2296
|
this.__wbg_ptr = ret >>> 0;
|
|
2451
|
-
|
|
2297
|
+
ListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2452
2298
|
return this;
|
|
2453
2299
|
}
|
|
2454
2300
|
}
|
|
2455
2301
|
|
|
2456
|
-
const
|
|
2302
|
+
const ListMessagesOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2457
2303
|
? { register: () => {}, unregister: () => {} }
|
|
2458
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2304
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_listmessagesoptions_free(ptr >>> 0, 1));
|
|
2459
2305
|
|
|
2460
|
-
export class
|
|
2306
|
+
export class ListMessagesOptions {
|
|
2461
2307
|
|
|
2462
2308
|
__destroy_into_raw() {
|
|
2463
2309
|
const ptr = this.__wbg_ptr;
|
|
2464
2310
|
this.__wbg_ptr = 0;
|
|
2465
|
-
|
|
2311
|
+
ListMessagesOptionsFinalization.unregister(this);
|
|
2466
2312
|
return ptr;
|
|
2467
2313
|
}
|
|
2468
2314
|
|
|
2469
2315
|
free() {
|
|
2470
2316
|
const ptr = this.__destroy_into_raw();
|
|
2471
|
-
wasm.
|
|
2317
|
+
wasm.__wbg_listmessagesoptions_free(ptr, 0);
|
|
2472
2318
|
}
|
|
2473
2319
|
/**
|
|
2474
2320
|
* @returns {bigint | undefined}
|
|
2475
2321
|
*/
|
|
2476
|
-
get
|
|
2477
|
-
const ret = wasm.
|
|
2322
|
+
get sentBeforeNs() {
|
|
2323
|
+
const ret = wasm.__wbg_get_listmessagesoptions_sentBeforeNs(this.__wbg_ptr);
|
|
2478
2324
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2479
2325
|
}
|
|
2480
2326
|
/**
|
|
2481
2327
|
* @param {bigint | undefined} [arg0]
|
|
2482
2328
|
*/
|
|
2483
|
-
set
|
|
2484
|
-
wasm.
|
|
2329
|
+
set sentBeforeNs(arg0) {
|
|
2330
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2485
2331
|
}
|
|
2486
2332
|
/**
|
|
2487
2333
|
* @returns {bigint | undefined}
|
|
2488
2334
|
*/
|
|
2489
|
-
get
|
|
2490
|
-
const ret = wasm.
|
|
2335
|
+
get sentAfterNs() {
|
|
2336
|
+
const ret = wasm.__wbg_get_listmessagesoptions_sentAfterNs(this.__wbg_ptr);
|
|
2491
2337
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2492
2338
|
}
|
|
2493
2339
|
/**
|
|
2494
2340
|
* @param {bigint | undefined} [arg0]
|
|
2495
2341
|
*/
|
|
2496
|
-
set
|
|
2497
|
-
wasm.
|
|
2342
|
+
set sentAfterNs(arg0) {
|
|
2343
|
+
wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2498
2344
|
}
|
|
2499
2345
|
/**
|
|
2500
2346
|
* @returns {bigint | undefined}
|
|
2501
2347
|
*/
|
|
2502
2348
|
get limit() {
|
|
2503
|
-
const ret = wasm.
|
|
2349
|
+
const ret = wasm.__wbg_get_listmessagesoptions_limit(this.__wbg_ptr);
|
|
2504
2350
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2505
2351
|
}
|
|
2506
2352
|
/**
|
|
2507
2353
|
* @param {bigint | undefined} [arg0]
|
|
2508
2354
|
*/
|
|
2509
2355
|
set limit(arg0) {
|
|
2510
|
-
wasm.
|
|
2356
|
+
wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2511
2357
|
}
|
|
2512
2358
|
/**
|
|
2513
|
-
* @returns {
|
|
2359
|
+
* @returns {DeliveryStatus | undefined}
|
|
2514
2360
|
*/
|
|
2515
|
-
get
|
|
2516
|
-
const ret = wasm.
|
|
2361
|
+
get deliveryStatus() {
|
|
2362
|
+
const ret = wasm.__wbg_get_listmessagesoptions_deliveryStatus(this.__wbg_ptr);
|
|
2517
2363
|
return ret === 3 ? undefined : ret;
|
|
2518
2364
|
}
|
|
2519
2365
|
/**
|
|
2520
|
-
* @param {
|
|
2366
|
+
* @param {DeliveryStatus | undefined} [arg0]
|
|
2521
2367
|
*/
|
|
2522
|
-
set
|
|
2523
|
-
wasm.
|
|
2368
|
+
set deliveryStatus(arg0) {
|
|
2369
|
+
wasm.__wbg_set_listmessagesoptions_deliveryStatus(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
2524
2370
|
}
|
|
2525
2371
|
/**
|
|
2526
|
-
* @returns {
|
|
2372
|
+
* @returns {SortDirection | undefined}
|
|
2527
2373
|
*/
|
|
2528
2374
|
get direction() {
|
|
2529
|
-
const ret = wasm.
|
|
2375
|
+
const ret = wasm.__wbg_get_listmessagesoptions_direction(this.__wbg_ptr);
|
|
2530
2376
|
return ret === 2 ? undefined : ret;
|
|
2531
2377
|
}
|
|
2532
2378
|
/**
|
|
2533
|
-
* @param {
|
|
2379
|
+
* @param {SortDirection | undefined} [arg0]
|
|
2534
2380
|
*/
|
|
2535
2381
|
set direction(arg0) {
|
|
2536
|
-
wasm.
|
|
2382
|
+
wasm.__wbg_set_listmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
2537
2383
|
}
|
|
2538
2384
|
/**
|
|
2539
2385
|
* @param {bigint | undefined} [sent_before_ns]
|
|
2540
2386
|
* @param {bigint | undefined} [sent_after_ns]
|
|
2541
2387
|
* @param {bigint | undefined} [limit]
|
|
2542
|
-
* @param {
|
|
2543
|
-
* @param {
|
|
2388
|
+
* @param {DeliveryStatus | undefined} [delivery_status]
|
|
2389
|
+
* @param {SortDirection | undefined} [direction]
|
|
2544
2390
|
*/
|
|
2545
2391
|
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction) {
|
|
2546
|
-
const ret = wasm.
|
|
2392
|
+
const ret = wasm.listmessagesoptions_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, isLikeNone(direction) ? 2 : direction);
|
|
2547
2393
|
this.__wbg_ptr = ret >>> 0;
|
|
2548
|
-
|
|
2394
|
+
ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2549
2395
|
return this;
|
|
2550
2396
|
}
|
|
2551
2397
|
}
|
|
2552
2398
|
|
|
2553
|
-
const
|
|
2399
|
+
const MessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2554
2400
|
? { register: () => {}, unregister: () => {} }
|
|
2555
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2401
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_message_free(ptr >>> 0, 1));
|
|
2556
2402
|
|
|
2557
|
-
export class
|
|
2403
|
+
export class Message {
|
|
2558
2404
|
|
|
2559
2405
|
static __wrap(ptr) {
|
|
2560
2406
|
ptr = ptr >>> 0;
|
|
2561
|
-
const obj = Object.create(
|
|
2407
|
+
const obj = Object.create(Message.prototype);
|
|
2562
2408
|
obj.__wbg_ptr = ptr;
|
|
2563
|
-
|
|
2409
|
+
MessageFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2564
2410
|
return obj;
|
|
2565
2411
|
}
|
|
2566
2412
|
|
|
2567
2413
|
__destroy_into_raw() {
|
|
2568
2414
|
const ptr = this.__wbg_ptr;
|
|
2569
2415
|
this.__wbg_ptr = 0;
|
|
2570
|
-
|
|
2416
|
+
MessageFinalization.unregister(this);
|
|
2571
2417
|
return ptr;
|
|
2572
2418
|
}
|
|
2573
2419
|
|
|
2574
2420
|
free() {
|
|
2575
2421
|
const ptr = this.__destroy_into_raw();
|
|
2576
|
-
wasm.
|
|
2422
|
+
wasm.__wbg_message_free(ptr, 0);
|
|
2577
2423
|
}
|
|
2578
2424
|
/**
|
|
2579
2425
|
* @returns {string}
|
|
@@ -2582,7 +2428,7 @@ export class WasmMessage {
|
|
|
2582
2428
|
let deferred1_0;
|
|
2583
2429
|
let deferred1_1;
|
|
2584
2430
|
try {
|
|
2585
|
-
const ret = wasm.
|
|
2431
|
+
const ret = wasm.__wbg_get_message_id(this.__wbg_ptr);
|
|
2586
2432
|
deferred1_0 = ret[0];
|
|
2587
2433
|
deferred1_1 = ret[1];
|
|
2588
2434
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2596,29 +2442,29 @@ export class WasmMessage {
|
|
|
2596
2442
|
set id(arg0) {
|
|
2597
2443
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2598
2444
|
const len0 = WASM_VECTOR_LEN;
|
|
2599
|
-
wasm.
|
|
2445
|
+
wasm.__wbg_set_message_id(this.__wbg_ptr, ptr0, len0);
|
|
2600
2446
|
}
|
|
2601
2447
|
/**
|
|
2602
2448
|
* @returns {bigint}
|
|
2603
2449
|
*/
|
|
2604
|
-
get
|
|
2605
|
-
const ret = wasm.
|
|
2450
|
+
get sentAtNs() {
|
|
2451
|
+
const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
|
|
2606
2452
|
return ret;
|
|
2607
2453
|
}
|
|
2608
2454
|
/**
|
|
2609
2455
|
* @param {bigint} arg0
|
|
2610
2456
|
*/
|
|
2611
|
-
set
|
|
2612
|
-
wasm.
|
|
2457
|
+
set sentAtNs(arg0) {
|
|
2458
|
+
wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
|
|
2613
2459
|
}
|
|
2614
2460
|
/**
|
|
2615
2461
|
* @returns {string}
|
|
2616
2462
|
*/
|
|
2617
|
-
get
|
|
2463
|
+
get convoId() {
|
|
2618
2464
|
let deferred1_0;
|
|
2619
2465
|
let deferred1_1;
|
|
2620
2466
|
try {
|
|
2621
|
-
const ret = wasm.
|
|
2467
|
+
const ret = wasm.__wbg_get_message_convoId(this.__wbg_ptr);
|
|
2622
2468
|
deferred1_0 = ret[0];
|
|
2623
2469
|
deferred1_1 = ret[1];
|
|
2624
2470
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2629,19 +2475,19 @@ export class WasmMessage {
|
|
|
2629
2475
|
/**
|
|
2630
2476
|
* @param {string} arg0
|
|
2631
2477
|
*/
|
|
2632
|
-
set
|
|
2478
|
+
set convoId(arg0) {
|
|
2633
2479
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2634
2480
|
const len0 = WASM_VECTOR_LEN;
|
|
2635
|
-
wasm.
|
|
2481
|
+
wasm.__wbg_set_message_convoId(this.__wbg_ptr, ptr0, len0);
|
|
2636
2482
|
}
|
|
2637
2483
|
/**
|
|
2638
2484
|
* @returns {string}
|
|
2639
2485
|
*/
|
|
2640
|
-
get
|
|
2486
|
+
get senderInboxId() {
|
|
2641
2487
|
let deferred1_0;
|
|
2642
2488
|
let deferred1_1;
|
|
2643
2489
|
try {
|
|
2644
|
-
const ret = wasm.
|
|
2490
|
+
const ret = wasm.__wbg_get_message_senderInboxId(this.__wbg_ptr);
|
|
2645
2491
|
deferred1_0 = ret[0];
|
|
2646
2492
|
deferred1_1 = ret[1];
|
|
2647
2493
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2652,60 +2498,60 @@ export class WasmMessage {
|
|
|
2652
2498
|
/**
|
|
2653
2499
|
* @param {string} arg0
|
|
2654
2500
|
*/
|
|
2655
|
-
set
|
|
2501
|
+
set senderInboxId(arg0) {
|
|
2656
2502
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2657
2503
|
const len0 = WASM_VECTOR_LEN;
|
|
2658
|
-
wasm.
|
|
2504
|
+
wasm.__wbg_set_message_senderInboxId(this.__wbg_ptr, ptr0, len0);
|
|
2659
2505
|
}
|
|
2660
2506
|
/**
|
|
2661
|
-
* @returns {
|
|
2507
|
+
* @returns {EncodedContent}
|
|
2662
2508
|
*/
|
|
2663
2509
|
get content() {
|
|
2664
|
-
const ret = wasm.
|
|
2665
|
-
return
|
|
2510
|
+
const ret = wasm.__wbg_get_message_content(this.__wbg_ptr);
|
|
2511
|
+
return EncodedContent.__wrap(ret);
|
|
2666
2512
|
}
|
|
2667
2513
|
/**
|
|
2668
|
-
* @param {
|
|
2514
|
+
* @param {EncodedContent} arg0
|
|
2669
2515
|
*/
|
|
2670
2516
|
set content(arg0) {
|
|
2671
|
-
_assertClass(arg0,
|
|
2517
|
+
_assertClass(arg0, EncodedContent);
|
|
2672
2518
|
var ptr0 = arg0.__destroy_into_raw();
|
|
2673
|
-
wasm.
|
|
2519
|
+
wasm.__wbg_set_message_content(this.__wbg_ptr, ptr0);
|
|
2674
2520
|
}
|
|
2675
2521
|
/**
|
|
2676
|
-
* @returns {
|
|
2522
|
+
* @returns {GroupMessageKind}
|
|
2677
2523
|
*/
|
|
2678
2524
|
get kind() {
|
|
2679
|
-
const ret = wasm.
|
|
2525
|
+
const ret = wasm.__wbg_get_message_kind(this.__wbg_ptr);
|
|
2680
2526
|
return ret;
|
|
2681
2527
|
}
|
|
2682
2528
|
/**
|
|
2683
|
-
* @param {
|
|
2529
|
+
* @param {GroupMessageKind} arg0
|
|
2684
2530
|
*/
|
|
2685
2531
|
set kind(arg0) {
|
|
2686
|
-
wasm.
|
|
2532
|
+
wasm.__wbg_set_message_kind(this.__wbg_ptr, arg0);
|
|
2687
2533
|
}
|
|
2688
2534
|
/**
|
|
2689
|
-
* @returns {
|
|
2535
|
+
* @returns {DeliveryStatus}
|
|
2690
2536
|
*/
|
|
2691
|
-
get
|
|
2692
|
-
const ret = wasm.
|
|
2537
|
+
get deliveryStatus() {
|
|
2538
|
+
const ret = wasm.__wbg_get_message_deliveryStatus(this.__wbg_ptr);
|
|
2693
2539
|
return ret;
|
|
2694
2540
|
}
|
|
2695
2541
|
/**
|
|
2696
|
-
* @param {
|
|
2542
|
+
* @param {DeliveryStatus} arg0
|
|
2697
2543
|
*/
|
|
2698
|
-
set
|
|
2699
|
-
wasm.
|
|
2544
|
+
set deliveryStatus(arg0) {
|
|
2545
|
+
wasm.__wbg_set_message_deliveryStatus(this.__wbg_ptr, arg0);
|
|
2700
2546
|
}
|
|
2701
2547
|
/**
|
|
2702
2548
|
* @param {string} id
|
|
2703
2549
|
* @param {bigint} sent_at_ns
|
|
2704
2550
|
* @param {string} convo_id
|
|
2705
2551
|
* @param {string} sender_inbox_id
|
|
2706
|
-
* @param {
|
|
2707
|
-
* @param {
|
|
2708
|
-
* @param {
|
|
2552
|
+
* @param {EncodedContent} content
|
|
2553
|
+
* @param {GroupMessageKind} kind
|
|
2554
|
+
* @param {DeliveryStatus} delivery_status
|
|
2709
2555
|
*/
|
|
2710
2556
|
constructor(id, sent_at_ns, convo_id, sender_inbox_id, content, kind, delivery_status) {
|
|
2711
2557
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2714,162 +2560,181 @@ export class WasmMessage {
|
|
|
2714
2560
|
const len1 = WASM_VECTOR_LEN;
|
|
2715
2561
|
const ptr2 = passStringToWasm0(sender_inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2716
2562
|
const len2 = WASM_VECTOR_LEN;
|
|
2717
|
-
_assertClass(content,
|
|
2563
|
+
_assertClass(content, EncodedContent);
|
|
2718
2564
|
var ptr3 = content.__destroy_into_raw();
|
|
2719
|
-
const ret = wasm.
|
|
2565
|
+
const ret = wasm.message_new(ptr0, len0, sent_at_ns, ptr1, len1, ptr2, len2, ptr3, kind, delivery_status);
|
|
2720
2566
|
this.__wbg_ptr = ret >>> 0;
|
|
2721
|
-
|
|
2567
|
+
MessageFinalization.register(this, this.__wbg_ptr, this);
|
|
2722
2568
|
return this;
|
|
2723
2569
|
}
|
|
2724
2570
|
}
|
|
2725
2571
|
|
|
2726
|
-
const
|
|
2572
|
+
const PermissionPolicySetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2727
2573
|
? { register: () => {}, unregister: () => {} }
|
|
2728
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2574
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_permissionpolicyset_free(ptr >>> 0, 1));
|
|
2729
2575
|
|
|
2730
|
-
export class
|
|
2576
|
+
export class PermissionPolicySet {
|
|
2731
2577
|
|
|
2732
2578
|
static __wrap(ptr) {
|
|
2733
2579
|
ptr = ptr >>> 0;
|
|
2734
|
-
const obj = Object.create(
|
|
2580
|
+
const obj = Object.create(PermissionPolicySet.prototype);
|
|
2735
2581
|
obj.__wbg_ptr = ptr;
|
|
2736
|
-
|
|
2582
|
+
PermissionPolicySetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2737
2583
|
return obj;
|
|
2738
2584
|
}
|
|
2739
2585
|
|
|
2740
2586
|
__destroy_into_raw() {
|
|
2741
2587
|
const ptr = this.__wbg_ptr;
|
|
2742
2588
|
this.__wbg_ptr = 0;
|
|
2743
|
-
|
|
2589
|
+
PermissionPolicySetFinalization.unregister(this);
|
|
2744
2590
|
return ptr;
|
|
2745
2591
|
}
|
|
2746
2592
|
|
|
2747
2593
|
free() {
|
|
2748
2594
|
const ptr = this.__destroy_into_raw();
|
|
2749
|
-
wasm.
|
|
2595
|
+
wasm.__wbg_permissionpolicyset_free(ptr, 0);
|
|
2750
2596
|
}
|
|
2751
2597
|
/**
|
|
2752
|
-
* @returns {
|
|
2598
|
+
* @returns {PermissionPolicy}
|
|
2753
2599
|
*/
|
|
2754
|
-
get
|
|
2755
|
-
const ret = wasm.
|
|
2600
|
+
get addMemberPolicy() {
|
|
2601
|
+
const ret = wasm.__wbg_get_permissionpolicyset_addMemberPolicy(this.__wbg_ptr);
|
|
2756
2602
|
return ret;
|
|
2757
2603
|
}
|
|
2758
2604
|
/**
|
|
2759
|
-
* @param {
|
|
2605
|
+
* @param {PermissionPolicy} arg0
|
|
2760
2606
|
*/
|
|
2761
|
-
set
|
|
2762
|
-
wasm.
|
|
2607
|
+
set addMemberPolicy(arg0) {
|
|
2608
|
+
wasm.__wbg_set_permissionpolicyset_addMemberPolicy(this.__wbg_ptr, arg0);
|
|
2763
2609
|
}
|
|
2764
2610
|
/**
|
|
2765
|
-
* @returns {
|
|
2611
|
+
* @returns {PermissionPolicy}
|
|
2766
2612
|
*/
|
|
2767
|
-
get
|
|
2768
|
-
const ret = wasm.
|
|
2613
|
+
get removeMemberPolicy() {
|
|
2614
|
+
const ret = wasm.__wbg_get_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr);
|
|
2769
2615
|
return ret;
|
|
2770
2616
|
}
|
|
2771
2617
|
/**
|
|
2772
|
-
* @param {
|
|
2618
|
+
* @param {PermissionPolicy} arg0
|
|
2773
2619
|
*/
|
|
2774
|
-
set
|
|
2775
|
-
wasm.
|
|
2620
|
+
set removeMemberPolicy(arg0) {
|
|
2621
|
+
wasm.__wbg_set_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr, arg0);
|
|
2776
2622
|
}
|
|
2777
2623
|
/**
|
|
2778
|
-
* @returns {
|
|
2624
|
+
* @returns {PermissionPolicy}
|
|
2779
2625
|
*/
|
|
2780
|
-
get
|
|
2781
|
-
const ret = wasm.
|
|
2626
|
+
get addAdminPolicy() {
|
|
2627
|
+
const ret = wasm.__wbg_get_permissionpolicyset_addAdminPolicy(this.__wbg_ptr);
|
|
2782
2628
|
return ret;
|
|
2783
2629
|
}
|
|
2784
2630
|
/**
|
|
2785
|
-
* @param {
|
|
2631
|
+
* @param {PermissionPolicy} arg0
|
|
2786
2632
|
*/
|
|
2787
|
-
set
|
|
2788
|
-
wasm.
|
|
2633
|
+
set addAdminPolicy(arg0) {
|
|
2634
|
+
wasm.__wbg_set_permissionpolicyset_addAdminPolicy(this.__wbg_ptr, arg0);
|
|
2789
2635
|
}
|
|
2790
2636
|
/**
|
|
2791
|
-
* @returns {
|
|
2637
|
+
* @returns {PermissionPolicy}
|
|
2792
2638
|
*/
|
|
2793
|
-
get
|
|
2794
|
-
const ret = wasm.
|
|
2639
|
+
get removeAdminPolicy() {
|
|
2640
|
+
const ret = wasm.__wbg_get_permissionpolicyset_removeAdminPolicy(this.__wbg_ptr);
|
|
2795
2641
|
return ret;
|
|
2796
2642
|
}
|
|
2797
2643
|
/**
|
|
2798
|
-
* @param {
|
|
2644
|
+
* @param {PermissionPolicy} arg0
|
|
2799
2645
|
*/
|
|
2800
|
-
set
|
|
2801
|
-
wasm.
|
|
2646
|
+
set removeAdminPolicy(arg0) {
|
|
2647
|
+
wasm.__wbg_set_permissionpolicyset_removeAdminPolicy(this.__wbg_ptr, arg0);
|
|
2802
2648
|
}
|
|
2803
2649
|
/**
|
|
2804
|
-
* @returns {
|
|
2650
|
+
* @returns {PermissionPolicy}
|
|
2805
2651
|
*/
|
|
2806
|
-
get
|
|
2807
|
-
const ret = wasm.
|
|
2652
|
+
get updateGroupNamePolicy() {
|
|
2653
|
+
const ret = wasm.__wbg_get_permissionpolicyset_updateGroupNamePolicy(this.__wbg_ptr);
|
|
2808
2654
|
return ret;
|
|
2809
2655
|
}
|
|
2810
2656
|
/**
|
|
2811
|
-
* @param {
|
|
2657
|
+
* @param {PermissionPolicy} arg0
|
|
2812
2658
|
*/
|
|
2813
|
-
set
|
|
2814
|
-
wasm.
|
|
2659
|
+
set updateGroupNamePolicy(arg0) {
|
|
2660
|
+
wasm.__wbg_set_permissionpolicyset_updateGroupNamePolicy(this.__wbg_ptr, arg0);
|
|
2815
2661
|
}
|
|
2816
2662
|
/**
|
|
2817
|
-
* @returns {
|
|
2663
|
+
* @returns {PermissionPolicy}
|
|
2818
2664
|
*/
|
|
2819
|
-
get
|
|
2820
|
-
const ret = wasm.
|
|
2665
|
+
get updateGroupDescriptionPolicy() {
|
|
2666
|
+
const ret = wasm.__wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(this.__wbg_ptr);
|
|
2821
2667
|
return ret;
|
|
2822
2668
|
}
|
|
2823
2669
|
/**
|
|
2824
|
-
* @param {
|
|
2670
|
+
* @param {PermissionPolicy} arg0
|
|
2825
2671
|
*/
|
|
2826
|
-
set
|
|
2827
|
-
wasm.
|
|
2672
|
+
set updateGroupDescriptionPolicy(arg0) {
|
|
2673
|
+
wasm.__wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(this.__wbg_ptr, arg0);
|
|
2828
2674
|
}
|
|
2829
2675
|
/**
|
|
2830
|
-
* @returns {
|
|
2676
|
+
* @returns {PermissionPolicy}
|
|
2831
2677
|
*/
|
|
2832
|
-
get
|
|
2833
|
-
const ret = wasm.
|
|
2678
|
+
get updateGroupImageUrlSquarePolicy() {
|
|
2679
|
+
const ret = wasm.__wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(this.__wbg_ptr);
|
|
2834
2680
|
return ret;
|
|
2835
2681
|
}
|
|
2836
2682
|
/**
|
|
2837
|
-
* @param {
|
|
2683
|
+
* @param {PermissionPolicy} arg0
|
|
2838
2684
|
*/
|
|
2839
|
-
set
|
|
2840
|
-
wasm.
|
|
2685
|
+
set updateGroupImageUrlSquarePolicy(arg0) {
|
|
2686
|
+
wasm.__wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(this.__wbg_ptr, arg0);
|
|
2841
2687
|
}
|
|
2842
2688
|
/**
|
|
2843
|
-
* @returns {
|
|
2689
|
+
* @returns {PermissionPolicy}
|
|
2844
2690
|
*/
|
|
2845
|
-
get
|
|
2846
|
-
const ret = wasm.
|
|
2691
|
+
get updateGroupPinnedFrameUrlPolicy() {
|
|
2692
|
+
const ret = wasm.__wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(this.__wbg_ptr);
|
|
2847
2693
|
return ret;
|
|
2848
2694
|
}
|
|
2849
2695
|
/**
|
|
2850
|
-
* @param {
|
|
2696
|
+
* @param {PermissionPolicy} arg0
|
|
2851
2697
|
*/
|
|
2852
|
-
set
|
|
2853
|
-
wasm.
|
|
2698
|
+
set updateGroupPinnedFrameUrlPolicy(arg0) {
|
|
2699
|
+
wasm.__wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(this.__wbg_ptr, arg0);
|
|
2854
2700
|
}
|
|
2855
2701
|
/**
|
|
2856
|
-
* @param {
|
|
2857
|
-
* @param {
|
|
2858
|
-
* @param {
|
|
2859
|
-
* @param {
|
|
2860
|
-
* @param {
|
|
2861
|
-
* @param {
|
|
2862
|
-
* @param {
|
|
2863
|
-
* @param {
|
|
2702
|
+
* @param {PermissionPolicy} add_member_policy
|
|
2703
|
+
* @param {PermissionPolicy} remove_member_policy
|
|
2704
|
+
* @param {PermissionPolicy} add_admin_policy
|
|
2705
|
+
* @param {PermissionPolicy} remove_admin_policy
|
|
2706
|
+
* @param {PermissionPolicy} update_group_name_policy
|
|
2707
|
+
* @param {PermissionPolicy} update_group_description_policy
|
|
2708
|
+
* @param {PermissionPolicy} update_group_image_url_square_policy
|
|
2709
|
+
* @param {PermissionPolicy} update_group_pinned_frame_url_policy
|
|
2864
2710
|
*/
|
|
2865
2711
|
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) {
|
|
2866
|
-
const ret = wasm.
|
|
2712
|
+
const ret = wasm.permissionpolicyset_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);
|
|
2867
2713
|
this.__wbg_ptr = ret >>> 0;
|
|
2868
|
-
|
|
2714
|
+
PermissionPolicySetFinalization.register(this, this.__wbg_ptr, this);
|
|
2869
2715
|
return this;
|
|
2870
2716
|
}
|
|
2871
2717
|
}
|
|
2872
2718
|
|
|
2719
|
+
const VersionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2720
|
+
? { register: () => {}, unregister: () => {} }
|
|
2721
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_version_free(ptr >>> 0, 1));
|
|
2722
|
+
|
|
2723
|
+
export class Version {
|
|
2724
|
+
|
|
2725
|
+
__destroy_into_raw() {
|
|
2726
|
+
const ptr = this.__wbg_ptr;
|
|
2727
|
+
this.__wbg_ptr = 0;
|
|
2728
|
+
VersionFinalization.unregister(this);
|
|
2729
|
+
return ptr;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
free() {
|
|
2733
|
+
const ptr = this.__destroy_into_raw();
|
|
2734
|
+
wasm.__wbg_version_free(ptr, 0);
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2873
2738
|
async function __wbg_load(module, imports) {
|
|
2874
2739
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
2875
2740
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
@@ -2920,24 +2785,49 @@ function __wbg_get_imports() {
|
|
|
2920
2785
|
const ret = arg0;
|
|
2921
2786
|
return ret;
|
|
2922
2787
|
};
|
|
2923
|
-
imports.wbg.
|
|
2924
|
-
const ret =
|
|
2788
|
+
imports.wbg.__wbg_conversation_new = function(arg0) {
|
|
2789
|
+
const ret = Conversation.__wrap(arg0);
|
|
2790
|
+
return ret;
|
|
2791
|
+
};
|
|
2792
|
+
imports.wbg.__wbg_message_new = function(arg0) {
|
|
2793
|
+
const ret = Message.__wrap(arg0);
|
|
2925
2794
|
return ret;
|
|
2926
2795
|
};
|
|
2927
|
-
imports.wbg.
|
|
2928
|
-
const ret =
|
|
2796
|
+
imports.wbg.__wbg_installation_new = function(arg0) {
|
|
2797
|
+
const ret = Installation.__wrap(arg0);
|
|
2929
2798
|
return ret;
|
|
2930
2799
|
};
|
|
2931
|
-
imports.wbg.
|
|
2932
|
-
const ret =
|
|
2800
|
+
imports.wbg.__wbg_inboxstate_new = function(arg0) {
|
|
2801
|
+
const ret = InboxState.__wrap(arg0);
|
|
2933
2802
|
return ret;
|
|
2934
2803
|
};
|
|
2935
|
-
imports.wbg.
|
|
2936
|
-
const ret =
|
|
2804
|
+
imports.wbg.__wbg_client_new = function(arg0) {
|
|
2805
|
+
const ret = Client.__wrap(arg0);
|
|
2937
2806
|
return ret;
|
|
2938
2807
|
};
|
|
2939
|
-
imports.wbg.
|
|
2940
|
-
const ret =
|
|
2808
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2809
|
+
const ret = arg0 === undefined;
|
|
2810
|
+
return ret;
|
|
2811
|
+
};
|
|
2812
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2813
|
+
const ret = arg0 in arg1;
|
|
2814
|
+
return ret;
|
|
2815
|
+
};
|
|
2816
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2817
|
+
const obj = arg1;
|
|
2818
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2819
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2820
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2821
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2822
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2823
|
+
};
|
|
2824
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2825
|
+
const val = arg0;
|
|
2826
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2827
|
+
return ret;
|
|
2828
|
+
};
|
|
2829
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2830
|
+
const ret = +arg0;
|
|
2941
2831
|
return ret;
|
|
2942
2832
|
};
|
|
2943
2833
|
imports.wbg.__wbindgen_try_into_number = function(arg0) {
|
|
@@ -2952,37 +2842,12 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
2952
2842
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2953
2843
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2954
2844
|
};
|
|
2955
|
-
imports.wbg.
|
|
2956
|
-
const ret =
|
|
2957
|
-
return ret;
|
|
2958
|
-
};
|
|
2959
|
-
imports.wbg.__wbg_wasminstallation_unwrap = function(arg0) {
|
|
2960
|
-
const ret = WasmInstallation.__unwrap(arg0);
|
|
2961
|
-
return ret;
|
|
2962
|
-
};
|
|
2963
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2964
|
-
const ret = arg0 === undefined;
|
|
2965
|
-
return ret;
|
|
2966
|
-
};
|
|
2967
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2968
|
-
const ret = arg0 in arg1;
|
|
2969
|
-
return ret;
|
|
2970
|
-
};
|
|
2971
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2972
|
-
const obj = arg1;
|
|
2973
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2974
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2975
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2976
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2977
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2978
|
-
};
|
|
2979
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2980
|
-
const val = arg0;
|
|
2981
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2845
|
+
imports.wbg.__wbg_consent_unwrap = function(arg0) {
|
|
2846
|
+
const ret = Consent.__unwrap(arg0);
|
|
2982
2847
|
return ret;
|
|
2983
2848
|
};
|
|
2984
|
-
imports.wbg.
|
|
2985
|
-
const ret =
|
|
2849
|
+
imports.wbg.__wbg_installation_unwrap = function(arg0) {
|
|
2850
|
+
const ret = Installation.__unwrap(arg0);
|
|
2986
2851
|
return ret;
|
|
2987
2852
|
};
|
|
2988
2853
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
@@ -2999,6 +2864,28 @@ imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(
|
|
|
2999
2864
|
const ret = setTimeout(arg0, arg1);
|
|
3000
2865
|
return ret;
|
|
3001
2866
|
}, arguments) };
|
|
2867
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
2868
|
+
const ret = new Error();
|
|
2869
|
+
return ret;
|
|
2870
|
+
};
|
|
2871
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
2872
|
+
const ret = arg1.stack;
|
|
2873
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2874
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2875
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2876
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2877
|
+
};
|
|
2878
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
2879
|
+
let deferred0_0;
|
|
2880
|
+
let deferred0_1;
|
|
2881
|
+
try {
|
|
2882
|
+
deferred0_0 = arg0;
|
|
2883
|
+
deferred0_1 = arg1;
|
|
2884
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
2885
|
+
} finally {
|
|
2886
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2887
|
+
}
|
|
2888
|
+
};
|
|
3002
2889
|
imports.wbg.__wbg_log_c9486ca5d8e2cbe8 = function(arg0, arg1) {
|
|
3003
2890
|
let deferred0_0;
|
|
3004
2891
|
let deferred0_1;
|
|
@@ -3040,7 +2927,6 @@ imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(fun
|
|
|
3040
2927
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3041
2928
|
}
|
|
3042
2929
|
}, arguments) };
|
|
3043
|
-
imports.wbg.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
3044
2930
|
imports.wbg.__wbg_sqlite3_ae38011f61b040f1 = function(arg0) {
|
|
3045
2931
|
const ret = arg0.sqlite3;
|
|
3046
2932
|
return ret;
|
|
@@ -3092,54 +2978,138 @@ imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
|
|
|
3092
2978
|
const ret = arg0.impl(arg1 >>> 0);
|
|
3093
2979
|
return ret;
|
|
3094
2980
|
};
|
|
3095
|
-
imports.wbg.__wbg_bindnull_a579e45de8665932 = function(arg0, arg1, arg2) {
|
|
3096
|
-
const ret = arg0.bind_null(arg1, arg2);
|
|
2981
|
+
imports.wbg.__wbg_bindnull_a579e45de8665932 = function(arg0, arg1, arg2) {
|
|
2982
|
+
const ret = arg0.bind_null(arg1, arg2);
|
|
2983
|
+
return ret;
|
|
2984
|
+
};
|
|
2985
|
+
imports.wbg.__wbg_bindtext_b0a790891eeafc66 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2986
|
+
const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
2987
|
+
return ret;
|
|
2988
|
+
};
|
|
2989
|
+
imports.wbg.__wbg_bindint_e1f4dcb68267a201 = function(arg0, arg1, arg2, arg3) {
|
|
2990
|
+
const ret = arg0.bind_int(arg1, arg2, arg3);
|
|
2991
|
+
return ret;
|
|
2992
|
+
};
|
|
2993
|
+
imports.wbg.__wbg_bindint64_4cb9d1672a18e57b = function(arg0, arg1, arg2, arg3) {
|
|
2994
|
+
const ret = arg0.bind_int64(arg1, arg2, arg3);
|
|
2995
|
+
return ret;
|
|
2996
|
+
};
|
|
2997
|
+
imports.wbg.__wbg_binddouble_1506f6b8c0c42d14 = function(arg0, arg1, arg2, arg3) {
|
|
2998
|
+
const ret = arg0.bind_double(arg1, arg2, arg3);
|
|
2999
|
+
return ret;
|
|
3000
|
+
};
|
|
3001
|
+
imports.wbg.__wbg_bindblob_f2a0872798d6b562 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3002
|
+
const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
3003
|
+
return ret;
|
|
3004
|
+
};
|
|
3005
|
+
imports.wbg.__wbg_dbhandle_9fa910514462f201 = function(arg0, arg1) {
|
|
3006
|
+
const ret = arg0.db_handle(arg1);
|
|
3007
|
+
return ret;
|
|
3008
|
+
};
|
|
3009
|
+
imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
|
|
3010
|
+
arg0.dealloc(arg1 >>> 0);
|
|
3011
|
+
};
|
|
3012
|
+
imports.wbg.__wbg_finalize_7ee740fba804fefe = function() { return handleError(function (arg0, arg1) {
|
|
3013
|
+
arg0.finalize(arg1);
|
|
3014
|
+
}, arguments) };
|
|
3015
|
+
imports.wbg.__wbg_reset_64daad59c50383d3 = function(arg0, arg1) {
|
|
3016
|
+
const ret = arg0.reset(arg1);
|
|
3017
|
+
return ret;
|
|
3018
|
+
};
|
|
3019
|
+
imports.wbg.__wbg_step_09504a247e0ba954 = function(arg0, arg1) {
|
|
3020
|
+
const ret = arg0.step(arg1);
|
|
3021
|
+
return ret;
|
|
3022
|
+
};
|
|
3023
|
+
imports.wbg.__wbg_columncount_da141db0617412dd = function(arg0, arg1) {
|
|
3024
|
+
const ret = arg0.column_count(arg1);
|
|
3025
|
+
return ret;
|
|
3026
|
+
};
|
|
3027
|
+
imports.wbg.__wbg_columnvalue_83d37aeaa7f4bef6 = function(arg0, arg1, arg2) {
|
|
3028
|
+
const ret = arg0.column_value(arg1, arg2);
|
|
3029
|
+
return ret;
|
|
3030
|
+
};
|
|
3031
|
+
imports.wbg.__wbg_capi_74a1a04b4eb066db = function(arg0) {
|
|
3032
|
+
const ret = arg0.capi;
|
|
3033
|
+
return ret;
|
|
3034
|
+
};
|
|
3035
|
+
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3036
|
+
const ret = arg0.SQLITE_FLOAT;
|
|
3037
|
+
return ret;
|
|
3038
|
+
};
|
|
3039
|
+
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3040
|
+
const ret = arg0.SQLITE_STATIC;
|
|
3041
|
+
return ret;
|
|
3042
|
+
};
|
|
3043
|
+
imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
|
|
3044
|
+
const ret = arg0.SQLITE_CONSTRAINT_CHECK;
|
|
3045
|
+
return ret;
|
|
3046
|
+
};
|
|
3047
|
+
imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
|
|
3048
|
+
const ret = arg0.SQLITE_NULL;
|
|
3049
|
+
return ret;
|
|
3050
|
+
};
|
|
3051
|
+
imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
|
|
3052
|
+
const ret = arg0.SQLITE_PREPARE_PERSISTENT;
|
|
3053
|
+
return ret;
|
|
3054
|
+
};
|
|
3055
|
+
imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
|
|
3056
|
+
const ret = arg0.SQLITE_DONE;
|
|
3057
|
+
return ret;
|
|
3058
|
+
};
|
|
3059
|
+
imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
|
|
3060
|
+
const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
|
|
3061
|
+
return ret;
|
|
3062
|
+
};
|
|
3063
|
+
imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
|
|
3064
|
+
const ret = arg0.SQLITE_ROW;
|
|
3065
|
+
return ret;
|
|
3066
|
+
};
|
|
3067
|
+
imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
|
|
3068
|
+
const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
|
|
3097
3069
|
return ret;
|
|
3098
3070
|
};
|
|
3099
|
-
imports.wbg.
|
|
3100
|
-
const ret = arg0.
|
|
3071
|
+
imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
|
|
3072
|
+
const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
|
|
3101
3073
|
return ret;
|
|
3102
3074
|
};
|
|
3103
|
-
imports.wbg.
|
|
3104
|
-
const ret = arg0.
|
|
3075
|
+
imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
|
|
3076
|
+
const ret = arg0.SQLITE_INTEGER;
|
|
3105
3077
|
return ret;
|
|
3106
3078
|
};
|
|
3107
|
-
imports.wbg.
|
|
3108
|
-
const ret = arg0.
|
|
3079
|
+
imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
|
|
3080
|
+
const ret = arg0.SQLITE_OK;
|
|
3109
3081
|
return ret;
|
|
3110
3082
|
};
|
|
3111
|
-
imports.wbg.
|
|
3112
|
-
const ret = arg0.
|
|
3083
|
+
imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
|
|
3084
|
+
const ret = arg0.SQLITE_TEXT;
|
|
3113
3085
|
return ret;
|
|
3114
3086
|
};
|
|
3115
|
-
imports.wbg.
|
|
3116
|
-
const ret = arg0.
|
|
3087
|
+
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3088
|
+
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3117
3089
|
return ret;
|
|
3118
3090
|
};
|
|
3119
|
-
imports.wbg.
|
|
3120
|
-
const ret = arg0.
|
|
3091
|
+
imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
|
|
3092
|
+
const ret = arg0.SQLITE_BLOB;
|
|
3121
3093
|
return ret;
|
|
3122
3094
|
};
|
|
3123
|
-
imports.wbg.
|
|
3124
|
-
arg0.
|
|
3095
|
+
imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
|
|
3096
|
+
const ret = arg0.SQLITE_OPEN_READWRITE;
|
|
3097
|
+
return ret;
|
|
3125
3098
|
};
|
|
3126
|
-
imports.wbg.
|
|
3127
|
-
arg0.
|
|
3128
|
-
}, arguments) };
|
|
3129
|
-
imports.wbg.__wbg_reset_64daad59c50383d3 = function(arg0, arg1) {
|
|
3130
|
-
const ret = arg0.reset(arg1);
|
|
3099
|
+
imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
|
|
3100
|
+
const ret = arg0.SQLITE_OPEN_CREATE;
|
|
3131
3101
|
return ret;
|
|
3132
3102
|
};
|
|
3133
|
-
imports.wbg.
|
|
3134
|
-
const ret = arg0.
|
|
3103
|
+
imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
|
|
3104
|
+
const ret = arg0.SQLITE_OPEN_URI;
|
|
3135
3105
|
return ret;
|
|
3136
3106
|
};
|
|
3137
|
-
imports.wbg.
|
|
3138
|
-
const ret = arg0.
|
|
3107
|
+
imports.wbg.__wbg_changes_449e8e7adde4811b = function(arg0, arg1) {
|
|
3108
|
+
const ret = arg0.changes(arg1);
|
|
3139
3109
|
return ret;
|
|
3140
3110
|
};
|
|
3141
|
-
imports.wbg.
|
|
3142
|
-
const ret = arg0.
|
|
3111
|
+
imports.wbg.__wbg_close_f1e03beafae72a1f = function(arg0, arg1) {
|
|
3112
|
+
const ret = arg0.close(arg1);
|
|
3143
3113
|
return ret;
|
|
3144
3114
|
};
|
|
3145
3115
|
imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
|
|
@@ -3153,10 +3123,6 @@ imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
|
|
|
3153
3123
|
const ret = arg0.heap8u();
|
|
3154
3124
|
return ret;
|
|
3155
3125
|
};
|
|
3156
|
-
imports.wbg.__wbg_capi_74a1a04b4eb066db = function(arg0) {
|
|
3157
|
-
const ret = arg0.capi;
|
|
3158
|
-
return ret;
|
|
3159
|
-
};
|
|
3160
3126
|
imports.wbg.__wbg_new_d2b35c9d7f4b1471 = function(arg0) {
|
|
3161
3127
|
const ret = new SQLite(arg0);
|
|
3162
3128
|
return ret;
|
|
@@ -3239,14 +3205,6 @@ imports.wbg.__wbg_open_630840f0e3bfa104 = function() { return handleError(functi
|
|
|
3239
3205
|
imports.wbg.__wbg_exec_891e7bcb242b8263 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3240
3206
|
arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
|
|
3241
3207
|
}, arguments) };
|
|
3242
|
-
imports.wbg.__wbg_changes_449e8e7adde4811b = function(arg0, arg1) {
|
|
3243
|
-
const ret = arg0.changes(arg1);
|
|
3244
|
-
return ret;
|
|
3245
|
-
};
|
|
3246
|
-
imports.wbg.__wbg_close_f1e03beafae72a1f = function(arg0, arg1) {
|
|
3247
|
-
const ret = arg0.close(arg1);
|
|
3248
|
-
return ret;
|
|
3249
|
-
};
|
|
3250
3208
|
imports.wbg.__wbg_columnname_ff3aa78d6aa3c952 = function(arg0, arg1, arg2, arg3) {
|
|
3251
3209
|
const ret = arg1.column_name(arg2, arg3);
|
|
3252
3210
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3269,78 +3227,6 @@ imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
|
|
|
3269
3227
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3270
3228
|
}
|
|
3271
3229
|
};
|
|
3272
|
-
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3273
|
-
const ret = arg0.SQLITE_FLOAT;
|
|
3274
|
-
return ret;
|
|
3275
|
-
};
|
|
3276
|
-
imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
|
|
3277
|
-
const ret = arg0.SQLITE_ROW;
|
|
3278
|
-
return ret;
|
|
3279
|
-
};
|
|
3280
|
-
imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
|
|
3281
|
-
const ret = arg0.SQLITE_INTEGER;
|
|
3282
|
-
return ret;
|
|
3283
|
-
};
|
|
3284
|
-
imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
|
|
3285
|
-
const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
|
|
3286
|
-
return ret;
|
|
3287
|
-
};
|
|
3288
|
-
imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
|
|
3289
|
-
const ret = arg0.SQLITE_DONE;
|
|
3290
|
-
return ret;
|
|
3291
|
-
};
|
|
3292
|
-
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3293
|
-
const ret = arg0.SQLITE_STATIC;
|
|
3294
|
-
return ret;
|
|
3295
|
-
};
|
|
3296
|
-
imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
|
|
3297
|
-
const ret = arg0.SQLITE_BLOB;
|
|
3298
|
-
return ret;
|
|
3299
|
-
};
|
|
3300
|
-
imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
|
|
3301
|
-
const ret = arg0.SQLITE_OK;
|
|
3302
|
-
return ret;
|
|
3303
|
-
};
|
|
3304
|
-
imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
|
|
3305
|
-
const ret = arg0.SQLITE_PREPARE_PERSISTENT;
|
|
3306
|
-
return ret;
|
|
3307
|
-
};
|
|
3308
|
-
imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
|
|
3309
|
-
const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
|
|
3310
|
-
return ret;
|
|
3311
|
-
};
|
|
3312
|
-
imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
|
|
3313
|
-
const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
|
|
3314
|
-
return ret;
|
|
3315
|
-
};
|
|
3316
|
-
imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
|
|
3317
|
-
const ret = arg0.SQLITE_NULL;
|
|
3318
|
-
return ret;
|
|
3319
|
-
};
|
|
3320
|
-
imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
|
|
3321
|
-
const ret = arg0.SQLITE_CONSTRAINT_CHECK;
|
|
3322
|
-
return ret;
|
|
3323
|
-
};
|
|
3324
|
-
imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
|
|
3325
|
-
const ret = arg0.SQLITE_TEXT;
|
|
3326
|
-
return ret;
|
|
3327
|
-
};
|
|
3328
|
-
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3329
|
-
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3330
|
-
return ret;
|
|
3331
|
-
};
|
|
3332
|
-
imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
|
|
3333
|
-
const ret = arg0.SQLITE_OPEN_READWRITE;
|
|
3334
|
-
return ret;
|
|
3335
|
-
};
|
|
3336
|
-
imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
|
|
3337
|
-
const ret = arg0.SQLITE_OPEN_CREATE;
|
|
3338
|
-
return ret;
|
|
3339
|
-
};
|
|
3340
|
-
imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
|
|
3341
|
-
const ret = arg0.SQLITE_OPEN_URI;
|
|
3342
|
-
return ret;
|
|
3343
|
-
};
|
|
3344
3230
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
3345
3231
|
const ret = arg0 == arg1;
|
|
3346
3232
|
return ret;
|
|
@@ -3364,91 +3250,41 @@ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
|
3364
3250
|
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
3365
3251
|
arg0[arg1] = arg2;
|
|
3366
3252
|
};
|
|
3367
|
-
imports.wbg.
|
|
3368
|
-
|
|
3369
|
-
};
|
|
3370
|
-
imports.wbg.__wbg_self_fa85e99720202dd4 = function(arg0) {
|
|
3371
|
-
const ret = arg0.self;
|
|
3372
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3373
|
-
};
|
|
3374
|
-
imports.wbg.__wbg_constructor_41b3ab5898fdf330 = function(arg0) {
|
|
3375
|
-
const ret = arg0.constructor;
|
|
3253
|
+
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
3254
|
+
const ret = arg0.crypto;
|
|
3376
3255
|
return ret;
|
|
3377
3256
|
};
|
|
3378
|
-
imports.wbg.
|
|
3379
|
-
const ret =
|
|
3380
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3381
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3382
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3383
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3384
|
-
};
|
|
3385
|
-
imports.wbg.__wbg_Deno_a6da1a839b626101 = function(arg0) {
|
|
3386
|
-
const ret = arg0.Deno;
|
|
3387
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3388
|
-
};
|
|
3389
|
-
imports.wbg.__wbg_stack_9dc96582e4822571 = function(arg0, arg1) {
|
|
3390
|
-
const ret = arg1.stack;
|
|
3391
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3392
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3393
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3394
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3395
|
-
};
|
|
3396
|
-
imports.wbg.__wbg_String_c3b43c66a02c6ca8 = function(arg0, arg1) {
|
|
3397
|
-
const ret = String(arg1);
|
|
3398
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3399
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3400
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3401
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3402
|
-
};
|
|
3403
|
-
imports.wbg.__wbg_settextcontent_ea3dfc9f7afe7f06 = function(arg0, arg1, arg2) {
|
|
3404
|
-
arg0.textContent = getStringFromWasm0(arg1, arg2);
|
|
3405
|
-
};
|
|
3406
|
-
imports.wbg.__wbg_static_accessor_DOCUMENT_a5bca7f6e8b241cf = function() {
|
|
3407
|
-
const ret = document;
|
|
3257
|
+
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
3258
|
+
const ret = arg0.process;
|
|
3408
3259
|
return ret;
|
|
3409
3260
|
};
|
|
3410
|
-
imports.wbg.
|
|
3411
|
-
const ret = arg0.
|
|
3261
|
+
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
3262
|
+
const ret = arg0.versions;
|
|
3412
3263
|
return ret;
|
|
3413
3264
|
};
|
|
3414
|
-
imports.wbg.
|
|
3415
|
-
const ret =
|
|
3416
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3417
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3418
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3419
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3420
|
-
};
|
|
3421
|
-
imports.wbg.__wbg_stack_e7498cc287ef84ec = function(arg0) {
|
|
3422
|
-
const ret = arg0.stack;
|
|
3265
|
+
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
3266
|
+
const ret = arg0.node;
|
|
3423
3267
|
return ret;
|
|
3424
3268
|
};
|
|
3425
|
-
imports.wbg.
|
|
3426
|
-
|
|
3427
|
-
const ret = arg0.stack;
|
|
3269
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
3270
|
+
const ret = typeof(arg0) === 'string';
|
|
3428
3271
|
return ret;
|
|
3429
3272
|
};
|
|
3430
|
-
imports.wbg.
|
|
3431
|
-
const ret =
|
|
3273
|
+
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
3274
|
+
const ret = module.require;
|
|
3275
|
+
return ret;
|
|
3276
|
+
}, arguments) };
|
|
3277
|
+
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
3278
|
+
const ret = arg0.msCrypto;
|
|
3432
3279
|
return ret;
|
|
3433
3280
|
};
|
|
3434
|
-
imports.wbg.
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
3442
|
-
let deferred0_0;
|
|
3443
|
-
let deferred0_1;
|
|
3444
|
-
try {
|
|
3445
|
-
deferred0_0 = arg0;
|
|
3446
|
-
deferred0_1 = arg1;
|
|
3447
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
3448
|
-
} finally {
|
|
3449
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3450
|
-
}
|
|
3451
|
-
};
|
|
3281
|
+
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
3282
|
+
arg0.getRandomValues(arg1);
|
|
3283
|
+
}, arguments) };
|
|
3284
|
+
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
3285
|
+
arg0.randomFillSync(arg1);
|
|
3286
|
+
}, arguments) };
|
|
3287
|
+
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
3452
3288
|
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
|
3453
3289
|
const ret = arg0.queueMicrotask;
|
|
3454
3290
|
return ret;
|
|
@@ -3552,40 +3388,6 @@ imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(functio
|
|
|
3552
3388
|
imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3553
3389
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3554
3390
|
}, arguments) };
|
|
3555
|
-
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
3556
|
-
const ret = arg0.crypto;
|
|
3557
|
-
return ret;
|
|
3558
|
-
};
|
|
3559
|
-
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
3560
|
-
const ret = arg0.process;
|
|
3561
|
-
return ret;
|
|
3562
|
-
};
|
|
3563
|
-
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
3564
|
-
const ret = arg0.versions;
|
|
3565
|
-
return ret;
|
|
3566
|
-
};
|
|
3567
|
-
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
3568
|
-
const ret = arg0.node;
|
|
3569
|
-
return ret;
|
|
3570
|
-
};
|
|
3571
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
3572
|
-
const ret = typeof(arg0) === 'string';
|
|
3573
|
-
return ret;
|
|
3574
|
-
};
|
|
3575
|
-
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
3576
|
-
const ret = module.require;
|
|
3577
|
-
return ret;
|
|
3578
|
-
}, arguments) };
|
|
3579
|
-
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
3580
|
-
const ret = arg0.msCrypto;
|
|
3581
|
-
return ret;
|
|
3582
|
-
};
|
|
3583
|
-
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
3584
|
-
arg0.getRandomValues(arg1);
|
|
3585
|
-
}, arguments) };
|
|
3586
|
-
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
3587
|
-
arg0.randomFillSync(arg1);
|
|
3588
|
-
}, arguments) };
|
|
3589
3391
|
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
|
|
3590
3392
|
const ret = arg0[arg1 >>> 0];
|
|
3591
3393
|
return ret;
|
|
@@ -3657,23 +3459,6 @@ imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(func
|
|
|
3657
3459
|
imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
|
|
3658
3460
|
arg0[arg1 >>> 0] = arg2;
|
|
3659
3461
|
};
|
|
3660
|
-
imports.wbg.__wbg_forEach_678f416cbff9306a = function(arg0, arg1, arg2) {
|
|
3661
|
-
try {
|
|
3662
|
-
var state0 = {a: arg1, b: arg2};
|
|
3663
|
-
var cb0 = (arg0, arg1, arg2) => {
|
|
3664
|
-
const a = state0.a;
|
|
3665
|
-
state0.a = 0;
|
|
3666
|
-
try {
|
|
3667
|
-
return __wbg_adapter_537(a, state0.b, arg0, arg1, arg2);
|
|
3668
|
-
} finally {
|
|
3669
|
-
state0.a = a;
|
|
3670
|
-
}
|
|
3671
|
-
};
|
|
3672
|
-
arg0.forEach(cb0);
|
|
3673
|
-
} finally {
|
|
3674
|
-
state0.a = state0.b = 0;
|
|
3675
|
-
}
|
|
3676
|
-
};
|
|
3677
3462
|
imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
|
|
3678
3463
|
const ret = arg0.push(arg1);
|
|
3679
3464
|
return ret;
|
|
@@ -3692,14 +3477,6 @@ imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
|
|
|
3692
3477
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3693
3478
|
return ret;
|
|
3694
3479
|
};
|
|
3695
|
-
imports.wbg.__wbg_message_00eebca8fa4dd7db = function(arg0) {
|
|
3696
|
-
const ret = arg0.message;
|
|
3697
|
-
return ret;
|
|
3698
|
-
};
|
|
3699
|
-
imports.wbg.__wbg_name_aa32a0ae51232604 = function(arg0) {
|
|
3700
|
-
const ret = arg0.name;
|
|
3701
|
-
return ret;
|
|
3702
|
-
};
|
|
3703
3480
|
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3704
3481
|
const ret = arg0.call(arg1, arg2);
|
|
3705
3482
|
return ret;
|
|
@@ -3727,7 +3504,7 @@ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
|
|
3727
3504
|
const a = state0.a;
|
|
3728
3505
|
state0.a = 0;
|
|
3729
3506
|
try {
|
|
3730
|
-
return
|
|
3507
|
+
return __wbg_adapter_536(a, state0.b, arg0, arg1);
|
|
3731
3508
|
} finally {
|
|
3732
3509
|
state0.a = a;
|
|
3733
3510
|
}
|
|
@@ -3825,12 +3602,12 @@ imports.wbg.__wbindgen_memory = function() {
|
|
|
3825
3602
|
const ret = wasm.memory;
|
|
3826
3603
|
return ret;
|
|
3827
3604
|
};
|
|
3828
|
-
imports.wbg.
|
|
3829
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3605
|
+
imports.wbg.__wbindgen_closure_wrapper7027 = function(arg0, arg1, arg2) {
|
|
3606
|
+
const ret = makeMutClosure(arg0, arg1, 1609, __wbg_adapter_46);
|
|
3830
3607
|
return ret;
|
|
3831
3608
|
};
|
|
3832
|
-
imports.wbg.
|
|
3833
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3609
|
+
imports.wbg.__wbindgen_closure_wrapper12259 = function(arg0, arg1, arg2) {
|
|
3610
|
+
const ret = makeMutClosure(arg0, arg1, 2956, __wbg_adapter_49);
|
|
3834
3611
|
return ret;
|
|
3835
3612
|
};
|
|
3836
3613
|
imports.wbg.__wbindgen_init_externref_table = function() {
|