{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-get-qapp-output-schema.json",
  "title": "GetQAppOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-operations-api-openapi.yml#/components/schemas/GetQAppOutput",
  "type": "object",
  "properties": {
    "appId": {
      "type": "string",
      "description": "The unique identifier of the Q App."
    },
    "appArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Q App."
    },
    "title": {
      "type": "string",
      "description": "The title of the Q App."
    },
    "description": {
      "type": "string",
      "description": "The description of the Q App."
    },
    "initialPrompt": {
      "type": "string",
      "description": "The initial prompt displayed when the Q App is started."
    },
    "appVersion": {
      "type": "integer",
      "description": "The version of the Q App."
    },
    "status": {
      "type": "string",
      "enum": [
        "PUBLISHED",
        "DRAFT",
        "DELETED"
      ],
      "description": "The status of the Q App."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the Q App was created."
    },
    "createdBy": {
      "type": "string",
      "description": "The user who created the Q App."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the Q App was last updated."
    },
    "updatedBy": {
      "type": "string",
      "description": "The user who last updated the Q App."
    },
    "requiredCapabilities": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "FileUpload",
          "CreatorMode",
          "RetrievalMode",
          "PluginMode"
        ]
      },
      "description": "The capabilities required to run the Q App, such as file upload or third-party integrations."
    },
    "appDefinition": {
      "$ref": "#/$defs/AppDefinition"
    }
  },
  "required": [
    "appId",
    "appArn",
    "title",
    "appVersion",
    "status",
    "createdAt",
    "createdBy",
    "updatedAt",
    "updatedBy",
    "appDefinition"
  ],
  "$defs": {
    "AppDefinition": {
      "type": "object",
      "properties": {
        "appDefinitionVersion": {
          "type": "string",
          "description": "The version of the app definition schema or specification."
        },
        "cards": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Card"
          },
          "description": "The cards that make up the Q App, such as text input, file upload, or query cards."
        },
        "canEdit": {
          "type": "boolean",
          "description": "A flag indicating whether the Q App's definition can be edited by the user."
        }
      },
      "required": [
        "appDefinitionVersion",
        "cards"
      ]
    },
    "AttributeFilter": {
      "type": "object",
      "properties": {
        "andAllFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeFilter"
          },
          "description": "Performs a logical AND operation on all supplied filters."
        },
        "orAllFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeFilter"
          },
          "description": "Performs a logical OR operation on all supplied filters."
        },
        "notFilter": {
          "$ref": "#/$defs/AttributeFilter"
        },
        "equalsTo": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "containsAll": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "containsAny": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "greaterThan": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "greaterThanOrEquals": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "lessThan": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "lessThanOrEquals": {
          "$ref": "#/$defs/DocumentAttribute"
        }
      }
    },
    "Card": {
      "type": "object",
      "properties": {
        "textInput": {
          "$ref": "#/$defs/TextInputCard"
        },
        "qQuery": {
          "$ref": "#/$defs/QQueryCard"
        },
        "qPlugin": {
          "$ref": "#/$defs/QPluginCard"
        },
        "fileUpload": {
          "$ref": "#/$defs/FileUploadCard"
        },
        "formInput": {
          "$ref": "#/$defs/FormInputCard"
        }
      },
      "description": "Exactly one member is set."
    },
    "DocumentAttribute": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The identifier for the attribute."
        },
        "value": {
          "$ref": "#/$defs/DocumentAttributeValue"
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "DocumentAttributeValue": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "A string."
        },
        "stringListValue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of strings."
        },
        "longValue": {
          "type": "integer",
          "description": "A long integer value."
        },
        "dateValue": {
          "type": "string",
          "format": "date-time",
          "description": "A date expressed as an ISO 8601 string. It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time."
        }
      },
      "description": "Exactly one member is set."
    },
    "FileUploadCard": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the file upload card."
        },
        "title": {
          "type": "string",
          "description": "The title of the file upload card."
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies or requirements for the file upload card."
        },
        "type": {
          "type": "string",
          "enum": [
            "text-input",
            "q-query",
            "file-upload",
            "q-plugin",
            "form-input"
          ],
          "description": "The type of the card."
        },
        "filename": {
          "type": "string",
          "description": "The name of the file being uploaded."
        },
        "fileId": {
          "type": "string",
          "description": "The unique identifier of the file associated with the card."
        },
        "allowOverride": {
          "type": "boolean",
          "description": "A flag indicating if the user can override the default file for the upload card."
        }
      },
      "required": [
        "id",
        "title",
        "dependencies",
        "type"
      ]
    },
    "FormInputCard": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the form input card."
        },
        "title": {
          "type": "string",
          "description": "The title of the form input card."
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies or requirements for the form input card."
        },
        "type": {
          "type": "string",
          "enum": [
            "text-input",
            "q-query",
            "file-upload",
            "q-plugin",
            "form-input"
          ],
          "description": "The type of the card."
        },
        "metadata": {
          "$ref": "#/$defs/FormInputCardMetadata"
        },
        "computeMode": {
          "type": "string",
          "enum": [
            "append",
            "replace"
          ],
          "description": "The compute mode of the form input card. This property determines whether individual participants of a data collection session can submit multiple response or one response. A compute mode of append shall allow participants to submit the same form multiple times with different values. A compute mode of replacecode&gt; shall overwrite the current value for each participant."
        }
      },
      "required": [
        "id",
        "title",
        "dependencies",
        "type",
        "metadata"
      ]
    },
    "FormInputCardMetadata": {
      "type": "object",
      "properties": {
        "schema": {
          "type": "object",
          "description": "The JSON schema that defines the shape of the response data."
        }
      },
      "required": [
        "schema"
      ]
    },
    "QPluginCard": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the plugin card."
        },
        "title": {
          "type": "string",
          "description": "The title or label of the plugin card."
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies or requirements for the plugin card."
        },
        "type": {
          "type": "string",
          "enum": [
            "text-input",
            "q-query",
            "file-upload",
            "q-plugin",
            "form-input"
          ],
          "description": "The type of the card."
        },
        "prompt": {
          "type": "string",
          "description": "The prompt or instructions displayed for the plugin card."
        },
        "pluginType": {
          "type": "string",
          "enum": [
            "SERVICE_NOW",
            "SALESFORCE",
            "JIRA",
            "ZENDESK",
            "CUSTOM",
            "ASANA",
            "ATLASSIAN_CONFLUENCE",
            "GOOGLE_CALENDAR",
            "JIRA_CLOUD",
            "MICROSOFT_EXCHANGE",
            "MICROSOFT_TEAMS",
            "PAGERDUTY_ADVANCE",
            "SALESFORCE_CRM",
            "SERVICENOW_NOW_PLATFORM",
            "SMARTSHEET",
            "ZENDESK_SUITE"
          ],
          "description": "The type or category of the plugin used by the card."
        },
        "pluginId": {
          "type": "string",
          "description": "The unique identifier of the plugin used by the card."
        },
        "actionIdentifier": {
          "type": "string",
          "description": "The action identifier of the action to be performed by the plugin card."
        }
      },
      "required": [
        "id",
        "title",
        "dependencies",
        "type",
        "prompt",
        "pluginType",
        "pluginId"
      ]
    },
    "QQueryCard": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the query card."
        },
        "title": {
          "type": "string",
          "description": "The title or label of the query card."
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies or requirements for the query card."
        },
        "type": {
          "type": "string",
          "enum": [
            "text-input",
            "q-query",
            "file-upload",
            "q-plugin",
            "form-input"
          ],
          "description": "The type of the card."
        },
        "prompt": {
          "type": "string",
          "description": "The prompt or instructions displayed for the query card."
        },
        "outputSource": {
          "type": "string",
          "enum": [
            "approved-sources",
            "llm"
          ],
          "description": "The source or type of output generated by the query card."
        },
        "attributeFilter": {
          "$ref": "#/$defs/AttributeFilter"
        },
        "memoryReferences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies for the query card, where the dependencies are references to the collected responses."
        }
      },
      "required": [
        "id",
        "title",
        "dependencies",
        "type",
        "prompt",
        "outputSource"
      ]
    },
    "TextInputCard": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the text input card."
        },
        "title": {
          "type": "string",
          "description": "The title or label of the text input card."
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Any dependencies or requirements for the text input card."
        },
        "type": {
          "type": "string",
          "enum": [
            "text-input",
            "q-query",
            "file-upload",
            "q-plugin",
            "form-input"
          ],
          "description": "The type of the card."
        },
        "placeholder": {
          "type": "string",
          "description": "The placeholder text to display in the text input field."
        },
        "defaultValue": {
          "type": "string",
          "description": "The default value to pre-populate in the text input field."
        }
      },
      "required": [
        "id",
        "title",
        "dependencies",
        "type"
      ]
    }
  }
}