@elevasis/sdk 1.22.0 → 1.22.1

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.
@@ -344,6 +344,8 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
344
344
  id: z.ZodString;
345
345
  order: z.ZodDefault<z.ZodNumber>;
346
346
  systemPath: z.ZodString;
347
+ title: z.ZodOptional<z.ZodString>;
348
+ description: z.ZodOptional<z.ZodString>;
347
349
  ownerRoleId: z.ZodOptional<z.ZodString>;
348
350
  status: z.ZodEnum<{
349
351
  deprecated: "deprecated";
@@ -351,7 +353,8 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
351
353
  archived: "archived";
352
354
  }>;
353
355
  ontology: z.ZodOptional<z.ZodObject<{
354
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
357
+ primaryAction: z.ZodOptional<z.ZodString>;
355
358
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
359
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
357
360
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -371,7 +374,6 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
371
374
  description: z.ZodOptional<z.ZodString>;
372
375
  }, z.core.$strip>>>;
373
376
  kind: z.ZodLiteral<"workflow">;
374
- actionKey: z.ZodOptional<z.ZodString>;
375
377
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
378
  eventKey: z.ZodString;
377
379
  label: z.ZodString;
@@ -389,6 +391,8 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
389
391
  id: z.ZodString;
390
392
  order: z.ZodDefault<z.ZodNumber>;
391
393
  systemPath: z.ZodString;
394
+ title: z.ZodOptional<z.ZodString>;
395
+ description: z.ZodOptional<z.ZodString>;
392
396
  ownerRoleId: z.ZodOptional<z.ZodString>;
393
397
  status: z.ZodEnum<{
394
398
  deprecated: "deprecated";
@@ -396,7 +400,8 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
396
400
  archived: "archived";
397
401
  }>;
398
402
  ontology: z.ZodOptional<z.ZodObject<{
399
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
404
+ primaryAction: z.ZodOptional<z.ZodString>;
400
405
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
406
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
402
407
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -464,6 +469,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
464
469
  id: z.ZodString;
465
470
  order: z.ZodDefault<z.ZodNumber>;
466
471
  systemPath: z.ZodString;
472
+ title: z.ZodOptional<z.ZodString>;
473
+ description: z.ZodOptional<z.ZodString>;
467
474
  ownerRoleId: z.ZodOptional<z.ZodString>;
468
475
  status: z.ZodEnum<{
469
476
  deprecated: "deprecated";
@@ -471,7 +478,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
471
478
  archived: "archived";
472
479
  }>;
473
480
  ontology: z.ZodOptional<z.ZodObject<{
474
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ primaryAction: z.ZodOptional<z.ZodString>;
475
483
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
476
484
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
477
485
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -491,7 +499,6 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
491
499
  description: z.ZodOptional<z.ZodString>;
492
500
  }, z.core.$strip>>>;
493
501
  kind: z.ZodLiteral<"workflow">;
494
- actionKey: z.ZodOptional<z.ZodString>;
495
502
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
503
  eventKey: z.ZodString;
497
504
  label: z.ZodString;
@@ -508,6 +515,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
508
515
  id: z.ZodString;
509
516
  order: z.ZodDefault<z.ZodNumber>;
510
517
  systemPath: z.ZodString;
518
+ title: z.ZodOptional<z.ZodString>;
519
+ description: z.ZodOptional<z.ZodString>;
511
520
  ownerRoleId: z.ZodOptional<z.ZodString>;
512
521
  status: z.ZodEnum<{
513
522
  deprecated: "deprecated";
@@ -515,7 +524,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
524
  archived: "archived";
516
525
  }>;
517
526
  ontology: z.ZodOptional<z.ZodObject<{
518
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
527
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
528
+ primaryAction: z.ZodOptional<z.ZodString>;
519
529
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
530
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
531
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -582,6 +592,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
582
592
  id: z.ZodString;
583
593
  order: z.ZodDefault<z.ZodNumber>;
584
594
  systemPath: z.ZodString;
595
+ title: z.ZodOptional<z.ZodString>;
596
+ description: z.ZodOptional<z.ZodString>;
585
597
  ownerRoleId: z.ZodOptional<z.ZodString>;
586
598
  status: z.ZodEnum<{
587
599
  deprecated: "deprecated";
@@ -589,7 +601,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
601
  archived: "archived";
590
602
  }>;
591
603
  ontology: z.ZodOptional<z.ZodObject<{
592
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
604
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
605
+ primaryAction: z.ZodOptional<z.ZodString>;
593
606
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
594
607
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
608
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -614,6 +627,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
614
627
  id: z.ZodString;
615
628
  order: z.ZodDefault<z.ZodNumber>;
616
629
  systemPath: z.ZodString;
630
+ title: z.ZodOptional<z.ZodString>;
631
+ description: z.ZodOptional<z.ZodString>;
617
632
  ownerRoleId: z.ZodOptional<z.ZodString>;
618
633
  status: z.ZodEnum<{
619
634
  deprecated: "deprecated";
@@ -621,7 +636,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
621
636
  archived: "archived";
622
637
  }>;
623
638
  ontology: z.ZodOptional<z.ZodObject<{
624
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
639
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ primaryAction: z.ZodOptional<z.ZodString>;
625
641
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
642
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
627
643
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -651,197 +667,6 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
651
667
  file: z.ZodString;
652
668
  }, z.core.$strip>]>;
653
669
  }, z.core.$strip>], "kind">;
654
- declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
655
- id: z.ZodString;
656
- order: z.ZodDefault<z.ZodNumber>;
657
- systemPath: z.ZodString;
658
- ownerRoleId: z.ZodOptional<z.ZodString>;
659
- status: z.ZodEnum<{
660
- deprecated: "deprecated";
661
- active: "active";
662
- archived: "archived";
663
- }>;
664
- ontology: z.ZodOptional<z.ZodObject<{
665
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
666
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
667
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
669
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
670
- }, z.core.$strip>>;
671
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
672
- path: z.ZodString;
673
- role: z.ZodEnum<{
674
- schema: "schema";
675
- config: "config";
676
- entrypoint: "entrypoint";
677
- handler: "handler";
678
- test: "test";
679
- docs: "docs";
680
- }>;
681
- symbol: z.ZodOptional<z.ZodString>;
682
- description: z.ZodOptional<z.ZodString>;
683
- }, z.core.$strip>>>;
684
- kind: z.ZodLiteral<"workflow">;
685
- actionKey: z.ZodOptional<z.ZodString>;
686
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
687
- eventKey: z.ZodString;
688
- label: z.ZodString;
689
- payloadSchema: z.ZodOptional<z.ZodString>;
690
- lifecycle: z.ZodOptional<z.ZodEnum<{
691
- deprecated: "deprecated";
692
- draft: "draft";
693
- beta: "beta";
694
- active: "active";
695
- archived: "archived";
696
- }>>;
697
- }, z.core.$strip>>>;
698
- }, z.core.$strip>, z.ZodObject<{
699
- id: z.ZodString;
700
- order: z.ZodDefault<z.ZodNumber>;
701
- systemPath: z.ZodString;
702
- ownerRoleId: z.ZodOptional<z.ZodString>;
703
- status: z.ZodEnum<{
704
- deprecated: "deprecated";
705
- active: "active";
706
- archived: "archived";
707
- }>;
708
- ontology: z.ZodOptional<z.ZodObject<{
709
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
710
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
711
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
712
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
713
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
714
- }, z.core.$strip>>;
715
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
716
- path: z.ZodString;
717
- role: z.ZodEnum<{
718
- schema: "schema";
719
- config: "config";
720
- entrypoint: "entrypoint";
721
- handler: "handler";
722
- test: "test";
723
- docs: "docs";
724
- }>;
725
- symbol: z.ZodOptional<z.ZodString>;
726
- description: z.ZodOptional<z.ZodString>;
727
- }, z.core.$strip>>>;
728
- kind: z.ZodLiteral<"agent">;
729
- agentKind: z.ZodEnum<{
730
- platform: "platform";
731
- orchestrator: "orchestrator";
732
- specialist: "specialist";
733
- utility: "utility";
734
- }>;
735
- actsAsRoleId: z.ZodOptional<z.ZodString>;
736
- sessionCapable: z.ZodBoolean;
737
- invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
738
- kind: z.ZodLiteral<"slash-command">;
739
- command: z.ZodString;
740
- toolFactory: z.ZodOptional<z.ZodString>;
741
- }, z.core.$strip>, z.ZodObject<{
742
- kind: z.ZodLiteral<"mcp-tool">;
743
- server: z.ZodString;
744
- name: z.ZodString;
745
- }, z.core.$strip>, z.ZodObject<{
746
- kind: z.ZodLiteral<"api-endpoint">;
747
- method: z.ZodEnum<{
748
- GET: "GET";
749
- POST: "POST";
750
- PATCH: "PATCH";
751
- DELETE: "DELETE";
752
- }>;
753
- path: z.ZodString;
754
- requestSchema: z.ZodOptional<z.ZodString>;
755
- responseSchema: z.ZodOptional<z.ZodString>;
756
- }, z.core.$strip>, z.ZodObject<{
757
- kind: z.ZodLiteral<"script-execution">;
758
- resourceId: z.ZodString;
759
- }, z.core.$strip>], "kind">>>;
760
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
761
- eventKey: z.ZodString;
762
- label: z.ZodString;
763
- payloadSchema: z.ZodOptional<z.ZodString>;
764
- lifecycle: z.ZodOptional<z.ZodEnum<{
765
- deprecated: "deprecated";
766
- draft: "draft";
767
- beta: "beta";
768
- active: "active";
769
- archived: "archived";
770
- }>>;
771
- }, z.core.$strip>>>;
772
- }, z.core.$strip>, z.ZodObject<{
773
- id: z.ZodString;
774
- order: z.ZodDefault<z.ZodNumber>;
775
- systemPath: z.ZodString;
776
- ownerRoleId: z.ZodOptional<z.ZodString>;
777
- status: z.ZodEnum<{
778
- deprecated: "deprecated";
779
- active: "active";
780
- archived: "archived";
781
- }>;
782
- ontology: z.ZodOptional<z.ZodObject<{
783
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
785
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
787
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
788
- }, z.core.$strip>>;
789
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
790
- path: z.ZodString;
791
- role: z.ZodEnum<{
792
- schema: "schema";
793
- config: "config";
794
- entrypoint: "entrypoint";
795
- handler: "handler";
796
- test: "test";
797
- docs: "docs";
798
- }>;
799
- symbol: z.ZodOptional<z.ZodString>;
800
- description: z.ZodOptional<z.ZodString>;
801
- }, z.core.$strip>>>;
802
- kind: z.ZodLiteral<"integration">;
803
- provider: z.ZodString;
804
- }, z.core.$strip>, z.ZodObject<{
805
- id: z.ZodString;
806
- order: z.ZodDefault<z.ZodNumber>;
807
- systemPath: z.ZodString;
808
- ownerRoleId: z.ZodOptional<z.ZodString>;
809
- status: z.ZodEnum<{
810
- deprecated: "deprecated";
811
- active: "active";
812
- archived: "archived";
813
- }>;
814
- ontology: z.ZodOptional<z.ZodObject<{
815
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
816
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
817
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
818
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
819
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
- }, z.core.$strip>>;
821
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
822
- path: z.ZodString;
823
- role: z.ZodEnum<{
824
- schema: "schema";
825
- config: "config";
826
- entrypoint: "entrypoint";
827
- handler: "handler";
828
- test: "test";
829
- docs: "docs";
830
- }>;
831
- symbol: z.ZodOptional<z.ZodString>;
832
- description: z.ZodOptional<z.ZodString>;
833
- }, z.core.$strip>>>;
834
- kind: z.ZodLiteral<"script">;
835
- language: z.ZodEnum<{
836
- shell: "shell";
837
- sql: "sql";
838
- typescript: "typescript";
839
- python: "python";
840
- }>;
841
- source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
842
- file: z.ZodString;
843
- }, z.core.$strip>]>;
844
- }, z.core.$strip>], "kind">>>;
845
670
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
846
671
  type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
847
672
  type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
@@ -956,8 +781,6 @@ interface WorkflowConfig extends ResourceDefinition {
956
781
  type: 'workflow';
957
782
  /** OM descriptor backing canonical identity and governance metadata. */
958
783
  resource?: WorkflowResourceEntry;
959
- /** Lead-gen action key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
960
- actionKey?: string;
961
784
  }
962
785
  interface WorkflowStepDefinition {
963
786
  id: string;
@@ -3007,6 +2830,7 @@ type Database = {
3007
2830
  origin_execution_id: string | null;
3008
2831
  output: Json | null;
3009
2832
  resource_id: string;
2833
+ resource_snapshot: Json | null;
3010
2834
  resource_status: string;
3011
2835
  resource_type: string;
3012
2836
  resource_version: string | null;
@@ -3032,6 +2856,7 @@ type Database = {
3032
2856
  origin_execution_id?: string | null;
3033
2857
  output?: Json | null;
3034
2858
  resource_id: string;
2859
+ resource_snapshot?: Json | null;
3035
2860
  resource_status?: string;
3036
2861
  resource_type?: string;
3037
2862
  resource_version?: string | null;
@@ -3057,6 +2882,7 @@ type Database = {
3057
2882
  origin_execution_id?: string | null;
3058
2883
  output?: Json | null;
3059
2884
  resource_id?: string;
2885
+ resource_snapshot?: Json | null;
3060
2886
  resource_status?: string;
3061
2887
  resource_type?: string;
3062
2888
  resource_version?: string | null;
@@ -9271,7 +9097,6 @@ interface SystemEntry {
9271
9097
  content?: Record<string, ContentNode>;
9272
9098
  subsystems?: Record<string, SystemEntry>;
9273
9099
  }
9274
- declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
9275
9100
 
9276
9101
  /**
9277
9102
  * Resource Registry type definitions
@@ -9572,8 +9397,40 @@ interface HumanCheckpointDefinition extends ResourceDefinition {
9572
9397
  };
9573
9398
  }
9574
9399
 
9575
- type OrganizationModelSystems = z.infer<typeof SystemsDomainSchema>;
9576
- type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
9400
+ declare const SurfaceTypeSchema: z.ZodEnum<{
9401
+ dashboard: "dashboard";
9402
+ settings: "settings";
9403
+ graph: "graph";
9404
+ list: "list";
9405
+ page: "page";
9406
+ detail: "detail";
9407
+ }>;
9408
+ interface SidebarSurfaceNode {
9409
+ type: 'surface';
9410
+ label: string;
9411
+ path: string;
9412
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
9413
+ description?: string;
9414
+ icon?: string;
9415
+ order?: number;
9416
+ targets?: {
9417
+ systems?: string[];
9418
+ entities?: string[];
9419
+ resources?: string[];
9420
+ actions?: string[];
9421
+ };
9422
+ devOnly?: boolean;
9423
+ requiresAdmin?: boolean;
9424
+ }
9425
+ interface SidebarGroupNode {
9426
+ type: 'group';
9427
+ label: string;
9428
+ description?: string;
9429
+ icon?: string;
9430
+ order?: number;
9431
+ children: Record<string, SidebarNode>;
9432
+ }
9433
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
9577
9434
 
9578
9435
  declare const LinkSchema: z.ZodObject<{
9579
9436
  nodeId: z.ZodString;
@@ -9581,23 +9438,921 @@ declare const LinkSchema: z.ZodObject<{
9581
9438
  links: "links";
9582
9439
  affects: "affects";
9583
9440
  effects: "effects";
9584
- implements: "implements";
9441
+ actions: "actions";
9585
9442
  reads: "reads";
9586
9443
  writes: "writes";
9587
9444
  emits: "emits";
9445
+ triggers: "triggers";
9446
+ uses: "uses";
9447
+ approval: "approval";
9588
9448
  contains: "contains";
9589
9449
  references: "references";
9590
9450
  maps_to: "maps_to";
9591
- uses: "uses";
9592
9451
  governs: "governs";
9593
9452
  originates_from: "originates_from";
9594
- triggers: "triggers";
9595
9453
  applies_to: "applies_to";
9596
9454
  uses_catalog: "uses_catalog";
9597
9455
  }>;
9598
9456
  }, z.core.$strip>;
9599
9457
  type Link = z.infer<typeof LinkSchema>;
9600
9458
 
9459
+ declare const OrganizationModelSchema: z.ZodObject<{
9460
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9461
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
9462
+ branding: z.ZodOptional<z.ZodObject<{
9463
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9464
+ lastModified: z.ZodString;
9465
+ }, z.core.$strip>>;
9466
+ identity: z.ZodOptional<z.ZodObject<{
9467
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9468
+ lastModified: z.ZodString;
9469
+ }, z.core.$strip>>;
9470
+ customers: z.ZodOptional<z.ZodObject<{
9471
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9472
+ lastModified: z.ZodString;
9473
+ }, z.core.$strip>>;
9474
+ offerings: z.ZodOptional<z.ZodObject<{
9475
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9476
+ lastModified: z.ZodString;
9477
+ }, z.core.$strip>>;
9478
+ roles: z.ZodOptional<z.ZodObject<{
9479
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9480
+ lastModified: z.ZodString;
9481
+ }, z.core.$strip>>;
9482
+ goals: z.ZodOptional<z.ZodObject<{
9483
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9484
+ lastModified: z.ZodString;
9485
+ }, z.core.$strip>>;
9486
+ systems: z.ZodOptional<z.ZodObject<{
9487
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9488
+ lastModified: z.ZodString;
9489
+ }, z.core.$strip>>;
9490
+ ontology: z.ZodOptional<z.ZodObject<{
9491
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9492
+ lastModified: z.ZodString;
9493
+ }, z.core.$strip>>;
9494
+ resources: z.ZodOptional<z.ZodObject<{
9495
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9496
+ lastModified: z.ZodString;
9497
+ }, z.core.$strip>>;
9498
+ topology: z.ZodOptional<z.ZodObject<{
9499
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9500
+ lastModified: z.ZodString;
9501
+ }, z.core.$strip>>;
9502
+ actions: z.ZodOptional<z.ZodObject<{
9503
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9504
+ lastModified: z.ZodString;
9505
+ }, z.core.$strip>>;
9506
+ entities: z.ZodOptional<z.ZodObject<{
9507
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9508
+ lastModified: z.ZodString;
9509
+ }, z.core.$strip>>;
9510
+ policies: z.ZodOptional<z.ZodObject<{
9511
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9512
+ lastModified: z.ZodString;
9513
+ }, z.core.$strip>>;
9514
+ knowledge: z.ZodOptional<z.ZodObject<{
9515
+ version: z.ZodDefault<z.ZodLiteral<1>>;
9516
+ lastModified: z.ZodString;
9517
+ }, z.core.$strip>>;
9518
+ }, z.core.$strip>>, z.ZodTransform<{
9519
+ branding: {
9520
+ version: 1;
9521
+ lastModified: string;
9522
+ };
9523
+ identity: {
9524
+ version: 1;
9525
+ lastModified: string;
9526
+ };
9527
+ customers: {
9528
+ version: 1;
9529
+ lastModified: string;
9530
+ };
9531
+ offerings: {
9532
+ version: 1;
9533
+ lastModified: string;
9534
+ };
9535
+ roles: {
9536
+ version: 1;
9537
+ lastModified: string;
9538
+ };
9539
+ goals: {
9540
+ version: 1;
9541
+ lastModified: string;
9542
+ };
9543
+ systems: {
9544
+ version: 1;
9545
+ lastModified: string;
9546
+ };
9547
+ ontology: {
9548
+ version: 1;
9549
+ lastModified: string;
9550
+ };
9551
+ resources: {
9552
+ version: 1;
9553
+ lastModified: string;
9554
+ };
9555
+ topology: {
9556
+ version: 1;
9557
+ lastModified: string;
9558
+ };
9559
+ actions: {
9560
+ version: 1;
9561
+ lastModified: string;
9562
+ };
9563
+ entities: {
9564
+ version: 1;
9565
+ lastModified: string;
9566
+ };
9567
+ policies: {
9568
+ version: 1;
9569
+ lastModified: string;
9570
+ };
9571
+ knowledge: {
9572
+ version: 1;
9573
+ lastModified: string;
9574
+ };
9575
+ }, {
9576
+ branding?: {
9577
+ version: 1;
9578
+ lastModified: string;
9579
+ } | undefined;
9580
+ identity?: {
9581
+ version: 1;
9582
+ lastModified: string;
9583
+ } | undefined;
9584
+ customers?: {
9585
+ version: 1;
9586
+ lastModified: string;
9587
+ } | undefined;
9588
+ offerings?: {
9589
+ version: 1;
9590
+ lastModified: string;
9591
+ } | undefined;
9592
+ roles?: {
9593
+ version: 1;
9594
+ lastModified: string;
9595
+ } | undefined;
9596
+ goals?: {
9597
+ version: 1;
9598
+ lastModified: string;
9599
+ } | undefined;
9600
+ systems?: {
9601
+ version: 1;
9602
+ lastModified: string;
9603
+ } | undefined;
9604
+ ontology?: {
9605
+ version: 1;
9606
+ lastModified: string;
9607
+ } | undefined;
9608
+ resources?: {
9609
+ version: 1;
9610
+ lastModified: string;
9611
+ } | undefined;
9612
+ topology?: {
9613
+ version: 1;
9614
+ lastModified: string;
9615
+ } | undefined;
9616
+ actions?: {
9617
+ version: 1;
9618
+ lastModified: string;
9619
+ } | undefined;
9620
+ entities?: {
9621
+ version: 1;
9622
+ lastModified: string;
9623
+ } | undefined;
9624
+ policies?: {
9625
+ version: 1;
9626
+ lastModified: string;
9627
+ } | undefined;
9628
+ knowledge?: {
9629
+ version: 1;
9630
+ lastModified: string;
9631
+ } | undefined;
9632
+ }>>;
9633
+ branding: z.ZodObject<{
9634
+ organizationName: z.ZodString;
9635
+ productName: z.ZodString;
9636
+ shortName: z.ZodString;
9637
+ description: z.ZodOptional<z.ZodString>;
9638
+ logos: z.ZodDefault<z.ZodObject<{
9639
+ light: z.ZodOptional<z.ZodString>;
9640
+ dark: z.ZodOptional<z.ZodString>;
9641
+ }, z.core.$strip>>;
9642
+ }, z.core.$strip>;
9643
+ navigation: z.ZodDefault<z.ZodObject<{
9644
+ sidebar: z.ZodDefault<z.ZodObject<{
9645
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
9646
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
9647
+ }, z.core.$strip>>;
9648
+ }, z.core.$strip>>;
9649
+ identity: z.ZodDefault<z.ZodObject<{
9650
+ mission: z.ZodDefault<z.ZodString>;
9651
+ vision: z.ZodDefault<z.ZodString>;
9652
+ legalName: z.ZodDefault<z.ZodString>;
9653
+ entityType: z.ZodDefault<z.ZodString>;
9654
+ jurisdiction: z.ZodDefault<z.ZodString>;
9655
+ industryCategory: z.ZodDefault<z.ZodString>;
9656
+ geographicFocus: z.ZodDefault<z.ZodString>;
9657
+ timeZone: z.ZodDefault<z.ZodString>;
9658
+ businessHours: z.ZodDefault<z.ZodObject<{
9659
+ monday: z.ZodOptional<z.ZodObject<{
9660
+ open: z.ZodString;
9661
+ close: z.ZodString;
9662
+ }, z.core.$strip>>;
9663
+ tuesday: z.ZodOptional<z.ZodObject<{
9664
+ open: z.ZodString;
9665
+ close: z.ZodString;
9666
+ }, z.core.$strip>>;
9667
+ wednesday: z.ZodOptional<z.ZodObject<{
9668
+ open: z.ZodString;
9669
+ close: z.ZodString;
9670
+ }, z.core.$strip>>;
9671
+ thursday: z.ZodOptional<z.ZodObject<{
9672
+ open: z.ZodString;
9673
+ close: z.ZodString;
9674
+ }, z.core.$strip>>;
9675
+ friday: z.ZodOptional<z.ZodObject<{
9676
+ open: z.ZodString;
9677
+ close: z.ZodString;
9678
+ }, z.core.$strip>>;
9679
+ saturday: z.ZodOptional<z.ZodObject<{
9680
+ open: z.ZodString;
9681
+ close: z.ZodString;
9682
+ }, z.core.$strip>>;
9683
+ sunday: z.ZodOptional<z.ZodObject<{
9684
+ open: z.ZodString;
9685
+ close: z.ZodString;
9686
+ }, z.core.$strip>>;
9687
+ }, z.core.$strip>>;
9688
+ clientBrief: z.ZodDefault<z.ZodString>;
9689
+ }, z.core.$strip>>;
9690
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9691
+ id: z.ZodString;
9692
+ order: z.ZodNumber;
9693
+ name: z.ZodDefault<z.ZodString>;
9694
+ description: z.ZodDefault<z.ZodString>;
9695
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
9696
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
9697
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
9698
+ firmographics: z.ZodDefault<z.ZodObject<{
9699
+ industry: z.ZodOptional<z.ZodString>;
9700
+ companySize: z.ZodOptional<z.ZodString>;
9701
+ region: z.ZodOptional<z.ZodString>;
9702
+ }, z.core.$strip>>;
9703
+ valueProp: z.ZodDefault<z.ZodString>;
9704
+ }, z.core.$strip>>>>;
9705
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9706
+ id: z.ZodString;
9707
+ order: z.ZodNumber;
9708
+ name: z.ZodDefault<z.ZodString>;
9709
+ description: z.ZodDefault<z.ZodString>;
9710
+ pricingModel: z.ZodDefault<z.ZodEnum<{
9711
+ custom: "custom";
9712
+ "one-time": "one-time";
9713
+ subscription: "subscription";
9714
+ "usage-based": "usage-based";
9715
+ }>>;
9716
+ price: z.ZodDefault<z.ZodNumber>;
9717
+ currency: z.ZodDefault<z.ZodString>;
9718
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
9719
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
9720
+ }, z.core.$strip>>>>;
9721
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9722
+ id: z.ZodString;
9723
+ order: z.ZodNumber;
9724
+ title: z.ZodString;
9725
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
9726
+ reportsToId: z.ZodOptional<z.ZodString>;
9727
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
9728
+ kind: z.ZodLiteral<"human">;
9729
+ userId: z.ZodString;
9730
+ }, z.core.$strip>, z.ZodObject<{
9731
+ kind: z.ZodLiteral<"agent">;
9732
+ agentId: z.ZodString;
9733
+ }, z.core.$strip>, z.ZodObject<{
9734
+ kind: z.ZodLiteral<"team">;
9735
+ memberIds: z.ZodArray<z.ZodString>;
9736
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9737
+ kind: z.ZodLiteral<"human">;
9738
+ userId: z.ZodString;
9739
+ }, z.core.$strip>, z.ZodObject<{
9740
+ kind: z.ZodLiteral<"agent">;
9741
+ agentId: z.ZodString;
9742
+ }, z.core.$strip>, z.ZodObject<{
9743
+ kind: z.ZodLiteral<"team">;
9744
+ memberIds: z.ZodArray<z.ZodString>;
9745
+ }, z.core.$strip>], "kind">>]>>;
9746
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
9747
+ }, z.core.$strip>>>>;
9748
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9749
+ id: z.ZodString;
9750
+ order: z.ZodNumber;
9751
+ description: z.ZodString;
9752
+ periodStart: z.ZodString;
9753
+ periodEnd: z.ZodString;
9754
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
9755
+ id: z.ZodString;
9756
+ description: z.ZodString;
9757
+ targetMetric: z.ZodString;
9758
+ currentValue: z.ZodDefault<z.ZodNumber>;
9759
+ targetValue: z.ZodOptional<z.ZodNumber>;
9760
+ }, z.core.$strip>>>;
9761
+ }, z.core.$strip>>>>;
9762
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
9763
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
9764
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9765
+ id: z.ZodString;
9766
+ label: z.ZodOptional<z.ZodString>;
9767
+ description: z.ZodOptional<z.ZodString>;
9768
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9769
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9770
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9771
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9772
+ }, z.core.$loose>>>>;
9773
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9774
+ id: z.ZodString;
9775
+ label: z.ZodOptional<z.ZodString>;
9776
+ description: z.ZodOptional<z.ZodString>;
9777
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9778
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9779
+ from: z.ZodString;
9780
+ to: z.ZodString;
9781
+ cardinality: z.ZodOptional<z.ZodString>;
9782
+ via: z.ZodOptional<z.ZodString>;
9783
+ }, z.core.$loose>>>>;
9784
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9785
+ id: z.ZodString;
9786
+ label: z.ZodOptional<z.ZodString>;
9787
+ description: z.ZodOptional<z.ZodString>;
9788
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9789
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9790
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
9791
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9792
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
9793
+ }, z.core.$loose>>>>;
9794
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9795
+ id: z.ZodString;
9796
+ label: z.ZodOptional<z.ZodString>;
9797
+ description: z.ZodOptional<z.ZodString>;
9798
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9799
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9800
+ kind: z.ZodOptional<z.ZodString>;
9801
+ appliesTo: z.ZodOptional<z.ZodString>;
9802
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9803
+ }, z.core.$loose>>>>;
9804
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9805
+ id: z.ZodString;
9806
+ label: z.ZodOptional<z.ZodString>;
9807
+ description: z.ZodOptional<z.ZodString>;
9808
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9809
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9810
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9811
+ }, z.core.$loose>>>>;
9812
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9813
+ id: z.ZodString;
9814
+ label: z.ZodOptional<z.ZodString>;
9815
+ description: z.ZodOptional<z.ZodString>;
9816
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9817
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9818
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9819
+ }, z.core.$loose>>>>;
9820
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9821
+ id: z.ZodString;
9822
+ label: z.ZodOptional<z.ZodString>;
9823
+ description: z.ZodOptional<z.ZodString>;
9824
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9825
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9826
+ primitive: z.ZodOptional<z.ZodString>;
9827
+ }, z.core.$loose>>>>;
9828
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9829
+ id: z.ZodString;
9830
+ label: z.ZodOptional<z.ZodString>;
9831
+ description: z.ZodOptional<z.ZodString>;
9832
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9833
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9834
+ valueType: z.ZodOptional<z.ZodString>;
9835
+ searchable: z.ZodOptional<z.ZodBoolean>;
9836
+ pii: z.ZodOptional<z.ZodBoolean>;
9837
+ }, z.core.$loose>>>>;
9838
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9839
+ id: z.ZodString;
9840
+ label: z.ZodOptional<z.ZodString>;
9841
+ description: z.ZodOptional<z.ZodString>;
9842
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9843
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9844
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
9845
+ }, z.core.$loose>>>>;
9846
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
9847
+ id: z.ZodString;
9848
+ label: z.ZodOptional<z.ZodString>;
9849
+ description: z.ZodOptional<z.ZodString>;
9850
+ ownerSystemId: z.ZodOptional<z.ZodString>;
9851
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
9852
+ route: z.ZodOptional<z.ZodString>;
9853
+ }, z.core.$loose>>>>;
9854
+ }, z.core.$strip>>>;
9855
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
9856
+ id: z.ZodString;
9857
+ order: z.ZodDefault<z.ZodNumber>;
9858
+ systemPath: z.ZodString;
9859
+ title: z.ZodOptional<z.ZodString>;
9860
+ description: z.ZodOptional<z.ZodString>;
9861
+ ownerRoleId: z.ZodOptional<z.ZodString>;
9862
+ status: z.ZodEnum<{
9863
+ deprecated: "deprecated";
9864
+ active: "active";
9865
+ archived: "archived";
9866
+ }>;
9867
+ ontology: z.ZodOptional<z.ZodObject<{
9868
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
9869
+ primaryAction: z.ZodOptional<z.ZodString>;
9870
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
9871
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9872
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9873
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9874
+ }, z.core.$strip>>;
9875
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9876
+ path: z.ZodString;
9877
+ role: z.ZodEnum<{
9878
+ schema: "schema";
9879
+ config: "config";
9880
+ entrypoint: "entrypoint";
9881
+ handler: "handler";
9882
+ test: "test";
9883
+ docs: "docs";
9884
+ }>;
9885
+ symbol: z.ZodOptional<z.ZodString>;
9886
+ description: z.ZodOptional<z.ZodString>;
9887
+ }, z.core.$strip>>>;
9888
+ kind: z.ZodLiteral<"workflow">;
9889
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
9890
+ eventKey: z.ZodString;
9891
+ label: z.ZodString;
9892
+ payloadSchema: z.ZodOptional<z.ZodString>;
9893
+ lifecycle: z.ZodOptional<z.ZodEnum<{
9894
+ deprecated: "deprecated";
9895
+ draft: "draft";
9896
+ beta: "beta";
9897
+ active: "active";
9898
+ archived: "archived";
9899
+ }>>;
9900
+ }, z.core.$strip>>>;
9901
+ }, z.core.$strip>, z.ZodObject<{
9902
+ id: z.ZodString;
9903
+ order: z.ZodDefault<z.ZodNumber>;
9904
+ systemPath: z.ZodString;
9905
+ title: z.ZodOptional<z.ZodString>;
9906
+ description: z.ZodOptional<z.ZodString>;
9907
+ ownerRoleId: z.ZodOptional<z.ZodString>;
9908
+ status: z.ZodEnum<{
9909
+ deprecated: "deprecated";
9910
+ active: "active";
9911
+ archived: "archived";
9912
+ }>;
9913
+ ontology: z.ZodOptional<z.ZodObject<{
9914
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
9915
+ primaryAction: z.ZodOptional<z.ZodString>;
9916
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
9917
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9918
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9919
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9920
+ }, z.core.$strip>>;
9921
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9922
+ path: z.ZodString;
9923
+ role: z.ZodEnum<{
9924
+ schema: "schema";
9925
+ config: "config";
9926
+ entrypoint: "entrypoint";
9927
+ handler: "handler";
9928
+ test: "test";
9929
+ docs: "docs";
9930
+ }>;
9931
+ symbol: z.ZodOptional<z.ZodString>;
9932
+ description: z.ZodOptional<z.ZodString>;
9933
+ }, z.core.$strip>>>;
9934
+ kind: z.ZodLiteral<"agent">;
9935
+ agentKind: z.ZodEnum<{
9936
+ platform: "platform";
9937
+ orchestrator: "orchestrator";
9938
+ specialist: "specialist";
9939
+ utility: "utility";
9940
+ }>;
9941
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
9942
+ sessionCapable: z.ZodBoolean;
9943
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9944
+ kind: z.ZodLiteral<"slash-command">;
9945
+ command: z.ZodString;
9946
+ toolFactory: z.ZodOptional<z.ZodString>;
9947
+ }, z.core.$strip>, z.ZodObject<{
9948
+ kind: z.ZodLiteral<"mcp-tool">;
9949
+ server: z.ZodString;
9950
+ name: z.ZodString;
9951
+ }, z.core.$strip>, z.ZodObject<{
9952
+ kind: z.ZodLiteral<"api-endpoint">;
9953
+ method: z.ZodEnum<{
9954
+ GET: "GET";
9955
+ POST: "POST";
9956
+ PATCH: "PATCH";
9957
+ DELETE: "DELETE";
9958
+ }>;
9959
+ path: z.ZodString;
9960
+ requestSchema: z.ZodOptional<z.ZodString>;
9961
+ responseSchema: z.ZodOptional<z.ZodString>;
9962
+ }, z.core.$strip>, z.ZodObject<{
9963
+ kind: z.ZodLiteral<"script-execution">;
9964
+ resourceId: z.ZodString;
9965
+ }, z.core.$strip>], "kind">>>;
9966
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
9967
+ eventKey: z.ZodString;
9968
+ label: z.ZodString;
9969
+ payloadSchema: z.ZodOptional<z.ZodString>;
9970
+ lifecycle: z.ZodOptional<z.ZodEnum<{
9971
+ deprecated: "deprecated";
9972
+ draft: "draft";
9973
+ beta: "beta";
9974
+ active: "active";
9975
+ archived: "archived";
9976
+ }>>;
9977
+ }, z.core.$strip>>>;
9978
+ }, z.core.$strip>, z.ZodObject<{
9979
+ id: z.ZodString;
9980
+ order: z.ZodDefault<z.ZodNumber>;
9981
+ systemPath: z.ZodString;
9982
+ title: z.ZodOptional<z.ZodString>;
9983
+ description: z.ZodOptional<z.ZodString>;
9984
+ ownerRoleId: z.ZodOptional<z.ZodString>;
9985
+ status: z.ZodEnum<{
9986
+ deprecated: "deprecated";
9987
+ active: "active";
9988
+ archived: "archived";
9989
+ }>;
9990
+ ontology: z.ZodOptional<z.ZodObject<{
9991
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
9992
+ primaryAction: z.ZodOptional<z.ZodString>;
9993
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
9994
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9995
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9996
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9997
+ }, z.core.$strip>>;
9998
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9999
+ path: z.ZodString;
10000
+ role: z.ZodEnum<{
10001
+ schema: "schema";
10002
+ config: "config";
10003
+ entrypoint: "entrypoint";
10004
+ handler: "handler";
10005
+ test: "test";
10006
+ docs: "docs";
10007
+ }>;
10008
+ symbol: z.ZodOptional<z.ZodString>;
10009
+ description: z.ZodOptional<z.ZodString>;
10010
+ }, z.core.$strip>>>;
10011
+ kind: z.ZodLiteral<"integration">;
10012
+ provider: z.ZodString;
10013
+ }, z.core.$strip>, z.ZodObject<{
10014
+ id: z.ZodString;
10015
+ order: z.ZodDefault<z.ZodNumber>;
10016
+ systemPath: z.ZodString;
10017
+ title: z.ZodOptional<z.ZodString>;
10018
+ description: z.ZodOptional<z.ZodString>;
10019
+ ownerRoleId: z.ZodOptional<z.ZodString>;
10020
+ status: z.ZodEnum<{
10021
+ deprecated: "deprecated";
10022
+ active: "active";
10023
+ archived: "archived";
10024
+ }>;
10025
+ ontology: z.ZodOptional<z.ZodObject<{
10026
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10027
+ primaryAction: z.ZodOptional<z.ZodString>;
10028
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10029
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10030
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10031
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10032
+ }, z.core.$strip>>;
10033
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10034
+ path: z.ZodString;
10035
+ role: z.ZodEnum<{
10036
+ schema: "schema";
10037
+ config: "config";
10038
+ entrypoint: "entrypoint";
10039
+ handler: "handler";
10040
+ test: "test";
10041
+ docs: "docs";
10042
+ }>;
10043
+ symbol: z.ZodOptional<z.ZodString>;
10044
+ description: z.ZodOptional<z.ZodString>;
10045
+ }, z.core.$strip>>>;
10046
+ kind: z.ZodLiteral<"script">;
10047
+ language: z.ZodEnum<{
10048
+ shell: "shell";
10049
+ sql: "sql";
10050
+ typescript: "typescript";
10051
+ python: "python";
10052
+ }>;
10053
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
10054
+ file: z.ZodString;
10055
+ }, z.core.$strip>]>;
10056
+ }, z.core.$strip>], "kind">>>>;
10057
+ topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
10058
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10059
+ relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10060
+ from: z.ZodDiscriminatedUnion<[z.ZodObject<{
10061
+ kind: z.ZodLiteral<"system">;
10062
+ id: z.ZodString;
10063
+ }, z.core.$strip>, z.ZodObject<{
10064
+ kind: z.ZodLiteral<"resource">;
10065
+ id: z.ZodString;
10066
+ }, z.core.$strip>, z.ZodObject<{
10067
+ kind: z.ZodLiteral<"ontology">;
10068
+ id: z.ZodString;
10069
+ }, z.core.$strip>, z.ZodObject<{
10070
+ kind: z.ZodLiteral<"policy">;
10071
+ id: z.ZodString;
10072
+ }, z.core.$strip>, z.ZodObject<{
10073
+ kind: z.ZodLiteral<"role">;
10074
+ id: z.ZodString;
10075
+ }, z.core.$strip>, z.ZodObject<{
10076
+ kind: z.ZodLiteral<"trigger">;
10077
+ id: z.ZodString;
10078
+ }, z.core.$strip>, z.ZodObject<{
10079
+ kind: z.ZodLiteral<"humanCheckpoint">;
10080
+ id: z.ZodString;
10081
+ }, z.core.$strip>, z.ZodObject<{
10082
+ kind: z.ZodLiteral<"externalResource">;
10083
+ id: z.ZodString;
10084
+ }, z.core.$strip>], "kind">;
10085
+ kind: z.ZodEnum<{
10086
+ triggers: "triggers";
10087
+ uses: "uses";
10088
+ approval: "approval";
10089
+ }>;
10090
+ to: z.ZodDiscriminatedUnion<[z.ZodObject<{
10091
+ kind: z.ZodLiteral<"system">;
10092
+ id: z.ZodString;
10093
+ }, z.core.$strip>, z.ZodObject<{
10094
+ kind: z.ZodLiteral<"resource">;
10095
+ id: z.ZodString;
10096
+ }, z.core.$strip>, z.ZodObject<{
10097
+ kind: z.ZodLiteral<"ontology">;
10098
+ id: z.ZodString;
10099
+ }, z.core.$strip>, z.ZodObject<{
10100
+ kind: z.ZodLiteral<"policy">;
10101
+ id: z.ZodString;
10102
+ }, z.core.$strip>, z.ZodObject<{
10103
+ kind: z.ZodLiteral<"role">;
10104
+ id: z.ZodString;
10105
+ }, z.core.$strip>, z.ZodObject<{
10106
+ kind: z.ZodLiteral<"trigger">;
10107
+ id: z.ZodString;
10108
+ }, z.core.$strip>, z.ZodObject<{
10109
+ kind: z.ZodLiteral<"humanCheckpoint">;
10110
+ id: z.ZodString;
10111
+ }, z.core.$strip>, z.ZodObject<{
10112
+ kind: z.ZodLiteral<"externalResource">;
10113
+ id: z.ZodString;
10114
+ }, z.core.$strip>], "kind">;
10115
+ systemPath: z.ZodOptional<z.ZodString>;
10116
+ required: z.ZodOptional<z.ZodBoolean>;
10117
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
10118
+ }, z.core.$strip>>>;
10119
+ }, z.core.$strip>>>;
10120
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10121
+ id: z.ZodString;
10122
+ order: z.ZodNumber;
10123
+ label: z.ZodString;
10124
+ description: z.ZodOptional<z.ZodString>;
10125
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
10126
+ domain: z.ZodString;
10127
+ }, z.core.$strip>]>>;
10128
+ resourceId: z.ZodOptional<z.ZodString>;
10129
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
10130
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10131
+ kind: z.ZodLiteral<"slash-command">;
10132
+ command: z.ZodString;
10133
+ toolFactory: z.ZodOptional<z.ZodString>;
10134
+ }, z.core.$strip>, z.ZodObject<{
10135
+ kind: z.ZodLiteral<"mcp-tool">;
10136
+ server: z.ZodString;
10137
+ name: z.ZodString;
10138
+ }, z.core.$strip>, z.ZodObject<{
10139
+ kind: z.ZodLiteral<"api-endpoint">;
10140
+ method: z.ZodEnum<{
10141
+ GET: "GET";
10142
+ POST: "POST";
10143
+ PATCH: "PATCH";
10144
+ DELETE: "DELETE";
10145
+ }>;
10146
+ path: z.ZodString;
10147
+ requestSchema: z.ZodOptional<z.ZodString>;
10148
+ responseSchema: z.ZodOptional<z.ZodString>;
10149
+ }, z.core.$strip>, z.ZodObject<{
10150
+ kind: z.ZodLiteral<"script-execution">;
10151
+ resourceId: z.ZodString;
10152
+ }, z.core.$strip>], "kind">>>;
10153
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
10154
+ lifecycle: z.ZodDefault<z.ZodEnum<{
10155
+ deprecated: "deprecated";
10156
+ draft: "draft";
10157
+ beta: "beta";
10158
+ active: "active";
10159
+ archived: "archived";
10160
+ }>>;
10161
+ }, z.core.$strip>>>>;
10162
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10163
+ id: z.ZodString;
10164
+ order: z.ZodNumber;
10165
+ label: z.ZodString;
10166
+ description: z.ZodOptional<z.ZodString>;
10167
+ ownedBySystemId: z.ZodString;
10168
+ table: z.ZodOptional<z.ZodString>;
10169
+ rowSchema: z.ZodOptional<z.ZodString>;
10170
+ stateCatalogId: z.ZodOptional<z.ZodString>;
10171
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
10172
+ toEntity: z.ZodString;
10173
+ kind: z.ZodEnum<{
10174
+ "belongs-to": "belongs-to";
10175
+ "has-many": "has-many";
10176
+ "has-one": "has-one";
10177
+ "many-to-many": "many-to-many";
10178
+ }>;
10179
+ via: z.ZodOptional<z.ZodString>;
10180
+ label: z.ZodOptional<z.ZodString>;
10181
+ }, z.core.$strip>>>;
10182
+ }, z.core.$strip>>>>;
10183
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10184
+ id: z.ZodString;
10185
+ order: z.ZodNumber;
10186
+ label: z.ZodString;
10187
+ description: z.ZodOptional<z.ZodString>;
10188
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
10189
+ kind: z.ZodLiteral<"event">;
10190
+ eventId: z.ZodString;
10191
+ }, z.core.$strip>, z.ZodObject<{
10192
+ kind: z.ZodLiteral<"action-invocation">;
10193
+ actionId: z.ZodString;
10194
+ }, z.core.$strip>, z.ZodObject<{
10195
+ kind: z.ZodLiteral<"schedule">;
10196
+ cron: z.ZodString;
10197
+ }, z.core.$strip>, z.ZodObject<{
10198
+ kind: z.ZodLiteral<"manual">;
10199
+ }, z.core.$strip>], "kind">;
10200
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
10201
+ kind: z.ZodLiteral<"always">;
10202
+ }, z.core.$strip>, z.ZodObject<{
10203
+ kind: z.ZodLiteral<"expression">;
10204
+ expression: z.ZodString;
10205
+ }, z.core.$strip>, z.ZodObject<{
10206
+ kind: z.ZodLiteral<"threshold">;
10207
+ metric: z.ZodString;
10208
+ operator: z.ZodEnum<{
10209
+ lt: "lt";
10210
+ lte: "lte";
10211
+ eq: "eq";
10212
+ gte: "gte";
10213
+ gt: "gt";
10214
+ }>;
10215
+ value: z.ZodNumber;
10216
+ }, z.core.$strip>], "kind">>;
10217
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10218
+ kind: z.ZodLiteral<"require-approval">;
10219
+ roleId: z.ZodOptional<z.ZodString>;
10220
+ }, z.core.$strip>, z.ZodObject<{
10221
+ kind: z.ZodLiteral<"invoke-action">;
10222
+ actionId: z.ZodString;
10223
+ }, z.core.$strip>, z.ZodObject<{
10224
+ kind: z.ZodLiteral<"notify-role">;
10225
+ roleId: z.ZodString;
10226
+ }, z.core.$strip>, z.ZodObject<{
10227
+ kind: z.ZodLiteral<"block">;
10228
+ }, z.core.$strip>], "kind">>;
10229
+ appliesTo: z.ZodDefault<z.ZodObject<{
10230
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10231
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10232
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10233
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10234
+ }, z.core.$strip>>;
10235
+ lifecycle: z.ZodDefault<z.ZodEnum<{
10236
+ deprecated: "deprecated";
10237
+ draft: "draft";
10238
+ beta: "beta";
10239
+ active: "active";
10240
+ archived: "archived";
10241
+ }>>;
10242
+ }, z.core.$strip>>>>;
10243
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10244
+ id: z.ZodString;
10245
+ kind: z.ZodEnum<{
10246
+ playbook: "playbook";
10247
+ strategy: "strategy";
10248
+ reference: "reference";
10249
+ }>;
10250
+ title: z.ZodString;
10251
+ summary: z.ZodString;
10252
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
10253
+ message: "message";
10254
+ error: "error";
10255
+ agent: "agent";
10256
+ workflow: "workflow";
10257
+ "google-sheets": "google-sheets";
10258
+ dashboard: "dashboard";
10259
+ calendar: "calendar";
10260
+ sales: "sales";
10261
+ crm: "crm";
10262
+ "lead-gen": "lead-gen";
10263
+ projects: "projects";
10264
+ operations: "operations";
10265
+ monitoring: "monitoring";
10266
+ knowledge: "knowledge";
10267
+ settings: "settings";
10268
+ admin: "admin";
10269
+ archive: "archive";
10270
+ business: "business";
10271
+ finance: "finance";
10272
+ platform: "platform";
10273
+ seo: "seo";
10274
+ playbook: "playbook";
10275
+ strategy: "strategy";
10276
+ reference: "reference";
10277
+ integration: "integration";
10278
+ database: "database";
10279
+ user: "user";
10280
+ team: "team";
10281
+ gmail: "gmail";
10282
+ attio: "attio";
10283
+ overview: "overview";
10284
+ "command-view": "command-view";
10285
+ "command-queue": "command-queue";
10286
+ pipeline: "pipeline";
10287
+ lists: "lists";
10288
+ resources: "resources";
10289
+ approve: "approve";
10290
+ reject: "reject";
10291
+ retry: "retry";
10292
+ edit: "edit";
10293
+ view: "view";
10294
+ launch: "launch";
10295
+ escalate: "escalate";
10296
+ promote: "promote";
10297
+ submit: "submit";
10298
+ email: "email";
10299
+ success: "success";
10300
+ warning: "warning";
10301
+ info: "info";
10302
+ pending: "pending";
10303
+ bolt: "bolt";
10304
+ building: "building";
10305
+ briefcase: "briefcase";
10306
+ apps: "apps";
10307
+ graph: "graph";
10308
+ shield: "shield";
10309
+ users: "users";
10310
+ "chart-bar": "chart-bar";
10311
+ search: "search";
10312
+ }>, z.ZodString]>>;
10313
+ externalUrl: z.ZodOptional<z.ZodString>;
10314
+ sourceFilePath: z.ZodOptional<z.ZodString>;
10315
+ body: z.ZodString;
10316
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
10317
+ target: z.ZodObject<{
10318
+ kind: z.ZodEnum<{
10319
+ knowledge: "knowledge";
10320
+ system: "system";
10321
+ action: "action";
10322
+ ontology: "ontology";
10323
+ role: "role";
10324
+ goal: "goal";
10325
+ stage: "stage";
10326
+ resource: "resource";
10327
+ "customer-segment": "customer-segment";
10328
+ offering: "offering";
10329
+ "content-node": "content-node";
10330
+ }>;
10331
+ id: z.ZodString;
10332
+ }, z.core.$strip>;
10333
+ }, z.core.$strip>, z.ZodObject<{
10334
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
10335
+ }, z.core.$strip>]>, z.ZodTransform<{
10336
+ target: {
10337
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
10338
+ id: string;
10339
+ };
10340
+ nodeId: string;
10341
+ }, {
10342
+ nodeId: string;
10343
+ } | {
10344
+ target: {
10345
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
10346
+ id: string;
10347
+ };
10348
+ }>>>>;
10349
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10350
+ updatedAt: z.ZodString;
10351
+ }, z.core.$strip>>>>;
10352
+ }, z.core.$strip>;
10353
+
10354
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
10355
+
9601
10356
  declare const ResourceCategorySchema: z.ZodEnum<{
9602
10357
  diagnostic: "diagnostic";
9603
10358
  production: "production";
@@ -9628,10 +10383,7 @@ interface DeploymentSpec {
9628
10383
  /** Deployment version (semver) */
9629
10384
  version: string;
9630
10385
  /** Optional Organization Model governance catalog used for OM-code validation */
9631
- organizationModel?: {
9632
- systems?: OrganizationModelSystems;
9633
- resources?: OrganizationModelResources;
9634
- };
10386
+ organizationModel?: Partial<Pick<OrganizationModel, 'systems' | 'resources' | 'ontology' | 'topology' | 'roles' | 'policies' | 'entities' | 'actions'>>;
9635
10387
  /** Workflow definitions */
9636
10388
  workflows?: WorkflowDefinition[];
9637
10389
  /** Agent definitions */