{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-project-schema.json",
  "title": "Project",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-projects-api-openapi.yml#/components/schemas/Project",
  "type": "object",
  "required": [
    "id",
    "name",
    "teamIds",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "key": {
      "type": "string",
      "description": "Immutable task-identifier prefix"
    },
    "description": {
      "type": "string"
    },
    "externalItemId": {
      "type": "string",
      "description": "Caller-owned external key, unique per organization — stored NFC-normalized and trimmed"
    },
    "archivedAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch ms — present when the project is archived — the archived marker for lookups and the list"
    },
    "createdAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch ms — the list is ordered on it, newest first"
    },
    "updatedAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch ms of the last change to the project itself"
    },
    "teamIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The audience: the teams that may see the project, by id; empty = organization-wide (every member). Owners and admins see every project regardless."
    }
  }
}