@elevasis/ui 2.67.0 → 2.69.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.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +575 -370
- package/dist/app/index.js +17 -23
- package/dist/auth/index.css +149 -149
- package/dist/auth/index.d.ts +5 -0
- package/dist/auth/index.js +11 -13
- package/dist/charts/index.css +208 -208
- package/dist/charts/index.js +11 -13
- package/dist/{chunk-M535KHLW.js → chunk-26BTE3Z4.js} +1 -1
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/chunk-3MEXPLWT.js +265 -0
- package/dist/chunk-4JHLS234.js +39 -0
- package/dist/chunk-6PZFOHJK.js +1764 -0
- package/dist/chunk-7WJEPTE7.js +194 -0
- package/dist/chunk-AH52XQB7.js +1 -0
- package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
- package/dist/chunk-BZZCNLT6.js +12 -0
- package/dist/chunk-C75XWBYZ.js +383 -0
- package/dist/chunk-DLR4SDZW.js +51 -0
- package/dist/{chunk-4OEVLV66.js → chunk-FLECOYUS.js} +113 -148
- package/dist/chunk-IRV6KJPV.js +425 -0
- package/dist/chunk-IT7GTJCB.js +10 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MFLM7BVC.js +85 -0
- package/dist/chunk-MRVGQLWN.js +1595 -0
- package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
- package/dist/{chunk-I7BZVVVU.js → chunk-NM4A63KJ.js} +104 -415
- package/dist/chunk-NU3NBXHP.js +1194 -0
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-RW64UJWT.js +1934 -0
- package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
- package/dist/chunk-TUMSNGTX.js +35 -0
- package/dist/chunk-UD657ICS.js +589 -0
- package/dist/{chunk-XNW3O6QW.js → chunk-VDX6DL7Z.js} +1 -1
- package/dist/chunk-WXHAHKKI.js +16411 -0
- package/dist/chunk-XAZR3T6Y.js +2162 -0
- package/dist/chunk-XQ3ILKYN.js +37 -0
- package/dist/chunk-YCRINA2D.js +67 -0
- package/dist/chunk-YGCMMOY4.js +1484 -0
- package/dist/chunk-YNRYIXUT.js +10945 -0
- package/dist/chunk-ZD6LM53O.js +4528 -0
- package/dist/chunk-ZPTEGGKU.js +631 -0
- package/dist/components/chat/index.js +2 -1
- package/dist/components/index.css +208 -208
- package/dist/components/index.d.ts +1634 -264
- package/dist/components/index.js +2774 -14
- package/dist/components/navigation/index.css +149 -149
- package/dist/components/navigation/index.js +12 -13
- package/dist/features/auth/index.css +149 -149
- package/dist/features/auth/index.d.ts +457 -167
- package/dist/features/auth/index.js +13 -14
- package/dist/features/clients/index.css +208 -208
- package/dist/features/clients/index.d.ts +39 -1
- package/dist/features/clients/index.js +16 -13
- package/dist/features/content/index.d.ts +1788 -0
- package/dist/features/content/index.js +2180 -0
- package/dist/features/crm/index.d.ts +1802 -231
- package/dist/features/crm/index.js +16 -13
- package/dist/features/dashboard/index.d.ts +1 -8
- package/dist/features/dashboard/index.js +17 -13
- package/dist/features/delivery/index.d.ts +457 -167
- package/dist/features/delivery/index.js +16 -13
- package/dist/features/knowledge/index.css +149 -149
- package/dist/features/knowledge/index.js +11 -13
- package/dist/features/lead-gen/index.d.ts +53 -104
- package/dist/features/lead-gen/index.js +17 -13
- package/dist/features/monitoring/index.js +16 -13
- package/dist/features/monitoring/requests/index.js +15 -20
- package/dist/features/operations/index.d.ts +1 -86
- package/dist/features/operations/index.js +22 -12
- package/dist/features/public-agent-chat/index.js +2 -1
- package/dist/features/seo/index.js +2 -1
- package/dist/features/settings/index.d.ts +457 -167
- package/dist/features/settings/index.js +15 -13
- package/dist/hooks/access/index.css +149 -149
- package/dist/hooks/access/index.d.ts +5 -0
- package/dist/hooks/access/index.js +11 -13
- package/dist/hooks/delivery/index.d.ts +457 -167
- package/dist/hooks/delivery/index.js +2 -23
- package/dist/hooks/index.d.ts +2203 -244
- package/dist/hooks/index.js +11 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -8
- package/dist/hooks/published.d.ts +2203 -244
- package/dist/hooks/published.js +11 -13
- package/dist/initialization/index.d.ts +465 -169
- package/dist/knowledge/index.css +149 -149
- package/dist/knowledge/index.d.ts +5 -90
- package/dist/knowledge/index.js +3215 -3203
- package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
- package/dist/layout/index.css +149 -149
- package/dist/layout/index.js +15 -13
- package/dist/organization/index.d.ts +10 -4
- package/dist/organization/index.js +1 -21
- package/dist/profile/index.d.ts +457 -167
- package/dist/provider/index.d.ts +576 -372
- package/dist/provider/index.js +11 -13
- package/dist/provider/published.css +149 -149
- package/dist/provider/published.d.ts +576 -372
- package/dist/provider/published.js +11 -13
- package/dist/supabase/index.d.ts +906 -347
- package/dist/test-utils/index.d.ts +15 -2
- package/dist/test-utils/index.js +41 -12
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -2
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +2049 -1
- package/dist/types/index.d.ts +477 -177
- package/dist/utils/index.d.ts +1 -8
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +7 -3
- package/src/features/README.md +28 -28
- package/dist/chunk-5TERYXOO.js +0 -51390
- package/dist/chunk-AUDNF2Q7.js +0 -2050
- package/dist/index.d.ts +0 -17888
- package/dist/index.js +0 -30
- package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
- package/dist/{index.css → features/content/index.css} +149 -149
|
@@ -2,9 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ComponentType, CSSProperties, ReactElement, Component, ErrorInfo } from 'react';
|
|
4
4
|
import { MantineSpacing, MantineColor, MantineLoaderComponent, BadgeProps } from '@mantine/core';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
import { Icon, IconBrain } from '@tabler/icons-react';
|
|
6
7
|
import { Components } from 'react-markdown';
|
|
7
|
-
import { z } from 'zod';
|
|
8
8
|
import { NodeProps, Node, EdgeProps, Edge } from '@xyflow/react';
|
|
9
9
|
export { default as graphStyles } from '../graph/Graph.module.css';
|
|
10
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -448,53 +448,6 @@ type Json = string | number | boolean | null | {
|
|
|
448
448
|
type Database = {
|
|
449
449
|
public: {
|
|
450
450
|
Tables: {
|
|
451
|
-
acq_artifacts: {
|
|
452
|
-
Row: {
|
|
453
|
-
content: Json;
|
|
454
|
-
created_at: string;
|
|
455
|
-
created_by: string | null;
|
|
456
|
-
id: string;
|
|
457
|
-
kind: string;
|
|
458
|
-
organization_id: string;
|
|
459
|
-
owner_id: string;
|
|
460
|
-
owner_kind: string;
|
|
461
|
-
source_execution_id: string | null;
|
|
462
|
-
version: number;
|
|
463
|
-
};
|
|
464
|
-
Insert: {
|
|
465
|
-
content: Json;
|
|
466
|
-
created_at?: string;
|
|
467
|
-
created_by?: string | null;
|
|
468
|
-
id?: string;
|
|
469
|
-
kind: string;
|
|
470
|
-
organization_id: string;
|
|
471
|
-
owner_id: string;
|
|
472
|
-
owner_kind: string;
|
|
473
|
-
source_execution_id?: string | null;
|
|
474
|
-
version?: number;
|
|
475
|
-
};
|
|
476
|
-
Update: {
|
|
477
|
-
content?: Json;
|
|
478
|
-
created_at?: string;
|
|
479
|
-
created_by?: string | null;
|
|
480
|
-
id?: string;
|
|
481
|
-
kind?: string;
|
|
482
|
-
organization_id?: string;
|
|
483
|
-
owner_id?: string;
|
|
484
|
-
owner_kind?: string;
|
|
485
|
-
source_execution_id?: string | null;
|
|
486
|
-
version?: number;
|
|
487
|
-
};
|
|
488
|
-
Relationships: [
|
|
489
|
-
{
|
|
490
|
-
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
491
|
-
columns: ["organization_id"];
|
|
492
|
-
isOneToOne: false;
|
|
493
|
-
referencedRelation: "organizations";
|
|
494
|
-
referencedColumns: ["id"];
|
|
495
|
-
}
|
|
496
|
-
];
|
|
497
|
-
};
|
|
498
451
|
acq_companies: {
|
|
499
452
|
Row: {
|
|
500
453
|
batch_id: string | null;
|
|
@@ -706,122 +659,6 @@ type Database = {
|
|
|
706
659
|
}
|
|
707
660
|
];
|
|
708
661
|
};
|
|
709
|
-
acq_content: {
|
|
710
|
-
Row: {
|
|
711
|
-
body: string | null;
|
|
712
|
-
created_at: string;
|
|
713
|
-
id: string;
|
|
714
|
-
organization_id: string;
|
|
715
|
-
pillar: string;
|
|
716
|
-
status: string;
|
|
717
|
-
title: string;
|
|
718
|
-
updated_at: string;
|
|
719
|
-
};
|
|
720
|
-
Insert: {
|
|
721
|
-
body?: string | null;
|
|
722
|
-
created_at?: string;
|
|
723
|
-
id?: string;
|
|
724
|
-
organization_id: string;
|
|
725
|
-
pillar: string;
|
|
726
|
-
status?: string;
|
|
727
|
-
title: string;
|
|
728
|
-
updated_at?: string;
|
|
729
|
-
};
|
|
730
|
-
Update: {
|
|
731
|
-
body?: string | null;
|
|
732
|
-
created_at?: string;
|
|
733
|
-
id?: string;
|
|
734
|
-
organization_id?: string;
|
|
735
|
-
pillar?: string;
|
|
736
|
-
status?: string;
|
|
737
|
-
title?: string;
|
|
738
|
-
updated_at?: string;
|
|
739
|
-
};
|
|
740
|
-
Relationships: [
|
|
741
|
-
{
|
|
742
|
-
foreignKeyName: "acq_content_organization_id_fkey";
|
|
743
|
-
columns: ["organization_id"];
|
|
744
|
-
isOneToOne: false;
|
|
745
|
-
referencedRelation: "organizations";
|
|
746
|
-
referencedColumns: ["id"];
|
|
747
|
-
}
|
|
748
|
-
];
|
|
749
|
-
};
|
|
750
|
-
acq_content_distributions: {
|
|
751
|
-
Row: {
|
|
752
|
-
adapted_body: string | null;
|
|
753
|
-
checklist: Json | null;
|
|
754
|
-
content_id: string;
|
|
755
|
-
created_at: string;
|
|
756
|
-
format: string;
|
|
757
|
-
id: string;
|
|
758
|
-
media_urls: Json;
|
|
759
|
-
metrics: Json;
|
|
760
|
-
metrics_updated_at: string | null;
|
|
761
|
-
organization_id: string;
|
|
762
|
-
platform: string;
|
|
763
|
-
platform_content: Json | null;
|
|
764
|
-
platform_post_id: string | null;
|
|
765
|
-
platform_url: string | null;
|
|
766
|
-
published_at: string | null;
|
|
767
|
-
status: string;
|
|
768
|
-
updated_at: string;
|
|
769
|
-
};
|
|
770
|
-
Insert: {
|
|
771
|
-
adapted_body?: string | null;
|
|
772
|
-
checklist?: Json | null;
|
|
773
|
-
content_id: string;
|
|
774
|
-
created_at?: string;
|
|
775
|
-
format: string;
|
|
776
|
-
id?: string;
|
|
777
|
-
media_urls?: Json;
|
|
778
|
-
metrics?: Json;
|
|
779
|
-
metrics_updated_at?: string | null;
|
|
780
|
-
organization_id: string;
|
|
781
|
-
platform: string;
|
|
782
|
-
platform_content?: Json | null;
|
|
783
|
-
platform_post_id?: string | null;
|
|
784
|
-
platform_url?: string | null;
|
|
785
|
-
published_at?: string | null;
|
|
786
|
-
status?: string;
|
|
787
|
-
updated_at?: string;
|
|
788
|
-
};
|
|
789
|
-
Update: {
|
|
790
|
-
adapted_body?: string | null;
|
|
791
|
-
checklist?: Json | null;
|
|
792
|
-
content_id?: string;
|
|
793
|
-
created_at?: string;
|
|
794
|
-
format?: string;
|
|
795
|
-
id?: string;
|
|
796
|
-
media_urls?: Json;
|
|
797
|
-
metrics?: Json;
|
|
798
|
-
metrics_updated_at?: string | null;
|
|
799
|
-
organization_id?: string;
|
|
800
|
-
platform?: string;
|
|
801
|
-
platform_content?: Json | null;
|
|
802
|
-
platform_post_id?: string | null;
|
|
803
|
-
platform_url?: string | null;
|
|
804
|
-
published_at?: string | null;
|
|
805
|
-
status?: string;
|
|
806
|
-
updated_at?: string;
|
|
807
|
-
};
|
|
808
|
-
Relationships: [
|
|
809
|
-
{
|
|
810
|
-
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
811
|
-
columns: ["content_id"];
|
|
812
|
-
isOneToOne: false;
|
|
813
|
-
referencedRelation: "acq_content";
|
|
814
|
-
referencedColumns: ["id"];
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
818
|
-
columns: ["organization_id"];
|
|
819
|
-
isOneToOne: false;
|
|
820
|
-
referencedRelation: "organizations";
|
|
821
|
-
referencedColumns: ["id"];
|
|
822
|
-
}
|
|
823
|
-
];
|
|
824
|
-
};
|
|
825
662
|
acq_deal_notes: {
|
|
826
663
|
Row: {
|
|
827
664
|
author_user_id: string | null;
|
|
@@ -851,6 +688,13 @@ type Database = {
|
|
|
851
688
|
updated_at?: string;
|
|
852
689
|
};
|
|
853
690
|
Relationships: [
|
|
691
|
+
{
|
|
692
|
+
foreignKeyName: "acq_deal_notes_author_user_id_fkey";
|
|
693
|
+
columns: ["author_user_id"];
|
|
694
|
+
isOneToOne: false;
|
|
695
|
+
referencedRelation: "users";
|
|
696
|
+
referencedColumns: ["id"];
|
|
697
|
+
},
|
|
854
698
|
{
|
|
855
699
|
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
856
700
|
columns: ["deal_id"];
|
|
@@ -914,6 +758,27 @@ type Database = {
|
|
|
914
758
|
updated_at?: string;
|
|
915
759
|
};
|
|
916
760
|
Relationships: [
|
|
761
|
+
{
|
|
762
|
+
foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
|
|
763
|
+
columns: ["assignee_user_id"];
|
|
764
|
+
isOneToOne: false;
|
|
765
|
+
referencedRelation: "users";
|
|
766
|
+
referencedColumns: ["id"];
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
|
|
770
|
+
columns: ["completed_by_user_id"];
|
|
771
|
+
isOneToOne: false;
|
|
772
|
+
referencedRelation: "users";
|
|
773
|
+
referencedColumns: ["id"];
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
|
|
777
|
+
columns: ["created_by_user_id"];
|
|
778
|
+
isOneToOne: false;
|
|
779
|
+
referencedRelation: "users";
|
|
780
|
+
referencedColumns: ["id"];
|
|
781
|
+
},
|
|
917
782
|
{
|
|
918
783
|
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
919
784
|
columns: ["deal_id"];
|
|
@@ -1070,6 +935,13 @@ type Database = {
|
|
|
1070
935
|
referencedRelation: "acq_contacts";
|
|
1071
936
|
referencedColumns: ["id"];
|
|
1072
937
|
},
|
|
938
|
+
{
|
|
939
|
+
foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
|
|
940
|
+
columns: ["discovery_submitted_by"];
|
|
941
|
+
isOneToOne: false;
|
|
942
|
+
referencedRelation: "users";
|
|
943
|
+
referencedColumns: ["id"];
|
|
944
|
+
},
|
|
1073
945
|
{
|
|
1074
946
|
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
1075
947
|
columns: ["organization_id"];
|
|
@@ -1077,6 +949,13 @@ type Database = {
|
|
|
1077
949
|
referencedRelation: "organizations";
|
|
1078
950
|
referencedColumns: ["id"];
|
|
1079
951
|
},
|
|
952
|
+
{
|
|
953
|
+
foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
|
|
954
|
+
columns: ["proposal_reviewed_by"];
|
|
955
|
+
isOneToOne: false;
|
|
956
|
+
referencedRelation: "users";
|
|
957
|
+
referencedColumns: ["id"];
|
|
958
|
+
},
|
|
1080
959
|
{
|
|
1081
960
|
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
1082
961
|
columns: ["source_list_id"];
|
|
@@ -1130,6 +1009,13 @@ type Database = {
|
|
|
1130
1009
|
state_key?: string;
|
|
1131
1010
|
};
|
|
1132
1011
|
Relationships: [
|
|
1012
|
+
{
|
|
1013
|
+
foreignKeyName: "acq_list_companies_added_by_fkey";
|
|
1014
|
+
columns: ["added_by"];
|
|
1015
|
+
isOneToOne: false;
|
|
1016
|
+
referencedRelation: "users";
|
|
1017
|
+
referencedColumns: ["id"];
|
|
1018
|
+
},
|
|
1133
1019
|
{
|
|
1134
1020
|
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
1135
1021
|
columns: ["company_id"];
|
|
@@ -1236,6 +1122,13 @@ type Database = {
|
|
|
1236
1122
|
state_key?: string;
|
|
1237
1123
|
};
|
|
1238
1124
|
Relationships: [
|
|
1125
|
+
{
|
|
1126
|
+
foreignKeyName: "acq_list_members_added_by_fkey";
|
|
1127
|
+
columns: ["added_by"];
|
|
1128
|
+
isOneToOne: false;
|
|
1129
|
+
referencedRelation: "users";
|
|
1130
|
+
referencedColumns: ["id"];
|
|
1131
|
+
},
|
|
1239
1132
|
{
|
|
1240
1133
|
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
1241
1134
|
columns: ["contact_id"];
|
|
@@ -1636,6 +1529,13 @@ type Database = {
|
|
|
1636
1529
|
title?: string;
|
|
1637
1530
|
};
|
|
1638
1531
|
Relationships: [
|
|
1532
|
+
{
|
|
1533
|
+
foreignKeyName: "activities_actor_id_fkey";
|
|
1534
|
+
columns: ["actor_id"];
|
|
1535
|
+
isOneToOne: false;
|
|
1536
|
+
referencedRelation: "users";
|
|
1537
|
+
referencedColumns: ["id"];
|
|
1538
|
+
},
|
|
1639
1539
|
{
|
|
1640
1540
|
foreignKeyName: "activities_organization_id_fkey";
|
|
1641
1541
|
columns: ["organization_id"];
|
|
@@ -1748,6 +1648,62 @@ type Database = {
|
|
|
1748
1648
|
}
|
|
1749
1649
|
];
|
|
1750
1650
|
};
|
|
1651
|
+
artifacts: {
|
|
1652
|
+
Row: {
|
|
1653
|
+
content: Json;
|
|
1654
|
+
created_at: string;
|
|
1655
|
+
created_by: string | null;
|
|
1656
|
+
id: string;
|
|
1657
|
+
is_active: boolean;
|
|
1658
|
+
kind: string;
|
|
1659
|
+
organization_id: string;
|
|
1660
|
+
owner_id: string | null;
|
|
1661
|
+
owner_kind: string;
|
|
1662
|
+
pipeline_id: string | null;
|
|
1663
|
+
source_execution_id: string | null;
|
|
1664
|
+
updated_at: string;
|
|
1665
|
+
version: number;
|
|
1666
|
+
};
|
|
1667
|
+
Insert: {
|
|
1668
|
+
content: Json;
|
|
1669
|
+
created_at?: string;
|
|
1670
|
+
created_by?: string | null;
|
|
1671
|
+
id?: string;
|
|
1672
|
+
is_active?: boolean;
|
|
1673
|
+
kind: string;
|
|
1674
|
+
organization_id: string;
|
|
1675
|
+
owner_id?: string | null;
|
|
1676
|
+
owner_kind: string;
|
|
1677
|
+
pipeline_id?: string | null;
|
|
1678
|
+
source_execution_id?: string | null;
|
|
1679
|
+
updated_at?: string;
|
|
1680
|
+
version?: number;
|
|
1681
|
+
};
|
|
1682
|
+
Update: {
|
|
1683
|
+
content?: Json;
|
|
1684
|
+
created_at?: string;
|
|
1685
|
+
created_by?: string | null;
|
|
1686
|
+
id?: string;
|
|
1687
|
+
is_active?: boolean;
|
|
1688
|
+
kind?: string;
|
|
1689
|
+
organization_id?: string;
|
|
1690
|
+
owner_id?: string | null;
|
|
1691
|
+
owner_kind?: string;
|
|
1692
|
+
pipeline_id?: string | null;
|
|
1693
|
+
source_execution_id?: string | null;
|
|
1694
|
+
updated_at?: string;
|
|
1695
|
+
version?: number;
|
|
1696
|
+
};
|
|
1697
|
+
Relationships: [
|
|
1698
|
+
{
|
|
1699
|
+
foreignKeyName: "artifacts_organization_id_fkey";
|
|
1700
|
+
columns: ["organization_id"];
|
|
1701
|
+
isOneToOne: false;
|
|
1702
|
+
referencedRelation: "organizations";
|
|
1703
|
+
referencedColumns: ["id"];
|
|
1704
|
+
}
|
|
1705
|
+
];
|
|
1706
|
+
};
|
|
1751
1707
|
clients: {
|
|
1752
1708
|
Row: {
|
|
1753
1709
|
converted_at: string | null;
|
|
@@ -1803,119 +1759,424 @@ type Database = {
|
|
|
1803
1759
|
foreignKeyName: "clients_primary_company_id_fkey";
|
|
1804
1760
|
columns: ["primary_company_id"];
|
|
1805
1761
|
isOneToOne: false;
|
|
1806
|
-
referencedRelation: "acq_companies";
|
|
1762
|
+
referencedRelation: "acq_companies";
|
|
1763
|
+
referencedColumns: ["id"];
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
foreignKeyName: "clients_primary_contact_id_fkey";
|
|
1767
|
+
columns: ["primary_contact_id"];
|
|
1768
|
+
isOneToOne: false;
|
|
1769
|
+
referencedRelation: "acq_contacts";
|
|
1770
|
+
referencedColumns: ["id"];
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
foreignKeyName: "clients_source_deal_id_fkey";
|
|
1774
|
+
columns: ["source_deal_id"];
|
|
1775
|
+
isOneToOne: false;
|
|
1776
|
+
referencedRelation: "acq_deals";
|
|
1777
|
+
referencedColumns: ["id"];
|
|
1778
|
+
}
|
|
1779
|
+
];
|
|
1780
|
+
};
|
|
1781
|
+
command_queue: {
|
|
1782
|
+
Row: {
|
|
1783
|
+
action_payload: Json | null;
|
|
1784
|
+
actions: Json;
|
|
1785
|
+
completed_at: string | null;
|
|
1786
|
+
completed_by: string | null;
|
|
1787
|
+
context: Json;
|
|
1788
|
+
created_at: string;
|
|
1789
|
+
description: string | null;
|
|
1790
|
+
expires_at: string | null;
|
|
1791
|
+
human_checkpoint: string | null;
|
|
1792
|
+
id: string;
|
|
1793
|
+
idempotency_key: string | null;
|
|
1794
|
+
metadata: Json | null;
|
|
1795
|
+
organization_id: string;
|
|
1796
|
+
origin_execution_id: string;
|
|
1797
|
+
origin_resource_id: string;
|
|
1798
|
+
origin_resource_type: string;
|
|
1799
|
+
priority: number;
|
|
1800
|
+
selected_action: string | null;
|
|
1801
|
+
status: string;
|
|
1802
|
+
target_execution_id: string | null;
|
|
1803
|
+
target_resource_id: string | null;
|
|
1804
|
+
target_resource_type: string | null;
|
|
1805
|
+
};
|
|
1806
|
+
Insert: {
|
|
1807
|
+
action_payload?: Json | null;
|
|
1808
|
+
actions: Json;
|
|
1809
|
+
completed_at?: string | null;
|
|
1810
|
+
completed_by?: string | null;
|
|
1811
|
+
context: Json;
|
|
1812
|
+
created_at?: string;
|
|
1813
|
+
description?: string | null;
|
|
1814
|
+
expires_at?: string | null;
|
|
1815
|
+
human_checkpoint?: string | null;
|
|
1816
|
+
id?: string;
|
|
1817
|
+
idempotency_key?: string | null;
|
|
1818
|
+
metadata?: Json | null;
|
|
1819
|
+
organization_id: string;
|
|
1820
|
+
origin_execution_id: string;
|
|
1821
|
+
origin_resource_id: string;
|
|
1822
|
+
origin_resource_type: string;
|
|
1823
|
+
priority?: number;
|
|
1824
|
+
selected_action?: string | null;
|
|
1825
|
+
status?: string;
|
|
1826
|
+
target_execution_id?: string | null;
|
|
1827
|
+
target_resource_id?: string | null;
|
|
1828
|
+
target_resource_type?: string | null;
|
|
1829
|
+
};
|
|
1830
|
+
Update: {
|
|
1831
|
+
action_payload?: Json | null;
|
|
1832
|
+
actions?: Json;
|
|
1833
|
+
completed_at?: string | null;
|
|
1834
|
+
completed_by?: string | null;
|
|
1835
|
+
context?: Json;
|
|
1836
|
+
created_at?: string;
|
|
1837
|
+
description?: string | null;
|
|
1838
|
+
expires_at?: string | null;
|
|
1839
|
+
human_checkpoint?: string | null;
|
|
1840
|
+
id?: string;
|
|
1841
|
+
idempotency_key?: string | null;
|
|
1842
|
+
metadata?: Json | null;
|
|
1843
|
+
organization_id?: string;
|
|
1844
|
+
origin_execution_id?: string;
|
|
1845
|
+
origin_resource_id?: string;
|
|
1846
|
+
origin_resource_type?: string;
|
|
1847
|
+
priority?: number;
|
|
1848
|
+
selected_action?: string | null;
|
|
1849
|
+
status?: string;
|
|
1850
|
+
target_execution_id?: string | null;
|
|
1851
|
+
target_resource_id?: string | null;
|
|
1852
|
+
target_resource_type?: string | null;
|
|
1853
|
+
};
|
|
1854
|
+
Relationships: [
|
|
1855
|
+
{
|
|
1856
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
1857
|
+
columns: ["completed_by"];
|
|
1858
|
+
isOneToOne: false;
|
|
1859
|
+
referencedRelation: "users";
|
|
1860
|
+
referencedColumns: ["id"];
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1864
|
+
columns: ["organization_id"];
|
|
1865
|
+
isOneToOne: false;
|
|
1866
|
+
referencedRelation: "organizations";
|
|
1867
|
+
referencedColumns: ["id"];
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1871
|
+
columns: ["target_execution_id"];
|
|
1872
|
+
isOneToOne: false;
|
|
1873
|
+
referencedRelation: "execution_logs";
|
|
1874
|
+
referencedColumns: ["execution_id"];
|
|
1875
|
+
}
|
|
1876
|
+
];
|
|
1877
|
+
};
|
|
1878
|
+
content_distributions: {
|
|
1879
|
+
Row: {
|
|
1880
|
+
adapted_body: string | null;
|
|
1881
|
+
checklist: Json | null;
|
|
1882
|
+
content_item_id: string;
|
|
1883
|
+
created_at: string;
|
|
1884
|
+
format: string;
|
|
1885
|
+
id: string;
|
|
1886
|
+
media_urls: Json;
|
|
1887
|
+
metrics: Json;
|
|
1888
|
+
metrics_updated_at: string | null;
|
|
1889
|
+
organization_id: string;
|
|
1890
|
+
platform: string;
|
|
1891
|
+
platform_content: Json | null;
|
|
1892
|
+
platform_post_id: string | null;
|
|
1893
|
+
platform_url: string | null;
|
|
1894
|
+
processing_state: Json;
|
|
1895
|
+
publish_method: string | null;
|
|
1896
|
+
published_at: string | null;
|
|
1897
|
+
status: string;
|
|
1898
|
+
updated_at: string;
|
|
1899
|
+
};
|
|
1900
|
+
Insert: {
|
|
1901
|
+
adapted_body?: string | null;
|
|
1902
|
+
checklist?: Json | null;
|
|
1903
|
+
content_item_id: string;
|
|
1904
|
+
created_at?: string;
|
|
1905
|
+
format: string;
|
|
1906
|
+
id?: string;
|
|
1907
|
+
media_urls?: Json;
|
|
1908
|
+
metrics?: Json;
|
|
1909
|
+
metrics_updated_at?: string | null;
|
|
1910
|
+
organization_id: string;
|
|
1911
|
+
platform: string;
|
|
1912
|
+
platform_content?: Json | null;
|
|
1913
|
+
platform_post_id?: string | null;
|
|
1914
|
+
platform_url?: string | null;
|
|
1915
|
+
processing_state?: Json;
|
|
1916
|
+
publish_method?: string | null;
|
|
1917
|
+
published_at?: string | null;
|
|
1918
|
+
status?: string;
|
|
1919
|
+
updated_at?: string;
|
|
1920
|
+
};
|
|
1921
|
+
Update: {
|
|
1922
|
+
adapted_body?: string | null;
|
|
1923
|
+
checklist?: Json | null;
|
|
1924
|
+
content_item_id?: string;
|
|
1925
|
+
created_at?: string;
|
|
1926
|
+
format?: string;
|
|
1927
|
+
id?: string;
|
|
1928
|
+
media_urls?: Json;
|
|
1929
|
+
metrics?: Json;
|
|
1930
|
+
metrics_updated_at?: string | null;
|
|
1931
|
+
organization_id?: string;
|
|
1932
|
+
platform?: string;
|
|
1933
|
+
platform_content?: Json | null;
|
|
1934
|
+
platform_post_id?: string | null;
|
|
1935
|
+
platform_url?: string | null;
|
|
1936
|
+
processing_state?: Json;
|
|
1937
|
+
publish_method?: string | null;
|
|
1938
|
+
published_at?: string | null;
|
|
1939
|
+
status?: string;
|
|
1940
|
+
updated_at?: string;
|
|
1941
|
+
};
|
|
1942
|
+
Relationships: [
|
|
1943
|
+
{
|
|
1944
|
+
foreignKeyName: "content_distributions_content_item_id_fkey";
|
|
1945
|
+
columns: ["content_item_id"];
|
|
1946
|
+
isOneToOne: false;
|
|
1947
|
+
referencedRelation: "content_items";
|
|
1948
|
+
referencedColumns: ["id"];
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
foreignKeyName: "content_distributions_organization_id_fkey";
|
|
1952
|
+
columns: ["organization_id"];
|
|
1953
|
+
isOneToOne: false;
|
|
1954
|
+
referencedRelation: "organizations";
|
|
1955
|
+
referencedColumns: ["id"];
|
|
1956
|
+
}
|
|
1957
|
+
];
|
|
1958
|
+
};
|
|
1959
|
+
content_item_attempts: {
|
|
1960
|
+
Row: {
|
|
1961
|
+
attempt_number: number;
|
|
1962
|
+
content_item_id: string;
|
|
1963
|
+
created_at: string;
|
|
1964
|
+
created_by: string | null;
|
|
1965
|
+
id: string;
|
|
1966
|
+
organization_id: string;
|
|
1967
|
+
payload: Json;
|
|
1968
|
+
source_execution_id: string | null;
|
|
1969
|
+
step_key: string | null;
|
|
1970
|
+
};
|
|
1971
|
+
Insert: {
|
|
1972
|
+
attempt_number: number;
|
|
1973
|
+
content_item_id: string;
|
|
1974
|
+
created_at?: string;
|
|
1975
|
+
created_by?: string | null;
|
|
1976
|
+
id?: string;
|
|
1977
|
+
organization_id: string;
|
|
1978
|
+
payload?: Json;
|
|
1979
|
+
source_execution_id?: string | null;
|
|
1980
|
+
step_key?: string | null;
|
|
1981
|
+
};
|
|
1982
|
+
Update: {
|
|
1983
|
+
attempt_number?: number;
|
|
1984
|
+
content_item_id?: string;
|
|
1985
|
+
created_at?: string;
|
|
1986
|
+
created_by?: string | null;
|
|
1987
|
+
id?: string;
|
|
1988
|
+
organization_id?: string;
|
|
1989
|
+
payload?: Json;
|
|
1990
|
+
source_execution_id?: string | null;
|
|
1991
|
+
step_key?: string | null;
|
|
1992
|
+
};
|
|
1993
|
+
Relationships: [
|
|
1994
|
+
{
|
|
1995
|
+
foreignKeyName: "content_item_attempts_content_item_id_fkey";
|
|
1996
|
+
columns: ["content_item_id"];
|
|
1997
|
+
isOneToOne: false;
|
|
1998
|
+
referencedRelation: "content_items";
|
|
1999
|
+
referencedColumns: ["id"];
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
foreignKeyName: "content_item_attempts_created_by_fkey";
|
|
2003
|
+
columns: ["created_by"];
|
|
2004
|
+
isOneToOne: false;
|
|
2005
|
+
referencedRelation: "users";
|
|
2006
|
+
referencedColumns: ["id"];
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
foreignKeyName: "content_item_attempts_organization_id_fkey";
|
|
2010
|
+
columns: ["organization_id"];
|
|
2011
|
+
isOneToOne: false;
|
|
2012
|
+
referencedRelation: "organizations";
|
|
2013
|
+
referencedColumns: ["id"];
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
foreignKeyName: "content_item_attempts_source_execution_id_fkey";
|
|
2017
|
+
columns: ["source_execution_id"];
|
|
2018
|
+
isOneToOne: false;
|
|
2019
|
+
referencedRelation: "execution_logs";
|
|
2020
|
+
referencedColumns: ["execution_id"];
|
|
2021
|
+
}
|
|
2022
|
+
];
|
|
2023
|
+
};
|
|
2024
|
+
content_items: {
|
|
2025
|
+
Row: {
|
|
2026
|
+
body: string | null;
|
|
2027
|
+
client_id: string | null;
|
|
2028
|
+
created_at: string;
|
|
2029
|
+
created_by: string | null;
|
|
2030
|
+
id: string;
|
|
2031
|
+
organization_id: string;
|
|
2032
|
+
payload: Json;
|
|
2033
|
+
pillar: string | null;
|
|
2034
|
+
pipeline_id: string | null;
|
|
2035
|
+
processing_state: Json;
|
|
2036
|
+
reject_reason: string | null;
|
|
2037
|
+
reviewed_at: string | null;
|
|
2038
|
+
reviewed_by: string | null;
|
|
2039
|
+
reviewer_feedback: string | null;
|
|
2040
|
+
source_asset_id: string | null;
|
|
2041
|
+
status: string;
|
|
2042
|
+
title: string;
|
|
2043
|
+
updated_at: string;
|
|
2044
|
+
updated_by: string | null;
|
|
2045
|
+
};
|
|
2046
|
+
Insert: {
|
|
2047
|
+
body?: string | null;
|
|
2048
|
+
client_id?: string | null;
|
|
2049
|
+
created_at?: string;
|
|
2050
|
+
created_by?: string | null;
|
|
2051
|
+
id?: string;
|
|
2052
|
+
organization_id: string;
|
|
2053
|
+
payload?: Json;
|
|
2054
|
+
pillar?: string | null;
|
|
2055
|
+
pipeline_id?: string | null;
|
|
2056
|
+
processing_state?: Json;
|
|
2057
|
+
reject_reason?: string | null;
|
|
2058
|
+
reviewed_at?: string | null;
|
|
2059
|
+
reviewed_by?: string | null;
|
|
2060
|
+
reviewer_feedback?: string | null;
|
|
2061
|
+
source_asset_id?: string | null;
|
|
2062
|
+
status?: string;
|
|
2063
|
+
title: string;
|
|
2064
|
+
updated_at?: string;
|
|
2065
|
+
updated_by?: string | null;
|
|
2066
|
+
};
|
|
2067
|
+
Update: {
|
|
2068
|
+
body?: string | null;
|
|
2069
|
+
client_id?: string | null;
|
|
2070
|
+
created_at?: string;
|
|
2071
|
+
created_by?: string | null;
|
|
2072
|
+
id?: string;
|
|
2073
|
+
organization_id?: string;
|
|
2074
|
+
payload?: Json;
|
|
2075
|
+
pillar?: string | null;
|
|
2076
|
+
pipeline_id?: string | null;
|
|
2077
|
+
processing_state?: Json;
|
|
2078
|
+
reject_reason?: string | null;
|
|
2079
|
+
reviewed_at?: string | null;
|
|
2080
|
+
reviewed_by?: string | null;
|
|
2081
|
+
reviewer_feedback?: string | null;
|
|
2082
|
+
source_asset_id?: string | null;
|
|
2083
|
+
status?: string;
|
|
2084
|
+
title?: string;
|
|
2085
|
+
updated_at?: string;
|
|
2086
|
+
updated_by?: string | null;
|
|
2087
|
+
};
|
|
2088
|
+
Relationships: [
|
|
2089
|
+
{
|
|
2090
|
+
foreignKeyName: "content_items_client_id_fkey";
|
|
2091
|
+
columns: ["client_id"];
|
|
2092
|
+
isOneToOne: false;
|
|
2093
|
+
referencedRelation: "clients";
|
|
2094
|
+
referencedColumns: ["id"];
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
foreignKeyName: "content_items_created_by_fkey";
|
|
2098
|
+
columns: ["created_by"];
|
|
2099
|
+
isOneToOne: false;
|
|
2100
|
+
referencedRelation: "users";
|
|
2101
|
+
referencedColumns: ["id"];
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
foreignKeyName: "content_items_organization_id_fkey";
|
|
2105
|
+
columns: ["organization_id"];
|
|
2106
|
+
isOneToOne: false;
|
|
2107
|
+
referencedRelation: "organizations";
|
|
2108
|
+
referencedColumns: ["id"];
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
foreignKeyName: "content_items_reviewed_by_fkey";
|
|
2112
|
+
columns: ["reviewed_by"];
|
|
2113
|
+
isOneToOne: false;
|
|
2114
|
+
referencedRelation: "users";
|
|
1807
2115
|
referencedColumns: ["id"];
|
|
1808
2116
|
},
|
|
1809
2117
|
{
|
|
1810
|
-
foreignKeyName: "
|
|
1811
|
-
columns: ["
|
|
2118
|
+
foreignKeyName: "content_items_source_asset_id_fkey";
|
|
2119
|
+
columns: ["source_asset_id"];
|
|
1812
2120
|
isOneToOne: false;
|
|
1813
|
-
referencedRelation: "
|
|
2121
|
+
referencedRelation: "content_source_assets";
|
|
1814
2122
|
referencedColumns: ["id"];
|
|
1815
2123
|
},
|
|
1816
2124
|
{
|
|
1817
|
-
foreignKeyName: "
|
|
1818
|
-
columns: ["
|
|
2125
|
+
foreignKeyName: "content_items_updated_by_fkey";
|
|
2126
|
+
columns: ["updated_by"];
|
|
1819
2127
|
isOneToOne: false;
|
|
1820
|
-
referencedRelation: "
|
|
2128
|
+
referencedRelation: "users";
|
|
1821
2129
|
referencedColumns: ["id"];
|
|
1822
2130
|
}
|
|
1823
2131
|
];
|
|
1824
2132
|
};
|
|
1825
|
-
|
|
2133
|
+
content_source_assets: {
|
|
1826
2134
|
Row: {
|
|
1827
|
-
action_payload: Json | null;
|
|
1828
|
-
actions: Json;
|
|
1829
|
-
completed_at: string | null;
|
|
1830
|
-
completed_by: string | null;
|
|
1831
|
-
context: Json;
|
|
1832
2135
|
created_at: string;
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
human_checkpoint: string | null;
|
|
2136
|
+
duration_seconds: number | null;
|
|
2137
|
+
external_url: string | null;
|
|
1836
2138
|
id: string;
|
|
1837
|
-
|
|
1838
|
-
metadata: Json
|
|
2139
|
+
kind: string;
|
|
2140
|
+
metadata: Json;
|
|
1839
2141
|
organization_id: string;
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
selected_action: string | null;
|
|
1845
|
-
status: string;
|
|
1846
|
-
target_execution_id: string | null;
|
|
1847
|
-
target_resource_id: string | null;
|
|
1848
|
-
target_resource_type: string | null;
|
|
2142
|
+
processing_state: Json;
|
|
2143
|
+
storage_path: string | null;
|
|
2144
|
+
title: string;
|
|
2145
|
+
updated_at: string;
|
|
1849
2146
|
};
|
|
1850
2147
|
Insert: {
|
|
1851
|
-
action_payload?: Json | null;
|
|
1852
|
-
actions: Json;
|
|
1853
|
-
completed_at?: string | null;
|
|
1854
|
-
completed_by?: string | null;
|
|
1855
|
-
context: Json;
|
|
1856
2148
|
created_at?: string;
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
human_checkpoint?: string | null;
|
|
2149
|
+
duration_seconds?: number | null;
|
|
2150
|
+
external_url?: string | null;
|
|
1860
2151
|
id?: string;
|
|
1861
|
-
|
|
1862
|
-
metadata?: Json
|
|
2152
|
+
kind: string;
|
|
2153
|
+
metadata?: Json;
|
|
1863
2154
|
organization_id: string;
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
selected_action?: string | null;
|
|
1869
|
-
status?: string;
|
|
1870
|
-
target_execution_id?: string | null;
|
|
1871
|
-
target_resource_id?: string | null;
|
|
1872
|
-
target_resource_type?: string | null;
|
|
2155
|
+
processing_state?: Json;
|
|
2156
|
+
storage_path?: string | null;
|
|
2157
|
+
title: string;
|
|
2158
|
+
updated_at?: string;
|
|
1873
2159
|
};
|
|
1874
2160
|
Update: {
|
|
1875
|
-
action_payload?: Json | null;
|
|
1876
|
-
actions?: Json;
|
|
1877
|
-
completed_at?: string | null;
|
|
1878
|
-
completed_by?: string | null;
|
|
1879
|
-
context?: Json;
|
|
1880
2161
|
created_at?: string;
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
human_checkpoint?: string | null;
|
|
2162
|
+
duration_seconds?: number | null;
|
|
2163
|
+
external_url?: string | null;
|
|
1884
2164
|
id?: string;
|
|
1885
|
-
|
|
1886
|
-
metadata?: Json
|
|
2165
|
+
kind?: string;
|
|
2166
|
+
metadata?: Json;
|
|
1887
2167
|
organization_id?: string;
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
selected_action?: string | null;
|
|
1893
|
-
status?: string;
|
|
1894
|
-
target_execution_id?: string | null;
|
|
1895
|
-
target_resource_id?: string | null;
|
|
1896
|
-
target_resource_type?: string | null;
|
|
2168
|
+
processing_state?: Json;
|
|
2169
|
+
storage_path?: string | null;
|
|
2170
|
+
title?: string;
|
|
2171
|
+
updated_at?: string;
|
|
1897
2172
|
};
|
|
1898
2173
|
Relationships: [
|
|
1899
2174
|
{
|
|
1900
|
-
foreignKeyName: "
|
|
1901
|
-
columns: ["completed_by"];
|
|
1902
|
-
isOneToOne: false;
|
|
1903
|
-
referencedRelation: "users";
|
|
1904
|
-
referencedColumns: ["id"];
|
|
1905
|
-
},
|
|
1906
|
-
{
|
|
1907
|
-
foreignKeyName: "command_queue_organization_id_fkey";
|
|
2175
|
+
foreignKeyName: "content_source_assets_organization_id_fkey";
|
|
1908
2176
|
columns: ["organization_id"];
|
|
1909
2177
|
isOneToOne: false;
|
|
1910
2178
|
referencedRelation: "organizations";
|
|
1911
2179
|
referencedColumns: ["id"];
|
|
1912
|
-
},
|
|
1913
|
-
{
|
|
1914
|
-
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1915
|
-
columns: ["target_execution_id"];
|
|
1916
|
-
isOneToOne: false;
|
|
1917
|
-
referencedRelation: "execution_logs";
|
|
1918
|
-
referencedColumns: ["execution_id"];
|
|
1919
2180
|
}
|
|
1920
2181
|
];
|
|
1921
2182
|
};
|
|
@@ -3535,6 +3796,33 @@ type Database = {
|
|
|
3535
3796
|
};
|
|
3536
3797
|
Returns: boolean;
|
|
3537
3798
|
};
|
|
3799
|
+
create_artifact_version: {
|
|
3800
|
+
Args: {
|
|
3801
|
+
p_content: Json;
|
|
3802
|
+
p_created_by?: string;
|
|
3803
|
+
p_kind: string;
|
|
3804
|
+
p_organization_id: string;
|
|
3805
|
+
p_owner_id?: string;
|
|
3806
|
+
p_owner_kind: string;
|
|
3807
|
+
p_pipeline_id?: string;
|
|
3808
|
+
p_source_execution_id?: string;
|
|
3809
|
+
};
|
|
3810
|
+
Returns: {
|
|
3811
|
+
content: Json;
|
|
3812
|
+
created_at: string;
|
|
3813
|
+
created_by: string | null;
|
|
3814
|
+
id: string;
|
|
3815
|
+
is_active: boolean;
|
|
3816
|
+
kind: string;
|
|
3817
|
+
organization_id: string;
|
|
3818
|
+
owner_id: string | null;
|
|
3819
|
+
owner_kind: string;
|
|
3820
|
+
pipeline_id: string | null;
|
|
3821
|
+
source_execution_id: string | null;
|
|
3822
|
+
updated_at: string;
|
|
3823
|
+
version: number;
|
|
3824
|
+
};
|
|
3825
|
+
};
|
|
3538
3826
|
current_user_is_platform_admin: {
|
|
3539
3827
|
Args: Record<PropertyKey, never>;
|
|
3540
3828
|
Returns: boolean;
|
|
@@ -3549,10 +3837,6 @@ type Database = {
|
|
|
3549
3837
|
Args: Record<PropertyKey, never>;
|
|
3550
3838
|
Returns: string;
|
|
3551
3839
|
};
|
|
3552
|
-
detect_stalled_executions: {
|
|
3553
|
-
Args: Record<PropertyKey, never>;
|
|
3554
|
-
Returns: undefined;
|
|
3555
|
-
};
|
|
3556
3840
|
execute_session_turn: {
|
|
3557
3841
|
Args: {
|
|
3558
3842
|
p_session_id: string;
|
|
@@ -3645,6 +3929,12 @@ type Database = {
|
|
|
3645
3929
|
Args: Record<PropertyKey, never>;
|
|
3646
3930
|
Returns: Json;
|
|
3647
3931
|
};
|
|
3932
|
+
purge_stale_test_data: {
|
|
3933
|
+
Args: {
|
|
3934
|
+
p_max_age?: unknown;
|
|
3935
|
+
};
|
|
3936
|
+
Returns: Json;
|
|
3937
|
+
};
|
|
3648
3938
|
recompute_all_memberships: {
|
|
3649
3939
|
Args: Record<PropertyKey, never>;
|
|
3650
3940
|
Returns: undefined;
|
|
@@ -3847,7 +4137,18 @@ type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
|
|
|
3847
4137
|
|
|
3848
4138
|
/** Raw database row type for acq_deals table */
|
|
3849
4139
|
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
3850
|
-
|
|
4140
|
+
/**
|
|
4141
|
+
* Deal stage key. Intentionally an open string, not a closed union — stage
|
|
4142
|
+
* vocabulary is tenant-owned content (see the `CrmStageKeySchema` comment in
|
|
4143
|
+
* api-schemas.ts: "CRM stage/state catalogs are model-owned... The published
|
|
4144
|
+
* core schema validates only the transport shape; closed-catalog membership
|
|
4145
|
+
* is enforced by the caller/API layer via model-injected validators"). A
|
|
4146
|
+
* closed union here would bake Elevasis's specific pipeline
|
|
4147
|
+
* (`interested`/`proposal`/`closing`/`closed_won`/`closed_lost`/`nurturing`)
|
|
4148
|
+
* into every tenant's type surface. `DealStageSchema` in api-schemas.ts is
|
|
4149
|
+
* already `z.string()` for the same reason; this type now matches it.
|
|
4150
|
+
*/
|
|
4151
|
+
type DealStage = string;
|
|
3851
4152
|
type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
|
|
3852
4153
|
interface DealPriority {
|
|
3853
4154
|
bucketKey: DealPriorityBucketKey;
|
|
@@ -4197,8 +4498,7 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
|
4197
4498
|
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4198
4499
|
readinessContract: z.ZodOptional<z.ZodObject<{
|
|
4199
4500
|
requiredObjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4200
|
-
requiredCatalogs: z.
|
|
4201
|
-
requiredKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4501
|
+
requiredCatalogs: z.ZodArray<z.ZodString>;
|
|
4202
4502
|
}, z.core.$strict>>;
|
|
4203
4503
|
}, z.core.$strict>;
|
|
4204
4504
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -4217,7 +4517,6 @@ interface SystemEntry {
|
|
|
4217
4517
|
path: string;
|
|
4218
4518
|
surfaces: string[];
|
|
4219
4519
|
icon?: string;
|
|
4220
|
-
order?: number;
|
|
4221
4520
|
};
|
|
4222
4521
|
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
4223
4522
|
responsibleRoleId?: string;
|
|
@@ -4227,17 +4526,12 @@ interface SystemEntry {
|
|
|
4227
4526
|
intent: 'exposes' | 'consumes';
|
|
4228
4527
|
invocation?: unknown;
|
|
4229
4528
|
}[];
|
|
4230
|
-
policies?: string[];
|
|
4231
4529
|
drivesGoals?: string[];
|
|
4232
4530
|
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
4233
|
-
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
4234
|
-
status?: 'active' | 'deprecated' | 'archived';
|
|
4235
4531
|
path?: string;
|
|
4236
4532
|
icon?: string;
|
|
4237
4533
|
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
4238
4534
|
enabled?: boolean;
|
|
4239
|
-
devOnly?: boolean;
|
|
4240
|
-
requiresAdmin?: boolean;
|
|
4241
4535
|
order: number;
|
|
4242
4536
|
config?: Record<string, JsonValue>;
|
|
4243
4537
|
ontology?: OntologyScope;
|
|
@@ -4245,6 +4539,41 @@ interface SystemEntry {
|
|
|
4245
4539
|
subsystems?: Record<string, SystemEntry>;
|
|
4246
4540
|
}
|
|
4247
4541
|
|
|
4542
|
+
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
4543
|
+
dashboard: "dashboard";
|
|
4544
|
+
settings: "settings";
|
|
4545
|
+
graph: "graph";
|
|
4546
|
+
page: "page";
|
|
4547
|
+
detail: "detail";
|
|
4548
|
+
list: "list";
|
|
4549
|
+
}>;
|
|
4550
|
+
interface SidebarSurfaceNode {
|
|
4551
|
+
type: 'surface';
|
|
4552
|
+
label: string;
|
|
4553
|
+
path: string;
|
|
4554
|
+
surfaceType: z.infer<typeof SurfaceTypeSchema>;
|
|
4555
|
+
description?: string;
|
|
4556
|
+
icon?: string;
|
|
4557
|
+
order?: number;
|
|
4558
|
+
targets?: {
|
|
4559
|
+
systems?: string[];
|
|
4560
|
+
entities?: string[];
|
|
4561
|
+
resources?: string[];
|
|
4562
|
+
actions?: string[];
|
|
4563
|
+
};
|
|
4564
|
+
devOnly?: boolean;
|
|
4565
|
+
requiresAdmin?: boolean;
|
|
4566
|
+
}
|
|
4567
|
+
interface SidebarGroupNode {
|
|
4568
|
+
type: 'group';
|
|
4569
|
+
label: string;
|
|
4570
|
+
description?: string;
|
|
4571
|
+
icon?: string;
|
|
4572
|
+
order?: number;
|
|
4573
|
+
children: Record<string, SidebarNode>;
|
|
4574
|
+
}
|
|
4575
|
+
type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
|
|
4576
|
+
|
|
4248
4577
|
declare const LinkSchema: z.ZodObject<{
|
|
4249
4578
|
nodeId: z.ZodString;
|
|
4250
4579
|
kind: z.ZodEnum<{
|
|
@@ -4269,6 +4598,992 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
4269
4598
|
}, z.core.$strip>;
|
|
4270
4599
|
type Link = z.infer<typeof LinkSchema>;
|
|
4271
4600
|
|
|
4601
|
+
declare const OrganizationModelSchema: z.ZodObject<{
|
|
4602
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4603
|
+
snapshotHash: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
4605
|
+
branding: z.ZodOptional<z.ZodObject<{
|
|
4606
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4607
|
+
lastModified: z.ZodString;
|
|
4608
|
+
}, z.core.$strip>>;
|
|
4609
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
4610
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4611
|
+
lastModified: z.ZodString;
|
|
4612
|
+
}, z.core.$strip>>;
|
|
4613
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
4614
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4615
|
+
lastModified: z.ZodString;
|
|
4616
|
+
}, z.core.$strip>>;
|
|
4617
|
+
customers: z.ZodOptional<z.ZodObject<{
|
|
4618
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4619
|
+
lastModified: z.ZodString;
|
|
4620
|
+
}, z.core.$strip>>;
|
|
4621
|
+
offerings: z.ZodOptional<z.ZodObject<{
|
|
4622
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4623
|
+
lastModified: z.ZodString;
|
|
4624
|
+
}, z.core.$strip>>;
|
|
4625
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
4626
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4627
|
+
lastModified: z.ZodString;
|
|
4628
|
+
}, z.core.$strip>>;
|
|
4629
|
+
goals: z.ZodOptional<z.ZodObject<{
|
|
4630
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4631
|
+
lastModified: z.ZodString;
|
|
4632
|
+
}, z.core.$strip>>;
|
|
4633
|
+
systems: z.ZodOptional<z.ZodObject<{
|
|
4634
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4635
|
+
lastModified: z.ZodString;
|
|
4636
|
+
}, z.core.$strip>>;
|
|
4637
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
4638
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4639
|
+
lastModified: z.ZodString;
|
|
4640
|
+
}, z.core.$strip>>;
|
|
4641
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
4642
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4643
|
+
lastModified: z.ZodString;
|
|
4644
|
+
}, z.core.$strip>>;
|
|
4645
|
+
topology: z.ZodOptional<z.ZodObject<{
|
|
4646
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4647
|
+
lastModified: z.ZodString;
|
|
4648
|
+
}, z.core.$strip>>;
|
|
4649
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
4650
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4651
|
+
lastModified: z.ZodString;
|
|
4652
|
+
}, z.core.$strip>>;
|
|
4653
|
+
entities: z.ZodOptional<z.ZodObject<{
|
|
4654
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4655
|
+
lastModified: z.ZodString;
|
|
4656
|
+
}, z.core.$strip>>;
|
|
4657
|
+
knowledge: z.ZodOptional<z.ZodObject<{
|
|
4658
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4659
|
+
lastModified: z.ZodString;
|
|
4660
|
+
}, z.core.$strip>>;
|
|
4661
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
4662
|
+
branding: {
|
|
4663
|
+
version: 1;
|
|
4664
|
+
lastModified: string;
|
|
4665
|
+
};
|
|
4666
|
+
identity: {
|
|
4667
|
+
version: 1;
|
|
4668
|
+
lastModified: string;
|
|
4669
|
+
};
|
|
4670
|
+
clients: {
|
|
4671
|
+
version: 1;
|
|
4672
|
+
lastModified: string;
|
|
4673
|
+
};
|
|
4674
|
+
customers: {
|
|
4675
|
+
version: 1;
|
|
4676
|
+
lastModified: string;
|
|
4677
|
+
};
|
|
4678
|
+
offerings: {
|
|
4679
|
+
version: 1;
|
|
4680
|
+
lastModified: string;
|
|
4681
|
+
};
|
|
4682
|
+
roles: {
|
|
4683
|
+
version: 1;
|
|
4684
|
+
lastModified: string;
|
|
4685
|
+
};
|
|
4686
|
+
goals: {
|
|
4687
|
+
version: 1;
|
|
4688
|
+
lastModified: string;
|
|
4689
|
+
};
|
|
4690
|
+
systems: {
|
|
4691
|
+
version: 1;
|
|
4692
|
+
lastModified: string;
|
|
4693
|
+
};
|
|
4694
|
+
ontology: {
|
|
4695
|
+
version: 1;
|
|
4696
|
+
lastModified: string;
|
|
4697
|
+
};
|
|
4698
|
+
resources: {
|
|
4699
|
+
version: 1;
|
|
4700
|
+
lastModified: string;
|
|
4701
|
+
};
|
|
4702
|
+
topology: {
|
|
4703
|
+
version: 1;
|
|
4704
|
+
lastModified: string;
|
|
4705
|
+
};
|
|
4706
|
+
actions: {
|
|
4707
|
+
version: 1;
|
|
4708
|
+
lastModified: string;
|
|
4709
|
+
};
|
|
4710
|
+
entities: {
|
|
4711
|
+
version: 1;
|
|
4712
|
+
lastModified: string;
|
|
4713
|
+
};
|
|
4714
|
+
knowledge: {
|
|
4715
|
+
version: 1;
|
|
4716
|
+
lastModified: string;
|
|
4717
|
+
};
|
|
4718
|
+
}, {
|
|
4719
|
+
branding?: {
|
|
4720
|
+
version: 1;
|
|
4721
|
+
lastModified: string;
|
|
4722
|
+
} | undefined;
|
|
4723
|
+
identity?: {
|
|
4724
|
+
version: 1;
|
|
4725
|
+
lastModified: string;
|
|
4726
|
+
} | undefined;
|
|
4727
|
+
clients?: {
|
|
4728
|
+
version: 1;
|
|
4729
|
+
lastModified: string;
|
|
4730
|
+
} | undefined;
|
|
4731
|
+
customers?: {
|
|
4732
|
+
version: 1;
|
|
4733
|
+
lastModified: string;
|
|
4734
|
+
} | undefined;
|
|
4735
|
+
offerings?: {
|
|
4736
|
+
version: 1;
|
|
4737
|
+
lastModified: string;
|
|
4738
|
+
} | undefined;
|
|
4739
|
+
roles?: {
|
|
4740
|
+
version: 1;
|
|
4741
|
+
lastModified: string;
|
|
4742
|
+
} | undefined;
|
|
4743
|
+
goals?: {
|
|
4744
|
+
version: 1;
|
|
4745
|
+
lastModified: string;
|
|
4746
|
+
} | undefined;
|
|
4747
|
+
systems?: {
|
|
4748
|
+
version: 1;
|
|
4749
|
+
lastModified: string;
|
|
4750
|
+
} | undefined;
|
|
4751
|
+
ontology?: {
|
|
4752
|
+
version: 1;
|
|
4753
|
+
lastModified: string;
|
|
4754
|
+
} | undefined;
|
|
4755
|
+
resources?: {
|
|
4756
|
+
version: 1;
|
|
4757
|
+
lastModified: string;
|
|
4758
|
+
} | undefined;
|
|
4759
|
+
topology?: {
|
|
4760
|
+
version: 1;
|
|
4761
|
+
lastModified: string;
|
|
4762
|
+
} | undefined;
|
|
4763
|
+
actions?: {
|
|
4764
|
+
version: 1;
|
|
4765
|
+
lastModified: string;
|
|
4766
|
+
} | undefined;
|
|
4767
|
+
entities?: {
|
|
4768
|
+
version: 1;
|
|
4769
|
+
lastModified: string;
|
|
4770
|
+
} | undefined;
|
|
4771
|
+
knowledge?: {
|
|
4772
|
+
version: 1;
|
|
4773
|
+
lastModified: string;
|
|
4774
|
+
} | undefined;
|
|
4775
|
+
}>>;
|
|
4776
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
4777
|
+
organizationName: z.ZodString;
|
|
4778
|
+
productName: z.ZodString;
|
|
4779
|
+
shortName: z.ZodString;
|
|
4780
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4781
|
+
logos: z.ZodDefault<z.ZodObject<{
|
|
4782
|
+
light: z.ZodOptional<z.ZodString>;
|
|
4783
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
4784
|
+
}, z.core.$strip>>;
|
|
4785
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4786
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4787
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4788
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
4789
|
+
}, z.core.$loose>>;
|
|
4790
|
+
navigation: z.ZodDefault<z.ZodObject<{
|
|
4791
|
+
sidebar: z.ZodDefault<z.ZodObject<{
|
|
4792
|
+
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
4793
|
+
bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
4794
|
+
}, z.core.$strip>>;
|
|
4795
|
+
topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4796
|
+
id: z.ZodString;
|
|
4797
|
+
label: z.ZodString;
|
|
4798
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
4799
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4800
|
+
message: "message";
|
|
4801
|
+
error: "error";
|
|
4802
|
+
agent: "agent";
|
|
4803
|
+
workflow: "workflow";
|
|
4804
|
+
"google-sheets": "google-sheets";
|
|
4805
|
+
dashboard: "dashboard";
|
|
4806
|
+
calendar: "calendar";
|
|
4807
|
+
sales: "sales";
|
|
4808
|
+
crm: "crm";
|
|
4809
|
+
"lead-gen": "lead-gen";
|
|
4810
|
+
projects: "projects";
|
|
4811
|
+
clients: "clients";
|
|
4812
|
+
operations: "operations";
|
|
4813
|
+
monitoring: "monitoring";
|
|
4814
|
+
knowledge: "knowledge";
|
|
4815
|
+
settings: "settings";
|
|
4816
|
+
admin: "admin";
|
|
4817
|
+
archive: "archive";
|
|
4818
|
+
business: "business";
|
|
4819
|
+
finance: "finance";
|
|
4820
|
+
platform: "platform";
|
|
4821
|
+
seo: "seo";
|
|
4822
|
+
playbook: "playbook";
|
|
4823
|
+
strategy: "strategy";
|
|
4824
|
+
reference: "reference";
|
|
4825
|
+
integration: "integration";
|
|
4826
|
+
database: "database";
|
|
4827
|
+
user: "user";
|
|
4828
|
+
team: "team";
|
|
4829
|
+
gmail: "gmail";
|
|
4830
|
+
attio: "attio";
|
|
4831
|
+
overview: "overview";
|
|
4832
|
+
"command-view": "command-view";
|
|
4833
|
+
"command-queue": "command-queue";
|
|
4834
|
+
pipeline: "pipeline";
|
|
4835
|
+
lists: "lists";
|
|
4836
|
+
resources: "resources";
|
|
4837
|
+
approve: "approve";
|
|
4838
|
+
reject: "reject";
|
|
4839
|
+
retry: "retry";
|
|
4840
|
+
edit: "edit";
|
|
4841
|
+
view: "view";
|
|
4842
|
+
launch: "launch";
|
|
4843
|
+
"message-plus": "message-plus";
|
|
4844
|
+
escalate: "escalate";
|
|
4845
|
+
promote: "promote";
|
|
4846
|
+
submit: "submit";
|
|
4847
|
+
email: "email";
|
|
4848
|
+
success: "success";
|
|
4849
|
+
warning: "warning";
|
|
4850
|
+
info: "info";
|
|
4851
|
+
pending: "pending";
|
|
4852
|
+
bolt: "bolt";
|
|
4853
|
+
building: "building";
|
|
4854
|
+
briefcase: "briefcase";
|
|
4855
|
+
apps: "apps";
|
|
4856
|
+
graph: "graph";
|
|
4857
|
+
shield: "shield";
|
|
4858
|
+
users: "users";
|
|
4859
|
+
"chart-bar": "chart-bar";
|
|
4860
|
+
search: "search";
|
|
4861
|
+
}>, z.ZodString]>>;
|
|
4862
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
4863
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4864
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
4865
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
4866
|
+
targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
4867
|
+
systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4868
|
+
entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4869
|
+
resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4870
|
+
actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4871
|
+
}, z.core.$strip>>>;
|
|
4872
|
+
}, z.core.$strip>>>;
|
|
4873
|
+
}, z.core.$strip>>;
|
|
4874
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
4875
|
+
mission: z.ZodDefault<z.ZodString>;
|
|
4876
|
+
vision: z.ZodDefault<z.ZodString>;
|
|
4877
|
+
legalName: z.ZodDefault<z.ZodString>;
|
|
4878
|
+
entityType: z.ZodDefault<z.ZodString>;
|
|
4879
|
+
jurisdiction: z.ZodDefault<z.ZodString>;
|
|
4880
|
+
industryCategory: z.ZodDefault<z.ZodString>;
|
|
4881
|
+
geographicFocus: z.ZodDefault<z.ZodString>;
|
|
4882
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4883
|
+
businessHours: z.ZodDefault<z.ZodObject<{
|
|
4884
|
+
monday: z.ZodOptional<z.ZodObject<{
|
|
4885
|
+
open: z.ZodString;
|
|
4886
|
+
close: z.ZodString;
|
|
4887
|
+
}, z.core.$strip>>;
|
|
4888
|
+
tuesday: z.ZodOptional<z.ZodObject<{
|
|
4889
|
+
open: z.ZodString;
|
|
4890
|
+
close: z.ZodString;
|
|
4891
|
+
}, z.core.$strip>>;
|
|
4892
|
+
wednesday: z.ZodOptional<z.ZodObject<{
|
|
4893
|
+
open: z.ZodString;
|
|
4894
|
+
close: z.ZodString;
|
|
4895
|
+
}, z.core.$strip>>;
|
|
4896
|
+
thursday: z.ZodOptional<z.ZodObject<{
|
|
4897
|
+
open: z.ZodString;
|
|
4898
|
+
close: z.ZodString;
|
|
4899
|
+
}, z.core.$strip>>;
|
|
4900
|
+
friday: z.ZodOptional<z.ZodObject<{
|
|
4901
|
+
open: z.ZodString;
|
|
4902
|
+
close: z.ZodString;
|
|
4903
|
+
}, z.core.$strip>>;
|
|
4904
|
+
saturday: z.ZodOptional<z.ZodObject<{
|
|
4905
|
+
open: z.ZodString;
|
|
4906
|
+
close: z.ZodString;
|
|
4907
|
+
}, z.core.$strip>>;
|
|
4908
|
+
sunday: z.ZodOptional<z.ZodObject<{
|
|
4909
|
+
open: z.ZodString;
|
|
4910
|
+
close: z.ZodString;
|
|
4911
|
+
}, z.core.$strip>>;
|
|
4912
|
+
}, z.core.$strip>>;
|
|
4913
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4914
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4915
|
+
productName: z.ZodOptional<z.ZodString>;
|
|
4916
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4917
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4918
|
+
}, z.core.$loose>>;
|
|
4919
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4920
|
+
id: z.ZodString;
|
|
4921
|
+
slug: z.ZodString;
|
|
4922
|
+
name: z.ZodString;
|
|
4923
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
4924
|
+
active: "active";
|
|
4925
|
+
onboarding: "onboarding";
|
|
4926
|
+
paused: "paused";
|
|
4927
|
+
completed: "completed";
|
|
4928
|
+
churned: "churned";
|
|
4929
|
+
}>>;
|
|
4930
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4931
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
4932
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4933
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4934
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4935
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4936
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4937
|
+
}, z.core.$loose>>;
|
|
4938
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
4939
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4940
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4942
|
+
}, z.core.$loose>>;
|
|
4943
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
4944
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4945
|
+
"external-project": "external-project";
|
|
4946
|
+
"internal-project": "internal-project";
|
|
4947
|
+
none: "none";
|
|
4948
|
+
}>>;
|
|
4949
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
4950
|
+
platform: "platform";
|
|
4951
|
+
client: "client";
|
|
4952
|
+
developer: "developer";
|
|
4953
|
+
}>>;
|
|
4954
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4955
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
4956
|
+
}, z.core.$loose>>;
|
|
4957
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
4958
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4959
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
4960
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
4961
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
4962
|
+
}, z.core.$strip>>;
|
|
4963
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
4964
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
4965
|
+
}, z.core.$loose>>;
|
|
4966
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4967
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4968
|
+
}, z.core.$strict>>>>;
|
|
4969
|
+
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4970
|
+
id: z.ZodString;
|
|
4971
|
+
order: z.ZodNumber;
|
|
4972
|
+
name: z.ZodDefault<z.ZodString>;
|
|
4973
|
+
description: z.ZodDefault<z.ZodString>;
|
|
4974
|
+
jobsToBeDone: z.ZodDefault<z.ZodString>;
|
|
4975
|
+
pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4976
|
+
gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4977
|
+
firmographics: z.ZodDefault<z.ZodObject<{
|
|
4978
|
+
industry: z.ZodOptional<z.ZodString>;
|
|
4979
|
+
companySize: z.ZodOptional<z.ZodString>;
|
|
4980
|
+
region: z.ZodOptional<z.ZodString>;
|
|
4981
|
+
}, z.core.$strip>>;
|
|
4982
|
+
valueProp: z.ZodDefault<z.ZodString>;
|
|
4983
|
+
}, z.core.$strip>>>>;
|
|
4984
|
+
offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4985
|
+
id: z.ZodString;
|
|
4986
|
+
order: z.ZodNumber;
|
|
4987
|
+
name: z.ZodDefault<z.ZodString>;
|
|
4988
|
+
description: z.ZodDefault<z.ZodString>;
|
|
4989
|
+
pricingModel: z.ZodDefault<z.ZodEnum<{
|
|
4990
|
+
custom: "custom";
|
|
4991
|
+
"one-time": "one-time";
|
|
4992
|
+
subscription: "subscription";
|
|
4993
|
+
"usage-based": "usage-based";
|
|
4994
|
+
}>>;
|
|
4995
|
+
price: z.ZodDefault<z.ZodNumber>;
|
|
4996
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
4997
|
+
targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4998
|
+
deliveryFeatureId: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
}, z.core.$strip>>>>;
|
|
5000
|
+
roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5001
|
+
id: z.ZodString;
|
|
5002
|
+
order: z.ZodNumber;
|
|
5003
|
+
title: z.ZodString;
|
|
5004
|
+
responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5005
|
+
reportsToId: z.ZodOptional<z.ZodString>;
|
|
5006
|
+
heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5007
|
+
kind: z.ZodLiteral<"human">;
|
|
5008
|
+
userId: z.ZodString;
|
|
5009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5010
|
+
kind: z.ZodLiteral<"agent">;
|
|
5011
|
+
agentId: z.ZodString;
|
|
5012
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5013
|
+
kind: z.ZodLiteral<"team">;
|
|
5014
|
+
memberIds: z.ZodArray<z.ZodString>;
|
|
5015
|
+
}, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5016
|
+
kind: z.ZodLiteral<"human">;
|
|
5017
|
+
userId: z.ZodString;
|
|
5018
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5019
|
+
kind: z.ZodLiteral<"agent">;
|
|
5020
|
+
agentId: z.ZodString;
|
|
5021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5022
|
+
kind: z.ZodLiteral<"team">;
|
|
5023
|
+
memberIds: z.ZodArray<z.ZodString>;
|
|
5024
|
+
}, z.core.$strip>], "kind">>]>>;
|
|
5025
|
+
responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5026
|
+
}, z.core.$strip>>>>;
|
|
5027
|
+
goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5028
|
+
id: z.ZodString;
|
|
5029
|
+
order: z.ZodNumber;
|
|
5030
|
+
description: z.ZodString;
|
|
5031
|
+
periodStart: z.ZodString;
|
|
5032
|
+
periodEnd: z.ZodString;
|
|
5033
|
+
keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5034
|
+
id: z.ZodString;
|
|
5035
|
+
description: z.ZodString;
|
|
5036
|
+
targetMetric: z.ZodString;
|
|
5037
|
+
currentValue: z.ZodDefault<z.ZodNumber>;
|
|
5038
|
+
targetValue: z.ZodOptional<z.ZodNumber>;
|
|
5039
|
+
}, z.core.$strip>>>;
|
|
5040
|
+
}, z.core.$strip>>>>;
|
|
5041
|
+
systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
|
|
5042
|
+
ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
5043
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5044
|
+
id: z.ZodString;
|
|
5045
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5046
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5047
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5048
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5049
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5050
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5051
|
+
}, z.core.$loose>>>>;
|
|
5052
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5053
|
+
id: z.ZodString;
|
|
5054
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5055
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5056
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5057
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5058
|
+
from: z.ZodString;
|
|
5059
|
+
to: z.ZodString;
|
|
5060
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
5061
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5062
|
+
}, z.core.$loose>>>>;
|
|
5063
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5064
|
+
id: z.ZodString;
|
|
5065
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5066
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5067
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5069
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5070
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5071
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
5072
|
+
}, z.core.$loose>>>>;
|
|
5073
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5074
|
+
id: z.ZodString;
|
|
5075
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5076
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5077
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5078
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5079
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
5080
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
5081
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5082
|
+
}, z.core.$loose>>>>;
|
|
5083
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5084
|
+
id: z.ZodString;
|
|
5085
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5086
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5087
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5088
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5089
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5090
|
+
}, z.core.$loose>>>>;
|
|
5091
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5092
|
+
id: z.ZodString;
|
|
5093
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5094
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5095
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5096
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5097
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5098
|
+
}, z.core.$loose>>>>;
|
|
5099
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5100
|
+
id: z.ZodString;
|
|
5101
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5103
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5104
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5105
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
5106
|
+
}, z.core.$loose>>>>;
|
|
5107
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5108
|
+
id: z.ZodString;
|
|
5109
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5111
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5112
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5113
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
5114
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
5115
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
5116
|
+
}, z.core.$loose>>>>;
|
|
5117
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5118
|
+
id: z.ZodString;
|
|
5119
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5121
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5122
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5123
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5124
|
+
}, z.core.$loose>>>>;
|
|
5125
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5126
|
+
id: z.ZodString;
|
|
5127
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5129
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5130
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5131
|
+
route: z.ZodOptional<z.ZodString>;
|
|
5132
|
+
}, z.core.$loose>>>>;
|
|
5133
|
+
}, z.core.$strip>>>;
|
|
5134
|
+
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5135
|
+
id: z.ZodString;
|
|
5136
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
5137
|
+
systemPath: z.ZodString;
|
|
5138
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5139
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5140
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
5141
|
+
status: z.ZodEnum<{
|
|
5142
|
+
active: "active";
|
|
5143
|
+
deprecated: "deprecated";
|
|
5144
|
+
archived: "archived";
|
|
5145
|
+
}>;
|
|
5146
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
5147
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5148
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
5149
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5150
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5151
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5152
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5153
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
5154
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5155
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5156
|
+
}, z.core.$strip>>;
|
|
5157
|
+
}, z.core.$strip>>;
|
|
5158
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5159
|
+
path: z.ZodString;
|
|
5160
|
+
role: z.ZodEnum<{
|
|
5161
|
+
entrypoint: "entrypoint";
|
|
5162
|
+
handler: "handler";
|
|
5163
|
+
schema: "schema";
|
|
5164
|
+
test: "test";
|
|
5165
|
+
docs: "docs";
|
|
5166
|
+
config: "config";
|
|
5167
|
+
}>;
|
|
5168
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5169
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5170
|
+
}, z.core.$strip>>>;
|
|
5171
|
+
kind: z.ZodLiteral<"workflow">;
|
|
5172
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5173
|
+
eventKey: z.ZodString;
|
|
5174
|
+
label: z.ZodString;
|
|
5175
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
5176
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
5177
|
+
active: "active";
|
|
5178
|
+
deprecated: "deprecated";
|
|
5179
|
+
draft: "draft";
|
|
5180
|
+
beta: "beta";
|
|
5181
|
+
archived: "archived";
|
|
5182
|
+
}>>;
|
|
5183
|
+
}, z.core.$strip>>>;
|
|
5184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5185
|
+
id: z.ZodString;
|
|
5186
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
5187
|
+
systemPath: z.ZodString;
|
|
5188
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5190
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
5191
|
+
status: z.ZodEnum<{
|
|
5192
|
+
active: "active";
|
|
5193
|
+
deprecated: "deprecated";
|
|
5194
|
+
archived: "archived";
|
|
5195
|
+
}>;
|
|
5196
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
5197
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5198
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
5199
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5200
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5201
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5202
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5203
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
5204
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5205
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5206
|
+
}, z.core.$strip>>;
|
|
5207
|
+
}, z.core.$strip>>;
|
|
5208
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5209
|
+
path: z.ZodString;
|
|
5210
|
+
role: z.ZodEnum<{
|
|
5211
|
+
entrypoint: "entrypoint";
|
|
5212
|
+
handler: "handler";
|
|
5213
|
+
schema: "schema";
|
|
5214
|
+
test: "test";
|
|
5215
|
+
docs: "docs";
|
|
5216
|
+
config: "config";
|
|
5217
|
+
}>;
|
|
5218
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5219
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5220
|
+
}, z.core.$strip>>>;
|
|
5221
|
+
kind: z.ZodLiteral<"agent">;
|
|
5222
|
+
agentKind: z.ZodEnum<{
|
|
5223
|
+
platform: "platform";
|
|
5224
|
+
orchestrator: "orchestrator";
|
|
5225
|
+
specialist: "specialist";
|
|
5226
|
+
utility: "utility";
|
|
5227
|
+
}>;
|
|
5228
|
+
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
5229
|
+
sessionCapable: z.ZodBoolean;
|
|
5230
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5231
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
5232
|
+
command: z.ZodString;
|
|
5233
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
5234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5235
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
5236
|
+
server: z.ZodString;
|
|
5237
|
+
name: z.ZodString;
|
|
5238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5239
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
5240
|
+
method: z.ZodEnum<{
|
|
5241
|
+
GET: "GET";
|
|
5242
|
+
POST: "POST";
|
|
5243
|
+
PATCH: "PATCH";
|
|
5244
|
+
DELETE: "DELETE";
|
|
5245
|
+
}>;
|
|
5246
|
+
path: z.ZodString;
|
|
5247
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
5248
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
5249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5250
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
5251
|
+
resourceId: z.ZodString;
|
|
5252
|
+
}, z.core.$strip>], "kind">>>;
|
|
5253
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5254
|
+
eventKey: z.ZodString;
|
|
5255
|
+
label: z.ZodString;
|
|
5256
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
5257
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
5258
|
+
active: "active";
|
|
5259
|
+
deprecated: "deprecated";
|
|
5260
|
+
draft: "draft";
|
|
5261
|
+
beta: "beta";
|
|
5262
|
+
archived: "archived";
|
|
5263
|
+
}>>;
|
|
5264
|
+
}, z.core.$strip>>>;
|
|
5265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5266
|
+
id: z.ZodString;
|
|
5267
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
5268
|
+
systemPath: z.ZodString;
|
|
5269
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5271
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
5272
|
+
status: z.ZodEnum<{
|
|
5273
|
+
active: "active";
|
|
5274
|
+
deprecated: "deprecated";
|
|
5275
|
+
archived: "archived";
|
|
5276
|
+
}>;
|
|
5277
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
5278
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5279
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
5280
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5281
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5282
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5283
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5284
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
5285
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5286
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5287
|
+
}, z.core.$strip>>;
|
|
5288
|
+
}, z.core.$strip>>;
|
|
5289
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5290
|
+
path: z.ZodString;
|
|
5291
|
+
role: z.ZodEnum<{
|
|
5292
|
+
entrypoint: "entrypoint";
|
|
5293
|
+
handler: "handler";
|
|
5294
|
+
schema: "schema";
|
|
5295
|
+
test: "test";
|
|
5296
|
+
docs: "docs";
|
|
5297
|
+
config: "config";
|
|
5298
|
+
}>;
|
|
5299
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5300
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5301
|
+
}, z.core.$strip>>>;
|
|
5302
|
+
kind: z.ZodLiteral<"integration">;
|
|
5303
|
+
provider: z.ZodString;
|
|
5304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5305
|
+
id: z.ZodString;
|
|
5306
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
5307
|
+
systemPath: z.ZodString;
|
|
5308
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5309
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5310
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
5311
|
+
status: z.ZodEnum<{
|
|
5312
|
+
active: "active";
|
|
5313
|
+
deprecated: "deprecated";
|
|
5314
|
+
archived: "archived";
|
|
5315
|
+
}>;
|
|
5316
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
5317
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5318
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
5319
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5320
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5321
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5322
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5323
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
5324
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5325
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5326
|
+
}, z.core.$strip>>;
|
|
5327
|
+
}, z.core.$strip>>;
|
|
5328
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5329
|
+
path: z.ZodString;
|
|
5330
|
+
role: z.ZodEnum<{
|
|
5331
|
+
entrypoint: "entrypoint";
|
|
5332
|
+
handler: "handler";
|
|
5333
|
+
schema: "schema";
|
|
5334
|
+
test: "test";
|
|
5335
|
+
docs: "docs";
|
|
5336
|
+
config: "config";
|
|
5337
|
+
}>;
|
|
5338
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
5339
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5340
|
+
}, z.core.$strip>>>;
|
|
5341
|
+
kind: z.ZodLiteral<"script">;
|
|
5342
|
+
language: z.ZodEnum<{
|
|
5343
|
+
shell: "shell";
|
|
5344
|
+
sql: "sql";
|
|
5345
|
+
typescript: "typescript";
|
|
5346
|
+
python: "python";
|
|
5347
|
+
}>;
|
|
5348
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
5349
|
+
file: z.ZodString;
|
|
5350
|
+
}, z.core.$strip>]>;
|
|
5351
|
+
}, z.core.$strip>], "kind">>>>;
|
|
5352
|
+
topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
5353
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
5354
|
+
relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5355
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5356
|
+
kind: z.ZodLiteral<"system">;
|
|
5357
|
+
id: z.ZodString;
|
|
5358
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5359
|
+
kind: z.ZodLiteral<"resource">;
|
|
5360
|
+
id: z.ZodString;
|
|
5361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5362
|
+
kind: z.ZodLiteral<"ontology">;
|
|
5363
|
+
id: z.ZodString;
|
|
5364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5365
|
+
kind: z.ZodLiteral<"role">;
|
|
5366
|
+
id: z.ZodString;
|
|
5367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5368
|
+
kind: z.ZodLiteral<"trigger">;
|
|
5369
|
+
id: z.ZodString;
|
|
5370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5371
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
5372
|
+
id: z.ZodString;
|
|
5373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5374
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
5375
|
+
id: z.ZodString;
|
|
5376
|
+
}, z.core.$strip>], "kind">;
|
|
5377
|
+
kind: z.ZodEnum<{
|
|
5378
|
+
triggers: "triggers";
|
|
5379
|
+
uses: "uses";
|
|
5380
|
+
approval: "approval";
|
|
5381
|
+
}>;
|
|
5382
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5383
|
+
kind: z.ZodLiteral<"system">;
|
|
5384
|
+
id: z.ZodString;
|
|
5385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5386
|
+
kind: z.ZodLiteral<"resource">;
|
|
5387
|
+
id: z.ZodString;
|
|
5388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5389
|
+
kind: z.ZodLiteral<"ontology">;
|
|
5390
|
+
id: z.ZodString;
|
|
5391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5392
|
+
kind: z.ZodLiteral<"role">;
|
|
5393
|
+
id: z.ZodString;
|
|
5394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5395
|
+
kind: z.ZodLiteral<"trigger">;
|
|
5396
|
+
id: z.ZodString;
|
|
5397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5398
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
5399
|
+
id: z.ZodString;
|
|
5400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5401
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
5402
|
+
id: z.ZodString;
|
|
5403
|
+
}, z.core.$strip>], "kind">;
|
|
5404
|
+
systemPath: z.ZodOptional<z.ZodString>;
|
|
5405
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5406
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
5407
|
+
}, z.core.$strip>>>;
|
|
5408
|
+
}, z.core.$strip>>>;
|
|
5409
|
+
actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5410
|
+
id: z.ZodString;
|
|
5411
|
+
order: z.ZodNumber;
|
|
5412
|
+
label: z.ZodString;
|
|
5413
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5414
|
+
scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
5415
|
+
domain: z.ZodString;
|
|
5416
|
+
}, z.core.$strip>]>>;
|
|
5417
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
5418
|
+
affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5419
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5420
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
5421
|
+
command: z.ZodString;
|
|
5422
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
5423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5424
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
5425
|
+
server: z.ZodString;
|
|
5426
|
+
name: z.ZodString;
|
|
5427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5428
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
5429
|
+
method: z.ZodEnum<{
|
|
5430
|
+
GET: "GET";
|
|
5431
|
+
POST: "POST";
|
|
5432
|
+
PATCH: "PATCH";
|
|
5433
|
+
DELETE: "DELETE";
|
|
5434
|
+
}>;
|
|
5435
|
+
path: z.ZodString;
|
|
5436
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
5437
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
5438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5439
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
5440
|
+
resourceId: z.ZodString;
|
|
5441
|
+
}, z.core.$strip>], "kind">>>;
|
|
5442
|
+
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5443
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
5444
|
+
active: "active";
|
|
5445
|
+
deprecated: "deprecated";
|
|
5446
|
+
draft: "draft";
|
|
5447
|
+
beta: "beta";
|
|
5448
|
+
archived: "archived";
|
|
5449
|
+
}>>;
|
|
5450
|
+
}, z.core.$strip>>>>;
|
|
5451
|
+
entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5452
|
+
id: z.ZodString;
|
|
5453
|
+
order: z.ZodNumber;
|
|
5454
|
+
label: z.ZodString;
|
|
5455
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5456
|
+
ownedBySystemId: z.ZodString;
|
|
5457
|
+
table: z.ZodOptional<z.ZodString>;
|
|
5458
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
5459
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
5460
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5461
|
+
toEntity: z.ZodString;
|
|
5462
|
+
kind: z.ZodEnum<{
|
|
5463
|
+
"belongs-to": "belongs-to";
|
|
5464
|
+
"has-many": "has-many";
|
|
5465
|
+
"has-one": "has-one";
|
|
5466
|
+
"many-to-many": "many-to-many";
|
|
5467
|
+
}>;
|
|
5468
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5469
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5470
|
+
}, z.core.$strip>>>;
|
|
5471
|
+
}, z.core.$strip>>>>;
|
|
5472
|
+
knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5473
|
+
id: z.ZodString;
|
|
5474
|
+
kind: z.ZodEnum<{
|
|
5475
|
+
playbook: "playbook";
|
|
5476
|
+
strategy: "strategy";
|
|
5477
|
+
reference: "reference";
|
|
5478
|
+
}>;
|
|
5479
|
+
title: z.ZodString;
|
|
5480
|
+
summary: z.ZodString;
|
|
5481
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
5482
|
+
message: "message";
|
|
5483
|
+
error: "error";
|
|
5484
|
+
agent: "agent";
|
|
5485
|
+
workflow: "workflow";
|
|
5486
|
+
"google-sheets": "google-sheets";
|
|
5487
|
+
dashboard: "dashboard";
|
|
5488
|
+
calendar: "calendar";
|
|
5489
|
+
sales: "sales";
|
|
5490
|
+
crm: "crm";
|
|
5491
|
+
"lead-gen": "lead-gen";
|
|
5492
|
+
projects: "projects";
|
|
5493
|
+
clients: "clients";
|
|
5494
|
+
operations: "operations";
|
|
5495
|
+
monitoring: "monitoring";
|
|
5496
|
+
knowledge: "knowledge";
|
|
5497
|
+
settings: "settings";
|
|
5498
|
+
admin: "admin";
|
|
5499
|
+
archive: "archive";
|
|
5500
|
+
business: "business";
|
|
5501
|
+
finance: "finance";
|
|
5502
|
+
platform: "platform";
|
|
5503
|
+
seo: "seo";
|
|
5504
|
+
playbook: "playbook";
|
|
5505
|
+
strategy: "strategy";
|
|
5506
|
+
reference: "reference";
|
|
5507
|
+
integration: "integration";
|
|
5508
|
+
database: "database";
|
|
5509
|
+
user: "user";
|
|
5510
|
+
team: "team";
|
|
5511
|
+
gmail: "gmail";
|
|
5512
|
+
attio: "attio";
|
|
5513
|
+
overview: "overview";
|
|
5514
|
+
"command-view": "command-view";
|
|
5515
|
+
"command-queue": "command-queue";
|
|
5516
|
+
pipeline: "pipeline";
|
|
5517
|
+
lists: "lists";
|
|
5518
|
+
resources: "resources";
|
|
5519
|
+
approve: "approve";
|
|
5520
|
+
reject: "reject";
|
|
5521
|
+
retry: "retry";
|
|
5522
|
+
edit: "edit";
|
|
5523
|
+
view: "view";
|
|
5524
|
+
launch: "launch";
|
|
5525
|
+
"message-plus": "message-plus";
|
|
5526
|
+
escalate: "escalate";
|
|
5527
|
+
promote: "promote";
|
|
5528
|
+
submit: "submit";
|
|
5529
|
+
email: "email";
|
|
5530
|
+
success: "success";
|
|
5531
|
+
warning: "warning";
|
|
5532
|
+
info: "info";
|
|
5533
|
+
pending: "pending";
|
|
5534
|
+
bolt: "bolt";
|
|
5535
|
+
building: "building";
|
|
5536
|
+
briefcase: "briefcase";
|
|
5537
|
+
apps: "apps";
|
|
5538
|
+
graph: "graph";
|
|
5539
|
+
shield: "shield";
|
|
5540
|
+
users: "users";
|
|
5541
|
+
"chart-bar": "chart-bar";
|
|
5542
|
+
search: "search";
|
|
5543
|
+
}>, z.ZodString]>>;
|
|
5544
|
+
externalUrl: z.ZodOptional<z.ZodString>;
|
|
5545
|
+
sourceFilePath: z.ZodOptional<z.ZodString>;
|
|
5546
|
+
body: z.ZodString;
|
|
5547
|
+
links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
5548
|
+
target: z.ZodObject<{
|
|
5549
|
+
kind: z.ZodEnum<{
|
|
5550
|
+
knowledge: "knowledge";
|
|
5551
|
+
system: "system";
|
|
5552
|
+
resource: "resource";
|
|
5553
|
+
action: "action";
|
|
5554
|
+
ontology: "ontology";
|
|
5555
|
+
role: "role";
|
|
5556
|
+
client: "client";
|
|
5557
|
+
stage: "stage";
|
|
5558
|
+
goal: "goal";
|
|
5559
|
+
"customer-segment": "customer-segment";
|
|
5560
|
+
offering: "offering";
|
|
5561
|
+
}>;
|
|
5562
|
+
id: z.ZodString;
|
|
5563
|
+
}, z.core.$strip>;
|
|
5564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5565
|
+
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
5566
|
+
}, z.core.$strip>]>, z.ZodTransform<{
|
|
5567
|
+
target: {
|
|
5568
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5569
|
+
id: string;
|
|
5570
|
+
};
|
|
5571
|
+
nodeId: string;
|
|
5572
|
+
}, {
|
|
5573
|
+
nodeId: string;
|
|
5574
|
+
} | {
|
|
5575
|
+
target: {
|
|
5576
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5577
|
+
id: string;
|
|
5578
|
+
};
|
|
5579
|
+
}>>>>;
|
|
5580
|
+
ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5581
|
+
updatedAt: z.ZodString;
|
|
5582
|
+
}, z.core.$strip>>>>;
|
|
5583
|
+
}, z.core.$strip>;
|
|
5584
|
+
|
|
5585
|
+
type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
5586
|
+
|
|
4272
5587
|
declare const GetRecentActivityResponseSchema: z.ZodObject<{
|
|
4273
5588
|
entries: z.ZodArray<z.ZodObject<{
|
|
4274
5589
|
id: z.ZodString;
|
|
@@ -4331,9 +5646,15 @@ interface OrganizationMembership {
|
|
|
4331
5646
|
* - `linked` — an `org_memberships` row that carries a `workos_membership_id`
|
|
4332
5647
|
* - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
|
|
4333
5648
|
* the invitee was provisioned but has not completed signup
|
|
5649
|
+
* - `accepted_unlinked` — an `org_memberships` row with no `workos_membership_id`
|
|
5650
|
+
* for which WorkOS nonetheless holds a live membership, matched by user and
|
|
5651
|
+
* organization. The person has real access; only our record of the link is
|
|
5652
|
+
* missing. Distinct from `pre_provisioned` because the column both states read
|
|
5653
|
+
* as NULL is precisely the one that cannot tell them apart -- see
|
|
5654
|
+
* `recoverUnlinkedWorkOSMembership` in the API's membership service.
|
|
4334
5655
|
* - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
|
|
4335
5656
|
*/
|
|
4336
|
-
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
5657
|
+
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'accepted_unlinked' | 'workos_only';
|
|
4337
5658
|
/**
|
|
4338
5659
|
* Extended membership with user and organization details for UI
|
|
4339
5660
|
*
|
|
@@ -4849,6 +6170,7 @@ declare const PERMISSIONS: {
|
|
|
4849
6170
|
readonly ACQUISITION_MANAGE: "acquisition.manage";
|
|
4850
6171
|
readonly PROJECTS_MANAGE: "projects.manage";
|
|
4851
6172
|
readonly CLIENTS_MANAGE: "clients.manage";
|
|
6173
|
+
readonly CONTENT_MANAGE: "content.manage";
|
|
4852
6174
|
};
|
|
4853
6175
|
type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
|
|
4854
6176
|
/**
|
|
@@ -5172,6 +6494,32 @@ interface APIErrorAlertProps {
|
|
|
5172
6494
|
*/
|
|
5173
6495
|
declare function APIErrorAlert({ error, title, showRequestId, icon, color }: APIErrorAlertProps): react_jsx_runtime.JSX.Element;
|
|
5174
6496
|
|
|
6497
|
+
interface OrganizationModelDriftActionIconProps {
|
|
6498
|
+
/** The organization model this bundle was compiled against. */
|
|
6499
|
+
organizationModel: OrganizationModel;
|
|
6500
|
+
/** Shown instead of the default copy. */
|
|
6501
|
+
message?: string;
|
|
6502
|
+
}
|
|
6503
|
+
/**
|
|
6504
|
+
* Topbar warning for a UI build whose organization model is older than the
|
|
6505
|
+
* deployed one.
|
|
6506
|
+
*
|
|
6507
|
+
* Replaces `OrganizationModelDriftBanner` (2026-08-11). The banner sat above
|
|
6508
|
+
* `SystemShell` and pushed every page's content down by its full height on
|
|
6509
|
+
* every route — a persistent layout cost for a condition that is usually
|
|
6510
|
+
* transient and always non-blocking. This states the same thing in the topbar,
|
|
6511
|
+
* next to the other action icons, and costs no vertical space.
|
|
6512
|
+
*
|
|
6513
|
+
* Renders nothing unless both hashes are known and differ, so it is safe to
|
|
6514
|
+
* mount unconditionally — the icon's presence IS the warning.
|
|
6515
|
+
*
|
|
6516
|
+
* @example
|
|
6517
|
+
* ```tsx
|
|
6518
|
+
* <OrganizationModelDriftActionIcon organizationModel={COMMAND_CENTER_ORGANIZATION_MODEL} />
|
|
6519
|
+
* ```
|
|
6520
|
+
*/
|
|
6521
|
+
declare function OrganizationModelDriftActionIcon({ organizationModel, message }: OrganizationModelDriftActionIconProps): react_jsx_runtime.JSX.Element | null;
|
|
6522
|
+
|
|
5175
6523
|
interface CenteredErrorStateProps {
|
|
5176
6524
|
error: unknown;
|
|
5177
6525
|
title?: string;
|
|
@@ -5271,7 +6619,7 @@ interface StyledMarkdownProps {
|
|
|
5271
6619
|
*
|
|
5272
6620
|
* @example
|
|
5273
6621
|
* ```tsx
|
|
5274
|
-
* import { StyledMarkdown } from '@
|
|
6622
|
+
* import { StyledMarkdown } from '@elevasis/ui/components'
|
|
5275
6623
|
*
|
|
5276
6624
|
* <StyledMarkdown>{markdownContent}</StyledMarkdown>
|
|
5277
6625
|
* ```
|
|
@@ -5291,7 +6639,7 @@ interface JsonViewerProps {
|
|
|
5291
6639
|
*
|
|
5292
6640
|
* @example
|
|
5293
6641
|
* ```tsx
|
|
5294
|
-
* import { JsonViewer } from '@
|
|
6642
|
+
* import { JsonViewer } from '@elevasis/ui/components'
|
|
5295
6643
|
*
|
|
5296
6644
|
* <JsonViewer data={{ foo: 'bar', count: 42 }} />
|
|
5297
6645
|
* <JsonViewer data={apiResponse} maxHeight={300} />
|
|
@@ -6121,7 +7469,23 @@ interface RunResourceButtonProps {
|
|
|
6121
7469
|
resourceId: string;
|
|
6122
7470
|
resourceType: 'workflow' | 'agent' | 'trigger';
|
|
6123
7471
|
getInput: RunResourceInputResolver;
|
|
7472
|
+
/**
|
|
7473
|
+
* Context the caller already knows, merged into the executed input but never shown
|
|
7474
|
+
* as a form field -- the subject of the run rather than something the user types.
|
|
7475
|
+
*
|
|
7476
|
+
* Distinct from `defaults`, which prefills a field the form does show. The content
|
|
7477
|
+
* pipeline needs this: a step's `payloadFields` describe the step's own arguments,
|
|
7478
|
+
* while the workflow's input schema also requires the `contentItemId` the step acts
|
|
7479
|
+
* on, and that comes from the page, not the form.
|
|
7480
|
+
*
|
|
7481
|
+
* Form values win on a key collision, since a visible field is what the user chose.
|
|
7482
|
+
*/
|
|
7483
|
+
baseInput?: Record<string, unknown>;
|
|
6124
7484
|
label?: string;
|
|
7485
|
+
/** Modal heading when `getInput` opens a form. Defaults to the button label. */
|
|
7486
|
+
title?: string;
|
|
7487
|
+
/** Blocks dispatch when the caller has not yet gathered what `baseInput` needs. */
|
|
7488
|
+
disabled?: boolean;
|
|
6125
7489
|
icon?: ReactNode;
|
|
6126
7490
|
color?: string;
|
|
6127
7491
|
onSuccess?: (result: ExecuteAsyncResult) => void;
|
|
@@ -6135,7 +7499,7 @@ interface RunResourceButtonProps {
|
|
|
6135
7499
|
*
|
|
6136
7500
|
* Label and color resolve from explicit props, then defaults.
|
|
6137
7501
|
*/
|
|
6138
|
-
declare function RunResourceButton({ resourceId, resourceType, getInput, label, icon, color, onSuccess, onError }: RunResourceButtonProps): react_jsx_runtime.JSX.Element;
|
|
7502
|
+
declare function RunResourceButton({ resourceId, resourceType, getInput, baseInput, label, title, disabled, icon, color, onSuccess, onError }: RunResourceButtonProps): react_jsx_runtime.JSX.Element;
|
|
6139
7503
|
|
|
6140
7504
|
/**
|
|
6141
7505
|
* Graph Component Types
|
|
@@ -6452,7 +7816,7 @@ declare const showWarningNotification: (message: string) => void;
|
|
|
6452
7816
|
*
|
|
6453
7817
|
* @example
|
|
6454
7818
|
* ```typescript
|
|
6455
|
-
* import { showApiErrorNotification } from '@
|
|
7819
|
+
* import { showApiErrorNotification } from '@elevasis/ui/components'
|
|
6456
7820
|
*
|
|
6457
7821
|
* onError: (error) => {
|
|
6458
7822
|
* showApiErrorNotification(error)
|
|
@@ -7292,8 +8656,14 @@ interface DealDetailPageProps {
|
|
|
7292
8656
|
dealId: string;
|
|
7293
8657
|
renderActions?: (deal: DealDetail) => ReactNode;
|
|
7294
8658
|
onDealLoaded?: (deal: DealDetail) => void;
|
|
8659
|
+
/**
|
|
8660
|
+
* Base URL for the "Copy Booking Link" affordance. `@repo/ui` has no built-in booking
|
|
8661
|
+
* domain -- when omitted, the copy-link button is hidden rather than falling back to
|
|
8662
|
+
* a placeholder URL.
|
|
8663
|
+
*/
|
|
8664
|
+
bookingUrl?: string;
|
|
7295
8665
|
}
|
|
7296
|
-
declare function DealDetailPage({ dealId, renderActions, onDealLoaded }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
8666
|
+
declare function DealDetailPage({ dealId, renderActions, onDealLoaded, bookingUrl }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
7297
8667
|
|
|
7298
8668
|
interface CompanyDetailPageProps {
|
|
7299
8669
|
companyId: string;
|
|
@@ -7425,5 +8795,5 @@ declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
|
|
|
7425
8795
|
|
|
7426
8796
|
declare const operationsManifest: SystemModule;
|
|
7427
8797
|
|
|
7428
|
-
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useRecentCrmActivity };
|
|
8798
|
+
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, OrganizationModelDriftActionIcon, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useRecentCrmActivity };
|
|
7429
8799
|
export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
|