@elevasis/core 0.30.0 → 0.32.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 +58 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +73 -109
- package/dist/knowledge/index.d.ts +10 -2
- package/dist/organization-model/index.d.ts +16 -5
- package/dist/organization-model/index.js +73 -109
- package/dist/test-utils/index.d.ts +55 -2
- package/dist/test-utils/index.js +72 -108
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +376 -446
- package/src/business/acquisition/api-schemas.test.ts +69 -5
- package/src/business/acquisition/crm-state-actions.test.ts +24 -6
- package/src/business/pdf/sections/__tests__/proposal-document.test.ts +146 -0
- package/src/business/pdf/sections/acceptance.ts +114 -112
- package/src/business/pdf/sections/proposal-document.ts +206 -200
- package/src/execution/engine/index.ts +440 -439
- package/src/execution/engine/tools/integration/types/clickup.ts +57 -0
- package/src/execution/engine/tools/integration/types/index.ts +20 -19
- package/src/execution/engine/tools/tool-maps.ts +16 -0
- package/src/organization-model/__tests__/domains/entities.test.ts +35 -56
- package/src/organization-model/__tests__/domains/passthrough-extensibility.test.ts +199 -0
- package/src/organization-model/domains/branding.ts +58 -16
- package/src/organization-model/domains/entities.ts +0 -103
- package/src/organization-model/domains/identity.ts +122 -94
- package/src/organization-model/domains/sales.test.ts +35 -28
- package/src/organization-model/domains/sales.ts +0 -85
- package/src/organization-model/published.ts +0 -1
- package/src/organization-model/schema.ts +2 -2
- package/src/reference/_generated/contracts.md +0 -94
- package/src/supabase/database.types.ts +45 -0
package/dist/auth/index.d.ts
CHANGED
|
@@ -233,8 +233,8 @@ declare const OrganizationDomainSchema: z.ZodObject<{
|
|
|
233
233
|
domain: z.ZodString;
|
|
234
234
|
state: z.ZodOptional<z.ZodEnum<{
|
|
235
235
|
pending: "pending";
|
|
236
|
-
verified: "verified";
|
|
237
236
|
failed: "failed";
|
|
237
|
+
verified: "verified";
|
|
238
238
|
}>>;
|
|
239
239
|
}, z.core.$strip>;
|
|
240
240
|
/**
|
|
@@ -260,8 +260,8 @@ declare const CreateOrganizationSchema: z.ZodObject<{
|
|
|
260
260
|
domain: z.ZodString;
|
|
261
261
|
state: z.ZodOptional<z.ZodEnum<{
|
|
262
262
|
pending: "pending";
|
|
263
|
-
verified: "verified";
|
|
264
263
|
failed: "failed";
|
|
264
|
+
verified: "verified";
|
|
265
265
|
}>>;
|
|
266
266
|
}, z.core.$strip>>>;
|
|
267
267
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -282,8 +282,8 @@ declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
282
282
|
domain: z.ZodString;
|
|
283
283
|
state: z.ZodOptional<z.ZodEnum<{
|
|
284
284
|
pending: "pending";
|
|
285
|
-
verified: "verified";
|
|
286
285
|
failed: "failed";
|
|
286
|
+
verified: "verified";
|
|
287
287
|
}>>;
|
|
288
288
|
}, z.core.$strip>>>>;
|
|
289
289
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -2153,6 +2153,51 @@ type Database = {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
];
|
|
2155
2155
|
};
|
|
2156
|
+
deployment_organization_models: {
|
|
2157
|
+
Row: {
|
|
2158
|
+
created_at: string;
|
|
2159
|
+
deployment_id: string;
|
|
2160
|
+
model_hash: string | null;
|
|
2161
|
+
organization_id: string;
|
|
2162
|
+
organization_model: Json;
|
|
2163
|
+
schema_version: string;
|
|
2164
|
+
updated_at: string;
|
|
2165
|
+
};
|
|
2166
|
+
Insert: {
|
|
2167
|
+
created_at?: string;
|
|
2168
|
+
deployment_id: string;
|
|
2169
|
+
model_hash?: string | null;
|
|
2170
|
+
organization_id: string;
|
|
2171
|
+
organization_model: Json;
|
|
2172
|
+
schema_version?: string;
|
|
2173
|
+
updated_at?: string;
|
|
2174
|
+
};
|
|
2175
|
+
Update: {
|
|
2176
|
+
created_at?: string;
|
|
2177
|
+
deployment_id?: string;
|
|
2178
|
+
model_hash?: string | null;
|
|
2179
|
+
organization_id?: string;
|
|
2180
|
+
organization_model?: Json;
|
|
2181
|
+
schema_version?: string;
|
|
2182
|
+
updated_at?: string;
|
|
2183
|
+
};
|
|
2184
|
+
Relationships: [
|
|
2185
|
+
{
|
|
2186
|
+
foreignKeyName: "deployment_organization_models_deployment_id_fkey";
|
|
2187
|
+
columns: ["deployment_id"];
|
|
2188
|
+
isOneToOne: true;
|
|
2189
|
+
referencedRelation: "deployments";
|
|
2190
|
+
referencedColumns: ["id"];
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
foreignKeyName: "deployment_organization_models_organization_id_fkey";
|
|
2194
|
+
columns: ["organization_id"];
|
|
2195
|
+
isOneToOne: false;
|
|
2196
|
+
referencedRelation: "organizations";
|
|
2197
|
+
referencedColumns: ["id"];
|
|
2198
|
+
}
|
|
2199
|
+
];
|
|
2200
|
+
};
|
|
2156
2201
|
deployments: {
|
|
2157
2202
|
Row: {
|
|
2158
2203
|
created_at: string;
|
|
@@ -4399,7 +4444,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4399
4444
|
light: z.ZodOptional<z.ZodString>;
|
|
4400
4445
|
dark: z.ZodOptional<z.ZodString>;
|
|
4401
4446
|
}, z.core.$strip>>;
|
|
4402
|
-
|
|
4447
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4448
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4449
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4450
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
4451
|
+
}, z.core.$loose>>;
|
|
4403
4452
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
4404
4453
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
4405
4454
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -4446,7 +4495,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4446
4495
|
}, z.core.$strip>>;
|
|
4447
4496
|
}, z.core.$strip>>;
|
|
4448
4497
|
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4449
|
-
|
|
4498
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4499
|
+
productName: z.ZodOptional<z.ZodString>;
|
|
4500
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4501
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4502
|
+
}, z.core.$loose>>;
|
|
4450
4503
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4451
4504
|
id: z.ZodString;
|
|
4452
4505
|
order: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -321,7 +321,11 @@ declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
|
321
321
|
light: z.ZodOptional<z.ZodString>;
|
|
322
322
|
dark: z.ZodOptional<z.ZodString>;
|
|
323
323
|
}, z.core.$strip>>;
|
|
324
|
-
|
|
324
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
325
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
326
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$loose>;
|
|
325
329
|
|
|
326
330
|
/** One entry in the lead-gen stage catalog. */
|
|
327
331
|
interface LeadGenStageCatalogEntry {
|
|
@@ -3013,7 +3017,6 @@ declare const EntitiesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
|
|
|
3013
3017
|
label: z.ZodOptional<z.ZodString>;
|
|
3014
3018
|
}, z.core.$strip>>>;
|
|
3015
3019
|
}, z.core.$strip>>>;
|
|
3016
|
-
declare const DEFAULT_ORGANIZATION_MODEL_ENTITIES: z.infer<typeof EntitiesDomainSchema>;
|
|
3017
3020
|
/** Validate and return a single entity entry. */
|
|
3018
3021
|
declare function defineEntity(entry: z.input<typeof EntitySchema>): z.infer<typeof EntitySchema>;
|
|
3019
3022
|
/** Validate and return an id-keyed map of entity entries. */
|
|
@@ -4068,7 +4071,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4068
4071
|
light: z.ZodOptional<z.ZodString>;
|
|
4069
4072
|
dark: z.ZodOptional<z.ZodString>;
|
|
4070
4073
|
}, z.core.$strip>>;
|
|
4071
|
-
|
|
4074
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4075
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4077
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
4078
|
+
}, z.core.$loose>>;
|
|
4072
4079
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
4073
4080
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
4074
4081
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -4115,7 +4122,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4115
4122
|
}, z.core.$strip>>;
|
|
4116
4123
|
}, z.core.$strip>>;
|
|
4117
4124
|
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4118
|
-
|
|
4125
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4126
|
+
productName: z.ZodOptional<z.ZodString>;
|
|
4127
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4129
|
+
}, z.core.$loose>>;
|
|
4119
4130
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4120
4131
|
id: z.ZodString;
|
|
4121
4132
|
order: z.ZodNumber;
|
|
@@ -4796,5 +4807,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4796
4807
|
}, z.core.$strip>>>>;
|
|
4797
4808
|
}, z.core.$strip>;
|
|
4798
4809
|
|
|
4799
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA,
|
|
4810
|
+
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_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4800
4811
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -494,15 +494,55 @@ DisplayMetadataSchema.extend({
|
|
|
494
494
|
|
|
495
495
|
// src/organization-model/domains/branding.ts
|
|
496
496
|
var OrganizationModelBrandingSchema = z.object({
|
|
497
|
+
/**
|
|
498
|
+
* @deprecated Prefer `identity.organizationName`; branding retains it for back-compat.
|
|
499
|
+
* Legacy tenants that have not set `identity.organizationName` fall back to this field.
|
|
500
|
+
*/
|
|
497
501
|
organizationName: LabelSchema,
|
|
502
|
+
/**
|
|
503
|
+
* @deprecated Prefer `identity.productName`; branding retains it for back-compat.
|
|
504
|
+
* Legacy tenants that have not set `identity.productName` fall back to this field.
|
|
505
|
+
*/
|
|
498
506
|
productName: LabelSchema,
|
|
507
|
+
/**
|
|
508
|
+
* @deprecated Prefer `identity.shortName`; branding retains it for back-compat.
|
|
509
|
+
* Legacy tenants that have not set `identity.shortName` fall back to this field.
|
|
510
|
+
*/
|
|
499
511
|
shortName: z.string().trim().min(1).max(40),
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated Prefer `identity.description`; branding retains it for back-compat.
|
|
514
|
+
* Legacy tenants that have not set `identity.description` fall back to this field.
|
|
515
|
+
*/
|
|
500
516
|
description: DescriptionSchema.optional(),
|
|
501
517
|
logos: z.object({
|
|
502
518
|
light: z.string().trim().min(1).max(2048).optional(),
|
|
503
519
|
dark: z.string().trim().min(1).max(2048).optional()
|
|
504
|
-
}).default({})
|
|
505
|
-
|
|
520
|
+
}).default({}),
|
|
521
|
+
/**
|
|
522
|
+
* Brand voice — how the organization communicates. Plain-language description
|
|
523
|
+
* of tone, register, and personality (e.g. "Direct and human — no jargon").
|
|
524
|
+
* Max 280 characters.
|
|
525
|
+
*/
|
|
526
|
+
voice: z.string().trim().max(280).optional(),
|
|
527
|
+
/**
|
|
528
|
+
* Brand tagline or positioning statement — the memorable one-liner that
|
|
529
|
+
* captures the brand's promise or differentiator. Max 200 characters.
|
|
530
|
+
*/
|
|
531
|
+
tagline: z.string().trim().max(200).optional(),
|
|
532
|
+
/**
|
|
533
|
+
* Core brand values — an ordered list of principles the organization stands
|
|
534
|
+
* for (e.g. ["Transparency", "Craftsmanship", "Velocity"]). Each entry must
|
|
535
|
+
* be a non-empty trimmed string.
|
|
536
|
+
*/
|
|
537
|
+
values: z.array(z.string().trim().min(1)).optional(),
|
|
538
|
+
/**
|
|
539
|
+
* ID of the active UI theme preset from the UI theme-presets registry.
|
|
540
|
+
* The UI layer resolves this to colors and typography via `usePresetsContext()`.
|
|
541
|
+
* Free-form string — validation and fallback state are handled at the UI layer.
|
|
542
|
+
* Min 1, max 64 characters.
|
|
543
|
+
*/
|
|
544
|
+
themePresetId: z.string().trim().min(1).max(64).optional()
|
|
545
|
+
}).passthrough();
|
|
506
546
|
var DEFAULT_ORGANIZATION_MODEL_BRANDING = {
|
|
507
547
|
organizationName: "Default Organization",
|
|
508
548
|
productName: "Organization OS",
|
|
@@ -633,8 +673,33 @@ var IdentityDomainSchema = z.object({
|
|
|
633
673
|
* background. Populated by /setup; surfaced to agents as organizational context.
|
|
634
674
|
* Optional — many projects have no external client.
|
|
635
675
|
*/
|
|
636
|
-
clientBrief: z.string().trim().default("")
|
|
637
|
-
|
|
676
|
+
clientBrief: z.string().trim().default(""),
|
|
677
|
+
/**
|
|
678
|
+
* Display name of the organization as shown to end users.
|
|
679
|
+
* Recommended placement for display naming — prefer this over the deprecated
|
|
680
|
+
* `branding.organizationName`. Falls back to `branding.organizationName` for
|
|
681
|
+
* legacy tenants that have not yet migrated.
|
|
682
|
+
*/
|
|
683
|
+
organizationName: LabelSchema.optional(),
|
|
684
|
+
/**
|
|
685
|
+
* Display name of the primary product or platform.
|
|
686
|
+
* Recommended placement for display naming — prefer this over the deprecated
|
|
687
|
+
* `branding.productName`. Falls back to `branding.productName` for legacy tenants.
|
|
688
|
+
*/
|
|
689
|
+
productName: LabelSchema.optional(),
|
|
690
|
+
/**
|
|
691
|
+
* Short abbreviated name used in space-constrained UI surfaces (max 40 chars).
|
|
692
|
+
* Recommended placement for display naming — prefer this over the deprecated
|
|
693
|
+
* `branding.shortName`. Falls back to `branding.shortName` for legacy tenants.
|
|
694
|
+
*/
|
|
695
|
+
shortName: z.string().trim().min(1).max(40).optional(),
|
|
696
|
+
/**
|
|
697
|
+
* Plain-language description of the organization for display and discovery.
|
|
698
|
+
* Recommended placement for display naming — prefer this over the deprecated
|
|
699
|
+
* `branding.description`. Falls back to `branding.description` for legacy tenants.
|
|
700
|
+
*/
|
|
701
|
+
description: DescriptionSchema.optional()
|
|
702
|
+
}).passthrough();
|
|
638
703
|
var DEFAULT_ORGANIZATION_MODEL_IDENTITY = {
|
|
639
704
|
mission: "",
|
|
640
705
|
vision: "",
|
|
@@ -831,107 +896,6 @@ var EntitySchema = z.object({
|
|
|
831
896
|
var EntitiesDomainSchema = z.record(z.string(), EntitySchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
|
|
832
897
|
message: "Each entity entry id must match its map key"
|
|
833
898
|
}).default({});
|
|
834
|
-
var ENTITY_ENTRY_INPUTS = [
|
|
835
|
-
{
|
|
836
|
-
id: "crm.deal",
|
|
837
|
-
order: 10,
|
|
838
|
-
label: "Deal",
|
|
839
|
-
description: "A CRM opportunity or sales pipeline record.",
|
|
840
|
-
ownedBySystemId: "sales.crm",
|
|
841
|
-
table: "crm_deals",
|
|
842
|
-
stateCatalogId: "crm.pipeline",
|
|
843
|
-
links: [{ toEntity: "crm.contact", kind: "has-many", via: "deal_contacts", label: "contacts" }]
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
id: "crm.contact",
|
|
847
|
-
order: 20,
|
|
848
|
-
label: "CRM Contact",
|
|
849
|
-
description: "A person associated with a CRM relationship or deal.",
|
|
850
|
-
ownedBySystemId: "sales.crm",
|
|
851
|
-
table: "crm_contacts"
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
id: "leadgen.list",
|
|
855
|
-
order: 30,
|
|
856
|
-
label: "Lead List",
|
|
857
|
-
description: "A prospecting list that groups companies and contacts for acquisition workflows.",
|
|
858
|
-
ownedBySystemId: "sales.lead-gen",
|
|
859
|
-
table: "acq_lists",
|
|
860
|
-
links: [
|
|
861
|
-
{ toEntity: "leadgen.company", kind: "has-many", via: "acq_list_companies", label: "companies" },
|
|
862
|
-
{ toEntity: "leadgen.contact", kind: "has-many", via: "acq_list_members", label: "contacts" }
|
|
863
|
-
]
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
id: "leadgen.company",
|
|
867
|
-
order: 40,
|
|
868
|
-
label: "Lead Company",
|
|
869
|
-
description: "A company record sourced, enriched, and qualified during prospecting.",
|
|
870
|
-
ownedBySystemId: "sales.lead-gen",
|
|
871
|
-
table: "acq_list_companies",
|
|
872
|
-
stateCatalogId: "lead-gen.company",
|
|
873
|
-
links: [
|
|
874
|
-
{ toEntity: "leadgen.list", kind: "belongs-to", via: "list_id", label: "list" },
|
|
875
|
-
{ toEntity: "leadgen.contact", kind: "has-many", via: "company_id", label: "contacts" }
|
|
876
|
-
]
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
id: "leadgen.contact",
|
|
880
|
-
order: 50,
|
|
881
|
-
label: "Lead Contact",
|
|
882
|
-
description: "A prospect contact discovered or enriched during lead generation.",
|
|
883
|
-
ownedBySystemId: "sales.lead-gen",
|
|
884
|
-
table: "acq_list_members",
|
|
885
|
-
stateCatalogId: "lead-gen.contact",
|
|
886
|
-
links: [
|
|
887
|
-
{ toEntity: "leadgen.list", kind: "belongs-to", via: "list_id", label: "list" },
|
|
888
|
-
{ toEntity: "leadgen.company", kind: "belongs-to", via: "company_id", label: "company" }
|
|
889
|
-
]
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
id: "delivery.project",
|
|
893
|
-
order: 60,
|
|
894
|
-
label: "Project",
|
|
895
|
-
description: "A client delivery project.",
|
|
896
|
-
ownedBySystemId: "projects",
|
|
897
|
-
table: "projects",
|
|
898
|
-
links: [
|
|
899
|
-
{ toEntity: "delivery.milestone", kind: "has-many", via: "project_id", label: "milestones" },
|
|
900
|
-
{ toEntity: "delivery.task", kind: "has-many", via: "project_id", label: "tasks" }
|
|
901
|
-
]
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
id: "delivery.milestone",
|
|
905
|
-
order: 70,
|
|
906
|
-
label: "Milestone",
|
|
907
|
-
description: "A delivery checkpoint within a project.",
|
|
908
|
-
ownedBySystemId: "projects",
|
|
909
|
-
table: "project_milestones",
|
|
910
|
-
links: [
|
|
911
|
-
{ toEntity: "delivery.project", kind: "belongs-to", via: "project_id", label: "project" },
|
|
912
|
-
{ toEntity: "delivery.task", kind: "has-many", via: "milestone_id", label: "tasks" }
|
|
913
|
-
]
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
id: "delivery.task",
|
|
917
|
-
order: 80,
|
|
918
|
-
label: "Task",
|
|
919
|
-
description: "A delivery task that can move through the task status catalog.",
|
|
920
|
-
ownedBySystemId: "projects",
|
|
921
|
-
table: "project_tasks",
|
|
922
|
-
stateCatalogId: "delivery.task",
|
|
923
|
-
links: [
|
|
924
|
-
{ toEntity: "delivery.project", kind: "belongs-to", via: "project_id", label: "project" },
|
|
925
|
-
{ toEntity: "delivery.milestone", kind: "belongs-to", via: "milestone_id", label: "milestone" }
|
|
926
|
-
]
|
|
927
|
-
}
|
|
928
|
-
];
|
|
929
|
-
var DEFAULT_ORGANIZATION_MODEL_ENTITIES = Object.fromEntries(
|
|
930
|
-
ENTITY_ENTRY_INPUTS.map((entity) => {
|
|
931
|
-
const parsed = EntitySchema.parse(entity);
|
|
932
|
-
return [parsed.id, parsed];
|
|
933
|
-
})
|
|
934
|
-
);
|
|
935
899
|
function defineEntity(entry) {
|
|
936
900
|
return EntitySchema.parse(entry);
|
|
937
901
|
}
|
|
@@ -2428,7 +2392,7 @@ var OrganizationModelSchemaBase = z.object({
|
|
|
2428
2392
|
resources: ResourcesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_RESOURCES),
|
|
2429
2393
|
topology: OmTopologyDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_TOPOLOGY),
|
|
2430
2394
|
actions: ActionsDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_ACTIONS),
|
|
2431
|
-
entities: EntitiesDomainSchema.default(
|
|
2395
|
+
entities: EntitiesDomainSchema.default({}),
|
|
2432
2396
|
policies: PoliciesDomainSchema.default(DEFAULT_ORGANIZATION_MODEL_POLICIES),
|
|
2433
2397
|
// D3: flat Record<id, OrgKnowledgeNode> — no wrapper object
|
|
2434
2398
|
knowledge: KnowledgeDomainSchema.default({})
|
|
@@ -2534,7 +2498,7 @@ var SETTINGS_ROLES_SURFACE_ID = "settings.roles";
|
|
|
2534
2498
|
|
|
2535
2499
|
// src/organization-model/defaults.ts
|
|
2536
2500
|
var DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE = {};
|
|
2537
|
-
var
|
|
2501
|
+
var DEFAULT_ORGANIZATION_MODEL_ENTITIES = {};
|
|
2538
2502
|
var DEFAULT_ORGANIZATION_MODEL_NAVIGATION2 = {
|
|
2539
2503
|
sidebar: {
|
|
2540
2504
|
primary: {},
|
|
@@ -2562,7 +2526,7 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
2562
2526
|
// Generic empty actions map. Elevasis-specific action entries have been relocated to
|
|
2563
2527
|
// `@repo/elevasis-core/src/organization-model/actions.ts`.
|
|
2564
2528
|
actions: {},
|
|
2565
|
-
entities:
|
|
2529
|
+
entities: DEFAULT_ORGANIZATION_MODEL_ENTITIES,
|
|
2566
2530
|
policies: DEFAULT_ORGANIZATION_MODEL_POLICIES,
|
|
2567
2531
|
knowledge: DEFAULT_ORGANIZATION_MODEL_KNOWLEDGE
|
|
2568
2532
|
};
|
|
@@ -3442,4 +3406,4 @@ function scaffoldOrganizationModel(model, spec) {
|
|
|
3442
3406
|
return scaffoldKnowledgeNode(model, spec);
|
|
3443
3407
|
}
|
|
3444
3408
|
|
|
3445
|
-
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,
|
|
3409
|
+
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_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
@@ -537,7 +537,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
537
537
|
light: z.ZodOptional<z.ZodString>;
|
|
538
538
|
dark: z.ZodOptional<z.ZodString>;
|
|
539
539
|
}, z.core.$strip>>;
|
|
540
|
-
|
|
540
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
541
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
542
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
543
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, z.core.$loose>>;
|
|
541
545
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
542
546
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
543
547
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -584,7 +588,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
584
588
|
}, z.core.$strip>>;
|
|
585
589
|
}, z.core.$strip>>;
|
|
586
590
|
clientBrief: z.ZodDefault<z.ZodString>;
|
|
587
|
-
|
|
591
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
592
|
+
productName: z.ZodOptional<z.ZodString>;
|
|
593
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
594
|
+
description: z.ZodOptional<z.ZodString>;
|
|
595
|
+
}, z.core.$loose>>;
|
|
588
596
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
589
597
|
id: z.ZodString;
|
|
590
598
|
order: z.ZodNumber;
|
|
@@ -321,7 +321,11 @@ declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
|
321
321
|
light: z.ZodOptional<z.ZodString>;
|
|
322
322
|
dark: z.ZodOptional<z.ZodString>;
|
|
323
323
|
}, z.core.$strip>>;
|
|
324
|
-
|
|
324
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
325
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
326
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$loose>;
|
|
325
329
|
|
|
326
330
|
/** One entry in the lead-gen stage catalog. */
|
|
327
331
|
interface LeadGenStageCatalogEntry {
|
|
@@ -3013,7 +3017,6 @@ declare const EntitiesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodO
|
|
|
3013
3017
|
label: z.ZodOptional<z.ZodString>;
|
|
3014
3018
|
}, z.core.$strip>>>;
|
|
3015
3019
|
}, z.core.$strip>>>;
|
|
3016
|
-
declare const DEFAULT_ORGANIZATION_MODEL_ENTITIES: z.infer<typeof EntitiesDomainSchema>;
|
|
3017
3020
|
/** Validate and return a single entity entry. */
|
|
3018
3021
|
declare function defineEntity(entry: z.input<typeof EntitySchema>): z.infer<typeof EntitySchema>;
|
|
3019
3022
|
/** Validate and return an id-keyed map of entity entries. */
|
|
@@ -4068,7 +4071,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4068
4071
|
light: z.ZodOptional<z.ZodString>;
|
|
4069
4072
|
dark: z.ZodOptional<z.ZodString>;
|
|
4070
4073
|
}, z.core.$strip>>;
|
|
4071
|
-
|
|
4074
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4075
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4077
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
4078
|
+
}, z.core.$loose>>;
|
|
4072
4079
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
4073
4080
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
4074
4081
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -4115,7 +4122,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4115
4122
|
}, z.core.$strip>>;
|
|
4116
4123
|
}, z.core.$strip>>;
|
|
4117
4124
|
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4118
|
-
|
|
4125
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4126
|
+
productName: z.ZodOptional<z.ZodString>;
|
|
4127
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4129
|
+
}, z.core.$loose>>;
|
|
4119
4130
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4120
4131
|
id: z.ZodString;
|
|
4121
4132
|
order: z.ZodNumber;
|
|
@@ -4796,5 +4807,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4796
4807
|
}, z.core.$strip>>>>;
|
|
4797
4808
|
}, z.core.$strip>;
|
|
4798
4809
|
|
|
4799
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA,
|
|
4810
|
+
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_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
4800
4811
|
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 };
|