ObjectStackObjectStack

Package Lifecycle — API Protocol reference

Response payloads for the dispatcher-served packages.* lifecycle routes — the ADR-0067 commit timeline, the ADR-0033 draft batch doors.

Package lifecycle response contracts (#12038)

Response payloads for the dispatcher-served packages.* lifecycle routes — the ADR-0067 commit timeline, the ADR-0033 draft batch doors, the ADR-0070 export / adopt / duplicate family — ruled on 2026-08-27 (#12038, 1C · 2C · 3A · 4A · 5A).

Every schema here is a DESCRIBE-ONLY TRANSCRIPTION of the return type its producer already declares inline (@objectstack/metadata-protocol protocol.ts, except where a schema's own docblock says otherwise) — authoring one changes no wire byte. All of these routes are served by the runtime dispatcher ONLY (no REST twin — #12038 survey §1b), which answers through the { success, data } envelope (http-dispatcher.ts), so each schema declares the data payload, envelope-free — the same convention as PublishPackageDraftsResponseSchema and its ledger row.

Two pairs are the exception, each with a request half its producer PARSES rather than a transcription: ImportUnmanagedPackageRequestSchema / ImportUnmanagedPackageResponseSchema (ADR-0131 D6) declare a protocol verb no route serves yet, and EnsureCustomizationPackageRequestSchema / EnsureCustomizationPackageResponseSchema (ADR-0146 D3) declare the ensure door of a base's paired .custom package — see their own docblocks.

packages.publish's contract is NOT here: its producer (MetadataManager.publishPackage) already has an exact published schema, PackagePublishResultSchema in @objectstack/spec/system — re-exported below into this /api namespace (ruling 5A: re-export, never a second copy) because the route-ledger resolver looks names up only in the API protocol's entries — @objectstack/spec/api, and /api-assembled for the declarations that embed the assembled package body (#18576).

The retired PackageRollbackResponseSchema and its PackageApiContracts.rollbackPackage binding (see ./package-api-assembled.zod.ts) declared a VERSION rollback against the live COMMIT-rollback path; RollbackToPackageCommitResponseSchema below is the true contract, authored after that retirement per the ruling's sequencing (3A).

Source: packages/spec/src/api/package-lifecycle.zod.ts

TypeScript Usage

import { DiscardPackageDraftsResponseSchema, DuplicatePackageResponseSchema, EnsureCustomizationPackageRequestSchema, EnsureCustomizationPackageResponseSchema, GetPackageCustomizationsRequestSchema, GetPackageCustomizationsResponseSchema, ImportUnmanagedPackageRequestSchema, ImportUnmanagedPackageResponseSchema, ListPackageCommitsResponseSchema, PackageExportBundleSchema, PackageExportManifestSchema, PackagePublishResultSchema, ReassignOrphanedMetadataResponseSchema, RevertPackageCommitResponseSchema, RollbackToPackageCommitResponseSchema } from '@objectstack/spec/api';
import type { DiscardPackageDraftsResponse, DuplicatePackageResponse, EnsureCustomizationPackageRequest, EnsureCustomizationPackageResponse, GetPackageCustomizationsRequest, GetPackageCustomizationsResponse, ImportUnmanagedPackageRequest, ImportUnmanagedPackageResponse, ListPackageCommitsResponse, PackageExportBundle, PackageExportManifest, PackagePublishResult, ReassignOrphanedMetadataResponse, RevertPackageCommitResponse, RollbackToPackageCommitResponse } from '@objectstack/spec/api';

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

DiscardPackageDraftsResponse

Properties

PropertyTypeRequiredDescription
successboolean✅True exactly when nothing failed.
discardedCountnumber✅How many drafts were discarded.
failedCountnumber✅How many drafts could not be discarded.
discarded{ type: string; name: string }[]✅Every draft that was discarded.
failed{ type: string; name: string; error: string; code?: string }[]✅Every draft the discard could not remove.

Nested Shape: DiscardPackageDraftsResponse.discarded[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the discarded draft.
namestring✅Name of the discarded draft.

Nested Shape: DiscardPackageDraftsResponse.failed[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the failing draft.
namestring✅Name of the failing draft.
errorstring✅Why the discard failed.
codestringoptionalMachine-readable failure code, when one was recorded.

DuplicatePackageResponse

Properties

PropertyTypeRequiredDescription
successboolean✅The duplicate's own verdict: true exactly when nothing failed AND at least one item was copied.
copiedCountnumber✅How many items were copied.
failedCountnumber✅How many items could not be copied.
targetPackageIdstring✅The new package the base was cloned into.
copied{ type: string; name: string }[]✅Every item that was copied.
failed{ type: string; name: string; error: string }[]✅Every item the clone could not copy.

Nested Shape: DuplicatePackageResponse.copied[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the copied item.
namestring✅Name of the copied item.

Nested Shape: DuplicatePackageResponse.failed[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the failing item.
namestring✅Name of the failing item.
errorstring✅Why copying it failed.

EnsureCustomizationPackageRequest

Properties

PropertyTypeRequiredDescription
basePackageIdstring✅Id of the installed base whose paired customization package is ensured (com.acme.crm → com.acme.crm.custom). The base must be installed and read-only — a writable base is customized directly — and must not itself be a customization package.

EnsureCustomizationPackageResponse

Properties

PropertyTypeRequiredDescription
basePackageIdstring✅The base the pair customizes.
packageIdstring✅The paired customization package: <basePackageId>.custom.
namespacestring✅The pair's namespace: the base's namespace followed by _custom (crm → crm_custom), set explicitly and never derived from the pair's id. A new object authored into the pair is named <namespace>_<short>.
dependencyRangestring✅The range the pair declares on its base in manifest.dependencies. A created pair declares ^<major> of the base's version at creation; an existing pair answers the range it declares, unchanged.
createdboolean✅True when this call created the pair; false when the pair was already installed and was returned unchanged.
writableboolean✅Whether the pair is a writable package — the verdict the package read doors serve as writable. A created pair is writable; an existing pair delivered by code or an installed artifact is not, and its items are authored where it is built.

GetPackageCustomizationsRequest

Per-package customization read request: the base package id, no query parameters.

Properties

PropertyTypeRequiredDescription
packageIdstring✅The installed BASE package whose customizations are read (e.g. "com.acme.crm"). A paired <base>.custom id is refused 400 VALIDATION_ERROR with a message naming its base; an id no installed package carries answers 404.

GetPackageCustomizationsResponse

Per-package customization read: overrides, extensions, arrangements and switched-off items of one installed base, and the fields, flows and navigation items other packages contribute to it.

Properties

PropertyTypeRequiredDescription
packageIdstring✅The base package the customizations are of (the request's id).
overrides{ type: string; name: string; member?: string; basedOn?: string; … }[]✅Every ACTIVE item of the base's paired <base>.custom package that declares overrides.package = the base and that the effective read serves over the base's item of the same name: the rows the served-override predicate admits (a declaration from any other package, and an undeclared pair item, are not listed), minus the stored rows every read declines (a shipped flow name). Ordered by type, name and member.
extensions{ object: string; kind: Enum<'field' | 'validation' | 'index'>; name?: string; fields?: string[] }[]✅Every field, validation rule and index the paired <base>.custom package declares in an object extension (objectExtensions) of an object the base owns, one entry per member, as the extension declares it. Ordered by object, kind and name.
arrangements{ object: string; key: Enum<'fieldGroups' | 'relatedLists' | 'actionLayout'> }[]✅Every arrangement the paired <base>.custom package writes in an object extension of an object the base owns: one entry per object and key the extension carries a value under (an empty list included), whichever of the base's pairs writes it. The extension declares that arrangement whole and it replaces the owner's (ADR-0146 D10); the entry names it and nothing more: its content is the pair's object_extension item, and nothing is compared with the base. Ordered by object, then key in the order fieldGroups, relatedLists, actionLayout.
switchedOff{ type: string; name: string }[]✅Every activation-ledger row (sys_metadata_activation) that records the base as its package and active: false: the base's items this deployment switched off. Ordered by type and name.
contributions({ kind: Enum<'field' | 'flow'>; object: string; name: string; packageId: string } | { kind: 'nav'; app: string; group?: string; name: string; … })[]✅Every field, flow and navigation item another installed package contributes to the base, one entry per item and contributing package: the fields of every object extension of an object the base owns, from any package but the base and its pair (a disabled package's are not listed, as the served object withholds its extension); every flow registered under such a package whose trigger object the base owns (a flow of a disabled package is not served, so not listed); and every navigation item such a package contributes to an app the base owns (a disabled package's are not listed). The entry shape is per kind: object for field and flow, app and an optional group for nav. Ordered: the field and flow entries first, by object, kind, name and package; then the nav entries, by app, group (an entry with no group first), name and package.
counts{ overrides: integer; extensions: integer; arrangements: integer; switchedOff: integer; … }✅Each list's length, derived from the lists in this same answer.

Nested Shape: GetPackageCustomizationsResponse.overrides[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the overriding item, canonical singular (e.g. view).
namestring✅Name of the item: the base's name it is served under.
memberstringoptionalThe bundle member, for a metadata type whose identity is a pair (email_template, identified by (name, locale)): its discriminator value. Absent for a type whose identity is its name alone.
basedOnstringoptionalThe base package version the declaration records (overrides.basedOn), copied as stored and never judged. Absent when the stored body records none.
versionintegeroptionalThe overriding item's stored history version, when the row carries one.

Nested Shape: GetPackageCustomizationsResponse.extensions[number]

PropertyTypeRequiredDescription
objectstring✅The base-owned object the member is added to.
kindEnum<'field' | 'validation' | 'index'>✅Which collection of the object the member joins.
namestringoptionalThe member's declared name: the field name, the validation rule name, the index name. Absent only for an index declared without a name.
fieldsstring[]optionalFor an index: the fields it covers. Absent for a field or a validation.

Nested Shape: GetPackageCustomizationsResponse.arrangements[number]

PropertyTypeRequiredDescription
objectstring✅The base-owned object whose arrangement the pair's extension declares.
keyEnum<'fieldGroups' | 'relatedLists' | 'actionLayout'>✅Which arrangement the extension writes, under its key (CUSTOM_ARRANGEMENT_KEYS): fieldGroups, the record page's field groups; relatedLists, its tab list (order, titles, hidden tabs); actionLayout, its action layout.

Nested Shape: GetPackageCustomizationsResponse.switchedOff[number]

PropertyTypeRequiredDescription
typestring✅The ledger row's metadata type (flow, action, position, …).
namestring✅The switched-off item's name.

Nested Shape: GetPackageCustomizationsResponse.contributions[number][option 1]

A field or flow another package contributes to one of the base's objects.

PropertyTypeRequiredDescription
kindEnum<'field' | 'flow'>✅What is contributed: field, a field another package's object extension (objectExtensions) adds to one of the base's objects; flow, a flow another package ships whose trigger object (its start node's config.objectName) is one of the base's objects.
objectstring✅The base-owned object the item is on: the extended object, or the flow's trigger object.
namestring✅The item's name: the field name as the extension declares it, or the flow's name.
packageIdstring✅The package that contributes the item: the extension's package, or the package the flow is registered under. Never the base and never its <base>.custom pair.

Nested Shape: GetPackageCustomizationsResponse.contributions[number][option 2]

A navigation item another installed package contributes to an app the base owns, one entry per item of the contribution's items (a contributed group's children ride inside it and are not entries of their own), read from the same contribution registry the served app's navigation fold reads (ADR-0029 D7). An item that declares no id (a separator may omit it) has no name to give and is not an entry. A disabled package's contributions are not listed, as the fold drops them.

PropertyTypeRequiredDescription
kind'nav'✅What is contributed: nav, a navigation item another package's navigationContributions entry adds to the navigation of an app the base owns.
appstring✅The base-owned app the item is contributed to: the contribution's app.
groupstringoptionalThe group nav item the contribution targets: its group, as the contribution declares it. Absent when the contribution targets the app's top level. A group the app does not declare is still named here, though the served navigation appends those items at the app's top level.
namestring✅The nav item's id, as the contribution's items declare it.
packageIdstring✅The package that contributes the item: the package whose navigationContributions declares it. Never the base and never its <base>.custom pair.

Nested Shape: GetPackageCustomizationsResponse.counts

PropertyTypeRequiredDescription
overridesinteger✅overrides.length.
extensionsinteger✅extensions.length: members, not objects.
arrangementsinteger✅arrangements.length: object and key pairs, not objects.
switchedOffinteger✅switchedOff.length.
contributionsinteger✅contributions.length: items, not packages.

ImportUnmanagedPackageRequest

Properties

PropertyTypeRequiredDescription
manifestRecord<string, any>✅The package to import: ONE package's assembled body, flattened — its manifest fields beside its metadata collections (objects, views, …), the shape the install door hands the manifest service. An artifact carrying packages is refused: import each package body on its own.
targetPackageIdstringoptionalId of the NEW writable base the items are written into, in reverse-domain form. It must differ from the source id and name no installed package. Defaults to <manifest.id>-copy.
targetNamestringoptionalDisplay name of the new base. Defaults to the source package's name.
targetNamespacestringoptionalThe namespace the copy is renamed into: the new base's namespace, and the prefix every copied object name takes in place of the source's, with every reference to a renamed name rewritten (the rename duplicatePackage applies). Judged by manifest.namespace's own declaration; a platform-reserved namespace (base, system, sys) is refused. Absent, the copy keeps the source package's namespace.

ImportUnmanagedPackageResponse

Properties

PropertyTypeRequiredDescription
sourcePackageIdstring✅The id of the package the items were copied from.
sourceVersionstringoptionalThe version the imported body declared, when it declared one.
targetPackageIdstring✅The new writable base that owns every copied item. Nothing is registered under the source id.
namespacestring✅The base's namespace — the request's targetNamespace when it named one, else the SOURCE package's, kept so every copied object name stays valid.
sourceNamespacestringoptionalThe SOURCE package's namespace, present when the copy was renamed into namespace — the provenance of every copied name. Absent when the copy kept the source's namespace.
copiedCountnumber✅How many items were copied.
copied{ type: string; name: string }[]✅Every item that was copied, in the order it was written.
strippedLocks{ type: string; name: string; lock: Enum<'no-overlay' | 'no-delete' | 'full'>; reason?: string }[]✅Every protection lock the package shipped on a copied item and the copy does not keep, in the order the items were written. Empty when the package locked nothing.

Nested Shape: ImportUnmanagedPackageResponse.copied[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the copied item.
namestring✅Name of the copied item.

Nested Shape: ImportUnmanagedPackageResponse.strippedLocks[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the copied item.
namestring✅Name of the copied item.
lockEnum<'no-overlay' | 'no-delete' | 'full'>✅The lock the package shipped on the item — its protection block's lock, else its _lock. The copy carries no lock.
reasonstringoptionalThe reason the package gave for that lock, verbatim. Absent when it gave none.

ListPackageCommitsResponse

Properties

PropertyTypeRequiredDescription
commits{ id: string; operation: Enum<'apply' | 'revert'>; message?: string; actor?: string; … }[]✅The commit timeline, newest first.

Nested Shape: ListPackageCommitsResponse.commits[number]

PropertyTypeRequiredDescription
idstring✅Commit id.
operationEnum<'apply' | 'revert'>✅Whether the commit applied changes or reverted an earlier commit.
messagestringoptionalCommit message, when one was recorded.
actorstringoptionalWho made the commit, when recorded.
aiModelstringoptionalAI model that authored the change, when recorded.
parentCommitIdstringoptionalThe commit this one chains from, when recorded.
itemCountnumber✅How many items the commit touched.
items{ type: string; name: string; member?: string; existedBefore: boolean; … }[]✅The items the commit touched.
createdAtstringoptionalWhen the commit was made (ISO-8601 string), when recorded.

PackageExportBundle

Whole-deployment export, the answer of GET /packages/export (os package export): every installed package the deployment's own code does not register (registry source other than code), as installable packages in dependency order. Carries no credential value and no enabled state. A package whose export cannot be assembled fails the whole read, naming it.

Properties

PropertyTypeRequiredDescription
packages({ id: string; name: string; version: string; namespace?: string; … } & Record<string, any>)[]✅Every package whose registry row's source is not code (the marketplace and authored packages, a .custom pair among them), enabled or not, each once and each as GET /packages/:id/export answers it, dependencies first: an entry comes after every entry its package's manifest.dependencies names, so a .custom pair comes after its base. Install the entries in this order; never re-sort them. No entry carries an enabled state, so every entry installs enabled. Empty when every package of the deployment is registered by its own code.

Nested Shape: PackageExportBundle.packages[number]

PropertyTypeRequiredDescription
idstring✅The exported package's id.
namestring✅The exported package's machine name.
versionstring✅The exported package's version.
namespacestringoptionalThe namespace the package was installed with, as its registry row's manifest declares it; absent when the row declares none. An install of the export keeps it instead of deriving one from the id, so a .custom pair is reinstalled under its own namespace rather than custom.
dependenciesRecord<string, string>optionalThe packages this package depends on, each id mapped to its version range, as its registry row's manifest declares them; absent when the row declares none. An install of the export orders it after each of them (ADR-0141 D5), and a .custom pair keeps the edge to its base that admits its overrides (ADR-0146 D2).
labelstringoptionalDisplay label, when the package declares one.
withheldMaps{ type: 'connector'; name: string; path: Enum<'providerConfig.headers' | 'providerConfig.defaultHeaders' | …> }[]optionalEvery map the export withheld WHOLE because a served read never carries it: a connector's header and environment-variable maps. The item is written with that map absent, so an import reads this list to tell an incomplete map from one the package never had, and names each one for an operator to re-enter. Positions only: no header or variable name is listed. Absence says nothing about what was withheld when the exporter predates this key; from an exporter that writes it, absence means nothing was withheld.

PackageExportManifest

Properties

PropertyTypeRequiredDescription
idstring✅The exported package's id.
namestring✅The exported package's machine name.
versionstring✅The exported package's version.
namespacestringoptionalThe namespace the package was installed with, as its registry row's manifest declares it; absent when the row declares none. An install of the export keeps it instead of deriving one from the id, so a .custom pair is reinstalled under its own namespace rather than custom.
dependenciesRecord<string, string>optionalThe packages this package depends on, each id mapped to its version range, as its registry row's manifest declares them; absent when the row declares none. An install of the export orders it after each of them (ADR-0141 D5), and a .custom pair keeps the edge to its base that admits its overrides (ADR-0146 D2).
labelstringoptionalDisplay label, when the package declares one.
withheldMaps{ type: 'connector'; name: string; path: Enum<'providerConfig.headers' | 'providerConfig.defaultHeaders' | …> }[]optionalEvery map the export withheld WHOLE because a served read never carries it: a connector's header and environment-variable maps. The item is written with that map absent, so an import reads this list to tell an incomplete map from one the package never had, and names each one for an operator to re-enter. Positions only: no header or variable name is listed. Absence says nothing about what was withheld when the exporter predates this key; from an exporter that writes it, absence means nothing was withheld.

Nested Shape: PackageExportManifest.withheldMaps[number]

PropertyTypeRequiredDescription
type'connector'✅Metadata type of the item whose map was withheld.
namestring✅Name of the item whose map was withheld.
pathEnum<'providerConfig.headers' | 'providerConfig.defaultHeaders' | …>✅Dot path of the withheld map inside the item.

PackagePublishResult

Properties

PropertyTypeRequiredDescription
successboolean✅Whether the publish succeeded
packageIdstring✅The package ID that was published
versioninteger✅New version number after publish
publishedAtstring✅Publish timestamp
itemsPublishedinteger✅Total metadata items published
validationErrors{ type: string; name: string; message: string }[]optionalValidation errors if publish failed

Nested Shape: PackagePublishResult.validationErrors[number]

PropertyTypeRequiredDescription
typestring✅Metadata type that failed validation
namestring✅Item name that failed validation
messagestring✅Validation error message

ReassignOrphanedMetadataResponse

Properties

PropertyTypeRequiredDescription
successboolean✅Whether the reassignment ran.
reassignedCountnumber✅How many orphaned items were adopted.
reassigned{ type: string; name: string }[]✅Every item that was adopted.
targetPackageIdstring✅The package the items were adopted into.

Nested Shape: ReassignOrphanedMetadataResponse.reassigned[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the adopted item.
namestring✅Name of the adopted item.

RevertPackageCommitResponse

Properties

PropertyTypeRequiredDescription
successboolean✅True exactly when nothing failed.
revertedCountnumber✅How many items were reverted.
failedCountnumber✅How many items could not be reverted.
reverted{ type: string; name: string; action: Enum<'removed' | 'restored'> }[]✅Every item the revert touched.
failed{ type: string; name: string; error: string; code?: string }[]✅Every item the revert could not touch.
revertCommitIdstringoptionalId of the commit the revert itself created, when one was written.
advisories{ rule: string; path: string; where: string; message: string; … }[]optionalWhat the revert did beyond restoring its items, for each object an item restored, in the same element shape and omitted-when-empty discipline as SaveMetaItemResponseSchema.advisories. Present ONLY when at least one entry was raised: an empty array is never emitted, so a clean answer's bytes are unchanged and a caller that ignores this key behaves exactly as before. Three rules ride it: object-storage-sync-refused (warning), the restored object's storage sync was refused; and, per stored computed field (a non-formula field declaring expression) the restore makes compute something new (added back, turned from a formula or a plain field, or its expression, stored type or scale changed), the fill of the object's existing rows the save door also runs: stored-expression-filled (info, the rows written) or stored-expression-fill-incomplete (warning, what is left and how to fill it). The items it names reverted either way.

Nested Shape: RevertPackageCommitResponse.reverted[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the reverted item.
namestring✅Name of the reverted item.
actionEnum<'removed' | 'restored'>✅What the revert did to the item — removed what the commit created, or restored what it overwrote.

Nested Shape: RevertPackageCommitResponse.failed[number]

PropertyTypeRequiredDescription
typestring✅Metadata type of the failing item.
namestring✅Name of the failing item.
errorstring✅Why the revert failed for this item.
codestringoptionalMachine-readable failure code, when one was recorded.

Nested Shape: RevertPackageCommitResponse.advisories[number]

PropertyTypeRequiredDescription
rulestring✅Stable diagnostic rule id (flow-multi-write-unfiltered, approval-expression-invalid, …). Machine-readable and stable across releases — the key a renderer groups or suppresses by.
pathstring✅Config path inside the SUBMITTED body (flows[0].nodes[1].config.multi), so an editor can jump to the offending key. May be empty when the finding is about the item as a whole. The TOP-LEVEL collection entry follows one rule. The gate evaluates against a private per-write snapshot whose indexes no caller can resolve; a collection-resident write type is one whose collection that snapshot fills with the tenant's other stored items beside the written one, and there the entry is keyed by NAME, never by an array index — for example objects.acme_invoice.sharingModel (an object write) or datasets.acme_invoice_metrics.dimensions[0].field (a dataset write). Every other write type is the sole member of its own collection in that snapshot, so its [0] IS the written item and stays positional (for example flows[0]...). Which write types are collection-resident is derived, never listed: @objectstack/lint's runtime gate computes the set (NAME_KEYED_STACK_KEYS) as the collections it carries as resolution context that a gated write type also lands in, so it changes with the gate, not with this text. An entry whose name cannot be spliced into a dotted path keeps its index. Nested positions inside one named item stay positional (objects.acme_invoice.indexes[1]): they index the author's own document.
wherestring✅Human-readable location — flow "leave_approval" · node "approve". Prose for a person; use path for anything mechanical.
messagestring✅What is wrong, in the rule author's own words.
hintstring✅How to fix it.
severityEnum<'error' | 'warning' | 'info'>✅How the gate treated this finding. error means the write was REFUSED (these appear on the 422, never on a 2xx); warning / info are advisory — the write succeeded and the finding is FYI.
userMessagestringoptionalThe finding's user-facing sentence, composed by its producer in the request's locale (else the workspace default locale, else en) — the same field name and producer-marked meaning as ApiErrorSchema.userMessage. Present only when the producer authors a user sentence for this rule; absent, a consumer renders message as before. Consumers render it as received; rule stays the stable id and message / hint stay the developer-facing text.

RollbackToPackageCommitResponse

Properties

PropertyTypeRequiredDescription
successboolean✅True exactly when nothing failed.
revertedCommitsstring[]✅Ids of the commits that were rolled back, in the order they were reverted.
failed{ commitId: string; error: string }[]✅Every commit the rollback could not revert.
advisories{ rule: string; path: string; where: string; message: string; … }[]optionalEvery reverted commit's own advisories (RevertPackageCommitResponseSchema.advisories: a refused storage sync, and the fill of each restored object's changed stored computed fields), in the order the commits were reverted. Present ONLY when at least one step raised one: an empty array is never emitted, so a clean answer's bytes are unchanged.

Nested Shape: RollbackToPackageCommitResponse.failed[number]

PropertyTypeRequiredDescription
commitIdstring✅The commit that could not be reverted.
errorstring✅Why reverting it failed.

Nested Shape: RollbackToPackageCommitResponse.advisories[number]

PropertyTypeRequiredDescription
rulestring✅Stable diagnostic rule id (flow-multi-write-unfiltered, approval-expression-invalid, …). Machine-readable and stable across releases — the key a renderer groups or suppresses by.
pathstring✅Config path inside the SUBMITTED body (flows[0].nodes[1].config.multi), so an editor can jump to the offending key. May be empty when the finding is about the item as a whole. The TOP-LEVEL collection entry follows one rule. The gate evaluates against a private per-write snapshot whose indexes no caller can resolve; a collection-resident write type is one whose collection that snapshot fills with the tenant's other stored items beside the written one, and there the entry is keyed by NAME, never by an array index — for example objects.acme_invoice.sharingModel (an object write) or datasets.acme_invoice_metrics.dimensions[0].field (a dataset write). Every other write type is the sole member of its own collection in that snapshot, so its [0] IS the written item and stays positional (for example flows[0]...). Which write types are collection-resident is derived, never listed: @objectstack/lint's runtime gate computes the set (NAME_KEYED_STACK_KEYS) as the collections it carries as resolution context that a gated write type also lands in, so it changes with the gate, not with this text. An entry whose name cannot be spliced into a dotted path keeps its index. Nested positions inside one named item stay positional (objects.acme_invoice.indexes[1]): they index the author's own document.
wherestring✅Human-readable location — flow "leave_approval" · node "approve". Prose for a person; use path for anything mechanical.
messagestring✅What is wrong, in the rule author's own words.
hintstring✅How to fix it.
severityEnum<'error' | 'warning' | 'info'>✅How the gate treated this finding. error means the write was REFUSED (these appear on the 422, never on a 2xx); warning / info are advisory — the write succeeded and the finding is FYI.
userMessagestringoptionalThe finding's user-facing sentence, composed by its producer in the request's locale (else the workspace default locale, else en) — the same field name and producer-marked meaning as ApiErrorSchema.userMessage. Present only when the producer authors a user sentence for this rule; absent, a consumer renders message as before. Consumers render it as received; rule stays the stable id and message / hint stay the developer-facing text.

On this page

Package lifecycle response contracts (#12038)TypeScript UsageDiscardPackageDraftsResponsePropertiesNested Shape: DiscardPackageDraftsResponse.discarded[number]Nested Shape: DiscardPackageDraftsResponse.failed[number]DuplicatePackageResponsePropertiesNested Shape: DuplicatePackageResponse.copied[number]Nested Shape: DuplicatePackageResponse.failed[number]EnsureCustomizationPackageRequestPropertiesEnsureCustomizationPackageResponsePropertiesGetPackageCustomizationsRequestPropertiesGetPackageCustomizationsResponsePropertiesNested Shape: GetPackageCustomizationsResponse.overrides[number]Nested Shape: GetPackageCustomizationsResponse.extensions[number]Nested Shape: GetPackageCustomizationsResponse.arrangements[number]Nested Shape: GetPackageCustomizationsResponse.switchedOff[number]Nested Shape: GetPackageCustomizationsResponse.contributions[number][option 1]Nested Shape: GetPackageCustomizationsResponse.contributions[number][option 2]Nested Shape: GetPackageCustomizationsResponse.countsImportUnmanagedPackageRequestPropertiesImportUnmanagedPackageResponsePropertiesNested Shape: ImportUnmanagedPackageResponse.copied[number]Nested Shape: ImportUnmanagedPackageResponse.strippedLocks[number]ListPackageCommitsResponsePropertiesNested Shape: ListPackageCommitsResponse.commits[number]PackageExportBundlePropertiesNested Shape: PackageExportBundle.packages[number]PackageExportManifestPropertiesNested Shape: PackageExportManifest.withheldMaps[number]PackagePublishResultPropertiesNested Shape: PackagePublishResult.validationErrors[number]ReassignOrphanedMetadataResponsePropertiesNested Shape: ReassignOrphanedMetadataResponse.reassigned[number]RevertPackageCommitResponsePropertiesNested Shape: RevertPackageCommitResponse.reverted[number]Nested Shape: RevertPackageCommitResponse.failed[number]Nested Shape: RevertPackageCommitResponse.advisories[number]RollbackToPackageCommitResponsePropertiesNested Shape: RollbackToPackageCommitResponse.failed[number]Nested Shape: RollbackToPackageCommitResponse.advisories[number]