@bitwarden/commercial-sdk-internal 0.2.0-main.405 → 0.2.0-main.407
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/bitwarden_wasm_internal.d.ts +14 -2
- package/bitwarden_wasm_internal_bg.js +65 -26
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +9 -7
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +14 -2
- package/node/bitwarden_wasm_internal.js +71 -30
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +8 -6
- package/package.json +1 -1
|
@@ -286,8 +286,8 @@ export interface SendAccessTokenRequest {
|
|
|
286
286
|
*/
|
|
287
287
|
export type SendAccessCredentials =
|
|
288
288
|
| SendPasswordCredentials
|
|
289
|
-
|
|
|
290
|
-
|
|
|
289
|
+
| SendEmailOtpCredentials
|
|
290
|
+
| SendEmailCredentials;
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Credentials for getting a send access token using an email and OTP.
|
|
@@ -1836,6 +1836,10 @@ export class AuthClient {
|
|
|
1836
1836
|
* Client for send access functionality
|
|
1837
1837
|
*/
|
|
1838
1838
|
send_access(): SendAccessClient;
|
|
1839
|
+
/**
|
|
1840
|
+
* Client for initializing user account cryptography and unlock methods after JIT provisioning
|
|
1841
|
+
*/
|
|
1842
|
+
registration(): RegistrationClient;
|
|
1839
1843
|
}
|
|
1840
1844
|
/**
|
|
1841
1845
|
* Client for evaluating credential risk for login ciphers.
|
|
@@ -2472,6 +2476,14 @@ export class PureCrypto {
|
|
|
2472
2476
|
*/
|
|
2473
2477
|
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2474
2478
|
}
|
|
2479
|
+
/**
|
|
2480
|
+
* Client for initializing a user account.
|
|
2481
|
+
*/
|
|
2482
|
+
export class RegistrationClient {
|
|
2483
|
+
private constructor();
|
|
2484
|
+
free(): void;
|
|
2485
|
+
[Symbol.dispose](): void;
|
|
2486
|
+
}
|
|
2475
2487
|
/**
|
|
2476
2488
|
* The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
|
|
2477
2489
|
*/
|
|
@@ -858,6 +858,18 @@ exports.isEncryptFileError = function (error) {
|
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
+
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
862
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
863
|
+
arg0,
|
|
864
|
+
arg1,
|
|
865
|
+
addHeapObject(arg2),
|
|
866
|
+
);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
870
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
871
|
+
}
|
|
872
|
+
|
|
861
873
|
function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg1, arg2) {
|
|
862
874
|
try {
|
|
863
875
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -877,18 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg
|
|
|
877
889
|
}
|
|
878
890
|
}
|
|
879
891
|
|
|
880
|
-
function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
|
|
881
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
|
|
882
|
-
arg0,
|
|
883
|
-
arg1,
|
|
884
|
-
addHeapObject(arg2),
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
889
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
892
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
893
893
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
894
894
|
arg0,
|
|
@@ -1180,6 +1180,14 @@ class AuthClient {
|
|
|
1180
1180
|
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1181
1181
|
return SendAccessClient.__wrap(ret);
|
|
1182
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Client for initializing user account cryptography and unlock methods after JIT provisioning
|
|
1185
|
+
* @returns {RegistrationClient}
|
|
1186
|
+
*/
|
|
1187
|
+
registration() {
|
|
1188
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1189
|
+
return RegistrationClient.__wrap(ret);
|
|
1190
|
+
}
|
|
1183
1191
|
}
|
|
1184
1192
|
if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.free;
|
|
1185
1193
|
|
|
@@ -4248,6 +4256,39 @@ if (Symbol.dispose) PureCrypto.prototype[Symbol.dispose] = PureCrypto.prototype.
|
|
|
4248
4256
|
|
|
4249
4257
|
exports.PureCrypto = PureCrypto;
|
|
4250
4258
|
|
|
4259
|
+
const RegistrationClientFinalization =
|
|
4260
|
+
typeof FinalizationRegistry === "undefined"
|
|
4261
|
+
? { register: () => {}, unregister: () => {} }
|
|
4262
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_registrationclient_free(ptr >>> 0, 1));
|
|
4263
|
+
/**
|
|
4264
|
+
* Client for initializing a user account.
|
|
4265
|
+
*/
|
|
4266
|
+
class RegistrationClient {
|
|
4267
|
+
static __wrap(ptr) {
|
|
4268
|
+
ptr = ptr >>> 0;
|
|
4269
|
+
const obj = Object.create(RegistrationClient.prototype);
|
|
4270
|
+
obj.__wbg_ptr = ptr;
|
|
4271
|
+
RegistrationClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
4272
|
+
return obj;
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
__destroy_into_raw() {
|
|
4276
|
+
const ptr = this.__wbg_ptr;
|
|
4277
|
+
this.__wbg_ptr = 0;
|
|
4278
|
+
RegistrationClientFinalization.unregister(this);
|
|
4279
|
+
return ptr;
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
free() {
|
|
4283
|
+
const ptr = this.__destroy_into_raw();
|
|
4284
|
+
wasm.__wbg_registrationclient_free(ptr, 0);
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
if (Symbol.dispose)
|
|
4288
|
+
RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
|
|
4289
|
+
|
|
4290
|
+
exports.RegistrationClient = RegistrationClient;
|
|
4291
|
+
|
|
4251
4292
|
const SendAccessClientFinalization =
|
|
4252
4293
|
typeof FinalizationRegistry === "undefined"
|
|
4253
4294
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -4670,7 +4711,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
|
|
|
4670
4711
|
}, arguments);
|
|
4671
4712
|
};
|
|
4672
4713
|
|
|
4673
|
-
exports.
|
|
4714
|
+
exports.__wbg_cipher_024a86a8b118ddac = function (arg0) {
|
|
4674
4715
|
const ret = getObject(arg0).cipher;
|
|
4675
4716
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4676
4717
|
};
|
|
@@ -4763,7 +4804,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
|
|
|
4763
4804
|
return addHeapObject(ret);
|
|
4764
4805
|
};
|
|
4765
4806
|
|
|
4766
|
-
exports.
|
|
4807
|
+
exports.__wbg_folder_9cea799de324dd1e = function (arg0) {
|
|
4767
4808
|
const ret = getObject(arg0).folder;
|
|
4768
4809
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4769
4810
|
};
|
|
@@ -4796,7 +4837,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4796
4837
|
return ret;
|
|
4797
4838
|
};
|
|
4798
4839
|
|
|
4799
|
-
exports.
|
|
4840
|
+
exports.__wbg_get_129fd7e95b5f7904 = function () {
|
|
4800
4841
|
return handleError(function (arg0, arg1, arg2) {
|
|
4801
4842
|
let deferred0_0;
|
|
4802
4843
|
let deferred0_1;
|
|
@@ -4816,12 +4857,12 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
|
4816
4857
|
return addHeapObject(ret);
|
|
4817
4858
|
};
|
|
4818
4859
|
|
|
4819
|
-
exports.
|
|
4860
|
+
exports.__wbg_get_access_token_abef009db5fa750c = function (arg0) {
|
|
4820
4861
|
const ret = getObject(arg0).get_access_token();
|
|
4821
4862
|
return addHeapObject(ret);
|
|
4822
4863
|
};
|
|
4823
4864
|
|
|
4824
|
-
exports.
|
|
4865
|
+
exports.__wbg_get_eee8ecedab041535 = function () {
|
|
4825
4866
|
return handleError(function (arg0, arg1, arg2) {
|
|
4826
4867
|
let deferred0_0;
|
|
4827
4868
|
let deferred0_1;
|
|
@@ -5027,14 +5068,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
5027
5068
|
return ret;
|
|
5028
5069
|
};
|
|
5029
5070
|
|
|
5030
|
-
exports.
|
|
5071
|
+
exports.__wbg_list_33b035298e503422 = function () {
|
|
5031
5072
|
return handleError(function (arg0) {
|
|
5032
5073
|
const ret = getObject(arg0).list();
|
|
5033
5074
|
return addHeapObject(ret);
|
|
5034
5075
|
}, arguments);
|
|
5035
5076
|
};
|
|
5036
5077
|
|
|
5037
|
-
exports.
|
|
5078
|
+
exports.__wbg_list_dac0fdb39533e45c = function () {
|
|
5038
5079
|
return handleError(function (arg0) {
|
|
5039
5080
|
const ret = getObject(arg0).list();
|
|
5040
5081
|
return addHeapObject(ret);
|
|
@@ -5278,7 +5319,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
5278
5319
|
}, arguments);
|
|
5279
5320
|
};
|
|
5280
5321
|
|
|
5281
|
-
exports.
|
|
5322
|
+
exports.__wbg_remove_1b8d8ab47af664e0 = function () {
|
|
5282
5323
|
return handleError(function (arg0, arg1, arg2) {
|
|
5283
5324
|
let deferred0_0;
|
|
5284
5325
|
let deferred0_1;
|
|
@@ -5293,7 +5334,7 @@ exports.__wbg_remove_610f7f30b398d771 = function () {
|
|
|
5293
5334
|
}, arguments);
|
|
5294
5335
|
};
|
|
5295
5336
|
|
|
5296
|
-
exports.
|
|
5337
|
+
exports.__wbg_remove_6f00aa5f40dfd37c = function () {
|
|
5297
5338
|
return handleError(function (arg0, arg1, arg2) {
|
|
5298
5339
|
let deferred0_0;
|
|
5299
5340
|
let deferred0_1;
|
|
@@ -5339,7 +5380,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
5339
5380
|
return addHeapObject(ret);
|
|
5340
5381
|
};
|
|
5341
5382
|
|
|
5342
|
-
exports.
|
|
5383
|
+
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5384
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5385
|
+
};
|
|
5386
|
+
|
|
5387
|
+
exports.__wbg_set_4d0fb27359ddae64 = function () {
|
|
5343
5388
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5344
5389
|
let deferred0_0;
|
|
5345
5390
|
let deferred0_1;
|
|
@@ -5354,11 +5399,12 @@ exports.__wbg_set_16779e1c12161eee = function () {
|
|
|
5354
5399
|
}, arguments);
|
|
5355
5400
|
};
|
|
5356
5401
|
|
|
5357
|
-
exports.
|
|
5358
|
-
getObject(arg0)
|
|
5402
|
+
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5403
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5404
|
+
return addHeapObject(ret);
|
|
5359
5405
|
};
|
|
5360
5406
|
|
|
5361
|
-
exports.
|
|
5407
|
+
exports.__wbg_set_a1854a59e5ec2573 = function () {
|
|
5362
5408
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5363
5409
|
let deferred0_0;
|
|
5364
5410
|
let deferred0_1;
|
|
@@ -5373,11 +5419,6 @@ exports.__wbg_set_6d45f26bc45340a7 = function () {
|
|
|
5373
5419
|
}, arguments);
|
|
5374
5420
|
};
|
|
5375
5421
|
|
|
5376
|
-
exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
|
|
5377
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5378
|
-
return addHeapObject(ret);
|
|
5379
|
-
};
|
|
5380
|
-
|
|
5381
5422
|
exports.__wbg_set_body_3c365989753d61f4 = function (arg0, arg1) {
|
|
5382
5423
|
getObject(arg0).body = getObject(arg1);
|
|
5383
5424
|
};
|
|
Binary file
|
|
@@ -436,11 +436,13 @@ export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
|
436
436
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
437
437
|
export const platformclient_state: (a: number) => number;
|
|
438
438
|
export const authclient_send_access: (a: number) => number;
|
|
439
|
+
export const authclient_registration: (a: number) => number;
|
|
439
440
|
export const vaultclient_ciphers: (a: number) => number;
|
|
440
441
|
export const vaultclient_folders: (a: number) => number;
|
|
441
442
|
export const vaultclient_totp: (a: number) => number;
|
|
442
443
|
export const vaultclient_collections: (a: number) => number;
|
|
443
444
|
export const vaultclient_cipher_risk: (a: number) => number;
|
|
445
|
+
export const __wbg_registrationclient_free: (a: number, b: number) => void;
|
|
444
446
|
export const __wbg_foldersclient_free: (a: number, b: number) => void;
|
|
445
447
|
export const __wbg_cipherriskclient_free: (a: number, b: number) => void;
|
|
446
448
|
export const __wbg_ciphersclient_free: (a: number, b: number) => void;
|
|
@@ -451,24 +453,24 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
451
453
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
452
454
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
453
455
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
454
|
-
export const
|
|
456
|
+
export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
|
|
455
457
|
a: number,
|
|
456
458
|
b: number,
|
|
457
459
|
c: number,
|
|
458
|
-
d: number,
|
|
459
460
|
) => void;
|
|
460
461
|
export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
|
|
461
|
-
export const
|
|
462
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
462
463
|
a: number,
|
|
463
464
|
b: number,
|
|
464
|
-
c: number,
|
|
465
465
|
) => void;
|
|
466
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
466
467
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
467
|
-
export const
|
|
468
|
+
export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
|
|
468
469
|
a: number,
|
|
469
470
|
b: number,
|
|
471
|
+
c: number,
|
|
472
|
+
d: number,
|
|
470
473
|
) => void;
|
|
471
|
-
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
472
474
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
473
475
|
a: number,
|
|
474
476
|
b: number,
|