@bitwarden/sdk-internal 0.2.0-main.544 → 0.2.0-main.546
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 +447 -78
- package/bitwarden_wasm_internal_bg.js +216 -103
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +12 -8
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +447 -78
- package/node/bitwarden_wasm_internal.js +220 -107
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +14 -10
- package/package.json +1 -1
|
@@ -362,6 +362,32 @@ export function isRegistrationError(error) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
/**
|
|
366
|
+
* @param {any} error
|
|
367
|
+
* @returns {boolean}
|
|
368
|
+
*/
|
|
369
|
+
export function isPasswordPreloginError(error) {
|
|
370
|
+
try {
|
|
371
|
+
const ret = wasm.isPasswordPreloginError(addBorrowedObject(error));
|
|
372
|
+
return ret !== 0;
|
|
373
|
+
} finally {
|
|
374
|
+
heap[stack_pointer++] = undefined;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @param {any} error
|
|
380
|
+
* @returns {boolean}
|
|
381
|
+
*/
|
|
382
|
+
export function isPasswordLoginError(error) {
|
|
383
|
+
try {
|
|
384
|
+
const ret = wasm.isPasswordLoginError(addBorrowedObject(error));
|
|
385
|
+
return ret !== 0;
|
|
386
|
+
} finally {
|
|
387
|
+
heap[stack_pointer++] = undefined;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
365
391
|
/**
|
|
366
392
|
* @param {any} error
|
|
367
393
|
* @returns {boolean}
|
|
@@ -1051,18 +1077,18 @@ export function isGetFolderError(error) {
|
|
|
1051
1077
|
}
|
|
1052
1078
|
}
|
|
1053
1079
|
|
|
1054
|
-
function
|
|
1055
|
-
wasm.
|
|
1080
|
+
function wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f(arg0, arg1, arg2) {
|
|
1081
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f(arg0, arg1, addHeapObject(arg2));
|
|
1056
1082
|
}
|
|
1057
1083
|
|
|
1058
1084
|
function wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1) {
|
|
1059
1085
|
wasm.wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1);
|
|
1060
1086
|
}
|
|
1061
1087
|
|
|
1062
|
-
function
|
|
1088
|
+
function wasm_bindgen__convert__closures_____invoke__h8480ffc4663e6c26(arg0, arg1, arg2) {
|
|
1063
1089
|
try {
|
|
1064
1090
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1065
|
-
wasm.
|
|
1091
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8480ffc4663e6c26(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1066
1092
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1067
1093
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1068
1094
|
if (r1) {
|
|
@@ -1289,7 +1315,7 @@ export class AuthClient {
|
|
|
1289
1315
|
* @returns {SendAccessClient}
|
|
1290
1316
|
*/
|
|
1291
1317
|
send_access() {
|
|
1292
|
-
const ret = wasm.
|
|
1318
|
+
const ret = wasm.authclient_registration(this.__wbg_ptr);
|
|
1293
1319
|
return SendAccessClient.__wrap(ret);
|
|
1294
1320
|
}
|
|
1295
1321
|
/**
|
|
@@ -1297,16 +1323,17 @@ export class AuthClient {
|
|
|
1297
1323
|
* @returns {RegistrationClient}
|
|
1298
1324
|
*/
|
|
1299
1325
|
registration() {
|
|
1300
|
-
const ret = wasm.
|
|
1326
|
+
const ret = wasm.authclient_registration(this.__wbg_ptr);
|
|
1301
1327
|
return RegistrationClient.__wrap(ret);
|
|
1302
1328
|
}
|
|
1303
1329
|
/**
|
|
1304
|
-
* Client for
|
|
1305
|
-
* @
|
|
1330
|
+
* Client for login functionality
|
|
1331
|
+
* @param {ClientSettings} client_settings
|
|
1332
|
+
* @returns {LoginClient}
|
|
1306
1333
|
*/
|
|
1307
|
-
|
|
1308
|
-
const ret = wasm.
|
|
1309
|
-
return
|
|
1334
|
+
login(client_settings) {
|
|
1335
|
+
const ret = wasm.authclient_login(this.__wbg_ptr, addHeapObject(client_settings));
|
|
1336
|
+
return LoginClient.__wrap(ret);
|
|
1310
1337
|
}
|
|
1311
1338
|
}
|
|
1312
1339
|
if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.free;
|
|
@@ -2824,36 +2851,6 @@ export class GeneratorClient {
|
|
|
2824
2851
|
}
|
|
2825
2852
|
if (Symbol.dispose) GeneratorClient.prototype[Symbol.dispose] = GeneratorClient.prototype.free;
|
|
2826
2853
|
|
|
2827
|
-
const IdentityClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2828
|
-
? { register: () => {}, unregister: () => {} }
|
|
2829
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_identityclient_free(ptr >>> 0, 1));
|
|
2830
|
-
/**
|
|
2831
|
-
* The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
|
|
2832
|
-
*/
|
|
2833
|
-
export class IdentityClient {
|
|
2834
|
-
|
|
2835
|
-
static __wrap(ptr) {
|
|
2836
|
-
ptr = ptr >>> 0;
|
|
2837
|
-
const obj = Object.create(IdentityClient.prototype);
|
|
2838
|
-
obj.__wbg_ptr = ptr;
|
|
2839
|
-
IdentityClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2840
|
-
return obj;
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
|
-
__destroy_into_raw() {
|
|
2844
|
-
const ptr = this.__wbg_ptr;
|
|
2845
|
-
this.__wbg_ptr = 0;
|
|
2846
|
-
IdentityClientFinalization.unregister(this);
|
|
2847
|
-
return ptr;
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
free() {
|
|
2851
|
-
const ptr = this.__destroy_into_raw();
|
|
2852
|
-
wasm.__wbg_identityclient_free(ptr, 0);
|
|
2853
|
-
}
|
|
2854
|
-
}
|
|
2855
|
-
if (Symbol.dispose) IdentityClient.prototype[Symbol.dispose] = IdentityClient.prototype.free;
|
|
2856
|
-
|
|
2857
2854
|
const IncomingMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2858
2855
|
? { register: () => {}, unregister: () => {} }
|
|
2859
2856
|
: new FinalizationRegistry(ptr => wasm.__wbg_incomingmessage_free(ptr >>> 0, 1));
|
|
@@ -3158,6 +3155,122 @@ export class IpcCommunicationBackend {
|
|
|
3158
3155
|
}
|
|
3159
3156
|
if (Symbol.dispose) IpcCommunicationBackend.prototype[Symbol.dispose] = IpcCommunicationBackend.prototype.free;
|
|
3160
3157
|
|
|
3158
|
+
const LoginClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3159
|
+
? { register: () => {}, unregister: () => {} }
|
|
3160
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_loginclient_free(ptr >>> 0, 1));
|
|
3161
|
+
/**
|
|
3162
|
+
* Client for authenticating Bitwarden users.
|
|
3163
|
+
*
|
|
3164
|
+
* Handles unauthenticated operations to obtain access tokens from the Identity API.
|
|
3165
|
+
* After successful authentication, use the returned tokens to create an authenticated core client.
|
|
3166
|
+
*
|
|
3167
|
+
* # Lifecycle
|
|
3168
|
+
*
|
|
3169
|
+
* 1. Create `LoginClient` via `AuthClient`
|
|
3170
|
+
* 2. Call login method
|
|
3171
|
+
* 3. Use returned tokens with authenticated core client
|
|
3172
|
+
*
|
|
3173
|
+
* # Password Login Example
|
|
3174
|
+
*
|
|
3175
|
+
* ```rust,no_run
|
|
3176
|
+
* # use bitwarden_auth::{AuthClient, login::login_via_password::PasswordLoginRequest};
|
|
3177
|
+
* # use bitwarden_auth::login::models::{LoginRequest, LoginDeviceRequest, LoginResponse};
|
|
3178
|
+
* # use bitwarden_core::{Client, ClientSettings, DeviceType};
|
|
3179
|
+
* # async fn example(email: String, password: String) -> Result<(), Box<dyn std::error::Error>> {
|
|
3180
|
+
* // Create auth client
|
|
3181
|
+
* let client = Client::new(None);
|
|
3182
|
+
* let auth_client = AuthClient::new(client);
|
|
3183
|
+
*
|
|
3184
|
+
* // Configure client settings and create login client
|
|
3185
|
+
* let settings = ClientSettings {
|
|
3186
|
+
* identity_url: "https://identity.bitwarden.com".to_string(),
|
|
3187
|
+
* api_url: "https://api.bitwarden.com".to_string(),
|
|
3188
|
+
* user_agent: "MyApp/1.0".to_string(),
|
|
3189
|
+
* device_type: DeviceType::SDK,
|
|
3190
|
+
* device_identifier: None,
|
|
3191
|
+
* bitwarden_client_version: None,
|
|
3192
|
+
* bitwarden_package_type: None,
|
|
3193
|
+
* };
|
|
3194
|
+
* let login_client = auth_client.login(settings);
|
|
3195
|
+
*
|
|
3196
|
+
* // Get user's KDF config
|
|
3197
|
+
* let prelogin = login_client.get_password_prelogin(email.clone()).await?;
|
|
3198
|
+
*
|
|
3199
|
+
* // Login with credentials
|
|
3200
|
+
* let response = login_client.login_via_password(PasswordLoginRequest {
|
|
3201
|
+
* login_request: LoginRequest {
|
|
3202
|
+
* client_id: "connector".to_string(),
|
|
3203
|
+
* device: LoginDeviceRequest {
|
|
3204
|
+
* device_type: DeviceType::SDK,
|
|
3205
|
+
* device_identifier: "device-id".to_string(),
|
|
3206
|
+
* device_name: "My Device".to_string(),
|
|
3207
|
+
* device_push_token: None,
|
|
3208
|
+
* },
|
|
3209
|
+
* },
|
|
3210
|
+
* email,
|
|
3211
|
+
* password,
|
|
3212
|
+
* prelogin_response: prelogin,
|
|
3213
|
+
* }).await?;
|
|
3214
|
+
*
|
|
3215
|
+
* // Use tokens from response for authenticated requests
|
|
3216
|
+
* match response {
|
|
3217
|
+
* LoginResponse::Authenticated(success) => {
|
|
3218
|
+
* let access_token = success.access_token;
|
|
3219
|
+
* // Use access_token for authenticated requests
|
|
3220
|
+
* }
|
|
3221
|
+
* }
|
|
3222
|
+
* # Ok(())
|
|
3223
|
+
* # }
|
|
3224
|
+
* ```
|
|
3225
|
+
*/
|
|
3226
|
+
export class LoginClient {
|
|
3227
|
+
|
|
3228
|
+
static __wrap(ptr) {
|
|
3229
|
+
ptr = ptr >>> 0;
|
|
3230
|
+
const obj = Object.create(LoginClient.prototype);
|
|
3231
|
+
obj.__wbg_ptr = ptr;
|
|
3232
|
+
LoginClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3233
|
+
return obj;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
__destroy_into_raw() {
|
|
3237
|
+
const ptr = this.__wbg_ptr;
|
|
3238
|
+
this.__wbg_ptr = 0;
|
|
3239
|
+
LoginClientFinalization.unregister(this);
|
|
3240
|
+
return ptr;
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
free() {
|
|
3244
|
+
const ptr = this.__destroy_into_raw();
|
|
3245
|
+
wasm.__wbg_loginclient_free(ptr, 0);
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Retrieves the data required before authenticating with a password.
|
|
3249
|
+
* This includes the user's KDF configuration needed to properly derive the master key.
|
|
3250
|
+
* @param {string} email
|
|
3251
|
+
* @returns {Promise<PasswordPreloginResponse>}
|
|
3252
|
+
*/
|
|
3253
|
+
get_password_prelogin(email) {
|
|
3254
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3256
|
+
const ret = wasm.loginclient_get_password_prelogin(this.__wbg_ptr, ptr0, len0);
|
|
3257
|
+
return takeObject(ret);
|
|
3258
|
+
}
|
|
3259
|
+
/**
|
|
3260
|
+
* Authenticates a user via email and master password.
|
|
3261
|
+
*
|
|
3262
|
+
* Derives the master password hash using KDF settings from prelogin, then sends
|
|
3263
|
+
* the authentication request to obtain access tokens and vault keys.
|
|
3264
|
+
* @param {PasswordLoginRequest} request
|
|
3265
|
+
* @returns {Promise<LoginResponse>}
|
|
3266
|
+
*/
|
|
3267
|
+
login_via_password(request) {
|
|
3268
|
+
const ret = wasm.loginclient_login_via_password(this.__wbg_ptr, addHeapObject(request));
|
|
3269
|
+
return takeObject(ret);
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
if (Symbol.dispose) LoginClient.prototype[Symbol.dispose] = LoginClient.prototype.free;
|
|
3273
|
+
|
|
3161
3274
|
const OutgoingMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3162
3275
|
? { register: () => {}, unregister: () => {} }
|
|
3163
3276
|
: new FinalizationRegistry(ptr => wasm.__wbg_outgoingmessage_free(ptr >>> 0, 1));
|
|
@@ -5031,7 +5144,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
|
|
|
5031
5144
|
return addHeapObject(ret);
|
|
5032
5145
|
}, arguments) };
|
|
5033
5146
|
|
|
5034
|
-
export function
|
|
5147
|
+
export function __wbg_cipher_4228d3ba182c9f16(arg0) {
|
|
5035
5148
|
const ret = getObject(arg0).cipher;
|
|
5036
5149
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
5037
5150
|
};
|
|
@@ -5118,7 +5231,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
5118
5231
|
return addHeapObject(ret);
|
|
5119
5232
|
};
|
|
5120
5233
|
|
|
5121
|
-
export function
|
|
5234
|
+
export function __wbg_folder_c6c5d834170f1f40(arg0) {
|
|
5122
5235
|
const ret = getObject(arg0).folder;
|
|
5123
5236
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
5124
5237
|
};
|
|
@@ -5150,17 +5263,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
5150
5263
|
return ret;
|
|
5151
5264
|
};
|
|
5152
5265
|
|
|
5153
|
-
export function
|
|
5154
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5155
|
-
return addHeapObject(ret);
|
|
5156
|
-
};
|
|
5157
|
-
|
|
5158
|
-
export function __wbg_get_access_token_c99c8e679891fd36(arg0) {
|
|
5159
|
-
const ret = getObject(arg0).get_access_token();
|
|
5160
|
-
return addHeapObject(ret);
|
|
5161
|
-
};
|
|
5162
|
-
|
|
5163
|
-
export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0, arg1, arg2) {
|
|
5266
|
+
export function __wbg_get_22168cc15f53f39a() { return handleError(function (arg0, arg1, arg2) {
|
|
5164
5267
|
let deferred0_0;
|
|
5165
5268
|
let deferred0_1;
|
|
5166
5269
|
try {
|
|
@@ -5173,7 +5276,17 @@ export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0
|
|
|
5173
5276
|
}
|
|
5174
5277
|
}, arguments) };
|
|
5175
5278
|
|
|
5176
|
-
export function
|
|
5279
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
5280
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5281
|
+
return addHeapObject(ret);
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
export function __wbg_get_access_token_6c1ed42c50d451d8(arg0) {
|
|
5285
|
+
const ret = getObject(arg0).get_access_token();
|
|
5286
|
+
return addHeapObject(ret);
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5289
|
+
export function __wbg_get_c03a59ff46a549dd() { return handleError(function (arg0, arg1, arg2) {
|
|
5177
5290
|
let deferred0_0;
|
|
5178
5291
|
let deferred0_1;
|
|
5179
5292
|
try {
|
|
@@ -5186,7 +5299,7 @@ export function __wbg_get_cb2b978f8f284157() { return handleError(function (arg0
|
|
|
5186
5299
|
}
|
|
5187
5300
|
}, arguments) };
|
|
5188
5301
|
|
|
5189
|
-
export function
|
|
5302
|
+
export function __wbg_get_c78dbac25bcf56d5() { return handleError(function (arg0, arg1, arg2) {
|
|
5190
5303
|
let deferred0_0;
|
|
5191
5304
|
let deferred0_1;
|
|
5192
5305
|
try {
|
|
@@ -5387,12 +5500,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
5387
5500
|
return ret;
|
|
5388
5501
|
};
|
|
5389
5502
|
|
|
5390
|
-
export function
|
|
5503
|
+
export function __wbg_list_5c983f67fab1cd3a() { return handleError(function (arg0) {
|
|
5391
5504
|
const ret = getObject(arg0).list();
|
|
5392
5505
|
return addHeapObject(ret);
|
|
5393
5506
|
}, arguments) };
|
|
5394
5507
|
|
|
5395
|
-
export function
|
|
5508
|
+
export function __wbg_list_e7571aba7fd44610() { return handleError(function (arg0) {
|
|
5396
5509
|
const ret = getObject(arg0).list();
|
|
5397
5510
|
return addHeapObject(ret);
|
|
5398
5511
|
}, arguments) };
|
|
@@ -5593,7 +5706,7 @@ export function __wbg_randomFillSync_f8c153b79f285817() { return handleError(fun
|
|
|
5593
5706
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
5594
5707
|
}, arguments) };
|
|
5595
5708
|
|
|
5596
|
-
export function
|
|
5709
|
+
export function __wbg_remove_b5bf25ff530f5fd6() { return handleError(function (arg0, arg1, arg2) {
|
|
5597
5710
|
let deferred0_0;
|
|
5598
5711
|
let deferred0_1;
|
|
5599
5712
|
try {
|
|
@@ -5606,7 +5719,7 @@ export function __wbg_remove_632104ab2021517c() { return handleError(function (a
|
|
|
5606
5719
|
}
|
|
5607
5720
|
}, arguments) };
|
|
5608
5721
|
|
|
5609
|
-
export function
|
|
5722
|
+
export function __wbg_remove_d8f7e5e884285943() { return handleError(function (arg0, arg1, arg2) {
|
|
5610
5723
|
let deferred0_0;
|
|
5611
5724
|
let deferred0_1;
|
|
5612
5725
|
try {
|
|
@@ -5657,11 +5770,24 @@ export function __wbg_setTimeout_4ec014681668a581(arg0, arg1) {
|
|
|
5657
5770
|
return addHeapObject(ret);
|
|
5658
5771
|
};
|
|
5659
5772
|
|
|
5773
|
+
export function __wbg_set_2ec8925eaaec77ed() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5774
|
+
let deferred0_0;
|
|
5775
|
+
let deferred0_1;
|
|
5776
|
+
try {
|
|
5777
|
+
deferred0_0 = arg1;
|
|
5778
|
+
deferred0_1 = arg2;
|
|
5779
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5780
|
+
return addHeapObject(ret);
|
|
5781
|
+
} finally {
|
|
5782
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5783
|
+
}
|
|
5784
|
+
}, arguments) };
|
|
5785
|
+
|
|
5660
5786
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5661
5787
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5662
5788
|
};
|
|
5663
5789
|
|
|
5664
|
-
export function
|
|
5790
|
+
export function __wbg_set_87ea03fba3a948e0() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5665
5791
|
let deferred0_0;
|
|
5666
5792
|
let deferred0_1;
|
|
5667
5793
|
try {
|
|
@@ -5695,19 +5821,6 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5695
5821
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5696
5822
|
};
|
|
5697
5823
|
|
|
5698
|
-
export function __wbg_set_fa1b43b5269fa461() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5699
|
-
let deferred0_0;
|
|
5700
|
-
let deferred0_1;
|
|
5701
|
-
try {
|
|
5702
|
-
deferred0_0 = arg1;
|
|
5703
|
-
deferred0_1 = arg2;
|
|
5704
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5705
|
-
return addHeapObject(ret);
|
|
5706
|
-
} finally {
|
|
5707
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5708
|
-
}
|
|
5709
|
-
}, arguments) };
|
|
5710
|
-
|
|
5711
5824
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5712
5825
|
getObject(arg0).headers = getObject(arg1);
|
|
5713
5826
|
};
|
|
@@ -5873,9 +5986,9 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
|
|
|
5873
5986
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5874
5987
|
};
|
|
5875
5988
|
|
|
5876
|
-
export function
|
|
5877
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5878
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
5989
|
+
export function __wbindgen_cast_1f226b80747be202(arg0, arg1) {
|
|
5990
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 337, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5991
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h14b8abadf056d28e, wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f);
|
|
5879
5992
|
return addHeapObject(ret);
|
|
5880
5993
|
};
|
|
5881
5994
|
|
|
@@ -5885,12 +5998,30 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
|
5885
5998
|
return addHeapObject(ret);
|
|
5886
5999
|
};
|
|
5887
6000
|
|
|
6001
|
+
export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
|
|
6002
|
+
// 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`.
|
|
6003
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb3274d877c18ac57, wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f);
|
|
6004
|
+
return addHeapObject(ret);
|
|
6005
|
+
};
|
|
6006
|
+
|
|
6007
|
+
export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
|
|
6008
|
+
// 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`.
|
|
6009
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb3274d877c18ac57, wasm_bindgen__convert__closures_____invoke__h8480ffc4663e6c26);
|
|
6010
|
+
return addHeapObject(ret);
|
|
6011
|
+
};
|
|
6012
|
+
|
|
5888
6013
|
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
5889
6014
|
// Cast intrinsic for `U64 -> Externref`.
|
|
5890
6015
|
const ret = BigInt.asUintN(64, arg0);
|
|
5891
6016
|
return addHeapObject(ret);
|
|
5892
6017
|
};
|
|
5893
6018
|
|
|
6019
|
+
export function __wbindgen_cast_5b5d7835527c0ac5(arg0, arg1) {
|
|
6020
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 344, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6021
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9, wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f);
|
|
6022
|
+
return addHeapObject(ret);
|
|
6023
|
+
};
|
|
6024
|
+
|
|
5894
6025
|
export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
5895
6026
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5896
6027
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5899,14 +6030,8 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
|
|
|
5899
6030
|
return addHeapObject(ret);
|
|
5900
6031
|
};
|
|
5901
6032
|
|
|
5902
|
-
export function
|
|
5903
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
5904
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9, wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9);
|
|
5905
|
-
return addHeapObject(ret);
|
|
5906
|
-
};
|
|
5907
|
-
|
|
5908
|
-
export function __wbindgen_cast_70d857d4db1e3ac4(arg0, arg1) {
|
|
5909
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 598, function: Function { arguments: [], shim_idx: 336, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6033
|
+
export function __wbindgen_cast_6ebfdd24d49324e6(arg0, arg1) {
|
|
6034
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 600, function: Function { arguments: [], shim_idx: 338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5910
6035
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2b9785764fab287c, wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743);
|
|
5911
6036
|
return addHeapObject(ret);
|
|
5912
6037
|
};
|
|
@@ -5919,15 +6044,15 @@ export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
|
|
|
5919
6044
|
return addHeapObject(ret);
|
|
5920
6045
|
};
|
|
5921
6046
|
|
|
5922
|
-
export function
|
|
5923
|
-
// Cast intrinsic for `
|
|
5924
|
-
const ret = arg0;
|
|
6047
|
+
export function __wbindgen_cast_829978f7e672581b(arg0, arg1) {
|
|
6048
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 337, function: Function { arguments: [], shim_idx: 338, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6049
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h14b8abadf056d28e, wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743);
|
|
5925
6050
|
return addHeapObject(ret);
|
|
5926
6051
|
};
|
|
5927
6052
|
|
|
5928
|
-
export function
|
|
5929
|
-
// Cast intrinsic for `
|
|
5930
|
-
const ret =
|
|
6053
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
6054
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
6055
|
+
const ret = arg0;
|
|
5931
6056
|
return addHeapObject(ret);
|
|
5932
6057
|
};
|
|
5933
6058
|
|
|
@@ -5943,12 +6068,6 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
5943
6068
|
return addHeapObject(ret);
|
|
5944
6069
|
};
|
|
5945
6070
|
|
|
5946
|
-
export function __wbindgen_cast_e12aaa4ecde9c999(arg0, arg1) {
|
|
5947
|
-
// 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`.
|
|
5948
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0d309ba826c21d2e, wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c);
|
|
5949
|
-
return addHeapObject(ret);
|
|
5950
|
-
};
|
|
5951
|
-
|
|
5952
6071
|
export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
|
|
5953
6072
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
5954
6073
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -5957,12 +6076,6 @@ export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
|
|
|
5957
6076
|
return addHeapObject(ret);
|
|
5958
6077
|
};
|
|
5959
6078
|
|
|
5960
|
-
export function __wbindgen_cast_fc73a81ca98ca911(arg0, arg1) {
|
|
5961
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 335, function: Function { arguments: [], shim_idx: 336, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5962
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h14b8abadf056d28e, wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743);
|
|
5963
|
-
return addHeapObject(ret);
|
|
5964
|
-
};
|
|
5965
|
-
|
|
5966
6079
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
5967
6080
|
const ret = getObject(arg0);
|
|
5968
6081
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -205,9 +205,13 @@ export const stateclient_register_cipher_repository: (a: number, b: number) => v
|
|
|
205
205
|
export const stateclient_register_client_managed_repositories: (a: number, b: number) => void;
|
|
206
206
|
export const stateclient_register_folder_repository: (a: number, b: number) => void;
|
|
207
207
|
export const __wbg_authclient_free: (a: number, b: number) => void;
|
|
208
|
-
export const
|
|
209
|
-
export const
|
|
208
|
+
export const authclient_login: (a: number, b: number) => number;
|
|
209
|
+
export const authclient_registration: (a: number) => number;
|
|
210
|
+
export const isPasswordLoginError: (a: number) => number;
|
|
211
|
+
export const isPasswordPreloginError: (a: number) => number;
|
|
210
212
|
export const isRegistrationError: (a: number) => number;
|
|
213
|
+
export const loginclient_get_password_prelogin: (a: number, b: number, c: number) => number;
|
|
214
|
+
export const loginclient_login_via_password: (a: number, b: number) => number;
|
|
211
215
|
export const registrationclient_post_keys_for_jit_password_registration: (
|
|
212
216
|
a: number,
|
|
213
217
|
b: number,
|
|
@@ -522,13 +526,13 @@ export const totpclient_generate_totp: (
|
|
|
522
526
|
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
523
527
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
524
528
|
export const platformclient_state: (a: number) => number;
|
|
525
|
-
export const authclient_registration: (a: number) => number;
|
|
526
529
|
export const authclient_send_access: (a: number) => number;
|
|
527
530
|
export const vaultclient_cipher_risk: (a: number) => number;
|
|
528
531
|
export const vaultclient_ciphers: (a: number) => number;
|
|
529
532
|
export const vaultclient_collections: (a: number) => number;
|
|
530
533
|
export const vaultclient_folders: (a: number) => number;
|
|
531
534
|
export const vaultclient_totp: (a: number) => number;
|
|
535
|
+
export const __wbg_loginclient_free: (a: number, b: number) => void;
|
|
532
536
|
export const __wbg_registrationclient_free: (a: number, b: number) => void;
|
|
533
537
|
export const __wbg_sendaccessclient_free: (a: number, b: number) => void;
|
|
534
538
|
export const __wbg_cipheradminclient_free: (a: number, b: number) => void;
|
|
@@ -543,25 +547,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
|
543
547
|
export const vaultclient_attachments: (a: number) => number;
|
|
544
548
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
545
549
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
546
|
-
export const
|
|
550
|
+
export const wasm_bindgen__convert__closures_____invoke__h0e3b10fdbeb92b2f: (
|
|
547
551
|
a: number,
|
|
548
552
|
b: number,
|
|
549
553
|
c: number,
|
|
550
554
|
) => void;
|
|
551
|
-
export const
|
|
552
|
-
export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
|
|
555
|
+
export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
|
|
553
556
|
export const wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743: (
|
|
554
557
|
a: number,
|
|
555
558
|
b: number,
|
|
556
559
|
) => void;
|
|
557
|
-
export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
|
|
558
560
|
export const wasm_bindgen__closure__destroy__h2b9785764fab287c: (a: number, b: number) => void;
|
|
559
|
-
export const
|
|
561
|
+
export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
|
|
562
|
+
export const wasm_bindgen__convert__closures_____invoke__h8480ffc4663e6c26: (
|
|
560
563
|
a: number,
|
|
561
564
|
b: number,
|
|
562
565
|
c: number,
|
|
563
566
|
d: number,
|
|
564
567
|
) => void;
|
|
568
|
+
export const wasm_bindgen__closure__destroy__hb3274d877c18ac57: (a: number, b: number) => void;
|
|
565
569
|
export const wasm_bindgen__convert__closures_____invoke__hc4d57ad329cc6f58: (
|
|
566
570
|
a: number,
|
|
567
571
|
b: number,
|