{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immix/json-schema/immix-algos-halt-algos-response-schema.json",
  "title": "HaltAlgosResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immix-algos-api-openapi.yml#/components/schemas/algos_HaltAlgosResponse",
  "type": "object",
  "properties": {
    "orgId": {
      "type": "integer",
      "description": "The halted organisation."
    },
    "userId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The user who halted."
    },
    "count": {
      "type": "integer",
      "description": "How many started instances were stopped."
    },
    "haltedAtNs": {
      "type": "string",
      "pattern": "^-?[0-9]+$",
      "description": "When the halt took effect, epoch nanoseconds. int64 as a decimal JSON string"
    },
    "remark": {
      "type": "string",
      "description": "The halting user's remark; empty when none was given."
    },
    "commandKey": {
      "type": "string",
      "description": "The halt's idempotency key, echoed for correlation."
    },
    "globalSequence": {
      "$ref": "#/$defs/GlobalSequenceValue"
    },
    "unscaled": {
      "type": "boolean",
      "description": "Never present since 0.3.3: every money value on this API states its own scale on the wire — a policy amount or cap since 0.3.3, an order's and an execution's since 0.3.2, a balance's since 0.3.1 — so a row is never served raw, whether or not this member holds the asset or instrument it references. Kept, deprecated, so a client generated from 0.3.2 still compiles; it goes at the next major.",
      "deprecated": true
    }
  },
  "required": [
    "orgId",
    "count",
    "haltedAtNs",
    "remark",
    "commandKey",
    "globalSequence"
  ],
  "$defs": {
    "GlobalSequenceValue": {
      "type": "string",
      "pattern": "^[0-9]+$",
      "description": "The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.",
      "title": "GlobalSequenceValue"
    }
  }
}