@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.
@@ -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
  */
@@ -858,6 +858,14 @@ exports.isEncryptFileError = function (error) {
858
858
  }
859
859
  };
860
860
 
861
+ function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
862
+ wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
863
+ arg0,
864
+ arg1,
865
+ addHeapObject(arg2),
866
+ );
867
+ }
868
+
861
869
  function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg1, arg2) {
862
870
  try {
863
871
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -877,14 +885,6 @@ function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg
877
885
  }
878
886
  }
879
887
 
880
- function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
881
- wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
882
- arg0,
883
- arg1,
884
- addHeapObject(arg2),
885
- );
886
- }
887
-
888
888
  function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
889
889
  wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
890
890
  }
@@ -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
 
@@ -4165,6 +4173,39 @@ if (Symbol.dispose) PureCrypto.prototype[Symbol.dispose] = PureCrypto.prototype.
4165
4173
 
4166
4174
  exports.PureCrypto = PureCrypto;
4167
4175
 
4176
+ const RegistrationClientFinalization =
4177
+ typeof FinalizationRegistry === "undefined"
4178
+ ? { register: () => {}, unregister: () => {} }
4179
+ : new FinalizationRegistry((ptr) => wasm.__wbg_registrationclient_free(ptr >>> 0, 1));
4180
+ /**
4181
+ * Client for initializing a user account.
4182
+ */
4183
+ class RegistrationClient {
4184
+ static __wrap(ptr) {
4185
+ ptr = ptr >>> 0;
4186
+ const obj = Object.create(RegistrationClient.prototype);
4187
+ obj.__wbg_ptr = ptr;
4188
+ RegistrationClientFinalization.register(obj, obj.__wbg_ptr, obj);
4189
+ return obj;
4190
+ }
4191
+
4192
+ __destroy_into_raw() {
4193
+ const ptr = this.__wbg_ptr;
4194
+ this.__wbg_ptr = 0;
4195
+ RegistrationClientFinalization.unregister(this);
4196
+ return ptr;
4197
+ }
4198
+
4199
+ free() {
4200
+ const ptr = this.__destroy_into_raw();
4201
+ wasm.__wbg_registrationclient_free(ptr, 0);
4202
+ }
4203
+ }
4204
+ if (Symbol.dispose)
4205
+ RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
4206
+
4207
+ exports.RegistrationClient = RegistrationClient;
4208
+
4168
4209
  const SendAccessClientFinalization =
4169
4210
  typeof FinalizationRegistry === "undefined"
4170
4211
  ? { register: () => {}, unregister: () => {} }
@@ -4587,7 +4628,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4587
4628
  }, arguments);
4588
4629
  };
4589
4630
 
4590
- exports.__wbg_cipher_54d9031d60850622 = function (arg0) {
4631
+ exports.__wbg_cipher_118c2d2f844c92dc = function (arg0) {
4591
4632
  const ret = getObject(arg0).cipher;
4592
4633
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4593
4634
  };
@@ -4680,7 +4721,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4680
4721
  return addHeapObject(ret);
4681
4722
  };
4682
4723
 
4683
- exports.__wbg_folder_2d6703d18bcf6b5f = function (arg0) {
4724
+ exports.__wbg_folder_e24dd7de865631e7 = function (arg0) {
4684
4725
  const ret = getObject(arg0).folder;
4685
4726
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4686
4727
  };
@@ -4713,7 +4754,12 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4713
4754
  return ret;
4714
4755
  };
4715
4756
 
4716
- exports.__wbg_get_7a7b765d166b78eb = function () {
4757
+ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4758
+ const ret = getObject(arg0)[arg1 >>> 0];
4759
+ return addHeapObject(ret);
4760
+ };
4761
+
4762
+ exports.__wbg_get_7d311caa64abba59 = function () {
4717
4763
  return handleError(function (arg0, arg1, arg2) {
4718
4764
  let deferred0_0;
4719
4765
  let deferred0_1;
@@ -4728,17 +4774,19 @@ exports.__wbg_get_7a7b765d166b78eb = function () {
4728
4774
  }, arguments);
4729
4775
  };
4730
4776
 
4731
- exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4732
- const ret = getObject(arg0)[arg1 >>> 0];
4777
+ exports.__wbg_get_access_token_f894d2b087e7d4fe = function (arg0) {
4778
+ const ret = getObject(arg0).get_access_token();
4733
4779
  return addHeapObject(ret);
4734
4780
  };
4735
4781
 
4736
- exports.__wbg_get_access_token_16ca6a078a16a9e6 = function (arg0) {
4737
- const ret = getObject(arg0).get_access_token();
4738
- return addHeapObject(ret);
4782
+ exports.__wbg_get_efcb449f58ec27c2 = function () {
4783
+ return handleError(function (arg0, arg1) {
4784
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4785
+ return addHeapObject(ret);
4786
+ }, arguments);
4739
4787
  };
4740
4788
 
4741
- exports.__wbg_get_d7c03a2a1838f895 = function () {
4789
+ exports.__wbg_get_f8b3055a92ab3a2e = function () {
4742
4790
  return handleError(function (arg0, arg1, arg2) {
4743
4791
  let deferred0_0;
4744
4792
  let deferred0_1;
@@ -4753,13 +4801,6 @@ exports.__wbg_get_d7c03a2a1838f895 = function () {
4753
4801
  }, arguments);
4754
4802
  };
4755
4803
 
4756
- exports.__wbg_get_efcb449f58ec27c2 = function () {
4757
- return handleError(function (arg0, arg1) {
4758
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4759
- return addHeapObject(ret);
4760
- }, arguments);
4761
- };
4762
-
4763
4804
  exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function (arg0, arg1) {
4764
4805
  const ret = getObject(arg0)[getObject(arg1)];
4765
4806
  return addHeapObject(ret);
@@ -4944,14 +4985,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4944
4985
  return ret;
4945
4986
  };
4946
4987
 
4947
- exports.__wbg_list_29517841961e05e3 = function () {
4988
+ exports.__wbg_list_87b5111301522ea8 = function () {
4948
4989
  return handleError(function (arg0) {
4949
4990
  const ret = getObject(arg0).list();
4950
4991
  return addHeapObject(ret);
4951
4992
  }, arguments);
4952
4993
  };
4953
4994
 
4954
- exports.__wbg_list_935b546af2d9b6de = function () {
4995
+ exports.__wbg_list_905aead152fccf12 = function () {
4955
4996
  return handleError(function (arg0) {
4956
4997
  const ret = getObject(arg0).list();
4957
4998
  return addHeapObject(ret);
@@ -5195,7 +5236,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5195
5236
  }, arguments);
5196
5237
  };
5197
5238
 
5198
- exports.__wbg_remove_610f7f30b398d771 = function () {
5239
+ exports.__wbg_remove_da5583193dd2745c = function () {
5199
5240
  return handleError(function (arg0, arg1, arg2) {
5200
5241
  let deferred0_0;
5201
5242
  let deferred0_1;
@@ -5210,7 +5251,7 @@ exports.__wbg_remove_610f7f30b398d771 = function () {
5210
5251
  }, arguments);
5211
5252
  };
5212
5253
 
5213
- exports.__wbg_remove_d592b4ab55fa372d = function () {
5254
+ exports.__wbg_remove_f40ebda9d037255c = function () {
5214
5255
  return handleError(function (arg0, arg1, arg2) {
5215
5256
  let deferred0_0;
5216
5257
  let deferred0_1;
@@ -5256,26 +5297,11 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5256
5297
  return addHeapObject(ret);
5257
5298
  };
5258
5299
 
5259
- exports.__wbg_set_16779e1c12161eee = function () {
5260
- return handleError(function (arg0, arg1, arg2, arg3) {
5261
- let deferred0_0;
5262
- let deferred0_1;
5263
- try {
5264
- deferred0_0 = arg1;
5265
- deferred0_1 = arg2;
5266
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5267
- return addHeapObject(ret);
5268
- } finally {
5269
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5270
- }
5271
- }, arguments);
5272
- };
5273
-
5274
5300
  exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5275
5301
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5276
5302
  };
5277
5303
 
5278
- exports.__wbg_set_6d45f26bc45340a7 = function () {
5304
+ exports.__wbg_set_7d3480ee15dd45c8 = function () {
5279
5305
  return handleError(function (arg0, arg1, arg2, arg3) {
5280
5306
  let deferred0_0;
5281
5307
  let deferred0_1;
@@ -5314,6 +5340,21 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5314
5340
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5315
5341
  };
5316
5342
 
5343
+ exports.__wbg_set_f4c903235623f568 = function () {
5344
+ return handleError(function (arg0, arg1, arg2, arg3) {
5345
+ let deferred0_0;
5346
+ let deferred0_1;
5347
+ try {
5348
+ deferred0_0 = arg1;
5349
+ deferred0_1 = arg2;
5350
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5351
+ return addHeapObject(ret);
5352
+ } finally {
5353
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5354
+ }
5355
+ }, arguments);
5356
+ };
5357
+
5317
5358
  exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
5318
5359
  getObject(arg0).headers = getObject(arg1);
5319
5360
  };
@@ -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,23 +449,23 @@ 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 wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
452
+ export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
451
453
  a: number,
452
454
  b: number,
453
455
  c: number,
454
- d: number,
455
456
  ) => void;
456
457
  export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
457
- export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
458
+ export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
458
459
  a: number,
459
460
  b: number,
460
461
  c: number,
462
+ d: number,
461
463
  ) => void;
462
- export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
463
464
  export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
464
465
  a: number,
465
466
  b: number,
466
467
  ) => void;
468
+ export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
467
469
  export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
468
470
  export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
469
471
  a: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.405",
3
+ "version": "0.2.0-main.406",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",