@bitwarden/sdk-internal 0.2.0-main.295 → 0.2.0-main.297
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 +20 -27
- package/bitwarden_wasm_internal_bg.js +28 -28
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +20 -27
- package/node/bitwarden_wasm_internal.js +28 -28
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
31b18f02ec8f5713133ea67d42993c12c5923782
|
|
@@ -469,21 +469,21 @@ export function isDeriveKeyConnectorError(error: any): error is DeriveKeyConnect
|
|
|
469
469
|
|
|
470
470
|
export interface EnrollAdminPasswordResetError extends Error {
|
|
471
471
|
name: "EnrollAdminPasswordResetError";
|
|
472
|
-
variant: "
|
|
472
|
+
variant: "Crypto";
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
export function isEnrollAdminPasswordResetError(error: any): error is EnrollAdminPasswordResetError;
|
|
476
476
|
|
|
477
477
|
export interface CryptoClientError extends Error {
|
|
478
478
|
name: "CryptoClientError";
|
|
479
|
-
variant: "NotAuthenticated" | "
|
|
479
|
+
variant: "NotAuthenticated" | "Crypto" | "PasswordProtectedKeyEnvelope";
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
export function isCryptoClientError(error: any): error is CryptoClientError;
|
|
483
483
|
|
|
484
484
|
export interface StatefulCryptoError extends Error {
|
|
485
485
|
name: "StatefulCryptoError";
|
|
486
|
-
variant: "MissingSecurityState" | "WrongAccountCryptoVersion" | "
|
|
486
|
+
variant: "MissingSecurityState" | "WrongAccountCryptoVersion" | "Crypto";
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
export function isStatefulCryptoError(error: any): error is StatefulCryptoError;
|
|
@@ -492,12 +492,11 @@ export interface EncryptionSettingsError extends Error {
|
|
|
492
492
|
name: "EncryptionSettingsError";
|
|
493
493
|
variant:
|
|
494
494
|
| "Crypto"
|
|
495
|
-
| "VaultLocked"
|
|
496
495
|
| "InvalidPrivateKey"
|
|
497
496
|
| "InvalidSigningKey"
|
|
498
497
|
| "InvalidSecurityState"
|
|
499
498
|
| "MissingPrivateKey"
|
|
500
|
-
| "
|
|
499
|
+
| "UserIdAlreadySet"
|
|
501
500
|
| "WrongPin";
|
|
502
501
|
}
|
|
503
502
|
|
|
@@ -603,8 +602,8 @@ export interface CryptoError extends Error {
|
|
|
603
602
|
| "ReadOnlyKeyStore"
|
|
604
603
|
| "InsufficientKdfParameters"
|
|
605
604
|
| "EncString"
|
|
606
|
-
| "
|
|
607
|
-
| "
|
|
605
|
+
| "Rsa"
|
|
606
|
+
| "Fingerprint"
|
|
608
607
|
| "ArgonError"
|
|
609
608
|
| "ZeroNumber"
|
|
610
609
|
| "OperationNotSupported"
|
|
@@ -612,8 +611,8 @@ export interface CryptoError extends Error {
|
|
|
612
611
|
| "WrongCoseKeyId"
|
|
613
612
|
| "InvalidNonceLength"
|
|
614
613
|
| "InvalidPadding"
|
|
615
|
-
| "
|
|
616
|
-
| "
|
|
614
|
+
| "Signature"
|
|
615
|
+
| "Encoding";
|
|
617
616
|
}
|
|
618
617
|
|
|
619
618
|
export function isCryptoError(error: any): error is CryptoError;
|
|
@@ -643,13 +642,12 @@ export interface ExportError extends Error {
|
|
|
643
642
|
variant:
|
|
644
643
|
| "MissingField"
|
|
645
644
|
| "NotAuthenticated"
|
|
646
|
-
| "VaultLocked"
|
|
647
645
|
| "Csv"
|
|
648
|
-
| "
|
|
646
|
+
| "Cxf"
|
|
649
647
|
| "Json"
|
|
650
|
-
| "
|
|
651
|
-
| "
|
|
652
|
-
| "
|
|
648
|
+
| "EncryptedJson"
|
|
649
|
+
| "BitwardenCrypto"
|
|
650
|
+
| "Cipher";
|
|
653
651
|
}
|
|
654
652
|
|
|
655
653
|
export function isExportError(error: any): error is ExportError;
|
|
@@ -801,7 +799,7 @@ export function isDeserializeError(error: any): error is DeserializeError;
|
|
|
801
799
|
|
|
802
800
|
export interface RequestError extends Error {
|
|
803
801
|
name: "RequestError";
|
|
804
|
-
variant: "Subscribe" | "Receive" | "Timeout" | "Send" | "
|
|
802
|
+
variant: "Subscribe" | "Receive" | "Timeout" | "Send" | "Rpc";
|
|
805
803
|
}
|
|
806
804
|
|
|
807
805
|
export function isRequestError(error: any): error is RequestError;
|
|
@@ -831,21 +829,21 @@ export type KeyAlgorithm = "Ed25519" | "Rsa3072" | "Rsa4096";
|
|
|
831
829
|
|
|
832
830
|
export interface SshKeyExportError extends Error {
|
|
833
831
|
name: "SshKeyExportError";
|
|
834
|
-
variant: "
|
|
832
|
+
variant: "KeyConversion";
|
|
835
833
|
}
|
|
836
834
|
|
|
837
835
|
export function isSshKeyExportError(error: any): error is SshKeyExportError;
|
|
838
836
|
|
|
839
837
|
export interface SshKeyImportError extends Error {
|
|
840
838
|
name: "SshKeyImportError";
|
|
841
|
-
variant: "
|
|
839
|
+
variant: "Parsing" | "PasswordRequired" | "WrongPassword" | "UnsupportedKeyType";
|
|
842
840
|
}
|
|
843
841
|
|
|
844
842
|
export function isSshKeyImportError(error: any): error is SshKeyImportError;
|
|
845
843
|
|
|
846
844
|
export interface KeyGenerationError extends Error {
|
|
847
845
|
name: "KeyGenerationError";
|
|
848
|
-
variant: "
|
|
846
|
+
variant: "KeyGeneration" | "KeyConversion";
|
|
849
847
|
}
|
|
850
848
|
|
|
851
849
|
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
|
@@ -1201,14 +1199,14 @@ export interface FolderView {
|
|
|
1201
1199
|
|
|
1202
1200
|
export interface DecryptError extends Error {
|
|
1203
1201
|
name: "DecryptError";
|
|
1204
|
-
variant: "Crypto"
|
|
1202
|
+
variant: "Crypto";
|
|
1205
1203
|
}
|
|
1206
1204
|
|
|
1207
1205
|
export function isDecryptError(error: any): error is DecryptError;
|
|
1208
1206
|
|
|
1209
1207
|
export interface EncryptError extends Error {
|
|
1210
1208
|
name: "EncryptError";
|
|
1211
|
-
variant: "Crypto" | "
|
|
1209
|
+
variant: "Crypto" | "MissingUserId";
|
|
1212
1210
|
}
|
|
1213
1211
|
|
|
1214
1212
|
export function isEncryptError(error: any): error is EncryptError;
|
|
@@ -1226,7 +1224,7 @@ export interface TotpResponse {
|
|
|
1226
1224
|
|
|
1227
1225
|
export interface TotpError extends Error {
|
|
1228
1226
|
name: "TotpError";
|
|
1229
|
-
variant: "InvalidOtpauth" | "MissingSecret" | "
|
|
1227
|
+
variant: "InvalidOtpauth" | "MissingSecret" | "Crypto";
|
|
1230
1228
|
}
|
|
1231
1229
|
|
|
1232
1230
|
export function isTotpError(error: any): error is TotpError;
|
|
@@ -1358,12 +1356,7 @@ export interface CipherPermissions {
|
|
|
1358
1356
|
|
|
1359
1357
|
export interface CipherError extends Error {
|
|
1360
1358
|
name: "CipherError";
|
|
1361
|
-
variant:
|
|
1362
|
-
| "MissingFieldError"
|
|
1363
|
-
| "VaultLocked"
|
|
1364
|
-
| "CryptoError"
|
|
1365
|
-
| "EncryptError"
|
|
1366
|
-
| "AttachmentsWithoutKeys";
|
|
1359
|
+
variant: "MissingField" | "Crypto" | "Encrypt" | "AttachmentsWithoutKeys";
|
|
1367
1360
|
}
|
|
1368
1361
|
|
|
1369
1362
|
export function isCipherError(error: any): error is CipherError;
|
|
@@ -4060,14 +4060,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4060
4060
|
return ret;
|
|
4061
4061
|
}
|
|
4062
4062
|
|
|
4063
|
-
export function
|
|
4064
|
-
return handleError(function (arg0, arg1) {
|
|
4065
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4066
|
-
return addHeapObject(ret);
|
|
4067
|
-
}, arguments);
|
|
4068
|
-
}
|
|
4069
|
-
|
|
4070
|
-
export function __wbg_get_85a4a639023a3720() {
|
|
4063
|
+
export function __wbg_get_484769665c8b04d7() {
|
|
4071
4064
|
return handleError(function (arg0, arg1, arg2) {
|
|
4072
4065
|
let deferred0_0;
|
|
4073
4066
|
let deferred0_1;
|
|
@@ -4082,7 +4075,19 @@ export function __wbg_get_85a4a639023a3720() {
|
|
|
4082
4075
|
}, arguments);
|
|
4083
4076
|
}
|
|
4084
4077
|
|
|
4085
|
-
export function
|
|
4078
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
4079
|
+
return handleError(function (arg0, arg1) {
|
|
4080
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4081
|
+
return addHeapObject(ret);
|
|
4082
|
+
}, arguments);
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4085
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4086
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4087
|
+
return addHeapObject(ret);
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4090
|
+
export function __wbg_get_de8d5678adfaf755() {
|
|
4086
4091
|
return handleError(function (arg0, arg1, arg2) {
|
|
4087
4092
|
let deferred0_0;
|
|
4088
4093
|
let deferred0_1;
|
|
@@ -4097,12 +4102,7 @@ export function __wbg_get_8f76a18346df8dc8() {
|
|
|
4097
4102
|
}, arguments);
|
|
4098
4103
|
}
|
|
4099
4104
|
|
|
4100
|
-
export function
|
|
4101
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4102
|
-
return addHeapObject(ret);
|
|
4103
|
-
}
|
|
4104
|
-
|
|
4105
|
-
export function __wbg_getaccesstoken_f21f7d04dc08ee10(arg0) {
|
|
4105
|
+
export function __wbg_getaccesstoken_96168db7f6c5341e(arg0) {
|
|
4106
4106
|
const ret = getObject(arg0).get_access_token();
|
|
4107
4107
|
return addHeapObject(ret);
|
|
4108
4108
|
}
|
|
@@ -4287,14 +4287,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
4287
4287
|
return ret;
|
|
4288
4288
|
}
|
|
4289
4289
|
|
|
4290
|
-
export function
|
|
4290
|
+
export function __wbg_list_8f027b1e8d6eeabd() {
|
|
4291
4291
|
return handleError(function (arg0) {
|
|
4292
4292
|
const ret = getObject(arg0).list();
|
|
4293
4293
|
return addHeapObject(ret);
|
|
4294
4294
|
}, arguments);
|
|
4295
4295
|
}
|
|
4296
4296
|
|
|
4297
|
-
export function
|
|
4297
|
+
export function __wbg_list_dc4b0ecf24e8c2e6() {
|
|
4298
4298
|
return handleError(function (arg0) {
|
|
4299
4299
|
const ret = getObject(arg0).list();
|
|
4300
4300
|
return addHeapObject(ret);
|
|
@@ -4495,7 +4495,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
4495
4495
|
}, arguments);
|
|
4496
4496
|
}
|
|
4497
4497
|
|
|
4498
|
-
export function
|
|
4498
|
+
export function __wbg_remove_6a18bbab25f54853() {
|
|
4499
4499
|
return handleError(function (arg0, arg1, arg2) {
|
|
4500
4500
|
let deferred0_0;
|
|
4501
4501
|
let deferred0_1;
|
|
@@ -4510,7 +4510,7 @@ export function __wbg_remove_8505fd3c39475309() {
|
|
|
4510
4510
|
}, arguments);
|
|
4511
4511
|
}
|
|
4512
4512
|
|
|
4513
|
-
export function
|
|
4513
|
+
export function __wbg_remove_a2c151845405193a() {
|
|
4514
4514
|
return handleError(function (arg0, arg1, arg2) {
|
|
4515
4515
|
let deferred0_0;
|
|
4516
4516
|
let deferred0_1;
|
|
@@ -4568,12 +4568,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
|
4568
4568
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4569
4569
|
}
|
|
4570
4570
|
|
|
4571
|
-
export function
|
|
4572
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4573
|
-
return addHeapObject(ret);
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
|
-
export function __wbg_set_a6ed0666d14f7374() {
|
|
4571
|
+
export function __wbg_set_8136ddb4c6a06792() {
|
|
4577
4572
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4578
4573
|
let deferred0_0;
|
|
4579
4574
|
let deferred0_1;
|
|
@@ -4588,7 +4583,12 @@ export function __wbg_set_a6ed0666d14f7374() {
|
|
|
4588
4583
|
}, arguments);
|
|
4589
4584
|
}
|
|
4590
4585
|
|
|
4591
|
-
export function
|
|
4586
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4587
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4588
|
+
return addHeapObject(ret);
|
|
4589
|
+
}
|
|
4590
|
+
|
|
4591
|
+
export function __wbg_set_951bbfd8bc802f55() {
|
|
4592
4592
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4593
4593
|
let deferred0_0;
|
|
4594
4594
|
let deferred0_1;
|
|
@@ -4828,12 +4828,12 @@ export function __wbindgen_closure_wrapper3594(arg0, arg1, arg2) {
|
|
|
4828
4828
|
return addHeapObject(ret);
|
|
4829
4829
|
}
|
|
4830
4830
|
|
|
4831
|
-
export function
|
|
4831
|
+
export function __wbindgen_closure_wrapper5956(arg0, arg1, arg2) {
|
|
4832
4832
|
const ret = makeMutClosure(arg0, arg1, 315, __wbg_adapter_60);
|
|
4833
4833
|
return addHeapObject(ret);
|
|
4834
4834
|
}
|
|
4835
4835
|
|
|
4836
|
-
export function
|
|
4836
|
+
export function __wbindgen_closure_wrapper6337(arg0, arg1, arg2) {
|
|
4837
4837
|
const ret = makeMutClosure(arg0, arg1, 339, __wbg_adapter_54);
|
|
4838
4838
|
return addHeapObject(ret);
|
|
4839
4839
|
}
|
|
Binary file
|