{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-list-application-grants-response-schema.json",
  "title": "ListApplicationGrantsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-application-grant-api-openapi.yml#/components/schemas/ListApplicationGrantsResponse",
  "type": "object",
  "properties": {
    "Grants": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GrantItem"
      },
      "description": "An array list of structures that describe the requested grants."
    },
    "NextToken": {
      "type": "string",
      "description": "If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results."
    }
  },
  "required": [
    "Grants"
  ],
  "$defs": {
    "AuthorizationCodeGrant": {
      "type": "object",
      "properties": {
        "RedirectUris": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of URIs that are valid locations to redirect a user's browser after the user is authorized. RedirectUris is required when the grant type is authorization_code."
        }
      }
    },
    "AuthorizedTokenIssuer": {
      "type": "object",
      "properties": {
        "TrustedTokenIssuerArn": {
          "type": "string",
          "description": "The ARN of the trusted token issuer."
        },
        "AuthorizedAudiences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array list of authorized audiences, or applications, that can consume the tokens generated by the associated trusted token issuer."
        }
      }
    },
    "Grant": {
      "type": "object",
      "properties": {
        "AuthorizationCode": {
          "$ref": "#/$defs/AuthorizationCodeGrant"
        },
        "JwtBearer": {
          "$ref": "#/$defs/JwtBearerGrant"
        },
        "RefreshToken": {
          "$ref": "#/$defs/RefreshTokenGrant"
        },
        "TokenExchange": {
          "$ref": "#/$defs/TokenExchangeGrant"
        }
      },
      "description": "Exactly one member is set."
    },
    "GrantItem": {
      "type": "object",
      "properties": {
        "GrantType": {
          "type": "string",
          "enum": [
            "authorization_code",
            "refresh_token",
            "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "urn:ietf:params:oauth:grant-type:token-exchange"
          ],
          "description": "The type of the selected grant."
        },
        "Grant": {
          "$ref": "#/$defs/Grant"
        }
      },
      "required": [
        "GrantType",
        "Grant"
      ]
    },
    "JwtBearerGrant": {
      "type": "object",
      "properties": {
        "AuthorizedTokenIssuers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuthorizedTokenIssuer"
          },
          "description": "A list of allowed token issuers trusted by the Identity Center instances for this application. AuthorizedTokenIssuers is required when the grant type is JwtBearerGrant."
        }
      }
    },
    "RefreshTokenGrant": {
      "type": "object",
      "properties": {}
    },
    "TokenExchangeGrant": {
      "type": "object",
      "properties": {}
    }
  }
}