{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-search-quick-responses-response-schema.json",
  "title": "SearchQuickResponsesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-search-api-openapi.yml#/components/schemas/SearchQuickResponsesResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QuickResponseSearchResultData"
      },
      "description": "The results of the quick response search."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."
    }
  },
  "required": [
    "results"
  ],
  "$defs": {
    "GroupingConfiguration": {
      "type": "object",
      "properties": {
        "criteria": {
          "type": "string",
          "description": "The criteria used for grouping Amazon Q in Connect users. The following is the list of supported criteria values. RoutingProfileArn: Grouping the users by their Amazon Connect routing profile ARN. User should have SearchRoutingProfile and DescribeRoutingProfile permissions when setting criteria to this value."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of values that define different groups of Amazon Q in Connect users. When setting criteria to RoutingProfileArn, you need to provide a list of ARNs of Connect Customer routing profiles as values of this parameter."
        }
      }
    },
    "QuickResponseContentProvider": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "description": "The content of the quick response."
        }
      },
      "description": "Exactly one member is set."
    },
    "QuickResponseContents": {
      "type": "object",
      "properties": {
        "plainText": {
          "$ref": "#/$defs/QuickResponseContentProvider"
        },
        "markdown": {
          "$ref": "#/$defs/QuickResponseContentProvider"
        }
      }
    },
    "QuickResponseSearchResultData": {
      "type": "object",
      "properties": {
        "quickResponseArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the quick response."
        },
        "quickResponseId": {
          "type": "string",
          "description": "The identifier of the quick response."
        },
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the knowledge base."
        },
        "knowledgeBaseId": {
          "type": "string",
          "description": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN."
        },
        "name": {
          "type": "string",
          "description": "The name of the quick response."
        },
        "contentType": {
          "type": "string",
          "description": "The media type of the quick response content. Use application/x.quickresponse;format=plain for quick response written in plain text. Use application/x.quickresponse;format=markdown for quick response written in richtext."
        },
        "status": {
          "type": "string",
          "description": "The resource status of the quick response."
        },
        "contents": {
          "$ref": "#/$defs/QuickResponseContents"
        },
        "createdTime": {
          "type": "string",
          "description": "The timestamp when the quick response was created."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the quick response search result data was last modified."
        },
        "lastModifiedRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region where the quick response was last modified."
        },
        "isActive": {
          "type": "boolean",
          "description": "Whether the quick response is active."
        },
        "description": {
          "type": "string",
          "description": "The description of the quick response."
        },
        "groupingConfiguration": {
          "$ref": "#/$defs/GroupingConfiguration"
        },
        "shortcutKey": {
          "type": "string",
          "description": "The shortcut key of the quick response. The value should be unique across the knowledge base."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the user who last updated the quick response search result data."
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Connect Customer contact channels this quick response applies to. The supported contact channel types include Chat."
        },
        "language": {
          "type": "string",
          "description": "The language code value for the language in which the quick response is written."
        },
        "attributesNotInterpolated": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The user defined contact attributes that are not resolved when the search result is returned."
        },
        "attributesInterpolated": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The user defined contact attributes that are resolved when the search result is returned."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags used to organize, track, or control access for this resource."
        }
      },
      "required": [
        "quickResponseArn",
        "quickResponseId",
        "knowledgeBaseArn",
        "knowledgeBaseId",
        "name",
        "contentType",
        "status",
        "contents",
        "createdTime",
        "lastModifiedTime",
        "isActive"
      ]
    }
  }
}