@xmtp/wasm-bindings 1.10.0-dev.7ce88dd → 1.10.0-dev.82e8ff4
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/dist/bindings_wasm.d.ts +254 -87
- package/dist/bindings_wasm.js +602 -72
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +115 -80
- package/package.json +2 -2
package/dist/bindings_wasm.js
CHANGED
|
@@ -44,6 +44,196 @@ export class AuthHandle {
|
|
|
44
44
|
}
|
|
45
45
|
if (Symbol.dispose) AuthHandle.prototype[Symbol.dispose] = AuthHandle.prototype.free;
|
|
46
46
|
|
|
47
|
+
export class Backend {
|
|
48
|
+
static __wrap(ptr) {
|
|
49
|
+
ptr = ptr >>> 0;
|
|
50
|
+
const obj = Object.create(Backend.prototype);
|
|
51
|
+
obj.__wbg_ptr = ptr;
|
|
52
|
+
BackendFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
53
|
+
return obj;
|
|
54
|
+
}
|
|
55
|
+
__destroy_into_raw() {
|
|
56
|
+
const ptr = this.__wbg_ptr;
|
|
57
|
+
this.__wbg_ptr = 0;
|
|
58
|
+
BackendFinalization.unregister(this);
|
|
59
|
+
return ptr;
|
|
60
|
+
}
|
|
61
|
+
free() {
|
|
62
|
+
const ptr = this.__destroy_into_raw();
|
|
63
|
+
wasm.__wbg_backend_free(ptr, 0);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @returns {string}
|
|
67
|
+
*/
|
|
68
|
+
get appVersion() {
|
|
69
|
+
let deferred1_0;
|
|
70
|
+
let deferred1_1;
|
|
71
|
+
try {
|
|
72
|
+
const ret = wasm.backend_appVersion(this.__wbg_ptr);
|
|
73
|
+
deferred1_0 = ret[0];
|
|
74
|
+
deferred1_1 = ret[1];
|
|
75
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
76
|
+
} finally {
|
|
77
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @returns {XmtpEnv}
|
|
82
|
+
*/
|
|
83
|
+
get env() {
|
|
84
|
+
const ret = wasm.backend_env(this.__wbg_ptr);
|
|
85
|
+
return ret;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @returns {string | undefined}
|
|
89
|
+
*/
|
|
90
|
+
get gatewayHost() {
|
|
91
|
+
const ret = wasm.backend_gatewayHost(this.__wbg_ptr);
|
|
92
|
+
let v1;
|
|
93
|
+
if (ret[0] !== 0) {
|
|
94
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
95
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
96
|
+
}
|
|
97
|
+
return v1;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @returns {string | undefined}
|
|
101
|
+
*/
|
|
102
|
+
get v3Host() {
|
|
103
|
+
const ret = wasm.backend_v3Host(this.__wbg_ptr);
|
|
104
|
+
let v1;
|
|
105
|
+
if (ret[0] !== 0) {
|
|
106
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
107
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
108
|
+
}
|
|
109
|
+
return v1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (Symbol.dispose) Backend.prototype[Symbol.dispose] = Backend.prototype.free;
|
|
113
|
+
|
|
114
|
+
export class BackendBuilder {
|
|
115
|
+
static __wrap(ptr) {
|
|
116
|
+
ptr = ptr >>> 0;
|
|
117
|
+
const obj = Object.create(BackendBuilder.prototype);
|
|
118
|
+
obj.__wbg_ptr = ptr;
|
|
119
|
+
BackendBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
120
|
+
return obj;
|
|
121
|
+
}
|
|
122
|
+
__destroy_into_raw() {
|
|
123
|
+
const ptr = this.__wbg_ptr;
|
|
124
|
+
this.__wbg_ptr = 0;
|
|
125
|
+
BackendBuilderFinalization.unregister(this);
|
|
126
|
+
return ptr;
|
|
127
|
+
}
|
|
128
|
+
free() {
|
|
129
|
+
const ptr = this.__destroy_into_raw();
|
|
130
|
+
wasm.__wbg_backendbuilder_free(ptr, 0);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param {any} callback
|
|
134
|
+
*/
|
|
135
|
+
authCallback(callback) {
|
|
136
|
+
wasm.backendbuilder_authCallback(this.__wbg_ptr, callback);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @param {AuthHandle} handle
|
|
140
|
+
*/
|
|
141
|
+
authHandle(handle) {
|
|
142
|
+
_assertClass(handle, AuthHandle);
|
|
143
|
+
var ptr0 = handle.__destroy_into_raw();
|
|
144
|
+
wasm.backendbuilder_authHandle(this.__wbg_ptr, ptr0);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @returns {Backend}
|
|
148
|
+
*/
|
|
149
|
+
build() {
|
|
150
|
+
const ptr = this.__destroy_into_raw();
|
|
151
|
+
const ret = wasm.backendbuilder_build(ptr);
|
|
152
|
+
if (ret[2]) {
|
|
153
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
154
|
+
}
|
|
155
|
+
return Backend.__wrap(ret[0]);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @param {XmtpEnv} env
|
|
159
|
+
*/
|
|
160
|
+
constructor(env) {
|
|
161
|
+
const ret = wasm.backendbuilder_new(env);
|
|
162
|
+
this.__wbg_ptr = ret >>> 0;
|
|
163
|
+
BackendBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @param {string} api_url
|
|
168
|
+
* @returns {BackendBuilder}
|
|
169
|
+
*/
|
|
170
|
+
setApiUrl(api_url) {
|
|
171
|
+
const ptr = this.__destroy_into_raw();
|
|
172
|
+
const ptr0 = passStringToWasm0(api_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
173
|
+
const len0 = WASM_VECTOR_LEN;
|
|
174
|
+
const ret = wasm.backendbuilder_setApiUrl(ptr, ptr0, len0);
|
|
175
|
+
return BackendBuilder.__wrap(ret);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @param {string} app_version
|
|
179
|
+
* @returns {BackendBuilder}
|
|
180
|
+
*/
|
|
181
|
+
setAppVersion(app_version) {
|
|
182
|
+
const ptr = this.__destroy_into_raw();
|
|
183
|
+
const ptr0 = passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
184
|
+
const len0 = WASM_VECTOR_LEN;
|
|
185
|
+
const ret = wasm.backendbuilder_setAppVersion(ptr, ptr0, len0);
|
|
186
|
+
return BackendBuilder.__wrap(ret);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {string} gateway_host
|
|
190
|
+
* @returns {BackendBuilder}
|
|
191
|
+
*/
|
|
192
|
+
setGatewayHost(gateway_host) {
|
|
193
|
+
const ptr = this.__destroy_into_raw();
|
|
194
|
+
const ptr0 = passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
+
const len0 = WASM_VECTOR_LEN;
|
|
196
|
+
const ret = wasm.backendbuilder_setGatewayHost(ptr, ptr0, len0);
|
|
197
|
+
return BackendBuilder.__wrap(ret);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @param {boolean} readonly
|
|
201
|
+
* @returns {BackendBuilder}
|
|
202
|
+
*/
|
|
203
|
+
setReadonly(readonly) {
|
|
204
|
+
const ptr = this.__destroy_into_raw();
|
|
205
|
+
const ret = wasm.backendbuilder_setReadonly(ptr, readonly);
|
|
206
|
+
return BackendBuilder.__wrap(ret);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @returns {XmtpEnv}
|
|
210
|
+
*/
|
|
211
|
+
get env() {
|
|
212
|
+
const ret = wasm.__wbg_get_backendbuilder_env(this.__wbg_ptr);
|
|
213
|
+
return ret;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @returns {boolean | undefined}
|
|
217
|
+
*/
|
|
218
|
+
get readonly() {
|
|
219
|
+
const ret = wasm.__wbg_get_backendbuilder_readonly(this.__wbg_ptr);
|
|
220
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @param {XmtpEnv} arg0
|
|
224
|
+
*/
|
|
225
|
+
set env(arg0) {
|
|
226
|
+
wasm.__wbg_set_backendbuilder_env(this.__wbg_ptr, arg0);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param {boolean | null} [arg0]
|
|
230
|
+
*/
|
|
231
|
+
set readonly(arg0) {
|
|
232
|
+
wasm.__wbg_set_backendbuilder_readonly(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (Symbol.dispose) BackendBuilder.prototype[Symbol.dispose] = BackendBuilder.prototype.free;
|
|
236
|
+
|
|
47
237
|
/**
|
|
48
238
|
* Selection of what elements to include in a backup
|
|
49
239
|
* @enum {0 | 1}
|
|
@@ -1612,10 +1802,14 @@ export class DeviceSync {
|
|
|
1612
1802
|
}
|
|
1613
1803
|
/**
|
|
1614
1804
|
* Manually trigger a device sync request to sync records from another active device on this account.
|
|
1805
|
+
* @param {ArchiveOptions} options
|
|
1806
|
+
* @param {string} serverUrl
|
|
1615
1807
|
* @returns {Promise<void>}
|
|
1616
1808
|
*/
|
|
1617
|
-
sendSyncRequest() {
|
|
1618
|
-
const
|
|
1809
|
+
sendSyncRequest(options, serverUrl) {
|
|
1810
|
+
const ptr0 = passStringToWasm0(serverUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1811
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1812
|
+
const ret = wasm.devicesync_sendSyncRequest(this.__wbg_ptr, options, ptr0, len0);
|
|
1619
1813
|
return ret;
|
|
1620
1814
|
}
|
|
1621
1815
|
/**
|
|
@@ -1632,7 +1826,7 @@ if (Symbol.dispose) DeviceSync.prototype[Symbol.dispose] = DeviceSync.prototype.
|
|
|
1632
1826
|
/**
|
|
1633
1827
|
* @enum {0 | 1}
|
|
1634
1828
|
*/
|
|
1635
|
-
export const
|
|
1829
|
+
export const DeviceSyncMode = Object.freeze({
|
|
1636
1830
|
Enabled: 0, "0": "Enabled",
|
|
1637
1831
|
Disabled: 1, "1": "Disabled",
|
|
1638
1832
|
});
|
|
@@ -1999,18 +2193,209 @@ export class StreamCloser {
|
|
|
1999
2193
|
if (Symbol.dispose) StreamCloser.prototype[Symbol.dispose] = StreamCloser.prototype.free;
|
|
2000
2194
|
|
|
2001
2195
|
/**
|
|
2002
|
-
*
|
|
2003
|
-
*
|
|
2196
|
+
* Runtime test harness support instantiated in JS.
|
|
2197
|
+
*
|
|
2198
|
+
* The node.js entry script instantiates a `Context` here which is used to
|
|
2199
|
+
* drive test execution.
|
|
2200
|
+
*/
|
|
2201
|
+
export class WasmBindgenTestContext {
|
|
2202
|
+
__destroy_into_raw() {
|
|
2203
|
+
const ptr = this.__wbg_ptr;
|
|
2204
|
+
this.__wbg_ptr = 0;
|
|
2205
|
+
WasmBindgenTestContextFinalization.unregister(this);
|
|
2206
|
+
return ptr;
|
|
2207
|
+
}
|
|
2208
|
+
free() {
|
|
2209
|
+
const ptr = this.__destroy_into_raw();
|
|
2210
|
+
wasm.__wbg_wasmbindgentestcontext_free(ptr, 0);
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Handle filter argument.
|
|
2214
|
+
* @param {number} filtered
|
|
2215
|
+
*/
|
|
2216
|
+
filtered_count(filtered) {
|
|
2217
|
+
wasm.wasmbindgentestcontext_filtered_count(this.__wbg_ptr, filtered);
|
|
2218
|
+
}
|
|
2219
|
+
/**
|
|
2220
|
+
* Handle `--include-ignored` flag.
|
|
2221
|
+
* @param {boolean} include_ignored
|
|
2222
|
+
*/
|
|
2223
|
+
include_ignored(include_ignored) {
|
|
2224
|
+
wasm.wasmbindgentestcontext_include_ignored(this.__wbg_ptr, include_ignored);
|
|
2225
|
+
}
|
|
2226
|
+
/**
|
|
2227
|
+
* Creates a new context ready to run tests.
|
|
2228
|
+
*
|
|
2229
|
+
* A `Context` is the main structure through which test execution is
|
|
2230
|
+
* coordinated, and this will collect output and results for all executed
|
|
2231
|
+
* tests.
|
|
2232
|
+
* @param {boolean} is_bench
|
|
2233
|
+
*/
|
|
2234
|
+
constructor(is_bench) {
|
|
2235
|
+
const ret = wasm.wasmbindgentestcontext_new(is_bench);
|
|
2236
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2237
|
+
WasmBindgenTestContextFinalization.register(this, this.__wbg_ptr, this);
|
|
2238
|
+
return this;
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Executes a list of tests, returning a promise representing their
|
|
2242
|
+
* eventual completion.
|
|
2243
|
+
*
|
|
2244
|
+
* This is the main entry point for executing tests. All the tests passed
|
|
2245
|
+
* in are the JS `Function` object that was plucked off the
|
|
2246
|
+
* `WebAssembly.Instance` exports list.
|
|
2247
|
+
*
|
|
2248
|
+
* The promise returned resolves to either `true` if all tests passed or
|
|
2249
|
+
* `false` if at least one test failed.
|
|
2250
|
+
* @param {any[]} tests
|
|
2251
|
+
* @returns {Promise<any>}
|
|
2252
|
+
*/
|
|
2253
|
+
run(tests) {
|
|
2254
|
+
const ptr0 = passArrayJsValueToWasm0(tests, wasm.__wbindgen_malloc);
|
|
2255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2256
|
+
const ret = wasm.wasmbindgentestcontext_run(this.__wbg_ptr, ptr0, len0);
|
|
2257
|
+
return ret;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
if (Symbol.dispose) WasmBindgenTestContext.prototype[Symbol.dispose] = WasmBindgenTestContext.prototype.free;
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6}
|
|
2264
|
+
*/
|
|
2265
|
+
export const XmtpEnv = Object.freeze({
|
|
2266
|
+
Local: 0, "0": "Local",
|
|
2267
|
+
Dev: 1, "1": "Dev",
|
|
2268
|
+
Production: 2, "2": "Production",
|
|
2269
|
+
TestnetStaging: 3, "3": "TestnetStaging",
|
|
2270
|
+
TestnetDev: 4, "4": "TestnetDev",
|
|
2271
|
+
Testnet: 5, "5": "Testnet",
|
|
2272
|
+
Mainnet: 6, "6": "Mainnet",
|
|
2273
|
+
});
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* Used to read benchmark data, and then the runner stores it on the local disk.
|
|
2277
|
+
* @returns {Uint8Array | undefined}
|
|
2278
|
+
*/
|
|
2279
|
+
export function __wbgbench_dump() {
|
|
2280
|
+
const ret = wasm.__wbgbench_dump();
|
|
2281
|
+
let v1;
|
|
2282
|
+
if (ret[0] !== 0) {
|
|
2283
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2284
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2285
|
+
}
|
|
2286
|
+
return v1;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Used to write previous benchmark data before the benchmark, for later comparison.
|
|
2291
|
+
* @param {Uint8Array} baseline
|
|
2292
|
+
*/
|
|
2293
|
+
export function __wbgbench_import(baseline) {
|
|
2294
|
+
const ptr0 = passArray8ToWasm0(baseline, wasm.__wbindgen_malloc);
|
|
2295
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2296
|
+
wasm.__wbgbench_import(ptr0, len0);
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* Handler for `console.debug` invocations. See above.
|
|
2301
|
+
* @param {Array<any>} args
|
|
2302
|
+
*/
|
|
2303
|
+
export function __wbgtest_console_debug(args) {
|
|
2304
|
+
wasm.__wbgtest_console_debug(args);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Handler for `console.error` invocations. See above.
|
|
2309
|
+
* @param {Array<any>} args
|
|
2310
|
+
*/
|
|
2311
|
+
export function __wbgtest_console_error(args) {
|
|
2312
|
+
wasm.__wbgtest_console_error(args);
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Handler for `console.info` invocations. See above.
|
|
2317
|
+
* @param {Array<any>} args
|
|
2318
|
+
*/
|
|
2319
|
+
export function __wbgtest_console_info(args) {
|
|
2320
|
+
wasm.__wbgtest_console_info(args);
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Handler for `console.log` invocations.
|
|
2325
|
+
*
|
|
2326
|
+
* If a test is currently running it takes the `args` array and stringifies
|
|
2327
|
+
* it and appends it to the current output of the test. Otherwise it passes
|
|
2328
|
+
* the arguments to the original `console.log` function, psased as
|
|
2329
|
+
* `original`.
|
|
2330
|
+
* @param {Array<any>} args
|
|
2331
|
+
*/
|
|
2332
|
+
export function __wbgtest_console_log(args) {
|
|
2333
|
+
wasm.__wbgtest_console_log(args);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Handler for `console.warn` invocations. See above.
|
|
2338
|
+
* @param {Array<any>} args
|
|
2339
|
+
*/
|
|
2340
|
+
export function __wbgtest_console_warn(args) {
|
|
2341
|
+
wasm.__wbgtest_console_warn(args);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* @returns {Uint8Array | undefined}
|
|
2346
|
+
*/
|
|
2347
|
+
export function __wbgtest_cov_dump() {
|
|
2348
|
+
const ret = wasm.__wbgtest_cov_dump();
|
|
2349
|
+
let v1;
|
|
2350
|
+
if (ret[0] !== 0) {
|
|
2351
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2352
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2353
|
+
}
|
|
2354
|
+
return v1;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* Path to use for coverage data.
|
|
2359
|
+
* @param {string | null | undefined} env
|
|
2360
|
+
* @param {number} pid
|
|
2361
|
+
* @param {string} temp_dir
|
|
2362
|
+
* @param {bigint} module_signature
|
|
2363
|
+
* @returns {string}
|
|
2364
|
+
*/
|
|
2365
|
+
export function __wbgtest_coverage_path(env, pid, temp_dir, module_signature) {
|
|
2366
|
+
let deferred3_0;
|
|
2367
|
+
let deferred3_1;
|
|
2368
|
+
try {
|
|
2369
|
+
var ptr0 = isLikeNone(env) ? 0 : passStringToWasm0(env, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2370
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2371
|
+
const ptr1 = passStringToWasm0(temp_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2372
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2373
|
+
const ret = wasm.__wbgtest_coverage_path(ptr0, len0, pid, ptr1, len1, module_signature);
|
|
2374
|
+
deferred3_0 = ret[0];
|
|
2375
|
+
deferred3_1 = ret[1];
|
|
2376
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2377
|
+
} finally {
|
|
2378
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* @returns {bigint | undefined}
|
|
2384
|
+
*/
|
|
2385
|
+
export function __wbgtest_module_signature() {
|
|
2386
|
+
const ret = wasm.__wbgtest_module_signature();
|
|
2387
|
+
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* @param {Backend} backend
|
|
2004
2392
|
* @param {SignatureRequestHandle} signatureRequest
|
|
2005
2393
|
* @returns {Promise<void>}
|
|
2006
2394
|
*/
|
|
2007
|
-
export function applySignatureRequest(
|
|
2008
|
-
|
|
2009
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2010
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2011
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2395
|
+
export function applySignatureRequest(backend, signatureRequest) {
|
|
2396
|
+
_assertClass(backend, Backend);
|
|
2012
2397
|
_assertClass(signatureRequest, SignatureRequestHandle);
|
|
2013
|
-
const ret = wasm.applySignatureRequest(
|
|
2398
|
+
const ret = wasm.applySignatureRequest(backend.__wbg_ptr, signatureRequest.__wbg_ptr);
|
|
2014
2399
|
return ret;
|
|
2015
2400
|
}
|
|
2016
2401
|
|
|
@@ -2132,8 +2517,7 @@ export function contentTypeWalletSendCalls() {
|
|
|
2132
2517
|
* @param {Identifier} accountIdentifier
|
|
2133
2518
|
* @param {string | null} [dbPath]
|
|
2134
2519
|
* @param {Uint8Array | null} [encryptionKey]
|
|
2135
|
-
* @param {
|
|
2136
|
-
* @param {DeviceSyncWorkerMode | null} [deviceSyncWorkerMode]
|
|
2520
|
+
* @param {DeviceSyncMode | null} [deviceSyncMode]
|
|
2137
2521
|
* @param {LogOptions | null} [logOptions]
|
|
2138
2522
|
* @param {boolean | null} [allowOffline]
|
|
2139
2523
|
* @param {string | null} [appVersion]
|
|
@@ -2144,25 +2528,49 @@ export function contentTypeWalletSendCalls() {
|
|
|
2144
2528
|
* @param {ClientMode | null} [clientMode]
|
|
2145
2529
|
* @returns {Promise<Client>}
|
|
2146
2530
|
*/
|
|
2147
|
-
export function createClient(host, inboxId, accountIdentifier, dbPath, encryptionKey,
|
|
2531
|
+
export function createClient(host, inboxId, accountIdentifier, dbPath, encryptionKey, deviceSyncMode, logOptions, allowOffline, appVersion, gatewayHost, nonce, authCallback, authHandle, clientMode) {
|
|
2148
2532
|
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2149
2533
|
const len0 = WASM_VECTOR_LEN;
|
|
2150
2534
|
const ptr1 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2151
2535
|
const len1 = WASM_VECTOR_LEN;
|
|
2152
2536
|
var ptr2 = isLikeNone(dbPath) ? 0 : passStringToWasm0(dbPath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2153
2537
|
var len2 = WASM_VECTOR_LEN;
|
|
2154
|
-
var ptr3 = isLikeNone(
|
|
2538
|
+
var ptr3 = isLikeNone(appVersion) ? 0 : passStringToWasm0(appVersion, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2155
2539
|
var len3 = WASM_VECTOR_LEN;
|
|
2156
|
-
var ptr4 = isLikeNone(
|
|
2540
|
+
var ptr4 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2157
2541
|
var len4 = WASM_VECTOR_LEN;
|
|
2158
|
-
|
|
2159
|
-
var len5 = WASM_VECTOR_LEN;
|
|
2160
|
-
let ptr6 = 0;
|
|
2542
|
+
let ptr5 = 0;
|
|
2161
2543
|
if (!isLikeNone(authHandle)) {
|
|
2162
2544
|
_assertClass(authHandle, AuthHandle);
|
|
2163
|
-
|
|
2545
|
+
ptr5 = authHandle.__destroy_into_raw();
|
|
2164
2546
|
}
|
|
2165
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, accountIdentifier, ptr2, len2, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey),
|
|
2547
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, accountIdentifier, ptr2, len2, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey), isLikeNone(deviceSyncMode) ? 2 : deviceSyncMode, isLikeNone(logOptions) ? 0 : addToExternrefTable0(logOptions), isLikeNone(allowOffline) ? 0xFFFFFF : allowOffline ? 1 : 0, ptr3, len3, ptr4, len4, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(authCallback) ? 0 : addToExternrefTable0(authCallback), ptr5, isLikeNone(clientMode) ? 2 : clientMode);
|
|
2548
|
+
return ret;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
/**
|
|
2552
|
+
* Create a client from a pre-built Backend.
|
|
2553
|
+
*
|
|
2554
|
+
* The Backend encapsulates all API configuration (env, hosts, auth, TLS).
|
|
2555
|
+
* This function only needs identity and database configuration.
|
|
2556
|
+
* @param {Backend} backend
|
|
2557
|
+
* @param {string} inboxId
|
|
2558
|
+
* @param {Identifier} accountIdentifier
|
|
2559
|
+
* @param {string | null} [dbPath]
|
|
2560
|
+
* @param {Uint8Array | null} [encryptionKey]
|
|
2561
|
+
* @param {DeviceSyncMode | null} [deviceSyncMode]
|
|
2562
|
+
* @param {LogOptions | null} [logOptions]
|
|
2563
|
+
* @param {boolean | null} [allowOffline]
|
|
2564
|
+
* @param {bigint | null} [nonce]
|
|
2565
|
+
* @returns {Promise<Client>}
|
|
2566
|
+
*/
|
|
2567
|
+
export function createClientWithBackend(backend, inboxId, accountIdentifier, dbPath, encryptionKey, deviceSyncMode, logOptions, allowOffline, nonce) {
|
|
2568
|
+
_assertClass(backend, Backend);
|
|
2569
|
+
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2570
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2571
|
+
var ptr1 = isLikeNone(dbPath) ? 0 : passStringToWasm0(dbPath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2572
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2573
|
+
const ret = wasm.createClientWithBackend(backend.__wbg_ptr, ptr0, len0, accountIdentifier, ptr1, len1, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey), isLikeNone(deviceSyncMode) ? 2 : deviceSyncMode, isLikeNone(logOptions) ? 0 : addToExternrefTable0(logOptions), isLikeNone(allowOffline) ? 0xFFFFFF : allowOffline ? 1 : 0, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
2166
2574
|
return ret;
|
|
2167
2575
|
}
|
|
2168
2576
|
|
|
@@ -2356,35 +2764,26 @@ export function generateInboxId(accountIdentifier, nonce) {
|
|
|
2356
2764
|
}
|
|
2357
2765
|
|
|
2358
2766
|
/**
|
|
2359
|
-
* @param {
|
|
2360
|
-
* @param {string | null | undefined} gatewayHost
|
|
2361
|
-
* @param {boolean} isSecure
|
|
2767
|
+
* @param {Backend} backend
|
|
2362
2768
|
* @param {Identifier} accountIdentifier
|
|
2363
2769
|
* @returns {Promise<string | undefined>}
|
|
2364
2770
|
*/
|
|
2365
|
-
export function getInboxIdForIdentifier(
|
|
2366
|
-
|
|
2367
|
-
const
|
|
2368
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2369
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2370
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, isSecure, accountIdentifier);
|
|
2771
|
+
export function getInboxIdForIdentifier(backend, accountIdentifier) {
|
|
2772
|
+
_assertClass(backend, Backend);
|
|
2773
|
+
const ret = wasm.getInboxIdForIdentifier(backend.__wbg_ptr, accountIdentifier);
|
|
2371
2774
|
return ret;
|
|
2372
2775
|
}
|
|
2373
2776
|
|
|
2374
2777
|
/**
|
|
2375
|
-
* @param {
|
|
2376
|
-
* @param {string | null | undefined} gatewayHost
|
|
2778
|
+
* @param {Backend} backend
|
|
2377
2779
|
* @param {string[]} inboxIds
|
|
2378
2780
|
* @returns {Promise<InboxState[]>}
|
|
2379
2781
|
*/
|
|
2380
|
-
export function inboxStateFromInboxIds(
|
|
2381
|
-
|
|
2782
|
+
export function inboxStateFromInboxIds(backend, inboxIds) {
|
|
2783
|
+
_assertClass(backend, Backend);
|
|
2784
|
+
const ptr0 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
2382
2785
|
const len0 = WASM_VECTOR_LEN;
|
|
2383
|
-
|
|
2384
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2385
|
-
const ptr2 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
2386
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2387
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2786
|
+
const ret = wasm.inboxStateFromInboxIds(backend.__wbg_ptr, ptr0, len0);
|
|
2388
2787
|
return ret;
|
|
2389
2788
|
}
|
|
2390
2789
|
|
|
@@ -2510,23 +2909,19 @@ export function opfsPoolCapacity() {
|
|
|
2510
2909
|
}
|
|
2511
2910
|
|
|
2512
2911
|
/**
|
|
2513
|
-
* @param {
|
|
2514
|
-
* @param {string | null | undefined} gatewayHost
|
|
2912
|
+
* @param {Backend} backend
|
|
2515
2913
|
* @param {Identifier} recoveryIdentifier
|
|
2516
2914
|
* @param {string} inboxId
|
|
2517
2915
|
* @param {Uint8Array[]} installationIds
|
|
2518
2916
|
* @returns {SignatureRequestHandle}
|
|
2519
2917
|
*/
|
|
2520
|
-
export function revokeInstallationsSignatureRequest(
|
|
2521
|
-
|
|
2918
|
+
export function revokeInstallationsSignatureRequest(backend, recoveryIdentifier, inboxId, installationIds) {
|
|
2919
|
+
_assertClass(backend, Backend);
|
|
2920
|
+
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2522
2921
|
const len0 = WASM_VECTOR_LEN;
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
const
|
|
2526
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2527
|
-
const ptr3 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
2528
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2529
|
-
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recoveryIdentifier, ptr2, len2, ptr3, len3);
|
|
2922
|
+
const ptr1 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
2923
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2924
|
+
const ret = wasm.revokeInstallationsSignatureRequest(backend.__wbg_ptr, recoveryIdentifier, ptr0, len0, ptr1, len1);
|
|
2530
2925
|
if (ret[2]) {
|
|
2531
2926
|
throw takeFromExternrefTable0(ret[1]);
|
|
2532
2927
|
}
|
|
@@ -2561,6 +2956,10 @@ export function verifySignedWithPublicKey(signatureText, signatureBytes, publicK
|
|
|
2561
2956
|
function __wbg_get_imports() {
|
|
2562
2957
|
const import0 = {
|
|
2563
2958
|
__proto__: null,
|
|
2959
|
+
__wbg_Deno_0d853884e73838c9: function(arg0) {
|
|
2960
|
+
const ret = arg0.Deno;
|
|
2961
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2962
|
+
},
|
|
2564
2963
|
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
2565
2964
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2566
2965
|
return ret;
|
|
@@ -2569,6 +2968,13 @@ function __wbg_get_imports() {
|
|
|
2569
2968
|
const ret = Number(arg0);
|
|
2570
2969
|
return ret;
|
|
2571
2970
|
},
|
|
2971
|
+
__wbg_String_2d70b853773c9ecb: function(arg0, arg1) {
|
|
2972
|
+
const ret = String(arg1);
|
|
2973
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2974
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2975
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2977
|
+
},
|
|
2572
2978
|
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
2573
2979
|
const ret = String(arg1);
|
|
2574
2980
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2576,6 +2982,12 @@ function __wbg_get_imports() {
|
|
|
2576
2982
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2577
2983
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2578
2984
|
},
|
|
2985
|
+
__wbg___wbg_test_output_writeln_3002c52094d744d1: function(arg0) {
|
|
2986
|
+
__wbg_test_output_writeln(arg0);
|
|
2987
|
+
},
|
|
2988
|
+
__wbg___wbgtest_og_console_log_81bdd3488fd1939c: function(arg0, arg1) {
|
|
2989
|
+
__wbgtest_og_console_log(getStringFromWasm0(arg0, arg1));
|
|
2990
|
+
},
|
|
2579
2991
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
2580
2992
|
const v = arg1;
|
|
2581
2993
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -2735,6 +3147,10 @@ function __wbg_get_imports() {
|
|
|
2735
3147
|
const ret = arg0.code;
|
|
2736
3148
|
return ret;
|
|
2737
3149
|
},
|
|
3150
|
+
__wbg_constructor_0075742d4adcfb5d: function(arg0) {
|
|
3151
|
+
const ret = arg0.constructor;
|
|
3152
|
+
return ret;
|
|
3153
|
+
},
|
|
2738
3154
|
__wbg_conversation_new: function(arg0) {
|
|
2739
3155
|
const ret = Conversation.__wrap(arg0);
|
|
2740
3156
|
return ret;
|
|
@@ -2793,6 +3209,9 @@ function __wbg_get_imports() {
|
|
|
2793
3209
|
__wbg_error_9a7fe3f932034cde: function(arg0) {
|
|
2794
3210
|
console.error(arg0);
|
|
2795
3211
|
},
|
|
3212
|
+
__wbg_error_ba0ecc4c5be76ff7: function(arg0, arg1) {
|
|
3213
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
3214
|
+
},
|
|
2796
3215
|
__wbg_error_e98c298703cffa97: function(arg0, arg1) {
|
|
2797
3216
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
2798
3217
|
},
|
|
@@ -2819,6 +3238,23 @@ function __wbg_get_imports() {
|
|
|
2819
3238
|
__wbg_flush_22b785060592ca5f: function() { return handleError(function (arg0) {
|
|
2820
3239
|
arg0.flush();
|
|
2821
3240
|
}, arguments); },
|
|
3241
|
+
__wbg_forEach_a2bfcdf179e573de: function(arg0, arg1, arg2) {
|
|
3242
|
+
try {
|
|
3243
|
+
var state0 = {a: arg1, b: arg2};
|
|
3244
|
+
var cb0 = (arg0, arg1, arg2) => {
|
|
3245
|
+
const a = state0.a;
|
|
3246
|
+
state0.a = 0;
|
|
3247
|
+
try {
|
|
3248
|
+
return wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab(a, state0.b, arg0, arg1, arg2);
|
|
3249
|
+
} finally {
|
|
3250
|
+
state0.a = a;
|
|
3251
|
+
}
|
|
3252
|
+
};
|
|
3253
|
+
arg0.forEach(cb0);
|
|
3254
|
+
} finally {
|
|
3255
|
+
state0.a = state0.b = 0;
|
|
3256
|
+
}
|
|
3257
|
+
},
|
|
2822
3258
|
__wbg_from_bddd64e7d5ff6941: function(arg0) {
|
|
2823
3259
|
const ret = Array.from(arg0);
|
|
2824
3260
|
return ret;
|
|
@@ -2839,6 +3275,10 @@ function __wbg_get_imports() {
|
|
|
2839
3275
|
const ret = arg0.getDirectory();
|
|
2840
3276
|
return ret;
|
|
2841
3277
|
},
|
|
3278
|
+
__wbg_getElementById_6fe6fa2cb1c02939: function(arg0, arg1, arg2) {
|
|
3279
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
3280
|
+
return ret;
|
|
3281
|
+
},
|
|
2842
3282
|
__wbg_getFileHandle_ff4ab917b45affb3: function(arg0, arg1, arg2, arg3) {
|
|
2843
3283
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
2844
3284
|
return ret;
|
|
@@ -2862,6 +3302,9 @@ function __wbg_get_imports() {
|
|
|
2862
3302
|
__wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
|
|
2863
3303
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2864
3304
|
}, arguments); },
|
|
3305
|
+
__wbg_getRandomValues_2a91986308c74a93: function() { return handleError(function (arg0, arg1) {
|
|
3306
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
3307
|
+
}, arguments); },
|
|
2865
3308
|
__wbg_getRandomValues_b8f5dbd5f3995a9e: function() { return handleError(function (arg0, arg1) {
|
|
2866
3309
|
arg0.getRandomValues(arg1);
|
|
2867
3310
|
}, arguments); },
|
|
@@ -3014,6 +3457,9 @@ function __wbg_get_imports() {
|
|
|
3014
3457
|
const ret = arg0.length;
|
|
3015
3458
|
return ret;
|
|
3016
3459
|
},
|
|
3460
|
+
__wbg_log_dac59df46f28c346: function(arg0, arg1) {
|
|
3461
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
3462
|
+
},
|
|
3017
3463
|
__wbg_mark_05056c522bddc362: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3018
3464
|
arg0.mark(getStringFromWasm0(arg1, arg2));
|
|
3019
3465
|
}, arguments); },
|
|
@@ -3033,6 +3479,10 @@ function __wbg_get_imports() {
|
|
|
3033
3479
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3034
3480
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3035
3481
|
},
|
|
3482
|
+
__wbg_message_9ddc4b9a62a7c379: function(arg0) {
|
|
3483
|
+
const ret = arg0.message;
|
|
3484
|
+
return ret;
|
|
3485
|
+
},
|
|
3036
3486
|
__wbg_msCrypto_a61aeb35a24c1329: function(arg0) {
|
|
3037
3487
|
const ret = arg0.msCrypto;
|
|
3038
3488
|
return ret;
|
|
@@ -3044,6 +3494,17 @@ function __wbg_get_imports() {
|
|
|
3044
3494
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3045
3495
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3046
3496
|
},
|
|
3497
|
+
__wbg_name_37226f1b7db3540e: function(arg0, arg1) {
|
|
3498
|
+
const ret = arg1.name;
|
|
3499
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3500
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3501
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3502
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3503
|
+
},
|
|
3504
|
+
__wbg_name_446e25ef2cfdab5a: function(arg0) {
|
|
3505
|
+
const ret = arg0.name;
|
|
3506
|
+
return ret;
|
|
3507
|
+
},
|
|
3047
3508
|
__wbg_navigator_4478931f32ebca57: function(arg0) {
|
|
3048
3509
|
const ret = arg0.navigator;
|
|
3049
3510
|
return ret;
|
|
@@ -3087,7 +3548,7 @@ function __wbg_get_imports() {
|
|
|
3087
3548
|
const a = state0.a;
|
|
3088
3549
|
state0.a = 0;
|
|
3089
3550
|
try {
|
|
3090
|
-
return
|
|
3551
|
+
return wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf(a, state0.b, arg0, arg1);
|
|
3091
3552
|
} finally {
|
|
3092
3553
|
state0.a = a;
|
|
3093
3554
|
}
|
|
@@ -3110,6 +3571,10 @@ function __wbg_get_imports() {
|
|
|
3110
3571
|
const ret = new Uint8Array(arg0);
|
|
3111
3572
|
return ret;
|
|
3112
3573
|
},
|
|
3574
|
+
__wbg_new_f0796def86e99471: function() {
|
|
3575
|
+
const ret = new Error();
|
|
3576
|
+
return ret;
|
|
3577
|
+
},
|
|
3113
3578
|
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
3114
3579
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
3115
3580
|
return ret;
|
|
@@ -3158,6 +3623,10 @@ function __wbg_get_imports() {
|
|
|
3158
3623
|
const ret = arg0.now();
|
|
3159
3624
|
return ret;
|
|
3160
3625
|
},
|
|
3626
|
+
__wbg_now_706dbbd146774f0e: function(arg0) {
|
|
3627
|
+
const ret = arg0.now();
|
|
3628
|
+
return ret;
|
|
3629
|
+
},
|
|
3161
3630
|
__wbg_now_a3af9a2f4bbaa4d1: function() {
|
|
3162
3631
|
const ret = Date.now();
|
|
3163
3632
|
return ret;
|
|
@@ -3193,6 +3662,10 @@ function __wbg_get_imports() {
|
|
|
3193
3662
|
const ret = globalThis.performance;
|
|
3194
3663
|
return ret;
|
|
3195
3664
|
},
|
|
3665
|
+
__wbg_performance_2767f30f4a69c748: function(arg0) {
|
|
3666
|
+
const ret = arg0.performance;
|
|
3667
|
+
return ret;
|
|
3668
|
+
},
|
|
3196
3669
|
__wbg_performance_7a3ffd0b17f663ad: function(arg0) {
|
|
3197
3670
|
const ret = arg0.performance;
|
|
3198
3671
|
return ret;
|
|
@@ -3251,6 +3724,10 @@ function __wbg_get_imports() {
|
|
|
3251
3724
|
__wbg_respond_bf6ab10399ca8722: function() { return handleError(function (arg0, arg1) {
|
|
3252
3725
|
arg0.respond(arg1 >>> 0);
|
|
3253
3726
|
}, arguments); },
|
|
3727
|
+
__wbg_self_cfdfc96e68c3e345: function(arg0) {
|
|
3728
|
+
const ret = arg0.self;
|
|
3729
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3730
|
+
},
|
|
3254
3731
|
__wbg_setInterval_ed3b5e3c3ebb8a6d: function() { return handleError(function (arg0, arg1) {
|
|
3255
3732
|
const ret = setInterval(arg0, arg1);
|
|
3256
3733
|
return ret;
|
|
@@ -3259,9 +3736,6 @@ function __wbg_get_imports() {
|
|
|
3259
3736
|
const ret = setTimeout(arg0, arg1);
|
|
3260
3737
|
return ret;
|
|
3261
3738
|
},
|
|
3262
|
-
__wbg_setTimeout_8f06012fba12034e: function(arg0, arg1) {
|
|
3263
|
-
globalThis.setTimeout(arg0, arg1);
|
|
3264
|
-
},
|
|
3265
3739
|
__wbg_setTimeout_929c97a7c0f23d36: function(arg0, arg1) {
|
|
3266
3740
|
const ret = setTimeout(arg0, arg1);
|
|
3267
3741
|
return ret;
|
|
@@ -3338,6 +3812,9 @@ function __wbg_get_imports() {
|
|
|
3338
3812
|
__wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
|
|
3339
3813
|
arg0.signal = arg1;
|
|
3340
3814
|
},
|
|
3815
|
+
__wbg_set_text_content_eb601b93a64fea40: function(arg0, arg1, arg2) {
|
|
3816
|
+
arg0.textContent = getStringFromWasm0(arg1, arg2);
|
|
3817
|
+
},
|
|
3341
3818
|
__wbg_signal_d1285ecab4ebc5ad: function(arg0) {
|
|
3342
3819
|
const ret = arg0.signal;
|
|
3343
3820
|
return ret;
|
|
@@ -3357,6 +3834,32 @@ function __wbg_get_imports() {
|
|
|
3357
3834
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3358
3835
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3359
3836
|
},
|
|
3837
|
+
__wbg_stack_50b68ee6ee330278: function(arg0) {
|
|
3838
|
+
const ret = arg0.stack;
|
|
3839
|
+
return ret;
|
|
3840
|
+
},
|
|
3841
|
+
__wbg_stack_8b207ade94c30c09: function(arg0, arg1) {
|
|
3842
|
+
const ret = arg1.stack;
|
|
3843
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3844
|
+
var len1 = WASM_VECTOR_LEN;
|
|
3845
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3846
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3847
|
+
},
|
|
3848
|
+
__wbg_stack_bc8a0cd36a8aaa5e: function(arg0) {
|
|
3849
|
+
const ret = arg0.stack;
|
|
3850
|
+
return ret;
|
|
3851
|
+
},
|
|
3852
|
+
__wbg_stack_e11a2e83d033ed2f: function(arg0, arg1) {
|
|
3853
|
+
const ret = arg1.stack;
|
|
3854
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3855
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3856
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3857
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3858
|
+
},
|
|
3859
|
+
__wbg_static_accessor_DOCUMENT_a8bee90773ed9f03: function() {
|
|
3860
|
+
const ret = document;
|
|
3861
|
+
return ret;
|
|
3862
|
+
},
|
|
3360
3863
|
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
3361
3864
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3362
3865
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -3393,6 +3896,13 @@ function __wbg_get_imports() {
|
|
|
3393
3896
|
const ret = arg0.text();
|
|
3394
3897
|
return ret;
|
|
3395
3898
|
}, arguments); },
|
|
3899
|
+
__wbg_text_content_50199b46165a6fba: function(arg0, arg1) {
|
|
3900
|
+
const ret = arg1.textContent;
|
|
3901
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3902
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3903
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3904
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3905
|
+
},
|
|
3396
3906
|
__wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
|
|
3397
3907
|
const ret = arg0.then(arg1, arg2);
|
|
3398
3908
|
return ret;
|
|
@@ -3405,6 +3915,13 @@ function __wbg_get_imports() {
|
|
|
3405
3915
|
const ret = arg0.toString(arg1);
|
|
3406
3916
|
return ret;
|
|
3407
3917
|
}, arguments); },
|
|
3918
|
+
__wbg_toString_1f277cfdc1753469: function() { return handleError(function (arg0, arg1) {
|
|
3919
|
+
const ret = arg1.toString();
|
|
3920
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3921
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3922
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3923
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3924
|
+
}, arguments); },
|
|
3408
3925
|
__wbg_toString_964ff7fe6eca8362: function(arg0) {
|
|
3409
3926
|
const ret = arg0.toString();
|
|
3410
3927
|
return ret;
|
|
@@ -3449,23 +3966,23 @@ function __wbg_get_imports() {
|
|
|
3449
3966
|
return ret;
|
|
3450
3967
|
}, arguments); },
|
|
3451
3968
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3452
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3453
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3969
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7144, function: Function { arguments: [], shim_idx: 7145, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3970
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he86c9d9bb368f43f, wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa);
|
|
3454
3971
|
return ret;
|
|
3455
3972
|
},
|
|
3456
3973
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3457
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3458
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3974
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7337, function: Function { arguments: [], shim_idx: 7338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3975
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa, wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b);
|
|
3459
3976
|
return ret;
|
|
3460
3977
|
},
|
|
3461
3978
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3462
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3463
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3979
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7507, function: Function { arguments: [], shim_idx: 7508, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3980
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h006fa4718e4400fc, wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d);
|
|
3464
3981
|
return ret;
|
|
3465
3982
|
},
|
|
3466
3983
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3467
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3468
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3984
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7899, function: Function { arguments: [Externref], shim_idx: 7900, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3985
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd56fbfc240f3eed8, wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b);
|
|
3469
3986
|
return ret;
|
|
3470
3987
|
},
|
|
3471
3988
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -3544,24 +4061,28 @@ function __wbg_get_imports() {
|
|
|
3544
4061
|
};
|
|
3545
4062
|
}
|
|
3546
4063
|
|
|
3547
|
-
function
|
|
3548
|
-
wasm.
|
|
4064
|
+
function wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa(arg0, arg1) {
|
|
4065
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa(arg0, arg1);
|
|
3549
4066
|
}
|
|
3550
4067
|
|
|
3551
|
-
function
|
|
3552
|
-
wasm.
|
|
4068
|
+
function wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b(arg0, arg1) {
|
|
4069
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b(arg0, arg1);
|
|
3553
4070
|
}
|
|
3554
4071
|
|
|
3555
|
-
function
|
|
3556
|
-
wasm.
|
|
4072
|
+
function wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d(arg0, arg1) {
|
|
4073
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d(arg0, arg1);
|
|
3557
4074
|
}
|
|
3558
4075
|
|
|
3559
|
-
function
|
|
3560
|
-
wasm.
|
|
4076
|
+
function wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b(arg0, arg1, arg2) {
|
|
4077
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b(arg0, arg1, arg2);
|
|
3561
4078
|
}
|
|
3562
4079
|
|
|
3563
|
-
function
|
|
3564
|
-
wasm.
|
|
4080
|
+
function wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf(arg0, arg1, arg2, arg3) {
|
|
4081
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf(arg0, arg1, arg2, arg3);
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
function wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab(arg0, arg1, arg2, arg3, arg4) {
|
|
4085
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab(arg0, arg1, arg2, arg3, arg4);
|
|
3565
4086
|
}
|
|
3566
4087
|
|
|
3567
4088
|
|
|
@@ -3584,6 +4105,12 @@ const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
|
3584
4105
|
const AuthHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3585
4106
|
? { register: () => {}, unregister: () => {} }
|
|
3586
4107
|
: new FinalizationRegistry(ptr => wasm.__wbg_authhandle_free(ptr >>> 0, 1));
|
|
4108
|
+
const BackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4109
|
+
? { register: () => {}, unregister: () => {} }
|
|
4110
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_backend_free(ptr >>> 0, 1));
|
|
4111
|
+
const BackendBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4112
|
+
? { register: () => {}, unregister: () => {} }
|
|
4113
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_backendbuilder_free(ptr >>> 0, 1));
|
|
3587
4114
|
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3588
4115
|
? { register: () => {}, unregister: () => {} }
|
|
3589
4116
|
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
@@ -3614,6 +4141,9 @@ const SignatureRequestHandleFinalization = (typeof FinalizationRegistry === 'und
|
|
|
3614
4141
|
const StreamCloserFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3615
4142
|
? { register: () => {}, unregister: () => {} }
|
|
3616
4143
|
: new FinalizationRegistry(ptr => wasm.__wbg_streamcloser_free(ptr >>> 0, 1));
|
|
4144
|
+
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4145
|
+
? { register: () => {}, unregister: () => {} }
|
|
4146
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0, 1));
|
|
3617
4147
|
|
|
3618
4148
|
function addToExternrefTable0(obj) {
|
|
3619
4149
|
const idx = wasm.__externref_table_alloc();
|