{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldrig-dev/json-schema/coldrig-dev-activity-page-schema.json",
  "title": "ActivityPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldrig-dev-inbox-api-openapi.yml#/components/schemas/ActivityPage",
  "type": "object",
  "required": [
    "items",
    "nextCursor"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActivityItem"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "ActivityItem": {
      "type": "object",
      "required": [
        "id",
        "kind",
        "label",
        "ts",
        "target",
        "detail"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "event",
            "deliverability"
          ]
        },
        "label": {
          "type": "string"
        },
        "ts": {
          "type": "integer"
        },
        "target": {
          "type": [
            "string",
            "null"
          ]
        },
        "detail": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}