@elevasis/core 0.43.0 → 0.44.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/auth/index.d.ts +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +11 -14
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +4 -7
- package/dist/organization-model/index.d.ts +9 -9
- package/dist/organization-model/index.js +11 -14
- package/dist/test-utils/index.d.ts +2 -2
- package/dist/test-utils/index.js +9 -12
- package/package.json +3 -3
- package/src/business/acquisition/api-schemas.ts +1 -1
- package/src/knowledge/queries.ts +5 -5
- package/src/organization-model/cross-ref.ts +2 -2
- package/src/organization-model/domains/resources.ts +1 -1
- package/src/organization-model/ontology.ts +13 -18
- package/src/organization-model/published.ts +9 -3
- package/src/organization-model/scaffolders/helpers.ts +1 -1
- package/src/platform/registry/validation.ts +2 -2
- package/src/scaffold-registry/__tests__/index.test.ts +380 -206
- package/src/scaffold-registry/index.ts +392 -381
package/dist/auth/index.d.ts
CHANGED
|
@@ -4278,7 +4278,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4278
4278
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4279
4279
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4280
4280
|
}, z.core.$loose>>>>;
|
|
4281
|
-
|
|
4281
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4282
4282
|
id: z.ZodString;
|
|
4283
4283
|
label: z.ZodOptional<z.ZodString>;
|
|
4284
4284
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4919,7 +4919,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4919
4919
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4920
4920
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4921
4921
|
}, z.core.$loose>>>>;
|
|
4922
|
-
|
|
4922
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4923
4923
|
id: z.ZodString;
|
|
4924
4924
|
label: z.ZodOptional<z.ZodString>;
|
|
4925
4925
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { z, ZodType } from 'zod';
|
|
|
3
3
|
declare const OntologyKindSchema: z.ZodEnum<{
|
|
4
4
|
object: "object";
|
|
5
5
|
action: "action";
|
|
6
|
-
surface: "surface";
|
|
7
6
|
group: "group";
|
|
8
7
|
link: "link";
|
|
9
8
|
catalog: "catalog";
|
|
@@ -11,6 +10,7 @@ declare const OntologyKindSchema: z.ZodEnum<{
|
|
|
11
10
|
interface: "interface";
|
|
12
11
|
"value-type": "value-type";
|
|
13
12
|
property: "property";
|
|
13
|
+
endpoint: "endpoint";
|
|
14
14
|
}>;
|
|
15
15
|
type OntologyKind = z.infer<typeof OntologyKindSchema>;
|
|
16
16
|
declare const OntologyIdSchema: z.ZodString;
|
|
@@ -110,7 +110,7 @@ declare const OntologyGroupSchema: z.ZodObject<{
|
|
|
110
110
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
111
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
112
112
|
}, z.core.$loose>;
|
|
113
|
-
declare const
|
|
113
|
+
declare const OntologyEndpointTypeSchema: z.ZodObject<{
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
label: z.ZodOptional<z.ZodString>;
|
|
116
116
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -201,7 +201,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
201
201
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
202
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
203
203
|
}, z.core.$loose>>>>;
|
|
204
|
-
|
|
204
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
205
205
|
id: z.ZodString;
|
|
206
206
|
label: z.ZodOptional<z.ZodString>;
|
|
207
207
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -220,7 +220,7 @@ type OntologyInterfaceType = z.infer<typeof OntologyInterfaceTypeSchema>;
|
|
|
220
220
|
type OntologyValueType = z.infer<typeof OntologyValueTypeSchema>;
|
|
221
221
|
type OntologySharedProperty = z.infer<typeof OntologySharedPropertySchema>;
|
|
222
222
|
type OntologyGroup = z.infer<typeof OntologyGroupSchema>;
|
|
223
|
-
type
|
|
223
|
+
type OntologyEndpointType = z.infer<typeof OntologyEndpointTypeSchema>;
|
|
224
224
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
225
225
|
type ResolvedOntologyIndex = {
|
|
226
226
|
objectTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyObjectType>>;
|
|
@@ -232,7 +232,7 @@ type ResolvedOntologyIndex = {
|
|
|
232
232
|
valueTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyValueType>>;
|
|
233
233
|
sharedProperties: Record<OntologyId, ResolvedOntologyRecord<OntologySharedProperty>>;
|
|
234
234
|
groups: Record<OntologyId, ResolvedOntologyRecord<OntologyGroup>>;
|
|
235
|
-
|
|
235
|
+
endpoints: Record<OntologyId, ResolvedOntologyRecord<OntologyEndpointType>>;
|
|
236
236
|
};
|
|
237
237
|
type OntologyRecordOrigin = {
|
|
238
238
|
kind: 'authored' | 'projected';
|
|
@@ -261,7 +261,7 @@ type OntologyCompilation = {
|
|
|
261
261
|
type ResolvedOntologyRecordEntry = {
|
|
262
262
|
id: OntologyId;
|
|
263
263
|
kind: OntologyKind;
|
|
264
|
-
record: ResolvedOntologyRecord<OntologyObjectType | OntologyLinkType | OntologyActionType | OntologyCatalogType | OntologyEventType | OntologyInterfaceType | OntologyValueType | OntologySharedProperty | OntologyGroup |
|
|
264
|
+
record: ResolvedOntologyRecord<OntologyObjectType | OntologyLinkType | OntologyActionType | OntologyCatalogType | OntologyEventType | OntologyInterfaceType | OntologyValueType | OntologySharedProperty | OntologyGroup | OntologyEndpointType>;
|
|
265
265
|
};
|
|
266
266
|
declare function ontologyGraphNodeId(id: OntologyId | string): string;
|
|
267
267
|
declare function ontologyIdFromGraphNodeId(nodeId: string): OntologyId | undefined;
|
|
@@ -4929,7 +4929,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4929
4929
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4930
4930
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4931
4931
|
}, z.core.$loose>>>>;
|
|
4932
|
-
|
|
4932
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4933
4933
|
id: z.ZodString;
|
|
4934
4934
|
label: z.ZodOptional<z.ZodString>;
|
|
4935
4935
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5455,5 +5455,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5455
5455
|
}, z.core.$strip>>>>;
|
|
5456
5456
|
}, z.core.$strip>;
|
|
5457
5457
|
|
|
5458
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema,
|
|
5459
|
-
export type { BaseOmScaffoldSpec, ClientProfile, ClientProfileBranding, ClientProfileIdentity, ClientProfileLinks, ClientProfilePrompts, ClientProfileSource, ClientProfileStatus, ClientProfileWorkspace, 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,
|
|
5458
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEndpointTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, 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, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, 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, getClientProfile, getClientProfileBySlug, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listClientProfiles, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
5459
|
+
export type { BaseOmScaffoldSpec, ClientProfile, ClientProfileBranding, ClientProfileIdentity, ClientProfileLinks, ClientProfilePrompts, ClientProfileSource, ClientProfileStatus, ClientProfileWorkspace, 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, OntologyEndpointType, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelClients, 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, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopbarActionNode, OrganizationModelTopbarSection, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
package/dist/index.js
CHANGED
|
@@ -11,16 +11,13 @@ var OntologyKindSchema = z.enum([
|
|
|
11
11
|
"value-type",
|
|
12
12
|
"property",
|
|
13
13
|
"group",
|
|
14
|
-
"
|
|
14
|
+
"endpoint"
|
|
15
15
|
]);
|
|
16
16
|
var SYSTEM_PATH_PATTERN = "[a-z0-9][a-z0-9-]*(?:\\.[a-z0-9][a-z0-9-]*)*";
|
|
17
17
|
var LOCAL_ID_PATTERN = "[a-z0-9][a-z0-9._-]*";
|
|
18
18
|
var ONTOLOGY_ID_PATTERN = `^(global|${SYSTEM_PATH_PATTERN}):(${OntologyKindSchema.options.join("|")})\\/(${LOCAL_ID_PATTERN})$`;
|
|
19
19
|
var ONTOLOGY_ID_REGEX = new RegExp(ONTOLOGY_ID_PATTERN);
|
|
20
|
-
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(
|
|
21
|
-
ONTOLOGY_ID_REGEX,
|
|
22
|
-
"Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>"
|
|
23
|
-
);
|
|
20
|
+
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(ONTOLOGY_ID_REGEX, "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>");
|
|
24
21
|
function parseOntologyId(id) {
|
|
25
22
|
const normalized = OntologyIdSchema.parse(id);
|
|
26
23
|
const match = ONTOLOGY_ID_REGEX.exec(normalized);
|
|
@@ -83,7 +80,7 @@ var OntologySharedPropertySchema = OntologyRecordBaseSchema.extend({
|
|
|
83
80
|
var OntologyGroupSchema = OntologyRecordBaseSchema.extend({
|
|
84
81
|
members: OntologyReferenceListSchema
|
|
85
82
|
});
|
|
86
|
-
var
|
|
83
|
+
var OntologyEndpointTypeSchema = OntologyRecordBaseSchema.extend({
|
|
87
84
|
route: z.string().trim().min(1).max(500).optional()
|
|
88
85
|
});
|
|
89
86
|
var OntologyScopeSchema = z.object({
|
|
@@ -96,7 +93,7 @@ var OntologyScopeSchema = z.object({
|
|
|
96
93
|
valueTypes: z.record(OntologyIdSchema, OntologyValueTypeSchema).default({}).optional(),
|
|
97
94
|
sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
|
|
98
95
|
groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
|
|
99
|
-
|
|
96
|
+
endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
|
|
100
97
|
}).default({});
|
|
101
98
|
var DEFAULT_ONTOLOGY_SCOPE = {
|
|
102
99
|
valueTypes: {
|
|
@@ -132,7 +129,7 @@ var SCOPE_KIND = {
|
|
|
132
129
|
valueTypes: "value-type",
|
|
133
130
|
sharedProperties: "property",
|
|
134
131
|
groups: "group",
|
|
135
|
-
|
|
132
|
+
endpoints: "endpoint"
|
|
136
133
|
};
|
|
137
134
|
var SCOPE_KEYS = Object.keys(SCOPE_KIND);
|
|
138
135
|
function ontologyGraphNodeId(id) {
|
|
@@ -176,7 +173,7 @@ function createEmptyIndex() {
|
|
|
176
173
|
valueTypes: {},
|
|
177
174
|
sharedProperties: {},
|
|
178
175
|
groups: {},
|
|
179
|
-
|
|
176
|
+
endpoints: {}
|
|
180
177
|
};
|
|
181
178
|
}
|
|
182
179
|
function sortResolvedOntologyIndex(index) {
|
|
@@ -1203,7 +1200,7 @@ var ResourceOntologyBindingSchema = z.object({
|
|
|
1203
1200
|
/**
|
|
1204
1201
|
* Optional typed contract binding for this resource's workflow I/O.
|
|
1205
1202
|
* Each ref is a `package/subpath#ExportName` string that resolves to a
|
|
1206
|
-
* Zod schema in
|
|
1203
|
+
* Zod schema in the tenant-owned organization model package.
|
|
1207
1204
|
*
|
|
1208
1205
|
* Absence of this field preserves all existing behavior — it is additive + optional.
|
|
1209
1206
|
* Tier-1 validation (schema.ts): ref-string shape only (browser-safe, no imports).
|
|
@@ -1798,7 +1795,7 @@ var ONTOLOGY_REFERENCE_KEY_KINDS = {
|
|
|
1798
1795
|
interfaceType: "interface",
|
|
1799
1796
|
propertyType: "property",
|
|
1800
1797
|
groupType: "group",
|
|
1801
|
-
|
|
1798
|
+
endpointType: "endpoint",
|
|
1802
1799
|
stepCatalog: "catalog"
|
|
1803
1800
|
};
|
|
1804
1801
|
var omCompilationContextCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -1826,7 +1823,7 @@ function buildOmCrossRefIndexFromOntology(model, ontologyCompilation) {
|
|
|
1826
1823
|
"value-type": ontologyCompilation.ontology.valueTypes,
|
|
1827
1824
|
property: ontologyCompilation.ontology.sharedProperties,
|
|
1828
1825
|
group: ontologyCompilation.ontology.groups,
|
|
1829
|
-
|
|
1826
|
+
endpoint: ontologyCompilation.ontology.endpoints
|
|
1830
1827
|
};
|
|
1831
1828
|
const ontologyIds = new Set(Object.values(ontologyIndexByKind).flatMap((index) => Object.keys(index)));
|
|
1832
1829
|
const stageIds = /* @__PURE__ */ new Set();
|
|
@@ -3304,7 +3301,7 @@ function ontologyMapName(kind) {
|
|
|
3304
3301
|
"value-type": "valueTypes",
|
|
3305
3302
|
property: "sharedProperties",
|
|
3306
3303
|
group: "groups",
|
|
3307
|
-
|
|
3304
|
+
endpoint: "endpoints"
|
|
3308
3305
|
};
|
|
3309
3306
|
return map[kind];
|
|
3310
3307
|
}
|
|
@@ -3603,4 +3600,4 @@ function scaffoldOrganizationModel(model, spec) {
|
|
|
3603
3600
|
return scaffoldKnowledgeNode(model, spec);
|
|
3604
3601
|
}
|
|
3605
3602
|
|
|
3606
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema,
|
|
3603
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEndpointTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, 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, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, 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, getClientProfile, getClientProfileBySlug, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listClientProfiles, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
@@ -107,7 +107,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
107
107
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
108
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
109
109
|
}, z.core.$loose>>>>;
|
|
110
|
-
|
|
110
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
111
111
|
id: z.ZodString;
|
|
112
112
|
label: z.ZodOptional<z.ZodString>;
|
|
113
113
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -952,7 +952,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
952
952
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
953
953
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
954
954
|
}, z.core.$loose>>>>;
|
|
955
|
-
|
|
955
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
956
956
|
id: z.ZodString;
|
|
957
957
|
label: z.ZodOptional<z.ZodString>;
|
|
958
958
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/knowledge/index.js
CHANGED
|
@@ -11,16 +11,13 @@ var OntologyKindSchema = z.enum([
|
|
|
11
11
|
"value-type",
|
|
12
12
|
"property",
|
|
13
13
|
"group",
|
|
14
|
-
"
|
|
14
|
+
"endpoint"
|
|
15
15
|
]);
|
|
16
16
|
var SYSTEM_PATH_PATTERN = "[a-z0-9][a-z0-9-]*(?:\\.[a-z0-9][a-z0-9-]*)*";
|
|
17
17
|
var LOCAL_ID_PATTERN = "[a-z0-9][a-z0-9._-]*";
|
|
18
18
|
var ONTOLOGY_ID_PATTERN = `^(global|${SYSTEM_PATH_PATTERN}):(${OntologyKindSchema.options.join("|")})\\/(${LOCAL_ID_PATTERN})$`;
|
|
19
19
|
var ONTOLOGY_ID_REGEX = new RegExp(ONTOLOGY_ID_PATTERN);
|
|
20
|
-
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(
|
|
21
|
-
ONTOLOGY_ID_REGEX,
|
|
22
|
-
"Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>"
|
|
23
|
-
);
|
|
20
|
+
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(ONTOLOGY_ID_REGEX, "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>");
|
|
24
21
|
var OntologyReferenceListSchema = z.array(OntologyIdSchema).default([]).optional();
|
|
25
22
|
var OntologyRecordBaseSchema = z.object({
|
|
26
23
|
id: OntologyIdSchema,
|
|
@@ -66,7 +63,7 @@ var OntologySharedPropertySchema = OntologyRecordBaseSchema.extend({
|
|
|
66
63
|
var OntologyGroupSchema = OntologyRecordBaseSchema.extend({
|
|
67
64
|
members: OntologyReferenceListSchema
|
|
68
65
|
});
|
|
69
|
-
var
|
|
66
|
+
var OntologyEndpointTypeSchema = OntologyRecordBaseSchema.extend({
|
|
70
67
|
route: z.string().trim().min(1).max(500).optional()
|
|
71
68
|
});
|
|
72
69
|
z.object({
|
|
@@ -79,7 +76,7 @@ z.object({
|
|
|
79
76
|
valueTypes: z.record(OntologyIdSchema, OntologyValueTypeSchema).default({}).optional(),
|
|
80
77
|
sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
|
|
81
78
|
groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
|
|
82
|
-
|
|
79
|
+
endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
|
|
83
80
|
}).default({});
|
|
84
81
|
function ontologyGraphNodeId(id) {
|
|
85
82
|
return `ontology:${OntologyIdSchema.parse(id)}`;
|
|
@@ -3,7 +3,6 @@ import { z, ZodType } from 'zod';
|
|
|
3
3
|
declare const OntologyKindSchema: z.ZodEnum<{
|
|
4
4
|
object: "object";
|
|
5
5
|
action: "action";
|
|
6
|
-
surface: "surface";
|
|
7
6
|
group: "group";
|
|
8
7
|
link: "link";
|
|
9
8
|
catalog: "catalog";
|
|
@@ -11,6 +10,7 @@ declare const OntologyKindSchema: z.ZodEnum<{
|
|
|
11
10
|
interface: "interface";
|
|
12
11
|
"value-type": "value-type";
|
|
13
12
|
property: "property";
|
|
13
|
+
endpoint: "endpoint";
|
|
14
14
|
}>;
|
|
15
15
|
type OntologyKind = z.infer<typeof OntologyKindSchema>;
|
|
16
16
|
declare const OntologyIdSchema: z.ZodString;
|
|
@@ -110,7 +110,7 @@ declare const OntologyGroupSchema: z.ZodObject<{
|
|
|
110
110
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
111
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
112
112
|
}, z.core.$loose>;
|
|
113
|
-
declare const
|
|
113
|
+
declare const OntologyEndpointTypeSchema: z.ZodObject<{
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
label: z.ZodOptional<z.ZodString>;
|
|
116
116
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -201,7 +201,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
201
201
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
202
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
203
203
|
}, z.core.$loose>>>>;
|
|
204
|
-
|
|
204
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
205
205
|
id: z.ZodString;
|
|
206
206
|
label: z.ZodOptional<z.ZodString>;
|
|
207
207
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -220,7 +220,7 @@ type OntologyInterfaceType = z.infer<typeof OntologyInterfaceTypeSchema>;
|
|
|
220
220
|
type OntologyValueType = z.infer<typeof OntologyValueTypeSchema>;
|
|
221
221
|
type OntologySharedProperty = z.infer<typeof OntologySharedPropertySchema>;
|
|
222
222
|
type OntologyGroup = z.infer<typeof OntologyGroupSchema>;
|
|
223
|
-
type
|
|
223
|
+
type OntologyEndpointType = z.infer<typeof OntologyEndpointTypeSchema>;
|
|
224
224
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
225
225
|
type ResolvedOntologyIndex = {
|
|
226
226
|
objectTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyObjectType>>;
|
|
@@ -232,7 +232,7 @@ type ResolvedOntologyIndex = {
|
|
|
232
232
|
valueTypes: Record<OntologyId, ResolvedOntologyRecord<OntologyValueType>>;
|
|
233
233
|
sharedProperties: Record<OntologyId, ResolvedOntologyRecord<OntologySharedProperty>>;
|
|
234
234
|
groups: Record<OntologyId, ResolvedOntologyRecord<OntologyGroup>>;
|
|
235
|
-
|
|
235
|
+
endpoints: Record<OntologyId, ResolvedOntologyRecord<OntologyEndpointType>>;
|
|
236
236
|
};
|
|
237
237
|
type OntologyRecordOrigin = {
|
|
238
238
|
kind: 'authored' | 'projected';
|
|
@@ -261,7 +261,7 @@ type OntologyCompilation = {
|
|
|
261
261
|
type ResolvedOntologyRecordEntry = {
|
|
262
262
|
id: OntologyId;
|
|
263
263
|
kind: OntologyKind;
|
|
264
|
-
record: ResolvedOntologyRecord<OntologyObjectType | OntologyLinkType | OntologyActionType | OntologyCatalogType | OntologyEventType | OntologyInterfaceType | OntologyValueType | OntologySharedProperty | OntologyGroup |
|
|
264
|
+
record: ResolvedOntologyRecord<OntologyObjectType | OntologyLinkType | OntologyActionType | OntologyCatalogType | OntologyEventType | OntologyInterfaceType | OntologyValueType | OntologySharedProperty | OntologyGroup | OntologyEndpointType>;
|
|
265
265
|
};
|
|
266
266
|
declare function ontologyGraphNodeId(id: OntologyId | string): string;
|
|
267
267
|
declare function ontologyIdFromGraphNodeId(nodeId: string): OntologyId | undefined;
|
|
@@ -4929,7 +4929,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4929
4929
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4930
4930
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4931
4931
|
}, z.core.$loose>>>>;
|
|
4932
|
-
|
|
4932
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4933
4933
|
id: z.ZodString;
|
|
4934
4934
|
label: z.ZodOptional<z.ZodString>;
|
|
4935
4935
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5455,5 +5455,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5455
5455
|
}, z.core.$strip>>>>;
|
|
5456
5456
|
}, z.core.$strip>;
|
|
5457
5457
|
|
|
5458
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema,
|
|
5459
|
-
export type { BaseOmScaffoldSpec, ClientProfile, ClientProfileBranding, ClientProfileIdentity, ClientProfileLinks, ClientProfilePrompts, ClientProfileSource, ClientProfileStatus, ClientProfileWorkspace, 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,
|
|
5458
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEndpointTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, 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, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, 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, getClientProfile, getClientProfileBySlug, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listClientProfiles, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
5459
|
+
export type { BaseOmScaffoldSpec, ClientProfile, ClientProfileBranding, ClientProfileIdentity, ClientProfileLinks, ClientProfilePrompts, ClientProfileSource, ClientProfileStatus, ClientProfileWorkspace, 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, OntologyEndpointType, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelClients, 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, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopbarActionNode, OrganizationModelTopbarSection, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
|
@@ -11,16 +11,13 @@ var OntologyKindSchema = z.enum([
|
|
|
11
11
|
"value-type",
|
|
12
12
|
"property",
|
|
13
13
|
"group",
|
|
14
|
-
"
|
|
14
|
+
"endpoint"
|
|
15
15
|
]);
|
|
16
16
|
var SYSTEM_PATH_PATTERN = "[a-z0-9][a-z0-9-]*(?:\\.[a-z0-9][a-z0-9-]*)*";
|
|
17
17
|
var LOCAL_ID_PATTERN = "[a-z0-9][a-z0-9._-]*";
|
|
18
18
|
var ONTOLOGY_ID_PATTERN = `^(global|${SYSTEM_PATH_PATTERN}):(${OntologyKindSchema.options.join("|")})\\/(${LOCAL_ID_PATTERN})$`;
|
|
19
19
|
var ONTOLOGY_ID_REGEX = new RegExp(ONTOLOGY_ID_PATTERN);
|
|
20
|
-
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(
|
|
21
|
-
ONTOLOGY_ID_REGEX,
|
|
22
|
-
"Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>"
|
|
23
|
-
);
|
|
20
|
+
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(ONTOLOGY_ID_REGEX, "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>");
|
|
24
21
|
function parseOntologyId(id) {
|
|
25
22
|
const normalized = OntologyIdSchema.parse(id);
|
|
26
23
|
const match = ONTOLOGY_ID_REGEX.exec(normalized);
|
|
@@ -83,7 +80,7 @@ var OntologySharedPropertySchema = OntologyRecordBaseSchema.extend({
|
|
|
83
80
|
var OntologyGroupSchema = OntologyRecordBaseSchema.extend({
|
|
84
81
|
members: OntologyReferenceListSchema
|
|
85
82
|
});
|
|
86
|
-
var
|
|
83
|
+
var OntologyEndpointTypeSchema = OntologyRecordBaseSchema.extend({
|
|
87
84
|
route: z.string().trim().min(1).max(500).optional()
|
|
88
85
|
});
|
|
89
86
|
var OntologyScopeSchema = z.object({
|
|
@@ -96,7 +93,7 @@ var OntologyScopeSchema = z.object({
|
|
|
96
93
|
valueTypes: z.record(OntologyIdSchema, OntologyValueTypeSchema).default({}).optional(),
|
|
97
94
|
sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
|
|
98
95
|
groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
|
|
99
|
-
|
|
96
|
+
endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
|
|
100
97
|
}).default({});
|
|
101
98
|
var DEFAULT_ONTOLOGY_SCOPE = {
|
|
102
99
|
valueTypes: {
|
|
@@ -132,7 +129,7 @@ var SCOPE_KIND = {
|
|
|
132
129
|
valueTypes: "value-type",
|
|
133
130
|
sharedProperties: "property",
|
|
134
131
|
groups: "group",
|
|
135
|
-
|
|
132
|
+
endpoints: "endpoint"
|
|
136
133
|
};
|
|
137
134
|
var SCOPE_KEYS = Object.keys(SCOPE_KIND);
|
|
138
135
|
function ontologyGraphNodeId(id) {
|
|
@@ -176,7 +173,7 @@ function createEmptyIndex() {
|
|
|
176
173
|
valueTypes: {},
|
|
177
174
|
sharedProperties: {},
|
|
178
175
|
groups: {},
|
|
179
|
-
|
|
176
|
+
endpoints: {}
|
|
180
177
|
};
|
|
181
178
|
}
|
|
182
179
|
function sortResolvedOntologyIndex(index) {
|
|
@@ -1203,7 +1200,7 @@ var ResourceOntologyBindingSchema = z.object({
|
|
|
1203
1200
|
/**
|
|
1204
1201
|
* Optional typed contract binding for this resource's workflow I/O.
|
|
1205
1202
|
* Each ref is a `package/subpath#ExportName` string that resolves to a
|
|
1206
|
-
* Zod schema in
|
|
1203
|
+
* Zod schema in the tenant-owned organization model package.
|
|
1207
1204
|
*
|
|
1208
1205
|
* Absence of this field preserves all existing behavior — it is additive + optional.
|
|
1209
1206
|
* Tier-1 validation (schema.ts): ref-string shape only (browser-safe, no imports).
|
|
@@ -1798,7 +1795,7 @@ var ONTOLOGY_REFERENCE_KEY_KINDS = {
|
|
|
1798
1795
|
interfaceType: "interface",
|
|
1799
1796
|
propertyType: "property",
|
|
1800
1797
|
groupType: "group",
|
|
1801
|
-
|
|
1798
|
+
endpointType: "endpoint",
|
|
1802
1799
|
stepCatalog: "catalog"
|
|
1803
1800
|
};
|
|
1804
1801
|
var omCompilationContextCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -1826,7 +1823,7 @@ function buildOmCrossRefIndexFromOntology(model, ontologyCompilation) {
|
|
|
1826
1823
|
"value-type": ontologyCompilation.ontology.valueTypes,
|
|
1827
1824
|
property: ontologyCompilation.ontology.sharedProperties,
|
|
1828
1825
|
group: ontologyCompilation.ontology.groups,
|
|
1829
|
-
|
|
1826
|
+
endpoint: ontologyCompilation.ontology.endpoints
|
|
1830
1827
|
};
|
|
1831
1828
|
const ontologyIds = new Set(Object.values(ontologyIndexByKind).flatMap((index) => Object.keys(index)));
|
|
1832
1829
|
const stageIds = /* @__PURE__ */ new Set();
|
|
@@ -3304,7 +3301,7 @@ function ontologyMapName(kind) {
|
|
|
3304
3301
|
"value-type": "valueTypes",
|
|
3305
3302
|
property: "sharedProperties",
|
|
3306
3303
|
group: "groups",
|
|
3307
|
-
|
|
3304
|
+
endpoint: "endpoints"
|
|
3308
3305
|
};
|
|
3309
3306
|
return map[kind];
|
|
3310
3307
|
}
|
|
@@ -3603,4 +3600,4 @@ function scaffoldOrganizationModel(model, spec) {
|
|
|
3603
3600
|
return scaffoldKnowledgeNode(model, spec);
|
|
3604
3601
|
}
|
|
3605
3602
|
|
|
3606
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema,
|
|
3603
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, 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_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, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEndpointTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, 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, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, 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, getClientProfile, getClientProfileBySlug, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listClientProfiles, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
@@ -3749,7 +3749,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3749
3749
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3750
3750
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
3751
3751
|
}, z.core.$loose>>>>;
|
|
3752
|
-
|
|
3752
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3753
3753
|
id: z.ZodString;
|
|
3754
3754
|
label: z.ZodOptional<z.ZodString>;
|
|
3755
3755
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4395,7 +4395,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4395
4395
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4396
4396
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4397
4397
|
}, z.core.$loose>>>>;
|
|
4398
|
-
|
|
4398
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4399
4399
|
id: z.ZodString;
|
|
4400
4400
|
label: z.ZodOptional<z.ZodString>;
|
|
4401
4401
|
description: z.ZodOptional<z.ZodString>;
|