@bitwarden/commercial-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/bitwarden_wasm_internal.d.ts +12 -0
- package/bitwarden_wasm_internal_bg.js +79 -40
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +7 -5
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +12 -0
- package/node/bitwarden_wasm_internal.js +81 -40
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +7 -5
- package/package.json +1 -1
|
@@ -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,10 @@ exports.isEncryptFileError = function (error) {
|
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
+
function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
|
|
862
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
|
|
863
|
+
}
|
|
864
|
+
|
|
861
865
|
function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg1, arg2) {
|
|
862
866
|
try {
|
|
863
867
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -885,10 +889,6 @@ function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg
|
|
|
885
889
|
);
|
|
886
890
|
}
|
|
887
891
|
|
|
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_118c2d2f844c92dc = 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_e24dd7de865631e7 = function (arg0) {
|
|
4767
4808
|
const ret = getObject(arg0).folder;
|
|
4768
4809
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
4769
4810
|
};
|
|
@@ -4796,7 +4837,12 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
|
|
|
4796
4837
|
return ret;
|
|
4797
4838
|
};
|
|
4798
4839
|
|
|
4799
|
-
exports.
|
|
4840
|
+
exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
|
|
4841
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4842
|
+
return addHeapObject(ret);
|
|
4843
|
+
};
|
|
4844
|
+
|
|
4845
|
+
exports.__wbg_get_7d311caa64abba59 = function () {
|
|
4800
4846
|
return handleError(function (arg0, arg1, arg2) {
|
|
4801
4847
|
let deferred0_0;
|
|
4802
4848
|
let deferred0_1;
|
|
@@ -4811,17 +4857,19 @@ exports.__wbg_get_7a7b765d166b78eb = function () {
|
|
|
4811
4857
|
}, arguments);
|
|
4812
4858
|
};
|
|
4813
4859
|
|
|
4814
|
-
exports.
|
|
4815
|
-
const ret = getObject(arg0)
|
|
4860
|
+
exports.__wbg_get_access_token_f894d2b087e7d4fe = function (arg0) {
|
|
4861
|
+
const ret = getObject(arg0).get_access_token();
|
|
4816
4862
|
return addHeapObject(ret);
|
|
4817
4863
|
};
|
|
4818
4864
|
|
|
4819
|
-
exports.
|
|
4820
|
-
|
|
4821
|
-
|
|
4865
|
+
exports.__wbg_get_efcb449f58ec27c2 = function () {
|
|
4866
|
+
return handleError(function (arg0, arg1) {
|
|
4867
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4868
|
+
return addHeapObject(ret);
|
|
4869
|
+
}, arguments);
|
|
4822
4870
|
};
|
|
4823
4871
|
|
|
4824
|
-
exports.
|
|
4872
|
+
exports.__wbg_get_f8b3055a92ab3a2e = function () {
|
|
4825
4873
|
return handleError(function (arg0, arg1, arg2) {
|
|
4826
4874
|
let deferred0_0;
|
|
4827
4875
|
let deferred0_1;
|
|
@@ -4836,13 +4884,6 @@ exports.__wbg_get_d7c03a2a1838f895 = function () {
|
|
|
4836
4884
|
}, arguments);
|
|
4837
4885
|
};
|
|
4838
4886
|
|
|
4839
|
-
exports.__wbg_get_efcb449f58ec27c2 = function () {
|
|
4840
|
-
return handleError(function (arg0, arg1) {
|
|
4841
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4842
|
-
return addHeapObject(ret);
|
|
4843
|
-
}, arguments);
|
|
4844
|
-
};
|
|
4845
|
-
|
|
4846
4887
|
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
|
|
4847
4888
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
4848
4889
|
return addHeapObject(ret);
|
|
@@ -5027,14 +5068,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
|
|
|
5027
5068
|
return ret;
|
|
5028
5069
|
};
|
|
5029
5070
|
|
|
5030
|
-
exports.
|
|
5071
|
+
exports.__wbg_list_87b5111301522ea8 = 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_905aead152fccf12 = 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_da5583193dd2745c = 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_f40ebda9d037255c = function () {
|
|
5297
5338
|
return handleError(function (arg0, arg1, arg2) {
|
|
5298
5339
|
let deferred0_0;
|
|
5299
5340
|
let deferred0_1;
|
|
@@ -5339,26 +5380,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
|
5339
5380
|
return addHeapObject(ret);
|
|
5340
5381
|
};
|
|
5341
5382
|
|
|
5342
|
-
exports.__wbg_set_16779e1c12161eee = function () {
|
|
5343
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5344
|
-
let deferred0_0;
|
|
5345
|
-
let deferred0_1;
|
|
5346
|
-
try {
|
|
5347
|
-
deferred0_0 = arg1;
|
|
5348
|
-
deferred0_1 = arg2;
|
|
5349
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5350
|
-
return addHeapObject(ret);
|
|
5351
|
-
} finally {
|
|
5352
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5353
|
-
}
|
|
5354
|
-
}, arguments);
|
|
5355
|
-
};
|
|
5356
|
-
|
|
5357
5383
|
exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
5358
5384
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5359
5385
|
};
|
|
5360
5386
|
|
|
5361
|
-
exports.
|
|
5387
|
+
exports.__wbg_set_7d3480ee15dd45c8 = function () {
|
|
5362
5388
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5363
5389
|
let deferred0_0;
|
|
5364
5390
|
let deferred0_1;
|
|
@@ -5397,6 +5423,21 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
|
|
|
5397
5423
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
5398
5424
|
};
|
|
5399
5425
|
|
|
5426
|
+
exports.__wbg_set_f4c903235623f568 = function () {
|
|
5427
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5428
|
+
let deferred0_0;
|
|
5429
|
+
let deferred0_1;
|
|
5430
|
+
try {
|
|
5431
|
+
deferred0_0 = arg1;
|
|
5432
|
+
deferred0_1 = arg2;
|
|
5433
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
5434
|
+
return addHeapObject(ret);
|
|
5435
|
+
} finally {
|
|
5436
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
5437
|
+
}
|
|
5438
|
+
}, arguments);
|
|
5439
|
+
};
|
|
5440
|
+
|
|
5400
5441
|
exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
|
|
5401
5442
|
getObject(arg0).headers = getObject(arg1);
|
|
5402
5443
|
};
|
|
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,6 +453,11 @@ 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;
|
|
456
|
+
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
457
|
+
a: number,
|
|
458
|
+
b: number,
|
|
459
|
+
) => void;
|
|
460
|
+
export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
|
|
454
461
|
export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
|
|
455
462
|
a: number,
|
|
456
463
|
b: number,
|
|
@@ -464,11 +471,6 @@ export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
|
|
|
464
471
|
c: number,
|
|
465
472
|
) => void;
|
|
466
473
|
export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
|
|
467
|
-
export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
|
|
468
|
-
a: number,
|
|
469
|
-
b: number,
|
|
470
|
-
) => 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,
|