@bitwarden/commercial-sdk-internal 0.2.0-main.421 → 0.2.0-main.423

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.
@@ -792,6 +792,33 @@ export type EncString = Tagged<string, "EncString">;
792
792
 
793
793
  export type SignedPublicKey = Tagged<string, "SignedPublicKey">;
794
794
 
795
+ /**
796
+ * A set of keys where a given `DownstreamKey` is protected by an encrypted public/private
797
+ * key-pair. The `DownstreamKey` is used to encrypt/decrypt data, while the public/private key-pair
798
+ * is used to rotate the `DownstreamKey`.
799
+ *
800
+ * The `PrivateKey` is protected by an `UpstreamKey`, such as a `DeviceKey`, or `PrfKey`,
801
+ * and the `PublicKey` is protected by the `DownstreamKey`. This setup allows:
802
+ *
803
+ * - Access to `DownstreamKey` by knowing the `UpstreamKey`
804
+ * - Rotation to a `NewDownstreamKey` by knowing the current `DownstreamKey`, without needing
805
+ * access to the `UpstreamKey`
806
+ */
807
+ export interface RotateableKeySet {
808
+ /**
809
+ * `DownstreamKey` protected by encapsulation key
810
+ */
811
+ encapsulatedDownstreamKey: UnsignedSharedKey;
812
+ /**
813
+ * Encapsulation key protected by `DownstreamKey`
814
+ */
815
+ encryptedEncapsulationKey: EncString;
816
+ /**
817
+ * Decapsulation key protected by `UpstreamKey`
818
+ */
819
+ encryptedDecapsulationKey: EncString;
820
+ }
821
+
795
822
  /**
796
823
  * Key Derivation Function for Bitwarden Account
797
824
  *
@@ -1281,7 +1308,7 @@ export interface SecureNoteView {
1281
1308
 
1282
1309
  export interface GetCipherError extends Error {
1283
1310
  name: "GetCipherError";
1284
- variant: "ItemNotFound" | "Crypto" | "RepositoryError";
1311
+ variant: "ItemNotFound" | "Crypto" | "Repository";
1285
1312
  }
1286
1313
 
1287
1314
  export function isGetCipherError(error: any): error is GetCipherError;
@@ -872,6 +872,10 @@ exports.isGetFolderError = function (error) {
872
872
  }
873
873
  };
874
874
 
875
+ function wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1) {
876
+ wasm.wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1);
877
+ }
878
+
875
879
  function wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62(arg0, arg1, arg2) {
876
880
  wasm.wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62(
877
881
  arg0,
@@ -880,10 +884,6 @@ function wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62(arg0, arg
880
884
  );
881
885
  }
882
886
 
883
- function wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1) {
884
- wasm.wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1);
885
- }
886
-
887
887
  function wasm_bindgen__convert__closures_____invoke__ha432c5dfb6304f11(arg0, arg1, arg2) {
888
888
  try {
889
889
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -4725,7 +4725,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4725
4725
  }, arguments);
4726
4726
  };
4727
4727
 
4728
- exports.__wbg_cipher_a8e5bca3fa535748 = function (arg0) {
4728
+ exports.__wbg_cipher_b09d3032d5d7f759 = function (arg0) {
4729
4729
  const ret = getObject(arg0).cipher;
4730
4730
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4731
4731
  };
@@ -4818,7 +4818,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4818
4818
  return addHeapObject(ret);
4819
4819
  };
4820
4820
 
4821
- exports.__wbg_folder_0d17faa11eda84be = function (arg0) {
4821
+ exports.__wbg_folder_d4ae4d5ab92ab416 = function (arg0) {
4822
4822
  const ret = getObject(arg0).folder;
4823
4823
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4824
4824
  };
@@ -4851,12 +4851,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4851
4851
  return ret;
4852
4852
  };
4853
4853
 
4854
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4855
- const ret = getObject(arg0)[arg1 >>> 0];
4856
- return addHeapObject(ret);
4857
- };
4858
-
4859
- exports.__wbg_get_906612b83779a7a5 = function () {
4854
+ exports.__wbg_get_6432ae0367848e1d = function () {
4860
4855
  return handleError(function (arg0, arg1, arg2) {
4861
4856
  let deferred0_0;
4862
4857
  let deferred0_1;
@@ -4871,19 +4866,17 @@ exports.__wbg_get_906612b83779a7a5 = function () {
4871
4866
  }, arguments);
4872
4867
  };
4873
4868
 
4874
- exports.__wbg_get_access_token_3d47691e30d95b50 = function (arg0) {
4875
- const ret = getObject(arg0).get_access_token();
4869
+ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4870
+ const ret = getObject(arg0)[arg1 >>> 0];
4876
4871
  return addHeapObject(ret);
4877
4872
  };
4878
4873
 
4879
- exports.__wbg_get_efcb449f58ec27c2 = function () {
4880
- return handleError(function (arg0, arg1) {
4881
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4882
- return addHeapObject(ret);
4883
- }, arguments);
4874
+ exports.__wbg_get_access_token_e189464f249968d8 = function (arg0) {
4875
+ const ret = getObject(arg0).get_access_token();
4876
+ return addHeapObject(ret);
4884
4877
  };
4885
4878
 
4886
- exports.__wbg_get_f2b4178b803b7230 = function () {
4879
+ exports.__wbg_get_bb738be5940cc255 = function () {
4887
4880
  return handleError(function (arg0, arg1, arg2) {
4888
4881
  let deferred0_0;
4889
4882
  let deferred0_1;
@@ -4898,6 +4891,13 @@ exports.__wbg_get_f2b4178b803b7230 = function () {
4898
4891
  }, arguments);
4899
4892
  };
4900
4893
 
4894
+ exports.__wbg_get_efcb449f58ec27c2 = function () {
4895
+ return handleError(function (arg0, arg1) {
4896
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4897
+ return addHeapObject(ret);
4898
+ }, arguments);
4899
+ };
4900
+
4901
4901
  exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
4902
4902
  const ret = getObject(arg0)[getObject(arg1)];
4903
4903
  return addHeapObject(ret);
@@ -5082,14 +5082,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
5082
5082
  return ret;
5083
5083
  };
5084
5084
 
5085
- exports.__wbg_list_1032c4807ee9c2ce = function () {
5085
+ exports.__wbg_list_86e77d87e879842c = function () {
5086
5086
  return handleError(function (arg0) {
5087
5087
  const ret = getObject(arg0).list();
5088
5088
  return addHeapObject(ret);
5089
5089
  }, arguments);
5090
5090
  };
5091
5091
 
5092
- exports.__wbg_list_a655c254b723e34b = function () {
5092
+ exports.__wbg_list_9f71b39770106e99 = function () {
5093
5093
  return handleError(function (arg0) {
5094
5094
  const ret = getObject(arg0).list();
5095
5095
  return addHeapObject(ret);
@@ -5333,7 +5333,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5333
5333
  }, arguments);
5334
5334
  };
5335
5335
 
5336
- exports.__wbg_remove_4bd5c377165db91f = function () {
5336
+ exports.__wbg_remove_4a78a55023f6d60d = function () {
5337
5337
  return handleError(function (arg0, arg1, arg2) {
5338
5338
  let deferred0_0;
5339
5339
  let deferred0_1;
@@ -5348,7 +5348,7 @@ exports.__wbg_remove_4bd5c377165db91f = function () {
5348
5348
  }, arguments);
5349
5349
  };
5350
5350
 
5351
- exports.__wbg_remove_70f6b26ca7135eb7 = function () {
5351
+ exports.__wbg_remove_dd9c6cc46b495e5a = function () {
5352
5352
  return handleError(function (arg0, arg1, arg2) {
5353
5353
  let deferred0_0;
5354
5354
  let deferred0_1;
@@ -5394,7 +5394,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5394
5394
  return addHeapObject(ret);
5395
5395
  };
5396
5396
 
5397
- exports.__wbg_set_11a079cace77951c = function () {
5397
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5398
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5399
+ };
5400
+
5401
+ exports.__wbg_set_4524c602a04b7d94 = function () {
5398
5402
  return handleError(function (arg0, arg1, arg2, arg3) {
5399
5403
  let deferred0_0;
5400
5404
  let deferred0_1;
@@ -5409,16 +5413,7 @@ exports.__wbg_set_11a079cace77951c = function () {
5409
5413
  }, arguments);
5410
5414
  };
5411
5415
 
5412
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5413
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5414
- };
5415
-
5416
- exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5417
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5418
- return addHeapObject(ret);
5419
- };
5420
-
5421
- exports.__wbg_set_95709825d99cadb3 = function () {
5416
+ exports.__wbg_set_82157cc232dc223e = function () {
5422
5417
  return handleError(function (arg0, arg1, arg2, arg3) {
5423
5418
  let deferred0_0;
5424
5419
  let deferred0_1;
@@ -5433,6 +5428,11 @@ exports.__wbg_set_95709825d99cadb3 = function () {
5433
5428
  }, arguments);
5434
5429
  };
5435
5430
 
5431
+ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5432
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5433
+ return addHeapObject(ret);
5434
+ };
5435
+
5436
5436
  exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5437
5437
  getObject(arg0).body = getObject(arg1);
5438
5438
  };
@@ -454,24 +454,24 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
454
454
  export const __wbg_registrationclient_free: (a: number, b: number) => void;
455
455
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
456
456
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
457
- export const wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62: (
457
+ export const wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2: (
458
458
  a: number,
459
459
  b: number,
460
- c: number,
461
460
  ) => void;
462
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
463
- export const wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2: (
461
+ export const wasm_bindgen__closure__destroy__he41cbbdbe831f2ac: (a: number, b: number) => void;
462
+ export const wasm_bindgen__convert__closures_____invoke__hdced9b5886b06c62: (
464
463
  a: number,
465
464
  b: number,
465
+ c: number,
466
466
  ) => void;
467
- export const wasm_bindgen__closure__destroy__he41cbbdbe831f2ac: (a: number, b: number) => void;
467
+ export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
468
+ export const wasm_bindgen__closure__destroy__h450a29d5adc6ff56: (a: number, b: number) => void;
468
469
  export const wasm_bindgen__convert__closures_____invoke__ha432c5dfb6304f11: (
469
470
  a: number,
470
471
  b: number,
471
472
  c: number,
472
473
  d: number,
473
474
  ) => void;
474
- export const wasm_bindgen__closure__destroy__h450a29d5adc6ff56: (a: number, b: number) => void;
475
475
  export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
476
476
  a: number,
477
477
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.421",
3
+ "version": "0.2.0-main.423",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",