@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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4b80d303835334c2d153bc45a9d74935b34233c3
1
+ f2bc7084ffa2a0a427b2b215bd0d39944f9cb705
@@ -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
  */
@@ -990,13 +990,13 @@ export class BitwardenClient {
990
990
  wasm.__wbg_bitwardenclient_free(ptr, 0);
991
991
  }
992
992
  /**
993
- * @param {ClientSettings | null | undefined} settings
994
993
  * @param {any} token_provider
994
+ * @param {ClientSettings | null} [settings]
995
995
  */
996
- constructor(settings, token_provider) {
996
+ constructor(token_provider, settings) {
997
997
  const ret = wasm.bitwardenclient_new(
998
- isLikeNone(settings) ? 0 : addHeapObject(settings),
999
998
  addHeapObject(token_provider),
999
+ isLikeNone(settings) ? 0 : addHeapObject(settings),
1000
1000
  );
1001
1001
  this.__wbg_ptr = ret >>> 0;
1002
1002
  BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
@@ -3388,7 +3388,7 @@ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
3388
3388
  return addHeapObject(ret);
3389
3389
  }
3390
3390
 
3391
- export function __wbg_get_d7e08493e14d3073() {
3391
+ export function __wbg_get_cefc449f27b5b2b5() {
3392
3392
  return handleError(function (arg0, arg1, arg2) {
3393
3393
  let deferred0_0;
3394
3394
  let deferred0_1;
@@ -3403,7 +3403,7 @@ export function __wbg_get_d7e08493e14d3073() {
3403
3403
  }, arguments);
3404
3404
  }
3405
3405
 
3406
- export function __wbg_getaccesstoken_a6776220c768495c(arg0) {
3406
+ export function __wbg_getaccesstoken_ea777e2ee11f5d4c(arg0) {
3407
3407
  const ret = getObject(arg0).get_access_token();
3408
3408
  return addHeapObject(ret);
3409
3409
  }
@@ -3508,7 +3508,7 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
3508
3508
  return ret;
3509
3509
  }
3510
3510
 
3511
- export function __wbg_list_296175588665e03b() {
3511
+ export function __wbg_list_4c3389bca02ccd5d() {
3512
3512
  return handleError(function (arg0) {
3513
3513
  const ret = getObject(arg0).list();
3514
3514
  return addHeapObject(ret);
@@ -3685,7 +3685,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
3685
3685
  }, arguments);
3686
3686
  }
3687
3687
 
3688
- export function __wbg_remove_91062ef36398ce81() {
3688
+ export function __wbg_remove_5bef744ea27147f9() {
3689
3689
  return handleError(function (arg0, arg1, arg2) {
3690
3690
  let deferred0_0;
3691
3691
  let deferred0_1;
@@ -3736,7 +3736,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
3736
3736
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3737
3737
  }
3738
3738
 
3739
- export function __wbg_set_e1312fa33b0e0bba() {
3739
+ export function __wbg_set_eb62834c6aad321f() {
3740
3740
  return handleError(function (arg0, arg1, arg2, arg3) {
3741
3741
  let deferred0_0;
3742
3742
  let deferred0_1;
@@ -3930,17 +3930,17 @@ export function __wbindgen_cb_drop(arg0) {
3930
3930
  return ret;
3931
3931
  }
3932
3932
 
3933
- export function __wbindgen_closure_wrapper2908(arg0, arg1, arg2) {
3933
+ export function __wbindgen_closure_wrapper2909(arg0, arg1, arg2) {
3934
3934
  const ret = makeMutClosure(arg0, arg1, 919, __wbg_adapter_50);
3935
3935
  return addHeapObject(ret);
3936
3936
  }
3937
3937
 
3938
- export function __wbindgen_closure_wrapper3748(arg0, arg1, arg2) {
3938
+ export function __wbindgen_closure_wrapper3749(arg0, arg1, arg2) {
3939
3939
  const ret = makeMutClosure(arg0, arg1, 1003, __wbg_adapter_53);
3940
3940
  return addHeapObject(ret);
3941
3941
  }
3942
3942
 
3943
- export function __wbindgen_closure_wrapper4166(arg0, arg1, arg2) {
3943
+ export function __wbindgen_closure_wrapper4167(arg0, arg1, arg2) {
3944
3944
  const ret = makeMutClosure(arg0, arg1, 1126, __wbg_adapter_56);
3945
3945
  return addHeapObject(ret);
3946
3946
  }
Binary file