{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsocialclaw-com/json-schema/getsocialclaw-com-dashboard-session-response-schema.json",
  "title": "DashboardSessionResponse",
  "description": "Current dashboard session response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsocialclaw-com-auth-billing-and-provider-callbacks-api-openapi.yml#/components/schemas/DashboardSessionResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "ok": {
      "const": true
    },
    "authenticated": {
      "type": "boolean",
      "description": "Whether a dashboard session exists."
    },
    "user": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "tenant": {
      "anyOf": [
        {
          "$ref": "#/$defs/Tenant"
        },
        {
          "type": "null"
        }
      ]
    },
    "membership": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    }
  },
  "required": [
    "ok"
  ],
  "$defs": {
    "Tenant": {
      "type": "object",
      "description": "Workspace visible to the authenticated API key or dashboard session.",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string",
          "description": "Workspace id."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace name."
        },
        "plan": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace plan."
        },
        "subscriptionStatus": {
          "type": [
            "string",
            "null"
          ],
          "description": "Billing subscription status."
        },
        "entitlements": {
          "type": [
            "object",
            "null"
          ],
          "description": "Plan capabilities and limits."
        }
      },
      "required": [
        "id"
      ]
    }
  }
}