{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-compliance-announcement-object-schema.json",
  "title": "GetComplianceAnnouncementObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-recording-api-openapi.yml#/components/schemas/GetComplianceAnnouncementObject",
  "type": "object",
  "required": [
    "inboundPSTNCallsEnabled",
    "useOrgSettingsEnabled",
    "outboundPSTNCallsEnabled",
    "outboundPSTNCallsDelayEnabled",
    "delayInSeconds",
    "useOrgLevelAnnouncementEnabled",
    "customComplianceAnnouncement"
  ],
  "properties": {
    "inboundPSTNCallsEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether the call recording START/STOP announcement is played to an inbound caller."
    },
    "useOrgSettingsEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether to use the customer level compliance announcement default settings."
    },
    "outboundPSTNCallsEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether the call recording START/STOP announcement is played to an outbound caller."
    },
    "outboundPSTNCallsDelayEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether compliance announcement is played after a specified delay in seconds."
    },
    "delayInSeconds": {
      "type": "number",
      "description": "Number of seconds to wait before playing the compliance announcement."
    },
    "useOrgLevelAnnouncementEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether to use the organization level custom compliance announcement. If this flag is set to true, takes the organization's announcement setting. If this flag is set to false, takes the location's custom announcement."
    },
    "customComplianceAnnouncement": {
      "type": "object",
      "description": "Custom compliance announcement settings.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of compliance announcement to be played. Type is an enum with supported values CUSTOM | DEFAULT. CUSTOM is used to play a custom announcement file. DEFAULT is used to play the default system announcement file."
        },
        "audioAnnouncementFile": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    }
  }
}