{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Create Deployment",
  "description": "Deploy an instance with configuration parameters. Params are validated against the bundle's params schema, cached on the instance, and snapshotted into the deployment.",
  "type": "object",
  "required": ["action", "params"],
  "properties": {
    "action": {
      "type": "string",
      "x-gql-type": "deployment_action",
      "title": "Action",
      "description": "The operation to perform: PROVISION to apply changes, PLAN to preview them, or DECOMMISSION to tear down infrastructure",
      "enum": ["PROVISION", "PLAN", "DECOMMISSION"]
    },
    "params": {
      "type": "object",
      "x-gql-type": "map",
      "title": "Parameters",
      "description": "Bundle configuration parameters. Validated against the bundle's params schema."
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "A short message describing the reason for this deployment",
      "maxLength": 1200,
      "examples": ["Scaling up database instance size", "Rolling back to previous config"]
    }
  }
}
