{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-searches-response-schema.json",
  "title": "ListSearchesResponse",
  "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/ListSearchesResponse",
  "type": "object",
  "properties": {
    "searchSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchSummary"
      },
      "description": "A page of search summaries, most recently started first."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token to use in a subsequent ListSearches call to retrieve the next page. Absent when there are no more searches."
    }
  },
  "required": [
    "searchSummaries"
  ],
  "$defs": {
    "SearchSummary": {
      "type": "object",
      "properties": {
        "searchId": {
          "type": "string",
          "description": "The unique identifier of the search."
        },
        "workspaceName": {
          "type": "string",
          "description": "The name of the workspace the search runs against."
        },
        "status": {
          "type": "string",
          "enum": [
            "QUEUED",
            "RUNNING",
            "SUCCEEDED",
            "FAILED"
          ],
          "description": "The current status of the search."
        },
        "queryStatement": {
          "type": "string",
          "description": "The natural-language query that was submitted for the search."
        },
        "searchType": {
          "type": "string",
          "enum": [
            "DEEP",
            "QUICK"
          ],
          "description": "The search strategy used for the search."
        },
        "statusReason": {
          "type": "string",
          "description": "A human-readable explanation of the current status. Populated when the search has FAILED."
        },
        "startedAt": {
          "type": "string",
          "description": "The time at which the search was started."
        },
        "groupId": {
          "type": "string",
          "description": "The group identifier associated with the search, if one was supplied on the request."
        }
      },
      "required": [
        "searchId",
        "workspaceName",
        "status",
        "queryStatement",
        "searchType"
      ]
    }
  }
}