{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/geogridapi-io/json-schema/geogridapi-io-schedule-schema.json",
  "title": "Schedule",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/geogridapi-io-openapi.json#/components/schemas/Schedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "object": {
      "type": "string",
      "enum": [
        "schedule"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "stopped"
      ]
    },
    "stopped_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "mode": {
      "type": "string"
    },
    "frequency": {
      "type": "string",
      "enum": [
        "weekly",
        "monthly"
      ]
    },
    "weekday": {
      "type": [
        "integer",
        "null"
      ]
    },
    "month_day": {
      "type": [
        "integer",
        "null"
      ]
    },
    "place": {
      "type": "object",
      "description": "The listing and the grid center.",
      "properties": {
        "place_id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": "number"
        },
        "lng": {
          "type": "number"
        }
      }
    },
    "keyword": {
      "type": "string"
    },
    "shape": {
      "type": "string"
    },
    "density": {
      "type": [
        "string",
        "null"
      ]
    },
    "size": {
      "type": "integer"
    },
    "radius_km": {
      "type": "number"
    },
    "points_per_run": {
      "type": "integer"
    },
    "credits_per_month": {
      "type": "integer"
    },
    "next_run_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_run_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_grid_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "source_grid_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "runs_count": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}