@bitwarden/commercial-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,22 @@ exports.isGetFolderError = function (error) {
872
872
  }
873
873
  };
874
874
 
875
- function wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(arg0, arg1, arg2) {
875
+ function wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1) {
876
+ wasm.wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1);
877
+ }
878
+
879
+ function wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd(arg0, arg1, arg2) {
880
+ wasm.wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd(
881
+ arg0,
882
+ arg1,
883
+ addHeapObject(arg2),
884
+ );
885
+ }
886
+
887
+ function wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3(arg0, arg1, arg2) {
876
888
  try {
877
889
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
878
- wasm.wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(
890
+ wasm.wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3(
879
891
  retptr,
880
892
  arg0,
881
893
  arg1,
@@ -891,20 +903,8 @@ function wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(arg0, arg
891
903
  }
892
904
  }
893
905
 
894
- function wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109(arg0, arg1, arg2) {
895
- wasm.wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109(
896
- arg0,
897
- arg1,
898
- addHeapObject(arg2),
899
- );
900
- }
901
-
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),
@@ -4725,7 +4725,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4725
4725
  }, arguments);
4726
4726
  };
4727
4727
 
4728
- exports.__wbg_cipher_dc744c7a90bf0dca = function (arg0) {
4728
+ exports.__wbg_cipher_62db5dbf622448fc = 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_c429c35fce1122c9 = function (arg0) {
4821
+ exports.__wbg_folder_3670a801e2aea1d6 = function (arg0) {
4822
4822
  const ret = getObject(arg0).folder;
4823
4823
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4824
4824
  };
@@ -4851,7 +4851,24 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4851
4851
  return ret;
4852
4852
  };
4853
4853
 
4854
- exports.__wbg_get_64ea302847f9968b = function () {
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_access_token_4bf3517a5991fd37 = function (arg0) {
4860
+ const ret = getObject(arg0).get_access_token();
4861
+ return addHeapObject(ret);
4862
+ };
4863
+
4864
+ exports.__wbg_get_efcb449f58ec27c2 = function () {
4865
+ return handleError(function (arg0, arg1) {
4866
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4867
+ return addHeapObject(ret);
4868
+ }, arguments);
4869
+ };
4870
+
4871
+ exports.__wbg_get_f4ab009a17320067 = function () {
4855
4872
  return handleError(function (arg0, arg1, arg2) {
4856
4873
  let deferred0_0;
4857
4874
  let deferred0_1;
@@ -4866,7 +4883,7 @@ exports.__wbg_get_64ea302847f9968b = function () {
4866
4883
  }, arguments);
4867
4884
  };
4868
4885
 
4869
- exports.__wbg_get_67b7db44237fed1a = function () {
4886
+ exports.__wbg_get_f722e201eb524bb0 = function () {
4870
4887
  return handleError(function (arg0, arg1, arg2) {
4871
4888
  let deferred0_0;
4872
4889
  let deferred0_1;
@@ -4881,23 +4898,6 @@ exports.__wbg_get_67b7db44237fed1a = function () {
4881
4898
  }, arguments);
4882
4899
  };
4883
4900
 
4884
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4885
- const ret = getObject(arg0)[arg1 >>> 0];
4886
- return addHeapObject(ret);
4887
- };
4888
-
4889
- exports.__wbg_get_access_token_9452186249787cca = function (arg0) {
4890
- const ret = getObject(arg0).get_access_token();
4891
- return addHeapObject(ret);
4892
- };
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_100306996c5a5d07 = function () {
5085
+ exports.__wbg_list_72abfd0da6d74d62 = 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_645f068e2e4d0c5b = function () {
5092
+ exports.__wbg_list_bfc8908ee2a3a979 = function () {
5093
5093
  return handleError(function (arg0) {
5094
5094
  const ret = getObject(arg0).list();
5095
5095
  return addHeapObject(ret);
@@ -5174,7 +5174,7 @@ exports.__wbg_new_3c3d849046688a66 = function (arg0, arg1) {
5174
5174
  const a = state0.a;
5175
5175
  state0.a = 0;
5176
5176
  try {
5177
- return wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
5177
+ return wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(
5178
5178
  a,
5179
5179
  state0.b,
5180
5180
  arg0,
@@ -5333,7 +5333,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5333
5333
  }, arguments);
5334
5334
  };
5335
5335
 
5336
- exports.__wbg_remove_7cceb9e1fe991113 = function () {
5336
+ exports.__wbg_remove_85ecf2d53881ab64 = 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_7cceb9e1fe991113 = function () {
5348
5348
  }, arguments);
5349
5349
  };
5350
5350
 
5351
- exports.__wbg_remove_bc6c297db829f17d = function () {
5351
+ exports.__wbg_remove_9dfe3c8a8b55ece3 = function () {
5352
5352
  return handleError(function (arg0, arg1, arg2) {
5353
5353
  let deferred0_0;
5354
5354
  let deferred0_1;
@@ -5394,7 +5394,31 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5394
5394
  return addHeapObject(ret);
5395
5395
  };
5396
5396
 
5397
- exports.__wbg_set_26f95519d06bd003 = function () {
5397
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5398
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5399
+ };
5400
+
5401
+ exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5402
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5403
+ return addHeapObject(ret);
5404
+ };
5405
+
5406
+ exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5407
+ getObject(arg0).body = getObject(arg1);
5408
+ };
5409
+
5410
+ exports.__wbg_set_c213c871859d6500 = function (arg0, arg1, arg2) {
5411
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5412
+ };
5413
+
5414
+ exports.__wbg_set_c2abbebe8b9ebee1 = function () {
5415
+ return handleError(function (arg0, arg1, arg2) {
5416
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5417
+ return ret;
5418
+ }, arguments);
5419
+ };
5420
+
5421
+ exports.__wbg_set_cc3d0f84989c5082 = function () {
5398
5422
  return handleError(function (arg0, arg1, arg2, arg3) {
5399
5423
  let deferred0_0;
5400
5424
  let deferred0_1;
@@ -5409,11 +5433,11 @@ exports.__wbg_set_26f95519d06bd003 = function () {
5409
5433
  }, arguments);
5410
5434
  };
5411
5435
 
5412
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5413
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5436
+ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5437
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5414
5438
  };
5415
5439
 
5416
- exports.__wbg_set_54cab6cf22747d0c = function () {
5440
+ exports.__wbg_set_d41196ff4da7a971 = function () {
5417
5441
  return handleError(function (arg0, arg1, arg2, arg3) {
5418
5442
  let deferred0_0;
5419
5443
  let deferred0_1;
@@ -5428,30 +5452,6 @@ exports.__wbg_set_54cab6cf22747d0c = function () {
5428
5452
  }, arguments);
5429
5453
  };
5430
5454
 
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
- exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
5437
- getObject(arg0).body = getObject(arg1);
5438
- };
5439
-
5440
- exports.__wbg_set_c213c871859d6500 = function (arg0, arg1, arg2) {
5441
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5442
- };
5443
-
5444
- exports.__wbg_set_c2abbebe8b9ebee1 = function () {
5445
- return handleError(function (arg0, arg1, arg2) {
5446
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5447
- return ret;
5448
- }, arguments);
5449
- };
5450
-
5451
- exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5452
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5453
- };
5454
-
5455
5455
  exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
5456
5456
  getObject(arg0).headers = getObject(arg1);
5457
5457
  };
@@ -5616,45 +5616,12 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5616
5616
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5617
5617
  };
5618
5618
 
5619
- exports.__wbindgen_cast_18e7d5b03ebc0b46 = function (arg0, arg1) {
5620
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5621
- const ret = makeMutClosure(
5622
- arg0,
5623
- arg1,
5624
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5625
- wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109,
5626
- );
5627
- return addHeapObject(ret);
5628
- };
5629
-
5630
5619
  exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5631
5620
  // Cast intrinsic for `Ref(String) -> Externref`.
5632
5621
  const ret = getStringFromWasm0(arg0, arg1);
5633
5622
  return addHeapObject(ret);
5634
5623
  };
5635
5624
 
5636
- exports.__wbindgen_cast_34ef3ce950757bdd = function (arg0, arg1) {
5637
- // 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`.
5638
- const ret = makeMutClosure(
5639
- arg0,
5640
- arg1,
5641
- wasm.wasm_bindgen__closure__destroy__h96ff2d5ee0ca699c,
5642
- wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109,
5643
- );
5644
- return addHeapObject(ret);
5645
- };
5646
-
5647
- exports.__wbindgen_cast_397295739b4135cd = function (arg0, arg1) {
5648
- // 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`.
5649
- const ret = makeMutClosure(
5650
- arg0,
5651
- arg1,
5652
- wasm.wasm_bindgen__closure__destroy__h96ff2d5ee0ca699c,
5653
- wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd,
5654
- );
5655
- return addHeapObject(ret);
5656
- };
5657
-
5658
5625
  exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
5659
5626
  // Cast intrinsic for `U64 -> Externref`.
5660
5627
  const ret = BigInt.asUintN(64, arg0);
@@ -5669,13 +5636,13 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5669
5636
  return addHeapObject(ret);
5670
5637
  };
5671
5638
 
5672
- exports.__wbindgen_cast_6e095a3d144cfbd7 = function (arg0, arg1) {
5673
- // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5639
+ exports.__wbindgen_cast_66b9b6fddd3159a0 = function (arg0, arg1) {
5640
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5674
5641
  const ret = makeMutClosure(
5675
5642
  arg0,
5676
5643
  arg1,
5677
- wasm.wasm_bindgen__closure__destroy__h602c026e8307a31b,
5678
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5644
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5645
+ wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd,
5679
5646
  );
5680
5647
  return addHeapObject(ret);
5681
5648
  };
@@ -5688,35 +5655,68 @@ exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5688
5655
  return addHeapObject(ret);
5689
5656
  };
5690
5657
 
5691
- exports.__wbindgen_cast_8340b5b160d85933 = function (arg0, arg1) {
5692
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5658
+ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5659
+ // Cast intrinsic for `I64 -> Externref`.
5660
+ const ret = arg0;
5661
+ return addHeapObject(ret);
5662
+ };
5663
+
5664
+ exports.__wbindgen_cast_b70019a15f201a96 = function (arg0, arg1) {
5665
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5693
5666
  const ret = makeMutClosure(
5694
5667
  arg0,
5695
5668
  arg1,
5696
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5697
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5669
+ wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
5670
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5698
5671
  );
5699
5672
  return addHeapObject(ret);
5700
5673
  };
5701
5674
 
5702
- exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5703
- // Cast intrinsic for `I64 -> Externref`.
5704
- const ret = arg0;
5705
- return addHeapObject(ret);
5706
- };
5707
-
5708
5675
  exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5709
5676
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5710
5677
  const ret = getArrayU8FromWasm0(arg0, arg1);
5711
5678
  return addHeapObject(ret);
5712
5679
  };
5713
5680
 
5681
+ exports.__wbindgen_cast_d3c442d81884e8e4 = function (arg0, arg1) {
5682
+ // 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`.
5683
+ const ret = makeMutClosure(
5684
+ arg0,
5685
+ arg1,
5686
+ wasm.wasm_bindgen__closure__destroy__h03764d3cf8644af3,
5687
+ wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3,
5688
+ );
5689
+ return addHeapObject(ret);
5690
+ };
5691
+
5714
5692
  exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5715
5693
  // Cast intrinsic for `F64 -> Externref`.
5716
5694
  const ret = arg0;
5717
5695
  return addHeapObject(ret);
5718
5696
  };
5719
5697
 
5698
+ exports.__wbindgen_cast_d9da8617cf4d65f6 = function (arg0, arg1) {
5699
+ // 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`.
5700
+ const ret = makeMutClosure(
5701
+ arg0,
5702
+ arg1,
5703
+ wasm.wasm_bindgen__closure__destroy__h03764d3cf8644af3,
5704
+ wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd,
5705
+ );
5706
+ return addHeapObject(ret);
5707
+ };
5708
+
5709
+ exports.__wbindgen_cast_e1b8613407289e9c = function (arg0, arg1) {
5710
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5711
+ const ret = makeMutClosure(
5712
+ arg0,
5713
+ arg1,
5714
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5715
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5716
+ );
5717
+ return addHeapObject(ret);
5718
+ };
5719
+
5720
5720
  exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
5721
5721
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5722
5722
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -454,25 +454,25 @@ 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__h2dff3e72f2bb88cd: (
457
+ export const wasm_bindgen__convert__closures_____invoke__h62b881a194105b80: (
458
458
  a: number,
459
459
  b: number,
460
- c: number,
461
- d: number,
462
460
  ) => void;
463
- export const wasm_bindgen__closure__destroy__h96ff2d5ee0ca699c: (a: number, b: number) => void;
464
- export const wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109: (
461
+ export const wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd: (a: number, b: number) => void;
462
+ export const wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd: (
465
463
  a: number,
466
464
  b: number,
467
465
  c: number,
468
466
  ) => void;
469
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
470
- export const wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373: (
467
+ export const wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3: (
471
468
  a: number,
472
469
  b: number,
470
+ c: number,
471
+ d: number,
473
472
  ) => void;
474
- export const wasm_bindgen__closure__destroy__h602c026e8307a31b: (a: number, b: number) => void;
475
- export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
473
+ export const wasm_bindgen__closure__destroy__h03764d3cf8644af3: (a: number, b: number) => void;
474
+ export const wasm_bindgen__closure__destroy__he95e920b8d9de938: (a: number, b: number) => void;
475
+ export const wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2: (
476
476
  a: number,
477
477
  b: number,
478
478
  c: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.434",
3
+ "version": "0.2.0-main.436",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",