@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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 7878bdba26f1950c1e319ea7463bb2de61ff79a0
1
+ 1ca5a589f78117e54e36ce5b7cb77f5212f068e9
@@ -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();
@@ -2285,13 +2285,11 @@ export class FoldersClient {
2285
2285
  }
2286
2286
  /**
2287
2287
  * Get a specific [Folder] by its ID from state and decrypt it to a [FolderView].
2288
- * @param {string} folder_id
2288
+ * @param {FolderId} folder_id
2289
2289
  * @returns {Promise<FolderView>}
2290
2290
  */
2291
2291
  get(folder_id) {
2292
- const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2293
- const len0 = WASM_VECTOR_LEN;
2294
- const ret = wasm.foldersclient_get(this.__wbg_ptr, ptr0, len0);
2292
+ const ret = wasm.foldersclient_get(this.__wbg_ptr, addHeapObject(folder_id));
2295
2293
  return takeObject(ret);
2296
2294
  }
2297
2295
  /**
@@ -2305,14 +2303,16 @@ export class FoldersClient {
2305
2303
  }
2306
2304
  /**
2307
2305
  * Edit the [Folder] and save it to the server.
2308
- * @param {string} folder_id
2306
+ * @param {FolderId} folder_id
2309
2307
  * @param {FolderAddEditRequest} request
2310
2308
  * @returns {Promise<FolderView>}
2311
2309
  */
2312
2310
  edit(folder_id, request) {
2313
- const ptr0 = passStringToWasm0(folder_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2314
- const len0 = WASM_VECTOR_LEN;
2315
- const ret = wasm.foldersclient_edit(this.__wbg_ptr, ptr0, len0, addHeapObject(request));
2311
+ const ret = wasm.foldersclient_edit(
2312
+ this.__wbg_ptr,
2313
+ addHeapObject(folder_id),
2314
+ addHeapObject(request),
2315
+ );
2316
2316
  return takeObject(ret);
2317
2317
  }
2318
2318
  }
@@ -4117,7 +4117,7 @@ export function __wbg_get_67b2ba62fc30de12() {
4117
4117
  }, arguments);
4118
4118
  }
4119
4119
 
4120
- export function __wbg_get_919cf82d3c6b2598() {
4120
+ export function __wbg_get_945a0b915f37e6a5() {
4121
4121
  return handleError(function (arg0, arg1, arg2) {
4122
4122
  let deferred0_0;
4123
4123
  let deferred0_1;
@@ -4132,12 +4132,7 @@ export function __wbg_get_919cf82d3c6b2598() {
4132
4132
  }, arguments);
4133
4133
  }
4134
4134
 
4135
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4136
- const ret = getObject(arg0)[arg1 >>> 0];
4137
- return addHeapObject(ret);
4138
- }
4139
-
4140
- export function __wbg_get_bdd50f3b0f8b2699() {
4135
+ export function __wbg_get_9ee78ff9ed59da5e() {
4141
4136
  return handleError(function (arg0, arg1, arg2) {
4142
4137
  let deferred0_0;
4143
4138
  let deferred0_1;
@@ -4152,7 +4147,12 @@ export function __wbg_get_bdd50f3b0f8b2699() {
4152
4147
  }, arguments);
4153
4148
  }
4154
4149
 
4155
- export function __wbg_getaccesstoken_1b27a44424385dd2(arg0) {
4150
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4151
+ const ret = getObject(arg0)[arg1 >>> 0];
4152
+ return addHeapObject(ret);
4153
+ }
4154
+
4155
+ export function __wbg_getaccesstoken_02c003cee7a7f946(arg0) {
4156
4156
  const ret = getObject(arg0).get_access_token();
4157
4157
  return addHeapObject(ret);
4158
4158
  }
@@ -4337,14 +4337,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
4337
4337
  return ret;
4338
4338
  }
4339
4339
 
4340
- export function __wbg_list_ab0f82f15fa895f5() {
4340
+ export function __wbg_list_089304e0f8b73332() {
4341
4341
  return handleError(function (arg0) {
4342
4342
  const ret = getObject(arg0).list();
4343
4343
  return addHeapObject(ret);
4344
4344
  }, arguments);
4345
4345
  }
4346
4346
 
4347
- export function __wbg_list_cb1cbcfe84e633e2() {
4347
+ export function __wbg_list_8f1660977cede183() {
4348
4348
  return handleError(function (arg0) {
4349
4349
  const ret = getObject(arg0).list();
4350
4350
  return addHeapObject(ret);
@@ -4545,7 +4545,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
4545
4545
  }, arguments);
4546
4546
  }
4547
4547
 
4548
- export function __wbg_remove_33dd296c8b72650a() {
4548
+ export function __wbg_remove_040e62d289940f27() {
4549
4549
  return handleError(function (arg0, arg1, arg2) {
4550
4550
  let deferred0_0;
4551
4551
  let deferred0_1;
@@ -4560,7 +4560,7 @@ export function __wbg_remove_33dd296c8b72650a() {
4560
4560
  }, arguments);
4561
4561
  }
4562
4562
 
4563
- export function __wbg_remove_de8be3014c49fdfe() {
4563
+ export function __wbg_remove_776df28597eb84c1() {
4564
4564
  return handleError(function (arg0, arg1, arg2) {
4565
4565
  let deferred0_0;
4566
4566
  let deferred0_1;
@@ -4614,11 +4614,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
4614
4614
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
4615
4615
  }
4616
4616
 
4617
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4618
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4619
- }
4620
-
4621
- export function __wbg_set_7df0ddb96f670064() {
4617
+ export function __wbg_set_4b0d9d322752f026() {
4622
4618
  return handleError(function (arg0, arg1, arg2, arg3) {
4623
4619
  let deferred0_0;
4624
4620
  let deferred0_1;
@@ -4633,7 +4629,16 @@ export function __wbg_set_7df0ddb96f670064() {
4633
4629
  }, arguments);
4634
4630
  }
4635
4631
 
4636
- export function __wbg_set_88313dba6bf5c8e9() {
4632
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4633
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4634
+ }
4635
+
4636
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4637
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4638
+ return addHeapObject(ret);
4639
+ }
4640
+
4641
+ export function __wbg_set_ce6e1a0d1eefa91c() {
4637
4642
  return handleError(function (arg0, arg1, arg2, arg3) {
4638
4643
  let deferred0_0;
4639
4644
  let deferred0_1;
@@ -4648,11 +4653,6 @@ export function __wbg_set_88313dba6bf5c8e9() {
4648
4653
  }, arguments);
4649
4654
  }
4650
4655
 
4651
- export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4652
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
4653
- return addHeapObject(ret);
4654
- }
4655
-
4656
4656
  export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
4657
4657
  getObject(arg0).body = getObject(arg1);
4658
4658
  }
@@ -4878,12 +4878,12 @@ export function __wbindgen_closure_wrapper3784(arg0, arg1, arg2) {
4878
4878
  return addHeapObject(ret);
4879
4879
  }
4880
4880
 
4881
- export function __wbindgen_closure_wrapper6135(arg0, arg1, arg2) {
4881
+ export function __wbindgen_closure_wrapper6138(arg0, arg1, arg2) {
4882
4882
  const ret = makeMutClosure(arg0, arg1, 319, __wbg_adapter_60);
4883
4883
  return addHeapObject(ret);
4884
4884
  }
4885
4885
 
4886
- export function __wbindgen_closure_wrapper6516(arg0, arg1, arg2) {
4886
+ export function __wbindgen_closure_wrapper6519(arg0, arg1, arg2) {
4887
4887
  const ret = makeMutClosure(arg0, arg1, 342, __wbg_adapter_57);
4888
4888
  return addHeapObject(ret);
4889
4889
  }
Binary file
@@ -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;