@elevasis/ui 2.15.0 → 2.17.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.
- package/dist/api/index.js +3 -2
- package/dist/app/index.js +9 -7
- package/dist/auth/index.js +4 -3
- package/dist/charts/index.js +11 -10
- package/dist/{chunk-C7BX547M.js → chunk-2TDZBYXI.js} +9 -3
- package/dist/{chunk-5IBTTMWX.js → chunk-34NQLV2W.js} +2 -2
- package/dist/{chunk-FL67C3WY.js → chunk-6IA2OMAE.js} +1 -1
- package/dist/{chunk-L4XXM55J.js → chunk-7YQKVWSD.js} +1 -1
- package/dist/{chunk-XJ7KC54A.js → chunk-ABUDMATM.js} +7 -8
- package/dist/{chunk-TUXTSEAF.js → chunk-DK2HVHCY.js} +1 -1
- package/dist/{chunk-GHIPBT5V.js → chunk-E4WQGJNS.js} +1 -1
- package/dist/{chunk-5SXYCICG.js → chunk-FNWWVX5N.js} +8 -6
- package/dist/{chunk-IOKL7BKE.js → chunk-GCBWGGI6.js} +133 -1
- package/dist/chunk-GRGRBWIO.js +383 -0
- package/dist/{chunk-SLVC5OJ2.js → chunk-HQ7M6PBW.js} +1 -1
- package/dist/chunk-IRW7JMQ4.js +28 -0
- package/dist/{chunk-YNPVQDNB.js → chunk-JU6UB4YA.js} +4 -4
- package/dist/{chunk-SFW573HS.js → chunk-MDO4UCEJ.js} +4 -4
- package/dist/{chunk-STZJ7SY5.js → chunk-MJ6YV2B5.js} +3 -2
- package/dist/{chunk-D7HBX5US.js → chunk-MUZIYL5Q.js} +5 -4
- package/dist/{chunk-DKQQK3WX.js → chunk-OCCZRPER.js} +1 -1
- package/dist/{chunk-FFXHKADZ.js → chunk-OXWQQCDR.js} +13 -32
- package/dist/{chunk-ZB5GAV7J.js → chunk-P3TFNFZS.js} +6 -5
- package/dist/{chunk-QEPXAWE2.js → chunk-QHSW4WHM.js} +3 -26
- package/dist/{chunk-LXHZYSMQ.js → chunk-QSTH6T77.js} +2 -52
- package/dist/{chunk-U2RXVZGY.js → chunk-R7GKX4HW.js} +66 -461
- package/dist/{chunk-X75JEGHS.js → chunk-S6CYH4RI.js} +7 -6
- package/dist/{chunk-MTJ43R2E.js → chunk-SLH2QLKV.js} +1 -1
- package/dist/{chunk-32NXXCQU.js → chunk-TP5NMF6K.js} +6 -7
- package/dist/{chunk-SQQGLGHW.js → chunk-TTP62HWW.js} +3 -3
- package/dist/{chunk-NVOCKXUQ.js → chunk-VDM6DQES.js} +1 -1
- package/dist/chunk-ZTWA5H77.js +94 -0
- package/dist/components/index.d.ts +2640 -2640
- package/dist/components/index.js +38 -35
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.js +5 -4
- package/dist/features/crm/index.d.ts +51 -51
- package/dist/features/crm/index.js +21 -19
- package/dist/features/dashboard/index.js +23 -21
- package/dist/features/delivery/index.d.ts +2604 -2604
- package/dist/features/delivery/index.js +21 -19
- package/dist/features/lead-gen/index.js +29 -26
- package/dist/features/monitoring/index.js +26 -24
- package/dist/features/monitoring/requests/index.d.ts +26 -26
- package/dist/features/monitoring/requests/index.js +21 -19
- package/dist/features/operations/index.d.ts +10 -10
- package/dist/features/operations/index.js +28 -25
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.d.ts +34 -34
- package/dist/features/settings/index.js +22 -20
- package/dist/hooks/delivery/index.css +589 -0
- package/dist/hooks/delivery/index.d.ts +3044 -0
- package/dist/hooks/delivery/index.js +4 -0
- package/dist/hooks/index.d.ts +3103 -3120
- package/dist/hooks/index.js +20 -18
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +506 -0
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -0
- package/dist/hooks/published.d.ts +3103 -3120
- package/dist/hooks/published.js +20 -18
- package/dist/index.d.ts +3409 -3361
- package/dist/index.js +21 -19
- package/dist/initialization/index.js +4 -3
- package/dist/layout/index.js +3 -3
- package/dist/organization/index.js +4 -3
- package/dist/profile/index.js +2 -1
- package/dist/provider/ElevasisServiceContext.d.ts +54 -0
- package/dist/provider/ElevasisServiceContext.js +1 -0
- package/dist/provider/index.d.ts +244 -240
- package/dist/provider/index.js +17 -16
- package/dist/provider/published.d.ts +244 -240
- package/dist/provider/published.js +15 -14
- package/dist/types/index.d.ts +2349 -2332
- package/dist/utils/index.d.ts +73 -1
- package/dist/utils/index.js +2 -1
- package/dist/zustand/index.d.ts +7 -7
- package/package.json +3 -3
- package/dist/{chunk-4BF74JVD.js → chunk-6GUW5GGF.js} +1 -1
- package/dist/{chunk-ELJIFLCB.js → chunk-KRWALB24.js} +6 -6
|
@@ -4453,2614 +4453,2614 @@ interface IConfirmationInputModalProps {
|
|
|
4453
4453
|
}
|
|
4454
4454
|
declare const ConfirmationInputModal: ({ opened, onClose, loading, icon, confirmationHandler, style, title, text, buttonText, buttonColor, inputValue, onInputChange, expectedValue, placeholder }: IConfirmationInputModalProps) => react_jsx_runtime.JSX.Element;
|
|
4455
4455
|
|
|
4456
|
-
type Json =
|
|
4457
|
-
| string
|
|
4458
|
-
| number
|
|
4459
|
-
| boolean
|
|
4460
|
-
| null
|
|
4461
|
-
| { [key: string]: Json | undefined }
|
|
4462
|
-
| Json[]
|
|
4463
|
-
|
|
4464
|
-
type Database = {
|
|
4465
|
-
// Allows to automatically instantiate createClient with right options
|
|
4466
|
-
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
4467
|
-
__InternalSupabase: {
|
|
4468
|
-
PostgrestVersion: "12.2.3 (519615d)"
|
|
4469
|
-
}
|
|
4470
|
-
public: {
|
|
4471
|
-
Tables: {
|
|
4472
|
-
acq_companies: {
|
|
4473
|
-
Row: {
|
|
4474
|
-
batch_id: string | null
|
|
4475
|
-
category: string | null
|
|
4476
|
-
category_pain: string | null
|
|
4477
|
-
created_at: string
|
|
4478
|
-
domain: string | null
|
|
4479
|
-
enrichment_data: Json | null
|
|
4480
|
-
filter_reason: string | null
|
|
4481
|
-
founded_year: number | null
|
|
4482
|
-
id: string
|
|
4483
|
-
linkedin_url: string | null
|
|
4484
|
-
location_city: string | null
|
|
4485
|
-
location_state: string | null
|
|
4486
|
-
name: string
|
|
4487
|
-
num_employees: number | null
|
|
4488
|
-
organization_id: string
|
|
4489
|
-
pipeline_status: Json
|
|
4490
|
-
segment: string | null
|
|
4491
|
-
source: string | null
|
|
4492
|
-
status: string
|
|
4493
|
-
updated_at: string
|
|
4494
|
-
website: string | null
|
|
4495
|
-
}
|
|
4496
|
-
Insert: {
|
|
4497
|
-
batch_id?: string | null
|
|
4498
|
-
category?: string | null
|
|
4499
|
-
category_pain?: string | null
|
|
4500
|
-
created_at?: string
|
|
4501
|
-
domain?: string | null
|
|
4502
|
-
enrichment_data?: Json | null
|
|
4503
|
-
filter_reason?: string | null
|
|
4504
|
-
founded_year?: number | null
|
|
4505
|
-
id?: string
|
|
4506
|
-
linkedin_url?: string | null
|
|
4507
|
-
location_city?: string | null
|
|
4508
|
-
location_state?: string | null
|
|
4509
|
-
name: string
|
|
4510
|
-
num_employees?: number | null
|
|
4511
|
-
organization_id: string
|
|
4512
|
-
pipeline_status?: Json
|
|
4513
|
-
segment?: string | null
|
|
4514
|
-
source?: string | null
|
|
4515
|
-
status?: string
|
|
4516
|
-
updated_at?: string
|
|
4517
|
-
website?: string | null
|
|
4518
|
-
}
|
|
4519
|
-
Update: {
|
|
4520
|
-
batch_id?: string | null
|
|
4521
|
-
category?: string | null
|
|
4522
|
-
category_pain?: string | null
|
|
4523
|
-
created_at?: string
|
|
4524
|
-
domain?: string | null
|
|
4525
|
-
enrichment_data?: Json | null
|
|
4526
|
-
filter_reason?: string | null
|
|
4527
|
-
founded_year?: number | null
|
|
4528
|
-
id?: string
|
|
4529
|
-
linkedin_url?: string | null
|
|
4530
|
-
location_city?: string | null
|
|
4531
|
-
location_state?: string | null
|
|
4532
|
-
name?: string
|
|
4533
|
-
num_employees?: number | null
|
|
4534
|
-
organization_id?: string
|
|
4535
|
-
pipeline_status?: Json
|
|
4536
|
-
segment?: string | null
|
|
4537
|
-
source?: string | null
|
|
4538
|
-
status?: string
|
|
4539
|
-
updated_at?: string
|
|
4540
|
-
website?: string | null
|
|
4541
|
-
}
|
|
4542
|
-
Relationships: [
|
|
4543
|
-
{
|
|
4544
|
-
foreignKeyName: "acq_companies_organization_id_fkey"
|
|
4545
|
-
columns: ["organization_id"]
|
|
4546
|
-
isOneToOne: false
|
|
4547
|
-
referencedRelation: "organizations"
|
|
4548
|
-
referencedColumns: ["id"]
|
|
4549
|
-
},
|
|
4550
|
-
]
|
|
4551
|
-
}
|
|
4552
|
-
acq_contacts: {
|
|
4553
|
-
Row: {
|
|
4554
|
-
batch_id: string | null
|
|
4555
|
-
brochure_first_viewed_at: string | null
|
|
4556
|
-
brochure_view_count: number
|
|
4557
|
-
company_id: string | null
|
|
4558
|
-
created_at: string
|
|
4559
|
-
email: string
|
|
4560
|
-
email_valid: string | null
|
|
4561
|
-
enrichment_data: Json
|
|
4562
|
-
filter_reason: string | null
|
|
4563
|
-
first_name: string | null
|
|
4564
|
-
headline: string | null
|
|
4565
|
-
id: string
|
|
4566
|
-
last_name: string | null
|
|
4567
|
-
linkedin_url: string | null
|
|
4568
|
-
nurture: boolean
|
|
4569
|
-
opening_line: string | null
|
|
4570
|
-
organization_id: string
|
|
4571
|
-
pipeline_status: Json
|
|
4572
|
-
source: string | null
|
|
4573
|
-
source_id: string | null
|
|
4574
|
-
status: string
|
|
4575
|
-
title: string | null
|
|
4576
|
-
updated_at: string
|
|
4577
|
-
}
|
|
4578
|
-
Insert: {
|
|
4579
|
-
batch_id?: string | null
|
|
4580
|
-
brochure_first_viewed_at?: string | null
|
|
4581
|
-
brochure_view_count?: number
|
|
4582
|
-
company_id?: string | null
|
|
4583
|
-
created_at?: string
|
|
4584
|
-
email: string
|
|
4585
|
-
email_valid?: string | null
|
|
4586
|
-
enrichment_data?: Json
|
|
4587
|
-
filter_reason?: string | null
|
|
4588
|
-
first_name?: string | null
|
|
4589
|
-
headline?: string | null
|
|
4590
|
-
id?: string
|
|
4591
|
-
last_name?: string | null
|
|
4592
|
-
linkedin_url?: string | null
|
|
4593
|
-
nurture?: boolean
|
|
4594
|
-
opening_line?: string | null
|
|
4595
|
-
organization_id: string
|
|
4596
|
-
pipeline_status?: Json
|
|
4597
|
-
source?: string | null
|
|
4598
|
-
source_id?: string | null
|
|
4599
|
-
status?: string
|
|
4600
|
-
title?: string | null
|
|
4601
|
-
updated_at?: string
|
|
4602
|
-
}
|
|
4603
|
-
Update: {
|
|
4604
|
-
batch_id?: string | null
|
|
4605
|
-
brochure_first_viewed_at?: string | null
|
|
4606
|
-
brochure_view_count?: number
|
|
4607
|
-
company_id?: string | null
|
|
4608
|
-
created_at?: string
|
|
4609
|
-
email?: string
|
|
4610
|
-
email_valid?: string | null
|
|
4611
|
-
enrichment_data?: Json
|
|
4612
|
-
filter_reason?: string | null
|
|
4613
|
-
first_name?: string | null
|
|
4614
|
-
headline?: string | null
|
|
4615
|
-
id?: string
|
|
4616
|
-
last_name?: string | null
|
|
4617
|
-
linkedin_url?: string | null
|
|
4618
|
-
nurture?: boolean
|
|
4619
|
-
opening_line?: string | null
|
|
4620
|
-
organization_id?: string
|
|
4621
|
-
pipeline_status?: Json
|
|
4622
|
-
source?: string | null
|
|
4623
|
-
source_id?: string | null
|
|
4624
|
-
status?: string
|
|
4625
|
-
title?: string | null
|
|
4626
|
-
updated_at?: string
|
|
4627
|
-
}
|
|
4628
|
-
Relationships: [
|
|
4629
|
-
{
|
|
4630
|
-
foreignKeyName: "acq_contacts_company_id_fkey"
|
|
4631
|
-
columns: ["company_id"]
|
|
4632
|
-
isOneToOne: false
|
|
4633
|
-
referencedRelation: "acq_companies"
|
|
4634
|
-
referencedColumns: ["id"]
|
|
4635
|
-
},
|
|
4636
|
-
{
|
|
4637
|
-
foreignKeyName: "acq_contacts_organization_id_fkey"
|
|
4638
|
-
columns: ["organization_id"]
|
|
4639
|
-
isOneToOne: false
|
|
4640
|
-
referencedRelation: "organizations"
|
|
4641
|
-
referencedColumns: ["id"]
|
|
4642
|
-
},
|
|
4643
|
-
]
|
|
4644
|
-
}
|
|
4645
|
-
acq_content: {
|
|
4646
|
-
Row: {
|
|
4647
|
-
body: string | null
|
|
4648
|
-
created_at: string
|
|
4649
|
-
id: string
|
|
4650
|
-
organization_id: string
|
|
4651
|
-
pillar: string
|
|
4652
|
-
status: string
|
|
4653
|
-
title: string
|
|
4654
|
-
updated_at: string
|
|
4655
|
-
}
|
|
4656
|
-
Insert: {
|
|
4657
|
-
body?: string | null
|
|
4658
|
-
created_at?: string
|
|
4659
|
-
id?: string
|
|
4660
|
-
organization_id: string
|
|
4661
|
-
pillar: string
|
|
4662
|
-
status?: string
|
|
4663
|
-
title: string
|
|
4664
|
-
updated_at?: string
|
|
4665
|
-
}
|
|
4666
|
-
Update: {
|
|
4667
|
-
body?: string | null
|
|
4668
|
-
created_at?: string
|
|
4669
|
-
id?: string
|
|
4670
|
-
organization_id?: string
|
|
4671
|
-
pillar?: string
|
|
4672
|
-
status?: string
|
|
4673
|
-
title?: string
|
|
4674
|
-
updated_at?: string
|
|
4675
|
-
}
|
|
4676
|
-
Relationships: [
|
|
4677
|
-
{
|
|
4678
|
-
foreignKeyName: "acq_content_organization_id_fkey"
|
|
4679
|
-
columns: ["organization_id"]
|
|
4680
|
-
isOneToOne: false
|
|
4681
|
-
referencedRelation: "organizations"
|
|
4682
|
-
referencedColumns: ["id"]
|
|
4683
|
-
},
|
|
4684
|
-
]
|
|
4685
|
-
}
|
|
4686
|
-
acq_content_distributions: {
|
|
4687
|
-
Row: {
|
|
4688
|
-
adapted_body: string | null
|
|
4689
|
-
checklist: Json | null
|
|
4690
|
-
content_id: string
|
|
4691
|
-
created_at: string
|
|
4692
|
-
format: string
|
|
4693
|
-
id: string
|
|
4694
|
-
media_urls: Json
|
|
4695
|
-
metrics: Json
|
|
4696
|
-
metrics_updated_at: string | null
|
|
4697
|
-
organization_id: string
|
|
4698
|
-
platform: string
|
|
4699
|
-
platform_content: Json | null
|
|
4700
|
-
platform_post_id: string | null
|
|
4701
|
-
platform_url: string | null
|
|
4702
|
-
published_at: string | null
|
|
4703
|
-
status: string
|
|
4704
|
-
updated_at: string
|
|
4705
|
-
}
|
|
4706
|
-
Insert: {
|
|
4707
|
-
adapted_body?: string | null
|
|
4708
|
-
checklist?: Json | null
|
|
4709
|
-
content_id: string
|
|
4710
|
-
created_at?: string
|
|
4711
|
-
format: string
|
|
4712
|
-
id?: string
|
|
4713
|
-
media_urls?: Json
|
|
4714
|
-
metrics?: Json
|
|
4715
|
-
metrics_updated_at?: string | null
|
|
4716
|
-
organization_id: string
|
|
4717
|
-
platform: string
|
|
4718
|
-
platform_content?: Json | null
|
|
4719
|
-
platform_post_id?: string | null
|
|
4720
|
-
platform_url?: string | null
|
|
4721
|
-
published_at?: string | null
|
|
4722
|
-
status?: string
|
|
4723
|
-
updated_at?: string
|
|
4724
|
-
}
|
|
4725
|
-
Update: {
|
|
4726
|
-
adapted_body?: string | null
|
|
4727
|
-
checklist?: Json | null
|
|
4728
|
-
content_id?: string
|
|
4729
|
-
created_at?: string
|
|
4730
|
-
format?: string
|
|
4731
|
-
id?: string
|
|
4732
|
-
media_urls?: Json
|
|
4733
|
-
metrics?: Json
|
|
4734
|
-
metrics_updated_at?: string | null
|
|
4735
|
-
organization_id?: string
|
|
4736
|
-
platform?: string
|
|
4737
|
-
platform_content?: Json | null
|
|
4738
|
-
platform_post_id?: string | null
|
|
4739
|
-
platform_url?: string | null
|
|
4740
|
-
published_at?: string | null
|
|
4741
|
-
status?: string
|
|
4742
|
-
updated_at?: string
|
|
4743
|
-
}
|
|
4744
|
-
Relationships: [
|
|
4745
|
-
{
|
|
4746
|
-
foreignKeyName: "acq_content_distributions_content_id_fkey"
|
|
4747
|
-
columns: ["content_id"]
|
|
4748
|
-
isOneToOne: false
|
|
4749
|
-
referencedRelation: "acq_content"
|
|
4750
|
-
referencedColumns: ["id"]
|
|
4751
|
-
},
|
|
4752
|
-
{
|
|
4753
|
-
foreignKeyName: "acq_content_distributions_organization_id_fkey"
|
|
4754
|
-
columns: ["organization_id"]
|
|
4755
|
-
isOneToOne: false
|
|
4756
|
-
referencedRelation: "organizations"
|
|
4757
|
-
referencedColumns: ["id"]
|
|
4758
|
-
},
|
|
4759
|
-
]
|
|
4760
|
-
}
|
|
4761
|
-
acq_deal_notes: {
|
|
4762
|
-
Row: {
|
|
4763
|
-
author_user_id: string | null
|
|
4764
|
-
body: string
|
|
4765
|
-
created_at: string
|
|
4766
|
-
deal_id: string
|
|
4767
|
-
id: string
|
|
4768
|
-
organization_id: string
|
|
4769
|
-
updated_at: string
|
|
4770
|
-
}
|
|
4771
|
-
Insert: {
|
|
4772
|
-
author_user_id?: string | null
|
|
4773
|
-
body: string
|
|
4774
|
-
created_at?: string
|
|
4775
|
-
deal_id: string
|
|
4776
|
-
id?: string
|
|
4777
|
-
organization_id: string
|
|
4778
|
-
updated_at?: string
|
|
4779
|
-
}
|
|
4780
|
-
Update: {
|
|
4781
|
-
author_user_id?: string | null
|
|
4782
|
-
body?: string
|
|
4783
|
-
created_at?: string
|
|
4784
|
-
deal_id?: string
|
|
4785
|
-
id?: string
|
|
4786
|
-
organization_id?: string
|
|
4787
|
-
updated_at?: string
|
|
4788
|
-
}
|
|
4789
|
-
Relationships: [
|
|
4790
|
-
{
|
|
4791
|
-
foreignKeyName: "acq_deal_notes_deal_id_fkey"
|
|
4792
|
-
columns: ["deal_id"]
|
|
4793
|
-
isOneToOne: false
|
|
4794
|
-
referencedRelation: "acq_deals"
|
|
4795
|
-
referencedColumns: ["id"]
|
|
4796
|
-
},
|
|
4797
|
-
{
|
|
4798
|
-
foreignKeyName: "acq_deal_notes_organization_id_fkey"
|
|
4799
|
-
columns: ["organization_id"]
|
|
4800
|
-
isOneToOne: false
|
|
4801
|
-
referencedRelation: "organizations"
|
|
4802
|
-
referencedColumns: ["id"]
|
|
4803
|
-
},
|
|
4804
|
-
]
|
|
4805
|
-
}
|
|
4806
|
-
acq_deal_tasks: {
|
|
4807
|
-
Row: {
|
|
4808
|
-
assignee_user_id: string | null
|
|
4809
|
-
completed_at: string | null
|
|
4810
|
-
completed_by_user_id: string | null
|
|
4811
|
-
created_at: string
|
|
4812
|
-
created_by_user_id: string | null
|
|
4813
|
-
deal_id: string
|
|
4814
|
-
description: string | null
|
|
4815
|
-
due_at: string | null
|
|
4816
|
-
id: string
|
|
4817
|
-
kind: string
|
|
4818
|
-
organization_id: string
|
|
4819
|
-
title: string
|
|
4820
|
-
updated_at: string
|
|
4821
|
-
}
|
|
4822
|
-
Insert: {
|
|
4823
|
-
assignee_user_id?: string | null
|
|
4824
|
-
completed_at?: string | null
|
|
4825
|
-
completed_by_user_id?: string | null
|
|
4826
|
-
created_at?: string
|
|
4827
|
-
created_by_user_id?: string | null
|
|
4828
|
-
deal_id: string
|
|
4829
|
-
description?: string | null
|
|
4830
|
-
due_at?: string | null
|
|
4831
|
-
id?: string
|
|
4832
|
-
kind?: string
|
|
4833
|
-
organization_id: string
|
|
4834
|
-
title: string
|
|
4835
|
-
updated_at?: string
|
|
4836
|
-
}
|
|
4837
|
-
Update: {
|
|
4838
|
-
assignee_user_id?: string | null
|
|
4839
|
-
completed_at?: string | null
|
|
4840
|
-
completed_by_user_id?: string | null
|
|
4841
|
-
created_at?: string
|
|
4842
|
-
created_by_user_id?: string | null
|
|
4843
|
-
deal_id?: string
|
|
4844
|
-
description?: string | null
|
|
4845
|
-
due_at?: string | null
|
|
4846
|
-
id?: string
|
|
4847
|
-
kind?: string
|
|
4848
|
-
organization_id?: string
|
|
4849
|
-
title?: string
|
|
4850
|
-
updated_at?: string
|
|
4851
|
-
}
|
|
4852
|
-
Relationships: [
|
|
4853
|
-
{
|
|
4854
|
-
foreignKeyName: "acq_deal_tasks_deal_id_fkey"
|
|
4855
|
-
columns: ["deal_id"]
|
|
4856
|
-
isOneToOne: false
|
|
4857
|
-
referencedRelation: "acq_deals"
|
|
4858
|
-
referencedColumns: ["id"]
|
|
4859
|
-
},
|
|
4860
|
-
{
|
|
4861
|
-
foreignKeyName: "acq_deal_tasks_organization_id_fkey"
|
|
4862
|
-
columns: ["organization_id"]
|
|
4863
|
-
isOneToOne: false
|
|
4864
|
-
referencedRelation: "organizations"
|
|
4865
|
-
referencedColumns: ["id"]
|
|
4866
|
-
},
|
|
4867
|
-
]
|
|
4868
|
-
}
|
|
4869
|
-
acq_deals: {
|
|
4870
|
-
Row: {
|
|
4871
|
-
activity_log: Json
|
|
4872
|
-
cached_stage: string | null
|
|
4873
|
-
closed_lost_at: string | null
|
|
4874
|
-
closed_lost_reason: string | null
|
|
4875
|
-
contact_email: string
|
|
4876
|
-
contact_id: string | null
|
|
4877
|
-
created_at: string
|
|
4878
|
-
discovery_data: Json | null
|
|
4879
|
-
discovery_submitted_at: string | null
|
|
4880
|
-
discovery_submitted_by: string | null
|
|
4881
|
-
id: string
|
|
4882
|
-
initial_fee: number | null
|
|
4883
|
-
monthly_fee: number | null
|
|
4884
|
-
organization_id: string
|
|
4885
|
-
payment_link_sent_at: string | null
|
|
4886
|
-
payment_received_at: string | null
|
|
4887
|
-
proposal_data: Json | null
|
|
4888
|
-
proposal_generated_at: string | null
|
|
4889
|
-
proposal_pdf_url: string | null
|
|
4890
|
-
proposal_reviewed_at: string | null
|
|
4891
|
-
proposal_reviewed_by: string | null
|
|
4892
|
-
proposal_sent_at: string | null
|
|
4893
|
-
proposal_signed_at: string | null
|
|
4894
|
-
proposal_status: string | null
|
|
4895
|
-
signature_envelope_id: string | null
|
|
4896
|
-
source_list_id: string | null
|
|
4897
|
-
source_type: string | null
|
|
4898
|
-
stripe_payment_id: string | null
|
|
4899
|
-
stripe_payment_link: string | null
|
|
4900
|
-
stripe_payment_link_id: string | null
|
|
4901
|
-
stripe_subscription_id: string | null
|
|
4902
|
-
updated_at: string
|
|
4903
|
-
}
|
|
4904
|
-
Insert: {
|
|
4905
|
-
activity_log?: Json
|
|
4906
|
-
cached_stage?: string | null
|
|
4907
|
-
closed_lost_at?: string | null
|
|
4908
|
-
closed_lost_reason?: string | null
|
|
4909
|
-
contact_email: string
|
|
4910
|
-
contact_id?: string | null
|
|
4911
|
-
created_at?: string
|
|
4912
|
-
discovery_data?: Json | null
|
|
4913
|
-
discovery_submitted_at?: string | null
|
|
4914
|
-
discovery_submitted_by?: string | null
|
|
4915
|
-
id?: string
|
|
4916
|
-
initial_fee?: number | null
|
|
4917
|
-
monthly_fee?: number | null
|
|
4918
|
-
organization_id: string
|
|
4919
|
-
payment_link_sent_at?: string | null
|
|
4920
|
-
payment_received_at?: string | null
|
|
4921
|
-
proposal_data?: Json | null
|
|
4922
|
-
proposal_generated_at?: string | null
|
|
4923
|
-
proposal_pdf_url?: string | null
|
|
4924
|
-
proposal_reviewed_at?: string | null
|
|
4925
|
-
proposal_reviewed_by?: string | null
|
|
4926
|
-
proposal_sent_at?: string | null
|
|
4927
|
-
proposal_signed_at?: string | null
|
|
4928
|
-
proposal_status?: string | null
|
|
4929
|
-
signature_envelope_id?: string | null
|
|
4930
|
-
source_list_id?: string | null
|
|
4931
|
-
source_type?: string | null
|
|
4932
|
-
stripe_payment_id?: string | null
|
|
4933
|
-
stripe_payment_link?: string | null
|
|
4934
|
-
stripe_payment_link_id?: string | null
|
|
4935
|
-
stripe_subscription_id?: string | null
|
|
4936
|
-
updated_at?: string
|
|
4937
|
-
}
|
|
4938
|
-
Update: {
|
|
4939
|
-
activity_log?: Json
|
|
4940
|
-
cached_stage?: string | null
|
|
4941
|
-
closed_lost_at?: string | null
|
|
4942
|
-
closed_lost_reason?: string | null
|
|
4943
|
-
contact_email?: string
|
|
4944
|
-
contact_id?: string | null
|
|
4945
|
-
created_at?: string
|
|
4946
|
-
discovery_data?: Json | null
|
|
4947
|
-
discovery_submitted_at?: string | null
|
|
4948
|
-
discovery_submitted_by?: string | null
|
|
4949
|
-
id?: string
|
|
4950
|
-
initial_fee?: number | null
|
|
4951
|
-
monthly_fee?: number | null
|
|
4952
|
-
organization_id?: string
|
|
4953
|
-
payment_link_sent_at?: string | null
|
|
4954
|
-
payment_received_at?: string | null
|
|
4955
|
-
proposal_data?: Json | null
|
|
4956
|
-
proposal_generated_at?: string | null
|
|
4957
|
-
proposal_pdf_url?: string | null
|
|
4958
|
-
proposal_reviewed_at?: string | null
|
|
4959
|
-
proposal_reviewed_by?: string | null
|
|
4960
|
-
proposal_sent_at?: string | null
|
|
4961
|
-
proposal_signed_at?: string | null
|
|
4962
|
-
proposal_status?: string | null
|
|
4963
|
-
signature_envelope_id?: string | null
|
|
4964
|
-
source_list_id?: string | null
|
|
4965
|
-
source_type?: string | null
|
|
4966
|
-
stripe_payment_id?: string | null
|
|
4967
|
-
stripe_payment_link?: string | null
|
|
4968
|
-
stripe_payment_link_id?: string | null
|
|
4969
|
-
stripe_subscription_id?: string | null
|
|
4970
|
-
updated_at?: string
|
|
4971
|
-
}
|
|
4972
|
-
Relationships: [
|
|
4973
|
-
{
|
|
4974
|
-
foreignKeyName: "acq_deals_contact_id_fkey"
|
|
4975
|
-
columns: ["contact_id"]
|
|
4976
|
-
isOneToOne: false
|
|
4977
|
-
referencedRelation: "acq_contacts"
|
|
4978
|
-
referencedColumns: ["id"]
|
|
4979
|
-
},
|
|
4980
|
-
{
|
|
4981
|
-
foreignKeyName: "acq_deals_organization_id_fkey"
|
|
4982
|
-
columns: ["organization_id"]
|
|
4983
|
-
isOneToOne: false
|
|
4984
|
-
referencedRelation: "organizations"
|
|
4985
|
-
referencedColumns: ["id"]
|
|
4986
|
-
},
|
|
4987
|
-
{
|
|
4988
|
-
foreignKeyName: "acq_deals_source_list_id_fkey"
|
|
4989
|
-
columns: ["source_list_id"]
|
|
4990
|
-
isOneToOne: false
|
|
4991
|
-
referencedRelation: "acq_lists"
|
|
4992
|
-
referencedColumns: ["id"]
|
|
4993
|
-
},
|
|
4994
|
-
]
|
|
4995
|
-
}
|
|
4996
|
-
acq_list_companies: {
|
|
4997
|
-
Row: {
|
|
4998
|
-
added_at: string
|
|
4999
|
-
added_by: string | null
|
|
5000
|
-
company_id: string
|
|
5001
|
-
id: string
|
|
5002
|
-
list_id: string
|
|
5003
|
-
source_execution_id: string | null
|
|
5004
|
-
source_input_hash: string | null
|
|
5005
|
-
source_resource_id: string | null
|
|
5006
|
-
stage: string | null
|
|
5007
|
-
stage_updated_at: string | null
|
|
5008
|
-
}
|
|
5009
|
-
Insert: {
|
|
5010
|
-
added_at?: string
|
|
5011
|
-
added_by?: string | null
|
|
5012
|
-
company_id: string
|
|
5013
|
-
id?: string
|
|
5014
|
-
list_id: string
|
|
5015
|
-
source_execution_id?: string | null
|
|
5016
|
-
source_input_hash?: string | null
|
|
5017
|
-
source_resource_id?: string | null
|
|
5018
|
-
stage?: string | null
|
|
5019
|
-
stage_updated_at?: string | null
|
|
5020
|
-
}
|
|
5021
|
-
Update: {
|
|
5022
|
-
added_at?: string
|
|
5023
|
-
added_by?: string | null
|
|
5024
|
-
company_id?: string
|
|
5025
|
-
id?: string
|
|
5026
|
-
list_id?: string
|
|
5027
|
-
source_execution_id?: string | null
|
|
5028
|
-
source_input_hash?: string | null
|
|
5029
|
-
source_resource_id?: string | null
|
|
5030
|
-
stage?: string | null
|
|
5031
|
-
stage_updated_at?: string | null
|
|
5032
|
-
}
|
|
5033
|
-
Relationships: [
|
|
5034
|
-
{
|
|
5035
|
-
foreignKeyName: "acq_list_companies_company_id_fkey"
|
|
5036
|
-
columns: ["company_id"]
|
|
5037
|
-
isOneToOne: false
|
|
5038
|
-
referencedRelation: "acq_companies"
|
|
5039
|
-
referencedColumns: ["id"]
|
|
5040
|
-
},
|
|
5041
|
-
{
|
|
5042
|
-
foreignKeyName: "acq_list_companies_list_id_fkey"
|
|
5043
|
-
columns: ["list_id"]
|
|
5044
|
-
isOneToOne: false
|
|
5045
|
-
referencedRelation: "acq_lists"
|
|
5046
|
-
referencedColumns: ["id"]
|
|
5047
|
-
},
|
|
5048
|
-
{
|
|
5049
|
-
foreignKeyName: "acq_list_companies_source_execution_id_fkey"
|
|
5050
|
-
columns: ["source_execution_id"]
|
|
5051
|
-
isOneToOne: false
|
|
5052
|
-
referencedRelation: "execution_logs"
|
|
5053
|
-
referencedColumns: ["execution_id"]
|
|
5054
|
-
},
|
|
5055
|
-
]
|
|
5056
|
-
}
|
|
5057
|
-
acq_list_executions: {
|
|
5058
|
-
Row: {
|
|
5059
|
-
created_at: string
|
|
5060
|
-
execution_id: string
|
|
5061
|
-
id: string
|
|
5062
|
-
list_id: string
|
|
5063
|
-
payload: Json
|
|
5064
|
-
}
|
|
5065
|
-
Insert: {
|
|
5066
|
-
created_at?: string
|
|
5067
|
-
execution_id: string
|
|
5068
|
-
id?: string
|
|
5069
|
-
list_id: string
|
|
5070
|
-
payload?: Json
|
|
5071
|
-
}
|
|
5072
|
-
Update: {
|
|
5073
|
-
created_at?: string
|
|
5074
|
-
execution_id?: string
|
|
5075
|
-
id?: string
|
|
5076
|
-
list_id?: string
|
|
5077
|
-
payload?: Json
|
|
5078
|
-
}
|
|
5079
|
-
Relationships: [
|
|
5080
|
-
{
|
|
5081
|
-
foreignKeyName: "acq_list_executions_execution_id_fkey"
|
|
5082
|
-
columns: ["execution_id"]
|
|
5083
|
-
isOneToOne: false
|
|
5084
|
-
referencedRelation: "execution_logs"
|
|
5085
|
-
referencedColumns: ["execution_id"]
|
|
5086
|
-
},
|
|
5087
|
-
{
|
|
5088
|
-
foreignKeyName: "acq_list_executions_list_id_fkey"
|
|
5089
|
-
columns: ["list_id"]
|
|
5090
|
-
isOneToOne: false
|
|
5091
|
-
referencedRelation: "acq_lists"
|
|
5092
|
-
referencedColumns: ["id"]
|
|
5093
|
-
},
|
|
5094
|
-
]
|
|
5095
|
-
}
|
|
5096
|
-
acq_list_members: {
|
|
5097
|
-
Row: {
|
|
5098
|
-
added_at: string
|
|
5099
|
-
added_by: string | null
|
|
5100
|
-
contact_id: string
|
|
5101
|
-
id: string
|
|
5102
|
-
list_id: string
|
|
5103
|
-
source_execution_id: string | null
|
|
5104
|
-
source_input_hash: string | null
|
|
5105
|
-
source_resource_id: string | null
|
|
5106
|
-
stage: string | null
|
|
5107
|
-
stage_updated_at: string | null
|
|
5108
|
-
}
|
|
5109
|
-
Insert: {
|
|
5110
|
-
added_at?: string
|
|
5111
|
-
added_by?: string | null
|
|
5112
|
-
contact_id: string
|
|
5113
|
-
id?: string
|
|
5114
|
-
list_id: string
|
|
5115
|
-
source_execution_id?: string | null
|
|
5116
|
-
source_input_hash?: string | null
|
|
5117
|
-
source_resource_id?: string | null
|
|
5118
|
-
stage?: string | null
|
|
5119
|
-
stage_updated_at?: string | null
|
|
5120
|
-
}
|
|
5121
|
-
Update: {
|
|
5122
|
-
added_at?: string
|
|
5123
|
-
added_by?: string | null
|
|
5124
|
-
contact_id?: string
|
|
5125
|
-
id?: string
|
|
5126
|
-
list_id?: string
|
|
5127
|
-
source_execution_id?: string | null
|
|
5128
|
-
source_input_hash?: string | null
|
|
5129
|
-
source_resource_id?: string | null
|
|
5130
|
-
stage?: string | null
|
|
5131
|
-
stage_updated_at?: string | null
|
|
5132
|
-
}
|
|
5133
|
-
Relationships: [
|
|
5134
|
-
{
|
|
5135
|
-
foreignKeyName: "acq_list_members_contact_id_fkey"
|
|
5136
|
-
columns: ["contact_id"]
|
|
5137
|
-
isOneToOne: false
|
|
5138
|
-
referencedRelation: "acq_contacts"
|
|
5139
|
-
referencedColumns: ["id"]
|
|
5140
|
-
},
|
|
5141
|
-
{
|
|
5142
|
-
foreignKeyName: "acq_list_members_list_id_fkey"
|
|
5143
|
-
columns: ["list_id"]
|
|
5144
|
-
isOneToOne: false
|
|
5145
|
-
referencedRelation: "acq_lists"
|
|
5146
|
-
referencedColumns: ["id"]
|
|
5147
|
-
},
|
|
5148
|
-
{
|
|
5149
|
-
foreignKeyName: "acq_list_members_source_execution_id_fkey"
|
|
5150
|
-
columns: ["source_execution_id"]
|
|
5151
|
-
isOneToOne: false
|
|
5152
|
-
referencedRelation: "execution_logs"
|
|
5153
|
-
referencedColumns: ["execution_id"]
|
|
5154
|
-
},
|
|
5155
|
-
]
|
|
5156
|
-
}
|
|
5157
|
-
acq_lists: {
|
|
5158
|
-
Row: {
|
|
5159
|
-
batch_ids: string[]
|
|
5160
|
-
completed_at: string | null
|
|
5161
|
-
config: Json
|
|
5162
|
-
created_at: string
|
|
5163
|
-
description: string | null
|
|
5164
|
-
id: string
|
|
5165
|
-
instantly_campaign_id: string | null
|
|
5166
|
-
launched_at: string | null
|
|
5167
|
-
metadata: Json
|
|
5168
|
-
name: string
|
|
5169
|
-
organization_id: string
|
|
5170
|
-
status: string
|
|
5171
|
-
type: string
|
|
5172
|
-
}
|
|
5173
|
-
Insert: {
|
|
5174
|
-
batch_ids?: string[]
|
|
5175
|
-
completed_at?: string | null
|
|
5176
|
-
config?: Json
|
|
5177
|
-
created_at?: string
|
|
5178
|
-
description?: string | null
|
|
5179
|
-
id?: string
|
|
5180
|
-
instantly_campaign_id?: string | null
|
|
5181
|
-
launched_at?: string | null
|
|
5182
|
-
metadata?: Json
|
|
5183
|
-
name: string
|
|
5184
|
-
organization_id: string
|
|
5185
|
-
status?: string
|
|
5186
|
-
type?: string
|
|
5187
|
-
}
|
|
5188
|
-
Update: {
|
|
5189
|
-
batch_ids?: string[]
|
|
5190
|
-
completed_at?: string | null
|
|
5191
|
-
config?: Json
|
|
5192
|
-
created_at?: string
|
|
5193
|
-
description?: string | null
|
|
5194
|
-
id?: string
|
|
5195
|
-
instantly_campaign_id?: string | null
|
|
5196
|
-
launched_at?: string | null
|
|
5197
|
-
metadata?: Json
|
|
5198
|
-
name?: string
|
|
5199
|
-
organization_id?: string
|
|
5200
|
-
status?: string
|
|
5201
|
-
type?: string
|
|
5202
|
-
}
|
|
5203
|
-
Relationships: [
|
|
5204
|
-
{
|
|
5205
|
-
foreignKeyName: "acq_lists_organization_id_fkey"
|
|
5206
|
-
columns: ["organization_id"]
|
|
5207
|
-
isOneToOne: false
|
|
5208
|
-
referencedRelation: "organizations"
|
|
5209
|
-
referencedColumns: ["id"]
|
|
5210
|
-
},
|
|
5211
|
-
]
|
|
5212
|
-
}
|
|
5213
|
-
acq_seo_metrics: {
|
|
5214
|
-
Row: {
|
|
5215
|
-
ai_citations: Json | null
|
|
5216
|
-
avg_position: number | null
|
|
5217
|
-
clicks: number | null
|
|
5218
|
-
created_at: string
|
|
5219
|
-
cta_clicks: number | null
|
|
5220
|
-
ctr: number | null
|
|
5221
|
-
data_point_count: number | null
|
|
5222
|
-
faq_count: number | null
|
|
5223
|
-
form_submissions: number | null
|
|
5224
|
-
id: string
|
|
5225
|
-
impressions: number | null
|
|
5226
|
-
organization_id: string
|
|
5227
|
-
period: string
|
|
5228
|
-
quality_score: number | null
|
|
5229
|
-
readability: number | null
|
|
5230
|
-
scroll_100: number | null
|
|
5231
|
-
scroll_25: number | null
|
|
5232
|
-
scroll_50: number | null
|
|
5233
|
-
scroll_75: number | null
|
|
5234
|
-
seo_page_id: string
|
|
5235
|
-
word_count: number | null
|
|
5236
|
-
}
|
|
5237
|
-
Insert: {
|
|
5238
|
-
ai_citations?: Json | null
|
|
5239
|
-
avg_position?: number | null
|
|
5240
|
-
clicks?: number | null
|
|
5241
|
-
created_at?: string
|
|
5242
|
-
cta_clicks?: number | null
|
|
5243
|
-
ctr?: number | null
|
|
5244
|
-
data_point_count?: number | null
|
|
5245
|
-
faq_count?: number | null
|
|
5246
|
-
form_submissions?: number | null
|
|
5247
|
-
id?: string
|
|
5248
|
-
impressions?: number | null
|
|
5249
|
-
organization_id: string
|
|
5250
|
-
period: string
|
|
5251
|
-
quality_score?: number | null
|
|
5252
|
-
readability?: number | null
|
|
5253
|
-
scroll_100?: number | null
|
|
5254
|
-
scroll_25?: number | null
|
|
5255
|
-
scroll_50?: number | null
|
|
5256
|
-
scroll_75?: number | null
|
|
5257
|
-
seo_page_id: string
|
|
5258
|
-
word_count?: number | null
|
|
5259
|
-
}
|
|
5260
|
-
Update: {
|
|
5261
|
-
ai_citations?: Json | null
|
|
5262
|
-
avg_position?: number | null
|
|
5263
|
-
clicks?: number | null
|
|
5264
|
-
created_at?: string
|
|
5265
|
-
cta_clicks?: number | null
|
|
5266
|
-
ctr?: number | null
|
|
5267
|
-
data_point_count?: number | null
|
|
5268
|
-
faq_count?: number | null
|
|
5269
|
-
form_submissions?: number | null
|
|
5270
|
-
id?: string
|
|
5271
|
-
impressions?: number | null
|
|
5272
|
-
organization_id?: string
|
|
5273
|
-
period?: string
|
|
5274
|
-
quality_score?: number | null
|
|
5275
|
-
readability?: number | null
|
|
5276
|
-
scroll_100?: number | null
|
|
5277
|
-
scroll_25?: number | null
|
|
5278
|
-
scroll_50?: number | null
|
|
5279
|
-
scroll_75?: number | null
|
|
5280
|
-
seo_page_id?: string
|
|
5281
|
-
word_count?: number | null
|
|
5282
|
-
}
|
|
5283
|
-
Relationships: [
|
|
5284
|
-
{
|
|
5285
|
-
foreignKeyName: "acq_seo_metrics_organization_id_fkey"
|
|
5286
|
-
columns: ["organization_id"]
|
|
5287
|
-
isOneToOne: false
|
|
5288
|
-
referencedRelation: "organizations"
|
|
5289
|
-
referencedColumns: ["id"]
|
|
5290
|
-
},
|
|
5291
|
-
{
|
|
5292
|
-
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
|
|
5293
|
-
columns: ["seo_page_id"]
|
|
5294
|
-
isOneToOne: false
|
|
5295
|
-
referencedRelation: "acq_seo_pages"
|
|
5296
|
-
referencedColumns: ["id"]
|
|
5297
|
-
},
|
|
5298
|
-
]
|
|
5299
|
-
}
|
|
5300
|
-
acq_seo_pages: {
|
|
5301
|
-
Row: {
|
|
5302
|
-
city: string | null
|
|
5303
|
-
content: Json | null
|
|
5304
|
-
created_at: string
|
|
5305
|
-
faq_items: Json | null
|
|
5306
|
-
hero_image_url: string | null
|
|
5307
|
-
id: string
|
|
5308
|
-
internal_links: Json | null
|
|
5309
|
-
local_data: Json | null
|
|
5310
|
-
meta_description: string | null
|
|
5311
|
-
organization_id: string
|
|
5312
|
-
page_type: string
|
|
5313
|
-
published_at: string | null
|
|
5314
|
-
refreshed_at: string | null
|
|
5315
|
-
schema_markup: Json | null
|
|
5316
|
-
slug: string
|
|
5317
|
-
state: string | null
|
|
5318
|
-
status: string
|
|
5319
|
-
title: string
|
|
5320
|
-
updated_at: string
|
|
5321
|
-
use_case: string | null
|
|
5322
|
-
vertical: string
|
|
5323
|
-
}
|
|
5324
|
-
Insert: {
|
|
5325
|
-
city?: string | null
|
|
5326
|
-
content?: Json | null
|
|
5327
|
-
created_at?: string
|
|
5328
|
-
faq_items?: Json | null
|
|
5329
|
-
hero_image_url?: string | null
|
|
5330
|
-
id?: string
|
|
5331
|
-
internal_links?: Json | null
|
|
5332
|
-
local_data?: Json | null
|
|
5333
|
-
meta_description?: string | null
|
|
5334
|
-
organization_id: string
|
|
5335
|
-
page_type: string
|
|
5336
|
-
published_at?: string | null
|
|
5337
|
-
refreshed_at?: string | null
|
|
5338
|
-
schema_markup?: Json | null
|
|
5339
|
-
slug: string
|
|
5340
|
-
state?: string | null
|
|
5341
|
-
status?: string
|
|
5342
|
-
title: string
|
|
5343
|
-
updated_at?: string
|
|
5344
|
-
use_case?: string | null
|
|
5345
|
-
vertical: string
|
|
5346
|
-
}
|
|
5347
|
-
Update: {
|
|
5348
|
-
city?: string | null
|
|
5349
|
-
content?: Json | null
|
|
5350
|
-
created_at?: string
|
|
5351
|
-
faq_items?: Json | null
|
|
5352
|
-
hero_image_url?: string | null
|
|
5353
|
-
id?: string
|
|
5354
|
-
internal_links?: Json | null
|
|
5355
|
-
local_data?: Json | null
|
|
5356
|
-
meta_description?: string | null
|
|
5357
|
-
organization_id?: string
|
|
5358
|
-
page_type?: string
|
|
5359
|
-
published_at?: string | null
|
|
5360
|
-
refreshed_at?: string | null
|
|
5361
|
-
schema_markup?: Json | null
|
|
5362
|
-
slug?: string
|
|
5363
|
-
state?: string | null
|
|
5364
|
-
status?: string
|
|
5365
|
-
title?: string
|
|
5366
|
-
updated_at?: string
|
|
5367
|
-
use_case?: string | null
|
|
5368
|
-
vertical?: string
|
|
5369
|
-
}
|
|
5370
|
-
Relationships: [
|
|
5371
|
-
{
|
|
5372
|
-
foreignKeyName: "acq_seo_pages_organization_id_fkey"
|
|
5373
|
-
columns: ["organization_id"]
|
|
5374
|
-
isOneToOne: false
|
|
5375
|
-
referencedRelation: "organizations"
|
|
5376
|
-
referencedColumns: ["id"]
|
|
5377
|
-
},
|
|
5378
|
-
]
|
|
5379
|
-
}
|
|
5380
|
-
acq_social_posts: {
|
|
5381
|
-
Row: {
|
|
5382
|
-
author_name: string
|
|
5383
|
-
author_url: string | null
|
|
5384
|
-
comments_count: number
|
|
5385
|
-
created_at: string
|
|
5386
|
-
discovered_at: string
|
|
5387
|
-
engagement_count: number
|
|
5388
|
-
feedback: string | null
|
|
5389
|
-
final_response: string | null
|
|
5390
|
-
fully_reviewed: boolean
|
|
5391
|
-
id: string
|
|
5392
|
-
initial_draft: string | null
|
|
5393
|
-
matched_keywords: string[]
|
|
5394
|
-
matched_query: string | null
|
|
5395
|
-
metadata: Json
|
|
5396
|
-
organization_id: string
|
|
5397
|
-
platform: string
|
|
5398
|
-
platform_post_id: string
|
|
5399
|
-
post_text: string
|
|
5400
|
-
post_title: string
|
|
5401
|
-
post_url: string
|
|
5402
|
-
posted_at: string
|
|
5403
|
-
relevance_score: number
|
|
5404
|
-
responded_at: string | null
|
|
5405
|
-
reviewed_at: string | null
|
|
5406
|
-
skip_reason: string | null
|
|
5407
|
-
source_category: string | null
|
|
5408
|
-
status: string
|
|
5409
|
-
updated_at: string
|
|
5410
|
-
}
|
|
5411
|
-
Insert: {
|
|
5412
|
-
author_name: string
|
|
5413
|
-
author_url?: string | null
|
|
5414
|
-
comments_count?: number
|
|
5415
|
-
created_at?: string
|
|
5416
|
-
discovered_at?: string
|
|
5417
|
-
engagement_count?: number
|
|
5418
|
-
feedback?: string | null
|
|
5419
|
-
final_response?: string | null
|
|
5420
|
-
fully_reviewed?: boolean
|
|
5421
|
-
id?: string
|
|
5422
|
-
initial_draft?: string | null
|
|
5423
|
-
matched_keywords?: string[]
|
|
5424
|
-
matched_query?: string | null
|
|
5425
|
-
metadata?: Json
|
|
5426
|
-
organization_id: string
|
|
5427
|
-
platform: string
|
|
5428
|
-
platform_post_id: string
|
|
5429
|
-
post_text: string
|
|
5430
|
-
post_title: string
|
|
5431
|
-
post_url: string
|
|
5432
|
-
posted_at: string
|
|
5433
|
-
relevance_score?: number
|
|
5434
|
-
responded_at?: string | null
|
|
5435
|
-
reviewed_at?: string | null
|
|
5436
|
-
skip_reason?: string | null
|
|
5437
|
-
source_category?: string | null
|
|
5438
|
-
status?: string
|
|
5439
|
-
updated_at?: string
|
|
5440
|
-
}
|
|
5441
|
-
Update: {
|
|
5442
|
-
author_name?: string
|
|
5443
|
-
author_url?: string | null
|
|
5444
|
-
comments_count?: number
|
|
5445
|
-
created_at?: string
|
|
5446
|
-
discovered_at?: string
|
|
5447
|
-
engagement_count?: number
|
|
5448
|
-
feedback?: string | null
|
|
5449
|
-
final_response?: string | null
|
|
5450
|
-
fully_reviewed?: boolean
|
|
5451
|
-
id?: string
|
|
5452
|
-
initial_draft?: string | null
|
|
5453
|
-
matched_keywords?: string[]
|
|
5454
|
-
matched_query?: string | null
|
|
5455
|
-
metadata?: Json
|
|
5456
|
-
organization_id?: string
|
|
5457
|
-
platform?: string
|
|
5458
|
-
platform_post_id?: string
|
|
5459
|
-
post_text?: string
|
|
5460
|
-
post_title?: string
|
|
5461
|
-
post_url?: string
|
|
5462
|
-
posted_at?: string
|
|
5463
|
-
relevance_score?: number
|
|
5464
|
-
responded_at?: string | null
|
|
5465
|
-
reviewed_at?: string | null
|
|
5466
|
-
skip_reason?: string | null
|
|
5467
|
-
source_category?: string | null
|
|
5468
|
-
status?: string
|
|
5469
|
-
updated_at?: string
|
|
5470
|
-
}
|
|
5471
|
-
Relationships: [
|
|
5472
|
-
{
|
|
5473
|
-
foreignKeyName: "acq_social_posts_organization_id_fkey"
|
|
5474
|
-
columns: ["organization_id"]
|
|
5475
|
-
isOneToOne: false
|
|
5476
|
-
referencedRelation: "organizations"
|
|
5477
|
-
referencedColumns: ["id"]
|
|
5478
|
-
},
|
|
5479
|
-
]
|
|
5480
|
-
}
|
|
5481
|
-
activities: {
|
|
5482
|
-
Row: {
|
|
5483
|
-
activity_type: string
|
|
5484
|
-
actor_id: string | null
|
|
5485
|
-
actor_type: string | null
|
|
5486
|
-
created_at: string
|
|
5487
|
-
description: string | null
|
|
5488
|
-
entity_id: string
|
|
5489
|
-
entity_name: string | null
|
|
5490
|
-
entity_type: string
|
|
5491
|
-
id: string
|
|
5492
|
-
metadata: Json | null
|
|
5493
|
-
occurred_at: string
|
|
5494
|
-
organization_id: string
|
|
5495
|
-
status: string
|
|
5496
|
-
title: string
|
|
5497
|
-
}
|
|
5498
|
-
Insert: {
|
|
5499
|
-
activity_type: string
|
|
5500
|
-
actor_id?: string | null
|
|
5501
|
-
actor_type?: string | null
|
|
5502
|
-
created_at?: string
|
|
5503
|
-
description?: string | null
|
|
5504
|
-
entity_id: string
|
|
5505
|
-
entity_name?: string | null
|
|
5506
|
-
entity_type: string
|
|
5507
|
-
id?: string
|
|
5508
|
-
metadata?: Json | null
|
|
5509
|
-
occurred_at?: string
|
|
5510
|
-
organization_id: string
|
|
5511
|
-
status: string
|
|
5512
|
-
title: string
|
|
5513
|
-
}
|
|
5514
|
-
Update: {
|
|
5515
|
-
activity_type?: string
|
|
5516
|
-
actor_id?: string | null
|
|
5517
|
-
actor_type?: string | null
|
|
5518
|
-
created_at?: string
|
|
5519
|
-
description?: string | null
|
|
5520
|
-
entity_id?: string
|
|
5521
|
-
entity_name?: string | null
|
|
5522
|
-
entity_type?: string
|
|
5523
|
-
id?: string
|
|
5524
|
-
metadata?: Json | null
|
|
5525
|
-
occurred_at?: string
|
|
5526
|
-
organization_id?: string
|
|
5527
|
-
status?: string
|
|
5528
|
-
title?: string
|
|
5529
|
-
}
|
|
5530
|
-
Relationships: [
|
|
5531
|
-
{
|
|
5532
|
-
foreignKeyName: "activities_organization_id_fkey"
|
|
5533
|
-
columns: ["organization_id"]
|
|
5534
|
-
isOneToOne: false
|
|
5535
|
-
referencedRelation: "organizations"
|
|
5536
|
-
referencedColumns: ["id"]
|
|
5537
|
-
},
|
|
5538
|
-
]
|
|
5539
|
-
}
|
|
5540
|
-
api_keys: {
|
|
5541
|
-
Row: {
|
|
5542
|
-
created_at: string | null
|
|
5543
|
-
id: string
|
|
5544
|
-
key_hash: string
|
|
5545
|
-
last_used_at: string | null
|
|
5546
|
-
name: string
|
|
5547
|
-
organization_id: string
|
|
5548
|
-
}
|
|
5549
|
-
Insert: {
|
|
5550
|
-
created_at?: string | null
|
|
5551
|
-
id?: string
|
|
5552
|
-
key_hash: string
|
|
5553
|
-
last_used_at?: string | null
|
|
5554
|
-
name: string
|
|
5555
|
-
organization_id: string
|
|
5556
|
-
}
|
|
5557
|
-
Update: {
|
|
5558
|
-
created_at?: string | null
|
|
5559
|
-
id?: string
|
|
5560
|
-
key_hash?: string
|
|
5561
|
-
last_used_at?: string | null
|
|
5562
|
-
name?: string
|
|
5563
|
-
organization_id?: string
|
|
5564
|
-
}
|
|
5565
|
-
Relationships: [
|
|
5566
|
-
{
|
|
5567
|
-
foreignKeyName: "api_keys_organization_id_fkey"
|
|
5568
|
-
columns: ["organization_id"]
|
|
5569
|
-
isOneToOne: false
|
|
5570
|
-
referencedRelation: "organizations"
|
|
5571
|
-
referencedColumns: ["id"]
|
|
5572
|
-
},
|
|
5573
|
-
]
|
|
5574
|
-
}
|
|
5575
|
-
command_queue: {
|
|
5576
|
-
Row: {
|
|
5577
|
-
action_payload: Json | null
|
|
5578
|
-
actions: Json
|
|
5579
|
-
completed_at: string | null
|
|
5580
|
-
completed_by: string | null
|
|
5581
|
-
context: Json
|
|
5582
|
-
created_at: string
|
|
5583
|
-
description: string | null
|
|
5584
|
-
expires_at: string | null
|
|
5585
|
-
human_checkpoint: string | null
|
|
5586
|
-
id: string
|
|
5587
|
-
idempotency_key: string | null
|
|
5588
|
-
metadata: Json | null
|
|
5589
|
-
organization_id: string
|
|
5590
|
-
origin_execution_id: string
|
|
5591
|
-
origin_resource_id: string
|
|
5592
|
-
origin_resource_type: string
|
|
5593
|
-
priority: number
|
|
5594
|
-
selected_action: string | null
|
|
5595
|
-
status: string
|
|
5596
|
-
target_execution_id: string | null
|
|
5597
|
-
target_resource_id: string | null
|
|
5598
|
-
target_resource_type: string | null
|
|
5599
|
-
}
|
|
5600
|
-
Insert: {
|
|
5601
|
-
action_payload?: Json | null
|
|
5602
|
-
actions: Json
|
|
5603
|
-
completed_at?: string | null
|
|
5604
|
-
completed_by?: string | null
|
|
5605
|
-
context: Json
|
|
5606
|
-
created_at?: string
|
|
5607
|
-
description?: string | null
|
|
5608
|
-
expires_at?: string | null
|
|
5609
|
-
human_checkpoint?: string | null
|
|
5610
|
-
id?: string
|
|
5611
|
-
idempotency_key?: string | null
|
|
5612
|
-
metadata?: Json | null
|
|
5613
|
-
organization_id: string
|
|
5614
|
-
origin_execution_id: string
|
|
5615
|
-
origin_resource_id: string
|
|
5616
|
-
origin_resource_type: string
|
|
5617
|
-
priority?: number
|
|
5618
|
-
selected_action?: string | null
|
|
5619
|
-
status?: string
|
|
5620
|
-
target_execution_id?: string | null
|
|
5621
|
-
target_resource_id?: string | null
|
|
5622
|
-
target_resource_type?: string | null
|
|
5623
|
-
}
|
|
5624
|
-
Update: {
|
|
5625
|
-
action_payload?: Json | null
|
|
5626
|
-
actions?: Json
|
|
5627
|
-
completed_at?: string | null
|
|
5628
|
-
completed_by?: string | null
|
|
5629
|
-
context?: Json
|
|
5630
|
-
created_at?: string
|
|
5631
|
-
description?: string | null
|
|
5632
|
-
expires_at?: string | null
|
|
5633
|
-
human_checkpoint?: string | null
|
|
5634
|
-
id?: string
|
|
5635
|
-
idempotency_key?: string | null
|
|
5636
|
-
metadata?: Json | null
|
|
5637
|
-
organization_id?: string
|
|
5638
|
-
origin_execution_id?: string
|
|
5639
|
-
origin_resource_id?: string
|
|
5640
|
-
origin_resource_type?: string
|
|
5641
|
-
priority?: number
|
|
5642
|
-
selected_action?: string | null
|
|
5643
|
-
status?: string
|
|
5644
|
-
target_execution_id?: string | null
|
|
5645
|
-
target_resource_id?: string | null
|
|
5646
|
-
target_resource_type?: string | null
|
|
5647
|
-
}
|
|
5648
|
-
Relationships: [
|
|
5649
|
-
{
|
|
5650
|
-
foreignKeyName: "command_queue_completed_by_fkey"
|
|
5651
|
-
columns: ["completed_by"]
|
|
5652
|
-
isOneToOne: false
|
|
5653
|
-
referencedRelation: "users"
|
|
5654
|
-
referencedColumns: ["id"]
|
|
5655
|
-
},
|
|
5656
|
-
{
|
|
5657
|
-
foreignKeyName: "command_queue_organization_id_fkey"
|
|
5658
|
-
columns: ["organization_id"]
|
|
5659
|
-
isOneToOne: false
|
|
5660
|
-
referencedRelation: "organizations"
|
|
5661
|
-
referencedColumns: ["id"]
|
|
5662
|
-
},
|
|
5663
|
-
{
|
|
5664
|
-
foreignKeyName: "command_queue_target_execution_id_fkey"
|
|
5665
|
-
columns: ["target_execution_id"]
|
|
5666
|
-
isOneToOne: false
|
|
5667
|
-
referencedRelation: "execution_logs"
|
|
5668
|
-
referencedColumns: ["execution_id"]
|
|
5669
|
-
},
|
|
5670
|
-
]
|
|
5671
|
-
}
|
|
5672
|
-
credentials: {
|
|
5673
|
-
Row: {
|
|
5674
|
-
created_at: string
|
|
5675
|
-
created_by: string | null
|
|
5676
|
-
encrypted_value: string
|
|
5677
|
-
id: string
|
|
5678
|
-
name: string
|
|
5679
|
-
organization_id: string
|
|
5680
|
-
provider: string | null
|
|
5681
|
-
type: string
|
|
5682
|
-
updated_at: string
|
|
5683
|
-
}
|
|
5684
|
-
Insert: {
|
|
5685
|
-
created_at?: string
|
|
5686
|
-
created_by?: string | null
|
|
5687
|
-
encrypted_value: string
|
|
5688
|
-
id?: string
|
|
5689
|
-
name: string
|
|
5690
|
-
organization_id: string
|
|
5691
|
-
provider?: string | null
|
|
5692
|
-
type?: string
|
|
5693
|
-
updated_at?: string
|
|
5694
|
-
}
|
|
5695
|
-
Update: {
|
|
5696
|
-
created_at?: string
|
|
5697
|
-
created_by?: string | null
|
|
5698
|
-
encrypted_value?: string
|
|
5699
|
-
id?: string
|
|
5700
|
-
name?: string
|
|
5701
|
-
organization_id?: string
|
|
5702
|
-
provider?: string | null
|
|
5703
|
-
type?: string
|
|
5704
|
-
updated_at?: string
|
|
5705
|
-
}
|
|
5706
|
-
Relationships: [
|
|
5707
|
-
{
|
|
5708
|
-
foreignKeyName: "credentials_created_by_fkey"
|
|
5709
|
-
columns: ["created_by"]
|
|
5710
|
-
isOneToOne: false
|
|
5711
|
-
referencedRelation: "users"
|
|
5712
|
-
referencedColumns: ["id"]
|
|
5713
|
-
},
|
|
5714
|
-
{
|
|
5715
|
-
foreignKeyName: "credentials_organization_id_fkey"
|
|
5716
|
-
columns: ["organization_id"]
|
|
5717
|
-
isOneToOne: false
|
|
5718
|
-
referencedRelation: "organizations"
|
|
5719
|
-
referencedColumns: ["id"]
|
|
5720
|
-
},
|
|
5721
|
-
]
|
|
5722
|
-
}
|
|
5723
|
-
deployments: {
|
|
5724
|
-
Row: {
|
|
5725
|
-
created_at: string
|
|
5726
|
-
deployment_version: string | null
|
|
5727
|
-
error_message: string | null
|
|
5728
|
-
id: string
|
|
5729
|
-
organization_id: string
|
|
5730
|
-
pid: number | null
|
|
5731
|
-
port: number | null
|
|
5732
|
-
sdk_version: string
|
|
5733
|
-
status: string
|
|
5734
|
-
tarball_path: string | null
|
|
5735
|
-
updated_at: string
|
|
5736
|
-
}
|
|
5737
|
-
Insert: {
|
|
5738
|
-
created_at?: string
|
|
5739
|
-
deployment_version?: string | null
|
|
5740
|
-
error_message?: string | null
|
|
5741
|
-
id?: string
|
|
5742
|
-
organization_id: string
|
|
5743
|
-
pid?: number | null
|
|
5744
|
-
port?: number | null
|
|
5745
|
-
sdk_version: string
|
|
5746
|
-
status?: string
|
|
5747
|
-
tarball_path?: string | null
|
|
5748
|
-
updated_at?: string
|
|
5749
|
-
}
|
|
5750
|
-
Update: {
|
|
5751
|
-
created_at?: string
|
|
5752
|
-
deployment_version?: string | null
|
|
5753
|
-
error_message?: string | null
|
|
5754
|
-
id?: string
|
|
5755
|
-
organization_id?: string
|
|
5756
|
-
pid?: number | null
|
|
5757
|
-
port?: number | null
|
|
5758
|
-
sdk_version?: string
|
|
5759
|
-
status?: string
|
|
5760
|
-
tarball_path?: string | null
|
|
5761
|
-
updated_at?: string
|
|
5762
|
-
}
|
|
5763
|
-
Relationships: [
|
|
5764
|
-
{
|
|
5765
|
-
foreignKeyName: "deployments_organization_id_fkey"
|
|
5766
|
-
columns: ["organization_id"]
|
|
5767
|
-
isOneToOne: false
|
|
5768
|
-
referencedRelation: "organizations"
|
|
5769
|
-
referencedColumns: ["id"]
|
|
5770
|
-
},
|
|
5771
|
-
]
|
|
5772
|
-
}
|
|
5773
|
-
execution_errors: {
|
|
5774
|
-
Row: {
|
|
5775
|
-
created_at: string | null
|
|
5776
|
-
error_category: string
|
|
5777
|
-
error_message: string
|
|
5778
|
-
error_severity: string
|
|
5779
|
-
error_stack_trace: string | null
|
|
5780
|
-
error_type: string
|
|
5781
|
-
execution_id: string
|
|
5782
|
-
id: string
|
|
5783
|
-
metadata: Json | null
|
|
5784
|
-
occurred_at: string
|
|
5785
|
-
organization_id: string
|
|
5786
|
-
resolved: boolean
|
|
5787
|
-
resolved_at: string | null
|
|
5788
|
-
resolved_by: string | null
|
|
5789
|
-
}
|
|
5790
|
-
Insert: {
|
|
5791
|
-
created_at?: string | null
|
|
5792
|
-
error_category: string
|
|
5793
|
-
error_message: string
|
|
5794
|
-
error_severity: string
|
|
5795
|
-
error_stack_trace?: string | null
|
|
5796
|
-
error_type: string
|
|
5797
|
-
execution_id: string
|
|
5798
|
-
id?: string
|
|
5799
|
-
metadata?: Json | null
|
|
5800
|
-
occurred_at?: string
|
|
5801
|
-
organization_id: string
|
|
5802
|
-
resolved?: boolean
|
|
5803
|
-
resolved_at?: string | null
|
|
5804
|
-
resolved_by?: string | null
|
|
5805
|
-
}
|
|
5806
|
-
Update: {
|
|
5807
|
-
created_at?: string | null
|
|
5808
|
-
error_category?: string
|
|
5809
|
-
error_message?: string
|
|
5810
|
-
error_severity?: string
|
|
5811
|
-
error_stack_trace?: string | null
|
|
5812
|
-
error_type?: string
|
|
5813
|
-
execution_id?: string
|
|
5814
|
-
id?: string
|
|
5815
|
-
metadata?: Json | null
|
|
5816
|
-
occurred_at?: string
|
|
5817
|
-
organization_id?: string
|
|
5818
|
-
resolved?: boolean
|
|
5819
|
-
resolved_at?: string | null
|
|
5820
|
-
resolved_by?: string | null
|
|
5821
|
-
}
|
|
5822
|
-
Relationships: [
|
|
5823
|
-
{
|
|
5824
|
-
foreignKeyName: "execution_errors_execution_id_fkey"
|
|
5825
|
-
columns: ["execution_id"]
|
|
5826
|
-
isOneToOne: false
|
|
5827
|
-
referencedRelation: "execution_logs"
|
|
5828
|
-
referencedColumns: ["execution_id"]
|
|
5829
|
-
},
|
|
5830
|
-
{
|
|
5831
|
-
foreignKeyName: "execution_errors_organization_id_fkey"
|
|
5832
|
-
columns: ["organization_id"]
|
|
5833
|
-
isOneToOne: false
|
|
5834
|
-
referencedRelation: "organizations"
|
|
5835
|
-
referencedColumns: ["id"]
|
|
5836
|
-
},
|
|
5837
|
-
{
|
|
5838
|
-
foreignKeyName: "execution_errors_resolved_by_fkey"
|
|
5839
|
-
columns: ["resolved_by"]
|
|
5840
|
-
isOneToOne: false
|
|
5841
|
-
referencedRelation: "users"
|
|
5842
|
-
referencedColumns: ["id"]
|
|
5843
|
-
},
|
|
5844
|
-
]
|
|
5845
|
-
}
|
|
5846
|
-
execution_logs: {
|
|
5847
|
-
Row: {
|
|
5848
|
-
api_version: string | null
|
|
5849
|
-
completed_at: string | null
|
|
5850
|
-
created_at: string | null
|
|
5851
|
-
error: string | null
|
|
5852
|
-
execution_id: string
|
|
5853
|
-
input: Json | null
|
|
5854
|
-
last_heartbeat_at: string | null
|
|
5855
|
-
logs: Json | null
|
|
5856
|
-
organization_id: string
|
|
5857
|
-
origin_execution_id: string | null
|
|
5858
|
-
output: Json | null
|
|
5859
|
-
resource_id: string
|
|
5860
|
-
resource_status: string
|
|
5861
|
-
resource_type: string
|
|
5862
|
-
resource_version: string | null
|
|
5863
|
-
sdk_version: string | null
|
|
5864
|
-
session_id: string | null
|
|
5865
|
-
session_turn_number: number | null
|
|
5866
|
-
started_at: string
|
|
5867
|
-
status: string
|
|
5868
|
-
trigger_type: string | null
|
|
5869
|
-
updated_at: string | null
|
|
5870
|
-
user_id: string | null
|
|
5871
|
-
}
|
|
5872
|
-
Insert: {
|
|
5873
|
-
api_version?: string | null
|
|
5874
|
-
completed_at?: string | null
|
|
5875
|
-
created_at?: string | null
|
|
5876
|
-
error?: string | null
|
|
5877
|
-
execution_id?: string
|
|
5878
|
-
input?: Json | null
|
|
5879
|
-
last_heartbeat_at?: string | null
|
|
5880
|
-
logs?: Json | null
|
|
5881
|
-
organization_id: string
|
|
5882
|
-
origin_execution_id?: string | null
|
|
5883
|
-
output?: Json | null
|
|
5884
|
-
resource_id: string
|
|
5885
|
-
resource_status?: string
|
|
5886
|
-
resource_type?: string
|
|
5887
|
-
resource_version?: string | null
|
|
5888
|
-
sdk_version?: string | null
|
|
5889
|
-
session_id?: string | null
|
|
5890
|
-
session_turn_number?: number | null
|
|
5891
|
-
started_at?: string
|
|
5892
|
-
status: string
|
|
5893
|
-
trigger_type?: string | null
|
|
5894
|
-
updated_at?: string | null
|
|
5895
|
-
user_id?: string | null
|
|
5896
|
-
}
|
|
5897
|
-
Update: {
|
|
5898
|
-
api_version?: string | null
|
|
5899
|
-
completed_at?: string | null
|
|
5900
|
-
created_at?: string | null
|
|
5901
|
-
error?: string | null
|
|
5902
|
-
execution_id?: string
|
|
5903
|
-
input?: Json | null
|
|
5904
|
-
last_heartbeat_at?: string | null
|
|
5905
|
-
logs?: Json | null
|
|
5906
|
-
organization_id?: string
|
|
5907
|
-
origin_execution_id?: string | null
|
|
5908
|
-
output?: Json | null
|
|
5909
|
-
resource_id?: string
|
|
5910
|
-
resource_status?: string
|
|
5911
|
-
resource_type?: string
|
|
5912
|
-
resource_version?: string | null
|
|
5913
|
-
sdk_version?: string | null
|
|
5914
|
-
session_id?: string | null
|
|
5915
|
-
session_turn_number?: number | null
|
|
5916
|
-
started_at?: string
|
|
5917
|
-
status?: string
|
|
5918
|
-
trigger_type?: string | null
|
|
5919
|
-
updated_at?: string | null
|
|
5920
|
-
user_id?: string | null
|
|
5921
|
-
}
|
|
5922
|
-
Relationships: [
|
|
5923
|
-
{
|
|
5924
|
-
foreignKeyName: "execution_history_organization_id_fkey"
|
|
5925
|
-
columns: ["organization_id"]
|
|
5926
|
-
isOneToOne: false
|
|
5927
|
-
referencedRelation: "organizations"
|
|
5928
|
-
referencedColumns: ["id"]
|
|
5929
|
-
},
|
|
5930
|
-
{
|
|
5931
|
-
foreignKeyName: "execution_logs_origin_execution_id_fkey"
|
|
5932
|
-
columns: ["origin_execution_id"]
|
|
5933
|
-
isOneToOne: false
|
|
5934
|
-
referencedRelation: "execution_logs"
|
|
5935
|
-
referencedColumns: ["execution_id"]
|
|
5936
|
-
},
|
|
5937
|
-
{
|
|
5938
|
-
foreignKeyName: "execution_logs_session_id_fkey"
|
|
5939
|
-
columns: ["session_id"]
|
|
5940
|
-
isOneToOne: false
|
|
5941
|
-
referencedRelation: "sessions"
|
|
5942
|
-
referencedColumns: ["session_id"]
|
|
5943
|
-
},
|
|
5944
|
-
{
|
|
5945
|
-
foreignKeyName: "execution_logs_user_id_fkey"
|
|
5946
|
-
columns: ["user_id"]
|
|
5947
|
-
isOneToOne: false
|
|
5948
|
-
referencedRelation: "users"
|
|
5949
|
-
referencedColumns: ["id"]
|
|
5950
|
-
},
|
|
5951
|
-
]
|
|
5952
|
-
}
|
|
5953
|
-
execution_metrics: {
|
|
5954
|
-
Row: {
|
|
5955
|
-
ai_call_count: number
|
|
5956
|
-
ai_calls: Json | null
|
|
5957
|
-
automation_savings_usd: number | null
|
|
5958
|
-
created_at: string | null
|
|
5959
|
-
duration_ms: number | null
|
|
5960
|
-
execution_id: string
|
|
5961
|
-
organization_id: string
|
|
5962
|
-
resource_id: string
|
|
5963
|
-
total_cost_usd: number
|
|
5964
|
-
total_input_tokens: number
|
|
5965
|
-
total_output_tokens: number
|
|
5966
|
-
}
|
|
5967
|
-
Insert: {
|
|
5968
|
-
ai_call_count: number
|
|
5969
|
-
ai_calls?: Json | null
|
|
5970
|
-
automation_savings_usd?: number | null
|
|
5971
|
-
created_at?: string | null
|
|
5972
|
-
duration_ms?: number | null
|
|
5973
|
-
execution_id: string
|
|
5974
|
-
organization_id: string
|
|
5975
|
-
resource_id: string
|
|
5976
|
-
total_cost_usd: number
|
|
5977
|
-
total_input_tokens: number
|
|
5978
|
-
total_output_tokens: number
|
|
5979
|
-
}
|
|
5980
|
-
Update: {
|
|
5981
|
-
ai_call_count?: number
|
|
5982
|
-
ai_calls?: Json | null
|
|
5983
|
-
automation_savings_usd?: number | null
|
|
5984
|
-
created_at?: string | null
|
|
5985
|
-
duration_ms?: number | null
|
|
5986
|
-
execution_id?: string
|
|
5987
|
-
organization_id?: string
|
|
5988
|
-
resource_id?: string
|
|
5989
|
-
total_cost_usd?: number
|
|
5990
|
-
total_input_tokens?: number
|
|
5991
|
-
total_output_tokens?: number
|
|
5992
|
-
}
|
|
5993
|
-
Relationships: [
|
|
5994
|
-
{
|
|
5995
|
-
foreignKeyName: "execution_metrics_execution_id_fkey"
|
|
5996
|
-
columns: ["execution_id"]
|
|
5997
|
-
isOneToOne: true
|
|
5998
|
-
referencedRelation: "execution_logs"
|
|
5999
|
-
referencedColumns: ["execution_id"]
|
|
6000
|
-
},
|
|
6001
|
-
{
|
|
6002
|
-
foreignKeyName: "execution_metrics_organization_id_fkey"
|
|
6003
|
-
columns: ["organization_id"]
|
|
6004
|
-
isOneToOne: false
|
|
6005
|
-
referencedRelation: "organizations"
|
|
6006
|
-
referencedColumns: ["id"]
|
|
6007
|
-
},
|
|
6008
|
-
]
|
|
6009
|
-
}
|
|
6010
|
-
notifications: {
|
|
6011
|
-
Row: {
|
|
6012
|
-
action_url: string | null
|
|
6013
|
-
category: string
|
|
6014
|
-
created_at: string | null
|
|
6015
|
-
id: string
|
|
6016
|
-
message: string
|
|
6017
|
-
organization_id: string
|
|
6018
|
-
read: boolean | null
|
|
6019
|
-
read_at: string | null
|
|
6020
|
-
title: string
|
|
6021
|
-
user_id: string
|
|
6022
|
-
}
|
|
6023
|
-
Insert: {
|
|
6024
|
-
action_url?: string | null
|
|
6025
|
-
category: string
|
|
6026
|
-
created_at?: string | null
|
|
6027
|
-
id?: string
|
|
6028
|
-
message: string
|
|
6029
|
-
organization_id: string
|
|
6030
|
-
read?: boolean | null
|
|
6031
|
-
read_at?: string | null
|
|
6032
|
-
title: string
|
|
6033
|
-
user_id: string
|
|
6034
|
-
}
|
|
6035
|
-
Update: {
|
|
6036
|
-
action_url?: string | null
|
|
6037
|
-
category?: string
|
|
6038
|
-
created_at?: string | null
|
|
6039
|
-
id?: string
|
|
6040
|
-
message?: string
|
|
6041
|
-
organization_id?: string
|
|
6042
|
-
read?: boolean | null
|
|
6043
|
-
read_at?: string | null
|
|
6044
|
-
title?: string
|
|
6045
|
-
user_id?: string
|
|
6046
|
-
}
|
|
6047
|
-
Relationships: [
|
|
6048
|
-
{
|
|
6049
|
-
foreignKeyName: "notifications_organization_id_fkey"
|
|
6050
|
-
columns: ["organization_id"]
|
|
6051
|
-
isOneToOne: false
|
|
6052
|
-
referencedRelation: "organizations"
|
|
6053
|
-
referencedColumns: ["id"]
|
|
6054
|
-
},
|
|
6055
|
-
{
|
|
6056
|
-
foreignKeyName: "notifications_user_id_fkey"
|
|
6057
|
-
columns: ["user_id"]
|
|
6058
|
-
isOneToOne: false
|
|
6059
|
-
referencedRelation: "users"
|
|
6060
|
-
referencedColumns: ["id"]
|
|
6061
|
-
},
|
|
6062
|
-
]
|
|
6063
|
-
}
|
|
6064
|
-
org_invitations: {
|
|
6065
|
-
Row: {
|
|
6066
|
-
accept_invitation_url: string | null
|
|
6067
|
-
accepted_at: string | null
|
|
6068
|
-
created_at: string | null
|
|
6069
|
-
email: string
|
|
6070
|
-
expires_at: string
|
|
6071
|
-
id: string
|
|
6072
|
-
invitation_state: string | null
|
|
6073
|
-
invitation_token: string | null
|
|
6074
|
-
inviter_user_id: string | null
|
|
6075
|
-
organization_id: string | null
|
|
6076
|
-
revoked_at: string | null
|
|
6077
|
-
role_slug: string | null
|
|
6078
|
-
updated_at: string | null
|
|
6079
|
-
workos_invitation_id: string
|
|
6080
|
-
}
|
|
6081
|
-
Insert: {
|
|
6082
|
-
accept_invitation_url?: string | null
|
|
6083
|
-
accepted_at?: string | null
|
|
6084
|
-
created_at?: string | null
|
|
6085
|
-
email: string
|
|
6086
|
-
expires_at: string
|
|
6087
|
-
id?: string
|
|
6088
|
-
invitation_state?: string | null
|
|
6089
|
-
invitation_token?: string | null
|
|
6090
|
-
inviter_user_id?: string | null
|
|
6091
|
-
organization_id?: string | null
|
|
6092
|
-
revoked_at?: string | null
|
|
6093
|
-
role_slug?: string | null
|
|
6094
|
-
updated_at?: string | null
|
|
6095
|
-
workos_invitation_id: string
|
|
6096
|
-
}
|
|
6097
|
-
Update: {
|
|
6098
|
-
accept_invitation_url?: string | null
|
|
6099
|
-
accepted_at?: string | null
|
|
6100
|
-
created_at?: string | null
|
|
6101
|
-
email?: string
|
|
6102
|
-
expires_at?: string
|
|
6103
|
-
id?: string
|
|
6104
|
-
invitation_state?: string | null
|
|
6105
|
-
invitation_token?: string | null
|
|
6106
|
-
inviter_user_id?: string | null
|
|
6107
|
-
organization_id?: string | null
|
|
6108
|
-
revoked_at?: string | null
|
|
6109
|
-
role_slug?: string | null
|
|
6110
|
-
updated_at?: string | null
|
|
6111
|
-
workos_invitation_id?: string
|
|
6112
|
-
}
|
|
6113
|
-
Relationships: [
|
|
6114
|
-
{
|
|
6115
|
-
foreignKeyName: "org_invitations_inviter_user_id_fkey"
|
|
6116
|
-
columns: ["inviter_user_id"]
|
|
6117
|
-
isOneToOne: false
|
|
6118
|
-
referencedRelation: "users"
|
|
6119
|
-
referencedColumns: ["id"]
|
|
6120
|
-
},
|
|
6121
|
-
{
|
|
6122
|
-
foreignKeyName: "org_invitations_organization_id_fkey"
|
|
6123
|
-
columns: ["organization_id"]
|
|
6124
|
-
isOneToOne: false
|
|
6125
|
-
referencedRelation: "organizations"
|
|
6126
|
-
referencedColumns: ["id"]
|
|
6127
|
-
},
|
|
6128
|
-
]
|
|
6129
|
-
}
|
|
6130
|
-
org_memberships: {
|
|
6131
|
-
Row: {
|
|
6132
|
-
config: Json
|
|
6133
|
-
created_at: string | null
|
|
6134
|
-
id: string
|
|
6135
|
-
membership_status: string | null
|
|
6136
|
-
organization_id: string
|
|
6137
|
-
role_slug: string | null
|
|
6138
|
-
updated_at: string | null
|
|
6139
|
-
user_id: string
|
|
6140
|
-
workos_membership_id: string | null
|
|
6141
|
-
}
|
|
6142
|
-
Insert: {
|
|
6143
|
-
config?: Json
|
|
6144
|
-
created_at?: string | null
|
|
6145
|
-
id?: string
|
|
6146
|
-
membership_status?: string | null
|
|
6147
|
-
organization_id: string
|
|
6148
|
-
role_slug?: string | null
|
|
6149
|
-
updated_at?: string | null
|
|
6150
|
-
user_id: string
|
|
6151
|
-
workos_membership_id?: string | null
|
|
6152
|
-
}
|
|
6153
|
-
Update: {
|
|
6154
|
-
config?: Json
|
|
6155
|
-
created_at?: string | null
|
|
6156
|
-
id?: string
|
|
6157
|
-
membership_status?: string | null
|
|
6158
|
-
organization_id?: string
|
|
6159
|
-
role_slug?: string | null
|
|
6160
|
-
updated_at?: string | null
|
|
6161
|
-
user_id?: string
|
|
6162
|
-
workos_membership_id?: string | null
|
|
6163
|
-
}
|
|
6164
|
-
Relationships: [
|
|
6165
|
-
{
|
|
6166
|
-
foreignKeyName: "org_memberships_organization_id_fkey"
|
|
6167
|
-
columns: ["organization_id"]
|
|
6168
|
-
isOneToOne: false
|
|
6169
|
-
referencedRelation: "organizations"
|
|
6170
|
-
referencedColumns: ["id"]
|
|
6171
|
-
},
|
|
6172
|
-
{
|
|
6173
|
-
foreignKeyName: "org_memberships_user_id_fkey"
|
|
6174
|
-
columns: ["user_id"]
|
|
6175
|
-
isOneToOne: false
|
|
6176
|
-
referencedRelation: "users"
|
|
6177
|
-
referencedColumns: ["id"]
|
|
6178
|
-
},
|
|
6179
|
-
]
|
|
6180
|
-
}
|
|
6181
|
-
organizations: {
|
|
6182
|
-
Row: {
|
|
6183
|
-
config: Json
|
|
6184
|
-
created_at: string
|
|
6185
|
-
id: string
|
|
6186
|
-
is_test: boolean
|
|
6187
|
-
metadata: Json
|
|
6188
|
-
name: string
|
|
6189
|
-
status: string
|
|
6190
|
-
updated_at: string
|
|
6191
|
-
workos_org_id: string
|
|
6192
|
-
}
|
|
6193
|
-
Insert: {
|
|
6194
|
-
config?: Json
|
|
6195
|
-
created_at?: string
|
|
6196
|
-
id?: string
|
|
6197
|
-
is_test?: boolean
|
|
6198
|
-
metadata?: Json
|
|
6199
|
-
name: string
|
|
6200
|
-
status?: string
|
|
6201
|
-
updated_at?: string
|
|
6202
|
-
workos_org_id: string
|
|
6203
|
-
}
|
|
6204
|
-
Update: {
|
|
6205
|
-
config?: Json
|
|
6206
|
-
created_at?: string
|
|
6207
|
-
id?: string
|
|
6208
|
-
is_test?: boolean
|
|
6209
|
-
metadata?: Json
|
|
6210
|
-
name?: string
|
|
6211
|
-
status?: string
|
|
6212
|
-
updated_at?: string
|
|
6213
|
-
workos_org_id?: string
|
|
6214
|
-
}
|
|
6215
|
-
Relationships: []
|
|
6216
|
-
}
|
|
6217
|
-
prj_milestones: {
|
|
6218
|
-
Row: {
|
|
6219
|
-
checklist: Json | null
|
|
6220
|
-
completed_at: string | null
|
|
6221
|
-
created_at: string
|
|
6222
|
-
description: string | null
|
|
6223
|
-
due_date: string | null
|
|
6224
|
-
id: string
|
|
6225
|
-
metadata: Json | null
|
|
6226
|
-
name: string
|
|
6227
|
-
organization_id: string
|
|
6228
|
-
project_id: string
|
|
6229
|
-
sequence: number
|
|
6230
|
-
status: string
|
|
6231
|
-
updated_at: string
|
|
6232
|
-
}
|
|
6233
|
-
Insert: {
|
|
6234
|
-
checklist?: Json | null
|
|
6235
|
-
completed_at?: string | null
|
|
6236
|
-
created_at?: string
|
|
6237
|
-
description?: string | null
|
|
6238
|
-
due_date?: string | null
|
|
6239
|
-
id?: string
|
|
6240
|
-
metadata?: Json | null
|
|
6241
|
-
name: string
|
|
6242
|
-
organization_id: string
|
|
6243
|
-
project_id: string
|
|
6244
|
-
sequence?: number
|
|
6245
|
-
status?: string
|
|
6246
|
-
updated_at?: string
|
|
6247
|
-
}
|
|
6248
|
-
Update: {
|
|
6249
|
-
checklist?: Json | null
|
|
6250
|
-
completed_at?: string | null
|
|
6251
|
-
created_at?: string
|
|
6252
|
-
description?: string | null
|
|
6253
|
-
due_date?: string | null
|
|
6254
|
-
id?: string
|
|
6255
|
-
metadata?: Json | null
|
|
6256
|
-
name?: string
|
|
6257
|
-
organization_id?: string
|
|
6258
|
-
project_id?: string
|
|
6259
|
-
sequence?: number
|
|
6260
|
-
status?: string
|
|
6261
|
-
updated_at?: string
|
|
6262
|
-
}
|
|
6263
|
-
Relationships: [
|
|
6264
|
-
{
|
|
6265
|
-
foreignKeyName: "fk_milestones_project"
|
|
6266
|
-
columns: ["project_id"]
|
|
6267
|
-
isOneToOne: false
|
|
6268
|
-
referencedRelation: "prj_projects"
|
|
6269
|
-
referencedColumns: ["id"]
|
|
6270
|
-
},
|
|
6271
|
-
{
|
|
6272
|
-
foreignKeyName: "prj_milestones_organization_id_fkey"
|
|
6273
|
-
columns: ["organization_id"]
|
|
6274
|
-
isOneToOne: false
|
|
6275
|
-
referencedRelation: "organizations"
|
|
6276
|
-
referencedColumns: ["id"]
|
|
6277
|
-
},
|
|
6278
|
-
{
|
|
6279
|
-
foreignKeyName: "prj_milestones_project_id_fkey"
|
|
6280
|
-
columns: ["project_id"]
|
|
6281
|
-
isOneToOne: false
|
|
6282
|
-
referencedRelation: "prj_projects"
|
|
6283
|
-
referencedColumns: ["id"]
|
|
6284
|
-
},
|
|
6285
|
-
]
|
|
6286
|
-
}
|
|
6287
|
-
prj_notes: {
|
|
6288
|
-
Row: {
|
|
6289
|
-
content: string
|
|
6290
|
-
created_at: string
|
|
6291
|
-
created_by: string | null
|
|
6292
|
-
id: string
|
|
6293
|
-
metadata: Json | null
|
|
6294
|
-
milestone_id: string | null
|
|
6295
|
-
occurred_at: string
|
|
6296
|
-
organization_id: string
|
|
6297
|
-
project_id: string
|
|
6298
|
-
summary: string | null
|
|
6299
|
-
task_id: string | null
|
|
6300
|
-
type: string
|
|
6301
|
-
}
|
|
6302
|
-
Insert: {
|
|
6303
|
-
content: string
|
|
6304
|
-
created_at?: string
|
|
6305
|
-
created_by?: string | null
|
|
6306
|
-
id?: string
|
|
6307
|
-
metadata?: Json | null
|
|
6308
|
-
milestone_id?: string | null
|
|
6309
|
-
occurred_at?: string
|
|
6310
|
-
organization_id: string
|
|
6311
|
-
project_id: string
|
|
6312
|
-
summary?: string | null
|
|
6313
|
-
task_id?: string | null
|
|
6314
|
-
type?: string
|
|
6315
|
-
}
|
|
6316
|
-
Update: {
|
|
6317
|
-
content?: string
|
|
6318
|
-
created_at?: string
|
|
6319
|
-
created_by?: string | null
|
|
6320
|
-
id?: string
|
|
6321
|
-
metadata?: Json | null
|
|
6322
|
-
milestone_id?: string | null
|
|
6323
|
-
occurred_at?: string
|
|
6324
|
-
organization_id?: string
|
|
6325
|
-
project_id?: string
|
|
6326
|
-
summary?: string | null
|
|
6327
|
-
task_id?: string | null
|
|
6328
|
-
type?: string
|
|
6329
|
-
}
|
|
6330
|
-
Relationships: [
|
|
6331
|
-
{
|
|
6332
|
-
foreignKeyName: "fk_notes_created_by"
|
|
6333
|
-
columns: ["created_by"]
|
|
6334
|
-
isOneToOne: false
|
|
6335
|
-
referencedRelation: "users"
|
|
6336
|
-
referencedColumns: ["id"]
|
|
6337
|
-
},
|
|
6338
|
-
{
|
|
6339
|
-
foreignKeyName: "fk_notes_milestone"
|
|
6340
|
-
columns: ["milestone_id"]
|
|
6341
|
-
isOneToOne: false
|
|
6342
|
-
referencedRelation: "prj_milestones"
|
|
6343
|
-
referencedColumns: ["id"]
|
|
6344
|
-
},
|
|
6345
|
-
{
|
|
6346
|
-
foreignKeyName: "fk_notes_project"
|
|
6347
|
-
columns: ["project_id"]
|
|
6348
|
-
isOneToOne: false
|
|
6349
|
-
referencedRelation: "prj_projects"
|
|
6350
|
-
referencedColumns: ["id"]
|
|
6351
|
-
},
|
|
6352
|
-
{
|
|
6353
|
-
foreignKeyName: "fk_notes_task"
|
|
6354
|
-
columns: ["task_id"]
|
|
6355
|
-
isOneToOne: false
|
|
6356
|
-
referencedRelation: "prj_tasks"
|
|
6357
|
-
referencedColumns: ["id"]
|
|
6358
|
-
},
|
|
6359
|
-
{
|
|
6360
|
-
foreignKeyName: "prj_notes_created_by_fkey"
|
|
6361
|
-
columns: ["created_by"]
|
|
6362
|
-
isOneToOne: false
|
|
6363
|
-
referencedRelation: "users"
|
|
6364
|
-
referencedColumns: ["id"]
|
|
6365
|
-
},
|
|
6366
|
-
{
|
|
6367
|
-
foreignKeyName: "prj_notes_milestone_id_fkey"
|
|
6368
|
-
columns: ["milestone_id"]
|
|
6369
|
-
isOneToOne: false
|
|
6370
|
-
referencedRelation: "prj_milestones"
|
|
6371
|
-
referencedColumns: ["id"]
|
|
6372
|
-
},
|
|
6373
|
-
{
|
|
6374
|
-
foreignKeyName: "prj_notes_organization_id_fkey"
|
|
6375
|
-
columns: ["organization_id"]
|
|
6376
|
-
isOneToOne: false
|
|
6377
|
-
referencedRelation: "organizations"
|
|
6378
|
-
referencedColumns: ["id"]
|
|
6379
|
-
},
|
|
6380
|
-
{
|
|
6381
|
-
foreignKeyName: "prj_notes_project_id_fkey"
|
|
6382
|
-
columns: ["project_id"]
|
|
6383
|
-
isOneToOne: false
|
|
6384
|
-
referencedRelation: "prj_projects"
|
|
6385
|
-
referencedColumns: ["id"]
|
|
6386
|
-
},
|
|
6387
|
-
{
|
|
6388
|
-
foreignKeyName: "prj_notes_task_id_fkey"
|
|
6389
|
-
columns: ["task_id"]
|
|
6390
|
-
isOneToOne: false
|
|
6391
|
-
referencedRelation: "prj_tasks"
|
|
6392
|
-
referencedColumns: ["id"]
|
|
6393
|
-
},
|
|
6394
|
-
]
|
|
6395
|
-
}
|
|
6396
|
-
prj_projects: {
|
|
6397
|
-
Row: {
|
|
6398
|
-
actual_end_date: string | null
|
|
6399
|
-
client_company_id: string | null
|
|
6400
|
-
contract_value: number | null
|
|
6401
|
-
created_at: string
|
|
6402
|
-
deal_id: string | null
|
|
6403
|
-
description: string | null
|
|
6404
|
-
id: string
|
|
6405
|
-
kind: string
|
|
6406
|
-
metadata: Json | null
|
|
6407
|
-
name: string
|
|
6408
|
-
organization_id: string
|
|
6409
|
-
start_date: string | null
|
|
6410
|
-
status: string
|
|
6411
|
-
target_end_date: string | null
|
|
6412
|
-
updated_at: string
|
|
6413
|
-
}
|
|
6414
|
-
Insert: {
|
|
6415
|
-
actual_end_date?: string | null
|
|
6416
|
-
client_company_id?: string | null
|
|
6417
|
-
contract_value?: number | null
|
|
6418
|
-
created_at?: string
|
|
6419
|
-
deal_id?: string | null
|
|
6420
|
-
description?: string | null
|
|
6421
|
-
id?: string
|
|
6422
|
-
kind?: string
|
|
6423
|
-
metadata?: Json | null
|
|
6424
|
-
name: string
|
|
6425
|
-
organization_id: string
|
|
6426
|
-
start_date?: string | null
|
|
6427
|
-
status?: string
|
|
6428
|
-
target_end_date?: string | null
|
|
6429
|
-
updated_at?: string
|
|
6430
|
-
}
|
|
6431
|
-
Update: {
|
|
6432
|
-
actual_end_date?: string | null
|
|
6433
|
-
client_company_id?: string | null
|
|
6434
|
-
contract_value?: number | null
|
|
6435
|
-
created_at?: string
|
|
6436
|
-
deal_id?: string | null
|
|
6437
|
-
description?: string | null
|
|
6438
|
-
id?: string
|
|
6439
|
-
kind?: string
|
|
6440
|
-
metadata?: Json | null
|
|
6441
|
-
name?: string
|
|
6442
|
-
organization_id?: string
|
|
6443
|
-
start_date?: string | null
|
|
6444
|
-
status?: string
|
|
6445
|
-
target_end_date?: string | null
|
|
6446
|
-
updated_at?: string
|
|
6447
|
-
}
|
|
6448
|
-
Relationships: [
|
|
6449
|
-
{
|
|
6450
|
-
foreignKeyName: "fk_projects_company"
|
|
6451
|
-
columns: ["client_company_id"]
|
|
6452
|
-
isOneToOne: false
|
|
6453
|
-
referencedRelation: "acq_companies"
|
|
6454
|
-
referencedColumns: ["id"]
|
|
6455
|
-
},
|
|
6456
|
-
{
|
|
6457
|
-
foreignKeyName: "fk_projects_deal"
|
|
6458
|
-
columns: ["deal_id"]
|
|
6459
|
-
isOneToOne: false
|
|
6460
|
-
referencedRelation: "acq_deals"
|
|
6461
|
-
referencedColumns: ["id"]
|
|
6462
|
-
},
|
|
6463
|
-
{
|
|
6464
|
-
foreignKeyName: "prj_projects_client_company_id_fkey"
|
|
6465
|
-
columns: ["client_company_id"]
|
|
6466
|
-
isOneToOne: false
|
|
6467
|
-
referencedRelation: "acq_companies"
|
|
6468
|
-
referencedColumns: ["id"]
|
|
6469
|
-
},
|
|
6470
|
-
{
|
|
6471
|
-
foreignKeyName: "prj_projects_deal_id_fkey"
|
|
6472
|
-
columns: ["deal_id"]
|
|
6473
|
-
isOneToOne: false
|
|
6474
|
-
referencedRelation: "acq_deals"
|
|
6475
|
-
referencedColumns: ["id"]
|
|
6476
|
-
},
|
|
6477
|
-
{
|
|
6478
|
-
foreignKeyName: "prj_projects_organization_id_fkey"
|
|
6479
|
-
columns: ["organization_id"]
|
|
6480
|
-
isOneToOne: false
|
|
6481
|
-
referencedRelation: "organizations"
|
|
6482
|
-
referencedColumns: ["id"]
|
|
6483
|
-
},
|
|
6484
|
-
]
|
|
6485
|
-
}
|
|
6486
|
-
prj_tasks: {
|
|
6487
|
-
Row: {
|
|
6488
|
-
checklist: Json
|
|
6489
|
-
completed_at: string | null
|
|
6490
|
-
created_at: string
|
|
6491
|
-
description: string | null
|
|
6492
|
-
due_date: string | null
|
|
6493
|
-
file_url: string | null
|
|
6494
|
-
id: string
|
|
6495
|
-
metadata: Json | null
|
|
6496
|
-
milestone_id: string | null
|
|
6497
|
-
name: string
|
|
6498
|
-
organization_id: string
|
|
6499
|
-
parent_task_id: string | null
|
|
6500
|
-
project_id: string
|
|
6501
|
-
resume_context: Json | null
|
|
6502
|
-
status: string
|
|
6503
|
-
type: string
|
|
6504
|
-
updated_at: string
|
|
6505
|
-
}
|
|
6506
|
-
Insert: {
|
|
6507
|
-
checklist?: Json
|
|
6508
|
-
completed_at?: string | null
|
|
6509
|
-
created_at?: string
|
|
6510
|
-
description?: string | null
|
|
6511
|
-
due_date?: string | null
|
|
6512
|
-
file_url?: string | null
|
|
6513
|
-
id?: string
|
|
6514
|
-
metadata?: Json | null
|
|
6515
|
-
milestone_id?: string | null
|
|
6516
|
-
name: string
|
|
6517
|
-
organization_id: string
|
|
6518
|
-
parent_task_id?: string | null
|
|
6519
|
-
project_id: string
|
|
6520
|
-
resume_context?: Json | null
|
|
6521
|
-
status?: string
|
|
6522
|
-
type?: string
|
|
6523
|
-
updated_at?: string
|
|
6524
|
-
}
|
|
6525
|
-
Update: {
|
|
6526
|
-
checklist?: Json
|
|
6527
|
-
completed_at?: string | null
|
|
6528
|
-
created_at?: string
|
|
6529
|
-
description?: string | null
|
|
6530
|
-
due_date?: string | null
|
|
6531
|
-
file_url?: string | null
|
|
6532
|
-
id?: string
|
|
6533
|
-
metadata?: Json | null
|
|
6534
|
-
milestone_id?: string | null
|
|
6535
|
-
name?: string
|
|
6536
|
-
organization_id?: string
|
|
6537
|
-
parent_task_id?: string | null
|
|
6538
|
-
project_id?: string
|
|
6539
|
-
resume_context?: Json | null
|
|
6540
|
-
status?: string
|
|
6541
|
-
type?: string
|
|
6542
|
-
updated_at?: string
|
|
6543
|
-
}
|
|
6544
|
-
Relationships: [
|
|
6545
|
-
{
|
|
6546
|
-
foreignKeyName: "fk_tasks_milestone"
|
|
6547
|
-
columns: ["milestone_id"]
|
|
6548
|
-
isOneToOne: false
|
|
6549
|
-
referencedRelation: "prj_milestones"
|
|
6550
|
-
referencedColumns: ["id"]
|
|
6551
|
-
},
|
|
6552
|
-
{
|
|
6553
|
-
foreignKeyName: "fk_tasks_parent"
|
|
6554
|
-
columns: ["parent_task_id"]
|
|
6555
|
-
isOneToOne: false
|
|
6556
|
-
referencedRelation: "prj_tasks"
|
|
6557
|
-
referencedColumns: ["id"]
|
|
6558
|
-
},
|
|
6559
|
-
{
|
|
6560
|
-
foreignKeyName: "fk_tasks_project"
|
|
6561
|
-
columns: ["project_id"]
|
|
6562
|
-
isOneToOne: false
|
|
6563
|
-
referencedRelation: "prj_projects"
|
|
6564
|
-
referencedColumns: ["id"]
|
|
6565
|
-
},
|
|
6566
|
-
{
|
|
6567
|
-
foreignKeyName: "prj_tasks_milestone_id_fkey"
|
|
6568
|
-
columns: ["milestone_id"]
|
|
6569
|
-
isOneToOne: false
|
|
6570
|
-
referencedRelation: "prj_milestones"
|
|
6571
|
-
referencedColumns: ["id"]
|
|
6572
|
-
},
|
|
6573
|
-
{
|
|
6574
|
-
foreignKeyName: "prj_tasks_organization_id_fkey"
|
|
6575
|
-
columns: ["organization_id"]
|
|
6576
|
-
isOneToOne: false
|
|
6577
|
-
referencedRelation: "organizations"
|
|
6578
|
-
referencedColumns: ["id"]
|
|
6579
|
-
},
|
|
6580
|
-
{
|
|
6581
|
-
foreignKeyName: "prj_tasks_parent_task_id_fkey"
|
|
6582
|
-
columns: ["parent_task_id"]
|
|
6583
|
-
isOneToOne: false
|
|
6584
|
-
referencedRelation: "prj_tasks"
|
|
6585
|
-
referencedColumns: ["id"]
|
|
6586
|
-
},
|
|
6587
|
-
{
|
|
6588
|
-
foreignKeyName: "prj_tasks_project_id_fkey"
|
|
6589
|
-
columns: ["project_id"]
|
|
6590
|
-
isOneToOne: false
|
|
6591
|
-
referencedRelation: "prj_projects"
|
|
6592
|
-
referencedColumns: ["id"]
|
|
6593
|
-
},
|
|
6594
|
-
]
|
|
6595
|
-
}
|
|
6596
|
-
reported_requests: {
|
|
6597
|
-
Row: {
|
|
6598
|
-
affected_page: string | null
|
|
6599
|
-
category: string
|
|
6600
|
-
context: Json | null
|
|
6601
|
-
created_at: string
|
|
6602
|
-
description: string
|
|
6603
|
-
evidence: Json | null
|
|
6604
|
-
id: string
|
|
6605
|
-
organization_id: string
|
|
6606
|
-
project_id: string | null
|
|
6607
|
-
reported_at: string
|
|
6608
|
-
reporter_id: string | null
|
|
6609
|
-
resolved_at: string | null
|
|
6610
|
-
severity: string
|
|
6611
|
-
source: string
|
|
6612
|
-
status: string
|
|
6613
|
-
task_id: string | null
|
|
6614
|
-
title: string
|
|
6615
|
-
type: string
|
|
6616
|
-
updated_at: string
|
|
6617
|
-
}
|
|
6618
|
-
Insert: {
|
|
6619
|
-
affected_page?: string | null
|
|
6620
|
-
category: string
|
|
6621
|
-
context?: Json | null
|
|
6622
|
-
created_at?: string
|
|
6623
|
-
description: string
|
|
6624
|
-
evidence?: Json | null
|
|
6625
|
-
id?: string
|
|
6626
|
-
organization_id: string
|
|
6627
|
-
project_id?: string | null
|
|
6628
|
-
reported_at?: string
|
|
6629
|
-
reporter_id?: string | null
|
|
6630
|
-
resolved_at?: string | null
|
|
6631
|
-
severity: string
|
|
6632
|
-
source: string
|
|
6633
|
-
status?: string
|
|
6634
|
-
task_id?: string | null
|
|
6635
|
-
title: string
|
|
6636
|
-
type: string
|
|
6637
|
-
updated_at?: string
|
|
6638
|
-
}
|
|
6639
|
-
Update: {
|
|
6640
|
-
affected_page?: string | null
|
|
6641
|
-
category?: string
|
|
6642
|
-
context?: Json | null
|
|
6643
|
-
created_at?: string
|
|
6644
|
-
description?: string
|
|
6645
|
-
evidence?: Json | null
|
|
6646
|
-
id?: string
|
|
6647
|
-
organization_id?: string
|
|
6648
|
-
project_id?: string | null
|
|
6649
|
-
reported_at?: string
|
|
6650
|
-
reporter_id?: string | null
|
|
6651
|
-
resolved_at?: string | null
|
|
6652
|
-
severity?: string
|
|
6653
|
-
source?: string
|
|
6654
|
-
status?: string
|
|
6655
|
-
task_id?: string | null
|
|
6656
|
-
title?: string
|
|
6657
|
-
type?: string
|
|
6658
|
-
updated_at?: string
|
|
6659
|
-
}
|
|
6660
|
-
Relationships: [
|
|
6661
|
-
{
|
|
6662
|
-
foreignKeyName: "reported_requests_organization_id_fkey"
|
|
6663
|
-
columns: ["organization_id"]
|
|
6664
|
-
isOneToOne: false
|
|
6665
|
-
referencedRelation: "organizations"
|
|
6666
|
-
referencedColumns: ["id"]
|
|
6667
|
-
},
|
|
6668
|
-
{
|
|
6669
|
-
foreignKeyName: "reported_requests_project_id_fkey"
|
|
6670
|
-
columns: ["project_id"]
|
|
6671
|
-
isOneToOne: false
|
|
6672
|
-
referencedRelation: "prj_projects"
|
|
6673
|
-
referencedColumns: ["id"]
|
|
6674
|
-
},
|
|
6675
|
-
{
|
|
6676
|
-
foreignKeyName: "reported_requests_task_id_fkey"
|
|
6677
|
-
columns: ["task_id"]
|
|
6678
|
-
isOneToOne: false
|
|
6679
|
-
referencedRelation: "prj_tasks"
|
|
6680
|
-
referencedColumns: ["id"]
|
|
6681
|
-
},
|
|
6682
|
-
]
|
|
6683
|
-
}
|
|
6684
|
-
session_messages: {
|
|
6685
|
-
Row: {
|
|
6686
|
-
created_at: string | null
|
|
6687
|
-
id: string
|
|
6688
|
-
message: string
|
|
6689
|
-
message_index: number | null
|
|
6690
|
-
message_type: string | null
|
|
6691
|
-
metadata: Json | null
|
|
6692
|
-
role: string
|
|
6693
|
-
session_id: string
|
|
6694
|
-
session_turn_number: number
|
|
6695
|
-
}
|
|
6696
|
-
Insert: {
|
|
6697
|
-
created_at?: string | null
|
|
6698
|
-
id: string
|
|
6699
|
-
message: string
|
|
6700
|
-
message_index?: number | null
|
|
6701
|
-
message_type?: string | null
|
|
6702
|
-
metadata?: Json | null
|
|
6703
|
-
role: string
|
|
6704
|
-
session_id: string
|
|
6705
|
-
session_turn_number: number
|
|
6706
|
-
}
|
|
6707
|
-
Update: {
|
|
6708
|
-
created_at?: string | null
|
|
6709
|
-
id?: string
|
|
6710
|
-
message?: string
|
|
6711
|
-
message_index?: number | null
|
|
6712
|
-
message_type?: string | null
|
|
6713
|
-
metadata?: Json | null
|
|
6714
|
-
role?: string
|
|
6715
|
-
session_id?: string
|
|
6716
|
-
session_turn_number?: number
|
|
6717
|
-
}
|
|
6718
|
-
Relationships: [
|
|
6719
|
-
{
|
|
6720
|
-
foreignKeyName: "session_messages_session_id_fkey"
|
|
6721
|
-
columns: ["session_id"]
|
|
6722
|
-
isOneToOne: false
|
|
6723
|
-
referencedRelation: "sessions"
|
|
6724
|
-
referencedColumns: ["session_id"]
|
|
6725
|
-
},
|
|
6726
|
-
]
|
|
6727
|
-
}
|
|
6728
|
-
sessions: {
|
|
6729
|
-
Row: {
|
|
6730
|
-
context_window_size: number
|
|
6731
|
-
created_at: string | null
|
|
6732
|
-
cumulative_input_tokens: number
|
|
6733
|
-
cumulative_output_tokens: number
|
|
6734
|
-
deleted_at: string | null
|
|
6735
|
-
ended_at: string | null
|
|
6736
|
-
memory_snapshot: Json
|
|
6737
|
-
metadata: Json | null
|
|
6738
|
-
organization_id: string
|
|
6739
|
-
resource_id: string
|
|
6740
|
-
session_id: string
|
|
6741
|
-
session_total_turns: number | null
|
|
6742
|
-
updated_at: string | null
|
|
6743
|
-
user_id: string | null
|
|
6744
|
-
}
|
|
6745
|
-
Insert: {
|
|
6746
|
-
context_window_size?: number
|
|
6747
|
-
created_at?: string | null
|
|
6748
|
-
cumulative_input_tokens?: number
|
|
6749
|
-
cumulative_output_tokens?: number
|
|
6750
|
-
deleted_at?: string | null
|
|
6751
|
-
ended_at?: string | null
|
|
6752
|
-
memory_snapshot: Json
|
|
6753
|
-
metadata?: Json | null
|
|
6754
|
-
organization_id: string
|
|
6755
|
-
resource_id: string
|
|
6756
|
-
session_id?: string
|
|
6757
|
-
session_total_turns?: number | null
|
|
6758
|
-
updated_at?: string | null
|
|
6759
|
-
user_id?: string | null
|
|
6760
|
-
}
|
|
6761
|
-
Update: {
|
|
6762
|
-
context_window_size?: number
|
|
6763
|
-
created_at?: string | null
|
|
6764
|
-
cumulative_input_tokens?: number
|
|
6765
|
-
cumulative_output_tokens?: number
|
|
6766
|
-
deleted_at?: string | null
|
|
6767
|
-
ended_at?: string | null
|
|
6768
|
-
memory_snapshot?: Json
|
|
6769
|
-
metadata?: Json | null
|
|
6770
|
-
organization_id?: string
|
|
6771
|
-
resource_id?: string
|
|
6772
|
-
session_id?: string
|
|
6773
|
-
session_total_turns?: number | null
|
|
6774
|
-
updated_at?: string | null
|
|
6775
|
-
user_id?: string | null
|
|
6776
|
-
}
|
|
6777
|
-
Relationships: [
|
|
6778
|
-
{
|
|
6779
|
-
foreignKeyName: "fk_organization"
|
|
6780
|
-
columns: ["organization_id"]
|
|
6781
|
-
isOneToOne: false
|
|
6782
|
-
referencedRelation: "organizations"
|
|
6783
|
-
referencedColumns: ["id"]
|
|
6784
|
-
},
|
|
6785
|
-
{
|
|
6786
|
-
foreignKeyName: "fk_user"
|
|
6787
|
-
columns: ["user_id"]
|
|
6788
|
-
isOneToOne: false
|
|
6789
|
-
referencedRelation: "users"
|
|
6790
|
-
referencedColumns: ["id"]
|
|
6791
|
-
},
|
|
6792
|
-
]
|
|
6793
|
-
}
|
|
6794
|
-
task_schedules: {
|
|
6795
|
-
Row: {
|
|
6796
|
-
created_at: string
|
|
6797
|
-
current_step: number
|
|
6798
|
-
description: string | null
|
|
6799
|
-
id: string
|
|
6800
|
-
idempotency_key: string | null
|
|
6801
|
-
last_execution_id: string | null
|
|
6802
|
-
last_run_at: string | null
|
|
6803
|
-
max_retries: number
|
|
6804
|
-
metadata: Json | null
|
|
6805
|
-
name: string
|
|
6806
|
-
next_run_at: string | null
|
|
6807
|
-
organization_id: string
|
|
6808
|
-
origin_execution_id: string | null
|
|
6809
|
-
origin_resource_id: string | null
|
|
6810
|
-
origin_resource_type: string | null
|
|
6811
|
-
retry_count: number
|
|
6812
|
-
schedule_config: Json
|
|
6813
|
-
status: string
|
|
6814
|
-
target_resource_id: string
|
|
6815
|
-
target_resource_type: string
|
|
6816
|
-
updated_at: string
|
|
6817
|
-
}
|
|
6818
|
-
Insert: {
|
|
6819
|
-
created_at?: string
|
|
6820
|
-
current_step?: number
|
|
6821
|
-
description?: string | null
|
|
6822
|
-
id?: string
|
|
6823
|
-
idempotency_key?: string | null
|
|
6824
|
-
last_execution_id?: string | null
|
|
6825
|
-
last_run_at?: string | null
|
|
6826
|
-
max_retries?: number
|
|
6827
|
-
metadata?: Json | null
|
|
6828
|
-
name: string
|
|
6829
|
-
next_run_at?: string | null
|
|
6830
|
-
organization_id: string
|
|
6831
|
-
origin_execution_id?: string | null
|
|
6832
|
-
origin_resource_id?: string | null
|
|
6833
|
-
origin_resource_type?: string | null
|
|
6834
|
-
retry_count?: number
|
|
6835
|
-
schedule_config: Json
|
|
6836
|
-
status?: string
|
|
6837
|
-
target_resource_id: string
|
|
6838
|
-
target_resource_type: string
|
|
6839
|
-
updated_at?: string
|
|
6840
|
-
}
|
|
6841
|
-
Update: {
|
|
6842
|
-
created_at?: string
|
|
6843
|
-
current_step?: number
|
|
6844
|
-
description?: string | null
|
|
6845
|
-
id?: string
|
|
6846
|
-
idempotency_key?: string | null
|
|
6847
|
-
last_execution_id?: string | null
|
|
6848
|
-
last_run_at?: string | null
|
|
6849
|
-
max_retries?: number
|
|
6850
|
-
metadata?: Json | null
|
|
6851
|
-
name?: string
|
|
6852
|
-
next_run_at?: string | null
|
|
6853
|
-
organization_id?: string
|
|
6854
|
-
origin_execution_id?: string | null
|
|
6855
|
-
origin_resource_id?: string | null
|
|
6856
|
-
origin_resource_type?: string | null
|
|
6857
|
-
retry_count?: number
|
|
6858
|
-
schedule_config?: Json
|
|
6859
|
-
status?: string
|
|
6860
|
-
target_resource_id?: string
|
|
6861
|
-
target_resource_type?: string
|
|
6862
|
-
updated_at?: string
|
|
6863
|
-
}
|
|
6864
|
-
Relationships: [
|
|
6865
|
-
{
|
|
6866
|
-
foreignKeyName: "task_schedules_organization_id_fkey"
|
|
6867
|
-
columns: ["organization_id"]
|
|
6868
|
-
isOneToOne: false
|
|
6869
|
-
referencedRelation: "organizations"
|
|
6870
|
-
referencedColumns: ["id"]
|
|
6871
|
-
},
|
|
6872
|
-
]
|
|
6873
|
-
}
|
|
6874
|
-
users: {
|
|
6875
|
-
Row: {
|
|
6876
|
-
config: Json
|
|
6877
|
-
created_at: string
|
|
6878
|
-
display_name: string | null
|
|
6879
|
-
email: string
|
|
6880
|
-
first_name: string | null
|
|
6881
|
-
id: string
|
|
6882
|
-
is_active: boolean
|
|
6883
|
-
is_platform_admin: boolean | null
|
|
6884
|
-
last_login_at: string | null
|
|
6885
|
-
last_name: string | null
|
|
6886
|
-
last_visited_org: string | null
|
|
6887
|
-
profile_picture_url: string | null
|
|
6888
|
-
updated_at: string
|
|
6889
|
-
workos_user_id: string | null
|
|
6890
|
-
}
|
|
6891
|
-
Insert: {
|
|
6892
|
-
config?: Json
|
|
6893
|
-
created_at?: string
|
|
6894
|
-
display_name?: string | null
|
|
6895
|
-
email: string
|
|
6896
|
-
first_name?: string | null
|
|
6897
|
-
id?: string
|
|
6898
|
-
is_active?: boolean
|
|
6899
|
-
is_platform_admin?: boolean | null
|
|
6900
|
-
last_login_at?: string | null
|
|
6901
|
-
last_name?: string | null
|
|
6902
|
-
last_visited_org?: string | null
|
|
6903
|
-
profile_picture_url?: string | null
|
|
6904
|
-
updated_at?: string
|
|
6905
|
-
workos_user_id?: string | null
|
|
6906
|
-
}
|
|
6907
|
-
Update: {
|
|
6908
|
-
config?: Json
|
|
6909
|
-
created_at?: string
|
|
6910
|
-
display_name?: string | null
|
|
6911
|
-
email?: string
|
|
6912
|
-
first_name?: string | null
|
|
6913
|
-
id?: string
|
|
6914
|
-
is_active?: boolean
|
|
6915
|
-
is_platform_admin?: boolean | null
|
|
6916
|
-
last_login_at?: string | null
|
|
6917
|
-
last_name?: string | null
|
|
6918
|
-
last_visited_org?: string | null
|
|
6919
|
-
profile_picture_url?: string | null
|
|
6920
|
-
updated_at?: string
|
|
6921
|
-
workos_user_id?: string | null
|
|
6922
|
-
}
|
|
6923
|
-
Relationships: [
|
|
6924
|
-
{
|
|
6925
|
-
foreignKeyName: "user_profiles_last_visited_org_fkey"
|
|
6926
|
-
columns: ["last_visited_org"]
|
|
6927
|
-
isOneToOne: false
|
|
6928
|
-
referencedRelation: "organizations"
|
|
6929
|
-
referencedColumns: ["id"]
|
|
6930
|
-
},
|
|
6931
|
-
]
|
|
6932
|
-
}
|
|
6933
|
-
webhook_endpoints: {
|
|
6934
|
-
Row: {
|
|
6935
|
-
created_at: string
|
|
6936
|
-
description: string | null
|
|
6937
|
-
id: string
|
|
6938
|
-
key: string
|
|
6939
|
-
last_triggered_at: string | null
|
|
6940
|
-
name: string
|
|
6941
|
-
organization_id: string
|
|
6942
|
-
request_count: number
|
|
6943
|
-
resource_id: string | null
|
|
6944
|
-
status: string
|
|
6945
|
-
updated_at: string
|
|
6946
|
-
}
|
|
6947
|
-
Insert: {
|
|
6948
|
-
created_at?: string
|
|
6949
|
-
description?: string | null
|
|
6950
|
-
id?: string
|
|
6951
|
-
key: string
|
|
6952
|
-
last_triggered_at?: string | null
|
|
6953
|
-
name: string
|
|
6954
|
-
organization_id: string
|
|
6955
|
-
request_count?: number
|
|
6956
|
-
resource_id?: string | null
|
|
6957
|
-
status?: string
|
|
6958
|
-
updated_at?: string
|
|
6959
|
-
}
|
|
6960
|
-
Update: {
|
|
6961
|
-
created_at?: string
|
|
6962
|
-
description?: string | null
|
|
6963
|
-
id?: string
|
|
6964
|
-
key?: string
|
|
6965
|
-
last_triggered_at?: string | null
|
|
6966
|
-
name?: string
|
|
6967
|
-
organization_id?: string
|
|
6968
|
-
request_count?: number
|
|
6969
|
-
resource_id?: string | null
|
|
6970
|
-
status?: string
|
|
6971
|
-
updated_at?: string
|
|
6972
|
-
}
|
|
6973
|
-
Relationships: [
|
|
6974
|
-
{
|
|
6975
|
-
foreignKeyName: "webhook_endpoints_organization_id_fkey"
|
|
6976
|
-
columns: ["organization_id"]
|
|
6977
|
-
isOneToOne: false
|
|
6978
|
-
referencedRelation: "organizations"
|
|
6979
|
-
referencedColumns: ["id"]
|
|
6980
|
-
},
|
|
6981
|
-
]
|
|
6982
|
-
}
|
|
6983
|
-
}
|
|
6984
|
-
Views: {
|
|
6985
|
-
[_ in never]: never
|
|
6986
|
-
}
|
|
6987
|
-
Functions: {
|
|
6988
|
-
acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
|
|
6989
|
-
append_deal_activity: {
|
|
6990
|
-
Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
|
|
6991
|
-
Returns: undefined
|
|
6992
|
-
}
|
|
6993
|
-
auth_jwt_claims: { Args: never; Returns: Json }
|
|
6994
|
-
auth_uid_safe: { Args: never; Returns: string }
|
|
6995
|
-
current_user_is_platform_admin: { Args: never; Returns: boolean }
|
|
6996
|
-
current_user_supabase_id: { Args: never; Returns: string }
|
|
6997
|
-
detect_stalled_executions: { Args: never; Returns: undefined }
|
|
6998
|
-
execute_session_turn: {
|
|
6999
|
-
Args: { p_session_id: string }
|
|
7000
|
-
Returns: {
|
|
7001
|
-
created_at: string
|
|
7002
|
-
ended_at: string
|
|
7003
|
-
memory_snapshot: Json
|
|
7004
|
-
metadata: Json
|
|
7005
|
-
organization_id: string
|
|
7006
|
-
resource_id: string
|
|
7007
|
-
session_id: string
|
|
7008
|
-
session_total_turns: number
|
|
7009
|
-
updated_at: string
|
|
7010
|
-
user_id: string
|
|
7011
|
-
}[]
|
|
7012
|
-
}
|
|
7013
|
-
get_storage_org_id: { Args: { file_path: string }; Returns: string }
|
|
7014
|
-
get_workos_user_id: { Args: never; Returns: string }
|
|
7015
|
-
is_org_admin: { Args: { org_id: string }; Returns: boolean }
|
|
7016
|
-
is_org_member: { Args: { org_id: string }; Returns: boolean }
|
|
7017
|
-
link_workos_membership_on_accept: {
|
|
7018
|
-
Args: {
|
|
7019
|
-
p_email: string
|
|
7020
|
-
p_organization_id: string
|
|
7021
|
-
p_workos_membership_id: string
|
|
7022
|
-
}
|
|
7023
|
-
Returns: boolean
|
|
7024
|
-
}
|
|
7025
|
-
pre_provision_invited_user: {
|
|
7026
|
-
Args: {
|
|
7027
|
-
p_email: string
|
|
7028
|
-
p_organization_id: string
|
|
7029
|
-
p_role_slug?: string
|
|
7030
|
-
}
|
|
7031
|
-
Returns: Json
|
|
7032
|
-
}
|
|
7033
|
-
process_due_schedules: { Args: never; Returns: Json }
|
|
7034
|
-
upsert_user_profile: {
|
|
7035
|
-
Args: never
|
|
7036
|
-
Returns: {
|
|
7037
|
-
profile_display_name: string
|
|
7038
|
-
profile_email: string
|
|
7039
|
-
profile_id: string
|
|
7040
|
-
profile_workos_user_id: string
|
|
7041
|
-
}[]
|
|
7042
|
-
}
|
|
7043
|
-
}
|
|
7044
|
-
Enums: {
|
|
7045
|
-
[_ in never]: never
|
|
7046
|
-
}
|
|
7047
|
-
CompositeTypes: {
|
|
7048
|
-
[_ in never]: never
|
|
7049
|
-
}
|
|
7050
|
-
}
|
|
7051
|
-
}
|
|
7052
|
-
|
|
7053
|
-
type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
|
|
7054
|
-
|
|
4456
|
+
type Json =
|
|
4457
|
+
| string
|
|
4458
|
+
| number
|
|
4459
|
+
| boolean
|
|
4460
|
+
| null
|
|
4461
|
+
| { [key: string]: Json | undefined }
|
|
4462
|
+
| Json[]
|
|
4463
|
+
|
|
4464
|
+
type Database = {
|
|
4465
|
+
// Allows to automatically instantiate createClient with right options
|
|
4466
|
+
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
4467
|
+
__InternalSupabase: {
|
|
4468
|
+
PostgrestVersion: "12.2.3 (519615d)"
|
|
4469
|
+
}
|
|
4470
|
+
public: {
|
|
4471
|
+
Tables: {
|
|
4472
|
+
acq_companies: {
|
|
4473
|
+
Row: {
|
|
4474
|
+
batch_id: string | null
|
|
4475
|
+
category: string | null
|
|
4476
|
+
category_pain: string | null
|
|
4477
|
+
created_at: string
|
|
4478
|
+
domain: string | null
|
|
4479
|
+
enrichment_data: Json | null
|
|
4480
|
+
filter_reason: string | null
|
|
4481
|
+
founded_year: number | null
|
|
4482
|
+
id: string
|
|
4483
|
+
linkedin_url: string | null
|
|
4484
|
+
location_city: string | null
|
|
4485
|
+
location_state: string | null
|
|
4486
|
+
name: string
|
|
4487
|
+
num_employees: number | null
|
|
4488
|
+
organization_id: string
|
|
4489
|
+
pipeline_status: Json
|
|
4490
|
+
segment: string | null
|
|
4491
|
+
source: string | null
|
|
4492
|
+
status: string
|
|
4493
|
+
updated_at: string
|
|
4494
|
+
website: string | null
|
|
4495
|
+
}
|
|
4496
|
+
Insert: {
|
|
4497
|
+
batch_id?: string | null
|
|
4498
|
+
category?: string | null
|
|
4499
|
+
category_pain?: string | null
|
|
4500
|
+
created_at?: string
|
|
4501
|
+
domain?: string | null
|
|
4502
|
+
enrichment_data?: Json | null
|
|
4503
|
+
filter_reason?: string | null
|
|
4504
|
+
founded_year?: number | null
|
|
4505
|
+
id?: string
|
|
4506
|
+
linkedin_url?: string | null
|
|
4507
|
+
location_city?: string | null
|
|
4508
|
+
location_state?: string | null
|
|
4509
|
+
name: string
|
|
4510
|
+
num_employees?: number | null
|
|
4511
|
+
organization_id: string
|
|
4512
|
+
pipeline_status?: Json
|
|
4513
|
+
segment?: string | null
|
|
4514
|
+
source?: string | null
|
|
4515
|
+
status?: string
|
|
4516
|
+
updated_at?: string
|
|
4517
|
+
website?: string | null
|
|
4518
|
+
}
|
|
4519
|
+
Update: {
|
|
4520
|
+
batch_id?: string | null
|
|
4521
|
+
category?: string | null
|
|
4522
|
+
category_pain?: string | null
|
|
4523
|
+
created_at?: string
|
|
4524
|
+
domain?: string | null
|
|
4525
|
+
enrichment_data?: Json | null
|
|
4526
|
+
filter_reason?: string | null
|
|
4527
|
+
founded_year?: number | null
|
|
4528
|
+
id?: string
|
|
4529
|
+
linkedin_url?: string | null
|
|
4530
|
+
location_city?: string | null
|
|
4531
|
+
location_state?: string | null
|
|
4532
|
+
name?: string
|
|
4533
|
+
num_employees?: number | null
|
|
4534
|
+
organization_id?: string
|
|
4535
|
+
pipeline_status?: Json
|
|
4536
|
+
segment?: string | null
|
|
4537
|
+
source?: string | null
|
|
4538
|
+
status?: string
|
|
4539
|
+
updated_at?: string
|
|
4540
|
+
website?: string | null
|
|
4541
|
+
}
|
|
4542
|
+
Relationships: [
|
|
4543
|
+
{
|
|
4544
|
+
foreignKeyName: "acq_companies_organization_id_fkey"
|
|
4545
|
+
columns: ["organization_id"]
|
|
4546
|
+
isOneToOne: false
|
|
4547
|
+
referencedRelation: "organizations"
|
|
4548
|
+
referencedColumns: ["id"]
|
|
4549
|
+
},
|
|
4550
|
+
]
|
|
4551
|
+
}
|
|
4552
|
+
acq_contacts: {
|
|
4553
|
+
Row: {
|
|
4554
|
+
batch_id: string | null
|
|
4555
|
+
brochure_first_viewed_at: string | null
|
|
4556
|
+
brochure_view_count: number
|
|
4557
|
+
company_id: string | null
|
|
4558
|
+
created_at: string
|
|
4559
|
+
email: string
|
|
4560
|
+
email_valid: string | null
|
|
4561
|
+
enrichment_data: Json
|
|
4562
|
+
filter_reason: string | null
|
|
4563
|
+
first_name: string | null
|
|
4564
|
+
headline: string | null
|
|
4565
|
+
id: string
|
|
4566
|
+
last_name: string | null
|
|
4567
|
+
linkedin_url: string | null
|
|
4568
|
+
nurture: boolean
|
|
4569
|
+
opening_line: string | null
|
|
4570
|
+
organization_id: string
|
|
4571
|
+
pipeline_status: Json
|
|
4572
|
+
source: string | null
|
|
4573
|
+
source_id: string | null
|
|
4574
|
+
status: string
|
|
4575
|
+
title: string | null
|
|
4576
|
+
updated_at: string
|
|
4577
|
+
}
|
|
4578
|
+
Insert: {
|
|
4579
|
+
batch_id?: string | null
|
|
4580
|
+
brochure_first_viewed_at?: string | null
|
|
4581
|
+
brochure_view_count?: number
|
|
4582
|
+
company_id?: string | null
|
|
4583
|
+
created_at?: string
|
|
4584
|
+
email: string
|
|
4585
|
+
email_valid?: string | null
|
|
4586
|
+
enrichment_data?: Json
|
|
4587
|
+
filter_reason?: string | null
|
|
4588
|
+
first_name?: string | null
|
|
4589
|
+
headline?: string | null
|
|
4590
|
+
id?: string
|
|
4591
|
+
last_name?: string | null
|
|
4592
|
+
linkedin_url?: string | null
|
|
4593
|
+
nurture?: boolean
|
|
4594
|
+
opening_line?: string | null
|
|
4595
|
+
organization_id: string
|
|
4596
|
+
pipeline_status?: Json
|
|
4597
|
+
source?: string | null
|
|
4598
|
+
source_id?: string | null
|
|
4599
|
+
status?: string
|
|
4600
|
+
title?: string | null
|
|
4601
|
+
updated_at?: string
|
|
4602
|
+
}
|
|
4603
|
+
Update: {
|
|
4604
|
+
batch_id?: string | null
|
|
4605
|
+
brochure_first_viewed_at?: string | null
|
|
4606
|
+
brochure_view_count?: number
|
|
4607
|
+
company_id?: string | null
|
|
4608
|
+
created_at?: string
|
|
4609
|
+
email?: string
|
|
4610
|
+
email_valid?: string | null
|
|
4611
|
+
enrichment_data?: Json
|
|
4612
|
+
filter_reason?: string | null
|
|
4613
|
+
first_name?: string | null
|
|
4614
|
+
headline?: string | null
|
|
4615
|
+
id?: string
|
|
4616
|
+
last_name?: string | null
|
|
4617
|
+
linkedin_url?: string | null
|
|
4618
|
+
nurture?: boolean
|
|
4619
|
+
opening_line?: string | null
|
|
4620
|
+
organization_id?: string
|
|
4621
|
+
pipeline_status?: Json
|
|
4622
|
+
source?: string | null
|
|
4623
|
+
source_id?: string | null
|
|
4624
|
+
status?: string
|
|
4625
|
+
title?: string | null
|
|
4626
|
+
updated_at?: string
|
|
4627
|
+
}
|
|
4628
|
+
Relationships: [
|
|
4629
|
+
{
|
|
4630
|
+
foreignKeyName: "acq_contacts_company_id_fkey"
|
|
4631
|
+
columns: ["company_id"]
|
|
4632
|
+
isOneToOne: false
|
|
4633
|
+
referencedRelation: "acq_companies"
|
|
4634
|
+
referencedColumns: ["id"]
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
foreignKeyName: "acq_contacts_organization_id_fkey"
|
|
4638
|
+
columns: ["organization_id"]
|
|
4639
|
+
isOneToOne: false
|
|
4640
|
+
referencedRelation: "organizations"
|
|
4641
|
+
referencedColumns: ["id"]
|
|
4642
|
+
},
|
|
4643
|
+
]
|
|
4644
|
+
}
|
|
4645
|
+
acq_content: {
|
|
4646
|
+
Row: {
|
|
4647
|
+
body: string | null
|
|
4648
|
+
created_at: string
|
|
4649
|
+
id: string
|
|
4650
|
+
organization_id: string
|
|
4651
|
+
pillar: string
|
|
4652
|
+
status: string
|
|
4653
|
+
title: string
|
|
4654
|
+
updated_at: string
|
|
4655
|
+
}
|
|
4656
|
+
Insert: {
|
|
4657
|
+
body?: string | null
|
|
4658
|
+
created_at?: string
|
|
4659
|
+
id?: string
|
|
4660
|
+
organization_id: string
|
|
4661
|
+
pillar: string
|
|
4662
|
+
status?: string
|
|
4663
|
+
title: string
|
|
4664
|
+
updated_at?: string
|
|
4665
|
+
}
|
|
4666
|
+
Update: {
|
|
4667
|
+
body?: string | null
|
|
4668
|
+
created_at?: string
|
|
4669
|
+
id?: string
|
|
4670
|
+
organization_id?: string
|
|
4671
|
+
pillar?: string
|
|
4672
|
+
status?: string
|
|
4673
|
+
title?: string
|
|
4674
|
+
updated_at?: string
|
|
4675
|
+
}
|
|
4676
|
+
Relationships: [
|
|
4677
|
+
{
|
|
4678
|
+
foreignKeyName: "acq_content_organization_id_fkey"
|
|
4679
|
+
columns: ["organization_id"]
|
|
4680
|
+
isOneToOne: false
|
|
4681
|
+
referencedRelation: "organizations"
|
|
4682
|
+
referencedColumns: ["id"]
|
|
4683
|
+
},
|
|
4684
|
+
]
|
|
4685
|
+
}
|
|
4686
|
+
acq_content_distributions: {
|
|
4687
|
+
Row: {
|
|
4688
|
+
adapted_body: string | null
|
|
4689
|
+
checklist: Json | null
|
|
4690
|
+
content_id: string
|
|
4691
|
+
created_at: string
|
|
4692
|
+
format: string
|
|
4693
|
+
id: string
|
|
4694
|
+
media_urls: Json
|
|
4695
|
+
metrics: Json
|
|
4696
|
+
metrics_updated_at: string | null
|
|
4697
|
+
organization_id: string
|
|
4698
|
+
platform: string
|
|
4699
|
+
platform_content: Json | null
|
|
4700
|
+
platform_post_id: string | null
|
|
4701
|
+
platform_url: string | null
|
|
4702
|
+
published_at: string | null
|
|
4703
|
+
status: string
|
|
4704
|
+
updated_at: string
|
|
4705
|
+
}
|
|
4706
|
+
Insert: {
|
|
4707
|
+
adapted_body?: string | null
|
|
4708
|
+
checklist?: Json | null
|
|
4709
|
+
content_id: string
|
|
4710
|
+
created_at?: string
|
|
4711
|
+
format: string
|
|
4712
|
+
id?: string
|
|
4713
|
+
media_urls?: Json
|
|
4714
|
+
metrics?: Json
|
|
4715
|
+
metrics_updated_at?: string | null
|
|
4716
|
+
organization_id: string
|
|
4717
|
+
platform: string
|
|
4718
|
+
platform_content?: Json | null
|
|
4719
|
+
platform_post_id?: string | null
|
|
4720
|
+
platform_url?: string | null
|
|
4721
|
+
published_at?: string | null
|
|
4722
|
+
status?: string
|
|
4723
|
+
updated_at?: string
|
|
4724
|
+
}
|
|
4725
|
+
Update: {
|
|
4726
|
+
adapted_body?: string | null
|
|
4727
|
+
checklist?: Json | null
|
|
4728
|
+
content_id?: string
|
|
4729
|
+
created_at?: string
|
|
4730
|
+
format?: string
|
|
4731
|
+
id?: string
|
|
4732
|
+
media_urls?: Json
|
|
4733
|
+
metrics?: Json
|
|
4734
|
+
metrics_updated_at?: string | null
|
|
4735
|
+
organization_id?: string
|
|
4736
|
+
platform?: string
|
|
4737
|
+
platform_content?: Json | null
|
|
4738
|
+
platform_post_id?: string | null
|
|
4739
|
+
platform_url?: string | null
|
|
4740
|
+
published_at?: string | null
|
|
4741
|
+
status?: string
|
|
4742
|
+
updated_at?: string
|
|
4743
|
+
}
|
|
4744
|
+
Relationships: [
|
|
4745
|
+
{
|
|
4746
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey"
|
|
4747
|
+
columns: ["content_id"]
|
|
4748
|
+
isOneToOne: false
|
|
4749
|
+
referencedRelation: "acq_content"
|
|
4750
|
+
referencedColumns: ["id"]
|
|
4751
|
+
},
|
|
4752
|
+
{
|
|
4753
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey"
|
|
4754
|
+
columns: ["organization_id"]
|
|
4755
|
+
isOneToOne: false
|
|
4756
|
+
referencedRelation: "organizations"
|
|
4757
|
+
referencedColumns: ["id"]
|
|
4758
|
+
},
|
|
4759
|
+
]
|
|
4760
|
+
}
|
|
4761
|
+
acq_deal_notes: {
|
|
4762
|
+
Row: {
|
|
4763
|
+
author_user_id: string | null
|
|
4764
|
+
body: string
|
|
4765
|
+
created_at: string
|
|
4766
|
+
deal_id: string
|
|
4767
|
+
id: string
|
|
4768
|
+
organization_id: string
|
|
4769
|
+
updated_at: string
|
|
4770
|
+
}
|
|
4771
|
+
Insert: {
|
|
4772
|
+
author_user_id?: string | null
|
|
4773
|
+
body: string
|
|
4774
|
+
created_at?: string
|
|
4775
|
+
deal_id: string
|
|
4776
|
+
id?: string
|
|
4777
|
+
organization_id: string
|
|
4778
|
+
updated_at?: string
|
|
4779
|
+
}
|
|
4780
|
+
Update: {
|
|
4781
|
+
author_user_id?: string | null
|
|
4782
|
+
body?: string
|
|
4783
|
+
created_at?: string
|
|
4784
|
+
deal_id?: string
|
|
4785
|
+
id?: string
|
|
4786
|
+
organization_id?: string
|
|
4787
|
+
updated_at?: string
|
|
4788
|
+
}
|
|
4789
|
+
Relationships: [
|
|
4790
|
+
{
|
|
4791
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey"
|
|
4792
|
+
columns: ["deal_id"]
|
|
4793
|
+
isOneToOne: false
|
|
4794
|
+
referencedRelation: "acq_deals"
|
|
4795
|
+
referencedColumns: ["id"]
|
|
4796
|
+
},
|
|
4797
|
+
{
|
|
4798
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey"
|
|
4799
|
+
columns: ["organization_id"]
|
|
4800
|
+
isOneToOne: false
|
|
4801
|
+
referencedRelation: "organizations"
|
|
4802
|
+
referencedColumns: ["id"]
|
|
4803
|
+
},
|
|
4804
|
+
]
|
|
4805
|
+
}
|
|
4806
|
+
acq_deal_tasks: {
|
|
4807
|
+
Row: {
|
|
4808
|
+
assignee_user_id: string | null
|
|
4809
|
+
completed_at: string | null
|
|
4810
|
+
completed_by_user_id: string | null
|
|
4811
|
+
created_at: string
|
|
4812
|
+
created_by_user_id: string | null
|
|
4813
|
+
deal_id: string
|
|
4814
|
+
description: string | null
|
|
4815
|
+
due_at: string | null
|
|
4816
|
+
id: string
|
|
4817
|
+
kind: string
|
|
4818
|
+
organization_id: string
|
|
4819
|
+
title: string
|
|
4820
|
+
updated_at: string
|
|
4821
|
+
}
|
|
4822
|
+
Insert: {
|
|
4823
|
+
assignee_user_id?: string | null
|
|
4824
|
+
completed_at?: string | null
|
|
4825
|
+
completed_by_user_id?: string | null
|
|
4826
|
+
created_at?: string
|
|
4827
|
+
created_by_user_id?: string | null
|
|
4828
|
+
deal_id: string
|
|
4829
|
+
description?: string | null
|
|
4830
|
+
due_at?: string | null
|
|
4831
|
+
id?: string
|
|
4832
|
+
kind?: string
|
|
4833
|
+
organization_id: string
|
|
4834
|
+
title: string
|
|
4835
|
+
updated_at?: string
|
|
4836
|
+
}
|
|
4837
|
+
Update: {
|
|
4838
|
+
assignee_user_id?: string | null
|
|
4839
|
+
completed_at?: string | null
|
|
4840
|
+
completed_by_user_id?: string | null
|
|
4841
|
+
created_at?: string
|
|
4842
|
+
created_by_user_id?: string | null
|
|
4843
|
+
deal_id?: string
|
|
4844
|
+
description?: string | null
|
|
4845
|
+
due_at?: string | null
|
|
4846
|
+
id?: string
|
|
4847
|
+
kind?: string
|
|
4848
|
+
organization_id?: string
|
|
4849
|
+
title?: string
|
|
4850
|
+
updated_at?: string
|
|
4851
|
+
}
|
|
4852
|
+
Relationships: [
|
|
4853
|
+
{
|
|
4854
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey"
|
|
4855
|
+
columns: ["deal_id"]
|
|
4856
|
+
isOneToOne: false
|
|
4857
|
+
referencedRelation: "acq_deals"
|
|
4858
|
+
referencedColumns: ["id"]
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey"
|
|
4862
|
+
columns: ["organization_id"]
|
|
4863
|
+
isOneToOne: false
|
|
4864
|
+
referencedRelation: "organizations"
|
|
4865
|
+
referencedColumns: ["id"]
|
|
4866
|
+
},
|
|
4867
|
+
]
|
|
4868
|
+
}
|
|
4869
|
+
acq_deals: {
|
|
4870
|
+
Row: {
|
|
4871
|
+
activity_log: Json
|
|
4872
|
+
cached_stage: string | null
|
|
4873
|
+
closed_lost_at: string | null
|
|
4874
|
+
closed_lost_reason: string | null
|
|
4875
|
+
contact_email: string
|
|
4876
|
+
contact_id: string | null
|
|
4877
|
+
created_at: string
|
|
4878
|
+
discovery_data: Json | null
|
|
4879
|
+
discovery_submitted_at: string | null
|
|
4880
|
+
discovery_submitted_by: string | null
|
|
4881
|
+
id: string
|
|
4882
|
+
initial_fee: number | null
|
|
4883
|
+
monthly_fee: number | null
|
|
4884
|
+
organization_id: string
|
|
4885
|
+
payment_link_sent_at: string | null
|
|
4886
|
+
payment_received_at: string | null
|
|
4887
|
+
proposal_data: Json | null
|
|
4888
|
+
proposal_generated_at: string | null
|
|
4889
|
+
proposal_pdf_url: string | null
|
|
4890
|
+
proposal_reviewed_at: string | null
|
|
4891
|
+
proposal_reviewed_by: string | null
|
|
4892
|
+
proposal_sent_at: string | null
|
|
4893
|
+
proposal_signed_at: string | null
|
|
4894
|
+
proposal_status: string | null
|
|
4895
|
+
signature_envelope_id: string | null
|
|
4896
|
+
source_list_id: string | null
|
|
4897
|
+
source_type: string | null
|
|
4898
|
+
stripe_payment_id: string | null
|
|
4899
|
+
stripe_payment_link: string | null
|
|
4900
|
+
stripe_payment_link_id: string | null
|
|
4901
|
+
stripe_subscription_id: string | null
|
|
4902
|
+
updated_at: string
|
|
4903
|
+
}
|
|
4904
|
+
Insert: {
|
|
4905
|
+
activity_log?: Json
|
|
4906
|
+
cached_stage?: string | null
|
|
4907
|
+
closed_lost_at?: string | null
|
|
4908
|
+
closed_lost_reason?: string | null
|
|
4909
|
+
contact_email: string
|
|
4910
|
+
contact_id?: string | null
|
|
4911
|
+
created_at?: string
|
|
4912
|
+
discovery_data?: Json | null
|
|
4913
|
+
discovery_submitted_at?: string | null
|
|
4914
|
+
discovery_submitted_by?: string | null
|
|
4915
|
+
id?: string
|
|
4916
|
+
initial_fee?: number | null
|
|
4917
|
+
monthly_fee?: number | null
|
|
4918
|
+
organization_id: string
|
|
4919
|
+
payment_link_sent_at?: string | null
|
|
4920
|
+
payment_received_at?: string | null
|
|
4921
|
+
proposal_data?: Json | null
|
|
4922
|
+
proposal_generated_at?: string | null
|
|
4923
|
+
proposal_pdf_url?: string | null
|
|
4924
|
+
proposal_reviewed_at?: string | null
|
|
4925
|
+
proposal_reviewed_by?: string | null
|
|
4926
|
+
proposal_sent_at?: string | null
|
|
4927
|
+
proposal_signed_at?: string | null
|
|
4928
|
+
proposal_status?: string | null
|
|
4929
|
+
signature_envelope_id?: string | null
|
|
4930
|
+
source_list_id?: string | null
|
|
4931
|
+
source_type?: string | null
|
|
4932
|
+
stripe_payment_id?: string | null
|
|
4933
|
+
stripe_payment_link?: string | null
|
|
4934
|
+
stripe_payment_link_id?: string | null
|
|
4935
|
+
stripe_subscription_id?: string | null
|
|
4936
|
+
updated_at?: string
|
|
4937
|
+
}
|
|
4938
|
+
Update: {
|
|
4939
|
+
activity_log?: Json
|
|
4940
|
+
cached_stage?: string | null
|
|
4941
|
+
closed_lost_at?: string | null
|
|
4942
|
+
closed_lost_reason?: string | null
|
|
4943
|
+
contact_email?: string
|
|
4944
|
+
contact_id?: string | null
|
|
4945
|
+
created_at?: string
|
|
4946
|
+
discovery_data?: Json | null
|
|
4947
|
+
discovery_submitted_at?: string | null
|
|
4948
|
+
discovery_submitted_by?: string | null
|
|
4949
|
+
id?: string
|
|
4950
|
+
initial_fee?: number | null
|
|
4951
|
+
monthly_fee?: number | null
|
|
4952
|
+
organization_id?: string
|
|
4953
|
+
payment_link_sent_at?: string | null
|
|
4954
|
+
payment_received_at?: string | null
|
|
4955
|
+
proposal_data?: Json | null
|
|
4956
|
+
proposal_generated_at?: string | null
|
|
4957
|
+
proposal_pdf_url?: string | null
|
|
4958
|
+
proposal_reviewed_at?: string | null
|
|
4959
|
+
proposal_reviewed_by?: string | null
|
|
4960
|
+
proposal_sent_at?: string | null
|
|
4961
|
+
proposal_signed_at?: string | null
|
|
4962
|
+
proposal_status?: string | null
|
|
4963
|
+
signature_envelope_id?: string | null
|
|
4964
|
+
source_list_id?: string | null
|
|
4965
|
+
source_type?: string | null
|
|
4966
|
+
stripe_payment_id?: string | null
|
|
4967
|
+
stripe_payment_link?: string | null
|
|
4968
|
+
stripe_payment_link_id?: string | null
|
|
4969
|
+
stripe_subscription_id?: string | null
|
|
4970
|
+
updated_at?: string
|
|
4971
|
+
}
|
|
4972
|
+
Relationships: [
|
|
4973
|
+
{
|
|
4974
|
+
foreignKeyName: "acq_deals_contact_id_fkey"
|
|
4975
|
+
columns: ["contact_id"]
|
|
4976
|
+
isOneToOne: false
|
|
4977
|
+
referencedRelation: "acq_contacts"
|
|
4978
|
+
referencedColumns: ["id"]
|
|
4979
|
+
},
|
|
4980
|
+
{
|
|
4981
|
+
foreignKeyName: "acq_deals_organization_id_fkey"
|
|
4982
|
+
columns: ["organization_id"]
|
|
4983
|
+
isOneToOne: false
|
|
4984
|
+
referencedRelation: "organizations"
|
|
4985
|
+
referencedColumns: ["id"]
|
|
4986
|
+
},
|
|
4987
|
+
{
|
|
4988
|
+
foreignKeyName: "acq_deals_source_list_id_fkey"
|
|
4989
|
+
columns: ["source_list_id"]
|
|
4990
|
+
isOneToOne: false
|
|
4991
|
+
referencedRelation: "acq_lists"
|
|
4992
|
+
referencedColumns: ["id"]
|
|
4993
|
+
},
|
|
4994
|
+
]
|
|
4995
|
+
}
|
|
4996
|
+
acq_list_companies: {
|
|
4997
|
+
Row: {
|
|
4998
|
+
added_at: string
|
|
4999
|
+
added_by: string | null
|
|
5000
|
+
company_id: string
|
|
5001
|
+
id: string
|
|
5002
|
+
list_id: string
|
|
5003
|
+
source_execution_id: string | null
|
|
5004
|
+
source_input_hash: string | null
|
|
5005
|
+
source_resource_id: string | null
|
|
5006
|
+
stage: string | null
|
|
5007
|
+
stage_updated_at: string | null
|
|
5008
|
+
}
|
|
5009
|
+
Insert: {
|
|
5010
|
+
added_at?: string
|
|
5011
|
+
added_by?: string | null
|
|
5012
|
+
company_id: string
|
|
5013
|
+
id?: string
|
|
5014
|
+
list_id: string
|
|
5015
|
+
source_execution_id?: string | null
|
|
5016
|
+
source_input_hash?: string | null
|
|
5017
|
+
source_resource_id?: string | null
|
|
5018
|
+
stage?: string | null
|
|
5019
|
+
stage_updated_at?: string | null
|
|
5020
|
+
}
|
|
5021
|
+
Update: {
|
|
5022
|
+
added_at?: string
|
|
5023
|
+
added_by?: string | null
|
|
5024
|
+
company_id?: string
|
|
5025
|
+
id?: string
|
|
5026
|
+
list_id?: string
|
|
5027
|
+
source_execution_id?: string | null
|
|
5028
|
+
source_input_hash?: string | null
|
|
5029
|
+
source_resource_id?: string | null
|
|
5030
|
+
stage?: string | null
|
|
5031
|
+
stage_updated_at?: string | null
|
|
5032
|
+
}
|
|
5033
|
+
Relationships: [
|
|
5034
|
+
{
|
|
5035
|
+
foreignKeyName: "acq_list_companies_company_id_fkey"
|
|
5036
|
+
columns: ["company_id"]
|
|
5037
|
+
isOneToOne: false
|
|
5038
|
+
referencedRelation: "acq_companies"
|
|
5039
|
+
referencedColumns: ["id"]
|
|
5040
|
+
},
|
|
5041
|
+
{
|
|
5042
|
+
foreignKeyName: "acq_list_companies_list_id_fkey"
|
|
5043
|
+
columns: ["list_id"]
|
|
5044
|
+
isOneToOne: false
|
|
5045
|
+
referencedRelation: "acq_lists"
|
|
5046
|
+
referencedColumns: ["id"]
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
foreignKeyName: "acq_list_companies_source_execution_id_fkey"
|
|
5050
|
+
columns: ["source_execution_id"]
|
|
5051
|
+
isOneToOne: false
|
|
5052
|
+
referencedRelation: "execution_logs"
|
|
5053
|
+
referencedColumns: ["execution_id"]
|
|
5054
|
+
},
|
|
5055
|
+
]
|
|
5056
|
+
}
|
|
5057
|
+
acq_list_executions: {
|
|
5058
|
+
Row: {
|
|
5059
|
+
created_at: string
|
|
5060
|
+
execution_id: string
|
|
5061
|
+
id: string
|
|
5062
|
+
list_id: string
|
|
5063
|
+
payload: Json
|
|
5064
|
+
}
|
|
5065
|
+
Insert: {
|
|
5066
|
+
created_at?: string
|
|
5067
|
+
execution_id: string
|
|
5068
|
+
id?: string
|
|
5069
|
+
list_id: string
|
|
5070
|
+
payload?: Json
|
|
5071
|
+
}
|
|
5072
|
+
Update: {
|
|
5073
|
+
created_at?: string
|
|
5074
|
+
execution_id?: string
|
|
5075
|
+
id?: string
|
|
5076
|
+
list_id?: string
|
|
5077
|
+
payload?: Json
|
|
5078
|
+
}
|
|
5079
|
+
Relationships: [
|
|
5080
|
+
{
|
|
5081
|
+
foreignKeyName: "acq_list_executions_execution_id_fkey"
|
|
5082
|
+
columns: ["execution_id"]
|
|
5083
|
+
isOneToOne: false
|
|
5084
|
+
referencedRelation: "execution_logs"
|
|
5085
|
+
referencedColumns: ["execution_id"]
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
foreignKeyName: "acq_list_executions_list_id_fkey"
|
|
5089
|
+
columns: ["list_id"]
|
|
5090
|
+
isOneToOne: false
|
|
5091
|
+
referencedRelation: "acq_lists"
|
|
5092
|
+
referencedColumns: ["id"]
|
|
5093
|
+
},
|
|
5094
|
+
]
|
|
5095
|
+
}
|
|
5096
|
+
acq_list_members: {
|
|
5097
|
+
Row: {
|
|
5098
|
+
added_at: string
|
|
5099
|
+
added_by: string | null
|
|
5100
|
+
contact_id: string
|
|
5101
|
+
id: string
|
|
5102
|
+
list_id: string
|
|
5103
|
+
source_execution_id: string | null
|
|
5104
|
+
source_input_hash: string | null
|
|
5105
|
+
source_resource_id: string | null
|
|
5106
|
+
stage: string | null
|
|
5107
|
+
stage_updated_at: string | null
|
|
5108
|
+
}
|
|
5109
|
+
Insert: {
|
|
5110
|
+
added_at?: string
|
|
5111
|
+
added_by?: string | null
|
|
5112
|
+
contact_id: string
|
|
5113
|
+
id?: string
|
|
5114
|
+
list_id: string
|
|
5115
|
+
source_execution_id?: string | null
|
|
5116
|
+
source_input_hash?: string | null
|
|
5117
|
+
source_resource_id?: string | null
|
|
5118
|
+
stage?: string | null
|
|
5119
|
+
stage_updated_at?: string | null
|
|
5120
|
+
}
|
|
5121
|
+
Update: {
|
|
5122
|
+
added_at?: string
|
|
5123
|
+
added_by?: string | null
|
|
5124
|
+
contact_id?: string
|
|
5125
|
+
id?: string
|
|
5126
|
+
list_id?: string
|
|
5127
|
+
source_execution_id?: string | null
|
|
5128
|
+
source_input_hash?: string | null
|
|
5129
|
+
source_resource_id?: string | null
|
|
5130
|
+
stage?: string | null
|
|
5131
|
+
stage_updated_at?: string | null
|
|
5132
|
+
}
|
|
5133
|
+
Relationships: [
|
|
5134
|
+
{
|
|
5135
|
+
foreignKeyName: "acq_list_members_contact_id_fkey"
|
|
5136
|
+
columns: ["contact_id"]
|
|
5137
|
+
isOneToOne: false
|
|
5138
|
+
referencedRelation: "acq_contacts"
|
|
5139
|
+
referencedColumns: ["id"]
|
|
5140
|
+
},
|
|
5141
|
+
{
|
|
5142
|
+
foreignKeyName: "acq_list_members_list_id_fkey"
|
|
5143
|
+
columns: ["list_id"]
|
|
5144
|
+
isOneToOne: false
|
|
5145
|
+
referencedRelation: "acq_lists"
|
|
5146
|
+
referencedColumns: ["id"]
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
foreignKeyName: "acq_list_members_source_execution_id_fkey"
|
|
5150
|
+
columns: ["source_execution_id"]
|
|
5151
|
+
isOneToOne: false
|
|
5152
|
+
referencedRelation: "execution_logs"
|
|
5153
|
+
referencedColumns: ["execution_id"]
|
|
5154
|
+
},
|
|
5155
|
+
]
|
|
5156
|
+
}
|
|
5157
|
+
acq_lists: {
|
|
5158
|
+
Row: {
|
|
5159
|
+
batch_ids: string[]
|
|
5160
|
+
completed_at: string | null
|
|
5161
|
+
config: Json
|
|
5162
|
+
created_at: string
|
|
5163
|
+
description: string | null
|
|
5164
|
+
id: string
|
|
5165
|
+
instantly_campaign_id: string | null
|
|
5166
|
+
launched_at: string | null
|
|
5167
|
+
metadata: Json
|
|
5168
|
+
name: string
|
|
5169
|
+
organization_id: string
|
|
5170
|
+
status: string
|
|
5171
|
+
type: string
|
|
5172
|
+
}
|
|
5173
|
+
Insert: {
|
|
5174
|
+
batch_ids?: string[]
|
|
5175
|
+
completed_at?: string | null
|
|
5176
|
+
config?: Json
|
|
5177
|
+
created_at?: string
|
|
5178
|
+
description?: string | null
|
|
5179
|
+
id?: string
|
|
5180
|
+
instantly_campaign_id?: string | null
|
|
5181
|
+
launched_at?: string | null
|
|
5182
|
+
metadata?: Json
|
|
5183
|
+
name: string
|
|
5184
|
+
organization_id: string
|
|
5185
|
+
status?: string
|
|
5186
|
+
type?: string
|
|
5187
|
+
}
|
|
5188
|
+
Update: {
|
|
5189
|
+
batch_ids?: string[]
|
|
5190
|
+
completed_at?: string | null
|
|
5191
|
+
config?: Json
|
|
5192
|
+
created_at?: string
|
|
5193
|
+
description?: string | null
|
|
5194
|
+
id?: string
|
|
5195
|
+
instantly_campaign_id?: string | null
|
|
5196
|
+
launched_at?: string | null
|
|
5197
|
+
metadata?: Json
|
|
5198
|
+
name?: string
|
|
5199
|
+
organization_id?: string
|
|
5200
|
+
status?: string
|
|
5201
|
+
type?: string
|
|
5202
|
+
}
|
|
5203
|
+
Relationships: [
|
|
5204
|
+
{
|
|
5205
|
+
foreignKeyName: "acq_lists_organization_id_fkey"
|
|
5206
|
+
columns: ["organization_id"]
|
|
5207
|
+
isOneToOne: false
|
|
5208
|
+
referencedRelation: "organizations"
|
|
5209
|
+
referencedColumns: ["id"]
|
|
5210
|
+
},
|
|
5211
|
+
]
|
|
5212
|
+
}
|
|
5213
|
+
acq_seo_metrics: {
|
|
5214
|
+
Row: {
|
|
5215
|
+
ai_citations: Json | null
|
|
5216
|
+
avg_position: number | null
|
|
5217
|
+
clicks: number | null
|
|
5218
|
+
created_at: string
|
|
5219
|
+
cta_clicks: number | null
|
|
5220
|
+
ctr: number | null
|
|
5221
|
+
data_point_count: number | null
|
|
5222
|
+
faq_count: number | null
|
|
5223
|
+
form_submissions: number | null
|
|
5224
|
+
id: string
|
|
5225
|
+
impressions: number | null
|
|
5226
|
+
organization_id: string
|
|
5227
|
+
period: string
|
|
5228
|
+
quality_score: number | null
|
|
5229
|
+
readability: number | null
|
|
5230
|
+
scroll_100: number | null
|
|
5231
|
+
scroll_25: number | null
|
|
5232
|
+
scroll_50: number | null
|
|
5233
|
+
scroll_75: number | null
|
|
5234
|
+
seo_page_id: string
|
|
5235
|
+
word_count: number | null
|
|
5236
|
+
}
|
|
5237
|
+
Insert: {
|
|
5238
|
+
ai_citations?: Json | null
|
|
5239
|
+
avg_position?: number | null
|
|
5240
|
+
clicks?: number | null
|
|
5241
|
+
created_at?: string
|
|
5242
|
+
cta_clicks?: number | null
|
|
5243
|
+
ctr?: number | null
|
|
5244
|
+
data_point_count?: number | null
|
|
5245
|
+
faq_count?: number | null
|
|
5246
|
+
form_submissions?: number | null
|
|
5247
|
+
id?: string
|
|
5248
|
+
impressions?: number | null
|
|
5249
|
+
organization_id: string
|
|
5250
|
+
period: string
|
|
5251
|
+
quality_score?: number | null
|
|
5252
|
+
readability?: number | null
|
|
5253
|
+
scroll_100?: number | null
|
|
5254
|
+
scroll_25?: number | null
|
|
5255
|
+
scroll_50?: number | null
|
|
5256
|
+
scroll_75?: number | null
|
|
5257
|
+
seo_page_id: string
|
|
5258
|
+
word_count?: number | null
|
|
5259
|
+
}
|
|
5260
|
+
Update: {
|
|
5261
|
+
ai_citations?: Json | null
|
|
5262
|
+
avg_position?: number | null
|
|
5263
|
+
clicks?: number | null
|
|
5264
|
+
created_at?: string
|
|
5265
|
+
cta_clicks?: number | null
|
|
5266
|
+
ctr?: number | null
|
|
5267
|
+
data_point_count?: number | null
|
|
5268
|
+
faq_count?: number | null
|
|
5269
|
+
form_submissions?: number | null
|
|
5270
|
+
id?: string
|
|
5271
|
+
impressions?: number | null
|
|
5272
|
+
organization_id?: string
|
|
5273
|
+
period?: string
|
|
5274
|
+
quality_score?: number | null
|
|
5275
|
+
readability?: number | null
|
|
5276
|
+
scroll_100?: number | null
|
|
5277
|
+
scroll_25?: number | null
|
|
5278
|
+
scroll_50?: number | null
|
|
5279
|
+
scroll_75?: number | null
|
|
5280
|
+
seo_page_id?: string
|
|
5281
|
+
word_count?: number | null
|
|
5282
|
+
}
|
|
5283
|
+
Relationships: [
|
|
5284
|
+
{
|
|
5285
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey"
|
|
5286
|
+
columns: ["organization_id"]
|
|
5287
|
+
isOneToOne: false
|
|
5288
|
+
referencedRelation: "organizations"
|
|
5289
|
+
referencedColumns: ["id"]
|
|
5290
|
+
},
|
|
5291
|
+
{
|
|
5292
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
|
|
5293
|
+
columns: ["seo_page_id"]
|
|
5294
|
+
isOneToOne: false
|
|
5295
|
+
referencedRelation: "acq_seo_pages"
|
|
5296
|
+
referencedColumns: ["id"]
|
|
5297
|
+
},
|
|
5298
|
+
]
|
|
5299
|
+
}
|
|
5300
|
+
acq_seo_pages: {
|
|
5301
|
+
Row: {
|
|
5302
|
+
city: string | null
|
|
5303
|
+
content: Json | null
|
|
5304
|
+
created_at: string
|
|
5305
|
+
faq_items: Json | null
|
|
5306
|
+
hero_image_url: string | null
|
|
5307
|
+
id: string
|
|
5308
|
+
internal_links: Json | null
|
|
5309
|
+
local_data: Json | null
|
|
5310
|
+
meta_description: string | null
|
|
5311
|
+
organization_id: string
|
|
5312
|
+
page_type: string
|
|
5313
|
+
published_at: string | null
|
|
5314
|
+
refreshed_at: string | null
|
|
5315
|
+
schema_markup: Json | null
|
|
5316
|
+
slug: string
|
|
5317
|
+
state: string | null
|
|
5318
|
+
status: string
|
|
5319
|
+
title: string
|
|
5320
|
+
updated_at: string
|
|
5321
|
+
use_case: string | null
|
|
5322
|
+
vertical: string
|
|
5323
|
+
}
|
|
5324
|
+
Insert: {
|
|
5325
|
+
city?: string | null
|
|
5326
|
+
content?: Json | null
|
|
5327
|
+
created_at?: string
|
|
5328
|
+
faq_items?: Json | null
|
|
5329
|
+
hero_image_url?: string | null
|
|
5330
|
+
id?: string
|
|
5331
|
+
internal_links?: Json | null
|
|
5332
|
+
local_data?: Json | null
|
|
5333
|
+
meta_description?: string | null
|
|
5334
|
+
organization_id: string
|
|
5335
|
+
page_type: string
|
|
5336
|
+
published_at?: string | null
|
|
5337
|
+
refreshed_at?: string | null
|
|
5338
|
+
schema_markup?: Json | null
|
|
5339
|
+
slug: string
|
|
5340
|
+
state?: string | null
|
|
5341
|
+
status?: string
|
|
5342
|
+
title: string
|
|
5343
|
+
updated_at?: string
|
|
5344
|
+
use_case?: string | null
|
|
5345
|
+
vertical: string
|
|
5346
|
+
}
|
|
5347
|
+
Update: {
|
|
5348
|
+
city?: string | null
|
|
5349
|
+
content?: Json | null
|
|
5350
|
+
created_at?: string
|
|
5351
|
+
faq_items?: Json | null
|
|
5352
|
+
hero_image_url?: string | null
|
|
5353
|
+
id?: string
|
|
5354
|
+
internal_links?: Json | null
|
|
5355
|
+
local_data?: Json | null
|
|
5356
|
+
meta_description?: string | null
|
|
5357
|
+
organization_id?: string
|
|
5358
|
+
page_type?: string
|
|
5359
|
+
published_at?: string | null
|
|
5360
|
+
refreshed_at?: string | null
|
|
5361
|
+
schema_markup?: Json | null
|
|
5362
|
+
slug?: string
|
|
5363
|
+
state?: string | null
|
|
5364
|
+
status?: string
|
|
5365
|
+
title?: string
|
|
5366
|
+
updated_at?: string
|
|
5367
|
+
use_case?: string | null
|
|
5368
|
+
vertical?: string
|
|
5369
|
+
}
|
|
5370
|
+
Relationships: [
|
|
5371
|
+
{
|
|
5372
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey"
|
|
5373
|
+
columns: ["organization_id"]
|
|
5374
|
+
isOneToOne: false
|
|
5375
|
+
referencedRelation: "organizations"
|
|
5376
|
+
referencedColumns: ["id"]
|
|
5377
|
+
},
|
|
5378
|
+
]
|
|
5379
|
+
}
|
|
5380
|
+
acq_social_posts: {
|
|
5381
|
+
Row: {
|
|
5382
|
+
author_name: string
|
|
5383
|
+
author_url: string | null
|
|
5384
|
+
comments_count: number
|
|
5385
|
+
created_at: string
|
|
5386
|
+
discovered_at: string
|
|
5387
|
+
engagement_count: number
|
|
5388
|
+
feedback: string | null
|
|
5389
|
+
final_response: string | null
|
|
5390
|
+
fully_reviewed: boolean
|
|
5391
|
+
id: string
|
|
5392
|
+
initial_draft: string | null
|
|
5393
|
+
matched_keywords: string[]
|
|
5394
|
+
matched_query: string | null
|
|
5395
|
+
metadata: Json
|
|
5396
|
+
organization_id: string
|
|
5397
|
+
platform: string
|
|
5398
|
+
platform_post_id: string
|
|
5399
|
+
post_text: string
|
|
5400
|
+
post_title: string
|
|
5401
|
+
post_url: string
|
|
5402
|
+
posted_at: string
|
|
5403
|
+
relevance_score: number
|
|
5404
|
+
responded_at: string | null
|
|
5405
|
+
reviewed_at: string | null
|
|
5406
|
+
skip_reason: string | null
|
|
5407
|
+
source_category: string | null
|
|
5408
|
+
status: string
|
|
5409
|
+
updated_at: string
|
|
5410
|
+
}
|
|
5411
|
+
Insert: {
|
|
5412
|
+
author_name: string
|
|
5413
|
+
author_url?: string | null
|
|
5414
|
+
comments_count?: number
|
|
5415
|
+
created_at?: string
|
|
5416
|
+
discovered_at?: string
|
|
5417
|
+
engagement_count?: number
|
|
5418
|
+
feedback?: string | null
|
|
5419
|
+
final_response?: string | null
|
|
5420
|
+
fully_reviewed?: boolean
|
|
5421
|
+
id?: string
|
|
5422
|
+
initial_draft?: string | null
|
|
5423
|
+
matched_keywords?: string[]
|
|
5424
|
+
matched_query?: string | null
|
|
5425
|
+
metadata?: Json
|
|
5426
|
+
organization_id: string
|
|
5427
|
+
platform: string
|
|
5428
|
+
platform_post_id: string
|
|
5429
|
+
post_text: string
|
|
5430
|
+
post_title: string
|
|
5431
|
+
post_url: string
|
|
5432
|
+
posted_at: string
|
|
5433
|
+
relevance_score?: number
|
|
5434
|
+
responded_at?: string | null
|
|
5435
|
+
reviewed_at?: string | null
|
|
5436
|
+
skip_reason?: string | null
|
|
5437
|
+
source_category?: string | null
|
|
5438
|
+
status?: string
|
|
5439
|
+
updated_at?: string
|
|
5440
|
+
}
|
|
5441
|
+
Update: {
|
|
5442
|
+
author_name?: string
|
|
5443
|
+
author_url?: string | null
|
|
5444
|
+
comments_count?: number
|
|
5445
|
+
created_at?: string
|
|
5446
|
+
discovered_at?: string
|
|
5447
|
+
engagement_count?: number
|
|
5448
|
+
feedback?: string | null
|
|
5449
|
+
final_response?: string | null
|
|
5450
|
+
fully_reviewed?: boolean
|
|
5451
|
+
id?: string
|
|
5452
|
+
initial_draft?: string | null
|
|
5453
|
+
matched_keywords?: string[]
|
|
5454
|
+
matched_query?: string | null
|
|
5455
|
+
metadata?: Json
|
|
5456
|
+
organization_id?: string
|
|
5457
|
+
platform?: string
|
|
5458
|
+
platform_post_id?: string
|
|
5459
|
+
post_text?: string
|
|
5460
|
+
post_title?: string
|
|
5461
|
+
post_url?: string
|
|
5462
|
+
posted_at?: string
|
|
5463
|
+
relevance_score?: number
|
|
5464
|
+
responded_at?: string | null
|
|
5465
|
+
reviewed_at?: string | null
|
|
5466
|
+
skip_reason?: string | null
|
|
5467
|
+
source_category?: string | null
|
|
5468
|
+
status?: string
|
|
5469
|
+
updated_at?: string
|
|
5470
|
+
}
|
|
5471
|
+
Relationships: [
|
|
5472
|
+
{
|
|
5473
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey"
|
|
5474
|
+
columns: ["organization_id"]
|
|
5475
|
+
isOneToOne: false
|
|
5476
|
+
referencedRelation: "organizations"
|
|
5477
|
+
referencedColumns: ["id"]
|
|
5478
|
+
},
|
|
5479
|
+
]
|
|
5480
|
+
}
|
|
5481
|
+
activities: {
|
|
5482
|
+
Row: {
|
|
5483
|
+
activity_type: string
|
|
5484
|
+
actor_id: string | null
|
|
5485
|
+
actor_type: string | null
|
|
5486
|
+
created_at: string
|
|
5487
|
+
description: string | null
|
|
5488
|
+
entity_id: string
|
|
5489
|
+
entity_name: string | null
|
|
5490
|
+
entity_type: string
|
|
5491
|
+
id: string
|
|
5492
|
+
metadata: Json | null
|
|
5493
|
+
occurred_at: string
|
|
5494
|
+
organization_id: string
|
|
5495
|
+
status: string
|
|
5496
|
+
title: string
|
|
5497
|
+
}
|
|
5498
|
+
Insert: {
|
|
5499
|
+
activity_type: string
|
|
5500
|
+
actor_id?: string | null
|
|
5501
|
+
actor_type?: string | null
|
|
5502
|
+
created_at?: string
|
|
5503
|
+
description?: string | null
|
|
5504
|
+
entity_id: string
|
|
5505
|
+
entity_name?: string | null
|
|
5506
|
+
entity_type: string
|
|
5507
|
+
id?: string
|
|
5508
|
+
metadata?: Json | null
|
|
5509
|
+
occurred_at?: string
|
|
5510
|
+
organization_id: string
|
|
5511
|
+
status: string
|
|
5512
|
+
title: string
|
|
5513
|
+
}
|
|
5514
|
+
Update: {
|
|
5515
|
+
activity_type?: string
|
|
5516
|
+
actor_id?: string | null
|
|
5517
|
+
actor_type?: string | null
|
|
5518
|
+
created_at?: string
|
|
5519
|
+
description?: string | null
|
|
5520
|
+
entity_id?: string
|
|
5521
|
+
entity_name?: string | null
|
|
5522
|
+
entity_type?: string
|
|
5523
|
+
id?: string
|
|
5524
|
+
metadata?: Json | null
|
|
5525
|
+
occurred_at?: string
|
|
5526
|
+
organization_id?: string
|
|
5527
|
+
status?: string
|
|
5528
|
+
title?: string
|
|
5529
|
+
}
|
|
5530
|
+
Relationships: [
|
|
5531
|
+
{
|
|
5532
|
+
foreignKeyName: "activities_organization_id_fkey"
|
|
5533
|
+
columns: ["organization_id"]
|
|
5534
|
+
isOneToOne: false
|
|
5535
|
+
referencedRelation: "organizations"
|
|
5536
|
+
referencedColumns: ["id"]
|
|
5537
|
+
},
|
|
5538
|
+
]
|
|
5539
|
+
}
|
|
5540
|
+
api_keys: {
|
|
5541
|
+
Row: {
|
|
5542
|
+
created_at: string | null
|
|
5543
|
+
id: string
|
|
5544
|
+
key_hash: string
|
|
5545
|
+
last_used_at: string | null
|
|
5546
|
+
name: string
|
|
5547
|
+
organization_id: string
|
|
5548
|
+
}
|
|
5549
|
+
Insert: {
|
|
5550
|
+
created_at?: string | null
|
|
5551
|
+
id?: string
|
|
5552
|
+
key_hash: string
|
|
5553
|
+
last_used_at?: string | null
|
|
5554
|
+
name: string
|
|
5555
|
+
organization_id: string
|
|
5556
|
+
}
|
|
5557
|
+
Update: {
|
|
5558
|
+
created_at?: string | null
|
|
5559
|
+
id?: string
|
|
5560
|
+
key_hash?: string
|
|
5561
|
+
last_used_at?: string | null
|
|
5562
|
+
name?: string
|
|
5563
|
+
organization_id?: string
|
|
5564
|
+
}
|
|
5565
|
+
Relationships: [
|
|
5566
|
+
{
|
|
5567
|
+
foreignKeyName: "api_keys_organization_id_fkey"
|
|
5568
|
+
columns: ["organization_id"]
|
|
5569
|
+
isOneToOne: false
|
|
5570
|
+
referencedRelation: "organizations"
|
|
5571
|
+
referencedColumns: ["id"]
|
|
5572
|
+
},
|
|
5573
|
+
]
|
|
5574
|
+
}
|
|
5575
|
+
command_queue: {
|
|
5576
|
+
Row: {
|
|
5577
|
+
action_payload: Json | null
|
|
5578
|
+
actions: Json
|
|
5579
|
+
completed_at: string | null
|
|
5580
|
+
completed_by: string | null
|
|
5581
|
+
context: Json
|
|
5582
|
+
created_at: string
|
|
5583
|
+
description: string | null
|
|
5584
|
+
expires_at: string | null
|
|
5585
|
+
human_checkpoint: string | null
|
|
5586
|
+
id: string
|
|
5587
|
+
idempotency_key: string | null
|
|
5588
|
+
metadata: Json | null
|
|
5589
|
+
organization_id: string
|
|
5590
|
+
origin_execution_id: string
|
|
5591
|
+
origin_resource_id: string
|
|
5592
|
+
origin_resource_type: string
|
|
5593
|
+
priority: number
|
|
5594
|
+
selected_action: string | null
|
|
5595
|
+
status: string
|
|
5596
|
+
target_execution_id: string | null
|
|
5597
|
+
target_resource_id: string | null
|
|
5598
|
+
target_resource_type: string | null
|
|
5599
|
+
}
|
|
5600
|
+
Insert: {
|
|
5601
|
+
action_payload?: Json | null
|
|
5602
|
+
actions: Json
|
|
5603
|
+
completed_at?: string | null
|
|
5604
|
+
completed_by?: string | null
|
|
5605
|
+
context: Json
|
|
5606
|
+
created_at?: string
|
|
5607
|
+
description?: string | null
|
|
5608
|
+
expires_at?: string | null
|
|
5609
|
+
human_checkpoint?: string | null
|
|
5610
|
+
id?: string
|
|
5611
|
+
idempotency_key?: string | null
|
|
5612
|
+
metadata?: Json | null
|
|
5613
|
+
organization_id: string
|
|
5614
|
+
origin_execution_id: string
|
|
5615
|
+
origin_resource_id: string
|
|
5616
|
+
origin_resource_type: string
|
|
5617
|
+
priority?: number
|
|
5618
|
+
selected_action?: string | null
|
|
5619
|
+
status?: string
|
|
5620
|
+
target_execution_id?: string | null
|
|
5621
|
+
target_resource_id?: string | null
|
|
5622
|
+
target_resource_type?: string | null
|
|
5623
|
+
}
|
|
5624
|
+
Update: {
|
|
5625
|
+
action_payload?: Json | null
|
|
5626
|
+
actions?: Json
|
|
5627
|
+
completed_at?: string | null
|
|
5628
|
+
completed_by?: string | null
|
|
5629
|
+
context?: Json
|
|
5630
|
+
created_at?: string
|
|
5631
|
+
description?: string | null
|
|
5632
|
+
expires_at?: string | null
|
|
5633
|
+
human_checkpoint?: string | null
|
|
5634
|
+
id?: string
|
|
5635
|
+
idempotency_key?: string | null
|
|
5636
|
+
metadata?: Json | null
|
|
5637
|
+
organization_id?: string
|
|
5638
|
+
origin_execution_id?: string
|
|
5639
|
+
origin_resource_id?: string
|
|
5640
|
+
origin_resource_type?: string
|
|
5641
|
+
priority?: number
|
|
5642
|
+
selected_action?: string | null
|
|
5643
|
+
status?: string
|
|
5644
|
+
target_execution_id?: string | null
|
|
5645
|
+
target_resource_id?: string | null
|
|
5646
|
+
target_resource_type?: string | null
|
|
5647
|
+
}
|
|
5648
|
+
Relationships: [
|
|
5649
|
+
{
|
|
5650
|
+
foreignKeyName: "command_queue_completed_by_fkey"
|
|
5651
|
+
columns: ["completed_by"]
|
|
5652
|
+
isOneToOne: false
|
|
5653
|
+
referencedRelation: "users"
|
|
5654
|
+
referencedColumns: ["id"]
|
|
5655
|
+
},
|
|
5656
|
+
{
|
|
5657
|
+
foreignKeyName: "command_queue_organization_id_fkey"
|
|
5658
|
+
columns: ["organization_id"]
|
|
5659
|
+
isOneToOne: false
|
|
5660
|
+
referencedRelation: "organizations"
|
|
5661
|
+
referencedColumns: ["id"]
|
|
5662
|
+
},
|
|
5663
|
+
{
|
|
5664
|
+
foreignKeyName: "command_queue_target_execution_id_fkey"
|
|
5665
|
+
columns: ["target_execution_id"]
|
|
5666
|
+
isOneToOne: false
|
|
5667
|
+
referencedRelation: "execution_logs"
|
|
5668
|
+
referencedColumns: ["execution_id"]
|
|
5669
|
+
},
|
|
5670
|
+
]
|
|
5671
|
+
}
|
|
5672
|
+
credentials: {
|
|
5673
|
+
Row: {
|
|
5674
|
+
created_at: string
|
|
5675
|
+
created_by: string | null
|
|
5676
|
+
encrypted_value: string
|
|
5677
|
+
id: string
|
|
5678
|
+
name: string
|
|
5679
|
+
organization_id: string
|
|
5680
|
+
provider: string | null
|
|
5681
|
+
type: string
|
|
5682
|
+
updated_at: string
|
|
5683
|
+
}
|
|
5684
|
+
Insert: {
|
|
5685
|
+
created_at?: string
|
|
5686
|
+
created_by?: string | null
|
|
5687
|
+
encrypted_value: string
|
|
5688
|
+
id?: string
|
|
5689
|
+
name: string
|
|
5690
|
+
organization_id: string
|
|
5691
|
+
provider?: string | null
|
|
5692
|
+
type?: string
|
|
5693
|
+
updated_at?: string
|
|
5694
|
+
}
|
|
5695
|
+
Update: {
|
|
5696
|
+
created_at?: string
|
|
5697
|
+
created_by?: string | null
|
|
5698
|
+
encrypted_value?: string
|
|
5699
|
+
id?: string
|
|
5700
|
+
name?: string
|
|
5701
|
+
organization_id?: string
|
|
5702
|
+
provider?: string | null
|
|
5703
|
+
type?: string
|
|
5704
|
+
updated_at?: string
|
|
5705
|
+
}
|
|
5706
|
+
Relationships: [
|
|
5707
|
+
{
|
|
5708
|
+
foreignKeyName: "credentials_created_by_fkey"
|
|
5709
|
+
columns: ["created_by"]
|
|
5710
|
+
isOneToOne: false
|
|
5711
|
+
referencedRelation: "users"
|
|
5712
|
+
referencedColumns: ["id"]
|
|
5713
|
+
},
|
|
5714
|
+
{
|
|
5715
|
+
foreignKeyName: "credentials_organization_id_fkey"
|
|
5716
|
+
columns: ["organization_id"]
|
|
5717
|
+
isOneToOne: false
|
|
5718
|
+
referencedRelation: "organizations"
|
|
5719
|
+
referencedColumns: ["id"]
|
|
5720
|
+
},
|
|
5721
|
+
]
|
|
5722
|
+
}
|
|
5723
|
+
deployments: {
|
|
5724
|
+
Row: {
|
|
5725
|
+
created_at: string
|
|
5726
|
+
deployment_version: string | null
|
|
5727
|
+
error_message: string | null
|
|
5728
|
+
id: string
|
|
5729
|
+
organization_id: string
|
|
5730
|
+
pid: number | null
|
|
5731
|
+
port: number | null
|
|
5732
|
+
sdk_version: string
|
|
5733
|
+
status: string
|
|
5734
|
+
tarball_path: string | null
|
|
5735
|
+
updated_at: string
|
|
5736
|
+
}
|
|
5737
|
+
Insert: {
|
|
5738
|
+
created_at?: string
|
|
5739
|
+
deployment_version?: string | null
|
|
5740
|
+
error_message?: string | null
|
|
5741
|
+
id?: string
|
|
5742
|
+
organization_id: string
|
|
5743
|
+
pid?: number | null
|
|
5744
|
+
port?: number | null
|
|
5745
|
+
sdk_version: string
|
|
5746
|
+
status?: string
|
|
5747
|
+
tarball_path?: string | null
|
|
5748
|
+
updated_at?: string
|
|
5749
|
+
}
|
|
5750
|
+
Update: {
|
|
5751
|
+
created_at?: string
|
|
5752
|
+
deployment_version?: string | null
|
|
5753
|
+
error_message?: string | null
|
|
5754
|
+
id?: string
|
|
5755
|
+
organization_id?: string
|
|
5756
|
+
pid?: number | null
|
|
5757
|
+
port?: number | null
|
|
5758
|
+
sdk_version?: string
|
|
5759
|
+
status?: string
|
|
5760
|
+
tarball_path?: string | null
|
|
5761
|
+
updated_at?: string
|
|
5762
|
+
}
|
|
5763
|
+
Relationships: [
|
|
5764
|
+
{
|
|
5765
|
+
foreignKeyName: "deployments_organization_id_fkey"
|
|
5766
|
+
columns: ["organization_id"]
|
|
5767
|
+
isOneToOne: false
|
|
5768
|
+
referencedRelation: "organizations"
|
|
5769
|
+
referencedColumns: ["id"]
|
|
5770
|
+
},
|
|
5771
|
+
]
|
|
5772
|
+
}
|
|
5773
|
+
execution_errors: {
|
|
5774
|
+
Row: {
|
|
5775
|
+
created_at: string | null
|
|
5776
|
+
error_category: string
|
|
5777
|
+
error_message: string
|
|
5778
|
+
error_severity: string
|
|
5779
|
+
error_stack_trace: string | null
|
|
5780
|
+
error_type: string
|
|
5781
|
+
execution_id: string
|
|
5782
|
+
id: string
|
|
5783
|
+
metadata: Json | null
|
|
5784
|
+
occurred_at: string
|
|
5785
|
+
organization_id: string
|
|
5786
|
+
resolved: boolean
|
|
5787
|
+
resolved_at: string | null
|
|
5788
|
+
resolved_by: string | null
|
|
5789
|
+
}
|
|
5790
|
+
Insert: {
|
|
5791
|
+
created_at?: string | null
|
|
5792
|
+
error_category: string
|
|
5793
|
+
error_message: string
|
|
5794
|
+
error_severity: string
|
|
5795
|
+
error_stack_trace?: string | null
|
|
5796
|
+
error_type: string
|
|
5797
|
+
execution_id: string
|
|
5798
|
+
id?: string
|
|
5799
|
+
metadata?: Json | null
|
|
5800
|
+
occurred_at?: string
|
|
5801
|
+
organization_id: string
|
|
5802
|
+
resolved?: boolean
|
|
5803
|
+
resolved_at?: string | null
|
|
5804
|
+
resolved_by?: string | null
|
|
5805
|
+
}
|
|
5806
|
+
Update: {
|
|
5807
|
+
created_at?: string | null
|
|
5808
|
+
error_category?: string
|
|
5809
|
+
error_message?: string
|
|
5810
|
+
error_severity?: string
|
|
5811
|
+
error_stack_trace?: string | null
|
|
5812
|
+
error_type?: string
|
|
5813
|
+
execution_id?: string
|
|
5814
|
+
id?: string
|
|
5815
|
+
metadata?: Json | null
|
|
5816
|
+
occurred_at?: string
|
|
5817
|
+
organization_id?: string
|
|
5818
|
+
resolved?: boolean
|
|
5819
|
+
resolved_at?: string | null
|
|
5820
|
+
resolved_by?: string | null
|
|
5821
|
+
}
|
|
5822
|
+
Relationships: [
|
|
5823
|
+
{
|
|
5824
|
+
foreignKeyName: "execution_errors_execution_id_fkey"
|
|
5825
|
+
columns: ["execution_id"]
|
|
5826
|
+
isOneToOne: false
|
|
5827
|
+
referencedRelation: "execution_logs"
|
|
5828
|
+
referencedColumns: ["execution_id"]
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
foreignKeyName: "execution_errors_organization_id_fkey"
|
|
5832
|
+
columns: ["organization_id"]
|
|
5833
|
+
isOneToOne: false
|
|
5834
|
+
referencedRelation: "organizations"
|
|
5835
|
+
referencedColumns: ["id"]
|
|
5836
|
+
},
|
|
5837
|
+
{
|
|
5838
|
+
foreignKeyName: "execution_errors_resolved_by_fkey"
|
|
5839
|
+
columns: ["resolved_by"]
|
|
5840
|
+
isOneToOne: false
|
|
5841
|
+
referencedRelation: "users"
|
|
5842
|
+
referencedColumns: ["id"]
|
|
5843
|
+
},
|
|
5844
|
+
]
|
|
5845
|
+
}
|
|
5846
|
+
execution_logs: {
|
|
5847
|
+
Row: {
|
|
5848
|
+
api_version: string | null
|
|
5849
|
+
completed_at: string | null
|
|
5850
|
+
created_at: string | null
|
|
5851
|
+
error: string | null
|
|
5852
|
+
execution_id: string
|
|
5853
|
+
input: Json | null
|
|
5854
|
+
last_heartbeat_at: string | null
|
|
5855
|
+
logs: Json | null
|
|
5856
|
+
organization_id: string
|
|
5857
|
+
origin_execution_id: string | null
|
|
5858
|
+
output: Json | null
|
|
5859
|
+
resource_id: string
|
|
5860
|
+
resource_status: string
|
|
5861
|
+
resource_type: string
|
|
5862
|
+
resource_version: string | null
|
|
5863
|
+
sdk_version: string | null
|
|
5864
|
+
session_id: string | null
|
|
5865
|
+
session_turn_number: number | null
|
|
5866
|
+
started_at: string
|
|
5867
|
+
status: string
|
|
5868
|
+
trigger_type: string | null
|
|
5869
|
+
updated_at: string | null
|
|
5870
|
+
user_id: string | null
|
|
5871
|
+
}
|
|
5872
|
+
Insert: {
|
|
5873
|
+
api_version?: string | null
|
|
5874
|
+
completed_at?: string | null
|
|
5875
|
+
created_at?: string | null
|
|
5876
|
+
error?: string | null
|
|
5877
|
+
execution_id?: string
|
|
5878
|
+
input?: Json | null
|
|
5879
|
+
last_heartbeat_at?: string | null
|
|
5880
|
+
logs?: Json | null
|
|
5881
|
+
organization_id: string
|
|
5882
|
+
origin_execution_id?: string | null
|
|
5883
|
+
output?: Json | null
|
|
5884
|
+
resource_id: string
|
|
5885
|
+
resource_status?: string
|
|
5886
|
+
resource_type?: string
|
|
5887
|
+
resource_version?: string | null
|
|
5888
|
+
sdk_version?: string | null
|
|
5889
|
+
session_id?: string | null
|
|
5890
|
+
session_turn_number?: number | null
|
|
5891
|
+
started_at?: string
|
|
5892
|
+
status: string
|
|
5893
|
+
trigger_type?: string | null
|
|
5894
|
+
updated_at?: string | null
|
|
5895
|
+
user_id?: string | null
|
|
5896
|
+
}
|
|
5897
|
+
Update: {
|
|
5898
|
+
api_version?: string | null
|
|
5899
|
+
completed_at?: string | null
|
|
5900
|
+
created_at?: string | null
|
|
5901
|
+
error?: string | null
|
|
5902
|
+
execution_id?: string
|
|
5903
|
+
input?: Json | null
|
|
5904
|
+
last_heartbeat_at?: string | null
|
|
5905
|
+
logs?: Json | null
|
|
5906
|
+
organization_id?: string
|
|
5907
|
+
origin_execution_id?: string | null
|
|
5908
|
+
output?: Json | null
|
|
5909
|
+
resource_id?: string
|
|
5910
|
+
resource_status?: string
|
|
5911
|
+
resource_type?: string
|
|
5912
|
+
resource_version?: string | null
|
|
5913
|
+
sdk_version?: string | null
|
|
5914
|
+
session_id?: string | null
|
|
5915
|
+
session_turn_number?: number | null
|
|
5916
|
+
started_at?: string
|
|
5917
|
+
status?: string
|
|
5918
|
+
trigger_type?: string | null
|
|
5919
|
+
updated_at?: string | null
|
|
5920
|
+
user_id?: string | null
|
|
5921
|
+
}
|
|
5922
|
+
Relationships: [
|
|
5923
|
+
{
|
|
5924
|
+
foreignKeyName: "execution_history_organization_id_fkey"
|
|
5925
|
+
columns: ["organization_id"]
|
|
5926
|
+
isOneToOne: false
|
|
5927
|
+
referencedRelation: "organizations"
|
|
5928
|
+
referencedColumns: ["id"]
|
|
5929
|
+
},
|
|
5930
|
+
{
|
|
5931
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey"
|
|
5932
|
+
columns: ["origin_execution_id"]
|
|
5933
|
+
isOneToOne: false
|
|
5934
|
+
referencedRelation: "execution_logs"
|
|
5935
|
+
referencedColumns: ["execution_id"]
|
|
5936
|
+
},
|
|
5937
|
+
{
|
|
5938
|
+
foreignKeyName: "execution_logs_session_id_fkey"
|
|
5939
|
+
columns: ["session_id"]
|
|
5940
|
+
isOneToOne: false
|
|
5941
|
+
referencedRelation: "sessions"
|
|
5942
|
+
referencedColumns: ["session_id"]
|
|
5943
|
+
},
|
|
5944
|
+
{
|
|
5945
|
+
foreignKeyName: "execution_logs_user_id_fkey"
|
|
5946
|
+
columns: ["user_id"]
|
|
5947
|
+
isOneToOne: false
|
|
5948
|
+
referencedRelation: "users"
|
|
5949
|
+
referencedColumns: ["id"]
|
|
5950
|
+
},
|
|
5951
|
+
]
|
|
5952
|
+
}
|
|
5953
|
+
execution_metrics: {
|
|
5954
|
+
Row: {
|
|
5955
|
+
ai_call_count: number
|
|
5956
|
+
ai_calls: Json | null
|
|
5957
|
+
automation_savings_usd: number | null
|
|
5958
|
+
created_at: string | null
|
|
5959
|
+
duration_ms: number | null
|
|
5960
|
+
execution_id: string
|
|
5961
|
+
organization_id: string
|
|
5962
|
+
resource_id: string
|
|
5963
|
+
total_cost_usd: number
|
|
5964
|
+
total_input_tokens: number
|
|
5965
|
+
total_output_tokens: number
|
|
5966
|
+
}
|
|
5967
|
+
Insert: {
|
|
5968
|
+
ai_call_count: number
|
|
5969
|
+
ai_calls?: Json | null
|
|
5970
|
+
automation_savings_usd?: number | null
|
|
5971
|
+
created_at?: string | null
|
|
5972
|
+
duration_ms?: number | null
|
|
5973
|
+
execution_id: string
|
|
5974
|
+
organization_id: string
|
|
5975
|
+
resource_id: string
|
|
5976
|
+
total_cost_usd: number
|
|
5977
|
+
total_input_tokens: number
|
|
5978
|
+
total_output_tokens: number
|
|
5979
|
+
}
|
|
5980
|
+
Update: {
|
|
5981
|
+
ai_call_count?: number
|
|
5982
|
+
ai_calls?: Json | null
|
|
5983
|
+
automation_savings_usd?: number | null
|
|
5984
|
+
created_at?: string | null
|
|
5985
|
+
duration_ms?: number | null
|
|
5986
|
+
execution_id?: string
|
|
5987
|
+
organization_id?: string
|
|
5988
|
+
resource_id?: string
|
|
5989
|
+
total_cost_usd?: number
|
|
5990
|
+
total_input_tokens?: number
|
|
5991
|
+
total_output_tokens?: number
|
|
5992
|
+
}
|
|
5993
|
+
Relationships: [
|
|
5994
|
+
{
|
|
5995
|
+
foreignKeyName: "execution_metrics_execution_id_fkey"
|
|
5996
|
+
columns: ["execution_id"]
|
|
5997
|
+
isOneToOne: true
|
|
5998
|
+
referencedRelation: "execution_logs"
|
|
5999
|
+
referencedColumns: ["execution_id"]
|
|
6000
|
+
},
|
|
6001
|
+
{
|
|
6002
|
+
foreignKeyName: "execution_metrics_organization_id_fkey"
|
|
6003
|
+
columns: ["organization_id"]
|
|
6004
|
+
isOneToOne: false
|
|
6005
|
+
referencedRelation: "organizations"
|
|
6006
|
+
referencedColumns: ["id"]
|
|
6007
|
+
},
|
|
6008
|
+
]
|
|
6009
|
+
}
|
|
6010
|
+
notifications: {
|
|
6011
|
+
Row: {
|
|
6012
|
+
action_url: string | null
|
|
6013
|
+
category: string
|
|
6014
|
+
created_at: string | null
|
|
6015
|
+
id: string
|
|
6016
|
+
message: string
|
|
6017
|
+
organization_id: string
|
|
6018
|
+
read: boolean | null
|
|
6019
|
+
read_at: string | null
|
|
6020
|
+
title: string
|
|
6021
|
+
user_id: string
|
|
6022
|
+
}
|
|
6023
|
+
Insert: {
|
|
6024
|
+
action_url?: string | null
|
|
6025
|
+
category: string
|
|
6026
|
+
created_at?: string | null
|
|
6027
|
+
id?: string
|
|
6028
|
+
message: string
|
|
6029
|
+
organization_id: string
|
|
6030
|
+
read?: boolean | null
|
|
6031
|
+
read_at?: string | null
|
|
6032
|
+
title: string
|
|
6033
|
+
user_id: string
|
|
6034
|
+
}
|
|
6035
|
+
Update: {
|
|
6036
|
+
action_url?: string | null
|
|
6037
|
+
category?: string
|
|
6038
|
+
created_at?: string | null
|
|
6039
|
+
id?: string
|
|
6040
|
+
message?: string
|
|
6041
|
+
organization_id?: string
|
|
6042
|
+
read?: boolean | null
|
|
6043
|
+
read_at?: string | null
|
|
6044
|
+
title?: string
|
|
6045
|
+
user_id?: string
|
|
6046
|
+
}
|
|
6047
|
+
Relationships: [
|
|
6048
|
+
{
|
|
6049
|
+
foreignKeyName: "notifications_organization_id_fkey"
|
|
6050
|
+
columns: ["organization_id"]
|
|
6051
|
+
isOneToOne: false
|
|
6052
|
+
referencedRelation: "organizations"
|
|
6053
|
+
referencedColumns: ["id"]
|
|
6054
|
+
},
|
|
6055
|
+
{
|
|
6056
|
+
foreignKeyName: "notifications_user_id_fkey"
|
|
6057
|
+
columns: ["user_id"]
|
|
6058
|
+
isOneToOne: false
|
|
6059
|
+
referencedRelation: "users"
|
|
6060
|
+
referencedColumns: ["id"]
|
|
6061
|
+
},
|
|
6062
|
+
]
|
|
6063
|
+
}
|
|
6064
|
+
org_invitations: {
|
|
6065
|
+
Row: {
|
|
6066
|
+
accept_invitation_url: string | null
|
|
6067
|
+
accepted_at: string | null
|
|
6068
|
+
created_at: string | null
|
|
6069
|
+
email: string
|
|
6070
|
+
expires_at: string
|
|
6071
|
+
id: string
|
|
6072
|
+
invitation_state: string | null
|
|
6073
|
+
invitation_token: string | null
|
|
6074
|
+
inviter_user_id: string | null
|
|
6075
|
+
organization_id: string | null
|
|
6076
|
+
revoked_at: string | null
|
|
6077
|
+
role_slug: string | null
|
|
6078
|
+
updated_at: string | null
|
|
6079
|
+
workos_invitation_id: string
|
|
6080
|
+
}
|
|
6081
|
+
Insert: {
|
|
6082
|
+
accept_invitation_url?: string | null
|
|
6083
|
+
accepted_at?: string | null
|
|
6084
|
+
created_at?: string | null
|
|
6085
|
+
email: string
|
|
6086
|
+
expires_at: string
|
|
6087
|
+
id?: string
|
|
6088
|
+
invitation_state?: string | null
|
|
6089
|
+
invitation_token?: string | null
|
|
6090
|
+
inviter_user_id?: string | null
|
|
6091
|
+
organization_id?: string | null
|
|
6092
|
+
revoked_at?: string | null
|
|
6093
|
+
role_slug?: string | null
|
|
6094
|
+
updated_at?: string | null
|
|
6095
|
+
workos_invitation_id: string
|
|
6096
|
+
}
|
|
6097
|
+
Update: {
|
|
6098
|
+
accept_invitation_url?: string | null
|
|
6099
|
+
accepted_at?: string | null
|
|
6100
|
+
created_at?: string | null
|
|
6101
|
+
email?: string
|
|
6102
|
+
expires_at?: string
|
|
6103
|
+
id?: string
|
|
6104
|
+
invitation_state?: string | null
|
|
6105
|
+
invitation_token?: string | null
|
|
6106
|
+
inviter_user_id?: string | null
|
|
6107
|
+
organization_id?: string | null
|
|
6108
|
+
revoked_at?: string | null
|
|
6109
|
+
role_slug?: string | null
|
|
6110
|
+
updated_at?: string | null
|
|
6111
|
+
workos_invitation_id?: string
|
|
6112
|
+
}
|
|
6113
|
+
Relationships: [
|
|
6114
|
+
{
|
|
6115
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey"
|
|
6116
|
+
columns: ["inviter_user_id"]
|
|
6117
|
+
isOneToOne: false
|
|
6118
|
+
referencedRelation: "users"
|
|
6119
|
+
referencedColumns: ["id"]
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
foreignKeyName: "org_invitations_organization_id_fkey"
|
|
6123
|
+
columns: ["organization_id"]
|
|
6124
|
+
isOneToOne: false
|
|
6125
|
+
referencedRelation: "organizations"
|
|
6126
|
+
referencedColumns: ["id"]
|
|
6127
|
+
},
|
|
6128
|
+
]
|
|
6129
|
+
}
|
|
6130
|
+
org_memberships: {
|
|
6131
|
+
Row: {
|
|
6132
|
+
config: Json
|
|
6133
|
+
created_at: string | null
|
|
6134
|
+
id: string
|
|
6135
|
+
membership_status: string | null
|
|
6136
|
+
organization_id: string
|
|
6137
|
+
role_slug: string | null
|
|
6138
|
+
updated_at: string | null
|
|
6139
|
+
user_id: string
|
|
6140
|
+
workos_membership_id: string | null
|
|
6141
|
+
}
|
|
6142
|
+
Insert: {
|
|
6143
|
+
config?: Json
|
|
6144
|
+
created_at?: string | null
|
|
6145
|
+
id?: string
|
|
6146
|
+
membership_status?: string | null
|
|
6147
|
+
organization_id: string
|
|
6148
|
+
role_slug?: string | null
|
|
6149
|
+
updated_at?: string | null
|
|
6150
|
+
user_id: string
|
|
6151
|
+
workos_membership_id?: string | null
|
|
6152
|
+
}
|
|
6153
|
+
Update: {
|
|
6154
|
+
config?: Json
|
|
6155
|
+
created_at?: string | null
|
|
6156
|
+
id?: string
|
|
6157
|
+
membership_status?: string | null
|
|
6158
|
+
organization_id?: string
|
|
6159
|
+
role_slug?: string | null
|
|
6160
|
+
updated_at?: string | null
|
|
6161
|
+
user_id?: string
|
|
6162
|
+
workos_membership_id?: string | null
|
|
6163
|
+
}
|
|
6164
|
+
Relationships: [
|
|
6165
|
+
{
|
|
6166
|
+
foreignKeyName: "org_memberships_organization_id_fkey"
|
|
6167
|
+
columns: ["organization_id"]
|
|
6168
|
+
isOneToOne: false
|
|
6169
|
+
referencedRelation: "organizations"
|
|
6170
|
+
referencedColumns: ["id"]
|
|
6171
|
+
},
|
|
6172
|
+
{
|
|
6173
|
+
foreignKeyName: "org_memberships_user_id_fkey"
|
|
6174
|
+
columns: ["user_id"]
|
|
6175
|
+
isOneToOne: false
|
|
6176
|
+
referencedRelation: "users"
|
|
6177
|
+
referencedColumns: ["id"]
|
|
6178
|
+
},
|
|
6179
|
+
]
|
|
6180
|
+
}
|
|
6181
|
+
organizations: {
|
|
6182
|
+
Row: {
|
|
6183
|
+
config: Json
|
|
6184
|
+
created_at: string
|
|
6185
|
+
id: string
|
|
6186
|
+
is_test: boolean
|
|
6187
|
+
metadata: Json
|
|
6188
|
+
name: string
|
|
6189
|
+
status: string
|
|
6190
|
+
updated_at: string
|
|
6191
|
+
workos_org_id: string
|
|
6192
|
+
}
|
|
6193
|
+
Insert: {
|
|
6194
|
+
config?: Json
|
|
6195
|
+
created_at?: string
|
|
6196
|
+
id?: string
|
|
6197
|
+
is_test?: boolean
|
|
6198
|
+
metadata?: Json
|
|
6199
|
+
name: string
|
|
6200
|
+
status?: string
|
|
6201
|
+
updated_at?: string
|
|
6202
|
+
workos_org_id: string
|
|
6203
|
+
}
|
|
6204
|
+
Update: {
|
|
6205
|
+
config?: Json
|
|
6206
|
+
created_at?: string
|
|
6207
|
+
id?: string
|
|
6208
|
+
is_test?: boolean
|
|
6209
|
+
metadata?: Json
|
|
6210
|
+
name?: string
|
|
6211
|
+
status?: string
|
|
6212
|
+
updated_at?: string
|
|
6213
|
+
workos_org_id?: string
|
|
6214
|
+
}
|
|
6215
|
+
Relationships: []
|
|
6216
|
+
}
|
|
6217
|
+
prj_milestones: {
|
|
6218
|
+
Row: {
|
|
6219
|
+
checklist: Json | null
|
|
6220
|
+
completed_at: string | null
|
|
6221
|
+
created_at: string
|
|
6222
|
+
description: string | null
|
|
6223
|
+
due_date: string | null
|
|
6224
|
+
id: string
|
|
6225
|
+
metadata: Json | null
|
|
6226
|
+
name: string
|
|
6227
|
+
organization_id: string
|
|
6228
|
+
project_id: string
|
|
6229
|
+
sequence: number
|
|
6230
|
+
status: string
|
|
6231
|
+
updated_at: string
|
|
6232
|
+
}
|
|
6233
|
+
Insert: {
|
|
6234
|
+
checklist?: Json | null
|
|
6235
|
+
completed_at?: string | null
|
|
6236
|
+
created_at?: string
|
|
6237
|
+
description?: string | null
|
|
6238
|
+
due_date?: string | null
|
|
6239
|
+
id?: string
|
|
6240
|
+
metadata?: Json | null
|
|
6241
|
+
name: string
|
|
6242
|
+
organization_id: string
|
|
6243
|
+
project_id: string
|
|
6244
|
+
sequence?: number
|
|
6245
|
+
status?: string
|
|
6246
|
+
updated_at?: string
|
|
6247
|
+
}
|
|
6248
|
+
Update: {
|
|
6249
|
+
checklist?: Json | null
|
|
6250
|
+
completed_at?: string | null
|
|
6251
|
+
created_at?: string
|
|
6252
|
+
description?: string | null
|
|
6253
|
+
due_date?: string | null
|
|
6254
|
+
id?: string
|
|
6255
|
+
metadata?: Json | null
|
|
6256
|
+
name?: string
|
|
6257
|
+
organization_id?: string
|
|
6258
|
+
project_id?: string
|
|
6259
|
+
sequence?: number
|
|
6260
|
+
status?: string
|
|
6261
|
+
updated_at?: string
|
|
6262
|
+
}
|
|
6263
|
+
Relationships: [
|
|
6264
|
+
{
|
|
6265
|
+
foreignKeyName: "fk_milestones_project"
|
|
6266
|
+
columns: ["project_id"]
|
|
6267
|
+
isOneToOne: false
|
|
6268
|
+
referencedRelation: "prj_projects"
|
|
6269
|
+
referencedColumns: ["id"]
|
|
6270
|
+
},
|
|
6271
|
+
{
|
|
6272
|
+
foreignKeyName: "prj_milestones_organization_id_fkey"
|
|
6273
|
+
columns: ["organization_id"]
|
|
6274
|
+
isOneToOne: false
|
|
6275
|
+
referencedRelation: "organizations"
|
|
6276
|
+
referencedColumns: ["id"]
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
foreignKeyName: "prj_milestones_project_id_fkey"
|
|
6280
|
+
columns: ["project_id"]
|
|
6281
|
+
isOneToOne: false
|
|
6282
|
+
referencedRelation: "prj_projects"
|
|
6283
|
+
referencedColumns: ["id"]
|
|
6284
|
+
},
|
|
6285
|
+
]
|
|
6286
|
+
}
|
|
6287
|
+
prj_notes: {
|
|
6288
|
+
Row: {
|
|
6289
|
+
content: string
|
|
6290
|
+
created_at: string
|
|
6291
|
+
created_by: string | null
|
|
6292
|
+
id: string
|
|
6293
|
+
metadata: Json | null
|
|
6294
|
+
milestone_id: string | null
|
|
6295
|
+
occurred_at: string
|
|
6296
|
+
organization_id: string
|
|
6297
|
+
project_id: string
|
|
6298
|
+
summary: string | null
|
|
6299
|
+
task_id: string | null
|
|
6300
|
+
type: string
|
|
6301
|
+
}
|
|
6302
|
+
Insert: {
|
|
6303
|
+
content: string
|
|
6304
|
+
created_at?: string
|
|
6305
|
+
created_by?: string | null
|
|
6306
|
+
id?: string
|
|
6307
|
+
metadata?: Json | null
|
|
6308
|
+
milestone_id?: string | null
|
|
6309
|
+
occurred_at?: string
|
|
6310
|
+
organization_id: string
|
|
6311
|
+
project_id: string
|
|
6312
|
+
summary?: string | null
|
|
6313
|
+
task_id?: string | null
|
|
6314
|
+
type?: string
|
|
6315
|
+
}
|
|
6316
|
+
Update: {
|
|
6317
|
+
content?: string
|
|
6318
|
+
created_at?: string
|
|
6319
|
+
created_by?: string | null
|
|
6320
|
+
id?: string
|
|
6321
|
+
metadata?: Json | null
|
|
6322
|
+
milestone_id?: string | null
|
|
6323
|
+
occurred_at?: string
|
|
6324
|
+
organization_id?: string
|
|
6325
|
+
project_id?: string
|
|
6326
|
+
summary?: string | null
|
|
6327
|
+
task_id?: string | null
|
|
6328
|
+
type?: string
|
|
6329
|
+
}
|
|
6330
|
+
Relationships: [
|
|
6331
|
+
{
|
|
6332
|
+
foreignKeyName: "fk_notes_created_by"
|
|
6333
|
+
columns: ["created_by"]
|
|
6334
|
+
isOneToOne: false
|
|
6335
|
+
referencedRelation: "users"
|
|
6336
|
+
referencedColumns: ["id"]
|
|
6337
|
+
},
|
|
6338
|
+
{
|
|
6339
|
+
foreignKeyName: "fk_notes_milestone"
|
|
6340
|
+
columns: ["milestone_id"]
|
|
6341
|
+
isOneToOne: false
|
|
6342
|
+
referencedRelation: "prj_milestones"
|
|
6343
|
+
referencedColumns: ["id"]
|
|
6344
|
+
},
|
|
6345
|
+
{
|
|
6346
|
+
foreignKeyName: "fk_notes_project"
|
|
6347
|
+
columns: ["project_id"]
|
|
6348
|
+
isOneToOne: false
|
|
6349
|
+
referencedRelation: "prj_projects"
|
|
6350
|
+
referencedColumns: ["id"]
|
|
6351
|
+
},
|
|
6352
|
+
{
|
|
6353
|
+
foreignKeyName: "fk_notes_task"
|
|
6354
|
+
columns: ["task_id"]
|
|
6355
|
+
isOneToOne: false
|
|
6356
|
+
referencedRelation: "prj_tasks"
|
|
6357
|
+
referencedColumns: ["id"]
|
|
6358
|
+
},
|
|
6359
|
+
{
|
|
6360
|
+
foreignKeyName: "prj_notes_created_by_fkey"
|
|
6361
|
+
columns: ["created_by"]
|
|
6362
|
+
isOneToOne: false
|
|
6363
|
+
referencedRelation: "users"
|
|
6364
|
+
referencedColumns: ["id"]
|
|
6365
|
+
},
|
|
6366
|
+
{
|
|
6367
|
+
foreignKeyName: "prj_notes_milestone_id_fkey"
|
|
6368
|
+
columns: ["milestone_id"]
|
|
6369
|
+
isOneToOne: false
|
|
6370
|
+
referencedRelation: "prj_milestones"
|
|
6371
|
+
referencedColumns: ["id"]
|
|
6372
|
+
},
|
|
6373
|
+
{
|
|
6374
|
+
foreignKeyName: "prj_notes_organization_id_fkey"
|
|
6375
|
+
columns: ["organization_id"]
|
|
6376
|
+
isOneToOne: false
|
|
6377
|
+
referencedRelation: "organizations"
|
|
6378
|
+
referencedColumns: ["id"]
|
|
6379
|
+
},
|
|
6380
|
+
{
|
|
6381
|
+
foreignKeyName: "prj_notes_project_id_fkey"
|
|
6382
|
+
columns: ["project_id"]
|
|
6383
|
+
isOneToOne: false
|
|
6384
|
+
referencedRelation: "prj_projects"
|
|
6385
|
+
referencedColumns: ["id"]
|
|
6386
|
+
},
|
|
6387
|
+
{
|
|
6388
|
+
foreignKeyName: "prj_notes_task_id_fkey"
|
|
6389
|
+
columns: ["task_id"]
|
|
6390
|
+
isOneToOne: false
|
|
6391
|
+
referencedRelation: "prj_tasks"
|
|
6392
|
+
referencedColumns: ["id"]
|
|
6393
|
+
},
|
|
6394
|
+
]
|
|
6395
|
+
}
|
|
6396
|
+
prj_projects: {
|
|
6397
|
+
Row: {
|
|
6398
|
+
actual_end_date: string | null
|
|
6399
|
+
client_company_id: string | null
|
|
6400
|
+
contract_value: number | null
|
|
6401
|
+
created_at: string
|
|
6402
|
+
deal_id: string | null
|
|
6403
|
+
description: string | null
|
|
6404
|
+
id: string
|
|
6405
|
+
kind: string
|
|
6406
|
+
metadata: Json | null
|
|
6407
|
+
name: string
|
|
6408
|
+
organization_id: string
|
|
6409
|
+
start_date: string | null
|
|
6410
|
+
status: string
|
|
6411
|
+
target_end_date: string | null
|
|
6412
|
+
updated_at: string
|
|
6413
|
+
}
|
|
6414
|
+
Insert: {
|
|
6415
|
+
actual_end_date?: string | null
|
|
6416
|
+
client_company_id?: string | null
|
|
6417
|
+
contract_value?: number | null
|
|
6418
|
+
created_at?: string
|
|
6419
|
+
deal_id?: string | null
|
|
6420
|
+
description?: string | null
|
|
6421
|
+
id?: string
|
|
6422
|
+
kind?: string
|
|
6423
|
+
metadata?: Json | null
|
|
6424
|
+
name: string
|
|
6425
|
+
organization_id: string
|
|
6426
|
+
start_date?: string | null
|
|
6427
|
+
status?: string
|
|
6428
|
+
target_end_date?: string | null
|
|
6429
|
+
updated_at?: string
|
|
6430
|
+
}
|
|
6431
|
+
Update: {
|
|
6432
|
+
actual_end_date?: string | null
|
|
6433
|
+
client_company_id?: string | null
|
|
6434
|
+
contract_value?: number | null
|
|
6435
|
+
created_at?: string
|
|
6436
|
+
deal_id?: string | null
|
|
6437
|
+
description?: string | null
|
|
6438
|
+
id?: string
|
|
6439
|
+
kind?: string
|
|
6440
|
+
metadata?: Json | null
|
|
6441
|
+
name?: string
|
|
6442
|
+
organization_id?: string
|
|
6443
|
+
start_date?: string | null
|
|
6444
|
+
status?: string
|
|
6445
|
+
target_end_date?: string | null
|
|
6446
|
+
updated_at?: string
|
|
6447
|
+
}
|
|
6448
|
+
Relationships: [
|
|
6449
|
+
{
|
|
6450
|
+
foreignKeyName: "fk_projects_company"
|
|
6451
|
+
columns: ["client_company_id"]
|
|
6452
|
+
isOneToOne: false
|
|
6453
|
+
referencedRelation: "acq_companies"
|
|
6454
|
+
referencedColumns: ["id"]
|
|
6455
|
+
},
|
|
6456
|
+
{
|
|
6457
|
+
foreignKeyName: "fk_projects_deal"
|
|
6458
|
+
columns: ["deal_id"]
|
|
6459
|
+
isOneToOne: false
|
|
6460
|
+
referencedRelation: "acq_deals"
|
|
6461
|
+
referencedColumns: ["id"]
|
|
6462
|
+
},
|
|
6463
|
+
{
|
|
6464
|
+
foreignKeyName: "prj_projects_client_company_id_fkey"
|
|
6465
|
+
columns: ["client_company_id"]
|
|
6466
|
+
isOneToOne: false
|
|
6467
|
+
referencedRelation: "acq_companies"
|
|
6468
|
+
referencedColumns: ["id"]
|
|
6469
|
+
},
|
|
6470
|
+
{
|
|
6471
|
+
foreignKeyName: "prj_projects_deal_id_fkey"
|
|
6472
|
+
columns: ["deal_id"]
|
|
6473
|
+
isOneToOne: false
|
|
6474
|
+
referencedRelation: "acq_deals"
|
|
6475
|
+
referencedColumns: ["id"]
|
|
6476
|
+
},
|
|
6477
|
+
{
|
|
6478
|
+
foreignKeyName: "prj_projects_organization_id_fkey"
|
|
6479
|
+
columns: ["organization_id"]
|
|
6480
|
+
isOneToOne: false
|
|
6481
|
+
referencedRelation: "organizations"
|
|
6482
|
+
referencedColumns: ["id"]
|
|
6483
|
+
},
|
|
6484
|
+
]
|
|
6485
|
+
}
|
|
6486
|
+
prj_tasks: {
|
|
6487
|
+
Row: {
|
|
6488
|
+
checklist: Json
|
|
6489
|
+
completed_at: string | null
|
|
6490
|
+
created_at: string
|
|
6491
|
+
description: string | null
|
|
6492
|
+
due_date: string | null
|
|
6493
|
+
file_url: string | null
|
|
6494
|
+
id: string
|
|
6495
|
+
metadata: Json | null
|
|
6496
|
+
milestone_id: string | null
|
|
6497
|
+
name: string
|
|
6498
|
+
organization_id: string
|
|
6499
|
+
parent_task_id: string | null
|
|
6500
|
+
project_id: string
|
|
6501
|
+
resume_context: Json | null
|
|
6502
|
+
status: string
|
|
6503
|
+
type: string
|
|
6504
|
+
updated_at: string
|
|
6505
|
+
}
|
|
6506
|
+
Insert: {
|
|
6507
|
+
checklist?: Json
|
|
6508
|
+
completed_at?: string | null
|
|
6509
|
+
created_at?: string
|
|
6510
|
+
description?: string | null
|
|
6511
|
+
due_date?: string | null
|
|
6512
|
+
file_url?: string | null
|
|
6513
|
+
id?: string
|
|
6514
|
+
metadata?: Json | null
|
|
6515
|
+
milestone_id?: string | null
|
|
6516
|
+
name: string
|
|
6517
|
+
organization_id: string
|
|
6518
|
+
parent_task_id?: string | null
|
|
6519
|
+
project_id: string
|
|
6520
|
+
resume_context?: Json | null
|
|
6521
|
+
status?: string
|
|
6522
|
+
type?: string
|
|
6523
|
+
updated_at?: string
|
|
6524
|
+
}
|
|
6525
|
+
Update: {
|
|
6526
|
+
checklist?: Json
|
|
6527
|
+
completed_at?: string | null
|
|
6528
|
+
created_at?: string
|
|
6529
|
+
description?: string | null
|
|
6530
|
+
due_date?: string | null
|
|
6531
|
+
file_url?: string | null
|
|
6532
|
+
id?: string
|
|
6533
|
+
metadata?: Json | null
|
|
6534
|
+
milestone_id?: string | null
|
|
6535
|
+
name?: string
|
|
6536
|
+
organization_id?: string
|
|
6537
|
+
parent_task_id?: string | null
|
|
6538
|
+
project_id?: string
|
|
6539
|
+
resume_context?: Json | null
|
|
6540
|
+
status?: string
|
|
6541
|
+
type?: string
|
|
6542
|
+
updated_at?: string
|
|
6543
|
+
}
|
|
6544
|
+
Relationships: [
|
|
6545
|
+
{
|
|
6546
|
+
foreignKeyName: "fk_tasks_milestone"
|
|
6547
|
+
columns: ["milestone_id"]
|
|
6548
|
+
isOneToOne: false
|
|
6549
|
+
referencedRelation: "prj_milestones"
|
|
6550
|
+
referencedColumns: ["id"]
|
|
6551
|
+
},
|
|
6552
|
+
{
|
|
6553
|
+
foreignKeyName: "fk_tasks_parent"
|
|
6554
|
+
columns: ["parent_task_id"]
|
|
6555
|
+
isOneToOne: false
|
|
6556
|
+
referencedRelation: "prj_tasks"
|
|
6557
|
+
referencedColumns: ["id"]
|
|
6558
|
+
},
|
|
6559
|
+
{
|
|
6560
|
+
foreignKeyName: "fk_tasks_project"
|
|
6561
|
+
columns: ["project_id"]
|
|
6562
|
+
isOneToOne: false
|
|
6563
|
+
referencedRelation: "prj_projects"
|
|
6564
|
+
referencedColumns: ["id"]
|
|
6565
|
+
},
|
|
6566
|
+
{
|
|
6567
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey"
|
|
6568
|
+
columns: ["milestone_id"]
|
|
6569
|
+
isOneToOne: false
|
|
6570
|
+
referencedRelation: "prj_milestones"
|
|
6571
|
+
referencedColumns: ["id"]
|
|
6572
|
+
},
|
|
6573
|
+
{
|
|
6574
|
+
foreignKeyName: "prj_tasks_organization_id_fkey"
|
|
6575
|
+
columns: ["organization_id"]
|
|
6576
|
+
isOneToOne: false
|
|
6577
|
+
referencedRelation: "organizations"
|
|
6578
|
+
referencedColumns: ["id"]
|
|
6579
|
+
},
|
|
6580
|
+
{
|
|
6581
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey"
|
|
6582
|
+
columns: ["parent_task_id"]
|
|
6583
|
+
isOneToOne: false
|
|
6584
|
+
referencedRelation: "prj_tasks"
|
|
6585
|
+
referencedColumns: ["id"]
|
|
6586
|
+
},
|
|
6587
|
+
{
|
|
6588
|
+
foreignKeyName: "prj_tasks_project_id_fkey"
|
|
6589
|
+
columns: ["project_id"]
|
|
6590
|
+
isOneToOne: false
|
|
6591
|
+
referencedRelation: "prj_projects"
|
|
6592
|
+
referencedColumns: ["id"]
|
|
6593
|
+
},
|
|
6594
|
+
]
|
|
6595
|
+
}
|
|
6596
|
+
reported_requests: {
|
|
6597
|
+
Row: {
|
|
6598
|
+
affected_page: string | null
|
|
6599
|
+
category: string
|
|
6600
|
+
context: Json | null
|
|
6601
|
+
created_at: string
|
|
6602
|
+
description: string
|
|
6603
|
+
evidence: Json | null
|
|
6604
|
+
id: string
|
|
6605
|
+
organization_id: string
|
|
6606
|
+
project_id: string | null
|
|
6607
|
+
reported_at: string
|
|
6608
|
+
reporter_id: string | null
|
|
6609
|
+
resolved_at: string | null
|
|
6610
|
+
severity: string
|
|
6611
|
+
source: string
|
|
6612
|
+
status: string
|
|
6613
|
+
task_id: string | null
|
|
6614
|
+
title: string
|
|
6615
|
+
type: string
|
|
6616
|
+
updated_at: string
|
|
6617
|
+
}
|
|
6618
|
+
Insert: {
|
|
6619
|
+
affected_page?: string | null
|
|
6620
|
+
category: string
|
|
6621
|
+
context?: Json | null
|
|
6622
|
+
created_at?: string
|
|
6623
|
+
description: string
|
|
6624
|
+
evidence?: Json | null
|
|
6625
|
+
id?: string
|
|
6626
|
+
organization_id: string
|
|
6627
|
+
project_id?: string | null
|
|
6628
|
+
reported_at?: string
|
|
6629
|
+
reporter_id?: string | null
|
|
6630
|
+
resolved_at?: string | null
|
|
6631
|
+
severity: string
|
|
6632
|
+
source: string
|
|
6633
|
+
status?: string
|
|
6634
|
+
task_id?: string | null
|
|
6635
|
+
title: string
|
|
6636
|
+
type: string
|
|
6637
|
+
updated_at?: string
|
|
6638
|
+
}
|
|
6639
|
+
Update: {
|
|
6640
|
+
affected_page?: string | null
|
|
6641
|
+
category?: string
|
|
6642
|
+
context?: Json | null
|
|
6643
|
+
created_at?: string
|
|
6644
|
+
description?: string
|
|
6645
|
+
evidence?: Json | null
|
|
6646
|
+
id?: string
|
|
6647
|
+
organization_id?: string
|
|
6648
|
+
project_id?: string | null
|
|
6649
|
+
reported_at?: string
|
|
6650
|
+
reporter_id?: string | null
|
|
6651
|
+
resolved_at?: string | null
|
|
6652
|
+
severity?: string
|
|
6653
|
+
source?: string
|
|
6654
|
+
status?: string
|
|
6655
|
+
task_id?: string | null
|
|
6656
|
+
title?: string
|
|
6657
|
+
type?: string
|
|
6658
|
+
updated_at?: string
|
|
6659
|
+
}
|
|
6660
|
+
Relationships: [
|
|
6661
|
+
{
|
|
6662
|
+
foreignKeyName: "reported_requests_organization_id_fkey"
|
|
6663
|
+
columns: ["organization_id"]
|
|
6664
|
+
isOneToOne: false
|
|
6665
|
+
referencedRelation: "organizations"
|
|
6666
|
+
referencedColumns: ["id"]
|
|
6667
|
+
},
|
|
6668
|
+
{
|
|
6669
|
+
foreignKeyName: "reported_requests_project_id_fkey"
|
|
6670
|
+
columns: ["project_id"]
|
|
6671
|
+
isOneToOne: false
|
|
6672
|
+
referencedRelation: "prj_projects"
|
|
6673
|
+
referencedColumns: ["id"]
|
|
6674
|
+
},
|
|
6675
|
+
{
|
|
6676
|
+
foreignKeyName: "reported_requests_task_id_fkey"
|
|
6677
|
+
columns: ["task_id"]
|
|
6678
|
+
isOneToOne: false
|
|
6679
|
+
referencedRelation: "prj_tasks"
|
|
6680
|
+
referencedColumns: ["id"]
|
|
6681
|
+
},
|
|
6682
|
+
]
|
|
6683
|
+
}
|
|
6684
|
+
session_messages: {
|
|
6685
|
+
Row: {
|
|
6686
|
+
created_at: string | null
|
|
6687
|
+
id: string
|
|
6688
|
+
message: string
|
|
6689
|
+
message_index: number | null
|
|
6690
|
+
message_type: string | null
|
|
6691
|
+
metadata: Json | null
|
|
6692
|
+
role: string
|
|
6693
|
+
session_id: string
|
|
6694
|
+
session_turn_number: number
|
|
6695
|
+
}
|
|
6696
|
+
Insert: {
|
|
6697
|
+
created_at?: string | null
|
|
6698
|
+
id: string
|
|
6699
|
+
message: string
|
|
6700
|
+
message_index?: number | null
|
|
6701
|
+
message_type?: string | null
|
|
6702
|
+
metadata?: Json | null
|
|
6703
|
+
role: string
|
|
6704
|
+
session_id: string
|
|
6705
|
+
session_turn_number: number
|
|
6706
|
+
}
|
|
6707
|
+
Update: {
|
|
6708
|
+
created_at?: string | null
|
|
6709
|
+
id?: string
|
|
6710
|
+
message?: string
|
|
6711
|
+
message_index?: number | null
|
|
6712
|
+
message_type?: string | null
|
|
6713
|
+
metadata?: Json | null
|
|
6714
|
+
role?: string
|
|
6715
|
+
session_id?: string
|
|
6716
|
+
session_turn_number?: number
|
|
6717
|
+
}
|
|
6718
|
+
Relationships: [
|
|
6719
|
+
{
|
|
6720
|
+
foreignKeyName: "session_messages_session_id_fkey"
|
|
6721
|
+
columns: ["session_id"]
|
|
6722
|
+
isOneToOne: false
|
|
6723
|
+
referencedRelation: "sessions"
|
|
6724
|
+
referencedColumns: ["session_id"]
|
|
6725
|
+
},
|
|
6726
|
+
]
|
|
6727
|
+
}
|
|
6728
|
+
sessions: {
|
|
6729
|
+
Row: {
|
|
6730
|
+
context_window_size: number
|
|
6731
|
+
created_at: string | null
|
|
6732
|
+
cumulative_input_tokens: number
|
|
6733
|
+
cumulative_output_tokens: number
|
|
6734
|
+
deleted_at: string | null
|
|
6735
|
+
ended_at: string | null
|
|
6736
|
+
memory_snapshot: Json
|
|
6737
|
+
metadata: Json | null
|
|
6738
|
+
organization_id: string
|
|
6739
|
+
resource_id: string
|
|
6740
|
+
session_id: string
|
|
6741
|
+
session_total_turns: number | null
|
|
6742
|
+
updated_at: string | null
|
|
6743
|
+
user_id: string | null
|
|
6744
|
+
}
|
|
6745
|
+
Insert: {
|
|
6746
|
+
context_window_size?: number
|
|
6747
|
+
created_at?: string | null
|
|
6748
|
+
cumulative_input_tokens?: number
|
|
6749
|
+
cumulative_output_tokens?: number
|
|
6750
|
+
deleted_at?: string | null
|
|
6751
|
+
ended_at?: string | null
|
|
6752
|
+
memory_snapshot: Json
|
|
6753
|
+
metadata?: Json | null
|
|
6754
|
+
organization_id: string
|
|
6755
|
+
resource_id: string
|
|
6756
|
+
session_id?: string
|
|
6757
|
+
session_total_turns?: number | null
|
|
6758
|
+
updated_at?: string | null
|
|
6759
|
+
user_id?: string | null
|
|
6760
|
+
}
|
|
6761
|
+
Update: {
|
|
6762
|
+
context_window_size?: number
|
|
6763
|
+
created_at?: string | null
|
|
6764
|
+
cumulative_input_tokens?: number
|
|
6765
|
+
cumulative_output_tokens?: number
|
|
6766
|
+
deleted_at?: string | null
|
|
6767
|
+
ended_at?: string | null
|
|
6768
|
+
memory_snapshot?: Json
|
|
6769
|
+
metadata?: Json | null
|
|
6770
|
+
organization_id?: string
|
|
6771
|
+
resource_id?: string
|
|
6772
|
+
session_id?: string
|
|
6773
|
+
session_total_turns?: number | null
|
|
6774
|
+
updated_at?: string | null
|
|
6775
|
+
user_id?: string | null
|
|
6776
|
+
}
|
|
6777
|
+
Relationships: [
|
|
6778
|
+
{
|
|
6779
|
+
foreignKeyName: "fk_organization"
|
|
6780
|
+
columns: ["organization_id"]
|
|
6781
|
+
isOneToOne: false
|
|
6782
|
+
referencedRelation: "organizations"
|
|
6783
|
+
referencedColumns: ["id"]
|
|
6784
|
+
},
|
|
6785
|
+
{
|
|
6786
|
+
foreignKeyName: "fk_user"
|
|
6787
|
+
columns: ["user_id"]
|
|
6788
|
+
isOneToOne: false
|
|
6789
|
+
referencedRelation: "users"
|
|
6790
|
+
referencedColumns: ["id"]
|
|
6791
|
+
},
|
|
6792
|
+
]
|
|
6793
|
+
}
|
|
6794
|
+
task_schedules: {
|
|
6795
|
+
Row: {
|
|
6796
|
+
created_at: string
|
|
6797
|
+
current_step: number
|
|
6798
|
+
description: string | null
|
|
6799
|
+
id: string
|
|
6800
|
+
idempotency_key: string | null
|
|
6801
|
+
last_execution_id: string | null
|
|
6802
|
+
last_run_at: string | null
|
|
6803
|
+
max_retries: number
|
|
6804
|
+
metadata: Json | null
|
|
6805
|
+
name: string
|
|
6806
|
+
next_run_at: string | null
|
|
6807
|
+
organization_id: string
|
|
6808
|
+
origin_execution_id: string | null
|
|
6809
|
+
origin_resource_id: string | null
|
|
6810
|
+
origin_resource_type: string | null
|
|
6811
|
+
retry_count: number
|
|
6812
|
+
schedule_config: Json
|
|
6813
|
+
status: string
|
|
6814
|
+
target_resource_id: string
|
|
6815
|
+
target_resource_type: string
|
|
6816
|
+
updated_at: string
|
|
6817
|
+
}
|
|
6818
|
+
Insert: {
|
|
6819
|
+
created_at?: string
|
|
6820
|
+
current_step?: number
|
|
6821
|
+
description?: string | null
|
|
6822
|
+
id?: string
|
|
6823
|
+
idempotency_key?: string | null
|
|
6824
|
+
last_execution_id?: string | null
|
|
6825
|
+
last_run_at?: string | null
|
|
6826
|
+
max_retries?: number
|
|
6827
|
+
metadata?: Json | null
|
|
6828
|
+
name: string
|
|
6829
|
+
next_run_at?: string | null
|
|
6830
|
+
organization_id: string
|
|
6831
|
+
origin_execution_id?: string | null
|
|
6832
|
+
origin_resource_id?: string | null
|
|
6833
|
+
origin_resource_type?: string | null
|
|
6834
|
+
retry_count?: number
|
|
6835
|
+
schedule_config: Json
|
|
6836
|
+
status?: string
|
|
6837
|
+
target_resource_id: string
|
|
6838
|
+
target_resource_type: string
|
|
6839
|
+
updated_at?: string
|
|
6840
|
+
}
|
|
6841
|
+
Update: {
|
|
6842
|
+
created_at?: string
|
|
6843
|
+
current_step?: number
|
|
6844
|
+
description?: string | null
|
|
6845
|
+
id?: string
|
|
6846
|
+
idempotency_key?: string | null
|
|
6847
|
+
last_execution_id?: string | null
|
|
6848
|
+
last_run_at?: string | null
|
|
6849
|
+
max_retries?: number
|
|
6850
|
+
metadata?: Json | null
|
|
6851
|
+
name?: string
|
|
6852
|
+
next_run_at?: string | null
|
|
6853
|
+
organization_id?: string
|
|
6854
|
+
origin_execution_id?: string | null
|
|
6855
|
+
origin_resource_id?: string | null
|
|
6856
|
+
origin_resource_type?: string | null
|
|
6857
|
+
retry_count?: number
|
|
6858
|
+
schedule_config?: Json
|
|
6859
|
+
status?: string
|
|
6860
|
+
target_resource_id?: string
|
|
6861
|
+
target_resource_type?: string
|
|
6862
|
+
updated_at?: string
|
|
6863
|
+
}
|
|
6864
|
+
Relationships: [
|
|
6865
|
+
{
|
|
6866
|
+
foreignKeyName: "task_schedules_organization_id_fkey"
|
|
6867
|
+
columns: ["organization_id"]
|
|
6868
|
+
isOneToOne: false
|
|
6869
|
+
referencedRelation: "organizations"
|
|
6870
|
+
referencedColumns: ["id"]
|
|
6871
|
+
},
|
|
6872
|
+
]
|
|
6873
|
+
}
|
|
6874
|
+
users: {
|
|
6875
|
+
Row: {
|
|
6876
|
+
config: Json
|
|
6877
|
+
created_at: string
|
|
6878
|
+
display_name: string | null
|
|
6879
|
+
email: string
|
|
6880
|
+
first_name: string | null
|
|
6881
|
+
id: string
|
|
6882
|
+
is_active: boolean
|
|
6883
|
+
is_platform_admin: boolean | null
|
|
6884
|
+
last_login_at: string | null
|
|
6885
|
+
last_name: string | null
|
|
6886
|
+
last_visited_org: string | null
|
|
6887
|
+
profile_picture_url: string | null
|
|
6888
|
+
updated_at: string
|
|
6889
|
+
workos_user_id: string | null
|
|
6890
|
+
}
|
|
6891
|
+
Insert: {
|
|
6892
|
+
config?: Json
|
|
6893
|
+
created_at?: string
|
|
6894
|
+
display_name?: string | null
|
|
6895
|
+
email: string
|
|
6896
|
+
first_name?: string | null
|
|
6897
|
+
id?: string
|
|
6898
|
+
is_active?: boolean
|
|
6899
|
+
is_platform_admin?: boolean | null
|
|
6900
|
+
last_login_at?: string | null
|
|
6901
|
+
last_name?: string | null
|
|
6902
|
+
last_visited_org?: string | null
|
|
6903
|
+
profile_picture_url?: string | null
|
|
6904
|
+
updated_at?: string
|
|
6905
|
+
workos_user_id?: string | null
|
|
6906
|
+
}
|
|
6907
|
+
Update: {
|
|
6908
|
+
config?: Json
|
|
6909
|
+
created_at?: string
|
|
6910
|
+
display_name?: string | null
|
|
6911
|
+
email?: string
|
|
6912
|
+
first_name?: string | null
|
|
6913
|
+
id?: string
|
|
6914
|
+
is_active?: boolean
|
|
6915
|
+
is_platform_admin?: boolean | null
|
|
6916
|
+
last_login_at?: string | null
|
|
6917
|
+
last_name?: string | null
|
|
6918
|
+
last_visited_org?: string | null
|
|
6919
|
+
profile_picture_url?: string | null
|
|
6920
|
+
updated_at?: string
|
|
6921
|
+
workos_user_id?: string | null
|
|
6922
|
+
}
|
|
6923
|
+
Relationships: [
|
|
6924
|
+
{
|
|
6925
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey"
|
|
6926
|
+
columns: ["last_visited_org"]
|
|
6927
|
+
isOneToOne: false
|
|
6928
|
+
referencedRelation: "organizations"
|
|
6929
|
+
referencedColumns: ["id"]
|
|
6930
|
+
},
|
|
6931
|
+
]
|
|
6932
|
+
}
|
|
6933
|
+
webhook_endpoints: {
|
|
6934
|
+
Row: {
|
|
6935
|
+
created_at: string
|
|
6936
|
+
description: string | null
|
|
6937
|
+
id: string
|
|
6938
|
+
key: string
|
|
6939
|
+
last_triggered_at: string | null
|
|
6940
|
+
name: string
|
|
6941
|
+
organization_id: string
|
|
6942
|
+
request_count: number
|
|
6943
|
+
resource_id: string | null
|
|
6944
|
+
status: string
|
|
6945
|
+
updated_at: string
|
|
6946
|
+
}
|
|
6947
|
+
Insert: {
|
|
6948
|
+
created_at?: string
|
|
6949
|
+
description?: string | null
|
|
6950
|
+
id?: string
|
|
6951
|
+
key: string
|
|
6952
|
+
last_triggered_at?: string | null
|
|
6953
|
+
name: string
|
|
6954
|
+
organization_id: string
|
|
6955
|
+
request_count?: number
|
|
6956
|
+
resource_id?: string | null
|
|
6957
|
+
status?: string
|
|
6958
|
+
updated_at?: string
|
|
6959
|
+
}
|
|
6960
|
+
Update: {
|
|
6961
|
+
created_at?: string
|
|
6962
|
+
description?: string | null
|
|
6963
|
+
id?: string
|
|
6964
|
+
key?: string
|
|
6965
|
+
last_triggered_at?: string | null
|
|
6966
|
+
name?: string
|
|
6967
|
+
organization_id?: string
|
|
6968
|
+
request_count?: number
|
|
6969
|
+
resource_id?: string | null
|
|
6970
|
+
status?: string
|
|
6971
|
+
updated_at?: string
|
|
6972
|
+
}
|
|
6973
|
+
Relationships: [
|
|
6974
|
+
{
|
|
6975
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey"
|
|
6976
|
+
columns: ["organization_id"]
|
|
6977
|
+
isOneToOne: false
|
|
6978
|
+
referencedRelation: "organizations"
|
|
6979
|
+
referencedColumns: ["id"]
|
|
6980
|
+
},
|
|
6981
|
+
]
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
Views: {
|
|
6985
|
+
[_ in never]: never
|
|
6986
|
+
}
|
|
6987
|
+
Functions: {
|
|
6988
|
+
acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
|
|
6989
|
+
append_deal_activity: {
|
|
6990
|
+
Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
|
|
6991
|
+
Returns: undefined
|
|
6992
|
+
}
|
|
6993
|
+
auth_jwt_claims: { Args: never; Returns: Json }
|
|
6994
|
+
auth_uid_safe: { Args: never; Returns: string }
|
|
6995
|
+
current_user_is_platform_admin: { Args: never; Returns: boolean }
|
|
6996
|
+
current_user_supabase_id: { Args: never; Returns: string }
|
|
6997
|
+
detect_stalled_executions: { Args: never; Returns: undefined }
|
|
6998
|
+
execute_session_turn: {
|
|
6999
|
+
Args: { p_session_id: string }
|
|
7000
|
+
Returns: {
|
|
7001
|
+
created_at: string
|
|
7002
|
+
ended_at: string
|
|
7003
|
+
memory_snapshot: Json
|
|
7004
|
+
metadata: Json
|
|
7005
|
+
organization_id: string
|
|
7006
|
+
resource_id: string
|
|
7007
|
+
session_id: string
|
|
7008
|
+
session_total_turns: number
|
|
7009
|
+
updated_at: string
|
|
7010
|
+
user_id: string
|
|
7011
|
+
}[]
|
|
7012
|
+
}
|
|
7013
|
+
get_storage_org_id: { Args: { file_path: string }; Returns: string }
|
|
7014
|
+
get_workos_user_id: { Args: never; Returns: string }
|
|
7015
|
+
is_org_admin: { Args: { org_id: string }; Returns: boolean }
|
|
7016
|
+
is_org_member: { Args: { org_id: string }; Returns: boolean }
|
|
7017
|
+
link_workos_membership_on_accept: {
|
|
7018
|
+
Args: {
|
|
7019
|
+
p_email: string
|
|
7020
|
+
p_organization_id: string
|
|
7021
|
+
p_workos_membership_id: string
|
|
7022
|
+
}
|
|
7023
|
+
Returns: boolean
|
|
7024
|
+
}
|
|
7025
|
+
pre_provision_invited_user: {
|
|
7026
|
+
Args: {
|
|
7027
|
+
p_email: string
|
|
7028
|
+
p_organization_id: string
|
|
7029
|
+
p_role_slug?: string
|
|
7030
|
+
}
|
|
7031
|
+
Returns: Json
|
|
7032
|
+
}
|
|
7033
|
+
process_due_schedules: { Args: never; Returns: Json }
|
|
7034
|
+
upsert_user_profile: {
|
|
7035
|
+
Args: never
|
|
7036
|
+
Returns: {
|
|
7037
|
+
profile_display_name: string
|
|
7038
|
+
profile_email: string
|
|
7039
|
+
profile_id: string
|
|
7040
|
+
profile_workos_user_id: string
|
|
7041
|
+
}[]
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
Enums: {
|
|
7045
|
+
[_ in never]: never
|
|
7046
|
+
}
|
|
7047
|
+
CompositeTypes: {
|
|
7048
|
+
[_ in never]: never
|
|
7049
|
+
}
|
|
7050
|
+
}
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7053
|
+
type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
|
|
7054
|
+
|
|
7055
7055
|
type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
|
|
7056
7056
|
|
|
7057
|
-
// ---------------------------------------------------------------------------
|
|
7058
|
-
// Response schemas (no .strict() — forward-compatible)
|
|
7059
|
-
// ---------------------------------------------------------------------------
|
|
7060
|
-
|
|
7061
|
-
declare const GetRecentActivityResponseSchema = z.object({
|
|
7062
|
-
entries: z.array(RecentActivityEntrySchema)
|
|
7063
|
-
})
|
|
7057
|
+
// ---------------------------------------------------------------------------
|
|
7058
|
+
// Response schemas (no .strict() — forward-compatible)
|
|
7059
|
+
// ---------------------------------------------------------------------------
|
|
7060
|
+
|
|
7061
|
+
declare const GetRecentActivityResponseSchema = z.object({
|
|
7062
|
+
entries: z.array(RecentActivityEntrySchema)
|
|
7063
|
+
})
|
|
7064
7064
|
type GetRecentActivityResponse = z.infer<typeof GetRecentActivityResponseSchema>
|
|
7065
7065
|
|
|
7066
7066
|
interface ExecuteAsyncResult {
|
|
@@ -7193,22 +7193,22 @@ interface CreateApiKeyResponse {
|
|
|
7193
7193
|
message: string;
|
|
7194
7194
|
}
|
|
7195
7195
|
|
|
7196
|
-
/**
|
|
7197
|
-
* GET /api/credentials - List credentials
|
|
7198
|
-
*/
|
|
7199
|
-
declare const ListCredentialsResponseSchema = z.object({
|
|
7200
|
-
credentials: z.array(
|
|
7201
|
-
z.object({
|
|
7202
|
-
id: UuidSchema,
|
|
7203
|
-
name: z.string(),
|
|
7204
|
-
type: z.string(),
|
|
7205
|
-
provider: z.string().nullable(), // OAuth provider or null for non-OAuth
|
|
7206
|
-
createdAt: z.string().datetime()
|
|
7207
|
-
})
|
|
7208
|
-
)
|
|
7209
|
-
})
|
|
7210
|
-
|
|
7211
|
-
/** API response type for a single credential list item */
|
|
7196
|
+
/**
|
|
7197
|
+
* GET /api/credentials - List credentials
|
|
7198
|
+
*/
|
|
7199
|
+
declare const ListCredentialsResponseSchema = z.object({
|
|
7200
|
+
credentials: z.array(
|
|
7201
|
+
z.object({
|
|
7202
|
+
id: UuidSchema,
|
|
7203
|
+
name: z.string(),
|
|
7204
|
+
type: z.string(),
|
|
7205
|
+
provider: z.string().nullable(), // OAuth provider or null for non-OAuth
|
|
7206
|
+
createdAt: z.string().datetime()
|
|
7207
|
+
})
|
|
7208
|
+
)
|
|
7209
|
+
})
|
|
7210
|
+
|
|
7211
|
+
/** API response type for a single credential list item */
|
|
7212
7212
|
type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number]
|
|
7213
7213
|
|
|
7214
7214
|
interface CreateCredentialResponse {
|
|
@@ -7217,24 +7217,24 @@ interface CreateCredentialResponse {
|
|
|
7217
7217
|
type: string;
|
|
7218
7218
|
}
|
|
7219
7219
|
|
|
7220
|
-
/**
|
|
7221
|
-
* Response shape for a single webhook endpoint.
|
|
7222
|
-
* NOT strict — response schemas allow extra fields for forward compatibility.
|
|
7223
|
-
*/
|
|
7224
|
-
declare const WebhookEndpointResponseSchema = z.object({
|
|
7225
|
-
id: UuidSchema,
|
|
7226
|
-
organizationId: UuidSchema,
|
|
7227
|
-
key: z.string(),
|
|
7228
|
-
name: z.string(),
|
|
7229
|
-
description: z.string().nullable(),
|
|
7230
|
-
resourceId: z.string().nullable(),
|
|
7231
|
-
status: WebhookEndpointStatusSchema,
|
|
7232
|
-
lastTriggeredAt: z.string().datetime().nullable(),
|
|
7233
|
-
requestCount: z.number().int().min(0),
|
|
7234
|
-
createdAt: z.string().datetime(),
|
|
7235
|
-
updatedAt: z.string().datetime()
|
|
7236
|
-
})
|
|
7237
|
-
|
|
7220
|
+
/**
|
|
7221
|
+
* Response shape for a single webhook endpoint.
|
|
7222
|
+
* NOT strict — response schemas allow extra fields for forward compatibility.
|
|
7223
|
+
*/
|
|
7224
|
+
declare const WebhookEndpointResponseSchema = z.object({
|
|
7225
|
+
id: UuidSchema,
|
|
7226
|
+
organizationId: UuidSchema,
|
|
7227
|
+
key: z.string(),
|
|
7228
|
+
name: z.string(),
|
|
7229
|
+
description: z.string().nullable(),
|
|
7230
|
+
resourceId: z.string().nullable(),
|
|
7231
|
+
status: WebhookEndpointStatusSchema,
|
|
7232
|
+
lastTriggeredAt: z.string().datetime().nullable(),
|
|
7233
|
+
requestCount: z.number().int().min(0),
|
|
7234
|
+
createdAt: z.string().datetime(),
|
|
7235
|
+
updatedAt: z.string().datetime()
|
|
7236
|
+
})
|
|
7237
|
+
|
|
7238
7238
|
type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>
|
|
7239
7239
|
|
|
7240
7240
|
interface ActivityFilters$1 {
|