@elevasis/ui 2.3.0 → 2.4.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 (48) hide show
  1. package/dist/{chunk-F6RBK7NJ.js → chunk-22UVE3RA.js} +1 -1
  2. package/dist/{chunk-OCP2MBTY.js → chunk-27COZ5AH.js} +3 -118
  3. package/dist/chunk-2DZACNOX.js +1111 -0
  4. package/dist/chunk-3ONP2CEB.js +1842 -0
  5. package/dist/{chunk-ZY4MWZW2.js → chunk-5XGBMKUY.js} +3 -3
  6. package/dist/chunk-BZZCNLT6.js +12 -0
  7. package/dist/{chunk-SWIAK47F.js → chunk-G3G2QEB6.js} +5 -5
  8. package/dist/chunk-IDACMRGQ.js +115 -0
  9. package/dist/{chunk-2XWEOJSX.js → chunk-IPRMGSCV.js} +1 -1
  10. package/dist/chunk-J5KWNRSD.js +45 -0
  11. package/dist/{chunk-NKV5MEWQ.js → chunk-KRTZTBVP.js} +10 -8
  12. package/dist/{chunk-Q3FTQP2M.js → chunk-PEZ4WOPF.js} +1 -1
  13. package/dist/chunk-TUMSNGTX.js +35 -0
  14. package/dist/{chunk-PEATQEEP.js → chunk-WN764MR7.js} +2 -2
  15. package/dist/chunk-WSL5MNAI.js +955 -0
  16. package/dist/{chunk-IWFIKQR5.js → chunk-ZG7MLOBE.js} +1 -1
  17. package/dist/components/index.css +10 -14
  18. package/dist/components/index.js +46 -3922
  19. package/dist/features/auth/index.css +10 -14
  20. package/dist/features/crm/index.css +589 -0
  21. package/dist/features/crm/index.d.ts +2833 -0
  22. package/dist/features/crm/index.js +33 -0
  23. package/dist/features/dashboard/index.css +10 -14
  24. package/dist/features/dashboard/index.js +5 -5
  25. package/dist/features/delivery/index.css +589 -0
  26. package/dist/features/delivery/index.d.ts +2648 -0
  27. package/dist/features/delivery/index.js +33 -0
  28. package/dist/features/lead-gen/index.css +589 -0
  29. package/dist/features/lead-gen/index.d.ts +451 -0
  30. package/dist/features/lead-gen/index.js +42 -0
  31. package/dist/features/monitoring/index.css +10 -14
  32. package/dist/features/monitoring/index.js +6 -6
  33. package/dist/features/operations/index.css +10 -14
  34. package/dist/features/operations/index.js +10 -8
  35. package/dist/features/seo/index.d.ts +41 -0
  36. package/dist/features/seo/index.js +5 -0
  37. package/dist/features/settings/index.css +10 -14
  38. package/dist/features/settings/index.js +4 -4
  39. package/dist/graph/index.css +0 -14
  40. package/dist/graph/index.js +1 -1
  41. package/dist/hooks/index.css +10 -14
  42. package/dist/hooks/index.js +3 -3
  43. package/dist/hooks/published.css +10 -14
  44. package/dist/hooks/published.js +2 -2
  45. package/dist/index.css +10 -14
  46. package/dist/index.js +4 -4
  47. package/dist/layout/index.js +3 -1
  48. package/package.json +19 -3
@@ -0,0 +1,2648 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentType } from 'react';
3
+
4
+ interface HealthStatusCardProps {
5
+ status: string;
6
+ milestoneCount: number;
7
+ completedMilestones: number;
8
+ taskCount: number;
9
+ completedTasks: number;
10
+ startDate: string | null;
11
+ targetEndDate: string | null;
12
+ }
13
+ declare function HealthStatusCard({ status, milestoneCount, completedMilestones, taskCount, completedTasks, startDate, targetEndDate }: HealthStatusCardProps): react_jsx_runtime.JSX.Element;
14
+
15
+ type Json =
16
+ | string
17
+ | number
18
+ | boolean
19
+ | null
20
+ | { [key: string]: Json | undefined }
21
+ | Json[]
22
+
23
+ type Database = {
24
+ // Allows to automatically instantiate createClient with right options
25
+ // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
26
+ __InternalSupabase: {
27
+ PostgrestVersion: "12.2.3 (519615d)"
28
+ }
29
+ public: {
30
+ Tables: {
31
+ acq_companies: {
32
+ Row: {
33
+ batch_id: string | null
34
+ category: string | null
35
+ category_pain: string | null
36
+ created_at: string
37
+ domain: string | null
38
+ enrichment_data: Json | null
39
+ filter_reason: string | null
40
+ founded_year: number | null
41
+ id: string
42
+ linkedin_url: string | null
43
+ location_city: string | null
44
+ location_state: string | null
45
+ name: string
46
+ num_employees: number | null
47
+ organization_id: string
48
+ pipeline_status: Json
49
+ segment: string | null
50
+ source: string | null
51
+ status: string
52
+ updated_at: string
53
+ website: string | null
54
+ }
55
+ Insert: {
56
+ batch_id?: string | null
57
+ category?: string | null
58
+ category_pain?: string | null
59
+ created_at?: string
60
+ domain?: string | null
61
+ enrichment_data?: Json | null
62
+ filter_reason?: string | null
63
+ founded_year?: number | null
64
+ id?: string
65
+ linkedin_url?: string | null
66
+ location_city?: string | null
67
+ location_state?: string | null
68
+ name: string
69
+ num_employees?: number | null
70
+ organization_id: string
71
+ pipeline_status?: Json
72
+ segment?: string | null
73
+ source?: string | null
74
+ status?: string
75
+ updated_at?: string
76
+ website?: string | null
77
+ }
78
+ Update: {
79
+ batch_id?: string | null
80
+ category?: string | null
81
+ category_pain?: string | null
82
+ created_at?: string
83
+ domain?: string | null
84
+ enrichment_data?: Json | null
85
+ filter_reason?: string | null
86
+ founded_year?: number | null
87
+ id?: string
88
+ linkedin_url?: string | null
89
+ location_city?: string | null
90
+ location_state?: string | null
91
+ name?: string
92
+ num_employees?: number | null
93
+ organization_id?: string
94
+ pipeline_status?: Json
95
+ segment?: string | null
96
+ source?: string | null
97
+ status?: string
98
+ updated_at?: string
99
+ website?: string | null
100
+ }
101
+ Relationships: [
102
+ {
103
+ foreignKeyName: "acq_companies_organization_id_fkey"
104
+ columns: ["organization_id"]
105
+ isOneToOne: false
106
+ referencedRelation: "organizations"
107
+ referencedColumns: ["id"]
108
+ },
109
+ ]
110
+ }
111
+ acq_contacts: {
112
+ Row: {
113
+ batch_id: string | null
114
+ brochure_first_viewed_at: string | null
115
+ brochure_view_count: number
116
+ company_id: string | null
117
+ created_at: string
118
+ email: string
119
+ email_valid: string | null
120
+ enrichment_data: Json
121
+ filter_reason: string | null
122
+ first_name: string | null
123
+ headline: string | null
124
+ id: string
125
+ last_name: string | null
126
+ linkedin_url: string | null
127
+ nurture: boolean
128
+ opening_line: string | null
129
+ organization_id: string
130
+ pipeline_status: Json
131
+ source: string | null
132
+ source_id: string | null
133
+ status: string
134
+ title: string | null
135
+ updated_at: string
136
+ }
137
+ Insert: {
138
+ batch_id?: string | null
139
+ brochure_first_viewed_at?: string | null
140
+ brochure_view_count?: number
141
+ company_id?: string | null
142
+ created_at?: string
143
+ email: string
144
+ email_valid?: string | null
145
+ enrichment_data?: Json
146
+ filter_reason?: string | null
147
+ first_name?: string | null
148
+ headline?: string | null
149
+ id?: string
150
+ last_name?: string | null
151
+ linkedin_url?: string | null
152
+ nurture?: boolean
153
+ opening_line?: string | null
154
+ organization_id: string
155
+ pipeline_status?: Json
156
+ source?: string | null
157
+ source_id?: string | null
158
+ status?: string
159
+ title?: string | null
160
+ updated_at?: string
161
+ }
162
+ Update: {
163
+ batch_id?: string | null
164
+ brochure_first_viewed_at?: string | null
165
+ brochure_view_count?: number
166
+ company_id?: string | null
167
+ created_at?: string
168
+ email?: string
169
+ email_valid?: string | null
170
+ enrichment_data?: Json
171
+ filter_reason?: string | null
172
+ first_name?: string | null
173
+ headline?: string | null
174
+ id?: string
175
+ last_name?: string | null
176
+ linkedin_url?: string | null
177
+ nurture?: boolean
178
+ opening_line?: string | null
179
+ organization_id?: string
180
+ pipeline_status?: Json
181
+ source?: string | null
182
+ source_id?: string | null
183
+ status?: string
184
+ title?: string | null
185
+ updated_at?: string
186
+ }
187
+ Relationships: [
188
+ {
189
+ foreignKeyName: "acq_contacts_company_id_fkey"
190
+ columns: ["company_id"]
191
+ isOneToOne: false
192
+ referencedRelation: "acq_companies"
193
+ referencedColumns: ["id"]
194
+ },
195
+ {
196
+ foreignKeyName: "acq_contacts_organization_id_fkey"
197
+ columns: ["organization_id"]
198
+ isOneToOne: false
199
+ referencedRelation: "organizations"
200
+ referencedColumns: ["id"]
201
+ },
202
+ ]
203
+ }
204
+ acq_content: {
205
+ Row: {
206
+ body: string | null
207
+ created_at: string
208
+ id: string
209
+ organization_id: string
210
+ pillar: string
211
+ status: string
212
+ title: string
213
+ updated_at: string
214
+ }
215
+ Insert: {
216
+ body?: string | null
217
+ created_at?: string
218
+ id?: string
219
+ organization_id: string
220
+ pillar: string
221
+ status?: string
222
+ title: string
223
+ updated_at?: string
224
+ }
225
+ Update: {
226
+ body?: string | null
227
+ created_at?: string
228
+ id?: string
229
+ organization_id?: string
230
+ pillar?: string
231
+ status?: string
232
+ title?: string
233
+ updated_at?: string
234
+ }
235
+ Relationships: [
236
+ {
237
+ foreignKeyName: "acq_content_organization_id_fkey"
238
+ columns: ["organization_id"]
239
+ isOneToOne: false
240
+ referencedRelation: "organizations"
241
+ referencedColumns: ["id"]
242
+ },
243
+ ]
244
+ }
245
+ acq_content_distributions: {
246
+ Row: {
247
+ adapted_body: string | null
248
+ checklist: Json | null
249
+ content_id: string
250
+ created_at: string
251
+ format: string
252
+ id: string
253
+ media_urls: Json
254
+ metrics: Json
255
+ metrics_updated_at: string | null
256
+ organization_id: string
257
+ platform: string
258
+ platform_content: Json | null
259
+ platform_post_id: string | null
260
+ platform_url: string | null
261
+ published_at: string | null
262
+ status: string
263
+ updated_at: string
264
+ }
265
+ Insert: {
266
+ adapted_body?: string | null
267
+ checklist?: Json | null
268
+ content_id: string
269
+ created_at?: string
270
+ format: string
271
+ id?: string
272
+ media_urls?: Json
273
+ metrics?: Json
274
+ metrics_updated_at?: string | null
275
+ organization_id: string
276
+ platform: string
277
+ platform_content?: Json | null
278
+ platform_post_id?: string | null
279
+ platform_url?: string | null
280
+ published_at?: string | null
281
+ status?: string
282
+ updated_at?: string
283
+ }
284
+ Update: {
285
+ adapted_body?: string | null
286
+ checklist?: Json | null
287
+ content_id?: string
288
+ created_at?: string
289
+ format?: string
290
+ id?: string
291
+ media_urls?: Json
292
+ metrics?: Json
293
+ metrics_updated_at?: string | null
294
+ organization_id?: string
295
+ platform?: string
296
+ platform_content?: Json | null
297
+ platform_post_id?: string | null
298
+ platform_url?: string | null
299
+ published_at?: string | null
300
+ status?: string
301
+ updated_at?: string
302
+ }
303
+ Relationships: [
304
+ {
305
+ foreignKeyName: "acq_content_distributions_content_id_fkey"
306
+ columns: ["content_id"]
307
+ isOneToOne: false
308
+ referencedRelation: "acq_content"
309
+ referencedColumns: ["id"]
310
+ },
311
+ {
312
+ foreignKeyName: "acq_content_distributions_organization_id_fkey"
313
+ columns: ["organization_id"]
314
+ isOneToOne: false
315
+ referencedRelation: "organizations"
316
+ referencedColumns: ["id"]
317
+ },
318
+ ]
319
+ }
320
+ acq_deal_notes: {
321
+ Row: {
322
+ author_user_id: string | null
323
+ body: string
324
+ created_at: string
325
+ deal_id: string
326
+ id: string
327
+ organization_id: string
328
+ updated_at: string
329
+ }
330
+ Insert: {
331
+ author_user_id?: string | null
332
+ body: string
333
+ created_at?: string
334
+ deal_id: string
335
+ id?: string
336
+ organization_id: string
337
+ updated_at?: string
338
+ }
339
+ Update: {
340
+ author_user_id?: string | null
341
+ body?: string
342
+ created_at?: string
343
+ deal_id?: string
344
+ id?: string
345
+ organization_id?: string
346
+ updated_at?: string
347
+ }
348
+ Relationships: [
349
+ {
350
+ foreignKeyName: "acq_deal_notes_deal_id_fkey"
351
+ columns: ["deal_id"]
352
+ isOneToOne: false
353
+ referencedRelation: "acq_deals"
354
+ referencedColumns: ["id"]
355
+ },
356
+ {
357
+ foreignKeyName: "acq_deal_notes_organization_id_fkey"
358
+ columns: ["organization_id"]
359
+ isOneToOne: false
360
+ referencedRelation: "organizations"
361
+ referencedColumns: ["id"]
362
+ },
363
+ ]
364
+ }
365
+ acq_deal_tasks: {
366
+ Row: {
367
+ assignee_user_id: string | null
368
+ completed_at: string | null
369
+ completed_by_user_id: string | null
370
+ created_at: string
371
+ created_by_user_id: string | null
372
+ deal_id: string
373
+ description: string | null
374
+ due_at: string | null
375
+ id: string
376
+ kind: string
377
+ organization_id: string
378
+ title: string
379
+ updated_at: string
380
+ }
381
+ Insert: {
382
+ assignee_user_id?: string | null
383
+ completed_at?: string | null
384
+ completed_by_user_id?: string | null
385
+ created_at?: string
386
+ created_by_user_id?: string | null
387
+ deal_id: string
388
+ description?: string | null
389
+ due_at?: string | null
390
+ id?: string
391
+ kind?: string
392
+ organization_id: string
393
+ title: string
394
+ updated_at?: string
395
+ }
396
+ Update: {
397
+ assignee_user_id?: string | null
398
+ completed_at?: string | null
399
+ completed_by_user_id?: string | null
400
+ created_at?: string
401
+ created_by_user_id?: string | null
402
+ deal_id?: string
403
+ description?: string | null
404
+ due_at?: string | null
405
+ id?: string
406
+ kind?: string
407
+ organization_id?: string
408
+ title?: string
409
+ updated_at?: string
410
+ }
411
+ Relationships: [
412
+ {
413
+ foreignKeyName: "acq_deal_tasks_deal_id_fkey"
414
+ columns: ["deal_id"]
415
+ isOneToOne: false
416
+ referencedRelation: "acq_deals"
417
+ referencedColumns: ["id"]
418
+ },
419
+ {
420
+ foreignKeyName: "acq_deal_tasks_organization_id_fkey"
421
+ columns: ["organization_id"]
422
+ isOneToOne: false
423
+ referencedRelation: "organizations"
424
+ referencedColumns: ["id"]
425
+ },
426
+ ]
427
+ }
428
+ acq_deals: {
429
+ Row: {
430
+ activity_log: Json
431
+ cached_stage: string | null
432
+ closed_lost_at: string | null
433
+ closed_lost_reason: string | null
434
+ contact_email: string
435
+ contact_id: string | null
436
+ created_at: string
437
+ discovery_data: Json | null
438
+ discovery_submitted_at: string | null
439
+ discovery_submitted_by: string | null
440
+ id: string
441
+ initial_fee: number | null
442
+ monthly_fee: number | null
443
+ organization_id: string
444
+ payment_link_sent_at: string | null
445
+ payment_received_at: string | null
446
+ proposal_data: Json | null
447
+ proposal_generated_at: string | null
448
+ proposal_pdf_url: string | null
449
+ proposal_reviewed_at: string | null
450
+ proposal_reviewed_by: string | null
451
+ proposal_sent_at: string | null
452
+ proposal_signed_at: string | null
453
+ proposal_status: string | null
454
+ signature_envelope_id: string | null
455
+ source_list_id: string | null
456
+ source_type: string | null
457
+ stripe_payment_id: string | null
458
+ stripe_payment_link: string | null
459
+ stripe_payment_link_id: string | null
460
+ stripe_subscription_id: string | null
461
+ updated_at: string
462
+ }
463
+ Insert: {
464
+ activity_log?: Json
465
+ cached_stage?: string | null
466
+ closed_lost_at?: string | null
467
+ closed_lost_reason?: string | null
468
+ contact_email: string
469
+ contact_id?: string | null
470
+ created_at?: string
471
+ discovery_data?: Json | null
472
+ discovery_submitted_at?: string | null
473
+ discovery_submitted_by?: string | null
474
+ id?: string
475
+ initial_fee?: number | null
476
+ monthly_fee?: number | null
477
+ organization_id: string
478
+ payment_link_sent_at?: string | null
479
+ payment_received_at?: string | null
480
+ proposal_data?: Json | null
481
+ proposal_generated_at?: string | null
482
+ proposal_pdf_url?: string | null
483
+ proposal_reviewed_at?: string | null
484
+ proposal_reviewed_by?: string | null
485
+ proposal_sent_at?: string | null
486
+ proposal_signed_at?: string | null
487
+ proposal_status?: string | null
488
+ signature_envelope_id?: string | null
489
+ source_list_id?: string | null
490
+ source_type?: string | null
491
+ stripe_payment_id?: string | null
492
+ stripe_payment_link?: string | null
493
+ stripe_payment_link_id?: string | null
494
+ stripe_subscription_id?: string | null
495
+ updated_at?: string
496
+ }
497
+ Update: {
498
+ activity_log?: Json
499
+ cached_stage?: string | null
500
+ closed_lost_at?: string | null
501
+ closed_lost_reason?: string | null
502
+ contact_email?: string
503
+ contact_id?: string | null
504
+ created_at?: string
505
+ discovery_data?: Json | null
506
+ discovery_submitted_at?: string | null
507
+ discovery_submitted_by?: string | null
508
+ id?: string
509
+ initial_fee?: number | null
510
+ monthly_fee?: number | null
511
+ organization_id?: string
512
+ payment_link_sent_at?: string | null
513
+ payment_received_at?: string | null
514
+ proposal_data?: Json | null
515
+ proposal_generated_at?: string | null
516
+ proposal_pdf_url?: string | null
517
+ proposal_reviewed_at?: string | null
518
+ proposal_reviewed_by?: string | null
519
+ proposal_sent_at?: string | null
520
+ proposal_signed_at?: string | null
521
+ proposal_status?: string | null
522
+ signature_envelope_id?: string | null
523
+ source_list_id?: string | null
524
+ source_type?: string | null
525
+ stripe_payment_id?: string | null
526
+ stripe_payment_link?: string | null
527
+ stripe_payment_link_id?: string | null
528
+ stripe_subscription_id?: string | null
529
+ updated_at?: string
530
+ }
531
+ Relationships: [
532
+ {
533
+ foreignKeyName: "acq_deals_contact_id_fkey"
534
+ columns: ["contact_id"]
535
+ isOneToOne: false
536
+ referencedRelation: "acq_contacts"
537
+ referencedColumns: ["id"]
538
+ },
539
+ {
540
+ foreignKeyName: "acq_deals_organization_id_fkey"
541
+ columns: ["organization_id"]
542
+ isOneToOne: false
543
+ referencedRelation: "organizations"
544
+ referencedColumns: ["id"]
545
+ },
546
+ {
547
+ foreignKeyName: "acq_deals_source_list_id_fkey"
548
+ columns: ["source_list_id"]
549
+ isOneToOne: false
550
+ referencedRelation: "acq_lists"
551
+ referencedColumns: ["id"]
552
+ },
553
+ ]
554
+ }
555
+ acq_list_companies: {
556
+ Row: {
557
+ added_at: string
558
+ added_by: string | null
559
+ company_id: string
560
+ id: string
561
+ list_id: string
562
+ source_execution_id: string | null
563
+ source_input_hash: string | null
564
+ source_resource_id: string | null
565
+ stage: string | null
566
+ stage_updated_at: string | null
567
+ }
568
+ Insert: {
569
+ added_at?: string
570
+ added_by?: string | null
571
+ company_id: string
572
+ id?: string
573
+ list_id: string
574
+ source_execution_id?: string | null
575
+ source_input_hash?: string | null
576
+ source_resource_id?: string | null
577
+ stage?: string | null
578
+ stage_updated_at?: string | null
579
+ }
580
+ Update: {
581
+ added_at?: string
582
+ added_by?: string | null
583
+ company_id?: string
584
+ id?: string
585
+ list_id?: string
586
+ source_execution_id?: string | null
587
+ source_input_hash?: string | null
588
+ source_resource_id?: string | null
589
+ stage?: string | null
590
+ stage_updated_at?: string | null
591
+ }
592
+ Relationships: [
593
+ {
594
+ foreignKeyName: "acq_list_companies_company_id_fkey"
595
+ columns: ["company_id"]
596
+ isOneToOne: false
597
+ referencedRelation: "acq_companies"
598
+ referencedColumns: ["id"]
599
+ },
600
+ {
601
+ foreignKeyName: "acq_list_companies_list_id_fkey"
602
+ columns: ["list_id"]
603
+ isOneToOne: false
604
+ referencedRelation: "acq_lists"
605
+ referencedColumns: ["id"]
606
+ },
607
+ {
608
+ foreignKeyName: "acq_list_companies_source_execution_id_fkey"
609
+ columns: ["source_execution_id"]
610
+ isOneToOne: false
611
+ referencedRelation: "execution_logs"
612
+ referencedColumns: ["execution_id"]
613
+ },
614
+ ]
615
+ }
616
+ acq_list_executions: {
617
+ Row: {
618
+ created_at: string
619
+ execution_id: string
620
+ id: string
621
+ list_id: string
622
+ payload: Json
623
+ }
624
+ Insert: {
625
+ created_at?: string
626
+ execution_id: string
627
+ id?: string
628
+ list_id: string
629
+ payload?: Json
630
+ }
631
+ Update: {
632
+ created_at?: string
633
+ execution_id?: string
634
+ id?: string
635
+ list_id?: string
636
+ payload?: Json
637
+ }
638
+ Relationships: [
639
+ {
640
+ foreignKeyName: "acq_list_executions_execution_id_fkey"
641
+ columns: ["execution_id"]
642
+ isOneToOne: false
643
+ referencedRelation: "execution_logs"
644
+ referencedColumns: ["execution_id"]
645
+ },
646
+ {
647
+ foreignKeyName: "acq_list_executions_list_id_fkey"
648
+ columns: ["list_id"]
649
+ isOneToOne: false
650
+ referencedRelation: "acq_lists"
651
+ referencedColumns: ["id"]
652
+ },
653
+ ]
654
+ }
655
+ acq_list_members: {
656
+ Row: {
657
+ added_at: string
658
+ added_by: string | null
659
+ contact_id: string
660
+ id: string
661
+ list_id: string
662
+ source_execution_id: string | null
663
+ source_input_hash: string | null
664
+ source_resource_id: string | null
665
+ stage: string | null
666
+ stage_updated_at: string | null
667
+ }
668
+ Insert: {
669
+ added_at?: string
670
+ added_by?: string | null
671
+ contact_id: string
672
+ id?: string
673
+ list_id: string
674
+ source_execution_id?: string | null
675
+ source_input_hash?: string | null
676
+ source_resource_id?: string | null
677
+ stage?: string | null
678
+ stage_updated_at?: string | null
679
+ }
680
+ Update: {
681
+ added_at?: string
682
+ added_by?: string | null
683
+ contact_id?: string
684
+ id?: string
685
+ list_id?: string
686
+ source_execution_id?: string | null
687
+ source_input_hash?: string | null
688
+ source_resource_id?: string | null
689
+ stage?: string | null
690
+ stage_updated_at?: string | null
691
+ }
692
+ Relationships: [
693
+ {
694
+ foreignKeyName: "acq_list_members_contact_id_fkey"
695
+ columns: ["contact_id"]
696
+ isOneToOne: false
697
+ referencedRelation: "acq_contacts"
698
+ referencedColumns: ["id"]
699
+ },
700
+ {
701
+ foreignKeyName: "acq_list_members_list_id_fkey"
702
+ columns: ["list_id"]
703
+ isOneToOne: false
704
+ referencedRelation: "acq_lists"
705
+ referencedColumns: ["id"]
706
+ },
707
+ {
708
+ foreignKeyName: "acq_list_members_source_execution_id_fkey"
709
+ columns: ["source_execution_id"]
710
+ isOneToOne: false
711
+ referencedRelation: "execution_logs"
712
+ referencedColumns: ["execution_id"]
713
+ },
714
+ ]
715
+ }
716
+ acq_lists: {
717
+ Row: {
718
+ batch_ids: string[]
719
+ completed_at: string | null
720
+ config: Json
721
+ created_at: string
722
+ description: string | null
723
+ id: string
724
+ instantly_campaign_id: string | null
725
+ launched_at: string | null
726
+ metadata: Json
727
+ name: string
728
+ organization_id: string
729
+ status: string
730
+ type: string
731
+ }
732
+ Insert: {
733
+ batch_ids?: string[]
734
+ completed_at?: string | null
735
+ config?: Json
736
+ created_at?: string
737
+ description?: string | null
738
+ id?: string
739
+ instantly_campaign_id?: string | null
740
+ launched_at?: string | null
741
+ metadata?: Json
742
+ name: string
743
+ organization_id: string
744
+ status?: string
745
+ type?: string
746
+ }
747
+ Update: {
748
+ batch_ids?: string[]
749
+ completed_at?: string | null
750
+ config?: Json
751
+ created_at?: string
752
+ description?: string | null
753
+ id?: string
754
+ instantly_campaign_id?: string | null
755
+ launched_at?: string | null
756
+ metadata?: Json
757
+ name?: string
758
+ organization_id?: string
759
+ status?: string
760
+ type?: string
761
+ }
762
+ Relationships: [
763
+ {
764
+ foreignKeyName: "acq_lists_organization_id_fkey"
765
+ columns: ["organization_id"]
766
+ isOneToOne: false
767
+ referencedRelation: "organizations"
768
+ referencedColumns: ["id"]
769
+ },
770
+ ]
771
+ }
772
+ acq_seo_metrics: {
773
+ Row: {
774
+ ai_citations: Json | null
775
+ avg_position: number | null
776
+ clicks: number | null
777
+ created_at: string
778
+ cta_clicks: number | null
779
+ ctr: number | null
780
+ data_point_count: number | null
781
+ faq_count: number | null
782
+ form_submissions: number | null
783
+ id: string
784
+ impressions: number | null
785
+ organization_id: string
786
+ period: string
787
+ quality_score: number | null
788
+ readability: number | null
789
+ scroll_100: number | null
790
+ scroll_25: number | null
791
+ scroll_50: number | null
792
+ scroll_75: number | null
793
+ seo_page_id: string
794
+ word_count: number | null
795
+ }
796
+ Insert: {
797
+ ai_citations?: Json | null
798
+ avg_position?: number | null
799
+ clicks?: number | null
800
+ created_at?: string
801
+ cta_clicks?: number | null
802
+ ctr?: number | null
803
+ data_point_count?: number | null
804
+ faq_count?: number | null
805
+ form_submissions?: number | null
806
+ id?: string
807
+ impressions?: number | null
808
+ organization_id: string
809
+ period: string
810
+ quality_score?: number | null
811
+ readability?: number | null
812
+ scroll_100?: number | null
813
+ scroll_25?: number | null
814
+ scroll_50?: number | null
815
+ scroll_75?: number | null
816
+ seo_page_id: string
817
+ word_count?: number | null
818
+ }
819
+ Update: {
820
+ ai_citations?: Json | null
821
+ avg_position?: number | null
822
+ clicks?: number | null
823
+ created_at?: string
824
+ cta_clicks?: number | null
825
+ ctr?: number | null
826
+ data_point_count?: number | null
827
+ faq_count?: number | null
828
+ form_submissions?: number | null
829
+ id?: string
830
+ impressions?: number | null
831
+ organization_id?: string
832
+ period?: string
833
+ quality_score?: number | null
834
+ readability?: number | null
835
+ scroll_100?: number | null
836
+ scroll_25?: number | null
837
+ scroll_50?: number | null
838
+ scroll_75?: number | null
839
+ seo_page_id?: string
840
+ word_count?: number | null
841
+ }
842
+ Relationships: [
843
+ {
844
+ foreignKeyName: "acq_seo_metrics_organization_id_fkey"
845
+ columns: ["organization_id"]
846
+ isOneToOne: false
847
+ referencedRelation: "organizations"
848
+ referencedColumns: ["id"]
849
+ },
850
+ {
851
+ foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
852
+ columns: ["seo_page_id"]
853
+ isOneToOne: false
854
+ referencedRelation: "acq_seo_pages"
855
+ referencedColumns: ["id"]
856
+ },
857
+ ]
858
+ }
859
+ acq_seo_pages: {
860
+ Row: {
861
+ city: string | null
862
+ content: Json | null
863
+ created_at: string
864
+ faq_items: Json | null
865
+ hero_image_url: string | null
866
+ id: string
867
+ internal_links: Json | null
868
+ local_data: Json | null
869
+ meta_description: string | null
870
+ organization_id: string
871
+ page_type: string
872
+ published_at: string | null
873
+ refreshed_at: string | null
874
+ schema_markup: Json | null
875
+ slug: string
876
+ state: string | null
877
+ status: string
878
+ title: string
879
+ updated_at: string
880
+ use_case: string | null
881
+ vertical: string
882
+ }
883
+ Insert: {
884
+ city?: string | null
885
+ content?: Json | null
886
+ created_at?: string
887
+ faq_items?: Json | null
888
+ hero_image_url?: string | null
889
+ id?: string
890
+ internal_links?: Json | null
891
+ local_data?: Json | null
892
+ meta_description?: string | null
893
+ organization_id: string
894
+ page_type: string
895
+ published_at?: string | null
896
+ refreshed_at?: string | null
897
+ schema_markup?: Json | null
898
+ slug: string
899
+ state?: string | null
900
+ status?: string
901
+ title: string
902
+ updated_at?: string
903
+ use_case?: string | null
904
+ vertical: string
905
+ }
906
+ Update: {
907
+ city?: string | null
908
+ content?: Json | null
909
+ created_at?: string
910
+ faq_items?: Json | null
911
+ hero_image_url?: string | null
912
+ id?: string
913
+ internal_links?: Json | null
914
+ local_data?: Json | null
915
+ meta_description?: string | null
916
+ organization_id?: string
917
+ page_type?: string
918
+ published_at?: string | null
919
+ refreshed_at?: string | null
920
+ schema_markup?: Json | null
921
+ slug?: string
922
+ state?: string | null
923
+ status?: string
924
+ title?: string
925
+ updated_at?: string
926
+ use_case?: string | null
927
+ vertical?: string
928
+ }
929
+ Relationships: [
930
+ {
931
+ foreignKeyName: "acq_seo_pages_organization_id_fkey"
932
+ columns: ["organization_id"]
933
+ isOneToOne: false
934
+ referencedRelation: "organizations"
935
+ referencedColumns: ["id"]
936
+ },
937
+ ]
938
+ }
939
+ acq_social_posts: {
940
+ Row: {
941
+ author_name: string
942
+ author_url: string | null
943
+ comments_count: number
944
+ created_at: string
945
+ discovered_at: string
946
+ engagement_count: number
947
+ feedback: string | null
948
+ final_response: string | null
949
+ fully_reviewed: boolean
950
+ id: string
951
+ initial_draft: string | null
952
+ matched_keywords: string[]
953
+ matched_query: string | null
954
+ metadata: Json
955
+ organization_id: string
956
+ platform: string
957
+ platform_post_id: string
958
+ post_text: string
959
+ post_title: string
960
+ post_url: string
961
+ posted_at: string
962
+ relevance_score: number
963
+ responded_at: string | null
964
+ reviewed_at: string | null
965
+ skip_reason: string | null
966
+ source_category: string | null
967
+ status: string
968
+ updated_at: string
969
+ }
970
+ Insert: {
971
+ author_name: string
972
+ author_url?: string | null
973
+ comments_count?: number
974
+ created_at?: string
975
+ discovered_at?: string
976
+ engagement_count?: number
977
+ feedback?: string | null
978
+ final_response?: string | null
979
+ fully_reviewed?: boolean
980
+ id?: string
981
+ initial_draft?: string | null
982
+ matched_keywords?: string[]
983
+ matched_query?: string | null
984
+ metadata?: Json
985
+ organization_id: string
986
+ platform: string
987
+ platform_post_id: string
988
+ post_text: string
989
+ post_title: string
990
+ post_url: string
991
+ posted_at: string
992
+ relevance_score?: number
993
+ responded_at?: string | null
994
+ reviewed_at?: string | null
995
+ skip_reason?: string | null
996
+ source_category?: string | null
997
+ status?: string
998
+ updated_at?: string
999
+ }
1000
+ Update: {
1001
+ author_name?: string
1002
+ author_url?: string | null
1003
+ comments_count?: number
1004
+ created_at?: string
1005
+ discovered_at?: string
1006
+ engagement_count?: number
1007
+ feedback?: string | null
1008
+ final_response?: string | null
1009
+ fully_reviewed?: boolean
1010
+ id?: string
1011
+ initial_draft?: string | null
1012
+ matched_keywords?: string[]
1013
+ matched_query?: string | null
1014
+ metadata?: Json
1015
+ organization_id?: string
1016
+ platform?: string
1017
+ platform_post_id?: string
1018
+ post_text?: string
1019
+ post_title?: string
1020
+ post_url?: string
1021
+ posted_at?: string
1022
+ relevance_score?: number
1023
+ responded_at?: string | null
1024
+ reviewed_at?: string | null
1025
+ skip_reason?: string | null
1026
+ source_category?: string | null
1027
+ status?: string
1028
+ updated_at?: string
1029
+ }
1030
+ Relationships: [
1031
+ {
1032
+ foreignKeyName: "acq_social_posts_organization_id_fkey"
1033
+ columns: ["organization_id"]
1034
+ isOneToOne: false
1035
+ referencedRelation: "organizations"
1036
+ referencedColumns: ["id"]
1037
+ },
1038
+ ]
1039
+ }
1040
+ activities: {
1041
+ Row: {
1042
+ activity_type: string
1043
+ actor_id: string | null
1044
+ actor_type: string | null
1045
+ created_at: string
1046
+ description: string | null
1047
+ entity_id: string
1048
+ entity_name: string | null
1049
+ entity_type: string
1050
+ id: string
1051
+ metadata: Json | null
1052
+ occurred_at: string
1053
+ organization_id: string
1054
+ status: string
1055
+ title: string
1056
+ }
1057
+ Insert: {
1058
+ activity_type: string
1059
+ actor_id?: string | null
1060
+ actor_type?: string | null
1061
+ created_at?: string
1062
+ description?: string | null
1063
+ entity_id: string
1064
+ entity_name?: string | null
1065
+ entity_type: string
1066
+ id?: string
1067
+ metadata?: Json | null
1068
+ occurred_at?: string
1069
+ organization_id: string
1070
+ status: string
1071
+ title: string
1072
+ }
1073
+ Update: {
1074
+ activity_type?: string
1075
+ actor_id?: string | null
1076
+ actor_type?: string | null
1077
+ created_at?: string
1078
+ description?: string | null
1079
+ entity_id?: string
1080
+ entity_name?: string | null
1081
+ entity_type?: string
1082
+ id?: string
1083
+ metadata?: Json | null
1084
+ occurred_at?: string
1085
+ organization_id?: string
1086
+ status?: string
1087
+ title?: string
1088
+ }
1089
+ Relationships: [
1090
+ {
1091
+ foreignKeyName: "activities_organization_id_fkey"
1092
+ columns: ["organization_id"]
1093
+ isOneToOne: false
1094
+ referencedRelation: "organizations"
1095
+ referencedColumns: ["id"]
1096
+ },
1097
+ ]
1098
+ }
1099
+ api_keys: {
1100
+ Row: {
1101
+ created_at: string | null
1102
+ id: string
1103
+ key_hash: string
1104
+ last_used_at: string | null
1105
+ name: string
1106
+ organization_id: string
1107
+ }
1108
+ Insert: {
1109
+ created_at?: string | null
1110
+ id?: string
1111
+ key_hash: string
1112
+ last_used_at?: string | null
1113
+ name: string
1114
+ organization_id: string
1115
+ }
1116
+ Update: {
1117
+ created_at?: string | null
1118
+ id?: string
1119
+ key_hash?: string
1120
+ last_used_at?: string | null
1121
+ name?: string
1122
+ organization_id?: string
1123
+ }
1124
+ Relationships: [
1125
+ {
1126
+ foreignKeyName: "api_keys_organization_id_fkey"
1127
+ columns: ["organization_id"]
1128
+ isOneToOne: false
1129
+ referencedRelation: "organizations"
1130
+ referencedColumns: ["id"]
1131
+ },
1132
+ ]
1133
+ }
1134
+ calibration_projects: {
1135
+ Row: {
1136
+ created_at: string | null
1137
+ description: string | null
1138
+ id: string
1139
+ name: string
1140
+ organization_id: string
1141
+ resource_id: string
1142
+ resource_type: string
1143
+ updated_at: string | null
1144
+ }
1145
+ Insert: {
1146
+ created_at?: string | null
1147
+ description?: string | null
1148
+ id?: string
1149
+ name: string
1150
+ organization_id: string
1151
+ resource_id: string
1152
+ resource_type: string
1153
+ updated_at?: string | null
1154
+ }
1155
+ Update: {
1156
+ created_at?: string | null
1157
+ description?: string | null
1158
+ id?: string
1159
+ name?: string
1160
+ organization_id?: string
1161
+ resource_id?: string
1162
+ resource_type?: string
1163
+ updated_at?: string | null
1164
+ }
1165
+ Relationships: [
1166
+ {
1167
+ foreignKeyName: "calibration_projects_organization_id_fkey"
1168
+ columns: ["organization_id"]
1169
+ isOneToOne: false
1170
+ referencedRelation: "organizations"
1171
+ referencedColumns: ["id"]
1172
+ },
1173
+ ]
1174
+ }
1175
+ calibration_runs: {
1176
+ Row: {
1177
+ completed_at: string | null
1178
+ config_variants: Json
1179
+ created_at: string | null
1180
+ description: string | null
1181
+ execution_mode: string
1182
+ grader_model: string | null
1183
+ grading_rubric: Json | null
1184
+ id: string
1185
+ name: string
1186
+ organization_id: string
1187
+ project_id: string
1188
+ results: Json
1189
+ status: string
1190
+ test_inputs: Json
1191
+ }
1192
+ Insert: {
1193
+ completed_at?: string | null
1194
+ config_variants: Json
1195
+ created_at?: string | null
1196
+ description?: string | null
1197
+ execution_mode?: string
1198
+ grader_model?: string | null
1199
+ grading_rubric?: Json | null
1200
+ id?: string
1201
+ name: string
1202
+ organization_id: string
1203
+ project_id: string
1204
+ results?: Json
1205
+ status?: string
1206
+ test_inputs: Json
1207
+ }
1208
+ Update: {
1209
+ completed_at?: string | null
1210
+ config_variants?: Json
1211
+ created_at?: string | null
1212
+ description?: string | null
1213
+ execution_mode?: string
1214
+ grader_model?: string | null
1215
+ grading_rubric?: Json | null
1216
+ id?: string
1217
+ name?: string
1218
+ organization_id?: string
1219
+ project_id?: string
1220
+ results?: Json
1221
+ status?: string
1222
+ test_inputs?: Json
1223
+ }
1224
+ Relationships: [
1225
+ {
1226
+ foreignKeyName: "calibration_runs_organization_id_fkey"
1227
+ columns: ["organization_id"]
1228
+ isOneToOne: false
1229
+ referencedRelation: "organizations"
1230
+ referencedColumns: ["id"]
1231
+ },
1232
+ {
1233
+ foreignKeyName: "calibration_runs_project_id_fkey"
1234
+ columns: ["project_id"]
1235
+ isOneToOne: false
1236
+ referencedRelation: "calibration_projects"
1237
+ referencedColumns: ["id"]
1238
+ },
1239
+ ]
1240
+ }
1241
+ command_queue: {
1242
+ Row: {
1243
+ action_payload: Json | null
1244
+ actions: Json
1245
+ completed_at: string | null
1246
+ completed_by: string | null
1247
+ context: Json
1248
+ created_at: string
1249
+ description: string | null
1250
+ expires_at: string | null
1251
+ human_checkpoint: string | null
1252
+ id: string
1253
+ idempotency_key: string | null
1254
+ metadata: Json | null
1255
+ organization_id: string
1256
+ origin_execution_id: string
1257
+ origin_resource_id: string
1258
+ origin_resource_type: string
1259
+ priority: number
1260
+ selected_action: string | null
1261
+ status: string
1262
+ target_execution_id: string | null
1263
+ target_resource_id: string | null
1264
+ target_resource_type: string | null
1265
+ }
1266
+ Insert: {
1267
+ action_payload?: Json | null
1268
+ actions: Json
1269
+ completed_at?: string | null
1270
+ completed_by?: string | null
1271
+ context: Json
1272
+ created_at?: string
1273
+ description?: string | null
1274
+ expires_at?: string | null
1275
+ human_checkpoint?: string | null
1276
+ id?: string
1277
+ idempotency_key?: string | null
1278
+ metadata?: Json | null
1279
+ organization_id: string
1280
+ origin_execution_id: string
1281
+ origin_resource_id: string
1282
+ origin_resource_type: string
1283
+ priority?: number
1284
+ selected_action?: string | null
1285
+ status?: string
1286
+ target_execution_id?: string | null
1287
+ target_resource_id?: string | null
1288
+ target_resource_type?: string | null
1289
+ }
1290
+ Update: {
1291
+ action_payload?: Json | null
1292
+ actions?: Json
1293
+ completed_at?: string | null
1294
+ completed_by?: string | null
1295
+ context?: Json
1296
+ created_at?: string
1297
+ description?: string | null
1298
+ expires_at?: string | null
1299
+ human_checkpoint?: string | null
1300
+ id?: string
1301
+ idempotency_key?: string | null
1302
+ metadata?: Json | null
1303
+ organization_id?: string
1304
+ origin_execution_id?: string
1305
+ origin_resource_id?: string
1306
+ origin_resource_type?: string
1307
+ priority?: number
1308
+ selected_action?: string | null
1309
+ status?: string
1310
+ target_execution_id?: string | null
1311
+ target_resource_id?: string | null
1312
+ target_resource_type?: string | null
1313
+ }
1314
+ Relationships: [
1315
+ {
1316
+ foreignKeyName: "command_queue_completed_by_fkey"
1317
+ columns: ["completed_by"]
1318
+ isOneToOne: false
1319
+ referencedRelation: "users"
1320
+ referencedColumns: ["id"]
1321
+ },
1322
+ {
1323
+ foreignKeyName: "command_queue_organization_id_fkey"
1324
+ columns: ["organization_id"]
1325
+ isOneToOne: false
1326
+ referencedRelation: "organizations"
1327
+ referencedColumns: ["id"]
1328
+ },
1329
+ {
1330
+ foreignKeyName: "command_queue_target_execution_id_fkey"
1331
+ columns: ["target_execution_id"]
1332
+ isOneToOne: false
1333
+ referencedRelation: "execution_logs"
1334
+ referencedColumns: ["execution_id"]
1335
+ },
1336
+ ]
1337
+ }
1338
+ credentials: {
1339
+ Row: {
1340
+ created_at: string
1341
+ created_by: string | null
1342
+ encrypted_value: string
1343
+ id: string
1344
+ name: string
1345
+ organization_id: string
1346
+ provider: string | null
1347
+ type: string
1348
+ updated_at: string
1349
+ }
1350
+ Insert: {
1351
+ created_at?: string
1352
+ created_by?: string | null
1353
+ encrypted_value: string
1354
+ id?: string
1355
+ name: string
1356
+ organization_id: string
1357
+ provider?: string | null
1358
+ type?: string
1359
+ updated_at?: string
1360
+ }
1361
+ Update: {
1362
+ created_at?: string
1363
+ created_by?: string | null
1364
+ encrypted_value?: string
1365
+ id?: string
1366
+ name?: string
1367
+ organization_id?: string
1368
+ provider?: string | null
1369
+ type?: string
1370
+ updated_at?: string
1371
+ }
1372
+ Relationships: [
1373
+ {
1374
+ foreignKeyName: "credentials_created_by_fkey"
1375
+ columns: ["created_by"]
1376
+ isOneToOne: false
1377
+ referencedRelation: "users"
1378
+ referencedColumns: ["id"]
1379
+ },
1380
+ {
1381
+ foreignKeyName: "credentials_organization_id_fkey"
1382
+ columns: ["organization_id"]
1383
+ isOneToOne: false
1384
+ referencedRelation: "organizations"
1385
+ referencedColumns: ["id"]
1386
+ },
1387
+ ]
1388
+ }
1389
+ deployments: {
1390
+ Row: {
1391
+ compiled_docs: Json | null
1392
+ created_at: string
1393
+ deployment_version: string | null
1394
+ documentation: Json | null
1395
+ error_message: string | null
1396
+ id: string
1397
+ organization_id: string
1398
+ pid: number | null
1399
+ port: number | null
1400
+ sdk_version: string
1401
+ status: string
1402
+ tarball_path: string | null
1403
+ updated_at: string
1404
+ }
1405
+ Insert: {
1406
+ compiled_docs?: Json | null
1407
+ created_at?: string
1408
+ deployment_version?: string | null
1409
+ documentation?: Json | null
1410
+ error_message?: string | null
1411
+ id?: string
1412
+ organization_id: string
1413
+ pid?: number | null
1414
+ port?: number | null
1415
+ sdk_version: string
1416
+ status?: string
1417
+ tarball_path?: string | null
1418
+ updated_at?: string
1419
+ }
1420
+ Update: {
1421
+ compiled_docs?: Json | null
1422
+ created_at?: string
1423
+ deployment_version?: string | null
1424
+ documentation?: Json | null
1425
+ error_message?: string | null
1426
+ id?: string
1427
+ organization_id?: string
1428
+ pid?: number | null
1429
+ port?: number | null
1430
+ sdk_version?: string
1431
+ status?: string
1432
+ tarball_path?: string | null
1433
+ updated_at?: string
1434
+ }
1435
+ Relationships: [
1436
+ {
1437
+ foreignKeyName: "deployments_organization_id_fkey"
1438
+ columns: ["organization_id"]
1439
+ isOneToOne: false
1440
+ referencedRelation: "organizations"
1441
+ referencedColumns: ["id"]
1442
+ },
1443
+ ]
1444
+ }
1445
+ execution_errors: {
1446
+ Row: {
1447
+ created_at: string | null
1448
+ error_category: string
1449
+ error_message: string
1450
+ error_severity: string
1451
+ error_stack_trace: string | null
1452
+ error_type: string
1453
+ execution_id: string
1454
+ id: string
1455
+ metadata: Json | null
1456
+ occurred_at: string
1457
+ organization_id: string
1458
+ resolved: boolean
1459
+ resolved_at: string | null
1460
+ resolved_by: string | null
1461
+ }
1462
+ Insert: {
1463
+ created_at?: string | null
1464
+ error_category: string
1465
+ error_message: string
1466
+ error_severity: string
1467
+ error_stack_trace?: string | null
1468
+ error_type: string
1469
+ execution_id: string
1470
+ id?: string
1471
+ metadata?: Json | null
1472
+ occurred_at?: string
1473
+ organization_id: string
1474
+ resolved?: boolean
1475
+ resolved_at?: string | null
1476
+ resolved_by?: string | null
1477
+ }
1478
+ Update: {
1479
+ created_at?: string | null
1480
+ error_category?: string
1481
+ error_message?: string
1482
+ error_severity?: string
1483
+ error_stack_trace?: string | null
1484
+ error_type?: string
1485
+ execution_id?: string
1486
+ id?: string
1487
+ metadata?: Json | null
1488
+ occurred_at?: string
1489
+ organization_id?: string
1490
+ resolved?: boolean
1491
+ resolved_at?: string | null
1492
+ resolved_by?: string | null
1493
+ }
1494
+ Relationships: [
1495
+ {
1496
+ foreignKeyName: "execution_errors_execution_id_fkey"
1497
+ columns: ["execution_id"]
1498
+ isOneToOne: false
1499
+ referencedRelation: "execution_logs"
1500
+ referencedColumns: ["execution_id"]
1501
+ },
1502
+ {
1503
+ foreignKeyName: "execution_errors_organization_id_fkey"
1504
+ columns: ["organization_id"]
1505
+ isOneToOne: false
1506
+ referencedRelation: "organizations"
1507
+ referencedColumns: ["id"]
1508
+ },
1509
+ {
1510
+ foreignKeyName: "execution_errors_resolved_by_fkey"
1511
+ columns: ["resolved_by"]
1512
+ isOneToOne: false
1513
+ referencedRelation: "users"
1514
+ referencedColumns: ["id"]
1515
+ },
1516
+ ]
1517
+ }
1518
+ execution_logs: {
1519
+ Row: {
1520
+ api_version: string | null
1521
+ completed_at: string | null
1522
+ created_at: string | null
1523
+ error: string | null
1524
+ execution_id: string
1525
+ input: Json | null
1526
+ last_heartbeat_at: string | null
1527
+ logs: Json | null
1528
+ organization_id: string
1529
+ origin_execution_id: string | null
1530
+ output: Json | null
1531
+ resource_id: string
1532
+ resource_status: string
1533
+ resource_type: string
1534
+ resource_version: string | null
1535
+ sdk_version: string | null
1536
+ session_id: string | null
1537
+ session_turn_number: number | null
1538
+ started_at: string
1539
+ status: string
1540
+ trigger_type: string | null
1541
+ updated_at: string | null
1542
+ user_id: string | null
1543
+ }
1544
+ Insert: {
1545
+ api_version?: string | null
1546
+ completed_at?: string | null
1547
+ created_at?: string | null
1548
+ error?: string | null
1549
+ execution_id?: string
1550
+ input?: Json | null
1551
+ last_heartbeat_at?: string | null
1552
+ logs?: Json | null
1553
+ organization_id: string
1554
+ origin_execution_id?: string | null
1555
+ output?: Json | null
1556
+ resource_id: string
1557
+ resource_status?: string
1558
+ resource_type?: string
1559
+ resource_version?: string | null
1560
+ sdk_version?: string | null
1561
+ session_id?: string | null
1562
+ session_turn_number?: number | null
1563
+ started_at?: string
1564
+ status: string
1565
+ trigger_type?: string | null
1566
+ updated_at?: string | null
1567
+ user_id?: string | null
1568
+ }
1569
+ Update: {
1570
+ api_version?: string | null
1571
+ completed_at?: string | null
1572
+ created_at?: string | null
1573
+ error?: string | null
1574
+ execution_id?: string
1575
+ input?: Json | null
1576
+ last_heartbeat_at?: string | null
1577
+ logs?: Json | null
1578
+ organization_id?: string
1579
+ origin_execution_id?: string | null
1580
+ output?: Json | null
1581
+ resource_id?: string
1582
+ resource_status?: string
1583
+ resource_type?: string
1584
+ resource_version?: string | null
1585
+ sdk_version?: string | null
1586
+ session_id?: string | null
1587
+ session_turn_number?: number | null
1588
+ started_at?: string
1589
+ status?: string
1590
+ trigger_type?: string | null
1591
+ updated_at?: string | null
1592
+ user_id?: string | null
1593
+ }
1594
+ Relationships: [
1595
+ {
1596
+ foreignKeyName: "execution_history_organization_id_fkey"
1597
+ columns: ["organization_id"]
1598
+ isOneToOne: false
1599
+ referencedRelation: "organizations"
1600
+ referencedColumns: ["id"]
1601
+ },
1602
+ {
1603
+ foreignKeyName: "execution_logs_origin_execution_id_fkey"
1604
+ columns: ["origin_execution_id"]
1605
+ isOneToOne: false
1606
+ referencedRelation: "execution_logs"
1607
+ referencedColumns: ["execution_id"]
1608
+ },
1609
+ {
1610
+ foreignKeyName: "execution_logs_session_id_fkey"
1611
+ columns: ["session_id"]
1612
+ isOneToOne: false
1613
+ referencedRelation: "sessions"
1614
+ referencedColumns: ["session_id"]
1615
+ },
1616
+ {
1617
+ foreignKeyName: "execution_logs_user_id_fkey"
1618
+ columns: ["user_id"]
1619
+ isOneToOne: false
1620
+ referencedRelation: "users"
1621
+ referencedColumns: ["id"]
1622
+ },
1623
+ ]
1624
+ }
1625
+ execution_metrics: {
1626
+ Row: {
1627
+ ai_call_count: number
1628
+ ai_calls: Json | null
1629
+ automation_savings_usd: number | null
1630
+ created_at: string | null
1631
+ duration_ms: number | null
1632
+ execution_id: string
1633
+ organization_id: string
1634
+ resource_id: string
1635
+ total_cost_usd: number
1636
+ total_input_tokens: number
1637
+ total_output_tokens: number
1638
+ }
1639
+ Insert: {
1640
+ ai_call_count: number
1641
+ ai_calls?: Json | null
1642
+ automation_savings_usd?: number | null
1643
+ created_at?: string | null
1644
+ duration_ms?: number | null
1645
+ execution_id: string
1646
+ organization_id: string
1647
+ resource_id: string
1648
+ total_cost_usd: number
1649
+ total_input_tokens: number
1650
+ total_output_tokens: number
1651
+ }
1652
+ Update: {
1653
+ ai_call_count?: number
1654
+ ai_calls?: Json | null
1655
+ automation_savings_usd?: number | null
1656
+ created_at?: string | null
1657
+ duration_ms?: number | null
1658
+ execution_id?: string
1659
+ organization_id?: string
1660
+ resource_id?: string
1661
+ total_cost_usd?: number
1662
+ total_input_tokens?: number
1663
+ total_output_tokens?: number
1664
+ }
1665
+ Relationships: [
1666
+ {
1667
+ foreignKeyName: "execution_metrics_execution_id_fkey"
1668
+ columns: ["execution_id"]
1669
+ isOneToOne: true
1670
+ referencedRelation: "execution_logs"
1671
+ referencedColumns: ["execution_id"]
1672
+ },
1673
+ {
1674
+ foreignKeyName: "execution_metrics_organization_id_fkey"
1675
+ columns: ["organization_id"]
1676
+ isOneToOne: false
1677
+ referencedRelation: "organizations"
1678
+ referencedColumns: ["id"]
1679
+ },
1680
+ ]
1681
+ }
1682
+ notifications: {
1683
+ Row: {
1684
+ action_url: string | null
1685
+ category: string
1686
+ created_at: string | null
1687
+ id: string
1688
+ message: string
1689
+ organization_id: string
1690
+ read: boolean | null
1691
+ read_at: string | null
1692
+ title: string
1693
+ user_id: string
1694
+ }
1695
+ Insert: {
1696
+ action_url?: string | null
1697
+ category: string
1698
+ created_at?: string | null
1699
+ id?: string
1700
+ message: string
1701
+ organization_id: string
1702
+ read?: boolean | null
1703
+ read_at?: string | null
1704
+ title: string
1705
+ user_id: string
1706
+ }
1707
+ Update: {
1708
+ action_url?: string | null
1709
+ category?: string
1710
+ created_at?: string | null
1711
+ id?: string
1712
+ message?: string
1713
+ organization_id?: string
1714
+ read?: boolean | null
1715
+ read_at?: string | null
1716
+ title?: string
1717
+ user_id?: string
1718
+ }
1719
+ Relationships: [
1720
+ {
1721
+ foreignKeyName: "notifications_organization_id_fkey"
1722
+ columns: ["organization_id"]
1723
+ isOneToOne: false
1724
+ referencedRelation: "organizations"
1725
+ referencedColumns: ["id"]
1726
+ },
1727
+ {
1728
+ foreignKeyName: "notifications_user_id_fkey"
1729
+ columns: ["user_id"]
1730
+ isOneToOne: false
1731
+ referencedRelation: "users"
1732
+ referencedColumns: ["id"]
1733
+ },
1734
+ ]
1735
+ }
1736
+ org_invitations: {
1737
+ Row: {
1738
+ accept_invitation_url: string | null
1739
+ accepted_at: string | null
1740
+ created_at: string | null
1741
+ email: string
1742
+ expires_at: string
1743
+ id: string
1744
+ invitation_state: string | null
1745
+ invitation_token: string | null
1746
+ inviter_user_id: string | null
1747
+ organization_id: string | null
1748
+ revoked_at: string | null
1749
+ role_slug: string | null
1750
+ updated_at: string | null
1751
+ workos_invitation_id: string
1752
+ }
1753
+ Insert: {
1754
+ accept_invitation_url?: string | null
1755
+ accepted_at?: string | null
1756
+ created_at?: string | null
1757
+ email: string
1758
+ expires_at: string
1759
+ id?: string
1760
+ invitation_state?: string | null
1761
+ invitation_token?: string | null
1762
+ inviter_user_id?: string | null
1763
+ organization_id?: string | null
1764
+ revoked_at?: string | null
1765
+ role_slug?: string | null
1766
+ updated_at?: string | null
1767
+ workos_invitation_id: string
1768
+ }
1769
+ Update: {
1770
+ accept_invitation_url?: string | null
1771
+ accepted_at?: string | null
1772
+ created_at?: string | null
1773
+ email?: string
1774
+ expires_at?: string
1775
+ id?: string
1776
+ invitation_state?: string | null
1777
+ invitation_token?: string | null
1778
+ inviter_user_id?: string | null
1779
+ organization_id?: string | null
1780
+ revoked_at?: string | null
1781
+ role_slug?: string | null
1782
+ updated_at?: string | null
1783
+ workos_invitation_id?: string
1784
+ }
1785
+ Relationships: [
1786
+ {
1787
+ foreignKeyName: "org_invitations_inviter_user_id_fkey"
1788
+ columns: ["inviter_user_id"]
1789
+ isOneToOne: false
1790
+ referencedRelation: "users"
1791
+ referencedColumns: ["id"]
1792
+ },
1793
+ {
1794
+ foreignKeyName: "org_invitations_organization_id_fkey"
1795
+ columns: ["organization_id"]
1796
+ isOneToOne: false
1797
+ referencedRelation: "organizations"
1798
+ referencedColumns: ["id"]
1799
+ },
1800
+ ]
1801
+ }
1802
+ org_memberships: {
1803
+ Row: {
1804
+ config: Json
1805
+ created_at: string | null
1806
+ id: string
1807
+ membership_status: string | null
1808
+ organization_id: string
1809
+ role_slug: string | null
1810
+ updated_at: string | null
1811
+ user_id: string
1812
+ workos_membership_id: string | null
1813
+ }
1814
+ Insert: {
1815
+ config?: Json
1816
+ created_at?: string | null
1817
+ id?: string
1818
+ membership_status?: string | null
1819
+ organization_id: string
1820
+ role_slug?: string | null
1821
+ updated_at?: string | null
1822
+ user_id: string
1823
+ workos_membership_id?: string | null
1824
+ }
1825
+ Update: {
1826
+ config?: Json
1827
+ created_at?: string | null
1828
+ id?: string
1829
+ membership_status?: string | null
1830
+ organization_id?: string
1831
+ role_slug?: string | null
1832
+ updated_at?: string | null
1833
+ user_id?: string
1834
+ workos_membership_id?: string | null
1835
+ }
1836
+ Relationships: [
1837
+ {
1838
+ foreignKeyName: "org_memberships_organization_id_fkey"
1839
+ columns: ["organization_id"]
1840
+ isOneToOne: false
1841
+ referencedRelation: "organizations"
1842
+ referencedColumns: ["id"]
1843
+ },
1844
+ {
1845
+ foreignKeyName: "org_memberships_user_id_fkey"
1846
+ columns: ["user_id"]
1847
+ isOneToOne: false
1848
+ referencedRelation: "users"
1849
+ referencedColumns: ["id"]
1850
+ },
1851
+ ]
1852
+ }
1853
+ organizations: {
1854
+ Row: {
1855
+ config: Json
1856
+ created_at: string
1857
+ id: string
1858
+ is_test: boolean
1859
+ metadata: Json
1860
+ name: string
1861
+ status: string
1862
+ updated_at: string
1863
+ workos_org_id: string
1864
+ }
1865
+ Insert: {
1866
+ config?: Json
1867
+ created_at?: string
1868
+ id?: string
1869
+ is_test?: boolean
1870
+ metadata?: Json
1871
+ name: string
1872
+ status?: string
1873
+ updated_at?: string
1874
+ workos_org_id: string
1875
+ }
1876
+ Update: {
1877
+ config?: Json
1878
+ created_at?: string
1879
+ id?: string
1880
+ is_test?: boolean
1881
+ metadata?: Json
1882
+ name?: string
1883
+ status?: string
1884
+ updated_at?: string
1885
+ workos_org_id?: string
1886
+ }
1887
+ Relationships: []
1888
+ }
1889
+ prj_milestones: {
1890
+ Row: {
1891
+ checklist: Json | null
1892
+ completed_at: string | null
1893
+ created_at: string
1894
+ description: string | null
1895
+ due_date: string | null
1896
+ id: string
1897
+ metadata: Json | null
1898
+ name: string
1899
+ organization_id: string
1900
+ project_id: string
1901
+ sequence: number
1902
+ status: string
1903
+ updated_at: string
1904
+ }
1905
+ Insert: {
1906
+ checklist?: Json | null
1907
+ completed_at?: string | null
1908
+ created_at?: string
1909
+ description?: string | null
1910
+ due_date?: string | null
1911
+ id?: string
1912
+ metadata?: Json | null
1913
+ name: string
1914
+ organization_id: string
1915
+ project_id: string
1916
+ sequence?: number
1917
+ status?: string
1918
+ updated_at?: string
1919
+ }
1920
+ Update: {
1921
+ checklist?: Json | null
1922
+ completed_at?: string | null
1923
+ created_at?: string
1924
+ description?: string | null
1925
+ due_date?: string | null
1926
+ id?: string
1927
+ metadata?: Json | null
1928
+ name?: string
1929
+ organization_id?: string
1930
+ project_id?: string
1931
+ sequence?: number
1932
+ status?: string
1933
+ updated_at?: string
1934
+ }
1935
+ Relationships: [
1936
+ {
1937
+ foreignKeyName: "prj_milestones_organization_id_fkey"
1938
+ columns: ["organization_id"]
1939
+ isOneToOne: false
1940
+ referencedRelation: "organizations"
1941
+ referencedColumns: ["id"]
1942
+ },
1943
+ {
1944
+ foreignKeyName: "prj_milestones_project_id_fkey"
1945
+ columns: ["project_id"]
1946
+ isOneToOne: false
1947
+ referencedRelation: "prj_projects"
1948
+ referencedColumns: ["id"]
1949
+ },
1950
+ ]
1951
+ }
1952
+ prj_notes: {
1953
+ Row: {
1954
+ content: string
1955
+ created_at: string
1956
+ created_by: string | null
1957
+ id: string
1958
+ metadata: Json | null
1959
+ milestone_id: string | null
1960
+ occurred_at: string
1961
+ organization_id: string
1962
+ project_id: string
1963
+ summary: string | null
1964
+ task_id: string | null
1965
+ type: string
1966
+ }
1967
+ Insert: {
1968
+ content: string
1969
+ created_at?: string
1970
+ created_by?: string | null
1971
+ id?: string
1972
+ metadata?: Json | null
1973
+ milestone_id?: string | null
1974
+ occurred_at?: string
1975
+ organization_id: string
1976
+ project_id: string
1977
+ summary?: string | null
1978
+ task_id?: string | null
1979
+ type?: string
1980
+ }
1981
+ Update: {
1982
+ content?: string
1983
+ created_at?: string
1984
+ created_by?: string | null
1985
+ id?: string
1986
+ metadata?: Json | null
1987
+ milestone_id?: string | null
1988
+ occurred_at?: string
1989
+ organization_id?: string
1990
+ project_id?: string
1991
+ summary?: string | null
1992
+ task_id?: string | null
1993
+ type?: string
1994
+ }
1995
+ Relationships: [
1996
+ {
1997
+ foreignKeyName: "prj_notes_created_by_fkey"
1998
+ columns: ["created_by"]
1999
+ isOneToOne: false
2000
+ referencedRelation: "users"
2001
+ referencedColumns: ["id"]
2002
+ },
2003
+ {
2004
+ foreignKeyName: "prj_notes_milestone_id_fkey"
2005
+ columns: ["milestone_id"]
2006
+ isOneToOne: false
2007
+ referencedRelation: "prj_milestones"
2008
+ referencedColumns: ["id"]
2009
+ },
2010
+ {
2011
+ foreignKeyName: "prj_notes_organization_id_fkey"
2012
+ columns: ["organization_id"]
2013
+ isOneToOne: false
2014
+ referencedRelation: "organizations"
2015
+ referencedColumns: ["id"]
2016
+ },
2017
+ {
2018
+ foreignKeyName: "prj_notes_project_id_fkey"
2019
+ columns: ["project_id"]
2020
+ isOneToOne: false
2021
+ referencedRelation: "prj_projects"
2022
+ referencedColumns: ["id"]
2023
+ },
2024
+ {
2025
+ foreignKeyName: "prj_notes_task_id_fkey"
2026
+ columns: ["task_id"]
2027
+ isOneToOne: false
2028
+ referencedRelation: "prj_tasks"
2029
+ referencedColumns: ["id"]
2030
+ },
2031
+ ]
2032
+ }
2033
+ prj_projects: {
2034
+ Row: {
2035
+ actual_end_date: string | null
2036
+ client_company_id: string | null
2037
+ contract_value: number | null
2038
+ created_at: string
2039
+ deal_id: string | null
2040
+ description: string | null
2041
+ id: string
2042
+ kind: string
2043
+ metadata: Json | null
2044
+ name: string
2045
+ organization_id: string
2046
+ start_date: string | null
2047
+ status: string
2048
+ target_end_date: string | null
2049
+ updated_at: string
2050
+ }
2051
+ Insert: {
2052
+ actual_end_date?: string | null
2053
+ client_company_id?: string | null
2054
+ contract_value?: number | null
2055
+ created_at?: string
2056
+ deal_id?: string | null
2057
+ description?: string | null
2058
+ id?: string
2059
+ kind?: string
2060
+ metadata?: Json | null
2061
+ name: string
2062
+ organization_id: string
2063
+ start_date?: string | null
2064
+ status?: string
2065
+ target_end_date?: string | null
2066
+ updated_at?: string
2067
+ }
2068
+ Update: {
2069
+ actual_end_date?: string | null
2070
+ client_company_id?: string | null
2071
+ contract_value?: number | null
2072
+ created_at?: string
2073
+ deal_id?: string | null
2074
+ description?: string | null
2075
+ id?: string
2076
+ kind?: string
2077
+ metadata?: Json | null
2078
+ name?: string
2079
+ organization_id?: string
2080
+ start_date?: string | null
2081
+ status?: string
2082
+ target_end_date?: string | null
2083
+ updated_at?: string
2084
+ }
2085
+ Relationships: [
2086
+ {
2087
+ foreignKeyName: "prj_projects_client_company_id_fkey"
2088
+ columns: ["client_company_id"]
2089
+ isOneToOne: false
2090
+ referencedRelation: "acq_companies"
2091
+ referencedColumns: ["id"]
2092
+ },
2093
+ {
2094
+ foreignKeyName: "prj_projects_deal_id_fkey"
2095
+ columns: ["deal_id"]
2096
+ isOneToOne: false
2097
+ referencedRelation: "acq_deals"
2098
+ referencedColumns: ["id"]
2099
+ },
2100
+ {
2101
+ foreignKeyName: "prj_projects_organization_id_fkey"
2102
+ columns: ["organization_id"]
2103
+ isOneToOne: false
2104
+ referencedRelation: "organizations"
2105
+ referencedColumns: ["id"]
2106
+ },
2107
+ ]
2108
+ }
2109
+ prj_tasks: {
2110
+ Row: {
2111
+ checklist: Json
2112
+ completed_at: string | null
2113
+ created_at: string
2114
+ description: string | null
2115
+ due_date: string | null
2116
+ file_url: string | null
2117
+ id: string
2118
+ metadata: Json | null
2119
+ milestone_id: string | null
2120
+ name: string
2121
+ organization_id: string
2122
+ parent_task_id: string | null
2123
+ project_id: string
2124
+ resume_context: Json | null
2125
+ status: string
2126
+ type: string
2127
+ updated_at: string
2128
+ }
2129
+ Insert: {
2130
+ checklist?: Json
2131
+ completed_at?: string | null
2132
+ created_at?: string
2133
+ description?: string | null
2134
+ due_date?: string | null
2135
+ file_url?: string | null
2136
+ id?: string
2137
+ metadata?: Json | null
2138
+ milestone_id?: string | null
2139
+ name: string
2140
+ organization_id: string
2141
+ parent_task_id?: string | null
2142
+ project_id: string
2143
+ resume_context?: Json | null
2144
+ status?: string
2145
+ type?: string
2146
+ updated_at?: string
2147
+ }
2148
+ Update: {
2149
+ checklist?: Json
2150
+ completed_at?: string | null
2151
+ created_at?: string
2152
+ description?: string | null
2153
+ due_date?: string | null
2154
+ file_url?: string | null
2155
+ id?: string
2156
+ metadata?: Json | null
2157
+ milestone_id?: string | null
2158
+ name?: string
2159
+ organization_id?: string
2160
+ parent_task_id?: string | null
2161
+ project_id?: string
2162
+ resume_context?: Json | null
2163
+ status?: string
2164
+ type?: string
2165
+ updated_at?: string
2166
+ }
2167
+ Relationships: [
2168
+ {
2169
+ foreignKeyName: "prj_tasks_milestone_id_fkey"
2170
+ columns: ["milestone_id"]
2171
+ isOneToOne: false
2172
+ referencedRelation: "prj_milestones"
2173
+ referencedColumns: ["id"]
2174
+ },
2175
+ {
2176
+ foreignKeyName: "prj_tasks_organization_id_fkey"
2177
+ columns: ["organization_id"]
2178
+ isOneToOne: false
2179
+ referencedRelation: "organizations"
2180
+ referencedColumns: ["id"]
2181
+ },
2182
+ {
2183
+ foreignKeyName: "prj_tasks_parent_task_id_fkey"
2184
+ columns: ["parent_task_id"]
2185
+ isOneToOne: false
2186
+ referencedRelation: "prj_tasks"
2187
+ referencedColumns: ["id"]
2188
+ },
2189
+ {
2190
+ foreignKeyName: "prj_tasks_project_id_fkey"
2191
+ columns: ["project_id"]
2192
+ isOneToOne: false
2193
+ referencedRelation: "prj_projects"
2194
+ referencedColumns: ["id"]
2195
+ },
2196
+ ]
2197
+ }
2198
+ session_messages: {
2199
+ Row: {
2200
+ created_at: string | null
2201
+ id: string
2202
+ message: string
2203
+ message_index: number | null
2204
+ message_type: string | null
2205
+ metadata: Json | null
2206
+ role: string
2207
+ session_id: string
2208
+ session_turn_number: number
2209
+ }
2210
+ Insert: {
2211
+ created_at?: string | null
2212
+ id: string
2213
+ message: string
2214
+ message_index?: number | null
2215
+ message_type?: string | null
2216
+ metadata?: Json | null
2217
+ role: string
2218
+ session_id: string
2219
+ session_turn_number: number
2220
+ }
2221
+ Update: {
2222
+ created_at?: string | null
2223
+ id?: string
2224
+ message?: string
2225
+ message_index?: number | null
2226
+ message_type?: string | null
2227
+ metadata?: Json | null
2228
+ role?: string
2229
+ session_id?: string
2230
+ session_turn_number?: number
2231
+ }
2232
+ Relationships: [
2233
+ {
2234
+ foreignKeyName: "session_messages_session_id_fkey"
2235
+ columns: ["session_id"]
2236
+ isOneToOne: false
2237
+ referencedRelation: "sessions"
2238
+ referencedColumns: ["session_id"]
2239
+ },
2240
+ ]
2241
+ }
2242
+ sessions: {
2243
+ Row: {
2244
+ context_window_size: number
2245
+ created_at: string | null
2246
+ cumulative_input_tokens: number
2247
+ cumulative_output_tokens: number
2248
+ deleted_at: string | null
2249
+ ended_at: string | null
2250
+ memory_snapshot: Json
2251
+ metadata: Json | null
2252
+ organization_id: string
2253
+ resource_id: string
2254
+ session_id: string
2255
+ session_total_turns: number | null
2256
+ updated_at: string | null
2257
+ user_id: string | null
2258
+ }
2259
+ Insert: {
2260
+ context_window_size?: number
2261
+ created_at?: string | null
2262
+ cumulative_input_tokens?: number
2263
+ cumulative_output_tokens?: number
2264
+ deleted_at?: string | null
2265
+ ended_at?: string | null
2266
+ memory_snapshot: Json
2267
+ metadata?: Json | null
2268
+ organization_id: string
2269
+ resource_id: string
2270
+ session_id?: string
2271
+ session_total_turns?: number | null
2272
+ updated_at?: string | null
2273
+ user_id?: string | null
2274
+ }
2275
+ Update: {
2276
+ context_window_size?: number
2277
+ created_at?: string | null
2278
+ cumulative_input_tokens?: number
2279
+ cumulative_output_tokens?: number
2280
+ deleted_at?: string | null
2281
+ ended_at?: string | null
2282
+ memory_snapshot?: Json
2283
+ metadata?: Json | null
2284
+ organization_id?: string
2285
+ resource_id?: string
2286
+ session_id?: string
2287
+ session_total_turns?: number | null
2288
+ updated_at?: string | null
2289
+ user_id?: string | null
2290
+ }
2291
+ Relationships: [
2292
+ {
2293
+ foreignKeyName: "fk_organization"
2294
+ columns: ["organization_id"]
2295
+ isOneToOne: false
2296
+ referencedRelation: "organizations"
2297
+ referencedColumns: ["id"]
2298
+ },
2299
+ {
2300
+ foreignKeyName: "fk_user"
2301
+ columns: ["user_id"]
2302
+ isOneToOne: false
2303
+ referencedRelation: "users"
2304
+ referencedColumns: ["id"]
2305
+ },
2306
+ ]
2307
+ }
2308
+ task_schedules: {
2309
+ Row: {
2310
+ created_at: string
2311
+ current_step: number
2312
+ description: string | null
2313
+ id: string
2314
+ idempotency_key: string | null
2315
+ last_execution_id: string | null
2316
+ last_run_at: string | null
2317
+ max_retries: number
2318
+ metadata: Json | null
2319
+ name: string
2320
+ next_run_at: string | null
2321
+ organization_id: string
2322
+ origin_execution_id: string | null
2323
+ origin_resource_id: string | null
2324
+ origin_resource_type: string | null
2325
+ retry_count: number
2326
+ schedule_config: Json
2327
+ status: string
2328
+ target_resource_id: string
2329
+ target_resource_type: string
2330
+ updated_at: string
2331
+ }
2332
+ Insert: {
2333
+ created_at?: string
2334
+ current_step?: number
2335
+ description?: string | null
2336
+ id?: string
2337
+ idempotency_key?: string | null
2338
+ last_execution_id?: string | null
2339
+ last_run_at?: string | null
2340
+ max_retries?: number
2341
+ metadata?: Json | null
2342
+ name: string
2343
+ next_run_at?: string | null
2344
+ organization_id: string
2345
+ origin_execution_id?: string | null
2346
+ origin_resource_id?: string | null
2347
+ origin_resource_type?: string | null
2348
+ retry_count?: number
2349
+ schedule_config: Json
2350
+ status?: string
2351
+ target_resource_id: string
2352
+ target_resource_type: string
2353
+ updated_at?: string
2354
+ }
2355
+ Update: {
2356
+ created_at?: string
2357
+ current_step?: number
2358
+ description?: string | null
2359
+ id?: string
2360
+ idempotency_key?: string | null
2361
+ last_execution_id?: string | null
2362
+ last_run_at?: string | null
2363
+ max_retries?: number
2364
+ metadata?: Json | null
2365
+ name?: string
2366
+ next_run_at?: string | null
2367
+ organization_id?: string
2368
+ origin_execution_id?: string | null
2369
+ origin_resource_id?: string | null
2370
+ origin_resource_type?: string | null
2371
+ retry_count?: number
2372
+ schedule_config?: Json
2373
+ status?: string
2374
+ target_resource_id?: string
2375
+ target_resource_type?: string
2376
+ updated_at?: string
2377
+ }
2378
+ Relationships: [
2379
+ {
2380
+ foreignKeyName: "task_schedules_organization_id_fkey"
2381
+ columns: ["organization_id"]
2382
+ isOneToOne: false
2383
+ referencedRelation: "organizations"
2384
+ referencedColumns: ["id"]
2385
+ },
2386
+ ]
2387
+ }
2388
+ users: {
2389
+ Row: {
2390
+ config: Json
2391
+ created_at: string
2392
+ display_name: string | null
2393
+ email: string
2394
+ first_name: string | null
2395
+ id: string
2396
+ is_active: boolean
2397
+ is_platform_admin: boolean | null
2398
+ last_login_at: string | null
2399
+ last_name: string | null
2400
+ last_visited_org: string | null
2401
+ profile_picture_url: string | null
2402
+ updated_at: string
2403
+ workos_user_id: string | null
2404
+ }
2405
+ Insert: {
2406
+ config?: Json
2407
+ created_at?: string
2408
+ display_name?: string | null
2409
+ email: string
2410
+ first_name?: string | null
2411
+ id?: string
2412
+ is_active?: boolean
2413
+ is_platform_admin?: boolean | null
2414
+ last_login_at?: string | null
2415
+ last_name?: string | null
2416
+ last_visited_org?: string | null
2417
+ profile_picture_url?: string | null
2418
+ updated_at?: string
2419
+ workos_user_id?: string | null
2420
+ }
2421
+ Update: {
2422
+ config?: Json
2423
+ created_at?: string
2424
+ display_name?: string | null
2425
+ email?: string
2426
+ first_name?: string | null
2427
+ id?: string
2428
+ is_active?: boolean
2429
+ is_platform_admin?: boolean | null
2430
+ last_login_at?: string | null
2431
+ last_name?: string | null
2432
+ last_visited_org?: string | null
2433
+ profile_picture_url?: string | null
2434
+ updated_at?: string
2435
+ workos_user_id?: string | null
2436
+ }
2437
+ Relationships: [
2438
+ {
2439
+ foreignKeyName: "user_profiles_last_visited_org_fkey"
2440
+ columns: ["last_visited_org"]
2441
+ isOneToOne: false
2442
+ referencedRelation: "organizations"
2443
+ referencedColumns: ["id"]
2444
+ },
2445
+ ]
2446
+ }
2447
+ webhook_endpoints: {
2448
+ Row: {
2449
+ created_at: string
2450
+ description: string | null
2451
+ id: string
2452
+ key: string
2453
+ last_triggered_at: string | null
2454
+ name: string
2455
+ organization_id: string
2456
+ request_count: number
2457
+ resource_id: string | null
2458
+ status: string
2459
+ updated_at: string
2460
+ }
2461
+ Insert: {
2462
+ created_at?: string
2463
+ description?: string | null
2464
+ id?: string
2465
+ key: string
2466
+ last_triggered_at?: string | null
2467
+ name: string
2468
+ organization_id: string
2469
+ request_count?: number
2470
+ resource_id?: string | null
2471
+ status?: string
2472
+ updated_at?: string
2473
+ }
2474
+ Update: {
2475
+ created_at?: string
2476
+ description?: string | null
2477
+ id?: string
2478
+ key?: string
2479
+ last_triggered_at?: string | null
2480
+ name?: string
2481
+ organization_id?: string
2482
+ request_count?: number
2483
+ resource_id?: string | null
2484
+ status?: string
2485
+ updated_at?: string
2486
+ }
2487
+ Relationships: [
2488
+ {
2489
+ foreignKeyName: "webhook_endpoints_organization_id_fkey"
2490
+ columns: ["organization_id"]
2491
+ isOneToOne: false
2492
+ referencedRelation: "organizations"
2493
+ referencedColumns: ["id"]
2494
+ },
2495
+ ]
2496
+ }
2497
+ }
2498
+ Views: {
2499
+ [_ in never]: never
2500
+ }
2501
+ Functions: {
2502
+ acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
2503
+ append_deal_activity: {
2504
+ Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
2505
+ Returns: undefined
2506
+ }
2507
+ auth_jwt_claims: { Args: never; Returns: Json }
2508
+ auth_uid_safe: { Args: never; Returns: string }
2509
+ current_user_is_platform_admin: { Args: never; Returns: boolean }
2510
+ current_user_supabase_id: { Args: never; Returns: string }
2511
+ detect_stalled_executions: { Args: never; Returns: undefined }
2512
+ execute_session_turn: {
2513
+ Args: { p_session_id: string }
2514
+ Returns: {
2515
+ created_at: string
2516
+ ended_at: string
2517
+ memory_snapshot: Json
2518
+ metadata: Json
2519
+ organization_id: string
2520
+ resource_id: string
2521
+ session_id: string
2522
+ session_total_turns: number
2523
+ updated_at: string
2524
+ user_id: string
2525
+ }[]
2526
+ }
2527
+ get_storage_org_id: { Args: { file_path: string }; Returns: string }
2528
+ get_workos_user_id: { Args: never; Returns: string }
2529
+ is_org_admin: { Args: { org_id: string }; Returns: boolean }
2530
+ is_org_member: { Args: { org_id: string }; Returns: boolean }
2531
+ link_workos_membership_on_accept: {
2532
+ Args: {
2533
+ p_email: string
2534
+ p_organization_id: string
2535
+ p_workos_membership_id: string
2536
+ }
2537
+ Returns: boolean
2538
+ }
2539
+ pre_provision_invited_user: {
2540
+ Args: {
2541
+ p_email: string
2542
+ p_organization_id: string
2543
+ p_role_slug?: string
2544
+ }
2545
+ Returns: Json
2546
+ }
2547
+ process_due_schedules: { Args: never; Returns: Json }
2548
+ upsert_user_profile: {
2549
+ Args: never
2550
+ Returns: {
2551
+ profile_display_name: string
2552
+ profile_email: string
2553
+ profile_id: string
2554
+ profile_workos_user_id: string
2555
+ }[]
2556
+ }
2557
+ }
2558
+ Enums: {
2559
+ [_ in never]: never
2560
+ }
2561
+ CompositeTypes: {
2562
+ [_ in never]: never
2563
+ }
2564
+ }
2565
+ }
2566
+
2567
+ type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
2568
+
2569
+ type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
2570
+
2571
+ interface MilestoneTimelineProps {
2572
+ milestones: MilestoneRow[];
2573
+ tasks: TaskRow[];
2574
+ }
2575
+ declare function MilestoneTimeline({ milestones, tasks }: MilestoneTimelineProps): react_jsx_runtime.JSX.Element;
2576
+
2577
+ interface TaskCardProps {
2578
+ task: TaskRow;
2579
+ }
2580
+ declare function TaskCard({ task }: TaskCardProps): react_jsx_runtime.JSX.Element;
2581
+
2582
+ declare const ProjectsSidebar: () => react_jsx_runtime.JSX.Element;
2583
+
2584
+ declare const ProjectsSidebarTop: () => react_jsx_runtime.JSX.Element;
2585
+
2586
+ interface ProjectsSidebarMiddleProps {
2587
+ currentPath?: string;
2588
+ onNavigate?: (to: string) => void;
2589
+ }
2590
+ declare const ProjectsSidebarMiddle: ({ currentPath, onNavigate }?: ProjectsSidebarMiddleProps) => react_jsx_runtime.JSX.Element;
2591
+
2592
+ interface FeatureNavLink {
2593
+ label: string;
2594
+ link: string;
2595
+ featureKey?: string;
2596
+ onClick?: () => void;
2597
+ links?: FeatureNavLink[];
2598
+ }
2599
+ interface FeatureNavEntry {
2600
+ label: string;
2601
+ icon: ComponentType;
2602
+ link?: string;
2603
+ featureKey?: string;
2604
+ requiresAdmin?: boolean;
2605
+ dataOnboardingTourId?: string;
2606
+ links?: FeatureNavLink[];
2607
+ }
2608
+ type FeatureSidebarComponent = ComponentType;
2609
+ interface FeatureModule {
2610
+ key: string;
2611
+ label?: string;
2612
+ navEntry?: FeatureNavEntry;
2613
+ sidebar?: FeatureSidebarComponent;
2614
+ subshellRoutes?: string[];
2615
+ organizationGraph?: OrganizationGraphFeatureBridge;
2616
+ }
2617
+ interface OrganizationGraphFeatureBridge {
2618
+ surfaceId: string;
2619
+ }
2620
+
2621
+ declare const deliveryManifest: FeatureModule;
2622
+
2623
+ declare function AllTasksPage(): react_jsx_runtime.JSX.Element;
2624
+
2625
+ declare function UpcomingMilestonesPage(): react_jsx_runtime.JSX.Element;
2626
+
2627
+ interface ProjectsListPageProps {
2628
+ onProjectClick?: (projectId: string) => void;
2629
+ }
2630
+ declare function ProjectsListPage({ onProjectClick }?: ProjectsListPageProps): react_jsx_runtime.JSX.Element;
2631
+
2632
+ interface ProjectDetailPageProps {
2633
+ projectId: string;
2634
+ onBack: () => void;
2635
+ backLabel?: string;
2636
+ }
2637
+ declare function ProjectDetailPage({ projectId, onBack, backLabel }: ProjectDetailPageProps): react_jsx_runtime.JSX.Element;
2638
+
2639
+ declare const projectStatusColors: Record<string, string>;
2640
+ declare const milestoneStatusColors: Record<string, string>;
2641
+ declare const taskStatusColors: Record<string, string>;
2642
+ declare const taskTypeColors: Record<string, string>;
2643
+ declare const noteTypeColors: Record<string, string>;
2644
+ declare function formatStatusLabel(status: string): string;
2645
+ declare function calculateProgress(completed: number, total: number): number;
2646
+
2647
+ export { AllTasksPage, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors };
2648
+ export type { ProjectsSidebarMiddleProps };