@bitwarden/sdk-internal 0.2.0-main.434 → 0.2.0-main.436

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.
@@ -205,6 +205,16 @@ function getArrayU8FromWasm0(ptr, len) {
205
205
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
206
206
  }
207
207
 
208
+ function getArrayJsValueFromWasm0(ptr, len) {
209
+ ptr = ptr >>> 0;
210
+ const mem = getDataViewMemory0();
211
+ const result = [];
212
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
213
+ result.push(takeObject(mem.getUint32(i, true)));
214
+ }
215
+ return result;
216
+ }
217
+
208
218
  const CLOSURE_DTORS =
209
219
  typeof FinalizationRegistry === "undefined"
210
220
  ? { register: () => {}, unregister: () => {} }
@@ -237,16 +247,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
237
247
  return real;
238
248
  }
239
249
 
240
- function getArrayJsValueFromWasm0(ptr, len) {
241
- ptr = ptr >>> 0;
242
- const mem = getDataViewMemory0();
243
- const result = [];
244
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
245
- result.push(takeObject(mem.getUint32(i, true)));
246
- }
247
- return result;
248
- }
249
-
250
250
  function passArray8ToWasm0(arg, malloc) {
251
251
  const ptr = malloc(arg.length * 1, 1) >>> 0;
252
252
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -254,33 +254,21 @@ function passArray8ToWasm0(arg, malloc) {
254
254
  return ptr;
255
255
  }
256
256
  /**
257
- * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
258
- * to an OpenSSH private key with public key and fingerprint
257
+ * Generate a new SSH key pair
259
258
  *
260
259
  * # Arguments
261
- * - `imported_key` - The private key to convert
262
- * - `password` - The password to use for decrypting the key
260
+ * - `key_algorithm` - The algorithm to use for the key pair
263
261
  *
264
262
  * # Returns
265
- * - `Ok(SshKey)` if the key was successfully coneverted
266
- * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
267
- * - `Err(WrongPassword)` if the password provided is incorrect
268
- * - `Err(ParsingError)` if the key could not be parsed
269
- * - `Err(UnsupportedKeyType)` if the key type is not supported
270
- * @param {string} imported_key
271
- * @param {string | null} [password]
263
+ * - `Ok(SshKey)` if the key was successfully generated
264
+ * - `Err(KeyGenerationError)` if the key could not be generated
265
+ * @param {KeyAlgorithm} key_algorithm
272
266
  * @returns {SshKeyView}
273
267
  */
274
- exports.import_ssh_key = function (imported_key, password) {
268
+ exports.generate_ssh_key = function (key_algorithm) {
275
269
  try {
276
270
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
277
- const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
278
- const len0 = WASM_VECTOR_LEN;
279
- var ptr1 = isLikeNone(password)
280
- ? 0
281
- : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
- var len1 = WASM_VECTOR_LEN;
283
- wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
271
+ wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
284
272
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
285
273
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
286
274
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -294,21 +282,33 @@ exports.import_ssh_key = function (imported_key, password) {
294
282
  };
295
283
 
296
284
  /**
297
- * Generate a new SSH key pair
285
+ * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
286
+ * to an OpenSSH private key with public key and fingerprint
298
287
  *
299
288
  * # Arguments
300
- * - `key_algorithm` - The algorithm to use for the key pair
289
+ * - `imported_key` - The private key to convert
290
+ * - `password` - The password to use for decrypting the key
301
291
  *
302
292
  * # Returns
303
- * - `Ok(SshKey)` if the key was successfully generated
304
- * - `Err(KeyGenerationError)` if the key could not be generated
305
- * @param {KeyAlgorithm} key_algorithm
293
+ * - `Ok(SshKey)` if the key was successfully coneverted
294
+ * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
295
+ * - `Err(WrongPassword)` if the password provided is incorrect
296
+ * - `Err(ParsingError)` if the key could not be parsed
297
+ * - `Err(UnsupportedKeyType)` if the key type is not supported
298
+ * @param {string} imported_key
299
+ * @param {string | null} [password]
306
300
  * @returns {SshKeyView}
307
301
  */
308
- exports.generate_ssh_key = function (key_algorithm) {
302
+ exports.import_ssh_key = function (imported_key, password) {
309
303
  try {
310
304
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
311
- wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
305
+ const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ const len0 = WASM_VECTOR_LEN;
307
+ var ptr1 = isLikeNone(password)
308
+ ? 0
309
+ : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ var len1 = WASM_VECTOR_LEN;
311
+ wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
312
312
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
313
313
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
314
314
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -391,9 +391,9 @@ exports.isAccountCryptographyInitializationError = function (error) {
391
391
  * @param {any} error
392
392
  * @returns {boolean}
393
393
  */
394
- exports.isDeriveKeyConnectorError = function (error) {
394
+ exports.isEnrollAdminPasswordResetError = function (error) {
395
395
  try {
396
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
396
+ const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
397
397
  return ret !== 0;
398
398
  } finally {
399
399
  heap[stack_pointer++] = undefined;
@@ -404,9 +404,9 @@ exports.isDeriveKeyConnectorError = function (error) {
404
404
  * @param {any} error
405
405
  * @returns {boolean}
406
406
  */
407
- exports.isEnrollAdminPasswordResetError = function (error) {
407
+ exports.isCryptoClientError = function (error) {
408
408
  try {
409
- const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
409
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
410
410
  return ret !== 0;
411
411
  } finally {
412
412
  heap[stack_pointer++] = undefined;
@@ -417,9 +417,9 @@ exports.isEnrollAdminPasswordResetError = function (error) {
417
417
  * @param {any} error
418
418
  * @returns {boolean}
419
419
  */
420
- exports.isCryptoClientError = function (error) {
420
+ exports.isDeriveKeyConnectorError = function (error) {
421
421
  try {
422
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
422
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
423
423
  return ret !== 0;
424
424
  } finally {
425
425
  heap[stack_pointer++] = undefined;
@@ -517,9 +517,9 @@ exports.isUsernameError = function (error) {
517
517
  * @param {any} error
518
518
  * @returns {boolean}
519
519
  */
520
- exports.isRequestError = function (error) {
520
+ exports.isSubscribeError = function (error) {
521
521
  try {
522
- const ret = wasm.isRequestError(addBorrowedObject(error));
522
+ const ret = wasm.isSubscribeError(addBorrowedObject(error));
523
523
  return ret !== 0;
524
524
  } finally {
525
525
  heap[stack_pointer++] = undefined;
@@ -530,9 +530,9 @@ exports.isRequestError = function (error) {
530
530
  * @param {any} error
531
531
  * @returns {boolean}
532
532
  */
533
- exports.isTypedReceiveError = function (error) {
533
+ exports.isRequestError = function (error) {
534
534
  try {
535
- const ret = wasm.isTypedReceiveError(addBorrowedObject(error));
535
+ const ret = wasm.isRequestError(addBorrowedObject(error));
536
536
  return ret !== 0;
537
537
  } finally {
538
538
  heap[stack_pointer++] = undefined;
@@ -543,9 +543,9 @@ exports.isTypedReceiveError = function (error) {
543
543
  * @param {any} error
544
544
  * @returns {boolean}
545
545
  */
546
- exports.isSubscribeError = function (error) {
546
+ exports.isReceiveError = function (error) {
547
547
  try {
548
- const ret = wasm.isSubscribeError(addBorrowedObject(error));
548
+ const ret = wasm.isReceiveError(addBorrowedObject(error));
549
549
  return ret !== 0;
550
550
  } finally {
551
551
  heap[stack_pointer++] = undefined;
@@ -556,9 +556,9 @@ exports.isSubscribeError = function (error) {
556
556
  * @param {any} error
557
557
  * @returns {boolean}
558
558
  */
559
- exports.isReceiveError = function (error) {
559
+ exports.isTypedReceiveError = function (error) {
560
560
  try {
561
- const ret = wasm.isReceiveError(addBorrowedObject(error));
561
+ const ret = wasm.isTypedReceiveError(addBorrowedObject(error));
562
562
  return ret !== 0;
563
563
  } finally {
564
564
  heap[stack_pointer++] = undefined;
@@ -574,9 +574,9 @@ function _assertClass(instance, klass) {
574
574
  * @param {any} error
575
575
  * @returns {boolean}
576
576
  */
577
- exports.isDeserializeError = function (error) {
577
+ exports.isChannelError = function (error) {
578
578
  try {
579
- const ret = wasm.isDeserializeError(addBorrowedObject(error));
579
+ const ret = wasm.isChannelError(addBorrowedObject(error));
580
580
  return ret !== 0;
581
581
  } finally {
582
582
  heap[stack_pointer++] = undefined;
@@ -587,15 +587,27 @@ exports.isDeserializeError = function (error) {
587
587
  * @param {any} error
588
588
  * @returns {boolean}
589
589
  */
590
- exports.isChannelError = function (error) {
590
+ exports.isDeserializeError = function (error) {
591
591
  try {
592
- const ret = wasm.isChannelError(addBorrowedObject(error));
592
+ const ret = wasm.isDeserializeError(addBorrowedObject(error));
593
593
  return ret !== 0;
594
594
  } finally {
595
595
  heap[stack_pointer++] = undefined;
596
596
  }
597
597
  };
598
598
 
599
+ /**
600
+ * Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
601
+ * @param {IpcClient} ipc_client
602
+ * @param {DiscoverResponse} response
603
+ * @returns {Promise<void>}
604
+ */
605
+ exports.ipcRegisterDiscoverHandler = function (ipc_client, response) {
606
+ _assertClass(ipc_client, IpcClient);
607
+ const ret = wasm.ipcRegisterDiscoverHandler(ipc_client.__wbg_ptr, addHeapObject(response));
608
+ return takeObject(ret);
609
+ };
610
+
599
611
  /**
600
612
  * Sends a DiscoverRequest to the specified destination and returns the response.
601
613
  * @param {IpcClient} ipc_client
@@ -613,18 +625,6 @@ exports.ipcRequestDiscover = function (ipc_client, destination, abort_signal) {
613
625
  return takeObject(ret);
614
626
  };
615
627
 
616
- /**
617
- * Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
618
- * @param {IpcClient} ipc_client
619
- * @param {DiscoverResponse} response
620
- * @returns {Promise<void>}
621
- */
622
- exports.ipcRegisterDiscoverHandler = function (ipc_client, response) {
623
- _assertClass(ipc_client, IpcClient);
624
- const ret = wasm.ipcRegisterDiscoverHandler(ipc_client.__wbg_ptr, addHeapObject(response));
625
- return takeObject(ret);
626
- };
627
-
628
628
  /**
629
629
  * @param {any} error
630
630
  * @returns {boolean}
@@ -872,10 +872,10 @@ exports.isGetFolderError = function (error) {
872
872
  }
873
873
  };
874
874
 
875
- function wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(arg0, arg1, arg2) {
875
+ function wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d(arg0, arg1, arg2) {
876
876
  try {
877
877
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
878
- wasm.wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(
878
+ wasm.wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d(
879
879
  retptr,
880
880
  arg0,
881
881
  arg1,
@@ -891,20 +891,20 @@ function wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(arg0, arg
891
891
  }
892
892
  }
893
893
 
894
- function wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(arg0, arg1, arg2) {
895
- wasm.wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(
894
+ function wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1) {
895
+ wasm.wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1);
896
+ }
897
+
898
+ function wasm_bindgen__convert__closures_____invoke__h8043935442c5d178(arg0, arg1, arg2) {
899
+ wasm.wasm_bindgen__convert__closures_____invoke__h8043935442c5d178(
896
900
  arg0,
897
901
  arg1,
898
902
  addHeapObject(arg2),
899
903
  );
900
904
  }
901
905
 
902
- function wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1) {
903
- wasm.wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1);
904
- }
905
-
906
- function wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(arg0, arg1, arg2, arg3) {
907
- wasm.wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
906
+ function wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(arg0, arg1, arg2, arg3) {
907
+ wasm.wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(
908
908
  arg0,
909
909
  arg1,
910
910
  addHeapObject(arg2),
@@ -4642,7 +4642,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4642
4642
  }, arguments);
4643
4643
  };
4644
4644
 
4645
- exports.__wbg_cipher_dc744c7a90bf0dca = function (arg0) {
4645
+ exports.__wbg_cipher_62db5dbf622448fc = function (arg0) {
4646
4646
  const ret = getObject(arg0).cipher;
4647
4647
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4648
4648
  };
@@ -4735,7 +4735,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4735
4735
  return addHeapObject(ret);
4736
4736
  };
4737
4737
 
4738
- exports.__wbg_folder_c429c35fce1122c9 = function (arg0) {
4738
+ exports.__wbg_folder_3670a801e2aea1d6 = function (arg0) {
4739
4739
  const ret = getObject(arg0).folder;
4740
4740
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4741
4741
  };
@@ -4768,7 +4768,24 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4768
4768
  return ret;
4769
4769
  };
4770
4770
 
4771
- exports.__wbg_get_64ea302847f9968b = function () {
4771
+ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4772
+ const ret = getObject(arg0)[arg1 >>> 0];
4773
+ return addHeapObject(ret);
4774
+ };
4775
+
4776
+ exports.__wbg_get_access_token_4bf3517a5991fd37 = function (arg0) {
4777
+ const ret = getObject(arg0).get_access_token();
4778
+ return addHeapObject(ret);
4779
+ };
4780
+
4781
+ exports.__wbg_get_efcb449f58ec27c2 = function () {
4782
+ return handleError(function (arg0, arg1) {
4783
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4784
+ return addHeapObject(ret);
4785
+ }, arguments);
4786
+ };
4787
+
4788
+ exports.__wbg_get_f4ab009a17320067 = function () {
4772
4789
  return handleError(function (arg0, arg1, arg2) {
4773
4790
  let deferred0_0;
4774
4791
  let deferred0_1;
@@ -4783,7 +4800,7 @@ exports.__wbg_get_64ea302847f9968b = function () {
4783
4800
  }, arguments);
4784
4801
  };
4785
4802
 
4786
- exports.__wbg_get_67b7db44237fed1a = function () {
4803
+ exports.__wbg_get_f722e201eb524bb0 = function () {
4787
4804
  return handleError(function (arg0, arg1, arg2) {
4788
4805
  let deferred0_0;
4789
4806
  let deferred0_1;
@@ -4798,23 +4815,6 @@ exports.__wbg_get_67b7db44237fed1a = function () {
4798
4815
  }, arguments);
4799
4816
  };
4800
4817
 
4801
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4802
- const ret = getObject(arg0)[arg1 >>> 0];
4803
- return addHeapObject(ret);
4804
- };
4805
-
4806
- exports.__wbg_get_access_token_9452186249787cca = function (arg0) {
4807
- const ret = getObject(arg0).get_access_token();
4808
- return addHeapObject(ret);
4809
- };
4810
-
4811
- exports.__wbg_get_efcb449f58ec27c2 = function () {
4812
- return handleError(function (arg0, arg1) {
4813
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4814
- return addHeapObject(ret);
4815
- }, arguments);
4816
- };
4817
-
4818
4818
  exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
4819
4819
  const ret = getObject(arg0)[getObject(arg1)];
4820
4820
  return addHeapObject(ret);
@@ -4999,14 +4999,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4999
4999
  return ret;
5000
5000
  };
5001
5001
 
5002
- exports.__wbg_list_100306996c5a5d07 = function () {
5002
+ exports.__wbg_list_72abfd0da6d74d62 = function () {
5003
5003
  return handleError(function (arg0) {
5004
5004
  const ret = getObject(arg0).list();
5005
5005
  return addHeapObject(ret);
5006
5006
  }, arguments);
5007
5007
  };
5008
5008
 
5009
- exports.__wbg_list_645f068e2e4d0c5b = function () {
5009
+ exports.__wbg_list_bfc8908ee2a3a979 = function () {
5010
5010
  return handleError(function (arg0) {
5011
5011
  const ret = getObject(arg0).list();
5012
5012
  return addHeapObject(ret);
@@ -5091,7 +5091,7 @@ exports.__wbg_new_3c3d849046688a66 = function (arg0, arg1) {
5091
5091
  const a = state0.a;
5092
5092
  state0.a = 0;
5093
5093
  try {
5094
- return wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
5094
+ return wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(
5095
5095
  a,
5096
5096
  state0.b,
5097
5097
  arg0,
@@ -5250,7 +5250,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5250
5250
  }, arguments);
5251
5251
  };
5252
5252
 
5253
- exports.__wbg_remove_7cceb9e1fe991113 = function () {
5253
+ exports.__wbg_remove_85ecf2d53881ab64 = function () {
5254
5254
  return handleError(function (arg0, arg1, arg2) {
5255
5255
  let deferred0_0;
5256
5256
  let deferred0_1;
@@ -5265,7 +5265,7 @@ exports.__wbg_remove_7cceb9e1fe991113 = function () {
5265
5265
  }, arguments);
5266
5266
  };
5267
5267
 
5268
- exports.__wbg_remove_bc6c297db829f17d = function () {
5268
+ exports.__wbg_remove_9dfe3c8a8b55ece3 = function () {
5269
5269
  return handleError(function (arg0, arg1, arg2) {
5270
5270
  let deferred0_0;
5271
5271
  let deferred0_1;
@@ -5311,7 +5311,31 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5311
5311
  return addHeapObject(ret);
5312
5312
  };
5313
5313
 
5314
- exports.__wbg_set_26f95519d06bd003 = function () {
5314
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5315
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5316
+ };
5317
+
5318
+ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5319
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5320
+ return addHeapObject(ret);
5321
+ };
5322
+
5323
+ exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5324
+ getObject(arg0).body = getObject(arg1);
5325
+ };
5326
+
5327
+ exports.__wbg_set_c213c871859d6500 = function (arg0, arg1, arg2) {
5328
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5329
+ };
5330
+
5331
+ exports.__wbg_set_c2abbebe8b9ebee1 = function () {
5332
+ return handleError(function (arg0, arg1, arg2) {
5333
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5334
+ return ret;
5335
+ }, arguments);
5336
+ };
5337
+
5338
+ exports.__wbg_set_cc3d0f84989c5082 = function () {
5315
5339
  return handleError(function (arg0, arg1, arg2, arg3) {
5316
5340
  let deferred0_0;
5317
5341
  let deferred0_1;
@@ -5326,11 +5350,11 @@ exports.__wbg_set_26f95519d06bd003 = function () {
5326
5350
  }, arguments);
5327
5351
  };
5328
5352
 
5329
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5330
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5353
+ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5354
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5331
5355
  };
5332
5356
 
5333
- exports.__wbg_set_54cab6cf22747d0c = function () {
5357
+ exports.__wbg_set_d41196ff4da7a971 = function () {
5334
5358
  return handleError(function (arg0, arg1, arg2, arg3) {
5335
5359
  let deferred0_0;
5336
5360
  let deferred0_1;
@@ -5345,30 +5369,6 @@ exports.__wbg_set_54cab6cf22747d0c = function () {
5345
5369
  }, arguments);
5346
5370
  };
5347
5371
 
5348
- exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5349
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5350
- return addHeapObject(ret);
5351
- };
5352
-
5353
- exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5354
- getObject(arg0).body = getObject(arg1);
5355
- };
5356
-
5357
- exports.__wbg_set_c213c871859d6500 = function (arg0, arg1, arg2) {
5358
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5359
- };
5360
-
5361
- exports.__wbg_set_c2abbebe8b9ebee1 = function () {
5362
- return handleError(function (arg0, arg1, arg2) {
5363
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5364
- return ret;
5365
- }, arguments);
5366
- };
5367
-
5368
- exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5369
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5370
- };
5371
-
5372
5372
  exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
5373
5373
  getObject(arg0).headers = getObject(arg1);
5374
5374
  };
@@ -5533,45 +5533,12 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5533
5533
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5534
5534
  };
5535
5535
 
5536
- exports.__wbindgen_cast_18e7d5b03ebc0b46 = function (arg0, arg1) {
5537
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5538
- const ret = makeMutClosure(
5539
- arg0,
5540
- arg1,
5541
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5542
- wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5543
- );
5544
- return addHeapObject(ret);
5545
- };
5546
-
5547
5536
  exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5548
5537
  // Cast intrinsic for `Ref(String) -> Externref`.
5549
5538
  const ret = getStringFromWasm0(arg0, arg1);
5550
5539
  return addHeapObject(ret);
5551
5540
  };
5552
5541
 
5553
- exports.__wbindgen_cast_34ef3ce950757bdd = function (arg0, arg1) {
5554
- // 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`.
5555
- const ret = makeMutClosure(
5556
- arg0,
5557
- arg1,
5558
- wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5559
- wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5560
- );
5561
- return addHeapObject(ret);
5562
- };
5563
-
5564
- exports.__wbindgen_cast_397295739b4135cd = function (arg0, arg1) {
5565
- // 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`.
5566
- const ret = makeMutClosure(
5567
- arg0,
5568
- arg1,
5569
- wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5570
- wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b,
5571
- );
5572
- return addHeapObject(ret);
5573
- };
5574
-
5575
5542
  exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
5576
5543
  // Cast intrinsic for `U64 -> Externref`.
5577
5544
  const ret = BigInt.asUintN(64, arg0);
@@ -5586,13 +5553,13 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5586
5553
  return addHeapObject(ret);
5587
5554
  };
5588
5555
 
5589
- exports.__wbindgen_cast_6e095a3d144cfbd7 = function (arg0, arg1) {
5590
- // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5556
+ exports.__wbindgen_cast_66b9b6fddd3159a0 = function (arg0, arg1) {
5557
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5591
5558
  const ret = makeMutClosure(
5592
5559
  arg0,
5593
5560
  arg1,
5594
- wasm.wasm_bindgen__closure__destroy__h602c026e8307a31b,
5595
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5561
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5562
+ wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
5596
5563
  );
5597
5564
  return addHeapObject(ret);
5598
5565
  };
@@ -5605,35 +5572,68 @@ exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5605
5572
  return addHeapObject(ret);
5606
5573
  };
5607
5574
 
5608
- exports.__wbindgen_cast_8340b5b160d85933 = function (arg0, arg1) {
5609
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5575
+ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5576
+ // Cast intrinsic for `I64 -> Externref`.
5577
+ const ret = arg0;
5578
+ return addHeapObject(ret);
5579
+ };
5580
+
5581
+ exports.__wbindgen_cast_b70019a15f201a96 = function (arg0, arg1) {
5582
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5610
5583
  const ret = makeMutClosure(
5611
5584
  arg0,
5612
5585
  arg1,
5613
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5614
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5586
+ wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
5587
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5615
5588
  );
5616
5589
  return addHeapObject(ret);
5617
5590
  };
5618
5591
 
5619
- exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5620
- // Cast intrinsic for `I64 -> Externref`.
5621
- const ret = arg0;
5622
- return addHeapObject(ret);
5623
- };
5624
-
5625
5592
  exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5626
5593
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5627
5594
  const ret = getArrayU8FromWasm0(arg0, arg1);
5628
5595
  return addHeapObject(ret);
5629
5596
  };
5630
5597
 
5598
+ exports.__wbindgen_cast_d3c442d81884e8e4 = function (arg0, arg1) {
5599
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5600
+ const ret = makeMutClosure(
5601
+ arg0,
5602
+ arg1,
5603
+ wasm.wasm_bindgen__closure__destroy__h119ee11456c43c2a,
5604
+ wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d,
5605
+ );
5606
+ return addHeapObject(ret);
5607
+ };
5608
+
5631
5609
  exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5632
5610
  // Cast intrinsic for `F64 -> Externref`.
5633
5611
  const ret = arg0;
5634
5612
  return addHeapObject(ret);
5635
5613
  };
5636
5614
 
5615
+ exports.__wbindgen_cast_d9da8617cf4d65f6 = function (arg0, arg1) {
5616
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5617
+ const ret = makeMutClosure(
5618
+ arg0,
5619
+ arg1,
5620
+ wasm.wasm_bindgen__closure__destroy__h119ee11456c43c2a,
5621
+ wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
5622
+ );
5623
+ return addHeapObject(ret);
5624
+ };
5625
+
5626
+ exports.__wbindgen_cast_e1b8613407289e9c = function (arg0, arg1) {
5627
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5628
+ const ret = makeMutClosure(
5629
+ arg0,
5630
+ arg1,
5631
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5632
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5633
+ );
5634
+ return addHeapObject(ret);
5635
+ };
5636
+
5637
5637
  exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
5638
5638
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5639
5639
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -450,25 +450,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
450
450
  export const __wbg_registrationclient_free: (a: number, b: number) => void;
451
451
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
452
452
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
453
- export const wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b: (
453
+ export const wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d: (
454
454
  a: number,
455
455
  b: number,
456
456
  c: number,
457
457
  d: number,
458
458
  ) => void;
459
- export const wasm_bindgen__closure__destroy__h563da61d09f48819: (a: number, b: number) => void;
460
- export const wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820: (
459
+ export const wasm_bindgen__closure__destroy__h119ee11456c43c2a: (a: number, b: number) => void;
460
+ export const wasm_bindgen__convert__closures_____invoke__h62b881a194105b80: (
461
461
  a: number,
462
462
  b: number,
463
- c: number,
464
463
  ) => void;
465
- export const wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373: (
464
+ export const wasm_bindgen__closure__destroy__he95e920b8d9de938: (a: number, b: number) => void;
465
+ export const wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd: (a: number, b: number) => void;
466
+ export const wasm_bindgen__convert__closures_____invoke__h8043935442c5d178: (
466
467
  a: number,
467
468
  b: number,
469
+ c: number,
468
470
  ) => void;
469
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
470
- export const wasm_bindgen__closure__destroy__h602c026e8307a31b: (a: number, b: number) => void;
471
- export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
471
+ export const wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2: (
472
472
  a: number,
473
473
  b: number,
474
474
  c: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.434",
3
+ "version": "0.2.0-main.436",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",