@elevasis/sdk 0.5.21 → 0.5.24
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/cli.cjs +78 -3
- package/dist/index.d.ts +731 -326
- package/dist/templates.js +74 -2
- package/dist/types/worker/adapters/anymailfinder.d.ts +14 -0
- package/dist/types/worker/adapters/index.d.ts +1 -0
- package/dist/types/worker/adapters/instantly.d.ts +1 -1
- package/dist/types/worker/adapters/lead.d.ts +1 -1
- package/dist/types/worker/adapters/llm.d.ts +20 -2
- package/dist/worker/index.js +48 -14
- package/package.json +10 -10
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
|
|
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:
|
|
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
|
-
|
|
1180
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1196
|
-
|
|
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
|
-
|
|
1208
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1224
|
-
|
|
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
|
-
|
|
1236
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1252
|
-
|
|
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:
|
|
1264
|
-
columns: [
|
|
1242
|
+
foreignKeyName: "acq_companies_organization_id_fkey";
|
|
1243
|
+
columns: ["organization_id"];
|
|
1265
1244
|
isOneToOne: false;
|
|
1266
|
-
referencedRelation:
|
|
1267
|
-
referencedColumns: [
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
1362
|
-
columns: [
|
|
1331
|
+
foreignKeyName: "acq_contacts_company_id_fkey";
|
|
1332
|
+
columns: ["company_id"];
|
|
1363
1333
|
isOneToOne: false;
|
|
1364
|
-
referencedRelation:
|
|
1365
|
-
referencedColumns: [
|
|
1334
|
+
referencedRelation: "acq_companies";
|
|
1335
|
+
referencedColumns: ["id"];
|
|
1366
1336
|
},
|
|
1367
1337
|
{
|
|
1368
|
-
foreignKeyName:
|
|
1369
|
-
columns: [
|
|
1338
|
+
foreignKeyName: "acq_contacts_organization_id_fkey";
|
|
1339
|
+
columns: ["organization_id"];
|
|
1370
1340
|
isOneToOne: false;
|
|
1371
|
-
referencedRelation:
|
|
1372
|
-
referencedColumns: [
|
|
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:
|
|
1482
|
-
columns: [
|
|
1451
|
+
foreignKeyName: "acq_deals_contact_id_fkey";
|
|
1452
|
+
columns: ["contact_id"];
|
|
1483
1453
|
isOneToOne: false;
|
|
1484
|
-
referencedRelation:
|
|
1485
|
-
referencedColumns: [
|
|
1454
|
+
referencedRelation: "acq_contacts";
|
|
1455
|
+
referencedColumns: ["id"];
|
|
1486
1456
|
},
|
|
1487
1457
|
{
|
|
1488
|
-
foreignKeyName:
|
|
1489
|
-
columns: [
|
|
1458
|
+
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
1459
|
+
columns: ["organization_id"];
|
|
1490
1460
|
isOneToOne: false;
|
|
1491
|
-
referencedRelation:
|
|
1492
|
-
referencedColumns: [
|
|
1461
|
+
referencedRelation: "organizations";
|
|
1462
|
+
referencedColumns: ["id"];
|
|
1493
1463
|
},
|
|
1494
1464
|
{
|
|
1495
|
-
foreignKeyName:
|
|
1496
|
-
columns: [
|
|
1465
|
+
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
1466
|
+
columns: ["source_list_id"];
|
|
1497
1467
|
isOneToOne: false;
|
|
1498
|
-
referencedRelation:
|
|
1499
|
-
referencedColumns: [
|
|
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:
|
|
1528
|
-
columns: [
|
|
1497
|
+
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
1498
|
+
columns: ["contact_id"];
|
|
1529
1499
|
isOneToOne: false;
|
|
1530
|
-
referencedRelation:
|
|
1531
|
-
referencedColumns: [
|
|
1500
|
+
referencedRelation: "acq_contacts";
|
|
1501
|
+
referencedColumns: ["id"];
|
|
1532
1502
|
},
|
|
1533
1503
|
{
|
|
1534
|
-
foreignKeyName:
|
|
1535
|
-
columns: [
|
|
1504
|
+
foreignKeyName: "acq_list_members_list_id_fkey";
|
|
1505
|
+
columns: ["list_id"];
|
|
1536
1506
|
isOneToOne: false;
|
|
1537
|
-
referencedRelation:
|
|
1538
|
-
referencedColumns: [
|
|
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:
|
|
1567
|
-
columns: [
|
|
1536
|
+
foreignKeyName: "acq_lists_organization_id_fkey";
|
|
1537
|
+
columns: ["organization_id"];
|
|
1568
1538
|
isOneToOne: false;
|
|
1569
|
-
referencedRelation:
|
|
1570
|
-
referencedColumns: [
|
|
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:
|
|
1620
|
-
columns: [
|
|
1589
|
+
foreignKeyName: "activities_organization_id_fkey";
|
|
1590
|
+
columns: ["organization_id"];
|
|
1621
1591
|
isOneToOne: false;
|
|
1622
|
-
referencedRelation:
|
|
1623
|
-
referencedColumns: [
|
|
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:
|
|
1655
|
-
columns: [
|
|
1624
|
+
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1625
|
+
columns: ["organization_id"];
|
|
1656
1626
|
isOneToOne: false;
|
|
1657
|
-
referencedRelation:
|
|
1658
|
-
referencedColumns: [
|
|
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:
|
|
1696
|
-
columns: [
|
|
1665
|
+
foreignKeyName: "calibration_projects_organization_id_fkey";
|
|
1666
|
+
columns: ["organization_id"];
|
|
1697
1667
|
isOneToOne: false;
|
|
1698
|
-
referencedRelation:
|
|
1699
|
-
referencedColumns: [
|
|
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:
|
|
1755
|
-
columns: [
|
|
1724
|
+
foreignKeyName: "calibration_runs_organization_id_fkey";
|
|
1725
|
+
columns: ["organization_id"];
|
|
1756
1726
|
isOneToOne: false;
|
|
1757
|
-
referencedRelation:
|
|
1758
|
-
referencedColumns: [
|
|
1727
|
+
referencedRelation: "organizations";
|
|
1728
|
+
referencedColumns: ["id"];
|
|
1759
1729
|
},
|
|
1760
1730
|
{
|
|
1761
|
-
foreignKeyName:
|
|
1762
|
-
columns: [
|
|
1731
|
+
foreignKeyName: "calibration_runs_project_id_fkey";
|
|
1732
|
+
columns: ["project_id"];
|
|
1763
1733
|
isOneToOne: false;
|
|
1764
|
-
referencedRelation:
|
|
1765
|
-
referencedColumns: [
|
|
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:
|
|
1836
|
-
columns: [
|
|
1805
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
1806
|
+
columns: ["completed_by"];
|
|
1837
1807
|
isOneToOne: false;
|
|
1838
|
-
referencedRelation:
|
|
1839
|
-
referencedColumns: [
|
|
1808
|
+
referencedRelation: "users";
|
|
1809
|
+
referencedColumns: ["id"];
|
|
1840
1810
|
},
|
|
1841
1811
|
{
|
|
1842
|
-
foreignKeyName:
|
|
1843
|
-
columns: [
|
|
1812
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1813
|
+
columns: ["organization_id"];
|
|
1844
1814
|
isOneToOne: false;
|
|
1845
|
-
referencedRelation:
|
|
1846
|
-
referencedColumns: [
|
|
1815
|
+
referencedRelation: "organizations";
|
|
1816
|
+
referencedColumns: ["id"];
|
|
1847
1817
|
},
|
|
1848
1818
|
{
|
|
1849
|
-
foreignKeyName:
|
|
1850
|
-
columns: [
|
|
1819
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1820
|
+
columns: ["target_execution_id"];
|
|
1851
1821
|
isOneToOne: false;
|
|
1852
|
-
referencedRelation:
|
|
1853
|
-
referencedColumns: [
|
|
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:
|
|
1894
|
-
columns: [
|
|
1863
|
+
foreignKeyName: "credentials_created_by_fkey";
|
|
1864
|
+
columns: ["created_by"];
|
|
1895
1865
|
isOneToOne: false;
|
|
1896
|
-
referencedRelation:
|
|
1897
|
-
referencedColumns: [
|
|
1866
|
+
referencedRelation: "users";
|
|
1867
|
+
referencedColumns: ["id"];
|
|
1898
1868
|
},
|
|
1899
1869
|
{
|
|
1900
|
-
foreignKeyName:
|
|
1901
|
-
columns: [
|
|
1870
|
+
foreignKeyName: "credentials_organization_id_fkey";
|
|
1871
|
+
columns: ["organization_id"];
|
|
1902
1872
|
isOneToOne: false;
|
|
1903
|
-
referencedRelation:
|
|
1904
|
-
referencedColumns: [
|
|
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:
|
|
1954
|
-
columns: [
|
|
1923
|
+
foreignKeyName: "deployments_organization_id_fkey";
|
|
1924
|
+
columns: ["organization_id"];
|
|
1955
1925
|
isOneToOne: false;
|
|
1956
|
-
referencedRelation:
|
|
1957
|
-
referencedColumns: [
|
|
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:
|
|
2013
|
-
columns: [
|
|
1982
|
+
foreignKeyName: "execution_errors_execution_id_fkey";
|
|
1983
|
+
columns: ["execution_id"];
|
|
2014
1984
|
isOneToOne: false;
|
|
2015
|
-
referencedRelation:
|
|
2016
|
-
referencedColumns: [
|
|
1985
|
+
referencedRelation: "execution_logs";
|
|
1986
|
+
referencedColumns: ["execution_id"];
|
|
2017
1987
|
},
|
|
2018
1988
|
{
|
|
2019
|
-
foreignKeyName:
|
|
2020
|
-
columns: [
|
|
1989
|
+
foreignKeyName: "execution_errors_organization_id_fkey";
|
|
1990
|
+
columns: ["organization_id"];
|
|
2021
1991
|
isOneToOne: false;
|
|
2022
|
-
referencedRelation:
|
|
2023
|
-
referencedColumns: [
|
|
1992
|
+
referencedRelation: "organizations";
|
|
1993
|
+
referencedColumns: ["id"];
|
|
2024
1994
|
},
|
|
2025
1995
|
{
|
|
2026
|
-
foreignKeyName:
|
|
2027
|
-
columns: [
|
|
1996
|
+
foreignKeyName: "execution_errors_resolved_by_fkey";
|
|
1997
|
+
columns: ["resolved_by"];
|
|
2028
1998
|
isOneToOne: false;
|
|
2029
|
-
referencedRelation:
|
|
2030
|
-
referencedColumns: [
|
|
1999
|
+
referencedRelation: "users";
|
|
2000
|
+
referencedColumns: ["id"];
|
|
2031
2001
|
}
|
|
2032
2002
|
];
|
|
2033
2003
|
};
|
|
@@ -2053,6 +2023,7 @@ type Database = {
|
|
|
2053
2023
|
session_turn_number: number | null;
|
|
2054
2024
|
started_at: string;
|
|
2055
2025
|
status: string;
|
|
2026
|
+
trigger_type: string | null;
|
|
2056
2027
|
updated_at: string | null;
|
|
2057
2028
|
user_id: string | null;
|
|
2058
2029
|
};
|
|
@@ -2077,6 +2048,7 @@ type Database = {
|
|
|
2077
2048
|
session_turn_number?: number | null;
|
|
2078
2049
|
started_at?: string;
|
|
2079
2050
|
status: string;
|
|
2051
|
+
trigger_type?: string | null;
|
|
2080
2052
|
updated_at?: string | null;
|
|
2081
2053
|
user_id?: string | null;
|
|
2082
2054
|
};
|
|
@@ -2101,37 +2073,38 @@ type Database = {
|
|
|
2101
2073
|
session_turn_number?: number | null;
|
|
2102
2074
|
started_at?: string;
|
|
2103
2075
|
status?: string;
|
|
2076
|
+
trigger_type?: string | null;
|
|
2104
2077
|
updated_at?: string | null;
|
|
2105
2078
|
user_id?: string | null;
|
|
2106
2079
|
};
|
|
2107
2080
|
Relationships: [
|
|
2108
2081
|
{
|
|
2109
|
-
foreignKeyName:
|
|
2110
|
-
columns: [
|
|
2082
|
+
foreignKeyName: "execution_history_organization_id_fkey";
|
|
2083
|
+
columns: ["organization_id"];
|
|
2111
2084
|
isOneToOne: false;
|
|
2112
|
-
referencedRelation:
|
|
2113
|
-
referencedColumns: [
|
|
2085
|
+
referencedRelation: "organizations";
|
|
2086
|
+
referencedColumns: ["id"];
|
|
2114
2087
|
},
|
|
2115
2088
|
{
|
|
2116
|
-
foreignKeyName:
|
|
2117
|
-
columns: [
|
|
2089
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey";
|
|
2090
|
+
columns: ["origin_execution_id"];
|
|
2118
2091
|
isOneToOne: false;
|
|
2119
|
-
referencedRelation:
|
|
2120
|
-
referencedColumns: [
|
|
2092
|
+
referencedRelation: "execution_logs";
|
|
2093
|
+
referencedColumns: ["execution_id"];
|
|
2121
2094
|
},
|
|
2122
2095
|
{
|
|
2123
|
-
foreignKeyName:
|
|
2124
|
-
columns: [
|
|
2096
|
+
foreignKeyName: "execution_logs_session_id_fkey";
|
|
2097
|
+
columns: ["session_id"];
|
|
2125
2098
|
isOneToOne: false;
|
|
2126
|
-
referencedRelation:
|
|
2127
|
-
referencedColumns: [
|
|
2099
|
+
referencedRelation: "sessions";
|
|
2100
|
+
referencedColumns: ["session_id"];
|
|
2128
2101
|
},
|
|
2129
2102
|
{
|
|
2130
|
-
foreignKeyName:
|
|
2131
|
-
columns: [
|
|
2103
|
+
foreignKeyName: "execution_logs_user_id_fkey";
|
|
2104
|
+
columns: ["user_id"];
|
|
2132
2105
|
isOneToOne: false;
|
|
2133
|
-
referencedRelation:
|
|
2134
|
-
referencedColumns: [
|
|
2106
|
+
referencedRelation: "users";
|
|
2107
|
+
referencedColumns: ["id"];
|
|
2135
2108
|
}
|
|
2136
2109
|
];
|
|
2137
2110
|
};
|
|
@@ -2177,18 +2150,18 @@ type Database = {
|
|
|
2177
2150
|
};
|
|
2178
2151
|
Relationships: [
|
|
2179
2152
|
{
|
|
2180
|
-
foreignKeyName:
|
|
2181
|
-
columns: [
|
|
2153
|
+
foreignKeyName: "execution_metrics_execution_id_fkey";
|
|
2154
|
+
columns: ["execution_id"];
|
|
2182
2155
|
isOneToOne: true;
|
|
2183
|
-
referencedRelation:
|
|
2184
|
-
referencedColumns: [
|
|
2156
|
+
referencedRelation: "execution_logs";
|
|
2157
|
+
referencedColumns: ["execution_id"];
|
|
2185
2158
|
},
|
|
2186
2159
|
{
|
|
2187
|
-
foreignKeyName:
|
|
2188
|
-
columns: [
|
|
2160
|
+
foreignKeyName: "execution_metrics_organization_id_fkey";
|
|
2161
|
+
columns: ["organization_id"];
|
|
2189
2162
|
isOneToOne: false;
|
|
2190
|
-
referencedRelation:
|
|
2191
|
-
referencedColumns: [
|
|
2163
|
+
referencedRelation: "organizations";
|
|
2164
|
+
referencedColumns: ["id"];
|
|
2192
2165
|
}
|
|
2193
2166
|
];
|
|
2194
2167
|
};
|
|
@@ -2231,18 +2204,18 @@ type Database = {
|
|
|
2231
2204
|
};
|
|
2232
2205
|
Relationships: [
|
|
2233
2206
|
{
|
|
2234
|
-
foreignKeyName:
|
|
2235
|
-
columns: [
|
|
2207
|
+
foreignKeyName: "notifications_organization_id_fkey";
|
|
2208
|
+
columns: ["organization_id"];
|
|
2236
2209
|
isOneToOne: false;
|
|
2237
|
-
referencedRelation:
|
|
2238
|
-
referencedColumns: [
|
|
2210
|
+
referencedRelation: "organizations";
|
|
2211
|
+
referencedColumns: ["id"];
|
|
2239
2212
|
},
|
|
2240
2213
|
{
|
|
2241
|
-
foreignKeyName:
|
|
2242
|
-
columns: [
|
|
2214
|
+
foreignKeyName: "notifications_user_id_fkey";
|
|
2215
|
+
columns: ["user_id"];
|
|
2243
2216
|
isOneToOne: false;
|
|
2244
|
-
referencedRelation:
|
|
2245
|
-
referencedColumns: [
|
|
2217
|
+
referencedRelation: "users";
|
|
2218
|
+
referencedColumns: ["id"];
|
|
2246
2219
|
}
|
|
2247
2220
|
];
|
|
2248
2221
|
};
|
|
@@ -2297,18 +2270,18 @@ type Database = {
|
|
|
2297
2270
|
};
|
|
2298
2271
|
Relationships: [
|
|
2299
2272
|
{
|
|
2300
|
-
foreignKeyName:
|
|
2301
|
-
columns: [
|
|
2273
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey";
|
|
2274
|
+
columns: ["inviter_user_id"];
|
|
2302
2275
|
isOneToOne: false;
|
|
2303
|
-
referencedRelation:
|
|
2304
|
-
referencedColumns: [
|
|
2276
|
+
referencedRelation: "users";
|
|
2277
|
+
referencedColumns: ["id"];
|
|
2305
2278
|
},
|
|
2306
2279
|
{
|
|
2307
|
-
foreignKeyName:
|
|
2308
|
-
columns: [
|
|
2280
|
+
foreignKeyName: "org_invitations_organization_id_fkey";
|
|
2281
|
+
columns: ["organization_id"];
|
|
2309
2282
|
isOneToOne: false;
|
|
2310
|
-
referencedRelation:
|
|
2311
|
-
referencedColumns: [
|
|
2283
|
+
referencedRelation: "organizations";
|
|
2284
|
+
referencedColumns: ["id"];
|
|
2312
2285
|
}
|
|
2313
2286
|
];
|
|
2314
2287
|
};
|
|
@@ -2348,18 +2321,18 @@ type Database = {
|
|
|
2348
2321
|
};
|
|
2349
2322
|
Relationships: [
|
|
2350
2323
|
{
|
|
2351
|
-
foreignKeyName:
|
|
2352
|
-
columns: [
|
|
2324
|
+
foreignKeyName: "org_memberships_organization_id_fkey";
|
|
2325
|
+
columns: ["organization_id"];
|
|
2353
2326
|
isOneToOne: false;
|
|
2354
|
-
referencedRelation:
|
|
2355
|
-
referencedColumns: [
|
|
2327
|
+
referencedRelation: "organizations";
|
|
2328
|
+
referencedColumns: ["id"];
|
|
2356
2329
|
},
|
|
2357
2330
|
{
|
|
2358
|
-
foreignKeyName:
|
|
2359
|
-
columns: [
|
|
2331
|
+
foreignKeyName: "org_memberships_user_id_fkey";
|
|
2332
|
+
columns: ["user_id"];
|
|
2360
2333
|
isOneToOne: false;
|
|
2361
|
-
referencedRelation:
|
|
2362
|
-
referencedColumns: [
|
|
2334
|
+
referencedRelation: "users";
|
|
2335
|
+
referencedColumns: ["id"];
|
|
2363
2336
|
}
|
|
2364
2337
|
];
|
|
2365
2338
|
};
|
|
@@ -2435,11 +2408,11 @@ type Database = {
|
|
|
2435
2408
|
};
|
|
2436
2409
|
Relationships: [
|
|
2437
2410
|
{
|
|
2438
|
-
foreignKeyName:
|
|
2439
|
-
columns: [
|
|
2411
|
+
foreignKeyName: "session_messages_session_id_fkey";
|
|
2412
|
+
columns: ["session_id"];
|
|
2440
2413
|
isOneToOne: false;
|
|
2441
|
-
referencedRelation:
|
|
2442
|
-
referencedColumns: [
|
|
2414
|
+
referencedRelation: "sessions";
|
|
2415
|
+
referencedColumns: ["session_id"];
|
|
2443
2416
|
}
|
|
2444
2417
|
];
|
|
2445
2418
|
};
|
|
@@ -2494,18 +2467,18 @@ type Database = {
|
|
|
2494
2467
|
};
|
|
2495
2468
|
Relationships: [
|
|
2496
2469
|
{
|
|
2497
|
-
foreignKeyName:
|
|
2498
|
-
columns: [
|
|
2470
|
+
foreignKeyName: "fk_organization";
|
|
2471
|
+
columns: ["organization_id"];
|
|
2499
2472
|
isOneToOne: false;
|
|
2500
|
-
referencedRelation:
|
|
2501
|
-
referencedColumns: [
|
|
2473
|
+
referencedRelation: "organizations";
|
|
2474
|
+
referencedColumns: ["id"];
|
|
2502
2475
|
},
|
|
2503
2476
|
{
|
|
2504
|
-
foreignKeyName:
|
|
2505
|
-
columns: [
|
|
2477
|
+
foreignKeyName: "fk_user";
|
|
2478
|
+
columns: ["user_id"];
|
|
2506
2479
|
isOneToOne: false;
|
|
2507
|
-
referencedRelation:
|
|
2508
|
-
referencedColumns: [
|
|
2480
|
+
referencedRelation: "users";
|
|
2481
|
+
referencedColumns: ["id"];
|
|
2509
2482
|
}
|
|
2510
2483
|
];
|
|
2511
2484
|
};
|
|
@@ -2581,11 +2554,11 @@ type Database = {
|
|
|
2581
2554
|
};
|
|
2582
2555
|
Relationships: [
|
|
2583
2556
|
{
|
|
2584
|
-
foreignKeyName:
|
|
2585
|
-
columns: [
|
|
2557
|
+
foreignKeyName: "task_schedules_organization_id_fkey";
|
|
2558
|
+
columns: ["organization_id"];
|
|
2586
2559
|
isOneToOne: false;
|
|
2587
|
-
referencedRelation:
|
|
2588
|
-
referencedColumns: [
|
|
2560
|
+
referencedRelation: "organizations";
|
|
2561
|
+
referencedColumns: ["id"];
|
|
2589
2562
|
}
|
|
2590
2563
|
];
|
|
2591
2564
|
};
|
|
@@ -2625,18 +2598,18 @@ type Database = {
|
|
|
2625
2598
|
};
|
|
2626
2599
|
Relationships: [
|
|
2627
2600
|
{
|
|
2628
|
-
foreignKeyName:
|
|
2629
|
-
columns: [
|
|
2601
|
+
foreignKeyName: "training_assessments_organization_id_fkey";
|
|
2602
|
+
columns: ["organization_id"];
|
|
2630
2603
|
isOneToOne: false;
|
|
2631
|
-
referencedRelation:
|
|
2632
|
-
referencedColumns: [
|
|
2604
|
+
referencedRelation: "organizations";
|
|
2605
|
+
referencedColumns: ["id"];
|
|
2633
2606
|
},
|
|
2634
2607
|
{
|
|
2635
|
-
foreignKeyName:
|
|
2636
|
-
columns: [
|
|
2608
|
+
foreignKeyName: "training_assessments_user_id_fkey";
|
|
2609
|
+
columns: ["user_id"];
|
|
2637
2610
|
isOneToOne: false;
|
|
2638
|
-
referencedRelation:
|
|
2639
|
-
referencedColumns: [
|
|
2611
|
+
referencedRelation: "users";
|
|
2612
|
+
referencedColumns: ["id"];
|
|
2640
2613
|
}
|
|
2641
2614
|
];
|
|
2642
2615
|
};
|
|
@@ -2664,18 +2637,18 @@ type Database = {
|
|
|
2664
2637
|
};
|
|
2665
2638
|
Relationships: [
|
|
2666
2639
|
{
|
|
2667
|
-
foreignKeyName:
|
|
2668
|
-
columns: [
|
|
2640
|
+
foreignKeyName: "training_certifications_organization_id_fkey";
|
|
2641
|
+
columns: ["organization_id"];
|
|
2669
2642
|
isOneToOne: false;
|
|
2670
|
-
referencedRelation:
|
|
2671
|
-
referencedColumns: [
|
|
2643
|
+
referencedRelation: "organizations";
|
|
2644
|
+
referencedColumns: ["id"];
|
|
2672
2645
|
},
|
|
2673
2646
|
{
|
|
2674
|
-
foreignKeyName:
|
|
2675
|
-
columns: [
|
|
2647
|
+
foreignKeyName: "training_certifications_user_id_fkey";
|
|
2648
|
+
columns: ["user_id"];
|
|
2676
2649
|
isOneToOne: false;
|
|
2677
|
-
referencedRelation:
|
|
2678
|
-
referencedColumns: [
|
|
2650
|
+
referencedRelation: "users";
|
|
2651
|
+
referencedColumns: ["id"];
|
|
2679
2652
|
}
|
|
2680
2653
|
];
|
|
2681
2654
|
};
|
|
@@ -2706,18 +2679,18 @@ type Database = {
|
|
|
2706
2679
|
};
|
|
2707
2680
|
Relationships: [
|
|
2708
2681
|
{
|
|
2709
|
-
foreignKeyName:
|
|
2710
|
-
columns: [
|
|
2682
|
+
foreignKeyName: "training_progress_organization_id_fkey";
|
|
2683
|
+
columns: ["organization_id"];
|
|
2711
2684
|
isOneToOne: false;
|
|
2712
|
-
referencedRelation:
|
|
2713
|
-
referencedColumns: [
|
|
2685
|
+
referencedRelation: "organizations";
|
|
2686
|
+
referencedColumns: ["id"];
|
|
2714
2687
|
},
|
|
2715
2688
|
{
|
|
2716
|
-
foreignKeyName:
|
|
2717
|
-
columns: [
|
|
2689
|
+
foreignKeyName: "training_progress_user_id_fkey";
|
|
2690
|
+
columns: ["user_id"];
|
|
2718
2691
|
isOneToOne: false;
|
|
2719
|
-
referencedRelation:
|
|
2720
|
-
referencedColumns: [
|
|
2692
|
+
referencedRelation: "users";
|
|
2693
|
+
referencedColumns: ["id"];
|
|
2721
2694
|
}
|
|
2722
2695
|
];
|
|
2723
2696
|
};
|
|
@@ -2772,11 +2745,11 @@ type Database = {
|
|
|
2772
2745
|
};
|
|
2773
2746
|
Relationships: [
|
|
2774
2747
|
{
|
|
2775
|
-
foreignKeyName:
|
|
2776
|
-
columns: [
|
|
2748
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey";
|
|
2749
|
+
columns: ["last_visited_org"];
|
|
2777
2750
|
isOneToOne: false;
|
|
2778
|
-
referencedRelation:
|
|
2779
|
-
referencedColumns: [
|
|
2751
|
+
referencedRelation: "organizations";
|
|
2752
|
+
referencedColumns: ["id"];
|
|
2780
2753
|
}
|
|
2781
2754
|
];
|
|
2782
2755
|
};
|
|
@@ -2844,10 +2817,6 @@ type Database = {
|
|
|
2844
2817
|
};
|
|
2845
2818
|
Returns: boolean;
|
|
2846
2819
|
};
|
|
2847
|
-
is_platform_admin: {
|
|
2848
|
-
Args: never;
|
|
2849
|
-
Returns: boolean;
|
|
2850
|
-
};
|
|
2851
2820
|
link_workos_membership_on_accept: {
|
|
2852
2821
|
Args: {
|
|
2853
2822
|
p_email: string;
|
|
@@ -3272,42 +3241,93 @@ declare class ResourceRegistry {
|
|
|
3272
3241
|
}
|
|
3273
3242
|
|
|
3274
3243
|
/**
|
|
3275
|
-
*
|
|
3276
|
-
* Used for recent blog posts, news, or announcements.
|
|
3244
|
+
* Tracks pipeline status for a company across all processing stages.
|
|
3277
3245
|
*/
|
|
3278
|
-
interface
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3246
|
+
interface CompanyPipelineStatus {
|
|
3247
|
+
acquired: boolean;
|
|
3248
|
+
enrichment: {
|
|
3249
|
+
[source: string]: {
|
|
3250
|
+
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
3251
|
+
completedAt?: string;
|
|
3252
|
+
error?: string;
|
|
3253
|
+
};
|
|
3254
|
+
};
|
|
3287
3255
|
}
|
|
3288
3256
|
/**
|
|
3289
|
-
*
|
|
3290
|
-
* Used for personalization and understanding engagement.
|
|
3257
|
+
* Tracks pipeline status for a contact across all processing stages.
|
|
3291
3258
|
*/
|
|
3292
|
-
interface
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3259
|
+
interface ContactPipelineStatus {
|
|
3260
|
+
enrichment: {
|
|
3261
|
+
[source: string]: {
|
|
3262
|
+
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
3263
|
+
completedAt?: string;
|
|
3264
|
+
error?: string;
|
|
3265
|
+
};
|
|
3266
|
+
};
|
|
3267
|
+
personalization: {
|
|
3268
|
+
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
3269
|
+
completedAt?: string;
|
|
3270
|
+
};
|
|
3271
|
+
outreach: {
|
|
3272
|
+
status: 'pending' | 'sent' | 'replied' | 'bounced' | 'opted-out';
|
|
3273
|
+
sentAt?: string;
|
|
3274
|
+
channel?: string;
|
|
3275
|
+
campaignId?: string;
|
|
3276
|
+
};
|
|
3277
|
+
}
|
|
3278
|
+
/**
|
|
3279
|
+
* Enrichment data collected for a company from various sources.
|
|
3280
|
+
*/
|
|
3281
|
+
interface CompanyEnrichmentData {
|
|
3282
|
+
googleMaps?: {
|
|
3283
|
+
placeId?: string;
|
|
3284
|
+
totalScore?: number;
|
|
3285
|
+
reviewsCount?: number;
|
|
3286
|
+
address?: string;
|
|
3287
|
+
phone?: string;
|
|
3288
|
+
categoryName?: string;
|
|
3289
|
+
googleMapsUrl?: string;
|
|
3290
|
+
scrapedAt?: string;
|
|
3291
|
+
};
|
|
3292
|
+
websiteCrawl?: {
|
|
3293
|
+
services?: string[];
|
|
3294
|
+
specialties?: string[];
|
|
3295
|
+
staff?: Array<{
|
|
3296
|
+
name: string;
|
|
3297
|
+
title?: string;
|
|
3298
|
+
email?: string;
|
|
3299
|
+
}>;
|
|
3300
|
+
emailCount?: number;
|
|
3301
|
+
crawledAt?: string;
|
|
3302
|
+
};
|
|
3303
|
+
website?: {
|
|
3304
|
+
missionVision?: string;
|
|
3305
|
+
uniqueAttributes?: string;
|
|
3306
|
+
coreOfferings?: string;
|
|
3307
|
+
targetAudience?: string;
|
|
3308
|
+
companyValues?: string;
|
|
3309
|
+
businessDescription?: string;
|
|
3310
|
+
recentPosts?: Array<{
|
|
3311
|
+
date?: string;
|
|
3312
|
+
title?: string;
|
|
3313
|
+
summary?: string;
|
|
3314
|
+
aiInsight?: string;
|
|
3315
|
+
}>;
|
|
3316
|
+
};
|
|
3297
3317
|
}
|
|
3298
3318
|
/**
|
|
3299
|
-
*
|
|
3300
|
-
* Each field represents a different enrichment source.
|
|
3319
|
+
* Enrichment data collected for a contact from various sources.
|
|
3301
3320
|
*/
|
|
3302
|
-
interface
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3321
|
+
interface ContactEnrichmentData {
|
|
3322
|
+
linkedin?: {
|
|
3323
|
+
summary?: string;
|
|
3324
|
+
pastExperience?: string;
|
|
3325
|
+
education?: string;
|
|
3326
|
+
activity?: Array<{
|
|
3327
|
+
date?: string;
|
|
3328
|
+
content?: string;
|
|
3329
|
+
}>;
|
|
3330
|
+
};
|
|
3311
3331
|
}
|
|
3312
3332
|
/**
|
|
3313
3333
|
* Acquisition list for organizing contacts and companies.
|
|
@@ -3336,19 +3356,12 @@ interface AcqCompany {
|
|
|
3336
3356
|
foundedYear: number | null;
|
|
3337
3357
|
locationCity: string | null;
|
|
3338
3358
|
locationState: string | null;
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
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;
|
|
3359
|
+
category: string | null;
|
|
3360
|
+
segment: string | null;
|
|
3361
|
+
pipelineStatus: CompanyPipelineStatus | null;
|
|
3362
|
+
enrichmentData: CompanyEnrichmentData | null;
|
|
3351
3363
|
source: string | null;
|
|
3364
|
+
batchId: string | null;
|
|
3352
3365
|
createdAt: Date;
|
|
3353
3366
|
updatedAt: Date;
|
|
3354
3367
|
}
|
|
@@ -3368,18 +3381,16 @@ interface AcqContact {
|
|
|
3368
3381
|
linkedinUrl: string | null;
|
|
3369
3382
|
title: string | null;
|
|
3370
3383
|
headline: string | null;
|
|
3371
|
-
liSummary: string | null;
|
|
3372
|
-
liPastExperience: string | null;
|
|
3373
|
-
liEducation: string | null;
|
|
3374
|
-
liActivity: LinkedInActivity[] | null;
|
|
3375
3384
|
qualification: 'qualified' | 'disqualified' | 'pending' | null;
|
|
3376
3385
|
filterReason: string | null;
|
|
3377
3386
|
openingLine: string | null;
|
|
3378
3387
|
source: string | null;
|
|
3379
3388
|
sourceId: string | null;
|
|
3380
|
-
|
|
3389
|
+
pipelineStatus: ContactPipelineStatus | null;
|
|
3390
|
+
enrichmentData: ContactEnrichmentData | null;
|
|
3381
3391
|
/** Attio Person record ID - set when contact responds and is added to CRM */
|
|
3382
3392
|
attioPersonId: string | null;
|
|
3393
|
+
batchId: string | null;
|
|
3383
3394
|
createdAt: Date;
|
|
3384
3395
|
updatedAt: Date;
|
|
3385
3396
|
}
|
|
@@ -3391,10 +3402,6 @@ interface AcqContact {
|
|
|
3391
3402
|
* Implementation: apps/api/src/acquisition/lead-service.ts (LeadService class)
|
|
3392
3403
|
*/
|
|
3393
3404
|
|
|
3394
|
-
interface PaginationParams {
|
|
3395
|
-
limit: number;
|
|
3396
|
-
offset: number;
|
|
3397
|
-
}
|
|
3398
3405
|
interface PaginatedResult<T> {
|
|
3399
3406
|
data: T[];
|
|
3400
3407
|
total: number;
|
|
@@ -3420,8 +3427,8 @@ interface CreateCompanyParams {
|
|
|
3420
3427
|
foundedYear?: number;
|
|
3421
3428
|
locationCity?: string;
|
|
3422
3429
|
locationState?: string;
|
|
3423
|
-
tags?: string[];
|
|
3424
3430
|
source?: string;
|
|
3431
|
+
batchId?: string;
|
|
3425
3432
|
}
|
|
3426
3433
|
interface UpdateCompanyParams {
|
|
3427
3434
|
name?: string;
|
|
@@ -3432,28 +3439,23 @@ interface UpdateCompanyParams {
|
|
|
3432
3439
|
foundedYear?: number;
|
|
3433
3440
|
locationCity?: string;
|
|
3434
3441
|
locationState?: string;
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
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[];
|
|
3442
|
+
category?: string;
|
|
3443
|
+
segment?: string;
|
|
3444
|
+
pipelineStatus?: Record<string, unknown>;
|
|
3445
|
+
enrichmentData?: Record<string, unknown>;
|
|
3447
3446
|
source?: string;
|
|
3448
3447
|
/** Attio Company record ID - set when company is added to CRM. Pass null to clear. */
|
|
3449
3448
|
attioCompanyId?: string | null;
|
|
3449
|
+
batchId?: string;
|
|
3450
3450
|
}
|
|
3451
3451
|
type UpsertCompanyParams = CreateCompanyParams;
|
|
3452
3452
|
interface CompanyFilters {
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3453
|
+
domain?: string;
|
|
3454
|
+
website?: string;
|
|
3455
|
+
segment?: string;
|
|
3456
|
+
category?: string;
|
|
3457
|
+
pipelineStatus?: Record<string, unknown>;
|
|
3458
|
+
batchId?: string;
|
|
3457
3459
|
}
|
|
3458
3460
|
interface CreateContactParams {
|
|
3459
3461
|
organizationId: string;
|
|
@@ -3465,6 +3467,7 @@ interface CreateContactParams {
|
|
|
3465
3467
|
title?: string;
|
|
3466
3468
|
source?: string;
|
|
3467
3469
|
sourceId?: string;
|
|
3470
|
+
batchId?: string;
|
|
3468
3471
|
}
|
|
3469
3472
|
interface UpdateContactParams {
|
|
3470
3473
|
companyId?: string;
|
|
@@ -3474,15 +3477,11 @@ interface UpdateContactParams {
|
|
|
3474
3477
|
linkedinUrl?: string;
|
|
3475
3478
|
title?: string;
|
|
3476
3479
|
headline?: string;
|
|
3477
|
-
liSummary?: string;
|
|
3478
|
-
liPastExperience?: string;
|
|
3479
|
-
liEducation?: string;
|
|
3480
|
-
liActivity?: unknown[];
|
|
3481
3480
|
qualification?: 'qualified' | 'disqualified' | 'pending';
|
|
3482
3481
|
filterReason?: string;
|
|
3483
3482
|
openingLine?: string;
|
|
3484
|
-
|
|
3485
|
-
|
|
3483
|
+
pipelineStatus?: Record<string, unknown>;
|
|
3484
|
+
enrichmentData?: Record<string, unknown>;
|
|
3486
3485
|
/** Attio Person record ID - set when contact responds and is added to CRM. Pass null to clear. */
|
|
3487
3486
|
attioPersonId?: string | null;
|
|
3488
3487
|
}
|
|
@@ -3491,6 +3490,8 @@ interface ContactFilters {
|
|
|
3491
3490
|
listId?: string;
|
|
3492
3491
|
qualification?: 'qualified' | 'disqualified' | 'pending';
|
|
3493
3492
|
openingLineIsNull?: boolean;
|
|
3493
|
+
pipelineStatus?: Record<string, unknown>;
|
|
3494
|
+
batchId?: string;
|
|
3494
3495
|
}
|
|
3495
3496
|
interface UpsertDealParams {
|
|
3496
3497
|
organizationId: string;
|
|
@@ -4004,6 +4005,33 @@ interface GetDatasetItemsResult {
|
|
|
4004
4005
|
items: unknown[];
|
|
4005
4006
|
totalCount: number;
|
|
4006
4007
|
}
|
|
4008
|
+
/**
|
|
4009
|
+
* Webhook configuration for actor run notifications
|
|
4010
|
+
*/
|
|
4011
|
+
interface ApifyWebhookConfig {
|
|
4012
|
+
eventTypes: string[];
|
|
4013
|
+
requestUrl: string;
|
|
4014
|
+
payloadTemplate?: string;
|
|
4015
|
+
headersTemplate?: string;
|
|
4016
|
+
}
|
|
4017
|
+
/**
|
|
4018
|
+
* Start actor parameters (async, no polling)
|
|
4019
|
+
*/
|
|
4020
|
+
interface StartActorParams {
|
|
4021
|
+
actorId: string;
|
|
4022
|
+
input?: Record<string, unknown>;
|
|
4023
|
+
webhooks?: ApifyWebhookConfig[];
|
|
4024
|
+
timeoutSecs?: number;
|
|
4025
|
+
maxItems?: number;
|
|
4026
|
+
}
|
|
4027
|
+
/**
|
|
4028
|
+
* Start actor result (immediate, no waiting)
|
|
4029
|
+
*/
|
|
4030
|
+
interface StartActorResult {
|
|
4031
|
+
status: 'STARTED';
|
|
4032
|
+
runId: string;
|
|
4033
|
+
datasetId: string;
|
|
4034
|
+
}
|
|
4007
4035
|
|
|
4008
4036
|
/**
|
|
4009
4037
|
* Shared Dropbox param/result types (browser-safe)
|
|
@@ -4425,6 +4453,230 @@ interface AddToCampaignResult {
|
|
|
4425
4453
|
added_count: number;
|
|
4426
4454
|
errors?: string[];
|
|
4427
4455
|
}
|
|
4456
|
+
/**
|
|
4457
|
+
* List campaigns parameters
|
|
4458
|
+
*/
|
|
4459
|
+
interface ListCampaignsParams {
|
|
4460
|
+
limit?: number;
|
|
4461
|
+
starting_after?: string;
|
|
4462
|
+
search?: string;
|
|
4463
|
+
status?: number;
|
|
4464
|
+
}
|
|
4465
|
+
/**
|
|
4466
|
+
* List campaigns result
|
|
4467
|
+
*/
|
|
4468
|
+
interface ListCampaignsResult {
|
|
4469
|
+
campaigns: Array<{
|
|
4470
|
+
id: string;
|
|
4471
|
+
name: string;
|
|
4472
|
+
status: string;
|
|
4473
|
+
created_at: string;
|
|
4474
|
+
[key: string]: unknown;
|
|
4475
|
+
}>;
|
|
4476
|
+
next_starting_after?: string;
|
|
4477
|
+
}
|
|
4478
|
+
/**
|
|
4479
|
+
* Get campaign parameters
|
|
4480
|
+
*/
|
|
4481
|
+
interface GetCampaignParams {
|
|
4482
|
+
campaign_id: string;
|
|
4483
|
+
}
|
|
4484
|
+
/**
|
|
4485
|
+
* Get campaign result
|
|
4486
|
+
*/
|
|
4487
|
+
interface GetCampaignResult {
|
|
4488
|
+
id: string;
|
|
4489
|
+
name: string;
|
|
4490
|
+
status: string;
|
|
4491
|
+
sequences: unknown[];
|
|
4492
|
+
created_at: string;
|
|
4493
|
+
[key: string]: unknown;
|
|
4494
|
+
}
|
|
4495
|
+
/**
|
|
4496
|
+
* Update campaign parameters
|
|
4497
|
+
*/
|
|
4498
|
+
interface UpdateCampaignParams {
|
|
4499
|
+
campaign_id: string;
|
|
4500
|
+
name?: string;
|
|
4501
|
+
sequences?: unknown;
|
|
4502
|
+
email_list?: string[];
|
|
4503
|
+
daily_limit?: number;
|
|
4504
|
+
stop_on_reply?: boolean;
|
|
4505
|
+
track_opens?: boolean;
|
|
4506
|
+
track_clicks?: boolean;
|
|
4507
|
+
[key: string]: unknown;
|
|
4508
|
+
}
|
|
4509
|
+
/**
|
|
4510
|
+
* Update campaign result
|
|
4511
|
+
*/
|
|
4512
|
+
interface UpdateCampaignResult {
|
|
4513
|
+
success: boolean;
|
|
4514
|
+
campaign_id: string;
|
|
4515
|
+
}
|
|
4516
|
+
/**
|
|
4517
|
+
* Pause campaign parameters
|
|
4518
|
+
*/
|
|
4519
|
+
interface PauseCampaignParams {
|
|
4520
|
+
campaign_id: string;
|
|
4521
|
+
}
|
|
4522
|
+
/**
|
|
4523
|
+
* Pause campaign result
|
|
4524
|
+
*/
|
|
4525
|
+
interface PauseCampaignResult {
|
|
4526
|
+
success: boolean;
|
|
4527
|
+
campaign_id: string;
|
|
4528
|
+
}
|
|
4529
|
+
/**
|
|
4530
|
+
* Activate campaign parameters
|
|
4531
|
+
*/
|
|
4532
|
+
interface ActivateCampaignParams {
|
|
4533
|
+
campaign_id: string;
|
|
4534
|
+
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Activate campaign result
|
|
4537
|
+
*/
|
|
4538
|
+
interface ActivateCampaignResult {
|
|
4539
|
+
success: boolean;
|
|
4540
|
+
campaign_id: string;
|
|
4541
|
+
}
|
|
4542
|
+
/**
|
|
4543
|
+
* Get campaign analytics parameters
|
|
4544
|
+
*/
|
|
4545
|
+
interface GetCampaignAnalyticsParams {
|
|
4546
|
+
campaign_id: string;
|
|
4547
|
+
start_date?: string;
|
|
4548
|
+
end_date?: string;
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
* Get campaign analytics result
|
|
4552
|
+
*/
|
|
4553
|
+
interface GetCampaignAnalyticsResult {
|
|
4554
|
+
campaign_id: string;
|
|
4555
|
+
sent: number;
|
|
4556
|
+
opened: number;
|
|
4557
|
+
unique_opened: number;
|
|
4558
|
+
replied: number;
|
|
4559
|
+
unique_replied: number;
|
|
4560
|
+
bounced: number;
|
|
4561
|
+
unsubscribed: number;
|
|
4562
|
+
[key: string]: unknown;
|
|
4563
|
+
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Get step analytics parameters
|
|
4566
|
+
*/
|
|
4567
|
+
interface GetStepAnalyticsParams {
|
|
4568
|
+
campaign_id: string;
|
|
4569
|
+
start_date?: string;
|
|
4570
|
+
end_date?: string;
|
|
4571
|
+
}
|
|
4572
|
+
/**
|
|
4573
|
+
* Get step analytics result
|
|
4574
|
+
*/
|
|
4575
|
+
interface GetStepAnalyticsResult {
|
|
4576
|
+
steps: Array<{
|
|
4577
|
+
step: string;
|
|
4578
|
+
variant: string;
|
|
4579
|
+
sent: number;
|
|
4580
|
+
opened: number;
|
|
4581
|
+
unique_opened: number;
|
|
4582
|
+
replies: number;
|
|
4583
|
+
unique_replies: number;
|
|
4584
|
+
}>;
|
|
4585
|
+
}
|
|
4586
|
+
/**
|
|
4587
|
+
* Bulk add leads parameters
|
|
4588
|
+
*/
|
|
4589
|
+
interface BulkAddLeadsParams {
|
|
4590
|
+
campaign_id: string;
|
|
4591
|
+
leads: Array<{
|
|
4592
|
+
email: string;
|
|
4593
|
+
first_name?: string;
|
|
4594
|
+
last_name?: string;
|
|
4595
|
+
company_name?: string;
|
|
4596
|
+
website?: string;
|
|
4597
|
+
custom_variables?: Record<string, string>;
|
|
4598
|
+
}>;
|
|
4599
|
+
}
|
|
4600
|
+
/**
|
|
4601
|
+
* Bulk add leads result
|
|
4602
|
+
*/
|
|
4603
|
+
interface BulkAddLeadsResult {
|
|
4604
|
+
success: boolean;
|
|
4605
|
+
added_count: number;
|
|
4606
|
+
failed_count: number;
|
|
4607
|
+
errors?: Array<{
|
|
4608
|
+
email: string;
|
|
4609
|
+
error: string;
|
|
4610
|
+
}>;
|
|
4611
|
+
}
|
|
4612
|
+
/**
|
|
4613
|
+
* Get account health parameters
|
|
4614
|
+
*/
|
|
4615
|
+
interface GetAccountHealthParams {
|
|
4616
|
+
limit?: number;
|
|
4617
|
+
starting_after?: string;
|
|
4618
|
+
}
|
|
4619
|
+
/**
|
|
4620
|
+
* Get account health result
|
|
4621
|
+
*/
|
|
4622
|
+
interface GetAccountHealthResult {
|
|
4623
|
+
accounts: Array<{
|
|
4624
|
+
id: string;
|
|
4625
|
+
email: string;
|
|
4626
|
+
status: string;
|
|
4627
|
+
warmup_enabled: boolean;
|
|
4628
|
+
health_score?: number;
|
|
4629
|
+
[key: string]: unknown;
|
|
4630
|
+
}>;
|
|
4631
|
+
next_starting_after?: string;
|
|
4632
|
+
}
|
|
4633
|
+
/**
|
|
4634
|
+
* Create inbox test parameters
|
|
4635
|
+
*/
|
|
4636
|
+
interface CreateInboxTestParams {
|
|
4637
|
+
email_account: string;
|
|
4638
|
+
subject?: string;
|
|
4639
|
+
body?: string;
|
|
4640
|
+
}
|
|
4641
|
+
/**
|
|
4642
|
+
* Create inbox test result
|
|
4643
|
+
*/
|
|
4644
|
+
interface CreateInboxTestResult {
|
|
4645
|
+
success: boolean;
|
|
4646
|
+
test_id: string;
|
|
4647
|
+
status: string;
|
|
4648
|
+
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Create campaign parameters
|
|
4651
|
+
*/
|
|
4652
|
+
interface CreateCampaignParams {
|
|
4653
|
+
name: string;
|
|
4654
|
+
sequences?: Array<{
|
|
4655
|
+
steps: Array<{
|
|
4656
|
+
subject: string;
|
|
4657
|
+
body: string;
|
|
4658
|
+
variants?: Array<{
|
|
4659
|
+
subject: string;
|
|
4660
|
+
body: string;
|
|
4661
|
+
}>;
|
|
4662
|
+
}>;
|
|
4663
|
+
}>;
|
|
4664
|
+
email_list?: string[];
|
|
4665
|
+
daily_limit?: number;
|
|
4666
|
+
stop_on_reply?: boolean;
|
|
4667
|
+
stop_on_auto_reply?: boolean;
|
|
4668
|
+
track_opens?: boolean;
|
|
4669
|
+
track_clicks?: boolean;
|
|
4670
|
+
text_only?: boolean;
|
|
4671
|
+
}
|
|
4672
|
+
/**
|
|
4673
|
+
* Create campaign result
|
|
4674
|
+
*/
|
|
4675
|
+
interface CreateCampaignResult {
|
|
4676
|
+
success: boolean;
|
|
4677
|
+
campaign_id: string;
|
|
4678
|
+
name: string;
|
|
4679
|
+
}
|
|
4428
4680
|
|
|
4429
4681
|
/**
|
|
4430
4682
|
* Shared Mailso param/result types (browser-safe)
|
|
@@ -4461,6 +4713,53 @@ interface MailsoVerifyEmailResult {
|
|
|
4461
4713
|
mxRecord: string | null;
|
|
4462
4714
|
}
|
|
4463
4715
|
|
|
4716
|
+
interface FindCompanyEmailParams {
|
|
4717
|
+
domain?: string;
|
|
4718
|
+
company_name?: string;
|
|
4719
|
+
email_type?: 'personal' | 'generic' | 'all';
|
|
4720
|
+
}
|
|
4721
|
+
interface FindCompanyEmailResult {
|
|
4722
|
+
email_status: 'valid' | 'risky' | 'not_found' | 'blacklisted';
|
|
4723
|
+
emails: string[];
|
|
4724
|
+
valid_emails: string[];
|
|
4725
|
+
[key: string]: unknown;
|
|
4726
|
+
}
|
|
4727
|
+
interface FindPersonEmailParams {
|
|
4728
|
+
domain?: string;
|
|
4729
|
+
company_name?: string;
|
|
4730
|
+
full_name?: string;
|
|
4731
|
+
first_name?: string;
|
|
4732
|
+
last_name?: string;
|
|
4733
|
+
}
|
|
4734
|
+
interface FindPersonEmailResult {
|
|
4735
|
+
email: string;
|
|
4736
|
+
email_status: 'valid' | 'risky' | 'not_found' | 'blacklisted';
|
|
4737
|
+
valid_email: string;
|
|
4738
|
+
[key: string]: unknown;
|
|
4739
|
+
}
|
|
4740
|
+
interface FindDecisionMakerEmailParams {
|
|
4741
|
+
domain?: string;
|
|
4742
|
+
company_name?: string;
|
|
4743
|
+
decision_maker_category: string[];
|
|
4744
|
+
}
|
|
4745
|
+
interface FindDecisionMakerEmailResult {
|
|
4746
|
+
email: string;
|
|
4747
|
+
email_status: 'valid' | 'risky' | 'not_found' | 'blacklisted';
|
|
4748
|
+
valid_email: string;
|
|
4749
|
+
person_full_name: string;
|
|
4750
|
+
person_job_title: string;
|
|
4751
|
+
person_linkedin_url: string;
|
|
4752
|
+
decision_maker_category: string;
|
|
4753
|
+
[key: string]: unknown;
|
|
4754
|
+
}
|
|
4755
|
+
interface VerifyEmailParams {
|
|
4756
|
+
email: string;
|
|
4757
|
+
}
|
|
4758
|
+
interface VerifyEmailResult {
|
|
4759
|
+
email_status: 'valid' | 'risky' | 'not_found' | 'blacklisted';
|
|
4760
|
+
[key: string]: unknown;
|
|
4761
|
+
}
|
|
4762
|
+
|
|
4464
4763
|
/**
|
|
4465
4764
|
* Shared Notion param/result types (browser-safe)
|
|
4466
4765
|
*
|
|
@@ -5188,6 +5487,10 @@ type ApifyToolMap = {
|
|
|
5188
5487
|
params: GetDatasetItemsParams;
|
|
5189
5488
|
result: GetDatasetItemsResult;
|
|
5190
5489
|
};
|
|
5490
|
+
startActor: {
|
|
5491
|
+
params: StartActorParams;
|
|
5492
|
+
result: StartActorResult;
|
|
5493
|
+
};
|
|
5191
5494
|
};
|
|
5192
5495
|
type GmailToolMap = {
|
|
5193
5496
|
sendEmail: {
|
|
@@ -5244,6 +5547,50 @@ type InstantlyToolMap = {
|
|
|
5244
5547
|
params: AddToCampaignParams;
|
|
5245
5548
|
result: AddToCampaignResult;
|
|
5246
5549
|
};
|
|
5550
|
+
listCampaigns: {
|
|
5551
|
+
params: ListCampaignsParams;
|
|
5552
|
+
result: ListCampaignsResult;
|
|
5553
|
+
};
|
|
5554
|
+
getCampaign: {
|
|
5555
|
+
params: GetCampaignParams;
|
|
5556
|
+
result: GetCampaignResult;
|
|
5557
|
+
};
|
|
5558
|
+
updateCampaign: {
|
|
5559
|
+
params: UpdateCampaignParams;
|
|
5560
|
+
result: UpdateCampaignResult;
|
|
5561
|
+
};
|
|
5562
|
+
pauseCampaign: {
|
|
5563
|
+
params: PauseCampaignParams;
|
|
5564
|
+
result: PauseCampaignResult;
|
|
5565
|
+
};
|
|
5566
|
+
activateCampaign: {
|
|
5567
|
+
params: ActivateCampaignParams;
|
|
5568
|
+
result: ActivateCampaignResult;
|
|
5569
|
+
};
|
|
5570
|
+
getCampaignAnalytics: {
|
|
5571
|
+
params: GetCampaignAnalyticsParams;
|
|
5572
|
+
result: GetCampaignAnalyticsResult;
|
|
5573
|
+
};
|
|
5574
|
+
getStepAnalytics: {
|
|
5575
|
+
params: GetStepAnalyticsParams;
|
|
5576
|
+
result: GetStepAnalyticsResult;
|
|
5577
|
+
};
|
|
5578
|
+
bulkAddLeads: {
|
|
5579
|
+
params: BulkAddLeadsParams;
|
|
5580
|
+
result: BulkAddLeadsResult;
|
|
5581
|
+
};
|
|
5582
|
+
getAccountHealth: {
|
|
5583
|
+
params: GetAccountHealthParams;
|
|
5584
|
+
result: GetAccountHealthResult;
|
|
5585
|
+
};
|
|
5586
|
+
createInboxTest: {
|
|
5587
|
+
params: CreateInboxTestParams;
|
|
5588
|
+
result: CreateInboxTestResult;
|
|
5589
|
+
};
|
|
5590
|
+
createCampaign: {
|
|
5591
|
+
params: CreateCampaignParams;
|
|
5592
|
+
result: CreateCampaignResult;
|
|
5593
|
+
};
|
|
5247
5594
|
};
|
|
5248
5595
|
type MailsoToolMap = {
|
|
5249
5596
|
verifyEmail: {
|
|
@@ -5251,6 +5598,24 @@ type MailsoToolMap = {
|
|
|
5251
5598
|
result: MailsoVerifyEmailResult;
|
|
5252
5599
|
};
|
|
5253
5600
|
};
|
|
5601
|
+
type AnymailfinderToolMap = {
|
|
5602
|
+
findCompanyEmail: {
|
|
5603
|
+
params: FindCompanyEmailParams;
|
|
5604
|
+
result: FindCompanyEmailResult;
|
|
5605
|
+
};
|
|
5606
|
+
findPersonEmail: {
|
|
5607
|
+
params: FindPersonEmailParams;
|
|
5608
|
+
result: FindPersonEmailResult;
|
|
5609
|
+
};
|
|
5610
|
+
findDecisionMakerEmail: {
|
|
5611
|
+
params: FindDecisionMakerEmailParams;
|
|
5612
|
+
result: FindDecisionMakerEmailResult;
|
|
5613
|
+
};
|
|
5614
|
+
verifyEmail: {
|
|
5615
|
+
params: VerifyEmailParams;
|
|
5616
|
+
result: VerifyEmailResult;
|
|
5617
|
+
};
|
|
5618
|
+
};
|
|
5254
5619
|
type LeadToolMap = {
|
|
5255
5620
|
listLists: {
|
|
5256
5621
|
params: Record<string, never>;
|
|
@@ -5293,9 +5658,7 @@ type LeadToolMap = {
|
|
|
5293
5658
|
result: AcqCompany | null;
|
|
5294
5659
|
};
|
|
5295
5660
|
listCompanies: {
|
|
5296
|
-
params:
|
|
5297
|
-
filters?: CompanyFilters;
|
|
5298
|
-
};
|
|
5661
|
+
params: CompanyFilters;
|
|
5299
5662
|
result: AcqCompany[];
|
|
5300
5663
|
};
|
|
5301
5664
|
deleteCompany: {
|
|
@@ -5331,9 +5694,9 @@ type LeadToolMap = {
|
|
|
5331
5694
|
result: AcqContact | null;
|
|
5332
5695
|
};
|
|
5333
5696
|
listContacts: {
|
|
5334
|
-
params: {
|
|
5335
|
-
|
|
5336
|
-
|
|
5697
|
+
params: ContactFilters & {
|
|
5698
|
+
limit?: number;
|
|
5699
|
+
offset?: number;
|
|
5337
5700
|
};
|
|
5338
5701
|
result: PaginatedResult<AcqContact>;
|
|
5339
5702
|
};
|
|
@@ -5429,6 +5792,14 @@ type LeadToolMap = {
|
|
|
5429
5792
|
params: Omit<DeleteDealParams, 'organizationId'>;
|
|
5430
5793
|
result: void;
|
|
5431
5794
|
};
|
|
5795
|
+
mergeEnrichmentData: {
|
|
5796
|
+
params: {
|
|
5797
|
+
id: string;
|
|
5798
|
+
table: 'acq_companies' | 'acq_contacts';
|
|
5799
|
+
data: Record<string, unknown>;
|
|
5800
|
+
};
|
|
5801
|
+
result: void;
|
|
5802
|
+
};
|
|
5432
5803
|
};
|
|
5433
5804
|
type PdfToolMap = {
|
|
5434
5805
|
render: {
|
|
@@ -5509,6 +5880,15 @@ type ExecutionToolMap = {
|
|
|
5509
5880
|
error?: string;
|
|
5510
5881
|
};
|
|
5511
5882
|
};
|
|
5883
|
+
triggerAsync: {
|
|
5884
|
+
params: {
|
|
5885
|
+
resourceId: string;
|
|
5886
|
+
input?: unknown;
|
|
5887
|
+
};
|
|
5888
|
+
result: {
|
|
5889
|
+
executionId: string;
|
|
5890
|
+
};
|
|
5891
|
+
};
|
|
5512
5892
|
};
|
|
5513
5893
|
type EmailToolMap = {
|
|
5514
5894
|
send: {
|
|
@@ -5801,7 +6181,7 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'adapter_n
|
|
|
5801
6181
|
* Note: Concrete adapter implementations are deferred until needed.
|
|
5802
6182
|
* This type provides compile-time safety and auto-completion for tool definitions.
|
|
5803
6183
|
*/
|
|
5804
|
-
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'notion' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'mailso';
|
|
6184
|
+
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'notion' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'mailso' | 'anymailfinder';
|
|
5805
6185
|
|
|
5806
6186
|
/**
|
|
5807
6187
|
* Resource Registry type definitions
|
|
@@ -5881,7 +6261,7 @@ interface ResourceList {
|
|
|
5881
6261
|
environment?: 'dev' | 'prod';
|
|
5882
6262
|
}
|
|
5883
6263
|
/** Webhook provider identifiers */
|
|
5884
|
-
type WebhookProviderType = 'cal-com' | 'fillout' | 'stripe' | 'signature-api' | 'instantly' | 'test';
|
|
6264
|
+
type WebhookProviderType = 'cal-com' | 'fillout' | 'stripe' | 'signature-api' | 'instantly' | 'test' | 'apify';
|
|
5885
6265
|
/** Webhook trigger configuration */
|
|
5886
6266
|
interface WebhookTriggerConfig {
|
|
5887
6267
|
/** Provider identifier */
|
|
@@ -6166,6 +6546,31 @@ declare class RegistryValidationError extends Error {
|
|
|
6166
6546
|
constructor(orgName: string, resourceId: string | null, field: string | null, message: string);
|
|
6167
6547
|
}
|
|
6168
6548
|
|
|
6549
|
+
/**
|
|
6550
|
+
* LLM Platform Tool Adapter
|
|
6551
|
+
*
|
|
6552
|
+
* Typed wrapper over platform.call() for LLM generation.
|
|
6553
|
+
* Singleton export -- no credential needed (platform tool).
|
|
6554
|
+
*
|
|
6555
|
+
* Types are shared with the server-side LLM engine via @repo/core/execution.
|
|
6556
|
+
*/
|
|
6557
|
+
|
|
6558
|
+
type LLMProvider = 'openai' | 'anthropic' | 'openrouter' | 'google';
|
|
6559
|
+
/**
|
|
6560
|
+
* SDK LLM generate params.
|
|
6561
|
+
* Extends LLMGenerateRequest with optional typed provider/model for worker→platform dispatch.
|
|
6562
|
+
* When provided, these override the resource-level model config server-side.
|
|
6563
|
+
* When omitted, the resource's default ModelConfig is used.
|
|
6564
|
+
*/
|
|
6565
|
+
interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal' | 'responseSchema'> {
|
|
6566
|
+
/** LLM provider — typed to prevent invalid provider strings */
|
|
6567
|
+
provider?: LLMProvider;
|
|
6568
|
+
/** Model identifier — must be a supported LLMModel when provided */
|
|
6569
|
+
model?: LLMModel;
|
|
6570
|
+
/** JSON Schema for structured output (optional — omit for unstructured text) */
|
|
6571
|
+
responseSchema?: unknown;
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6169
6574
|
type ResourceStatus = 'dev' | 'prod';
|
|
6170
6575
|
/**
|
|
6171
6576
|
* Project configuration for an external developer project.
|
|
@@ -6209,4 +6614,4 @@ declare class ToolingError extends ExecutionError {
|
|
|
6209
6614
|
}
|
|
6210
6615
|
|
|
6211
6616
|
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
|
|
6617
|
+
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, 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 };
|