@elevasis/ui 2.20.0 → 2.22.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 (100) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.js +5 -5
  3. package/dist/charts/index.js +3 -3
  4. package/dist/{chunk-TO7QXDBX.js → chunk-3HEUGBOT.js} +3 -3
  5. package/dist/chunk-AXXTN44Z.js +26 -0
  6. package/dist/{chunk-FMFX4K6E.js → chunk-B4FHWKEF.js} +3390 -2929
  7. package/dist/{chunk-AL23U6C3.js → chunk-BIWHHWCJ.js} +1 -2
  8. package/dist/{chunk-MZFJWCPH.js → chunk-BSZRKBAW.js} +277 -92
  9. package/dist/{chunk-GP3AFJYG.js → chunk-COG4ABRI.js} +8 -13
  10. package/dist/chunk-DDZOHLHB.js +48 -0
  11. package/dist/{chunk-ZE2KQSHL.js → chunk-GJ7EIABJ.js} +4 -4
  12. package/dist/{chunk-YP6T426C.js → chunk-IBUYJXA3.js} +1326 -1110
  13. package/dist/{chunk-2CFOFSSG.js → chunk-IOTLB6ND.js} +8 -13
  14. package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
  15. package/dist/chunk-LJWV4TWV.js +335 -0
  16. package/dist/{chunk-PJVG3ISO.js → chunk-LKVBEE63.js} +7 -9
  17. package/dist/{chunk-JR5WNTLA.js → chunk-LVJGPE6H.js} +11 -24
  18. package/dist/{chunk-OUYH2SBS.js → chunk-LVUCBY7X.js} +2 -2
  19. package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
  20. package/dist/{chunk-OD7GWIZS.js → chunk-SGXXJE52.js} +1 -121
  21. package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
  22. package/dist/{chunk-R7OJCNL3.js → chunk-T6INEVX6.js} +1 -1
  23. package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
  24. package/dist/{chunk-CTTY6FUT.js → chunk-TSSKOQBX.js} +2 -2
  25. package/dist/{chunk-GTYUP7MB.js → chunk-WWJ6S2HQ.js} +10 -22
  26. package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
  27. package/dist/{chunk-BHR7IV72.js → chunk-XUYBOO32.js} +1 -1
  28. package/dist/{chunk-M7W7CGPL.js → chunk-Z6FAH4XV.js} +1 -1
  29. package/dist/{chunk-Q4QJOSVS.js → chunk-ZBCTB5CA.js} +1 -1
  30. package/dist/components/index.css +85 -85
  31. package/dist/components/index.d.ts +970 -746
  32. package/dist/components/index.js +246 -39
  33. package/dist/components/navigation/index.css +589 -0
  34. package/dist/components/navigation/index.d.ts +1 -13
  35. package/dist/components/navigation/index.js +11 -1
  36. package/dist/execution/index.d.ts +27 -0
  37. package/dist/features/auth/index.css +2 -2
  38. package/dist/features/auth/index.d.ts +184 -3
  39. package/dist/features/crm/index.css +2 -2
  40. package/dist/features/crm/index.d.ts +201 -38
  41. package/dist/features/crm/index.js +15 -14
  42. package/dist/features/dashboard/index.css +2 -2
  43. package/dist/features/dashboard/index.d.ts +25 -27
  44. package/dist/features/dashboard/index.js +15 -14
  45. package/dist/features/delivery/index.css +85 -85
  46. package/dist/features/delivery/index.d.ts +201 -38
  47. package/dist/features/delivery/index.js +15 -14
  48. package/dist/features/lead-gen/index.css +2 -2
  49. package/dist/features/lead-gen/index.d.ts +19 -37
  50. package/dist/features/lead-gen/index.js +15 -14
  51. package/dist/features/monitoring/index.css +85 -85
  52. package/dist/features/monitoring/index.d.ts +18 -36
  53. package/dist/features/monitoring/index.js +17 -16
  54. package/dist/features/monitoring/requests/index.css +2 -2
  55. package/dist/features/monitoring/requests/index.d.ts +18 -36
  56. package/dist/features/monitoring/requests/index.js +15 -14
  57. package/dist/features/operations/index.css +2 -2
  58. package/dist/features/operations/index.d.ts +49 -67
  59. package/dist/features/operations/index.js +18 -17
  60. package/dist/features/seo/index.d.ts +17 -35
  61. package/dist/features/seo/index.js +1 -1
  62. package/dist/features/settings/index.css +2 -2
  63. package/dist/features/settings/index.d.ts +222 -44
  64. package/dist/features/settings/index.js +16 -15
  65. package/dist/graph/index.css +2 -2
  66. package/dist/hooks/delivery/index.css +2 -2
  67. package/dist/hooks/delivery/index.d.ts +184 -3
  68. package/dist/hooks/delivery/index.js +2 -2
  69. package/dist/hooks/index.css +85 -85
  70. package/dist/hooks/index.d.ts +1862 -1582
  71. package/dist/hooks/index.js +13 -12
  72. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +92 -121
  73. package/dist/hooks/published.css +85 -85
  74. package/dist/hooks/published.d.ts +1862 -1582
  75. package/dist/hooks/published.js +13 -12
  76. package/dist/index.css +12 -12
  77. package/dist/index.d.ts +689 -470
  78. package/dist/index.js +14 -13
  79. package/dist/initialization/index.d.ts +184 -3
  80. package/dist/layout/index.js +2 -2
  81. package/dist/organization/index.css +589 -0
  82. package/dist/organization/index.js +1 -1
  83. package/dist/profile/index.d.ts +184 -3
  84. package/dist/provider/index.css +384 -0
  85. package/dist/provider/index.d.ts +68 -125
  86. package/dist/provider/index.js +11 -10
  87. package/dist/provider/published.css +463 -0
  88. package/dist/provider/published.d.ts +68 -125
  89. package/dist/provider/published.js +8 -7
  90. package/dist/supabase/index.d.ts +359 -6
  91. package/dist/test-utils/index.d.ts +46 -2
  92. package/dist/test-utils/index.js +104 -3
  93. package/dist/theme/index.js +2 -2
  94. package/dist/types/index.d.ts +303 -141
  95. package/dist/utils/index.d.ts +26 -59
  96. package/dist/utils/index.js +1 -1
  97. package/package.json +4 -4
  98. package/dist/chunk-LR5CRY5A.js +0 -514
  99. package/dist/chunk-MG3NF7QL.js +0 -63
  100. /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -4,9 +4,9 @@ import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
7
+ import { z } from 'zod';
7
8
  import { Node, Edge, NodeMouseHandler } from '@xyflow/react';
8
9
  import { IconBrain } from '@tabler/icons-react';
9
- import { z } from 'zod';
10
10
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
11
11
  import * as zustand_middleware from 'zustand/middleware';
12
12
  import * as zustand from 'zustand';
@@ -622,74 +622,6 @@ interface FormSchema {
622
622
  fields: FormField[];
623
623
  }
624
624
 
625
- /**
626
- * Command View Types
627
- *
628
- * Unified type definitions for the Command View graph visualization.
629
- * These types are used by both backend serialization and frontend rendering.
630
- *
631
- * Command View shows the resource graph: agents, workflows, triggers, integrations,
632
- * external resources, and human checkpoints with their relationships.
633
- */
634
-
635
- /**
636
- * Extended agent metadata for Command View
637
- * Includes model and capability information for graph display
638
- */
639
- interface CommandViewAgent extends ResourceDefinition {
640
- type: 'agent';
641
- modelProvider: string;
642
- modelId: string;
643
- toolCount: number;
644
- hasKnowledgeMap: boolean;
645
- hasMemory: boolean;
646
- sessionCapable: boolean;
647
- }
648
- /**
649
- * Extended workflow metadata for Command View
650
- * Includes step information for graph display
651
- */
652
- interface CommandViewWorkflow extends ResourceDefinition {
653
- type: 'workflow';
654
- stepCount: number;
655
- entryPoint: string;
656
- }
657
- /**
658
- * Relationship types between resources
659
- *
660
- * - triggers: Resource initiates/starts another resource (orange)
661
- * - uses: Resource uses an integration (teal)
662
- * - approval: Resource requires human approval (yellow)
663
- */
664
- type RelationshipType$1 = 'triggers' | 'uses' | 'approval';
665
- /**
666
- * Command View edge (relationship between resources)
667
- */
668
- interface CommandViewEdge$1 {
669
- id: string;
670
- source: string;
671
- target: string;
672
- relationship: RelationshipType$1;
673
- label?: string;
674
- }
675
- /**
676
- * Command View data structure
677
- * Complete graph data for visualization
678
- *
679
- * Backend serializes this once at startup and serves it via /command-view endpoint.
680
- * Frontend consumes this directly for graph rendering.
681
- */
682
- interface CommandViewData {
683
- workflows: CommandViewWorkflow[];
684
- agents: CommandViewAgent[];
685
- triggers: TriggerDefinition[];
686
- integrations: IntegrationDefinition[];
687
- externalResources: ExternalResourceDefinition[];
688
- humanCheckpoints: HumanCheckpointDefinition[];
689
- edges: CommandViewEdge$1[];
690
- domainDefinitions?: DomainDefinition[];
691
- }
692
-
693
625
  /**
694
626
  * Serialized Registry Types
695
627
  *
@@ -770,6 +702,8 @@ interface SerializedAgentDefinition {
770
702
  version: string;
771
703
  type: 'agent';
772
704
  status: 'dev' | 'prod';
705
+ links?: ResourceLink[];
706
+ category?: ResourceCategory;
773
707
  /** Whether this resource is archived and should be excluded from registration and deployment */
774
708
  archived?: boolean;
775
709
  systemPrompt: string;
@@ -825,6 +759,8 @@ interface SerializedWorkflowDefinition {
825
759
  version: string;
826
760
  type: 'workflow';
827
761
  status: 'dev' | 'prod';
762
+ links?: ResourceLink[];
763
+ category?: ResourceCategory;
828
764
  /** Whether this resource is archived and should be excluded from registration and deployment */
829
765
  archived?: boolean;
830
766
  };
@@ -2637,6 +2573,7 @@ type Database = {
2637
2573
  Row: {
2638
2574
  config: Json;
2639
2575
  created_at: string | null;
2576
+ effective_permissions: string[];
2640
2577
  id: string;
2641
2578
  membership_status: string | null;
2642
2579
  organization_id: string;
@@ -2648,6 +2585,7 @@ type Database = {
2648
2585
  Insert: {
2649
2586
  config?: Json;
2650
2587
  created_at?: string | null;
2588
+ effective_permissions?: string[];
2651
2589
  id?: string;
2652
2590
  membership_status?: string | null;
2653
2591
  organization_id: string;
@@ -2659,6 +2597,7 @@ type Database = {
2659
2597
  Update: {
2660
2598
  config?: Json;
2661
2599
  created_at?: string | null;
2600
+ effective_permissions?: string[];
2662
2601
  id?: string;
2663
2602
  membership_status?: string | null;
2664
2603
  organization_id?: string;
@@ -2684,6 +2623,147 @@ type Database = {
2684
2623
  }
2685
2624
  ];
2686
2625
  };
2626
+ org_rol_assignments: {
2627
+ Row: {
2628
+ granted_at: string;
2629
+ granted_by: string | null;
2630
+ membership_id: string;
2631
+ role_id: string;
2632
+ };
2633
+ Insert: {
2634
+ granted_at?: string;
2635
+ granted_by?: string | null;
2636
+ membership_id: string;
2637
+ role_id: string;
2638
+ };
2639
+ Update: {
2640
+ granted_at?: string;
2641
+ granted_by?: string | null;
2642
+ membership_id?: string;
2643
+ role_id?: string;
2644
+ };
2645
+ Relationships: [
2646
+ {
2647
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
2648
+ columns: ["granted_by"];
2649
+ isOneToOne: false;
2650
+ referencedRelation: "users";
2651
+ referencedColumns: ["id"];
2652
+ },
2653
+ {
2654
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
2655
+ columns: ["membership_id"];
2656
+ isOneToOne: false;
2657
+ referencedRelation: "org_memberships";
2658
+ referencedColumns: ["id"];
2659
+ },
2660
+ {
2661
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
2662
+ columns: ["role_id"];
2663
+ isOneToOne: false;
2664
+ referencedRelation: "org_rol_definitions";
2665
+ referencedColumns: ["id"];
2666
+ }
2667
+ ];
2668
+ };
2669
+ org_rol_definitions: {
2670
+ Row: {
2671
+ created_at: string;
2672
+ description: string | null;
2673
+ id: string;
2674
+ is_system: boolean;
2675
+ name: string;
2676
+ organization_id: string | null;
2677
+ slug: string;
2678
+ updated_at: string;
2679
+ };
2680
+ Insert: {
2681
+ created_at?: string;
2682
+ description?: string | null;
2683
+ id?: string;
2684
+ is_system?: boolean;
2685
+ name: string;
2686
+ organization_id?: string | null;
2687
+ slug: string;
2688
+ updated_at?: string;
2689
+ };
2690
+ Update: {
2691
+ created_at?: string;
2692
+ description?: string | null;
2693
+ id?: string;
2694
+ is_system?: boolean;
2695
+ name?: string;
2696
+ organization_id?: string | null;
2697
+ slug?: string;
2698
+ updated_at?: string;
2699
+ };
2700
+ Relationships: [
2701
+ {
2702
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
2703
+ columns: ["organization_id"];
2704
+ isOneToOne: false;
2705
+ referencedRelation: "organizations";
2706
+ referencedColumns: ["id"];
2707
+ }
2708
+ ];
2709
+ };
2710
+ org_rol_grants: {
2711
+ Row: {
2712
+ granted_at: string;
2713
+ permission_key: string;
2714
+ role_id: string;
2715
+ };
2716
+ Insert: {
2717
+ granted_at?: string;
2718
+ permission_key: string;
2719
+ role_id: string;
2720
+ };
2721
+ Update: {
2722
+ granted_at?: string;
2723
+ permission_key?: string;
2724
+ role_id?: string;
2725
+ };
2726
+ Relationships: [
2727
+ {
2728
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
2729
+ columns: ["permission_key"];
2730
+ isOneToOne: false;
2731
+ referencedRelation: "org_rol_permissions";
2732
+ referencedColumns: ["key"];
2733
+ },
2734
+ {
2735
+ foreignKeyName: "org_rol_grants_role_id_fkey";
2736
+ columns: ["role_id"];
2737
+ isOneToOne: false;
2738
+ referencedRelation: "org_rol_definitions";
2739
+ referencedColumns: ["id"];
2740
+ }
2741
+ ];
2742
+ };
2743
+ org_rol_permissions: {
2744
+ Row: {
2745
+ created_at: string;
2746
+ description: string;
2747
+ is_org_grantable: boolean;
2748
+ key: string;
2749
+ updated_at: string;
2750
+ };
2751
+ Insert: {
2752
+ created_at?: string;
2753
+ description: string;
2754
+ is_org_grantable?: boolean;
2755
+ key: string;
2756
+ updated_at?: string;
2757
+ };
2758
+ Update: {
2759
+ created_at?: string;
2760
+ description?: string;
2761
+ is_org_grantable?: boolean;
2762
+ key?: string;
2763
+ updated_at?: string;
2764
+ };
2765
+ Relationships: [];
2766
+ };
2687
2767
  organizations: {
2688
2768
  Row: {
2689
2769
  config: Json;
@@ -3441,7 +3521,8 @@ type Database = {
3441
3521
  created_at: string;
3442
3522
  description: string | null;
3443
3523
  id: string;
3444
- key: string;
3524
+ key_hash: string;
3525
+ key_prefix: string | null;
3445
3526
  last_triggered_at: string | null;
3446
3527
  name: string;
3447
3528
  organization_id: string;
@@ -3454,7 +3535,8 @@ type Database = {
3454
3535
  created_at?: string;
3455
3536
  description?: string | null;
3456
3537
  id?: string;
3457
- key: string;
3538
+ key_hash: string;
3539
+ key_prefix?: string | null;
3458
3540
  last_triggered_at?: string | null;
3459
3541
  name: string;
3460
3542
  organization_id: string;
@@ -3467,7 +3549,8 @@ type Database = {
3467
3549
  created_at?: string;
3468
3550
  description?: string | null;
3469
3551
  id?: string;
3470
- key?: string;
3552
+ key_hash?: string;
3553
+ key_prefix?: string | null;
3471
3554
  last_triggered_at?: string | null;
3472
3555
  name?: string;
3473
3556
  organization_id?: string;
@@ -3513,6 +3596,13 @@ type Database = {
3513
3596
  Args: never;
3514
3597
  Returns: string;
3515
3598
  };
3599
+ can_assign_role_in_org: {
3600
+ Args: {
3601
+ p_role_id: string;
3602
+ p_target_membership_id: string;
3603
+ };
3604
+ Returns: boolean;
3605
+ };
3516
3606
  current_user_is_platform_admin: {
3517
3607
  Args: never;
3518
3608
  Returns: boolean;
@@ -3542,6 +3632,10 @@ type Database = {
3542
3632
  user_id: string;
3543
3633
  }[];
3544
3634
  };
3635
+ get_platform_credential_kek: {
3636
+ Args: never;
3637
+ Returns: string;
3638
+ };
3545
3639
  get_storage_org_id: {
3546
3640
  Args: {
3547
3641
  file_path: string;
@@ -3552,6 +3646,13 @@ type Database = {
3552
3646
  Args: never;
3553
3647
  Returns: string;
3554
3648
  };
3649
+ has_org_permission: {
3650
+ Args: {
3651
+ org_id: string;
3652
+ perm_key: string;
3653
+ };
3654
+ Returns: boolean;
3655
+ };
3555
3656
  is_org_admin: {
3556
3657
  Args: {
3557
3658
  org_id: string;
@@ -3584,6 +3685,22 @@ type Database = {
3584
3685
  Args: never;
3585
3686
  Returns: Json;
3586
3687
  };
3688
+ recompute_all_memberships: {
3689
+ Args: never;
3690
+ Returns: undefined;
3691
+ };
3692
+ sync_all_memberships_with_role: {
3693
+ Args: {
3694
+ p_role_id: string;
3695
+ };
3696
+ Returns: undefined;
3697
+ };
3698
+ sync_one_membership: {
3699
+ Args: {
3700
+ p_membership_id: string;
3701
+ };
3702
+ Returns: undefined;
3703
+ };
3587
3704
  upsert_user_profile: {
3588
3705
  Args: never;
3589
3706
  Returns: {
@@ -4715,8 +4832,10 @@ interface ResourceDefinition {
4715
4832
  type: ResourceType;
4716
4833
  /** Environment/deployment status */
4717
4834
  status: ResourceStatus;
4718
- /** Domain tags for filtering and organization */
4719
- domains?: ResourceDomain[];
4835
+ /** Graph links to Organization Model nodes */
4836
+ links?: ResourceLink[];
4837
+ /** Infrastructure category for filtering */
4838
+ category?: ResourceCategory;
4720
4839
  /** Whether the agent supports multi-turn sessions (agents only) */
4721
4840
  sessionCapable?: boolean;
4722
4841
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
@@ -4724,33 +4843,6 @@ interface ResourceDefinition {
4724
4843
  /** Whether this resource is archived and should be excluded from registration and deployment */
4725
4844
  archived?: boolean;
4726
4845
  }
4727
- /**
4728
- * Domain definition for Command View filtering
4729
- *
4730
- * Domains are organizational metadata for UI filtering/grouping.
4731
- * No execution impact - purely for visualization.
4732
- *
4733
- * @example
4734
- * {
4735
- * id: 'support',
4736
- * name: 'Customer Support',
4737
- * description: 'Ticket triage, knowledge base, escalations',
4738
- * color: 'green',
4739
- * icon: 'IconHeadset'
4740
- * }
4741
- */
4742
- interface DomainDefinition {
4743
- /** Unique identifier (e.g., 'support') */
4744
- id: string;
4745
- /** Display name (e.g., 'Customer Support') */
4746
- name: string;
4747
- /** Purpose description */
4748
- description: string;
4749
- /** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
4750
- color?: string;
4751
- /** Optional Tabler icon name (e.g., 'IconHeadset') */
4752
- icon?: string;
4753
- }
4754
4846
  /** Webhook provider identifiers */
4755
4847
  type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify' | 'test';
4756
4848
  /** Webhook trigger configuration */
@@ -4787,7 +4879,7 @@ type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | EventTrigger
4787
4879
  * scheduled cron jobs, platform events, or manual user actions.
4788
4880
  *
4789
4881
  * BREAKING CHANGES (2025-11-30):
4790
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4882
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
4791
4883
  * - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
4792
4884
  * - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
4793
4885
  * - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
@@ -4832,7 +4924,7 @@ interface TriggerDefinition extends ResourceDefinition {
4832
4924
  * stored here (queried at runtime from credentials table).
4833
4925
  *
4834
4926
  * BREAKING CHANGES (2025-11-30):
4835
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4927
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
4836
4928
  * - Field renames: `id` -> `resourceId` (inherited)
4837
4929
  * - New required field: `status` (inherited) - organizations must add status to all integrations
4838
4930
  * - New required field: `version` (inherited) - organizations must add version to all integrations
@@ -4873,7 +4965,7 @@ type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other';
4873
4965
  * no API integration with external platforms, no status syncing.
4874
4966
  *
4875
4967
  * BREAKING CHANGES (2025-11-30):
4876
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
4968
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
4877
4969
  * - Field renames: `id` -> `resourceId` (inherited)
4878
4970
  * - New required field: `version` (inherited) - organizations must add version to all external resources
4879
4971
  * - New required field: `type: 'external'` (inherited) - resource type discriminator
@@ -4922,7 +5014,7 @@ interface ExternalResourceDefinition extends ResourceDefinition {
4922
5014
  * Tasks with matching command_queue_group are routed to this checkpoint.
4923
5015
  *
4924
5016
  * BREAKING CHANGES (2025-11-30):
4925
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
5017
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
4926
5018
  * - Field renames: `id` -> `resourceId` (inherited)
4927
5019
  * - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
4928
5020
  * - New required field: `version` (inherited) - organizations must add version to all human checkpoints
@@ -4960,251 +5052,87 @@ interface HumanCheckpointDefinition extends ResourceDefinition {
4960
5052
  }
4961
5053
 
4962
5054
  /**
4963
- * Standard Domain Definitions
4964
- * Centralized domain constants and definitions for all organization resources.
5055
+ * Command View Types
5056
+ *
5057
+ * Unified type definitions for the Command View graph visualization.
5058
+ * These types are used by both backend serialization and frontend rendering.
5059
+ *
5060
+ * Command View shows the resource graph: agents, workflows, triggers, integrations,
5061
+ * external resources, and human checkpoints with their relationships.
4965
5062
  */
4966
5063
 
4967
- declare const DOMAINS: {
4968
- readonly INBOUND_PIPELINE: "inbound-pipeline";
4969
- readonly LEAD_GEN_PIPELINE: "lead-gen-pipeline";
4970
- readonly SUPPORT: "support";
4971
- readonly CLIENT_SUPPORT: "client-support";
4972
- readonly DELIVERY: "delivery";
4973
- readonly OPERATIONS: "operations";
4974
- readonly FINANCE: "finance";
4975
- readonly EXECUTIVE: "executive";
4976
- readonly INSTANTLY: "instantly";
4977
- readonly TESTING: "testing";
4978
- readonly INTERNAL: "internal";
4979
- readonly INTEGRATION: "integration";
4980
- readonly UTILITY: "utility";
4981
- readonly DIAGNOSTIC: "diagnostic";
4982
- };
4983
5064
  /**
4984
- * ResourceDomain - Strongly typed domain identifier
4985
- * Use this type for all domain references to ensure compile-time validation.
5065
+ * Extended agent metadata for Command View
5066
+ * Includes model and capability information for graph display
5067
+ */
5068
+ interface CommandViewAgent extends ResourceDefinition {
5069
+ type: 'agent';
5070
+ modelProvider: string;
5071
+ modelId: string;
5072
+ toolCount: number;
5073
+ hasKnowledgeMap: boolean;
5074
+ hasMemory: boolean;
5075
+ sessionCapable: boolean;
5076
+ }
5077
+ /**
5078
+ * Extended workflow metadata for Command View
5079
+ * Includes step information for graph display
4986
5080
  */
4987
- type ResourceDomain = (typeof DOMAINS)[keyof typeof DOMAINS];
5081
+ interface CommandViewWorkflow extends ResourceDefinition {
5082
+ type: 'workflow';
5083
+ stepCount: number;
5084
+ entryPoint: string;
5085
+ }
4988
5086
  /**
4989
- * Domain lookup map for O(1) access during serialization
5087
+ * Relationship types between resources
5088
+ *
5089
+ * - triggers: Resource initiates/starts another resource (orange)
5090
+ * - uses: Resource uses an integration (teal)
5091
+ * - approval: Resource requires human approval (yellow)
4990
5092
  */
4991
- declare const DOMAIN_MAP: Record<ResourceDomain, DomainDefinition>;
4992
-
4993
- type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
4994
- interface APIExecutionSummary {
5093
+ type RelationshipType$1 = 'triggers' | 'uses' | 'approval';
5094
+ /**
5095
+ * Command View edge (relationship between resources)
5096
+ */
5097
+ interface CommandViewEdge$1 {
4995
5098
  id: string;
4996
- status: ExecutionStatus;
4997
- startTime: number;
4998
- endTime?: number;
4999
- resourceStatus?: ResourceStatus;
5099
+ source: string;
5100
+ target: string;
5101
+ relationship: RelationshipType$1;
5102
+ label?: string;
5000
5103
  }
5001
- interface APIExecutionDetail extends APIExecutionSummary {
5002
- executionLogs: ExecutionLogMessage[];
5003
- input?: unknown;
5004
- result?: unknown;
5005
- error?: string;
5006
- resourceStatus: ResourceStatus;
5007
- apiVersion?: string | null;
5008
- resourceVersion?: string | null;
5009
- sdkVersion?: string | null;
5010
- isArchived?: boolean;
5011
- archivedLogCount?: number;
5012
- }
5013
- interface APIExecutionListResponse {
5014
- executions: APIExecutionSummary[];
5015
- total?: number;
5016
- limit?: number;
5017
- offset?: number;
5018
- hasMore?: boolean;
5019
- }
5020
-
5021
5104
  /**
5022
- * @deprecated Use TimeRange from '@repo/core' directly. Kept as alias for backward compatibility.
5023
- */
5024
- type StatsTimeRange = TimeRange;
5025
- /** Stats returned by /command-view/stats (counts only, no error details) */
5026
- interface ResourceStats {
5027
- resourceId: string;
5028
- totalRuns: number;
5029
- successCount: number;
5030
- failureCount: number;
5031
- warningCount: number;
5032
- lastRunAt: string | null;
5033
- }
5034
- /** Response from /command-view/resource-errors (on-demand) */
5035
- interface ResourceErrorsResponse {
5036
- resourceId: string;
5037
- errors: ErrorSummary[];
5038
- totalErrors: number;
5039
- timeRange: StatsTimeRange;
5040
- }
5041
- interface ErrorSummary {
5042
- executionId: string;
5043
- errorType: string;
5044
- errorMessage: string;
5045
- occurredAt: string;
5046
- }
5047
- /** Single execution summary for Recent Executions list in command view */
5048
- interface CommandViewExecution {
5049
- executionId: string;
5050
- status: ExecutionStatus;
5051
- startedAt: string;
5052
- completedAt: string | null;
5053
- errorMessage: string | null;
5054
- }
5055
- /** Response from /command-view/resource-executions (on-demand) */
5056
- interface ResourceExecutionsResponse {
5057
- resourceId: string;
5058
- executions: CommandViewExecution[];
5059
- totalExecutions: number;
5060
- timeRange: StatsTimeRange;
5061
- page: number;
5062
- limit: number;
5063
- }
5064
- interface HumanCheckpointStats {
5065
- checkpointId: string;
5066
- pendingCount: number;
5067
- completedCount: number;
5068
- expiredCount: number;
5069
- lastDecisionAt: string | null;
5070
- }
5071
- /** Response from /command-view/stats */
5072
- interface CommandViewStatsResponse {
5073
- resources: Record<string, ResourceStats>;
5074
- humanCheckpoints: Record<string, HumanCheckpointStats>;
5075
- timeRange: StatsTimeRange;
5076
- generatedAt: string;
5077
- }
5078
-
5079
- /**
5080
- * Resource Type Metadata
5105
+ * Command View data structure
5106
+ * Complete graph data for visualization
5081
5107
  *
5082
- * Centralized metadata for ResourceDefinition types including icon names and colors.
5083
- * Icon names reference @tabler/icons-react - UI layer maps these to actual components.
5084
- */
5085
-
5086
- /**
5087
- * All valid resource types from ResourceDefinition
5088
- * Derived from the base interface to ensure consistency
5089
- */
5090
- type ResourceDefinitionType = ResourceDefinition['type'];
5091
- /**
5092
- * Node color types for graph visualization
5093
- * Used by both @repo/core (metadata) and @repo/ui (components)
5094
- */
5095
- type NodeColorType = 'violet' | 'blue' | 'orange' | 'teal' | 'gray' | 'yellow';
5096
- /**
5097
- * Get color for a resource type
5108
+ * Backend serializes this once at startup and serves it via /command-view endpoint.
5109
+ * Frontend consumes this directly for graph rendering.
5098
5110
  */
5099
- declare function getResourceColor(type: ResourceDefinitionType): NodeColorType;
5100
-
5101
- type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
5102
- type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
5103
- interface Activity {
5104
- id: string;
5105
- organizationId: string;
5106
- activityType: ActivityType;
5107
- status: ActivityStatus;
5108
- title: string;
5109
- description: string | null;
5110
- entityType: string;
5111
- entityId: string;
5112
- entityName: string | null;
5113
- metadata: Record<string, unknown> | null;
5114
- actorId: string | null;
5115
- actorType: string | null;
5116
- occurredAt: Date;
5117
- createdAt: Date;
5111
+ interface CommandViewData {
5112
+ workflows: CommandViewWorkflow[];
5113
+ agents: CommandViewAgent[];
5114
+ triggers: TriggerDefinition[];
5115
+ integrations: IntegrationDefinition[];
5116
+ externalResources: ExternalResourceDefinition[];
5117
+ humanCheckpoints: HumanCheckpointDefinition[];
5118
+ edges: CommandViewEdge$1[];
5118
5119
  }
5119
5120
 
5120
- /**
5121
- * Type-safe error codes
5122
- * MUST match API_ERROR_CODES in apps/api/src/errors/error-codes.ts
5123
- */
5124
- type APIErrorCode = 'VALIDATION_ERROR' | 'AUTHENTICATION_FAILED' | 'FORBIDDEN' | 'NOT_FOUND' | 'CONFLICT' | 'RATE_LIMIT_EXCEEDED' | 'INTERNAL_SERVER_ERROR' | 'SERVICE_UNAVAILABLE';
5125
-
5126
- /**
5127
- * Execution history item.
5128
- * Represents a single execution triggered by a schedule.
5129
- */
5130
- declare const ExecutionHistoryItemSchema: z.ZodObject<{
5121
+ declare const FeatureSchema: z.ZodObject<{
5131
5122
  id: z.ZodString;
5132
- createdAt: z.ZodString;
5133
- status: z.ZodEnum<{
5134
- completed: "completed";
5135
- failed: "failed";
5136
- running: "running";
5137
- cancelled: "cancelled";
5138
- }>;
5139
- step: z.ZodNullable<z.ZodNumber>;
5140
- itemLabel: z.ZodNullable<z.ZodString>;
5141
- duration: z.ZodNullable<z.ZodNumber>;
5142
- error: z.ZodNullable<z.ZodString>;
5143
- }, z.core.$strip>;
5144
- /**
5145
- * Execution history response.
5146
- * Returned by GET /schedules/:id/executions with pagination.
5147
- */
5148
- declare const ExecutionHistoryResponseSchema: z.ZodObject<{
5149
- executions: z.ZodArray<z.ZodObject<{
5150
- id: z.ZodString;
5151
- createdAt: z.ZodString;
5152
- status: z.ZodEnum<{
5153
- completed: "completed";
5154
- failed: "failed";
5155
- running: "running";
5156
- cancelled: "cancelled";
5157
- }>;
5158
- step: z.ZodNullable<z.ZodNumber>;
5159
- itemLabel: z.ZodNullable<z.ZodString>;
5160
- duration: z.ZodNullable<z.ZodNumber>;
5161
- error: z.ZodNullable<z.ZodString>;
5162
- }, z.core.$strip>>;
5163
- total: z.ZodNumber;
5164
- limit: z.ZodNumber;
5165
- offset: z.ZodNumber;
5123
+ label: z.ZodString;
5124
+ description: z.ZodOptional<z.ZodString>;
5125
+ enabled: z.ZodDefault<z.ZodBoolean>;
5126
+ path: z.ZodOptional<z.ZodString>;
5127
+ icon: z.ZodOptional<z.ZodString>;
5128
+ color: z.ZodOptional<z.ZodString>;
5129
+ uiPosition: z.ZodOptional<z.ZodEnum<{
5130
+ "sidebar-primary": "sidebar-primary";
5131
+ "sidebar-bottom": "sidebar-bottom";
5132
+ }>>;
5133
+ requiresAdmin: z.ZodOptional<z.ZodBoolean>;
5134
+ devOnly: z.ZodOptional<z.ZodBoolean>;
5166
5135
  }, z.core.$strip>;
5167
- type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
5168
- type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
5169
-
5170
- /**
5171
- * Deployment types — browser-safe
5172
- *
5173
- * Canonical API response types for the deployment resource.
5174
- * The API's transformRow converts snake_case DB columns to these camelCase fields.
5175
- */
5176
- type DeploymentStatus = 'deploying' | 'active' | 'failed' | 'rolled_back' | 'stopped';
5177
- interface Deployment {
5178
- id: string;
5179
- organizationId: string;
5180
- status: DeploymentStatus;
5181
- sdkVersion: string;
5182
- deploymentVersion: string | null;
5183
- port: number | null;
5184
- pid: number | null;
5185
- tarballPath: string | null;
5186
- errorMessage: string | null;
5187
- createdAt: string;
5188
- updatedAt: string;
5189
- }
5190
-
5191
- /**
5192
- * Time range utility functions
5193
- * Converts TimeRange enum to ISO 8601 date strings and labels
5194
- */
5195
-
5196
- /**
5197
- * Convert TimeRange to start and end ISO 8601 date strings
5198
- * @param range - Time range enum (1h, 24h, 7d, 30d)
5199
- * @returns Object with startDate and endDate as ISO 8601 strings
5200
- */
5201
- declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
5202
- /**
5203
- * Get a human-readable label for a time range
5204
- * @param range - Time range enum
5205
- * @returns Human-readable label
5206
- */
5207
- declare function getTimeRangeLabel(range: TimeRange): string;
5208
5136
 
5209
5137
  declare const OrganizationModelSchema: z.ZodObject<{
5210
5138
  version: z.ZodDefault<z.ZodLiteral<1>>;
@@ -5213,12 +5141,15 @@ declare const OrganizationModelSchema: z.ZodObject<{
5213
5141
  label: z.ZodString;
5214
5142
  description: z.ZodOptional<z.ZodString>;
5215
5143
  enabled: z.ZodDefault<z.ZodBoolean>;
5216
- color: z.ZodOptional<z.ZodString>;
5144
+ path: z.ZodOptional<z.ZodString>;
5217
5145
  icon: z.ZodOptional<z.ZodString>;
5218
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5219
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5220
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5221
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5146
+ color: z.ZodOptional<z.ZodString>;
5147
+ uiPosition: z.ZodOptional<z.ZodEnum<{
5148
+ "sidebar-primary": "sidebar-primary";
5149
+ "sidebar-bottom": "sidebar-bottom";
5150
+ }>>;
5151
+ requiresAdmin: z.ZodOptional<z.ZodBoolean>;
5152
+ devOnly: z.ZodOptional<z.ZodBoolean>;
5222
5153
  }, z.core.$strip>>>;
5223
5154
  branding: z.ZodObject<{
5224
5155
  organizationName: z.ZodString;
@@ -5230,22 +5161,23 @@ declare const OrganizationModelSchema: z.ZodObject<{
5230
5161
  dark: z.ZodOptional<z.ZodString>;
5231
5162
  }, z.core.$strip>>;
5232
5163
  }, z.core.$strip>;
5233
- navigation: z.ZodObject<{
5164
+ navigation: z.ZodDefault<z.ZodObject<{
5234
5165
  defaultSurfaceId: z.ZodOptional<z.ZodString>;
5235
5166
  surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
5236
5167
  id: z.ZodString;
5237
5168
  label: z.ZodString;
5238
5169
  path: z.ZodString;
5239
5170
  surfaceType: z.ZodEnum<{
5240
- list: "list";
5241
5171
  settings: "settings";
5242
5172
  page: "page";
5243
5173
  dashboard: "dashboard";
5244
5174
  graph: "graph";
5245
5175
  detail: "detail";
5176
+ list: "list";
5246
5177
  }>;
5247
5178
  description: z.ZodOptional<z.ZodString>;
5248
5179
  enabled: z.ZodDefault<z.ZodBoolean>;
5180
+ devOnly: z.ZodOptional<z.ZodBoolean>;
5249
5181
  icon: z.ZodOptional<z.ZodString>;
5250
5182
  featureId: z.ZodOptional<z.ZodString>;
5251
5183
  featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -5260,7 +5192,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5260
5192
  placement: z.ZodString;
5261
5193
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5262
5194
  }, z.core.$strip>>>;
5263
- }, z.core.$strip>;
5195
+ }, z.core.$strip>>;
5264
5196
  sales: z.ZodObject<{
5265
5197
  entityId: z.ZodString;
5266
5198
  defaultPipelineId: z.ZodString;
@@ -5279,9 +5211,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
5279
5211
  semanticClass: z.ZodEnum<{
5280
5212
  open: "open";
5281
5213
  active: "active";
5214
+ nurturing: "nurturing";
5282
5215
  closed_won: "closed_won";
5283
5216
  closed_lost: "closed_lost";
5284
- nurturing: "nurturing";
5285
5217
  }>;
5286
5218
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5287
5219
  resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -5442,12 +5374,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
5442
5374
  id: z.ZodString;
5443
5375
  label: z.ZodString;
5444
5376
  semanticClass: z.ZodEnum<{
5445
- execution: "execution";
5446
- schedule: "schedule";
5447
- queue: "queue";
5448
5377
  "delivery.project": "delivery.project";
5449
5378
  "delivery.milestone": "delivery.milestone";
5450
5379
  "delivery.task": "delivery.task";
5380
+ queue: "queue";
5381
+ execution: "execution";
5382
+ schedule: "schedule";
5451
5383
  "schedule.run": "schedule.run";
5452
5384
  request: "request";
5453
5385
  }>;
@@ -5459,74 +5391,302 @@ declare const OrganizationModelSchema: z.ZodObject<{
5459
5391
  id: z.ZodString;
5460
5392
  label: z.ZodString;
5461
5393
  semanticClass: z.ZodEnum<{
5394
+ queue: "queue";
5395
+ executions: "executions";
5462
5396
  sessions: "sessions";
5463
5397
  notifications: "notifications";
5464
5398
  schedules: "schedules";
5465
- executions: "executions";
5466
- queue: "queue";
5467
5399
  }>;
5468
5400
  featureId: z.ZodOptional<z.ZodString>;
5469
5401
  supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
5470
5402
  }, z.core.$strip>>>;
5471
5403
  }, z.core.$strip>>;
5472
- resourceMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
5473
- label: z.ZodString;
5474
- description: z.ZodOptional<z.ZodString>;
5475
- color: z.ZodOptional<z.ZodString>;
5476
- icon: z.ZodOptional<z.ZodString>;
5477
- id: z.ZodString;
5478
- resourceId: z.ZodString;
5479
- resourceType: z.ZodEnum<{
5480
- agent: "agent";
5481
- workflow: "workflow";
5482
- trigger: "trigger";
5483
- integration: "integration";
5484
- external: "external";
5485
- human_checkpoint: "human_checkpoint";
5486
- }>;
5487
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5488
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5489
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5490
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5491
- techStack: z.ZodOptional<z.ZodObject<{
5492
- platform: z.ZodString;
5493
- purpose: z.ZodString;
5494
- credentialStatus: z.ZodEnum<{
5495
- pending: "pending";
5496
- configured: "configured";
5497
- expired: "expired";
5498
- missing: "missing";
5499
- }>;
5500
- isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
5501
- }, z.core.$strip>>;
5502
- }, z.core.$strip>>>;
5503
5404
  }, z.core.$strip>;
5504
5405
 
5505
- declare const SurfaceDefinitionSchema: z.ZodObject<{
5406
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
5407
+ type OrganizationModelFeature = z.infer<typeof FeatureSchema>;
5408
+
5409
+ declare const LinkSchema: z.ZodObject<{
5410
+ nodeId: z.ZodString;
5411
+ kind: z.ZodEnum<{
5412
+ contains: "contains";
5413
+ references: "references";
5414
+ exposes: "exposes";
5415
+ maps_to: "maps_to";
5416
+ "operates-on": "operates-on";
5417
+ uses: "uses";
5418
+ }>;
5419
+ }, z.core.$strip>;
5420
+ type Link = z.infer<typeof LinkSchema>;
5421
+
5422
+ declare const ResourceCategorySchema: z.ZodEnum<{
5423
+ production: "production";
5424
+ diagnostic: "diagnostic";
5425
+ internal: "internal";
5426
+ testing: "testing";
5427
+ }>;
5428
+ type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
5429
+ type ResourceLink = Link;
5430
+
5431
+ type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
5432
+ interface APIExecutionSummary {
5433
+ id: string;
5434
+ status: ExecutionStatus;
5435
+ startTime: number;
5436
+ endTime?: number;
5437
+ resourceStatus?: ResourceStatus;
5438
+ }
5439
+ interface APIExecutionDetail extends APIExecutionSummary {
5440
+ executionLogs: ExecutionLogMessage[];
5441
+ input?: unknown;
5442
+ result?: unknown;
5443
+ error?: string;
5444
+ resourceStatus: ResourceStatus;
5445
+ apiVersion?: string | null;
5446
+ resourceVersion?: string | null;
5447
+ sdkVersion?: string | null;
5448
+ isArchived?: boolean;
5449
+ archivedLogCount?: number;
5450
+ }
5451
+ interface APIExecutionListResponse {
5452
+ executions: APIExecutionSummary[];
5453
+ total?: number;
5454
+ limit?: number;
5455
+ offset?: number;
5456
+ hasMore?: boolean;
5457
+ }
5458
+
5459
+ /**
5460
+ * @deprecated Use TimeRange from '@repo/core' directly. Kept as alias for backward compatibility.
5461
+ */
5462
+ type StatsTimeRange = TimeRange;
5463
+ /** Stats returned by /command-view/stats (counts only, no error details) */
5464
+ interface ResourceStats {
5465
+ resourceId: string;
5466
+ totalRuns: number;
5467
+ successCount: number;
5468
+ failureCount: number;
5469
+ warningCount: number;
5470
+ lastRunAt: string | null;
5471
+ }
5472
+ /** Response from /command-view/resource-errors (on-demand) */
5473
+ interface ResourceErrorsResponse {
5474
+ resourceId: string;
5475
+ errors: ErrorSummary[];
5476
+ totalErrors: number;
5477
+ timeRange: StatsTimeRange;
5478
+ }
5479
+ interface ErrorSummary {
5480
+ executionId: string;
5481
+ errorType: string;
5482
+ errorMessage: string;
5483
+ occurredAt: string;
5484
+ }
5485
+ /** Single execution summary for Recent Executions list in command view */
5486
+ interface CommandViewExecution {
5487
+ executionId: string;
5488
+ status: ExecutionStatus;
5489
+ startedAt: string;
5490
+ completedAt: string | null;
5491
+ errorMessage: string | null;
5492
+ }
5493
+ /** Response from /command-view/resource-executions (on-demand) */
5494
+ interface ResourceExecutionsResponse {
5495
+ resourceId: string;
5496
+ executions: CommandViewExecution[];
5497
+ totalExecutions: number;
5498
+ timeRange: StatsTimeRange;
5499
+ page: number;
5500
+ limit: number;
5501
+ }
5502
+ interface HumanCheckpointStats {
5503
+ checkpointId: string;
5504
+ pendingCount: number;
5505
+ completedCount: number;
5506
+ expiredCount: number;
5507
+ lastDecisionAt: string | null;
5508
+ }
5509
+ /** Response from /command-view/stats */
5510
+ interface CommandViewStatsResponse {
5511
+ resources: Record<string, ResourceStats>;
5512
+ humanCheckpoints: Record<string, HumanCheckpointStats>;
5513
+ timeRange: StatsTimeRange;
5514
+ generatedAt: string;
5515
+ }
5516
+
5517
+ /**
5518
+ * Resource Type Metadata
5519
+ *
5520
+ * Centralized metadata for ResourceDefinition types including icon names and colors.
5521
+ * Icon names reference @tabler/icons-react - UI layer maps these to actual components.
5522
+ */
5523
+
5524
+ /**
5525
+ * All valid resource types from ResourceDefinition
5526
+ * Derived from the base interface to ensure consistency
5527
+ */
5528
+ type ResourceDefinitionType = ResourceDefinition['type'];
5529
+ /**
5530
+ * Node color types for graph visualization
5531
+ * Used by both @repo/core (metadata) and @repo/ui (components)
5532
+ */
5533
+ type NodeColorType = 'violet' | 'blue' | 'orange' | 'teal' | 'gray' | 'yellow';
5534
+ /**
5535
+ * Get color for a resource type
5536
+ */
5537
+ declare function getResourceColor(type: ResourceDefinitionType): NodeColorType;
5538
+
5539
+ type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'credential_read' | 'api_key_change' | 'deployment_change' | 'membership_change';
5540
+ type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
5541
+ interface Activity {
5542
+ id: string;
5543
+ organizationId: string;
5544
+ activityType: ActivityType;
5545
+ status: ActivityStatus;
5546
+ title: string;
5547
+ description: string | null;
5548
+ entityType: string;
5549
+ entityId: string;
5550
+ entityName: string | null;
5551
+ metadata: Record<string, unknown> | null;
5552
+ actorId: string | null;
5553
+ actorType: string | null;
5554
+ occurredAt: Date;
5555
+ createdAt: Date;
5556
+ }
5557
+
5558
+ /**
5559
+ * Type-safe error codes
5560
+ * MUST match API_ERROR_CODES in apps/api/src/errors/error-codes.ts
5561
+ */
5562
+ type APIErrorCode = 'VALIDATION_ERROR' | 'AUTHENTICATION_FAILED' | 'FORBIDDEN' | 'NOT_FOUND' | 'CONFLICT' | 'RATE_LIMIT_EXCEEDED' | 'INTERNAL_SERVER_ERROR' | 'SERVICE_UNAVAILABLE';
5563
+
5564
+ /**
5565
+ * Canonical permission catalog.
5566
+ *
5567
+ * Source of truth for the permission keys used by:
5568
+ * - RLS policies in Supabase (via has_org_permission(org_id, key))
5569
+ * - API middleware (via requireOrganizationPermission(key))
5570
+ * - UI hooks (via useOrganizationPermissions().hasPermission(key))
5571
+ *
5572
+ * The DB table `org_rol_permissions` mirrors this constant. Reconciliation
5573
+ * runs at API boot (insert-or-update only — never auto-delete; see the
5574
+ * deletion runbook in the auth-role-system-redesign doc).
5575
+ *
5576
+ * Adding a permission:
5577
+ * 1. Add an entry below.
5578
+ * 2. Add a row to the migration / via reconcilePermissionCatalog at boot.
5579
+ * 3. Reference it in RLS / middleware as needed.
5580
+ * 4. Optionally grant it to one or more system roles in org_rol_grants.
5581
+ *
5582
+ * Removing a permission: follow the deletion runbook — never just delete
5583
+ * the entry. Existing role grants and policy references must be cleared first.
5584
+ */
5585
+ declare const PERMISSIONS: {
5586
+ readonly ORG_READ: "org.read";
5587
+ readonly ORG_MANAGE: "org.manage";
5588
+ readonly ORG_DELETE: "org.delete";
5589
+ readonly MEMBERS_MANAGE: "members.manage";
5590
+ readonly ROLES_MANAGE: "roles.manage";
5591
+ readonly SECRETS_MANAGE: "secrets.manage";
5592
+ readonly OPERATIONS_READ: "operations.read";
5593
+ readonly OPERATIONS_MANAGE: "operations.manage";
5594
+ readonly WORK_MANAGE: "work.manage";
5595
+ };
5596
+ type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
5597
+ /**
5598
+ * Static metadata for each permission. Mirrored into org_rol_permissions on
5599
+ * boot reconciliation. is_org_grantable=false means the permission is reserved
5600
+ * to system roles only — custom roles cannot include it (privilege-escalation guard).
5601
+ */
5602
+ interface PermissionDescriptor {
5603
+ key: PermissionKey;
5604
+ description: string;
5605
+ isOrgGrantable: boolean;
5606
+ }
5607
+
5608
+ /**
5609
+ * Execution history item.
5610
+ * Represents a single execution triggered by a schedule.
5611
+ */
5612
+ declare const ExecutionHistoryItemSchema: z.ZodObject<{
5506
5613
  id: z.ZodString;
5507
- label: z.ZodString;
5508
- path: z.ZodString;
5509
- surfaceType: z.ZodEnum<{
5510
- list: "list";
5511
- settings: "settings";
5512
- page: "page";
5513
- dashboard: "dashboard";
5514
- graph: "graph";
5515
- detail: "detail";
5614
+ createdAt: z.ZodString;
5615
+ status: z.ZodEnum<{
5616
+ completed: "completed";
5617
+ cancelled: "cancelled";
5618
+ failed: "failed";
5619
+ running: "running";
5516
5620
  }>;
5517
- description: z.ZodOptional<z.ZodString>;
5518
- enabled: z.ZodDefault<z.ZodBoolean>;
5519
- icon: z.ZodOptional<z.ZodString>;
5520
- featureId: z.ZodOptional<z.ZodString>;
5521
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5522
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5523
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5524
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5525
- parentId: z.ZodOptional<z.ZodString>;
5621
+ step: z.ZodNullable<z.ZodNumber>;
5622
+ itemLabel: z.ZodNullable<z.ZodString>;
5623
+ duration: z.ZodNullable<z.ZodNumber>;
5624
+ error: z.ZodNullable<z.ZodString>;
5625
+ }, z.core.$strip>;
5626
+ /**
5627
+ * Execution history response.
5628
+ * Returned by GET /schedules/:id/executions with pagination.
5629
+ */
5630
+ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
5631
+ executions: z.ZodArray<z.ZodObject<{
5632
+ id: z.ZodString;
5633
+ createdAt: z.ZodString;
5634
+ status: z.ZodEnum<{
5635
+ completed: "completed";
5636
+ cancelled: "cancelled";
5637
+ failed: "failed";
5638
+ running: "running";
5639
+ }>;
5640
+ step: z.ZodNullable<z.ZodNumber>;
5641
+ itemLabel: z.ZodNullable<z.ZodString>;
5642
+ duration: z.ZodNullable<z.ZodNumber>;
5643
+ error: z.ZodNullable<z.ZodString>;
5644
+ }, z.core.$strip>>;
5645
+ total: z.ZodNumber;
5646
+ limit: z.ZodNumber;
5647
+ offset: z.ZodNumber;
5526
5648
  }, z.core.$strip>;
5649
+ type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
5650
+ type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
5527
5651
 
5528
- type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
5529
- type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>;
5652
+ /**
5653
+ * Deployment types — browser-safe
5654
+ *
5655
+ * Canonical API response types for the deployment resource.
5656
+ * The API's transformRow converts snake_case DB columns to these camelCase fields.
5657
+ */
5658
+ type DeploymentStatus = 'deploying' | 'active' | 'failed' | 'rolled_back' | 'stopped';
5659
+ interface Deployment {
5660
+ id: string;
5661
+ organizationId: string;
5662
+ status: DeploymentStatus;
5663
+ sdkVersion: string;
5664
+ deploymentVersion: string | null;
5665
+ port: number | null;
5666
+ pid: number | null;
5667
+ tarballPath: string | null;
5668
+ errorMessage: string | null;
5669
+ createdAt: string;
5670
+ updatedAt: string;
5671
+ }
5672
+
5673
+ /**
5674
+ * Time range utility functions
5675
+ * Converts TimeRange enum to ISO 8601 date strings and labels
5676
+ */
5677
+
5678
+ /**
5679
+ * Convert TimeRange to start and end ISO 8601 date strings
5680
+ * @param range - Time range enum (1h, 24h, 7d, 30d)
5681
+ * @returns Object with startDate and endDate as ISO 8601 strings
5682
+ */
5683
+ declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
5684
+ /**
5685
+ * Get a human-readable label for a time range
5686
+ * @param range - Time range enum
5687
+ * @returns Human-readable label
5688
+ */
5689
+ declare function getTimeRangeLabel(range: TimeRange): string;
5530
5690
 
5531
5691
  /**
5532
5692
  * GET /api/credentials - List credentials
@@ -6414,46 +6574,28 @@ interface SSEConnectionManagerLike {
6414
6574
  }>;
6415
6575
  }
6416
6576
 
6417
- interface FeatureNavLink {
6418
- label: string;
6419
- link: string;
6420
- featureKey?: string;
6421
- onClick?: () => void;
6422
- links?: FeatureNavLink[];
6423
- }
6424
- interface FeatureNavEntry {
6425
- label: string;
6426
- icon: ComponentType;
6427
- link?: string;
6428
- featureKey?: string;
6429
- requiresAdmin?: boolean;
6430
- dataOnboardingTourId?: string;
6431
- links?: FeatureNavLink[];
6432
- }
6433
6577
  type FeatureSidebarComponent = ComponentType;
6578
+ type FeatureIconComponent = ComponentType<{
6579
+ size?: number;
6580
+ stroke?: number;
6581
+ }>;
6582
+ type FeatureSidebarWidthResolver = number | ((context: {
6583
+ currentPath: string;
6584
+ }) => number);
6434
6585
  interface FeatureModule {
6435
- /** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
6586
+ /** Unique stable identifier for this feature module. */
6436
6587
  key: string;
6437
- /** Feature ID used for access-flag gating — must match the `id` of a feature in the organization model. */
6588
+ /** Organization Model feature id this module presents. */
6438
6589
  featureId: string;
6439
- /**
6440
- * Capability identifiers contributed by this feature.
6441
- * Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
6442
- * Not queried at runtime — kept for semantic graph completeness so that
6443
- * capability membership is fully represented in the resolved model even when
6444
- * a surface does not declare it directly.
6445
- */
6590
+ /** Capability identifiers contributed by this feature module. */
6446
6591
  capabilityIds?: string[];
6447
- /** Top-level navigation entry rendered in the app shell when this feature is enabled. */
6448
- navEntry?: FeatureNavEntry;
6449
- /** Sidebar component rendered when a matching subshell route is active. */
6592
+ /** Icon used when this feature node appears in shell navigation. */
6593
+ icon?: FeatureIconComponent;
6594
+ /** Sidebar component rendered when this feature's subtree route is active. */
6450
6595
  sidebar?: FeatureSidebarComponent;
6451
- /** Route path prefixes that activate this feature's sidebar and subshell context. */
6452
- subshellRoutes?: string[];
6453
- /**
6454
- * Operations-only bridge surface connecting this feature to the organization graph.
6455
- * Ignored by all other features. Only one manifest in the registry should set this.
6456
- */
6596
+ /** Optional shell sidebar width override. Defaults to 250px. */
6597
+ sidebarWidth?: FeatureSidebarWidthResolver;
6598
+ /** Operations-only bridge connecting this feature to the organization graph node. */
6457
6599
  organizationGraph?: OrganizationGraphFeatureBridge;
6458
6600
  }
6459
6601
  interface ResolvedFeatureAccess {
@@ -6462,52 +6604,47 @@ interface ResolvedFeatureAccess {
6462
6604
  }
6463
6605
  interface ResolvedFeatureSemantics {
6464
6606
  capabilityIds: string[];
6465
- surfaceIds: string[];
6466
- surfaces: OrganizationModelSurface[];
6467
6607
  }
6468
6608
  interface ResolvedFeatureModule extends FeatureModule {
6469
6609
  access: ResolvedFeatureAccess;
6470
6610
  semantics: ResolvedFeatureSemantics;
6471
6611
  }
6472
- type ShellNavPlacement = 'primary' | 'bottom';
6473
- type ShellNavSource = 'app' | 'feature';
6474
- interface ResolvedShellNavItem extends FeatureNavEntry {
6475
- placement: ShellNavPlacement;
6476
- source: ShellNavSource;
6477
- featureId?: string;
6612
+ interface ResolvedShellFeature extends OrganizationModelFeature {
6613
+ iconComponent?: FeatureIconComponent;
6478
6614
  }
6479
6615
  interface ResolvedShellModel {
6480
- navItems: ResolvedShellNavItem[];
6481
- }
6482
- interface AppShellOverrides {
6483
- primaryNavItems?: FeatureNavEntry[];
6484
- bottomNavItems?: FeatureNavEntry[];
6616
+ features: readonly ResolvedShellFeature[];
6617
+ findByPath: (path: string) => ResolvedShellFeature | undefined;
6618
+ findById: (id: string) => ResolvedShellFeature | undefined;
6619
+ childrenOf: (id: string) => ResolvedShellFeature[];
6620
+ ancestorsOf: (id: string) => ResolvedShellFeature[];
6621
+ parentOf: (id: string) => ResolvedShellFeature | undefined;
6622
+ topLevel: () => ResolvedShellFeature[];
6623
+ uiPositionFor: (id: string) => OrganizationModelFeature['uiPosition'] | undefined;
6624
+ requiresAdminFor: (id: string) => boolean;
6625
+ devOnlyFor: (id: string) => boolean;
6485
6626
  }
6486
6627
  type ShellRouteMatchStatus = 'matched' | 'hidden' | 'unmatched';
6487
6628
  interface ResolvedShellRouteMatch {
6488
6629
  status: ShellRouteMatchStatus;
6489
6630
  path: string;
6490
6631
  feature?: ResolvedFeatureModule;
6491
- navItem?: ResolvedShellNavItem;
6492
- navLink?: FeatureNavLink;
6632
+ node?: ResolvedShellFeature;
6493
6633
  }
6494
6634
  interface ShellRuntime {
6495
6635
  resolveRoute: (path: string) => ResolvedShellRouteMatch;
6496
6636
  }
6497
6637
  interface OrganizationGraphFeatureBridge {
6498
- surfaceId: string;
6638
+ featureId: string;
6499
6639
  }
6500
6640
  interface OrganizationGraphContextValue {
6501
6641
  available: boolean;
6502
- surfaceId?: string;
6503
- surfacePath?: string;
6504
- surfaceType?: OrganizationModelSurface['surfaceType'];
6505
6642
  featureId?: string;
6643
+ featurePath?: string;
6506
6644
  }
6507
6645
  interface ElevasisFeaturesProviderProps {
6508
6646
  features: FeatureModule[];
6509
6647
  organizationModel?: OrganizationModel;
6510
- appShellOverrides?: AppShellOverrides;
6511
6648
  timeRange?: TimeRange;
6512
6649
  operationsApiUrl?: string;
6513
6650
  operationsSSEManager?: SSEConnectionManagerLike;
@@ -6535,7 +6672,7 @@ interface ElevasisFeaturesContextValue {
6535
6672
 
6536
6673
  declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
6537
6674
  declare function useOptionalElevasisFeatures(): ElevasisFeaturesContextValue | null;
6538
- declare function ElevasisFeaturesProvider({ features, organizationModel, appShellOverrides, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
6675
+ declare function ElevasisFeaturesProvider({ features, organizationModel, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
6539
6676
 
6540
6677
  declare function FeatureShell({ children }: {
6541
6678
  children: ReactNode;
@@ -6611,6 +6748,14 @@ declare function createTestFeaturesProvider({ organizationModel, features }?: Cr
6611
6748
  children: ReactNode;
6612
6749
  }) => react_jsx_runtime.JSX.Element;
6613
6750
 
6751
+ declare function useOrganizationPermissions(): {
6752
+ hasPermission: (key: PermissionKey | string) => boolean;
6753
+ permissions: string[];
6754
+ isPlatformAdmin: boolean;
6755
+ isReady: boolean;
6756
+ };
6757
+ declare function useHasPermission(key: PermissionKey | string): boolean;
6758
+
6614
6759
  /**
6615
6760
  * Query key factory for executions TanStack Query hooks.
6616
6761
  * Uses organization UUID (not name) for cache isolation.
@@ -6916,7 +7061,7 @@ declare function useGetExecutionHistory(scheduleId: string | undefined, options?
6916
7061
  executions: {
6917
7062
  id: string;
6918
7063
  createdAt: string;
6919
- status: "completed" | "failed" | "running" | "cancelled";
7064
+ status: "completed" | "cancelled" | "failed" | "running";
6920
7065
  step: number | null;
6921
7066
  itemLabel: string | null;
6922
7067
  duration: number | null;
@@ -7722,10 +7867,6 @@ declare function createFeatureAccessHook({ useInitialization, useOrganization }:
7722
7867
  checkFeature: (featureKey: string) => FeatureAccessResult;
7723
7868
  isReady: boolean;
7724
7869
  };
7725
- /**
7726
- * @deprecated Use `createFeatureAccessHook` instead. This alias will be removed in a future release.
7727
- */
7728
- declare const createUseFeatureAccess: typeof createFeatureAccessHook;
7729
7870
 
7730
7871
  interface UseSSEConnectionOptions {
7731
7872
  manager: SSEConnectionManagerLike;
@@ -7971,8 +8112,8 @@ declare const RequestSourceEnum: z.ZodEnum<{
7971
8112
  cli: "cli";
7972
8113
  }>;
7973
8114
  declare const RequestTypeEnum: z.ZodEnum<{
7974
- other: "other";
7975
8115
  feature: "feature";
8116
+ other: "other";
7976
8117
  bug: "bug";
7977
8118
  question: "question";
7978
8119
  }>;
@@ -8174,6 +8315,8 @@ interface UseCommandViewStatsOptions {
8174
8315
  */
8175
8316
  declare function useCommandViewStats(timeRange?: StatsTimeRange, options?: UseCommandViewStatsOptions): _tanstack_react_query.UseQueryResult<CommandViewStatsResponse, Error>;
8176
8317
 
8318
+ type CommandViewVisualizationMode = 'cluster' | 'swimlane' | 'focus' | 'network' | 'spatial';
8319
+
8177
8320
  /**
8178
8321
  * Command View Types
8179
8322
  *
@@ -8295,15 +8438,28 @@ interface CommandViewStore {
8295
8438
  setShowIntegrations: (v: boolean) => void;
8296
8439
  fitViewOnFilter: boolean;
8297
8440
  setFitViewOnFilter: (v: boolean) => void;
8441
+ visualizationMode: CommandViewVisualizationMode;
8442
+ setVisualizationMode: (v: CommandViewVisualizationMode) => void;
8298
8443
  selectedNodeId: string | null;
8299
8444
  setSelectedNodeId: (id: string | null) => void;
8445
+ resourcesHidden: boolean;
8446
+ setResourcesHidden: (v: boolean) => void;
8447
+ diagnosticsHidden: boolean;
8448
+ setDiagnosticsHidden: (v: boolean) => void;
8449
+ diagnosticCategories: string[];
8450
+ revealedIds: Set<string>;
8451
+ setRevealedIds: (ids: Iterable<string>) => void;
8452
+ clearRevealedIds: () => void;
8453
+ hasVisibilityInteraction: boolean;
8454
+ markVisibilityInteraction: () => void;
8455
+ resetVisibilityInteraction: () => void;
8300
8456
  }
8301
8457
  /**
8302
8458
  * Shared store for Command View filter/settings state.
8303
8459
  * Allows CommandViewPage (graph) and CommandViewSidebarContent (sidebar) to share state.
8304
8460
  *
8305
- * Persisted to localStorage: showIntegrations, fitViewOnFilter
8306
- * Not persisted (reset on reload): statusFilter, selectedNodeId
8461
+ * Persisted to localStorage: showIntegrations, fitViewOnFilter, resource/diagnostic visibility preferences.
8462
+ * Not persisted (reset on reload): statusFilter, selectedNodeId, revealedIds, CTA interaction state.
8307
8463
  */
8308
8464
  declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<CommandViewStore>, "setState" | "persist"> & {
8309
8465
  setState(partial: CommandViewStore | Partial<CommandViewStore> | ((state: CommandViewStore) => CommandViewStore | Partial<CommandViewStore>), replace?: false | undefined): unknown;
@@ -8312,6 +8468,9 @@ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<C
8312
8468
  setOptions: (options: Partial<zustand_middleware.PersistOptions<CommandViewStore, {
8313
8469
  showIntegrations: boolean;
8314
8470
  fitViewOnFilter: boolean;
8471
+ visualizationMode: CommandViewVisualizationMode;
8472
+ resourcesHidden: boolean;
8473
+ diagnosticsHidden: boolean;
8315
8474
  }, unknown>>) => void;
8316
8475
  clearStorage: () => void;
8317
8476
  rehydrate: () => Promise<void> | void;
@@ -8321,6 +8480,9 @@ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<C
8321
8480
  getOptions: () => Partial<zustand_middleware.PersistOptions<CommandViewStore, {
8322
8481
  showIntegrations: boolean;
8323
8482
  fitViewOnFilter: boolean;
8483
+ visualizationMode: CommandViewVisualizationMode;
8484
+ resourcesHidden: boolean;
8485
+ diagnosticsHidden: boolean;
8324
8486
  }, unknown>>;
8325
8487
  };
8326
8488
  }>;
@@ -9598,10 +9760,56 @@ declare function useReactivateMembership(): _tanstack_react_query.UseMutationRes
9598
9760
  previousData: unknown;
9599
9761
  }>;
9600
9762
 
9763
+ type OrgRolDefinitionRow = Database['public']['Tables']['org_rol_definitions']['Row'];
9764
+ type OrgRole = OrgRolDefinitionRow & {
9765
+ grants?: string[];
9766
+ memberCount?: number;
9767
+ };
9768
+ type CreateOrgRoleInput = {
9769
+ name: string;
9770
+ slug: string;
9771
+ description?: string;
9772
+ permissionKeys: string[];
9773
+ };
9774
+ type UpdateOrgRoleInput = Partial<CreateOrgRoleInput>;
9775
+ type AssignRoleInput = {
9776
+ membershipId: string;
9777
+ roleId: string;
9778
+ };
9779
+ type RevokeRoleInput = {
9780
+ membershipId: string;
9781
+ roleId: string;
9782
+ };
9783
+
9784
+ declare function useOrgRoles(orgId?: string): _tanstack_react_query.UseQueryResult<{
9785
+ roles: OrgRole[];
9786
+ }, Error>;
9787
+
9788
+ declare function usePermissionCatalog(): _tanstack_react_query.UseQueryResult<{
9789
+ permissions: PermissionDescriptor[];
9790
+ }, Error>;
9791
+
9792
+ declare function useCreateOrgRole(): _tanstack_react_query.UseMutationResult<OrgRole, Error, CreateOrgRoleInput, unknown>;
9793
+
9794
+ interface UpdateOrgRoleParams {
9795
+ roleId: string;
9796
+ input: UpdateOrgRoleInput;
9797
+ }
9798
+ declare function useUpdateOrgRole(): _tanstack_react_query.UseMutationResult<OrgRole, Error, UpdateOrgRoleParams, unknown>;
9799
+
9800
+ declare function useDeleteOrgRole(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
9801
+
9802
+ declare function useAssignRole(): _tanstack_react_query.UseMutationResult<void, Error, AssignRoleInput, unknown>;
9803
+ declare function useRevokeRole(): _tanstack_react_query.UseMutationResult<void, Error, RevokeRoleInput, unknown>;
9804
+
9805
+ declare function useEffectivePermissions(membershipId: string | undefined): _tanstack_react_query.UseQueryResult<{
9806
+ permissions: string[];
9807
+ }, Error>;
9808
+
9601
9809
  declare function useListWebhookEndpoints(): _tanstack_react_query.UseQueryResult<{
9602
9810
  id: string;
9603
9811
  organizationId: string;
9604
- key: string;
9812
+ keyPrefix: string | null;
9605
9813
  name: string;
9606
9814
  description: string | null;
9607
9815
  resourceId: string | null;
@@ -9610,12 +9818,13 @@ declare function useListWebhookEndpoints(): _tanstack_react_query.UseQueryResult
9610
9818
  requestCount: number;
9611
9819
  createdAt: string;
9612
9820
  updatedAt: string;
9821
+ key?: string | undefined;
9613
9822
  }[], Error>;
9614
9823
 
9615
9824
  declare function useCreateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
9616
9825
  id: string;
9617
9826
  organizationId: string;
9618
- key: string;
9827
+ keyPrefix: string | null;
9619
9828
  name: string;
9620
9829
  description: string | null;
9621
9830
  resourceId: string | null;
@@ -9624,6 +9833,7 @@ declare function useCreateWebhookEndpoint(): _tanstack_react_query.UseMutationRe
9624
9833
  requestCount: number;
9625
9834
  createdAt: string;
9626
9835
  updatedAt: string;
9836
+ key?: string | undefined;
9627
9837
  }, Error, {
9628
9838
  name: string;
9629
9839
  resourceId?: string | undefined;
@@ -9665,7 +9875,8 @@ type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestS
9665
9875
  declare const WebhookEndpointResponseSchema: z.ZodObject<{
9666
9876
  id: z.ZodString;
9667
9877
  organizationId: z.ZodString;
9668
- key: z.ZodString;
9878
+ key: z.ZodOptional<z.ZodString>;
9879
+ keyPrefix: z.ZodNullable<z.ZodString>;
9669
9880
  name: z.ZodString;
9670
9881
  description: z.ZodNullable<z.ZodString>;
9671
9882
  resourceId: z.ZodNullable<z.ZodString>;
@@ -9683,7 +9894,7 @@ type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>;
9683
9894
  declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
9684
9895
  id: string;
9685
9896
  organizationId: string;
9686
- key: string;
9897
+ keyPrefix: string | null;
9687
9898
  name: string;
9688
9899
  description: string | null;
9689
9900
  resourceId: string | null;
@@ -9692,6 +9903,7 @@ declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationRe
9692
9903
  requestCount: number;
9693
9904
  createdAt: string;
9694
9905
  updatedAt: string;
9906
+ key?: string | undefined;
9695
9907
  }, Error, {
9696
9908
  endpointId: string;
9697
9909
  data: UpdateWebhookEndpointRequest;
@@ -9747,6 +9959,10 @@ declare function useVisibleResources(): {
9747
9959
  };
9748
9960
 
9749
9961
  type DomainFilterState = 'neutral' | 'include' | 'exclude';
9962
+ type ResourceFilterFacet = {
9963
+ id: string;
9964
+ label: string;
9965
+ };
9750
9966
  interface DomainFiltersStore {
9751
9967
  filters: Record<string, DomainFilterState>;
9752
9968
  cycle: (domainId: string) => void;
@@ -9778,6 +9994,9 @@ declare const useCommandViewDomainFilters: zustand.UseBoundStore<Omit<zustand.St
9778
9994
  getOptions: () => Partial<zustand_middleware.PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
9779
9995
  };
9780
9996
  }>;
9997
+ declare function getResourceFilterFacetIds(resource: ResourceDefinition): string[];
9998
+ declare function labelResourceFilterFacet(id: string): string;
9999
+ declare function collectResourceFilterFacets(items: ResourceDefinition[]): ResourceFilterFacet[];
9781
10000
  declare function filterByDomainFilters(items: ResourceDefinition[], filters: Record<string, DomainFilterState>): ResourceDefinition[];
9782
10001
 
9783
10002
  /**
@@ -10705,5 +10924,5 @@ declare function InitializationProvider({ children }: {
10705
10924
  children: ReactNode;
10706
10925
  }): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
10707
10926
 
10708
- export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DOMAIN_MAP, 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, ResourceStatusColors, 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, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, 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, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, 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, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
10709
- 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, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, 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, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellModel, ResolvedShellNavItem, ResolvedShellRouteMatch, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellNavPlacement, ShellNavSource, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
10927
+ 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, ResourceStatusColors, 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, collectResourceFilterFacets, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceFilterFacetIds, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, labelResourceFilterFacet, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAssignRole, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDirectedChainHighlighting, useEffectivePermissions, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useHasPermission, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrgRoles, useOrganization, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, usePresetsContext, useProfile, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, 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, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
10928
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AssignRoleInput, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus, FailingResource, FeatureAccessResult, FeatureIconComponent, FeatureModule, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrgRole, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellFeature, ResolvedShellModel, ResolvedShellRouteMatch, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };