{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-list-response-team-member-role-dto-schema.json",
  "title": "JsonOkListResponseTeamMemberRoleDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-agency-team-members-api-service-api-openapi.yml#/components/schemas/JsonOkListResponseTeamMemberRoleDto",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TeamMemberRoleDto"
      }
    }
  },
  "$defs": {
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    },
    "TeamMemberRoleActionDto": {
      "type": "object",
      "properties": {
        "index": {
          "type": "integer",
          "description": "Index of the action in the list",
          "format": "int32"
        },
        "action": {
          "type": "string",
          "description": "Name of the action"
        },
        "allowed": {
          "type": "boolean",
          "description": "Indicates if the action is allowed"
        }
      },
      "description": "List of actions associated with the team member role"
    },
    "TeamMemberRoleDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier of the team member role",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "description": "Name of the team member role"
        },
        "description": {
          "type": "string",
          "description": "Description of the team member role"
        },
        "actions": {
          "type": "array",
          "description": "List of actions associated with the team member role",
          "items": {
            "$ref": "#/$defs/TeamMemberRoleActionDto"
          }
        }
      }
    }
  }
}