{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-list-knowledge-bases-response-schema.json",
  "title": "ListKnowledgeBasesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-knowledgebases-api-openapi.yml#/components/schemas/ListKnowledgeBasesResponse",
  "type": "object",
  "properties": {
    "knowledgeBaseSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KnowledgeBaseSummary"
      },
      "description": "Information about the knowledge bases."
    },
    "nextToken": {
      "type": "string",
      "description": "If there are additional results, this is the token for the next set of results."
    }
  },
  "required": [
    "knowledgeBaseSummaries"
  ],
  "$defs": {
    "AppIntegrationsConfiguration": {
      "type": "object",
      "properties": {
        "appIntegrationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content. For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted as source fields. For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least number, short_description, sys_mod_count, workflow_state, and active as source fields. For Zendesk, your AppIntegrations DataIntegration"
        },
        "objectFields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The fields from the source that are made available to your agents in Amazon Q in Connect. Optional if ObjectConfiguration is included in the provided DataIntegration. For Salesforce, you must include at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted. For ServiceNow, you must include at least number, short_description, sys_mod_count, workflow_state, and active. For Zendesk, you must include at least id, title, updated_at, and draft. Make sure to include additional fields. These fields are indexed and used to source recommendations."
        }
      },
      "required": [
        "appIntegrationArn"
      ]
    },
    "BedrockFoundationModelConfigurationForParsing": {
      "type": "object",
      "properties": {
        "modelArn": {
          "type": "string",
          "description": "The ARN of the foundation model."
        },
        "parsingPrompt": {
          "$ref": "#/$defs/ParsingPrompt"
        }
      },
      "required": [
        "modelArn"
      ]
    },
    "ChunkingConfiguration": {
      "type": "object",
      "properties": {
        "chunkingStrategy": {
          "type": "string",
          "description": "Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk."
        },
        "fixedSizeChunkingConfiguration": {
          "$ref": "#/$defs/FixedSizeChunkingConfiguration"
        },
        "hierarchicalChunkingConfiguration": {
          "$ref": "#/$defs/HierarchicalChunkingConfiguration"
        },
        "semanticChunkingConfiguration": {
          "$ref": "#/$defs/SemanticChunkingConfiguration"
        }
      },
      "required": [
        "chunkingStrategy"
      ]
    },
    "FixedSizeChunkingConfiguration": {
      "type": "object",
      "properties": {
        "maxTokens": {
          "type": "integer",
          "description": "The maximum number of tokens to include in a chunk."
        },
        "overlapPercentage": {
          "type": "integer",
          "description": "The percentage of overlap between adjacent chunks of a data source."
        }
      },
      "required": [
        "maxTokens",
        "overlapPercentage"
      ]
    },
    "HierarchicalChunkingConfiguration": {
      "type": "object",
      "properties": {
        "levelConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HierarchicalChunkingLevelConfiguration"
          },
          "description": "Token settings for each layer."
        },
        "overlapTokens": {
          "type": "integer",
          "description": "The number of tokens to repeat across chunks in the same layer."
        }
      },
      "required": [
        "levelConfigurations",
        "overlapTokens"
      ]
    },
    "HierarchicalChunkingLevelConfiguration": {
      "type": "object",
      "properties": {
        "maxTokens": {
          "type": "integer",
          "description": "The maximum number of tokens that a chunk can contain in this layer."
        }
      },
      "required": [
        "maxTokens"
      ]
    },
    "KnowledgeBaseSummary": {
      "type": "object",
      "properties": {
        "knowledgeBaseId": {
          "type": "string",
          "description": "The identifier of the knowledge base."
        },
        "knowledgeBaseArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the knowledge base."
        },
        "name": {
          "type": "string",
          "description": "The name of the knowledge base."
        },
        "knowledgeBaseType": {
          "type": "string",
          "description": "The type of knowledge base."
        },
        "status": {
          "type": "string",
          "description": "The status of the knowledge base summary."
        },
        "sourceConfiguration": {
          "$ref": "#/$defs/SourceConfiguration"
        },
        "vectorIngestionConfiguration": {
          "$ref": "#/$defs/VectorIngestionConfiguration"
        },
        "renderingConfiguration": {
          "$ref": "#/$defs/RenderingConfiguration"
        },
        "serverSideEncryptionConfiguration": {
          "$ref": "#/$defs/ServerSideEncryptionConfiguration"
        },
        "description": {
          "type": "string",
          "description": "The description of the knowledge base."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags used to organize, track, or control access for this resource."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the knowledge base was last modified."
        },
        "lastModifiedRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region where the knowledge base was last modified."
        }
      },
      "required": [
        "knowledgeBaseId",
        "knowledgeBaseArn",
        "name",
        "knowledgeBaseType",
        "status"
      ]
    },
    "ManagedSourceConfiguration": {
      "type": "object",
      "properties": {
        "webCrawlerConfiguration": {
          "$ref": "#/$defs/WebCrawlerConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "ParsingConfiguration": {
      "type": "object",
      "properties": {
        "parsingStrategy": {
          "type": "string",
          "description": "The parsing strategy for the data source."
        },
        "bedrockFoundationModelConfiguration": {
          "$ref": "#/$defs/BedrockFoundationModelConfigurationForParsing"
        }
      },
      "required": [
        "parsingStrategy"
      ]
    },
    "ParsingPrompt": {
      "type": "object",
      "properties": {
        "parsingPromptText": {
          "type": "string",
          "description": "Instructions for interpreting the contents of a document."
        }
      },
      "required": [
        "parsingPromptText"
      ]
    },
    "RenderingConfiguration": {
      "type": "object",
      "properties": {
        "templateUri": {
          "type": "string",
          "description": "A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following: Salesforce: Id, ArticleNumber, VersionNumber, Title, PublishStatus, or IsDeleted ServiceNow: number, short_description, sys_mod_count, workflow_state, or active Zendesk: id, title, updated_at, or draft The variable is replaced with the actual value for a piece of content when calling GetContent."
        }
      }
    },
    "ReplicaKmsKey": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the KMS key in the replica Region."
        }
      },
      "required": [
        "arn"
      ]
    },
    "SeedUrl": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "URL for crawling"
        }
      }
    },
    "SemanticChunkingConfiguration": {
      "type": "object",
      "properties": {
        "maxTokens": {
          "type": "integer",
          "description": "The maximum number of tokens that a chunk can contain."
        },
        "bufferSize": {
          "type": "integer",
          "description": "The buffer size."
        },
        "breakpointPercentileThreshold": {
          "type": "integer",
          "description": "The dissimilarity threshold for splitting chunks."
        }
      },
      "required": [
        "maxTokens",
        "bufferSize",
        "breakpointPercentileThreshold"
      ]
    },
    "ServerSideEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "kmsKeyId": {
          "type": "string",
          "description": "The customer managed key used for encryption. For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance. For information about valid ID values, see Key identifiers (KeyId)."
        },
        "replicaKmsKeys": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReplicaKmsKey"
          },
          "description": "The list of KMS keys used to encrypt data for this resource's replicas in other Amazon Web Services Regions. Each entry corresponds to a Region where a replica is configured."
        }
      }
    },
    "SourceConfiguration": {
      "type": "object",
      "properties": {
        "appIntegrations": {
          "$ref": "#/$defs/AppIntegrationsConfiguration"
        },
        "managedSourceConfiguration": {
          "$ref": "#/$defs/ManagedSourceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "UrlConfiguration": {
      "type": "object",
      "properties": {
        "seedUrls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SeedUrl"
          },
          "description": "List of URLs for crawling."
        }
      }
    },
    "VectorIngestionConfiguration": {
      "type": "object",
      "properties": {
        "chunkingConfiguration": {
          "$ref": "#/$defs/ChunkingConfiguration"
        },
        "parsingConfiguration": {
          "$ref": "#/$defs/ParsingConfiguration"
        }
      }
    },
    "WebCrawlerConfiguration": {
      "type": "object",
      "properties": {
        "urlConfiguration": {
          "$ref": "#/$defs/UrlConfiguration"
        },
        "crawlerLimits": {
          "$ref": "#/$defs/WebCrawlerLimits"
        },
        "inclusionFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of one or more inclusion regular expression patterns to include certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled."
        },
        "exclusionFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of one or more exclusion regular expression patterns to exclude certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled."
        },
        "scope": {
          "type": "string",
          "description": "The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL https://docs.aws.amazon.com/bedrock/latest/userguide/ and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain aws.amazon.com can also include sub domain docs.aws.amazon.com."
        }
      },
      "required": [
        "urlConfiguration"
      ]
    },
    "WebCrawlerLimits": {
      "type": "object",
      "properties": {
        "rateLimit": {
          "type": "integer",
          "description": "Rate of web URLs retrieved per minute."
        }
      }
    }
  }
}