variable "name" {
  type        = string
  description = "The name of the team."
}

variable "description" {
  type        = string
  description = "A description of the team."
  default     = "Managed by Terraform"
}

variable "privacy" {
  type        = string
  description = "The level of privacy for the team. Must be one of secret or closed. Defaults to secret."
  default     = "secret"
}

variable "parent_team_id" {
  type        = any
  description = "The ID of the parent team, if this is a nested team."
  default     = null
}

variable "ldap_dn" {
  type        = any
  description = "The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise."
  default     = null
}

variable "team_membership" {
  type        = map(object({ username = string, role = string }))
  description = "The map of permissions. If empty only owner has access."
  default     = {}
}
