{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-chime/json-schema/amazon-chime-search-channels-request-schema.json",
  "title": "SearchChannelsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-chime-channels-api-openapi.yml#/components/schemas/SearchChannelsRequest",
  "type": "object",
  "properties": {
    "ChimeBearer": {
      "type": "string",
      "description": "The AppInstanceUserArn of the user making the API call."
    },
    "Fields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchField"
      },
      "description": "A list of the Field objects in the channel being searched."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of channels that you want returned."
    },
    "NextToken": {
      "type": "string",
      "description": "The token returned from previous API requests until the number of channels is reached."
    }
  },
  "required": [
    "Fields"
  ],
  "$defs": {
    "SearchField": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "enum": [
            "MEMBERS"
          ],
          "description": "An enum value that indicates the key to search the channel on. MEMBERS allows you to search channels based on memberships. You can use it with the EQUALS operator to get channels whose memberships are equal to the specified values, and with the INCLUDES operator to get channels whose memberships include the specified values."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The values that you want to search for, a list of strings. The values must be AppInstanceUserArns specified as a list of strings. This operation isn't supported for AppInstanceUsers with a large number of memberships."
        },
        "Operator": {
          "type": "string",
          "enum": [
            "EQUALS",
            "INCLUDES"
          ],
          "description": "The operator used to compare field values, currently EQUALS or INCLUDES. Use the EQUALS operator to find channels whose memberships equal the specified values. Use the INCLUDES operator to find channels whose memberships include the specified values."
        }
      },
      "required": [
        "Key",
        "Values",
        "Operator"
      ]
    }
  }
}