@elevasis/sdk 0.5.21 → 0.5.23

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.
package/dist/index.d.ts CHANGED
@@ -51,7 +51,7 @@ declare const PaginationSchema: z.ZodObject<{
51
51
  /**
52
52
  * Export type helpers for domain schemas
53
53
  */
54
- type PaginationParams$1 = z.infer<typeof PaginationSchema>;
54
+ type PaginationParams = z.infer<typeof PaginationSchema>;
55
55
 
56
56
  /**
57
57
  * Workflow-specific logging types and utilities
@@ -1169,207 +1169,177 @@ type Json = string | number | boolean | null | {
1169
1169
  } | Json[];
1170
1170
  type Database = {
1171
1171
  __InternalSupabase: {
1172
- PostgrestVersion: '12.2.3 (519615d)';
1172
+ PostgrestVersion: "12.2.3 (519615d)";
1173
1173
  };
1174
1174
  public: {
1175
1175
  Tables: {
1176
1176
  acq_companies: {
1177
1177
  Row: {
1178
1178
  attio_company_id: string | null;
1179
- business_description: string | null;
1180
- business_type: string | null;
1181
- company_values: string | null;
1182
- core_offerings: string[] | null;
1179
+ batch_id: string | null;
1180
+ category: string | null;
1183
1181
  created_at: string;
1184
1182
  domain: string | null;
1185
- enrichment_status: Json | null;
1183
+ enrichment_data: Json | null;
1186
1184
  founded_year: number | null;
1187
1185
  id: string;
1188
1186
  linkedin_url: string | null;
1189
1187
  location_city: string | null;
1190
1188
  location_state: string | null;
1191
- mission_vision: string | null;
1192
1189
  name: string;
1193
1190
  num_employees: number | null;
1194
1191
  organization_id: string;
1195
- other_segments: string[] | null;
1196
- primary_segment: string | null;
1197
- recent_web_posts: Json | null;
1192
+ pipeline_status: Json;
1193
+ segment: string | null;
1198
1194
  source: string | null;
1199
- tags: string[] | null;
1200
- target_audience: string | null;
1201
- unique_attributes: string | null;
1202
1195
  updated_at: string;
1203
1196
  website: string | null;
1204
1197
  };
1205
1198
  Insert: {
1206
1199
  attio_company_id?: string | null;
1207
- business_description?: string | null;
1208
- business_type?: string | null;
1209
- company_values?: string | null;
1210
- core_offerings?: string[] | null;
1200
+ batch_id?: string | null;
1201
+ category?: string | null;
1211
1202
  created_at?: string;
1212
1203
  domain?: string | null;
1213
- enrichment_status?: Json | null;
1204
+ enrichment_data?: Json | null;
1214
1205
  founded_year?: number | null;
1215
1206
  id?: string;
1216
1207
  linkedin_url?: string | null;
1217
1208
  location_city?: string | null;
1218
1209
  location_state?: string | null;
1219
- mission_vision?: string | null;
1220
1210
  name: string;
1221
1211
  num_employees?: number | null;
1222
1212
  organization_id: string;
1223
- other_segments?: string[] | null;
1224
- primary_segment?: string | null;
1225
- recent_web_posts?: Json | null;
1213
+ pipeline_status?: Json;
1214
+ segment?: string | null;
1226
1215
  source?: string | null;
1227
- tags?: string[] | null;
1228
- target_audience?: string | null;
1229
- unique_attributes?: string | null;
1230
1216
  updated_at?: string;
1231
1217
  website?: string | null;
1232
1218
  };
1233
1219
  Update: {
1234
1220
  attio_company_id?: string | null;
1235
- business_description?: string | null;
1236
- business_type?: string | null;
1237
- company_values?: string | null;
1238
- core_offerings?: string[] | null;
1221
+ batch_id?: string | null;
1222
+ category?: string | null;
1239
1223
  created_at?: string;
1240
1224
  domain?: string | null;
1241
- enrichment_status?: Json | null;
1225
+ enrichment_data?: Json | null;
1242
1226
  founded_year?: number | null;
1243
1227
  id?: string;
1244
1228
  linkedin_url?: string | null;
1245
1229
  location_city?: string | null;
1246
1230
  location_state?: string | null;
1247
- mission_vision?: string | null;
1248
1231
  name?: string;
1249
1232
  num_employees?: number | null;
1250
1233
  organization_id?: string;
1251
- other_segments?: string[] | null;
1252
- primary_segment?: string | null;
1253
- recent_web_posts?: Json | null;
1234
+ pipeline_status?: Json;
1235
+ segment?: string | null;
1254
1236
  source?: string | null;
1255
- tags?: string[] | null;
1256
- target_audience?: string | null;
1257
- unique_attributes?: string | null;
1258
1237
  updated_at?: string;
1259
1238
  website?: string | null;
1260
1239
  };
1261
1240
  Relationships: [
1262
1241
  {
1263
- foreignKeyName: 'acq_companies_organization_id_fkey';
1264
- columns: ['organization_id'];
1242
+ foreignKeyName: "acq_companies_organization_id_fkey";
1243
+ columns: ["organization_id"];
1265
1244
  isOneToOne: false;
1266
- referencedRelation: 'organizations';
1267
- referencedColumns: ['id'];
1245
+ referencedRelation: "organizations";
1246
+ referencedColumns: ["id"];
1268
1247
  }
1269
1248
  ];
1270
1249
  };
1271
1250
  acq_contacts: {
1272
1251
  Row: {
1273
1252
  attio_person_id: string | null;
1253
+ batch_id: string | null;
1274
1254
  brochure_first_viewed_at: string | null;
1275
1255
  brochure_view_count: number;
1276
1256
  company_id: string | null;
1277
1257
  created_at: string;
1278
1258
  email: string;
1279
1259
  email_valid: string | null;
1280
- enrichment_status: Json | null;
1260
+ enrichment_data: Json;
1281
1261
  filter_reason: string | null;
1282
1262
  first_name: string | null;
1283
1263
  headline: string | null;
1284
1264
  id: string;
1285
1265
  last_name: string | null;
1286
- li_activity: Json | null;
1287
- li_education: string | null;
1288
- li_past_experience: string | null;
1289
- li_summary: string | null;
1290
1266
  linkedin_url: string | null;
1291
1267
  nurture: boolean;
1292
1268
  opening_line: string | null;
1293
1269
  organization_id: string;
1270
+ pipeline_status: Json;
1294
1271
  qualification: string | null;
1295
1272
  source: string | null;
1296
1273
  source_id: string | null;
1297
- status: string | null;
1298
1274
  title: string | null;
1299
1275
  updated_at: string;
1300
1276
  };
1301
1277
  Insert: {
1302
1278
  attio_person_id?: string | null;
1279
+ batch_id?: string | null;
1303
1280
  brochure_first_viewed_at?: string | null;
1304
1281
  brochure_view_count?: number;
1305
1282
  company_id?: string | null;
1306
1283
  created_at?: string;
1307
1284
  email: string;
1308
1285
  email_valid?: string | null;
1309
- enrichment_status?: Json | null;
1286
+ enrichment_data?: Json;
1310
1287
  filter_reason?: string | null;
1311
1288
  first_name?: string | null;
1312
1289
  headline?: string | null;
1313
1290
  id?: string;
1314
1291
  last_name?: string | null;
1315
- li_activity?: Json | null;
1316
- li_education?: string | null;
1317
- li_past_experience?: string | null;
1318
- li_summary?: string | null;
1319
1292
  linkedin_url?: string | null;
1320
1293
  nurture?: boolean;
1321
1294
  opening_line?: string | null;
1322
1295
  organization_id: string;
1296
+ pipeline_status?: Json;
1323
1297
  qualification?: string | null;
1324
1298
  source?: string | null;
1325
1299
  source_id?: string | null;
1326
- status?: string | null;
1327
1300
  title?: string | null;
1328
1301
  updated_at?: string;
1329
1302
  };
1330
1303
  Update: {
1331
1304
  attio_person_id?: string | null;
1305
+ batch_id?: string | null;
1332
1306
  brochure_first_viewed_at?: string | null;
1333
1307
  brochure_view_count?: number;
1334
1308
  company_id?: string | null;
1335
1309
  created_at?: string;
1336
1310
  email?: string;
1337
1311
  email_valid?: string | null;
1338
- enrichment_status?: Json | null;
1312
+ enrichment_data?: Json;
1339
1313
  filter_reason?: string | null;
1340
1314
  first_name?: string | null;
1341
1315
  headline?: string | null;
1342
1316
  id?: string;
1343
1317
  last_name?: string | null;
1344
- li_activity?: Json | null;
1345
- li_education?: string | null;
1346
- li_past_experience?: string | null;
1347
- li_summary?: string | null;
1348
1318
  linkedin_url?: string | null;
1349
1319
  nurture?: boolean;
1350
1320
  opening_line?: string | null;
1351
1321
  organization_id?: string;
1322
+ pipeline_status?: Json;
1352
1323
  qualification?: string | null;
1353
1324
  source?: string | null;
1354
1325
  source_id?: string | null;
1355
- status?: string | null;
1356
1326
  title?: string | null;
1357
1327
  updated_at?: string;
1358
1328
  };
1359
1329
  Relationships: [
1360
1330
  {
1361
- foreignKeyName: 'acq_contacts_company_id_fkey';
1362
- columns: ['company_id'];
1331
+ foreignKeyName: "acq_contacts_company_id_fkey";
1332
+ columns: ["company_id"];
1363
1333
  isOneToOne: false;
1364
- referencedRelation: 'acq_companies';
1365
- referencedColumns: ['id'];
1334
+ referencedRelation: "acq_companies";
1335
+ referencedColumns: ["id"];
1366
1336
  },
1367
1337
  {
1368
- foreignKeyName: 'acq_contacts_organization_id_fkey';
1369
- columns: ['organization_id'];
1338
+ foreignKeyName: "acq_contacts_organization_id_fkey";
1339
+ columns: ["organization_id"];
1370
1340
  isOneToOne: false;
1371
- referencedRelation: 'organizations';
1372
- referencedColumns: ['id'];
1341
+ referencedRelation: "organizations";
1342
+ referencedColumns: ["id"];
1373
1343
  }
1374
1344
  ];
1375
1345
  };
@@ -1478,25 +1448,25 @@ type Database = {
1478
1448
  };
1479
1449
  Relationships: [
1480
1450
  {
1481
- foreignKeyName: 'acq_deals_contact_id_fkey';
1482
- columns: ['contact_id'];
1451
+ foreignKeyName: "acq_deals_contact_id_fkey";
1452
+ columns: ["contact_id"];
1483
1453
  isOneToOne: false;
1484
- referencedRelation: 'acq_contacts';
1485
- referencedColumns: ['id'];
1454
+ referencedRelation: "acq_contacts";
1455
+ referencedColumns: ["id"];
1486
1456
  },
1487
1457
  {
1488
- foreignKeyName: 'acq_deals_organization_id_fkey';
1489
- columns: ['organization_id'];
1458
+ foreignKeyName: "acq_deals_organization_id_fkey";
1459
+ columns: ["organization_id"];
1490
1460
  isOneToOne: false;
1491
- referencedRelation: 'organizations';
1492
- referencedColumns: ['id'];
1461
+ referencedRelation: "organizations";
1462
+ referencedColumns: ["id"];
1493
1463
  },
1494
1464
  {
1495
- foreignKeyName: 'acq_deals_source_list_id_fkey';
1496
- columns: ['source_list_id'];
1465
+ foreignKeyName: "acq_deals_source_list_id_fkey";
1466
+ columns: ["source_list_id"];
1497
1467
  isOneToOne: false;
1498
- referencedRelation: 'acq_lists';
1499
- referencedColumns: ['id'];
1468
+ referencedRelation: "acq_lists";
1469
+ referencedColumns: ["id"];
1500
1470
  }
1501
1471
  ];
1502
1472
  };
@@ -1524,18 +1494,18 @@ type Database = {
1524
1494
  };
1525
1495
  Relationships: [
1526
1496
  {
1527
- foreignKeyName: 'acq_list_members_contact_id_fkey';
1528
- columns: ['contact_id'];
1497
+ foreignKeyName: "acq_list_members_contact_id_fkey";
1498
+ columns: ["contact_id"];
1529
1499
  isOneToOne: false;
1530
- referencedRelation: 'acq_contacts';
1531
- referencedColumns: ['id'];
1500
+ referencedRelation: "acq_contacts";
1501
+ referencedColumns: ["id"];
1532
1502
  },
1533
1503
  {
1534
- foreignKeyName: 'acq_list_members_list_id_fkey';
1535
- columns: ['list_id'];
1504
+ foreignKeyName: "acq_list_members_list_id_fkey";
1505
+ columns: ["list_id"];
1536
1506
  isOneToOne: false;
1537
- referencedRelation: 'acq_lists';
1538
- referencedColumns: ['id'];
1507
+ referencedRelation: "acq_lists";
1508
+ referencedColumns: ["id"];
1539
1509
  }
1540
1510
  ];
1541
1511
  };
@@ -1563,11 +1533,11 @@ type Database = {
1563
1533
  };
1564
1534
  Relationships: [
1565
1535
  {
1566
- foreignKeyName: 'acq_lists_organization_id_fkey';
1567
- columns: ['organization_id'];
1536
+ foreignKeyName: "acq_lists_organization_id_fkey";
1537
+ columns: ["organization_id"];
1568
1538
  isOneToOne: false;
1569
- referencedRelation: 'organizations';
1570
- referencedColumns: ['id'];
1539
+ referencedRelation: "organizations";
1540
+ referencedColumns: ["id"];
1571
1541
  }
1572
1542
  ];
1573
1543
  };
@@ -1616,11 +1586,11 @@ type Database = {
1616
1586
  };
1617
1587
  Relationships: [
1618
1588
  {
1619
- foreignKeyName: 'activities_organization_id_fkey';
1620
- columns: ['organization_id'];
1589
+ foreignKeyName: "activities_organization_id_fkey";
1590
+ columns: ["organization_id"];
1621
1591
  isOneToOne: false;
1622
- referencedRelation: 'organizations';
1623
- referencedColumns: ['id'];
1592
+ referencedRelation: "organizations";
1593
+ referencedColumns: ["id"];
1624
1594
  }
1625
1595
  ];
1626
1596
  };
@@ -1651,11 +1621,11 @@ type Database = {
1651
1621
  };
1652
1622
  Relationships: [
1653
1623
  {
1654
- foreignKeyName: 'api_keys_organization_id_fkey';
1655
- columns: ['organization_id'];
1624
+ foreignKeyName: "api_keys_organization_id_fkey";
1625
+ columns: ["organization_id"];
1656
1626
  isOneToOne: false;
1657
- referencedRelation: 'organizations';
1658
- referencedColumns: ['id'];
1627
+ referencedRelation: "organizations";
1628
+ referencedColumns: ["id"];
1659
1629
  }
1660
1630
  ];
1661
1631
  };
@@ -1692,11 +1662,11 @@ type Database = {
1692
1662
  };
1693
1663
  Relationships: [
1694
1664
  {
1695
- foreignKeyName: 'calibration_projects_organization_id_fkey';
1696
- columns: ['organization_id'];
1665
+ foreignKeyName: "calibration_projects_organization_id_fkey";
1666
+ columns: ["organization_id"];
1697
1667
  isOneToOne: false;
1698
- referencedRelation: 'organizations';
1699
- referencedColumns: ['id'];
1668
+ referencedRelation: "organizations";
1669
+ referencedColumns: ["id"];
1700
1670
  }
1701
1671
  ];
1702
1672
  };
@@ -1751,18 +1721,18 @@ type Database = {
1751
1721
  };
1752
1722
  Relationships: [
1753
1723
  {
1754
- foreignKeyName: 'calibration_runs_organization_id_fkey';
1755
- columns: ['organization_id'];
1724
+ foreignKeyName: "calibration_runs_organization_id_fkey";
1725
+ columns: ["organization_id"];
1756
1726
  isOneToOne: false;
1757
- referencedRelation: 'organizations';
1758
- referencedColumns: ['id'];
1727
+ referencedRelation: "organizations";
1728
+ referencedColumns: ["id"];
1759
1729
  },
1760
1730
  {
1761
- foreignKeyName: 'calibration_runs_project_id_fkey';
1762
- columns: ['project_id'];
1731
+ foreignKeyName: "calibration_runs_project_id_fkey";
1732
+ columns: ["project_id"];
1763
1733
  isOneToOne: false;
1764
- referencedRelation: 'calibration_projects';
1765
- referencedColumns: ['id'];
1734
+ referencedRelation: "calibration_projects";
1735
+ referencedColumns: ["id"];
1766
1736
  }
1767
1737
  ];
1768
1738
  };
@@ -1832,25 +1802,25 @@ type Database = {
1832
1802
  };
1833
1803
  Relationships: [
1834
1804
  {
1835
- foreignKeyName: 'command_queue_completed_by_fkey';
1836
- columns: ['completed_by'];
1805
+ foreignKeyName: "command_queue_completed_by_fkey";
1806
+ columns: ["completed_by"];
1837
1807
  isOneToOne: false;
1838
- referencedRelation: 'users';
1839
- referencedColumns: ['id'];
1808
+ referencedRelation: "users";
1809
+ referencedColumns: ["id"];
1840
1810
  },
1841
1811
  {
1842
- foreignKeyName: 'command_queue_organization_id_fkey';
1843
- columns: ['organization_id'];
1812
+ foreignKeyName: "command_queue_organization_id_fkey";
1813
+ columns: ["organization_id"];
1844
1814
  isOneToOne: false;
1845
- referencedRelation: 'organizations';
1846
- referencedColumns: ['id'];
1815
+ referencedRelation: "organizations";
1816
+ referencedColumns: ["id"];
1847
1817
  },
1848
1818
  {
1849
- foreignKeyName: 'command_queue_target_execution_id_fkey';
1850
- columns: ['target_execution_id'];
1819
+ foreignKeyName: "command_queue_target_execution_id_fkey";
1820
+ columns: ["target_execution_id"];
1851
1821
  isOneToOne: false;
1852
- referencedRelation: 'execution_logs';
1853
- referencedColumns: ['execution_id'];
1822
+ referencedRelation: "execution_logs";
1823
+ referencedColumns: ["execution_id"];
1854
1824
  }
1855
1825
  ];
1856
1826
  };
@@ -1890,18 +1860,18 @@ type Database = {
1890
1860
  };
1891
1861
  Relationships: [
1892
1862
  {
1893
- foreignKeyName: 'credentials_created_by_fkey';
1894
- columns: ['created_by'];
1863
+ foreignKeyName: "credentials_created_by_fkey";
1864
+ columns: ["created_by"];
1895
1865
  isOneToOne: false;
1896
- referencedRelation: 'users';
1897
- referencedColumns: ['id'];
1866
+ referencedRelation: "users";
1867
+ referencedColumns: ["id"];
1898
1868
  },
1899
1869
  {
1900
- foreignKeyName: 'credentials_organization_id_fkey';
1901
- columns: ['organization_id'];
1870
+ foreignKeyName: "credentials_organization_id_fkey";
1871
+ columns: ["organization_id"];
1902
1872
  isOneToOne: false;
1903
- referencedRelation: 'organizations';
1904
- referencedColumns: ['id'];
1873
+ referencedRelation: "organizations";
1874
+ referencedColumns: ["id"];
1905
1875
  }
1906
1876
  ];
1907
1877
  };
@@ -1950,11 +1920,11 @@ type Database = {
1950
1920
  };
1951
1921
  Relationships: [
1952
1922
  {
1953
- foreignKeyName: 'deployments_organization_id_fkey';
1954
- columns: ['organization_id'];
1923
+ foreignKeyName: "deployments_organization_id_fkey";
1924
+ columns: ["organization_id"];
1955
1925
  isOneToOne: false;
1956
- referencedRelation: 'organizations';
1957
- referencedColumns: ['id'];
1926
+ referencedRelation: "organizations";
1927
+ referencedColumns: ["id"];
1958
1928
  }
1959
1929
  ];
1960
1930
  };
@@ -2009,25 +1979,25 @@ type Database = {
2009
1979
  };
2010
1980
  Relationships: [
2011
1981
  {
2012
- foreignKeyName: 'execution_errors_execution_id_fkey';
2013
- columns: ['execution_id'];
1982
+ foreignKeyName: "execution_errors_execution_id_fkey";
1983
+ columns: ["execution_id"];
2014
1984
  isOneToOne: false;
2015
- referencedRelation: 'execution_logs';
2016
- referencedColumns: ['execution_id'];
1985
+ referencedRelation: "execution_logs";
1986
+ referencedColumns: ["execution_id"];
2017
1987
  },
2018
1988
  {
2019
- foreignKeyName: 'execution_errors_organization_id_fkey';
2020
- columns: ['organization_id'];
1989
+ foreignKeyName: "execution_errors_organization_id_fkey";
1990
+ columns: ["organization_id"];
2021
1991
  isOneToOne: false;
2022
- referencedRelation: 'organizations';
2023
- referencedColumns: ['id'];
1992
+ referencedRelation: "organizations";
1993
+ referencedColumns: ["id"];
2024
1994
  },
2025
1995
  {
2026
- foreignKeyName: 'execution_errors_resolved_by_fkey';
2027
- columns: ['resolved_by'];
1996
+ foreignKeyName: "execution_errors_resolved_by_fkey";
1997
+ columns: ["resolved_by"];
2028
1998
  isOneToOne: false;
2029
- referencedRelation: 'users';
2030
- referencedColumns: ['id'];
1999
+ referencedRelation: "users";
2000
+ referencedColumns: ["id"];
2031
2001
  }
2032
2002
  ];
2033
2003
  };
@@ -2106,32 +2076,32 @@ type Database = {
2106
2076
  };
2107
2077
  Relationships: [
2108
2078
  {
2109
- foreignKeyName: 'execution_history_organization_id_fkey';
2110
- columns: ['organization_id'];
2079
+ foreignKeyName: "execution_history_organization_id_fkey";
2080
+ columns: ["organization_id"];
2111
2081
  isOneToOne: false;
2112
- referencedRelation: 'organizations';
2113
- referencedColumns: ['id'];
2082
+ referencedRelation: "organizations";
2083
+ referencedColumns: ["id"];
2114
2084
  },
2115
2085
  {
2116
- foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2117
- columns: ['origin_execution_id'];
2086
+ foreignKeyName: "execution_logs_origin_execution_id_fkey";
2087
+ columns: ["origin_execution_id"];
2118
2088
  isOneToOne: false;
2119
- referencedRelation: 'execution_logs';
2120
- referencedColumns: ['execution_id'];
2089
+ referencedRelation: "execution_logs";
2090
+ referencedColumns: ["execution_id"];
2121
2091
  },
2122
2092
  {
2123
- foreignKeyName: 'execution_logs_session_id_fkey';
2124
- columns: ['session_id'];
2093
+ foreignKeyName: "execution_logs_session_id_fkey";
2094
+ columns: ["session_id"];
2125
2095
  isOneToOne: false;
2126
- referencedRelation: 'sessions';
2127
- referencedColumns: ['session_id'];
2096
+ referencedRelation: "sessions";
2097
+ referencedColumns: ["session_id"];
2128
2098
  },
2129
2099
  {
2130
- foreignKeyName: 'execution_logs_user_id_fkey';
2131
- columns: ['user_id'];
2100
+ foreignKeyName: "execution_logs_user_id_fkey";
2101
+ columns: ["user_id"];
2132
2102
  isOneToOne: false;
2133
- referencedRelation: 'users';
2134
- referencedColumns: ['id'];
2103
+ referencedRelation: "users";
2104
+ referencedColumns: ["id"];
2135
2105
  }
2136
2106
  ];
2137
2107
  };
@@ -2177,18 +2147,18 @@ type Database = {
2177
2147
  };
2178
2148
  Relationships: [
2179
2149
  {
2180
- foreignKeyName: 'execution_metrics_execution_id_fkey';
2181
- columns: ['execution_id'];
2150
+ foreignKeyName: "execution_metrics_execution_id_fkey";
2151
+ columns: ["execution_id"];
2182
2152
  isOneToOne: true;
2183
- referencedRelation: 'execution_logs';
2184
- referencedColumns: ['execution_id'];
2153
+ referencedRelation: "execution_logs";
2154
+ referencedColumns: ["execution_id"];
2185
2155
  },
2186
2156
  {
2187
- foreignKeyName: 'execution_metrics_organization_id_fkey';
2188
- columns: ['organization_id'];
2157
+ foreignKeyName: "execution_metrics_organization_id_fkey";
2158
+ columns: ["organization_id"];
2189
2159
  isOneToOne: false;
2190
- referencedRelation: 'organizations';
2191
- referencedColumns: ['id'];
2160
+ referencedRelation: "organizations";
2161
+ referencedColumns: ["id"];
2192
2162
  }
2193
2163
  ];
2194
2164
  };
@@ -2231,18 +2201,18 @@ type Database = {
2231
2201
  };
2232
2202
  Relationships: [
2233
2203
  {
2234
- foreignKeyName: 'notifications_organization_id_fkey';
2235
- columns: ['organization_id'];
2204
+ foreignKeyName: "notifications_organization_id_fkey";
2205
+ columns: ["organization_id"];
2236
2206
  isOneToOne: false;
2237
- referencedRelation: 'organizations';
2238
- referencedColumns: ['id'];
2207
+ referencedRelation: "organizations";
2208
+ referencedColumns: ["id"];
2239
2209
  },
2240
2210
  {
2241
- foreignKeyName: 'notifications_user_id_fkey';
2242
- columns: ['user_id'];
2211
+ foreignKeyName: "notifications_user_id_fkey";
2212
+ columns: ["user_id"];
2243
2213
  isOneToOne: false;
2244
- referencedRelation: 'users';
2245
- referencedColumns: ['id'];
2214
+ referencedRelation: "users";
2215
+ referencedColumns: ["id"];
2246
2216
  }
2247
2217
  ];
2248
2218
  };
@@ -2297,18 +2267,18 @@ type Database = {
2297
2267
  };
2298
2268
  Relationships: [
2299
2269
  {
2300
- foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2301
- columns: ['inviter_user_id'];
2270
+ foreignKeyName: "org_invitations_inviter_user_id_fkey";
2271
+ columns: ["inviter_user_id"];
2302
2272
  isOneToOne: false;
2303
- referencedRelation: 'users';
2304
- referencedColumns: ['id'];
2273
+ referencedRelation: "users";
2274
+ referencedColumns: ["id"];
2305
2275
  },
2306
2276
  {
2307
- foreignKeyName: 'org_invitations_organization_id_fkey';
2308
- columns: ['organization_id'];
2277
+ foreignKeyName: "org_invitations_organization_id_fkey";
2278
+ columns: ["organization_id"];
2309
2279
  isOneToOne: false;
2310
- referencedRelation: 'organizations';
2311
- referencedColumns: ['id'];
2280
+ referencedRelation: "organizations";
2281
+ referencedColumns: ["id"];
2312
2282
  }
2313
2283
  ];
2314
2284
  };
@@ -2348,18 +2318,18 @@ type Database = {
2348
2318
  };
2349
2319
  Relationships: [
2350
2320
  {
2351
- foreignKeyName: 'org_memberships_organization_id_fkey';
2352
- columns: ['organization_id'];
2321
+ foreignKeyName: "org_memberships_organization_id_fkey";
2322
+ columns: ["organization_id"];
2353
2323
  isOneToOne: false;
2354
- referencedRelation: 'organizations';
2355
- referencedColumns: ['id'];
2324
+ referencedRelation: "organizations";
2325
+ referencedColumns: ["id"];
2356
2326
  },
2357
2327
  {
2358
- foreignKeyName: 'org_memberships_user_id_fkey';
2359
- columns: ['user_id'];
2328
+ foreignKeyName: "org_memberships_user_id_fkey";
2329
+ columns: ["user_id"];
2360
2330
  isOneToOne: false;
2361
- referencedRelation: 'users';
2362
- referencedColumns: ['id'];
2331
+ referencedRelation: "users";
2332
+ referencedColumns: ["id"];
2363
2333
  }
2364
2334
  ];
2365
2335
  };
@@ -2435,11 +2405,11 @@ type Database = {
2435
2405
  };
2436
2406
  Relationships: [
2437
2407
  {
2438
- foreignKeyName: 'session_messages_session_id_fkey';
2439
- columns: ['session_id'];
2408
+ foreignKeyName: "session_messages_session_id_fkey";
2409
+ columns: ["session_id"];
2440
2410
  isOneToOne: false;
2441
- referencedRelation: 'sessions';
2442
- referencedColumns: ['session_id'];
2411
+ referencedRelation: "sessions";
2412
+ referencedColumns: ["session_id"];
2443
2413
  }
2444
2414
  ];
2445
2415
  };
@@ -2494,18 +2464,18 @@ type Database = {
2494
2464
  };
2495
2465
  Relationships: [
2496
2466
  {
2497
- foreignKeyName: 'fk_organization';
2498
- columns: ['organization_id'];
2467
+ foreignKeyName: "fk_organization";
2468
+ columns: ["organization_id"];
2499
2469
  isOneToOne: false;
2500
- referencedRelation: 'organizations';
2501
- referencedColumns: ['id'];
2470
+ referencedRelation: "organizations";
2471
+ referencedColumns: ["id"];
2502
2472
  },
2503
2473
  {
2504
- foreignKeyName: 'fk_user';
2505
- columns: ['user_id'];
2474
+ foreignKeyName: "fk_user";
2475
+ columns: ["user_id"];
2506
2476
  isOneToOne: false;
2507
- referencedRelation: 'users';
2508
- referencedColumns: ['id'];
2477
+ referencedRelation: "users";
2478
+ referencedColumns: ["id"];
2509
2479
  }
2510
2480
  ];
2511
2481
  };
@@ -2581,11 +2551,11 @@ type Database = {
2581
2551
  };
2582
2552
  Relationships: [
2583
2553
  {
2584
- foreignKeyName: 'task_schedules_organization_id_fkey';
2585
- columns: ['organization_id'];
2554
+ foreignKeyName: "task_schedules_organization_id_fkey";
2555
+ columns: ["organization_id"];
2586
2556
  isOneToOne: false;
2587
- referencedRelation: 'organizations';
2588
- referencedColumns: ['id'];
2557
+ referencedRelation: "organizations";
2558
+ referencedColumns: ["id"];
2589
2559
  }
2590
2560
  ];
2591
2561
  };
@@ -2625,18 +2595,18 @@ type Database = {
2625
2595
  };
2626
2596
  Relationships: [
2627
2597
  {
2628
- foreignKeyName: 'training_assessments_organization_id_fkey';
2629
- columns: ['organization_id'];
2598
+ foreignKeyName: "training_assessments_organization_id_fkey";
2599
+ columns: ["organization_id"];
2630
2600
  isOneToOne: false;
2631
- referencedRelation: 'organizations';
2632
- referencedColumns: ['id'];
2601
+ referencedRelation: "organizations";
2602
+ referencedColumns: ["id"];
2633
2603
  },
2634
2604
  {
2635
- foreignKeyName: 'training_assessments_user_id_fkey';
2636
- columns: ['user_id'];
2605
+ foreignKeyName: "training_assessments_user_id_fkey";
2606
+ columns: ["user_id"];
2637
2607
  isOneToOne: false;
2638
- referencedRelation: 'users';
2639
- referencedColumns: ['id'];
2608
+ referencedRelation: "users";
2609
+ referencedColumns: ["id"];
2640
2610
  }
2641
2611
  ];
2642
2612
  };
@@ -2664,18 +2634,18 @@ type Database = {
2664
2634
  };
2665
2635
  Relationships: [
2666
2636
  {
2667
- foreignKeyName: 'training_certifications_organization_id_fkey';
2668
- columns: ['organization_id'];
2637
+ foreignKeyName: "training_certifications_organization_id_fkey";
2638
+ columns: ["organization_id"];
2669
2639
  isOneToOne: false;
2670
- referencedRelation: 'organizations';
2671
- referencedColumns: ['id'];
2640
+ referencedRelation: "organizations";
2641
+ referencedColumns: ["id"];
2672
2642
  },
2673
2643
  {
2674
- foreignKeyName: 'training_certifications_user_id_fkey';
2675
- columns: ['user_id'];
2644
+ foreignKeyName: "training_certifications_user_id_fkey";
2645
+ columns: ["user_id"];
2676
2646
  isOneToOne: false;
2677
- referencedRelation: 'users';
2678
- referencedColumns: ['id'];
2647
+ referencedRelation: "users";
2648
+ referencedColumns: ["id"];
2679
2649
  }
2680
2650
  ];
2681
2651
  };
@@ -2706,18 +2676,18 @@ type Database = {
2706
2676
  };
2707
2677
  Relationships: [
2708
2678
  {
2709
- foreignKeyName: 'training_progress_organization_id_fkey';
2710
- columns: ['organization_id'];
2679
+ foreignKeyName: "training_progress_organization_id_fkey";
2680
+ columns: ["organization_id"];
2711
2681
  isOneToOne: false;
2712
- referencedRelation: 'organizations';
2713
- referencedColumns: ['id'];
2682
+ referencedRelation: "organizations";
2683
+ referencedColumns: ["id"];
2714
2684
  },
2715
2685
  {
2716
- foreignKeyName: 'training_progress_user_id_fkey';
2717
- columns: ['user_id'];
2686
+ foreignKeyName: "training_progress_user_id_fkey";
2687
+ columns: ["user_id"];
2718
2688
  isOneToOne: false;
2719
- referencedRelation: 'users';
2720
- referencedColumns: ['id'];
2689
+ referencedRelation: "users";
2690
+ referencedColumns: ["id"];
2721
2691
  }
2722
2692
  ];
2723
2693
  };
@@ -2772,11 +2742,11 @@ type Database = {
2772
2742
  };
2773
2743
  Relationships: [
2774
2744
  {
2775
- foreignKeyName: 'user_profiles_last_visited_org_fkey';
2776
- columns: ['last_visited_org'];
2745
+ foreignKeyName: "user_profiles_last_visited_org_fkey";
2746
+ columns: ["last_visited_org"];
2777
2747
  isOneToOne: false;
2778
- referencedRelation: 'organizations';
2779
- referencedColumns: ['id'];
2748
+ referencedRelation: "organizations";
2749
+ referencedColumns: ["id"];
2780
2750
  }
2781
2751
  ];
2782
2752
  };
@@ -2844,10 +2814,6 @@ type Database = {
2844
2814
  };
2845
2815
  Returns: boolean;
2846
2816
  };
2847
- is_platform_admin: {
2848
- Args: never;
2849
- Returns: boolean;
2850
- };
2851
2817
  link_workos_membership_on_accept: {
2852
2818
  Args: {
2853
2819
  p_email: string;
@@ -3272,42 +3238,93 @@ declare class ResourceRegistry {
3272
3238
  }
3273
3239
 
3274
3240
  /**
3275
- * Represents a web post from company website scraping.
3276
- * Used for recent blog posts, news, or announcements.
3241
+ * Tracks pipeline status for a company across all processing stages.
3277
3242
  */
3278
- interface WebPost {
3279
- /** ISO date string of when the post was published */
3280
- date: string;
3281
- /** Title of the web post */
3282
- title: string;
3283
- /** Brief summary of the post content */
3284
- summary: string;
3285
- /** AI-generated insight about the post's relevance */
3286
- aiInsight?: string;
3243
+ interface CompanyPipelineStatus {
3244
+ acquired: boolean;
3245
+ enrichment: {
3246
+ [source: string]: {
3247
+ status: 'pending' | 'complete' | 'failed' | 'skipped';
3248
+ completedAt?: string;
3249
+ error?: string;
3250
+ };
3251
+ };
3287
3252
  }
3288
3253
  /**
3289
- * Represents a LinkedIn activity item from a contact's profile.
3290
- * Used for personalization and understanding engagement.
3254
+ * Tracks pipeline status for a contact across all processing stages.
3291
3255
  */
3292
- interface LinkedInActivity {
3293
- /** ISO date string of the activity */
3294
- date: string;
3295
- /** Content of the LinkedIn post or activity */
3296
- content: string;
3256
+ interface ContactPipelineStatus {
3257
+ enrichment: {
3258
+ [source: string]: {
3259
+ status: 'pending' | 'complete' | 'failed' | 'skipped';
3260
+ completedAt?: string;
3261
+ error?: string;
3262
+ };
3263
+ };
3264
+ personalization: {
3265
+ status: 'pending' | 'complete' | 'failed' | 'skipped';
3266
+ completedAt?: string;
3267
+ };
3268
+ outreach: {
3269
+ status: 'pending' | 'sent' | 'replied' | 'bounced' | 'opted-out';
3270
+ sentAt?: string;
3271
+ channel?: string;
3272
+ campaignId?: string;
3273
+ };
3274
+ }
3275
+ /**
3276
+ * Enrichment data collected for a company from various sources.
3277
+ */
3278
+ interface CompanyEnrichmentData {
3279
+ googleMaps?: {
3280
+ placeId?: string;
3281
+ totalScore?: number;
3282
+ reviewsCount?: number;
3283
+ address?: string;
3284
+ phone?: string;
3285
+ categoryName?: string;
3286
+ googleMapsUrl?: string;
3287
+ scrapedAt?: string;
3288
+ };
3289
+ websiteCrawl?: {
3290
+ services?: string[];
3291
+ specialties?: string[];
3292
+ staff?: Array<{
3293
+ name: string;
3294
+ title?: string;
3295
+ email?: string;
3296
+ }>;
3297
+ emailCount?: number;
3298
+ crawledAt?: string;
3299
+ };
3300
+ website?: {
3301
+ missionVision?: string;
3302
+ uniqueAttributes?: string;
3303
+ coreOfferings?: string;
3304
+ targetAudience?: string;
3305
+ companyValues?: string;
3306
+ businessDescription?: string;
3307
+ recentPosts?: Array<{
3308
+ date?: string;
3309
+ title?: string;
3310
+ summary?: string;
3311
+ aiInsight?: string;
3312
+ }>;
3313
+ };
3297
3314
  }
3298
3315
  /**
3299
- * Tracks the status of various enrichment processes.
3300
- * Each field represents a different enrichment source.
3316
+ * Enrichment data collected for a contact from various sources.
3301
3317
  */
3302
- interface EnrichmentStatus {
3303
- /** Website scraping enrichment status */
3304
- website?: 'pending' | 'complete' | 'failed';
3305
- /** LinkedIn profile enrichment status */
3306
- linkedin?: 'pending' | 'complete' | 'failed';
3307
- /** Email validation enrichment status */
3308
- email?: 'pending' | 'complete' | 'failed';
3309
- /** AI personalization enrichment status */
3310
- personalization?: 'pending' | 'complete' | 'failed';
3318
+ interface ContactEnrichmentData {
3319
+ linkedin?: {
3320
+ summary?: string;
3321
+ pastExperience?: string;
3322
+ education?: string;
3323
+ activity?: Array<{
3324
+ date?: string;
3325
+ content?: string;
3326
+ }>;
3327
+ };
3311
3328
  }
3312
3329
  /**
3313
3330
  * Acquisition list for organizing contacts and companies.
@@ -3336,19 +3353,12 @@ interface AcqCompany {
3336
3353
  foundedYear: number | null;
3337
3354
  locationCity: string | null;
3338
3355
  locationState: string | null;
3339
- missionVision: string | null;
3340
- uniqueAttributes: string | null;
3341
- coreOfferings: string[] | null;
3342
- targetAudience: string | null;
3343
- companyValues: string | null;
3344
- businessDescription: string | null;
3345
- recentWebPosts: WebPost[] | null;
3346
- businessType: string | null;
3347
- primarySegment: string | null;
3348
- otherSegments: string[] | null;
3349
- enrichmentStatus: EnrichmentStatus | null;
3350
- tags: string[] | null;
3356
+ category: string | null;
3357
+ segment: string | null;
3358
+ pipelineStatus: CompanyPipelineStatus | null;
3359
+ enrichmentData: CompanyEnrichmentData | null;
3351
3360
  source: string | null;
3361
+ batchId: string | null;
3352
3362
  createdAt: Date;
3353
3363
  updatedAt: Date;
3354
3364
  }
@@ -3368,18 +3378,16 @@ interface AcqContact {
3368
3378
  linkedinUrl: string | null;
3369
3379
  title: string | null;
3370
3380
  headline: string | null;
3371
- liSummary: string | null;
3372
- liPastExperience: string | null;
3373
- liEducation: string | null;
3374
- liActivity: LinkedInActivity[] | null;
3375
3381
  qualification: 'qualified' | 'disqualified' | 'pending' | null;
3376
3382
  filterReason: string | null;
3377
3383
  openingLine: string | null;
3378
3384
  source: string | null;
3379
3385
  sourceId: string | null;
3380
- enrichmentStatus: EnrichmentStatus | null;
3386
+ pipelineStatus: ContactPipelineStatus | null;
3387
+ enrichmentData: ContactEnrichmentData | null;
3381
3388
  /** Attio Person record ID - set when contact responds and is added to CRM */
3382
3389
  attioPersonId: string | null;
3390
+ batchId: string | null;
3383
3391
  createdAt: Date;
3384
3392
  updatedAt: Date;
3385
3393
  }
@@ -3391,10 +3399,6 @@ interface AcqContact {
3391
3399
  * Implementation: apps/api/src/acquisition/lead-service.ts (LeadService class)
3392
3400
  */
3393
3401
 
3394
- interface PaginationParams {
3395
- limit: number;
3396
- offset: number;
3397
- }
3398
3402
  interface PaginatedResult<T> {
3399
3403
  data: T[];
3400
3404
  total: number;
@@ -3420,8 +3424,8 @@ interface CreateCompanyParams {
3420
3424
  foundedYear?: number;
3421
3425
  locationCity?: string;
3422
3426
  locationState?: string;
3423
- tags?: string[];
3424
3427
  source?: string;
3428
+ batchId?: string;
3425
3429
  }
3426
3430
  interface UpdateCompanyParams {
3427
3431
  name?: string;
@@ -3432,28 +3436,23 @@ interface UpdateCompanyParams {
3432
3436
  foundedYear?: number;
3433
3437
  locationCity?: string;
3434
3438
  locationState?: string;
3435
- missionVision?: string;
3436
- uniqueAttributes?: string;
3437
- coreOfferings?: string[];
3438
- targetAudience?: string;
3439
- companyValues?: string;
3440
- businessDescription?: string;
3441
- recentWebPosts?: unknown[];
3442
- businessType?: string;
3443
- primarySegment?: string;
3444
- otherSegments?: string[];
3445
- enrichmentStatus?: Record<string, string>;
3446
- tags?: string[];
3439
+ category?: string;
3440
+ segment?: string;
3441
+ pipelineStatus?: Record<string, unknown>;
3442
+ enrichmentData?: Record<string, unknown>;
3447
3443
  source?: string;
3448
3444
  /** Attio Company record ID - set when company is added to CRM. Pass null to clear. */
3449
3445
  attioCompanyId?: string | null;
3446
+ batchId?: string;
3450
3447
  }
3451
3448
  type UpsertCompanyParams = CreateCompanyParams;
3452
3449
  interface CompanyFilters {
3453
- primarySegment?: string;
3454
- businessType?: string;
3455
- enrichmentStatus?: string;
3456
- tag?: string;
3450
+ domain?: string;
3451
+ website?: string;
3452
+ segment?: string;
3453
+ category?: string;
3454
+ pipelineStatus?: Record<string, unknown>;
3455
+ batchId?: string;
3457
3456
  }
3458
3457
  interface CreateContactParams {
3459
3458
  organizationId: string;
@@ -3465,6 +3464,7 @@ interface CreateContactParams {
3465
3464
  title?: string;
3466
3465
  source?: string;
3467
3466
  sourceId?: string;
3467
+ batchId?: string;
3468
3468
  }
3469
3469
  interface UpdateContactParams {
3470
3470
  companyId?: string;
@@ -3474,15 +3474,11 @@ interface UpdateContactParams {
3474
3474
  linkedinUrl?: string;
3475
3475
  title?: string;
3476
3476
  headline?: string;
3477
- liSummary?: string;
3478
- liPastExperience?: string;
3479
- liEducation?: string;
3480
- liActivity?: unknown[];
3481
3477
  qualification?: 'qualified' | 'disqualified' | 'pending';
3482
3478
  filterReason?: string;
3483
3479
  openingLine?: string;
3484
- enrichmentStatus?: Record<string, string>;
3485
- status?: 'active' | 'bounced' | 'unsubscribed';
3480
+ pipelineStatus?: Record<string, unknown>;
3481
+ enrichmentData?: Record<string, unknown>;
3486
3482
  /** Attio Person record ID - set when contact responds and is added to CRM. Pass null to clear. */
3487
3483
  attioPersonId?: string | null;
3488
3484
  }
@@ -3491,6 +3487,8 @@ interface ContactFilters {
3491
3487
  listId?: string;
3492
3488
  qualification?: 'qualified' | 'disqualified' | 'pending';
3493
3489
  openingLineIsNull?: boolean;
3490
+ pipelineStatus?: Record<string, unknown>;
3491
+ batchId?: string;
3494
3492
  }
3495
3493
  interface UpsertDealParams {
3496
3494
  organizationId: string;
@@ -4004,6 +4002,33 @@ interface GetDatasetItemsResult {
4004
4002
  items: unknown[];
4005
4003
  totalCount: number;
4006
4004
  }
4005
+ /**
4006
+ * Webhook configuration for actor run notifications
4007
+ */
4008
+ interface ApifyWebhookConfig {
4009
+ eventTypes: string[];
4010
+ requestUrl: string;
4011
+ payloadTemplate?: string;
4012
+ headersTemplate?: string;
4013
+ }
4014
+ /**
4015
+ * Start actor parameters (async, no polling)
4016
+ */
4017
+ interface StartActorParams {
4018
+ actorId: string;
4019
+ input?: Record<string, unknown>;
4020
+ webhooks?: ApifyWebhookConfig[];
4021
+ timeoutSecs?: number;
4022
+ maxItems?: number;
4023
+ }
4024
+ /**
4025
+ * Start actor result (immediate, no waiting)
4026
+ */
4027
+ interface StartActorResult {
4028
+ status: 'STARTED';
4029
+ runId: string;
4030
+ datasetId: string;
4031
+ }
4007
4032
 
4008
4033
  /**
4009
4034
  * Shared Dropbox param/result types (browser-safe)
@@ -4425,6 +4450,228 @@ interface AddToCampaignResult {
4425
4450
  added_count: number;
4426
4451
  errors?: string[];
4427
4452
  }
4453
+ /**
4454
+ * List campaigns parameters
4455
+ */
4456
+ interface ListCampaignsParams {
4457
+ limit?: number;
4458
+ starting_after?: string;
4459
+ search?: string;
4460
+ status?: string;
4461
+ }
4462
+ /**
4463
+ * List campaigns result
4464
+ */
4465
+ interface ListCampaignsResult {
4466
+ campaigns: Array<{
4467
+ id: string;
4468
+ name: string;
4469
+ status: string;
4470
+ created_at: string;
4471
+ [key: string]: unknown;
4472
+ }>;
4473
+ next_starting_after?: string;
4474
+ }
4475
+ /**
4476
+ * Get campaign parameters
4477
+ */
4478
+ interface GetCampaignParams {
4479
+ campaign_id: string;
4480
+ }
4481
+ /**
4482
+ * Get campaign result
4483
+ */
4484
+ interface GetCampaignResult {
4485
+ id: string;
4486
+ name: string;
4487
+ status: string;
4488
+ sequences: unknown[];
4489
+ created_at: string;
4490
+ [key: string]: unknown;
4491
+ }
4492
+ /**
4493
+ * Update campaign parameters
4494
+ */
4495
+ interface UpdateCampaignParams {
4496
+ campaign_id: string;
4497
+ name?: string;
4498
+ sequences?: unknown;
4499
+ email_list?: string[];
4500
+ daily_limit?: number;
4501
+ stop_on_reply?: boolean;
4502
+ track_opens?: boolean;
4503
+ track_clicks?: boolean;
4504
+ [key: string]: unknown;
4505
+ }
4506
+ /**
4507
+ * Update campaign result
4508
+ */
4509
+ interface UpdateCampaignResult {
4510
+ success: boolean;
4511
+ campaign_id: string;
4512
+ }
4513
+ /**
4514
+ * Pause campaign parameters
4515
+ */
4516
+ interface PauseCampaignParams {
4517
+ campaign_id: string;
4518
+ }
4519
+ /**
4520
+ * Pause campaign result
4521
+ */
4522
+ interface PauseCampaignResult {
4523
+ success: boolean;
4524
+ campaign_id: string;
4525
+ }
4526
+ /**
4527
+ * Activate campaign parameters
4528
+ */
4529
+ interface ActivateCampaignParams {
4530
+ campaign_id: string;
4531
+ }
4532
+ /**
4533
+ * Activate campaign result
4534
+ */
4535
+ interface ActivateCampaignResult {
4536
+ success: boolean;
4537
+ campaign_id: string;
4538
+ }
4539
+ /**
4540
+ * Get campaign analytics parameters
4541
+ */
4542
+ interface GetCampaignAnalyticsParams {
4543
+ campaign_id: string;
4544
+ start_date?: string;
4545
+ end_date?: string;
4546
+ }
4547
+ /**
4548
+ * Get campaign analytics result
4549
+ */
4550
+ interface GetCampaignAnalyticsResult {
4551
+ campaign_id: string;
4552
+ sent: number;
4553
+ opened: number;
4554
+ unique_opened: number;
4555
+ replied: number;
4556
+ unique_replied: number;
4557
+ bounced: number;
4558
+ unsubscribed: number;
4559
+ [key: string]: unknown;
4560
+ }
4561
+ /**
4562
+ * Get step analytics parameters
4563
+ */
4564
+ interface GetStepAnalyticsParams {
4565
+ campaign_id: string;
4566
+ }
4567
+ /**
4568
+ * Get step analytics result
4569
+ */
4570
+ interface GetStepAnalyticsResult {
4571
+ steps: Array<{
4572
+ step: string;
4573
+ variant: string;
4574
+ sent: number;
4575
+ opened: number;
4576
+ unique_opened: number;
4577
+ replies: number;
4578
+ unique_replies: number;
4579
+ }>;
4580
+ }
4581
+ /**
4582
+ * Bulk add leads parameters
4583
+ */
4584
+ interface BulkAddLeadsParams {
4585
+ campaign_id: string;
4586
+ leads: Array<{
4587
+ email: string;
4588
+ first_name?: string;
4589
+ last_name?: string;
4590
+ company_name?: string;
4591
+ website?: string;
4592
+ custom_variables?: Record<string, string>;
4593
+ }>;
4594
+ }
4595
+ /**
4596
+ * Bulk add leads result
4597
+ */
4598
+ interface BulkAddLeadsResult {
4599
+ success: boolean;
4600
+ added_count: number;
4601
+ failed_count: number;
4602
+ errors?: Array<{
4603
+ email: string;
4604
+ error: string;
4605
+ }>;
4606
+ }
4607
+ /**
4608
+ * Get account health parameters
4609
+ */
4610
+ interface GetAccountHealthParams {
4611
+ limit?: number;
4612
+ starting_after?: string;
4613
+ }
4614
+ /**
4615
+ * Get account health result
4616
+ */
4617
+ interface GetAccountHealthResult {
4618
+ accounts: Array<{
4619
+ id: string;
4620
+ email: string;
4621
+ status: string;
4622
+ warmup_enabled: boolean;
4623
+ health_score?: number;
4624
+ [key: string]: unknown;
4625
+ }>;
4626
+ next_starting_after?: string;
4627
+ }
4628
+ /**
4629
+ * Create inbox test parameters
4630
+ */
4631
+ interface CreateInboxTestParams {
4632
+ email_account: string;
4633
+ subject?: string;
4634
+ body?: string;
4635
+ }
4636
+ /**
4637
+ * Create inbox test result
4638
+ */
4639
+ interface CreateInboxTestResult {
4640
+ success: boolean;
4641
+ test_id: string;
4642
+ status: string;
4643
+ }
4644
+ /**
4645
+ * Create campaign parameters
4646
+ */
4647
+ interface CreateCampaignParams {
4648
+ name: string;
4649
+ sequences?: Array<{
4650
+ steps: Array<{
4651
+ subject: string;
4652
+ body: string;
4653
+ variants?: Array<{
4654
+ subject: string;
4655
+ body: string;
4656
+ }>;
4657
+ }>;
4658
+ }>;
4659
+ email_list?: string[];
4660
+ daily_limit?: number;
4661
+ stop_on_reply?: boolean;
4662
+ stop_on_auto_reply?: boolean;
4663
+ track_opens?: boolean;
4664
+ track_clicks?: boolean;
4665
+ text_only?: boolean;
4666
+ }
4667
+ /**
4668
+ * Create campaign result
4669
+ */
4670
+ interface CreateCampaignResult {
4671
+ success: boolean;
4672
+ campaign_id: string;
4673
+ name: string;
4674
+ }
4428
4675
 
4429
4676
  /**
4430
4677
  * Shared Mailso param/result types (browser-safe)
@@ -5188,6 +5435,10 @@ type ApifyToolMap = {
5188
5435
  params: GetDatasetItemsParams;
5189
5436
  result: GetDatasetItemsResult;
5190
5437
  };
5438
+ startActor: {
5439
+ params: StartActorParams;
5440
+ result: StartActorResult;
5441
+ };
5191
5442
  };
5192
5443
  type GmailToolMap = {
5193
5444
  sendEmail: {
@@ -5244,6 +5495,50 @@ type InstantlyToolMap = {
5244
5495
  params: AddToCampaignParams;
5245
5496
  result: AddToCampaignResult;
5246
5497
  };
5498
+ listCampaigns: {
5499
+ params: ListCampaignsParams;
5500
+ result: ListCampaignsResult;
5501
+ };
5502
+ getCampaign: {
5503
+ params: GetCampaignParams;
5504
+ result: GetCampaignResult;
5505
+ };
5506
+ updateCampaign: {
5507
+ params: UpdateCampaignParams;
5508
+ result: UpdateCampaignResult;
5509
+ };
5510
+ pauseCampaign: {
5511
+ params: PauseCampaignParams;
5512
+ result: PauseCampaignResult;
5513
+ };
5514
+ activateCampaign: {
5515
+ params: ActivateCampaignParams;
5516
+ result: ActivateCampaignResult;
5517
+ };
5518
+ getCampaignAnalytics: {
5519
+ params: GetCampaignAnalyticsParams;
5520
+ result: GetCampaignAnalyticsResult;
5521
+ };
5522
+ getStepAnalytics: {
5523
+ params: GetStepAnalyticsParams;
5524
+ result: GetStepAnalyticsResult;
5525
+ };
5526
+ bulkAddLeads: {
5527
+ params: BulkAddLeadsParams;
5528
+ result: BulkAddLeadsResult;
5529
+ };
5530
+ getAccountHealth: {
5531
+ params: GetAccountHealthParams;
5532
+ result: GetAccountHealthResult;
5533
+ };
5534
+ createInboxTest: {
5535
+ params: CreateInboxTestParams;
5536
+ result: CreateInboxTestResult;
5537
+ };
5538
+ createCampaign: {
5539
+ params: CreateCampaignParams;
5540
+ result: CreateCampaignResult;
5541
+ };
5247
5542
  };
5248
5543
  type MailsoToolMap = {
5249
5544
  verifyEmail: {
@@ -5293,9 +5588,7 @@ type LeadToolMap = {
5293
5588
  result: AcqCompany | null;
5294
5589
  };
5295
5590
  listCompanies: {
5296
- params: {
5297
- filters?: CompanyFilters;
5298
- };
5591
+ params: CompanyFilters;
5299
5592
  result: AcqCompany[];
5300
5593
  };
5301
5594
  deleteCompany: {
@@ -5331,9 +5624,9 @@ type LeadToolMap = {
5331
5624
  result: AcqContact | null;
5332
5625
  };
5333
5626
  listContacts: {
5334
- params: {
5335
- filters?: ContactFilters;
5336
- pagination?: PaginationParams;
5627
+ params: ContactFilters & {
5628
+ limit?: number;
5629
+ offset?: number;
5337
5630
  };
5338
5631
  result: PaginatedResult<AcqContact>;
5339
5632
  };
@@ -5429,6 +5722,14 @@ type LeadToolMap = {
5429
5722
  params: Omit<DeleteDealParams, 'organizationId'>;
5430
5723
  result: void;
5431
5724
  };
5725
+ mergeEnrichmentData: {
5726
+ params: {
5727
+ id: string;
5728
+ table: 'acq_companies' | 'acq_contacts';
5729
+ data: Record<string, unknown>;
5730
+ };
5731
+ result: void;
5732
+ };
5432
5733
  };
5433
5734
  type PdfToolMap = {
5434
5735
  render: {
@@ -5881,7 +6182,7 @@ interface ResourceList {
5881
6182
  environment?: 'dev' | 'prod';
5882
6183
  }
5883
6184
  /** Webhook provider identifiers */
5884
- type WebhookProviderType = 'cal-com' | 'fillout' | 'stripe' | 'signature-api' | 'instantly' | 'test';
6185
+ type WebhookProviderType = 'cal-com' | 'fillout' | 'stripe' | 'signature-api' | 'instantly' | 'test' | 'apify';
5885
6186
  /** Webhook trigger configuration */
5886
6187
  interface WebhookTriggerConfig {
5887
6188
  /** Provider identifier */
@@ -6166,6 +6467,31 @@ declare class RegistryValidationError extends Error {
6166
6467
  constructor(orgName: string, resourceId: string | null, field: string | null, message: string);
6167
6468
  }
6168
6469
 
6470
+ /**
6471
+ * LLM Platform Tool Adapter
6472
+ *
6473
+ * Typed wrapper over platform.call() for LLM generation.
6474
+ * Singleton export -- no credential needed (platform tool).
6475
+ *
6476
+ * Types are shared with the server-side LLM engine via @repo/core/execution.
6477
+ */
6478
+
6479
+ type LLMProvider = 'openai' | 'anthropic' | 'openrouter' | 'google';
6480
+ /**
6481
+ * SDK LLM generate params.
6482
+ * Extends LLMGenerateRequest with optional typed provider/model for worker→platform dispatch.
6483
+ * When provided, these override the resource-level model config server-side.
6484
+ * When omitted, the resource's default ModelConfig is used.
6485
+ */
6486
+ interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal' | 'responseSchema'> {
6487
+ /** LLM provider — typed to prevent invalid provider strings */
6488
+ provider?: LLMProvider;
6489
+ /** Model identifier — must be a supported LLMModel when provided */
6490
+ model?: LLMModel;
6491
+ /** JSON Schema for structured output (optional — omit for unstructured text) */
6492
+ responseSchema?: unknown;
6493
+ }
6494
+
6169
6495
  type ResourceStatus = 'dev' | 'prod';
6170
6496
  /**
6171
6497
  * Project configuration for an external developer project.
@@ -6209,4 +6535,4 @@ declare class ToolingError extends ExecutionError {
6209
6535
  }
6210
6536
 
6211
6537
  export { ExecutionError, RegistryValidationError, ResourceRegistry, StepType, ToolingError };
6212
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, ApifyToolMap, AppendBlocksParams, AppendBlocksResult, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePageParams, CreatePageResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, DeleteBlocksParams, DeleteBlocksResult, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeletePageParams, DeletePageResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DomainDefinition, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAllPagesResult, ListAttributesParams, ListAttributesResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, MailsoToolMap, MailsoVerifyEmailParams, MailsoVerifyEmailResult, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, NotionToolMap, OrganizationResources, PageWithChildren, PaginatedResult, PaginationParams$1 as PaginationParams, PdfToolMap, QueryRecordsParams, QueryRecordsResult, ReadPageParams, ReadPageResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceDefinition, ResourceDomain, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SyncDealStageParams, TaskSchedule, TaskScheduleConfig, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateBlocksParams, UpdateBlocksResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePageTitleParams, UpdatePageTitleResult, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
6538
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, ApifyToolMap, ApifyWebhookConfig, AppendBlocksParams, AppendBlocksResult, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePageParams, CreatePageResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, DeleteBlocksParams, DeleteBlocksResult, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeletePageParams, DeletePageResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DomainDefinition, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAllPagesResult, ListAttributesParams, ListAttributesResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, MailsoToolMap, MailsoVerifyEmailParams, MailsoVerifyEmailResult, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, NotionToolMap, OrganizationResources, PageWithChildren, PaginatedResult, PaginationParams, PdfToolMap, QueryRecordsParams, QueryRecordsResult, ReadPageParams, ReadPageResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceDefinition, ResourceDomain, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SyncDealStageParams, TaskSchedule, TaskScheduleConfig, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateBlocksParams, UpdateBlocksResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePageTitleParams, UpdatePageTitleResult, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };