{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-get-address-books-response-schema.json",
  "title": "response",
  "description": "Collection of Address Books",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-admin-addressbook-openapi.yml#/components/schemas/getAddressBooksResponse",
  "properties": {
    "addressBooks": {
      "type": "array",
      "items": {
        "title": "AddressBook",
        "description": "",
        "properties": {
          "addressBookName": {
            "type": "string",
            "description": "Address Book Name"
          },
          "addressBookId": {
            "type": "integer",
            "description": "Address Book Id"
          },
          "addressBookType": {
            "type": "string",
            "description": "Address Book Type (Standard or Dynamic)"
          },
          "appId": {
            "type": "string",
            "description": "Name of API Application that created the Address Book"
          },
          "agents": {
            "type": "array",
            "description": "Collection of assigned Agents",
            "items": {
              "title": "Agent",
              "description": "",
              "properties": {
                "agentId": {
                  "type": "integer",
                  "description": "Agent Id"
                },
                "userName": {
                  "type": "string",
                  "description": "Agent User Name"
                }
              }
            }
          },
          "teams": {
            "type": "array",
            "description": "Collection of assigned Teams",
            "items": {
              "title": "Team",
              "description": "",
              "properties": {
                "teamId": {
                  "type": "integer",
                  "description": "Team Id"
                },
                "teamName": {
                  "type": "string",
                  "description": "Team Name"
                }
              }
            }
          },
          "skills": {
            "type": "array",
            "description": "Collection of assigned Skills",
            "items": {
              "title": "Skill",
              "description": "",
              "properties": {
                "skillId": {
                  "type": "integer",
                  "description": "Skill Id"
                },
                "skillName": {
                  "type": "string",
                  "description": "Skill Name"
                }
              }
            }
          },
          "campaigns": {
            "type": "array",
            "description": "Collection of assigned Campaigns",
            "items": {
              "title": "Campaign",
              "description": "",
              "properties": {
                "campaignId": {
                  "type": "integer",
                  "description": "Campaign Id"
                },
                "campaignName": {
                  "type": "string",
                  "description": "Campaign Name"
                }
              }
            }
          }
        }
      }
    }
  }
}