# App manifest

> Every field of an app manifest, its type and whether it's required. Generated from the manifest schema.

Source: https://docs.ligament.ai/reference/app-manifest/

How to write and publish a manifest: [App manifests](https://docs.ligament.ai/developers/app-spec/index.md). `[]` marks a list; `required` means required whenever its parent is present.

## `key`

| Field | Type | Description |
| --- | --- | --- |
| `key` required | `string` | Unique app key, lowercase with underscores, for example `asset_tracker`. |

## `version`

| Field | Type | Description |
| --- | --- | --- |
| `version` required | `string` | Semantic version (`1.2.0`). Published versions are immutable: bump it to publish a change. |

## `dependsOn`

| Field | Type | Description |
| --- | --- | --- |
| `dependsOn` | `string[]` | Apps this app cannot work without, usually because its reference fields point at their entities. Installing this app installs them first; they can't be uninstalled while this app is installed. |

## `app`

| Field | Type | Description |
| --- | --- | --- |
| `app` | `object` | App-level settings. |
| `app.tier` | `enum` product, module | `product` gives the app its own icon in the app rail; `module` (the default) is reached from the app launcher. |
| `app.firstParty` | `boolean` |  |

## `entities`

| Field | Type | Description |
| --- | --- | --- |
| `entities` required | `object[]` | The record types the app owns. At least one. |
| `entities[].key` required | `string` | Entity key, unique in the workspace. Used in API paths: `/api/records/<key>`. |
| `entities[].label` required | `string` | Name shown in the app. |
| `entities[].description` | `string` | Short description. |
| `entities[].icon` | `string` | Icon name. |
| `entities[].backingTable` | `string` | Leave at `records` (the default). |
| `entities[].fields` required | `object[]` | The entity's fields. |
| `entities[].fields[].key` required | `string` | Field key, unique in the entity. |
| `entities[].fields[].label` required | `string` | Label on forms and lists. |
| `entities[].fields[].type` required | `string` | Field type: `string`, `markdown`, `number`, `currency`, `boolean`, `date`, `email`, `url`, `image_url`, `enum`, `reference`, `reference_list`, `tags`, `file`, `calculated` or `rollup`. |
| `entities[].fields[].storage` required | `enum` column, ext | How the field is stored. Apps use `ext`. |
| `entities[].fields[].required` | `boolean` | The record can't be saved without a value. |
| `entities[].fields[].enumOptions` | `object[]` | Choices of an `enum` field, each with a value and a colour. |
| `entities[].fields[].enumOptions[].value` required | `string` |  |
| `entities[].fields[].enumOptions[].color` required | `string` |  |
| `entities[].fields[].enumOptions[].label` | `string` |  |
| `entities[].fields[].referenceEntityKey` | `string` | For a `reference` field: the entity it points at. |
| `entities[].fields[].referenceDisplayField` | `string` | The field of the referenced record shown in pickers and lists. |
| `entities[].fields[].referenceFilter` | `object` | Limits the records a reference picker offers: a cascade from another field, and fixed conditions. |
| `entities[].fields[].referenceFilter.field` | `string` |  |
| `entities[].fields[].referenceFilter.targetField` | `string` |  |
| `entities[].fields[].referenceFilter.where` | `object[]` |  |
| `entities[].fields[].optionsSource` | `string` | Makes the field a dropdown filled from a live list: `views:<entity>` offers that entity's saved views, `providers:<type>` the workspace's integrations of that type (for example `providers:email`; the value is the integration's name, blank = the workspace default). Anyone who can read or edit the field sees the integration names, never their settings: in the record form and as the values of a list filter on the field. |
| `entities[].fields[].order` required | `number` | Position on the default form. |
| `entities[].fields[].autoNumber` | `boolean` | Fill the field with a sequence number on create (`INC0001042`). |
| `entities[].fields[].autoNumberPrefix` | `string` | Prefix of the sequence number. |
| `entities[].fields[].autoNumberPadding` | `number` | Digits of the sequence number. |
| `entities[].fields[].formula` | `string` | A formula computed from other fields. |
| `entities[].fields[].formulaOutputType` | `enum` number, currency, money, decimal, string | Type of the formula's result. |
| `entities[].fields[].currency` | `string` |  |
| `entities[].fields[].currencyField` | `string` |  |
| `entities[].fields[].scale` | `number` |  |
| `entities[].fields[].rounding` | `enum` half\_even, half\_up |  |
| `entities[].fields[].rollupEntity` | `string` | Roll-up: the child entity to aggregate. |
| `entities[].fields[].rollupRefField` | `string` | Roll-up: the child's reference field that points back to this record. |
| `entities[].fields[].rollupAgg` | `enum` count, sum, avg, min, max | Roll-up: how to aggregate the children. |
| `entities[].fields[].rollupField` | `string` | Roll-up: the child field to aggregate. |
| `entities[].fields[].hierarchy` | `object` | Declares a self-reference (such as `manager`) as a hierarchy, so access rules can say "my reports" and "my reports' reports". |
| `entities[].fields[].hierarchy.key` required | `string` | Hierarchy key, used in access conditions. |
| `entities[].fields[].hierarchy.label` | `string` |  |
| `entities[].fields[].hierarchy.kind` | `enum` primary, secondary |  |
| `entities[].fields[].hierarchy.maxDepth` | `number` | Deepest allowed chain. |
| `entities[].fields[].hierarchy.onRemove` | `enum` refuse, reparent\_to\_parent | What happens to children when a record in the middle is deleted: `refuse` the delete, or move the children up to its parent. |
| `entities[].fields[].hierarchy.transitive` | `boolean` |  |
| `entities[].fields[].hierarchy.principalVia` | `string` |  |
| `entities[].fields[].classification` | `enum` pii, sensitive |  |
| `entities[].states` | `object[]` | Lifecycle states, such as New, In progress, Resolved. |
| `entities[].states[].key` required | `string` |  |
| `entities[].states[].label` required | `string` |  |
| `entities[].states[].color` | `string` |  |
| `entities[].states[].isInitial` | `boolean` | The state a new record starts in. |
| `entities[].states[].isTerminal` | `boolean` | A finished state. Records in it can't be edited. |
| `entities[].states[].order` required | `number` |  |
| `entities[].transitions` | `object[]` | Allowed moves between states. |
| `entities[].transitions[].from` required | `string` |  |
| `entities[].transitions[].to` required | `string` |  |
| `entities[].transitions[].label` required | `string` |  |
| `entities[].transitions[].requiresRole` | `string` | Only this role may make the move. |
| `entities[].transitions[].destructive` | `boolean` |  |
| `entities[].transitions[].confirm` | `string` |  |
| `entities[].transitions[].runWorkflow` | `string` | Workflow started when the move happens. |
| `entities[].rules` | `object[]` | Business rules that check, set or reject values when records are created, changed, moved or deleted. |
| `entities[].rules[].key` required | `string` |  |
| `entities[].rules[].name` | `string` |  |
| `entities[].rules[].on` required | `enum[]` create, update, transition, delete | The events the rule runs on. |
| `entities[].rules[].timing` | `enum` before, after | `before` the write (can reject or change it) or `after` it. |
| `entities[].rules[].from` | `string` |  |
| `entities[].rules[].to` | `string` |  |
| `entities[].rules[].when` | `object` | Condition: `all`, `any`, `not`, or a single comparison. |
| `entities[].rules[].when.all` | `object[]` | Required for some kinds. |
| `entities[].rules[].when.any` | `object[]` | Required for some kinds. |
| `entities[].rules[].when.not` | `object` | Required for some kinds. |
| `entities[].rules[].when.left` | `string` | Required for some kinds. |
| `entities[].rules[].when.op` | `enum` eq, ne, gt, lt, gte, lte, contains, empty, not\_empty, in | Required for some kinds. |
| `entities[].rules[].when.right` | `any` | Required for some kinds. |
| `entities[].rules[].do` required | `object[]` | Actions: reject, require a field, set a value, run a script. |
| `entities[].rules[].do[].kind` | `literal` reject | Required for some kinds. |
| `entities[].rules[].do[].message` | `string` | Required for some kinds. |
| `entities[].rules[].do[].field` | `string` | Required for some kinds. |
| `entities[].rules[].do[].value` | `any` | Required for some kinds. |
| `entities[].rules[].do[].code` | `string` | Required for some kinds. |
| `entities[].rules[].do[].canRead` | `boolean` | Required for some kinds. |
| `entities[].rules[].do[].canWrite` | `boolean` | Required for some kinds. |
| `entities[].rules[].do[].timeoutMs` | `number` | Required for some kinds. |
| `entities[].rules[].do[].memoryKb` | `number` | Required for some kinds. |
| `entities[].rules[].do[].script` | `string` | Required for some kinds. |
| `entities[].rules[].order` | `number` |  |
| `entities[].rules[].active` | `boolean` |  |
| `entities[].acls` | `object[]` | Access rules the app ships for its entity. They become the app's permission sets when installed. |
| `entities[].acls[].operation` required | `enum` read, create, update, delete, transition | The operation the rule covers. |
| `entities[].acls[].role` required | `string` | The role the rule applies to. |
| `entities[].acls[].effect` | `enum` allow, deny | `allow` (default) or `deny`. |
| `entities[].acls[].fieldKey` | `string` | Limits the rule to one field. |
| `entities[].acls[].rowFilters` | `object[]` | Limits the rule to matching records. Values can use `@me` and other tokens. |
| `entities[].acls[].rowFilters[].field` required | `string` |  |
| `entities[].acls[].rowFilters[].op` required | `enum` eq, ne, contains, empty, not\_empty |  |
| `entities[].acls[].rowFilters[].value` | `string` |  |
| `entities[].slas` | `object[]` | Service levels: a target time from an entry state to a goal state. |
| `entities[].slas[].name` required | `string` |  |
| `entities[].slas[].entryState` required | `string` |  |
| `entities[].slas[].goalState` required | `string` |  |
| `entities[].slas[].targetMinutes` required | `number` | Target time in minutes. |
| `entities[].slas[].escalateWorkflow` | `string` |  |
| `entities[].slas[].escalatePriority` | `string` |  |
| `entities[].slas[].calendar` | `string` | Business-hours calendar the clock follows. |
| `entities[].slas[].pauseStates` | `string[]` | States in which the clock stops. |
| `entities[].slas[].warnPercent` | `number` | Warn when this share of the target has passed. |
| `entities[].slas[].when` | `object` |  |
| `entities[].slas[].when.all` | `object[]` | Required for some kinds. |
| `entities[].slas[].when.any` | `object[]` | Required for some kinds. |
| `entities[].slas[].when.not` | `object` | Required for some kinds. |
| `entities[].slas[].when.left` | `string` | Required for some kinds. |
| `entities[].slas[].when.op` | `enum` eq, ne, gt, lt, gte, lte, contains, empty, not\_empty, in | Required for some kinds. |
| `entities[].slas[].when.right` | `any` | Required for some kinds. |
| `entities[].portal` | `object` | Lets people raise and track records of this entity on the portal. |
| `entities[].portal.request` | `boolean` | Show the entity on the portal as a request type. |
| `entities[].portal.titleField` | `string` | The field shown as the request's title. |
| `entities[].auditReads` | `boolean` |  |
| `entities[].email` | `object` | Email intake for this entity. |
| `entities[].email.intake` required | `boolean` | Mail sent to the workspace's intake address for this entity opens a record. |
| `entities[].seed` | `object (map)[]` | Records created when the app is installed. An upgrade creates only the rows whose identity (`seedKey`) isn't there yet; a row without one is created on the first install only. |
| `entities[].seedKey` | `string` | The field that identifies a `seed` row, so an upgrade doesn't create it twice. Absent: the row's `key`, `code` or `name`, whichever it has first. |
| `entities[].formOptions` | `object (map)` | Record page options, such as where the activity stream and attachments appear by default. |
| `entities[].sharedWith` | `string[]` | Other apps that declare the same entity. Whichever is installed first creates it; the others reuse it. Both manifests list each other. |
| `entities[].layout` | `object` | The record page layout the app installs with: sections of fields in columns. Kept once the workspace edits the layout. |
| `entities[].layout.sections` required | `object[]` | The sections, top to bottom. |
| `entities[].layout.sections[].label` required | `string` | Section heading. |
| `entities[].layout.sections[].columns` required | `string[][]` | One to three columns, each a list of field keys. |
| `entities[].layout.sections[].columnsCount` | `literal` 1 | Number of columns when the section has one list of fields. |
| `entities[].layout.sections[].collapsible` | `boolean` | The section can be collapsed. |
| `entities[].layout.sections[].collapsed` | `boolean` | The section starts collapsed. |
| `entities[].effectiveDating` | `object` | Turns on effective dating for the entity at install: groups of fields whose changes take effect on a date, with a history and as-of reads. |
| `entities[].effectiveDating.start` | `enum` created, -infinity | `created` (the first version starts when the record is created, or on the date given) or `-infinity`. |
| `entities[].effectiveDating.groups` required | `object[]` | The dated field groups (up to 8). A field belongs to one group. |
| `entities[].effectiveDating.groups[].key` required | `string` | Group key, used in the API (`?group=pay`). |
| `entities[].effectiveDating.groups[].label` | `string` | Group name shown on the record page. |
| `entities[].effectiveDating.groups[].fields` required | `string[]` | The fields whose changes are dated together. |
| `entities[].effectiveDating.groups[].reasons` | `string[]` | The reasons a change can give (`hire`, `merit`, `transfer`…). |
| `entities[].effectiveDating.groups[].requireReason` | `boolean` | A change must give one of the reasons. |
| `entities[].effectiveDating.groups[].requireEffectiveDate` | `boolean` | A change must say when it takes effect. |
| `entities[].effectiveDating.groups[].future` | `object` | How far ahead a change may take effect (`maxDays`). |
| `entities[].effectiveDating.groups[].backdate` | `object` | How far back a change may take effect (`maxDays`). |
| `entities[].anonymousIntake` | `object` |  |
| `entities[].anonymousIntake.refField` required | `string` |  |
| `entities[].anonymousIntake.refPrefix` required | `string` |  |
| `entities[].anonymousIntake.secretField` required | `string` |  |
| `entities[].anonymousIntake.receivedAtField` | `string` |  |
| `entities[].anonymousIntake.statusFields` | `string[]` |  |
| `entities[].anonymousIntake.replies` | `object` |  |
| `entities[].anonymousIntake.replies.entity` required | `string` |  |
| `entities[].anonymousIntake.replies.parentField` required | `string` |  |
| `entities[].anonymousIntake.replies.bodyField` required | `string` |  |
| `entities[].anonymousIntake.replies.authorField` required | `string` |  |
| `entities[].anonymousIntake.replies.reporterValue` required | `string` |  |
| `entities[].anonymousIntake.replies.hiddenAuthorValues` | `string[]` |  |
| `entities[].anonymousIntake.replies.timeField` | `string` |  |

## `extends`

| Field | Type | Description |
| --- | --- | --- |
| `extends` | `object[]` | Fields this app adds to other apps' entities. Field keys start with the app key (`csm_health_score`). |
| `extends[].entity` required | `string` | The entity to extend. |
| `extends[].fields` required | `object[]` | The fields to add. |
| `extends[].fields[].key` required | `string` |  |
| `extends[].fields[].label` required | `string` |  |
| `extends[].fields[].type` required | `string` |  |
| `extends[].fields[].storage` required | `enum` column, ext |  |
| `extends[].fields[].required` | `boolean` |  |
| `extends[].fields[].enumOptions` | `object[]` |  |
| `extends[].fields[].enumOptions[].value` required | `string` |  |
| `extends[].fields[].enumOptions[].color` required | `string` |  |
| `extends[].fields[].enumOptions[].label` | `string` |  |
| `extends[].fields[].referenceEntityKey` | `string` |  |
| `extends[].fields[].referenceDisplayField` | `string` |  |
| `extends[].fields[].referenceFilter` | `object` |  |
| `extends[].fields[].referenceFilter.field` | `string` |  |
| `extends[].fields[].referenceFilter.targetField` | `string` |  |
| `extends[].fields[].referenceFilter.where` | `object[]` |  |
| `extends[].fields[].optionsSource` | `string` |  |
| `extends[].fields[].order` required | `number` |  |
| `extends[].fields[].autoNumber` | `boolean` |  |
| `extends[].fields[].autoNumberPrefix` | `string` |  |
| `extends[].fields[].autoNumberPadding` | `number` |  |
| `extends[].fields[].formula` | `string` |  |
| `extends[].fields[].formulaOutputType` | `enum` number, currency, money, decimal, string |  |
| `extends[].fields[].currency` | `string` |  |
| `extends[].fields[].currencyField` | `string` |  |
| `extends[].fields[].scale` | `number` |  |
| `extends[].fields[].rounding` | `enum` half\_even, half\_up |  |
| `extends[].fields[].rollupEntity` | `string` |  |
| `extends[].fields[].rollupRefField` | `string` |  |
| `extends[].fields[].rollupAgg` | `enum` count, sum, avg, min, max |  |
| `extends[].fields[].rollupField` | `string` |  |
| `extends[].fields[].hierarchy` | `object` |  |
| `extends[].fields[].hierarchy.key` required | `string` |  |
| `extends[].fields[].hierarchy.label` | `string` |  |
| `extends[].fields[].hierarchy.kind` | `enum` primary, secondary |  |
| `extends[].fields[].hierarchy.maxDepth` | `number` |  |
| `extends[].fields[].hierarchy.onRemove` | `enum` refuse, reparent\_to\_parent |  |
| `extends[].fields[].hierarchy.transitive` | `boolean` |  |
| `extends[].fields[].hierarchy.principalVia` | `string` |  |
| `extends[].fields[].classification` | `enum` pii, sensitive |  |

## `grants`

| Field | Type | Description |
| --- | --- | --- |
| `grants` | `object[]` | Access the app's automation needs on entities it doesn't own. |
| `grants[].entity` required | `string` |  |
| `grants[].ops` required | `enum[]` read, create, update, transition, delete |  |
| `grants[].fields` | `string[]` |  |
| `grants[].reason` | `string` | Why the app needs it. Shown to the person installing the app. |

## `actorAttributes`

| Field | Type | Description |
| --- | --- | --- |
| `actorAttributes` | `object[]` | Attributes of the signed-in person (`@my_<key>`) that access rules can compare records with. |
| `actorAttributes[].key` required | `string` |  |
| `actorAttributes[].entity` required | `string` |  |
| `actorAttributes[].userField` required | `string` |  |
| `actorAttributes[].valueField` required | `string` |  |

## `pages`

| Field | Type | Description |
| --- | --- | --- |
| `pages` | `object (map)[]` | Page specs the app ships. See the page builder guide for their shape. |

## `nav`

| Field | Type | Description |
| --- | --- | --- |
| `nav` | `object` | The app's entry in the navigation. |
| `nav.label` required | `string` |  |
| `nav.icon` | `string` |  |
| `nav.items` required | `object[]` |  |
| `nav.items[].label` required | `string` |  |
| `nav.items[].to` required | `string` |  |
| `nav.items[].icon` | `string` |  |
| `nav.items[].group` | `string` |  |
| `nav.items[].capability` | `string` |  |
| `nav.within` | `string[]` | Show this app's section inside other apps' sections. |

## `store`

| Field | Type | Description |
| --- | --- | --- |
| `store` | `object` | App store listing. |
| `store.name` required | `string` |  |
| `store.summary` required | `string` |  |
| `store.description` required | `string` |  |
| `store.category` required | `string` |  |
| `store.icon` | `string` |  |
| `store.publisher` | `string` |  |
| `store.plans` required | `object[]` |  |
| `store.plans[].key` required | `string` |  |
| `store.plans[].name` required | `string` |  |
| `store.plans[].description` | `string` |  |
| `store.plans[].priceCents` | `number` |  |
| `store.plans[].interval` | `enum` month, year |  |
| `store.plans[].features` | `string[]` |  |
| `store.plans[].isDefault` | `boolean` |  |

## `workflows`

| Field | Type | Description |
| --- | --- | --- |
| `workflows` | `object[]` | Automation pipelines (workflow DSL): a trigger and the steps that follow. |
| `workflows[].key` required | `string` |  |
| `workflows[].name` required | `string` |  |
| `workflows[].trigger` required | `object` | What starts the workflow: a record event, a schedule, an event or a manual run. |
| `workflows[].nodes` required | `object[]` | The steps. |
| `workflows[].retries` | `number` |  |

## `scripts`

| Field | Type | Description |
| --- | --- | --- |
| `scripts` | `object[]` | Sandboxed scripts the app's workflows and rules can call. |
| `scripts[].key` required | `string` |  |
| `scripts[].name` required | `string` |  |
| `scripts[].description` | `string` |  |
| `scripts[].code` required | `string` |  |
| `scripts[].canRead` | `boolean` |  |
| `scripts[].canWrite` | `boolean` |  |
| `scripts[].httpHosts` | `string[]` |  |
| `scripts[].runAs` | `enum` caller, system |  |
| `scripts[].exposed` | `boolean` | Make the script callable as an endpoint and as an MCP tool. |
| `scripts[].endpointAuth` | `enum` public, apiKey, hmac | How callers of the endpoint authenticate, for example an HMAC signature. |
| `scripts[].endpointHmac` | `object` |  |
| `scripts[].endpointHmac.secret` required | `string` |  |
| `scripts[].endpointHmac.header` required | `string` |  |
| `scripts[].endpointHmac.scheme` required | `enum` timestamped, hex |  |
| `scripts[].endpointHmac.toleranceSeconds` | `number` |  |
| `scripts[].endpointIdempotency` | `object` | Deduplicate repeated deliveries by a header, and run calls for the same key one at a time. |
| `scripts[].endpointIdempotency.header` required | `string` |  |
| `scripts[].endpointIdempotency.serializeBy` | `object` |  |
| `scripts[].endpointIdempotency.serializeBy.bodyPath` required | `string` |  |

## `agents`

| Field | Type | Description |
| --- | --- | --- |
| `agents` | `object[]` | Named AI agents the app ships. |
| `agents[].key` required | `string` |  |
| `agents[].name` required | `string` |  |
| `agents[].description` | `string` |  |
| `agents[].systemPrompt` required | `string` |  |
| `agents[].clearance` | `enum` public, internal, confidential |  |
| `agents[].model` | `string` |  |
| `agents[].collections` | `string[]` |  |

## `connectors`

| Field | Type | Description |
| --- | --- | --- |
| `connectors` | `object[]` | Connections to other systems' APIs. |
| `connectors[].key` required | `string` |  |
| `connectors[].name` required | `string` |  |
| `connectors[].category` required | `string` |  |
| `connectors[].baseUrl` required | `string` |  |
| `connectors[].allowedHosts` | `string[]` |  |
| `connectors[].authType` | `enum` none, header, query, basic |  |
| `connectors[].authSecret` | `string` |  |
| `connectors[].authParam` | `string` |  |
| `connectors[].authPasswordSecret` | `string` |  |
| `connectors[].costPerCall` | `number` |  |
| `connectors[].operations` | `object (map)` |  |

## `widgets`

| Field | Type | Description |
| --- | --- | --- |
| `widgets` | `object[]` | Sandboxed widgets for record pages. |
| `widgets[].key` required | `string` |  |
| `widgets[].name` required | `string` |  |
| `widgets[].description` | `string` |  |
| `widgets[].template` | `string` |  |
| `widgets[].css` | `string` |  |
| `widgets[].clientScript` | `string` |  |
| `widgets[].dataScript` | `string` |  |

## `reports`

| Field | Type | Description |
| --- | --- | --- |
| `reports` | `object[]` | Reports created on install. |
| `reports[].key` required | `string` |  |
| `reports[].name` required | `string` |  |
| `reports[].entityKey` required | `string` |  |
| `reports[].metric` required | `enum` count, sum, avg |  |
| `reports[].metricField` | `string` |  |
| `reports[].groupBy` | `string` |  |
| `reports[].bucket` | `enum` day, week, month |  |
| `reports[].viz` required | `enum` number, bar, pie, line, table |  |
| `reports[].filters` | `object[]` |  |
| `reports[].filters[].field` required | `string` |  |
| `reports[].filters[].op` required | `enum` eq, ne, contains, empty, not\_empty |  |
| `reports[].filters[].value` | `string` |  |
| `reports[].showInNav` | `boolean` |  |

## `dashboards`

| Field | Type | Description |
| --- | --- | --- |
| `dashboards` | `object[]` | Dashboards created on install. |
| `dashboards[].name` required | `string` |  |
| `dashboards[].showInNav` | `boolean` |  |
| `dashboards[].widgets` required | `object[]` |  |
| `dashboards[].widgets[].report` required | `string` |  |
| `dashboards[].widgets[].size` required | `enum` half, full |  |

## `access`

| Field | Type | Description |
| --- | --- | --- |
| `access` | `object` | The app's access model: permission sets, roles, restrictions and the role that administers the app. Installing the app creates them, owned by the app; an upgrade keeps the workspace's edits and asks an admin before it widens access; uninstalling removes them. (Building apps › Access in the manifest). |
| `access.permissionSets` | `object[]` | Permission sets the app ships. Same shape as a `permissionSet` artefact, without `app` (it is this app). |
| `access.permissionSets[].key` required | `string` | `<app>.<name>`, for example `hr.employee`. |
| `access.permissionSets[].label` | `string` |  |
| `access.permissionSets[].description` | `string` |  |
| `access.permissionSets[].grants` required | `object[]` | What holders may do: `{ entity, ops, actions?, where?, fields? }` per grant. |
| `access.permissionSets[].grants[].entity` required | `string` |  |
| `access.permissionSets[].grants[].ops` | `enum[]` read, create, update, delete, transition |  |
| `access.permissionSets[].grants[].actions` | `string[]` |  |
| `access.permissionSets[].grants[].where` | `object (map) | any[]` | Rows the grant covers, as a condition (`{ left: "{{field}}", op, right }`, `{ all }`, `{ any }`). Absent: every row. |
| `access.permissionSets[].grants[].fields` | `object (map)` |  |
| `access.permissionSets[].fields` | `object (map)` | `{ entity: { field: level } }` with `hidden`, `masked`, `read` or `write`. |
| `access.permissionSets[].history` | `object (map)` |  |
| `access.permissionSets[].capabilities` | `string[]` | Capabilities holders get, for example `app.admin@<app>` or a custom `<app>.<name>` that a restriction can exempt. `workspace.admin` can't be shipped. |
| `access.roles` | `object[]` | Roles the app ships. A role holds permission sets. |
| `access.roles[].key` required | `string` | `<app>_<name>`, for example `hr_admin`. |
| `access.roles[].name` required | `string` |  |
| `access.roles[].description` | `string` |  |
| `access.roles[].permissionSets` required | `string[]` | The sets the role holds: this app's, or another installed app's. |
| `access.roles[].params` | `object (map)` |  |
| `access.roles[].elevatable` | `boolean` |  |
| `access.roles[].maxHours` | `number` |  |
| `access.restrictions` | `object[]` | Restrictions the app ships: they take access away whatever grants it (field caps, forbidden actions, per record with `unlessWhere`). |
| `access.restrictions[].key` required | `string` | `<app>.<name>`, for example `hr.pay_hr_only`. |
| `access.restrictions[].entity` required | `string` | One of this app's entities. |
| `access.restrictions[].actions` | `string[]` |  |
| `access.restrictions[].forbidWhen` | `object (map) | any[]` |  |
| `access.restrictions[].fields` | `object (map)` | Field caps: `{ field: hidden | masked | read }`. |
| `access.restrictions[].unlessCapability` | `string` | Holders of this capability are exempt. |
| `access.restrictions[].unlessWhere` | `object (map) | any[]` | Rows the field caps don't apply to, for example the person's own record (`{{user}}` = `@me`). |
| `access.restrictions[].revealable` | `boolean` |  |
| `access.restrictions[].roles` | `string[]` |  |
| `access.restrictions[].enforceOnAdmins` | `boolean` | Apply it to owners and admins too. |
| `access.restrictions[].message` | `string` |  |
| `access.appAdminRole` | `string` | The role whose holders administer this app's access. It must be one of `access.roles` and hold a set with `app.admin@<app>`. |

## `editPolicy`

| Field | Type | Description |
| --- | --- | --- |
| `editPolicy` | `enum` locked, additive, full | How much a workspace may change the app: `full` (default), `additive` (add, don't change) or `locked`. |

## `releaseNotes`

| Field | Type | Description |
| --- | --- | --- |
| `releaseNotes` | `string` | What changed in this version. Shown in the store and when upgrading. |

## `seedRecords`

| Field | Type | Description |
| --- | --- | --- |
| `seedRecords` | `object[]` | Records the app adds to entities it doesn't own, such as templates. |
| `seedRecords[].entity` required | `string` |  |
| `seedRecords[].records` required | `object (map)[]` |  |

## `views`

| Field | Type | Description |
| --- | --- | --- |
| `views` | `object[]` | Saved list views created on install. |
| `views[].name` required | `string` |  |
| `views[].entityKey` required | `string` |  |
| `views[].filters` | `object[]` |  |
| `views[].filters[].field` required | `string` |  |
| `views[].filters[].op` required | `string` |  |
| `views[].filters[].value` | `string` |  |
| `views[].columns` | `string[]` |  |
| `views[].viewType` | `enum` table, board, gallery, list, calendar |  |
| `views[].viewConfig` | `object (map)` |  |
| `views[].sort` | `object[]` |  |
| `views[].sort[].field` required | `string` |  |
| `views[].sort[].dir` required | `enum` asc, desc |  |
| `views[].groupBy` | `string` |  |
| `views[].showInNav` | `boolean` |  |
| `views[].isDefault` | `boolean` |  |
