{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringover/json-schema/ringover-group-full-schema.json",
  "title": "group_full",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringover-groups-api-openapi.yml#/components/schemas/group_full",
  "allOf": [
    {
      "$ref": "#/$defs/group_light"
    },
    {
      "type": "object",
      "properties": {
        "users": {
          "type": [
            "array",
            "null"
          ],
          "description": "The list of campaign sms",
          "items": {
            "$ref": "#/$defs/group_user"
          }
        }
      }
    }
  ],
  "$defs": {
    "group_light": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "integer",
          "format": "int64",
          "description": "The identifier of the group"
        },
        "name": {
          "type": "string",
          "description": "The name of the group"
        },
        "total_users_count": {
          "type": "integer",
          "format": "int64",
          "description": "The number of users in the group"
        },
        "color": {
          "type": "string"
        },
        "is_jumper": {
          "type": "boolean",
          "description": "Allow users to jump into"
        }
      }
    },
    "group_user": {
      "allOf": [
        {
          "$ref": "#/$defs/user_light"
        },
        {
          "type": "object",
          "properties": {
            "ring_duration": {
              "type": "integer",
              "format": "int64",
              "description": "Ring duration when an IVR incoming call append"
            },
            "order": {
              "type": "integer",
              "format": "int64",
              "description": "The order in the ivr queue"
            }
          }
        }
      ]
    },
    "user_light": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "integer",
          "format": "int64",
          "description": "The user identifier"
        },
        "team_id": {
          "type": "integer",
          "format": "int64",
          "description": "The team identifier of the user"
        },
        "initial": {
          "type": "string",
          "description": "The initials of the user"
        },
        "color": {
          "type": "string"
        },
        "firstname": {
          "type": "string",
          "description": "The firstname of the user"
        },
        "lastname": {
          "type": "string",
          "description": "The lastname of the user"
        },
        "company": {
          "type": "string",
          "description": "The company of the user"
        },
        "email": {
          "type": "string",
          "description": "The email of the user"
        },
        "picture": {
          "type": "string",
          "description": "The picture of the user"
        },
        "concat_name": {
          "type": "string"
        }
      }
    }
  }
}