ObjectStackObjectStack

Object schema — Data Protocol reference

Object schemas of the ObjectStack Data Protocol: ApiMethod, ApiOperation, Index and 21 more — each property with its type, default and a TypeScript example.

Source: packages/spec/src/data/object.zod.ts

TypeScript Usage

import { ApiMethod, ApiOperationSchema, IndexSchema, LifecycleSchema, LifecycleClassSchema, ObjectSchema, ObjectAccessConfigSchema, ObjectCapabilities, ObjectExtensionSchema, ObjectExtensionFieldPlacementSchema, ObjectExtensionGroupPlacementSchema, ObjectExtensionListPlacementSchema, ObjectExtensionPlacementSchema, ObjectExtensionRelatedListEntrySchema, ObjectExtensionRelatedListEntryObjectSchema, ObjectExternalBindingSchema, ObjectFieldGroupSchema, ObjectOwnershipEnum, ObjectRequiredPermissionsSchema, PerOperationRequiredPermissionsSchema, RelatedListEntrySchema, RelatedListEntryObjectSchema, RowCrudActionOverrideSchema, TenancyConfigSchema } from '@objectstack/spec/data';
import type { ApiMethod, ApiOperation, Lifecycle, LifecycleClass, ObjectAccessConfig, ObjectCapabilities, ObjectExtension, ObjectExtensionFieldPlacement, ObjectExtensionGroupPlacement, ObjectExtensionListPlacement, ObjectExtensionPlacement, ObjectExtensionRelatedListEntry, ObjectExtensionRelatedListEntryObject, ObjectExternalBinding, ObjectFieldGroup, ObjectRequiredPermissions, PerOperationRequiredPermissions, RelatedListEntry, RelatedListEntryObject, RowCrudActionOverride, TenancyConfig } from '@objectstack/spec/data';

// Validate data
const result = ApiMethod.parse(data);

ApiMethod

Allowed Values

  • get
  • list
  • create
  • update
  • delete
  • bulk

ApiOperation

Allowed Values

  • get
  • list
  • create
  • update
  • delete
  • upsert
  • bulk
  • aggregate
  • history
  • search
  • restore
  • purge
  • import
  • export

Index

Properties

PropertyTypeRequiredDescription
namestringoptionalIndex name (auto-generated if not provided)
fieldsstring[]✅Fields included in the index
uniquefalse | 'global' | 'organization'optional (default: false)Whether the index enforces uniqueness, and at which scope (ADR-0120). 'global' = materialized over exactly fields, no organization column injected — one holder across the whole installation; 'organization' = the driver prepends the NULL-safe organization key part (COALESCE(organization_id, 'global')) at registration — one holder per organization; false/omitted = not unique. Bare true is refused (retired at protocol 18 — it was the positional spelling of 'global'): state the scope. 'tenant'/'org' are rejected — the word is 'organization'

Lifecycle

Properties

PropertyTypeRequiredDescription
classEnum<'record' | 'audit' | 'telemetry' | 'transient' | 'event'>✅Persistence contract: record (business truth, permanent) | audit (compliance ledger) | telemetry (high-freq log) | transient (ephemeral state) | event (bus messages).
retention{ maxAge: string; onlyWhen?: Record<string, string | number | boolean | object | object> }optionalAge-based retention window enforced by the LifecycleService Reaper.
ttl{ field: string; expireAfter: string; onlyWhen?: Record<string, string | number | boolean | object | object> }optionalPer-row TTL auto-expiry (transient/event classes).
storage{ strategy: 'rotation'; shards: integer; unit: Enum<'day' | 'week' | 'month'> }optionalPhysical storage strategy for high-frequency telemetry (LifecycleService Rotator).
archive{ after: string; to: string; keep?: string }optionalCold-store archival (LifecycleService Archiver) — audit-class hot→cold hand-off.
seal{ valueFields: string[]; chainField?: string }optionalSeals the rows into signed, chained checkpoints (ADR-0154), so a change, insert or delete made outside the platform shows. Only class: 'audit' may declare it, and not beside a retention or ttl onlyWhen, a ttl on another field than created_at, or rotation storage. Signed expiry covers objects whose lifecycle is declared in packaged metadata: their sealed rows past their retention, ttl or archive.keep window leave only by whole checkpoints, after a signed expiry amendment names them, so the verifier reads them as expired rather than missing, and on such an object with no archive a retention override cannot shorten the declared window. On an object created at runtime the retention sweeper still deletes sealed rows at their row cutoff, which then read as missing. A tenant-scoped window is set on organization_id, so it applies to that organization's chain only where chainField is organization_id; every other chain (the chain of rows about no organization, and every chain of an object chained by another column) keeps its rows to the longest window set. The window is counted to the start of a UTC day and at most 10,000 rows leave per sweep, so a row can stay past it: a day, or longer while a backlog drains. While no sealer is running, the sweeper keeps them. A deployment with no crypto provider seals nothing and reports that at error.
reclaimbooleanoptionalRun driver space reclamation (SQLite incremental_vacuum) after sweeping this object. Default true for non-record classes.

Nested Shape: Lifecycle.retention

PropertyTypeRequiredDescription
maxAgestring✅Rows older than this (by created_at) are deleted by the Reaper — or archived first when archive is set.
onlyWhenRecord<string, string | number | boolean | { $in: (string | number)[] } | { $null: boolean }>optionalRow filter the retention applies to — per-field equality, {$in: [...]} or the null predicate {$null: true|false} (e.g. { status: { $in: ["completed", "failed"] } }). Rows OUTSIDE the filter are retained regardless of age: for tables that interleave live workflow state with terminal history (sys_automation_run). Incompatible with rotation storage and archive, which act on whole shards / age alone.

Nested Shape: Lifecycle.ttl

PropertyTypeRequiredDescription
fieldstring✅Timestamp field the TTL is measured from (e.g. created_at, expires_at).
expireAfterstring✅Rows expire this long after field and are deleted by the Reaper.
onlyWhenRecord<string, string | number | boolean | { $in: (string | number)[] } | { $null: boolean }>optionalRow filter the TTL reap applies to — per-field equality, {$in: [...]} or the null predicate {$null: true|false} (e.g. { revoked_at: { $null: true } }). Rows OUTSIDE the filter are retained regardless of expiry: for tables that interleave live rows with terminal history a TTL keyed on the same timestamp would otherwise destroy (a sys_session audit tombstone backdates expires_at, so a naive TTL reaps tombstones first). Incompatible with rotation storage, which DROPs whole shards, and with archive, which selects rows by the ttl cutoff alone and does not apply this filter.

Nested Shape: Lifecycle.storage

PropertyTypeRequiredDescription
strategy'rotation'✅Time-shard the table. The retained window (shards × unit) is the same on every dialect; the reclamation is not — SQLite DROPs the oldest shard whole (O(1) reclaim), other dialects reap that same window by age from created_at.
shardsinteger✅Number of shards retained; total window = shards × unit.
unitEnum<'day' | 'week' | 'month'>✅Time width of one shard.

Nested Shape: Lifecycle.archive

PropertyTypeRequiredDescription
afterstring✅Rows older than this are copied to the archive datasource before hot deletion.
tostring✅Target datasource name for cold storage. When it is not registered, the Archiver skips (audit rows are then retained, never dropped unarchived).
keepstringoptionalHow long archived rows are kept in cold storage (undefined = forever).

Nested Shape: Lifecycle.seal

PropertyTypeRequiredDescription
valueFieldsstring[]✅Columns that enter each sealed row as salted commitments instead of in clear, so a checkpoint never carries their values; every other declared column enters in clear. Each must name a declared field other than id and created_at, which order the leaves.
chainFieldstringoptionalThe column whose value names the organization chain each sealed row joins (default tenant_id); a row whose value is empty seals into the deployment chain. It must name a declared field or a column the platform injects, such as the tenant column organization_id, whose value is one text on every store (not a number, boolean, date, datetime, JSON or multi-value column); not id or created_at, which order the leaves; and not a valueFields member. Absent, the default tenant_id is held to the same rules, and the registry does not inject it: a seal that names no chain column needs a declared text or lookup tenant_id field. Fixed once the object has checkpoints.

LifecycleClass

Allowed Values

  • record
  • audit
  • telemetry
  • transient
  • event

Object

Properties

PropertyTypeRequiredDescription
namestring✅Machine unique key (snake_case). Immutable.
labelstringoptionalHuman readable singular label (e.g. "Account")
pluralLabelstringoptionalHuman readable plural label (e.g. "Accounts")
descriptionstringoptionalDeveloper documentation / description
iconstringoptionalIcon name (Lucide/Material) for UI representation
colorEnum<'gray' | 'blue' | 'teal' | 'green' | 'amber' | 'orange' | 'red' | 'pink' | 'purple'>optionalObject colour, one name from the fixed palette (gray, blue, teal, green, amber, orange, red, pink, purple). The console draws the object's icon as a white glyph on a rounded square of this colour, so one object looks the same wherever its icon appears. No free colour values. Omit to draw the neutral gray.
actionLayout{ list?: object; record?: object }optionalThe order of the object's actions and which are buttons, per action scope (list, record): pinned (at most 3 buttons, in order) and more (the 「More」 menu order; unnamed actions follow in their default order). Omit to keep each surface's own choice (each action's order).
isSystembooleanoptional (default: false)Is system object (protected from deletion; defaults its org-wide sharing to public when no sharingModel is set — plugin-sharing)
managedByEnum<'platform' | 'config' | 'system-data' | 'engine-owned' | 'append-only' | 'synced' | 'better-auth'>optionalLifecycle bucket — platform (user CRUD) | config (admin authored) | system-data (platform-defined schema, admin/user-writable data) | engine-owned (engine owns the lifecycle, no user writes) | append-only (audit) | synced (rows copied by a pull from a connector or federated source; read-only to members, and userActions cannot open a write) | better-auth (identity). UI clients honour the resolved affordance matrix.
ownershipEnum<'user' | 'business_unit' | 'org' | 'none'>optionalRecord-ownership model: user (default — injects reassignable owner_id plus owning_business_unit_id) | business_unit (unit-owned: owning_business_unit_id only, no owner_id) | org | none (no per-record owner, neither anchor). Distinct from the package own/extend contribution kind.
userActions{ create?: boolean | object; import?: boolean | object; edit?: boolean | object; delete?: boolean | object; … }optionalPer-object override of the resolved CRUD affordance matrix, plus the Change Owner switch (transfer).
systemFieldsfalse | { tenant?: boolean; audit?: boolean }optionalOpt out of, or selectively disable, registry-level system-field auto-injection.
datasourcestringoptional (default: "default")Target Datasource ID. "default" is the primary DB.
external{ remoteName?: string; remoteSchema?: string; writable?: boolean; columnMap?: Record<string, string>; … }optionalRemote table binding for federated (external) objects.
fieldsRecord<string, { name?: string; label?: string; type: Enum<'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'secret' | …>; description?: string; … }>✅Field definitions map. Keys must be snake_case identifiers; "proto", "constructor" and "prototype" are refused, and so is the "sync" prefix, reserved for the platform's sync-in columns.
attachedOnReadRecord<string, Record<string, Enum<'number' | 'text' | 'boolean' | 'date'>>>optionalBlocks a service attaches to each row it serves, computed per caller on read and never stored: block name → { leaf key → value type (number | text | boolean | date) }. NOT a field — no column, form, list view, export, write path or translation bundle reads it, and a block name may not repeat a declared field name. Its reader is the shared build validator (@objectstack/lint over @objectstack/formula, as os build / os validate run it), and only where record is a row the service served: in an action's visible and disabled predicates record.<block> resolves, and record.<block>.<leaf> resolves only to a leaf the block declares. Every other expression site binds the stored row, which never carries a block — a flow condition, a validation rule, a field rule or formula, an option visibleWhen, a sharing rule, a hook — and refuses record.<block> as an unknown field.
indexes{ name?: string; fields: string[]; unique?: false | 'global' | 'organization' }[]optionalDatabase performance indexes
fieldGroups{ key: string; label: string; fields?: string[]; icon?: string; … }[]optionalOrdered list of field groups (array order = display order). See ObjectFieldGroupSchema.
tenancy{ enabled: boolean; tenantField?: string }optionalMulti-tenancy configuration for SaaS applications
access{ default?: Enum<'public' | 'private'> }optional[ADR-0066 D2] Object exposure posture (public-by-default vs private secure-by-default).
requiredPermissionsstring[] | { read?: string[]; create?: string[]; update?: string[]; delete?: string[] }optional[ADR-0066 D3/⑤] Capabilities required to access this object (AND-gate) — string[] gates all CRUD, or a {read,create,update,delete} map gates per operation.
lifecycle{ class: Enum<'record' | 'audit' | 'telemetry' | 'transient' | 'event'>; retention?: object; ttl?: object; storage?: object; … }optionalData lifecycle contract (ADR-0057): class + retention/ttl/rotation/archive policies enforced by the platform LifecycleService.
fileAccessDelegatestringoptionalKernel service that authorizes downloads of files owned by this object's media fields, and decides whether a reader who may not read sys_file sees their name, size and type in a record read of this object (asked once per owning record on each such read), instead of testing whether the caller can read the owning row. For objects whose access is mediated by a service (e.g. sys_approval_action → approvals). Fails closed.
schemaReadDelegatestringoptionalKernel service that decides whether a caller who may not read this object is still served its definition on the metadata API, projected by that caller's field-level security. For objects whose rows reach callers only through a service's own door (e.g. sys_approval_request → approvals); it opens no row. Fails closed.
validationsany[]optionalObject-level validation rules
activityMilestones{ field: string; value: string; summary: string; type?: string }[]optionalDeclarative semantic activity milestones — emit a templated timeline row when a field transitions into a value, no hook code (ADR-0052 §5b.2).
uiReadonlyWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — every field of an existing record is read-only BY HAND while TRUE: the console surfaces a field's own uiReadonlyWhen locks (the edit dialog, record-page inline edit and the stage path, the highlight-strip chip, grid inline edit and multi-row save, kanban column drag, calendar drag, the Gantt, the timesheet cell, the line-item grid) do not let a person edit the record, while REST, import, action and flow writes keep every field, judged by the object's validations. e.g. Precord.status in ['confirmed', 'done'] on an order moved by Confirm / Cancel actions. A default for every field: a field that declares uiReadonly: true or its own uiReadonlyWhen is judged by that instead, so a field whose own uiReadonlyWhen is Pfalse stays editable inside a locked record; uiReadonly: false is not such a declaration and the field follows the object lock. A create is not judged. A predicate the console cannot evaluate locks every field that inherits it. Same scope as a field's readonlyWhen: the record's OWN columns. The engine never reads this key.
nameFieldstringoptional[ADR-0079] Canonical primary title field — the stored field used as the record display name (e.g. "name", "title").
displayNameFieldstringoptional[DEPRECATED → nameField] Field to use as the record display name (e.g., "name", "title"). Accepted as an alias for nameField.
titleFormatstring | { dialect: 'template'; source?: string; ast?: any; meta?: object }optional[DEPRECATED → nameField (ADR-0079)] Render-only title template; the server cannot return or query it, and an explicit nameField now takes precedence. An object definition that declares it is refused at the metadata save gate and by os validate; a stored object that carries it still parses and reads. Migrate a single-field title to nameField; a composite title that import, sort or search must match to a stored computed field (a non-formula field with an expression, computed and stored on every write) designated as nameField — a text formula designated as nameField stays legal for a title shown for display only. Placeholders may be written {{field}} or {field} — the title renderers treat the two as equivalent, normalizing {{field}} to {field} before substituting; neither spelling is judged at parse time.
imageFieldstringoptionalThe record's picture: names the field the record page header (record chrome) draws beside the title — one object-level declaration every record detail page reads, not a per-page header prop. Must name a field of this object whose type is image or avatar; any other name is refused. A record whose field is empty shows no picture (no initials or placeholder).
highlightFieldsstring[]optional[ADR-0085] Ordered most-important fields; first entry wins where only one fits. Drives default list and related-list columns, cards, hover cards, previews and the record picker; the default record page draws no strip from it. Renamed from compactLayout.
relatedLists(string | { list: string; label?: string; columns?: string[] })[]optionalThe record page's tabs beside the overview, in order. Absent: every related list shows (owned master_detail children, then lookup children), then attachments, approvals and the activity stream, as before. Declared: only the lists named here show, in this order; leaving one out hides its tab. A child list another package brings is not hidden by it: that package places the list with its object extension's place entry (an { list, after | before } entry), and an unplaced one shows at the end of the tabs, before approvals and the activity stream; this object may also name it, which a build accepts only when that package is in the stack, and then its own position wins. Each entry is a child object name (e.g. "task"), object.field when that child has more than one relationship to this object (e.g. "event.related_to"), or a built-in tab: "sys_attachment" (attachments, still only when enable.files is on; not shown when unlisted), "sys_approval_request" (approvals, still only when the record has requests; when unlisted it follows the listed tabs), "sys_activity" (the activity stream of activities, discussion and changes; when unlisted it comes last). An entry may instead be { list, label?, columns? } to give that list its own title and child-field columns (wins over the child FK's relatedListTitle / relatedListColumns, used wherever the list is drawn); a built-in tab is written only as its bare name. relatedList: false on the FK still hides a list; body tables placed by fieldGroups are not hidden by this list. A name whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere; one whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it and the record page places nothing for it. A columns name that resolves to no field of the child (a dotted name is walked through the child's relationships, as relatedListColumns is) is refused.
stageFieldstring | falseoptional[ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value select / radio with inline options, each declaring its kind ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse.
editModeEnum<'modal' | 'page'>optionalEdit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family).
listViewsRecord<string, { name?: string; label?: string | Record<string, string>; type?: Enum<'grid' | 'kanban' | 'gallery' | 'calendar' | 'timeline' | 'gantt' | 'map' | …>; data?: object | object | object; … }>optionalBuilt-in named list views (segmented tabs) shipped with the object schema — "views" mode, dropdown userFilters allowed, no page-only tabs (ADR-0047)
searchableFieldsstring[]optionalFields the $search query matches against (ADR-0061). Canonical default for the record picker, list quick-search and global search; views may narrow it. When unset, search auto-defaults to the name/title field plus short-text fields. Entries must name a STORED column: a virtual formula field is computed on read and materializes no column, so searching it can never match and it is refused — mirror the value onto a stored text field and declare that.
enable{ trackHistory?: boolean; fieldHistory?: boolean; searchable?: boolean; apiEnabled?: boolean; … }optionalEnabled system features modules
sharingModelEnum<'private' | 'public_read' | 'public_read_write' | 'controlled_by_parent'>optionalOrg-Wide Default record visibility (OWD) for INTERNAL users. Canonical four only (legacy aliases removed, ADR-0090 D4): private (owner-only) | public_read (everyone reads, owner writes) | public_read_write (everyone reads+writes) | controlled_by_parent (derived from the master record). A CUSTOM object that omits this resolves to private at runtime (ADR-0090 D1).
sharing{ controlledByParent?: object }optionalPer-object sharing opt-ins that refine the org-wide default sharingModel declares. controlledByParent.ownerMayEdit: on a controlled_by_parent detail, the row's owner may update it with read access to the master (ADR-0055 §3 amendment). controlledByParent.writeRequiresMasterRead: anyone who reads the master may write the detail under the detail's own permissions.
defaultRowScope{ name: string; label?: string; description?: string; operation: Enum<'select' | 'insert' | 'update' | 'delete' | 'all'>; … }optionalThe object's default row scope: one row-level security policy, written like a permission set's rowLevelSecurity entry without object (the declaring object is implied; writing object is refused). The security plugin's row-policy collection, the one step every read, write and explain passes through, applies it when no permission set the caller holds carries a row policy for this object and the operation: a held policy for every object ('*') counts, while one for another operation, switched off, or outside the caller's positions does not. A policy an authored set carries for the object is used as authored, with this default not added to it; a principal whose superuser bypass skips row policies is unaffected; an object that declares none keeps the behaviour it has without the key. The default is judged like a held policy: its operation, positions and enabled decide where it applies, and a using the row-filter compiler cannot lower makes every read it governs return no rows, with one warning in the server log. os validate, os build and os lint judge this predicate as they judge a permission set's policy and report one that cannot lower; saving the object through the server does not run that check, so keep it inside the lowerable subset. Explain names an applied default as the object's own, not a permission set's.
membershipKeysRecord<string, { userField: string; valueField: string; filter?: string; label?: string; … }>optionalMembership keys this object defines, by name: each makes current_user.KEY the set of valueField values on this object's rows whose userField is the signed-in user and on which the optional filter holds, for a row-level security policy to read with in (e.g. supplier in current_user.portal_supplier_ids, declared on a supplier-contact object as portal_supplier_ids: { userField: 'user', valueField: 'supplier', filter: 'active == true' }). Declare a key on the one object whose rows define it; a key name is one request-wide name, so declaring it on two objects is refused, and the kernel's own names (id, organization_id, positions, org_user_ids, accessible_org_ids, email, queues) are refused. The set is read once per request, only when a policy reads the key, as a system read inside the caller's organization and regardless of what the caller may read on this object, so the caller needs no read on it; it holds at most 1,000 values, and a larger set, a failed read, a filter that does not compile for this object, or a key a registered membership resolver also owns makes every policy reading it match no rows. Whoever can write this object's rows can grant the key.
externalSharingModelneveroptional[REMOVED] object.externalSharingModel was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — it never had an effect: no request resolves an external principal, and the external rung of the authorization kernel (ADR-0095) admits explicitly shared rows only, never an org-wide default, so the value changed no answer for anyone. Delete the key. sharingModel is the one org-wide default; a principal reaches a row it does not own through an explicit share, and an anonymous reader through a share link (publicSharing). Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
publicSharing{ enabled?: boolean; allowedAudiences?: Enum<'public' | 'link_only' | 'signed_in' | 'email'>[]; allowedPermissions?: Enum<'view' | 'comment' | 'edit'>[]; maxExpiryDays?: integer; … }optionalPublic share-link policy (Notion/Figma-style link sharing)
actions{ name: string; label: string | Record<string, string>; description?: string | object | string | Record<string, string>; objectName?: string; … }[]optionalActions associated with this object (auto-populated from top-level actions via objectName)
protection{ lock: Enum<'none' | 'no-overlay' | 'no-delete' | 'full'>; reason: string; docsUrl?: string }optionalPackage author protection block — lock policy for this object.
_lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>optionalItem-level lock — controls overlay & delete (ADR-0010).
_lockReasonstringoptionalHuman-readable reason shown when a write is refused by _lock.
_lockSourceEnum<'artifact' | 'package' | 'env-forced'>optionalLayer that set _lock (artifact | package | env-forced).
_provenanceEnum<'package' | 'org' | 'env-forced' | 'platform'>optionalOrigin of the item (package | org | env-forced | platform).
_packageIdstringoptionalOwning package machine id.
_packageVersionstringoptionalOwning package version.
_lockDocsUrlstringoptionalOptional documentation link surfaced next to _lockReason.

Nested Shape: Object.actionLayout

PropertyTypeRequiredDescription
list{ pinned: string[]; more?: string[] }optionalThe list scope's arrangement: actions of the object placed at list, as drawn on the list page toolbar, and $import / $export as pinned buttons (not pinned, they stay in the page's own Import / Export menu). Omit to draw it as before.
record{ pinned: string[]; more?: string[] }optionalThe record scope's arrangement: actions of the object placed at record or record_page, as drawn in the record header (record page, side preview, a phone's bottom bar). The same order leads the actions a grid row already offers, adding none: the row's ⋮ menu, its right-click menu and, on a list page, the selection bar's actions for one selected record (pinned names first, then more names, then the rest as before). The selection bar's buttons, at most three, are the first of that order; a row's own inline button does not change. Omit to draw each as before.

Nested Shape: Object.userActions

PropertyTypeRequiredDescription
createboolean | { enabled?: boolean; visibleWhen?: string | object; disabledWhen?: string | object }optionalShow generic "New" button. Boolean, or an object adding visibleWhen/disabledWhen CEL predicates evaluated once per toolbar against the record in scope (the host record on a related list).
importboolean | { enabled?: boolean; visibleWhen?: string | object; disabledWhen?: string | object }optionalShow CSV import wizard entry. Boolean, or an object adding visibleWhen/disabledWhen CEL predicates evaluated once per toolbar against the record in scope (the host record on a related list).
editboolean | { enabled?: boolean; visibleWhen?: string | object; disabledWhen?: string | object }optionalAllow inline / form edit of existing rows. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates.
deleteboolean | { enabled?: boolean; visibleWhen?: string | object; disabledWhen?: string | object }optionalShow row-level delete + bulk delete. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates.
exportCsvbooleanoptionalShow the Export entry that downloads this object's data as CSV, XLSX or JSON: the grid's Export menu and its table CSV button, the list view's Export, and a dataset report's Export over this object; false hides it. A view's export of the picture it draws (the Gantt chart's PNG / PDF) is not covered. Omitted: shown, in every managedBy bucket. It hides the entry and refuses no export request: who may export is the permission set's allowExport.
transferboolean | { enabled?: boolean; visibleWhen?: string | object; disabledWhen?: string | object }optionalOffer the Change Owner action (single and bulk) on records of this object. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates. Omitted: on, except off on a controlled_by_parent detail. Offered only where the platform injects a reassignable owner_id that is provable and not declared readonly (ownership user or omitted, no managedBy, not a sys_ object; an external object declares owner_id or maps a remote column onto it); enabled: true elsewhere is refused. On those objects it also decides whether the offboarding hand-over of a user's assigned work moves owner_id: off, those records are counted as held and keep their owner (the hand-over reads only on or off, not the predicates). An owner_id the platform does not provide is handed over like any other user field. Gates the action and the hand-over's owner_id, not a plain owner_id write. Resolved by resolveUserActionTransfer.

Nested Shape: Object.systemFields

PropertyTypeRequiredDescription
tenantbooleanoptionalInject the organization_id column. Default true (the column is always provisioned; the multi-tenant flag governs only its index).
auditbooleanoptionalInject the audit columns (created_at/created_by/updated_at/updated_by). Default true.

Nested Shape: Object.external

PropertyTypeRequiredDescription
remoteNamestringoptionalRemote table/view name. Defaults to object.name.
remoteSchemastringoptionalRemote schema/database qualifier.
writablebooleanoptional (default: false)Per-object write opt-in (also requires datasource.external.allowWrites).
columnMapRecord<string, string>optionalRemote column name → local field name.
introspectedAtstringoptionalSet by os datasource introspect; informational.
ignoreColumnsstring[]optionalRemote columns to skip during validation (dev convenience).

Nested Shape: Object.fields[string]

PropertyTypeRequiredDescription
namestringoptionalMachine name (snake_case)
labelstringoptionalHuman readable label
typeEnum<'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'secret' | …>✅Field Data Type
descriptionstringoptionalTooltip/Help text
formatstringoptionalFree-form string whose meaning depends on the field type and on the reader. The spec declares NO vocabulary for it and checks nothing but that it is a string, so any string parses on any field type. On an autonumber field it is the record-number PATTERN — the shorthand that predates autonumberFormat, which wins when both are present: format: 'INV-{0000}' mints INV-0001 on both the query engine and the SQL driver, while a value carrying no {...} token is emitted as literal text with the bare counter appended (format: 'email' mints email1). Prefer autonumberFormat on a new field. On any other field type the server does not act on it: it picks no column type, coerces no value and runs no check from it. The Studio UI reads it as a display hint, in words and with defaults that its renderers own and declare. For example, the date and datetime cells read it as a display STYLE, and on a plain-text field the shared cell-renderer resolver reads a small set of words that promote the cell to a richer renderer, such as a link; each of those falls back silently to a default rendering when it does not recognise the word. To constrain a VALUE, use the field type (the write-time record validator's built-in email, url and phone checks key on type, never on this key) or a format validation rule, whose own format key is the closed set email | url | phone | json.
requiredbooleanoptional (default: false)Write-time contract (ADR-0113): an insert must provide a non-null value, and an update may not null it out. With the field's own visibleWhen it is required WHEN SHOWN: a write whose record the predicate hides does not need it, a write that reveals the field empty is refused, and a predicate the server cannot evaluate counts as shown. On a multi-value lookup (multiple: true) required means NON-EMPTY array — an emptied required set fails validation loudly; [] does not satisfy it. NOT a column constraint — the physical NOT NULL is a separate explicit opt-in (storage.notNull), so tightening this on a deployed object is safe: existing null rows stay readable, and editable as long as the write does not touch this field.
storage{ notNull?: boolean }optionalPhysical storage constraints (ADR-0113). Owns the DDL the write contract deliberately does not imply. Absent = no storage-level constraint requested.
searchablebooleanoptional (default: false)Search this field when its object declares no searchableFields. The set search scans, and the set a $searchFields override may name, is then the type-based default (the text-like and select columns) plus every field marked searchable: true, of any type except secret, password and vector, which stay excluded (a virtual formula field has no stored column, so it is never scanned either). false, the default, does not remove a field the type-based default already scans; to choose the set, declare searchableFields. When the object declares searchableFields, that list is the whole search set and this flag is not read (ADR-0061).
multiplebooleanoptional (default: false)Allow multiple values (Stores as Array/JSON). Declarable ONLY on the multi-capable types — select, lookup, user, file, image — and redundantly on the inherently-multi option types (multiselect, checkboxes, tags); multiple: true on any other type, radio included, is REFUSED at parse. A cleared optional multi-value field is stored as null, the same as one never set: an empty list [] or an empty string written to it stores null, and the rule binds every writer (cascade repair, form clears, API writes). Read null and [] alike as empty, as the is_empty filter ($empty) does, since a row stored before this rule can still hold []. On a required multi-value field the empty list is refused: required means a non-empty list.
uniqueboolean | 'global' | 'organization'optionalUnique constraint and its scope (ADR-0120). 'organization' = one holder per organization (NULL-safe composite with the organization key part on organization-scoped objects) — prefer this explicit spelling in new code; true = same per-organization scope (positional synonym, stays valid); 'global' = one holder across the whole installation. 'tenant'/'org' are rejected — the word is 'organization'. Omitted ⇒ false, EXCEPT on an autonumber field, where omitted ⇒ 'organization' (an auto-number is a business identifier, so the platform makes it unique per organization by default — the same tenant-composite shape an explicit unique: true produces). To opt an autonumber field out, write unique: false explicitly — legitimate only for a display-only sequence that is not used to identify the record; the platform's duplicate scan (os migrate duplicates) still treats every autonumber field as an identifier.
defaultValueanyoptionalDefault applied on INSERT when the field is omitted or null ('' is a real value, not absence). Three legal shapes, discriminated in the engine's own order: a CEL Expression envelope { dialect: 'cel', source: 'today()' } (accepted structurally; result type is a runtime concern); a runtime TOKEN — NOW() on datetime/date/time only, current_user on user or lookup with reference: 'sys_user' only, neither on a multi-value field; or a LITERAL, which must satisfy this field's own stored value contract (ADR-0104 D1 valueSchemaFor). Anything else is refused at parse time with a prescriptive message.
maxLengthintegeroptionalMax character length (positive integer). Only authorable on types that store a bounded string: text, textarea, email, url, phone, password, markdown, html, richtext, code, signature, qrcode. Checked on the WRITTEN value only (the min/max transition-gate class): a stored value longer than a bound declared later is never re-read and survives unrelated edits — only a write carrying an over-long value is refused.
minLengthintegeroptionalMin character length (positive integer; minLength: 0 is refused — express "no minimum" by omitting the key). Only authorable on types that store a bounded string: text, textarea, email, url, phone, password, markdown, html, richtext, code, signature, qrcode. Checked on the WRITTEN value only (the min/max transition-gate class): a stored value shorter than a bound declared later is never re-read and survives unrelated edits — only a write carrying a too-short value is refused.
valueDomainEnum<'iana_time_zone' | 'iso_4217_currency' | 'iso_3166_alpha2'>optionalStandard value domain the WRITTEN value must be a member of: iana_time_zone (an IANA/tzdb zone identifier such as UTC, Asia/Kolkata, Europe/Kyiv — membership is the Intl.DateTimeFormat probe, never the Intl.supportedValuesOf enumeration, which omits UTC), iso_4217_currency (an ISO 4217 alphabetic currency code, uppercase, e.g. CHF) or iso_3166_alpha2 (an ISO 3166-1 alpha-2 country code, uppercase, e.g. CH). The same closed vocabulary and the same membership predicate as a settings specifier's valueDomain. Only authorable on text — the one type whose stored value is a single plain string naming the member. Checked on the WRITTEN value only (the min/max/maxLength transition-gate class): a stored value outside a domain declared later is never re-read and survives unrelated edits — only a write carrying a non-member is refused, with the field error code value_domain. Reach for it precisely where a pattern cannot help: ^[A-Z]{2}$ admits ZZ, and Mars/Olympus is a shape-valid zone that does not exist.
rowsintegeroptionalHeight of the INLINE multiline editor, in text rows (positive integer — the HTML textarea rows attribute; fullscreen/dialog editor surfaces size themselves and ignore it). Only authorable on multiline editor types: textarea, markdown, html, richtext. Omit it for the widget default height.
precisionintegeroptionalTotal digits (non-negative integer) — the p of a DECIMAL(p, s): the digits of the value, integer and fraction together, counted at the field's decimal places, so precision: 5, scale: 2 holds up to 999.99 and refuses 1234.5 (1234.50 is 6 digits). Enforced on writes of number, currency, percent, rating and slider fields: a value that needs more digits is refused with field code max_precision, never rounded. Counted on the STORED value: at the declared scale when one applies, else at the value's own decimal places (leading zeros never count) — so on a currency field, where scale is refused, an amount's written decimals count toward the total; a fraction-stored percent is counted two places further right (scale + 2, or 2 with no scale), which makes the count that of the percentage-point value as displayed. Not decimal places (that is scale; a currency's are its CLDR fraction digits) and not a column size: every numeric column keeps the platform's fixed exact decimal whatever this declares. Not read on any other field type.
scaleintegeroptionalDecimal places (integer 0-100). Applies to number, percent, rating and slider fields, where it is enforced on writes, and to a formula field, whose computed result is rounded to it — a formula whose returnType is percent counts the places of its displayed percentage, as a percent field does, so a fraction result is rounded to scale + 2 places. REFUSED on a currency field — delete it there: a currency amount's decimal places are its currency's, so the currency's CLDR fraction digits decide how the amount displays, and a currency write's decimal places stay unconstrained. OMITTED on a percent field ⇒ 0 decimal places, so a stored 0.25 reads 25% on every face; omitted on any OTHER numeric type declares NO fixed width — the value keeps its natural precision, and a DECLARED scale: 0 (a year, a fiscal period, an ordinal) stays distinguishable from having declared nothing, so nothing is defaulted there. Consumers resolve the effective width by calling resolveFieldScale from @objectstack/spec/data, the single source for an absent scale: a renderer that spells its own fallback is a width no other face can see, and that is how one stored 0.25 came to read 25% on the read-only cell and 25.00% in the edit widget. On a percent field this is the number of decimal places of the PERCENTAGE-POINT value as displayed and entered — scale: 2 means 12.34% — and the STORED precision derives from the field's storage scale rather than being declared again: a fraction-stored percent (no max, or a max at or below 1) stores 12.34% as 0.1234 and is allowed scale + 2 decimal places at the write seam, while a whole-percent field (max above 1) stores the displayed number itself and is allowed exactly scale. number, rating and slider are allowed exactly scale. The upper bound is the platform's, not a policy: renderers turn scale into fraction digits through toFixed and Intl.NumberFormat's maximumFractionDigits, both of which throw a RangeError above 100 — so a larger declaration is unrenderable by any conforming consumer.
minnumberoptionalMinimum value. Checked on the WRITTEN value only — the same transition-gate class as requiredWhen: an UPDATE validates just the fields the payload carries, so a stored value below a bound declared later is never re-read and survives unrelated edits; only a write that carries an out-of-bound value is refused, and a repairing write is accepted. For an invariant re-checked on every write, declare a validations[] script rule instead.
maxnumberoptionalMaximum value. Checked on the WRITTEN value only — the same transition-gate class as min: a stored value above a bound declared later is never re-read and survives unrelated edits; only a write that carries an out-of-bound value is refused. For an invariant re-checked on every write, declare a validations[] script rule instead.
useGroupingbooleanoptionalDigit-grouping presentation hint for number fields — maps to Intl.NumberFormat's useGrouping. Absent = renderer decides (interim heuristic today, locale default eventually); false = author opts out of grouping (e.g. a year or other ordinal/identifier integer); true = author pins grouping on.
percentDisplayEnum<'bar' | 'plain'>optionalHow a percent field, or a formula whose returnType is percent, is displayed read-only (list cells, record page). Absent = the renderer default, a progress bar beside the percentage; bar = pin the progress bar; plain = the percentage as text alone, with no bar, for a rate or a probability rather than progress. Display only: the stored value, its validation and its decimal places (scale) are unchanged.
acceptstring[]optionalPermitted upload types for media fields, as MIME types or extensions (e.g. ["image/*", ".pdf"]). Offered to the file picker AND enforced on write.
maxSizeintegeroptionalMaximum permitted file size in BYTES for media fields. Enforced on write against the stored file size, not just checked in the browser.
options{ label: string; value: string; description?: string; color?: string; … }[]optionalStatic options for the option types. A select / radio field needs a non-empty list here or a picklist — with neither (or options: []) it is refused at parse.
pickliststringoptionalName of a shared picklist whose options this field offers — instead of options, never with it. Option types only (select, radio, multiselect, checkboxes, tags). A select / radio declares this or a non-empty options; with neither it is refused at parse.
referencestringoptionalTarget object name (snake_case) for lookup/master_detail fields. Required for relationship types. Used by $expand to resolve foreign key IDs into full objects. Never a stored-metadata table (sys_metadata, sys_metadata_history): their rows are served only through the metadata API, so the engine never hydrates a reference into one, and os validate, os build and the object save door refuse it. On a tree field it is optional and, if given, must be the declaring object's own name — the object schema refuses any other target, and writes the own name when it is left out.
referenceViastringoptionalDeclares this text field as the id half of a polymorphic pointer pair (ADR-0052 §5 ActivityPointer): the value is a record id of the object named by the SIBLING FIELD this key names — e.g. record_id with referenceVia: 'object_name'. The sibling must be a declared field on the same object holding an object machine name. Text fields only; mutually exclusive with reference (a static and a per-record target contradict). Enforced today at seed load: the value resolves as a natural key against the object the sibling column names, and an unresolvable pointer is refused loudly instead of stored verbatim. Adds no referential integrity or $expand behavior.
referenceDeletedWhen{ field: string; value: string }optionalMarks the record a referenceVia pointer names as PLATFORM-DELETED on rows where a sibling select field holds one declared option — e.g. record_id with { field: 'cancel_reason', value: 'record_deleted' }. A renderer then draws a tombstone from that option's own label, reads nothing and links nothing. Valid only beside referenceVia; field must be a single-value select on the same object declaring inline options, and value one of its option values — any other shape is refused at parse.
referenceNameVisiblebooleanoptionalDeclared name exposure (lookup and user fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's nameField, else its displayNameField, else the derived title field) and id even when that principal cannot read the referenced record. Served on $expand: a target the reader is refused (the object's read gate or its row scope) answers { id, name, readRefused: true } (ReferenceNameOnlyValueSchema), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: $expand on this field returns the same name and id only, the field's displayField does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the Record # floor with the id when the reader may not read that field, it declares a maskingRule, it is a formula reading through another reference, an explicit nameField (or its displayNameField alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type.
mailAssociationbooleanoptionalInbound mail association (email fields only): TRUE marks this field as identifying a correspondent. When a mailbox service ingests a message, it associates the message with every record of this object whose value in this field equals one of the message's participant addresses (From, Sender, Reply-To, To and Cc, plus those of a forwarded message it carries; ASCII case-insensitive; the receiving mailbox's own addresses excluded; only within the mailbox's organization). A message no record matches waits in the mailbox's unassociated pool. Refused on any other type. Takes effect only where a mailbox service is composed.
deleteBehaviorEnum<'set_null' | 'cascade' | 'restrict'>optional (default: "set_null")What happens if referenced record is deleted
transferBehaviorEnum<'none' | 'cascade'>optional (default: "none")What a Change Owner of the referenced (parent) record does to this object's records that point at it. 'none' (default): they keep their owner. 'cascade': the Change Owner dialog offers this relationship, and when it is ticked the records here that point at the parent and are owned by the parent's previous owner move to the new owner too, each as the caller's own update (a row the caller may not transfer is reported, never skipped; one call moves at most 500 rows). Only on lookup and master_detail fields, not on a reference to a sys_ object, and cascade only on an object that offers Change Owner itself (eligible, not controlled_by_parent, userActions.transfer not off).
inlineEditEnum<'grid' | 'form'>optionalHow the parent's form edits these child records inline (atomic master-detail) when a field group of the parent names this child (fieldGroups[].relatedList); a child no group names is not inlined, whatever this says. Absent = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. A boolean is refused: true and false both read as absent.
inlineTitlestringoptionalTitle for the inline master-detail grid
inlineColumns{ name: string; label?: string; type?: Enum<'text' | 'number' | 'currency' | 'date' | 'datetime' | 'time' | 'select' | …>; width?: number; … }[]optionalExplicit columns for the inline grid (derived from the child object when omitted). Each entry is a strict, name-keyed column ({ name, label?, type?, … } — objectui GridColumn); identity-only entries ({ name }) hydrate everything else from the child object's fields. Unknown keys and the retired field spelling are refused at parse.
inlineAmountFieldstringoptionalNumeric child field summed for the inline grid total
relatedListboolean | 'primary'optionalShow this child collection as a related list on the parent's detail page (the record-page side; inlineEdit picks the form factor on the form side). true = an auxiliary panel on the record page; absent = an auxiliary panel, except that a master_detail field becomes a body table when a field group of the parent names it (fieldGroups[].relatedList); false = hidden: the child object is not shown on the parent record page; 'primary' = a body table: part of the record's main content, shown as a full-width table in the record's detail body. Write true on a master_detail field to keep it an auxiliary panel even from a field group. 'primary' places a list and does not order it: the parent object's relatedLists orders the full-width tables and the auxiliary panels. The page layout is defined by ADR-0085. A derived related list (relatedList: 'primary') inherits its row order from the child object's DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=<field> / sort=-<field>, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order.
relatedListTitlestringoptionalTitle for the detail-page related list
relatedListColumnsstring[]optionalExplicit columns for the detail-page related list, as child field names (e.g. ['name', 'status']); derived from the child object (highlightFields → field walk) when omitted. Strings only — labels, cell types and formatting always derive from the child object's field definitions; column objects are refused at parse.
relatedListFilteranyoptionalDeclarative default filter for the detail-page related list: AND-composed with the parent-relationship condition { [referenceField]: parentId } — an authored constraint, never a user-editable suggestion. The related-list tab badge count honors the same composed filter, so counts match the visible rows. Canonical Query-DSL FilterCondition (the same dialect as a query where), e.g. { status: { $ne: 'deleted' } } to hide soft-deleted children.
displayFieldstringoptionalField shown as each candidate's label in the picker/popover (defaults to the referenced object's name/title).
descriptionFieldstringoptionalSecondary field shown under the label in the quick-select popover.
lookupColumns(string | { field: string; label?: string; width?: string; type?: string })[]optionalExplicit columns for the record-picker table; auto-derived from the referenced object when omitted.
lookupPageSizeintegeroptionalRows per page in the record-picker dialog (default 10).
lookupFilters{ field: string; operator: Enum<'eq' | 'ne' | 'gt' | 'lt' | 'gte' | 'lte' | 'contains' | 'in' | 'notIn'>; value: any; orEmpty?: boolean }[]optionalBase filters restricting which records are selectable (e.g. only active). The structured, picker-honoured lookup filter. Each entry compares a column of the CANDIDATE record (field, on the referenced object) with value. A value may read the record being edited as { $record: "field" } or { $record: "lookup_field.field" } (at most one lookup hop). In a record form, whatever its layout, the picker sends that value in its place and re-queries whenever a referenced field changes; every other picker host leaves every { $record } entry out: inline edit on a record page, a record page's header or related list, an action's parameter dialog, and a picker with no single record being edited (a bulk action over selected rows). The referenced fields are implied: do not list them in dependsOn, which also scopes the candidate query by equality (dependsOn: ['quote_date'] adds quote_date = … to the query over the referenced object). While the value is empty or cannot be read (the hop's row or field does not come back, no object is named for the hop, or the host has no single-row reader), the entry is left out. A { $record } is the whole value, never a member of an in / notIn list. orEmpty: true also matches a candidate whose column is null. A { $record } that reaches a server unresolved is refused (INVALID_FILTER), never read as null: by name, naming the field and the path, when it arrives as the eq shorthand on a column other than a date, datetime or time column; any other operator, and eq on a date, datetime or time column, is refused earlier, in generic words. The picker narrows the choice only: a rule the save must enforce belongs on the server too.
dependsOn(string | { field: string; param?: string })[]optionalDeclares that this field's available values depend on the value of other field(s) on the same record — the form gates the field until they are set and re-evaluates as they change. For lookup/master_detail it scopes the candidate query (string = same local/remote key; {field,param} when the remote filter key differs — the {field,param} form is lookup-only). For select/multiselect/radio the actual per-option rule lives in each option's visibleWhen; list the referenced fields here (string form) so the option list gates and refreshes with the parent.
allowCreatebooleanoptionalAllow inline quick-create from the record picker: when no match exists the user can create a record from the typed text (optimistic dataSource.create with the display field). Best for simple objects whose only required field is the display field.
lookupAutofill{ target: string; source: string; overwrite?: boolean }[]optionalFields a pick in this lookup fills on the record being edited: each { target, source } pair copies the picked record's source field (a field of the reference object) into this object's target field — e.g. [{ target: 'unit_price', source: 'list_price' }] on a quote line's product lookup. Read wherever this field is picked: the record form, and a line-item grid column over it. OVERWRITE RULE — the default, overwrite absent or false: a pick never replaces a value somebody wrote. The target is filled only while it is empty or still holds the value an earlier pick filled in; a value the user typed, or one the record already stored, stays. Only a pair that declares overwrite: true replaces the target on every pick, whatever it holds. CURRENCY RULE: an amount of money (a currency field, or a formula returning currency) is copied only into a target in the same currency, both in the home currency or both naming the same ISO 4217 code (a fixed code, or the code the record or its master_detail parent holds). Otherwise the target is left as it is and the form says why, naming both currencies and the picked amount; nothing is converted. A number carries no currency and copies as before. Client-side only: it fills the form, and nothing on the write path reads it — the filled value is saved as an ordinary write, and an import or API write that sets the lookup fills nothing. Only on a single-value lookup / master_detail. Each target is a field of this object other than this one, written by its author — not readonly, not computed (formula, summary, autonumber, or an expression) — and named once. Each source is a field of the referenced object that the record carries (not internal) and whose value the target can hold; os validate / os build judge the source. In a line-item grid the column key autofill still governs only the same-named copy, under the same currency rule; a declared pair takes its target out of that copy.
expressionstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalCEL expression the field's value is computed from, e.g. Frecord.amount * 0.1. On a formula field: computed on read, no column. On any other (stored) field: computed by the engine from the row the write stores and stored, so a client-sent value never stands and a summary can roll the column up — on every insert and every update by id (the stored row merged with the patch), and on a predicate update only when the patch moves an input (one value for every matched row, else the update is refused).
returnTypeEnum<'number' | 'text' | 'boolean' | 'date' | 'currency' | 'percent'>optionalValue type of a formula field (number/text/boolean/date/currency/percent). Authoring stamps number, text, boolean or date from the expression's inferred type and leaves it absent when none is proven; percent is declared by the author, and a verdict that proves no other type (number, or none) keeps it, as does a money verdict: a declared percent is never re-stamped currency. Otherwise currency is stamped when the expression provably computes money, and withdrawn for number (its currencyConfig dropped) when an edit leaves it a plain number; an unproven verdict keeps it. currency: an amount of money, in the currency the formula's own currencyConfig declares, as a currency field declares it (no currencyConfig: dynamic, the tenant default currency). percent: a ratio, read and displayed as a percent field reads its stored value — a fraction (0.25 shows 25%, so the expression divides and does not multiply by 100) unless the formula declares a max above 1, then percentage points; its scale is the decimal places of the displayed percentage (absent: 0), and its percentDisplay picks the bar or the plain face.
summaryOperations{ object: string; field?: string; function: Enum<'count' | 'sum' | 'min' | 'max' | 'avg'>; relationshipField?: string; … }optionalRoll-up summary definition. The engine recomputes the value when child records are inserted/updated/deleted.
languagestringoptionalProgramming language for syntax highlighting (e.g., javascript, python, sql)
stepnumberoptionalStep increment for slider (default: 1)
currencyConfig{ currencyMode?: Enum<'dynamic' | 'fixed' | 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }optionalWhich currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (currencyMode: 'record' naming this object's own code field). A summary that rolls up an amount in the home currency (a child currency field in dynamic mode, a stored home amount included) declares currencyMode: 'dynamic', with no defaultCurrency, and shows in the organization's home currency. A summary may otherwise declare only currencyMode: 'fixed', when every amount it reads is in that one currency; a count summary, any other dynamic summary and any other record roll-up are refused, by defineStack and by a single-object save or publish on a running server alike. Absent: dynamic mode, and no currency on a summary.
unitConfig{ unitMode: 'fixed'; unit: Enum<'KGM' | 'GRM' | 'MGM' | 'TNE' | 'LBR' | 'ONZ' | 'MTR' | 'MMT' | 'CMT' | 'KMT' | …> } | { unitMode: 'record'; unitField: string; unitDimension?: Enum<'mass' | 'length' | 'area' | 'volume' | 'time' | 'count' | 'package'> } | { unitMode: 'code'; unitDimension?: Enum<'mass' | 'length' | 'area' | 'volume' | 'time' | 'count' | 'package'> }optionalWhich unit a quantity is in, or that a text field holds a unit code (units of measure). On a number field: { unitMode: 'fixed', unit }, one standard UN/ECE Recommendation 20 code checked at build (e.g. KGM, MTR, H87), or { unitMode: 'record', unitField, unitDimension? }, where each record names its own unit in the sibling text field unitField names. On a text field that holds a unit code with no quantity pointing at it: { unitMode: 'code', unitDimension? }. The quantity stays a bare number; a record stores the unit CODE in exact uppercase, never an id. At write, a code must be a standard code or one of the organization's own non-retired units (sys_unit), of the restricted dimension when one is declared, and a quantity beside a blank code is refused. Refused on every other field type, formula and summary included. Absent: the number has no unit.
dimensionsintegeroptionalVector dimensionality (e.g., 1536 for OpenAI embeddings)
trackHistorybooleanoptionalOpt a media or structured-JSON field into old → new values on the record activity timeline (ADR-0052 §5b). Every other field shows them already, so true changes nothing there. false and absent read the same: values show. false is not an off switch; turn a field's values off with fieldHistory: false.
fieldHistorybooleanoptionalThis field's old → new values on the record activity timeline. Absent: they show (a media or structured-JSON type only with true). false: off, the change names the field's label only. true: on, a media or JSON type included. Off whatever this says when the object sets enable.fieldHistory: false; a credential field never shows values. Who reads a value is this field's read rule.
groupstringoptionalOlder spelling of field-group membership, still read: the key of one of the object's fieldGroups (e.g. "contact_info"); the field joins that group in field declaration order. New metadata lists members on the group instead (fieldGroups[].fields), which also sets their order. A field a group lists may not name a different group here; a field naming a group whose fields list leaves it out follows the listed ones.
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is shown only when TRUE (else hidden). e.g. Precord.type == 'invoice'. On a required field the server reads it on every write: where it is not TRUE (FALSE, or null such as an unset boolean) the field is not required for that write, and a predicate the server cannot evaluate counts as shown, so the field stays required. Reads the record's own columns, with formula fields computed over the record being written, as the form computes them over the record being edited; a read THROUGH a reference field, or a formula that reads through one, calls label(), calls can() on a write that picks no permission-gated option, or reads current_user on a system write with no user, cannot be evaluated there.
readonlyWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is read-only when TRUE. e.g. Precord.status == 'paid'. Reads the bound record's OWN columns: the field level never reads a related record, so a read THROUGH a reference field (record.account.tier) faults on every row and refuses every update that writes the field — objectstack validate refuses it. Put such a check in a validations[] script rule, whose condition is read one hop through a reference.
uiReadonlyWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — the field is read-only BY HAND on an existing record while TRUE: every console surface that honours uiReadonly (the edit dialog, record-page inline edit and the stage path, the highlight-strip chip, grid inline edit and multi-row save, kanban column drag, calendar drag, the Gantt's drag, resize, progress handle, dependency link and in-place edit, the timesheet cell, the line-item grid) does not let a person edit it, while REST, import, action and flow writes keep it, judged by the object's validations — see uiReadonly. A create is not judged: the create dialog offers the field whatever the predicate says. A predicate the console cannot evaluate locks the field, and the edit dialog refuses to submit until it is fixed. Same scope as readonlyWhen: the bound record's OWN columns, e.g. Precord.status != 'draft'. Allowed beside readonlyWhen, which is the stricter lock: where readonlyWhen is TRUE non-system writes are dropped as well. The engine never reads this key.
requiredWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is required when TRUE. A TRANSITION GATE, not an invariant: the write is refused only when the merged record violates the requirement AND the pre-write record complied — so the write that flips the predicate TRUE, an INSERT born inside the gate, and a write that clears the cell are all refused, while a row that was already missing the value keeps passing unrelated edits and state moves that stay inside the gate (ADR-0113 non-regression: adding the rule to a deployed object never bricks existing rows). Need an invariant every write must satisfy instead ('X may never exceed Y') — declare a validations[] script rule, which re-checks the merged record with no exemption. Enforced by evaluateValidationRules. Reads the bound record's OWN columns: the field level never reads a related record, so a read THROUGH a reference field (record.account.tier) faults on every row and refuses every write that reaches it — objectstack validate refuses it; put such a check in a validations[] script rule, whose condition is read one hop through a reference. The only slot; the conditionalRequired alias was removed in protocol 17.
dueLikebooleanoptionalDeadline semantic (date / datetime only): TRUE declares this date a deadline, so a renderer may show relative overdue wording ("Overdue 3d") and an overdue colour once it has passed. Absent or FALSE: not a deadline — nothing is inferred from the field's name. Pair with settledWhen to say when the deadline is settled for a record. Refused on any other type. Display only: nothing on the write path reads it.
settledWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — the deadline is SETTLED while TRUE: no overdue wording or colour applies to this record, e.g. Precord.status == 'done'. Evaluated per record like visibleWhen, reading the record's own columns as record. Requires dueLike: true on a date / datetime field; refused otherwise. Display only: nothing on the write path reads it.
conditionalFormatting{ condition: string | object; style: Record<string, string> }[]optionalCell formatting rules for this field — [{ condition, style }], the same rule a list view's conditionalFormatting declares. In order, the first rule whose CEL condition holds applies its CSS style map to THIS FIELD'S CELL wherever the field renders (grid, kanban card, record page, related list, report cell); a list view's row rules style the row, and both may apply. The condition reads value (this field's value on the record) and record (the row) and no other root, e.g. Pvalue < 0 with style: { color: '#b91c1c' }; objectstack validate refuses a condition that does not parse or reads any other root. For presentation only — a semantic state such as a deadline's overdue is declared with dueLike / settledWhen instead. Display only: nothing on the write path reads it.
widgetstringoptionalForm widget override — names a registered field component (resolved as field:<widget>) to render this field instead of the type default. Degrades to the type renderer when unregistered. e.g. "object-ref", "filter-condition", "recipient-picker".
hiddenbooleanoptional (default: false)Hidden from default UI
showOnCreatebooleanoptionalAsk for this field when a record is created. Absent or true: the field is on every create surface (the create dialog, the full-page create, an action-opened create). false: no create surface shows it; editing, the record page and lists still do, so a value is filled in after the record exists. Refused on a required: true field, with or without a defaultValue: a required field is always asked for on create. Keep the field on create, or drop required. A requiredWhen field is accepted, and its create is still refused when the predicate holds and the value is empty.
internalbooleanoptionalNever return this field's value on the generic data path — the engine OMITS the key from find/findOne results, the 201 create body and the by-id update body, on the default projection AND when a client names the field in ?select=. Storage, filtering and indexing are untouched, so a server-side verifier can still match on the column and a purpose-built mint route can still return the value once at creation. The read protection for ADR-0100's third credential channel (auth-subsystem one-way hashes on text columns). Omission, not masking: a mask signals 'a value is set', which carries no information on a required column.
readonlybooleanoptional (default: false)Read-only — never editable in forms, AND server-enforced on BOTH write paths: a non-system write to this field is silently dropped from the payload on UPDATE and on INSERT (a create can no longer directly seed e.g. approval_status: "approved"), symmetric with readonlyWhen. A stripped INSERT field still falls back to its defaultValue. Exempt from the strip on BOTH paths: isSystem writes (seed replay, migration). Exempt on the UPDATE path ONLY: an opt-in "historical" import (preserveAudit) — which admits a whitelist (the audit/timestamp family plus author-declared business readonly fields). On INSERT the exemption does NOT apply: a non-system create that requests preserveAudit still has its readonly fields stripped, and is warned loudly that the exemption is UPDATE-only — replaying archival readonly facts on create requires a system context. A normal (non-system) import is NOT system-context and still strips.
uiReadonlybooleanoptionalRead-only BY HAND: the console's editing surfaces do not let a person edit the field — the create and edit dialogs (it is left off them and out of their payload), record-page inline edit and the stage path, the highlight-strip chip, grid inline edit and multi-row save, kanban column drag, calendar drag and quick-create, the Gantt's drag, resize, progress handle, dependency link and in-place edit, the timesheet cell, the command palette's create-as prefill and the line-item grid — every console surface; the in-app assistant acting for a person does not honour it yet. Every other write KEEPS it — REST create/update, import, declarative and script actions and flows write it, judged by the object's validations exactly as an ordinary field (a state_machine rule included). For a field that changes only through actions, e.g. an order status moved by Confirm / Cancel buttons. A console create leaves the field out and the server applies its defaultValue, so a required field needs a defaultValue: without one every create from the console fails. An API, import or action insert may set it, judged by validations (a state machine's initialStates). Absent = false. Refused beside readonly: true, which already keeps every client out: readonly when no client may write the field, uiReadonly when only people at the console may not. Not a security boundary — field permissions are. The conditional twin is uiReadonlyWhen.
requiredPermissionsstring[]optional[ADR-0066 D3] Capabilities required to read/edit this field (mask on read, deny on write; AND-gate).
maskingRuleEnum<'phone' | 'id_card' | 'bank_account' | 'email' | 'name'> | { keepHead: integer; keepTail: integer }optionalPartial masking rule enforced by the runtime FieldMasker (single channel — API, UI, export and AI context all see the same masked value). A named preset ('phone' 138**5678, 'id_card' keep 6+4, 'bank_account' keep last 4, 'email' j*@example.com, 'name' keep first char) or { keepHead, keepTail }. Masked for every non-system caller unless the field's requiredPermissions are ALL held (that evaluation is the unmask gate); a permission set marking the field non-readable still deletes it entirely. Deterministic, length-preserving output; masked callers cannot filter/sort/group/aggregate on the field.
ackPlaintextMaskingbooleanoptional[ADR-0100] Affirm a generic password field's plaintext-at-rest / masked-on-read contract is intended, silencing the author-time warning. No effect on non-password fields.
systembooleanoptionalAuto-injected system/audit field (e.g. created_at, updated_by, organization_id). Tools that surface system fields separately from author-declared business fields should branch on this flag.
sortablebooleanoptional (default: true)Whether field is sortable in list views
inlineHelpTextstringoptionalHelp text displayed below the field in forms
placeholderstringoptionalPlaceholder text rendered inside the empty input (the HTML placeholder attribute); disappears once a value is entered. Distinct from inlineHelpText (always-visible help rendered beside/under the input) and description (tooltip/developer documentation).
autonumberFormatstringoptional (default: "{0000}")Auto-number format: literal text + {0000} counter, {YYYY}/{MM}/{DD}/{YYYYMMDD} date tokens (business tz), and {field_name} interpolation. Counter resets per rendered prefix (e.g. AD{YYYYMMDD}``{0000} resets daily). Omitted on an autonumber field ⇒ the contract default {0000}, which every driver and the engine fallback read, so one field numbers alike on every backend.
externalIdbooleanoptional (default: false)Not read: no upsert, import or seed matches on this flag. A seed dataset names its match field in its own externalId; an import names it in the mapping's upsertKey.
renamedFromstring[]optionalEarlier keys of THIS field, written in the field-key grammar (lowercase snake_case), e.g. renamedFrom: ['company'] on a field now keyed account_name. On a package upgrade from a version that has one of these keys and not this one, the platform carries that column's data to this field instead of adding an empty column. A field renamed twice lists both earlier keys. Each entry once; never this field's own key; never a key another field of the same object still declares (that name is still in use); never an old key another field of the same object also claims. Read only by the schema sync and the package upgrade: no record read, write or query reads it, and the type of the old column is judged when the column is carried, not here. The schema sync (boot, os migrate apply, /marketplace/install-local) renames the old column to this key before it adds any column, and refuses before any write, naming the field, the old key and the reason, when the old key is a platform column, still a live field or claimed by two fields, when both columns or several old columns exist, when the old column would narrow under this type or this field stores no column (a formula), when an index cannot follow, when an object extension names a key its own package never added to the object (install-local), or when the driver renames no column.
_lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>optionalItem-level lock — controls overlay & delete (ADR-0010).
_lockReasonstringoptionalHuman-readable reason shown when a write is refused by _lock.
_lockSourceEnum<'artifact' | 'package' | 'env-forced'>optionalLayer that set _lock (artifact | package | env-forced).
_provenanceEnum<'package' | 'org' | 'env-forced' | 'platform'>optionalOrigin of the item (package | org | env-forced | platform).
_packageIdstringoptionalOwning package machine id.
_packageVersionstringoptionalOwning package version.
_lockDocsUrlstringoptionalOptional documentation link surfaced next to _lockReason.

Nested Shape: Object.indexes[number]

PropertyTypeRequiredDescription
namestringoptionalIndex name (auto-generated if not provided)
fieldsstring[]✅Fields included in the index
uniquefalse | 'global' | 'organization'optional (default: false)Whether the index enforces uniqueness, and at which scope (ADR-0120). 'global' = materialized over exactly fields, no organization column injected — one holder across the whole installation; 'organization' = the driver prepends the NULL-safe organization key part (COALESCE(organization_id, 'global')) at registration — one holder per organization; false/omitted = not unique. Bare true is refused (retired at protocol 18 — it was the positional spelling of 'global'): state the scope. 'tenant'/'org' are rejected — the word is 'organization'

Nested Shape: Object.fieldGroups[number]

PropertyTypeRequiredDescription
keystring✅Group machine key (snake_case). Referenced by Field.group, and by a layout section's group.
labelstring✅Group display label
fieldsstring[]optionalThe group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose group names this group, in field declaration order (the older spelling, still read). A field whose group names this group but that the list does not name follows the listed ones. Refused: a listed field whose own group names another group, a field two groups list, a repeated name, and fields on a group with relatedList. A name the object does not declare is skipped.
iconstringoptionalIcon name (Lucide/Material) for the group header
descriptionstringoptionalOptional description shown under the group header
relatedListstringoptionalPlaces a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList).
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalSection visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. Precord.type == 'invoice'
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | …>optionalDeployment feature flag gating this group, from the same set an action's requiresFeature names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's visibleWhen (AND-composed after an authored visibleWhen) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API.
collapseEnum<'none' | 'expanded' | 'collapsed'>optional (default: "none")[ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). On the synthesized (default) record page the reader can fold every titled group, so there 'none' and 'expanded' both start open and only 'collapsed' starts closed.
defaultExpandedbooleanoptional[DEPRECATED → collapse] true → 'expanded', false → 'collapsed'.
collapsiblebooleanoptional[DEPRECATED → collapse] Boolean pair with collapsed; use the collapse enum.
collapsedbooleanoptional[DEPRECATED → collapse] true → 'collapsed' (collapsible, starts closed) on its own — it needs no collapsible and outranks collapsible: false; false → 'none', or 'expanded' beside collapsible: true. Use the collapse enum.

Nested Shape: Object.tenancy

PropertyTypeRequiredDescription
enabledboolean✅Enable multi-tenancy for this object
tenantFieldstringoptionalColumn this object is tenant-scoped by. Omit it unless the tenant column genuinely is not the platform's: when undeclared the driver falls back to organization_id, the kernel-injected column the RLS predicates and tenantPolicy() also assume. A declared name is honoured only when the object really has that field — otherwise the same organization_id fallback applies. No default is materialized here on purpose.

Nested Shape: Object.access

PropertyTypeRequiredDescription
defaultEnum<'public' | 'private'>optional (default: "public")Default exposure posture: public (covered by wildcard grants) | private (needs explicit grant; exempt from wildcard RLS).

Nested Shape: Object.requiredPermissions

PropertyTypeRequiredDescription
readstring[]optionalCapabilities required to read (find/findOne/count/aggregate).
createstring[]optionalCapabilities required to create (insert).
updatestring[]optionalCapabilities required to update (update/transfer/restore).
deletestring[]optionalCapabilities required to delete (delete/purge).

Nested Shape: Object.lifecycle

PropertyTypeRequiredDescription
classEnum<'record' | 'audit' | 'telemetry' | 'transient' | 'event'>✅Persistence contract: record (business truth, permanent) | audit (compliance ledger) | telemetry (high-freq log) | transient (ephemeral state) | event (bus messages).
retention{ maxAge: string; onlyWhen?: Record<string, string | number | boolean | object | object> }optionalAge-based retention window enforced by the LifecycleService Reaper.
ttl{ field: string; expireAfter: string; onlyWhen?: Record<string, string | number | boolean | object | object> }optionalPer-row TTL auto-expiry (transient/event classes).
storage{ strategy: 'rotation'; shards: integer; unit: Enum<'day' | 'week' | 'month'> }optionalPhysical storage strategy for high-frequency telemetry (LifecycleService Rotator).
archive{ after: string; to: string; keep?: string }optionalCold-store archival (LifecycleService Archiver) — audit-class hot→cold hand-off.
seal{ valueFields: string[]; chainField?: string }optionalSeals the rows into signed, chained checkpoints (ADR-0154), so a change, insert or delete made outside the platform shows. Only class: 'audit' may declare it, and not beside a retention or ttl onlyWhen, a ttl on another field than created_at, or rotation storage. Signed expiry covers objects whose lifecycle is declared in packaged metadata: their sealed rows past their retention, ttl or archive.keep window leave only by whole checkpoints, after a signed expiry amendment names them, so the verifier reads them as expired rather than missing, and on such an object with no archive a retention override cannot shorten the declared window. On an object created at runtime the retention sweeper still deletes sealed rows at their row cutoff, which then read as missing. A tenant-scoped window is set on organization_id, so it applies to that organization's chain only where chainField is organization_id; every other chain (the chain of rows about no organization, and every chain of an object chained by another column) keeps its rows to the longest window set. The window is counted to the start of a UTC day and at most 10,000 rows leave per sweep, so a row can stay past it: a day, or longer while a backlog drains. While no sealer is running, the sweeper keeps them. A deployment with no crypto provider seals nothing and reports that at error.
reclaimbooleanoptionalRun driver space reclamation (SQLite incremental_vacuum) after sweeping this object. Default true for non-record classes.

Nested Shape: Object.activityMilestones[number]

PropertyTypeRequiredDescription
fieldstring✅Field to watch (typically a status/stage select).
valuestring✅The value the field must transition INTO to fire the milestone.
summarystring✅Activity summary template; {field} tokens interpolate the record value. e.g. "Deal won: {name}".
typestringoptionalActivity type for the emitted row — left unset, it keeps the update row's kind, "updated" (a milestone only fires on an update).

Nested Shape: Object.relatedLists[number]

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.

Nested Shape: Object.listViews[string]

PropertyTypeRequiredDescription
namestringoptionalInternal view name (lowercase snake_case)
labelstring | Record<string, string>optionalDisplay label — the default-language string, or an inline locale map ({ en, "zh-CN" }) resolved at render time
typeEnum<'grid' | 'kanban' | 'gallery' | 'calendar' | 'timeline' | 'gantt' | 'map' | …>optional (default: "grid")
data{ provider: 'object'; object: string } | { provider: 'value'; items: any[] } | { provider: 'schema'; schemaId: string; schema?: Record<string, any> }optionalData source configuration (defaults to "object" provider)
columnsstring[] | { field: string; label?: string | Record<string, string>; width?: number; align?: Enum<'left' | 'center' | 'right'>; … }[]✅Fields to display as columns — the PROJECTION of the per-view field composition columns x hiddenFields x fieldOrder: this list is the candidate set AND the baseline order; hiddenFields subtracts from it and fieldOrder orders what survives. hiddenFields and fieldOrder cannot add a field omitted here. An empty list declares no projection, so neither of them applies: which columns show is then left to the renderer (objectui's ListView grid derives the object's default columns).
filter({ field: string; operator: Enum<'equals' | 'not_equals' | 'contains' | 'not_contains' | 'icontains' | …>; value?: string | number | boolean | null | (string | number)[] } | { or: object[] })[]optionalFilter criteria (JSON Rules)
sort{ field: string; order: Enum<'asc' | 'desc'> }[]optional
searchableFieldsstring[]optionalFields enabled for search
filterableFieldsneveroptional[REMOVED] view.list.filterableFields was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — the key was declared as a shorthand for userFilters.fields (the quick-filter bar), but the one renderer that read it used it as a whitelist of the fields the Filter panel offers instead, so one key carried two meanings and drew no quick filter. Delete the key; no per-view Filter-panel whitelist replaces it. For a curated end-user filter bar, declare userFilters: { element: 'dropdown', fields: [{ field: '<field_name>' }] }. The Filter panel offers every field the user may read: field read security decides, and a field the object definition marks hidden: true is not offered. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
resizablebooleanoptionalEnable column resizing
compactToolbarbooleanoptionalCollapse Group/Color/Density/Hide-fields into a single View settings popover. On by default: omitted or true, the renderer draws this compact toolbar; false draws the wide toolbar, one button per control. The compact toolbar draws no Refresh button, so userActions.refresh governs only the wide toolbar; pull-to-refresh is unaffected by either key.
selection{ type?: Enum<'none' | 'single' | 'multiple'> }optionalRow selection configuration
navigation{ mode?: Enum<'drawer' | 'page' | 'new_window' | 'none'>; preventNavigation?: boolean; openNewTab?: boolean; size?: Enum<'auto' | 'sm' | 'md' | 'lg' | 'xl' | 'full'>; … }optionalConfiguration for item click navigation: the drawer size, and preventNavigation for a list whose rows open nothing (mode is deprecated — the record name opens the page, the hover icon the side panel)
pagination{ pageSize?: integer; pageSizeOptions?: integer[] }optionalPagination configuration
kanban{ groupByField: string; lanes?: string[]; summarizeField?: string; summary?: object | … +5 more; … }optionalKanban-board configuration — applies when the view renders as a kanban layout
calendar{ startDateField: string; endDateField?: string; titleField?: string; colorField?: string; … }optionalCalendar configuration — applies when the view renders as a calendar layout
gantt{ startDateField: string; endDateField: string; titleField: string; progressField?: string; … }optionalGantt-timeline configuration — applies when the view renders as a gantt layout
gallery{ coverField?: string; coverFit?: Enum<'cover' | 'contain'>; cardSize?: Enum<'small' | 'medium' | 'large'>; titleField?: string; … }optionalGallery/card view configuration
timeline{ startDateField: string; endDateField?: string; titleField: string; groupByField?: string; … }optionalTimeline view configuration
chart{ chartType?: Enum<'bar' | 'line' | 'pie' | 'area' | 'scatter'>; dataset: string; dimensions?: string[]; values: string[] }optionalChart binding — applies when the view renders as a chart. A type: 'chart' view must bind one: it names the ADR-0021 dataset and the measures (values) the chart plots, and there is no default binding
map{ latitudeField?: string; longitudeField?: string; locationField?: string; titleField?: string; … }optionalMap configuration — applies when the view renders as a map layout
tree{ parentField?: string; labelField?: string; fields?: string[]; defaultExpandedDepth?: integer }optionalTree/hierarchy configuration — applies when the view renders as a tree layout
timesheet{ rowFields: string[]; dateField: string; valueField: string }optionalTimesheet binding — applies when the view renders as a timesheet. A type: 'timesheet' view must bind one: the row fields, the date field and the numeric value field the weekly grid pivots and edits
pageNameneveroptional[REMOVED] view.pageName was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — it named the page a type: 'page' view was to mount, and that mount was never built: no renderer read the key, so the named page was never reached and the view drew an empty grid. Delete the key; to put a published page in front of users, give the app a navigation item — { type: 'page', pageName: '<page_name>' } under the app's navigation — which is a different key on a different surface and is the page mount that has always rendered. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
descriptionstring | Record<string, string>optionalView description for documentation/tooltips
sharing{ lockedBy?: string }optionalView sharing configuration: who locked the view configuration
requiredPermissionsstring[]optional[ADR-0066] Capabilities a user must ALL hold for this list view or dashboard to be served to them — names that permission sets grant through systemPermissions, the same list as requiredPermissions on an app, a navigation item or an action. Absent or empty: no audience gate. There is no any-of form: to serve one item to several audiences (legal OR admin), declare one capability and grant it to each of their permission sets. The server enforces it: a user who does not hold them all is not listed the item and is refused it by name; a view container's list views are pruned the same way, and so are an object's own list views for a user who may not edit the object.
rowHeightEnum<'compact' | 'short' | 'medium' | 'tall' | 'extra_tall'>optionalRow height / density setting
grouping{ fields: object[] }optionalGroup records by one or more fields — server-side: the groups and their header numbers come from an aggregate query over the whole filtered set, rows within a group are paged (see GroupingConfigSchema)
rowColor{ field: string; colors?: Record<string, string> }optionalColor rows based on field value
hiddenFieldsstring[]optionalFields to hide in this specific view — the SUBTRACTION of the per-view field composition columns x hiddenFields x fieldOrder: each name listed here is removed from the columns projection before fieldOrder orders the remainder. A name columns never projected subtracts nothing.
fieldOrderstring[]optionalExplicit field display order for this view — the ORDERING of the per-view field composition columns x hiddenFields x fieldOrder: it sorts what survives columns minus hiddenFields and never adds a field. A surviving column absent from fieldOrder sorts LAST, after every listed one, keeping its columns-relative order; a name listed here that did not survive orders nothing.
rowActionsstring[]optionalActions available for individual row items
bulkActionsstring[]optionalActions available when multiple rows are selected
bulkActionDefs{ name: string; label?: string; icon?: string; variant?: Enum<'primary' | 'secondary' | 'danger' | 'ghost' | 'outline'>; … }[]optionalRich bulk action definitions (schema-driven, executed via BulkActionDialog). Use a def for a mass data-plane mutation ('update' with a patch / 'delete') that no action expresses, or for an operation: 'custom' + execution: 'aggregate' entry that dispatches the action it NAMES once for the whole selection — the renderer injects params._selectedIds: string[] (read that on the server, not recordId) so a single call can produce one aggregate artifact (zip of QR codes, merged PDF, batch print). A rejection is one outcome for the whole selection; a run that moved some rows and refused others resolves with a BulkActionResult ({ succeeded, failed }), a non-empty failed being a legal success answer. Per-row retry is replaced by re-running the action. batchSize does not apply (the call is never chunked); set maxRecords on defs whose server work is expensive. For the PER-RECORD dispatch use bulkActions: ['<name>'] instead — the bare-string form, promoted with the action's own label, params and visible; a 'custom' def without execution: 'aggregate' has no dispatcher and is refused at parse time. Toolbar url/api actions can also interpolate the current selection via ${ctx.selection.ids} / ${ctx.selection.count}.
conditionalFormatting{ condition: string | object; style: Record<string, string> }[]optionalConditional formatting rules for list rows
inlineEditbooleanoptionalAllow inline editing of records directly in the list view
exportOptionsEnum<'csv' | 'xlsx' | 'json'>[] | { formats?: Enum<'csv' | 'xlsx' | 'json'>[]; maxRecords?: integer; includeHeaders?: boolean; fileNamePrefix?: string; … }optionalExport configuration for the list toolbar export menu: { formats?, maxRecords?, includeHeaders?, fileNamePrefix?, streaming? }. A bare format array is the legacy spelling and lifts to { formats: [...] } at parse.
userActions{ sort?: boolean; search?: boolean; filter?: boolean; refresh?: boolean; … }optionalUser action toggles for the view toolbar
appearance{ showDescription?: boolean; allowedVisualizations?: Enum<'grid' | 'kanban' | 'gallery' | 'calendar' | 'timeline' | 'gantt' | 'map' | …>[] }optionalAppearance and visualization configuration
tabsneveroptional[REMOVED] view.list.tabs was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no renderer ever mounted a tab bar for it, so authoring it drew nothing: the tab strip above an object's records is the saved-view switcher (ViewTabBar), which renders one tab per named list view and never read this key. Delete the key, and move each tab you want to a named list view under the object's listViews instead: the tab's name becomes the entry's key, its label the entry's label, and its filter rules join the view's own filter on that entry (copy the view's columns too); a tab whose view already named a list view needs nothing more. Every listViews entry renders as a tab in the switcher. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
addRecord{ enabled: boolean; position?: Enum<'top' | 'bottom' | 'both'> }optionalAdd record entry point configuration
showRecordCountbooleanoptionalShow record count at the bottom of the list
allowPrintingbooleanoptionalAllow users to print the view
emptyState{ title?: string | Record<string, string>; message?: string | Record<string, string>; icon?: string; link?: object }optionalEmpty state configuration when no records found
aria{ ariaLabel?: string | Record<string, string>; ariaDescribedBy?: string; role?: string }optionalARIA accessibility attributes for the list view
userFilters{ element?: Enum<'dropdown' | 'toggle'>; fields?: object[] }optional

Nested Shape: Object.enable

PropertyTypeRequiredDescription
trackHistorybooleanoptional (default: false)Show the record's field changes (audit-trail UI): on the default record page they join the record's one timeline stream, under its Changes filter. On an authored page, a record:history or record:activity block shows the record's field changes from its own activity, and neither reads this flag. Whether the activity stream shows a changed field's old → new values is enable.fieldHistory's question, not this flag's; audit capture itself is always on for compliance
fieldHistorybooleanoptionalField-change values on the record activity stream. Absent: each changed field's old → new values show (a field opts out with its own fieldHistory: false). false: off for this object, a change names its fields only, whatever a field says. Independent of trackHistory, which does not turn values off. Who reads a value is the field's read rule; a credential field never shows one
searchablebooleanoptional (default: true)Index records for global search
apiEnabledbooleanoptional (default: true)Expose object via automatic APIs
apiMethodsEnum<'get' | 'list' | 'create' | 'update' | 'delete' | 'bulk'>[]optionalWhitelist of allowed API operations (six primitives; undefined = all, [] = none)
aiReadablebooleanoptionalRead-only AI exposure of a system (sys_) object, opt-in: true lets the AI read tools (query, get one, aggregate, describe, list) reach its records, under the caller's permissions and row-level security as before. Never opens a write: writes stay on actions declared with ai.exposed. Refused on any object whose name does not start with sys_, and on the stored-metadata family (sys_metadata, sys_metadata_history)
filesbooleanoptional (default: false)Generic record Attachments panel (sys_attachment). Opt-in: true surfaces the panel and permits attachments to target this object; otherwise any write that makes an attachment target it is rejected (403 FILES_DISABLED) — a create and an update that re-points an existing attachment alike. Field.file/Field.image are independent
feedsbooleanoptional (default: true)Record comments/collaboration feed. Default on; explicit false hides the feed UI and rejects any write that makes a comment target this object (403 FEEDS_DISABLED) — a new comment and an update that re-threads an existing one alike
activitiesbooleanoptional (default: true)Record activity timeline (sys_activity mirror of CRUD). Default on; explicit false stops mirroring and hides the timeline
clonebooleanoptional (default: true)Allow record deep cloning
approvalsVisibleToReadersbooleanoptional (default: false)Opt-in: true lets a caller who can read a record of this object see that record's approval requests and full action history (comments and attachments included), read-only, on the approvals API and the generic data API alike, on a read that names the record. No approval action is offered. Default false: only the request's participants (submitter, approvers, past actors) and administrators see it

Nested Shape: Object.sharing

PropertyTypeRequiredDescription
controlledByParent{ ownerMayEdit?: boolean; writeRequiresMasterRead?: boolean }optionalOpt-ins read only under sharingModel: 'controlled_by_parent' (ADR-0055 §3): ownerMayEdit, writeRequiresMasterRead.

Nested Shape: Object.defaultRowScope

PropertyTypeRequiredDescription
namestring✅Policy unique identifier (snake_case)
labelstringoptionalHuman-readable policy label
descriptionstringoptionalPolicy description and business justification
operationEnum<'select' | 'insert' | 'update' | 'delete' | 'all'>✅Database operation this policy applies to
usingstringoptionalRow predicate, authored in canonical CEL (ADR-0058 D1): the rows a select policy lets a caller read, and the existing rows an update or delete policy lets a caller change or remove. On an insert or an update, when no applicable policy for that operation declares check, each applicable policy's using also stands in as its check on every row written (see check); on an insert policy that is its only effect. It enforces when the predicate lowers to an ObjectQL filter: a field compared against a literal or a current_user.* context value using ==, !=, <, <=, > or >=; in against a current_user.* array or an inline literal list (e.g. status in ['draft', 'pending']); these combined with && / ||; or the bare allow-all true. Anything that does not lower fails closed — the policy matches zero rows. The legacy SQL-ish spellings are still accepted through a transitional bridge that rewrites = to == and IN to in (deprecated under ADR-0058 D1); SQL AND / OR / NOT IN / IS NULL / LIKE are NOT bridged and fail closed. Needed on a select or delete policy (a check there is refused); optional on an insert, update or all policy that declares check.
checkstringoptionalValidation condition judged on every row an insert or an update writes (enforced at application level): each row of an insert, an array insert included, as its beforeInsert hooks leave it, and each row an update changes, by id or multi: true, as the prior row merged with the final payload after its beforeUpdate hooks. One failing row refuses the whole write. A by-id update is also judged, before its hooks, on the prior row merged with the change set as sent. The default to using is decided per operation across the applicable policies, not per policy: when any applicable policy for that operation declares check, only the declared checks decide (OR-combined) and a USING-only sibling adds nothing; only when none declares check does each applicable policy's using stand in as its check (OR-combined). Applicable = not enabled: false, object matches or is '*', operation matches or is 'all', and the caller holds one of its positions when it lists any. Refused on a policy whose operation is select or delete, which write no new row to check: limit the rows such a policy admits with using, and declare the check on an insert, update or all policy.
positionsstring[]optionalPositions this policy applies to (omit for all)
enabledbooleanoptional (default: true)Whether this policy is active

Nested Shape: Object.membershipKeys[string]

PropertyTypeRequiredDescription
userFieldstring✅The column of this object that holds the user a row belongs to: a single-valued user reference (user, or a lookup / master_detail to sys_user). A row counts for the signed-in user when this column holds their user id.
valueFieldstring✅The column of this object whose values form the set: a reference (lookup, master_detail or user), multi-valued allowed, or id for the ids of the signed-in user's own rows of this object (an employee roster's "the employee records I am"). A policy compares the set with a column that references the object the values belong to, or with id on that object. Never the same column as userField.
filterstringoptionalOptional condition a roster row must also meet, in canonical CEL over this object's own columns and within the row-level security subset a policy's using lowers (e.g. "active == true"). It may not read any current_user.* value.
labelstringoptionalHuman-readable name of the set
descriptionstringoptionalWhat the set holds and who it is for

Nested Shape: Object.publicSharing

PropertyTypeRequiredDescription
enabledbooleanoptional (default: false)Allow records of this object to be published via share link
allowedAudiencesEnum<'public' | 'link_only' | 'signed_in' | 'email'>[]optionalAudiences callers may select when creating a link
allowedPermissionsEnum<'view' | 'comment' | 'edit'>[]optionalPermission levels selectable on the share dialog
maxExpiryDaysintegeroptionalReject links with expiry beyond this many days
redactFieldsstring[]optionalField names removed from records served via a share token
eligibilitystringoptionalCEL expression that must evaluate to true on the target record. Enforced at BOTH points in a link's life: when the link is minted, and again on every redemption — a record that stops qualifying stops being served through links already minted for it. Fail-closed: a predicate that will not compile, or that faults on the record, refuses.

Nested Shape: Object.actions[number]

PropertyTypeRequiredDescription
namestring✅Machine name (lowercase snake_case)
labelstring | Record<string, string>✅Display label
descriptionstring | { dialect: 'template'; source?: string; ast?: any; meta?: object } | string | Record<string, string>optionalExplanatory line shown under the title in the action's param dialog. Carries the confirm question for an action that collects params (one dialog, not two). Not the LLM-facing ai.description. It is a template slot (ADR-0032): a bare string is shorthand for { dialect: 'template', source }, and text with no hole is shown as written. Holes are {{ path }} or {{ path | formatter[:arg] }} over record, the record the action runs against (the clicked row on a list, else the page's record); the values the dialog collects are not bound, since the line shows before they exist. Formatters come from the template engine's whitelist (TEMPLATE_FORMATTERS, @objectstack/formula); a hole holds no logic (no CEL, no arithmetic). Example: 'Choose the new role for {{ record.name }}.'. A hole over any other root, a ${…} or single-brace {x} token (each named with its {{ }} spelling), a hole holding logic or an unknown formatter, and a blank sentence are named and refused at objectstack validate, compile and the publish gate; the text still parses, so a stored one loads until its next save. An inline locale map ({ en, "zh-CN" }) is accepted too, each value such a sentence.
objectNamestringoptionalTarget object this action belongs to. When set, the action is auto-merged into the object's actions array by defineStack().
iconstringoptionalIcon name
locationsEnum<'list' | 'record' | 'record_page' | 'record_row' | 'record_related' | 'record_section'>[]optionalLocations where this action is visible. record_section is drawn only by an authored record page block that renders it; the standard record page (on a phone, in the side preview, and for an object with no authored page) does not draw it, so an action that must reach every surface adds record_page as well, with component: 'action:menu' to sit in the record page's ⋯ menu rather than be a header button. list acts on no record (the list page toolbar); record acts on one record, on the record page and on each list row; record_page and record_row are one of those two only.
componentEnum<'action:button' | 'action:icon' | 'action:menu' | 'action:group'>optionalVisual component override
typeEnum<'script' | 'url' | 'modal' | 'flow' | 'api' | 'form'>optional (default: "script")Action functionality type — the dispatch route. The declarative single-record field write is not a type: it is operation: 'update' + patch on the default script route.
targetstringoptionalURL, Script Name, Flow ID, or API Endpoint. Supports ${param.X} and ${ctx.X} interpolation. For type:'url': an http:// or https:// URL, a mailto: address, or an in-app path starting with / or ./ (a console route; a record is /apps/APP/OBJECT/record/ID, APP being the app's route segment — see onSuccess.navigate) — every other scheme and a protocol-relative //host are refused.
openInEnum<'self' | 'new-tab'>optionalFor type:'url' — where to open target. 'new-tab' opens a new browser tab; 'self' navigates in place. When omitted, external/absolute URLs open in a new tab and relative URLs navigate in place. Static execution option — keep it OUT of params (which is user-input-collection only).
body{ language: 'expression'; source: string } | { language: 'js'; source: string; capabilities?: Enum<'api.read' | 'api.write' | 'api.transaction' | 'crypto.uuid' | 'log' | …>[]; timeoutMs?: integer; … }optionalAction body — expression (L1) or sandboxed JS (L2). Only used when type is script. An action body runs as system, and its update, transfer, delete, purge or restore of an object declared managedBy: 'append-only' is refused with PERMISSION_DENIED; an insert is not judged by this rule. Its system elevation does not lift the organization wall: the body has its reads and writes judged by the invoking user's organization wall. A write whose own data names an organization outside it, or empties a record's organization, is refused with PERMISSION_DENIED. Where the wall denies the user (no active organization under isolated, no membership under group), its reads of an organization's records return none, its deletes remove none, and its other writes are refused with PERMISSION_DENIED.
refusalsRecord<string, { message: string; status?: integer; reasons?: Record<string, object>; params?: string[] }>optionalRefusal catalogue keyed by the SCREAMING_SNAKE code the action's js body throws: { message, status?, reasons?, params? }. The body refuses by code only, optionally with a declared reason and params; the runtime answers with the declared message (translated through objects.<object>._actions.<action>.refusals.<CODE>.message, or globalActions.<action>.refusals.<CODE>.message for an object-less action, ….reasons.<REASON>.message for a reason, in the caller's locale, holes filled from params) and status. A code not declared here, or a reason a code with reasons does not declare, is refused loudly — at save when the body throws it literally, otherwise at run time. Only a type: 'script' action with a js body declares one
textsRecord<string, { message: string; params?: string[] }>optionalTexts the action's js body writes into records, keyed by the snake_case key it asks for with ctx.text(KEY, params): { message, params? }. ctx.text answers the sentence in the organization's language (the Localization setting when somebody set it, else the app's i18n.defaultLocale), translated through objects.<object>._actions.<action>.texts.<key>.message (globalActions.<action>.texts.<key>.message for an object-less action) with the declared message as the fallback, its holes filled from params. A key not declared here is refused — at save when the body asks for it literally, otherwise at run time. Only a type: 'script' action with a js body declares one
operationEnum<'update'>optionalThe declarative single-record field write, mirroring a list view's bulkActionDefs: 'update' applies patch (merged under the collected params) to the current record on the data plane AS THE CALLER — never system-elevated — so the caller's permissions, the object's hooks and its validations fire as for a user edit. type stays at its default 'script' (the platform action route the write is performed on); target/body/method/bodyExtra are refused beside it. 'delete' and 'custom' have no row-level form.
patchRecord<string, any>optionalFor operation: 'update' — static field values written to the current record, merged UNDER the user-supplied params so a fixed value can be declared without exposing it in the dialog. Written on the data plane as the caller: object permissions, hooks and validations fire as for a user edit. Refused on an action without operation: 'update' (it would be silently dropped).
executionEnum<'perRecord' | 'aggregate'>optionalThe bulk dispatch contract this action's BODY is written for, in bulkActionDefs' own vocabulary: 'perRecord' = one dispatch per selected row carrying that row's recordId (the view's bulkActions: ['<name>'] bare-string form); 'aggregate' = ONE dispatch for the whole selection carrying every id in params._selectedIds (a bulkActionDefs entry with execution: 'aggregate'). Optional with NO default — omit it only when the body genuinely serves both. A list view wiring a declared action under the other contract is refused by @objectstack/lint (action-dispatch-contract-mismatch).
params{ name?: string; field?: string; objectOverride?: string; label?: string | Record<string, string>; … }[]optionalInput parameters required from user — an ActionParam[] DEFINITION array, never a payload map (a static request body goes in bodyExtra). A param name (its name, or the field a field-backed param reads) may repeat only for per-gate variants of ONE input (declarations that differ in visible / requiresFeature, e.g. one optional and one required); the params check treats the name as required only when EVERY declaration of it requires it, and judges its value by the FIRST declaration's shape (type, multiple, options), so keep that shape identical across them.
submitTextstring | Record<string, string>optionalLabel of the submit button in the action's param dialog, the verb the button performs (e.g. "Send", "Log Call"), in place of the default "Confirm" — the default-language string, or an inline locale map; translated at objects.OBJECT._actions.ACTION.submitText (globalActions.ACTION.submitText for an object-less action). Only on an action with a non-empty params: without one no param dialog opens, so it is refused. Not confirmText, which is the message of a param-less action's confirm dialog. A blank label is refused.
cancelTextstring | Record<string, string>optionalLabel of the dismiss button on the dialog the action opens before it runs — the confirm dialog of a param-less action that declares confirmText, or the param dialog of an action with a non-empty params — in place of the default "Cancel". Name what dismissing keeps where the action's own verb is "Cancel …" or "Close …" (e.g. "Keep invitation" beside "Cancel Invitation"). The default-language string, or an inline locale map; translated at objects.OBJECT._actions.ACTION.cancelText (globalActions.ACTION.cancelText for an object-less action). Only on an action that opens one of those dialogs: with neither confirmText nor a non-empty params no dialog opens, so it is refused. The dismiss twin of submitText, as on object-form. A blank label is refused.
variantEnum<'primary' | 'secondary' | 'danger' | 'ghost' | 'link'>optionalButton visual variant for styling (primary = highlighted, danger = destructive, ghost = transparent)
ordernumberoptionalSort order within a location group (lower = higher). Promotes/demotes an action toward the record page header's primary button; stable, so actions without order keep their registration order.
confirmTextstring | { dialect: 'template'; source?: string; ast?: any; meta?: object } | string | Record<string, string>optionalConfirmation message before execution — a template slot (ADR-0032): a bare string is shorthand for { dialect: 'template', source }, and text with no hole is shown as written. Holes are {{ path }} or {{ path | formatter[:arg] }} over record, the record the action runs against (the clicked row on a list, else the page's record), and — only when the action's params is an object of static values — params ({{ params.tier }}); an input list binds nothing, since its values are collected after the confirmation. Formatters come from the template engine's whitelist (TEMPLATE_FORMATTERS, @objectstack/formula); a hole holds no logic (no CEL, no arithmetic). Example: 'Delete {{ record.name }}?'. A hole over any other root, a ${…} or single-brace {x} token (each named with its {{ }} spelling), a hole holding logic or an unknown formatter, and a blank sentence are named and refused at objectstack validate, compile and the publish gate; the text still parses, so a stored one loads until its next save. An inline locale map ({ en, "zh-CN" }) is accepted too, each value such a sentence. Pairing this with a non-empty params is refused — that opens a second dialog for one decision; put the question on description instead. Correct on a param-LESS action, where the confirm is the only dialog there is.
successMessagestring | { dialect: 'template'; source?: string; ast?: any; meta?: object } | string | Record<string, string>optionalSuccess message shown after the action succeeds — a template slot (ADR-0032): a bare string is shorthand for { dialect: 'template', source }, and text with no hole is shown as written. Holes are {{ path }} or {{ path | formatter[:arg] }} over result, the payload the action's handler answered ({{ result.email }}; for an api or script action the server response), and record, the record the action ran against. Formatters come from the template engine's whitelist (TEMPLATE_FORMATTERS, @objectstack/formula); a hole holds no logic (no CEL, no arithmetic). Example: 'Invitation sent to {{ result.email }}'. A hole over any other root, a ${…} or single-brace {x} token (each named with its {{ }} spelling), a hole holding logic or an unknown formatter, and a blank sentence are named and refused at objectstack validate, compile and the publish gate; the text still parses, so a stored one loads until its next save. An inline locale map ({ en, "zh-CN" }) is accepted too, each value such a sentence. On a registered action that declares outcomeMessages, the entry named by the response's outcome is shown instead, and this message is the fallback.
outcomeMessagesRecord<string, string | { dialect: 'template'; source?: string; ast?: any; meta?: object } | string | Record<string, string>>optionalSuccess copy per handler outcome, for type:'api' and type:'script' actions: keys are the snake_case outcome values the handler returns in its success payload (e.g. archived, already_archived), values the message shown for that outcome. Each message is a template slot (ADR-0032): a bare string is shorthand for { dialect: 'template', source }, and text with no hole is shown as written. Holes are {{ path }} or {{ path | formatter[:arg] }} over result, the payload the action's handler answered ({{ result.email }}), and record, the record the action ran against — the roots successMessage reads. Formatters come from the template engine's whitelist (TEMPLATE_FORMATTERS, @objectstack/formula); a hole holds no logic (no CEL, no arithmetic). Example: 'Invitation resent to {{ result.email }}'. A hole over any other root, a ${…} or single-brace {x} token (each named with its {{ }} spelling), a hole holding logic or an unknown formatter, and a blank sentence are named and refused at objectstack validate, compile and the publish gate; the text still parses, so a stored one loads until its next save. An inline locale map ({ en, "zh-CN" }) is accepted too, each value such a sentence. An outcome with no entry here falls back to successMessage, then to the default text. Not allowed beside resultDialog (which suppresses the success toast) or operation: 'update' (no handler, so no outcome).
errorMessagestring | Record<string, string>optionalError message to show when the action fails (overrides the raw error).
refreshAfterbooleanoptional (default: false)Refresh view after execution
undoablebooleanoptionalOffer an Undo affordance after this single-record update action succeeds. operation: 'update' is the one declared operation and the declared form of that action: what the undo captures is the prior value of EVERY field the action writes — the merged write bag, patch UNDER the collected params, not patch alone. An action with no operation declares no write set here, but type: 'api' is fulfilled by the console, which builds the undo envelope from undoable alone. Those two shapes — operation: 'update' and type: 'api' — are the whole fulfillable set; on a registered action undoable beside any other shape is refused, because nothing would anchor the capture.
resultDialog{ title?: string | Record<string, string>; description?: string | Record<string, string>; acknowledge?: string | Record<string, string>; format?: Enum<'qrcode' | 'code-list' | 'secret' | 'text' | 'json'>; … }optionalRender API response in a one-shot reveal dialog (suppresses successMessage when set).
preflight{ read: object; path?: string; fields?: object[]; seed?: object[] }optionalPreflight read for the action's param dialog: { read: { url }, path?, fields?, seed? } sends one same-origin GET (holes ${param.NAME}, ${ctx.recordId}, ${ctx.record.FIELD}) before submit, shows the selected answer above the params and fills the seed params from it. Only on an action with a non-empty params, and not beside execution: 'aggregate'. UX, not authorization: the action's endpoint still judges what it receives.
visibleboolean | string | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalVisibility predicate — true/false literal, CEL string, or {dialect, source} envelope. The action is offered when it evaluates TRUE. Omit = always visible.
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | …>optionalPublic auth feature flag gating this action; lowered into visible at parse time.
requiresMembershipReachEnum<'invite_member' | 'cancel_invitation' | 'update_member_role' | …>optionalOrganization endpoint (a MEMBERSHIP_REACH row) whose membership-grade gate this action follows; lowered into visible over current_user.positions at parse time.
disabledboolean | string | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalDisabled predicate — true/false literal, CEL string, or {dialect, source} envelope. The action is shown but refused when it evaluates TRUE. Omit = never disabled.
disabledReasonstring | Record<string, string>optionalDisplay-only reason a greyed action shows (its hover title and accessible description, or a menu item's second line) while disabled evaluates TRUE — the default-language string, or an inline locale map; translated at objects.OBJECT._actions.ACTION.disabledReason (globalActions.ACTION.disabledReason for an object-less action). Not a gate: the server refuses a call on its own rules (hooks, requiredPermissions), and nothing reads this as a condition. Omit = the default reason, "Not available for this record". A blank reason is refused.
pressedstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPressed-state predicate (CEL string or {dialect, source} envelope) over the same scope as visible: the action surface draws the button as already pressed for this reader (a toggle face, aria-pressed) while it evaluates TRUE. Display only — it never gates, greys or routes the action. A per-reader fact (e.g. the reader's own vote) is read from a block the object declares under attachedOnRead, as has(record.viewer) && record.viewer.vote == 'helpful'. A boolean literal is refused: a constant is a style, not a reader's state. Omit = never drawn pressed.
requiredPermissionsstring[]optional[ADR-0066 D4] Capabilities required to invoke this action. Enforced with 403 on every call the platform action door (POST /actions/:object/:action and MCP run_action) dispatches, and mirrored as a UI hide. ADR-0066 D4, as amended 2026-10-29, brings a type: api action whose declared target is a same-origin platform path (exactly one leading /, followed by neither / nor a backslash, with a path after it) under that door; its target endpoint stays directly reachable, so it MUST still enforce this capability itself, the door's gate being the added check. A type: api action with an off-origin target is browser-only and not gated server-side.
ai{ exposed?: boolean; description?: string; category?: Enum<'data' | 'action' | 'flow' | 'integration' | 'vector_search' | 'analytics' | 'utility'>; paramHints?: Record<string, object>; … }optionalAI exposure (opt-in). Set ai.exposed=true + ai.description to make this callable by agents.
recordIdParamstringoptionalBody key to inject the row id into when running from a list row (record_row / record).
recordIdFieldstringoptionalRow field whose value seeds recordIdParam. Defaults to "id".
bodyShape'flat' | { wrap: string }optionalBody wrapping: flat (default) or { wrap: key } to nest user-collected params under a key.
methodEnum<'POST' | 'PATCH' | 'PUT' | 'DELETE'>optionalHTTP method for type:"api" actions. Defaults to POST.
bodyExtraRecord<string, any>optionalStatic request-body fields for a type:"api" action, merged last (overrides user params). {{page.<var>}} tokens are resolved by the runtime. This — not params — is where a payload goes.
modeEnum<'create' | 'edit' | 'delete' | 'custom'>optionalSemantic mode of the action.
opensInNewTabbooleanoptionalOpen the action result in a new tab. The renderer pre-opens the tab synchronously on click (popup-blocker-safe) and navigates it to the handler's redirectUrl.
newTabUrlstringoptionalNew-tab path template on this backend, starting with / ({recordId} placeholder). When set with opensInNewTab, the renderer navigates the pre-opened tab to the backend origin + this path immediately — no action POST. The endpoint must enforce auth itself. An absolute URL is refused; an external page is a type:'url' action with openIn: 'new-tab'.
onSuccess{ navigate: string; openIn?: Enum<'self' | 'newTab'> }optionalPost-success navigation for type:'api', type:'script' and type:'flow' actions. navigate is a route/URL template interpolating ${param.*}, ${ctx.*} and ${result.*} (the server response; for a flow, the completed run's answer); openIn defaults 'self'. A flow run that pauses at a screen or ends refused performs no navigation. The handler-return convention ({ redirectUrl } without openIn) keeps its 17.0.0 new-tab behavior.
arianeveroptional[REMOVED] action.aria was removed in @objectstack/spec 17.5.0 (ADR-0049 enforce-or-remove) — no action surface ever applied it: the button, icon, menu, group and bar renderers, the row and bulk action menus and the record quick-actions toolbar all take the accessible name from the action's label and never read this block, so ARIA attributes declared here parsed and then silently did not reach the DOM. Delete the key. The accessible name that IS applied is the action's required label — the visible button or menu-item text, and the aria-label of an icon-only action — so write the name you meant there. To name the region that PLACES the actions, author ariaLabel / ariaDescribedBy / role in the aria block of the placing node: page.components[].aria (the component that renders the actions) or the list view aria. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
_lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>optionalItem-level lock — controls overlay & delete (ADR-0010).
_lockReasonstringoptionalHuman-readable reason shown when a write is refused by _lock.
_lockSourceEnum<'artifact' | 'package' | 'env-forced'>optionalLayer that set _lock (artifact | package | env-forced).
_provenanceEnum<'package' | 'org' | 'env-forced' | 'platform'>optionalOrigin of the item (package | org | env-forced | platform).
_packageIdstringoptionalOwning package machine id.
_packageVersionstringoptionalOwning package version.
_lockDocsUrlstringoptionalOptional documentation link surfaced next to _lockReason.
overrides{ package: string; basedOn: string }optionalOverride declaration (ADR-0146 D2): { package, basedOn } — this item of "<base>.custom" replaces the base package's same-named item whole. basedOn is recorded and never gates; a base's upgrade plan reads it only as advice.

Nested Shape: Object.protection

PropertyTypeRequiredDescription
lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>✅Lock policy — none | no-overlay | no-delete | full.
reasonstring✅User-visible reason shown when the lock blocks an action.
docsUrlstringoptionalOptional URL the Studio banner links to for more context.

ObjectAccessConfig

Properties

PropertyTypeRequiredDescription
defaultEnum<'public' | 'private'>optional (default: "public")Default exposure posture: public (covered by wildcard grants) | private (needs explicit grant; exempt from wildcard RLS).

ObjectCapabilities

Properties

PropertyTypeRequiredDescription
trackHistorybooleanoptional (default: false)Show the record's field changes (audit-trail UI): on the default record page they join the record's one timeline stream, under its Changes filter. On an authored page, a record:history or record:activity block shows the record's field changes from its own activity, and neither reads this flag. Whether the activity stream shows a changed field's old → new values is enable.fieldHistory's question, not this flag's; audit capture itself is always on for compliance
fieldHistorybooleanoptionalField-change values on the record activity stream. Absent: each changed field's old → new values show (a field opts out with its own fieldHistory: false). false: off for this object, a change names its fields only, whatever a field says. Independent of trackHistory, which does not turn values off. Who reads a value is the field's read rule; a credential field never shows one
searchablebooleanoptional (default: true)Index records for global search
apiEnabledbooleanoptional (default: true)Expose object via automatic APIs
apiMethodsEnum<'get' | 'list' | 'create' | 'update' | 'delete' | 'bulk'>[]optionalWhitelist of allowed API operations (six primitives; undefined = all, [] = none)
aiReadablebooleanoptionalRead-only AI exposure of a system (sys_) object, opt-in: true lets the AI read tools (query, get one, aggregate, describe, list) reach its records, under the caller's permissions and row-level security as before. Never opens a write: writes stay on actions declared with ai.exposed. Refused on any object whose name does not start with sys_, and on the stored-metadata family (sys_metadata, sys_metadata_history)
filesbooleanoptional (default: false)Generic record Attachments panel (sys_attachment). Opt-in: true surfaces the panel and permits attachments to target this object; otherwise any write that makes an attachment target it is rejected (403 FILES_DISABLED) — a create and an update that re-points an existing attachment alike. Field.file/Field.image are independent
feedsbooleanoptional (default: true)Record comments/collaboration feed. Default on; explicit false hides the feed UI and rejects any write that makes a comment target this object (403 FEEDS_DISABLED) — a new comment and an update that re-threads an existing one alike
activitiesbooleanoptional (default: true)Record activity timeline (sys_activity mirror of CRUD). Default on; explicit false stops mirroring and hides the timeline
clonebooleanoptional (default: true)Allow record deep cloning
approvalsVisibleToReadersbooleanoptional (default: false)Opt-in: true lets a caller who can read a record of this object see that record's approval requests and full action history (comments and attachments included), read-only, on the approvals API and the generic data API alike, on a read that names the record. No approval action is offered. Default false: only the request's participants (submitter, approvers, past actors) and administrators see it

ObjectExtension

Properties

PropertyTypeRequiredDescription
extendstring✅Target object name (FQN) to extend
fieldsRecord<string, { name?: string; label?: string; type: Enum<'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'secret' | …>; description?: string; … }>optionalFields to add/override, keyed by field name (lowercase snake_case, the key grammar of an object's fields).
fieldPatchesRecord<string, { label?: string; description?: string; inlineHelpText?: string; placeholder?: string; … }>optionalDisplay patches of the target object's own fields, keyed by field name (lowercase snake_case, the key grammar of an object's fields): change a vendor field's display properties (BASE_FIELD_DISPLAY_WHITELIST: label, description, inlineHelpText, placeholder on the field, label on an option under options, keyed by its stored value) without taking the field over, so its type, values and rules stay the vendor's and its upgrades still apply (ADR-0146 D10). Applied by the registry merge (mergeObjectDefinitions) after the additive merges, on every object read: a tenant's own text keeps winning, and between two extensions the higher priority wins. A patch naming a field or option value the target does not have is refused at install and by os validate; a field the same extension replaces in fields is refused here. An option of a field bound to a shared picklist is never patchable: its labels are the picklist's, so only a field declaring its own options takes an option patch. Example: fieldPatches: { industry: { label: 'Sector', inlineHelpText: 'The market the account sells into' }, type: { options: { customer: { label: 'Client' } } } }.
labelstringoptionalOverride label for the extended object
pluralLabelstringoptionalOverride plural label for the extended object
descriptionstringoptionalOverride description for the extended object
actionLayout{ list?: object; record?: object }optionalThe arrangement of the extended object's actions, per scope (list, record), in the object's own shape. Written only by the object extension of the paired .custom package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a .custom package is refused at publish, by os validate / os build and at install, and the registry merge skips it with a warning; an action that package brings is placed by its own locations and order. A .custom package that is not this object's pair is not applied. Each arm written replaces the arm the object serves for that scope, whole, after every other layer; an arm not written stays as the object gives it, and removing the key, or uninstalling or disabling the package, restores it.
validationsany[]optionalAdditional validation rules to merge into the target object
indexes{ name?: string; fields: string[]; unique?: false | 'global' | 'organization' }[]optionalAdditional indexes to merge into the target object
place({ field: string; group: string; after?: string; before?: string } | { list: string; after?: string; before?: string; label?: string; … } | { group: object; after?: string; before?: string })[]optionalWhere the fields, groups and child lists this extension brings go on the extended object. Each entry is one of: { field, group, after | before } — a field of this extension's own fields, into a field group (the extended object's, or one this extension adds), right after or before a member of that group; { group: { key, label, … }, after | before } — a field group of this extension's own (its fields may name only fields this extension adds, its relatedList only a child list of this package), right after or before a group of the extended object; { list, after | before, label?, columns? } — a child list of this package (a child object of the same package that points at the extended object, or object.field), right after or before a tab of the extended object (a relatedLists entry name, a built-in tab included), with that tab's own title and columns (each column a field of the child, judged as a relatedLists entry's columns are). Write after or before, or neither for the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before the approvals and activity-stream tabs); a group that does not exist puts the field among the ungrouped fields. Nothing is dropped. Several items at one anchor follow ascending priority, then package name, so every build gives the same order. Placement arranges what the extended object declares: list placements apply when it declares relatedLists, group and field placements when it declares fieldGroups. Where it declares none, its automatic arrangement stays as it is and the item still shows there: the list in the automatic tab order, with this entry's label and columns not applied either (write them on the child's own lookup field as relatedListTitle / relatedListColumns, which apply on every parent), and the field among the fields in declaration order, its after / before not applied. The boot log names each placement that did not apply, with the object and the package; os validate names it too when the extended object is in the same stack. A child list another package brings shows even when the extended object's relatedLists does not name it: placed, at its place; unplaced, at the end of the tabs. An extension places only its own items: a field outside its own fields is refused here; a field the extended object declares (an owner field this extension redeclares for its display is still the owner's), a group key the extended object declares, and a list (or a group's relatedList) that is not a child object of its package are refused at defineStack where the objects are known; the merge skips each of them too, with a warning naming whose item it is. A group key another package's extension already adds is not refused: the merge adds it once and names the second. Applied once, by the registry merge, so the record page, the forms and Studio show one arrangement; uninstalling the package removes its items and leaves the extended object's own order as it was. Example: place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'contract', after: 'opportunity', columns: ['name', 'amount'] }].
fieldGroups{ key: string; label: string; fields?: string[]; icon?: string; … }[]optionalThe whole field arrangement of the extended object on the record page, the forms and the preview: an object's fieldGroups, in the same shape. Written only by the object extension of the paired .custom package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a .custom package is refused at publish, by os validate / os build and at install, with the prescription to place what it brings with place, and the registry merge skips it with a warning. A .custom package that is not this object's pair is not refused at those doors: the registry merge does not apply what it writes here, alone or beside the pair, and the boot log names it. A group may list any field the object has, whoever declares it (its owner, another package's extension, or this extension's own __c fields), and a group's relatedList may place any body table. Written, it replaces the groups the owner declares and the other extensions' place entries add, whole: no group, member or order of that arrangement is kept unless written here, and nothing is merged entry by entry. A group that lists fields shows exactly its list. A field no group here lists is never dropped: it shows after the last group, whatever group its owner or another extension had put it in. That covers a field a later version of the base adds and a field another package's extension brings. A group that lists no fields keeps the object's older rule (the fields whose group names it), and a field this extension adds keeps the group it declares. Not written, the arrangement stays as the owner and the place entries give it, and removing this key, or uninstalling or disabling the package, restores that. To keep a field off the record page and the forms, list it in a group whose visibleWhen is false: hidden is not a display property a fieldPatches entry may set, because it also changes what search indexes and what a form requires. Such a group is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a required field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. Example: fieldGroups: [{ key: 'contact', label: 'Contact', fields: ['email', 'phone', 'region__c'] }, { key: 'basic', label: 'Basics', fields: ['name', 'company'] }].
relatedLists(string | { list: string; label?: string; columns?: string[]; hidden?: boolean })[]optionalThe whole tab list of the extended object's record page, in order: an object's relatedLists, in the same shape, whose object form also takes hidden. Written only by the object extension of the paired .custom package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a .custom package is refused at publish, by os validate / os build and at install, with the prescription to place what it brings with place, and the registry merge skips it with a warning. A .custom package that is not this object's pair is not refused at those doors: the registry merge does not apply what it writes here, alone or beside the pair, and the boot log names it. An entry may name any list the object has, whoever brings it (a child object, object.field, or a built-in tab; { list, label?, columns?, hidden? } gives the list its own title and columns, or hides it). Written, it replaces the tab list the owner declares and the other extensions' place entries add to, whole, and nothing is merged entry by entry. A tab this list does not name is not hidden, the reverse of an object's own relatedLists: where the object had a declared tab list, each of its tabs not named here follows the listed ones (before a trailing approvals / activity-stream run), with the title and columns it had; where the object declared none (every list shows), every list not named here follows the listed ones, and so does the attachments tab. That covers a tab a later version of the base adds and a child list a package installed later brings. Hiding is written: { list: 'task', hidden: true } hides that list's tab, whoever brings the list, and a bare child name hides every list of that child. A list the object's own relatedLists hides by leaving it out stays hidden until this list names it. A built-in tab is written only as its bare name, keeps its own rule (approvals and the activity stream follow the listed tabs when unlisted) and cannot be hidden here. relatedList: false on the child's field still hides a list whatever this says, and body tables a field group places are the groups' to place. A reader's own tab order and hidden tabs (kept per user) are laid over this list, as over an object's. Not written, the tabs stay as the owner and the place entries give them, and removing this key, or uninstalling or disabling the package, restores that. Example: relatedLists: ['opportunity', { list: 'contact', label: 'People' }, { list: 'task', hidden: true }].
priorityintegeroptional (default: 200)Merge priority (higher = applied later)

Nested Shape: ObjectExtension.fields[string]

PropertyTypeRequiredDescription
namestringoptionalMachine name (snake_case)
labelstringoptionalHuman readable label
typeEnum<'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'secret' | …>✅Field Data Type
descriptionstringoptionalTooltip/Help text
formatstringoptionalFree-form string whose meaning depends on the field type and on the reader. The spec declares NO vocabulary for it and checks nothing but that it is a string, so any string parses on any field type. On an autonumber field it is the record-number PATTERN — the shorthand that predates autonumberFormat, which wins when both are present: format: 'INV-{0000}' mints INV-0001 on both the query engine and the SQL driver, while a value carrying no {...} token is emitted as literal text with the bare counter appended (format: 'email' mints email1). Prefer autonumberFormat on a new field. On any other field type the server does not act on it: it picks no column type, coerces no value and runs no check from it. The Studio UI reads it as a display hint, in words and with defaults that its renderers own and declare. For example, the date and datetime cells read it as a display STYLE, and on a plain-text field the shared cell-renderer resolver reads a small set of words that promote the cell to a richer renderer, such as a link; each of those falls back silently to a default rendering when it does not recognise the word. To constrain a VALUE, use the field type (the write-time record validator's built-in email, url and phone checks key on type, never on this key) or a format validation rule, whose own format key is the closed set email | url | phone | json.
requiredbooleanoptional (default: false)Write-time contract (ADR-0113): an insert must provide a non-null value, and an update may not null it out. With the field's own visibleWhen it is required WHEN SHOWN: a write whose record the predicate hides does not need it, a write that reveals the field empty is refused, and a predicate the server cannot evaluate counts as shown. On a multi-value lookup (multiple: true) required means NON-EMPTY array — an emptied required set fails validation loudly; [] does not satisfy it. NOT a column constraint — the physical NOT NULL is a separate explicit opt-in (storage.notNull), so tightening this on a deployed object is safe: existing null rows stay readable, and editable as long as the write does not touch this field.
storage{ notNull?: boolean }optionalPhysical storage constraints (ADR-0113). Owns the DDL the write contract deliberately does not imply. Absent = no storage-level constraint requested.
searchablebooleanoptional (default: false)Search this field when its object declares no searchableFields. The set search scans, and the set a $searchFields override may name, is then the type-based default (the text-like and select columns) plus every field marked searchable: true, of any type except secret, password and vector, which stay excluded (a virtual formula field has no stored column, so it is never scanned either). false, the default, does not remove a field the type-based default already scans; to choose the set, declare searchableFields. When the object declares searchableFields, that list is the whole search set and this flag is not read (ADR-0061).
multiplebooleanoptional (default: false)Allow multiple values (Stores as Array/JSON). Declarable ONLY on the multi-capable types — select, lookup, user, file, image — and redundantly on the inherently-multi option types (multiselect, checkboxes, tags); multiple: true on any other type, radio included, is REFUSED at parse. A cleared optional multi-value field is stored as null, the same as one never set: an empty list [] or an empty string written to it stores null, and the rule binds every writer (cascade repair, form clears, API writes). Read null and [] alike as empty, as the is_empty filter ($empty) does, since a row stored before this rule can still hold []. On a required multi-value field the empty list is refused: required means a non-empty list.
uniqueboolean | 'global' | 'organization'optionalUnique constraint and its scope (ADR-0120). 'organization' = one holder per organization (NULL-safe composite with the organization key part on organization-scoped objects) — prefer this explicit spelling in new code; true = same per-organization scope (positional synonym, stays valid); 'global' = one holder across the whole installation. 'tenant'/'org' are rejected — the word is 'organization'. Omitted ⇒ false, EXCEPT on an autonumber field, where omitted ⇒ 'organization' (an auto-number is a business identifier, so the platform makes it unique per organization by default — the same tenant-composite shape an explicit unique: true produces). To opt an autonumber field out, write unique: false explicitly — legitimate only for a display-only sequence that is not used to identify the record; the platform's duplicate scan (os migrate duplicates) still treats every autonumber field as an identifier.
defaultValueanyoptionalDefault applied on INSERT when the field is omitted or null ('' is a real value, not absence). Three legal shapes, discriminated in the engine's own order: a CEL Expression envelope { dialect: 'cel', source: 'today()' } (accepted structurally; result type is a runtime concern); a runtime TOKEN — NOW() on datetime/date/time only, current_user on user or lookup with reference: 'sys_user' only, neither on a multi-value field; or a LITERAL, which must satisfy this field's own stored value contract (ADR-0104 D1 valueSchemaFor). Anything else is refused at parse time with a prescriptive message.
maxLengthintegeroptionalMax character length (positive integer). Only authorable on types that store a bounded string: text, textarea, email, url, phone, password, markdown, html, richtext, code, signature, qrcode. Checked on the WRITTEN value only (the min/max transition-gate class): a stored value longer than a bound declared later is never re-read and survives unrelated edits — only a write carrying an over-long value is refused.
minLengthintegeroptionalMin character length (positive integer; minLength: 0 is refused — express "no minimum" by omitting the key). Only authorable on types that store a bounded string: text, textarea, email, url, phone, password, markdown, html, richtext, code, signature, qrcode. Checked on the WRITTEN value only (the min/max transition-gate class): a stored value shorter than a bound declared later is never re-read and survives unrelated edits — only a write carrying a too-short value is refused.
valueDomainEnum<'iana_time_zone' | 'iso_4217_currency' | 'iso_3166_alpha2'>optionalStandard value domain the WRITTEN value must be a member of: iana_time_zone (an IANA/tzdb zone identifier such as UTC, Asia/Kolkata, Europe/Kyiv — membership is the Intl.DateTimeFormat probe, never the Intl.supportedValuesOf enumeration, which omits UTC), iso_4217_currency (an ISO 4217 alphabetic currency code, uppercase, e.g. CHF) or iso_3166_alpha2 (an ISO 3166-1 alpha-2 country code, uppercase, e.g. CH). The same closed vocabulary and the same membership predicate as a settings specifier's valueDomain. Only authorable on text — the one type whose stored value is a single plain string naming the member. Checked on the WRITTEN value only (the min/max/maxLength transition-gate class): a stored value outside a domain declared later is never re-read and survives unrelated edits — only a write carrying a non-member is refused, with the field error code value_domain. Reach for it precisely where a pattern cannot help: ^[A-Z]{2}$ admits ZZ, and Mars/Olympus is a shape-valid zone that does not exist.
rowsintegeroptionalHeight of the INLINE multiline editor, in text rows (positive integer — the HTML textarea rows attribute; fullscreen/dialog editor surfaces size themselves and ignore it). Only authorable on multiline editor types: textarea, markdown, html, richtext. Omit it for the widget default height.
precisionintegeroptionalTotal digits (non-negative integer) — the p of a DECIMAL(p, s): the digits of the value, integer and fraction together, counted at the field's decimal places, so precision: 5, scale: 2 holds up to 999.99 and refuses 1234.5 (1234.50 is 6 digits). Enforced on writes of number, currency, percent, rating and slider fields: a value that needs more digits is refused with field code max_precision, never rounded. Counted on the STORED value: at the declared scale when one applies, else at the value's own decimal places (leading zeros never count) — so on a currency field, where scale is refused, an amount's written decimals count toward the total; a fraction-stored percent is counted two places further right (scale + 2, or 2 with no scale), which makes the count that of the percentage-point value as displayed. Not decimal places (that is scale; a currency's are its CLDR fraction digits) and not a column size: every numeric column keeps the platform's fixed exact decimal whatever this declares. Not read on any other field type.
scaleintegeroptionalDecimal places (integer 0-100). Applies to number, percent, rating and slider fields, where it is enforced on writes, and to a formula field, whose computed result is rounded to it — a formula whose returnType is percent counts the places of its displayed percentage, as a percent field does, so a fraction result is rounded to scale + 2 places. REFUSED on a currency field — delete it there: a currency amount's decimal places are its currency's, so the currency's CLDR fraction digits decide how the amount displays, and a currency write's decimal places stay unconstrained. OMITTED on a percent field ⇒ 0 decimal places, so a stored 0.25 reads 25% on every face; omitted on any OTHER numeric type declares NO fixed width — the value keeps its natural precision, and a DECLARED scale: 0 (a year, a fiscal period, an ordinal) stays distinguishable from having declared nothing, so nothing is defaulted there. Consumers resolve the effective width by calling resolveFieldScale from @objectstack/spec/data, the single source for an absent scale: a renderer that spells its own fallback is a width no other face can see, and that is how one stored 0.25 came to read 25% on the read-only cell and 25.00% in the edit widget. On a percent field this is the number of decimal places of the PERCENTAGE-POINT value as displayed and entered — scale: 2 means 12.34% — and the STORED precision derives from the field's storage scale rather than being declared again: a fraction-stored percent (no max, or a max at or below 1) stores 12.34% as 0.1234 and is allowed scale + 2 decimal places at the write seam, while a whole-percent field (max above 1) stores the displayed number itself and is allowed exactly scale. number, rating and slider are allowed exactly scale. The upper bound is the platform's, not a policy: renderers turn scale into fraction digits through toFixed and Intl.NumberFormat's maximumFractionDigits, both of which throw a RangeError above 100 — so a larger declaration is unrenderable by any conforming consumer.
minnumberoptionalMinimum value. Checked on the WRITTEN value only — the same transition-gate class as requiredWhen: an UPDATE validates just the fields the payload carries, so a stored value below a bound declared later is never re-read and survives unrelated edits; only a write that carries an out-of-bound value is refused, and a repairing write is accepted. For an invariant re-checked on every write, declare a validations[] script rule instead.
maxnumberoptionalMaximum value. Checked on the WRITTEN value only — the same transition-gate class as min: a stored value above a bound declared later is never re-read and survives unrelated edits; only a write that carries an out-of-bound value is refused. For an invariant re-checked on every write, declare a validations[] script rule instead.
useGroupingbooleanoptionalDigit-grouping presentation hint for number fields — maps to Intl.NumberFormat's useGrouping. Absent = renderer decides (interim heuristic today, locale default eventually); false = author opts out of grouping (e.g. a year or other ordinal/identifier integer); true = author pins grouping on.
percentDisplayEnum<'bar' | 'plain'>optionalHow a percent field, or a formula whose returnType is percent, is displayed read-only (list cells, record page). Absent = the renderer default, a progress bar beside the percentage; bar = pin the progress bar; plain = the percentage as text alone, with no bar, for a rate or a probability rather than progress. Display only: the stored value, its validation and its decimal places (scale) are unchanged.
acceptstring[]optionalPermitted upload types for media fields, as MIME types or extensions (e.g. ["image/*", ".pdf"]). Offered to the file picker AND enforced on write.
maxSizeintegeroptionalMaximum permitted file size in BYTES for media fields. Enforced on write against the stored file size, not just checked in the browser.
options{ label: string; value: string; description?: string; color?: string; … }[]optionalStatic options for the option types. A select / radio field needs a non-empty list here or a picklist — with neither (or options: []) it is refused at parse.
pickliststringoptionalName of a shared picklist whose options this field offers — instead of options, never with it. Option types only (select, radio, multiselect, checkboxes, tags). A select / radio declares this or a non-empty options; with neither it is refused at parse.
referencestringoptionalTarget object name (snake_case) for lookup/master_detail fields. Required for relationship types. Used by $expand to resolve foreign key IDs into full objects. Never a stored-metadata table (sys_metadata, sys_metadata_history): their rows are served only through the metadata API, so the engine never hydrates a reference into one, and os validate, os build and the object save door refuse it. On a tree field it is optional and, if given, must be the declaring object's own name — the object schema refuses any other target, and writes the own name when it is left out.
referenceViastringoptionalDeclares this text field as the id half of a polymorphic pointer pair (ADR-0052 §5 ActivityPointer): the value is a record id of the object named by the SIBLING FIELD this key names — e.g. record_id with referenceVia: 'object_name'. The sibling must be a declared field on the same object holding an object machine name. Text fields only; mutually exclusive with reference (a static and a per-record target contradict). Enforced today at seed load: the value resolves as a natural key against the object the sibling column names, and an unresolvable pointer is refused loudly instead of stored verbatim. Adds no referential integrity or $expand behavior.
referenceDeletedWhen{ field: string; value: string }optionalMarks the record a referenceVia pointer names as PLATFORM-DELETED on rows where a sibling select field holds one declared option — e.g. record_id with { field: 'cancel_reason', value: 'record_deleted' }. A renderer then draws a tombstone from that option's own label, reads nothing and links nothing. Valid only beside referenceVia; field must be a single-value select on the same object declaring inline options, and value one of its option values — any other shape is refused at parse.
referenceNameVisiblebooleanoptionalDeclared name exposure (lookup and user fields only). TRUE declares that a principal who can read the record carrying this field may see the referenced record's display name (the target object's nameField, else its displayNameField, else the derived title field) and id even when that principal cannot read the referenced record. Served on $expand: a target the reader is refused (the object's read gate or its row scope) answers { id, name, readRefused: true } (ReferenceNameOnlyValueSchema), per element on a multi-value field; an unexpanded read answers the stored id, as for every reader. Nothing else of the target: $expand on this field returns the same name and id only, the field's displayField does not widen it, and the name renders as text with no link to the target. A field-level rule on the name field still holds, and the name field is read only where nothing the security layer owns must be computed: the name is the Record # floor with the id when the reader may not read that field, it declares a maskingRule, it is a formula reading through another reference, an explicit nameField (or its displayNameField alias) points at a column that is neither title-typed nor autonumber, or no field-level answer can be had for the reader. A target with no resolvable or no non-empty name reads as the same floor. A principal who can read the target is served exactly what it is served without the key. Absent or false keeps the restricted-reference posture for a target the reader cannot read. Declared on the referencing field only; there is no target-object switch. Refused on any other type.
mailAssociationbooleanoptionalInbound mail association (email fields only): TRUE marks this field as identifying a correspondent. When a mailbox service ingests a message, it associates the message with every record of this object whose value in this field equals one of the message's participant addresses (From, Sender, Reply-To, To and Cc, plus those of a forwarded message it carries; ASCII case-insensitive; the receiving mailbox's own addresses excluded; only within the mailbox's organization). A message no record matches waits in the mailbox's unassociated pool. Refused on any other type. Takes effect only where a mailbox service is composed.
deleteBehaviorEnum<'set_null' | 'cascade' | 'restrict'>optional (default: "set_null")What happens if referenced record is deleted
transferBehaviorEnum<'none' | 'cascade'>optional (default: "none")What a Change Owner of the referenced (parent) record does to this object's records that point at it. 'none' (default): they keep their owner. 'cascade': the Change Owner dialog offers this relationship, and when it is ticked the records here that point at the parent and are owned by the parent's previous owner move to the new owner too, each as the caller's own update (a row the caller may not transfer is reported, never skipped; one call moves at most 500 rows). Only on lookup and master_detail fields, not on a reference to a sys_ object, and cascade only on an object that offers Change Owner itself (eligible, not controlled_by_parent, userActions.transfer not off).
inlineEditEnum<'grid' | 'form'>optionalHow the parent's form edits these child records inline (atomic master-detail) when a field group of the parent names this child (fieldGroups[].relatedList); a child no group names is not inlined, whatever this says. Absent = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. A boolean is refused: true and false both read as absent.
inlineTitlestringoptionalTitle for the inline master-detail grid
inlineColumns{ name: string; label?: string; type?: Enum<'text' | 'number' | 'currency' | 'date' | 'datetime' | 'time' | 'select' | …>; width?: number; … }[]optionalExplicit columns for the inline grid (derived from the child object when omitted). Each entry is a strict, name-keyed column ({ name, label?, type?, … } — objectui GridColumn); identity-only entries ({ name }) hydrate everything else from the child object's fields. Unknown keys and the retired field spelling are refused at parse.
inlineAmountFieldstringoptionalNumeric child field summed for the inline grid total
relatedListboolean | 'primary'optionalShow this child collection as a related list on the parent's detail page (the record-page side; inlineEdit picks the form factor on the form side). true = an auxiliary panel on the record page; absent = an auxiliary panel, except that a master_detail field becomes a body table when a field group of the parent names it (fieldGroups[].relatedList); false = hidden: the child object is not shown on the parent record page; 'primary' = a body table: part of the record's main content, shown as a full-width table in the record's detail body. Write true on a master_detail field to keep it an auxiliary panel even from a field group. 'primary' places a list and does not order it: the parent object's relatedLists orders the full-width tables and the auxiliary panels. The page layout is defined by ADR-0085. A derived related list (relatedList: 'primary') inherits its row order from the child object's DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=<field> / sort=-<field>, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order.
relatedListTitlestringoptionalTitle for the detail-page related list
relatedListColumnsstring[]optionalExplicit columns for the detail-page related list, as child field names (e.g. ['name', 'status']); derived from the child object (highlightFields → field walk) when omitted. Strings only — labels, cell types and formatting always derive from the child object's field definitions; column objects are refused at parse.
relatedListFilteranyoptionalDeclarative default filter for the detail-page related list: AND-composed with the parent-relationship condition { [referenceField]: parentId } — an authored constraint, never a user-editable suggestion. The related-list tab badge count honors the same composed filter, so counts match the visible rows. Canonical Query-DSL FilterCondition (the same dialect as a query where), e.g. { status: { $ne: 'deleted' } } to hide soft-deleted children.
displayFieldstringoptionalField shown as each candidate's label in the picker/popover (defaults to the referenced object's name/title).
descriptionFieldstringoptionalSecondary field shown under the label in the quick-select popover.
lookupColumns(string | { field: string; label?: string; width?: string; type?: string })[]optionalExplicit columns for the record-picker table; auto-derived from the referenced object when omitted.
lookupPageSizeintegeroptionalRows per page in the record-picker dialog (default 10).
lookupFilters{ field: string; operator: Enum<'eq' | 'ne' | 'gt' | 'lt' | 'gte' | 'lte' | 'contains' | 'in' | 'notIn'>; value: any; orEmpty?: boolean }[]optionalBase filters restricting which records are selectable (e.g. only active). The structured, picker-honoured lookup filter. Each entry compares a column of the CANDIDATE record (field, on the referenced object) with value. A value may read the record being edited as { $record: "field" } or { $record: "lookup_field.field" } (at most one lookup hop). In a record form, whatever its layout, the picker sends that value in its place and re-queries whenever a referenced field changes; every other picker host leaves every { $record } entry out: inline edit on a record page, a record page's header or related list, an action's parameter dialog, and a picker with no single record being edited (a bulk action over selected rows). The referenced fields are implied: do not list them in dependsOn, which also scopes the candidate query by equality (dependsOn: ['quote_date'] adds quote_date = … to the query over the referenced object). While the value is empty or cannot be read (the hop's row or field does not come back, no object is named for the hop, or the host has no single-row reader), the entry is left out. A { $record } is the whole value, never a member of an in / notIn list. orEmpty: true also matches a candidate whose column is null. A { $record } that reaches a server unresolved is refused (INVALID_FILTER), never read as null: by name, naming the field and the path, when it arrives as the eq shorthand on a column other than a date, datetime or time column; any other operator, and eq on a date, datetime or time column, is refused earlier, in generic words. The picker narrows the choice only: a rule the save must enforce belongs on the server too.
dependsOn(string | { field: string; param?: string })[]optionalDeclares that this field's available values depend on the value of other field(s) on the same record — the form gates the field until they are set and re-evaluates as they change. For lookup/master_detail it scopes the candidate query (string = same local/remote key; {field,param} when the remote filter key differs — the {field,param} form is lookup-only). For select/multiselect/radio the actual per-option rule lives in each option's visibleWhen; list the referenced fields here (string form) so the option list gates and refreshes with the parent.
allowCreatebooleanoptionalAllow inline quick-create from the record picker: when no match exists the user can create a record from the typed text (optimistic dataSource.create with the display field). Best for simple objects whose only required field is the display field.
lookupAutofill{ target: string; source: string; overwrite?: boolean }[]optionalFields a pick in this lookup fills on the record being edited: each { target, source } pair copies the picked record's source field (a field of the reference object) into this object's target field — e.g. [{ target: 'unit_price', source: 'list_price' }] on a quote line's product lookup. Read wherever this field is picked: the record form, and a line-item grid column over it. OVERWRITE RULE — the default, overwrite absent or false: a pick never replaces a value somebody wrote. The target is filled only while it is empty or still holds the value an earlier pick filled in; a value the user typed, or one the record already stored, stays. Only a pair that declares overwrite: true replaces the target on every pick, whatever it holds. CURRENCY RULE: an amount of money (a currency field, or a formula returning currency) is copied only into a target in the same currency, both in the home currency or both naming the same ISO 4217 code (a fixed code, or the code the record or its master_detail parent holds). Otherwise the target is left as it is and the form says why, naming both currencies and the picked amount; nothing is converted. A number carries no currency and copies as before. Client-side only: it fills the form, and nothing on the write path reads it — the filled value is saved as an ordinary write, and an import or API write that sets the lookup fills nothing. Only on a single-value lookup / master_detail. Each target is a field of this object other than this one, written by its author — not readonly, not computed (formula, summary, autonumber, or an expression) — and named once. Each source is a field of the referenced object that the record carries (not internal) and whose value the target can hold; os validate / os build judge the source. In a line-item grid the column key autofill still governs only the same-named copy, under the same currency rule; a declared pair takes its target out of that copy.
expressionstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalCEL expression the field's value is computed from, e.g. Frecord.amount * 0.1. On a formula field: computed on read, no column. On any other (stored) field: computed by the engine from the row the write stores and stored, so a client-sent value never stands and a summary can roll the column up — on every insert and every update by id (the stored row merged with the patch), and on a predicate update only when the patch moves an input (one value for every matched row, else the update is refused).
returnTypeEnum<'number' | 'text' | 'boolean' | 'date' | 'currency' | 'percent'>optionalValue type of a formula field (number/text/boolean/date/currency/percent). Authoring stamps number, text, boolean or date from the expression's inferred type and leaves it absent when none is proven; percent is declared by the author, and a verdict that proves no other type (number, or none) keeps it, as does a money verdict: a declared percent is never re-stamped currency. Otherwise currency is stamped when the expression provably computes money, and withdrawn for number (its currencyConfig dropped) when an edit leaves it a plain number; an unproven verdict keeps it. currency: an amount of money, in the currency the formula's own currencyConfig declares, as a currency field declares it (no currencyConfig: dynamic, the tenant default currency). percent: a ratio, read and displayed as a percent field reads its stored value — a fraction (0.25 shows 25%, so the expression divides and does not multiply by 100) unless the formula declares a max above 1, then percentage points; its scale is the decimal places of the displayed percentage (absent: 0), and its percentDisplay picks the bar or the plain face.
summaryOperations{ object: string; field?: string; function: Enum<'count' | 'sum' | 'min' | 'max' | 'avg'>; relationshipField?: string; … }optionalRoll-up summary definition. The engine recomputes the value when child records are inserted/updated/deleted.
languagestringoptionalProgramming language for syntax highlighting (e.g., javascript, python, sql)
stepnumberoptionalStep increment for slider (default: 1)
currencyConfig{ currencyMode?: Enum<'dynamic' | 'fixed' | 'record'>; defaultCurrency?: string; currencyField?: string; homeAmount?: object }optionalWhich currency an amount is in: for a currency field, for a formula field whose returnType is currency, and for a summary that rolls up, through a master_detail, child amounts that follow this record's currency (currencyMode: 'record' naming this object's own code field). A summary that rolls up an amount in the home currency (a child currency field in dynamic mode, a stored home amount included) declares currencyMode: 'dynamic', with no defaultCurrency, and shows in the organization's home currency. A summary may otherwise declare only currencyMode: 'fixed', when every amount it reads is in that one currency; a count summary, any other dynamic summary and any other record roll-up are refused, by defineStack and by a single-object save or publish on a running server alike. Absent: dynamic mode, and no currency on a summary.
unitConfig{ unitMode: 'fixed'; unit: Enum<'KGM' | 'GRM' | 'MGM' | 'TNE' | 'LBR' | 'ONZ' | 'MTR' | 'MMT' | 'CMT' | 'KMT' | …> } | { unitMode: 'record'; unitField: string; unitDimension?: Enum<'mass' | 'length' | 'area' | 'volume' | 'time' | 'count' | 'package'> } | { unitMode: 'code'; unitDimension?: Enum<'mass' | 'length' | 'area' | 'volume' | 'time' | 'count' | 'package'> }optionalWhich unit a quantity is in, or that a text field holds a unit code (units of measure). On a number field: { unitMode: 'fixed', unit }, one standard UN/ECE Recommendation 20 code checked at build (e.g. KGM, MTR, H87), or { unitMode: 'record', unitField, unitDimension? }, where each record names its own unit in the sibling text field unitField names. On a text field that holds a unit code with no quantity pointing at it: { unitMode: 'code', unitDimension? }. The quantity stays a bare number; a record stores the unit CODE in exact uppercase, never an id. At write, a code must be a standard code or one of the organization's own non-retired units (sys_unit), of the restricted dimension when one is declared, and a quantity beside a blank code is refused. Refused on every other field type, formula and summary included. Absent: the number has no unit.
dimensionsintegeroptionalVector dimensionality (e.g., 1536 for OpenAI embeddings)
trackHistorybooleanoptionalOpt a media or structured-JSON field into old → new values on the record activity timeline (ADR-0052 §5b). Every other field shows them already, so true changes nothing there. false and absent read the same: values show. false is not an off switch; turn a field's values off with fieldHistory: false.
fieldHistorybooleanoptionalThis field's old → new values on the record activity timeline. Absent: they show (a media or structured-JSON type only with true). false: off, the change names the field's label only. true: on, a media or JSON type included. Off whatever this says when the object sets enable.fieldHistory: false; a credential field never shows values. Who reads a value is this field's read rule.
groupstringoptionalOlder spelling of field-group membership, still read: the key of one of the object's fieldGroups (e.g. "contact_info"); the field joins that group in field declaration order. New metadata lists members on the group instead (fieldGroups[].fields), which also sets their order. A field a group lists may not name a different group here; a field naming a group whose fields list leaves it out follows the listed ones.
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is shown only when TRUE (else hidden). e.g. Precord.type == 'invoice'. On a required field the server reads it on every write: where it is not TRUE (FALSE, or null such as an unset boolean) the field is not required for that write, and a predicate the server cannot evaluate counts as shown, so the field stays required. Reads the record's own columns, with formula fields computed over the record being written, as the form computes them over the record being edited; a read THROUGH a reference field, or a formula that reads through one, calls label(), calls can() on a write that picks no permission-gated option, or reads current_user on a system write with no user, cannot be evaluated there.
readonlyWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is read-only when TRUE. e.g. Precord.status == 'paid'. Reads the bound record's OWN columns: the field level never reads a related record, so a read THROUGH a reference field (record.account.tier) faults on every row and refuses every update that writes the field — objectstack validate refuses it. Put such a check in a validations[] script rule, whose condition is read one hop through a reference.
uiReadonlyWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — the field is read-only BY HAND on an existing record while TRUE: every console surface that honours uiReadonly (the edit dialog, record-page inline edit and the stage path, the highlight-strip chip, grid inline edit and multi-row save, kanban column drag, calendar drag, the Gantt's drag, resize, progress handle, dependency link and in-place edit, the timesheet cell, the line-item grid) does not let a person edit it, while REST, import, action and flow writes keep it, judged by the object's validations — see uiReadonly. A create is not judged: the create dialog offers the field whatever the predicate says. A predicate the console cannot evaluate locks the field, and the edit dialog refuses to submit until it is fixed. Same scope as readonlyWhen: the bound record's OWN columns, e.g. Precord.status != 'draft'. Allowed beside readonlyWhen, which is the stricter lock: where readonlyWhen is TRUE non-system writes are dropped as well. The engine never reads this key.
requiredWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — field is required when TRUE. A TRANSITION GATE, not an invariant: the write is refused only when the merged record violates the requirement AND the pre-write record complied — so the write that flips the predicate TRUE, an INSERT born inside the gate, and a write that clears the cell are all refused, while a row that was already missing the value keeps passing unrelated edits and state moves that stay inside the gate (ADR-0113 non-regression: adding the rule to a deployed object never bricks existing rows). Need an invariant every write must satisfy instead ('X may never exceed Y') — declare a validations[] script rule, which re-checks the merged record with no exemption. Enforced by evaluateValidationRules. Reads the bound record's OWN columns: the field level never reads a related record, so a read THROUGH a reference field (record.account.tier) faults on every row and refuses every write that reaches it — objectstack validate refuses it; put such a check in a validations[] script rule, whose condition is read one hop through a reference. The only slot; the conditionalRequired alias was removed in protocol 17.
dueLikebooleanoptionalDeadline semantic (date / datetime only): TRUE declares this date a deadline, so a renderer may show relative overdue wording ("Overdue 3d") and an overdue colour once it has passed. Absent or FALSE: not a deadline — nothing is inferred from the field's name. Pair with settledWhen to say when the deadline is settled for a record. Refused on any other type. Display only: nothing on the write path reads it.
settledWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalPredicate (CEL) — the deadline is SETTLED while TRUE: no overdue wording or colour applies to this record, e.g. Precord.status == 'done'. Evaluated per record like visibleWhen, reading the record's own columns as record. Requires dueLike: true on a date / datetime field; refused otherwise. Display only: nothing on the write path reads it.
conditionalFormatting{ condition: string | object; style: Record<string, string> }[]optionalCell formatting rules for this field — [{ condition, style }], the same rule a list view's conditionalFormatting declares. In order, the first rule whose CEL condition holds applies its CSS style map to THIS FIELD'S CELL wherever the field renders (grid, kanban card, record page, related list, report cell); a list view's row rules style the row, and both may apply. The condition reads value (this field's value on the record) and record (the row) and no other root, e.g. Pvalue < 0 with style: { color: '#b91c1c' }; objectstack validate refuses a condition that does not parse or reads any other root. For presentation only — a semantic state such as a deadline's overdue is declared with dueLike / settledWhen instead. Display only: nothing on the write path reads it.
widgetstringoptionalForm widget override — names a registered field component (resolved as field:<widget>) to render this field instead of the type default. Degrades to the type renderer when unregistered. e.g. "object-ref", "filter-condition", "recipient-picker".
hiddenbooleanoptional (default: false)Hidden from default UI
showOnCreatebooleanoptionalAsk for this field when a record is created. Absent or true: the field is on every create surface (the create dialog, the full-page create, an action-opened create). false: no create surface shows it; editing, the record page and lists still do, so a value is filled in after the record exists. Refused on a required: true field, with or without a defaultValue: a required field is always asked for on create. Keep the field on create, or drop required. A requiredWhen field is accepted, and its create is still refused when the predicate holds and the value is empty.
internalbooleanoptionalNever return this field's value on the generic data path — the engine OMITS the key from find/findOne results, the 201 create body and the by-id update body, on the default projection AND when a client names the field in ?select=. Storage, filtering and indexing are untouched, so a server-side verifier can still match on the column and a purpose-built mint route can still return the value once at creation. The read protection for ADR-0100's third credential channel (auth-subsystem one-way hashes on text columns). Omission, not masking: a mask signals 'a value is set', which carries no information on a required column.
readonlybooleanoptional (default: false)Read-only — never editable in forms, AND server-enforced on BOTH write paths: a non-system write to this field is silently dropped from the payload on UPDATE and on INSERT (a create can no longer directly seed e.g. approval_status: "approved"), symmetric with readonlyWhen. A stripped INSERT field still falls back to its defaultValue. Exempt from the strip on BOTH paths: isSystem writes (seed replay, migration). Exempt on the UPDATE path ONLY: an opt-in "historical" import (preserveAudit) — which admits a whitelist (the audit/timestamp family plus author-declared business readonly fields). On INSERT the exemption does NOT apply: a non-system create that requests preserveAudit still has its readonly fields stripped, and is warned loudly that the exemption is UPDATE-only — replaying archival readonly facts on create requires a system context. A normal (non-system) import is NOT system-context and still strips.
uiReadonlybooleanoptionalRead-only BY HAND: the console's editing surfaces do not let a person edit the field — the create and edit dialogs (it is left off them and out of their payload), record-page inline edit and the stage path, the highlight-strip chip, grid inline edit and multi-row save, kanban column drag, calendar drag and quick-create, the Gantt's drag, resize, progress handle, dependency link and in-place edit, the timesheet cell, the command palette's create-as prefill and the line-item grid — every console surface; the in-app assistant acting for a person does not honour it yet. Every other write KEEPS it — REST create/update, import, declarative and script actions and flows write it, judged by the object's validations exactly as an ordinary field (a state_machine rule included). For a field that changes only through actions, e.g. an order status moved by Confirm / Cancel buttons. A console create leaves the field out and the server applies its defaultValue, so a required field needs a defaultValue: without one every create from the console fails. An API, import or action insert may set it, judged by validations (a state machine's initialStates). Absent = false. Refused beside readonly: true, which already keeps every client out: readonly when no client may write the field, uiReadonly when only people at the console may not. Not a security boundary — field permissions are. The conditional twin is uiReadonlyWhen.
requiredPermissionsstring[]optional[ADR-0066 D3] Capabilities required to read/edit this field (mask on read, deny on write; AND-gate).
maskingRuleEnum<'phone' | 'id_card' | 'bank_account' | 'email' | 'name'> | { keepHead: integer; keepTail: integer }optionalPartial masking rule enforced by the runtime FieldMasker (single channel — API, UI, export and AI context all see the same masked value). A named preset ('phone' 138**5678, 'id_card' keep 6+4, 'bank_account' keep last 4, 'email' j*@example.com, 'name' keep first char) or { keepHead, keepTail }. Masked for every non-system caller unless the field's requiredPermissions are ALL held (that evaluation is the unmask gate); a permission set marking the field non-readable still deletes it entirely. Deterministic, length-preserving output; masked callers cannot filter/sort/group/aggregate on the field.
ackPlaintextMaskingbooleanoptional[ADR-0100] Affirm a generic password field's plaintext-at-rest / masked-on-read contract is intended, silencing the author-time warning. No effect on non-password fields.
systembooleanoptionalAuto-injected system/audit field (e.g. created_at, updated_by, organization_id). Tools that surface system fields separately from author-declared business fields should branch on this flag.
sortablebooleanoptional (default: true)Whether field is sortable in list views
inlineHelpTextstringoptionalHelp text displayed below the field in forms
placeholderstringoptionalPlaceholder text rendered inside the empty input (the HTML placeholder attribute); disappears once a value is entered. Distinct from inlineHelpText (always-visible help rendered beside/under the input) and description (tooltip/developer documentation).
autonumberFormatstringoptional (default: "{0000}")Auto-number format: literal text + {0000} counter, {YYYY}/{MM}/{DD}/{YYYYMMDD} date tokens (business tz), and {field_name} interpolation. Counter resets per rendered prefix (e.g. AD{YYYYMMDD}``{0000} resets daily). Omitted on an autonumber field ⇒ the contract default {0000}, which every driver and the engine fallback read, so one field numbers alike on every backend.
externalIdbooleanoptional (default: false)Not read: no upsert, import or seed matches on this flag. A seed dataset names its match field in its own externalId; an import names it in the mapping's upsertKey.
renamedFromstring[]optionalEarlier keys of THIS field, written in the field-key grammar (lowercase snake_case), e.g. renamedFrom: ['company'] on a field now keyed account_name. On a package upgrade from a version that has one of these keys and not this one, the platform carries that column's data to this field instead of adding an empty column. A field renamed twice lists both earlier keys. Each entry once; never this field's own key; never a key another field of the same object still declares (that name is still in use); never an old key another field of the same object also claims. Read only by the schema sync and the package upgrade: no record read, write or query reads it, and the type of the old column is judged when the column is carried, not here. The schema sync (boot, os migrate apply, /marketplace/install-local) renames the old column to this key before it adds any column, and refuses before any write, naming the field, the old key and the reason, when the old key is a platform column, still a live field or claimed by two fields, when both columns or several old columns exist, when the old column would narrow under this type or this field stores no column (a formula), when an index cannot follow, when an object extension names a key its own package never added to the object (install-local), or when the driver renames no column.
_lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>optionalItem-level lock — controls overlay & delete (ADR-0010).
_lockReasonstringoptionalHuman-readable reason shown when a write is refused by _lock.
_lockSourceEnum<'artifact' | 'package' | 'env-forced'>optionalLayer that set _lock (artifact | package | env-forced).
_provenanceEnum<'package' | 'org' | 'env-forced' | 'platform'>optionalOrigin of the item (package | org | env-forced | platform).
_packageIdstringoptionalOwning package machine id.
_packageVersionstringoptionalOwning package version.
_lockDocsUrlstringoptionalOptional documentation link surfaced next to _lockReason.

Nested Shape: ObjectExtension.fieldPatches[string]

PropertyTypeRequiredDescription
labelstringoptionalHuman readable label
descriptionstringoptionalTooltip/Help text
inlineHelpTextstringoptionalHelp text displayed below the field in forms
placeholderstringoptionalPlaceholder text rendered inside the empty input (the HTML placeholder attribute); disappears once a value is entered. Distinct from inlineHelpText (always-visible help rendered beside/under the input) and description (tooltip/developer documentation).
optionsRecord<string, { label?: string }>optionalDisplay patches of the base field's options, keyed by each option's stored value (which stays the vendor's); each entry takes the option display keys of BASE_FIELD_DISPLAY_WHITELIST.

Nested Shape: ObjectExtension.actionLayout

PropertyTypeRequiredDescription
list{ pinned: string[]; more?: string[] }optionalThe list scope's arrangement: actions of the object placed at list, as drawn on the list page toolbar, and $import / $export as pinned buttons (not pinned, they stay in the page's own Import / Export menu). Omit to draw it as before.
record{ pinned: string[]; more?: string[] }optionalThe record scope's arrangement: actions of the object placed at record or record_page, as drawn in the record header (record page, side preview, a phone's bottom bar). The same order leads the actions a grid row already offers, adding none: the row's ⋮ menu, its right-click menu and, on a list page, the selection bar's actions for one selected record (pinned names first, then more names, then the rest as before). The selection bar's buttons, at most three, are the first of that order; a row's own inline button does not change. Omit to draw each as before.

Nested Shape: ObjectExtension.indexes[number]

PropertyTypeRequiredDescription
namestringoptionalIndex name (auto-generated if not provided)
fieldsstring[]✅Fields included in the index
uniquefalse | 'global' | 'organization'optional (default: false)Whether the index enforces uniqueness, and at which scope (ADR-0120). 'global' = materialized over exactly fields, no organization column injected — one holder across the whole installation; 'organization' = the driver prepends the NULL-safe organization key part (COALESCE(organization_id, 'global')) at registration — one holder per organization; false/omitted = not unique. Bare true is refused (retired at protocol 18 — it was the positional spelling of 'global'): state the scope. 'tenant'/'org' are rejected — the word is 'organization'

Nested Shape: ObjectExtension.place[number][option 1]

PropertyTypeRequiredDescription
fieldstring✅A field this extension adds: a key of its own fields. An extension places only what it brings.
groupstring✅The field group it joins: a group key of the extended object, or of a group this extension adds.
afterstringoptionalPlace it right after this member of the group (any field of the group, whoever declares it).
beforestringoptionalPlace it right before this member of the group. Write after or before, not both.

Nested Shape: ObjectExtension.place[number][option 2]

PropertyTypeRequiredDescription
liststring✅The child list this package brings: a child object of this package that points at the extended object, or object.field.
afterstringoptionalPlace it right after this tab: a relatedLists entry name of the extended object (a child object, object.field, or a built-in tab).
beforestringoptionalPlace it right before this tab. Write after or before, not both.
labelstringoptionalThis list's title on the record page, as a relatedLists entry's label.
columnsstring[]optionalThis list's columns, as field names of the child object, as a relatedLists entry's columns.

Nested Shape: ObjectExtension.place[number][option 3]

PropertyTypeRequiredDescription
group{ key: string; label: string; fields?: string[]; icon?: string; … }✅The field group this extension adds (key, label, and optionally fields or relatedList).
afterstringoptionalPlace it right after this group of the extended object (a group key).
beforestringoptionalPlace it right before this group. Write after or before, not both.

Nested Shape: ObjectExtension.fieldGroups[number]

PropertyTypeRequiredDescription
keystring✅Group machine key (snake_case). Referenced by Field.group, and by a layout section's group.
labelstring✅Group display label
fieldsstring[]optionalThe group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose group names this group, in field declaration order (the older spelling, still read). A field whose group names this group but that the list does not name follows the listed ones. Refused: a listed field whose own group names another group, a field two groups list, a repeated name, and fields on a group with relatedList. A name the object does not declare is skipped.
iconstringoptionalIcon name (Lucide/Material) for the group header
descriptionstringoptionalOptional description shown under the group header
relatedListstringoptionalPlaces a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList).
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalSection visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. Precord.type == 'invoice'
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | …>optionalDeployment feature flag gating this group, from the same set an action's requiresFeature names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's visibleWhen (AND-composed after an authored visibleWhen) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API.
collapseEnum<'none' | 'expanded' | 'collapsed'>optional (default: "none")[ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). On the synthesized (default) record page the reader can fold every titled group, so there 'none' and 'expanded' both start open and only 'collapsed' starts closed.
defaultExpandedbooleanoptional[DEPRECATED → collapse] true → 'expanded', false → 'collapsed'.
collapsiblebooleanoptional[DEPRECATED → collapse] Boolean pair with collapsed; use the collapse enum.
collapsedbooleanoptional[DEPRECATED → collapse] true → 'collapsed' (collapsible, starts closed) on its own — it needs no collapsible and outranks collapsible: false; false → 'none', or 'expanded' beside collapsible: true. Use the collapse enum.

Nested Shape: ObjectExtension.relatedLists[number]

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.
hiddenbooleanoptionaltrue = this list's tab is not shown on the record page (and a reader's own arrangement cannot bring it back); absent or false = shown at this entry's position. The one way the paired .custom arrangement hides a tab: a tab it does not name still shows, after the listed ones. A built-in tab is written only as its bare name and is not hidden here.

ObjectExtensionFieldPlacement

Properties

PropertyTypeRequiredDescription
fieldstring✅A field this extension adds: a key of its own fields. An extension places only what it brings.
groupstring✅The field group it joins: a group key of the extended object, or of a group this extension adds.
afterstringoptionalPlace it right after this member of the group (any field of the group, whoever declares it).
beforestringoptionalPlace it right before this member of the group. Write after or before, not both.

ObjectExtensionGroupPlacement

Properties

PropertyTypeRequiredDescription
group{ key: string; label: string; fields?: string[]; icon?: string; … }✅The field group this extension adds (key, label, and optionally fields or relatedList).
afterstringoptionalPlace it right after this group of the extended object (a group key).
beforestringoptionalPlace it right before this group. Write after or before, not both.

Nested Shape: ObjectExtensionGroupPlacement.group

PropertyTypeRequiredDescription
keystring✅Group machine key (snake_case). Referenced by Field.group, and by a layout section's group.
labelstring✅Group display label
fieldsstring[]optionalThe group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose group names this group, in field declaration order (the older spelling, still read). A field whose group names this group but that the list does not name follows the listed ones. Refused: a listed field whose own group names another group, a field two groups list, a repeated name, and fields on a group with relatedList. A name the object does not declare is skipped.
iconstringoptionalIcon name (Lucide/Material) for the group header
descriptionstringoptionalOptional description shown under the group header
relatedListstringoptionalPlaces a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList).
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalSection visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. Precord.type == 'invoice'
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | …>optionalDeployment feature flag gating this group, from the same set an action's requiresFeature names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's visibleWhen (AND-composed after an authored visibleWhen) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API.
collapseEnum<'none' | 'expanded' | 'collapsed'>optional (default: "none")[ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). On the synthesized (default) record page the reader can fold every titled group, so there 'none' and 'expanded' both start open and only 'collapsed' starts closed.
defaultExpandedbooleanoptional[DEPRECATED → collapse] true → 'expanded', false → 'collapsed'.
collapsiblebooleanoptional[DEPRECATED → collapse] Boolean pair with collapsed; use the collapse enum.
collapsedbooleanoptional[DEPRECATED → collapse] true → 'collapsed' (collapsible, starts closed) on its own — it needs no collapsible and outranks collapsible: false; false → 'none', or 'expanded' beside collapsible: true. Use the collapse enum.

ObjectExtensionListPlacement

Properties

PropertyTypeRequiredDescription
liststring✅The child list this package brings: a child object of this package that points at the extended object, or object.field.
afterstringoptionalPlace it right after this tab: a relatedLists entry name of the extended object (a child object, object.field, or a built-in tab).
beforestringoptionalPlace it right before this tab. Write after or before, not both.
labelstringoptionalThis list's title on the record page, as a relatedLists entry's label.
columnsstring[]optionalThis list's columns, as field names of the child object, as a relatedLists entry's columns.

ObjectExtensionPlacement

Union Options

This schema accepts one of the following structures:

Option 1

Properties

PropertyTypeRequiredDescription
fieldstring✅A field this extension adds: a key of its own fields. An extension places only what it brings.
groupstring✅The field group it joins: a group key of the extended object, or of a group this extension adds.
afterstringoptionalPlace it right after this member of the group (any field of the group, whoever declares it).
beforestringoptionalPlace it right before this member of the group. Write after or before, not both.

Option 2

Properties

PropertyTypeRequiredDescription
liststring✅The child list this package brings: a child object of this package that points at the extended object, or object.field.
afterstringoptionalPlace it right after this tab: a relatedLists entry name of the extended object (a child object, object.field, or a built-in tab).
beforestringoptionalPlace it right before this tab. Write after or before, not both.
labelstringoptionalThis list's title on the record page, as a relatedLists entry's label.
columnsstring[]optionalThis list's columns, as field names of the child object, as a relatedLists entry's columns.

Option 3

Properties

PropertyTypeRequiredDescription
group{ key: string; label: string; fields?: string[]; icon?: string; … }✅The field group this extension adds (key, label, and optionally fields or relatedList).
afterstringoptionalPlace it right after this group of the extended object (a group key).
beforestringoptionalPlace it right before this group. Write after or before, not both.

Nested Shape: ObjectExtensionPlacement[option 3].group

PropertyTypeRequiredDescription
keystring✅Group machine key (snake_case). Referenced by Field.group, and by a layout section's group.
labelstring✅Group display label
fieldsstring[]optionalThe group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose group names this group, in field declaration order (the older spelling, still read). A field whose group names this group but that the list does not name follows the listed ones. Refused: a listed field whose own group names another group, a field two groups list, a repeated name, and fields on a group with relatedList. A name the object does not declare is skipped.
iconstringoptionalIcon name (Lucide/Material) for the group header
descriptionstringoptionalOptional description shown under the group header
relatedListstringoptionalPlaces a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList).
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalSection visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. Precord.type == 'invoice'
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | …>optionalDeployment feature flag gating this group, from the same set an action's requiresFeature names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's visibleWhen (AND-composed after an authored visibleWhen) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API.
collapseEnum<'none' | 'expanded' | 'collapsed'>optional (default: "none")[ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). On the synthesized (default) record page the reader can fold every titled group, so there 'none' and 'expanded' both start open and only 'collapsed' starts closed.
defaultExpandedbooleanoptional[DEPRECATED → collapse] true → 'expanded', false → 'collapsed'.
collapsiblebooleanoptional[DEPRECATED → collapse] Boolean pair with collapsed; use the collapse enum.
collapsedbooleanoptional[DEPRECATED → collapse] true → 'collapsed' (collapsible, starts closed) on its own — it needs no collapsible and outranks collapsible: false; false → 'none', or 'expanded' beside collapsible: true. Use the collapse enum.


ObjectExtensionRelatedListEntry

Union Options

This schema accepts one of the following structures:

Option 1

Type: string


Option 2

Properties

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.
hiddenbooleanoptionaltrue = this list's tab is not shown on the record page (and a reader's own arrangement cannot bring it back); absent or false = shown at this entry's position. The one way the paired .custom arrangement hides a tab: a tab it does not name still shows, after the listed ones. A built-in tab is written only as its bare name and is not hidden here.


ObjectExtensionRelatedListEntryObject

Properties

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.
hiddenbooleanoptionaltrue = this list's tab is not shown on the record page (and a reader's own arrangement cannot bring it back); absent or false = shown at this entry's position. The one way the paired .custom arrangement hides a tab: a tab it does not name still shows, after the listed ones. A built-in tab is written only as its bare name and is not hidden here.

ObjectExternalBinding

External datasource binding (ADR-0015)

Properties

PropertyTypeRequiredDescription
remoteNamestringoptionalRemote table/view name. Defaults to object.name.
remoteSchemastringoptionalRemote schema/database qualifier.
writablebooleanoptional (default: false)Per-object write opt-in (also requires datasource.external.allowWrites).
columnMapRecord<string, string>optionalRemote column name → local field name.
introspectedAtstringoptionalSet by os datasource introspect; informational.
ignoreColumnsstring[]optionalRemote columns to skip during validation (dev convenience).

ObjectFieldGroup

Properties

PropertyTypeRequiredDescription
keystring✅Group machine key (snake_case). Referenced by Field.group, and by a layout section's group.
labelstring✅Group display label
fieldsstring[]optionalThe group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose group names this group, in field declaration order (the older spelling, still read). A field whose group names this group but that the list does not name follows the listed ones. Refused: a listed field whose own group names another group, a field two groups list, a repeated name, and fields on a group with relatedList. A name the object does not declare is skipped.
iconstringoptionalIcon name (Lucide/Material) for the group header
descriptionstringoptionalOptional description shown under the group header
relatedListstringoptionalPlaces a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList).
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalSection visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. Precord.type == 'invoice'
requiresFeatureEnum<'twoFactor' | 'organization' | 'multiOrgEnabled' | 'degradedTenancy' | 'oidcProvider' | 'sso' | 'ssoEnforced' | 'directSignIn' | 'deviceAuthorization' | 'admin' | … +5 more>optionalDeployment feature flag gating this group, from the same set an action's requiresFeature names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's visibleWhen (AND-composed after an authored visibleWhen) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API.
collapseEnum<'none' | 'expanded' | 'collapsed'>optional (default: "none")[ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). On the synthesized (default) record page the reader can fold every titled group, so there 'none' and 'expanded' both start open and only 'collapsed' starts closed.
defaultExpandedbooleanoptional[DEPRECATED → collapse] true → 'expanded', false → 'collapsed'.
collapsiblebooleanoptional[DEPRECATED → collapse] Boolean pair with collapsed; use the collapse enum.
collapsedbooleanoptional[DEPRECATED → collapse] true → 'collapsed' (collapsible, starts closed) on its own — it needs no collapsible and outranks collapsible: false; false → 'none', or 'expanded' beside collapsible: true. Use the collapse enum.

Allowed Values: ObjectFieldGroup.requiresFeature

  • twoFactor
  • organization
  • multiOrgEnabled
  • degradedTenancy
  • oidcProvider
  • sso
  • ssoEnforced
  • directSignIn
  • deviceAuthorization
  • admin
  • phoneNumber
  • cloudManaged
  • phoneNumberOtp
  • emailDelivery
  • developerEditionCreate

ObjectOwnershipEnum

Allowed Values

  • own
  • extend
  • overlay

ObjectRequiredPermissions

Union Options

This schema accepts one of the following structures:

Option 1

Type: string[]


Option 2

Properties

PropertyTypeRequiredDescription
readstring[]optionalCapabilities required to read (find/findOne/count/aggregate).
createstring[]optionalCapabilities required to create (insert).
updatestring[]optionalCapabilities required to update (update/transfer/restore).
deletestring[]optionalCapabilities required to delete (delete/purge).


PerOperationRequiredPermissions

Properties

PropertyTypeRequiredDescription
readstring[]optionalCapabilities required to read (find/findOne/count/aggregate).
createstring[]optionalCapabilities required to create (insert).
updatestring[]optionalCapabilities required to update (update/transfer/restore).
deletestring[]optionalCapabilities required to delete (delete/purge).

RelatedListEntry

Union Options

This schema accepts one of the following structures:

Option 1

Type: string


Option 2

Properties

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.


RelatedListEntryObject

Properties

PropertyTypeRequiredDescription
liststring✅The relationship this entry names: a child object name (e.g. "quote_line"), or object.field when that child has more than one relationship to this object.
labelstringoptionalThis list's title on the record page (its tab and its table heading). Wins over the child FK's relatedListTitle; absent = that key, else the child object's plural label.
columnsstring[]optionalThis list's columns, as field names of the child object (e.g. ['product', 'quantity', 'amount']). Wins over the child FK's relatedListColumns; absent = that key, else the child object's derived columns. Used wherever this list is drawn: its tab, and the body table a field group places. A name that is no field of the child is refused where the child is known.

RowCrudActionOverride

Boolean-or-predicates override for a built-in CRUD affordance.

Properties

PropertyTypeRequiredDescription
enabledbooleanoptionalObject-level on/off for the generic affordance; same meaning as the bare boolean form. Omitted → managedBy bucket default.
visibleWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalCEL predicate over the record in scope (row record for edit/delete, host record for a related-list create/import toolbar); false → hide the button. Fail-closed.
disabledWhenstring | { dialect: Enum<'cel' | 'cron' | 'template'>; source: string; ast?: any; meta?: object }optionalCEL predicate over the record in scope (row record for edit/delete, host record for a related-list create/import toolbar); true → render the button disabled. Fail-soft.

TenancyConfig

Properties

PropertyTypeRequiredDescription
enabledboolean✅Enable multi-tenancy for this object
tenantFieldstringoptionalColumn this object is tenant-scoped by. Omit it unless the tenant column genuinely is not the platform's: when undeclared the driver falls back to organization_id, the kernel-injected column the RLS predicates and tenantPolicy() also assume. A declared name is honoured only when the object really has that field — otherwise the same organization_id fallback applies. No default is materialized here on purpose.

On this page

TypeScript UsageApiMethodAllowed ValuesApiOperationAllowed ValuesIndexPropertiesLifecyclePropertiesNested Shape: Lifecycle.retentionNested Shape: Lifecycle.ttlNested Shape: Lifecycle.storageNested Shape: Lifecycle.archiveNested Shape: Lifecycle.sealLifecycleClassAllowed ValuesObjectPropertiesNested Shape: Object.actionLayoutNested Shape: Object.userActionsNested Shape: Object.systemFieldsNested Shape: Object.externalNested Shape: Object.fields[string]Nested Shape: Object.indexes[number]Nested Shape: Object.fieldGroups[number]Nested Shape: Object.tenancyNested Shape: Object.accessNested Shape: Object.requiredPermissionsNested Shape: Object.lifecycleNested Shape: Object.activityMilestones[number]Nested Shape: Object.relatedLists[number]Nested Shape: Object.listViews[string]Nested Shape: Object.enableNested Shape: Object.sharingNested Shape: Object.defaultRowScopeNested Shape: Object.membershipKeys[string]Nested Shape: Object.publicSharingNested Shape: Object.actions[number]Nested Shape: Object.protectionObjectAccessConfigPropertiesObjectCapabilitiesPropertiesObjectExtensionPropertiesNested Shape: ObjectExtension.fields[string]Nested Shape: ObjectExtension.fieldPatches[string]Nested Shape: ObjectExtension.actionLayoutNested Shape: ObjectExtension.indexes[number]Nested Shape: ObjectExtension.place[number][option 1]Nested Shape: ObjectExtension.place[number][option 2]Nested Shape: ObjectExtension.place[number][option 3]Nested Shape: ObjectExtension.fieldGroups[number]Nested Shape: ObjectExtension.relatedLists[number]ObjectExtensionFieldPlacementPropertiesObjectExtensionGroupPlacementPropertiesNested Shape: ObjectExtensionGroupPlacement.groupObjectExtensionListPlacementPropertiesObjectExtensionPlacementUnion OptionsOption 1PropertiesOption 2PropertiesOption 3PropertiesNested Shape: ObjectExtensionPlacement[option 3].groupObjectExtensionRelatedListEntryUnion OptionsOption 1Option 2PropertiesObjectExtensionRelatedListEntryObjectPropertiesObjectExternalBindingPropertiesObjectFieldGroupPropertiesAllowed Values: ObjectFieldGroup.requiresFeatureObjectOwnershipEnumAllowed ValuesObjectRequiredPermissionsUnion OptionsOption 1Option 2PropertiesPerOperationRequiredPermissionsPropertiesRelatedListEntryUnion OptionsOption 1Option 2PropertiesRelatedListEntryObjectPropertiesRowCrudActionOverridePropertiesTenancyConfigProperties