@elevasis/ui 1.3.3 → 1.3.5

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.
Files changed (213) hide show
  1. package/dist/api/index.js +1 -1
  2. package/dist/auth/index.d.ts +174 -14
  3. package/dist/{chunk-XLV6LYN2.js → chunk-LBPALY25.js} +0 -1
  4. package/dist/{chunk-LTQAAIGE.js → chunk-Y2I5JJ3N.js} +1 -1
  5. package/dist/hooks/index.d.ts +4401 -11
  6. package/dist/hooks/published.d.ts +5013 -19
  7. package/dist/index.d.ts +6316 -15
  8. package/dist/index.js +18 -97
  9. package/dist/initialization/index.d.ts +2222 -22
  10. package/dist/organization/index.d.ts +266 -21
  11. package/dist/profile/index.d.ts +2158 -14
  12. package/dist/provider/index.d.ts +266 -7
  13. package/dist/provider/index.js +12 -3
  14. package/dist/provider/published.d.ts +263 -9
  15. package/dist/provider/published.js +2 -2
  16. package/package.json +47 -3
  17. package/dist/auth/guards/AdminGuard.d.ts +0 -32
  18. package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
  19. package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
  20. package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
  21. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
  22. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
  23. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
  24. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
  25. package/dist/auth/index.d.ts.map +0 -1
  26. package/dist/hooks/command-queue/index.d.ts +0 -7
  27. package/dist/hooks/command-queue/index.d.ts.map +0 -1
  28. package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
  29. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
  30. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
  31. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
  32. package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
  33. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
  34. package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
  35. package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
  36. package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
  37. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
  38. package/dist/hooks/executions/index.d.ts +0 -16
  39. package/dist/hooks/executions/index.d.ts.map +0 -1
  40. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
  41. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
  42. package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
  43. package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
  44. package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
  45. package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
  46. package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
  47. package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
  48. package/dist/hooks/executions/useExecution.d.ts +0 -10
  49. package/dist/hooks/executions/useExecution.d.ts.map +0 -1
  50. package/dist/hooks/executions/useExecutions.d.ts +0 -16
  51. package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
  52. package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
  53. package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
  54. package/dist/hooks/executions/useResources.d.ts +0 -15
  55. package/dist/hooks/executions/useResources.d.ts.map +0 -1
  56. package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
  57. package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
  58. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -44
  59. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
  60. package/dist/hooks/feature-access/index.d.ts +0 -2
  61. package/dist/hooks/feature-access/index.d.ts.map +0 -1
  62. package/dist/hooks/index.d.ts.map +0 -1
  63. package/dist/hooks/monitoring/index.d.ts +0 -9
  64. package/dist/hooks/monitoring/index.d.ts.map +0 -1
  65. package/dist/hooks/monitoring/useActivities.d.ts +0 -52
  66. package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
  67. package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
  68. package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
  69. package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
  70. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
  71. package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
  72. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
  73. package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
  74. package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
  75. package/dist/hooks/notifications/index.d.ts +0 -8
  76. package/dist/hooks/notifications/index.d.ts.map +0 -1
  77. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
  78. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
  79. package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
  80. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
  81. package/dist/hooks/notifications/useNotificationCount.d.ts +0 -8
  82. package/dist/hooks/notifications/useNotificationCount.d.ts.map +0 -1
  83. package/dist/hooks/observability/index.d.ts +0 -19
  84. package/dist/hooks/observability/index.d.ts.map +0 -1
  85. package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
  86. package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
  87. package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
  88. package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
  89. package/dist/hooks/observability/useCostByModel.d.ts +0 -3
  90. package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
  91. package/dist/hooks/observability/useCostTrends.d.ts +0 -3
  92. package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
  93. package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
  94. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
  95. package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
  96. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
  97. package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
  98. package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
  99. package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
  100. package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
  101. package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
  102. package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
  103. package/dist/hooks/observability/useResolveError.d.ts +0 -17
  104. package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
  105. package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
  106. package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
  107. package/dist/hooks/published.d.ts.map +0 -1
  108. package/dist/hooks/scheduling/index.d.ts +0 -5
  109. package/dist/hooks/scheduling/index.d.ts.map +0 -1
  110. package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
  111. package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
  112. package/dist/hooks/sessions/index.d.ts +0 -8
  113. package/dist/hooks/sessions/index.d.ts.map +0 -1
  114. package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
  115. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
  116. package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
  117. package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
  118. package/dist/hooks/sessions/useSessions.d.ts +0 -26
  119. package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
  120. package/dist/index.d.ts.map +0 -1
  121. package/dist/initialization/InitializationProvider.d.ts +0 -48
  122. package/dist/initialization/InitializationProvider.d.ts.map +0 -1
  123. package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
  124. package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
  125. package/dist/initialization/index.d.ts.map +0 -1
  126. package/dist/organization/context/OrganizationProvider.d.ts +0 -20
  127. package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
  128. package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
  129. package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
  130. package/dist/organization/index.d.ts.map +0 -1
  131. package/dist/profile/context/ProfileProvider.d.ts +0 -27
  132. package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
  133. package/dist/profile/hooks/useUserProfile.d.ts +0 -31
  134. package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
  135. package/dist/profile/index.d.ts.map +0 -1
  136. package/dist/provider/CoreAuthKitInner.d.ts +0 -12
  137. package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
  138. package/dist/provider/ElevasisCoreProvider.d.ts +0 -39
  139. package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
  140. package/dist/provider/ElevasisServiceContext.d.ts +0 -31
  141. package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
  142. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
  143. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
  144. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
  145. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
  146. package/dist/provider/index.d.ts.map +0 -1
  147. package/dist/provider/published.d.ts.map +0 -1
  148. package/dist/provider/types.d.ts +0 -143
  149. package/dist/provider/types.d.ts.map +0 -1
  150. package/dist/provider/types.js +0 -1
  151. package/dist/sdk-barrel.d.ts +0 -20
  152. package/dist/sdk-barrel.d.ts.map +0 -1
  153. package/dist/theme/cssVariables.d.ts +0 -12
  154. package/dist/theme/cssVariables.d.ts.map +0 -1
  155. package/dist/theme/cssVariables.js +0 -93
  156. package/dist/theme/index.d.ts +0 -4
  157. package/dist/theme/index.d.ts.map +0 -1
  158. package/dist/theme/index.js +0 -1
  159. package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
  160. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
  161. package/dist/theme/presets/abyss.d.ts +0 -3
  162. package/dist/theme/presets/abyss.d.ts.map +0 -1
  163. package/dist/theme/presets/abyss.js +0 -54
  164. package/dist/theme/presets/aurora.d.ts +0 -8
  165. package/dist/theme/presets/aurora.d.ts.map +0 -1
  166. package/dist/theme/presets/aurora.js +0 -59
  167. package/dist/theme/presets/canopy.d.ts +0 -3
  168. package/dist/theme/presets/canopy.d.ts.map +0 -1
  169. package/dist/theme/presets/canopy.js +0 -58
  170. package/dist/theme/presets/cyber-flux.d.ts +0 -8
  171. package/dist/theme/presets/cyber-flux.d.ts.map +0 -1
  172. package/dist/theme/presets/cyber-flux.js +0 -66
  173. package/dist/theme/presets/cyber-strike.d.ts +0 -9
  174. package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
  175. package/dist/theme/presets/cyber-strike.js +0 -62
  176. package/dist/theme/presets/cyber-void.d.ts +0 -8
  177. package/dist/theme/presets/cyber-void.d.ts.map +0 -1
  178. package/dist/theme/presets/cyber-void.js +0 -62
  179. package/dist/theme/presets/cyber-volt.d.ts +0 -8
  180. package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
  181. package/dist/theme/presets/cyber-volt.js +0 -66
  182. package/dist/theme/presets/default.d.ts +0 -4
  183. package/dist/theme/presets/default.d.ts.map +0 -1
  184. package/dist/theme/presets/ember.d.ts +0 -8
  185. package/dist/theme/presets/ember.d.ts.map +0 -1
  186. package/dist/theme/presets/ember.js +0 -63
  187. package/dist/theme/presets/honey.d.ts +0 -3
  188. package/dist/theme/presets/honey.d.ts.map +0 -1
  189. package/dist/theme/presets/honey.js +0 -62
  190. package/dist/theme/presets/index.d.ts +0 -6
  191. package/dist/theme/presets/index.d.ts.map +0 -1
  192. package/dist/theme/presets/index.js +0 -39
  193. package/dist/theme/presets/midnight.d.ts +0 -8
  194. package/dist/theme/presets/midnight.d.ts.map +0 -1
  195. package/dist/theme/presets/midnight.js +0 -68
  196. package/dist/theme/presets/obsidian.d.ts +0 -3
  197. package/dist/theme/presets/obsidian.d.ts.map +0 -1
  198. package/dist/theme/presets/obsidian.js +0 -56
  199. package/dist/theme/presets/regal.d.ts +0 -8
  200. package/dist/theme/presets/regal.d.ts.map +0 -1
  201. package/dist/theme/presets/regal.js +0 -63
  202. package/dist/theme/presets/rose-gold.d.ts +0 -8
  203. package/dist/theme/presets/rose-gold.d.ts.map +0 -1
  204. package/dist/theme/presets/rose-gold.js +0 -63
  205. package/dist/theme/presets/slate.d.ts +0 -3
  206. package/dist/theme/presets/slate.d.ts.map +0 -1
  207. package/dist/theme/presets/slate.js +0 -56
  208. package/dist/theme/presets/tactical.d.ts +0 -8
  209. package/dist/theme/presets/tactical.d.ts.map +0 -1
  210. package/dist/theme/presets/tactical.js +0 -57
  211. package/dist/theme/presets/types.d.ts +0 -26
  212. package/dist/theme/presets/types.d.ts.map +0 -1
  213. package/dist/theme/presets/types.js +0 -1
@@ -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"}
@@ -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,5 +0,0 @@
1
- import type { Task } from '@repo/core';
2
- export declare function useDeleteTask(): import("@tanstack/react-query").UseMutationResult<void, Error, string, {
3
- previousData: Map<readonly unknown[], Task[] | undefined>;
4
- }>;
5
- //# sourceMappingURL=useDeleteTask.d.ts.map
@@ -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,6 +0,0 @@
1
- import type { PatchTaskParams, Task } from '@repo/core';
2
- export declare function usePatchTask(): import("@tanstack/react-query").UseMutationResult<Task, Error, {
3
- taskId: string;
4
- params: PatchTaskParams;
5
- }, unknown>;
6
- //# sourceMappingURL=usePatchTask.d.ts.map
@@ -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,2 +0,0 @@
1
- export { createUseFeatureAccess } from './createUseFeatureAccess';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,9 +0,0 @@
1
- export { useActivities, useActivityTrend } from './useActivities';
2
- export type { UseActivitiesParams, ListActivitiesResponse, UseActivityTrendParams, ActivityTrendResponse } from './useActivities';
3
- export { useExecutionLogs } from './useExecutionLogs';
4
- export type { UseExecutionLogsParams, ExecutionLogsPageResponse } from './useExecutionLogs';
5
- export { useNotifications } from './useNotifications';
6
- export { useCostSummary } from './useCostSummary';
7
- export { useExecutionHealth } from './useExecutionHealth';
8
- export type { UseExecutionHealthParams } from './useExecutionHealth';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/monitoring/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACjE,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,YAAY,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAE3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,52 +0,0 @@
1
- import type { Activity, ActivityType } from '@repo/core';
2
- export interface UseActivitiesParams {
3
- limit?: number;
4
- offset?: number;
5
- activityType?: ActivityType;
6
- entityType?: string;
7
- entityId?: string;
8
- startDate?: string;
9
- endDate?: string;
10
- status?: string;
11
- search?: string;
12
- }
13
- export interface ListActivitiesResponse {
14
- activities: Activity[];
15
- total: number;
16
- }
17
- /**
18
- * Fetch activities with filtering and pagination
19
- *
20
- * @example
21
- * // Basic usage - fetch recent activities
22
- * const { data, error, isLoading } = useActivities({ limit: 50 })
23
- *
24
- * @example
25
- * // Filtered by type
26
- * const { data } = useActivities({
27
- * activityType: 'workflow_execution',
28
- * limit: 20
29
- * })
30
- *
31
- * @example
32
- * // Filtered by entity
33
- * const { data } = useActivities({
34
- * entityType: 'workflow',
35
- * entityId: 'workflow-123'
36
- * })
37
- */
38
- export interface ActivityTrendResponse {
39
- timestamps: Date[];
40
- total: number;
41
- }
42
- export type UseActivityTrendParams = Omit<UseActivitiesParams, 'limit' | 'offset' | 'search' | 'status'>;
43
- /**
44
- * Fetch activity timestamps for the Activity Trend chart
45
- *
46
- * Uses /activities/trend endpoint which returns only occurred_at timestamps
47
- * up to ANALYTICS_SAFETY_LIMIT (10,000), bypassing the MAX_PAGE_LIMIT cap.
48
- * Provides accurate counts for any time range regardless of activity volume.
49
- */
50
- export declare function useActivityTrend(params?: UseActivityTrendParams): import("@tanstack/react-query").UseQueryResult<ActivityTrendResponse, Error>;
51
- export declare function useActivities(params?: UseActivitiesParams): import("@tanstack/react-query").UseQueryResult<ListActivitiesResponse, Error>;
52
- //# sourceMappingURL=useActivities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActivities.d.ts","sourceRoot":"","sources":["../../../src/hooks/monitoring/useActivities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAGxD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,QAAQ,EAAE,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAA;AAExG;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,sBAA2B,gFA4BnE;AAED,wBAAgB,aAAa,CAAC,MAAM,GAAE,mBAAwB,iFAqC7D"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Hook for fetching cost summary with MTD and projections
3
- * Provides period-over-period comparison and monthly projections
4
- */
5
- import type { TimeRange, CostSummaryResponse } from '@repo/core';
6
- export declare function useCostSummary(timeRange: TimeRange): import("@tanstack/react-query").UseQueryResult<CostSummaryResponse, Error>;
7
- //# sourceMappingURL=useCostSummary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCostSummary.d.ts","sourceRoot":"","sources":["../../../src/hooks/monitoring/useCostSummary.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGhE,wBAAgB,cAAc,CAAC,SAAS,EAAE,SAAS,8EAclD"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Hook for fetching execution health metrics for monitoring detail page
3
- * Provides success rate, P95 duration, execution counts, throughput, and trend data
4
- */
5
- import type { TimeRange, DashboardMetrics } from '@repo/core';
6
- export interface UseExecutionHealthParams {
7
- timeRange: TimeRange;
8
- }
9
- export declare function useExecutionHealth({ timeRange }: UseExecutionHealthParams): import("@tanstack/react-query").UseQueryResult<DashboardMetrics, Error>;
10
- //# sourceMappingURL=useExecutionHealth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecutionHealth.d.ts","sourceRoot":"","sources":["../../../src/hooks/monitoring/useExecutionHealth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAG7D,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE,wBAAwB,2EAgBzE"}