{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-list-subscriptions-response-schema.json",
  "title": "ListSubscriptionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-subscriptions-api-openapi.yml#/components/schemas/ListSubscriptionsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "If the response is truncated, Amazon Q Business returns this token. You can use this token in a subsequent request to retrieve the next set of subscriptions."
    },
    "subscriptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Subscription"
      },
      "description": "An array of summary information on the subscriptions configured for an Amazon Q Business application."
    }
  },
  "$defs": {
    "Subscription": {
      "type": "object",
      "properties": {
        "subscriptionId": {
          "type": "string",
          "description": "The identifier of the Amazon Q Business subscription to be updated."
        },
        "subscriptionArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Q Business subscription that was updated."
        },
        "principal": {
          "$ref": "#/$defs/SubscriptionPrincipal"
        },
        "currentSubscription": {
          "$ref": "#/$defs/SubscriptionDetails"
        },
        "nextSubscription": {
          "$ref": "#/$defs/SubscriptionDetails"
        }
      }
    },
    "SubscriptionDetails": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Q_LITE",
            "Q_BUSINESS"
          ],
          "description": "The type of an Amazon Q Business subscription."
        }
      }
    },
    "SubscriptionPrincipal": {
      "type": "object",
      "properties": {
        "user": {
          "type": "string",
          "description": "The identifier of a user in the IAM Identity Center instance connected to the Amazon Q Business application."
        },
        "group": {
          "type": "string",
          "description": "The identifier of a group in the IAM Identity Center instance connected to the Amazon Q Business application."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}