{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/walletlink-social/json-schema/walletlink-social-job-status-schema.json",
  "title": "JobStatus",
  "description": "The `data` object of `GET /jobs/{id}`.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/walletlink-social-openapi.yaml#/components/schemas/JobStatus",
  "type": "object",
  "required": [
    "job_id",
    "status",
    "progress",
    "created_at",
    "started_at",
    "completed_at"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ]
    },
    "progress": {
      "type": "object",
      "required": [
        "processed",
        "total",
        "stage"
      ],
      "properties": {
        "processed": {
          "type": "integer",
          "description": "Addresses processed so far."
        },
        "total": {
          "type": "integer",
          "description": "Unique addresses in the job."
        },
        "stage": {
          "oneOf": [
            {
              "$ref": "#/$defs/JobStage"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "`null` until a worker picks the job up."
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "`null` until the job completes."
    },
    "error": {
      "type": "string",
      "description": "Present only when `status` is `failed`. A generic statement that\nthe job was not billed, never the internal failure detail.\n"
    },
    "wallets": {
      "type": "array",
      "description": "Present only when `status` is `completed`: the deduplicated,\nlowercased submission, in processing order. It rides in the same\npayload as `results` because the submission may be sessions old\nand the caller may no longer hold the list it sent.\n",
      "items": {
        "type": "string",
        "pattern": "^0x[0-9a-f]{40}$"
      }
    },
    "results": {
      "type": "array",
      "description": "Present only when `status` is `completed`. Positionally aligned\nwith `wallets`: entry N describes wallet N, and is `null` where\nnothing was attached.\n",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/JobRecord"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  },
  "$defs": {
    "AgentMetadata": {
      "type": "object",
      "description": "Present only when the address is a known onchain agent. Fields with no\nvalue are omitted rather than nulled.\n",
      "required": [
        "is_agent",
        "verified"
      ],
      "properties": {
        "is_agent": {
          "type": "boolean",
          "const": true,
          "description": "Always `true`. The object is absent for a wallet that is not an agent."
        },
        "name": {
          "type": "string"
        },
        "framework": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "token_symbol": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        }
      }
    },
    "FarcasterAccount": {
      "type": "object",
      "required": [
        "username",
        "url"
      ],
      "properties": {
        "username": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The account’s Warpcast profile."
        },
        "followers": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Follower count at last ingest. `null` where unknown."
        },
        "fid": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Farcaster ID. `null` where unknown."
        },
        "verified": {
          "type": "boolean",
          "description": "Whether the account carries a protocol-level verification of this\nwallet.\n"
        }
      }
    },
    "IdentityCore": {
      "type": "object",
      "description": "The fields every endpoint returns the same way. `wallet` is always\npresent; everything else is omitted when there is nothing to report.\n",
      "required": [
        "wallet"
      ],
      "properties": {
        "wallet": {
          "type": "string",
          "pattern": "^0x[0-9a-f]{40}$",
          "description": "Lowercased address. Always present."
        },
        "ens_name": {
          "type": "string",
          "description": "Primary ENS name."
        },
        "lens": {
          "type": "string",
          "description": "Lens handle."
        },
        "github": {
          "type": "string",
          "description": "GitHub username."
        },
        "sources": {
          "type": "array",
          "description": "Evidence classes backing the record, in a stable order. Omitted\nentirely when nothing classifiable backs it.\n",
          "items": {
            "$ref": "#/$defs/PublicSource"
          }
        },
        "agent": {
          "$ref": "#/$defs/AgentMetadata"
        }
      }
    },
    "JobRecord": {
      "description": "One entry in a completed job’s `results` array: the batch record\nwithout the per-row freshness pair. Evidence classes come through the\nsame allowlist as everywhere else, and are omitted where nothing\nclassifiable backs the row. The X reachability fields are read at\npoll time, not stored with the job.\n\nOn a job gated by the free allowance, a match past what was billed\nserves as a locked entry: `locked: true`, the never-billed fields\nkept (`ens_name`, `lens`, `github`, `sources`), and `twitter` and\n`farcaster` withheld. A locked entry is not `null`; `null` is a\nchecked negative.\n",
      "allOf": [
        {
          "$ref": "#/$defs/IdentityCore"
        },
        {
          "type": "object",
          "properties": {
            "twitter": {
              "$ref": "#/$defs/XIdentityWithAlso"
            },
            "farcaster": {
              "$ref": "#/$defs/FarcasterAccount"
            },
            "locked": {
              "type": "boolean",
              "description": "Present and `true` only on a locked entry of a gated job:\nthis wallet matched, the free allowance had nothing left to\nbill it against, and its X and Farcaster identities are\nwithheld until the job is unlocked with pack credits.\n"
            }
          }
        }
      ]
    },
    "JobStage": {
      "type": "string",
      "description": "Which part of the pipeline the job is in, by evidence class rather\nthan by internal component: `index` reads our own graph, `cache` the\nshort-term cache in front of it, `live` resolves the remainder\nagainst live sources, and `onchain` reads onchain records. `null`\nwhen the job is not currently inside a stage.\n",
      "enum": [
        "index",
        "cache",
        "onchain",
        "live"
      ]
    },
    "PublicSource": {
      "type": "string",
      "description": "How the link was attested, never who told us.\n\n`onchain` is a record the address owner published themselves, such as\nthe text field on a name they own, written on Ethereum or on a Layer 2\nname registry. `farcaster` is a protocol-level account\nverification. `attested-social` is a platform where the owner proved\nboth halves, the wallet by signature and the account by sign-in.\n`manual` was reviewed by us. `aggregated` is the weakest: correlated\nrather than attested, either by a third-party index or by a platform\nthat evidences one half of the pair and not the other. The first four\nclasses are the attested ones, and any of them present means the\nowner published the link; `aggregated` alone is correlation.\n\nAnything we cannot classify is dropped rather than passed through, so\nan unfamiliar value will never appear here.\n",
      "enum": [
        "onchain",
        "farcaster",
        "attested-social",
        "manual",
        "aggregated"
      ]
    },
    "Reachability": {
      "type": "string",
      "description": "Whether the stored X handle still reaches anyone, resolved by a daily\njob.\n\n`live` reaches someone. `suspended` is held by the same person and may\nreturn. `unclaimed` has been freed, so somebody else may already have\ntaken it, which is the one case where a stale record points at a\nstranger rather than at nobody. `reassigned` means the account\ncurrently answering to this handle is not the account attested\nalongside this wallet.\n\nThe three unreachable states are kept apart on purpose: collapsing them\nwould hide the only one that is actively misleading.\n",
      "enum": [
        "live",
        "suspended",
        "unclaimed",
        "reassigned"
      ]
    },
    "TwitterAlso": {
      "type": "object",
      "description": "A second X account attested for the same wallet, present only when both\nit and the primary handle are live.\n",
      "required": [
        "handle",
        "url",
        "source"
      ],
      "properties": {
        "handle": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "source": {
          "$ref": "#/$defs/PublicSource"
        }
      }
    },
    "XIdentity": {
      "type": "object",
      "description": "An X account attached to the wallet.\n\nThe three reachability fields are **omitted entirely** when the handle\nhas not been checked. A `reachable: null` would invite a consumer to\nread it as false, and this field’s whole value is that it never\noverstates. Absence of evidence is not evidence of absence.\n",
      "required": [
        "handle",
        "url",
        "verified"
      ],
      "properties": {
        "handle": {
          "type": "string",
          "description": "Without the leading `@`, lowercased."
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "verified": {
          "type": "boolean",
          "description": "Narrower than the everyday word. True for the onchain,\nfarcaster, manual and attested-social routes, and false for\ncorrelated evidence.\n\n**Widened on 20 September 2026.** A handle attested through a\nFarcaster verification, the majority route, previously reported\n`false` here while the same evidence reported `true` when our\nFarcaster sweep wrote the row rather than a live lookup: one\naddress could get either answer depending on which path reached\nit last. It now reports `true` on both. If you filter on this\nfield, expect more rows to pass it. None of them are new\nevidence, only evidence that was already there being reported\nconsistently.\n\nTo judge attestation, read `sources`: an identity is attested\nwhen the wallet owner published the link themselves, through a\nFarcaster verification, an onchain ENS record, an\nattested-social sign-in, or a manually verified record. Anything\nelse is correlated, and labeled so.\nSee the data-quality page.\n"
        },
        "self_declared": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present, and `true`, only when the handle rests on nothing but\ntext the wallet owner typed into their own record: an ENS or\nBasename text record, a governance profile, or a Lens profile.\nThe owner published it, which is why such a handle still counts\nas attested and `verified` is `true`. The X account never\nconfirmed it, and anyone can type any handle into their own\nrecord.\n\n**Omitted otherwise, and absent is not false.** Evidence is\nrecorded per wallet, not per handle, so a record that pairs such\na record with a route that checks the account (a Farcaster\nverification, a sign-in) cannot say which one supplied the handle,\nand it omits the field. Added on 24 September 2026.\n"
        },
        "reachable": {
          "type": "boolean",
          "description": "True only when `reachability` is `live`. Omitted when unchecked.\n"
        },
        "reachability": {
          "$ref": "#/$defs/Reachability"
        },
        "reachability_checked_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the handle was last resolved. Omitted when unchecked."
        }
      }
    },
    "XIdentityWithAlso": {
      "description": "As `XIdentity`, plus `also` where a second live X account is attested\nfor the same wallet. Returned by the forward lookups only; the reverse\nlookups omit `also`.\n",
      "allOf": [
        {
          "$ref": "#/$defs/XIdentity"
        },
        {
          "type": "object",
          "properties": {
            "also": {
              "$ref": "#/$defs/TwitterAlso"
            }
          }
        }
      ]
    }
  }
}