@haex-space/vault-sdk 3.6.0 → 3.7.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/{client-uuhuCPDu.d.ts → client-DH4Km77u.d.ts} +16 -1
- package/dist/{client-DnCZ3KyI.d.mts → client-Dn4AbXbT.d.mts} +16 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +9 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +9 -0
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +9 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +9 -0
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +9 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +9 -0
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +9 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +9 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -983,6 +983,14 @@ interface SpaceMemberInfo {
|
|
|
983
983
|
invitedBy: string | null;
|
|
984
984
|
joinedAt: string;
|
|
985
985
|
}
|
|
986
|
+
interface SpaceMember {
|
|
987
|
+
/** DID of this member (did:key:z...) */
|
|
988
|
+
did: string;
|
|
989
|
+
/** Display label (identity name) */
|
|
990
|
+
label: string;
|
|
991
|
+
/** True if this member is one of the current vault's own identities */
|
|
992
|
+
isSelf: boolean;
|
|
993
|
+
}
|
|
986
994
|
interface SpaceKeyGrantInfo {
|
|
987
995
|
spaceId: string;
|
|
988
996
|
generation: number;
|
|
@@ -1047,6 +1055,8 @@ interface SpaceAssignment {
|
|
|
1047
1055
|
type?: string;
|
|
1048
1056
|
/** Optional display label (e.g. "Personal", "Team Q1") */
|
|
1049
1057
|
label?: string;
|
|
1058
|
+
/** DID of the member who created this assignment (did:key:z...). Undefined for local/legacy rows. */
|
|
1059
|
+
authoredByDid?: string;
|
|
1050
1060
|
}
|
|
1051
1061
|
/**
|
|
1052
1062
|
* Spaces API for managing row-to-space assignments.
|
|
@@ -1113,6 +1123,11 @@ declare class SpacesAPI {
|
|
|
1113
1123
|
* Returns spaces with decrypted names (decryption happens vault-side).
|
|
1114
1124
|
*/
|
|
1115
1125
|
listSpacesAsync(): Promise<DecryptedSpace[]>;
|
|
1126
|
+
/**
|
|
1127
|
+
* List members of a shared space (DID + label), flagging the current user.
|
|
1128
|
+
* Used to resolve assignment authors to names and to detect own vs shared-in content.
|
|
1129
|
+
*/
|
|
1130
|
+
getMembersAsync(spaceId: string): Promise<SpaceMember[]>;
|
|
1116
1131
|
}
|
|
1117
1132
|
|
|
1118
1133
|
interface ShellCreateOptions {
|
|
@@ -1660,4 +1675,4 @@ declare class HaexVaultSdk {
|
|
|
1660
1675
|
private log;
|
|
1661
1676
|
}
|
|
1662
1677
|
|
|
1663
|
-
export { type PendingTransfer as $, type AuthorizedClient as A, type BlockedClient as B, type ConnectionSecurity as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type MailboxInfo as G, HaexVaultSdk as H, type ImapConfig as I, type MessageEnvelope as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type NotificationAction as N, type NotificationClickEvent as O, type NotificationOptions as P, NotificationsAPI as Q, type OutgoingAttachment as R, StorageAPI as S, type OutgoingMessage as T, type PasswordInput as U, type PasswordItemFull as V, type PasswordItemSummary as W, type PasswordKeyValue as X, type PasswordKeyValueInput as Y, PasswordsAPI as Z, type PendingAuthorization as _, type DecryptedSpace as a, PermissionsAPI as a0, type AddBackendRequest as a1, type S3Config as a2, type S3PublicConfig as a3, RemoteStorageAPI as a4, type StorageBackendInfo as a5, type StorageObjectInfo as a6, type UpdateBackendRequest as a7, type RequestedExtension as a8, type SelectFileOptions as a9, type SelectFolderOptions as aa, type ServerInfo as ab, type ServerStatus as ac, type SessionAuthorization as ad, type SharedSpace as ae, ShellAPI as af, type ShellCreateOptions as ag, type ShellCreateResponse as ah, type ShellExitEvent as ai, type ShellOutputEvent as aj, type SmtpConfig as ak, type SpaceAccessTokenInfo as al, type SpaceAssignment as am, type SpaceInvite as an, type SpaceKeyGrantInfo as ao, type
|
|
1678
|
+
export { type PendingTransfer as $, type AuthorizedClient as A, type BlockedClient as B, type ConnectionSecurity as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type MailboxInfo as G, HaexVaultSdk as H, type ImapConfig as I, type MessageEnvelope as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type NotificationAction as N, type NotificationClickEvent as O, type NotificationOptions as P, NotificationsAPI as Q, type OutgoingAttachment as R, StorageAPI as S, type OutgoingMessage as T, type PasswordInput as U, type PasswordItemFull as V, type PasswordItemSummary as W, type PasswordKeyValue as X, type PasswordKeyValueInput as Y, PasswordsAPI as Z, type PendingAuthorization as _, type DecryptedSpace as a, PermissionsAPI as a0, type AddBackendRequest as a1, type S3Config as a2, type S3PublicConfig as a3, RemoteStorageAPI as a4, type StorageBackendInfo as a5, type StorageObjectInfo as a6, type UpdateBackendRequest as a7, type RequestedExtension as a8, type SelectFileOptions as a9, type SelectFolderOptions as aa, type ServerInfo as ab, type ServerStatus as ac, type SessionAuthorization as ad, type SharedSpace as ae, ShellAPI as af, type ShellCreateOptions as ag, type ShellCreateResponse as ah, type ShellExitEvent as ai, type ShellOutputEvent as aj, type SmtpConfig as ak, type SpaceAccessTokenInfo as al, type SpaceAssignment as am, type SpaceInvite as an, type SpaceKeyGrantInfo as ao, type SpaceMember as ap, type SpaceMemberInfo as aq, SpacesAPI as ar, type SyncBackendInfo as as, type TransferDirection as at, type TransferProgress as au, type TransferState as av, WebAPI as aw, canExternalClientSendRequests as ax, isExternalClientConnected as ay, type DeepLink as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, type KnownPaths as p, LocalSendAPI as q, type LocalSendEvent as r, type FileInfo as s, type LocalSendSettings as t, type MailAccount as u, type MailAddress as v, type Attachment as w, type FetchRange as x, type MailMessage as y, type MailNewMessagesEvent as z };
|
|
@@ -983,6 +983,14 @@ interface SpaceMemberInfo {
|
|
|
983
983
|
invitedBy: string | null;
|
|
984
984
|
joinedAt: string;
|
|
985
985
|
}
|
|
986
|
+
interface SpaceMember {
|
|
987
|
+
/** DID of this member (did:key:z...) */
|
|
988
|
+
did: string;
|
|
989
|
+
/** Display label (identity name) */
|
|
990
|
+
label: string;
|
|
991
|
+
/** True if this member is one of the current vault's own identities */
|
|
992
|
+
isSelf: boolean;
|
|
993
|
+
}
|
|
986
994
|
interface SpaceKeyGrantInfo {
|
|
987
995
|
spaceId: string;
|
|
988
996
|
generation: number;
|
|
@@ -1047,6 +1055,8 @@ interface SpaceAssignment {
|
|
|
1047
1055
|
type?: string;
|
|
1048
1056
|
/** Optional display label (e.g. "Personal", "Team Q1") */
|
|
1049
1057
|
label?: string;
|
|
1058
|
+
/** DID of the member who created this assignment (did:key:z...). Undefined for local/legacy rows. */
|
|
1059
|
+
authoredByDid?: string;
|
|
1050
1060
|
}
|
|
1051
1061
|
/**
|
|
1052
1062
|
* Spaces API for managing row-to-space assignments.
|
|
@@ -1113,6 +1123,11 @@ declare class SpacesAPI {
|
|
|
1113
1123
|
* Returns spaces with decrypted names (decryption happens vault-side).
|
|
1114
1124
|
*/
|
|
1115
1125
|
listSpacesAsync(): Promise<DecryptedSpace[]>;
|
|
1126
|
+
/**
|
|
1127
|
+
* List members of a shared space (DID + label), flagging the current user.
|
|
1128
|
+
* Used to resolve assignment authors to names and to detect own vs shared-in content.
|
|
1129
|
+
*/
|
|
1130
|
+
getMembersAsync(spaceId: string): Promise<SpaceMember[]>;
|
|
1116
1131
|
}
|
|
1117
1132
|
|
|
1118
1133
|
interface ShellCreateOptions {
|
|
@@ -1660,4 +1675,4 @@ declare class HaexVaultSdk {
|
|
|
1660
1675
|
private log;
|
|
1661
1676
|
}
|
|
1662
1677
|
|
|
1663
|
-
export { type PendingTransfer as $, type AuthorizedClient as A, type BlockedClient as B, type ConnectionSecurity as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type MailboxInfo as G, HaexVaultSdk as H, type ImapConfig as I, type MessageEnvelope as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type NotificationAction as N, type NotificationClickEvent as O, type NotificationOptions as P, NotificationsAPI as Q, type OutgoingAttachment as R, StorageAPI as S, type OutgoingMessage as T, type PasswordInput as U, type PasswordItemFull as V, type PasswordItemSummary as W, type PasswordKeyValue as X, type PasswordKeyValueInput as Y, PasswordsAPI as Z, type PendingAuthorization as _, type DecryptedSpace as a, PermissionsAPI as a0, type AddBackendRequest as a1, type S3Config as a2, type S3PublicConfig as a3, RemoteStorageAPI as a4, type StorageBackendInfo as a5, type StorageObjectInfo as a6, type UpdateBackendRequest as a7, type RequestedExtension as a8, type SelectFileOptions as a9, type SelectFolderOptions as aa, type ServerInfo as ab, type ServerStatus as ac, type SessionAuthorization as ad, type SharedSpace as ae, ShellAPI as af, type ShellCreateOptions as ag, type ShellCreateResponse as ah, type ShellExitEvent as ai, type ShellOutputEvent as aj, type SmtpConfig as ak, type SpaceAccessTokenInfo as al, type SpaceAssignment as am, type SpaceInvite as an, type SpaceKeyGrantInfo as ao, type
|
|
1678
|
+
export { type PendingTransfer as $, type AuthorizedClient as A, type BlockedClient as B, type ConnectionSecurity as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type MailboxInfo as G, HaexVaultSdk as H, type ImapConfig as I, type MessageEnvelope as J, KnownPath as K, LOCALSEND_EVENTS as L, MailAPI as M, type NotificationAction as N, type NotificationClickEvent as O, type NotificationOptions as P, NotificationsAPI as Q, type OutgoingAttachment as R, StorageAPI as S, type OutgoingMessage as T, type PasswordInput as U, type PasswordItemFull as V, type PasswordItemSummary as W, type PasswordKeyValue as X, type PasswordKeyValueInput as Y, PasswordsAPI as Z, type PendingAuthorization as _, type DecryptedSpace as a, PermissionsAPI as a0, type AddBackendRequest as a1, type S3Config as a2, type S3PublicConfig as a3, RemoteStorageAPI as a4, type StorageBackendInfo as a5, type StorageObjectInfo as a6, type UpdateBackendRequest as a7, type RequestedExtension as a8, type SelectFileOptions as a9, type SelectFolderOptions as aa, type ServerInfo as ab, type ServerStatus as ac, type SessionAuthorization as ad, type SharedSpace as ae, ShellAPI as af, type ShellCreateOptions as ag, type ShellCreateResponse as ah, type ShellExitEvent as ai, type ShellOutputEvent as aj, type SmtpConfig as ak, type SpaceAccessTokenInfo as al, type SpaceAssignment as am, type SpaceInvite as an, type SpaceKeyGrantInfo as ao, type SpaceMember as ap, type SpaceMemberInfo as aq, SpacesAPI as ar, type SyncBackendInfo as as, type TransferDirection as at, type TransferProgress as au, type TransferState as av, WebAPI as aw, canExternalClientSendRequests as ax, isExternalClientConnected as ay, type DeepLink as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, type KnownPaths as p, LocalSendAPI as q, type LocalSendEvent as r, type FileInfo as s, type LocalSendSettings as t, type MailAccount as u, type MailAddress as v, type Attachment as w, type FetchRange as x, type MailMessage as y, type MailNewMessagesEvent as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, C as ConnectionSecurity, D as DatabaseAPI, a as DecryptedSpace, b as DeepLink, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, I as ImapConfig, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, M as MailAPI, u as MailAccount, v as MailAddress, w as MailAttachment, x as MailFetchRange, y as MailMessage, z as MailNewMessagesEvent, G as MailboxInfo, J as MessageEnvelope, N as NotificationAction, O as NotificationClickEvent, P as NotificationOptions, Q as NotificationsAPI, R as OutgoingAttachment, T as OutgoingMessage, U as PasswordInput, V as PasswordItemFull, W as PasswordItemSummary, X as PasswordKeyValue, Y as PasswordKeyValueInput, Z as PasswordsAPI, _ as PendingAuthorization, $ as PendingTransfer, a0 as PermissionsAPI, a1 as RemoteAddBackendRequest, a2 as RemoteS3Config, a3 as RemoteS3PublicConfig, a4 as RemoteStorageAPI, a5 as RemoteStorageBackendInfo, a6 as RemoteStorageObjectInfo, a7 as RemoteUpdateBackendRequest, a8 as RequestedExtension, a9 as SelectFileOptions, aa as SelectFolderOptions, ab as ServerInfo, ac as ServerStatus, ad as SessionAuthorization, ae as SharedSpace, af as ShellAPI, ag as ShellCreateOptions, ah as ShellCreateResponse, ai as ShellExitEvent, aj as ShellOutputEvent, ak as SmtpConfig, al as SpaceAccessTokenInfo, am as SpaceAssignment, an as SpaceInvite, ao as SpaceKeyGrantInfo, ap as
|
|
1
|
+
import { H as HaexVaultSdk } from './client-Dn4AbXbT.mjs';
|
|
2
|
+
export { A as AuthorizedClient, B as BlockedClient, C as ConnectionSecurity, D as DatabaseAPI, a as DecryptedSpace, b as DeepLink, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, I as ImapConfig, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, M as MailAPI, u as MailAccount, v as MailAddress, w as MailAttachment, x as MailFetchRange, y as MailMessage, z as MailNewMessagesEvent, G as MailboxInfo, J as MessageEnvelope, N as NotificationAction, O as NotificationClickEvent, P as NotificationOptions, Q as NotificationsAPI, R as OutgoingAttachment, T as OutgoingMessage, U as PasswordInput, V as PasswordItemFull, W as PasswordItemSummary, X as PasswordKeyValue, Y as PasswordKeyValueInput, Z as PasswordsAPI, _ as PendingAuthorization, $ as PendingTransfer, a0 as PermissionsAPI, a1 as RemoteAddBackendRequest, a2 as RemoteS3Config, a3 as RemoteS3PublicConfig, a4 as RemoteStorageAPI, a5 as RemoteStorageBackendInfo, a6 as RemoteStorageObjectInfo, a7 as RemoteUpdateBackendRequest, a8 as RequestedExtension, a9 as SelectFileOptions, aa as SelectFolderOptions, ab as ServerInfo, ac as ServerStatus, ad as SessionAuthorization, ae as SharedSpace, af as ShellAPI, ag as ShellCreateOptions, ah as ShellCreateResponse, ai as ShellExitEvent, aj as ShellOutputEvent, ak as SmtpConfig, al as SpaceAccessTokenInfo, am as SpaceAssignment, an as SpaceInvite, ao as SpaceKeyGrantInfo, ap as SpaceMember, aq as SpaceMemberInfo, ar as SpacesAPI, as as SyncBackendInfo, at as TransferDirection, au as TransferProgress, av as TransferState, aw as WebAPI, ax as canExternalClientSendRequests, ay as isExternalClientConnected } from './client-Dn4AbXbT.mjs';
|
|
3
3
|
import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-DQZCRfC-.mjs';
|
|
4
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, a as ExtensionInfo, 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, I as IdentityClaim, B as MAIL_EVENTS, G as MailEvent, J as ManifestI18nEntry, N as NOTIFICATION_EVENTS, K as NotificationEvent, L as PermissionDeniedError, O as PermissionErrorBase, Q as PermissionErrorCode, R as PermissionPromptError, P as PermissionResponse, T as PermissionStatus, U as SHELL_EVENTS, V as SearchQuery, X as SearchRequestEvent, S as SearchResult, Y as ShellEvent, Z as SyncTablesUpdatedEvent, _ as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, $ as getTableName, a0 as isPermissionDeniedError, a1 as isPermissionError, a2 as isPermissionPromptError } from './types-DQZCRfC-.mjs';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
|
|
@@ -619,6 +619,8 @@ declare const SPACE_COMMANDS: {
|
|
|
619
619
|
readonly unassign: "extension_space_unassign";
|
|
620
620
|
/** Get space assignments for a table */
|
|
621
621
|
readonly getAssignments: "extension_space_get_assignments";
|
|
622
|
+
/** Get members of a shared space */
|
|
623
|
+
readonly getMembers: "extension_space_get_members";
|
|
622
624
|
/** List all spaces the user is a member of (with decrypted names) */
|
|
623
625
|
readonly list: "extension_space_list";
|
|
624
626
|
/** Create a new shared space */
|
|
@@ -770,6 +772,7 @@ declare const TAURI_COMMANDS: {
|
|
|
770
772
|
readonly assign: "extension_space_assign";
|
|
771
773
|
readonly unassign: "extension_space_unassign";
|
|
772
774
|
readonly getAssignments: "extension_space_get_assignments";
|
|
775
|
+
readonly getMembers: "extension_space_get_members";
|
|
773
776
|
readonly list: "extension_space_list";
|
|
774
777
|
readonly create: "extension_space_create";
|
|
775
778
|
readonly listBackends: "extension_space_list_backends";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AuthorizedClient, B as BlockedClient, C as ConnectionSecurity, D as DatabaseAPI, a as DecryptedSpace, b as DeepLink, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, I as ImapConfig, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, M as MailAPI, u as MailAccount, v as MailAddress, w as MailAttachment, x as MailFetchRange, y as MailMessage, z as MailNewMessagesEvent, G as MailboxInfo, J as MessageEnvelope, N as NotificationAction, O as NotificationClickEvent, P as NotificationOptions, Q as NotificationsAPI, R as OutgoingAttachment, T as OutgoingMessage, U as PasswordInput, V as PasswordItemFull, W as PasswordItemSummary, X as PasswordKeyValue, Y as PasswordKeyValueInput, Z as PasswordsAPI, _ as PendingAuthorization, $ as PendingTransfer, a0 as PermissionsAPI, a1 as RemoteAddBackendRequest, a2 as RemoteS3Config, a3 as RemoteS3PublicConfig, a4 as RemoteStorageAPI, a5 as RemoteStorageBackendInfo, a6 as RemoteStorageObjectInfo, a7 as RemoteUpdateBackendRequest, a8 as RequestedExtension, a9 as SelectFileOptions, aa as SelectFolderOptions, ab as ServerInfo, ac as ServerStatus, ad as SessionAuthorization, ae as SharedSpace, af as ShellAPI, ag as ShellCreateOptions, ah as ShellCreateResponse, ai as ShellExitEvent, aj as ShellOutputEvent, ak as SmtpConfig, al as SpaceAccessTokenInfo, am as SpaceAssignment, an as SpaceInvite, ao as SpaceKeyGrantInfo, ap as
|
|
1
|
+
import { H as HaexVaultSdk } from './client-DH4Km77u.js';
|
|
2
|
+
export { A as AuthorizedClient, B as BlockedClient, C as ConnectionSecurity, D as DatabaseAPI, a as DecryptedSpace, b as DeepLink, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, I as ImapConfig, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, M as MailAPI, u as MailAccount, v as MailAddress, w as MailAttachment, x as MailFetchRange, y as MailMessage, z as MailNewMessagesEvent, G as MailboxInfo, J as MessageEnvelope, N as NotificationAction, O as NotificationClickEvent, P as NotificationOptions, Q as NotificationsAPI, R as OutgoingAttachment, T as OutgoingMessage, U as PasswordInput, V as PasswordItemFull, W as PasswordItemSummary, X as PasswordKeyValue, Y as PasswordKeyValueInput, Z as PasswordsAPI, _ as PendingAuthorization, $ as PendingTransfer, a0 as PermissionsAPI, a1 as RemoteAddBackendRequest, a2 as RemoteS3Config, a3 as RemoteS3PublicConfig, a4 as RemoteStorageAPI, a5 as RemoteStorageBackendInfo, a6 as RemoteStorageObjectInfo, a7 as RemoteUpdateBackendRequest, a8 as RequestedExtension, a9 as SelectFileOptions, aa as SelectFolderOptions, ab as ServerInfo, ac as ServerStatus, ad as SessionAuthorization, ae as SharedSpace, af as ShellAPI, ag as ShellCreateOptions, ah as ShellCreateResponse, ai as ShellExitEvent, aj as ShellOutputEvent, ak as SmtpConfig, al as SpaceAccessTokenInfo, am as SpaceAssignment, an as SpaceInvite, ao as SpaceKeyGrantInfo, ap as SpaceMember, aq as SpaceMemberInfo, ar as SpacesAPI, as as SyncBackendInfo, at as TransferDirection, au as TransferProgress, av as TransferState, aw as WebAPI, ax as canExternalClientSendRequests, ay as isExternalClientConnected } from './client-DH4Km77u.js';
|
|
3
3
|
import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-DQZCRfC-.js';
|
|
4
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, a as ExtensionInfo, 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, I as IdentityClaim, B as MAIL_EVENTS, G as MailEvent, J as ManifestI18nEntry, N as NOTIFICATION_EVENTS, K as NotificationEvent, L as PermissionDeniedError, O as PermissionErrorBase, Q as PermissionErrorCode, R as PermissionPromptError, P as PermissionResponse, T as PermissionStatus, U as SHELL_EVENTS, V as SearchQuery, X as SearchRequestEvent, S as SearchResult, Y as ShellEvent, Z as SyncTablesUpdatedEvent, _ as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, $ as getTableName, a0 as isPermissionDeniedError, a1 as isPermissionError, a2 as isPermissionPromptError } from './types-DQZCRfC-.js';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.js';
|
|
@@ -619,6 +619,8 @@ declare const SPACE_COMMANDS: {
|
|
|
619
619
|
readonly unassign: "extension_space_unassign";
|
|
620
620
|
/** Get space assignments for a table */
|
|
621
621
|
readonly getAssignments: "extension_space_get_assignments";
|
|
622
|
+
/** Get members of a shared space */
|
|
623
|
+
readonly getMembers: "extension_space_get_members";
|
|
622
624
|
/** List all spaces the user is a member of (with decrypted names) */
|
|
623
625
|
readonly list: "extension_space_list";
|
|
624
626
|
/** Create a new shared space */
|
|
@@ -770,6 +772,7 @@ declare const TAURI_COMMANDS: {
|
|
|
770
772
|
readonly assign: "extension_space_assign";
|
|
771
773
|
readonly unassign: "extension_space_unassign";
|
|
772
774
|
readonly getAssignments: "extension_space_get_assignments";
|
|
775
|
+
readonly getMembers: "extension_space_get_members";
|
|
773
776
|
readonly list: "extension_space_list";
|
|
774
777
|
readonly create: "extension_space_create";
|
|
775
778
|
readonly listBackends: "extension_space_list_backends";
|
package/dist/index.js
CHANGED
|
@@ -1039,6 +1039,8 @@ var SPACE_COMMANDS = {
|
|
|
1039
1039
|
unassign: "extension_space_unassign",
|
|
1040
1040
|
/** Get space assignments for a table */
|
|
1041
1041
|
getAssignments: "extension_space_get_assignments",
|
|
1042
|
+
/** Get members of a shared space */
|
|
1043
|
+
getMembers: "extension_space_get_members",
|
|
1042
1044
|
/** List all spaces the user is a member of (with decrypted names) */
|
|
1043
1045
|
list: "extension_space_list",
|
|
1044
1046
|
/** Create a new shared space */
|
|
@@ -2003,6 +2005,13 @@ var SpacesAPI = class {
|
|
|
2003
2005
|
async listSpacesAsync() {
|
|
2004
2006
|
return this.client.request(SPACE_COMMANDS.list);
|
|
2005
2007
|
}
|
|
2008
|
+
/**
|
|
2009
|
+
* List members of a shared space (DID + label), flagging the current user.
|
|
2010
|
+
* Used to resolve assignment authors to names and to detect own vs shared-in content.
|
|
2011
|
+
*/
|
|
2012
|
+
async getMembersAsync(spaceId) {
|
|
2013
|
+
return this.client.request(SPACE_COMMANDS.getMembers, { spaceId });
|
|
2014
|
+
}
|
|
2006
2015
|
};
|
|
2007
2016
|
|
|
2008
2017
|
// src/api/shell.ts
|