{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fuxux-com/json-schema/fuxux-com-dashboard-response-schema.json",
  "title": "DashboardResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fuxux-com-openapi.json#/components/schemas/DashboardResponse",
  "type": "object",
  "properties": {
    "profile": {
      "type": "object",
      "properties": {
        "full_name": {
          "type": "string"
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "postsThisMonth": {
          "type": "integer"
        },
        "postsLastMonth": {
          "type": "integer"
        },
        "momChange": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Month-over-month % change; null if no prior month data"
        },
        "totalPublished": {
          "type": "integer"
        },
        "upcomingThisWeek": {
          "type": "integer"
        },
        "connectedAccounts": {
          "type": "integer"
        }
      }
    },
    "upcomingPosts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          },
          "raw_prompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "post_variants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "connected": {
            "type": "boolean"
          },
          "posts": {
            "type": "integer"
          },
          "username": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}