@elevasis/sdk 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/cli.cjs +980 -42
  2. package/dist/index.d.ts +1221 -220
  3. package/dist/index.js +390 -15
  4. package/dist/test-utils/index.d.ts +964 -211
  5. package/dist/test-utils/index.js +257 -14
  6. package/dist/worker/index.js +122 -14
  7. package/package.json +3 -3
  8. package/reference/claude-config/rules/operations.md +3 -3
  9. package/reference/claude-config/rules/organization-model.md +88 -85
  10. package/reference/claude-config/rules/organization-os.md +104 -104
  11. package/reference/claude-config/rules/vibe.md +235 -235
  12. package/reference/claude-config/skills/om/SKILL.md +324 -0
  13. package/reference/claude-config/skills/{knowledge → om}/operations/customers.md +110 -109
  14. package/reference/claude-config/skills/{knowledge → om}/operations/features.md +77 -76
  15. package/reference/claude-config/skills/{knowledge → om}/operations/goals.md +119 -118
  16. package/reference/claude-config/skills/{knowledge → om}/operations/identity.md +94 -93
  17. package/reference/claude-config/skills/{knowledge → om}/operations/labels.md +94 -94
  18. package/reference/claude-config/skills/{knowledge → om}/operations/offerings.md +110 -109
  19. package/reference/claude-config/skills/{knowledge → om}/operations/roles.md +100 -99
  20. package/reference/claude-config/skills/{knowledge → om}/operations/techStack.md +30 -30
  21. package/reference/claude-config/skills/project/SKILL.md +1088 -1088
  22. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  23. package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
  24. package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
  25. package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
  26. package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
  27. package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +7 -4
  28. package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +52 -0
  29. package/reference/examples/organization-model.ts +26 -2
  30. package/reference/scaffold/core/organization-model.mdx +16 -11
  31. package/reference/scaffold/recipes/add-a-feature.md +28 -26
  32. package/reference/scaffold/recipes/add-a-resource.md +26 -16
  33. package/reference/scaffold/recipes/customize-organization-model.md +5 -3
  34. package/reference/scaffold/recipes/extend-lead-gen.md +9 -9
  35. package/reference/scaffold/recipes/index.md +1 -1
  36. package/reference/scaffold/recipes/query-the-knowledge-graph.md +189 -185
  37. package/reference/scaffold/reference/contracts.md +139 -101
  38. package/reference/scaffold/reference/glossary.md +74 -72
  39. package/reference/claude-config/skills/knowledge/SKILL.md +0 -345
  40. /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-a.md +0 -0
  41. /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-b.md +0 -0
package/dist/index.d.ts CHANGED
@@ -507,10 +507,12 @@ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
507
507
  active: "active";
508
508
  archived: "archived";
509
509
  }>;
510
- declare const WorkflowResourceEntrySchema: z.ZodObject<{
510
+ declare const WorkflowResourceEntrySchema$1: z.ZodObject<{
511
511
  id: z.ZodString;
512
512
  order: z.ZodDefault<z.ZodNumber>;
513
513
  systemPath: z.ZodString;
514
+ title: z.ZodOptional<z.ZodString>;
515
+ description: z.ZodOptional<z.ZodString>;
514
516
  ownerRoleId: z.ZodOptional<z.ZodString>;
515
517
  status: z.ZodEnum<{
516
518
  deprecated: "deprecated";
@@ -518,7 +520,8 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
518
520
  archived: "archived";
519
521
  }>;
520
522
  ontology: z.ZodOptional<z.ZodObject<{
521
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
+ primaryAction: z.ZodOptional<z.ZodString>;
522
525
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
526
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
527
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -538,7 +541,6 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
538
541
  description: z.ZodOptional<z.ZodString>;
539
542
  }, z.core.$strip>>>;
540
543
  kind: z.ZodLiteral<"workflow">;
541
- actionKey: z.ZodOptional<z.ZodString>;
542
544
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
545
  eventKey: z.ZodString;
544
546
  label: z.ZodString;
@@ -556,6 +558,8 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
556
558
  id: z.ZodString;
557
559
  order: z.ZodDefault<z.ZodNumber>;
558
560
  systemPath: z.ZodString;
561
+ title: z.ZodOptional<z.ZodString>;
562
+ description: z.ZodOptional<z.ZodString>;
559
563
  ownerRoleId: z.ZodOptional<z.ZodString>;
560
564
  status: z.ZodEnum<{
561
565
  deprecated: "deprecated";
@@ -563,7 +567,8 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
563
567
  archived: "archived";
564
568
  }>;
565
569
  ontology: z.ZodOptional<z.ZodObject<{
566
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
571
+ primaryAction: z.ZodOptional<z.ZodString>;
567
572
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
573
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
574
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -627,10 +632,12 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
627
632
  }>>;
628
633
  }, z.core.$strip>>>;
629
634
  }, z.core.$strip>;
630
- declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
635
+ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
636
  id: z.ZodString;
632
637
  order: z.ZodDefault<z.ZodNumber>;
633
638
  systemPath: z.ZodString;
639
+ title: z.ZodOptional<z.ZodString>;
640
+ description: z.ZodOptional<z.ZodString>;
634
641
  ownerRoleId: z.ZodOptional<z.ZodString>;
635
642
  status: z.ZodEnum<{
636
643
  deprecated: "deprecated";
@@ -638,7 +645,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
638
645
  archived: "archived";
639
646
  }>;
640
647
  ontology: z.ZodOptional<z.ZodObject<{
641
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
648
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
649
+ primaryAction: z.ZodOptional<z.ZodString>;
642
650
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
643
651
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
644
652
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -658,7 +666,6 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
658
666
  description: z.ZodOptional<z.ZodString>;
659
667
  }, z.core.$strip>>>;
660
668
  kind: z.ZodLiteral<"workflow">;
661
- actionKey: z.ZodOptional<z.ZodString>;
662
669
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
663
670
  eventKey: z.ZodString;
664
671
  label: z.ZodString;
@@ -675,6 +682,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
675
682
  id: z.ZodString;
676
683
  order: z.ZodDefault<z.ZodNumber>;
677
684
  systemPath: z.ZodString;
685
+ title: z.ZodOptional<z.ZodString>;
686
+ description: z.ZodOptional<z.ZodString>;
678
687
  ownerRoleId: z.ZodOptional<z.ZodString>;
679
688
  status: z.ZodEnum<{
680
689
  deprecated: "deprecated";
@@ -682,7 +691,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
682
691
  archived: "archived";
683
692
  }>;
684
693
  ontology: z.ZodOptional<z.ZodObject<{
685
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
694
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
695
+ primaryAction: z.ZodOptional<z.ZodString>;
686
696
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
687
697
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
698
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -749,6 +759,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
749
759
  id: z.ZodString;
750
760
  order: z.ZodDefault<z.ZodNumber>;
751
761
  systemPath: z.ZodString;
762
+ title: z.ZodOptional<z.ZodString>;
763
+ description: z.ZodOptional<z.ZodString>;
752
764
  ownerRoleId: z.ZodOptional<z.ZodString>;
753
765
  status: z.ZodEnum<{
754
766
  deprecated: "deprecated";
@@ -756,7 +768,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
756
768
  archived: "archived";
757
769
  }>;
758
770
  ontology: z.ZodOptional<z.ZodObject<{
759
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
771
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
772
+ primaryAction: z.ZodOptional<z.ZodString>;
760
773
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
761
774
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
762
775
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -781,6 +794,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
781
794
  id: z.ZodString;
782
795
  order: z.ZodDefault<z.ZodNumber>;
783
796
  systemPath: z.ZodString;
797
+ title: z.ZodOptional<z.ZodString>;
798
+ description: z.ZodOptional<z.ZodString>;
784
799
  ownerRoleId: z.ZodOptional<z.ZodString>;
785
800
  status: z.ZodEnum<{
786
801
  deprecated: "deprecated";
@@ -788,7 +803,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
788
803
  archived: "archived";
789
804
  }>;
790
805
  ontology: z.ZodOptional<z.ZodObject<{
791
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
806
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
807
+ primaryAction: z.ZodOptional<z.ZodString>;
792
808
  reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
809
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
794
810
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -818,201 +834,10 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
818
834
  file: z.ZodString;
819
835
  }, z.core.$strip>]>;
820
836
  }, z.core.$strip>], "kind">;
821
- declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
822
- id: z.ZodString;
823
- order: z.ZodDefault<z.ZodNumber>;
824
- systemPath: z.ZodString;
825
- ownerRoleId: z.ZodOptional<z.ZodString>;
826
- status: z.ZodEnum<{
827
- deprecated: "deprecated";
828
- active: "active";
829
- archived: "archived";
830
- }>;
831
- ontology: z.ZodOptional<z.ZodObject<{
832
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
833
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
834
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
835
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
836
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
837
- }, z.core.$strip>>;
838
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
839
- path: z.ZodString;
840
- role: z.ZodEnum<{
841
- schema: "schema";
842
- config: "config";
843
- entrypoint: "entrypoint";
844
- handler: "handler";
845
- test: "test";
846
- docs: "docs";
847
- }>;
848
- symbol: z.ZodOptional<z.ZodString>;
849
- description: z.ZodOptional<z.ZodString>;
850
- }, z.core.$strip>>>;
851
- kind: z.ZodLiteral<"workflow">;
852
- actionKey: z.ZodOptional<z.ZodString>;
853
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
854
- eventKey: z.ZodString;
855
- label: z.ZodString;
856
- payloadSchema: z.ZodOptional<z.ZodString>;
857
- lifecycle: z.ZodOptional<z.ZodEnum<{
858
- deprecated: "deprecated";
859
- draft: "draft";
860
- beta: "beta";
861
- active: "active";
862
- archived: "archived";
863
- }>>;
864
- }, z.core.$strip>>>;
865
- }, z.core.$strip>, z.ZodObject<{
866
- id: z.ZodString;
867
- order: z.ZodDefault<z.ZodNumber>;
868
- systemPath: z.ZodString;
869
- ownerRoleId: z.ZodOptional<z.ZodString>;
870
- status: z.ZodEnum<{
871
- deprecated: "deprecated";
872
- active: "active";
873
- archived: "archived";
874
- }>;
875
- ontology: z.ZodOptional<z.ZodObject<{
876
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
877
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
878
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
879
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
880
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
881
- }, z.core.$strip>>;
882
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
883
- path: z.ZodString;
884
- role: z.ZodEnum<{
885
- schema: "schema";
886
- config: "config";
887
- entrypoint: "entrypoint";
888
- handler: "handler";
889
- test: "test";
890
- docs: "docs";
891
- }>;
892
- symbol: z.ZodOptional<z.ZodString>;
893
- description: z.ZodOptional<z.ZodString>;
894
- }, z.core.$strip>>>;
895
- kind: z.ZodLiteral<"agent">;
896
- agentKind: z.ZodEnum<{
897
- platform: "platform";
898
- orchestrator: "orchestrator";
899
- specialist: "specialist";
900
- utility: "utility";
901
- }>;
902
- actsAsRoleId: z.ZodOptional<z.ZodString>;
903
- sessionCapable: z.ZodBoolean;
904
- invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
905
- kind: z.ZodLiteral<"slash-command">;
906
- command: z.ZodString;
907
- toolFactory: z.ZodOptional<z.ZodString>;
908
- }, z.core.$strip>, z.ZodObject<{
909
- kind: z.ZodLiteral<"mcp-tool">;
910
- server: z.ZodString;
911
- name: z.ZodString;
912
- }, z.core.$strip>, z.ZodObject<{
913
- kind: z.ZodLiteral<"api-endpoint">;
914
- method: z.ZodEnum<{
915
- GET: "GET";
916
- POST: "POST";
917
- PATCH: "PATCH";
918
- DELETE: "DELETE";
919
- }>;
920
- path: z.ZodString;
921
- requestSchema: z.ZodOptional<z.ZodString>;
922
- responseSchema: z.ZodOptional<z.ZodString>;
923
- }, z.core.$strip>, z.ZodObject<{
924
- kind: z.ZodLiteral<"script-execution">;
925
- resourceId: z.ZodString;
926
- }, z.core.$strip>], "kind">>>;
927
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
928
- eventKey: z.ZodString;
929
- label: z.ZodString;
930
- payloadSchema: z.ZodOptional<z.ZodString>;
931
- lifecycle: z.ZodOptional<z.ZodEnum<{
932
- deprecated: "deprecated";
933
- draft: "draft";
934
- beta: "beta";
935
- active: "active";
936
- archived: "archived";
937
- }>>;
938
- }, z.core.$strip>>>;
939
- }, z.core.$strip>, z.ZodObject<{
940
- id: z.ZodString;
941
- order: z.ZodDefault<z.ZodNumber>;
942
- systemPath: z.ZodString;
943
- ownerRoleId: z.ZodOptional<z.ZodString>;
944
- status: z.ZodEnum<{
945
- deprecated: "deprecated";
946
- active: "active";
947
- archived: "archived";
948
- }>;
949
- ontology: z.ZodOptional<z.ZodObject<{
950
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
951
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
952
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
953
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
954
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
955
- }, z.core.$strip>>;
956
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
957
- path: z.ZodString;
958
- role: z.ZodEnum<{
959
- schema: "schema";
960
- config: "config";
961
- entrypoint: "entrypoint";
962
- handler: "handler";
963
- test: "test";
964
- docs: "docs";
965
- }>;
966
- symbol: z.ZodOptional<z.ZodString>;
967
- description: z.ZodOptional<z.ZodString>;
968
- }, z.core.$strip>>>;
969
- kind: z.ZodLiteral<"integration">;
970
- provider: z.ZodString;
971
- }, z.core.$strip>, z.ZodObject<{
972
- id: z.ZodString;
973
- order: z.ZodDefault<z.ZodNumber>;
974
- systemPath: z.ZodString;
975
- ownerRoleId: z.ZodOptional<z.ZodString>;
976
- status: z.ZodEnum<{
977
- deprecated: "deprecated";
978
- active: "active";
979
- archived: "archived";
980
- }>;
981
- ontology: z.ZodOptional<z.ZodObject<{
982
- implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
983
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
984
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
985
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
986
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
987
- }, z.core.$strip>>;
988
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
989
- path: z.ZodString;
990
- role: z.ZodEnum<{
991
- schema: "schema";
992
- config: "config";
993
- entrypoint: "entrypoint";
994
- handler: "handler";
995
- test: "test";
996
- docs: "docs";
997
- }>;
998
- symbol: z.ZodOptional<z.ZodString>;
999
- description: z.ZodOptional<z.ZodString>;
1000
- }, z.core.$strip>>>;
1001
- kind: z.ZodLiteral<"script">;
1002
- language: z.ZodEnum<{
1003
- shell: "shell";
1004
- sql: "sql";
1005
- typescript: "typescript";
1006
- python: "python";
1007
- }>;
1008
- source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1009
- file: z.ZodString;
1010
- }, z.core.$strip>]>;
1011
- }, z.core.$strip>], "kind">>>;
1012
837
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
1013
- type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
838
+ type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema$1>;
1014
839
  type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
1015
- type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
840
+ type ResourceEntry$1 = z.infer<typeof ResourceEntrySchema$1>;
1016
841
 
1017
842
  /**
1018
843
  * Shared form field types for dynamic form generation
@@ -1123,8 +948,6 @@ interface WorkflowConfig extends ResourceDefinition {
1123
948
  type: 'workflow';
1124
949
  /** OM descriptor backing canonical identity and governance metadata. */
1125
950
  resource?: WorkflowResourceEntry;
1126
- /** Lead-gen action key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
1127
- actionKey?: string;
1128
951
  }
1129
952
  interface WorkflowStepDefinition {
1130
953
  id: string;
@@ -3174,6 +2997,7 @@ type Database = {
3174
2997
  origin_execution_id: string | null;
3175
2998
  output: Json | null;
3176
2999
  resource_id: string;
3000
+ resource_snapshot: Json | null;
3177
3001
  resource_status: string;
3178
3002
  resource_type: string;
3179
3003
  resource_version: string | null;
@@ -3199,6 +3023,7 @@ type Database = {
3199
3023
  origin_execution_id?: string | null;
3200
3024
  output?: Json | null;
3201
3025
  resource_id: string;
3026
+ resource_snapshot?: Json | null;
3202
3027
  resource_status?: string;
3203
3028
  resource_type?: string;
3204
3029
  resource_version?: string | null;
@@ -3224,6 +3049,7 @@ type Database = {
3224
3049
  origin_execution_id?: string | null;
3225
3050
  output?: Json | null;
3226
3051
  resource_id?: string;
3052
+ resource_snapshot?: Json | null;
3227
3053
  resource_status?: string;
3228
3054
  resource_type?: string;
3229
3055
  resource_version?: string | null;
@@ -4707,6 +4533,7 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
4707
4533
  crm: "crm";
4708
4534
  "lead-gen": "lead-gen";
4709
4535
  projects: "projects";
4536
+ clients: "clients";
4710
4537
  operations: "operations";
4711
4538
  monitoring: "monitoring";
4712
4539
  knowledge: "knowledge";
@@ -4843,6 +4670,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4843
4670
  crm: "crm";
4844
4671
  "lead-gen": "lead-gen";
4845
4672
  projects: "projects";
4673
+ clients: "clients";
4846
4674
  operations: "operations";
4847
4675
  monitoring: "monitoring";
4848
4676
  knowledge: "knowledge";
@@ -4909,6 +4737,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4909
4737
  crm: "crm";
4910
4738
  "lead-gen": "lead-gen";
4911
4739
  projects: "projects";
4740
+ clients: "clients";
4912
4741
  operations: "operations";
4913
4742
  monitoring: "monitoring";
4914
4743
  knowledge: "knowledge";
@@ -9938,7 +9767,6 @@ interface SystemEntry {
9938
9767
  content?: Record<string, ContentNode>;
9939
9768
  subsystems?: Record<string, SystemEntry>;
9940
9769
  }
9941
- declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
9942
9770
 
9943
9771
  /**
9944
9772
  * Resource Registry type definitions
@@ -9988,6 +9816,21 @@ interface ResourceDefinition {
9988
9816
  /** Whether this resource is archived and should be excluded from registration and deployment */
9989
9817
  archived?: boolean;
9990
9818
  }
9819
+ type RuntimeResourceDescriptor = Extract<ResourceEntry$1, {
9820
+ kind: 'workflow' | 'agent' | 'integration';
9821
+ }>;
9822
+ type DescriptorBackedResourceDefinition<TResource extends RuntimeResourceDescriptor = RuntimeResourceDescriptor> = Omit<ResourceDefinition, 'resourceId' | 'type'> & {
9823
+ /** OM descriptor that owns canonical identity and governance metadata. */
9824
+ resource: TResource;
9825
+ resourceId?: never;
9826
+ type?: never;
9827
+ };
9828
+ type BoundResourceDefinition<TResource extends RuntimeResourceDescriptor = RuntimeResourceDescriptor> = Omit<DescriptorBackedResourceDefinition<TResource>, 'resource'> & ResourceDefinition & {
9829
+ resource: TResource;
9830
+ resourceId: TResource['id'];
9831
+ type: TResource['kind'];
9832
+ };
9833
+ declare function bindResourceDescriptor<TResource extends RuntimeResourceDescriptor>(definition: DescriptorBackedResourceDefinition<TResource>): BoundResourceDefinition<TResource>;
9991
9834
  /**
9992
9835
  * Resource list for organization
9993
9836
  * Returns ResourceDefinition metadata (not full definitions)
@@ -10102,7 +9945,7 @@ interface IntegrationDefinition extends ResourceDefinition {
10102
9945
  /** Resource type discriminator (narrowed from base union) */
10103
9946
  type: 'integration';
10104
9947
  /** OM descriptor that owns canonical identity and governance metadata. */
10105
- resource?: Extract<ResourceEntry, {
9948
+ resource?: Extract<ResourceEntry$1, {
10106
9949
  kind: 'integration';
10107
9950
  }>;
10108
9951
  /** Integration provider type */
@@ -10317,8 +10160,40 @@ interface CommandViewData {
10317
10160
  edges: CommandViewEdge[];
10318
10161
  }
10319
10162
 
10320
- type OrganizationModelSystems = z.infer<typeof SystemsDomainSchema>;
10321
- type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
10163
+ declare const SurfaceTypeSchema: z.ZodEnum<{
10164
+ dashboard: "dashboard";
10165
+ settings: "settings";
10166
+ graph: "graph";
10167
+ list: "list";
10168
+ page: "page";
10169
+ detail: "detail";
10170
+ }>;
10171
+ interface SidebarSurfaceNode {
10172
+ type: 'surface';
10173
+ label: string;
10174
+ path: string;
10175
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
10176
+ description?: string;
10177
+ icon?: string;
10178
+ order?: number;
10179
+ targets?: {
10180
+ systems?: string[];
10181
+ entities?: string[];
10182
+ resources?: string[];
10183
+ actions?: string[];
10184
+ };
10185
+ devOnly?: boolean;
10186
+ requiresAdmin?: boolean;
10187
+ }
10188
+ interface SidebarGroupNode {
10189
+ type: 'group';
10190
+ label: string;
10191
+ description?: string;
10192
+ icon?: string;
10193
+ order?: number;
10194
+ children: Record<string, SidebarNode>;
10195
+ }
10196
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
10322
10197
 
10323
10198
  declare const LinkSchema: z.ZodObject<{
10324
10199
  nodeId: z.ZodString;
@@ -10326,23 +10201,922 @@ declare const LinkSchema: z.ZodObject<{
10326
10201
  links: "links";
10327
10202
  affects: "affects";
10328
10203
  effects: "effects";
10329
- implements: "implements";
10204
+ actions: "actions";
10330
10205
  reads: "reads";
10331
10206
  writes: "writes";
10332
10207
  emits: "emits";
10208
+ triggers: "triggers";
10209
+ uses: "uses";
10210
+ approval: "approval";
10333
10211
  contains: "contains";
10334
10212
  references: "references";
10335
10213
  maps_to: "maps_to";
10336
- uses: "uses";
10337
10214
  governs: "governs";
10338
10215
  originates_from: "originates_from";
10339
- triggers: "triggers";
10340
10216
  applies_to: "applies_to";
10341
10217
  uses_catalog: "uses_catalog";
10342
10218
  }>;
10343
10219
  }, z.core.$strip>;
10344
10220
  type Link = z.infer<typeof LinkSchema>;
10345
10221
 
10222
+ declare const OrganizationModelSchema: z.ZodObject<{
10223
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10224
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
10225
+ branding: z.ZodOptional<z.ZodObject<{
10226
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10227
+ lastModified: z.ZodString;
10228
+ }, z.core.$strip>>;
10229
+ identity: z.ZodOptional<z.ZodObject<{
10230
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10231
+ lastModified: z.ZodString;
10232
+ }, z.core.$strip>>;
10233
+ customers: z.ZodOptional<z.ZodObject<{
10234
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10235
+ lastModified: z.ZodString;
10236
+ }, z.core.$strip>>;
10237
+ offerings: z.ZodOptional<z.ZodObject<{
10238
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10239
+ lastModified: z.ZodString;
10240
+ }, z.core.$strip>>;
10241
+ roles: z.ZodOptional<z.ZodObject<{
10242
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10243
+ lastModified: z.ZodString;
10244
+ }, z.core.$strip>>;
10245
+ goals: z.ZodOptional<z.ZodObject<{
10246
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10247
+ lastModified: z.ZodString;
10248
+ }, z.core.$strip>>;
10249
+ systems: z.ZodOptional<z.ZodObject<{
10250
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10251
+ lastModified: z.ZodString;
10252
+ }, z.core.$strip>>;
10253
+ ontology: z.ZodOptional<z.ZodObject<{
10254
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10255
+ lastModified: z.ZodString;
10256
+ }, z.core.$strip>>;
10257
+ resources: z.ZodOptional<z.ZodObject<{
10258
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10259
+ lastModified: z.ZodString;
10260
+ }, z.core.$strip>>;
10261
+ topology: z.ZodOptional<z.ZodObject<{
10262
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10263
+ lastModified: z.ZodString;
10264
+ }, z.core.$strip>>;
10265
+ actions: z.ZodOptional<z.ZodObject<{
10266
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10267
+ lastModified: z.ZodString;
10268
+ }, z.core.$strip>>;
10269
+ entities: z.ZodOptional<z.ZodObject<{
10270
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10271
+ lastModified: z.ZodString;
10272
+ }, z.core.$strip>>;
10273
+ policies: z.ZodOptional<z.ZodObject<{
10274
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10275
+ lastModified: z.ZodString;
10276
+ }, z.core.$strip>>;
10277
+ knowledge: z.ZodOptional<z.ZodObject<{
10278
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10279
+ lastModified: z.ZodString;
10280
+ }, z.core.$strip>>;
10281
+ }, z.core.$strip>>, z.ZodTransform<{
10282
+ branding: {
10283
+ version: 1;
10284
+ lastModified: string;
10285
+ };
10286
+ identity: {
10287
+ version: 1;
10288
+ lastModified: string;
10289
+ };
10290
+ customers: {
10291
+ version: 1;
10292
+ lastModified: string;
10293
+ };
10294
+ offerings: {
10295
+ version: 1;
10296
+ lastModified: string;
10297
+ };
10298
+ roles: {
10299
+ version: 1;
10300
+ lastModified: string;
10301
+ };
10302
+ goals: {
10303
+ version: 1;
10304
+ lastModified: string;
10305
+ };
10306
+ systems: {
10307
+ version: 1;
10308
+ lastModified: string;
10309
+ };
10310
+ ontology: {
10311
+ version: 1;
10312
+ lastModified: string;
10313
+ };
10314
+ resources: {
10315
+ version: 1;
10316
+ lastModified: string;
10317
+ };
10318
+ topology: {
10319
+ version: 1;
10320
+ lastModified: string;
10321
+ };
10322
+ actions: {
10323
+ version: 1;
10324
+ lastModified: string;
10325
+ };
10326
+ entities: {
10327
+ version: 1;
10328
+ lastModified: string;
10329
+ };
10330
+ policies: {
10331
+ version: 1;
10332
+ lastModified: string;
10333
+ };
10334
+ knowledge: {
10335
+ version: 1;
10336
+ lastModified: string;
10337
+ };
10338
+ }, {
10339
+ branding?: {
10340
+ version: 1;
10341
+ lastModified: string;
10342
+ } | undefined;
10343
+ identity?: {
10344
+ version: 1;
10345
+ lastModified: string;
10346
+ } | undefined;
10347
+ customers?: {
10348
+ version: 1;
10349
+ lastModified: string;
10350
+ } | undefined;
10351
+ offerings?: {
10352
+ version: 1;
10353
+ lastModified: string;
10354
+ } | undefined;
10355
+ roles?: {
10356
+ version: 1;
10357
+ lastModified: string;
10358
+ } | undefined;
10359
+ goals?: {
10360
+ version: 1;
10361
+ lastModified: string;
10362
+ } | undefined;
10363
+ systems?: {
10364
+ version: 1;
10365
+ lastModified: string;
10366
+ } | undefined;
10367
+ ontology?: {
10368
+ version: 1;
10369
+ lastModified: string;
10370
+ } | undefined;
10371
+ resources?: {
10372
+ version: 1;
10373
+ lastModified: string;
10374
+ } | undefined;
10375
+ topology?: {
10376
+ version: 1;
10377
+ lastModified: string;
10378
+ } | undefined;
10379
+ actions?: {
10380
+ version: 1;
10381
+ lastModified: string;
10382
+ } | undefined;
10383
+ entities?: {
10384
+ version: 1;
10385
+ lastModified: string;
10386
+ } | undefined;
10387
+ policies?: {
10388
+ version: 1;
10389
+ lastModified: string;
10390
+ } | undefined;
10391
+ knowledge?: {
10392
+ version: 1;
10393
+ lastModified: string;
10394
+ } | undefined;
10395
+ }>>;
10396
+ branding: z.ZodObject<{
10397
+ organizationName: z.ZodString;
10398
+ productName: z.ZodString;
10399
+ shortName: z.ZodString;
10400
+ description: z.ZodOptional<z.ZodString>;
10401
+ logos: z.ZodDefault<z.ZodObject<{
10402
+ light: z.ZodOptional<z.ZodString>;
10403
+ dark: z.ZodOptional<z.ZodString>;
10404
+ }, z.core.$strip>>;
10405
+ }, z.core.$strip>;
10406
+ navigation: z.ZodDefault<z.ZodObject<{
10407
+ sidebar: z.ZodDefault<z.ZodObject<{
10408
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
10409
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
10410
+ }, z.core.$strip>>;
10411
+ }, z.core.$strip>>;
10412
+ identity: z.ZodDefault<z.ZodObject<{
10413
+ mission: z.ZodDefault<z.ZodString>;
10414
+ vision: z.ZodDefault<z.ZodString>;
10415
+ legalName: z.ZodDefault<z.ZodString>;
10416
+ entityType: z.ZodDefault<z.ZodString>;
10417
+ jurisdiction: z.ZodDefault<z.ZodString>;
10418
+ industryCategory: z.ZodDefault<z.ZodString>;
10419
+ geographicFocus: z.ZodDefault<z.ZodString>;
10420
+ timeZone: z.ZodDefault<z.ZodString>;
10421
+ businessHours: z.ZodDefault<z.ZodObject<{
10422
+ monday: z.ZodOptional<z.ZodObject<{
10423
+ open: z.ZodString;
10424
+ close: z.ZodString;
10425
+ }, z.core.$strip>>;
10426
+ tuesday: z.ZodOptional<z.ZodObject<{
10427
+ open: z.ZodString;
10428
+ close: z.ZodString;
10429
+ }, z.core.$strip>>;
10430
+ wednesday: z.ZodOptional<z.ZodObject<{
10431
+ open: z.ZodString;
10432
+ close: z.ZodString;
10433
+ }, z.core.$strip>>;
10434
+ thursday: z.ZodOptional<z.ZodObject<{
10435
+ open: z.ZodString;
10436
+ close: z.ZodString;
10437
+ }, z.core.$strip>>;
10438
+ friday: z.ZodOptional<z.ZodObject<{
10439
+ open: z.ZodString;
10440
+ close: z.ZodString;
10441
+ }, z.core.$strip>>;
10442
+ saturday: z.ZodOptional<z.ZodObject<{
10443
+ open: z.ZodString;
10444
+ close: z.ZodString;
10445
+ }, z.core.$strip>>;
10446
+ sunday: z.ZodOptional<z.ZodObject<{
10447
+ open: z.ZodString;
10448
+ close: z.ZodString;
10449
+ }, z.core.$strip>>;
10450
+ }, z.core.$strip>>;
10451
+ clientBrief: z.ZodDefault<z.ZodString>;
10452
+ }, z.core.$strip>>;
10453
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10454
+ id: z.ZodString;
10455
+ order: z.ZodNumber;
10456
+ name: z.ZodDefault<z.ZodString>;
10457
+ description: z.ZodDefault<z.ZodString>;
10458
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
10459
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
10460
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
10461
+ firmographics: z.ZodDefault<z.ZodObject<{
10462
+ industry: z.ZodOptional<z.ZodString>;
10463
+ companySize: z.ZodOptional<z.ZodString>;
10464
+ region: z.ZodOptional<z.ZodString>;
10465
+ }, z.core.$strip>>;
10466
+ valueProp: z.ZodDefault<z.ZodString>;
10467
+ }, z.core.$strip>>>>;
10468
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10469
+ id: z.ZodString;
10470
+ order: z.ZodNumber;
10471
+ name: z.ZodDefault<z.ZodString>;
10472
+ description: z.ZodDefault<z.ZodString>;
10473
+ pricingModel: z.ZodDefault<z.ZodEnum<{
10474
+ custom: "custom";
10475
+ "one-time": "one-time";
10476
+ subscription: "subscription";
10477
+ "usage-based": "usage-based";
10478
+ }>>;
10479
+ price: z.ZodDefault<z.ZodNumber>;
10480
+ currency: z.ZodDefault<z.ZodString>;
10481
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10482
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
10483
+ }, z.core.$strip>>>>;
10484
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10485
+ id: z.ZodString;
10486
+ order: z.ZodNumber;
10487
+ title: z.ZodString;
10488
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
10489
+ reportsToId: z.ZodOptional<z.ZodString>;
10490
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
10491
+ kind: z.ZodLiteral<"human">;
10492
+ userId: z.ZodString;
10493
+ }, z.core.$strip>, z.ZodObject<{
10494
+ kind: z.ZodLiteral<"agent">;
10495
+ agentId: z.ZodString;
10496
+ }, z.core.$strip>, z.ZodObject<{
10497
+ kind: z.ZodLiteral<"team">;
10498
+ memberIds: z.ZodArray<z.ZodString>;
10499
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10500
+ kind: z.ZodLiteral<"human">;
10501
+ userId: z.ZodString;
10502
+ }, z.core.$strip>, z.ZodObject<{
10503
+ kind: z.ZodLiteral<"agent">;
10504
+ agentId: z.ZodString;
10505
+ }, z.core.$strip>, z.ZodObject<{
10506
+ kind: z.ZodLiteral<"team">;
10507
+ memberIds: z.ZodArray<z.ZodString>;
10508
+ }, z.core.$strip>], "kind">>]>>;
10509
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
10510
+ }, z.core.$strip>>>>;
10511
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10512
+ id: z.ZodString;
10513
+ order: z.ZodNumber;
10514
+ description: z.ZodString;
10515
+ periodStart: z.ZodString;
10516
+ periodEnd: z.ZodString;
10517
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
10518
+ id: z.ZodString;
10519
+ description: z.ZodString;
10520
+ targetMetric: z.ZodString;
10521
+ currentValue: z.ZodDefault<z.ZodNumber>;
10522
+ targetValue: z.ZodOptional<z.ZodNumber>;
10523
+ }, z.core.$strip>>>;
10524
+ }, z.core.$strip>>>>;
10525
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
10526
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
10527
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10528
+ id: z.ZodString;
10529
+ label: z.ZodOptional<z.ZodString>;
10530
+ description: z.ZodOptional<z.ZodString>;
10531
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10532
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10533
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10534
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10535
+ }, z.core.$loose>>>>;
10536
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10537
+ id: z.ZodString;
10538
+ label: z.ZodOptional<z.ZodString>;
10539
+ description: z.ZodOptional<z.ZodString>;
10540
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10541
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10542
+ from: z.ZodString;
10543
+ to: z.ZodString;
10544
+ cardinality: z.ZodOptional<z.ZodString>;
10545
+ via: z.ZodOptional<z.ZodString>;
10546
+ }, z.core.$loose>>>>;
10547
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10548
+ id: z.ZodString;
10549
+ label: z.ZodOptional<z.ZodString>;
10550
+ description: z.ZodOptional<z.ZodString>;
10551
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10552
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10553
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
10554
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10555
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10556
+ }, z.core.$loose>>>>;
10557
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10558
+ id: z.ZodString;
10559
+ label: z.ZodOptional<z.ZodString>;
10560
+ description: z.ZodOptional<z.ZodString>;
10561
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10562
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10563
+ kind: z.ZodOptional<z.ZodString>;
10564
+ appliesTo: z.ZodOptional<z.ZodString>;
10565
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10566
+ }, z.core.$loose>>>>;
10567
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10568
+ id: z.ZodString;
10569
+ label: z.ZodOptional<z.ZodString>;
10570
+ description: z.ZodOptional<z.ZodString>;
10571
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10572
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10573
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10574
+ }, z.core.$loose>>>>;
10575
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10576
+ id: z.ZodString;
10577
+ label: z.ZodOptional<z.ZodString>;
10578
+ description: z.ZodOptional<z.ZodString>;
10579
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10580
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10581
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10582
+ }, z.core.$loose>>>>;
10583
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10584
+ id: z.ZodString;
10585
+ label: z.ZodOptional<z.ZodString>;
10586
+ description: z.ZodOptional<z.ZodString>;
10587
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10588
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10589
+ primitive: z.ZodOptional<z.ZodString>;
10590
+ }, z.core.$loose>>>>;
10591
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10592
+ id: z.ZodString;
10593
+ label: z.ZodOptional<z.ZodString>;
10594
+ description: z.ZodOptional<z.ZodString>;
10595
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10596
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10597
+ valueType: z.ZodOptional<z.ZodString>;
10598
+ searchable: z.ZodOptional<z.ZodBoolean>;
10599
+ pii: z.ZodOptional<z.ZodBoolean>;
10600
+ }, z.core.$loose>>>>;
10601
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10602
+ id: z.ZodString;
10603
+ label: z.ZodOptional<z.ZodString>;
10604
+ description: z.ZodOptional<z.ZodString>;
10605
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10606
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10607
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
10608
+ }, z.core.$loose>>>>;
10609
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10610
+ id: z.ZodString;
10611
+ label: z.ZodOptional<z.ZodString>;
10612
+ description: z.ZodOptional<z.ZodString>;
10613
+ ownerSystemId: z.ZodOptional<z.ZodString>;
10614
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
10615
+ route: z.ZodOptional<z.ZodString>;
10616
+ }, z.core.$loose>>>>;
10617
+ }, z.core.$strip>>>;
10618
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
10619
+ id: z.ZodString;
10620
+ order: z.ZodDefault<z.ZodNumber>;
10621
+ systemPath: z.ZodString;
10622
+ title: z.ZodOptional<z.ZodString>;
10623
+ description: z.ZodOptional<z.ZodString>;
10624
+ ownerRoleId: z.ZodOptional<z.ZodString>;
10625
+ status: z.ZodEnum<{
10626
+ deprecated: "deprecated";
10627
+ active: "active";
10628
+ archived: "archived";
10629
+ }>;
10630
+ ontology: z.ZodOptional<z.ZodObject<{
10631
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10632
+ primaryAction: z.ZodOptional<z.ZodString>;
10633
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10634
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10635
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10636
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10637
+ }, z.core.$strip>>;
10638
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10639
+ path: z.ZodString;
10640
+ role: z.ZodEnum<{
10641
+ schema: "schema";
10642
+ config: "config";
10643
+ entrypoint: "entrypoint";
10644
+ handler: "handler";
10645
+ test: "test";
10646
+ docs: "docs";
10647
+ }>;
10648
+ symbol: z.ZodOptional<z.ZodString>;
10649
+ description: z.ZodOptional<z.ZodString>;
10650
+ }, z.core.$strip>>>;
10651
+ kind: z.ZodLiteral<"workflow">;
10652
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
10653
+ eventKey: z.ZodString;
10654
+ label: z.ZodString;
10655
+ payloadSchema: z.ZodOptional<z.ZodString>;
10656
+ lifecycle: z.ZodOptional<z.ZodEnum<{
10657
+ deprecated: "deprecated";
10658
+ draft: "draft";
10659
+ beta: "beta";
10660
+ active: "active";
10661
+ archived: "archived";
10662
+ }>>;
10663
+ }, z.core.$strip>>>;
10664
+ }, z.core.$strip>, z.ZodObject<{
10665
+ id: z.ZodString;
10666
+ order: z.ZodDefault<z.ZodNumber>;
10667
+ systemPath: z.ZodString;
10668
+ title: z.ZodOptional<z.ZodString>;
10669
+ description: z.ZodOptional<z.ZodString>;
10670
+ ownerRoleId: z.ZodOptional<z.ZodString>;
10671
+ status: z.ZodEnum<{
10672
+ deprecated: "deprecated";
10673
+ active: "active";
10674
+ archived: "archived";
10675
+ }>;
10676
+ ontology: z.ZodOptional<z.ZodObject<{
10677
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10678
+ primaryAction: z.ZodOptional<z.ZodString>;
10679
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10680
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10681
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10682
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10683
+ }, z.core.$strip>>;
10684
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10685
+ path: z.ZodString;
10686
+ role: z.ZodEnum<{
10687
+ schema: "schema";
10688
+ config: "config";
10689
+ entrypoint: "entrypoint";
10690
+ handler: "handler";
10691
+ test: "test";
10692
+ docs: "docs";
10693
+ }>;
10694
+ symbol: z.ZodOptional<z.ZodString>;
10695
+ description: z.ZodOptional<z.ZodString>;
10696
+ }, z.core.$strip>>>;
10697
+ kind: z.ZodLiteral<"agent">;
10698
+ agentKind: z.ZodEnum<{
10699
+ platform: "platform";
10700
+ orchestrator: "orchestrator";
10701
+ specialist: "specialist";
10702
+ utility: "utility";
10703
+ }>;
10704
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
10705
+ sessionCapable: z.ZodBoolean;
10706
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10707
+ kind: z.ZodLiteral<"slash-command">;
10708
+ command: z.ZodString;
10709
+ toolFactory: z.ZodOptional<z.ZodString>;
10710
+ }, z.core.$strip>, z.ZodObject<{
10711
+ kind: z.ZodLiteral<"mcp-tool">;
10712
+ server: z.ZodString;
10713
+ name: z.ZodString;
10714
+ }, z.core.$strip>, z.ZodObject<{
10715
+ kind: z.ZodLiteral<"api-endpoint">;
10716
+ method: z.ZodEnum<{
10717
+ GET: "GET";
10718
+ POST: "POST";
10719
+ PATCH: "PATCH";
10720
+ DELETE: "DELETE";
10721
+ }>;
10722
+ path: z.ZodString;
10723
+ requestSchema: z.ZodOptional<z.ZodString>;
10724
+ responseSchema: z.ZodOptional<z.ZodString>;
10725
+ }, z.core.$strip>, z.ZodObject<{
10726
+ kind: z.ZodLiteral<"script-execution">;
10727
+ resourceId: z.ZodString;
10728
+ }, z.core.$strip>], "kind">>>;
10729
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
10730
+ eventKey: z.ZodString;
10731
+ label: z.ZodString;
10732
+ payloadSchema: z.ZodOptional<z.ZodString>;
10733
+ lifecycle: z.ZodOptional<z.ZodEnum<{
10734
+ deprecated: "deprecated";
10735
+ draft: "draft";
10736
+ beta: "beta";
10737
+ active: "active";
10738
+ archived: "archived";
10739
+ }>>;
10740
+ }, z.core.$strip>>>;
10741
+ }, z.core.$strip>, z.ZodObject<{
10742
+ id: z.ZodString;
10743
+ order: z.ZodDefault<z.ZodNumber>;
10744
+ systemPath: z.ZodString;
10745
+ title: z.ZodOptional<z.ZodString>;
10746
+ description: z.ZodOptional<z.ZodString>;
10747
+ ownerRoleId: z.ZodOptional<z.ZodString>;
10748
+ status: z.ZodEnum<{
10749
+ deprecated: "deprecated";
10750
+ active: "active";
10751
+ archived: "archived";
10752
+ }>;
10753
+ ontology: z.ZodOptional<z.ZodObject<{
10754
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10755
+ primaryAction: z.ZodOptional<z.ZodString>;
10756
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10757
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10758
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10759
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10760
+ }, z.core.$strip>>;
10761
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10762
+ path: z.ZodString;
10763
+ role: z.ZodEnum<{
10764
+ schema: "schema";
10765
+ config: "config";
10766
+ entrypoint: "entrypoint";
10767
+ handler: "handler";
10768
+ test: "test";
10769
+ docs: "docs";
10770
+ }>;
10771
+ symbol: z.ZodOptional<z.ZodString>;
10772
+ description: z.ZodOptional<z.ZodString>;
10773
+ }, z.core.$strip>>>;
10774
+ kind: z.ZodLiteral<"integration">;
10775
+ provider: z.ZodString;
10776
+ }, z.core.$strip>, z.ZodObject<{
10777
+ id: z.ZodString;
10778
+ order: z.ZodDefault<z.ZodNumber>;
10779
+ systemPath: z.ZodString;
10780
+ title: z.ZodOptional<z.ZodString>;
10781
+ description: z.ZodOptional<z.ZodString>;
10782
+ ownerRoleId: z.ZodOptional<z.ZodString>;
10783
+ status: z.ZodEnum<{
10784
+ deprecated: "deprecated";
10785
+ active: "active";
10786
+ archived: "archived";
10787
+ }>;
10788
+ ontology: z.ZodOptional<z.ZodObject<{
10789
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10790
+ primaryAction: z.ZodOptional<z.ZodString>;
10791
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10792
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10793
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10794
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10795
+ }, z.core.$strip>>;
10796
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10797
+ path: z.ZodString;
10798
+ role: z.ZodEnum<{
10799
+ schema: "schema";
10800
+ config: "config";
10801
+ entrypoint: "entrypoint";
10802
+ handler: "handler";
10803
+ test: "test";
10804
+ docs: "docs";
10805
+ }>;
10806
+ symbol: z.ZodOptional<z.ZodString>;
10807
+ description: z.ZodOptional<z.ZodString>;
10808
+ }, z.core.$strip>>>;
10809
+ kind: z.ZodLiteral<"script">;
10810
+ language: z.ZodEnum<{
10811
+ shell: "shell";
10812
+ sql: "sql";
10813
+ typescript: "typescript";
10814
+ python: "python";
10815
+ }>;
10816
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
10817
+ file: z.ZodString;
10818
+ }, z.core.$strip>]>;
10819
+ }, z.core.$strip>], "kind">>>>;
10820
+ topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
10821
+ version: z.ZodDefault<z.ZodLiteral<1>>;
10822
+ relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10823
+ from: z.ZodDiscriminatedUnion<[z.ZodObject<{
10824
+ kind: z.ZodLiteral<"system">;
10825
+ id: z.ZodString;
10826
+ }, z.core.$strip>, z.ZodObject<{
10827
+ kind: z.ZodLiteral<"resource">;
10828
+ id: z.ZodString;
10829
+ }, z.core.$strip>, z.ZodObject<{
10830
+ kind: z.ZodLiteral<"ontology">;
10831
+ id: z.ZodString;
10832
+ }, z.core.$strip>, z.ZodObject<{
10833
+ kind: z.ZodLiteral<"policy">;
10834
+ id: z.ZodString;
10835
+ }, z.core.$strip>, z.ZodObject<{
10836
+ kind: z.ZodLiteral<"role">;
10837
+ id: z.ZodString;
10838
+ }, z.core.$strip>, z.ZodObject<{
10839
+ kind: z.ZodLiteral<"trigger">;
10840
+ id: z.ZodString;
10841
+ }, z.core.$strip>, z.ZodObject<{
10842
+ kind: z.ZodLiteral<"humanCheckpoint">;
10843
+ id: z.ZodString;
10844
+ }, z.core.$strip>, z.ZodObject<{
10845
+ kind: z.ZodLiteral<"externalResource">;
10846
+ id: z.ZodString;
10847
+ }, z.core.$strip>], "kind">;
10848
+ kind: z.ZodEnum<{
10849
+ triggers: "triggers";
10850
+ uses: "uses";
10851
+ approval: "approval";
10852
+ }>;
10853
+ to: z.ZodDiscriminatedUnion<[z.ZodObject<{
10854
+ kind: z.ZodLiteral<"system">;
10855
+ id: z.ZodString;
10856
+ }, z.core.$strip>, z.ZodObject<{
10857
+ kind: z.ZodLiteral<"resource">;
10858
+ id: z.ZodString;
10859
+ }, z.core.$strip>, z.ZodObject<{
10860
+ kind: z.ZodLiteral<"ontology">;
10861
+ id: z.ZodString;
10862
+ }, z.core.$strip>, z.ZodObject<{
10863
+ kind: z.ZodLiteral<"policy">;
10864
+ id: z.ZodString;
10865
+ }, z.core.$strip>, z.ZodObject<{
10866
+ kind: z.ZodLiteral<"role">;
10867
+ id: z.ZodString;
10868
+ }, z.core.$strip>, z.ZodObject<{
10869
+ kind: z.ZodLiteral<"trigger">;
10870
+ id: z.ZodString;
10871
+ }, z.core.$strip>, z.ZodObject<{
10872
+ kind: z.ZodLiteral<"humanCheckpoint">;
10873
+ id: z.ZodString;
10874
+ }, z.core.$strip>, z.ZodObject<{
10875
+ kind: z.ZodLiteral<"externalResource">;
10876
+ id: z.ZodString;
10877
+ }, z.core.$strip>], "kind">;
10878
+ systemPath: z.ZodOptional<z.ZodString>;
10879
+ required: z.ZodOptional<z.ZodBoolean>;
10880
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
10881
+ }, z.core.$strip>>>;
10882
+ }, z.core.$strip>>>;
10883
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10884
+ id: z.ZodString;
10885
+ order: z.ZodNumber;
10886
+ label: z.ZodString;
10887
+ description: z.ZodOptional<z.ZodString>;
10888
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
10889
+ domain: z.ZodString;
10890
+ }, z.core.$strip>]>>;
10891
+ resourceId: z.ZodOptional<z.ZodString>;
10892
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
10893
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10894
+ kind: z.ZodLiteral<"slash-command">;
10895
+ command: z.ZodString;
10896
+ toolFactory: z.ZodOptional<z.ZodString>;
10897
+ }, z.core.$strip>, z.ZodObject<{
10898
+ kind: z.ZodLiteral<"mcp-tool">;
10899
+ server: z.ZodString;
10900
+ name: z.ZodString;
10901
+ }, z.core.$strip>, z.ZodObject<{
10902
+ kind: z.ZodLiteral<"api-endpoint">;
10903
+ method: z.ZodEnum<{
10904
+ GET: "GET";
10905
+ POST: "POST";
10906
+ PATCH: "PATCH";
10907
+ DELETE: "DELETE";
10908
+ }>;
10909
+ path: z.ZodString;
10910
+ requestSchema: z.ZodOptional<z.ZodString>;
10911
+ responseSchema: z.ZodOptional<z.ZodString>;
10912
+ }, z.core.$strip>, z.ZodObject<{
10913
+ kind: z.ZodLiteral<"script-execution">;
10914
+ resourceId: z.ZodString;
10915
+ }, z.core.$strip>], "kind">>>;
10916
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
10917
+ lifecycle: z.ZodDefault<z.ZodEnum<{
10918
+ deprecated: "deprecated";
10919
+ draft: "draft";
10920
+ beta: "beta";
10921
+ active: "active";
10922
+ archived: "archived";
10923
+ }>>;
10924
+ }, z.core.$strip>>>>;
10925
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10926
+ id: z.ZodString;
10927
+ order: z.ZodNumber;
10928
+ label: z.ZodString;
10929
+ description: z.ZodOptional<z.ZodString>;
10930
+ ownedBySystemId: z.ZodString;
10931
+ table: z.ZodOptional<z.ZodString>;
10932
+ rowSchema: z.ZodOptional<z.ZodString>;
10933
+ stateCatalogId: z.ZodOptional<z.ZodString>;
10934
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
10935
+ toEntity: z.ZodString;
10936
+ kind: z.ZodEnum<{
10937
+ "belongs-to": "belongs-to";
10938
+ "has-many": "has-many";
10939
+ "has-one": "has-one";
10940
+ "many-to-many": "many-to-many";
10941
+ }>;
10942
+ via: z.ZodOptional<z.ZodString>;
10943
+ label: z.ZodOptional<z.ZodString>;
10944
+ }, z.core.$strip>>>;
10945
+ }, z.core.$strip>>>>;
10946
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10947
+ id: z.ZodString;
10948
+ order: z.ZodNumber;
10949
+ label: z.ZodString;
10950
+ description: z.ZodOptional<z.ZodString>;
10951
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
10952
+ kind: z.ZodLiteral<"event">;
10953
+ eventId: z.ZodString;
10954
+ }, z.core.$strip>, z.ZodObject<{
10955
+ kind: z.ZodLiteral<"action-invocation">;
10956
+ actionId: z.ZodString;
10957
+ }, z.core.$strip>, z.ZodObject<{
10958
+ kind: z.ZodLiteral<"schedule">;
10959
+ cron: z.ZodString;
10960
+ }, z.core.$strip>, z.ZodObject<{
10961
+ kind: z.ZodLiteral<"manual">;
10962
+ }, z.core.$strip>], "kind">;
10963
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
10964
+ kind: z.ZodLiteral<"always">;
10965
+ }, z.core.$strip>, z.ZodObject<{
10966
+ kind: z.ZodLiteral<"expression">;
10967
+ expression: z.ZodString;
10968
+ }, z.core.$strip>, z.ZodObject<{
10969
+ kind: z.ZodLiteral<"threshold">;
10970
+ metric: z.ZodString;
10971
+ operator: z.ZodEnum<{
10972
+ lt: "lt";
10973
+ lte: "lte";
10974
+ eq: "eq";
10975
+ gte: "gte";
10976
+ gt: "gt";
10977
+ }>;
10978
+ value: z.ZodNumber;
10979
+ }, z.core.$strip>], "kind">>;
10980
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10981
+ kind: z.ZodLiteral<"require-approval">;
10982
+ roleId: z.ZodOptional<z.ZodString>;
10983
+ }, z.core.$strip>, z.ZodObject<{
10984
+ kind: z.ZodLiteral<"invoke-action">;
10985
+ actionId: z.ZodString;
10986
+ }, z.core.$strip>, z.ZodObject<{
10987
+ kind: z.ZodLiteral<"notify-role">;
10988
+ roleId: z.ZodString;
10989
+ }, z.core.$strip>, z.ZodObject<{
10990
+ kind: z.ZodLiteral<"block">;
10991
+ }, z.core.$strip>], "kind">>;
10992
+ appliesTo: z.ZodDefault<z.ZodObject<{
10993
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10994
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10995
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10996
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
10997
+ }, z.core.$strip>>;
10998
+ lifecycle: z.ZodDefault<z.ZodEnum<{
10999
+ deprecated: "deprecated";
11000
+ draft: "draft";
11001
+ beta: "beta";
11002
+ active: "active";
11003
+ archived: "archived";
11004
+ }>>;
11005
+ }, z.core.$strip>>>>;
11006
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
11007
+ id: z.ZodString;
11008
+ kind: z.ZodEnum<{
11009
+ playbook: "playbook";
11010
+ strategy: "strategy";
11011
+ reference: "reference";
11012
+ }>;
11013
+ title: z.ZodString;
11014
+ summary: z.ZodString;
11015
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
11016
+ message: "message";
11017
+ error: "error";
11018
+ agent: "agent";
11019
+ workflow: "workflow";
11020
+ "google-sheets": "google-sheets";
11021
+ dashboard: "dashboard";
11022
+ calendar: "calendar";
11023
+ sales: "sales";
11024
+ crm: "crm";
11025
+ "lead-gen": "lead-gen";
11026
+ projects: "projects";
11027
+ clients: "clients";
11028
+ operations: "operations";
11029
+ monitoring: "monitoring";
11030
+ knowledge: "knowledge";
11031
+ settings: "settings";
11032
+ admin: "admin";
11033
+ archive: "archive";
11034
+ business: "business";
11035
+ finance: "finance";
11036
+ platform: "platform";
11037
+ seo: "seo";
11038
+ playbook: "playbook";
11039
+ strategy: "strategy";
11040
+ reference: "reference";
11041
+ integration: "integration";
11042
+ database: "database";
11043
+ user: "user";
11044
+ team: "team";
11045
+ gmail: "gmail";
11046
+ attio: "attio";
11047
+ overview: "overview";
11048
+ "command-view": "command-view";
11049
+ "command-queue": "command-queue";
11050
+ pipeline: "pipeline";
11051
+ lists: "lists";
11052
+ resources: "resources";
11053
+ approve: "approve";
11054
+ reject: "reject";
11055
+ retry: "retry";
11056
+ edit: "edit";
11057
+ view: "view";
11058
+ launch: "launch";
11059
+ escalate: "escalate";
11060
+ promote: "promote";
11061
+ submit: "submit";
11062
+ email: "email";
11063
+ success: "success";
11064
+ warning: "warning";
11065
+ info: "info";
11066
+ pending: "pending";
11067
+ bolt: "bolt";
11068
+ building: "building";
11069
+ briefcase: "briefcase";
11070
+ apps: "apps";
11071
+ graph: "graph";
11072
+ shield: "shield";
11073
+ users: "users";
11074
+ "chart-bar": "chart-bar";
11075
+ search: "search";
11076
+ }>, z.ZodString]>>;
11077
+ externalUrl: z.ZodOptional<z.ZodString>;
11078
+ sourceFilePath: z.ZodOptional<z.ZodString>;
11079
+ body: z.ZodString;
11080
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
11081
+ target: z.ZodObject<{
11082
+ kind: z.ZodEnum<{
11083
+ knowledge: "knowledge";
11084
+ system: "system";
11085
+ action: "action";
11086
+ ontology: "ontology";
11087
+ role: "role";
11088
+ goal: "goal";
11089
+ stage: "stage";
11090
+ resource: "resource";
11091
+ "customer-segment": "customer-segment";
11092
+ offering: "offering";
11093
+ "content-node": "content-node";
11094
+ }>;
11095
+ id: z.ZodString;
11096
+ }, z.core.$strip>;
11097
+ }, z.core.$strip>, z.ZodObject<{
11098
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
11099
+ }, z.core.$strip>]>, z.ZodTransform<{
11100
+ target: {
11101
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
11102
+ id: string;
11103
+ };
11104
+ nodeId: string;
11105
+ }, {
11106
+ nodeId: string;
11107
+ } | {
11108
+ target: {
11109
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
11110
+ id: string;
11111
+ };
11112
+ }>>>>;
11113
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
11114
+ updatedAt: z.ZodString;
11115
+ }, z.core.$strip>>>>;
11116
+ }, z.core.$strip>;
11117
+
11118
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
11119
+
10346
11120
  declare const ResourceCategorySchema: z.ZodEnum<{
10347
11121
  diagnostic: "diagnostic";
10348
11122
  production: "production";
@@ -10406,10 +11180,7 @@ interface DeploymentSpec {
10406
11180
  /** Deployment version (semver) */
10407
11181
  version: string;
10408
11182
  /** Optional Organization Model governance catalog used for OM-code validation */
10409
- organizationModel?: {
10410
- systems?: OrganizationModelSystems;
10411
- resources?: OrganizationModelResources;
10412
- };
11183
+ organizationModel?: Partial<Pick<OrganizationModel, 'systems' | 'resources' | 'ontology' | 'topology' | 'roles' | 'policies' | 'entities' | 'actions'>>;
10413
11184
  /** Workflow definitions */
10414
11185
  workflows?: WorkflowDefinition[];
10415
11186
  /** Agent definitions */
@@ -10718,10 +11489,16 @@ declare class RegistryValidationError extends Error {
10718
11489
  constructor(orgName: string, resourceId: string | null, field: string | null, message: string);
10719
11490
  }
10720
11491
  type ResourceValidatorMode = 'strict' | 'warn-only';
10721
- type ResourceGovernanceValidationIssueType = 'missing-code-resource' | 'missing-om-resource' | 'type-mismatch' | 'system-mismatch' | 'missing-om-system' | 'raw-resource-id';
11492
+ type ResourceGovernanceValidationIssueType = 'missing-code-resource' | 'missing-om-resource' | 'type-mismatch' | 'system-mismatch' | 'missing-om-system' | 'raw-resource-id' | 'descriptor-mismatch' | 'missing-ontology-actions' | 'ontology-reference-missing' | 'primary-action-mismatch' | 'topology-reference-missing';
10722
11493
  interface ResourceGovernanceModel {
10723
11494
  systems?: Record<string, SystemEntry>;
10724
- resources?: Record<string, ResourceEntry>;
11495
+ resources?: Record<string, ResourceEntry$1>;
11496
+ ontology?: OrganizationModel['ontology'];
11497
+ topology?: OrganizationModel['topology'];
11498
+ roles?: OrganizationModel['roles'];
11499
+ policies?: OrganizationModel['policies'];
11500
+ entities?: OrganizationModel['entities'];
11501
+ actions?: OrganizationModel['actions'];
10725
11502
  }
10726
11503
  interface ResourceGovernanceValidationIssue {
10727
11504
  type: ResourceGovernanceValidationIssueType;
@@ -10952,6 +11729,230 @@ declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
10952
11729
  ]
10953
11730
  }
10954
11731
 
11732
+ declare const ResourceOntologyBindingSchema = z
11733
+ .object({
11734
+ actions: z.array(OntologyIdSchema).optional(),
11735
+ primaryAction: OntologyIdSchema.optional(),
11736
+ reads: z.array(OntologyIdSchema).optional(),
11737
+ writes: z.array(OntologyIdSchema).optional(),
11738
+ usesCatalogs: z.array(OntologyIdSchema).optional(),
11739
+ emits: z.array(OntologyIdSchema).optional()
11740
+ })
11741
+ .superRefine((binding, ctx) => {
11742
+ if (binding.primaryAction === undefined) return
11743
+ if (binding.actions?.includes(binding.primaryAction)) return
11744
+
11745
+ ctx.addIssue({
11746
+ code: z.ZodIssueCode.custom,
11747
+ path: ['primaryAction'],
11748
+ message: 'Resource ontology primaryAction must be included in actions'
11749
+ })
11750
+ })
11751
+
11752
+ type OntologyRefInput = string | { id: string }
11753
+ type ResourceOntologyBindingInput = {
11754
+ actions?: OntologyRefInput[]
11755
+ primaryAction?: OntologyRefInput
11756
+ reads?: OntologyRefInput[]
11757
+ writes?: OntologyRefInput[]
11758
+ usesCatalogs?: OntologyRefInput[]
11759
+ emits?: OntologyRefInput[]
11760
+ }
11761
+
11762
+ declare const WorkflowResourceEntrySchema = ResourceEntryBaseSchema.extend({
11763
+ kind: z.literal('workflow'),
11764
+ emits: z.array(EventEmissionDescriptorSchema).optional()
11765
+ })
11766
+
11767
+ declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
11768
+ kind: z.literal('integration'),
11769
+ provider: z.string().trim().min(1).max(100)
11770
+ })
11771
+
11772
+ declare const ResourceEntrySchema = z.discriminatedUnion('kind', [
11773
+ WorkflowResourceEntrySchema,
11774
+ AgentResourceEntrySchema,
11775
+ IntegrationResourceEntrySchema,
11776
+ ScriptResourceEntrySchema
11777
+ ])
11778
+
11779
+ declare function defineResource<const TResource extends ResourceEntry>(resource: TResource): TResource {
11780
+ return ResourceEntrySchema.parse(resource) as TResource
11781
+ }
11782
+
11783
+ declare function defineResources<const TResources extends Record<string, ResourceEntry>>(
11784
+ resources: TResources
11785
+ ): TResources {
11786
+ return Object.fromEntries(
11787
+ Object.entries(resources).map(([key, resource]) => [key, ResourceEntrySchema.parse(resource)])
11788
+ ) as TResources
11789
+ }
11790
+
11791
+ declare function defineResourceOntology(input: ResourceOntologyBindingInput): ResourceOntologyBinding {
11792
+ return ResourceOntologyBindingSchema.parse({
11793
+ actions: ontologyIdArrayFrom(input.actions),
11794
+ primaryAction: input.primaryAction === undefined ? undefined : ontologyIdFrom(input.primaryAction),
11795
+ reads: ontologyIdArrayFrom(input.reads),
11796
+ writes: ontologyIdArrayFrom(input.writes),
11797
+ usesCatalogs: ontologyIdArrayFrom(input.usesCatalogs),
11798
+ emits: ontologyIdArrayFrom(input.emits)
11799
+ })
11800
+ }
11801
+ type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11802
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>
11803
+
11804
+ declare const OmTopologyNodeRefSchema = z.discriminatedUnion('kind', [
11805
+ z.object({ kind: z.literal('system'), id: ModelIdSchema }),
11806
+ z.object({ kind: z.literal('resource'), id: ResourceIdSchema }),
11807
+ z.object({ kind: z.literal('ontology'), id: OntologyIdSchema }),
11808
+ z.object({ kind: z.literal('policy'), id: ModelIdSchema }),
11809
+ z.object({ kind: z.literal('role'), id: ModelIdSchema }),
11810
+ z.object({ kind: z.literal('trigger'), id: ResourceIdSchema }),
11811
+ z.object({ kind: z.literal('humanCheckpoint'), id: ResourceIdSchema }),
11812
+ z.object({ kind: z.literal('externalResource'), id: ResourceIdSchema })
11813
+ ])
11814
+
11815
+ declare const OmTopologyRelationshipSchema = z.object({
11816
+ from: OmTopologyNodeRefSchema,
11817
+ kind: OmTopologyRelationshipKindSchema,
11818
+ to: OmTopologyNodeRefSchema,
11819
+ systemPath: SystemPathSchema.optional(),
11820
+ required: z.boolean().optional(),
11821
+ metadata: OmTopologyMetadataSchema.optional()
11822
+ })
11823
+
11824
+ declare const OmTopologyDomainSchema = z
11825
+ .object({
11826
+ version: z.literal(1).default(1),
11827
+ relationships: z.record(z.string().trim().min(1).max(255), OmTopologyRelationshipSchema).default({})
11828
+ })
11829
+ .default({ version: 1, relationships: {} })
11830
+ type OmTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>
11831
+ type OmTopologyRelationship = z.infer<typeof OmTopologyRelationshipSchema>
11832
+ type OmTopologyDomain = z.infer<typeof OmTopologyDomainSchema>
11833
+ type TopologyRelationshipInput = Omit<OmTopologyRelationship, 'from' | 'to'> & {
11834
+ from: OmTopologyNodeInput
11835
+ to: OmTopologyNodeInput
11836
+ }
11837
+ type OmTopologyNodeInput = OmTopologyNodeRef | ResourceEntry
11838
+
11839
+ declare const topologyRef = {
11840
+ system: (system: TopologyRefFactoryInput) => parseRef('system', idFrom(system)),
11841
+ resource: (resource: TopologyRefFactoryInput) => parseRef('resource', idFrom(resource)),
11842
+ ontology: (record: TopologyRefFactoryInput) => parseRef('ontology', idFrom(record)),
11843
+ policy: (policy: TopologyRefFactoryInput) => parseRef('policy', idFrom(policy)),
11844
+ role: (role: TopologyRefFactoryInput) => parseRef('role', idFrom(role)),
11845
+ trigger: (trigger: TopologyRefFactoryInput) => parseRef('trigger', idFrom(trigger)),
11846
+ humanCheckpoint: (checkpoint: TopologyRefFactoryInput) => parseRef('humanCheckpoint', idFrom(checkpoint)),
11847
+ externalResource: (externalResource: TopologyRefFactoryInput) => parseRef('externalResource', idFrom(externalResource))
11848
+ } as const
11849
+
11850
+ declare const topologyRelationship = {
11851
+ triggers: (from: OmTopologyNodeInput, to: OmTopologyNodeInput, options: TopologyRelationshipOptions = {}) =>
11852
+ defineTopologyRelationship({
11853
+ ...options,
11854
+ from,
11855
+ kind: 'triggers',
11856
+ to
11857
+ }),
11858
+ uses: (from: OmTopologyNodeInput, to: OmTopologyNodeInput, options: TopologyRelationshipOptions = {}) =>
11859
+ defineTopologyRelationship({
11860
+ ...options,
11861
+ from,
11862
+ kind: 'uses',
11863
+ to
11864
+ }),
11865
+ approval: (from: OmTopologyNodeInput, to: OmTopologyNodeInput, options: TopologyRelationshipOptions = {}) =>
11866
+ defineTopologyRelationship({
11867
+ ...options,
11868
+ from,
11869
+ kind: 'approval',
11870
+ to
11871
+ }),
11872
+ usesIntegration: (
11873
+ from: OmTopologyNodeInput,
11874
+ integration: OmTopologyNodeInput,
11875
+ options: TopologyRelationshipOptions = {}
11876
+ ) =>
11877
+ defineTopologyRelationship({
11878
+ required: true,
11879
+ ...options,
11880
+ from,
11881
+ kind: 'uses',
11882
+ to: integration
11883
+ }),
11884
+ requestsApproval: (
11885
+ from: OmTopologyNodeInput,
11886
+ checkpoint: TopologyRefFactoryInput,
11887
+ options: TopologyRelationshipOptions = {}
11888
+ ) =>
11889
+ defineTopologyRelationship({
11890
+ required: true,
11891
+ ...options,
11892
+ from,
11893
+ kind: 'approval',
11894
+ to: topologyRef.humanCheckpoint(checkpoint)
11895
+ }),
11896
+ checkpointRoutesTo: (
11897
+ checkpoint: TopologyRefFactoryInput,
11898
+ to: OmTopologyNodeInput,
11899
+ options: TopologyRelationshipOptions = {}
11900
+ ) =>
11901
+ defineTopologyRelationship({
11902
+ required: true,
11903
+ ...options,
11904
+ from: topologyRef.humanCheckpoint(checkpoint),
11905
+ kind: 'triggers',
11906
+ to
11907
+ })
11908
+ } as const
11909
+
11910
+ declare function parseTopologyNodeRef(input: string | OmTopologyNodeRef): OmTopologyNodeRef {
11911
+ if (typeof input !== 'string') return OmTopologyNodeRefSchema.parse(input)
11912
+
11913
+ const separatorIndex = input.indexOf(':')
11914
+ if (separatorIndex === -1) {
11915
+ throw new Error(`Topology node ref "${input}" must use <kind>:<id>`)
11916
+ }
11917
+
11918
+ const kind = input.slice(0, separatorIndex)
11919
+ const id = input.slice(separatorIndex + 1)
11920
+ if (!OmTopologyNodeKindSchema.safeParse(kind).success) {
11921
+ throw new Error(`Topology node ref "${input}" has unsupported kind "${kind}"`)
11922
+ }
11923
+
11924
+ return OmTopologyNodeRefSchema.parse({ kind, id })
11925
+ }
11926
+
11927
+ declare function defineTopologyRelationship(input: TopologyRelationshipInput): OmTopologyRelationship {
11928
+ return OmTopologyRelationshipSchema.parse({
11929
+ ...input,
11930
+ from: compileTopologyNodeRef(input.from),
11931
+ to: compileTopologyNodeRef(input.to)
11932
+ })
11933
+ }
11934
+
11935
+ declare function defineTopology(
11936
+ relationships: Record<string, TopologyRelationshipInput> | TopologyRelationshipInput[]
11937
+ ): OmTopologyDomain {
11938
+ const entries = Array.isArray(relationships)
11939
+ ? relationships.map((relationship, index) => [`relationship-${index + 1}`, relationship] as const)
11940
+ : Object.entries(relationships)
11941
+
11942
+ return OmTopologyDomainSchema.parse({
11943
+ version: 1,
11944
+ relationships: Object.fromEntries(entries.map(([key, relationship]) => [key, defineTopologyRelationship(relationship)]))
11945
+ })
11946
+ }
11947
+
11948
+ type OrganizationModelResourceEntry = z.infer<typeof ResourceEntrySchema>
11949
+ type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11950
+ type OrganizationModelWorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>
11951
+ type OrganizationModelIntegrationResourceEntry = z.infer<typeof IntegrationResourceEntrySchema>
11952
+ type OrganizationModelTopology = z.infer<typeof OmTopologyDomainSchema>
11953
+ type OrganizationModelTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>
11954
+ type OrganizationModelTopologyRelationship = z.infer<typeof OmTopologyRelationshipSchema>
11955
+
10955
11956
  declare const CrmStageKeySchema = z.enum(crmStageKeys)
10956
11957
  declare const CrmStateKeySchema = z.enum(crmStateKeys)
10957
11958
  type CrmStageKey = z.infer<typeof CrmStageKeySchema>
@@ -10969,5 +11970,5 @@ declare const ListBuilderStageKeySchema: z.ZodEnum<{
10969
11970
  }>;
10970
11971
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
10971
11972
 
10972
- export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, CRM_PIPELINE_DEFINITION, CrmStageKeySchema, CrmStateKeySchema, DEFAULT_CRM_ACTIONS, EmailSchema, ExecutionError, LEAD_GEN_STAGE_CATALOG, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, deriveActions, validateResourceGovernance };
10973
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
11973
+ export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, CRM_PIPELINE_DEFINITION, CrmStageKeySchema, CrmStateKeySchema, DEFAULT_CRM_ACTIONS, EmailSchema, ExecutionError, LEAD_GEN_STAGE_CATALOG, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, defineResource, defineResourceOntology, defineResources, defineTopology, defineTopologyRelationship, deriveActions, parseTopologyNodeRef, topologyRef, topologyRelationship, validateResourceGovernance };
11974
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };