@ai4b-team/fsaos-gateway-sdk 3.34.2 → 3.35.1
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/iife/gateway.js +5 -5
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +224 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -2
- package/dist/index.d.ts +89 -2
- package/dist/index.js +224 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1085,6 +1085,10 @@ interface ItemsFilter {
|
|
|
1085
1085
|
type?: string;
|
|
1086
1086
|
/** Scope path boundary. Defaults to session scope. */
|
|
1087
1087
|
scope?: string;
|
|
1088
|
+
/** Explicit mounted Space UUIDs, filtered by the kernel before pagination.
|
|
1089
|
+
* [] returns no work. Omitted preserves legacy scope behavior. This is a
|
|
1090
|
+
* read selection, never a write target or permission grant. */
|
|
1091
|
+
spaceIds?: string[];
|
|
1088
1092
|
/** Direct parent_id filter. */
|
|
1089
1093
|
parent_id?: string;
|
|
1090
1094
|
/** Name ILIKE filter (partial match). */
|
|
@@ -1131,7 +1135,7 @@ declare function isListableItemsFilter(filter: ItemsFilter | null | undefined):
|
|
|
1131
1135
|
* icon, ...) are ignored. `extra` adds what the screen owns: scope, page size.
|
|
1132
1136
|
* Returns null when the stored filter names nothing to list.
|
|
1133
1137
|
*/
|
|
1134
|
-
declare function itemsFilterFromQueryFilter(typeData: Record<string, unknown> | null | undefined, extra?: Pick<ItemsFilter, 'scope' | 'limit' | 'name' | 'parent_id'>): ItemsFilter | null;
|
|
1138
|
+
declare function itemsFilterFromQueryFilter(typeData: Record<string, unknown> | null | undefined, extra?: Pick<ItemsFilter, 'scope' | 'spaceIds' | 'limit' | 'name' | 'parent_id'>): ItemsFilter | null;
|
|
1135
1139
|
/**
|
|
1136
1140
|
* Fetch items with structured filters: one type, or OR-groups across types.
|
|
1137
1141
|
* Calls kernel_query (gateway 'query' method). The kernel filters before it
|
|
@@ -1654,7 +1658,88 @@ declare function useSearch(query: string | undefined | null, itemTypes?: string[
|
|
|
1654
1658
|
/** Multi-signal search (exact + trigram + keyword + semantic vector) via kernel resolve. */
|
|
1655
1659
|
declare function useResolve(params: ResolveParams | null | undefined): _tanstack_react_query.UseQueryResult<ResolveResponse, Error>;
|
|
1656
1660
|
/** Fetch items with structured filters: one type, or OR-groups across types. */
|
|
1657
|
-
declare function useItems(filter: ItemsFilter | null | undefined): _tanstack_react_query.
|
|
1661
|
+
declare function useItems(filter: ItemsFilter | null | undefined): _tanstack_react_query.QueryObserverRefetchErrorResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverSuccessResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverLoadingErrorResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverPendingResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverPlaceholderResult<VFSItem[], Error> | {
|
|
1662
|
+
data: undefined;
|
|
1663
|
+
error: Error;
|
|
1664
|
+
isError: true;
|
|
1665
|
+
isPending: false;
|
|
1666
|
+
isLoading: false;
|
|
1667
|
+
isLoadingError: false;
|
|
1668
|
+
isRefetchError: true;
|
|
1669
|
+
isSuccess: false;
|
|
1670
|
+
isPlaceholderData: false;
|
|
1671
|
+
status: "error";
|
|
1672
|
+
dataUpdatedAt: number;
|
|
1673
|
+
errorUpdatedAt: number;
|
|
1674
|
+
failureCount: number;
|
|
1675
|
+
failureReason: Error | null;
|
|
1676
|
+
errorUpdateCount: number;
|
|
1677
|
+
isFetched: boolean;
|
|
1678
|
+
isFetchedAfterMount: boolean;
|
|
1679
|
+
isFetching: boolean;
|
|
1680
|
+
isInitialLoading: boolean;
|
|
1681
|
+
isPaused: boolean;
|
|
1682
|
+
isRefetching: boolean;
|
|
1683
|
+
isStale: boolean;
|
|
1684
|
+
isEnabled: boolean;
|
|
1685
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1686
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1687
|
+
promise: Promise<VFSItem[]>;
|
|
1688
|
+
} | {
|
|
1689
|
+
data: undefined;
|
|
1690
|
+
error: null;
|
|
1691
|
+
isError: false;
|
|
1692
|
+
isPending: false;
|
|
1693
|
+
isLoading: false;
|
|
1694
|
+
isLoadingError: false;
|
|
1695
|
+
isRefetchError: false;
|
|
1696
|
+
isSuccess: true;
|
|
1697
|
+
isPlaceholderData: false;
|
|
1698
|
+
status: "success";
|
|
1699
|
+
dataUpdatedAt: number;
|
|
1700
|
+
errorUpdatedAt: number;
|
|
1701
|
+
failureCount: number;
|
|
1702
|
+
failureReason: Error | null;
|
|
1703
|
+
errorUpdateCount: number;
|
|
1704
|
+
isFetched: boolean;
|
|
1705
|
+
isFetchedAfterMount: boolean;
|
|
1706
|
+
isFetching: boolean;
|
|
1707
|
+
isInitialLoading: boolean;
|
|
1708
|
+
isPaused: boolean;
|
|
1709
|
+
isRefetching: boolean;
|
|
1710
|
+
isStale: boolean;
|
|
1711
|
+
isEnabled: boolean;
|
|
1712
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1713
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1714
|
+
promise: Promise<VFSItem[]>;
|
|
1715
|
+
} | {
|
|
1716
|
+
data: undefined;
|
|
1717
|
+
isError: false;
|
|
1718
|
+
error: null;
|
|
1719
|
+
isPending: false;
|
|
1720
|
+
isLoading: false;
|
|
1721
|
+
isLoadingError: false;
|
|
1722
|
+
isRefetchError: false;
|
|
1723
|
+
isSuccess: true;
|
|
1724
|
+
isPlaceholderData: true;
|
|
1725
|
+
status: "success";
|
|
1726
|
+
dataUpdatedAt: number;
|
|
1727
|
+
errorUpdatedAt: number;
|
|
1728
|
+
failureCount: number;
|
|
1729
|
+
failureReason: Error | null;
|
|
1730
|
+
errorUpdateCount: number;
|
|
1731
|
+
isFetched: boolean;
|
|
1732
|
+
isFetchedAfterMount: boolean;
|
|
1733
|
+
isFetching: boolean;
|
|
1734
|
+
isInitialLoading: boolean;
|
|
1735
|
+
isPaused: boolean;
|
|
1736
|
+
isRefetching: boolean;
|
|
1737
|
+
isStale: boolean;
|
|
1738
|
+
isEnabled: boolean;
|
|
1739
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1740
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1741
|
+
promise: Promise<VFSItem[]>;
|
|
1742
|
+
};
|
|
1658
1743
|
interface InfiniteItemsOptions {
|
|
1659
1744
|
/** Keep this cached listing fresh through the SDK's existing realtime transport. No polling. Defaults to false. */
|
|
1660
1745
|
realtime?: boolean;
|
|
@@ -1967,6 +2052,8 @@ declare function useAccounts(): AccountsState;
|
|
|
1967
2052
|
/** The working set (mounts) as reactive state, plus mount/unmount verbs. */
|
|
1968
2053
|
declare function useMounts(): {
|
|
1969
2054
|
mounts: MountRef[];
|
|
2055
|
+
selectedSpaces: MountRef[];
|
|
2056
|
+
readSpaceIds: string[];
|
|
1970
2057
|
homeAnchor: MountRef | null;
|
|
1971
2058
|
anchor: MountRef | null;
|
|
1972
2059
|
setAnchor: typeof selectMount;
|
package/dist/index.d.ts
CHANGED
|
@@ -1085,6 +1085,10 @@ interface ItemsFilter {
|
|
|
1085
1085
|
type?: string;
|
|
1086
1086
|
/** Scope path boundary. Defaults to session scope. */
|
|
1087
1087
|
scope?: string;
|
|
1088
|
+
/** Explicit mounted Space UUIDs, filtered by the kernel before pagination.
|
|
1089
|
+
* [] returns no work. Omitted preserves legacy scope behavior. This is a
|
|
1090
|
+
* read selection, never a write target or permission grant. */
|
|
1091
|
+
spaceIds?: string[];
|
|
1088
1092
|
/** Direct parent_id filter. */
|
|
1089
1093
|
parent_id?: string;
|
|
1090
1094
|
/** Name ILIKE filter (partial match). */
|
|
@@ -1131,7 +1135,7 @@ declare function isListableItemsFilter(filter: ItemsFilter | null | undefined):
|
|
|
1131
1135
|
* icon, ...) are ignored. `extra` adds what the screen owns: scope, page size.
|
|
1132
1136
|
* Returns null when the stored filter names nothing to list.
|
|
1133
1137
|
*/
|
|
1134
|
-
declare function itemsFilterFromQueryFilter(typeData: Record<string, unknown> | null | undefined, extra?: Pick<ItemsFilter, 'scope' | 'limit' | 'name' | 'parent_id'>): ItemsFilter | null;
|
|
1138
|
+
declare function itemsFilterFromQueryFilter(typeData: Record<string, unknown> | null | undefined, extra?: Pick<ItemsFilter, 'scope' | 'spaceIds' | 'limit' | 'name' | 'parent_id'>): ItemsFilter | null;
|
|
1135
1139
|
/**
|
|
1136
1140
|
* Fetch items with structured filters: one type, or OR-groups across types.
|
|
1137
1141
|
* Calls kernel_query (gateway 'query' method). The kernel filters before it
|
|
@@ -1654,7 +1658,88 @@ declare function useSearch(query: string | undefined | null, itemTypes?: string[
|
|
|
1654
1658
|
/** Multi-signal search (exact + trigram + keyword + semantic vector) via kernel resolve. */
|
|
1655
1659
|
declare function useResolve(params: ResolveParams | null | undefined): _tanstack_react_query.UseQueryResult<ResolveResponse, Error>;
|
|
1656
1660
|
/** Fetch items with structured filters: one type, or OR-groups across types. */
|
|
1657
|
-
declare function useItems(filter: ItemsFilter | null | undefined): _tanstack_react_query.
|
|
1661
|
+
declare function useItems(filter: ItemsFilter | null | undefined): _tanstack_react_query.QueryObserverRefetchErrorResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverSuccessResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverLoadingErrorResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverPendingResult<VFSItem[], Error> | _tanstack_react_query.QueryObserverPlaceholderResult<VFSItem[], Error> | {
|
|
1662
|
+
data: undefined;
|
|
1663
|
+
error: Error;
|
|
1664
|
+
isError: true;
|
|
1665
|
+
isPending: false;
|
|
1666
|
+
isLoading: false;
|
|
1667
|
+
isLoadingError: false;
|
|
1668
|
+
isRefetchError: true;
|
|
1669
|
+
isSuccess: false;
|
|
1670
|
+
isPlaceholderData: false;
|
|
1671
|
+
status: "error";
|
|
1672
|
+
dataUpdatedAt: number;
|
|
1673
|
+
errorUpdatedAt: number;
|
|
1674
|
+
failureCount: number;
|
|
1675
|
+
failureReason: Error | null;
|
|
1676
|
+
errorUpdateCount: number;
|
|
1677
|
+
isFetched: boolean;
|
|
1678
|
+
isFetchedAfterMount: boolean;
|
|
1679
|
+
isFetching: boolean;
|
|
1680
|
+
isInitialLoading: boolean;
|
|
1681
|
+
isPaused: boolean;
|
|
1682
|
+
isRefetching: boolean;
|
|
1683
|
+
isStale: boolean;
|
|
1684
|
+
isEnabled: boolean;
|
|
1685
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1686
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1687
|
+
promise: Promise<VFSItem[]>;
|
|
1688
|
+
} | {
|
|
1689
|
+
data: undefined;
|
|
1690
|
+
error: null;
|
|
1691
|
+
isError: false;
|
|
1692
|
+
isPending: false;
|
|
1693
|
+
isLoading: false;
|
|
1694
|
+
isLoadingError: false;
|
|
1695
|
+
isRefetchError: false;
|
|
1696
|
+
isSuccess: true;
|
|
1697
|
+
isPlaceholderData: false;
|
|
1698
|
+
status: "success";
|
|
1699
|
+
dataUpdatedAt: number;
|
|
1700
|
+
errorUpdatedAt: number;
|
|
1701
|
+
failureCount: number;
|
|
1702
|
+
failureReason: Error | null;
|
|
1703
|
+
errorUpdateCount: number;
|
|
1704
|
+
isFetched: boolean;
|
|
1705
|
+
isFetchedAfterMount: boolean;
|
|
1706
|
+
isFetching: boolean;
|
|
1707
|
+
isInitialLoading: boolean;
|
|
1708
|
+
isPaused: boolean;
|
|
1709
|
+
isRefetching: boolean;
|
|
1710
|
+
isStale: boolean;
|
|
1711
|
+
isEnabled: boolean;
|
|
1712
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1713
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1714
|
+
promise: Promise<VFSItem[]>;
|
|
1715
|
+
} | {
|
|
1716
|
+
data: undefined;
|
|
1717
|
+
isError: false;
|
|
1718
|
+
error: null;
|
|
1719
|
+
isPending: false;
|
|
1720
|
+
isLoading: false;
|
|
1721
|
+
isLoadingError: false;
|
|
1722
|
+
isRefetchError: false;
|
|
1723
|
+
isSuccess: true;
|
|
1724
|
+
isPlaceholderData: true;
|
|
1725
|
+
status: "success";
|
|
1726
|
+
dataUpdatedAt: number;
|
|
1727
|
+
errorUpdatedAt: number;
|
|
1728
|
+
failureCount: number;
|
|
1729
|
+
failureReason: Error | null;
|
|
1730
|
+
errorUpdateCount: number;
|
|
1731
|
+
isFetched: boolean;
|
|
1732
|
+
isFetchedAfterMount: boolean;
|
|
1733
|
+
isFetching: boolean;
|
|
1734
|
+
isInitialLoading: boolean;
|
|
1735
|
+
isPaused: boolean;
|
|
1736
|
+
isRefetching: boolean;
|
|
1737
|
+
isStale: boolean;
|
|
1738
|
+
isEnabled: boolean;
|
|
1739
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<VFSItem[], Error>>;
|
|
1740
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1741
|
+
promise: Promise<VFSItem[]>;
|
|
1742
|
+
};
|
|
1658
1743
|
interface InfiniteItemsOptions {
|
|
1659
1744
|
/** Keep this cached listing fresh through the SDK's existing realtime transport. No polling. Defaults to false. */
|
|
1660
1745
|
realtime?: boolean;
|
|
@@ -1967,6 +2052,8 @@ declare function useAccounts(): AccountsState;
|
|
|
1967
2052
|
/** The working set (mounts) as reactive state, plus mount/unmount verbs. */
|
|
1968
2053
|
declare function useMounts(): {
|
|
1969
2054
|
mounts: MountRef[];
|
|
2055
|
+
selectedSpaces: MountRef[];
|
|
2056
|
+
readSpaceIds: string[];
|
|
1970
2057
|
homeAnchor: MountRef | null;
|
|
1971
2058
|
anchor: MountRef | null;
|
|
1972
2059
|
setAnchor: typeof selectMount;
|