{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pomerado-ai/json-schema/pomerado-ai-job-schema.json",
  "title": "Job",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pomerado-ai-openapi.json#/components/schemas/Job",
  "type": "object",
  "required": [
    "id",
    "type",
    "status",
    "tool_id",
    "input_request",
    "result",
    "result_status",
    "result_expires_at",
    "write_status",
    "login_save",
    "error",
    "message",
    "maintenance",
    "build",
    "watch_url",
    "created_at",
    "updated_at",
    "completed_at"
  ],
  "properties": {
    "id": {
      "$ref": "#/$defs/job_id"
    },
    "type": {
      "type": "string",
      "enum": [
        "run",
        "build"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "needs_input",
        "paused",
        "succeeded",
        "failed",
        "cancelled"
      ]
    },
    "tool_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "input_request": {
      "anyOf": [
        {
          "$ref": "#/$defs/InputRequest"
        },
        {
          "type": "null"
        }
      ]
    },
    "pause": {
      "$ref": "#/$defs/JobPause"
    },
    "result": {
      "$id": "/schemas/unknown"
    },
    "result_file": {
      "anyOf": [
        {
          "$ref": "#/$defs/ResultFile"
        },
        {
          "type": "null"
        }
      ]
    },
    "result_preview": {
      "$id": "/schemas/unknown"
    },
    "browser_time_zone": {
      "type": "string",
      "description": "The IANA time zone, such as America/New_York, of the clock of the browser that read the run's result. Times the website works out from the visitor's clock, such as a delivery estimate or \"today at 4:01 PM\", are in this zone; times tied to a place, such as a flight's departure or a store's hours, are usually that place's local time. Present when the run knows the zone its result was read in."
    },
    "result_status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "available",
            "delivered",
            "expired"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "result_expires_at": {
      "anyOf": [
        {
          "$ref": "#/$defs/Date"
        },
        {
          "type": "null"
        }
      ]
    },
    "write_status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "not_attempted",
            "may_have_applied",
            "applied",
            "not_applied",
            "pending"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Whether a write tool's run, or a write build, changed the website. Null for a read, or while a repair is still working on a run's write that may have applied: the repair may still complete it, and once it ends this says what happened. pending: the website accepted the change and was still working on it when the run ended, after Pomerado waited up to a minute. Don't run the tool again"
    },
    "write_progress": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "no_change",
            "signed_in_only",
            "may_have_submitted",
            "submitted"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "login_save": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "status",
            "login_id",
            "reason"
          ],
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "saved",
                "not_saved",
                "failed"
              ]
            },
            "login_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "missing": {
              "type": "string",
              "enum": [
                "logins:manage"
              ],
              "description": "With reason account_lacks_manage, consent_lacks_manage or grant_lacks_manage: the permission the login's save lacked."
            },
            "grant_hint": {
              "type": "string",
              "description": "What to grant so a login answered for a job is saved."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/Error"
        },
        {
          "type": "null"
        }
      ]
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "stop_reason": {
      "type": "string",
      "enum": [
        "cancel_requested",
        "access_revoked",
        "account_deleted",
        "logins_unavailable"
      ],
      "description": "Why a job told to stop stops, present while it stops (status running) and once it ended cancelled: cancel_requested when a cancel of this job arrived (from its caller, the account's owner or Pomerado support), access_revoked when the access that started it was revoked (its app's connection, API key, session or access to its saved login), account_deleted, or logins_unavailable when the account's saved logins became unavailable. Absent otherwise, and from an older backend"
    },
    "stopped_after": {
      "type": "string",
      "description": "A write that succeeded with the website's refusal after an earlier step: that step's name. The website may have kept something from it, as message says"
    },
    "maintenance": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "status",
            "result_recovered",
            "message",
            "deadline_at"
          ],
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "repairing",
                "repaired",
                "incomplete"
              ]
            },
            "result_recovered": {
              "type": "boolean"
            },
            "message": {
              "type": "string"
            },
            "deadline_at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "reason": {
              "type": "string",
              "description": "One sentence for the user saying what broke and started the repair, in Pomerado's fixed words. Absent from an older backend, or when Pomerado recorded no failure for the run"
            },
            "now": {
              "$ref": "#/$defs/JobMaintenanceNow"
            },
            "waiting_for_repair": {
              "type": "boolean",
              "enum": [
                true
              ],
              "description": "Present, as true, while the run waits behind another repair of its tool, which runs first. Each time a repair publishes a fixed tool, Pomerado runs the task again on it, and repairs the tool for this run if it still fails. Absent otherwise, and from an older backend"
            },
            "change_in_progress": {
              "type": "boolean",
              "enum": [
                true
              ],
              "description": "Present, as true, with waiting_for_repair while the repair the run waits behind is a change to the tool that someone requested. When the change publishes, Pomerado runs the task again on the changed tool; deadline_at leaves the change its time to finish. Absent otherwise, and from an older backend"
            },
            "input_refusal": {
              "$ref": "#/$defs/JobMaintenanceInputRefusal"
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "build": {
      "anyOf": [
        {
          "$ref": "#/$defs/JobBuild"
        },
        {
          "type": "null"
        }
      ]
    },
    "purchase": {
      "type": "object",
      "required": [
        "id",
        "status",
        "amount",
        "merchant_origin"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "created",
            "awaiting_cardholder",
            "ready",
            "filled",
            "succeeded",
            "declined",
            "uncertain",
            "not_charged"
          ]
        },
        "max_amount": {
          "type": "object",
          "required": [
            "amount",
            "currency"
          ],
          "properties": {
            "amount": {
              "type": "string"
            },
            "currency": {
              "type": "string",
              "enum": [
                "AUD",
                "BRL",
                "CAD",
                "CHF",
                "CZK",
                "DKK",
                "EUR",
                "GBP",
                "HKD",
                "INR",
                "JPY",
                "KRW",
                "MXN",
                "NOK",
                "NZD",
                "PLN",
                "SEK",
                "SGD",
                "USD",
                "ZAR"
              ]
            }
          },
          "additionalProperties": false
        },
        "amount": {
          "type": "object",
          "required": [
            "amount",
            "currency"
          ],
          "properties": {
            "amount": {
              "type": "string"
            },
            "currency": {
              "type": "string",
              "enum": [
                "AUD",
                "BRL",
                "CAD",
                "CHF",
                "CZK",
                "DKK",
                "EUR",
                "GBP",
                "HKD",
                "INR",
                "JPY",
                "KRW",
                "MXN",
                "NOK",
                "NZD",
                "PLN",
                "SEK",
                "SGD",
                "USD",
                "ZAR"
              ]
            }
          },
          "additionalProperties": false
        },
        "merchant_origin": {
          "type": "string"
        },
        "card": {
          "type": "object",
          "required": [
            "brand",
            "token_last4"
          ],
          "properties": {
            "brand": {
              "type": "string"
            },
            "token_last4": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "failure": {
          "type": "string",
          "enum": [
            "payment_total_over_limit",
            "payment_total_mismatch",
            "payment_method_no_token",
            "payment_method_not_found",
            "payment_declined",
            "payment_approval_expired",
            "payment_cancelled",
            "payment_fill_failed",
            "payment_vendor_unavailable",
            "payment_interrupted"
          ]
        }
      },
      "additionalProperties": false,
      "description": "A paying run's purchase, its newest when a retry made another: created, awaiting_cardholder while the cardholder's approval on the card network's page waits, ready, filled once the checkout has the payment method, then succeeded, declined (the store refused it), uncertain (the checkout had the payment method and the outcome is unknown, so it may have charged) or not_charged with its failure. No card data beyond the network token's last four"
    },
    "shape": {
      "$ref": "#/$defs/JobShape"
    },
    "site_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The website's https origin the job was asked for: a build's site_url, or the site of the tool a run runs"
    },
    "site_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The site's name: its tool's integration's; null until the job has a tool, such as a build that hasn't published yet"
    },
    "task": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "A build's task, or a requested change, as it was sent; null for a run and a job accepted before Pomerado kept tasks"
    },
    "tool_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The name of the tool tool_id names, as GET /v1/tools shows it"
    },
    "waiting_since": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the question input_request asks was asked; null when the job asks none"
    },
    "answered_questions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobAnsweredQuestion"
      },
      "description": "The questions the job asked and its member answered, oldest first; a secret, login or code shows only that it was answered"
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JobWarning"
      },
      "description": "What to tell the person about a build or requested change, as is, or, on the answer that accepted a run, about its call. Absent when there is none"
    },
    "stop": {
      "type": "string",
      "description": "Present once the job has ended: what the agent following it does now. Absent while the job may still change or a repair works to confirm the result a failed run kept, and from an older backend"
    },
    "started_by": {
      "type": "object",
      "required": [
        "member_id"
      ],
      "properties": {
        "member_id": {
          "type": "string",
          "description": "The member's user ID"
        }
      },
      "additionalProperties": false,
      "description": "Who started the job. A Business team's Owners and Admins also read their teammates' jobs"
    },
    "release_id": {
      "type": "string",
      "description": "The Pomerado release that ran the job: its latest attempt's, or a requested change's repair's once it started. Absent before a worker takes the job, and from an older backend."
    },
    "watch_url": {
      "type": "string"
    },
    "tip": {
      "type": "string"
    },
    "queue": {
      "$ref": "#/$defs/JobQueue"
    },
    "created_at": {
      "$ref": "#/$defs/Date"
    },
    "updated_at": {
      "$ref": "#/$defs/Date"
    },
    "completed_at": {
      "anyOf": [
        {
          "$ref": "#/$defs/Date"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Date": {
      "type": "string",
      "description": "a string to be decoded into a Date"
    },
    "Error": {
      "type": "object",
      "required": [
        "error"
      ],
      "properties": {
        "error": {
          "type": "object",
          "required": [
            "code",
            "message",
            "retryable",
            "docs_url"
          ],
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            },
            "retryable": {
              "type": "boolean"
            },
            "docs_url": {
              "type": "string"
            },
            "details": {
              "type": "object",
              "required": [],
              "properties": {},
              "additionalProperties": {
                "$id": "/schemas/unknown"
              }
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "InputRequest": {
      "type": "object",
      "required": [
        "id",
        "expires_at",
        "answer_url",
        "message",
        "questions"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "An input request ID: req_ and 32 lowercase hex digits",
          "pattern": "^req_[0-9a-f]{32}$"
        },
        "expires_at": {
          "type": "string"
        },
        "answer_url": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "questions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Question"
          }
        },
        "login_save": {
          "type": "object",
          "required": [
            "allowed",
            "missing",
            "grant_hint"
          ],
          "properties": {
            "allowed": {
              "type": "boolean",
              "enum": [
                false
              ]
            },
            "missing": {
              "type": "string",
              "enum": [
                "logins:manage"
              ],
              "description": "The permission the login's save would lack."
            },
            "grant_hint": {
              "type": "string",
              "description": "What to grant before the login is entered, so it is saved."
            }
          },
          "additionalProperties": false,
          "description": "Present when the login this job asks for would be used for this job only, because this client or the account role lacks logins:manage. grant_hint says what to grant to save it. Absent when the login can be saved."
        }
      },
      "additionalProperties": false
    },
    "Int": {
      "type": "integer",
      "description": "an integer"
    },
    "JobAnsweredQuestion": {
      "type": "object",
      "required": [
        "request_id",
        "question_id",
        "type",
        "prompt",
        "options",
        "selected",
        "other",
        "note",
        "text",
        "confirmed",
        "answered",
        "value_hidden",
        "asked_at",
        "answered_at"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "question_id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "prompt": {
          "type": "string"
        },
        "options": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "The offered options' labels, for a choice; null otherwise"
        },
        "selected": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The labels picked"
        },
        "other": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The member's own answer instead of, or beside, the offered options"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "A text answer, or the text a confirmation sent"
        },
        "confirmed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "answered": {
          "type": "boolean",
          "description": "False for an optional question left unanswered"
        },
        "value_hidden": {
          "type": "boolean",
          "description": "True for a secret, a login, a code, a saved login's choice or a phone number a sign-in asked for: it was answered, and its value is never shown"
        },
        "asked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "answered_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "JobBuild": {
      "type": "object",
      "required": [
        "integration_id",
        "stage",
        "stages",
        "eta",
        "example_result",
        "existing_tool_id",
        "change",
        "recorded"
      ],
      "properties": {
        "integration_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/integration_id"
            },
            {
              "type": "null"
            }
          ]
        },
        "stage": {
          "type": "string",
          "enum": [
            "queued",
            "checking_login",
            "exploring",
            "building",
            "publishing"
          ]
        },
        "stages": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "key",
              "label",
              "status",
              "started_at",
              "completed_at"
            ],
            "properties": {
              "key": {
                "type": "string",
                "enum": [
                  "queued",
                  "checking_login",
                  "exploring",
                  "building",
                  "publishing"
                ]
              },
              "label": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "done",
                  "active",
                  "pending"
                ]
              },
              "started_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "now": {
          "anyOf": [
            {
              "$ref": "#/$defs/JobBuildNow"
            },
            {
              "type": "null"
            }
          ],
          "description": "What the build is doing now; null once it has ended"
        },
        "eta": {
          "type": "null",
          "description": "No longer provided: always null. Pomerado doesn't estimate how long a build takes"
        },
        "example_result": {
          "$id": "/schemas/unknown"
        },
        "existing_tool_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "change": {
          "anyOf": [
            {
              "$ref": "#/$defs/JobChange"
            },
            {
              "type": "null"
            }
          ]
        },
        "recorded": {
          "type": "boolean",
          "description": "Whether the build's browser was recorded. A Business account watches the recording on the build page, or reads there why it was removed"
        },
        "exploration": {
          "$ref": "#/$defs/JobBuildExploration"
        },
        "test_coverage": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobBuildTestCase"
          },
          "description": "A test-mode build's tests by category: which ran, which passed and which never ran, and why, from its latest publication attempt, a held or refused one included. Shown once the build's publication has run, apart from `exploration`, which shows while it explores. Absent on a build without test mode and while a test-mode build hasn't reached publication; a category that can't apply to the build, such as a write's checks on a read, is left out, and one that applies but didn't run is `not_run` with its code"
        }
      },
      "additionalProperties": false
    },
    "JobBuildExploration": {
      "type": "object",
      "required": [
        "status",
        "rows_run",
        "rows_planned",
        "drafts_used",
        "stop_reason",
        "fix_rounds"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "awaiting_script",
            "exploring",
            "folding",
            "verifying",
            "publishing",
            "incomplete",
            "failed",
            "published"
          ]
        },
        "rows_run": {
          "type": "integer",
          "description": "The answer sets the host ran on practice drafts so far"
        },
        "rows_planned": {
          "type": "integer",
          "description": "The answer sets it planned"
        },
        "drafts_used": {
          "type": "integer",
          "description": "The practice drafts it saved on the account, at most five"
        },
        "stop_reason": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "rows_done",
                "window",
                "model_calls",
                "row_cap",
                "map_settled",
                "drafts_used",
                "rate_limited",
                "lockout",
                "signed_out",
                "challenge",
                "guardian_denied",
                "driver_broken",
                "firewall_breach",
                "no_final_mark",
                "practice_input_refused",
                "source_changed",
                "fold_failed",
                "verify_failed",
                "verify_not_run",
                "host_fault"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Why exploring stopped, such as `rows_done` once every planned answer set ran, `window` when its time ran out, or `practice_input_refused` when the tool refused every practice run's input; null while it goes on or before it stops"
        },
        "fix_rounds": {
          "type": "integer",
          "description": "The rounds the build spent fixing its tool while its practice runs were refused; 0 when none"
        }
      },
      "additionalProperties": false,
      "description": "An extreme test-mode build's exploration of the form on practice drafts before it publishes; absent on every other build and before it starts"
    },
    "JobBuildNow": {
      "type": "object",
      "required": [
        "label",
        "started_at"
      ],
      "properties": {
        "label": {
          "type": "string",
          "description": "One line for the user saying what the build is doing now, such as its step on the site, a test round's progress or that it waits for an answer. It changes as the build moves on"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When this line started (ISO 8601 UTC); null when unknown"
        }
      },
      "additionalProperties": false
    },
    "JobBuildTestCase": {
      "type": "object",
      "required": [
        "category",
        "status",
        "reason"
      ],
      "properties": {
        "category": {
          "type": "string",
          "enum": [
            "live_tests",
            "cold_start",
            "no_match",
            "fresh_sign_in",
            "replay",
            "varied_writes",
            "verify",
            "deep_run",
            "exploration"
          ],
          "description": "The test: `live_tests` (a read's test cases), `cold_start` (a read's case on a new browser with an empty profile), `no_match` (an input nothing on the site matches), `fresh_sign_in` (the sign-in on a new browser), `replay` (a write's whole script run up to its first save), `varied_writes` (a write's other inputs, each stopped before its first save), `verify` and `deep_run` (an extreme build's own checks of its explored form), `exploration` (an extreme build's answer sets on practice drafts)"
        },
        "status": {
          "type": "string",
          "enum": [
            "passed",
            "ran",
            "gap",
            "not_run"
          ],
          "description": "`passed`: it ran and every counted run passed; `ran`: it ran with no pass or fail to judge; `gap`: it ran but showed less than it needs; `not_run`: it never ran"
        },
        "required": {
          "allOf": [
            {
              "$ref": "#/$defs/Int"
            }
          ],
          "description": "How many runs or cases it needs or planned, where it has a number"
        },
        "run": {
          "allOf": [
            {
              "$ref": "#/$defs/Int"
            }
          ],
          "description": "How many ran"
        },
        "passed": {
          "allOf": [
            {
              "$ref": "#/$defs/Int"
            }
          ],
          "description": "How many of those passed"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string",
              "description": "a string matching the pattern ^[A-Za-z][A-Za-z0-9_]{0,63}$",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Why it is a gap, never ran, or ran with nothing to judge, as a code (an open list: new codes may appear). Known codes: any category `test_mode_overridden` (the build turned test mode off) or `other`; `live_tests` `no_case`, `deadline`, `no_runs_left`, `stale`, `not_requested`, `failed`, `inconclusive`, `partly_run`; `cold_start` `not_cold`, `refusal_example`; `no_match` `none_on_site` (ran: the site has no no-match state), `no_case`, `marked_not_tested`, `inputs_not_sent`, `no_match_case_missing` (the publication was held for it), `failed`, `inconclusive`; `fresh_sign_in` a sign-in failure code such as `challenge`, `site_blocked` or `identity_check_unavailable`; `replay` `asked` (ran: it asked a question), `unmarked_save` (a step before the first save may have saved, so running it again would save again), `site_refused` (the example ended in the site's own refusal, which has no save to stop before), `no_commit_mark`, `tries_unavailable`, `no_session`, `stopped_before_tests` (a gate ahead of the test-mode runs stopped the attempt), `ran_past_save`, or a runtime error class; `no_match` and `varied_writes` after a replay that didn't pass take the replay's code or `replay_not_passed`; `varied_writes` and `verify` `no_case`, `nothing_varies`, `too_few_cases`, `held` (its gate held the publication), and `varied_writes` `no_match_case_missing` (a held no-match case kept it from running); `deep_run` `case_broke_script`, `not_verified`; `exploration` `not_started`, `in_progress`, `partly_run` or an exploration stop reason such as `practice_input_refused`. Null when it passed or ran with nothing to note"
        }
      },
      "additionalProperties": false
    },
    "JobChange": {
      "type": "object",
      "required": [
        "revision_id",
        "previous_revision_id",
        "write_started"
      ],
      "properties": {
        "revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "previous_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "write_started": {
          "type": "boolean"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JobChangeItem"
          },
          "description": "Once the change published, each part of its request and whether the change did it, with why for a part it didn't do or published unverified. Absent before it publishes, when its repair recorded none, and from an older backend"
        },
        "already_satisfied_by": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Present when Pomerado found the tool already does what the change asks and left it unchanged: the tool's fields that do it, each a dotted path from input or output, such as output.items.price. Absent otherwise, and from an older backend"
        },
        "shape": {
          "type": "object",
          "required": [
            "id",
            "name"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "description": "Present when the change, or part of it, only reshaped what the tool returns: the shape Pomerado saved for you instead. With no tool change needed, the job succeeds with the tool unchanged and nothing is charged"
        }
      },
      "additionalProperties": false
    },
    "JobChangeItem": {
      "type": "object",
      "required": [
        "item",
        "status"
      ],
      "properties": {
        "item": {
          "type": "string",
          "description": "The part as the request names it, such as 2 or b, or its number in order for a request that names no parts"
        },
        "status": {
          "type": "string",
          "enum": [
            "done",
            "unverified",
            "not_done"
          ]
        },
        "reason": {
          "type": "string",
          "description": "Why the change didn't do this part, or what the website didn't show of a part published unverified"
        }
      },
      "additionalProperties": false
    },
    "JobMaintenanceInputRefusal": {
      "type": "object",
      "required": [
        "reason"
      ],
      "properties": {
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The tool's own reason for refusing the value. Null from a status-only read, or when Pomerado can't read it"
        }
      },
      "additionalProperties": false,
      "description": "Present while the repair checks a value in the input that the tool refused. It finds whether the input or the tool is wrong. Absent otherwise, and from an older backend"
    },
    "JobMaintenanceNow": {
      "type": "object",
      "required": [
        "label",
        "started_at"
      ],
      "properties": {
        "label": {
          "type": "string",
          "description": "One line for the user saying what the repair is doing now, numbered as one of its 4 steps once it starts"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When the repair's current step started (ISO 8601 UTC); null when unknown"
        }
      },
      "additionalProperties": false,
      "description": "What the repair is doing now while the run waits for it. Absent otherwise, and from an older backend"
    },
    "JobPause": {
      "type": "object",
      "required": [
        "reason",
        "paused_at",
        "expires_at",
        "resume_by"
      ],
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "question_expired",
            "sign_in_expired",
            "owner",
            "credentials_rejected"
          ]
        },
        "paused_at": {
          "$ref": "#/$defs/Date"
        },
        "expires_at": {
          "$ref": "#/$defs/Date"
        },
        "resume_by": {
          "type": "string",
          "enum": [
            "answer",
            "resume",
            "sign_in"
          ]
        }
      },
      "additionalProperties": false
    },
    "JobQueue": {
      "type": "object",
      "required": [
        "since",
        "waited_ms"
      ],
      "properties": {
        "since": {
          "anyOf": [
            {
              "$ref": "#/$defs/Date"
            },
            {
              "type": "null"
            }
          ],
          "description": "When the job's current wait began: for a worker to start it, or, for a build, for a saved login another job is using, since jobs on one login run one at a time. Null while it runs, waits on you, or has ended"
        },
        "waited_ms": {
          "$ref": "#/$defs/Int",
          "description": "How long its earlier waits lasted in all, in milliseconds, the current one left out. Its running time is the rest of its time since created_at",
          "minimum": 0
        }
      },
      "additionalProperties": false,
      "description": "How long the job waited to run, apart from its running time. Absent from an older backend"
    },
    "JobShape": {
      "type": "object",
      "required": [
        "id",
        "version",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "version": {
          "type": "number"
        },
        "status": {
          "type": "string",
          "enum": [
            "applied",
            "skipped"
          ]
        },
        "reason": {
          "type": "string",
          "enum": [
            "error",
            "budget",
            "output_mismatch",
            "too_large",
            "refusal_passthrough",
            "branch_passthrough"
          ]
        },
        "new_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "description": "A run that named one of your shapes: what it did. applied: the result is in the shape's form, paging fields copied on. skipped: the result is the tool's own, and reason says why. new_fields: fields the tool returns now that the shape leaves out. message says why it was skipped and how to add new fields"
    },
    "JobWarning": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "non_us_site",
            "extreme_test_mode",
            "login_not_needed"
          ]
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Question": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "options",
            "allow_other",
            "allow_note",
            "recommended"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "choice"
              ]
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "label"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "allow_other": {
              "type": "boolean"
            },
            "allow_note": {
              "type": "boolean"
            },
            "recommended": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The answer the asker recommends, or null. A question left unanswered may go on with it."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "options",
            "min_selections",
            "max_selections",
            "allow_other",
            "allow_note",
            "recommended"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "multi_choice"
              ]
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "label"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "min_selections": {
              "$ref": "#/$defs/Int"
            },
            "max_selections": {
              "$ref": "#/$defs/Int"
            },
            "allow_other": {
              "type": "boolean"
            },
            "allow_note": {
              "type": "boolean"
            },
            "recommended": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The answer the asker recommends, or null. A question left unanswered may go on with it."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "max_length",
            "recommended"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "text"
              ]
            },
            "max_length": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Int"
                },
                {
                  "type": "null"
                }
              ]
            },
            "recommended": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The answer the asker recommends, or null. A question left unanswered may go on with it."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "follow_up"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "confirm"
              ]
            },
            "follow_up": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "prompt"
                  ],
                  "properties": {
                    "prompt": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "kind",
            "allow_not_received"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "secret"
              ]
            },
            "kind": {
              "type": "string",
              "enum": [
                "one_time_code",
                "authenticator_code",
                "private_text"
              ]
            },
            "allow_not_received": {
              "type": "boolean",
              "description": "The answer may be {\"not_received\": true} when the person didn't get the code: Pomerado has the website send a new code once, then asks for it again."
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "site_url",
            "fields",
            "reason",
            "username_masked",
            "can_save"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "login"
              ]
            },
            "site_url": {
              "type": "string"
            },
            "fields": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "username",
                  "email",
                  "phone",
                  "account_number",
                  "password"
                ]
              }
            },
            "reason": {
              "type": "string",
              "enum": [
                "missing",
                "rejected",
                "expired"
              ]
            },
            "username_masked": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "can_save": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "id",
            "prompt",
            "type",
            "show_inputs"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "browser_handoff"
              ]
            },
            "show_inputs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "ResultFile": {
      "type": "object",
      "required": [
        "id",
        "name",
        "media_type",
        "size",
        "sha256",
        "download_url",
        "expires_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "media_type": {
          "type": "string"
        },
        "size": {
          "type": "number"
        },
        "sha256": {
          "type": "string"
        },
        "download_url": {
          "type": "string"
        },
        "transfer_key": {
          "type": "string",
          "description": "The link's transfer key: send it as the Pomerado-Transfer-Key header on the download. Given only to the API key, app or session that created the link."
        },
        "expires_at": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "integration_id": {
      "type": "string",
      "description": "an integration ID: int_ and 32 lowercase hex digits"
    },
    "job_id": {
      "type": "string",
      "description": "a job ID: job_ and 32 lowercase hex digits"
    }
  }
}