@elevasis/ui 2.30.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +2 -2
- package/dist/app/index.css +38 -0
- package/dist/app/index.d.ts +190 -9
- package/dist/app/index.js +7 -6
- package/dist/charts/index.js +4 -5
- package/dist/{chunk-HXZQWMKE.js → chunk-2RJMVWFJ.js} +1 -6
- package/dist/{chunk-4VQ2PXMI.js → chunk-3FV6HBXS.js} +4 -4
- package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
- package/dist/{chunk-JKTPRYGV.js → chunk-4MFNGNHF.js} +123 -192
- package/dist/{chunk-HYLERWRO.js → chunk-4QK76KIF.js} +7 -7
- package/dist/chunk-5FJJ72HU.js +13 -0
- package/dist/chunk-5J4PDX26.js +112 -0
- package/dist/{chunk-4SY6BTVZ.js → chunk-6DWD423K.js} +12 -9
- package/dist/{chunk-3GV5NHSS.js → chunk-7KZINJLP.js} +78 -232
- package/dist/{chunk-6WXDE5LZ.js → chunk-EPTHX4VZ.js} +1 -1
- package/dist/{chunk-6EFVZV6X.js → chunk-GCOQ3TBG.js} +243 -254
- package/dist/{chunk-LRZFLK2F.js → chunk-IQHU7O5Y.js} +4 -4
- package/dist/{chunk-X2SUMO3P.js → chunk-IZWTVFJ2.js} +16 -3
- package/dist/{chunk-IKQ42WHU.js → chunk-JFL3GRD4.js} +1 -1
- package/dist/{chunk-4FZYEEPK.js → chunk-LLRXA7D7.js} +5 -6
- package/dist/chunk-MOY4VOHF.js +347 -0
- package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
- package/dist/{chunk-7E3FUTND.js → chunk-ND5TDV2J.js} +1 -1
- package/dist/{chunk-WF227UBV.js → chunk-QQHOKTJA.js} +4 -4
- package/dist/{chunk-A7B7HLDF.js → chunk-QTI3KC7D.js} +5884 -515
- package/dist/chunk-QXCDKE2O.js +486 -0
- package/dist/chunk-R2XR4FCV.js +48 -0
- package/dist/chunk-R66W5UDG.js +26 -0
- package/dist/{chunk-T5Z7G2J2.js → chunk-RQA2EVN3.js} +6 -16
- package/dist/{chunk-SKXXT3E2.js → chunk-RQTWIXJ5.js} +4 -4
- package/dist/chunk-T35FWDAB.js +4342 -0
- package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
- package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
- package/dist/{chunk-JCGD4GM6.js → chunk-UROTM5OR.js} +14 -1
- package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
- package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
- package/dist/{chunk-SBCIB5TZ.js → chunk-VRNMNB3O.js} +6 -7
- package/dist/chunk-WQPX44YM.js +1626 -0
- package/dist/{chunk-T2PAD63Y.js → chunk-XZGSCABI.js} +1 -1
- package/dist/chunk-YLQEVSOR.js +299 -0
- package/dist/{chunk-P5WYW2GI.js → chunk-ZQOKIGZP.js} +152 -306
- package/dist/components/index.css +38 -0
- package/dist/components/index.d.ts +334 -38
- package/dist/components/index.js +42 -42
- package/dist/components/navigation/index.css +38 -0
- package/dist/components/navigation/index.js +3 -2
- package/dist/execution/index.d.ts +9 -3
- package/dist/features/auth/index.css +38 -0
- package/dist/features/auth/index.d.ts +212 -14
- package/dist/features/auth/index.js +41 -9
- package/dist/features/clients/index.css +649 -0
- package/dist/features/clients/index.d.ts +86 -0
- package/dist/features/clients/index.js +720 -0
- package/dist/features/crm/index.css +38 -0
- package/dist/features/crm/index.d.ts +228 -20
- package/dist/features/crm/index.js +20 -17
- package/dist/features/dashboard/index.css +38 -0
- package/dist/features/dashboard/index.d.ts +78 -3
- package/dist/features/dashboard/index.js +16 -16
- package/dist/features/delivery/index.css +38 -0
- package/dist/features/delivery/index.d.ts +201 -18
- package/dist/features/delivery/index.js +20 -18
- package/dist/features/knowledge/index.css +38 -0
- package/dist/features/knowledge/index.d.ts +20 -18
- package/dist/features/knowledge/index.js +116 -578
- package/dist/features/lead-gen/index.css +38 -0
- package/dist/features/lead-gen/index.d.ts +59 -51
- package/dist/features/lead-gen/index.js +20 -18
- package/dist/features/monitoring/index.css +38 -0
- package/dist/features/monitoring/index.d.ts +20 -18
- package/dist/features/monitoring/index.js +19 -18
- package/dist/features/monitoring/requests/index.css +38 -0
- package/dist/features/monitoring/requests/index.d.ts +21 -19
- package/dist/features/monitoring/requests/index.js +17 -15
- package/dist/features/operations/index.css +38 -0
- package/dist/features/operations/index.d.ts +945 -45
- package/dist/features/operations/index.js +24 -26
- package/dist/features/seo/index.d.ts +20 -18
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.css +38 -0
- package/dist/features/settings/index.d.ts +201 -18
- package/dist/features/settings/index.js +18 -16
- package/dist/hooks/delivery/index.css +38 -0
- package/dist/hooks/delivery/index.d.ts +200 -0
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +38 -0
- package/dist/hooks/index.d.ts +825 -47
- package/dist/hooks/index.js +14 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +194 -3
- package/dist/hooks/published.css +38 -0
- package/dist/hooks/published.d.ts +825 -47
- package/dist/hooks/published.js +14 -13
- package/dist/index.css +38 -0
- package/dist/index.d.ts +1506 -1212
- package/dist/index.js +15 -14
- package/dist/initialization/index.d.ts +181 -0
- package/dist/knowledge/index.d.ts +813 -1068
- package/dist/knowledge/index.js +7370 -2869
- package/dist/{chunk-CLUP5H3C.js → knowledge-search-index-5KYPO746.js} +441 -963
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +4 -5
- package/dist/organization/index.css +38 -0
- package/dist/profile/index.d.ts +181 -0
- package/dist/provider/index.css +38 -0
- package/dist/provider/index.d.ts +909 -1156
- package/dist/provider/index.js +11 -10
- package/dist/provider/published.css +38 -0
- package/dist/provider/published.d.ts +906 -1153
- package/dist/provider/published.js +7 -6
- package/dist/supabase/index.d.ts +349 -0
- package/dist/test-utils/index.d.ts +16 -9
- package/dist/test-utils/index.js +39 -32
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/types/index.d.ts +378 -5
- package/dist/utils/index.d.ts +78 -3
- 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 +47 -37
- package/src/provider/README.md +5 -5
- package/dist/chunk-2DIYILF7.js +0 -413
- package/dist/chunk-3MDNBHVB.js +0 -3868
- package/dist/chunk-6IXOKUBC.js +0 -347
- package/dist/chunk-AKOD52HS.js +0 -739
- package/dist/chunk-ECNNI3NT.js +0 -6
- package/dist/chunk-JDNEWB5F.js +0 -10
- package/dist/chunk-NITGGYH2.js +0 -476
- package/dist/chunk-OAVTMITG.js +0 -13
package/dist/types/index.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ interface SerializedAgentDefinition {
|
|
|
227
227
|
description: string;
|
|
228
228
|
version: string;
|
|
229
229
|
type: 'agent';
|
|
230
|
+
kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
|
|
230
231
|
status: 'dev' | 'prod';
|
|
231
232
|
links?: ResourceLink[];
|
|
232
233
|
category?: ResourceCategory;
|
|
@@ -410,6 +411,125 @@ interface ModelConfig {
|
|
|
410
411
|
modelOptions?: ModelSpecificOptions;
|
|
411
412
|
}
|
|
412
413
|
|
|
414
|
+
declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
|
|
415
|
+
deprecated: "deprecated";
|
|
416
|
+
active: "active";
|
|
417
|
+
archived: "archived";
|
|
418
|
+
}>;
|
|
419
|
+
declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
422
|
+
systemPath: z.ZodString;
|
|
423
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
424
|
+
status: z.ZodEnum<{
|
|
425
|
+
deprecated: "deprecated";
|
|
426
|
+
active: "active";
|
|
427
|
+
archived: "archived";
|
|
428
|
+
}>;
|
|
429
|
+
kind: z.ZodLiteral<"workflow">;
|
|
430
|
+
actionKey: z.ZodOptional<z.ZodString>;
|
|
431
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
|
+
eventKey: z.ZodString;
|
|
433
|
+
label: z.ZodString;
|
|
434
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
435
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
deprecated: "deprecated";
|
|
437
|
+
draft: "draft";
|
|
438
|
+
beta: "beta";
|
|
439
|
+
active: "active";
|
|
440
|
+
archived: "archived";
|
|
441
|
+
}>>;
|
|
442
|
+
}, z.core.$strip>>>;
|
|
443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
446
|
+
systemPath: z.ZodString;
|
|
447
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
448
|
+
status: z.ZodEnum<{
|
|
449
|
+
deprecated: "deprecated";
|
|
450
|
+
active: "active";
|
|
451
|
+
archived: "archived";
|
|
452
|
+
}>;
|
|
453
|
+
kind: z.ZodLiteral<"agent">;
|
|
454
|
+
agentKind: z.ZodEnum<{
|
|
455
|
+
platform: "platform";
|
|
456
|
+
orchestrator: "orchestrator";
|
|
457
|
+
specialist: "specialist";
|
|
458
|
+
utility: "utility";
|
|
459
|
+
}>;
|
|
460
|
+
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
461
|
+
sessionCapable: z.ZodBoolean;
|
|
462
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
463
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
464
|
+
command: z.ZodString;
|
|
465
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
468
|
+
server: z.ZodString;
|
|
469
|
+
name: z.ZodString;
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
472
|
+
method: z.ZodEnum<{
|
|
473
|
+
GET: "GET";
|
|
474
|
+
POST: "POST";
|
|
475
|
+
PATCH: "PATCH";
|
|
476
|
+
DELETE: "DELETE";
|
|
477
|
+
}>;
|
|
478
|
+
path: z.ZodString;
|
|
479
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
480
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
483
|
+
resourceId: z.ZodString;
|
|
484
|
+
}, z.core.$strip>], "kind">>>;
|
|
485
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
eventKey: z.ZodString;
|
|
487
|
+
label: z.ZodString;
|
|
488
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
489
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
deprecated: "deprecated";
|
|
491
|
+
draft: "draft";
|
|
492
|
+
beta: "beta";
|
|
493
|
+
active: "active";
|
|
494
|
+
archived: "archived";
|
|
495
|
+
}>>;
|
|
496
|
+
}, z.core.$strip>>>;
|
|
497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
+
id: z.ZodString;
|
|
499
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
500
|
+
systemPath: z.ZodString;
|
|
501
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
502
|
+
status: z.ZodEnum<{
|
|
503
|
+
deprecated: "deprecated";
|
|
504
|
+
active: "active";
|
|
505
|
+
archived: "archived";
|
|
506
|
+
}>;
|
|
507
|
+
kind: z.ZodLiteral<"integration">;
|
|
508
|
+
provider: z.ZodString;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
512
|
+
systemPath: z.ZodString;
|
|
513
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
514
|
+
status: z.ZodEnum<{
|
|
515
|
+
deprecated: "deprecated";
|
|
516
|
+
active: "active";
|
|
517
|
+
archived: "archived";
|
|
518
|
+
}>;
|
|
519
|
+
kind: z.ZodLiteral<"script">;
|
|
520
|
+
language: z.ZodEnum<{
|
|
521
|
+
shell: "shell";
|
|
522
|
+
sql: "sql";
|
|
523
|
+
typescript: "typescript";
|
|
524
|
+
python: "python";
|
|
525
|
+
}>;
|
|
526
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
527
|
+
file: z.ZodString;
|
|
528
|
+
}, z.core.$strip>]>;
|
|
529
|
+
}, z.core.$strip>], "kind">;
|
|
530
|
+
type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
|
|
531
|
+
type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
|
|
532
|
+
|
|
413
533
|
/**
|
|
414
534
|
* Shared form field types for dynamic form generation
|
|
415
535
|
* Used by: Command Queue, Execution Runner UI, future form-based features
|
|
@@ -588,6 +708,7 @@ type Database = {
|
|
|
588
708
|
batch_id: string | null;
|
|
589
709
|
category: string | null;
|
|
590
710
|
category_pain: string | null;
|
|
711
|
+
client_id: string | null;
|
|
591
712
|
created_at: string;
|
|
592
713
|
domain: string | null;
|
|
593
714
|
enrichment_data: Json | null;
|
|
@@ -614,6 +735,7 @@ type Database = {
|
|
|
614
735
|
batch_id?: string | null;
|
|
615
736
|
category?: string | null;
|
|
616
737
|
category_pain?: string | null;
|
|
738
|
+
client_id?: string | null;
|
|
617
739
|
created_at?: string;
|
|
618
740
|
domain?: string | null;
|
|
619
741
|
enrichment_data?: Json | null;
|
|
@@ -640,6 +762,7 @@ type Database = {
|
|
|
640
762
|
batch_id?: string | null;
|
|
641
763
|
category?: string | null;
|
|
642
764
|
category_pain?: string | null;
|
|
765
|
+
client_id?: string | null;
|
|
643
766
|
created_at?: string;
|
|
644
767
|
domain?: string | null;
|
|
645
768
|
enrichment_data?: Json | null;
|
|
@@ -663,6 +786,13 @@ type Database = {
|
|
|
663
786
|
website?: string | null;
|
|
664
787
|
};
|
|
665
788
|
Relationships: [
|
|
789
|
+
{
|
|
790
|
+
foreignKeyName: "acq_companies_client_id_fkey";
|
|
791
|
+
columns: ["client_id"];
|
|
792
|
+
isOneToOne: false;
|
|
793
|
+
referencedRelation: "clients";
|
|
794
|
+
referencedColumns: ["id"];
|
|
795
|
+
},
|
|
666
796
|
{
|
|
667
797
|
foreignKeyName: "acq_companies_organization_id_fkey";
|
|
668
798
|
columns: ["organization_id"];
|
|
@@ -677,6 +807,7 @@ type Database = {
|
|
|
677
807
|
batch_id: string | null;
|
|
678
808
|
brochure_first_viewed_at: string | null;
|
|
679
809
|
brochure_view_count: number;
|
|
810
|
+
client_id: string | null;
|
|
680
811
|
company_id: string | null;
|
|
681
812
|
created_at: string;
|
|
682
813
|
email: string;
|
|
@@ -705,6 +836,7 @@ type Database = {
|
|
|
705
836
|
batch_id?: string | null;
|
|
706
837
|
brochure_first_viewed_at?: string | null;
|
|
707
838
|
brochure_view_count?: number;
|
|
839
|
+
client_id?: string | null;
|
|
708
840
|
company_id?: string | null;
|
|
709
841
|
created_at?: string;
|
|
710
842
|
email: string;
|
|
@@ -733,6 +865,7 @@ type Database = {
|
|
|
733
865
|
batch_id?: string | null;
|
|
734
866
|
brochure_first_viewed_at?: string | null;
|
|
735
867
|
brochure_view_count?: number;
|
|
868
|
+
client_id?: string | null;
|
|
736
869
|
company_id?: string | null;
|
|
737
870
|
created_at?: string;
|
|
738
871
|
email?: string;
|
|
@@ -758,6 +891,13 @@ type Database = {
|
|
|
758
891
|
updated_at?: string;
|
|
759
892
|
};
|
|
760
893
|
Relationships: [
|
|
894
|
+
{
|
|
895
|
+
foreignKeyName: "acq_contacts_client_id_fkey";
|
|
896
|
+
columns: ["client_id"];
|
|
897
|
+
isOneToOne: false;
|
|
898
|
+
referencedRelation: "clients";
|
|
899
|
+
referencedColumns: ["id"];
|
|
900
|
+
},
|
|
761
901
|
{
|
|
762
902
|
foreignKeyName: "acq_contacts_company_id_fkey";
|
|
763
903
|
columns: ["company_id"];
|
|
@@ -1001,8 +1141,10 @@ type Database = {
|
|
|
1001
1141
|
acq_deals: {
|
|
1002
1142
|
Row: {
|
|
1003
1143
|
activity_log: Json;
|
|
1144
|
+
client_id: string | null;
|
|
1004
1145
|
closed_lost_at: string | null;
|
|
1005
1146
|
closed_lost_reason: string | null;
|
|
1147
|
+
company_id: string | null;
|
|
1006
1148
|
contact_email: string;
|
|
1007
1149
|
contact_id: string | null;
|
|
1008
1150
|
created_at: string;
|
|
@@ -1038,8 +1180,10 @@ type Database = {
|
|
|
1038
1180
|
};
|
|
1039
1181
|
Insert: {
|
|
1040
1182
|
activity_log?: Json;
|
|
1183
|
+
client_id?: string | null;
|
|
1041
1184
|
closed_lost_at?: string | null;
|
|
1042
1185
|
closed_lost_reason?: string | null;
|
|
1186
|
+
company_id?: string | null;
|
|
1043
1187
|
contact_email: string;
|
|
1044
1188
|
contact_id?: string | null;
|
|
1045
1189
|
created_at?: string;
|
|
@@ -1075,8 +1219,10 @@ type Database = {
|
|
|
1075
1219
|
};
|
|
1076
1220
|
Update: {
|
|
1077
1221
|
activity_log?: Json;
|
|
1222
|
+
client_id?: string | null;
|
|
1078
1223
|
closed_lost_at?: string | null;
|
|
1079
1224
|
closed_lost_reason?: string | null;
|
|
1225
|
+
company_id?: string | null;
|
|
1080
1226
|
contact_email?: string;
|
|
1081
1227
|
contact_id?: string | null;
|
|
1082
1228
|
created_at?: string;
|
|
@@ -1111,6 +1257,20 @@ type Database = {
|
|
|
1111
1257
|
updated_at?: string;
|
|
1112
1258
|
};
|
|
1113
1259
|
Relationships: [
|
|
1260
|
+
{
|
|
1261
|
+
foreignKeyName: "acq_deals_client_id_fkey";
|
|
1262
|
+
columns: ["client_id"];
|
|
1263
|
+
isOneToOne: false;
|
|
1264
|
+
referencedRelation: "clients";
|
|
1265
|
+
referencedColumns: ["id"];
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
foreignKeyName: "acq_deals_company_id_fkey";
|
|
1269
|
+
columns: ["company_id"];
|
|
1270
|
+
isOneToOne: false;
|
|
1271
|
+
referencedRelation: "acq_companies";
|
|
1272
|
+
referencedColumns: ["id"];
|
|
1273
|
+
},
|
|
1114
1274
|
{
|
|
1115
1275
|
foreignKeyName: "acq_deals_contact_id_fkey";
|
|
1116
1276
|
columns: ["contact_id"];
|
|
@@ -1728,6 +1888,77 @@ type Database = {
|
|
|
1728
1888
|
}
|
|
1729
1889
|
];
|
|
1730
1890
|
};
|
|
1891
|
+
clients: {
|
|
1892
|
+
Row: {
|
|
1893
|
+
converted_at: string | null;
|
|
1894
|
+
created_at: string;
|
|
1895
|
+
id: string;
|
|
1896
|
+
metadata: Json;
|
|
1897
|
+
name: string;
|
|
1898
|
+
organization_id: string;
|
|
1899
|
+
primary_company_id: string | null;
|
|
1900
|
+
primary_contact_id: string | null;
|
|
1901
|
+
source_deal_id: string | null;
|
|
1902
|
+
status: string;
|
|
1903
|
+
updated_at: string;
|
|
1904
|
+
};
|
|
1905
|
+
Insert: {
|
|
1906
|
+
converted_at?: string | null;
|
|
1907
|
+
created_at?: string;
|
|
1908
|
+
id?: string;
|
|
1909
|
+
metadata?: Json;
|
|
1910
|
+
name: string;
|
|
1911
|
+
organization_id: string;
|
|
1912
|
+
primary_company_id?: string | null;
|
|
1913
|
+
primary_contact_id?: string | null;
|
|
1914
|
+
source_deal_id?: string | null;
|
|
1915
|
+
status?: string;
|
|
1916
|
+
updated_at?: string;
|
|
1917
|
+
};
|
|
1918
|
+
Update: {
|
|
1919
|
+
converted_at?: string | null;
|
|
1920
|
+
created_at?: string;
|
|
1921
|
+
id?: string;
|
|
1922
|
+
metadata?: Json;
|
|
1923
|
+
name?: string;
|
|
1924
|
+
organization_id?: string;
|
|
1925
|
+
primary_company_id?: string | null;
|
|
1926
|
+
primary_contact_id?: string | null;
|
|
1927
|
+
source_deal_id?: string | null;
|
|
1928
|
+
status?: string;
|
|
1929
|
+
updated_at?: string;
|
|
1930
|
+
};
|
|
1931
|
+
Relationships: [
|
|
1932
|
+
{
|
|
1933
|
+
foreignKeyName: "clients_organization_id_fkey";
|
|
1934
|
+
columns: ["organization_id"];
|
|
1935
|
+
isOneToOne: false;
|
|
1936
|
+
referencedRelation: "organizations";
|
|
1937
|
+
referencedColumns: ["id"];
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
foreignKeyName: "clients_primary_company_id_fkey";
|
|
1941
|
+
columns: ["primary_company_id"];
|
|
1942
|
+
isOneToOne: false;
|
|
1943
|
+
referencedRelation: "acq_companies";
|
|
1944
|
+
referencedColumns: ["id"];
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
foreignKeyName: "clients_primary_contact_id_fkey";
|
|
1948
|
+
columns: ["primary_contact_id"];
|
|
1949
|
+
isOneToOne: false;
|
|
1950
|
+
referencedRelation: "acq_contacts";
|
|
1951
|
+
referencedColumns: ["id"];
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
foreignKeyName: "clients_source_deal_id_fkey";
|
|
1955
|
+
columns: ["source_deal_id"];
|
|
1956
|
+
isOneToOne: false;
|
|
1957
|
+
referencedRelation: "acq_deals";
|
|
1958
|
+
referencedColumns: ["id"];
|
|
1959
|
+
}
|
|
1960
|
+
];
|
|
1961
|
+
};
|
|
1731
1962
|
command_queue: {
|
|
1732
1963
|
Row: {
|
|
1733
1964
|
action_payload: Json | null;
|
|
@@ -2697,6 +2928,7 @@ type Database = {
|
|
|
2697
2928
|
Row: {
|
|
2698
2929
|
actual_end_date: string | null;
|
|
2699
2930
|
client_company_id: string | null;
|
|
2931
|
+
client_id: string | null;
|
|
2700
2932
|
contract_value: number | null;
|
|
2701
2933
|
created_at: string;
|
|
2702
2934
|
deal_id: string | null;
|
|
@@ -2714,6 +2946,7 @@ type Database = {
|
|
|
2714
2946
|
Insert: {
|
|
2715
2947
|
actual_end_date?: string | null;
|
|
2716
2948
|
client_company_id?: string | null;
|
|
2949
|
+
client_id?: string | null;
|
|
2717
2950
|
contract_value?: number | null;
|
|
2718
2951
|
created_at?: string;
|
|
2719
2952
|
deal_id?: string | null;
|
|
@@ -2731,6 +2964,7 @@ type Database = {
|
|
|
2731
2964
|
Update: {
|
|
2732
2965
|
actual_end_date?: string | null;
|
|
2733
2966
|
client_company_id?: string | null;
|
|
2967
|
+
client_id?: string | null;
|
|
2734
2968
|
contract_value?: number | null;
|
|
2735
2969
|
created_at?: string;
|
|
2736
2970
|
deal_id?: string | null;
|
|
@@ -2767,6 +3001,13 @@ type Database = {
|
|
|
2767
3001
|
referencedRelation: "acq_companies";
|
|
2768
3002
|
referencedColumns: ["id"];
|
|
2769
3003
|
},
|
|
3004
|
+
{
|
|
3005
|
+
foreignKeyName: "prj_projects_client_id_fkey";
|
|
3006
|
+
columns: ["client_id"];
|
|
3007
|
+
isOneToOne: false;
|
|
3008
|
+
referencedRelation: "clients";
|
|
3009
|
+
referencedColumns: ["id"];
|
|
3010
|
+
},
|
|
2770
3011
|
{
|
|
2771
3012
|
foreignKeyName: "prj_projects_deal_id_fkey";
|
|
2772
3013
|
columns: ["deal_id"];
|
|
@@ -3171,6 +3412,66 @@ type Database = {
|
|
|
3171
3412
|
}
|
|
3172
3413
|
];
|
|
3173
3414
|
};
|
|
3415
|
+
user_notes: {
|
|
3416
|
+
Row: {
|
|
3417
|
+
content: string;
|
|
3418
|
+
created_at: string;
|
|
3419
|
+
created_by: string;
|
|
3420
|
+
id: string;
|
|
3421
|
+
metadata: Json;
|
|
3422
|
+
organization_id: string | null;
|
|
3423
|
+
pinned: boolean;
|
|
3424
|
+
priority: string;
|
|
3425
|
+
source: string | null;
|
|
3426
|
+
title: string | null;
|
|
3427
|
+
updated_at: string;
|
|
3428
|
+
user_id: string;
|
|
3429
|
+
};
|
|
3430
|
+
Insert: {
|
|
3431
|
+
content: string;
|
|
3432
|
+
created_at?: string;
|
|
3433
|
+
created_by?: string;
|
|
3434
|
+
id?: string;
|
|
3435
|
+
metadata?: Json;
|
|
3436
|
+
organization_id?: string | null;
|
|
3437
|
+
pinned?: boolean;
|
|
3438
|
+
priority?: string;
|
|
3439
|
+
source?: string | null;
|
|
3440
|
+
title?: string | null;
|
|
3441
|
+
updated_at?: string;
|
|
3442
|
+
user_id: string;
|
|
3443
|
+
};
|
|
3444
|
+
Update: {
|
|
3445
|
+
content?: string;
|
|
3446
|
+
created_at?: string;
|
|
3447
|
+
created_by?: string;
|
|
3448
|
+
id?: string;
|
|
3449
|
+
metadata?: Json;
|
|
3450
|
+
organization_id?: string | null;
|
|
3451
|
+
pinned?: boolean;
|
|
3452
|
+
priority?: string;
|
|
3453
|
+
source?: string | null;
|
|
3454
|
+
title?: string | null;
|
|
3455
|
+
updated_at?: string;
|
|
3456
|
+
user_id?: string;
|
|
3457
|
+
};
|
|
3458
|
+
Relationships: [
|
|
3459
|
+
{
|
|
3460
|
+
foreignKeyName: "user_notes_organization_id_fkey";
|
|
3461
|
+
columns: ["organization_id"];
|
|
3462
|
+
isOneToOne: false;
|
|
3463
|
+
referencedRelation: "organizations";
|
|
3464
|
+
referencedColumns: ["id"];
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
foreignKeyName: "user_notes_user_id_fkey";
|
|
3468
|
+
columns: ["user_id"];
|
|
3469
|
+
isOneToOne: false;
|
|
3470
|
+
referencedRelation: "users";
|
|
3471
|
+
referencedColumns: ["id"];
|
|
3472
|
+
}
|
|
3473
|
+
];
|
|
3474
|
+
};
|
|
3174
3475
|
users: {
|
|
3175
3476
|
Row: {
|
|
3176
3477
|
config: Json;
|
|
@@ -4384,6 +4685,62 @@ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefini
|
|
|
4384
4685
|
*/
|
|
4385
4686
|
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
4386
4687
|
|
|
4688
|
+
/**
|
|
4689
|
+
* Placeholder discriminated union for ContentNode (Wave 1A).
|
|
4690
|
+
* Wave 2A wires concrete (kind, type) pairs via the registry.
|
|
4691
|
+
*
|
|
4692
|
+
* Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
|
|
4693
|
+
* Per L14: every node carries BOTH `kind` and `type`.
|
|
4694
|
+
*/
|
|
4695
|
+
declare const ContentNodeSchema: z.ZodObject<{
|
|
4696
|
+
label: z.ZodString;
|
|
4697
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4698
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
4699
|
+
parentContentId: z.ZodOptional<z.ZodString>;
|
|
4700
|
+
kind: z.ZodString;
|
|
4701
|
+
type: z.ZodString;
|
|
4702
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4703
|
+
}, z.core.$strip>;
|
|
4704
|
+
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
4705
|
+
|
|
4706
|
+
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
4707
|
+
interface SystemEntry {
|
|
4708
|
+
id: string;
|
|
4709
|
+
label?: string;
|
|
4710
|
+
title?: string;
|
|
4711
|
+
description?: string;
|
|
4712
|
+
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
4713
|
+
parentSystemId?: string;
|
|
4714
|
+
ui?: {
|
|
4715
|
+
path: string;
|
|
4716
|
+
surfaces: string[];
|
|
4717
|
+
icon?: string;
|
|
4718
|
+
order?: number;
|
|
4719
|
+
};
|
|
4720
|
+
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
4721
|
+
responsibleRoleId?: string;
|
|
4722
|
+
governedByKnowledge?: string[];
|
|
4723
|
+
actions?: {
|
|
4724
|
+
actionId: string;
|
|
4725
|
+
intent: 'exposes' | 'consumes';
|
|
4726
|
+
invocation?: unknown;
|
|
4727
|
+
}[];
|
|
4728
|
+
policies?: string[];
|
|
4729
|
+
drivesGoals?: string[];
|
|
4730
|
+
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
4731
|
+
status?: 'active' | 'deprecated' | 'archived';
|
|
4732
|
+
path?: string;
|
|
4733
|
+
icon?: string;
|
|
4734
|
+
color?: string;
|
|
4735
|
+
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
4736
|
+
enabled?: boolean;
|
|
4737
|
+
devOnly?: boolean;
|
|
4738
|
+
requiresAdmin?: boolean;
|
|
4739
|
+
order: number;
|
|
4740
|
+
content?: Record<string, ContentNode>;
|
|
4741
|
+
subsystems?: Record<string, SystemEntry>;
|
|
4742
|
+
}
|
|
4743
|
+
|
|
4387
4744
|
/**
|
|
4388
4745
|
* Resource Registry type definitions
|
|
4389
4746
|
*/
|
|
@@ -4397,6 +4754,7 @@ type ResourceStatus = 'dev' | 'prod';
|
|
|
4397
4754
|
* Used as the discriminator field in ResourceDefinition
|
|
4398
4755
|
*/
|
|
4399
4756
|
type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
4757
|
+
type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
|
|
4400
4758
|
/**
|
|
4401
4759
|
* Base interface for ALL platform resources
|
|
4402
4760
|
* Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
|
|
@@ -4422,6 +4780,12 @@ interface ResourceDefinition {
|
|
|
4422
4780
|
sessionCapable?: boolean;
|
|
4423
4781
|
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
4424
4782
|
origin?: 'local' | 'remote';
|
|
4783
|
+
/** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
|
|
4784
|
+
systemPath?: string;
|
|
4785
|
+
/** Display metadata for the owning OM System */
|
|
4786
|
+
system?: ResourceSystemSummary;
|
|
4787
|
+
/** Governance lifecycle status from the OM Resource descriptor */
|
|
4788
|
+
governanceStatus?: ResourceGovernanceStatus;
|
|
4425
4789
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
4426
4790
|
archived?: boolean;
|
|
4427
4791
|
}
|
|
@@ -4527,6 +4891,10 @@ interface TriggerDefinition extends ResourceDefinition {
|
|
|
4527
4891
|
interface IntegrationDefinition extends ResourceDefinition {
|
|
4528
4892
|
/** Resource type discriminator (narrowed from base union) */
|
|
4529
4893
|
type: 'integration';
|
|
4894
|
+
/** OM descriptor that owns canonical identity and governance metadata. */
|
|
4895
|
+
resource?: Extract<ResourceEntry, {
|
|
4896
|
+
kind: 'integration';
|
|
4897
|
+
}>;
|
|
4530
4898
|
/** Integration provider type */
|
|
4531
4899
|
provider: IntegrationType;
|
|
4532
4900
|
/** References credentials table (e.g., 'shopify-prod', 'zendesk-api') */
|
|
@@ -4713,20 +5081,25 @@ interface CommandViewData {
|
|
|
4713
5081
|
declare const LinkSchema: z.ZodObject<{
|
|
4714
5082
|
nodeId: z.ZodString;
|
|
4715
5083
|
kind: z.ZodEnum<{
|
|
5084
|
+
links: "links";
|
|
5085
|
+
affects: "affects";
|
|
5086
|
+
emits: "emits";
|
|
4716
5087
|
contains: "contains";
|
|
4717
5088
|
references: "references";
|
|
4718
|
-
exposes: "exposes";
|
|
4719
5089
|
maps_to: "maps_to";
|
|
4720
|
-
"operates-on": "operates-on";
|
|
4721
5090
|
uses: "uses";
|
|
4722
5091
|
governs: "governs";
|
|
5092
|
+
originates_from: "originates_from";
|
|
5093
|
+
triggers: "triggers";
|
|
5094
|
+
applies_to: "applies_to";
|
|
5095
|
+
effects: "effects";
|
|
4723
5096
|
}>;
|
|
4724
5097
|
}, z.core.$strip>;
|
|
4725
5098
|
type Link = z.infer<typeof LinkSchema>;
|
|
4726
5099
|
|
|
4727
5100
|
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
4728
|
-
production: "production";
|
|
4729
5101
|
diagnostic: "diagnostic";
|
|
5102
|
+
production: "production";
|
|
4730
5103
|
internal: "internal";
|
|
4731
5104
|
testing: "testing";
|
|
4732
5105
|
}>;
|
|
@@ -5025,9 +5398,9 @@ declare const ExecutionHistoryItemSchema: z.ZodObject<{
|
|
|
5025
5398
|
createdAt: z.ZodString;
|
|
5026
5399
|
status: z.ZodEnum<{
|
|
5027
5400
|
completed: "completed";
|
|
5028
|
-
cancelled: "cancelled";
|
|
5029
5401
|
failed: "failed";
|
|
5030
5402
|
running: "running";
|
|
5403
|
+
cancelled: "cancelled";
|
|
5031
5404
|
}>;
|
|
5032
5405
|
step: z.ZodNullable<z.ZodNumber>;
|
|
5033
5406
|
itemLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -5044,9 +5417,9 @@ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
|
|
|
5044
5417
|
createdAt: z.ZodString;
|
|
5045
5418
|
status: z.ZodEnum<{
|
|
5046
5419
|
completed: "completed";
|
|
5047
|
-
cancelled: "cancelled";
|
|
5048
5420
|
failed: "failed";
|
|
5049
5421
|
running: "running";
|
|
5422
|
+
cancelled: "cancelled";
|
|
5050
5423
|
}>;
|
|
5051
5424
|
step: z.ZodNullable<z.ZodNumber>;
|
|
5052
5425
|
itemLabel: z.ZodNullable<z.ZodString>;
|