{
  "name": "execute_dashboard_command",
  "description": "Publish or archive one dashboard authoring revision using a closed, typed command and exact expected revision. Actor and agent provenance are server-bound.",
  "authzMode": "privilege",
  "privilege": "RESOURCE_MANAGE",
  "effect": "destructive",
  "operationId": "manual",
  "defaults": {},
  "tags": [
    "dashboard",
    "authoring",
    "command"
  ],
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": false
  },
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "archive": {
        "type": "object"
      },
      "contentHash": {
        "minLength": 1,
        "type": "string"
      },
      "dashboardId": {
        "minLength": 1,
        "type": "string"
      },
      "draftId": {
        "minLength": 1,
        "type": "string"
      },
      "expectedRevision": {
        "additionalProperties": false,
        "properties": {
          "contentHash": {
            "type": "string"
          },
          "number": {
            "type": "integer"
          },
          "revisionId": {
            "type": "string"
          }
        },
        "required": [
          "contentHash",
          "number",
          "revisionId"
        ],
        "type": "object"
      },
      "publish": {
        "type": "object"
      }
    },
    "required": [
      "dashboardId",
      "draftId",
      "expectedRevision"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "lifecycle": {
        "additionalProperties": {},
        "type": "object"
      },
      "revision": {
        "additionalProperties": {},
        "type": "object"
      }
    },
    "required": [
      "lifecycle",
      "revision"
    ],
    "type": "object"
  }
}
