@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
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
800a0d24714373de170e3a45fb7ecb05ac1e55c6
|
|
@@ -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
|
*
|
|
@@ -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}
|
|
@@ -1016,10 +1029,14 @@ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg
|
|
|
1016
1029
|
wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
|
|
1017
1030
|
}
|
|
1018
1031
|
|
|
1019
|
-
function
|
|
1032
|
+
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1033
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
function wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(arg0, arg1, arg2) {
|
|
1020
1037
|
try {
|
|
1021
1038
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1022
|
-
wasm.
|
|
1039
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1023
1040
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1024
1041
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1025
1042
|
if (r1) {
|
|
@@ -1030,10 +1047,6 @@ function wasm_bindgen__convert__closures_____invoke__hcf61203bdba0e0f4(arg0, arg
|
|
|
1030
1047
|
}
|
|
1031
1048
|
}
|
|
1032
1049
|
|
|
1033
|
-
function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
|
|
1034
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
|
|
1035
|
-
}
|
|
1036
|
-
|
|
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_24c585a92e29aeb0(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_718a9489c24c07e1(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_0b8fdf26487baa48() { return handleError(function (arg0, arg1, arg2) {
|
|
5009
5063
|
let deferred0_0;
|
|
5010
5064
|
let deferred0_1;
|
|
5011
5065
|
try {
|
|
@@ -5018,17 +5072,7 @@ export function __wbg_get_6122fc01bfa28474() { return handleError(function (arg0
|
|
|
5018
5072
|
}
|
|
5019
5073
|
}, arguments) };
|
|
5020
5074
|
|
|
5021
|
-
export function
|
|
5022
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5023
|
-
return addHeapObject(ret);
|
|
5024
|
-
};
|
|
5025
|
-
|
|
5026
|
-
export function __wbg_get_access_token_99179cfa2a874ff0(arg0) {
|
|
5027
|
-
const ret = getObject(arg0).get_access_token();
|
|
5028
|
-
return addHeapObject(ret);
|
|
5029
|
-
};
|
|
5030
|
-
|
|
5031
|
-
export function __wbg_get_aef941e5a3956502() { return handleError(function (arg0, arg1, arg2) {
|
|
5075
|
+
export function __wbg_get_772dc118366a750c() { return handleError(function (arg0, arg1, arg2) {
|
|
5032
5076
|
let deferred0_0;
|
|
5033
5077
|
let deferred0_1;
|
|
5034
5078
|
try {
|
|
@@ -5041,6 +5085,16 @@ export function __wbg_get_aef941e5a3956502() { return handleError(function (arg0
|
|
|
5041
5085
|
}
|
|
5042
5086
|
}, arguments) };
|
|
5043
5087
|
|
|
5088
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
5089
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5090
|
+
return addHeapObject(ret);
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
export function __wbg_get_access_token_ed8665f4feda38dd(arg0) {
|
|
5094
|
+
const ret = getObject(arg0).get_access_token();
|
|
5095
|
+
return addHeapObject(ret);
|
|
5096
|
+
};
|
|
5097
|
+
|
|
5044
5098
|
export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0, arg1, arg2) {
|
|
5045
5099
|
let deferred0_0;
|
|
5046
5100
|
let deferred0_1;
|
|
@@ -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_4a38177b0b5cf22f() { 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_b065f392043e1f90() { 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_570db54b523676ce() { 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_3f9c3497c164068a() { return handleError(function (a
|
|
|
5461
5515
|
}
|
|
5462
5516
|
}, arguments) };
|
|
5463
5517
|
|
|
5464
|
-
export function
|
|
5518
|
+
export function __wbg_remove_ae1411a140845c5a() { return handleError(function (arg0, arg1, arg2) {
|
|
5465
5519
|
let deferred0_0;
|
|
5466
5520
|
let deferred0_1;
|
|
5467
5521
|
try {
|
|
@@ -5489,6 +5543,19 @@ export function __wbg_result_25e75004b82b9830() { return handleError(function (a
|
|
|
5489
5543
|
return addHeapObject(ret);
|
|
5490
5544
|
}, arguments) };
|
|
5491
5545
|
|
|
5546
|
+
export function __wbg_save_5a855c0dde023a63() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5547
|
+
let deferred0_0;
|
|
5548
|
+
let deferred0_1;
|
|
5549
|
+
try {
|
|
5550
|
+
deferred0_0 = arg1;
|
|
5551
|
+
deferred0_1 = arg2;
|
|
5552
|
+
const ret = getObject(arg0).save(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5553
|
+
return addHeapObject(ret);
|
|
5554
|
+
} finally {
|
|
5555
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5556
|
+
}
|
|
5557
|
+
}, arguments) };
|
|
5558
|
+
|
|
5492
5559
|
export function __wbg_send_8b64d9aa7f1992ee() { return handleError(function (arg0, arg1) {
|
|
5493
5560
|
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
|
5494
5561
|
return addHeapObject(ret);
|
|
@@ -5499,7 +5566,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5499
5566
|
return addHeapObject(ret);
|
|
5500
5567
|
};
|
|
5501
5568
|
|
|
5502
|
-
export function
|
|
5569
|
+
export function __wbg_set_13decb01eef0e5d0() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5503
5570
|
let deferred0_0;
|
|
5504
5571
|
let deferred0_1;
|
|
5505
5572
|
try {
|
|
@@ -5521,7 +5588,7 @@ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
|
5521
5588
|
return addHeapObject(ret);
|
|
5522
5589
|
};
|
|
5523
5590
|
|
|
5524
|
-
export function
|
|
5591
|
+
export function __wbg_set_a1a56c83262488d5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5525
5592
|
let deferred0_0;
|
|
5526
5593
|
let deferred0_1;
|
|
5527
5594
|
try {
|
|
@@ -5725,13 +5792,13 @@ export function __wbindgen_cast_298dd3322eda9063(arg0, arg1) {
|
|
|
5725
5792
|
|
|
5726
5793
|
export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
|
|
5727
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`.
|
|
5728
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
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
5799
|
export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
|
|
5733
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`.
|
|
5734
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5801
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34c685b2e12a24bd, wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db);
|
|
5735
5802
|
return addHeapObject(ret);
|
|
5736
5803
|
};
|
|
5737
5804
|
|
|
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,19 +538,19 @@ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
|
|
|
532
538
|
b: number,
|
|
533
539
|
c: number,
|
|
534
540
|
) => void;
|
|
535
|
-
export const
|
|
536
|
-
export const
|
|
541
|
+
export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
|
|
542
|
+
export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
|
|
537
543
|
a: number,
|
|
538
544
|
b: number,
|
|
539
|
-
c: number,
|
|
540
|
-
d: number,
|
|
541
545
|
) => void;
|
|
542
|
-
export const
|
|
543
|
-
export const
|
|
546
|
+
export const wasm_bindgen__closure__destroy__h34c685b2e12a24bd: (a: number, b: number) => void;
|
|
547
|
+
export const wasm_bindgen__convert__closures_____invoke__h20d3e443a387c2db: (
|
|
544
548
|
a: number,
|
|
545
549
|
b: number,
|
|
550
|
+
c: number,
|
|
551
|
+
d: number,
|
|
546
552
|
) => void;
|
|
547
|
-
export const
|
|
553
|
+
export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
|
|
548
554
|
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,
|