@elevasis/ui 1.7.5 → 1.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.
Files changed (43) hide show
  1. package/dist/api/index.js +2 -3
  2. package/dist/auth/index.js +3 -4
  3. package/dist/charts/index.js +6 -8
  4. package/dist/{chunk-SFF5MJEI.js → chunk-2YBPRE6H.js} +1 -2
  5. package/dist/{chunk-U34YGJQB.js → chunk-3I2LOKQU.js} +1 -1
  6. package/dist/{chunk-PVVQTENF.js → chunk-3PURTICE.js} +1 -1
  7. package/dist/{chunk-2JBWPFHF.js → chunk-6TMW6VQ2.js} +1 -1
  8. package/dist/{chunk-6HZAMY6T.js → chunk-ARZM3OTI.js} +6 -2
  9. package/dist/{chunk-OK3XFSJJ.js → chunk-BWZMI4KP.js} +963 -10
  10. package/dist/{chunk-4KPI7YCY.js → chunk-EHXOR5LA.js} +2 -3
  11. package/dist/{chunk-Y7UY3HI4.js → chunk-ESOQEOOX.js} +2 -2
  12. package/dist/{chunk-L2CM2CUA.js → chunk-GZVH423C.js} +26 -3
  13. package/dist/{chunk-Y6DNK5ZD.js → chunk-JRJW2H57.js} +35 -9
  14. package/dist/{chunk-LBPALY25.js → chunk-JUPCUF77.js} +2 -2
  15. package/dist/chunk-QWYJHM3S.js +1068 -0
  16. package/dist/{chunk-NEK6JKPW.js → chunk-WUQWCUCB.js} +1 -1
  17. package/dist/chunk-Z4TPHMRD.js +231 -0
  18. package/dist/components/index.css +65 -0
  19. package/dist/components/index.d.ts +261 -2
  20. package/dist/components/index.js +1136 -80
  21. package/dist/hooks/index.css +452 -0
  22. package/dist/hooks/index.d.ts +1831 -13
  23. package/dist/hooks/index.js +15 -6
  24. package/dist/hooks/published.css +452 -0
  25. package/dist/hooks/published.d.ts +866 -6
  26. package/dist/hooks/published.js +15 -370
  27. package/dist/index.css +3 -0
  28. package/dist/index.d.ts +1665 -2
  29. package/dist/index.js +14 -17
  30. package/dist/initialization/index.js +3 -4
  31. package/dist/organization/index.js +3 -4
  32. package/dist/profile/index.js +1 -2
  33. package/dist/provider/index.css +3 -0
  34. package/dist/provider/index.js +7 -10
  35. package/dist/provider/published.js +6 -9
  36. package/dist/utils/index.d.ts +92 -1
  37. package/dist/utils/index.js +1 -2
  38. package/package.json +7 -3
  39. package/dist/chunk-4VGWQ5AN.js +0 -91
  40. package/dist/chunk-KA7LO7U5.js +0 -28
  41. package/dist/chunk-LFYO3MDC.js +0 -58
  42. package/dist/chunk-TIRMFDM4.js +0 -33
  43. package/dist/chunk-TYV5NJV2.js +0 -1
@@ -1,5 +1,8 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import * as react from 'react';
3
+ import * as zustand_middleware from 'zustand/middleware';
4
+ import * as zustand from 'zustand';
5
+ import { Edge } from '@xyflow/react';
3
6
  import { z } from 'zod';
4
7
 
5
8
  /**
@@ -685,6 +688,74 @@ interface FormSchema {
685
688
  fields: FormField[];
686
689
  }
687
690
 
691
+ /**
692
+ * Command View Types
693
+ *
694
+ * Unified type definitions for the Command View graph visualization.
695
+ * These types are used by both backend serialization and frontend rendering.
696
+ *
697
+ * Command View shows the resource graph: agents, workflows, triggers, integrations,
698
+ * external resources, and human checkpoints with their relationships.
699
+ */
700
+
701
+ /**
702
+ * Extended agent metadata for Command View
703
+ * Includes model and capability information for graph display
704
+ */
705
+ interface CommandViewAgent extends ResourceDefinition {
706
+ type: 'agent';
707
+ modelProvider: string;
708
+ modelId: string;
709
+ toolCount: number;
710
+ hasKnowledgeMap: boolean;
711
+ hasMemory: boolean;
712
+ sessionCapable: boolean;
713
+ }
714
+ /**
715
+ * Extended workflow metadata for Command View
716
+ * Includes step information for graph display
717
+ */
718
+ interface CommandViewWorkflow extends ResourceDefinition {
719
+ type: 'workflow';
720
+ stepCount: number;
721
+ entryPoint: string;
722
+ }
723
+ /**
724
+ * Relationship types between resources
725
+ *
726
+ * - triggers: Resource initiates/starts another resource (orange)
727
+ * - uses: Resource uses an integration (teal)
728
+ * - approval: Resource requires human approval (yellow)
729
+ */
730
+ type RelationshipType$1 = 'triggers' | 'uses' | 'approval';
731
+ /**
732
+ * Command View edge (relationship between resources)
733
+ */
734
+ interface CommandViewEdge$1 {
735
+ id: string;
736
+ source: string;
737
+ target: string;
738
+ relationship: RelationshipType$1;
739
+ label?: string;
740
+ }
741
+ /**
742
+ * Command View data structure
743
+ * Complete graph data for visualization
744
+ *
745
+ * Backend serializes this once at startup and serves it via /command-view endpoint.
746
+ * Frontend consumes this directly for graph rendering.
747
+ */
748
+ interface CommandViewData {
749
+ workflows: CommandViewWorkflow[];
750
+ agents: CommandViewAgent[];
751
+ triggers: TriggerDefinition[];
752
+ integrations: IntegrationDefinition[];
753
+ externalResources: ExternalResourceDefinition[];
754
+ humanCheckpoints: HumanCheckpointDefinition[];
755
+ edges: CommandViewEdge$1[];
756
+ domainDefinitions?: DomainDefinition[];
757
+ }
758
+
688
759
  /**
689
760
  * Serialized Registry Types
690
761
  *
@@ -3744,6 +3815,27 @@ interface ErrorTrend {
3744
3815
  warningCount: number;
3745
3816
  infoCount: number;
3746
3817
  }
3818
+ /**
3819
+ * Summary of executions for a single resource
3820
+ * Used by RecentExecutionsByResource dashboard component
3821
+ */
3822
+ interface ResourceExecutionSummary {
3823
+ resourceId: string;
3824
+ resourceType: string;
3825
+ resourceName: string | null;
3826
+ lastExecution: string;
3827
+ totalExecutions: number;
3828
+ successCount: number;
3829
+ failureCount: number;
3830
+ warningCount: number;
3831
+ successRate: number;
3832
+ }
3833
+ /**
3834
+ * Response from getRecentExecutionsByResource endpoint
3835
+ */
3836
+ interface RecentExecutionsByResourceResponse {
3837
+ resources: ResourceExecutionSummary[];
3838
+ }
3747
3839
  /** Resource identifier for health queries */
3748
3840
  interface ResourceIdentifier {
3749
3841
  entityType: string;
@@ -3898,6 +3990,17 @@ type MessageEvent = {
3898
3990
  */
3899
3991
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
3900
3992
 
3993
+ /**
3994
+ * Supported integration types
3995
+ *
3996
+ * These represent the available integration adapters that can be used with tools.
3997
+ * Each integration type corresponds to an adapter implementation.
3998
+ *
3999
+ * Note: Concrete adapter implementations are deferred until needed.
4000
+ * This type provides compile-time safety and auto-completion for tool definitions.
4001
+ */
4002
+ type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
4003
+
3901
4004
  /**
3902
4005
  * Resource Registry type definitions
3903
4006
  */
@@ -3937,6 +4040,240 @@ interface ResourceDefinition {
3937
4040
  /** Whether this resource is archived and should be excluded from registration and deployment */
3938
4041
  archived?: boolean;
3939
4042
  }
4043
+ /**
4044
+ * Domain definition for Command View filtering
4045
+ *
4046
+ * Domains are organizational metadata for UI filtering/grouping.
4047
+ * No execution impact - purely for visualization.
4048
+ *
4049
+ * @example
4050
+ * {
4051
+ * id: 'support',
4052
+ * name: 'Customer Support',
4053
+ * description: 'Ticket triage, knowledge base, escalations',
4054
+ * color: 'green',
4055
+ * icon: 'IconHeadset'
4056
+ * }
4057
+ */
4058
+ interface DomainDefinition {
4059
+ /** Unique identifier (e.g., 'support') */
4060
+ id: string;
4061
+ /** Display name (e.g., 'Customer Support') */
4062
+ name: string;
4063
+ /** Purpose description */
4064
+ description: string;
4065
+ /** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
4066
+ color?: string;
4067
+ /** Optional Tabler icon name (e.g., 'IconHeadset') */
4068
+ icon?: string;
4069
+ }
4070
+ /** Webhook provider identifiers */
4071
+ type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify';
4072
+ /** Webhook trigger configuration */
4073
+ interface WebhookTriggerConfig {
4074
+ /** Provider identifier */
4075
+ provider: WebhookProviderType;
4076
+ /** Event type for documentation (not used for matching - workflow handles routing) */
4077
+ event?: string;
4078
+ /** Optional filtering (e.g., specific form ID for Fillout) */
4079
+ filter?: Record<string, string>;
4080
+ /** References credential in credentials table for per-org webhook secrets */
4081
+ credentialName?: string;
4082
+ }
4083
+ /** Schedule trigger configuration */
4084
+ interface ScheduleTriggerConfig {
4085
+ /** Cron expression (e.g., '0 6 * * *') */
4086
+ cron: string;
4087
+ /** Optional timezone (default: UTC) */
4088
+ timezone?: string;
4089
+ }
4090
+ /** Event trigger configuration */
4091
+ interface EventTriggerConfig {
4092
+ /** Internal event type */
4093
+ eventType: string;
4094
+ /** Event source */
4095
+ source?: string;
4096
+ }
4097
+ /** Union of all trigger configs */
4098
+ type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | EventTriggerConfig;
4099
+ /**
4100
+ * Trigger metadata - entry points that initiate resource execution
4101
+ *
4102
+ * Triggers represent how executions start: webhooks from external services,
4103
+ * scheduled cron jobs, platform events, or manual user actions.
4104
+ *
4105
+ * BREAKING CHANGES (2025-11-30):
4106
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4107
+ * - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
4108
+ * - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
4109
+ * - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
4110
+ * - triggers object now includes `externalResources` option
4111
+ *
4112
+ * @example
4113
+ * // TriggerDefinition - metadata only
4114
+ * {
4115
+ * resourceId: 'trigger-new-order',
4116
+ * type: 'trigger',
4117
+ * triggerType: 'webhook',
4118
+ * name: 'New Order',
4119
+ * description: 'Webhook from Shopify on new orders',
4120
+ * version: '1.0.0',
4121
+ * status: 'prod',
4122
+ * webhookPath: '/webhooks/shopify/orders'
4123
+ * }
4124
+ *
4125
+ * // Relationships declared in ResourceRelationships (not on TriggerDefinition):
4126
+ * // relationships: {
4127
+ * // 'trigger-new-order': { triggers: { workflows: ['order-fulfillment-workflow'] } }
4128
+ * // }
4129
+ */
4130
+ interface TriggerDefinition extends ResourceDefinition {
4131
+ /** Resource type discriminator (narrowed from base union) */
4132
+ type: 'trigger';
4133
+ /** Trigger mechanism type (renamed from 'type' to avoid collision with base type discriminator) */
4134
+ triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
4135
+ /** Type-specific configuration */
4136
+ config?: TriggerConfig;
4137
+ /** For webhook triggers: path like '/webhooks/shopify/orders' */
4138
+ webhookPath?: string;
4139
+ /** For schedule triggers: cron expression like '0 6 * * *' */
4140
+ schedule?: string;
4141
+ /** For event triggers: event type like 'low-stock-alert' */
4142
+ eventType?: string;
4143
+ }
4144
+ /**
4145
+ * Integration metadata - external service connections
4146
+ *
4147
+ * References credentials table for actual connection. No connection status
4148
+ * stored here (queried at runtime from credentials table).
4149
+ *
4150
+ * BREAKING CHANGES (2025-11-30):
4151
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4152
+ * - Field renames: `id` -> `resourceId` (inherited)
4153
+ * - New required field: `status` (inherited) - organizations must add status to all integrations
4154
+ * - New required field: `version` (inherited) - organizations must add version to all integrations
4155
+ * - New required field: `type: 'integration'` (inherited) - resource type discriminator
4156
+ *
4157
+ * @example
4158
+ * {
4159
+ * resourceId: 'integration-shopify-prod',
4160
+ * type: 'integration',
4161
+ * provider: 'shopify',
4162
+ * credentialName: 'shopify-prod',
4163
+ * name: 'Shopify Production',
4164
+ * description: 'E-commerce platform',
4165
+ * version: '1.0.0',
4166
+ * status: 'prod'
4167
+ * }
4168
+ */
4169
+ interface IntegrationDefinition extends ResourceDefinition {
4170
+ /** Resource type discriminator (narrowed from base union) */
4171
+ type: 'integration';
4172
+ /** Integration provider type */
4173
+ provider: IntegrationType;
4174
+ /** References credentials table (e.g., 'shopify-prod', 'zendesk-api') */
4175
+ credentialName: string;
4176
+ }
4177
+ /**
4178
+ * External platform type
4179
+ * Supported third-party automation platforms
4180
+ */
4181
+ type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other';
4182
+ /**
4183
+ * External automation resource metadata
4184
+ *
4185
+ * Represents workflows/automations running on third-party platforms
4186
+ * (n8n, Make, Zapier, etc.) for visualization in Command View.
4187
+ *
4188
+ * NOTE: This is metadata ONLY for visualization. No execution logic,
4189
+ * no API integration with external platforms, no status syncing.
4190
+ *
4191
+ * BREAKING CHANGES (2025-11-30):
4192
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4193
+ * - Field renames: `id` -> `resourceId` (inherited)
4194
+ * - New required field: `version` (inherited) - organizations must add version to all external resources
4195
+ * - New required field: `type: 'external'` (inherited) - resource type discriminator
4196
+ * - REMOVED FIELD: `triggeredBy` - per relationship-consolidation design, all relationships are forward-only declarations
4197
+ *
4198
+ * @example
4199
+ * {
4200
+ * resourceId: 'external-n8n-order-sync',
4201
+ * type: 'external',
4202
+ * version: '1.0.0',
4203
+ * platform: 'n8n',
4204
+ * name: 'Shopify Order Sync',
4205
+ * description: 'Legacy n8n workflow for syncing Shopify orders',
4206
+ * status: 'prod',
4207
+ * platformUrl: 'https://n8n.client.com/workflow/123',
4208
+ * triggers: { workflows: ['order-fulfillment-workflow'] },
4209
+ * uses: { integrations: ['integration-shopify-prod'] }
4210
+ * }
4211
+ */
4212
+ interface ExternalResourceDefinition extends ResourceDefinition {
4213
+ /** Resource type discriminator (narrowed from base union) */
4214
+ type: 'external';
4215
+ /** Platform type */
4216
+ platform: ExternalPlatform;
4217
+ /** Link to external platform (e.g., n8n workflow editor URL) */
4218
+ platformUrl?: string;
4219
+ /** Platform's internal ID/reference */
4220
+ externalId?: string;
4221
+ /** What this external resource triggers (external -> internal) */
4222
+ triggers?: {
4223
+ /** Elevasis workflow resourceIds this external automation triggers */
4224
+ workflows?: string[];
4225
+ /** Elevasis agent resourceIds this external automation triggers */
4226
+ agents?: string[];
4227
+ };
4228
+ /** Integrations this external resource uses (shared credentials) */
4229
+ uses?: {
4230
+ /** Integration IDs this external automation uses */
4231
+ integrations?: string[];
4232
+ };
4233
+ }
4234
+ /**
4235
+ * Human Checkpoint definition - human decision points in automation
4236
+ *
4237
+ * Represents where human judgment is deployed in the automation landscape.
4238
+ * Tasks with matching command_queue_group are routed to this checkpoint.
4239
+ *
4240
+ * BREAKING CHANGES (2025-11-30):
4241
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4242
+ * - Field renames: `id` -> `resourceId` (inherited)
4243
+ * - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
4244
+ * - New required field: `version` (inherited) - organizations must add version to all human checkpoints
4245
+ * - New required field: `type: 'human'` (inherited) - resource type discriminator
4246
+ *
4247
+ * @example
4248
+ * {
4249
+ * resourceId: 'sales-approval',
4250
+ * type: 'human',
4251
+ * name: 'Sales Approval Queue',
4252
+ * description: 'High-value order approvals for sales team',
4253
+ * version: '1.0.0',
4254
+ * status: 'prod',
4255
+ * requestedBy: { agents: ['order-processor-agent'] },
4256
+ * routesTo: { agents: ['order-fulfillment-agent'] }
4257
+ * }
4258
+ */
4259
+ interface HumanCheckpointDefinition extends ResourceDefinition {
4260
+ /** Resource type discriminator (narrowed from base union) */
4261
+ type: 'human';
4262
+ /** Resources that create tasks for this checkpoint */
4263
+ requestedBy?: {
4264
+ /** Agent resourceIds that request approval here */
4265
+ agents?: string[];
4266
+ /** Workflow resourceIds that request approval here */
4267
+ workflows?: string[];
4268
+ };
4269
+ /** Resources that receive approved decisions */
4270
+ routesTo?: {
4271
+ /** Agent resourceIds that handle approved tasks */
4272
+ agents?: string[];
4273
+ /** Workflow resourceIds that handle approved tasks */
4274
+ workflows?: string[];
4275
+ };
4276
+ }
3940
4277
 
3941
4278
  /**
3942
4279
  * Standard Domain Definitions
@@ -3984,6 +4321,62 @@ interface APIExecutionDetail extends APIExecutionSummary {
3984
4321
  sdkVersion?: string | null;
3985
4322
  }
3986
4323
 
4324
+ /**
4325
+ * @deprecated Use TimeRange from '@repo/core' directly. Kept as alias for backward compatibility.
4326
+ */
4327
+ type StatsTimeRange = TimeRange;
4328
+ /** Stats returned by /command-view/stats (counts only, no error details) */
4329
+ interface ResourceStats {
4330
+ resourceId: string;
4331
+ totalRuns: number;
4332
+ successCount: number;
4333
+ failureCount: number;
4334
+ warningCount: number;
4335
+ lastRunAt: string | null;
4336
+ }
4337
+ /** Response from /command-view/resource-errors (on-demand) */
4338
+ interface ResourceErrorsResponse {
4339
+ resourceId: string;
4340
+ errors: ErrorSummary[];
4341
+ totalErrors: number;
4342
+ timeRange: StatsTimeRange;
4343
+ }
4344
+ interface ErrorSummary {
4345
+ executionId: string;
4346
+ errorType: string;
4347
+ errorMessage: string;
4348
+ occurredAt: string;
4349
+ }
4350
+ /** Single execution summary for Recent Executions list in command view */
4351
+ interface CommandViewExecution {
4352
+ executionId: string;
4353
+ status: ExecutionStatus;
4354
+ startedAt: string;
4355
+ completedAt: string | null;
4356
+ errorMessage: string | null;
4357
+ }
4358
+ /** Response from /command-view/resource-executions (on-demand) */
4359
+ interface ResourceExecutionsResponse {
4360
+ resourceId: string;
4361
+ executions: CommandViewExecution[];
4362
+ totalExecutions: number;
4363
+ timeRange: StatsTimeRange;
4364
+ }
4365
+ interface HumanCheckpointStats {
4366
+ checkpointId: string;
4367
+ pendingCount: number;
4368
+ completedCount: number;
4369
+ expiredCount: number;
4370
+ lastDecisionAt: string | null;
4371
+ }
4372
+ /** Response from /command-view/stats */
4373
+ interface CommandViewStatsResponse {
4374
+ resources: Record<string, ResourceStats>;
4375
+ humanCheckpoints: Record<string, HumanCheckpointStats>;
4376
+ timeRange: StatsTimeRange;
4377
+ generatedAt: string;
4378
+ }
4379
+
3987
4380
  type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
3988
4381
  type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
3989
4382
  interface Activity {
@@ -4047,6 +4440,27 @@ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
4047
4440
  type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
4048
4441
  type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
4049
4442
 
4443
+ /**
4444
+ * Deployment types — browser-safe
4445
+ *
4446
+ * Canonical API response types for the deployment resource.
4447
+ * The API's transformRow converts snake_case DB columns to these camelCase fields.
4448
+ */
4449
+ type DeploymentStatus = 'deploying' | 'active' | 'failed' | 'rolled_back' | 'stopped';
4450
+ interface Deployment {
4451
+ id: string;
4452
+ organizationId: string;
4453
+ status: DeploymentStatus;
4454
+ sdkVersion: string;
4455
+ deploymentVersion: string | null;
4456
+ port: number | null;
4457
+ pid: number | null;
4458
+ tarballPath: string | null;
4459
+ errorMessage: string | null;
4460
+ createdAt: string;
4461
+ updatedAt: string;
4462
+ }
4463
+
4050
4464
  /**
4051
4465
  * Fetch all available Execution Engine resources (workflows, agents, pipelines).
4052
4466
  *
@@ -4070,6 +4484,24 @@ declare function useResources(): _tanstack_react_query.UseQueryResult<{
4070
4484
  */
4071
4485
  declare function useResourceDefinition(resourceId: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<AIResourceDefinition, Error>;
4072
4486
 
4487
+ interface UseScheduledTasksOptions {
4488
+ status?: 'active' | 'paused' | 'completed' | 'cancelled';
4489
+ targetResourceType?: 'agent' | 'workflow';
4490
+ }
4491
+ /**
4492
+ * Dashboard hook for fetching scheduled tasks.
4493
+ * Simplified read-only hook that returns the schedules array directly.
4494
+ *
4495
+ * @param options - Optional filters for status and target resource type
4496
+ * @returns TanStack Query result with schedules array
4497
+ *
4498
+ * @example
4499
+ * ```tsx
4500
+ * const { data: schedules, isLoading } = useScheduledTasks({ status: 'active' })
4501
+ * ```
4502
+ */
4503
+ declare function useScheduledTasks(options?: UseScheduledTasksOptions): _tanstack_react_query.UseQueryResult<TaskSchedule[], Error>;
4504
+
4073
4505
  /**
4074
4506
  * Query key factory for schedule cache management.
4075
4507
  * Provides type-safe, hierarchical keys for TanStack Query.
@@ -4417,6 +4849,8 @@ declare const observabilityKeys: {
4417
4849
  dashboardMetrics: (organizationId: string | null, timeRange: string) => readonly ["observability", "dashboard-metrics", string | null, string];
4418
4850
  businessImpact: (organizationId: string | null, timeRange: string) => readonly ["observability", "business-impact", string | null, string];
4419
4851
  resourcesHealth: (organizationId: string | null, resources: string, startDate: string, endDate: string, granularity: string) => readonly ["observability", "resources-health", string | null, string, string, string, string];
4852
+ unresolvedErrors: (organizationId: string | null, startDate: string, endDate: string) => readonly ["observability", "unresolved-errors", string | null, string, string];
4853
+ recentExecutionsByResource: (organizationId: string | null, timeRange: string, limit: number | undefined) => readonly ["observability", "recent-executions-by-resource", string | null, string, number | undefined];
4420
4854
  };
4421
4855
 
4422
4856
  declare function useErrorAnalysis(timeRange: TimeRange): _tanstack_react_query.UseQueryResult<ErrorAnalysisMetrics, Error>;
@@ -4530,6 +4964,31 @@ declare function useBatchedResourcesHealth(params: UseBatchedResourcesHealthPara
4530
4964
  healthLookup: Map<string, ResourceHealth>;
4531
4965
  };
4532
4966
 
4967
+ interface UseUnresolvedErrorsParams {
4968
+ startDate: string;
4969
+ endDate: string;
4970
+ }
4971
+ /**
4972
+ * Fetches the most recent unresolved errors for the dashboard operational overview.
4973
+ */
4974
+ declare function useUnresolvedErrors({ startDate, endDate }: UseUnresolvedErrorsParams): _tanstack_react_query.UseQueryResult<ErrorDetailResponse, Error>;
4975
+
4976
+ interface UseRecentExecutionsByResourceParams {
4977
+ timeRange: TimeRange;
4978
+ limit?: number;
4979
+ }
4980
+ /**
4981
+ * Fetch recent executions grouped by resource.
4982
+ * Single source of truth from execution_logs (includes session-based executions).
4983
+ *
4984
+ * @example
4985
+ * const { data, isLoading } = useRecentExecutionsByResource({
4986
+ * timeRange: '24h',
4987
+ * limit: 5
4988
+ * })
4989
+ */
4990
+ declare function useRecentExecutionsByResource({ timeRange, limit }: UseRecentExecutionsByResourceParams): _tanstack_react_query.UseQueryResult<RecentExecutionsByResourceResponse, Error>;
4991
+
4533
4992
  declare function useMarkAsRead(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
4534
4993
 
4535
4994
  declare function useMarkAllAsRead(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
@@ -4579,6 +5038,22 @@ declare function useWarningNotification(): (title: string, message: string) => v
4579
5038
  */
4580
5039
  declare function useBatchDelete(tableName: string, invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
4581
5040
 
5041
+ /**
5042
+ * Mutation hook to send a test notification.
5043
+ * On success, invalidates the notifications query cache.
5044
+ * On error, shows an API error notification via the notification adapter.
5045
+ *
5046
+ * @returns TanStack Mutation for triggering test notifications
5047
+ *
5048
+ * @example
5049
+ * ```tsx
5050
+ * const testNotification = useTestNotification()
5051
+ *
5052
+ * testNotification.mutate()
5053
+ * ```
5054
+ */
5055
+ declare function useTestNotification(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
5056
+
4582
5057
  interface SessionListItem {
4583
5058
  sessionId: string;
4584
5059
  resourceId: string;
@@ -4971,13 +5446,14 @@ interface WebSocketState {
4971
5446
  error: string | null;
4972
5447
  }
4973
5448
 
4974
- /** Refetch interval for running executions (ms) */
5449
+ /** Active execution detail polling when status is 'running' (2s). */
4975
5450
  declare const REFETCH_INTERVAL_RUNNING = 2000;
4976
- /** WebSocket reconnection: base delay (ms) */
5451
+
5452
+ /** WebSocket exponential backoff base delay (1s). */
4977
5453
  declare const WS_RECONNECT_BASE_DELAY = 1000;
4978
- /** WebSocket reconnection: max delay (ms) */
5454
+ /** WebSocket reconnect delay cap (30s). */
4979
5455
  declare const WS_RECONNECT_MAX_DELAY = 30000;
4980
- /** WebSocket reconnection: retries before showing error */
5456
+ /** WebSocket retries before showing error state. */
4981
5457
  declare const WS_MAX_RETRIES_BEFORE_ERROR = 3;
4982
5458
 
4983
5459
  declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
@@ -5063,6 +5539,390 @@ declare function usePatchTask(): _tanstack_react_query.UseMutationResult<Task, E
5063
5539
  params: PatchTaskParams;
5064
5540
  }, unknown>;
5065
5541
 
5542
+ /**
5543
+ * Query key factories for Operations TanStack Query hooks.
5544
+ *
5545
+ * Execution-related keys (executions, resources, definitions) use executionsKeys from @repo/ui.
5546
+ * Non-execution keys (workflows, agents, sessions) stay local in operationsKeys.
5547
+ */
5548
+
5549
+ declare const operationsKeys: {
5550
+ all: readonly ["operations"];
5551
+ workflows: (org?: string) => readonly ["operations", "workflows", string | undefined];
5552
+ workflowDetails: (org?: string) => readonly ["operations", "workflows", string | undefined, "details"];
5553
+ workflow: (id: string, org?: string) => readonly ["operations", "workflows", string | undefined, string];
5554
+ agents: (org?: string) => readonly ["operations", "agents", string | undefined];
5555
+ agentDetails: (org?: string) => readonly ["operations", "agents", string | undefined, "details"];
5556
+ agent: (id: string, org?: string) => readonly ["operations", "agents", string | undefined, string];
5557
+ sessions: (org: string, params?: {
5558
+ resourceId?: string;
5559
+ }) => readonly ["operations", "sessions", string, {
5560
+ resourceId?: string;
5561
+ } | undefined];
5562
+ session: (org: string, sessionId: string) => readonly ["operations", "session", string, string];
5563
+ };
5564
+
5565
+ declare function useExecutionLogSSE(resourceId: string, manager: SSEConnectionManager): {
5566
+ liveExecutions: Set<string>;
5567
+ connected: boolean;
5568
+ error: string | null;
5569
+ runningCount: number;
5570
+ isLive: (executionId: string) => boolean;
5571
+ streamingLogs: Map<string, ExecutionLogMessage[]>;
5572
+ };
5573
+
5574
+ interface UseExecutionPanelStateOptions {
5575
+ resourceId: string;
5576
+ manager: SSEConnectionManager;
5577
+ limit?: number;
5578
+ onConnectionStatus?: (connected: boolean, runningCount: number) => void;
5579
+ }
5580
+ interface UseExecutionPanelStateReturn {
5581
+ executions: APIExecutionSummary[];
5582
+ isLoading: boolean;
5583
+ isFetched: boolean;
5584
+ selectedId: string | undefined;
5585
+ setSelectedId: (id: string | undefined) => void;
5586
+ resourceStatusFilter: ResourceStatus | 'all';
5587
+ setResourceStatusFilter: (filter: ResourceStatus | 'all') => void;
5588
+ liveExecutions: Set<string>;
5589
+ connected: boolean;
5590
+ runningCount: number;
5591
+ streamingLogs: Map<string, ExecutionLogMessage[]>;
5592
+ }
5593
+ /**
5594
+ * Shared execution panel state management hook
5595
+ * Handles execution list fetching, selection, auto-selection logic, and SSE integration
5596
+ *
5597
+ * @param options - Hook configuration options
5598
+ * @returns Execution panel state and controls
5599
+ *
5600
+ * @example
5601
+ * ```tsx
5602
+ * const {
5603
+ * executions,
5604
+ * selectedId,
5605
+ * setSelectedId,
5606
+ * liveExecutions,
5607
+ * connected
5608
+ * } = useExecutionPanelState({ resourceId, manager, onConnectionStatus })
5609
+ * ```
5610
+ */
5611
+ declare function useExecutionPanelState({ resourceId, manager, limit, onConnectionStatus }: UseExecutionPanelStateOptions): UseExecutionPanelStateReturn;
5612
+
5613
+ /**
5614
+ * Utilities for extracting typed properties from resource definitions
5615
+ */
5616
+
5617
+ /**
5618
+ * Extract sessionCapable from agent definition config
5619
+ * Returns true only for agents with explicit sessionCapable: true
5620
+ */
5621
+ declare function isSessionCapable(type: ResourceType, resourceDefinition: AIResourceDefinition | undefined): boolean;
5622
+
5623
+ interface DocFile {
5624
+ path: string;
5625
+ frontmatter: {
5626
+ title: string;
5627
+ order?: number;
5628
+ [key: string]: unknown;
5629
+ };
5630
+ compiledSource: string;
5631
+ }
5632
+ /**
5633
+ * Fetches deployment documentation for the current organization.
5634
+ *
5635
+ * 1. Fetches all deployments via GET /api/deployments
5636
+ * 2. Auto-selects the latest active deployment (most recent by createdAt)
5637
+ * 3. Fetches docs for the selected deployment via GET /api/deployments/:id/docs
5638
+ *
5639
+ * @returns { files, isLoading, error, activeDeployment, activeDeployments }
5640
+ */
5641
+ declare function useDeploymentDocs(selectedDeploymentId?: string): {
5642
+ files: DocFile[];
5643
+ isLoading: boolean;
5644
+ error: Error | null;
5645
+ activeDeployment: Deployment;
5646
+ activeDeployments: Deployment[];
5647
+ };
5648
+
5649
+ /**
5650
+ * Fetches Command View data for the current organization
5651
+ *
5652
+ * Uses pre-serialized data from the backend for instant responses.
5653
+ * Data includes workflows, agents, triggers, integrations, and relationship edges.
5654
+ *
5655
+ * @returns TanStack Query result with CommandViewData
5656
+ */
5657
+ declare function useCommandViewData(): _tanstack_react_query.UseQueryResult<CommandViewData, Error>;
5658
+
5659
+ /**
5660
+ * Fetches Command View stats for the current organization
5661
+ *
5662
+ * Returns execution statistics (counts only, no error details) for all resources
5663
+ * within the specified time range. Error details are fetched on-demand via useResourceErrors.
5664
+ *
5665
+ * @param timeRange - Time range for stats aggregation ('24h' or '7d')
5666
+ * @returns TanStack Query result with CommandViewStatsResponse
5667
+ */
5668
+ declare function useCommandViewStats(timeRange?: StatsTimeRange): _tanstack_react_query.UseQueryResult<CommandViewStatsResponse, Error>;
5669
+
5670
+ /**
5671
+ * Command View Types
5672
+ *
5673
+ * Frontend graph types for React Flow rendering.
5674
+ *
5675
+ * Backend API returns CommandViewData with separate arrays (workflows[], agents[], etc.)
5676
+ * Frontend transforms this to CommandViewGraph with unified nodes[] array.
5677
+ *
5678
+ * @see transformCommandViewData for the mapping logic
5679
+ * @see CommandViewData from @repo/core for backend type
5680
+ */
5681
+
5682
+ /**
5683
+ * Base resource node - common fields for all resources
5684
+ */
5685
+ interface BaseResourceNode {
5686
+ id: string;
5687
+ name: string;
5688
+ description: string;
5689
+ status: ResourceStatus;
5690
+ stats?: {
5691
+ totalRuns: number;
5692
+ successCount: number;
5693
+ failureCount: number;
5694
+ warningCount: number;
5695
+ lastRunAt: string | null;
5696
+ } | null;
5697
+ }
5698
+ /**
5699
+ * Agent node - autonomous AI agents
5700
+ */
5701
+ interface AgentNode extends BaseResourceNode {
5702
+ type: 'agent';
5703
+ modelProvider: string;
5704
+ modelId: string;
5705
+ toolCount: number;
5706
+ hasKnowledgeMap: boolean;
5707
+ hasMemory: boolean;
5708
+ }
5709
+ /**
5710
+ * Workflow node - multi-step orchestrations
5711
+ */
5712
+ interface WorkflowNode extends BaseResourceNode {
5713
+ type: 'workflow';
5714
+ stepCount: number;
5715
+ entryPoint: string;
5716
+ }
5717
+ /**
5718
+ * Integration node - external service connections
5719
+ */
5720
+ interface IntegrationNode extends BaseResourceNode {
5721
+ type: 'integration';
5722
+ provider: string;
5723
+ connectionStatus: 'connected' | 'disconnected' | 'error';
5724
+ credentialName?: string;
5725
+ }
5726
+ /**
5727
+ * Trigger node - what initiates executions
5728
+ */
5729
+ interface TriggerNode extends BaseResourceNode {
5730
+ type: 'trigger';
5731
+ triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
5732
+ schedule?: string;
5733
+ webhookPath?: string;
5734
+ }
5735
+ /**
5736
+ * External resource node - third-party automation platforms
5737
+ */
5738
+ interface ExternalResourceNode extends BaseResourceNode {
5739
+ type: 'external';
5740
+ platform: 'n8n' | 'make' | 'zapier' | 'other';
5741
+ platformUrl?: string;
5742
+ externalId?: string;
5743
+ }
5744
+ /**
5745
+ * Human node - approval points requiring human decisions
5746
+ */
5747
+ interface HumanNode extends Omit<BaseResourceNode, 'stats'> {
5748
+ type: 'human';
5749
+ stats?: {
5750
+ pendingCount: number;
5751
+ completedCount: number;
5752
+ expiredCount: number;
5753
+ lastDecisionAt: string | null;
5754
+ } | null;
5755
+ }
5756
+ /**
5757
+ * Union type for all node types
5758
+ */
5759
+ type CommandViewNode = AgentNode | WorkflowNode | IntegrationNode | TriggerNode | ExternalResourceNode | HumanNode;
5760
+ /**
5761
+ * Relationship types between resources
5762
+ */
5763
+ type RelationshipType = 'triggers' | 'uses' | 'approval';
5764
+ /**
5765
+ * Edge representing a relationship
5766
+ */
5767
+ interface CommandViewEdge {
5768
+ id: string;
5769
+ source: string;
5770
+ target: string;
5771
+ relationship: RelationshipType;
5772
+ label?: string;
5773
+ }
5774
+ /**
5775
+ * Complete graph data for visualization
5776
+ */
5777
+ interface CommandViewGraph {
5778
+ nodes: CommandViewNode[];
5779
+ edges: CommandViewEdge[];
5780
+ }
5781
+
5782
+ type StatusFilter = ResourceStatus | 'all';
5783
+
5784
+ interface CommandViewStore {
5785
+ statusFilter: StatusFilter;
5786
+ setStatusFilter: (v: StatusFilter) => void;
5787
+ showIntegrations: boolean;
5788
+ setShowIntegrations: (v: boolean) => void;
5789
+ fitViewOnFilter: boolean;
5790
+ setFitViewOnFilter: (v: boolean) => void;
5791
+ selectedNodeId: string | null;
5792
+ setSelectedNodeId: (id: string | null) => void;
5793
+ }
5794
+ /**
5795
+ * Shared store for Command View filter/settings state.
5796
+ * Allows CommandViewPage (graph) and CommandViewSidebarContent (sidebar) to share state.
5797
+ *
5798
+ * Persisted to localStorage: showIntegrations, fitViewOnFilter
5799
+ * Not persisted (reset on reload): statusFilter, selectedNodeId
5800
+ */
5801
+ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<CommandViewStore>, "setState" | "persist"> & {
5802
+ setState(partial: CommandViewStore | Partial<CommandViewStore> | ((state: CommandViewStore) => CommandViewStore | Partial<CommandViewStore>), replace?: false | undefined): unknown;
5803
+ setState(state: CommandViewStore | ((state: CommandViewStore) => CommandViewStore), replace: true): unknown;
5804
+ persist: {
5805
+ setOptions: (options: Partial<zustand_middleware.PersistOptions<CommandViewStore, {
5806
+ showIntegrations: boolean;
5807
+ fitViewOnFilter: boolean;
5808
+ }, unknown>>) => void;
5809
+ clearStorage: () => void;
5810
+ rehydrate: () => Promise<void> | void;
5811
+ hasHydrated: () => boolean;
5812
+ onHydrate: (fn: (state: CommandViewStore) => void) => () => void;
5813
+ onFinishHydration: (fn: (state: CommandViewStore) => void) => () => void;
5814
+ getOptions: () => Partial<zustand_middleware.PersistOptions<CommandViewStore, {
5815
+ showIntegrations: boolean;
5816
+ fitViewOnFilter: boolean;
5817
+ }, unknown>>;
5818
+ };
5819
+ }>;
5820
+
5821
+ /**
5822
+ * useCommandViewLayout - Hook to convert CommandViewGraph to ReactFlow nodes/edges
5823
+ *
5824
+ * Uses Dagre for automatic graph layout:
5825
+ * - Left-to-right flow (LR)
5826
+ * - Minimizes edge crossings
5827
+ * - Keeps connected nodes closer together
5828
+ *
5829
+ * Post-processes Dagre output to sort workflow chains by their minimum name prefix
5830
+ * (e.g., INB-01 chain above INB-02 chain, above INB-04 chain). Uses Union-Find
5831
+ * to identify connected components based on 'triggers' and 'approval' edges
5832
+ * (not 'uses' edges, which would connect everything through shared integrations).
5833
+ */
5834
+
5835
+ /**
5836
+ * Convert CommandViewGraph to ReactFlow nodes and edges with Dagre layout
5837
+ */
5838
+ declare function useCommandViewLayout(graph: CommandViewGraph): {
5839
+ nodes: {
5840
+ id: string;
5841
+ type: string;
5842
+ position: {
5843
+ x: number;
5844
+ y: number;
5845
+ };
5846
+ data: Record<string, unknown>;
5847
+ }[];
5848
+ edges: Edge[];
5849
+ };
5850
+ /**
5851
+ * Get graph statistics
5852
+ */
5853
+ declare function useGraphStats(graph: CommandViewGraph): {
5854
+ agents: number;
5855
+ workflows: number;
5856
+ integrations: number;
5857
+ triggers: number;
5858
+ prodResources: number;
5859
+ devResources: number;
5860
+ connectedIntegrations: number;
5861
+ errorIntegrations: number;
5862
+ };
5863
+
5864
+ interface UseCheckpointTasksOptions {
5865
+ checkpointId: string | null;
5866
+ enabled?: boolean;
5867
+ }
5868
+ interface CheckpointTasksResponse {
5869
+ tasks: Task[];
5870
+ }
5871
+ /**
5872
+ * Fetches pending tasks for a specific human checkpoint (on-demand)
5873
+ *
5874
+ * Only fetches when:
5875
+ * - Organization is ready
5876
+ * - Checkpoint is selected
5877
+ * - enabled is true (default: true when checkpointId is set)
5878
+ *
5879
+ * Returns top 10 pending tasks ordered by priority and creation date
5880
+ *
5881
+ * @param options - Checkpoint ID and enabled flag
5882
+ * @returns TanStack Query result with pending tasks
5883
+ */
5884
+ declare function useCheckpointTasks({ checkpointId, enabled }: UseCheckpointTasksOptions): _tanstack_react_query.UseQueryResult<CheckpointTasksResponse, Error>;
5885
+
5886
+ interface UseResourceErrorsOptions {
5887
+ resourceId: string | null;
5888
+ timeRange: StatsTimeRange;
5889
+ hasFailures: boolean;
5890
+ }
5891
+ /**
5892
+ * Fetches error details for a specific resource (on-demand)
5893
+ *
5894
+ * Only fetches when:
5895
+ * - Organization is ready
5896
+ * - Resource is selected
5897
+ * - Resource has failures (lazy loading pattern)
5898
+ *
5899
+ * Returns top 10 errors + total count for "showing X of Y" display
5900
+ *
5901
+ * @param options - Resource ID, time range, and failure flag
5902
+ * @returns TanStack Query result with ResourceErrorsResponse
5903
+ */
5904
+ declare function useResourceErrors({ resourceId, timeRange, hasFailures }: UseResourceErrorsOptions): _tanstack_react_query.UseQueryResult<ResourceErrorsResponse, Error>;
5905
+
5906
+ interface UseResourceExecutionsOptions {
5907
+ resourceId: string | null;
5908
+ timeRange: StatsTimeRange;
5909
+ enabled?: boolean;
5910
+ }
5911
+ /**
5912
+ * Fetches recent executions for a specific resource (on-demand)
5913
+ *
5914
+ * Only fetches when:
5915
+ * - Organization is ready
5916
+ * - Resource is selected
5917
+ * - enabled is true (default: true when resourceId is set)
5918
+ *
5919
+ * Returns top 10 executions + total count for "showing X of Y" display
5920
+ *
5921
+ * @param options - Resource ID, time range, and enabled flag
5922
+ * @returns TanStack Query result with ResourceExecutionsResponse
5923
+ */
5924
+ declare function useResourceExecutions({ resourceId, timeRange, enabled }: UseResourceExecutionsOptions): _tanstack_react_query.UseQueryResult<ResourceExecutionsResponse, Error>;
5925
+
5066
5926
  /**
5067
5927
  * Hook to fetch sessions list with optional filtering.
5068
5928
  */
@@ -5122,5 +5982,5 @@ declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
5122
5982
  lastTokenUsage: SessionTokenUsage | null;
5123
5983
  };
5124
5984
 
5125
- export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCommandQueue, useCommandQueueTotals, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification };
5126
- export type { ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseExecutionHealthParams, UseExecutionLogsParams, UseResourcesHealthParams, UseSSEConnectionOptions, WebSocketState };
5985
+ export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, createUseFeatureAccess, executionsKeys, isSessionCapable, observabilityKeys, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateSchedule, useWarningNotification };
5986
+ export type { ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };