{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-workspaces-response-schema.json",
  "title": "ListWorkspacesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-workspaces-api-openapi.yml#/components/schemas/ListWorkspacesResponse",
  "type": "object",
  "properties": {
    "workspaceSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkspaceSummary"
      },
      "description": "A list that summarizes each workspace."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results, or null if there are no additional results."
    }
  },
  "required": [
    "workspaceSummaries"
  ],
  "$defs": {
    "WorkspaceErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "WorkspaceStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current state of the workspace."
        },
        "error": {
          "$ref": "#/$defs/WorkspaceErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "WorkspaceSummary": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the workspace."
        },
        "arn": {
          "type": "string",
          "description": "The ARN of the workspace."
        },
        "status": {
          "$ref": "#/$defs/WorkspaceStatus"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the workspace was created, in Unix epoch time."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the workspace was last updated, in Unix epoch time."
        }
      },
      "required": [
        "name",
        "arn",
        "status",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}