@bitwarden/sdk-internal 0.2.0-main.527 → 0.2.0-main.529

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.
@@ -1438,6 +1438,26 @@ export interface CallError extends Error {
1438
1438
 
1439
1439
  export function isCallError(error: any): error is CallError;
1440
1440
 
1441
+ /**
1442
+ * The data necessary to re-share the user-key to a V1 organization membership. Note: The
1443
+ * Public-key must be verified/trusted. Further, there is no sender authentication possible here.
1444
+ */
1445
+ export interface V1OrganizationMembership {
1446
+ organization_id: Uuid;
1447
+ name: string;
1448
+ public_key: PublicKey;
1449
+ }
1450
+
1451
+ /**
1452
+ * The data necessary to re-share the user-key to a V1 emergency access membership. Note: The
1453
+ * Public-key must be verified/trusted. Further, there is no sender authentication possible here.
1454
+ */
1455
+ export interface V1EmergencyAccessMembership {
1456
+ id: Uuid;
1457
+ name: string;
1458
+ public_key: PublicKey;
1459
+ }
1460
+
1441
1461
  export interface CipherRiskError extends Error {
1442
1462
  name: "CipherRiskError";
1443
1463
  variant: "Reqwest";
@@ -1015,14 +1015,6 @@ exports.isGetFolderError = function(error) {
1015
1015
  }
1016
1016
  };
1017
1017
 
1018
- function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1019
- wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1020
- }
1021
-
1022
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1023
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1024
- }
1025
-
1026
1018
  function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg1, arg2) {
1027
1019
  try {
1028
1020
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -1037,6 +1029,14 @@ function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg
1037
1029
  }
1038
1030
  }
1039
1031
 
1032
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1033
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1034
+ }
1035
+
1036
+ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1037
+ wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1038
+ }
1039
+
1040
1040
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1041
1041
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1042
1042
  }
@@ -5014,7 +5014,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
5014
5014
  return addHeapObject(ret);
5015
5015
  }, arguments) };
5016
5016
 
5017
- exports.__wbg_cipher_e94b41946da95619 = function(arg0) {
5017
+ exports.__wbg_cipher_a3be80db68e37efb = function(arg0) {
5018
5018
  const ret = getObject(arg0).cipher;
5019
5019
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5020
5020
  };
@@ -5101,7 +5101,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
5101
5101
  return addHeapObject(ret);
5102
5102
  };
5103
5103
 
5104
- exports.__wbg_folder_7cc716d9bb265b1f = function(arg0) {
5104
+ exports.__wbg_folder_ee747b560aa13119 = function(arg0) {
5105
5105
  const ret = getObject(arg0).folder;
5106
5106
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5107
5107
  };
@@ -5133,7 +5133,17 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
5133
5133
  return ret;
5134
5134
  };
5135
5135
 
5136
- exports.__wbg_get_0b30250d94987600 = function() { return handleError(function (arg0, arg1, arg2) {
5136
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5137
+ const ret = getObject(arg0)[arg1 >>> 0];
5138
+ return addHeapObject(ret);
5139
+ };
5140
+
5141
+ exports.__wbg_get_access_token_c844cfb365a3f29f = function(arg0) {
5142
+ const ret = getObject(arg0).get_access_token();
5143
+ return addHeapObject(ret);
5144
+ };
5145
+
5146
+ exports.__wbg_get_b09f95011635fcb6 = function() { return handleError(function (arg0, arg1, arg2) {
5137
5147
  let deferred0_0;
5138
5148
  let deferred0_1;
5139
5149
  try {
@@ -5146,12 +5156,7 @@ exports.__wbg_get_0b30250d94987600 = function() { return handleError(function (a
5146
5156
  }
5147
5157
  }, arguments) };
5148
5158
 
5149
- exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5150
- const ret = getObject(arg0)[arg1 >>> 0];
5151
- return addHeapObject(ret);
5152
- };
5153
-
5154
- exports.__wbg_get_9afb6f1e4582c19d = function() { return handleError(function (arg0, arg1, arg2) {
5159
+ exports.__wbg_get_c03a59ff46a549dd = function() { return handleError(function (arg0, arg1, arg2) {
5155
5160
  let deferred0_0;
5156
5161
  let deferred0_1;
5157
5162
  try {
@@ -5164,12 +5169,7 @@ exports.__wbg_get_9afb6f1e4582c19d = function() { return handleError(function (a
5164
5169
  }
5165
5170
  }, arguments) };
5166
5171
 
5167
- exports.__wbg_get_access_token_25fc3c7ed0d95a5f = function(arg0) {
5168
- const ret = getObject(arg0).get_access_token();
5169
- return addHeapObject(ret);
5170
- };
5171
-
5172
- exports.__wbg_get_c03a59ff46a549dd = function() { return handleError(function (arg0, arg1, arg2) {
5172
+ exports.__wbg_get_d43bb2144256bd26 = function() { return handleError(function (arg0, arg1, arg2) {
5173
5173
  let deferred0_0;
5174
5174
  let deferred0_1;
5175
5175
  try {
@@ -5370,12 +5370,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5370
5370
  return ret;
5371
5371
  };
5372
5372
 
5373
- exports.__wbg_list_c880f3568db706bd = function() { return handleError(function (arg0) {
5373
+ exports.__wbg_list_733ffd902f224f54 = function() { return handleError(function (arg0) {
5374
5374
  const ret = getObject(arg0).list();
5375
5375
  return addHeapObject(ret);
5376
5376
  }, arguments) };
5377
5377
 
5378
- exports.__wbg_list_ed1ce5ff3be9e3bc = function() { return handleError(function (arg0) {
5378
+ exports.__wbg_list_8cab6725fbb56482 = function() { return handleError(function (arg0) {
5379
5379
  const ret = getObject(arg0).list();
5380
5380
  return addHeapObject(ret);
5381
5381
  }, arguments) };
@@ -5576,7 +5576,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5576
5576
  getObject(arg0).randomFillSync(takeObject(arg1));
5577
5577
  }, arguments) };
5578
5578
 
5579
- exports.__wbg_remove_a51dd510df9ae51d = function() { return handleError(function (arg0, arg1, arg2) {
5579
+ exports.__wbg_remove_bb923590b3bfdcb3 = function() { return handleError(function (arg0, arg1, arg2) {
5580
5580
  let deferred0_0;
5581
5581
  let deferred0_1;
5582
5582
  try {
@@ -5589,7 +5589,7 @@ exports.__wbg_remove_a51dd510df9ae51d = function() { return handleError(function
5589
5589
  }
5590
5590
  }, arguments) };
5591
5591
 
5592
- exports.__wbg_remove_a5a3acfb413a9cec = function() { return handleError(function (arg0, arg1, arg2) {
5592
+ exports.__wbg_remove_e1aa17a0d88d5a7e = function() { return handleError(function (arg0, arg1, arg2) {
5593
5593
  let deferred0_0;
5594
5594
  let deferred0_1;
5595
5595
  try {
@@ -5644,7 +5644,20 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5644
5644
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5645
5645
  };
5646
5646
 
5647
- exports.__wbg_set_6e1a46fb1b4fbfbf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5647
+ exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
5648
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5649
+ return addHeapObject(ret);
5650
+ };
5651
+
5652
+ exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
5653
+ getObject(arg0).body = getObject(arg1);
5654
+ };
5655
+
5656
+ exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
5657
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5658
+ };
5659
+
5660
+ exports.__wbg_set_cf2d064389f4e4c2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5648
5661
  let deferred0_0;
5649
5662
  let deferred0_1;
5650
5663
  try {
@@ -5657,7 +5670,11 @@ exports.__wbg_set_6e1a46fb1b4fbfbf = function() { return handleError(function (a
5657
5670
  }
5658
5671
  }, arguments) };
5659
5672
 
5660
- exports.__wbg_set_8a313f41247925b3 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5673
+ exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
5674
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5675
+ };
5676
+
5677
+ exports.__wbg_set_f9cbab27f55058fe = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5661
5678
  let deferred0_0;
5662
5679
  let deferred0_1;
5663
5680
  try {
@@ -5670,23 +5687,6 @@ exports.__wbg_set_8a313f41247925b3 = function() { return handleError(function (a
5670
5687
  }
5671
5688
  }, arguments) };
5672
5689
 
5673
- exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
5674
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5675
- return addHeapObject(ret);
5676
- };
5677
-
5678
- exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
5679
- getObject(arg0).body = getObject(arg1);
5680
- };
5681
-
5682
- exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
5683
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5684
- };
5685
-
5686
- exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
5687
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5688
- };
5689
-
5690
5690
  exports.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
5691
5691
  getObject(arg0).headers = getObject(arg1);
5692
5692
  };
@@ -5858,18 +5858,18 @@ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
5858
5858
  return addHeapObject(ret);
5859
5859
  };
5860
5860
 
5861
- exports.__wbindgen_cast_298dd3322eda9063 = function(arg0, arg1) {
5862
- // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5863
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5864
- return addHeapObject(ret);
5865
- };
5866
-
5867
5861
  exports.__wbindgen_cast_34ef3ce950757bdd = function(arg0, arg1) {
5868
5862
  // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5869
5863
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5870
5864
  return addHeapObject(ret);
5871
5865
  };
5872
5866
 
5867
+ exports.__wbindgen_cast_39620859b18b910b = function(arg0, arg1) {
5868
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 596, function: Function { arguments: [], shim_idx: 334, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5869
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
5870
+ return addHeapObject(ret);
5871
+ };
5872
+
5873
5873
  exports.__wbindgen_cast_397295739b4135cd = function(arg0, arg1) {
5874
5874
  // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 43, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5875
5875
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
@@ -5890,6 +5890,12 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function(arg0, arg1) {
5890
5890
  return addHeapObject(ret);
5891
5891
  };
5892
5892
 
5893
+ exports.__wbindgen_cast_6e6ad7ab1aa4960b = function(arg0, arg1) {
5894
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 340, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5895
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5896
+ return addHeapObject(ret);
5897
+ };
5898
+
5893
5899
  exports.__wbindgen_cast_7a6d185652cd8149 = function(arg0, arg1) {
5894
5900
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5895
5901
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5904,14 +5910,14 @@ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
5904
5910
  return addHeapObject(ret);
5905
5911
  };
5906
5912
 
5907
- exports.__wbindgen_cast_9f8dcc40cab50f4b = function(arg0, arg1) {
5908
- // Cast intrinsic for `Closure(Closure { dtor_idx: 595, function: Function { arguments: [], shim_idx: 333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5909
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
5913
+ exports.__wbindgen_cast_b2ff35054ed9693c = function(arg0, arg1) {
5914
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5915
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5910
5916
  return addHeapObject(ret);
5911
5917
  };
5912
5918
 
5913
- exports.__wbindgen_cast_a2a1216eb14e5e30 = function(arg0, arg1) {
5914
- // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [], shim_idx: 333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5919
+ exports.__wbindgen_cast_c425055212da0068 = function(arg0, arg1) {
5920
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [], shim_idx: 334, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5915
5921
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d);
5916
5922
  return addHeapObject(ret);
5917
5923
  };
@@ -5922,12 +5928,6 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
5922
5928
  return addHeapObject(ret);
5923
5929
  };
5924
5930
 
5925
- exports.__wbindgen_cast_cc64d9c4c77c46f7 = function(arg0, arg1) {
5926
- // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5927
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5928
- return addHeapObject(ret);
5929
- };
5930
-
5931
5931
  exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5932
5932
  // Cast intrinsic for `F64 -> Externref`.
5933
5933
  const ret = arg0;
@@ -534,25 +534,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
534
534
  export const vaultclient_attachments: (a: number) => number;
535
535
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
536
536
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
537
- export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
537
+ export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
538
538
  a: number,
539
539
  b: number,
540
540
  c: number,
541
+ d: number,
541
542
  ) => void;
542
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
543
+ export const wasm_bindgen__closure__destroy__h34c685b2e12a24bd: (a: number, b: number) => void;
543
544
  export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
544
545
  a: number,
545
546
  b: number,
546
547
  ) => void;
547
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
548
548
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
549
- export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
549
+ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
550
550
  a: number,
551
551
  b: number,
552
552
  c: number,
553
- d: number,
554
553
  ) => void;
555
- export const wasm_bindgen__closure__destroy__h34c685b2e12a24bd: (a: number, b: number) => void;
554
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
555
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
556
556
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
557
557
  a: number,
558
558
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.527",
3
+ "version": "0.2.0-main.529",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",