{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-list-aiprompts-response-schema.json",
  "title": "ListAIPromptsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-aiprompts-api-openapi.yml#/components/schemas/ListAIPromptsResponse",
  "type": "object",
  "properties": {
    "aiPromptSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AIPromptSummary"
      },
      "description": "The summaries of the AI Prompts."
    },
    "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": [
    "aiPromptSummaries"
  ],
  "$defs": {
    "AIPromptSummary": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the AI Prompt."
        },
        "assistantId": {
          "type": "string",
          "description": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN."
        },
        "assistantArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant."
        },
        "aiPromptId": {
          "type": "string",
          "description": "The identifier of the Amazon Q in Connect AI prompt."
        },
        "type": {
          "type": "string",
          "description": "The type of this AI Prompt."
        },
        "aiPromptArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the AI Prompt."
        },
        "modifiedTime": {
          "type": "string",
          "description": "The time the AI Prompt was last modified."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the AI Prompt was last modified."
        },
        "lastModifiedRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region where the AI Prompt was last modified."
        },
        "templateType": {
          "type": "string",
          "description": "The type of the prompt template for this AI Prompt."
        },
        "modelId": {
          "type": "string",
          "description": "The identifier of the model used for this AI Prompt. Model Ids supported are: anthropic.claude-3-haiku-20240307-v1:0."
        },
        "apiFormat": {
          "type": "string",
          "description": "The API format used for this AI Prompt."
        },
        "visibilityStatus": {
          "type": "string",
          "description": "The visibility status of the AI Prompt."
        },
        "origin": {
          "type": "string",
          "description": "The origin of the AI Prompt. SYSTEM for a default AI Prompt created by Q in Connect or CUSTOMER for an AI Prompt created by calling AI Prompt creation APIs."
        },
        "description": {
          "type": "string",
          "description": "The description of the AI Prompt."
        },
        "status": {
          "type": "string",
          "description": "The status of the AI Prompt."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags used to organize, track, or control access for this resource."
        }
      },
      "required": [
        "name",
        "assistantId",
        "assistantArn",
        "aiPromptId",
        "type",
        "aiPromptArn",
        "templateType",
        "modelId",
        "apiFormat",
        "visibilityStatus"
      ]
    }
  }
}