@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.
@@ -215,6 +215,16 @@ function getArrayU8FromWasm0(ptr, len) {
215
215
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
216
216
  }
217
217
 
218
+ function getArrayJsValueFromWasm0(ptr, len) {
219
+ ptr = ptr >>> 0;
220
+ const mem = getDataViewMemory0();
221
+ const result = [];
222
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
223
+ result.push(takeObject(mem.getUint32(i, true)));
224
+ }
225
+ return result;
226
+ }
227
+
218
228
  const CLOSURE_DTORS =
219
229
  typeof FinalizationRegistry === "undefined"
220
230
  ? { register: () => {}, unregister: () => {} }
@@ -247,16 +257,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
247
257
  return real;
248
258
  }
249
259
 
250
- function getArrayJsValueFromWasm0(ptr, len) {
251
- ptr = ptr >>> 0;
252
- const mem = getDataViewMemory0();
253
- const result = [];
254
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
255
- result.push(takeObject(mem.getUint32(i, true)));
256
- }
257
- return result;
258
- }
259
-
260
260
  function passArray8ToWasm0(arg, malloc) {
261
261
  const ptr = malloc(arg.length * 1, 1) >>> 0;
262
262
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -264,33 +264,21 @@ function passArray8ToWasm0(arg, malloc) {
264
264
  return ptr;
265
265
  }
266
266
  /**
267
- * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
268
- * to an OpenSSH private key with public key and fingerprint
267
+ * Generate a new SSH key pair
269
268
  *
270
269
  * # Arguments
271
- * - `imported_key` - The private key to convert
272
- * - `password` - The password to use for decrypting the key
270
+ * - `key_algorithm` - The algorithm to use for the key pair
273
271
  *
274
272
  * # Returns
275
- * - `Ok(SshKey)` if the key was successfully coneverted
276
- * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
277
- * - `Err(WrongPassword)` if the password provided is incorrect
278
- * - `Err(ParsingError)` if the key could not be parsed
279
- * - `Err(UnsupportedKeyType)` if the key type is not supported
280
- * @param {string} imported_key
281
- * @param {string | null} [password]
273
+ * - `Ok(SshKey)` if the key was successfully generated
274
+ * - `Err(KeyGenerationError)` if the key could not be generated
275
+ * @param {KeyAlgorithm} key_algorithm
282
276
  * @returns {SshKeyView}
283
277
  */
284
- export function import_ssh_key(imported_key, password) {
278
+ export function generate_ssh_key(key_algorithm) {
285
279
  try {
286
280
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
287
- const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
288
- const len0 = WASM_VECTOR_LEN;
289
- var ptr1 = isLikeNone(password)
290
- ? 0
291
- : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
292
- var len1 = WASM_VECTOR_LEN;
293
- wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
281
+ wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
294
282
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
295
283
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
296
284
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -304,21 +292,33 @@ export function import_ssh_key(imported_key, password) {
304
292
  }
305
293
 
306
294
  /**
307
- * Generate a new SSH key pair
295
+ * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
296
+ * to an OpenSSH private key with public key and fingerprint
308
297
  *
309
298
  * # Arguments
310
- * - `key_algorithm` - The algorithm to use for the key pair
299
+ * - `imported_key` - The private key to convert
300
+ * - `password` - The password to use for decrypting the key
311
301
  *
312
302
  * # Returns
313
- * - `Ok(SshKey)` if the key was successfully generated
314
- * - `Err(KeyGenerationError)` if the key could not be generated
315
- * @param {KeyAlgorithm} key_algorithm
303
+ * - `Ok(SshKey)` if the key was successfully coneverted
304
+ * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
305
+ * - `Err(WrongPassword)` if the password provided is incorrect
306
+ * - `Err(ParsingError)` if the key could not be parsed
307
+ * - `Err(UnsupportedKeyType)` if the key type is not supported
308
+ * @param {string} imported_key
309
+ * @param {string | null} [password]
316
310
  * @returns {SshKeyView}
317
311
  */
318
- export function generate_ssh_key(key_algorithm) {
312
+ export function import_ssh_key(imported_key, password) {
319
313
  try {
320
314
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
321
- wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
315
+ const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
+ const len0 = WASM_VECTOR_LEN;
317
+ var ptr1 = isLikeNone(password)
318
+ ? 0
319
+ : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
+ var len1 = WASM_VECTOR_LEN;
321
+ wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
322
322
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
323
323
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
324
324
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -401,9 +401,9 @@ export function isAccountCryptographyInitializationError(error) {
401
401
  * @param {any} error
402
402
  * @returns {boolean}
403
403
  */
404
- export function isDeriveKeyConnectorError(error) {
404
+ export function isEnrollAdminPasswordResetError(error) {
405
405
  try {
406
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
406
+ const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
407
407
  return ret !== 0;
408
408
  } finally {
409
409
  heap[stack_pointer++] = undefined;
@@ -414,9 +414,9 @@ export function isDeriveKeyConnectorError(error) {
414
414
  * @param {any} error
415
415
  * @returns {boolean}
416
416
  */
417
- export function isEnrollAdminPasswordResetError(error) {
417
+ export function isCryptoClientError(error) {
418
418
  try {
419
- const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
419
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
420
420
  return ret !== 0;
421
421
  } finally {
422
422
  heap[stack_pointer++] = undefined;
@@ -427,9 +427,9 @@ export function isEnrollAdminPasswordResetError(error) {
427
427
  * @param {any} error
428
428
  * @returns {boolean}
429
429
  */
430
- export function isCryptoClientError(error) {
430
+ export function isDeriveKeyConnectorError(error) {
431
431
  try {
432
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
432
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
433
433
  return ret !== 0;
434
434
  } finally {
435
435
  heap[stack_pointer++] = undefined;
@@ -527,9 +527,9 @@ export function isUsernameError(error) {
527
527
  * @param {any} error
528
528
  * @returns {boolean}
529
529
  */
530
- export function isRequestError(error) {
530
+ export function isSubscribeError(error) {
531
531
  try {
532
- const ret = wasm.isRequestError(addBorrowedObject(error));
532
+ const ret = wasm.isSubscribeError(addBorrowedObject(error));
533
533
  return ret !== 0;
534
534
  } finally {
535
535
  heap[stack_pointer++] = undefined;
@@ -540,9 +540,9 @@ export function isRequestError(error) {
540
540
  * @param {any} error
541
541
  * @returns {boolean}
542
542
  */
543
- export function isTypedReceiveError(error) {
543
+ export function isRequestError(error) {
544
544
  try {
545
- const ret = wasm.isTypedReceiveError(addBorrowedObject(error));
545
+ const ret = wasm.isRequestError(addBorrowedObject(error));
546
546
  return ret !== 0;
547
547
  } finally {
548
548
  heap[stack_pointer++] = undefined;
@@ -553,9 +553,9 @@ export function isTypedReceiveError(error) {
553
553
  * @param {any} error
554
554
  * @returns {boolean}
555
555
  */
556
- export function isSubscribeError(error) {
556
+ export function isReceiveError(error) {
557
557
  try {
558
- const ret = wasm.isSubscribeError(addBorrowedObject(error));
558
+ const ret = wasm.isReceiveError(addBorrowedObject(error));
559
559
  return ret !== 0;
560
560
  } finally {
561
561
  heap[stack_pointer++] = undefined;
@@ -566,9 +566,9 @@ export function isSubscribeError(error) {
566
566
  * @param {any} error
567
567
  * @returns {boolean}
568
568
  */
569
- export function isReceiveError(error) {
569
+ export function isTypedReceiveError(error) {
570
570
  try {
571
- const ret = wasm.isReceiveError(addBorrowedObject(error));
571
+ const ret = wasm.isTypedReceiveError(addBorrowedObject(error));
572
572
  return ret !== 0;
573
573
  } finally {
574
574
  heap[stack_pointer++] = undefined;
@@ -584,9 +584,9 @@ function _assertClass(instance, klass) {
584
584
  * @param {any} error
585
585
  * @returns {boolean}
586
586
  */
587
- export function isDeserializeError(error) {
587
+ export function isChannelError(error) {
588
588
  try {
589
- const ret = wasm.isDeserializeError(addBorrowedObject(error));
589
+ const ret = wasm.isChannelError(addBorrowedObject(error));
590
590
  return ret !== 0;
591
591
  } finally {
592
592
  heap[stack_pointer++] = undefined;
@@ -597,15 +597,27 @@ export function isDeserializeError(error) {
597
597
  * @param {any} error
598
598
  * @returns {boolean}
599
599
  */
600
- export function isChannelError(error) {
600
+ export function isDeserializeError(error) {
601
601
  try {
602
- const ret = wasm.isChannelError(addBorrowedObject(error));
602
+ const ret = wasm.isDeserializeError(addBorrowedObject(error));
603
603
  return ret !== 0;
604
604
  } finally {
605
605
  heap[stack_pointer++] = undefined;
606
606
  }
607
607
  }
608
608
 
609
+ /**
610
+ * Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
611
+ * @param {IpcClient} ipc_client
612
+ * @param {DiscoverResponse} response
613
+ * @returns {Promise<void>}
614
+ */
615
+ export function ipcRegisterDiscoverHandler(ipc_client, response) {
616
+ _assertClass(ipc_client, IpcClient);
617
+ const ret = wasm.ipcRegisterDiscoverHandler(ipc_client.__wbg_ptr, addHeapObject(response));
618
+ return takeObject(ret);
619
+ }
620
+
609
621
  /**
610
622
  * Sends a DiscoverRequest to the specified destination and returns the response.
611
623
  * @param {IpcClient} ipc_client
@@ -623,18 +635,6 @@ export function ipcRequestDiscover(ipc_client, destination, abort_signal) {
623
635
  return takeObject(ret);
624
636
  }
625
637
 
626
- /**
627
- * Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
628
- * @param {IpcClient} ipc_client
629
- * @param {DiscoverResponse} response
630
- * @returns {Promise<void>}
631
- */
632
- export function ipcRegisterDiscoverHandler(ipc_client, response) {
633
- _assertClass(ipc_client, IpcClient);
634
- const ret = wasm.ipcRegisterDiscoverHandler(ipc_client.__wbg_ptr, addHeapObject(response));
635
- return takeObject(ret);
636
- }
637
-
638
638
  /**
639
639
  * @param {any} error
640
640
  * @returns {boolean}
@@ -882,10 +882,22 @@ export function isGetFolderError(error) {
882
882
  }
883
883
  }
884
884
 
885
- function wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(arg0, arg1, arg2) {
885
+ function wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1) {
886
+ wasm.wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1);
887
+ }
888
+
889
+ function wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd(arg0, arg1, arg2) {
890
+ wasm.wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd(
891
+ arg0,
892
+ arg1,
893
+ addHeapObject(arg2),
894
+ );
895
+ }
896
+
897
+ function wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3(arg0, arg1, arg2) {
886
898
  try {
887
899
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
888
- wasm.wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(
900
+ wasm.wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3(
889
901
  retptr,
890
902
  arg0,
891
903
  arg1,
@@ -901,20 +913,8 @@ function wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd(arg0, arg
901
913
  }
902
914
  }
903
915
 
904
- function wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1) {
905
- wasm.wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1);
906
- }
907
-
908
- function wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109(arg0, arg1, arg2) {
909
- wasm.wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109(
910
- arg0,
911
- arg1,
912
- addHeapObject(arg2),
913
- );
914
- }
915
-
916
- function wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(arg0, arg1, arg2, arg3) {
917
- wasm.wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
916
+ function wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(arg0, arg1, arg2, arg3) {
917
+ wasm.wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(
918
918
  arg0,
919
919
  arg1,
920
920
  addHeapObject(arg2),
@@ -4681,7 +4681,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4681
4681
  }, arguments);
4682
4682
  }
4683
4683
 
4684
- export function __wbg_cipher_dc744c7a90bf0dca(arg0) {
4684
+ export function __wbg_cipher_62db5dbf622448fc(arg0) {
4685
4685
  const ret = getObject(arg0).cipher;
4686
4686
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4687
4687
  }
@@ -4774,7 +4774,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4774
4774
  return addHeapObject(ret);
4775
4775
  }
4776
4776
 
4777
- export function __wbg_folder_c429c35fce1122c9(arg0) {
4777
+ export function __wbg_folder_3670a801e2aea1d6(arg0) {
4778
4778
  const ret = getObject(arg0).folder;
4779
4779
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4780
4780
  }
@@ -4807,7 +4807,24 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4807
4807
  return ret;
4808
4808
  }
4809
4809
 
4810
- export function __wbg_get_64ea302847f9968b() {
4810
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4811
+ const ret = getObject(arg0)[arg1 >>> 0];
4812
+ return addHeapObject(ret);
4813
+ }
4814
+
4815
+ export function __wbg_get_access_token_4bf3517a5991fd37(arg0) {
4816
+ const ret = getObject(arg0).get_access_token();
4817
+ return addHeapObject(ret);
4818
+ }
4819
+
4820
+ export function __wbg_get_efcb449f58ec27c2() {
4821
+ return handleError(function (arg0, arg1) {
4822
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4823
+ return addHeapObject(ret);
4824
+ }, arguments);
4825
+ }
4826
+
4827
+ export function __wbg_get_f4ab009a17320067() {
4811
4828
  return handleError(function (arg0, arg1, arg2) {
4812
4829
  let deferred0_0;
4813
4830
  let deferred0_1;
@@ -4822,7 +4839,7 @@ export function __wbg_get_64ea302847f9968b() {
4822
4839
  }, arguments);
4823
4840
  }
4824
4841
 
4825
- export function __wbg_get_67b7db44237fed1a() {
4842
+ export function __wbg_get_f722e201eb524bb0() {
4826
4843
  return handleError(function (arg0, arg1, arg2) {
4827
4844
  let deferred0_0;
4828
4845
  let deferred0_1;
@@ -4837,23 +4854,6 @@ export function __wbg_get_67b7db44237fed1a() {
4837
4854
  }, arguments);
4838
4855
  }
4839
4856
 
4840
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4841
- const ret = getObject(arg0)[arg1 >>> 0];
4842
- return addHeapObject(ret);
4843
- }
4844
-
4845
- export function __wbg_get_access_token_9452186249787cca(arg0) {
4846
- const ret = getObject(arg0).get_access_token();
4847
- return addHeapObject(ret);
4848
- }
4849
-
4850
- export function __wbg_get_efcb449f58ec27c2() {
4851
- return handleError(function (arg0, arg1) {
4852
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4853
- return addHeapObject(ret);
4854
- }, arguments);
4855
- }
4856
-
4857
4857
  export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
4858
4858
  const ret = getObject(arg0)[getObject(arg1)];
4859
4859
  return addHeapObject(ret);
@@ -5038,14 +5038,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5038
5038
  return ret;
5039
5039
  }
5040
5040
 
5041
- export function __wbg_list_100306996c5a5d07() {
5041
+ export function __wbg_list_72abfd0da6d74d62() {
5042
5042
  return handleError(function (arg0) {
5043
5043
  const ret = getObject(arg0).list();
5044
5044
  return addHeapObject(ret);
5045
5045
  }, arguments);
5046
5046
  }
5047
5047
 
5048
- export function __wbg_list_645f068e2e4d0c5b() {
5048
+ export function __wbg_list_bfc8908ee2a3a979() {
5049
5049
  return handleError(function (arg0) {
5050
5050
  const ret = getObject(arg0).list();
5051
5051
  return addHeapObject(ret);
@@ -5130,7 +5130,7 @@ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
5130
5130
  const a = state0.a;
5131
5131
  state0.a = 0;
5132
5132
  try {
5133
- return wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
5133
+ return wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2(
5134
5134
  a,
5135
5135
  state0.b,
5136
5136
  arg0,
@@ -5289,7 +5289,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5289
5289
  }, arguments);
5290
5290
  }
5291
5291
 
5292
- export function __wbg_remove_7cceb9e1fe991113() {
5292
+ export function __wbg_remove_85ecf2d53881ab64() {
5293
5293
  return handleError(function (arg0, arg1, arg2) {
5294
5294
  let deferred0_0;
5295
5295
  let deferred0_1;
@@ -5304,7 +5304,7 @@ export function __wbg_remove_7cceb9e1fe991113() {
5304
5304
  }, arguments);
5305
5305
  }
5306
5306
 
5307
- export function __wbg_remove_bc6c297db829f17d() {
5307
+ export function __wbg_remove_9dfe3c8a8b55ece3() {
5308
5308
  return handleError(function (arg0, arg1, arg2) {
5309
5309
  let deferred0_0;
5310
5310
  let deferred0_1;
@@ -5350,7 +5350,31 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5350
5350
  return addHeapObject(ret);
5351
5351
  }
5352
5352
 
5353
- export function __wbg_set_26f95519d06bd003() {
5353
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5354
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5355
+ }
5356
+
5357
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5358
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5359
+ return addHeapObject(ret);
5360
+ }
5361
+
5362
+ export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5363
+ getObject(arg0).body = getObject(arg1);
5364
+ }
5365
+
5366
+ export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
5367
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5368
+ }
5369
+
5370
+ export function __wbg_set_c2abbebe8b9ebee1() {
5371
+ return handleError(function (arg0, arg1, arg2) {
5372
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5373
+ return ret;
5374
+ }, arguments);
5375
+ }
5376
+
5377
+ export function __wbg_set_cc3d0f84989c5082() {
5354
5378
  return handleError(function (arg0, arg1, arg2, arg3) {
5355
5379
  let deferred0_0;
5356
5380
  let deferred0_1;
@@ -5365,11 +5389,11 @@ export function __wbg_set_26f95519d06bd003() {
5365
5389
  }, arguments);
5366
5390
  }
5367
5391
 
5368
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5369
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5392
+ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5393
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5370
5394
  }
5371
5395
 
5372
- export function __wbg_set_54cab6cf22747d0c() {
5396
+ export function __wbg_set_d41196ff4da7a971() {
5373
5397
  return handleError(function (arg0, arg1, arg2, arg3) {
5374
5398
  let deferred0_0;
5375
5399
  let deferred0_1;
@@ -5384,30 +5408,6 @@ export function __wbg_set_54cab6cf22747d0c() {
5384
5408
  }, arguments);
5385
5409
  }
5386
5410
 
5387
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5388
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5389
- return addHeapObject(ret);
5390
- }
5391
-
5392
- export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5393
- getObject(arg0).body = getObject(arg1);
5394
- }
5395
-
5396
- export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
5397
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
5398
- }
5399
-
5400
- export function __wbg_set_c2abbebe8b9ebee1() {
5401
- return handleError(function (arg0, arg1, arg2) {
5402
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
5403
- return ret;
5404
- }, arguments);
5405
- }
5406
-
5407
- export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5408
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5409
- }
5410
-
5411
5411
  export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
5412
5412
  getObject(arg0).headers = getObject(arg1);
5413
5413
  }
@@ -5572,45 +5572,12 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5572
5572
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5573
5573
  }
5574
5574
 
5575
- export function __wbindgen_cast_18e7d5b03ebc0b46(arg0, arg1) {
5576
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5577
- const ret = makeMutClosure(
5578
- arg0,
5579
- arg1,
5580
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5581
- wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109,
5582
- );
5583
- return addHeapObject(ret);
5584
- }
5585
-
5586
5575
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5587
5576
  // Cast intrinsic for `Ref(String) -> Externref`.
5588
5577
  const ret = getStringFromWasm0(arg0, arg1);
5589
5578
  return addHeapObject(ret);
5590
5579
  }
5591
5580
 
5592
- export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
5593
- // 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`.
5594
- const ret = makeMutClosure(
5595
- arg0,
5596
- arg1,
5597
- wasm.wasm_bindgen__closure__destroy__h96ff2d5ee0ca699c,
5598
- wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109,
5599
- );
5600
- return addHeapObject(ret);
5601
- }
5602
-
5603
- export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
5604
- // 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`.
5605
- const ret = makeMutClosure(
5606
- arg0,
5607
- arg1,
5608
- wasm.wasm_bindgen__closure__destroy__h96ff2d5ee0ca699c,
5609
- wasm_bindgen__convert__closures_____invoke__h2dff3e72f2bb88cd,
5610
- );
5611
- return addHeapObject(ret);
5612
- }
5613
-
5614
5581
  export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
5615
5582
  // Cast intrinsic for `U64 -> Externref`.
5616
5583
  const ret = BigInt.asUintN(64, arg0);
@@ -5625,13 +5592,13 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
5625
5592
  return addHeapObject(ret);
5626
5593
  }
5627
5594
 
5628
- export function __wbindgen_cast_6e095a3d144cfbd7(arg0, arg1) {
5629
- // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5595
+ export function __wbindgen_cast_66b9b6fddd3159a0(arg0, arg1) {
5596
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5630
5597
  const ret = makeMutClosure(
5631
5598
  arg0,
5632
5599
  arg1,
5633
- wasm.wasm_bindgen__closure__destroy__h602c026e8307a31b,
5634
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5600
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5601
+ wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd,
5635
5602
  );
5636
5603
  return addHeapObject(ret);
5637
5604
  }
@@ -5644,35 +5611,68 @@ export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
5644
5611
  return addHeapObject(ret);
5645
5612
  }
5646
5613
 
5647
- export function __wbindgen_cast_8340b5b160d85933(arg0, arg1) {
5648
- // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5614
+ export function __wbindgen_cast_9ae0607507abb057(arg0) {
5615
+ // Cast intrinsic for `I64 -> Externref`.
5616
+ const ret = arg0;
5617
+ return addHeapObject(ret);
5618
+ }
5619
+
5620
+ export function __wbindgen_cast_b70019a15f201a96(arg0, arg1) {
5621
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5649
5622
  const ret = makeMutClosure(
5650
5623
  arg0,
5651
5624
  arg1,
5652
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5653
- wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5625
+ wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
5626
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5654
5627
  );
5655
5628
  return addHeapObject(ret);
5656
5629
  }
5657
5630
 
5658
- export function __wbindgen_cast_9ae0607507abb057(arg0) {
5659
- // Cast intrinsic for `I64 -> Externref`.
5660
- const ret = arg0;
5661
- return addHeapObject(ret);
5662
- }
5663
-
5664
5631
  export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5665
5632
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5666
5633
  const ret = getArrayU8FromWasm0(arg0, arg1);
5667
5634
  return addHeapObject(ret);
5668
5635
  }
5669
5636
 
5637
+ export function __wbindgen_cast_d3c442d81884e8e4(arg0, arg1) {
5638
+ // 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`.
5639
+ const ret = makeMutClosure(
5640
+ arg0,
5641
+ arg1,
5642
+ wasm.wasm_bindgen__closure__destroy__h03764d3cf8644af3,
5643
+ wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3,
5644
+ );
5645
+ return addHeapObject(ret);
5646
+ }
5647
+
5670
5648
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5671
5649
  // Cast intrinsic for `F64 -> Externref`.
5672
5650
  const ret = arg0;
5673
5651
  return addHeapObject(ret);
5674
5652
  }
5675
5653
 
5654
+ export function __wbindgen_cast_d9da8617cf4d65f6(arg0, arg1) {
5655
+ // 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`.
5656
+ const ret = makeMutClosure(
5657
+ arg0,
5658
+ arg1,
5659
+ wasm.wasm_bindgen__closure__destroy__h03764d3cf8644af3,
5660
+ wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd,
5661
+ );
5662
+ return addHeapObject(ret);
5663
+ }
5664
+
5665
+ export function __wbindgen_cast_e1b8613407289e9c(arg0, arg1) {
5666
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5667
+ const ret = makeMutClosure(
5668
+ arg0,
5669
+ arg1,
5670
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5671
+ wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5672
+ );
5673
+ return addHeapObject(ret);
5674
+ }
5675
+
5676
5676
  export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5677
5677
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5678
5678
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -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__h1920d8a7b3007373: (
461
+ export const wasm_bindgen__closure__destroy__he95e920b8d9de938: (a: number, b: number) => void;
462
+ export const wasm_bindgen__convert__closures_____invoke__h3ee6e6da36ea79fd: (
465
463
  a: number,
466
464
  b: number,
465
+ c: number,
467
466
  ) => void;
468
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
469
- export const wasm_bindgen__closure__destroy__h602c026e8307a31b: (a: number, b: number) => void;
470
- export const wasm_bindgen__convert__closures_____invoke__hb219eacf1aac2109: (
467
+ export const wasm_bindgen__closure__destroy__h03764d3cf8644af3: (a: number, b: number) => void;
468
+ export const wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd: (a: number, b: number) => void;
469
+ export const wasm_bindgen__convert__closures_____invoke__h4186fc9839e7cab3: (
471
470
  a: number,
472
471
  b: number,
473
472
  c: number,
473
+ d: number,
474
474
  ) => void;
475
- export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
475
+ export const wasm_bindgen__convert__closures_____invoke__h92667cd2c3a9eee2: (
476
476
  a: number,
477
477
  b: number,
478
478
  c: number,