@elevasis/core 0.24.1 → 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.
- package/dist/index.d.ts +239 -86
- package/dist/index.js +474 -1346
- package/dist/knowledge/index.d.ts +57 -39
- package/dist/knowledge/index.js +1 -1
- package/dist/organization-model/index.d.ts +239 -86
- package/dist/organization-model/index.js +474 -1346
- package/dist/test-utils/index.d.ts +24 -31
- package/dist/test-utils/index.js +76 -1238
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +108 -96
- package/src/business/acquisition/api-schemas.test.ts +70 -77
- package/src/business/acquisition/api-schemas.ts +21 -42
- package/src/business/acquisition/derive-actions.test.ts +11 -21
- package/src/business/acquisition/derive-actions.ts +61 -14
- package/src/business/acquisition/ontology-validation.ts +4 -4
- package/src/business/acquisition/types.ts +7 -8
- package/src/execution/engine/llm/adapters/__tests__/openrouter.integration.test.ts +10 -10
- package/src/knowledge/__tests__/queries.test.ts +960 -546
- package/src/knowledge/format.ts +322 -100
- package/src/knowledge/index.ts +18 -5
- package/src/knowledge/queries.ts +1004 -240
- package/src/organization-model/__tests__/content-kinds-registry.test.ts +35 -210
- package/src/organization-model/__tests__/defaults.test.ts +4 -4
- package/src/organization-model/__tests__/deprecate-helpers.test.ts +71 -0
- package/src/organization-model/__tests__/domains/actions.test.ts +12 -36
- package/src/organization-model/__tests__/domains/offerings.test.ts +13 -6
- package/src/organization-model/__tests__/domains/resources.test.ts +497 -350
- package/src/organization-model/__tests__/domains/systems.test.ts +6 -7
- package/src/organization-model/__tests__/flatten-additive-merge.test.ts +68 -80
- package/src/organization-model/__tests__/foundation.test.ts +81 -14
- package/src/organization-model/__tests__/graph.test.ts +662 -694
- package/src/organization-model/__tests__/knowledge.test.ts +31 -17
- package/src/organization-model/__tests__/lookup-helpers.test.ts +128 -438
- package/src/organization-model/__tests__/migration-helpers.test.ts +362 -591
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +68 -103
- package/src/organization-model/__tests__/published-zero-leak.test.ts +17 -0
- package/src/organization-model/__tests__/recursive-system-schema.test.ts +159 -532
- package/src/organization-model/__tests__/resolve.test.ts +88 -49
- package/src/organization-model/__tests__/scaffolders.test.ts +93 -0
- package/src/organization-model/__tests__/schema.test.ts +65 -56
- package/src/organization-model/catalogs/lead-gen.ts +0 -103
- package/src/organization-model/defaults.ts +17 -702
- package/src/organization-model/domains/actions.ts +116 -333
- package/src/organization-model/domains/knowledge.ts +15 -7
- package/src/organization-model/domains/projects.ts +4 -4
- package/src/organization-model/domains/prospecting.ts +405 -395
- package/src/organization-model/domains/resources.ts +206 -135
- package/src/organization-model/domains/sales.ts +5 -5
- package/src/organization-model/domains/systems.ts +8 -23
- package/src/organization-model/graph/build.ts +223 -294
- package/src/organization-model/graph/schema.ts +2 -3
- package/src/organization-model/graph/types.ts +12 -14
- package/src/organization-model/helpers.ts +120 -141
- package/src/organization-model/icons.ts +1 -0
- package/src/organization-model/index.ts +107 -126
- package/src/organization-model/migration-helpers.ts +211 -249
- package/src/organization-model/ontology.ts +0 -60
- package/src/organization-model/organization-graph.mdx +4 -5
- package/src/organization-model/organization-model.mdx +1 -1
- package/src/organization-model/published.ts +251 -228
- package/src/organization-model/resolve.ts +4 -5
- package/src/organization-model/scaffolders/helpers.ts +84 -0
- package/src/organization-model/scaffolders/index.ts +19 -0
- package/src/organization-model/scaffolders/scaffoldKnowledgeNode.ts +48 -0
- package/src/organization-model/scaffolders/scaffoldOntologyRecord.ts +38 -0
- package/src/organization-model/scaffolders/scaffoldResource.ts +59 -0
- package/src/organization-model/scaffolders/scaffoldSystem.ts +110 -0
- package/src/organization-model/scaffolders/types.ts +81 -0
- package/src/organization-model/schema.ts +610 -704
- package/src/organization-model/types.ts +167 -161
- package/src/platform/constants/versions.ts +1 -1
- package/src/platform/registry/__tests__/validation.test.ts +23 -0
- package/src/platform/registry/validation.ts +13 -2
- package/src/reference/_generated/contracts.md +108 -96
- package/src/reference/glossary.md +71 -69
- package/src/organization-model/content-kinds/config.ts +0 -36
- package/src/organization-model/content-kinds/index.ts +0 -78
- package/src/organization-model/content-kinds/pipeline.ts +0 -68
- package/src/organization-model/content-kinds/registry.ts +0 -44
- package/src/organization-model/content-kinds/status.ts +0 -71
- package/src/organization-model/content-kinds/template.ts +0 -83
- 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";
|
|
@@ -427,6 +393,7 @@ declare const SystemUiSchema: z.ZodObject<{
|
|
|
427
393
|
crm: "crm";
|
|
428
394
|
"lead-gen": "lead-gen";
|
|
429
395
|
projects: "projects";
|
|
396
|
+
clients: "clients";
|
|
430
397
|
operations: "operations";
|
|
431
398
|
monitoring: "monitoring";
|
|
432
399
|
knowledge: "knowledge";
|
|
@@ -478,7 +445,6 @@ declare const SystemUiSchema: z.ZodObject<{
|
|
|
478
445
|
}>, z.ZodString]>>;
|
|
479
446
|
order: z.ZodOptional<z.ZodNumber>;
|
|
480
447
|
}, z.core.$strip>;
|
|
481
|
-
|
|
482
448
|
type JsonPrimitive = string | number | boolean | null;
|
|
483
449
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
484
450
|
[key: string]: JsonValue;
|
|
@@ -520,11 +486,6 @@ interface SystemEntry {
|
|
|
520
486
|
config?: Record<string, JsonValue>;
|
|
521
487
|
ontology?: OntologyScope;
|
|
522
488
|
systems?: Record<string, SystemEntry>;
|
|
523
|
-
/**
|
|
524
|
-
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
525
|
-
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
526
|
-
*/
|
|
527
|
-
content?: Record<string, ContentNode>;
|
|
528
489
|
subsystems?: Record<string, SystemEntry>;
|
|
529
490
|
}
|
|
530
491
|
declare const SystemEntrySchema: ZodType<SystemEntry>;
|
|
@@ -681,8 +642,13 @@ declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
681
642
|
archived: "archived";
|
|
682
643
|
}>>;
|
|
683
644
|
}, z.core.$strip>>>;
|
|
684
|
-
|
|
685
|
-
|
|
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
|
+
*/
|
|
686
652
|
declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
|
|
687
653
|
declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
|
|
688
654
|
|
|
@@ -721,6 +687,7 @@ declare const SurfaceDefinitionSchema: z.ZodObject<{
|
|
|
721
687
|
crm: "crm";
|
|
722
688
|
"lead-gen": "lead-gen";
|
|
723
689
|
projects: "projects";
|
|
690
|
+
clients: "clients";
|
|
724
691
|
operations: "operations";
|
|
725
692
|
monitoring: "monitoring";
|
|
726
693
|
knowledge: "knowledge";
|
|
@@ -841,6 +808,7 @@ declare const IconNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
841
808
|
crm: "crm";
|
|
842
809
|
"lead-gen": "lead-gen";
|
|
843
810
|
projects: "projects";
|
|
811
|
+
clients: "clients";
|
|
844
812
|
operations: "operations";
|
|
845
813
|
monitoring: "monitoring";
|
|
846
814
|
knowledge: "knowledge";
|
|
@@ -1166,11 +1134,10 @@ declare const KnowledgeTargetKindSchema: z.ZodEnum<{
|
|
|
1166
1134
|
ontology: "ontology";
|
|
1167
1135
|
role: "role";
|
|
1168
1136
|
goal: "goal";
|
|
1169
|
-
stage: "stage";
|
|
1170
1137
|
resource: "resource";
|
|
1138
|
+
stage: "stage";
|
|
1171
1139
|
"customer-segment": "customer-segment";
|
|
1172
1140
|
offering: "offering";
|
|
1173
|
-
"content-node": "content-node";
|
|
1174
1141
|
}>;
|
|
1175
1142
|
declare const KnowledgeTargetRefSchema: z.ZodObject<{
|
|
1176
1143
|
kind: z.ZodEnum<{
|
|
@@ -1180,11 +1147,10 @@ declare const KnowledgeTargetRefSchema: z.ZodObject<{
|
|
|
1180
1147
|
ontology: "ontology";
|
|
1181
1148
|
role: "role";
|
|
1182
1149
|
goal: "goal";
|
|
1183
|
-
stage: "stage";
|
|
1184
1150
|
resource: "resource";
|
|
1151
|
+
stage: "stage";
|
|
1185
1152
|
"customer-segment": "customer-segment";
|
|
1186
1153
|
offering: "offering";
|
|
1187
|
-
"content-node": "content-node";
|
|
1188
1154
|
}>;
|
|
1189
1155
|
id: z.ZodString;
|
|
1190
1156
|
}, z.core.$strip>;
|
|
@@ -1197,11 +1163,10 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1197
1163
|
ontology: "ontology";
|
|
1198
1164
|
role: "role";
|
|
1199
1165
|
goal: "goal";
|
|
1200
|
-
stage: "stage";
|
|
1201
1166
|
resource: "resource";
|
|
1167
|
+
stage: "stage";
|
|
1202
1168
|
"customer-segment": "customer-segment";
|
|
1203
1169
|
offering: "offering";
|
|
1204
|
-
"content-node": "content-node";
|
|
1205
1170
|
}>;
|
|
1206
1171
|
id: z.ZodString;
|
|
1207
1172
|
}, z.core.$strip>;
|
|
@@ -1209,7 +1174,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1209
1174
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1210
1175
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1211
1176
|
target: {
|
|
1212
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1177
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1213
1178
|
id: string;
|
|
1214
1179
|
};
|
|
1215
1180
|
nodeId: string;
|
|
@@ -1217,7 +1182,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1217
1182
|
nodeId: string;
|
|
1218
1183
|
} | {
|
|
1219
1184
|
target: {
|
|
1220
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1185
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1221
1186
|
id: string;
|
|
1222
1187
|
};
|
|
1223
1188
|
}>>;
|
|
@@ -1247,6 +1212,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1247
1212
|
crm: "crm";
|
|
1248
1213
|
"lead-gen": "lead-gen";
|
|
1249
1214
|
projects: "projects";
|
|
1215
|
+
clients: "clients";
|
|
1250
1216
|
operations: "operations";
|
|
1251
1217
|
monitoring: "monitoring";
|
|
1252
1218
|
knowledge: "knowledge";
|
|
@@ -1308,11 +1274,10 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1308
1274
|
ontology: "ontology";
|
|
1309
1275
|
role: "role";
|
|
1310
1276
|
goal: "goal";
|
|
1311
|
-
stage: "stage";
|
|
1312
1277
|
resource: "resource";
|
|
1278
|
+
stage: "stage";
|
|
1313
1279
|
"customer-segment": "customer-segment";
|
|
1314
1280
|
offering: "offering";
|
|
1315
|
-
"content-node": "content-node";
|
|
1316
1281
|
}>;
|
|
1317
1282
|
id: z.ZodString;
|
|
1318
1283
|
}, z.core.$strip>;
|
|
@@ -1320,7 +1285,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1320
1285
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1321
1286
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1322
1287
|
target: {
|
|
1323
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1288
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1324
1289
|
id: string;
|
|
1325
1290
|
};
|
|
1326
1291
|
nodeId: string;
|
|
@@ -1328,7 +1293,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1328
1293
|
nodeId: string;
|
|
1329
1294
|
} | {
|
|
1330
1295
|
target: {
|
|
1331
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1296
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1332
1297
|
id: string;
|
|
1333
1298
|
};
|
|
1334
1299
|
}>>>>;
|
|
@@ -1356,6 +1321,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1356
1321
|
crm: "crm";
|
|
1357
1322
|
"lead-gen": "lead-gen";
|
|
1358
1323
|
projects: "projects";
|
|
1324
|
+
clients: "clients";
|
|
1359
1325
|
operations: "operations";
|
|
1360
1326
|
monitoring: "monitoring";
|
|
1361
1327
|
knowledge: "knowledge";
|
|
@@ -1417,11 +1383,10 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1417
1383
|
ontology: "ontology";
|
|
1418
1384
|
role: "role";
|
|
1419
1385
|
goal: "goal";
|
|
1420
|
-
stage: "stage";
|
|
1421
1386
|
resource: "resource";
|
|
1387
|
+
stage: "stage";
|
|
1422
1388
|
"customer-segment": "customer-segment";
|
|
1423
1389
|
offering: "offering";
|
|
1424
|
-
"content-node": "content-node";
|
|
1425
1390
|
}>;
|
|
1426
1391
|
id: z.ZodString;
|
|
1427
1392
|
}, z.core.$strip>;
|
|
@@ -1429,7 +1394,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1429
1394
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1430
1395
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1431
1396
|
target: {
|
|
1432
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1397
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1433
1398
|
id: string;
|
|
1434
1399
|
};
|
|
1435
1400
|
nodeId: string;
|
|
@@ -1437,7 +1402,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1437
1402
|
nodeId: string;
|
|
1438
1403
|
} | {
|
|
1439
1404
|
target: {
|
|
1440
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
1405
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
1441
1406
|
id: string;
|
|
1442
1407
|
};
|
|
1443
1408
|
}>>>>;
|
|
@@ -1445,6 +1410,22 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1445
1410
|
updatedAt: z.ZodString;
|
|
1446
1411
|
}, z.core.$strip>>>;
|
|
1447
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;
|
|
1448
1429
|
declare const ResourceKindSchema: z.ZodEnum<{
|
|
1449
1430
|
agent: "agent";
|
|
1450
1431
|
workflow: "workflow";
|
|
@@ -1469,10 +1450,10 @@ declare const ScriptResourceLanguageSchema: z.ZodEnum<{
|
|
|
1469
1450
|
python: "python";
|
|
1470
1451
|
}>;
|
|
1471
1452
|
declare const CodeReferenceRoleSchema: z.ZodEnum<{
|
|
1472
|
-
schema: "schema";
|
|
1473
1453
|
config: "config";
|
|
1474
1454
|
entrypoint: "entrypoint";
|
|
1475
1455
|
handler: "handler";
|
|
1456
|
+
schema: "schema";
|
|
1476
1457
|
test: "test";
|
|
1477
1458
|
docs: "docs";
|
|
1478
1459
|
}>;
|
|
@@ -1515,6 +1496,10 @@ declare const ResourceOntologyBindingSchema: z.ZodObject<{
|
|
|
1515
1496
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1516
1497
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1517
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>>;
|
|
1518
1503
|
}, z.core.$strip>;
|
|
1519
1504
|
type OntologyRefInput = string | {
|
|
1520
1505
|
id: string;
|
|
@@ -1530,10 +1515,10 @@ type ResourceOntologyBindingInput = {
|
|
|
1530
1515
|
declare const CodeReferenceSchema: z.ZodObject<{
|
|
1531
1516
|
path: z.ZodString;
|
|
1532
1517
|
role: z.ZodEnum<{
|
|
1533
|
-
schema: "schema";
|
|
1534
1518
|
config: "config";
|
|
1535
1519
|
entrypoint: "entrypoint";
|
|
1536
1520
|
handler: "handler";
|
|
1521
|
+
schema: "schema";
|
|
1537
1522
|
test: "test";
|
|
1538
1523
|
docs: "docs";
|
|
1539
1524
|
}>;
|
|
@@ -1559,14 +1544,18 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
|
|
|
1559
1544
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1560
1545
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1561
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>>;
|
|
1562
1551
|
}, z.core.$strip>>;
|
|
1563
1552
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1564
1553
|
path: z.ZodString;
|
|
1565
1554
|
role: z.ZodEnum<{
|
|
1566
|
-
schema: "schema";
|
|
1567
1555
|
config: "config";
|
|
1568
1556
|
entrypoint: "entrypoint";
|
|
1569
1557
|
handler: "handler";
|
|
1558
|
+
schema: "schema";
|
|
1570
1559
|
test: "test";
|
|
1571
1560
|
docs: "docs";
|
|
1572
1561
|
}>;
|
|
@@ -1606,14 +1595,18 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
|
|
|
1606
1595
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1607
1596
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1608
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>>;
|
|
1609
1602
|
}, z.core.$strip>>;
|
|
1610
1603
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1611
1604
|
path: z.ZodString;
|
|
1612
1605
|
role: z.ZodEnum<{
|
|
1613
|
-
schema: "schema";
|
|
1614
1606
|
config: "config";
|
|
1615
1607
|
entrypoint: "entrypoint";
|
|
1616
1608
|
handler: "handler";
|
|
1609
|
+
schema: "schema";
|
|
1617
1610
|
test: "test";
|
|
1618
1611
|
docs: "docs";
|
|
1619
1612
|
}>;
|
|
@@ -1684,14 +1677,18 @@ declare const IntegrationResourceEntrySchema: z.ZodObject<{
|
|
|
1684
1677
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1685
1678
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1686
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>>;
|
|
1687
1684
|
}, z.core.$strip>>;
|
|
1688
1685
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1689
1686
|
path: z.ZodString;
|
|
1690
1687
|
role: z.ZodEnum<{
|
|
1691
|
-
schema: "schema";
|
|
1692
1688
|
config: "config";
|
|
1693
1689
|
entrypoint: "entrypoint";
|
|
1694
1690
|
handler: "handler";
|
|
1691
|
+
schema: "schema";
|
|
1695
1692
|
test: "test";
|
|
1696
1693
|
docs: "docs";
|
|
1697
1694
|
}>;
|
|
@@ -1723,14 +1720,18 @@ declare const ScriptResourceEntrySchema: z.ZodObject<{
|
|
|
1723
1720
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1724
1721
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1725
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>>;
|
|
1726
1727
|
}, z.core.$strip>>;
|
|
1727
1728
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1728
1729
|
path: z.ZodString;
|
|
1729
1730
|
role: z.ZodEnum<{
|
|
1730
|
-
schema: "schema";
|
|
1731
1731
|
config: "config";
|
|
1732
1732
|
entrypoint: "entrypoint";
|
|
1733
1733
|
handler: "handler";
|
|
1734
|
+
schema: "schema";
|
|
1734
1735
|
test: "test";
|
|
1735
1736
|
docs: "docs";
|
|
1736
1737
|
}>;
|
|
@@ -1767,14 +1768,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1767
1768
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1768
1769
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1769
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>>;
|
|
1770
1775
|
}, z.core.$strip>>;
|
|
1771
1776
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1772
1777
|
path: z.ZodString;
|
|
1773
1778
|
role: z.ZodEnum<{
|
|
1774
|
-
schema: "schema";
|
|
1775
1779
|
config: "config";
|
|
1776
1780
|
entrypoint: "entrypoint";
|
|
1777
1781
|
handler: "handler";
|
|
1782
|
+
schema: "schema";
|
|
1778
1783
|
test: "test";
|
|
1779
1784
|
docs: "docs";
|
|
1780
1785
|
}>;
|
|
@@ -1813,14 +1818,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1813
1818
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1814
1819
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1815
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>>;
|
|
1816
1825
|
}, z.core.$strip>>;
|
|
1817
1826
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1818
1827
|
path: z.ZodString;
|
|
1819
1828
|
role: z.ZodEnum<{
|
|
1820
|
-
schema: "schema";
|
|
1821
1829
|
config: "config";
|
|
1822
1830
|
entrypoint: "entrypoint";
|
|
1823
1831
|
handler: "handler";
|
|
1832
|
+
schema: "schema";
|
|
1824
1833
|
test: "test";
|
|
1825
1834
|
docs: "docs";
|
|
1826
1835
|
}>;
|
|
@@ -1890,14 +1899,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1890
1899
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1891
1900
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1892
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>>;
|
|
1893
1906
|
}, z.core.$strip>>;
|
|
1894
1907
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1895
1908
|
path: z.ZodString;
|
|
1896
1909
|
role: z.ZodEnum<{
|
|
1897
|
-
schema: "schema";
|
|
1898
1910
|
config: "config";
|
|
1899
1911
|
entrypoint: "entrypoint";
|
|
1900
1912
|
handler: "handler";
|
|
1913
|
+
schema: "schema";
|
|
1901
1914
|
test: "test";
|
|
1902
1915
|
docs: "docs";
|
|
1903
1916
|
}>;
|
|
@@ -1925,14 +1938,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1925
1938
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1926
1939
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1927
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>>;
|
|
1928
1945
|
}, z.core.$strip>>;
|
|
1929
1946
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1930
1947
|
path: z.ZodString;
|
|
1931
1948
|
role: z.ZodEnum<{
|
|
1932
|
-
schema: "schema";
|
|
1933
1949
|
config: "config";
|
|
1934
1950
|
entrypoint: "entrypoint";
|
|
1935
1951
|
handler: "handler";
|
|
1952
|
+
schema: "schema";
|
|
1936
1953
|
test: "test";
|
|
1937
1954
|
docs: "docs";
|
|
1938
1955
|
}>;
|
|
@@ -1969,14 +1986,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1969
1986
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1970
1987
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1971
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>>;
|
|
1972
1993
|
}, z.core.$strip>>;
|
|
1973
1994
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1974
1995
|
path: z.ZodString;
|
|
1975
1996
|
role: z.ZodEnum<{
|
|
1976
|
-
schema: "schema";
|
|
1977
1997
|
config: "config";
|
|
1978
1998
|
entrypoint: "entrypoint";
|
|
1979
1999
|
handler: "handler";
|
|
2000
|
+
schema: "schema";
|
|
1980
2001
|
test: "test";
|
|
1981
2002
|
docs: "docs";
|
|
1982
2003
|
}>;
|
|
@@ -2015,14 +2036,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
2015
2036
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2016
2037
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2017
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>>;
|
|
2018
2043
|
}, z.core.$strip>>;
|
|
2019
2044
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2020
2045
|
path: z.ZodString;
|
|
2021
2046
|
role: z.ZodEnum<{
|
|
2022
|
-
schema: "schema";
|
|
2023
2047
|
config: "config";
|
|
2024
2048
|
entrypoint: "entrypoint";
|
|
2025
2049
|
handler: "handler";
|
|
2050
|
+
schema: "schema";
|
|
2026
2051
|
test: "test";
|
|
2027
2052
|
docs: "docs";
|
|
2028
2053
|
}>;
|
|
@@ -2092,14 +2117,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
2092
2117
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2093
2118
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2094
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>>;
|
|
2095
2124
|
}, z.core.$strip>>;
|
|
2096
2125
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2097
2126
|
path: z.ZodString;
|
|
2098
2127
|
role: z.ZodEnum<{
|
|
2099
|
-
schema: "schema";
|
|
2100
2128
|
config: "config";
|
|
2101
2129
|
entrypoint: "entrypoint";
|
|
2102
2130
|
handler: "handler";
|
|
2131
|
+
schema: "schema";
|
|
2103
2132
|
test: "test";
|
|
2104
2133
|
docs: "docs";
|
|
2105
2134
|
}>;
|
|
@@ -2127,14 +2156,18 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
2127
2156
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2128
2157
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2129
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>>;
|
|
2130
2163
|
}, z.core.$strip>>;
|
|
2131
2164
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2132
2165
|
path: z.ZodString;
|
|
2133
2166
|
role: z.ZodEnum<{
|
|
2134
|
-
schema: "schema";
|
|
2135
2167
|
config: "config";
|
|
2136
2168
|
entrypoint: "entrypoint";
|
|
2137
2169
|
handler: "handler";
|
|
2170
|
+
schema: "schema";
|
|
2138
2171
|
test: "test";
|
|
2139
2172
|
docs: "docs";
|
|
2140
2173
|
}>;
|
|
@@ -2157,6 +2190,7 @@ declare function defineResource<const TResource extends ResourceEntry>(resource:
|
|
|
2157
2190
|
declare function defineResources<const TResources extends Record<string, ResourceEntry>>(resources: TResources): TResources;
|
|
2158
2191
|
declare function defineResourceOntology(input: ResourceOntologyBindingInput): ResourceOntologyBinding;
|
|
2159
2192
|
type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>;
|
|
2193
|
+
type ResourceOntologyBindingContract = NonNullable<ResourceOntologyBinding['contract']>;
|
|
2160
2194
|
type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
|
|
2161
2195
|
|
|
2162
2196
|
declare const OmTopologyNodeKindSchema: z.ZodEnum<{
|
|
@@ -3117,7 +3151,7 @@ declare const PoliciesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
|
|
|
3117
3151
|
}, z.core.$strip>>>;
|
|
3118
3152
|
declare const DEFAULT_ORGANIZATION_MODEL_POLICIES: z.infer<typeof PoliciesDomainSchema>;
|
|
3119
3153
|
|
|
3120
|
-
declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["dashboard", "calendar", "sales", "crm", "lead-gen", "projects", "operations", "monitoring", "knowledge", "settings", "admin", "archive", "business", "finance", "platform", "seo", "playbook", "strategy", "reference", "agent", "workflow", "integration", "database", "user", "team", "gmail", "google-sheets", "attio", "overview", "command-view", "command-queue", "pipeline", "lists", "resources", "approve", "reject", "retry", "edit", "view", "launch", "message", "escalate", "promote", "submit", "email", "success", "error", "warning", "info", "pending", "bolt", "building", "briefcase", "apps", "graph", "shield", "users", "chart-bar", "search"];
|
|
3154
|
+
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"];
|
|
3121
3155
|
declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
|
|
3122
3156
|
message: "message";
|
|
3123
3157
|
error: "error";
|
|
@@ -3130,6 +3164,7 @@ declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
|
|
|
3130
3164
|
crm: "crm";
|
|
3131
3165
|
"lead-gen": "lead-gen";
|
|
3132
3166
|
projects: "projects";
|
|
3167
|
+
clients: "clients";
|
|
3133
3168
|
operations: "operations";
|
|
3134
3169
|
monitoring: "monitoring";
|
|
3135
3170
|
knowledge: "knowledge";
|
|
@@ -3191,6 +3226,7 @@ declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
3191
3226
|
crm: "crm";
|
|
3192
3227
|
"lead-gen": "lead-gen";
|
|
3193
3228
|
projects: "projects";
|
|
3229
|
+
clients: "clients";
|
|
3194
3230
|
operations: "operations";
|
|
3195
3231
|
monitoring: "monitoring";
|
|
3196
3232
|
knowledge: "knowledge";
|
|
@@ -3299,6 +3335,9 @@ type EventDescriptor = z.infer<typeof EventDescriptorSchema>;
|
|
|
3299
3335
|
type OrganizationModelResourceKind = z.infer<typeof ResourceKindSchema>;
|
|
3300
3336
|
type OrganizationModelResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
|
|
3301
3337
|
type OrganizationModelResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>;
|
|
3338
|
+
type OrganizationModelContractRef = z.infer<typeof ContractRefSchema>;
|
|
3339
|
+
type OrganizationModelResourceOntologyBindingContract = ResourceOntologyBindingContract;
|
|
3340
|
+
|
|
3302
3341
|
type OrganizationModelAgentKind = z.infer<typeof AgentKindSchema>;
|
|
3303
3342
|
type OrganizationModelScriptResourceLanguage = z.infer<typeof ScriptResourceLanguageSchema>;
|
|
3304
3343
|
type OrganizationModelScriptResourceSource = z.infer<typeof ScriptResourceSourceSchema>;
|
|
@@ -3370,15 +3409,19 @@ declare const OPERATIONS_COMMAND_VIEW_SURFACE_ID: "knowledge.command-view";
|
|
|
3370
3409
|
declare const SETTINGS_ROLES_SURFACE_ID: "settings.roles";
|
|
3371
3410
|
|
|
3372
3411
|
/**
|
|
3373
|
-
*
|
|
3412
|
+
* Generic merge base for the OrganizationModel.
|
|
3374
3413
|
*
|
|
3375
3414
|
* This constant is used by:
|
|
3376
3415
|
* - `resolveOrganizationModel()` as the deep-merge base for every org's config
|
|
3377
3416
|
* - Unit tests and snapshot fixtures that need a structurally valid OrganizationModel
|
|
3378
3417
|
*
|
|
3379
|
-
* It
|
|
3418
|
+
* It does NOT contain Elevasis-specific identity, systems, or action entries.
|
|
3380
3419
|
* Runtime consumers that need the full Elevasis canonical model should import
|
|
3381
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/`.
|
|
3382
3425
|
*/
|
|
3383
3426
|
|
|
3384
3427
|
declare const DEFAULT_ORGANIZATION_MODEL: OrganizationModel;
|
|
@@ -3431,6 +3474,7 @@ declare function resolveOrganizationModel(override?: DeepPartial<OrganizationMod
|
|
|
3431
3474
|
*/
|
|
3432
3475
|
declare function resolveOrganizationModelWithResources(override?: DeepPartial<OrganizationModel>, organizationId?: string): ResolvedOrganizationModel;
|
|
3433
3476
|
|
|
3477
|
+
type OrganizationSurfaceProjectionIssueCode = 'duplicate-surface-id' | 'duplicate-surface-path' | 'unknown-surface-system';
|
|
3434
3478
|
interface OrganizationSurfaceProjection {
|
|
3435
3479
|
id: string;
|
|
3436
3480
|
label: string;
|
|
@@ -3447,6 +3491,16 @@ interface OrganizationSurfaceProjection {
|
|
|
3447
3491
|
devOnly?: boolean;
|
|
3448
3492
|
requiresAdmin?: boolean;
|
|
3449
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[];
|
|
3450
3504
|
|
|
3451
3505
|
type FoundationSurfaceType = 'page' | 'dashboard' | 'graph' | 'detail' | 'list' | 'settings';
|
|
3452
3506
|
type FoundationSurfaceIcon = Extract<OrganizationModelBuiltinIconToken$1, 'feature.dashboard' | 'feature.crm' | 'feature.lead-gen' | 'feature.projects' | 'feature.operations' | 'feature.settings'>;
|
|
@@ -3475,6 +3529,89 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
|
|
|
3475
3529
|
getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
|
|
3476
3530
|
};
|
|
3477
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
|
+
|
|
3551
|
+
type OmScaffoldIntent = 'system' | 'ontology' | 'resource' | 'knowledge';
|
|
3552
|
+
interface OmScaffoldWrite {
|
|
3553
|
+
path: string;
|
|
3554
|
+
content: string;
|
|
3555
|
+
description: string;
|
|
3556
|
+
mode: 'create';
|
|
3557
|
+
}
|
|
3558
|
+
interface OmScaffoldEdit {
|
|
3559
|
+
path: string;
|
|
3560
|
+
description: string;
|
|
3561
|
+
snippet: string;
|
|
3562
|
+
}
|
|
3563
|
+
interface OmScaffoldPlan {
|
|
3564
|
+
intent: OmScaffoldIntent;
|
|
3565
|
+
id: string;
|
|
3566
|
+
summary: string;
|
|
3567
|
+
writes: OmScaffoldWrite[];
|
|
3568
|
+
edits: OmScaffoldEdit[];
|
|
3569
|
+
warnings: string[];
|
|
3570
|
+
nextSteps: string[];
|
|
3571
|
+
projectCommand?: string;
|
|
3572
|
+
}
|
|
3573
|
+
interface BaseOmScaffoldSpec {
|
|
3574
|
+
id: string;
|
|
3575
|
+
label?: string;
|
|
3576
|
+
description?: string;
|
|
3577
|
+
}
|
|
3578
|
+
interface SystemScaffoldSpec extends BaseOmScaffoldSpec {
|
|
3579
|
+
intent: 'system';
|
|
3580
|
+
parent?: string;
|
|
3581
|
+
kind?: OrganizationModelSystemKind;
|
|
3582
|
+
uiPath?: string;
|
|
3583
|
+
icon?: OrganizationModelIconToken;
|
|
3584
|
+
role?: string;
|
|
3585
|
+
withOntology?: boolean;
|
|
3586
|
+
noProject?: boolean;
|
|
3587
|
+
withProject?: boolean;
|
|
3588
|
+
}
|
|
3589
|
+
interface OntologyRecordScaffoldSpec extends BaseOmScaffoldSpec {
|
|
3590
|
+
intent: 'ontology';
|
|
3591
|
+
systemPath: string;
|
|
3592
|
+
kind: OntologyKind;
|
|
3593
|
+
localId?: string;
|
|
3594
|
+
withProject?: boolean;
|
|
3595
|
+
}
|
|
3596
|
+
interface ResourceScaffoldSpec extends BaseOmScaffoldSpec {
|
|
3597
|
+
intent: 'resource';
|
|
3598
|
+
systemPath: string;
|
|
3599
|
+
kind?: OrganizationModelResourceKind;
|
|
3600
|
+
ownerRoleId?: string;
|
|
3601
|
+
withStubWorkflow?: boolean;
|
|
3602
|
+
withProject?: boolean;
|
|
3603
|
+
}
|
|
3604
|
+
interface KnowledgeNodeScaffoldSpec extends BaseOmScaffoldSpec {
|
|
3605
|
+
intent: 'knowledge';
|
|
3606
|
+
systemPath?: string;
|
|
3607
|
+
kind?: 'playbook' | 'strategy' | 'reference';
|
|
3608
|
+
ownerRoleId?: string;
|
|
3609
|
+
withProject?: boolean;
|
|
3610
|
+
}
|
|
3611
|
+
type OmScaffoldSpec = SystemScaffoldSpec | OntologyRecordScaffoldSpec | ResourceScaffoldSpec | KnowledgeNodeScaffoldSpec;
|
|
3612
|
+
|
|
3613
|
+
declare function scaffoldOrganizationModel(model: OrganizationModel, spec: OmScaffoldSpec): OmScaffoldPlan;
|
|
3614
|
+
|
|
3478
3615
|
declare const LinkSchema: z.ZodObject<{
|
|
3479
3616
|
nodeId: z.ZodString;
|
|
3480
3617
|
kind: z.ZodEnum<{
|
|
@@ -3501,10 +3638,10 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
3501
3638
|
declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
|
|
3502
3639
|
knowledge: "knowledge";
|
|
3503
3640
|
resources: "resources";
|
|
3504
|
-
systems: "systems";
|
|
3505
3641
|
entities: "entities";
|
|
3506
3642
|
actions: "actions";
|
|
3507
3643
|
ontology: "ontology";
|
|
3644
|
+
systems: "systems";
|
|
3508
3645
|
policies: "policies";
|
|
3509
3646
|
branding: "branding";
|
|
3510
3647
|
identity: "identity";
|
|
@@ -4106,14 +4243,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4106
4243
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4107
4244
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4108
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>>;
|
|
4109
4250
|
}, z.core.$strip>>;
|
|
4110
4251
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4111
4252
|
path: z.ZodString;
|
|
4112
4253
|
role: z.ZodEnum<{
|
|
4113
|
-
schema: "schema";
|
|
4114
4254
|
config: "config";
|
|
4115
4255
|
entrypoint: "entrypoint";
|
|
4116
4256
|
handler: "handler";
|
|
4257
|
+
schema: "schema";
|
|
4117
4258
|
test: "test";
|
|
4118
4259
|
docs: "docs";
|
|
4119
4260
|
}>;
|
|
@@ -4152,14 +4293,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4152
4293
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4153
4294
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4154
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>>;
|
|
4155
4300
|
}, z.core.$strip>>;
|
|
4156
4301
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4157
4302
|
path: z.ZodString;
|
|
4158
4303
|
role: z.ZodEnum<{
|
|
4159
|
-
schema: "schema";
|
|
4160
4304
|
config: "config";
|
|
4161
4305
|
entrypoint: "entrypoint";
|
|
4162
4306
|
handler: "handler";
|
|
4307
|
+
schema: "schema";
|
|
4163
4308
|
test: "test";
|
|
4164
4309
|
docs: "docs";
|
|
4165
4310
|
}>;
|
|
@@ -4229,14 +4374,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4229
4374
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4230
4375
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4231
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>>;
|
|
4232
4381
|
}, z.core.$strip>>;
|
|
4233
4382
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4234
4383
|
path: z.ZodString;
|
|
4235
4384
|
role: z.ZodEnum<{
|
|
4236
|
-
schema: "schema";
|
|
4237
4385
|
config: "config";
|
|
4238
4386
|
entrypoint: "entrypoint";
|
|
4239
4387
|
handler: "handler";
|
|
4388
|
+
schema: "schema";
|
|
4240
4389
|
test: "test";
|
|
4241
4390
|
docs: "docs";
|
|
4242
4391
|
}>;
|
|
@@ -4264,14 +4413,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4264
4413
|
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4265
4414
|
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4266
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>>;
|
|
4267
4420
|
}, z.core.$strip>>;
|
|
4268
4421
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4269
4422
|
path: z.ZodString;
|
|
4270
4423
|
role: z.ZodEnum<{
|
|
4271
|
-
schema: "schema";
|
|
4272
4424
|
config: "config";
|
|
4273
4425
|
entrypoint: "entrypoint";
|
|
4274
4426
|
handler: "handler";
|
|
4427
|
+
schema: "schema";
|
|
4275
4428
|
test: "test";
|
|
4276
4429
|
docs: "docs";
|
|
4277
4430
|
}>;
|
|
@@ -4496,6 +4649,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4496
4649
|
crm: "crm";
|
|
4497
4650
|
"lead-gen": "lead-gen";
|
|
4498
4651
|
projects: "projects";
|
|
4652
|
+
clients: "clients";
|
|
4499
4653
|
operations: "operations";
|
|
4500
4654
|
monitoring: "monitoring";
|
|
4501
4655
|
knowledge: "knowledge";
|
|
@@ -4557,11 +4711,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4557
4711
|
ontology: "ontology";
|
|
4558
4712
|
role: "role";
|
|
4559
4713
|
goal: "goal";
|
|
4560
|
-
stage: "stage";
|
|
4561
4714
|
resource: "resource";
|
|
4715
|
+
stage: "stage";
|
|
4562
4716
|
"customer-segment": "customer-segment";
|
|
4563
4717
|
offering: "offering";
|
|
4564
|
-
"content-node": "content-node";
|
|
4565
4718
|
}>;
|
|
4566
4719
|
id: z.ZodString;
|
|
4567
4720
|
}, z.core.$strip>;
|
|
@@ -4569,7 +4722,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4569
4722
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
4570
4723
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
4571
4724
|
target: {
|
|
4572
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
4725
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
4573
4726
|
id: string;
|
|
4574
4727
|
};
|
|
4575
4728
|
nodeId: string;
|
|
@@ -4577,7 +4730,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4577
4730
|
nodeId: string;
|
|
4578
4731
|
} | {
|
|
4579
4732
|
target: {
|
|
4580
|
-
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "
|
|
4733
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
|
|
4581
4734
|
id: string;
|
|
4582
4735
|
};
|
|
4583
4736
|
}>>>>;
|
|
@@ -4586,5 +4739,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4586
4739
|
}, z.core.$strip>>>>;
|
|
4587
4740
|
}, z.core.$strip>;
|
|
4588
4741
|
|
|
4589
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema,
|
|
4590
|
-
export type { DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelWorkflowResourceEntry, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry };
|
|
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 };
|