@bitwarden/sdk-internal 0.2.0-main.369 → 0.2.0-main.370

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 CHANGED
@@ -1 +1 @@
1
- 95e329ada87369bb984040b03024ef298f95e5e2
1
+ a36a8efc38331088705791faf9248362d821ef42
@@ -1805,6 +1805,10 @@ export class AttachmentsClient {
1805
1805
  export class AuthClient {
1806
1806
  private constructor();
1807
1807
  free(): void;
1808
+ /**
1809
+ * Client for identity functionality
1810
+ */
1811
+ identity(): IdentityClient;
1808
1812
  /**
1809
1813
  * Client for send access functionality
1810
1814
  */
@@ -2155,6 +2159,13 @@ export class GeneratorClient {
2155
2159
  */
2156
2160
  passphrase(input: PassphraseGeneratorRequest): string;
2157
2161
  }
2162
+ /**
2163
+ * The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
2164
+ */
2165
+ export class IdentityClient {
2166
+ private constructor();
2167
+ free(): void;
2168
+ }
2158
2169
  export class IncomingMessage {
2159
2170
  free(): void;
2160
2171
  constructor(payload: Uint8Array, destination: Endpoint, source: Endpoint, topic?: string | null);
@@ -906,7 +906,7 @@ function __wbg_adapter_60(arg0, arg1) {
906
906
  );
907
907
  }
908
908
 
909
- function __wbg_adapter_352(arg0, arg1, arg2, arg3) {
909
+ function __wbg_adapter_353(arg0, arg1, arg2, arg3) {
910
910
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h849ee2a9e4ae2f91(
911
911
  arg0,
912
912
  arg1,
@@ -1165,12 +1165,20 @@ export class AuthClient {
1165
1165
  const ptr = this.__destroy_into_raw();
1166
1166
  wasm.__wbg_authclient_free(ptr, 0);
1167
1167
  }
1168
+ /**
1169
+ * Client for identity functionality
1170
+ * @returns {IdentityClient}
1171
+ */
1172
+ identity() {
1173
+ const ret = wasm.authclient_identity(this.__wbg_ptr);
1174
+ return IdentityClient.__wrap(ret);
1175
+ }
1168
1176
  /**
1169
1177
  * Client for send access functionality
1170
1178
  * @returns {SendAccessClient}
1171
1179
  */
1172
1180
  send_access() {
1173
- const ret = wasm.authclient_send_access(this.__wbg_ptr);
1181
+ const ret = wasm.authclient_identity(this.__wbg_ptr);
1174
1182
  return SendAccessClient.__wrap(ret);
1175
1183
  }
1176
1184
  }
@@ -2590,6 +2598,35 @@ export class GeneratorClient {
2590
2598
  }
2591
2599
  }
2592
2600
 
2601
+ const IdentityClientFinalization =
2602
+ typeof FinalizationRegistry === "undefined"
2603
+ ? { register: () => {}, unregister: () => {} }
2604
+ : new FinalizationRegistry((ptr) => wasm.__wbg_identityclient_free(ptr >>> 0, 1));
2605
+ /**
2606
+ * The IdentityClient is used to obtain identity / access tokens from the Bitwarden Identity API.
2607
+ */
2608
+ export class IdentityClient {
2609
+ static __wrap(ptr) {
2610
+ ptr = ptr >>> 0;
2611
+ const obj = Object.create(IdentityClient.prototype);
2612
+ obj.__wbg_ptr = ptr;
2613
+ IdentityClientFinalization.register(obj, obj.__wbg_ptr, obj);
2614
+ return obj;
2615
+ }
2616
+
2617
+ __destroy_into_raw() {
2618
+ const ptr = this.__wbg_ptr;
2619
+ this.__wbg_ptr = 0;
2620
+ IdentityClientFinalization.unregister(this);
2621
+ return ptr;
2622
+ }
2623
+
2624
+ free() {
2625
+ const ptr = this.__destroy_into_raw();
2626
+ wasm.__wbg_identityclient_free(ptr, 0);
2627
+ }
2628
+ }
2629
+
2593
2630
  const IncomingMessageFinalization =
2594
2631
  typeof FinalizationRegistry === "undefined"
2595
2632
  ? { register: () => {}, unregister: () => {} }
@@ -4208,7 +4245,7 @@ export function __wbg_call_7cccdd69e0791ae2() {
4208
4245
  }, arguments);
4209
4246
  }
4210
4247
 
4211
- export function __wbg_cipher_641a1ed9525014f1(arg0) {
4248
+ export function __wbg_cipher_b9bba3bed549c7a1(arg0) {
4212
4249
  const ret = getObject(arg0).cipher;
4213
4250
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4214
4251
  }
@@ -4288,7 +4325,7 @@ export function __wbg_fetch_509096533071c657(arg0, arg1) {
4288
4325
  return addHeapObject(ret);
4289
4326
  }
4290
4327
 
4291
- export function __wbg_folder_7f21f90c65ea9924(arg0) {
4328
+ export function __wbg_folder_2e8e018716a86b20(arg0) {
4292
4329
  const ret = getObject(arg0).folder;
4293
4330
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4294
4331
  }
@@ -4315,19 +4352,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
4315
4352
  return ret;
4316
4353
  }
4317
4354
 
4318
- export function __wbg_get_67b2ba62fc30de12() {
4319
- return handleError(function (arg0, arg1) {
4320
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
4321
- return addHeapObject(ret);
4322
- }, arguments);
4323
- }
4324
-
4325
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4326
- const ret = getObject(arg0)[arg1 >>> 0];
4327
- return addHeapObject(ret);
4328
- }
4329
-
4330
- export function __wbg_get_ed0f51a7b78bb9cf() {
4355
+ export function __wbg_get_06a7c389d73976e4() {
4331
4356
  return handleError(function (arg0, arg1, arg2) {
4332
4357
  let deferred0_0;
4333
4358
  let deferred0_1;
@@ -4342,7 +4367,7 @@ export function __wbg_get_ed0f51a7b78bb9cf() {
4342
4367
  }, arguments);
4343
4368
  }
4344
4369
 
4345
- export function __wbg_get_ff9b4bcaa48b169c() {
4370
+ export function __wbg_get_0d53d8bad034f847() {
4346
4371
  return handleError(function (arg0, arg1, arg2) {
4347
4372
  let deferred0_0;
4348
4373
  let deferred0_1;
@@ -4357,7 +4382,19 @@ export function __wbg_get_ff9b4bcaa48b169c() {
4357
4382
  }, arguments);
4358
4383
  }
4359
4384
 
4360
- export function __wbg_getaccesstoken_a0fd57f88af55366(arg0) {
4385
+ export function __wbg_get_67b2ba62fc30de12() {
4386
+ return handleError(function (arg0, arg1) {
4387
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
4388
+ return addHeapObject(ret);
4389
+ }, arguments);
4390
+ }
4391
+
4392
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4393
+ const ret = getObject(arg0)[arg1 >>> 0];
4394
+ return addHeapObject(ret);
4395
+ }
4396
+
4397
+ export function __wbg_getaccesstoken_3a9776f32a1130a3(arg0) {
4361
4398
  const ret = getObject(arg0).get_access_token();
4362
4399
  return addHeapObject(ret);
4363
4400
  }
@@ -4542,14 +4579,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
4542
4579
  return ret;
4543
4580
  }
4544
4581
 
4545
- export function __wbg_list_4e0d6dd02e01fb14() {
4582
+ export function __wbg_list_6fcd7aa4f49b230e() {
4546
4583
  return handleError(function (arg0) {
4547
4584
  const ret = getObject(arg0).list();
4548
4585
  return addHeapObject(ret);
4549
4586
  }, arguments);
4550
4587
  }
4551
4588
 
4552
- export function __wbg_list_5c029345a427c524() {
4589
+ export function __wbg_list_b8eb4a9fd04e8583() {
4553
4590
  return handleError(function (arg0) {
4554
4591
  const ret = getObject(arg0).list();
4555
4592
  return addHeapObject(ret);
@@ -4592,7 +4629,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
4592
4629
  const a = state0.a;
4593
4630
  state0.a = 0;
4594
4631
  try {
4595
- return __wbg_adapter_352(a, state0.b, arg0, arg1);
4632
+ return __wbg_adapter_353(a, state0.b, arg0, arg1);
4596
4633
  } finally {
4597
4634
  state0.a = a;
4598
4635
  }
@@ -4755,7 +4792,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
4755
4792
  }, arguments);
4756
4793
  }
4757
4794
 
4758
- export function __wbg_remove_861642888719c381() {
4795
+ export function __wbg_remove_b61892357ced7e0d() {
4759
4796
  return handleError(function (arg0, arg1, arg2) {
4760
4797
  let deferred0_0;
4761
4798
  let deferred0_1;
@@ -4770,7 +4807,7 @@ export function __wbg_remove_861642888719c381() {
4770
4807
  }, arguments);
4771
4808
  }
4772
4809
 
4773
- export function __wbg_remove_f3bd38a56ef59c44() {
4810
+ export function __wbg_remove_d38612e2e58a9e8f() {
4774
4811
  return handleError(function (arg0, arg1, arg2) {
4775
4812
  let deferred0_0;
4776
4813
  let deferred0_1;
@@ -4816,7 +4853,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
4816
4853
  return addHeapObject(ret);
4817
4854
  }
4818
4855
 
4819
- export function __wbg_set_19f315c892446833() {
4856
+ export function __wbg_set_21a2ed8a70365e91() {
4820
4857
  return handleError(function (arg0, arg1, arg2, arg3) {
4821
4858
  let deferred0_0;
4822
4859
  let deferred0_1;
@@ -4843,7 +4880,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4843
4880
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4844
4881
  }
4845
4882
 
4846
- export function __wbg_set_83ad03e1fcbfd7f0() {
4883
+ export function __wbg_set_8e9c610c5c900fb3() {
4847
4884
  return handleError(function (arg0, arg1, arg2, arg3) {
4848
4885
  let deferred0_0;
4849
4886
  let deferred0_1;
@@ -5088,17 +5125,17 @@ export function __wbindgen_closure_wrapper200(arg0, arg1, arg2) {
5088
5125
  return addHeapObject(ret);
5089
5126
  }
5090
5127
 
5091
- export function __wbindgen_closure_wrapper4259(arg0, arg1, arg2) {
5128
+ export function __wbindgen_closure_wrapper4262(arg0, arg1, arg2) {
5092
5129
  const ret = makeMutClosure(arg0, arg1, 349, __wbg_adapter_60);
5093
5130
  return addHeapObject(ret);
5094
5131
  }
5095
5132
 
5096
- export function __wbindgen_closure_wrapper8234(arg0, arg1, arg2) {
5133
+ export function __wbindgen_closure_wrapper8237(arg0, arg1, arg2) {
5097
5134
  const ret = makeMutClosure(arg0, arg1, 516, __wbg_adapter_60);
5098
5135
  return addHeapObject(ret);
5099
5136
  }
5100
5137
 
5101
- export function __wbindgen_closure_wrapper8617(arg0, arg1, arg2) {
5138
+ export function __wbindgen_closure_wrapper8620(arg0, arg1, arg2) {
5102
5139
  const ret = makeMutClosure(arg0, arg1, 538, __wbg_adapter_54);
5103
5140
  return addHeapObject(ret);
5104
5141
  }
Binary file
@@ -182,7 +182,8 @@ export const generate_ssh_key: (a: number, b: number) => void;
182
182
  export const import_ssh_key: (a: number, b: number, c: number, d: number, e: number) => void;
183
183
  export const isTestError: (a: number) => number;
184
184
  export const __wbg_authclient_free: (a: number, b: number) => void;
185
- export const authclient_send_access: (a: number) => number;
185
+ export const authclient_identity: (a: number) => number;
186
+ export const __wbg_identityclient_free: (a: number, b: number) => void;
186
187
  export const sendaccessclient_request_send_access_token: (a: number, b: number) => number;
187
188
  export const isCollectionDecryptError: (a: number) => number;
188
189
  export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
@@ -398,6 +399,7 @@ export const purecrypto_unwrap_encapsulation_key: (
398
399
  export const __wbg_stateclient_free: (a: number, b: number) => void;
399
400
  export const __wbg_platformclient_free: (a: number, b: number) => void;
400
401
  export const platformclient_state: (a: number) => number;
402
+ export const authclient_send_access: (a: number) => number;
401
403
  export const vaultclient_ciphers: (a: number) => number;
402
404
  export const vaultclient_folders: (a: number) => number;
403
405
  export const vaultclient_totp: (a: number) => number;