{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldrig-dev/json-schema/coldrig-dev-message-list-page-schema.json",
  "title": "MessageListPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldrig-dev-messages-api-openapi.yml#/components/schemas/MessageListPage",
  "type": "object",
  "required": [
    "messages",
    "nextCursor"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Message"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "Message": {
      "type": "object",
      "required": [
        "id",
        "kind",
        "severity",
        "body",
        "actionHint",
        "source",
        "createdAt",
        "readAt"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "info",
            "action_required",
            "operator_pending",
            "terminal"
          ],
          "description": "info = resolves on its own, nothing is required. action_required = nothing progresses until you act, and acting works. operator_pending = the platform has stopped and nothing YOU change will restart it, but someone at Coldrig can clear the blocker (e.g. funding a provider account), after which retrying the SAME request with the SAME idempotency key completes it — do not alter your inputs and do not give up. terminal = the platform has stopped; retrying will never help and only Coldrig support can move it (the message's actionHint names contact_operator).\n"
        },
        "body": {
          "type": "string"
        },
        "actionHint": {
          "type": [
            "object",
            "null"
          ]
        },
        "source": {
          "type": "string",
          "enum": [
            "system",
            "operator"
          ]
        },
        "createdAt": {
          "type": "integer"
        },
        "readAt": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}