@bitwarden/sdk-internal 0.2.0-main.307 → 0.2.0-main.308
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 +1 -1
- package/bitwarden_wasm_internal.d.ts +2 -2
- package/bitwarden_wasm_internal_bg.js +34 -34
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +2 -2
- package/node/bitwarden_wasm_internal.js +34 -34
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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:
|
|
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:
|
|
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 {
|
|
2291
|
+
* @param {FolderId} folder_id
|
|
2292
2292
|
* @returns {Promise<FolderView>}
|
|
2293
2293
|
*/
|
|
2294
2294
|
get(folder_id) {
|
|
2295
|
-
const
|
|
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 {
|
|
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
|
|
2317
|
-
|
|
2318
|
-
|
|
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
|
}
|
|
@@ -4126,14 +4126,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4126
4126
|
return ret;
|
|
4127
4127
|
};
|
|
4128
4128
|
|
|
4129
|
-
module.exports.
|
|
4130
|
-
return handleError(function (arg0, arg1) {
|
|
4131
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4132
|
-
return addHeapObject(ret);
|
|
4133
|
-
}, arguments);
|
|
4134
|
-
};
|
|
4135
|
-
|
|
4136
|
-
module.exports.__wbg_get_919cf82d3c6b2598 = function () {
|
|
4129
|
+
module.exports.__wbg_get_189b413fd1e1b97d = function () {
|
|
4137
4130
|
return handleError(function (arg0, arg1, arg2) {
|
|
4138
4131
|
let deferred0_0;
|
|
4139
4132
|
let deferred0_1;
|
|
@@ -4148,12 +4141,14 @@ module.exports.__wbg_get_919cf82d3c6b2598 = function () {
|
|
|
4148
4141
|
}, arguments);
|
|
4149
4142
|
};
|
|
4150
4143
|
|
|
4151
|
-
module.exports.
|
|
4152
|
-
|
|
4153
|
-
|
|
4144
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4145
|
+
return handleError(function (arg0, arg1) {
|
|
4146
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4147
|
+
return addHeapObject(ret);
|
|
4148
|
+
}, arguments);
|
|
4154
4149
|
};
|
|
4155
4150
|
|
|
4156
|
-
module.exports.
|
|
4151
|
+
module.exports.__wbg_get_938134fb09119281 = 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.
|
|
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_1e2b54361537c15f = 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.
|
|
4356
|
+
module.exports.__wbg_list_7f0fe22786f8074d = 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.
|
|
4363
|
+
module.exports.__wbg_list_ccadad12bfbaa75c = 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.
|
|
4564
|
+
module.exports.__wbg_remove_860cd960c7193eca = 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.
|
|
4579
|
+
module.exports.__wbg_remove_e8f91b1c8c670e82 = function () {
|
|
4580
4580
|
return handleError(function (arg0, arg1, arg2) {
|
|
4581
4581
|
let deferred0_0;
|
|
4582
4582
|
let deferred0_1;
|
|
@@ -4634,7 +4634,12 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
|
4634
4634
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4635
4635
|
};
|
|
4636
4636
|
|
|
4637
|
-
module.exports.
|
|
4637
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4638
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4639
|
+
return addHeapObject(ret);
|
|
4640
|
+
};
|
|
4641
|
+
|
|
4642
|
+
module.exports.__wbg_set_d590b5d0d7226a02 = function () {
|
|
4638
4643
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4639
4644
|
let deferred0_0;
|
|
4640
4645
|
let deferred0_1;
|
|
@@ -4649,7 +4654,7 @@ module.exports.__wbg_set_7df0ddb96f670064 = function () {
|
|
|
4649
4654
|
}, arguments);
|
|
4650
4655
|
};
|
|
4651
4656
|
|
|
4652
|
-
module.exports.
|
|
4657
|
+
module.exports.__wbg_set_df049467f6e3aea3 = 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.
|
|
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.
|
|
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
|
};
|
|
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
|
|
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
|
|
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;
|