@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
|
@@ -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;
|
|
@@ -4076,14 +4076,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4076
4076
|
return ret;
|
|
4077
4077
|
};
|
|
4078
4078
|
|
|
4079
|
-
module.exports.
|
|
4080
|
-
return handleError(function (arg0, arg1) {
|
|
4081
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4082
|
-
return addHeapObject(ret);
|
|
4083
|
-
}, arguments);
|
|
4084
|
-
};
|
|
4085
|
-
|
|
4086
|
-
module.exports.__wbg_get_85a4a639023a3720 = function () {
|
|
4079
|
+
module.exports.__wbg_get_484769665c8b04d7 = function () {
|
|
4087
4080
|
return handleError(function (arg0, arg1, arg2) {
|
|
4088
4081
|
let deferred0_0;
|
|
4089
4082
|
let deferred0_1;
|
|
@@ -4098,7 +4091,19 @@ module.exports.__wbg_get_85a4a639023a3720 = function () {
|
|
|
4098
4091
|
}, arguments);
|
|
4099
4092
|
};
|
|
4100
4093
|
|
|
4101
|
-
module.exports.
|
|
4094
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4095
|
+
return handleError(function (arg0, arg1) {
|
|
4096
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4097
|
+
return addHeapObject(ret);
|
|
4098
|
+
}, arguments);
|
|
4099
|
+
};
|
|
4100
|
+
|
|
4101
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4102
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4103
|
+
return addHeapObject(ret);
|
|
4104
|
+
};
|
|
4105
|
+
|
|
4106
|
+
module.exports.__wbg_get_de8d5678adfaf755 = function () {
|
|
4102
4107
|
return handleError(function (arg0, arg1, arg2) {
|
|
4103
4108
|
let deferred0_0;
|
|
4104
4109
|
let deferred0_1;
|
|
@@ -4113,12 +4118,7 @@ module.exports.__wbg_get_8f76a18346df8dc8 = function () {
|
|
|
4113
4118
|
}, arguments);
|
|
4114
4119
|
};
|
|
4115
4120
|
|
|
4116
|
-
module.exports.
|
|
4117
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4118
|
-
return addHeapObject(ret);
|
|
4119
|
-
};
|
|
4120
|
-
|
|
4121
|
-
module.exports.__wbg_getaccesstoken_f21f7d04dc08ee10 = function (arg0) {
|
|
4121
|
+
module.exports.__wbg_getaccesstoken_96168db7f6c5341e = function (arg0) {
|
|
4122
4122
|
const ret = getObject(arg0).get_access_token();
|
|
4123
4123
|
return addHeapObject(ret);
|
|
4124
4124
|
};
|
|
@@ -4303,14 +4303,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4303
4303
|
return ret;
|
|
4304
4304
|
};
|
|
4305
4305
|
|
|
4306
|
-
module.exports.
|
|
4306
|
+
module.exports.__wbg_list_8f027b1e8d6eeabd = function () {
|
|
4307
4307
|
return handleError(function (arg0) {
|
|
4308
4308
|
const ret = getObject(arg0).list();
|
|
4309
4309
|
return addHeapObject(ret);
|
|
4310
4310
|
}, arguments);
|
|
4311
4311
|
};
|
|
4312
4312
|
|
|
4313
|
-
module.exports.
|
|
4313
|
+
module.exports.__wbg_list_dc4b0ecf24e8c2e6 = function () {
|
|
4314
4314
|
return handleError(function (arg0) {
|
|
4315
4315
|
const ret = getObject(arg0).list();
|
|
4316
4316
|
return addHeapObject(ret);
|
|
@@ -4511,7 +4511,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4511
4511
|
}, arguments);
|
|
4512
4512
|
};
|
|
4513
4513
|
|
|
4514
|
-
module.exports.
|
|
4514
|
+
module.exports.__wbg_remove_6a18bbab25f54853 = function () {
|
|
4515
4515
|
return handleError(function (arg0, arg1, arg2) {
|
|
4516
4516
|
let deferred0_0;
|
|
4517
4517
|
let deferred0_1;
|
|
@@ -4526,7 +4526,7 @@ module.exports.__wbg_remove_8505fd3c39475309 = function () {
|
|
|
4526
4526
|
}, arguments);
|
|
4527
4527
|
};
|
|
4528
4528
|
|
|
4529
|
-
module.exports.
|
|
4529
|
+
module.exports.__wbg_remove_a2c151845405193a = function () {
|
|
4530
4530
|
return handleError(function (arg0, arg1, arg2) {
|
|
4531
4531
|
let deferred0_0;
|
|
4532
4532
|
let deferred0_1;
|
|
@@ -4584,12 +4584,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
4584
4584
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4585
4585
|
};
|
|
4586
4586
|
|
|
4587
|
-
module.exports.
|
|
4588
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4589
|
-
return addHeapObject(ret);
|
|
4590
|
-
};
|
|
4591
|
-
|
|
4592
|
-
module.exports.__wbg_set_a6ed0666d14f7374 = function () {
|
|
4587
|
+
module.exports.__wbg_set_8136ddb4c6a06792 = function () {
|
|
4593
4588
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4594
4589
|
let deferred0_0;
|
|
4595
4590
|
let deferred0_1;
|
|
@@ -4604,7 +4599,12 @@ module.exports.__wbg_set_a6ed0666d14f7374 = function () {
|
|
|
4604
4599
|
}, arguments);
|
|
4605
4600
|
};
|
|
4606
4601
|
|
|
4607
|
-
module.exports.
|
|
4602
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4603
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4604
|
+
return addHeapObject(ret);
|
|
4605
|
+
};
|
|
4606
|
+
|
|
4607
|
+
module.exports.__wbg_set_951bbfd8bc802f55 = function () {
|
|
4608
4608
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4609
4609
|
let deferred0_0;
|
|
4610
4610
|
let deferred0_1;
|
|
@@ -4844,12 +4844,12 @@ module.exports.__wbindgen_closure_wrapper3594 = function (arg0, arg1, arg2) {
|
|
|
4844
4844
|
return addHeapObject(ret);
|
|
4845
4845
|
};
|
|
4846
4846
|
|
|
4847
|
-
module.exports.
|
|
4847
|
+
module.exports.__wbindgen_closure_wrapper5956 = function (arg0, arg1, arg2) {
|
|
4848
4848
|
const ret = makeMutClosure(arg0, arg1, 315, __wbg_adapter_60);
|
|
4849
4849
|
return addHeapObject(ret);
|
|
4850
4850
|
};
|
|
4851
4851
|
|
|
4852
|
-
module.exports.
|
|
4852
|
+
module.exports.__wbindgen_closure_wrapper6337 = function (arg0, arg1, arg2) {
|
|
4853
4853
|
const ret = makeMutClosure(arg0, arg1, 339, __wbg_adapter_54);
|
|
4854
4854
|
return addHeapObject(ret);
|
|
4855
4855
|
};
|
|
Binary file
|