{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cqnce-app/json-schema/cqnce-app-agent-team-schema.json",
  "title": "AgentTeam",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cqnce-app-teams-api-openapi.yml#/components/schemas/AgentTeam",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "tenantId": {
      "type": "string",
      "format": "uuid"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentTeamMember"
      }
    }
  },
  "$defs": {
    "AgentTeamMember": {
      "type": "object",
      "properties": {
        "teamId": {
          "type": "string",
          "format": "uuid"
        },
        "agentId": {
          "type": "string",
          "format": "uuid"
        },
        "priority": {
          "type": "integer"
        },
        "agent": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid"
            },
            "name": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            },
            "online": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}