@bitwarden/sdk-internal 0.2.0-main.232 → 0.2.0-main.233
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/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +61 -60
- package/bitwarden_wasm_internal_bg.js +145 -154
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +164 -168
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +61 -60
- package/node/bitwarden_wasm_internal.js +145 -154
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +164 -168
- package/package.json +1 -1
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
|
|
5
|
-
*/
|
|
6
|
-
export function ipcRegisterDiscoverHandler(
|
|
7
|
-
ipc_client: IpcClient,
|
|
8
|
-
response: DiscoverResponse,
|
|
9
|
-
): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Sends a DiscoverRequest to the specified destination and returns the response.
|
|
12
|
-
*/
|
|
13
|
-
export function ipcRequestDiscover(
|
|
14
|
-
ipc_client: IpcClient,
|
|
15
|
-
destination: Endpoint,
|
|
16
|
-
abort_signal?: AbortSignal | null,
|
|
17
|
-
): Promise<DiscoverResponse>;
|
|
18
3
|
export function set_log_level(level: LogLevel): void;
|
|
19
4
|
export function init_sdk(log_level?: LogLevel | null): void;
|
|
20
5
|
/**
|
|
@@ -44,6 +29,21 @@ export function generate_ssh_key(key_algorithm: KeyAlgorithm): SshKeyView;
|
|
|
44
29
|
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
45
30
|
*/
|
|
46
31
|
export function import_ssh_key(imported_key: string, password?: string | null): SshKeyView;
|
|
32
|
+
/**
|
|
33
|
+
* Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
|
|
34
|
+
*/
|
|
35
|
+
export function ipcRegisterDiscoverHandler(
|
|
36
|
+
ipc_client: IpcClient,
|
|
37
|
+
response: DiscoverResponse,
|
|
38
|
+
): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Sends a DiscoverRequest to the specified destination and returns the response.
|
|
41
|
+
*/
|
|
42
|
+
export function ipcRequestDiscover(
|
|
43
|
+
ipc_client: IpcClient,
|
|
44
|
+
destination: Endpoint,
|
|
45
|
+
abort_signal?: AbortSignal | null,
|
|
46
|
+
): Promise<DiscoverResponse>;
|
|
47
47
|
export enum CardLinkedIdType {
|
|
48
48
|
CardholderName = 300,
|
|
49
49
|
ExpMonth = 301,
|
|
@@ -112,6 +112,52 @@ export enum UriMatchType {
|
|
|
112
112
|
RegularExpression = 4,
|
|
113
113
|
Never = 5,
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
import { Tagged } from "type-fest";
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A string that **MUST** be a valid UUID.
|
|
120
|
+
*
|
|
121
|
+
* Never create or cast to this type directly, use the `uuid<T>()` function instead.
|
|
122
|
+
*/
|
|
123
|
+
// TODO: Uncomment this when the `uuid` crate is used.
|
|
124
|
+
// export type Uuid = unknown;
|
|
125
|
+
|
|
126
|
+
export type Uuid = string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* RFC3339 compliant date-time string.
|
|
130
|
+
* @typeParam T - Not used in JavaScript.
|
|
131
|
+
*/
|
|
132
|
+
export type DateTime<T = unknown> = string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* UTC date-time string. Not used in JavaScript.
|
|
136
|
+
*/
|
|
137
|
+
export type Utc = unknown;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* An integer that is known not to equal zero.
|
|
141
|
+
*/
|
|
142
|
+
export type NonZeroU32 = number;
|
|
143
|
+
|
|
144
|
+
export interface Repository<T> {
|
|
145
|
+
get(id: string): Promise<T | null>;
|
|
146
|
+
list(): Promise<T[]>;
|
|
147
|
+
set(id: string, value: T): Promise<void>;
|
|
148
|
+
remove(id: string): Promise<void>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface TokenProvider {
|
|
152
|
+
get_access_token(): Promise<string | undefined>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface TestError extends Error {
|
|
156
|
+
name: "TestError";
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function isTestError(error: any): error is TestError;
|
|
160
|
+
|
|
115
161
|
/**
|
|
116
162
|
* State used for initializing the user cryptographic state.
|
|
117
163
|
*/
|
|
@@ -1270,51 +1316,6 @@ export interface Attachment {
|
|
|
1270
1316
|
key: EncString | undefined;
|
|
1271
1317
|
}
|
|
1272
1318
|
|
|
1273
|
-
import { Tagged } from "type-fest";
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* A string that **MUST** be a valid UUID.
|
|
1277
|
-
*
|
|
1278
|
-
* Never create or cast to this type directly, use the `uuid<T>()` function instead.
|
|
1279
|
-
*/
|
|
1280
|
-
// TODO: Uncomment this when the `uuid` crate is used.
|
|
1281
|
-
// export type Uuid = unknown;
|
|
1282
|
-
|
|
1283
|
-
export type Uuid = string;
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* RFC3339 compliant date-time string.
|
|
1287
|
-
* @typeParam T - Not used in JavaScript.
|
|
1288
|
-
*/
|
|
1289
|
-
export type DateTime<T = unknown> = string;
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* UTC date-time string. Not used in JavaScript.
|
|
1293
|
-
*/
|
|
1294
|
-
export type Utc = unknown;
|
|
1295
|
-
|
|
1296
|
-
/**
|
|
1297
|
-
* An integer that is known not to equal zero.
|
|
1298
|
-
*/
|
|
1299
|
-
export type NonZeroU32 = number;
|
|
1300
|
-
|
|
1301
|
-
export interface Repository<T> {
|
|
1302
|
-
get(id: string): Promise<T | null>;
|
|
1303
|
-
list(): Promise<T[]>;
|
|
1304
|
-
set(id: string, value: T): Promise<void>;
|
|
1305
|
-
remove(id: string): Promise<void>;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
export interface TokenProvider {
|
|
1309
|
-
get_access_token(): Promise<string | undefined>;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
export interface TestError extends Error {
|
|
1313
|
-
name: "TestError";
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
export function isTestError(error: any): error is TestError;
|
|
1317
|
-
|
|
1318
1319
|
export class AttachmentsClient {
|
|
1319
1320
|
private constructor();
|
|
1320
1321
|
free(): void;
|
|
@@ -237,6 +237,93 @@ function debugString(val) {
|
|
|
237
237
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
238
238
|
return className;
|
|
239
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* @param {LogLevel} level
|
|
242
|
+
*/
|
|
243
|
+
module.exports.set_log_level = function (level) {
|
|
244
|
+
wasm.set_log_level(level);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {LogLevel | null} [log_level]
|
|
249
|
+
*/
|
|
250
|
+
module.exports.init_sdk = function (log_level) {
|
|
251
|
+
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
255
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
256
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
257
|
+
WASM_VECTOR_LEN = arg.length;
|
|
258
|
+
return ptr;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Generate a new SSH key pair
|
|
262
|
+
*
|
|
263
|
+
* # Arguments
|
|
264
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
|
265
|
+
*
|
|
266
|
+
* # Returns
|
|
267
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
|
268
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
269
|
+
* @param {KeyAlgorithm} key_algorithm
|
|
270
|
+
* @returns {SshKeyView}
|
|
271
|
+
*/
|
|
272
|
+
module.exports.generate_ssh_key = function (key_algorithm) {
|
|
273
|
+
try {
|
|
274
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
275
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
276
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
277
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
278
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
279
|
+
if (r2) {
|
|
280
|
+
throw takeObject(r1);
|
|
281
|
+
}
|
|
282
|
+
return takeObject(r0);
|
|
283
|
+
} finally {
|
|
284
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
290
|
+
* to an OpenSSH private key with public key and fingerprint
|
|
291
|
+
*
|
|
292
|
+
* # Arguments
|
|
293
|
+
* - `imported_key` - The private key to convert
|
|
294
|
+
* - `password` - The password to use for decrypting the key
|
|
295
|
+
*
|
|
296
|
+
* # Returns
|
|
297
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
298
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
299
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
300
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
|
301
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
302
|
+
* @param {string} imported_key
|
|
303
|
+
* @param {string | null} [password]
|
|
304
|
+
* @returns {SshKeyView}
|
|
305
|
+
*/
|
|
306
|
+
module.exports.import_ssh_key = function (imported_key, password) {
|
|
307
|
+
try {
|
|
308
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
+
const len0 = WASM_VECTOR_LEN;
|
|
311
|
+
var ptr1 = isLikeNone(password)
|
|
312
|
+
? 0
|
|
313
|
+
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
var len1 = WASM_VECTOR_LEN;
|
|
315
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
316
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
317
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
318
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
319
|
+
if (r2) {
|
|
320
|
+
throw takeObject(r1);
|
|
321
|
+
}
|
|
322
|
+
return takeObject(r0);
|
|
323
|
+
} finally {
|
|
324
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
240
327
|
|
|
241
328
|
let stack_pointer = 128;
|
|
242
329
|
|
|
@@ -245,6 +332,19 @@ function addBorrowedObject(obj) {
|
|
|
245
332
|
heap[--stack_pointer] = obj;
|
|
246
333
|
return stack_pointer;
|
|
247
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* @param {any} error
|
|
337
|
+
* @returns {boolean}
|
|
338
|
+
*/
|
|
339
|
+
module.exports.isTestError = function (error) {
|
|
340
|
+
try {
|
|
341
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
342
|
+
return ret !== 0;
|
|
343
|
+
} finally {
|
|
344
|
+
heap[stack_pointer++] = undefined;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
|
|
248
348
|
/**
|
|
249
349
|
* @param {any} error
|
|
250
350
|
* @returns {boolean}
|
|
@@ -394,13 +494,6 @@ module.exports.isPassphraseError = function (error) {
|
|
|
394
494
|
}
|
|
395
495
|
};
|
|
396
496
|
|
|
397
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
398
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
399
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
400
|
-
WASM_VECTOR_LEN = arg.length;
|
|
401
|
-
return ptr;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
497
|
function _assertClass(instance, klass) {
|
|
405
498
|
if (!(instance instanceof klass)) {
|
|
406
499
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -682,125 +775,23 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
682
775
|
}
|
|
683
776
|
};
|
|
684
777
|
|
|
685
|
-
/**
|
|
686
|
-
* @param {LogLevel} level
|
|
687
|
-
*/
|
|
688
|
-
module.exports.set_log_level = function (level) {
|
|
689
|
-
wasm.set_log_level(level);
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* @param {LogLevel | null} [log_level]
|
|
694
|
-
*/
|
|
695
|
-
module.exports.init_sdk = function (log_level) {
|
|
696
|
-
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
697
|
-
};
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Generate a new SSH key pair
|
|
701
|
-
*
|
|
702
|
-
* # Arguments
|
|
703
|
-
* - `key_algorithm` - The algorithm to use for the key pair
|
|
704
|
-
*
|
|
705
|
-
* # Returns
|
|
706
|
-
* - `Ok(SshKey)` if the key was successfully generated
|
|
707
|
-
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
708
|
-
* @param {KeyAlgorithm} key_algorithm
|
|
709
|
-
* @returns {SshKeyView}
|
|
710
|
-
*/
|
|
711
|
-
module.exports.generate_ssh_key = function (key_algorithm) {
|
|
712
|
-
try {
|
|
713
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
714
|
-
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
715
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
716
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
717
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
718
|
-
if (r2) {
|
|
719
|
-
throw takeObject(r1);
|
|
720
|
-
}
|
|
721
|
-
return takeObject(r0);
|
|
722
|
-
} finally {
|
|
723
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
729
|
-
* to an OpenSSH private key with public key and fingerprint
|
|
730
|
-
*
|
|
731
|
-
* # Arguments
|
|
732
|
-
* - `imported_key` - The private key to convert
|
|
733
|
-
* - `password` - The password to use for decrypting the key
|
|
734
|
-
*
|
|
735
|
-
* # Returns
|
|
736
|
-
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
737
|
-
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
738
|
-
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
739
|
-
* - `Err(ParsingError)` if the key could not be parsed
|
|
740
|
-
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
741
|
-
* @param {string} imported_key
|
|
742
|
-
* @param {string | null} [password]
|
|
743
|
-
* @returns {SshKeyView}
|
|
744
|
-
*/
|
|
745
|
-
module.exports.import_ssh_key = function (imported_key, password) {
|
|
746
|
-
try {
|
|
747
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
748
|
-
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
749
|
-
const len0 = WASM_VECTOR_LEN;
|
|
750
|
-
var ptr1 = isLikeNone(password)
|
|
751
|
-
? 0
|
|
752
|
-
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
-
var len1 = WASM_VECTOR_LEN;
|
|
754
|
-
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
755
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
756
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
757
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
758
|
-
if (r2) {
|
|
759
|
-
throw takeObject(r1);
|
|
760
|
-
}
|
|
761
|
-
return takeObject(r0);
|
|
762
|
-
} finally {
|
|
763
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* @param {any} error
|
|
769
|
-
* @returns {boolean}
|
|
770
|
-
*/
|
|
771
|
-
module.exports.isTestError = function (error) {
|
|
772
|
-
try {
|
|
773
|
-
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
774
|
-
return ret !== 0;
|
|
775
|
-
} finally {
|
|
776
|
-
heap[stack_pointer++] = undefined;
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
|
-
|
|
780
778
|
function __wbg_adapter_54(arg0, arg1) {
|
|
781
|
-
wasm.
|
|
779
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
782
780
|
arg0,
|
|
783
781
|
arg1,
|
|
784
782
|
);
|
|
785
783
|
}
|
|
786
784
|
|
|
787
|
-
function
|
|
788
|
-
wasm.
|
|
789
|
-
arg0,
|
|
790
|
-
arg1,
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
795
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb01d8be1001e4f40(
|
|
785
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
786
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
796
787
|
arg0,
|
|
797
788
|
arg1,
|
|
798
789
|
addHeapObject(arg2),
|
|
799
790
|
);
|
|
800
791
|
}
|
|
801
792
|
|
|
802
|
-
function
|
|
803
|
-
wasm.
|
|
793
|
+
function __wbg_adapter_300(arg0, arg1, arg2, arg3) {
|
|
794
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
804
795
|
arg0,
|
|
805
796
|
arg1,
|
|
806
797
|
addHeapObject(arg2),
|
|
@@ -1131,7 +1122,7 @@ class BitwardenClient {
|
|
|
1131
1122
|
* @returns {VaultClient}
|
|
1132
1123
|
*/
|
|
1133
1124
|
vault() {
|
|
1134
|
-
const ret = wasm.
|
|
1125
|
+
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1135
1126
|
return VaultClient.__wrap(ret);
|
|
1136
1127
|
}
|
|
1137
1128
|
/**
|
|
@@ -1147,14 +1138,14 @@ class BitwardenClient {
|
|
|
1147
1138
|
* @returns {GeneratorClient}
|
|
1148
1139
|
*/
|
|
1149
1140
|
generator() {
|
|
1150
|
-
const ret = wasm.
|
|
1141
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1151
1142
|
return GeneratorClient.__wrap(ret);
|
|
1152
1143
|
}
|
|
1153
1144
|
/**
|
|
1154
1145
|
* @returns {ExporterClient}
|
|
1155
1146
|
*/
|
|
1156
1147
|
exporters() {
|
|
1157
|
-
const ret = wasm.
|
|
1148
|
+
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1158
1149
|
return ExporterClient.__wrap(ret);
|
|
1159
1150
|
}
|
|
1160
1151
|
}
|
|
@@ -2430,7 +2421,7 @@ class PlatformClient {
|
|
|
2430
2421
|
* @returns {StateClient}
|
|
2431
2422
|
*/
|
|
2432
2423
|
state() {
|
|
2433
|
-
const ret = wasm.
|
|
2424
|
+
const ret = wasm.platformclient_state(this.__wbg_ptr);
|
|
2434
2425
|
return StateClient.__wrap(ret);
|
|
2435
2426
|
}
|
|
2436
2427
|
}
|
|
@@ -3520,7 +3511,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
3520
3511
|
return ret;
|
|
3521
3512
|
};
|
|
3522
3513
|
|
|
3523
|
-
module.exports.
|
|
3514
|
+
module.exports.__wbg_get_1e936e9c132ed56a = function () {
|
|
3524
3515
|
return handleError(function (arg0, arg1, arg2) {
|
|
3525
3516
|
let deferred0_0;
|
|
3526
3517
|
let deferred0_1;
|
|
@@ -3535,19 +3526,7 @@ module.exports.__wbg_get_1620f903ed9a676f = function () {
|
|
|
3535
3526
|
}, arguments);
|
|
3536
3527
|
};
|
|
3537
3528
|
|
|
3538
|
-
module.exports.
|
|
3539
|
-
return handleError(function (arg0, arg1) {
|
|
3540
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3541
|
-
return addHeapObject(ret);
|
|
3542
|
-
}, arguments);
|
|
3543
|
-
};
|
|
3544
|
-
|
|
3545
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
3546
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3547
|
-
return addHeapObject(ret);
|
|
3548
|
-
};
|
|
3549
|
-
|
|
3550
|
-
module.exports.__wbg_get_e94e796a5527c131 = function () {
|
|
3529
|
+
module.exports.__wbg_get_63d4ac1519cd683d = function () {
|
|
3551
3530
|
return handleError(function (arg0, arg1, arg2) {
|
|
3552
3531
|
let deferred0_0;
|
|
3553
3532
|
let deferred0_1;
|
|
@@ -3562,7 +3541,19 @@ module.exports.__wbg_get_e94e796a5527c131 = function () {
|
|
|
3562
3541
|
}, arguments);
|
|
3563
3542
|
};
|
|
3564
3543
|
|
|
3565
|
-
module.exports.
|
|
3544
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
3545
|
+
return handleError(function (arg0, arg1) {
|
|
3546
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3547
|
+
return addHeapObject(ret);
|
|
3548
|
+
}, arguments);
|
|
3549
|
+
};
|
|
3550
|
+
|
|
3551
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
3552
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3553
|
+
return addHeapObject(ret);
|
|
3554
|
+
};
|
|
3555
|
+
|
|
3556
|
+
module.exports.__wbg_getaccesstoken_5c1081642adb54b3 = function (arg0) {
|
|
3566
3557
|
const ret = getObject(arg0).get_access_token();
|
|
3567
3558
|
return addHeapObject(ret);
|
|
3568
3559
|
};
|
|
@@ -3667,14 +3658,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
3667
3658
|
return ret;
|
|
3668
3659
|
};
|
|
3669
3660
|
|
|
3670
|
-
module.exports.
|
|
3661
|
+
module.exports.__wbg_list_d51438674d2a6409 = function () {
|
|
3671
3662
|
return handleError(function (arg0) {
|
|
3672
3663
|
const ret = getObject(arg0).list();
|
|
3673
3664
|
return addHeapObject(ret);
|
|
3674
3665
|
}, arguments);
|
|
3675
3666
|
};
|
|
3676
3667
|
|
|
3677
|
-
module.exports.
|
|
3668
|
+
module.exports.__wbg_list_ee640fea1b320673 = function () {
|
|
3678
3669
|
return handleError(function (arg0) {
|
|
3679
3670
|
const ret = getObject(arg0).list();
|
|
3680
3671
|
return addHeapObject(ret);
|
|
@@ -3709,7 +3700,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
3709
3700
|
const a = state0.a;
|
|
3710
3701
|
state0.a = 0;
|
|
3711
3702
|
try {
|
|
3712
|
-
return
|
|
3703
|
+
return __wbg_adapter_300(a, state0.b, arg0, arg1);
|
|
3713
3704
|
} finally {
|
|
3714
3705
|
state0.a = a;
|
|
3715
3706
|
}
|
|
@@ -3851,7 +3842,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
3851
3842
|
}, arguments);
|
|
3852
3843
|
};
|
|
3853
3844
|
|
|
3854
|
-
module.exports.
|
|
3845
|
+
module.exports.__wbg_remove_1b7f523b274e28d8 = function () {
|
|
3855
3846
|
return handleError(function (arg0, arg1, arg2) {
|
|
3856
3847
|
let deferred0_0;
|
|
3857
3848
|
let deferred0_1;
|
|
@@ -3866,7 +3857,7 @@ module.exports.__wbg_remove_050f4c22aba9e8c7 = function () {
|
|
|
3866
3857
|
}, arguments);
|
|
3867
3858
|
};
|
|
3868
3859
|
|
|
3869
|
-
module.exports.
|
|
3860
|
+
module.exports.__wbg_remove_b9507a7e3319b5a5 = function () {
|
|
3870
3861
|
return handleError(function (arg0, arg1, arg2) {
|
|
3871
3862
|
let deferred0_0;
|
|
3872
3863
|
let deferred0_1;
|
|
@@ -3909,15 +3900,7 @@ module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
|
3909
3900
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
3910
3901
|
};
|
|
3911
3902
|
|
|
3912
|
-
module.exports.
|
|
3913
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3914
|
-
};
|
|
3915
|
-
|
|
3916
|
-
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
3917
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
|
-
module.exports.__wbg_set_c0f7f01bcd881751 = function () {
|
|
3903
|
+
module.exports.__wbg_set_39adcc20133bca63 = function () {
|
|
3921
3904
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3922
3905
|
let deferred0_0;
|
|
3923
3906
|
let deferred0_1;
|
|
@@ -3932,7 +3915,15 @@ module.exports.__wbg_set_c0f7f01bcd881751 = function () {
|
|
|
3932
3915
|
}, arguments);
|
|
3933
3916
|
};
|
|
3934
3917
|
|
|
3935
|
-
module.exports.
|
|
3918
|
+
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
3919
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3920
|
+
};
|
|
3921
|
+
|
|
3922
|
+
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
3923
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3924
|
+
};
|
|
3925
|
+
|
|
3926
|
+
module.exports.__wbg_set_7a0f45f61f570f10 = function () {
|
|
3936
3927
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3937
3928
|
let deferred0_0;
|
|
3938
3929
|
let deferred0_1;
|
|
@@ -4135,18 +4126,18 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
4135
4126
|
return ret;
|
|
4136
4127
|
};
|
|
4137
4128
|
|
|
4138
|
-
module.exports.
|
|
4139
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4129
|
+
module.exports.__wbindgen_closure_wrapper3124 = function (arg0, arg1, arg2) {
|
|
4130
|
+
const ret = makeMutClosure(arg0, arg1, 221, __wbg_adapter_54);
|
|
4140
4131
|
return addHeapObject(ret);
|
|
4141
4132
|
};
|
|
4142
4133
|
|
|
4143
|
-
module.exports.
|
|
4144
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4134
|
+
module.exports.__wbindgen_closure_wrapper5341 = function (arg0, arg1, arg2) {
|
|
4135
|
+
const ret = makeMutClosure(arg0, arg1, 246, __wbg_adapter_54);
|
|
4145
4136
|
return addHeapObject(ret);
|
|
4146
4137
|
};
|
|
4147
4138
|
|
|
4148
|
-
module.exports.
|
|
4149
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4139
|
+
module.exports.__wbindgen_closure_wrapper5698 = function (arg0, arg1, arg2) {
|
|
4140
|
+
const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_59);
|
|
4150
4141
|
return addHeapObject(ret);
|
|
4151
4142
|
};
|
|
4152
4143
|
|
|
Binary file
|