{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eagle-eye-networks/json-schema/eagle-eye-networks-api-paginated-end-user-account-response-schema.json",
  "title": "ApiPaginatedEndUserAccountResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eagle-eye-networks-accounts-api-openapi.yml#/components/schemas/ApiPaginatedEndUserAccountResponse",
  "allOf": [
    {
      "$ref": "#/$defs/PaginatedResponseWithSize"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AccountGet"
          }
        }
      }
    }
  ],
  "$defs": {
    "AccountBaseGet": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "readOnly": true,
              "minLength": 1,
              "maxLength": 12
            },
            "parentId": {
              "type": "string",
              "readOnly": true,
              "minLength": 1,
              "maxLength": 12
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 126
            },
            "editionId": {
              "type": "string",
              "minLength": 1,
              "description": "The current edition of the account. This argument can only be updated by resellers requests applied to end user accounts. Downgrades cannot occur within this context. Downgrade is determined based on edition order parameter. The only editions that can be set on the end user account are the editions that are available to the reseller account.\n"
            },
            "type": {
              "$ref": "#/$defs/AccountType"
            },
            "status": {
              "$ref": "#/$defs/AccountStatus"
            }
          }
        }
      ]
    },
    "AccountBasePatch": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 126,
          "description": "The name of the account."
        },
        "timeZone": {
          "$ref": "#/$defs/TimeZone1"
        },
        "workingHours": {
          "$ref": "#/$defs/WeeklySchedule"
        },
        "security": {
          "$ref": "#/$defs/Security"
        },
        "passwordManagementRules": {
          "$ref": "#/$defs/PasswordManagementRules"
        },
        "firstResponders": {
          "$ref": "#/$defs/FirstResponders"
        },
        "defaultCameraSettings": {
          "$ref": "#/$defs/DefaultCameraSettings"
        },
        "defaultAccountPermissions": {
          "$ref": "#/$defs/DefaultAccountPermissions"
        }
      }
    },
    "AccountContact": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "maxLength": 75,
          "description": "Email address of the primary contact for the account.\n"
        },
        "firstName": {
          "type": "string",
          "maxLength": 126,
          "description": "First name of the primary contact for the account.\n"
        },
        "lastName": {
          "type": "string",
          "maxLength": 126,
          "description": "Last name of the primary contact for the account.\n"
        },
        "phone": {
          "type": "string",
          "maxLength": 126,
          "description": "Phone number of the account.\n"
        },
        "country": {
          "type": "string",
          "default": "",
          "minLength": 0,
          "maxLength": 126
        },
        "region": {
          "type": "string",
          "default": "",
          "minLength": 0,
          "maxLength": 126
        },
        "city": {
          "type": "string",
          "default": "",
          "minLength": 0,
          "maxLength": 126
        },
        "street": {
          "type": "array",
          "minItems": 0,
          "maxItems": 2,
          "items": {
            "type": "string",
            "minLength": 0,
            "maxLength": 126
          }
        },
        "postalCode": {
          "type": "string",
          "default": "",
          "minLength": 0,
          "maxLength": 126
        }
      }
    },
    "AccountExtendedPatch": {
      "type": "object",
      "properties": {
        "videoPrivacy": {
          "$ref": "#/$defs/VideoPrivacy"
        },
        "bridgeSettings": {
          "$ref": "#/$defs/BridgeSettings"
        },
        "cameraSettings": {
          "$ref": "#/$defs/CameraSettings"
        },
        "roleSettings": {
          "$ref": "#/$defs/RoleSettings"
        },
        "brandingInfo": {
          "$ref": "#/$defs/BrandingInfo"
        },
        "permissions": {
          "$ref": "#/$defs/Permissions1"
        }
      }
    },
    "AccountGet": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "customerId": {
              "type": "string",
              "maxLength": 120,
              "description": "The customer identifier assigned to this account. It is used to link the account with an external CRM system. It can only be updated by resellers requests applied to end user accounts.\n"
            },
            "contactDetails": {
              "$ref": "#/$defs/AccountContact"
            }
          }
        },
        {
          "$ref": "#/$defs/AccountSelfGet"
        }
      ]
    },
    "AccountSelfGet": {
      "allOf": [
        {
          "type": "object"
        },
        {
          "$ref": "#/$defs/AccountBaseGet"
        },
        {
          "properties": {
            "effectivePermissions": {
              "$ref": "#/$defs/EffectiveAccountPermissions"
            },
            "resourceCounts": {
              "$ref": "#/$defs/ResourceCounts"
            },
            "resourceStatusCounts": {
              "$ref": "#/$defs/ResourceStatusCounts"
            },
            "resourceStatusV2Counts": {
              "$ref": "#/$defs/ResourceStatusV2Counts"
            },
            "deviceAnomalyCounts": {
              "$ref": "#/$defs/DeviceAnomalyCounts"
            },
            "statistics": {
              "$ref": "#/$defs/AccountStatistics"
            },
            "packages": {
              "readOnly": true,
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "List of packages enabled for an account."
            },
            "childResourceCounts": {
              "$ref": "#/$defs/ChildResourceCounts"
            },
            "childResourceStatusCounts": {
              "$ref": "#/$defs/ChildResourceStatusCounts"
            }
          }
        },
        {
          "$ref": "#/$defs/AccountSelfPatch"
        },
        {
          "required": [
            "id",
            "name",
            "editionId",
            "status",
            "type"
          ]
        }
      ]
    },
    "AccountSelfPatch": {
      "allOf": [
        {
          "$ref": "#/$defs/AccountBasePatch"
        },
        {
          "$ref": "#/$defs/AccountExtendedPatch"
        }
      ]
    },
    "AccountStatistics": {
      "description": "Statistics for the account.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "averageCloudRetentionDays": {
          "description": "The average cloud retention period (in days) for recorded video from cameras owned by the account. Cameras shared with the account are excluded, but cameras shared by the account are included.\n",
          "type": "integer",
          "minimum": 0
        },
        "lastLogin": {
          "description": "The last time the account was logged into. If the account has never been logged into, this will be null.\n",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "AccountStatus": {
      "description": "The overall status of the account\n  * `active`: The default is active.\n  * `accountDisabled`: All cameras are turned off and no login is allowed for end user accounts.\n  * `loginDisabled`: No login is allowed for end user accounts, but cameras continue to record.\n",
      "enum": [
        "active",
        "accountDisabled",
        "loginDisabled"
      ],
      "type": "string"
    },
    "AccountStatusCounts": {
      "type": "object",
      "properties": {
        "active": {
          "type": "integer"
        },
        "loginDisabled": {
          "type": "integer"
        },
        "accountDisabled": {
          "type": "integer"
        }
      }
    },
    "AccountType": {
      "readOnly": true,
      "description": "Indicates account type. *Note: new values might be added in the future, so clients are advised to implement logic to handle unknown values.*\n",
      "enum": [
        "distributor",
        "reseller",
        "endUserAccount"
      ],
      "type": "string"
    },
    "Branding": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Branded company name.\n"
        },
        "subDomain": {
          "type": "string",
          "description": "Sub domain for the branded url.\n"
        },
        "supportEmail": {
          "type": "string",
          "description": "Branded support email.\n"
        },
        "supportPhone": {
          "type": "string",
          "description": "Branded support phone number.\n"
        },
        "corporateURL": {
          "type": "string",
          "description": "Corporate website url.\n"
        },
        "isWhiteLabelEnabled": {
          "type": "boolean",
          "description": "Indicates whether the white label is enabled (true) or not (false)\n"
        },
        "whiteLabelId": {
          "type": [
            "string",
            "null"
          ],
          "description": "White label brand id.\n"
        },
        "authHostname": {
          "type": "string",
          "description": "Authentication hostname.\n"
        },
        "logoSmall": {
          "type": "string",
          "description": "Branded small logo URL (PNG, 160x52, transparent background).\n"
        },
        "logoLarge": {
          "type": "string",
          "description": "Branded large logo URL (PNG, 460x184, white background).\n"
        },
        "isBrandingEnabled": {
          "type": "boolean",
          "description": "Indicates whether branding is enabled (true) or not (false)\n"
        }
      }
    },
    "BrandingInfo": {
      "allOf": [
        {
          "$ref": "#/$defs/Branding"
        }
      ]
    },
    "BridgeSettings": {
      "properties": {
        "bridgeHealth": {
          "type": "boolean"
        }
      }
    },
    "BridgeStatusCounts": {
      "type": "object",
      "properties": {
        "online": {
          "type": "integer"
        },
        "deviceOffline": {
          "type": "integer"
        },
        "unknown": {
          "type": "integer"
        }
      }
    },
    "BridgeStatusV2Counts": {
      "type": "object",
      "properties": {
        "cloudConnectionStatus": {
          "$ref": "#/$defs/CloudConnectionStatusCounts"
        },
        "edgeReportedDeviceStatus": {
          "$ref": "#/$defs/EdgeReportedDeviceStatusCounts"
        }
      }
    },
    "CameraSettings": {
      "properties": {
        "rtspCameras": {
          "type": "boolean"
        }
      }
    },
    "CameraStatusCounts": {
      "type": "object",
      "properties": {
        "online": {
          "type": "integer"
        },
        "deviceOffline": {
          "type": "integer"
        },
        "off": {
          "type": "integer"
        },
        "bridgeOffline": {
          "type": "integer"
        },
        "invalidCredentials": {
          "type": "integer"
        },
        "error": {
          "type": "integer"
        },
        "unknown": {
          "type": "integer"
        }
      }
    },
    "CameraStatusV2Counts": {
      "type": "object",
      "properties": {
        "cloudConnectionStatus": {
          "$ref": "#/$defs/CloudConnectionStatusCounts"
        },
        "edgeReportedDeviceStatus": {
          "$ref": "#/$defs/EdgeReportedDeviceStatusCounts"
        }
      }
    },
    "ChildResourceCounts": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceCountsBase"
        },
        {
          "description": "Aggregate count of resources across all child accounts of this account. Excludes this account's direct resources (see `resourceCounts`).\n"
        }
      ]
    },
    "ChildResourceStatusCounts": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceStatusCountsBase"
        },
        {
          "description": "Aggregate count of resources by status across all child accounts of this account. Excludes this account's direct resources (see `resourceStatusCounts`).\n"
        }
      ]
    },
    "CloudConnectionStatusCounts": {
      "type": "object",
      "properties": {
        "connected": {
          "type": "integer"
        },
        "disconnected": {
          "type": "integer"
        }
      }
    },
    "DefaultAccountPermissions": {
      "allOf": [
        {
          "$ref": "#/$defs/Permissions1"
        },
        {
          "type": "object",
          "description": "Default permission settings to be applied when a reseller creates a new end-user account.\n**Visibility and Access:** - Only returned to and editable by the reseller account itself - Not visible to end-user accounts\n**When these defaults are applied:** - When a reseller creates a new end-user account through the API - These default values become the initial permission settings for the new account - After account creation, permissions can be modified individually through\n  the account's permissions field\n\n**Scope:** - These defaults only affect end-user accounts created under this reseller account - They do not retroactively apply to existing accounts\nAll properties are inherited from the Permissions schema and have the same behavior and restrictions. See the Permissions schema for detailed descriptions of each permission field.\n"
        }
      ]
    },
    "DefaultCameraSettings": {
      "type": "object",
      "properties": {
        "cloudRetentionDays": {
          "description": "Default number of days that recorded video will be kept in the cloud when cameras are added.",
          "type": "integer",
          "minimum": 1,
          "maximum": 1825
        },
        "maximumOnPremiseRetentionDays": {
          "description": "Default maximum value for the number of days that recorded video will be kept on premise. Used when new cameras are added to the system. The value cannot be lower than the `minimumOnPremiseRetentionDays`.\n",
          "type": "integer",
          "minimum": 0,
          "maximum": 365
        },
        "minimumOnPremiseRetentionDays": {
          "description": "Default minimum value for the number of days that recorded video will be kept on premise. Used when new cameras are added to the system. The value cannot be grater than the `maximumOnPremiseRetentionDays`.\n",
          "type": "integer",
          "minimum": 0,
          "maximum": 180
        },
        "previewResolution": {
          "$ref": "#/$defs/PreviewResolution"
        },
        "fullVideoResolution": {
          "$ref": "#/$defs/FullVideoResolution"
        },
        "previewOnlyCloudRetention": {
          "$ref": "#/$defs/PreviewOnlyCloudRetention"
        },
        "proposedValues": {
          "allOf": [
            {
              "readOnly": true
            },
            {
              "$ref": "#/$defs/retention"
            }
          ]
        },
        "supportedValues": {
          "type": "object",
          "readOnly": true,
          "properties": {
            "minimumOnPremiseRetentionDays": {
              "type": "object",
              "properties": {
                "min": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 180
                },
                "max": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 180
                }
              }
            },
            "maximumOnPremiseRetentionDays": {
              "type": "object",
              "properties": {
                "min": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 365
                },
                "max": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 365
                }
              }
            },
            "previewOnlyCloudRetention": {
              "type": "array",
              "items": {
                "type": "boolean",
                "enum": [
                  true,
                  false
                ]
              }
            },
            "previewResolution": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "cif",
                  "std"
                ]
              }
            },
            "fullVideoResolution": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "std",
                  "high",
                  "1080P",
                  "3MP",
                  "4MP",
                  "5MP",
                  "10MP"
                ]
              }
            },
            "cloudRetentionDays": {
              "type": "object",
              "properties": {
                "min": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1825
                },
                "max": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1825
                }
              }
            }
          }
        }
      }
    },
    "DeviceAnomalyCounts": {
      "description": "Count of the device anomalies. For resellers, this will be the cumulative counts.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "onlineBridgesWithNoDevices": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "EdgeReportedDeviceStatusCounts": {
      "type": "object",
      "properties": {
        "operational": {
          "type": "integer"
        },
        "disabled": {
          "type": "integer"
        },
        "unreachable": {
          "type": "integer"
        },
        "error": {
          "type": "integer"
        },
        "unknown": {
          "type": "integer"
        },
        "initializing": {
          "type": "integer"
        }
      }
    },
    "EffectiveAccountPermissions": {
      "type": "object",
      "readOnly": true,
      "properties": {
        "read": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean",
          "description": "Edit account settings."
        },
        "upgradeEdition": {
          "type": "boolean",
          "description": "Upgrade current edition subscription to a higher level edition. Downgrades require technical support."
        },
        "addBridgesCameras": {
          "type": "boolean",
          "description": "Add bridges and cameras to the account."
        },
        "addSpeakers": {
          "type": "boolean",
          "description": "Add speakers to the account."
        },
        "addLayouts": {
          "type": "boolean",
          "description": "Add layouts to the account."
        },
        "addUsers": {
          "type": "boolean",
          "description": "Add users to the account."
        },
        "viewAuditLog": {
          "type": "boolean",
          "description": "View Audit Log and download reports from it."
        },
        "viewArchive": {
          "type": "boolean",
          "description": "View all files and folders within the Archive."
        },
        "editArchive": {
          "type": "boolean",
          "description": "Save videos to Archive - delete, and edit files and folders within the Archive."
        },
        "viewPlugins": {
          "type": "boolean",
          "description": "View the list of plugins."
        },
        "addPlugins": {
          "type": "boolean",
          "description": "Add plugins."
        },
        "exportUsers": {
          "type": "boolean",
          "description": "Export a list of account users in .csv format."
        },
        "accessAllCameras": {
          "type": "boolean",
          "description": "User has access to all current and future cameras in the account without requiring individual resource grants."
        },
        "accessAllLocations": {
          "type": "boolean",
          "description": "User has access to all current and future locations in the account without requiring individual resource grants."
        },
        "accessAllLayouts": {
          "type": "boolean",
          "description": "User has access to all current and future layouts in the account without requiring individual resource grants."
        },
        "accessAllAccounts": {
          "type": "boolean",
          "description": "User has access to all current and future sub-accounts without requiring individual resource grants."
        }
      }
    },
    "FirstResponders": {
      "type": "object",
      "properties": {
        "active": {
          "description": "Activate Responder Share feature.",
          "type": "boolean"
        }
      }
    },
    "FullVideoResolution": {
      "description": "New resolutions might be added in the future. Currently only \"std\" (SD1), \"high\" (HD1), \"1080P (HD2)\", \"3MP (HD3)\", \"4MP (HD4)\", \"5MP (HD5)\" and \"10MP (HD10)\" resolutions are supported.",
      "type": "string",
      "enum": [
        "std",
        "high",
        "1080P",
        "3MP",
        "4MP",
        "5MP",
        "10MP"
      ]
    },
    "PaginatedResponseNoTotalSize": {
      "type": "object",
      "description": "Used to wrap results for a paginated response, containing information on how to retrieve further pages.\n",
      "properties": {
        "nextPageToken": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Token to retrieve the next page. The value of this token is passed into the field pageToken. This value can be null if there is no next page.\n"
        },
        "prevPageToken": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Token to retrieve the previous page. The value of this token is passed into the field pageToken. This value can be null of there is no previous page.\n"
        },
        "results": {
          "type": "array",
          "readOnly": true,
          "description": "The result set from a collection API call.",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "nextPageToken",
        "prevPageToken",
        "results"
      ]
    },
    "PaginatedResponseWithSize": {
      "description": "Used to wrap results for a paginated response, containing information on how to retrieve further pages and  the total number of results.  \n",
      "allOf": [
        {
          "$ref": "#/$defs/PaginatedResponseNoTotalSize"
        },
        {
          "properties": {
            "totalSize": {
              "type": "integer",
              "readOnly": true,
              "description": "Size of the total result set.\n"
            }
          },
          "required": [
            "totalSize"
          ]
        }
      ]
    },
    "PasswordLimits": {
      "type": "object",
      "properties": {
        "allowedMinimumLength": {
          "description": "Allowed minimum value for the minimumLength field.",
          "type": "integer",
          "readOnly": true
        },
        "allowedMaximumLength": {
          "description": "Allowed minimum value for the maximumLength field.",
          "type": "integer",
          "readOnly": true
        },
        "minimumLength": {
          "description": "Require to create a password with the minimum length of the set value.",
          "type": "integer"
        },
        "maximumLength": {
          "description": "Require to create a password with the maximum length of the set value.",
          "type": "integer"
        },
        "reuseNumberLimit": {
          "description": "Require to create a password that was not previously used for the selected number of previous passwords of the given user.",
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 15
        },
        "reuseDayLimit": {
          "description": "Defines the minimum number of days before a password can be reused.",
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 120
        }
      }
    },
    "PasswordManagementRules": {
      "type": "object",
      "properties": {
        "requireSpecialChar": {
          "description": "Password needs to contain at least one symbol, specifically: ~`!@#$%^&*()_+",
          "type": "boolean"
        },
        "requireNumericChar": {
          "description": "The user will be required to create a password with at least one numeric character.",
          "type": "boolean"
        },
        "daysToExpire": {
          "description": "Require to create a new password in the given number of days.",
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 365
        },
        "excludeUsername": {
          "description": "Require to create a password that does not contain a username of the given user.",
          "type": "boolean"
        },
        "limits": {
          "$ref": "#/$defs/PasswordLimits"
        }
      }
    },
    "Permissions1": {
      "type": "object",
      "description": "Permission settings that control access to various operational features. These settings apply to all users in end-user accounts, except reseller administrators who switch into the account.\n**Visibility and Access:** - Only returned to and editable by the reseller - Not visible or editable by users within the end-user account itself\nThese settings only apply to end-user accounts. They are not returned for reseller accounts, and attempting to set them on reseller accounts will result in an error.\nThe permissions are hierarchical - each level includes all restrictions from the previous level. For example, setting editBillableSettings to false includes all restrictions from addDeleteDevices: false, plus additional restrictions.\n",
      "properties": {
        "addDeleteDevices": {
          "type": "boolean",
          "description": "Controls whether users can add or delete devices such as bridges, cameras, speakers, etc.\nWhen false: • Cannot add new devices to the account • Cannot delete existing devices from the account\n"
        },
        "editBillableSettings": {
          "type": "boolean",
          "description": "Controls whether users can change settings that affect subscription costs.\nWhen false, includes all restrictions from addDeleteDevices: false, plus additional restrictions such as: • Cannot change cloud retention periods • Cannot change video resolution settings • Cannot upgrade account editions • Cannot configure analytics that affect billing\n"
        },
        "editAdvancedSettings": {
          "type": "boolean",
          "description": "Controls whether users can change settings that could impact cost, performance, stability, or quality.\nWhen false, includes all restrictions from editBillableSettings: false, plus additional restrictions such as: • Cannot edit account settings (e.g., name, timezone, preferences, security settings) • Cannot edit device settings (e.g., camera name, timezone, location details, audio settings, operating hours schedule) • Cannot access device tunnels (direct device configuration interface)\n"
        },
        "editOperationalSettings": {
          "type": "boolean",
          "description": "Controls whether users can perform device operations or change technical configurations.\nWhen false, includes all restrictions from editAdvancedSettings: false, plus additional restrictions such as: • Cannot control PTZ (pan, tilt, zoom during live viewing) • Cannot edit PTZ stations and presets • Cannot edit motion detection areas or other analytic configuration • Cannot share cameras with other accounts • Cannot turn cameras on or off\n"
        },
        "showBridgeHealth": {
          "type": "boolean",
          "description": "Controls whether bridge/CMVR health status indicators are visible to end users.\nWhen false, hides health indicators such as warnings for CPU overload, high temperatures, high bandwidth usage, and video purge events (when video is deleted before it could be uploaded to the cloud).\n"
        },
        "enableVideoPrivacy": {
          "type": "boolean",
          "description": "Allows end-user account administrators to prevent resellers from viewing their camera feeds (both live and historic video).\nWhen false, resellers have full visibility to all camera feeds and end users cannot restrict this access.\n"
        }
      }
    },
    "PreviewOnlyCloudRetention": {
      "description": "Allows previews to be transmitted to cloud while keeping full video locally on the CMVR. This setting is only available for cameras attached to a CMVR.",
      "type": "boolean"
    },
    "PreviewResolution": {
      "description": "New resolutions might be added in the future. Currently only \"cif\" (320 x 180) and \"std\" (SD1) resolutions are supported.",
      "type": "string",
      "enum": [
        "cif",
        "std"
      ]
    },
    "ResourceCounts": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceCountsBase"
        },
        {
          "description": "Count of resources owned directly by this account. Excludes child account resources (see `childResourceCounts`).\n"
        }
      ]
    },
    "ResourceCountsBase": {
      "description": "Base schema for resource counts.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "cameras": {
          "type": "integer",
          "minimum": 0
        },
        "bridges": {
          "type": "integer",
          "minimum": 0
        },
        "multiCameras": {
          "type": "integer",
          "minimum": 0
        },
        "speakers": {
          "type": "integer",
          "minimum": 0
        },
        "users": {
          "type": "integer",
          "minimum": 0
        },
        "accounts": {
          "type": "integer",
          "minimum": 0
        },
        "layouts": {
          "type": "integer",
          "minimum": 0
        },
        "responderCameraProxies": {
          "description": "Number of cameras shared with this account as part of the first responder functionality.",
          "type": "integer",
          "minimum": 0
        },
        "locations": {
          "type": "integer",
          "minimum": 0
        },
        "deviceTags": {
          "type": "integer",
          "minimum": 0
        },
        "sharedCameraProxies": {
          "description": "Number of cameras shared with this account as part of the camera sharing functionality. Cameras shared using first responder functionality are not part of this count.",
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "ResourceStatusCounts": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceStatusCountsBase"
        },
        {
          "description": "Count of resources by status owned directly by this account. Excludes child account resources (see `childResourceStatusCounts`).\n"
        }
      ]
    },
    "ResourceStatusCountsBase": {
      "description": "Base schema for resource status counts.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "cameras": {
          "$ref": "#/$defs/CameraStatusCounts"
        },
        "bridges": {
          "$ref": "#/$defs/BridgeStatusCounts"
        },
        "users": {
          "$ref": "#/$defs/UserStatusCounts"
        },
        "accounts": {
          "$ref": "#/$defs/AccountStatusCounts"
        },
        "multiCameras": {
          "$ref": "#/$defs/CameraStatusCounts"
        },
        "speakers": {
          "$ref": "#/$defs/CameraStatusCounts"
        }
      }
    },
    "ResourceStatusV2Counts": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceStatusV2CountsBase"
        },
        {
          "description": "Count of resources by cloud connection status and edge-reported device status, owned directly by this account. Excludes child account resources.\n"
        }
      ]
    },
    "ResourceStatusV2CountsBase": {
      "description": "Base schema for resource status V2 counts with cloud connection and edge-reported device status breakdowns.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "cameras": {
          "$ref": "#/$defs/CameraStatusV2Counts"
        },
        "bridges": {
          "$ref": "#/$defs/BridgeStatusV2Counts"
        },
        "users": {
          "$ref": "#/$defs/UserStatusCounts"
        },
        "accounts": {
          "$ref": "#/$defs/AccountStatusCounts"
        },
        "multiCameras": {
          "$ref": "#/$defs/CameraStatusV2Counts"
        },
        "speakers": {
          "$ref": "#/$defs/CameraStatusV2Counts"
        }
      }
    },
    "RoleSettings": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates that the roles based access control can be enabled for users."
        }
      }
    },
    "Security": {
      "type": "object",
      "properties": {
        "sessionDuration": {
          "type": "integer",
          "description": "Unit: Minutes. Sets the maximum duration of access token (Also known as the auth sesstion). The result is that this is the maximum time webapps will be logged in for. Other applications such as mobile and server to server applications are not directly affected by this maximum, as they can automatically get a new access token using a refresh token or automated login.\"\n",
          "minimum": 1,
          "maximum": 525600
        },
        "sessionInactivityTimeout": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Unit: Minutes. Account admins can set this value to request apps to automatically log-out if the user hasn't interacted with the application for the given time. This is mainly useful in webapps due to the higher likelihood of a user leaving a screen unlocked and walking away. If the value is set to null then this feature is disabled.\n",
          "minimum": 5,
          "maximum": 1440
        },
        "loginAttemptLimit": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum number of consecutive failed login attempts within a 24 hour period that a user will be allowed before being forced to do a password reset.",
          "minimum": 3,
          "maximum": 99
        },
        "twoFactorAuthenticationForced": {
          "type": "boolean",
          "description": "Sets all users on the account to Two Factor Authentication."
        }
      }
    },
    "TimeZone1": {
      "type": "object",
      "properties": {
        "timeZone": {
          "type": "string",
          "description": "The timezone the account is in. The list of supported timezones is provided by the /timeZones endpoint.\n"
        }
      }
    },
    "UserStatusCounts": {
      "type": "object",
      "properties": {
        "active": {
          "type": "integer"
        },
        "blocked": {
          "type": "integer"
        },
        "pending": {
          "type": "integer"
        }
      }
    },
    "VideoPrivacy": {
      "properties": {
        "enabled": {
          "type": "boolean"
        }
      }
    },
    "WeeklySchedule": {
      "type": "object",
      "properties": {
        "days": {
          "$ref": "#/$defs/WeeklyScheduleDays"
        },
        "hours": {
          "$ref": "#/$defs/WeeklyScheduleHours"
        }
      }
    },
    "WeeklyScheduleDays": {
      "type": "object",
      "description": "Days of the week that the start and end times are applied.",
      "properties": {
        "sunday": {
          "type": "boolean"
        },
        "monday": {
          "type": "boolean"
        },
        "tuesday": {
          "type": "boolean"
        },
        "wednesday": {
          "type": "boolean"
        },
        "thursday": {
          "type": "boolean"
        },
        "friday": {
          "type": "boolean"
        },
        "saturday": {
          "type": "boolean"
        }
      }
    },
    "WeeklyScheduleHours": {
      "type": "object",
      "description": "Times that the schedule starts and ends. If the start time is greater than the end time, the interval is considered to cover the remaining time of the day from the start time until 24:00, and then from 00:00 to the end time. \nFor example, start: 16:30 and end: 06:00 on monday means the interval covers from 16:30 to 24:00 and continues from 00:00 to 06:00 on the same day (monday).\n",
      "properties": {
        "start": {
          "type": "string",
          "pattern": "^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
          "description": "Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day.",
          "minLength": 5,
          "maxLength": 5
        },
        "end": {
          "type": "string",
          "pattern": "^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
          "description": "End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day.",
          "minLength": 5,
          "maxLength": 5
        }
      },
      "required": [
        "start",
        "end"
      ]
    }
  }
}