@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.
@@ -286,8 +286,8 @@ export interface SendAccessTokenRequest {
286
286
  */
287
287
  export type SendAccessCredentials =
288
288
  | SendPasswordCredentials
289
- | SendEmailCredentials
290
- | SendEmailOtpCredentials;
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
  */
@@ -868,14 +868,6 @@ export function isEncryptFileError(error) {
868
868
  }
869
869
  }
870
870
 
871
- function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
872
- wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
873
- arg0,
874
- arg1,
875
- addHeapObject(arg2),
876
- );
877
- }
878
-
879
871
  function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
880
872
  wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
881
873
  }
@@ -899,6 +891,14 @@ function wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe(arg0, arg
899
891
  }
900
892
  }
901
893
 
894
+ function wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(arg0, arg1, arg2) {
895
+ wasm.wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff(
896
+ arg0,
897
+ arg1,
898
+ addHeapObject(arg2),
899
+ );
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
 
@@ -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_024a86a8b118ddac(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_9cea799de324dd1e(arg0) {
4725
4764
  const ret = getObject(arg0).folder;
4726
4765
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4727
4766
  }
@@ -4754,7 +4793,7 @@ 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_129fd7e95b5f7904() {
4758
4797
  return handleError(function (arg0, arg1, arg2) {
4759
4798
  let deferred0_0;
4760
4799
  let deferred0_1;
@@ -4774,12 +4813,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4774
4813
  return addHeapObject(ret);
4775
4814
  }
4776
4815
 
4777
- export function __wbg_get_access_token_16ca6a078a16a9e6(arg0) {
4816
+ export function __wbg_get_access_token_abef009db5fa750c(arg0) {
4778
4817
  const ret = getObject(arg0).get_access_token();
4779
4818
  return addHeapObject(ret);
4780
4819
  }
4781
4820
 
4782
- export function __wbg_get_d7c03a2a1838f895() {
4821
+ export function __wbg_get_eee8ecedab041535() {
4783
4822
  return handleError(function (arg0, arg1, arg2) {
4784
4823
  let deferred0_0;
4785
4824
  let deferred0_1;
@@ -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_33b035298e503422() {
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_dac0fdb39533e45c() {
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_1b8d8ab47af664e0() {
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_6f00aa5f40dfd37c() {
5255
5294
  return handleError(function (arg0, arg1, arg2) {
5256
5295
  let deferred0_0;
5257
5296
  let deferred0_1;
@@ -5297,7 +5336,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5297
5336
  return addHeapObject(ret);
5298
5337
  }
5299
5338
 
5300
- export function __wbg_set_16779e1c12161eee() {
5339
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5340
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5341
+ }
5342
+
5343
+ export function __wbg_set_4d0fb27359ddae64() {
5301
5344
  return handleError(function (arg0, arg1, arg2, arg3) {
5302
5345
  let deferred0_0;
5303
5346
  let deferred0_1;
@@ -5312,11 +5355,12 @@ export function __wbg_set_16779e1c12161eee() {
5312
5355
  }, arguments);
5313
5356
  }
5314
5357
 
5315
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5316
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5358
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5359
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5360
+ return addHeapObject(ret);
5317
5361
  }
5318
5362
 
5319
- export function __wbg_set_6d45f26bc45340a7() {
5363
+ export function __wbg_set_a1854a59e5ec2573() {
5320
5364
  return handleError(function (arg0, arg1, arg2, arg3) {
5321
5365
  let deferred0_0;
5322
5366
  let deferred0_1;
@@ -5331,11 +5375,6 @@ export function __wbg_set_6d45f26bc45340a7() {
5331
5375
  }, arguments);
5332
5376
  }
5333
5377
 
5334
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5335
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5336
- return addHeapObject(ret);
5337
- }
5338
-
5339
5378
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5340
5379
  getObject(arg0).body = getObject(arg1);
5341
5380
  }
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,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;
454
- export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
455
- a: number,
456
- b: number,
457
- c: number,
458
- ) => void;
459
- export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
460
456
  export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
461
457
  a: number,
462
458
  b: number,
463
459
  ) => void;
464
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
460
+ export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
465
461
  export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
466
462
  a: number,
467
463
  b: number,
@@ -469,6 +465,12 @@ export const wasm_bindgen__convert__closures_____invoke__h35a8188fc7e541fe: (
469
465
  d: number,
470
466
  ) => void;
471
467
  export const wasm_bindgen__closure__destroy__hba496874d56e8206: (a: number, b: number) => void;
468
+ export const wasm_bindgen__convert__closures_____invoke__h3f3903322ff045ff: (
469
+ a: number,
470
+ b: number,
471
+ c: number,
472
+ ) => void;
473
+ 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,