Appearance
WorkspaceVersion
Type: Object
One immutable version of a workspace's definition. Versions form the authoring history; listWorkspaceVersions returns them newest first.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| createdAt | ISO8601! | ISO-8601 timestamp when this version was authored (not when it was published). | ||
| definition | String! | The version's workspace definition as a verbatim JSON document (spec workspace-v1). | ||
| id | WorkspaceVersionID! | TypeID of this immutable version record (prefix wsv, e.g. "wsv_01K…"). | ||
| status | WorkspaceStatus! | DRAFT while this version is still being authored; PUBLISHED once publishWorkspace promotes it. Several DRAFT versions may be open at once — editing a workspace amends the newest, while createWorkspaceVersion always mints another — and publishing promotes the one it names, leaving the rest open. | ||
| version | Int! | Sequential version number within the workspace, starting at 1 and incrementing per authored draft. | ||
| workspaceId | WorkspaceID! | TypeID of the workspace this version belongs to (prefix wks). |