@elevasis/sdk 1.21.0 → 1.22.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 (160) hide show
  1. package/dist/cli.cjs +951 -171
  2. package/dist/index.d.ts +632 -341
  3. package/dist/index.js +3102 -142
  4. package/dist/node/index.d.ts +1 -0
  5. package/dist/node/index.js +19 -1
  6. package/dist/test-utils/index.d.ts +313 -4
  7. package/dist/test-utils/index.js +3246 -281
  8. package/dist/worker/index.js +3041 -80
  9. package/package.json +3 -3
  10. package/reference/claude-config/hooks/post-edit-validate.mjs +98 -98
  11. package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +188 -188
  12. package/reference/claude-config/hooks/tool-failure-recovery.mjs +73 -73
  13. package/reference/claude-config/registries/graph-skills.json +4 -4
  14. package/reference/claude-config/registries/knowledge-flags.json +0 -2
  15. package/reference/claude-config/rules/active-change-index.md +80 -80
  16. package/reference/claude-config/rules/agent-start-here.md +277 -277
  17. package/reference/claude-config/rules/deployment.md +57 -57
  18. package/reference/claude-config/rules/error-handling.md +56 -56
  19. package/reference/claude-config/rules/execution.md +40 -40
  20. package/reference/claude-config/rules/frontend.md +4 -4
  21. package/reference/claude-config/rules/observability.md +31 -31
  22. package/reference/claude-config/rules/operations.md +29 -17
  23. package/reference/claude-config/rules/organization-model.md +110 -84
  24. package/reference/claude-config/rules/organization-os.md +115 -113
  25. package/reference/claude-config/rules/package-taxonomy.md +33 -33
  26. package/reference/claude-config/rules/platform.md +42 -42
  27. package/reference/claude-config/rules/shared-types.md +49 -46
  28. package/reference/claude-config/rules/task-tracking.md +47 -47
  29. package/reference/claude-config/rules/ui.md +200 -200
  30. package/reference/claude-config/rules/vibe.md +235 -235
  31. package/reference/claude-config/scripts/statusline-command.js +18 -18
  32. package/reference/claude-config/settings.json +34 -34
  33. package/reference/claude-config/skills/deploy/{SKILL.md → skill.md} +156 -156
  34. package/reference/claude-config/skills/dsp/SKILL.md +66 -66
  35. package/reference/claude-config/skills/elevasis/SKILL.md +235 -235
  36. package/reference/claude-config/skills/explore/SKILL.md +6 -6
  37. package/reference/claude-config/skills/git-sync/SKILL.md +126 -126
  38. package/reference/claude-config/skills/knowledge/SKILL.md +314 -299
  39. package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +100 -100
  40. package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +159 -159
  41. package/reference/claude-config/skills/knowledge/operations/customers.md +109 -109
  42. package/reference/claude-config/skills/knowledge/operations/features.md +76 -76
  43. package/reference/claude-config/skills/knowledge/operations/goals.md +118 -118
  44. package/reference/claude-config/skills/knowledge/operations/identity.md +93 -93
  45. package/reference/claude-config/skills/knowledge/operations/labels.md +94 -94
  46. package/reference/claude-config/skills/knowledge/operations/offerings.md +109 -109
  47. package/reference/claude-config/skills/knowledge/operations/roles.md +99 -99
  48. package/reference/claude-config/skills/knowledge/operations/techStack.md +30 -30
  49. package/reference/claude-config/skills/project/SKILL.md +1088 -1088
  50. package/reference/claude-config/skills/run-ui/SKILL.md +73 -73
  51. package/reference/claude-config/skills/save/SKILL.md +3 -3
  52. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  53. package/reference/claude-config/skills/status/SKILL.md +59 -59
  54. package/reference/claude-config/skills/submit-request/SKILL.md +180 -180
  55. package/reference/claude-config/skills/sync/SKILL.md +47 -47
  56. package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
  57. package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
  58. package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
  59. package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
  60. package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -27
  61. package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -30
  62. package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -73
  63. package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +86 -86
  64. package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +55 -55
  65. package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +97 -97
  66. package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +112 -112
  67. package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -93
  68. package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +58 -58
  69. package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +56 -56
  70. package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +71 -71
  71. package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
  72. package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +59 -59
  73. package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -42
  74. package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -60
  75. package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -37
  76. package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -34
  77. package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -38
  78. package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -32
  79. package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -33
  80. package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -69
  81. package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -30
  82. package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +42 -0
  83. package/reference/claude-config/sync-notes/README.md +43 -43
  84. package/reference/cli.mdx +808 -808
  85. package/reference/concepts.mdx +146 -146
  86. package/reference/deployment/api.mdx +297 -297
  87. package/reference/deployment/command-center.mdx +209 -209
  88. package/reference/deployment/index.mdx +195 -195
  89. package/reference/deployment/provided-features.mdx +107 -107
  90. package/reference/deployment/ui-execution.mdx +250 -250
  91. package/reference/examples/organization-model.ts +146 -83
  92. package/reference/framework/agent.mdx +156 -156
  93. package/reference/framework/index.mdx +195 -195
  94. package/reference/framework/interaction-guidance.mdx +182 -182
  95. package/reference/framework/memory.mdx +326 -326
  96. package/reference/framework/project-structure.mdx +282 -282
  97. package/reference/framework/tutorial-system.mdx +135 -135
  98. package/reference/getting-started.mdx +142 -142
  99. package/reference/index.mdx +106 -106
  100. package/reference/packages/core/src/README.md +14 -14
  101. package/reference/packages/core/src/business/README.md +2 -2
  102. package/reference/packages/core/src/knowledge/README.md +32 -32
  103. package/reference/packages/core/src/organization-model/README.md +149 -149
  104. package/reference/packages/core/src/test-utils/README.md +37 -37
  105. package/reference/packages/ui/src/api/README.md +18 -18
  106. package/reference/packages/ui/src/app/README.md +24 -24
  107. package/reference/packages/ui/src/auth/README.md +18 -18
  108. package/reference/packages/ui/src/components/README.md +24 -24
  109. package/reference/packages/ui/src/execution/README.md +16 -16
  110. package/reference/packages/ui/src/features/README.md +28 -28
  111. package/reference/packages/ui/src/graph/README.md +16 -16
  112. package/reference/packages/ui/src/hooks/README.md +23 -23
  113. package/reference/packages/ui/src/initialization/README.md +19 -19
  114. package/reference/packages/ui/src/knowledge/README.md +31 -31
  115. package/reference/packages/ui/src/organization/README.md +18 -18
  116. package/reference/packages/ui/src/profile/README.md +19 -19
  117. package/reference/packages/ui/src/provider/README.md +32 -32
  118. package/reference/packages/ui/src/router/README.md +18 -18
  119. package/reference/packages/ui/src/sse/README.md +13 -13
  120. package/reference/packages/ui/src/test-utils/README.md +7 -7
  121. package/reference/packages/ui/src/theme/README.md +23 -23
  122. package/reference/packages/ui/src/theme/presets/README.md +19 -19
  123. package/reference/packages/ui/src/types/README.md +16 -16
  124. package/reference/packages/ui/src/utils/README.md +18 -18
  125. package/reference/packages/ui/src/zustand/README.md +18 -18
  126. package/reference/platform-tools/adapters-integration.mdx +301 -301
  127. package/reference/platform-tools/adapters-platform.mdx +553 -553
  128. package/reference/platform-tools/index.mdx +217 -217
  129. package/reference/platform-tools/type-safety.mdx +82 -82
  130. package/reference/resources/index.mdx +349 -349
  131. package/reference/resources/patterns.mdx +449 -449
  132. package/reference/resources/types.mdx +116 -116
  133. package/reference/roadmap.mdx +165 -165
  134. package/reference/runtime.mdx +173 -173
  135. package/reference/scaffold/core/organization-graph.mdx +110 -90
  136. package/reference/scaffold/core/organization-model.mdx +226 -219
  137. package/reference/scaffold/index.mdx +67 -67
  138. package/reference/scaffold/operations/propagation-pipeline.md +77 -77
  139. package/reference/scaffold/operations/scaffold-maintenance.md +12 -12
  140. package/reference/scaffold/operations/workflow-recipes.md +138 -138
  141. package/reference/scaffold/recipes/add-a-feature.md +308 -88
  142. package/reference/scaffold/recipes/add-a-resource.md +134 -110
  143. package/reference/scaffold/recipes/customize-knowledge-browser.md +5 -5
  144. package/reference/scaffold/recipes/customize-organization-model.md +273 -138
  145. package/reference/scaffold/recipes/extend-a-base-entity.md +8 -8
  146. package/reference/scaffold/recipes/extend-crm.md +3 -3
  147. package/reference/scaffold/recipes/extend-lead-gen.md +400 -400
  148. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +118 -118
  149. package/reference/scaffold/recipes/index.md +46 -46
  150. package/reference/scaffold/recipes/query-the-knowledge-graph.md +197 -170
  151. package/reference/scaffold/reference/contracts.md +2101 -2096
  152. package/reference/scaffold/reference/glossary.md +76 -76
  153. package/reference/scaffold/ui/composition-extensibility.mdx +233 -233
  154. package/reference/scaffold/ui/customization.md +243 -243
  155. package/reference/scaffold/ui/feature-flags-and-gating.md +46 -46
  156. package/reference/scaffold/ui/feature-shell.mdx +72 -72
  157. package/reference/scaffold/ui/recipes.md +221 -214
  158. package/reference/spine/spine-primer.md +96 -96
  159. package/reference/templates/index.mdx +47 -47
  160. package/reference/troubleshooting.mdx +223 -223
package/dist/index.d.ts CHANGED
@@ -517,6 +517,26 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
517
517
  active: "active";
518
518
  archived: "archived";
519
519
  }>;
520
+ ontology: z.ZodOptional<z.ZodObject<{
521
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
522
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
525
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
526
+ }, z.core.$strip>>;
527
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
528
+ path: z.ZodString;
529
+ role: z.ZodEnum<{
530
+ schema: "schema";
531
+ config: "config";
532
+ entrypoint: "entrypoint";
533
+ handler: "handler";
534
+ test: "test";
535
+ docs: "docs";
536
+ }>;
537
+ symbol: z.ZodOptional<z.ZodString>;
538
+ description: z.ZodOptional<z.ZodString>;
539
+ }, z.core.$strip>>>;
520
540
  kind: z.ZodLiteral<"workflow">;
521
541
  actionKey: z.ZodOptional<z.ZodString>;
522
542
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -542,6 +562,26 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
542
562
  active: "active";
543
563
  archived: "archived";
544
564
  }>;
565
+ ontology: z.ZodOptional<z.ZodObject<{
566
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
567
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
571
+ }, z.core.$strip>>;
572
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
573
+ path: z.ZodString;
574
+ role: z.ZodEnum<{
575
+ schema: "schema";
576
+ config: "config";
577
+ entrypoint: "entrypoint";
578
+ handler: "handler";
579
+ test: "test";
580
+ docs: "docs";
581
+ }>;
582
+ symbol: z.ZodOptional<z.ZodString>;
583
+ description: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strip>>>;
545
585
  kind: z.ZodLiteral<"agent">;
546
586
  agentKind: z.ZodEnum<{
547
587
  platform: "platform";
@@ -597,6 +637,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
597
637
  active: "active";
598
638
  archived: "archived";
599
639
  }>;
640
+ ontology: z.ZodOptional<z.ZodObject<{
641
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
642
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
643
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
644
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
645
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
646
+ }, z.core.$strip>>;
647
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
648
+ path: z.ZodString;
649
+ role: z.ZodEnum<{
650
+ schema: "schema";
651
+ config: "config";
652
+ entrypoint: "entrypoint";
653
+ handler: "handler";
654
+ test: "test";
655
+ docs: "docs";
656
+ }>;
657
+ symbol: z.ZodOptional<z.ZodString>;
658
+ description: z.ZodOptional<z.ZodString>;
659
+ }, z.core.$strip>>>;
600
660
  kind: z.ZodLiteral<"workflow">;
601
661
  actionKey: z.ZodOptional<z.ZodString>;
602
662
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -621,6 +681,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
621
681
  active: "active";
622
682
  archived: "archived";
623
683
  }>;
684
+ ontology: z.ZodOptional<z.ZodObject<{
685
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
686
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
687
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
689
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
690
+ }, z.core.$strip>>;
691
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
692
+ path: z.ZodString;
693
+ role: z.ZodEnum<{
694
+ schema: "schema";
695
+ config: "config";
696
+ entrypoint: "entrypoint";
697
+ handler: "handler";
698
+ test: "test";
699
+ docs: "docs";
700
+ }>;
701
+ symbol: z.ZodOptional<z.ZodString>;
702
+ description: z.ZodOptional<z.ZodString>;
703
+ }, z.core.$strip>>>;
624
704
  kind: z.ZodLiteral<"agent">;
625
705
  agentKind: z.ZodEnum<{
626
706
  platform: "platform";
@@ -675,6 +755,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
675
755
  active: "active";
676
756
  archived: "archived";
677
757
  }>;
758
+ ontology: z.ZodOptional<z.ZodObject<{
759
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
761
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
762
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
763
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
764
+ }, z.core.$strip>>;
765
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
766
+ path: z.ZodString;
767
+ role: z.ZodEnum<{
768
+ schema: "schema";
769
+ config: "config";
770
+ entrypoint: "entrypoint";
771
+ handler: "handler";
772
+ test: "test";
773
+ docs: "docs";
774
+ }>;
775
+ symbol: z.ZodOptional<z.ZodString>;
776
+ description: z.ZodOptional<z.ZodString>;
777
+ }, z.core.$strip>>>;
678
778
  kind: z.ZodLiteral<"integration">;
679
779
  provider: z.ZodString;
680
780
  }, z.core.$strip>, z.ZodObject<{
@@ -687,6 +787,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
687
787
  active: "active";
688
788
  archived: "archived";
689
789
  }>;
790
+ ontology: z.ZodOptional<z.ZodObject<{
791
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
792
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
794
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
795
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
796
+ }, z.core.$strip>>;
797
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
798
+ path: z.ZodString;
799
+ role: z.ZodEnum<{
800
+ schema: "schema";
801
+ config: "config";
802
+ entrypoint: "entrypoint";
803
+ handler: "handler";
804
+ test: "test";
805
+ docs: "docs";
806
+ }>;
807
+ symbol: z.ZodOptional<z.ZodString>;
808
+ description: z.ZodOptional<z.ZodString>;
809
+ }, z.core.$strip>>>;
690
810
  kind: z.ZodLiteral<"script">;
691
811
  language: z.ZodEnum<{
692
812
  shell: "shell";
@@ -708,6 +828,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
708
828
  active: "active";
709
829
  archived: "archived";
710
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>>>;
711
851
  kind: z.ZodLiteral<"workflow">;
712
852
  actionKey: z.ZodOptional<z.ZodString>;
713
853
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -732,6 +872,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
732
872
  active: "active";
733
873
  archived: "archived";
734
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>>>;
735
895
  kind: z.ZodLiteral<"agent">;
736
896
  agentKind: z.ZodEnum<{
737
897
  platform: "platform";
@@ -786,6 +946,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
786
946
  active: "active";
787
947
  archived: "archived";
788
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>>>;
789
969
  kind: z.ZodLiteral<"integration">;
790
970
  provider: z.ZodString;
791
971
  }, z.core.$strip>, z.ZodObject<{
@@ -798,6 +978,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
798
978
  active: "active";
799
979
  archived: "archived";
800
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>>>;
801
1001
  kind: z.ZodLiteral<"script">;
802
1002
  language: z.ZodEnum<{
803
1003
  shell: "shell";
@@ -4496,71 +4696,65 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
4496
4696
  description: z.ZodOptional<z.ZodString>;
4497
4697
  color: z.ZodOptional<z.ZodString>;
4498
4698
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4499
- "nav.dashboard": "nav.dashboard";
4500
- "nav.calendar": "nav.calendar";
4501
- "nav.sales": "nav.sales";
4502
- "nav.crm": "nav.crm";
4503
- "nav.lead-gen": "nav.lead-gen";
4504
- "nav.projects": "nav.projects";
4505
- "nav.operations": "nav.operations";
4506
- "nav.monitoring": "nav.monitoring";
4507
- "nav.knowledge": "nav.knowledge";
4508
- "nav.settings": "nav.settings";
4509
- "nav.admin": "nav.admin";
4510
- "nav.archive": "nav.archive";
4511
- "knowledge.playbook": "knowledge.playbook";
4512
- "knowledge.strategy": "knowledge.strategy";
4513
- "knowledge.reference": "knowledge.reference";
4514
- "feature.dashboard": "feature.dashboard";
4515
- "feature.calendar": "feature.calendar";
4516
- "feature.business": "feature.business";
4517
- "feature.sales": "feature.sales";
4518
- "feature.crm": "feature.crm";
4519
- "feature.finance": "feature.finance";
4520
- "feature.lead-gen": "feature.lead-gen";
4521
- "feature.platform": "feature.platform";
4522
- "feature.projects": "feature.projects";
4523
- "feature.operations": "feature.operations";
4524
- "feature.knowledge": "feature.knowledge";
4525
- "feature.monitoring": "feature.monitoring";
4526
- "feature.settings": "feature.settings";
4527
- "feature.admin": "feature.admin";
4528
- "feature.archive": "feature.archive";
4529
- "feature.seo": "feature.seo";
4530
- "resource.agent": "resource.agent";
4531
- "resource.workflow": "resource.workflow";
4532
- "resource.integration": "resource.integration";
4533
- "resource.database": "resource.database";
4534
- "resource.user": "resource.user";
4535
- "resource.team": "resource.team";
4536
- "integration.gmail": "integration.gmail";
4537
- "integration.google-sheets": "integration.google-sheets";
4538
- "integration.attio": "integration.attio";
4539
- "surface.dashboard": "surface.dashboard";
4540
- "surface.calendar": "surface.calendar";
4541
- "surface.overview": "surface.overview";
4542
- "surface.command-view": "surface.command-view";
4543
- "surface.command-queue": "surface.command-queue";
4544
- "surface.pipeline": "surface.pipeline";
4545
- "surface.lists": "surface.lists";
4546
- "surface.resources": "surface.resources";
4547
- "surface.settings": "surface.settings";
4548
- "status.success": "status.success";
4549
- "status.error": "status.error";
4550
- "status.warning": "status.warning";
4551
- "status.info": "status.info";
4552
- "status.pending": "status.pending";
4553
- "action.approve": "action.approve";
4554
- "action.reject": "action.reject";
4555
- "action.retry": "action.retry";
4556
- "action.edit": "action.edit";
4557
- "action.view": "action.view";
4558
- "action.launch": "action.launch";
4559
- "action.message": "action.message";
4560
- "action.escalate": "action.escalate";
4561
- "action.promote": "action.promote";
4562
- "action.submit": "action.submit";
4563
- "action.email": "action.email";
4699
+ message: "message";
4700
+ error: "error";
4701
+ agent: "agent";
4702
+ workflow: "workflow";
4703
+ "google-sheets": "google-sheets";
4704
+ dashboard: "dashboard";
4705
+ calendar: "calendar";
4706
+ sales: "sales";
4707
+ crm: "crm";
4708
+ "lead-gen": "lead-gen";
4709
+ projects: "projects";
4710
+ operations: "operations";
4711
+ monitoring: "monitoring";
4712
+ knowledge: "knowledge";
4713
+ settings: "settings";
4714
+ admin: "admin";
4715
+ archive: "archive";
4716
+ business: "business";
4717
+ finance: "finance";
4718
+ platform: "platform";
4719
+ seo: "seo";
4720
+ playbook: "playbook";
4721
+ strategy: "strategy";
4722
+ reference: "reference";
4723
+ integration: "integration";
4724
+ database: "database";
4725
+ user: "user";
4726
+ team: "team";
4727
+ gmail: "gmail";
4728
+ attio: "attio";
4729
+ overview: "overview";
4730
+ "command-view": "command-view";
4731
+ "command-queue": "command-queue";
4732
+ pipeline: "pipeline";
4733
+ lists: "lists";
4734
+ resources: "resources";
4735
+ approve: "approve";
4736
+ reject: "reject";
4737
+ retry: "retry";
4738
+ edit: "edit";
4739
+ view: "view";
4740
+ launch: "launch";
4741
+ escalate: "escalate";
4742
+ promote: "promote";
4743
+ submit: "submit";
4744
+ email: "email";
4745
+ success: "success";
4746
+ warning: "warning";
4747
+ info: "info";
4748
+ pending: "pending";
4749
+ bolt: "bolt";
4750
+ building: "building";
4751
+ briefcase: "briefcase";
4752
+ apps: "apps";
4753
+ graph: "graph";
4754
+ shield: "shield";
4755
+ users: "users";
4756
+ "chart-bar": "chart-bar";
4757
+ search: "search";
4564
4758
  }>, z.ZodString]>>;
4565
4759
  id: z.ZodString;
4566
4760
  primaryEntity: z.ZodEnum<{
@@ -4638,71 +4832,65 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4638
4832
  description: z.ZodOptional<z.ZodString>;
4639
4833
  color: z.ZodOptional<z.ZodString>;
4640
4834
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4641
- "nav.dashboard": "nav.dashboard";
4642
- "nav.calendar": "nav.calendar";
4643
- "nav.sales": "nav.sales";
4644
- "nav.crm": "nav.crm";
4645
- "nav.lead-gen": "nav.lead-gen";
4646
- "nav.projects": "nav.projects";
4647
- "nav.operations": "nav.operations";
4648
- "nav.monitoring": "nav.monitoring";
4649
- "nav.knowledge": "nav.knowledge";
4650
- "nav.settings": "nav.settings";
4651
- "nav.admin": "nav.admin";
4652
- "nav.archive": "nav.archive";
4653
- "knowledge.playbook": "knowledge.playbook";
4654
- "knowledge.strategy": "knowledge.strategy";
4655
- "knowledge.reference": "knowledge.reference";
4656
- "feature.dashboard": "feature.dashboard";
4657
- "feature.calendar": "feature.calendar";
4658
- "feature.business": "feature.business";
4659
- "feature.sales": "feature.sales";
4660
- "feature.crm": "feature.crm";
4661
- "feature.finance": "feature.finance";
4662
- "feature.lead-gen": "feature.lead-gen";
4663
- "feature.platform": "feature.platform";
4664
- "feature.projects": "feature.projects";
4665
- "feature.operations": "feature.operations";
4666
- "feature.knowledge": "feature.knowledge";
4667
- "feature.monitoring": "feature.monitoring";
4668
- "feature.settings": "feature.settings";
4669
- "feature.admin": "feature.admin";
4670
- "feature.archive": "feature.archive";
4671
- "feature.seo": "feature.seo";
4672
- "resource.agent": "resource.agent";
4673
- "resource.workflow": "resource.workflow";
4674
- "resource.integration": "resource.integration";
4675
- "resource.database": "resource.database";
4676
- "resource.user": "resource.user";
4677
- "resource.team": "resource.team";
4678
- "integration.gmail": "integration.gmail";
4679
- "integration.google-sheets": "integration.google-sheets";
4680
- "integration.attio": "integration.attio";
4681
- "surface.dashboard": "surface.dashboard";
4682
- "surface.calendar": "surface.calendar";
4683
- "surface.overview": "surface.overview";
4684
- "surface.command-view": "surface.command-view";
4685
- "surface.command-queue": "surface.command-queue";
4686
- "surface.pipeline": "surface.pipeline";
4687
- "surface.lists": "surface.lists";
4688
- "surface.resources": "surface.resources";
4689
- "surface.settings": "surface.settings";
4690
- "status.success": "status.success";
4691
- "status.error": "status.error";
4692
- "status.warning": "status.warning";
4693
- "status.info": "status.info";
4694
- "status.pending": "status.pending";
4695
- "action.approve": "action.approve";
4696
- "action.reject": "action.reject";
4697
- "action.retry": "action.retry";
4698
- "action.edit": "action.edit";
4699
- "action.view": "action.view";
4700
- "action.launch": "action.launch";
4701
- "action.message": "action.message";
4702
- "action.escalate": "action.escalate";
4703
- "action.promote": "action.promote";
4704
- "action.submit": "action.submit";
4705
- "action.email": "action.email";
4835
+ message: "message";
4836
+ error: "error";
4837
+ agent: "agent";
4838
+ workflow: "workflow";
4839
+ "google-sheets": "google-sheets";
4840
+ dashboard: "dashboard";
4841
+ calendar: "calendar";
4842
+ sales: "sales";
4843
+ crm: "crm";
4844
+ "lead-gen": "lead-gen";
4845
+ projects: "projects";
4846
+ operations: "operations";
4847
+ monitoring: "monitoring";
4848
+ knowledge: "knowledge";
4849
+ settings: "settings";
4850
+ admin: "admin";
4851
+ archive: "archive";
4852
+ business: "business";
4853
+ finance: "finance";
4854
+ platform: "platform";
4855
+ seo: "seo";
4856
+ playbook: "playbook";
4857
+ strategy: "strategy";
4858
+ reference: "reference";
4859
+ integration: "integration";
4860
+ database: "database";
4861
+ user: "user";
4862
+ team: "team";
4863
+ gmail: "gmail";
4864
+ attio: "attio";
4865
+ overview: "overview";
4866
+ "command-view": "command-view";
4867
+ "command-queue": "command-queue";
4868
+ pipeline: "pipeline";
4869
+ lists: "lists";
4870
+ resources: "resources";
4871
+ approve: "approve";
4872
+ reject: "reject";
4873
+ retry: "retry";
4874
+ edit: "edit";
4875
+ view: "view";
4876
+ launch: "launch";
4877
+ escalate: "escalate";
4878
+ promote: "promote";
4879
+ submit: "submit";
4880
+ email: "email";
4881
+ success: "success";
4882
+ warning: "warning";
4883
+ info: "info";
4884
+ pending: "pending";
4885
+ bolt: "bolt";
4886
+ building: "building";
4887
+ briefcase: "briefcase";
4888
+ apps: "apps";
4889
+ graph: "graph";
4890
+ shield: "shield";
4891
+ users: "users";
4892
+ "chart-bar": "chart-bar";
4893
+ search: "search";
4706
4894
  }>, z.ZodString]>>;
4707
4895
  id: z.ZodString;
4708
4896
  steps: z.ZodArray<z.ZodObject<{
@@ -4710,71 +4898,65 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4710
4898
  description: z.ZodOptional<z.ZodString>;
4711
4899
  color: z.ZodOptional<z.ZodString>;
4712
4900
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4713
- "nav.dashboard": "nav.dashboard";
4714
- "nav.calendar": "nav.calendar";
4715
- "nav.sales": "nav.sales";
4716
- "nav.crm": "nav.crm";
4717
- "nav.lead-gen": "nav.lead-gen";
4718
- "nav.projects": "nav.projects";
4719
- "nav.operations": "nav.operations";
4720
- "nav.monitoring": "nav.monitoring";
4721
- "nav.knowledge": "nav.knowledge";
4722
- "nav.settings": "nav.settings";
4723
- "nav.admin": "nav.admin";
4724
- "nav.archive": "nav.archive";
4725
- "knowledge.playbook": "knowledge.playbook";
4726
- "knowledge.strategy": "knowledge.strategy";
4727
- "knowledge.reference": "knowledge.reference";
4728
- "feature.dashboard": "feature.dashboard";
4729
- "feature.calendar": "feature.calendar";
4730
- "feature.business": "feature.business";
4731
- "feature.sales": "feature.sales";
4732
- "feature.crm": "feature.crm";
4733
- "feature.finance": "feature.finance";
4734
- "feature.lead-gen": "feature.lead-gen";
4735
- "feature.platform": "feature.platform";
4736
- "feature.projects": "feature.projects";
4737
- "feature.operations": "feature.operations";
4738
- "feature.knowledge": "feature.knowledge";
4739
- "feature.monitoring": "feature.monitoring";
4740
- "feature.settings": "feature.settings";
4741
- "feature.admin": "feature.admin";
4742
- "feature.archive": "feature.archive";
4743
- "feature.seo": "feature.seo";
4744
- "resource.agent": "resource.agent";
4745
- "resource.workflow": "resource.workflow";
4746
- "resource.integration": "resource.integration";
4747
- "resource.database": "resource.database";
4748
- "resource.user": "resource.user";
4749
- "resource.team": "resource.team";
4750
- "integration.gmail": "integration.gmail";
4751
- "integration.google-sheets": "integration.google-sheets";
4752
- "integration.attio": "integration.attio";
4753
- "surface.dashboard": "surface.dashboard";
4754
- "surface.calendar": "surface.calendar";
4755
- "surface.overview": "surface.overview";
4756
- "surface.command-view": "surface.command-view";
4757
- "surface.command-queue": "surface.command-queue";
4758
- "surface.pipeline": "surface.pipeline";
4759
- "surface.lists": "surface.lists";
4760
- "surface.resources": "surface.resources";
4761
- "surface.settings": "surface.settings";
4762
- "status.success": "status.success";
4763
- "status.error": "status.error";
4764
- "status.warning": "status.warning";
4765
- "status.info": "status.info";
4766
- "status.pending": "status.pending";
4767
- "action.approve": "action.approve";
4768
- "action.reject": "action.reject";
4769
- "action.retry": "action.retry";
4770
- "action.edit": "action.edit";
4771
- "action.view": "action.view";
4772
- "action.launch": "action.launch";
4773
- "action.message": "action.message";
4774
- "action.escalate": "action.escalate";
4775
- "action.promote": "action.promote";
4776
- "action.submit": "action.submit";
4777
- "action.email": "action.email";
4901
+ message: "message";
4902
+ error: "error";
4903
+ agent: "agent";
4904
+ workflow: "workflow";
4905
+ "google-sheets": "google-sheets";
4906
+ dashboard: "dashboard";
4907
+ calendar: "calendar";
4908
+ sales: "sales";
4909
+ crm: "crm";
4910
+ "lead-gen": "lead-gen";
4911
+ projects: "projects";
4912
+ operations: "operations";
4913
+ monitoring: "monitoring";
4914
+ knowledge: "knowledge";
4915
+ settings: "settings";
4916
+ admin: "admin";
4917
+ archive: "archive";
4918
+ business: "business";
4919
+ finance: "finance";
4920
+ platform: "platform";
4921
+ seo: "seo";
4922
+ playbook: "playbook";
4923
+ strategy: "strategy";
4924
+ reference: "reference";
4925
+ integration: "integration";
4926
+ database: "database";
4927
+ user: "user";
4928
+ team: "team";
4929
+ gmail: "gmail";
4930
+ attio: "attio";
4931
+ overview: "overview";
4932
+ "command-view": "command-view";
4933
+ "command-queue": "command-queue";
4934
+ pipeline: "pipeline";
4935
+ lists: "lists";
4936
+ resources: "resources";
4937
+ approve: "approve";
4938
+ reject: "reject";
4939
+ retry: "retry";
4940
+ edit: "edit";
4941
+ view: "view";
4942
+ launch: "launch";
4943
+ escalate: "escalate";
4944
+ promote: "promote";
4945
+ submit: "submit";
4946
+ email: "email";
4947
+ success: "success";
4948
+ warning: "warning";
4949
+ info: "info";
4950
+ pending: "pending";
4951
+ bolt: "bolt";
4952
+ building: "building";
4953
+ briefcase: "briefcase";
4954
+ apps: "apps";
4955
+ graph: "graph";
4956
+ shield: "shield";
4957
+ users: "users";
4958
+ "chart-bar": "chart-bar";
4959
+ search: "search";
4778
4960
  }>, z.ZodString]>>;
4779
4961
  id: z.ZodString;
4780
4962
  primaryEntity: z.ZodEnum<{
@@ -4936,8 +5118,8 @@ declare const DealSchemas: {
4936
5118
  title: z.ZodString;
4937
5119
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4938
5120
  kind: z.ZodOptional<z.ZodEnum<{
4939
- other: "other";
4940
5121
  email: "email";
5122
+ other: "other";
4941
5123
  call: "call";
4942
5124
  meeting: "meeting";
4943
5125
  }>>;
@@ -5277,8 +5459,8 @@ declare const DealSchemas: {
5277
5459
  title: z.ZodString;
5278
5460
  description: z.ZodNullable<z.ZodString>;
5279
5461
  kind: z.ZodEnum<{
5280
- other: "other";
5281
5462
  email: "email";
5463
+ other: "other";
5282
5464
  call: "call";
5283
5465
  meeting: "meeting";
5284
5466
  }>;
@@ -5297,8 +5479,8 @@ declare const DealSchemas: {
5297
5479
  title: z.ZodString;
5298
5480
  description: z.ZodNullable<z.ZodString>;
5299
5481
  kind: z.ZodEnum<{
5300
- other: "other";
5301
5482
  email: "email";
5483
+ other: "other";
5302
5484
  call: "call";
5303
5485
  meeting: "meeting";
5304
5486
  }>;
@@ -6337,6 +6519,100 @@ type DealActionInput = AcqDealRow & {
6337
6519
  declare const DEFAULT_CRM_ACTIONS: ActionDef[];
6338
6520
  declare function deriveActions(deal: DealActionInput, actions?: ActionDef[]): Action[];
6339
6521
 
6522
+ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
6523
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6524
+ id: z.ZodString;
6525
+ label: z.ZodOptional<z.ZodString>;
6526
+ description: z.ZodOptional<z.ZodString>;
6527
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6528
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6529
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6530
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6531
+ }, z.core.$loose>>>>;
6532
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6533
+ id: z.ZodString;
6534
+ label: z.ZodOptional<z.ZodString>;
6535
+ description: z.ZodOptional<z.ZodString>;
6536
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6537
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6538
+ from: z.ZodString;
6539
+ to: z.ZodString;
6540
+ cardinality: z.ZodOptional<z.ZodString>;
6541
+ via: z.ZodOptional<z.ZodString>;
6542
+ }, z.core.$loose>>>>;
6543
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6544
+ id: z.ZodString;
6545
+ label: z.ZodOptional<z.ZodString>;
6546
+ description: z.ZodOptional<z.ZodString>;
6547
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6548
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6549
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6550
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6551
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6552
+ }, z.core.$loose>>>>;
6553
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6554
+ id: z.ZodString;
6555
+ label: z.ZodOptional<z.ZodString>;
6556
+ description: z.ZodOptional<z.ZodString>;
6557
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6558
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6559
+ kind: z.ZodOptional<z.ZodString>;
6560
+ appliesTo: z.ZodOptional<z.ZodString>;
6561
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6562
+ }, z.core.$loose>>>>;
6563
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6564
+ id: z.ZodString;
6565
+ label: z.ZodOptional<z.ZodString>;
6566
+ description: z.ZodOptional<z.ZodString>;
6567
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6568
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6569
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6570
+ }, z.core.$loose>>>>;
6571
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6572
+ id: z.ZodString;
6573
+ label: z.ZodOptional<z.ZodString>;
6574
+ description: z.ZodOptional<z.ZodString>;
6575
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6576
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6577
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6578
+ }, z.core.$loose>>>>;
6579
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6580
+ id: z.ZodString;
6581
+ label: z.ZodOptional<z.ZodString>;
6582
+ description: z.ZodOptional<z.ZodString>;
6583
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6584
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6585
+ primitive: z.ZodOptional<z.ZodString>;
6586
+ }, z.core.$loose>>>>;
6587
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6588
+ id: z.ZodString;
6589
+ label: z.ZodOptional<z.ZodString>;
6590
+ description: z.ZodOptional<z.ZodString>;
6591
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6592
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6593
+ valueType: z.ZodOptional<z.ZodString>;
6594
+ searchable: z.ZodOptional<z.ZodBoolean>;
6595
+ pii: z.ZodOptional<z.ZodBoolean>;
6596
+ }, z.core.$loose>>>>;
6597
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6598
+ id: z.ZodString;
6599
+ label: z.ZodOptional<z.ZodString>;
6600
+ description: z.ZodOptional<z.ZodString>;
6601
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6602
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6603
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6604
+ }, z.core.$loose>>>>;
6605
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6606
+ id: z.ZodString;
6607
+ label: z.ZodOptional<z.ZodString>;
6608
+ description: z.ZodOptional<z.ZodString>;
6609
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6610
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6611
+ route: z.ZodOptional<z.ZodString>;
6612
+ }, z.core.$loose>>>>;
6613
+ }, z.core.$strip>>;
6614
+ type OntologyScope = z.infer<typeof OntologyScopeSchema>;
6615
+
6340
6616
  /**
6341
6617
  * A single CRM activity entry (note, stage change, or deal creation).
6342
6618
  * Matches the CrmActivityEntry interface from useRecentCrmActivity.ts.
@@ -9614,6 +9890,10 @@ declare const ContentNodeSchema: z.ZodObject<{
9614
9890
  }, z.core.$strip>;
9615
9891
  type ContentNode = z.infer<typeof ContentNodeSchema>;
9616
9892
 
9893
+ type JsonPrimitive = string | number | boolean | null;
9894
+ type JsonValue = JsonPrimitive | JsonValue[] | {
9895
+ [key: string]: JsonValue;
9896
+ };
9617
9897
  /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
9618
9898
  interface SystemEntry {
9619
9899
  id: string;
@@ -9648,6 +9928,13 @@ interface SystemEntry {
9648
9928
  devOnly?: boolean;
9649
9929
  requiresAdmin?: boolean;
9650
9930
  order: number;
9931
+ config?: Record<string, JsonValue>;
9932
+ ontology?: OntologyScope;
9933
+ systems?: Record<string, SystemEntry>;
9934
+ /**
9935
+ * @deprecated Compatibility-only bridge for old tenant data and migration readers.
9936
+ * Author new semantic catalogs in `ontology` and local settings in `config`.
9937
+ */
9651
9938
  content?: Record<string, ContentNode>;
9652
9939
  subsystems?: Record<string, SystemEntry>;
9653
9940
  }
@@ -10038,6 +10325,10 @@ declare const LinkSchema: z.ZodObject<{
10038
10325
  kind: z.ZodEnum<{
10039
10326
  links: "links";
10040
10327
  affects: "affects";
10328
+ effects: "effects";
10329
+ implements: "implements";
10330
+ reads: "reads";
10331
+ writes: "writes";
10041
10332
  emits: "emits";
10042
10333
  contains: "contains";
10043
10334
  references: "references";
@@ -10047,7 +10338,7 @@ declare const LinkSchema: z.ZodObject<{
10047
10338
  originates_from: "originates_from";
10048
10339
  triggers: "triggers";
10049
10340
  applies_to: "applies_to";
10050
- effects: "effects";
10341
+ uses_catalog: "uses_catalog";
10051
10342
  }>;
10052
10343
  }, z.core.$strip>;
10053
10344
  type Link = z.infer<typeof LinkSchema>;
@@ -10520,150 +10811,150 @@ declare class ToolingError extends ExecutionError {
10520
10811
  constructor(errorType: string, message: string, details?: unknown);
10521
10812
  }
10522
10813
 
10523
- // ============================================================================
10524
- // Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
10525
- //
10526
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
10527
- // entities that carry the Stateful trait via Track B:
10528
- // - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
10529
- // - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10530
- // - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10531
- //
10532
- // DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
10533
- // CHECK constraint — new states can be introduced without a migration (Decision N8).
10534
- // These definitions are the org-specific source of truth consumed by UI and tooling.
10535
- //
10536
- // State vocabularies sourced from the post-restructure sales tree (W3 canonical):
10537
- // outreach/:
10538
- // - personalized (instantly-personalization.ts → contacts)
10539
- // - uploaded (instantly-upload.ts → contacts)
10540
- // - interested (instantly-reply-handler.ts → contacts, initial reply transition)
10541
- // prospecting/:
10542
- // - populated (apify-acquire.ts, apify-scrape.ts → companies)
10543
- // - crawled (apify-website-crawl.ts → companies)
10544
- // - extracted (website-extract.ts → companies)
10545
- // - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
10546
- // - verified (email-verification.ts → contacts)
10547
- // qualification/:
10548
- // - qualified (company-qualification.ts → companies)
10549
- //
10550
- // The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
10551
- // It is valid in any stage and represents "not yet processed by a workflow step".
10552
- // ============================================================================
10553
-
10554
- /** One state within a stage — minimal shape: key + display label. */
10555
- interface StatefulStateDefinition {
10556
- /** Matches state_key values written by workflow steps. */
10557
- stateKey: string
10558
- label: string
10559
- }
10560
-
10561
- /** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
10562
- interface StatefulStageDefinition {
10563
- /** Matches stage_key values written by workflow steps. */
10564
- stageKey: string
10565
- label: string
10566
- /** UI color token. Consumers may map this to their design system. */
10567
- color?: string
10568
- states: StatefulStateDefinition[]
10569
- }
10570
-
10571
- /**
10572
- * Pipeline definition for a single entity participating in the Stateful trait.
10573
- * Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
10574
- */
10575
- interface StatefulPipelineDefinition {
10576
- /** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
10577
- pipelineKey: string
10578
- label: string
10579
- /** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
10580
- entityKey: string
10581
- stages: StatefulStageDefinition[]
10582
- }
10583
-
10584
- // ============================================================================
10585
- // CRM Stateful Pipeline Definition
10586
- //
10587
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
10588
- // entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
10589
- //
10590
- // State vocabularies sourced from the CRM action/handler tree:
10591
- // interested/:
10592
- // - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
10593
- // - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
10594
- // - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
10595
- // - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
10596
- // - reply_sent (crm-send-reply.ts → operator reply sent)
10597
- // - followup_1_sent (crm-reply-followup.ts day=3)
10598
- // - followup_2_sent (crm-reply-followup.ts day=5)
10599
- // - followup_3_sent (crm-reply-followup.ts day=7)
10600
- // proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
10601
- // ============================================================================
10602
-
10603
- declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
10604
- stateKey: 'discovery_replied',
10605
- label: 'Discovery Replied'
10606
- }
10607
- declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
10608
- stateKey: 'discovery_link_sent',
10609
- label: 'Discovery Link Sent'
10610
- }
10611
- declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
10612
- stateKey: 'discovery_nudging',
10613
- label: 'Discovery Nudging'
10614
- }
10615
- declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
10616
- stateKey: 'discovery_booking_cancelled',
10617
- label: 'Discovery Booking Cancelled'
10618
- }
10619
- declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
10620
- stateKey: 'reply_sent',
10621
- label: 'Reply Sent'
10622
- }
10623
- declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
10624
- stateKey: 'followup_1_sent',
10625
- label: 'Follow-up 1 Sent'
10626
- }
10627
- declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
10628
- stateKey: 'followup_2_sent',
10629
- label: 'Follow-up 2 Sent'
10630
- }
10631
- declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
10632
- stateKey: 'followup_3_sent',
10633
- label: 'Follow-up 3 Sent'
10634
- }
10635
-
10636
- declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
10637
- pipelineKey: 'crm',
10638
- label: 'CRM',
10639
- entityKey: 'crm.deal',
10640
- stages: [
10641
- {
10642
- stageKey: 'interested',
10643
- label: 'Interested',
10644
- color: 'blue',
10645
- states: [
10646
- CRM_DISCOVERY_REPLIED_STATE,
10647
- CRM_DISCOVERY_LINK_SENT_STATE,
10648
- CRM_DISCOVERY_NUDGING_STATE,
10649
- CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
10650
- CRM_REPLY_SENT_STATE,
10651
- CRM_FOLLOWUP_1_SENT_STATE,
10652
- CRM_FOLLOWUP_2_SENT_STATE,
10653
- CRM_FOLLOWUP_3_SENT_STATE
10654
- ]
10655
- },
10656
- { stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
10657
- { stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
10658
- { stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
10659
- { stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
10660
- { stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
10661
- ]
10814
+ // ============================================================================
10815
+ // Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
10816
+ //
10817
+ // Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
10818
+ // entities that carry the Stateful trait via Track B:
10819
+ // - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
10820
+ // - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10821
+ // - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10822
+ //
10823
+ // DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
10824
+ // CHECK constraint — new states can be introduced without a migration (Decision N8).
10825
+ // These definitions are the org-specific source of truth consumed by UI and tooling.
10826
+ //
10827
+ // State vocabularies sourced from the post-restructure sales tree (W3 canonical):
10828
+ // outreach/:
10829
+ // - personalized (instantly-personalization.ts → contacts)
10830
+ // - uploaded (instantly-upload.ts → contacts)
10831
+ // - interested (instantly-reply-handler.ts → contacts, initial reply transition)
10832
+ // prospecting/:
10833
+ // - populated (apify-acquire.ts, apify-scrape.ts → companies)
10834
+ // - crawled (apify-website-crawl.ts → companies)
10835
+ // - extracted (website-extract.ts → companies)
10836
+ // - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
10837
+ // - verified (email-verification.ts → contacts)
10838
+ // qualification/:
10839
+ // - qualified (company-qualification.ts → companies)
10840
+ //
10841
+ // The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
10842
+ // It is valid in any stage and represents "not yet processed by a workflow step".
10843
+ // ============================================================================
10844
+
10845
+ /** One state within a stage — minimal shape: key + display label. */
10846
+ interface StatefulStateDefinition {
10847
+ /** Matches state_key values written by workflow steps. */
10848
+ stateKey: string
10849
+ label: string
10850
+ }
10851
+
10852
+ /** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
10853
+ interface StatefulStageDefinition {
10854
+ /** Matches stage_key values written by workflow steps. */
10855
+ stageKey: string
10856
+ label: string
10857
+ /** UI color token. Consumers may map this to their design system. */
10858
+ color?: string
10859
+ states: StatefulStateDefinition[]
10860
+ }
10861
+
10862
+ /**
10863
+ * Pipeline definition for a single entity participating in the Stateful trait.
10864
+ * Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
10865
+ */
10866
+ interface StatefulPipelineDefinition {
10867
+ /** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
10868
+ pipelineKey: string
10869
+ label: string
10870
+ /** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
10871
+ entityKey: string
10872
+ stages: StatefulStageDefinition[]
10873
+ }
10874
+
10875
+ // ============================================================================
10876
+ // CRM Stateful Pipeline Definition
10877
+ //
10878
+ // Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
10879
+ // entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
10880
+ //
10881
+ // State vocabularies sourced from the CRM action/handler tree:
10882
+ // interested/:
10883
+ // - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
10884
+ // - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
10885
+ // - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
10886
+ // - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
10887
+ // - reply_sent (crm-send-reply.ts → operator reply sent)
10888
+ // - followup_1_sent (crm-reply-followup.ts day=3)
10889
+ // - followup_2_sent (crm-reply-followup.ts day=5)
10890
+ // - followup_3_sent (crm-reply-followup.ts day=7)
10891
+ // proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
10892
+ // ============================================================================
10893
+
10894
+ declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
10895
+ stateKey: 'discovery_replied',
10896
+ label: 'Discovery Replied'
10897
+ }
10898
+ declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
10899
+ stateKey: 'discovery_link_sent',
10900
+ label: 'Discovery Link Sent'
10901
+ }
10902
+ declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
10903
+ stateKey: 'discovery_nudging',
10904
+ label: 'Discovery Nudging'
10905
+ }
10906
+ declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
10907
+ stateKey: 'discovery_booking_cancelled',
10908
+ label: 'Discovery Booking Cancelled'
10909
+ }
10910
+ declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
10911
+ stateKey: 'reply_sent',
10912
+ label: 'Reply Sent'
10913
+ }
10914
+ declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
10915
+ stateKey: 'followup_1_sent',
10916
+ label: 'Follow-up 1 Sent'
10917
+ }
10918
+ declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
10919
+ stateKey: 'followup_2_sent',
10920
+ label: 'Follow-up 2 Sent'
10921
+ }
10922
+ declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
10923
+ stateKey: 'followup_3_sent',
10924
+ label: 'Follow-up 3 Sent'
10925
+ }
10926
+
10927
+ declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
10928
+ pipelineKey: 'crm',
10929
+ label: 'CRM',
10930
+ entityKey: 'crm.deal',
10931
+ stages: [
10932
+ {
10933
+ stageKey: 'interested',
10934
+ label: 'Interested',
10935
+ color: 'blue',
10936
+ states: [
10937
+ CRM_DISCOVERY_REPLIED_STATE,
10938
+ CRM_DISCOVERY_LINK_SENT_STATE,
10939
+ CRM_DISCOVERY_NUDGING_STATE,
10940
+ CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
10941
+ CRM_REPLY_SENT_STATE,
10942
+ CRM_FOLLOWUP_1_SENT_STATE,
10943
+ CRM_FOLLOWUP_2_SENT_STATE,
10944
+ CRM_FOLLOWUP_3_SENT_STATE
10945
+ ]
10946
+ },
10947
+ { stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
10948
+ { stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
10949
+ { stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
10950
+ { stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
10951
+ { stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
10952
+ ]
10662
10953
  }
10663
10954
 
10664
- declare const CrmStageKeySchema = z.enum(crmStageKeys)
10665
- declare const CrmStateKeySchema = z.enum(crmStateKeys)
10666
- type CrmStageKey = z.infer<typeof CrmStageKeySchema>
10955
+ declare const CrmStageKeySchema = z.enum(crmStageKeys)
10956
+ declare const CrmStateKeySchema = z.enum(crmStateKeys)
10957
+ type CrmStageKey = z.infer<typeof CrmStageKeySchema>
10667
10958
  type CrmStateKey = z.infer<typeof CrmStateKeySchema>
10668
10959
 
10669
10960
  /**