{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/microworker/main/json-schema/microworker-resize-result-schema.json",
  "title": "ResizeResult",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/microworker-v1-openapi.json#/components/schemas/ResizeResult",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "dry_run": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean",
      "description": "false when the numbers sent are the task's numbers already."
    },
    "task": {
      "type": "object",
      "description": "The task as the change leaves it (on a dry run: would leave it).",
      "properties": {
        "id": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "slots_total": {
          "type": "integer"
        },
        "slots_taken": {
          "type": "integer"
        },
        "slots_filled": {
          "type": "integer"
        },
        "reward_minor": {
          "type": "integer"
        },
        "budget_minor": {
          "type": "integer"
        },
        "fee_minor": {
          "type": "integer"
        },
        "escrow_minor": {
          "type": "integer"
        }
      }
    },
    "refund_minor": {
      "type": "integer",
      "description": "Back to your available balance."
    },
    "match_credit_returned_minor": {
      "type": "integer",
      "description": "Present when switch-offer match credit (microworker.app/migrate) was in the task: it goes back to your offer, not your balance."
    },
    "extra_minor": {
      "type": "integer",
      "description": "Taken from your available balance into the task's escrow."
    },
    "claims_raised": {
      "type": "integer",
      "description": "Workers who had started (not yet sent) and now get the new pay."
    },
    "available_minor": {
      "type": "integer",
      "description": "Your available balance — now on a dry run, after the change otherwise."
    },
    "funds_minor": {
      "type": "integer",
      "description": "What of your available balance can pay for jobs: money you added and credit, never money you earned."
    },
    "enough": {
      "type": "boolean",
      "description": "false when `extra_minor` is more than `funds_minor`: the real call would answer 402 (`insufficient_balance`, or `earnings_cannot_fund`)."
    }
  }
}