{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transcribe/json-schema/amazon-transcribe-list-call-analytics-categories-response-schema.json",
  "title": "ListCallAnalyticsCategoriesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transcribe-call-analytics-category-api-openapi.yml#/components/schemas/ListCallAnalyticsCategoriesResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "If NextToken is present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with the NextToken parameter in your results output, then run your request again including NextToken with the value of the copied string. Repeat as needed to view all your results."
    },
    "Categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CategoryProperties"
      },
      "description": "Provides detailed information about your Call Analytics categories, including all the rules associated with each category."
    }
  },
  "$defs": {
    "AbsoluteTimeRange": {
      "type": "object",
      "properties": {
        "StartTime": {
          "type": "integer",
          "description": "The time, in milliseconds, when Amazon Transcribe starts searching for the specified criteria in your audio. If you include StartTime in your request, you must also include EndTime."
        },
        "EndTime": {
          "type": "integer",
          "description": "The time, in milliseconds, when Amazon Transcribe stops searching for the specified criteria in your audio. If you include EndTime in your request, you must also include StartTime."
        },
        "First": {
          "type": "integer",
          "description": "The time, in milliseconds, from the start of your media file until the specified value. Amazon Transcribe searches for your specified criteria in this time segment."
        },
        "Last": {
          "type": "integer",
          "description": "The time, in milliseconds, from the specified value until the end of your media file. Amazon Transcribe searches for your specified criteria in this time segment."
        }
      }
    },
    "CategoryProperties": {
      "type": "object",
      "properties": {
        "CategoryName": {
          "type": "string",
          "description": "The name of the Call Analytics category. Category names are case sensitive and must be unique within an Amazon Web Services account."
        },
        "Rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Rule"
          },
          "description": "The rules used to define a Call Analytics category. Each category can have between 1 and 20 rules."
        },
        "CreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the specified Call Analytics category was created. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM UTC-7 on May 4, 2022."
        },
        "LastUpdateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the specified Call Analytics category was last updated. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-05T12:45:32.691000-07:00 represents 12:45 PM UTC-7 on May 5, 2022."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The tags, each in the form of a key:value pair, assigned to the specified call analytics category."
        },
        "InputType": {
          "type": "string",
          "enum": [
            "REAL_TIME",
            "POST_CALL"
          ],
          "description": "The input type associated with the specified category. POST_CALL refers to a category that is applied to batch transcriptions; REAL_TIME refers to a category that is applied to streaming transcriptions."
        }
      }
    },
    "InterruptionFilter": {
      "type": "object",
      "properties": {
        "Threshold": {
          "type": "integer",
          "description": "Specify the duration of the interruptions in milliseconds. For example, you can flag speech that contains more than 10,000 milliseconds of interruptions."
        },
        "ParticipantRole": {
          "type": "string",
          "enum": [
            "AGENT",
            "CUSTOMER"
          ],
          "description": "Specify the interrupter that you want to flag. Omitting this parameter is equivalent to specifying both participants."
        },
        "AbsoluteTimeRange": {
          "$ref": "#/$defs/AbsoluteTimeRange"
        },
        "RelativeTimeRange": {
          "$ref": "#/$defs/RelativeTimeRange"
        },
        "Negate": {
          "type": "boolean",
          "description": "Set to TRUE to flag speech that does not contain interruptions. Set to FALSE to flag speech that contains interruptions."
        }
      }
    },
    "NonTalkTimeFilter": {
      "type": "object",
      "properties": {
        "Threshold": {
          "type": "integer",
          "description": "Specify the duration, in milliseconds, of the period of silence that you want to flag. For example, you can flag a silent period that lasts 30,000 milliseconds."
        },
        "AbsoluteTimeRange": {
          "$ref": "#/$defs/AbsoluteTimeRange"
        },
        "RelativeTimeRange": {
          "$ref": "#/$defs/RelativeTimeRange"
        },
        "Negate": {
          "type": "boolean",
          "description": "Set to TRUE to flag periods of speech. Set to FALSE to flag periods of silence"
        }
      }
    },
    "RelativeTimeRange": {
      "type": "object",
      "properties": {
        "StartPercentage": {
          "type": "integer",
          "description": "The time, in percentage, when Amazon Transcribe starts searching for the specified criteria in your media file. If you include StartPercentage in your request, you must also include EndPercentage."
        },
        "EndPercentage": {
          "type": "integer",
          "description": "The time, in percentage, when Amazon Transcribe stops searching for the specified criteria in your media file. If you include EndPercentage in your request, you must also include StartPercentage."
        },
        "First": {
          "type": "integer",
          "description": "The time, in percentage, from the start of your media file until the specified value. Amazon Transcribe searches for your specified criteria in this time segment."
        },
        "Last": {
          "type": "integer",
          "description": "The time, in percentage, from the specified value until the end of your media file. Amazon Transcribe searches for your specified criteria in this time segment."
        }
      }
    },
    "Rule": {
      "type": "object",
      "properties": {
        "NonTalkTimeFilter": {
          "$ref": "#/$defs/NonTalkTimeFilter"
        },
        "InterruptionFilter": {
          "$ref": "#/$defs/InterruptionFilter"
        },
        "TranscriptFilter": {
          "$ref": "#/$defs/TranscriptFilter"
        },
        "SentimentFilter": {
          "$ref": "#/$defs/SentimentFilter"
        }
      },
      "description": "Exactly one member is set."
    },
    "SentimentFilter": {
      "type": "object",
      "properties": {
        "Sentiments": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "POSITIVE",
              "NEGATIVE",
              "NEUTRAL",
              "MIXED"
            ]
          },
          "description": "Specify the sentiments that you want to flag."
        },
        "AbsoluteTimeRange": {
          "$ref": "#/$defs/AbsoluteTimeRange"
        },
        "RelativeTimeRange": {
          "$ref": "#/$defs/RelativeTimeRange"
        },
        "ParticipantRole": {
          "type": "string",
          "enum": [
            "AGENT",
            "CUSTOMER"
          ],
          "description": "Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants."
        },
        "Negate": {
          "type": "boolean",
          "description": "Set to TRUE to flag the sentiments that you didn't include in your request. Set to FALSE to flag the sentiments that you specified in your request."
        }
      },
      "required": [
        "Sentiments"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag Department:Sales, the key is 'Department'."
        },
        "Value": {
          "type": "string",
          "description": "The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag Department:Sales, the value is 'Sales'. Note that you can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "TranscriptFilter": {
      "type": "object",
      "properties": {
        "TranscriptFilterType": {
          "type": "string",
          "enum": [
            "EXACT"
          ],
          "description": "Flag the presence or absence of an exact match to the phrases that you specify. For example, if you specify the phrase \"speak to a manager\" as your Targets value, only that exact phrase is flagged. Note that semantic matching is not supported. For example, if your customer says \"speak to the manager\", instead of \"speak to a manager\", your content is not flagged."
        },
        "AbsoluteTimeRange": {
          "$ref": "#/$defs/AbsoluteTimeRange"
        },
        "RelativeTimeRange": {
          "$ref": "#/$defs/RelativeTimeRange"
        },
        "ParticipantRole": {
          "type": "string",
          "enum": [
            "AGENT",
            "CUSTOMER"
          ],
          "description": "Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants."
        },
        "Negate": {
          "type": "boolean",
          "description": "Set to TRUE to flag the absence of the phrase that you specified in your request. Set to FALSE to flag the presence of the phrase that you specified in your request."
        },
        "Targets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specify the phrases that you want to flag."
        }
      },
      "required": [
        "TranscriptFilterType",
        "Targets"
      ]
    }
  }
}