@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.
- package/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +100 -20
- package/bitwarden_wasm_internal_bg.js +153 -86
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +16 -10
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +100 -20
- package/node/bitwarden_wasm_internal.js +153 -86
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +14 -8
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
08a6bf30fbad3adf81c9e441906545f9c055fa4a
|
|
@@ -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
|
-
*
|
|
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:
|
|
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(
|
|
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
|
*
|
|
@@ -257,21 +257,31 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
257
257
|
return ptr;
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
|
-
*
|
|
260
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
|
261
|
+
* to an OpenSSH private key with public key and fingerprint
|
|
261
262
|
*
|
|
262
263
|
* # Arguments
|
|
263
|
-
* - `
|
|
264
|
+
* - `imported_key` - The private key to convert
|
|
265
|
+
* - `password` - The password to use for decrypting the key
|
|
264
266
|
*
|
|
265
267
|
* # Returns
|
|
266
|
-
* - `Ok(SshKey)` if the key was successfully
|
|
267
|
-
* - `Err(
|
|
268
|
-
*
|
|
268
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
|
269
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
|
270
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
|
271
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
|
272
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
273
|
+
* @param {string} imported_key
|
|
274
|
+
* @param {string | null} [password]
|
|
269
275
|
* @returns {SshKeyView}
|
|
270
276
|
*/
|
|
271
|
-
export function
|
|
277
|
+
export function import_ssh_key(imported_key, password) {
|
|
272
278
|
try {
|
|
273
279
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
274
|
-
wasm.
|
|
280
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
var ptr1 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
283
|
+
var len1 = WASM_VECTOR_LEN;
|
|
284
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
275
285
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
276
286
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
277
287
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -285,31 +295,21 @@ export function generate_ssh_key(key_algorithm) {
|
|
|
285
295
|
}
|
|
286
296
|
|
|
287
297
|
/**
|
|
288
|
-
*
|
|
289
|
-
* to an OpenSSH private key with public key and fingerprint
|
|
298
|
+
* Generate a new SSH key pair
|
|
290
299
|
*
|
|
291
300
|
* # Arguments
|
|
292
|
-
* - `
|
|
293
|
-
* - `password` - The password to use for decrypting the key
|
|
301
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
|
294
302
|
*
|
|
295
303
|
* # Returns
|
|
296
|
-
* - `Ok(SshKey)` if the key was successfully
|
|
297
|
-
* - `Err(
|
|
298
|
-
*
|
|
299
|
-
* - `Err(ParsingError)` if the key could not be parsed
|
|
300
|
-
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
|
301
|
-
* @param {string} imported_key
|
|
302
|
-
* @param {string | null} [password]
|
|
304
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
|
305
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
|
306
|
+
* @param {KeyAlgorithm} key_algorithm
|
|
303
307
|
* @returns {SshKeyView}
|
|
304
308
|
*/
|
|
305
|
-
export function
|
|
309
|
+
export function generate_ssh_key(key_algorithm) {
|
|
306
310
|
try {
|
|
307
311
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
308
|
-
|
|
309
|
-
const len0 = WASM_VECTOR_LEN;
|
|
310
|
-
var ptr1 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
311
|
-
var len1 = WASM_VECTOR_LEN;
|
|
312
|
-
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
|
312
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
|
313
313
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
314
314
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
315
315
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -674,6 +674,19 @@ export function isServerCommunicationConfigRepositoryError(error) {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
+
/**
|
|
678
|
+
* @param {any} error
|
|
679
|
+
* @returns {boolean}
|
|
680
|
+
*/
|
|
681
|
+
export function isAcquireCookieError(error) {
|
|
682
|
+
try {
|
|
683
|
+
const ret = wasm.isAcquireCookieError(addBorrowedObject(error));
|
|
684
|
+
return ret !== 0;
|
|
685
|
+
} finally {
|
|
686
|
+
heap[stack_pointer++] = undefined;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
677
690
|
/**
|
|
678
691
|
* @param {any} error
|
|
679
692
|
* @returns {boolean}
|
|
@@ -1012,18 +1025,14 @@ export function isGetFolderError(error) {
|
|
|
1012
1025
|
}
|
|
1013
1026
|
}
|
|
1014
1027
|
|
|
1015
|
-
function
|
|
1016
|
-
wasm.
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1020
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1028
|
+
function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
|
|
1029
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1021
1030
|
}
|
|
1022
1031
|
|
|
1023
|
-
function
|
|
1032
|
+
function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg1, arg2) {
|
|
1024
1033
|
try {
|
|
1025
1034
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1026
|
-
wasm.
|
|
1035
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1027
1036
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1028
1037
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1029
1038
|
if (r1) {
|
|
@@ -1034,6 +1043,10 @@ function wasm_bindgen__convert__closures_____invoke__hd535e5ed92b9c746(arg0, arg
|
|
|
1034
1043
|
}
|
|
1035
1044
|
}
|
|
1036
1045
|
|
|
1046
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1047
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1037
1050
|
function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
|
|
1038
1051
|
wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1039
1052
|
}
|
|
@@ -4459,6 +4472,32 @@ export class ServerCommunicationConfigClient {
|
|
|
4459
4472
|
const ret = wasm.servercommunicationconfigclient_getConfig(this.__wbg_ptr, ptr0, len0);
|
|
4460
4473
|
return takeObject(ret);
|
|
4461
4474
|
}
|
|
4475
|
+
/**
|
|
4476
|
+
* Acquires a cookie from the platform and saves it to the repository
|
|
4477
|
+
*
|
|
4478
|
+
* This method calls the platform API to trigger cookie acquisition (e.g., browser
|
|
4479
|
+
* redirect to IdP), then validates and stores the acquired cookie in the repository.
|
|
4480
|
+
*
|
|
4481
|
+
* # Arguments
|
|
4482
|
+
*
|
|
4483
|
+
* * `hostname` - The server hostname (e.g., "vault.acme.com")
|
|
4484
|
+
*
|
|
4485
|
+
* # Errors
|
|
4486
|
+
*
|
|
4487
|
+
* Returns an error if:
|
|
4488
|
+
* - Cookie acquisition was cancelled by the user
|
|
4489
|
+
* - Server configuration doesn't support SSO cookies (Direct bootstrap)
|
|
4490
|
+
* - Acquired cookie name doesn't match expected name
|
|
4491
|
+
* - Repository operations fail
|
|
4492
|
+
* @param {string} hostname
|
|
4493
|
+
* @returns {Promise<void>}
|
|
4494
|
+
*/
|
|
4495
|
+
acquireCookie(hostname) {
|
|
4496
|
+
const ptr0 = passStringToWasm0(hostname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4497
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4498
|
+
const ret = wasm.servercommunicationconfigclient_acquireCookie(this.__wbg_ptr, ptr0, len0);
|
|
4499
|
+
return takeObject(ret);
|
|
4500
|
+
}
|
|
4462
4501
|
/**
|
|
4463
4502
|
* Determines if cookie bootstrapping is needed for this hostname
|
|
4464
4503
|
*
|
|
@@ -4475,7 +4514,7 @@ export class ServerCommunicationConfigClient {
|
|
|
4475
4514
|
return takeObject(ret);
|
|
4476
4515
|
}
|
|
4477
4516
|
/**
|
|
4478
|
-
* Creates a new ServerCommunicationConfigClient with a JavaScript repository
|
|
4517
|
+
* Creates a new ServerCommunicationConfigClient with a JavaScript repository and platform API
|
|
4479
4518
|
*
|
|
4480
4519
|
* The repository should be backed by StateProvider (or equivalent
|
|
4481
4520
|
* storage mechanism) for persistence.
|
|
@@ -4483,10 +4522,12 @@ export class ServerCommunicationConfigClient {
|
|
|
4483
4522
|
* # Arguments
|
|
4484
4523
|
*
|
|
4485
4524
|
* * `repository` - JavaScript implementation of the repository interface
|
|
4525
|
+
* * `platform_api` - JavaScript implementation of the platform API interface
|
|
4486
4526
|
* @param {ServerCommunicationConfigRepository} repository
|
|
4527
|
+
* @param {ServerCommunicationConfigPlatformApi} platform_api
|
|
4487
4528
|
*/
|
|
4488
|
-
constructor(repository) {
|
|
4489
|
-
const ret = wasm.servercommunicationconfigclient_new(addHeapObject(repository));
|
|
4529
|
+
constructor(repository, platform_api) {
|
|
4530
|
+
const ret = wasm.servercommunicationconfigclient_new(addHeapObject(repository), addHeapObject(platform_api));
|
|
4490
4531
|
this.__wbg_ptr = ret >>> 0;
|
|
4491
4532
|
ServerCommunicationConfigClientFinalization.register(this, this.__wbg_ptr, this);
|
|
4492
4533
|
return this;
|
|
@@ -4851,6 +4892,19 @@ export function __wbg_abort_e7eb059f72f9ed0c(arg0) {
|
|
|
4851
4892
|
getObject(arg0).abort();
|
|
4852
4893
|
};
|
|
4853
4894
|
|
|
4895
|
+
export function __wbg_acquireCookies_e619046b176fe50d() { return handleError(function (arg0, arg1, arg2) {
|
|
4896
|
+
let deferred0_0;
|
|
4897
|
+
let deferred0_1;
|
|
4898
|
+
try {
|
|
4899
|
+
deferred0_0 = arg1;
|
|
4900
|
+
deferred0_1 = arg2;
|
|
4901
|
+
const ret = getObject(arg0).acquireCookies(getStringFromWasm0(arg1, arg2));
|
|
4902
|
+
return addHeapObject(ret);
|
|
4903
|
+
} finally {
|
|
4904
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4905
|
+
}
|
|
4906
|
+
}, arguments) };
|
|
4907
|
+
|
|
4854
4908
|
export function __wbg_addEventListener_2a32c0afd1525001(arg0, arg1, arg2, arg3) {
|
|
4855
4909
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
4856
4910
|
};
|
|
@@ -4886,7 +4940,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
4886
4940
|
return addHeapObject(ret);
|
|
4887
4941
|
}, arguments) };
|
|
4888
4942
|
|
|
4889
|
-
export function
|
|
4943
|
+
export function __wbg_cipher_714ebd1e1a489e72(arg0) {
|
|
4890
4944
|
const ret = getObject(arg0).cipher;
|
|
4891
4945
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4892
4946
|
};
|
|
@@ -4973,7 +5027,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4973
5027
|
return addHeapObject(ret);
|
|
4974
5028
|
};
|
|
4975
5029
|
|
|
4976
|
-
export function
|
|
5030
|
+
export function __wbg_folder_7c5923febb5b6d23(arg0) {
|
|
4977
5031
|
const ret = getObject(arg0).folder;
|
|
4978
5032
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4979
5033
|
};
|
|
@@ -5005,7 +5059,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
5005
5059
|
return ret;
|
|
5006
5060
|
};
|
|
5007
5061
|
|
|
5008
|
-
export function
|
|
5062
|
+
export function __wbg_get_47acfc4cc42c7180() { return handleError(function (arg0, arg1, arg2) {
|
|
5009
5063
|
let deferred0_0;
|
|
5010
5064
|
let deferred0_1;
|
|
5011
5065
|
try {
|
|
@@ -5018,7 +5072,12 @@ export function __wbg_get_33ed8a53bee3f99a() { return handleError(function (arg0
|
|
|
5018
5072
|
}
|
|
5019
5073
|
}, arguments) };
|
|
5020
5074
|
|
|
5021
|
-
export function
|
|
5075
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
5076
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5077
|
+
return addHeapObject(ret);
|
|
5078
|
+
};
|
|
5079
|
+
|
|
5080
|
+
export function __wbg_get_943c1487265db648() { return handleError(function (arg0, arg1, arg2) {
|
|
5022
5081
|
let deferred0_0;
|
|
5023
5082
|
let deferred0_1;
|
|
5024
5083
|
try {
|
|
@@ -5031,12 +5090,7 @@ export function __wbg_get_42ffd8821b63fce5() { return handleError(function (arg0
|
|
|
5031
5090
|
}
|
|
5032
5091
|
}, arguments) };
|
|
5033
5092
|
|
|
5034
|
-
export function
|
|
5035
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5036
|
-
return addHeapObject(ret);
|
|
5037
|
-
};
|
|
5038
|
-
|
|
5039
|
-
export function __wbg_get_access_token_4931c53dd80f15f1(arg0) {
|
|
5093
|
+
export function __wbg_get_access_token_e7846455f4a5f291(arg0) {
|
|
5040
5094
|
const ret = getObject(arg0).get_access_token();
|
|
5041
5095
|
return addHeapObject(ret);
|
|
5042
5096
|
};
|
|
@@ -5242,12 +5296,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5242
5296
|
return ret;
|
|
5243
5297
|
};
|
|
5244
5298
|
|
|
5245
|
-
export function
|
|
5299
|
+
export function __wbg_list_aed460ce16240d26() { return handleError(function (arg0) {
|
|
5246
5300
|
const ret = getObject(arg0).list();
|
|
5247
5301
|
return addHeapObject(ret);
|
|
5248
5302
|
}, arguments) };
|
|
5249
5303
|
|
|
5250
|
-
export function
|
|
5304
|
+
export function __wbg_list_d969f534b973166e() { return handleError(function (arg0) {
|
|
5251
5305
|
const ret = getObject(arg0).list();
|
|
5252
5306
|
return addHeapObject(ret);
|
|
5253
5307
|
}, arguments) };
|
|
@@ -5448,7 +5502,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
|
|
|
5448
5502
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5449
5503
|
}, arguments) };
|
|
5450
5504
|
|
|
5451
|
-
export function
|
|
5505
|
+
export function __wbg_remove_743e46c9175bd104() { return handleError(function (arg0, arg1, arg2) {
|
|
5452
5506
|
let deferred0_0;
|
|
5453
5507
|
let deferred0_1;
|
|
5454
5508
|
try {
|
|
@@ -5461,7 +5515,7 @@ export function __wbg_remove_a982db8fa89beb94() { return handleError(function (a
|
|
|
5461
5515
|
}
|
|
5462
5516
|
}, arguments) };
|
|
5463
5517
|
|
|
5464
|
-
export function
|
|
5518
|
+
export function __wbg_remove_fed17c1477e99571() { return handleError(function (arg0, arg1, arg2) {
|
|
5465
5519
|
let deferred0_0;
|
|
5466
5520
|
let deferred0_1;
|
|
5467
5521
|
try {
|
|
@@ -5489,34 +5543,34 @@ export function __wbg_result_25e75004b82b9830() { return handleError(function (a
|
|
|
5489
5543
|
return addHeapObject(ret);
|
|
5490
5544
|
}, arguments) };
|
|
5491
5545
|
|
|
5492
|
-
export function
|
|
5493
|
-
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
|
5494
|
-
return addHeapObject(ret);
|
|
5495
|
-
}, arguments) };
|
|
5496
|
-
|
|
5497
|
-
export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
5498
|
-
const ret = setTimeout(getObject(arg0), arg1);
|
|
5499
|
-
return addHeapObject(ret);
|
|
5500
|
-
};
|
|
5501
|
-
|
|
5502
|
-
export function __wbg_set_31e87eb877122664() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5546
|
+
export function __wbg_save_5a855c0dde023a63() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5503
5547
|
let deferred0_0;
|
|
5504
5548
|
let deferred0_1;
|
|
5505
5549
|
try {
|
|
5506
5550
|
deferred0_0 = arg1;
|
|
5507
5551
|
deferred0_1 = arg2;
|
|
5508
|
-
const ret = getObject(arg0).
|
|
5552
|
+
const ret = getObject(arg0).save(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5509
5553
|
return addHeapObject(ret);
|
|
5510
5554
|
} finally {
|
|
5511
5555
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5512
5556
|
}
|
|
5513
5557
|
}, arguments) };
|
|
5514
5558
|
|
|
5559
|
+
export function __wbg_send_8b64d9aa7f1992ee() { return handleError(function (arg0, arg1) {
|
|
5560
|
+
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
|
5561
|
+
return addHeapObject(ret);
|
|
5562
|
+
}, arguments) };
|
|
5563
|
+
|
|
5564
|
+
export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
5565
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
5566
|
+
return addHeapObject(ret);
|
|
5567
|
+
};
|
|
5568
|
+
|
|
5515
5569
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5516
5570
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5517
5571
|
};
|
|
5518
5572
|
|
|
5519
|
-
export function
|
|
5573
|
+
export function __wbg_set_64b8976015c5e962() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5520
5574
|
let deferred0_0;
|
|
5521
5575
|
let deferred0_1;
|
|
5522
5576
|
try {
|
|
@@ -5546,6 +5600,19 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5546
5600
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5547
5601
|
};
|
|
5548
5602
|
|
|
5603
|
+
export function __wbg_set_ffbfc5a5bce3027a() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5604
|
+
let deferred0_0;
|
|
5605
|
+
let deferred0_1;
|
|
5606
|
+
try {
|
|
5607
|
+
deferred0_0 = arg1;
|
|
5608
|
+
deferred0_1 = arg2;
|
|
5609
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5610
|
+
return addHeapObject(ret);
|
|
5611
|
+
} finally {
|
|
5612
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5613
|
+
}
|
|
5614
|
+
}, arguments) };
|
|
5615
|
+
|
|
5549
5616
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5550
5617
|
getObject(arg0).headers = getObject(arg1);
|
|
5551
5618
|
};
|
|
@@ -5711,27 +5778,33 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
|
|
|
5711
5778
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5712
5779
|
};
|
|
5713
5780
|
|
|
5714
|
-
export function __wbindgen_cast_0f3a80f9c6c81c16(arg0, arg1) {
|
|
5715
|
-
// 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`.
|
|
5716
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3238f077fb5ae8c5, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
|
|
5717
|
-
return addHeapObject(ret);
|
|
5718
|
-
};
|
|
5719
|
-
|
|
5720
5781
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
5721
5782
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
5722
5783
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
5723
5784
|
return addHeapObject(ret);
|
|
5724
5785
|
};
|
|
5725
5786
|
|
|
5726
|
-
export function
|
|
5727
|
-
// Cast intrinsic for `
|
|
5728
|
-
const ret =
|
|
5787
|
+
export function __wbindgen_cast_298dd3322eda9063(arg0, arg1) {
|
|
5788
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 332, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5789
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5790
|
+
return addHeapObject(ret);
|
|
5791
|
+
};
|
|
5792
|
+
|
|
5793
|
+
export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
|
|
5794
|
+
// 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`.
|
|
5795
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5729
5796
|
return addHeapObject(ret);
|
|
5730
5797
|
};
|
|
5731
5798
|
|
|
5732
|
-
export function
|
|
5733
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5734
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5799
|
+
export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
|
|
5800
|
+
// 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`.
|
|
5801
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
|
|
5802
|
+
return addHeapObject(ret);
|
|
5803
|
+
};
|
|
5804
|
+
|
|
5805
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
5806
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
5807
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
5735
5808
|
return addHeapObject(ret);
|
|
5736
5809
|
};
|
|
5737
5810
|
|
|
@@ -5769,21 +5842,15 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
5769
5842
|
return addHeapObject(ret);
|
|
5770
5843
|
};
|
|
5771
5844
|
|
|
5772
|
-
export function
|
|
5773
|
-
// Cast intrinsic for `
|
|
5774
|
-
const ret = arg0;
|
|
5775
|
-
return addHeapObject(ret);
|
|
5776
|
-
};
|
|
5777
|
-
|
|
5778
|
-
export function __wbindgen_cast_e1085c040d7c5239(arg0, arg1) {
|
|
5779
|
-
// 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`.
|
|
5780
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h6d021f3e9713c130);
|
|
5845
|
+
export function __wbindgen_cast_cc64d9c4c77c46f7(arg0, arg1) {
|
|
5846
|
+
// 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`.
|
|
5847
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
|
|
5781
5848
|
return addHeapObject(ret);
|
|
5782
5849
|
};
|
|
5783
5850
|
|
|
5784
|
-
export function
|
|
5785
|
-
// Cast intrinsic for `
|
|
5786
|
-
const ret =
|
|
5851
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
5852
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
5853
|
+
const ret = arg0;
|
|
5787
5854
|
return addHeapObject(ret);
|
|
5788
5855
|
};
|
|
5789
5856
|
|
|
Binary file
|