@bitwarden/sdk-internal 0.2.0-main.523 → 0.2.0-main.525

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.
@@ -1,16 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Generate a new SSH key pair
5
- *
6
- * # Arguments
7
- * - `key_algorithm` - The algorithm to use for the key pair
8
- *
9
- * # Returns
10
- * - `Ok(SshKey)` if the key was successfully generated
11
- * - `Err(KeyGenerationError)` if the key could not be generated
12
- */
13
- export function generate_ssh_key(key_algorithm: KeyAlgorithm): SshKeyView;
14
3
  /**
15
4
  * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
16
5
  * to an OpenSSH private key with public key and fingerprint
@@ -27,6 +16,17 @@ export function generate_ssh_key(key_algorithm: KeyAlgorithm): SshKeyView;
27
16
  * - `Err(UnsupportedKeyType)` if the key type is not supported
28
17
  */
29
18
  export function import_ssh_key(imported_key: string, password?: string | null): SshKeyView;
19
+ /**
20
+ * Generate a new SSH key pair
21
+ *
22
+ * # Arguments
23
+ * - `key_algorithm` - The algorithm to use for the key pair
24
+ *
25
+ * # Returns
26
+ * - `Ok(SshKey)` if the key was successfully generated
27
+ * - `Err(KeyGenerationError)` if the key could not be generated
28
+ */
29
+ export function generate_ssh_key(key_algorithm: KeyAlgorithm): SshKeyView;
30
30
  export function init_sdk(log_level?: LogLevel | null): void;
31
31
  /**
32
32
  * Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
@@ -180,6 +180,10 @@ 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
+
183
187
  export interface Repositories {
184
188
  cipher: Repository<Cipher> | null;
185
189
  folder: Repository<Folder> | null;
@@ -190,10 +194,6 @@ export interface Repositories {
190
194
  */
191
195
  export interface FeatureFlags extends Map<string, boolean> {}
192
196
 
193
- export interface IndexedDbConfiguration {
194
- db_name: string;
195
- }
196
-
197
197
  /**
198
198
  * A request structure for requesting a send access token from the API.
199
199
  */
@@ -1272,6 +1272,39 @@ export function isServerCommunicationConfigRepositoryError(
1272
1272
  error: any,
1273
1273
  ): error is ServerCommunicationConfigRepositoryError;
1274
1274
 
1275
+ /**
1276
+ * A cookie acquired from the platform
1277
+ *
1278
+ * Represents a single cookie name/value pair as received from the browser or HTTP client.
1279
+ * For sharded cookies (AWS ALB pattern), each shard is a separate `AcquiredCookie` with
1280
+ * its own name including the `-{N}` suffix (e.g., `AWSELBAuthSessionCookie-0`).
1281
+ */
1282
+ export interface AcquiredCookie {
1283
+ /**
1284
+ * Cookie name
1285
+ *
1286
+ * For sharded cookies, this includes the shard suffix (e.g., `AWSELBAuthSessionCookie-0`)
1287
+ * For unsharded cookies, this is the cookie name without any suffix.
1288
+ */
1289
+ name: string;
1290
+ /**
1291
+ * Cookie value
1292
+ */
1293
+ value: string;
1294
+ }
1295
+
1296
+ export interface AcquireCookieError extends Error {
1297
+ name: "AcquireCookieError";
1298
+ variant:
1299
+ | "Cancelled"
1300
+ | "UnsupportedConfiguration"
1301
+ | "CookieNameMismatch"
1302
+ | "RepositoryGetError"
1303
+ | "RepositorySaveError";
1304
+ }
1305
+
1306
+ export function isAcquireCookieError(error: any): error is AcquireCookieError;
1307
+
1275
1308
  /**
1276
1309
  * Repository interface for storing server communication configuration.
1277
1310
  *
@@ -1297,6 +1330,26 @@ export interface ServerCommunicationConfigRepository {
1297
1330
  save(hostname: string, config: ServerCommunicationConfig): Promise<void>;
1298
1331
  }
1299
1332
 
1333
+ /**
1334
+ * Platform API interface for acquiring SSO cookies.
1335
+ *
1336
+ * Platform clients implement this interface to handle cookie acquisition
1337
+ * through browser redirects or other platform-specific mechanisms.
1338
+ */
1339
+ export interface ServerCommunicationConfigPlatformApi {
1340
+ /**
1341
+ * Acquires cookies for the given hostname.
1342
+ *
1343
+ * This typically involves redirecting to an IdP login page and extracting
1344
+ * cookies from the load balancer response. For sharded cookies, returns
1345
+ * multiple entries with names like "CookieName-0", "CookieName-1", etc.
1346
+ *
1347
+ * @param hostname The server hostname (e.g., "vault.acme.com")
1348
+ * @returns An array of AcquiredCookie objects, or undefined if acquisition failed or was cancelled
1349
+ */
1350
+ acquireCookies(hostname: string): Promise<AcquiredCookie[] | undefined>;
1351
+ }
1352
+
1300
1353
  /**
1301
1354
  * Server communication configuration
1302
1355
  */
@@ -1325,7 +1378,7 @@ export interface SsoCookieVendorConfig {
1325
1378
  */
1326
1379
  idp_login_url: string;
1327
1380
  /**
1328
- * Cookie name
1381
+ * Cookie name (base name, without shard suffix)
1329
1382
  */
1330
1383
  cookie_name: string;
1331
1384
  /**
@@ -1333,9 +1386,13 @@ export interface SsoCookieVendorConfig {
1333
1386
  */
1334
1387
  cookie_domain: string;
1335
1388
  /**
1336
- * Cookie value
1389
+ * Acquired cookies
1390
+ *
1391
+ * For sharded cookies, this contains multiple entries with names like
1392
+ * `AWSELBAuthSessionCookie-0`, `AWSELBAuthSessionCookie-1`, etc.
1393
+ * For unsharded cookies, this contains a single entry with the base name.
1337
1394
  */
1338
- cookie_value: string | undefined;
1395
+ cookie_value: AcquiredCookie[] | undefined;
1339
1396
  }
1340
1397
 
1341
1398
  export interface SshKeyExportError extends Error {
@@ -3051,6 +3108,25 @@ export class ServerCommunicationConfigClient {
3051
3108
  * Returns an error if the repository fails to retrieve the configuration.
3052
3109
  */
3053
3110
  getConfig(hostname: string): Promise<ServerCommunicationConfig>;
3111
+ /**
3112
+ * Acquires a cookie from the platform and saves it to the repository
3113
+ *
3114
+ * This method calls the platform API to trigger cookie acquisition (e.g., browser
3115
+ * redirect to IdP), then validates and stores the acquired cookie in the repository.
3116
+ *
3117
+ * # Arguments
3118
+ *
3119
+ * * `hostname` - The server hostname (e.g., "vault.acme.com")
3120
+ *
3121
+ * # Errors
3122
+ *
3123
+ * Returns an error if:
3124
+ * - Cookie acquisition was cancelled by the user
3125
+ * - Server configuration doesn't support SSO cookies (Direct bootstrap)
3126
+ * - Acquired cookie name doesn't match expected name
3127
+ * - Repository operations fail
3128
+ */
3129
+ acquireCookie(hostname: string): Promise<void>;
3054
3130
  /**
3055
3131
  * Determines if cookie bootstrapping is needed for this hostname
3056
3132
  *
@@ -3060,7 +3136,7 @@ export class ServerCommunicationConfigClient {
3060
3136
  */
3061
3137
  needsBootstrap(hostname: string): Promise<boolean>;
3062
3138
  /**
3063
- * Creates a new ServerCommunicationConfigClient with a JavaScript repository
3139
+ * Creates a new ServerCommunicationConfigClient with a JavaScript repository and platform API
3064
3140
  *
3065
3141
  * The repository should be backed by StateProvider (or equivalent
3066
3142
  * storage mechanism) for persistence.
@@ -3068,8 +3144,12 @@ export class ServerCommunicationConfigClient {
3068
3144
  * # Arguments
3069
3145
  *
3070
3146
  * * `repository` - JavaScript implementation of the repository interface
3147
+ * * `platform_api` - JavaScript implementation of the platform API interface
3071
3148
  */
3072
- constructor(repository: ServerCommunicationConfigRepository);
3149
+ constructor(
3150
+ repository: ServerCommunicationConfigRepository,
3151
+ platform_api: ServerCommunicationConfigPlatformApi,
3152
+ );
3073
3153
  /**
3074
3154
  * Returns all cookies that should be included in requests to this server
3075
3155
  *
@@ -247,21 +247,31 @@ function passArray8ToWasm0(arg, malloc) {
247
247
  return ptr;
248
248
  }
249
249
  /**
250
- * Generate a new SSH key pair
250
+ * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
251
+ * to an OpenSSH private key with public key and fingerprint
251
252
  *
252
253
  * # Arguments
253
- * - `key_algorithm` - The algorithm to use for the key pair
254
+ * - `imported_key` - The private key to convert
255
+ * - `password` - The password to use for decrypting the key
254
256
  *
255
257
  * # Returns
256
- * - `Ok(SshKey)` if the key was successfully generated
257
- * - `Err(KeyGenerationError)` if the key could not be generated
258
- * @param {KeyAlgorithm} key_algorithm
258
+ * - `Ok(SshKey)` if the key was successfully coneverted
259
+ * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
260
+ * - `Err(WrongPassword)` if the password provided is incorrect
261
+ * - `Err(ParsingError)` if the key could not be parsed
262
+ * - `Err(UnsupportedKeyType)` if the key type is not supported
263
+ * @param {string} imported_key
264
+ * @param {string | null} [password]
259
265
  * @returns {SshKeyView}
260
266
  */
261
- exports.generate_ssh_key = function(key_algorithm) {
267
+ exports.import_ssh_key = function(imported_key, password) {
262
268
  try {
263
269
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
264
- wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
270
+ const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
271
+ const len0 = WASM_VECTOR_LEN;
272
+ var ptr1 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
+ var len1 = WASM_VECTOR_LEN;
274
+ wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
265
275
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
266
276
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
267
277
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -275,31 +285,21 @@ exports.generate_ssh_key = function(key_algorithm) {
275
285
  };
276
286
 
277
287
  /**
278
- * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
279
- * to an OpenSSH private key with public key and fingerprint
288
+ * Generate a new SSH key pair
280
289
  *
281
290
  * # Arguments
282
- * - `imported_key` - The private key to convert
283
- * - `password` - The password to use for decrypting the key
291
+ * - `key_algorithm` - The algorithm to use for the key pair
284
292
  *
285
293
  * # Returns
286
- * - `Ok(SshKey)` if the key was successfully coneverted
287
- * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
288
- * - `Err(WrongPassword)` if the password provided is incorrect
289
- * - `Err(ParsingError)` if the key could not be parsed
290
- * - `Err(UnsupportedKeyType)` if the key type is not supported
291
- * @param {string} imported_key
292
- * @param {string | null} [password]
294
+ * - `Ok(SshKey)` if the key was successfully generated
295
+ * - `Err(KeyGenerationError)` if the key could not be generated
296
+ * @param {KeyAlgorithm} key_algorithm
293
297
  * @returns {SshKeyView}
294
298
  */
295
- exports.import_ssh_key = function(imported_key, password) {
299
+ exports.generate_ssh_key = function(key_algorithm) {
296
300
  try {
297
301
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
298
- const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
- const len0 = WASM_VECTOR_LEN;
300
- var ptr1 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
301
- var len1 = WASM_VECTOR_LEN;
302
- wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
302
+ wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
303
303
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
304
304
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
305
305
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -664,6 +664,19 @@ exports.isServerCommunicationConfigRepositoryError = function(error) {
664
664
  }
665
665
  };
666
666
 
667
+ /**
668
+ * @param {any} error
669
+ * @returns {boolean}
670
+ */
671
+ exports.isAcquireCookieError = function(error) {
672
+ try {
673
+ const ret = wasm.isAcquireCookieError(addBorrowedObject(error));
674
+ return ret !== 0;
675
+ } finally {
676
+ heap[stack_pointer++] = undefined;
677
+ }
678
+ };
679
+
667
680
  /**
668
681
  * @param {any} error
669
682
  * @returns {boolean}
@@ -1002,14 +1015,18 @@ exports.isGetFolderError = function(error) {
1002
1015
  }
1003
1016
  };
1004
1017
 
1005
- function wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130(arg0, arg1, arg2) {
1006
- wasm.wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130(arg0, arg1, addHeapObject(arg2));
1018
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1019
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1020
+ }
1021
+
1022
+ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1023
+ wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1007
1024
  }
1008
1025
 
1009
- function wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(arg0, arg1, arg2) {
1026
+ function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg1, arg2) {
1010
1027
  try {
1011
1028
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1012
- wasm.wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(retptr, arg0, arg1, addHeapObject(arg2));
1029
+ wasm.wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(retptr, arg0, arg1, addHeapObject(arg2));
1013
1030
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1014
1031
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1015
1032
  if (r1) {
@@ -1020,10 +1037,6 @@ function wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(arg0, arg
1020
1037
  }
1021
1038
  }
1022
1039
 
1023
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1024
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1025
- }
1026
-
1027
1040
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1028
1041
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1029
1042
  }
@@ -4495,6 +4508,32 @@ class ServerCommunicationConfigClient {
4495
4508
  const ret = wasm.servercommunicationconfigclient_getConfig(this.__wbg_ptr, ptr0, len0);
4496
4509
  return takeObject(ret);
4497
4510
  }
4511
+ /**
4512
+ * Acquires a cookie from the platform and saves it to the repository
4513
+ *
4514
+ * This method calls the platform API to trigger cookie acquisition (e.g., browser
4515
+ * redirect to IdP), then validates and stores the acquired cookie in the repository.
4516
+ *
4517
+ * # Arguments
4518
+ *
4519
+ * * `hostname` - The server hostname (e.g., "vault.acme.com")
4520
+ *
4521
+ * # Errors
4522
+ *
4523
+ * Returns an error if:
4524
+ * - Cookie acquisition was cancelled by the user
4525
+ * - Server configuration doesn't support SSO cookies (Direct bootstrap)
4526
+ * - Acquired cookie name doesn't match expected name
4527
+ * - Repository operations fail
4528
+ * @param {string} hostname
4529
+ * @returns {Promise<void>}
4530
+ */
4531
+ acquireCookie(hostname) {
4532
+ const ptr0 = passStringToWasm0(hostname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4533
+ const len0 = WASM_VECTOR_LEN;
4534
+ const ret = wasm.servercommunicationconfigclient_acquireCookie(this.__wbg_ptr, ptr0, len0);
4535
+ return takeObject(ret);
4536
+ }
4498
4537
  /**
4499
4538
  * Determines if cookie bootstrapping is needed for this hostname
4500
4539
  *
@@ -4511,7 +4550,7 @@ class ServerCommunicationConfigClient {
4511
4550
  return takeObject(ret);
4512
4551
  }
4513
4552
  /**
4514
- * Creates a new ServerCommunicationConfigClient with a JavaScript repository
4553
+ * Creates a new ServerCommunicationConfigClient with a JavaScript repository and platform API
4515
4554
  *
4516
4555
  * The repository should be backed by StateProvider (or equivalent
4517
4556
  * storage mechanism) for persistence.
@@ -4519,10 +4558,12 @@ class ServerCommunicationConfigClient {
4519
4558
  * # Arguments
4520
4559
  *
4521
4560
  * * `repository` - JavaScript implementation of the repository interface
4561
+ * * `platform_api` - JavaScript implementation of the platform API interface
4522
4562
  * @param {ServerCommunicationConfigRepository} repository
4563
+ * @param {ServerCommunicationConfigPlatformApi} platform_api
4523
4564
  */
4524
- constructor(repository) {
4525
- const ret = wasm.servercommunicationconfigclient_new(addHeapObject(repository));
4565
+ constructor(repository, platform_api) {
4566
+ const ret = wasm.servercommunicationconfigclient_new(addHeapObject(repository), addHeapObject(platform_api));
4526
4567
  this.__wbg_ptr = ret >>> 0;
4527
4568
  ServerCommunicationConfigClientFinalization.register(this, this.__wbg_ptr, this);
4528
4569
  return this;
@@ -4897,6 +4938,19 @@ exports.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
4897
4938
  getObject(arg0).abort();
4898
4939
  };
4899
4940
 
4941
+ exports.__wbg_acquireCookies_e619046b176fe50d = function() { return handleError(function (arg0, arg1, arg2) {
4942
+ let deferred0_0;
4943
+ let deferred0_1;
4944
+ try {
4945
+ deferred0_0 = arg1;
4946
+ deferred0_1 = arg2;
4947
+ const ret = getObject(arg0).acquireCookies(getStringFromWasm0(arg1, arg2));
4948
+ return addHeapObject(ret);
4949
+ } finally {
4950
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
4951
+ }
4952
+ }, arguments) };
4953
+
4900
4954
  exports.__wbg_addEventListener_2a32c0afd1525001 = function(arg0, arg1, arg2, arg3) {
4901
4955
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
4902
4956
  };
@@ -4932,7 +4986,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
4932
4986
  return addHeapObject(ret);
4933
4987
  }, arguments) };
4934
4988
 
4935
- exports.__wbg_cipher_97fed7966ff80505 = function(arg0) {
4989
+ exports.__wbg_cipher_714ebd1e1a489e72 = function(arg0) {
4936
4990
  const ret = getObject(arg0).cipher;
4937
4991
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4938
4992
  };
@@ -5019,7 +5073,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
5019
5073
  return addHeapObject(ret);
5020
5074
  };
5021
5075
 
5022
- exports.__wbg_folder_45bbb37d014a753a = function(arg0) {
5076
+ exports.__wbg_folder_7c5923febb5b6d23 = function(arg0) {
5023
5077
  const ret = getObject(arg0).folder;
5024
5078
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5025
5079
  };
@@ -5051,7 +5105,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
5051
5105
  return ret;
5052
5106
  };
5053
5107
 
5054
- exports.__wbg_get_33ed8a53bee3f99a = function() { return handleError(function (arg0, arg1, arg2) {
5108
+ exports.__wbg_get_47acfc4cc42c7180 = function() { return handleError(function (arg0, arg1, arg2) {
5055
5109
  let deferred0_0;
5056
5110
  let deferred0_1;
5057
5111
  try {
@@ -5064,7 +5118,12 @@ exports.__wbg_get_33ed8a53bee3f99a = function() { return handleError(function (a
5064
5118
  }
5065
5119
  }, arguments) };
5066
5120
 
5067
- exports.__wbg_get_42ffd8821b63fce5 = function() { return handleError(function (arg0, arg1, arg2) {
5121
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5122
+ const ret = getObject(arg0)[arg1 >>> 0];
5123
+ return addHeapObject(ret);
5124
+ };
5125
+
5126
+ exports.__wbg_get_943c1487265db648 = function() { return handleError(function (arg0, arg1, arg2) {
5068
5127
  let deferred0_0;
5069
5128
  let deferred0_1;
5070
5129
  try {
@@ -5077,12 +5136,7 @@ exports.__wbg_get_42ffd8821b63fce5 = function() { return handleError(function (a
5077
5136
  }
5078
5137
  }, arguments) };
5079
5138
 
5080
- exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
5081
- const ret = getObject(arg0)[arg1 >>> 0];
5082
- return addHeapObject(ret);
5083
- };
5084
-
5085
- exports.__wbg_get_access_token_4931c53dd80f15f1 = function(arg0) {
5139
+ exports.__wbg_get_access_token_e7846455f4a5f291 = function(arg0) {
5086
5140
  const ret = getObject(arg0).get_access_token();
5087
5141
  return addHeapObject(ret);
5088
5142
  };
@@ -5288,12 +5342,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5288
5342
  return ret;
5289
5343
  };
5290
5344
 
5291
- exports.__wbg_list_df938d68efbb2005 = function() { return handleError(function (arg0) {
5345
+ exports.__wbg_list_aed460ce16240d26 = function() { return handleError(function (arg0) {
5292
5346
  const ret = getObject(arg0).list();
5293
5347
  return addHeapObject(ret);
5294
5348
  }, arguments) };
5295
5349
 
5296
- exports.__wbg_list_fde10818f23e1d2d = function() { return handleError(function (arg0) {
5350
+ exports.__wbg_list_d969f534b973166e = function() { return handleError(function (arg0) {
5297
5351
  const ret = getObject(arg0).list();
5298
5352
  return addHeapObject(ret);
5299
5353
  }, arguments) };
@@ -5494,7 +5548,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5494
5548
  getObject(arg0).randomFillSync(takeObject(arg1));
5495
5549
  }, arguments) };
5496
5550
 
5497
- exports.__wbg_remove_a982db8fa89beb94 = function() { return handleError(function (arg0, arg1, arg2) {
5551
+ exports.__wbg_remove_743e46c9175bd104 = function() { return handleError(function (arg0, arg1, arg2) {
5498
5552
  let deferred0_0;
5499
5553
  let deferred0_1;
5500
5554
  try {
@@ -5507,7 +5561,7 @@ exports.__wbg_remove_a982db8fa89beb94 = function() { return handleError(function
5507
5561
  }
5508
5562
  }, arguments) };
5509
5563
 
5510
- exports.__wbg_remove_c29a0eed3c169530 = function() { return handleError(function (arg0, arg1, arg2) {
5564
+ exports.__wbg_remove_fed17c1477e99571 = function() { return handleError(function (arg0, arg1, arg2) {
5511
5565
  let deferred0_0;
5512
5566
  let deferred0_1;
5513
5567
  try {
@@ -5535,34 +5589,34 @@ exports.__wbg_result_25e75004b82b9830 = function() { return handleError(function
5535
5589
  return addHeapObject(ret);
5536
5590
  }, arguments) };
5537
5591
 
5538
- exports.__wbg_send_8b64d9aa7f1992ee = function() { return handleError(function (arg0, arg1) {
5539
- const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
5540
- return addHeapObject(ret);
5541
- }, arguments) };
5542
-
5543
- exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
5544
- const ret = setTimeout(getObject(arg0), arg1);
5545
- return addHeapObject(ret);
5546
- };
5547
-
5548
- exports.__wbg_set_31e87eb877122664 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5592
+ exports.__wbg_save_5a855c0dde023a63 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5549
5593
  let deferred0_0;
5550
5594
  let deferred0_1;
5551
5595
  try {
5552
5596
  deferred0_0 = arg1;
5553
5597
  deferred0_1 = arg2;
5554
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5598
+ const ret = getObject(arg0).save(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5555
5599
  return addHeapObject(ret);
5556
5600
  } finally {
5557
5601
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5558
5602
  }
5559
5603
  }, arguments) };
5560
5604
 
5605
+ exports.__wbg_send_8b64d9aa7f1992ee = function() { return handleError(function (arg0, arg1) {
5606
+ const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
5607
+ return addHeapObject(ret);
5608
+ }, arguments) };
5609
+
5610
+ exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
5611
+ const ret = setTimeout(getObject(arg0), arg1);
5612
+ return addHeapObject(ret);
5613
+ };
5614
+
5561
5615
  exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5562
5616
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5563
5617
  };
5564
5618
 
5565
- exports.__wbg_set_7dc1aaa2e7fa9024 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5619
+ exports.__wbg_set_64b8976015c5e962 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5566
5620
  let deferred0_0;
5567
5621
  let deferred0_1;
5568
5622
  try {
@@ -5592,6 +5646,19 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
5592
5646
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5593
5647
  };
5594
5648
 
5649
+ exports.__wbg_set_ffbfc5a5bce3027a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5650
+ let deferred0_0;
5651
+ let deferred0_1;
5652
+ try {
5653
+ deferred0_0 = arg1;
5654
+ deferred0_1 = arg2;
5655
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5656
+ return addHeapObject(ret);
5657
+ } finally {
5658
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5659
+ }
5660
+ }, arguments) };
5661
+
5595
5662
  exports.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
5596
5663
  getObject(arg0).headers = getObject(arg1);
5597
5664
  };
@@ -5757,27 +5824,33 @@ exports.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
5757
5824
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5758
5825
  };
5759
5826
 
5760
- exports.__wbindgen_cast_0f3a80f9c6c81c16 = function(arg0, arg1) {
5761
- // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5762
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3238f077fb5ae8c5, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5763
- return addHeapObject(ret);
5764
- };
5765
-
5766
5827
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
5767
5828
  // Cast intrinsic for `Ref(String) -> Externref`.
5768
5829
  const ret = getStringFromWasm0(arg0, arg1);
5769
5830
  return addHeapObject(ret);
5770
5831
  };
5771
5832
 
5772
- exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
5773
- // Cast intrinsic for `U64 -> Externref`.
5774
- const ret = BigInt.asUintN(64, arg0);
5833
+ exports.__wbindgen_cast_298dd3322eda9063 = function(arg0, arg1) {
5834
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5835
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5836
+ return addHeapObject(ret);
5837
+ };
5838
+
5839
+ exports.__wbindgen_cast_34ef3ce950757bdd = function(arg0, arg1) {
5840
+ // 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`.
5841
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5775
5842
  return addHeapObject(ret);
5776
5843
  };
5777
5844
 
5778
- exports.__wbindgen_cast_5750452b86ec572d = function(arg0, arg1) {
5779
- // Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5780
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5845
+ exports.__wbindgen_cast_397295739b4135cd = function(arg0, arg1) {
5846
+ // 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`.
5847
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
5848
+ return addHeapObject(ret);
5849
+ };
5850
+
5851
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
5852
+ // Cast intrinsic for `U64 -> Externref`.
5853
+ const ret = BigInt.asUintN(64, arg0);
5781
5854
  return addHeapObject(ret);
5782
5855
  };
5783
5856
 
@@ -5815,21 +5888,15 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
5815
5888
  return addHeapObject(ret);
5816
5889
  };
5817
5890
 
5818
- exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5819
- // Cast intrinsic for `F64 -> Externref`.
5820
- const ret = arg0;
5821
- return addHeapObject(ret);
5822
- };
5823
-
5824
- exports.__wbindgen_cast_e1085c040d7c5239 = function(arg0, arg1) {
5825
- // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 43, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5826
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
5891
+ exports.__wbindgen_cast_cc64d9c4c77c46f7 = function(arg0, arg1) {
5892
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5893
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5827
5894
  return addHeapObject(ret);
5828
5895
  };
5829
5896
 
5830
- exports.__wbindgen_cast_e12aaa4ecde9c999 = function(arg0, arg1) {
5831
- // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5832
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3238f077fb5ae8c5, wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746);
5897
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5898
+ // Cast intrinsic for `F64 -> Externref`.
5899
+ const ret = arg0;
5833
5900
  return addHeapObject(ret);
5834
5901
  };
5835
5902