@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
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1ba460c77a0704e15ef3b4c4104c6554f6061d9d
|
|
@@ -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;
|
|
@@ -243,6 +243,93 @@ function debugString(val) {
|
|
|
243
243
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
244
244
|
return className;
|
|
245
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* @param {LogLevel} level
|
|
248
|
+
*/
|
|
249
|
+
export function set_log_level(level) {
|
|
250
|
+
wasm.set_log_level(level);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @param {LogLevel | null} [log_level]
|
|
255
|
+
*/
|
|
256
|
+
export function init_sdk(log_level) {
|
|
257
|
+
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
261
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
262
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
263
|
+
WASM_VECTOR_LEN = arg.length;
|
|
264
|
+
return ptr;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Generate a new SSH key pair
|
|
268
|
+
*
|
|
269
|
+
* # Arguments
|
|
270
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
|
271
|
+
*
|
|
272
|
+
* # Returns
|
|
273
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
|
274
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
275
|
+
* @param {KeyAlgorithm} key_algorithm
|
|
276
|
+
* @returns {SshKeyView}
|
|
277
|
+
*/
|
|
278
|
+
export function generate_ssh_key(key_algorithm) {
|
|
279
|
+
try {
|
|
280
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
282
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
283
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
284
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
285
|
+
if (r2) {
|
|
286
|
+
throw takeObject(r1);
|
|
287
|
+
}
|
|
288
|
+
return takeObject(r0);
|
|
289
|
+
} finally {
|
|
290
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
296
|
+
* to an OpenSSH private key with public key and fingerprint
|
|
297
|
+
*
|
|
298
|
+
* # Arguments
|
|
299
|
+
* - `imported_key` - The private key to convert
|
|
300
|
+
* - `password` - The password to use for decrypting the key
|
|
301
|
+
*
|
|
302
|
+
* # Returns
|
|
303
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
304
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
305
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
306
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
|
307
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
308
|
+
* @param {string} imported_key
|
|
309
|
+
* @param {string | null} [password]
|
|
310
|
+
* @returns {SshKeyView}
|
|
311
|
+
*/
|
|
312
|
+
export function import_ssh_key(imported_key, password) {
|
|
313
|
+
try {
|
|
314
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
315
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
317
|
+
var ptr1 = isLikeNone(password)
|
|
318
|
+
? 0
|
|
319
|
+
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
320
|
+
var len1 = WASM_VECTOR_LEN;
|
|
321
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
322
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
323
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
324
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
325
|
+
if (r2) {
|
|
326
|
+
throw takeObject(r1);
|
|
327
|
+
}
|
|
328
|
+
return takeObject(r0);
|
|
329
|
+
} finally {
|
|
330
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
246
333
|
|
|
247
334
|
let stack_pointer = 128;
|
|
248
335
|
|
|
@@ -251,6 +338,19 @@ function addBorrowedObject(obj) {
|
|
|
251
338
|
heap[--stack_pointer] = obj;
|
|
252
339
|
return stack_pointer;
|
|
253
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* @param {any} error
|
|
343
|
+
* @returns {boolean}
|
|
344
|
+
*/
|
|
345
|
+
export function isTestError(error) {
|
|
346
|
+
try {
|
|
347
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
348
|
+
return ret !== 0;
|
|
349
|
+
} finally {
|
|
350
|
+
heap[stack_pointer++] = undefined;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
254
354
|
/**
|
|
255
355
|
* @param {any} error
|
|
256
356
|
* @returns {boolean}
|
|
@@ -400,13 +500,6 @@ export function isPassphraseError(error) {
|
|
|
400
500
|
}
|
|
401
501
|
}
|
|
402
502
|
|
|
403
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
404
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
405
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
406
|
-
WASM_VECTOR_LEN = arg.length;
|
|
407
|
-
return ptr;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
503
|
function _assertClass(instance, klass) {
|
|
411
504
|
if (!(instance instanceof klass)) {
|
|
412
505
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -688,125 +781,23 @@ export function isEncryptFileError(error) {
|
|
|
688
781
|
}
|
|
689
782
|
}
|
|
690
783
|
|
|
691
|
-
/**
|
|
692
|
-
* @param {LogLevel} level
|
|
693
|
-
*/
|
|
694
|
-
export function set_log_level(level) {
|
|
695
|
-
wasm.set_log_level(level);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* @param {LogLevel | null} [log_level]
|
|
700
|
-
*/
|
|
701
|
-
export function init_sdk(log_level) {
|
|
702
|
-
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Generate a new SSH key pair
|
|
707
|
-
*
|
|
708
|
-
* # Arguments
|
|
709
|
-
* - `key_algorithm` - The algorithm to use for the key pair
|
|
710
|
-
*
|
|
711
|
-
* # Returns
|
|
712
|
-
* - `Ok(SshKey)` if the key was successfully generated
|
|
713
|
-
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
714
|
-
* @param {KeyAlgorithm} key_algorithm
|
|
715
|
-
* @returns {SshKeyView}
|
|
716
|
-
*/
|
|
717
|
-
export function generate_ssh_key(key_algorithm) {
|
|
718
|
-
try {
|
|
719
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
720
|
-
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
721
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
722
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
723
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
724
|
-
if (r2) {
|
|
725
|
-
throw takeObject(r1);
|
|
726
|
-
}
|
|
727
|
-
return takeObject(r0);
|
|
728
|
-
} finally {
|
|
729
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
735
|
-
* to an OpenSSH private key with public key and fingerprint
|
|
736
|
-
*
|
|
737
|
-
* # Arguments
|
|
738
|
-
* - `imported_key` - The private key to convert
|
|
739
|
-
* - `password` - The password to use for decrypting the key
|
|
740
|
-
*
|
|
741
|
-
* # Returns
|
|
742
|
-
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
743
|
-
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
744
|
-
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
745
|
-
* - `Err(ParsingError)` if the key could not be parsed
|
|
746
|
-
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
747
|
-
* @param {string} imported_key
|
|
748
|
-
* @param {string | null} [password]
|
|
749
|
-
* @returns {SshKeyView}
|
|
750
|
-
*/
|
|
751
|
-
export function import_ssh_key(imported_key, password) {
|
|
752
|
-
try {
|
|
753
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
754
|
-
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
755
|
-
const len0 = WASM_VECTOR_LEN;
|
|
756
|
-
var ptr1 = isLikeNone(password)
|
|
757
|
-
? 0
|
|
758
|
-
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
759
|
-
var len1 = WASM_VECTOR_LEN;
|
|
760
|
-
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
761
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
762
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
763
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
764
|
-
if (r2) {
|
|
765
|
-
throw takeObject(r1);
|
|
766
|
-
}
|
|
767
|
-
return takeObject(r0);
|
|
768
|
-
} finally {
|
|
769
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* @param {any} error
|
|
775
|
-
* @returns {boolean}
|
|
776
|
-
*/
|
|
777
|
-
export function isTestError(error) {
|
|
778
|
-
try {
|
|
779
|
-
const ret = wasm.isTestError(addBorrowedObject(error));
|
|
780
|
-
return ret !== 0;
|
|
781
|
-
} finally {
|
|
782
|
-
heap[stack_pointer++] = undefined;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
|
|
786
784
|
function __wbg_adapter_54(arg0, arg1) {
|
|
787
|
-
wasm.
|
|
788
|
-
arg0,
|
|
789
|
-
arg1,
|
|
790
|
-
);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
function __wbg_adapter_57(arg0, arg1) {
|
|
794
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2b093e5f83b42fbd(
|
|
785
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
795
786
|
arg0,
|
|
796
787
|
arg1,
|
|
797
788
|
);
|
|
798
789
|
}
|
|
799
790
|
|
|
800
|
-
function
|
|
801
|
-
wasm.
|
|
791
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
792
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
802
793
|
arg0,
|
|
803
794
|
arg1,
|
|
804
795
|
addHeapObject(arg2),
|
|
805
796
|
);
|
|
806
797
|
}
|
|
807
798
|
|
|
808
|
-
function
|
|
809
|
-
wasm.
|
|
799
|
+
function __wbg_adapter_300(arg0, arg1, arg2, arg3) {
|
|
800
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
810
801
|
arg0,
|
|
811
802
|
arg1,
|
|
812
803
|
addHeapObject(arg2),
|
|
@@ -856,15 +847,28 @@ export const CipherType = Object.freeze({
|
|
|
856
847
|
5: "SshKey",
|
|
857
848
|
});
|
|
858
849
|
/**
|
|
850
|
+
* Represents the type of a [FieldView].
|
|
859
851
|
* @enum {0 | 1 | 2 | 3}
|
|
860
852
|
*/
|
|
861
853
|
export const FieldType = Object.freeze({
|
|
854
|
+
/**
|
|
855
|
+
* Text field
|
|
856
|
+
*/
|
|
862
857
|
Text: 0,
|
|
863
858
|
0: "Text",
|
|
859
|
+
/**
|
|
860
|
+
* Hidden text field
|
|
861
|
+
*/
|
|
864
862
|
Hidden: 1,
|
|
865
863
|
1: "Hidden",
|
|
864
|
+
/**
|
|
865
|
+
* Boolean field
|
|
866
|
+
*/
|
|
866
867
|
Boolean: 2,
|
|
867
868
|
2: "Boolean",
|
|
869
|
+
/**
|
|
870
|
+
* Linked field
|
|
871
|
+
*/
|
|
868
872
|
Linked: 3,
|
|
869
873
|
3: "Linked",
|
|
870
874
|
});
|
|
@@ -1136,7 +1140,7 @@ export class BitwardenClient {
|
|
|
1136
1140
|
* @returns {VaultClient}
|
|
1137
1141
|
*/
|
|
1138
1142
|
vault() {
|
|
1139
|
-
const ret = wasm.
|
|
1143
|
+
const ret = wasm.bitwardenclient_vault(this.__wbg_ptr);
|
|
1140
1144
|
return VaultClient.__wrap(ret);
|
|
1141
1145
|
}
|
|
1142
1146
|
/**
|
|
@@ -1152,14 +1156,14 @@ export class BitwardenClient {
|
|
|
1152
1156
|
* @returns {GeneratorClient}
|
|
1153
1157
|
*/
|
|
1154
1158
|
generator() {
|
|
1155
|
-
const ret = wasm.
|
|
1159
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
1156
1160
|
return GeneratorClient.__wrap(ret);
|
|
1157
1161
|
}
|
|
1158
1162
|
/**
|
|
1159
1163
|
* @returns {ExporterClient}
|
|
1160
1164
|
*/
|
|
1161
1165
|
exporters() {
|
|
1162
|
-
const ret = wasm.
|
|
1166
|
+
const ret = wasm.bitwardenclient_exporters(this.__wbg_ptr);
|
|
1163
1167
|
return ExporterClient.__wrap(ret);
|
|
1164
1168
|
}
|
|
1165
1169
|
}
|
|
@@ -2424,7 +2428,7 @@ export class PlatformClient {
|
|
|
2424
2428
|
* @returns {StateClient}
|
|
2425
2429
|
*/
|
|
2426
2430
|
state() {
|
|
2427
|
-
const ret = wasm.
|
|
2431
|
+
const ret = wasm.platformclient_state(this.__wbg_ptr);
|
|
2428
2432
|
return StateClient.__wrap(ret);
|
|
2429
2433
|
}
|
|
2430
2434
|
}
|
|
@@ -3509,7 +3513,14 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
3509
3513
|
return ret;
|
|
3510
3514
|
}
|
|
3511
3515
|
|
|
3512
|
-
export function
|
|
3516
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
3517
|
+
return handleError(function (arg0, arg1) {
|
|
3518
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3519
|
+
return addHeapObject(ret);
|
|
3520
|
+
}, arguments);
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
export function __wbg_get_90ebb47755cb51fb() {
|
|
3513
3524
|
return handleError(function (arg0, arg1, arg2) {
|
|
3514
3525
|
let deferred0_0;
|
|
3515
3526
|
let deferred0_1;
|
|
@@ -3524,19 +3535,12 @@ export function __wbg_get_1620f903ed9a676f() {
|
|
|
3524
3535
|
}, arguments);
|
|
3525
3536
|
}
|
|
3526
3537
|
|
|
3527
|
-
export function __wbg_get_67b2ba62fc30de12() {
|
|
3528
|
-
return handleError(function (arg0, arg1) {
|
|
3529
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
3530
|
-
return addHeapObject(ret);
|
|
3531
|
-
}, arguments);
|
|
3532
|
-
}
|
|
3533
|
-
|
|
3534
3538
|
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
3535
3539
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3536
3540
|
return addHeapObject(ret);
|
|
3537
3541
|
}
|
|
3538
3542
|
|
|
3539
|
-
export function
|
|
3543
|
+
export function __wbg_get_d49d869dd32dfb0d() {
|
|
3540
3544
|
return handleError(function (arg0, arg1, arg2) {
|
|
3541
3545
|
let deferred0_0;
|
|
3542
3546
|
let deferred0_1;
|
|
@@ -3551,7 +3555,7 @@ export function __wbg_get_e94e796a5527c131() {
|
|
|
3551
3555
|
}, arguments);
|
|
3552
3556
|
}
|
|
3553
3557
|
|
|
3554
|
-
export function
|
|
3558
|
+
export function __wbg_getaccesstoken_9de9d7dbfd90255a(arg0) {
|
|
3555
3559
|
const ret = getObject(arg0).get_access_token();
|
|
3556
3560
|
return addHeapObject(ret);
|
|
3557
3561
|
}
|
|
@@ -3656,14 +3660,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
3656
3660
|
return ret;
|
|
3657
3661
|
}
|
|
3658
3662
|
|
|
3659
|
-
export function
|
|
3663
|
+
export function __wbg_list_30c256aaa2cad987() {
|
|
3660
3664
|
return handleError(function (arg0) {
|
|
3661
3665
|
const ret = getObject(arg0).list();
|
|
3662
3666
|
return addHeapObject(ret);
|
|
3663
3667
|
}, arguments);
|
|
3664
3668
|
}
|
|
3665
3669
|
|
|
3666
|
-
export function
|
|
3670
|
+
export function __wbg_list_645df12dc84455e1() {
|
|
3667
3671
|
return handleError(function (arg0) {
|
|
3668
3672
|
const ret = getObject(arg0).list();
|
|
3669
3673
|
return addHeapObject(ret);
|
|
@@ -3698,7 +3702,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
3698
3702
|
const a = state0.a;
|
|
3699
3703
|
state0.a = 0;
|
|
3700
3704
|
try {
|
|
3701
|
-
return
|
|
3705
|
+
return __wbg_adapter_300(a, state0.b, arg0, arg1);
|
|
3702
3706
|
} finally {
|
|
3703
3707
|
state0.a = a;
|
|
3704
3708
|
}
|
|
@@ -3840,7 +3844,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
3840
3844
|
}, arguments);
|
|
3841
3845
|
}
|
|
3842
3846
|
|
|
3843
|
-
export function
|
|
3847
|
+
export function __wbg_remove_4d57bc728fc99dfd() {
|
|
3844
3848
|
return handleError(function (arg0, arg1, arg2) {
|
|
3845
3849
|
let deferred0_0;
|
|
3846
3850
|
let deferred0_1;
|
|
@@ -3855,7 +3859,7 @@ export function __wbg_remove_050f4c22aba9e8c7() {
|
|
|
3855
3859
|
}, arguments);
|
|
3856
3860
|
}
|
|
3857
3861
|
|
|
3858
|
-
export function
|
|
3862
|
+
export function __wbg_remove_4e6915c4e89cca81() {
|
|
3859
3863
|
return handleError(function (arg0, arg1, arg2) {
|
|
3860
3864
|
let deferred0_0;
|
|
3861
3865
|
let deferred0_1;
|
|
@@ -3906,7 +3910,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
|
3906
3910
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3907
3911
|
}
|
|
3908
3912
|
|
|
3909
|
-
export function
|
|
3913
|
+
export function __wbg_set_6f02fcd0077351fd() {
|
|
3910
3914
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3911
3915
|
let deferred0_0;
|
|
3912
3916
|
let deferred0_1;
|
|
@@ -3921,7 +3925,7 @@ export function __wbg_set_c0f7f01bcd881751() {
|
|
|
3921
3925
|
}, arguments);
|
|
3922
3926
|
}
|
|
3923
3927
|
|
|
3924
|
-
export function
|
|
3928
|
+
export function __wbg_set_904c83091aaf1bd2() {
|
|
3925
3929
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3926
3930
|
let deferred0_0;
|
|
3927
3931
|
let deferred0_1;
|
|
@@ -4124,18 +4128,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
4124
4128
|
return ret;
|
|
4125
4129
|
}
|
|
4126
4130
|
|
|
4127
|
-
export function
|
|
4128
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4131
|
+
export function __wbindgen_closure_wrapper3129(arg0, arg1, arg2) {
|
|
4132
|
+
const ret = makeMutClosure(arg0, arg1, 221, __wbg_adapter_54);
|
|
4129
4133
|
return addHeapObject(ret);
|
|
4130
4134
|
}
|
|
4131
4135
|
|
|
4132
|
-
export function
|
|
4133
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4136
|
+
export function __wbindgen_closure_wrapper5346(arg0, arg1, arg2) {
|
|
4137
|
+
const ret = makeMutClosure(arg0, arg1, 246, __wbg_adapter_54);
|
|
4134
4138
|
return addHeapObject(ret);
|
|
4135
4139
|
}
|
|
4136
4140
|
|
|
4137
|
-
export function
|
|
4138
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4141
|
+
export function __wbindgen_closure_wrapper5703(arg0, arg1, arg2) {
|
|
4142
|
+
const ret = makeMutClosure(arg0, arg1, 272, __wbg_adapter_59);
|
|
4139
4143
|
return addHeapObject(ret);
|
|
4140
4144
|
}
|
|
4141
4145
|
|
|
Binary file
|