@bitwarden/commercial-sdk-internal 0.2.0-main.373 → 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.
@@ -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
  */
@@ -1879,6 +1882,7 @@ export class BitwardenClient {
1879
1882
  export class CipherRiskClient {
1880
1883
  private constructor();
1881
1884
  free(): void;
1885
+ [Symbol.dispose](): void;
1882
1886
  /**
1883
1887
  * Build password reuse map for a list of login ciphers.
1884
1888
  *
@@ -1919,6 +1923,7 @@ export class CipherRiskClient {
1919
1923
  export class CiphersClient {
1920
1924
  private constructor();
1921
1925
  free(): void;
1926
+ [Symbol.dispose](): void;
1922
1927
  /**
1923
1928
  * Create a new [Cipher] and save it to the server.
1924
1929
  */
@@ -1984,6 +1989,7 @@ export class CiphersClient {
1984
1989
  export class CollectionViewNodeItem {
1985
1990
  private constructor();
1986
1991
  free(): void;
1992
+ [Symbol.dispose](): void;
1987
1993
  get_item(): CollectionView;
1988
1994
  get_parent(): CollectionView | undefined;
1989
1995
  get_children(): CollectionView[];
@@ -1992,6 +1998,7 @@ export class CollectionViewNodeItem {
1992
1998
  export class CollectionViewTree {
1993
1999
  private constructor();
1994
2000
  free(): void;
2001
+ [Symbol.dispose](): void;
1995
2002
  get_item_for_view(collection_view: CollectionView): CollectionViewNodeItem | undefined;
1996
2003
  get_root_items(): CollectionViewNodeItem[];
1997
2004
  get_flat_items(): CollectionViewNodeItem[];
@@ -1999,6 +2006,7 @@ export class CollectionViewTree {
1999
2006
  export class CollectionsClient {
2000
2007
  private constructor();
2001
2008
  free(): void;
2009
+ [Symbol.dispose](): void;
2002
2010
  decrypt(collection: Collection): CollectionView;
2003
2011
  decrypt_list(collections: Collection[]): CollectionView[];
2004
2012
  /**
@@ -2014,6 +2022,7 @@ export class CollectionsClient {
2014
2022
  export class CommercialPasswordManagerClient {
2015
2023
  private constructor();
2016
2024
  free(): void;
2025
+ [Symbol.dispose](): void;
2017
2026
  /**
2018
2027
  * Vault item operations
2019
2028
  */
@@ -2022,6 +2031,7 @@ export class CommercialPasswordManagerClient {
2022
2031
  export class CommercialVaultClient {
2023
2032
  private constructor();
2024
2033
  free(): void;
2034
+ [Symbol.dispose](): void;
2025
2035
  }
2026
2036
  /**
2027
2037
  * A client for the crypto operations.
@@ -2029,6 +2039,7 @@ export class CommercialVaultClient {
2029
2039
  export class CryptoClient {
2030
2040
  private constructor();
2031
2041
  free(): void;
2042
+ [Symbol.dispose](): void;
2032
2043
  /**
2033
2044
  * Initialization method for the user crypto. Needs to be called before any other crypto
2034
2045
  * operations.
@@ -2085,6 +2096,7 @@ export class CryptoClient {
2085
2096
  export class ExporterClient {
2086
2097
  private constructor();
2087
2098
  free(): void;
2099
+ [Symbol.dispose](): void;
2088
2100
  export_vault(folders: Folder[], ciphers: Cipher[], format: ExportFormat): string;
2089
2101
  export_organization_vault(
2090
2102
  collections: Collection[],
@@ -2116,6 +2128,7 @@ export class ExporterClient {
2116
2128
  export class FoldersClient {
2117
2129
  private constructor();
2118
2130
  free(): void;
2131
+ [Symbol.dispose](): void;
2119
2132
  /**
2120
2133
  * Encrypt a [FolderView] to a [Folder].
2121
2134
  */
@@ -2148,6 +2161,7 @@ export class FoldersClient {
2148
2161
  export class GeneratorClient {
2149
2162
  private constructor();
2150
2163
  free(): void;
2164
+ [Symbol.dispose](): void;
2151
2165
  /**
2152
2166
  * Generates a random password.
2153
2167
  *
@@ -2207,9 +2221,11 @@ export class GeneratorClient {
2207
2221
  export class IdentityClient {
2208
2222
  private constructor();
2209
2223
  free(): void;
2224
+ [Symbol.dispose](): void;
2210
2225
  }
2211
2226
  export class IncomingMessage {
2212
2227
  free(): void;
2228
+ [Symbol.dispose](): void;
2213
2229
  constructor(payload: Uint8Array, destination: Endpoint, source: Endpoint, topic?: string | null);
2214
2230
  /**
2215
2231
  * Try to parse the payload as JSON.
@@ -2228,6 +2244,7 @@ export class IncomingMessage {
2228
2244
  */
2229
2245
  export class IpcClient {
2230
2246
  free(): void;
2247
+ [Symbol.dispose](): void;
2231
2248
  constructor(communication_provider: IpcCommunicationBackend);
2232
2249
  start(): Promise<void>;
2233
2250
  isRunning(): Promise<boolean>;
@@ -2241,6 +2258,7 @@ export class IpcClient {
2241
2258
  export class IpcClientSubscription {
2242
2259
  private constructor();
2243
2260
  free(): void;
2261
+ [Symbol.dispose](): void;
2244
2262
  receive(abort_signal?: AbortSignal | null): Promise<IncomingMessage>;
2245
2263
  }
2246
2264
  /**
@@ -2248,6 +2266,7 @@ export class IpcClientSubscription {
2248
2266
  */
2249
2267
  export class IpcCommunicationBackend {
2250
2268
  free(): void;
2269
+ [Symbol.dispose](): void;
2251
2270
  /**
2252
2271
  * Creates a new instance of the JavaScript communication backend.
2253
2272
  */
@@ -2259,6 +2278,7 @@ export class IpcCommunicationBackend {
2259
2278
  }
2260
2279
  export class OutgoingMessage {
2261
2280
  free(): void;
2281
+ [Symbol.dispose](): void;
2262
2282
  constructor(payload: Uint8Array, destination: Endpoint, topic?: string | null);
2263
2283
  /**
2264
2284
  * Create a new message and encode the payload as JSON.
@@ -2276,6 +2296,7 @@ export class OutgoingMessage {
2276
2296
  export class PlatformClient {
2277
2297
  private constructor();
2278
2298
  free(): void;
2299
+ [Symbol.dispose](): void;
2279
2300
  state(): StateClient;
2280
2301
  /**
2281
2302
  * Load feature flags into the client
@@ -2291,6 +2312,7 @@ export class PlatformClient {
2291
2312
  export class PureCrypto {
2292
2313
  private constructor();
2293
2314
  free(): void;
2315
+ [Symbol.dispose](): void;
2294
2316
  /**
2295
2317
  * DEPRECATED: Use `symmetric_decrypt_string` instead.
2296
2318
  * Cleanup ticket: <https://bitwarden.atlassian.net/browse/PM-21247>
@@ -2406,6 +2428,7 @@ export class PureCrypto {
2406
2428
  export class SendAccessClient {
2407
2429
  private constructor();
2408
2430
  free(): void;
2431
+ [Symbol.dispose](): void;
2409
2432
  /**
2410
2433
  * Requests a new send access token.
2411
2434
  */
@@ -2414,6 +2437,7 @@ export class SendAccessClient {
2414
2437
  export class StateClient {
2415
2438
  private constructor();
2416
2439
  free(): void;
2440
+ [Symbol.dispose](): void;
2417
2441
  register_cipher_repository(cipher_repository: any): void;
2418
2442
  register_folder_repository(store: any): void;
2419
2443
  register_client_managed_repositories(repositories: Repositories): void;
@@ -2425,6 +2449,7 @@ export class StateClient {
2425
2449
  export class TotpClient {
2426
2450
  private constructor();
2427
2451
  free(): void;
2452
+ [Symbol.dispose](): void;
2428
2453
  /**
2429
2454
  * Generates a TOTP code from a provided key
2430
2455
  *
@@ -2440,6 +2465,7 @@ export class TotpClient {
2440
2465
  export class VaultClient {
2441
2466
  private constructor();
2442
2467
  free(): void;
2468
+ [Symbol.dispose](): void;
2443
2469
  /**
2444
2470
  * Attachment related operations.
2445
2471
  */