{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-workspace-schema.json",
  "title": "Workspace",
  "description": "A workspace object representing an Aidelly workspace",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-workspaces-api-openapi.yml#/components/schemas/Workspace",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "admin",
        "member",
        "client"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "own",
        "client"
      ]
    },
    "workspace_type": {
      "type": "string",
      "enum": [
        "traditional",
        "agentic"
      ]
    },
    "is_owner": {
      "type": "boolean"
    },
    "is_billing_owner": {
      "type": "boolean"
    },
    "is_current": {
      "type": "boolean"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}