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