@bitwarden/sdk-internal 0.2.0-main.524 → 0.2.0-main.526
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 +101 -21
- package/bitwarden_wasm_internal_bg.js +122 -55
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +14 -8
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +101 -21
- package/node/bitwarden_wasm_internal.js +122 -55
- 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
|
@@ -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,11 +180,6 @@ export interface TokenProvider {
|
|
|
180
180
|
get_access_token(): Promise<string | undefined>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Active feature flags for the SDK.
|
|
185
|
-
*/
|
|
186
|
-
export interface FeatureFlags extends Map<string, boolean> {}
|
|
187
|
-
|
|
188
183
|
export interface IndexedDbConfiguration {
|
|
189
184
|
db_name: string;
|
|
190
185
|
}
|
|
@@ -194,6 +189,11 @@ export interface Repositories {
|
|
|
194
189
|
folder: Repository<Folder> | null;
|
|
195
190
|
}
|
|
196
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Active feature flags for the SDK.
|
|
194
|
+
*/
|
|
195
|
+
export interface FeatureFlags extends Map<string, boolean> {}
|
|
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
|
*
|
|
@@ -247,21 +247,31 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
247
247
|
return ptr;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
*
|
|
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
|
-
* - `
|
|
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
|
|
257
|
-
* - `Err(
|
|
258
|
-
*
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
279
|
-
* to an OpenSSH private key with public key and fingerprint
|
|
288
|
+
* Generate a new SSH key pair
|
|
280
289
|
*
|
|
281
290
|
* # Arguments
|
|
282
|
-
* - `
|
|
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
|
|
287
|
-
* - `Err(
|
|
288
|
-
*
|
|
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.
|
|
299
|
+
exports.generate_ssh_key = function(key_algorithm) {
|
|
296
300
|
try {
|
|
297
301
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
298
|
-
|
|
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}
|
|
@@ -1006,10 +1019,14 @@ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg
|
|
|
1006
1019
|
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1007
1020
|
}
|
|
1008
1021
|
|
|
1009
|
-
function
|
|
1022
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1023
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
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.
|
|
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__hcf61203bdba0e0f4(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.
|
|
4989
|
+
exports.__wbg_cipher_24c585a92e29aeb0 = 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.
|
|
5076
|
+
exports.__wbg_folder_718a9489c24c07e1 = 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.
|
|
5108
|
+
exports.__wbg_get_0b8fdf26487baa48 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5055
5109
|
let deferred0_0;
|
|
5056
5110
|
let deferred0_1;
|
|
5057
5111
|
try {
|
|
@@ -5064,17 +5118,7 @@ exports.__wbg_get_6122fc01bfa28474 = function() { return handleError(function (a
|
|
|
5064
5118
|
}
|
|
5065
5119
|
}, arguments) };
|
|
5066
5120
|
|
|
5067
|
-
exports.
|
|
5068
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5069
|
-
return addHeapObject(ret);
|
|
5070
|
-
};
|
|
5071
|
-
|
|
5072
|
-
exports.__wbg_get_access_token_99179cfa2a874ff0 = function(arg0) {
|
|
5073
|
-
const ret = getObject(arg0).get_access_token();
|
|
5074
|
-
return addHeapObject(ret);
|
|
5075
|
-
};
|
|
5076
|
-
|
|
5077
|
-
exports.__wbg_get_aef941e5a3956502 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5121
|
+
exports.__wbg_get_772dc118366a750c = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5078
5122
|
let deferred0_0;
|
|
5079
5123
|
let deferred0_1;
|
|
5080
5124
|
try {
|
|
@@ -5087,6 +5131,16 @@ exports.__wbg_get_aef941e5a3956502 = function() { return handleError(function (a
|
|
|
5087
5131
|
}
|
|
5088
5132
|
}, arguments) };
|
|
5089
5133
|
|
|
5134
|
+
exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
5135
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5136
|
+
return addHeapObject(ret);
|
|
5137
|
+
};
|
|
5138
|
+
|
|
5139
|
+
exports.__wbg_get_access_token_ed8665f4feda38dd = function(arg0) {
|
|
5140
|
+
const ret = getObject(arg0).get_access_token();
|
|
5141
|
+
return addHeapObject(ret);
|
|
5142
|
+
};
|
|
5143
|
+
|
|
5090
5144
|
exports.__wbg_get_c03a59ff46a549dd = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5091
5145
|
let deferred0_0;
|
|
5092
5146
|
let deferred0_1;
|
|
@@ -5288,12 +5342,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
|
5288
5342
|
return ret;
|
|
5289
5343
|
};
|
|
5290
5344
|
|
|
5291
|
-
exports.
|
|
5345
|
+
exports.__wbg_list_4a38177b0b5cf22f = function() { return handleError(function (arg0) {
|
|
5292
5346
|
const ret = getObject(arg0).list();
|
|
5293
5347
|
return addHeapObject(ret);
|
|
5294
5348
|
}, arguments) };
|
|
5295
5349
|
|
|
5296
|
-
exports.
|
|
5350
|
+
exports.__wbg_list_b065f392043e1f90 = 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.
|
|
5551
|
+
exports.__wbg_remove_570db54b523676ce = 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_3f9c3497c164068a = function() { return handleError(function
|
|
|
5507
5561
|
}
|
|
5508
5562
|
}, arguments) };
|
|
5509
5563
|
|
|
5510
|
-
exports.
|
|
5564
|
+
exports.__wbg_remove_ae1411a140845c5a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
5511
5565
|
let deferred0_0;
|
|
5512
5566
|
let deferred0_1;
|
|
5513
5567
|
try {
|
|
@@ -5535,6 +5589,19 @@ exports.__wbg_result_25e75004b82b9830 = function() { return handleError(function
|
|
|
5535
5589
|
return addHeapObject(ret);
|
|
5536
5590
|
}, arguments) };
|
|
5537
5591
|
|
|
5592
|
+
exports.__wbg_save_5a855c0dde023a63 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5593
|
+
let deferred0_0;
|
|
5594
|
+
let deferred0_1;
|
|
5595
|
+
try {
|
|
5596
|
+
deferred0_0 = arg1;
|
|
5597
|
+
deferred0_1 = arg2;
|
|
5598
|
+
const ret = getObject(arg0).save(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5599
|
+
return addHeapObject(ret);
|
|
5600
|
+
} finally {
|
|
5601
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5602
|
+
}
|
|
5603
|
+
}, arguments) };
|
|
5604
|
+
|
|
5538
5605
|
exports.__wbg_send_8b64d9aa7f1992ee = function() { return handleError(function (arg0, arg1) {
|
|
5539
5606
|
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
|
5540
5607
|
return addHeapObject(ret);
|
|
@@ -5545,7 +5612,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
|
|
|
5545
5612
|
return addHeapObject(ret);
|
|
5546
5613
|
};
|
|
5547
5614
|
|
|
5548
|
-
exports.
|
|
5615
|
+
exports.__wbg_set_13decb01eef0e5d0 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5549
5616
|
let deferred0_0;
|
|
5550
5617
|
let deferred0_1;
|
|
5551
5618
|
try {
|
|
@@ -5567,7 +5634,7 @@ exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
|
5567
5634
|
return addHeapObject(ret);
|
|
5568
5635
|
};
|
|
5569
5636
|
|
|
5570
|
-
exports.
|
|
5637
|
+
exports.__wbg_set_a1a56c83262488d5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5571
5638
|
let deferred0_0;
|
|
5572
5639
|
let deferred0_1;
|
|
5573
5640
|
try {
|
|
@@ -5771,13 +5838,13 @@ exports.__wbindgen_cast_298dd3322eda9063 = function(arg0, arg1) {
|
|
|
5771
5838
|
|
|
5772
5839
|
exports.__wbindgen_cast_34ef3ce950757bdd = function(arg0, arg1) {
|
|
5773
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`.
|
|
5774
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
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
5845
|
exports.__wbindgen_cast_397295739b4135cd = function(arg0, arg1) {
|
|
5779
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`.
|
|
5780
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5847
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
|
|
5781
5848
|
return addHeapObject(ret);
|
|
5782
5849
|
};
|
|
5783
5850
|
|
|
Binary file
|
|
@@ -345,7 +345,13 @@ export const outgoingmessage_new_json_payload: (
|
|
|
345
345
|
e: number,
|
|
346
346
|
) => void;
|
|
347
347
|
export const __wbg_servercommunicationconfigclient_free: (a: number, b: number) => void;
|
|
348
|
+
export const isAcquireCookieError: (a: number) => number;
|
|
348
349
|
export const isServerCommunicationConfigRepositoryError: (a: number) => number;
|
|
350
|
+
export const servercommunicationconfigclient_acquireCookie: (
|
|
351
|
+
a: number,
|
|
352
|
+
b: number,
|
|
353
|
+
c: number,
|
|
354
|
+
) => number;
|
|
349
355
|
export const servercommunicationconfigclient_cookies: (a: number, b: number, c: number) => number;
|
|
350
356
|
export const servercommunicationconfigclient_getConfig: (a: number, b: number, c: number) => number;
|
|
351
357
|
export const servercommunicationconfigclient_needsBootstrap: (
|
|
@@ -353,7 +359,7 @@ export const servercommunicationconfigclient_needsBootstrap: (
|
|
|
353
359
|
b: number,
|
|
354
360
|
c: number,
|
|
355
361
|
) => number;
|
|
356
|
-
export const servercommunicationconfigclient_new: (a: number) => number;
|
|
362
|
+
export const servercommunicationconfigclient_new: (a: number, b: number) => number;
|
|
357
363
|
export const isKeyGenerationError: (a: number) => number;
|
|
358
364
|
export const isSshKeyExportError: (a: number) => number;
|
|
359
365
|
export const isSshKeyImportError: (a: number) => number;
|
|
@@ -532,20 +538,20 @@ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
|
|
|
532
538
|
b: number,
|
|
533
539
|
c: number,
|
|
534
540
|
) => void;
|
|
535
|
-
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
536
541
|
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
537
|
-
export const
|
|
542
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
538
543
|
a: number,
|
|
539
544
|
b: number,
|
|
540
|
-
c: number,
|
|
541
|
-
d: number,
|
|
542
545
|
) => void;
|
|
543
|
-
export const
|
|
544
|
-
export const
|
|
546
|
+
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
547
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
548
|
+
export const wasm_bindgen__closure__destroy__h34c685b2e12a24bd: (a: number, b: number) => void;
|
|
549
|
+
export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
|
|
545
550
|
a: number,
|
|
546
551
|
b: number,
|
|
552
|
+
c: number,
|
|
553
|
+
d: number,
|
|
547
554
|
) => void;
|
|
548
|
-
export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
|
|
549
555
|
export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
|
|
550
556
|
a: number,
|
|
551
557
|
b: number,
|