@elevasis/ui 2.22.0 → 2.24.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 (57) hide show
  1. package/dist/app/index.d.ts +2915 -0
  2. package/dist/app/index.js +5 -4
  3. package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
  4. package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
  5. package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
  8. package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
  9. package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
  10. package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
  11. package/dist/chunk-OWHQ65EQ.js +211 -0
  12. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  13. package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
  14. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  15. package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
  16. package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
  17. package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
  18. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  19. package/dist/components/index.d.ts +500 -466
  20. package/dist/components/index.js +75 -32
  21. package/dist/components/navigation/index.js +2 -2
  22. package/dist/features/auth/index.d.ts +472 -389
  23. package/dist/features/crm/index.d.ts +468 -391
  24. package/dist/features/crm/index.js +8 -8
  25. package/dist/features/dashboard/index.js +8 -8
  26. package/dist/features/delivery/index.d.ts +466 -383
  27. package/dist/features/delivery/index.js +8 -8
  28. package/dist/features/lead-gen/index.d.ts +213 -65
  29. package/dist/features/lead-gen/index.js +9 -8
  30. package/dist/features/monitoring/index.js +9 -9
  31. package/dist/features/monitoring/requests/index.js +7 -7
  32. package/dist/features/operations/index.js +11 -10
  33. package/dist/features/settings/index.d.ts +472 -389
  34. package/dist/features/settings/index.js +9 -9
  35. package/dist/hooks/delivery/index.d.ts +466 -383
  36. package/dist/hooks/index.d.ts +967 -744
  37. package/dist/hooks/index.js +7 -7
  38. package/dist/hooks/published.d.ts +967 -744
  39. package/dist/hooks/published.js +7 -7
  40. package/dist/index.d.ts +1360 -1069
  41. package/dist/index.js +8 -8
  42. package/dist/initialization/index.d.ts +472 -389
  43. package/dist/organization/index.d.ts +11 -1
  44. package/dist/organization/index.js +2 -2
  45. package/dist/profile/index.d.ts +472 -389
  46. package/dist/provider/index.d.ts +3132 -169
  47. package/dist/provider/index.js +6 -6
  48. package/dist/provider/published.d.ts +3098 -168
  49. package/dist/provider/published.js +3 -3
  50. package/dist/supabase/index.d.ts +577 -413
  51. package/dist/test-utils/index.d.ts +21 -1
  52. package/dist/test-utils/index.js +13 -4
  53. package/dist/theme/index.js +2 -2
  54. package/dist/types/index.d.ts +472 -389
  55. package/package.json +2 -2
  56. package/src/test-utils/README.md +2 -0
  57. /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
@@ -471,10 +471,57 @@ type Json = string | number | boolean | null | {
471
471
  } | Json[];
472
472
  type Database = {
473
473
  __InternalSupabase: {
474
- PostgrestVersion: "12.2.3 (519615d)";
474
+ PostgrestVersion: '12.2.3 (519615d)';
475
475
  };
476
476
  public: {
477
477
  Tables: {
478
+ acq_artifacts: {
479
+ Row: {
480
+ content: Json;
481
+ created_at: string;
482
+ created_by: string | null;
483
+ id: string;
484
+ kind: string;
485
+ organization_id: string;
486
+ owner_id: string;
487
+ owner_kind: string;
488
+ source_execution_id: string | null;
489
+ version: number;
490
+ };
491
+ Insert: {
492
+ content: Json;
493
+ created_at?: string;
494
+ created_by?: string | null;
495
+ id?: string;
496
+ kind: string;
497
+ organization_id: string;
498
+ owner_id: string;
499
+ owner_kind: string;
500
+ source_execution_id?: string | null;
501
+ version?: number;
502
+ };
503
+ Update: {
504
+ content?: Json;
505
+ created_at?: string;
506
+ created_by?: string | null;
507
+ id?: string;
508
+ kind?: string;
509
+ organization_id?: string;
510
+ owner_id?: string;
511
+ owner_kind?: string;
512
+ source_execution_id?: string | null;
513
+ version?: number;
514
+ };
515
+ Relationships: [
516
+ {
517
+ foreignKeyName: 'acq_artifacts_organization_id_fkey';
518
+ columns: ['organization_id'];
519
+ isOneToOne: false;
520
+ referencedRelation: 'organizations';
521
+ referencedColumns: ['id'];
522
+ }
523
+ ];
524
+ };
478
525
  acq_companies: {
479
526
  Row: {
480
527
  batch_id: string | null;
@@ -493,6 +540,9 @@ type Database = {
493
540
  num_employees: number | null;
494
541
  organization_id: string;
495
542
  pipeline_status: Json;
543
+ qualification_rubric_key: string | null;
544
+ qualification_score: number | null;
545
+ qualification_signals: Json | null;
496
546
  segment: string | null;
497
547
  source: string | null;
498
548
  status: string;
@@ -516,6 +566,9 @@ type Database = {
516
566
  num_employees?: number | null;
517
567
  organization_id: string;
518
568
  pipeline_status?: Json;
569
+ qualification_rubric_key?: string | null;
570
+ qualification_score?: number | null;
571
+ qualification_signals?: Json | null;
519
572
  segment?: string | null;
520
573
  source?: string | null;
521
574
  status?: string;
@@ -539,6 +592,9 @@ type Database = {
539
592
  num_employees?: number | null;
540
593
  organization_id?: string;
541
594
  pipeline_status?: Json;
595
+ qualification_rubric_key?: string | null;
596
+ qualification_score?: number | null;
597
+ qualification_signals?: Json | null;
542
598
  segment?: string | null;
543
599
  source?: string | null;
544
600
  status?: string;
@@ -547,11 +603,11 @@ type Database = {
547
603
  };
548
604
  Relationships: [
549
605
  {
550
- foreignKeyName: "acq_companies_organization_id_fkey";
551
- columns: ["organization_id"];
606
+ foreignKeyName: 'acq_companies_organization_id_fkey';
607
+ columns: ['organization_id'];
552
608
  isOneToOne: false;
553
- referencedRelation: "organizations";
554
- referencedColumns: ["id"];
609
+ referencedRelation: 'organizations';
610
+ referencedColumns: ['id'];
555
611
  }
556
612
  ];
557
613
  };
@@ -575,6 +631,9 @@ type Database = {
575
631
  opening_line: string | null;
576
632
  organization_id: string;
577
633
  pipeline_status: Json;
634
+ qualification_rubric_key: string | null;
635
+ qualification_score: number | null;
636
+ qualification_signals: Json | null;
578
637
  source: string | null;
579
638
  source_id: string | null;
580
639
  status: string;
@@ -600,6 +659,9 @@ type Database = {
600
659
  opening_line?: string | null;
601
660
  organization_id: string;
602
661
  pipeline_status?: Json;
662
+ qualification_rubric_key?: string | null;
663
+ qualification_score?: number | null;
664
+ qualification_signals?: Json | null;
603
665
  source?: string | null;
604
666
  source_id?: string | null;
605
667
  status?: string;
@@ -625,6 +687,9 @@ type Database = {
625
687
  opening_line?: string | null;
626
688
  organization_id?: string;
627
689
  pipeline_status?: Json;
690
+ qualification_rubric_key?: string | null;
691
+ qualification_score?: number | null;
692
+ qualification_signals?: Json | null;
628
693
  source?: string | null;
629
694
  source_id?: string | null;
630
695
  status?: string;
@@ -633,18 +698,18 @@ type Database = {
633
698
  };
634
699
  Relationships: [
635
700
  {
636
- foreignKeyName: "acq_contacts_company_id_fkey";
637
- columns: ["company_id"];
701
+ foreignKeyName: 'acq_contacts_company_id_fkey';
702
+ columns: ['company_id'];
638
703
  isOneToOne: false;
639
- referencedRelation: "acq_companies";
640
- referencedColumns: ["id"];
704
+ referencedRelation: 'acq_companies';
705
+ referencedColumns: ['id'];
641
706
  },
642
707
  {
643
- foreignKeyName: "acq_contacts_organization_id_fkey";
644
- columns: ["organization_id"];
708
+ foreignKeyName: 'acq_contacts_organization_id_fkey';
709
+ columns: ['organization_id'];
645
710
  isOneToOne: false;
646
- referencedRelation: "organizations";
647
- referencedColumns: ["id"];
711
+ referencedRelation: 'organizations';
712
+ referencedColumns: ['id'];
648
713
  }
649
714
  ];
650
715
  };
@@ -681,11 +746,11 @@ type Database = {
681
746
  };
682
747
  Relationships: [
683
748
  {
684
- foreignKeyName: "acq_content_organization_id_fkey";
685
- columns: ["organization_id"];
749
+ foreignKeyName: 'acq_content_organization_id_fkey';
750
+ columns: ['organization_id'];
686
751
  isOneToOne: false;
687
- referencedRelation: "organizations";
688
- referencedColumns: ["id"];
752
+ referencedRelation: 'organizations';
753
+ referencedColumns: ['id'];
689
754
  }
690
755
  ];
691
756
  };
@@ -749,18 +814,18 @@ type Database = {
749
814
  };
750
815
  Relationships: [
751
816
  {
752
- foreignKeyName: "acq_content_distributions_content_id_fkey";
753
- columns: ["content_id"];
817
+ foreignKeyName: 'acq_content_distributions_content_id_fkey';
818
+ columns: ['content_id'];
754
819
  isOneToOne: false;
755
- referencedRelation: "acq_content";
756
- referencedColumns: ["id"];
820
+ referencedRelation: 'acq_content';
821
+ referencedColumns: ['id'];
757
822
  },
758
823
  {
759
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
760
- columns: ["organization_id"];
824
+ foreignKeyName: 'acq_content_distributions_organization_id_fkey';
825
+ columns: ['organization_id'];
761
826
  isOneToOne: false;
762
- referencedRelation: "organizations";
763
- referencedColumns: ["id"];
827
+ referencedRelation: 'organizations';
828
+ referencedColumns: ['id'];
764
829
  }
765
830
  ];
766
831
  };
@@ -794,18 +859,18 @@ type Database = {
794
859
  };
795
860
  Relationships: [
796
861
  {
797
- foreignKeyName: "acq_deal_notes_deal_id_fkey";
798
- columns: ["deal_id"];
862
+ foreignKeyName: 'acq_deal_notes_deal_id_fkey';
863
+ columns: ['deal_id'];
799
864
  isOneToOne: false;
800
- referencedRelation: "acq_deals";
801
- referencedColumns: ["id"];
865
+ referencedRelation: 'acq_deals';
866
+ referencedColumns: ['id'];
802
867
  },
803
868
  {
804
- foreignKeyName: "acq_deal_notes_organization_id_fkey";
805
- columns: ["organization_id"];
869
+ foreignKeyName: 'acq_deal_notes_organization_id_fkey';
870
+ columns: ['organization_id'];
806
871
  isOneToOne: false;
807
- referencedRelation: "organizations";
808
- referencedColumns: ["id"];
872
+ referencedRelation: 'organizations';
873
+ referencedColumns: ['id'];
809
874
  }
810
875
  ];
811
876
  };
@@ -857,25 +922,24 @@ type Database = {
857
922
  };
858
923
  Relationships: [
859
924
  {
860
- foreignKeyName: "acq_deal_tasks_deal_id_fkey";
861
- columns: ["deal_id"];
925
+ foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
926
+ columns: ['deal_id'];
862
927
  isOneToOne: false;
863
- referencedRelation: "acq_deals";
864
- referencedColumns: ["id"];
928
+ referencedRelation: 'acq_deals';
929
+ referencedColumns: ['id'];
865
930
  },
866
931
  {
867
- foreignKeyName: "acq_deal_tasks_organization_id_fkey";
868
- columns: ["organization_id"];
932
+ foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
933
+ columns: ['organization_id'];
869
934
  isOneToOne: false;
870
- referencedRelation: "organizations";
871
- referencedColumns: ["id"];
935
+ referencedRelation: 'organizations';
936
+ referencedColumns: ['id'];
872
937
  }
873
938
  ];
874
939
  };
875
940
  acq_deals: {
876
941
  Row: {
877
942
  activity_log: Json;
878
- cached_stage: string | null;
879
943
  closed_lost_at: string | null;
880
944
  closed_lost_reason: string | null;
881
945
  contact_email: string;
@@ -890,6 +954,7 @@ type Database = {
890
954
  organization_id: string;
891
955
  payment_link_sent_at: string | null;
892
956
  payment_received_at: string | null;
957
+ pipeline_key: string;
893
958
  proposal_data: Json | null;
894
959
  proposal_generated_at: string | null;
895
960
  proposal_pdf_url: string | null;
@@ -897,10 +962,11 @@ type Database = {
897
962
  proposal_reviewed_by: string | null;
898
963
  proposal_sent_at: string | null;
899
964
  proposal_signed_at: string | null;
900
- proposal_status: string | null;
901
965
  signature_envelope_id: string | null;
902
966
  source_list_id: string | null;
903
967
  source_type: string | null;
968
+ stage_key: string | null;
969
+ state_key: string | null;
904
970
  stripe_payment_id: string | null;
905
971
  stripe_payment_link: string | null;
906
972
  stripe_payment_link_id: string | null;
@@ -909,7 +975,6 @@ type Database = {
909
975
  };
910
976
  Insert: {
911
977
  activity_log?: Json;
912
- cached_stage?: string | null;
913
978
  closed_lost_at?: string | null;
914
979
  closed_lost_reason?: string | null;
915
980
  contact_email: string;
@@ -924,6 +989,7 @@ type Database = {
924
989
  organization_id: string;
925
990
  payment_link_sent_at?: string | null;
926
991
  payment_received_at?: string | null;
992
+ pipeline_key?: string;
927
993
  proposal_data?: Json | null;
928
994
  proposal_generated_at?: string | null;
929
995
  proposal_pdf_url?: string | null;
@@ -931,10 +997,11 @@ type Database = {
931
997
  proposal_reviewed_by?: string | null;
932
998
  proposal_sent_at?: string | null;
933
999
  proposal_signed_at?: string | null;
934
- proposal_status?: string | null;
935
1000
  signature_envelope_id?: string | null;
936
1001
  source_list_id?: string | null;
937
1002
  source_type?: string | null;
1003
+ stage_key?: string | null;
1004
+ state_key?: string | null;
938
1005
  stripe_payment_id?: string | null;
939
1006
  stripe_payment_link?: string | null;
940
1007
  stripe_payment_link_id?: string | null;
@@ -943,7 +1010,6 @@ type Database = {
943
1010
  };
944
1011
  Update: {
945
1012
  activity_log?: Json;
946
- cached_stage?: string | null;
947
1013
  closed_lost_at?: string | null;
948
1014
  closed_lost_reason?: string | null;
949
1015
  contact_email?: string;
@@ -958,6 +1024,7 @@ type Database = {
958
1024
  organization_id?: string;
959
1025
  payment_link_sent_at?: string | null;
960
1026
  payment_received_at?: string | null;
1027
+ pipeline_key?: string;
961
1028
  proposal_data?: Json | null;
962
1029
  proposal_generated_at?: string | null;
963
1030
  proposal_pdf_url?: string | null;
@@ -965,10 +1032,11 @@ type Database = {
965
1032
  proposal_reviewed_by?: string | null;
966
1033
  proposal_sent_at?: string | null;
967
1034
  proposal_signed_at?: string | null;
968
- proposal_status?: string | null;
969
1035
  signature_envelope_id?: string | null;
970
1036
  source_list_id?: string | null;
971
1037
  source_type?: string | null;
1038
+ stage_key?: string | null;
1039
+ state_key?: string | null;
972
1040
  stripe_payment_id?: string | null;
973
1041
  stripe_payment_link?: string | null;
974
1042
  stripe_payment_link_id?: string | null;
@@ -977,86 +1045,95 @@ type Database = {
977
1045
  };
978
1046
  Relationships: [
979
1047
  {
980
- foreignKeyName: "acq_deals_contact_id_fkey";
981
- columns: ["contact_id"];
1048
+ foreignKeyName: 'acq_deals_contact_id_fkey';
1049
+ columns: ['contact_id'];
982
1050
  isOneToOne: false;
983
- referencedRelation: "acq_contacts";
984
- referencedColumns: ["id"];
1051
+ referencedRelation: 'acq_contacts';
1052
+ referencedColumns: ['id'];
985
1053
  },
986
1054
  {
987
- foreignKeyName: "acq_deals_organization_id_fkey";
988
- columns: ["organization_id"];
1055
+ foreignKeyName: 'acq_deals_organization_id_fkey';
1056
+ columns: ['organization_id'];
989
1057
  isOneToOne: false;
990
- referencedRelation: "organizations";
991
- referencedColumns: ["id"];
1058
+ referencedRelation: 'organizations';
1059
+ referencedColumns: ['id'];
992
1060
  },
993
1061
  {
994
- foreignKeyName: "acq_deals_source_list_id_fkey";
995
- columns: ["source_list_id"];
1062
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
1063
+ columns: ['source_list_id'];
996
1064
  isOneToOne: false;
997
- referencedRelation: "acq_lists";
998
- referencedColumns: ["id"];
1065
+ referencedRelation: 'acq_lists';
1066
+ referencedColumns: ['id'];
999
1067
  }
1000
1068
  ];
1001
1069
  };
1002
1070
  acq_list_companies: {
1003
1071
  Row: {
1072
+ activity_log: Json;
1004
1073
  added_at: string;
1005
1074
  added_by: string | null;
1006
1075
  company_id: string;
1007
1076
  id: string;
1008
1077
  list_id: string;
1078
+ pipeline_key: string;
1079
+ processing_state: Json;
1009
1080
  source_execution_id: string | null;
1010
1081
  source_input_hash: string | null;
1011
1082
  source_resource_id: string | null;
1012
- stage: string | null;
1013
- stage_updated_at: string | null;
1083
+ stage_key: string;
1084
+ state_key: string;
1014
1085
  };
1015
1086
  Insert: {
1087
+ activity_log?: Json;
1016
1088
  added_at?: string;
1017
1089
  added_by?: string | null;
1018
1090
  company_id: string;
1019
1091
  id?: string;
1020
1092
  list_id: string;
1093
+ pipeline_key?: string;
1094
+ processing_state?: Json;
1021
1095
  source_execution_id?: string | null;
1022
1096
  source_input_hash?: string | null;
1023
1097
  source_resource_id?: string | null;
1024
- stage?: string | null;
1025
- stage_updated_at?: string | null;
1098
+ stage_key: string;
1099
+ state_key: string;
1026
1100
  };
1027
1101
  Update: {
1102
+ activity_log?: Json;
1028
1103
  added_at?: string;
1029
1104
  added_by?: string | null;
1030
1105
  company_id?: string;
1031
1106
  id?: string;
1032
1107
  list_id?: string;
1108
+ pipeline_key?: string;
1109
+ processing_state?: Json;
1033
1110
  source_execution_id?: string | null;
1034
1111
  source_input_hash?: string | null;
1035
1112
  source_resource_id?: string | null;
1036
- stage?: string | null;
1037
- stage_updated_at?: string | null;
1113
+ stage_key?: string;
1114
+ state_key?: string;
1038
1115
  };
1039
1116
  Relationships: [
1040
1117
  {
1041
- foreignKeyName: "acq_list_companies_company_id_fkey";
1042
- columns: ["company_id"];
1118
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
1119
+ columns: ['company_id'];
1043
1120
  isOneToOne: false;
1044
- referencedRelation: "acq_companies";
1045
- referencedColumns: ["id"];
1121
+ referencedRelation: 'acq_companies';
1122
+ referencedColumns: ['id'];
1046
1123
  },
1047
1124
  {
1048
- foreignKeyName: "acq_list_companies_list_id_fkey";
1049
- columns: ["list_id"];
1125
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
1126
+ columns: ['list_id'];
1050
1127
  isOneToOne: false;
1051
- referencedRelation: "acq_lists";
1052
- referencedColumns: ["id"];
1128
+ referencedRelation: 'acq_lists';
1129
+ referencedColumns: ['id'];
1053
1130
  },
1054
1131
  {
1055
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
1056
- columns: ["source_execution_id"];
1132
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
1133
+ columns: ['source_execution_id'];
1057
1134
  isOneToOne: false;
1058
- referencedRelation: "execution_logs";
1059
- referencedColumns: ["execution_id"];
1135
+ referencedRelation: 'execution_logs';
1136
+ referencedColumns: ['execution_id'];
1060
1137
  }
1061
1138
  ];
1062
1139
  };
@@ -1084,79 +1161,88 @@ type Database = {
1084
1161
  };
1085
1162
  Relationships: [
1086
1163
  {
1087
- foreignKeyName: "acq_list_executions_execution_id_fkey";
1088
- columns: ["execution_id"];
1164
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
1165
+ columns: ['execution_id'];
1089
1166
  isOneToOne: false;
1090
- referencedRelation: "execution_logs";
1091
- referencedColumns: ["execution_id"];
1167
+ referencedRelation: 'execution_logs';
1168
+ referencedColumns: ['execution_id'];
1092
1169
  },
1093
1170
  {
1094
- foreignKeyName: "acq_list_executions_list_id_fkey";
1095
- columns: ["list_id"];
1171
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
1172
+ columns: ['list_id'];
1096
1173
  isOneToOne: false;
1097
- referencedRelation: "acq_lists";
1098
- referencedColumns: ["id"];
1174
+ referencedRelation: 'acq_lists';
1175
+ referencedColumns: ['id'];
1099
1176
  }
1100
1177
  ];
1101
1178
  };
1102
1179
  acq_list_members: {
1103
1180
  Row: {
1181
+ activity_log: Json;
1104
1182
  added_at: string;
1105
1183
  added_by: string | null;
1106
1184
  contact_id: string;
1107
1185
  id: string;
1108
1186
  list_id: string;
1187
+ pipeline_key: string;
1188
+ processing_state: Json;
1109
1189
  source_execution_id: string | null;
1110
1190
  source_input_hash: string | null;
1111
1191
  source_resource_id: string | null;
1112
- stage: string | null;
1113
- stage_updated_at: string | null;
1192
+ stage_key: string;
1193
+ state_key: string;
1114
1194
  };
1115
1195
  Insert: {
1196
+ activity_log?: Json;
1116
1197
  added_at?: string;
1117
1198
  added_by?: string | null;
1118
1199
  contact_id: string;
1119
1200
  id?: string;
1120
1201
  list_id: string;
1202
+ pipeline_key?: string;
1203
+ processing_state?: Json;
1121
1204
  source_execution_id?: string | null;
1122
1205
  source_input_hash?: string | null;
1123
1206
  source_resource_id?: string | null;
1124
- stage?: string | null;
1125
- stage_updated_at?: string | null;
1207
+ stage_key: string;
1208
+ state_key: string;
1126
1209
  };
1127
1210
  Update: {
1211
+ activity_log?: Json;
1128
1212
  added_at?: string;
1129
1213
  added_by?: string | null;
1130
1214
  contact_id?: string;
1131
1215
  id?: string;
1132
1216
  list_id?: string;
1217
+ pipeline_key?: string;
1218
+ processing_state?: Json;
1133
1219
  source_execution_id?: string | null;
1134
1220
  source_input_hash?: string | null;
1135
1221
  source_resource_id?: string | null;
1136
- stage?: string | null;
1137
- stage_updated_at?: string | null;
1222
+ stage_key?: string;
1223
+ state_key?: string;
1138
1224
  };
1139
1225
  Relationships: [
1140
1226
  {
1141
- foreignKeyName: "acq_list_members_contact_id_fkey";
1142
- columns: ["contact_id"];
1227
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
1228
+ columns: ['contact_id'];
1143
1229
  isOneToOne: false;
1144
- referencedRelation: "acq_contacts";
1145
- referencedColumns: ["id"];
1230
+ referencedRelation: 'acq_contacts';
1231
+ referencedColumns: ['id'];
1146
1232
  },
1147
1233
  {
1148
- foreignKeyName: "acq_list_members_list_id_fkey";
1149
- columns: ["list_id"];
1234
+ foreignKeyName: 'acq_list_members_list_id_fkey';
1235
+ columns: ['list_id'];
1150
1236
  isOneToOne: false;
1151
- referencedRelation: "acq_lists";
1152
- referencedColumns: ["id"];
1237
+ referencedRelation: 'acq_lists';
1238
+ referencedColumns: ['id'];
1153
1239
  },
1154
1240
  {
1155
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
1156
- columns: ["source_execution_id"];
1241
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
1242
+ columns: ['source_execution_id'];
1157
1243
  isOneToOne: false;
1158
- referencedRelation: "execution_logs";
1159
- referencedColumns: ["execution_id"];
1244
+ referencedRelation: 'execution_logs';
1245
+ referencedColumns: ['execution_id'];
1160
1246
  }
1161
1247
  ];
1162
1248
  };
@@ -1164,55 +1250,58 @@ type Database = {
1164
1250
  Row: {
1165
1251
  batch_ids: string[];
1166
1252
  completed_at: string | null;
1167
- config: Json;
1168
1253
  created_at: string;
1169
1254
  description: string | null;
1255
+ icp: Json;
1170
1256
  id: string;
1171
1257
  instantly_campaign_id: string | null;
1172
1258
  launched_at: string | null;
1173
1259
  metadata: Json;
1174
1260
  name: string;
1175
1261
  organization_id: string;
1262
+ pipeline_config: Json;
1263
+ scraping_config: Json;
1176
1264
  status: string;
1177
- type: string;
1178
1265
  };
1179
1266
  Insert: {
1180
1267
  batch_ids?: string[];
1181
1268
  completed_at?: string | null;
1182
- config?: Json;
1183
1269
  created_at?: string;
1184
1270
  description?: string | null;
1271
+ icp?: Json;
1185
1272
  id?: string;
1186
1273
  instantly_campaign_id?: string | null;
1187
1274
  launched_at?: string | null;
1188
1275
  metadata?: Json;
1189
1276
  name: string;
1190
1277
  organization_id: string;
1278
+ pipeline_config?: Json;
1279
+ scraping_config?: Json;
1191
1280
  status?: string;
1192
- type?: string;
1193
1281
  };
1194
1282
  Update: {
1195
1283
  batch_ids?: string[];
1196
1284
  completed_at?: string | null;
1197
- config?: Json;
1198
1285
  created_at?: string;
1199
1286
  description?: string | null;
1287
+ icp?: Json;
1200
1288
  id?: string;
1201
1289
  instantly_campaign_id?: string | null;
1202
1290
  launched_at?: string | null;
1203
1291
  metadata?: Json;
1204
1292
  name?: string;
1205
1293
  organization_id?: string;
1294
+ pipeline_config?: Json;
1295
+ scraping_config?: Json;
1206
1296
  status?: string;
1207
- type?: string;
1208
1297
  };
1209
1298
  Relationships: [
1210
1299
  {
1211
- foreignKeyName: "acq_lists_organization_id_fkey";
1212
- columns: ["organization_id"];
1300
+ foreignKeyName: 'acq_lists_organization_id_fkey';
1301
+ columns: ['organization_id'];
1213
1302
  isOneToOne: false;
1214
- referencedRelation: "organizations";
1215
- referencedColumns: ["id"];
1303
+ referencedRelation: 'organizations';
1304
+ referencedColumns: ['id'];
1216
1305
  }
1217
1306
  ];
1218
1307
  };
@@ -1288,18 +1377,18 @@ type Database = {
1288
1377
  };
1289
1378
  Relationships: [
1290
1379
  {
1291
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
1292
- columns: ["organization_id"];
1380
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
1381
+ columns: ['organization_id'];
1293
1382
  isOneToOne: false;
1294
- referencedRelation: "organizations";
1295
- referencedColumns: ["id"];
1383
+ referencedRelation: 'organizations';
1384
+ referencedColumns: ['id'];
1296
1385
  },
1297
1386
  {
1298
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
1299
- columns: ["seo_page_id"];
1387
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
1388
+ columns: ['seo_page_id'];
1300
1389
  isOneToOne: false;
1301
- referencedRelation: "acq_seo_pages";
1302
- referencedColumns: ["id"];
1390
+ referencedRelation: 'acq_seo_pages';
1391
+ referencedColumns: ['id'];
1303
1392
  }
1304
1393
  ];
1305
1394
  };
@@ -1375,11 +1464,11 @@ type Database = {
1375
1464
  };
1376
1465
  Relationships: [
1377
1466
  {
1378
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
1379
- columns: ["organization_id"];
1467
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1468
+ columns: ['organization_id'];
1380
1469
  isOneToOne: false;
1381
- referencedRelation: "organizations";
1382
- referencedColumns: ["id"];
1470
+ referencedRelation: 'organizations';
1471
+ referencedColumns: ['id'];
1383
1472
  }
1384
1473
  ];
1385
1474
  };
@@ -1476,11 +1565,11 @@ type Database = {
1476
1565
  };
1477
1566
  Relationships: [
1478
1567
  {
1479
- foreignKeyName: "acq_social_posts_organization_id_fkey";
1480
- columns: ["organization_id"];
1568
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1569
+ columns: ['organization_id'];
1481
1570
  isOneToOne: false;
1482
- referencedRelation: "organizations";
1483
- referencedColumns: ["id"];
1571
+ referencedRelation: 'organizations';
1572
+ referencedColumns: ['id'];
1484
1573
  }
1485
1574
  ];
1486
1575
  };
@@ -1535,11 +1624,11 @@ type Database = {
1535
1624
  };
1536
1625
  Relationships: [
1537
1626
  {
1538
- foreignKeyName: "activities_organization_id_fkey";
1539
- columns: ["organization_id"];
1627
+ foreignKeyName: 'activities_organization_id_fkey';
1628
+ columns: ['organization_id'];
1540
1629
  isOneToOne: false;
1541
- referencedRelation: "organizations";
1542
- referencedColumns: ["id"];
1630
+ referencedRelation: 'organizations';
1631
+ referencedColumns: ['id'];
1543
1632
  }
1544
1633
  ];
1545
1634
  };
@@ -1570,11 +1659,11 @@ type Database = {
1570
1659
  };
1571
1660
  Relationships: [
1572
1661
  {
1573
- foreignKeyName: "api_keys_organization_id_fkey";
1574
- columns: ["organization_id"];
1662
+ foreignKeyName: 'api_keys_organization_id_fkey';
1663
+ columns: ['organization_id'];
1575
1664
  isOneToOne: false;
1576
- referencedRelation: "organizations";
1577
- referencedColumns: ["id"];
1665
+ referencedRelation: 'organizations';
1666
+ referencedColumns: ['id'];
1578
1667
  }
1579
1668
  ];
1580
1669
  };
@@ -1653,25 +1742,25 @@ type Database = {
1653
1742
  };
1654
1743
  Relationships: [
1655
1744
  {
1656
- foreignKeyName: "command_queue_completed_by_fkey";
1657
- columns: ["completed_by"];
1745
+ foreignKeyName: 'command_queue_completed_by_fkey';
1746
+ columns: ['completed_by'];
1658
1747
  isOneToOne: false;
1659
- referencedRelation: "users";
1660
- referencedColumns: ["id"];
1748
+ referencedRelation: 'users';
1749
+ referencedColumns: ['id'];
1661
1750
  },
1662
1751
  {
1663
- foreignKeyName: "command_queue_organization_id_fkey";
1664
- columns: ["organization_id"];
1752
+ foreignKeyName: 'command_queue_organization_id_fkey';
1753
+ columns: ['organization_id'];
1665
1754
  isOneToOne: false;
1666
- referencedRelation: "organizations";
1667
- referencedColumns: ["id"];
1755
+ referencedRelation: 'organizations';
1756
+ referencedColumns: ['id'];
1668
1757
  },
1669
1758
  {
1670
- foreignKeyName: "command_queue_target_execution_id_fkey";
1671
- columns: ["target_execution_id"];
1759
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1760
+ columns: ['target_execution_id'];
1672
1761
  isOneToOne: false;
1673
- referencedRelation: "execution_logs";
1674
- referencedColumns: ["execution_id"];
1762
+ referencedRelation: 'execution_logs';
1763
+ referencedColumns: ['execution_id'];
1675
1764
  }
1676
1765
  ];
1677
1766
  };
@@ -1711,18 +1800,18 @@ type Database = {
1711
1800
  };
1712
1801
  Relationships: [
1713
1802
  {
1714
- foreignKeyName: "credentials_created_by_fkey";
1715
- columns: ["created_by"];
1803
+ foreignKeyName: 'credentials_created_by_fkey';
1804
+ columns: ['created_by'];
1716
1805
  isOneToOne: false;
1717
- referencedRelation: "users";
1718
- referencedColumns: ["id"];
1806
+ referencedRelation: 'users';
1807
+ referencedColumns: ['id'];
1719
1808
  },
1720
1809
  {
1721
- foreignKeyName: "credentials_organization_id_fkey";
1722
- columns: ["organization_id"];
1810
+ foreignKeyName: 'credentials_organization_id_fkey';
1811
+ columns: ['organization_id'];
1723
1812
  isOneToOne: false;
1724
- referencedRelation: "organizations";
1725
- referencedColumns: ["id"];
1813
+ referencedRelation: 'organizations';
1814
+ referencedColumns: ['id'];
1726
1815
  }
1727
1816
  ];
1728
1817
  };
@@ -1768,11 +1857,11 @@ type Database = {
1768
1857
  };
1769
1858
  Relationships: [
1770
1859
  {
1771
- foreignKeyName: "deployments_organization_id_fkey";
1772
- columns: ["organization_id"];
1860
+ foreignKeyName: 'deployments_organization_id_fkey';
1861
+ columns: ['organization_id'];
1773
1862
  isOneToOne: false;
1774
- referencedRelation: "organizations";
1775
- referencedColumns: ["id"];
1863
+ referencedRelation: 'organizations';
1864
+ referencedColumns: ['id'];
1776
1865
  }
1777
1866
  ];
1778
1867
  };
@@ -1827,25 +1916,25 @@ type Database = {
1827
1916
  };
1828
1917
  Relationships: [
1829
1918
  {
1830
- foreignKeyName: "execution_errors_execution_id_fkey";
1831
- columns: ["execution_id"];
1919
+ foreignKeyName: 'execution_errors_execution_id_fkey';
1920
+ columns: ['execution_id'];
1832
1921
  isOneToOne: false;
1833
- referencedRelation: "execution_logs";
1834
- referencedColumns: ["execution_id"];
1922
+ referencedRelation: 'execution_logs';
1923
+ referencedColumns: ['execution_id'];
1835
1924
  },
1836
1925
  {
1837
- foreignKeyName: "execution_errors_organization_id_fkey";
1838
- columns: ["organization_id"];
1926
+ foreignKeyName: 'execution_errors_organization_id_fkey';
1927
+ columns: ['organization_id'];
1839
1928
  isOneToOne: false;
1840
- referencedRelation: "organizations";
1841
- referencedColumns: ["id"];
1929
+ referencedRelation: 'organizations';
1930
+ referencedColumns: ['id'];
1842
1931
  },
1843
1932
  {
1844
- foreignKeyName: "execution_errors_resolved_by_fkey";
1845
- columns: ["resolved_by"];
1933
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
1934
+ columns: ['resolved_by'];
1846
1935
  isOneToOne: false;
1847
- referencedRelation: "users";
1848
- referencedColumns: ["id"];
1936
+ referencedRelation: 'users';
1937
+ referencedColumns: ['id'];
1849
1938
  }
1850
1939
  ];
1851
1940
  };
@@ -1927,32 +2016,32 @@ type Database = {
1927
2016
  };
1928
2017
  Relationships: [
1929
2018
  {
1930
- foreignKeyName: "execution_history_organization_id_fkey";
1931
- columns: ["organization_id"];
2019
+ foreignKeyName: 'execution_history_organization_id_fkey';
2020
+ columns: ['organization_id'];
1932
2021
  isOneToOne: false;
1933
- referencedRelation: "organizations";
1934
- referencedColumns: ["id"];
2022
+ referencedRelation: 'organizations';
2023
+ referencedColumns: ['id'];
1935
2024
  },
1936
2025
  {
1937
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
1938
- columns: ["origin_execution_id"];
2026
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2027
+ columns: ['origin_execution_id'];
1939
2028
  isOneToOne: false;
1940
- referencedRelation: "execution_logs";
1941
- referencedColumns: ["execution_id"];
2029
+ referencedRelation: 'execution_logs';
2030
+ referencedColumns: ['execution_id'];
1942
2031
  },
1943
2032
  {
1944
- foreignKeyName: "execution_logs_session_id_fkey";
1945
- columns: ["session_id"];
2033
+ foreignKeyName: 'execution_logs_session_id_fkey';
2034
+ columns: ['session_id'];
1946
2035
  isOneToOne: false;
1947
- referencedRelation: "sessions";
1948
- referencedColumns: ["session_id"];
2036
+ referencedRelation: 'sessions';
2037
+ referencedColumns: ['session_id'];
1949
2038
  },
1950
2039
  {
1951
- foreignKeyName: "execution_logs_user_id_fkey";
1952
- columns: ["user_id"];
2040
+ foreignKeyName: 'execution_logs_user_id_fkey';
2041
+ columns: ['user_id'];
1953
2042
  isOneToOne: false;
1954
- referencedRelation: "users";
1955
- referencedColumns: ["id"];
2043
+ referencedRelation: 'users';
2044
+ referencedColumns: ['id'];
1956
2045
  }
1957
2046
  ];
1958
2047
  };
@@ -1998,18 +2087,18 @@ type Database = {
1998
2087
  };
1999
2088
  Relationships: [
2000
2089
  {
2001
- foreignKeyName: "execution_metrics_execution_id_fkey";
2002
- columns: ["execution_id"];
2090
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
2091
+ columns: ['execution_id'];
2003
2092
  isOneToOne: true;
2004
- referencedRelation: "execution_logs";
2005
- referencedColumns: ["execution_id"];
2093
+ referencedRelation: 'execution_logs';
2094
+ referencedColumns: ['execution_id'];
2006
2095
  },
2007
2096
  {
2008
- foreignKeyName: "execution_metrics_organization_id_fkey";
2009
- columns: ["organization_id"];
2097
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
2098
+ columns: ['organization_id'];
2010
2099
  isOneToOne: false;
2011
- referencedRelation: "organizations";
2012
- referencedColumns: ["id"];
2100
+ referencedRelation: 'organizations';
2101
+ referencedColumns: ['id'];
2013
2102
  }
2014
2103
  ];
2015
2104
  };
@@ -2052,18 +2141,18 @@ type Database = {
2052
2141
  };
2053
2142
  Relationships: [
2054
2143
  {
2055
- foreignKeyName: "notifications_organization_id_fkey";
2056
- columns: ["organization_id"];
2144
+ foreignKeyName: 'notifications_organization_id_fkey';
2145
+ columns: ['organization_id'];
2057
2146
  isOneToOne: false;
2058
- referencedRelation: "organizations";
2059
- referencedColumns: ["id"];
2147
+ referencedRelation: 'organizations';
2148
+ referencedColumns: ['id'];
2060
2149
  },
2061
2150
  {
2062
- foreignKeyName: "notifications_user_id_fkey";
2063
- columns: ["user_id"];
2151
+ foreignKeyName: 'notifications_user_id_fkey';
2152
+ columns: ['user_id'];
2064
2153
  isOneToOne: false;
2065
- referencedRelation: "users";
2066
- referencedColumns: ["id"];
2154
+ referencedRelation: 'users';
2155
+ referencedColumns: ['id'];
2067
2156
  }
2068
2157
  ];
2069
2158
  };
@@ -2118,18 +2207,18 @@ type Database = {
2118
2207
  };
2119
2208
  Relationships: [
2120
2209
  {
2121
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
2122
- columns: ["inviter_user_id"];
2210
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2211
+ columns: ['inviter_user_id'];
2123
2212
  isOneToOne: false;
2124
- referencedRelation: "users";
2125
- referencedColumns: ["id"];
2213
+ referencedRelation: 'users';
2214
+ referencedColumns: ['id'];
2126
2215
  },
2127
2216
  {
2128
- foreignKeyName: "org_invitations_organization_id_fkey";
2129
- columns: ["organization_id"];
2217
+ foreignKeyName: 'org_invitations_organization_id_fkey';
2218
+ columns: ['organization_id'];
2130
2219
  isOneToOne: false;
2131
- referencedRelation: "organizations";
2132
- referencedColumns: ["id"];
2220
+ referencedRelation: 'organizations';
2221
+ referencedColumns: ['id'];
2133
2222
  }
2134
2223
  ];
2135
2224
  };
@@ -2172,18 +2261,18 @@ type Database = {
2172
2261
  };
2173
2262
  Relationships: [
2174
2263
  {
2175
- foreignKeyName: "org_memberships_organization_id_fkey";
2176
- columns: ["organization_id"];
2264
+ foreignKeyName: 'org_memberships_organization_id_fkey';
2265
+ columns: ['organization_id'];
2177
2266
  isOneToOne: false;
2178
- referencedRelation: "organizations";
2179
- referencedColumns: ["id"];
2267
+ referencedRelation: 'organizations';
2268
+ referencedColumns: ['id'];
2180
2269
  },
2181
2270
  {
2182
- foreignKeyName: "org_memberships_user_id_fkey";
2183
- columns: ["user_id"];
2271
+ foreignKeyName: 'org_memberships_user_id_fkey';
2272
+ columns: ['user_id'];
2184
2273
  isOneToOne: false;
2185
- referencedRelation: "users";
2186
- referencedColumns: ["id"];
2274
+ referencedRelation: 'users';
2275
+ referencedColumns: ['id'];
2187
2276
  }
2188
2277
  ];
2189
2278
  };
@@ -2208,25 +2297,25 @@ type Database = {
2208
2297
  };
2209
2298
  Relationships: [
2210
2299
  {
2211
- foreignKeyName: "org_rol_assignments_granted_by_fkey";
2212
- columns: ["granted_by"];
2300
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
2301
+ columns: ['granted_by'];
2213
2302
  isOneToOne: false;
2214
- referencedRelation: "users";
2215
- referencedColumns: ["id"];
2303
+ referencedRelation: 'users';
2304
+ referencedColumns: ['id'];
2216
2305
  },
2217
2306
  {
2218
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
2219
- columns: ["membership_id"];
2307
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
2308
+ columns: ['membership_id'];
2220
2309
  isOneToOne: false;
2221
- referencedRelation: "org_memberships";
2222
- referencedColumns: ["id"];
2310
+ referencedRelation: 'org_memberships';
2311
+ referencedColumns: ['id'];
2223
2312
  },
2224
2313
  {
2225
- foreignKeyName: "org_rol_assignments_role_id_fkey";
2226
- columns: ["role_id"];
2314
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
2315
+ columns: ['role_id'];
2227
2316
  isOneToOne: false;
2228
- referencedRelation: "org_rol_definitions";
2229
- referencedColumns: ["id"];
2317
+ referencedRelation: 'org_rol_definitions';
2318
+ referencedColumns: ['id'];
2230
2319
  }
2231
2320
  ];
2232
2321
  };
@@ -2263,11 +2352,11 @@ type Database = {
2263
2352
  };
2264
2353
  Relationships: [
2265
2354
  {
2266
- foreignKeyName: "org_rol_definitions_organization_id_fkey";
2267
- columns: ["organization_id"];
2355
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
2356
+ columns: ['organization_id'];
2268
2357
  isOneToOne: false;
2269
- referencedRelation: "organizations";
2270
- referencedColumns: ["id"];
2358
+ referencedRelation: 'organizations';
2359
+ referencedColumns: ['id'];
2271
2360
  }
2272
2361
  ];
2273
2362
  };
@@ -2289,18 +2378,18 @@ type Database = {
2289
2378
  };
2290
2379
  Relationships: [
2291
2380
  {
2292
- foreignKeyName: "org_rol_grants_permission_key_fkey";
2293
- columns: ["permission_key"];
2381
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
2382
+ columns: ['permission_key'];
2294
2383
  isOneToOne: false;
2295
- referencedRelation: "org_rol_permissions";
2296
- referencedColumns: ["key"];
2384
+ referencedRelation: 'org_rol_permissions';
2385
+ referencedColumns: ['key'];
2297
2386
  },
2298
2387
  {
2299
- foreignKeyName: "org_rol_grants_role_id_fkey";
2300
- columns: ["role_id"];
2388
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
2389
+ columns: ['role_id'];
2301
2390
  isOneToOne: false;
2302
- referencedRelation: "org_rol_definitions";
2303
- referencedColumns: ["id"];
2391
+ referencedRelation: 'org_rol_definitions';
2392
+ referencedColumns: ['id'];
2304
2393
  }
2305
2394
  ];
2306
2395
  };
@@ -2412,25 +2501,25 @@ type Database = {
2412
2501
  };
2413
2502
  Relationships: [
2414
2503
  {
2415
- foreignKeyName: "fk_milestones_project";
2416
- columns: ["project_id"];
2504
+ foreignKeyName: 'fk_milestones_project';
2505
+ columns: ['project_id'];
2417
2506
  isOneToOne: false;
2418
- referencedRelation: "prj_projects";
2419
- referencedColumns: ["id"];
2507
+ referencedRelation: 'prj_projects';
2508
+ referencedColumns: ['id'];
2420
2509
  },
2421
2510
  {
2422
- foreignKeyName: "prj_milestones_organization_id_fkey";
2423
- columns: ["organization_id"];
2511
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2512
+ columns: ['organization_id'];
2424
2513
  isOneToOne: false;
2425
- referencedRelation: "organizations";
2426
- referencedColumns: ["id"];
2514
+ referencedRelation: 'organizations';
2515
+ referencedColumns: ['id'];
2427
2516
  },
2428
2517
  {
2429
- foreignKeyName: "prj_milestones_project_id_fkey";
2430
- columns: ["project_id"];
2518
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2519
+ columns: ['project_id'];
2431
2520
  isOneToOne: false;
2432
- referencedRelation: "prj_projects";
2433
- referencedColumns: ["id"];
2521
+ referencedRelation: 'prj_projects';
2522
+ referencedColumns: ['id'];
2434
2523
  }
2435
2524
  ];
2436
2525
  };
@@ -2479,67 +2568,67 @@ type Database = {
2479
2568
  };
2480
2569
  Relationships: [
2481
2570
  {
2482
- foreignKeyName: "fk_notes_created_by";
2483
- columns: ["created_by"];
2571
+ foreignKeyName: 'fk_notes_created_by';
2572
+ columns: ['created_by'];
2484
2573
  isOneToOne: false;
2485
- referencedRelation: "users";
2486
- referencedColumns: ["id"];
2574
+ referencedRelation: 'users';
2575
+ referencedColumns: ['id'];
2487
2576
  },
2488
2577
  {
2489
- foreignKeyName: "fk_notes_milestone";
2490
- columns: ["milestone_id"];
2578
+ foreignKeyName: 'fk_notes_milestone';
2579
+ columns: ['milestone_id'];
2491
2580
  isOneToOne: false;
2492
- referencedRelation: "prj_milestones";
2493
- referencedColumns: ["id"];
2581
+ referencedRelation: 'prj_milestones';
2582
+ referencedColumns: ['id'];
2494
2583
  },
2495
2584
  {
2496
- foreignKeyName: "fk_notes_project";
2497
- columns: ["project_id"];
2585
+ foreignKeyName: 'fk_notes_project';
2586
+ columns: ['project_id'];
2498
2587
  isOneToOne: false;
2499
- referencedRelation: "prj_projects";
2500
- referencedColumns: ["id"];
2588
+ referencedRelation: 'prj_projects';
2589
+ referencedColumns: ['id'];
2501
2590
  },
2502
2591
  {
2503
- foreignKeyName: "fk_notes_task";
2504
- columns: ["task_id"];
2592
+ foreignKeyName: 'fk_notes_task';
2593
+ columns: ['task_id'];
2505
2594
  isOneToOne: false;
2506
- referencedRelation: "prj_tasks";
2507
- referencedColumns: ["id"];
2595
+ referencedRelation: 'prj_tasks';
2596
+ referencedColumns: ['id'];
2508
2597
  },
2509
2598
  {
2510
- foreignKeyName: "prj_notes_created_by_fkey";
2511
- columns: ["created_by"];
2599
+ foreignKeyName: 'prj_notes_created_by_fkey';
2600
+ columns: ['created_by'];
2512
2601
  isOneToOne: false;
2513
- referencedRelation: "users";
2514
- referencedColumns: ["id"];
2602
+ referencedRelation: 'users';
2603
+ referencedColumns: ['id'];
2515
2604
  },
2516
2605
  {
2517
- foreignKeyName: "prj_notes_milestone_id_fkey";
2518
- columns: ["milestone_id"];
2606
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2607
+ columns: ['milestone_id'];
2519
2608
  isOneToOne: false;
2520
- referencedRelation: "prj_milestones";
2521
- referencedColumns: ["id"];
2609
+ referencedRelation: 'prj_milestones';
2610
+ referencedColumns: ['id'];
2522
2611
  },
2523
2612
  {
2524
- foreignKeyName: "prj_notes_organization_id_fkey";
2525
- columns: ["organization_id"];
2613
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2614
+ columns: ['organization_id'];
2526
2615
  isOneToOne: false;
2527
- referencedRelation: "organizations";
2528
- referencedColumns: ["id"];
2616
+ referencedRelation: 'organizations';
2617
+ referencedColumns: ['id'];
2529
2618
  },
2530
2619
  {
2531
- foreignKeyName: "prj_notes_project_id_fkey";
2532
- columns: ["project_id"];
2620
+ foreignKeyName: 'prj_notes_project_id_fkey';
2621
+ columns: ['project_id'];
2533
2622
  isOneToOne: false;
2534
- referencedRelation: "prj_projects";
2535
- referencedColumns: ["id"];
2623
+ referencedRelation: 'prj_projects';
2624
+ referencedColumns: ['id'];
2536
2625
  },
2537
2626
  {
2538
- foreignKeyName: "prj_notes_task_id_fkey";
2539
- columns: ["task_id"];
2627
+ foreignKeyName: 'prj_notes_task_id_fkey';
2628
+ columns: ['task_id'];
2540
2629
  isOneToOne: false;
2541
- referencedRelation: "prj_tasks";
2542
- referencedColumns: ["id"];
2630
+ referencedRelation: 'prj_tasks';
2631
+ referencedColumns: ['id'];
2543
2632
  }
2544
2633
  ];
2545
2634
  };
@@ -2597,39 +2686,39 @@ type Database = {
2597
2686
  };
2598
2687
  Relationships: [
2599
2688
  {
2600
- foreignKeyName: "fk_projects_company";
2601
- columns: ["client_company_id"];
2689
+ foreignKeyName: 'fk_projects_company';
2690
+ columns: ['client_company_id'];
2602
2691
  isOneToOne: false;
2603
- referencedRelation: "acq_companies";
2604
- referencedColumns: ["id"];
2692
+ referencedRelation: 'acq_companies';
2693
+ referencedColumns: ['id'];
2605
2694
  },
2606
2695
  {
2607
- foreignKeyName: "fk_projects_deal";
2608
- columns: ["deal_id"];
2696
+ foreignKeyName: 'fk_projects_deal';
2697
+ columns: ['deal_id'];
2609
2698
  isOneToOne: false;
2610
- referencedRelation: "acq_deals";
2611
- referencedColumns: ["id"];
2699
+ referencedRelation: 'acq_deals';
2700
+ referencedColumns: ['id'];
2612
2701
  },
2613
2702
  {
2614
- foreignKeyName: "prj_projects_client_company_id_fkey";
2615
- columns: ["client_company_id"];
2703
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2704
+ columns: ['client_company_id'];
2616
2705
  isOneToOne: false;
2617
- referencedRelation: "acq_companies";
2618
- referencedColumns: ["id"];
2706
+ referencedRelation: 'acq_companies';
2707
+ referencedColumns: ['id'];
2619
2708
  },
2620
2709
  {
2621
- foreignKeyName: "prj_projects_deal_id_fkey";
2622
- columns: ["deal_id"];
2710
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2711
+ columns: ['deal_id'];
2623
2712
  isOneToOne: false;
2624
- referencedRelation: "acq_deals";
2625
- referencedColumns: ["id"];
2713
+ referencedRelation: 'acq_deals';
2714
+ referencedColumns: ['id'];
2626
2715
  },
2627
2716
  {
2628
- foreignKeyName: "prj_projects_organization_id_fkey";
2629
- columns: ["organization_id"];
2717
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2718
+ columns: ['organization_id'];
2630
2719
  isOneToOne: false;
2631
- referencedRelation: "organizations";
2632
- referencedColumns: ["id"];
2720
+ referencedRelation: 'organizations';
2721
+ referencedColumns: ['id'];
2633
2722
  }
2634
2723
  ];
2635
2724
  };
@@ -2693,53 +2782,53 @@ type Database = {
2693
2782
  };
2694
2783
  Relationships: [
2695
2784
  {
2696
- foreignKeyName: "fk_tasks_milestone";
2697
- columns: ["milestone_id"];
2785
+ foreignKeyName: 'fk_tasks_milestone';
2786
+ columns: ['milestone_id'];
2698
2787
  isOneToOne: false;
2699
- referencedRelation: "prj_milestones";
2700
- referencedColumns: ["id"];
2788
+ referencedRelation: 'prj_milestones';
2789
+ referencedColumns: ['id'];
2701
2790
  },
2702
2791
  {
2703
- foreignKeyName: "fk_tasks_parent";
2704
- columns: ["parent_task_id"];
2792
+ foreignKeyName: 'fk_tasks_parent';
2793
+ columns: ['parent_task_id'];
2705
2794
  isOneToOne: false;
2706
- referencedRelation: "prj_tasks";
2707
- referencedColumns: ["id"];
2795
+ referencedRelation: 'prj_tasks';
2796
+ referencedColumns: ['id'];
2708
2797
  },
2709
2798
  {
2710
- foreignKeyName: "fk_tasks_project";
2711
- columns: ["project_id"];
2799
+ foreignKeyName: 'fk_tasks_project';
2800
+ columns: ['project_id'];
2712
2801
  isOneToOne: false;
2713
- referencedRelation: "prj_projects";
2714
- referencedColumns: ["id"];
2802
+ referencedRelation: 'prj_projects';
2803
+ referencedColumns: ['id'];
2715
2804
  },
2716
2805
  {
2717
- foreignKeyName: "prj_tasks_milestone_id_fkey";
2718
- columns: ["milestone_id"];
2806
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
2807
+ columns: ['milestone_id'];
2719
2808
  isOneToOne: false;
2720
- referencedRelation: "prj_milestones";
2721
- referencedColumns: ["id"];
2809
+ referencedRelation: 'prj_milestones';
2810
+ referencedColumns: ['id'];
2722
2811
  },
2723
2812
  {
2724
- foreignKeyName: "prj_tasks_organization_id_fkey";
2725
- columns: ["organization_id"];
2813
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
2814
+ columns: ['organization_id'];
2726
2815
  isOneToOne: false;
2727
- referencedRelation: "organizations";
2728
- referencedColumns: ["id"];
2816
+ referencedRelation: 'organizations';
2817
+ referencedColumns: ['id'];
2729
2818
  },
2730
2819
  {
2731
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
2732
- columns: ["parent_task_id"];
2820
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
2821
+ columns: ['parent_task_id'];
2733
2822
  isOneToOne: false;
2734
- referencedRelation: "prj_tasks";
2735
- referencedColumns: ["id"];
2823
+ referencedRelation: 'prj_tasks';
2824
+ referencedColumns: ['id'];
2736
2825
  },
2737
2826
  {
2738
- foreignKeyName: "prj_tasks_project_id_fkey";
2739
- columns: ["project_id"];
2827
+ foreignKeyName: 'prj_tasks_project_id_fkey';
2828
+ columns: ['project_id'];
2740
2829
  isOneToOne: false;
2741
- referencedRelation: "prj_projects";
2742
- referencedColumns: ["id"];
2830
+ referencedRelation: 'prj_projects';
2831
+ referencedColumns: ['id'];
2743
2832
  }
2744
2833
  ];
2745
2834
  };
@@ -2809,25 +2898,25 @@ type Database = {
2809
2898
  };
2810
2899
  Relationships: [
2811
2900
  {
2812
- foreignKeyName: "reported_requests_organization_id_fkey";
2813
- columns: ["organization_id"];
2901
+ foreignKeyName: 'reported_requests_organization_id_fkey';
2902
+ columns: ['organization_id'];
2814
2903
  isOneToOne: false;
2815
- referencedRelation: "organizations";
2816
- referencedColumns: ["id"];
2904
+ referencedRelation: 'organizations';
2905
+ referencedColumns: ['id'];
2817
2906
  },
2818
2907
  {
2819
- foreignKeyName: "reported_requests_project_id_fkey";
2820
- columns: ["project_id"];
2908
+ foreignKeyName: 'reported_requests_project_id_fkey';
2909
+ columns: ['project_id'];
2821
2910
  isOneToOne: false;
2822
- referencedRelation: "prj_projects";
2823
- referencedColumns: ["id"];
2911
+ referencedRelation: 'prj_projects';
2912
+ referencedColumns: ['id'];
2824
2913
  },
2825
2914
  {
2826
- foreignKeyName: "reported_requests_task_id_fkey";
2827
- columns: ["task_id"];
2915
+ foreignKeyName: 'reported_requests_task_id_fkey';
2916
+ columns: ['task_id'];
2828
2917
  isOneToOne: false;
2829
- referencedRelation: "prj_tasks";
2830
- referencedColumns: ["id"];
2918
+ referencedRelation: 'prj_tasks';
2919
+ referencedColumns: ['id'];
2831
2920
  }
2832
2921
  ];
2833
2922
  };
@@ -2867,11 +2956,11 @@ type Database = {
2867
2956
  };
2868
2957
  Relationships: [
2869
2958
  {
2870
- foreignKeyName: "session_messages_session_id_fkey";
2871
- columns: ["session_id"];
2959
+ foreignKeyName: 'session_messages_session_id_fkey';
2960
+ columns: ['session_id'];
2872
2961
  isOneToOne: false;
2873
- referencedRelation: "sessions";
2874
- referencedColumns: ["session_id"];
2962
+ referencedRelation: 'sessions';
2963
+ referencedColumns: ['session_id'];
2875
2964
  }
2876
2965
  ];
2877
2966
  };
@@ -2926,18 +3015,18 @@ type Database = {
2926
3015
  };
2927
3016
  Relationships: [
2928
3017
  {
2929
- foreignKeyName: "fk_organization";
2930
- columns: ["organization_id"];
3018
+ foreignKeyName: 'fk_organization';
3019
+ columns: ['organization_id'];
2931
3020
  isOneToOne: false;
2932
- referencedRelation: "organizations";
2933
- referencedColumns: ["id"];
3021
+ referencedRelation: 'organizations';
3022
+ referencedColumns: ['id'];
2934
3023
  },
2935
3024
  {
2936
- foreignKeyName: "fk_user";
2937
- columns: ["user_id"];
3025
+ foreignKeyName: 'fk_user';
3026
+ columns: ['user_id'];
2938
3027
  isOneToOne: false;
2939
- referencedRelation: "users";
2940
- referencedColumns: ["id"];
3028
+ referencedRelation: 'users';
3029
+ referencedColumns: ['id'];
2941
3030
  }
2942
3031
  ];
2943
3032
  };
@@ -3013,11 +3102,11 @@ type Database = {
3013
3102
  };
3014
3103
  Relationships: [
3015
3104
  {
3016
- foreignKeyName: "task_schedules_organization_id_fkey";
3017
- columns: ["organization_id"];
3105
+ foreignKeyName: 'task_schedules_organization_id_fkey';
3106
+ columns: ['organization_id'];
3018
3107
  isOneToOne: false;
3019
- referencedRelation: "organizations";
3020
- referencedColumns: ["id"];
3108
+ referencedRelation: 'organizations';
3109
+ referencedColumns: ['id'];
3021
3110
  }
3022
3111
  ];
3023
3112
  };
@@ -3072,11 +3161,11 @@ type Database = {
3072
3161
  };
3073
3162
  Relationships: [
3074
3163
  {
3075
- foreignKeyName: "user_profiles_last_visited_org_fkey";
3076
- columns: ["last_visited_org"];
3164
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
3165
+ columns: ['last_visited_org'];
3077
3166
  isOneToOne: false;
3078
- referencedRelation: "organizations";
3079
- referencedColumns: ["id"];
3167
+ referencedRelation: 'organizations';
3168
+ referencedColumns: ['id'];
3080
3169
  }
3081
3170
  ];
3082
3171
  };
@@ -3125,11 +3214,11 @@ type Database = {
3125
3214
  };
3126
3215
  Relationships: [
3127
3216
  {
3128
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
3129
- columns: ["organization_id"];
3217
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
3218
+ columns: ['organization_id'];
3130
3219
  isOneToOne: false;
3131
- referencedRelation: "organizations";
3132
- referencedColumns: ["id"];
3220
+ referencedRelation: 'organizations';
3221
+ referencedColumns: ['id'];
3133
3222
  }
3134
3223
  ];
3135
3224
  };
@@ -3217,12 +3306,6 @@ type Database = {
3217
3306
  };
3218
3307
  Returns: boolean;
3219
3308
  };
3220
- is_org_admin: {
3221
- Args: {
3222
- org_id: string;
3223
- };
3224
- Returns: boolean;
3225
- };
3226
3309
  is_org_member: {
3227
3310
  Args: {
3228
3311
  org_id: string;
@@ -3283,17 +3366,17 @@ type Database = {
3283
3366
  };
3284
3367
  };
3285
3368
  };
3286
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
3287
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3288
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
3369
+ type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
3370
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
3371
+ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
3289
3372
  schema: keyof DatabaseWithoutInternals;
3290
3373
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
3291
3374
  schema: keyof DatabaseWithoutInternals;
3292
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
3375
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
3293
3376
  schema: keyof DatabaseWithoutInternals;
3294
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3377
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
3295
3378
  Row: infer R;
3296
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3379
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
3297
3380
  Row: infer R;
3298
3381
  } ? R : never : never;
3299
3382
 
@@ -3386,6 +3469,138 @@ interface ListTelemetry {
3386
3469
  activeWorkflows?: string[];
3387
3470
  }
3388
3471
 
3472
+ declare const TransitionItemRequestSchema: z.ZodObject<{
3473
+ pipelineKey: z.ZodString;
3474
+ stageKey: z.ZodString;
3475
+ stateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3476
+ reason: z.ZodOptional<z.ZodString>;
3477
+ expectedUpdatedAt: z.ZodOptional<z.ZodString>;
3478
+ }, z.core.$strict>;
3479
+ type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
3480
+ /**
3481
+ * Lifecycle status enum for `acq_lists.status` (mirrors DB CHECK constraint
3482
+ * from migration 20260428000003_lead_gen_acq_lists_status_and_config.sql).
3483
+ */
3484
+ declare const ListStatusSchema: z.ZodEnum<{
3485
+ closing: "closing";
3486
+ draft: "draft";
3487
+ enriching: "enriching";
3488
+ launched: "launched";
3489
+ archived: "archived";
3490
+ }>;
3491
+ declare const ListCompaniesQuerySchema: z.ZodObject<{
3492
+ search: z.ZodOptional<z.ZodString>;
3493
+ listId: z.ZodOptional<z.ZodString>;
3494
+ domain: z.ZodOptional<z.ZodString>;
3495
+ website: z.ZodOptional<z.ZodString>;
3496
+ segment: z.ZodOptional<z.ZodString>;
3497
+ category: z.ZodOptional<z.ZodString>;
3498
+ batchId: z.ZodOptional<z.ZodString>;
3499
+ status: z.ZodOptional<z.ZodEnum<{
3500
+ active: "active";
3501
+ invalid: "invalid";
3502
+ }>>;
3503
+ includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3504
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3505
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3506
+ }, z.core.$strict>;
3507
+ declare const ListContactsQuerySchema: z.ZodObject<{
3508
+ search: z.ZodOptional<z.ZodString>;
3509
+ listId: z.ZodOptional<z.ZodString>;
3510
+ openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3511
+ batchId: z.ZodOptional<z.ZodString>;
3512
+ contactStatus: z.ZodOptional<z.ZodEnum<{
3513
+ active: "active";
3514
+ invalid: "invalid";
3515
+ }>>;
3516
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3517
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3518
+ }, z.core.$strict>;
3519
+ declare const AcqCompanyResponseSchema: z.ZodObject<{
3520
+ id: z.ZodString;
3521
+ organizationId: z.ZodString;
3522
+ name: z.ZodString;
3523
+ domain: z.ZodNullable<z.ZodString>;
3524
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3525
+ website: z.ZodNullable<z.ZodString>;
3526
+ numEmployees: z.ZodNullable<z.ZodNumber>;
3527
+ foundedYear: z.ZodNullable<z.ZodNumber>;
3528
+ locationCity: z.ZodNullable<z.ZodString>;
3529
+ locationState: z.ZodNullable<z.ZodString>;
3530
+ category: z.ZodNullable<z.ZodString>;
3531
+ categoryPain: z.ZodNullable<z.ZodString>;
3532
+ segment: z.ZodNullable<z.ZodString>;
3533
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3534
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3535
+ source: z.ZodNullable<z.ZodString>;
3536
+ batchId: z.ZodNullable<z.ZodString>;
3537
+ status: z.ZodEnum<{
3538
+ active: "active";
3539
+ invalid: "invalid";
3540
+ }>;
3541
+ contactCount: z.ZodNumber;
3542
+ verticalResearch: z.ZodNullable<z.ZodString>;
3543
+ createdAt: z.ZodString;
3544
+ updatedAt: z.ZodString;
3545
+ }, z.core.$strip>;
3546
+ declare const AcqContactResponseSchema: z.ZodObject<{
3547
+ id: z.ZodString;
3548
+ organizationId: z.ZodString;
3549
+ companyId: z.ZodNullable<z.ZodString>;
3550
+ email: z.ZodString;
3551
+ emailValid: z.ZodNullable<z.ZodEnum<{
3552
+ VALID: "VALID";
3553
+ INVALID: "INVALID";
3554
+ RISKY: "RISKY";
3555
+ UNKNOWN: "UNKNOWN";
3556
+ }>>;
3557
+ firstName: z.ZodNullable<z.ZodString>;
3558
+ lastName: z.ZodNullable<z.ZodString>;
3559
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3560
+ title: z.ZodNullable<z.ZodString>;
3561
+ headline: z.ZodNullable<z.ZodString>;
3562
+ filterReason: z.ZodNullable<z.ZodString>;
3563
+ openingLine: z.ZodNullable<z.ZodString>;
3564
+ source: z.ZodNullable<z.ZodString>;
3565
+ sourceId: z.ZodNullable<z.ZodString>;
3566
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3567
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3568
+ attioPersonId: z.ZodNullable<z.ZodString>;
3569
+ batchId: z.ZodNullable<z.ZodString>;
3570
+ status: z.ZodEnum<{
3571
+ active: "active";
3572
+ invalid: "invalid";
3573
+ }>;
3574
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3575
+ id: z.ZodString;
3576
+ name: z.ZodString;
3577
+ domain: z.ZodNullable<z.ZodString>;
3578
+ website: z.ZodNullable<z.ZodString>;
3579
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3580
+ segment: z.ZodNullable<z.ZodString>;
3581
+ category: z.ZodNullable<z.ZodString>;
3582
+ status: z.ZodEnum<{
3583
+ active: "active";
3584
+ invalid: "invalid";
3585
+ }>;
3586
+ }, z.core.$strip>>>;
3587
+ createdAt: z.ZodString;
3588
+ updatedAt: z.ZodString;
3589
+ }, z.core.$strip>;
3590
+ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
3591
+ company: "company";
3592
+ contact: "contact";
3593
+ list: "list";
3594
+ deal: "deal";
3595
+ list_member: "list_member";
3596
+ }>;
3597
+ type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3598
+ type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3599
+ type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3600
+ type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3601
+ type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
3602
+ type ListStatus = z.infer<typeof ListStatusSchema>;
3603
+
3389
3604
  /**
3390
3605
  * Lead Service Types
3391
3606
  * CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
@@ -3700,109 +3915,11 @@ interface ProjectDetail extends ProjectRow {
3700
3915
  } | null;
3701
3916
  }
3702
3917
 
3703
- declare const ListCompaniesQuerySchema: z.ZodObject<{
3704
- search: z.ZodOptional<z.ZodString>;
3705
- listId: z.ZodOptional<z.ZodString>;
3706
- domain: z.ZodOptional<z.ZodString>;
3707
- website: z.ZodOptional<z.ZodString>;
3708
- segment: z.ZodOptional<z.ZodString>;
3709
- category: z.ZodOptional<z.ZodString>;
3710
- batchId: z.ZodOptional<z.ZodString>;
3711
- status: z.ZodOptional<z.ZodEnum<{
3712
- active: "active";
3713
- invalid: "invalid";
3714
- }>>;
3715
- includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3716
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3717
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3718
- }, z.core.$strict>;
3719
- declare const ListContactsQuerySchema: z.ZodObject<{
3720
- search: z.ZodOptional<z.ZodString>;
3721
- listId: z.ZodOptional<z.ZodString>;
3722
- openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3723
- batchId: z.ZodOptional<z.ZodString>;
3724
- contactStatus: z.ZodOptional<z.ZodEnum<{
3725
- active: "active";
3726
- invalid: "invalid";
3727
- }>>;
3728
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3729
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3730
- }, z.core.$strict>;
3731
- declare const AcqCompanyResponseSchema: z.ZodObject<{
3732
- id: z.ZodString;
3733
- organizationId: z.ZodString;
3734
- name: z.ZodString;
3735
- domain: z.ZodNullable<z.ZodString>;
3736
- linkedinUrl: z.ZodNullable<z.ZodString>;
3737
- website: z.ZodNullable<z.ZodString>;
3738
- numEmployees: z.ZodNullable<z.ZodNumber>;
3739
- foundedYear: z.ZodNullable<z.ZodNumber>;
3740
- locationCity: z.ZodNullable<z.ZodString>;
3741
- locationState: z.ZodNullable<z.ZodString>;
3742
- category: z.ZodNullable<z.ZodString>;
3743
- categoryPain: z.ZodNullable<z.ZodString>;
3744
- segment: z.ZodNullable<z.ZodString>;
3745
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3746
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3747
- source: z.ZodNullable<z.ZodString>;
3748
- batchId: z.ZodNullable<z.ZodString>;
3749
- status: z.ZodEnum<{
3750
- active: "active";
3751
- invalid: "invalid";
3752
- }>;
3753
- contactCount: z.ZodNumber;
3754
- verticalResearch: z.ZodNullable<z.ZodString>;
3755
- createdAt: z.ZodString;
3756
- updatedAt: z.ZodString;
3757
- }, z.core.$strip>;
3758
- declare const AcqContactResponseSchema: z.ZodObject<{
3759
- id: z.ZodString;
3760
- organizationId: z.ZodString;
3761
- companyId: z.ZodNullable<z.ZodString>;
3762
- email: z.ZodString;
3763
- emailValid: z.ZodNullable<z.ZodEnum<{
3764
- VALID: "VALID";
3765
- INVALID: "INVALID";
3766
- RISKY: "RISKY";
3767
- UNKNOWN: "UNKNOWN";
3768
- }>>;
3769
- firstName: z.ZodNullable<z.ZodString>;
3770
- lastName: z.ZodNullable<z.ZodString>;
3771
- linkedinUrl: z.ZodNullable<z.ZodString>;
3772
- title: z.ZodNullable<z.ZodString>;
3773
- headline: z.ZodNullable<z.ZodString>;
3774
- filterReason: z.ZodNullable<z.ZodString>;
3775
- openingLine: z.ZodNullable<z.ZodString>;
3776
- source: z.ZodNullable<z.ZodString>;
3777
- sourceId: z.ZodNullable<z.ZodString>;
3778
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3779
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3780
- attioPersonId: z.ZodNullable<z.ZodString>;
3781
- batchId: z.ZodNullable<z.ZodString>;
3782
- status: z.ZodEnum<{
3783
- active: "active";
3784
- invalid: "invalid";
3785
- }>;
3786
- company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3787
- id: z.ZodString;
3788
- name: z.ZodString;
3789
- domain: z.ZodNullable<z.ZodString>;
3790
- website: z.ZodNullable<z.ZodString>;
3791
- linkedinUrl: z.ZodNullable<z.ZodString>;
3792
- segment: z.ZodNullable<z.ZodString>;
3793
- category: z.ZodNullable<z.ZodString>;
3794
- status: z.ZodEnum<{
3795
- active: "active";
3796
- invalid: "invalid";
3797
- }>;
3798
- }, z.core.$strip>>>;
3799
- createdAt: z.ZodString;
3800
- updatedAt: z.ZodString;
3801
- }, z.core.$strip>;
3802
- type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3803
- type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3804
- type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3805
- type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3918
+ interface Action {
3919
+ key: string;
3920
+ label: string;
3921
+ payloadSchema?: z.ZodTypeAny;
3922
+ }
3806
3923
 
3807
3924
  type MessageType = MessageEvent['type'];
3808
3925
  /**
@@ -4752,7 +4869,7 @@ interface Activity {
4752
4869
  *
4753
4870
  * The DB table `org_rol_permissions` mirrors this constant. Reconciliation
4754
4871
  * runs at API boot (insert-or-update only — never auto-delete; see the
4755
- * deletion runbook in the auth-role-system-redesign doc).
4872
+ * deletion runbook in the auth-role-system doc -- review/auth-role-system/).
4756
4873
  *
4757
4874
  * Adding a permission:
4758
4875
  * 1. Add an entry below.
@@ -4772,7 +4889,8 @@ declare const PERMISSIONS: {
4772
4889
  readonly SECRETS_MANAGE: "secrets.manage";
4773
4890
  readonly OPERATIONS_READ: "operations.read";
4774
4891
  readonly OPERATIONS_MANAGE: "operations.manage";
4775
- readonly WORK_MANAGE: "work.manage";
4892
+ readonly ACQUISITION_MANAGE: "acquisition.manage";
4893
+ readonly PROJECTS_MANAGE: "projects.manage";
4776
4894
  };
4777
4895
  type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
4778
4896
  /**
@@ -6687,7 +6805,7 @@ interface DealSummaryStageItem {
6687
6805
  interface StaleDealSummaryItem {
6688
6806
  id: string;
6689
6807
  contactEmail: string;
6690
- cachedStage: string;
6808
+ stageKey: string;
6691
6809
  updatedAt: string;
6692
6810
  daysStale: number;
6693
6811
  }
@@ -6705,7 +6823,7 @@ interface DealsSummaryResponse {
6705
6823
  interface DealLookupItem {
6706
6824
  id: string;
6707
6825
  contactEmail: string;
6708
- cachedStage: string | null;
6826
+ stageKey: string | null;
6709
6827
  updatedAt: string;
6710
6828
  contactName: string | null;
6711
6829
  companyName: string | null;
@@ -6762,13 +6880,14 @@ declare function useDeals(filters?: DealFilters): {
6762
6880
  organization_id: string;
6763
6881
  contact_id: string | null;
6764
6882
  contact_email: string;
6765
- cached_stage: string | null;
6883
+ pipeline_key: string;
6884
+ stage_key: string | null;
6885
+ state_key: string | null;
6766
6886
  activity_log: unknown;
6767
6887
  discovery_data: unknown;
6768
6888
  discovery_submitted_at: string | null;
6769
6889
  discovery_submitted_by: string | null;
6770
6890
  proposal_data: unknown;
6771
- proposal_status: string | null;
6772
6891
  proposal_sent_at: string | null;
6773
6892
  proposal_pdf_url: string | null;
6774
6893
  signature_envelope_id: string | null;
@@ -6814,13 +6933,14 @@ declare function useDeals(filters?: DealFilters): {
6814
6933
  organization_id: string;
6815
6934
  contact_id: string | null;
6816
6935
  contact_email: string;
6817
- cached_stage: string | null;
6936
+ pipeline_key: string;
6937
+ stage_key: string | null;
6938
+ state_key: string | null;
6818
6939
  activity_log: unknown;
6819
6940
  discovery_data: unknown;
6820
6941
  discovery_submitted_at: string | null;
6821
6942
  discovery_submitted_by: string | null;
6822
6943
  proposal_data: unknown;
6823
- proposal_status: string | null;
6824
6944
  proposal_sent_at: string | null;
6825
6945
  proposal_pdf_url: string | null;
6826
6946
  signature_envelope_id: string | null;
@@ -6879,17 +6999,39 @@ declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void,
6879
6999
 
6880
7000
  declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
6881
7001
 
6882
- interface SyncDealStageParams {
7002
+ interface TransitionItemInput {
6883
7003
  dealId: string;
6884
- stage: DealStage;
7004
+ pipelineKey: string;
7005
+ stageKey: string;
7006
+ stateKey?: string | null;
7007
+ reason?: string;
7008
+ expectedUpdatedAt?: string;
6885
7009
  }
6886
7010
  /**
6887
- * Sync a deal's cached_stage via the API.
7011
+ * Transition a deal's stage/state via the PATCH /deals/:dealId/transition endpoint.
6888
7012
  *
6889
- * The backend syncDealStage method additionally logs a stage_change activity entry.
6890
- * On success invalidates the deals list and the specific deal detail query.
7013
+ * The backend transitionItem handler logs a stage_change activity entry and enforces
7014
+ * optimistic-concurrency via expectedUpdatedAt (optional).
7015
+ * On success invalidates the deals list, summaries, and the specific deal detail query.
6891
7016
  */
6892
- declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
7017
+ declare function useTransitionItem(): _tanstack_react_query.UseMutationResult<void, Error, TransitionItemInput, unknown>;
7018
+
7019
+ interface ExecuteActionInput {
7020
+ key: string;
7021
+ payload?: Record<string, unknown>;
7022
+ }
7023
+ /**
7024
+ * Execute a CRM deal action via POST /deals/:dealId/actions/:key.
7025
+ *
7026
+ * The server validates availability server-authoritatively, dispatches through
7027
+ * the unified workflow path via the action definition's workflowId, and emits an
7028
+ * action_taken activity event.
7029
+ *
7030
+ * On success invalidates the deal detail and deals list queries.
7031
+ */
7032
+ declare function useExecuteAction({ dealId }: {
7033
+ dealId: string;
7034
+ }): _tanstack_react_query.UseMutationResult<void, Error, ExecuteActionInput, unknown>;
6893
7035
 
6894
7036
  /**
6895
7037
  * Query keys for deal notes
@@ -6983,45 +7125,32 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
6983
7125
  type: string;
6984
7126
  batchIds: string[];
6985
7127
  instantlyCampaignId: string | null;
6986
- status: string;
7128
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
6987
7129
  metadata: Record<string, unknown>;
6988
7130
  launchedAt: string | null;
6989
7131
  completedAt: string | null;
6990
7132
  createdAt: string;
6991
- config: {
6992
- qualification: {
6993
- targetDescription: string;
6994
- minReviewCount: number;
6995
- minRating: number;
6996
- excludeFranchises: boolean;
6997
- customRules: string;
6998
- };
6999
- enrichment?: {
7000
- emailDiscovery?: {
7001
- primary: "tomba" | "anymailfinder";
7002
- credentialName?: string | undefined;
7003
- } | undefined;
7004
- emailVerification?: {
7005
- provider: "millionverifier";
7006
- threshold?: "ok" | "ok+catch_all" | undefined;
7007
- } | undefined;
7008
- } | undefined;
7009
- personalization?: {
7010
- industryContext?: string | undefined;
7011
- emailBody?: string | undefined;
7012
- creativeDirection?: string | undefined;
7013
- exclusionRules?: string[] | undefined;
7014
- } | undefined;
7015
- pipeline?: {
7016
- steps: {
7017
- key: string;
7018
- label: string;
7019
- resourceId: string;
7020
- inputTemplate: Record<string, unknown>;
7021
- enabled: boolean;
7022
- order: number;
7023
- }[];
7024
- } | undefined;
7133
+ scrapingConfig: {
7134
+ vertical?: string | undefined;
7135
+ geography?: string | undefined;
7136
+ size?: string | undefined;
7137
+ apifyInput?: Record<string, unknown> | undefined;
7138
+ };
7139
+ icp: {
7140
+ qualificationRubricKey?: string | null | undefined;
7141
+ targetDescription?: string | undefined;
7142
+ minReviewCount?: number | undefined;
7143
+ minRating?: number | undefined;
7144
+ excludeFranchises?: boolean | undefined;
7145
+ customRules?: string | undefined;
7146
+ };
7147
+ pipelineConfig: {
7148
+ stages?: {
7149
+ key: string;
7150
+ label?: string | undefined;
7151
+ enabled?: boolean | undefined;
7152
+ order?: number | undefined;
7153
+ }[] | undefined;
7025
7154
  };
7026
7155
  }[], Error>;
7027
7156
  declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
@@ -7032,49 +7161,47 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7032
7161
  type: string;
7033
7162
  batchIds: string[];
7034
7163
  instantlyCampaignId: string | null;
7035
- status: string;
7164
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7036
7165
  metadata: Record<string, unknown>;
7037
7166
  launchedAt: string | null;
7038
7167
  completedAt: string | null;
7039
7168
  createdAt: string;
7040
- config: {
7041
- qualification: {
7042
- targetDescription: string;
7043
- minReviewCount: number;
7044
- minRating: number;
7045
- excludeFranchises: boolean;
7046
- customRules: string;
7047
- };
7048
- enrichment?: {
7049
- emailDiscovery?: {
7050
- primary: "tomba" | "anymailfinder";
7051
- credentialName?: string | undefined;
7052
- } | undefined;
7053
- emailVerification?: {
7054
- provider: "millionverifier";
7055
- threshold?: "ok" | "ok+catch_all" | undefined;
7056
- } | undefined;
7057
- } | undefined;
7058
- personalization?: {
7059
- industryContext?: string | undefined;
7060
- emailBody?: string | undefined;
7061
- creativeDirection?: string | undefined;
7062
- exclusionRules?: string[] | undefined;
7063
- } | undefined;
7064
- pipeline?: {
7065
- steps: {
7066
- key: string;
7067
- label: string;
7068
- resourceId: string;
7069
- inputTemplate: Record<string, unknown>;
7070
- enabled: boolean;
7071
- order: number;
7072
- }[];
7073
- } | undefined;
7169
+ scrapingConfig: {
7170
+ vertical?: string | undefined;
7171
+ geography?: string | undefined;
7172
+ size?: string | undefined;
7173
+ apifyInput?: Record<string, unknown> | undefined;
7174
+ };
7175
+ icp: {
7176
+ qualificationRubricKey?: string | null | undefined;
7177
+ targetDescription?: string | undefined;
7178
+ minReviewCount?: number | undefined;
7179
+ minRating?: number | undefined;
7180
+ excludeFranchises?: boolean | undefined;
7181
+ customRules?: string | undefined;
7182
+ };
7183
+ pipelineConfig: {
7184
+ stages?: {
7185
+ key: string;
7186
+ label?: string | undefined;
7187
+ enabled?: boolean | undefined;
7188
+ order?: number | undefined;
7189
+ }[] | undefined;
7074
7190
  };
7075
7191
  }, Error>;
7076
7192
  declare function useListsTelemetry(): _tanstack_react_query.UseQueryResult<ListTelemetry[], Error>;
7077
- declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<ListTelemetry, Error>;
7193
+ declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<{
7194
+ totalMembers: number;
7195
+ totalCompanies: number;
7196
+ byCompanyStage: Record<string, {
7197
+ done: number;
7198
+ total: number;
7199
+ }>;
7200
+ byContactStage: Record<string, {
7201
+ done: number;
7202
+ total: number;
7203
+ }>;
7204
+ }, Error>;
7078
7205
  declare function useListExecutions(listId: string): _tanstack_react_query.UseQueryResult<{
7079
7206
  executionId: string;
7080
7207
  resourceId: string;
@@ -7091,84 +7218,58 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7091
7218
  type: string;
7092
7219
  batchIds: string[];
7093
7220
  instantlyCampaignId: string | null;
7094
- status: string;
7221
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7095
7222
  metadata: Record<string, unknown>;
7096
7223
  launchedAt: string | null;
7097
7224
  completedAt: string | null;
7098
7225
  createdAt: string;
7099
- config: {
7100
- qualification: {
7101
- targetDescription: string;
7102
- minReviewCount: number;
7103
- minRating: number;
7104
- excludeFranchises: boolean;
7105
- customRules: string;
7106
- };
7107
- enrichment?: {
7108
- emailDiscovery?: {
7109
- primary: "tomba" | "anymailfinder";
7110
- credentialName?: string | undefined;
7111
- } | undefined;
7112
- emailVerification?: {
7113
- provider: "millionverifier";
7114
- threshold?: "ok" | "ok+catch_all" | undefined;
7115
- } | undefined;
7116
- } | undefined;
7117
- personalization?: {
7118
- industryContext?: string | undefined;
7119
- emailBody?: string | undefined;
7120
- creativeDirection?: string | undefined;
7121
- exclusionRules?: string[] | undefined;
7122
- } | undefined;
7123
- pipeline?: {
7124
- steps: {
7125
- key: string;
7126
- label: string;
7127
- resourceId: string;
7128
- inputTemplate: Record<string, unknown>;
7129
- enabled: boolean;
7130
- order: number;
7131
- }[];
7132
- } | undefined;
7226
+ scrapingConfig: {
7227
+ vertical?: string | undefined;
7228
+ geography?: string | undefined;
7229
+ size?: string | undefined;
7230
+ apifyInput?: Record<string, unknown> | undefined;
7231
+ };
7232
+ icp: {
7233
+ qualificationRubricKey?: string | null | undefined;
7234
+ targetDescription?: string | undefined;
7235
+ minReviewCount?: number | undefined;
7236
+ minRating?: number | undefined;
7237
+ excludeFranchises?: boolean | undefined;
7238
+ customRules?: string | undefined;
7239
+ };
7240
+ pipelineConfig: {
7241
+ stages?: {
7242
+ key: string;
7243
+ label?: string | undefined;
7244
+ enabled?: boolean | undefined;
7245
+ order?: number | undefined;
7246
+ }[] | undefined;
7133
7247
  };
7134
7248
  }, Error, {
7135
7249
  name: string;
7136
- type: string;
7137
7250
  description?: string | null | undefined;
7138
- config?: {
7139
- qualification: {
7140
- targetDescription: string;
7141
- minReviewCount: number;
7142
- minRating: number;
7143
- excludeFranchises: boolean;
7144
- customRules: string;
7145
- };
7146
- enrichment?: {
7147
- emailDiscovery?: {
7148
- primary: "tomba" | "anymailfinder";
7149
- credentialName?: string | undefined;
7150
- } | undefined;
7151
- emailVerification?: {
7152
- provider: "millionverifier";
7153
- threshold?: "ok" | "ok+catch_all" | undefined;
7154
- } | undefined;
7155
- } | undefined;
7156
- personalization?: {
7157
- industryContext?: string | undefined;
7158
- emailBody?: string | undefined;
7159
- creativeDirection?: string | undefined;
7160
- exclusionRules?: string[] | undefined;
7161
- } | undefined;
7162
- pipeline?: {
7163
- steps: {
7164
- key: string;
7165
- label: string;
7166
- resourceId: string;
7167
- inputTemplate: Record<string, unknown>;
7168
- enabled: boolean;
7169
- order: number;
7170
- }[];
7171
- } | undefined;
7251
+ status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
7252
+ scrapingConfig?: {
7253
+ vertical?: string | undefined;
7254
+ geography?: string | undefined;
7255
+ size?: string | undefined;
7256
+ apifyInput?: Record<string, unknown> | undefined;
7257
+ } | undefined;
7258
+ icp?: {
7259
+ qualificationRubricKey?: string | null | undefined;
7260
+ targetDescription?: string | undefined;
7261
+ minReviewCount?: number | undefined;
7262
+ minRating?: number | undefined;
7263
+ excludeFranchises?: boolean | undefined;
7264
+ customRules?: string | undefined;
7265
+ } | undefined;
7266
+ pipelineConfig?: {
7267
+ stages?: {
7268
+ key: string;
7269
+ label?: string | undefined;
7270
+ enabled?: boolean | undefined;
7271
+ order?: number | undefined;
7272
+ }[] | undefined;
7172
7273
  } | undefined;
7173
7274
  }, unknown>;
7174
7275
  declare function useUpdateList(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -7179,50 +7280,36 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
7179
7280
  type: string;
7180
7281
  batchIds: string[];
7181
7282
  instantlyCampaignId: string | null;
7182
- status: string;
7283
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7183
7284
  metadata: Record<string, unknown>;
7184
7285
  launchedAt: string | null;
7185
7286
  completedAt: string | null;
7186
7287
  createdAt: string;
7187
- config: {
7188
- qualification: {
7189
- targetDescription: string;
7190
- minReviewCount: number;
7191
- minRating: number;
7192
- excludeFranchises: boolean;
7193
- customRules: string;
7194
- };
7195
- enrichment?: {
7196
- emailDiscovery?: {
7197
- primary: "tomba" | "anymailfinder";
7198
- credentialName?: string | undefined;
7199
- } | undefined;
7200
- emailVerification?: {
7201
- provider: "millionverifier";
7202
- threshold?: "ok" | "ok+catch_all" | undefined;
7203
- } | undefined;
7204
- } | undefined;
7205
- personalization?: {
7206
- industryContext?: string | undefined;
7207
- emailBody?: string | undefined;
7208
- creativeDirection?: string | undefined;
7209
- exclusionRules?: string[] | undefined;
7210
- } | undefined;
7211
- pipeline?: {
7212
- steps: {
7213
- key: string;
7214
- label: string;
7215
- resourceId: string;
7216
- inputTemplate: Record<string, unknown>;
7217
- enabled: boolean;
7218
- order: number;
7219
- }[];
7220
- } | undefined;
7288
+ scrapingConfig: {
7289
+ vertical?: string | undefined;
7290
+ geography?: string | undefined;
7291
+ size?: string | undefined;
7292
+ apifyInput?: Record<string, unknown> | undefined;
7293
+ };
7294
+ icp: {
7295
+ qualificationRubricKey?: string | null | undefined;
7296
+ targetDescription?: string | undefined;
7297
+ minReviewCount?: number | undefined;
7298
+ minRating?: number | undefined;
7299
+ excludeFranchises?: boolean | undefined;
7300
+ customRules?: string | undefined;
7301
+ };
7302
+ pipelineConfig: {
7303
+ stages?: {
7304
+ key: string;
7305
+ label?: string | undefined;
7306
+ enabled?: boolean | undefined;
7307
+ order?: number | undefined;
7308
+ }[] | undefined;
7221
7309
  };
7222
7310
  }, Error, {
7223
7311
  name?: string | undefined;
7224
7312
  description?: string | null | undefined;
7225
- status?: string | undefined;
7226
7313
  batchIds?: string[] | undefined;
7227
7314
  }, unknown>;
7228
7315
  declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -7233,78 +7320,54 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7233
7320
  type: string;
7234
7321
  batchIds: string[];
7235
7322
  instantlyCampaignId: string | null;
7236
- status: string;
7323
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7237
7324
  metadata: Record<string, unknown>;
7238
7325
  launchedAt: string | null;
7239
7326
  completedAt: string | null;
7240
7327
  createdAt: string;
7241
- config: {
7242
- qualification: {
7243
- targetDescription: string;
7244
- minReviewCount: number;
7245
- minRating: number;
7246
- excludeFranchises: boolean;
7247
- customRules: string;
7248
- };
7249
- enrichment?: {
7250
- emailDiscovery?: {
7251
- primary: "tomba" | "anymailfinder";
7252
- credentialName?: string | undefined;
7253
- } | undefined;
7254
- emailVerification?: {
7255
- provider: "millionverifier";
7256
- threshold?: "ok" | "ok+catch_all" | undefined;
7257
- } | undefined;
7258
- } | undefined;
7259
- personalization?: {
7260
- industryContext?: string | undefined;
7261
- emailBody?: string | undefined;
7262
- creativeDirection?: string | undefined;
7263
- exclusionRules?: string[] | undefined;
7264
- } | undefined;
7265
- pipeline?: {
7266
- steps: {
7267
- key: string;
7268
- label: string;
7269
- resourceId: string;
7270
- inputTemplate: Record<string, unknown>;
7271
- enabled: boolean;
7272
- order: number;
7273
- }[];
7274
- } | undefined;
7328
+ scrapingConfig: {
7329
+ vertical?: string | undefined;
7330
+ geography?: string | undefined;
7331
+ size?: string | undefined;
7332
+ apifyInput?: Record<string, unknown> | undefined;
7275
7333
  };
7276
- }, Error, {
7277
- qualification?: {
7334
+ icp: {
7335
+ qualificationRubricKey?: string | null | undefined;
7278
7336
  targetDescription?: string | undefined;
7279
7337
  minReviewCount?: number | undefined;
7280
7338
  minRating?: number | undefined;
7281
7339
  excludeFranchises?: boolean | undefined;
7282
7340
  customRules?: string | undefined;
7341
+ };
7342
+ pipelineConfig: {
7343
+ stages?: {
7344
+ key: string;
7345
+ label?: string | undefined;
7346
+ enabled?: boolean | undefined;
7347
+ order?: number | undefined;
7348
+ }[] | undefined;
7349
+ };
7350
+ }, Error, {
7351
+ scrapingConfig?: {
7352
+ vertical?: string | undefined;
7353
+ geography?: string | undefined;
7354
+ size?: string | undefined;
7355
+ apifyInput?: Record<string, unknown> | undefined;
7283
7356
  } | undefined;
7284
- enrichment?: {
7285
- emailDiscovery?: {
7286
- primary: "tomba" | "anymailfinder";
7287
- credentialName?: string | undefined;
7288
- } | undefined;
7289
- emailVerification?: {
7290
- provider: "millionverifier";
7291
- threshold?: "ok" | "ok+catch_all" | undefined;
7292
- } | undefined;
7293
- } | undefined;
7294
- personalization?: {
7295
- industryContext?: string | undefined;
7296
- emailBody?: string | undefined;
7297
- creativeDirection?: string | undefined;
7298
- exclusionRules?: string[] | undefined;
7357
+ icp?: {
7358
+ qualificationRubricKey?: string | null | undefined;
7359
+ targetDescription?: string | undefined;
7360
+ minReviewCount?: number | undefined;
7361
+ minRating?: number | undefined;
7362
+ excludeFranchises?: boolean | undefined;
7363
+ customRules?: string | undefined;
7299
7364
  } | undefined;
7300
- pipeline?: {
7301
- steps?: {
7365
+ pipelineConfig?: {
7366
+ stages?: {
7302
7367
  key: string;
7303
- label: string;
7304
- resourceId: string;
7305
- inputTemplate: Record<string, unknown>;
7306
- enabled: boolean;
7307
- order: number;
7368
+ label?: string | undefined;
7369
+ enabled?: boolean | undefined;
7370
+ order?: number | undefined;
7308
7371
  }[] | undefined;
7309
7372
  } | undefined;
7310
7373
  }, unknown>;
@@ -7649,6 +7712,166 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
7649
7712
  }, unknown>;
7650
7713
  declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
7651
7714
 
7715
+ declare const leadGenArtifactKeys: {
7716
+ all: readonly ["lead-gen-artifacts"];
7717
+ list: (organizationId: string | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", string | null, "company" | "contact" | "list" | "deal" | "list_member", string];
7718
+ };
7719
+ interface UseArtifactsParams {
7720
+ ownerKind: AcqArtifactOwnerKind;
7721
+ ownerId: string;
7722
+ }
7723
+ declare function useArtifacts({ ownerKind, ownerId }: UseArtifactsParams): _tanstack_react_query.UseQueryResult<{
7724
+ artifacts: {
7725
+ id: string;
7726
+ organizationId: string;
7727
+ ownerKind: string;
7728
+ ownerId: string;
7729
+ kind: string;
7730
+ content: Record<string, unknown>;
7731
+ sourceExecutionId: string | null;
7732
+ createdBy: string | null;
7733
+ createdAt: string;
7734
+ version: number;
7735
+ }[];
7736
+ }, Error>;
7737
+ declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
7738
+ id: string;
7739
+ organizationId: string;
7740
+ ownerKind: string;
7741
+ ownerId: string;
7742
+ kind: string;
7743
+ content: Record<string, unknown>;
7744
+ sourceExecutionId: string | null;
7745
+ createdBy: string | null;
7746
+ createdAt: string;
7747
+ version: number;
7748
+ }, Error, {
7749
+ ownerKind: "company" | "contact" | "list" | "deal" | "list_member";
7750
+ ownerId: string;
7751
+ kind: string;
7752
+ content: Record<string, unknown>;
7753
+ sourceExecutionId?: string | undefined;
7754
+ }, unknown>;
7755
+
7756
+ declare const leadGenListMemberKeys: {
7757
+ all: readonly ["lead-gen-list-members"];
7758
+ list: (organizationId: string | null, listId: string) => readonly ["lead-gen-list-members", string | null, "list", string];
7759
+ detail: (organizationId: string | null, memberId: string) => readonly ["lead-gen-list-members", string | null, "detail", string];
7760
+ };
7761
+ declare function useListMembers({ listId }: {
7762
+ listId: string;
7763
+ }): _tanstack_react_query.UseQueryResult<{
7764
+ members: {
7765
+ id: string;
7766
+ listId: string;
7767
+ contactId: string;
7768
+ pipelineKey: string;
7769
+ stageKey: string;
7770
+ stateKey: string;
7771
+ activityLog: unknown;
7772
+ addedAt: string;
7773
+ addedBy: string | null;
7774
+ sourceExecutionId: string | null;
7775
+ contact: {
7776
+ id: string;
7777
+ email: string;
7778
+ firstName: string | null;
7779
+ lastName: string | null;
7780
+ title: string | null;
7781
+ linkedinUrl: string | null;
7782
+ companyId: string | null;
7783
+ } | null;
7784
+ }[];
7785
+ }, Error>;
7786
+ declare function useListMember(memberId: string): _tanstack_react_query.UseQueryResult<{
7787
+ id: string;
7788
+ listId: string;
7789
+ contactId: string;
7790
+ pipelineKey: string;
7791
+ stageKey: string;
7792
+ stateKey: string;
7793
+ activityLog: unknown;
7794
+ addedAt: string;
7795
+ addedBy: string | null;
7796
+ sourceExecutionId: string | null;
7797
+ contact: {
7798
+ id: string;
7799
+ email: string;
7800
+ firstName: string | null;
7801
+ lastName: string | null;
7802
+ title: string | null;
7803
+ linkedinUrl: string | null;
7804
+ companyId: string | null;
7805
+ } | null;
7806
+ }, Error>;
7807
+
7808
+ interface TransitionListMemberInput extends TransitionItemRequest {
7809
+ memberId: string;
7810
+ /** Used to invalidate the parent list's member roster after transition. */
7811
+ listId?: string;
7812
+ }
7813
+ /**
7814
+ * Transition a list-member's stage/state via PATCH /acquisition/list-members/:memberId/transition.
7815
+ *
7816
+ * On success invalidates the member detail and, if listId is provided, the member
7817
+ * roster for that list. Mirrors useTransitionItem.ts structure.
7818
+ */
7819
+ declare function useTransitionListMember(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListMemberInput, unknown>;
7820
+
7821
+ declare const leadGenListCompanyKeys: {
7822
+ all: readonly ["lead-gen-list-companies"];
7823
+ detail: (organizationId: string | null, listCompanyId: string) => readonly ["lead-gen-list-companies", string | null, "detail", string];
7824
+ };
7825
+ interface TransitionListCompanyInput extends TransitionItemRequest {
7826
+ listCompanyId: string;
7827
+ /** Used to invalidate the parent list telemetry after transition. */
7828
+ listId?: string;
7829
+ }
7830
+ /**
7831
+ * Transition a list-company's stage/state via PATCH /acquisition/list-companies/:listCompanyId/transition.
7832
+ *
7833
+ * On success invalidates the list-company detail and, if listId is provided, the
7834
+ * parent list telemetry. Mirrors useTransitionItem.ts structure.
7835
+ */
7836
+ declare function useTransitionListCompany(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListCompanyInput, unknown>;
7837
+
7838
+ /**
7839
+ * Stateful item shape accepted by useDeriveActions.
7840
+ *
7841
+ * Currently deriveActions() is typed for AcqDealRow (CRM HITL deals). For lists
7842
+ * and list-members we accept the Stateful quartet + id so callers can pass those
7843
+ * items without a cast. When a third pipeline appears, consolidate into a shared
7844
+ * trait method on deriveActions itself.
7845
+ *
7846
+ * Decision C3: duplicate per-entity logic until a third pipeline warrants abstraction.
7847
+ */
7848
+ interface StatefulItem {
7849
+ id: string;
7850
+ pipeline_key: string;
7851
+ stage_key: string | null;
7852
+ state_key: string | null;
7853
+ activity_log: unknown;
7854
+ organization_id?: string;
7855
+ }
7856
+ /**
7857
+ * Derives contextual action buttons for a Stateful item.
7858
+ *
7859
+ * For deal items the full deriveActions() logic from @repo/core runs.
7860
+ * For non-deal items (lists, list-members, list-companies) the pipeline key
7861
+ * is 'lead-gen' and the action set will be wired in Track C Step 5+6 once
7862
+ * the lead-gen pipeline definition ships action configs. Returns [] until then.
7863
+ *
7864
+ * @param item - Any Stateful item (deal, list, list-member, etc.)
7865
+ * @returns Derived Action[] for rendering in an action toolbar.
7866
+ */
7867
+ declare function useDeriveActions(item: StatefulItem | null | undefined): Action[];
7868
+
7869
+ interface UpdateListStatusInput {
7870
+ listId: string;
7871
+ status: ListStatus;
7872
+ }
7873
+ declare function useUpdateListStatus(): _tanstack_react_query.UseMutationResult<void, Error, UpdateListStatusInput, unknown>;
7874
+
7652
7875
  interface CreateApiKeyRequest {
7653
7876
  name: string;
7654
7877
  }
@@ -8555,5 +8778,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
8555
8778
  type?: string;
8556
8779
  }, "organization_id">, unknown>;
8557
8780
 
8558
- 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, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, 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, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, 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, 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, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
8559
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, 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, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
8781
+ 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, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, 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, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, 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, 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, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
8782
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, 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, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };