{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-list-response-of-team-list-item-schema.json",
  "title": "RestApiListResponseOfTeamListItem",
  "description": "Standard REST API response envelope for a collection of resources.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-teams-api-openapi.yml#/components/schemas/RestApiListResponseOfTeamListItem",
  "required": [
    "data",
    "pagination"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TeamListItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationInfo"
    }
  },
  "$defs": {
    "PaginationInfo": {
      "required": [
        "cursor",
        "hasMore"
      ],
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Pagination metadata for REST API list responses."
    },
    "TeamListItem": {
      "required": [
        "id",
        "name",
        "description",
        "memberCount",
        "externalId",
        "externalSource"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "memberCount": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "externalId": {
          "type": [
            "null",
            "string"
          ],
          "description": "Identifier of the team in the external system that manages it (e.g. the\n    Atlassian team id); null for teams created in the catalog."
        },
        "externalSource": {
          "type": [
            "null",
            "string"
          ],
          "description": "The external system that manages the team (e.g. `Atlassian`); null\n    for teams created in the catalog."
        }
      },
      "description": "Team list view -- minimal fields for collection responses."
    }
  }
}