@bitwarden/sdk-internal 0.2.0-main.405 → 0.2.0-main.406
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 +12 -0
- package/bitwarden_wasm_internal_bg.js +87 -48
- 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 +12 -0
- package/node/bitwarden_wasm_internal.js +85 -44
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +6 -4
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a09e691a401c219ca5033000fe421a91d2531f52
|
|
@@ -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.
|
|
@@ -2451,6 +2455,14 @@ export class PureCrypto {
|
|
|
2451
2455
|
*/
|
|
2452
2456
|
static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
|
|
2453
2457
|
}
|
|
2458
|
+
/**
|
|
2459
|
+
* Client for initializing a user account.
|
|
2460
|
+
*/
|
|
2461
|
+
export class RegistrationClient {
|
|
2462
|
+
private constructor();
|
|
2463
|
+
free(): void;
|
|
2464
|
+
[Symbol.dispose](): void;
|
|
2465
|
+
}
|
|
2454
2466
|
/**
|
|
2455
2467
|
* The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
|
|
2456
2468
|
*/
|
|
@@ -868,18 +868,6 @@ export function isEncryptFileError(error) {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
|
|
872
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
|
|
873
|
-
arg0,
|
|
874
|
-
arg1,
|
|
875
|
-
addHeapObject(arg2),
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
880
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
871
|
function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg1, arg2) {
|
|
884
872
|
try {
|
|
885
873
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -899,6 +887,18 @@ function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg
|
|
|
899
887
|
}
|
|
900
888
|
}
|
|
901
889
|
|
|
890
|
+
function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
|
|
891
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
|
|
892
|
+
arg0,
|
|
893
|
+
arg1,
|
|
894
|
+
addHeapObject(arg2),
|
|
895
|
+
);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
899
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
902
|
function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
|
|
903
903
|
wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
|
|
904
904
|
arg0,
|
|
@@ -1188,6 +1188,14 @@ export class AuthClient {
|
|
|
1188
1188
|
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1189
1189
|
return SendAccessClient.__wrap(ret);
|
|
1190
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Client for initializing user account cryptography and unlock methods after JIT provisioning
|
|
1193
|
+
* @returns {RegistrationClient}
|
|
1194
|
+
*/
|
|
1195
|
+
registration() {
|
|
1196
|
+
const ret = wasm.authclient_identity(this.__wbg_ptr);
|
|
1197
|
+
return RegistrationClient.__wrap(ret);
|
|
1198
|
+
}
|
|
1191
1199
|
}
|
|
1192
1200
|
if (Symbol.dispose) AuthClient.prototype[Symbol.dispose] = AuthClient.prototype.free;
|
|
1193
1201
|
|
|
@@ -4135,6 +4143,37 @@ export class PureCrypto {
|
|
|
4135
4143
|
}
|
|
4136
4144
|
if (Symbol.dispose) PureCrypto.prototype[Symbol.dispose] = PureCrypto.prototype.free;
|
|
4137
4145
|
|
|
4146
|
+
const RegistrationClientFinalization =
|
|
4147
|
+
typeof FinalizationRegistry === "undefined"
|
|
4148
|
+
? { register: () => {}, unregister: () => {} }
|
|
4149
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_registrationclient_free(ptr >>> 0, 1));
|
|
4150
|
+
/**
|
|
4151
|
+
* Client for initializing a user account.
|
|
4152
|
+
*/
|
|
4153
|
+
export class RegistrationClient {
|
|
4154
|
+
static __wrap(ptr) {
|
|
4155
|
+
ptr = ptr >>> 0;
|
|
4156
|
+
const obj = Object.create(RegistrationClient.prototype);
|
|
4157
|
+
obj.__wbg_ptr = ptr;
|
|
4158
|
+
RegistrationClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
4159
|
+
return obj;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
__destroy_into_raw() {
|
|
4163
|
+
const ptr = this.__wbg_ptr;
|
|
4164
|
+
this.__wbg_ptr = 0;
|
|
4165
|
+
RegistrationClientFinalization.unregister(this);
|
|
4166
|
+
return ptr;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
free() {
|
|
4170
|
+
const ptr = this.__destroy_into_raw();
|
|
4171
|
+
wasm.__wbg_registrationclient_free(ptr, 0);
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
if (Symbol.dispose)
|
|
4175
|
+
RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
|
|
4176
|
+
|
|
4138
4177
|
const SendAccessClientFinalization =
|
|
4139
4178
|
typeof FinalizationRegistry === "undefined"
|
|
4140
4179
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -4549,7 +4588,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
|
|
|
4549
4588
|
}, arguments);
|
|
4550
4589
|
}
|
|
4551
4590
|
|
|
4552
|
-
export function
|
|
4591
|
+
export function __wbg_cipher_118c2d2f844c92dc(arg0) {
|
|
4553
4592
|
const ret = getObject(arg0).cipher;
|
|
4554
4593
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4555
4594
|
}
|
|
@@ -4642,7 +4681,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
|
|
|
4642
4681
|
return addHeapObject(ret);
|
|
4643
4682
|
}
|
|
4644
4683
|
|
|
4645
|
-
export function
|
|
4684
|
+
export function __wbg_folder_e24dd7de865631e7(arg0) {
|
|
4646
4685
|
const ret = getObject(arg0).folder;
|
|
4647
4686
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4648
4687
|
}
|
|
@@ -4675,7 +4714,12 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
|
4675
4714
|
return ret;
|
|
4676
4715
|
}
|
|
4677
4716
|
|
|
4678
|
-
export function
|
|
4717
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
4718
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4719
|
+
return addHeapObject(ret);
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4722
|
+
export function __wbg_get_7d311caa64abba59() {
|
|
4679
4723
|
return handleError(function (arg0, arg1, arg2) {
|
|
4680
4724
|
let deferred0_0;
|
|
4681
4725
|
let deferred0_1;
|
|
@@ -4690,17 +4734,19 @@ export function __wbg_get_7a7b765d166b78eb() {
|
|
|
4690
4734
|
}, arguments);
|
|
4691
4735
|
}
|
|
4692
4736
|
|
|
4693
|
-
export function
|
|
4694
|
-
const ret = getObject(arg0)
|
|
4737
|
+
export function __wbg_get_access_token_f894d2b087e7d4fe(arg0) {
|
|
4738
|
+
const ret = getObject(arg0).get_access_token();
|
|
4695
4739
|
return addHeapObject(ret);
|
|
4696
4740
|
}
|
|
4697
4741
|
|
|
4698
|
-
export function
|
|
4699
|
-
|
|
4700
|
-
|
|
4742
|
+
export function __wbg_get_efcb449f58ec27c2() {
|
|
4743
|
+
return handleError(function (arg0, arg1) {
|
|
4744
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4745
|
+
return addHeapObject(ret);
|
|
4746
|
+
}, arguments);
|
|
4701
4747
|
}
|
|
4702
4748
|
|
|
4703
|
-
export function
|
|
4749
|
+
export function __wbg_get_f8b3055a92ab3a2e() {
|
|
4704
4750
|
return handleError(function (arg0, arg1, arg2) {
|
|
4705
4751
|
let deferred0_0;
|
|
4706
4752
|
let deferred0_1;
|
|
@@ -4715,13 +4761,6 @@ export function __wbg_get_d7c03a2a1838f895() {
|
|
|
4715
4761
|
}, arguments);
|
|
4716
4762
|
}
|
|
4717
4763
|
|
|
4718
|
-
export function __wbg_get_efcb449f58ec27c2() {
|
|
4719
|
-
return handleError(function (arg0, arg1) {
|
|
4720
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4721
|
-
return addHeapObject(ret);
|
|
4722
|
-
}, arguments);
|
|
4723
|
-
}
|
|
4724
|
-
|
|
4725
4764
|
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
4726
4765
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
4727
4766
|
return addHeapObject(ret);
|
|
@@ -4906,14 +4945,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
|
4906
4945
|
return ret;
|
|
4907
4946
|
}
|
|
4908
4947
|
|
|
4909
|
-
export function
|
|
4948
|
+
export function __wbg_list_87b5111301522ea8() {
|
|
4910
4949
|
return handleError(function (arg0) {
|
|
4911
4950
|
const ret = getObject(arg0).list();
|
|
4912
4951
|
return addHeapObject(ret);
|
|
4913
4952
|
}, arguments);
|
|
4914
4953
|
}
|
|
4915
4954
|
|
|
4916
|
-
export function
|
|
4955
|
+
export function __wbg_list_905aead152fccf12() {
|
|
4917
4956
|
return handleError(function (arg0) {
|
|
4918
4957
|
const ret = getObject(arg0).list();
|
|
4919
4958
|
return addHeapObject(ret);
|
|
@@ -5157,7 +5196,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
5157
5196
|
}, arguments);
|
|
5158
5197
|
}
|
|
5159
5198
|
|
|
5160
|
-
export function
|
|
5199
|
+
export function __wbg_remove_da5583193dd2745c() {
|
|
5161
5200
|
return handleError(function (arg0, arg1, arg2) {
|
|
5162
5201
|
let deferred0_0;
|
|
5163
5202
|
let deferred0_1;
|
|
@@ -5172,7 +5211,7 @@ export function __wbg_remove_610f7f30b398d771() {
|
|
|
5172
5211
|
}, arguments);
|
|
5173
5212
|
}
|
|
5174
5213
|
|
|
5175
|
-
export function
|
|
5214
|
+
export function __wbg_remove_f40ebda9d037255c() {
|
|
5176
5215
|
return handleError(function (arg0, arg1, arg2) {
|
|
5177
5216
|
let deferred0_0;
|
|
5178
5217
|
let deferred0_1;
|
|
@@ -5218,26 +5257,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
|
5218
5257
|
return addHeapObject(ret);
|
|
5219
5258
|
}
|
|
5220
5259
|
|
|
5221
|
-
export function __wbg_set_16779e1c12161eee() {
|
|
5222
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5223
|
-
let deferred0_0;
|
|
5224
|
-
let deferred0_1;
|
|
5225
|
-
try {
|
|
5226
|
-
deferred0_0 = arg1;
|
|
5227
|
-
deferred0_1 = arg2;
|
|
5228
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5229
|
-
return addHeapObject(ret);
|
|
5230
|
-
} finally {
|
|
5231
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5232
|
-
}
|
|
5233
|
-
}, arguments);
|
|
5234
|
-
}
|
|
5235
|
-
|
|
5236
5260
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
5237
5261
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5238
5262
|
}
|
|
5239
5263
|
|
|
5240
|
-
export function
|
|
5264
|
+
export function __wbg_set_7d3480ee15dd45c8() {
|
|
5241
5265
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5242
5266
|
let deferred0_0;
|
|
5243
5267
|
let deferred0_1;
|
|
@@ -5276,6 +5300,21 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
|
|
|
5276
5300
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5277
5301
|
}
|
|
5278
5302
|
|
|
5303
|
+
export function __wbg_set_f4c903235623f568() {
|
|
5304
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5305
|
+
let deferred0_0;
|
|
5306
|
+
let deferred0_1;
|
|
5307
|
+
try {
|
|
5308
|
+
deferred0_0 = arg1;
|
|
5309
|
+
deferred0_1 = arg2;
|
|
5310
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5311
|
+
return addHeapObject(ret);
|
|
5312
|
+
} finally {
|
|
5313
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5314
|
+
}
|
|
5315
|
+
}, arguments);
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5279
5318
|
export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
|
|
5280
5319
|
getObject(arg0).headers = getObject(arg1);
|
|
5281
5320
|
}
|
|
Binary file
|
|
@@ -432,11 +432,13 @@ export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
|
432
432
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
433
433
|
export const platformclient_state: (a: number) => number;
|
|
434
434
|
export const authclient_send_access: (a: number) => number;
|
|
435
|
+
export const authclient_registration: (a: number) => number;
|
|
435
436
|
export const vaultclient_ciphers: (a: number) => number;
|
|
436
437
|
export const vaultclient_folders: (a: number) => number;
|
|
437
438
|
export const vaultclient_totp: (a: number) => number;
|
|
438
439
|
export const vaultclient_collections: (a: number) => number;
|
|
439
440
|
export const vaultclient_cipher_risk: (a: number) => number;
|
|
441
|
+
export const __wbg_registrationclient_free: (a: number, b: number) => void;
|
|
440
442
|
export const __wbg_foldersclient_free: (a: number, b: number) => void;
|
|
441
443
|
export const __wbg_cipherriskclient_free: (a: number, b: number) => void;
|
|
442
444
|
export const __wbg_ciphersclient_free: (a: number, b: number) => void;
|
|
@@ -447,24 +449,24 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
|
447
449
|
export const __wbg_get_outgoingmessage_destination: (a: number) => number;
|
|
448
450
|
export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
|
|
449
451
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
450
|
-
export const
|
|
452
|
+
export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
|
|
451
453
|
a: number,
|
|
452
454
|
b: number,
|
|
453
455
|
c: number,
|
|
456
|
+
d: number,
|
|
454
457
|
) => void;
|
|
455
458
|
export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
|
|
456
|
-
export const
|
|
459
|
+
export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
|
|
457
460
|
a: number,
|
|
458
461
|
b: number,
|
|
462
|
+
c: number,
|
|
459
463
|
) => void;
|
|
460
|
-
export const
|
|
461
|
-
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
462
|
-
export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
|
|
464
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
463
465
|
a: number,
|
|
464
466
|
b: number,
|
|
465
|
-
c: number,
|
|
466
|
-
d: number,
|
|
467
467
|
) => void;
|
|
468
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
469
|
+
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
468
470
|
export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
|
|
469
471
|
a: number,
|
|
470
472
|
b: number,
|