{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapeatlas/json-schema/scrapeatlas-activity-response-schema-schema.json",
  "title": "activityResponseSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapeatlas-account-usage-api-openapi.yml#/components/schemas/activityResponseSchema",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "status": {
      "type": "string",
      "const": "partial"
    },
    "requestId": {
      "type": "string",
      "format": "uuid"
    },
    "coverage": {
      "type": "object",
      "properties": {
        "complete": {
          "type": "boolean",
          "const": false
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "best_effort_usage",
              "ingestion_delay"
            ]
          }
        }
      },
      "required": [
        "complete",
        "warnings"
      ],
      "additionalProperties": false
    },
    "data": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
          "x-runtime-refinement": true
        },
        "end": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
          "x-runtime-refinement": true
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "event_id": {
                "type": "string",
                "format": "uuid"
              },
              "platform": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9-]{0,39}$"
              },
              "operation": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
              },
              "status": {
                "type": "integer",
                "minimum": 100,
                "maximum": 599
              },
              "duration_ms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4294967295
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                "x-runtime-refinement": true
              },
              "method": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "path": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^\\/v1\\/[A-Za-z0-9/-]+$",
                "maxLength": 200
              }
            },
            "required": [
              "event_id",
              "platform",
              "operation",
              "status",
              "duration_ms",
              "timestamp",
              "method",
              "path"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 2048
        }
      },
      "required": [
        "start",
        "end",
        "rows",
        "nextCursor"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "success",
    "status",
    "requestId",
    "coverage",
    "data"
  ],
  "additionalProperties": false
}