@bitwarden/sdk-internal 0.2.0-main.2 → 0.2.0-main.21
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/bitwarden_wasm_internal.d.ts +60 -1
- package/bitwarden_wasm_internal_bg.js +278 -129
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +9 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +60 -1
- package/node/bitwarden_wasm_internal.js +277 -128
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +9 -4
- package/package.json +1 -1
@@ -1,5 +1,10 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* @param {KeyAlgorithm} key_algorithm
|
5
|
+
* @returns {GenerateSshKeyResult}
|
6
|
+
*/
|
7
|
+
export function generate_ssh_key(key_algorithm: KeyAlgorithm): GenerateSshKeyResult;
|
3
8
|
export enum LogLevel {
|
4
9
|
Trace = 0,
|
5
10
|
Debug = 1,
|
@@ -51,6 +56,38 @@ export interface InitOrgCryptoRequest {
|
|
51
56
|
organizationKeys: Map<Uuid, AsymmetricEncString>;
|
52
57
|
}
|
53
58
|
|
59
|
+
export interface CoreError extends Error {
|
60
|
+
name: "CoreError";
|
61
|
+
variant:
|
62
|
+
| "MissingFieldError"
|
63
|
+
| "VaultLocked"
|
64
|
+
| "NotAuthenticated"
|
65
|
+
| "AccessTokenInvalid"
|
66
|
+
| "InvalidResponse"
|
67
|
+
| "Crypto"
|
68
|
+
| "IdentityFail"
|
69
|
+
| "Reqwest"
|
70
|
+
| "Serde"
|
71
|
+
| "Io"
|
72
|
+
| "InvalidBase64"
|
73
|
+
| "Chrono"
|
74
|
+
| "ResponseContent"
|
75
|
+
| "ValidationError"
|
76
|
+
| "InvalidStateFileVersion"
|
77
|
+
| "InvalidStateFile"
|
78
|
+
| "Internal"
|
79
|
+
| "EncryptionSettings";
|
80
|
+
}
|
81
|
+
|
82
|
+
export function isCoreError(error: any): error is CoreError;
|
83
|
+
|
84
|
+
export interface EncryptionSettingsError extends Error {
|
85
|
+
name: "EncryptionSettingsError";
|
86
|
+
variant: "Crypto" | "InvalidBase64" | "VaultLocked" | "InvalidPrivateKey" | "MissingPrivateKey";
|
87
|
+
}
|
88
|
+
|
89
|
+
export function isEncryptionSettingsError(error: any): error is EncryptionSettingsError;
|
90
|
+
|
54
91
|
export type DeviceType =
|
55
92
|
| "Android"
|
56
93
|
| "iOS"
|
@@ -129,6 +166,21 @@ export type Kdf =
|
|
129
166
|
| { pBKDF2: { iterations: NonZeroU32 } }
|
130
167
|
| { argon2id: { iterations: NonZeroU32; memory: NonZeroU32; parallelism: NonZeroU32 } };
|
131
168
|
|
169
|
+
export interface GenerateSshKeyResult {
|
170
|
+
private_key: string;
|
171
|
+
public_key: string;
|
172
|
+
key_fingerprint: string;
|
173
|
+
}
|
174
|
+
|
175
|
+
export type KeyAlgorithm = "Ed25519" | "Rsa3072" | "Rsa4096";
|
176
|
+
|
177
|
+
export interface KeyGenerationError extends Error {
|
178
|
+
name: "KeyGenerationError";
|
179
|
+
variant: "KeyGenerationError" | "KeyConversionError";
|
180
|
+
}
|
181
|
+
|
182
|
+
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
183
|
+
|
132
184
|
export interface Folder {
|
133
185
|
id: Uuid | undefined;
|
134
186
|
name: EncString;
|
@@ -141,6 +193,12 @@ export interface FolderView {
|
|
141
193
|
revisionDate: DateTime<Utc>;
|
142
194
|
}
|
143
195
|
|
196
|
+
export interface TestError extends Error {
|
197
|
+
name: "TestError";
|
198
|
+
}
|
199
|
+
|
200
|
+
export function isTestError(error: any): error is TestError;
|
201
|
+
|
144
202
|
export type Uuid = string;
|
145
203
|
|
146
204
|
/**
|
@@ -178,8 +236,9 @@ export class BitwardenClient {
|
|
178
236
|
version(): string;
|
179
237
|
/**
|
180
238
|
* @param {string} msg
|
239
|
+
* @returns {Promise<void>}
|
181
240
|
*/
|
182
|
-
throw(msg: string): void
|
241
|
+
throw(msg: string): Promise<void>;
|
183
242
|
/**
|
184
243
|
* Test method, calls http endpoint
|
185
244
|
* @param {string} url
|
@@ -1,17 +1,11 @@
|
|
1
1
|
let imports = {};
|
2
2
|
imports["__wbindgen_placeholder__"] = module.exports;
|
3
3
|
let wasm;
|
4
|
-
const {
|
4
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
heap.push(undefined, null, true, false);
|
9
|
-
|
10
|
-
function getObject(idx) {
|
11
|
-
return heap[idx];
|
12
|
-
}
|
6
|
+
let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
13
7
|
|
14
|
-
|
8
|
+
cachedTextDecoder.decode();
|
15
9
|
|
16
10
|
let cachedUint8ArrayMemory0 = null;
|
17
11
|
|
@@ -22,6 +16,44 @@ function getUint8ArrayMemory0() {
|
|
22
16
|
return cachedUint8ArrayMemory0;
|
23
17
|
}
|
24
18
|
|
19
|
+
function getStringFromWasm0(ptr, len) {
|
20
|
+
ptr = ptr >>> 0;
|
21
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
22
|
+
}
|
23
|
+
|
24
|
+
const heap = new Array(128).fill(undefined);
|
25
|
+
|
26
|
+
heap.push(undefined, null, true, false);
|
27
|
+
|
28
|
+
let heap_next = heap.length;
|
29
|
+
|
30
|
+
function addHeapObject(obj) {
|
31
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
32
|
+
const idx = heap_next;
|
33
|
+
heap_next = heap[idx];
|
34
|
+
|
35
|
+
heap[idx] = obj;
|
36
|
+
return idx;
|
37
|
+
}
|
38
|
+
|
39
|
+
function getObject(idx) {
|
40
|
+
return heap[idx];
|
41
|
+
}
|
42
|
+
|
43
|
+
function dropObject(idx) {
|
44
|
+
if (idx < 132) return;
|
45
|
+
heap[idx] = heap_next;
|
46
|
+
heap_next = idx;
|
47
|
+
}
|
48
|
+
|
49
|
+
function takeObject(idx) {
|
50
|
+
const ret = getObject(idx);
|
51
|
+
dropObject(idx);
|
52
|
+
return ret;
|
53
|
+
}
|
54
|
+
|
55
|
+
let WASM_VECTOR_LEN = 0;
|
56
|
+
|
25
57
|
let cachedTextEncoder = new TextEncoder("utf-8");
|
26
58
|
|
27
59
|
const encodeString =
|
@@ -96,38 +128,6 @@ function getDataViewMemory0() {
|
|
96
128
|
return cachedDataViewMemory0;
|
97
129
|
}
|
98
130
|
|
99
|
-
let heap_next = heap.length;
|
100
|
-
|
101
|
-
function dropObject(idx) {
|
102
|
-
if (idx < 132) return;
|
103
|
-
heap[idx] = heap_next;
|
104
|
-
heap_next = idx;
|
105
|
-
}
|
106
|
-
|
107
|
-
function takeObject(idx) {
|
108
|
-
const ret = getObject(idx);
|
109
|
-
dropObject(idx);
|
110
|
-
return ret;
|
111
|
-
}
|
112
|
-
|
113
|
-
function addHeapObject(obj) {
|
114
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
115
|
-
const idx = heap_next;
|
116
|
-
heap_next = heap[idx];
|
117
|
-
|
118
|
-
heap[idx] = obj;
|
119
|
-
return idx;
|
120
|
-
}
|
121
|
-
|
122
|
-
let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
123
|
-
|
124
|
-
cachedTextDecoder.decode();
|
125
|
-
|
126
|
-
function getStringFromWasm0(ptr, len) {
|
127
|
-
ptr = ptr >>> 0;
|
128
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
129
|
-
}
|
130
|
-
|
131
131
|
function debugString(val) {
|
132
132
|
// primitive types
|
133
133
|
const type = typeof val;
|
@@ -225,13 +225,92 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
225
225
|
return real;
|
226
226
|
}
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
228
|
-
wasm.
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha9b57bf10de48c08(
|
229
229
|
arg0,
|
230
230
|
arg1,
|
231
231
|
addHeapObject(arg2),
|
232
232
|
);
|
233
233
|
}
|
234
234
|
|
235
|
+
let stack_pointer = 128;
|
236
|
+
|
237
|
+
function addBorrowedObject(obj) {
|
238
|
+
if (stack_pointer == 1) throw new Error("out of js stack");
|
239
|
+
heap[--stack_pointer] = obj;
|
240
|
+
return stack_pointer;
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* @param {any} error
|
244
|
+
* @returns {boolean}
|
245
|
+
*/
|
246
|
+
module.exports.isCoreError = function (error) {
|
247
|
+
try {
|
248
|
+
const ret = wasm.isCoreError(addBorrowedObject(error));
|
249
|
+
return ret !== 0;
|
250
|
+
} finally {
|
251
|
+
heap[stack_pointer++] = undefined;
|
252
|
+
}
|
253
|
+
};
|
254
|
+
|
255
|
+
/**
|
256
|
+
* @param {any} error
|
257
|
+
* @returns {boolean}
|
258
|
+
*/
|
259
|
+
module.exports.isEncryptionSettingsError = function (error) {
|
260
|
+
try {
|
261
|
+
const ret = wasm.isEncryptionSettingsError(addBorrowedObject(error));
|
262
|
+
return ret !== 0;
|
263
|
+
} finally {
|
264
|
+
heap[stack_pointer++] = undefined;
|
265
|
+
}
|
266
|
+
};
|
267
|
+
|
268
|
+
/**
|
269
|
+
* @param {any} error
|
270
|
+
* @returns {boolean}
|
271
|
+
*/
|
272
|
+
module.exports.isKeyGenerationError = function (error) {
|
273
|
+
try {
|
274
|
+
const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
|
275
|
+
return ret !== 0;
|
276
|
+
} finally {
|
277
|
+
heap[stack_pointer++] = undefined;
|
278
|
+
}
|
279
|
+
};
|
280
|
+
|
281
|
+
/**
|
282
|
+
* @param {any} error
|
283
|
+
* @returns {boolean}
|
284
|
+
*/
|
285
|
+
module.exports.isTestError = function (error) {
|
286
|
+
try {
|
287
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
288
|
+
return ret !== 0;
|
289
|
+
} finally {
|
290
|
+
heap[stack_pointer++] = undefined;
|
291
|
+
}
|
292
|
+
};
|
293
|
+
|
294
|
+
/**
|
295
|
+
* @param {KeyAlgorithm} key_algorithm
|
296
|
+
* @returns {GenerateSshKeyResult}
|
297
|
+
*/
|
298
|
+
module.exports.generate_ssh_key = function (key_algorithm) {
|
299
|
+
try {
|
300
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
301
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
302
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
303
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
304
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
305
|
+
if (r2) {
|
306
|
+
throw takeObject(r1);
|
307
|
+
}
|
308
|
+
return takeObject(r0);
|
309
|
+
} finally {
|
310
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
311
|
+
}
|
312
|
+
};
|
313
|
+
|
235
314
|
function handleError(f, args) {
|
236
315
|
try {
|
237
316
|
return f.apply(this, args);
|
@@ -239,8 +318,8 @@ function handleError(f, args) {
|
|
239
318
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
240
319
|
}
|
241
320
|
}
|
242
|
-
function
|
243
|
-
wasm.
|
321
|
+
function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
|
322
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb7b08fa8b393e2e9(
|
244
323
|
arg0,
|
245
324
|
arg1,
|
246
325
|
addHeapObject(arg2),
|
@@ -339,21 +418,13 @@ class BitwardenClient {
|
|
339
418
|
}
|
340
419
|
/**
|
341
420
|
* @param {string} msg
|
421
|
+
* @returns {Promise<void>}
|
342
422
|
*/
|
343
423
|
throw(msg) {
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
349
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
350
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
351
|
-
if (r1) {
|
352
|
-
throw takeObject(r0);
|
353
|
-
}
|
354
|
-
} finally {
|
355
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
356
|
-
}
|
424
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
425
|
+
const len0 = WASM_VECTOR_LEN;
|
426
|
+
const ret = wasm.bitwardenclient_throw(this.__wbg_ptr, ptr0, len0);
|
427
|
+
return takeObject(ret);
|
357
428
|
}
|
358
429
|
/**
|
359
430
|
* Test method, calls http endpoint
|
@@ -514,6 +585,22 @@ class ClientVault {
|
|
514
585
|
}
|
515
586
|
module.exports.ClientVault = ClientVault;
|
516
587
|
|
588
|
+
module.exports.__wbindgen_string_new = function (arg0, arg1) {
|
589
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
590
|
+
return addHeapObject(ret);
|
591
|
+
};
|
592
|
+
|
593
|
+
module.exports.__wbg_get_ef828680c64da212 = function () {
|
594
|
+
return handleError(function (arg0, arg1) {
|
595
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
596
|
+
return addHeapObject(ret);
|
597
|
+
}, arguments);
|
598
|
+
};
|
599
|
+
|
600
|
+
module.exports.__wbindgen_object_drop_ref = function (arg0) {
|
601
|
+
takeObject(arg0);
|
602
|
+
};
|
603
|
+
|
517
604
|
module.exports.__wbindgen_string_get = function (arg0, arg1) {
|
518
605
|
const obj = getObject(arg1);
|
519
606
|
const ret = typeof obj === "string" ? obj : undefined;
|
@@ -525,8 +612,46 @@ module.exports.__wbindgen_string_get = function (arg0, arg1) {
|
|
525
612
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
526
613
|
};
|
527
614
|
|
528
|
-
module.exports.
|
529
|
-
|
615
|
+
module.exports.__wbg_new_fe19e4f3db5c3999 = function (arg0, arg1) {
|
616
|
+
let deferred0_0;
|
617
|
+
let deferred0_1;
|
618
|
+
try {
|
619
|
+
deferred0_0 = arg0;
|
620
|
+
deferred0_1 = arg1;
|
621
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
622
|
+
return addHeapObject(ret);
|
623
|
+
} finally {
|
624
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
625
|
+
}
|
626
|
+
};
|
627
|
+
|
628
|
+
module.exports.__wbg_setname_46d623c31ae39910 = function (arg0, arg1, arg2) {
|
629
|
+
let deferred0_0;
|
630
|
+
let deferred0_1;
|
631
|
+
try {
|
632
|
+
deferred0_0 = arg1;
|
633
|
+
deferred0_1 = arg2;
|
634
|
+
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
635
|
+
} finally {
|
636
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
637
|
+
}
|
638
|
+
};
|
639
|
+
|
640
|
+
module.exports.__wbg_setvariant_262a12673324f71b = function (arg0, arg1, arg2) {
|
641
|
+
let deferred0_0;
|
642
|
+
let deferred0_1;
|
643
|
+
try {
|
644
|
+
deferred0_0 = arg1;
|
645
|
+
deferred0_1 = arg2;
|
646
|
+
getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
|
647
|
+
} finally {
|
648
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
649
|
+
}
|
650
|
+
};
|
651
|
+
|
652
|
+
module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
|
653
|
+
const ret = getObject(arg0) == getObject(arg1);
|
654
|
+
return ret;
|
530
655
|
};
|
531
656
|
|
532
657
|
module.exports.__wbindgen_is_object = function (arg0) {
|
@@ -585,6 +710,13 @@ module.exports.__wbindgen_object_clone_ref = function (arg0) {
|
|
585
710
|
return addHeapObject(ret);
|
586
711
|
};
|
587
712
|
|
713
|
+
module.exports.__wbg_call_3bfa248576352471 = function () {
|
714
|
+
return handleError(function (arg0, arg1, arg2) {
|
715
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
716
|
+
return addHeapObject(ret);
|
717
|
+
}, arguments);
|
718
|
+
};
|
719
|
+
|
588
720
|
module.exports.__wbg_next_b06e115d1b01e10b = function () {
|
589
721
|
return handleError(function (arg0) {
|
590
722
|
const ret = getObject(arg0).next();
|
@@ -602,26 +734,6 @@ module.exports.__wbg_value_2ab8a198c834c26a = function (arg0) {
|
|
602
734
|
return addHeapObject(ret);
|
603
735
|
};
|
604
736
|
|
605
|
-
module.exports.__wbg_new_d48ced41df4743c1 = function (arg0, arg1) {
|
606
|
-
let deferred0_0;
|
607
|
-
let deferred0_1;
|
608
|
-
try {
|
609
|
-
deferred0_0 = arg0;
|
610
|
-
deferred0_1 = arg1;
|
611
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
612
|
-
return addHeapObject(ret);
|
613
|
-
} finally {
|
614
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
615
|
-
}
|
616
|
-
};
|
617
|
-
|
618
|
-
module.exports.__wbg_call_3bfa248576352471 = function () {
|
619
|
-
return handleError(function (arg0, arg1, arg2) {
|
620
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
621
|
-
return addHeapObject(ret);
|
622
|
-
}, arguments);
|
623
|
-
};
|
624
|
-
|
625
737
|
module.exports.__wbg_new_e69b5f66fda8f13c = function () {
|
626
738
|
const ret = new Object();
|
627
739
|
return addHeapObject(ret);
|
@@ -716,16 +828,6 @@ module.exports.__wbg_text_ebeee8b31af4c919 = function () {
|
|
716
828
|
}, arguments);
|
717
829
|
};
|
718
830
|
|
719
|
-
module.exports.__wbindgen_string_new = function (arg0, arg1) {
|
720
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
721
|
-
return addHeapObject(ret);
|
722
|
-
};
|
723
|
-
|
724
|
-
module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
|
725
|
-
const ret = getObject(arg0) == getObject(arg1);
|
726
|
-
return ret;
|
727
|
-
};
|
728
|
-
|
729
831
|
module.exports.__wbindgen_cb_drop = function (arg0) {
|
730
832
|
const obj = takeObject(arg0).original;
|
731
833
|
if (obj.cnt-- == 1) {
|
@@ -748,7 +850,7 @@ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
|
|
748
850
|
const a = state0.a;
|
749
851
|
state0.a = 0;
|
750
852
|
try {
|
751
|
-
return
|
853
|
+
return __wbg_adapter_125(a, state0.b, arg0, arg1);
|
752
854
|
} finally {
|
753
855
|
state0.a = a;
|
754
856
|
}
|
@@ -789,6 +891,89 @@ module.exports.__wbg_error_f851667af71bcfc6 = function (arg0, arg1) {
|
|
789
891
|
}
|
790
892
|
};
|
791
893
|
|
894
|
+
module.exports.__wbg_crypto_1d1f22824a6a080c = function (arg0) {
|
895
|
+
const ret = getObject(arg0).crypto;
|
896
|
+
return addHeapObject(ret);
|
897
|
+
};
|
898
|
+
|
899
|
+
module.exports.__wbg_process_4a72847cc503995b = function (arg0) {
|
900
|
+
const ret = getObject(arg0).process;
|
901
|
+
return addHeapObject(ret);
|
902
|
+
};
|
903
|
+
|
904
|
+
module.exports.__wbg_versions_f686565e586dd935 = function (arg0) {
|
905
|
+
const ret = getObject(arg0).versions;
|
906
|
+
return addHeapObject(ret);
|
907
|
+
};
|
908
|
+
|
909
|
+
module.exports.__wbg_node_104a2ff8d6ea03a2 = function (arg0) {
|
910
|
+
const ret = getObject(arg0).node;
|
911
|
+
return addHeapObject(ret);
|
912
|
+
};
|
913
|
+
|
914
|
+
module.exports.__wbg_require_cca90b1a94a0255b = function () {
|
915
|
+
return handleError(function () {
|
916
|
+
const ret = module.require;
|
917
|
+
return addHeapObject(ret);
|
918
|
+
}, arguments);
|
919
|
+
};
|
920
|
+
|
921
|
+
module.exports.__wbindgen_is_function = function (arg0) {
|
922
|
+
const ret = typeof getObject(arg0) === "function";
|
923
|
+
return ret;
|
924
|
+
};
|
925
|
+
|
926
|
+
module.exports.__wbg_msCrypto_eb05e62b530a1508 = function (arg0) {
|
927
|
+
const ret = getObject(arg0).msCrypto;
|
928
|
+
return addHeapObject(ret);
|
929
|
+
};
|
930
|
+
|
931
|
+
module.exports.__wbg_newwithlength_76462a666eca145f = function (arg0) {
|
932
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
933
|
+
return addHeapObject(ret);
|
934
|
+
};
|
935
|
+
|
936
|
+
module.exports.__wbindgen_memory = function () {
|
937
|
+
const ret = wasm.memory;
|
938
|
+
return addHeapObject(ret);
|
939
|
+
};
|
940
|
+
|
941
|
+
module.exports.__wbg_buffer_ccaed51a635d8a2d = function (arg0) {
|
942
|
+
const ret = getObject(arg0).buffer;
|
943
|
+
return addHeapObject(ret);
|
944
|
+
};
|
945
|
+
|
946
|
+
module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function (arg0, arg1, arg2) {
|
947
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
948
|
+
return addHeapObject(ret);
|
949
|
+
};
|
950
|
+
|
951
|
+
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function () {
|
952
|
+
return handleError(function (arg0, arg1) {
|
953
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
954
|
+
}, arguments);
|
955
|
+
};
|
956
|
+
|
957
|
+
module.exports.__wbg_subarray_975a06f9dbd16995 = function (arg0, arg1, arg2) {
|
958
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
959
|
+
return addHeapObject(ret);
|
960
|
+
};
|
961
|
+
|
962
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function () {
|
963
|
+
return handleError(function (arg0, arg1) {
|
964
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
965
|
+
}, arguments);
|
966
|
+
};
|
967
|
+
|
968
|
+
module.exports.__wbg_new_fec2611eb9180f95 = function (arg0) {
|
969
|
+
const ret = new Uint8Array(getObject(arg0));
|
970
|
+
return addHeapObject(ret);
|
971
|
+
};
|
972
|
+
|
973
|
+
module.exports.__wbg_set_ec2fcf81bc573fd9 = function (arg0, arg1, arg2) {
|
974
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
975
|
+
};
|
976
|
+
|
792
977
|
module.exports.__wbg_self_bf91bf94d9e04084 = function () {
|
793
978
|
return handleError(function () {
|
794
979
|
const ret = self.self;
|
@@ -834,18 +1019,6 @@ module.exports.__wbg_iterator_695d699a44d6234c = function () {
|
|
834
1019
|
return addHeapObject(ret);
|
835
1020
|
};
|
836
1021
|
|
837
|
-
module.exports.__wbg_get_ef828680c64da212 = function () {
|
838
|
-
return handleError(function (arg0, arg1) {
|
839
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
840
|
-
return addHeapObject(ret);
|
841
|
-
}, arguments);
|
842
|
-
};
|
843
|
-
|
844
|
-
module.exports.__wbindgen_is_function = function (arg0) {
|
845
|
-
const ret = typeof getObject(arg0) === "function";
|
846
|
-
return ret;
|
847
|
-
};
|
848
|
-
|
849
1022
|
module.exports.__wbg_next_13b477da1eaa3897 = function (arg0) {
|
850
1023
|
const ret = getObject(arg0).next;
|
851
1024
|
return addHeapObject(ret);
|
@@ -899,35 +1072,11 @@ module.exports.__wbg_then_4866a7d9f55d8f3e = function (arg0, arg1, arg2) {
|
|
899
1072
|
return addHeapObject(ret);
|
900
1073
|
};
|
901
1074
|
|
902
|
-
module.exports.__wbindgen_memory = function () {
|
903
|
-
const ret = wasm.memory;
|
904
|
-
return addHeapObject(ret);
|
905
|
-
};
|
906
|
-
|
907
|
-
module.exports.__wbg_buffer_ccaed51a635d8a2d = function (arg0) {
|
908
|
-
const ret = getObject(arg0).buffer;
|
909
|
-
return addHeapObject(ret);
|
910
|
-
};
|
911
|
-
|
912
|
-
module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function (arg0, arg1, arg2) {
|
913
|
-
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
914
|
-
return addHeapObject(ret);
|
915
|
-
};
|
916
|
-
|
917
1075
|
module.exports.__wbg_length_9254c4bd3b9f23c4 = function (arg0) {
|
918
1076
|
const ret = getObject(arg0).length;
|
919
1077
|
return ret;
|
920
1078
|
};
|
921
1079
|
|
922
|
-
module.exports.__wbg_new_fec2611eb9180f95 = function (arg0) {
|
923
|
-
const ret = new Uint8Array(getObject(arg0));
|
924
|
-
return addHeapObject(ret);
|
925
|
-
};
|
926
|
-
|
927
|
-
module.exports.__wbg_set_ec2fcf81bc573fd9 = function (arg0, arg1, arg2) {
|
928
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
929
|
-
};
|
930
|
-
|
931
1080
|
module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function (arg0) {
|
932
1081
|
let result;
|
933
1082
|
try {
|
@@ -1065,8 +1214,8 @@ module.exports.__wbg_warn_2e2787d40aad9a81 = function (arg0, arg1, arg2, arg3) {
|
|
1065
1214
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
1066
1215
|
};
|
1067
1216
|
|
1068
|
-
module.exports.
|
1069
|
-
const ret = makeMutClosure(arg0, arg1,
|
1217
|
+
module.exports.__wbindgen_closure_wrapper1820 = function (arg0, arg1, arg2) {
|
1218
|
+
const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_38);
|
1070
1219
|
return addHeapObject(ret);
|
1071
1220
|
};
|
1072
1221
|
|
Binary file
|
@@ -1,15 +1,20 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
3
|
export const memory: WebAssembly.Memory;
|
4
|
+
export function isCoreError(a: number): number;
|
5
|
+
export function isEncryptionSettingsError(a: number): number;
|
6
|
+
export function isKeyGenerationError(a: number): number;
|
4
7
|
export function __wbg_bitwardenclient_free(a: number, b: number): void;
|
5
8
|
export function bitwardenclient_new(a: number, b: number): number;
|
6
9
|
export function bitwardenclient_echo(a: number, b: number, c: number, d: number): void;
|
7
10
|
export function bitwardenclient_version(a: number, b: number): void;
|
8
|
-
export function bitwardenclient_throw(a: number, b: number, c: number
|
11
|
+
export function bitwardenclient_throw(a: number, b: number, c: number): number;
|
9
12
|
export function bitwardenclient_http_get(a: number, b: number, c: number): number;
|
10
13
|
export function bitwardenclient_crypto(a: number): number;
|
14
|
+
export function isTestError(a: number): number;
|
11
15
|
export function clientcrypto_initialize_user_crypto(a: number, b: number): number;
|
12
16
|
export function clientcrypto_initialize_org_crypto(a: number, b: number): number;
|
17
|
+
export function generate_ssh_key(a: number, b: number): void;
|
13
18
|
export function clientfolders_decrypt(a: number, b: number, c: number): void;
|
14
19
|
export function __wbg_clientcrypto_free(a: number, b: number): void;
|
15
20
|
export function __wbg_clientfolders_free(a: number, b: number): void;
|
@@ -19,15 +24,15 @@ export function clientvault_folders(a: number): number;
|
|
19
24
|
export function __wbindgen_malloc(a: number, b: number): number;
|
20
25
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
21
26
|
export const __wbindgen_export_2: WebAssembly.Table;
|
22
|
-
export function
|
27
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha9b57bf10de48c08(
|
23
28
|
a: number,
|
24
29
|
b: number,
|
25
30
|
c: number,
|
26
31
|
): void;
|
27
|
-
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
28
32
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
33
|
+
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
29
34
|
export function __wbindgen_exn_store(a: number): void;
|
30
|
-
export function
|
35
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__hb7b08fa8b393e2e9(
|
31
36
|
a: number,
|
32
37
|
b: number,
|
33
38
|
c: number,
|