{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayhire-com/json-schema/ayhire-com-workspace-schema.json",
  "title": "Workspace",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayhire-com-workspaces-api-openapi.yml#/components/schemas/Workspace",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "personal": {
      "type": "boolean"
    },
    "role": {
      "type": "string",
      "description": "Your role in it",
      "enum": [
        "owner",
        "member"
      ]
    },
    "current": {
      "type": "boolean",
      "description": "The one the web app and your agent are working in"
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "The company email domain it belongs to"
    },
    "domain_join": {
      "type": "string",
      "enum": [
        "off",
        "request",
        "auto"
      ]
    },
    "logo_source": {
      "type": "string",
      "enum": [
        "domain",
        "custom",
        "none"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "personal",
    "role",
    "current"
  ]
}