{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/auth/v1/get-entity-history-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Response from getEntityHistory endpoint containing audit history entries\n",
  "properties": {
    "auditHistory": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "actionType": {
            "description": "The type of action performed",
            "type": "string"
          },
          "clientId": {
            "description": "The ID of the client that performed the action",
            "type": "string"
          },
          "created": {
            "description": "Timestamp when the action occurred",
            "format": "date-time",
            "type": "string"
          },
          "entityId": {
            "description": "The entity Id on which an action was performed",
            "type": "string"
          },
          "entityType": {
            "description": "The entity type on which the action was performed (client, role, secret, hook, worker_pool)",
            "type": "string"
          }
        },
        "required": [
          "clientId",
          "actionType",
          "created",
          "entityId",
          "entityType"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "continuationToken": {
      "description": "Token to be used to get the next page of results",
      "type": "string"
    }
  },
  "required": [
    "auditHistory"
  ],
  "title": "Get Entity History Response",
  "type": "object"
}