@elevasis/ui 2.74.0 → 2.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +277 -249
  3. package/dist/app/index.js +12 -11
  4. package/dist/auth/index.js +6 -7
  5. package/dist/charts/index.js +6 -7
  6. package/dist/{chunk-GO4XJ5D4.js → chunk-2GIHWU5O.js} +4 -3
  7. package/dist/chunk-2Y6AKWGU.js +42 -0
  8. package/dist/chunk-3QYRZSHP.js +854 -0
  9. package/dist/{chunk-CRA7WQZH.js → chunk-3RK2NNJX.js} +1 -1
  10. package/dist/{chunk-R6NMRXNO.js → chunk-4WLAVUPS.js} +1 -1
  11. package/dist/{chunk-GPQQGQGT.js → chunk-5R4I2PAN.js} +9 -43
  12. package/dist/{chunk-R5UGIFYU.js → chunk-5ZK7K7YP.js} +25 -1
  13. package/dist/chunk-6B4ZPBQJ.js +7 -0
  14. package/dist/{chunk-ARAFQBNI.js → chunk-73G3I5HJ.js} +160 -160
  15. package/dist/{chunk-ZWI62BQ6.js → chunk-BFLYDVEN.js} +32 -42
  16. package/dist/{chunk-W2QRBQQA.js → chunk-BG6PWDJ3.js} +381 -381
  17. package/dist/{chunk-7ARBBELS.js → chunk-BV2RNLPP.js} +1 -1
  18. package/dist/{chunk-FA7LMNQO.js → chunk-CTT4RDXE.js} +150 -151
  19. package/dist/chunk-E2LJ3FRA.js +237 -0
  20. package/dist/{chunk-E6YGA5WH.js → chunk-EFQLXRYT.js} +1 -2
  21. package/dist/{chunk-FZSG6M6W.js → chunk-EVNLJHDD.js} +3 -3
  22. package/dist/{chunk-ZYNVCWDZ.js → chunk-GDQQX5SL.js} +4 -42
  23. package/dist/{chunk-DCQKTDIG.js → chunk-GFSOQH3N.js} +1 -1
  24. package/dist/{chunk-3LOKYZJC.js → chunk-H5AEYSVX.js} +164 -3
  25. package/dist/{chunk-ZFISGKYW.js → chunk-IIEZXXDD.js} +1 -1
  26. package/dist/{chunk-3QHX4ZKV.js → chunk-INCEZAM3.js} +1 -1
  27. package/dist/{chunk-O32UQ26A.js → chunk-JZQNUQE4.js} +1 -1
  28. package/dist/{chunk-6JN2TLV2.js → chunk-K55TU6CC.js} +2023 -1700
  29. package/dist/chunk-KB5CAN5D.js +33 -0
  30. package/dist/{chunk-2MRRDF32.js → chunk-KMA4FOSV.js} +5682 -5675
  31. package/dist/{chunk-HYQOGRWG.js → chunk-KXNRTJAE.js} +1 -1
  32. package/dist/{chunk-7RJ7P6S6.js → chunk-MGAELVTZ.js} +12 -12
  33. package/dist/chunk-MKH2KOAO.js +39 -0
  34. package/dist/{chunk-4MXNHJTA.js → chunk-NAPXMYFW.js} +939 -1570
  35. package/dist/{chunk-CQPULKKL.js → chunk-OGG3QJYW.js} +14 -5
  36. package/dist/{chunk-4M2BSHVT.js → chunk-P6HHXMLJ.js} +1 -1
  37. package/dist/{chunk-WZU3MCKI.js → chunk-QAILYRC2.js} +1 -1
  38. package/dist/{chunk-RBGVNPA6.js → chunk-RXZ3XDBM.js} +1 -1
  39. package/dist/{chunk-BA3AZJUR.js → chunk-SPW6UA6B.js} +1 -1
  40. package/dist/{chunk-RFNJ2PTO.js → chunk-SVZR4GYA.js} +1 -1
  41. package/dist/{chunk-5A6KCFS5.js → chunk-UEY4AB3R.js} +789 -66
  42. package/dist/{chunk-LN4UW6S4.js → chunk-UL6MPMKY.js} +1 -1
  43. package/dist/{chunk-ZFA56VSR.js → chunk-WELN7DDV.js} +2 -2
  44. package/dist/{chunk-43LC6XAX.js → chunk-WJN2VVVJ.js} +1 -1
  45. package/dist/{chunk-BRTGCFBH.js → chunk-XODQUPFW.js} +11 -11
  46. package/dist/components/index.d.ts +181 -34
  47. package/dist/components/index.js +2249 -1804
  48. package/dist/components/navigation/index.js +7 -8
  49. package/dist/features/auth/index.d.ts +35 -3716
  50. package/dist/features/auth/index.js +9 -10
  51. package/dist/features/clients/index.js +18 -12
  52. package/dist/features/content/index.js +34 -31
  53. package/dist/features/crm/index.css +59 -59
  54. package/dist/features/crm/index.d.ts +18 -1
  55. package/dist/features/crm/index.js +13 -11
  56. package/dist/features/dashboard/index.css +59 -59
  57. package/dist/features/dashboard/index.js +8 -9
  58. package/dist/features/delivery/index.d.ts +3 -0
  59. package/dist/features/delivery/index.js +21 -20
  60. package/dist/features/knowledge/index.js +6 -7
  61. package/dist/features/lead-gen/index.css +59 -59
  62. package/dist/features/lead-gen/index.d.ts +3903 -2
  63. package/dist/features/lead-gen/index.js +15 -13
  64. package/dist/features/monitoring/index.js +10 -11
  65. package/dist/features/monitoring/requests/index.css +59 -59
  66. package/dist/features/monitoring/requests/index.js +8 -9
  67. package/dist/features/notes/index.js +4 -4
  68. package/dist/features/operations/index.css +59 -59
  69. package/dist/features/operations/index.js +13 -15
  70. package/dist/features/seo/index.css +659 -0
  71. package/dist/features/seo/index.d.ts +3962 -1
  72. package/dist/features/seo/index.js +31 -2
  73. package/dist/features/settings/index.css +59 -59
  74. package/dist/features/settings/index.d.ts +87 -3745
  75. package/dist/features/settings/index.js +10 -12
  76. package/dist/hooks/access/index.js +6 -7
  77. package/dist/hooks/delivery/index.css +59 -59
  78. package/dist/hooks/delivery/index.d.ts +13 -4
  79. package/dist/hooks/delivery/index.js +3 -3
  80. package/dist/hooks/published.d.ts +69 -27
  81. package/dist/hooks/published.js +19 -19
  82. package/dist/initialization/index.d.ts +35 -3716
  83. package/dist/knowledge/index.js +11 -11
  84. package/dist/layout/index.d.ts +55 -2
  85. package/dist/layout/index.js +10 -10
  86. package/dist/organization/index.css +59 -59
  87. package/dist/profile/index.d.ts +64 -3716
  88. package/dist/provider/index.d.ts +3 -0
  89. package/dist/provider/index.js +6 -7
  90. package/dist/provider/published.d.ts +3 -0
  91. package/dist/provider/published.js +6 -7
  92. package/dist/test-utils/index.js +3 -3
  93. package/dist/theme/index.js +3 -3
  94. package/dist/theme/presets/index.js +1 -1
  95. package/dist/types/index.d.ts +312 -251
  96. package/dist/utils/index.d.ts +1 -1
  97. package/dist/utils/index.js +1 -1
  98. package/package.json +9 -9
  99. package/src/hooks/README.md +22 -23
  100. package/dist/chunk-6ZAP3FOA.js +0 -93
  101. package/dist/chunk-AH52XQB7.js +0 -1
  102. package/dist/chunk-GDOR57D7.js +0 -165
  103. package/dist/chunk-MISHPEJX.js +0 -244
  104. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -879
  105. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +0 -2
@@ -772,9 +772,9 @@ interface AgentIterationData {
772
772
  status: 'running' | 'completed' | 'failed' | 'warning';
773
773
  }
774
774
 
775
- type Json = string | number | boolean | null | {
776
- [key: string]: Json | undefined;
777
- } | Json[];
775
+ type Json$1 = string | number | boolean | null | {
776
+ [key: string]: Json$1 | undefined;
777
+ } | Json$1[];
778
778
  type Database = {
779
779
  public: {
780
780
  Tables: {
@@ -786,7 +786,7 @@ type Database = {
786
786
  client_id: string | null;
787
787
  created_at: string;
788
788
  domain: string | null;
789
- enrichment_data: Json | null;
789
+ enrichment_data: Json$1 | null;
790
790
  filter_reason: string | null;
791
791
  founded_year: number | null;
792
792
  id: string;
@@ -796,10 +796,10 @@ type Database = {
796
796
  name: string;
797
797
  num_employees: number | null;
798
798
  organization_id: string;
799
- processing_state: Json;
799
+ processing_state: Json$1;
800
800
  qualification_rubric_key: string | null;
801
801
  qualification_score: number | null;
802
- qualification_signals: Json | null;
802
+ qualification_signals: Json$1 | null;
803
803
  segment: string | null;
804
804
  source: string | null;
805
805
  status: string;
@@ -813,7 +813,7 @@ type Database = {
813
813
  client_id?: string | null;
814
814
  created_at?: string;
815
815
  domain?: string | null;
816
- enrichment_data?: Json | null;
816
+ enrichment_data?: Json$1 | null;
817
817
  filter_reason?: string | null;
818
818
  founded_year?: number | null;
819
819
  id?: string;
@@ -823,10 +823,10 @@ type Database = {
823
823
  name: string;
824
824
  num_employees?: number | null;
825
825
  organization_id: string;
826
- processing_state?: Json;
826
+ processing_state?: Json$1;
827
827
  qualification_rubric_key?: string | null;
828
828
  qualification_score?: number | null;
829
- qualification_signals?: Json | null;
829
+ qualification_signals?: Json$1 | null;
830
830
  segment?: string | null;
831
831
  source?: string | null;
832
832
  status?: string;
@@ -840,7 +840,7 @@ type Database = {
840
840
  client_id?: string | null;
841
841
  created_at?: string;
842
842
  domain?: string | null;
843
- enrichment_data?: Json | null;
843
+ enrichment_data?: Json$1 | null;
844
844
  filter_reason?: string | null;
845
845
  founded_year?: number | null;
846
846
  id?: string;
@@ -850,10 +850,10 @@ type Database = {
850
850
  name?: string;
851
851
  num_employees?: number | null;
852
852
  organization_id?: string;
853
- processing_state?: Json;
853
+ processing_state?: Json$1;
854
854
  qualification_rubric_key?: string | null;
855
855
  qualification_score?: number | null;
856
- qualification_signals?: Json | null;
856
+ qualification_signals?: Json$1 | null;
857
857
  segment?: string | null;
858
858
  source?: string | null;
859
859
  status?: string;
@@ -887,7 +887,7 @@ type Database = {
887
887
  created_at: string;
888
888
  email: string;
889
889
  email_valid: string | null;
890
- enrichment_data: Json;
890
+ enrichment_data: Json$1;
891
891
  filter_reason: string | null;
892
892
  first_name: string | null;
893
893
  headline: string | null;
@@ -897,10 +897,10 @@ type Database = {
897
897
  nurture: boolean;
898
898
  opening_line: string | null;
899
899
  organization_id: string;
900
- processing_state: Json;
900
+ processing_state: Json$1;
901
901
  qualification_rubric_key: string | null;
902
902
  qualification_score: number | null;
903
- qualification_signals: Json | null;
903
+ qualification_signals: Json$1 | null;
904
904
  source: string | null;
905
905
  source_id: string | null;
906
906
  status: string;
@@ -916,7 +916,7 @@ type Database = {
916
916
  created_at?: string;
917
917
  email: string;
918
918
  email_valid?: string | null;
919
- enrichment_data?: Json;
919
+ enrichment_data?: Json$1;
920
920
  filter_reason?: string | null;
921
921
  first_name?: string | null;
922
922
  headline?: string | null;
@@ -926,10 +926,10 @@ type Database = {
926
926
  nurture?: boolean;
927
927
  opening_line?: string | null;
928
928
  organization_id: string;
929
- processing_state?: Json;
929
+ processing_state?: Json$1;
930
930
  qualification_rubric_key?: string | null;
931
931
  qualification_score?: number | null;
932
- qualification_signals?: Json | null;
932
+ qualification_signals?: Json$1 | null;
933
933
  source?: string | null;
934
934
  source_id?: string | null;
935
935
  status?: string;
@@ -945,7 +945,7 @@ type Database = {
945
945
  created_at?: string;
946
946
  email?: string;
947
947
  email_valid?: string | null;
948
- enrichment_data?: Json;
948
+ enrichment_data?: Json$1;
949
949
  filter_reason?: string | null;
950
950
  first_name?: string | null;
951
951
  headline?: string | null;
@@ -955,10 +955,10 @@ type Database = {
955
955
  nurture?: boolean;
956
956
  opening_line?: string | null;
957
957
  organization_id?: string;
958
- processing_state?: Json;
958
+ processing_state?: Json$1;
959
959
  qualification_rubric_key?: string | null;
960
960
  qualification_score?: number | null;
961
- qualification_signals?: Json | null;
961
+ qualification_signals?: Json$1 | null;
962
962
  source?: string | null;
963
963
  source_id?: string | null;
964
964
  status?: string;
@@ -1127,7 +1127,7 @@ type Database = {
1127
1127
  };
1128
1128
  acq_deals: {
1129
1129
  Row: {
1130
- activity_log: Json;
1130
+ activity_log: Json$1;
1131
1131
  client_id: string | null;
1132
1132
  closed_lost_at: string | null;
1133
1133
  closed_lost_reason: string | null;
@@ -1135,7 +1135,7 @@ type Database = {
1135
1135
  contact_email: string;
1136
1136
  contact_id: string | null;
1137
1137
  created_at: string;
1138
- discovery_data: Json | null;
1138
+ discovery_data: Json$1 | null;
1139
1139
  discovery_submitted_at: string | null;
1140
1140
  discovery_submitted_by: string | null;
1141
1141
  id: string;
@@ -1147,7 +1147,7 @@ type Database = {
1147
1147
  payment_link_sent_at: string | null;
1148
1148
  payment_received_at: string | null;
1149
1149
  pipeline_key: string;
1150
- proposal_data: Json | null;
1150
+ proposal_data: Json$1 | null;
1151
1151
  proposal_generated_at: string | null;
1152
1152
  proposal_pdf_url: string | null;
1153
1153
  proposal_reviewed_at: string | null;
@@ -1166,7 +1166,7 @@ type Database = {
1166
1166
  updated_at: string;
1167
1167
  };
1168
1168
  Insert: {
1169
- activity_log?: Json;
1169
+ activity_log?: Json$1;
1170
1170
  client_id?: string | null;
1171
1171
  closed_lost_at?: string | null;
1172
1172
  closed_lost_reason?: string | null;
@@ -1174,7 +1174,7 @@ type Database = {
1174
1174
  contact_email: string;
1175
1175
  contact_id?: string | null;
1176
1176
  created_at?: string;
1177
- discovery_data?: Json | null;
1177
+ discovery_data?: Json$1 | null;
1178
1178
  discovery_submitted_at?: string | null;
1179
1179
  discovery_submitted_by?: string | null;
1180
1180
  id?: string;
@@ -1186,7 +1186,7 @@ type Database = {
1186
1186
  payment_link_sent_at?: string | null;
1187
1187
  payment_received_at?: string | null;
1188
1188
  pipeline_key?: string;
1189
- proposal_data?: Json | null;
1189
+ proposal_data?: Json$1 | null;
1190
1190
  proposal_generated_at?: string | null;
1191
1191
  proposal_pdf_url?: string | null;
1192
1192
  proposal_reviewed_at?: string | null;
@@ -1205,7 +1205,7 @@ type Database = {
1205
1205
  updated_at?: string;
1206
1206
  };
1207
1207
  Update: {
1208
- activity_log?: Json;
1208
+ activity_log?: Json$1;
1209
1209
  client_id?: string | null;
1210
1210
  closed_lost_at?: string | null;
1211
1211
  closed_lost_reason?: string | null;
@@ -1213,7 +1213,7 @@ type Database = {
1213
1213
  contact_email?: string;
1214
1214
  contact_id?: string | null;
1215
1215
  created_at?: string;
1216
- discovery_data?: Json | null;
1216
+ discovery_data?: Json$1 | null;
1217
1217
  discovery_submitted_at?: string | null;
1218
1218
  discovery_submitted_by?: string | null;
1219
1219
  id?: string;
@@ -1225,7 +1225,7 @@ type Database = {
1225
1225
  payment_link_sent_at?: string | null;
1226
1226
  payment_received_at?: string | null;
1227
1227
  pipeline_key?: string;
1228
- proposal_data?: Json | null;
1228
+ proposal_data?: Json$1 | null;
1229
1229
  proposal_generated_at?: string | null;
1230
1230
  proposal_pdf_url?: string | null;
1231
1231
  proposal_reviewed_at?: string | null;
@@ -1297,7 +1297,7 @@ type Database = {
1297
1297
  };
1298
1298
  acq_list_companies: {
1299
1299
  Row: {
1300
- activity_log: Json;
1300
+ activity_log: Json$1;
1301
1301
  added_at: string;
1302
1302
  added_by: string | null;
1303
1303
  company_id: string;
@@ -1311,7 +1311,7 @@ type Database = {
1311
1311
  state_key: string;
1312
1312
  };
1313
1313
  Insert: {
1314
- activity_log?: Json;
1314
+ activity_log?: Json$1;
1315
1315
  added_at?: string;
1316
1316
  added_by?: string | null;
1317
1317
  company_id: string;
@@ -1325,7 +1325,7 @@ type Database = {
1325
1325
  state_key: string;
1326
1326
  };
1327
1327
  Update: {
1328
- activity_log?: Json;
1328
+ activity_log?: Json$1;
1329
1329
  added_at?: string;
1330
1330
  added_by?: string | null;
1331
1331
  company_id?: string;
@@ -1375,21 +1375,21 @@ type Database = {
1375
1375
  execution_id: string;
1376
1376
  id: string;
1377
1377
  list_id: string;
1378
- payload: Json;
1378
+ payload: Json$1;
1379
1379
  };
1380
1380
  Insert: {
1381
1381
  created_at?: string;
1382
1382
  execution_id: string;
1383
1383
  id?: string;
1384
1384
  list_id: string;
1385
- payload?: Json;
1385
+ payload?: Json$1;
1386
1386
  };
1387
1387
  Update: {
1388
1388
  created_at?: string;
1389
1389
  execution_id?: string;
1390
1390
  id?: string;
1391
1391
  list_id?: string;
1392
- payload?: Json;
1392
+ payload?: Json$1;
1393
1393
  };
1394
1394
  Relationships: [
1395
1395
  {
@@ -1410,7 +1410,7 @@ type Database = {
1410
1410
  };
1411
1411
  acq_list_members: {
1412
1412
  Row: {
1413
- activity_log: Json;
1413
+ activity_log: Json$1;
1414
1414
  added_at: string;
1415
1415
  added_by: string | null;
1416
1416
  contact_id: string;
@@ -1424,7 +1424,7 @@ type Database = {
1424
1424
  state_key: string;
1425
1425
  };
1426
1426
  Insert: {
1427
- activity_log?: Json;
1427
+ activity_log?: Json$1;
1428
1428
  added_at?: string;
1429
1429
  added_by?: string | null;
1430
1430
  contact_id: string;
@@ -1438,7 +1438,7 @@ type Database = {
1438
1438
  state_key: string;
1439
1439
  };
1440
1440
  Update: {
1441
- activity_log?: Json;
1441
+ activity_log?: Json$1;
1442
1442
  added_at?: string;
1443
1443
  added_by?: string | null;
1444
1444
  contact_id?: string;
@@ -1488,15 +1488,15 @@ type Database = {
1488
1488
  completed_at: string | null;
1489
1489
  created_at: string;
1490
1490
  description: string | null;
1491
- icp: Json;
1491
+ icp: Json$1;
1492
1492
  id: string;
1493
1493
  instantly_campaign_id: string | null;
1494
1494
  launched_at: string | null;
1495
- metadata: Json;
1495
+ metadata: Json$1;
1496
1496
  name: string;
1497
1497
  organization_id: string;
1498
- pipeline_config: Json;
1499
- scraping_config: Json;
1498
+ pipeline_config: Json$1;
1499
+ scraping_config: Json$1;
1500
1500
  status: string;
1501
1501
  };
1502
1502
  Insert: {
@@ -1504,15 +1504,15 @@ type Database = {
1504
1504
  completed_at?: string | null;
1505
1505
  created_at?: string;
1506
1506
  description?: string | null;
1507
- icp?: Json;
1507
+ icp?: Json$1;
1508
1508
  id?: string;
1509
1509
  instantly_campaign_id?: string | null;
1510
1510
  launched_at?: string | null;
1511
- metadata?: Json;
1511
+ metadata?: Json$1;
1512
1512
  name: string;
1513
1513
  organization_id: string;
1514
- pipeline_config?: Json;
1515
- scraping_config?: Json;
1514
+ pipeline_config?: Json$1;
1515
+ scraping_config?: Json$1;
1516
1516
  status?: string;
1517
1517
  };
1518
1518
  Update: {
@@ -1520,15 +1520,15 @@ type Database = {
1520
1520
  completed_at?: string | null;
1521
1521
  created_at?: string;
1522
1522
  description?: string | null;
1523
- icp?: Json;
1523
+ icp?: Json$1;
1524
1524
  id?: string;
1525
1525
  instantly_campaign_id?: string | null;
1526
1526
  launched_at?: string | null;
1527
- metadata?: Json;
1527
+ metadata?: Json$1;
1528
1528
  name?: string;
1529
1529
  organization_id?: string;
1530
- pipeline_config?: Json;
1531
- scraping_config?: Json;
1530
+ pipeline_config?: Json$1;
1531
+ scraping_config?: Json$1;
1532
1532
  status?: string;
1533
1533
  };
1534
1534
  Relationships: [
@@ -1543,7 +1543,7 @@ type Database = {
1543
1543
  };
1544
1544
  acq_seo_metrics: {
1545
1545
  Row: {
1546
- ai_citations: Json | null;
1546
+ ai_citations: Json$1 | null;
1547
1547
  avg_position: number | null;
1548
1548
  clicks: number | null;
1549
1549
  created_at: string;
@@ -1566,7 +1566,7 @@ type Database = {
1566
1566
  word_count: number | null;
1567
1567
  };
1568
1568
  Insert: {
1569
- ai_citations?: Json | null;
1569
+ ai_citations?: Json$1 | null;
1570
1570
  avg_position?: number | null;
1571
1571
  clicks?: number | null;
1572
1572
  created_at?: string;
@@ -1589,7 +1589,7 @@ type Database = {
1589
1589
  word_count?: number | null;
1590
1590
  };
1591
1591
  Update: {
1592
- ai_citations?: Json | null;
1592
+ ai_citations?: Json$1 | null;
1593
1593
  avg_position?: number | null;
1594
1594
  clicks?: number | null;
1595
1595
  created_at?: string;
@@ -1631,19 +1631,19 @@ type Database = {
1631
1631
  acq_seo_pages: {
1632
1632
  Row: {
1633
1633
  city: string | null;
1634
- content: Json | null;
1634
+ content: Json$1 | null;
1635
1635
  created_at: string;
1636
- faq_items: Json | null;
1636
+ faq_items: Json$1 | null;
1637
1637
  hero_image_url: string | null;
1638
1638
  id: string;
1639
- internal_links: Json | null;
1640
- local_data: Json | null;
1639
+ internal_links: Json$1 | null;
1640
+ local_data: Json$1 | null;
1641
1641
  meta_description: string | null;
1642
1642
  organization_id: string;
1643
1643
  page_type: string;
1644
1644
  published_at: string | null;
1645
1645
  refreshed_at: string | null;
1646
- schema_markup: Json | null;
1646
+ schema_markup: Json$1 | null;
1647
1647
  slug: string;
1648
1648
  state: string | null;
1649
1649
  status: string;
@@ -1654,19 +1654,19 @@ type Database = {
1654
1654
  };
1655
1655
  Insert: {
1656
1656
  city?: string | null;
1657
- content?: Json | null;
1657
+ content?: Json$1 | null;
1658
1658
  created_at?: string;
1659
- faq_items?: Json | null;
1659
+ faq_items?: Json$1 | null;
1660
1660
  hero_image_url?: string | null;
1661
1661
  id?: string;
1662
- internal_links?: Json | null;
1663
- local_data?: Json | null;
1662
+ internal_links?: Json$1 | null;
1663
+ local_data?: Json$1 | null;
1664
1664
  meta_description?: string | null;
1665
1665
  organization_id: string;
1666
1666
  page_type: string;
1667
1667
  published_at?: string | null;
1668
1668
  refreshed_at?: string | null;
1669
- schema_markup?: Json | null;
1669
+ schema_markup?: Json$1 | null;
1670
1670
  slug: string;
1671
1671
  state?: string | null;
1672
1672
  status?: string;
@@ -1677,19 +1677,19 @@ type Database = {
1677
1677
  };
1678
1678
  Update: {
1679
1679
  city?: string | null;
1680
- content?: Json | null;
1680
+ content?: Json$1 | null;
1681
1681
  created_at?: string;
1682
- faq_items?: Json | null;
1682
+ faq_items?: Json$1 | null;
1683
1683
  hero_image_url?: string | null;
1684
1684
  id?: string;
1685
- internal_links?: Json | null;
1686
- local_data?: Json | null;
1685
+ internal_links?: Json$1 | null;
1686
+ local_data?: Json$1 | null;
1687
1687
  meta_description?: string | null;
1688
1688
  organization_id?: string;
1689
1689
  page_type?: string;
1690
1690
  published_at?: string | null;
1691
1691
  refreshed_at?: string | null;
1692
- schema_markup?: Json | null;
1692
+ schema_markup?: Json$1 | null;
1693
1693
  slug?: string;
1694
1694
  state?: string | null;
1695
1695
  status?: string;
@@ -1723,7 +1723,7 @@ type Database = {
1723
1723
  initial_draft: string | null;
1724
1724
  matched_keywords: string[];
1725
1725
  matched_query: string | null;
1726
- metadata: Json;
1726
+ metadata: Json$1;
1727
1727
  organization_id: string;
1728
1728
  platform: string;
1729
1729
  platform_post_id: string;
@@ -1753,7 +1753,7 @@ type Database = {
1753
1753
  initial_draft?: string | null;
1754
1754
  matched_keywords?: string[];
1755
1755
  matched_query?: string | null;
1756
- metadata?: Json;
1756
+ metadata?: Json$1;
1757
1757
  organization_id: string;
1758
1758
  platform: string;
1759
1759
  platform_post_id: string;
@@ -1783,7 +1783,7 @@ type Database = {
1783
1783
  initial_draft?: string | null;
1784
1784
  matched_keywords?: string[];
1785
1785
  matched_query?: string | null;
1786
- metadata?: Json;
1786
+ metadata?: Json$1;
1787
1787
  organization_id?: string;
1788
1788
  platform?: string;
1789
1789
  platform_post_id?: string;
@@ -1821,7 +1821,7 @@ type Database = {
1821
1821
  entity_name: string | null;
1822
1822
  entity_type: string;
1823
1823
  id: string;
1824
- metadata: Json | null;
1824
+ metadata: Json$1 | null;
1825
1825
  occurred_at: string;
1826
1826
  organization_id: string;
1827
1827
  status: string;
@@ -1838,7 +1838,7 @@ type Database = {
1838
1838
  entity_name?: string | null;
1839
1839
  entity_type: string;
1840
1840
  id?: string;
1841
- metadata?: Json | null;
1841
+ metadata?: Json$1 | null;
1842
1842
  occurred_at?: string;
1843
1843
  organization_id: string;
1844
1844
  status: string;
@@ -1855,7 +1855,7 @@ type Database = {
1855
1855
  entity_name?: string | null;
1856
1856
  entity_type?: string;
1857
1857
  id?: string;
1858
- metadata?: Json | null;
1858
+ metadata?: Json$1 | null;
1859
1859
  occurred_at?: string;
1860
1860
  organization_id?: string;
1861
1861
  status?: string;
@@ -1888,8 +1888,8 @@ type Database = {
1888
1888
  agent_access_grants: {
1889
1889
  Row: {
1890
1890
  allowed_origins: string[];
1891
- branding: Json;
1892
- capture_fields: Json;
1891
+ branding: Json$1;
1892
+ capture_fields: Json$1;
1893
1893
  code_hash: string | null;
1894
1894
  code_salt: string | null;
1895
1895
  created_at: string;
@@ -1902,13 +1902,13 @@ type Database = {
1902
1902
  organization_id: string;
1903
1903
  resource_id: string;
1904
1904
  slug: string;
1905
- tool_policy: Json;
1905
+ tool_policy: Json$1;
1906
1906
  updated_at: string;
1907
1907
  };
1908
1908
  Insert: {
1909
1909
  allowed_origins?: string[];
1910
- branding?: Json;
1911
- capture_fields?: Json;
1910
+ branding?: Json$1;
1911
+ capture_fields?: Json$1;
1912
1912
  code_hash?: string | null;
1913
1913
  code_salt?: string | null;
1914
1914
  created_at?: string;
@@ -1921,13 +1921,13 @@ type Database = {
1921
1921
  organization_id: string;
1922
1922
  resource_id: string;
1923
1923
  slug: string;
1924
- tool_policy?: Json;
1924
+ tool_policy?: Json$1;
1925
1925
  updated_at?: string;
1926
1926
  };
1927
1927
  Update: {
1928
1928
  allowed_origins?: string[];
1929
- branding?: Json;
1930
- capture_fields?: Json;
1929
+ branding?: Json$1;
1930
+ capture_fields?: Json$1;
1931
1931
  code_hash?: string | null;
1932
1932
  code_salt?: string | null;
1933
1933
  created_at?: string;
@@ -1940,7 +1940,7 @@ type Database = {
1940
1940
  organization_id?: string;
1941
1941
  resource_id?: string;
1942
1942
  slug?: string;
1943
- tool_policy?: Json;
1943
+ tool_policy?: Json$1;
1944
1944
  updated_at?: string;
1945
1945
  };
1946
1946
  Relationships: [
@@ -2000,7 +2000,7 @@ type Database = {
2000
2000
  };
2001
2001
  artifacts: {
2002
2002
  Row: {
2003
- content: Json;
2003
+ content: Json$1;
2004
2004
  created_at: string;
2005
2005
  created_by: string | null;
2006
2006
  id: string;
@@ -2015,7 +2015,7 @@ type Database = {
2015
2015
  version: number;
2016
2016
  };
2017
2017
  Insert: {
2018
- content: Json;
2018
+ content: Json$1;
2019
2019
  created_at?: string;
2020
2020
  created_by?: string | null;
2021
2021
  id?: string;
@@ -2030,7 +2030,7 @@ type Database = {
2030
2030
  version?: number;
2031
2031
  };
2032
2032
  Update: {
2033
- content?: Json;
2033
+ content?: Json$1;
2034
2034
  created_at?: string;
2035
2035
  created_by?: string | null;
2036
2036
  id?: string;
@@ -2059,7 +2059,7 @@ type Database = {
2059
2059
  converted_at: string | null;
2060
2060
  created_at: string;
2061
2061
  id: string;
2062
- metadata: Json;
2062
+ metadata: Json$1;
2063
2063
  name: string;
2064
2064
  organization_id: string;
2065
2065
  primary_company_id: string | null;
@@ -2073,7 +2073,7 @@ type Database = {
2073
2073
  converted_at?: string | null;
2074
2074
  created_at?: string;
2075
2075
  id?: string;
2076
- metadata?: Json;
2076
+ metadata?: Json$1;
2077
2077
  name: string;
2078
2078
  organization_id: string;
2079
2079
  primary_company_id?: string | null;
@@ -2087,7 +2087,7 @@ type Database = {
2087
2087
  converted_at?: string | null;
2088
2088
  created_at?: string;
2089
2089
  id?: string;
2090
- metadata?: Json;
2090
+ metadata?: Json$1;
2091
2091
  name?: string;
2092
2092
  organization_id?: string;
2093
2093
  primary_company_id?: string | null;
@@ -2130,18 +2130,18 @@ type Database = {
2130
2130
  };
2131
2131
  command_queue: {
2132
2132
  Row: {
2133
- action_payload: Json | null;
2134
- actions: Json;
2133
+ action_payload: Json$1 | null;
2134
+ actions: Json$1;
2135
2135
  completed_at: string | null;
2136
2136
  completed_by: string | null;
2137
- context: Json;
2137
+ context: Json$1;
2138
2138
  created_at: string;
2139
2139
  description: string | null;
2140
2140
  expires_at: string | null;
2141
2141
  human_checkpoint: string | null;
2142
2142
  id: string;
2143
2143
  idempotency_key: string | null;
2144
- metadata: Json | null;
2144
+ metadata: Json$1 | null;
2145
2145
  organization_id: string;
2146
2146
  origin_execution_id: string;
2147
2147
  origin_resource_id: string;
@@ -2154,18 +2154,18 @@ type Database = {
2154
2154
  target_resource_type: string | null;
2155
2155
  };
2156
2156
  Insert: {
2157
- action_payload?: Json | null;
2158
- actions: Json;
2157
+ action_payload?: Json$1 | null;
2158
+ actions: Json$1;
2159
2159
  completed_at?: string | null;
2160
2160
  completed_by?: string | null;
2161
- context: Json;
2161
+ context: Json$1;
2162
2162
  created_at?: string;
2163
2163
  description?: string | null;
2164
2164
  expires_at?: string | null;
2165
2165
  human_checkpoint?: string | null;
2166
2166
  id?: string;
2167
2167
  idempotency_key?: string | null;
2168
- metadata?: Json | null;
2168
+ metadata?: Json$1 | null;
2169
2169
  organization_id: string;
2170
2170
  origin_execution_id: string;
2171
2171
  origin_resource_id: string;
@@ -2178,18 +2178,18 @@ type Database = {
2178
2178
  target_resource_type?: string | null;
2179
2179
  };
2180
2180
  Update: {
2181
- action_payload?: Json | null;
2182
- actions?: Json;
2181
+ action_payload?: Json$1 | null;
2182
+ actions?: Json$1;
2183
2183
  completed_at?: string | null;
2184
2184
  completed_by?: string | null;
2185
- context?: Json;
2185
+ context?: Json$1;
2186
2186
  created_at?: string;
2187
2187
  description?: string | null;
2188
2188
  expires_at?: string | null;
2189
2189
  human_checkpoint?: string | null;
2190
2190
  id?: string;
2191
2191
  idempotency_key?: string | null;
2192
- metadata?: Json | null;
2192
+ metadata?: Json$1 | null;
2193
2193
  organization_id?: string;
2194
2194
  origin_execution_id?: string;
2195
2195
  origin_resource_id?: string;
@@ -2231,9 +2231,9 @@ type Database = {
2231
2231
  created_at: string;
2232
2232
  distribution_id: string;
2233
2233
  id: string;
2234
- metrics: Json;
2234
+ metrics: Json$1;
2235
2235
  organization_id: string;
2236
- raw: Json;
2236
+ raw: Json$1;
2237
2237
  source: string;
2238
2238
  source_execution_id: string | null;
2239
2239
  };
@@ -2242,9 +2242,9 @@ type Database = {
2242
2242
  created_at?: string;
2243
2243
  distribution_id: string;
2244
2244
  id?: string;
2245
- metrics?: Json;
2245
+ metrics?: Json$1;
2246
2246
  organization_id: string;
2247
- raw?: Json;
2247
+ raw?: Json$1;
2248
2248
  source: string;
2249
2249
  source_execution_id?: string | null;
2250
2250
  };
@@ -2253,9 +2253,9 @@ type Database = {
2253
2253
  created_at?: string;
2254
2254
  distribution_id?: string;
2255
2255
  id?: string;
2256
- metrics?: Json;
2256
+ metrics?: Json$1;
2257
2257
  organization_id?: string;
2258
- raw?: Json;
2258
+ raw?: Json$1;
2259
2259
  source?: string;
2260
2260
  source_execution_id?: string | null;
2261
2261
  };
@@ -2286,20 +2286,20 @@ type Database = {
2286
2286
  content_distributions: {
2287
2287
  Row: {
2288
2288
  adapted_body: string | null;
2289
- checklist: Json | null;
2289
+ checklist: Json$1 | null;
2290
2290
  content_item_id: string;
2291
2291
  created_at: string;
2292
2292
  format: string;
2293
2293
  id: string;
2294
- media_urls: Json;
2295
- metrics: Json;
2294
+ media_urls: Json$1;
2295
+ metrics: Json$1;
2296
2296
  metrics_updated_at: string | null;
2297
2297
  organization_id: string;
2298
2298
  platform: string;
2299
- platform_content: Json | null;
2299
+ platform_content: Json$1 | null;
2300
2300
  platform_post_id: string | null;
2301
2301
  platform_url: string | null;
2302
- processing_state: Json;
2302
+ processing_state: Json$1;
2303
2303
  publish_method: string | null;
2304
2304
  published_at: string | null;
2305
2305
  status: string;
@@ -2307,20 +2307,20 @@ type Database = {
2307
2307
  };
2308
2308
  Insert: {
2309
2309
  adapted_body?: string | null;
2310
- checklist?: Json | null;
2310
+ checklist?: Json$1 | null;
2311
2311
  content_item_id: string;
2312
2312
  created_at?: string;
2313
2313
  format: string;
2314
2314
  id?: string;
2315
- media_urls?: Json;
2316
- metrics?: Json;
2315
+ media_urls?: Json$1;
2316
+ metrics?: Json$1;
2317
2317
  metrics_updated_at?: string | null;
2318
2318
  organization_id: string;
2319
2319
  platform: string;
2320
- platform_content?: Json | null;
2320
+ platform_content?: Json$1 | null;
2321
2321
  platform_post_id?: string | null;
2322
2322
  platform_url?: string | null;
2323
- processing_state?: Json;
2323
+ processing_state?: Json$1;
2324
2324
  publish_method?: string | null;
2325
2325
  published_at?: string | null;
2326
2326
  status?: string;
@@ -2328,20 +2328,20 @@ type Database = {
2328
2328
  };
2329
2329
  Update: {
2330
2330
  adapted_body?: string | null;
2331
- checklist?: Json | null;
2331
+ checklist?: Json$1 | null;
2332
2332
  content_item_id?: string;
2333
2333
  created_at?: string;
2334
2334
  format?: string;
2335
2335
  id?: string;
2336
- media_urls?: Json;
2337
- metrics?: Json;
2336
+ media_urls?: Json$1;
2337
+ metrics?: Json$1;
2338
2338
  metrics_updated_at?: string | null;
2339
2339
  organization_id?: string;
2340
2340
  platform?: string;
2341
- platform_content?: Json | null;
2341
+ platform_content?: Json$1 | null;
2342
2342
  platform_post_id?: string | null;
2343
2343
  platform_url?: string | null;
2344
- processing_state?: Json;
2344
+ processing_state?: Json$1;
2345
2345
  publish_method?: string | null;
2346
2346
  published_at?: string | null;
2347
2347
  status?: string;
@@ -2372,7 +2372,7 @@ type Database = {
2372
2372
  created_by: string | null;
2373
2373
  id: string;
2374
2374
  organization_id: string;
2375
- payload: Json;
2375
+ payload: Json$1;
2376
2376
  source_execution_id: string | null;
2377
2377
  status: string;
2378
2378
  step_key: string | null;
@@ -2384,7 +2384,7 @@ type Database = {
2384
2384
  created_by?: string | null;
2385
2385
  id?: string;
2386
2386
  organization_id: string;
2387
- payload?: Json;
2387
+ payload?: Json$1;
2388
2388
  source_execution_id?: string | null;
2389
2389
  status: string;
2390
2390
  step_key?: string | null;
@@ -2396,7 +2396,7 @@ type Database = {
2396
2396
  created_by?: string | null;
2397
2397
  id?: string;
2398
2398
  organization_id?: string;
2399
- payload?: Json;
2399
+ payload?: Json$1;
2400
2400
  source_execution_id?: string | null;
2401
2401
  status?: string;
2402
2402
  step_key?: string | null;
@@ -2437,8 +2437,8 @@ type Database = {
2437
2437
  alt_text: string | null;
2438
2438
  content_item_id: string;
2439
2439
  created_at: string;
2440
- crop: Json | null;
2441
- derivative_crop: Json | null;
2440
+ crop: Json$1 | null;
2441
+ derivative_crop: Json$1 | null;
2442
2442
  derivative_path: string | null;
2443
2443
  derivative_rendered_at: string | null;
2444
2444
  id: string;
@@ -2450,8 +2450,8 @@ type Database = {
2450
2450
  alt_text?: string | null;
2451
2451
  content_item_id: string;
2452
2452
  created_at?: string;
2453
- crop?: Json | null;
2454
- derivative_crop?: Json | null;
2453
+ crop?: Json$1 | null;
2454
+ derivative_crop?: Json$1 | null;
2455
2455
  derivative_path?: string | null;
2456
2456
  derivative_rendered_at?: string | null;
2457
2457
  id?: string;
@@ -2463,8 +2463,8 @@ type Database = {
2463
2463
  alt_text?: string | null;
2464
2464
  content_item_id?: string;
2465
2465
  created_at?: string;
2466
- crop?: Json | null;
2467
- derivative_crop?: Json | null;
2466
+ crop?: Json$1 | null;
2467
+ derivative_crop?: Json$1 | null;
2468
2468
  derivative_path?: string | null;
2469
2469
  derivative_rendered_at?: string | null;
2470
2470
  id?: string;
@@ -2497,10 +2497,10 @@ type Database = {
2497
2497
  created_by: string | null;
2498
2498
  id: string;
2499
2499
  organization_id: string;
2500
- payload: Json;
2500
+ payload: Json$1;
2501
2501
  pillar: string | null;
2502
2502
  pipeline_id: string | null;
2503
- processing_state: Json;
2503
+ processing_state: Json$1;
2504
2504
  reject_reason: string | null;
2505
2505
  reviewed_at: string | null;
2506
2506
  reviewed_by: string | null;
@@ -2518,10 +2518,10 @@ type Database = {
2518
2518
  created_by?: string | null;
2519
2519
  id?: string;
2520
2520
  organization_id: string;
2521
- payload?: Json;
2521
+ payload?: Json$1;
2522
2522
  pillar?: string | null;
2523
2523
  pipeline_id?: string | null;
2524
- processing_state?: Json;
2524
+ processing_state?: Json$1;
2525
2525
  reject_reason?: string | null;
2526
2526
  reviewed_at?: string | null;
2527
2527
  reviewed_by?: string | null;
@@ -2539,10 +2539,10 @@ type Database = {
2539
2539
  created_by?: string | null;
2540
2540
  id?: string;
2541
2541
  organization_id?: string;
2542
- payload?: Json;
2542
+ payload?: Json$1;
2543
2543
  pillar?: string | null;
2544
2544
  pipeline_id?: string | null;
2545
- processing_state?: Json;
2545
+ processing_state?: Json$1;
2546
2546
  reject_reason?: string | null;
2547
2547
  reviewed_at?: string | null;
2548
2548
  reviewed_by?: string | null;
@@ -2605,10 +2605,10 @@ type Database = {
2605
2605
  external_url: string | null;
2606
2606
  id: string;
2607
2607
  kind: string;
2608
- metadata: Json;
2608
+ metadata: Json$1;
2609
2609
  organization_id: string;
2610
- payload: Json;
2611
- processing_state: Json;
2610
+ payload: Json$1;
2611
+ processing_state: Json$1;
2612
2612
  storage_path: string | null;
2613
2613
  title: string;
2614
2614
  updated_at: string;
@@ -2619,10 +2619,10 @@ type Database = {
2619
2619
  external_url?: string | null;
2620
2620
  id?: string;
2621
2621
  kind: string;
2622
- metadata?: Json;
2622
+ metadata?: Json$1;
2623
2623
  organization_id: string;
2624
- payload?: Json;
2625
- processing_state?: Json;
2624
+ payload?: Json$1;
2625
+ processing_state?: Json$1;
2626
2626
  storage_path?: string | null;
2627
2627
  title: string;
2628
2628
  updated_at?: string;
@@ -2633,10 +2633,10 @@ type Database = {
2633
2633
  external_url?: string | null;
2634
2634
  id?: string;
2635
2635
  kind?: string;
2636
- metadata?: Json;
2636
+ metadata?: Json$1;
2637
2637
  organization_id?: string;
2638
- payload?: Json;
2639
- processing_state?: Json;
2638
+ payload?: Json$1;
2639
+ processing_state?: Json$1;
2640
2640
  storage_path?: string | null;
2641
2641
  title?: string;
2642
2642
  updated_at?: string;
@@ -2708,7 +2708,7 @@ type Database = {
2708
2708
  deployment_id: string;
2709
2709
  model_hash: string | null;
2710
2710
  organization_id: string;
2711
- organization_model: Json;
2711
+ organization_model: Json$1;
2712
2712
  schema_version: string;
2713
2713
  updated_at: string;
2714
2714
  };
@@ -2717,7 +2717,7 @@ type Database = {
2717
2717
  deployment_id: string;
2718
2718
  model_hash?: string | null;
2719
2719
  organization_id: string;
2720
- organization_model: Json;
2720
+ organization_model: Json$1;
2721
2721
  schema_version?: string;
2722
2722
  updated_at?: string;
2723
2723
  };
@@ -2726,7 +2726,7 @@ type Database = {
2726
2726
  deployment_id?: string;
2727
2727
  model_hash?: string | null;
2728
2728
  organization_id?: string;
2729
- organization_model?: Json;
2729
+ organization_model?: Json$1;
2730
2730
  schema_version?: string;
2731
2731
  updated_at?: string;
2732
2732
  };
@@ -2807,7 +2807,7 @@ type Database = {
2807
2807
  error_type: string;
2808
2808
  execution_id: string;
2809
2809
  id: string;
2810
- metadata: Json | null;
2810
+ metadata: Json$1 | null;
2811
2811
  occurred_at: string;
2812
2812
  organization_id: string;
2813
2813
  resolved: boolean;
@@ -2823,7 +2823,7 @@ type Database = {
2823
2823
  error_type: string;
2824
2824
  execution_id: string;
2825
2825
  id?: string;
2826
- metadata?: Json | null;
2826
+ metadata?: Json$1 | null;
2827
2827
  occurred_at?: string;
2828
2828
  organization_id: string;
2829
2829
  resolved?: boolean;
@@ -2839,7 +2839,7 @@ type Database = {
2839
2839
  error_type?: string;
2840
2840
  execution_id?: string;
2841
2841
  id?: string;
2842
- metadata?: Json | null;
2842
+ metadata?: Json$1 | null;
2843
2843
  occurred_at?: string;
2844
2844
  organization_id?: string;
2845
2845
  resolved?: boolean;
@@ -2877,14 +2877,15 @@ type Database = {
2877
2877
  created_at: string | null;
2878
2878
  error: string | null;
2879
2879
  execution_id: string;
2880
- input: Json | null;
2880
+ idempotency_key: string | null;
2881
+ input: Json$1 | null;
2881
2882
  last_heartbeat_at: string | null;
2882
- logs: Json | null;
2883
+ logs: Json$1 | null;
2883
2884
  organization_id: string;
2884
2885
  origin_execution_id: string | null;
2885
- output: Json | null;
2886
+ output: Json$1 | null;
2886
2887
  resource_id: string;
2887
- resource_snapshot: Json | null;
2888
+ resource_snapshot: Json$1 | null;
2888
2889
  resource_status: string;
2889
2890
  resource_type: string;
2890
2891
  resource_version: string | null;
@@ -2903,14 +2904,15 @@ type Database = {
2903
2904
  created_at?: string | null;
2904
2905
  error?: string | null;
2905
2906
  execution_id?: string;
2906
- input?: Json | null;
2907
+ idempotency_key?: string | null;
2908
+ input?: Json$1 | null;
2907
2909
  last_heartbeat_at?: string | null;
2908
- logs?: Json | null;
2910
+ logs?: Json$1 | null;
2909
2911
  organization_id: string;
2910
2912
  origin_execution_id?: string | null;
2911
- output?: Json | null;
2913
+ output?: Json$1 | null;
2912
2914
  resource_id: string;
2913
- resource_snapshot?: Json | null;
2915
+ resource_snapshot?: Json$1 | null;
2914
2916
  resource_status?: string;
2915
2917
  resource_type?: string;
2916
2918
  resource_version?: string | null;
@@ -2929,14 +2931,15 @@ type Database = {
2929
2931
  created_at?: string | null;
2930
2932
  error?: string | null;
2931
2933
  execution_id?: string;
2932
- input?: Json | null;
2934
+ idempotency_key?: string | null;
2935
+ input?: Json$1 | null;
2933
2936
  last_heartbeat_at?: string | null;
2934
- logs?: Json | null;
2937
+ logs?: Json$1 | null;
2935
2938
  organization_id?: string;
2936
2939
  origin_execution_id?: string | null;
2937
- output?: Json | null;
2940
+ output?: Json$1 | null;
2938
2941
  resource_id?: string;
2939
- resource_snapshot?: Json | null;
2942
+ resource_snapshot?: Json$1 | null;
2940
2943
  resource_status?: string;
2941
2944
  resource_type?: string;
2942
2945
  resource_version?: string | null;
@@ -2983,7 +2986,7 @@ type Database = {
2983
2986
  execution_metrics: {
2984
2987
  Row: {
2985
2988
  ai_call_count: number;
2986
- ai_calls: Json | null;
2989
+ ai_calls: Json$1 | null;
2987
2990
  automation_savings_usd: number | null;
2988
2991
  created_at: string | null;
2989
2992
  duration_ms: number | null;
@@ -2996,7 +2999,7 @@ type Database = {
2996
2999
  };
2997
3000
  Insert: {
2998
3001
  ai_call_count: number;
2999
- ai_calls?: Json | null;
3002
+ ai_calls?: Json$1 | null;
3000
3003
  automation_savings_usd?: number | null;
3001
3004
  created_at?: string | null;
3002
3005
  duration_ms?: number | null;
@@ -3009,7 +3012,7 @@ type Database = {
3009
3012
  };
3010
3013
  Update: {
3011
3014
  ai_call_count?: number;
3012
- ai_calls?: Json | null;
3015
+ ai_calls?: Json$1 | null;
3013
3016
  automation_savings_usd?: number | null;
3014
3017
  created_at?: string | null;
3015
3018
  duration_ms?: number | null;
@@ -3159,7 +3162,7 @@ type Database = {
3159
3162
  };
3160
3163
  org_memberships: {
3161
3164
  Row: {
3162
- config: Json;
3165
+ config: Json$1;
3163
3166
  created_at: string | null;
3164
3167
  effective_permissions: string[];
3165
3168
  id: string;
@@ -3171,7 +3174,7 @@ type Database = {
3171
3174
  workos_membership_id: string | null;
3172
3175
  };
3173
3176
  Insert: {
3174
- config?: Json;
3177
+ config?: Json$1;
3175
3178
  created_at?: string | null;
3176
3179
  effective_permissions?: string[];
3177
3180
  id?: string;
@@ -3183,7 +3186,7 @@ type Database = {
3183
3186
  workos_membership_id?: string | null;
3184
3187
  };
3185
3188
  Update: {
3186
- config?: Json;
3189
+ config?: Json$1;
3187
3190
  created_at?: string | null;
3188
3191
  effective_permissions?: string[];
3189
3192
  id?: string;
@@ -3354,33 +3357,33 @@ type Database = {
3354
3357
  };
3355
3358
  organizations: {
3356
3359
  Row: {
3357
- config: Json;
3360
+ config: Json$1;
3358
3361
  created_at: string;
3359
3362
  id: string;
3360
3363
  is_test: boolean;
3361
- metadata: Json;
3364
+ metadata: Json$1;
3362
3365
  name: string;
3363
3366
  status: string;
3364
3367
  updated_at: string;
3365
3368
  workos_org_id: string;
3366
3369
  };
3367
3370
  Insert: {
3368
- config?: Json;
3371
+ config?: Json$1;
3369
3372
  created_at?: string;
3370
3373
  id?: string;
3371
3374
  is_test?: boolean;
3372
- metadata?: Json;
3375
+ metadata?: Json$1;
3373
3376
  name: string;
3374
3377
  status?: string;
3375
3378
  updated_at?: string;
3376
3379
  workos_org_id: string;
3377
3380
  };
3378
3381
  Update: {
3379
- config?: Json;
3382
+ config?: Json$1;
3380
3383
  created_at?: string;
3381
3384
  id?: string;
3382
3385
  is_test?: boolean;
3383
- metadata?: Json;
3386
+ metadata?: Json$1;
3384
3387
  name?: string;
3385
3388
  status?: string;
3386
3389
  updated_at?: string;
@@ -3390,13 +3393,13 @@ type Database = {
3390
3393
  };
3391
3394
  prj_milestones: {
3392
3395
  Row: {
3393
- checklist: Json | null;
3396
+ checklist: Json$1 | null;
3394
3397
  completed_at: string | null;
3395
3398
  created_at: string;
3396
3399
  description: string | null;
3397
3400
  due_date: string | null;
3398
3401
  id: string;
3399
- metadata: Json | null;
3402
+ metadata: Json$1 | null;
3400
3403
  name: string;
3401
3404
  organization_id: string;
3402
3405
  project_id: string;
@@ -3405,13 +3408,13 @@ type Database = {
3405
3408
  updated_at: string;
3406
3409
  };
3407
3410
  Insert: {
3408
- checklist?: Json | null;
3411
+ checklist?: Json$1 | null;
3409
3412
  completed_at?: string | null;
3410
3413
  created_at?: string;
3411
3414
  description?: string | null;
3412
3415
  due_date?: string | null;
3413
3416
  id?: string;
3414
- metadata?: Json | null;
3417
+ metadata?: Json$1 | null;
3415
3418
  name: string;
3416
3419
  organization_id: string;
3417
3420
  project_id: string;
@@ -3420,13 +3423,13 @@ type Database = {
3420
3423
  updated_at?: string;
3421
3424
  };
3422
3425
  Update: {
3423
- checklist?: Json | null;
3426
+ checklist?: Json$1 | null;
3424
3427
  completed_at?: string | null;
3425
3428
  created_at?: string;
3426
3429
  description?: string | null;
3427
3430
  due_date?: string | null;
3428
3431
  id?: string;
3429
- metadata?: Json | null;
3432
+ metadata?: Json$1 | null;
3430
3433
  name?: string;
3431
3434
  organization_id?: string;
3432
3435
  project_id?: string;
@@ -3464,7 +3467,7 @@ type Database = {
3464
3467
  created_at: string;
3465
3468
  created_by: string | null;
3466
3469
  id: string;
3467
- metadata: Json | null;
3470
+ metadata: Json$1 | null;
3468
3471
  milestone_id: string | null;
3469
3472
  occurred_at: string;
3470
3473
  organization_id: string;
@@ -3478,7 +3481,7 @@ type Database = {
3478
3481
  created_at?: string;
3479
3482
  created_by?: string | null;
3480
3483
  id?: string;
3481
- metadata?: Json | null;
3484
+ metadata?: Json$1 | null;
3482
3485
  milestone_id?: string | null;
3483
3486
  occurred_at?: string;
3484
3487
  organization_id: string;
@@ -3492,7 +3495,7 @@ type Database = {
3492
3495
  created_at?: string;
3493
3496
  created_by?: string | null;
3494
3497
  id?: string;
3495
- metadata?: Json | null;
3498
+ metadata?: Json$1 | null;
3496
3499
  milestone_id?: string | null;
3497
3500
  occurred_at?: string;
3498
3501
  organization_id?: string;
@@ -3578,7 +3581,7 @@ type Database = {
3578
3581
  description: string | null;
3579
3582
  id: string;
3580
3583
  kind: string;
3581
- metadata: Json | null;
3584
+ metadata: Json$1 | null;
3582
3585
  name: string;
3583
3586
  organization_id: string;
3584
3587
  start_date: string | null;
@@ -3596,7 +3599,7 @@ type Database = {
3596
3599
  description?: string | null;
3597
3600
  id?: string;
3598
3601
  kind?: string;
3599
- metadata?: Json | null;
3602
+ metadata?: Json$1 | null;
3600
3603
  name: string;
3601
3604
  organization_id: string;
3602
3605
  start_date?: string | null;
@@ -3614,7 +3617,7 @@ type Database = {
3614
3617
  description?: string | null;
3615
3618
  id?: string;
3616
3619
  kind?: string;
3617
- metadata?: Json | null;
3620
+ metadata?: Json$1 | null;
3618
3621
  name?: string;
3619
3622
  organization_id?: string;
3620
3623
  start_date?: string | null;
@@ -3669,58 +3672,58 @@ type Database = {
3669
3672
  };
3670
3673
  prj_tasks: {
3671
3674
  Row: {
3672
- checklist: Json;
3675
+ checklist: Json$1;
3673
3676
  completed_at: string | null;
3674
3677
  created_at: string;
3675
3678
  description: string | null;
3676
3679
  due_date: string | null;
3677
3680
  file_url: string | null;
3678
3681
  id: string;
3679
- metadata: Json | null;
3682
+ metadata: Json$1 | null;
3680
3683
  milestone_id: string | null;
3681
3684
  name: string;
3682
3685
  organization_id: string;
3683
3686
  parent_task_id: string | null;
3684
3687
  project_id: string;
3685
- resume_context: Json | null;
3688
+ resume_context: Json$1 | null;
3686
3689
  status: string;
3687
3690
  type: string;
3688
3691
  updated_at: string;
3689
3692
  };
3690
3693
  Insert: {
3691
- checklist?: Json;
3694
+ checklist?: Json$1;
3692
3695
  completed_at?: string | null;
3693
3696
  created_at?: string;
3694
3697
  description?: string | null;
3695
3698
  due_date?: string | null;
3696
3699
  file_url?: string | null;
3697
3700
  id?: string;
3698
- metadata?: Json | null;
3701
+ metadata?: Json$1 | null;
3699
3702
  milestone_id?: string | null;
3700
3703
  name: string;
3701
3704
  organization_id: string;
3702
3705
  parent_task_id?: string | null;
3703
3706
  project_id: string;
3704
- resume_context?: Json | null;
3707
+ resume_context?: Json$1 | null;
3705
3708
  status?: string;
3706
3709
  type?: string;
3707
3710
  updated_at?: string;
3708
3711
  };
3709
3712
  Update: {
3710
- checklist?: Json;
3713
+ checklist?: Json$1;
3711
3714
  completed_at?: string | null;
3712
3715
  created_at?: string;
3713
3716
  description?: string | null;
3714
3717
  due_date?: string | null;
3715
3718
  file_url?: string | null;
3716
3719
  id?: string;
3717
- metadata?: Json | null;
3720
+ metadata?: Json$1 | null;
3718
3721
  milestone_id?: string | null;
3719
3722
  name?: string;
3720
3723
  organization_id?: string;
3721
3724
  parent_task_id?: string | null;
3722
3725
  project_id?: string;
3723
- resume_context?: Json | null;
3726
+ resume_context?: Json$1 | null;
3724
3727
  status?: string;
3725
3728
  type?: string;
3726
3729
  updated_at?: string;
@@ -3781,10 +3784,10 @@ type Database = {
3781
3784
  Row: {
3782
3785
  affected_page: string | null;
3783
3786
  category: string;
3784
- context: Json | null;
3787
+ context: Json$1 | null;
3785
3788
  created_at: string;
3786
3789
  description: string;
3787
- evidence: Json | null;
3790
+ evidence: Json$1 | null;
3788
3791
  id: string;
3789
3792
  organization_id: string;
3790
3793
  project_id: string | null;
@@ -3802,10 +3805,10 @@ type Database = {
3802
3805
  Insert: {
3803
3806
  affected_page?: string | null;
3804
3807
  category: string;
3805
- context?: Json | null;
3808
+ context?: Json$1 | null;
3806
3809
  created_at?: string;
3807
3810
  description: string;
3808
- evidence?: Json | null;
3811
+ evidence?: Json$1 | null;
3809
3812
  id?: string;
3810
3813
  organization_id: string;
3811
3814
  project_id?: string | null;
@@ -3823,10 +3826,10 @@ type Database = {
3823
3826
  Update: {
3824
3827
  affected_page?: string | null;
3825
3828
  category?: string;
3826
- context?: Json | null;
3829
+ context?: Json$1 | null;
3827
3830
  created_at?: string;
3828
3831
  description?: string;
3829
- evidence?: Json | null;
3832
+ evidence?: Json$1 | null;
3830
3833
  id?: string;
3831
3834
  organization_id?: string;
3832
3835
  project_id?: string | null;
@@ -3872,7 +3875,7 @@ type Database = {
3872
3875
  message: string;
3873
3876
  message_index: number | null;
3874
3877
  message_type: string | null;
3875
- metadata: Json | null;
3878
+ metadata: Json$1 | null;
3876
3879
  role: string;
3877
3880
  session_id: string;
3878
3881
  session_turn_number: number;
@@ -3883,7 +3886,7 @@ type Database = {
3883
3886
  message: string;
3884
3887
  message_index?: number | null;
3885
3888
  message_type?: string | null;
3886
- metadata?: Json | null;
3889
+ metadata?: Json$1 | null;
3887
3890
  role: string;
3888
3891
  session_id: string;
3889
3892
  session_turn_number: number;
@@ -3894,7 +3897,7 @@ type Database = {
3894
3897
  message?: string;
3895
3898
  message_index?: number | null;
3896
3899
  message_type?: string | null;
3897
- metadata?: Json | null;
3900
+ metadata?: Json$1 | null;
3898
3901
  role?: string;
3899
3902
  session_id?: string;
3900
3903
  session_turn_number?: number;
@@ -3917,9 +3920,9 @@ type Database = {
3917
3920
  cumulative_output_tokens: number;
3918
3921
  deleted_at: string | null;
3919
3922
  ended_at: string | null;
3920
- memory_snapshot: Json;
3923
+ memory_snapshot: Json$1;
3921
3924
  memory_version: number;
3922
- metadata: Json | null;
3925
+ metadata: Json$1 | null;
3923
3926
  organization_id: string;
3924
3927
  resource_id: string;
3925
3928
  session_id: string;
@@ -3934,9 +3937,9 @@ type Database = {
3934
3937
  cumulative_output_tokens?: number;
3935
3938
  deleted_at?: string | null;
3936
3939
  ended_at?: string | null;
3937
- memory_snapshot: Json;
3940
+ memory_snapshot: Json$1;
3938
3941
  memory_version?: number;
3939
- metadata?: Json | null;
3942
+ metadata?: Json$1 | null;
3940
3943
  organization_id: string;
3941
3944
  resource_id: string;
3942
3945
  session_id?: string;
@@ -3951,9 +3954,9 @@ type Database = {
3951
3954
  cumulative_output_tokens?: number;
3952
3955
  deleted_at?: string | null;
3953
3956
  ended_at?: string | null;
3954
- memory_snapshot?: Json;
3957
+ memory_snapshot?: Json$1;
3955
3958
  memory_version?: number;
3956
- metadata?: Json | null;
3959
+ metadata?: Json$1 | null;
3957
3960
  organization_id?: string;
3958
3961
  resource_id?: string;
3959
3962
  session_id?: string;
@@ -3988,7 +3991,7 @@ type Database = {
3988
3991
  last_execution_id: string | null;
3989
3992
  last_run_at: string | null;
3990
3993
  max_retries: number;
3991
- metadata: Json | null;
3994
+ metadata: Json$1 | null;
3992
3995
  name: string;
3993
3996
  next_run_at: string | null;
3994
3997
  organization_id: string;
@@ -3996,7 +3999,7 @@ type Database = {
3996
3999
  origin_resource_id: string | null;
3997
4000
  origin_resource_type: string | null;
3998
4001
  retry_count: number;
3999
- schedule_config: Json;
4002
+ schedule_config: Json$1;
4000
4003
  status: string;
4001
4004
  target_resource_id: string;
4002
4005
  target_resource_type: string;
@@ -4011,7 +4014,7 @@ type Database = {
4011
4014
  last_execution_id?: string | null;
4012
4015
  last_run_at?: string | null;
4013
4016
  max_retries?: number;
4014
- metadata?: Json | null;
4017
+ metadata?: Json$1 | null;
4015
4018
  name: string;
4016
4019
  next_run_at?: string | null;
4017
4020
  organization_id: string;
@@ -4019,7 +4022,7 @@ type Database = {
4019
4022
  origin_resource_id?: string | null;
4020
4023
  origin_resource_type?: string | null;
4021
4024
  retry_count?: number;
4022
- schedule_config: Json;
4025
+ schedule_config: Json$1;
4023
4026
  status?: string;
4024
4027
  target_resource_id: string;
4025
4028
  target_resource_type: string;
@@ -4034,7 +4037,7 @@ type Database = {
4034
4037
  last_execution_id?: string | null;
4035
4038
  last_run_at?: string | null;
4036
4039
  max_retries?: number;
4037
- metadata?: Json | null;
4040
+ metadata?: Json$1 | null;
4038
4041
  name?: string;
4039
4042
  next_run_at?: string | null;
4040
4043
  organization_id?: string;
@@ -4042,7 +4045,7 @@ type Database = {
4042
4045
  origin_resource_id?: string | null;
4043
4046
  origin_resource_type?: string | null;
4044
4047
  retry_count?: number;
4045
- schedule_config?: Json;
4048
+ schedule_config?: Json$1;
4046
4049
  status?: string;
4047
4050
  target_resource_id?: string;
4048
4051
  target_resource_type?: string;
@@ -4064,7 +4067,7 @@ type Database = {
4064
4067
  created_at: string;
4065
4068
  created_by: string;
4066
4069
  id: string;
4067
- metadata: Json;
4070
+ metadata: Json$1;
4068
4071
  organization_id: string | null;
4069
4072
  pinned: boolean;
4070
4073
  priority: string;
@@ -4079,7 +4082,7 @@ type Database = {
4079
4082
  created_at?: string;
4080
4083
  created_by?: string;
4081
4084
  id?: string;
4082
- metadata?: Json;
4085
+ metadata?: Json$1;
4083
4086
  organization_id?: string | null;
4084
4087
  pinned?: boolean;
4085
4088
  priority?: string;
@@ -4094,7 +4097,7 @@ type Database = {
4094
4097
  created_at?: string;
4095
4098
  created_by?: string;
4096
4099
  id?: string;
4097
- metadata?: Json;
4100
+ metadata?: Json$1;
4098
4101
  organization_id?: string | null;
4099
4102
  pinned?: boolean;
4100
4103
  priority?: string;
@@ -4123,7 +4126,7 @@ type Database = {
4123
4126
  };
4124
4127
  users: {
4125
4128
  Row: {
4126
- config: Json;
4129
+ config: Json$1;
4127
4130
  created_at: string;
4128
4131
  display_name: string | null;
4129
4132
  email: string;
@@ -4139,7 +4142,7 @@ type Database = {
4139
4142
  workos_user_id: string | null;
4140
4143
  };
4141
4144
  Insert: {
4142
- config?: Json;
4145
+ config?: Json$1;
4143
4146
  created_at?: string;
4144
4147
  display_name?: string | null;
4145
4148
  email: string;
@@ -4155,7 +4158,7 @@ type Database = {
4155
4158
  workos_user_id?: string | null;
4156
4159
  };
4157
4160
  Update: {
4158
- config?: Json;
4161
+ config?: Json$1;
4159
4162
  created_at?: string;
4160
4163
  display_name?: string | null;
4161
4164
  email?: string;
@@ -4242,7 +4245,7 @@ type Database = {
4242
4245
  Args: {
4243
4246
  p_platform: string;
4244
4247
  };
4245
- Returns: Json;
4248
+ Returns: Json$1;
4246
4249
  };
4247
4250
  activate_deployment_atomic: {
4248
4251
  Args: {
@@ -4265,7 +4268,7 @@ type Database = {
4265
4268
  };
4266
4269
  append_deal_activity: {
4267
4270
  Args: {
4268
- p_activity: Json;
4271
+ p_activity: Json$1;
4269
4272
  p_deal_id: string;
4270
4273
  p_organization_id: string;
4271
4274
  };
@@ -4273,7 +4276,7 @@ type Database = {
4273
4276
  };
4274
4277
  auth_jwt_claims: {
4275
4278
  Args: Record<PropertyKey, never>;
4276
- Returns: Json;
4279
+ Returns: Json$1;
4277
4280
  };
4278
4281
  auth_uid_safe: {
4279
4282
  Args: Record<PropertyKey, never>;
@@ -4288,7 +4291,7 @@ type Database = {
4288
4291
  };
4289
4292
  create_artifact_version: {
4290
4293
  Args: {
4291
- p_content: Json;
4294
+ p_content: Json$1;
4292
4295
  p_created_by?: string;
4293
4296
  p_kind: string;
4294
4297
  p_organization_id: string;
@@ -4298,7 +4301,7 @@ type Database = {
4298
4301
  p_source_execution_id?: string;
4299
4302
  };
4300
4303
  Returns: {
4301
- content: Json;
4304
+ content: Json$1;
4302
4305
  created_at: string;
4303
4306
  created_by: string | null;
4304
4307
  id: string;
@@ -4338,9 +4341,9 @@ type Database = {
4338
4341
  cumulative_output_tokens: number;
4339
4342
  deleted_at: string;
4340
4343
  ended_at: string;
4341
- memory_snapshot: Json;
4344
+ memory_snapshot: Json$1;
4342
4345
  memory_version: number;
4343
- metadata: Json;
4346
+ metadata: Json$1;
4344
4347
  organization_id: string;
4345
4348
  resource_id: string;
4346
4349
  session_id: string;
@@ -4413,17 +4416,17 @@ type Database = {
4413
4416
  p_organization_id: string;
4414
4417
  p_role_slug?: string;
4415
4418
  };
4416
- Returns: Json;
4419
+ Returns: Json$1;
4417
4420
  };
4418
4421
  process_due_schedules: {
4419
4422
  Args: Record<PropertyKey, never>;
4420
- Returns: Json;
4423
+ Returns: Json$1;
4421
4424
  };
4422
4425
  purge_stale_test_data: {
4423
4426
  Args: {
4424
4427
  p_max_age?: unknown;
4425
4428
  };
4426
- Returns: Json;
4429
+ Returns: Json$1;
4427
4430
  };
4428
4431
  recompute_all_memberships: {
4429
4432
  Args: Record<PropertyKey, never>;
@@ -4477,23 +4480,67 @@ type Database = {
4477
4480
  };
4478
4481
  };
4479
4482
  };
4480
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
4481
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
4482
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
4483
- schema: keyof DatabaseWithoutInternals;
4484
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
4485
- schema: keyof DatabaseWithoutInternals;
4486
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
4487
- schema: keyof DatabaseWithoutInternals;
4488
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
4489
- Row: infer R;
4490
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
4491
- Row: infer R;
4492
- } ? R : never : never;
4493
4483
 
4494
- type SupabaseUserProfile = Tables<'users'>;
4495
- type SupabaseApiKey = Tables<'api_keys'>;
4496
- /** API response type for API key list items (omits sensitive key_hash) */
4484
+ /**
4485
+ * Concrete row shapes for the published Supabase tables.
4486
+ *
4487
+ * GENERATED by `scripts/gen-published-rows.mjs` — do not hand-edit; re-run the script instead.
4488
+ *
4489
+ * These were `Tables<'users'>` / `TablesInsert<...>` aliases in `./index.ts`. Each one indexes
4490
+ * into the generated `Database` type, and a published `.d.ts` that references `Database` makes
4491
+ * rollup inline the entire schema — every table plus internal RPC signatures such as
4492
+ * `get_platform_credential_kek` — into the tenant-facing bundle. Both `@elevasis/core/auth` and
4493
+ * `@elevasis/core/test-utils` reached `Database` through this barrel, which is the actual cause
4494
+ * of health-audit R3; the two files that audit named were only the ones a literal grep could see.
4495
+ *
4496
+ * This module deliberately imports NOTHING from `./database.types`. One imported name is enough
4497
+ * to pull that module into the rollup graph and bring `Database` with it. Drift is caught by
4498
+ * `./published-rows.assertions.ts`, which no published entry point imports.
4499
+ */
4500
+ /**
4501
+ * Structurally identical to `Json` in `./database.types`, redeclared to keep this module free of
4502
+ * imports from it. See the note above.
4503
+ */
4504
+ type Json = string | number | boolean | null | {
4505
+ [key: string]: Json | undefined;
4506
+ } | Json[];
4507
+ type SupabaseUserProfile = {
4508
+ config: Json;
4509
+ created_at: string;
4510
+ display_name: string | null;
4511
+ email: string;
4512
+ first_name: string | null;
4513
+ id: string;
4514
+ is_active: boolean;
4515
+ is_platform_admin: boolean | null;
4516
+ last_login_at: string | null;
4517
+ last_name: string | null;
4518
+ last_visited_org: string | null;
4519
+ profile_picture_url: string | null;
4520
+ updated_at: string;
4521
+ workos_user_id: string | null;
4522
+ };
4523
+ type SupabaseApiKey = {
4524
+ created_at: string | null;
4525
+ created_by: string | null;
4526
+ id: string;
4527
+ key_hash: string;
4528
+ last_used_at: string | null;
4529
+ name: string;
4530
+ organization_id: string;
4531
+ };
4532
+
4533
+ /**
4534
+ * Hand-authored types composed from the concrete row shapes.
4535
+ *
4536
+ * These live here rather than in `./index.ts` because that barrel re-exports `Database` itself, so
4537
+ * importing anything from it drags the entire generated schema into the importer's declaration
4538
+ * output — and from there into any published bundle that reaches it (health-audit R3). Consumers on
4539
+ * a published path import from this module and `./published-rows` directly; `./index.ts` re-exports
4540
+ * both for everything else.
4541
+ */
4542
+
4543
+ /** API response type for API key list items (omits sensitive key_hash). */
4497
4544
  type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
4498
4545
 
4499
4546
  /** Raw database row type for acq_deals table */
@@ -5167,6 +5214,20 @@ interface OAuthState {
5167
5214
  timestamp: number;
5168
5215
  credentialName: string;
5169
5216
  provider: string;
5217
+ /**
5218
+ * Origin of the app that started this flow (e.g. 'https://app.contemplativerecords.com').
5219
+ *
5220
+ * Validated against the platform allowed-origins list in `authorizeHandler`
5221
+ * BEFORE it is sealed into the signed state, so the callback can hand it to
5222
+ * the callback page without re-checking. Every app that renders the OAuth
5223
+ * card runs on its own origin, and the callback page is served from a single
5224
+ * deploy-global one — it cannot read `window.opener.location.origin` across
5225
+ * that boundary, so the origin has to travel with the flow.
5226
+ *
5227
+ * Optional so a state issued before this field existed still decodes; the
5228
+ * callback falls back to `FRONTEND_URL` when it is absent.
5229
+ */
5230
+ appOrigin?: string;
5170
5231
  }
5171
5232
 
5172
5233
  /**