{
"type": "object",
"additionalProperties": false,
"properties": {
"productionId": {
"type": "string",
"pattern": "^[a-fA-F0-9]{24}$",
"description": "ID of the saved Production whose asset context must remain pinned."
},
"operationId": {
"type": "string",
"pattern": "^[a-zA-Z0-9-]{16,64}$",
"description": "Persist a client-generated UUID before this mutation. Repeat identical inputs and this same ID after interruption; a new ID is a new request."
},
"expectedVersion": {
"type": "integer",
"minimum": 1,
"description": "Copy the current version from the latest workflow read. Refresh after a conflict; never increment or guess it."
},
"mode": {
"type": "string",
"enum": [
"new",
"continue_saved_update"
]
},
"sourceSnapshotRef": {
"type": "string",
"pattern": "^[a-fA-F0-9]{24}$"
},
"sourceReceiptId": {
"type": "string",
"pattern": "^[a-fA-F0-9]{24}$"
},
"targetDurationSeconds": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 3600
},
"creativeBrief": {
"type": "string",
"maxLength": 2000
},
"pacing": {
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"const": 1
},
"mode": {
"type": "string",
"enum": [
"scene",
"target"
]
}
},
"required": [
"version",
"mode"
]
},
"planningModel": {
"type": "string",
"enum": [
"gpt-6-astra",
"gpt-6.1-sol",
"gpt-6.1-terra",
"grok-4.7"
]
},
"refinementModel": {
"type": "string",
"enum": [
"gpt-6-astra",
"gpt-6.1-terra"
]
}
},
"required": [
"productionId",
"operationId",
"expectedVersion"
]
}