@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.
@@ -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
  */
@@ -868,6 +868,10 @@ export function isEncryptFileError(error) {
868
868
  }
869
869
  }
870
870
 
871
+ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
872
+ wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
873
+ }
874
+
871
875
  function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
872
876
  wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
873
877
  arg0,
@@ -876,10 +880,6 @@ function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg
876
880
  );
877
881
  }
878
882
 
879
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
880
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
881
- }
882
-
883
883
  function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg1, arg2) {
884
884
  try {
885
885
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -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
 
@@ -4214,6 +4222,37 @@ export class PureCrypto {
4214
4222
  }
4215
4223
  if (Symbol.dispose) PureCrypto.prototype[Symbol.dispose] = PureCrypto.prototype.free;
4216
4224
 
4225
+ const RegistrationClientFinalization =
4226
+ typeof FinalizationRegistry === "undefined"
4227
+ ? { register: () => {}, unregister: () => {} }
4228
+ : new FinalizationRegistry((ptr) => wasm.__wbg_registrationclient_free(ptr >>> 0, 1));
4229
+ /**
4230
+ * Client for initializing a user account.
4231
+ */
4232
+ export class RegistrationClient {
4233
+ static __wrap(ptr) {
4234
+ ptr = ptr >>> 0;
4235
+ const obj = Object.create(RegistrationClient.prototype);
4236
+ obj.__wbg_ptr = ptr;
4237
+ RegistrationClientFinalization.register(obj, obj.__wbg_ptr, obj);
4238
+ return obj;
4239
+ }
4240
+
4241
+ __destroy_into_raw() {
4242
+ const ptr = this.__wbg_ptr;
4243
+ this.__wbg_ptr = 0;
4244
+ RegistrationClientFinalization.unregister(this);
4245
+ return ptr;
4246
+ }
4247
+
4248
+ free() {
4249
+ const ptr = this.__destroy_into_raw();
4250
+ wasm.__wbg_registrationclient_free(ptr, 0);
4251
+ }
4252
+ }
4253
+ if (Symbol.dispose)
4254
+ RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
4255
+
4217
4256
  const SendAccessClientFinalization =
4218
4257
  typeof FinalizationRegistry === "undefined"
4219
4258
  ? { register: () => {}, unregister: () => {} }
@@ -4628,7 +4667,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4628
4667
  }, arguments);
4629
4668
  }
4630
4669
 
4631
- export function __wbg_cipher_54d9031d60850622(arg0) {
4670
+ export function __wbg_cipher_118c2d2f844c92dc(arg0) {
4632
4671
  const ret = getObject(arg0).cipher;
4633
4672
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4634
4673
  }
@@ -4721,7 +4760,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4721
4760
  return addHeapObject(ret);
4722
4761
  }
4723
4762
 
4724
- export function __wbg_folder_2d6703d18bcf6b5f(arg0) {
4763
+ export function __wbg_folder_e24dd7de865631e7(arg0) {
4725
4764
  const ret = getObject(arg0).folder;
4726
4765
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4727
4766
  }
@@ -4754,7 +4793,12 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4754
4793
  return ret;
4755
4794
  }
4756
4795
 
4757
- export function __wbg_get_7a7b765d166b78eb() {
4796
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4797
+ const ret = getObject(arg0)[arg1 >>> 0];
4798
+ return addHeapObject(ret);
4799
+ }
4800
+
4801
+ export function __wbg_get_7d311caa64abba59() {
4758
4802
  return handleError(function (arg0, arg1, arg2) {
4759
4803
  let deferred0_0;
4760
4804
  let deferred0_1;
@@ -4769,17 +4813,19 @@ export function __wbg_get_7a7b765d166b78eb() {
4769
4813
  }, arguments);
4770
4814
  }
4771
4815
 
4772
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4773
- const ret = getObject(arg0)[arg1 >>> 0];
4816
+ export function __wbg_get_access_token_f894d2b087e7d4fe(arg0) {
4817
+ const ret = getObject(arg0).get_access_token();
4774
4818
  return addHeapObject(ret);
4775
4819
  }
4776
4820
 
4777
- export function __wbg_get_access_token_16ca6a078a16a9e6(arg0) {
4778
- const ret = getObject(arg0).get_access_token();
4779
- return addHeapObject(ret);
4821
+ export function __wbg_get_efcb449f58ec27c2() {
4822
+ return handleError(function (arg0, arg1) {
4823
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4824
+ return addHeapObject(ret);
4825
+ }, arguments);
4780
4826
  }
4781
4827
 
4782
- export function __wbg_get_d7c03a2a1838f895() {
4828
+ export function __wbg_get_f8b3055a92ab3a2e() {
4783
4829
  return handleError(function (arg0, arg1, arg2) {
4784
4830
  let deferred0_0;
4785
4831
  let deferred0_1;
@@ -4794,13 +4840,6 @@ export function __wbg_get_d7c03a2a1838f895() {
4794
4840
  }, arguments);
4795
4841
  }
4796
4842
 
4797
- export function __wbg_get_efcb449f58ec27c2() {
4798
- return handleError(function (arg0, arg1) {
4799
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4800
- return addHeapObject(ret);
4801
- }, arguments);
4802
- }
4803
-
4804
4843
  export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
4805
4844
  const ret = getObject(arg0)[getObject(arg1)];
4806
4845
  return addHeapObject(ret);
@@ -4985,14 +5024,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
4985
5024
  return ret;
4986
5025
  }
4987
5026
 
4988
- export function __wbg_list_29517841961e05e3() {
5027
+ export function __wbg_list_87b5111301522ea8() {
4989
5028
  return handleError(function (arg0) {
4990
5029
  const ret = getObject(arg0).list();
4991
5030
  return addHeapObject(ret);
4992
5031
  }, arguments);
4993
5032
  }
4994
5033
 
4995
- export function __wbg_list_935b546af2d9b6de() {
5034
+ export function __wbg_list_905aead152fccf12() {
4996
5035
  return handleError(function (arg0) {
4997
5036
  const ret = getObject(arg0).list();
4998
5037
  return addHeapObject(ret);
@@ -5236,7 +5275,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5236
5275
  }, arguments);
5237
5276
  }
5238
5277
 
5239
- export function __wbg_remove_610f7f30b398d771() {
5278
+ export function __wbg_remove_da5583193dd2745c() {
5240
5279
  return handleError(function (arg0, arg1, arg2) {
5241
5280
  let deferred0_0;
5242
5281
  let deferred0_1;
@@ -5251,7 +5290,7 @@ export function __wbg_remove_610f7f30b398d771() {
5251
5290
  }, arguments);
5252
5291
  }
5253
5292
 
5254
- export function __wbg_remove_d592b4ab55fa372d() {
5293
+ export function __wbg_remove_f40ebda9d037255c() {
5255
5294
  return handleError(function (arg0, arg1, arg2) {
5256
5295
  let deferred0_0;
5257
5296
  let deferred0_1;
@@ -5297,26 +5336,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5297
5336
  return addHeapObject(ret);
5298
5337
  }
5299
5338
 
5300
- export function __wbg_set_16779e1c12161eee() {
5301
- return handleError(function (arg0, arg1, arg2, arg3) {
5302
- let deferred0_0;
5303
- let deferred0_1;
5304
- try {
5305
- deferred0_0 = arg1;
5306
- deferred0_1 = arg2;
5307
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5308
- return addHeapObject(ret);
5309
- } finally {
5310
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5311
- }
5312
- }, arguments);
5313
- }
5314
-
5315
5339
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5316
5340
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5317
5341
  }
5318
5342
 
5319
- export function __wbg_set_6d45f26bc45340a7() {
5343
+ export function __wbg_set_7d3480ee15dd45c8() {
5320
5344
  return handleError(function (arg0, arg1, arg2, arg3) {
5321
5345
  let deferred0_0;
5322
5346
  let deferred0_1;
@@ -5355,6 +5379,21 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5355
5379
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5356
5380
  }
5357
5381
 
5382
+ export function __wbg_set_f4c903235623f568() {
5383
+ return handleError(function (arg0, arg1, arg2, arg3) {
5384
+ let deferred0_0;
5385
+ let deferred0_1;
5386
+ try {
5387
+ deferred0_0 = arg1;
5388
+ deferred0_1 = arg2;
5389
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5390
+ return addHeapObject(ret);
5391
+ } finally {
5392
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5393
+ }
5394
+ }, arguments);
5395
+ }
5396
+
5358
5397
  export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
5359
5398
  getObject(arg0).headers = getObject(arg1);
5360
5399
  }
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,17 +453,17 @@ 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 wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
456
+ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
455
457
  a: number,
456
458
  b: number,
457
- c: number,
458
459
  ) => void;
459
- export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
460
- export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
460
+ export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
461
+ export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
461
462
  a: number,
462
463
  b: number,
464
+ c: number,
463
465
  ) => void;
464
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
466
+ export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
465
467
  export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
466
468
  a: number,
467
469
  b: number,