@elevasis/ui 2.79.0 → 2.81.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/{CoreAuthKitInner-PSTKG4B3.js → CoreAuthKitInner-5J7P7ZDL.js} +1 -1
- package/dist/api/index.js +6 -6
- package/dist/app/index.d.ts +1 -15
- package/dist/app/index.js +18 -18
- package/dist/auth/index.js +10 -10
- package/dist/charts/index.d.ts +4 -4
- package/dist/charts/index.js +10 -10
- package/dist/{chunk-NCPNKI3V.js → chunk-2HXDI4RY.js} +1 -1
- package/dist/{chunk-TVTSASST.js → chunk-34B3ACOZ.js} +9 -1
- package/dist/{chunk-AZCDL2SS.js → chunk-3ZADOARU.js} +5 -5
- package/dist/{chunk-2IU6BP6F.js → chunk-42C2WVYU.js} +11 -10
- package/dist/{chunk-3ONNZ4SO.js → chunk-52AZTFUR.js} +6 -6
- package/dist/{chunk-MGCXAAX4.js → chunk-5GYJ3IDO.js} +15 -9
- package/dist/{chunk-SJRIO26Q.js → chunk-6J3SCCZ2.js} +2 -2
- package/dist/{chunk-A37T4NIZ.js → chunk-6YWBMLEM.js} +22 -11
- package/dist/{chunk-GWCLI2RX.js → chunk-75OLN23F.js} +22 -39
- package/dist/{chunk-LDQSTEFW.js → chunk-7D4FKBB4.js} +38 -14
- package/dist/{chunk-JZQNUQE4.js → chunk-7RS2NUC6.js} +10 -2
- package/dist/{chunk-7ICEQPBU.js → chunk-AI5OYVLR.js} +1 -1
- package/dist/{chunk-G3WOMHVI.js → chunk-BLYK6I4D.js} +4 -3
- package/dist/{chunk-5ZK7K7YP.js → chunk-DEZW7QDI.js} +38 -25
- package/dist/{chunk-QLEY6Q7K.js → chunk-FPRDEKFY.js} +1 -1
- package/dist/{chunk-SVZR4GYA.js → chunk-G6VHIXWD.js} +1 -1
- package/dist/{chunk-VM2OWOXL.js → chunk-GY7FXTC4.js} +2 -3
- package/dist/{chunk-GFSOQH3N.js → chunk-HDITVHZT.js} +8 -11
- package/dist/{chunk-ASI3FDPC.js → chunk-HDLYC63N.js} +1 -1
- package/dist/{chunk-2GIJBHZT.js → chunk-IIMC4TRH.js} +3 -3
- package/dist/{chunk-22TWX4XG.js → chunk-ILOKKA6L.js} +8 -8
- package/dist/{chunk-4ZHX5KOT.js → chunk-JLKZUO2I.js} +1 -1
- package/dist/{chunk-WJO6QEI7.js → chunk-K635QVGI.js} +33 -78
- package/dist/{chunk-R42OYAQ2.js → chunk-KU7KN5VN.js} +1 -1
- package/dist/{chunk-6AJUWYKS.js → chunk-LGJASP5H.js} +1 -1
- package/dist/{chunk-4IYWLUXA.js → chunk-LTKBVL7D.js} +14 -10
- package/dist/{chunk-INCEZAM3.js → chunk-LTRJZOHA.js} +1 -1
- package/dist/{chunk-RMLWK3IR.js → chunk-O4XUKLRY.js} +1 -1
- package/dist/{chunk-3RK2NNJX.js → chunk-PJN6CMWZ.js} +1 -1
- package/dist/{chunk-KXNRTJAE.js → chunk-PNCJJE4Z.js} +1 -1
- package/dist/{chunk-4VGPEDQF.js → chunk-PSGSFPWA.js} +126 -69
- package/dist/{chunk-QMAIUPXK.js → chunk-QEQXPWOK.js} +23 -231
- package/dist/{chunk-M77G2MGW.js → chunk-QFKOHZM3.js} +3 -3
- package/dist/{chunk-P6HHXMLJ.js → chunk-ROC2TFPS.js} +10 -9
- package/dist/{chunk-QMOBXKW3.js → chunk-SHJYK2X4.js} +222 -191
- package/dist/{chunk-ODXLZZFR.js → chunk-SOBKRB4N.js} +1 -1
- package/dist/{chunk-SXZMHLH6.js → chunk-SWC54W3A.js} +4 -4
- package/dist/{chunk-G4IEH7NX.js → chunk-TLMNBOAG.js} +5 -5
- package/dist/{chunk-N6K2Q5BM.js → chunk-WDABHUIL.js} +9 -21
- package/dist/{chunk-3KCLWJDC.js → chunk-XUL4UBYJ.js} +22 -11
- package/dist/{chunk-UD657ICS.js → chunk-YJ437RDY.js} +29 -16
- package/dist/components/index.d.ts +18 -20
- package/dist/components/index.js +48 -48
- package/dist/components/navigation/index.js +11 -11
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +1 -1
- package/dist/features/auth/index.js +12 -12
- package/dist/features/clients/index.js +14 -15
- package/dist/features/content/index.js +13 -13
- package/dist/features/crm/index.d.ts +0 -14
- package/dist/features/crm/index.js +16 -16
- package/dist/features/dashboard/index.d.ts +8 -8
- package/dist/features/dashboard/index.js +13 -13
- package/dist/features/delivery/index.d.ts +0 -14
- package/dist/features/delivery/index.js +25 -25
- package/dist/features/knowledge/index.js +10 -10
- package/dist/features/lead-gen/index.d.ts +103 -48
- package/dist/features/lead-gen/index.js +17 -17
- package/dist/features/monitoring/index.d.ts +10 -10
- package/dist/features/monitoring/index.js +15 -15
- package/dist/features/monitoring/requests/index.js +12 -12
- package/dist/features/notes/index.js +1 -1
- package/dist/features/operations/index.d.ts +12 -12
- package/dist/features/operations/index.js +18 -18
- package/dist/features/public-agent-chat/index.js +4 -4
- package/dist/features/seo/index.d.ts +105 -17
- package/dist/features/seo/index.js +13 -13
- package/dist/features/settings/index.d.ts +1 -1
- package/dist/features/settings/index.js +13 -13
- package/dist/hooks/access/index.d.ts +60 -1
- package/dist/hooks/access/index.js +10 -10
- package/dist/hooks/delivery/index.d.ts +0 -14
- package/dist/hooks/delivery/index.js +6 -6
- package/dist/hooks/published.d.ts +286 -107
- package/dist/hooks/published.js +23 -23
- package/dist/hooks/user-notes/index.js +1 -1
- package/dist/initialization/index.d.ts +13 -1
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.d.ts +1 -1
- package/dist/knowledge/index.js +93 -91
- package/dist/{knowledge-search-index-6GQK55IQ.js → knowledge-search-index-UPKXCXQP.js} +91 -91
- package/dist/layout/index.js +14 -14
- package/dist/organization/index.d.ts +17 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.d.ts +1 -1
- package/dist/profile/index.js +1 -1
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.d.ts +0 -14
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.d.ts +0 -14
- package/dist/provider/published.js +10 -10
- package/dist/sse/index.d.ts +7 -1
- package/dist/sse/index.js +36 -2
- package/dist/test-utils/index.d.ts +3 -1
- package/dist/test-utils/index.js +32 -9
- package/dist/types/index.d.ts +13 -15
- package/dist/utils/index.d.ts +25 -7
- package/dist/utils/index.js +4 -4
- package/package.json +24 -14
- /package/dist/{chunk-Y6I3IC45.js → chunk-6XBZPKMI.js} +0 -0
- /package/dist/{chunk-5F3QGBEI.js → chunk-7ZUXA2NW.js} +0 -0
|
@@ -59,8 +59,8 @@ interface ExecutionLogsPageRenderTrendChartArgs {
|
|
|
59
59
|
timeRange: TimeRange;
|
|
60
60
|
}
|
|
61
61
|
interface ExecutionLogsPageProps {
|
|
62
|
-
/** Current time range value — caller passes from its own store */
|
|
63
|
-
timeRange
|
|
62
|
+
/** Current time range value — caller passes from its own store. Optional; resolves via `useResolvedTimeRange` when omitted. */
|
|
63
|
+
timeRange?: TimeRange;
|
|
64
64
|
/** Items per page (defaults to 20) */
|
|
65
65
|
pageSize?: number;
|
|
66
66
|
/** Called when the user clicks an execution row — caller handles navigation */
|
|
@@ -72,15 +72,15 @@ interface ExecutionLogsPageProps {
|
|
|
72
72
|
/** Render slot for the trend chart section */
|
|
73
73
|
renderTrendChart: (args: ExecutionLogsPageRenderTrendChartArgs) => React.ReactNode;
|
|
74
74
|
}
|
|
75
|
-
declare function ExecutionLogsPage({ timeRange, pageSize, onNavigateToExecution, renderTrendChart }: ExecutionLogsPageProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function ExecutionLogsPage({ timeRange: timeRangeProp, pageSize, onNavigateToExecution, renderTrendChart }: ExecutionLogsPageProps): react_jsx_runtime.JSX.Element;
|
|
76
76
|
|
|
77
77
|
interface ExecutionHealthProps {
|
|
78
|
-
/** Current time range value — threaded from CC wrapper's useAppStore read */
|
|
79
|
-
timeRange
|
|
78
|
+
/** Current time range value — threaded from CC wrapper's useAppStore read. Optional; resolves via `useResolvedTimeRange` when omitted. */
|
|
79
|
+
timeRange?: TimeRange;
|
|
80
80
|
/** Called when the user clicks an error row — opens ErrorDetailsModal in CC wrapper */
|
|
81
81
|
onErrorClick: (errorId: string) => void;
|
|
82
82
|
}
|
|
83
|
-
declare function ExecutionHealth({ timeRange, onErrorClick }: ExecutionHealthProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
declare function ExecutionHealth({ timeRange: timeRangeProp, onErrorClick }: ExecutionHealthProps): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* ErrorDetailsModal - Modal showing full error details
|
|
@@ -96,16 +96,16 @@ interface ErrorDetailsModalProps {
|
|
|
96
96
|
declare function ErrorDetailsModal({ executionId, opened, onClose, organizationName }: ErrorDetailsModalProps): react_jsx_runtime.JSX.Element;
|
|
97
97
|
|
|
98
98
|
interface CostAnalyticsProps {
|
|
99
|
-
timeRange
|
|
99
|
+
timeRange?: TimeRange;
|
|
100
100
|
}
|
|
101
|
-
declare function CostAnalytics({ timeRange }: CostAnalyticsProps): react_jsx_runtime.JSX.Element;
|
|
101
|
+
declare function CostAnalytics({ timeRange: timeRangeProp }: CostAnalyticsProps): react_jsx_runtime.JSX.Element;
|
|
102
102
|
|
|
103
103
|
interface ActivityLogProps {
|
|
104
|
-
timeRange
|
|
104
|
+
timeRange?: TimeRange;
|
|
105
105
|
pageSize?: number;
|
|
106
106
|
onNavigate: (path: string) => void;
|
|
107
107
|
}
|
|
108
|
-
declare function ActivityLog({ timeRange, pageSize, onNavigate }: ActivityLogProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
declare function ActivityLog({ timeRange: timeRangeProp, pageSize, onNavigate }: ActivityLogProps): react_jsx_runtime.JSX.Element;
|
|
109
109
|
|
|
110
110
|
interface ActivityFeedProps {
|
|
111
111
|
limit?: number;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter } from '../../chunk-LTKBVL7D.js';
|
|
2
|
+
import '../../chunk-7D4FKBB4.js';
|
|
3
|
+
import '../../chunk-BLYK6I4D.js';
|
|
4
4
|
import '../../chunk-LGKLC5MG.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-LGJASP5H.js';
|
|
6
6
|
import '../../chunk-YQQ5GRUR.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-GY7FXTC4.js';
|
|
8
8
|
import '../../chunk-PDHTXPSF.js';
|
|
9
|
-
export { monitoringManifest } from '../../chunk-
|
|
9
|
+
export { monitoringManifest } from '../../chunk-PSGSFPWA.js';
|
|
10
10
|
import '../../chunk-4WLAVUPS.js';
|
|
11
11
|
import '../../chunk-RXZ3XDBM.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-7RS2NUC6.js';
|
|
13
13
|
import '../../chunk-L7BZZ4SI.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-PNCJJE4Z.js';
|
|
15
15
|
import '../../chunk-62GVNH5U.js';
|
|
16
16
|
import '../../chunk-P45GQ3ZW.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-IIMC4TRH.js';
|
|
18
18
|
import '../../chunk-3KMDHCAR.js';
|
|
19
19
|
import '../../chunk-2IFYDILW.js';
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-2HXDI4RY.js';
|
|
21
|
+
import '../../chunk-YJ437RDY.js';
|
|
22
22
|
import '../../chunk-DD3CCMCZ.js';
|
|
23
23
|
import '../../chunk-RNP5R5I3.js';
|
|
24
24
|
import '../../chunk-RT4KRGZT.js';
|
|
25
|
-
import '../../chunk-
|
|
26
|
-
import '../../chunk-
|
|
27
|
-
import '../../chunk-
|
|
25
|
+
import '../../chunk-DEZW7QDI.js';
|
|
26
|
+
import '../../chunk-6XBZPKMI.js';
|
|
27
|
+
import '../../chunk-7ZUXA2NW.js';
|
|
28
28
|
import '../../chunk-BI5VDO2K.js';
|
|
29
29
|
import '../../chunk-MQZE7SUI.js';
|
|
30
|
-
import '../../chunk-
|
|
30
|
+
import '../../chunk-34B3ACOZ.js';
|
|
31
31
|
import '../../chunk-BRJ3QZ4E.js';
|
|
32
32
|
import '../../chunk-Q7DJKLEN.js';
|
|
33
33
|
import '../../chunk-I2KLQ2HA.js';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { useRequestsList, useUpdateRequestStatus, useDeleteRequest, useRequest } from '../../../chunk-
|
|
1
|
+
import { useRequestsList, useUpdateRequestStatus, useDeleteRequest, useRequest } from '../../../chunk-42C2WVYU.js';
|
|
2
2
|
import { useTableSelection } from '../../../chunk-WDBNW44Z.js';
|
|
3
3
|
import { TableSelectionToolbar } from '../../../chunk-TUMSNGTX.js';
|
|
4
4
|
import { FilterBar } from '../../../chunk-PDHTXPSF.js';
|
|
5
|
-
import { ConfirmationModal, RequestModal, usePaginationState, PageTitleCaption, CustomModal, ContextViewer, JsonViewer } from '../../../chunk-
|
|
6
|
-
export { RequestActionIcon, RequestModal, requestTopbarActionManifest, submittedRequestsManifest } from '../../../chunk-
|
|
5
|
+
import { ConfirmationModal, RequestModal, usePaginationState, PageTitleCaption, CustomModal, ContextViewer, JsonViewer } from '../../../chunk-PSGSFPWA.js';
|
|
6
|
+
export { RequestActionIcon, RequestModal, requestTopbarActionManifest, submittedRequestsManifest } from '../../../chunk-PSGSFPWA.js';
|
|
7
7
|
import '../../../chunk-4WLAVUPS.js';
|
|
8
8
|
import '../../../chunk-RXZ3XDBM.js';
|
|
9
|
-
import '../../../chunk-
|
|
9
|
+
import '../../../chunk-7RS2NUC6.js';
|
|
10
10
|
import '../../../chunk-L7BZZ4SI.js';
|
|
11
|
-
import '../../../chunk-
|
|
11
|
+
import '../../../chunk-PNCJJE4Z.js';
|
|
12
12
|
import { CardHeader } from '../../../chunk-62GVNH5U.js';
|
|
13
13
|
import '../../../chunk-P45GQ3ZW.js';
|
|
14
|
-
import '../../../chunk-
|
|
14
|
+
import '../../../chunk-IIMC4TRH.js';
|
|
15
15
|
import '../../../chunk-3KMDHCAR.js';
|
|
16
16
|
import '../../../chunk-2IFYDILW.js';
|
|
17
|
-
import '../../../chunk-
|
|
18
|
-
import '../../../chunk-
|
|
17
|
+
import '../../../chunk-2HXDI4RY.js';
|
|
18
|
+
import '../../../chunk-YJ437RDY.js';
|
|
19
19
|
import '../../../chunk-DD3CCMCZ.js';
|
|
20
20
|
import '../../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../../chunk-RT4KRGZT.js';
|
|
22
|
-
import { formatTimeAgo } from '../../../chunk-
|
|
23
|
-
import '../../../chunk-
|
|
24
|
-
import '../../../chunk-
|
|
22
|
+
import { formatTimeAgo } from '../../../chunk-DEZW7QDI.js';
|
|
23
|
+
import '../../../chunk-6XBZPKMI.js';
|
|
24
|
+
import '../../../chunk-7ZUXA2NW.js';
|
|
25
25
|
import '../../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../../chunk-MQZE7SUI.js';
|
|
27
|
-
import '../../../chunk-
|
|
27
|
+
import '../../../chunk-34B3ACOZ.js';
|
|
28
28
|
import '../../../chunk-BRJ3QZ4E.js';
|
|
29
29
|
import '../../../chunk-Q7DJKLEN.js';
|
|
30
30
|
import '../../../chunk-I2KLQ2HA.js';
|
|
@@ -5,7 +5,7 @@ import '../../chunk-DD3CCMCZ.js';
|
|
|
5
5
|
import '../../chunk-RT4KRGZT.js';
|
|
6
6
|
import '../../chunk-BI5VDO2K.js';
|
|
7
7
|
import '../../chunk-MQZE7SUI.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-34B3ACOZ.js';
|
|
9
9
|
import '../../chunk-BRJ3QZ4E.js';
|
|
10
10
|
import '../../chunk-I2KLQ2HA.js';
|
|
11
11
|
import { useState } from 'react';
|
|
@@ -1810,20 +1810,20 @@ interface ResourcesPageProps {
|
|
|
1810
1810
|
initialFilter?: ResourceType;
|
|
1811
1811
|
/** Called when the user changes the tab filter — caller should update its URL */
|
|
1812
1812
|
onTypeChange: (type: ResourceType | undefined) => void;
|
|
1813
|
-
/** Current time range value — caller passes from its own store */
|
|
1814
|
-
timeRange
|
|
1813
|
+
/** Current time range value — caller passes from its own store. Optional; resolves via `useResolvedTimeRange` when omitted. */
|
|
1814
|
+
timeRange?: TimeRange;
|
|
1815
1815
|
/** Called when the user clicks a resource row — caller handles navigation */
|
|
1816
1816
|
onResourceClick: (resource: ResourceDefinition) => void;
|
|
1817
1817
|
/** Items per page (defaults to 20) */
|
|
1818
1818
|
pageSize?: number;
|
|
1819
1819
|
}
|
|
1820
|
-
declare function ResourcesPage({ initialFilter, onTypeChange, timeRange, onResourceClick, pageSize }: ResourcesPageProps): react_jsx_runtime.JSX.Element;
|
|
1820
|
+
declare function ResourcesPage({ initialFilter, onTypeChange, timeRange: timeRangeProp, onResourceClick, pageSize }: ResourcesPageProps): react_jsx_runtime.JSX.Element;
|
|
1821
1821
|
|
|
1822
1822
|
interface OperationsOverviewProps {
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Active time range for all metrics queries.
|
|
1825
1825
|
*/
|
|
1826
|
-
timeRange
|
|
1826
|
+
timeRange?: TimeRange;
|
|
1827
1827
|
/**
|
|
1828
1828
|
* Business-impact metrics computed by the CC wrapper.
|
|
1829
1829
|
* Stays CC-local per decision lock #4.
|
|
@@ -1877,22 +1877,22 @@ interface OperationsOverviewProps {
|
|
|
1877
1877
|
*/
|
|
1878
1878
|
renderOperationalOverview?: (props: OperationalOverviewPanelProps) => ReactNode;
|
|
1879
1879
|
}
|
|
1880
|
-
declare function OperationsOverview({ timeRange, onResourceClick, onErrorsNavigate, onCommandQueueNavigate, onScheduledTasksNavigate, renderTrendChart, renderOperationalOverview }: OperationsOverviewProps): react_jsx_runtime.JSX.Element;
|
|
1880
|
+
declare function OperationsOverview({ timeRange: timeRangeProp, onResourceClick, onErrorsNavigate, onCommandQueueNavigate, onScheduledTasksNavigate, renderTrendChart, renderOperationalOverview }: OperationsOverviewProps): react_jsx_runtime.JSX.Element;
|
|
1881
1881
|
interface OperationalOverviewPanelProps {
|
|
1882
|
-
timeRange
|
|
1882
|
+
timeRange?: TimeRange;
|
|
1883
1883
|
onErrorsNavigate?: () => void;
|
|
1884
1884
|
onCommandQueueNavigate?: () => void;
|
|
1885
1885
|
onScheduledTasksNavigate?: () => void;
|
|
1886
1886
|
}
|
|
1887
|
-
declare function DashboardOperationsOverview({ timeRange, onErrorsNavigate, onCommandQueueNavigate, onScheduledTasksNavigate }: OperationalOverviewPanelProps): react_jsx_runtime.JSX.Element;
|
|
1887
|
+
declare function DashboardOperationsOverview({ timeRange: timeRangeProp, onErrorsNavigate, onCommandQueueNavigate, onScheduledTasksNavigate }: OperationalOverviewPanelProps): react_jsx_runtime.JSX.Element;
|
|
1888
1888
|
|
|
1889
1889
|
interface ResourcesSidebarProps {
|
|
1890
|
-
timeRange
|
|
1890
|
+
timeRange?: TimeRange;
|
|
1891
1891
|
}
|
|
1892
1892
|
/**
|
|
1893
1893
|
* Resources sidebar - shows execution health donut, domain filters and search
|
|
1894
1894
|
*/
|
|
1895
|
-
declare function ResourcesSidebar({ timeRange }: ResourcesSidebarProps): react_jsx_runtime.JSX.Element;
|
|
1895
|
+
declare function ResourcesSidebar({ timeRange: timeRangeProp }: ResourcesSidebarProps): react_jsx_runtime.JSX.Element;
|
|
1896
1896
|
|
|
1897
1897
|
interface ResourceDetailPageRenderExecutionPanelArgs {
|
|
1898
1898
|
resourceId: string;
|
|
@@ -1913,8 +1913,8 @@ interface ResourceDetailPageProps {
|
|
|
1913
1913
|
type: ResourceType;
|
|
1914
1914
|
/** Resource identifier */
|
|
1915
1915
|
resourceId: string;
|
|
1916
|
-
/** Current time range value — caller passes from its own store */
|
|
1917
|
-
timeRange
|
|
1916
|
+
/** Current time range value — caller passes from its own store. Optional; resolves via `useResolvedTimeRange` when omitted. */
|
|
1917
|
+
timeRange?: TimeRange;
|
|
1918
1918
|
/**
|
|
1919
1919
|
* Render-prop slot for the consumer's ExecutionPanel. The shared layout owns connection
|
|
1920
1920
|
* state and passes it to the slot via `onConnectionStatus`. The resolved
|
|
@@ -1934,7 +1934,7 @@ interface ResourceDetailPageProps {
|
|
|
1934
1934
|
/** Override "Back to Operations" in the not-found state. Defaults to `/operations`. */
|
|
1935
1935
|
onNavigateBack?: () => void;
|
|
1936
1936
|
}
|
|
1937
|
-
declare function ResourceDetailPage({ type, resourceId, timeRange, renderExecutionPanel, renderExecuteDialog, onNavigateToResources, onNavigateToSessions, onNavigateBack }: ResourceDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
1937
|
+
declare function ResourceDetailPage({ type, resourceId, timeRange: timeRangeProp, renderExecutionPanel, renderExecuteDialog, onNavigateToResources, onNavigateToSessions, onNavigateBack }: ResourceDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
1938
1938
|
|
|
1939
1939
|
interface ExecuteAsyncResult {
|
|
1940
1940
|
executionId: string;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, ExecuteWorkflowModal, ExecutionPanel, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionsPage, SystemOpsView, WorkflowExecutionPanel } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
export { DashboardOperationsOverview, OperationsOverview } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, ExecuteWorkflowModal, ExecutionPanel, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionsPage, SystemOpsView, WorkflowExecutionPanel } from '../../chunk-QEQXPWOK.js';
|
|
2
|
+
import '../../chunk-JLKZUO2I.js';
|
|
3
|
+
export { DashboardOperationsOverview, OperationsOverview } from '../../chunk-XUL4UBYJ.js';
|
|
4
|
+
import '../../chunk-SWC54W3A.js';
|
|
5
|
+
import '../../chunk-WDABHUIL.js';
|
|
6
|
+
import '../../chunk-PJN6CMWZ.js';
|
|
7
7
|
import '../../chunk-3MEXPLWT.js';
|
|
8
8
|
import '../../chunk-SNZDFCOQ.js';
|
|
9
9
|
import '../../chunk-QFGNRKIE.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-BLYK6I4D.js';
|
|
11
11
|
import '../../chunk-LGKLC5MG.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-LGJASP5H.js';
|
|
13
13
|
import '../../chunk-YQQ5GRUR.js';
|
|
14
14
|
import '../../chunk-HENXLGVD.js';
|
|
15
15
|
import '../../chunk-BZZCNLT6.js';
|
|
16
|
-
export { OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourcesSidebar, SessionListItem, SessionsSidebar, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-
|
|
16
|
+
export { OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourcesSidebar, SessionListItem, SessionsSidebar, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-PSGSFPWA.js';
|
|
17
17
|
import '../../chunk-4WLAVUPS.js';
|
|
18
18
|
import '../../chunk-RXZ3XDBM.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-7RS2NUC6.js';
|
|
20
20
|
import '../../chunk-L7BZZ4SI.js';
|
|
21
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-PNCJJE4Z.js';
|
|
22
22
|
import '../../chunk-62GVNH5U.js';
|
|
23
23
|
import '../../chunk-P45GQ3ZW.js';
|
|
24
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-IIMC4TRH.js';
|
|
25
25
|
import '../../chunk-3KMDHCAR.js';
|
|
26
26
|
import '../../chunk-2IFYDILW.js';
|
|
27
|
-
import '../../chunk-
|
|
28
|
-
import '../../chunk-
|
|
27
|
+
import '../../chunk-2HXDI4RY.js';
|
|
28
|
+
import '../../chunk-YJ437RDY.js';
|
|
29
29
|
import '../../chunk-DD3CCMCZ.js';
|
|
30
30
|
import '../../chunk-RNP5R5I3.js';
|
|
31
31
|
import '../../chunk-RT4KRGZT.js';
|
|
32
|
-
import '../../chunk-
|
|
33
|
-
import '../../chunk-
|
|
34
|
-
import '../../chunk-
|
|
32
|
+
import '../../chunk-DEZW7QDI.js';
|
|
33
|
+
import '../../chunk-6XBZPKMI.js';
|
|
34
|
+
import '../../chunk-7ZUXA2NW.js';
|
|
35
35
|
import '../../chunk-BI5VDO2K.js';
|
|
36
36
|
import '../../chunk-MQZE7SUI.js';
|
|
37
|
-
import '../../chunk-
|
|
37
|
+
import '../../chunk-34B3ACOZ.js';
|
|
38
38
|
import '../../chunk-BRJ3QZ4E.js';
|
|
39
39
|
import '../../chunk-Q7DJKLEN.js';
|
|
40
40
|
import '../../chunk-I2KLQ2HA.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChatInterface } from '../../chunk-SNZDFCOQ.js';
|
|
2
2
|
import { getWebSocketBaseUrl, createLiveTempMessageIdentity, formatMessageEvent, mergeSessionMessages } from '../../chunk-QFGNRKIE.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import { WebSocketSessionTurnSchema } from '../../chunk-
|
|
3
|
+
import '../../chunk-GY7FXTC4.js';
|
|
4
|
+
import { WebSocketSessionTurnSchema } from '../../chunk-IIMC4TRH.js';
|
|
5
5
|
import '../../chunk-3KMDHCAR.js';
|
|
6
|
-
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-
|
|
7
|
-
import { UuidSchema } from '../../chunk-
|
|
6
|
+
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-6XBZPKMI.js';
|
|
7
|
+
import { UuidSchema } from '../../chunk-34B3ACOZ.js';
|
|
8
8
|
import '../../chunk-I2KLQ2HA.js';
|
|
9
9
|
import { Center, Loader, Paper, Stack, Group, Title, Alert, PasswordInput, Button, Text, List, TextInput, Box, Badge, Divider } from '@mantine/core';
|
|
10
10
|
import { IconLock, IconAlertCircle, IconSend, IconX, IconMessageCircle } from '@tabler/icons-react';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
|
-
export { SEO_PAGE_STATUSES, SEO_PAGE_TYPES, SEO_VERTICALS, SeoAiCitations, SeoFaqItem, SeoInternalLink, SeoLocalData, SeoPageContent, SeoPageStatus, SeoPageType, SeoVertical } from '@repo/core/seo';
|
|
5
4
|
|
|
6
5
|
declare const SEOSidebar: () => react_jsx_runtime.JSX.Element;
|
|
7
6
|
|
|
@@ -2777,13 +2776,6 @@ type Database = {
|
|
|
2777
2776
|
referencedRelation: "users";
|
|
2778
2777
|
referencedColumns: ["id"];
|
|
2779
2778
|
},
|
|
2780
|
-
{
|
|
2781
|
-
foreignKeyName: "prj_notes_milestone_id_fkey";
|
|
2782
|
-
columns: ["milestone_id"];
|
|
2783
|
-
isOneToOne: false;
|
|
2784
|
-
referencedRelation: "prj_milestones";
|
|
2785
|
-
referencedColumns: ["id"];
|
|
2786
|
-
},
|
|
2787
2779
|
{
|
|
2788
2780
|
foreignKeyName: "prj_notes_organization_id_fkey";
|
|
2789
2781
|
columns: ["organization_id"];
|
|
@@ -2797,13 +2789,6 @@ type Database = {
|
|
|
2797
2789
|
isOneToOne: false;
|
|
2798
2790
|
referencedRelation: "prj_projects";
|
|
2799
2791
|
referencedColumns: ["id"];
|
|
2800
|
-
},
|
|
2801
|
-
{
|
|
2802
|
-
foreignKeyName: "prj_notes_task_id_fkey";
|
|
2803
|
-
columns: ["task_id"];
|
|
2804
|
-
isOneToOne: false;
|
|
2805
|
-
referencedRelation: "prj_tasks";
|
|
2806
|
-
referencedColumns: ["id"];
|
|
2807
2792
|
}
|
|
2808
2793
|
];
|
|
2809
2794
|
};
|
|
@@ -3764,6 +3749,109 @@ type SupabaseOrgId = string & {
|
|
|
3764
3749
|
readonly __orgIdBrand: 'supabase';
|
|
3765
3750
|
};
|
|
3766
3751
|
|
|
3752
|
+
declare const SEO_PAGE_TYPES: readonly ["location", "use-case", "comparison", "pillar", "cluster"];
|
|
3753
|
+
type SeoPageType = (typeof SEO_PAGE_TYPES)[number];
|
|
3754
|
+
declare const SEO_PAGE_STATUSES: readonly ["draft", "review", "published", "stale"];
|
|
3755
|
+
type SeoPageStatus = (typeof SEO_PAGE_STATUSES)[number];
|
|
3756
|
+
declare const SEO_VERTICALS: readonly ["veterinary-clinics", "auto-repair", "home-services", "hvac-contractors", "pest-control", "commercial-cleaning", "med-spas", "hoa-property-management", "security-companies"];
|
|
3757
|
+
type SeoVertical = (typeof SEO_VERTICALS)[number];
|
|
3758
|
+
interface SeoChartBase {
|
|
3759
|
+
type: 'bar' | 'donut' | 'metrics-row';
|
|
3760
|
+
title: string;
|
|
3761
|
+
subtitle?: string;
|
|
3762
|
+
source?: string;
|
|
3763
|
+
sourceLabel?: string;
|
|
3764
|
+
section: 'problem' | 'solution' | 'results' | 'use_cases' | 'how_it_works';
|
|
3765
|
+
}
|
|
3766
|
+
/** Bar chart data for SEO page content sections */
|
|
3767
|
+
interface SeoBarChart extends SeoChartBase {
|
|
3768
|
+
type: 'bar';
|
|
3769
|
+
data: Array<{
|
|
3770
|
+
label: string;
|
|
3771
|
+
value: number;
|
|
3772
|
+
color?: string;
|
|
3773
|
+
}>;
|
|
3774
|
+
valueFormat?: string;
|
|
3775
|
+
}
|
|
3776
|
+
/** Donut chart data for SEO page content sections */
|
|
3777
|
+
interface SeoDonutChart extends SeoChartBase {
|
|
3778
|
+
type: 'donut';
|
|
3779
|
+
data: Array<{
|
|
3780
|
+
id: string;
|
|
3781
|
+
label: string;
|
|
3782
|
+
value: number;
|
|
3783
|
+
color?: string;
|
|
3784
|
+
}>;
|
|
3785
|
+
}
|
|
3786
|
+
/** Metrics row data for SEO page content sections */
|
|
3787
|
+
interface SeoMetricsRowChart extends SeoChartBase {
|
|
3788
|
+
type: 'metrics-row';
|
|
3789
|
+
data: Array<{
|
|
3790
|
+
label: string;
|
|
3791
|
+
value: number;
|
|
3792
|
+
suffix: string;
|
|
3793
|
+
description?: string;
|
|
3794
|
+
}>;
|
|
3795
|
+
}
|
|
3796
|
+
/** Union of all chart types embeddable in SEO page content */
|
|
3797
|
+
type SeoChart = SeoBarChart | SeoDonutChart | SeoMetricsRowChart;
|
|
3798
|
+
/** Structured content sections for an SEO page */
|
|
3799
|
+
interface SeoPageContent {
|
|
3800
|
+
subtitle: string;
|
|
3801
|
+
intro?: string;
|
|
3802
|
+
market_context?: string;
|
|
3803
|
+
local_challenges?: string;
|
|
3804
|
+
solution?: string;
|
|
3805
|
+
problem?: string;
|
|
3806
|
+
how_it_works?: Array<{
|
|
3807
|
+
step: number;
|
|
3808
|
+
title: string;
|
|
3809
|
+
description: string;
|
|
3810
|
+
}>;
|
|
3811
|
+
use_cases?: Array<{
|
|
3812
|
+
title: string;
|
|
3813
|
+
description: string;
|
|
3814
|
+
}>;
|
|
3815
|
+
results?: string;
|
|
3816
|
+
methodology?: string;
|
|
3817
|
+
baseline_assumptions?: Record<string, number>;
|
|
3818
|
+
typical_results?: Record<string, number>;
|
|
3819
|
+
cta?: string;
|
|
3820
|
+
charts?: SeoChart[];
|
|
3821
|
+
}
|
|
3822
|
+
/** FAQ item for SEO pages */
|
|
3823
|
+
interface SeoFaqItem {
|
|
3824
|
+
question: string;
|
|
3825
|
+
answer: string;
|
|
3826
|
+
}
|
|
3827
|
+
/** Internal link reference */
|
|
3828
|
+
interface SeoInternalLink {
|
|
3829
|
+
slug: string;
|
|
3830
|
+
anchor_text: string;
|
|
3831
|
+
}
|
|
3832
|
+
/** Local market data for location pages */
|
|
3833
|
+
interface SeoLocalData {
|
|
3834
|
+
business_count?: number;
|
|
3835
|
+
city_population?: number;
|
|
3836
|
+
metro?: string;
|
|
3837
|
+
median_household_income?: number;
|
|
3838
|
+
pet_owning_households?: number;
|
|
3839
|
+
avg_annual_pet_spend?: number;
|
|
3840
|
+
national_avg_pet_spend?: number;
|
|
3841
|
+
avg_commercial_rent_sqft?: number;
|
|
3842
|
+
population?: number;
|
|
3843
|
+
pet_ownership_rate_pct?: number;
|
|
3844
|
+
source?: string;
|
|
3845
|
+
[key: string]: string | number | undefined;
|
|
3846
|
+
}
|
|
3847
|
+
/** AI citation counts per platform */
|
|
3848
|
+
interface SeoAiCitations {
|
|
3849
|
+
chatgpt?: number;
|
|
3850
|
+
perplexity?: number;
|
|
3851
|
+
google_aio?: number;
|
|
3852
|
+
copilot?: number;
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3767
3855
|
type SystemSidebarComponent = ComponentType;
|
|
3768
3856
|
type SystemIconComponent = ComponentType<{
|
|
3769
3857
|
size?: number;
|
|
@@ -4016,5 +4104,5 @@ declare function getStatusColor(status: string | null): "blue" | "green" | "oran
|
|
|
4016
4104
|
declare function getPageTypeColor(pageType: string | null): "teal" | "violet" | "gray" | "cyan" | "indigo" | "pink";
|
|
4017
4105
|
declare function formatVertical(vertical: string): string;
|
|
4018
4106
|
|
|
4019
|
-
export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SeoMetricsPage, SeoPageDetailPage, SeoPagesPage, formatDate, formatVertical, getPageTypeColor, getStatusColor, seoManifest, seoMetricsKeys, seoPageKeys, seoStatsKeys, useDeleteSeoPage, useSeoAggregateMetrics, useSeoPage, useSeoPageMetrics, useSeoPages, useSeoStats, useUpdateSeoPage };
|
|
4020
|
-
export type { AggregateMetrics, SeoMetricsRow, SeoPageDetailPageProps, SeoPageFilters, SeoPageInsert, SeoPageRow, SeoPageUpdate, SeoPagesPageProps, SeoStats };
|
|
4107
|
+
export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SEO_PAGE_STATUSES, SEO_PAGE_TYPES, SEO_VERTICALS, SeoMetricsPage, SeoPageDetailPage, SeoPagesPage, formatDate, formatVertical, getPageTypeColor, getStatusColor, seoManifest, seoMetricsKeys, seoPageKeys, seoStatsKeys, useDeleteSeoPage, useSeoAggregateMetrics, useSeoPage, useSeoPageMetrics, useSeoPages, useSeoStats, useUpdateSeoPage };
|
|
4108
|
+
export type { AggregateMetrics, SeoAiCitations, SeoFaqItem, SeoInternalLink, SeoLocalData, SeoMetricsRow, SeoPageContent, SeoPageDetailPageProps, SeoPageFilters, SeoPageInsert, SeoPageRow, SeoPageStatus, SeoPageType, SeoPageUpdate, SeoPagesPageProps, SeoStats, SeoVertical };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export { SEO_PAGE_STATUSES, SEO_PAGE_TYPES, SEO_VERTICALS, SeoMetricsPage, SeoPageDetailPage, SeoPagesPage, formatDate, formatVertical, getPageTypeColor, getStatusColor, seoMetricsKeys, seoPageKeys, seoStatsKeys, useDeleteSeoPage, useSeoAggregateMetrics, useSeoPage, useSeoPageMetrics, useSeoPages, useSeoStats, useUpdateSeoPage } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { SEO_PAGE_STATUSES, SEO_PAGE_TYPES, SEO_VERTICALS, SeoMetricsPage, SeoPageDetailPage, SeoPagesPage, formatDate, formatVertical, getPageTypeColor, getStatusColor, seoMetricsKeys, seoPageKeys, seoStatsKeys, useDeleteSeoPage, useSeoAggregateMetrics, useSeoPage, useSeoPageMetrics, useSeoPages, useSeoStats, useUpdateSeoPage } from '../../chunk-TLMNBOAG.js';
|
|
2
|
+
import '../../chunk-AI5OYVLR.js';
|
|
3
3
|
import '../../chunk-MKH2KOAO.js';
|
|
4
4
|
import '../../chunk-2Y6AKWGU.js';
|
|
5
5
|
import '../../chunk-WDBNW44Z.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-SOBKRB4N.js';
|
|
7
7
|
import '../../chunk-BZZCNLT6.js';
|
|
8
8
|
import '../../chunk-TUMSNGTX.js';
|
|
9
9
|
import '../../chunk-PDHTXPSF.js';
|
|
10
|
-
export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../../chunk-
|
|
10
|
+
export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../../chunk-PSGSFPWA.js';
|
|
11
11
|
import '../../chunk-4WLAVUPS.js';
|
|
12
12
|
import '../../chunk-RXZ3XDBM.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-7RS2NUC6.js';
|
|
14
14
|
import '../../chunk-L7BZZ4SI.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-PNCJJE4Z.js';
|
|
16
16
|
import '../../chunk-62GVNH5U.js';
|
|
17
17
|
import '../../chunk-P45GQ3ZW.js';
|
|
18
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-IIMC4TRH.js';
|
|
19
19
|
import '../../chunk-3KMDHCAR.js';
|
|
20
20
|
import '../../chunk-2IFYDILW.js';
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-2HXDI4RY.js';
|
|
22
|
+
import '../../chunk-YJ437RDY.js';
|
|
23
23
|
import '../../chunk-DD3CCMCZ.js';
|
|
24
24
|
import '../../chunk-RNP5R5I3.js';
|
|
25
25
|
import '../../chunk-RT4KRGZT.js';
|
|
26
|
-
import '../../chunk-
|
|
27
|
-
import '../../chunk-
|
|
28
|
-
import '../../chunk-
|
|
26
|
+
import '../../chunk-DEZW7QDI.js';
|
|
27
|
+
import '../../chunk-6XBZPKMI.js';
|
|
28
|
+
import '../../chunk-7ZUXA2NW.js';
|
|
29
29
|
import '../../chunk-BI5VDO2K.js';
|
|
30
30
|
import '../../chunk-MQZE7SUI.js';
|
|
31
|
-
import '../../chunk-
|
|
31
|
+
import '../../chunk-34B3ACOZ.js';
|
|
32
32
|
import '../../chunk-BRJ3QZ4E.js';
|
|
33
33
|
import '../../chunk-Q7DJKLEN.js';
|
|
34
34
|
import '../../chunk-I2KLQ2HA.js';
|
|
@@ -5,7 +5,7 @@ import { ComponentType } from 'react';
|
|
|
5
5
|
/**
|
|
6
6
|
* Concrete row shapes for the published Supabase tables.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* @generated by packages/core/scripts/gen-published-rows.mjs — DO NOT EDIT. Re-run `pnpm gen:published-rows`.
|
|
9
9
|
*
|
|
10
10
|
* These were `Tables<'users'>` / `TablesInsert<...>` aliases in `./index.ts`. Each one indexes
|
|
11
11
|
* into the generated `Database` type, and a published `.d.ts` that references `Database` makes
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings } from '../../chunk-
|
|
1
|
+
export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings } from '../../chunk-52AZTFUR.js';
|
|
2
2
|
import '../../chunk-IIEZXXDD.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-SHJYK2X4.js';
|
|
4
|
+
import '../../chunk-LGJASP5H.js';
|
|
5
5
|
import '../../chunk-PDHTXPSF.js';
|
|
6
|
-
export { settingsManifest } from '../../chunk-
|
|
6
|
+
export { settingsManifest } from '../../chunk-PSGSFPWA.js';
|
|
7
7
|
import '../../chunk-4WLAVUPS.js';
|
|
8
8
|
import '../../chunk-RXZ3XDBM.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-7RS2NUC6.js';
|
|
10
10
|
import '../../chunk-L7BZZ4SI.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-PNCJJE4Z.js';
|
|
12
12
|
import '../../chunk-62GVNH5U.js';
|
|
13
13
|
import '../../chunk-P45GQ3ZW.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-IIMC4TRH.js';
|
|
15
15
|
import '../../chunk-3KMDHCAR.js';
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
|
-
import '../../chunk-
|
|
18
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-2HXDI4RY.js';
|
|
18
|
+
import '../../chunk-YJ437RDY.js';
|
|
19
19
|
import '../../chunk-DD3CCMCZ.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-RT4KRGZT.js';
|
|
22
|
-
import '../../chunk-
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-DEZW7QDI.js';
|
|
23
|
+
import '../../chunk-6XBZPKMI.js';
|
|
24
|
+
import '../../chunk-7ZUXA2NW.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
|
-
import '../../chunk-
|
|
27
|
+
import '../../chunk-34B3ACOZ.js';
|
|
28
28
|
import '../../chunk-BRJ3QZ4E.js';
|
|
29
29
|
import '../../chunk-Q7DJKLEN.js';
|
|
30
30
|
import '../../chunk-I2KLQ2HA.js';
|
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Branded organization identifiers.
|
|
5
|
+
*
|
|
6
|
+
* Every organization carries TWO distinct ID values that are both plain
|
|
7
|
+
* strings at runtime but mean different things:
|
|
8
|
+
*
|
|
9
|
+
* - WorkOS organization id (`org_...`) -- the auth/JWT identity. Used for API
|
|
10
|
+
* requests, SSE headers, and org-scoped query keys.
|
|
11
|
+
* - Supabase organization id (UUID) -- the database key. Used for
|
|
12
|
+
* `.eq('organization_id', ...)` queries and RLS scoping.
|
|
13
|
+
*
|
|
14
|
+
* They are not interchangeable, yet both are `string` -- so a swap compiles
|
|
15
|
+
* cleanly and fails silently (zero rows on the Supabase side, cross-pollinated
|
|
16
|
+
* cache keys on the API side). These brands make the two non-assignable to one
|
|
17
|
+
* another, turning that silent footgun into a compile error at the sink.
|
|
18
|
+
*
|
|
19
|
+
* Mint a brand only through the `as*` factories below: they are the single
|
|
20
|
+
* validate-and-tag boundary (compile-time brand + runtime format check). The
|
|
21
|
+
* type predicates double as the cast, so no raw `as` cast is needed anywhere.
|
|
22
|
+
*
|
|
23
|
+
* Lives on the published `@repo/core` / `@repo/core/auth` surface so the UI,
|
|
24
|
+
* the API, and the dogfooding `@repo/elevasis-*` packages can all use it.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The brands are keyed on a string literal, NOT on a `declare const ...: unique symbol`.
|
|
28
|
+
*
|
|
29
|
+
* A `unique symbol` is nominal per declaration site. `@repo/ui`'s rollup-dts pipeline
|
|
30
|
+
* inlines `@repo/core` types into every published subpath bundle (that inlining is what
|
|
31
|
+
* `/sdk release-ui` Step 4a enforces), so a symbol-keyed brand is re-declared once per
|
|
32
|
+
* bundle and TypeScript treats each copy as a different type. In the monorepo every
|
|
33
|
+
* import resolves to this one file and it all works; for an external consumer, a value
|
|
34
|
+
* from `@elevasis/ui/organization` passed into a component from
|
|
35
|
+
* `@elevasis/ui/features/settings` fails with TS2719 "Two different types with this name
|
|
36
|
+
* exist, but they are unrelated." Measured 2026-08-27 against `@elevasis/ui@2.76.0`,
|
|
37
|
+
* where seven separate `supabaseOrgIdBrand` symbols shipped across six ui subpaths and
|
|
38
|
+
* `@elevasis/core/auth`.
|
|
39
|
+
*
|
|
40
|
+
* A literal-keyed brand is structural, so every inlined copy is the same type. It still
|
|
41
|
+
* refuses a bare `string` and still keeps the two ids mutually non-assignable, which is
|
|
42
|
+
* the entire job. Do not "restore" the symbol form.
|
|
43
|
+
*/
|
|
44
|
+
/** A Supabase organization id (UUID) -- the database key for RLS-scoped rows. */
|
|
45
|
+
type SupabaseOrgId = string & {
|
|
46
|
+
readonly __orgIdBrand: 'supabase';
|
|
47
|
+
};
|
|
48
|
+
|
|
3
49
|
declare const AccessKeyInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4
50
|
systemPath: z.ZodString;
|
|
5
51
|
action: z.ZodDefault<z.ZodEnum<{
|
|
@@ -101,5 +147,18 @@ interface UseAccessResult extends AccessAnswer {
|
|
|
101
147
|
*/
|
|
102
148
|
declare function useAccess(key: AccessKeyInput): UseAccessResult;
|
|
103
149
|
|
|
104
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Query keys for the effective-permissions fetch behind `useAccess`.
|
|
152
|
+
*
|
|
153
|
+
* Note the org id here is the SUPABASE org id, not the WorkOS one every other hook
|
|
154
|
+
* domain keys on -- `useAccess` reads it from `OrganizationContextValue`, and the
|
|
155
|
+
* `/memberships/my-permissions/:id` route it calls expects that form. Keying on the
|
|
156
|
+
* WorkOS id would produce a key that looks right and caches the wrong tenant's answer.
|
|
157
|
+
*/
|
|
158
|
+
declare const accessKeys: {
|
|
159
|
+
all: readonly ["access-permissions"];
|
|
160
|
+
permissions: (organizationId: SupabaseOrgId | null) => readonly ["access-permissions", SupabaseOrgId | null];
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export { AccessKeys, accessKeys, useAccess };
|
|
105
164
|
export type { AccessKeyInput, UseAccessResult };
|