@bitwarden/sdk-internal 0.2.0-main.497 → 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.
@@ -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 {
@@ -655,9 +655,9 @@ exports.ipcRequestDiscover = function(ipc_client, destination, abort_signal) {
655
655
  * @param {any} error
656
656
  * @returns {boolean}
657
657
  */
658
- exports.isSshKeyExportError = function(error) {
658
+ exports.isKeyGenerationError = function(error) {
659
659
  try {
660
- const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
660
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
661
661
  return ret !== 0;
662
662
  } finally {
663
663
  heap[stack_pointer++] = undefined;
@@ -668,9 +668,9 @@ exports.isSshKeyExportError = function(error) {
668
668
  * @param {any} error
669
669
  * @returns {boolean}
670
670
  */
671
- exports.isSshKeyImportError = function(error) {
671
+ exports.isSshKeyExportError = function(error) {
672
672
  try {
673
- const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
673
+ const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
674
674
  return ret !== 0;
675
675
  } finally {
676
676
  heap[stack_pointer++] = undefined;
@@ -681,9 +681,9 @@ exports.isSshKeyImportError = function(error) {
681
681
  * @param {any} error
682
682
  * @returns {boolean}
683
683
  */
684
- exports.isKeyGenerationError = function(error) {
684
+ exports.isSshKeyImportError = function(error) {
685
685
  try {
686
- const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
686
+ const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
687
687
  return ret !== 0;
688
688
  } finally {
689
689
  heap[stack_pointer++] = undefined;
@@ -989,18 +989,14 @@ exports.isGetFolderError = function(error) {
989
989
  }
990
990
  };
991
991
 
992
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
993
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
994
- }
995
-
996
992
  function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
997
993
  wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
998
994
  }
999
995
 
1000
- function wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5(arg0, arg1, arg2) {
996
+ function wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(arg0, arg1, arg2) {
1001
997
  try {
1002
998
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1003
- wasm.wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5(retptr, arg0, arg1, addHeapObject(arg2));
999
+ wasm.wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(retptr, arg0, arg1, addHeapObject(arg2));
1004
1000
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1005
1001
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1006
1002
  if (r1) {
@@ -1011,6 +1007,10 @@ function wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5(arg0, arg
1011
1007
  }
1012
1008
  }
1013
1009
 
1010
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1011
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1012
+ }
1013
+
1014
1014
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1015
1015
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1016
1016
  }
@@ -4765,7 +4765,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
4765
4765
  return addHeapObject(ret);
4766
4766
  }, arguments) };
4767
4767
 
4768
- exports.__wbg_cipher_99d0bf2a506cd93a = function(arg0) {
4768
+ exports.__wbg_cipher_668ddb3b3044cb95 = function(arg0) {
4769
4769
  const ret = getObject(arg0).cipher;
4770
4770
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4771
4771
  };
@@ -4857,7 +4857,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
4857
4857
  return addHeapObject(ret);
4858
4858
  };
4859
4859
 
4860
- exports.__wbg_folder_bd11165c8ba409a5 = function(arg0) {
4860
+ exports.__wbg_folder_67f44a9cc2eadfe1 = function(arg0) {
4861
4861
  const ret = getObject(arg0).folder;
4862
4862
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4863
4863
  };
@@ -4889,7 +4889,17 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
4889
4889
  return ret;
4890
4890
  };
4891
4891
 
4892
- exports.__wbg_get_3a39ecb3d61925e8 = function() { return handleError(function (arg0, arg1, arg2) {
4892
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
4893
+ const ret = getObject(arg0)[arg1 >>> 0];
4894
+ return addHeapObject(ret);
4895
+ };
4896
+
4897
+ exports.__wbg_get_access_token_02de5a5864128abb = function(arg0) {
4898
+ const ret = getObject(arg0).get_access_token();
4899
+ return addHeapObject(ret);
4900
+ };
4901
+
4902
+ exports.__wbg_get_e7d2d521419c9031 = function() { return handleError(function (arg0, arg1, arg2) {
4893
4903
  let deferred0_0;
4894
4904
  let deferred0_1;
4895
4905
  try {
@@ -4902,17 +4912,7 @@ exports.__wbg_get_3a39ecb3d61925e8 = function() { return handleError(function (a
4902
4912
  }
4903
4913
  }, arguments) };
4904
4914
 
4905
- exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
4906
- const ret = getObject(arg0)[arg1 >>> 0];
4907
- return addHeapObject(ret);
4908
- };
4909
-
4910
- exports.__wbg_get_access_token_caeee7a05d361115 = function(arg0) {
4911
- const ret = getObject(arg0).get_access_token();
4912
- return addHeapObject(ret);
4913
- };
4914
-
4915
- exports.__wbg_get_efc472cc8b33cc90 = function() { return handleError(function (arg0, arg1, arg2) {
4915
+ exports.__wbg_get_eecade45714aba08 = function() { return handleError(function (arg0, arg1, arg2) {
4916
4916
  let deferred0_0;
4917
4917
  let deferred0_1;
4918
4918
  try {
@@ -5113,12 +5113,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5113
5113
  return ret;
5114
5114
  };
5115
5115
 
5116
- exports.__wbg_list_6b31f0e7826be6fa = function() { return handleError(function (arg0) {
5116
+ exports.__wbg_list_85121a3542cb05b1 = function() { return handleError(function (arg0) {
5117
5117
  const ret = getObject(arg0).list();
5118
5118
  return addHeapObject(ret);
5119
5119
  }, arguments) };
5120
5120
 
5121
- exports.__wbg_list_bea4ba6ef563512c = function() { return handleError(function (arg0) {
5121
+ exports.__wbg_list_ca3aaff2a7cb1640 = function() { return handleError(function (arg0) {
5122
5122
  const ret = getObject(arg0).list();
5123
5123
  return addHeapObject(ret);
5124
5124
  }, arguments) };
@@ -5340,7 +5340,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5340
5340
  getObject(arg0).randomFillSync(takeObject(arg1));
5341
5341
  }, arguments) };
5342
5342
 
5343
- exports.__wbg_remove_eca422df184eb1de = function() { return handleError(function (arg0, arg1, arg2) {
5343
+ exports.__wbg_remove_a62b6083405c4250 = function() { return handleError(function (arg0, arg1, arg2) {
5344
5344
  let deferred0_0;
5345
5345
  let deferred0_1;
5346
5346
  try {
@@ -5353,7 +5353,7 @@ exports.__wbg_remove_eca422df184eb1de = function() { return handleError(function
5353
5353
  }
5354
5354
  }, arguments) };
5355
5355
 
5356
- exports.__wbg_remove_ee9c977274161f7f = function() { return handleError(function (arg0, arg1, arg2) {
5356
+ exports.__wbg_remove_d95cb01abb300f7b = function() { return handleError(function (arg0, arg1, arg2) {
5357
5357
  let deferred0_0;
5358
5358
  let deferred0_1;
5359
5359
  try {
@@ -5391,6 +5391,19 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
5391
5391
  return addHeapObject(ret);
5392
5392
  };
5393
5393
 
5394
+ exports.__wbg_set_14d5a11c374267ee = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5395
+ let deferred0_0;
5396
+ let deferred0_1;
5397
+ try {
5398
+ deferred0_0 = arg1;
5399
+ deferred0_1 = arg2;
5400
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5401
+ return addHeapObject(ret);
5402
+ } finally {
5403
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5404
+ }
5405
+ }, arguments) };
5406
+
5394
5407
  exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5395
5408
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5396
5409
  };
@@ -5413,24 +5426,11 @@ exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (a
5413
5426
  return ret;
5414
5427
  }, arguments) };
5415
5428
 
5416
- exports.__wbg_set_cacab93d39f80fd1 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5417
- let deferred0_0;
5418
- let deferred0_1;
5419
- try {
5420
- deferred0_0 = arg1;
5421
- deferred0_1 = arg2;
5422
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5423
- return addHeapObject(ret);
5424
- } finally {
5425
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5426
- }
5427
- }, arguments) };
5428
-
5429
5429
  exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
5430
5430
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5431
5431
  };
5432
5432
 
5433
- exports.__wbg_set_e6f6b4ab3f89ad14 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5433
+ exports.__wbg_set_e2fe9ac3109696fb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5434
5434
  let deferred0_0;
5435
5435
  let deferred0_1;
5436
5436
  try {
@@ -5622,7 +5622,7 @@ exports.__wbindgen_cast_22b4944821d4b7c9 = function(arg0, arg1) {
5622
5622
 
5623
5623
  exports.__wbindgen_cast_4042b341512ce63a = function(arg0, arg1) {
5624
5624
  // 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`.
5625
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8316b5ffc9c02e99, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5625
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5626
5626
  return addHeapObject(ret);
5627
5627
  };
5628
5628
 
@@ -5680,7 +5680,7 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
5680
5680
 
5681
5681
  exports.__wbindgen_cast_d49c305f67640cb1 = function(arg0, arg1) {
5682
5682
  // 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`.
5683
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8316b5ffc9c02e99, wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5);
5683
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab);
5684
5684
  return addHeapObject(ret);
5685
5685
  };
5686
5686
 
@@ -510,25 +510,25 @@ 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: (
513
+ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
514
514
  a: number,
515
515
  b: number,
516
+ c: number,
516
517
  ) => void;
517
518
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
518
- export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
519
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
520
+ export const wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab: (
519
521
  a: number,
520
522
  b: number,
521
523
  c: number,
524
+ d: number,
522
525
  ) => void;
523
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
524
- export const wasm_bindgen__closure__destroy__h8316b5ffc9c02e99: (a: number, b: number) => void;
525
- export const wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5: (
526
+ export const wasm_bindgen__closure__destroy__h582e24ac35be59c7: (a: number, b: number) => void;
527
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
526
528
  a: number,
527
529
  b: number,
528
- c: number,
529
- d: number,
530
530
  ) => void;
531
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
531
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
532
532
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
533
533
  a: number,
534
534
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.497",
3
+ "version": "0.2.0-main.499",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",