What the migration actually did, in the order it did it.
The same shape whether it succeeded, for [WorkspaceLifecycleOutcome]'s reason: a caller reporting a partial failure needs the body it would have read on success.
Schema
What the migration actually did, in the order it did it.
The same shape whether it succeeded, for [WorkspaceLifecycleOutcome]'s reason: a caller reporting a partial failure needs the body it would have read on success.
Type object
| Field | Type | Description |
|---|---|---|
| workspacerequired | string | |
| fromrequired | string | The owner the operation found. On a retry after the move already committed this is already the destination. |
| torequired | string | |
| terminated_sessionsrequired | array of string | The sessions this call closed. Empty on a retry, and empty when the workspace was already where it was being sent. |
| sessions_closedrequired | boolean | Whether the terminals closed. |
| mutation_appliedrequired | boolean | Whether the Store reassignment committed. |
| replacement | Replacement or null | |
| projects_rescoped | array of string or null | The projects whose typed scope now names the new owner, or Three-valued on purpose, and the third value is the one that matters. A repair that could not run is deliberately not a failed migration. The workspace has moved, the fact is published, and every other reader is right; treating an unreachable session host as a failure would invite a caller to retry the whole operation as though nothing had happened. |
{
"workspace": "string",
"from": "string",
"to": "string",
"terminated_sessions": [
"string"
],
"sessions_closed": false,
"mutation_applied": false,
"replacement": {
"state": "created",
"workspace": {
"id": "00000000-0000-4000-8000-000000000000",
"owner": {},
"name": "string",
"created_at": 0,
"last_opened_at": 0,
"icon": "string",
"color": "string",
"pinned": false,
"archived": false,
"deleted_at": 0,
"position": 0
}
},
"projects_rescoped": [
"string"
]
}The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.
Generated from contract version 1. Last updated .