@elevasis/core 0.27.0 → 0.28.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.
package/dist/index.d.ts CHANGED
@@ -3,14 +3,14 @@ import { z, ZodType } from 'zod';
3
3
  declare const OntologyKindSchema: z.ZodEnum<{
4
4
  object: "object";
5
5
  action: "action";
6
+ surface: "surface";
7
+ group: "group";
6
8
  link: "link";
7
9
  catalog: "catalog";
8
10
  event: "event";
9
11
  interface: "interface";
10
12
  "value-type": "value-type";
11
13
  property: "property";
12
- group: "group";
13
- surface: "surface";
14
14
  }>;
15
15
  type OntologyKind = z.infer<typeof OntologyKindSchema>;
16
16
  declare const OntologyIdSchema: z.ZodString;
@@ -353,16 +353,16 @@ declare const SystemKindSchema: z.ZodEnum<{
353
353
  diagnostic: "diagnostic";
354
354
  }>;
355
355
  declare const SystemLifecycleSchema: z.ZodEnum<{
356
+ active: "active";
356
357
  deprecated: "deprecated";
357
358
  draft: "draft";
358
359
  beta: "beta";
359
- active: "active";
360
360
  archived: "archived";
361
361
  }>;
362
362
  /** @deprecated Use SystemLifecycleSchema. Accepted for one publish cycle. */
363
363
  declare const SystemStatusSchema: z.ZodEnum<{
364
- deprecated: "deprecated";
365
364
  active: "active";
365
+ deprecated: "deprecated";
366
366
  archived: "archived";
367
367
  }>;
368
368
  declare const SystemIdSchema: z.ZodString;
@@ -491,6 +491,10 @@ interface SystemEntry {
491
491
  declare const SystemEntrySchema: ZodType<SystemEntry>;
492
492
  declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
493
493
  declare const DEFAULT_ORGANIZATION_MODEL_SYSTEMS: z.infer<typeof SystemsDomainSchema>;
494
+ /** Validate and return a single system entry. */
495
+ declare function defineSystem(entry: z.input<typeof SystemEntrySchema>): z.infer<typeof SystemEntrySchema>;
496
+ /** Validate and return an id-keyed map of system entries. */
497
+ declare function defineSystems(entries: readonly z.input<typeof SystemEntrySchema>[]): Record<string, z.infer<typeof SystemEntrySchema>>;
494
498
 
495
499
  declare const ActionInvocationKindSchema: z.ZodEnum<{
496
500
  "slash-command": "slash-command";
@@ -593,10 +597,10 @@ declare const ActionSchema: z.ZodObject<{
593
597
  }, z.core.$strip>], "kind">>>;
594
598
  knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
595
599
  lifecycle: z.ZodDefault<z.ZodEnum<{
600
+ active: "active";
596
601
  deprecated: "deprecated";
597
602
  draft: "draft";
598
603
  beta: "beta";
599
- active: "active";
600
604
  archived: "archived";
601
605
  }>>;
602
606
  }, z.core.$strip>;
@@ -635,10 +639,10 @@ declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOb
635
639
  }, z.core.$strip>], "kind">>>;
636
640
  knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
637
641
  lifecycle: z.ZodDefault<z.ZodEnum<{
642
+ active: "active";
638
643
  deprecated: "deprecated";
639
644
  draft: "draft";
640
645
  beta: "beta";
641
- active: "active";
642
646
  archived: "archived";
643
647
  }>>;
644
648
  }, z.core.$strip>>>;
@@ -651,14 +655,18 @@ declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOb
651
655
  */
652
656
  declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
653
657
  declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
658
+ /** Validate and return a single action entry. */
659
+ declare function defineAction(entry: z.input<typeof ActionSchema>): z.infer<typeof ActionSchema>;
660
+ /** Validate and return an id-keyed map of action entries. */
661
+ declare function defineActions(entries: readonly z.input<typeof ActionSchema>[]): Record<string, z.infer<typeof ActionSchema>>;
654
662
 
655
663
  declare const SurfaceTypeSchema: z.ZodEnum<{
656
664
  dashboard: "dashboard";
657
665
  settings: "settings";
658
666
  graph: "graph";
659
- list: "list";
660
667
  page: "page";
661
668
  detail: "detail";
669
+ list: "list";
662
670
  }>;
663
671
  declare const SurfaceDefinitionSchema: z.ZodObject<{
664
672
  id: z.ZodString;
@@ -668,9 +676,9 @@ declare const SurfaceDefinitionSchema: z.ZodObject<{
668
676
  dashboard: "dashboard";
669
677
  settings: "settings";
670
678
  graph: "graph";
671
- list: "list";
672
679
  page: "page";
673
680
  detail: "detail";
681
+ list: "list";
674
682
  }>;
675
683
  description: z.ZodOptional<z.ZodString>;
676
684
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -871,12 +879,12 @@ declare const TechStackEntrySchema: z.ZodObject<{
871
879
  }, z.core.$strip>;
872
880
 
873
881
  declare const StatusSemanticClassSchema: z.ZodEnum<{
882
+ "delivery.task": "delivery.task";
874
883
  "delivery.project": "delivery.project";
875
884
  "delivery.milestone": "delivery.milestone";
876
- "delivery.task": "delivery.task";
877
- schedule: "schedule";
878
885
  queue: "queue";
879
886
  execution: "execution";
887
+ schedule: "schedule";
880
888
  "schedule.run": "schedule.run";
881
889
  request: "request";
882
890
  }>;
@@ -885,12 +893,12 @@ declare const StatusEntrySchema: z.ZodObject<{
885
893
  order: z.ZodNumber;
886
894
  label: z.ZodString;
887
895
  semanticClass: z.ZodEnum<{
896
+ "delivery.task": "delivery.task";
888
897
  "delivery.project": "delivery.project";
889
898
  "delivery.milestone": "delivery.milestone";
890
- "delivery.task": "delivery.task";
891
- schedule: "schedule";
892
899
  queue: "queue";
893
900
  execution: "execution";
901
+ schedule: "schedule";
894
902
  "schedule.run": "schedule.run";
895
903
  request: "request";
896
904
  }>;
@@ -901,17 +909,22 @@ declare const StatusesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
901
909
  order: z.ZodNumber;
902
910
  label: z.ZodString;
903
911
  semanticClass: z.ZodEnum<{
912
+ "delivery.task": "delivery.task";
904
913
  "delivery.project": "delivery.project";
905
914
  "delivery.milestone": "delivery.milestone";
906
- "delivery.task": "delivery.task";
907
- schedule: "schedule";
908
915
  queue: "queue";
909
916
  execution: "execution";
917
+ schedule: "schedule";
910
918
  "schedule.run": "schedule.run";
911
919
  request: "request";
912
920
  }>;
913
921
  category: z.ZodOptional<z.ZodString>;
914
922
  }, z.core.$strip>>>;
923
+ /** Validate and return a single status entry. */
924
+ declare function defineStatus(entry: z.input<typeof StatusEntrySchema>): StatusEntry;
925
+ /** Validate and return an id-keyed map of status entries. */
926
+ declare function defineStatuses(entries: readonly z.input<typeof StatusEntrySchema>[]): StatusesDomain;
927
+ type StatusEntry = z.infer<typeof StatusEntrySchema>;
915
928
  type StatusesDomain = z.infer<typeof StatusesDomainSchema>;
916
929
  declare const DEFAULT_ORGANIZATION_MODEL_STATUSES: StatusesDomain;
917
930
 
@@ -951,6 +964,10 @@ declare const CustomersDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
951
964
  valueProp: z.ZodDefault<z.ZodString>;
952
965
  }, z.core.$strip>>>;
953
966
  declare const DEFAULT_ORGANIZATION_MODEL_CUSTOMERS: z.infer<typeof CustomersDomainSchema>;
967
+ /** Validate and return a single customer segment entry. */
968
+ declare function defineCustomer(entry: z.input<typeof CustomerSegmentSchema>): z.infer<typeof CustomerSegmentSchema>;
969
+ /** Validate and return an id-keyed map of customer segment entries. */
970
+ declare function defineCustomers(entries: readonly z.input<typeof CustomerSegmentSchema>[]): Record<string, z.infer<typeof CustomerSegmentSchema>>;
954
971
 
955
972
  declare const PricingModelSchema: z.ZodEnum<{
956
973
  custom: "custom";
@@ -991,6 +1008,10 @@ declare const OfferingsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
991
1008
  deliveryFeatureId: z.ZodOptional<z.ZodString>;
992
1009
  }, z.core.$strip>>>;
993
1010
  declare const DEFAULT_ORGANIZATION_MODEL_OFFERINGS: z.infer<typeof OfferingsDomainSchema>;
1011
+ /** Validate and return a single offering (product) entry. */
1012
+ declare function defineOffering(entry: z.input<typeof ProductSchema>): z.infer<typeof ProductSchema>;
1013
+ /** Validate and return an id-keyed map of offering entries. */
1014
+ declare function defineOfferings(entries: readonly z.input<typeof ProductSchema>[]): Record<string, z.infer<typeof ProductSchema>>;
994
1015
 
995
1016
  declare const RoleIdSchema: z.ZodString;
996
1017
  declare const HumanRoleHolderSchema: z.ZodObject<{
@@ -1089,6 +1110,10 @@ declare const RolesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObje
1089
1110
  responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
1090
1111
  }, z.core.$strip>>>;
1091
1112
  declare const DEFAULT_ORGANIZATION_MODEL_ROLES: z.infer<typeof RolesDomainSchema>;
1113
+ /** Validate and return a single role entry. */
1114
+ declare function defineRole(entry: z.input<typeof RoleSchema>): z.infer<typeof RoleSchema>;
1115
+ /** Validate and return an id-keyed map of role entries. */
1116
+ declare function defineRoles(entries: readonly z.input<typeof RoleSchema>[]): Record<string, z.infer<typeof RoleSchema>>;
1092
1117
 
1093
1118
  declare const KeyResultSchema: z.ZodObject<{
1094
1119
  id: z.ZodString;
@@ -1126,16 +1151,20 @@ declare const GoalsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObje
1126
1151
  }, z.core.$strip>>>;
1127
1152
  }, z.core.$strip>>>;
1128
1153
  declare const DEFAULT_ORGANIZATION_MODEL_GOALS: z.infer<typeof GoalsDomainSchema>;
1154
+ /** Validate and return a single goal (objective) entry. */
1155
+ declare function defineGoal(entry: z.input<typeof ObjectiveSchema>): z.infer<typeof ObjectiveSchema>;
1156
+ /** Validate and return an id-keyed map of goal entries. */
1157
+ declare function defineGoals(entries: readonly z.input<typeof ObjectiveSchema>[]): Record<string, z.infer<typeof ObjectiveSchema>>;
1129
1158
 
1130
1159
  declare const KnowledgeTargetKindSchema: z.ZodEnum<{
1131
1160
  knowledge: "knowledge";
1132
1161
  system: "system";
1162
+ resource: "resource";
1133
1163
  action: "action";
1134
1164
  ontology: "ontology";
1135
1165
  role: "role";
1136
- goal: "goal";
1137
- resource: "resource";
1138
1166
  stage: "stage";
1167
+ goal: "goal";
1139
1168
  "customer-segment": "customer-segment";
1140
1169
  offering: "offering";
1141
1170
  }>;
@@ -1143,12 +1172,12 @@ declare const KnowledgeTargetRefSchema: z.ZodObject<{
1143
1172
  kind: z.ZodEnum<{
1144
1173
  knowledge: "knowledge";
1145
1174
  system: "system";
1175
+ resource: "resource";
1146
1176
  action: "action";
1147
1177
  ontology: "ontology";
1148
1178
  role: "role";
1149
- goal: "goal";
1150
- resource: "resource";
1151
1179
  stage: "stage";
1180
+ goal: "goal";
1152
1181
  "customer-segment": "customer-segment";
1153
1182
  offering: "offering";
1154
1183
  }>;
@@ -1159,12 +1188,12 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1159
1188
  kind: z.ZodEnum<{
1160
1189
  knowledge: "knowledge";
1161
1190
  system: "system";
1191
+ resource: "resource";
1162
1192
  action: "action";
1163
1193
  ontology: "ontology";
1164
1194
  role: "role";
1165
- goal: "goal";
1166
- resource: "resource";
1167
1195
  stage: "stage";
1196
+ goal: "goal";
1168
1197
  "customer-segment": "customer-segment";
1169
1198
  offering: "offering";
1170
1199
  }>;
@@ -1174,7 +1203,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1174
1203
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1175
1204
  }, z.core.$strip>]>, z.ZodTransform<{
1176
1205
  target: {
1177
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1206
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1178
1207
  id: string;
1179
1208
  };
1180
1209
  nodeId: string;
@@ -1182,7 +1211,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1182
1211
  nodeId: string;
1183
1212
  } | {
1184
1213
  target: {
1185
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1214
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1186
1215
  id: string;
1187
1216
  };
1188
1217
  }>>;
@@ -1270,12 +1299,12 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1270
1299
  kind: z.ZodEnum<{
1271
1300
  knowledge: "knowledge";
1272
1301
  system: "system";
1302
+ resource: "resource";
1273
1303
  action: "action";
1274
1304
  ontology: "ontology";
1275
1305
  role: "role";
1276
- goal: "goal";
1277
- resource: "resource";
1278
1306
  stage: "stage";
1307
+ goal: "goal";
1279
1308
  "customer-segment": "customer-segment";
1280
1309
  offering: "offering";
1281
1310
  }>;
@@ -1285,7 +1314,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1285
1314
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1286
1315
  }, z.core.$strip>]>, z.ZodTransform<{
1287
1316
  target: {
1288
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1317
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1289
1318
  id: string;
1290
1319
  };
1291
1320
  nodeId: string;
@@ -1293,7 +1322,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
1293
1322
  nodeId: string;
1294
1323
  } | {
1295
1324
  target: {
1296
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1325
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1297
1326
  id: string;
1298
1327
  };
1299
1328
  }>>>>;
@@ -1379,12 +1408,12 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1379
1408
  kind: z.ZodEnum<{
1380
1409
  knowledge: "knowledge";
1381
1410
  system: "system";
1411
+ resource: "resource";
1382
1412
  action: "action";
1383
1413
  ontology: "ontology";
1384
1414
  role: "role";
1385
- goal: "goal";
1386
- resource: "resource";
1387
1415
  stage: "stage";
1416
+ goal: "goal";
1388
1417
  "customer-segment": "customer-segment";
1389
1418
  offering: "offering";
1390
1419
  }>;
@@ -1394,7 +1423,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1394
1423
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1395
1424
  }, z.core.$strip>]>, z.ZodTransform<{
1396
1425
  target: {
1397
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1426
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1398
1427
  id: string;
1399
1428
  };
1400
1429
  nodeId: string;
@@ -1402,13 +1431,18 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1402
1431
  nodeId: string;
1403
1432
  } | {
1404
1433
  target: {
1405
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1434
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1406
1435
  id: string;
1407
1436
  };
1408
1437
  }>>>>;
1409
1438
  ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1410
1439
  updatedAt: z.ZodString;
1411
1440
  }, z.core.$strip>>>;
1441
+ /** Validate and return a single knowledge node entry. */
1442
+ declare function defineKnowledgeNode(entry: z.input<typeof OrgKnowledgeNodeSchema>): OrgKnowledgeNode$1;
1443
+ /** Validate and return an id-keyed map of knowledge node entries. */
1444
+ declare function defineKnowledgeNodes(entries: readonly z.input<typeof OrgKnowledgeNodeSchema>[]): Record<string, OrgKnowledgeNode$1>;
1445
+ type OrgKnowledgeNode$1 = z.infer<typeof OrgKnowledgeNodeSchema>;
1412
1446
 
1413
1447
  /** Portable `package/subpath#ExportName` contract reference string. Browser-safe; no imports. */
1414
1448
  declare const ContractRefSchema: z.ZodString;
@@ -1433,8 +1467,8 @@ declare const ResourceKindSchema: z.ZodEnum<{
1433
1467
  script: "script";
1434
1468
  }>;
1435
1469
  declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
1436
- deprecated: "deprecated";
1437
1470
  active: "active";
1471
+ deprecated: "deprecated";
1438
1472
  archived: "archived";
1439
1473
  }>;
1440
1474
  declare const AgentKindSchema: z.ZodEnum<{
@@ -1450,12 +1484,12 @@ declare const ScriptResourceLanguageSchema: z.ZodEnum<{
1450
1484
  python: "python";
1451
1485
  }>;
1452
1486
  declare const CodeReferenceRoleSchema: z.ZodEnum<{
1453
- config: "config";
1454
1487
  entrypoint: "entrypoint";
1455
1488
  handler: "handler";
1456
1489
  schema: "schema";
1457
1490
  test: "test";
1458
1491
  docs: "docs";
1492
+ config: "config";
1459
1493
  }>;
1460
1494
  declare const ResourceIdSchema: z.ZodString;
1461
1495
  declare const EventIdSchema: z.ZodString;
@@ -1464,10 +1498,10 @@ declare const EventEmissionDescriptorSchema: z.ZodObject<{
1464
1498
  label: z.ZodString;
1465
1499
  payloadSchema: z.ZodOptional<z.ZodString>;
1466
1500
  lifecycle: z.ZodOptional<z.ZodEnum<{
1501
+ active: "active";
1467
1502
  deprecated: "deprecated";
1468
1503
  draft: "draft";
1469
1504
  beta: "beta";
1470
- active: "active";
1471
1505
  archived: "archived";
1472
1506
  }>>;
1473
1507
  }, z.core.$strip>;
@@ -1476,10 +1510,10 @@ declare const EventDescriptorSchema: z.ZodObject<{
1476
1510
  label: z.ZodString;
1477
1511
  payloadSchema: z.ZodOptional<z.ZodString>;
1478
1512
  lifecycle: z.ZodOptional<z.ZodEnum<{
1513
+ active: "active";
1479
1514
  deprecated: "deprecated";
1480
1515
  draft: "draft";
1481
1516
  beta: "beta";
1482
- active: "active";
1483
1517
  archived: "archived";
1484
1518
  }>>;
1485
1519
  id: z.ZodString;
@@ -1515,12 +1549,12 @@ type ResourceOntologyBindingInput = {
1515
1549
  declare const CodeReferenceSchema: z.ZodObject<{
1516
1550
  path: z.ZodString;
1517
1551
  role: z.ZodEnum<{
1518
- config: "config";
1519
1552
  entrypoint: "entrypoint";
1520
1553
  handler: "handler";
1521
1554
  schema: "schema";
1522
1555
  test: "test";
1523
1556
  docs: "docs";
1557
+ config: "config";
1524
1558
  }>;
1525
1559
  symbol: z.ZodOptional<z.ZodString>;
1526
1560
  description: z.ZodOptional<z.ZodString>;
@@ -1533,8 +1567,8 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
1533
1567
  description: z.ZodOptional<z.ZodString>;
1534
1568
  ownerRoleId: z.ZodOptional<z.ZodString>;
1535
1569
  status: z.ZodEnum<{
1536
- deprecated: "deprecated";
1537
1570
  active: "active";
1571
+ deprecated: "deprecated";
1538
1572
  archived: "archived";
1539
1573
  }>;
1540
1574
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1552,12 +1586,12 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
1552
1586
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1553
1587
  path: z.ZodString;
1554
1588
  role: z.ZodEnum<{
1555
- config: "config";
1556
1589
  entrypoint: "entrypoint";
1557
1590
  handler: "handler";
1558
1591
  schema: "schema";
1559
1592
  test: "test";
1560
1593
  docs: "docs";
1594
+ config: "config";
1561
1595
  }>;
1562
1596
  symbol: z.ZodOptional<z.ZodString>;
1563
1597
  description: z.ZodOptional<z.ZodString>;
@@ -1568,10 +1602,10 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
1568
1602
  label: z.ZodString;
1569
1603
  payloadSchema: z.ZodOptional<z.ZodString>;
1570
1604
  lifecycle: z.ZodOptional<z.ZodEnum<{
1605
+ active: "active";
1571
1606
  deprecated: "deprecated";
1572
1607
  draft: "draft";
1573
1608
  beta: "beta";
1574
- active: "active";
1575
1609
  archived: "archived";
1576
1610
  }>>;
1577
1611
  }, z.core.$strip>>>;
@@ -1584,8 +1618,8 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
1584
1618
  description: z.ZodOptional<z.ZodString>;
1585
1619
  ownerRoleId: z.ZodOptional<z.ZodString>;
1586
1620
  status: z.ZodEnum<{
1587
- deprecated: "deprecated";
1588
1621
  active: "active";
1622
+ deprecated: "deprecated";
1589
1623
  archived: "archived";
1590
1624
  }>;
1591
1625
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1603,12 +1637,12 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
1603
1637
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1604
1638
  path: z.ZodString;
1605
1639
  role: z.ZodEnum<{
1606
- config: "config";
1607
1640
  entrypoint: "entrypoint";
1608
1641
  handler: "handler";
1609
1642
  schema: "schema";
1610
1643
  test: "test";
1611
1644
  docs: "docs";
1645
+ config: "config";
1612
1646
  }>;
1613
1647
  symbol: z.ZodOptional<z.ZodString>;
1614
1648
  description: z.ZodOptional<z.ZodString>;
@@ -1650,10 +1684,10 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
1650
1684
  label: z.ZodString;
1651
1685
  payloadSchema: z.ZodOptional<z.ZodString>;
1652
1686
  lifecycle: z.ZodOptional<z.ZodEnum<{
1687
+ active: "active";
1653
1688
  deprecated: "deprecated";
1654
1689
  draft: "draft";
1655
1690
  beta: "beta";
1656
- active: "active";
1657
1691
  archived: "archived";
1658
1692
  }>>;
1659
1693
  }, z.core.$strip>>>;
@@ -1666,8 +1700,8 @@ declare const IntegrationResourceEntrySchema: z.ZodObject<{
1666
1700
  description: z.ZodOptional<z.ZodString>;
1667
1701
  ownerRoleId: z.ZodOptional<z.ZodString>;
1668
1702
  status: z.ZodEnum<{
1669
- deprecated: "deprecated";
1670
1703
  active: "active";
1704
+ deprecated: "deprecated";
1671
1705
  archived: "archived";
1672
1706
  }>;
1673
1707
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1685,12 +1719,12 @@ declare const IntegrationResourceEntrySchema: z.ZodObject<{
1685
1719
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1686
1720
  path: z.ZodString;
1687
1721
  role: z.ZodEnum<{
1688
- config: "config";
1689
1722
  entrypoint: "entrypoint";
1690
1723
  handler: "handler";
1691
1724
  schema: "schema";
1692
1725
  test: "test";
1693
1726
  docs: "docs";
1727
+ config: "config";
1694
1728
  }>;
1695
1729
  symbol: z.ZodOptional<z.ZodString>;
1696
1730
  description: z.ZodOptional<z.ZodString>;
@@ -1709,8 +1743,8 @@ declare const ScriptResourceEntrySchema: z.ZodObject<{
1709
1743
  description: z.ZodOptional<z.ZodString>;
1710
1744
  ownerRoleId: z.ZodOptional<z.ZodString>;
1711
1745
  status: z.ZodEnum<{
1712
- deprecated: "deprecated";
1713
1746
  active: "active";
1747
+ deprecated: "deprecated";
1714
1748
  archived: "archived";
1715
1749
  }>;
1716
1750
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1728,12 +1762,12 @@ declare const ScriptResourceEntrySchema: z.ZodObject<{
1728
1762
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1729
1763
  path: z.ZodString;
1730
1764
  role: z.ZodEnum<{
1731
- config: "config";
1732
1765
  entrypoint: "entrypoint";
1733
1766
  handler: "handler";
1734
1767
  schema: "schema";
1735
1768
  test: "test";
1736
1769
  docs: "docs";
1770
+ config: "config";
1737
1771
  }>;
1738
1772
  symbol: z.ZodOptional<z.ZodString>;
1739
1773
  description: z.ZodOptional<z.ZodString>;
@@ -1757,8 +1791,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1757
1791
  description: z.ZodOptional<z.ZodString>;
1758
1792
  ownerRoleId: z.ZodOptional<z.ZodString>;
1759
1793
  status: z.ZodEnum<{
1760
- deprecated: "deprecated";
1761
1794
  active: "active";
1795
+ deprecated: "deprecated";
1762
1796
  archived: "archived";
1763
1797
  }>;
1764
1798
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1776,12 +1810,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1776
1810
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1777
1811
  path: z.ZodString;
1778
1812
  role: z.ZodEnum<{
1779
- config: "config";
1780
1813
  entrypoint: "entrypoint";
1781
1814
  handler: "handler";
1782
1815
  schema: "schema";
1783
1816
  test: "test";
1784
1817
  docs: "docs";
1818
+ config: "config";
1785
1819
  }>;
1786
1820
  symbol: z.ZodOptional<z.ZodString>;
1787
1821
  description: z.ZodOptional<z.ZodString>;
@@ -1792,10 +1826,10 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
1826
  label: z.ZodString;
1793
1827
  payloadSchema: z.ZodOptional<z.ZodString>;
1794
1828
  lifecycle: z.ZodOptional<z.ZodEnum<{
1829
+ active: "active";
1795
1830
  deprecated: "deprecated";
1796
1831
  draft: "draft";
1797
1832
  beta: "beta";
1798
- active: "active";
1799
1833
  archived: "archived";
1800
1834
  }>>;
1801
1835
  }, z.core.$strip>>>;
@@ -1807,8 +1841,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1807
1841
  description: z.ZodOptional<z.ZodString>;
1808
1842
  ownerRoleId: z.ZodOptional<z.ZodString>;
1809
1843
  status: z.ZodEnum<{
1810
- deprecated: "deprecated";
1811
1844
  active: "active";
1845
+ deprecated: "deprecated";
1812
1846
  archived: "archived";
1813
1847
  }>;
1814
1848
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1826,12 +1860,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1826
1860
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1827
1861
  path: z.ZodString;
1828
1862
  role: z.ZodEnum<{
1829
- config: "config";
1830
1863
  entrypoint: "entrypoint";
1831
1864
  handler: "handler";
1832
1865
  schema: "schema";
1833
1866
  test: "test";
1834
1867
  docs: "docs";
1868
+ config: "config";
1835
1869
  }>;
1836
1870
  symbol: z.ZodOptional<z.ZodString>;
1837
1871
  description: z.ZodOptional<z.ZodString>;
@@ -1873,10 +1907,10 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1873
1907
  label: z.ZodString;
1874
1908
  payloadSchema: z.ZodOptional<z.ZodString>;
1875
1909
  lifecycle: z.ZodOptional<z.ZodEnum<{
1910
+ active: "active";
1876
1911
  deprecated: "deprecated";
1877
1912
  draft: "draft";
1878
1913
  beta: "beta";
1879
- active: "active";
1880
1914
  archived: "archived";
1881
1915
  }>>;
1882
1916
  }, z.core.$strip>>>;
@@ -1888,8 +1922,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1888
1922
  description: z.ZodOptional<z.ZodString>;
1889
1923
  ownerRoleId: z.ZodOptional<z.ZodString>;
1890
1924
  status: z.ZodEnum<{
1891
- deprecated: "deprecated";
1892
1925
  active: "active";
1926
+ deprecated: "deprecated";
1893
1927
  archived: "archived";
1894
1928
  }>;
1895
1929
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1907,12 +1941,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1907
1941
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1908
1942
  path: z.ZodString;
1909
1943
  role: z.ZodEnum<{
1910
- config: "config";
1911
1944
  entrypoint: "entrypoint";
1912
1945
  handler: "handler";
1913
1946
  schema: "schema";
1914
1947
  test: "test";
1915
1948
  docs: "docs";
1949
+ config: "config";
1916
1950
  }>;
1917
1951
  symbol: z.ZodOptional<z.ZodString>;
1918
1952
  description: z.ZodOptional<z.ZodString>;
@@ -1927,8 +1961,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1927
1961
  description: z.ZodOptional<z.ZodString>;
1928
1962
  ownerRoleId: z.ZodOptional<z.ZodString>;
1929
1963
  status: z.ZodEnum<{
1930
- deprecated: "deprecated";
1931
1964
  active: "active";
1965
+ deprecated: "deprecated";
1932
1966
  archived: "archived";
1933
1967
  }>;
1934
1968
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1946,12 +1980,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1946
1980
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1947
1981
  path: z.ZodString;
1948
1982
  role: z.ZodEnum<{
1949
- config: "config";
1950
1983
  entrypoint: "entrypoint";
1951
1984
  handler: "handler";
1952
1985
  schema: "schema";
1953
1986
  test: "test";
1954
1987
  docs: "docs";
1988
+ config: "config";
1955
1989
  }>;
1956
1990
  symbol: z.ZodOptional<z.ZodString>;
1957
1991
  description: z.ZodOptional<z.ZodString>;
@@ -1975,8 +2009,8 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1975
2009
  description: z.ZodOptional<z.ZodString>;
1976
2010
  ownerRoleId: z.ZodOptional<z.ZodString>;
1977
2011
  status: z.ZodEnum<{
1978
- deprecated: "deprecated";
1979
2012
  active: "active";
2013
+ deprecated: "deprecated";
1980
2014
  archived: "archived";
1981
2015
  }>;
1982
2016
  ontology: z.ZodOptional<z.ZodObject<{
@@ -1994,12 +2028,12 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
1994
2028
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1995
2029
  path: z.ZodString;
1996
2030
  role: z.ZodEnum<{
1997
- config: "config";
1998
2031
  entrypoint: "entrypoint";
1999
2032
  handler: "handler";
2000
2033
  schema: "schema";
2001
2034
  test: "test";
2002
2035
  docs: "docs";
2036
+ config: "config";
2003
2037
  }>;
2004
2038
  symbol: z.ZodOptional<z.ZodString>;
2005
2039
  description: z.ZodOptional<z.ZodString>;
@@ -2010,10 +2044,10 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2010
2044
  label: z.ZodString;
2011
2045
  payloadSchema: z.ZodOptional<z.ZodString>;
2012
2046
  lifecycle: z.ZodOptional<z.ZodEnum<{
2047
+ active: "active";
2013
2048
  deprecated: "deprecated";
2014
2049
  draft: "draft";
2015
2050
  beta: "beta";
2016
- active: "active";
2017
2051
  archived: "archived";
2018
2052
  }>>;
2019
2053
  }, z.core.$strip>>>;
@@ -2025,8 +2059,8 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2025
2059
  description: z.ZodOptional<z.ZodString>;
2026
2060
  ownerRoleId: z.ZodOptional<z.ZodString>;
2027
2061
  status: z.ZodEnum<{
2028
- deprecated: "deprecated";
2029
2062
  active: "active";
2063
+ deprecated: "deprecated";
2030
2064
  archived: "archived";
2031
2065
  }>;
2032
2066
  ontology: z.ZodOptional<z.ZodObject<{
@@ -2044,12 +2078,12 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2044
2078
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2045
2079
  path: z.ZodString;
2046
2080
  role: z.ZodEnum<{
2047
- config: "config";
2048
2081
  entrypoint: "entrypoint";
2049
2082
  handler: "handler";
2050
2083
  schema: "schema";
2051
2084
  test: "test";
2052
2085
  docs: "docs";
2086
+ config: "config";
2053
2087
  }>;
2054
2088
  symbol: z.ZodOptional<z.ZodString>;
2055
2089
  description: z.ZodOptional<z.ZodString>;
@@ -2091,10 +2125,10 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2091
2125
  label: z.ZodString;
2092
2126
  payloadSchema: z.ZodOptional<z.ZodString>;
2093
2127
  lifecycle: z.ZodOptional<z.ZodEnum<{
2128
+ active: "active";
2094
2129
  deprecated: "deprecated";
2095
2130
  draft: "draft";
2096
2131
  beta: "beta";
2097
- active: "active";
2098
2132
  archived: "archived";
2099
2133
  }>>;
2100
2134
  }, z.core.$strip>>>;
@@ -2106,8 +2140,8 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2106
2140
  description: z.ZodOptional<z.ZodString>;
2107
2141
  ownerRoleId: z.ZodOptional<z.ZodString>;
2108
2142
  status: z.ZodEnum<{
2109
- deprecated: "deprecated";
2110
2143
  active: "active";
2144
+ deprecated: "deprecated";
2111
2145
  archived: "archived";
2112
2146
  }>;
2113
2147
  ontology: z.ZodOptional<z.ZodObject<{
@@ -2125,12 +2159,12 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2125
2159
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2126
2160
  path: z.ZodString;
2127
2161
  role: z.ZodEnum<{
2128
- config: "config";
2129
2162
  entrypoint: "entrypoint";
2130
2163
  handler: "handler";
2131
2164
  schema: "schema";
2132
2165
  test: "test";
2133
2166
  docs: "docs";
2167
+ config: "config";
2134
2168
  }>;
2135
2169
  symbol: z.ZodOptional<z.ZodString>;
2136
2170
  description: z.ZodOptional<z.ZodString>;
@@ -2145,8 +2179,8 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2145
2179
  description: z.ZodOptional<z.ZodString>;
2146
2180
  ownerRoleId: z.ZodOptional<z.ZodString>;
2147
2181
  status: z.ZodEnum<{
2148
- deprecated: "deprecated";
2149
2182
  active: "active";
2183
+ deprecated: "deprecated";
2150
2184
  archived: "archived";
2151
2185
  }>;
2152
2186
  ontology: z.ZodOptional<z.ZodObject<{
@@ -2164,12 +2198,12 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
2164
2198
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2165
2199
  path: z.ZodString;
2166
2200
  role: z.ZodEnum<{
2167
- config: "config";
2168
2201
  entrypoint: "entrypoint";
2169
2202
  handler: "handler";
2170
2203
  schema: "schema";
2171
2204
  test: "test";
2172
2205
  docs: "docs";
2206
+ config: "config";
2173
2207
  }>;
2174
2208
  symbol: z.ZodOptional<z.ZodString>;
2175
2209
  description: z.ZodOptional<z.ZodString>;
@@ -2196,17 +2230,17 @@ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
2196
2230
  declare const OmTopologyNodeKindSchema: z.ZodEnum<{
2197
2231
  trigger: "trigger";
2198
2232
  system: "system";
2233
+ resource: "resource";
2199
2234
  ontology: "ontology";
2200
2235
  role: "role";
2201
2236
  policy: "policy";
2202
- resource: "resource";
2203
2237
  humanCheckpoint: "humanCheckpoint";
2204
2238
  externalResource: "externalResource";
2205
2239
  }>;
2206
2240
  declare const OmTopologyRelationshipKindSchema: z.ZodEnum<{
2241
+ approval: "approval";
2207
2242
  triggers: "triggers";
2208
2243
  uses: "uses";
2209
- approval: "approval";
2210
2244
  }>;
2211
2245
  declare const OmTopologyNodeRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2212
2246
  kind: z.ZodLiteral<"system">;
@@ -2261,9 +2295,9 @@ declare const OmTopologyRelationshipSchema: z.ZodObject<{
2261
2295
  id: z.ZodString;
2262
2296
  }, z.core.$strip>], "kind">;
2263
2297
  kind: z.ZodEnum<{
2298
+ approval: "approval";
2264
2299
  triggers: "triggers";
2265
2300
  uses: "uses";
2266
- approval: "approval";
2267
2301
  }>;
2268
2302
  to: z.ZodDiscriminatedUnion<[z.ZodObject<{
2269
2303
  kind: z.ZodLiteral<"system">;
@@ -2323,9 +2357,9 @@ declare const OmTopologyDomainSchema: z.ZodDefault<z.ZodObject<{
2323
2357
  id: z.ZodString;
2324
2358
  }, z.core.$strip>], "kind">;
2325
2359
  kind: z.ZodEnum<{
2360
+ approval: "approval";
2326
2361
  triggers: "triggers";
2327
2362
  uses: "uses";
2328
- approval: "approval";
2329
2363
  }>;
2330
2364
  to: z.ZodDiscriminatedUnion<[z.ZodObject<{
2331
2365
  kind: z.ZodLiteral<"system">;
@@ -2600,7 +2634,7 @@ declare const topologyRelationship: {
2600
2634
  kind: "externalResource";
2601
2635
  id: string;
2602
2636
  };
2603
- kind: "triggers" | "uses" | "approval";
2637
+ kind: "approval" | "triggers" | "uses";
2604
2638
  to: {
2605
2639
  kind: "system";
2606
2640
  id: string;
@@ -2656,7 +2690,7 @@ declare const topologyRelationship: {
2656
2690
  kind: "externalResource";
2657
2691
  id: string;
2658
2692
  };
2659
- kind: "triggers" | "uses" | "approval";
2693
+ kind: "approval" | "triggers" | "uses";
2660
2694
  to: {
2661
2695
  kind: "system";
2662
2696
  id: string;
@@ -2712,7 +2746,7 @@ declare const topologyRelationship: {
2712
2746
  kind: "externalResource";
2713
2747
  id: string;
2714
2748
  };
2715
- kind: "triggers" | "uses" | "approval";
2749
+ kind: "approval" | "triggers" | "uses";
2716
2750
  to: {
2717
2751
  kind: "system";
2718
2752
  id: string;
@@ -2768,7 +2802,7 @@ declare const topologyRelationship: {
2768
2802
  kind: "externalResource";
2769
2803
  id: string;
2770
2804
  };
2771
- kind: "triggers" | "uses" | "approval";
2805
+ kind: "approval" | "triggers" | "uses";
2772
2806
  to: {
2773
2807
  kind: "system";
2774
2808
  id: string;
@@ -2824,7 +2858,7 @@ declare const topologyRelationship: {
2824
2858
  kind: "externalResource";
2825
2859
  id: string;
2826
2860
  };
2827
- kind: "triggers" | "uses" | "approval";
2861
+ kind: "approval" | "triggers" | "uses";
2828
2862
  to: {
2829
2863
  kind: "system";
2830
2864
  id: string;
@@ -2880,7 +2914,7 @@ declare const topologyRelationship: {
2880
2914
  kind: "externalResource";
2881
2915
  id: string;
2882
2916
  };
2883
- kind: "triggers" | "uses" | "approval";
2917
+ kind: "approval" | "triggers" | "uses";
2884
2918
  to: {
2885
2919
  kind: "system";
2886
2920
  id: string;
@@ -2980,6 +3014,10 @@ declare const EntitiesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
2980
3014
  }, z.core.$strip>>>;
2981
3015
  }, z.core.$strip>>>;
2982
3016
  declare const DEFAULT_ORGANIZATION_MODEL_ENTITIES: z.infer<typeof EntitiesDomainSchema>;
3017
+ /** Validate and return a single entity entry. */
3018
+ declare function defineEntity(entry: z.input<typeof EntitySchema>): z.infer<typeof EntitySchema>;
3019
+ /** Validate and return an id-keyed map of entity entries. */
3020
+ declare function defineEntities(entries: readonly z.input<typeof EntitySchema>[]): Record<string, z.infer<typeof EntitySchema>>;
2983
3021
 
2984
3022
  declare const PolicyIdSchema: z.ZodString;
2985
3023
  declare const PolicyApplicabilitySchema: z.ZodObject<{
@@ -3082,10 +3120,10 @@ declare const PolicySchema: z.ZodObject<{
3082
3120
  roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3083
3121
  }, z.core.$strip>>;
3084
3122
  lifecycle: z.ZodDefault<z.ZodEnum<{
3123
+ active: "active";
3085
3124
  deprecated: "deprecated";
3086
3125
  draft: "draft";
3087
3126
  beta: "beta";
3088
- active: "active";
3089
3127
  archived: "archived";
3090
3128
  }>>;
3091
3129
  }, z.core.$strip>;
@@ -3142,14 +3180,18 @@ declare const PoliciesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
3142
3180
  roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3143
3181
  }, z.core.$strip>>;
3144
3182
  lifecycle: z.ZodDefault<z.ZodEnum<{
3183
+ active: "active";
3145
3184
  deprecated: "deprecated";
3146
3185
  draft: "draft";
3147
3186
  beta: "beta";
3148
- active: "active";
3149
3187
  archived: "archived";
3150
3188
  }>>;
3151
3189
  }, z.core.$strip>>>;
3152
3190
  declare const DEFAULT_ORGANIZATION_MODEL_POLICIES: z.infer<typeof PoliciesDomainSchema>;
3191
+ /** Validate and return a single policy entry. */
3192
+ declare function definePolicy(entry: z.input<typeof PolicySchema>): z.infer<typeof PolicySchema>;
3193
+ /** Validate and return an id-keyed map of policy entries. */
3194
+ declare function definePolicies(entries: readonly z.input<typeof PolicySchema>[]): Record<string, z.infer<typeof PolicySchema>>;
3153
3195
 
3154
3196
  declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["dashboard", "calendar", "sales", "crm", "lead-gen", "projects", "clients", "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"];
3155
3197
  declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
@@ -3529,6 +3571,21 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
3529
3571
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
3530
3572
  };
3531
3573
 
3574
+ /**
3575
+ * Generic domain-record factory. Validates every entry through the given Zod
3576
+ * schema (throws `ZodError` on invalid input) and returns an id-keyed map.
3577
+ *
3578
+ * Each entry MUST carry an `id` field — validated at runtime via the parsed
3579
+ * result. Use the per-domain `defineX` / `defineXs` wrappers at call sites for
3580
+ * schema-specific type inference; this function is the shared implementation.
3581
+ *
3582
+ * @example
3583
+ * const actions = defineDomainRecord(ActionSchema, [
3584
+ * { id: 'my-action', order: 10, label: 'My Action', invocations: [] }
3585
+ * ])
3586
+ * // → { 'my-action': { id: 'my-action', order: 10, label: 'My Action', invocations: [], ... } }
3587
+ */
3588
+ declare function defineDomainRecord<TSchema extends z.ZodTypeAny>(schema: TSchema, entries: readonly z.input<TSchema>[]): Record<string, z.infer<TSchema>>;
3532
3589
  /**
3533
3590
  * SystemEntry extended with the recursive tree slots (`systems`, `subsystems`).
3534
3591
  * `OrganizationModelSystemEntry` is inferred from `SystemEntrySchema: ZodType<SystemEntry>`
@@ -3615,16 +3672,16 @@ declare function scaffoldOrganizationModel(model: OrganizationModel, spec: OmSca
3615
3672
  declare const LinkSchema: z.ZodObject<{
3616
3673
  nodeId: z.ZodString;
3617
3674
  kind: z.ZodEnum<{
3618
- links: "links";
3675
+ approval: "approval";
3619
3676
  affects: "affects";
3620
- effects: "effects";
3621
3677
  actions: "actions";
3678
+ effects: "effects";
3679
+ links: "links";
3622
3680
  reads: "reads";
3623
3681
  writes: "writes";
3624
3682
  emits: "emits";
3625
3683
  triggers: "triggers";
3626
3684
  uses: "uses";
3627
- approval: "approval";
3628
3685
  contains: "contains";
3629
3686
  references: "references";
3630
3687
  maps_to: "maps_to";
@@ -3638,11 +3695,10 @@ declare const LinkSchema: z.ZodObject<{
3638
3695
  declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
3639
3696
  knowledge: "knowledge";
3640
3697
  resources: "resources";
3698
+ systems: "systems";
3641
3699
  entities: "entities";
3642
3700
  actions: "actions";
3643
3701
  ontology: "ontology";
3644
- systems: "systems";
3645
- policies: "policies";
3646
3702
  branding: "branding";
3647
3703
  identity: "identity";
3648
3704
  customers: "customers";
@@ -3650,6 +3706,7 @@ declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
3650
3706
  roles: "roles";
3651
3707
  goals: "goals";
3652
3708
  topology: "topology";
3709
+ policies: "policies";
3653
3710
  }>;
3654
3711
  declare const OrganizationModelDomainMetadataSchema: z.ZodObject<{
3655
3712
  version: z.ZodDefault<z.ZodLiteral<1>>;
@@ -4232,8 +4289,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
4232
4289
  description: z.ZodOptional<z.ZodString>;
4233
4290
  ownerRoleId: z.ZodOptional<z.ZodString>;
4234
4291
  status: z.ZodEnum<{
4235
- deprecated: "deprecated";
4236
4292
  active: "active";
4293
+ deprecated: "deprecated";
4237
4294
  archived: "archived";
4238
4295
  }>;
4239
4296
  ontology: z.ZodOptional<z.ZodObject<{
@@ -4251,12 +4308,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
4251
4308
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4252
4309
  path: z.ZodString;
4253
4310
  role: z.ZodEnum<{
4254
- config: "config";
4255
4311
  entrypoint: "entrypoint";
4256
4312
  handler: "handler";
4257
4313
  schema: "schema";
4258
4314
  test: "test";
4259
4315
  docs: "docs";
4316
+ config: "config";
4260
4317
  }>;
4261
4318
  symbol: z.ZodOptional<z.ZodString>;
4262
4319
  description: z.ZodOptional<z.ZodString>;
@@ -4267,10 +4324,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
4267
4324
  label: z.ZodString;
4268
4325
  payloadSchema: z.ZodOptional<z.ZodString>;
4269
4326
  lifecycle: z.ZodOptional<z.ZodEnum<{
4327
+ active: "active";
4270
4328
  deprecated: "deprecated";
4271
4329
  draft: "draft";
4272
4330
  beta: "beta";
4273
- active: "active";
4274
4331
  archived: "archived";
4275
4332
  }>>;
4276
4333
  }, z.core.$strip>>>;
@@ -4282,8 +4339,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
4282
4339
  description: z.ZodOptional<z.ZodString>;
4283
4340
  ownerRoleId: z.ZodOptional<z.ZodString>;
4284
4341
  status: z.ZodEnum<{
4285
- deprecated: "deprecated";
4286
4342
  active: "active";
4343
+ deprecated: "deprecated";
4287
4344
  archived: "archived";
4288
4345
  }>;
4289
4346
  ontology: z.ZodOptional<z.ZodObject<{
@@ -4301,12 +4358,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
4301
4358
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4302
4359
  path: z.ZodString;
4303
4360
  role: z.ZodEnum<{
4304
- config: "config";
4305
4361
  entrypoint: "entrypoint";
4306
4362
  handler: "handler";
4307
4363
  schema: "schema";
4308
4364
  test: "test";
4309
4365
  docs: "docs";
4366
+ config: "config";
4310
4367
  }>;
4311
4368
  symbol: z.ZodOptional<z.ZodString>;
4312
4369
  description: z.ZodOptional<z.ZodString>;
@@ -4348,10 +4405,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
4348
4405
  label: z.ZodString;
4349
4406
  payloadSchema: z.ZodOptional<z.ZodString>;
4350
4407
  lifecycle: z.ZodOptional<z.ZodEnum<{
4408
+ active: "active";
4351
4409
  deprecated: "deprecated";
4352
4410
  draft: "draft";
4353
4411
  beta: "beta";
4354
- active: "active";
4355
4412
  archived: "archived";
4356
4413
  }>>;
4357
4414
  }, z.core.$strip>>>;
@@ -4363,8 +4420,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
4363
4420
  description: z.ZodOptional<z.ZodString>;
4364
4421
  ownerRoleId: z.ZodOptional<z.ZodString>;
4365
4422
  status: z.ZodEnum<{
4366
- deprecated: "deprecated";
4367
4423
  active: "active";
4424
+ deprecated: "deprecated";
4368
4425
  archived: "archived";
4369
4426
  }>;
4370
4427
  ontology: z.ZodOptional<z.ZodObject<{
@@ -4382,12 +4439,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
4382
4439
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4383
4440
  path: z.ZodString;
4384
4441
  role: z.ZodEnum<{
4385
- config: "config";
4386
4442
  entrypoint: "entrypoint";
4387
4443
  handler: "handler";
4388
4444
  schema: "schema";
4389
4445
  test: "test";
4390
4446
  docs: "docs";
4447
+ config: "config";
4391
4448
  }>;
4392
4449
  symbol: z.ZodOptional<z.ZodString>;
4393
4450
  description: z.ZodOptional<z.ZodString>;
@@ -4402,8 +4459,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
4402
4459
  description: z.ZodOptional<z.ZodString>;
4403
4460
  ownerRoleId: z.ZodOptional<z.ZodString>;
4404
4461
  status: z.ZodEnum<{
4405
- deprecated: "deprecated";
4406
4462
  active: "active";
4463
+ deprecated: "deprecated";
4407
4464
  archived: "archived";
4408
4465
  }>;
4409
4466
  ontology: z.ZodOptional<z.ZodObject<{
@@ -4421,12 +4478,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
4421
4478
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4422
4479
  path: z.ZodString;
4423
4480
  role: z.ZodEnum<{
4424
- config: "config";
4425
4481
  entrypoint: "entrypoint";
4426
4482
  handler: "handler";
4427
4483
  schema: "schema";
4428
4484
  test: "test";
4429
4485
  docs: "docs";
4486
+ config: "config";
4430
4487
  }>;
4431
4488
  symbol: z.ZodOptional<z.ZodString>;
4432
4489
  description: z.ZodOptional<z.ZodString>;
@@ -4471,9 +4528,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
4471
4528
  id: z.ZodString;
4472
4529
  }, z.core.$strip>], "kind">;
4473
4530
  kind: z.ZodEnum<{
4531
+ approval: "approval";
4474
4532
  triggers: "triggers";
4475
4533
  uses: "uses";
4476
- approval: "approval";
4477
4534
  }>;
4478
4535
  to: z.ZodDiscriminatedUnion<[z.ZodObject<{
4479
4536
  kind: z.ZodLiteral<"system">;
@@ -4540,10 +4597,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
4540
4597
  }, z.core.$strip>], "kind">>>;
4541
4598
  knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4542
4599
  lifecycle: z.ZodDefault<z.ZodEnum<{
4600
+ active: "active";
4543
4601
  deprecated: "deprecated";
4544
4602
  draft: "draft";
4545
4603
  beta: "beta";
4546
- active: "active";
4547
4604
  archived: "archived";
4548
4605
  }>>;
4549
4606
  }, z.core.$strip>>>>;
@@ -4621,10 +4678,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
4621
4678
  roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4622
4679
  }, z.core.$strip>>;
4623
4680
  lifecycle: z.ZodDefault<z.ZodEnum<{
4681
+ active: "active";
4624
4682
  deprecated: "deprecated";
4625
4683
  draft: "draft";
4626
4684
  beta: "beta";
4627
- active: "active";
4628
4685
  archived: "archived";
4629
4686
  }>>;
4630
4687
  }, z.core.$strip>>>>;
@@ -4707,12 +4764,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
4707
4764
  kind: z.ZodEnum<{
4708
4765
  knowledge: "knowledge";
4709
4766
  system: "system";
4767
+ resource: "resource";
4710
4768
  action: "action";
4711
4769
  ontology: "ontology";
4712
4770
  role: "role";
4713
- goal: "goal";
4714
- resource: "resource";
4715
4771
  stage: "stage";
4772
+ goal: "goal";
4716
4773
  "customer-segment": "customer-segment";
4717
4774
  offering: "offering";
4718
4775
  }>;
@@ -4722,7 +4779,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4722
4779
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
4723
4780
  }, z.core.$strip>]>, z.ZodTransform<{
4724
4781
  target: {
4725
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4782
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
4726
4783
  id: string;
4727
4784
  };
4728
4785
  nodeId: string;
@@ -4730,7 +4787,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4730
4787
  nodeId: string;
4731
4788
  } | {
4732
4789
  target: {
4733
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4790
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
4734
4791
  id: string;
4735
4792
  };
4736
4793
  }>>>>;
@@ -4739,5 +4796,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
4739
4796
  }, z.core.$strip>>>>;
4740
4797
  }, z.core.$strip>;
4741
4798
 
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 };
4799
+ 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, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
4743
4800
  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 };