{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-searches-request-schema.json",
  "title": "ListSearchesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-searches-api-openapi.yml#/components/schemas/ListSearchesRequest",
  "type": "object",
  "properties": {
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace whose searches are listed."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of searches to return in a single page. Valid range is 1 to 1,000; if omitted, a service-defined default is used."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token returned by a previous ListSearches call. Provide it to retrieve the next page; omit it to retrieve the first page."
    },
    "listSearchesFilters": {
      "$ref": "#/$defs/ListSearchesFilters"
    }
  },
  "required": [
    "workspaceName"
  ],
  "$defs": {
    "ListSearchesFilters": {
      "type": "object",
      "properties": {
        "statusFilter": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "QUEUED",
              "RUNNING",
              "SUCCEEDED",
              "FAILED"
            ]
          },
          "description": "Returns only searches whose status is one of the listed values."
        },
        "startedAfter": {
          "type": "string",
          "description": "Returns only searches started at or after this time."
        },
        "startedBefore": {
          "type": "string",
          "description": "Returns only searches started at or before this time."
        },
        "groupIdFilter": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Returns only searches whose groupId is one of the listed values."
        },
        "searchTypeFilter": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "DEEP",
              "QUICK"
            ]
          },
          "description": "Returns only searches whose searchType is one of the listed values."
        }
      }
    }
  }
}