@bitwarden/sdk-internal 0.2.0-main.142 → 0.2.0-main.144
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 +134 -14
- package/bitwarden_wasm_internal_bg.js +151 -16
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +10 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +134 -14
- package/node/bitwarden_wasm_internal.js +152 -16
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +10 -4
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
202849503951de24a7b7487e9e97eff844346091
|
|
@@ -309,6 +309,96 @@ export interface CryptoError extends Error {
|
|
|
309
309
|
|
|
310
310
|
export function isCryptoError(error: any): error is CryptoError;
|
|
311
311
|
|
|
312
|
+
/**
|
|
313
|
+
* Password generator request options.
|
|
314
|
+
*/
|
|
315
|
+
export interface PasswordGeneratorRequest {
|
|
316
|
+
/**
|
|
317
|
+
* Include lowercase characters (a-z).
|
|
318
|
+
*/
|
|
319
|
+
lowercase: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Include uppercase characters (A-Z).
|
|
322
|
+
*/
|
|
323
|
+
uppercase: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* Include numbers (0-9).
|
|
326
|
+
*/
|
|
327
|
+
numbers: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Include special characters: ! @ # $ % ^ & *
|
|
330
|
+
*/
|
|
331
|
+
special: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* The length of the generated password.
|
|
334
|
+
* Note that the password length must be greater than the sum of all the minimums.
|
|
335
|
+
*/
|
|
336
|
+
length: number;
|
|
337
|
+
/**
|
|
338
|
+
* When set to true, the generated password will not contain ambiguous characters.
|
|
339
|
+
* The ambiguous characters are: I, O, l, 0, 1
|
|
340
|
+
*/
|
|
341
|
+
avoidAmbiguous: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* The minimum number of lowercase characters in the generated password.
|
|
344
|
+
* When set, the value must be between 1 and 9. This value is ignored if lowercase is false.
|
|
345
|
+
*/
|
|
346
|
+
minLowercase: number | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* The minimum number of uppercase characters in the generated password.
|
|
349
|
+
* When set, the value must be between 1 and 9. This value is ignored if uppercase is false.
|
|
350
|
+
*/
|
|
351
|
+
minUppercase: number | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* The minimum number of numbers in the generated password.
|
|
354
|
+
* When set, the value must be between 1 and 9. This value is ignored if numbers is false.
|
|
355
|
+
*/
|
|
356
|
+
minNumber: number | undefined;
|
|
357
|
+
/**
|
|
358
|
+
* The minimum number of special characters in the generated password.
|
|
359
|
+
* When set, the value must be between 1 and 9. This value is ignored if special is false.
|
|
360
|
+
*/
|
|
361
|
+
minSpecial: number | undefined;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface PasswordError extends Error {
|
|
365
|
+
name: "PasswordError";
|
|
366
|
+
variant: "NoCharacterSetEnabled" | "InvalidLength";
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export function isPasswordError(error: any): error is PasswordError;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Passphrase generator request options.
|
|
373
|
+
*/
|
|
374
|
+
export interface PassphraseGeneratorRequest {
|
|
375
|
+
/**
|
|
376
|
+
* Number of words in the generated passphrase.
|
|
377
|
+
* This value must be between 3 and 20.
|
|
378
|
+
*/
|
|
379
|
+
numWords: number;
|
|
380
|
+
/**
|
|
381
|
+
* Character separator between words in the generated passphrase. The value cannot be empty.
|
|
382
|
+
*/
|
|
383
|
+
wordSeparator: string;
|
|
384
|
+
/**
|
|
385
|
+
* When set to true, capitalize the first letter of each word in the generated passphrase.
|
|
386
|
+
*/
|
|
387
|
+
capitalize: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* When set to true, include a number at the end of one of the words in the generated
|
|
390
|
+
* passphrase.
|
|
391
|
+
*/
|
|
392
|
+
includeNumber: boolean;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export interface PassphraseError extends Error {
|
|
396
|
+
name: "PassphraseError";
|
|
397
|
+
variant: "InvalidNumWords";
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export function isPassphraseError(error: any): error is PassphraseError;
|
|
401
|
+
|
|
312
402
|
export type Endpoint =
|
|
313
403
|
| { Web: { id: number } }
|
|
314
404
|
| "BrowserForeground"
|
|
@@ -582,20 +672,6 @@ export interface FolderView {
|
|
|
582
672
|
revisionDate: DateTime<Utc>;
|
|
583
673
|
}
|
|
584
674
|
|
|
585
|
-
export interface DecryptFileError extends Error {
|
|
586
|
-
name: "DecryptFileError";
|
|
587
|
-
variant: "Decrypt" | "Io";
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
export function isDecryptFileError(error: any): error is DecryptFileError;
|
|
591
|
-
|
|
592
|
-
export interface EncryptFileError extends Error {
|
|
593
|
-
name: "EncryptFileError";
|
|
594
|
-
variant: "Encrypt" | "Io";
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
export function isEncryptFileError(error: any): error is EncryptFileError;
|
|
598
|
-
|
|
599
675
|
export interface DecryptError extends Error {
|
|
600
676
|
name: "DecryptError";
|
|
601
677
|
variant: "Crypto" | "VaultLocked";
|
|
@@ -750,6 +826,20 @@ export interface Card {
|
|
|
750
826
|
number: EncString | undefined;
|
|
751
827
|
}
|
|
752
828
|
|
|
829
|
+
export interface DecryptFileError extends Error {
|
|
830
|
+
name: "DecryptFileError";
|
|
831
|
+
variant: "Decrypt" | "Io";
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export function isDecryptFileError(error: any): error is DecryptFileError;
|
|
835
|
+
|
|
836
|
+
export interface EncryptFileError extends Error {
|
|
837
|
+
name: "EncryptFileError";
|
|
838
|
+
variant: "Encrypt" | "Io";
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export function isEncryptFileError(error: any): error is EncryptFileError;
|
|
842
|
+
|
|
753
843
|
export interface AttachmentView {
|
|
754
844
|
id: string | undefined;
|
|
755
845
|
url: string | undefined;
|
|
@@ -810,6 +900,10 @@ export class BitwardenClient {
|
|
|
810
900
|
http_get(url: string): Promise<string>;
|
|
811
901
|
crypto(): CryptoClient;
|
|
812
902
|
vault(): VaultClient;
|
|
903
|
+
/**
|
|
904
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
905
|
+
*/
|
|
906
|
+
generator(): GeneratorClient;
|
|
813
907
|
}
|
|
814
908
|
export class ClientCiphers {
|
|
815
909
|
private constructor();
|
|
@@ -925,6 +1019,32 @@ export class CryptoClient {
|
|
|
925
1019
|
*/
|
|
926
1020
|
verify_asymmetric_keys(request: VerifyAsymmetricKeysRequest): VerifyAsymmetricKeysResponse;
|
|
927
1021
|
}
|
|
1022
|
+
export class GeneratorClient {
|
|
1023
|
+
private constructor();
|
|
1024
|
+
free(): void;
|
|
1025
|
+
/**
|
|
1026
|
+
* Generates a password from a provided request
|
|
1027
|
+
*
|
|
1028
|
+
* # Arguments
|
|
1029
|
+
* - `request` - Settings for the character sets and password length
|
|
1030
|
+
*
|
|
1031
|
+
* # Returns
|
|
1032
|
+
* - `Ok(String)` containing the generated password
|
|
1033
|
+
* - `Err(PasswordError)` if password generation fails
|
|
1034
|
+
*/
|
|
1035
|
+
password(request: PasswordGeneratorRequest): string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Generates a passphrase from a provided request
|
|
1038
|
+
*
|
|
1039
|
+
* # Arguments
|
|
1040
|
+
* - `request` - Settings for the word count, word separators character sets
|
|
1041
|
+
*
|
|
1042
|
+
* # Returns
|
|
1043
|
+
* - `Ok(String)` containing the generated passphrase
|
|
1044
|
+
* - `Err(PassphraseError)` if passphrase generation fails
|
|
1045
|
+
*/
|
|
1046
|
+
passphrase(request: PassphraseGeneratorRequest): string;
|
|
1047
|
+
}
|
|
928
1048
|
export class IncomingMessage {
|
|
929
1049
|
free(): void;
|
|
930
1050
|
constructor(payload: Uint8Array, destination: Endpoint, source: Endpoint, topic?: string | null);
|
|
@@ -272,6 +272,32 @@ export function isCryptoError(error) {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @param {any} error
|
|
277
|
+
* @returns {boolean}
|
|
278
|
+
*/
|
|
279
|
+
export function isPasswordError(error) {
|
|
280
|
+
try {
|
|
281
|
+
const ret = wasm.isPasswordError(addBorrowedObject(error));
|
|
282
|
+
return ret !== 0;
|
|
283
|
+
} finally {
|
|
284
|
+
heap[stack_pointer++] = undefined;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @param {any} error
|
|
290
|
+
* @returns {boolean}
|
|
291
|
+
*/
|
|
292
|
+
export function isPassphraseError(error) {
|
|
293
|
+
try {
|
|
294
|
+
const ret = wasm.isPassphraseError(addBorrowedObject(error));
|
|
295
|
+
return ret !== 0;
|
|
296
|
+
} finally {
|
|
297
|
+
heap[stack_pointer++] = undefined;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
275
301
|
function getArrayU8FromWasm0(ptr, len) {
|
|
276
302
|
ptr = ptr >>> 0;
|
|
277
303
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -345,9 +371,9 @@ export function isKeyGenerationError(error) {
|
|
|
345
371
|
* @param {any} error
|
|
346
372
|
* @returns {boolean}
|
|
347
373
|
*/
|
|
348
|
-
export function
|
|
374
|
+
export function isDecryptError(error) {
|
|
349
375
|
try {
|
|
350
|
-
const ret = wasm.
|
|
376
|
+
const ret = wasm.isDecryptError(addBorrowedObject(error));
|
|
351
377
|
return ret !== 0;
|
|
352
378
|
} finally {
|
|
353
379
|
heap[stack_pointer++] = undefined;
|
|
@@ -358,9 +384,9 @@ export function isDecryptFileError(error) {
|
|
|
358
384
|
* @param {any} error
|
|
359
385
|
* @returns {boolean}
|
|
360
386
|
*/
|
|
361
|
-
export function
|
|
387
|
+
export function isEncryptError(error) {
|
|
362
388
|
try {
|
|
363
|
-
const ret = wasm.
|
|
389
|
+
const ret = wasm.isEncryptError(addBorrowedObject(error));
|
|
364
390
|
return ret !== 0;
|
|
365
391
|
} finally {
|
|
366
392
|
heap[stack_pointer++] = undefined;
|
|
@@ -371,9 +397,9 @@ export function isEncryptFileError(error) {
|
|
|
371
397
|
* @param {any} error
|
|
372
398
|
* @returns {boolean}
|
|
373
399
|
*/
|
|
374
|
-
export function
|
|
400
|
+
export function isTotpError(error) {
|
|
375
401
|
try {
|
|
376
|
-
const ret = wasm.
|
|
402
|
+
const ret = wasm.isTotpError(addBorrowedObject(error));
|
|
377
403
|
return ret !== 0;
|
|
378
404
|
} finally {
|
|
379
405
|
heap[stack_pointer++] = undefined;
|
|
@@ -384,9 +410,9 @@ export function isDecryptError(error) {
|
|
|
384
410
|
* @param {any} error
|
|
385
411
|
* @returns {boolean}
|
|
386
412
|
*/
|
|
387
|
-
export function
|
|
413
|
+
export function isCipherError(error) {
|
|
388
414
|
try {
|
|
389
|
-
const ret = wasm.
|
|
415
|
+
const ret = wasm.isCipherError(addBorrowedObject(error));
|
|
390
416
|
return ret !== 0;
|
|
391
417
|
} finally {
|
|
392
418
|
heap[stack_pointer++] = undefined;
|
|
@@ -397,9 +423,9 @@ export function isEncryptError(error) {
|
|
|
397
423
|
* @param {any} error
|
|
398
424
|
* @returns {boolean}
|
|
399
425
|
*/
|
|
400
|
-
export function
|
|
426
|
+
export function isDecryptFileError(error) {
|
|
401
427
|
try {
|
|
402
|
-
const ret = wasm.
|
|
428
|
+
const ret = wasm.isDecryptFileError(addBorrowedObject(error));
|
|
403
429
|
return ret !== 0;
|
|
404
430
|
} finally {
|
|
405
431
|
heap[stack_pointer++] = undefined;
|
|
@@ -410,9 +436,9 @@ export function isTotpError(error) {
|
|
|
410
436
|
* @param {any} error
|
|
411
437
|
* @returns {boolean}
|
|
412
438
|
*/
|
|
413
|
-
export function
|
|
439
|
+
export function isEncryptFileError(error) {
|
|
414
440
|
try {
|
|
415
|
-
const ret = wasm.
|
|
441
|
+
const ret = wasm.isEncryptFileError(addBorrowedObject(error));
|
|
416
442
|
return ret !== 0;
|
|
417
443
|
} finally {
|
|
418
444
|
heap[stack_pointer++] = undefined;
|
|
@@ -541,7 +567,7 @@ function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
|
541
567
|
);
|
|
542
568
|
}
|
|
543
569
|
|
|
544
|
-
function
|
|
570
|
+
function __wbg_adapter_222(arg0, arg1, arg2, arg3) {
|
|
545
571
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h33defb2ea0fdb769(
|
|
546
572
|
arg0,
|
|
547
573
|
arg1,
|
|
@@ -811,6 +837,14 @@ export class BitwardenClient {
|
|
|
811
837
|
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
|
812
838
|
return VaultClient.__wrap(ret);
|
|
813
839
|
}
|
|
840
|
+
/**
|
|
841
|
+
* Constructs a specific client for generating passwords and passphrases
|
|
842
|
+
* @returns {GeneratorClient}
|
|
843
|
+
*/
|
|
844
|
+
generator() {
|
|
845
|
+
const ret = wasm.bitwardenclient_generator(this.__wbg_ptr);
|
|
846
|
+
return GeneratorClient.__wrap(ret);
|
|
847
|
+
}
|
|
814
848
|
}
|
|
815
849
|
|
|
816
850
|
const ClientCiphersFinalization =
|
|
@@ -1211,6 +1245,107 @@ export class CryptoClient {
|
|
|
1211
1245
|
}
|
|
1212
1246
|
}
|
|
1213
1247
|
|
|
1248
|
+
const GeneratorClientFinalization =
|
|
1249
|
+
typeof FinalizationRegistry === "undefined"
|
|
1250
|
+
? { register: () => {}, unregister: () => {} }
|
|
1251
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_generatorclient_free(ptr >>> 0, 1));
|
|
1252
|
+
|
|
1253
|
+
export class GeneratorClient {
|
|
1254
|
+
static __wrap(ptr) {
|
|
1255
|
+
ptr = ptr >>> 0;
|
|
1256
|
+
const obj = Object.create(GeneratorClient.prototype);
|
|
1257
|
+
obj.__wbg_ptr = ptr;
|
|
1258
|
+
GeneratorClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1259
|
+
return obj;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
__destroy_into_raw() {
|
|
1263
|
+
const ptr = this.__wbg_ptr;
|
|
1264
|
+
this.__wbg_ptr = 0;
|
|
1265
|
+
GeneratorClientFinalization.unregister(this);
|
|
1266
|
+
return ptr;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
free() {
|
|
1270
|
+
const ptr = this.__destroy_into_raw();
|
|
1271
|
+
wasm.__wbg_generatorclient_free(ptr, 0);
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Generates a password from a provided request
|
|
1275
|
+
*
|
|
1276
|
+
* # Arguments
|
|
1277
|
+
* - `request` - Settings for the character sets and password length
|
|
1278
|
+
*
|
|
1279
|
+
* # Returns
|
|
1280
|
+
* - `Ok(String)` containing the generated password
|
|
1281
|
+
* - `Err(PasswordError)` if password generation fails
|
|
1282
|
+
* @param {PasswordGeneratorRequest} request
|
|
1283
|
+
* @returns {string}
|
|
1284
|
+
*/
|
|
1285
|
+
password(request) {
|
|
1286
|
+
let deferred2_0;
|
|
1287
|
+
let deferred2_1;
|
|
1288
|
+
try {
|
|
1289
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1290
|
+
wasm.generatorclient_password(retptr, this.__wbg_ptr, addHeapObject(request));
|
|
1291
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1292
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1293
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1294
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1295
|
+
var ptr1 = r0;
|
|
1296
|
+
var len1 = r1;
|
|
1297
|
+
if (r3) {
|
|
1298
|
+
ptr1 = 0;
|
|
1299
|
+
len1 = 0;
|
|
1300
|
+
throw takeObject(r2);
|
|
1301
|
+
}
|
|
1302
|
+
deferred2_0 = ptr1;
|
|
1303
|
+
deferred2_1 = len1;
|
|
1304
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1305
|
+
} finally {
|
|
1306
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1307
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Generates a passphrase from a provided request
|
|
1312
|
+
*
|
|
1313
|
+
* # Arguments
|
|
1314
|
+
* - `request` - Settings for the word count, word separators character sets
|
|
1315
|
+
*
|
|
1316
|
+
* # Returns
|
|
1317
|
+
* - `Ok(String)` containing the generated passphrase
|
|
1318
|
+
* - `Err(PassphraseError)` if passphrase generation fails
|
|
1319
|
+
* @param {PassphraseGeneratorRequest} request
|
|
1320
|
+
* @returns {string}
|
|
1321
|
+
*/
|
|
1322
|
+
passphrase(request) {
|
|
1323
|
+
let deferred2_0;
|
|
1324
|
+
let deferred2_1;
|
|
1325
|
+
try {
|
|
1326
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1327
|
+
wasm.generatorclient_passphrase(retptr, this.__wbg_ptr, addHeapObject(request));
|
|
1328
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1329
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1330
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1331
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1332
|
+
var ptr1 = r0;
|
|
1333
|
+
var len1 = r1;
|
|
1334
|
+
if (r3) {
|
|
1335
|
+
ptr1 = 0;
|
|
1336
|
+
len1 = 0;
|
|
1337
|
+
throw takeObject(r2);
|
|
1338
|
+
}
|
|
1339
|
+
deferred2_0 = ptr1;
|
|
1340
|
+
deferred2_1 = len1;
|
|
1341
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1342
|
+
} finally {
|
|
1343
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1344
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1214
1349
|
const IncomingMessageFinalization =
|
|
1215
1350
|
typeof FinalizationRegistry === "undefined"
|
|
1216
1351
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2127,7 +2262,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
2127
2262
|
const a = state0.a;
|
|
2128
2263
|
state0.a = 0;
|
|
2129
2264
|
try {
|
|
2130
|
-
return
|
|
2265
|
+
return __wbg_adapter_222(a, state0.b, arg0, arg1);
|
|
2131
2266
|
} finally {
|
|
2132
2267
|
state0.a = a;
|
|
2133
2268
|
}
|
|
@@ -2496,8 +2631,8 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
2496
2631
|
return ret;
|
|
2497
2632
|
}
|
|
2498
2633
|
|
|
2499
|
-
export function
|
|
2500
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2634
|
+
export function __wbindgen_closure_wrapper2606(arg0, arg1, arg2) {
|
|
2635
|
+
const ret = makeMutClosure(arg0, arg1, 642, __wbg_adapter_50);
|
|
2501
2636
|
return addHeapObject(ret);
|
|
2502
2637
|
}
|
|
2503
2638
|
|
|
Binary file
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const isEncryptionSettingsError: (a: number) => number;
|
|
5
5
|
export const isCryptoError: (a: number) => number;
|
|
6
|
+
export const isPasswordError: (a: number) => number;
|
|
7
|
+
export const isPassphraseError: (a: number) => number;
|
|
6
8
|
export const __wbg_outgoingmessage_free: (a: number, b: number) => void;
|
|
7
9
|
export const __wbg_get_outgoingmessage_payload: (a: number, b: number) => void;
|
|
8
10
|
export const __wbg_set_outgoingmessage_payload: (a: number, b: number, c: number) => void;
|
|
@@ -56,12 +58,12 @@ export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => vo
|
|
|
56
58
|
export const isSshKeyExportError: (a: number) => number;
|
|
57
59
|
export const isSshKeyImportError: (a: number) => number;
|
|
58
60
|
export const isKeyGenerationError: (a: number) => number;
|
|
59
|
-
export const isDecryptFileError: (a: number) => number;
|
|
60
|
-
export const isEncryptFileError: (a: number) => number;
|
|
61
61
|
export const isDecryptError: (a: number) => number;
|
|
62
62
|
export const isEncryptError: (a: number) => number;
|
|
63
63
|
export const isTotpError: (a: number) => number;
|
|
64
64
|
export const isCipherError: (a: number) => number;
|
|
65
|
+
export const isDecryptFileError: (a: number) => number;
|
|
66
|
+
export const isEncryptFileError: (a: number) => number;
|
|
65
67
|
export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
|
|
66
68
|
export const bitwardenclient_new: (a: number) => number;
|
|
67
69
|
export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -69,10 +71,13 @@ export const bitwardenclient_version: (a: number, b: number) => void;
|
|
|
69
71
|
export const bitwardenclient_throw: (a: number, b: number, c: number, d: number) => void;
|
|
70
72
|
export const bitwardenclient_http_get: (a: number, b: number, c: number) => number;
|
|
71
73
|
export const bitwardenclient_crypto: (a: number) => number;
|
|
74
|
+
export const bitwardenclient_generator: (a: number) => number;
|
|
72
75
|
export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
|
|
73
76
|
export const cryptoclient_initialize_org_crypto: (a: number, b: number) => number;
|
|
74
77
|
export const cryptoclient_make_key_pair: (a: number, b: number, c: number, d: number) => void;
|
|
75
78
|
export const cryptoclient_verify_asymmetric_keys: (a: number, b: number, c: number) => void;
|
|
79
|
+
export const generatorclient_password: (a: number, b: number, c: number) => void;
|
|
80
|
+
export const generatorclient_passphrase: (a: number, b: number, c: number) => void;
|
|
76
81
|
export const set_log_level: (a: number) => void;
|
|
77
82
|
export const init_sdk: (a: number) => void;
|
|
78
83
|
export const __wbg_purecrypto_free: (a: number, b: number) => void;
|
|
@@ -133,10 +138,11 @@ export const vaultclient_totp: (a: number) => number;
|
|
|
133
138
|
export const isTestError: (a: number) => number;
|
|
134
139
|
export const bitwardenclient_vault: (a: number) => number;
|
|
135
140
|
export const vaultclient_folders: (a: number) => number;
|
|
136
|
-
export const
|
|
141
|
+
export const __wbg_generatorclient_free: (a: number, b: number) => void;
|
|
142
|
+
export const __wbg_vaultclient_free: (a: number, b: number) => void;
|
|
137
143
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
144
|
+
export const __wbg_clienttotp_free: (a: number, b: number) => void;
|
|
138
145
|
export const __wbg_clientfolders_free: (a: number, b: number) => void;
|
|
139
|
-
export const __wbg_vaultclient_free: (a: number, b: number) => void;
|
|
140
146
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
141
147
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
142
148
|
export const __wbindgen_exn_store: (a: number) => void;
|