@bitwarden/sdk-internal 0.2.0-main.223 → 0.2.0-main.225

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.
@@ -1181,6 +1181,19 @@ export interface AttachmentView {
1181
1181
  sizeName: string | undefined;
1182
1182
  fileName: string | undefined;
1183
1183
  key: EncString | undefined;
1184
+ /**
1185
+ * The decrypted attachmentkey in base64 format.
1186
+ *
1187
+ * **TEMPORARY FIELD**: This field is a temporary workaround to provide
1188
+ * decrypted attachment keys to the TypeScript client during the migration
1189
+ * process. It will be removed once the encryption/decryption logic is
1190
+ * fully migrated to the SDK.
1191
+ *
1192
+ * **Ticket**: <https://bitwarden.atlassian.net/browse/PM-23005>
1193
+ *
1194
+ * Do not rely on this field for long-term use.
1195
+ */
1196
+ decryptedKey: string | undefined;
1184
1197
  }
1185
1198
 
1186
1199
  export interface Attachment {
@@ -1231,7 +1244,7 @@ export interface Repository<T> {
1231
1244
  }
1232
1245
 
1233
1246
  export interface TokenProvider {
1234
- get_access_token(): Promise<string>;
1247
+ get_access_token(): Promise<string | undefined>;
1235
1248
  }
1236
1249
 
1237
1250
  export interface TestError extends Error {
@@ -1251,7 +1264,7 @@ export class AttachmentsClient {
1251
1264
  }
1252
1265
  export class BitwardenClient {
1253
1266
  free(): void;
1254
- constructor(settings: ClientSettings | null | undefined, token_provider: any);
1267
+ constructor(token_provider: any, settings?: ClientSettings | null);
1255
1268
  /**
1256
1269
  * Test method, echoes back the input
1257
1270
  */
@@ -985,13 +985,13 @@ class BitwardenClient {
985
985
  wasm.__wbg_bitwardenclient_free(ptr, 0);
986
986
  }
987
987
  /**
988
- * @param {ClientSettings | null | undefined} settings
989
988
  * @param {any} token_provider
989
+ * @param {ClientSettings | null} [settings]
990
990
  */
991
- constructor(settings, token_provider) {
991
+ constructor(token_provider, settings) {
992
992
  const ret = wasm.bitwardenclient_new(
993
- isLikeNone(settings) ? 0 : addHeapObject(settings),
994
993
  addHeapObject(token_provider),
994
+ isLikeNone(settings) ? 0 : addHeapObject(settings),
995
995
  );
996
996
  this.__wbg_ptr = ret >>> 0;
997
997
  BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
@@ -3399,7 +3399,7 @@ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
3399
3399
  return addHeapObject(ret);
3400
3400
  };
3401
3401
 
3402
- module.exports.__wbg_get_d7e08493e14d3073 = function () {
3402
+ module.exports.__wbg_get_cefc449f27b5b2b5 = function () {
3403
3403
  return handleError(function (arg0, arg1, arg2) {
3404
3404
  let deferred0_0;
3405
3405
  let deferred0_1;
@@ -3414,7 +3414,7 @@ module.exports.__wbg_get_d7e08493e14d3073 = function () {
3414
3414
  }, arguments);
3415
3415
  };
3416
3416
 
3417
- module.exports.__wbg_getaccesstoken_a6776220c768495c = function (arg0) {
3417
+ module.exports.__wbg_getaccesstoken_ea777e2ee11f5d4c = function (arg0) {
3418
3418
  const ret = getObject(arg0).get_access_token();
3419
3419
  return addHeapObject(ret);
3420
3420
  };
@@ -3519,7 +3519,7 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
3519
3519
  return ret;
3520
3520
  };
3521
3521
 
3522
- module.exports.__wbg_list_296175588665e03b = function () {
3522
+ module.exports.__wbg_list_4c3389bca02ccd5d = function () {
3523
3523
  return handleError(function (arg0) {
3524
3524
  const ret = getObject(arg0).list();
3525
3525
  return addHeapObject(ret);
@@ -3696,7 +3696,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
3696
3696
  }, arguments);
3697
3697
  };
3698
3698
 
3699
- module.exports.__wbg_remove_91062ef36398ce81 = function () {
3699
+ module.exports.__wbg_remove_5bef744ea27147f9 = function () {
3700
3700
  return handleError(function (arg0, arg1, arg2) {
3701
3701
  let deferred0_0;
3702
3702
  let deferred0_1;
@@ -3747,7 +3747,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
3747
3747
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3748
3748
  };
3749
3749
 
3750
- module.exports.__wbg_set_e1312fa33b0e0bba = function () {
3750
+ module.exports.__wbg_set_eb62834c6aad321f = function () {
3751
3751
  return handleError(function (arg0, arg1, arg2, arg3) {
3752
3752
  let deferred0_0;
3753
3753
  let deferred0_1;
@@ -3941,17 +3941,17 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
3941
3941
  return ret;
3942
3942
  };
3943
3943
 
3944
- module.exports.__wbindgen_closure_wrapper2908 = function (arg0, arg1, arg2) {
3944
+ module.exports.__wbindgen_closure_wrapper2909 = function (arg0, arg1, arg2) {
3945
3945
  const ret = makeMutClosure(arg0, arg1, 919, __wbg_adapter_50);
3946
3946
  return addHeapObject(ret);
3947
3947
  };
3948
3948
 
3949
- module.exports.__wbindgen_closure_wrapper3748 = function (arg0, arg1, arg2) {
3949
+ module.exports.__wbindgen_closure_wrapper3749 = function (arg0, arg1, arg2) {
3950
3950
  const ret = makeMutClosure(arg0, arg1, 1003, __wbg_adapter_53);
3951
3951
  return addHeapObject(ret);
3952
3952
  };
3953
3953
 
3954
- module.exports.__wbindgen_closure_wrapper4166 = function (arg0, arg1, arg2) {
3954
+ module.exports.__wbindgen_closure_wrapper4167 = function (arg0, arg1, arg2) {
3955
3955
  const ret = makeMutClosure(arg0, arg1, 1126, __wbg_adapter_56);
3956
3956
  return addHeapObject(ret);
3957
3957
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.223",
3
+ "version": "0.2.0-main.225",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",