{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omniyond-com/json-schema/omniyond-com-scheduled-job-schema.json",
  "title": "ScheduledJob",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/omniyond-com-openapi.yml#/components/schemas/ScheduledJob",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "http",
        "x402"
      ]
    },
    "nextRunAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "schedule": {
      "type": [
        "string",
        "null"
      ]
    },
    "maxRuns": {
      "type": "integer"
    },
    "balanceMicrousd": {
      "type": "integer",
      "description": "Prepaid balance for this job, in microUSD."
    },
    "feePerRunMicrousd": {
      "type": "integer"
    },
    "maxDownstreamMicrousd": {
      "type": "integer",
      "description": "Per-run downstream payment cap in microUSD (0 for http jobs)."
    },
    "payment": {
      "$ref": "#/$defs/PaymentReceipt"
    }
  },
  "$defs": {
    "PaymentReceipt": {
      "type": "object",
      "description": "Present on x402-paid responses.",
      "properties": {
        "payer": {
          "type": "string"
        },
        "transaction": {
          "type": "string"
        },
        "network": {
          "type": "string"
        }
      }
    }
  }
}