@bitwarden/sdk-internal 0.2.0-main.184 → 0.2.0-main.186
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 +12 -7
- package/bitwarden_wasm_internal_bg.js +9 -10
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +25 -25
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +12 -7
- package/node/bitwarden_wasm_internal.js +9 -10
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +25 -25
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
375a3c026e3796df656102b04b05ff28bab443de
|
|
@@ -989,9 +989,6 @@ export function isTestError(error: any): error is TestError;
|
|
|
989
989
|
export class AttachmentsClient {
|
|
990
990
|
private constructor();
|
|
991
991
|
free(): void;
|
|
992
|
-
/**
|
|
993
|
-
* Decrypts an attachment's encrypted content
|
|
994
|
-
*/
|
|
995
992
|
decrypt_buffer(
|
|
996
993
|
cipher: Cipher,
|
|
997
994
|
attachment: AttachmentView,
|
|
@@ -1307,18 +1304,26 @@ export class TotpClient {
|
|
|
1307
1304
|
* - OTP Auth URI
|
|
1308
1305
|
* - Steam URI
|
|
1309
1306
|
* - `time_ms` - Optional timestamp in milliseconds
|
|
1310
|
-
*
|
|
1311
|
-
* # Returns
|
|
1312
|
-
* - `Ok(TotpResponse)` containing the generated code and period
|
|
1313
|
-
* - `Err(TotpError)` if code generation fails
|
|
1314
1307
|
*/
|
|
1315
1308
|
generate_totp(key: string, time_ms?: number | null): TotpResponse;
|
|
1316
1309
|
}
|
|
1317
1310
|
export class VaultClient {
|
|
1318
1311
|
private constructor();
|
|
1319
1312
|
free(): void;
|
|
1313
|
+
/**
|
|
1314
|
+
* Attachment related operations.
|
|
1315
|
+
*/
|
|
1320
1316
|
attachments(): AttachmentsClient;
|
|
1317
|
+
/**
|
|
1318
|
+
* Cipher related operations.
|
|
1319
|
+
*/
|
|
1321
1320
|
ciphers(): CiphersClient;
|
|
1321
|
+
/**
|
|
1322
|
+
* Folder related operations.
|
|
1323
|
+
*/
|
|
1322
1324
|
folders(): FoldersClient;
|
|
1325
|
+
/**
|
|
1326
|
+
* TOTP related operations.
|
|
1327
|
+
*/
|
|
1323
1328
|
totp(): TotpClient;
|
|
1324
1329
|
}
|
|
@@ -798,7 +798,6 @@ export class AttachmentsClient {
|
|
|
798
798
|
wasm.__wbg_attachmentsclient_free(ptr, 0);
|
|
799
799
|
}
|
|
800
800
|
/**
|
|
801
|
-
* Decrypts an attachment's encrypted content
|
|
802
801
|
* @param {Cipher} cipher
|
|
803
802
|
* @param {AttachmentView} attachment
|
|
804
803
|
* @param {Uint8Array} encrypted_buffer
|
|
@@ -2861,10 +2860,6 @@ export class TotpClient {
|
|
|
2861
2860
|
* - OTP Auth URI
|
|
2862
2861
|
* - Steam URI
|
|
2863
2862
|
* - `time_ms` - Optional timestamp in milliseconds
|
|
2864
|
-
*
|
|
2865
|
-
* # Returns
|
|
2866
|
-
* - `Ok(TotpResponse)` containing the generated code and period
|
|
2867
|
-
* - `Err(TotpError)` if code generation fails
|
|
2868
2863
|
* @param {string} key
|
|
2869
2864
|
* @param {number | null} [time_ms]
|
|
2870
2865
|
* @returns {TotpResponse}
|
|
@@ -2921,6 +2916,7 @@ export class VaultClient {
|
|
|
2921
2916
|
wasm.__wbg_vaultclient_free(ptr, 0);
|
|
2922
2917
|
}
|
|
2923
2918
|
/**
|
|
2919
|
+
* Attachment related operations.
|
|
2924
2920
|
* @returns {AttachmentsClient}
|
|
2925
2921
|
*/
|
|
2926
2922
|
attachments() {
|
|
@@ -2928,6 +2924,7 @@ export class VaultClient {
|
|
|
2928
2924
|
return AttachmentsClient.__wrap(ret);
|
|
2929
2925
|
}
|
|
2930
2926
|
/**
|
|
2927
|
+
* Cipher related operations.
|
|
2931
2928
|
* @returns {CiphersClient}
|
|
2932
2929
|
*/
|
|
2933
2930
|
ciphers() {
|
|
@@ -2935,6 +2932,7 @@ export class VaultClient {
|
|
|
2935
2932
|
return CiphersClient.__wrap(ret);
|
|
2936
2933
|
}
|
|
2937
2934
|
/**
|
|
2935
|
+
* Folder related operations.
|
|
2938
2936
|
* @returns {FoldersClient}
|
|
2939
2937
|
*/
|
|
2940
2938
|
folders() {
|
|
@@ -2942,10 +2940,11 @@ export class VaultClient {
|
|
|
2942
2940
|
return FoldersClient.__wrap(ret);
|
|
2943
2941
|
}
|
|
2944
2942
|
/**
|
|
2943
|
+
* TOTP related operations.
|
|
2945
2944
|
* @returns {TotpClient}
|
|
2946
2945
|
*/
|
|
2947
2946
|
totp() {
|
|
2948
|
-
const ret = wasm.
|
|
2947
|
+
const ret = wasm.vaultclient_attachments(this.__wbg_ptr);
|
|
2949
2948
|
return TotpClient.__wrap(ret);
|
|
2950
2949
|
}
|
|
2951
2950
|
}
|
|
@@ -3587,13 +3586,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
3587
3586
|
return ret;
|
|
3588
3587
|
}
|
|
3589
3588
|
|
|
3590
|
-
export function
|
|
3591
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3589
|
+
export function __wbindgen_closure_wrapper3151(arg0, arg1, arg2) {
|
|
3590
|
+
const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
|
|
3592
3591
|
return addHeapObject(ret);
|
|
3593
3592
|
}
|
|
3594
3593
|
|
|
3595
|
-
export function
|
|
3596
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3594
|
+
export function __wbindgen_closure_wrapper3546(arg0, arg1, arg2) {
|
|
3595
|
+
const ret = makeMutClosure(arg0, arg1, 849, __wbg_adapter_53);
|
|
3597
3596
|
return addHeapObject(ret);
|
|
3598
3597
|
}
|
|
3599
3598
|
|
|
Binary file
|
|
@@ -96,7 +96,15 @@ export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => vo
|
|
|
96
96
|
export const isSshKeyExportError: (a: number) => number;
|
|
97
97
|
export const isSshKeyImportError: (a: number) => number;
|
|
98
98
|
export const isKeyGenerationError: (a: number) => number;
|
|
99
|
-
export const
|
|
99
|
+
export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
|
|
100
|
+
export const attachmentsclient_decrypt_buffer: (
|
|
101
|
+
a: number,
|
|
102
|
+
b: number,
|
|
103
|
+
c: number,
|
|
104
|
+
d: number,
|
|
105
|
+
e: number,
|
|
106
|
+
f: number,
|
|
107
|
+
) => void;
|
|
100
108
|
export const ciphersclient_encrypt: (a: number, b: number, c: number) => void;
|
|
101
109
|
export const ciphersclient_decrypt: (a: number, b: number, c: number) => void;
|
|
102
110
|
export const ciphersclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -111,13 +119,28 @@ export const ciphersclient_decrypt_fido2_private_key: (a: number, b: number, c:
|
|
|
111
119
|
export const foldersclient_encrypt: (a: number, b: number, c: number) => void;
|
|
112
120
|
export const foldersclient_decrypt: (a: number, b: number, c: number) => void;
|
|
113
121
|
export const foldersclient_decrypt_list: (a: number, b: number, c: number, d: number) => void;
|
|
122
|
+
export const vaultclient_attachments: (a: number) => number;
|
|
123
|
+
export const totpclient_generate_totp: (
|
|
124
|
+
a: number,
|
|
125
|
+
b: number,
|
|
126
|
+
c: number,
|
|
127
|
+
d: number,
|
|
128
|
+
e: number,
|
|
129
|
+
f: number,
|
|
130
|
+
) => void;
|
|
114
131
|
export const isDecryptError: (a: number) => number;
|
|
115
132
|
export const isEncryptError: (a: number) => number;
|
|
116
133
|
export const isTotpError: (a: number) => number;
|
|
117
134
|
export const isCipherError: (a: number) => number;
|
|
118
135
|
export const isDecryptFileError: (a: number) => number;
|
|
119
136
|
export const isEncryptFileError: (a: number) => number;
|
|
137
|
+
export const vaultclient_ciphers: (a: number) => number;
|
|
138
|
+
export const vaultclient_folders: (a: number) => number;
|
|
139
|
+
export const vaultclient_totp: (a: number) => number;
|
|
140
|
+
export const __wbg_vaultclient_free: (a: number, b: number) => void;
|
|
141
|
+
export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
120
142
|
export const __wbg_foldersclient_free: (a: number, b: number) => void;
|
|
143
|
+
export const __wbg_ciphersclient_free: (a: number, b: number) => void;
|
|
121
144
|
export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
|
|
122
145
|
export const bitwardenclient_new: (a: number) => number;
|
|
123
146
|
export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -125,6 +148,7 @@ export const bitwardenclient_version: (a: number, b: number) => void;
|
|
|
125
148
|
export const bitwardenclient_throw: (a: number, b: number, c: number, d: number) => void;
|
|
126
149
|
export const bitwardenclient_http_get: (a: number, b: number, c: number) => number;
|
|
127
150
|
export const bitwardenclient_crypto: (a: number) => number;
|
|
151
|
+
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
128
152
|
export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
|
|
129
153
|
export const cryptoclient_initialize_org_crypto: (a: number, b: number) => number;
|
|
130
154
|
export const cryptoclient_make_key_pair: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -254,25 +278,6 @@ export const purecrypto_decapsulate_key_unsigned: (
|
|
|
254
278
|
) => void;
|
|
255
279
|
export const generate_ssh_key: (a: number, b: number) => void;
|
|
256
280
|
export const import_ssh_key: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
257
|
-
export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
|
|
258
|
-
export const attachmentsclient_decrypt_buffer: (
|
|
259
|
-
a: number,
|
|
260
|
-
b: number,
|
|
261
|
-
c: number,
|
|
262
|
-
d: number,
|
|
263
|
-
e: number,
|
|
264
|
-
f: number,
|
|
265
|
-
) => void;
|
|
266
|
-
export const totpclient_generate_totp: (
|
|
267
|
-
a: number,
|
|
268
|
-
b: number,
|
|
269
|
-
c: number,
|
|
270
|
-
d: number,
|
|
271
|
-
e: number,
|
|
272
|
-
f: number,
|
|
273
|
-
) => void;
|
|
274
|
-
export const vaultclient_attachments: (a: number) => number;
|
|
275
|
-
export const vaultclient_totp: (a: number) => number;
|
|
276
281
|
export const isTestError: (a: number) => number;
|
|
277
282
|
export const purecrypto_unwrap_encapsulation_key: (
|
|
278
283
|
a: number,
|
|
@@ -284,8 +289,6 @@ export const purecrypto_unwrap_encapsulation_key: (
|
|
|
284
289
|
export const bitwardenclient_vault: (a: number) => number;
|
|
285
290
|
export const bitwardenclient_generator: (a: number) => number;
|
|
286
291
|
export const bitwardenclient_exporters: (a: number) => number;
|
|
287
|
-
export const vaultclient_ciphers: (a: number) => number;
|
|
288
|
-
export const vaultclient_folders: (a: number) => number;
|
|
289
292
|
export const purecrypto_wrap_encapsulation_key: (
|
|
290
293
|
a: number,
|
|
291
294
|
b: number,
|
|
@@ -293,9 +296,6 @@ export const purecrypto_wrap_encapsulation_key: (
|
|
|
293
296
|
d: number,
|
|
294
297
|
e: number,
|
|
295
298
|
) => void;
|
|
296
|
-
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
|
297
|
-
export const __wbg_vaultclient_free: (a: number, b: number) => void;
|
|
298
|
-
export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
299
299
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
300
300
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
301
301
|
export const __wbindgen_exn_store: (a: number) => void;
|