@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.
@@ -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
  }
@@ -792,7 +792,6 @@ class AttachmentsClient {
792
792
  wasm.__wbg_attachmentsclient_free(ptr, 0);
793
793
  }
794
794
  /**
795
- * Decrypts an attachment's encrypted content
796
795
  * @param {Cipher} cipher
797
796
  * @param {AttachmentView} attachment
798
797
  * @param {Uint8Array} encrypted_buffer
@@ -2870,10 +2869,6 @@ class TotpClient {
2870
2869
  * - OTP Auth URI
2871
2870
  * - Steam URI
2872
2871
  * - `time_ms` - Optional timestamp in milliseconds
2873
- *
2874
- * # Returns
2875
- * - `Ok(TotpResponse)` containing the generated code and period
2876
- * - `Err(TotpError)` if code generation fails
2877
2872
  * @param {string} key
2878
2873
  * @param {number | null} [time_ms]
2879
2874
  * @returns {TotpResponse}
@@ -2931,6 +2926,7 @@ class VaultClient {
2931
2926
  wasm.__wbg_vaultclient_free(ptr, 0);
2932
2927
  }
2933
2928
  /**
2929
+ * Attachment related operations.
2934
2930
  * @returns {AttachmentsClient}
2935
2931
  */
2936
2932
  attachments() {
@@ -2938,6 +2934,7 @@ class VaultClient {
2938
2934
  return AttachmentsClient.__wrap(ret);
2939
2935
  }
2940
2936
  /**
2937
+ * Cipher related operations.
2941
2938
  * @returns {CiphersClient}
2942
2939
  */
2943
2940
  ciphers() {
@@ -2945,6 +2942,7 @@ class VaultClient {
2945
2942
  return CiphersClient.__wrap(ret);
2946
2943
  }
2947
2944
  /**
2945
+ * Folder related operations.
2948
2946
  * @returns {FoldersClient}
2949
2947
  */
2950
2948
  folders() {
@@ -2952,10 +2950,11 @@ class VaultClient {
2952
2950
  return FoldersClient.__wrap(ret);
2953
2951
  }
2954
2952
  /**
2953
+ * TOTP related operations.
2955
2954
  * @returns {TotpClient}
2956
2955
  */
2957
2956
  totp() {
2958
- const ret = wasm.vaultclient_totp(this.__wbg_ptr);
2957
+ const ret = wasm.vaultclient_attachments(this.__wbg_ptr);
2959
2958
  return TotpClient.__wrap(ret);
2960
2959
  }
2961
2960
  }
@@ -3598,13 +3597,13 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
3598
3597
  return ret;
3599
3598
  };
3600
3599
 
3601
- module.exports.__wbindgen_closure_wrapper3197 = function (arg0, arg1, arg2) {
3602
- const ret = makeMutClosure(arg0, arg1, 747, __wbg_adapter_50);
3600
+ module.exports.__wbindgen_closure_wrapper3151 = function (arg0, arg1, arg2) {
3601
+ const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
3603
3602
  return addHeapObject(ret);
3604
3603
  };
3605
3604
 
3606
- module.exports.__wbindgen_closure_wrapper3592 = function (arg0, arg1, arg2) {
3607
- const ret = makeMutClosure(arg0, arg1, 869, __wbg_adapter_53);
3605
+ module.exports.__wbindgen_closure_wrapper3546 = function (arg0, arg1, arg2) {
3606
+ const ret = makeMutClosure(arg0, arg1, 849, __wbg_adapter_53);
3608
3607
  return addHeapObject(ret);
3609
3608
  };
3610
3609
 
@@ -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 __wbg_ciphersclient_free: (a: number, b: number) => void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.184",
3
+ "version": "0.2.0-main.186",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",