{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wever Labs Callback Retry Command",
  "type": "object",
  "required": [
    "retry_command_id",
    "callback_delivery_id",
    "task_token",
    "retry_state"
  ],
  "properties": {
    "retry_command_id": {
      "type": "string"
    },
    "callback_delivery_id": {
      "type": "string"
    },
    "task_token": {
      "type": "string"
    },
    "work_order_id": {
      "type": "string"
    },
    "retry_state": {
      "type": "string",
      "enum": [
        "scheduled",
        "ready",
        "attempting",
        "succeeded",
        "failed",
        "cancelled"
      ]
    },
    "attempt_number": {
      "type": "integer",
      "minimum": 1
    },
    "scheduled_for": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "reason_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "preserve_payload_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "result_contract_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": "object"
    }
  },
  "additionalProperties": true
}
