@elevasis/ui 2.29.0 → 2.31.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 (125) hide show
  1. package/dist/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-KSEGSB67.js} +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.d.ts +176 -1
  4. package/dist/app/index.js +11 -11
  5. package/dist/auth/context.js +1 -1
  6. package/dist/auth/index.js +5 -5
  7. package/dist/charts/index.d.ts +2 -1
  8. package/dist/charts/index.js +9 -9
  9. package/dist/{chunk-XTVZFT7U.js → chunk-2Q2JQSQO.js} +1 -1
  10. package/dist/{chunk-LH4GPYDX.js → chunk-3BAPR3KA.js} +19 -3
  11. package/dist/{chunk-HLFFKKT3.js → chunk-3FV6HBXS.js} +17 -17
  12. package/dist/{chunk-WKJ47GIW.js → chunk-533DUEQY.js} +1 -1
  13. package/dist/{chunk-SZWXQHKO.js → chunk-542WPQU2.js} +9 -8
  14. package/dist/{chunk-5CW2HXQA.js → chunk-5LJAEZMA.js} +7 -28
  15. package/dist/{chunk-V3HUIZJX.js → chunk-6IXOKUBC.js} +1 -1
  16. package/dist/{chunk-VKMNWHTL.js → chunk-6YT4IKJ7.js} +3 -3
  17. package/dist/{chunk-CEHUFNAL.js → chunk-7HMCB26R.js} +12 -12
  18. package/dist/chunk-7KC4P3AU.js +357 -0
  19. package/dist/{chunk-OWESKPTJ.js → chunk-CQZ3DNQY.js} +30 -11
  20. package/dist/{chunk-ROSMICXG.js → chunk-CXY7FMUM.js} +35 -20
  21. package/dist/{chunk-I2KLQ2HA.js → chunk-DZTG5IAC.js} +7 -1
  22. package/dist/{chunk-JCGD4GM6.js → chunk-GRDLB6LM.js} +1 -0
  23. package/dist/{chunk-FGDUK74A.js → chunk-HQGF4ATG.js} +10 -56
  24. package/dist/{chunk-HOIT677G.js → chunk-HUJCU55S.js} +1 -1
  25. package/dist/{chunk-OIMPGKDB.js → chunk-HYNYEBHM.js} +4 -4
  26. package/dist/{chunk-GESXCQWY.js → chunk-JA5ECJJB.js} +1 -1
  27. package/dist/{chunk-KU7ZDWQ7.js → chunk-JBWJ6WHZ.js} +1 -1
  28. package/dist/{chunk-HNFQCOD2.js → chunk-JKSUN5GN.js} +1107 -370
  29. package/dist/{chunk-5WWZXCS5.js → chunk-KJ3QUBNU.js} +9 -2
  30. package/dist/{chunk-OHGNCWJP.js → chunk-L2NVFLXU.js} +3 -3
  31. package/dist/{chunk-6WXDE5LZ.js → chunk-L3BVJWML.js} +1 -1
  32. package/dist/{chunk-3DUOPXOJ.js → chunk-MVFCLZSK.js} +691 -222
  33. package/dist/{chunk-A7R2URMV.js → chunk-ND42LPY4.js} +44 -10
  34. package/dist/{chunk-CLUP5H3C.js → chunk-O2QOPJI5.js} +360 -126
  35. package/dist/{chunk-VMJVQAFZ.js → chunk-OAVTMITG.js} +1 -1
  36. package/dist/{chunk-X2SUMO3P.js → chunk-P55BJZZW.js} +2 -1
  37. package/dist/{chunk-QNL7UI5G.js → chunk-Q6OYNEGR.js} +6 -6
  38. package/dist/{chunk-Y3YJKKEB.js → chunk-QDEETKYT.js} +5 -2
  39. package/dist/{chunk-XBMCDGHA.js → chunk-QHEWXU7I.js} +1 -1
  40. package/dist/chunk-R2XR4FCV.js +48 -0
  41. package/dist/chunk-R66W5UDG.js +26 -0
  42. package/dist/{chunk-65RQE3XF.js → chunk-SHQXMW4F.js} +1051 -380
  43. package/dist/{chunk-AK5E6ILJ.js → chunk-T3IPHEYJ.js} +1893 -305
  44. package/dist/{chunk-7E3FUTND.js → chunk-TOIXUWR6.js} +1 -1
  45. package/dist/{chunk-FFDAE2QI.js → chunk-TVRQ6AQI.js} +172 -26
  46. package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
  47. package/dist/{chunk-WFTNY755.js → chunk-VKIZUUPM.js} +1 -1
  48. package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
  49. package/dist/{chunk-S66IQSSR.js → chunk-WF227UBV.js} +1 -1
  50. package/dist/{chunk-6NHCE7JM.js → chunk-Y4FWCG7Y.js} +159 -314
  51. package/dist/components/chat/index.d.ts +2 -1
  52. package/dist/components/chat/index.js +2 -2
  53. package/dist/components/index.d.ts +205 -11
  54. package/dist/components/index.js +51 -48
  55. package/dist/components/navigation/index.js +9 -9
  56. package/dist/execution/index.d.ts +2 -1
  57. package/dist/execution/index.js +1 -1
  58. package/dist/features/auth/index.d.ts +121 -0
  59. package/dist/features/auth/index.js +6 -6
  60. package/dist/features/clients/index.css +611 -0
  61. package/dist/features/clients/index.d.ts +86 -0
  62. package/dist/features/clients/index.js +719 -0
  63. package/dist/features/crm/index.d.ts +148 -2
  64. package/dist/features/crm/index.js +27 -25
  65. package/dist/features/dashboard/index.d.ts +36 -1
  66. package/dist/features/dashboard/index.js +23 -23
  67. package/dist/features/delivery/index.d.ts +121 -0
  68. package/dist/features/delivery/index.js +27 -25
  69. package/dist/features/knowledge/index.js +52 -29
  70. package/dist/features/lead-gen/index.d.ts +116 -12
  71. package/dist/features/lead-gen/index.js +28 -26
  72. package/dist/features/monitoring/index.js +26 -25
  73. package/dist/features/monitoring/requests/index.js +23 -22
  74. package/dist/features/operations/index.d.ts +38 -2
  75. package/dist/features/operations/index.js +32 -31
  76. package/dist/features/seo/index.js +1 -1
  77. package/dist/features/settings/index.d.ts +121 -0
  78. package/dist/features/settings/index.js +25 -24
  79. package/dist/graph/index.js +1 -1
  80. package/dist/hooks/delivery/index.d.ts +140 -0
  81. package/dist/hooks/delivery/index.js +4 -4
  82. package/dist/hooks/index.d.ts +844 -21
  83. package/dist/hooks/index.js +21 -21
  84. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +82 -1
  85. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
  86. package/dist/hooks/published.d.ts +844 -21
  87. package/dist/hooks/published.js +21 -21
  88. package/dist/index.d.ts +1056 -27
  89. package/dist/index.js +22 -22
  90. package/dist/initialization/index.d.ts +121 -0
  91. package/dist/initialization/index.js +5 -5
  92. package/dist/knowledge/index.d.ts +151 -1
  93. package/dist/knowledge/index.js +1692 -1039
  94. package/dist/layout/index.d.ts +6 -0
  95. package/dist/layout/index.js +4 -4
  96. package/dist/organization/index.js +5 -5
  97. package/dist/profile/index.d.ts +121 -0
  98. package/dist/profile/index.js +3 -3
  99. package/dist/provider/ElevasisServiceContext.d.ts +11 -5
  100. package/dist/provider/ElevasisServiceContext.js +2 -2
  101. package/dist/provider/index.d.ts +337 -7
  102. package/dist/provider/index.js +18 -18
  103. package/dist/provider/published.d.ts +337 -7
  104. package/dist/provider/published.js +14 -14
  105. package/dist/router/context.js +1 -1
  106. package/dist/router/index.js +1 -1
  107. package/dist/sse/index.js +1 -1
  108. package/dist/supabase/index.d.ts +232 -0
  109. package/dist/supabase/index.js +1 -1
  110. package/dist/test-utils/index.d.ts +3 -0
  111. package/dist/test-utils/index.js +31 -7
  112. package/dist/test-utils/setup-integration.js +1 -1
  113. package/dist/test-utils/setup.js +2 -2
  114. package/dist/theme/index.js +4 -4
  115. package/dist/theme/presets/index.js +2 -2
  116. package/dist/typeform/index.js +1 -1
  117. package/dist/typeform/schemas.js +1 -1
  118. package/dist/types/index.d.ts +204 -1
  119. package/dist/utils/index.d.ts +36 -1
  120. package/dist/utils/index.js +2 -2
  121. package/dist/vite/index.js +3 -3
  122. package/dist/vite-plugin-knowledge/index.js +2 -2
  123. package/dist/zustand/index.js +1 -1
  124. package/package.json +14 -5
  125. /package/dist/{chunk-HXZQWMKE.js → chunk-XQHZBA65.js} +0 -0
@@ -226,6 +226,7 @@ interface SerializedAgentDefinition {
226
226
  description: string;
227
227
  version: string;
228
228
  type: 'agent';
229
+ kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
229
230
  status: 'dev' | 'prod';
230
231
  links?: ResourceLink[];
231
232
  category?: ResourceCategory;
@@ -311,6 +312,55 @@ interface SerializedWorkflowDefinition {
311
312
  metricsConfig?: object;
312
313
  }
313
314
 
315
+ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
316
+ active: "active";
317
+ deprecated: "deprecated";
318
+ archived: "archived";
319
+ }>;
320
+ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
321
+ id: z.ZodString;
322
+ systemId: z.ZodString;
323
+ ownerRoleId: z.ZodOptional<z.ZodString>;
324
+ status: z.ZodEnum<{
325
+ active: "active";
326
+ deprecated: "deprecated";
327
+ archived: "archived";
328
+ }>;
329
+ kind: z.ZodLiteral<"workflow">;
330
+ capabilityKey: z.ZodOptional<z.ZodString>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ id: z.ZodString;
333
+ systemId: z.ZodString;
334
+ ownerRoleId: z.ZodOptional<z.ZodString>;
335
+ status: z.ZodEnum<{
336
+ active: "active";
337
+ deprecated: "deprecated";
338
+ archived: "archived";
339
+ }>;
340
+ kind: z.ZodLiteral<"agent">;
341
+ agentKind: z.ZodEnum<{
342
+ orchestrator: "orchestrator";
343
+ specialist: "specialist";
344
+ utility: "utility";
345
+ system: "system";
346
+ }>;
347
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
348
+ sessionCapable: z.ZodBoolean;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ id: z.ZodString;
351
+ systemId: z.ZodString;
352
+ ownerRoleId: z.ZodOptional<z.ZodString>;
353
+ status: z.ZodEnum<{
354
+ active: "active";
355
+ deprecated: "deprecated";
356
+ archived: "archived";
357
+ }>;
358
+ kind: z.ZodLiteral<"integration">;
359
+ provider: z.ZodString;
360
+ }, z.core.$strip>], "kind">;
361
+ type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
362
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
363
+
314
364
  /**
315
365
  * Shared form field types for dynamic form generation
316
366
  * Used by: Command Queue, Execution Runner UI, future form-based features
@@ -463,6 +513,7 @@ type Database = {
463
513
  batch_id: string | null;
464
514
  category: string | null;
465
515
  category_pain: string | null;
516
+ client_id: string | null;
466
517
  created_at: string;
467
518
  domain: string | null;
468
519
  enrichment_data: Json | null;
@@ -489,6 +540,7 @@ type Database = {
489
540
  batch_id?: string | null;
490
541
  category?: string | null;
491
542
  category_pain?: string | null;
543
+ client_id?: string | null;
492
544
  created_at?: string;
493
545
  domain?: string | null;
494
546
  enrichment_data?: Json | null;
@@ -515,6 +567,7 @@ type Database = {
515
567
  batch_id?: string | null;
516
568
  category?: string | null;
517
569
  category_pain?: string | null;
570
+ client_id?: string | null;
518
571
  created_at?: string;
519
572
  domain?: string | null;
520
573
  enrichment_data?: Json | null;
@@ -538,6 +591,13 @@ type Database = {
538
591
  website?: string | null;
539
592
  };
540
593
  Relationships: [
594
+ {
595
+ foreignKeyName: "acq_companies_client_id_fkey";
596
+ columns: ["client_id"];
597
+ isOneToOne: false;
598
+ referencedRelation: "clients";
599
+ referencedColumns: ["id"];
600
+ },
541
601
  {
542
602
  foreignKeyName: "acq_companies_organization_id_fkey";
543
603
  columns: ["organization_id"];
@@ -552,6 +612,7 @@ type Database = {
552
612
  batch_id: string | null;
553
613
  brochure_first_viewed_at: string | null;
554
614
  brochure_view_count: number;
615
+ client_id: string | null;
555
616
  company_id: string | null;
556
617
  created_at: string;
557
618
  email: string;
@@ -580,6 +641,7 @@ type Database = {
580
641
  batch_id?: string | null;
581
642
  brochure_first_viewed_at?: string | null;
582
643
  brochure_view_count?: number;
644
+ client_id?: string | null;
583
645
  company_id?: string | null;
584
646
  created_at?: string;
585
647
  email: string;
@@ -608,6 +670,7 @@ type Database = {
608
670
  batch_id?: string | null;
609
671
  brochure_first_viewed_at?: string | null;
610
672
  brochure_view_count?: number;
673
+ client_id?: string | null;
611
674
  company_id?: string | null;
612
675
  created_at?: string;
613
676
  email?: string;
@@ -633,6 +696,13 @@ type Database = {
633
696
  updated_at?: string;
634
697
  };
635
698
  Relationships: [
699
+ {
700
+ foreignKeyName: "acq_contacts_client_id_fkey";
701
+ columns: ["client_id"];
702
+ isOneToOne: false;
703
+ referencedRelation: "clients";
704
+ referencedColumns: ["id"];
705
+ },
636
706
  {
637
707
  foreignKeyName: "acq_contacts_company_id_fkey";
638
708
  columns: ["company_id"];
@@ -876,8 +946,10 @@ type Database = {
876
946
  acq_deals: {
877
947
  Row: {
878
948
  activity_log: Json;
949
+ client_id: string | null;
879
950
  closed_lost_at: string | null;
880
951
  closed_lost_reason: string | null;
952
+ company_id: string | null;
881
953
  contact_email: string;
882
954
  contact_id: string | null;
883
955
  created_at: string;
@@ -913,8 +985,10 @@ type Database = {
913
985
  };
914
986
  Insert: {
915
987
  activity_log?: Json;
988
+ client_id?: string | null;
916
989
  closed_lost_at?: string | null;
917
990
  closed_lost_reason?: string | null;
991
+ company_id?: string | null;
918
992
  contact_email: string;
919
993
  contact_id?: string | null;
920
994
  created_at?: string;
@@ -950,8 +1024,10 @@ type Database = {
950
1024
  };
951
1025
  Update: {
952
1026
  activity_log?: Json;
1027
+ client_id?: string | null;
953
1028
  closed_lost_at?: string | null;
954
1029
  closed_lost_reason?: string | null;
1030
+ company_id?: string | null;
955
1031
  contact_email?: string;
956
1032
  contact_id?: string | null;
957
1033
  created_at?: string;
@@ -986,6 +1062,20 @@ type Database = {
986
1062
  updated_at?: string;
987
1063
  };
988
1064
  Relationships: [
1065
+ {
1066
+ foreignKeyName: "acq_deals_client_id_fkey";
1067
+ columns: ["client_id"];
1068
+ isOneToOne: false;
1069
+ referencedRelation: "clients";
1070
+ referencedColumns: ["id"];
1071
+ },
1072
+ {
1073
+ foreignKeyName: "acq_deals_company_id_fkey";
1074
+ columns: ["company_id"];
1075
+ isOneToOne: false;
1076
+ referencedRelation: "acq_companies";
1077
+ referencedColumns: ["id"];
1078
+ },
989
1079
  {
990
1080
  foreignKeyName: "acq_deals_contact_id_fkey";
991
1081
  columns: ["contact_id"];
@@ -1603,6 +1693,77 @@ type Database = {
1603
1693
  }
1604
1694
  ];
1605
1695
  };
1696
+ clients: {
1697
+ Row: {
1698
+ converted_at: string | null;
1699
+ created_at: string;
1700
+ id: string;
1701
+ metadata: Json;
1702
+ name: string;
1703
+ organization_id: string;
1704
+ primary_company_id: string | null;
1705
+ primary_contact_id: string | null;
1706
+ source_deal_id: string | null;
1707
+ status: string;
1708
+ updated_at: string;
1709
+ };
1710
+ Insert: {
1711
+ converted_at?: string | null;
1712
+ created_at?: string;
1713
+ id?: string;
1714
+ metadata?: Json;
1715
+ name: string;
1716
+ organization_id: string;
1717
+ primary_company_id?: string | null;
1718
+ primary_contact_id?: string | null;
1719
+ source_deal_id?: string | null;
1720
+ status?: string;
1721
+ updated_at?: string;
1722
+ };
1723
+ Update: {
1724
+ converted_at?: string | null;
1725
+ created_at?: string;
1726
+ id?: string;
1727
+ metadata?: Json;
1728
+ name?: string;
1729
+ organization_id?: string;
1730
+ primary_company_id?: string | null;
1731
+ primary_contact_id?: string | null;
1732
+ source_deal_id?: string | null;
1733
+ status?: string;
1734
+ updated_at?: string;
1735
+ };
1736
+ Relationships: [
1737
+ {
1738
+ foreignKeyName: "clients_organization_id_fkey";
1739
+ columns: ["organization_id"];
1740
+ isOneToOne: false;
1741
+ referencedRelation: "organizations";
1742
+ referencedColumns: ["id"];
1743
+ },
1744
+ {
1745
+ foreignKeyName: "clients_primary_company_id_fkey";
1746
+ columns: ["primary_company_id"];
1747
+ isOneToOne: false;
1748
+ referencedRelation: "acq_companies";
1749
+ referencedColumns: ["id"];
1750
+ },
1751
+ {
1752
+ foreignKeyName: "clients_primary_contact_id_fkey";
1753
+ columns: ["primary_contact_id"];
1754
+ isOneToOne: false;
1755
+ referencedRelation: "acq_contacts";
1756
+ referencedColumns: ["id"];
1757
+ },
1758
+ {
1759
+ foreignKeyName: "clients_source_deal_id_fkey";
1760
+ columns: ["source_deal_id"];
1761
+ isOneToOne: false;
1762
+ referencedRelation: "acq_deals";
1763
+ referencedColumns: ["id"];
1764
+ }
1765
+ ];
1766
+ };
1606
1767
  command_queue: {
1607
1768
  Row: {
1608
1769
  action_payload: Json | null;
@@ -2572,6 +2733,7 @@ type Database = {
2572
2733
  Row: {
2573
2734
  actual_end_date: string | null;
2574
2735
  client_company_id: string | null;
2736
+ client_id: string | null;
2575
2737
  contract_value: number | null;
2576
2738
  created_at: string;
2577
2739
  deal_id: string | null;
@@ -2589,6 +2751,7 @@ type Database = {
2589
2751
  Insert: {
2590
2752
  actual_end_date?: string | null;
2591
2753
  client_company_id?: string | null;
2754
+ client_id?: string | null;
2592
2755
  contract_value?: number | null;
2593
2756
  created_at?: string;
2594
2757
  deal_id?: string | null;
@@ -2606,6 +2769,7 @@ type Database = {
2606
2769
  Update: {
2607
2770
  actual_end_date?: string | null;
2608
2771
  client_company_id?: string | null;
2772
+ client_id?: string | null;
2609
2773
  contract_value?: number | null;
2610
2774
  created_at?: string;
2611
2775
  deal_id?: string | null;
@@ -2642,6 +2806,13 @@ type Database = {
2642
2806
  referencedRelation: "acq_companies";
2643
2807
  referencedColumns: ["id"];
2644
2808
  },
2809
+ {
2810
+ foreignKeyName: "prj_projects_client_id_fkey";
2811
+ columns: ["client_id"];
2812
+ isOneToOne: false;
2813
+ referencedRelation: "clients";
2814
+ referencedColumns: ["id"];
2815
+ },
2645
2816
  {
2646
2817
  foreignKeyName: "prj_projects_deal_id_fkey";
2647
2818
  columns: ["deal_id"];
@@ -3335,6 +3506,7 @@ declare const TransitionItemRequestSchema: z.ZodObject<{
3335
3506
  declare const DealDetailResponseSchema: z.ZodObject<{
3336
3507
  id: z.ZodString;
3337
3508
  organization_id: z.ZodString;
3509
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3338
3510
  contact_id: z.ZodNullable<z.ZodString>;
3339
3511
  contact_email: z.ZodString;
3340
3512
  pipeline_key: z.ZodString;
@@ -3419,6 +3591,25 @@ declare const DealDetailResponseSchema: z.ZodObject<{
3419
3591
  sentAt: z.ZodNullable<z.ZodString>;
3420
3592
  }, z.core.$strip>>;
3421
3593
  }, z.core.$strip>;
3594
+ lineage: z.ZodOptional<z.ZodObject<{
3595
+ list: z.ZodNullable<z.ZodObject<{
3596
+ id: z.ZodString;
3597
+ name: z.ZodString;
3598
+ status: z.ZodString;
3599
+ }, z.core.$strip>>;
3600
+ projects: z.ZodArray<z.ZodObject<{
3601
+ id: z.ZodString;
3602
+ name: z.ZodString;
3603
+ kind: z.ZodString;
3604
+ status: z.ZodString;
3605
+ updatedAt: z.ZodString;
3606
+ }, z.core.$strip>>;
3607
+ client: z.ZodNullable<z.ZodObject<{
3608
+ id: z.ZodString;
3609
+ name: z.ZodString;
3610
+ status: z.ZodString;
3611
+ }, z.core.$strip>>;
3612
+ }, z.core.$strip>>;
3422
3613
  }, z.core.$strip>;
3423
3614
  type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
3424
3615
  type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
@@ -3428,10 +3619,10 @@ type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
3428
3619
  */
3429
3620
  declare const ListStatusSchema: z.ZodEnum<{
3430
3621
  closing: "closing";
3622
+ archived: "archived";
3431
3623
  draft: "draft";
3432
3624
  enriching: "enriching";
3433
3625
  launched: "launched";
3434
- archived: "archived";
3435
3626
  }>;
3436
3627
  declare const ListCompaniesQuerySchema: z.ZodObject<{
3437
3628
  search: z.ZodOptional<z.ZodString>;
@@ -3465,6 +3656,7 @@ declare const ListContactsQuerySchema: z.ZodObject<{
3465
3656
  declare const AcqCompanyResponseSchema: z.ZodObject<{
3466
3657
  id: z.ZodString;
3467
3658
  organizationId: z.ZodString;
3659
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3468
3660
  name: z.ZodString;
3469
3661
  domain: z.ZodNullable<z.ZodString>;
3470
3662
  linkedinUrl: z.ZodNullable<z.ZodString>;
@@ -3501,6 +3693,7 @@ declare const AcqCompanyResponseSchema: z.ZodObject<{
3501
3693
  declare const AcqContactResponseSchema: z.ZodObject<{
3502
3694
  id: z.ZodString;
3503
3695
  organizationId: z.ZodString;
3696
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3504
3697
  companyId: z.ZodNullable<z.ZodString>;
3505
3698
  email: z.ZodString;
3506
3699
  emailValid: z.ZodNullable<z.ZodEnum<{
@@ -3558,11 +3751,16 @@ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
3558
3751
  deal: "deal";
3559
3752
  list_member: "list_member";
3560
3753
  }>;
3754
+ declare const ListRecordEntitySchema: z.ZodEnum<{
3755
+ company: "company";
3756
+ contact: "contact";
3757
+ }>;
3561
3758
  type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3562
3759
  type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3563
3760
  type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3564
3761
  type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3565
3762
  type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
3763
+ type ListRecordEntity = z.infer<typeof ListRecordEntitySchema>;
3566
3764
  type ListStatus = z.infer<typeof ListStatusSchema>;
3567
3765
 
3568
3766
  /** Raw database row type for acq_deals table */
@@ -3975,6 +4173,22 @@ interface ProjectDetail extends ProjectRow {
3975
4173
  name: string;
3976
4174
  domain: string | null;
3977
4175
  } | null;
4176
+ deal: ProjectSourceDealRef | null;
4177
+ client: ProjectClientRef | null;
4178
+ }
4179
+ interface ProjectSourceDealRef {
4180
+ id: string;
4181
+ clientId?: string | null;
4182
+ contactEmail: string;
4183
+ stageKey: string | null;
4184
+ stateKey: string | null;
4185
+ sourceListId: string | null;
4186
+ updatedAt: string;
4187
+ }
4188
+ interface ProjectClientRef {
4189
+ id: string;
4190
+ name: string;
4191
+ status: string;
3978
4192
  }
3979
4193
 
3980
4194
  interface Action {
@@ -4495,6 +4709,27 @@ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefini
4495
4709
  */
4496
4710
  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';
4497
4711
 
4712
+ declare const SystemEntrySchema: z.ZodObject<{
4713
+ id: z.ZodString;
4714
+ title: z.ZodString;
4715
+ description: z.ZodString;
4716
+ kind: z.ZodEnum<{
4717
+ platform: "platform";
4718
+ product: "product";
4719
+ operational: "operational";
4720
+ diagnostic: "diagnostic";
4721
+ }>;
4722
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
4723
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
4724
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
4725
+ status: z.ZodEnum<{
4726
+ active: "active";
4727
+ deprecated: "deprecated";
4728
+ archived: "archived";
4729
+ }>;
4730
+ }, z.core.$strip>;
4731
+ type SystemEntry = z.infer<typeof SystemEntrySchema>;
4732
+
4498
4733
  /**
4499
4734
  * Resource Registry type definitions
4500
4735
  */
@@ -4508,6 +4743,7 @@ type ResourceStatus = 'dev' | 'prod';
4508
4743
  * Used as the discriminator field in ResourceDefinition
4509
4744
  */
4510
4745
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
4746
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'status'>;
4511
4747
  /**
4512
4748
  * Base interface for ALL platform resources
4513
4749
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -4533,6 +4769,12 @@ interface ResourceDefinition {
4533
4769
  sessionCapable?: boolean;
4534
4770
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
4535
4771
  origin?: 'local' | 'remote';
4772
+ /** OM System membership, when backed by a Resource descriptor */
4773
+ systemId?: string;
4774
+ /** Display metadata for the owning OM System */
4775
+ system?: ResourceSystemSummary;
4776
+ /** Governance lifecycle status from the OM Resource descriptor */
4777
+ governanceStatus?: ResourceGovernanceStatus;
4536
4778
  /** Whether this resource is archived and should be excluded from registration and deployment */
4537
4779
  archived?: boolean;
4538
4780
  }
@@ -4638,6 +4880,10 @@ interface TriggerDefinition extends ResourceDefinition {
4638
4880
  interface IntegrationDefinition extends ResourceDefinition {
4639
4881
  /** Resource type discriminator (narrowed from base union) */
4640
4882
  type: 'integration';
4883
+ /** OM descriptor that owns canonical identity and governance metadata. */
4884
+ resource?: Extract<ResourceEntry, {
4885
+ kind: 'integration';
4886
+ }>;
4641
4887
  /** Integration provider type */
4642
4888
  provider: IntegrationType;
4643
4889
  /** References credentials table (e.g., 'shopify-prod', 'zendesk-api') */
@@ -4826,8 +5072,8 @@ declare const LinkSchema: z.ZodObject<{
4826
5072
  type Link = z.infer<typeof LinkSchema>;
4827
5073
 
4828
5074
  declare const ResourceCategorySchema: z.ZodEnum<{
4829
- production: "production";
4830
5075
  diagnostic: "diagnostic";
5076
+ production: "production";
4831
5077
  internal: "internal";
4832
5078
  testing: "testing";
4833
5079
  }>;
@@ -4998,13 +5244,18 @@ interface Activity {
4998
5244
  * - API middleware (via requireOrganizationPermission(key))
4999
5245
  * - UI hooks (via useOrganizationPermissions().hasPermission(key))
5000
5246
  *
5001
- * The DB table `org_rol_permissions` mirrors this constant. Reconciliation
5002
- * runs at API boot (insert-or-update only — never auto-delete; see the
5003
- * deletion runbook in the auth-role-system doc -- review/auth-role-system/).
5247
+ * The DB table `org_rol_permissions` mirrors this constant. There is no
5248
+ * runtime reconciler; parity is enforced two ways:
5249
+ * 1. Each migration that adds/removes/modifies a permission must INSERT
5250
+ * (or UPDATE / DELETE) the corresponding `org_rol_permissions` row in
5251
+ * the same transaction.
5252
+ * 2. `apps/api/src/auth/multi-tenancy/__tests__/permissions-catalog-sync.integration.test.ts`
5253
+ * asserts the TS catalog and the DB rows agree; CI fails on drift.
5004
5254
  *
5005
5255
  * Adding a permission:
5006
5256
  * 1. Add an entry below.
5007
- * 2. Add a row to the migration / via reconcilePermissionCatalog at boot.
5257
+ * 2. Add a row to the migration (INSERT INTO org_rol_permissions ...) in
5258
+ * the same transaction as any policies/grants that reference the key.
5008
5259
  * 3. Reference it in RLS / middleware as needed.
5009
5260
  * 4. Optionally grant it to one or more system roles in org_rol_grants.
5010
5261
  *
@@ -5022,12 +5273,14 @@ declare const PERMISSIONS: {
5022
5273
  readonly OPERATIONS_MANAGE: "operations.manage";
5023
5274
  readonly ACQUISITION_MANAGE: "acquisition.manage";
5024
5275
  readonly PROJECTS_MANAGE: "projects.manage";
5276
+ readonly CLIENTS_MANAGE: "clients.manage";
5025
5277
  };
5026
5278
  type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
5027
5279
  /**
5028
- * Static metadata for each permission. Mirrored into org_rol_permissions on
5029
- * boot reconciliation. is_org_grantable=false means the permission is reserved
5030
- * to system roles only custom roles cannot include it (privilege-escalation guard).
5280
+ * Static metadata for each permission. Mirrored into org_rol_permissions by
5281
+ * a migration `INSERT` in the same transaction as any change to this catalog.
5282
+ * is_org_grantable=false means the permission is reserved to system roles
5283
+ * only — custom roles cannot include it (privilege-escalation guard).
5031
5284
  */
5032
5285
  interface PermissionDescriptor {
5033
5286
  key: PermissionKey;
@@ -5100,6 +5353,131 @@ interface Deployment {
5100
5353
  updatedAt: string;
5101
5354
  }
5102
5355
 
5356
+ declare const ClientStatusSchema: z.ZodEnum<{
5357
+ active: "active";
5358
+ paused: "paused";
5359
+ completed: "completed";
5360
+ onboarding: "onboarding";
5361
+ churned: "churned";
5362
+ }>;
5363
+ declare const ClientResponseSchema: z.ZodObject<{
5364
+ id: z.ZodString;
5365
+ organizationId: z.ZodString;
5366
+ name: z.ZodString;
5367
+ status: z.ZodEnum<{
5368
+ active: "active";
5369
+ paused: "paused";
5370
+ completed: "completed";
5371
+ onboarding: "onboarding";
5372
+ churned: "churned";
5373
+ }>;
5374
+ sourceDealId: z.ZodNullable<z.ZodString>;
5375
+ primaryCompanyId: z.ZodNullable<z.ZodString>;
5376
+ primaryContactId: z.ZodNullable<z.ZodString>;
5377
+ convertedAt: z.ZodNullable<z.ZodString>;
5378
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5379
+ createdAt: z.ZodString;
5380
+ updatedAt: z.ZodString;
5381
+ }, z.core.$strip>;
5382
+ declare const ClientDetailResponseSchema: z.ZodObject<{
5383
+ id: z.ZodString;
5384
+ organizationId: z.ZodString;
5385
+ name: z.ZodString;
5386
+ status: z.ZodEnum<{
5387
+ active: "active";
5388
+ paused: "paused";
5389
+ completed: "completed";
5390
+ onboarding: "onboarding";
5391
+ churned: "churned";
5392
+ }>;
5393
+ sourceDealId: z.ZodNullable<z.ZodString>;
5394
+ primaryCompanyId: z.ZodNullable<z.ZodString>;
5395
+ primaryContactId: z.ZodNullable<z.ZodString>;
5396
+ convertedAt: z.ZodNullable<z.ZodString>;
5397
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5398
+ createdAt: z.ZodString;
5399
+ updatedAt: z.ZodString;
5400
+ lineage: z.ZodObject<{
5401
+ deals: z.ZodArray<z.ZodObject<{
5402
+ id: z.ZodString;
5403
+ contactEmail: z.ZodString;
5404
+ stageKey: z.ZodNullable<z.ZodString>;
5405
+ stateKey: z.ZodNullable<z.ZodString>;
5406
+ updatedAt: z.ZodString;
5407
+ }, z.core.$strip>>;
5408
+ projects: z.ZodArray<z.ZodObject<{
5409
+ id: z.ZodString;
5410
+ name: z.ZodString;
5411
+ kind: z.ZodString;
5412
+ status: z.ZodString;
5413
+ updatedAt: z.ZodString;
5414
+ }, z.core.$strip>>;
5415
+ companies: z.ZodArray<z.ZodObject<{
5416
+ id: z.ZodString;
5417
+ name: z.ZodString;
5418
+ domain: z.ZodNullable<z.ZodString>;
5419
+ status: z.ZodString;
5420
+ }, z.core.$strip>>;
5421
+ contacts: z.ZodArray<z.ZodObject<{
5422
+ id: z.ZodString;
5423
+ email: z.ZodString;
5424
+ firstName: z.ZodNullable<z.ZodString>;
5425
+ lastName: z.ZodNullable<z.ZodString>;
5426
+ title: z.ZodNullable<z.ZodString>;
5427
+ companyId: z.ZodNullable<z.ZodString>;
5428
+ status: z.ZodString;
5429
+ }, z.core.$strip>>;
5430
+ }, z.core.$strip>;
5431
+ }, z.core.$strip>;
5432
+ declare const ClientStatusResponseSchema: z.ZodObject<{
5433
+ totalClients: z.ZodNumber;
5434
+ byStatus: z.ZodRecord<z.ZodEnum<{
5435
+ active: "active";
5436
+ paused: "paused";
5437
+ completed: "completed";
5438
+ onboarding: "onboarding";
5439
+ churned: "churned";
5440
+ }>, z.ZodNumber>;
5441
+ linkedDeals: z.ZodNumber;
5442
+ linkedProjects: z.ZodNumber;
5443
+ linkedCompanies: z.ZodNumber;
5444
+ linkedContacts: z.ZodNumber;
5445
+ }, z.core.$strip>;
5446
+ declare const CreateClientRequestSchema: z.ZodObject<{
5447
+ name: z.ZodString;
5448
+ status: z.ZodOptional<z.ZodEnum<{
5449
+ active: "active";
5450
+ paused: "paused";
5451
+ completed: "completed";
5452
+ onboarding: "onboarding";
5453
+ churned: "churned";
5454
+ }>>;
5455
+ sourceDealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5456
+ primaryCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5457
+ primaryContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5458
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5459
+ }, z.core.$strict>;
5460
+ declare const UpdateClientRequestSchema: z.ZodObject<{
5461
+ name: z.ZodOptional<z.ZodString>;
5462
+ status: z.ZodOptional<z.ZodEnum<{
5463
+ active: "active";
5464
+ paused: "paused";
5465
+ completed: "completed";
5466
+ onboarding: "onboarding";
5467
+ churned: "churned";
5468
+ }>>;
5469
+ sourceDealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5470
+ primaryCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5471
+ primaryContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5472
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5473
+ }, z.core.$strict>;
5474
+ type ClientStatus = z.infer<typeof ClientStatusSchema>;
5475
+ type ClientResponse = z.infer<typeof ClientResponseSchema>;
5476
+ type ClientDetailResponse = z.infer<typeof ClientDetailResponseSchema>;
5477
+ type ClientStatusResponse = z.infer<typeof ClientStatusResponseSchema>;
5478
+ type CreateClientRequest = z.infer<typeof CreateClientRequestSchema>;
5479
+ type UpdateClientRequest = z.infer<typeof UpdateClientRequestSchema>;
5480
+
5103
5481
  /**
5104
5482
  * GET /api/credentials - List credentials
5105
5483
  */
@@ -5148,6 +5526,14 @@ declare const executionsKeys: {
5148
5526
  */
5149
5527
  declare function useExecutions(resourceId: string, resourceStatus?: ResourceStatus | 'all', limit?: number, offset?: number): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
5150
5528
 
5529
+ interface UseInFlightExecutionsOptions {
5530
+ enabled?: boolean;
5531
+ refetchInterval?: number | false;
5532
+ limit?: number;
5533
+ offset?: number;
5534
+ }
5535
+ declare function useInFlightExecutions(resourceId: string, options?: UseInFlightExecutionsOptions): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
5536
+
5151
5537
  /**
5152
5538
  * Fetch a single execution detail.
5153
5539
  * Automatically polls every 2 seconds while the execution status is 'running'.
@@ -6595,6 +6981,136 @@ declare function useUpdateRequestStatus(): _tanstack_react_query.UseMutationResu
6595
6981
 
6596
6982
  declare function useDeleteRequest(): _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
6597
6983
 
6984
+ interface ClientsListFilters {
6985
+ status?: ClientStatus;
6986
+ search?: string;
6987
+ limit?: number;
6988
+ offset?: number;
6989
+ }
6990
+ declare const clientsKeys: {
6991
+ all: readonly ["clients"];
6992
+ lists: () => readonly ["clients", "list"];
6993
+ list: (organizationId: string | null | undefined, filters: ClientsListFilters) => readonly ["clients", "list", string | null | undefined, ClientsListFilters];
6994
+ statuses: () => readonly ["clients", "status"];
6995
+ status: (organizationId: string | null | undefined) => readonly ["clients", "status", string | null | undefined];
6996
+ details: () => readonly ["clients", "detail"];
6997
+ detail: (organizationId: string | null | undefined, id: string | undefined) => readonly ["clients", "detail", string | null | undefined, string | undefined];
6998
+ };
6999
+
7000
+ declare function useClients(filters?: ClientsListFilters): _tanstack_react_query.UseQueryResult<{
7001
+ data: {
7002
+ id: string;
7003
+ organizationId: string;
7004
+ name: string;
7005
+ status: "active" | "paused" | "completed" | "onboarding" | "churned";
7006
+ sourceDealId: string | null;
7007
+ primaryCompanyId: string | null;
7008
+ primaryContactId: string | null;
7009
+ convertedAt: string | null;
7010
+ metadata: Record<string, unknown>;
7011
+ createdAt: string;
7012
+ updatedAt: string;
7013
+ }[];
7014
+ total: number;
7015
+ limit: number;
7016
+ offset: number;
7017
+ }, Error>;
7018
+
7019
+ declare function useClientStatus(): _tanstack_react_query.UseQueryResult<{
7020
+ totalClients: number;
7021
+ byStatus: Record<"active" | "paused" | "completed" | "onboarding" | "churned", number>;
7022
+ linkedDeals: number;
7023
+ linkedProjects: number;
7024
+ linkedCompanies: number;
7025
+ linkedContacts: number;
7026
+ }, Error>;
7027
+
7028
+ declare function useClient(clientId: string | undefined): _tanstack_react_query.UseQueryResult<{
7029
+ id: string;
7030
+ organizationId: string;
7031
+ name: string;
7032
+ status: "active" | "paused" | "completed" | "onboarding" | "churned";
7033
+ sourceDealId: string | null;
7034
+ primaryCompanyId: string | null;
7035
+ primaryContactId: string | null;
7036
+ convertedAt: string | null;
7037
+ metadata: Record<string, unknown>;
7038
+ createdAt: string;
7039
+ updatedAt: string;
7040
+ lineage: {
7041
+ deals: {
7042
+ id: string;
7043
+ contactEmail: string;
7044
+ stageKey: string | null;
7045
+ stateKey: string | null;
7046
+ updatedAt: string;
7047
+ }[];
7048
+ projects: {
7049
+ id: string;
7050
+ name: string;
7051
+ kind: string;
7052
+ status: string;
7053
+ updatedAt: string;
7054
+ }[];
7055
+ companies: {
7056
+ id: string;
7057
+ name: string;
7058
+ domain: string | null;
7059
+ status: string;
7060
+ }[];
7061
+ contacts: {
7062
+ id: string;
7063
+ email: string;
7064
+ firstName: string | null;
7065
+ lastName: string | null;
7066
+ title: string | null;
7067
+ companyId: string | null;
7068
+ status: string;
7069
+ }[];
7070
+ };
7071
+ }, Error>;
7072
+
7073
+ declare function useCreateClient(): _tanstack_react_query.UseMutationResult<{
7074
+ id: string;
7075
+ organizationId: string;
7076
+ name: string;
7077
+ status: "active" | "paused" | "completed" | "onboarding" | "churned";
7078
+ sourceDealId: string | null;
7079
+ primaryCompanyId: string | null;
7080
+ primaryContactId: string | null;
7081
+ convertedAt: string | null;
7082
+ metadata: Record<string, unknown>;
7083
+ createdAt: string;
7084
+ updatedAt: string;
7085
+ }, Error, {
7086
+ name: string;
7087
+ status?: "active" | "paused" | "completed" | "onboarding" | "churned" | undefined;
7088
+ sourceDealId?: string | null | undefined;
7089
+ primaryCompanyId?: string | null | undefined;
7090
+ primaryContactId?: string | null | undefined;
7091
+ metadata?: Record<string, unknown> | null | undefined;
7092
+ }, unknown>;
7093
+
7094
+ interface UpdateClientParams {
7095
+ clientId: string;
7096
+ updates: UpdateClientRequest;
7097
+ }
7098
+ declare function useUpdateClient(): _tanstack_react_query.UseMutationResult<{
7099
+ id: string;
7100
+ organizationId: string;
7101
+ name: string;
7102
+ status: "active" | "paused" | "completed" | "onboarding" | "churned";
7103
+ sourceDealId: string | null;
7104
+ primaryCompanyId: string | null;
7105
+ primaryContactId: string | null;
7106
+ convertedAt: string | null;
7107
+ metadata: Record<string, unknown>;
7108
+ createdAt: string;
7109
+ updatedAt: string;
7110
+ }, Error, UpdateClientParams, unknown>;
7111
+
7112
+ declare function useDeleteClient(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
7113
+
6598
7114
  /**
6599
7115
  * Query key factories for Operations TanStack Query hooks.
6600
7116
  *
@@ -6700,7 +7216,7 @@ interface UseCommandViewStatsOptions {
6700
7216
  */
6701
7217
  declare function useCommandViewStats(timeRange?: StatsTimeRange, options?: UseCommandViewStatsOptions): _tanstack_react_query.UseQueryResult<CommandViewStatsResponse, Error>;
6702
7218
 
6703
- type CommandViewVisualizationMode = 'cluster' | 'swimlane' | 'focus' | 'network' | 'spatial';
7219
+ type CommandViewVisualizationMode = 'cluster' | 'swimlane' | 'focus' | 'network' | 'force' | 'explore';
6704
7220
 
6705
7221
  type StatusFilter$1 = ResourceStatus | 'all';
6706
7222
 
@@ -6713,6 +7229,16 @@ interface CommandViewStore {
6713
7229
  setFitViewOnFilter: (v: boolean) => void;
6714
7230
  visualizationMode: CommandViewVisualizationMode;
6715
7231
  setVisualizationMode: (v: CommandViewVisualizationMode) => void;
7232
+ /**
7233
+ * The last visualization mode the user explicitly selected via setVisualizationMode.
7234
+ * Null for brand-new sessions that have never called setVisualizationMode.
7235
+ * Persisted so returning users can be confirmed to have a stored preference.
7236
+ * Wave 5 tests assert against this field for default-mode observability.
7237
+ */
7238
+ lastUsedVisualizationMode: CommandViewVisualizationMode | null;
7239
+ /** Last bottom-panel tab the user opened; null means the panel is collapsed. Persisted. */
7240
+ lastOpenBottomTab: string | null;
7241
+ setLastOpenBottomTab: (tab: string | null) => void;
6716
7242
  selectedNodeId: string | null;
6717
7243
  setSelectedNodeId: (id: string | null) => void;
6718
7244
  resourcesHidden: boolean;
@@ -6726,13 +7252,41 @@ interface CommandViewStore {
6726
7252
  hasVisibilityInteraction: boolean;
6727
7253
  markVisibilityInteraction: () => void;
6728
7254
  resetVisibilityInteraction: () => void;
7255
+ /**
7256
+ * Domains whose member nodes are currently expanded in Cluster mode.
7257
+ * Stored as an array of strings (not Set) for Zustand persist serialization.
7258
+ * Default is [] — all domains start collapsed (domain-card view).
7259
+ * Persisted to localStorage.
7260
+ */
7261
+ expandedClusterDomains: string[];
7262
+ toggleClusterDomain: (domain: string) => void;
7263
+ setExpandedClusterDomains: (domains: string[]) => void;
7264
+ /**
7265
+ * Node IDs currently expanded in Explore mode.
7266
+ * Stored as an array of strings for Zustand persist serialization.
7267
+ * Derived Set is expandedNodeIds. Not persisted (reset on reload).
7268
+ * Same-parent sibling auto-collapse applies on toggleNodeExpansion.
7269
+ */
7270
+ expandedNodeIdsArray: string[];
7271
+ /** Derived Set view of expandedNodeIdsArray — convenient for callers that need Set semantics. */
7272
+ expandedNodeIds: Set<string>;
7273
+ toggleNodeExpansion: (nodeId: string) => void;
7274
+ clearExpandedNodes: () => void;
6729
7275
  }
6730
7276
  /**
6731
7277
  * Shared store for Command View filter/settings state.
6732
7278
  * Allows CommandViewPage (graph) and CommandViewSidebarContent (sidebar) to share state.
6733
7279
  *
6734
- * Persisted to localStorage: showIntegrations, fitViewOnFilter, resource/diagnostic visibility preferences.
7280
+ * Persisted to localStorage: showIntegrations, fitViewOnFilter, visualizationMode,
7281
+ * lastUsedVisualizationMode, resource/diagnostic visibility preferences.
6735
7282
  * Not persisted (reset on reload): statusFilter, selectedNodeId, revealedIds, CTA interaction state.
7283
+ *
7284
+ * Default-mode logic:
7285
+ * - New sessions (no localStorage entry): visualizationMode initializes to 'explore'.
7286
+ * - Returning sessions: persist middleware merges stored visualizationMode over the initial value,
7287
+ * so the user lands on whatever mode they last used. lastUsedVisualizationMode provides an
7288
+ * explicit observable for this preference (Wave 5 test assertions).
7289
+ * - VALID_VISUALIZATION_MODES guards against stale localStorage values from old mode names.
6736
7290
  */
6737
7291
  declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<CommandViewStore>, "setState" | "persist"> & {
6738
7292
  setState(partial: CommandViewStore | Partial<CommandViewStore> | ((state: CommandViewStore) => CommandViewStore | Partial<CommandViewStore>), replace?: false | undefined): unknown;
@@ -6742,8 +7296,11 @@ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<C
6742
7296
  showIntegrations: boolean;
6743
7297
  fitViewOnFilter: boolean;
6744
7298
  visualizationMode: CommandViewVisualizationMode;
7299
+ lastUsedVisualizationMode: CommandViewVisualizationMode | null;
6745
7300
  resourcesHidden: boolean;
6746
7301
  diagnosticsHidden: boolean;
7302
+ lastOpenBottomTab: string | null;
7303
+ expandedClusterDomains: string[];
6747
7304
  }, unknown>>) => void;
6748
7305
  clearStorage: () => void;
6749
7306
  rehydrate: () => Promise<void> | void;
@@ -6754,8 +7311,11 @@ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<C
6754
7311
  showIntegrations: boolean;
6755
7312
  fitViewOnFilter: boolean;
6756
7313
  visualizationMode: CommandViewVisualizationMode;
7314
+ lastUsedVisualizationMode: CommandViewVisualizationMode | null;
6757
7315
  resourcesHidden: boolean;
6758
7316
  diagnosticsHidden: boolean;
7317
+ lastOpenBottomTab: string | null;
7318
+ expandedClusterDomains: string[];
6759
7319
  }, unknown>>;
6760
7320
  };
6761
7321
  }>;
@@ -6964,6 +7524,7 @@ declare function useDeals(filters?: DealFilters): {
6964
7524
  num_employees: number | null;
6965
7525
  } | null;
6966
7526
  } | null;
7527
+ client_id?: string | null | undefined;
6967
7528
  }[];
6968
7529
  total: number;
6969
7530
  limit: number;
@@ -7032,6 +7593,7 @@ declare function useDeals(filters?: DealFilters): {
7032
7593
  num_employees: number | null;
7033
7594
  } | null;
7034
7595
  } | null;
7596
+ client_id?: string | null | undefined;
7035
7597
  }[];
7036
7598
  total: number;
7037
7599
  limit: number;
@@ -7183,12 +7745,23 @@ declare const acquisitionListKeys: {
7183
7745
  detail: (organizationId: string | null, listId: string) => readonly ["acquisition-lists", string | null, string];
7184
7746
  telemetry: (organizationId: string | null) => readonly ["acquisition-lists", "telemetry", string | null];
7185
7747
  progress: (organizationId: string | null, listId: string) => readonly ["acquisition-lists", "progress", string | null, string];
7748
+ records: (organizationId: string | null, listId: string, filters: ListRecordsFilters) => readonly ["acquisition-lists", "records", string | null, string, "company" | "contact", string | null, number | null, number | null];
7186
7749
  executions: (organizationId: string | null, listId: string, filters?: ListExecutionsFilters) => readonly ["acquisition-lists", "executions", string | null, string, string | null, number | null];
7187
7750
  };
7751
+ interface ListRecordsFilters {
7752
+ entity: ListRecordEntity;
7753
+ stage?: string | null;
7754
+ limit?: number;
7755
+ offset?: number;
7756
+ }
7188
7757
  interface ListExecutionsFilters {
7189
7758
  resourceId?: string | null;
7190
7759
  limit?: number;
7191
7760
  }
7761
+ interface UseListProgressOptions {
7762
+ enabled?: boolean;
7763
+ refetchInterval?: number | false;
7764
+ }
7192
7765
  declare function useLists(): _tanstack_react_query.UseQueryResult<{
7193
7766
  id: string;
7194
7767
  organizationId: string;
@@ -7196,7 +7769,7 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
7196
7769
  description: string | null;
7197
7770
  batchIds: string[];
7198
7771
  instantlyCampaignId: string | null;
7199
- status: "closing" | "draft" | "enriching" | "launched" | "archived";
7772
+ status: "closing" | "archived" | "draft" | "enriching" | "launched";
7200
7773
  metadata: {
7201
7774
  [x: string]: unknown;
7202
7775
  buildPlanSnapshot?: {
@@ -7213,7 +7786,38 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
7213
7786
  defaultBatchSize: number;
7214
7787
  maxBatchSize: number;
7215
7788
  description?: string | undefined;
7789
+ recordEntity?: "company" | "contact" | undefined;
7790
+ recordsStageKey?: string | undefined;
7791
+ recordSourceStageKey?: string | undefined;
7216
7792
  dependsOn?: string[] | undefined;
7793
+ recordColumns?: {
7794
+ company?: {
7795
+ key: string;
7796
+ label: string;
7797
+ path: string;
7798
+ width?: string | number | undefined;
7799
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
7800
+ badgeColor?: string | undefined;
7801
+ }[] | undefined;
7802
+ contact?: {
7803
+ key: string;
7804
+ label: string;
7805
+ path: string;
7806
+ width?: string | number | undefined;
7807
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
7808
+ badgeColor?: string | undefined;
7809
+ }[] | undefined;
7810
+ } | undefined;
7811
+ credentialRequirements?: {
7812
+ key: string;
7813
+ provider: string;
7814
+ credentialType: "api-key" | "api-key-secret" | "oauth" | "webhook-secret";
7815
+ label: string;
7816
+ required: boolean;
7817
+ inputPath: string;
7818
+ selectionMode?: "single" | "multiple" | undefined;
7819
+ verifyOnRun?: boolean | undefined;
7820
+ }[] | undefined;
7217
7821
  }[];
7218
7822
  } | undefined;
7219
7823
  };
@@ -7250,7 +7854,7 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7250
7854
  description: string | null;
7251
7855
  batchIds: string[];
7252
7856
  instantlyCampaignId: string | null;
7253
- status: "closing" | "draft" | "enriching" | "launched" | "archived";
7857
+ status: "closing" | "archived" | "draft" | "enriching" | "launched";
7254
7858
  metadata: {
7255
7859
  [x: string]: unknown;
7256
7860
  buildPlanSnapshot?: {
@@ -7267,7 +7871,38 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7267
7871
  defaultBatchSize: number;
7268
7872
  maxBatchSize: number;
7269
7873
  description?: string | undefined;
7874
+ recordEntity?: "company" | "contact" | undefined;
7875
+ recordsStageKey?: string | undefined;
7876
+ recordSourceStageKey?: string | undefined;
7270
7877
  dependsOn?: string[] | undefined;
7878
+ recordColumns?: {
7879
+ company?: {
7880
+ key: string;
7881
+ label: string;
7882
+ path: string;
7883
+ width?: string | number | undefined;
7884
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
7885
+ badgeColor?: string | undefined;
7886
+ }[] | undefined;
7887
+ contact?: {
7888
+ key: string;
7889
+ label: string;
7890
+ path: string;
7891
+ width?: string | number | undefined;
7892
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
7893
+ badgeColor?: string | undefined;
7894
+ }[] | undefined;
7895
+ } | undefined;
7896
+ credentialRequirements?: {
7897
+ key: string;
7898
+ provider: string;
7899
+ credentialType: "api-key" | "api-key-secret" | "oauth" | "webhook-secret";
7900
+ label: string;
7901
+ required: boolean;
7902
+ inputPath: string;
7903
+ selectionMode?: "single" | "multiple" | undefined;
7904
+ verifyOnRun?: boolean | undefined;
7905
+ }[] | undefined;
7271
7906
  }[];
7272
7907
  } | undefined;
7273
7908
  };
@@ -7298,7 +7933,7 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7298
7933
  };
7299
7934
  }, Error>;
7300
7935
  declare function useListsTelemetry(): _tanstack_react_query.UseQueryResult<ListTelemetry[], Error>;
7301
- declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<{
7936
+ declare function useListProgress(listId: string, options?: UseListProgressOptions): _tanstack_react_query.UseQueryResult<{
7302
7937
  totalMembers: number;
7303
7938
  totalCompanies: number;
7304
7939
  byCompanyStage: Record<string, {
@@ -7322,6 +7957,71 @@ declare function useListProgress(listId: string): _tanstack_react_query.UseQuery
7322
7957
  notAttempted: number;
7323
7958
  }>;
7324
7959
  }, Error>;
7960
+ declare function useListRecords(listId: string, filters: ListRecordsFilters): _tanstack_react_query.UseQueryResult<{
7961
+ data: ({
7962
+ id: string;
7963
+ listId: string;
7964
+ pipelineKey: string;
7965
+ stageKey: string;
7966
+ stateKey: string;
7967
+ activityLog: unknown;
7968
+ addedAt: string;
7969
+ addedBy: string | null;
7970
+ sourceExecutionId: string | null;
7971
+ processingState: Record<string, unknown> | null;
7972
+ enrichmentData: Record<string, unknown> | null;
7973
+ entity: "company";
7974
+ companyId: string;
7975
+ company: {
7976
+ id: string;
7977
+ name: string;
7978
+ domain: string | null;
7979
+ website: string | null;
7980
+ linkedinUrl: string | null;
7981
+ numEmployees: number | null;
7982
+ foundedYear: number | null;
7983
+ locationCity: string | null;
7984
+ locationState: string | null;
7985
+ category: string | null;
7986
+ segment: string | null;
7987
+ status: "active" | "invalid";
7988
+ qualificationScore: number | null;
7989
+ qualificationSignals: Record<string, unknown> | null;
7990
+ qualificationRubricKey: string | null;
7991
+ } | null;
7992
+ } | {
7993
+ id: string;
7994
+ listId: string;
7995
+ pipelineKey: string;
7996
+ stageKey: string;
7997
+ stateKey: string;
7998
+ activityLog: unknown;
7999
+ addedAt: string;
8000
+ addedBy: string | null;
8001
+ sourceExecutionId: string | null;
8002
+ processingState: Record<string, unknown> | null;
8003
+ enrichmentData: Record<string, unknown> | null;
8004
+ entity: "contact";
8005
+ contactId: string;
8006
+ contact: {
8007
+ id: string;
8008
+ email: string;
8009
+ firstName: string | null;
8010
+ lastName: string | null;
8011
+ title: string | null;
8012
+ headline: string | null;
8013
+ linkedinUrl: string | null;
8014
+ companyId: string | null;
8015
+ status: "active" | "invalid";
8016
+ qualificationScore: number | null;
8017
+ qualificationSignals: Record<string, unknown> | null;
8018
+ qualificationRubricKey: string | null;
8019
+ } | null;
8020
+ })[];
8021
+ total: number;
8022
+ limit: number;
8023
+ offset: number;
8024
+ }, Error>;
7325
8025
  declare function useListExecutions(listId: string, filters?: ListExecutionsFilters): _tanstack_react_query.UseQueryResult<{
7326
8026
  executionId: string;
7327
8027
  resourceId: string;
@@ -7338,7 +8038,7 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7338
8038
  description: string | null;
7339
8039
  batchIds: string[];
7340
8040
  instantlyCampaignId: string | null;
7341
- status: "closing" | "draft" | "enriching" | "launched" | "archived";
8041
+ status: "closing" | "archived" | "draft" | "enriching" | "launched";
7342
8042
  metadata: {
7343
8043
  [x: string]: unknown;
7344
8044
  buildPlanSnapshot?: {
@@ -7355,7 +8055,38 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7355
8055
  defaultBatchSize: number;
7356
8056
  maxBatchSize: number;
7357
8057
  description?: string | undefined;
8058
+ recordEntity?: "company" | "contact" | undefined;
8059
+ recordsStageKey?: string | undefined;
8060
+ recordSourceStageKey?: string | undefined;
7358
8061
  dependsOn?: string[] | undefined;
8062
+ recordColumns?: {
8063
+ company?: {
8064
+ key: string;
8065
+ label: string;
8066
+ path: string;
8067
+ width?: string | number | undefined;
8068
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8069
+ badgeColor?: string | undefined;
8070
+ }[] | undefined;
8071
+ contact?: {
8072
+ key: string;
8073
+ label: string;
8074
+ path: string;
8075
+ width?: string | number | undefined;
8076
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8077
+ badgeColor?: string | undefined;
8078
+ }[] | undefined;
8079
+ } | undefined;
8080
+ credentialRequirements?: {
8081
+ key: string;
8082
+ provider: string;
8083
+ credentialType: "api-key" | "api-key-secret" | "oauth" | "webhook-secret";
8084
+ label: string;
8085
+ required: boolean;
8086
+ inputPath: string;
8087
+ selectionMode?: "single" | "multiple" | undefined;
8088
+ verifyOnRun?: boolean | undefined;
8089
+ }[] | undefined;
7359
8090
  }[];
7360
8091
  } | undefined;
7361
8092
  };
@@ -7387,7 +8118,7 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7387
8118
  }, Error, {
7388
8119
  name: string;
7389
8120
  description?: string | null | undefined;
7390
- status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
8121
+ status?: "closing" | "archived" | "draft" | "enriching" | "launched" | undefined;
7391
8122
  buildTemplateId?: string | undefined;
7392
8123
  scrapingConfig?: {
7393
8124
  vertical?: string | undefined;
@@ -7419,7 +8150,7 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
7419
8150
  description: string | null;
7420
8151
  batchIds: string[];
7421
8152
  instantlyCampaignId: string | null;
7422
- status: "closing" | "draft" | "enriching" | "launched" | "archived";
8153
+ status: "closing" | "archived" | "draft" | "enriching" | "launched";
7423
8154
  metadata: {
7424
8155
  [x: string]: unknown;
7425
8156
  buildPlanSnapshot?: {
@@ -7436,7 +8167,38 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
7436
8167
  defaultBatchSize: number;
7437
8168
  maxBatchSize: number;
7438
8169
  description?: string | undefined;
8170
+ recordEntity?: "company" | "contact" | undefined;
8171
+ recordsStageKey?: string | undefined;
8172
+ recordSourceStageKey?: string | undefined;
7439
8173
  dependsOn?: string[] | undefined;
8174
+ recordColumns?: {
8175
+ company?: {
8176
+ key: string;
8177
+ label: string;
8178
+ path: string;
8179
+ width?: string | number | undefined;
8180
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8181
+ badgeColor?: string | undefined;
8182
+ }[] | undefined;
8183
+ contact?: {
8184
+ key: string;
8185
+ label: string;
8186
+ path: string;
8187
+ width?: string | number | undefined;
8188
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8189
+ badgeColor?: string | undefined;
8190
+ }[] | undefined;
8191
+ } | undefined;
8192
+ credentialRequirements?: {
8193
+ key: string;
8194
+ provider: string;
8195
+ credentialType: "api-key" | "api-key-secret" | "oauth" | "webhook-secret";
8196
+ label: string;
8197
+ required: boolean;
8198
+ inputPath: string;
8199
+ selectionMode?: "single" | "multiple" | undefined;
8200
+ verifyOnRun?: boolean | undefined;
8201
+ }[] | undefined;
7440
8202
  }[];
7441
8203
  } | undefined;
7442
8204
  };
@@ -7479,7 +8241,7 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7479
8241
  description: string | null;
7480
8242
  batchIds: string[];
7481
8243
  instantlyCampaignId: string | null;
7482
- status: "closing" | "draft" | "enriching" | "launched" | "archived";
8244
+ status: "closing" | "archived" | "draft" | "enriching" | "launched";
7483
8245
  metadata: {
7484
8246
  [x: string]: unknown;
7485
8247
  buildPlanSnapshot?: {
@@ -7496,7 +8258,38 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7496
8258
  defaultBatchSize: number;
7497
8259
  maxBatchSize: number;
7498
8260
  description?: string | undefined;
8261
+ recordEntity?: "company" | "contact" | undefined;
8262
+ recordsStageKey?: string | undefined;
8263
+ recordSourceStageKey?: string | undefined;
7499
8264
  dependsOn?: string[] | undefined;
8265
+ recordColumns?: {
8266
+ company?: {
8267
+ key: string;
8268
+ label: string;
8269
+ path: string;
8270
+ width?: string | number | undefined;
8271
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8272
+ badgeColor?: string | undefined;
8273
+ }[] | undefined;
8274
+ contact?: {
8275
+ key: string;
8276
+ label: string;
8277
+ path: string;
8278
+ width?: string | number | undefined;
8279
+ renderType?: "text" | "badge" | "datetime" | "count" | "json" | undefined;
8280
+ badgeColor?: string | undefined;
8281
+ }[] | undefined;
8282
+ } | undefined;
8283
+ credentialRequirements?: {
8284
+ key: string;
8285
+ provider: string;
8286
+ credentialType: "api-key" | "api-key-secret" | "oauth" | "webhook-secret";
8287
+ label: string;
8288
+ required: boolean;
8289
+ inputPath: string;
8290
+ selectionMode?: "single" | "multiple" | undefined;
8291
+ verifyOnRun?: boolean | undefined;
8292
+ }[] | undefined;
7500
8293
  }[];
7501
8294
  } | undefined;
7502
8295
  };
@@ -7632,6 +8425,7 @@ declare function useCompanies(filters?: Partial<ListCompaniesQuery>): _tanstack_
7632
8425
  verticalResearch: string | null;
7633
8426
  createdAt: string;
7634
8427
  updatedAt: string;
8428
+ clientId?: string | null | undefined;
7635
8429
  pipelineStatus?: unknown;
7636
8430
  }[];
7637
8431
  total: number;
@@ -7666,6 +8460,7 @@ declare function useCompany(companyId: string): _tanstack_react_query.UseQueryRe
7666
8460
  verticalResearch: string | null;
7667
8461
  createdAt: string;
7668
8462
  updatedAt: string;
8463
+ clientId?: string | null | undefined;
7669
8464
  pipelineStatus?: unknown;
7670
8465
  } | null, Error>;
7671
8466
  declare function useCreateCompany(): _tanstack_react_query.UseMutationResult<{
@@ -7695,9 +8490,11 @@ declare function useCreateCompany(): _tanstack_react_query.UseMutationResult<{
7695
8490
  verticalResearch: string | null;
7696
8491
  createdAt: string;
7697
8492
  updatedAt: string;
8493
+ clientId?: string | null | undefined;
7698
8494
  pipelineStatus?: unknown;
7699
8495
  }, Error, {
7700
8496
  name: string;
8497
+ clientId?: string | null | undefined;
7701
8498
  domain?: string | undefined;
7702
8499
  linkedinUrl?: string | undefined;
7703
8500
  website?: string | undefined;
@@ -7738,9 +8535,11 @@ declare function useUpdateCompany(companyId: string): _tanstack_react_query.UseM
7738
8535
  verticalResearch: string | null;
7739
8536
  createdAt: string;
7740
8537
  updatedAt: string;
8538
+ clientId?: string | null | undefined;
7741
8539
  pipelineStatus?: unknown;
7742
8540
  }, Error, {
7743
8541
  name?: string | undefined;
8542
+ clientId?: string | null | undefined;
7744
8543
  domain?: string | undefined;
7745
8544
  linkedinUrl?: string | undefined;
7746
8545
  website?: string | undefined;
@@ -7805,6 +8604,7 @@ declare function useContacts(filters?: Partial<ListContactsQuery>): _tanstack_re
7805
8604
  status: "active" | "invalid";
7806
8605
  createdAt: string;
7807
8606
  updatedAt: string;
8607
+ clientId?: string | null | undefined;
7808
8608
  pipelineStatus?: unknown;
7809
8609
  company?: {
7810
8610
  id: string;
@@ -7847,6 +8647,7 @@ declare function useContact(contactId: string): _tanstack_react_query.UseQueryRe
7847
8647
  status: "active" | "invalid";
7848
8648
  createdAt: string;
7849
8649
  updatedAt: string;
8650
+ clientId?: string | null | undefined;
7850
8651
  pipelineStatus?: unknown;
7851
8652
  company?: {
7852
8653
  id: string;
@@ -7885,6 +8686,7 @@ declare function useCreateContact(): _tanstack_react_query.UseMutationResult<{
7885
8686
  status: "active" | "invalid";
7886
8687
  createdAt: string;
7887
8688
  updatedAt: string;
8689
+ clientId?: string | null | undefined;
7888
8690
  pipelineStatus?: unknown;
7889
8691
  company?: {
7890
8692
  id: string;
@@ -7898,6 +8700,7 @@ declare function useCreateContact(): _tanstack_react_query.UseMutationResult<{
7898
8700
  } | null | undefined;
7899
8701
  }, Error, {
7900
8702
  email: string;
8703
+ clientId?: string | null | undefined;
7901
8704
  companyId?: string | undefined;
7902
8705
  firstName?: string | undefined;
7903
8706
  lastName?: string | undefined;
@@ -7934,6 +8737,7 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
7934
8737
  status: "active" | "invalid";
7935
8738
  createdAt: string;
7936
8739
  updatedAt: string;
8740
+ clientId?: string | null | undefined;
7937
8741
  pipelineStatus?: unknown;
7938
8742
  company?: {
7939
8743
  id: string;
@@ -7947,6 +8751,7 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
7947
8751
  } | null | undefined;
7948
8752
  }, Error, {
7949
8753
  companyId?: string | undefined;
8754
+ clientId?: string | null | undefined;
7950
8755
  emailValid?: "VALID" | "INVALID" | "RISKY" | "UNKNOWN" | undefined;
7951
8756
  firstName?: string | undefined;
7952
8757
  lastName?: string | undefined;
@@ -8185,6 +8990,13 @@ interface CreateCredentialResponse {
8185
8990
  interface ListCredentialsResponse {
8186
8991
  credentials: CredentialListItem[];
8187
8992
  }
8993
+ interface VerifyCredentialResponse {
8994
+ ok: boolean;
8995
+ provider: string;
8996
+ checkedAt: string;
8997
+ message?: string;
8998
+ details?: Record<string, unknown>;
8999
+ }
8188
9000
  type ApiRequest$2 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
8189
9001
  declare class CredentialService {
8190
9002
  private apiRequest;
@@ -8212,6 +9024,10 @@ declare class CredentialService {
8212
9024
  * Organization context is provided via workos-organization-id header
8213
9025
  */
8214
9026
  deleteCredential(credentialId: string): Promise<void>;
9027
+ /**
9028
+ * Verify a credential server-side without exposing secret material
9029
+ */
9030
+ verifyCredential(credentialId: string): Promise<VerifyCredentialResponse>;
8215
9031
  }
8216
9032
 
8217
9033
  declare function useCredentials(): _tanstack_react_query.UseQueryResult<{
@@ -8221,6 +9037,7 @@ declare function useCredentials(): _tanstack_react_query.UseQueryResult<{
8221
9037
  provider: string | null;
8222
9038
  createdAt: string;
8223
9039
  }[], Error>;
9040
+ declare function useVerifyCredential(): _tanstack_react_query.UseMutationResult<VerifyCredentialResponse, Error, string, unknown>;
8224
9041
 
8225
9042
  declare function useCreateCredential(): _tanstack_react_query.UseMutationResult<CreateCredentialResponse, Error, CreateCredentialRequest, unknown>;
8226
9043
 
@@ -8478,13 +9295,16 @@ declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationRe
8478
9295
  */
8479
9296
  interface ElevasisServiceContextValue {
8480
9297
  apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
9298
+ /** Organization ID alias retained for existing query-key consumers. */
8481
9299
  organizationId: string | null;
9300
+ /** WorkOS `org_xxx` string for the current organization. */
9301
+ workOSOrganizationId: string | null;
8482
9302
  isReady: boolean;
8483
9303
  }
8484
9304
 
8485
9305
  /**
8486
9306
  * Hook to access the ElevasisServiceProvider context.
8487
- * Provides apiRequest, organizationId, and isReady.
9307
+ * Provides apiRequest, workOSOrganizationId, and isReady.
8488
9308
  *
8489
9309
  * Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
8490
9310
  */
@@ -8731,6 +9551,7 @@ declare function useProjectTasks(projectId: string): _tanstack_react_query.UseQu
8731
9551
  declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
8732
9552
  actual_end_date: string | null;
8733
9553
  client_company_id: string | null;
9554
+ client_id: string | null;
8734
9555
  contract_value: number | null;
8735
9556
  created_at: string;
8736
9557
  deal_id: string | null;
@@ -8747,6 +9568,7 @@ declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
8747
9568
  }, Error, Omit<{
8748
9569
  actual_end_date?: string | null;
8749
9570
  client_company_id?: string | null;
9571
+ client_id?: string | null;
8750
9572
  contract_value?: number | null;
8751
9573
  created_at?: string;
8752
9574
  deal_id?: string | null;
@@ -8764,6 +9586,7 @@ declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
8764
9586
  declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<{
8765
9587
  actual_end_date: string | null;
8766
9588
  client_company_id: string | null;
9589
+ client_id: string | null;
8767
9590
  contract_value: number | null;
8768
9591
  created_at: string;
8769
9592
  deal_id: string | null;
@@ -9032,5 +9855,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
9032
9855
  type?: string;
9033
9856
  }, "organization_id">, unknown>;
9034
9857
 
9035
- export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, 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, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification, useWorkflowExecution };
9036
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RemoveCompaniesFromListResult, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, WebSocketState, WorkflowExecutionTriggerParams };
9858
+ export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, 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, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useHasPermission, useInFlightExecutions, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution };
9859
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ClientDetailResponse, ClientResponse, ClientStatus, ClientStatusResponse, ClientsListFilters, CreateApiKeyRequest, CreateApiKeyResponse, CreateClientRequest, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListRecordsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RemoveCompaniesFromListResult, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateClientRequest, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseInFlightExecutionsOptions, UseListProgressOptions, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, VerifyCredentialResponse, WebSocketState, WorkflowExecutionTriggerParams };