@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
@@ -9,9 +9,9 @@ import { useAuth } from '@workos-inc/authkit-react';
9
9
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
10
10
  import { IconBrain } from '@tabler/icons-react';
11
11
 
12
- type Json = string | number | boolean | null | {
13
- [key: string]: Json | undefined;
14
- } | Json[];
12
+ type Json$1 = string | number | boolean | null | {
13
+ [key: string]: Json$1 | undefined;
14
+ } | Json$1[];
15
15
  type Database = {
16
16
  public: {
17
17
  Tables: {
@@ -23,7 +23,7 @@ type Database = {
23
23
  client_id: string | null;
24
24
  created_at: string;
25
25
  domain: string | null;
26
- enrichment_data: Json | null;
26
+ enrichment_data: Json$1 | null;
27
27
  filter_reason: string | null;
28
28
  founded_year: number | null;
29
29
  id: string;
@@ -33,10 +33,10 @@ type Database = {
33
33
  name: string;
34
34
  num_employees: number | null;
35
35
  organization_id: string;
36
- processing_state: Json;
36
+ processing_state: Json$1;
37
37
  qualification_rubric_key: string | null;
38
38
  qualification_score: number | null;
39
- qualification_signals: Json | null;
39
+ qualification_signals: Json$1 | null;
40
40
  segment: string | null;
41
41
  source: string | null;
42
42
  status: string;
@@ -50,7 +50,7 @@ type Database = {
50
50
  client_id?: string | null;
51
51
  created_at?: string;
52
52
  domain?: string | null;
53
- enrichment_data?: Json | null;
53
+ enrichment_data?: Json$1 | null;
54
54
  filter_reason?: string | null;
55
55
  founded_year?: number | null;
56
56
  id?: string;
@@ -60,10 +60,10 @@ type Database = {
60
60
  name: string;
61
61
  num_employees?: number | null;
62
62
  organization_id: string;
63
- processing_state?: Json;
63
+ processing_state?: Json$1;
64
64
  qualification_rubric_key?: string | null;
65
65
  qualification_score?: number | null;
66
- qualification_signals?: Json | null;
66
+ qualification_signals?: Json$1 | null;
67
67
  segment?: string | null;
68
68
  source?: string | null;
69
69
  status?: string;
@@ -77,7 +77,7 @@ type Database = {
77
77
  client_id?: string | null;
78
78
  created_at?: string;
79
79
  domain?: string | null;
80
- enrichment_data?: Json | null;
80
+ enrichment_data?: Json$1 | null;
81
81
  filter_reason?: string | null;
82
82
  founded_year?: number | null;
83
83
  id?: string;
@@ -87,10 +87,10 @@ type Database = {
87
87
  name?: string;
88
88
  num_employees?: number | null;
89
89
  organization_id?: string;
90
- processing_state?: Json;
90
+ processing_state?: Json$1;
91
91
  qualification_rubric_key?: string | null;
92
92
  qualification_score?: number | null;
93
- qualification_signals?: Json | null;
93
+ qualification_signals?: Json$1 | null;
94
94
  segment?: string | null;
95
95
  source?: string | null;
96
96
  status?: string;
@@ -124,7 +124,7 @@ type Database = {
124
124
  created_at: string;
125
125
  email: string;
126
126
  email_valid: string | null;
127
- enrichment_data: Json;
127
+ enrichment_data: Json$1;
128
128
  filter_reason: string | null;
129
129
  first_name: string | null;
130
130
  headline: string | null;
@@ -134,10 +134,10 @@ type Database = {
134
134
  nurture: boolean;
135
135
  opening_line: string | null;
136
136
  organization_id: string;
137
- processing_state: Json;
137
+ processing_state: Json$1;
138
138
  qualification_rubric_key: string | null;
139
139
  qualification_score: number | null;
140
- qualification_signals: Json | null;
140
+ qualification_signals: Json$1 | null;
141
141
  source: string | null;
142
142
  source_id: string | null;
143
143
  status: string;
@@ -153,7 +153,7 @@ type Database = {
153
153
  created_at?: string;
154
154
  email: string;
155
155
  email_valid?: string | null;
156
- enrichment_data?: Json;
156
+ enrichment_data?: Json$1;
157
157
  filter_reason?: string | null;
158
158
  first_name?: string | null;
159
159
  headline?: string | null;
@@ -163,10 +163,10 @@ type Database = {
163
163
  nurture?: boolean;
164
164
  opening_line?: string | null;
165
165
  organization_id: string;
166
- processing_state?: Json;
166
+ processing_state?: Json$1;
167
167
  qualification_rubric_key?: string | null;
168
168
  qualification_score?: number | null;
169
- qualification_signals?: Json | null;
169
+ qualification_signals?: Json$1 | null;
170
170
  source?: string | null;
171
171
  source_id?: string | null;
172
172
  status?: string;
@@ -182,7 +182,7 @@ type Database = {
182
182
  created_at?: string;
183
183
  email?: string;
184
184
  email_valid?: string | null;
185
- enrichment_data?: Json;
185
+ enrichment_data?: Json$1;
186
186
  filter_reason?: string | null;
187
187
  first_name?: string | null;
188
188
  headline?: string | null;
@@ -192,10 +192,10 @@ type Database = {
192
192
  nurture?: boolean;
193
193
  opening_line?: string | null;
194
194
  organization_id?: string;
195
- processing_state?: Json;
195
+ processing_state?: Json$1;
196
196
  qualification_rubric_key?: string | null;
197
197
  qualification_score?: number | null;
198
- qualification_signals?: Json | null;
198
+ qualification_signals?: Json$1 | null;
199
199
  source?: string | null;
200
200
  source_id?: string | null;
201
201
  status?: string;
@@ -364,7 +364,7 @@ type Database = {
364
364
  };
365
365
  acq_deals: {
366
366
  Row: {
367
- activity_log: Json;
367
+ activity_log: Json$1;
368
368
  client_id: string | null;
369
369
  closed_lost_at: string | null;
370
370
  closed_lost_reason: string | null;
@@ -372,7 +372,7 @@ type Database = {
372
372
  contact_email: string;
373
373
  contact_id: string | null;
374
374
  created_at: string;
375
- discovery_data: Json | null;
375
+ discovery_data: Json$1 | null;
376
376
  discovery_submitted_at: string | null;
377
377
  discovery_submitted_by: string | null;
378
378
  id: string;
@@ -384,7 +384,7 @@ type Database = {
384
384
  payment_link_sent_at: string | null;
385
385
  payment_received_at: string | null;
386
386
  pipeline_key: string;
387
- proposal_data: Json | null;
387
+ proposal_data: Json$1 | null;
388
388
  proposal_generated_at: string | null;
389
389
  proposal_pdf_url: string | null;
390
390
  proposal_reviewed_at: string | null;
@@ -403,7 +403,7 @@ type Database = {
403
403
  updated_at: string;
404
404
  };
405
405
  Insert: {
406
- activity_log?: Json;
406
+ activity_log?: Json$1;
407
407
  client_id?: string | null;
408
408
  closed_lost_at?: string | null;
409
409
  closed_lost_reason?: string | null;
@@ -411,7 +411,7 @@ type Database = {
411
411
  contact_email: string;
412
412
  contact_id?: string | null;
413
413
  created_at?: string;
414
- discovery_data?: Json | null;
414
+ discovery_data?: Json$1 | null;
415
415
  discovery_submitted_at?: string | null;
416
416
  discovery_submitted_by?: string | null;
417
417
  id?: string;
@@ -423,7 +423,7 @@ type Database = {
423
423
  payment_link_sent_at?: string | null;
424
424
  payment_received_at?: string | null;
425
425
  pipeline_key?: string;
426
- proposal_data?: Json | null;
426
+ proposal_data?: Json$1 | null;
427
427
  proposal_generated_at?: string | null;
428
428
  proposal_pdf_url?: string | null;
429
429
  proposal_reviewed_at?: string | null;
@@ -442,7 +442,7 @@ type Database = {
442
442
  updated_at?: string;
443
443
  };
444
444
  Update: {
445
- activity_log?: Json;
445
+ activity_log?: Json$1;
446
446
  client_id?: string | null;
447
447
  closed_lost_at?: string | null;
448
448
  closed_lost_reason?: string | null;
@@ -450,7 +450,7 @@ type Database = {
450
450
  contact_email?: string;
451
451
  contact_id?: string | null;
452
452
  created_at?: string;
453
- discovery_data?: Json | null;
453
+ discovery_data?: Json$1 | null;
454
454
  discovery_submitted_at?: string | null;
455
455
  discovery_submitted_by?: string | null;
456
456
  id?: string;
@@ -462,7 +462,7 @@ type Database = {
462
462
  payment_link_sent_at?: string | null;
463
463
  payment_received_at?: string | null;
464
464
  pipeline_key?: string;
465
- proposal_data?: Json | null;
465
+ proposal_data?: Json$1 | null;
466
466
  proposal_generated_at?: string | null;
467
467
  proposal_pdf_url?: string | null;
468
468
  proposal_reviewed_at?: string | null;
@@ -534,7 +534,7 @@ type Database = {
534
534
  };
535
535
  acq_list_companies: {
536
536
  Row: {
537
- activity_log: Json;
537
+ activity_log: Json$1;
538
538
  added_at: string;
539
539
  added_by: string | null;
540
540
  company_id: string;
@@ -548,7 +548,7 @@ type Database = {
548
548
  state_key: string;
549
549
  };
550
550
  Insert: {
551
- activity_log?: Json;
551
+ activity_log?: Json$1;
552
552
  added_at?: string;
553
553
  added_by?: string | null;
554
554
  company_id: string;
@@ -562,7 +562,7 @@ type Database = {
562
562
  state_key: string;
563
563
  };
564
564
  Update: {
565
- activity_log?: Json;
565
+ activity_log?: Json$1;
566
566
  added_at?: string;
567
567
  added_by?: string | null;
568
568
  company_id?: string;
@@ -612,21 +612,21 @@ type Database = {
612
612
  execution_id: string;
613
613
  id: string;
614
614
  list_id: string;
615
- payload: Json;
615
+ payload: Json$1;
616
616
  };
617
617
  Insert: {
618
618
  created_at?: string;
619
619
  execution_id: string;
620
620
  id?: string;
621
621
  list_id: string;
622
- payload?: Json;
622
+ payload?: Json$1;
623
623
  };
624
624
  Update: {
625
625
  created_at?: string;
626
626
  execution_id?: string;
627
627
  id?: string;
628
628
  list_id?: string;
629
- payload?: Json;
629
+ payload?: Json$1;
630
630
  };
631
631
  Relationships: [
632
632
  {
@@ -647,7 +647,7 @@ type Database = {
647
647
  };
648
648
  acq_list_members: {
649
649
  Row: {
650
- activity_log: Json;
650
+ activity_log: Json$1;
651
651
  added_at: string;
652
652
  added_by: string | null;
653
653
  contact_id: string;
@@ -661,7 +661,7 @@ type Database = {
661
661
  state_key: string;
662
662
  };
663
663
  Insert: {
664
- activity_log?: Json;
664
+ activity_log?: Json$1;
665
665
  added_at?: string;
666
666
  added_by?: string | null;
667
667
  contact_id: string;
@@ -675,7 +675,7 @@ type Database = {
675
675
  state_key: string;
676
676
  };
677
677
  Update: {
678
- activity_log?: Json;
678
+ activity_log?: Json$1;
679
679
  added_at?: string;
680
680
  added_by?: string | null;
681
681
  contact_id?: string;
@@ -725,15 +725,15 @@ type Database = {
725
725
  completed_at: string | null;
726
726
  created_at: string;
727
727
  description: string | null;
728
- icp: Json;
728
+ icp: Json$1;
729
729
  id: string;
730
730
  instantly_campaign_id: string | null;
731
731
  launched_at: string | null;
732
- metadata: Json;
732
+ metadata: Json$1;
733
733
  name: string;
734
734
  organization_id: string;
735
- pipeline_config: Json;
736
- scraping_config: Json;
735
+ pipeline_config: Json$1;
736
+ scraping_config: Json$1;
737
737
  status: string;
738
738
  };
739
739
  Insert: {
@@ -741,15 +741,15 @@ type Database = {
741
741
  completed_at?: string | null;
742
742
  created_at?: string;
743
743
  description?: string | null;
744
- icp?: Json;
744
+ icp?: Json$1;
745
745
  id?: string;
746
746
  instantly_campaign_id?: string | null;
747
747
  launched_at?: string | null;
748
- metadata?: Json;
748
+ metadata?: Json$1;
749
749
  name: string;
750
750
  organization_id: string;
751
- pipeline_config?: Json;
752
- scraping_config?: Json;
751
+ pipeline_config?: Json$1;
752
+ scraping_config?: Json$1;
753
753
  status?: string;
754
754
  };
755
755
  Update: {
@@ -757,15 +757,15 @@ type Database = {
757
757
  completed_at?: string | null;
758
758
  created_at?: string;
759
759
  description?: string | null;
760
- icp?: Json;
760
+ icp?: Json$1;
761
761
  id?: string;
762
762
  instantly_campaign_id?: string | null;
763
763
  launched_at?: string | null;
764
- metadata?: Json;
764
+ metadata?: Json$1;
765
765
  name?: string;
766
766
  organization_id?: string;
767
- pipeline_config?: Json;
768
- scraping_config?: Json;
767
+ pipeline_config?: Json$1;
768
+ scraping_config?: Json$1;
769
769
  status?: string;
770
770
  };
771
771
  Relationships: [
@@ -780,7 +780,7 @@ type Database = {
780
780
  };
781
781
  acq_seo_metrics: {
782
782
  Row: {
783
- ai_citations: Json | null;
783
+ ai_citations: Json$1 | null;
784
784
  avg_position: number | null;
785
785
  clicks: number | null;
786
786
  created_at: string;
@@ -803,7 +803,7 @@ type Database = {
803
803
  word_count: number | null;
804
804
  };
805
805
  Insert: {
806
- ai_citations?: Json | null;
806
+ ai_citations?: Json$1 | null;
807
807
  avg_position?: number | null;
808
808
  clicks?: number | null;
809
809
  created_at?: string;
@@ -826,7 +826,7 @@ type Database = {
826
826
  word_count?: number | null;
827
827
  };
828
828
  Update: {
829
- ai_citations?: Json | null;
829
+ ai_citations?: Json$1 | null;
830
830
  avg_position?: number | null;
831
831
  clicks?: number | null;
832
832
  created_at?: string;
@@ -868,19 +868,19 @@ type Database = {
868
868
  acq_seo_pages: {
869
869
  Row: {
870
870
  city: string | null;
871
- content: Json | null;
871
+ content: Json$1 | null;
872
872
  created_at: string;
873
- faq_items: Json | null;
873
+ faq_items: Json$1 | null;
874
874
  hero_image_url: string | null;
875
875
  id: string;
876
- internal_links: Json | null;
877
- local_data: Json | null;
876
+ internal_links: Json$1 | null;
877
+ local_data: Json$1 | null;
878
878
  meta_description: string | null;
879
879
  organization_id: string;
880
880
  page_type: string;
881
881
  published_at: string | null;
882
882
  refreshed_at: string | null;
883
- schema_markup: Json | null;
883
+ schema_markup: Json$1 | null;
884
884
  slug: string;
885
885
  state: string | null;
886
886
  status: string;
@@ -891,19 +891,19 @@ type Database = {
891
891
  };
892
892
  Insert: {
893
893
  city?: string | null;
894
- content?: Json | null;
894
+ content?: Json$1 | null;
895
895
  created_at?: string;
896
- faq_items?: Json | null;
896
+ faq_items?: Json$1 | null;
897
897
  hero_image_url?: string | null;
898
898
  id?: string;
899
- internal_links?: Json | null;
900
- local_data?: Json | null;
899
+ internal_links?: Json$1 | null;
900
+ local_data?: Json$1 | null;
901
901
  meta_description?: string | null;
902
902
  organization_id: string;
903
903
  page_type: string;
904
904
  published_at?: string | null;
905
905
  refreshed_at?: string | null;
906
- schema_markup?: Json | null;
906
+ schema_markup?: Json$1 | null;
907
907
  slug: string;
908
908
  state?: string | null;
909
909
  status?: string;
@@ -914,19 +914,19 @@ type Database = {
914
914
  };
915
915
  Update: {
916
916
  city?: string | null;
917
- content?: Json | null;
917
+ content?: Json$1 | null;
918
918
  created_at?: string;
919
- faq_items?: Json | null;
919
+ faq_items?: Json$1 | null;
920
920
  hero_image_url?: string | null;
921
921
  id?: string;
922
- internal_links?: Json | null;
923
- local_data?: Json | null;
922
+ internal_links?: Json$1 | null;
923
+ local_data?: Json$1 | null;
924
924
  meta_description?: string | null;
925
925
  organization_id?: string;
926
926
  page_type?: string;
927
927
  published_at?: string | null;
928
928
  refreshed_at?: string | null;
929
- schema_markup?: Json | null;
929
+ schema_markup?: Json$1 | null;
930
930
  slug?: string;
931
931
  state?: string | null;
932
932
  status?: string;
@@ -960,7 +960,7 @@ type Database = {
960
960
  initial_draft: string | null;
961
961
  matched_keywords: string[];
962
962
  matched_query: string | null;
963
- metadata: Json;
963
+ metadata: Json$1;
964
964
  organization_id: string;
965
965
  platform: string;
966
966
  platform_post_id: string;
@@ -990,7 +990,7 @@ type Database = {
990
990
  initial_draft?: string | null;
991
991
  matched_keywords?: string[];
992
992
  matched_query?: string | null;
993
- metadata?: Json;
993
+ metadata?: Json$1;
994
994
  organization_id: string;
995
995
  platform: string;
996
996
  platform_post_id: string;
@@ -1020,7 +1020,7 @@ type Database = {
1020
1020
  initial_draft?: string | null;
1021
1021
  matched_keywords?: string[];
1022
1022
  matched_query?: string | null;
1023
- metadata?: Json;
1023
+ metadata?: Json$1;
1024
1024
  organization_id?: string;
1025
1025
  platform?: string;
1026
1026
  platform_post_id?: string;
@@ -1058,7 +1058,7 @@ type Database = {
1058
1058
  entity_name: string | null;
1059
1059
  entity_type: string;
1060
1060
  id: string;
1061
- metadata: Json | null;
1061
+ metadata: Json$1 | null;
1062
1062
  occurred_at: string;
1063
1063
  organization_id: string;
1064
1064
  status: string;
@@ -1075,7 +1075,7 @@ type Database = {
1075
1075
  entity_name?: string | null;
1076
1076
  entity_type: string;
1077
1077
  id?: string;
1078
- metadata?: Json | null;
1078
+ metadata?: Json$1 | null;
1079
1079
  occurred_at?: string;
1080
1080
  organization_id: string;
1081
1081
  status: string;
@@ -1092,7 +1092,7 @@ type Database = {
1092
1092
  entity_name?: string | null;
1093
1093
  entity_type?: string;
1094
1094
  id?: string;
1095
- metadata?: Json | null;
1095
+ metadata?: Json$1 | null;
1096
1096
  occurred_at?: string;
1097
1097
  organization_id?: string;
1098
1098
  status?: string;
@@ -1125,8 +1125,8 @@ type Database = {
1125
1125
  agent_access_grants: {
1126
1126
  Row: {
1127
1127
  allowed_origins: string[];
1128
- branding: Json;
1129
- capture_fields: Json;
1128
+ branding: Json$1;
1129
+ capture_fields: Json$1;
1130
1130
  code_hash: string | null;
1131
1131
  code_salt: string | null;
1132
1132
  created_at: string;
@@ -1139,13 +1139,13 @@ type Database = {
1139
1139
  organization_id: string;
1140
1140
  resource_id: string;
1141
1141
  slug: string;
1142
- tool_policy: Json;
1142
+ tool_policy: Json$1;
1143
1143
  updated_at: string;
1144
1144
  };
1145
1145
  Insert: {
1146
1146
  allowed_origins?: string[];
1147
- branding?: Json;
1148
- capture_fields?: Json;
1147
+ branding?: Json$1;
1148
+ capture_fields?: Json$1;
1149
1149
  code_hash?: string | null;
1150
1150
  code_salt?: string | null;
1151
1151
  created_at?: string;
@@ -1158,13 +1158,13 @@ type Database = {
1158
1158
  organization_id: string;
1159
1159
  resource_id: string;
1160
1160
  slug: string;
1161
- tool_policy?: Json;
1161
+ tool_policy?: Json$1;
1162
1162
  updated_at?: string;
1163
1163
  };
1164
1164
  Update: {
1165
1165
  allowed_origins?: string[];
1166
- branding?: Json;
1167
- capture_fields?: Json;
1166
+ branding?: Json$1;
1167
+ capture_fields?: Json$1;
1168
1168
  code_hash?: string | null;
1169
1169
  code_salt?: string | null;
1170
1170
  created_at?: string;
@@ -1177,7 +1177,7 @@ type Database = {
1177
1177
  organization_id?: string;
1178
1178
  resource_id?: string;
1179
1179
  slug?: string;
1180
- tool_policy?: Json;
1180
+ tool_policy?: Json$1;
1181
1181
  updated_at?: string;
1182
1182
  };
1183
1183
  Relationships: [
@@ -1237,7 +1237,7 @@ type Database = {
1237
1237
  };
1238
1238
  artifacts: {
1239
1239
  Row: {
1240
- content: Json;
1240
+ content: Json$1;
1241
1241
  created_at: string;
1242
1242
  created_by: string | null;
1243
1243
  id: string;
@@ -1252,7 +1252,7 @@ type Database = {
1252
1252
  version: number;
1253
1253
  };
1254
1254
  Insert: {
1255
- content: Json;
1255
+ content: Json$1;
1256
1256
  created_at?: string;
1257
1257
  created_by?: string | null;
1258
1258
  id?: string;
@@ -1267,7 +1267,7 @@ type Database = {
1267
1267
  version?: number;
1268
1268
  };
1269
1269
  Update: {
1270
- content?: Json;
1270
+ content?: Json$1;
1271
1271
  created_at?: string;
1272
1272
  created_by?: string | null;
1273
1273
  id?: string;
@@ -1296,7 +1296,7 @@ type Database = {
1296
1296
  converted_at: string | null;
1297
1297
  created_at: string;
1298
1298
  id: string;
1299
- metadata: Json;
1299
+ metadata: Json$1;
1300
1300
  name: string;
1301
1301
  organization_id: string;
1302
1302
  primary_company_id: string | null;
@@ -1310,7 +1310,7 @@ type Database = {
1310
1310
  converted_at?: string | null;
1311
1311
  created_at?: string;
1312
1312
  id?: string;
1313
- metadata?: Json;
1313
+ metadata?: Json$1;
1314
1314
  name: string;
1315
1315
  organization_id: string;
1316
1316
  primary_company_id?: string | null;
@@ -1324,7 +1324,7 @@ type Database = {
1324
1324
  converted_at?: string | null;
1325
1325
  created_at?: string;
1326
1326
  id?: string;
1327
- metadata?: Json;
1327
+ metadata?: Json$1;
1328
1328
  name?: string;
1329
1329
  organization_id?: string;
1330
1330
  primary_company_id?: string | null;
@@ -1367,18 +1367,18 @@ type Database = {
1367
1367
  };
1368
1368
  command_queue: {
1369
1369
  Row: {
1370
- action_payload: Json | null;
1371
- actions: Json;
1370
+ action_payload: Json$1 | null;
1371
+ actions: Json$1;
1372
1372
  completed_at: string | null;
1373
1373
  completed_by: string | null;
1374
- context: Json;
1374
+ context: Json$1;
1375
1375
  created_at: string;
1376
1376
  description: string | null;
1377
1377
  expires_at: string | null;
1378
1378
  human_checkpoint: string | null;
1379
1379
  id: string;
1380
1380
  idempotency_key: string | null;
1381
- metadata: Json | null;
1381
+ metadata: Json$1 | null;
1382
1382
  organization_id: string;
1383
1383
  origin_execution_id: string;
1384
1384
  origin_resource_id: string;
@@ -1391,18 +1391,18 @@ type Database = {
1391
1391
  target_resource_type: string | null;
1392
1392
  };
1393
1393
  Insert: {
1394
- action_payload?: Json | null;
1395
- actions: Json;
1394
+ action_payload?: Json$1 | null;
1395
+ actions: Json$1;
1396
1396
  completed_at?: string | null;
1397
1397
  completed_by?: string | null;
1398
- context: Json;
1398
+ context: Json$1;
1399
1399
  created_at?: string;
1400
1400
  description?: string | null;
1401
1401
  expires_at?: string | null;
1402
1402
  human_checkpoint?: string | null;
1403
1403
  id?: string;
1404
1404
  idempotency_key?: string | null;
1405
- metadata?: Json | null;
1405
+ metadata?: Json$1 | null;
1406
1406
  organization_id: string;
1407
1407
  origin_execution_id: string;
1408
1408
  origin_resource_id: string;
@@ -1415,18 +1415,18 @@ type Database = {
1415
1415
  target_resource_type?: string | null;
1416
1416
  };
1417
1417
  Update: {
1418
- action_payload?: Json | null;
1419
- actions?: Json;
1418
+ action_payload?: Json$1 | null;
1419
+ actions?: Json$1;
1420
1420
  completed_at?: string | null;
1421
1421
  completed_by?: string | null;
1422
- context?: Json;
1422
+ context?: Json$1;
1423
1423
  created_at?: string;
1424
1424
  description?: string | null;
1425
1425
  expires_at?: string | null;
1426
1426
  human_checkpoint?: string | null;
1427
1427
  id?: string;
1428
1428
  idempotency_key?: string | null;
1429
- metadata?: Json | null;
1429
+ metadata?: Json$1 | null;
1430
1430
  organization_id?: string;
1431
1431
  origin_execution_id?: string;
1432
1432
  origin_resource_id?: string;
@@ -1468,9 +1468,9 @@ type Database = {
1468
1468
  created_at: string;
1469
1469
  distribution_id: string;
1470
1470
  id: string;
1471
- metrics: Json;
1471
+ metrics: Json$1;
1472
1472
  organization_id: string;
1473
- raw: Json;
1473
+ raw: Json$1;
1474
1474
  source: string;
1475
1475
  source_execution_id: string | null;
1476
1476
  };
@@ -1479,9 +1479,9 @@ type Database = {
1479
1479
  created_at?: string;
1480
1480
  distribution_id: string;
1481
1481
  id?: string;
1482
- metrics?: Json;
1482
+ metrics?: Json$1;
1483
1483
  organization_id: string;
1484
- raw?: Json;
1484
+ raw?: Json$1;
1485
1485
  source: string;
1486
1486
  source_execution_id?: string | null;
1487
1487
  };
@@ -1490,9 +1490,9 @@ type Database = {
1490
1490
  created_at?: string;
1491
1491
  distribution_id?: string;
1492
1492
  id?: string;
1493
- metrics?: Json;
1493
+ metrics?: Json$1;
1494
1494
  organization_id?: string;
1495
- raw?: Json;
1495
+ raw?: Json$1;
1496
1496
  source?: string;
1497
1497
  source_execution_id?: string | null;
1498
1498
  };
@@ -1523,20 +1523,20 @@ type Database = {
1523
1523
  content_distributions: {
1524
1524
  Row: {
1525
1525
  adapted_body: string | null;
1526
- checklist: Json | null;
1526
+ checklist: Json$1 | null;
1527
1527
  content_item_id: string;
1528
1528
  created_at: string;
1529
1529
  format: string;
1530
1530
  id: string;
1531
- media_urls: Json;
1532
- metrics: Json;
1531
+ media_urls: Json$1;
1532
+ metrics: Json$1;
1533
1533
  metrics_updated_at: string | null;
1534
1534
  organization_id: string;
1535
1535
  platform: string;
1536
- platform_content: Json | null;
1536
+ platform_content: Json$1 | null;
1537
1537
  platform_post_id: string | null;
1538
1538
  platform_url: string | null;
1539
- processing_state: Json;
1539
+ processing_state: Json$1;
1540
1540
  publish_method: string | null;
1541
1541
  published_at: string | null;
1542
1542
  status: string;
@@ -1544,20 +1544,20 @@ type Database = {
1544
1544
  };
1545
1545
  Insert: {
1546
1546
  adapted_body?: string | null;
1547
- checklist?: Json | null;
1547
+ checklist?: Json$1 | null;
1548
1548
  content_item_id: string;
1549
1549
  created_at?: string;
1550
1550
  format: string;
1551
1551
  id?: string;
1552
- media_urls?: Json;
1553
- metrics?: Json;
1552
+ media_urls?: Json$1;
1553
+ metrics?: Json$1;
1554
1554
  metrics_updated_at?: string | null;
1555
1555
  organization_id: string;
1556
1556
  platform: string;
1557
- platform_content?: Json | null;
1557
+ platform_content?: Json$1 | null;
1558
1558
  platform_post_id?: string | null;
1559
1559
  platform_url?: string | null;
1560
- processing_state?: Json;
1560
+ processing_state?: Json$1;
1561
1561
  publish_method?: string | null;
1562
1562
  published_at?: string | null;
1563
1563
  status?: string;
@@ -1565,20 +1565,20 @@ type Database = {
1565
1565
  };
1566
1566
  Update: {
1567
1567
  adapted_body?: string | null;
1568
- checklist?: Json | null;
1568
+ checklist?: Json$1 | null;
1569
1569
  content_item_id?: string;
1570
1570
  created_at?: string;
1571
1571
  format?: string;
1572
1572
  id?: string;
1573
- media_urls?: Json;
1574
- metrics?: Json;
1573
+ media_urls?: Json$1;
1574
+ metrics?: Json$1;
1575
1575
  metrics_updated_at?: string | null;
1576
1576
  organization_id?: string;
1577
1577
  platform?: string;
1578
- platform_content?: Json | null;
1578
+ platform_content?: Json$1 | null;
1579
1579
  platform_post_id?: string | null;
1580
1580
  platform_url?: string | null;
1581
- processing_state?: Json;
1581
+ processing_state?: Json$1;
1582
1582
  publish_method?: string | null;
1583
1583
  published_at?: string | null;
1584
1584
  status?: string;
@@ -1609,7 +1609,7 @@ type Database = {
1609
1609
  created_by: string | null;
1610
1610
  id: string;
1611
1611
  organization_id: string;
1612
- payload: Json;
1612
+ payload: Json$1;
1613
1613
  source_execution_id: string | null;
1614
1614
  status: string;
1615
1615
  step_key: string | null;
@@ -1621,7 +1621,7 @@ type Database = {
1621
1621
  created_by?: string | null;
1622
1622
  id?: string;
1623
1623
  organization_id: string;
1624
- payload?: Json;
1624
+ payload?: Json$1;
1625
1625
  source_execution_id?: string | null;
1626
1626
  status: string;
1627
1627
  step_key?: string | null;
@@ -1633,7 +1633,7 @@ type Database = {
1633
1633
  created_by?: string | null;
1634
1634
  id?: string;
1635
1635
  organization_id?: string;
1636
- payload?: Json;
1636
+ payload?: Json$1;
1637
1637
  source_execution_id?: string | null;
1638
1638
  status?: string;
1639
1639
  step_key?: string | null;
@@ -1674,8 +1674,8 @@ type Database = {
1674
1674
  alt_text: string | null;
1675
1675
  content_item_id: string;
1676
1676
  created_at: string;
1677
- crop: Json | null;
1678
- derivative_crop: Json | null;
1677
+ crop: Json$1 | null;
1678
+ derivative_crop: Json$1 | null;
1679
1679
  derivative_path: string | null;
1680
1680
  derivative_rendered_at: string | null;
1681
1681
  id: string;
@@ -1687,8 +1687,8 @@ type Database = {
1687
1687
  alt_text?: string | null;
1688
1688
  content_item_id: string;
1689
1689
  created_at?: string;
1690
- crop?: Json | null;
1691
- derivative_crop?: Json | null;
1690
+ crop?: Json$1 | null;
1691
+ derivative_crop?: Json$1 | null;
1692
1692
  derivative_path?: string | null;
1693
1693
  derivative_rendered_at?: string | null;
1694
1694
  id?: string;
@@ -1700,8 +1700,8 @@ type Database = {
1700
1700
  alt_text?: string | null;
1701
1701
  content_item_id?: string;
1702
1702
  created_at?: string;
1703
- crop?: Json | null;
1704
- derivative_crop?: Json | null;
1703
+ crop?: Json$1 | null;
1704
+ derivative_crop?: Json$1 | null;
1705
1705
  derivative_path?: string | null;
1706
1706
  derivative_rendered_at?: string | null;
1707
1707
  id?: string;
@@ -1734,10 +1734,10 @@ type Database = {
1734
1734
  created_by: string | null;
1735
1735
  id: string;
1736
1736
  organization_id: string;
1737
- payload: Json;
1737
+ payload: Json$1;
1738
1738
  pillar: string | null;
1739
1739
  pipeline_id: string | null;
1740
- processing_state: Json;
1740
+ processing_state: Json$1;
1741
1741
  reject_reason: string | null;
1742
1742
  reviewed_at: string | null;
1743
1743
  reviewed_by: string | null;
@@ -1755,10 +1755,10 @@ type Database = {
1755
1755
  created_by?: string | null;
1756
1756
  id?: string;
1757
1757
  organization_id: string;
1758
- payload?: Json;
1758
+ payload?: Json$1;
1759
1759
  pillar?: string | null;
1760
1760
  pipeline_id?: string | null;
1761
- processing_state?: Json;
1761
+ processing_state?: Json$1;
1762
1762
  reject_reason?: string | null;
1763
1763
  reviewed_at?: string | null;
1764
1764
  reviewed_by?: string | null;
@@ -1776,10 +1776,10 @@ type Database = {
1776
1776
  created_by?: string | null;
1777
1777
  id?: string;
1778
1778
  organization_id?: string;
1779
- payload?: Json;
1779
+ payload?: Json$1;
1780
1780
  pillar?: string | null;
1781
1781
  pipeline_id?: string | null;
1782
- processing_state?: Json;
1782
+ processing_state?: Json$1;
1783
1783
  reject_reason?: string | null;
1784
1784
  reviewed_at?: string | null;
1785
1785
  reviewed_by?: string | null;
@@ -1842,10 +1842,10 @@ type Database = {
1842
1842
  external_url: string | null;
1843
1843
  id: string;
1844
1844
  kind: string;
1845
- metadata: Json;
1845
+ metadata: Json$1;
1846
1846
  organization_id: string;
1847
- payload: Json;
1848
- processing_state: Json;
1847
+ payload: Json$1;
1848
+ processing_state: Json$1;
1849
1849
  storage_path: string | null;
1850
1850
  title: string;
1851
1851
  updated_at: string;
@@ -1856,10 +1856,10 @@ type Database = {
1856
1856
  external_url?: string | null;
1857
1857
  id?: string;
1858
1858
  kind: string;
1859
- metadata?: Json;
1859
+ metadata?: Json$1;
1860
1860
  organization_id: string;
1861
- payload?: Json;
1862
- processing_state?: Json;
1861
+ payload?: Json$1;
1862
+ processing_state?: Json$1;
1863
1863
  storage_path?: string | null;
1864
1864
  title: string;
1865
1865
  updated_at?: string;
@@ -1870,10 +1870,10 @@ type Database = {
1870
1870
  external_url?: string | null;
1871
1871
  id?: string;
1872
1872
  kind?: string;
1873
- metadata?: Json;
1873
+ metadata?: Json$1;
1874
1874
  organization_id?: string;
1875
- payload?: Json;
1876
- processing_state?: Json;
1875
+ payload?: Json$1;
1876
+ processing_state?: Json$1;
1877
1877
  storage_path?: string | null;
1878
1878
  title?: string;
1879
1879
  updated_at?: string;
@@ -1945,7 +1945,7 @@ type Database = {
1945
1945
  deployment_id: string;
1946
1946
  model_hash: string | null;
1947
1947
  organization_id: string;
1948
- organization_model: Json;
1948
+ organization_model: Json$1;
1949
1949
  schema_version: string;
1950
1950
  updated_at: string;
1951
1951
  };
@@ -1954,7 +1954,7 @@ type Database = {
1954
1954
  deployment_id: string;
1955
1955
  model_hash?: string | null;
1956
1956
  organization_id: string;
1957
- organization_model: Json;
1957
+ organization_model: Json$1;
1958
1958
  schema_version?: string;
1959
1959
  updated_at?: string;
1960
1960
  };
@@ -1963,7 +1963,7 @@ type Database = {
1963
1963
  deployment_id?: string;
1964
1964
  model_hash?: string | null;
1965
1965
  organization_id?: string;
1966
- organization_model?: Json;
1966
+ organization_model?: Json$1;
1967
1967
  schema_version?: string;
1968
1968
  updated_at?: string;
1969
1969
  };
@@ -2044,7 +2044,7 @@ type Database = {
2044
2044
  error_type: string;
2045
2045
  execution_id: string;
2046
2046
  id: string;
2047
- metadata: Json | null;
2047
+ metadata: Json$1 | null;
2048
2048
  occurred_at: string;
2049
2049
  organization_id: string;
2050
2050
  resolved: boolean;
@@ -2060,7 +2060,7 @@ type Database = {
2060
2060
  error_type: string;
2061
2061
  execution_id: string;
2062
2062
  id?: string;
2063
- metadata?: Json | null;
2063
+ metadata?: Json$1 | null;
2064
2064
  occurred_at?: string;
2065
2065
  organization_id: string;
2066
2066
  resolved?: boolean;
@@ -2076,7 +2076,7 @@ type Database = {
2076
2076
  error_type?: string;
2077
2077
  execution_id?: string;
2078
2078
  id?: string;
2079
- metadata?: Json | null;
2079
+ metadata?: Json$1 | null;
2080
2080
  occurred_at?: string;
2081
2081
  organization_id?: string;
2082
2082
  resolved?: boolean;
@@ -2114,14 +2114,15 @@ type Database = {
2114
2114
  created_at: string | null;
2115
2115
  error: string | null;
2116
2116
  execution_id: string;
2117
- input: Json | null;
2117
+ idempotency_key: string | null;
2118
+ input: Json$1 | null;
2118
2119
  last_heartbeat_at: string | null;
2119
- logs: Json | null;
2120
+ logs: Json$1 | null;
2120
2121
  organization_id: string;
2121
2122
  origin_execution_id: string | null;
2122
- output: Json | null;
2123
+ output: Json$1 | null;
2123
2124
  resource_id: string;
2124
- resource_snapshot: Json | null;
2125
+ resource_snapshot: Json$1 | null;
2125
2126
  resource_status: string;
2126
2127
  resource_type: string;
2127
2128
  resource_version: string | null;
@@ -2140,14 +2141,15 @@ type Database = {
2140
2141
  created_at?: string | null;
2141
2142
  error?: string | null;
2142
2143
  execution_id?: string;
2143
- input?: Json | null;
2144
+ idempotency_key?: string | null;
2145
+ input?: Json$1 | null;
2144
2146
  last_heartbeat_at?: string | null;
2145
- logs?: Json | null;
2147
+ logs?: Json$1 | null;
2146
2148
  organization_id: string;
2147
2149
  origin_execution_id?: string | null;
2148
- output?: Json | null;
2150
+ output?: Json$1 | null;
2149
2151
  resource_id: string;
2150
- resource_snapshot?: Json | null;
2152
+ resource_snapshot?: Json$1 | null;
2151
2153
  resource_status?: string;
2152
2154
  resource_type?: string;
2153
2155
  resource_version?: string | null;
@@ -2166,14 +2168,15 @@ type Database = {
2166
2168
  created_at?: string | null;
2167
2169
  error?: string | null;
2168
2170
  execution_id?: string;
2169
- input?: Json | null;
2171
+ idempotency_key?: string | null;
2172
+ input?: Json$1 | null;
2170
2173
  last_heartbeat_at?: string | null;
2171
- logs?: Json | null;
2174
+ logs?: Json$1 | null;
2172
2175
  organization_id?: string;
2173
2176
  origin_execution_id?: string | null;
2174
- output?: Json | null;
2177
+ output?: Json$1 | null;
2175
2178
  resource_id?: string;
2176
- resource_snapshot?: Json | null;
2179
+ resource_snapshot?: Json$1 | null;
2177
2180
  resource_status?: string;
2178
2181
  resource_type?: string;
2179
2182
  resource_version?: string | null;
@@ -2220,7 +2223,7 @@ type Database = {
2220
2223
  execution_metrics: {
2221
2224
  Row: {
2222
2225
  ai_call_count: number;
2223
- ai_calls: Json | null;
2226
+ ai_calls: Json$1 | null;
2224
2227
  automation_savings_usd: number | null;
2225
2228
  created_at: string | null;
2226
2229
  duration_ms: number | null;
@@ -2233,7 +2236,7 @@ type Database = {
2233
2236
  };
2234
2237
  Insert: {
2235
2238
  ai_call_count: number;
2236
- ai_calls?: Json | null;
2239
+ ai_calls?: Json$1 | null;
2237
2240
  automation_savings_usd?: number | null;
2238
2241
  created_at?: string | null;
2239
2242
  duration_ms?: number | null;
@@ -2246,7 +2249,7 @@ type Database = {
2246
2249
  };
2247
2250
  Update: {
2248
2251
  ai_call_count?: number;
2249
- ai_calls?: Json | null;
2252
+ ai_calls?: Json$1 | null;
2250
2253
  automation_savings_usd?: number | null;
2251
2254
  created_at?: string | null;
2252
2255
  duration_ms?: number | null;
@@ -2396,7 +2399,7 @@ type Database = {
2396
2399
  };
2397
2400
  org_memberships: {
2398
2401
  Row: {
2399
- config: Json;
2402
+ config: Json$1;
2400
2403
  created_at: string | null;
2401
2404
  effective_permissions: string[];
2402
2405
  id: string;
@@ -2408,7 +2411,7 @@ type Database = {
2408
2411
  workos_membership_id: string | null;
2409
2412
  };
2410
2413
  Insert: {
2411
- config?: Json;
2414
+ config?: Json$1;
2412
2415
  created_at?: string | null;
2413
2416
  effective_permissions?: string[];
2414
2417
  id?: string;
@@ -2420,7 +2423,7 @@ type Database = {
2420
2423
  workos_membership_id?: string | null;
2421
2424
  };
2422
2425
  Update: {
2423
- config?: Json;
2426
+ config?: Json$1;
2424
2427
  created_at?: string | null;
2425
2428
  effective_permissions?: string[];
2426
2429
  id?: string;
@@ -2591,33 +2594,33 @@ type Database = {
2591
2594
  };
2592
2595
  organizations: {
2593
2596
  Row: {
2594
- config: Json;
2597
+ config: Json$1;
2595
2598
  created_at: string;
2596
2599
  id: string;
2597
2600
  is_test: boolean;
2598
- metadata: Json;
2601
+ metadata: Json$1;
2599
2602
  name: string;
2600
2603
  status: string;
2601
2604
  updated_at: string;
2602
2605
  workos_org_id: string;
2603
2606
  };
2604
2607
  Insert: {
2605
- config?: Json;
2608
+ config?: Json$1;
2606
2609
  created_at?: string;
2607
2610
  id?: string;
2608
2611
  is_test?: boolean;
2609
- metadata?: Json;
2612
+ metadata?: Json$1;
2610
2613
  name: string;
2611
2614
  status?: string;
2612
2615
  updated_at?: string;
2613
2616
  workos_org_id: string;
2614
2617
  };
2615
2618
  Update: {
2616
- config?: Json;
2619
+ config?: Json$1;
2617
2620
  created_at?: string;
2618
2621
  id?: string;
2619
2622
  is_test?: boolean;
2620
- metadata?: Json;
2623
+ metadata?: Json$1;
2621
2624
  name?: string;
2622
2625
  status?: string;
2623
2626
  updated_at?: string;
@@ -2627,13 +2630,13 @@ type Database = {
2627
2630
  };
2628
2631
  prj_milestones: {
2629
2632
  Row: {
2630
- checklist: Json | null;
2633
+ checklist: Json$1 | null;
2631
2634
  completed_at: string | null;
2632
2635
  created_at: string;
2633
2636
  description: string | null;
2634
2637
  due_date: string | null;
2635
2638
  id: string;
2636
- metadata: Json | null;
2639
+ metadata: Json$1 | null;
2637
2640
  name: string;
2638
2641
  organization_id: string;
2639
2642
  project_id: string;
@@ -2642,13 +2645,13 @@ type Database = {
2642
2645
  updated_at: string;
2643
2646
  };
2644
2647
  Insert: {
2645
- checklist?: Json | null;
2648
+ checklist?: Json$1 | null;
2646
2649
  completed_at?: string | null;
2647
2650
  created_at?: string;
2648
2651
  description?: string | null;
2649
2652
  due_date?: string | null;
2650
2653
  id?: string;
2651
- metadata?: Json | null;
2654
+ metadata?: Json$1 | null;
2652
2655
  name: string;
2653
2656
  organization_id: string;
2654
2657
  project_id: string;
@@ -2657,13 +2660,13 @@ type Database = {
2657
2660
  updated_at?: string;
2658
2661
  };
2659
2662
  Update: {
2660
- checklist?: Json | null;
2663
+ checklist?: Json$1 | null;
2661
2664
  completed_at?: string | null;
2662
2665
  created_at?: string;
2663
2666
  description?: string | null;
2664
2667
  due_date?: string | null;
2665
2668
  id?: string;
2666
- metadata?: Json | null;
2669
+ metadata?: Json$1 | null;
2667
2670
  name?: string;
2668
2671
  organization_id?: string;
2669
2672
  project_id?: string;
@@ -2701,7 +2704,7 @@ type Database = {
2701
2704
  created_at: string;
2702
2705
  created_by: string | null;
2703
2706
  id: string;
2704
- metadata: Json | null;
2707
+ metadata: Json$1 | null;
2705
2708
  milestone_id: string | null;
2706
2709
  occurred_at: string;
2707
2710
  organization_id: string;
@@ -2715,7 +2718,7 @@ type Database = {
2715
2718
  created_at?: string;
2716
2719
  created_by?: string | null;
2717
2720
  id?: string;
2718
- metadata?: Json | null;
2721
+ metadata?: Json$1 | null;
2719
2722
  milestone_id?: string | null;
2720
2723
  occurred_at?: string;
2721
2724
  organization_id: string;
@@ -2729,7 +2732,7 @@ type Database = {
2729
2732
  created_at?: string;
2730
2733
  created_by?: string | null;
2731
2734
  id?: string;
2732
- metadata?: Json | null;
2735
+ metadata?: Json$1 | null;
2733
2736
  milestone_id?: string | null;
2734
2737
  occurred_at?: string;
2735
2738
  organization_id?: string;
@@ -2815,7 +2818,7 @@ type Database = {
2815
2818
  description: string | null;
2816
2819
  id: string;
2817
2820
  kind: string;
2818
- metadata: Json | null;
2821
+ metadata: Json$1 | null;
2819
2822
  name: string;
2820
2823
  organization_id: string;
2821
2824
  start_date: string | null;
@@ -2833,7 +2836,7 @@ type Database = {
2833
2836
  description?: string | null;
2834
2837
  id?: string;
2835
2838
  kind?: string;
2836
- metadata?: Json | null;
2839
+ metadata?: Json$1 | null;
2837
2840
  name: string;
2838
2841
  organization_id: string;
2839
2842
  start_date?: string | null;
@@ -2851,7 +2854,7 @@ type Database = {
2851
2854
  description?: string | null;
2852
2855
  id?: string;
2853
2856
  kind?: string;
2854
- metadata?: Json | null;
2857
+ metadata?: Json$1 | null;
2855
2858
  name?: string;
2856
2859
  organization_id?: string;
2857
2860
  start_date?: string | null;
@@ -2906,58 +2909,58 @@ type Database = {
2906
2909
  };
2907
2910
  prj_tasks: {
2908
2911
  Row: {
2909
- checklist: Json;
2912
+ checklist: Json$1;
2910
2913
  completed_at: string | null;
2911
2914
  created_at: string;
2912
2915
  description: string | null;
2913
2916
  due_date: string | null;
2914
2917
  file_url: string | null;
2915
2918
  id: string;
2916
- metadata: Json | null;
2919
+ metadata: Json$1 | null;
2917
2920
  milestone_id: string | null;
2918
2921
  name: string;
2919
2922
  organization_id: string;
2920
2923
  parent_task_id: string | null;
2921
2924
  project_id: string;
2922
- resume_context: Json | null;
2925
+ resume_context: Json$1 | null;
2923
2926
  status: string;
2924
2927
  type: string;
2925
2928
  updated_at: string;
2926
2929
  };
2927
2930
  Insert: {
2928
- checklist?: Json;
2931
+ checklist?: Json$1;
2929
2932
  completed_at?: string | null;
2930
2933
  created_at?: string;
2931
2934
  description?: string | null;
2932
2935
  due_date?: string | null;
2933
2936
  file_url?: string | null;
2934
2937
  id?: string;
2935
- metadata?: Json | null;
2938
+ metadata?: Json$1 | null;
2936
2939
  milestone_id?: string | null;
2937
2940
  name: string;
2938
2941
  organization_id: string;
2939
2942
  parent_task_id?: string | null;
2940
2943
  project_id: string;
2941
- resume_context?: Json | null;
2944
+ resume_context?: Json$1 | null;
2942
2945
  status?: string;
2943
2946
  type?: string;
2944
2947
  updated_at?: string;
2945
2948
  };
2946
2949
  Update: {
2947
- checklist?: Json;
2950
+ checklist?: Json$1;
2948
2951
  completed_at?: string | null;
2949
2952
  created_at?: string;
2950
2953
  description?: string | null;
2951
2954
  due_date?: string | null;
2952
2955
  file_url?: string | null;
2953
2956
  id?: string;
2954
- metadata?: Json | null;
2957
+ metadata?: Json$1 | null;
2955
2958
  milestone_id?: string | null;
2956
2959
  name?: string;
2957
2960
  organization_id?: string;
2958
2961
  parent_task_id?: string | null;
2959
2962
  project_id?: string;
2960
- resume_context?: Json | null;
2963
+ resume_context?: Json$1 | null;
2961
2964
  status?: string;
2962
2965
  type?: string;
2963
2966
  updated_at?: string;
@@ -3018,10 +3021,10 @@ type Database = {
3018
3021
  Row: {
3019
3022
  affected_page: string | null;
3020
3023
  category: string;
3021
- context: Json | null;
3024
+ context: Json$1 | null;
3022
3025
  created_at: string;
3023
3026
  description: string;
3024
- evidence: Json | null;
3027
+ evidence: Json$1 | null;
3025
3028
  id: string;
3026
3029
  organization_id: string;
3027
3030
  project_id: string | null;
@@ -3039,10 +3042,10 @@ type Database = {
3039
3042
  Insert: {
3040
3043
  affected_page?: string | null;
3041
3044
  category: string;
3042
- context?: Json | null;
3045
+ context?: Json$1 | null;
3043
3046
  created_at?: string;
3044
3047
  description: string;
3045
- evidence?: Json | null;
3048
+ evidence?: Json$1 | null;
3046
3049
  id?: string;
3047
3050
  organization_id: string;
3048
3051
  project_id?: string | null;
@@ -3060,10 +3063,10 @@ type Database = {
3060
3063
  Update: {
3061
3064
  affected_page?: string | null;
3062
3065
  category?: string;
3063
- context?: Json | null;
3066
+ context?: Json$1 | null;
3064
3067
  created_at?: string;
3065
3068
  description?: string;
3066
- evidence?: Json | null;
3069
+ evidence?: Json$1 | null;
3067
3070
  id?: string;
3068
3071
  organization_id?: string;
3069
3072
  project_id?: string | null;
@@ -3109,7 +3112,7 @@ type Database = {
3109
3112
  message: string;
3110
3113
  message_index: number | null;
3111
3114
  message_type: string | null;
3112
- metadata: Json | null;
3115
+ metadata: Json$1 | null;
3113
3116
  role: string;
3114
3117
  session_id: string;
3115
3118
  session_turn_number: number;
@@ -3120,7 +3123,7 @@ type Database = {
3120
3123
  message: string;
3121
3124
  message_index?: number | null;
3122
3125
  message_type?: string | null;
3123
- metadata?: Json | null;
3126
+ metadata?: Json$1 | null;
3124
3127
  role: string;
3125
3128
  session_id: string;
3126
3129
  session_turn_number: number;
@@ -3131,7 +3134,7 @@ type Database = {
3131
3134
  message?: string;
3132
3135
  message_index?: number | null;
3133
3136
  message_type?: string | null;
3134
- metadata?: Json | null;
3137
+ metadata?: Json$1 | null;
3135
3138
  role?: string;
3136
3139
  session_id?: string;
3137
3140
  session_turn_number?: number;
@@ -3154,9 +3157,9 @@ type Database = {
3154
3157
  cumulative_output_tokens: number;
3155
3158
  deleted_at: string | null;
3156
3159
  ended_at: string | null;
3157
- memory_snapshot: Json;
3160
+ memory_snapshot: Json$1;
3158
3161
  memory_version: number;
3159
- metadata: Json | null;
3162
+ metadata: Json$1 | null;
3160
3163
  organization_id: string;
3161
3164
  resource_id: string;
3162
3165
  session_id: string;
@@ -3171,9 +3174,9 @@ type Database = {
3171
3174
  cumulative_output_tokens?: number;
3172
3175
  deleted_at?: string | null;
3173
3176
  ended_at?: string | null;
3174
- memory_snapshot: Json;
3177
+ memory_snapshot: Json$1;
3175
3178
  memory_version?: number;
3176
- metadata?: Json | null;
3179
+ metadata?: Json$1 | null;
3177
3180
  organization_id: string;
3178
3181
  resource_id: string;
3179
3182
  session_id?: string;
@@ -3188,9 +3191,9 @@ type Database = {
3188
3191
  cumulative_output_tokens?: number;
3189
3192
  deleted_at?: string | null;
3190
3193
  ended_at?: string | null;
3191
- memory_snapshot?: Json;
3194
+ memory_snapshot?: Json$1;
3192
3195
  memory_version?: number;
3193
- metadata?: Json | null;
3196
+ metadata?: Json$1 | null;
3194
3197
  organization_id?: string;
3195
3198
  resource_id?: string;
3196
3199
  session_id?: string;
@@ -3225,7 +3228,7 @@ type Database = {
3225
3228
  last_execution_id: string | null;
3226
3229
  last_run_at: string | null;
3227
3230
  max_retries: number;
3228
- metadata: Json | null;
3231
+ metadata: Json$1 | null;
3229
3232
  name: string;
3230
3233
  next_run_at: string | null;
3231
3234
  organization_id: string;
@@ -3233,7 +3236,7 @@ type Database = {
3233
3236
  origin_resource_id: string | null;
3234
3237
  origin_resource_type: string | null;
3235
3238
  retry_count: number;
3236
- schedule_config: Json;
3239
+ schedule_config: Json$1;
3237
3240
  status: string;
3238
3241
  target_resource_id: string;
3239
3242
  target_resource_type: string;
@@ -3248,7 +3251,7 @@ type Database = {
3248
3251
  last_execution_id?: string | null;
3249
3252
  last_run_at?: string | null;
3250
3253
  max_retries?: number;
3251
- metadata?: Json | null;
3254
+ metadata?: Json$1 | null;
3252
3255
  name: string;
3253
3256
  next_run_at?: string | null;
3254
3257
  organization_id: string;
@@ -3256,7 +3259,7 @@ type Database = {
3256
3259
  origin_resource_id?: string | null;
3257
3260
  origin_resource_type?: string | null;
3258
3261
  retry_count?: number;
3259
- schedule_config: Json;
3262
+ schedule_config: Json$1;
3260
3263
  status?: string;
3261
3264
  target_resource_id: string;
3262
3265
  target_resource_type: string;
@@ -3271,7 +3274,7 @@ type Database = {
3271
3274
  last_execution_id?: string | null;
3272
3275
  last_run_at?: string | null;
3273
3276
  max_retries?: number;
3274
- metadata?: Json | null;
3277
+ metadata?: Json$1 | null;
3275
3278
  name?: string;
3276
3279
  next_run_at?: string | null;
3277
3280
  organization_id?: string;
@@ -3279,7 +3282,7 @@ type Database = {
3279
3282
  origin_resource_id?: string | null;
3280
3283
  origin_resource_type?: string | null;
3281
3284
  retry_count?: number;
3282
- schedule_config?: Json;
3285
+ schedule_config?: Json$1;
3283
3286
  status?: string;
3284
3287
  target_resource_id?: string;
3285
3288
  target_resource_type?: string;
@@ -3301,7 +3304,7 @@ type Database = {
3301
3304
  created_at: string;
3302
3305
  created_by: string;
3303
3306
  id: string;
3304
- metadata: Json;
3307
+ metadata: Json$1;
3305
3308
  organization_id: string | null;
3306
3309
  pinned: boolean;
3307
3310
  priority: string;
@@ -3316,7 +3319,7 @@ type Database = {
3316
3319
  created_at?: string;
3317
3320
  created_by?: string;
3318
3321
  id?: string;
3319
- metadata?: Json;
3322
+ metadata?: Json$1;
3320
3323
  organization_id?: string | null;
3321
3324
  pinned?: boolean;
3322
3325
  priority?: string;
@@ -3331,7 +3334,7 @@ type Database = {
3331
3334
  created_at?: string;
3332
3335
  created_by?: string;
3333
3336
  id?: string;
3334
- metadata?: Json;
3337
+ metadata?: Json$1;
3335
3338
  organization_id?: string | null;
3336
3339
  pinned?: boolean;
3337
3340
  priority?: string;
@@ -3360,7 +3363,7 @@ type Database = {
3360
3363
  };
3361
3364
  users: {
3362
3365
  Row: {
3363
- config: Json;
3366
+ config: Json$1;
3364
3367
  created_at: string;
3365
3368
  display_name: string | null;
3366
3369
  email: string;
@@ -3376,7 +3379,7 @@ type Database = {
3376
3379
  workos_user_id: string | null;
3377
3380
  };
3378
3381
  Insert: {
3379
- config?: Json;
3382
+ config?: Json$1;
3380
3383
  created_at?: string;
3381
3384
  display_name?: string | null;
3382
3385
  email: string;
@@ -3392,7 +3395,7 @@ type Database = {
3392
3395
  workos_user_id?: string | null;
3393
3396
  };
3394
3397
  Update: {
3395
- config?: Json;
3398
+ config?: Json$1;
3396
3399
  created_at?: string;
3397
3400
  display_name?: string | null;
3398
3401
  email?: string;
@@ -3479,7 +3482,7 @@ type Database = {
3479
3482
  Args: {
3480
3483
  p_platform: string;
3481
3484
  };
3482
- Returns: Json;
3485
+ Returns: Json$1;
3483
3486
  };
3484
3487
  activate_deployment_atomic: {
3485
3488
  Args: {
@@ -3502,7 +3505,7 @@ type Database = {
3502
3505
  };
3503
3506
  append_deal_activity: {
3504
3507
  Args: {
3505
- p_activity: Json;
3508
+ p_activity: Json$1;
3506
3509
  p_deal_id: string;
3507
3510
  p_organization_id: string;
3508
3511
  };
@@ -3510,7 +3513,7 @@ type Database = {
3510
3513
  };
3511
3514
  auth_jwt_claims: {
3512
3515
  Args: Record<PropertyKey, never>;
3513
- Returns: Json;
3516
+ Returns: Json$1;
3514
3517
  };
3515
3518
  auth_uid_safe: {
3516
3519
  Args: Record<PropertyKey, never>;
@@ -3525,7 +3528,7 @@ type Database = {
3525
3528
  };
3526
3529
  create_artifact_version: {
3527
3530
  Args: {
3528
- p_content: Json;
3531
+ p_content: Json$1;
3529
3532
  p_created_by?: string;
3530
3533
  p_kind: string;
3531
3534
  p_organization_id: string;
@@ -3535,7 +3538,7 @@ type Database = {
3535
3538
  p_source_execution_id?: string;
3536
3539
  };
3537
3540
  Returns: {
3538
- content: Json;
3541
+ content: Json$1;
3539
3542
  created_at: string;
3540
3543
  created_by: string | null;
3541
3544
  id: string;
@@ -3575,9 +3578,9 @@ type Database = {
3575
3578
  cumulative_output_tokens: number;
3576
3579
  deleted_at: string;
3577
3580
  ended_at: string;
3578
- memory_snapshot: Json;
3581
+ memory_snapshot: Json$1;
3579
3582
  memory_version: number;
3580
- metadata: Json;
3583
+ metadata: Json$1;
3581
3584
  organization_id: string;
3582
3585
  resource_id: string;
3583
3586
  session_id: string;
@@ -3650,17 +3653,17 @@ type Database = {
3650
3653
  p_organization_id: string;
3651
3654
  p_role_slug?: string;
3652
3655
  };
3653
- Returns: Json;
3656
+ Returns: Json$1;
3654
3657
  };
3655
3658
  process_due_schedules: {
3656
3659
  Args: Record<PropertyKey, never>;
3657
- Returns: Json;
3660
+ Returns: Json$1;
3658
3661
  };
3659
3662
  purge_stale_test_data: {
3660
3663
  Args: {
3661
3664
  p_max_age?: unknown;
3662
3665
  };
3663
- Returns: Json;
3666
+ Returns: Json$1;
3664
3667
  };
3665
3668
  recompute_all_memberships: {
3666
3669
  Args: Record<PropertyKey, never>;
@@ -3714,21 +3717,46 @@ type Database = {
3714
3717
  };
3715
3718
  };
3716
3719
  };
3717
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
3718
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3719
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
3720
- schema: keyof DatabaseWithoutInternals;
3721
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
3722
- schema: keyof DatabaseWithoutInternals;
3723
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
3724
- schema: keyof DatabaseWithoutInternals;
3725
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3726
- Row: infer R;
3727
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3728
- Row: infer R;
3729
- } ? R : never : never;
3730
3720
 
3731
- type SupabaseUserProfile = Tables<'users'>;
3721
+ /**
3722
+ * Concrete row shapes for the published Supabase tables.
3723
+ *
3724
+ * GENERATED by `scripts/gen-published-rows.mjs` — do not hand-edit; re-run the script instead.
3725
+ *
3726
+ * These were `Tables<'users'>` / `TablesInsert<...>` aliases in `./index.ts`. Each one indexes
3727
+ * into the generated `Database` type, and a published `.d.ts` that references `Database` makes
3728
+ * rollup inline the entire schema — every table plus internal RPC signatures such as
3729
+ * `get_platform_credential_kek` — into the tenant-facing bundle. Both `@elevasis/core/auth` and
3730
+ * `@elevasis/core/test-utils` reached `Database` through this barrel, which is the actual cause
3731
+ * of health-audit R3; the two files that audit named were only the ones a literal grep could see.
3732
+ *
3733
+ * This module deliberately imports NOTHING from `./database.types`. One imported name is enough
3734
+ * to pull that module into the rollup graph and bring `Database` with it. Drift is caught by
3735
+ * `./published-rows.assertions.ts`, which no published entry point imports.
3736
+ */
3737
+ /**
3738
+ * Structurally identical to `Json` in `./database.types`, redeclared to keep this module free of
3739
+ * imports from it. See the note above.
3740
+ */
3741
+ type Json = string | number | boolean | null | {
3742
+ [key: string]: Json | undefined;
3743
+ } | Json[];
3744
+ type SupabaseUserProfile = {
3745
+ config: Json;
3746
+ created_at: string;
3747
+ display_name: string | null;
3748
+ email: string;
3749
+ first_name: string | null;
3750
+ id: string;
3751
+ is_active: boolean;
3752
+ is_platform_admin: boolean | null;
3753
+ last_login_at: string | null;
3754
+ last_name: string | null;
3755
+ last_visited_org: string | null;
3756
+ profile_picture_url: string | null;
3757
+ updated_at: string;
3758
+ workos_user_id: string | null;
3759
+ };
3732
3760
 
3733
3761
  /**
3734
3762
  * Single list as returned by /api/acquisition/lists/:id etc.