{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Resource identifier returned by the operation."
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "description": "Saved lifecycle or evidence state, as enumerated for this record."
          },
          "workspace_id": {
            "type": "string",
            "description": "Workspace that owns this record."
          },
          "project_id": {
            "type": "string",
            "description": "Project that owns this record."
          },
          "watch_id": {
            "description": "watch id recorded for this result.",
            "type": "string"
          },
          "target_id": {
            "description": "target id recorded for this result.",
            "type": "string"
          },
          "type": {
            "description": "type recorded for this result.",
            "type": "string"
          },
          "execution_mode": {
            "description": "execution mode recorded for this result.",
            "type": "string"
          },
          "idempotency_key": {
            "type": "string",
            "description": "Caller retry identifier, bound to the original request arguments."
          },
          "payload_hash": {
            "type": "string",
            "description": "payload hash recorded for this result."
          },
          "attempt_count": {
            "type": "number",
            "description": "attempt count recorded for this result."
          },
          "max_attempts": {
            "type": "number",
            "description": "max attempts recorded for this result."
          },
          "lease_token": {
            "anyOf": [
              {
                "type": "string",
                "description": "lease token recorded for this result."
              },
              {
                "type": "null"
              }
            ],
            "description": "lease token recorded for this result."
          },
          "lease_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "lease expires at recorded for this result."
              },
              {
                "type": "null"
              }
            ],
            "description": "lease expires at recorded for this result."
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string",
                "description": "error code recorded for this result."
              },
              {
                "type": "null"
              }
            ],
            "description": "error code recorded for this result."
          },
          "error_message": {
            "description": "error message recorded for this result.",
            "anyOf": [
              {
                "type": "string",
                "description": "error message recorded for this result."
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "description": "UTC timestamp when the record was created."
          },
          "updated_at": {
            "type": "string",
            "description": "UTC timestamp of the last record update."
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "completed at recorded for this result."
              },
              {
                "type": "null"
              }
            ],
            "description": "completed at recorded for this result."
          },
          "replayed": {
            "description": "True when the response reuses an earlier request with the same idempotency value.",
            "type": "boolean"
          },
          "usage": {
            "description": "usage recorded for this result.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "units": {
                    "type": "number",
                    "description": "units recorded for this result."
                  },
                  "state": {
                    "type": "string",
                    "description": "Saved lifecycle or evidence state, as enumerated for this record."
                  },
                  "period": {
                    "type": "string",
                    "description": "period recorded for this result."
                  }
                },
                "required": [
                  "units",
                  "state",
                  "period"
                ],
                "additionalProperties": {},
                "description": "usage recorded for this result."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "state",
          "workspace_id",
          "project_id",
          "idempotency_key",
          "payload_hash",
          "attempt_count",
          "max_attempts",
          "lease_token",
          "lease_expires_at",
          "error_code",
          "created_at",
          "updated_at",
          "completed_at"
        ],
        "additionalProperties": {},
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string",
          "description": "Opaque continuation for the same listing; null means no further page."
        },
        {
          "type": "null"
        }
      ],
      "description": "Opaque continuation for the same listing; null means no further page."
    },
    "has_more": {
      "description": "True when another page is available.",
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "next_cursor"
  ],
  "additionalProperties": {}
}
