{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-get-auth-roles-response-schema.json",
  "title": "GetAuthRolesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-auth-api-openapi.yml#/components/schemas/GetAuthRolesResponse",
  "properties": {
    "next": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cursor to the next page, if any.",
      "title": "Next"
    },
    "prev": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cursor to the previous page, if any.",
      "title": "Prev"
    },
    "roles": {
      "description": "Roles matching the given filter criteria.",
      "items": {
        "$ref": "#/$defs/Role"
      },
      "title": "Roles",
      "type": "array"
    }
  },
  "required": [
    "roles"
  ],
  "type": "object",
  "$defs": {
    "Role": {
      "properties": {
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "isDefault": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "title": "Isdefault"
        },
        "memberCount": {
          "title": "Membercount",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "permissions": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Permissions",
          "type": "array"
        },
        "projectId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Projectid"
        },
        "system": {
          "title": "System",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "system",
        "memberCount"
      ],
      "title": "Role",
      "type": "object"
    }
  }
}