AppDefinition
Describes one App in the composed Definition: its structure, the Apps it imports and its executable behavior.
Remarks
Section titled “Remarks”Every map is keyed by the member’s key, except metrics[*].events, which is keyed by Event
PRN. The Builder freezes each map, so treat the definition as immutable. Handlers, hooks and
Listeners are functions and are dropped by JSON serialization.
- Definitions and serialization
- AppBuilder for declaring an App
- ReadAppInstance for the App inside an execution
Properties
Section titled “Properties”dependencies
Section titled “dependencies”
readonlydependencies:Record<string,AppDefinition>
Apps this App imported, keyed by the local dependency key used in the import.
description
Section titled “description”
readonlydescription:string|undefined
Description set with setDescription, or undefined.
events
Section titled “events”
readonlyevents:Record<string,EventDefinition>
App-level Events, keyed by Event key; their PRNs take the form prn::<app>:app/event/<key>.
readonlyhooks:AppHookDefinition
Workspace create and seed hooks registered by this App.
isRoot
Section titled “isRoot”
readonlyisRoot:boolean
Whether this App is the root of the composed Definition.
readonlykey:string
Canonical key of the App, unique across the composed Definition.
metricDimensions
Section titled “metricDimensions”
readonlymetricDimensions:Record<string,MetricDimensionDefinition>
Metric Dimensions declared by this App, keyed by Dimension key.
metrics
Section titled “metrics”
readonlymetrics:Record<string,MetricDefinition>
Metrics declared by this App, keyed by Metric key.
mutations
Section titled “mutations”
readonlymutations:Record<string,MutationDefinition>
Mutations declared by this App, keyed by Mutation key.
readonlyprn:string
PRN of the App, prn::<key>.
queries
Section titled “queries”
readonlyqueries:Record<string,QueryDefinition>
Queries declared by this App, keyed by Query key.
readonlyroles:Record<string,AppRoleDefinition>
App Roles declared by this App, keyed by Role key.
searches
Section titled “searches”
readonlysearches:Record<string,SearchIndexDefinition>
Search indexes declared by this App, keyed by search key.
templates
Section titled “templates”
readonlytemplates:Record<string,TemplateDefinition>
Templates keyed by Template key; on the root App this also holds the Workspace Template under workspace.
unions
Section titled “unions”
readonlyunions:Record<string,UnionDefinition>
Unions keyed by union key; each search index also registers a Union with the same key.
workspaceTemplate?
Section titled “workspaceTemplate?”
readonlyoptionalworkspaceTemplate?:TemplateDefinition
The Workspace Template shared by every App in the build; omitted from the JSON the compiler emits.

