{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/retirementlab-app/json-schema/retirementlab-app-auth-flow-timeline-response-schema.json",
  "title": "AuthFlowTimelineResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retirementlab-app-openapi.json#/components/schemas/AuthFlowTimelineResponse",
  "properties": {
    "generated_at": {
      "type": "string",
      "title": "Generated At"
    },
    "auth_flow_id": {
      "type": "string",
      "title": "Auth Flow Id"
    },
    "event_count": {
      "type": "integer",
      "title": "Event Count"
    },
    "first_event_at": {
      "type": "string",
      "title": "First Event At"
    },
    "last_event_at": {
      "type": "string",
      "title": "Last Event At"
    },
    "providers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Providers"
    },
    "intents": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Intents"
    },
    "outcomes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Outcomes"
    },
    "reason_codes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Reason Codes"
    },
    "stages": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Stages"
    },
    "user_ids": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "User Ids"
    },
    "anonymous_user_ids": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Anonymous User Ids"
    },
    "events": {
      "items": {
        "$ref": "#/$defs/AuthFlowTimelineEvent"
      },
      "type": "array",
      "title": "Events"
    }
  },
  "type": "object",
  "required": [
    "generated_at",
    "auth_flow_id",
    "event_count",
    "providers",
    "intents",
    "outcomes",
    "reason_codes",
    "stages",
    "user_ids",
    "anonymous_user_ids",
    "events"
  ],
  "$defs": {
    "AuthFlowTimelineEvent": {
      "properties": {
        "occurred_at": {
          "type": "string",
          "title": "Occurred At"
        },
        "stage": {
          "type": "string",
          "title": "Stage"
        },
        "outcome": {
          "type": "string",
          "title": "Outcome"
        },
        "reason_code": {
          "type": "string",
          "title": "Reason Code"
        },
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "intent": {
          "type": "string",
          "title": "Intent"
        },
        "route": {
          "type": "string",
          "title": "Route"
        },
        "method": {
          "type": "string",
          "title": "Method"
        },
        "status_class": {
          "type": "string",
          "title": "Status Class"
        },
        "status_code": {
          "type": "integer",
          "title": "Status Code"
        },
        "deploy_sha": {
          "type": "string",
          "title": "Deploy Sha"
        },
        "user_id": {
          "type": "integer",
          "title": "User Id"
        },
        "anonymous_user_id": {
          "type": "integer",
          "title": "Anonymous User Id"
        },
        "request_id": {
          "type": "string",
          "title": "Request Id"
        }
      },
      "type": "object",
      "title": "AuthFlowTimelineEvent"
    }
  }
}