@haex-space/vault-sdk 4.1.0 → 4.3.0

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.
Files changed (55) hide show
  1. package/README.md +69 -0
  2. package/dist/cli/index.js +2 -1
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/cli/index.mjs +2 -1
  5. package/dist/cli/index.mjs.map +1 -1
  6. package/dist/{client-Cx4ZyQFL.d.mts → client-CDox5_KH.d.mts} +263 -27
  7. package/dist/{client-CD5QZi7F.d.ts → client-pppDo5Q3.d.ts} +263 -27
  8. package/dist/haex_bundle_bg.wasm +0 -0
  9. package/dist/index.d.mts +45 -6
  10. package/dist/index.d.ts +45 -6
  11. package/dist/index.js +363 -14
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +360 -15
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/node.d.mts +1 -1
  16. package/dist/node.d.ts +1 -1
  17. package/dist/node.js +2 -1
  18. package/dist/node.js.map +1 -1
  19. package/dist/node.mjs +2 -1
  20. package/dist/node.mjs.map +1 -1
  21. package/dist/nuxt.js +10 -2
  22. package/dist/nuxt.js.map +1 -1
  23. package/dist/nuxt.mjs +10 -2
  24. package/dist/nuxt.mjs.map +1 -1
  25. package/dist/react.d.mts +2 -2
  26. package/dist/react.d.ts +2 -2
  27. package/dist/react.js +339 -14
  28. package/dist/react.js.map +1 -1
  29. package/dist/react.mjs +339 -14
  30. package/dist/react.mjs.map +1 -1
  31. package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
  32. package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
  33. package/dist/runtime/nuxt.plugin.client.js +329 -14
  34. package/dist/runtime/nuxt.plugin.client.js.map +1 -1
  35. package/dist/runtime/nuxt.plugin.client.mjs +329 -14
  36. package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
  37. package/dist/svelte.d.mts +2 -2
  38. package/dist/svelte.d.ts +2 -2
  39. package/dist/svelte.js +339 -14
  40. package/dist/svelte.js.map +1 -1
  41. package/dist/svelte.mjs +339 -14
  42. package/dist/svelte.mjs.map +1 -1
  43. package/dist/{types-BwFKGH70.d.mts → types-DoNvKiW_.d.mts} +75 -1
  44. package/dist/{types-BwFKGH70.d.ts → types-DoNvKiW_.d.ts} +75 -1
  45. package/dist/vite.js +8 -1
  46. package/dist/vite.js.map +1 -1
  47. package/dist/vite.mjs +8 -1
  48. package/dist/vite.mjs.map +1 -1
  49. package/dist/vue.d.mts +2 -2
  50. package/dist/vue.d.ts +2 -2
  51. package/dist/vue.js +339 -14
  52. package/dist/vue.js.map +1 -1
  53. package/dist/vue.mjs +339 -14
  54. package/dist/vue.mjs.map +1 -1
  55. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { b as HaexHubEvent, c as EXTERNAL_EVENTS, D as DatabaseQueryResult, M as Migration, d as MigrationResult, W as WebRequestOptions, e as WebResponse, f as EventCallback, H as HaexHubConfig, E as ExtensionInfo, A as ApplicationContext, g as DatabasePermissionRequest, P as PermissionResponse, S as SearchResult, R as RequestOptions } from './types-BwFKGH70.mjs';
1
+ import { b as HaexHubEvent, c as EXTERNAL_EVENTS, D as DatabaseQueryResult, M as Migration, d as MigrationResult, W as WebRequestOptions, e as WebResponse, f as EventCallback, a as ExtensionManifest, H as HaexHubConfig, E as ExtensionInfo, A as ApplicationContext, g as DatabasePermissionRequest, P as PermissionResponse, S as SearchResult, R as RequestOptions } from './types-DoNvKiW_.mjs';
2
2
  import { SqliteRemoteDatabase } from 'drizzle-orm/sqlite-proxy';
3
3
 
4
4
  /**
@@ -545,20 +545,54 @@ interface S3PublicConfig {
545
545
  bucket: string;
546
546
  }
547
547
  /**
548
- * Storage backend info (public, without credentials)
548
+ * A storage the extension may use, as the host lists it: names only, never
549
+ * credentials, endpoint or region.
549
550
  */
550
551
  interface StorageBackendInfo {
551
552
  id: string;
552
553
  /** Backend type (e.g., "s3") */
553
554
  type: string;
555
+ /** Name of the storage */
554
556
  name: string;
555
- enabled: boolean;
556
- createdAt: string;
557
- /** Public config without secrets (endpoint, bucket, region) */
557
+ /** Name of the provider the user gave the connection (e.g., "Hetzner") */
558
+ providerName: string;
559
+ /** Bucket of the storage */
560
+ bucket: string;
561
+ /** @deprecated Not sent by hosts that keep credentials to themselves (holzi). */
562
+ enabled?: boolean;
563
+ /** @deprecated Not sent by hosts that keep credentials to themselves (holzi). */
564
+ createdAt?: string;
565
+ /** @deprecated Not sent by hosts that keep credentials to themselves (holzi). */
558
566
  config?: S3PublicConfig;
559
567
  }
560
568
  /**
561
- * S3-compatible backend configuration
569
+ * What an extension proposes for a new S3 storage. The host shows it to the
570
+ * user and asks for credentials in its own window; an extension never sends
571
+ * or sees them.
572
+ */
573
+ interface S3Proposal {
574
+ /** Custom endpoint URL (for non-AWS S3-compatible services); the host may ask for a permission for its host */
575
+ endpoint?: string;
576
+ /** Region; required unless `sameProviderAs` is given */
577
+ region?: string;
578
+ /** Bucket name */
579
+ bucket: string;
580
+ /** Use path-style URLs instead of virtual-hosted-style */
581
+ pathStyle?: boolean;
582
+ /** Credentials are entered by the host and are never accepted in a proposal. */
583
+ accessKeyId?: never;
584
+ /** Credentials are entered by the host and are never accepted in a proposal. */
585
+ secretAccessKey?: never;
586
+ /** Credentials are entered by the host and are never accepted in a proposal. */
587
+ sessionToken?: never;
588
+ }
589
+ /**
590
+ * S3-compatible backend configuration with credentials.
591
+ *
592
+ * @deprecated Credentials are entered in the host, never passed by an
593
+ * extension: holzi refuses a request that carries `accessKeyId`,
594
+ * `secretAccessKey` or `sessionToken`. Use {@link S3Proposal}. Removed in the
595
+ * next major version.
562
596
  */
563
597
  interface S3Config {
564
598
  /** Custom endpoint URL (for non-AWS S3-compatible services) */
@@ -567,37 +601,73 @@ interface S3Config {
567
601
  region: string;
568
602
  /** Bucket name */
569
603
  bucket: string;
570
- /** Access key ID */
571
- accessKeyId: string;
572
- /** Secret access key */
573
- secretAccessKey: string;
574
- /** Session token for temporary credentials (e.g., Supabase S3 with user JWT for RLS) */
604
+ /** @deprecated Entered in the host. */
605
+ accessKeyId?: string;
606
+ /** @deprecated Entered in the host. */
607
+ secretAccessKey?: string;
608
+ /** @deprecated Entered in the host. */
575
609
  sessionToken?: string;
576
610
  /** Use path-style URLs instead of virtual-hosted-style */
577
611
  pathStyle?: boolean;
578
612
  }
579
- /**
580
- * Request to add a new storage backend
581
- */
582
- interface AddBackendRequest {
583
- /** Display name for the backend */
613
+ interface AddBackendRequestBase {
614
+ /** Display name for the storage */
584
615
  name: string;
585
616
  /** Backend type (currently only "s3") */
586
617
  type: "s3";
587
- /** Configuration (structure depends on type) */
588
- config: S3Config | Record<string, unknown>;
589
618
  }
590
619
  /**
591
- * Request to update a storage backend
592
- * Only provided fields are updated. Credentials are preserved if not provided.
620
+ * Request to add a new storage on a new connection. The host asks the user to
621
+ * confirm it and enters credentials in its own window.
622
+ */
623
+ type AddBackendRequest = (AddBackendRequestBase & {
624
+ /** A credential-free proposal for a new connection; region is required. */
625
+ config: S3Proposal & {
626
+ region: string;
627
+ };
628
+ /** A new connection cannot reuse an existing provider. */
629
+ sameProviderAs?: never;
630
+ })
631
+ /**
632
+ * Request to add a bucket on an existing connection. Endpoint, region and
633
+ * addressing are taken from the referenced storage.
634
+ */
635
+ | (AddBackendRequestBase & {
636
+ /** With an existing provider, only the bucket may be proposed. */
637
+ config: {
638
+ bucket: string;
639
+ endpoint?: never;
640
+ region?: never;
641
+ pathStyle?: never;
642
+ accessKeyId?: never;
643
+ secretAccessKey?: never;
644
+ sessionToken?: never;
645
+ };
646
+ /** A storage the extension may read. */
647
+ sameProviderAs: string;
648
+ });
649
+ /**
650
+ * Request to change a storage. The host asks the user to confirm it; new
651
+ * credentials are entered only in the host's own window.
593
652
  */
594
653
  interface UpdateBackendRequest {
595
654
  /** Backend ID to update */
596
655
  backendId: string;
597
656
  /** New display name (optional) */
598
657
  name?: string;
599
- /** New configuration (optional) - only non-empty fields are updated */
600
- config?: Partial<S3Config> | Record<string, unknown>;
658
+ /**
659
+ * Only the bucket can be changed through the extension request. Credentials
660
+ * and connection details never cross the bridge.
661
+ */
662
+ config?: {
663
+ bucket?: string;
664
+ endpoint?: never;
665
+ region?: never;
666
+ pathStyle?: never;
667
+ accessKeyId?: never;
668
+ secretAccessKey?: never;
669
+ sessionToken?: never;
670
+ };
601
671
  }
602
672
  /**
603
673
  * Object info from list operation
@@ -672,14 +742,16 @@ declare class BackendManagement {
672
742
  */
673
743
  list(): Promise<StorageBackendInfo[]>;
674
744
  /**
675
- * Add a new storage backend
676
- * @param request - Backend configuration
745
+ * Propose a new storage. The host asks the user; credentials are entered
746
+ * only there. Resolves with the new storage, which the extension may then
747
+ * read and write.
748
+ * @param request - The proposal, without credentials
677
749
  * @returns Created backend info
678
750
  */
679
751
  add(request: AddBackendRequest): Promise<StorageBackendInfo>;
680
752
  /**
681
- * Update a storage backend
682
- * Only provided fields are updated. Credentials are preserved if not provided.
753
+ * Change a storage after the user confirms it in the host.
754
+ * Only provided fields are updated; new credentials are entered in the host.
683
755
  * @param request - Update request with backendId and fields to update
684
756
  * @returns Updated backend info
685
757
  */
@@ -696,6 +768,107 @@ declare class BackendManagement {
696
768
  test(backendId: string): Promise<void>;
697
769
  }
698
770
 
771
+ /** Access to an encrypted folder: `readWrite` includes `read`. */
772
+ type EncryptedFolderAccess = "read" | "readWrite";
773
+ /** The encrypted folder the user chose and granted access to. */
774
+ interface EncryptedFolderChoice {
775
+ /** Identifier of the folder, used in every further call (part of the permission target). */
776
+ folderId: string;
777
+ /** Name of the folder as the user sees it. */
778
+ name: string;
779
+ }
780
+ /** An entry of a folder inside an encrypted folder, with its decrypted name. */
781
+ interface EncryptedFolderEntry {
782
+ name: string;
783
+ kind: "file" | "folder";
784
+ /** Size of a file's decrypted content in bytes */
785
+ size?: number;
786
+ /** Last modification, in milliseconds since 1970-01-01 UTC */
787
+ modified?: number;
788
+ }
789
+ /**
790
+ * `details.kind` of a provider error (code {@link HostErrorCode.HTTP}, 2002):
791
+ * the kind of the provider's refusal, never its text.
792
+ */
793
+ type EncryptedFolderProviderErrorKind = "accessDenied" | "network" | "bucketMissing";
794
+ /**
795
+ * Encrypted folders in a remote storage.
796
+ *
797
+ * The host encrypts and decrypts: the extension sees names and decrypted
798
+ * bytes only. No function ever returns object keys, keys, sidecar files or
799
+ * the raw bytes stored at the provider.
800
+ *
801
+ * Access is the runtime-only permission kind `encryptedFolder` (target
802
+ * `<storageId>/<folderId>`, actions `read` and `readWrite`). It can never be
803
+ * declared in a manifest: the host refuses such a bundle. The user grants it
804
+ * in {@link EncryptedFoldersAPI.choose}, or the host asks when a call needs it;
805
+ * the SDK waits for the answer (1004) and retries like for every other kind.
806
+ *
807
+ * Errors (`{ code, message, details? }`, see {@link HostErrorCode}):
808
+ * - 1002 access denied, or no `remoteStorage` permission for the storage
809
+ * - 2002 provider error, `details.kind` is an {@link EncryptedFolderProviderErrorKind}
810
+ * - 3001 invalid `path` or unknown `folderId`
811
+ * - 3010 the entry is damaged ({@link HostErrorCode.ENCRYPTED_DATA_DAMAGED})
812
+ * - 7000 limit exceeded (data too large, run time)
813
+ *
814
+ * @example
815
+ * ```typescript
816
+ * const folder = await sdk.encryptedFolders.choose(storageId, "readWrite");
817
+ * if (folder) {
818
+ * await sdk.encryptedFolders.upload(storageId, folder.folderId, "notes/a.txt",
819
+ * new TextEncoder().encode("Hello"));
820
+ * const entries = await sdk.encryptedFolders.list(storageId, folder.folderId, "notes");
821
+ * const bytes = await sdk.encryptedFolders.download(storageId, folder.folderId, "notes/a.txt");
822
+ * }
823
+ * ```
824
+ */
825
+ declare class EncryptedFoldersAPI {
826
+ private client;
827
+ constructor(client: HaexVaultSdk);
828
+ /**
829
+ * Let the user choose one of the storage's encrypted folders and grant
830
+ * access to it. The host shows its own window and waits for the answer.
831
+ * Needs the `remoteStorage` permission for the storage (else 1002 without
832
+ * asking); 1002 as well when the user refuses.
833
+ * @param storageId - Storage the folder lies in
834
+ * @param access - Access the extension asks for
835
+ * @returns The chosen folder, or `null` when the user closed the chooser without choosing
836
+ */
837
+ choose(storageId: string, access: EncryptedFolderAccess): Promise<EncryptedFolderChoice | null>;
838
+ /**
839
+ * List a folder inside an encrypted folder (permission `read`).
840
+ * @param storageId - Storage the folder lies in
841
+ * @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
842
+ * @param path - Path relative to the encrypted folder; `''` (default) for its root
843
+ * @returns The entries with their decrypted names
844
+ */
845
+ list(storageId: string, folderId: string, path?: string): Promise<EncryptedFolderEntry[]>;
846
+ /**
847
+ * Download and decrypt a file (permission `read`).
848
+ * @param storageId - Storage the folder lies in
849
+ * @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
850
+ * @param path - Path of the file, relative to the encrypted folder
851
+ * @returns The decrypted content
852
+ */
853
+ download(storageId: string, folderId: string, path: string): Promise<Uint8Array>;
854
+ /**
855
+ * Encrypt and upload a file (permission `readWrite`). Missing parent
856
+ * folders are created.
857
+ * @param storageId - Storage the folder lies in
858
+ * @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
859
+ * @param path - Path of the file, relative to the encrypted folder
860
+ * @param data - Content of the file
861
+ */
862
+ upload(storageId: string, folderId: string, path: string, data: Uint8Array): Promise<void>;
863
+ /**
864
+ * Delete a file or folder (permission `readWrite`).
865
+ * @param storageId - Storage the folder lies in
866
+ * @param folderId - Folder from {@link EncryptedFoldersAPI.choose}
867
+ * @param path - Path relative to the encrypted folder
868
+ */
869
+ delete(storageId: string, folderId: string, path: string): Promise<void>;
870
+ }
871
+
699
872
  /**
700
873
  * Device type classification (for UI icons)
701
874
  */
@@ -1643,6 +1816,64 @@ declare class DialogAPI {
1643
1816
  confirm(options: ConfirmOptions): Promise<boolean>;
1644
1817
  }
1645
1818
 
1819
+ /**
1820
+ * A minimal MCP server for the tools an extension offers to the agent of its host (holzi spec 018,
1821
+ * `contracts/mcp-port.md`). It speaks the part of MCP a host needs to list and call tools:
1822
+ * `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call` and
1823
+ * `notifications/cancelled`; every other request is answered with "method not found". It sends no
1824
+ * request of its own, so it never asks the host for anything.
1825
+ *
1826
+ * Titles, descriptions and schemas come from the signed manifest; the extension's code only names a
1827
+ * handler per tool. A tool runs only when it is declared and has a handler, and only with input
1828
+ * that fits its schema.
1829
+ */
1830
+
1831
+ type JsonRpcMessage = Record<string, unknown>;
1832
+ /** What a handler gets besides its input. */
1833
+ interface ToolContext {
1834
+ /** Aborted when the host cancels the call, for example because the user stopped the turn. */
1835
+ signal: AbortSignal;
1836
+ }
1837
+ /**
1838
+ * Runs one tool. A string is returned as text, anything else as JSON text; a thrown error becomes
1839
+ * a tool error the agent sees.
1840
+ */
1841
+ type ToolHandler = (input: Record<string, unknown>, context: ToolContext) => unknown | Promise<unknown>;
1842
+
1843
+ /**
1844
+ * `sdk.tools`: tools an extension offers to the agent of its host (holzi spec 018). Each tool is
1845
+ * declared in the signed manifest (`tools`) with its title, description, input schema and effect;
1846
+ * the extension's code only registers the function that runs it:
1847
+ *
1848
+ * ```ts
1849
+ * sdk.tools.register("count_unread", async (input, { signal }) => countUnread(input.role, signal));
1850
+ * ```
1851
+ *
1852
+ * The host lists and calls the tools over MCP on the extension's port (`ToolsServer`). A call runs
1853
+ * only for a declared tool with input that fits its schema; the host's approval of the call
1854
+ * follows the declared effect.
1855
+ */
1856
+
1857
+ interface ToolsApiOptions {
1858
+ /** The manifest the SDK was built with; its `tools` are what may be registered. */
1859
+ manifest: () => ExtensionManifest | undefined;
1860
+ /** Sends one MCP message to the host on the extension's port. */
1861
+ send: (message: JsonRpcMessage) => void;
1862
+ }
1863
+ declare class ToolsAPI {
1864
+ private readonly options;
1865
+ private readonly handlers;
1866
+ private readonly server;
1867
+ constructor(options: ToolsApiOptions);
1868
+ /**
1869
+ * Runs `handler` when the host calls the tool `name`. The tool must be declared in the manifest.
1870
+ * Returns a function that unregisters the handler; the host then no longer sees the tool.
1871
+ */
1872
+ register(name: string, handler: ToolHandler): () => void;
1873
+ /** Handles one MCP message from the host. Called by the SDK for `haexspace:mcp` port messages. */
1874
+ receive(message: unknown): Promise<void>;
1875
+ }
1876
+
1646
1877
  /**
1647
1878
  * HaexVault Client
1648
1879
  *
@@ -1683,6 +1914,7 @@ declare class HaexVaultSdk {
1683
1914
  readonly web: WebAPI;
1684
1915
  readonly permissions: PermissionsAPI;
1685
1916
  readonly remoteStorage: RemoteStorageAPI;
1917
+ readonly encryptedFolders: EncryptedFoldersAPI;
1686
1918
  readonly localsend: LocalSendAPI;
1687
1919
  readonly spaces: SpacesAPI;
1688
1920
  readonly shell: ShellAPI;
@@ -1691,6 +1923,8 @@ declare class HaexVaultSdk {
1691
1923
  readonly notifications: NotificationsAPI;
1692
1924
  readonly tab: TabAPI;
1693
1925
  readonly dialog: DialogAPI;
1926
+ /** Tools the extension offers to the agent of its host (holzi spec 018). */
1927
+ readonly tools: ToolsAPI;
1694
1928
  /** Unified action system - register handlers that work for both Bridge and AI requests */
1695
1929
  readonly actions: {
1696
1930
  register: (action: string, handler: ExternalRequestHandler) => (() => void);
@@ -1732,6 +1966,8 @@ declare class HaexVaultSdk {
1732
1966
  private initNative;
1733
1967
  private initIframe;
1734
1968
  private handleEvent;
1969
+ /** Sends one MCP message of the tool connection to the host on the port. */
1970
+ private sendMcpMessage;
1735
1971
  private handleExternalRequestInternal;
1736
1972
  private handleActionRequestInternal;
1737
1973
  private runSetupAsync;
@@ -1739,4 +1975,4 @@ declare class HaexVaultSdk {
1739
1975
  private log;
1740
1976
  }
1741
1977
 
1742
- export { PasswordsAPI as $, type AuthorizedClient as A, type BlockedClient as B, type ConfirmOptions as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type MailMessage as G, HaexVaultSdk as H, type ImapConfig as I, type MailNewMessagesEvent as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type MailboxInfo as N, type MessageEnvelope as O, type NotificationAction as P, type NotificationClickEvent as Q, type NotificationOptions as R, StorageAPI as S, NotificationsAPI as T, type OutgoingAttachment as U, type OutgoingMessage as V, type PasswordInput as W, type PasswordItemFull as X, type PasswordItemSummary as Y, type PasswordKeyValue as Z, type PasswordKeyValueInput as _, type ConnectionSecurity as a, type PendingAuthorization as a0, type PendingTransfer as a1, PermissionsAPI as a2, type AddBackendRequest as a3, type S3Config as a4, type S3PublicConfig as a5, RemoteStorageAPI as a6, type StorageBackendInfo as a7, type StorageObjectInfo as a8, type UpdateBackendRequest as a9, canExternalClientSendRequests as aA, isExternalClientConnected as aB, type RequestedExtension as aa, type SelectFileOptions as ab, type SelectFolderOptions as ac, type ServerInfo as ad, type ServerStatus as ae, type SessionAuthorization as af, type SharedSpace as ag, ShellAPI as ah, type ShellCreateOptions as ai, type ShellCreateResponse as aj, type ShellExitEvent as ak, type ShellOutputEvent as al, type SmtpConfig as am, type SpaceAccessTokenInfo as an, type SpaceAssignment as ao, type SpaceInvite as ap, type SpaceKeyGrantInfo as aq, type SpaceMember as ar, type SpaceMemberInfo as as, SpacesAPI as at, type SyncBackendInfo as au, TabAPI as av, type TransferDirection as aw, type TransferProgress as ax, type TransferState as ay, WebAPI as az, type DecryptedSpace as b, type DeepLink as c, type Device as d, type DeviceInfo as e, type DeviceType as f, DialogAPI as g, type DirEntry as h, type ExternalConnection as i, ExternalConnectionErrorCode as j, ExternalConnectionState as k, type ExternalRequest as l, type ExternalRequestEvent as m, type ExternalRequestHandler as n, type ExternalRequestPayload as o, type ExternalResponse as p, FilesystemAPI as q, type KnownPaths as r, LocalSendAPI as s, type LocalSendEvent as t, type FileInfo as u, type LocalSendSettings as v, type MailAccount as w, type MailAddress as x, type Attachment as y, type FetchRange as z };
1978
+ export { type PasswordInput as $, type AuthorizedClient as A, type BlockedClient as B, type ConfirmOptions as C, DatabaseAPI as D, type EncryptedFolderAccess as E, type FileStat as F, type LocalSendSettings as G, HaexVaultSdk as H, type ImapConfig as I, type MailAccount as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type MailAddress as N, type Attachment as O, type FetchRange as P, type MailMessage as Q, type MailNewMessagesEvent as R, StorageAPI as S, type MailboxInfo as T, type MessageEnvelope as U, type NotificationAction as V, type NotificationClickEvent as W, type NotificationOptions as X, NotificationsAPI as Y, type OutgoingAttachment as Z, type OutgoingMessage as _, type ConnectionSecurity as a, type PasswordItemFull as a0, type PasswordItemSummary as a1, type PasswordKeyValue as a2, type PasswordKeyValueInput as a3, PasswordsAPI as a4, type PendingAuthorization as a5, type PendingTransfer as a6, PermissionsAPI as a7, type AddBackendRequest as a8, type S3Config as a9, type SyncBackendInfo as aA, TabAPI as aB, type ToolContext as aC, type ToolHandler as aD, ToolsAPI as aE, type TransferDirection as aF, type TransferProgress as aG, type TransferState as aH, WebAPI as aI, canExternalClientSendRequests as aJ, isExternalClientConnected as aK, type S3Proposal as aa, type S3PublicConfig as ab, RemoteStorageAPI as ac, type StorageBackendInfo as ad, type StorageObjectInfo as ae, type UpdateBackendRequest as af, type RequestedExtension as ag, type SelectFileOptions as ah, type SelectFolderOptions as ai, type ServerInfo as aj, type ServerStatus as ak, type SessionAuthorization as al, type SharedSpace as am, ShellAPI as an, type ShellCreateOptions as ao, type ShellCreateResponse as ap, type ShellExitEvent as aq, type ShellOutputEvent as ar, type SmtpConfig as as, type SpaceAccessTokenInfo as at, type SpaceAssignment as au, type SpaceInvite as av, type SpaceKeyGrantInfo as aw, type SpaceMember as ax, type SpaceMemberInfo as ay, SpacesAPI as az, type DecryptedSpace as b, type DeepLink as c, type Device as d, type DeviceInfo as e, type DeviceType as f, DialogAPI as g, type DirEntry as h, type EncryptedFolderChoice as i, type EncryptedFolderEntry as j, type EncryptedFolderProviderErrorKind as k, EncryptedFoldersAPI as l, type ExternalAuthDecision as m, type ExternalConnection as n, ExternalConnectionErrorCode as o, ExternalConnectionState as p, type ExternalRequest as q, type ExternalRequestEvent as r, type ExternalRequestHandler as s, type ExternalRequestPayload as t, type ExternalResponse as u, FilesystemAPI as v, type KnownPaths as w, LocalSendAPI as x, type LocalSendEvent as y, type FileInfo as z };