@elevasis/ui 1.3.4 → 1.3.6
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/api/index.js +1 -1
- package/dist/auth/index.d.ts +174 -14
- package/dist/{chunk-XLV6LYN2.js → chunk-LBPALY25.js} +0 -1
- package/dist/{chunk-LTQAAIGE.js → chunk-Y2I5JJ3N.js} +1 -1
- package/dist/hooks/index.d.ts +4401 -11
- package/dist/hooks/published.d.ts +4529 -19
- package/dist/index.d.ts +6316 -15
- package/dist/index.js +18 -97
- package/dist/initialization/index.d.ts +2222 -22
- package/dist/organization/index.d.ts +266 -21
- package/dist/profile/index.d.ts +2158 -14
- package/dist/provider/index.d.ts +266 -7
- package/dist/provider/index.js +12 -3
- package/dist/provider/published.d.ts +263 -9
- package/dist/provider/published.js +2 -2
- package/dist/types/index.d.ts +3403 -0
- package/dist/types/index.js +1 -0
- package/package.json +50 -5
- package/dist/auth/guards/AdminGuard.d.ts +0 -32
- package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
- package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
- package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/index.d.ts +0 -7
- package/dist/hooks/command-queue/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
- package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
- package/dist/hooks/executions/index.d.ts +0 -16
- package/dist/hooks/executions/index.d.ts.map +0 -1
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
- package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
- package/dist/hooks/executions/useExecution.d.ts +0 -10
- package/dist/hooks/executions/useExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecutions.d.ts +0 -16
- package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
- package/dist/hooks/executions/useResources.d.ts +0 -15
- package/dist/hooks/executions/useResources.d.ts.map +0 -1
- package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
- package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -44
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
- package/dist/hooks/feature-access/index.d.ts +0 -2
- package/dist/hooks/feature-access/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/index.d.ts +0 -9
- package/dist/hooks/monitoring/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/useActivities.d.ts +0 -52
- package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
- package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
- package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
- package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
- package/dist/hooks/notifications/index.d.ts +0 -8
- package/dist/hooks/notifications/index.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useNotificationCount.d.ts +0 -8
- package/dist/hooks/notifications/useNotificationCount.d.ts.map +0 -1
- package/dist/hooks/observability/index.d.ts +0 -19
- package/dist/hooks/observability/index.d.ts.map +0 -1
- package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
- package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
- package/dist/hooks/observability/useCostByModel.d.ts +0 -3
- package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
- package/dist/hooks/observability/useCostTrends.d.ts +0 -3
- package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
- package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
- package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useResolveError.d.ts +0 -17
- package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
- package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
- package/dist/hooks/published.d.ts.map +0 -1
- package/dist/hooks/scheduling/index.d.ts +0 -5
- package/dist/hooks/scheduling/index.d.ts.map +0 -1
- package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
- package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
- package/dist/hooks/sessions/index.d.ts +0 -8
- package/dist/hooks/sessions/index.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessions.d.ts +0 -26
- package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initialization/InitializationProvider.d.ts +0 -48
- package/dist/initialization/InitializationProvider.d.ts.map +0 -1
- package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
- package/dist/initialization/index.d.ts.map +0 -1
- package/dist/organization/context/OrganizationProvider.d.ts +0 -20
- package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
- package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
- package/dist/organization/index.d.ts.map +0 -1
- package/dist/profile/context/ProfileProvider.d.ts +0 -27
- package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
- package/dist/profile/hooks/useUserProfile.d.ts +0 -31
- package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
- package/dist/profile/index.d.ts.map +0 -1
- package/dist/provider/CoreAuthKitInner.d.ts +0 -12
- package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
- package/dist/provider/ElevasisCoreProvider.d.ts +0 -39
- package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
- package/dist/provider/ElevasisServiceContext.d.ts +0 -31
- package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/published.d.ts.map +0 -1
- package/dist/provider/types.d.ts +0 -143
- package/dist/provider/types.d.ts.map +0 -1
- package/dist/provider/types.js +0 -1
- package/dist/sdk-barrel.d.ts +0 -20
- package/dist/sdk-barrel.d.ts.map +0 -1
- package/dist/theme/cssVariables.d.ts +0 -12
- package/dist/theme/cssVariables.d.ts.map +0 -1
- package/dist/theme/cssVariables.js +0 -93
- package/dist/theme/index.d.ts +0 -4
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -1
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
- package/dist/theme/presets/abyss.d.ts +0 -3
- package/dist/theme/presets/abyss.d.ts.map +0 -1
- package/dist/theme/presets/abyss.js +0 -54
- package/dist/theme/presets/aurora.d.ts +0 -8
- package/dist/theme/presets/aurora.d.ts.map +0 -1
- package/dist/theme/presets/aurora.js +0 -59
- package/dist/theme/presets/canopy.d.ts +0 -3
- package/dist/theme/presets/canopy.d.ts.map +0 -1
- package/dist/theme/presets/canopy.js +0 -58
- package/dist/theme/presets/cyber-flux.d.ts +0 -8
- package/dist/theme/presets/cyber-flux.d.ts.map +0 -1
- package/dist/theme/presets/cyber-flux.js +0 -66
- package/dist/theme/presets/cyber-strike.d.ts +0 -9
- package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
- package/dist/theme/presets/cyber-strike.js +0 -62
- package/dist/theme/presets/cyber-void.d.ts +0 -8
- package/dist/theme/presets/cyber-void.d.ts.map +0 -1
- package/dist/theme/presets/cyber-void.js +0 -62
- package/dist/theme/presets/cyber-volt.d.ts +0 -8
- package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
- package/dist/theme/presets/cyber-volt.js +0 -66
- package/dist/theme/presets/default.d.ts +0 -4
- package/dist/theme/presets/default.d.ts.map +0 -1
- package/dist/theme/presets/ember.d.ts +0 -8
- package/dist/theme/presets/ember.d.ts.map +0 -1
- package/dist/theme/presets/ember.js +0 -63
- package/dist/theme/presets/honey.d.ts +0 -3
- package/dist/theme/presets/honey.d.ts.map +0 -1
- package/dist/theme/presets/honey.js +0 -62
- package/dist/theme/presets/index.d.ts +0 -6
- package/dist/theme/presets/index.d.ts.map +0 -1
- package/dist/theme/presets/index.js +0 -39
- package/dist/theme/presets/midnight.d.ts +0 -8
- package/dist/theme/presets/midnight.d.ts.map +0 -1
- package/dist/theme/presets/midnight.js +0 -68
- package/dist/theme/presets/obsidian.d.ts +0 -3
- package/dist/theme/presets/obsidian.d.ts.map +0 -1
- package/dist/theme/presets/obsidian.js +0 -56
- package/dist/theme/presets/regal.d.ts +0 -8
- package/dist/theme/presets/regal.d.ts.map +0 -1
- package/dist/theme/presets/regal.js +0 -63
- package/dist/theme/presets/rose-gold.d.ts +0 -8
- package/dist/theme/presets/rose-gold.d.ts.map +0 -1
- package/dist/theme/presets/rose-gold.js +0 -63
- package/dist/theme/presets/slate.d.ts +0 -3
- package/dist/theme/presets/slate.d.ts.map +0 -1
- package/dist/theme/presets/slate.js +0 -56
- package/dist/theme/presets/tactical.d.ts +0 -8
- package/dist/theme/presets/tactical.d.ts.map +0 -1
- package/dist/theme/presets/tactical.js +0 -57
- package/dist/theme/presets/types.d.ts +0 -26
- package/dist/theme/presets/types.d.ts.map +0 -1
- package/dist/theme/presets/types.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,19 +38,64 @@
|
|
|
38
38
|
"./organization": {
|
|
39
39
|
"types": "./dist/organization/index.d.ts",
|
|
40
40
|
"import": "./dist/organization/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./types": {
|
|
43
|
+
"types": "./dist/types/index.d.ts",
|
|
44
|
+
"import": "./dist/types/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"name": "@elevasis/ui",
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^19.2.0",
|
|
51
|
+
"react-dom": "^19.2.0",
|
|
52
|
+
"@tanstack/react-query": "^5.76.2",
|
|
53
|
+
"@tanstack/react-router": "^1.131.28",
|
|
54
|
+
"zod": "^4.1.0",
|
|
55
|
+
"zustand": "^5.0.5",
|
|
56
|
+
"immer": "^10.1.1"
|
|
41
57
|
}
|
|
42
58
|
},
|
|
43
59
|
"peerDependencies": {
|
|
44
60
|
"react": "^19.2.0",
|
|
45
61
|
"react-dom": "^19.2.0",
|
|
46
|
-
"@
|
|
62
|
+
"@xyflow/react": "^12.8.5",
|
|
63
|
+
"@mantine/core": "8.2.7",
|
|
64
|
+
"@mantine/hooks": "8.2.7",
|
|
65
|
+
"@tabler/icons-react": "^3.27.0",
|
|
47
66
|
"@tanstack/react-router": "^1.131.28",
|
|
48
|
-
"
|
|
67
|
+
"@supabase/supabase-js": "^2.49.4",
|
|
68
|
+
"@workos-inc/authkit-react": "^0.11.0",
|
|
69
|
+
"@tanstack/react-query": "^5.76.2",
|
|
49
70
|
"zustand": "^5.0.5",
|
|
50
|
-
"immer": "^10.1.1"
|
|
71
|
+
"immer": "^10.1.1",
|
|
72
|
+
"date-fns": "^4.1.0",
|
|
73
|
+
"zod": "^4.1.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/react": "^19.2.2",
|
|
77
|
+
"@types/react-dom": "^19.1.9",
|
|
78
|
+
"globals": "^16.3.0",
|
|
79
|
+
"rollup": "^4.59.0",
|
|
80
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
81
|
+
"tsup": "^8.0.0",
|
|
82
|
+
"typescript": "5.9.2",
|
|
83
|
+
"vite": "^7.0.0",
|
|
84
|
+
"@repo/core": "0.0.0",
|
|
85
|
+
"@repo/typescript-config": "0.0.0",
|
|
86
|
+
"@repo/eslint-config": "0.0.0"
|
|
51
87
|
},
|
|
52
88
|
"dependencies": {
|
|
53
89
|
"@dagrejs/dagre": "^1.1.4",
|
|
54
90
|
"@microsoft/fetch-event-source": "^2.0.1"
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "tsc",
|
|
94
|
+
"build:publish": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && node -e \"require('fs').rmSync('dist/_dts',{recursive:true,force:true})\"",
|
|
95
|
+
"dev": "tsc --watch",
|
|
96
|
+
"lint": "eslint src --max-warnings 0",
|
|
97
|
+
"check-types": "tsc --noEmit",
|
|
98
|
+
"test": "vitest run --passWithNoTests",
|
|
99
|
+
"test:watch": "vitest watch"
|
|
55
100
|
}
|
|
56
|
-
}
|
|
101
|
+
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export interface AdminGuardProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Path to redirect non-admin users to.
|
|
6
|
-
* @default '/'
|
|
7
|
-
*/
|
|
8
|
-
redirectTo?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Rendered while user readiness is being determined.
|
|
11
|
-
* When not provided, nothing is rendered during initialization.
|
|
12
|
-
*/
|
|
13
|
-
fallback?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Headless route guard for platform admin pages.
|
|
17
|
-
*
|
|
18
|
-
* Reads `profile.is_platform_admin` from the nearest InitializationProvider.
|
|
19
|
-
* Non-admin users are redirected to `redirectTo` (default: '/').
|
|
20
|
-
*
|
|
21
|
-
* Must be nested inside a ProtectedRoute (or equivalent) so that
|
|
22
|
-
* `userReady` is guaranteed to be true when this guard runs.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* <ProtectedRoute>
|
|
26
|
-
* <AdminGuard fallback={<AppShellLoader />}>
|
|
27
|
-
* <AdminDashboard />
|
|
28
|
-
* </AdminGuard>
|
|
29
|
-
* </ProtectedRoute>
|
|
30
|
-
*/
|
|
31
|
-
export declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
-
//# sourceMappingURL=AdminGuard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminGuard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/AdminGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAgB,EAAE,QAAe,EAAE,EAAE,eAAe,kDA0B1F"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { InitializationError } from '../../initialization/hooks/useAppInitialization';
|
|
3
|
-
export interface ProtectedRouteProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* Path to redirect to when user is unauthenticated and the auth adapter
|
|
7
|
-
* does not provide a `signIn` function.
|
|
8
|
-
* @default '/login'
|
|
9
|
-
*/
|
|
10
|
-
redirectTo?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Rendered while initialization is in progress.
|
|
13
|
-
* When not provided, nothing is rendered during initialization.
|
|
14
|
-
*/
|
|
15
|
-
fallback?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Rendered when initialization fails with a non-organization error.
|
|
18
|
-
* Receives the error and a retry callback.
|
|
19
|
-
* When not provided, the error is silently swallowed (children not rendered).
|
|
20
|
-
*/
|
|
21
|
-
errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* When true (default), waits for both user AND organization to be ready
|
|
24
|
-
* before rendering children. When false, only waits for user readiness.
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
waitForOrganization?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Headless route guard for authenticated pages.
|
|
31
|
-
*
|
|
32
|
-
* Reads initialization state from the nearest InitializationProvider.
|
|
33
|
-
*
|
|
34
|
-
* When `canRecover()` returns true (refresh token exists), unauthenticated users
|
|
35
|
-
* are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
|
|
36
|
-
* server-side session and either signs the user in immediately (page-reload case)
|
|
37
|
-
* or shows a login form (logged-out case). Explicit logout destroys the
|
|
38
|
-
* server-side session, so the next auto-signIn correctly presents a login form
|
|
39
|
-
* rather than looping.
|
|
40
|
-
*
|
|
41
|
-
* When `canRecover()` returns false, falls back to navigating to `redirectTo`
|
|
42
|
-
* (default: '/login') with a `returnTo` search param.
|
|
43
|
-
*
|
|
44
|
-
* Organization-layer errors are allowed through -- routes like /invitations
|
|
45
|
-
* must be accessible even when the user has no org membership.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* // With custom fallback (your Mantine loader):
|
|
49
|
-
* <ProtectedRoute fallback={<AppShellLoader />}>
|
|
50
|
-
* <DashboardPage />
|
|
51
|
-
* </ProtectedRoute>
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // Wait only for user, not org (e.g. /invitations route):
|
|
55
|
-
* <ProtectedRoute waitForOrganization={false}>
|
|
56
|
-
* <InvitationsPage />
|
|
57
|
-
* </ProtectedRoute>
|
|
58
|
-
*/
|
|
59
|
-
export declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
-
//# sourceMappingURL=ProtectedRoute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/ProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IAC5E;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAqB,EACrB,QAAe,EACf,aAAa,EACb,mBAA0B,EAC3B,EAAE,mBAAmB,kDAyDrB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AdminGuard Tests (shared @repo/ui guard)
|
|
3
|
-
*
|
|
4
|
-
* Tests role-based access control for platform admin pages:
|
|
5
|
-
* - Shows fallback while user is not ready
|
|
6
|
-
* - Renders children for platform admin users
|
|
7
|
-
* - Redirects non-admin users to redirectTo (default: '/')
|
|
8
|
-
* - Handles missing profile gracefully
|
|
9
|
-
* - Supports custom redirectTo
|
|
10
|
-
*/
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=AdminGuard.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminGuard.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/AdminGuard.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProtectedRoute Tests (shared @repo/ui guard)
|
|
3
|
-
*
|
|
4
|
-
* Tests headless authentication guard behavior:
|
|
5
|
-
* - Shows fallback while initializing
|
|
6
|
-
* - Redirects unauthenticated users to login with returnTo
|
|
7
|
-
* - Renders children when user is ready
|
|
8
|
-
* - Renders children when org error (allows /invitations route pattern)
|
|
9
|
-
* - Shows errorFallback for non-organization errors
|
|
10
|
-
* - Waits for org readiness when waitForOrganization=true (default)
|
|
11
|
-
* - Renders after user ready when waitForOrganization=false
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ProtectedRoute.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedRoute.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/ProtectedRoute.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|
package/dist/auth/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/E,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { useCommandQueue } from './useCommandQueue';
|
|
2
|
-
export { useSubmitAction } from './useSubmitAction';
|
|
3
|
-
export type { SubmitActionRequest, ExecutionErrorDetails, SubmitActionResponse } from './useSubmitAction';
|
|
4
|
-
export { useDeleteTask } from './useDeleteTask';
|
|
5
|
-
export { useCommandQueueTotals } from './useCommandQueueTotals';
|
|
6
|
-
export { usePatchTask } from './usePatchTask';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACzG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { TaskStatus, TimeRange } from '@repo/core';
|
|
2
|
-
export declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
3
|
-
status?: TaskStatus;
|
|
4
|
-
limit?: number;
|
|
5
|
-
offset?: number;
|
|
6
|
-
humanCheckpoint?: string;
|
|
7
|
-
timeRange?: TimeRange;
|
|
8
|
-
priorityMin?: number;
|
|
9
|
-
priorityMax?: number;
|
|
10
|
-
}): import("@tanstack/react-query").UseQueryResult<{
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
completedAt: Date | undefined;
|
|
13
|
-
expiresAt: Date | undefined;
|
|
14
|
-
id: string;
|
|
15
|
-
organizationId: string;
|
|
16
|
-
actions: import("@repo/core").ActionConfig[];
|
|
17
|
-
context: unknown;
|
|
18
|
-
selectedAction?: string;
|
|
19
|
-
actionPayload?: unknown;
|
|
20
|
-
description?: string;
|
|
21
|
-
priority: number;
|
|
22
|
-
humanCheckpoint?: string;
|
|
23
|
-
status: TaskStatus;
|
|
24
|
-
targetResourceId?: string;
|
|
25
|
-
targetResourceType?: "agent" | "workflow";
|
|
26
|
-
targetExecutionId?: string;
|
|
27
|
-
completedBy?: string;
|
|
28
|
-
idempotencyKey?: string | null;
|
|
29
|
-
originExecutionId: string;
|
|
30
|
-
originResourceType: import("@repo/core").OriginResourceType;
|
|
31
|
-
originResourceId: string;
|
|
32
|
-
}[], Error>;
|
|
33
|
-
//# sourceMappingURL=useCommandQueue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCommandQueue.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/useCommandQueue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE7D,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,KAAK,EACL,MAAM,EACN,eAAe,EACf,SAAS,EACT,WAAW,EACX,WAAW,GACZ,GAAE;IACD,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;;;;;;;;;;;;;;;;;YA6BL"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { CheckpointListResponse, TimeRange } from '@repo/core';
|
|
2
|
-
interface UseCommandQueueTotalsOptions {
|
|
3
|
-
timeRange?: TimeRange;
|
|
4
|
-
priorityMin?: number;
|
|
5
|
-
priorityMax?: number;
|
|
6
|
-
/** When set, priorityCounts are scoped to this status only */
|
|
7
|
-
status?: 'pending' | 'completed' | 'expired';
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Fetches command queue totals and checkpoint groupings
|
|
11
|
-
*
|
|
12
|
-
* Returns distinct human checkpoints with task counts and status breakdown.
|
|
13
|
-
* Used for sidebar grouping and donut charts (true totals, not paginated).
|
|
14
|
-
*/
|
|
15
|
-
export declare function useCommandQueueTotals({ timeRange, priorityMin, priorityMax, status }?: UseCommandQueueTotalsOptions): import("@tanstack/react-query").UseQueryResult<CheckpointListResponse, Error>;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=useCommandQueueTotals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCommandQueueTotals.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/useCommandQueueTotals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEnE,UAAU,4BAA4B;IACpC,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAA;CAC7C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAiB,EACjB,WAAW,EACX,WAAW,EACX,MAAM,EACP,GAAE,4BAAiC,iFAgBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteTask.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/useDeleteTask.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,wBAAgB,aAAa;;GAwC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePatchTask.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/usePatchTask.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEvD,wBAAgB,YAAY;YAMyB,MAAM;YAAU,eAAe;YAuBnF"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Task } from '@repo/core';
|
|
2
|
-
export interface SubmitActionRequest {
|
|
3
|
-
taskId: string;
|
|
4
|
-
actionId: string;
|
|
5
|
-
payload?: unknown;
|
|
6
|
-
notes?: string;
|
|
7
|
-
}
|
|
8
|
-
interface OptimisticContext {
|
|
9
|
-
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
10
|
-
}
|
|
11
|
-
export interface ExecutionErrorDetails {
|
|
12
|
-
message: string;
|
|
13
|
-
type: string;
|
|
14
|
-
severity: 'critical' | 'warning' | 'info';
|
|
15
|
-
category: 'llm' | 'tool' | 'workflow' | 'agent' | 'validation' | 'system';
|
|
16
|
-
details?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface SubmitActionResponse {
|
|
19
|
-
task: unknown;
|
|
20
|
-
execution?: {
|
|
21
|
-
executionId: string;
|
|
22
|
-
success: boolean;
|
|
23
|
-
data?: unknown;
|
|
24
|
-
error?: ExecutionErrorDetails;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare function useSubmitAction(): import("@tanstack/react-query").UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=useSubmitAction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSubmitAction.d.ts","sourceRoot":"","sources":["../../../src/hooks/command-queue/useSubmitAction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,iBAAiB;IACzB,YAAY,EAAE,GAAG,CAAC,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,CAAA;CAC1D;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAA;IACzC,QAAQ,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAA;IACzE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE;QACV,WAAW,EAAE,MAAM,CAAA;QACnB,OAAO,EAAE,OAAO,CAAA;QAChB,IAAI,CAAC,EAAE,OAAO,CAAA;QACd,KAAK,CAAC,EAAE,qBAAqB,CAAA;KAC9B,CAAA;CACF;AAED,wBAAgB,eAAe,2HAkD9B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { executionsKeys } from './queryKeys';
|
|
2
|
-
export { useExecutions } from './useExecutions';
|
|
3
|
-
export { useExecution } from './useExecution';
|
|
4
|
-
export { useExecuteAsync } from './useExecuteAsync';
|
|
5
|
-
export type { ExecuteAsyncParams, ExecuteAsyncResult } from './useExecuteAsync';
|
|
6
|
-
export { useRetryExecution } from './useRetryExecution';
|
|
7
|
-
export type { RetryExecutionParams } from './useRetryExecution';
|
|
8
|
-
export { useCancelExecution } from './useCancelExecution';
|
|
9
|
-
export type { CancelExecutionParams, CancelExecutionResult } from './useCancelExecution';
|
|
10
|
-
export { useDeleteExecution } from './useDeleteExecution';
|
|
11
|
-
export type { DeleteExecutionParams } from './useDeleteExecution';
|
|
12
|
-
export { useBulkDeleteExecutions } from './useBulkDeleteExecutions';
|
|
13
|
-
export type { BulkDeleteExecutionsParams, BulkDeleteExecutionsResult } from './useBulkDeleteExecutions';
|
|
14
|
-
export { useResources } from './useResources';
|
|
15
|
-
export { useResourceDefinition } from './useResourceDefinition';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,YAAY,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ResourceStatus } from '@repo/core/execution';
|
|
2
|
-
export interface BulkDeleteExecutionsParams {
|
|
3
|
-
resourceId: string;
|
|
4
|
-
resourceStatus?: ResourceStatus | 'all';
|
|
5
|
-
}
|
|
6
|
-
export interface BulkDeleteExecutionsResult {
|
|
7
|
-
resourceId: string;
|
|
8
|
-
deletedCount: number;
|
|
9
|
-
resourceStatus?: ResourceStatus | 'all';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Bulk delete executions for a resource, optionally filtered by status.
|
|
13
|
-
*/
|
|
14
|
-
export declare function useBulkDeleteExecutions(): import("@tanstack/react-query").UseMutationResult<BulkDeleteExecutionsResult, Error, BulkDeleteExecutionsParams, unknown>;
|
|
15
|
-
//# sourceMappingURL=useBulkDeleteExecutions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBulkDeleteExecutions.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useBulkDeleteExecutions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAI1D,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,CAAA;CACxC;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,CAAA;CACxC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,8HA2BtC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface CancelExecutionParams {
|
|
2
|
-
resourceId: string;
|
|
3
|
-
executionId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface CancelExecutionResult {
|
|
6
|
-
cancelled: boolean;
|
|
7
|
-
method: string;
|
|
8
|
-
resourceId: string;
|
|
9
|
-
executionId: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Cancel a running execution.
|
|
13
|
-
* Invalidates both the execution detail and the executions list on success.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const { mutate: cancel, isPending } = useCancelExecution()
|
|
17
|
-
* cancel({ resourceId, executionId })
|
|
18
|
-
*/
|
|
19
|
-
export declare function useCancelExecution(): import("@tanstack/react-query").UseMutationResult<CancelExecutionResult, Error, CancelExecutionParams, unknown>;
|
|
20
|
-
//# sourceMappingURL=useCancelExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCancelExecution.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useCancelExecution.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,oHAqBjC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface DeleteExecutionParams {
|
|
2
|
-
resourceId: string;
|
|
3
|
-
executionId: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Delete a single execution record.
|
|
7
|
-
* Removes the execution from cache immediately and invalidates the list.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useDeleteExecution(): import("@tanstack/react-query").UseMutationResult<{
|
|
10
|
-
resourceId: string;
|
|
11
|
-
executionId: string;
|
|
12
|
-
}, Error, DeleteExecutionParams, unknown>;
|
|
13
|
-
//# sourceMappingURL=useDeleteExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteExecution.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useDeleteExecution.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB;;;0CAoBjC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ResourceType } from '@repo/core/execution';
|
|
2
|
-
export interface ExecuteAsyncParams {
|
|
3
|
-
resourceId: string;
|
|
4
|
-
resourceType: ResourceType;
|
|
5
|
-
input: unknown;
|
|
6
|
-
}
|
|
7
|
-
export interface ExecuteAsyncResult {
|
|
8
|
-
executionId: string;
|
|
9
|
-
status: string;
|
|
10
|
-
resourceId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Trigger an async execution for a workflow or agent.
|
|
14
|
-
* Invalidates the executions list on success so the new execution appears immediately.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* const { mutate: execute, isPending } = useExecuteAsync()
|
|
18
|
-
* execute({ resourceId, resourceType: 'workflow', input: { ... } })
|
|
19
|
-
*/
|
|
20
|
-
export declare function useExecuteAsync(): import("@tanstack/react-query").UseMutationResult<ExecuteAsyncResult, Error, ExecuteAsyncParams, unknown>;
|
|
21
|
-
//# sourceMappingURL=useExecuteAsync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecuteAsync.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useExecuteAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,KAAK,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,8GAkB9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { APIExecutionDetail } from '@repo/core/execution';
|
|
2
|
-
/**
|
|
3
|
-
* Fetch a single execution detail.
|
|
4
|
-
* Automatically polls every 2 seconds while the execution status is 'running'.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* const { data: execution, isLoading } = useExecution(resourceId, executionId)
|
|
8
|
-
*/
|
|
9
|
-
export declare function useExecution(resourceId: string, executionId: string): import("@tanstack/react-query").UseQueryResult<APIExecutionDetail, Error>;
|
|
10
|
-
//# sourceMappingURL=useExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecution.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useExecution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAO9D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6EAanE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { APIExecutionListResponse, ResourceStatus } from '@repo/core/execution';
|
|
2
|
-
/**
|
|
3
|
-
* Fetch the execution list for a given resource.
|
|
4
|
-
*
|
|
5
|
-
* resourceStatus and limit are intentionally excluded from the query key so that
|
|
6
|
-
* SSE invalidations (which target the unfiltered key) bust all filter variants.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* const { data, isLoading } = useExecutions(resourceId)
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* // With status filter and limit
|
|
13
|
-
* const { data } = useExecutions(resourceId, 'running', 20)
|
|
14
|
-
*/
|
|
15
|
-
export declare function useExecutions(resourceId: string, resourceStatus?: ResourceStatus | 'all', limit?: number): import("@tanstack/react-query").UseQueryResult<APIExecutionListResponse, Error>;
|
|
16
|
-
//# sourceMappingURL=useExecutions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutions.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useExecutions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAIpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,EAAE,KAAK,CAAC,EAAE,MAAM,mFAqBxG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AIResourceDefinition } from '@repo/core';
|
|
2
|
-
/**
|
|
3
|
-
* Fetch a resource definition (workflow steps, agent actions, etc.).
|
|
4
|
-
*
|
|
5
|
-
* @param resourceId - The resource ID to fetch
|
|
6
|
-
* @param enabled - Whether the query should execute (default: true)
|
|
7
|
-
*/
|
|
8
|
-
export declare function useResourceDefinition(resourceId: string, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<AIResourceDefinition, Error>;
|
|
9
|
-
//# sourceMappingURL=useResourceDefinition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResourceDefinition.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useResourceDefinition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAKtD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,UAAO,+EAavE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fetch all available Execution Engine resources (workflows, agents, pipelines).
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* const { data, isLoading } = useResources()
|
|
6
|
-
* const workflows = data?.workflows ?? []
|
|
7
|
-
* const agents = data?.agents ?? []
|
|
8
|
-
*/
|
|
9
|
-
export declare function useResources(): import("@tanstack/react-query").UseQueryResult<{
|
|
10
|
-
workflows: import("@repo/core").ResourceDefinition[];
|
|
11
|
-
agents: import("@repo/core").ResourceDefinition[];
|
|
12
|
-
pipelines: import("@repo/core").ResourceDefinition[];
|
|
13
|
-
total: number;
|
|
14
|
-
}, Error>;
|
|
15
|
-
//# sourceMappingURL=useResources.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResources.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useResources.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,wBAAgB,YAAY;;;;;UAiB3B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ResourceType } from '@repo/core/execution';
|
|
2
|
-
export interface RetryExecutionParams {
|
|
3
|
-
resourceId: string;
|
|
4
|
-
resourceType: ResourceType;
|
|
5
|
-
input: unknown;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Retry a failed execution by re-triggering it async.
|
|
9
|
-
* Functionally identical to useExecuteAsync but named for intent clarity at call sites.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useRetryExecution(): import("@tanstack/react-query").UseMutationResult<{
|
|
12
|
-
resourceId: string;
|
|
13
|
-
executionId: string;
|
|
14
|
-
status: string;
|
|
15
|
-
}, Error, RetryExecutionParams, unknown>;
|
|
16
|
-
//# sourceMappingURL=useRetryExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRetryExecution.d.ts","sourceRoot":"","sources":["../../../src/hooks/executions/useRetryExecution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,KAAK,EAAE,OAAO,CAAA;CACf;AAED;;;GAGG;AACH,wBAAgB,iBAAiB;;iBAMsB,MAAM;YAAU,MAAM;yCAY5E"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { OrgFeatureConfig, UserConfig } from '@repo/core';
|
|
2
|
-
import type { AppInitializationState } from '../../initialization/hooks/useAppInitialization';
|
|
3
|
-
import type { OrganizationContextValue } from '../../organization/context/OrganizationContext';
|
|
4
|
-
type RestrictionSource = 'org' | 'membership' | null;
|
|
5
|
-
export interface FeatureAccessResult {
|
|
6
|
-
allowed: boolean;
|
|
7
|
-
restrictedBy: RestrictionSource;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Factory that creates a `useFeatureAccess` hook scoped to the consumer's
|
|
11
|
-
* feature configuration.
|
|
12
|
-
*
|
|
13
|
-
* @param useInitialization - Initialization hook providing `profile` and `organizationReady`
|
|
14
|
-
* @param useOrganization - Organization hook providing `currentMembership`
|
|
15
|
-
* @param optInFeatures - Feature keys that are disabled by default (must be explicitly enabled)
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* // In your app's feature-access module
|
|
20
|
-
* import { createUseFeatureAccess } from '@repo/ui/hooks'
|
|
21
|
-
* import { useInitialization } from '@repo/ui/initialization'
|
|
22
|
-
* import { useOrganization } from '@repo/ui/organization'
|
|
23
|
-
*
|
|
24
|
-
* export const useFeatureAccess = createUseFeatureAccess({
|
|
25
|
-
* useInitialization,
|
|
26
|
-
* useOrganization,
|
|
27
|
-
* optInFeatures: ['acquisition', 'calibration'],
|
|
28
|
-
* })
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare function createUseFeatureAccess({ useInitialization, useOrganization, optInFeatures }: {
|
|
32
|
-
useInitialization: () => Pick<AppInitializationState, 'profile' | 'organizationReady'>;
|
|
33
|
-
useOrganization: () => Pick<OrganizationContextValue, 'currentMembership'>;
|
|
34
|
-
optInFeatures?: string[];
|
|
35
|
-
}): () => {
|
|
36
|
-
orgConfig: OrgFeatureConfig | undefined;
|
|
37
|
-
membershipConfig: OrgFeatureConfig | undefined;
|
|
38
|
-
userConfig: UserConfig | undefined;
|
|
39
|
-
hasFeature: (featureKey: string) => boolean;
|
|
40
|
-
checkFeature: (featureKey: string) => FeatureAccessResult;
|
|
41
|
-
isReady: boolean;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=createUseFeatureAccess.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createUseFeatureAccess.d.ts","sourceRoot":"","sources":["../../../src/hooks/feature-access/createUseFeatureAccess.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAA2B,UAAU,EAAE,MAAM,YAAY,CAAA;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAA;AAE9F,KAAK,iBAAiB,GAAG,KAAK,GAAG,YAAY,GAAG,IAAI,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,iBAAiB,CAAA;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,iBAAiB,EACjB,eAAe,EACf,aAAkB,EACnB,EAAE;IACD,iBAAiB,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,SAAS,GAAG,mBAAmB,CAAC,CAAA;IACtF,eAAe,EAAE,MAAM,IAAI,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAA;IAC1E,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB;;;;6BAiC+C,MAAM,KAAG,OAAO;+BAnB7C,MAAM,KAAG,mBAAmB;;EA8B9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/feature-access/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,OAAO,CAAA"}
|