@bitwarden/sdk-internal 0.2.0-main.372 → 0.2.0-main.374
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 +24 -0
- package/bitwarden_wasm_internal_bg.js +503 -431
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +14 -12
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +24 -0
- package/node/bitwarden_wasm_internal.js +622 -533
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +13 -11
- package/package.json +1 -1
|
@@ -1798,6 +1798,7 @@ export interface Attachment {
|
|
|
1798
1798
|
export class AttachmentsClient {
|
|
1799
1799
|
private constructor();
|
|
1800
1800
|
free(): void;
|
|
1801
|
+
[Symbol.dispose](): void;
|
|
1801
1802
|
decrypt_buffer(
|
|
1802
1803
|
cipher: Cipher,
|
|
1803
1804
|
attachment: AttachmentView,
|
|
@@ -1810,6 +1811,7 @@ export class AttachmentsClient {
|
|
|
1810
1811
|
export class AuthClient {
|
|
1811
1812
|
private constructor();
|
|
1812
1813
|
free(): void;
|
|
1814
|
+
[Symbol.dispose](): void;
|
|
1813
1815
|
/**
|
|
1814
1816
|
* Client for identity functionality
|
|
1815
1817
|
*/
|
|
@@ -1824,6 +1826,7 @@ export class AuthClient {
|
|
|
1824
1826
|
*/
|
|
1825
1827
|
export class BitwardenClient {
|
|
1826
1828
|
free(): void;
|
|
1829
|
+
[Symbol.dispose](): void;
|
|
1827
1830
|
/**
|
|
1828
1831
|
* Initialize a new instance of the SDK client
|
|
1829
1832
|
*/
|
|
@@ -1875,6 +1878,7 @@ export class BitwardenClient {
|
|
|
1875
1878
|
export class CipherRiskClient {
|
|
1876
1879
|
private constructor();
|
|
1877
1880
|
free(): void;
|
|
1881
|
+
[Symbol.dispose](): void;
|
|
1878
1882
|
/**
|
|
1879
1883
|
* Build password reuse map for a list of login ciphers.
|
|
1880
1884
|
*
|
|
@@ -1915,6 +1919,7 @@ export class CipherRiskClient {
|
|
|
1915
1919
|
export class CiphersClient {
|
|
1916
1920
|
private constructor();
|
|
1917
1921
|
free(): void;
|
|
1922
|
+
[Symbol.dispose](): void;
|
|
1918
1923
|
/**
|
|
1919
1924
|
* Create a new [Cipher] and save it to the server.
|
|
1920
1925
|
*/
|
|
@@ -1980,6 +1985,7 @@ export class CiphersClient {
|
|
|
1980
1985
|
export class CollectionViewNodeItem {
|
|
1981
1986
|
private constructor();
|
|
1982
1987
|
free(): void;
|
|
1988
|
+
[Symbol.dispose](): void;
|
|
1983
1989
|
get_item(): CollectionView;
|
|
1984
1990
|
get_parent(): CollectionView | undefined;
|
|
1985
1991
|
get_children(): CollectionView[];
|
|
@@ -1988,6 +1994,7 @@ export class CollectionViewNodeItem {
|
|
|
1988
1994
|
export class CollectionViewTree {
|
|
1989
1995
|
private constructor();
|
|
1990
1996
|
free(): void;
|
|
1997
|
+
[Symbol.dispose](): void;
|
|
1991
1998
|
get_item_for_view(collection_view: CollectionView): CollectionViewNodeItem | undefined;
|
|
1992
1999
|
get_root_items(): CollectionViewNodeItem[];
|
|
1993
2000
|
get_flat_items(): CollectionViewNodeItem[];
|
|
@@ -1995,6 +2002,7 @@ export class CollectionViewTree {
|
|
|
1995
2002
|
export class CollectionsClient {
|
|
1996
2003
|
private constructor();
|
|
1997
2004
|
free(): void;
|
|
2005
|
+
[Symbol.dispose](): void;
|
|
1998
2006
|
decrypt(collection: Collection): CollectionView;
|
|
1999
2007
|
decrypt_list(collections: Collection[]): CollectionView[];
|
|
2000
2008
|
/**
|
|
@@ -2010,6 +2018,7 @@ export class CollectionsClient {
|
|
|
2010
2018
|
export class CryptoClient {
|
|
2011
2019
|
private constructor();
|
|
2012
2020
|
free(): void;
|
|
2021
|
+
[Symbol.dispose](): void;
|
|
2013
2022
|
/**
|
|
2014
2023
|
* Initialization method for the user crypto. Needs to be called before any other crypto
|
|
2015
2024
|
* operations.
|
|
@@ -2066,6 +2075,7 @@ export class CryptoClient {
|
|
|
2066
2075
|
export class ExporterClient {
|
|
2067
2076
|
private constructor();
|
|
2068
2077
|
free(): void;
|
|
2078
|
+
[Symbol.dispose](): void;
|
|
2069
2079
|
export_vault(folders: Folder[], ciphers: Cipher[], format: ExportFormat): string;
|
|
2070
2080
|
export_organization_vault(
|
|
2071
2081
|
collections: Collection[],
|
|
@@ -2097,6 +2107,7 @@ export class ExporterClient {
|
|
|
2097
2107
|
export class FoldersClient {
|
|
2098
2108
|
private constructor();
|
|
2099
2109
|
free(): void;
|
|
2110
|
+
[Symbol.dispose](): void;
|
|
2100
2111
|
/**
|
|
2101
2112
|
* Encrypt a [FolderView] to a [Folder].
|
|
2102
2113
|
*/
|
|
@@ -2129,6 +2140,7 @@ export class FoldersClient {
|
|
|
2129
2140
|
export class GeneratorClient {
|
|
2130
2141
|
private constructor();
|
|
2131
2142
|
free(): void;
|
|
2143
|
+
[Symbol.dispose](): void;
|
|
2132
2144
|
/**
|
|
2133
2145
|
* Generates a random password.
|
|
2134
2146
|
*
|
|
@@ -2188,9 +2200,11 @@ export class GeneratorClient {
|
|
|
2188
2200
|
export class IdentityClient {
|
|
2189
2201
|
private constructor();
|
|
2190
2202
|
free(): void;
|
|
2203
|
+
[Symbol.dispose](): void;
|
|
2191
2204
|
}
|
|
2192
2205
|
export class IncomingMessage {
|
|
2193
2206
|
free(): void;
|
|
2207
|
+
[Symbol.dispose](): void;
|
|
2194
2208
|
constructor(payload: Uint8Array, destination: Endpoint, source: Endpoint, topic?: string | null);
|
|
2195
2209
|
/**
|
|
2196
2210
|
* Try to parse the payload as JSON.
|
|
@@ -2209,6 +2223,7 @@ export class IncomingMessage {
|
|
|
2209
2223
|
*/
|
|
2210
2224
|
export class IpcClient {
|
|
2211
2225
|
free(): void;
|
|
2226
|
+
[Symbol.dispose](): void;
|
|
2212
2227
|
constructor(communication_provider: IpcCommunicationBackend);
|
|
2213
2228
|
start(): Promise<void>;
|
|
2214
2229
|
isRunning(): Promise<boolean>;
|
|
@@ -2222,6 +2237,7 @@ export class IpcClient {
|
|
|
2222
2237
|
export class IpcClientSubscription {
|
|
2223
2238
|
private constructor();
|
|
2224
2239
|
free(): void;
|
|
2240
|
+
[Symbol.dispose](): void;
|
|
2225
2241
|
receive(abort_signal?: AbortSignal | null): Promise<IncomingMessage>;
|
|
2226
2242
|
}
|
|
2227
2243
|
/**
|
|
@@ -2229,6 +2245,7 @@ export class IpcClientSubscription {
|
|
|
2229
2245
|
*/
|
|
2230
2246
|
export class IpcCommunicationBackend {
|
|
2231
2247
|
free(): void;
|
|
2248
|
+
[Symbol.dispose](): void;
|
|
2232
2249
|
/**
|
|
2233
2250
|
* Creates a new instance of the JavaScript communication backend.
|
|
2234
2251
|
*/
|
|
@@ -2240,6 +2257,7 @@ export class IpcCommunicationBackend {
|
|
|
2240
2257
|
}
|
|
2241
2258
|
export class OutgoingMessage {
|
|
2242
2259
|
free(): void;
|
|
2260
|
+
[Symbol.dispose](): void;
|
|
2243
2261
|
constructor(payload: Uint8Array, destination: Endpoint, topic?: string | null);
|
|
2244
2262
|
/**
|
|
2245
2263
|
* Create a new message and encode the payload as JSON.
|
|
@@ -2257,6 +2275,7 @@ export class OutgoingMessage {
|
|
|
2257
2275
|
export class PlatformClient {
|
|
2258
2276
|
private constructor();
|
|
2259
2277
|
free(): void;
|
|
2278
|
+
[Symbol.dispose](): void;
|
|
2260
2279
|
state(): StateClient;
|
|
2261
2280
|
/**
|
|
2262
2281
|
* Load feature flags into the client
|
|
@@ -2272,6 +2291,7 @@ export class PlatformClient {
|
|
|
2272
2291
|
export class PureCrypto {
|
|
2273
2292
|
private constructor();
|
|
2274
2293
|
free(): void;
|
|
2294
|
+
[Symbol.dispose](): void;
|
|
2275
2295
|
/**
|
|
2276
2296
|
* DEPRECATED: Use `symmetric_decrypt_string` instead.
|
|
2277
2297
|
* Cleanup ticket: <https://bitwarden.atlassian.net/browse/PM-21247>
|
|
@@ -2387,6 +2407,7 @@ export class PureCrypto {
|
|
|
2387
2407
|
export class SendAccessClient {
|
|
2388
2408
|
private constructor();
|
|
2389
2409
|
free(): void;
|
|
2410
|
+
[Symbol.dispose](): void;
|
|
2390
2411
|
/**
|
|
2391
2412
|
* Requests a new send access token.
|
|
2392
2413
|
*/
|
|
@@ -2395,6 +2416,7 @@ export class SendAccessClient {
|
|
|
2395
2416
|
export class StateClient {
|
|
2396
2417
|
private constructor();
|
|
2397
2418
|
free(): void;
|
|
2419
|
+
[Symbol.dispose](): void;
|
|
2398
2420
|
register_cipher_repository(cipher_repository: any): void;
|
|
2399
2421
|
register_folder_repository(store: any): void;
|
|
2400
2422
|
register_client_managed_repositories(repositories: Repositories): void;
|
|
@@ -2406,6 +2428,7 @@ export class StateClient {
|
|
|
2406
2428
|
export class TotpClient {
|
|
2407
2429
|
private constructor();
|
|
2408
2430
|
free(): void;
|
|
2431
|
+
[Symbol.dispose](): void;
|
|
2409
2432
|
/**
|
|
2410
2433
|
* Generates a TOTP code from a provided key
|
|
2411
2434
|
*
|
|
@@ -2421,6 +2444,7 @@ export class TotpClient {
|
|
|
2421
2444
|
export class VaultClient {
|
|
2422
2445
|
private constructor();
|
|
2423
2446
|
free(): void;
|
|
2447
|
+
[Symbol.dispose](): void;
|
|
2424
2448
|
/**
|
|
2425
2449
|
* Attachment related operations.
|
|
2426
2450
|
*/
|