@elevasis/core 0.25.0 → 0.26.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 (66) hide show
  1. package/dist/index.d.ts +166 -85
  2. package/dist/index.js +146 -1346
  3. package/dist/knowledge/index.d.ts +27 -38
  4. package/dist/knowledge/index.js +1 -1
  5. package/dist/organization-model/index.d.ts +166 -85
  6. package/dist/organization-model/index.js +146 -1346
  7. package/dist/test-utils/index.d.ts +23 -31
  8. package/dist/test-utils/index.js +75 -1238
  9. package/package.json +1 -1
  10. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +14 -2
  11. package/src/business/acquisition/api-schemas.test.ts +70 -77
  12. package/src/business/acquisition/api-schemas.ts +21 -42
  13. package/src/business/acquisition/derive-actions.test.ts +11 -21
  14. package/src/business/acquisition/derive-actions.ts +61 -14
  15. package/src/business/acquisition/ontology-validation.ts +4 -4
  16. package/src/business/acquisition/types.ts +7 -8
  17. package/src/knowledge/queries.ts +0 -1
  18. package/src/organization-model/__tests__/content-kinds-registry.test.ts +35 -210
  19. package/src/organization-model/__tests__/defaults.test.ts +4 -4
  20. package/src/organization-model/__tests__/domains/actions.test.ts +12 -36
  21. package/src/organization-model/__tests__/domains/offerings.test.ts +13 -6
  22. package/src/organization-model/__tests__/domains/resources.test.ts +497 -350
  23. package/src/organization-model/__tests__/domains/systems.test.ts +6 -7
  24. package/src/organization-model/__tests__/flatten-additive-merge.test.ts +68 -80
  25. package/src/organization-model/__tests__/foundation.test.ts +81 -14
  26. package/src/organization-model/__tests__/graph.test.ts +662 -694
  27. package/src/organization-model/__tests__/knowledge.test.ts +31 -17
  28. package/src/organization-model/__tests__/lookup-helpers.test.ts +128 -438
  29. package/src/organization-model/__tests__/migration-helpers.test.ts +362 -591
  30. package/src/organization-model/__tests__/prospecting-ssot.test.ts +68 -103
  31. package/src/organization-model/__tests__/published-zero-leak.test.ts +17 -0
  32. package/src/organization-model/__tests__/recursive-system-schema.test.ts +159 -532
  33. package/src/organization-model/__tests__/resolve.test.ts +79 -42
  34. package/src/organization-model/__tests__/schema.test.ts +65 -56
  35. package/src/organization-model/catalogs/lead-gen.ts +0 -103
  36. package/src/organization-model/defaults.ts +17 -702
  37. package/src/organization-model/domains/actions.ts +116 -333
  38. package/src/organization-model/domains/knowledge.ts +15 -7
  39. package/src/organization-model/domains/projects.ts +4 -4
  40. package/src/organization-model/domains/prospecting.ts +405 -395
  41. package/src/organization-model/domains/resources.ts +206 -135
  42. package/src/organization-model/domains/sales.ts +5 -5
  43. package/src/organization-model/domains/systems.ts +8 -23
  44. package/src/organization-model/graph/build.ts +223 -294
  45. package/src/organization-model/graph/schema.ts +2 -3
  46. package/src/organization-model/graph/types.ts +12 -14
  47. package/src/organization-model/helpers.ts +130 -218
  48. package/src/organization-model/index.ts +104 -124
  49. package/src/organization-model/migration-helpers.ts +211 -249
  50. package/src/organization-model/ontology.ts +0 -60
  51. package/src/organization-model/organization-graph.mdx +4 -5
  52. package/src/organization-model/organization-model.mdx +1 -1
  53. package/src/organization-model/published.ts +236 -226
  54. package/src/organization-model/resolve.ts +4 -5
  55. package/src/organization-model/schema.ts +610 -704
  56. package/src/organization-model/types.ts +167 -161
  57. package/src/platform/registry/__tests__/validation.test.ts +23 -0
  58. package/src/platform/registry/validation.ts +13 -2
  59. package/src/reference/_generated/contracts.md +14 -2
  60. package/src/organization-model/content-kinds/config.ts +0 -36
  61. package/src/organization-model/content-kinds/index.ts +0 -78
  62. package/src/organization-model/content-kinds/pipeline.ts +0 -68
  63. package/src/organization-model/content-kinds/registry.ts +0 -44
  64. package/src/organization-model/content-kinds/status.ts +0 -71
  65. package/src/organization-model/content-kinds/template.ts +0 -83
  66. package/src/organization-model/content-kinds/types.ts +0 -117
package/dist/index.d.ts CHANGED
@@ -279,7 +279,6 @@ type SystemLike = {
279
279
  title?: string;
280
280
  description?: string;
281
281
  ontology?: OntologyScope;
282
- content?: Record<string, ContentLike>;
283
282
  systems?: Record<string, SystemLike>;
284
283
  subsystems?: Record<string, SystemLike>;
285
284
  };
@@ -310,35 +309,9 @@ type ActionLike = {
310
309
  invocations?: unknown[];
311
310
  lifecycle?: string;
312
311
  };
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
312
  declare function compileOrganizationOntology(model: ModelLike): OntologyCompilation;
322
313
  declare function getOntologyDiagnostics(model: ModelLike): OntologyDiagnostic[];
323
314
 
324
- /**
325
- * Placeholder discriminated union for ContentNode (Wave 1A).
326
- * Wave 2A wires concrete (kind, type) pairs via the registry.
327
- *
328
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
329
- * Per L14: every node carries BOTH `kind` and `type`.
330
- */
331
- declare const ContentNodeSchema: z.ZodObject<{
332
- label: z.ZodString;
333
- description: z.ZodOptional<z.ZodString>;
334
- order: z.ZodOptional<z.ZodNumber>;
335
- parentContentId: z.ZodOptional<z.ZodString>;
336
- kind: z.ZodString;
337
- type: z.ZodString;
338
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
339
- }, z.core.$strip>;
340
- type ContentNode = z.infer<typeof ContentNodeSchema>;
341
-
342
315
  declare const OrganizationModelBrandingSchema: z.ZodObject<{
343
316
  organizationName: z.ZodString;
344
317
  productName: z.ZodString;
@@ -372,13 +345,6 @@ interface LeadGenStageCatalogEntry {
372
345
  /** Stage key to read from recordEntity.processing_state for Records views. */
373
346
  recordStageKey?: string;
374
347
  }
375
- /**
376
- * Canonical lead-gen processing stage catalog.
377
- * Keys are the stage names written by workflow steps into processing_state jsonb.
378
- *
379
- * Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
380
- */
381
- declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
382
348
 
383
349
  declare const SystemKindSchema: z.ZodEnum<{
384
350
  platform: "platform";
@@ -479,7 +445,6 @@ declare const SystemUiSchema: z.ZodObject<{
479
445
  }>, z.ZodString]>>;
480
446
  order: z.ZodOptional<z.ZodNumber>;
481
447
  }, z.core.$strip>;
482
-
483
448
  type JsonPrimitive = string | number | boolean | null;
484
449
  type JsonValue = JsonPrimitive | JsonValue[] | {
485
450
  [key: string]: JsonValue;
@@ -521,11 +486,6 @@ interface SystemEntry {
521
486
  config?: Record<string, JsonValue>;
522
487
  ontology?: OntologyScope;
523
488
  systems?: Record<string, SystemEntry>;
524
- /**
525
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
526
- * Author new semantic catalogs in `ontology` and local settings in `config`.
527
- */
528
- content?: Record<string, ContentNode>;
529
489
  subsystems?: Record<string, SystemEntry>;
530
490
  }
531
491
  declare const SystemEntrySchema: ZodType<SystemEntry>;
@@ -682,8 +642,13 @@ declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOb
682
642
  archived: "archived";
683
643
  }>>;
684
644
  }, z.core.$strip>>>;
685
- declare const LEAD_GEN_ACTION_ENTRIES: Record<string, z.infer<typeof ActionSchema>>;
686
- declare const CRM_ACTION_ENTRIES: Record<string, z.infer<typeof ActionSchema>>;
645
+ /**
646
+ * Generic empty default for the actions domain.
647
+ * Elevasis-specific action entries (LEAD_GEN_ACTION_ENTRIES, CRM_ACTION_ENTRIES,
648
+ * DEFAULT_ORGANIZATION_MODEL_ACTIONS) have been relocated to
649
+ * `@repo/elevasis-core/src/organization-model/actions.ts`.
650
+ * Tenant OM configs supply their own action entries via `resolveOrganizationModel`.
651
+ */
687
652
  declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
688
653
  declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
689
654
 
@@ -1169,11 +1134,10 @@ declare const KnowledgeTargetKindSchema: z.ZodEnum<{
1169
1134
  ontology: "ontology";
1170
1135
  role: "role";
1171
1136
  goal: "goal";
1172
- stage: "stage";
1173
1137
  resource: "resource";
1138
+ stage: "stage";
1174
1139
  "customer-segment": "customer-segment";
1175
1140
  offering: "offering";
1176
- "content-node": "content-node";
1177
1141
  }>;
1178
1142
  declare const KnowledgeTargetRefSchema: z.ZodObject<{
1179
1143
  kind: z.ZodEnum<{
@@ -1183,11 +1147,10 @@ declare const KnowledgeTargetRefSchema: z.ZodObject<{
1183
1147
  ontology: "ontology";
1184
1148
  role: "role";
1185
1149
  goal: "goal";
1186
- stage: "stage";
1187
1150
  resource: "resource";
1151
+ stage: "stage";
1188
1152
  "customer-segment": "customer-segment";
1189
1153
  offering: "offering";
1190
- "content-node": "content-node";
1191
1154
  }>;
1192
1155
  id: z.ZodString;
1193
1156
  }, z.core.$strip>;
@@ -1200,11 +1163,10 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1200
1163
  ontology: "ontology";
1201
1164
  role: "role";
1202
1165
  goal: "goal";
1203
- stage: "stage";
1204
1166
  resource: "resource";
1167
+ stage: "stage";
1205
1168
  "customer-segment": "customer-segment";
1206
1169
  offering: "offering";
1207
- "content-node": "content-node";
1208
1170
  }>;
1209
1171
  id: z.ZodString;
1210
1172
  }, z.core.$strip>;
@@ -1212,7 +1174,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1212
1174
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1213
1175
  }, z.core.$strip>]>, z.ZodTransform<{
1214
1176
  target: {
1215
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1177
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1216
1178
  id: string;
1217
1179
  };
1218
1180
  nodeId: string;
@@ -1220,7 +1182,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1220
1182
  nodeId: string;
1221
1183
  } | {
1222
1184
  target: {
1223
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1185
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1224
1186
  id: string;
1225
1187
  };
1226
1188
  }>>;
@@ -1312,11 +1274,10 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1312
1274
  ontology: "ontology";
1313
1275
  role: "role";
1314
1276
  goal: "goal";
1315
- stage: "stage";
1316
1277
  resource: "resource";
1278
+ stage: "stage";
1317
1279
  "customer-segment": "customer-segment";
1318
1280
  offering: "offering";
1319
- "content-node": "content-node";
1320
1281
  }>;
1321
1282
  id: z.ZodString;
1322
1283
  }, z.core.$strip>;
@@ -1324,7 +1285,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1324
1285
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1325
1286
  }, z.core.$strip>]>, z.ZodTransform<{
1326
1287
  target: {
1327
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1288
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1328
1289
  id: string;
1329
1290
  };
1330
1291
  nodeId: string;
@@ -1332,7 +1293,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1332
1293
  nodeId: string;
1333
1294
  } | {
1334
1295
  target: {
1335
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1296
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1336
1297
  id: string;
1337
1298
  };
1338
1299
  }>>>>;
@@ -1422,11 +1383,10 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1422
1383
  ontology: "ontology";
1423
1384
  role: "role";
1424
1385
  goal: "goal";
1425
- stage: "stage";
1426
1386
  resource: "resource";
1387
+ stage: "stage";
1427
1388
  "customer-segment": "customer-segment";
1428
1389
  offering: "offering";
1429
- "content-node": "content-node";
1430
1390
  }>;
1431
1391
  id: z.ZodString;
1432
1392
  }, z.core.$strip>;
@@ -1434,7 +1394,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1434
1394
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1435
1395
  }, z.core.$strip>]>, z.ZodTransform<{
1436
1396
  target: {
1437
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1397
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1438
1398
  id: string;
1439
1399
  };
1440
1400
  nodeId: string;
@@ -1442,7 +1402,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1442
1402
  nodeId: string;
1443
1403
  } | {
1444
1404
  target: {
1445
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1405
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1446
1406
  id: string;
1447
1407
  };
1448
1408
  }>>>>;
@@ -1450,6 +1410,22 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1450
1410
  updatedAt: z.ZodString;
1451
1411
  }, z.core.$strip>>>;
1452
1412
 
1413
+ /** Portable `package/subpath#ExportName` contract reference string. Browser-safe; no imports. */
1414
+ declare const ContractRefSchema: z.ZodString;
1415
+ /** Parsed representation of a ContractRef string. */
1416
+ interface ParsedContractRef {
1417
+ /** The full package + subpath portion before `#`. */
1418
+ moduleSpecifier: string;
1419
+ /** The export name after `#`. */
1420
+ exportName: string;
1421
+ }
1422
+ /**
1423
+ * Parse a `package/subpath#ExportName` contract ref string.
1424
+ * Browser-safe — no module system interaction.
1425
+ *
1426
+ * @throws {Error} if the ref string does not match the expected format.
1427
+ */
1428
+ declare function parseContractRef(ref: string): ParsedContractRef;
1453
1429
  declare const ResourceKindSchema: z.ZodEnum<{
1454
1430
  agent: "agent";
1455
1431
  workflow: "workflow";
@@ -1474,10 +1450,10 @@ declare const ScriptResourceLanguageSchema: z.ZodEnum<{
1474
1450
  python: "python";
1475
1451
  }>;
1476
1452
  declare const CodeReferenceRoleSchema: z.ZodEnum<{
1477
- schema: "schema";
1478
1453
  config: "config";
1479
1454
  entrypoint: "entrypoint";
1480
1455
  handler: "handler";
1456
+ schema: "schema";
1481
1457
  test: "test";
1482
1458
  docs: "docs";
1483
1459
  }>;
@@ -1520,6 +1496,10 @@ declare const ResourceOntologyBindingSchema: z.ZodObject<{
1520
1496
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1521
1497
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1522
1498
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1499
+ contract: z.ZodOptional<z.ZodObject<{
1500
+ input: z.ZodOptional<z.ZodString>;
1501
+ output: z.ZodOptional<z.ZodString>;
1502
+ }, z.core.$strip>>;
1523
1503
  }, z.core.$strip>;
1524
1504
  type OntologyRefInput = string | {
1525
1505
  id: string;
@@ -1535,10 +1515,10 @@ type ResourceOntologyBindingInput = {
1535
1515
  declare const CodeReferenceSchema: z.ZodObject<{
1536
1516
  path: z.ZodString;
1537
1517
  role: z.ZodEnum<{
1538
- schema: "schema";
1539
1518
  config: "config";
1540
1519
  entrypoint: "entrypoint";
1541
1520
  handler: "handler";
1521
+ schema: "schema";
1542
1522
  test: "test";
1543
1523
  docs: "docs";
1544
1524
  }>;
@@ -1564,14 +1544,18 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
1564
1544
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1565
1545
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1566
1546
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1547
+ contract: z.ZodOptional<z.ZodObject<{
1548
+ input: z.ZodOptional<z.ZodString>;
1549
+ output: z.ZodOptional<z.ZodString>;
1550
+ }, z.core.$strip>>;
1567
1551
  }, z.core.$strip>>;
1568
1552
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1569
1553
  path: z.ZodString;
1570
1554
  role: z.ZodEnum<{
1571
- schema: "schema";
1572
1555
  config: "config";
1573
1556
  entrypoint: "entrypoint";
1574
1557
  handler: "handler";
1558
+ schema: "schema";
1575
1559
  test: "test";
1576
1560
  docs: "docs";
1577
1561
  }>;
@@ -1611,14 +1595,18 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
1611
1595
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1612
1596
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1613
1597
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1598
+ contract: z.ZodOptional<z.ZodObject<{
1599
+ input: z.ZodOptional<z.ZodString>;
1600
+ output: z.ZodOptional<z.ZodString>;
1601
+ }, z.core.$strip>>;
1614
1602
  }, z.core.$strip>>;
1615
1603
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1616
1604
  path: z.ZodString;
1617
1605
  role: z.ZodEnum<{
1618
- schema: "schema";
1619
1606
  config: "config";
1620
1607
  entrypoint: "entrypoint";
1621
1608
  handler: "handler";
1609
+ schema: "schema";
1622
1610
  test: "test";
1623
1611
  docs: "docs";
1624
1612
  }>;
@@ -1689,14 +1677,18 @@ declare const IntegrationResourceEntrySchema: z.ZodObject<{
1689
1677
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1690
1678
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1691
1679
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1680
+ contract: z.ZodOptional<z.ZodObject<{
1681
+ input: z.ZodOptional<z.ZodString>;
1682
+ output: z.ZodOptional<z.ZodString>;
1683
+ }, z.core.$strip>>;
1692
1684
  }, z.core.$strip>>;
1693
1685
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1694
1686
  path: z.ZodString;
1695
1687
  role: z.ZodEnum<{
1696
- schema: "schema";
1697
1688
  config: "config";
1698
1689
  entrypoint: "entrypoint";
1699
1690
  handler: "handler";
1691
+ schema: "schema";
1700
1692
  test: "test";
1701
1693
  docs: "docs";
1702
1694
  }>;
@@ -1728,14 +1720,18 @@ declare const ScriptResourceEntrySchema: z.ZodObject<{
1728
1720
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1729
1721
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1730
1722
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1723
+ contract: z.ZodOptional<z.ZodObject<{
1724
+ input: z.ZodOptional<z.ZodString>;
1725
+ output: z.ZodOptional<z.ZodString>;
1726
+ }, z.core.$strip>>;
1731
1727
  }, z.core.$strip>>;
1732
1728
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1733
1729
  path: z.ZodString;
1734
1730
  role: z.ZodEnum<{
1735
- schema: "schema";
1736
1731
  config: "config";
1737
1732
  entrypoint: "entrypoint";
1738
1733
  handler: "handler";
1734
+ schema: "schema";
1739
1735
  test: "test";
1740
1736
  docs: "docs";
1741
1737
  }>;
@@ -1772,14 +1768,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
1768
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1773
1769
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1774
1770
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1771
+ contract: z.ZodOptional<z.ZodObject<{
1772
+ input: z.ZodOptional<z.ZodString>;
1773
+ output: z.ZodOptional<z.ZodString>;
1774
+ }, z.core.$strip>>;
1775
1775
  }, z.core.$strip>>;
1776
1776
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1777
1777
  path: z.ZodString;
1778
1778
  role: z.ZodEnum<{
1779
- schema: "schema";
1780
1779
  config: "config";
1781
1780
  entrypoint: "entrypoint";
1782
1781
  handler: "handler";
1782
+ schema: "schema";
1783
1783
  test: "test";
1784
1784
  docs: "docs";
1785
1785
  }>;
@@ -1818,14 +1818,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1818
1818
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1819
1819
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1820
1820
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1821
+ contract: z.ZodOptional<z.ZodObject<{
1822
+ input: z.ZodOptional<z.ZodString>;
1823
+ output: z.ZodOptional<z.ZodString>;
1824
+ }, z.core.$strip>>;
1821
1825
  }, z.core.$strip>>;
1822
1826
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1823
1827
  path: z.ZodString;
1824
1828
  role: z.ZodEnum<{
1825
- schema: "schema";
1826
1829
  config: "config";
1827
1830
  entrypoint: "entrypoint";
1828
1831
  handler: "handler";
1832
+ schema: "schema";
1829
1833
  test: "test";
1830
1834
  docs: "docs";
1831
1835
  }>;
@@ -1895,14 +1899,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1895
1899
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1896
1900
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1897
1901
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1902
+ contract: z.ZodOptional<z.ZodObject<{
1903
+ input: z.ZodOptional<z.ZodString>;
1904
+ output: z.ZodOptional<z.ZodString>;
1905
+ }, z.core.$strip>>;
1898
1906
  }, z.core.$strip>>;
1899
1907
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1900
1908
  path: z.ZodString;
1901
1909
  role: z.ZodEnum<{
1902
- schema: "schema";
1903
1910
  config: "config";
1904
1911
  entrypoint: "entrypoint";
1905
1912
  handler: "handler";
1913
+ schema: "schema";
1906
1914
  test: "test";
1907
1915
  docs: "docs";
1908
1916
  }>;
@@ -1930,14 +1938,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1930
1938
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1931
1939
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1932
1940
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1941
+ contract: z.ZodOptional<z.ZodObject<{
1942
+ input: z.ZodOptional<z.ZodString>;
1943
+ output: z.ZodOptional<z.ZodString>;
1944
+ }, z.core.$strip>>;
1933
1945
  }, z.core.$strip>>;
1934
1946
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1935
1947
  path: z.ZodString;
1936
1948
  role: z.ZodEnum<{
1937
- schema: "schema";
1938
1949
  config: "config";
1939
1950
  entrypoint: "entrypoint";
1940
1951
  handler: "handler";
1952
+ schema: "schema";
1941
1953
  test: "test";
1942
1954
  docs: "docs";
1943
1955
  }>;
@@ -1974,14 +1986,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1974
1986
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1975
1987
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1976
1988
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1989
+ contract: z.ZodOptional<z.ZodObject<{
1990
+ input: z.ZodOptional<z.ZodString>;
1991
+ output: z.ZodOptional<z.ZodString>;
1992
+ }, z.core.$strip>>;
1977
1993
  }, z.core.$strip>>;
1978
1994
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1979
1995
  path: z.ZodString;
1980
1996
  role: z.ZodEnum<{
1981
- schema: "schema";
1982
1997
  config: "config";
1983
1998
  entrypoint: "entrypoint";
1984
1999
  handler: "handler";
2000
+ schema: "schema";
1985
2001
  test: "test";
1986
2002
  docs: "docs";
1987
2003
  }>;
@@ -2020,14 +2036,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2020
2036
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2021
2037
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2022
2038
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2039
+ contract: z.ZodOptional<z.ZodObject<{
2040
+ input: z.ZodOptional<z.ZodString>;
2041
+ output: z.ZodOptional<z.ZodString>;
2042
+ }, z.core.$strip>>;
2023
2043
  }, z.core.$strip>>;
2024
2044
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2025
2045
  path: z.ZodString;
2026
2046
  role: z.ZodEnum<{
2027
- schema: "schema";
2028
2047
  config: "config";
2029
2048
  entrypoint: "entrypoint";
2030
2049
  handler: "handler";
2050
+ schema: "schema";
2031
2051
  test: "test";
2032
2052
  docs: "docs";
2033
2053
  }>;
@@ -2097,14 +2117,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2097
2117
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2098
2118
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2099
2119
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2120
+ contract: z.ZodOptional<z.ZodObject<{
2121
+ input: z.ZodOptional<z.ZodString>;
2122
+ output: z.ZodOptional<z.ZodString>;
2123
+ }, z.core.$strip>>;
2100
2124
  }, z.core.$strip>>;
2101
2125
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2102
2126
  path: z.ZodString;
2103
2127
  role: z.ZodEnum<{
2104
- schema: "schema";
2105
2128
  config: "config";
2106
2129
  entrypoint: "entrypoint";
2107
2130
  handler: "handler";
2131
+ schema: "schema";
2108
2132
  test: "test";
2109
2133
  docs: "docs";
2110
2134
  }>;
@@ -2132,14 +2156,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2132
2156
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2133
2157
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2134
2158
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
2159
+ contract: z.ZodOptional<z.ZodObject<{
2160
+ input: z.ZodOptional<z.ZodString>;
2161
+ output: z.ZodOptional<z.ZodString>;
2162
+ }, z.core.$strip>>;
2135
2163
  }, z.core.$strip>>;
2136
2164
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2137
2165
  path: z.ZodString;
2138
2166
  role: z.ZodEnum<{
2139
- schema: "schema";
2140
2167
  config: "config";
2141
2168
  entrypoint: "entrypoint";
2142
2169
  handler: "handler";
2170
+ schema: "schema";
2143
2171
  test: "test";
2144
2172
  docs: "docs";
2145
2173
  }>;
@@ -2162,6 +2190,7 @@ declare function defineResource<const TResource extends ResourceEntry>(resource:
2162
2190
  declare function defineResources<const TResources extends Record<string, ResourceEntry>>(resources: TResources): TResources;
2163
2191
  declare function defineResourceOntology(input: ResourceOntologyBindingInput): ResourceOntologyBinding;
2164
2192
  type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>;
2193
+ type ResourceOntologyBindingContract = NonNullable<ResourceOntologyBinding['contract']>;
2165
2194
  type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
2166
2195
 
2167
2196
  declare const OmTopologyNodeKindSchema: z.ZodEnum<{
@@ -3306,6 +3335,9 @@ type EventDescriptor = z.infer<typeof EventDescriptorSchema>;
3306
3335
  type OrganizationModelResourceKind = z.infer<typeof ResourceKindSchema>;
3307
3336
  type OrganizationModelResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
3308
3337
  type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>;
3338
+ type OrganizationModelContractRef = z.infer<typeof ContractRefSchema>;
3339
+ type OrganizationModelResourceOntologyBindingContract = ResourceOntologyBindingContract;
3340
+
3309
3341
  type OrganizationModelAgentKind = z.infer<typeof AgentKindSchema>;
3310
3342
  type OrganizationModelScriptResourceLanguage = z.infer<typeof ScriptResourceLanguageSchema>;
3311
3343
  type OrganizationModelScriptResourceSource = z.infer<typeof ScriptResourceSourceSchema>;
@@ -3377,15 +3409,19 @@ declare const OPERATIONS_COMMAND_VIEW_SURFACE_ID: "knowledge.command-view";
3377
3409
  declare const SETTINGS_ROLES_SURFACE_ID: "settings.roles";
3378
3410
 
3379
3411
  /**
3380
- * Fixture-only stub for the generic OrganizationModel merge base.
3412
+ * Generic merge base for the OrganizationModel.
3381
3413
  *
3382
3414
  * This constant is used by:
3383
3415
  * - `resolveOrganizationModel()` as the deep-merge base for every org's config
3384
3416
  * - Unit tests and snapshot fixtures that need a structurally valid OrganizationModel
3385
3417
  *
3386
- * It intentionally does NOT contain Elevasis-specific identity or knowledge content.
3418
+ * It does NOT contain Elevasis-specific identity, systems, or action entries.
3387
3419
  * Runtime consumers that need the full Elevasis canonical model should import
3388
3420
  * `canonicalOrganizationModel` from `@repo/elevasis-core` instead.
3421
+ *
3422
+ * Elevasis-specific systems, actions (LEAD_GEN_ACTION_ENTRIES, CRM_ACTION_ENTRIES,
3423
+ * DEFAULT_ORGANIZATION_MODEL_ACTIONS), and the platform system description have been
3424
+ * relocated to `@repo/elevasis-core/src/organization-model/`.
3389
3425
  */
3390
3426
 
3391
3427
  declare const DEFAULT_ORGANIZATION_MODEL: OrganizationModel;
@@ -3438,6 +3474,7 @@ declare function resolveOrganizationModel(override?: DeepPartial<OrganizationMod
3438
3474
  */
3439
3475
  declare function resolveOrganizationModelWithResources(override?: DeepPartial<OrganizationModel>, organizationId?: string): ResolvedOrganizationModel;
3440
3476
 
3477
+ type OrganizationSurfaceProjectionIssueCode = 'duplicate-surface-id' | 'duplicate-surface-path' | 'unknown-surface-system';
3441
3478
  interface OrganizationSurfaceProjection {
3442
3479
  id: string;
3443
3480
  label: string;
@@ -3454,6 +3491,16 @@ interface OrganizationSurfaceProjection {
3454
3491
  devOnly?: boolean;
3455
3492
  requiresAdmin?: boolean;
3456
3493
  }
3494
+ interface OrganizationSurfaceProjectionIssue {
3495
+ code: OrganizationSurfaceProjectionIssueCode;
3496
+ message: string;
3497
+ path: Array<string | number>;
3498
+ surfaceId?: string;
3499
+ systemId?: string;
3500
+ value?: string;
3501
+ }
3502
+ declare function projectOrganizationSurfaces(model: OrganizationModel): OrganizationSurfaceProjection[];
3503
+ declare function validateOrganizationSurfaceProjection(model: OrganizationModel): OrganizationSurfaceProjectionIssue[];
3457
3504
 
3458
3505
  type FoundationSurfaceType = 'page' | 'dashboard' | 'graph' | 'detail' | 'list' | 'settings';
3459
3506
  type FoundationSurfaceIcon = Extract<OrganizationModelBuiltinIconToken$1, 'feature.dashboard' | 'feature.crm' | 'feature.lead-gen' | 'feature.projects' | 'feature.operations' | 'feature.settings'>;
@@ -3482,6 +3529,25 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
3482
3529
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
3483
3530
  };
3484
3531
 
3532
+ /**
3533
+ * SystemEntry extended with the recursive tree slots (`systems`, `subsystems`).
3534
+ * `OrganizationModelSystemEntry` is inferred from `SystemEntrySchema: ZodType<SystemEntry>`
3535
+ * so it already carries these fields; this alias re-exports it under the tree-walker name
3536
+ * for clarity at call sites.
3537
+ */
3538
+ type SystemEntryWithTree = OrganizationModelSystemEntry;
3539
+ /**
3540
+ * Flat depth-first enumeration of every system in the model tree.
3541
+ * Each entry carries the computed full path and the system node.
3542
+ * Order: parent before children (pre-order DFS).
3543
+ *
3544
+ * Example result paths: `'sales'`, `'sales.crm'`, `'sales.crm.dispositions'`
3545
+ */
3546
+ declare function listAllSystems(model: OrganizationModel): Array<{
3547
+ path: string;
3548
+ system: SystemEntryWithTree;
3549
+ }>;
3550
+
3485
3551
  type OmScaffoldIntent = 'system' | 'ontology' | 'resource' | 'knowledge';
3486
3552
  interface OmScaffoldWrite {
3487
3553
  path: string;
@@ -3572,10 +3638,10 @@ declare const LinkSchema: z.ZodObject<{
3572
3638
  declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
3573
3639
  knowledge: "knowledge";
3574
3640
  resources: "resources";
3575
- systems: "systems";
3576
3641
  entities: "entities";
3577
3642
  actions: "actions";
3578
3643
  ontology: "ontology";
3644
+ systems: "systems";
3579
3645
  policies: "policies";
3580
3646
  branding: "branding";
3581
3647
  identity: "identity";
@@ -4177,14 +4243,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
4177
4243
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4178
4244
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4179
4245
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4246
+ contract: z.ZodOptional<z.ZodObject<{
4247
+ input: z.ZodOptional<z.ZodString>;
4248
+ output: z.ZodOptional<z.ZodString>;
4249
+ }, z.core.$strip>>;
4180
4250
  }, z.core.$strip>>;
4181
4251
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4182
4252
  path: z.ZodString;
4183
4253
  role: z.ZodEnum<{
4184
- schema: "schema";
4185
4254
  config: "config";
4186
4255
  entrypoint: "entrypoint";
4187
4256
  handler: "handler";
4257
+ schema: "schema";
4188
4258
  test: "test";
4189
4259
  docs: "docs";
4190
4260
  }>;
@@ -4223,14 +4293,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
4223
4293
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4224
4294
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4225
4295
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4296
+ contract: z.ZodOptional<z.ZodObject<{
4297
+ input: z.ZodOptional<z.ZodString>;
4298
+ output: z.ZodOptional<z.ZodString>;
4299
+ }, z.core.$strip>>;
4226
4300
  }, z.core.$strip>>;
4227
4301
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4228
4302
  path: z.ZodString;
4229
4303
  role: z.ZodEnum<{
4230
- schema: "schema";
4231
4304
  config: "config";
4232
4305
  entrypoint: "entrypoint";
4233
4306
  handler: "handler";
4307
+ schema: "schema";
4234
4308
  test: "test";
4235
4309
  docs: "docs";
4236
4310
  }>;
@@ -4300,14 +4374,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
4300
4374
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4301
4375
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4302
4376
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4377
+ contract: z.ZodOptional<z.ZodObject<{
4378
+ input: z.ZodOptional<z.ZodString>;
4379
+ output: z.ZodOptional<z.ZodString>;
4380
+ }, z.core.$strip>>;
4303
4381
  }, z.core.$strip>>;
4304
4382
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4305
4383
  path: z.ZodString;
4306
4384
  role: z.ZodEnum<{
4307
- schema: "schema";
4308
4385
  config: "config";
4309
4386
  entrypoint: "entrypoint";
4310
4387
  handler: "handler";
4388
+ schema: "schema";
4311
4389
  test: "test";
4312
4390
  docs: "docs";
4313
4391
  }>;
@@ -4335,14 +4413,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
4335
4413
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4336
4414
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4337
4415
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4416
+ contract: z.ZodOptional<z.ZodObject<{
4417
+ input: z.ZodOptional<z.ZodString>;
4418
+ output: z.ZodOptional<z.ZodString>;
4419
+ }, z.core.$strip>>;
4338
4420
  }, z.core.$strip>>;
4339
4421
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4340
4422
  path: z.ZodString;
4341
4423
  role: z.ZodEnum<{
4342
- schema: "schema";
4343
4424
  config: "config";
4344
4425
  entrypoint: "entrypoint";
4345
4426
  handler: "handler";
4427
+ schema: "schema";
4346
4428
  test: "test";
4347
4429
  docs: "docs";
4348
4430
  }>;
@@ -4629,11 +4711,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
4629
4711
  ontology: "ontology";
4630
4712
  role: "role";
4631
4713
  goal: "goal";
4632
- stage: "stage";
4633
4714
  resource: "resource";
4715
+ stage: "stage";
4634
4716
  "customer-segment": "customer-segment";
4635
4717
  offering: "offering";
4636
- "content-node": "content-node";
4637
4718
  }>;
4638
4719
  id: z.ZodString;
4639
4720
  }, z.core.$strip>;
@@ -4641,7 +4722,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4641
4722
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
4642
4723
  }, z.core.$strip>]>, z.ZodTransform<{
4643
4724
  target: {
4644
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4725
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4645
4726
  id: string;
4646
4727
  };
4647
4728
  nodeId: string;
@@ -4649,7 +4730,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4649
4730
  nodeId: string;
4650
4731
  } | {
4651
4732
  target: {
4652
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4733
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4653
4734
  id: string;
4654
4735
  };
4655
4736
  }>>>>;
@@ -4658,5 +4739,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
4658
4739
  }, z.core.$strip>>>>;
4659
4740
  }, z.core.$strip>;
4660
4741
 
4661
- 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, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, 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, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, 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, compileTopologyNodeRef, createFoundationOrganizationModel, defineOrganizationModel, defineResource, defineResourceOntology, defineResources, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseOntologyId, parseTopologyNodeRef, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship };
4662
- export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, 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, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelWorkflowResourceEntry, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemScaffoldSpec };
4742
+ export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, 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, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, 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, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, 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, compileTopologyNodeRef, createFoundationOrganizationModel, defineOrganizationModel, defineResource, defineResourceOntology, defineResources, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
4743
+ export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, 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, OrganizationModelResourceOntologyBindingContract, 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, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };