{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-organization-project-role-response-schema.json",
  "title": "OrganizationProjectRoleResponse",
  "description": "Organization-owned project role returned to humans and agents.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-organizations-api-openapi.yml#/components/schemas/OrganizationProjectRoleResponse",
  "properties": {
    "created_at": {
      "description": "Role creation timestamp.",
      "format": "date-time",
      "type": "string"
    },
    "description": {
      "description": "Display-safe responsibility summary.",
      "type": "string"
    },
    "id": {
      "description": "Stable role identifier.",
      "format": "uuid",
      "type": "string"
    },
    "name": {
      "description": "Organization-local display title.",
      "type": "string"
    },
    "permissions": {
      "description": "Canonically ordered effective permissions.",
      "items": {
        "$ref": "#/$defs/OrganizationProjectPermission"
      },
      "type": "array"
    },
    "updated_at": {
      "description": "Most recent role policy timestamp.",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "permissions",
    "created_at",
    "updated_at"
  ],
  "type": "object",
  "$defs": {
    "OrganizationProjectPermission": {
      "description": "Stable project-scoped permissions assignable through an organization role.",
      "oneOf": [
        {
          "const": "project_read",
          "description": "Discover the project and read its retained telemetry and investigation evidence.",
          "type": "string"
        },
        {
          "const": "issue_manage",
          "description": "Triage the project's issues and logs: change issue status, priority, and assignee, and\nedit issue and log rules.",
          "type": "string"
        },
        {
          "const": "project_access_manage",
          "description": "Grant or revoke roles on this project without exceeding the actor's own permissions.",
          "type": "string"
        }
      ]
    }
  }
}