@elevasis/ui 2.6.0 → 2.8.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/{chunk-POFDRPDI.js → chunk-4PHPENKX.js} +3044 -1753
- package/dist/chunk-7M2VOCYN.js +1 -0
- package/dist/{chunk-PEDPD3PU.js → chunk-7PDDPNQS.js} +1 -1
- package/dist/{chunk-YIWLA2B6.js → chunk-C2OFFC7J.js} +0 -1
- package/dist/{chunk-ZB5PKIX5.js → chunk-CTWYIRKW.js} +1 -2
- package/dist/{chunk-FH5QGCXL.js → chunk-F5QSLYUB.js} +180 -7
- package/dist/{chunk-CC4WGHGG.js → chunk-KGEYEUR5.js} +1 -3
- package/dist/{chunk-MU5EZV3L.js → chunk-MGEC63TE.js} +5 -6
- package/dist/{chunk-SMJLS23U.js → chunk-NYMKWGKN.js} +18 -1
- package/dist/{chunk-X4BLH3JL.js → chunk-OFT2QK6B.js} +6 -7
- package/dist/{chunk-O4PMRC6J.js → chunk-OPT74SGF.js} +118 -111
- package/dist/{chunk-6RGNVHG3.js → chunk-UX3Q4YYN.js} +21 -13
- package/dist/{chunk-4GZ6VZWO.js → chunk-YCHZ4U5V.js} +10 -2
- package/dist/{chunk-PHRDZFJT.js → chunk-ZZ35VSNF.js} +1 -3
- package/dist/components/index.d.ts +134 -68
- package/dist/components/index.js +34 -25
- package/dist/features/auth/index.d.ts +3 -3
- package/dist/features/auth/index.js +9 -2
- package/dist/features/crm/index.d.ts +61 -5
- package/dist/features/crm/index.js +5 -5
- package/dist/features/dashboard/index.js +5 -5
- package/dist/features/delivery/index.d.ts +64 -4
- package/dist/features/delivery/index.js +5 -5
- package/dist/features/lead-gen/index.d.ts +61 -5
- package/dist/features/lead-gen/index.js +8 -8
- package/dist/features/monitoring/index.d.ts +20 -1
- package/dist/features/monitoring/index.js +6 -6
- package/dist/features/operations/index.d.ts +20 -1
- package/dist/features/operations/index.js +7 -7
- package/dist/features/seo/index.d.ts +20 -1
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.d.ts +22 -2
- package/dist/features/settings/index.js +5 -5
- package/dist/hooks/index.d.ts +7735 -7719
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/published.d.ts +3495 -48
- package/dist/hooks/published.js +3 -3
- package/dist/index.d.ts +1188 -989
- package/dist/index.js +4 -4
- package/dist/initialization/index.d.ts +2 -1
- package/dist/layout/index.d.ts +60 -2
- package/dist/layout/index.js +1 -1
- package/dist/organization/index.d.ts +2 -1
- package/dist/provider/index.d.ts +203 -20
- package/dist/provider/index.js +2 -2
- package/dist/provider/published.d.ts +194 -19
- package/dist/provider/published.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +58 -86
- package/dist/chunk-DQJM7T2N.js +0 -1303
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
|
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { Node, Edge, NodeMouseHandler } from '@xyflow/react';
|
|
9
9
|
import { IconBrain } from '@tabler/icons-react';
|
|
10
|
+
import * as zustand_middleware from 'zustand/middleware';
|
|
10
11
|
import * as zustand from 'zustand';
|
|
11
12
|
import { UseBoundStore, StoreApi } from 'zustand';
|
|
12
|
-
import * as zustand_middleware from 'zustand/middleware';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* API module types
|
|
@@ -4676,13 +4676,14 @@ interface SessionTokenUsage {
|
|
|
4676
4676
|
/**
|
|
4677
4677
|
* Per-user-per-org config (stored in org_memberships.config)
|
|
4678
4678
|
* Controls which features a specific member can access within their org
|
|
4679
|
-
* Valid feature keys: operations, monitoring, acquisition, calibration, seo
|
|
4679
|
+
* Valid feature keys: operations, monitoring, acquisition, delivery, calibration, seo
|
|
4680
4680
|
*/
|
|
4681
4681
|
interface MembershipFeatureConfig {
|
|
4682
4682
|
features?: {
|
|
4683
4683
|
operations?: boolean;
|
|
4684
4684
|
monitoring?: boolean;
|
|
4685
4685
|
acquisition?: boolean;
|
|
4686
|
+
delivery?: boolean;
|
|
4686
4687
|
calibration?: boolean;
|
|
4687
4688
|
seo?: boolean;
|
|
4688
4689
|
};
|
|
@@ -6944,16 +6945,179 @@ declare const SurfaceDefinitionSchema = z.object({
|
|
|
6944
6945
|
parentId: ModelIdSchema.optional()
|
|
6945
6946
|
})
|
|
6946
6947
|
|
|
6947
|
-
declare const OrganizationModelSchema =
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6948
|
+
declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ctx) => {
|
|
6949
|
+
const domainsById = collectIds(model.domains, ctx, ['domains'], 'Domain')
|
|
6950
|
+
const surfacesById = collectIds(model.navigation.surfaces, ctx, ['navigation', 'surfaces'], 'Surface')
|
|
6951
|
+
collectIds(model.navigation.groups, ctx, ['navigation', 'groups'], 'Navigation group')
|
|
6952
|
+
collectIds(model.resourceMappings, ctx, ['resourceMappings'], 'Resource mapping')
|
|
6953
|
+
|
|
6954
|
+
const resourceMappingsByResourceId = new Map<string, (typeof model.resourceMappings)[number]>()
|
|
6955
|
+
model.resourceMappings.forEach((resourceMapping, index) => {
|
|
6956
|
+
if (resourceMappingsByResourceId.has(resourceMapping.resourceId)) {
|
|
6957
|
+
addIssue(
|
|
6958
|
+
ctx,
|
|
6959
|
+
['resourceMappings', index, 'resourceId'],
|
|
6960
|
+
`Resource mapping resourceId "${resourceMapping.resourceId}" must be unique`
|
|
6961
|
+
)
|
|
6962
|
+
return
|
|
6963
|
+
}
|
|
6964
|
+
|
|
6965
|
+
resourceMappingsByResourceId.set(resourceMapping.resourceId, resourceMapping)
|
|
6966
|
+
})
|
|
6967
|
+
|
|
6968
|
+
if (model.navigation.defaultSurfaceId && !surfacesById.has(model.navigation.defaultSurfaceId)) {
|
|
6969
|
+
addIssue(
|
|
6970
|
+
ctx,
|
|
6971
|
+
['navigation', 'defaultSurfaceId'],
|
|
6972
|
+
`Default surface "${model.navigation.defaultSurfaceId}" must reference a declared navigation surface`
|
|
6973
|
+
)
|
|
6974
|
+
}
|
|
6975
|
+
|
|
6976
|
+
model.navigation.groups.forEach((group, groupIndex) => {
|
|
6977
|
+
group.surfaceIds.forEach((surfaceId, surfaceIndex) => {
|
|
6978
|
+
if (!surfacesById.has(surfaceId)) {
|
|
6979
|
+
addIssue(
|
|
6980
|
+
ctx,
|
|
6981
|
+
['navigation', 'groups', groupIndex, 'surfaceIds', surfaceIndex],
|
|
6982
|
+
`Navigation group "${group.id}" references unknown surface "${surfaceId}"`
|
|
6983
|
+
)
|
|
6984
|
+
}
|
|
6985
|
+
})
|
|
6986
|
+
})
|
|
6987
|
+
|
|
6988
|
+
model.domains.forEach((domain, domainIndex) => {
|
|
6989
|
+
domain.surfaceIds.forEach((surfaceId, surfaceIndex) => {
|
|
6990
|
+
const surface = surfacesById.get(surfaceId)
|
|
6991
|
+
if (!surface) {
|
|
6992
|
+
addIssue(
|
|
6993
|
+
ctx,
|
|
6994
|
+
['domains', domainIndex, 'surfaceIds', surfaceIndex],
|
|
6995
|
+
`Domain "${domain.id}" references unknown surface "${surfaceId}"`
|
|
6996
|
+
)
|
|
6997
|
+
return
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
if (!surface.domainIds.includes(domain.id)) {
|
|
7001
|
+
addIssue(
|
|
7002
|
+
ctx,
|
|
7003
|
+
['domains', domainIndex, 'surfaceIds', surfaceIndex],
|
|
7004
|
+
`Domain "${domain.id}" references surface "${surfaceId}" but that surface does not include domain "${domain.id}"`
|
|
7005
|
+
)
|
|
7006
|
+
}
|
|
7007
|
+
})
|
|
7008
|
+
|
|
7009
|
+
domain.resourceIds.forEach((resourceId, resourceIndex) => {
|
|
7010
|
+
const resourceMapping = resourceMappingsByResourceId.get(resourceId)
|
|
7011
|
+
if (!resourceMapping) {
|
|
7012
|
+
addIssue(
|
|
7013
|
+
ctx,
|
|
7014
|
+
['domains', domainIndex, 'resourceIds', resourceIndex],
|
|
7015
|
+
`Domain "${domain.id}" references unknown resource "${resourceId}"`
|
|
7016
|
+
)
|
|
7017
|
+
return
|
|
7018
|
+
}
|
|
7019
|
+
|
|
7020
|
+
if (!resourceMapping.domainIds.includes(domain.id)) {
|
|
7021
|
+
addIssue(
|
|
7022
|
+
ctx,
|
|
7023
|
+
['domains', domainIndex, 'resourceIds', resourceIndex],
|
|
7024
|
+
`Domain "${domain.id}" references resource "${resourceId}" but that resource mapping does not include domain "${domain.id}"`
|
|
7025
|
+
)
|
|
7026
|
+
}
|
|
7027
|
+
})
|
|
7028
|
+
})
|
|
7029
|
+
|
|
7030
|
+
model.navigation.surfaces.forEach((surface, surfaceIndex) => {
|
|
7031
|
+
if (surface.parentId && !surfacesById.has(surface.parentId)) {
|
|
7032
|
+
addIssue(
|
|
7033
|
+
ctx,
|
|
7034
|
+
['navigation', 'surfaces', surfaceIndex, 'parentId'],
|
|
7035
|
+
`Surface "${surface.id}" references unknown parent surface "${surface.parentId}"`
|
|
7036
|
+
)
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7039
|
+
surface.domainIds.forEach((domainId, domainIndex) => {
|
|
7040
|
+
const domain = domainsById.get(domainId)
|
|
7041
|
+
if (!domain) {
|
|
7042
|
+
addIssue(
|
|
7043
|
+
ctx,
|
|
7044
|
+
['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
|
|
7045
|
+
`Surface "${surface.id}" references unknown domain "${domainId}"`
|
|
7046
|
+
)
|
|
7047
|
+
return
|
|
7048
|
+
}
|
|
7049
|
+
|
|
7050
|
+
if (!domain.surfaceIds.includes(surface.id)) {
|
|
7051
|
+
addIssue(
|
|
7052
|
+
ctx,
|
|
7053
|
+
['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
|
|
7054
|
+
`Surface "${surface.id}" references domain "${domainId}" but that domain does not include surface "${surface.id}"`
|
|
7055
|
+
)
|
|
7056
|
+
}
|
|
7057
|
+
})
|
|
7058
|
+
|
|
7059
|
+
surface.resourceIds.forEach((resourceId, resourceIndex) => {
|
|
7060
|
+
const resourceMapping = resourceMappingsByResourceId.get(resourceId)
|
|
7061
|
+
if (!resourceMapping) {
|
|
7062
|
+
addIssue(
|
|
7063
|
+
ctx,
|
|
7064
|
+
['navigation', 'surfaces', surfaceIndex, 'resourceIds', resourceIndex],
|
|
7065
|
+
`Surface "${surface.id}" references unknown resource "${resourceId}"`
|
|
7066
|
+
)
|
|
7067
|
+
return
|
|
7068
|
+
}
|
|
7069
|
+
|
|
7070
|
+
if (!resourceMapping.surfaceIds.includes(surface.id)) {
|
|
7071
|
+
addIssue(
|
|
7072
|
+
ctx,
|
|
7073
|
+
['navigation', 'surfaces', surfaceIndex, 'resourceIds', resourceIndex],
|
|
7074
|
+
`Surface "${surface.id}" references resource "${resourceId}" but that resource mapping does not include surface "${surface.id}"`
|
|
7075
|
+
)
|
|
7076
|
+
}
|
|
7077
|
+
})
|
|
7078
|
+
})
|
|
7079
|
+
|
|
7080
|
+
model.resourceMappings.forEach((resourceMapping, resourceIndex) => {
|
|
7081
|
+
resourceMapping.domainIds.forEach((domainId, domainIndex) => {
|
|
7082
|
+
const domain = domainsById.get(domainId)
|
|
7083
|
+
if (!domain) {
|
|
7084
|
+
addIssue(
|
|
7085
|
+
ctx,
|
|
7086
|
+
['resourceMappings', resourceIndex, 'domainIds', domainIndex],
|
|
7087
|
+
`Resource mapping "${resourceMapping.id}" references unknown domain "${domainId}"`
|
|
7088
|
+
)
|
|
7089
|
+
return
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
if (!domain.resourceIds.includes(resourceMapping.resourceId)) {
|
|
7093
|
+
addIssue(
|
|
7094
|
+
ctx,
|
|
7095
|
+
['resourceMappings', resourceIndex, 'domainIds', domainIndex],
|
|
7096
|
+
`Resource mapping "${resourceMapping.id}" references domain "${domainId}" but that domain does not include resource "${resourceMapping.resourceId}"`
|
|
7097
|
+
)
|
|
7098
|
+
}
|
|
7099
|
+
})
|
|
7100
|
+
|
|
7101
|
+
resourceMapping.surfaceIds.forEach((surfaceId, surfaceIndex) => {
|
|
7102
|
+
const surface = surfacesById.get(surfaceId)
|
|
7103
|
+
if (!surface) {
|
|
7104
|
+
addIssue(
|
|
7105
|
+
ctx,
|
|
7106
|
+
['resourceMappings', resourceIndex, 'surfaceIds', surfaceIndex],
|
|
7107
|
+
`Resource mapping "${resourceMapping.id}" references unknown surface "${surfaceId}"`
|
|
7108
|
+
)
|
|
7109
|
+
return
|
|
7110
|
+
}
|
|
7111
|
+
|
|
7112
|
+
if (!surface.resourceIds.includes(resourceMapping.resourceId)) {
|
|
7113
|
+
addIssue(
|
|
7114
|
+
ctx,
|
|
7115
|
+
['resourceMappings', resourceIndex, 'surfaceIds', surfaceIndex],
|
|
7116
|
+
`Resource mapping "${resourceMapping.id}" references surface "${surfaceId}" but that surface does not include resource "${resourceMapping.resourceId}"`
|
|
7117
|
+
)
|
|
7118
|
+
}
|
|
7119
|
+
})
|
|
7120
|
+
})
|
|
6957
7121
|
})
|
|
6958
7122
|
|
|
6959
7123
|
type OrganizationModel = z.infer<typeof OrganizationModelSchema>
|
|
@@ -9933,20 +10097,37 @@ interface FeatureNavEntry {
|
|
|
9933
10097
|
}
|
|
9934
10098
|
type FeatureSidebarComponent = ComponentType;
|
|
9935
10099
|
interface FeatureModule {
|
|
10100
|
+
/** Unique stable identifier for this feature (e.g. `'crm'`, `'delivery'`). */
|
|
9936
10101
|
key: string;
|
|
9937
|
-
|
|
10102
|
+
/** Feature key used for access-flag gating in the organization model. */
|
|
9938
10103
|
accessFeatureKey: OrganizationModelFeatureKey;
|
|
10104
|
+
/**
|
|
10105
|
+
* Semantic domain identifiers contributed by this feature.
|
|
10106
|
+
* Merged with surface-derived domain IDs during resolution.
|
|
10107
|
+
*/
|
|
9939
10108
|
domainIds?: OrganizationModelSemanticDomain['id'][];
|
|
10109
|
+
/**
|
|
10110
|
+
* Capability identifiers contributed by this feature.
|
|
10111
|
+
* Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
|
|
10112
|
+
* Not queried at runtime — kept for semantic graph completeness so that
|
|
10113
|
+
* capability membership is fully represented in the resolved model even when
|
|
10114
|
+
* a surface does not declare it directly.
|
|
10115
|
+
*/
|
|
9940
10116
|
capabilityIds?: string[];
|
|
10117
|
+
/** Top-level navigation entry rendered in the app shell when this feature is enabled. */
|
|
9941
10118
|
navEntry?: FeatureNavEntry;
|
|
10119
|
+
/** Sidebar component rendered when a matching subshell route is active. */
|
|
9942
10120
|
sidebar?: FeatureSidebarComponent;
|
|
10121
|
+
/** Route path prefixes that activate this feature's sidebar and subshell context. */
|
|
9943
10122
|
subshellRoutes?: string[];
|
|
10123
|
+
/**
|
|
10124
|
+
* Operations-only bridge surface connecting this feature to the organization graph.
|
|
10125
|
+
* Ignored by all other features. Only one manifest in the registry should set this.
|
|
10126
|
+
*/
|
|
9944
10127
|
organizationGraph?: OrganizationGraphFeatureBridge;
|
|
9945
10128
|
}
|
|
9946
|
-
type ShellModuleDefinition = FeatureModule;
|
|
9947
10129
|
interface ResolvedFeatureAccess {
|
|
9948
10130
|
featureKey: string;
|
|
9949
|
-
label?: string;
|
|
9950
10131
|
enabled: boolean;
|
|
9951
10132
|
}
|
|
9952
10133
|
interface ResolvedFeatureSemantics {
|
|
@@ -9964,7 +10145,6 @@ type ShellNavSource = 'app' | 'feature';
|
|
|
9964
10145
|
interface ResolvedShellNavItem extends FeatureNavEntry {
|
|
9965
10146
|
placement: ShellNavPlacement;
|
|
9966
10147
|
source: ShellNavSource;
|
|
9967
|
-
shellModuleKey?: string;
|
|
9968
10148
|
accessFeatureKey?: string;
|
|
9969
10149
|
}
|
|
9970
10150
|
interface ResolvedShellModel {
|
|
@@ -9983,7 +10163,6 @@ interface ResolvedShellRouteMatch {
|
|
|
9983
10163
|
navLink?: FeatureNavLink;
|
|
9984
10164
|
}
|
|
9985
10165
|
interface ShellRuntime {
|
|
9986
|
-
shellModel: ResolvedShellModel;
|
|
9987
10166
|
resolveRoute: (path: string) => ResolvedShellRouteMatch;
|
|
9988
10167
|
}
|
|
9989
10168
|
interface OrganizationGraphFeatureBridge {
|
|
@@ -9996,9 +10175,6 @@ interface OrganizationGraphContextValue {
|
|
|
9996
10175
|
surfaceType?: OrganizationModelSurface['surfaceType'];
|
|
9997
10176
|
featureKey?: OrganizationModelFeatureKey;
|
|
9998
10177
|
}
|
|
9999
|
-
interface FeatureRegistry {
|
|
10000
|
-
features: FeatureModule[];
|
|
10001
|
-
}
|
|
10002
10178
|
interface ElevasisFeaturesProviderProps {
|
|
10003
10179
|
features: FeatureModule[];
|
|
10004
10180
|
organizationModel?: OrganizationModel;
|
|
@@ -10094,88 +10270,13 @@ interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme
|
|
|
10094
10270
|
}
|
|
10095
10271
|
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
10096
10272
|
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
offset?: number;
|
|
10101
|
-
humanCheckpoint?: string;
|
|
10102
|
-
timeRange?: TimeRange;
|
|
10103
|
-
priorityMin?: number;
|
|
10104
|
-
priorityMax?: number;
|
|
10105
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
10106
|
-
createdAt: Date;
|
|
10107
|
-
completedAt: Date | undefined;
|
|
10108
|
-
expiresAt: Date | undefined;
|
|
10109
|
-
id: string;
|
|
10110
|
-
organizationId: string;
|
|
10111
|
-
actions: ActionConfig[];
|
|
10112
|
-
context: unknown;
|
|
10113
|
-
selectedAction?: string;
|
|
10114
|
-
actionPayload?: unknown;
|
|
10115
|
-
description?: string;
|
|
10116
|
-
priority: number;
|
|
10117
|
-
humanCheckpoint?: string;
|
|
10118
|
-
status: TaskStatus$1;
|
|
10119
|
-
targetResourceId?: string;
|
|
10120
|
-
targetResourceType?: "agent" | "workflow";
|
|
10121
|
-
targetExecutionId?: string;
|
|
10122
|
-
completedBy?: string;
|
|
10123
|
-
idempotencyKey?: string | null;
|
|
10124
|
-
originExecutionId: string;
|
|
10125
|
-
originResourceType: OriginResourceType;
|
|
10126
|
-
originResourceId: string;
|
|
10127
|
-
}[], Error>;
|
|
10128
|
-
|
|
10129
|
-
interface SubmitActionRequest {
|
|
10130
|
-
taskId: string;
|
|
10131
|
-
actionId: string;
|
|
10132
|
-
payload?: unknown;
|
|
10133
|
-
notes?: string;
|
|
10134
|
-
}
|
|
10135
|
-
interface OptimisticContext {
|
|
10136
|
-
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
10137
|
-
}
|
|
10138
|
-
interface ExecutionErrorDetails {
|
|
10139
|
-
message: string;
|
|
10140
|
-
type: string;
|
|
10141
|
-
severity: 'critical' | 'warning' | 'info';
|
|
10142
|
-
category: 'llm' | 'tool' | 'workflow' | 'agent' | 'validation' | 'system';
|
|
10143
|
-
details?: string;
|
|
10144
|
-
}
|
|
10145
|
-
interface SubmitActionResponse {
|
|
10146
|
-
task: unknown;
|
|
10147
|
-
execution?: {
|
|
10148
|
-
executionId: string;
|
|
10149
|
-
success: boolean;
|
|
10150
|
-
data?: unknown;
|
|
10151
|
-
error?: ExecutionErrorDetails;
|
|
10152
|
-
};
|
|
10153
|
-
}
|
|
10154
|
-
declare function useSubmitAction(): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
10155
|
-
|
|
10156
|
-
declare function useDeleteTask$1(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
10157
|
-
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
10158
|
-
}>;
|
|
10159
|
-
|
|
10160
|
-
interface UseCommandQueueTotalsOptions {
|
|
10161
|
-
timeRange?: TimeRange;
|
|
10162
|
-
priorityMin?: number;
|
|
10163
|
-
priorityMax?: number;
|
|
10164
|
-
/** When set, priorityCounts are scoped to this status only */
|
|
10165
|
-
status?: 'pending' | 'completed' | 'expired';
|
|
10273
|
+
interface CreateTestFeaturesProviderOptions {
|
|
10274
|
+
organizationModel?: OrganizationModel;
|
|
10275
|
+
features?: FeatureModule[];
|
|
10166
10276
|
}
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
* Returns distinct human checkpoints with task counts and status breakdown.
|
|
10171
|
-
* Used for sidebar grouping and donut charts (true totals, not paginated).
|
|
10172
|
-
*/
|
|
10173
|
-
declare function useCommandQueueTotals({ timeRange, priorityMin, priorityMax, status }?: UseCommandQueueTotalsOptions): _tanstack_react_query.UseQueryResult<CheckpointListResponse, Error>;
|
|
10174
|
-
|
|
10175
|
-
declare function usePatchTask(): _tanstack_react_query.UseMutationResult<Task, Error, {
|
|
10176
|
-
taskId: string;
|
|
10177
|
-
params: PatchTaskParams;
|
|
10178
|
-
}, unknown>;
|
|
10277
|
+
declare function createTestFeaturesProvider({ organizationModel, features }?: CreateTestFeaturesProviderOptions): ({ children }: {
|
|
10278
|
+
children: ReactNode;
|
|
10279
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10179
10280
|
|
|
10180
10281
|
/**
|
|
10181
10282
|
* Query key factory for executions TanStack Query hooks.
|
|
@@ -10383,52 +10484,277 @@ declare function useExecuteWorkflow<TSchema extends z.ZodType>(options: UseExecu
|
|
|
10383
10484
|
reset: () => void;
|
|
10384
10485
|
};
|
|
10385
10486
|
|
|
10386
|
-
interface
|
|
10487
|
+
interface UseScheduledTasksOptions {
|
|
10488
|
+
status?: 'active' | 'paused' | 'completed' | 'cancelled';
|
|
10489
|
+
targetResourceType?: 'agent' | 'workflow';
|
|
10490
|
+
}
|
|
10491
|
+
/**
|
|
10492
|
+
* Dashboard hook for fetching scheduled tasks.
|
|
10493
|
+
* Simplified read-only hook that returns the schedules array directly.
|
|
10494
|
+
*
|
|
10495
|
+
* @param options - Optional filters for status and target resource type
|
|
10496
|
+
* @returns TanStack Query result with schedules array
|
|
10497
|
+
*
|
|
10498
|
+
* @example
|
|
10499
|
+
* ```tsx
|
|
10500
|
+
* const { data: schedules, isLoading } = useScheduledTasks({ status: 'active' })
|
|
10501
|
+
* ```
|
|
10502
|
+
*/
|
|
10503
|
+
declare function useScheduledTasks(options?: UseScheduledTasksOptions): _tanstack_react_query.UseQueryResult<TaskSchedule[], Error>;
|
|
10504
|
+
|
|
10505
|
+
/**
|
|
10506
|
+
* Query key factory for schedule cache management.
|
|
10507
|
+
* Provides type-safe, hierarchical keys for TanStack Query.
|
|
10508
|
+
* Uses organizationId (UUID) for tenant-scoped cache isolation.
|
|
10509
|
+
*/
|
|
10510
|
+
declare const scheduleKeys: {
|
|
10511
|
+
all: (orgId: string | null) => readonly ["schedules", string | null];
|
|
10512
|
+
lists: (orgId: string | null) => readonly ["schedules", string | null, "list"];
|
|
10513
|
+
list: (orgId: string | null, filters?: ListSchedulesFilters) => readonly ["schedules", string | null, "list", ListSchedulesFilters | undefined];
|
|
10514
|
+
details: (orgId: string | null) => readonly ["schedules", string | null, "detail"];
|
|
10515
|
+
detail: (orgId: string | null, id: string) => readonly ["schedules", string | null, "detail", string];
|
|
10516
|
+
executions: (orgId: string | null, id: string) => readonly ["schedules", string | null, "detail", string, "executions"];
|
|
10517
|
+
};
|
|
10518
|
+
/**
|
|
10519
|
+
* Filters for list schedules query.
|
|
10520
|
+
* Mirrors ListSchedulesQuery from @repo/core but typed for UI consumption.
|
|
10521
|
+
*/
|
|
10522
|
+
interface ListSchedulesFilters {
|
|
10523
|
+
status?: 'active' | 'paused' | 'completed' | 'cancelled';
|
|
10524
|
+
targetResourceType?: 'agent' | 'workflow';
|
|
10525
|
+
targetResourceId?: string;
|
|
10387
10526
|
limit?: number;
|
|
10388
10527
|
offset?: number;
|
|
10389
|
-
activityType?: ActivityType;
|
|
10390
|
-
entityType?: string;
|
|
10391
|
-
entityId?: string;
|
|
10392
|
-
startDate?: string;
|
|
10393
|
-
endDate?: string;
|
|
10394
|
-
status?: string;
|
|
10395
|
-
search?: string;
|
|
10396
10528
|
}
|
|
10397
|
-
|
|
10398
|
-
|
|
10529
|
+
|
|
10530
|
+
interface CreateScheduleInput {
|
|
10531
|
+
name: string;
|
|
10532
|
+
description?: string;
|
|
10533
|
+
target: {
|
|
10534
|
+
resourceType: 'agent' | 'workflow';
|
|
10535
|
+
resourceId: string;
|
|
10536
|
+
};
|
|
10537
|
+
scheduleConfig: TaskScheduleConfig;
|
|
10538
|
+
maxRetries?: number;
|
|
10539
|
+
idempotencyKey?: string;
|
|
10540
|
+
originExecutionId?: string;
|
|
10541
|
+
originResourceType?: 'agent' | 'workflow' | 'scheduler' | 'api';
|
|
10542
|
+
originResourceId?: string;
|
|
10543
|
+
}
|
|
10544
|
+
interface UpdateScheduleInput {
|
|
10545
|
+
id: string;
|
|
10546
|
+
name?: string;
|
|
10547
|
+
description?: string | null;
|
|
10548
|
+
scheduleConfig?: TaskScheduleConfig;
|
|
10549
|
+
maxRetries?: number;
|
|
10550
|
+
}
|
|
10551
|
+
/** List response using domain type for CC compatibility. */
|
|
10552
|
+
interface ListSchedulesResponse {
|
|
10553
|
+
schedules: TaskSchedule[];
|
|
10399
10554
|
total: number;
|
|
10555
|
+
limit: number;
|
|
10556
|
+
offset: number;
|
|
10400
10557
|
}
|
|
10401
10558
|
/**
|
|
10402
|
-
*
|
|
10559
|
+
* List schedules with optional filters.
|
|
10403
10560
|
*
|
|
10404
|
-
* @
|
|
10405
|
-
*
|
|
10406
|
-
* const { data, error, isLoading } = useActivities({ limit: 50 })
|
|
10561
|
+
* @param filters - Optional filters for status, target resource, and pagination
|
|
10562
|
+
* @returns TanStack Query result with schedules array and pagination info
|
|
10407
10563
|
*
|
|
10408
10564
|
* @example
|
|
10409
|
-
*
|
|
10410
|
-
* const { data } =
|
|
10411
|
-
*
|
|
10412
|
-
|
|
10413
|
-
|
|
10565
|
+
* ```tsx
|
|
10566
|
+
* const { data, isLoading } = useListSchedules({ status: 'active', limit: 20 })
|
|
10567
|
+
* ```
|
|
10568
|
+
*/
|
|
10569
|
+
declare function useListSchedules(filters?: ListSchedulesFilters): _tanstack_react_query.UseQueryResult<ListSchedulesResponse, Error>;
|
|
10570
|
+
/**
|
|
10571
|
+
* Get a single schedule by ID.
|
|
10572
|
+
*
|
|
10573
|
+
* @param id - Schedule UUID (undefined to disable query)
|
|
10574
|
+
* @returns TanStack Query result with schedule data
|
|
10414
10575
|
*
|
|
10415
10576
|
* @example
|
|
10416
|
-
*
|
|
10417
|
-
* const { data } =
|
|
10418
|
-
*
|
|
10419
|
-
* entityId: 'workflow-123'
|
|
10420
|
-
* })
|
|
10577
|
+
* ```tsx
|
|
10578
|
+
* const { data: schedule, isLoading } = useGetSchedule(scheduleId)
|
|
10579
|
+
* ```
|
|
10421
10580
|
*/
|
|
10422
|
-
|
|
10423
|
-
timestamps: Date[];
|
|
10424
|
-
total: number;
|
|
10425
|
-
}
|
|
10426
|
-
type UseActivityTrendParams = Omit<UseActivitiesParams, 'limit' | 'offset' | 'search' | 'status'>;
|
|
10581
|
+
declare function useGetSchedule(id: string | undefined): _tanstack_react_query.UseQueryResult<TaskSchedule, Error>;
|
|
10427
10582
|
/**
|
|
10428
|
-
*
|
|
10583
|
+
* Get execution history for a schedule.
|
|
10429
10584
|
*
|
|
10430
|
-
*
|
|
10431
|
-
*
|
|
10585
|
+
* @param scheduleId - Schedule UUID (undefined to disable query)
|
|
10586
|
+
* @param options - Pagination options (limit, offset)
|
|
10587
|
+
* @returns TanStack Query result with execution history and pagination info
|
|
10588
|
+
*
|
|
10589
|
+
* @example
|
|
10590
|
+
* ```tsx
|
|
10591
|
+
* const { data } = useGetExecutionHistory(scheduleId, { limit: 10 })
|
|
10592
|
+
* ```
|
|
10593
|
+
*/
|
|
10594
|
+
declare function useGetExecutionHistory(scheduleId: string | undefined, options?: {
|
|
10595
|
+
limit?: number;
|
|
10596
|
+
offset?: number;
|
|
10597
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
10598
|
+
executions: {
|
|
10599
|
+
id: string;
|
|
10600
|
+
createdAt: string;
|
|
10601
|
+
status: "completed" | "failed" | "running" | "cancelled";
|
|
10602
|
+
step: number | null;
|
|
10603
|
+
itemLabel: string | null;
|
|
10604
|
+
duration: number | null;
|
|
10605
|
+
error: string | null;
|
|
10606
|
+
}[];
|
|
10607
|
+
total: number;
|
|
10608
|
+
limit: number;
|
|
10609
|
+
offset: number;
|
|
10610
|
+
}, Error>;
|
|
10611
|
+
/**
|
|
10612
|
+
* Create a new schedule.
|
|
10613
|
+
*
|
|
10614
|
+
* @returns TanStack Mutation for creating schedules
|
|
10615
|
+
*
|
|
10616
|
+
* @example
|
|
10617
|
+
* ```tsx
|
|
10618
|
+
* const createSchedule = useCreateSchedule()
|
|
10619
|
+
*
|
|
10620
|
+
* createSchedule.mutate({
|
|
10621
|
+
* name: 'Daily Report',
|
|
10622
|
+
* target: { resourceType: 'workflow', resourceId: 'wf-123' },
|
|
10623
|
+
* scheduleConfig: { type: 'recurring', cron: '0 9 * * *', timezone: 'UTC', payload: {} }
|
|
10624
|
+
* })
|
|
10625
|
+
* ```
|
|
10626
|
+
*/
|
|
10627
|
+
declare function useCreateSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, CreateScheduleInput, unknown>;
|
|
10628
|
+
/**
|
|
10629
|
+
* Update schedule fields (name, description, scheduleConfig, maxRetries).
|
|
10630
|
+
* Only active or paused schedules can be updated.
|
|
10631
|
+
*
|
|
10632
|
+
* @returns TanStack Mutation for updating schedules
|
|
10633
|
+
*
|
|
10634
|
+
* @example
|
|
10635
|
+
* ```tsx
|
|
10636
|
+
* const updateSchedule = useUpdateSchedule()
|
|
10637
|
+
*
|
|
10638
|
+
* updateSchedule.mutate({ id: 'schedule-123', name: 'Updated Name' })
|
|
10639
|
+
* ```
|
|
10640
|
+
*/
|
|
10641
|
+
declare function useUpdateSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, UpdateScheduleInput, unknown>;
|
|
10642
|
+
/**
|
|
10643
|
+
* Update anchor datetime for relative schedules.
|
|
10644
|
+
* Only applicable to schedules with type: 'relative'.
|
|
10645
|
+
*
|
|
10646
|
+
* @returns TanStack Mutation for updating schedule anchor
|
|
10647
|
+
*
|
|
10648
|
+
* @example
|
|
10649
|
+
* ```tsx
|
|
10650
|
+
* const updateAnchor = useUpdateAnchor()
|
|
10651
|
+
*
|
|
10652
|
+
* updateAnchor.mutate({ id: 'schedule-123', anchorAt: '2026-02-01T09:00:00Z' })
|
|
10653
|
+
* ```
|
|
10654
|
+
*/
|
|
10655
|
+
declare function useUpdateAnchor(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, {
|
|
10656
|
+
id: string;
|
|
10657
|
+
anchorAt: string;
|
|
10658
|
+
}, unknown>;
|
|
10659
|
+
/**
|
|
10660
|
+
* Pause a schedule.
|
|
10661
|
+
* Paused schedules will not execute until resumed.
|
|
10662
|
+
*
|
|
10663
|
+
* @returns TanStack Mutation for pausing schedules
|
|
10664
|
+
*
|
|
10665
|
+
* @example
|
|
10666
|
+
* ```tsx
|
|
10667
|
+
* const pauseSchedule = usePauseSchedule()
|
|
10668
|
+
* pauseSchedule.mutate('schedule-123')
|
|
10669
|
+
* ```
|
|
10670
|
+
*/
|
|
10671
|
+
declare function usePauseSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, string, unknown>;
|
|
10672
|
+
/**
|
|
10673
|
+
* Resume a paused schedule.
|
|
10674
|
+
*
|
|
10675
|
+
* @returns TanStack Mutation for resuming schedules
|
|
10676
|
+
*
|
|
10677
|
+
* @example
|
|
10678
|
+
* ```tsx
|
|
10679
|
+
* const resumeSchedule = useResumeSchedule()
|
|
10680
|
+
* resumeSchedule.mutate('schedule-123')
|
|
10681
|
+
* ```
|
|
10682
|
+
*/
|
|
10683
|
+
declare function useResumeSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, string, unknown>;
|
|
10684
|
+
/**
|
|
10685
|
+
* Cancel a schedule permanently (soft delete).
|
|
10686
|
+
* Sets status to 'cancelled' -- schedule remains in DB for history.
|
|
10687
|
+
* Cancelled schedules cannot be resumed.
|
|
10688
|
+
*
|
|
10689
|
+
* @returns TanStack Mutation for cancelling schedules
|
|
10690
|
+
*
|
|
10691
|
+
* @example
|
|
10692
|
+
* ```tsx
|
|
10693
|
+
* const cancelSchedule = useCancelSchedule()
|
|
10694
|
+
* cancelSchedule.mutate('schedule-123')
|
|
10695
|
+
* ```
|
|
10696
|
+
*/
|
|
10697
|
+
declare function useCancelSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, string, unknown>;
|
|
10698
|
+
/**
|
|
10699
|
+
* Delete a schedule permanently (hard delete).
|
|
10700
|
+
* Removes schedule from database entirely.
|
|
10701
|
+
*
|
|
10702
|
+
* @returns TanStack Mutation for deleting schedules
|
|
10703
|
+
*
|
|
10704
|
+
* @example
|
|
10705
|
+
* ```tsx
|
|
10706
|
+
* const deleteSchedule = useDeleteSchedule()
|
|
10707
|
+
* deleteSchedule.mutate('schedule-123')
|
|
10708
|
+
* ```
|
|
10709
|
+
*/
|
|
10710
|
+
declare function useDeleteSchedule(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
10711
|
+
|
|
10712
|
+
interface UseActivitiesParams {
|
|
10713
|
+
limit?: number;
|
|
10714
|
+
offset?: number;
|
|
10715
|
+
activityType?: ActivityType;
|
|
10716
|
+
entityType?: string;
|
|
10717
|
+
entityId?: string;
|
|
10718
|
+
startDate?: string;
|
|
10719
|
+
endDate?: string;
|
|
10720
|
+
status?: string;
|
|
10721
|
+
search?: string;
|
|
10722
|
+
}
|
|
10723
|
+
interface ListActivitiesResponse {
|
|
10724
|
+
activities: Activity[];
|
|
10725
|
+
total: number;
|
|
10726
|
+
}
|
|
10727
|
+
/**
|
|
10728
|
+
* Fetch activities with filtering and pagination
|
|
10729
|
+
*
|
|
10730
|
+
* @example
|
|
10731
|
+
* // Basic usage - fetch recent activities
|
|
10732
|
+
* const { data, error, isLoading } = useActivities({ limit: 50 })
|
|
10733
|
+
*
|
|
10734
|
+
* @example
|
|
10735
|
+
* // Filtered by type
|
|
10736
|
+
* const { data } = useActivities({
|
|
10737
|
+
* activityType: 'workflow_execution',
|
|
10738
|
+
* limit: 20
|
|
10739
|
+
* })
|
|
10740
|
+
*
|
|
10741
|
+
* @example
|
|
10742
|
+
* // Filtered by entity
|
|
10743
|
+
* const { data } = useActivities({
|
|
10744
|
+
* entityType: 'workflow',
|
|
10745
|
+
* entityId: 'workflow-123'
|
|
10746
|
+
* })
|
|
10747
|
+
*/
|
|
10748
|
+
interface ActivityTrendResponse {
|
|
10749
|
+
timestamps: Date[];
|
|
10750
|
+
total: number;
|
|
10751
|
+
}
|
|
10752
|
+
type UseActivityTrendParams = Omit<UseActivitiesParams, 'limit' | 'offset' | 'search' | 'status'>;
|
|
10753
|
+
/**
|
|
10754
|
+
* Fetch activity timestamps for the Activity Trend chart
|
|
10755
|
+
*
|
|
10756
|
+
* Uses /activities/trend endpoint which returns only occurred_at timestamps
|
|
10757
|
+
* up to ANALYTICS_SAFETY_LIMIT (10,000), bypassing the MAX_PAGE_LIMIT cap.
|
|
10432
10758
|
* Provides accurate counts for any time range regardless of activity volume.
|
|
10433
10759
|
*/
|
|
10434
10760
|
declare function useActivityTrend(params?: UseActivityTrendParams): _tanstack_react_query.UseQueryResult<ActivityTrendResponse, Error>;
|
|
@@ -10531,65 +10857,6 @@ declare function useNotificationCount(args: UseNotificationCountArgs): {
|
|
|
10531
10857
|
sseError: string | null | undefined;
|
|
10532
10858
|
};
|
|
10533
10859
|
|
|
10534
|
-
declare function useMarkAsRead(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
10535
|
-
|
|
10536
|
-
declare function useMarkAllAsRead(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
10537
|
-
|
|
10538
|
-
/**
|
|
10539
|
-
* Hook that provides a standardized error notification handler
|
|
10540
|
-
* for use in React Query mutation hooks.
|
|
10541
|
-
*
|
|
10542
|
-
* Delegates to the active NotificationAdapter so it works in any
|
|
10543
|
-
* consumer (Mantine, Sonner, console fallback, etc.)
|
|
10544
|
-
*
|
|
10545
|
-
* @example
|
|
10546
|
-
* ```typescript
|
|
10547
|
-
* const mutation = useMutation({
|
|
10548
|
-
* mutationFn: deleteApiKey,
|
|
10549
|
-
* onError: useErrorNotification()
|
|
10550
|
-
* })
|
|
10551
|
-
* ```
|
|
10552
|
-
*/
|
|
10553
|
-
declare function useErrorNotification(): (error: unknown) => void;
|
|
10554
|
-
|
|
10555
|
-
/**
|
|
10556
|
-
* Hook that provides a standardized success notification handler.
|
|
10557
|
-
* Delegates to the active NotificationAdapter.
|
|
10558
|
-
*/
|
|
10559
|
-
declare function useSuccessNotification(): (title: string, message: string) => void;
|
|
10560
|
-
|
|
10561
|
-
/**
|
|
10562
|
-
* Hook that provides a standardized warning notification handler.
|
|
10563
|
-
* Delegates to the active NotificationAdapter.
|
|
10564
|
-
*/
|
|
10565
|
-
declare function useWarningNotification(): (title: string, message: string) => void;
|
|
10566
|
-
|
|
10567
|
-
/**
|
|
10568
|
-
* Batch mark-as-read hook for notifications.
|
|
10569
|
-
*
|
|
10570
|
-
* Sends a DELETE request to `/notifications/batch` with the given IDs,
|
|
10571
|
-
* which the API treats as a bulk mark-as-read operation.
|
|
10572
|
-
*
|
|
10573
|
-
* @param invalidateQueryKeys - Array of query key prefixes to invalidate on success
|
|
10574
|
-
*/
|
|
10575
|
-
declare function useBatchDelete(invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
10576
|
-
|
|
10577
|
-
/**
|
|
10578
|
-
* Mutation hook to send a test notification.
|
|
10579
|
-
* On success, invalidates the notifications query cache.
|
|
10580
|
-
* On error, shows an API error notification via the notification adapter.
|
|
10581
|
-
*
|
|
10582
|
-
* @returns TanStack Mutation for triggering test notifications
|
|
10583
|
-
*
|
|
10584
|
-
* @example
|
|
10585
|
-
* ```tsx
|
|
10586
|
-
* const testNotification = useTestNotification()
|
|
10587
|
-
*
|
|
10588
|
-
* testNotification.mutate()
|
|
10589
|
-
* ```
|
|
10590
|
-
*/
|
|
10591
|
-
declare function useTestNotification(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
10592
|
-
|
|
10593
10860
|
/**
|
|
10594
10861
|
* Query key factories for observability hooks.
|
|
10595
10862
|
* Scoped by organizationId for cache isolation between tenants.
|
|
@@ -10741,230 +11008,64 @@ interface UseRecentExecutionsByResourceParams {
|
|
|
10741
11008
|
*/
|
|
10742
11009
|
declare function useRecentExecutionsByResource({ timeRange, limit }: UseRecentExecutionsByResourceParams): _tanstack_react_query.UseQueryResult<RecentExecutionsByResourceResponse, Error>;
|
|
10743
11010
|
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
11011
|
+
declare function useMarkAsRead(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11012
|
+
|
|
11013
|
+
declare function useMarkAllAsRead(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
11014
|
+
|
|
10748
11015
|
/**
|
|
10749
|
-
*
|
|
10750
|
-
*
|
|
11016
|
+
* Hook that provides a standardized error notification handler
|
|
11017
|
+
* for use in React Query mutation hooks.
|
|
10751
11018
|
*
|
|
10752
|
-
*
|
|
10753
|
-
*
|
|
11019
|
+
* Delegates to the active NotificationAdapter so it works in any
|
|
11020
|
+
* consumer (Mantine, Sonner, console fallback, etc.)
|
|
10754
11021
|
*
|
|
10755
11022
|
* @example
|
|
10756
|
-
* ```
|
|
10757
|
-
* const
|
|
11023
|
+
* ```typescript
|
|
11024
|
+
* const mutation = useMutation({
|
|
11025
|
+
* mutationFn: deleteApiKey,
|
|
11026
|
+
* onError: useErrorNotification()
|
|
11027
|
+
* })
|
|
10758
11028
|
* ```
|
|
10759
11029
|
*/
|
|
10760
|
-
declare function
|
|
11030
|
+
declare function useErrorNotification(): (error: unknown) => void;
|
|
10761
11031
|
|
|
10762
11032
|
/**
|
|
10763
|
-
*
|
|
10764
|
-
*
|
|
10765
|
-
* Uses organizationId (UUID) for tenant-scoped cache isolation.
|
|
10766
|
-
*/
|
|
10767
|
-
declare const scheduleKeys: {
|
|
10768
|
-
all: (orgId: string | null) => readonly ["schedules", string | null];
|
|
10769
|
-
lists: (orgId: string | null) => readonly ["schedules", string | null, "list"];
|
|
10770
|
-
list: (orgId: string | null, filters?: ListSchedulesFilters) => readonly ["schedules", string | null, "list", ListSchedulesFilters | undefined];
|
|
10771
|
-
details: (orgId: string | null) => readonly ["schedules", string | null, "detail"];
|
|
10772
|
-
detail: (orgId: string | null, id: string) => readonly ["schedules", string | null, "detail", string];
|
|
10773
|
-
executions: (orgId: string | null, id: string) => readonly ["schedules", string | null, "detail", string, "executions"];
|
|
10774
|
-
};
|
|
10775
|
-
/**
|
|
10776
|
-
* Filters for list schedules query.
|
|
10777
|
-
* Mirrors ListSchedulesQuery from @repo/core but typed for UI consumption.
|
|
11033
|
+
* Hook that provides a standardized success notification handler.
|
|
11034
|
+
* Delegates to the active NotificationAdapter.
|
|
10778
11035
|
*/
|
|
10779
|
-
|
|
10780
|
-
status?: 'active' | 'paused' | 'completed' | 'cancelled';
|
|
10781
|
-
targetResourceType?: 'agent' | 'workflow';
|
|
10782
|
-
targetResourceId?: string;
|
|
10783
|
-
limit?: number;
|
|
10784
|
-
offset?: number;
|
|
10785
|
-
}
|
|
11036
|
+
declare function useSuccessNotification(): (title: string, message: string) => void;
|
|
10786
11037
|
|
|
10787
|
-
interface CreateScheduleInput {
|
|
10788
|
-
name: string;
|
|
10789
|
-
description?: string;
|
|
10790
|
-
target: {
|
|
10791
|
-
resourceType: 'agent' | 'workflow';
|
|
10792
|
-
resourceId: string;
|
|
10793
|
-
};
|
|
10794
|
-
scheduleConfig: TaskScheduleConfig;
|
|
10795
|
-
maxRetries?: number;
|
|
10796
|
-
idempotencyKey?: string;
|
|
10797
|
-
originExecutionId?: string;
|
|
10798
|
-
originResourceType?: 'agent' | 'workflow' | 'scheduler' | 'api';
|
|
10799
|
-
originResourceId?: string;
|
|
10800
|
-
}
|
|
10801
|
-
interface UpdateScheduleInput {
|
|
10802
|
-
id: string;
|
|
10803
|
-
name?: string;
|
|
10804
|
-
description?: string | null;
|
|
10805
|
-
scheduleConfig?: TaskScheduleConfig;
|
|
10806
|
-
maxRetries?: number;
|
|
10807
|
-
}
|
|
10808
|
-
/** List response using domain type for CC compatibility. */
|
|
10809
|
-
interface ListSchedulesResponse {
|
|
10810
|
-
schedules: TaskSchedule[];
|
|
10811
|
-
total: number;
|
|
10812
|
-
limit: number;
|
|
10813
|
-
offset: number;
|
|
10814
|
-
}
|
|
10815
|
-
/**
|
|
10816
|
-
* List schedules with optional filters.
|
|
10817
|
-
*
|
|
10818
|
-
* @param filters - Optional filters for status, target resource, and pagination
|
|
10819
|
-
* @returns TanStack Query result with schedules array and pagination info
|
|
10820
|
-
*
|
|
10821
|
-
* @example
|
|
10822
|
-
* ```tsx
|
|
10823
|
-
* const { data, isLoading } = useListSchedules({ status: 'active', limit: 20 })
|
|
10824
|
-
* ```
|
|
10825
|
-
*/
|
|
10826
|
-
declare function useListSchedules(filters?: ListSchedulesFilters): _tanstack_react_query.UseQueryResult<ListSchedulesResponse, Error>;
|
|
10827
|
-
/**
|
|
10828
|
-
* Get a single schedule by ID.
|
|
10829
|
-
*
|
|
10830
|
-
* @param id - Schedule UUID (undefined to disable query)
|
|
10831
|
-
* @returns TanStack Query result with schedule data
|
|
10832
|
-
*
|
|
10833
|
-
* @example
|
|
10834
|
-
* ```tsx
|
|
10835
|
-
* const { data: schedule, isLoading } = useGetSchedule(scheduleId)
|
|
10836
|
-
* ```
|
|
10837
|
-
*/
|
|
10838
|
-
declare function useGetSchedule(id: string | undefined): _tanstack_react_query.UseQueryResult<TaskSchedule, Error>;
|
|
10839
|
-
/**
|
|
10840
|
-
* Get execution history for a schedule.
|
|
10841
|
-
*
|
|
10842
|
-
* @param scheduleId - Schedule UUID (undefined to disable query)
|
|
10843
|
-
* @param options - Pagination options (limit, offset)
|
|
10844
|
-
* @returns TanStack Query result with execution history and pagination info
|
|
10845
|
-
*
|
|
10846
|
-
* @example
|
|
10847
|
-
* ```tsx
|
|
10848
|
-
* const { data } = useGetExecutionHistory(scheduleId, { limit: 10 })
|
|
10849
|
-
* ```
|
|
10850
|
-
*/
|
|
10851
|
-
declare function useGetExecutionHistory(scheduleId: string | undefined, options?: {
|
|
10852
|
-
limit?: number;
|
|
10853
|
-
offset?: number;
|
|
10854
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
10855
|
-
executions: {
|
|
10856
|
-
id: string;
|
|
10857
|
-
createdAt: string;
|
|
10858
|
-
status: "completed" | "failed" | "running" | "cancelled";
|
|
10859
|
-
step: number | null;
|
|
10860
|
-
itemLabel: string | null;
|
|
10861
|
-
duration: number | null;
|
|
10862
|
-
error: string | null;
|
|
10863
|
-
}[];
|
|
10864
|
-
total: number;
|
|
10865
|
-
limit: number;
|
|
10866
|
-
offset: number;
|
|
10867
|
-
}, Error>;
|
|
10868
|
-
/**
|
|
10869
|
-
* Create a new schedule.
|
|
10870
|
-
*
|
|
10871
|
-
* @returns TanStack Mutation for creating schedules
|
|
10872
|
-
*
|
|
10873
|
-
* @example
|
|
10874
|
-
* ```tsx
|
|
10875
|
-
* const createSchedule = useCreateSchedule()
|
|
10876
|
-
*
|
|
10877
|
-
* createSchedule.mutate({
|
|
10878
|
-
* name: 'Daily Report',
|
|
10879
|
-
* target: { resourceType: 'workflow', resourceId: 'wf-123' },
|
|
10880
|
-
* scheduleConfig: { type: 'recurring', cron: '0 9 * * *', timezone: 'UTC', payload: {} }
|
|
10881
|
-
* })
|
|
10882
|
-
* ```
|
|
10883
|
-
*/
|
|
10884
|
-
declare function useCreateSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, CreateScheduleInput, unknown>;
|
|
10885
|
-
/**
|
|
10886
|
-
* Update schedule fields (name, description, scheduleConfig, maxRetries).
|
|
10887
|
-
* Only active or paused schedules can be updated.
|
|
10888
|
-
*
|
|
10889
|
-
* @returns TanStack Mutation for updating schedules
|
|
10890
|
-
*
|
|
10891
|
-
* @example
|
|
10892
|
-
* ```tsx
|
|
10893
|
-
* const updateSchedule = useUpdateSchedule()
|
|
10894
|
-
*
|
|
10895
|
-
* updateSchedule.mutate({ id: 'schedule-123', name: 'Updated Name' })
|
|
10896
|
-
* ```
|
|
10897
|
-
*/
|
|
10898
|
-
declare function useUpdateSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, UpdateScheduleInput, unknown>;
|
|
10899
|
-
/**
|
|
10900
|
-
* Update anchor datetime for relative schedules.
|
|
10901
|
-
* Only applicable to schedules with type: 'relative'.
|
|
10902
|
-
*
|
|
10903
|
-
* @returns TanStack Mutation for updating schedule anchor
|
|
10904
|
-
*
|
|
10905
|
-
* @example
|
|
10906
|
-
* ```tsx
|
|
10907
|
-
* const updateAnchor = useUpdateAnchor()
|
|
10908
|
-
*
|
|
10909
|
-
* updateAnchor.mutate({ id: 'schedule-123', anchorAt: '2026-02-01T09:00:00Z' })
|
|
10910
|
-
* ```
|
|
10911
|
-
*/
|
|
10912
|
-
declare function useUpdateAnchor(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, {
|
|
10913
|
-
id: string;
|
|
10914
|
-
anchorAt: string;
|
|
10915
|
-
}, unknown>;
|
|
10916
11038
|
/**
|
|
10917
|
-
*
|
|
10918
|
-
*
|
|
10919
|
-
*
|
|
10920
|
-
* @returns TanStack Mutation for pausing schedules
|
|
10921
|
-
*
|
|
10922
|
-
* @example
|
|
10923
|
-
* ```tsx
|
|
10924
|
-
* const pauseSchedule = usePauseSchedule()
|
|
10925
|
-
* pauseSchedule.mutate('schedule-123')
|
|
10926
|
-
* ```
|
|
11039
|
+
* Hook that provides a standardized warning notification handler.
|
|
11040
|
+
* Delegates to the active NotificationAdapter.
|
|
10927
11041
|
*/
|
|
10928
|
-
declare function
|
|
11042
|
+
declare function useWarningNotification(): (title: string, message: string) => void;
|
|
11043
|
+
|
|
10929
11044
|
/**
|
|
10930
|
-
*
|
|
11045
|
+
* Batch mark-as-read hook for notifications.
|
|
10931
11046
|
*
|
|
10932
|
-
*
|
|
11047
|
+
* Sends a DELETE request to `/notifications/batch` with the given IDs,
|
|
11048
|
+
* which the API treats as a bulk mark-as-read operation.
|
|
10933
11049
|
*
|
|
10934
|
-
* @
|
|
10935
|
-
* ```tsx
|
|
10936
|
-
* const resumeSchedule = useResumeSchedule()
|
|
10937
|
-
* resumeSchedule.mutate('schedule-123')
|
|
10938
|
-
* ```
|
|
11050
|
+
* @param invalidateQueryKeys - Array of query key prefixes to invalidate on success
|
|
10939
11051
|
*/
|
|
10940
|
-
declare function
|
|
11052
|
+
declare function useBatchDelete(invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
11053
|
+
|
|
10941
11054
|
/**
|
|
10942
|
-
*
|
|
10943
|
-
*
|
|
10944
|
-
*
|
|
11055
|
+
* Mutation hook to send a test notification.
|
|
11056
|
+
* On success, invalidates the notifications query cache.
|
|
11057
|
+
* On error, shows an API error notification via the notification adapter.
|
|
10945
11058
|
*
|
|
10946
|
-
* @returns TanStack Mutation for
|
|
11059
|
+
* @returns TanStack Mutation for triggering test notifications
|
|
10947
11060
|
*
|
|
10948
11061
|
* @example
|
|
10949
11062
|
* ```tsx
|
|
10950
|
-
* const
|
|
10951
|
-
* cancelSchedule.mutate('schedule-123')
|
|
10952
|
-
* ```
|
|
10953
|
-
*/
|
|
10954
|
-
declare function useCancelSchedule(): _tanstack_react_query.UseMutationResult<TaskSchedule, Error, string, unknown>;
|
|
10955
|
-
/**
|
|
10956
|
-
* Delete a schedule permanently (hard delete).
|
|
10957
|
-
* Removes schedule from database entirely.
|
|
10958
|
-
*
|
|
10959
|
-
* @returns TanStack Mutation for deleting schedules
|
|
11063
|
+
* const testNotification = useTestNotification()
|
|
10960
11064
|
*
|
|
10961
|
-
*
|
|
10962
|
-
* ```tsx
|
|
10963
|
-
* const deleteSchedule = useDeleteSchedule()
|
|
10964
|
-
* deleteSchedule.mutate('schedule-123')
|
|
11065
|
+
* testNotification.mutate()
|
|
10965
11066
|
* ```
|
|
10966
11067
|
*/
|
|
10967
|
-
declare function
|
|
11068
|
+
declare function useTestNotification(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
10968
11069
|
|
|
10969
11070
|
interface SessionListItem {
|
|
10970
11071
|
sessionId: string;
|
|
@@ -11039,125 +11140,18 @@ declare class OperationsService {
|
|
|
11039
11140
|
}
|
|
11040
11141
|
|
|
11041
11142
|
/**
|
|
11042
|
-
*
|
|
11043
|
-
*
|
|
11143
|
+
* Shared hook for pagination state management.
|
|
11144
|
+
* Encapsulates page state, offset calculation, and reset-on-filter-change.
|
|
11145
|
+
*
|
|
11146
|
+
* @param pageSize - Number of items per page
|
|
11147
|
+
* @param resetDeps - When any dependency changes, page resets to 1. Omit to disable auto-reset.
|
|
11148
|
+
* @param total - When provided, automatically retreats to the last valid page if the current page becomes empty (e.g., after bulk deletion).
|
|
11044
11149
|
*/
|
|
11045
|
-
declare
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
resourceId?: string;
|
|
11051
|
-
} | undefined];
|
|
11052
|
-
session: (org: string, sessionId: string) => readonly ["sessions", "detail", string, string];
|
|
11053
|
-
executions: (org: string, sessionId: string) => readonly ["sessions", string, string, "executions"];
|
|
11054
|
-
execution: (org: string, sessionId: string, executionId: string) => readonly ["sessions", string, string, "executions", string];
|
|
11055
|
-
messages: (org: string, sessionId: string) => readonly ["sessions", string, string, "messages"];
|
|
11056
|
-
};
|
|
11057
|
-
|
|
11058
|
-
interface SessionExecution {
|
|
11059
|
-
executionId: string;
|
|
11060
|
-
turnNumber: number;
|
|
11061
|
-
status: string;
|
|
11062
|
-
startedAt: string;
|
|
11063
|
-
completedAt?: string;
|
|
11064
|
-
duration?: number;
|
|
11065
|
-
}
|
|
11066
|
-
interface SessionExecutionsResponse {
|
|
11067
|
-
sessionId: string;
|
|
11068
|
-
executions: SessionExecution[];
|
|
11069
|
-
}
|
|
11070
|
-
interface GetMessagesResponse {
|
|
11071
|
-
sessionId: string;
|
|
11072
|
-
messages: Array<{
|
|
11073
|
-
id: string;
|
|
11074
|
-
role: 'user' | 'assistant';
|
|
11075
|
-
messageType: MessageType;
|
|
11076
|
-
text: string;
|
|
11077
|
-
metadata?: MessageEvent;
|
|
11078
|
-
turnNumber: number;
|
|
11079
|
-
messageIndex?: number;
|
|
11080
|
-
createdAt: string;
|
|
11081
|
-
}>;
|
|
11082
|
-
}
|
|
11083
|
-
interface WebSocketState {
|
|
11084
|
-
isConnected: boolean;
|
|
11085
|
-
isProcessing: boolean;
|
|
11086
|
-
error: string | null;
|
|
11087
|
-
}
|
|
11088
|
-
|
|
11089
|
-
/**
|
|
11090
|
-
* Hook to fetch sessions list with optional filtering.
|
|
11091
|
-
*/
|
|
11092
|
-
declare function useSessions(params?: {
|
|
11093
|
-
resourceId?: string;
|
|
11094
|
-
}, options?: {
|
|
11095
|
-
enabled?: boolean;
|
|
11096
|
-
}): _tanstack_react_query.UseQueryResult<SessionListItem[], Error>;
|
|
11097
|
-
/**
|
|
11098
|
-
* Hook to fetch a single session by ID.
|
|
11099
|
-
*/
|
|
11100
|
-
declare function useSession(sessionId: string): _tanstack_react_query.UseQueryResult<SessionDTO, Error>;
|
|
11101
|
-
/**
|
|
11102
|
-
* Hook to create a new session.
|
|
11103
|
-
*/
|
|
11104
|
-
declare function useCreateSession(): _tanstack_react_query.UseMutationResult<CreateSessionResponse, Error, string, unknown>;
|
|
11105
|
-
/**
|
|
11106
|
-
* Hook to delete a session.
|
|
11107
|
-
*/
|
|
11108
|
-
declare function useDeleteSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11109
|
-
/**
|
|
11110
|
-
* Hook to archive a session.
|
|
11111
|
-
*/
|
|
11112
|
-
declare function useArchiveSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11113
|
-
|
|
11114
|
-
/**
|
|
11115
|
-
* Hook to fetch all executions for a session, grouped by turn.
|
|
11116
|
-
* Each turn creates one execution.
|
|
11117
|
-
*/
|
|
11118
|
-
declare function useSessionExecutions(sessionId: string): _tanstack_react_query.UseQueryResult<SessionExecutionsResponse, Error>;
|
|
11119
|
-
/**
|
|
11120
|
-
* Hook to fetch a single execution detail for a session turn.
|
|
11121
|
-
* Auto-refetches every 2 seconds while the execution is still running.
|
|
11122
|
-
*/
|
|
11123
|
-
declare function useSessionExecution(sessionId: string, executionId: string): _tanstack_react_query.UseQueryResult<APIExecutionDetail$1, Error>;
|
|
11124
|
-
|
|
11125
|
-
/**
|
|
11126
|
-
* Hook to fetch message history for a session.
|
|
11127
|
-
* Transforms ISO date strings to Date objects on the returned messages.
|
|
11128
|
-
*/
|
|
11129
|
-
declare function useSessionMessages(sessionId: string): _tanstack_react_query.UseQueryResult<ChatMessage[], Error>;
|
|
11130
|
-
|
|
11131
|
-
/**
|
|
11132
|
-
* WebSocket hook for real-time agent chat sessions.
|
|
11133
|
-
* Connects to backend WebSocket endpoint with authentication.
|
|
11134
|
-
* Auto-reconnects with exponential backoff.
|
|
11135
|
-
*
|
|
11136
|
-
* @param sessionId - The session to connect to.
|
|
11137
|
-
* @param apiUrl - Base URL of the API server (e.g. "https://api.example.com").
|
|
11138
|
-
* Callers typically obtain this from their service configuration.
|
|
11139
|
-
*/
|
|
11140
|
-
declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
|
|
11141
|
-
messages: ChatMessage[];
|
|
11142
|
-
state: WebSocketState;
|
|
11143
|
-
sendMessage: (text: string, pageContext?: Record<string, unknown>) => void;
|
|
11144
|
-
clearError: () => void;
|
|
11145
|
-
lastTokenUsage: SessionTokenUsage | null;
|
|
11146
|
-
};
|
|
11147
|
-
|
|
11148
|
-
/**
|
|
11149
|
-
* Shared hook for pagination state management.
|
|
11150
|
-
* Encapsulates page state, offset calculation, and reset-on-filter-change.
|
|
11151
|
-
*
|
|
11152
|
-
* @param pageSize - Number of items per page
|
|
11153
|
-
* @param resetDeps - When any dependency changes, page resets to 1. Omit to disable auto-reset.
|
|
11154
|
-
* @param total - When provided, automatically retreats to the last valid page if the current page becomes empty (e.g., after bulk deletion).
|
|
11155
|
-
*/
|
|
11156
|
-
declare function usePaginationState(pageSize: number, resetDeps?: unknown[], total?: number): {
|
|
11157
|
-
page: number;
|
|
11158
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
11159
|
-
offset: number;
|
|
11160
|
-
totalPages: (total: number) => number;
|
|
11150
|
+
declare function usePaginationState(pageSize: number, resetDeps?: unknown[], total?: number): {
|
|
11151
|
+
page: number;
|
|
11152
|
+
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
11153
|
+
offset: number;
|
|
11154
|
+
totalPages: (total: number) => number;
|
|
11161
11155
|
};
|
|
11162
11156
|
|
|
11163
11157
|
/**
|
|
@@ -11351,17 +11345,17 @@ interface FeatureAccessResult {
|
|
|
11351
11345
|
* @example
|
|
11352
11346
|
* ```typescript
|
|
11353
11347
|
* // In your app's feature-access module
|
|
11354
|
-
* import {
|
|
11348
|
+
* import { createFeatureAccessHook } from '@repo/ui/hooks'
|
|
11355
11349
|
* import { useInitialization } from '@repo/ui/initialization'
|
|
11356
11350
|
* import { useOrganization } from '@repo/ui/organization'
|
|
11357
11351
|
*
|
|
11358
|
-
* export const useFeatureAccess =
|
|
11352
|
+
* export const useFeatureAccess = createFeatureAccessHook({
|
|
11359
11353
|
* useInitialization,
|
|
11360
11354
|
* useOrganization,
|
|
11361
11355
|
* })
|
|
11362
11356
|
* ```
|
|
11363
11357
|
*/
|
|
11364
|
-
declare function
|
|
11358
|
+
declare function createFeatureAccessHook({ useInitialization, useOrganization }: {
|
|
11365
11359
|
useInitialization: () => Pick<AppInitializationState, 'profile' | 'organizationReady'>;
|
|
11366
11360
|
useOrganization: () => Pick<OrganizationContextValue, 'currentMembership'>;
|
|
11367
11361
|
}): () => {
|
|
@@ -11372,6 +11366,21 @@ declare function createUseFeatureAccess({ useInitialization, useOrganization }:
|
|
|
11372
11366
|
checkFeature: (featureKey: string) => FeatureAccessResult;
|
|
11373
11367
|
isReady: boolean;
|
|
11374
11368
|
};
|
|
11369
|
+
/**
|
|
11370
|
+
* @deprecated Use `createFeatureAccessHook` instead. This alias will be removed in a future release.
|
|
11371
|
+
*/
|
|
11372
|
+
declare const createUseFeatureAccess: typeof createFeatureAccessHook;
|
|
11373
|
+
|
|
11374
|
+
/**
|
|
11375
|
+
* Authoritative source for feature-key aliases used in feature access resolution.
|
|
11376
|
+
*
|
|
11377
|
+
* These aliases map the legacy/UI-facing feature keys (e.g. "crm", "lead-gen",
|
|
11378
|
+
* "projects") to their canonical organization-model keys ("acquisition", "delivery").
|
|
11379
|
+
*
|
|
11380
|
+
* Both `createFeatureAccessHook` and `ElevasisFeaturesProvider` import from here
|
|
11381
|
+
* to ensure a single source of truth.
|
|
11382
|
+
*/
|
|
11383
|
+
declare const FEATURE_KEY_ALIASES: Record<string, string>;
|
|
11375
11384
|
|
|
11376
11385
|
interface UseSSEConnectionOptions {
|
|
11377
11386
|
manager: SSEConnectionManagerLike;
|
|
@@ -11420,506 +11429,218 @@ declare function useSSEConnection({ manager, connectionKey, url, enabled, header
|
|
|
11420
11429
|
error: string | null;
|
|
11421
11430
|
};
|
|
11422
11431
|
|
|
11423
|
-
interface ResourceSearchStore {
|
|
11424
|
-
query: string;
|
|
11425
|
-
set: (query: string) => void;
|
|
11426
|
-
}
|
|
11427
|
-
declare const useResourceSearch: zustand.UseBoundStore<zustand.StoreApi<ResourceSearchStore>>;
|
|
11428
|
-
|
|
11429
|
-
type StatusFilter$1 = 'all' | 'dev' | 'prod';
|
|
11430
|
-
interface StatusFilterStore {
|
|
11431
|
-
value: StatusFilter$1;
|
|
11432
|
-
set: (value: StatusFilter$1) => void;
|
|
11433
|
-
}
|
|
11434
|
-
declare const useStatusFilter: zustand.UseBoundStore<zustand.StoreApi<StatusFilterStore>>;
|
|
11435
|
-
|
|
11436
11432
|
/**
|
|
11437
|
-
*
|
|
11438
|
-
*
|
|
11439
|
-
*
|
|
11440
|
-
* Cards must have a `data-resource-id` attribute to be tracked.
|
|
11433
|
+
* Session-scoped query key factory.
|
|
11434
|
+
* Organization identifier is always included for cache isolation.
|
|
11441
11435
|
*/
|
|
11442
|
-
declare
|
|
11443
|
-
|
|
11444
|
-
|
|
11436
|
+
declare const sessionsKeys: {
|
|
11437
|
+
all: readonly ["sessions"];
|
|
11438
|
+
sessions: (org: string, params?: {
|
|
11439
|
+
resourceId?: string;
|
|
11440
|
+
}) => readonly ["sessions", "list", string, {
|
|
11441
|
+
resourceId?: string;
|
|
11442
|
+
} | undefined];
|
|
11443
|
+
session: (org: string, sessionId: string) => readonly ["sessions", "detail", string, string];
|
|
11444
|
+
executions: (org: string, sessionId: string) => readonly ["sessions", string, string, "executions"];
|
|
11445
|
+
execution: (org: string, sessionId: string, executionId: string) => readonly ["sessions", string, string, "executions", string];
|
|
11446
|
+
messages: (org: string, sessionId: string) => readonly ["sessions", string, string, "messages"];
|
|
11445
11447
|
};
|
|
11446
11448
|
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11449
|
+
interface SessionExecution {
|
|
11450
|
+
executionId: string;
|
|
11451
|
+
turnNumber: number;
|
|
11452
|
+
status: string;
|
|
11453
|
+
startedAt: string;
|
|
11454
|
+
completedAt?: string;
|
|
11455
|
+
duration?: number;
|
|
11456
|
+
}
|
|
11457
|
+
interface SessionExecutionsResponse {
|
|
11458
|
+
sessionId: string;
|
|
11459
|
+
executions: SessionExecution[];
|
|
11460
|
+
}
|
|
11461
|
+
interface GetMessagesResponse {
|
|
11462
|
+
sessionId: string;
|
|
11463
|
+
messages: Array<{
|
|
11464
|
+
id: string;
|
|
11465
|
+
role: 'user' | 'assistant';
|
|
11466
|
+
messageType: MessageType;
|
|
11467
|
+
text: string;
|
|
11468
|
+
metadata?: MessageEvent;
|
|
11469
|
+
turnNumber: number;
|
|
11470
|
+
messageIndex?: number;
|
|
11471
|
+
createdAt: string;
|
|
11472
|
+
}>;
|
|
11473
|
+
}
|
|
11474
|
+
interface WebSocketState {
|
|
11475
|
+
isConnected: boolean;
|
|
11476
|
+
isProcessing: boolean;
|
|
11477
|
+
error: string | null;
|
|
11452
11478
|
}
|
|
11453
|
-
declare const useResourcesDomainFilters: zustand.UseBoundStore<Omit<zustand.StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
11454
|
-
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
11455
|
-
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
11456
|
-
persist: {
|
|
11457
|
-
setOptions: (options: Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
11458
|
-
clearStorage: () => void;
|
|
11459
|
-
rehydrate: () => Promise<void> | void;
|
|
11460
|
-
hasHydrated: () => boolean;
|
|
11461
|
-
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
11462
|
-
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
11463
|
-
getOptions: () => Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
11464
|
-
};
|
|
11465
|
-
}>;
|
|
11466
|
-
declare const useCommandViewDomainFilters: zustand.UseBoundStore<Omit<zustand.StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
11467
|
-
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
11468
|
-
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
11469
|
-
persist: {
|
|
11470
|
-
setOptions: (options: Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
11471
|
-
clearStorage: () => void;
|
|
11472
|
-
rehydrate: () => Promise<void> | void;
|
|
11473
|
-
hasHydrated: () => boolean;
|
|
11474
|
-
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
11475
|
-
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
11476
|
-
getOptions: () => Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
11477
|
-
};
|
|
11478
|
-
}>;
|
|
11479
|
-
declare function filterByDomainFilters(items: ResourceDefinition[], filters: Record<string, DomainFilterState>): ResourceDefinition[];
|
|
11480
11479
|
|
|
11481
11480
|
/**
|
|
11482
|
-
*
|
|
11483
|
-
* for use in data guide suggested params.
|
|
11481
|
+
* Hook to fetch sessions list with optional filtering.
|
|
11484
11482
|
*/
|
|
11485
|
-
declare function
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
interface ActivityFilters {
|
|
11491
|
-
activityType?: ActivityType | 'all';
|
|
11492
|
-
status?: ActivityStatus | 'all';
|
|
11493
|
-
search?: string;
|
|
11494
|
-
}
|
|
11495
|
-
declare function useActivityFilters(timeRange: TimeRange): {
|
|
11496
|
-
filters: ActivityFilters;
|
|
11497
|
-
updateFilter: <K extends keyof ActivityFilters>(key: K, value: ActivityFilters[K]) => void;
|
|
11498
|
-
resetFilters: () => void;
|
|
11499
|
-
getApiParams: () => {
|
|
11500
|
-
activityType?: ActivityType;
|
|
11501
|
-
startDate?: string;
|
|
11502
|
-
status?: string;
|
|
11503
|
-
search?: string;
|
|
11504
|
-
};
|
|
11505
|
-
};
|
|
11506
|
-
|
|
11507
|
-
interface ExecutionLogsFilters {
|
|
11508
|
-
resourceId: string | undefined;
|
|
11509
|
-
status: 'all' | ExecutionStatus$1;
|
|
11510
|
-
resourceStatus: 'all' | 'dev' | 'prod';
|
|
11511
|
-
}
|
|
11483
|
+
declare function useSessions(params?: {
|
|
11484
|
+
resourceId?: string;
|
|
11485
|
+
}, options?: {
|
|
11486
|
+
enabled?: boolean;
|
|
11487
|
+
}): _tanstack_react_query.UseQueryResult<SessionListItem[], Error>;
|
|
11512
11488
|
/**
|
|
11513
|
-
*
|
|
11514
|
-
* No data fetching -- manages filter state with reset capability.
|
|
11515
|
-
*
|
|
11516
|
-
* @param _timeRange - Time range context (reserved for future use)
|
|
11517
|
-
* @returns filters state, updateFilter setter, and resetFilters utility
|
|
11518
|
-
*
|
|
11519
|
-
* @example
|
|
11520
|
-
* ```tsx
|
|
11521
|
-
* const { filters, updateFilter, resetFilters } = useExecutionLogsFilters(timeRange)
|
|
11522
|
-
*
|
|
11523
|
-
* updateFilter('status', 'failed')
|
|
11524
|
-
* updateFilter('resourceId', 'wf-123')
|
|
11525
|
-
* resetFilters()
|
|
11526
|
-
* ```
|
|
11489
|
+
* Hook to fetch a single session by ID.
|
|
11527
11490
|
*/
|
|
11528
|
-
declare function
|
|
11529
|
-
filters: ExecutionLogsFilters;
|
|
11530
|
-
updateFilter: <K extends keyof ExecutionLogsFilters>(key: K, value: ExecutionLogsFilters[K]) => void;
|
|
11531
|
-
resetFilters: () => void;
|
|
11532
|
-
};
|
|
11533
|
-
|
|
11491
|
+
declare function useSession(sessionId: string): _tanstack_react_query.UseQueryResult<SessionDTO, Error>;
|
|
11534
11492
|
/**
|
|
11535
|
-
*
|
|
11536
|
-
*
|
|
11537
|
-
* Note: `organizationId` is passed as a parameter (not read from context)
|
|
11538
|
-
* so consumers can query for a specific organization independently.
|
|
11539
|
-
*
|
|
11540
|
-
* @param organizationId - The organization to fetch members for
|
|
11541
|
-
* @param params - Optional additional filters (reserved for future use)
|
|
11542
|
-
* @returns TanStack Query result with MembershipWithDetails array
|
|
11543
|
-
*
|
|
11544
|
-
* @example
|
|
11545
|
-
* ```tsx
|
|
11546
|
-
* const { data: members, isLoading } = useOrganizationMembers(organizationId)
|
|
11547
|
-
* ```
|
|
11493
|
+
* Hook to create a new session.
|
|
11548
11494
|
*/
|
|
11549
|
-
declare function
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
}
|
|
11559
|
-
interface ListApiKeysResponse {
|
|
11560
|
-
keys: ApiKeyListItem[];
|
|
11561
|
-
}
|
|
11562
|
-
type ApiRequest$3 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
11563
|
-
declare class ApiKeyService {
|
|
11564
|
-
private apiRequest;
|
|
11565
|
-
constructor(apiRequest: ApiRequest$3);
|
|
11566
|
-
/**
|
|
11567
|
-
* List API keys for the current organization
|
|
11568
|
-
*/
|
|
11569
|
-
listApiKeys(): Promise<ApiKeyListItem[]>;
|
|
11570
|
-
/**
|
|
11571
|
-
* Create a new API key
|
|
11572
|
-
*/
|
|
11573
|
-
createApiKey(data: CreateApiKeyRequest): Promise<CreateApiKeyResponse>;
|
|
11574
|
-
/**
|
|
11575
|
-
* Update an API key's name
|
|
11576
|
-
*/
|
|
11577
|
-
updateApiKey(keyId: string, data: {
|
|
11578
|
-
name: string;
|
|
11579
|
-
}): Promise<void>;
|
|
11580
|
-
/**
|
|
11581
|
-
* Delete an API key
|
|
11582
|
-
*/
|
|
11583
|
-
deleteApiKey(keyId: string): Promise<void>;
|
|
11584
|
-
}
|
|
11585
|
-
|
|
11586
|
-
declare function useListApiKeys(): _tanstack_react_query.UseQueryResult<ApiKeyListItem[], Error>;
|
|
11587
|
-
|
|
11588
|
-
declare function useCreateApiKey(): _tanstack_react_query.UseMutationResult<CreateApiKeyResponse, Error, CreateApiKeyRequest, unknown>;
|
|
11495
|
+
declare function useCreateSession(): _tanstack_react_query.UseMutationResult<CreateSessionResponse, Error, string, unknown>;
|
|
11496
|
+
/**
|
|
11497
|
+
* Hook to delete a session.
|
|
11498
|
+
*/
|
|
11499
|
+
declare function useDeleteSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11500
|
+
/**
|
|
11501
|
+
* Hook to archive a session.
|
|
11502
|
+
*/
|
|
11503
|
+
declare function useArchiveSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11589
11504
|
|
|
11590
|
-
|
|
11505
|
+
/**
|
|
11506
|
+
* Hook to fetch all executions for a session, grouped by turn.
|
|
11507
|
+
* Each turn creates one execution.
|
|
11508
|
+
*/
|
|
11509
|
+
declare function useSessionExecutions(sessionId: string): _tanstack_react_query.UseQueryResult<SessionExecutionsResponse, Error>;
|
|
11510
|
+
/**
|
|
11511
|
+
* Hook to fetch a single execution detail for a session turn.
|
|
11512
|
+
* Auto-refetches every 2 seconds while the execution is still running.
|
|
11513
|
+
*/
|
|
11514
|
+
declare function useSessionExecution(sessionId: string, executionId: string): _tanstack_react_query.UseQueryResult<APIExecutionDetail$1, Error>;
|
|
11591
11515
|
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11516
|
+
/**
|
|
11517
|
+
* Hook to fetch message history for a session.
|
|
11518
|
+
* Transforms ISO date strings to Date objects on the returned messages.
|
|
11519
|
+
*/
|
|
11520
|
+
declare function useSessionMessages(sessionId: string): _tanstack_react_query.UseQueryResult<ChatMessage[], Error>;
|
|
11596
11521
|
|
|
11597
11522
|
/**
|
|
11598
|
-
*
|
|
11523
|
+
* WebSocket hook for real-time agent chat sessions.
|
|
11524
|
+
* Connects to backend WebSocket endpoint with authentication.
|
|
11525
|
+
* Auto-reconnects with exponential backoff.
|
|
11526
|
+
*
|
|
11527
|
+
* @param sessionId - The session to connect to.
|
|
11528
|
+
* @param apiUrl - Base URL of the API server (e.g. "https://api.example.com").
|
|
11529
|
+
* Callers typically obtain this from their service configuration.
|
|
11599
11530
|
*/
|
|
11600
|
-
declare
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
createdAt: z.string().datetime()
|
|
11608
|
-
})
|
|
11609
|
-
)
|
|
11610
|
-
})
|
|
11531
|
+
declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
|
|
11532
|
+
messages: ChatMessage[];
|
|
11533
|
+
state: WebSocketState;
|
|
11534
|
+
sendMessage: (text: string, pageContext?: Record<string, unknown>) => void;
|
|
11535
|
+
clearError: () => void;
|
|
11536
|
+
lastTokenUsage: SessionTokenUsage | null;
|
|
11537
|
+
};
|
|
11611
11538
|
|
|
11612
|
-
|
|
11613
|
-
|
|
11539
|
+
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
11540
|
+
status?: TaskStatus$1;
|
|
11541
|
+
limit?: number;
|
|
11542
|
+
offset?: number;
|
|
11543
|
+
humanCheckpoint?: string;
|
|
11544
|
+
timeRange?: TimeRange;
|
|
11545
|
+
priorityMin?: number;
|
|
11546
|
+
priorityMax?: number;
|
|
11547
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
11548
|
+
createdAt: Date;
|
|
11549
|
+
completedAt: Date | undefined;
|
|
11550
|
+
expiresAt: Date | undefined;
|
|
11551
|
+
id: string;
|
|
11552
|
+
organizationId: string;
|
|
11553
|
+
actions: ActionConfig[];
|
|
11554
|
+
context: unknown;
|
|
11555
|
+
selectedAction?: string;
|
|
11556
|
+
actionPayload?: unknown;
|
|
11557
|
+
description?: string;
|
|
11558
|
+
priority: number;
|
|
11559
|
+
humanCheckpoint?: string;
|
|
11560
|
+
status: TaskStatus$1;
|
|
11561
|
+
targetResourceId?: string;
|
|
11562
|
+
targetResourceType?: "agent" | "workflow";
|
|
11563
|
+
targetExecutionId?: string;
|
|
11564
|
+
completedBy?: string;
|
|
11565
|
+
idempotencyKey?: string | null;
|
|
11566
|
+
originExecutionId: string;
|
|
11567
|
+
originResourceType: OriginResourceType;
|
|
11568
|
+
originResourceId: string;
|
|
11569
|
+
}[], Error>;
|
|
11614
11570
|
|
|
11615
|
-
interface
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11571
|
+
interface SubmitActionRequest {
|
|
11572
|
+
taskId: string;
|
|
11573
|
+
actionId: string;
|
|
11574
|
+
payload?: unknown;
|
|
11575
|
+
notes?: string;
|
|
11619
11576
|
}
|
|
11620
|
-
interface
|
|
11621
|
-
|
|
11622
|
-
name: string;
|
|
11623
|
-
type: string;
|
|
11577
|
+
interface OptimisticContext {
|
|
11578
|
+
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
11624
11579
|
}
|
|
11625
|
-
interface
|
|
11626
|
-
|
|
11580
|
+
interface ExecutionErrorDetails {
|
|
11581
|
+
message: string;
|
|
11582
|
+
type: string;
|
|
11583
|
+
severity: 'critical' | 'warning' | 'info';
|
|
11584
|
+
category: 'llm' | 'tool' | 'workflow' | 'agent' | 'validation' | 'system';
|
|
11585
|
+
details?: string;
|
|
11627
11586
|
}
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
listCredentials(): Promise<CredentialListItem[]>;
|
|
11637
|
-
/**
|
|
11638
|
-
* Create a new credential
|
|
11639
|
-
* Organization context is provided via workos-organization-id header
|
|
11640
|
-
*/
|
|
11641
|
-
createCredential(data: CreateCredentialRequest): Promise<CreateCredentialResponse>;
|
|
11642
|
-
/**
|
|
11643
|
-
* Update a credential value or metadata
|
|
11644
|
-
* Organization context is provided via workos-organization-id header
|
|
11645
|
-
*/
|
|
11646
|
-
updateCredential(credentialId: string, updates: {
|
|
11647
|
-
value?: Record<string, unknown>;
|
|
11648
|
-
name?: string;
|
|
11649
|
-
}): Promise<void>;
|
|
11650
|
-
/**
|
|
11651
|
-
* Delete a credential
|
|
11652
|
-
* Organization context is provided via workos-organization-id header
|
|
11653
|
-
*/
|
|
11654
|
-
deleteCredential(credentialId: string): Promise<void>;
|
|
11587
|
+
interface SubmitActionResponse {
|
|
11588
|
+
task: unknown;
|
|
11589
|
+
execution?: {
|
|
11590
|
+
executionId: string;
|
|
11591
|
+
success: boolean;
|
|
11592
|
+
data?: unknown;
|
|
11593
|
+
error?: ExecutionErrorDetails;
|
|
11594
|
+
};
|
|
11655
11595
|
}
|
|
11596
|
+
declare function useSubmitAction(): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
11656
11597
|
|
|
11657
|
-
declare function
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
type: string;
|
|
11661
|
-
provider: string | null;
|
|
11662
|
-
createdAt: string;
|
|
11663
|
-
}[], Error>;
|
|
11664
|
-
|
|
11665
|
-
declare function useCreateCredential(): _tanstack_react_query.UseMutationResult<CreateCredentialResponse, Error, CreateCredentialRequest, unknown>;
|
|
11666
|
-
|
|
11667
|
-
declare function useDeleteCredential(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11598
|
+
declare function useDeleteTask$1(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
11599
|
+
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
11600
|
+
}>;
|
|
11668
11601
|
|
|
11669
|
-
interface
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11602
|
+
interface UseCommandQueueTotalsOptions {
|
|
11603
|
+
timeRange?: TimeRange;
|
|
11604
|
+
priorityMin?: number;
|
|
11605
|
+
priorityMax?: number;
|
|
11606
|
+
/** When set, priorityCounts are scoped to this status only */
|
|
11607
|
+
status?: 'pending' | 'completed' | 'expired';
|
|
11675
11608
|
}
|
|
11676
|
-
|
|
11609
|
+
/**
|
|
11610
|
+
* Fetches command queue totals and checkpoint groupings
|
|
11611
|
+
*
|
|
11612
|
+
* Returns distinct human checkpoints with task counts and status breakdown.
|
|
11613
|
+
* Used for sidebar grouping and donut charts (true totals, not paginated).
|
|
11614
|
+
*/
|
|
11615
|
+
declare function useCommandQueueTotals({ timeRange, priorityMin, priorityMax, status }?: UseCommandQueueTotalsOptions): _tanstack_react_query.UseQueryResult<CheckpointListResponse, Error>;
|
|
11677
11616
|
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
listDeployments(): Promise<Deployment[]>;
|
|
11683
|
-
getDeployment(id: string): Promise<Deployment>;
|
|
11684
|
-
activateDeployment(id: string): Promise<Deployment>;
|
|
11685
|
-
deactivateDeployment(id: string): Promise<Deployment>;
|
|
11686
|
-
deleteDeployment(id: string): Promise<void>;
|
|
11687
|
-
}
|
|
11617
|
+
declare function usePatchTask(): _tanstack_react_query.UseMutationResult<Task, Error, {
|
|
11618
|
+
taskId: string;
|
|
11619
|
+
params: PatchTaskParams;
|
|
11620
|
+
}, unknown>;
|
|
11688
11621
|
|
|
11689
|
-
|
|
11622
|
+
/**
|
|
11623
|
+
* Query key factories for Operations TanStack Query hooks.
|
|
11624
|
+
*
|
|
11625
|
+
* Execution-related keys (executions, resources, definitions) use executionsKeys from @repo/ui.
|
|
11626
|
+
* Non-execution keys (workflows, agents, sessions) stay local in operationsKeys.
|
|
11627
|
+
*/
|
|
11690
11628
|
|
|
11691
|
-
declare
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
getOrganizationMembers(organizationId: string): Promise<MembershipWithDetails[]>;
|
|
11707
|
-
/**
|
|
11708
|
-
* List memberships with filtering
|
|
11709
|
-
*/
|
|
11710
|
-
listMemberships(params?: ListMembershipsParams): Promise<ListMembershipsResponse>;
|
|
11711
|
-
/**
|
|
11712
|
-
* Get a single membership by ID
|
|
11713
|
-
*/
|
|
11714
|
-
getMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
11715
|
-
/**
|
|
11716
|
-
* Create a new organization membership
|
|
11717
|
-
*/
|
|
11718
|
-
createMembership(data: CreateMembershipRequest): Promise<MembershipWithDetails>;
|
|
11719
|
-
/**
|
|
11720
|
-
* Update an existing membership
|
|
11721
|
-
*/
|
|
11722
|
-
updateMembership(membershipId: string, data: UpdateMembershipRequest): Promise<MembershipWithDetails>;
|
|
11723
|
-
/**
|
|
11724
|
-
* Delete a membership
|
|
11725
|
-
*/
|
|
11726
|
-
deleteMembership(membershipId: string): Promise<void>;
|
|
11727
|
-
/**
|
|
11728
|
-
* Deactivate a membership (soft delete)
|
|
11729
|
-
*/
|
|
11730
|
-
deactivateMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
11731
|
-
/**
|
|
11732
|
-
* Reactivate a membership
|
|
11733
|
-
*/
|
|
11734
|
-
reactivateMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
11735
|
-
}
|
|
11736
|
-
|
|
11737
|
-
declare function useUserMemberships(userId: string, params?: Omit<ListMembershipsParams, 'userId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
|
|
11738
|
-
|
|
11739
|
-
interface UpdateMemberConfigParams {
|
|
11740
|
-
membershipId: string;
|
|
11741
|
-
config: MembershipFeatureConfig;
|
|
11742
|
-
}
|
|
11743
|
-
declare function useUpdateMemberConfig(): _tanstack_react_query.UseMutationResult<unknown, Error, UpdateMemberConfigParams, unknown>;
|
|
11744
|
-
|
|
11745
|
-
interface DeactivateMembershipMutationData {
|
|
11746
|
-
membershipId: string;
|
|
11747
|
-
userId?: string;
|
|
11748
|
-
organizationId?: string;
|
|
11749
|
-
}
|
|
11750
|
-
declare function useDeactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, DeactivateMembershipMutationData, {
|
|
11751
|
-
previousData: unknown;
|
|
11752
|
-
}>;
|
|
11753
|
-
|
|
11754
|
-
interface ReactivateMembershipMutationData {
|
|
11755
|
-
membershipId: string;
|
|
11756
|
-
userId?: string;
|
|
11757
|
-
organizationId?: string;
|
|
11758
|
-
}
|
|
11759
|
-
declare function useReactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, ReactivateMembershipMutationData, {
|
|
11760
|
-
previousData: unknown;
|
|
11761
|
-
}>;
|
|
11762
|
-
|
|
11763
|
-
declare function useListWebhookEndpoints(): _tanstack_react_query.UseQueryResult<{
|
|
11764
|
-
id: string;
|
|
11765
|
-
organizationId: string;
|
|
11766
|
-
key: string;
|
|
11767
|
-
name: string;
|
|
11768
|
-
description: string | null;
|
|
11769
|
-
resourceId: string | null;
|
|
11770
|
-
status: "active" | "paused";
|
|
11771
|
-
lastTriggeredAt: string | null;
|
|
11772
|
-
requestCount: number;
|
|
11773
|
-
createdAt: string;
|
|
11774
|
-
updatedAt: string;
|
|
11775
|
-
}[], Error>;
|
|
11776
|
-
|
|
11777
|
-
declare function useCreateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
|
|
11778
|
-
id: string;
|
|
11779
|
-
organizationId: string;
|
|
11780
|
-
key: string;
|
|
11781
|
-
name: string;
|
|
11782
|
-
description: string | null;
|
|
11783
|
-
resourceId: string | null;
|
|
11784
|
-
status: "active" | "paused";
|
|
11785
|
-
lastTriggeredAt: string | null;
|
|
11786
|
-
requestCount: number;
|
|
11787
|
-
createdAt: string;
|
|
11788
|
-
updatedAt: string;
|
|
11789
|
-
}, Error, {
|
|
11790
|
-
name: string;
|
|
11791
|
-
resourceId?: string | undefined;
|
|
11792
|
-
description?: string | undefined;
|
|
11793
|
-
}, unknown>;
|
|
11794
|
-
|
|
11795
|
-
declare function useDeleteWebhookEndpoint(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
11796
|
-
|
|
11797
|
-
/**
|
|
11798
|
-
* POST /api/webhook-endpoints - Create a new webhook endpoint
|
|
11799
|
-
*
|
|
11800
|
-
* The `key` and `id` are generated server-side and not accepted in the request.
|
|
11801
|
-
*/
|
|
11802
|
-
declare const CreateWebhookEndpointRequestSchema = z
|
|
11803
|
-
.object({
|
|
11804
|
-
/** User-facing label for the endpoint */
|
|
11805
|
-
name: NonEmptyStringSchema,
|
|
11806
|
-
/** Target workflow resourceId to invoke on inbound requests (can be set later) */
|
|
11807
|
-
resourceId: NonEmptyStringSchema.optional(),
|
|
11808
|
-
/** Optional description */
|
|
11809
|
-
description: z.string().optional()
|
|
11810
|
-
})
|
|
11811
|
-
.strict()
|
|
11812
|
-
|
|
11813
|
-
type CreateWebhookEndpointRequest = z.infer<typeof CreateWebhookEndpointRequestSchema>
|
|
11814
|
-
|
|
11815
|
-
/**
|
|
11816
|
-
* PATCH /api/webhook-endpoints/:id - Update an existing webhook endpoint
|
|
11817
|
-
*
|
|
11818
|
-
* At least one field must be provided.
|
|
11819
|
-
*/
|
|
11820
|
-
declare const UpdateWebhookEndpointRequestSchema = z
|
|
11821
|
-
.object({
|
|
11822
|
-
name: NonEmptyStringSchema.optional(),
|
|
11823
|
-
description: z.string().optional(),
|
|
11824
|
-
resourceId: NonEmptyStringSchema.optional(),
|
|
11825
|
-
status: WebhookEndpointStatusSchema.optional()
|
|
11826
|
-
})
|
|
11827
|
-
.strict()
|
|
11828
|
-
.refine(
|
|
11829
|
-
(data) =>
|
|
11830
|
-
data.name !== undefined ||
|
|
11831
|
-
data.description !== undefined ||
|
|
11832
|
-
data.resourceId !== undefined ||
|
|
11833
|
-
data.status !== undefined,
|
|
11834
|
-
{ message: 'At least one field (name, description, resourceId, or status) must be provided' }
|
|
11835
|
-
)
|
|
11836
|
-
|
|
11837
|
-
type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestSchema>
|
|
11838
|
-
|
|
11839
|
-
/**
|
|
11840
|
-
* Response shape for a single webhook endpoint.
|
|
11841
|
-
* NOT strict — response schemas allow extra fields for forward compatibility.
|
|
11842
|
-
*/
|
|
11843
|
-
declare const WebhookEndpointResponseSchema = z.object({
|
|
11844
|
-
id: UuidSchema,
|
|
11845
|
-
organizationId: UuidSchema,
|
|
11846
|
-
key: z.string(),
|
|
11847
|
-
name: z.string(),
|
|
11848
|
-
description: z.string().nullable(),
|
|
11849
|
-
resourceId: z.string().nullable(),
|
|
11850
|
-
status: WebhookEndpointStatusSchema,
|
|
11851
|
-
lastTriggeredAt: z.string().datetime().nullable(),
|
|
11852
|
-
requestCount: z.number().int().min(0),
|
|
11853
|
-
createdAt: z.string().datetime(),
|
|
11854
|
-
updatedAt: z.string().datetime()
|
|
11855
|
-
})
|
|
11856
|
-
|
|
11857
|
-
type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>
|
|
11858
|
-
|
|
11859
|
-
declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
|
|
11860
|
-
id: string;
|
|
11861
|
-
organizationId: string;
|
|
11862
|
-
key: string;
|
|
11863
|
-
name: string;
|
|
11864
|
-
description: string | null;
|
|
11865
|
-
resourceId: string | null;
|
|
11866
|
-
status: "active" | "paused";
|
|
11867
|
-
lastTriggeredAt: string | null;
|
|
11868
|
-
requestCount: number;
|
|
11869
|
-
createdAt: string;
|
|
11870
|
-
updatedAt: string;
|
|
11871
|
-
}, Error, {
|
|
11872
|
-
endpointId: string;
|
|
11873
|
-
data: UpdateWebhookEndpointRequest;
|
|
11874
|
-
}, unknown>;
|
|
11875
|
-
|
|
11876
|
-
interface ListWebhookEndpointsResponse {
|
|
11877
|
-
data: WebhookEndpointResponse[];
|
|
11878
|
-
count: number;
|
|
11879
|
-
}
|
|
11880
|
-
declare class WebhookEndpointService {
|
|
11881
|
-
private apiRequest;
|
|
11882
|
-
constructor(apiRequest: ReturnType<typeof useElevasisServices>['apiRequest']);
|
|
11883
|
-
/**
|
|
11884
|
-
* List webhook endpoints for the current organization
|
|
11885
|
-
*/
|
|
11886
|
-
listEndpoints(): Promise<WebhookEndpointResponse[]>;
|
|
11887
|
-
/**
|
|
11888
|
-
* Create a new webhook endpoint
|
|
11889
|
-
*/
|
|
11890
|
-
createEndpoint(data: CreateWebhookEndpointRequest): Promise<WebhookEndpointResponse>;
|
|
11891
|
-
/**
|
|
11892
|
-
* Update an existing webhook endpoint (e.g., toggle status, rename)
|
|
11893
|
-
*/
|
|
11894
|
-
updateEndpoint(endpointId: string, data: UpdateWebhookEndpointRequest): Promise<WebhookEndpointResponse>;
|
|
11895
|
-
/**
|
|
11896
|
-
* Delete a webhook endpoint
|
|
11897
|
-
*/
|
|
11898
|
-
deleteEndpoint(endpointId: string): Promise<void>;
|
|
11899
|
-
}
|
|
11900
|
-
|
|
11901
|
-
/**
|
|
11902
|
-
* Query key factories for Operations TanStack Query hooks.
|
|
11903
|
-
*
|
|
11904
|
-
* Execution-related keys (executions, resources, definitions) use executionsKeys from @repo/ui.
|
|
11905
|
-
* Non-execution keys (workflows, agents, sessions) stay local in operationsKeys.
|
|
11906
|
-
*/
|
|
11907
|
-
|
|
11908
|
-
declare const operationsKeys: {
|
|
11909
|
-
all: readonly ["operations"];
|
|
11910
|
-
workflows: (org?: string) => readonly ["operations", "workflows", string | undefined];
|
|
11911
|
-
workflowDetails: (org?: string) => readonly ["operations", "workflows", string | undefined, "details"];
|
|
11912
|
-
workflow: (id: string, org?: string) => readonly ["operations", "workflows", string | undefined, string];
|
|
11913
|
-
agents: (org?: string) => readonly ["operations", "agents", string | undefined];
|
|
11914
|
-
agentDetails: (org?: string) => readonly ["operations", "agents", string | undefined, "details"];
|
|
11915
|
-
agent: (id: string, org?: string) => readonly ["operations", "agents", string | undefined, string];
|
|
11916
|
-
sessions: (org: string, params?: {
|
|
11917
|
-
resourceId?: string;
|
|
11918
|
-
}) => readonly ["operations", "sessions", string, {
|
|
11919
|
-
resourceId?: string;
|
|
11920
|
-
} | undefined];
|
|
11921
|
-
session: (org: string, sessionId: string) => readonly ["operations", "session", string, string];
|
|
11922
|
-
};
|
|
11629
|
+
declare const operationsKeys: {
|
|
11630
|
+
all: readonly ["operations"];
|
|
11631
|
+
workflows: (org?: string) => readonly ["operations", "workflows", string | undefined];
|
|
11632
|
+
workflowDetails: (org?: string) => readonly ["operations", "workflows", string | undefined, "details"];
|
|
11633
|
+
workflow: (id: string, org?: string) => readonly ["operations", "workflows", string | undefined, string];
|
|
11634
|
+
agents: (org?: string) => readonly ["operations", "agents", string | undefined];
|
|
11635
|
+
agentDetails: (org?: string) => readonly ["operations", "agents", string | undefined, "details"];
|
|
11636
|
+
agent: (id: string, org?: string) => readonly ["operations", "agents", string | undefined, string];
|
|
11637
|
+
sessions: (org: string, params?: {
|
|
11638
|
+
resourceId?: string;
|
|
11639
|
+
}) => readonly ["operations", "sessions", string, {
|
|
11640
|
+
resourceId?: string;
|
|
11641
|
+
} | undefined];
|
|
11642
|
+
session: (org: string, sessionId: string) => readonly ["operations", "session", string, string];
|
|
11643
|
+
};
|
|
11923
11644
|
|
|
11924
11645
|
declare function useExecutionLogSSE(resourceId: string, manager: SSEConnectionManagerLike, apiUrl: string): {
|
|
11925
11646
|
liveExecutions: Set<string>;
|
|
@@ -12148,11 +11869,11 @@ interface CommandViewGraph {
|
|
|
12148
11869
|
edges: CommandViewEdge[];
|
|
12149
11870
|
}
|
|
12150
11871
|
|
|
12151
|
-
type StatusFilter = ResourceStatus$1 | 'all';
|
|
11872
|
+
type StatusFilter$1 = ResourceStatus$1 | 'all';
|
|
12152
11873
|
|
|
12153
11874
|
interface CommandViewStore {
|
|
12154
|
-
statusFilter: StatusFilter;
|
|
12155
|
-
setStatusFilter: (v: StatusFilter) => void;
|
|
11875
|
+
statusFilter: StatusFilter$1;
|
|
11876
|
+
setStatusFilter: (v: StatusFilter$1) => void;
|
|
12156
11877
|
showIntegrations: boolean;
|
|
12157
11878
|
setShowIntegrations: (v: boolean) => void;
|
|
12158
11879
|
fitViewOnFilter: boolean;
|
|
@@ -13061,6 +12782,484 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
|
|
|
13061
12782
|
}, unknown>;
|
|
13062
12783
|
declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
13063
12784
|
|
|
12785
|
+
interface CreateApiKeyRequest {
|
|
12786
|
+
name: string;
|
|
12787
|
+
}
|
|
12788
|
+
interface CreateApiKeyResponse {
|
|
12789
|
+
id: string;
|
|
12790
|
+
key: string;
|
|
12791
|
+
message: string;
|
|
12792
|
+
}
|
|
12793
|
+
interface ListApiKeysResponse {
|
|
12794
|
+
keys: ApiKeyListItem[];
|
|
12795
|
+
}
|
|
12796
|
+
type ApiRequest$3 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
12797
|
+
declare class ApiKeyService {
|
|
12798
|
+
private apiRequest;
|
|
12799
|
+
constructor(apiRequest: ApiRequest$3);
|
|
12800
|
+
/**
|
|
12801
|
+
* List API keys for the current organization
|
|
12802
|
+
*/
|
|
12803
|
+
listApiKeys(): Promise<ApiKeyListItem[]>;
|
|
12804
|
+
/**
|
|
12805
|
+
* Create a new API key
|
|
12806
|
+
*/
|
|
12807
|
+
createApiKey(data: CreateApiKeyRequest): Promise<CreateApiKeyResponse>;
|
|
12808
|
+
/**
|
|
12809
|
+
* Update an API key's name
|
|
12810
|
+
*/
|
|
12811
|
+
updateApiKey(keyId: string, data: {
|
|
12812
|
+
name: string;
|
|
12813
|
+
}): Promise<void>;
|
|
12814
|
+
/**
|
|
12815
|
+
* Delete an API key
|
|
12816
|
+
*/
|
|
12817
|
+
deleteApiKey(keyId: string): Promise<void>;
|
|
12818
|
+
}
|
|
12819
|
+
|
|
12820
|
+
declare function useListApiKeys(): _tanstack_react_query.UseQueryResult<ApiKeyListItem[], Error>;
|
|
12821
|
+
|
|
12822
|
+
declare function useCreateApiKey(): _tanstack_react_query.UseMutationResult<CreateApiKeyResponse, Error, CreateApiKeyRequest, unknown>;
|
|
12823
|
+
|
|
12824
|
+
declare function useDeleteApiKey(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
12825
|
+
|
|
12826
|
+
declare function useUpdateApiKey(): _tanstack_react_query.UseMutationResult<void, Error, {
|
|
12827
|
+
keyId: string;
|
|
12828
|
+
name: string;
|
|
12829
|
+
}, unknown>;
|
|
12830
|
+
|
|
12831
|
+
/**
|
|
12832
|
+
* GET /api/credentials - List credentials
|
|
12833
|
+
*/
|
|
12834
|
+
declare const ListCredentialsResponseSchema = z.object({
|
|
12835
|
+
credentials: z.array(
|
|
12836
|
+
z.object({
|
|
12837
|
+
id: UuidSchema,
|
|
12838
|
+
name: z.string(),
|
|
12839
|
+
type: z.string(),
|
|
12840
|
+
provider: z.string().nullable(), // OAuth provider or null for non-OAuth
|
|
12841
|
+
createdAt: z.string().datetime()
|
|
12842
|
+
})
|
|
12843
|
+
)
|
|
12844
|
+
})
|
|
12845
|
+
|
|
12846
|
+
/** API response type for a single credential list item */
|
|
12847
|
+
type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number]
|
|
12848
|
+
|
|
12849
|
+
interface CreateCredentialRequest {
|
|
12850
|
+
name: string;
|
|
12851
|
+
type: string;
|
|
12852
|
+
value: Record<string, unknown>;
|
|
12853
|
+
}
|
|
12854
|
+
interface CreateCredentialResponse {
|
|
12855
|
+
id: string;
|
|
12856
|
+
name: string;
|
|
12857
|
+
type: string;
|
|
12858
|
+
}
|
|
12859
|
+
interface ListCredentialsResponse {
|
|
12860
|
+
credentials: CredentialListItem[];
|
|
12861
|
+
}
|
|
12862
|
+
type ApiRequest$2 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
12863
|
+
declare class CredentialService {
|
|
12864
|
+
private apiRequest;
|
|
12865
|
+
constructor(apiRequest: ApiRequest$2);
|
|
12866
|
+
/**
|
|
12867
|
+
* List credentials for the current organization
|
|
12868
|
+
* Organization context is provided via workos-organization-id header
|
|
12869
|
+
*/
|
|
12870
|
+
listCredentials(): Promise<CredentialListItem[]>;
|
|
12871
|
+
/**
|
|
12872
|
+
* Create a new credential
|
|
12873
|
+
* Organization context is provided via workos-organization-id header
|
|
12874
|
+
*/
|
|
12875
|
+
createCredential(data: CreateCredentialRequest): Promise<CreateCredentialResponse>;
|
|
12876
|
+
/**
|
|
12877
|
+
* Update a credential value or metadata
|
|
12878
|
+
* Organization context is provided via workos-organization-id header
|
|
12879
|
+
*/
|
|
12880
|
+
updateCredential(credentialId: string, updates: {
|
|
12881
|
+
value?: Record<string, unknown>;
|
|
12882
|
+
name?: string;
|
|
12883
|
+
}): Promise<void>;
|
|
12884
|
+
/**
|
|
12885
|
+
* Delete a credential
|
|
12886
|
+
* Organization context is provided via workos-organization-id header
|
|
12887
|
+
*/
|
|
12888
|
+
deleteCredential(credentialId: string): Promise<void>;
|
|
12889
|
+
}
|
|
12890
|
+
|
|
12891
|
+
declare function useCredentials(): _tanstack_react_query.UseQueryResult<{
|
|
12892
|
+
id: string;
|
|
12893
|
+
name: string;
|
|
12894
|
+
type: string;
|
|
12895
|
+
provider: string | null;
|
|
12896
|
+
createdAt: string;
|
|
12897
|
+
}[], Error>;
|
|
12898
|
+
|
|
12899
|
+
declare function useCreateCredential(): _tanstack_react_query.UseMutationResult<CreateCredentialResponse, Error, CreateCredentialRequest, unknown>;
|
|
12900
|
+
|
|
12901
|
+
declare function useDeleteCredential(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
12902
|
+
|
|
12903
|
+
interface UpdateCredentialParams {
|
|
12904
|
+
credentialId: string;
|
|
12905
|
+
updates: {
|
|
12906
|
+
value?: Record<string, unknown>;
|
|
12907
|
+
name?: string;
|
|
12908
|
+
};
|
|
12909
|
+
}
|
|
12910
|
+
declare function useUpdateCredential(): _tanstack_react_query.UseMutationResult<void, Error, UpdateCredentialParams, unknown>;
|
|
12911
|
+
|
|
12912
|
+
type ApiRequest$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
12913
|
+
declare class DeploymentService {
|
|
12914
|
+
private apiRequest;
|
|
12915
|
+
constructor(apiRequest: ApiRequest$1);
|
|
12916
|
+
listDeployments(): Promise<Deployment[]>;
|
|
12917
|
+
getDeployment(id: string): Promise<Deployment>;
|
|
12918
|
+
activateDeployment(id: string): Promise<Deployment>;
|
|
12919
|
+
deactivateDeployment(id: string): Promise<Deployment>;
|
|
12920
|
+
deleteDeployment(id: string): Promise<void>;
|
|
12921
|
+
}
|
|
12922
|
+
|
|
12923
|
+
declare function useListDeployments(): _tanstack_react_query.UseQueryResult<Deployment[], Error>;
|
|
12924
|
+
|
|
12925
|
+
declare function useActivateDeployment(): _tanstack_react_query.UseMutationResult<Deployment, Error, string, unknown>;
|
|
12926
|
+
declare function useDeactivateDeployment(): _tanstack_react_query.UseMutationResult<Deployment, Error, string, unknown>;
|
|
12927
|
+
declare function useDeleteDeployment(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
12928
|
+
|
|
12929
|
+
type ApiRequest = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
12930
|
+
declare class OrganizationMembershipService {
|
|
12931
|
+
private apiRequest;
|
|
12932
|
+
constructor(apiRequest: ApiRequest);
|
|
12933
|
+
/**
|
|
12934
|
+
* Get user's organization memberships
|
|
12935
|
+
*/
|
|
12936
|
+
getUserMemberships(userId: string): Promise<MembershipWithDetails[]>;
|
|
12937
|
+
/**
|
|
12938
|
+
* Get organization members
|
|
12939
|
+
*/
|
|
12940
|
+
getOrganizationMembers(organizationId: string): Promise<MembershipWithDetails[]>;
|
|
12941
|
+
/**
|
|
12942
|
+
* List memberships with filtering
|
|
12943
|
+
*/
|
|
12944
|
+
listMemberships(params?: ListMembershipsParams): Promise<ListMembershipsResponse>;
|
|
12945
|
+
/**
|
|
12946
|
+
* Get a single membership by ID
|
|
12947
|
+
*/
|
|
12948
|
+
getMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
12949
|
+
/**
|
|
12950
|
+
* Create a new organization membership
|
|
12951
|
+
*/
|
|
12952
|
+
createMembership(data: CreateMembershipRequest): Promise<MembershipWithDetails>;
|
|
12953
|
+
/**
|
|
12954
|
+
* Update an existing membership
|
|
12955
|
+
*/
|
|
12956
|
+
updateMembership(membershipId: string, data: UpdateMembershipRequest): Promise<MembershipWithDetails>;
|
|
12957
|
+
/**
|
|
12958
|
+
* Delete a membership
|
|
12959
|
+
*/
|
|
12960
|
+
deleteMembership(membershipId: string): Promise<void>;
|
|
12961
|
+
/**
|
|
12962
|
+
* Deactivate a membership (soft delete)
|
|
12963
|
+
*/
|
|
12964
|
+
deactivateMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
12965
|
+
/**
|
|
12966
|
+
* Reactivate a membership
|
|
12967
|
+
*/
|
|
12968
|
+
reactivateMembership(membershipId: string): Promise<MembershipWithDetails>;
|
|
12969
|
+
}
|
|
12970
|
+
|
|
12971
|
+
declare function useUserMemberships(userId: string, params?: Omit<ListMembershipsParams, 'userId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
|
|
12972
|
+
|
|
12973
|
+
interface UpdateMemberConfigParams {
|
|
12974
|
+
membershipId: string;
|
|
12975
|
+
config: MembershipFeatureConfig;
|
|
12976
|
+
}
|
|
12977
|
+
declare function useUpdateMemberConfig(): _tanstack_react_query.UseMutationResult<unknown, Error, UpdateMemberConfigParams, unknown>;
|
|
12978
|
+
|
|
12979
|
+
interface DeactivateMembershipMutationData {
|
|
12980
|
+
membershipId: string;
|
|
12981
|
+
userId?: string;
|
|
12982
|
+
organizationId?: string;
|
|
12983
|
+
}
|
|
12984
|
+
declare function useDeactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, DeactivateMembershipMutationData, {
|
|
12985
|
+
previousData: unknown;
|
|
12986
|
+
}>;
|
|
12987
|
+
|
|
12988
|
+
interface ReactivateMembershipMutationData {
|
|
12989
|
+
membershipId: string;
|
|
12990
|
+
userId?: string;
|
|
12991
|
+
organizationId?: string;
|
|
12992
|
+
}
|
|
12993
|
+
declare function useReactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, ReactivateMembershipMutationData, {
|
|
12994
|
+
previousData: unknown;
|
|
12995
|
+
}>;
|
|
12996
|
+
|
|
12997
|
+
declare function useListWebhookEndpoints(): _tanstack_react_query.UseQueryResult<{
|
|
12998
|
+
id: string;
|
|
12999
|
+
organizationId: string;
|
|
13000
|
+
key: string;
|
|
13001
|
+
name: string;
|
|
13002
|
+
description: string | null;
|
|
13003
|
+
resourceId: string | null;
|
|
13004
|
+
status: "active" | "paused";
|
|
13005
|
+
lastTriggeredAt: string | null;
|
|
13006
|
+
requestCount: number;
|
|
13007
|
+
createdAt: string;
|
|
13008
|
+
updatedAt: string;
|
|
13009
|
+
}[], Error>;
|
|
13010
|
+
|
|
13011
|
+
declare function useCreateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
|
|
13012
|
+
id: string;
|
|
13013
|
+
organizationId: string;
|
|
13014
|
+
key: string;
|
|
13015
|
+
name: string;
|
|
13016
|
+
description: string | null;
|
|
13017
|
+
resourceId: string | null;
|
|
13018
|
+
status: "active" | "paused";
|
|
13019
|
+
lastTriggeredAt: string | null;
|
|
13020
|
+
requestCount: number;
|
|
13021
|
+
createdAt: string;
|
|
13022
|
+
updatedAt: string;
|
|
13023
|
+
}, Error, {
|
|
13024
|
+
name: string;
|
|
13025
|
+
resourceId?: string | undefined;
|
|
13026
|
+
description?: string | undefined;
|
|
13027
|
+
}, unknown>;
|
|
13028
|
+
|
|
13029
|
+
declare function useDeleteWebhookEndpoint(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
13030
|
+
|
|
13031
|
+
/**
|
|
13032
|
+
* POST /api/webhook-endpoints - Create a new webhook endpoint
|
|
13033
|
+
*
|
|
13034
|
+
* The `key` and `id` are generated server-side and not accepted in the request.
|
|
13035
|
+
*/
|
|
13036
|
+
declare const CreateWebhookEndpointRequestSchema = z
|
|
13037
|
+
.object({
|
|
13038
|
+
/** User-facing label for the endpoint */
|
|
13039
|
+
name: NonEmptyStringSchema,
|
|
13040
|
+
/** Target workflow resourceId to invoke on inbound requests (can be set later) */
|
|
13041
|
+
resourceId: NonEmptyStringSchema.optional(),
|
|
13042
|
+
/** Optional description */
|
|
13043
|
+
description: z.string().optional()
|
|
13044
|
+
})
|
|
13045
|
+
.strict()
|
|
13046
|
+
|
|
13047
|
+
type CreateWebhookEndpointRequest = z.infer<typeof CreateWebhookEndpointRequestSchema>
|
|
13048
|
+
|
|
13049
|
+
/**
|
|
13050
|
+
* PATCH /api/webhook-endpoints/:id - Update an existing webhook endpoint
|
|
13051
|
+
*
|
|
13052
|
+
* At least one field must be provided.
|
|
13053
|
+
*/
|
|
13054
|
+
declare const UpdateWebhookEndpointRequestSchema = z
|
|
13055
|
+
.object({
|
|
13056
|
+
name: NonEmptyStringSchema.optional(),
|
|
13057
|
+
description: z.string().optional(),
|
|
13058
|
+
resourceId: NonEmptyStringSchema.optional(),
|
|
13059
|
+
status: WebhookEndpointStatusSchema.optional()
|
|
13060
|
+
})
|
|
13061
|
+
.strict()
|
|
13062
|
+
.refine(
|
|
13063
|
+
(data) =>
|
|
13064
|
+
data.name !== undefined ||
|
|
13065
|
+
data.description !== undefined ||
|
|
13066
|
+
data.resourceId !== undefined ||
|
|
13067
|
+
data.status !== undefined,
|
|
13068
|
+
{ message: 'At least one field (name, description, resourceId, or status) must be provided' }
|
|
13069
|
+
)
|
|
13070
|
+
|
|
13071
|
+
type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestSchema>
|
|
13072
|
+
|
|
13073
|
+
/**
|
|
13074
|
+
* Response shape for a single webhook endpoint.
|
|
13075
|
+
* NOT strict — response schemas allow extra fields for forward compatibility.
|
|
13076
|
+
*/
|
|
13077
|
+
declare const WebhookEndpointResponseSchema = z.object({
|
|
13078
|
+
id: UuidSchema,
|
|
13079
|
+
organizationId: UuidSchema,
|
|
13080
|
+
key: z.string(),
|
|
13081
|
+
name: z.string(),
|
|
13082
|
+
description: z.string().nullable(),
|
|
13083
|
+
resourceId: z.string().nullable(),
|
|
13084
|
+
status: WebhookEndpointStatusSchema,
|
|
13085
|
+
lastTriggeredAt: z.string().datetime().nullable(),
|
|
13086
|
+
requestCount: z.number().int().min(0),
|
|
13087
|
+
createdAt: z.string().datetime(),
|
|
13088
|
+
updatedAt: z.string().datetime()
|
|
13089
|
+
})
|
|
13090
|
+
|
|
13091
|
+
type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>
|
|
13092
|
+
|
|
13093
|
+
declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
|
|
13094
|
+
id: string;
|
|
13095
|
+
organizationId: string;
|
|
13096
|
+
key: string;
|
|
13097
|
+
name: string;
|
|
13098
|
+
description: string | null;
|
|
13099
|
+
resourceId: string | null;
|
|
13100
|
+
status: "active" | "paused";
|
|
13101
|
+
lastTriggeredAt: string | null;
|
|
13102
|
+
requestCount: number;
|
|
13103
|
+
createdAt: string;
|
|
13104
|
+
updatedAt: string;
|
|
13105
|
+
}, Error, {
|
|
13106
|
+
endpointId: string;
|
|
13107
|
+
data: UpdateWebhookEndpointRequest;
|
|
13108
|
+
}, unknown>;
|
|
13109
|
+
|
|
13110
|
+
interface ListWebhookEndpointsResponse {
|
|
13111
|
+
data: WebhookEndpointResponse[];
|
|
13112
|
+
count: number;
|
|
13113
|
+
}
|
|
13114
|
+
declare class WebhookEndpointService {
|
|
13115
|
+
private apiRequest;
|
|
13116
|
+
constructor(apiRequest: ReturnType<typeof useElevasisServices>['apiRequest']);
|
|
13117
|
+
/**
|
|
13118
|
+
* List webhook endpoints for the current organization
|
|
13119
|
+
*/
|
|
13120
|
+
listEndpoints(): Promise<WebhookEndpointResponse[]>;
|
|
13121
|
+
/**
|
|
13122
|
+
* Create a new webhook endpoint
|
|
13123
|
+
*/
|
|
13124
|
+
createEndpoint(data: CreateWebhookEndpointRequest): Promise<WebhookEndpointResponse>;
|
|
13125
|
+
/**
|
|
13126
|
+
* Update an existing webhook endpoint (e.g., toggle status, rename)
|
|
13127
|
+
*/
|
|
13128
|
+
updateEndpoint(endpointId: string, data: UpdateWebhookEndpointRequest): Promise<WebhookEndpointResponse>;
|
|
13129
|
+
/**
|
|
13130
|
+
* Delete a webhook endpoint
|
|
13131
|
+
*/
|
|
13132
|
+
deleteEndpoint(endpointId: string): Promise<void>;
|
|
13133
|
+
}
|
|
13134
|
+
|
|
13135
|
+
interface ResourceSearchStore {
|
|
13136
|
+
query: string;
|
|
13137
|
+
set: (query: string) => void;
|
|
13138
|
+
}
|
|
13139
|
+
declare const useResourceSearch: zustand.UseBoundStore<zustand.StoreApi<ResourceSearchStore>>;
|
|
13140
|
+
|
|
13141
|
+
type StatusFilter = 'all' | 'dev' | 'prod';
|
|
13142
|
+
interface StatusFilterStore {
|
|
13143
|
+
value: StatusFilter;
|
|
13144
|
+
set: (value: StatusFilter) => void;
|
|
13145
|
+
}
|
|
13146
|
+
declare const useStatusFilter: zustand.UseBoundStore<zustand.StoreApi<StatusFilterStore>>;
|
|
13147
|
+
|
|
13148
|
+
/**
|
|
13149
|
+
* Tracks which resource cards are visible in the viewport using Intersection Observer.
|
|
13150
|
+
* Returns a Set of visible resource IDs and a ref callback to attach to card elements.
|
|
13151
|
+
*
|
|
13152
|
+
* Cards must have a `data-resource-id` attribute to be tracked.
|
|
13153
|
+
*/
|
|
13154
|
+
declare function useVisibleResources(): {
|
|
13155
|
+
visibleIds: Set<string>;
|
|
13156
|
+
setContainerRef: (node: HTMLDivElement | null) => void;
|
|
13157
|
+
};
|
|
13158
|
+
|
|
13159
|
+
type DomainFilterState = 'neutral' | 'include' | 'exclude';
|
|
13160
|
+
interface DomainFiltersStore {
|
|
13161
|
+
filters: Record<string, DomainFilterState>;
|
|
13162
|
+
cycle: (domainId: string) => void;
|
|
13163
|
+
reset: () => void;
|
|
13164
|
+
}
|
|
13165
|
+
declare const useResourcesDomainFilters: zustand.UseBoundStore<Omit<zustand.StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
13166
|
+
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
13167
|
+
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
13168
|
+
persist: {
|
|
13169
|
+
setOptions: (options: Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
13170
|
+
clearStorage: () => void;
|
|
13171
|
+
rehydrate: () => Promise<void> | void;
|
|
13172
|
+
hasHydrated: () => boolean;
|
|
13173
|
+
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
13174
|
+
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
13175
|
+
getOptions: () => Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
13176
|
+
};
|
|
13177
|
+
}>;
|
|
13178
|
+
declare const useCommandViewDomainFilters: zustand.UseBoundStore<Omit<zustand.StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
13179
|
+
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
13180
|
+
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
13181
|
+
persist: {
|
|
13182
|
+
setOptions: (options: Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
13183
|
+
clearStorage: () => void;
|
|
13184
|
+
rehydrate: () => Promise<void> | void;
|
|
13185
|
+
hasHydrated: () => boolean;
|
|
13186
|
+
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
13187
|
+
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
13188
|
+
getOptions: () => Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
13189
|
+
};
|
|
13190
|
+
}>;
|
|
13191
|
+
declare function filterByDomainFilters(items: ResourceDefinition[], filters: Record<string, DomainFilterState>): ResourceDefinition[];
|
|
13192
|
+
|
|
13193
|
+
/**
|
|
13194
|
+
* Converts the global time range setting into startDate/endDate strings
|
|
13195
|
+
* for use in data guide suggested params.
|
|
13196
|
+
*/
|
|
13197
|
+
declare function useTimeRangeDates(timeRange: TimeRange): {
|
|
13198
|
+
startDate: string;
|
|
13199
|
+
endDate: string;
|
|
13200
|
+
};
|
|
13201
|
+
|
|
13202
|
+
interface ActivityFilters {
|
|
13203
|
+
activityType?: ActivityType | 'all';
|
|
13204
|
+
status?: ActivityStatus | 'all';
|
|
13205
|
+
search?: string;
|
|
13206
|
+
}
|
|
13207
|
+
declare function useActivityFilters(timeRange: TimeRange): {
|
|
13208
|
+
filters: ActivityFilters;
|
|
13209
|
+
updateFilter: <K extends keyof ActivityFilters>(key: K, value: ActivityFilters[K]) => void;
|
|
13210
|
+
resetFilters: () => void;
|
|
13211
|
+
getApiParams: () => {
|
|
13212
|
+
activityType?: ActivityType;
|
|
13213
|
+
startDate?: string;
|
|
13214
|
+
status?: string;
|
|
13215
|
+
search?: string;
|
|
13216
|
+
};
|
|
13217
|
+
};
|
|
13218
|
+
|
|
13219
|
+
interface ExecutionLogsFilters {
|
|
13220
|
+
resourceId: string | undefined;
|
|
13221
|
+
status: 'all' | ExecutionStatus$1;
|
|
13222
|
+
resourceStatus: 'all' | 'dev' | 'prod';
|
|
13223
|
+
}
|
|
13224
|
+
/**
|
|
13225
|
+
* Pure client-side state hook for execution log filtering.
|
|
13226
|
+
* No data fetching -- manages filter state with reset capability.
|
|
13227
|
+
*
|
|
13228
|
+
* @param _timeRange - Time range context (reserved for future use)
|
|
13229
|
+
* @returns filters state, updateFilter setter, and resetFilters utility
|
|
13230
|
+
*
|
|
13231
|
+
* @example
|
|
13232
|
+
* ```tsx
|
|
13233
|
+
* const { filters, updateFilter, resetFilters } = useExecutionLogsFilters(timeRange)
|
|
13234
|
+
*
|
|
13235
|
+
* updateFilter('status', 'failed')
|
|
13236
|
+
* updateFilter('resourceId', 'wf-123')
|
|
13237
|
+
* resetFilters()
|
|
13238
|
+
* ```
|
|
13239
|
+
*/
|
|
13240
|
+
declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
13241
|
+
filters: ExecutionLogsFilters;
|
|
13242
|
+
updateFilter: <K extends keyof ExecutionLogsFilters>(key: K, value: ExecutionLogsFilters[K]) => void;
|
|
13243
|
+
resetFilters: () => void;
|
|
13244
|
+
};
|
|
13245
|
+
|
|
13246
|
+
/**
|
|
13247
|
+
* Fetch organization members with membership details.
|
|
13248
|
+
*
|
|
13249
|
+
* Note: `organizationId` is passed as a parameter (not read from context)
|
|
13250
|
+
* so consumers can query for a specific organization independently.
|
|
13251
|
+
*
|
|
13252
|
+
* @param organizationId - The organization to fetch members for
|
|
13253
|
+
* @param params - Optional additional filters (reserved for future use)
|
|
13254
|
+
* @returns TanStack Query result with MembershipWithDetails array
|
|
13255
|
+
*
|
|
13256
|
+
* @example
|
|
13257
|
+
* ```tsx
|
|
13258
|
+
* const { data: members, isLoading } = useOrganizationMembers(organizationId)
|
|
13259
|
+
* ```
|
|
13260
|
+
*/
|
|
13261
|
+
declare function useOrganizationMembers(organizationId: string, params?: Omit<ListMembershipsParams, 'organizationId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
|
|
13262
|
+
|
|
13064
13263
|
declare const projectKeys: {
|
|
13065
13264
|
all: readonly ["projects"];
|
|
13066
13265
|
lists: () => readonly ["projects", "list"];
|
|
@@ -13788,5 +13987,5 @@ declare function InitializationProvider({ children }: {
|
|
|
13788
13987
|
children: ReactNode;
|
|
13789
13988
|
}): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
|
|
13790
13989
|
|
|
13791
|
-
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, calibrationKeys, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createOrganizationsSlice, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
13792
|
-
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppShellOverrides, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureModule, FeatureNavEntry, FeatureNavLink,
|
|
13990
|
+
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FEATURE_KEY_ALIASES, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, calibrationKeys, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
13991
|
+
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppShellOverrides, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureAccessResult, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellModel, ResolvedShellNavItem, ResolvedShellRouteMatch, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellNavPlacement, ShellNavSource, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|