@bitwarden/sdk-internal 0.2.0-main.232 → 0.2.0-main.234
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 +76 -60
- package/bitwarden_wasm_internal_bg.js +145 -141
- 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 +76 -60
- package/node/bitwarden_wasm_internal.js +145 -141
- 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,
|
|
@@ -63,10 +63,25 @@ export enum CipherType {
|
|
|
63
63
|
Identity = 4,
|
|
64
64
|
SshKey = 5,
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents the type of a [FieldView].
|
|
68
|
+
*/
|
|
66
69
|
export enum FieldType {
|
|
70
|
+
/**
|
|
71
|
+
* Text field
|
|
72
|
+
*/
|
|
67
73
|
Text = 0,
|
|
74
|
+
/**
|
|
75
|
+
* Hidden text field
|
|
76
|
+
*/
|
|
68
77
|
Hidden = 1,
|
|
78
|
+
/**
|
|
79
|
+
* Boolean field
|
|
80
|
+
*/
|
|
69
81
|
Boolean = 2,
|
|
82
|
+
/**
|
|
83
|
+
* Linked field
|
|
84
|
+
*/
|
|
70
85
|
Linked = 3,
|
|
71
86
|
}
|
|
72
87
|
export enum IdentityLinkedIdType {
|
|
@@ -112,6 +127,52 @@ export enum UriMatchType {
|
|
|
112
127
|
RegularExpression = 4,
|
|
113
128
|
Never = 5,
|
|
114
129
|
}
|
|
130
|
+
|
|
131
|
+
import { Tagged } from "type-fest";
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A string that **MUST** be a valid UUID.
|
|
135
|
+
*
|
|
136
|
+
* Never create or cast to this type directly, use the `uuid<T>()` function instead.
|
|
137
|
+
*/
|
|
138
|
+
// TODO: Uncomment this when the `uuid` crate is used.
|
|
139
|
+
// export type Uuid = unknown;
|
|
140
|
+
|
|
141
|
+
export type Uuid = string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* RFC3339 compliant date-time string.
|
|
145
|
+
* @typeParam T - Not used in JavaScript.
|
|
146
|
+
*/
|
|
147
|
+
export type DateTime<T = unknown> = string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* UTC date-time string. Not used in JavaScript.
|
|
151
|
+
*/
|
|
152
|
+
export type Utc = unknown;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* An integer that is known not to equal zero.
|
|
156
|
+
*/
|
|
157
|
+
export type NonZeroU32 = number;
|
|
158
|
+
|
|
159
|
+
export interface Repository<T> {
|
|
160
|
+
get(id: string): Promise<T | null>;
|
|
161
|
+
list(): Promise<T[]>;
|
|
162
|
+
set(id: string, value: T): Promise<void>;
|
|
163
|
+
remove(id: string): Promise<void>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface TokenProvider {
|
|
167
|
+
get_access_token(): Promise<string | undefined>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface TestError extends Error {
|
|
171
|
+
name: "TestError";
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function isTestError(error: any): error is TestError;
|
|
175
|
+
|
|
115
176
|
/**
|
|
116
177
|
* State used for initializing the user cryptographic state.
|
|
117
178
|
*/
|
|
@@ -1270,51 +1331,6 @@ export interface Attachment {
|
|
|
1270
1331
|
key: EncString | undefined;
|
|
1271
1332
|
}
|
|
1272
1333
|
|
|
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
1334
|
export class AttachmentsClient {
|
|
1319
1335
|
private constructor();
|
|
1320
1336
|
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.
|
|
782
|
-
arg0,
|
|
783
|
-
arg1,
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
function __wbg_adapter_57(arg0, arg1) {
|
|
788
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2b093e5f83b42fbd(
|
|
779
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
789
780
|
arg0,
|
|
790
781
|
arg1,
|
|
791
782
|
);
|
|
792
783
|
}
|
|
793
784
|
|
|
794
|
-
function
|
|
795
|
-
wasm.
|
|
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),
|
|
@@ -850,15 +841,28 @@ module.exports.CipherType = Object.freeze({
|
|
|
850
841
|
5: "SshKey",
|
|
851
842
|
});
|
|
852
843
|
/**
|
|
844
|
+
* Represents the type of a [FieldView].
|
|
853
845
|
* @enum {0 | 1 | 2 | 3}
|
|
854
846
|
*/
|
|
855
847
|
module.exports.FieldType = Object.freeze({
|
|
848
|
+
/**
|
|
849
|
+
* Text field
|
|
850
|
+
*/
|
|
856
851
|
Text: 0,
|
|
857
852
|
0: "Text",
|
|
853
|
+
/**
|
|
854
|
+
* Hidden text field
|
|
855
|
+
*/
|
|
858
856
|
Hidden: 1,
|
|
859
857
|
1: "Hidden",
|
|
858
|
+
/**
|
|
859
|
+
* Boolean field
|
|
860
|
+
*/
|
|
860
861
|
Boolean: 2,
|
|
861
862
|
2: "Boolean",
|
|
863
|
+
/**
|
|
864
|
+
* Linked field
|
|
865
|
+
*/
|
|
862
866
|
Linked: 3,
|
|
863
867
|
3: "Linked",
|
|
864
868
|
});
|
|
@@ -1131,7 +1135,7 @@ class BitwardenClient {
|
|
|
1131
1135
|
* @returns {VaultClient}
|
|
1132
1136
|
*/
|
|
1133
1137
|
vault() {
|
|
1134
|
-
const ret = wasm.
|
|
1138
|
+
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1135
1139
|
return VaultClient.__wrap(ret);
|
|
1136
1140
|
}
|
|
1137
1141
|
/**
|
|
@@ -1147,14 +1151,14 @@ class BitwardenClient {
|
|
|
1147
1151
|
* @returns {GeneratorClient}
|
|
1148
1152
|
*/
|
|
1149
1153
|
generator() {
|
|
1150
|
-
const ret = wasm.
|
|
1154
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1151
1155
|
return GeneratorClient.__wrap(ret);
|
|
1152
1156
|
}
|
|
1153
1157
|
/**
|
|
1154
1158
|
* @returns {ExporterClient}
|
|
1155
1159
|
*/
|
|
1156
1160
|
exporters() {
|
|
1157
|
-
const ret = wasm.
|
|
1161
|
+
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1158
1162
|
return ExporterClient.__wrap(ret);
|
|
1159
1163
|
}
|
|
1160
1164
|
}
|
|
@@ -2430,7 +2434,7 @@ class PlatformClient {
|
|
|
2430
2434
|
* @returns {StateClient}
|
|
2431
2435
|
*/
|
|
2432
2436
|
state() {
|
|
2433
|
-
const ret = wasm.
|
|
2437
|
+
const ret = wasm.platformclient_state(this.__wbg_ptr);
|
|
2434
2438
|
return StateClient.__wrap(ret);
|
|
2435
2439
|
}
|
|
2436
2440
|
}
|
|
@@ -3520,7 +3524,14 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
3520
3524
|
return ret;
|
|
3521
3525
|
};
|
|
3522
3526
|
|
|
3523
|
-
module.exports.
|
|
3527
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
3528
|
+
return handleError(function (arg0, arg1) {
|
|
3529
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3530
|
+
return addHeapObject(ret);
|
|
3531
|
+
}, arguments);
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
module.exports.__wbg_get_90ebb47755cb51fb = function () {
|
|
3524
3535
|
return handleError(function (arg0, arg1, arg2) {
|
|
3525
3536
|
let deferred0_0;
|
|
3526
3537
|
let deferred0_1;
|
|
@@ -3535,19 +3546,12 @@ module.exports.__wbg_get_1620f903ed9a676f = function () {
|
|
|
3535
3546
|
}, arguments);
|
|
3536
3547
|
};
|
|
3537
3548
|
|
|
3538
|
-
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
3539
|
-
return handleError(function (arg0, arg1) {
|
|
3540
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3541
|
-
return addHeapObject(ret);
|
|
3542
|
-
}, arguments);
|
|
3543
|
-
};
|
|
3544
|
-
|
|
3545
3549
|
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
3546
3550
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3547
3551
|
return addHeapObject(ret);
|
|
3548
3552
|
};
|
|
3549
3553
|
|
|
3550
|
-
module.exports.
|
|
3554
|
+
module.exports.__wbg_get_d49d869dd32dfb0d = function () {
|
|
3551
3555
|
return handleError(function (arg0, arg1, arg2) {
|
|
3552
3556
|
let deferred0_0;
|
|
3553
3557
|
let deferred0_1;
|
|
@@ -3562,7 +3566,7 @@ module.exports.__wbg_get_e94e796a5527c131 = function () {
|
|
|
3562
3566
|
}, arguments);
|
|
3563
3567
|
};
|
|
3564
3568
|
|
|
3565
|
-
module.exports.
|
|
3569
|
+
module.exports.__wbg_getaccesstoken_9de9d7dbfd90255a = function (arg0) {
|
|
3566
3570
|
const ret = getObject(arg0).get_access_token();
|
|
3567
3571
|
return addHeapObject(ret);
|
|
3568
3572
|
};
|
|
@@ -3667,14 +3671,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
3667
3671
|
return ret;
|
|
3668
3672
|
};
|
|
3669
3673
|
|
|
3670
|
-
module.exports.
|
|
3674
|
+
module.exports.__wbg_list_30c256aaa2cad987 = function () {
|
|
3671
3675
|
return handleError(function (arg0) {
|
|
3672
3676
|
const ret = getObject(arg0).list();
|
|
3673
3677
|
return addHeapObject(ret);
|
|
3674
3678
|
}, arguments);
|
|
3675
3679
|
};
|
|
3676
3680
|
|
|
3677
|
-
module.exports.
|
|
3681
|
+
module.exports.__wbg_list_645df12dc84455e1 = function () {
|
|
3678
3682
|
return handleError(function (arg0) {
|
|
3679
3683
|
const ret = getObject(arg0).list();
|
|
3680
3684
|
return addHeapObject(ret);
|
|
@@ -3709,7 +3713,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
3709
3713
|
const a = state0.a;
|
|
3710
3714
|
state0.a = 0;
|
|
3711
3715
|
try {
|
|
3712
|
-
return
|
|
3716
|
+
return __wbg_adapter_300(a, state0.b, arg0, arg1);
|
|
3713
3717
|
} finally {
|
|
3714
3718
|
state0.a = a;
|
|
3715
3719
|
}
|
|
@@ -3851,7 +3855,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
3851
3855
|
}, arguments);
|
|
3852
3856
|
};
|
|
3853
3857
|
|
|
3854
|
-
module.exports.
|
|
3858
|
+
module.exports.__wbg_remove_4d57bc728fc99dfd = function () {
|
|
3855
3859
|
return handleError(function (arg0, arg1, arg2) {
|
|
3856
3860
|
let deferred0_0;
|
|
3857
3861
|
let deferred0_1;
|
|
@@ -3866,7 +3870,7 @@ module.exports.__wbg_remove_050f4c22aba9e8c7 = function () {
|
|
|
3866
3870
|
}, arguments);
|
|
3867
3871
|
};
|
|
3868
3872
|
|
|
3869
|
-
module.exports.
|
|
3873
|
+
module.exports.__wbg_remove_4e6915c4e89cca81 = function () {
|
|
3870
3874
|
return handleError(function (arg0, arg1, arg2) {
|
|
3871
3875
|
let deferred0_0;
|
|
3872
3876
|
let deferred0_1;
|
|
@@ -3917,7 +3921,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
3917
3921
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3918
3922
|
};
|
|
3919
3923
|
|
|
3920
|
-
module.exports.
|
|
3924
|
+
module.exports.__wbg_set_6f02fcd0077351fd = function () {
|
|
3921
3925
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3922
3926
|
let deferred0_0;
|
|
3923
3927
|
let deferred0_1;
|
|
@@ -3932,7 +3936,7 @@ module.exports.__wbg_set_c0f7f01bcd881751 = function () {
|
|
|
3932
3936
|
}, arguments);
|
|
3933
3937
|
};
|
|
3934
3938
|
|
|
3935
|
-
module.exports.
|
|
3939
|
+
module.exports.__wbg_set_904c83091aaf1bd2 = function () {
|
|
3936
3940
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3937
3941
|
let deferred0_0;
|
|
3938
3942
|
let deferred0_1;
|
|
@@ -4135,18 +4139,18 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
4135
4139
|
return ret;
|
|
4136
4140
|
};
|
|
4137
4141
|
|
|
4138
|
-
module.exports.
|
|
4139
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4142
|
+
module.exports.__wbindgen_closure_wrapper3129 = function (arg0, arg1, arg2) {
|
|
4143
|
+
const ret = makeMutClosure(arg0, arg1, 221, __wbg_adapter_54);
|
|
4140
4144
|
return addHeapObject(ret);
|
|
4141
4145
|
};
|
|
4142
4146
|
|
|
4143
|
-
module.exports.
|
|
4144
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4147
|
+
module.exports.__wbindgen_closure_wrapper5346 = function (arg0, arg1, arg2) {
|
|
4148
|
+
const ret = makeMutClosure(arg0, arg1, 246, __wbg_adapter_54);
|
|
4145
4149
|
return addHeapObject(ret);
|
|
4146
4150
|
};
|
|
4147
4151
|
|
|
4148
|
-
module.exports.
|
|
4149
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4152
|
+
module.exports.__wbindgen_closure_wrapper5703 = function (arg0, arg1, arg2) {
|
|
4153
|
+
const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_59);
|
|
4150
4154
|
return addHeapObject(ret);
|
|
4151
4155
|
};
|
|
4152
4156
|
|
|
Binary file
|