@bitwarden/sdk-internal 0.2.0-main.437 → 0.2.0-main.439

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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0ef1ca6395d317f608c3736a88718d02c76e3f28
1
+ 93a331f5ebc8c01253fe25c400a67f8a5093fae7
@@ -180,10 +180,6 @@ export interface TokenProvider {
180
180
  get_access_token(): Promise<string | undefined>;
181
181
  }
182
182
 
183
- export interface IndexedDbConfiguration {
184
- db_name: string;
185
- }
186
-
187
183
  export interface Repositories {
188
184
  cipher: Repository<Cipher> | null;
189
185
  folder: Repository<Folder> | null;
@@ -194,37 +190,47 @@ export interface Repositories {
194
190
  */
195
191
  export interface FeatureFlags extends Map<string, boolean> {}
196
192
 
193
+ export interface IndexedDbConfiguration {
194
+ db_name: string;
195
+ }
196
+
197
197
  /**
198
- * The credentials used for send access requests.
198
+ * Credentials for sending an OTP to the user\'s email address.
199
+ * This is used when the send requires email verification with an OTP.
199
200
  */
200
- export type SendAccessCredentials =
201
- | SendPasswordCredentials
202
- | SendEmailOtpCredentials
203
- | SendEmailCredentials;
201
+ export interface SendEmailCredentials {
202
+ /**
203
+ * The email address to which the OTP will be sent.
204
+ */
205
+ email: string;
206
+ }
204
207
 
205
208
  /**
206
- * A request structure for requesting a send access token from the API.
209
+ * Credentials for getting a send access token using an email and OTP.
207
210
  */
208
- export interface SendAccessTokenRequest {
211
+ export interface SendEmailOtpCredentials {
209
212
  /**
210
- * The id of the send for which the access token is requested.
213
+ * The email address to which the OTP will be sent.
211
214
  */
212
- sendId: string;
215
+ email: string;
213
216
  /**
214
- * The optional send access credentials.
217
+ * The one-time password (OTP) that the user has received via email.
215
218
  */
216
- sendAccessCredentials?: SendAccessCredentials;
219
+ otp: string;
217
220
  }
218
221
 
219
222
  /**
220
- * Credentials for sending an OTP to the user\'s email address.
221
- * This is used when the send requires email verification with an OTP.
223
+ * A request structure for requesting a send access token from the API.
222
224
  */
223
- export interface SendEmailCredentials {
225
+ export interface SendAccessTokenRequest {
224
226
  /**
225
- * The email address to which the OTP will be sent.
227
+ * The id of the send for which the access token is requested.
226
228
  */
227
- email: string;
229
+ sendId: string;
230
+ /**
231
+ * The optional send access credentials.
232
+ */
233
+ sendAccessCredentials?: SendAccessCredentials;
228
234
  }
229
235
 
230
236
  /**
@@ -240,18 +246,12 @@ export interface SendPasswordCredentials {
240
246
  }
241
247
 
242
248
  /**
243
- * Credentials for getting a send access token using an email and OTP.
249
+ * The credentials used for send access requests.
244
250
  */
245
- export interface SendEmailOtpCredentials {
246
- /**
247
- * The email address to which the OTP will be sent.
248
- */
249
- email: string;
250
- /**
251
- * The one-time password (OTP) that the user has received via email.
252
- */
253
- otp: string;
254
- }
251
+ export type SendAccessCredentials =
252
+ | SendPasswordCredentials
253
+ | SendEmailOtpCredentials
254
+ | SendEmailCredentials;
255
255
 
256
256
  /**
257
257
  * A send access token which can be used to access a send.
@@ -267,14 +267,6 @@ export interface SendAccessTokenResponse {
267
267
  expiresAt: number;
268
268
  }
269
269
 
270
- /**
271
- * Represents errors that can occur when requesting a send access token.
272
- * It includes expected and unexpected API errors.
273
- */
274
- export type SendAccessTokenError =
275
- | { kind: "unexpected"; data: UnexpectedIdentityError }
276
- | { kind: "expected"; data: SendAccessTokenApiErrorResponse };
277
-
278
270
  /**
279
271
  * Any unexpected error that occurs when making requests to identity. This could be
280
272
  * local/transport/decoding failure from the HTTP client (DNS/TLS/connect/read timeout,
@@ -286,14 +278,21 @@ export type SendAccessTokenError =
286
278
  export type UnexpectedIdentityError = string;
287
279
 
288
280
  /**
289
- * Invalid grant errors - typically due to invalid credentials.
281
+ * Represents errors that can occur when requesting a send access token.
282
+ * It includes expected and unexpected API errors.
290
283
  */
291
- export type SendAccessTokenInvalidGrantError =
292
- | "send_id_invalid"
293
- | "password_hash_b64_invalid"
294
- | "email_invalid"
295
- | "otp_invalid"
296
- | "otp_generation_failed"
284
+ export type SendAccessTokenError =
285
+ | { kind: "unexpected"; data: UnexpectedIdentityError }
286
+ | { kind: "expected"; data: SendAccessTokenApiErrorResponse };
287
+
288
+ /**
289
+ * Invalid request errors - typically due to missing parameters.
290
+ */
291
+ export type SendAccessTokenInvalidRequestError =
292
+ | "send_id_required"
293
+ | "password_hash_b64_required"
294
+ | "email_required"
295
+ | "email_and_otp_required_otp_sent"
297
296
  | "unknown";
298
297
 
299
298
  /**
@@ -317,15 +316,68 @@ export type SendAccessTokenApiErrorResponse =
317
316
  | { error: "invalid_target"; error_description?: string };
318
317
 
319
318
  /**
320
- * Invalid request errors - typically due to missing parameters.
319
+ * Invalid grant errors - typically due to invalid credentials.
321
320
  */
322
- export type SendAccessTokenInvalidRequestError =
323
- | "send_id_required"
324
- | "password_hash_b64_required"
325
- | "email_required"
326
- | "email_and_otp_required_otp_sent"
321
+ export type SendAccessTokenInvalidGrantError =
322
+ | "send_id_invalid"
323
+ | "password_hash_b64_invalid"
324
+ | "email_invalid"
325
+ | "otp_invalid"
326
+ | "otp_generation_failed"
327
327
  | "unknown";
328
328
 
329
+ /**
330
+ * Result of TDE registration process.
331
+ */
332
+ export interface TdeRegistrationResponse {
333
+ /**
334
+ * The account cryptographic state of the user
335
+ */
336
+ account_cryptographic_state: WrappedAccountCryptographicState;
337
+ /**
338
+ * The device key
339
+ */
340
+ device_key: B64;
341
+ /**
342
+ * The decrypted user key. This can be used to get the consuming client to an unlocked state.
343
+ */
344
+ user_key: B64;
345
+ }
346
+
347
+ export interface RegistrationError extends Error {
348
+ name: "RegistrationError";
349
+ variant: "Api" | "Crypto";
350
+ }
351
+
352
+ export function isRegistrationError(error: any): error is RegistrationError;
353
+
354
+ /**
355
+ * Request parameters for TDE (Trusted Device Encryption) registration.
356
+ */
357
+ export interface TdeRegistrationRequest {
358
+ /**
359
+ * Organization ID to enroll in
360
+ */
361
+ org_id: OrganizationId;
362
+ /**
363
+ * Organization\'s public key for encrypting the reset password key. This should be verified by
364
+ * the client and not verifying may compromise the security of the user\'s account.
365
+ */
366
+ org_public_key: B64;
367
+ /**
368
+ * User ID for the account being initialized
369
+ */
370
+ user_id: UserId;
371
+ /**
372
+ * Device identifier for TDE enrollment
373
+ */
374
+ device_identifier: string;
375
+ /**
376
+ * Whether to trust this device for TDE
377
+ */
378
+ trust_device: boolean;
379
+ }
380
+
329
381
  /**
330
382
  * NewType wrapper for `CollectionId`
331
383
  */
@@ -560,6 +612,13 @@ export interface VerifyAsymmetricKeysRequest {
560
612
  userKeyEncryptedPrivateKey: EncString;
561
613
  }
562
614
 
615
+ export interface MakeKeysError extends Error {
616
+ name: "MakeKeysError";
617
+ variant: "AccountCryptographyInitialization" | "RequestModelCreation" | "Crypto";
618
+ }
619
+
620
+ export function isMakeKeysError(error: any): error is MakeKeysError;
621
+
563
622
  /**
564
623
  * Response for the `make_keys_for_user_crypto_v2`, containing a set of keys for a user
565
624
  */
@@ -790,6 +849,25 @@ export type UnsignedSharedKey = Tagged<string, "UnsignedSharedKey">;
790
849
 
791
850
  export type EncString = Tagged<string, "EncString">;
792
851
 
852
+ export interface TrustDeviceResponse {
853
+ /**
854
+ * Base64 encoded device key
855
+ */
856
+ device_key: B64;
857
+ /**
858
+ * UserKey encrypted with DevicePublicKey
859
+ */
860
+ protected_user_key: UnsignedSharedKey;
861
+ /**
862
+ * DevicePrivateKey encrypted with [DeviceKey]
863
+ */
864
+ protected_device_private_key: EncString;
865
+ /**
866
+ * DevicePublicKey encrypted with [UserKey](super::UserKey)
867
+ */
868
+ protected_device_public_key: EncString;
869
+ }
870
+
793
871
  export type SignedPublicKey = Tagged<string, "SignedPublicKey">;
794
872
 
795
873
  /**
@@ -2511,6 +2589,11 @@ export class RegistrationClient {
2511
2589
  private constructor();
2512
2590
  free(): void;
2513
2591
  [Symbol.dispose](): void;
2592
+ /**
2593
+ * Initializes a new cryptographic state for a user and posts it to the server; enrolls in
2594
+ * admin password reset and finally enrolls the user to TDE unlock.
2595
+ */
2596
+ post_keys_for_tde_registration(request: TdeRegistrationRequest): Promise<TdeRegistrationResponse>;
2514
2597
  }
2515
2598
  /**
2516
2599
  * The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
@@ -215,16 +215,6 @@ 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
-
228
218
  const CLOSURE_DTORS =
229
219
  typeof FinalizationRegistry === "undefined"
230
220
  ? { register: () => {}, unregister: () => {} }
@@ -257,6 +247,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
257
247
  return real;
258
248
  }
259
249
 
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);
@@ -358,6 +358,19 @@ export function isTestError(error) {
358
358
  }
359
359
  }
360
360
 
361
+ /**
362
+ * @param {any} error
363
+ * @returns {boolean}
364
+ */
365
+ export function isRegistrationError(error) {
366
+ try {
367
+ const ret = wasm.isRegistrationError(addBorrowedObject(error));
368
+ return ret !== 0;
369
+ } finally {
370
+ heap[stack_pointer++] = undefined;
371
+ }
372
+ }
373
+
361
374
  /**
362
375
  * @param {any} error
363
376
  * @returns {boolean}
@@ -436,6 +449,19 @@ export function isDeriveKeyConnectorError(error) {
436
449
  }
437
450
  }
438
451
 
452
+ /**
453
+ * @param {any} error
454
+ * @returns {boolean}
455
+ */
456
+ export function isMakeKeysError(error) {
457
+ try {
458
+ const ret = wasm.isMakeKeysError(addBorrowedObject(error));
459
+ return ret !== 0;
460
+ } finally {
461
+ heap[stack_pointer++] = undefined;
462
+ }
463
+ }
464
+
439
465
  /**
440
466
  * @param {any} error
441
467
  * @returns {boolean}
@@ -882,14 +908,10 @@ export function isGetFolderError(error) {
882
908
  }
883
909
  }
884
910
 
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__hdcab5206aa3b5a3d(arg0, arg1, arg2) {
911
+ function wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd(arg0, arg1, arg2) {
890
912
  try {
891
913
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
892
- wasm.wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d(
914
+ wasm.wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd(
893
915
  retptr,
894
916
  arg0,
895
917
  arg1,
@@ -905,8 +927,12 @@ function wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d(arg0, arg
905
927
  }
906
928
  }
907
929
 
908
- function wasm_bindgen__convert__closures_____invoke__h8043935442c5d178(arg0, arg1, arg2) {
909
- wasm.wasm_bindgen__convert__closures_____invoke__h8043935442c5d178(
930
+ function wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1) {
931
+ wasm.wasm_bindgen__convert__closures_____invoke__h62b881a194105b80(arg0, arg1);
932
+ }
933
+
934
+ function wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92(arg0, arg1, arg2) {
935
+ wasm.wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92(
910
936
  arg0,
911
937
  arg1,
912
938
  addHeapObject(arg2),
@@ -4184,6 +4210,19 @@ export class RegistrationClient {
4184
4210
  const ptr = this.__destroy_into_raw();
4185
4211
  wasm.__wbg_registrationclient_free(ptr, 0);
4186
4212
  }
4213
+ /**
4214
+ * Initializes a new cryptographic state for a user and posts it to the server; enrolls in
4215
+ * admin password reset and finally enrolls the user to TDE unlock.
4216
+ * @param {TdeRegistrationRequest} request
4217
+ * @returns {Promise<TdeRegistrationResponse>}
4218
+ */
4219
+ post_keys_for_tde_registration(request) {
4220
+ const ret = wasm.registrationclient_post_keys_for_tde_registration(
4221
+ this.__wbg_ptr,
4222
+ addHeapObject(request),
4223
+ );
4224
+ return takeObject(ret);
4225
+ }
4187
4226
  }
4188
4227
  if (Symbol.dispose)
4189
4228
  RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
@@ -4602,7 +4641,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4602
4641
  }, arguments);
4603
4642
  }
4604
4643
 
4605
- export function __wbg_cipher_0c36627f8f30cc7e(arg0) {
4644
+ export function __wbg_cipher_d8856dd2ce7150aa(arg0) {
4606
4645
  const ret = getObject(arg0).cipher;
4607
4646
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4608
4647
  }
@@ -4695,7 +4734,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4695
4734
  return addHeapObject(ret);
4696
4735
  }
4697
4736
 
4698
- export function __wbg_folder_10fbce592672ac71(arg0) {
4737
+ export function __wbg_folder_9c099dc41053c5a6(arg0) {
4699
4738
  const ret = getObject(arg0).folder;
4700
4739
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4701
4740
  }
@@ -4728,7 +4767,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4728
4767
  return ret;
4729
4768
  }
4730
4769
 
4731
- export function __wbg_get_2a39e9542c1cdc94() {
4770
+ export function __wbg_get_72f445e17ec1aa21() {
4732
4771
  return handleError(function (arg0, arg1, arg2) {
4733
4772
  let deferred0_0;
4734
4773
  let deferred0_1;
@@ -4748,7 +4787,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4748
4787
  return addHeapObject(ret);
4749
4788
  }
4750
4789
 
4751
- export function __wbg_get_a500a1cf45d12e9b() {
4790
+ export function __wbg_get_access_token_4c961c3c68d8878a(arg0) {
4791
+ const ret = getObject(arg0).get_access_token();
4792
+ return addHeapObject(ret);
4793
+ }
4794
+
4795
+ export function __wbg_get_d96fcc610ee6c044() {
4752
4796
  return handleError(function (arg0, arg1, arg2) {
4753
4797
  let deferred0_0;
4754
4798
  let deferred0_1;
@@ -4763,11 +4807,6 @@ export function __wbg_get_a500a1cf45d12e9b() {
4763
4807
  }, arguments);
4764
4808
  }
4765
4809
 
4766
- export function __wbg_get_access_token_acb10922a5e768ad(arg0) {
4767
- const ret = getObject(arg0).get_access_token();
4768
- return addHeapObject(ret);
4769
- }
4770
-
4771
4810
  export function __wbg_get_efcb449f58ec27c2() {
4772
4811
  return handleError(function (arg0, arg1) {
4773
4812
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
@@ -4959,14 +4998,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
4959
4998
  return ret;
4960
4999
  }
4961
5000
 
4962
- export function __wbg_list_87882139240c53e2() {
5001
+ export function __wbg_list_8b9cc57047c9d5a0() {
4963
5002
  return handleError(function (arg0) {
4964
5003
  const ret = getObject(arg0).list();
4965
5004
  return addHeapObject(ret);
4966
5005
  }, arguments);
4967
5006
  }
4968
5007
 
4969
- export function __wbg_list_cabbe4a6d3e09c15() {
5008
+ export function __wbg_list_99b0aedbac169079() {
4970
5009
  return handleError(function (arg0) {
4971
5010
  const ret = getObject(arg0).list();
4972
5011
  return addHeapObject(ret);
@@ -5210,7 +5249,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5210
5249
  }, arguments);
5211
5250
  }
5212
5251
 
5213
- export function __wbg_remove_491c4cc200722fdc() {
5252
+ export function __wbg_remove_30835cf5f8b44c8a() {
5214
5253
  return handleError(function (arg0, arg1, arg2) {
5215
5254
  let deferred0_0;
5216
5255
  let deferred0_1;
@@ -5225,7 +5264,7 @@ export function __wbg_remove_491c4cc200722fdc() {
5225
5264
  }, arguments);
5226
5265
  }
5227
5266
 
5228
- export function __wbg_remove_ca1a2c33e546529e() {
5267
+ export function __wbg_remove_4dc0918671fbf62d() {
5229
5268
  return handleError(function (arg0, arg1, arg2) {
5230
5269
  let deferred0_0;
5231
5270
  let deferred0_1;
@@ -5280,6 +5319,21 @@ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5280
5319
  return addHeapObject(ret);
5281
5320
  }
5282
5321
 
5322
+ export function __wbg_set_9bbfa30b630bbb2e() {
5323
+ return handleError(function (arg0, arg1, arg2, arg3) {
5324
+ let deferred0_0;
5325
+ let deferred0_1;
5326
+ try {
5327
+ deferred0_0 = arg1;
5328
+ deferred0_1 = arg2;
5329
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5330
+ return addHeapObject(ret);
5331
+ } finally {
5332
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5333
+ }
5334
+ }, arguments);
5335
+ }
5336
+
5283
5337
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5284
5338
  getObject(arg0).body = getObject(arg1);
5285
5339
  }
@@ -5299,22 +5353,7 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5299
5353
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5300
5354
  }
5301
5355
 
5302
- export function __wbg_set_dd61f32bc8ce7525() {
5303
- return handleError(function (arg0, arg1, arg2, arg3) {
5304
- let deferred0_0;
5305
- let deferred0_1;
5306
- try {
5307
- deferred0_0 = arg1;
5308
- deferred0_1 = arg2;
5309
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5310
- return addHeapObject(ret);
5311
- } finally {
5312
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5313
- }
5314
- }, arguments);
5315
- }
5316
-
5317
- export function __wbg_set_f3daacef771cf194() {
5356
+ export function __wbg_set_ea5d171269c04495() {
5318
5357
  return handleError(function (arg0, arg1, arg2, arg3) {
5319
5358
  let deferred0_0;
5320
5359
  let deferred0_1;
@@ -5493,6 +5532,17 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5493
5532
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5494
5533
  }
5495
5534
 
5535
+ export function __wbindgen_cast_20857c511765411e(arg0, arg1) {
5536
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 46, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5537
+ const ret = makeMutClosure(
5538
+ arg0,
5539
+ arg1,
5540
+ wasm.wasm_bindgen__closure__destroy__h541fb5a7c811e354,
5541
+ wasm_bindgen__convert__closures_____invoke__h55c4ad30869c1fdd,
5542
+ );
5543
+ return addHeapObject(ret);
5544
+ }
5545
+
5496
5546
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5497
5547
  // Cast intrinsic for `Ref(String) -> Externref`.
5498
5548
  const ret = getStringFromWasm0(arg0, arg1);
@@ -5505,6 +5555,17 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
5505
5555
  return addHeapObject(ret);
5506
5556
  }
5507
5557
 
5558
+ export function __wbindgen_cast_5774b2b6fba5c6d4(arg0, arg1) {
5559
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5560
+ const ret = makeMutClosure(
5561
+ arg0,
5562
+ arg1,
5563
+ wasm.wasm_bindgen__closure__destroy__h541fb5a7c811e354,
5564
+ wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92,
5565
+ );
5566
+ return addHeapObject(ret);
5567
+ }
5568
+
5508
5569
  export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
5509
5570
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5510
5571
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5513,17 +5574,6 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
5513
5574
  return addHeapObject(ret);
5514
5575
  }
5515
5576
 
5516
- export function __wbindgen_cast_66b9b6fddd3159a0(arg0, arg1) {
5517
- // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5518
- const ret = makeMutClosure(
5519
- arg0,
5520
- arg1,
5521
- wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5522
- wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
5523
- );
5524
- return addHeapObject(ret);
5525
- }
5526
-
5527
5577
  export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
5528
5578
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5529
5579
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5538,12 +5588,12 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
5538
5588
  return addHeapObject(ret);
5539
5589
  }
5540
5590
 
5541
- export function __wbindgen_cast_b70019a15f201a96(arg0, arg1) {
5542
- // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5591
+ export function __wbindgen_cast_ab87f469c2c8c8ee(arg0, arg1) {
5592
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 311, function: Function { arguments: [], shim_idx: 312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5543
5593
  const ret = makeMutClosure(
5544
5594
  arg0,
5545
5595
  arg1,
5546
- wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
5596
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5547
5597
  wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5548
5598
  );
5549
5599
  return addHeapObject(ret);
@@ -5555,40 +5605,18 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5555
5605
  return addHeapObject(ret);
5556
5606
  }
5557
5607
 
5558
- export function __wbindgen_cast_d3c442d81884e8e4(arg0, arg1) {
5559
- // 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`.
5560
- const ret = makeMutClosure(
5561
- arg0,
5562
- arg1,
5563
- wasm.wasm_bindgen__closure__destroy__h119ee11456c43c2a,
5564
- wasm_bindgen__convert__closures_____invoke__hdcab5206aa3b5a3d,
5565
- );
5566
- return addHeapObject(ret);
5567
- }
5568
-
5569
5608
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5570
5609
  // Cast intrinsic for `F64 -> Externref`.
5571
5610
  const ret = arg0;
5572
5611
  return addHeapObject(ret);
5573
5612
  }
5574
5613
 
5575
- export function __wbindgen_cast_d9da8617cf4d65f6(arg0, arg1) {
5576
- // 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`.
5614
+ export function __wbindgen_cast_ebf67f1bd70fb06c(arg0, arg1) {
5615
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [], shim_idx: 312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5577
5616
  const ret = makeMutClosure(
5578
5617
  arg0,
5579
5618
  arg1,
5580
- wasm.wasm_bindgen__closure__destroy__h119ee11456c43c2a,
5581
- wasm_bindgen__convert__closures_____invoke__h8043935442c5d178,
5582
- );
5583
- return addHeapObject(ret);
5584
- }
5585
-
5586
- export function __wbindgen_cast_e1b8613407289e9c(arg0, arg1) {
5587
- // Cast intrinsic for `Closure(Closure { dtor_idx: 301, function: Function { arguments: [], shim_idx: 302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5588
- const ret = makeMutClosure(
5589
- arg0,
5590
- arg1,
5591
- wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5619
+ wasm.wasm_bindgen__closure__destroy__he95e920b8d9de938,
5592
5620
  wasm_bindgen__convert__closures_____invoke__h62b881a194105b80,
5593
5621
  );
5594
5622
  return addHeapObject(ret);
@@ -5602,6 +5630,17 @@ export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5602
5630
  return addHeapObject(ret);
5603
5631
  }
5604
5632
 
5633
+ export function __wbindgen_cast_fc753a9bbf7da392(arg0, arg1) {
5634
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 311, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5635
+ const ret = makeMutClosure(
5636
+ arg0,
5637
+ arg1,
5638
+ wasm.wasm_bindgen__closure__destroy__h4e2596d1eeea1ddd,
5639
+ wasm_bindgen__convert__closures_____invoke__h5cc2c3c66229bc92,
5640
+ );
5641
+ return addHeapObject(ret);
5642
+ }
5643
+
5605
5644
  export function __wbindgen_object_clone_ref(arg0) {
5606
5645
  const ret = getObject(arg0);
5607
5646
  return addHeapObject(ret);
Binary file