@elevasis/core 0.23.0 → 0.24.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 (241) hide show
  1. package/dist/index.d.ts +1326 -552
  2. package/dist/index.js +869 -154
  3. package/dist/knowledge/index.d.ts +487 -209
  4. package/dist/knowledge/index.js +104 -1
  5. package/dist/organization-model/index.d.ts +1326 -552
  6. package/dist/organization-model/index.js +869 -154
  7. package/dist/test-utils/index.d.ts +357 -72
  8. package/dist/test-utils/index.js +795 -142
  9. package/package.json +5 -5
  10. package/src/README.md +14 -14
  11. package/src/__tests__/publish.test.ts +24 -24
  12. package/src/__tests__/template-core-compatibility.test.ts +9 -12
  13. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2102 -2096
  14. package/src/_gen/__tests__/scaffold-contracts.test.ts +30 -30
  15. package/src/auth/multi-tenancy/credentials/__tests__/encryption.test.ts +217 -217
  16. package/src/auth/multi-tenancy/credentials/server/encryption.ts +69 -69
  17. package/src/auth/multi-tenancy/credentials/server/kek-loader.ts +37 -37
  18. package/src/auth/multi-tenancy/index.ts +26 -26
  19. package/src/auth/multi-tenancy/invitations/api-schemas.ts +104 -104
  20. package/src/auth/multi-tenancy/memberships/api-schemas.ts +143 -143
  21. package/src/auth/multi-tenancy/memberships/index.ts +26 -26
  22. package/src/auth/multi-tenancy/memberships/membership.ts +130 -130
  23. package/src/auth/multi-tenancy/organizations/__tests__/api-schemas.test.ts +194 -194
  24. package/src/auth/multi-tenancy/organizations/api-schemas.ts +136 -136
  25. package/src/auth/multi-tenancy/permissions.test.ts +42 -42
  26. package/src/auth/multi-tenancy/permissions.ts +123 -123
  27. package/src/auth/multi-tenancy/role-management/api-schemas.ts +78 -78
  28. package/src/auth/multi-tenancy/role-management/index.ts +16 -16
  29. package/src/auth/multi-tenancy/theme-presets.ts +45 -45
  30. package/src/auth/multi-tenancy/types.ts +57 -57
  31. package/src/auth/multi-tenancy/users/api-schemas.ts +165 -165
  32. package/src/business/README.md +2 -2
  33. package/src/business/acquisition/activity-events.test.ts +250 -250
  34. package/src/business/acquisition/activity-events.ts +93 -93
  35. package/src/business/acquisition/api-schemas.test.ts +1883 -1843
  36. package/src/business/acquisition/api-schemas.ts +1492 -1497
  37. package/src/business/acquisition/build-templates.test.ts +240 -240
  38. package/src/business/acquisition/build-templates.ts +98 -98
  39. package/src/business/acquisition/crm-next-action.test.ts +262 -262
  40. package/src/business/acquisition/crm-next-action.ts +220 -220
  41. package/src/business/acquisition/crm-priority.test.ts +216 -216
  42. package/src/business/acquisition/crm-priority.ts +349 -349
  43. package/src/business/acquisition/crm-state-actions.test.ts +153 -153
  44. package/src/business/acquisition/deal-ownership.test.ts +351 -351
  45. package/src/business/acquisition/deal-ownership.ts +120 -120
  46. package/src/business/acquisition/derive-actions.test.ts +129 -104
  47. package/src/business/acquisition/derive-actions.ts +74 -84
  48. package/src/business/acquisition/index.ts +171 -170
  49. package/src/business/acquisition/ontology-validation.ts +309 -0
  50. package/src/business/acquisition/stateful.ts +30 -30
  51. package/src/business/acquisition/types.ts +396 -396
  52. package/src/business/clients/api-schemas.test.ts +115 -115
  53. package/src/business/clients/api-schemas.ts +158 -158
  54. package/src/business/clients/index.ts +1 -1
  55. package/src/business/crm/api-schemas.ts +40 -40
  56. package/src/business/crm/index.ts +1 -1
  57. package/src/business/deals/api-schemas.ts +87 -87
  58. package/src/business/deals/index.ts +1 -1
  59. package/src/business/index.ts +5 -5
  60. package/src/business/projects/types.ts +144 -144
  61. package/src/commands/queue/types/task.ts +15 -15
  62. package/src/execution/core/runner-types.ts +61 -61
  63. package/src/execution/core/sse-executions.ts +7 -7
  64. package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -10
  65. package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -16
  66. package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -4
  67. package/src/execution/engine/agent/core/types.ts +25 -25
  68. package/src/execution/engine/agent/index.ts +6 -6
  69. package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -24
  70. package/src/execution/engine/index.ts +443 -443
  71. package/src/execution/engine/tools/integration/server/adapters/apify/__tests__/apify-run-actor.integration.test.ts +298 -298
  72. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -55
  73. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -107
  74. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -48
  75. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -99
  76. package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -1
  77. package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -363
  78. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -162
  79. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -316
  80. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -18
  81. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -194
  82. package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -7
  83. package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -204
  84. package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-tools.ts +105 -105
  85. package/src/execution/engine/tools/integration/server/adapters/google-calendar/google-calendar-adapter.ts +428 -428
  86. package/src/execution/engine/tools/integration/server/adapters/google-calendar/index.ts +2 -2
  87. package/src/execution/engine/tools/integration/server/adapters/google-sheets/__tests__/google-sheets.integration.test.ts +261 -261
  88. package/src/execution/engine/tools/integration/server/adapters/instantly/instantly-tools.ts +1474 -1474
  89. package/src/execution/engine/tools/integration/server/adapters/millionverifier/millionverifier-tools.ts +103 -103
  90. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -88
  91. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -141
  92. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -76
  93. package/src/execution/engine/tools/integration/server/adapters/signature-api/signature-api-tools.ts +182 -182
  94. package/src/execution/engine/tools/integration/server/adapters/stripe/stripe-tools.ts +310 -310
  95. package/src/execution/engine/tools/integration/service.test.ts +239 -239
  96. package/src/execution/engine/tools/integration/service.ts +172 -172
  97. package/src/execution/engine/tools/integration/tool.ts +255 -255
  98. package/src/execution/engine/tools/lead-service-types.ts +1005 -1005
  99. package/src/execution/engine/tools/messages.ts +43 -43
  100. package/src/execution/engine/tools/platform/acquisition/company-tools.ts +7 -7
  101. package/src/execution/engine/tools/platform/acquisition/contact-tools.ts +6 -6
  102. package/src/execution/engine/tools/platform/acquisition/list-tools.ts +6 -6
  103. package/src/execution/engine/tools/platform/acquisition/types.ts +280 -280
  104. package/src/execution/engine/tools/platform/email/types.ts +97 -97
  105. package/src/execution/engine/tools/registry.ts +704 -704
  106. package/src/execution/engine/tools/tool-maps.ts +831 -831
  107. package/src/execution/engine/tools/types.ts +234 -234
  108. package/src/execution/engine/workflow/types.ts +202 -202
  109. package/src/execution/external/__tests__/api-schemas.test.ts +127 -127
  110. package/src/execution/external/api-schemas.ts +40 -40
  111. package/src/execution/external/index.ts +1 -1
  112. package/src/index.ts +18 -18
  113. package/src/integrations/credentials/__tests__/api-schemas.test.ts +420 -420
  114. package/src/integrations/credentials/api-schemas.ts +146 -146
  115. package/src/integrations/credentials/schemas.ts +200 -200
  116. package/src/integrations/oauth/__tests__/provider-registry.test.ts +7 -7
  117. package/src/integrations/oauth/provider-registry.ts +74 -74
  118. package/src/integrations/oauth/server/credentials.ts +43 -43
  119. package/src/integrations/webhook-endpoints/__tests__/api-schemas.test.ts +327 -327
  120. package/src/integrations/webhook-endpoints/api-schemas.ts +103 -103
  121. package/src/integrations/webhook-endpoints/types.ts +58 -58
  122. package/src/knowledge/README.md +32 -32
  123. package/src/knowledge/__tests__/queries.test.ts +626 -535
  124. package/src/knowledge/format.ts +99 -99
  125. package/src/knowledge/index.ts +5 -5
  126. package/src/knowledge/published.ts +5 -5
  127. package/src/knowledge/queries.ts +269 -218
  128. package/src/operations/activities/api-schemas.ts +80 -80
  129. package/src/operations/activities/types.ts +64 -64
  130. package/src/organization-model/README.md +149 -149
  131. package/src/organization-model/__tests__/content-kinds-registry.test.ts +210 -210
  132. package/src/organization-model/__tests__/defaults.test.ts +168 -168
  133. package/src/organization-model/__tests__/domains/actions.test.ts +78 -56
  134. package/src/organization-model/__tests__/domains/customers.test.ts +299 -299
  135. package/src/organization-model/__tests__/domains/entities.test.ts +56 -56
  136. package/src/organization-model/__tests__/domains/goals.test.ts +493 -493
  137. package/src/organization-model/__tests__/domains/identity.test.ts +280 -280
  138. package/src/organization-model/__tests__/domains/navigation.test.ts +268 -268
  139. package/src/organization-model/__tests__/domains/offerings.test.ts +414 -414
  140. package/src/organization-model/__tests__/domains/policies.test.ts +323 -323
  141. package/src/organization-model/__tests__/domains/resource-mappings.test.ts +293 -293
  142. package/src/organization-model/__tests__/domains/resources.test.ts +382 -283
  143. package/src/organization-model/__tests__/domains/roles.test.ts +463 -463
  144. package/src/organization-model/__tests__/domains/statuses.test.ts +246 -246
  145. package/src/organization-model/__tests__/domains/systems.test.ts +209 -209
  146. package/src/organization-model/__tests__/flatten-additive-merge.test.ts +362 -361
  147. package/src/organization-model/__tests__/foundation.test.ts +77 -77
  148. package/src/organization-model/__tests__/get-resources-for-system.test.ts +144 -144
  149. package/src/organization-model/__tests__/graph.test.ts +1246 -887
  150. package/src/organization-model/__tests__/icons.test.ts +10 -1
  151. package/src/organization-model/__tests__/knowledge.test.ts +251 -15
  152. package/src/organization-model/__tests__/lookup-helpers.test.ts +438 -438
  153. package/src/organization-model/__tests__/migration-helpers.test.ts +591 -591
  154. package/src/organization-model/__tests__/prospecting-ssot.test.ts +103 -103
  155. package/src/organization-model/__tests__/recursive-system-schema.test.ts +535 -506
  156. package/src/organization-model/__tests__/resolve.test.ts +274 -164
  157. package/src/organization-model/__tests__/schema.test.ts +834 -301
  158. package/src/organization-model/__tests__/surface-projection.test.ts +284 -284
  159. package/src/organization-model/catalogs/lead-gen.ts +144 -144
  160. package/src/organization-model/content-kinds/config.ts +36 -36
  161. package/src/organization-model/content-kinds/index.ts +76 -72
  162. package/src/organization-model/content-kinds/pipeline.ts +68 -68
  163. package/src/organization-model/content-kinds/registry.ts +44 -44
  164. package/src/organization-model/content-kinds/status.ts +71 -71
  165. package/src/organization-model/content-kinds/template.ts +83 -83
  166. package/src/organization-model/content-kinds/types.ts +117 -117
  167. package/src/organization-model/contracts.ts +27 -27
  168. package/src/organization-model/defaults.ts +40 -50
  169. package/src/organization-model/domains/actions.ts +333 -239
  170. package/src/organization-model/domains/customers.ts +78 -78
  171. package/src/organization-model/domains/entities.ts +144 -144
  172. package/src/organization-model/domains/goals.ts +83 -83
  173. package/src/organization-model/domains/knowledge.ts +117 -101
  174. package/src/organization-model/domains/navigation.ts +139 -139
  175. package/src/organization-model/domains/offerings.ts +71 -71
  176. package/src/organization-model/domains/policies.ts +102 -102
  177. package/src/organization-model/domains/projects.ts +14 -14
  178. package/src/organization-model/domains/prospecting.ts +395 -395
  179. package/src/organization-model/domains/resources.ts +167 -132
  180. package/src/organization-model/domains/roles.ts +96 -96
  181. package/src/organization-model/domains/sales.test.ts +218 -218
  182. package/src/organization-model/domains/sales.ts +380 -380
  183. package/src/organization-model/domains/shared.ts +63 -63
  184. package/src/organization-model/domains/statuses.ts +339 -339
  185. package/src/organization-model/domains/systems.ts +217 -172
  186. package/src/organization-model/foundation.ts +75 -75
  187. package/src/organization-model/graph/build.ts +1016 -888
  188. package/src/organization-model/graph/index.ts +4 -4
  189. package/src/organization-model/graph/link.ts +10 -10
  190. package/src/organization-model/graph/schema.ts +76 -70
  191. package/src/organization-model/graph/types.ts +73 -67
  192. package/src/organization-model/helpers.ts +289 -241
  193. package/src/organization-model/icons.ts +78 -66
  194. package/src/organization-model/index.ts +130 -128
  195. package/src/organization-model/migration-helpers.ts +247 -244
  196. package/src/organization-model/ontology.ts +661 -0
  197. package/src/organization-model/organization-graph.mdx +110 -90
  198. package/src/organization-model/organization-model.mdx +226 -219
  199. package/src/organization-model/published.ts +289 -235
  200. package/src/organization-model/resolve.ts +146 -91
  201. package/src/organization-model/schema.ts +790 -671
  202. package/src/organization-model/surface-projection.ts +212 -212
  203. package/src/organization-model/types.ts +177 -167
  204. package/src/platform/api/types.ts +38 -38
  205. package/src/platform/constants/versions.ts +3 -3
  206. package/src/platform/index.ts +23 -23
  207. package/src/platform/registry/__tests__/command-view.test.ts +10 -10
  208. package/src/platform/registry/__tests__/resource-link.test.ts +35 -35
  209. package/src/platform/registry/__tests__/resource-registry.integration.test.ts +20 -20
  210. package/src/platform/registry/__tests__/resource-registry.nested-systems.test.ts +245 -245
  211. package/src/platform/registry/__tests__/resource-registry.test.ts +2053 -2053
  212. package/src/platform/registry/__tests__/validation.test.ts +1347 -1347
  213. package/src/platform/registry/command-view.ts +10 -10
  214. package/src/platform/registry/index.ts +103 -103
  215. package/src/platform/registry/resource-link.ts +32 -32
  216. package/src/platform/registry/resource-registry.ts +890 -890
  217. package/src/platform/registry/serialization.ts +295 -295
  218. package/src/platform/registry/serialized-types.ts +166 -166
  219. package/src/platform/registry/stats-types.ts +68 -68
  220. package/src/platform/registry/types.ts +425 -425
  221. package/src/platform/registry/validation.ts +745 -745
  222. package/src/platform/utils/__tests__/validation.test.ts +1084 -1084
  223. package/src/platform/utils/validation.ts +425 -425
  224. package/src/projects/api-schemas.test.ts +39 -39
  225. package/src/projects/api-schemas.ts +291 -291
  226. package/src/reference/_generated/contracts.md +2101 -2096
  227. package/src/reference/glossary.md +76 -76
  228. package/src/scaffold-registry/__tests__/index.test.ts +206 -206
  229. package/src/scaffold-registry/__tests__/schema.test.ts +166 -166
  230. package/src/scaffold-registry/index.ts +392 -392
  231. package/src/scaffold-registry/schema.ts +243 -243
  232. package/src/server.ts +289 -289
  233. package/src/supabase/database.types.ts +3153 -3153
  234. package/src/test-utils/README.md +37 -37
  235. package/src/test-utils/entities.ts +108 -108
  236. package/src/test-utils/fixtures/memberships.ts +82 -82
  237. package/src/test-utils/index.ts +12 -12
  238. package/src/test-utils/organization-model.ts +65 -65
  239. package/src/test-utils/published.ts +6 -6
  240. package/src/test-utils/rls/RLSTestContext.ts +588 -588
  241. package/src/test-utils/test-utils.test.ts +44 -44
@@ -1,94 +1,409 @@
1
1
  import { z, ZodType } from 'zod';
2
2
 
3
+ declare const OntologyKindSchema: z.ZodEnum<{
4
+ object: "object";
5
+ action: "action";
6
+ link: "link";
7
+ catalog: "catalog";
8
+ event: "event";
9
+ interface: "interface";
10
+ "value-type": "value-type";
11
+ property: "property";
12
+ group: "group";
13
+ surface: "surface";
14
+ }>;
15
+ type OntologyKind = z.infer<typeof OntologyKindSchema>;
16
+ declare const OntologyIdSchema: z.ZodString;
17
+ type OntologyId = z.infer<typeof OntologyIdSchema>;
18
+ type ParsedOntologyId = {
19
+ id: OntologyId;
20
+ scope: string;
21
+ kind: OntologyKind;
22
+ localId: string;
23
+ isGlobal: boolean;
24
+ };
25
+ declare function parseOntologyId(id: string): ParsedOntologyId;
26
+ declare function formatOntologyId(input: {
27
+ scope: string;
28
+ kind: OntologyKind;
29
+ localId: string;
30
+ }): OntologyId;
31
+ declare const OntologyObjectTypeSchema: z.ZodObject<{
32
+ id: z.ZodString;
33
+ label: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ ownerSystemId: z.ZodOptional<z.ZodString>;
36
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
38
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39
+ }, z.core.$loose>;
40
+ declare const OntologyLinkTypeSchema: z.ZodObject<{
41
+ id: z.ZodString;
42
+ label: z.ZodOptional<z.ZodString>;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ ownerSystemId: z.ZodOptional<z.ZodString>;
45
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ from: z.ZodString;
47
+ to: z.ZodString;
48
+ cardinality: z.ZodOptional<z.ZodString>;
49
+ via: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$loose>;
51
+ declare const OntologyActionTypeSchema: z.ZodObject<{
52
+ id: z.ZodString;
53
+ label: z.ZodOptional<z.ZodString>;
54
+ description: z.ZodOptional<z.ZodString>;
55
+ ownerSystemId: z.ZodOptional<z.ZodString>;
56
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
58
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
60
+ }, z.core.$loose>;
61
+ declare const OntologyCatalogTypeSchema: z.ZodObject<{
62
+ id: z.ZodString;
63
+ label: z.ZodOptional<z.ZodString>;
64
+ description: z.ZodOptional<z.ZodString>;
65
+ ownerSystemId: z.ZodOptional<z.ZodString>;
66
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ kind: z.ZodOptional<z.ZodString>;
68
+ appliesTo: z.ZodOptional<z.ZodString>;
69
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
+ }, z.core.$loose>;
71
+ declare const OntologyEventTypeSchema: z.ZodObject<{
72
+ id: z.ZodString;
73
+ label: z.ZodOptional<z.ZodString>;
74
+ description: z.ZodOptional<z.ZodString>;
75
+ ownerSystemId: z.ZodOptional<z.ZodString>;
76
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
78
+ }, z.core.$loose>;
79
+ declare const OntologyInterfaceTypeSchema: z.ZodObject<{
80
+ id: z.ZodString;
81
+ label: z.ZodOptional<z.ZodString>;
82
+ description: z.ZodOptional<z.ZodString>;
83
+ ownerSystemId: z.ZodOptional<z.ZodString>;
84
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
86
+ }, z.core.$loose>;
87
+ declare const OntologyValueTypeSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ label: z.ZodOptional<z.ZodString>;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ ownerSystemId: z.ZodOptional<z.ZodString>;
92
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ primitive: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$loose>;
95
+ declare const OntologySharedPropertySchema: z.ZodObject<{
96
+ id: z.ZodString;
97
+ label: z.ZodOptional<z.ZodString>;
98
+ description: z.ZodOptional<z.ZodString>;
99
+ ownerSystemId: z.ZodOptional<z.ZodString>;
100
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
+ valueType: z.ZodOptional<z.ZodString>;
102
+ searchable: z.ZodOptional<z.ZodBoolean>;
103
+ pii: z.ZodOptional<z.ZodBoolean>;
104
+ }, z.core.$loose>;
105
+ declare const OntologyGroupSchema: z.ZodObject<{
106
+ id: z.ZodString;
107
+ label: z.ZodOptional<z.ZodString>;
108
+ description: z.ZodOptional<z.ZodString>;
109
+ ownerSystemId: z.ZodOptional<z.ZodString>;
110
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
112
+ }, z.core.$loose>;
113
+ declare const OntologySurfaceTypeSchema: z.ZodObject<{
114
+ id: z.ZodString;
115
+ label: z.ZodOptional<z.ZodString>;
116
+ description: z.ZodOptional<z.ZodString>;
117
+ ownerSystemId: z.ZodOptional<z.ZodString>;
118
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ route: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$loose>;
121
+ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
122
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
123
+ id: z.ZodString;
124
+ label: z.ZodOptional<z.ZodString>;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ ownerSystemId: z.ZodOptional<z.ZodString>;
127
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
130
+ }, z.core.$loose>>>>;
131
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
132
+ id: z.ZodString;
133
+ label: z.ZodOptional<z.ZodString>;
134
+ description: z.ZodOptional<z.ZodString>;
135
+ ownerSystemId: z.ZodOptional<z.ZodString>;
136
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ from: z.ZodString;
138
+ to: z.ZodString;
139
+ cardinality: z.ZodOptional<z.ZodString>;
140
+ via: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$loose>>>>;
142
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
143
+ id: z.ZodString;
144
+ label: z.ZodOptional<z.ZodString>;
145
+ description: z.ZodOptional<z.ZodString>;
146
+ ownerSystemId: z.ZodOptional<z.ZodString>;
147
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
149
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
151
+ }, z.core.$loose>>>>;
152
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
153
+ id: z.ZodString;
154
+ label: z.ZodOptional<z.ZodString>;
155
+ description: z.ZodOptional<z.ZodString>;
156
+ ownerSystemId: z.ZodOptional<z.ZodString>;
157
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
+ kind: z.ZodOptional<z.ZodString>;
159
+ appliesTo: z.ZodOptional<z.ZodString>;
160
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
161
+ }, z.core.$loose>>>>;
162
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
163
+ id: z.ZodString;
164
+ label: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ ownerSystemId: z.ZodOptional<z.ZodString>;
167
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
169
+ }, z.core.$loose>>>>;
170
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
171
+ id: z.ZodString;
172
+ label: z.ZodOptional<z.ZodString>;
173
+ description: z.ZodOptional<z.ZodString>;
174
+ ownerSystemId: z.ZodOptional<z.ZodString>;
175
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
+ }, z.core.$loose>>>>;
178
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
179
+ id: z.ZodString;
180
+ label: z.ZodOptional<z.ZodString>;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ ownerSystemId: z.ZodOptional<z.ZodString>;
183
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
184
+ primitive: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$loose>>>>;
186
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
187
+ id: z.ZodString;
188
+ label: z.ZodOptional<z.ZodString>;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ ownerSystemId: z.ZodOptional<z.ZodString>;
191
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ valueType: z.ZodOptional<z.ZodString>;
193
+ searchable: z.ZodOptional<z.ZodBoolean>;
194
+ pii: z.ZodOptional<z.ZodBoolean>;
195
+ }, z.core.$loose>>>>;
196
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
197
+ id: z.ZodString;
198
+ label: z.ZodOptional<z.ZodString>;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ ownerSystemId: z.ZodOptional<z.ZodString>;
201
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
202
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
203
+ }, z.core.$loose>>>>;
204
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
205
+ id: z.ZodString;
206
+ label: z.ZodOptional<z.ZodString>;
207
+ description: z.ZodOptional<z.ZodString>;
208
+ ownerSystemId: z.ZodOptional<z.ZodString>;
209
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ route: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$loose>>>>;
212
+ }, z.core.$strip>>;
213
+ declare const DEFAULT_ONTOLOGY_SCOPE: OntologyScope;
214
+ type OntologyObjectType = z.infer<typeof OntologyObjectTypeSchema>;
215
+ type OntologyLinkType = z.infer<typeof OntologyLinkTypeSchema>;
216
+ type OntologyActionType = z.infer<typeof OntologyActionTypeSchema>;
217
+ type OntologyCatalogType = z.infer<typeof OntologyCatalogTypeSchema>;
218
+ type OntologyEventType = z.infer<typeof OntologyEventTypeSchema>;
219
+ type OntologyInterfaceType = z.infer<typeof OntologyInterfaceTypeSchema>;
220
+ type OntologyValueType = z.infer<typeof OntologyValueTypeSchema>;
221
+ type OntologySharedProperty = z.infer<typeof OntologySharedPropertySchema>;
222
+ type OntologyGroup = z.infer<typeof OntologyGroupSchema>;
223
+ type OntologySurfaceType = z.infer<typeof OntologySurfaceTypeSchema>;
224
+ type OntologyScope = z.infer<typeof OntologyScopeSchema>;
225
+ type ResolvedOntologyIndex = {
226
+ objectTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyObjectType>>;
227
+ linkTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyLinkType>>;
228
+ actionTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyActionType>>;
229
+ catalogTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyCatalogType>>;
230
+ eventTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyEventType>>;
231
+ interfaceTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyInterfaceType>>;
232
+ valueTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyValueType>>;
233
+ sharedProperties: Record<OntologyId, ResolvedOntologyRecord<OntologySharedProperty>>;
234
+ groups: Record<OntologyId, ResolvedOntologyRecord<OntologyGroup>>;
235
+ surfaces: Record<OntologyId, ResolvedOntologyRecord<OntologySurfaceType>>;
236
+ };
237
+ type OntologyRecordOrigin = {
238
+ kind: 'authored' | 'projected';
239
+ source: string;
240
+ path: Array<string | number>;
241
+ systemPath?: string;
242
+ legacyId?: string;
243
+ };
244
+ type ResolvedOntologyRecord<TRecord> = TRecord & {
245
+ origin: OntologyRecordOrigin;
246
+ };
247
+ type OntologyDiagnostic = {
248
+ code: 'duplicate_ontology_id' | 'invalid_ontology_id' | 'ontology_kind_mismatch';
249
+ message: string;
250
+ id: string;
251
+ path: Array<string | number>;
252
+ source: string;
253
+ origin: OntologyRecordOrigin;
254
+ existingSource?: string;
255
+ existingOrigin?: OntologyRecordOrigin;
256
+ };
257
+ type OntologyCompilation = {
258
+ ontology: ResolvedOntologyIndex;
259
+ diagnostics: OntologyDiagnostic[];
260
+ };
261
+ type ResolvedOntologyRecordEntry = {
262
+ id: OntologyId;
263
+ kind: OntologyKind;
264
+ record: ResolvedOntologyRecord<OntologyObjectType | OntologyLinkType | OntologyActionType | OntologyCatalogType | OntologyEventType | OntologyInterfaceType | OntologyValueType | OntologySharedProperty | OntologyGroup | OntologySurfaceType>;
265
+ };
266
+ declare function ontologyGraphNodeId(id: OntologyId | string): string;
267
+ declare function ontologyIdFromGraphNodeId(nodeId: string): OntologyId | undefined;
268
+ declare function isOntologyGraphNodeId(nodeId: string): boolean;
269
+ declare function listResolvedOntologyRecords(index: ResolvedOntologyIndex): ResolvedOntologyRecordEntry[];
270
+ type ModelLike = {
271
+ ontology?: OntologyScope;
272
+ systems?: Record<string, SystemLike>;
273
+ entities?: Record<string, EntityLike>;
274
+ actions?: Record<string, ActionLike>;
275
+ };
276
+ type SystemLike = {
277
+ id: string;
278
+ label?: string;
279
+ title?: string;
280
+ description?: string;
281
+ ontology?: OntologyScope;
282
+ content?: Record<string, ContentLike>;
283
+ systems?: Record<string, SystemLike>;
284
+ subsystems?: Record<string, SystemLike>;
285
+ };
286
+ type EntityLike = {
287
+ id: string;
288
+ label: string;
289
+ description?: string;
290
+ ownedBySystemId: string;
291
+ table?: string;
292
+ rowSchema?: string;
293
+ stateCatalogId?: string;
294
+ links?: Array<{
295
+ toEntity: string;
296
+ kind: string;
297
+ via?: string;
298
+ label?: string;
299
+ }>;
300
+ };
301
+ type ActionLike = {
302
+ id: string;
303
+ label: string;
304
+ description?: string;
305
+ resourceId?: string;
306
+ scope?: 'global' | {
307
+ domain: string;
308
+ };
309
+ affects?: string[];
310
+ invocations?: unknown[];
311
+ lifecycle?: string;
312
+ };
313
+ type ContentLike = {
314
+ kind: string;
315
+ type: string;
316
+ label?: string;
317
+ description?: string;
318
+ parentContentId?: string;
319
+ data?: Record<string, unknown>;
320
+ };
321
+ declare function compileOrganizationOntology(model: ModelLike): OntologyCompilation;
322
+ declare function getOntologyDiagnostics(model: ModelLike): OntologyDiagnostic[];
323
+
3
324
  declare const SurfaceTypeSchema: z.ZodEnum<{
4
- list: "list";
325
+ dashboard: "dashboard";
326
+ settings: "settings";
5
327
  graph: "graph";
328
+ list: "list";
6
329
  page: "page";
7
- dashboard: "dashboard";
8
330
  detail: "detail";
9
- settings: "settings";
10
331
  }>;
11
332
  declare const SurfaceDefinitionSchema: z.ZodObject<{
12
333
  id: z.ZodString;
13
334
  label: z.ZodString;
14
335
  path: z.ZodString;
15
336
  surfaceType: z.ZodEnum<{
16
- list: "list";
337
+ dashboard: "dashboard";
338
+ settings: "settings";
17
339
  graph: "graph";
340
+ list: "list";
18
341
  page: "page";
19
- dashboard: "dashboard";
20
342
  detail: "detail";
21
- settings: "settings";
22
343
  }>;
23
344
  description: z.ZodOptional<z.ZodString>;
24
345
  enabled: z.ZodDefault<z.ZodBoolean>;
25
346
  devOnly: z.ZodOptional<z.ZodBoolean>;
26
347
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
27
- "nav.dashboard": "nav.dashboard";
28
- "nav.calendar": "nav.calendar";
29
- "nav.sales": "nav.sales";
30
- "nav.crm": "nav.crm";
31
- "nav.lead-gen": "nav.lead-gen";
32
- "nav.projects": "nav.projects";
33
- "nav.operations": "nav.operations";
34
- "nav.monitoring": "nav.monitoring";
35
- "nav.knowledge": "nav.knowledge";
36
- "nav.settings": "nav.settings";
37
- "nav.admin": "nav.admin";
38
- "nav.archive": "nav.archive";
39
- "knowledge.playbook": "knowledge.playbook";
40
- "knowledge.strategy": "knowledge.strategy";
41
- "knowledge.reference": "knowledge.reference";
42
- "feature.dashboard": "feature.dashboard";
43
- "feature.calendar": "feature.calendar";
44
- "feature.business": "feature.business";
45
- "feature.sales": "feature.sales";
46
- "feature.crm": "feature.crm";
47
- "feature.finance": "feature.finance";
48
- "feature.lead-gen": "feature.lead-gen";
49
- "feature.platform": "feature.platform";
50
- "feature.projects": "feature.projects";
51
- "feature.operations": "feature.operations";
52
- "feature.knowledge": "feature.knowledge";
53
- "feature.monitoring": "feature.monitoring";
54
- "feature.settings": "feature.settings";
55
- "feature.admin": "feature.admin";
56
- "feature.archive": "feature.archive";
57
- "feature.seo": "feature.seo";
58
- "resource.agent": "resource.agent";
59
- "resource.workflow": "resource.workflow";
60
- "resource.integration": "resource.integration";
61
- "resource.database": "resource.database";
62
- "resource.user": "resource.user";
63
- "resource.team": "resource.team";
64
- "integration.gmail": "integration.gmail";
65
- "integration.google-sheets": "integration.google-sheets";
66
- "integration.attio": "integration.attio";
67
- "surface.dashboard": "surface.dashboard";
68
- "surface.calendar": "surface.calendar";
69
- "surface.overview": "surface.overview";
70
- "surface.command-view": "surface.command-view";
71
- "surface.command-queue": "surface.command-queue";
72
- "surface.pipeline": "surface.pipeline";
73
- "surface.lists": "surface.lists";
74
- "surface.resources": "surface.resources";
75
- "surface.settings": "surface.settings";
76
- "status.success": "status.success";
77
- "status.error": "status.error";
78
- "status.warning": "status.warning";
79
- "status.info": "status.info";
80
- "status.pending": "status.pending";
81
- "action.approve": "action.approve";
82
- "action.reject": "action.reject";
83
- "action.retry": "action.retry";
84
- "action.edit": "action.edit";
85
- "action.view": "action.view";
86
- "action.launch": "action.launch";
87
- "action.message": "action.message";
88
- "action.escalate": "action.escalate";
89
- "action.promote": "action.promote";
90
- "action.submit": "action.submit";
91
- "action.email": "action.email";
348
+ message: "message";
349
+ error: "error";
350
+ agent: "agent";
351
+ workflow: "workflow";
352
+ "google-sheets": "google-sheets";
353
+ dashboard: "dashboard";
354
+ calendar: "calendar";
355
+ sales: "sales";
356
+ crm: "crm";
357
+ "lead-gen": "lead-gen";
358
+ projects: "projects";
359
+ operations: "operations";
360
+ monitoring: "monitoring";
361
+ knowledge: "knowledge";
362
+ settings: "settings";
363
+ admin: "admin";
364
+ archive: "archive";
365
+ business: "business";
366
+ finance: "finance";
367
+ platform: "platform";
368
+ seo: "seo";
369
+ playbook: "playbook";
370
+ strategy: "strategy";
371
+ reference: "reference";
372
+ integration: "integration";
373
+ database: "database";
374
+ user: "user";
375
+ team: "team";
376
+ gmail: "gmail";
377
+ attio: "attio";
378
+ overview: "overview";
379
+ "command-view": "command-view";
380
+ "command-queue": "command-queue";
381
+ pipeline: "pipeline";
382
+ lists: "lists";
383
+ resources: "resources";
384
+ approve: "approve";
385
+ reject: "reject";
386
+ retry: "retry";
387
+ edit: "edit";
388
+ view: "view";
389
+ launch: "launch";
390
+ escalate: "escalate";
391
+ promote: "promote";
392
+ submit: "submit";
393
+ email: "email";
394
+ success: "success";
395
+ warning: "warning";
396
+ info: "info";
397
+ pending: "pending";
398
+ bolt: "bolt";
399
+ building: "building";
400
+ briefcase: "briefcase";
401
+ apps: "apps";
402
+ graph: "graph";
403
+ shield: "shield";
404
+ users: "users";
405
+ "chart-bar": "chart-bar";
406
+ search: "search";
92
407
  }>, z.ZodString]>>;
93
408
  systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
94
409
  entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -203,75 +518,73 @@ declare const SystemUiSchema: z.ZodObject<{
203
518
  path: z.ZodString;
204
519
  surfaces: z.ZodDefault<z.ZodArray<z.ZodString>>;
205
520
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
206
- "nav.dashboard": "nav.dashboard";
207
- "nav.calendar": "nav.calendar";
208
- "nav.sales": "nav.sales";
209
- "nav.crm": "nav.crm";
210
- "nav.lead-gen": "nav.lead-gen";
211
- "nav.projects": "nav.projects";
212
- "nav.operations": "nav.operations";
213
- "nav.monitoring": "nav.monitoring";
214
- "nav.knowledge": "nav.knowledge";
215
- "nav.settings": "nav.settings";
216
- "nav.admin": "nav.admin";
217
- "nav.archive": "nav.archive";
218
- "knowledge.playbook": "knowledge.playbook";
219
- "knowledge.strategy": "knowledge.strategy";
220
- "knowledge.reference": "knowledge.reference";
221
- "feature.dashboard": "feature.dashboard";
222
- "feature.calendar": "feature.calendar";
223
- "feature.business": "feature.business";
224
- "feature.sales": "feature.sales";
225
- "feature.crm": "feature.crm";
226
- "feature.finance": "feature.finance";
227
- "feature.lead-gen": "feature.lead-gen";
228
- "feature.platform": "feature.platform";
229
- "feature.projects": "feature.projects";
230
- "feature.operations": "feature.operations";
231
- "feature.knowledge": "feature.knowledge";
232
- "feature.monitoring": "feature.monitoring";
233
- "feature.settings": "feature.settings";
234
- "feature.admin": "feature.admin";
235
- "feature.archive": "feature.archive";
236
- "feature.seo": "feature.seo";
237
- "resource.agent": "resource.agent";
238
- "resource.workflow": "resource.workflow";
239
- "resource.integration": "resource.integration";
240
- "resource.database": "resource.database";
241
- "resource.user": "resource.user";
242
- "resource.team": "resource.team";
243
- "integration.gmail": "integration.gmail";
244
- "integration.google-sheets": "integration.google-sheets";
245
- "integration.attio": "integration.attio";
246
- "surface.dashboard": "surface.dashboard";
247
- "surface.calendar": "surface.calendar";
248
- "surface.overview": "surface.overview";
249
- "surface.command-view": "surface.command-view";
250
- "surface.command-queue": "surface.command-queue";
251
- "surface.pipeline": "surface.pipeline";
252
- "surface.lists": "surface.lists";
253
- "surface.resources": "surface.resources";
254
- "surface.settings": "surface.settings";
255
- "status.success": "status.success";
256
- "status.error": "status.error";
257
- "status.warning": "status.warning";
258
- "status.info": "status.info";
259
- "status.pending": "status.pending";
260
- "action.approve": "action.approve";
261
- "action.reject": "action.reject";
262
- "action.retry": "action.retry";
263
- "action.edit": "action.edit";
264
- "action.view": "action.view";
265
- "action.launch": "action.launch";
266
- "action.message": "action.message";
267
- "action.escalate": "action.escalate";
268
- "action.promote": "action.promote";
269
- "action.submit": "action.submit";
270
- "action.email": "action.email";
521
+ message: "message";
522
+ error: "error";
523
+ agent: "agent";
524
+ workflow: "workflow";
525
+ "google-sheets": "google-sheets";
526
+ dashboard: "dashboard";
527
+ calendar: "calendar";
528
+ sales: "sales";
529
+ crm: "crm";
530
+ "lead-gen": "lead-gen";
531
+ projects: "projects";
532
+ operations: "operations";
533
+ monitoring: "monitoring";
534
+ knowledge: "knowledge";
535
+ settings: "settings";
536
+ admin: "admin";
537
+ archive: "archive";
538
+ business: "business";
539
+ finance: "finance";
540
+ platform: "platform";
541
+ seo: "seo";
542
+ playbook: "playbook";
543
+ strategy: "strategy";
544
+ reference: "reference";
545
+ integration: "integration";
546
+ database: "database";
547
+ user: "user";
548
+ team: "team";
549
+ gmail: "gmail";
550
+ attio: "attio";
551
+ overview: "overview";
552
+ "command-view": "command-view";
553
+ "command-queue": "command-queue";
554
+ pipeline: "pipeline";
555
+ lists: "lists";
556
+ resources: "resources";
557
+ approve: "approve";
558
+ reject: "reject";
559
+ retry: "retry";
560
+ edit: "edit";
561
+ view: "view";
562
+ launch: "launch";
563
+ escalate: "escalate";
564
+ promote: "promote";
565
+ submit: "submit";
566
+ email: "email";
567
+ success: "success";
568
+ warning: "warning";
569
+ info: "info";
570
+ pending: "pending";
571
+ bolt: "bolt";
572
+ building: "building";
573
+ briefcase: "briefcase";
574
+ apps: "apps";
575
+ graph: "graph";
576
+ shield: "shield";
577
+ users: "users";
578
+ "chart-bar": "chart-bar";
579
+ search: "search";
271
580
  }>, z.ZodString]>>;
272
581
  order: z.ZodOptional<z.ZodNumber>;
273
582
  }, z.core.$strip>;
274
583
 
584
+ type JsonPrimitive = string | number | boolean | null;
585
+ type JsonValue = JsonPrimitive | JsonValue[] | {
586
+ [key: string]: JsonValue;
587
+ };
275
588
  /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
276
589
  interface SystemEntry {
277
590
  id: string;
@@ -306,6 +619,13 @@ interface SystemEntry {
306
619
  devOnly?: boolean;
307
620
  requiresAdmin?: boolean;
308
621
  order: number;
622
+ config?: Record<string, JsonValue>;
623
+ ontology?: OntologyScope;
624
+ systems?: Record<string, SystemEntry>;
625
+ /**
626
+ * @deprecated Compatibility-only bridge for old tenant data and migration readers.
627
+ * Author new semantic catalogs in `ontology` and local settings in `config`.
628
+ */
309
629
  content?: Record<string, ContentNode>;
310
630
  subsystems?: Record<string, SystemEntry>;
311
631
  }
@@ -315,11 +635,12 @@ declare const DEFAULT_ORGANIZATION_MODEL_SYSTEMS: z.infer<typeof SystemsDomainSc
315
635
 
316
636
  declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
317
637
  knowledge: "knowledge";
638
+ resources: "resources";
318
639
  systems: "systems";
640
+ entities: "entities";
319
641
  actions: "actions";
642
+ ontology: "ontology";
320
643
  policies: "policies";
321
- entities: "entities";
322
- resources: "resources";
323
644
  branding: "branding";
324
645
  identity: "identity";
325
646
  customers: "customers";
@@ -361,6 +682,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
361
682
  version: z.ZodDefault<z.ZodLiteral<1>>;
362
683
  lastModified: z.ZodString;
363
684
  }, z.core.$strip>>;
685
+ ontology: z.ZodOptional<z.ZodObject<{
686
+ version: z.ZodDefault<z.ZodLiteral<1>>;
687
+ lastModified: z.ZodString;
688
+ }, z.core.$strip>>;
364
689
  resources: z.ZodOptional<z.ZodObject<{
365
690
  version: z.ZodDefault<z.ZodLiteral<1>>;
366
691
  lastModified: z.ZodString;
@@ -410,6 +735,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
410
735
  version: 1;
411
736
  lastModified: string;
412
737
  };
738
+ ontology: {
739
+ version: 1;
740
+ lastModified: string;
741
+ };
413
742
  resources: {
414
743
  version: 1;
415
744
  lastModified: string;
@@ -459,6 +788,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
459
788
  version: 1;
460
789
  lastModified: string;
461
790
  } | undefined;
791
+ ontology?: {
792
+ version: 1;
793
+ lastModified: string;
794
+ } | undefined;
462
795
  resources?: {
463
796
  version: 1;
464
797
  lastModified: string;
@@ -511,6 +844,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
511
844
  version: z.ZodDefault<z.ZodLiteral<1>>;
512
845
  lastModified: z.ZodString;
513
846
  }, z.core.$strip>>;
847
+ ontology: z.ZodOptional<z.ZodObject<{
848
+ version: z.ZodDefault<z.ZodLiteral<1>>;
849
+ lastModified: z.ZodString;
850
+ }, z.core.$strip>>;
514
851
  resources: z.ZodOptional<z.ZodObject<{
515
852
  version: z.ZodDefault<z.ZodLiteral<1>>;
516
853
  lastModified: z.ZodString;
@@ -560,6 +897,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
560
897
  version: 1;
561
898
  lastModified: string;
562
899
  };
900
+ ontology: {
901
+ version: 1;
902
+ lastModified: string;
903
+ };
563
904
  resources: {
564
905
  version: 1;
565
906
  lastModified: string;
@@ -609,6 +950,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
609
950
  version: 1;
610
951
  lastModified: string;
611
952
  } | undefined;
953
+ ontology?: {
954
+ version: 1;
955
+ lastModified: string;
956
+ } | undefined;
612
957
  resources?: {
613
958
  version: 1;
614
959
  lastModified: string;
@@ -760,6 +1105,98 @@ declare const OrganizationModelSchema: z.ZodObject<{
760
1105
  }, z.core.$strip>>>;
761
1106
  }, z.core.$strip>>>>;
762
1107
  systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
1108
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
1109
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1110
+ id: z.ZodString;
1111
+ label: z.ZodOptional<z.ZodString>;
1112
+ description: z.ZodOptional<z.ZodString>;
1113
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1114
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1115
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1116
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1117
+ }, z.core.$loose>>>>;
1118
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1119
+ id: z.ZodString;
1120
+ label: z.ZodOptional<z.ZodString>;
1121
+ description: z.ZodOptional<z.ZodString>;
1122
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1123
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1124
+ from: z.ZodString;
1125
+ to: z.ZodString;
1126
+ cardinality: z.ZodOptional<z.ZodString>;
1127
+ via: z.ZodOptional<z.ZodString>;
1128
+ }, z.core.$loose>>>>;
1129
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1130
+ id: z.ZodString;
1131
+ label: z.ZodOptional<z.ZodString>;
1132
+ description: z.ZodOptional<z.ZodString>;
1133
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1134
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1135
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
1136
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1137
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1138
+ }, z.core.$loose>>>>;
1139
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ label: z.ZodOptional<z.ZodString>;
1142
+ description: z.ZodOptional<z.ZodString>;
1143
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1144
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1145
+ kind: z.ZodOptional<z.ZodString>;
1146
+ appliesTo: z.ZodOptional<z.ZodString>;
1147
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1148
+ }, z.core.$loose>>>>;
1149
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ label: z.ZodOptional<z.ZodString>;
1152
+ description: z.ZodOptional<z.ZodString>;
1153
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1154
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1155
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1156
+ }, z.core.$loose>>>>;
1157
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1158
+ id: z.ZodString;
1159
+ label: z.ZodOptional<z.ZodString>;
1160
+ description: z.ZodOptional<z.ZodString>;
1161
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1162
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1163
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1164
+ }, z.core.$loose>>>>;
1165
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1166
+ id: z.ZodString;
1167
+ label: z.ZodOptional<z.ZodString>;
1168
+ description: z.ZodOptional<z.ZodString>;
1169
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1170
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1171
+ primitive: z.ZodOptional<z.ZodString>;
1172
+ }, z.core.$loose>>>>;
1173
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ label: z.ZodOptional<z.ZodString>;
1176
+ description: z.ZodOptional<z.ZodString>;
1177
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1178
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1179
+ valueType: z.ZodOptional<z.ZodString>;
1180
+ searchable: z.ZodOptional<z.ZodBoolean>;
1181
+ pii: z.ZodOptional<z.ZodBoolean>;
1182
+ }, z.core.$loose>>>>;
1183
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ label: z.ZodOptional<z.ZodString>;
1186
+ description: z.ZodOptional<z.ZodString>;
1187
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1188
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1189
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
1190
+ }, z.core.$loose>>>>;
1191
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ label: z.ZodOptional<z.ZodString>;
1194
+ description: z.ZodOptional<z.ZodString>;
1195
+ ownerSystemId: z.ZodOptional<z.ZodString>;
1196
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
1197
+ route: z.ZodOptional<z.ZodString>;
1198
+ }, z.core.$loose>>>>;
1199
+ }, z.core.$strip>>>;
763
1200
  resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
764
1201
  id: z.ZodString;
765
1202
  order: z.ZodDefault<z.ZodNumber>;
@@ -770,6 +1207,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
770
1207
  active: "active";
771
1208
  archived: "archived";
772
1209
  }>;
1210
+ ontology: z.ZodOptional<z.ZodObject<{
1211
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1212
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
1213
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1214
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1215
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1216
+ }, z.core.$strip>>;
1217
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1218
+ path: z.ZodString;
1219
+ role: z.ZodEnum<{
1220
+ schema: "schema";
1221
+ config: "config";
1222
+ entrypoint: "entrypoint";
1223
+ handler: "handler";
1224
+ test: "test";
1225
+ docs: "docs";
1226
+ }>;
1227
+ symbol: z.ZodOptional<z.ZodString>;
1228
+ description: z.ZodOptional<z.ZodString>;
1229
+ }, z.core.$strip>>>;
773
1230
  kind: z.ZodLiteral<"workflow">;
774
1231
  actionKey: z.ZodOptional<z.ZodString>;
775
1232
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -794,6 +1251,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
794
1251
  active: "active";
795
1252
  archived: "archived";
796
1253
  }>;
1254
+ ontology: z.ZodOptional<z.ZodObject<{
1255
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1256
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
1257
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1258
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1259
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1260
+ }, z.core.$strip>>;
1261
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1262
+ path: z.ZodString;
1263
+ role: z.ZodEnum<{
1264
+ schema: "schema";
1265
+ config: "config";
1266
+ entrypoint: "entrypoint";
1267
+ handler: "handler";
1268
+ test: "test";
1269
+ docs: "docs";
1270
+ }>;
1271
+ symbol: z.ZodOptional<z.ZodString>;
1272
+ description: z.ZodOptional<z.ZodString>;
1273
+ }, z.core.$strip>>>;
797
1274
  kind: z.ZodLiteral<"agent">;
798
1275
  agentKind: z.ZodEnum<{
799
1276
  platform: "platform";
@@ -848,6 +1325,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
848
1325
  active: "active";
849
1326
  archived: "archived";
850
1327
  }>;
1328
+ ontology: z.ZodOptional<z.ZodObject<{
1329
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1330
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
1331
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1332
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1333
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1334
+ }, z.core.$strip>>;
1335
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1336
+ path: z.ZodString;
1337
+ role: z.ZodEnum<{
1338
+ schema: "schema";
1339
+ config: "config";
1340
+ entrypoint: "entrypoint";
1341
+ handler: "handler";
1342
+ test: "test";
1343
+ docs: "docs";
1344
+ }>;
1345
+ symbol: z.ZodOptional<z.ZodString>;
1346
+ description: z.ZodOptional<z.ZodString>;
1347
+ }, z.core.$strip>>>;
851
1348
  kind: z.ZodLiteral<"integration">;
852
1349
  provider: z.ZodString;
853
1350
  }, z.core.$strip>, z.ZodObject<{
@@ -860,6 +1357,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
860
1357
  active: "active";
861
1358
  archived: "archived";
862
1359
  }>;
1360
+ ontology: z.ZodOptional<z.ZodObject<{
1361
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1362
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
1363
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1364
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1365
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1366
+ }, z.core.$strip>>;
1367
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1368
+ path: z.ZodString;
1369
+ role: z.ZodEnum<{
1370
+ schema: "schema";
1371
+ config: "config";
1372
+ entrypoint: "entrypoint";
1373
+ handler: "handler";
1374
+ test: "test";
1375
+ docs: "docs";
1376
+ }>;
1377
+ symbol: z.ZodOptional<z.ZodString>;
1378
+ description: z.ZodOptional<z.ZodString>;
1379
+ }, z.core.$strip>>>;
863
1380
  kind: z.ZodLiteral<"script">;
864
1381
  language: z.ZodEnum<{
865
1382
  shell: "shell";
@@ -1004,80 +1521,76 @@ declare const OrganizationModelSchema: z.ZodObject<{
1004
1521
  title: z.ZodString;
1005
1522
  summary: z.ZodString;
1006
1523
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1007
- "nav.dashboard": "nav.dashboard";
1008
- "nav.calendar": "nav.calendar";
1009
- "nav.sales": "nav.sales";
1010
- "nav.crm": "nav.crm";
1011
- "nav.lead-gen": "nav.lead-gen";
1012
- "nav.projects": "nav.projects";
1013
- "nav.operations": "nav.operations";
1014
- "nav.monitoring": "nav.monitoring";
1015
- "nav.knowledge": "nav.knowledge";
1016
- "nav.settings": "nav.settings";
1017
- "nav.admin": "nav.admin";
1018
- "nav.archive": "nav.archive";
1019
- "knowledge.playbook": "knowledge.playbook";
1020
- "knowledge.strategy": "knowledge.strategy";
1021
- "knowledge.reference": "knowledge.reference";
1022
- "feature.dashboard": "feature.dashboard";
1023
- "feature.calendar": "feature.calendar";
1024
- "feature.business": "feature.business";
1025
- "feature.sales": "feature.sales";
1026
- "feature.crm": "feature.crm";
1027
- "feature.finance": "feature.finance";
1028
- "feature.lead-gen": "feature.lead-gen";
1029
- "feature.platform": "feature.platform";
1030
- "feature.projects": "feature.projects";
1031
- "feature.operations": "feature.operations";
1032
- "feature.knowledge": "feature.knowledge";
1033
- "feature.monitoring": "feature.monitoring";
1034
- "feature.settings": "feature.settings";
1035
- "feature.admin": "feature.admin";
1036
- "feature.archive": "feature.archive";
1037
- "feature.seo": "feature.seo";
1038
- "resource.agent": "resource.agent";
1039
- "resource.workflow": "resource.workflow";
1040
- "resource.integration": "resource.integration";
1041
- "resource.database": "resource.database";
1042
- "resource.user": "resource.user";
1043
- "resource.team": "resource.team";
1044
- "integration.gmail": "integration.gmail";
1045
- "integration.google-sheets": "integration.google-sheets";
1046
- "integration.attio": "integration.attio";
1047
- "surface.dashboard": "surface.dashboard";
1048
- "surface.calendar": "surface.calendar";
1049
- "surface.overview": "surface.overview";
1050
- "surface.command-view": "surface.command-view";
1051
- "surface.command-queue": "surface.command-queue";
1052
- "surface.pipeline": "surface.pipeline";
1053
- "surface.lists": "surface.lists";
1054
- "surface.resources": "surface.resources";
1055
- "surface.settings": "surface.settings";
1056
- "status.success": "status.success";
1057
- "status.error": "status.error";
1058
- "status.warning": "status.warning";
1059
- "status.info": "status.info";
1060
- "status.pending": "status.pending";
1061
- "action.approve": "action.approve";
1062
- "action.reject": "action.reject";
1063
- "action.retry": "action.retry";
1064
- "action.edit": "action.edit";
1065
- "action.view": "action.view";
1066
- "action.launch": "action.launch";
1067
- "action.message": "action.message";
1068
- "action.escalate": "action.escalate";
1069
- "action.promote": "action.promote";
1070
- "action.submit": "action.submit";
1071
- "action.email": "action.email";
1524
+ message: "message";
1525
+ error: "error";
1526
+ agent: "agent";
1527
+ workflow: "workflow";
1528
+ "google-sheets": "google-sheets";
1529
+ dashboard: "dashboard";
1530
+ calendar: "calendar";
1531
+ sales: "sales";
1532
+ crm: "crm";
1533
+ "lead-gen": "lead-gen";
1534
+ projects: "projects";
1535
+ operations: "operations";
1536
+ monitoring: "monitoring";
1537
+ knowledge: "knowledge";
1538
+ settings: "settings";
1539
+ admin: "admin";
1540
+ archive: "archive";
1541
+ business: "business";
1542
+ finance: "finance";
1543
+ platform: "platform";
1544
+ seo: "seo";
1545
+ playbook: "playbook";
1546
+ strategy: "strategy";
1547
+ reference: "reference";
1548
+ integration: "integration";
1549
+ database: "database";
1550
+ user: "user";
1551
+ team: "team";
1552
+ gmail: "gmail";
1553
+ attio: "attio";
1554
+ overview: "overview";
1555
+ "command-view": "command-view";
1556
+ "command-queue": "command-queue";
1557
+ pipeline: "pipeline";
1558
+ lists: "lists";
1559
+ resources: "resources";
1560
+ approve: "approve";
1561
+ reject: "reject";
1562
+ retry: "retry";
1563
+ edit: "edit";
1564
+ view: "view";
1565
+ launch: "launch";
1566
+ escalate: "escalate";
1567
+ promote: "promote";
1568
+ submit: "submit";
1569
+ email: "email";
1570
+ success: "success";
1571
+ warning: "warning";
1572
+ info: "info";
1573
+ pending: "pending";
1574
+ bolt: "bolt";
1575
+ building: "building";
1576
+ briefcase: "briefcase";
1577
+ apps: "apps";
1578
+ graph: "graph";
1579
+ shield: "shield";
1580
+ users: "users";
1581
+ "chart-bar": "chart-bar";
1582
+ search: "search";
1072
1583
  }>, z.ZodString]>>;
1073
1584
  externalUrl: z.ZodOptional<z.ZodString>;
1585
+ sourceFilePath: z.ZodOptional<z.ZodString>;
1074
1586
  body: z.ZodString;
1075
1587
  links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1076
1588
  target: z.ZodObject<{
1077
1589
  kind: z.ZodEnum<{
1590
+ knowledge: "knowledge";
1078
1591
  system: "system";
1079
1592
  action: "action";
1080
- knowledge: "knowledge";
1593
+ ontology: "ontology";
1081
1594
  role: "role";
1082
1595
  goal: "goal";
1083
1596
  stage: "stage";
@@ -1089,10 +1602,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
1089
1602
  id: z.ZodString;
1090
1603
  }, z.core.$strip>;
1091
1604
  }, z.core.$strip>, z.ZodObject<{
1092
- nodeId: z.ZodString;
1605
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1093
1606
  }, z.core.$strip>]>, z.ZodTransform<{
1094
1607
  target: {
1095
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1608
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1096
1609
  id: string;
1097
1610
  };
1098
1611
  nodeId: string;
@@ -1100,7 +1613,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1100
1613
  nodeId: string;
1101
1614
  } | {
1102
1615
  target: {
1103
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1616
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1104
1617
  id: string;
1105
1618
  };
1106
1619
  }>>>>;
@@ -1114,6 +1627,10 @@ declare const LinkSchema: z.ZodObject<{
1114
1627
  kind: z.ZodEnum<{
1115
1628
  links: "links";
1116
1629
  affects: "affects";
1630
+ effects: "effects";
1631
+ implements: "implements";
1632
+ reads: "reads";
1633
+ writes: "writes";
1117
1634
  emits: "emits";
1118
1635
  contains: "contains";
1119
1636
  references: "references";
@@ -1123,223 +1640,205 @@ declare const LinkSchema: z.ZodObject<{
1123
1640
  originates_from: "originates_from";
1124
1641
  triggers: "triggers";
1125
1642
  applies_to: "applies_to";
1126
- effects: "effects";
1643
+ uses_catalog: "uses_catalog";
1127
1644
  }>;
1128
1645
  }, z.core.$strip>;
1129
1646
 
1130
1647
  declare const IconNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
1131
- "nav.dashboard": "nav.dashboard";
1132
- "nav.calendar": "nav.calendar";
1133
- "nav.sales": "nav.sales";
1134
- "nav.crm": "nav.crm";
1135
- "nav.lead-gen": "nav.lead-gen";
1136
- "nav.projects": "nav.projects";
1137
- "nav.operations": "nav.operations";
1138
- "nav.monitoring": "nav.monitoring";
1139
- "nav.knowledge": "nav.knowledge";
1140
- "nav.settings": "nav.settings";
1141
- "nav.admin": "nav.admin";
1142
- "nav.archive": "nav.archive";
1143
- "knowledge.playbook": "knowledge.playbook";
1144
- "knowledge.strategy": "knowledge.strategy";
1145
- "knowledge.reference": "knowledge.reference";
1146
- "feature.dashboard": "feature.dashboard";
1147
- "feature.calendar": "feature.calendar";
1148
- "feature.business": "feature.business";
1149
- "feature.sales": "feature.sales";
1150
- "feature.crm": "feature.crm";
1151
- "feature.finance": "feature.finance";
1152
- "feature.lead-gen": "feature.lead-gen";
1153
- "feature.platform": "feature.platform";
1154
- "feature.projects": "feature.projects";
1155
- "feature.operations": "feature.operations";
1156
- "feature.knowledge": "feature.knowledge";
1157
- "feature.monitoring": "feature.monitoring";
1158
- "feature.settings": "feature.settings";
1159
- "feature.admin": "feature.admin";
1160
- "feature.archive": "feature.archive";
1161
- "feature.seo": "feature.seo";
1162
- "resource.agent": "resource.agent";
1163
- "resource.workflow": "resource.workflow";
1164
- "resource.integration": "resource.integration";
1165
- "resource.database": "resource.database";
1166
- "resource.user": "resource.user";
1167
- "resource.team": "resource.team";
1168
- "integration.gmail": "integration.gmail";
1169
- "integration.google-sheets": "integration.google-sheets";
1170
- "integration.attio": "integration.attio";
1171
- "surface.dashboard": "surface.dashboard";
1172
- "surface.calendar": "surface.calendar";
1173
- "surface.overview": "surface.overview";
1174
- "surface.command-view": "surface.command-view";
1175
- "surface.command-queue": "surface.command-queue";
1176
- "surface.pipeline": "surface.pipeline";
1177
- "surface.lists": "surface.lists";
1178
- "surface.resources": "surface.resources";
1179
- "surface.settings": "surface.settings";
1180
- "status.success": "status.success";
1181
- "status.error": "status.error";
1182
- "status.warning": "status.warning";
1183
- "status.info": "status.info";
1184
- "status.pending": "status.pending";
1185
- "action.approve": "action.approve";
1186
- "action.reject": "action.reject";
1187
- "action.retry": "action.retry";
1188
- "action.edit": "action.edit";
1189
- "action.view": "action.view";
1190
- "action.launch": "action.launch";
1191
- "action.message": "action.message";
1192
- "action.escalate": "action.escalate";
1193
- "action.promote": "action.promote";
1194
- "action.submit": "action.submit";
1195
- "action.email": "action.email";
1648
+ message: "message";
1649
+ error: "error";
1650
+ agent: "agent";
1651
+ workflow: "workflow";
1652
+ "google-sheets": "google-sheets";
1653
+ dashboard: "dashboard";
1654
+ calendar: "calendar";
1655
+ sales: "sales";
1656
+ crm: "crm";
1657
+ "lead-gen": "lead-gen";
1658
+ projects: "projects";
1659
+ operations: "operations";
1660
+ monitoring: "monitoring";
1661
+ knowledge: "knowledge";
1662
+ settings: "settings";
1663
+ admin: "admin";
1664
+ archive: "archive";
1665
+ business: "business";
1666
+ finance: "finance";
1667
+ platform: "platform";
1668
+ seo: "seo";
1669
+ playbook: "playbook";
1670
+ strategy: "strategy";
1671
+ reference: "reference";
1672
+ integration: "integration";
1673
+ database: "database";
1674
+ user: "user";
1675
+ team: "team";
1676
+ gmail: "gmail";
1677
+ attio: "attio";
1678
+ overview: "overview";
1679
+ "command-view": "command-view";
1680
+ "command-queue": "command-queue";
1681
+ pipeline: "pipeline";
1682
+ lists: "lists";
1683
+ resources: "resources";
1684
+ approve: "approve";
1685
+ reject: "reject";
1686
+ retry: "retry";
1687
+ edit: "edit";
1688
+ view: "view";
1689
+ launch: "launch";
1690
+ escalate: "escalate";
1691
+ promote: "promote";
1692
+ submit: "submit";
1693
+ email: "email";
1694
+ success: "success";
1695
+ warning: "warning";
1696
+ info: "info";
1697
+ pending: "pending";
1698
+ bolt: "bolt";
1699
+ building: "building";
1700
+ briefcase: "briefcase";
1701
+ apps: "apps";
1702
+ graph: "graph";
1703
+ shield: "shield";
1704
+ users: "users";
1705
+ "chart-bar": "chart-bar";
1706
+ search: "search";
1196
1707
  }>, z.ZodString]>;
1197
1708
  declare const TechStackEntrySchema: z.ZodObject<{
1198
1709
  platform: z.ZodString;
1199
1710
  purpose: z.ZodString;
1200
1711
  credentialStatus: z.ZodEnum<{
1201
- configured: "configured";
1202
1712
  pending: "pending";
1713
+ configured: "configured";
1203
1714
  expired: "expired";
1204
1715
  missing: "missing";
1205
1716
  }>;
1206
1717
  isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
1207
1718
  }, z.core.$strip>;
1208
1719
 
1209
- declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["nav.dashboard", "nav.calendar", "nav.sales", "nav.crm", "nav.lead-gen", "nav.projects", "nav.operations", "nav.monitoring", "nav.knowledge", "nav.settings", "nav.admin", "nav.archive", "knowledge.playbook", "knowledge.strategy", "knowledge.reference", "feature.dashboard", "feature.calendar", "feature.business", "feature.sales", "feature.crm", "feature.finance", "feature.lead-gen", "feature.platform", "feature.projects", "feature.operations", "feature.knowledge", "feature.monitoring", "feature.settings", "feature.admin", "feature.archive", "feature.seo", "resource.agent", "resource.workflow", "resource.integration", "resource.database", "resource.user", "resource.team", "integration.gmail", "integration.google-sheets", "integration.attio", "surface.dashboard", "surface.calendar", "surface.overview", "surface.command-view", "surface.command-queue", "surface.pipeline", "surface.lists", "surface.resources", "surface.settings", "status.success", "status.error", "status.warning", "status.info", "status.pending", "action.approve", "action.reject", "action.retry", "action.edit", "action.view", "action.launch", "action.message", "action.escalate", "action.promote", "action.submit", "action.email"];
1720
+ declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["dashboard", "calendar", "sales", "crm", "lead-gen", "projects", "operations", "monitoring", "knowledge", "settings", "admin", "archive", "business", "finance", "platform", "seo", "playbook", "strategy", "reference", "agent", "workflow", "integration", "database", "user", "team", "gmail", "google-sheets", "attio", "overview", "command-view", "command-queue", "pipeline", "lists", "resources", "approve", "reject", "retry", "edit", "view", "launch", "message", "escalate", "promote", "submit", "email", "success", "error", "warning", "info", "pending", "bolt", "building", "briefcase", "apps", "graph", "shield", "users", "chart-bar", "search"];
1210
1721
  declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
1211
- "nav.dashboard": "nav.dashboard";
1212
- "nav.calendar": "nav.calendar";
1213
- "nav.sales": "nav.sales";
1214
- "nav.crm": "nav.crm";
1215
- "nav.lead-gen": "nav.lead-gen";
1216
- "nav.projects": "nav.projects";
1217
- "nav.operations": "nav.operations";
1218
- "nav.monitoring": "nav.monitoring";
1219
- "nav.knowledge": "nav.knowledge";
1220
- "nav.settings": "nav.settings";
1221
- "nav.admin": "nav.admin";
1222
- "nav.archive": "nav.archive";
1223
- "knowledge.playbook": "knowledge.playbook";
1224
- "knowledge.strategy": "knowledge.strategy";
1225
- "knowledge.reference": "knowledge.reference";
1226
- "feature.dashboard": "feature.dashboard";
1227
- "feature.calendar": "feature.calendar";
1228
- "feature.business": "feature.business";
1229
- "feature.sales": "feature.sales";
1230
- "feature.crm": "feature.crm";
1231
- "feature.finance": "feature.finance";
1232
- "feature.lead-gen": "feature.lead-gen";
1233
- "feature.platform": "feature.platform";
1234
- "feature.projects": "feature.projects";
1235
- "feature.operations": "feature.operations";
1236
- "feature.knowledge": "feature.knowledge";
1237
- "feature.monitoring": "feature.monitoring";
1238
- "feature.settings": "feature.settings";
1239
- "feature.admin": "feature.admin";
1240
- "feature.archive": "feature.archive";
1241
- "feature.seo": "feature.seo";
1242
- "resource.agent": "resource.agent";
1243
- "resource.workflow": "resource.workflow";
1244
- "resource.integration": "resource.integration";
1245
- "resource.database": "resource.database";
1246
- "resource.user": "resource.user";
1247
- "resource.team": "resource.team";
1248
- "integration.gmail": "integration.gmail";
1249
- "integration.google-sheets": "integration.google-sheets";
1250
- "integration.attio": "integration.attio";
1251
- "surface.dashboard": "surface.dashboard";
1252
- "surface.calendar": "surface.calendar";
1253
- "surface.overview": "surface.overview";
1254
- "surface.command-view": "surface.command-view";
1255
- "surface.command-queue": "surface.command-queue";
1256
- "surface.pipeline": "surface.pipeline";
1257
- "surface.lists": "surface.lists";
1258
- "surface.resources": "surface.resources";
1259
- "surface.settings": "surface.settings";
1260
- "status.success": "status.success";
1261
- "status.error": "status.error";
1262
- "status.warning": "status.warning";
1263
- "status.info": "status.info";
1264
- "status.pending": "status.pending";
1265
- "action.approve": "action.approve";
1266
- "action.reject": "action.reject";
1267
- "action.retry": "action.retry";
1268
- "action.edit": "action.edit";
1269
- "action.view": "action.view";
1270
- "action.launch": "action.launch";
1271
- "action.message": "action.message";
1272
- "action.escalate": "action.escalate";
1273
- "action.promote": "action.promote";
1274
- "action.submit": "action.submit";
1275
- "action.email": "action.email";
1722
+ message: "message";
1723
+ error: "error";
1724
+ agent: "agent";
1725
+ workflow: "workflow";
1726
+ "google-sheets": "google-sheets";
1727
+ dashboard: "dashboard";
1728
+ calendar: "calendar";
1729
+ sales: "sales";
1730
+ crm: "crm";
1731
+ "lead-gen": "lead-gen";
1732
+ projects: "projects";
1733
+ operations: "operations";
1734
+ monitoring: "monitoring";
1735
+ knowledge: "knowledge";
1736
+ settings: "settings";
1737
+ admin: "admin";
1738
+ archive: "archive";
1739
+ business: "business";
1740
+ finance: "finance";
1741
+ platform: "platform";
1742
+ seo: "seo";
1743
+ playbook: "playbook";
1744
+ strategy: "strategy";
1745
+ reference: "reference";
1746
+ integration: "integration";
1747
+ database: "database";
1748
+ user: "user";
1749
+ team: "team";
1750
+ gmail: "gmail";
1751
+ attio: "attio";
1752
+ overview: "overview";
1753
+ "command-view": "command-view";
1754
+ "command-queue": "command-queue";
1755
+ pipeline: "pipeline";
1756
+ lists: "lists";
1757
+ resources: "resources";
1758
+ approve: "approve";
1759
+ reject: "reject";
1760
+ retry: "retry";
1761
+ edit: "edit";
1762
+ view: "view";
1763
+ launch: "launch";
1764
+ escalate: "escalate";
1765
+ promote: "promote";
1766
+ submit: "submit";
1767
+ email: "email";
1768
+ success: "success";
1769
+ warning: "warning";
1770
+ info: "info";
1771
+ pending: "pending";
1772
+ bolt: "bolt";
1773
+ building: "building";
1774
+ briefcase: "briefcase";
1775
+ apps: "apps";
1776
+ graph: "graph";
1777
+ shield: "shield";
1778
+ users: "users";
1779
+ "chart-bar": "chart-bar";
1780
+ search: "search";
1276
1781
  }>;
1277
1782
  declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
1278
- "nav.dashboard": "nav.dashboard";
1279
- "nav.calendar": "nav.calendar";
1280
- "nav.sales": "nav.sales";
1281
- "nav.crm": "nav.crm";
1282
- "nav.lead-gen": "nav.lead-gen";
1283
- "nav.projects": "nav.projects";
1284
- "nav.operations": "nav.operations";
1285
- "nav.monitoring": "nav.monitoring";
1286
- "nav.knowledge": "nav.knowledge";
1287
- "nav.settings": "nav.settings";
1288
- "nav.admin": "nav.admin";
1289
- "nav.archive": "nav.archive";
1290
- "knowledge.playbook": "knowledge.playbook";
1291
- "knowledge.strategy": "knowledge.strategy";
1292
- "knowledge.reference": "knowledge.reference";
1293
- "feature.dashboard": "feature.dashboard";
1294
- "feature.calendar": "feature.calendar";
1295
- "feature.business": "feature.business";
1296
- "feature.sales": "feature.sales";
1297
- "feature.crm": "feature.crm";
1298
- "feature.finance": "feature.finance";
1299
- "feature.lead-gen": "feature.lead-gen";
1300
- "feature.platform": "feature.platform";
1301
- "feature.projects": "feature.projects";
1302
- "feature.operations": "feature.operations";
1303
- "feature.knowledge": "feature.knowledge";
1304
- "feature.monitoring": "feature.monitoring";
1305
- "feature.settings": "feature.settings";
1306
- "feature.admin": "feature.admin";
1307
- "feature.archive": "feature.archive";
1308
- "feature.seo": "feature.seo";
1309
- "resource.agent": "resource.agent";
1310
- "resource.workflow": "resource.workflow";
1311
- "resource.integration": "resource.integration";
1312
- "resource.database": "resource.database";
1313
- "resource.user": "resource.user";
1314
- "resource.team": "resource.team";
1315
- "integration.gmail": "integration.gmail";
1316
- "integration.google-sheets": "integration.google-sheets";
1317
- "integration.attio": "integration.attio";
1318
- "surface.dashboard": "surface.dashboard";
1319
- "surface.calendar": "surface.calendar";
1320
- "surface.overview": "surface.overview";
1321
- "surface.command-view": "surface.command-view";
1322
- "surface.command-queue": "surface.command-queue";
1323
- "surface.pipeline": "surface.pipeline";
1324
- "surface.lists": "surface.lists";
1325
- "surface.resources": "surface.resources";
1326
- "surface.settings": "surface.settings";
1327
- "status.success": "status.success";
1328
- "status.error": "status.error";
1329
- "status.warning": "status.warning";
1330
- "status.info": "status.info";
1331
- "status.pending": "status.pending";
1332
- "action.approve": "action.approve";
1333
- "action.reject": "action.reject";
1334
- "action.retry": "action.retry";
1335
- "action.edit": "action.edit";
1336
- "action.view": "action.view";
1337
- "action.launch": "action.launch";
1338
- "action.message": "action.message";
1339
- "action.escalate": "action.escalate";
1340
- "action.promote": "action.promote";
1341
- "action.submit": "action.submit";
1342
- "action.email": "action.email";
1783
+ message: "message";
1784
+ error: "error";
1785
+ agent: "agent";
1786
+ workflow: "workflow";
1787
+ "google-sheets": "google-sheets";
1788
+ dashboard: "dashboard";
1789
+ calendar: "calendar";
1790
+ sales: "sales";
1791
+ crm: "crm";
1792
+ "lead-gen": "lead-gen";
1793
+ projects: "projects";
1794
+ operations: "operations";
1795
+ monitoring: "monitoring";
1796
+ knowledge: "knowledge";
1797
+ settings: "settings";
1798
+ admin: "admin";
1799
+ archive: "archive";
1800
+ business: "business";
1801
+ finance: "finance";
1802
+ platform: "platform";
1803
+ seo: "seo";
1804
+ playbook: "playbook";
1805
+ strategy: "strategy";
1806
+ reference: "reference";
1807
+ integration: "integration";
1808
+ database: "database";
1809
+ user: "user";
1810
+ team: "team";
1811
+ gmail: "gmail";
1812
+ attio: "attio";
1813
+ overview: "overview";
1814
+ "command-view": "command-view";
1815
+ "command-queue": "command-queue";
1816
+ pipeline: "pipeline";
1817
+ lists: "lists";
1818
+ resources: "resources";
1819
+ approve: "approve";
1820
+ reject: "reject";
1821
+ retry: "retry";
1822
+ edit: "edit";
1823
+ view: "view";
1824
+ launch: "launch";
1825
+ escalate: "escalate";
1826
+ promote: "promote";
1827
+ submit: "submit";
1828
+ email: "email";
1829
+ success: "success";
1830
+ warning: "warning";
1831
+ info: "info";
1832
+ pending: "pending";
1833
+ bolt: "bolt";
1834
+ building: "building";
1835
+ briefcase: "briefcase";
1836
+ apps: "apps";
1837
+ graph: "graph";
1838
+ shield: "shield";
1839
+ users: "users";
1840
+ "chart-bar": "chart-bar";
1841
+ search: "search";
1343
1842
  }>, z.ZodString]>;
1344
1843
  type OrganizationModelBuiltinIconToken$1 = (typeof ORGANIZATION_MODEL_ICON_TOKENS)[number];
1345
1844
 
@@ -1560,6 +2059,7 @@ declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOb
1560
2059
  }>>;
1561
2060
  }, z.core.$strip>>>;
1562
2061
  declare const LEAD_GEN_ACTION_ENTRIES: Record<string, z.infer<typeof ActionSchema>>;
2062
+ declare const CRM_ACTION_ENTRIES: Record<string, z.infer<typeof ActionSchema>>;
1563
2063
  declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
1564
2064
  declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
1565
2065
 
@@ -1821,9 +2321,10 @@ declare const GoalsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObje
1821
2321
  declare const DEFAULT_ORGANIZATION_MODEL_GOALS: z.infer<typeof GoalsDomainSchema>;
1822
2322
 
1823
2323
  declare const KnowledgeTargetKindSchema: z.ZodEnum<{
2324
+ knowledge: "knowledge";
1824
2325
  system: "system";
1825
2326
  action: "action";
1826
- knowledge: "knowledge";
2327
+ ontology: "ontology";
1827
2328
  role: "role";
1828
2329
  goal: "goal";
1829
2330
  stage: "stage";
@@ -1834,9 +2335,10 @@ declare const KnowledgeTargetKindSchema: z.ZodEnum<{
1834
2335
  }>;
1835
2336
  declare const KnowledgeTargetRefSchema: z.ZodObject<{
1836
2337
  kind: z.ZodEnum<{
2338
+ knowledge: "knowledge";
1837
2339
  system: "system";
1838
2340
  action: "action";
1839
- knowledge: "knowledge";
2341
+ ontology: "ontology";
1840
2342
  role: "role";
1841
2343
  goal: "goal";
1842
2344
  stage: "stage";
@@ -1850,9 +2352,10 @@ declare const KnowledgeTargetRefSchema: z.ZodObject<{
1850
2352
  declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1851
2353
  target: z.ZodObject<{
1852
2354
  kind: z.ZodEnum<{
2355
+ knowledge: "knowledge";
1853
2356
  system: "system";
1854
2357
  action: "action";
1855
- knowledge: "knowledge";
2358
+ ontology: "ontology";
1856
2359
  role: "role";
1857
2360
  goal: "goal";
1858
2361
  stage: "stage";
@@ -1864,10 +2367,10 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1864
2367
  id: z.ZodString;
1865
2368
  }, z.core.$strip>;
1866
2369
  }, z.core.$strip>, z.ZodObject<{
1867
- nodeId: z.ZodString;
2370
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1868
2371
  }, z.core.$strip>]>, z.ZodTransform<{
1869
2372
  target: {
1870
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2373
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1871
2374
  id: string;
1872
2375
  };
1873
2376
  nodeId: string;
@@ -1875,7 +2378,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1875
2378
  nodeId: string;
1876
2379
  } | {
1877
2380
  target: {
1878
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2381
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1879
2382
  id: string;
1880
2383
  };
1881
2384
  }>>;
@@ -1894,80 +2397,76 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1894
2397
  title: z.ZodString;
1895
2398
  summary: z.ZodString;
1896
2399
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1897
- "nav.dashboard": "nav.dashboard";
1898
- "nav.calendar": "nav.calendar";
1899
- "nav.sales": "nav.sales";
1900
- "nav.crm": "nav.crm";
1901
- "nav.lead-gen": "nav.lead-gen";
1902
- "nav.projects": "nav.projects";
1903
- "nav.operations": "nav.operations";
1904
- "nav.monitoring": "nav.monitoring";
1905
- "nav.knowledge": "nav.knowledge";
1906
- "nav.settings": "nav.settings";
1907
- "nav.admin": "nav.admin";
1908
- "nav.archive": "nav.archive";
1909
- "knowledge.playbook": "knowledge.playbook";
1910
- "knowledge.strategy": "knowledge.strategy";
1911
- "knowledge.reference": "knowledge.reference";
1912
- "feature.dashboard": "feature.dashboard";
1913
- "feature.calendar": "feature.calendar";
1914
- "feature.business": "feature.business";
1915
- "feature.sales": "feature.sales";
1916
- "feature.crm": "feature.crm";
1917
- "feature.finance": "feature.finance";
1918
- "feature.lead-gen": "feature.lead-gen";
1919
- "feature.platform": "feature.platform";
1920
- "feature.projects": "feature.projects";
1921
- "feature.operations": "feature.operations";
1922
- "feature.knowledge": "feature.knowledge";
1923
- "feature.monitoring": "feature.monitoring";
1924
- "feature.settings": "feature.settings";
1925
- "feature.admin": "feature.admin";
1926
- "feature.archive": "feature.archive";
1927
- "feature.seo": "feature.seo";
1928
- "resource.agent": "resource.agent";
1929
- "resource.workflow": "resource.workflow";
1930
- "resource.integration": "resource.integration";
1931
- "resource.database": "resource.database";
1932
- "resource.user": "resource.user";
1933
- "resource.team": "resource.team";
1934
- "integration.gmail": "integration.gmail";
1935
- "integration.google-sheets": "integration.google-sheets";
1936
- "integration.attio": "integration.attio";
1937
- "surface.dashboard": "surface.dashboard";
1938
- "surface.calendar": "surface.calendar";
1939
- "surface.overview": "surface.overview";
1940
- "surface.command-view": "surface.command-view";
1941
- "surface.command-queue": "surface.command-queue";
1942
- "surface.pipeline": "surface.pipeline";
1943
- "surface.lists": "surface.lists";
1944
- "surface.resources": "surface.resources";
1945
- "surface.settings": "surface.settings";
1946
- "status.success": "status.success";
1947
- "status.error": "status.error";
1948
- "status.warning": "status.warning";
1949
- "status.info": "status.info";
1950
- "status.pending": "status.pending";
1951
- "action.approve": "action.approve";
1952
- "action.reject": "action.reject";
1953
- "action.retry": "action.retry";
1954
- "action.edit": "action.edit";
1955
- "action.view": "action.view";
1956
- "action.launch": "action.launch";
1957
- "action.message": "action.message";
1958
- "action.escalate": "action.escalate";
1959
- "action.promote": "action.promote";
1960
- "action.submit": "action.submit";
1961
- "action.email": "action.email";
2400
+ message: "message";
2401
+ error: "error";
2402
+ agent: "agent";
2403
+ workflow: "workflow";
2404
+ "google-sheets": "google-sheets";
2405
+ dashboard: "dashboard";
2406
+ calendar: "calendar";
2407
+ sales: "sales";
2408
+ crm: "crm";
2409
+ "lead-gen": "lead-gen";
2410
+ projects: "projects";
2411
+ operations: "operations";
2412
+ monitoring: "monitoring";
2413
+ knowledge: "knowledge";
2414
+ settings: "settings";
2415
+ admin: "admin";
2416
+ archive: "archive";
2417
+ business: "business";
2418
+ finance: "finance";
2419
+ platform: "platform";
2420
+ seo: "seo";
2421
+ playbook: "playbook";
2422
+ strategy: "strategy";
2423
+ reference: "reference";
2424
+ integration: "integration";
2425
+ database: "database";
2426
+ user: "user";
2427
+ team: "team";
2428
+ gmail: "gmail";
2429
+ attio: "attio";
2430
+ overview: "overview";
2431
+ "command-view": "command-view";
2432
+ "command-queue": "command-queue";
2433
+ pipeline: "pipeline";
2434
+ lists: "lists";
2435
+ resources: "resources";
2436
+ approve: "approve";
2437
+ reject: "reject";
2438
+ retry: "retry";
2439
+ edit: "edit";
2440
+ view: "view";
2441
+ launch: "launch";
2442
+ escalate: "escalate";
2443
+ promote: "promote";
2444
+ submit: "submit";
2445
+ email: "email";
2446
+ success: "success";
2447
+ warning: "warning";
2448
+ info: "info";
2449
+ pending: "pending";
2450
+ bolt: "bolt";
2451
+ building: "building";
2452
+ briefcase: "briefcase";
2453
+ apps: "apps";
2454
+ graph: "graph";
2455
+ shield: "shield";
2456
+ users: "users";
2457
+ "chart-bar": "chart-bar";
2458
+ search: "search";
1962
2459
  }>, z.ZodString]>>;
1963
2460
  externalUrl: z.ZodOptional<z.ZodString>;
2461
+ sourceFilePath: z.ZodOptional<z.ZodString>;
1964
2462
  body: z.ZodString;
1965
2463
  links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1966
2464
  target: z.ZodObject<{
1967
2465
  kind: z.ZodEnum<{
2466
+ knowledge: "knowledge";
1968
2467
  system: "system";
1969
2468
  action: "action";
1970
- knowledge: "knowledge";
2469
+ ontology: "ontology";
1971
2470
  role: "role";
1972
2471
  goal: "goal";
1973
2472
  stage: "stage";
@@ -1979,10 +2478,10 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1979
2478
  id: z.ZodString;
1980
2479
  }, z.core.$strip>;
1981
2480
  }, z.core.$strip>, z.ZodObject<{
1982
- nodeId: z.ZodString;
2481
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1983
2482
  }, z.core.$strip>]>, z.ZodTransform<{
1984
2483
  target: {
1985
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2484
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1986
2485
  id: string;
1987
2486
  };
1988
2487
  nodeId: string;
@@ -1990,7 +2489,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1990
2489
  nodeId: string;
1991
2490
  } | {
1992
2491
  target: {
1993
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2492
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1994
2493
  id: string;
1995
2494
  };
1996
2495
  }>>>>;
@@ -2007,80 +2506,76 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2007
2506
  title: z.ZodString;
2008
2507
  summary: z.ZodString;
2009
2508
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2010
- "nav.dashboard": "nav.dashboard";
2011
- "nav.calendar": "nav.calendar";
2012
- "nav.sales": "nav.sales";
2013
- "nav.crm": "nav.crm";
2014
- "nav.lead-gen": "nav.lead-gen";
2015
- "nav.projects": "nav.projects";
2016
- "nav.operations": "nav.operations";
2017
- "nav.monitoring": "nav.monitoring";
2018
- "nav.knowledge": "nav.knowledge";
2019
- "nav.settings": "nav.settings";
2020
- "nav.admin": "nav.admin";
2021
- "nav.archive": "nav.archive";
2022
- "knowledge.playbook": "knowledge.playbook";
2023
- "knowledge.strategy": "knowledge.strategy";
2024
- "knowledge.reference": "knowledge.reference";
2025
- "feature.dashboard": "feature.dashboard";
2026
- "feature.calendar": "feature.calendar";
2027
- "feature.business": "feature.business";
2028
- "feature.sales": "feature.sales";
2029
- "feature.crm": "feature.crm";
2030
- "feature.finance": "feature.finance";
2031
- "feature.lead-gen": "feature.lead-gen";
2032
- "feature.platform": "feature.platform";
2033
- "feature.projects": "feature.projects";
2034
- "feature.operations": "feature.operations";
2035
- "feature.knowledge": "feature.knowledge";
2036
- "feature.monitoring": "feature.monitoring";
2037
- "feature.settings": "feature.settings";
2038
- "feature.admin": "feature.admin";
2039
- "feature.archive": "feature.archive";
2040
- "feature.seo": "feature.seo";
2041
- "resource.agent": "resource.agent";
2042
- "resource.workflow": "resource.workflow";
2043
- "resource.integration": "resource.integration";
2044
- "resource.database": "resource.database";
2045
- "resource.user": "resource.user";
2046
- "resource.team": "resource.team";
2047
- "integration.gmail": "integration.gmail";
2048
- "integration.google-sheets": "integration.google-sheets";
2049
- "integration.attio": "integration.attio";
2050
- "surface.dashboard": "surface.dashboard";
2051
- "surface.calendar": "surface.calendar";
2052
- "surface.overview": "surface.overview";
2053
- "surface.command-view": "surface.command-view";
2054
- "surface.command-queue": "surface.command-queue";
2055
- "surface.pipeline": "surface.pipeline";
2056
- "surface.lists": "surface.lists";
2057
- "surface.resources": "surface.resources";
2058
- "surface.settings": "surface.settings";
2059
- "status.success": "status.success";
2060
- "status.error": "status.error";
2061
- "status.warning": "status.warning";
2062
- "status.info": "status.info";
2063
- "status.pending": "status.pending";
2064
- "action.approve": "action.approve";
2065
- "action.reject": "action.reject";
2066
- "action.retry": "action.retry";
2067
- "action.edit": "action.edit";
2068
- "action.view": "action.view";
2069
- "action.launch": "action.launch";
2070
- "action.message": "action.message";
2071
- "action.escalate": "action.escalate";
2072
- "action.promote": "action.promote";
2073
- "action.submit": "action.submit";
2074
- "action.email": "action.email";
2509
+ message: "message";
2510
+ error: "error";
2511
+ agent: "agent";
2512
+ workflow: "workflow";
2513
+ "google-sheets": "google-sheets";
2514
+ dashboard: "dashboard";
2515
+ calendar: "calendar";
2516
+ sales: "sales";
2517
+ crm: "crm";
2518
+ "lead-gen": "lead-gen";
2519
+ projects: "projects";
2520
+ operations: "operations";
2521
+ monitoring: "monitoring";
2522
+ knowledge: "knowledge";
2523
+ settings: "settings";
2524
+ admin: "admin";
2525
+ archive: "archive";
2526
+ business: "business";
2527
+ finance: "finance";
2528
+ platform: "platform";
2529
+ seo: "seo";
2530
+ playbook: "playbook";
2531
+ strategy: "strategy";
2532
+ reference: "reference";
2533
+ integration: "integration";
2534
+ database: "database";
2535
+ user: "user";
2536
+ team: "team";
2537
+ gmail: "gmail";
2538
+ attio: "attio";
2539
+ overview: "overview";
2540
+ "command-view": "command-view";
2541
+ "command-queue": "command-queue";
2542
+ pipeline: "pipeline";
2543
+ lists: "lists";
2544
+ resources: "resources";
2545
+ approve: "approve";
2546
+ reject: "reject";
2547
+ retry: "retry";
2548
+ edit: "edit";
2549
+ view: "view";
2550
+ launch: "launch";
2551
+ escalate: "escalate";
2552
+ promote: "promote";
2553
+ submit: "submit";
2554
+ email: "email";
2555
+ success: "success";
2556
+ warning: "warning";
2557
+ info: "info";
2558
+ pending: "pending";
2559
+ bolt: "bolt";
2560
+ building: "building";
2561
+ briefcase: "briefcase";
2562
+ apps: "apps";
2563
+ graph: "graph";
2564
+ shield: "shield";
2565
+ users: "users";
2566
+ "chart-bar": "chart-bar";
2567
+ search: "search";
2075
2568
  }>, z.ZodString]>>;
2076
2569
  externalUrl: z.ZodOptional<z.ZodString>;
2570
+ sourceFilePath: z.ZodOptional<z.ZodString>;
2077
2571
  body: z.ZodString;
2078
2572
  links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
2079
2573
  target: z.ZodObject<{
2080
2574
  kind: z.ZodEnum<{
2575
+ knowledge: "knowledge";
2081
2576
  system: "system";
2082
2577
  action: "action";
2083
- knowledge: "knowledge";
2578
+ ontology: "ontology";
2084
2579
  role: "role";
2085
2580
  goal: "goal";
2086
2581
  stage: "stage";
@@ -2092,10 +2587,10 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2092
2587
  id: z.ZodString;
2093
2588
  }, z.core.$strip>;
2094
2589
  }, z.core.$strip>, z.ZodObject<{
2095
- nodeId: z.ZodString;
2590
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
2096
2591
  }, z.core.$strip>]>, z.ZodTransform<{
2097
2592
  target: {
2098
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2593
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2099
2594
  id: string;
2100
2595
  };
2101
2596
  nodeId: string;
@@ -2103,7 +2598,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2103
2598
  nodeId: string;
2104
2599
  } | {
2105
2600
  target: {
2106
- kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2601
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
2107
2602
  id: string;
2108
2603
  };
2109
2604
  }>>>>;
@@ -2134,6 +2629,14 @@ declare const ScriptResourceLanguageSchema: z.ZodEnum<{
2134
2629
  typescript: "typescript";
2135
2630
  python: "python";
2136
2631
  }>;
2632
+ declare const CodeReferenceRoleSchema: z.ZodEnum<{
2633
+ schema: "schema";
2634
+ config: "config";
2635
+ entrypoint: "entrypoint";
2636
+ handler: "handler";
2637
+ test: "test";
2638
+ docs: "docs";
2639
+ }>;
2137
2640
  declare const ResourceIdSchema: z.ZodString;
2138
2641
  declare const EventIdSchema: z.ZodString;
2139
2642
  declare const EventEmissionDescriptorSchema: z.ZodObject<{
@@ -2166,6 +2669,26 @@ declare const EventDescriptorSchema: z.ZodObject<{
2166
2669
  resource: "resource";
2167
2670
  }>;
2168
2671
  }, z.core.$strip>;
2672
+ declare const ResourceOntologyBindingSchema: z.ZodObject<{
2673
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2674
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2675
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2676
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2677
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2678
+ }, z.core.$strip>;
2679
+ declare const CodeReferenceSchema: z.ZodObject<{
2680
+ path: z.ZodString;
2681
+ role: z.ZodEnum<{
2682
+ schema: "schema";
2683
+ config: "config";
2684
+ entrypoint: "entrypoint";
2685
+ handler: "handler";
2686
+ test: "test";
2687
+ docs: "docs";
2688
+ }>;
2689
+ symbol: z.ZodOptional<z.ZodString>;
2690
+ description: z.ZodOptional<z.ZodString>;
2691
+ }, z.core.$strip>;
2169
2692
  declare const WorkflowResourceEntrySchema: z.ZodObject<{
2170
2693
  id: z.ZodString;
2171
2694
  order: z.ZodDefault<z.ZodNumber>;
@@ -2176,6 +2699,26 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
2176
2699
  active: "active";
2177
2700
  archived: "archived";
2178
2701
  }>;
2702
+ ontology: z.ZodOptional<z.ZodObject<{
2703
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2704
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2705
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2706
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2707
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2708
+ }, z.core.$strip>>;
2709
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2710
+ path: z.ZodString;
2711
+ role: z.ZodEnum<{
2712
+ schema: "schema";
2713
+ config: "config";
2714
+ entrypoint: "entrypoint";
2715
+ handler: "handler";
2716
+ test: "test";
2717
+ docs: "docs";
2718
+ }>;
2719
+ symbol: z.ZodOptional<z.ZodString>;
2720
+ description: z.ZodOptional<z.ZodString>;
2721
+ }, z.core.$strip>>>;
2179
2722
  kind: z.ZodLiteral<"workflow">;
2180
2723
  actionKey: z.ZodOptional<z.ZodString>;
2181
2724
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2201,6 +2744,26 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
2201
2744
  active: "active";
2202
2745
  archived: "archived";
2203
2746
  }>;
2747
+ ontology: z.ZodOptional<z.ZodObject<{
2748
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2749
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2750
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2751
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2752
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2753
+ }, z.core.$strip>>;
2754
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2755
+ path: z.ZodString;
2756
+ role: z.ZodEnum<{
2757
+ schema: "schema";
2758
+ config: "config";
2759
+ entrypoint: "entrypoint";
2760
+ handler: "handler";
2761
+ test: "test";
2762
+ docs: "docs";
2763
+ }>;
2764
+ symbol: z.ZodOptional<z.ZodString>;
2765
+ description: z.ZodOptional<z.ZodString>;
2766
+ }, z.core.$strip>>>;
2204
2767
  kind: z.ZodLiteral<"agent">;
2205
2768
  agentKind: z.ZodEnum<{
2206
2769
  platform: "platform";
@@ -2256,6 +2819,26 @@ declare const IntegrationResourceEntrySchema: z.ZodObject<{
2256
2819
  active: "active";
2257
2820
  archived: "archived";
2258
2821
  }>;
2822
+ ontology: z.ZodOptional<z.ZodObject<{
2823
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2824
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2825
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2826
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2827
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2828
+ }, z.core.$strip>>;
2829
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2830
+ path: z.ZodString;
2831
+ role: z.ZodEnum<{
2832
+ schema: "schema";
2833
+ config: "config";
2834
+ entrypoint: "entrypoint";
2835
+ handler: "handler";
2836
+ test: "test";
2837
+ docs: "docs";
2838
+ }>;
2839
+ symbol: z.ZodOptional<z.ZodString>;
2840
+ description: z.ZodOptional<z.ZodString>;
2841
+ }, z.core.$strip>>>;
2259
2842
  kind: z.ZodLiteral<"integration">;
2260
2843
  provider: z.ZodString;
2261
2844
  }, z.core.$strip>;
@@ -2272,6 +2855,26 @@ declare const ScriptResourceEntrySchema: z.ZodObject<{
2272
2855
  active: "active";
2273
2856
  archived: "archived";
2274
2857
  }>;
2858
+ ontology: z.ZodOptional<z.ZodObject<{
2859
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2860
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2861
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2862
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2863
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2864
+ }, z.core.$strip>>;
2865
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2866
+ path: z.ZodString;
2867
+ role: z.ZodEnum<{
2868
+ schema: "schema";
2869
+ config: "config";
2870
+ entrypoint: "entrypoint";
2871
+ handler: "handler";
2872
+ test: "test";
2873
+ docs: "docs";
2874
+ }>;
2875
+ symbol: z.ZodOptional<z.ZodString>;
2876
+ description: z.ZodOptional<z.ZodString>;
2877
+ }, z.core.$strip>>>;
2275
2878
  kind: z.ZodLiteral<"script">;
2276
2879
  language: z.ZodEnum<{
2277
2880
  shell: "shell";
@@ -2293,6 +2896,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2293
2896
  active: "active";
2294
2897
  archived: "archived";
2295
2898
  }>;
2899
+ ontology: z.ZodOptional<z.ZodObject<{
2900
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2901
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2902
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2903
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2904
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2905
+ }, z.core.$strip>>;
2906
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2907
+ path: z.ZodString;
2908
+ role: z.ZodEnum<{
2909
+ schema: "schema";
2910
+ config: "config";
2911
+ entrypoint: "entrypoint";
2912
+ handler: "handler";
2913
+ test: "test";
2914
+ docs: "docs";
2915
+ }>;
2916
+ symbol: z.ZodOptional<z.ZodString>;
2917
+ description: z.ZodOptional<z.ZodString>;
2918
+ }, z.core.$strip>>>;
2296
2919
  kind: z.ZodLiteral<"workflow">;
2297
2920
  actionKey: z.ZodOptional<z.ZodString>;
2298
2921
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2317,6 +2940,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2317
2940
  active: "active";
2318
2941
  archived: "archived";
2319
2942
  }>;
2943
+ ontology: z.ZodOptional<z.ZodObject<{
2944
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
2945
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
2946
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2947
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2948
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2949
+ }, z.core.$strip>>;
2950
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2951
+ path: z.ZodString;
2952
+ role: z.ZodEnum<{
2953
+ schema: "schema";
2954
+ config: "config";
2955
+ entrypoint: "entrypoint";
2956
+ handler: "handler";
2957
+ test: "test";
2958
+ docs: "docs";
2959
+ }>;
2960
+ symbol: z.ZodOptional<z.ZodString>;
2961
+ description: z.ZodOptional<z.ZodString>;
2962
+ }, z.core.$strip>>>;
2320
2963
  kind: z.ZodLiteral<"agent">;
2321
2964
  agentKind: z.ZodEnum<{
2322
2965
  platform: "platform";
@@ -2371,6 +3014,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2371
3014
  active: "active";
2372
3015
  archived: "archived";
2373
3016
  }>;
3017
+ ontology: z.ZodOptional<z.ZodObject<{
3018
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3019
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3020
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3021
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3022
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3023
+ }, z.core.$strip>>;
3024
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3025
+ path: z.ZodString;
3026
+ role: z.ZodEnum<{
3027
+ schema: "schema";
3028
+ config: "config";
3029
+ entrypoint: "entrypoint";
3030
+ handler: "handler";
3031
+ test: "test";
3032
+ docs: "docs";
3033
+ }>;
3034
+ symbol: z.ZodOptional<z.ZodString>;
3035
+ description: z.ZodOptional<z.ZodString>;
3036
+ }, z.core.$strip>>>;
2374
3037
  kind: z.ZodLiteral<"integration">;
2375
3038
  provider: z.ZodString;
2376
3039
  }, z.core.$strip>, z.ZodObject<{
@@ -2383,6 +3046,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2383
3046
  active: "active";
2384
3047
  archived: "archived";
2385
3048
  }>;
3049
+ ontology: z.ZodOptional<z.ZodObject<{
3050
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3051
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3052
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3053
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3054
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3055
+ }, z.core.$strip>>;
3056
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3057
+ path: z.ZodString;
3058
+ role: z.ZodEnum<{
3059
+ schema: "schema";
3060
+ config: "config";
3061
+ entrypoint: "entrypoint";
3062
+ handler: "handler";
3063
+ test: "test";
3064
+ docs: "docs";
3065
+ }>;
3066
+ symbol: z.ZodOptional<z.ZodString>;
3067
+ description: z.ZodOptional<z.ZodString>;
3068
+ }, z.core.$strip>>>;
2386
3069
  kind: z.ZodLiteral<"script">;
2387
3070
  language: z.ZodEnum<{
2388
3071
  shell: "shell";
@@ -2404,6 +3087,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2404
3087
  active: "active";
2405
3088
  archived: "archived";
2406
3089
  }>;
3090
+ ontology: z.ZodOptional<z.ZodObject<{
3091
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3092
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3093
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3094
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3095
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3096
+ }, z.core.$strip>>;
3097
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3098
+ path: z.ZodString;
3099
+ role: z.ZodEnum<{
3100
+ schema: "schema";
3101
+ config: "config";
3102
+ entrypoint: "entrypoint";
3103
+ handler: "handler";
3104
+ test: "test";
3105
+ docs: "docs";
3106
+ }>;
3107
+ symbol: z.ZodOptional<z.ZodString>;
3108
+ description: z.ZodOptional<z.ZodString>;
3109
+ }, z.core.$strip>>>;
2407
3110
  kind: z.ZodLiteral<"workflow">;
2408
3111
  actionKey: z.ZodOptional<z.ZodString>;
2409
3112
  emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2428,6 +3131,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2428
3131
  active: "active";
2429
3132
  archived: "archived";
2430
3133
  }>;
3134
+ ontology: z.ZodOptional<z.ZodObject<{
3135
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3136
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3137
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3138
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3139
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3140
+ }, z.core.$strip>>;
3141
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3142
+ path: z.ZodString;
3143
+ role: z.ZodEnum<{
3144
+ schema: "schema";
3145
+ config: "config";
3146
+ entrypoint: "entrypoint";
3147
+ handler: "handler";
3148
+ test: "test";
3149
+ docs: "docs";
3150
+ }>;
3151
+ symbol: z.ZodOptional<z.ZodString>;
3152
+ description: z.ZodOptional<z.ZodString>;
3153
+ }, z.core.$strip>>>;
2431
3154
  kind: z.ZodLiteral<"agent">;
2432
3155
  agentKind: z.ZodEnum<{
2433
3156
  platform: "platform";
@@ -2482,6 +3205,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2482
3205
  active: "active";
2483
3206
  archived: "archived";
2484
3207
  }>;
3208
+ ontology: z.ZodOptional<z.ZodObject<{
3209
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3210
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3211
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3212
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3213
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3214
+ }, z.core.$strip>>;
3215
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3216
+ path: z.ZodString;
3217
+ role: z.ZodEnum<{
3218
+ schema: "schema";
3219
+ config: "config";
3220
+ entrypoint: "entrypoint";
3221
+ handler: "handler";
3222
+ test: "test";
3223
+ docs: "docs";
3224
+ }>;
3225
+ symbol: z.ZodOptional<z.ZodString>;
3226
+ description: z.ZodOptional<z.ZodString>;
3227
+ }, z.core.$strip>>>;
2485
3228
  kind: z.ZodLiteral<"integration">;
2486
3229
  provider: z.ZodString;
2487
3230
  }, z.core.$strip>, z.ZodObject<{
@@ -2494,6 +3237,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2494
3237
  active: "active";
2495
3238
  archived: "archived";
2496
3239
  }>;
3240
+ ontology: z.ZodOptional<z.ZodObject<{
3241
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
3242
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
3243
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3244
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3245
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
3246
+ }, z.core.$strip>>;
3247
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
3248
+ path: z.ZodString;
3249
+ role: z.ZodEnum<{
3250
+ schema: "schema";
3251
+ config: "config";
3252
+ entrypoint: "entrypoint";
3253
+ handler: "handler";
3254
+ test: "test";
3255
+ docs: "docs";
3256
+ }>;
3257
+ symbol: z.ZodOptional<z.ZodString>;
3258
+ description: z.ZodOptional<z.ZodString>;
3259
+ }, z.core.$strip>>>;
2497
3260
  kind: z.ZodLiteral<"script">;
2498
3261
  language: z.ZodEnum<{
2499
3262
  shell: "shell";
@@ -2791,11 +3554,14 @@ type OrganizationModelSystemStatus = z.infer<typeof SystemStatusSchema>;
2791
3554
  type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
2792
3555
  type OrganizationModelResourceEntry = z.infer<typeof ResourceEntrySchema>;
2793
3556
  type OrganizationModelResourceId = z.infer<typeof ResourceIdSchema>;
3557
+ type OrganizationModelCodeReference = z.infer<typeof CodeReferenceSchema>;
3558
+ type OrganizationModelCodeReferenceRole = z.infer<typeof CodeReferenceRoleSchema>;
2794
3559
  type EventId = z.infer<typeof EventIdSchema>;
2795
3560
  type EventEmissionDescriptor = z.infer<typeof EventEmissionDescriptorSchema>;
2796
3561
  type EventDescriptor = z.infer<typeof EventDescriptorSchema>;
2797
3562
  type OrganizationModelResourceKind = z.infer<typeof ResourceKindSchema>;
2798
3563
  type OrganizationModelResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
3564
+ type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>;
2799
3565
  type OrganizationModelAgentKind = z.infer<typeof AgentKindSchema>;
2800
3566
  type OrganizationModelScriptResourceLanguage = z.infer<typeof ScriptResourceLanguageSchema>;
2801
3567
  type OrganizationModelScriptResourceSource = z.infer<typeof ScriptResourceSourceSchema>;
@@ -2871,8 +3637,16 @@ type ResolvedSystemEntry = OrganizationModelSystemEntry & {
2871
3637
  type ResolvedOrganizationModel = Omit<OrganizationModel, 'systems'> & {
2872
3638
  systems: Record<string, ResolvedSystemEntry>;
2873
3639
  };
3640
+ type ResolveOrganizationModelOptions = {
3641
+ /**
3642
+ * Tenant-style overrides merge against the generic default fixture by
3643
+ * default. Full canonical models can disable that merge to avoid inheriting
3644
+ * fixture-only Systems.
3645
+ */
3646
+ mergeDefaults?: boolean;
3647
+ };
2874
3648
  declare function defineOrganizationModel<T extends DeepPartial<OrganizationModel>>(model: T): T;
2875
- declare function resolveOrganizationModel(override?: DeepPartial<OrganizationModel>, organizationId?: string): OrganizationModel;
3649
+ declare function resolveOrganizationModel(override?: DeepPartial<OrganizationModel>, organizationIdOrOptions?: string | ResolveOrganizationModelOptions, options?: ResolveOrganizationModelOptions): OrganizationModel;
2876
3650
  /**
2877
3651
  * Resolve the organization model and enrich each flat system entry in
2878
3652
  * `model.systems` with the list of resources whose `systemPath` exactly
@@ -2933,5 +3707,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
2933
3707
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
2934
3708
  };
2935
3709
 
2936
- export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_ENTITIES, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LEAD_GEN_ACTION_ENTRIES, LEAD_GEN_STAGE_CATALOG, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, createFoundationOrganizationModel, defineOrganizationModel, defineResource, defineResources, findOrganizationActionById, getSortedSidebarEntries, resolveOrganizationModel, resolveOrganizationModelWithResources };
2937
- export type { DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelWorkflowResourceEntry, ResolvedOrganizationModel, ResolvedSystemEntry };
3710
+ export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CRM_ACTION_ENTRIES, CodeReferenceRoleSchema, CodeReferenceSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_ENTITIES, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LEAD_GEN_ACTION_ENTRIES, LEAD_GEN_STAGE_CATALOG, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, createFoundationOrganizationModel, defineOrganizationModel, defineResource, defineResources, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseOntologyId, resolveOrganizationModel, resolveOrganizationModelWithResources };
3711
+ export type { DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelWorkflowResourceEntry, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry };