{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "initialWorkspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "name": {
      "type": "string",
      "maxLength": 200
    },
    "descriptionMarkdown": {
      "type": "string",
      "maxLength": 32768
    },
    "objectivesMarkdown": {
      "type": "string",
      "maxLength": 32768
    },
    "contextMarkdown": {
      "type": "string",
      "maxLength": 32768
    },
    "visibility": {
      "type": "string",
      "enum": [
        "workspace",
        "participants"
      ]
    },
    "lifecycle": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "archived"
      ]
    },
    "version": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "ownerViewerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "creator": {
      "$ref": "#/components/schemas/ProjectAgentActor"
    },
    "createdAt": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
    },
    "updatedAt": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
    },
    "archivedAt": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "initialWorkspaceId",
    "name",
    "descriptionMarkdown",
    "objectivesMarkdown",
    "visibility",
    "lifecycle",
    "version"
  ]
}