@elevasis/sdk 1.15.0 → 1.15.1

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.
@@ -895,7 +895,7 @@ type Json = string | number | boolean | null | {
895
895
  } | Json[];
896
896
  type Database = {
897
897
  __InternalSupabase: {
898
- PostgrestVersion: '12.2.3 (519615d)';
898
+ PostgrestVersion: "12.2.3 (519615d)";
899
899
  };
900
900
  public: {
901
901
  Tables: {
@@ -938,11 +938,11 @@ type Database = {
938
938
  };
939
939
  Relationships: [
940
940
  {
941
- foreignKeyName: 'acq_artifacts_organization_id_fkey';
942
- columns: ['organization_id'];
941
+ foreignKeyName: "acq_artifacts_organization_id_fkey";
942
+ columns: ["organization_id"];
943
943
  isOneToOne: false;
944
- referencedRelation: 'organizations';
945
- referencedColumns: ['id'];
944
+ referencedRelation: "organizations";
945
+ referencedColumns: ["id"];
946
946
  }
947
947
  ];
948
948
  };
@@ -1027,11 +1027,11 @@ type Database = {
1027
1027
  };
1028
1028
  Relationships: [
1029
1029
  {
1030
- foreignKeyName: 'acq_companies_organization_id_fkey';
1031
- columns: ['organization_id'];
1030
+ foreignKeyName: "acq_companies_organization_id_fkey";
1031
+ columns: ["organization_id"];
1032
1032
  isOneToOne: false;
1033
- referencedRelation: 'organizations';
1034
- referencedColumns: ['id'];
1033
+ referencedRelation: "organizations";
1034
+ referencedColumns: ["id"];
1035
1035
  }
1036
1036
  ];
1037
1037
  };
@@ -1122,18 +1122,18 @@ type Database = {
1122
1122
  };
1123
1123
  Relationships: [
1124
1124
  {
1125
- foreignKeyName: 'acq_contacts_company_id_fkey';
1126
- columns: ['company_id'];
1125
+ foreignKeyName: "acq_contacts_company_id_fkey";
1126
+ columns: ["company_id"];
1127
1127
  isOneToOne: false;
1128
- referencedRelation: 'acq_companies';
1129
- referencedColumns: ['id'];
1128
+ referencedRelation: "acq_companies";
1129
+ referencedColumns: ["id"];
1130
1130
  },
1131
1131
  {
1132
- foreignKeyName: 'acq_contacts_organization_id_fkey';
1133
- columns: ['organization_id'];
1132
+ foreignKeyName: "acq_contacts_organization_id_fkey";
1133
+ columns: ["organization_id"];
1134
1134
  isOneToOne: false;
1135
- referencedRelation: 'organizations';
1136
- referencedColumns: ['id'];
1135
+ referencedRelation: "organizations";
1136
+ referencedColumns: ["id"];
1137
1137
  }
1138
1138
  ];
1139
1139
  };
@@ -1170,11 +1170,11 @@ type Database = {
1170
1170
  };
1171
1171
  Relationships: [
1172
1172
  {
1173
- foreignKeyName: 'acq_content_organization_id_fkey';
1174
- columns: ['organization_id'];
1173
+ foreignKeyName: "acq_content_organization_id_fkey";
1174
+ columns: ["organization_id"];
1175
1175
  isOneToOne: false;
1176
- referencedRelation: 'organizations';
1177
- referencedColumns: ['id'];
1176
+ referencedRelation: "organizations";
1177
+ referencedColumns: ["id"];
1178
1178
  }
1179
1179
  ];
1180
1180
  };
@@ -1238,18 +1238,18 @@ type Database = {
1238
1238
  };
1239
1239
  Relationships: [
1240
1240
  {
1241
- foreignKeyName: 'acq_content_distributions_content_id_fkey';
1242
- columns: ['content_id'];
1241
+ foreignKeyName: "acq_content_distributions_content_id_fkey";
1242
+ columns: ["content_id"];
1243
1243
  isOneToOne: false;
1244
- referencedRelation: 'acq_content';
1245
- referencedColumns: ['id'];
1244
+ referencedRelation: "acq_content";
1245
+ referencedColumns: ["id"];
1246
1246
  },
1247
1247
  {
1248
- foreignKeyName: 'acq_content_distributions_organization_id_fkey';
1249
- columns: ['organization_id'];
1248
+ foreignKeyName: "acq_content_distributions_organization_id_fkey";
1249
+ columns: ["organization_id"];
1250
1250
  isOneToOne: false;
1251
- referencedRelation: 'organizations';
1252
- referencedColumns: ['id'];
1251
+ referencedRelation: "organizations";
1252
+ referencedColumns: ["id"];
1253
1253
  }
1254
1254
  ];
1255
1255
  };
@@ -1283,18 +1283,18 @@ type Database = {
1283
1283
  };
1284
1284
  Relationships: [
1285
1285
  {
1286
- foreignKeyName: 'acq_deal_notes_deal_id_fkey';
1287
- columns: ['deal_id'];
1286
+ foreignKeyName: "acq_deal_notes_deal_id_fkey";
1287
+ columns: ["deal_id"];
1288
1288
  isOneToOne: false;
1289
- referencedRelation: 'acq_deals';
1290
- referencedColumns: ['id'];
1289
+ referencedRelation: "acq_deals";
1290
+ referencedColumns: ["id"];
1291
1291
  },
1292
1292
  {
1293
- foreignKeyName: 'acq_deal_notes_organization_id_fkey';
1294
- columns: ['organization_id'];
1293
+ foreignKeyName: "acq_deal_notes_organization_id_fkey";
1294
+ columns: ["organization_id"];
1295
1295
  isOneToOne: false;
1296
- referencedRelation: 'organizations';
1297
- referencedColumns: ['id'];
1296
+ referencedRelation: "organizations";
1297
+ referencedColumns: ["id"];
1298
1298
  }
1299
1299
  ];
1300
1300
  };
@@ -1346,18 +1346,18 @@ type Database = {
1346
1346
  };
1347
1347
  Relationships: [
1348
1348
  {
1349
- foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
1350
- columns: ['deal_id'];
1349
+ foreignKeyName: "acq_deal_tasks_deal_id_fkey";
1350
+ columns: ["deal_id"];
1351
1351
  isOneToOne: false;
1352
- referencedRelation: 'acq_deals';
1353
- referencedColumns: ['id'];
1352
+ referencedRelation: "acq_deals";
1353
+ referencedColumns: ["id"];
1354
1354
  },
1355
1355
  {
1356
- foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
1357
- columns: ['organization_id'];
1356
+ foreignKeyName: "acq_deal_tasks_organization_id_fkey";
1357
+ columns: ["organization_id"];
1358
1358
  isOneToOne: false;
1359
- referencedRelation: 'organizations';
1360
- referencedColumns: ['id'];
1359
+ referencedRelation: "organizations";
1360
+ referencedColumns: ["id"];
1361
1361
  }
1362
1362
  ];
1363
1363
  };
@@ -1374,6 +1374,8 @@ type Database = {
1374
1374
  discovery_submitted_by: string | null;
1375
1375
  id: string;
1376
1376
  initial_fee: number | null;
1377
+ instantly_email_account: string | null;
1378
+ instantly_thread_uuid: string | null;
1377
1379
  monthly_fee: number | null;
1378
1380
  organization_id: string;
1379
1381
  payment_link_sent_at: string | null;
@@ -1409,6 +1411,8 @@ type Database = {
1409
1411
  discovery_submitted_by?: string | null;
1410
1412
  id?: string;
1411
1413
  initial_fee?: number | null;
1414
+ instantly_email_account?: string | null;
1415
+ instantly_thread_uuid?: string | null;
1412
1416
  monthly_fee?: number | null;
1413
1417
  organization_id: string;
1414
1418
  payment_link_sent_at?: string | null;
@@ -1444,6 +1448,8 @@ type Database = {
1444
1448
  discovery_submitted_by?: string | null;
1445
1449
  id?: string;
1446
1450
  initial_fee?: number | null;
1451
+ instantly_email_account?: string | null;
1452
+ instantly_thread_uuid?: string | null;
1447
1453
  monthly_fee?: number | null;
1448
1454
  organization_id?: string;
1449
1455
  payment_link_sent_at?: string | null;
@@ -1469,25 +1475,25 @@ type Database = {
1469
1475
  };
1470
1476
  Relationships: [
1471
1477
  {
1472
- foreignKeyName: 'acq_deals_contact_id_fkey';
1473
- columns: ['contact_id'];
1478
+ foreignKeyName: "acq_deals_contact_id_fkey";
1479
+ columns: ["contact_id"];
1474
1480
  isOneToOne: false;
1475
- referencedRelation: 'acq_contacts';
1476
- referencedColumns: ['id'];
1481
+ referencedRelation: "acq_contacts";
1482
+ referencedColumns: ["id"];
1477
1483
  },
1478
1484
  {
1479
- foreignKeyName: 'acq_deals_organization_id_fkey';
1480
- columns: ['organization_id'];
1485
+ foreignKeyName: "acq_deals_organization_id_fkey";
1486
+ columns: ["organization_id"];
1481
1487
  isOneToOne: false;
1482
- referencedRelation: 'organizations';
1483
- referencedColumns: ['id'];
1488
+ referencedRelation: "organizations";
1489
+ referencedColumns: ["id"];
1484
1490
  },
1485
1491
  {
1486
- foreignKeyName: 'acq_deals_source_list_id_fkey';
1487
- columns: ['source_list_id'];
1492
+ foreignKeyName: "acq_deals_source_list_id_fkey";
1493
+ columns: ["source_list_id"];
1488
1494
  isOneToOne: false;
1489
- referencedRelation: 'acq_lists';
1490
- referencedColumns: ['id'];
1495
+ referencedRelation: "acq_lists";
1496
+ referencedColumns: ["id"];
1491
1497
  }
1492
1498
  ];
1493
1499
  };
@@ -1539,25 +1545,25 @@ type Database = {
1539
1545
  };
1540
1546
  Relationships: [
1541
1547
  {
1542
- foreignKeyName: 'acq_list_companies_company_id_fkey';
1543
- columns: ['company_id'];
1548
+ foreignKeyName: "acq_list_companies_company_id_fkey";
1549
+ columns: ["company_id"];
1544
1550
  isOneToOne: false;
1545
- referencedRelation: 'acq_companies';
1546
- referencedColumns: ['id'];
1551
+ referencedRelation: "acq_companies";
1552
+ referencedColumns: ["id"];
1547
1553
  },
1548
1554
  {
1549
- foreignKeyName: 'acq_list_companies_list_id_fkey';
1550
- columns: ['list_id'];
1555
+ foreignKeyName: "acq_list_companies_list_id_fkey";
1556
+ columns: ["list_id"];
1551
1557
  isOneToOne: false;
1552
- referencedRelation: 'acq_lists';
1553
- referencedColumns: ['id'];
1558
+ referencedRelation: "acq_lists";
1559
+ referencedColumns: ["id"];
1554
1560
  },
1555
1561
  {
1556
- foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
1557
- columns: ['source_execution_id'];
1562
+ foreignKeyName: "acq_list_companies_source_execution_id_fkey";
1563
+ columns: ["source_execution_id"];
1558
1564
  isOneToOne: false;
1559
- referencedRelation: 'execution_logs';
1560
- referencedColumns: ['execution_id'];
1565
+ referencedRelation: "execution_logs";
1566
+ referencedColumns: ["execution_id"];
1561
1567
  }
1562
1568
  ];
1563
1569
  };
@@ -1585,18 +1591,18 @@ type Database = {
1585
1591
  };
1586
1592
  Relationships: [
1587
1593
  {
1588
- foreignKeyName: 'acq_list_executions_execution_id_fkey';
1589
- columns: ['execution_id'];
1594
+ foreignKeyName: "acq_list_executions_execution_id_fkey";
1595
+ columns: ["execution_id"];
1590
1596
  isOneToOne: false;
1591
- referencedRelation: 'execution_logs';
1592
- referencedColumns: ['execution_id'];
1597
+ referencedRelation: "execution_logs";
1598
+ referencedColumns: ["execution_id"];
1593
1599
  },
1594
1600
  {
1595
- foreignKeyName: 'acq_list_executions_list_id_fkey';
1596
- columns: ['list_id'];
1601
+ foreignKeyName: "acq_list_executions_list_id_fkey";
1602
+ columns: ["list_id"];
1597
1603
  isOneToOne: false;
1598
- referencedRelation: 'acq_lists';
1599
- referencedColumns: ['id'];
1604
+ referencedRelation: "acq_lists";
1605
+ referencedColumns: ["id"];
1600
1606
  }
1601
1607
  ];
1602
1608
  };
@@ -1648,25 +1654,25 @@ type Database = {
1648
1654
  };
1649
1655
  Relationships: [
1650
1656
  {
1651
- foreignKeyName: 'acq_list_members_contact_id_fkey';
1652
- columns: ['contact_id'];
1657
+ foreignKeyName: "acq_list_members_contact_id_fkey";
1658
+ columns: ["contact_id"];
1653
1659
  isOneToOne: false;
1654
- referencedRelation: 'acq_contacts';
1655
- referencedColumns: ['id'];
1660
+ referencedRelation: "acq_contacts";
1661
+ referencedColumns: ["id"];
1656
1662
  },
1657
1663
  {
1658
- foreignKeyName: 'acq_list_members_list_id_fkey';
1659
- columns: ['list_id'];
1664
+ foreignKeyName: "acq_list_members_list_id_fkey";
1665
+ columns: ["list_id"];
1660
1666
  isOneToOne: false;
1661
- referencedRelation: 'acq_lists';
1662
- referencedColumns: ['id'];
1667
+ referencedRelation: "acq_lists";
1668
+ referencedColumns: ["id"];
1663
1669
  },
1664
1670
  {
1665
- foreignKeyName: 'acq_list_members_source_execution_id_fkey';
1666
- columns: ['source_execution_id'];
1671
+ foreignKeyName: "acq_list_members_source_execution_id_fkey";
1672
+ columns: ["source_execution_id"];
1667
1673
  isOneToOne: false;
1668
- referencedRelation: 'execution_logs';
1669
- referencedColumns: ['execution_id'];
1674
+ referencedRelation: "execution_logs";
1675
+ referencedColumns: ["execution_id"];
1670
1676
  }
1671
1677
  ];
1672
1678
  };
@@ -1721,11 +1727,11 @@ type Database = {
1721
1727
  };
1722
1728
  Relationships: [
1723
1729
  {
1724
- foreignKeyName: 'acq_lists_organization_id_fkey';
1725
- columns: ['organization_id'];
1730
+ foreignKeyName: "acq_lists_organization_id_fkey";
1731
+ columns: ["organization_id"];
1726
1732
  isOneToOne: false;
1727
- referencedRelation: 'organizations';
1728
- referencedColumns: ['id'];
1733
+ referencedRelation: "organizations";
1734
+ referencedColumns: ["id"];
1729
1735
  }
1730
1736
  ];
1731
1737
  };
@@ -1801,18 +1807,18 @@ type Database = {
1801
1807
  };
1802
1808
  Relationships: [
1803
1809
  {
1804
- foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
1805
- columns: ['organization_id'];
1810
+ foreignKeyName: "acq_seo_metrics_organization_id_fkey";
1811
+ columns: ["organization_id"];
1806
1812
  isOneToOne: false;
1807
- referencedRelation: 'organizations';
1808
- referencedColumns: ['id'];
1813
+ referencedRelation: "organizations";
1814
+ referencedColumns: ["id"];
1809
1815
  },
1810
1816
  {
1811
- foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
1812
- columns: ['seo_page_id'];
1817
+ foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
1818
+ columns: ["seo_page_id"];
1813
1819
  isOneToOne: false;
1814
- referencedRelation: 'acq_seo_pages';
1815
- referencedColumns: ['id'];
1820
+ referencedRelation: "acq_seo_pages";
1821
+ referencedColumns: ["id"];
1816
1822
  }
1817
1823
  ];
1818
1824
  };
@@ -1888,11 +1894,11 @@ type Database = {
1888
1894
  };
1889
1895
  Relationships: [
1890
1896
  {
1891
- foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1892
- columns: ['organization_id'];
1897
+ foreignKeyName: "acq_seo_pages_organization_id_fkey";
1898
+ columns: ["organization_id"];
1893
1899
  isOneToOne: false;
1894
- referencedRelation: 'organizations';
1895
- referencedColumns: ['id'];
1900
+ referencedRelation: "organizations";
1901
+ referencedColumns: ["id"];
1896
1902
  }
1897
1903
  ];
1898
1904
  };
@@ -1989,11 +1995,11 @@ type Database = {
1989
1995
  };
1990
1996
  Relationships: [
1991
1997
  {
1992
- foreignKeyName: 'acq_social_posts_organization_id_fkey';
1993
- columns: ['organization_id'];
1998
+ foreignKeyName: "acq_social_posts_organization_id_fkey";
1999
+ columns: ["organization_id"];
1994
2000
  isOneToOne: false;
1995
- referencedRelation: 'organizations';
1996
- referencedColumns: ['id'];
2001
+ referencedRelation: "organizations";
2002
+ referencedColumns: ["id"];
1997
2003
  }
1998
2004
  ];
1999
2005
  };
@@ -2048,11 +2054,11 @@ type Database = {
2048
2054
  };
2049
2055
  Relationships: [
2050
2056
  {
2051
- foreignKeyName: 'activities_organization_id_fkey';
2052
- columns: ['organization_id'];
2057
+ foreignKeyName: "activities_organization_id_fkey";
2058
+ columns: ["organization_id"];
2053
2059
  isOneToOne: false;
2054
- referencedRelation: 'organizations';
2055
- referencedColumns: ['id'];
2060
+ referencedRelation: "organizations";
2061
+ referencedColumns: ["id"];
2056
2062
  }
2057
2063
  ];
2058
2064
  };
@@ -2083,11 +2089,11 @@ type Database = {
2083
2089
  };
2084
2090
  Relationships: [
2085
2091
  {
2086
- foreignKeyName: 'api_keys_organization_id_fkey';
2087
- columns: ['organization_id'];
2092
+ foreignKeyName: "api_keys_organization_id_fkey";
2093
+ columns: ["organization_id"];
2088
2094
  isOneToOne: false;
2089
- referencedRelation: 'organizations';
2090
- referencedColumns: ['id'];
2095
+ referencedRelation: "organizations";
2096
+ referencedColumns: ["id"];
2091
2097
  }
2092
2098
  ];
2093
2099
  };
@@ -2166,25 +2172,25 @@ type Database = {
2166
2172
  };
2167
2173
  Relationships: [
2168
2174
  {
2169
- foreignKeyName: 'command_queue_completed_by_fkey';
2170
- columns: ['completed_by'];
2175
+ foreignKeyName: "command_queue_completed_by_fkey";
2176
+ columns: ["completed_by"];
2171
2177
  isOneToOne: false;
2172
- referencedRelation: 'users';
2173
- referencedColumns: ['id'];
2178
+ referencedRelation: "users";
2179
+ referencedColumns: ["id"];
2174
2180
  },
2175
2181
  {
2176
- foreignKeyName: 'command_queue_organization_id_fkey';
2177
- columns: ['organization_id'];
2182
+ foreignKeyName: "command_queue_organization_id_fkey";
2183
+ columns: ["organization_id"];
2178
2184
  isOneToOne: false;
2179
- referencedRelation: 'organizations';
2180
- referencedColumns: ['id'];
2185
+ referencedRelation: "organizations";
2186
+ referencedColumns: ["id"];
2181
2187
  },
2182
2188
  {
2183
- foreignKeyName: 'command_queue_target_execution_id_fkey';
2184
- columns: ['target_execution_id'];
2189
+ foreignKeyName: "command_queue_target_execution_id_fkey";
2190
+ columns: ["target_execution_id"];
2185
2191
  isOneToOne: false;
2186
- referencedRelation: 'execution_logs';
2187
- referencedColumns: ['execution_id'];
2192
+ referencedRelation: "execution_logs";
2193
+ referencedColumns: ["execution_id"];
2188
2194
  }
2189
2195
  ];
2190
2196
  };
@@ -2224,18 +2230,18 @@ type Database = {
2224
2230
  };
2225
2231
  Relationships: [
2226
2232
  {
2227
- foreignKeyName: 'credentials_created_by_fkey';
2228
- columns: ['created_by'];
2233
+ foreignKeyName: "credentials_created_by_fkey";
2234
+ columns: ["created_by"];
2229
2235
  isOneToOne: false;
2230
- referencedRelation: 'users';
2231
- referencedColumns: ['id'];
2236
+ referencedRelation: "users";
2237
+ referencedColumns: ["id"];
2232
2238
  },
2233
2239
  {
2234
- foreignKeyName: 'credentials_organization_id_fkey';
2235
- columns: ['organization_id'];
2240
+ foreignKeyName: "credentials_organization_id_fkey";
2241
+ columns: ["organization_id"];
2236
2242
  isOneToOne: false;
2237
- referencedRelation: 'organizations';
2238
- referencedColumns: ['id'];
2243
+ referencedRelation: "organizations";
2244
+ referencedColumns: ["id"];
2239
2245
  }
2240
2246
  ];
2241
2247
  };
@@ -2281,11 +2287,11 @@ type Database = {
2281
2287
  };
2282
2288
  Relationships: [
2283
2289
  {
2284
- foreignKeyName: 'deployments_organization_id_fkey';
2285
- columns: ['organization_id'];
2290
+ foreignKeyName: "deployments_organization_id_fkey";
2291
+ columns: ["organization_id"];
2286
2292
  isOneToOne: false;
2287
- referencedRelation: 'organizations';
2288
- referencedColumns: ['id'];
2293
+ referencedRelation: "organizations";
2294
+ referencedColumns: ["id"];
2289
2295
  }
2290
2296
  ];
2291
2297
  };
@@ -2340,25 +2346,25 @@ type Database = {
2340
2346
  };
2341
2347
  Relationships: [
2342
2348
  {
2343
- foreignKeyName: 'execution_errors_execution_id_fkey';
2344
- columns: ['execution_id'];
2349
+ foreignKeyName: "execution_errors_execution_id_fkey";
2350
+ columns: ["execution_id"];
2345
2351
  isOneToOne: false;
2346
- referencedRelation: 'execution_logs';
2347
- referencedColumns: ['execution_id'];
2352
+ referencedRelation: "execution_logs";
2353
+ referencedColumns: ["execution_id"];
2348
2354
  },
2349
2355
  {
2350
- foreignKeyName: 'execution_errors_organization_id_fkey';
2351
- columns: ['organization_id'];
2356
+ foreignKeyName: "execution_errors_organization_id_fkey";
2357
+ columns: ["organization_id"];
2352
2358
  isOneToOne: false;
2353
- referencedRelation: 'organizations';
2354
- referencedColumns: ['id'];
2359
+ referencedRelation: "organizations";
2360
+ referencedColumns: ["id"];
2355
2361
  },
2356
2362
  {
2357
- foreignKeyName: 'execution_errors_resolved_by_fkey';
2358
- columns: ['resolved_by'];
2363
+ foreignKeyName: "execution_errors_resolved_by_fkey";
2364
+ columns: ["resolved_by"];
2359
2365
  isOneToOne: false;
2360
- referencedRelation: 'users';
2361
- referencedColumns: ['id'];
2366
+ referencedRelation: "users";
2367
+ referencedColumns: ["id"];
2362
2368
  }
2363
2369
  ];
2364
2370
  };
@@ -2440,32 +2446,32 @@ type Database = {
2440
2446
  };
2441
2447
  Relationships: [
2442
2448
  {
2443
- foreignKeyName: 'execution_history_organization_id_fkey';
2444
- columns: ['organization_id'];
2449
+ foreignKeyName: "execution_history_organization_id_fkey";
2450
+ columns: ["organization_id"];
2445
2451
  isOneToOne: false;
2446
- referencedRelation: 'organizations';
2447
- referencedColumns: ['id'];
2452
+ referencedRelation: "organizations";
2453
+ referencedColumns: ["id"];
2448
2454
  },
2449
2455
  {
2450
- foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2451
- columns: ['origin_execution_id'];
2456
+ foreignKeyName: "execution_logs_origin_execution_id_fkey";
2457
+ columns: ["origin_execution_id"];
2452
2458
  isOneToOne: false;
2453
- referencedRelation: 'execution_logs';
2454
- referencedColumns: ['execution_id'];
2459
+ referencedRelation: "execution_logs";
2460
+ referencedColumns: ["execution_id"];
2455
2461
  },
2456
2462
  {
2457
- foreignKeyName: 'execution_logs_session_id_fkey';
2458
- columns: ['session_id'];
2463
+ foreignKeyName: "execution_logs_session_id_fkey";
2464
+ columns: ["session_id"];
2459
2465
  isOneToOne: false;
2460
- referencedRelation: 'sessions';
2461
- referencedColumns: ['session_id'];
2466
+ referencedRelation: "sessions";
2467
+ referencedColumns: ["session_id"];
2462
2468
  },
2463
2469
  {
2464
- foreignKeyName: 'execution_logs_user_id_fkey';
2465
- columns: ['user_id'];
2470
+ foreignKeyName: "execution_logs_user_id_fkey";
2471
+ columns: ["user_id"];
2466
2472
  isOneToOne: false;
2467
- referencedRelation: 'users';
2468
- referencedColumns: ['id'];
2473
+ referencedRelation: "users";
2474
+ referencedColumns: ["id"];
2469
2475
  }
2470
2476
  ];
2471
2477
  };
@@ -2511,18 +2517,18 @@ type Database = {
2511
2517
  };
2512
2518
  Relationships: [
2513
2519
  {
2514
- foreignKeyName: 'execution_metrics_execution_id_fkey';
2515
- columns: ['execution_id'];
2520
+ foreignKeyName: "execution_metrics_execution_id_fkey";
2521
+ columns: ["execution_id"];
2516
2522
  isOneToOne: true;
2517
- referencedRelation: 'execution_logs';
2518
- referencedColumns: ['execution_id'];
2523
+ referencedRelation: "execution_logs";
2524
+ referencedColumns: ["execution_id"];
2519
2525
  },
2520
2526
  {
2521
- foreignKeyName: 'execution_metrics_organization_id_fkey';
2522
- columns: ['organization_id'];
2527
+ foreignKeyName: "execution_metrics_organization_id_fkey";
2528
+ columns: ["organization_id"];
2523
2529
  isOneToOne: false;
2524
- referencedRelation: 'organizations';
2525
- referencedColumns: ['id'];
2530
+ referencedRelation: "organizations";
2531
+ referencedColumns: ["id"];
2526
2532
  }
2527
2533
  ];
2528
2534
  };
@@ -2565,18 +2571,18 @@ type Database = {
2565
2571
  };
2566
2572
  Relationships: [
2567
2573
  {
2568
- foreignKeyName: 'notifications_organization_id_fkey';
2569
- columns: ['organization_id'];
2574
+ foreignKeyName: "notifications_organization_id_fkey";
2575
+ columns: ["organization_id"];
2570
2576
  isOneToOne: false;
2571
- referencedRelation: 'organizations';
2572
- referencedColumns: ['id'];
2577
+ referencedRelation: "organizations";
2578
+ referencedColumns: ["id"];
2573
2579
  },
2574
2580
  {
2575
- foreignKeyName: 'notifications_user_id_fkey';
2576
- columns: ['user_id'];
2581
+ foreignKeyName: "notifications_user_id_fkey";
2582
+ columns: ["user_id"];
2577
2583
  isOneToOne: false;
2578
- referencedRelation: 'users';
2579
- referencedColumns: ['id'];
2584
+ referencedRelation: "users";
2585
+ referencedColumns: ["id"];
2580
2586
  }
2581
2587
  ];
2582
2588
  };
@@ -2631,18 +2637,18 @@ type Database = {
2631
2637
  };
2632
2638
  Relationships: [
2633
2639
  {
2634
- foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2635
- columns: ['inviter_user_id'];
2640
+ foreignKeyName: "org_invitations_inviter_user_id_fkey";
2641
+ columns: ["inviter_user_id"];
2636
2642
  isOneToOne: false;
2637
- referencedRelation: 'users';
2638
- referencedColumns: ['id'];
2643
+ referencedRelation: "users";
2644
+ referencedColumns: ["id"];
2639
2645
  },
2640
2646
  {
2641
- foreignKeyName: 'org_invitations_organization_id_fkey';
2642
- columns: ['organization_id'];
2647
+ foreignKeyName: "org_invitations_organization_id_fkey";
2648
+ columns: ["organization_id"];
2643
2649
  isOneToOne: false;
2644
- referencedRelation: 'organizations';
2645
- referencedColumns: ['id'];
2650
+ referencedRelation: "organizations";
2651
+ referencedColumns: ["id"];
2646
2652
  }
2647
2653
  ];
2648
2654
  };
@@ -2685,18 +2691,18 @@ type Database = {
2685
2691
  };
2686
2692
  Relationships: [
2687
2693
  {
2688
- foreignKeyName: 'org_memberships_organization_id_fkey';
2689
- columns: ['organization_id'];
2694
+ foreignKeyName: "org_memberships_organization_id_fkey";
2695
+ columns: ["organization_id"];
2690
2696
  isOneToOne: false;
2691
- referencedRelation: 'organizations';
2692
- referencedColumns: ['id'];
2697
+ referencedRelation: "organizations";
2698
+ referencedColumns: ["id"];
2693
2699
  },
2694
2700
  {
2695
- foreignKeyName: 'org_memberships_user_id_fkey';
2696
- columns: ['user_id'];
2701
+ foreignKeyName: "org_memberships_user_id_fkey";
2702
+ columns: ["user_id"];
2697
2703
  isOneToOne: false;
2698
- referencedRelation: 'users';
2699
- referencedColumns: ['id'];
2704
+ referencedRelation: "users";
2705
+ referencedColumns: ["id"];
2700
2706
  }
2701
2707
  ];
2702
2708
  };
@@ -2721,25 +2727,25 @@ type Database = {
2721
2727
  };
2722
2728
  Relationships: [
2723
2729
  {
2724
- foreignKeyName: 'org_rol_assignments_granted_by_fkey';
2725
- columns: ['granted_by'];
2730
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
2731
+ columns: ["granted_by"];
2726
2732
  isOneToOne: false;
2727
- referencedRelation: 'users';
2728
- referencedColumns: ['id'];
2733
+ referencedRelation: "users";
2734
+ referencedColumns: ["id"];
2729
2735
  },
2730
2736
  {
2731
- foreignKeyName: 'org_rol_assignments_membership_id_fkey';
2732
- columns: ['membership_id'];
2737
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
2738
+ columns: ["membership_id"];
2733
2739
  isOneToOne: false;
2734
- referencedRelation: 'org_memberships';
2735
- referencedColumns: ['id'];
2740
+ referencedRelation: "org_memberships";
2741
+ referencedColumns: ["id"];
2736
2742
  },
2737
2743
  {
2738
- foreignKeyName: 'org_rol_assignments_role_id_fkey';
2739
- columns: ['role_id'];
2744
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
2745
+ columns: ["role_id"];
2740
2746
  isOneToOne: false;
2741
- referencedRelation: 'org_rol_definitions';
2742
- referencedColumns: ['id'];
2747
+ referencedRelation: "org_rol_definitions";
2748
+ referencedColumns: ["id"];
2743
2749
  }
2744
2750
  ];
2745
2751
  };
@@ -2776,11 +2782,11 @@ type Database = {
2776
2782
  };
2777
2783
  Relationships: [
2778
2784
  {
2779
- foreignKeyName: 'org_rol_definitions_organization_id_fkey';
2780
- columns: ['organization_id'];
2785
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
2786
+ columns: ["organization_id"];
2781
2787
  isOneToOne: false;
2782
- referencedRelation: 'organizations';
2783
- referencedColumns: ['id'];
2788
+ referencedRelation: "organizations";
2789
+ referencedColumns: ["id"];
2784
2790
  }
2785
2791
  ];
2786
2792
  };
@@ -2802,18 +2808,18 @@ type Database = {
2802
2808
  };
2803
2809
  Relationships: [
2804
2810
  {
2805
- foreignKeyName: 'org_rol_grants_permission_key_fkey';
2806
- columns: ['permission_key'];
2811
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
2812
+ columns: ["permission_key"];
2807
2813
  isOneToOne: false;
2808
- referencedRelation: 'org_rol_permissions';
2809
- referencedColumns: ['key'];
2814
+ referencedRelation: "org_rol_permissions";
2815
+ referencedColumns: ["key"];
2810
2816
  },
2811
2817
  {
2812
- foreignKeyName: 'org_rol_grants_role_id_fkey';
2813
- columns: ['role_id'];
2818
+ foreignKeyName: "org_rol_grants_role_id_fkey";
2819
+ columns: ["role_id"];
2814
2820
  isOneToOne: false;
2815
- referencedRelation: 'org_rol_definitions';
2816
- referencedColumns: ['id'];
2821
+ referencedRelation: "org_rol_definitions";
2822
+ referencedColumns: ["id"];
2817
2823
  }
2818
2824
  ];
2819
2825
  };
@@ -2925,25 +2931,25 @@ type Database = {
2925
2931
  };
2926
2932
  Relationships: [
2927
2933
  {
2928
- foreignKeyName: 'fk_milestones_project';
2929
- columns: ['project_id'];
2934
+ foreignKeyName: "fk_milestones_project";
2935
+ columns: ["project_id"];
2930
2936
  isOneToOne: false;
2931
- referencedRelation: 'prj_projects';
2932
- referencedColumns: ['id'];
2937
+ referencedRelation: "prj_projects";
2938
+ referencedColumns: ["id"];
2933
2939
  },
2934
2940
  {
2935
- foreignKeyName: 'prj_milestones_organization_id_fkey';
2936
- columns: ['organization_id'];
2941
+ foreignKeyName: "prj_milestones_organization_id_fkey";
2942
+ columns: ["organization_id"];
2937
2943
  isOneToOne: false;
2938
- referencedRelation: 'organizations';
2939
- referencedColumns: ['id'];
2944
+ referencedRelation: "organizations";
2945
+ referencedColumns: ["id"];
2940
2946
  },
2941
2947
  {
2942
- foreignKeyName: 'prj_milestones_project_id_fkey';
2943
- columns: ['project_id'];
2948
+ foreignKeyName: "prj_milestones_project_id_fkey";
2949
+ columns: ["project_id"];
2944
2950
  isOneToOne: false;
2945
- referencedRelation: 'prj_projects';
2946
- referencedColumns: ['id'];
2951
+ referencedRelation: "prj_projects";
2952
+ referencedColumns: ["id"];
2947
2953
  }
2948
2954
  ];
2949
2955
  };
@@ -2992,67 +2998,67 @@ type Database = {
2992
2998
  };
2993
2999
  Relationships: [
2994
3000
  {
2995
- foreignKeyName: 'fk_notes_created_by';
2996
- columns: ['created_by'];
3001
+ foreignKeyName: "fk_notes_created_by";
3002
+ columns: ["created_by"];
2997
3003
  isOneToOne: false;
2998
- referencedRelation: 'users';
2999
- referencedColumns: ['id'];
3004
+ referencedRelation: "users";
3005
+ referencedColumns: ["id"];
3000
3006
  },
3001
3007
  {
3002
- foreignKeyName: 'fk_notes_milestone';
3003
- columns: ['milestone_id'];
3008
+ foreignKeyName: "fk_notes_milestone";
3009
+ columns: ["milestone_id"];
3004
3010
  isOneToOne: false;
3005
- referencedRelation: 'prj_milestones';
3006
- referencedColumns: ['id'];
3011
+ referencedRelation: "prj_milestones";
3012
+ referencedColumns: ["id"];
3007
3013
  },
3008
3014
  {
3009
- foreignKeyName: 'fk_notes_project';
3010
- columns: ['project_id'];
3015
+ foreignKeyName: "fk_notes_project";
3016
+ columns: ["project_id"];
3011
3017
  isOneToOne: false;
3012
- referencedRelation: 'prj_projects';
3013
- referencedColumns: ['id'];
3018
+ referencedRelation: "prj_projects";
3019
+ referencedColumns: ["id"];
3014
3020
  },
3015
3021
  {
3016
- foreignKeyName: 'fk_notes_task';
3017
- columns: ['task_id'];
3022
+ foreignKeyName: "fk_notes_task";
3023
+ columns: ["task_id"];
3018
3024
  isOneToOne: false;
3019
- referencedRelation: 'prj_tasks';
3020
- referencedColumns: ['id'];
3025
+ referencedRelation: "prj_tasks";
3026
+ referencedColumns: ["id"];
3021
3027
  },
3022
3028
  {
3023
- foreignKeyName: 'prj_notes_created_by_fkey';
3024
- columns: ['created_by'];
3029
+ foreignKeyName: "prj_notes_created_by_fkey";
3030
+ columns: ["created_by"];
3025
3031
  isOneToOne: false;
3026
- referencedRelation: 'users';
3027
- referencedColumns: ['id'];
3032
+ referencedRelation: "users";
3033
+ referencedColumns: ["id"];
3028
3034
  },
3029
3035
  {
3030
- foreignKeyName: 'prj_notes_milestone_id_fkey';
3031
- columns: ['milestone_id'];
3036
+ foreignKeyName: "prj_notes_milestone_id_fkey";
3037
+ columns: ["milestone_id"];
3032
3038
  isOneToOne: false;
3033
- referencedRelation: 'prj_milestones';
3034
- referencedColumns: ['id'];
3039
+ referencedRelation: "prj_milestones";
3040
+ referencedColumns: ["id"];
3035
3041
  },
3036
3042
  {
3037
- foreignKeyName: 'prj_notes_organization_id_fkey';
3038
- columns: ['organization_id'];
3043
+ foreignKeyName: "prj_notes_organization_id_fkey";
3044
+ columns: ["organization_id"];
3039
3045
  isOneToOne: false;
3040
- referencedRelation: 'organizations';
3041
- referencedColumns: ['id'];
3046
+ referencedRelation: "organizations";
3047
+ referencedColumns: ["id"];
3042
3048
  },
3043
3049
  {
3044
- foreignKeyName: 'prj_notes_project_id_fkey';
3045
- columns: ['project_id'];
3050
+ foreignKeyName: "prj_notes_project_id_fkey";
3051
+ columns: ["project_id"];
3046
3052
  isOneToOne: false;
3047
- referencedRelation: 'prj_projects';
3048
- referencedColumns: ['id'];
3053
+ referencedRelation: "prj_projects";
3054
+ referencedColumns: ["id"];
3049
3055
  },
3050
3056
  {
3051
- foreignKeyName: 'prj_notes_task_id_fkey';
3052
- columns: ['task_id'];
3057
+ foreignKeyName: "prj_notes_task_id_fkey";
3058
+ columns: ["task_id"];
3053
3059
  isOneToOne: false;
3054
- referencedRelation: 'prj_tasks';
3055
- referencedColumns: ['id'];
3060
+ referencedRelation: "prj_tasks";
3061
+ referencedColumns: ["id"];
3056
3062
  }
3057
3063
  ];
3058
3064
  };
@@ -3110,39 +3116,39 @@ type Database = {
3110
3116
  };
3111
3117
  Relationships: [
3112
3118
  {
3113
- foreignKeyName: 'fk_projects_company';
3114
- columns: ['client_company_id'];
3119
+ foreignKeyName: "fk_projects_company";
3120
+ columns: ["client_company_id"];
3115
3121
  isOneToOne: false;
3116
- referencedRelation: 'acq_companies';
3117
- referencedColumns: ['id'];
3122
+ referencedRelation: "acq_companies";
3123
+ referencedColumns: ["id"];
3118
3124
  },
3119
3125
  {
3120
- foreignKeyName: 'fk_projects_deal';
3121
- columns: ['deal_id'];
3126
+ foreignKeyName: "fk_projects_deal";
3127
+ columns: ["deal_id"];
3122
3128
  isOneToOne: false;
3123
- referencedRelation: 'acq_deals';
3124
- referencedColumns: ['id'];
3129
+ referencedRelation: "acq_deals";
3130
+ referencedColumns: ["id"];
3125
3131
  },
3126
3132
  {
3127
- foreignKeyName: 'prj_projects_client_company_id_fkey';
3128
- columns: ['client_company_id'];
3133
+ foreignKeyName: "prj_projects_client_company_id_fkey";
3134
+ columns: ["client_company_id"];
3129
3135
  isOneToOne: false;
3130
- referencedRelation: 'acq_companies';
3131
- referencedColumns: ['id'];
3136
+ referencedRelation: "acq_companies";
3137
+ referencedColumns: ["id"];
3132
3138
  },
3133
3139
  {
3134
- foreignKeyName: 'prj_projects_deal_id_fkey';
3135
- columns: ['deal_id'];
3140
+ foreignKeyName: "prj_projects_deal_id_fkey";
3141
+ columns: ["deal_id"];
3136
3142
  isOneToOne: false;
3137
- referencedRelation: 'acq_deals';
3138
- referencedColumns: ['id'];
3143
+ referencedRelation: "acq_deals";
3144
+ referencedColumns: ["id"];
3139
3145
  },
3140
3146
  {
3141
- foreignKeyName: 'prj_projects_organization_id_fkey';
3142
- columns: ['organization_id'];
3147
+ foreignKeyName: "prj_projects_organization_id_fkey";
3148
+ columns: ["organization_id"];
3143
3149
  isOneToOne: false;
3144
- referencedRelation: 'organizations';
3145
- referencedColumns: ['id'];
3150
+ referencedRelation: "organizations";
3151
+ referencedColumns: ["id"];
3146
3152
  }
3147
3153
  ];
3148
3154
  };
@@ -3206,53 +3212,53 @@ type Database = {
3206
3212
  };
3207
3213
  Relationships: [
3208
3214
  {
3209
- foreignKeyName: 'fk_tasks_milestone';
3210
- columns: ['milestone_id'];
3215
+ foreignKeyName: "fk_tasks_milestone";
3216
+ columns: ["milestone_id"];
3211
3217
  isOneToOne: false;
3212
- referencedRelation: 'prj_milestones';
3213
- referencedColumns: ['id'];
3218
+ referencedRelation: "prj_milestones";
3219
+ referencedColumns: ["id"];
3214
3220
  },
3215
3221
  {
3216
- foreignKeyName: 'fk_tasks_parent';
3217
- columns: ['parent_task_id'];
3222
+ foreignKeyName: "fk_tasks_parent";
3223
+ columns: ["parent_task_id"];
3218
3224
  isOneToOne: false;
3219
- referencedRelation: 'prj_tasks';
3220
- referencedColumns: ['id'];
3225
+ referencedRelation: "prj_tasks";
3226
+ referencedColumns: ["id"];
3221
3227
  },
3222
3228
  {
3223
- foreignKeyName: 'fk_tasks_project';
3224
- columns: ['project_id'];
3229
+ foreignKeyName: "fk_tasks_project";
3230
+ columns: ["project_id"];
3225
3231
  isOneToOne: false;
3226
- referencedRelation: 'prj_projects';
3227
- referencedColumns: ['id'];
3232
+ referencedRelation: "prj_projects";
3233
+ referencedColumns: ["id"];
3228
3234
  },
3229
3235
  {
3230
- foreignKeyName: 'prj_tasks_milestone_id_fkey';
3231
- columns: ['milestone_id'];
3236
+ foreignKeyName: "prj_tasks_milestone_id_fkey";
3237
+ columns: ["milestone_id"];
3232
3238
  isOneToOne: false;
3233
- referencedRelation: 'prj_milestones';
3234
- referencedColumns: ['id'];
3239
+ referencedRelation: "prj_milestones";
3240
+ referencedColumns: ["id"];
3235
3241
  },
3236
3242
  {
3237
- foreignKeyName: 'prj_tasks_organization_id_fkey';
3238
- columns: ['organization_id'];
3243
+ foreignKeyName: "prj_tasks_organization_id_fkey";
3244
+ columns: ["organization_id"];
3239
3245
  isOneToOne: false;
3240
- referencedRelation: 'organizations';
3241
- referencedColumns: ['id'];
3246
+ referencedRelation: "organizations";
3247
+ referencedColumns: ["id"];
3242
3248
  },
3243
3249
  {
3244
- foreignKeyName: 'prj_tasks_parent_task_id_fkey';
3245
- columns: ['parent_task_id'];
3250
+ foreignKeyName: "prj_tasks_parent_task_id_fkey";
3251
+ columns: ["parent_task_id"];
3246
3252
  isOneToOne: false;
3247
- referencedRelation: 'prj_tasks';
3248
- referencedColumns: ['id'];
3253
+ referencedRelation: "prj_tasks";
3254
+ referencedColumns: ["id"];
3249
3255
  },
3250
3256
  {
3251
- foreignKeyName: 'prj_tasks_project_id_fkey';
3252
- columns: ['project_id'];
3257
+ foreignKeyName: "prj_tasks_project_id_fkey";
3258
+ columns: ["project_id"];
3253
3259
  isOneToOne: false;
3254
- referencedRelation: 'prj_projects';
3255
- referencedColumns: ['id'];
3260
+ referencedRelation: "prj_projects";
3261
+ referencedColumns: ["id"];
3256
3262
  }
3257
3263
  ];
3258
3264
  };
@@ -3322,25 +3328,25 @@ type Database = {
3322
3328
  };
3323
3329
  Relationships: [
3324
3330
  {
3325
- foreignKeyName: 'reported_requests_organization_id_fkey';
3326
- columns: ['organization_id'];
3331
+ foreignKeyName: "reported_requests_organization_id_fkey";
3332
+ columns: ["organization_id"];
3327
3333
  isOneToOne: false;
3328
- referencedRelation: 'organizations';
3329
- referencedColumns: ['id'];
3334
+ referencedRelation: "organizations";
3335
+ referencedColumns: ["id"];
3330
3336
  },
3331
3337
  {
3332
- foreignKeyName: 'reported_requests_project_id_fkey';
3333
- columns: ['project_id'];
3338
+ foreignKeyName: "reported_requests_project_id_fkey";
3339
+ columns: ["project_id"];
3334
3340
  isOneToOne: false;
3335
- referencedRelation: 'prj_projects';
3336
- referencedColumns: ['id'];
3341
+ referencedRelation: "prj_projects";
3342
+ referencedColumns: ["id"];
3337
3343
  },
3338
3344
  {
3339
- foreignKeyName: 'reported_requests_task_id_fkey';
3340
- columns: ['task_id'];
3345
+ foreignKeyName: "reported_requests_task_id_fkey";
3346
+ columns: ["task_id"];
3341
3347
  isOneToOne: false;
3342
- referencedRelation: 'prj_tasks';
3343
- referencedColumns: ['id'];
3348
+ referencedRelation: "prj_tasks";
3349
+ referencedColumns: ["id"];
3344
3350
  }
3345
3351
  ];
3346
3352
  };
@@ -3380,11 +3386,11 @@ type Database = {
3380
3386
  };
3381
3387
  Relationships: [
3382
3388
  {
3383
- foreignKeyName: 'session_messages_session_id_fkey';
3384
- columns: ['session_id'];
3389
+ foreignKeyName: "session_messages_session_id_fkey";
3390
+ columns: ["session_id"];
3385
3391
  isOneToOne: false;
3386
- referencedRelation: 'sessions';
3387
- referencedColumns: ['session_id'];
3392
+ referencedRelation: "sessions";
3393
+ referencedColumns: ["session_id"];
3388
3394
  }
3389
3395
  ];
3390
3396
  };
@@ -3439,18 +3445,18 @@ type Database = {
3439
3445
  };
3440
3446
  Relationships: [
3441
3447
  {
3442
- foreignKeyName: 'fk_organization';
3443
- columns: ['organization_id'];
3448
+ foreignKeyName: "fk_organization";
3449
+ columns: ["organization_id"];
3444
3450
  isOneToOne: false;
3445
- referencedRelation: 'organizations';
3446
- referencedColumns: ['id'];
3451
+ referencedRelation: "organizations";
3452
+ referencedColumns: ["id"];
3447
3453
  },
3448
3454
  {
3449
- foreignKeyName: 'fk_user';
3450
- columns: ['user_id'];
3455
+ foreignKeyName: "fk_user";
3456
+ columns: ["user_id"];
3451
3457
  isOneToOne: false;
3452
- referencedRelation: 'users';
3453
- referencedColumns: ['id'];
3458
+ referencedRelation: "users";
3459
+ referencedColumns: ["id"];
3454
3460
  }
3455
3461
  ];
3456
3462
  };
@@ -3526,11 +3532,11 @@ type Database = {
3526
3532
  };
3527
3533
  Relationships: [
3528
3534
  {
3529
- foreignKeyName: 'task_schedules_organization_id_fkey';
3530
- columns: ['organization_id'];
3535
+ foreignKeyName: "task_schedules_organization_id_fkey";
3536
+ columns: ["organization_id"];
3531
3537
  isOneToOne: false;
3532
- referencedRelation: 'organizations';
3533
- referencedColumns: ['id'];
3538
+ referencedRelation: "organizations";
3539
+ referencedColumns: ["id"];
3534
3540
  }
3535
3541
  ];
3536
3542
  };
@@ -3585,11 +3591,11 @@ type Database = {
3585
3591
  };
3586
3592
  Relationships: [
3587
3593
  {
3588
- foreignKeyName: 'user_profiles_last_visited_org_fkey';
3589
- columns: ['last_visited_org'];
3594
+ foreignKeyName: "user_profiles_last_visited_org_fkey";
3595
+ columns: ["last_visited_org"];
3590
3596
  isOneToOne: false;
3591
- referencedRelation: 'organizations';
3592
- referencedColumns: ['id'];
3597
+ referencedRelation: "organizations";
3598
+ referencedColumns: ["id"];
3593
3599
  }
3594
3600
  ];
3595
3601
  };
@@ -3638,11 +3644,11 @@ type Database = {
3638
3644
  };
3639
3645
  Relationships: [
3640
3646
  {
3641
- foreignKeyName: 'webhook_endpoints_organization_id_fkey';
3642
- columns: ['organization_id'];
3647
+ foreignKeyName: "webhook_endpoints_organization_id_fkey";
3648
+ columns: ["organization_id"];
3643
3649
  isOneToOne: false;
3644
- referencedRelation: 'organizations';
3645
- referencedColumns: ['id'];
3650
+ referencedRelation: "organizations";
3651
+ referencedColumns: ["id"];
3646
3652
  }
3647
3653
  ];
3648
3654
  };
@@ -3930,6 +3936,30 @@ interface PipelineStage {
3930
3936
  interface PipelineConfig {
3931
3937
  stages: PipelineStage[];
3932
3938
  }
3939
+ type BuildPlanSnapshotPrimaryEntity = 'company' | 'contact';
3940
+ type BuildPlanSnapshotOutput = 'company' | 'contact' | 'export';
3941
+ type BuildPlanSnapshotDependencyMode = 'per-record-eligibility';
3942
+ interface BuildPlanSnapshotStep {
3943
+ id: string;
3944
+ label: string;
3945
+ description?: string;
3946
+ primaryEntity: BuildPlanSnapshotPrimaryEntity;
3947
+ outputs: BuildPlanSnapshotOutput[];
3948
+ stageKey: string;
3949
+ dependsOn?: string[];
3950
+ dependencyMode: BuildPlanSnapshotDependencyMode;
3951
+ capabilityKey: string;
3952
+ defaultBatchSize: number;
3953
+ maxBatchSize: number;
3954
+ }
3955
+ interface BuildPlanSnapshot {
3956
+ templateId: string;
3957
+ templateLabel: string;
3958
+ steps: BuildPlanSnapshotStep[];
3959
+ }
3960
+ interface AcqListMetadata extends Record<string, unknown> {
3961
+ buildPlanSnapshot?: BuildPlanSnapshot;
3962
+ }
3933
3963
  interface AcqList {
3934
3964
  id: string;
3935
3965
  organizationId: string;
@@ -3941,7 +3971,7 @@ interface AcqList {
3941
3971
  scrapingConfig: ScrapingConfig;
3942
3972
  icp: IcpRubric;
3943
3973
  pipelineConfig: PipelineConfig;
3944
- metadata: Record<string, unknown>;
3974
+ metadata: AcqListMetadata;
3945
3975
  launchedAt: Date | null;
3946
3976
  completedAt: Date | null;
3947
3977
  createdAt: Date;
@@ -4009,6 +4039,16 @@ interface AcqContact {
4009
4039
  createdAt: Date;
4010
4040
  updatedAt: Date;
4011
4041
  }
4042
+ type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
4043
+ interface DealPriority {
4044
+ bucketKey: DealPriorityBucketKey;
4045
+ rank: number;
4046
+ label: string;
4047
+ color: string;
4048
+ reason: string;
4049
+ latestActivityAt: string | null;
4050
+ nextActionAt: string | null;
4051
+ }
4012
4052
  interface DealContact {
4013
4053
  id: string;
4014
4054
  first_name: string | null;
@@ -4032,6 +4072,9 @@ interface DealContact {
4032
4072
  }
4033
4073
  /** Deal list item with joined contact and company data */
4034
4074
  interface DealListItem extends AcqDealRow {
4075
+ priority: DealPriority;
4076
+ ownership: 'us' | 'them' | null;
4077
+ nextAction: string | null;
4035
4078
  contact: DealContact | null;
4036
4079
  }
4037
4080
  type DealDetail = DealListItem;
@@ -4125,6 +4168,21 @@ declare const DealSchemas: {
4125
4168
  ExecuteActionRequest: z.ZodObject<{
4126
4169
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4127
4170
  }, z.core.$strict>;
4171
+ DealPriority: z.ZodObject<{
4172
+ bucketKey: z.ZodEnum<{
4173
+ needs_response: "needs_response";
4174
+ follow_up_due: "follow_up_due";
4175
+ waiting: "waiting";
4176
+ stale: "stale";
4177
+ closed_low: "closed_low";
4178
+ }>;
4179
+ rank: z.ZodNumber;
4180
+ label: z.ZodString;
4181
+ color: z.ZodString;
4182
+ reason: z.ZodString;
4183
+ latestActivityAt: z.ZodNullable<z.ZodString>;
4184
+ nextActionAt: z.ZodNullable<z.ZodString>;
4185
+ }, z.core.$strip>;
4128
4186
  DealListResponse: z.ZodObject<{
4129
4187
  data: z.ZodArray<z.ZodObject<{
4130
4188
  id: z.ZodString;
@@ -4150,6 +4208,26 @@ declare const DealSchemas: {
4150
4208
  closed_lost_reason: z.ZodNullable<z.ZodString>;
4151
4209
  created_at: z.ZodString;
4152
4210
  updated_at: z.ZodString;
4211
+ priority: z.ZodObject<{
4212
+ bucketKey: z.ZodEnum<{
4213
+ needs_response: "needs_response";
4214
+ follow_up_due: "follow_up_due";
4215
+ waiting: "waiting";
4216
+ stale: "stale";
4217
+ closed_low: "closed_low";
4218
+ }>;
4219
+ rank: z.ZodNumber;
4220
+ label: z.ZodString;
4221
+ color: z.ZodString;
4222
+ reason: z.ZodString;
4223
+ latestActivityAt: z.ZodNullable<z.ZodString>;
4224
+ nextActionAt: z.ZodNullable<z.ZodString>;
4225
+ }, z.core.$strip>;
4226
+ ownership: z.ZodNullable<z.ZodEnum<{
4227
+ us: "us";
4228
+ them: "them";
4229
+ }>>;
4230
+ nextAction: z.ZodNullable<z.ZodString>;
4153
4231
  contact: z.ZodNullable<z.ZodObject<{
4154
4232
  id: z.ZodString;
4155
4233
  first_name: z.ZodNullable<z.ZodString>;
@@ -4208,6 +4286,18 @@ declare const DealSchemas: {
4208
4286
  companyName: z.ZodNullable<z.ZodString>;
4209
4287
  displayLabel: z.ZodString;
4210
4288
  }, z.core.$strip>>;
4289
+ ConversationMessage: z.ZodObject<{
4290
+ id: z.ZodString;
4291
+ direction: z.ZodEnum<{
4292
+ inbound: "inbound";
4293
+ outbound: "outbound";
4294
+ }>;
4295
+ fromEmail: z.ZodString;
4296
+ toEmail: z.ZodString;
4297
+ subject: z.ZodNullable<z.ZodString>;
4298
+ body: z.ZodString;
4299
+ sentAt: z.ZodNullable<z.ZodString>;
4300
+ }, z.core.$strip>;
4211
4301
  DealDetailResponse: z.ZodObject<{
4212
4302
  id: z.ZodString;
4213
4303
  organization_id: z.ZodString;
@@ -4232,6 +4322,26 @@ declare const DealSchemas: {
4232
4322
  closed_lost_reason: z.ZodNullable<z.ZodString>;
4233
4323
  created_at: z.ZodString;
4234
4324
  updated_at: z.ZodString;
4325
+ priority: z.ZodObject<{
4326
+ bucketKey: z.ZodEnum<{
4327
+ needs_response: "needs_response";
4328
+ follow_up_due: "follow_up_due";
4329
+ waiting: "waiting";
4330
+ stale: "stale";
4331
+ closed_low: "closed_low";
4332
+ }>;
4333
+ rank: z.ZodNumber;
4334
+ label: z.ZodString;
4335
+ color: z.ZodString;
4336
+ reason: z.ZodString;
4337
+ latestActivityAt: z.ZodNullable<z.ZodString>;
4338
+ nextActionAt: z.ZodNullable<z.ZodString>;
4339
+ }, z.core.$strip>;
4340
+ ownership: z.ZodNullable<z.ZodEnum<{
4341
+ us: "us";
4342
+ them: "them";
4343
+ }>>;
4344
+ nextAction: z.ZodNullable<z.ZodString>;
4235
4345
  contact: z.ZodNullable<z.ZodObject<{
4236
4346
  id: z.ZodString;
4237
4347
  first_name: z.ZodNullable<z.ZodString>;
@@ -4253,6 +4363,20 @@ declare const DealSchemas: {
4253
4363
  num_employees: z.ZodNullable<z.ZodNumber>;
4254
4364
  }, z.core.$strip>>;
4255
4365
  }, z.core.$strip>>;
4366
+ conversation: z.ZodObject<{
4367
+ messages: z.ZodArray<z.ZodObject<{
4368
+ id: z.ZodString;
4369
+ direction: z.ZodEnum<{
4370
+ inbound: "inbound";
4371
+ outbound: "outbound";
4372
+ }>;
4373
+ fromEmail: z.ZodString;
4374
+ toEmail: z.ZodString;
4375
+ subject: z.ZodNullable<z.ZodString>;
4376
+ body: z.ZodString;
4377
+ sentAt: z.ZodNullable<z.ZodString>;
4378
+ }, z.core.$strip>>;
4379
+ }, z.core.$strip>;
4256
4380
  }, z.core.$strip>;
4257
4381
  DealNoteResponse: z.ZodObject<{
4258
4382
  id: z.ZodString;
@@ -4347,6 +4471,7 @@ interface CreateListParams {
4347
4471
  batchIds?: string[];
4348
4472
  instantlyCampaignId?: string;
4349
4473
  status?: ListStatus;
4474
+ buildTemplateId?: string;
4350
4475
  metadata?: Record<string, unknown>;
4351
4476
  scrapingConfig?: ScrapingConfig;
4352
4477
  icp?: IcpRubric;
@@ -4461,6 +4586,10 @@ interface UpsertDealParams {
4461
4586
  discoveryData?: unknown;
4462
4587
  /** Optional proposal data JSONB to set on upsert */
4463
4588
  proposalData?: unknown;
4589
+ /** Instantly email UUID used to hydrate the reply thread */
4590
+ instantlyThreadUuid?: string;
4591
+ /** Instantly sender account for direction detection */
4592
+ instantlyEmailAccount?: string;
4464
4593
  }
4465
4594
  interface UpdateDiscoveryDataParams {
4466
4595
  organizationId: string;
@@ -4496,6 +4625,12 @@ interface UpdateFeesParams {
4496
4625
  initialFee?: number;
4497
4626
  monthlyFee?: number;
4498
4627
  }
4628
+ interface CacheInstantlyThreadIdsParams {
4629
+ organizationId: string;
4630
+ dealId: string;
4631
+ instantlyThreadUuid: string;
4632
+ instantlyEmailAccount: string;
4633
+ }
4499
4634
  interface TransitionItemParams {
4500
4635
  organizationId: string;
4501
4636
  dealId: string;
@@ -7560,6 +7695,10 @@ type LeadToolMap = {
7560
7695
  params: Omit<UpdateFeesParams, 'organizationId'>;
7561
7696
  result: void;
7562
7697
  };
7698
+ cacheInstantlyThreadIds: {
7699
+ params: Omit<CacheInstantlyThreadIdsParams, 'organizationId'>;
7700
+ result: void;
7701
+ };
7563
7702
  transitionItem: {
7564
7703
  params: Omit<TransitionItemParams, 'organizationId'>;
7565
7704
  result: void;