@elevasis/ui 2.23.0 → 2.25.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-7PGEGSUM.js → chunk-7D2HSSIW.js} +2 -2
  4. package/dist/{chunk-YU6MBDVO.js → chunk-ABV5LDDC.js} +4 -68
  5. package/dist/chunk-AZXSFDG2.js +474 -0
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-PXGSJNBH.js → chunk-HVC2BTFO.js} +783 -374
  8. package/dist/{chunk-3HEUGBOT.js → chunk-LK4MPIMK.js} +2 -2
  9. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  10. package/dist/{chunk-GUJUK6EH.js → chunk-QJLRDTYS.js} +198 -2
  11. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  12. package/dist/{chunk-FXWETLEB.js → chunk-V3UOW2HG.js} +1 -1
  13. package/dist/{chunk-N6WLOWOD.js → chunk-WSC5LU3U.js} +3 -12
  14. package/dist/{chunk-EPV7NU2E.js → chunk-WWVSPOJY.js} +385 -188
  15. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  16. package/dist/{chunk-PTUOINQ2.js → chunk-ZGZZIR6K.js} +3 -3
  17. package/dist/{chunk-D3KQAABP.js → chunk-ZMXZ476Y.js} +1 -1
  18. package/dist/components/index.d.ts +488 -452
  19. package/dist/components/index.js +127 -22
  20. package/dist/components/navigation/index.js +2 -2
  21. package/dist/features/auth/index.d.ts +463 -377
  22. package/dist/features/crm/index.d.ts +459 -379
  23. package/dist/features/crm/index.js +8 -8
  24. package/dist/features/dashboard/index.js +8 -8
  25. package/dist/features/delivery/index.d.ts +457 -371
  26. package/dist/features/delivery/index.js +8 -8
  27. package/dist/features/lead-gen/index.d.ts +225 -65
  28. package/dist/features/lead-gen/index.js +8 -8
  29. package/dist/features/monitoring/index.js +9 -9
  30. package/dist/features/monitoring/requests/index.js +7 -7
  31. package/dist/features/operations/index.js +10 -10
  32. package/dist/features/settings/index.d.ts +463 -377
  33. package/dist/features/settings/index.js +9 -9
  34. package/dist/hooks/delivery/index.d.ts +457 -371
  35. package/dist/hooks/index.d.ts +957 -718
  36. package/dist/hooks/index.js +7 -7
  37. package/dist/hooks/published.d.ts +957 -718
  38. package/dist/hooks/published.js +7 -7
  39. package/dist/index.d.ts +1327 -1020
  40. package/dist/index.js +8 -8
  41. package/dist/initialization/index.d.ts +463 -377
  42. package/dist/organization/index.d.ts +11 -1
  43. package/dist/organization/index.js +2 -2
  44. package/dist/profile/index.d.ts +463 -377
  45. package/dist/provider/index.d.ts +3132 -169
  46. package/dist/provider/index.js +6 -6
  47. package/dist/provider/published.d.ts +3098 -168
  48. package/dist/provider/published.js +3 -3
  49. package/dist/supabase/index.d.ts +559 -389
  50. package/dist/test-utils/index.d.ts +21 -1
  51. package/dist/test-utils/index.js +13 -4
  52. package/dist/theme/index.js +2 -2
  53. package/dist/types/index.d.ts +463 -377
  54. package/package.json +2 -2
  55. package/src/test-utils/README.md +2 -0
  56. package/dist/chunk-LVUCBY7X.js +0 -127
  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,18 +922,18 @@ 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
  };
@@ -980,86 +1045,95 @@ type Database = {
980
1045
  };
981
1046
  Relationships: [
982
1047
  {
983
- foreignKeyName: "acq_deals_contact_id_fkey";
984
- columns: ["contact_id"];
1048
+ foreignKeyName: 'acq_deals_contact_id_fkey';
1049
+ columns: ['contact_id'];
985
1050
  isOneToOne: false;
986
- referencedRelation: "acq_contacts";
987
- referencedColumns: ["id"];
1051
+ referencedRelation: 'acq_contacts';
1052
+ referencedColumns: ['id'];
988
1053
  },
989
1054
  {
990
- foreignKeyName: "acq_deals_organization_id_fkey";
991
- columns: ["organization_id"];
1055
+ foreignKeyName: 'acq_deals_organization_id_fkey';
1056
+ columns: ['organization_id'];
992
1057
  isOneToOne: false;
993
- referencedRelation: "organizations";
994
- referencedColumns: ["id"];
1058
+ referencedRelation: 'organizations';
1059
+ referencedColumns: ['id'];
995
1060
  },
996
1061
  {
997
- foreignKeyName: "acq_deals_source_list_id_fkey";
998
- columns: ["source_list_id"];
1062
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
1063
+ columns: ['source_list_id'];
999
1064
  isOneToOne: false;
1000
- referencedRelation: "acq_lists";
1001
- referencedColumns: ["id"];
1065
+ referencedRelation: 'acq_lists';
1066
+ referencedColumns: ['id'];
1002
1067
  }
1003
1068
  ];
1004
1069
  };
1005
1070
  acq_list_companies: {
1006
1071
  Row: {
1072
+ activity_log: Json;
1007
1073
  added_at: string;
1008
1074
  added_by: string | null;
1009
1075
  company_id: string;
1010
1076
  id: string;
1011
1077
  list_id: string;
1078
+ pipeline_key: string;
1079
+ processing_state: Json;
1012
1080
  source_execution_id: string | null;
1013
1081
  source_input_hash: string | null;
1014
1082
  source_resource_id: string | null;
1015
- stage: string | null;
1016
- stage_updated_at: string | null;
1083
+ stage_key: string;
1084
+ state_key: string;
1017
1085
  };
1018
1086
  Insert: {
1087
+ activity_log?: Json;
1019
1088
  added_at?: string;
1020
1089
  added_by?: string | null;
1021
1090
  company_id: string;
1022
1091
  id?: string;
1023
1092
  list_id: string;
1093
+ pipeline_key?: string;
1094
+ processing_state?: Json;
1024
1095
  source_execution_id?: string | null;
1025
1096
  source_input_hash?: string | null;
1026
1097
  source_resource_id?: string | null;
1027
- stage?: string | null;
1028
- stage_updated_at?: string | null;
1098
+ stage_key: string;
1099
+ state_key: string;
1029
1100
  };
1030
1101
  Update: {
1102
+ activity_log?: Json;
1031
1103
  added_at?: string;
1032
1104
  added_by?: string | null;
1033
1105
  company_id?: string;
1034
1106
  id?: string;
1035
1107
  list_id?: string;
1108
+ pipeline_key?: string;
1109
+ processing_state?: Json;
1036
1110
  source_execution_id?: string | null;
1037
1111
  source_input_hash?: string | null;
1038
1112
  source_resource_id?: string | null;
1039
- stage?: string | null;
1040
- stage_updated_at?: string | null;
1113
+ stage_key?: string;
1114
+ state_key?: string;
1041
1115
  };
1042
1116
  Relationships: [
1043
1117
  {
1044
- foreignKeyName: "acq_list_companies_company_id_fkey";
1045
- columns: ["company_id"];
1118
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
1119
+ columns: ['company_id'];
1046
1120
  isOneToOne: false;
1047
- referencedRelation: "acq_companies";
1048
- referencedColumns: ["id"];
1121
+ referencedRelation: 'acq_companies';
1122
+ referencedColumns: ['id'];
1049
1123
  },
1050
1124
  {
1051
- foreignKeyName: "acq_list_companies_list_id_fkey";
1052
- columns: ["list_id"];
1125
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
1126
+ columns: ['list_id'];
1053
1127
  isOneToOne: false;
1054
- referencedRelation: "acq_lists";
1055
- referencedColumns: ["id"];
1128
+ referencedRelation: 'acq_lists';
1129
+ referencedColumns: ['id'];
1056
1130
  },
1057
1131
  {
1058
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
1059
- columns: ["source_execution_id"];
1132
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
1133
+ columns: ['source_execution_id'];
1060
1134
  isOneToOne: false;
1061
- referencedRelation: "execution_logs";
1062
- referencedColumns: ["execution_id"];
1135
+ referencedRelation: 'execution_logs';
1136
+ referencedColumns: ['execution_id'];
1063
1137
  }
1064
1138
  ];
1065
1139
  };
@@ -1087,79 +1161,88 @@ type Database = {
1087
1161
  };
1088
1162
  Relationships: [
1089
1163
  {
1090
- foreignKeyName: "acq_list_executions_execution_id_fkey";
1091
- columns: ["execution_id"];
1164
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
1165
+ columns: ['execution_id'];
1092
1166
  isOneToOne: false;
1093
- referencedRelation: "execution_logs";
1094
- referencedColumns: ["execution_id"];
1167
+ referencedRelation: 'execution_logs';
1168
+ referencedColumns: ['execution_id'];
1095
1169
  },
1096
1170
  {
1097
- foreignKeyName: "acq_list_executions_list_id_fkey";
1098
- columns: ["list_id"];
1171
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
1172
+ columns: ['list_id'];
1099
1173
  isOneToOne: false;
1100
- referencedRelation: "acq_lists";
1101
- referencedColumns: ["id"];
1174
+ referencedRelation: 'acq_lists';
1175
+ referencedColumns: ['id'];
1102
1176
  }
1103
1177
  ];
1104
1178
  };
1105
1179
  acq_list_members: {
1106
1180
  Row: {
1181
+ activity_log: Json;
1107
1182
  added_at: string;
1108
1183
  added_by: string | null;
1109
1184
  contact_id: string;
1110
1185
  id: string;
1111
1186
  list_id: string;
1187
+ pipeline_key: string;
1188
+ processing_state: Json;
1112
1189
  source_execution_id: string | null;
1113
1190
  source_input_hash: string | null;
1114
1191
  source_resource_id: string | null;
1115
- stage: string | null;
1116
- stage_updated_at: string | null;
1192
+ stage_key: string;
1193
+ state_key: string;
1117
1194
  };
1118
1195
  Insert: {
1196
+ activity_log?: Json;
1119
1197
  added_at?: string;
1120
1198
  added_by?: string | null;
1121
1199
  contact_id: string;
1122
1200
  id?: string;
1123
1201
  list_id: string;
1202
+ pipeline_key?: string;
1203
+ processing_state?: Json;
1124
1204
  source_execution_id?: string | null;
1125
1205
  source_input_hash?: string | null;
1126
1206
  source_resource_id?: string | null;
1127
- stage?: string | null;
1128
- stage_updated_at?: string | null;
1207
+ stage_key: string;
1208
+ state_key: string;
1129
1209
  };
1130
1210
  Update: {
1211
+ activity_log?: Json;
1131
1212
  added_at?: string;
1132
1213
  added_by?: string | null;
1133
1214
  contact_id?: string;
1134
1215
  id?: string;
1135
1216
  list_id?: string;
1217
+ pipeline_key?: string;
1218
+ processing_state?: Json;
1136
1219
  source_execution_id?: string | null;
1137
1220
  source_input_hash?: string | null;
1138
1221
  source_resource_id?: string | null;
1139
- stage?: string | null;
1140
- stage_updated_at?: string | null;
1222
+ stage_key?: string;
1223
+ state_key?: string;
1141
1224
  };
1142
1225
  Relationships: [
1143
1226
  {
1144
- foreignKeyName: "acq_list_members_contact_id_fkey";
1145
- columns: ["contact_id"];
1227
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
1228
+ columns: ['contact_id'];
1146
1229
  isOneToOne: false;
1147
- referencedRelation: "acq_contacts";
1148
- referencedColumns: ["id"];
1230
+ referencedRelation: 'acq_contacts';
1231
+ referencedColumns: ['id'];
1149
1232
  },
1150
1233
  {
1151
- foreignKeyName: "acq_list_members_list_id_fkey";
1152
- columns: ["list_id"];
1234
+ foreignKeyName: 'acq_list_members_list_id_fkey';
1235
+ columns: ['list_id'];
1153
1236
  isOneToOne: false;
1154
- referencedRelation: "acq_lists";
1155
- referencedColumns: ["id"];
1237
+ referencedRelation: 'acq_lists';
1238
+ referencedColumns: ['id'];
1156
1239
  },
1157
1240
  {
1158
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
1159
- columns: ["source_execution_id"];
1241
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
1242
+ columns: ['source_execution_id'];
1160
1243
  isOneToOne: false;
1161
- referencedRelation: "execution_logs";
1162
- referencedColumns: ["execution_id"];
1244
+ referencedRelation: 'execution_logs';
1245
+ referencedColumns: ['execution_id'];
1163
1246
  }
1164
1247
  ];
1165
1248
  };
@@ -1167,55 +1250,58 @@ type Database = {
1167
1250
  Row: {
1168
1251
  batch_ids: string[];
1169
1252
  completed_at: string | null;
1170
- config: Json;
1171
1253
  created_at: string;
1172
1254
  description: string | null;
1255
+ icp: Json;
1173
1256
  id: string;
1174
1257
  instantly_campaign_id: string | null;
1175
1258
  launched_at: string | null;
1176
1259
  metadata: Json;
1177
1260
  name: string;
1178
1261
  organization_id: string;
1262
+ pipeline_config: Json;
1263
+ scraping_config: Json;
1179
1264
  status: string;
1180
- type: string;
1181
1265
  };
1182
1266
  Insert: {
1183
1267
  batch_ids?: string[];
1184
1268
  completed_at?: string | null;
1185
- config?: Json;
1186
1269
  created_at?: string;
1187
1270
  description?: string | null;
1271
+ icp?: Json;
1188
1272
  id?: string;
1189
1273
  instantly_campaign_id?: string | null;
1190
1274
  launched_at?: string | null;
1191
1275
  metadata?: Json;
1192
1276
  name: string;
1193
1277
  organization_id: string;
1278
+ pipeline_config?: Json;
1279
+ scraping_config?: Json;
1194
1280
  status?: string;
1195
- type?: string;
1196
1281
  };
1197
1282
  Update: {
1198
1283
  batch_ids?: string[];
1199
1284
  completed_at?: string | null;
1200
- config?: Json;
1201
1285
  created_at?: string;
1202
1286
  description?: string | null;
1287
+ icp?: Json;
1203
1288
  id?: string;
1204
1289
  instantly_campaign_id?: string | null;
1205
1290
  launched_at?: string | null;
1206
1291
  metadata?: Json;
1207
1292
  name?: string;
1208
1293
  organization_id?: string;
1294
+ pipeline_config?: Json;
1295
+ scraping_config?: Json;
1209
1296
  status?: string;
1210
- type?: string;
1211
1297
  };
1212
1298
  Relationships: [
1213
1299
  {
1214
- foreignKeyName: "acq_lists_organization_id_fkey";
1215
- columns: ["organization_id"];
1300
+ foreignKeyName: 'acq_lists_organization_id_fkey';
1301
+ columns: ['organization_id'];
1216
1302
  isOneToOne: false;
1217
- referencedRelation: "organizations";
1218
- referencedColumns: ["id"];
1303
+ referencedRelation: 'organizations';
1304
+ referencedColumns: ['id'];
1219
1305
  }
1220
1306
  ];
1221
1307
  };
@@ -1291,18 +1377,18 @@ type Database = {
1291
1377
  };
1292
1378
  Relationships: [
1293
1379
  {
1294
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
1295
- columns: ["organization_id"];
1380
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
1381
+ columns: ['organization_id'];
1296
1382
  isOneToOne: false;
1297
- referencedRelation: "organizations";
1298
- referencedColumns: ["id"];
1383
+ referencedRelation: 'organizations';
1384
+ referencedColumns: ['id'];
1299
1385
  },
1300
1386
  {
1301
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
1302
- columns: ["seo_page_id"];
1387
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
1388
+ columns: ['seo_page_id'];
1303
1389
  isOneToOne: false;
1304
- referencedRelation: "acq_seo_pages";
1305
- referencedColumns: ["id"];
1390
+ referencedRelation: 'acq_seo_pages';
1391
+ referencedColumns: ['id'];
1306
1392
  }
1307
1393
  ];
1308
1394
  };
@@ -1378,11 +1464,11 @@ type Database = {
1378
1464
  };
1379
1465
  Relationships: [
1380
1466
  {
1381
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
1382
- columns: ["organization_id"];
1467
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1468
+ columns: ['organization_id'];
1383
1469
  isOneToOne: false;
1384
- referencedRelation: "organizations";
1385
- referencedColumns: ["id"];
1470
+ referencedRelation: 'organizations';
1471
+ referencedColumns: ['id'];
1386
1472
  }
1387
1473
  ];
1388
1474
  };
@@ -1479,11 +1565,11 @@ type Database = {
1479
1565
  };
1480
1566
  Relationships: [
1481
1567
  {
1482
- foreignKeyName: "acq_social_posts_organization_id_fkey";
1483
- columns: ["organization_id"];
1568
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1569
+ columns: ['organization_id'];
1484
1570
  isOneToOne: false;
1485
- referencedRelation: "organizations";
1486
- referencedColumns: ["id"];
1571
+ referencedRelation: 'organizations';
1572
+ referencedColumns: ['id'];
1487
1573
  }
1488
1574
  ];
1489
1575
  };
@@ -1538,11 +1624,11 @@ type Database = {
1538
1624
  };
1539
1625
  Relationships: [
1540
1626
  {
1541
- foreignKeyName: "activities_organization_id_fkey";
1542
- columns: ["organization_id"];
1627
+ foreignKeyName: 'activities_organization_id_fkey';
1628
+ columns: ['organization_id'];
1543
1629
  isOneToOne: false;
1544
- referencedRelation: "organizations";
1545
- referencedColumns: ["id"];
1630
+ referencedRelation: 'organizations';
1631
+ referencedColumns: ['id'];
1546
1632
  }
1547
1633
  ];
1548
1634
  };
@@ -1573,11 +1659,11 @@ type Database = {
1573
1659
  };
1574
1660
  Relationships: [
1575
1661
  {
1576
- foreignKeyName: "api_keys_organization_id_fkey";
1577
- columns: ["organization_id"];
1662
+ foreignKeyName: 'api_keys_organization_id_fkey';
1663
+ columns: ['organization_id'];
1578
1664
  isOneToOne: false;
1579
- referencedRelation: "organizations";
1580
- referencedColumns: ["id"];
1665
+ referencedRelation: 'organizations';
1666
+ referencedColumns: ['id'];
1581
1667
  }
1582
1668
  ];
1583
1669
  };
@@ -1656,25 +1742,25 @@ type Database = {
1656
1742
  };
1657
1743
  Relationships: [
1658
1744
  {
1659
- foreignKeyName: "command_queue_completed_by_fkey";
1660
- columns: ["completed_by"];
1745
+ foreignKeyName: 'command_queue_completed_by_fkey';
1746
+ columns: ['completed_by'];
1661
1747
  isOneToOne: false;
1662
- referencedRelation: "users";
1663
- referencedColumns: ["id"];
1748
+ referencedRelation: 'users';
1749
+ referencedColumns: ['id'];
1664
1750
  },
1665
1751
  {
1666
- foreignKeyName: "command_queue_organization_id_fkey";
1667
- columns: ["organization_id"];
1752
+ foreignKeyName: 'command_queue_organization_id_fkey';
1753
+ columns: ['organization_id'];
1668
1754
  isOneToOne: false;
1669
- referencedRelation: "organizations";
1670
- referencedColumns: ["id"];
1755
+ referencedRelation: 'organizations';
1756
+ referencedColumns: ['id'];
1671
1757
  },
1672
1758
  {
1673
- foreignKeyName: "command_queue_target_execution_id_fkey";
1674
- columns: ["target_execution_id"];
1759
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1760
+ columns: ['target_execution_id'];
1675
1761
  isOneToOne: false;
1676
- referencedRelation: "execution_logs";
1677
- referencedColumns: ["execution_id"];
1762
+ referencedRelation: 'execution_logs';
1763
+ referencedColumns: ['execution_id'];
1678
1764
  }
1679
1765
  ];
1680
1766
  };
@@ -1714,18 +1800,18 @@ type Database = {
1714
1800
  };
1715
1801
  Relationships: [
1716
1802
  {
1717
- foreignKeyName: "credentials_created_by_fkey";
1718
- columns: ["created_by"];
1803
+ foreignKeyName: 'credentials_created_by_fkey';
1804
+ columns: ['created_by'];
1719
1805
  isOneToOne: false;
1720
- referencedRelation: "users";
1721
- referencedColumns: ["id"];
1806
+ referencedRelation: 'users';
1807
+ referencedColumns: ['id'];
1722
1808
  },
1723
1809
  {
1724
- foreignKeyName: "credentials_organization_id_fkey";
1725
- columns: ["organization_id"];
1810
+ foreignKeyName: 'credentials_organization_id_fkey';
1811
+ columns: ['organization_id'];
1726
1812
  isOneToOne: false;
1727
- referencedRelation: "organizations";
1728
- referencedColumns: ["id"];
1813
+ referencedRelation: 'organizations';
1814
+ referencedColumns: ['id'];
1729
1815
  }
1730
1816
  ];
1731
1817
  };
@@ -1771,11 +1857,11 @@ type Database = {
1771
1857
  };
1772
1858
  Relationships: [
1773
1859
  {
1774
- foreignKeyName: "deployments_organization_id_fkey";
1775
- columns: ["organization_id"];
1860
+ foreignKeyName: 'deployments_organization_id_fkey';
1861
+ columns: ['organization_id'];
1776
1862
  isOneToOne: false;
1777
- referencedRelation: "organizations";
1778
- referencedColumns: ["id"];
1863
+ referencedRelation: 'organizations';
1864
+ referencedColumns: ['id'];
1779
1865
  }
1780
1866
  ];
1781
1867
  };
@@ -1830,25 +1916,25 @@ type Database = {
1830
1916
  };
1831
1917
  Relationships: [
1832
1918
  {
1833
- foreignKeyName: "execution_errors_execution_id_fkey";
1834
- columns: ["execution_id"];
1919
+ foreignKeyName: 'execution_errors_execution_id_fkey';
1920
+ columns: ['execution_id'];
1835
1921
  isOneToOne: false;
1836
- referencedRelation: "execution_logs";
1837
- referencedColumns: ["execution_id"];
1922
+ referencedRelation: 'execution_logs';
1923
+ referencedColumns: ['execution_id'];
1838
1924
  },
1839
1925
  {
1840
- foreignKeyName: "execution_errors_organization_id_fkey";
1841
- columns: ["organization_id"];
1926
+ foreignKeyName: 'execution_errors_organization_id_fkey';
1927
+ columns: ['organization_id'];
1842
1928
  isOneToOne: false;
1843
- referencedRelation: "organizations";
1844
- referencedColumns: ["id"];
1929
+ referencedRelation: 'organizations';
1930
+ referencedColumns: ['id'];
1845
1931
  },
1846
1932
  {
1847
- foreignKeyName: "execution_errors_resolved_by_fkey";
1848
- columns: ["resolved_by"];
1933
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
1934
+ columns: ['resolved_by'];
1849
1935
  isOneToOne: false;
1850
- referencedRelation: "users";
1851
- referencedColumns: ["id"];
1936
+ referencedRelation: 'users';
1937
+ referencedColumns: ['id'];
1852
1938
  }
1853
1939
  ];
1854
1940
  };
@@ -1930,32 +2016,32 @@ type Database = {
1930
2016
  };
1931
2017
  Relationships: [
1932
2018
  {
1933
- foreignKeyName: "execution_history_organization_id_fkey";
1934
- columns: ["organization_id"];
2019
+ foreignKeyName: 'execution_history_organization_id_fkey';
2020
+ columns: ['organization_id'];
1935
2021
  isOneToOne: false;
1936
- referencedRelation: "organizations";
1937
- referencedColumns: ["id"];
2022
+ referencedRelation: 'organizations';
2023
+ referencedColumns: ['id'];
1938
2024
  },
1939
2025
  {
1940
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
1941
- columns: ["origin_execution_id"];
2026
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2027
+ columns: ['origin_execution_id'];
1942
2028
  isOneToOne: false;
1943
- referencedRelation: "execution_logs";
1944
- referencedColumns: ["execution_id"];
2029
+ referencedRelation: 'execution_logs';
2030
+ referencedColumns: ['execution_id'];
1945
2031
  },
1946
2032
  {
1947
- foreignKeyName: "execution_logs_session_id_fkey";
1948
- columns: ["session_id"];
2033
+ foreignKeyName: 'execution_logs_session_id_fkey';
2034
+ columns: ['session_id'];
1949
2035
  isOneToOne: false;
1950
- referencedRelation: "sessions";
1951
- referencedColumns: ["session_id"];
2036
+ referencedRelation: 'sessions';
2037
+ referencedColumns: ['session_id'];
1952
2038
  },
1953
2039
  {
1954
- foreignKeyName: "execution_logs_user_id_fkey";
1955
- columns: ["user_id"];
2040
+ foreignKeyName: 'execution_logs_user_id_fkey';
2041
+ columns: ['user_id'];
1956
2042
  isOneToOne: false;
1957
- referencedRelation: "users";
1958
- referencedColumns: ["id"];
2043
+ referencedRelation: 'users';
2044
+ referencedColumns: ['id'];
1959
2045
  }
1960
2046
  ];
1961
2047
  };
@@ -2001,18 +2087,18 @@ type Database = {
2001
2087
  };
2002
2088
  Relationships: [
2003
2089
  {
2004
- foreignKeyName: "execution_metrics_execution_id_fkey";
2005
- columns: ["execution_id"];
2090
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
2091
+ columns: ['execution_id'];
2006
2092
  isOneToOne: true;
2007
- referencedRelation: "execution_logs";
2008
- referencedColumns: ["execution_id"];
2093
+ referencedRelation: 'execution_logs';
2094
+ referencedColumns: ['execution_id'];
2009
2095
  },
2010
2096
  {
2011
- foreignKeyName: "execution_metrics_organization_id_fkey";
2012
- columns: ["organization_id"];
2097
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
2098
+ columns: ['organization_id'];
2013
2099
  isOneToOne: false;
2014
- referencedRelation: "organizations";
2015
- referencedColumns: ["id"];
2100
+ referencedRelation: 'organizations';
2101
+ referencedColumns: ['id'];
2016
2102
  }
2017
2103
  ];
2018
2104
  };
@@ -2055,18 +2141,18 @@ type Database = {
2055
2141
  };
2056
2142
  Relationships: [
2057
2143
  {
2058
- foreignKeyName: "notifications_organization_id_fkey";
2059
- columns: ["organization_id"];
2144
+ foreignKeyName: 'notifications_organization_id_fkey';
2145
+ columns: ['organization_id'];
2060
2146
  isOneToOne: false;
2061
- referencedRelation: "organizations";
2062
- referencedColumns: ["id"];
2147
+ referencedRelation: 'organizations';
2148
+ referencedColumns: ['id'];
2063
2149
  },
2064
2150
  {
2065
- foreignKeyName: "notifications_user_id_fkey";
2066
- columns: ["user_id"];
2151
+ foreignKeyName: 'notifications_user_id_fkey';
2152
+ columns: ['user_id'];
2067
2153
  isOneToOne: false;
2068
- referencedRelation: "users";
2069
- referencedColumns: ["id"];
2154
+ referencedRelation: 'users';
2155
+ referencedColumns: ['id'];
2070
2156
  }
2071
2157
  ];
2072
2158
  };
@@ -2121,18 +2207,18 @@ type Database = {
2121
2207
  };
2122
2208
  Relationships: [
2123
2209
  {
2124
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
2125
- columns: ["inviter_user_id"];
2210
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2211
+ columns: ['inviter_user_id'];
2126
2212
  isOneToOne: false;
2127
- referencedRelation: "users";
2128
- referencedColumns: ["id"];
2213
+ referencedRelation: 'users';
2214
+ referencedColumns: ['id'];
2129
2215
  },
2130
2216
  {
2131
- foreignKeyName: "org_invitations_organization_id_fkey";
2132
- columns: ["organization_id"];
2217
+ foreignKeyName: 'org_invitations_organization_id_fkey';
2218
+ columns: ['organization_id'];
2133
2219
  isOneToOne: false;
2134
- referencedRelation: "organizations";
2135
- referencedColumns: ["id"];
2220
+ referencedRelation: 'organizations';
2221
+ referencedColumns: ['id'];
2136
2222
  }
2137
2223
  ];
2138
2224
  };
@@ -2175,18 +2261,18 @@ type Database = {
2175
2261
  };
2176
2262
  Relationships: [
2177
2263
  {
2178
- foreignKeyName: "org_memberships_organization_id_fkey";
2179
- columns: ["organization_id"];
2264
+ foreignKeyName: 'org_memberships_organization_id_fkey';
2265
+ columns: ['organization_id'];
2180
2266
  isOneToOne: false;
2181
- referencedRelation: "organizations";
2182
- referencedColumns: ["id"];
2267
+ referencedRelation: 'organizations';
2268
+ referencedColumns: ['id'];
2183
2269
  },
2184
2270
  {
2185
- foreignKeyName: "org_memberships_user_id_fkey";
2186
- columns: ["user_id"];
2271
+ foreignKeyName: 'org_memberships_user_id_fkey';
2272
+ columns: ['user_id'];
2187
2273
  isOneToOne: false;
2188
- referencedRelation: "users";
2189
- referencedColumns: ["id"];
2274
+ referencedRelation: 'users';
2275
+ referencedColumns: ['id'];
2190
2276
  }
2191
2277
  ];
2192
2278
  };
@@ -2211,25 +2297,25 @@ type Database = {
2211
2297
  };
2212
2298
  Relationships: [
2213
2299
  {
2214
- foreignKeyName: "org_rol_assignments_granted_by_fkey";
2215
- columns: ["granted_by"];
2300
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
2301
+ columns: ['granted_by'];
2216
2302
  isOneToOne: false;
2217
- referencedRelation: "users";
2218
- referencedColumns: ["id"];
2303
+ referencedRelation: 'users';
2304
+ referencedColumns: ['id'];
2219
2305
  },
2220
2306
  {
2221
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
2222
- columns: ["membership_id"];
2307
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
2308
+ columns: ['membership_id'];
2223
2309
  isOneToOne: false;
2224
- referencedRelation: "org_memberships";
2225
- referencedColumns: ["id"];
2310
+ referencedRelation: 'org_memberships';
2311
+ referencedColumns: ['id'];
2226
2312
  },
2227
2313
  {
2228
- foreignKeyName: "org_rol_assignments_role_id_fkey";
2229
- columns: ["role_id"];
2314
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
2315
+ columns: ['role_id'];
2230
2316
  isOneToOne: false;
2231
- referencedRelation: "org_rol_definitions";
2232
- referencedColumns: ["id"];
2317
+ referencedRelation: 'org_rol_definitions';
2318
+ referencedColumns: ['id'];
2233
2319
  }
2234
2320
  ];
2235
2321
  };
@@ -2266,11 +2352,11 @@ type Database = {
2266
2352
  };
2267
2353
  Relationships: [
2268
2354
  {
2269
- foreignKeyName: "org_rol_definitions_organization_id_fkey";
2270
- columns: ["organization_id"];
2355
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
2356
+ columns: ['organization_id'];
2271
2357
  isOneToOne: false;
2272
- referencedRelation: "organizations";
2273
- referencedColumns: ["id"];
2358
+ referencedRelation: 'organizations';
2359
+ referencedColumns: ['id'];
2274
2360
  }
2275
2361
  ];
2276
2362
  };
@@ -2292,18 +2378,18 @@ type Database = {
2292
2378
  };
2293
2379
  Relationships: [
2294
2380
  {
2295
- foreignKeyName: "org_rol_grants_permission_key_fkey";
2296
- columns: ["permission_key"];
2381
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
2382
+ columns: ['permission_key'];
2297
2383
  isOneToOne: false;
2298
- referencedRelation: "org_rol_permissions";
2299
- referencedColumns: ["key"];
2384
+ referencedRelation: 'org_rol_permissions';
2385
+ referencedColumns: ['key'];
2300
2386
  },
2301
2387
  {
2302
- foreignKeyName: "org_rol_grants_role_id_fkey";
2303
- columns: ["role_id"];
2388
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
2389
+ columns: ['role_id'];
2304
2390
  isOneToOne: false;
2305
- referencedRelation: "org_rol_definitions";
2306
- referencedColumns: ["id"];
2391
+ referencedRelation: 'org_rol_definitions';
2392
+ referencedColumns: ['id'];
2307
2393
  }
2308
2394
  ];
2309
2395
  };
@@ -2415,25 +2501,25 @@ type Database = {
2415
2501
  };
2416
2502
  Relationships: [
2417
2503
  {
2418
- foreignKeyName: "fk_milestones_project";
2419
- columns: ["project_id"];
2504
+ foreignKeyName: 'fk_milestones_project';
2505
+ columns: ['project_id'];
2420
2506
  isOneToOne: false;
2421
- referencedRelation: "prj_projects";
2422
- referencedColumns: ["id"];
2507
+ referencedRelation: 'prj_projects';
2508
+ referencedColumns: ['id'];
2423
2509
  },
2424
2510
  {
2425
- foreignKeyName: "prj_milestones_organization_id_fkey";
2426
- columns: ["organization_id"];
2511
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2512
+ columns: ['organization_id'];
2427
2513
  isOneToOne: false;
2428
- referencedRelation: "organizations";
2429
- referencedColumns: ["id"];
2514
+ referencedRelation: 'organizations';
2515
+ referencedColumns: ['id'];
2430
2516
  },
2431
2517
  {
2432
- foreignKeyName: "prj_milestones_project_id_fkey";
2433
- columns: ["project_id"];
2518
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2519
+ columns: ['project_id'];
2434
2520
  isOneToOne: false;
2435
- referencedRelation: "prj_projects";
2436
- referencedColumns: ["id"];
2521
+ referencedRelation: 'prj_projects';
2522
+ referencedColumns: ['id'];
2437
2523
  }
2438
2524
  ];
2439
2525
  };
@@ -2482,67 +2568,67 @@ type Database = {
2482
2568
  };
2483
2569
  Relationships: [
2484
2570
  {
2485
- foreignKeyName: "fk_notes_created_by";
2486
- columns: ["created_by"];
2571
+ foreignKeyName: 'fk_notes_created_by';
2572
+ columns: ['created_by'];
2487
2573
  isOneToOne: false;
2488
- referencedRelation: "users";
2489
- referencedColumns: ["id"];
2574
+ referencedRelation: 'users';
2575
+ referencedColumns: ['id'];
2490
2576
  },
2491
2577
  {
2492
- foreignKeyName: "fk_notes_milestone";
2493
- columns: ["milestone_id"];
2578
+ foreignKeyName: 'fk_notes_milestone';
2579
+ columns: ['milestone_id'];
2494
2580
  isOneToOne: false;
2495
- referencedRelation: "prj_milestones";
2496
- referencedColumns: ["id"];
2581
+ referencedRelation: 'prj_milestones';
2582
+ referencedColumns: ['id'];
2497
2583
  },
2498
2584
  {
2499
- foreignKeyName: "fk_notes_project";
2500
- columns: ["project_id"];
2585
+ foreignKeyName: 'fk_notes_project';
2586
+ columns: ['project_id'];
2501
2587
  isOneToOne: false;
2502
- referencedRelation: "prj_projects";
2503
- referencedColumns: ["id"];
2588
+ referencedRelation: 'prj_projects';
2589
+ referencedColumns: ['id'];
2504
2590
  },
2505
2591
  {
2506
- foreignKeyName: "fk_notes_task";
2507
- columns: ["task_id"];
2592
+ foreignKeyName: 'fk_notes_task';
2593
+ columns: ['task_id'];
2508
2594
  isOneToOne: false;
2509
- referencedRelation: "prj_tasks";
2510
- referencedColumns: ["id"];
2595
+ referencedRelation: 'prj_tasks';
2596
+ referencedColumns: ['id'];
2511
2597
  },
2512
2598
  {
2513
- foreignKeyName: "prj_notes_created_by_fkey";
2514
- columns: ["created_by"];
2599
+ foreignKeyName: 'prj_notes_created_by_fkey';
2600
+ columns: ['created_by'];
2515
2601
  isOneToOne: false;
2516
- referencedRelation: "users";
2517
- referencedColumns: ["id"];
2602
+ referencedRelation: 'users';
2603
+ referencedColumns: ['id'];
2518
2604
  },
2519
2605
  {
2520
- foreignKeyName: "prj_notes_milestone_id_fkey";
2521
- columns: ["milestone_id"];
2606
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2607
+ columns: ['milestone_id'];
2522
2608
  isOneToOne: false;
2523
- referencedRelation: "prj_milestones";
2524
- referencedColumns: ["id"];
2609
+ referencedRelation: 'prj_milestones';
2610
+ referencedColumns: ['id'];
2525
2611
  },
2526
2612
  {
2527
- foreignKeyName: "prj_notes_organization_id_fkey";
2528
- columns: ["organization_id"];
2613
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2614
+ columns: ['organization_id'];
2529
2615
  isOneToOne: false;
2530
- referencedRelation: "organizations";
2531
- referencedColumns: ["id"];
2616
+ referencedRelation: 'organizations';
2617
+ referencedColumns: ['id'];
2532
2618
  },
2533
2619
  {
2534
- foreignKeyName: "prj_notes_project_id_fkey";
2535
- columns: ["project_id"];
2620
+ foreignKeyName: 'prj_notes_project_id_fkey';
2621
+ columns: ['project_id'];
2536
2622
  isOneToOne: false;
2537
- referencedRelation: "prj_projects";
2538
- referencedColumns: ["id"];
2623
+ referencedRelation: 'prj_projects';
2624
+ referencedColumns: ['id'];
2539
2625
  },
2540
2626
  {
2541
- foreignKeyName: "prj_notes_task_id_fkey";
2542
- columns: ["task_id"];
2627
+ foreignKeyName: 'prj_notes_task_id_fkey';
2628
+ columns: ['task_id'];
2543
2629
  isOneToOne: false;
2544
- referencedRelation: "prj_tasks";
2545
- referencedColumns: ["id"];
2630
+ referencedRelation: 'prj_tasks';
2631
+ referencedColumns: ['id'];
2546
2632
  }
2547
2633
  ];
2548
2634
  };
@@ -2600,39 +2686,39 @@ type Database = {
2600
2686
  };
2601
2687
  Relationships: [
2602
2688
  {
2603
- foreignKeyName: "fk_projects_company";
2604
- columns: ["client_company_id"];
2689
+ foreignKeyName: 'fk_projects_company';
2690
+ columns: ['client_company_id'];
2605
2691
  isOneToOne: false;
2606
- referencedRelation: "acq_companies";
2607
- referencedColumns: ["id"];
2692
+ referencedRelation: 'acq_companies';
2693
+ referencedColumns: ['id'];
2608
2694
  },
2609
2695
  {
2610
- foreignKeyName: "fk_projects_deal";
2611
- columns: ["deal_id"];
2696
+ foreignKeyName: 'fk_projects_deal';
2697
+ columns: ['deal_id'];
2612
2698
  isOneToOne: false;
2613
- referencedRelation: "acq_deals";
2614
- referencedColumns: ["id"];
2699
+ referencedRelation: 'acq_deals';
2700
+ referencedColumns: ['id'];
2615
2701
  },
2616
2702
  {
2617
- foreignKeyName: "prj_projects_client_company_id_fkey";
2618
- columns: ["client_company_id"];
2703
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2704
+ columns: ['client_company_id'];
2619
2705
  isOneToOne: false;
2620
- referencedRelation: "acq_companies";
2621
- referencedColumns: ["id"];
2706
+ referencedRelation: 'acq_companies';
2707
+ referencedColumns: ['id'];
2622
2708
  },
2623
2709
  {
2624
- foreignKeyName: "prj_projects_deal_id_fkey";
2625
- columns: ["deal_id"];
2710
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2711
+ columns: ['deal_id'];
2626
2712
  isOneToOne: false;
2627
- referencedRelation: "acq_deals";
2628
- referencedColumns: ["id"];
2713
+ referencedRelation: 'acq_deals';
2714
+ referencedColumns: ['id'];
2629
2715
  },
2630
2716
  {
2631
- foreignKeyName: "prj_projects_organization_id_fkey";
2632
- columns: ["organization_id"];
2717
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2718
+ columns: ['organization_id'];
2633
2719
  isOneToOne: false;
2634
- referencedRelation: "organizations";
2635
- referencedColumns: ["id"];
2720
+ referencedRelation: 'organizations';
2721
+ referencedColumns: ['id'];
2636
2722
  }
2637
2723
  ];
2638
2724
  };
@@ -2696,53 +2782,53 @@ type Database = {
2696
2782
  };
2697
2783
  Relationships: [
2698
2784
  {
2699
- foreignKeyName: "fk_tasks_milestone";
2700
- columns: ["milestone_id"];
2785
+ foreignKeyName: 'fk_tasks_milestone';
2786
+ columns: ['milestone_id'];
2701
2787
  isOneToOne: false;
2702
- referencedRelation: "prj_milestones";
2703
- referencedColumns: ["id"];
2788
+ referencedRelation: 'prj_milestones';
2789
+ referencedColumns: ['id'];
2704
2790
  },
2705
2791
  {
2706
- foreignKeyName: "fk_tasks_parent";
2707
- columns: ["parent_task_id"];
2792
+ foreignKeyName: 'fk_tasks_parent';
2793
+ columns: ['parent_task_id'];
2708
2794
  isOneToOne: false;
2709
- referencedRelation: "prj_tasks";
2710
- referencedColumns: ["id"];
2795
+ referencedRelation: 'prj_tasks';
2796
+ referencedColumns: ['id'];
2711
2797
  },
2712
2798
  {
2713
- foreignKeyName: "fk_tasks_project";
2714
- columns: ["project_id"];
2799
+ foreignKeyName: 'fk_tasks_project';
2800
+ columns: ['project_id'];
2715
2801
  isOneToOne: false;
2716
- referencedRelation: "prj_projects";
2717
- referencedColumns: ["id"];
2802
+ referencedRelation: 'prj_projects';
2803
+ referencedColumns: ['id'];
2718
2804
  },
2719
2805
  {
2720
- foreignKeyName: "prj_tasks_milestone_id_fkey";
2721
- columns: ["milestone_id"];
2806
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
2807
+ columns: ['milestone_id'];
2722
2808
  isOneToOne: false;
2723
- referencedRelation: "prj_milestones";
2724
- referencedColumns: ["id"];
2809
+ referencedRelation: 'prj_milestones';
2810
+ referencedColumns: ['id'];
2725
2811
  },
2726
2812
  {
2727
- foreignKeyName: "prj_tasks_organization_id_fkey";
2728
- columns: ["organization_id"];
2813
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
2814
+ columns: ['organization_id'];
2729
2815
  isOneToOne: false;
2730
- referencedRelation: "organizations";
2731
- referencedColumns: ["id"];
2816
+ referencedRelation: 'organizations';
2817
+ referencedColumns: ['id'];
2732
2818
  },
2733
2819
  {
2734
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
2735
- columns: ["parent_task_id"];
2820
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
2821
+ columns: ['parent_task_id'];
2736
2822
  isOneToOne: false;
2737
- referencedRelation: "prj_tasks";
2738
- referencedColumns: ["id"];
2823
+ referencedRelation: 'prj_tasks';
2824
+ referencedColumns: ['id'];
2739
2825
  },
2740
2826
  {
2741
- foreignKeyName: "prj_tasks_project_id_fkey";
2742
- columns: ["project_id"];
2827
+ foreignKeyName: 'prj_tasks_project_id_fkey';
2828
+ columns: ['project_id'];
2743
2829
  isOneToOne: false;
2744
- referencedRelation: "prj_projects";
2745
- referencedColumns: ["id"];
2830
+ referencedRelation: 'prj_projects';
2831
+ referencedColumns: ['id'];
2746
2832
  }
2747
2833
  ];
2748
2834
  };
@@ -2812,25 +2898,25 @@ type Database = {
2812
2898
  };
2813
2899
  Relationships: [
2814
2900
  {
2815
- foreignKeyName: "reported_requests_organization_id_fkey";
2816
- columns: ["organization_id"];
2901
+ foreignKeyName: 'reported_requests_organization_id_fkey';
2902
+ columns: ['organization_id'];
2817
2903
  isOneToOne: false;
2818
- referencedRelation: "organizations";
2819
- referencedColumns: ["id"];
2904
+ referencedRelation: 'organizations';
2905
+ referencedColumns: ['id'];
2820
2906
  },
2821
2907
  {
2822
- foreignKeyName: "reported_requests_project_id_fkey";
2823
- columns: ["project_id"];
2908
+ foreignKeyName: 'reported_requests_project_id_fkey';
2909
+ columns: ['project_id'];
2824
2910
  isOneToOne: false;
2825
- referencedRelation: "prj_projects";
2826
- referencedColumns: ["id"];
2911
+ referencedRelation: 'prj_projects';
2912
+ referencedColumns: ['id'];
2827
2913
  },
2828
2914
  {
2829
- foreignKeyName: "reported_requests_task_id_fkey";
2830
- columns: ["task_id"];
2915
+ foreignKeyName: 'reported_requests_task_id_fkey';
2916
+ columns: ['task_id'];
2831
2917
  isOneToOne: false;
2832
- referencedRelation: "prj_tasks";
2833
- referencedColumns: ["id"];
2918
+ referencedRelation: 'prj_tasks';
2919
+ referencedColumns: ['id'];
2834
2920
  }
2835
2921
  ];
2836
2922
  };
@@ -2870,11 +2956,11 @@ type Database = {
2870
2956
  };
2871
2957
  Relationships: [
2872
2958
  {
2873
- foreignKeyName: "session_messages_session_id_fkey";
2874
- columns: ["session_id"];
2959
+ foreignKeyName: 'session_messages_session_id_fkey';
2960
+ columns: ['session_id'];
2875
2961
  isOneToOne: false;
2876
- referencedRelation: "sessions";
2877
- referencedColumns: ["session_id"];
2962
+ referencedRelation: 'sessions';
2963
+ referencedColumns: ['session_id'];
2878
2964
  }
2879
2965
  ];
2880
2966
  };
@@ -2929,18 +3015,18 @@ type Database = {
2929
3015
  };
2930
3016
  Relationships: [
2931
3017
  {
2932
- foreignKeyName: "fk_organization";
2933
- columns: ["organization_id"];
3018
+ foreignKeyName: 'fk_organization';
3019
+ columns: ['organization_id'];
2934
3020
  isOneToOne: false;
2935
- referencedRelation: "organizations";
2936
- referencedColumns: ["id"];
3021
+ referencedRelation: 'organizations';
3022
+ referencedColumns: ['id'];
2937
3023
  },
2938
3024
  {
2939
- foreignKeyName: "fk_user";
2940
- columns: ["user_id"];
3025
+ foreignKeyName: 'fk_user';
3026
+ columns: ['user_id'];
2941
3027
  isOneToOne: false;
2942
- referencedRelation: "users";
2943
- referencedColumns: ["id"];
3028
+ referencedRelation: 'users';
3029
+ referencedColumns: ['id'];
2944
3030
  }
2945
3031
  ];
2946
3032
  };
@@ -3016,11 +3102,11 @@ type Database = {
3016
3102
  };
3017
3103
  Relationships: [
3018
3104
  {
3019
- foreignKeyName: "task_schedules_organization_id_fkey";
3020
- columns: ["organization_id"];
3105
+ foreignKeyName: 'task_schedules_organization_id_fkey';
3106
+ columns: ['organization_id'];
3021
3107
  isOneToOne: false;
3022
- referencedRelation: "organizations";
3023
- referencedColumns: ["id"];
3108
+ referencedRelation: 'organizations';
3109
+ referencedColumns: ['id'];
3024
3110
  }
3025
3111
  ];
3026
3112
  };
@@ -3075,11 +3161,11 @@ type Database = {
3075
3161
  };
3076
3162
  Relationships: [
3077
3163
  {
3078
- foreignKeyName: "user_profiles_last_visited_org_fkey";
3079
- columns: ["last_visited_org"];
3164
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
3165
+ columns: ['last_visited_org'];
3080
3166
  isOneToOne: false;
3081
- referencedRelation: "organizations";
3082
- referencedColumns: ["id"];
3167
+ referencedRelation: 'organizations';
3168
+ referencedColumns: ['id'];
3083
3169
  }
3084
3170
  ];
3085
3171
  };
@@ -3128,11 +3214,11 @@ type Database = {
3128
3214
  };
3129
3215
  Relationships: [
3130
3216
  {
3131
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
3132
- columns: ["organization_id"];
3217
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
3218
+ columns: ['organization_id'];
3133
3219
  isOneToOne: false;
3134
- referencedRelation: "organizations";
3135
- referencedColumns: ["id"];
3220
+ referencedRelation: 'organizations';
3221
+ referencedColumns: ['id'];
3136
3222
  }
3137
3223
  ];
3138
3224
  };
@@ -3280,17 +3366,17 @@ type Database = {
3280
3366
  };
3281
3367
  };
3282
3368
  };
3283
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
3284
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3285
- 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']) | {
3286
3372
  schema: keyof DatabaseWithoutInternals;
3287
3373
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
3288
3374
  schema: keyof DatabaseWithoutInternals;
3289
- } ? 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 {
3290
3376
  schema: keyof DatabaseWithoutInternals;
3291
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3377
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
3292
3378
  Row: infer R;
3293
- } ? 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 {
3294
3380
  Row: infer R;
3295
3381
  } ? R : never : never;
3296
3382
 
@@ -3358,6 +3444,7 @@ interface AcqDealTask {
3358
3444
  /**
3359
3445
  * Live-scan aggregate telemetry for a single list, computed on demand from
3360
3446
  * the list junction tables and current contact deliverability state.
3447
+ * `stageCounts` are attempted counts from list-row processing_state.
3361
3448
  */
3362
3449
  interface ListTelemetry {
3363
3450
  listId: string;
@@ -3383,6 +3470,138 @@ interface ListTelemetry {
3383
3470
  activeWorkflows?: string[];
3384
3471
  }
3385
3472
 
3473
+ declare const TransitionItemRequestSchema: z.ZodObject<{
3474
+ pipelineKey: z.ZodString;
3475
+ stageKey: z.ZodString;
3476
+ stateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3477
+ reason: z.ZodOptional<z.ZodString>;
3478
+ expectedUpdatedAt: z.ZodOptional<z.ZodString>;
3479
+ }, z.core.$strict>;
3480
+ type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
3481
+ /**
3482
+ * Lifecycle status enum for `acq_lists.status` (mirrors DB CHECK constraint
3483
+ * from migration 20260428000003_lead_gen_acq_lists_status_and_config.sql).
3484
+ */
3485
+ declare const ListStatusSchema: z.ZodEnum<{
3486
+ closing: "closing";
3487
+ draft: "draft";
3488
+ enriching: "enriching";
3489
+ launched: "launched";
3490
+ archived: "archived";
3491
+ }>;
3492
+ declare const ListCompaniesQuerySchema: z.ZodObject<{
3493
+ search: z.ZodOptional<z.ZodString>;
3494
+ listId: z.ZodOptional<z.ZodString>;
3495
+ domain: z.ZodOptional<z.ZodString>;
3496
+ website: z.ZodOptional<z.ZodString>;
3497
+ segment: z.ZodOptional<z.ZodString>;
3498
+ category: z.ZodOptional<z.ZodString>;
3499
+ batchId: z.ZodOptional<z.ZodString>;
3500
+ status: z.ZodOptional<z.ZodEnum<{
3501
+ active: "active";
3502
+ invalid: "invalid";
3503
+ }>>;
3504
+ includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3505
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3506
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3507
+ }, z.core.$strict>;
3508
+ declare const ListContactsQuerySchema: z.ZodObject<{
3509
+ search: z.ZodOptional<z.ZodString>;
3510
+ listId: z.ZodOptional<z.ZodString>;
3511
+ openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3512
+ batchId: z.ZodOptional<z.ZodString>;
3513
+ contactStatus: z.ZodOptional<z.ZodEnum<{
3514
+ active: "active";
3515
+ invalid: "invalid";
3516
+ }>>;
3517
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3518
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3519
+ }, z.core.$strict>;
3520
+ declare const AcqCompanyResponseSchema: z.ZodObject<{
3521
+ id: z.ZodString;
3522
+ organizationId: z.ZodString;
3523
+ name: z.ZodString;
3524
+ domain: z.ZodNullable<z.ZodString>;
3525
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3526
+ website: z.ZodNullable<z.ZodString>;
3527
+ numEmployees: z.ZodNullable<z.ZodNumber>;
3528
+ foundedYear: z.ZodNullable<z.ZodNumber>;
3529
+ locationCity: z.ZodNullable<z.ZodString>;
3530
+ locationState: z.ZodNullable<z.ZodString>;
3531
+ category: z.ZodNullable<z.ZodString>;
3532
+ categoryPain: z.ZodNullable<z.ZodString>;
3533
+ segment: z.ZodNullable<z.ZodString>;
3534
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3535
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3536
+ source: z.ZodNullable<z.ZodString>;
3537
+ batchId: z.ZodNullable<z.ZodString>;
3538
+ status: z.ZodEnum<{
3539
+ active: "active";
3540
+ invalid: "invalid";
3541
+ }>;
3542
+ contactCount: z.ZodNumber;
3543
+ verticalResearch: z.ZodNullable<z.ZodString>;
3544
+ createdAt: z.ZodString;
3545
+ updatedAt: z.ZodString;
3546
+ }, z.core.$strip>;
3547
+ declare const AcqContactResponseSchema: z.ZodObject<{
3548
+ id: z.ZodString;
3549
+ organizationId: z.ZodString;
3550
+ companyId: z.ZodNullable<z.ZodString>;
3551
+ email: z.ZodString;
3552
+ emailValid: z.ZodNullable<z.ZodEnum<{
3553
+ VALID: "VALID";
3554
+ INVALID: "INVALID";
3555
+ RISKY: "RISKY";
3556
+ UNKNOWN: "UNKNOWN";
3557
+ }>>;
3558
+ firstName: z.ZodNullable<z.ZodString>;
3559
+ lastName: z.ZodNullable<z.ZodString>;
3560
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3561
+ title: z.ZodNullable<z.ZodString>;
3562
+ headline: z.ZodNullable<z.ZodString>;
3563
+ filterReason: z.ZodNullable<z.ZodString>;
3564
+ openingLine: z.ZodNullable<z.ZodString>;
3565
+ source: z.ZodNullable<z.ZodString>;
3566
+ sourceId: z.ZodNullable<z.ZodString>;
3567
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3568
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3569
+ attioPersonId: z.ZodNullable<z.ZodString>;
3570
+ batchId: z.ZodNullable<z.ZodString>;
3571
+ status: z.ZodEnum<{
3572
+ active: "active";
3573
+ invalid: "invalid";
3574
+ }>;
3575
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3576
+ id: z.ZodString;
3577
+ name: z.ZodString;
3578
+ domain: z.ZodNullable<z.ZodString>;
3579
+ website: z.ZodNullable<z.ZodString>;
3580
+ linkedinUrl: z.ZodNullable<z.ZodString>;
3581
+ segment: z.ZodNullable<z.ZodString>;
3582
+ category: z.ZodNullable<z.ZodString>;
3583
+ status: z.ZodEnum<{
3584
+ active: "active";
3585
+ invalid: "invalid";
3586
+ }>;
3587
+ }, z.core.$strip>>>;
3588
+ createdAt: z.ZodString;
3589
+ updatedAt: z.ZodString;
3590
+ }, z.core.$strip>;
3591
+ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
3592
+ company: "company";
3593
+ contact: "contact";
3594
+ list: "list";
3595
+ deal: "deal";
3596
+ list_member: "list_member";
3597
+ }>;
3598
+ type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3599
+ type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3600
+ type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3601
+ type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3602
+ type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
3603
+ type ListStatus = z.infer<typeof ListStatusSchema>;
3604
+
3386
3605
  /**
3387
3606
  * Lead Service Types
3388
3607
  * CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
@@ -3697,109 +3916,11 @@ interface ProjectDetail extends ProjectRow {
3697
3916
  } | null;
3698
3917
  }
3699
3918
 
3700
- declare const ListCompaniesQuerySchema: z.ZodObject<{
3701
- search: z.ZodOptional<z.ZodString>;
3702
- listId: z.ZodOptional<z.ZodString>;
3703
- domain: z.ZodOptional<z.ZodString>;
3704
- website: z.ZodOptional<z.ZodString>;
3705
- segment: z.ZodOptional<z.ZodString>;
3706
- category: z.ZodOptional<z.ZodString>;
3707
- batchId: z.ZodOptional<z.ZodString>;
3708
- status: z.ZodOptional<z.ZodEnum<{
3709
- active: "active";
3710
- invalid: "invalid";
3711
- }>>;
3712
- includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3713
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3714
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3715
- }, z.core.$strict>;
3716
- declare const ListContactsQuerySchema: z.ZodObject<{
3717
- search: z.ZodOptional<z.ZodString>;
3718
- listId: z.ZodOptional<z.ZodString>;
3719
- openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3720
- batchId: z.ZodOptional<z.ZodString>;
3721
- contactStatus: z.ZodOptional<z.ZodEnum<{
3722
- active: "active";
3723
- invalid: "invalid";
3724
- }>>;
3725
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3726
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3727
- }, z.core.$strict>;
3728
- declare const AcqCompanyResponseSchema: z.ZodObject<{
3729
- id: z.ZodString;
3730
- organizationId: z.ZodString;
3731
- name: z.ZodString;
3732
- domain: z.ZodNullable<z.ZodString>;
3733
- linkedinUrl: z.ZodNullable<z.ZodString>;
3734
- website: z.ZodNullable<z.ZodString>;
3735
- numEmployees: z.ZodNullable<z.ZodNumber>;
3736
- foundedYear: z.ZodNullable<z.ZodNumber>;
3737
- locationCity: z.ZodNullable<z.ZodString>;
3738
- locationState: z.ZodNullable<z.ZodString>;
3739
- category: z.ZodNullable<z.ZodString>;
3740
- categoryPain: z.ZodNullable<z.ZodString>;
3741
- segment: z.ZodNullable<z.ZodString>;
3742
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3743
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3744
- source: z.ZodNullable<z.ZodString>;
3745
- batchId: z.ZodNullable<z.ZodString>;
3746
- status: z.ZodEnum<{
3747
- active: "active";
3748
- invalid: "invalid";
3749
- }>;
3750
- contactCount: z.ZodNumber;
3751
- verticalResearch: z.ZodNullable<z.ZodString>;
3752
- createdAt: z.ZodString;
3753
- updatedAt: z.ZodString;
3754
- }, z.core.$strip>;
3755
- declare const AcqContactResponseSchema: z.ZodObject<{
3756
- id: z.ZodString;
3757
- organizationId: z.ZodString;
3758
- companyId: z.ZodNullable<z.ZodString>;
3759
- email: z.ZodString;
3760
- emailValid: z.ZodNullable<z.ZodEnum<{
3761
- VALID: "VALID";
3762
- INVALID: "INVALID";
3763
- RISKY: "RISKY";
3764
- UNKNOWN: "UNKNOWN";
3765
- }>>;
3766
- firstName: z.ZodNullable<z.ZodString>;
3767
- lastName: z.ZodNullable<z.ZodString>;
3768
- linkedinUrl: z.ZodNullable<z.ZodString>;
3769
- title: z.ZodNullable<z.ZodString>;
3770
- headline: z.ZodNullable<z.ZodString>;
3771
- filterReason: z.ZodNullable<z.ZodString>;
3772
- openingLine: z.ZodNullable<z.ZodString>;
3773
- source: z.ZodNullable<z.ZodString>;
3774
- sourceId: z.ZodNullable<z.ZodString>;
3775
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3776
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3777
- attioPersonId: z.ZodNullable<z.ZodString>;
3778
- batchId: z.ZodNullable<z.ZodString>;
3779
- status: z.ZodEnum<{
3780
- active: "active";
3781
- invalid: "invalid";
3782
- }>;
3783
- company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3784
- id: z.ZodString;
3785
- name: z.ZodString;
3786
- domain: z.ZodNullable<z.ZodString>;
3787
- website: z.ZodNullable<z.ZodString>;
3788
- linkedinUrl: z.ZodNullable<z.ZodString>;
3789
- segment: z.ZodNullable<z.ZodString>;
3790
- category: z.ZodNullable<z.ZodString>;
3791
- status: z.ZodEnum<{
3792
- active: "active";
3793
- invalid: "invalid";
3794
- }>;
3795
- }, z.core.$strip>>>;
3796
- createdAt: z.ZodString;
3797
- updatedAt: z.ZodString;
3798
- }, z.core.$strip>;
3799
- type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
3800
- type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
3801
- type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
3802
- type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3919
+ interface Action {
3920
+ key: string;
3921
+ label: string;
3922
+ payloadSchema?: z.ZodTypeAny;
3923
+ }
3803
3924
 
3804
3925
  type MessageType = MessageEvent['type'];
3805
3926
  /**
@@ -6896,6 +7017,31 @@ interface TransitionItemInput {
6896
7017
  */
6897
7018
  declare function useTransitionItem(): _tanstack_react_query.UseMutationResult<void, Error, TransitionItemInput, unknown>;
6898
7019
 
7020
+ interface TransitionStateInput {
7021
+ dealId: string;
7022
+ stateKey: string;
7023
+ reason?: string;
7024
+ expectedUpdatedAt?: string;
7025
+ }
7026
+ declare function useTransitionState(): _tanstack_react_query.UseMutationResult<void, Error, TransitionStateInput, unknown>;
7027
+
7028
+ interface ExecuteActionInput {
7029
+ key: string;
7030
+ payload?: Record<string, unknown>;
7031
+ }
7032
+ /**
7033
+ * Execute a CRM deal action via POST /deals/:dealId/actions/:key.
7034
+ *
7035
+ * The server validates availability server-authoritatively, dispatches through
7036
+ * the unified workflow path via the action definition's workflowId, and emits an
7037
+ * action_taken activity event.
7038
+ *
7039
+ * On success invalidates the deal detail and deals list queries.
7040
+ */
7041
+ declare function useExecuteAction({ dealId }: {
7042
+ dealId: string;
7043
+ }): _tanstack_react_query.UseMutationResult<void, Error, ExecuteActionInput, unknown>;
7044
+
6899
7045
  /**
6900
7046
  * Query keys for deal notes
6901
7047
  */
@@ -6988,45 +7134,32 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
6988
7134
  type: string;
6989
7135
  batchIds: string[];
6990
7136
  instantlyCampaignId: string | null;
6991
- status: string;
7137
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
6992
7138
  metadata: Record<string, unknown>;
6993
7139
  launchedAt: string | null;
6994
7140
  completedAt: string | null;
6995
7141
  createdAt: string;
6996
- config: {
6997
- qualification: {
6998
- targetDescription: string;
6999
- minReviewCount: number;
7000
- minRating: number;
7001
- excludeFranchises: boolean;
7002
- customRules: string;
7003
- };
7004
- enrichment?: {
7005
- emailDiscovery?: {
7006
- primary: "tomba" | "anymailfinder";
7007
- credentialName?: string | undefined;
7008
- } | undefined;
7009
- emailVerification?: {
7010
- provider: "millionverifier";
7011
- threshold?: "ok" | "ok+catch_all" | undefined;
7012
- } | undefined;
7013
- } | undefined;
7014
- personalization?: {
7015
- industryContext?: string | undefined;
7016
- emailBody?: string | undefined;
7017
- creativeDirection?: string | undefined;
7018
- exclusionRules?: string[] | undefined;
7019
- } | undefined;
7020
- pipeline?: {
7021
- steps: {
7022
- key: string;
7023
- label: string;
7024
- resourceId: string;
7025
- inputTemplate: Record<string, unknown>;
7026
- enabled: boolean;
7027
- order: number;
7028
- }[];
7029
- } | undefined;
7142
+ scrapingConfig: {
7143
+ vertical?: string | undefined;
7144
+ geography?: string | undefined;
7145
+ size?: string | undefined;
7146
+ apifyInput?: Record<string, unknown> | undefined;
7147
+ };
7148
+ icp: {
7149
+ qualificationRubricKey?: string | null | undefined;
7150
+ targetDescription?: string | undefined;
7151
+ minReviewCount?: number | undefined;
7152
+ minRating?: number | undefined;
7153
+ excludeFranchises?: boolean | undefined;
7154
+ customRules?: string | undefined;
7155
+ };
7156
+ pipelineConfig: {
7157
+ stages?: {
7158
+ key: string;
7159
+ label?: string | undefined;
7160
+ enabled?: boolean | undefined;
7161
+ order?: number | undefined;
7162
+ }[] | undefined;
7030
7163
  };
7031
7164
  }[], Error>;
7032
7165
  declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
@@ -7037,49 +7170,59 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7037
7170
  type: string;
7038
7171
  batchIds: string[];
7039
7172
  instantlyCampaignId: string | null;
7040
- status: string;
7173
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7041
7174
  metadata: Record<string, unknown>;
7042
7175
  launchedAt: string | null;
7043
7176
  completedAt: string | null;
7044
7177
  createdAt: string;
7045
- config: {
7046
- qualification: {
7047
- targetDescription: string;
7048
- minReviewCount: number;
7049
- minRating: number;
7050
- excludeFranchises: boolean;
7051
- customRules: string;
7052
- };
7053
- enrichment?: {
7054
- emailDiscovery?: {
7055
- primary: "tomba" | "anymailfinder";
7056
- credentialName?: string | undefined;
7057
- } | undefined;
7058
- emailVerification?: {
7059
- provider: "millionverifier";
7060
- threshold?: "ok" | "ok+catch_all" | undefined;
7061
- } | undefined;
7062
- } | undefined;
7063
- personalization?: {
7064
- industryContext?: string | undefined;
7065
- emailBody?: string | undefined;
7066
- creativeDirection?: string | undefined;
7067
- exclusionRules?: string[] | undefined;
7068
- } | undefined;
7069
- pipeline?: {
7070
- steps: {
7071
- key: string;
7072
- label: string;
7073
- resourceId: string;
7074
- inputTemplate: Record<string, unknown>;
7075
- enabled: boolean;
7076
- order: number;
7077
- }[];
7078
- } | undefined;
7178
+ scrapingConfig: {
7179
+ vertical?: string | undefined;
7180
+ geography?: string | undefined;
7181
+ size?: string | undefined;
7182
+ apifyInput?: Record<string, unknown> | undefined;
7183
+ };
7184
+ icp: {
7185
+ qualificationRubricKey?: string | null | undefined;
7186
+ targetDescription?: string | undefined;
7187
+ minReviewCount?: number | undefined;
7188
+ minRating?: number | undefined;
7189
+ excludeFranchises?: boolean | undefined;
7190
+ customRules?: string | undefined;
7191
+ };
7192
+ pipelineConfig: {
7193
+ stages?: {
7194
+ key: string;
7195
+ label?: string | undefined;
7196
+ enabled?: boolean | undefined;
7197
+ order?: number | undefined;
7198
+ }[] | undefined;
7079
7199
  };
7080
7200
  }, Error>;
7081
7201
  declare function useListsTelemetry(): _tanstack_react_query.UseQueryResult<ListTelemetry[], Error>;
7082
- declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<ListTelemetry, Error>;
7202
+ declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<{
7203
+ totalMembers: number;
7204
+ totalCompanies: number;
7205
+ byCompanyStage: Record<string, {
7206
+ total: number;
7207
+ attempted: number;
7208
+ success: number;
7209
+ noResult: number;
7210
+ skipped: number;
7211
+ error: number;
7212
+ other: number;
7213
+ notAttempted: number;
7214
+ }>;
7215
+ byContactStage: Record<string, {
7216
+ total: number;
7217
+ attempted: number;
7218
+ success: number;
7219
+ noResult: number;
7220
+ skipped: number;
7221
+ error: number;
7222
+ other: number;
7223
+ notAttempted: number;
7224
+ }>;
7225
+ }, Error>;
7083
7226
  declare function useListExecutions(listId: string): _tanstack_react_query.UseQueryResult<{
7084
7227
  executionId: string;
7085
7228
  resourceId: string;
@@ -7096,84 +7239,58 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7096
7239
  type: string;
7097
7240
  batchIds: string[];
7098
7241
  instantlyCampaignId: string | null;
7099
- status: string;
7242
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7100
7243
  metadata: Record<string, unknown>;
7101
7244
  launchedAt: string | null;
7102
7245
  completedAt: string | null;
7103
7246
  createdAt: string;
7104
- config: {
7105
- qualification: {
7106
- targetDescription: string;
7107
- minReviewCount: number;
7108
- minRating: number;
7109
- excludeFranchises: boolean;
7110
- customRules: string;
7111
- };
7112
- enrichment?: {
7113
- emailDiscovery?: {
7114
- primary: "tomba" | "anymailfinder";
7115
- credentialName?: string | undefined;
7116
- } | undefined;
7117
- emailVerification?: {
7118
- provider: "millionverifier";
7119
- threshold?: "ok" | "ok+catch_all" | undefined;
7120
- } | undefined;
7121
- } | undefined;
7122
- personalization?: {
7123
- industryContext?: string | undefined;
7124
- emailBody?: string | undefined;
7125
- creativeDirection?: string | undefined;
7126
- exclusionRules?: string[] | undefined;
7127
- } | undefined;
7128
- pipeline?: {
7129
- steps: {
7130
- key: string;
7131
- label: string;
7132
- resourceId: string;
7133
- inputTemplate: Record<string, unknown>;
7134
- enabled: boolean;
7135
- order: number;
7136
- }[];
7137
- } | undefined;
7247
+ scrapingConfig: {
7248
+ vertical?: string | undefined;
7249
+ geography?: string | undefined;
7250
+ size?: string | undefined;
7251
+ apifyInput?: Record<string, unknown> | undefined;
7252
+ };
7253
+ icp: {
7254
+ qualificationRubricKey?: string | null | undefined;
7255
+ targetDescription?: string | undefined;
7256
+ minReviewCount?: number | undefined;
7257
+ minRating?: number | undefined;
7258
+ excludeFranchises?: boolean | undefined;
7259
+ customRules?: string | undefined;
7260
+ };
7261
+ pipelineConfig: {
7262
+ stages?: {
7263
+ key: string;
7264
+ label?: string | undefined;
7265
+ enabled?: boolean | undefined;
7266
+ order?: number | undefined;
7267
+ }[] | undefined;
7138
7268
  };
7139
7269
  }, Error, {
7140
7270
  name: string;
7141
- type: string;
7142
7271
  description?: string | null | undefined;
7143
- config?: {
7144
- qualification: {
7145
- targetDescription: string;
7146
- minReviewCount: number;
7147
- minRating: number;
7148
- excludeFranchises: boolean;
7149
- customRules: string;
7150
- };
7151
- enrichment?: {
7152
- emailDiscovery?: {
7153
- primary: "tomba" | "anymailfinder";
7154
- credentialName?: string | undefined;
7155
- } | undefined;
7156
- emailVerification?: {
7157
- provider: "millionverifier";
7158
- threshold?: "ok" | "ok+catch_all" | undefined;
7159
- } | undefined;
7160
- } | undefined;
7161
- personalization?: {
7162
- industryContext?: string | undefined;
7163
- emailBody?: string | undefined;
7164
- creativeDirection?: string | undefined;
7165
- exclusionRules?: string[] | undefined;
7166
- } | undefined;
7167
- pipeline?: {
7168
- steps: {
7169
- key: string;
7170
- label: string;
7171
- resourceId: string;
7172
- inputTemplate: Record<string, unknown>;
7173
- enabled: boolean;
7174
- order: number;
7175
- }[];
7176
- } | undefined;
7272
+ status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
7273
+ scrapingConfig?: {
7274
+ vertical?: string | undefined;
7275
+ geography?: string | undefined;
7276
+ size?: string | undefined;
7277
+ apifyInput?: Record<string, unknown> | undefined;
7278
+ } | undefined;
7279
+ icp?: {
7280
+ qualificationRubricKey?: string | null | undefined;
7281
+ targetDescription?: string | undefined;
7282
+ minReviewCount?: number | undefined;
7283
+ minRating?: number | undefined;
7284
+ excludeFranchises?: boolean | undefined;
7285
+ customRules?: string | undefined;
7286
+ } | undefined;
7287
+ pipelineConfig?: {
7288
+ stages?: {
7289
+ key: string;
7290
+ label?: string | undefined;
7291
+ enabled?: boolean | undefined;
7292
+ order?: number | undefined;
7293
+ }[] | undefined;
7177
7294
  } | undefined;
7178
7295
  }, unknown>;
7179
7296
  declare function useUpdateList(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -7184,50 +7301,36 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
7184
7301
  type: string;
7185
7302
  batchIds: string[];
7186
7303
  instantlyCampaignId: string | null;
7187
- status: string;
7304
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7188
7305
  metadata: Record<string, unknown>;
7189
7306
  launchedAt: string | null;
7190
7307
  completedAt: string | null;
7191
7308
  createdAt: string;
7192
- config: {
7193
- qualification: {
7194
- targetDescription: string;
7195
- minReviewCount: number;
7196
- minRating: number;
7197
- excludeFranchises: boolean;
7198
- customRules: string;
7199
- };
7200
- enrichment?: {
7201
- emailDiscovery?: {
7202
- primary: "tomba" | "anymailfinder";
7203
- credentialName?: string | undefined;
7204
- } | undefined;
7205
- emailVerification?: {
7206
- provider: "millionverifier";
7207
- threshold?: "ok" | "ok+catch_all" | undefined;
7208
- } | undefined;
7209
- } | undefined;
7210
- personalization?: {
7211
- industryContext?: string | undefined;
7212
- emailBody?: string | undefined;
7213
- creativeDirection?: string | undefined;
7214
- exclusionRules?: string[] | undefined;
7215
- } | undefined;
7216
- pipeline?: {
7217
- steps: {
7218
- key: string;
7219
- label: string;
7220
- resourceId: string;
7221
- inputTemplate: Record<string, unknown>;
7222
- enabled: boolean;
7223
- order: number;
7224
- }[];
7225
- } | undefined;
7309
+ scrapingConfig: {
7310
+ vertical?: string | undefined;
7311
+ geography?: string | undefined;
7312
+ size?: string | undefined;
7313
+ apifyInput?: Record<string, unknown> | undefined;
7314
+ };
7315
+ icp: {
7316
+ qualificationRubricKey?: string | null | undefined;
7317
+ targetDescription?: string | undefined;
7318
+ minReviewCount?: number | undefined;
7319
+ minRating?: number | undefined;
7320
+ excludeFranchises?: boolean | undefined;
7321
+ customRules?: string | undefined;
7322
+ };
7323
+ pipelineConfig: {
7324
+ stages?: {
7325
+ key: string;
7326
+ label?: string | undefined;
7327
+ enabled?: boolean | undefined;
7328
+ order?: number | undefined;
7329
+ }[] | undefined;
7226
7330
  };
7227
7331
  }, Error, {
7228
7332
  name?: string | undefined;
7229
7333
  description?: string | null | undefined;
7230
- status?: string | undefined;
7231
7334
  batchIds?: string[] | undefined;
7232
7335
  }, unknown>;
7233
7336
  declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseMutationResult<{
@@ -7238,78 +7341,54 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7238
7341
  type: string;
7239
7342
  batchIds: string[];
7240
7343
  instantlyCampaignId: string | null;
7241
- status: string;
7344
+ status: "closing" | "draft" | "enriching" | "launched" | "archived";
7242
7345
  metadata: Record<string, unknown>;
7243
7346
  launchedAt: string | null;
7244
7347
  completedAt: string | null;
7245
7348
  createdAt: string;
7246
- config: {
7247
- qualification: {
7248
- targetDescription: string;
7249
- minReviewCount: number;
7250
- minRating: number;
7251
- excludeFranchises: boolean;
7252
- customRules: string;
7253
- };
7254
- enrichment?: {
7255
- emailDiscovery?: {
7256
- primary: "tomba" | "anymailfinder";
7257
- credentialName?: string | undefined;
7258
- } | undefined;
7259
- emailVerification?: {
7260
- provider: "millionverifier";
7261
- threshold?: "ok" | "ok+catch_all" | undefined;
7262
- } | undefined;
7263
- } | undefined;
7264
- personalization?: {
7265
- industryContext?: string | undefined;
7266
- emailBody?: string | undefined;
7267
- creativeDirection?: string | undefined;
7268
- exclusionRules?: string[] | undefined;
7269
- } | undefined;
7270
- pipeline?: {
7271
- steps: {
7272
- key: string;
7273
- label: string;
7274
- resourceId: string;
7275
- inputTemplate: Record<string, unknown>;
7276
- enabled: boolean;
7277
- order: number;
7278
- }[];
7279
- } | undefined;
7349
+ scrapingConfig: {
7350
+ vertical?: string | undefined;
7351
+ geography?: string | undefined;
7352
+ size?: string | undefined;
7353
+ apifyInput?: Record<string, unknown> | undefined;
7280
7354
  };
7281
- }, Error, {
7282
- qualification?: {
7355
+ icp: {
7356
+ qualificationRubricKey?: string | null | undefined;
7283
7357
  targetDescription?: string | undefined;
7284
7358
  minReviewCount?: number | undefined;
7285
7359
  minRating?: number | undefined;
7286
7360
  excludeFranchises?: boolean | undefined;
7287
7361
  customRules?: string | undefined;
7362
+ };
7363
+ pipelineConfig: {
7364
+ stages?: {
7365
+ key: string;
7366
+ label?: string | undefined;
7367
+ enabled?: boolean | undefined;
7368
+ order?: number | undefined;
7369
+ }[] | undefined;
7370
+ };
7371
+ }, Error, {
7372
+ scrapingConfig?: {
7373
+ vertical?: string | undefined;
7374
+ geography?: string | undefined;
7375
+ size?: string | undefined;
7376
+ apifyInput?: Record<string, unknown> | undefined;
7288
7377
  } | undefined;
7289
- enrichment?: {
7290
- emailDiscovery?: {
7291
- primary: "tomba" | "anymailfinder";
7292
- credentialName?: string | undefined;
7293
- } | undefined;
7294
- emailVerification?: {
7295
- provider: "millionverifier";
7296
- threshold?: "ok" | "ok+catch_all" | undefined;
7297
- } | undefined;
7298
- } | undefined;
7299
- personalization?: {
7300
- industryContext?: string | undefined;
7301
- emailBody?: string | undefined;
7302
- creativeDirection?: string | undefined;
7303
- exclusionRules?: string[] | undefined;
7378
+ icp?: {
7379
+ qualificationRubricKey?: string | null | undefined;
7380
+ targetDescription?: string | undefined;
7381
+ minReviewCount?: number | undefined;
7382
+ minRating?: number | undefined;
7383
+ excludeFranchises?: boolean | undefined;
7384
+ customRules?: string | undefined;
7304
7385
  } | undefined;
7305
- pipeline?: {
7306
- steps?: {
7386
+ pipelineConfig?: {
7387
+ stages?: {
7307
7388
  key: string;
7308
- label: string;
7309
- resourceId: string;
7310
- inputTemplate: Record<string, unknown>;
7311
- enabled: boolean;
7312
- order: number;
7389
+ label?: string | undefined;
7390
+ enabled?: boolean | undefined;
7391
+ order?: number | undefined;
7313
7392
  }[] | undefined;
7314
7393
  } | undefined;
7315
7394
  }, unknown>;
@@ -7654,6 +7733,166 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
7654
7733
  }, unknown>;
7655
7734
  declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
7656
7735
 
7736
+ declare const leadGenArtifactKeys: {
7737
+ all: readonly ["lead-gen-artifacts"];
7738
+ list: (organizationId: string | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", string | null, "company" | "contact" | "list" | "deal" | "list_member", string];
7739
+ };
7740
+ interface UseArtifactsParams {
7741
+ ownerKind: AcqArtifactOwnerKind;
7742
+ ownerId: string;
7743
+ }
7744
+ declare function useArtifacts({ ownerKind, ownerId }: UseArtifactsParams): _tanstack_react_query.UseQueryResult<{
7745
+ artifacts: {
7746
+ id: string;
7747
+ organizationId: string;
7748
+ ownerKind: string;
7749
+ ownerId: string;
7750
+ kind: string;
7751
+ content: Record<string, unknown>;
7752
+ sourceExecutionId: string | null;
7753
+ createdBy: string | null;
7754
+ createdAt: string;
7755
+ version: number;
7756
+ }[];
7757
+ }, Error>;
7758
+ declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
7759
+ id: string;
7760
+ organizationId: string;
7761
+ ownerKind: string;
7762
+ ownerId: string;
7763
+ kind: string;
7764
+ content: Record<string, unknown>;
7765
+ sourceExecutionId: string | null;
7766
+ createdBy: string | null;
7767
+ createdAt: string;
7768
+ version: number;
7769
+ }, Error, {
7770
+ ownerKind: "company" | "contact" | "list" | "deal" | "list_member";
7771
+ ownerId: string;
7772
+ kind: string;
7773
+ content: Record<string, unknown>;
7774
+ sourceExecutionId?: string | undefined;
7775
+ }, unknown>;
7776
+
7777
+ declare const leadGenListMemberKeys: {
7778
+ all: readonly ["lead-gen-list-members"];
7779
+ list: (organizationId: string | null, listId: string) => readonly ["lead-gen-list-members", string | null, "list", string];
7780
+ detail: (organizationId: string | null, memberId: string) => readonly ["lead-gen-list-members", string | null, "detail", string];
7781
+ };
7782
+ declare function useListMembers({ listId }: {
7783
+ listId: string;
7784
+ }): _tanstack_react_query.UseQueryResult<{
7785
+ members: {
7786
+ id: string;
7787
+ listId: string;
7788
+ contactId: string;
7789
+ pipelineKey: string;
7790
+ stageKey: string;
7791
+ stateKey: string;
7792
+ activityLog: unknown;
7793
+ addedAt: string;
7794
+ addedBy: string | null;
7795
+ sourceExecutionId: string | null;
7796
+ contact: {
7797
+ id: string;
7798
+ email: string;
7799
+ firstName: string | null;
7800
+ lastName: string | null;
7801
+ title: string | null;
7802
+ linkedinUrl: string | null;
7803
+ companyId: string | null;
7804
+ } | null;
7805
+ }[];
7806
+ }, Error>;
7807
+ declare function useListMember(memberId: string): _tanstack_react_query.UseQueryResult<{
7808
+ id: string;
7809
+ listId: string;
7810
+ contactId: string;
7811
+ pipelineKey: string;
7812
+ stageKey: string;
7813
+ stateKey: string;
7814
+ activityLog: unknown;
7815
+ addedAt: string;
7816
+ addedBy: string | null;
7817
+ sourceExecutionId: string | null;
7818
+ contact: {
7819
+ id: string;
7820
+ email: string;
7821
+ firstName: string | null;
7822
+ lastName: string | null;
7823
+ title: string | null;
7824
+ linkedinUrl: string | null;
7825
+ companyId: string | null;
7826
+ } | null;
7827
+ }, Error>;
7828
+
7829
+ interface TransitionListMemberInput extends TransitionItemRequest {
7830
+ memberId: string;
7831
+ /** Used to invalidate the parent list's member roster after transition. */
7832
+ listId?: string;
7833
+ }
7834
+ /**
7835
+ * Transition a list-member's stage/state via PATCH /acquisition/list-members/:memberId/transition.
7836
+ *
7837
+ * On success invalidates the member detail and, if listId is provided, the member
7838
+ * roster for that list. Mirrors useTransitionItem.ts structure.
7839
+ */
7840
+ declare function useTransitionListMember(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListMemberInput, unknown>;
7841
+
7842
+ declare const leadGenListCompanyKeys: {
7843
+ all: readonly ["lead-gen-list-companies"];
7844
+ detail: (organizationId: string | null, listCompanyId: string) => readonly ["lead-gen-list-companies", string | null, "detail", string];
7845
+ };
7846
+ interface TransitionListCompanyInput extends TransitionItemRequest {
7847
+ listCompanyId: string;
7848
+ /** Used to invalidate the parent list telemetry after transition. */
7849
+ listId?: string;
7850
+ }
7851
+ /**
7852
+ * Transition a list-company's stage/state via PATCH /acquisition/list-companies/:listCompanyId/transition.
7853
+ *
7854
+ * On success invalidates the list-company detail and, if listId is provided, the
7855
+ * parent list telemetry. Mirrors useTransitionItem.ts structure.
7856
+ */
7857
+ declare function useTransitionListCompany(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListCompanyInput, unknown>;
7858
+
7859
+ /**
7860
+ * Stateful item shape accepted by useDeriveActions.
7861
+ *
7862
+ * Currently deriveActions() is typed for AcqDealRow (CRM HITL deals). For lists
7863
+ * and list-members we accept the Stateful quartet + id so callers can pass those
7864
+ * items without a cast. When a third pipeline appears, consolidate into a shared
7865
+ * trait method on deriveActions itself.
7866
+ *
7867
+ * Decision C3: duplicate per-entity logic until a third pipeline warrants abstraction.
7868
+ */
7869
+ interface StatefulItem {
7870
+ id: string;
7871
+ pipeline_key: string;
7872
+ stage_key: string | null;
7873
+ state_key: string | null;
7874
+ activity_log: unknown;
7875
+ organization_id?: string;
7876
+ }
7877
+ /**
7878
+ * Derives contextual action buttons for a Stateful item.
7879
+ *
7880
+ * For deal items the full deriveActions() logic from @repo/core runs.
7881
+ * For non-deal items (lists, list-members, list-companies) the pipeline key
7882
+ * is 'lead-gen' and the action set will be wired in Track C Step 5+6 once
7883
+ * the lead-gen pipeline definition ships action configs. Returns [] until then.
7884
+ *
7885
+ * @param item - Any Stateful item (deal, list, list-member, etc.)
7886
+ * @returns Derived Action[] for rendering in an action toolbar.
7887
+ */
7888
+ declare function useDeriveActions(item: StatefulItem | null | undefined): Action[];
7889
+
7890
+ interface UpdateListStatusInput {
7891
+ listId: string;
7892
+ status: ListStatus;
7893
+ }
7894
+ declare function useUpdateListStatus(): _tanstack_react_query.UseMutationResult<void, Error, UpdateListStatusInput, unknown>;
7895
+
7657
7896
  interface CreateApiKeyRequest {
7658
7897
  name: string;
7659
7898
  }
@@ -8560,5 +8799,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
8560
8799
  type?: string;
8561
8800
  }, "organization_id">, unknown>;
8562
8801
 
8563
- 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, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
8564
- 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, TransitionItemInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
8802
+ 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, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
8803
+ 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, TransitionStateInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };