@bitwarden/sdk-internal 0.2.0-main.307 → 0.2.0-main.309

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.
@@ -1865,7 +1865,7 @@ export class FoldersClient {
1865
1865
  /**
1866
1866
  * Get a specific [Folder] by its ID from state and decrypt it to a [FolderView].
1867
1867
  */
1868
- get(folder_id: string): Promise<FolderView>;
1868
+ get(folder_id: FolderId): Promise<FolderView>;
1869
1869
  /**
1870
1870
  * Create a new [Folder] and save it to the server.
1871
1871
  */
@@ -1873,7 +1873,7 @@ export class FoldersClient {
1873
1873
  /**
1874
1874
  * Edit the [Folder] and save it to the server.
1875
1875
  */
1876
- edit(folder_id: string, request: FolderAddEditRequest): Promise<FolderView>;
1876
+ edit(folder_id: FolderId, request: FolderAddEditRequest): Promise<FolderView>;
1877
1877
  }
1878
1878
  export class GeneratorClient {
1879
1879
  private constructor();
@@ -2288,13 +2288,11 @@ class FoldersClient {
2288
2288
  }
2289
2289
  /**
2290
2290
  * Get a specific [Folder] by its ID from state and decrypt it to a [FolderView].
2291
- * @param {string} folder_id
2291
+ * @param {FolderId} folder_id
2292
2292
  * @returns {Promise<FolderView>}
2293
2293
  */
2294
2294
  get(folder_id) {
2295
- const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2296
- const len0 = WASM_VECTOR_LEN;
2297
- const ret = wasm.foldersclient_get(this.__wbg_ptr, ptr0, len0);
2295
+ const ret = wasm.foldersclient_get(this.__wbg_ptr, addHeapObject(folder_id));
2298
2296
  return takeObject(ret);
2299
2297
  }
2300
2298
  /**
@@ -2308,14 +2306,16 @@ class FoldersClient {
2308
2306
  }
2309
2307
  /**
2310
2308
  * Edit the [Folder] and save it to the server.
2311
- * @param {string} folder_id
2309
+ * @param {FolderId} folder_id
2312
2310
  * @param {FolderAddEditRequest} request
2313
2311
  * @returns {Promise<FolderView>}
2314
2312
  */
2315
2313
  edit(folder_id, request) {
2316
- const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2317
- const len0 = WASM_VECTOR_LEN;
2318
- const ret = wasm.foldersclient_edit(this.__wbg_ptr, ptr0, len0, addHeapObject(request));
2314
+ const ret = wasm.foldersclient_edit(
2315
+ this.__wbg_ptr,
2316
+ addHeapObject(folder_id),
2317
+ addHeapObject(request),
2318
+ );
2319
2319
  return takeObject(ret);
2320
2320
  }
2321
2321
  }
@@ -4133,7 +4133,7 @@ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
4133
4133
  }, arguments);
4134
4134
  };
4135
4135
 
4136
- module.exports.__wbg_get_919cf82d3c6b2598 = function () {
4136
+ module.exports.__wbg_get_945a0b915f37e6a5 = function () {
4137
4137
  return handleError(function (arg0, arg1, arg2) {
4138
4138
  let deferred0_0;
4139
4139
  let deferred0_1;
@@ -4148,12 +4148,7 @@ module.exports.__wbg_get_919cf82d3c6b2598 = function () {
4148
4148
  }, arguments);
4149
4149
  };
4150
4150
 
4151
- module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4152
- const ret = getObject(arg0)[arg1 >>> 0];
4153
- return addHeapObject(ret);
4154
- };
4155
-
4156
- module.exports.__wbg_get_bdd50f3b0f8b2699 = function () {
4151
+ module.exports.__wbg_get_9ee78ff9ed59da5e = function () {
4157
4152
  return handleError(function (arg0, arg1, arg2) {
4158
4153
  let deferred0_0;
4159
4154
  let deferred0_1;
@@ -4168,7 +4163,12 @@ module.exports.__wbg_get_bdd50f3b0f8b2699 = function () {
4168
4163
  }, arguments);
4169
4164
  };
4170
4165
 
4171
- module.exports.__wbg_getaccesstoken_1b27a44424385dd2 = function (arg0) {
4166
+ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
4167
+ const ret = getObject(arg0)[arg1 >>> 0];
4168
+ return addHeapObject(ret);
4169
+ };
4170
+
4171
+ module.exports.__wbg_getaccesstoken_02c003cee7a7f946 = function (arg0) {
4172
4172
  const ret = getObject(arg0).get_access_token();
4173
4173
  return addHeapObject(ret);
4174
4174
  };
@@ -4353,14 +4353,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
4353
4353
  return ret;
4354
4354
  };
4355
4355
 
4356
- module.exports.__wbg_list_ab0f82f15fa895f5 = function () {
4356
+ module.exports.__wbg_list_089304e0f8b73332 = function () {
4357
4357
  return handleError(function (arg0) {
4358
4358
  const ret = getObject(arg0).list();
4359
4359
  return addHeapObject(ret);
4360
4360
  }, arguments);
4361
4361
  };
4362
4362
 
4363
- module.exports.__wbg_list_cb1cbcfe84e633e2 = function () {
4363
+ module.exports.__wbg_list_8f1660977cede183 = function () {
4364
4364
  return handleError(function (arg0) {
4365
4365
  const ret = getObject(arg0).list();
4366
4366
  return addHeapObject(ret);
@@ -4561,7 +4561,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
4561
4561
  }, arguments);
4562
4562
  };
4563
4563
 
4564
- module.exports.__wbg_remove_33dd296c8b72650a = function () {
4564
+ module.exports.__wbg_remove_040e62d289940f27 = function () {
4565
4565
  return handleError(function (arg0, arg1, arg2) {
4566
4566
  let deferred0_0;
4567
4567
  let deferred0_1;
@@ -4576,7 +4576,7 @@ module.exports.__wbg_remove_33dd296c8b72650a = function () {
4576
4576
  }, arguments);
4577
4577
  };
4578
4578
 
4579
- module.exports.__wbg_remove_de8be3014c49fdfe = function () {
4579
+ module.exports.__wbg_remove_776df28597eb84c1 = function () {
4580
4580
  return handleError(function (arg0, arg1, arg2) {
4581
4581
  let deferred0_0;
4582
4582
  let deferred0_1;
@@ -4630,11 +4630,7 @@ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
4630
4630
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4631
4631
  };
4632
4632
 
4633
- module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4634
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4635
- };
4636
-
4637
- module.exports.__wbg_set_7df0ddb96f670064 = function () {
4633
+ module.exports.__wbg_set_4b0d9d322752f026 = function () {
4638
4634
  return handleError(function (arg0, arg1, arg2, arg3) {
4639
4635
  let deferred0_0;
4640
4636
  let deferred0_1;
@@ -4649,7 +4645,16 @@ module.exports.__wbg_set_7df0ddb96f670064 = function () {
4649
4645
  }, arguments);
4650
4646
  };
4651
4647
 
4652
- module.exports.__wbg_set_88313dba6bf5c8e9 = function () {
4648
+ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
4649
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4650
+ };
4651
+
4652
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4653
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4654
+ return addHeapObject(ret);
4655
+ };
4656
+
4657
+ module.exports.__wbg_set_ce6e1a0d1eefa91c = function () {
4653
4658
  return handleError(function (arg0, arg1, arg2, arg3) {
4654
4659
  let deferred0_0;
4655
4660
  let deferred0_1;
@@ -4664,11 +4669,6 @@ module.exports.__wbg_set_88313dba6bf5c8e9 = function () {
4664
4669
  }, arguments);
4665
4670
  };
4666
4671
 
4667
- module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
4668
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4669
- return addHeapObject(ret);
4670
- };
4671
-
4672
4672
  module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
4673
4673
  getObject(arg0).body = getObject(arg1);
4674
4674
  };
@@ -4894,12 +4894,12 @@ module.exports.__wbindgen_closure_wrapper3784 = function (arg0, arg1, arg2) {
4894
4894
  return addHeapObject(ret);
4895
4895
  };
4896
4896
 
4897
- module.exports.__wbindgen_closure_wrapper6135 = function (arg0, arg1, arg2) {
4897
+ module.exports.__wbindgen_closure_wrapper6138 = function (arg0, arg1, arg2) {
4898
4898
  const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4899
4899
  return addHeapObject(ret);
4900
4900
  };
4901
4901
 
4902
- module.exports.__wbindgen_closure_wrapper6516 = function (arg0, arg1, arg2) {
4902
+ module.exports.__wbindgen_closure_wrapper6519 = function (arg0, arg1, arg2) {
4903
4903
  const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
4904
4904
  return addHeapObject(ret);
4905
4905
  };
@@ -339,9 +339,9 @@ export const foldersclient_encrypt: (a: number, b: number, c: number) => void;
339
339
  export const foldersclient_decrypt: (a: number, b: number, c: number) => void;
340
340
  export const foldersclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
341
341
  export const foldersclient_list: (a: number) => number;
342
- export const foldersclient_get: (a: number, b: number, c: number) => number;
342
+ export const foldersclient_get: (a: number, b: number) => number;
343
343
  export const foldersclient_create: (a: number, b: number) => number;
344
- export const foldersclient_edit: (a: number, b: number, c: number, d: number) => number;
344
+ export const foldersclient_edit: (a: number, b: number, c: number) => number;
345
345
  export const vaultclient_attachments: (a: number) => number;
346
346
  export const collectionsclient_decrypt: (a: number, b: number, c: number) => void;
347
347
  export const collectionsclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.307",
3
+ "version": "0.2.0-main.309",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",