{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antwork-io/json-schema/antwork-io-workspace-schema.json",
  "title": "Workspace",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antwork-io-workspaces-api-openapi.yml#/components/schemas/Workspace",
  "type": "object",
  "required": [
    "object",
    "id",
    "name",
    "brandVersion"
  ],
  "properties": {
    "object": {
      "const": "workspace"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ]
    },
    "preferredTimes": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{2}:\\d{2}$"
      },
      "description": "Preferred posting times, HH:MM in `timezone`."
    },
    "tagOutboundLinks": {
      "type": "boolean",
      "description": "UTM tags on links to the workspace's own website when a post publishes."
    },
    "brandVersion": {
      "type": "integer",
      "description": "Bumped when the identity or settings change."
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}