@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.
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{client-BCUfRZvU.d.mts → client-D4VYF0bP.d.mts} +105 -2
- package/dist/{client-C44dqakd.d.ts → client-Dw2uH1EM.d.ts} +105 -2
- package/dist/haex_bundle_bg.wasm +0 -0
- package/dist/index.d.mts +33 -6
- package/dist/index.d.ts +33 -6
- package/dist/index.js +57 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.mjs +1 -1
- package/dist/node.mjs.map +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/nuxt.js.map +1 -1
- package/dist/nuxt.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +54 -2
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +53 -1
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
- package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
- package/dist/runtime/nuxt.plugin.client.js +49 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +49 -0
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js +54 -2
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +53 -1
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-DoNvKiW_.d.mts → types-CYuW3glJ.d.mts} +5 -0
- package/dist/{types-DoNvKiW_.d.ts → types-CYuW3glJ.d.ts} +5 -0
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +54 -2
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +53 -1
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, D as DatabaseAPI,
|
|
3
|
-
import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-
|
|
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-
|
|
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-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, C as ConfirmOptions, a as ConnectionSecurity, D as DatabaseAPI,
|
|
3
|
-
import { h as SignedClaimPresentation, H as HaexHubConfig } from './types-
|
|
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-
|
|
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.
|
|
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.
|
|
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;
|