{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-activity-stream-schema.json",
  "title": "ActivityStream",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-activity-stream-api-openapi.yml#/components/schemas/ActivityStream",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "readOnly": true
    },
    "related": {
      "type": "string",
      "readOnly": true
    },
    "summary_fields": {
      "type": "string",
      "readOnly": true
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "operation": {
      "enum": [
        "create",
        "update",
        "delete",
        "associate",
        "disassociate",
        null
      ],
      "type": [
        "string",
        "null"
      ],
      "x-spec-enum-id": "d1cf1307b8aa394e",
      "description": "The action taken with respect to the given object(s).\n\n* `create` - Entity Created\n* `update` - Entity Updated\n* `delete` - Entity Deleted\n* `associate` - Entity Associated with another Entity\n* `disassociate` - Entity was Disassociated with another Entity"
    },
    "changes": {
      "type": "string",
      "readOnly": true,
      "description": "A summary of the new and changed values when an object is created, updated, or deleted"
    },
    "object1": {
      "type": [
        "string",
        "null"
      ],
      "description": "For create, update, and delete events this is the object type that was affected. For associate and disassociate events this is the object type associated or disassociated with object2."
    },
    "object2": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unpopulated for create, update, and delete events. For associate and disassociate events this is the object type that object1 is being associated with."
    },
    "object_association": {
      "type": "string",
      "readOnly": true,
      "description": "When present, shows the field name of the role or relationship that changed."
    },
    "action_node": {
      "type": "string",
      "readOnly": true,
      "description": "The cluster node the activity took place on."
    },
    "object_type": {
      "type": "string",
      "readOnly": true,
      "description": "When present, shows the model on which the role or relationship was defined."
    }
  },
  "required": [
    "object1",
    "object2",
    "operation"
  ]
}