@bitwarden/sdk-internal 0.2.0-main.498 → 0.2.0-main.499
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 +12 -12
- package/bitwarden_wasm_internal_bg.js +46 -46
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +7 -7
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +12 -12
- package/node/bitwarden_wasm_internal.js +46 -46
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +9 -9
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8709db38b355e23f8075a30b0770e9559b794ec7
|
|
@@ -180,6 +180,11 @@ export interface TokenProvider {
|
|
|
180
180
|
get_access_token(): Promise<string | undefined>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Active feature flags for the SDK.
|
|
185
|
+
*/
|
|
186
|
+
export interface FeatureFlags extends Map<string, boolean> {}
|
|
187
|
+
|
|
183
188
|
export interface Repositories {
|
|
184
189
|
cipher: Repository<Cipher> | null;
|
|
185
190
|
folder: Repository<Folder> | null;
|
|
@@ -189,11 +194,6 @@ export interface IndexedDbConfiguration {
|
|
|
189
194
|
db_name: string;
|
|
190
195
|
}
|
|
191
196
|
|
|
192
|
-
/**
|
|
193
|
-
* Active feature flags for the SDK.
|
|
194
|
-
*/
|
|
195
|
-
export interface FeatureFlags extends Map<string, boolean> {}
|
|
196
|
-
|
|
197
197
|
/**
|
|
198
198
|
* Credentials for getting a send access token using an email and OTP.
|
|
199
199
|
*/
|
|
@@ -1271,13 +1271,6 @@ export interface SshKeyExportError extends Error {
|
|
|
1271
1271
|
|
|
1272
1272
|
export function isSshKeyExportError(error: any): error is SshKeyExportError;
|
|
1273
1273
|
|
|
1274
|
-
export interface KeyGenerationError extends Error {
|
|
1275
|
-
name: "KeyGenerationError";
|
|
1276
|
-
variant: "KeyGeneration" | "KeyConversion";
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
|
1280
|
-
|
|
1281
1274
|
export interface SshKeyImportError extends Error {
|
|
1282
1275
|
name: "SshKeyImportError";
|
|
1283
1276
|
variant: "Parsing" | "PasswordRequired" | "WrongPassword" | "UnsupportedKeyType";
|
|
@@ -1285,6 +1278,13 @@ export interface SshKeyImportError extends Error {
|
|
|
1285
1278
|
|
|
1286
1279
|
export function isSshKeyImportError(error: any): error is SshKeyImportError;
|
|
1287
1280
|
|
|
1281
|
+
export interface KeyGenerationError extends Error {
|
|
1282
|
+
name: "KeyGenerationError";
|
|
1283
|
+
variant: "KeyGeneration" | "KeyConversion";
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
|
1287
|
+
|
|
1288
1288
|
export type KeyAlgorithm = "Ed25519" | "Rsa3072" | "Rsa4096";
|
|
1289
1289
|
|
|
1290
1290
|
export interface DatabaseError extends Error {
|
|
@@ -665,9 +665,9 @@ export function ipcRequestDiscover(ipc_client, destination, abort_signal) {
|
|
|
665
665
|
* @param {any} error
|
|
666
666
|
* @returns {boolean}
|
|
667
667
|
*/
|
|
668
|
-
export function
|
|
668
|
+
export function isKeyGenerationError(error) {
|
|
669
669
|
try {
|
|
670
|
-
const ret = wasm.
|
|
670
|
+
const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
|
|
671
671
|
return ret !== 0;
|
|
672
672
|
} finally {
|
|
673
673
|
heap[stack_pointer++] = undefined;
|
|
@@ -678,9 +678,9 @@ export function isSshKeyExportError(error) {
|
|
|
678
678
|
* @param {any} error
|
|
679
679
|
* @returns {boolean}
|
|
680
680
|
*/
|
|
681
|
-
export function
|
|
681
|
+
export function isSshKeyExportError(error) {
|
|
682
682
|
try {
|
|
683
|
-
const ret = wasm.
|
|
683
|
+
const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
|
|
684
684
|
return ret !== 0;
|
|
685
685
|
} finally {
|
|
686
686
|
heap[stack_pointer++] = undefined;
|
|
@@ -691,9 +691,9 @@ export function isSshKeyImportError(error) {
|
|
|
691
691
|
* @param {any} error
|
|
692
692
|
* @returns {boolean}
|
|
693
693
|
*/
|
|
694
|
-
export function
|
|
694
|
+
export function isSshKeyImportError(error) {
|
|
695
695
|
try {
|
|
696
|
-
const ret = wasm.
|
|
696
|
+
const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
|
|
697
697
|
return ret !== 0;
|
|
698
698
|
} finally {
|
|
699
699
|
heap[stack_pointer++] = undefined;
|
|
@@ -999,18 +999,18 @@ export function isGetFolderError(error) {
|
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1003
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
1002
|
function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
|
|
1007
1003
|
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1008
1004
|
}
|
|
1009
1005
|
|
|
1010
|
-
function
|
|
1006
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1007
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
function wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(arg0, arg1, arg2) {
|
|
1011
1011
|
try {
|
|
1012
1012
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1013
|
-
wasm.
|
|
1013
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1014
1014
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1015
1015
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1016
1016
|
if (r1) {
|
|
@@ -4723,7 +4723,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4723
4723
|
return addHeapObject(ret);
|
|
4724
4724
|
}, arguments) };
|
|
4725
4725
|
|
|
4726
|
-
export function
|
|
4726
|
+
export function __wbg_cipher_668ddb3b3044cb95(arg0) {
|
|
4727
4727
|
const ret = getObject(arg0).cipher;
|
|
4728
4728
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4729
4729
|
};
|
|
@@ -4815,7 +4815,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4815
4815
|
return addHeapObject(ret);
|
|
4816
4816
|
};
|
|
4817
4817
|
|
|
4818
|
-
export function
|
|
4818
|
+
export function __wbg_folder_67f44a9cc2eadfe1(arg0) {
|
|
4819
4819
|
const ret = getObject(arg0).folder;
|
|
4820
4820
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4821
4821
|
};
|
|
@@ -4847,7 +4847,17 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4847
4847
|
return ret;
|
|
4848
4848
|
};
|
|
4849
4849
|
|
|
4850
|
-
export function
|
|
4850
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4851
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4852
|
+
return addHeapObject(ret);
|
|
4853
|
+
};
|
|
4854
|
+
|
|
4855
|
+
export function __wbg_get_access_token_02de5a5864128abb(arg0) {
|
|
4856
|
+
const ret = getObject(arg0).get_access_token();
|
|
4857
|
+
return addHeapObject(ret);
|
|
4858
|
+
};
|
|
4859
|
+
|
|
4860
|
+
export function __wbg_get_e7d2d521419c9031() { return handleError(function (arg0, arg1, arg2) {
|
|
4851
4861
|
let deferred0_0;
|
|
4852
4862
|
let deferred0_1;
|
|
4853
4863
|
try {
|
|
@@ -4860,17 +4870,7 @@ export function __wbg_get_08fb71f38ce7f5cc() { return handleError(function (arg0
|
|
|
4860
4870
|
}
|
|
4861
4871
|
}, arguments) };
|
|
4862
4872
|
|
|
4863
|
-
export function
|
|
4864
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4865
|
-
return addHeapObject(ret);
|
|
4866
|
-
};
|
|
4867
|
-
|
|
4868
|
-
export function __wbg_get_access_token_47172f4bf5df2de9(arg0) {
|
|
4869
|
-
const ret = getObject(arg0).get_access_token();
|
|
4870
|
-
return addHeapObject(ret);
|
|
4871
|
-
};
|
|
4872
|
-
|
|
4873
|
-
export function __wbg_get_e72f85b07893eec3() { return handleError(function (arg0, arg1, arg2) {
|
|
4873
|
+
export function __wbg_get_eecade45714aba08() { return handleError(function (arg0, arg1, arg2) {
|
|
4874
4874
|
let deferred0_0;
|
|
4875
4875
|
let deferred0_1;
|
|
4876
4876
|
try {
|
|
@@ -5071,12 +5071,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5071
5071
|
return ret;
|
|
5072
5072
|
};
|
|
5073
5073
|
|
|
5074
|
-
export function
|
|
5074
|
+
export function __wbg_list_85121a3542cb05b1() { return handleError(function (arg0) {
|
|
5075
5075
|
const ret = getObject(arg0).list();
|
|
5076
5076
|
return addHeapObject(ret);
|
|
5077
5077
|
}, arguments) };
|
|
5078
5078
|
|
|
5079
|
-
export function
|
|
5079
|
+
export function __wbg_list_ca3aaff2a7cb1640() { return handleError(function (arg0) {
|
|
5080
5080
|
const ret = getObject(arg0).list();
|
|
5081
5081
|
return addHeapObject(ret);
|
|
5082
5082
|
}, arguments) };
|
|
@@ -5298,7 +5298,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5298
5298
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5299
5299
|
}, arguments) };
|
|
5300
5300
|
|
|
5301
|
-
export function
|
|
5301
|
+
export function __wbg_remove_a62b6083405c4250() { return handleError(function (arg0, arg1, arg2) {
|
|
5302
5302
|
let deferred0_0;
|
|
5303
5303
|
let deferred0_1;
|
|
5304
5304
|
try {
|
|
@@ -5311,7 +5311,7 @@ export function __wbg_remove_a7df4f756f0938a1() { return handleError(function (a
|
|
|
5311
5311
|
}
|
|
5312
5312
|
}, arguments) };
|
|
5313
5313
|
|
|
5314
|
-
export function
|
|
5314
|
+
export function __wbg_remove_d95cb01abb300f7b() { return handleError(function (arg0, arg1, arg2) {
|
|
5315
5315
|
let deferred0_0;
|
|
5316
5316
|
let deferred0_1;
|
|
5317
5317
|
try {
|
|
@@ -5349,7 +5349,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5349
5349
|
return addHeapObject(ret);
|
|
5350
5350
|
};
|
|
5351
5351
|
|
|
5352
|
-
export function
|
|
5352
|
+
export function __wbg_set_14d5a11c374267ee() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5353
5353
|
let deferred0_0;
|
|
5354
5354
|
let deferred0_1;
|
|
5355
5355
|
try {
|
|
@@ -5366,19 +5366,6 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
5366
5366
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5367
5367
|
};
|
|
5368
5368
|
|
|
5369
|
-
export function __wbg_set_4a5b468756cc3b22() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5370
|
-
let deferred0_0;
|
|
5371
|
-
let deferred0_1;
|
|
5372
|
-
try {
|
|
5373
|
-
deferred0_0 = arg1;
|
|
5374
|
-
deferred0_1 = arg2;
|
|
5375
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5376
|
-
return addHeapObject(ret);
|
|
5377
|
-
} finally {
|
|
5378
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5379
|
-
}
|
|
5380
|
-
}, arguments) };
|
|
5381
|
-
|
|
5382
5369
|
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
5383
5370
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5384
5371
|
return addHeapObject(ret);
|
|
@@ -5401,6 +5388,19 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5401
5388
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5402
5389
|
};
|
|
5403
5390
|
|
|
5391
|
+
export function __wbg_set_e2fe9ac3109696fb() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5392
|
+
let deferred0_0;
|
|
5393
|
+
let deferred0_1;
|
|
5394
|
+
try {
|
|
5395
|
+
deferred0_0 = arg1;
|
|
5396
|
+
deferred0_1 = arg2;
|
|
5397
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5398
|
+
return addHeapObject(ret);
|
|
5399
|
+
} finally {
|
|
5400
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5401
|
+
}
|
|
5402
|
+
}, arguments) };
|
|
5403
|
+
|
|
5404
5404
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5405
5405
|
getObject(arg0).headers = getObject(arg1);
|
|
5406
5406
|
};
|
|
@@ -5580,7 +5580,7 @@ export function __wbindgen_cast_22b4944821d4b7c9(arg0, arg1) {
|
|
|
5580
5580
|
|
|
5581
5581
|
export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
|
|
5582
5582
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5583
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5583
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5584
5584
|
return addHeapObject(ret);
|
|
5585
5585
|
};
|
|
5586
5586
|
|
|
@@ -5638,7 +5638,7 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
5638
5638
|
|
|
5639
5639
|
export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
|
|
5640
5640
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5641
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5641
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab);
|
|
5642
5642
|
return addHeapObject(ret);
|
|
5643
5643
|
};
|
|
5644
5644
|
|
|
Binary file
|
|
@@ -510,20 +510,20 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
|
510
510
|
export const vaultclient_attachments: (a: number) => number;
|
|
511
511
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
512
512
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
513
|
-
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
514
|
-
a: number,
|
|
515
|
-
b: number,
|
|
516
|
-
) => void;
|
|
517
|
-
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
518
513
|
export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
|
|
519
514
|
a: number,
|
|
520
515
|
b: number,
|
|
521
516
|
c: number,
|
|
522
517
|
) => void;
|
|
518
|
+
export const wasm_bindgen__closure__destroy__h582e24ac35be59c7: (a: number, b: number) => void;
|
|
523
519
|
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
524
|
-
export const
|
|
520
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
521
|
+
a: number,
|
|
522
|
+
b: number,
|
|
523
|
+
) => void;
|
|
524
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
525
525
|
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
526
|
-
export const
|
|
526
|
+
export const wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab: (
|
|
527
527
|
a: number,
|
|
528
528
|
b: number,
|
|
529
529
|
c: number,
|