@haex-space/vault-sdk 4.4.0 → 4.5.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 (44) hide show
  1. package/dist/cli/index.mjs.map +1 -1
  2. package/dist/{client-BCUfRZvU.d.mts → client-D4VYF0bP.d.mts} +105 -2
  3. package/dist/{client-C44dqakd.d.ts → client-Dw2uH1EM.d.ts} +105 -2
  4. package/dist/haex_bundle_bg.wasm +0 -0
  5. package/dist/index.d.mts +33 -6
  6. package/dist/index.d.ts +33 -6
  7. package/dist/index.js +57 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +55 -2
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/node.d.mts +1 -1
  12. package/dist/node.d.ts +1 -1
  13. package/dist/node.mjs +1 -1
  14. package/dist/node.mjs.map +1 -1
  15. package/dist/nuxt.js +1 -1
  16. package/dist/nuxt.js.map +1 -1
  17. package/dist/nuxt.mjs.map +1 -1
  18. package/dist/react.d.mts +2 -2
  19. package/dist/react.d.ts +2 -2
  20. package/dist/react.js +54 -2
  21. package/dist/react.js.map +1 -1
  22. package/dist/react.mjs +53 -1
  23. package/dist/react.mjs.map +1 -1
  24. package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
  25. package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
  26. package/dist/runtime/nuxt.plugin.client.js +49 -0
  27. package/dist/runtime/nuxt.plugin.client.js.map +1 -1
  28. package/dist/runtime/nuxt.plugin.client.mjs +49 -0
  29. package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
  30. package/dist/svelte.d.mts +2 -2
  31. package/dist/svelte.d.ts +2 -2
  32. package/dist/svelte.js +54 -2
  33. package/dist/svelte.js.map +1 -1
  34. package/dist/svelte.mjs +53 -1
  35. package/dist/svelte.mjs.map +1 -1
  36. package/dist/{types-DoNvKiW_.d.mts → types-CYuW3glJ.d.mts} +5 -0
  37. package/dist/{types-DoNvKiW_.d.ts → types-CYuW3glJ.d.ts} +5 -0
  38. package/dist/vue.d.mts +2 -2
  39. package/dist/vue.d.ts +2 -2
  40. package/dist/vue.js +54 -2
  41. package/dist/vue.js.map +1 -1
  42. package/dist/vue.mjs +53 -1
  43. package/dist/vue.mjs.map +1 -1
  44. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk } from './client-BCUfRZvU.mjs';
2
- export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, D as DatabaseAPI, b as DecryptedSpace, c as DeepLink, d as Device, e as DeviceInfo, f as DeviceType, g as DialogAPI, h as DirEntry, E as EncryptedFolderAccess, i as EncryptedFolderChoice, j as EncryptedFolderEntry, k as EncryptedFolderProviderErrorKind, l as EncryptedFoldersAPI, m as ExternalAuthDecision, n as ExternalConnection, o as ExternalConnectionErrorCode, p as ExternalConnectionState, q as ExternalRequest, r as ExternalRequestEvent, s as ExternalRequestHandler, t as ExternalRequestPayload, u as ExternalResponse, F as FileStat, v as FilesystemAPI, I as ImapConfig, K as KnownPath, w as KnownPaths, L as LOCALSEND_EVENTS, x as LocalSendAPI, y as LocalSendEvent, z as LocalSendFileInfo, G as LocalSendSettings, M as MailAPI, J as MailAccount, N as MailAddress, O as MailAttachment, P as MailFetchRange, Q as MailMessage, R as MailNewMessagesEvent, T as MailboxInfo, U as MessageEnvelope, V as NotificationAction, W as NotificationClickEvent, X as NotificationOptions, Y as NotificationsAPI, Z as OutgoingAttachment, _ as OutgoingMessage, $ as PasswordInput, a0 as PasswordItemFull, a1 as PasswordItemSummary, a2 as PasswordKeyValue, a3 as PasswordKeyValueInput, a4 as PasswordsAPI, a5 as PendingAuthorization, a6 as PendingTransfer, a7 as PermissionsAPI, a8 as RemoteAddBackendRequest, a9 as RemoteFolderBackendInfo, aa as RemoteS3BackendInfo, ab as RemoteS3Config, ac as RemoteS3Proposal, ad as RemoteS3PublicConfig, ae as RemoteSftpProposal, af as RemoteStorageAPI, ag as RemoteStorageBackendInfo, ah as RemoteStorageBackendType, ai as RemoteStorageObjectInfo, aj as RemoteUpdateBackendRequest, ak as RemoteWebDavProposal, al as RequestedExtension, am as SelectFileOptions, an as SelectFolderOptions, ao as ServerInfo, ap as ServerStatus, aq as SessionAuthorization, ar as SharedSpace, as as ShellAPI, at as ShellCreateOptions, au as ShellCreateResponse, av as ShellExitEvent, aw as ShellOutputEvent, ax as SmtpConfig, ay as SpaceAccessTokenInfo, az as SpaceAssignment, aA as SpaceInvite, aB as SpaceKeyGrantInfo, aC as SpaceMember, aD as SpaceMemberInfo, aE as SpacesAPI, aF as SyncBackendInfo, aG as TabAPI, aH as ToolContext, aI as ToolHandler, aJ as ToolsAPI, aK as TransferDirection, aL as TransferProgress, aM as TransferState, aN as WebAPI, aO as canExternalClientSendRequests, aP as isExternalClientConnected } from './client-BCUfRZvU.mjs';
3
- import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-DoNvKiW_.mjs';
4
- export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, E as ExtensionInfo, a as ExtensionManifest, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, B as HostErrorCode, I as IdentityClaim, G as MAIL_EVENTS, J as MailEvent, K as ManifestI18nEntry, L as ManifestTool, N as ManifestToolEffect, O as NOTIFICATION_EVENTS, Q as NotificationEvent, T as PermissionDeniedError, U as PermissionErrorBase, V as PermissionErrorCode, X as PermissionPromptError, P as PermissionResponse, Y as PermissionStatus, R as RequestOptions, Z as SHELL_EVENTS, _ as SearchQuery, $ as SearchRequestEvent, S as SearchResult, a0 as ShellEvent, a1 as SyncTablesUpdatedEvent, a2 as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, a3 as getTableName, a4 as isPermissionDeniedError, a5 as isPermissionError, a6 as isPermissionPromptError } from './types-DoNvKiW_.mjs';
1
+ import { H as HaexVaultSdk } from './client-D4VYF0bP.mjs';
2
+ export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, b as ContactDetail, c as ContactHolziAddresses, d as ContactHolziDevice, e as ContactList, f as ContactListOptions, g as ContactSummary, h as ContactValue, i as ContactsAPI, D as DatabaseAPI, j as DecryptedSpace, k as DeepLink, l as Device, m as DeviceInfo, n as DeviceType, o as DialogAPI, p as DirEntry, E as EncryptedFolderAccess, q as EncryptedFolderChoice, r as EncryptedFolderEntry, s as EncryptedFolderProviderErrorKind, t as EncryptedFoldersAPI, u as ExternalAuthDecision, v as ExternalConnection, w as ExternalConnectionErrorCode, x as ExternalConnectionState, y as ExternalRequest, z as ExternalRequestEvent, F as ExternalRequestHandler, G as ExternalRequestPayload, I as ExternalResponse, J as FileStat, K as FilesystemAPI, L as ImapConfig, M as KnownPath, N as KnownPaths, O as LOCALSEND_EVENTS, P as LocalSendAPI, Q as LocalSendEvent, R as LocalSendFileInfo, T as LocalSendSettings, U as MailAPI, V as MailAccount, W as MailAddress, X as MailAttachment, Y as MailFetchRange, Z as MailMessage, _ as MailNewMessagesEvent, $ as MailboxInfo, a0 as MessageEnvelope, a1 as NotificationAction, a2 as NotificationClickEvent, a3 as NotificationOptions, a4 as NotificationsAPI, a5 as OutgoingAttachment, a6 as OutgoingMessage, a7 as PasswordInput, a8 as PasswordItemFull, a9 as PasswordItemSummary, aa as PasswordKeyValue, ab as PasswordKeyValueInput, ac as PasswordsAPI, ad as PendingAuthorization, ae as PendingTransfer, af as PermissionsAPI, ag as RemoteAddBackendRequest, ah as RemoteFolderBackendInfo, ai as RemoteS3BackendInfo, aj as RemoteS3Config, ak as RemoteS3Proposal, al as RemoteS3PublicConfig, am as RemoteSftpProposal, an as RemoteStorageAPI, ao as RemoteStorageBackendInfo, ap as RemoteStorageBackendType, aq as RemoteStorageObjectInfo, ar as RemoteUpdateBackendRequest, as as RemoteWebDavProposal, at as RequestedExtension, au as SelectFileOptions, av as SelectFolderOptions, aw as ServerInfo, ax as ServerStatus, ay as SessionAuthorization, az as SharedSpace, aA as ShellAPI, aB as ShellCreateOptions, aC as ShellCreateResponse, aD as ShellExitEvent, aE as ShellOutputEvent, aF as SmtpConfig, aG as SpaceAccessTokenInfo, aH as SpaceAssignment, aI as SpaceInvite, aJ as SpaceKeyGrantInfo, aK as SpaceMember, aL as SpaceMemberInfo, aM as SpacesAPI, aN as SyncBackendInfo, aO as TabAPI, aP as ToolContext, aQ as ToolHandler, aR as ToolsAPI, aS as TransferDirection, aT as TransferProgress, aU as TransferState, aV as WebAPI, aW as canExternalClientSendRequests, aX as isExternalClientConnected } from './client-D4VYF0bP.mjs';
3
+ import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-CYuW3glJ.mjs';
4
+ export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, E as ExtensionInfo, a as ExtensionManifest, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, B as HostErrorCode, I as IdentityClaim, G as MAIL_EVENTS, J as MailEvent, K as ManifestI18nEntry, L as ManifestTool, N as ManifestToolEffect, O as NOTIFICATION_EVENTS, Q as NotificationEvent, T as PermissionDeniedError, U as PermissionErrorBase, V as PermissionErrorCode, X as PermissionPromptError, P as PermissionResponse, Y as PermissionStatus, R as RequestOptions, Z as SHELL_EVENTS, _ as SearchQuery, $ as SearchRequestEvent, S as SearchResult, a0 as ShellEvent, a1 as SyncTablesUpdatedEvent, a2 as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, a3 as getTableName, a4 as isPermissionDeniedError, a5 as isPermissionError, a6 as isPermissionPromptError } from './types-CYuW3glJ.mjs';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
6
6
  import 'drizzle-orm/sqlite-proxy';
7
7
 
@@ -129,6 +129,27 @@ declare const PASSWORD_COMMANDS: {
129
129
  };
130
130
  type PasswordCommand = (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS];
131
131
 
132
+ /**
133
+ * Contacts Commands
134
+ *
135
+ * Commands for the host's address book. Extensions only read; they are scoped
136
+ * by their `contacts` permissions (`action` = `read`, `target` = a group name
137
+ * or "*").
138
+ *
139
+ * Naming convention: `extension_contacts_<action>`
140
+ */
141
+ declare const CONTACT_COMMANDS: {
142
+ /** Contacts in scope, a page at a time, optionally of one group */
143
+ readonly list: "extension_contacts_list";
144
+ /** One contact with all its values, by id */
145
+ readonly read: "extension_contacts_read";
146
+ /** Contacts in scope whose name, organization, phone or e-mail matches */
147
+ readonly search: "extension_contacts_search";
148
+ /** The JPEG of a contact's photo, by its hash */
149
+ readonly photo: "extension_contacts_photo";
150
+ };
151
+ type ContactCommand = (typeof CONTACT_COMMANDS)[keyof typeof CONTACT_COMMANDS];
152
+
132
153
  /**
133
154
  * Mail Commands (IMAP fetch + SMTP send).
134
155
  *
@@ -839,6 +860,12 @@ declare const TAURI_COMMANDS: {
839
860
  readonly update: "extension_password_update";
840
861
  readonly delete: "extension_password_delete";
841
862
  };
863
+ readonly contacts: {
864
+ readonly list: "extension_contacts_list";
865
+ readonly read: "extension_contacts_read";
866
+ readonly search: "extension_contacts_search";
867
+ readonly photo: "extension_contacts_photo";
868
+ };
842
869
  readonly mail: {
843
870
  readonly listMailboxes: "extension_mail_list_mailboxes";
844
871
  readonly fetchEnvelopes: "extension_mail_fetch_envelopes";
@@ -857,7 +884,7 @@ declare const TAURI_COMMANDS: {
857
884
  readonly dismiss: "extension_notifications_dismiss";
858
885
  };
859
886
  };
860
- type TauriCommand = (typeof DATABASE_COMMANDS)[keyof typeof DATABASE_COMMANDS] | (typeof PERMISSIONS_COMMANDS)[keyof typeof PERMISSIONS_COMMANDS] | (typeof WEB_COMMANDS)[keyof typeof WEB_COMMANDS] | (typeof WEB_STORAGE_COMMANDS)[keyof typeof WEB_STORAGE_COMMANDS] | (typeof FILESYSTEM_COMMANDS)[keyof typeof FILESYSTEM_COMMANDS] | (typeof EXTERNAL_BRIDGE_COMMANDS)[keyof typeof EXTERNAL_BRIDGE_COMMANDS] | (typeof EXTENSION_COMMANDS)[keyof typeof EXTENSION_COMMANDS] | (typeof REMOTE_STORAGE_COMMANDS)[keyof typeof REMOTE_STORAGE_COMMANDS] | (typeof ENCRYPTED_FOLDER_COMMANDS)[keyof typeof ENCRYPTED_FOLDER_COMMANDS] | (typeof LOCALSEND_COMMANDS)[keyof typeof LOCALSEND_COMMANDS] | (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS] | (typeof SHELL_COMMANDS)[keyof typeof SHELL_COMMANDS] | (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS] | (typeof MAIL_COMMANDS)[keyof typeof MAIL_COMMANDS] | (typeof NOTIFICATION_COMMANDS)[keyof typeof NOTIFICATION_COMMANDS];
887
+ type TauriCommand = (typeof DATABASE_COMMANDS)[keyof typeof DATABASE_COMMANDS] | (typeof PERMISSIONS_COMMANDS)[keyof typeof PERMISSIONS_COMMANDS] | (typeof WEB_COMMANDS)[keyof typeof WEB_COMMANDS] | (typeof WEB_STORAGE_COMMANDS)[keyof typeof WEB_STORAGE_COMMANDS] | (typeof FILESYSTEM_COMMANDS)[keyof typeof FILESYSTEM_COMMANDS] | (typeof EXTERNAL_BRIDGE_COMMANDS)[keyof typeof EXTERNAL_BRIDGE_COMMANDS] | (typeof EXTENSION_COMMANDS)[keyof typeof EXTENSION_COMMANDS] | (typeof REMOTE_STORAGE_COMMANDS)[keyof typeof REMOTE_STORAGE_COMMANDS] | (typeof ENCRYPTED_FOLDER_COMMANDS)[keyof typeof ENCRYPTED_FOLDER_COMMANDS] | (typeof LOCALSEND_COMMANDS)[keyof typeof LOCALSEND_COMMANDS] | (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS] | (typeof SHELL_COMMANDS)[keyof typeof SHELL_COMMANDS] | (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS] | (typeof CONTACT_COMMANDS)[keyof typeof CONTACT_COMMANDS] | (typeof MAIL_COMMANDS)[keyof typeof MAIL_COMMANDS] | (typeof NOTIFICATION_COMMANDS)[keyof typeof NOTIFICATION_COMMANDS];
861
888
 
862
889
  /**
863
890
  * Crypto utilities for Vault Key Management
@@ -1124,4 +1151,4 @@ declare function exportKeyPairAsync(keyPair: PasskeyKeyPair): Promise<ExportedPa
1124
1151
 
1125
1152
  declare function createHaexVaultSdk(config?: HaexHubConfig): HaexVaultSdk;
1126
1153
 
1127
- export { type AuthUser, COSE_ALGORITHM, type CoseAlgorithm, type CreateSpaceRequest, ENCRYPTED_FOLDER_COMMANDS, type EncryptedFolderCommand, type ExportedPasskeyKeyPair, type ExportedUserKeypair, HAEXSPACE_MESSAGE_TYPES, HaexHubConfig, HaexVaultSdk, type HaexspaceMessageType, type InviteMemberRequest, KEY_AGREEMENT_ALGO, MAIL_COMMANDS, type MailCommand, NOTIFICATION_COMMANDS, type NotificationCommand, PASSWORD_COMMANDS, type PasskeyKeyPair, type PasswordCommand, type RegisterKeypairRequest, SIGNING_ALGO, SPACE_COMMANDS, type SealedData, type SignableRecord, SignedClaimPresentation, type SpaceCommand, type StorageConfig, type ErrorResponse as SyncServerErrorResponse, type ServerInfo as SyncServerInfo, type LoginRequest as SyncServerLoginRequest, type LoginResponse as SyncServerLoginResponse, type RefreshRequest as SyncServerRefreshRequest, TAURI_COMMANDS, type TauriCommand, type UserKeypair, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, unwrapKey, verifyClaimPresentationAsync, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
1154
+ export { type AuthUser, CONTACT_COMMANDS, COSE_ALGORITHM, type ContactCommand, type CoseAlgorithm, type CreateSpaceRequest, ENCRYPTED_FOLDER_COMMANDS, type EncryptedFolderCommand, type ExportedPasskeyKeyPair, type ExportedUserKeypair, HAEXSPACE_MESSAGE_TYPES, HaexHubConfig, HaexVaultSdk, type HaexspaceMessageType, type InviteMemberRequest, KEY_AGREEMENT_ALGO, MAIL_COMMANDS, type MailCommand, NOTIFICATION_COMMANDS, type NotificationCommand, PASSWORD_COMMANDS, type PasskeyKeyPair, type PasswordCommand, type RegisterKeypairRequest, SIGNING_ALGO, SPACE_COMMANDS, type SealedData, type SignableRecord, SignedClaimPresentation, type SpaceCommand, type StorageConfig, type ErrorResponse as SyncServerErrorResponse, type ServerInfo as SyncServerInfo, type LoginRequest as SyncServerLoginRequest, type LoginResponse as SyncServerLoginResponse, type RefreshRequest as SyncServerRefreshRequest, TAURI_COMMANDS, type TauriCommand, type UserKeypair, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, unwrapKey, verifyClaimPresentationAsync, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk } from './client-C44dqakd.js';
2
- export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, D as DatabaseAPI, b as DecryptedSpace, c as DeepLink, d as Device, e as DeviceInfo, f as DeviceType, g as DialogAPI, h as DirEntry, E as EncryptedFolderAccess, i as EncryptedFolderChoice, j as EncryptedFolderEntry, k as EncryptedFolderProviderErrorKind, l as EncryptedFoldersAPI, m as ExternalAuthDecision, n as ExternalConnection, o as ExternalConnectionErrorCode, p as ExternalConnectionState, q as ExternalRequest, r as ExternalRequestEvent, s as ExternalRequestHandler, t as ExternalRequestPayload, u as ExternalResponse, F as FileStat, v as FilesystemAPI, I as ImapConfig, K as KnownPath, w as KnownPaths, L as LOCALSEND_EVENTS, x as LocalSendAPI, y as LocalSendEvent, z as LocalSendFileInfo, G as LocalSendSettings, M as MailAPI, J as MailAccount, N as MailAddress, O as MailAttachment, P as MailFetchRange, Q as MailMessage, R as MailNewMessagesEvent, T as MailboxInfo, U as MessageEnvelope, V as NotificationAction, W as NotificationClickEvent, X as NotificationOptions, Y as NotificationsAPI, Z as OutgoingAttachment, _ as OutgoingMessage, $ as PasswordInput, a0 as PasswordItemFull, a1 as PasswordItemSummary, a2 as PasswordKeyValue, a3 as PasswordKeyValueInput, a4 as PasswordsAPI, a5 as PendingAuthorization, a6 as PendingTransfer, a7 as PermissionsAPI, a8 as RemoteAddBackendRequest, a9 as RemoteFolderBackendInfo, aa as RemoteS3BackendInfo, ab as RemoteS3Config, ac as RemoteS3Proposal, ad as RemoteS3PublicConfig, ae as RemoteSftpProposal, af as RemoteStorageAPI, ag as RemoteStorageBackendInfo, ah as RemoteStorageBackendType, ai as RemoteStorageObjectInfo, aj as RemoteUpdateBackendRequest, ak as RemoteWebDavProposal, al as RequestedExtension, am as SelectFileOptions, an as SelectFolderOptions, ao as ServerInfo, ap as ServerStatus, aq as SessionAuthorization, ar as SharedSpace, as as ShellAPI, at as ShellCreateOptions, au as ShellCreateResponse, av as ShellExitEvent, aw as ShellOutputEvent, ax as SmtpConfig, ay as SpaceAccessTokenInfo, az as SpaceAssignment, aA as SpaceInvite, aB as SpaceKeyGrantInfo, aC as SpaceMember, aD as SpaceMemberInfo, aE as SpacesAPI, aF as SyncBackendInfo, aG as TabAPI, aH as ToolContext, aI as ToolHandler, aJ as ToolsAPI, aK as TransferDirection, aL as TransferProgress, aM as TransferState, aN as WebAPI, aO as canExternalClientSendRequests, aP as isExternalClientConnected } from './client-C44dqakd.js';
3
- import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-DoNvKiW_.js';
4
- export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, E as ExtensionInfo, a as ExtensionManifest, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, B as HostErrorCode, I as IdentityClaim, G as MAIL_EVENTS, J as MailEvent, K as ManifestI18nEntry, L as ManifestTool, N as ManifestToolEffect, O as NOTIFICATION_EVENTS, Q as NotificationEvent, T as PermissionDeniedError, U as PermissionErrorBase, V as PermissionErrorCode, X as PermissionPromptError, P as PermissionResponse, Y as PermissionStatus, R as RequestOptions, Z as SHELL_EVENTS, _ as SearchQuery, $ as SearchRequestEvent, S as SearchResult, a0 as ShellEvent, a1 as SyncTablesUpdatedEvent, a2 as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, a3 as getTableName, a4 as isPermissionDeniedError, a5 as isPermissionError, a6 as isPermissionPromptError } from './types-DoNvKiW_.js';
1
+ import { H as HaexVaultSdk } from './client-Dw2uH1EM.js';
2
+ export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, b as ContactDetail, c as ContactHolziAddresses, d as ContactHolziDevice, e as ContactList, f as ContactListOptions, g as ContactSummary, h as ContactValue, i as ContactsAPI, D as DatabaseAPI, j as DecryptedSpace, k as DeepLink, l as Device, m as DeviceInfo, n as DeviceType, o as DialogAPI, p as DirEntry, E as EncryptedFolderAccess, q as EncryptedFolderChoice, r as EncryptedFolderEntry, s as EncryptedFolderProviderErrorKind, t as EncryptedFoldersAPI, u as ExternalAuthDecision, v as ExternalConnection, w as ExternalConnectionErrorCode, x as ExternalConnectionState, y as ExternalRequest, z as ExternalRequestEvent, F as ExternalRequestHandler, G as ExternalRequestPayload, I as ExternalResponse, J as FileStat, K as FilesystemAPI, L as ImapConfig, M as KnownPath, N as KnownPaths, O as LOCALSEND_EVENTS, P as LocalSendAPI, Q as LocalSendEvent, R as LocalSendFileInfo, T as LocalSendSettings, U as MailAPI, V as MailAccount, W as MailAddress, X as MailAttachment, Y as MailFetchRange, Z as MailMessage, _ as MailNewMessagesEvent, $ as MailboxInfo, a0 as MessageEnvelope, a1 as NotificationAction, a2 as NotificationClickEvent, a3 as NotificationOptions, a4 as NotificationsAPI, a5 as OutgoingAttachment, a6 as OutgoingMessage, a7 as PasswordInput, a8 as PasswordItemFull, a9 as PasswordItemSummary, aa as PasswordKeyValue, ab as PasswordKeyValueInput, ac as PasswordsAPI, ad as PendingAuthorization, ae as PendingTransfer, af as PermissionsAPI, ag as RemoteAddBackendRequest, ah as RemoteFolderBackendInfo, ai as RemoteS3BackendInfo, aj as RemoteS3Config, ak as RemoteS3Proposal, al as RemoteS3PublicConfig, am as RemoteSftpProposal, an as RemoteStorageAPI, ao as RemoteStorageBackendInfo, ap as RemoteStorageBackendType, aq as RemoteStorageObjectInfo, ar as RemoteUpdateBackendRequest, as as RemoteWebDavProposal, at as RequestedExtension, au as SelectFileOptions, av as SelectFolderOptions, aw as ServerInfo, ax as ServerStatus, ay as SessionAuthorization, az as SharedSpace, aA as ShellAPI, aB as ShellCreateOptions, aC as ShellCreateResponse, aD as ShellExitEvent, aE as ShellOutputEvent, aF as SmtpConfig, aG as SpaceAccessTokenInfo, aH as SpaceAssignment, aI as SpaceInvite, aJ as SpaceKeyGrantInfo, aK as SpaceMember, aL as SpaceMemberInfo, aM as SpacesAPI, aN as SyncBackendInfo, aO as TabAPI, aP as ToolContext, aQ as ToolHandler, aR as ToolsAPI, aS as TransferDirection, aT as TransferProgress, aU as TransferState, aV as WebAPI, aW as canExternalClientSendRequests, aX as isExternalClientConnected } from './client-Dw2uH1EM.js';
3
+ import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-CYuW3glJ.js';
4
+ export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, E as ExtensionInfo, a as ExtensionManifest, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, B as HostErrorCode, I as IdentityClaim, G as MAIL_EVENTS, J as MailEvent, K as ManifestI18nEntry, L as ManifestTool, N as ManifestToolEffect, O as NOTIFICATION_EVENTS, Q as NotificationEvent, T as PermissionDeniedError, U as PermissionErrorBase, V as PermissionErrorCode, X as PermissionPromptError, P as PermissionResponse, Y as PermissionStatus, R as RequestOptions, Z as SHELL_EVENTS, _ as SearchQuery, $ as SearchRequestEvent, S as SearchResult, a0 as ShellEvent, a1 as SyncTablesUpdatedEvent, a2 as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, a3 as getTableName, a4 as isPermissionDeniedError, a5 as isPermissionError, a6 as isPermissionPromptError } from './types-CYuW3glJ.js';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.js';
6
6
  import 'drizzle-orm/sqlite-proxy';
7
7
 
@@ -129,6 +129,27 @@ declare const PASSWORD_COMMANDS: {
129
129
  };
130
130
  type PasswordCommand = (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS];
131
131
 
132
+ /**
133
+ * Contacts Commands
134
+ *
135
+ * Commands for the host's address book. Extensions only read; they are scoped
136
+ * by their `contacts` permissions (`action` = `read`, `target` = a group name
137
+ * or "*").
138
+ *
139
+ * Naming convention: `extension_contacts_<action>`
140
+ */
141
+ declare const CONTACT_COMMANDS: {
142
+ /** Contacts in scope, a page at a time, optionally of one group */
143
+ readonly list: "extension_contacts_list";
144
+ /** One contact with all its values, by id */
145
+ readonly read: "extension_contacts_read";
146
+ /** Contacts in scope whose name, organization, phone or e-mail matches */
147
+ readonly search: "extension_contacts_search";
148
+ /** The JPEG of a contact's photo, by its hash */
149
+ readonly photo: "extension_contacts_photo";
150
+ };
151
+ type ContactCommand = (typeof CONTACT_COMMANDS)[keyof typeof CONTACT_COMMANDS];
152
+
132
153
  /**
133
154
  * Mail Commands (IMAP fetch + SMTP send).
134
155
  *
@@ -839,6 +860,12 @@ declare const TAURI_COMMANDS: {
839
860
  readonly update: "extension_password_update";
840
861
  readonly delete: "extension_password_delete";
841
862
  };
863
+ readonly contacts: {
864
+ readonly list: "extension_contacts_list";
865
+ readonly read: "extension_contacts_read";
866
+ readonly search: "extension_contacts_search";
867
+ readonly photo: "extension_contacts_photo";
868
+ };
842
869
  readonly mail: {
843
870
  readonly listMailboxes: "extension_mail_list_mailboxes";
844
871
  readonly fetchEnvelopes: "extension_mail_fetch_envelopes";
@@ -857,7 +884,7 @@ declare const TAURI_COMMANDS: {
857
884
  readonly dismiss: "extension_notifications_dismiss";
858
885
  };
859
886
  };
860
- type TauriCommand = (typeof DATABASE_COMMANDS)[keyof typeof DATABASE_COMMANDS] | (typeof PERMISSIONS_COMMANDS)[keyof typeof PERMISSIONS_COMMANDS] | (typeof WEB_COMMANDS)[keyof typeof WEB_COMMANDS] | (typeof WEB_STORAGE_COMMANDS)[keyof typeof WEB_STORAGE_COMMANDS] | (typeof FILESYSTEM_COMMANDS)[keyof typeof FILESYSTEM_COMMANDS] | (typeof EXTERNAL_BRIDGE_COMMANDS)[keyof typeof EXTERNAL_BRIDGE_COMMANDS] | (typeof EXTENSION_COMMANDS)[keyof typeof EXTENSION_COMMANDS] | (typeof REMOTE_STORAGE_COMMANDS)[keyof typeof REMOTE_STORAGE_COMMANDS] | (typeof ENCRYPTED_FOLDER_COMMANDS)[keyof typeof ENCRYPTED_FOLDER_COMMANDS] | (typeof LOCALSEND_COMMANDS)[keyof typeof LOCALSEND_COMMANDS] | (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS] | (typeof SHELL_COMMANDS)[keyof typeof SHELL_COMMANDS] | (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS] | (typeof MAIL_COMMANDS)[keyof typeof MAIL_COMMANDS] | (typeof NOTIFICATION_COMMANDS)[keyof typeof NOTIFICATION_COMMANDS];
887
+ type TauriCommand = (typeof DATABASE_COMMANDS)[keyof typeof DATABASE_COMMANDS] | (typeof PERMISSIONS_COMMANDS)[keyof typeof PERMISSIONS_COMMANDS] | (typeof WEB_COMMANDS)[keyof typeof WEB_COMMANDS] | (typeof WEB_STORAGE_COMMANDS)[keyof typeof WEB_STORAGE_COMMANDS] | (typeof FILESYSTEM_COMMANDS)[keyof typeof FILESYSTEM_COMMANDS] | (typeof EXTERNAL_BRIDGE_COMMANDS)[keyof typeof EXTERNAL_BRIDGE_COMMANDS] | (typeof EXTENSION_COMMANDS)[keyof typeof EXTENSION_COMMANDS] | (typeof REMOTE_STORAGE_COMMANDS)[keyof typeof REMOTE_STORAGE_COMMANDS] | (typeof ENCRYPTED_FOLDER_COMMANDS)[keyof typeof ENCRYPTED_FOLDER_COMMANDS] | (typeof LOCALSEND_COMMANDS)[keyof typeof LOCALSEND_COMMANDS] | (typeof SPACE_COMMANDS)[keyof typeof SPACE_COMMANDS] | (typeof SHELL_COMMANDS)[keyof typeof SHELL_COMMANDS] | (typeof PASSWORD_COMMANDS)[keyof typeof PASSWORD_COMMANDS] | (typeof CONTACT_COMMANDS)[keyof typeof CONTACT_COMMANDS] | (typeof MAIL_COMMANDS)[keyof typeof MAIL_COMMANDS] | (typeof NOTIFICATION_COMMANDS)[keyof typeof NOTIFICATION_COMMANDS];
861
888
 
862
889
  /**
863
890
  * Crypto utilities for Vault Key Management
@@ -1124,4 +1151,4 @@ declare function exportKeyPairAsync(keyPair: PasskeyKeyPair): Promise<ExportedPa
1124
1151
 
1125
1152
  declare function createHaexVaultSdk(config?: HaexHubConfig): HaexVaultSdk;
1126
1153
 
1127
- export { type AuthUser, COSE_ALGORITHM, type CoseAlgorithm, type CreateSpaceRequest, ENCRYPTED_FOLDER_COMMANDS, type EncryptedFolderCommand, type ExportedPasskeyKeyPair, type ExportedUserKeypair, HAEXSPACE_MESSAGE_TYPES, HaexHubConfig, HaexVaultSdk, type HaexspaceMessageType, type InviteMemberRequest, KEY_AGREEMENT_ALGO, MAIL_COMMANDS, type MailCommand, NOTIFICATION_COMMANDS, type NotificationCommand, PASSWORD_COMMANDS, type PasskeyKeyPair, type PasswordCommand, type RegisterKeypairRequest, SIGNING_ALGO, SPACE_COMMANDS, type SealedData, type SignableRecord, SignedClaimPresentation, type SpaceCommand, type StorageConfig, type ErrorResponse as SyncServerErrorResponse, type ServerInfo as SyncServerInfo, type LoginRequest as SyncServerLoginRequest, type LoginResponse as SyncServerLoginResponse, type RefreshRequest as SyncServerRefreshRequest, TAURI_COMMANDS, type TauriCommand, type UserKeypair, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, unwrapKey, verifyClaimPresentationAsync, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
1154
+ export { type AuthUser, CONTACT_COMMANDS, COSE_ALGORITHM, type ContactCommand, type CoseAlgorithm, type CreateSpaceRequest, ENCRYPTED_FOLDER_COMMANDS, type EncryptedFolderCommand, type ExportedPasskeyKeyPair, type ExportedUserKeypair, HAEXSPACE_MESSAGE_TYPES, HaexHubConfig, HaexVaultSdk, type HaexspaceMessageType, type InviteMemberRequest, KEY_AGREEMENT_ALGO, MAIL_COMMANDS, type MailCommand, NOTIFICATION_COMMANDS, type NotificationCommand, PASSWORD_COMMANDS, type PasskeyKeyPair, type PasswordCommand, type RegisterKeypairRequest, SIGNING_ALGO, SPACE_COMMANDS, type SealedData, type SignableRecord, SignedClaimPresentation, type SpaceCommand, type StorageConfig, type ErrorResponse as SyncServerErrorResponse, type ServerInfo as SyncServerInfo, type LoginRequest as SyncServerLoginRequest, type LoginResponse as SyncServerLoginResponse, type RefreshRequest as SyncServerRefreshRequest, TAURI_COMMANDS, type TauriCommand, type UserKeypair, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, unwrapKey, verifyClaimPresentationAsync, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
package/dist/index.js CHANGED
@@ -12,9 +12,9 @@ var __export = (target, all) => {
12
12
  __defProp(target, name, { get: all[name], enumerable: true });
13
13
  };
14
14
 
15
- // node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.29_typescript@6.0.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
15
+ // node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.30_typescript@6.0.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
16
16
  var init_cjs_shims = __esm({
17
- "node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.29_typescript@6.0.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js"() {
17
+ "node_modules/.pnpm/tsup@8.5.1_jiti@2.7.0_postcss@8.5.30_typescript@6.0.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js"() {
18
18
  }
19
19
  });
20
20
 
@@ -1175,6 +1175,19 @@ var PASSWORD_COMMANDS = {
1175
1175
  delete: "extension_password_delete"
1176
1176
  };
1177
1177
 
1178
+ // src/commands/contacts.ts
1179
+ init_cjs_shims();
1180
+ var CONTACT_COMMANDS = {
1181
+ /** Contacts in scope, a page at a time, optionally of one group */
1182
+ list: "extension_contacts_list",
1183
+ /** One contact with all its values, by id */
1184
+ read: "extension_contacts_read",
1185
+ /** Contacts in scope whose name, organization, phone or e-mail matches */
1186
+ search: "extension_contacts_search",
1187
+ /** The JPEG of a contact's photo, by its hash */
1188
+ photo: "extension_contacts_photo"
1189
+ };
1190
+
1178
1191
  // src/commands/mail.ts
1179
1192
  init_cjs_shims();
1180
1193
  var MAIL_COMMANDS = {
@@ -1226,6 +1239,7 @@ var TAURI_COMMANDS = {
1226
1239
  spaces: SPACE_COMMANDS,
1227
1240
  shell: SHELL_COMMANDS,
1228
1241
  passwords: PASSWORD_COMMANDS,
1242
+ contacts: CONTACT_COMMANDS,
1229
1243
  mail: MAIL_COMMANDS,
1230
1244
  notifications: NOTIFICATION_COMMANDS
1231
1245
  };
@@ -2364,6 +2378,44 @@ var PasswordsAPI = class {
2364
2378
  }
2365
2379
  };
2366
2380
 
2381
+ // src/api/contacts.ts
2382
+ init_cjs_shims();
2383
+ init_vaultKey();
2384
+ var ContactsAPI = class {
2385
+ constructor(client) {
2386
+ this.client = client;
2387
+ }
2388
+ /** One page of the contacts in scope, optionally of one group. */
2389
+ async listAsync(options = {}) {
2390
+ return this.client.request(CONTACT_COMMANDS.list, {
2391
+ ...options
2392
+ });
2393
+ }
2394
+ /** One contact with all its values. */
2395
+ async readAsync(id) {
2396
+ return this.client.request(CONTACT_COMMANDS.read, { id });
2397
+ }
2398
+ /**
2399
+ * The contacts in scope whose name, organization, phone number or e-mail
2400
+ * address contains `query`, regardless of case and accents. The host's
2401
+ * default limit is 20, its maximum 200.
2402
+ */
2403
+ async searchAsync(query, limit) {
2404
+ const answer = await this.client.request(
2405
+ CONTACT_COMMANDS.search,
2406
+ limit === void 0 ? { query } : { query, limit }
2407
+ );
2408
+ return answer.contacts;
2409
+ }
2410
+ /** The JPEG of a photo a readable contact uses, by its hash. */
2411
+ async photoAsync(hash) {
2412
+ const base64 = await this.client.request(CONTACT_COMMANDS.photo, {
2413
+ hash
2414
+ });
2415
+ return base64ToArrayBuffer(base64);
2416
+ }
2417
+ };
2418
+
2367
2419
  // src/api/mail.ts
2368
2420
  init_cjs_shims();
2369
2421
  var MailAPI = class {
@@ -3430,6 +3482,7 @@ var HaexVaultSdk = class {
3430
3482
  this.spaces = new SpacesAPI(this);
3431
3483
  this.shell = new ShellAPI(this);
3432
3484
  this.passwords = new PasswordsAPI(this);
3485
+ this.contacts = new ContactsAPI(this);
3433
3486
  this.mail = new MailAPI(this);
3434
3487
  this.notifications = new NotificationsAPI(this);
3435
3488
  this.tab = new TabAPI(this);
@@ -4299,7 +4352,9 @@ function createHaexVaultSdk(config = {}) {
4299
4352
  return new HaexVaultSdk(config);
4300
4353
  }
4301
4354
 
4355
+ exports.CONTACT_COMMANDS = CONTACT_COMMANDS;
4302
4356
  exports.COSE_ALGORITHM = COSE_ALGORITHM;
4357
+ exports.ContactsAPI = ContactsAPI;
4303
4358
  exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
4304
4359
  exports.DatabaseAPI = DatabaseAPI;
4305
4360
  exports.DialogAPI = DialogAPI;