{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anygas-xyz/json-schema/anygas-xyz-schedule-request-schema.json",
  "title": "ScheduleRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anygas-xyz-primitives-api-openapi.yml#/components/schemas/ScheduleRequest",
  "type": "object",
  "required": [
    "route"
  ],
  "properties": {
    "route": {
      "type": "object",
      "additionalProperties": true,
      "description": "A single route object {fromChain,fromToken,toChain,toToken,amount,toAddress}."
    },
    "everySeconds": {
      "type": "integer",
      "minimum": 10,
      "description": "Omit for a one-shot."
    },
    "at": {
      "description": "Epoch or ISO time for a one-shot start.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "live": {
      "type": "boolean",
      "default": false
    }
  }
}