{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namirial/json-schema/namirial-team-get-all-response-schema.json",
  "title": "TeamGetAllResponse",
  "description": "The response model for retrieving the team hierarchy.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namirial-team-api-openapi.yml#/components/schemas/TeamGetAllResponse",
  "type": "object",
  "properties": {
    "Teams": {
      "description": "The teams of the organization.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TeamGetAllTeam"
      }
    }
  },
  "$defs": {
    "TeamGetAllTeam": {
      "description": "A team within the organization.",
      "type": "object",
      "properties": {
        "Name": {
          "description": "The name of the team.",
          "type": "string"
        },
        "ShareEnvelopes": {
          "description": "If true, envelopes are shared with team members.",
          "type": "boolean"
        },
        "ShareTemplates": {
          "description": "If true, templates are shared with team members.",
          "type": "boolean"
        },
        "Head": {
          "$ref": "#/$defs/TeamGetAllTeamMember",
          "description": "The leader of the team."
        }
      }
    },
    "TeamGetAllTeamMember": {
      "description": "A member of the team.",
      "type": "object",
      "properties": {
        "Email": {
          "description": "The email address of the team member.\nThis references a user email address.",
          "type": "string"
        },
        "Members": {
          "description": "The members of the subteam.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/TeamGetAllTeamMember"
          }
        }
      }
    }
  }
}