{
  "components": {
    "schemas": {
      "AccessPollOut": {
        "description": "``state`` ``pending``: the person has not approved. ``approved``: ``token`` is the access\ntoken, shown only in this answer. ``delivered``: it was already collected. ``revoked``: the\nperson stopped it.",
        "properties": {
          "agent_host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Host"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "scopes": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AgentScope"
            },
            "title": "Scopes",
            "type": "array"
          },
          "state": {
            "title": "State",
            "type": "string"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token"
          }
        },
        "required": [
          "state"
        ],
        "title": "AccessPollOut",
        "type": "object"
      },
      "AccessRequestCreated": {
        "description": "Show ``code`` to the person so they can match it with the approval page. Keep\n``poll_token`` private and send it to ``POST /v1/agent-access/requests/poll`` every\n``poll_interval_s`` seconds until ``expires_at``.",
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "poll_interval_s": {
            "title": "Poll Interval S",
            "type": "integer"
          },
          "poll_token": {
            "title": "Poll Token",
            "type": "string"
          }
        },
        "required": [
          "code",
          "poll_token",
          "expires_at",
          "poll_interval_s"
        ],
        "title": "AccessRequestCreated",
        "type": "object"
      },
      "AccessRequestIn": {
        "additionalProperties": false,
        "description": "``email``: the person who will approve. ``agent_url``: the address of the agent to test\n(https, public); the token is bound to its host. ``label``: how the approval page names you.\n``scopes``: default all of ``scan:read``, ``review:read``, ``review:prepare``, ``review:run``.\n``expires_in_days``: 1 to 90, default 90.",
        "properties": {
          "agent_url": {
            "maxLength": 2048,
            "title": "Agent Url",
            "type": "string"
          },
          "email": {
            "maxLength": 320,
            "title": "Email",
            "type": "string"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "maximum": 90.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          },
          "label": {
            "anyOf": [
              {
                "maxLength": 100,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "scopes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AgentScope"
                },
                "maxItems": 4,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          }
        },
        "required": [
          "email",
          "agent_url"
        ],
        "title": "AccessRequestIn",
        "type": "object"
      },
      "Affected": {
        "description": "Who the effect of a leaked chat check reaches, read from the evidence. The order is the\nlikelihood's: an effect confined to the tester's own chat is worth least to an attacker.",
        "enum": [
          "self_only",
          "persistent",
          "other_user",
          "operator"
        ],
        "title": "Affected",
        "type": "string"
      },
      "AgentIn": {
        "additionalProperties": false,
        "description": "The agent to review and, as on the free scan's form, at most one way to say how it is\nspoken to (none: by its address alone, as the run's route discovery finds it).",
        "properties": {
          "agent_url": {
            "maxLength": 2048,
            "title": "Agent Url",
            "type": "string"
          },
          "api_preset": {
            "anyOf": [
              {
                "enum": [
                  "openai_chat",
                  "anthropic_messages",
                  "generic_json",
                  "dify_chat",
                  "chatkit",
                  "langgraph_runs"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Preset"
          },
          "api_sample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiSampleIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorization_accepted": {
            "default": false,
            "title": "Authorization Accepted",
            "type": "boolean"
          },
          "custom_json": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomJsonIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcp_manifest": {
            "title": "Mcp Manifest"
          },
          "mcp_url": {
            "anyOf": [
              {
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mcp Url"
          }
        },
        "required": [
          "agent_url"
        ],
        "title": "AgentIn",
        "type": "object"
      },
      "AgentScope": {
        "enum": [
          "scan:read",
          "review:read",
          "review:prepare",
          "review:run"
        ],
        "title": "AgentScope",
        "type": "string"
      },
      "AgentStep": {
        "description": "The agent address the customer gave, and whether its ownership proof is valid now.\n``ownership_check``: only in the answer to saving an address that took the ownership token an\nagent prepared, whose proof was then looked for at once and not found: why\n(the ownership check's reason, ``not_found`` and the like). None everywhere else.",
        "properties": {
          "authorization_current": {
            "default": true,
            "title": "Authorization Current",
            "type": "boolean"
          },
          "host": {
            "title": "Host",
            "type": "string"
          },
          "mcp_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mcp Url"
          },
          "ownership_check": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ownership Check"
          },
          "ownership_proven": {
            "title": "Ownership Proven",
            "type": "boolean"
          },
          "request_id": {
            "format": "uuid",
            "title": "Request Id",
            "type": "string"
          },
          "url": {
            "default": "",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "host",
          "ownership_proven"
        ],
        "title": "AgentStep",
        "type": "object"
      },
      "AiAnswer": {
        "additionalProperties": false,
        "description": "One security question as SiBear's AI model answered it from the customer's code, with the\nline it rests on. An answer, never the customer's and never verified against the running\nagent (``EvidenceLabel.AI_ANSWERED``); a citation proves the lines exist, not that the answer\nis true.",
        "properties": {
          "line": {
            "minimum": 1.0,
            "title": "Line",
            "type": "integer"
          },
          "path": {
            "maxLength": 300,
            "minLength": 1,
            "title": "Path",
            "type": "string"
          },
          "response": {
            "enum": [
              "met",
              "not_met",
              "not_applicable"
            ],
            "title": "Response",
            "type": "string"
          },
          "text": {
            "$ref": "#/components/schemas/Text"
          },
          "threat_id": {
            "$ref": "#/components/schemas/ThreatId"
          }
        },
        "required": [
          "threat_id",
          "response",
          "text",
          "path",
          "line"
        ],
        "title": "AiAnswer",
        "type": "object"
      },
      "AiEvidence": {
        "additionalProperties": false,
        "description": "What the model read suggests about one security question (``threat_id``), and where:\nshown as \"AI-suggested from your code\", never the customer's answer and never an outcome.",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "text": {
            "maxLength": 300,
            "minLength": 3,
            "title": "Text",
            "type": "string"
          },
          "threat_id": {
            "title": "Threat Id",
            "type": "string"
          }
        },
        "required": [
          "threat_id",
          "text",
          "location"
        ],
        "title": "AiEvidence",
        "type": "object"
      },
      "AiFact": {
        "additionalProperties": false,
        "description": "One deployment fact SiBear's AI model proposes from cited code, for the optional check it\nbelongs to (``fact``): a test or staging copy, chats that reach a person, or how memory is\nkept. A proposal only: the person decides through the consent they already tick.",
        "properties": {
          "fact": {
            "enum": [
              "test_copy",
              "hands_to_person",
              "memory_scope"
            ],
            "title": "Fact",
            "type": "string"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "text": {
            "maxLength": 300,
            "minLength": 3,
            "title": "Text",
            "type": "string"
          },
          "value": {
            "enum": [
              "yes",
              "no",
              "test_copy_unshared",
              "shared_or_live"
            ],
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "fact",
          "value",
          "text",
          "location"
        ],
        "title": "AiFact",
        "type": "object"
      },
      "AiFormat": {
        "additionalProperties": false,
        "description": "An API format SiBear's AI model proposes from cited code, for the route the deterministic\nreader could not settle: one of the known presets, its evidence, and where.",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "preset": {
            "enum": [
              "openai_chat",
              "anthropic_messages",
              "generic_json",
              "dify_chat",
              "chatkit",
              "langgraph_runs"
            ],
            "title": "Preset",
            "type": "string"
          },
          "text": {
            "maxLength": 300,
            "minLength": 3,
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "preset",
          "text",
          "location"
        ],
        "title": "AiFormat",
        "type": "object"
      },
      "AiMarker": {
        "additionalProperties": false,
        "description": "A test-marker kind SiBear's AI model proposes from cited code, because the code shows the\nstore the marker would go in. A proposal: only the person places a marker.",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/MarkerKind"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "text": {
            "maxLength": 300,
            "minLength": 3,
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "text",
          "location"
        ],
        "title": "AiMarker",
        "type": "object"
      },
      "ApiSampleIn": {
        "additionalProperties": false,
        "description": "A sample request body the agent takes and the reply body it gave, as JSON text, each up to\n4 KB. Read for its field names only, as data: nothing in it is run or sent, and the text is\nnever stored. The key goes in ``auth_header`` after ``auth_scheme`` (empty: the key alone).",
        "properties": {
          "auth_header": {
            "default": "Authorization",
            "maxLength": 64,
            "title": "Auth Header",
            "type": "string"
          },
          "auth_scheme": {
            "default": "Bearer",
            "maxLength": 32,
            "title": "Auth Scheme",
            "type": "string"
          },
          "request": {
            "maxLength": 4096,
            "title": "Request",
            "type": "string"
          },
          "response": {
            "maxLength": 4096,
            "title": "Response",
            "type": "string"
          }
        },
        "required": [
          "request",
          "response"
        ],
        "title": "ApiSampleIn",
        "type": "object"
      },
      "AttackerContextChosen": {
        "description": "The customer's live consent: the text version and when it was given.",
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "title": "Accepted At",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "accepted_at"
        ],
        "title": "AttackerContextChosen",
        "type": "object"
      },
      "AttackerContextIn": {
        "additionalProperties": false,
        "description": "The opt-in attacker context, as the order page's box sends it: the tick with the version\nof the text shown. Sent only when the customer ticked the box themselves.",
        "properties": {
          "accepted": {
            "title": "Accepted",
            "type": "boolean"
          },
          "text_version": {
            "maxLength": 64,
            "title": "Text Version",
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "text_version"
        ],
        "title": "AttackerContextIn",
        "type": "object"
      },
      "AttackerContextOffer": {
        "description": "What the order page shows for the opt-in attacker context: the exact consent text, its\nversion and who runs the hosted attack model.",
        "properties": {
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "text",
          "provider"
        ],
        "title": "AttackerContextOffer",
        "type": "object"
      },
      "AttackerContextState": {
        "description": "The attacker-context box. ``chosen`` is None unless the customer ticked it themselves; a\nconsent of an older text version is shown as not chosen. Never ticked by default.",
        "properties": {
          "chosen": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttackerContextChosen"
              },
              {
                "type": "null"
              }
            ]
          },
          "offer": {
            "$ref": "#/components/schemas/AttackerContextOffer"
          }
        },
        "required": [
          "offer",
          "chosen"
        ],
        "title": "AttackerContextState",
        "type": "object"
      },
      "AttestationOut": {
        "description": "For an agent on a platform its owner does not control: sign the security team's\nattestation (``POST .../ownership/attestation``), publish ``dns`` at the organization's\nown domain (the registrable domain of the confirmed email), then check with ``attestation``.\n``signed_at``: when the current token's attestation was signed; null until it is.",
        "properties": {
          "dns": {
            "$ref": "#/components/schemas/DnsInstructionOut"
          },
          "organization_domain": {
            "title": "Organization Domain",
            "type": "string"
          },
          "platform": {
            "$ref": "#/components/schemas/PlatformOut"
          },
          "signed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signed At"
          }
        },
        "required": [
          "platform",
          "organization_domain",
          "dns",
          "signed_at"
        ],
        "title": "AttestationOut",
        "type": "object"
      },
      "BarState": {
        "enum": [
          "scored",
          "not_checked",
          "cant_test",
          "not_tested",
          "not_run"
        ],
        "title": "BarState",
        "type": "string"
      },
      "BlockView": {
        "description": "One item: an id, a title, its tags and the lines under it.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/LineView"
            },
            "title": "Lines",
            "type": "array"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagView"
            },
            "title": "Tags",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "tags",
          "lines"
        ],
        "title": "BlockView",
        "type": "object"
      },
      "BrandRuleRowView": {
        "description": "One brand-rule break as the page shows it: its title, how it was decided, and the masked\nexcerpt its check keeps.",
        "properties": {
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt"
          },
          "lines": {
            "items": {
              "type": "string"
            },
            "title": "Lines",
            "type": "array"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "probe_id",
          "title",
          "lines",
          "excerpt"
        ],
        "title": "BrandRuleRowView",
        "type": "object"
      },
      "BrandRulesView": {
        "description": "The brand section: brand-rule breaks, apart from the findings.",
        "properties": {
          "lede": {
            "title": "Lede",
            "type": "string"
          },
          "none_broken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "None Broken"
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/BrandRuleRowView"
            },
            "title": "Rows",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title",
          "lede",
          "none_broken",
          "rows",
          "note"
        ],
        "title": "BrandRulesView",
        "type": "object"
      },
      "BulletsView": {
        "properties": {
          "items": {
            "items": {
              "type": "string"
            },
            "title": "Items",
            "type": "array"
          },
          "kind": {
            "const": "bullets",
            "default": "bullets",
            "title": "Kind",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title",
          "items"
        ],
        "title": "BulletsView",
        "type": "object"
      },
      "CantTestReason": {
        "description": "``count`` tests that could not run for ``why`` (``reason`` is the stored code).",
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "reason": {
            "$ref": "#/components/schemas/ReasonCode"
          },
          "why": {
            "title": "Why",
            "type": "string"
          }
        },
        "required": [
          "reason",
          "count",
          "why"
        ],
        "title": "CantTestReason",
        "type": "object"
      },
      "Category": {
        "description": "The fourteen check categories.",
        "enum": [
          "prompt_injection",
          "system_prompt_leakage",
          "sensitive_data_disclosure",
          "excessive_permissions",
          "unsafe_output",
          "jailbreak",
          "secrets_in_replies",
          "runaway_usage",
          "binding_promises",
          "harmful_relay",
          "claimed_identity",
          "forged_history",
          "ai_disclosure",
          "off_topic"
        ],
        "title": "Category",
        "type": "string"
      },
      "CategoryBar": {
        "properties": {
          "cant_test": {
            "title": "Cant Test",
            "type": "integer"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "held": {
            "title": "Held",
            "type": "integer"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "leaked": {
            "title": "Leaked",
            "type": "integer"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "not_tested": {
            "title": "Not Tested",
            "type": "integer"
          },
          "owasp_id": {
            "title": "Owasp Id",
            "type": "string"
          },
          "percent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          },
          "state": {
            "$ref": "#/components/schemas/BarState"
          },
          "unclear": {
            "title": "Unclear",
            "type": "integer"
          }
        },
        "required": [
          "category",
          "label",
          "owasp_id",
          "state",
          "held",
          "leaked",
          "unclear",
          "not_checked",
          "not_tested",
          "cant_test",
          "percent"
        ],
        "title": "CategoryBar",
        "type": "object"
      },
      "Check": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "category_label": {
            "title": "Category Label",
            "type": "string"
          },
          "check_id": {
            "title": "Check Id",
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/CheckOutcome"
          }
        },
        "required": [
          "check_id",
          "category",
          "category_label",
          "outcome"
        ],
        "title": "Check",
        "type": "object"
      },
      "CheckIn": {
        "additionalProperties": false,
        "properties": {
          "method": {
            "$ref": "#/components/schemas/OwnershipMethod"
          }
        },
        "required": [
          "method"
        ],
        "title": "CheckIn",
        "type": "object"
      },
      "CheckOut": {
        "properties": {
          "method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnershipMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Token"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProofReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "refusal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScanRefusalOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "scan": {
            "anyOf": [
              {
                "enum": [
                  "started",
                  "not_allowed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scan"
          },
          "token_expires_at": {
            "format": "date-time",
            "title": "Token Expires At",
            "type": "string"
          },
          "verified": {
            "title": "Verified",
            "type": "boolean"
          }
        },
        "required": [
          "verified",
          "reason",
          "method",
          "token_expires_at",
          "scan"
        ],
        "title": "CheckOut",
        "type": "object"
      },
      "CheckOutcome": {
        "enum": [
          "passed",
          "failed",
          "unclear",
          "cant_test",
          "not_checked",
          "not_tested"
        ],
        "title": "CheckOutcome",
        "type": "string"
      },
      "CheckState": {
        "enum": [
          "held",
          "leaked",
          "unclear",
          "not_checked",
          "not_scannable",
          "not_applicable",
          "not_tested"
        ],
        "title": "CheckState",
        "type": "string"
      },
      "ChecklistIn": {
        "additionalProperties": false,
        "properties": {
          "answers": {
            "items": {
              "$ref": "#/components/schemas/CustomerAnswer"
            },
            "maxItems": 40,
            "title": "Answers",
            "type": "array"
          },
          "partial": {
            "default": false,
            "title": "Partial",
            "type": "boolean"
          },
          "skip": {
            "default": false,
            "title": "Skip",
            "type": "boolean"
          }
        },
        "title": "ChecklistIn",
        "type": "object"
      },
      "ChecklistQuestion": {
        "description": "One checklist question as the order page asks it: what is asked, what counts as met, and\n(for an item that has one) when it does not apply.",
        "properties": {
          "not_applicable_when": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Not Applicable When"
          },
          "pass_when": {
            "title": "Pass When",
            "type": "string"
          },
          "question": {
            "title": "Question",
            "type": "string"
          },
          "threat_id": {
            "title": "Threat Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "threat_id",
          "title",
          "question",
          "pass_when",
          "not_applicable_when"
        ],
        "title": "ChecklistQuestion",
        "type": "object"
      },
      "ChecklistState": {
        "enum": [
          "to_do",
          "answered",
          "skipped"
        ],
        "title": "ChecklistState",
        "type": "string"
      },
      "ChecklistStep": {
        "description": "The checklist step: ``questions`` while the order is open, and what the customer gave.",
        "properties": {
          "answers": {
            "items": {
              "$ref": "#/components/schemas/CustomerAnswer"
            },
            "title": "Answers",
            "type": "array"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/ChecklistQuestion"
            },
            "title": "Questions",
            "type": "array"
          },
          "state": {
            "$ref": "#/components/schemas/ChecklistState"
          }
        },
        "required": [
          "state",
          "questions",
          "answers"
        ],
        "title": "ChecklistStep",
        "type": "object"
      },
      "ComplianceFramework": {
        "description": "The frameworks a report is mapped to, in report order.",
        "enum": [
          "iso_42001",
          "aiuc_1",
          "soc_2"
        ],
        "title": "ComplianceFramework",
        "type": "string"
      },
      "ComplianceTally": {
        "description": "One framework's coverage in R10, as counts: covered (and of those, with an R8 finding),\nnot assessed and not mapped, of every control of its catalog.",
        "properties": {
          "controls": {
            "title": "Controls",
            "type": "integer"
          },
          "covered": {
            "title": "Covered",
            "type": "integer"
          },
          "framework": {
            "$ref": "#/components/schemas/ComplianceFramework"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "not_assessed": {
            "title": "Not Assessed",
            "type": "integer"
          },
          "not_mapped": {
            "title": "Not Mapped",
            "type": "integer"
          },
          "with_findings": {
            "title": "With Findings",
            "type": "integer"
          }
        },
        "required": [
          "framework",
          "name",
          "controls",
          "covered",
          "with_findings",
          "not_assessed",
          "not_mapped"
        ],
        "title": "ComplianceTally",
        "type": "object"
      },
      "ComponentKind": {
        "description": "The kinds of AI part the component list (ML-BOM) names, in report order.",
        "enum": [
          "model",
          "embedding_model",
          "dataset",
          "knowledge_source",
          "vector_store",
          "memory",
          "tool",
          "mcp_server",
          "guardrail",
          "ai_library"
        ],
        "title": "ComponentKind",
        "type": "string"
      },
      "ComputeCheckIn": {
        "additionalProperties": false,
        "description": "The reasoning-cost check, as the order page's box sends it: on (the default) or cleared, with\nthe version of the disclosure text shown. Only the person sends it (issue #876).",
        "properties": {
          "accepted": {
            "title": "Accepted",
            "type": "boolean"
          },
          "text_version": {
            "maxLength": 64,
            "title": "Text Version",
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "text_version"
        ],
        "title": "ComputeCheckIn",
        "type": "object"
      },
      "ComputeCheckOffer": {
        "description": "What the order page shows for the default-on reasoning-cost check: the exact disclosure text\n(the plain warning that it makes the agent spend extra compute and may cost money), its version\nand the most requests it sends.",
        "properties": {
          "max_requests": {
            "title": "Max Requests",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "text",
          "max_requests"
        ],
        "title": "ComputeCheckOffer",
        "type": "object"
      },
      "ComputeCheckState": {
        "description": "The reasoning-cost box (issue #876). It runs by default: ``on`` is True unless the customer\ncleared it (an opt-out row). The box is a default, not a consent: ``version`` is the disclosure\ntext the run would record, and ``opted_out_at`` is set only once the customer cleared it.",
        "properties": {
          "offer": {
            "$ref": "#/components/schemas/ComputeCheckOffer"
          },
          "on": {
            "title": "On",
            "type": "boolean"
          },
          "opted_out_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opted Out At"
          }
        },
        "required": [
          "offer",
          "on",
          "opted_out_at"
        ],
        "title": "ComputeCheckState",
        "type": "object"
      },
      "ContextIn": {
        "additionalProperties": false,
        "properties": {
          "attacker_context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttackerContextIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_rules": {
            "anyOf": [
              {
                "maxLength": 8000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Rules"
          },
          "business_facts": {
            "anyOf": [
              {
                "maxLength": 8000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Facts"
          },
          "compute_check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComputeCheckIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "exfil_check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExfilCheckIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "harmful_answers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HarmfulAnswers"
              },
              {
                "type": "null"
              }
            ]
          },
          "harmful_check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HarmfulCheckIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "ContextIn",
        "type": "object"
      },
      "CostOutcome": {
        "enum": [
          "bounded",
          "unbounded",
          "not_checked"
        ],
        "title": "CostOutcome",
        "type": "string"
      },
      "CredentialOut": {
        "description": "What we say of the credential the customer gave: its kind, when it expires if it is a JWT\n(null otherwise), and whether it runs out before the run is expected to finish. Never the\ncredential.",
        "properties": {
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "expires_before_finish": {
            "title": "Expires Before Finish",
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "expires_at",
          "expires_before_finish"
        ],
        "title": "CredentialOut",
        "type": "object"
      },
      "CustomJsonIn": {
        "additionalProperties": false,
        "description": "A custom JSON agent: sent ``{message_field: <message>}``, its reply read at\n``reply_path`` (dotted, list positions as numbers, ``-1`` the last), the key in\n``auth_header`` after ``auth_scheme`` (empty: the key alone). ``message_format`` ``text``\nsends the message as a string; ``messages`` sends the conversation as a list of\n``{role, content}``. ``body`` (optional, a JSON object of at most 2 KB, together with a\n``session``'s ``follow_up``) is what every request starts from, the message put at\n``message_field``, a dotted path into it (a model or assistant id, say). ``session`` and\n``reply_when`` are for agents that keep the conversation themselves or stream their own\nmessages among others; a later turn's body must hold the message and then the conversation\nid. Leave the whole object out for an OpenAI-style ``/chat/completions`` address or the\n``message``/``reply`` defaults.",
        "properties": {
          "auth_header": {
            "default": "Authorization",
            "maxLength": 64,
            "title": "Auth Header",
            "type": "string"
          },
          "auth_scheme": {
            "default": "Bearer",
            "maxLength": 32,
            "title": "Auth Scheme",
            "type": "string"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "message_field": {
            "default": "message",
            "maxLength": 64,
            "title": "Message Field",
            "type": "string"
          },
          "message_format": {
            "default": "text",
            "enum": [
              "text",
              "messages"
            ],
            "title": "Message Format",
            "type": "string"
          },
          "reply_path": {
            "default": "reply",
            "maxLength": 519,
            "title": "Reply Path",
            "type": "string"
          },
          "reply_when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplyWhenIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "CustomJsonIn",
        "type": "object"
      },
      "CustomerAnswer": {
        "additionalProperties": false,
        "description": "One answer as the customer gave it, kept on the order until the Review runs.",
        "properties": {
          "note": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Text"
              },
              {
                "type": "null"
              }
            ]
          },
          "response": {
            "$ref": "#/components/schemas/Response"
          },
          "threat_id": {
            "$ref": "#/components/schemas/ThreatId"
          }
        },
        "required": [
          "threat_id",
          "response"
        ],
        "title": "CustomerAnswer",
        "type": "object"
      },
      "DestructiveDraft": {
        "additionalProperties": false,
        "description": "Whether the agent proposes the destructive test (``on``) and, if so, what it filled in\nof the signing form for the signer to check. Off holds nothing else.",
        "properties": {
          "answers": {
            "$ref": "#/components/schemas/DraftAnswers",
            "default": {}
          },
          "declared_object": {
            "anyOf": [
              {
                "maxLength": 80,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Declared Object"
          },
          "on": {
            "title": "On",
            "type": "boolean"
          },
          "organization": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DraftOrganization"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope_box": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Box"
          },
          "signer_name": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signer Name"
          },
          "signer_title": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signer Title"
          }
        },
        "required": [
          "on"
        ],
        "title": "DestructiveDraft",
        "type": "object"
      },
      "DnsInstructionOut": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "type": {
            "const": "TXT",
            "title": "Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "type",
          "name",
          "value"
        ],
        "title": "DnsInstructionOut",
        "type": "object"
      },
      "DraftAnswers": {
        "additionalProperties": false,
        "description": "The agent's suggestions for the environment questions (Part A, 3 to 6); ``None``: none.",
        "properties": {
          "can_reach_third_party_or_production": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Can Reach Third Party Or Production"
          },
          "checked_every_providers_rules": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checked Every Providers Rules"
          },
          "disposable_and_losable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disposable And Losable"
          },
          "everything_reachable_is_owned_and_listed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Everything Reachable Is Owned And Listed"
          }
        },
        "title": "DraftAnswers",
        "type": "object"
      },
      "DraftOrganization": {
        "additionalProperties": false,
        "description": "Q7's organization or other person the signer signs for. ``holds_written_authority`` and\n``sanctioned`` are the signer's own statements, so an agent can never make them: neither is\nhere.",
        "properties": {
          "legal_name": {
            "maxLength": 200,
            "title": "Legal Name",
            "type": "string"
          },
          "registration_number": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Number"
          },
          "signer_title": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signer Title"
          }
        },
        "required": [
          "legal_name"
        ],
        "title": "DraftOrganization",
        "type": "object"
      },
      "EndpointFramework": {
        "description": "The web framework a POST route is declared with.",
        "enum": [
          "fastapi",
          "flask",
          "express",
          "nestjs"
        ],
        "title": "EndpointFramework",
        "type": "string"
      },
      "EndpointSchema": {
        "additionalProperties": false,
        "description": "One POST route the code serves and the shape it declares (GitHub #292): the top-level\nrequest body field that carries the user's message and how (``text`` or a ``messages`` list\nof ``{role, content}`` turns), and the dotted path to the reply text in its response. Each is\nNone when the code does not show it or shows no clear one. Names only, never a value.",
        "properties": {
          "framework": {
            "$ref": "#/components/schemas/EndpointFramework"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "message_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message Field"
          },
          "message_format": {
            "anyOf": [
              {
                "enum": [
                  "text",
                  "messages"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message Format"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "reply_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reply Path"
          }
        },
        "required": [
          "framework",
          "path",
          "message_field",
          "message_format",
          "reply_path",
          "location"
        ],
        "title": "EndpointSchema",
        "type": "object"
      },
      "ErrorBody": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        },
        "required": [
          "error"
        ],
        "title": "ErrorBody",
        "type": "object"
      },
      "ErrorDetail": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FieldErrorBody"
            },
            "title": "Fields",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "ErrorDetail",
        "type": "object"
      },
      "EvidenceLabel": {
        "description": "What a report statement rests on: observed by the scan, told to us, found in the\ncustomer's code by SiBear's automated rules, answered from it by SiBear's AI model, or\nnothing. None of the code labels is ever Tested (a checklist item needs proof in operation,\nand reading the code is not that) or the customer's answer (legal L4).",
        "enum": [
          "tested",
          "declared",
          "found_in_code",
          "ai_answered",
          "not_assessed"
        ],
        "title": "EvidenceLabel",
        "type": "string"
      },
      "ExfilCheckChosen": {
        "description": "The customer's live consent: the text version and when it was given.",
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "title": "Accepted At",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "accepted_at"
        ],
        "title": "ExfilCheckChosen",
        "type": "object"
      },
      "ExfilCheckIn": {
        "additionalProperties": false,
        "description": "The opt-in exfiltration check (issue #960), as the order page's box sends it: the tick with\nthe version of the text shown. Sent only when the customer ticked the box themselves.",
        "properties": {
          "accepted": {
            "title": "Accepted",
            "type": "boolean"
          },
          "text_version": {
            "maxLength": 64,
            "title": "Text Version",
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "text_version"
        ],
        "title": "ExfilCheckIn",
        "type": "object"
      },
      "ExfilCheckOffer": {
        "description": "What the order page shows for the opt-in exfiltration check: the exact consent text (in\nplain words, naming SiBear's collector and what it keeps), its version and the most requests\nit sends.",
        "properties": {
          "max_requests": {
            "title": "Max Requests",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "text",
          "max_requests"
        ],
        "title": "ExfilCheckOffer",
        "type": "object"
      },
      "ExfilCheckState": {
        "description": "The exfiltration check's box (issue #960). ``available`` is False when this server has no\ncollector configured, and the page does not offer the check. ``chosen`` is None unless the\ncustomer ticked it; a consent of an older text version is shown as not chosen. Never ticked\nby default.",
        "properties": {
          "available": {
            "title": "Available",
            "type": "boolean"
          },
          "chosen": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExfilCheckChosen"
              },
              {
                "type": "null"
              }
            ]
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExfilCheckOffer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "available",
          "offer",
          "chosen"
        ],
        "title": "ExfilCheckState",
        "type": "object"
      },
      "FactRow": {
        "properties": {
          "label": {
            "title": "Label",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "title": "FactRow",
        "type": "object"
      },
      "FactorSource": {
        "description": "Where a chat check's factors come from.",
        "enum": [
          "grader",
          "code",
          "assumed"
        ],
        "title": "FactorSource",
        "type": "string"
      },
      "FactsView": {
        "properties": {
          "kind": {
            "const": "facts",
            "default": "facts",
            "title": "Kind",
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/FactRow"
            },
            "title": "Rows",
            "type": "array"
          }
        },
        "required": [
          "rows"
        ],
        "title": "FactsView",
        "type": "object"
      },
      "FieldErrorBody": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "field": {
            "title": "Field",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "field",
          "code",
          "message"
        ],
        "title": "FieldErrorBody",
        "type": "object"
      },
      "FileInstructionOut": {
        "properties": {
          "contents": {
            "title": "Contents",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "contents"
        ],
        "title": "FileInstructionOut",
        "type": "object"
      },
      "FixPreview": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "category_label": {
            "title": "Category Label",
            "type": "string"
          },
          "label": {
            "default": "Example only. A generic change for this kind of problem, not applied to your code and not tested against it.",
            "title": "Label",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/FixSource"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "category",
          "category_label",
          "text",
          "source"
        ],
        "title": "FixPreview",
        "type": "object"
      },
      "FixSource": {
        "enum": [
          "model",
          "example"
        ],
        "title": "FixSource",
        "type": "string"
      },
      "FormConfig": {
        "properties": {
          "attestation": {
            "$ref": "#/components/schemas/TextVersion"
          },
          "authorization": {
            "$ref": "#/components/schemas/TextVersion"
          },
          "marketing_consent": {
            "$ref": "#/components/schemas/TextVersion"
          },
          "ownership_dns_label": {
            "title": "Ownership Dns Label",
            "type": "string"
          },
          "ownership_file_path": {
            "title": "Ownership File Path",
            "type": "string"
          }
        },
        "required": [
          "marketing_consent",
          "authorization",
          "attestation",
          "ownership_dns_label",
          "ownership_file_path"
        ],
        "title": "FormConfig",
        "type": "object"
      },
      "Found": {
        "additionalProperties": false,
        "description": "One thing the code shows, in fixed words, and where it was read (up to ``MAX_PLACES``;\n``more`` counts the rest). No places: the ML-BOM as a whole shows it.",
        "properties": {
          "locations": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/Location"
            },
            "maxItems": 3,
            "title": "Locations",
            "type": "array"
          },
          "more": {
            "default": 0,
            "minimum": 0.0,
            "title": "More",
            "type": "integer"
          },
          "title": {
            "maxLength": 300,
            "minLength": 1,
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "title": "Found",
        "type": "object"
      },
      "Framework": {
        "enum": [
          "owasp_llm_top_10_2026",
          "owasp_agentic_top_10_2026",
          "mitre_atlas"
        ],
        "title": "Framework",
        "type": "string"
      },
      "GroupView": {
        "properties": {
          "blocks": {
            "items": {
              "$ref": "#/components/schemas/BlockView"
            },
            "title": "Blocks",
            "type": "array"
          },
          "compact": {
            "default": false,
            "title": "Compact",
            "type": "boolean"
          },
          "kind": {
            "const": "group",
            "default": "group",
            "title": "Kind",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title",
          "blocks"
        ],
        "title": "GroupView",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HarmfulAnswers": {
        "additionalProperties": false,
        "description": "The customer's two Yes/No answers of the context step (True = Yes; None = not answered),\nkept whether or not the harmful-content box was ticked, so a saved step shows them again.",
        "properties": {
          "reaches_person": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reaches Person"
          },
          "test_copy": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Copy"
          }
        },
        "title": "HarmfulAnswers",
        "type": "object"
      },
      "HarmfulCheckChosen": {
        "description": "The customer's live consent: the text version, when it was given and the extras ticked.",
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "title": "Accepted At",
            "type": "string"
          },
          "chemical": {
            "title": "Chemical",
            "type": "boolean"
          },
          "malware": {
            "title": "Malware",
            "type": "boolean"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "accepted_at",
          "chemical",
          "malware"
        ],
        "title": "HarmfulCheckChosen",
        "type": "object"
      },
      "HarmfulCheckIn": {
        "additionalProperties": false,
        "description": "The opt-in harmful-content check, as the order page's box sends it: the ticked authorization\nwith the version of the text shown, the two questions the customer answered (True = Yes; None\n= not answered) and the extra boxes (each off by default). Sent only when the box is ticked.",
        "properties": {
          "accepted": {
            "title": "Accepted",
            "type": "boolean"
          },
          "chemical": {
            "default": false,
            "title": "Chemical",
            "type": "boolean"
          },
          "malware": {
            "default": false,
            "title": "Malware",
            "type": "boolean"
          },
          "reaches_person": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reaches Person"
          },
          "test_copy": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Copy"
          },
          "text_version": {
            "maxLength": 64,
            "title": "Text Version",
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "text_version"
        ],
        "title": "HarmfulCheckIn",
        "type": "object"
      },
      "HarmfulCheckOffer": {
        "description": "What the order page shows for the opt-in harmful-content check: the consent text (a\nvariant per choice of extras, so the page never composes it), the text of each extra box and\nthe two questions. The version is what the customer's tick is stored under.",
        "properties": {
          "chemical_text": {
            "title": "Chemical Text",
            "type": "string"
          },
          "malware_text": {
            "title": "Malware Text",
            "type": "string"
          },
          "note_reaches_person": {
            "title": "Note Reaches Person",
            "type": "string"
          },
          "question_reaches_person": {
            "title": "Question Reaches Person",
            "type": "string"
          },
          "question_test_copy": {
            "title": "Question Test Copy",
            "type": "string"
          },
          "variants": {
            "items": {
              "$ref": "#/components/schemas/HarmfulCheckVariant"
            },
            "title": "Variants",
            "type": "array"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "variants",
          "chemical_text",
          "malware_text",
          "question_test_copy",
          "question_reaches_person",
          "note_reaches_person"
        ],
        "title": "HarmfulCheckOffer",
        "type": "object"
      },
      "HarmfulCheckState": {
        "description": "``offer`` is None while the check is not available: the page then hides the box and says\nso. ``chosen`` is None unless the customer ticked it; a consent of an older text version is\nshown as not chosen.",
        "properties": {
          "answers": {
            "$ref": "#/components/schemas/HarmfulAnswers"
          },
          "available": {
            "title": "Available",
            "type": "boolean"
          },
          "chosen": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HarmfulCheckChosen"
              },
              {
                "type": "null"
              }
            ]
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HarmfulCheckOffer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "available",
          "offer",
          "chosen",
          "answers"
        ],
        "title": "HarmfulCheckState",
        "type": "object"
      },
      "HarmfulCheckVariant": {
        "description": "The exact consent text for one choice of the two extra boxes.",
        "properties": {
          "chemical": {
            "title": "Chemical",
            "type": "boolean"
          },
          "malware": {
            "title": "Malware",
            "type": "boolean"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "chemical",
          "malware",
          "text"
        ],
        "title": "HarmfulCheckVariant",
        "type": "object"
      },
      "HarmfulContentRowView": {
        "description": "One harmful-content check as the page shows it: its title, refused / complied / not\nchecked, and the lines under it. No reply text, ever.",
        "properties": {
          "lines": {
            "items": {
              "type": "string"
            },
            "title": "Lines",
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/HarmfulOutcome"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "probe_id",
          "title",
          "outcome",
          "lines"
        ],
        "title": "HarmfulContentRowView",
        "type": "object"
      },
      "HarmfulContentView": {
        "description": "The opt-in harmful-content check as counts and one row per check.",
        "properties": {
          "complied": {
            "title": "Complied",
            "type": "integer"
          },
          "lede": {
            "title": "Lede",
            "type": "string"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "refused": {
            "title": "Refused",
            "type": "integer"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/HarmfulContentRowView"
            },
            "title": "Rows",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title",
          "lede",
          "refused",
          "complied",
          "not_checked",
          "rows",
          "note"
        ],
        "title": "HarmfulContentView",
        "type": "object"
      },
      "HarmfulOutcome": {
        "enum": [
          "refused",
          "complied",
          "not_checked"
        ],
        "title": "HarmfulOutcome",
        "type": "string"
      },
      "HarmfulProposal": {
        "additionalProperties": false,
        "description": "The harmful-content check as the agent proposes it: on or off and, when on, its answers to\nthe check's two questions (None: left for the person) and the two extra classes. The person's\nown tick on each box is still what turns it on.",
        "properties": {
          "chemical": {
            "default": false,
            "title": "Chemical",
            "type": "boolean"
          },
          "malware": {
            "default": false,
            "title": "Malware",
            "type": "boolean"
          },
          "on": {
            "default": false,
            "title": "On",
            "type": "boolean"
          },
          "reaches_person": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reaches Person"
          },
          "test_copy": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Copy"
          }
        },
        "title": "HarmfulProposal",
        "type": "object"
      },
      "JsonValue": {},
      "Level": {
        "description": "A likelihood or an impact, on the methodology's three levels.",
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "title": "Level",
        "type": "string"
      },
      "LineStyle": {
        "enum": [
          "detail",
          "body",
          "caption",
          "code"
        ],
        "title": "LineStyle",
        "type": "string"
      },
      "LineView": {
        "properties": {
          "style": {
            "$ref": "#/components/schemas/LineStyle",
            "default": "detail"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "title": "LineView",
        "type": "object"
      },
      "LinesSource": {
        "enum": [
          "ai",
          "rules"
        ],
        "type": "string"
      },
      "Location": {
        "additionalProperties": false,
        "description": "Where in the repository: a path from its root and, when known, a line (1-based).",
        "properties": {
          "line": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line"
          },
          "path": {
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "title": "Location",
        "type": "object"
      },
      "Loss": {
        "description": "How much of one of confidentiality, integrity or availability an effect costs.",
        "enum": [
          "none",
          "low",
          "medium",
          "high"
        ],
        "title": "Loss",
        "type": "string"
      },
      "MarkerKind": {
        "enum": [
          "memory",
          "knowledge_base",
          "tool_chain",
          "private_note",
          "other_user",
          "other_user_chat",
          "agent_only",
          "session_order",
          "session_secret",
          "session_fact",
          "env_secret",
          "config_secret",
          "secret_store"
        ],
        "title": "MarkerKind",
        "type": "string"
      },
      "MarkerOffer": {
        "description": "A kind of test marker the step offers: where the customer places it, in a staging or test\ncopy of their agent, and how they see it is in place.",
        "properties": {
          "confirmation": {
            "title": "Confirmation",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/MarkerKind"
          },
          "placement": {
            "title": "Placement",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "placement",
          "confirmation"
        ],
        "title": "MarkerOffer",
        "type": "object"
      },
      "MarkerSetup": {
        "description": "The order's test-marker step. ``offered``: the order is open, so the step takes a choice.\n``kinds``: every kind on offer, in order. ``markers``: those made for the order.\n``traffic_sent``: the run began sending to the agent (false until it does, and for a run that\nfailed before it did): only then could a marker have been read, so only then is a deletion\nasked.",
        "properties": {
          "kinds": {
            "items": {
              "$ref": "#/components/schemas/MarkerOffer"
            },
            "title": "Kinds",
            "type": "array"
          },
          "markers": {
            "items": {
              "$ref": "#/components/schemas/PlacedMarker"
            },
            "title": "Markers",
            "type": "array"
          },
          "offered": {
            "title": "Offered",
            "type": "boolean"
          },
          "traffic_sent": {
            "title": "Traffic Sent",
            "type": "boolean"
          }
        },
        "required": [
          "offered",
          "kinds",
          "markers",
          "traffic_sent"
        ],
        "title": "MarkerSetup",
        "type": "object"
      },
      "MarkersIn": {
        "additionalProperties": false,
        "properties": {
          "kinds": {
            "items": {
              "$ref": "#/components/schemas/MarkerKind"
            },
            "maxItems": 13,
            "title": "Kinds",
            "type": "array"
          },
          "placed": {
            "items": {
              "$ref": "#/components/schemas/MarkerKind"
            },
            "maxItems": 13,
            "title": "Placed",
            "type": "array"
          }
        },
        "required": [
          "kinds"
        ],
        "title": "MarkersIn",
        "type": "object"
      },
      "MemoryCleanup": {
        "description": "What the Review left in the customer's agent and when they must have deleted it. ``codes``\nare the random codes the two test notes carry, the only thing to search for; the window runs\nfrom ``window_started_at`` (the end of the run) to ``deadline_at``. ``confirmed_at``: the\ncustomer said every note is deleted.",
        "properties": {
          "codes": {
            "items": {
              "type": "string"
            },
            "title": "Codes",
            "type": "array"
          },
          "confirmed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed At"
          },
          "deadline_at": {
            "format": "date-time",
            "title": "Deadline At",
            "type": "string"
          },
          "window_started_at": {
            "format": "date-time",
            "title": "Window Started At",
            "type": "string"
          }
        },
        "required": [
          "codes",
          "window_started_at",
          "deadline_at",
          "confirmed_at"
        ],
        "title": "MemoryCleanup",
        "type": "object"
      },
      "MemoryNotRun": {
        "description": "Why a memory test the customer consented to did not run. No note was written\ninto their agent then, so there is nothing to delete or confirm.",
        "enum": [
          "switched_off",
          "not_available",
          "not_sent",
          "review_failed"
        ],
        "title": "MemoryNotRun",
        "type": "string"
      },
      "MemoryProposal": {
        "additionalProperties": false,
        "description": "The memory test as the agent proposes it, with its answer to \"How does this agent keep\nmemory?\" (None: left for the person).",
        "properties": {
          "memory_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryScope"
              },
              {
                "type": "null"
              }
            ]
          },
          "on": {
            "default": false,
            "title": "On",
            "type": "boolean"
          }
        },
        "title": "MemoryProposal",
        "type": "object"
      },
      "MemoryScope": {
        "description": "The customer's answer to \"How does this agent keep memory?\". Only the first lets the box be\nticked: where memory is shared with other users, or the agent is live, the test is refused.",
        "enum": [
          "test_copy_unshared",
          "shared_or_live"
        ],
        "title": "MemoryScope",
        "type": "string"
      },
      "MemoryTest": {
        "description": "The memory test on one paid Review order. ``offered``: the test is on offer for this order\n(switched on, the order open and its agent given), or the customer consented to it while it\nwas, so a consented test always reads as offered. ``consented``: a current, not withdrawn\nconsent is stored for the order's present agent address. ``consent_text`` is the box the\ncustomer ticks and ``terms_text`` the clause for the test, both of ``text_version``;\n``cleanup_days`` is the window. ``run`` is set once a consented test's Review ended: ``ran``,\nor ``not_run`` with ``not_run_reason``. ``cleanup`` is set once a run planted the notes and\nended, and stays after the test is switched off.",
        "properties": {
          "cleanup": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryCleanup"
              },
              {
                "type": "null"
              }
            ]
          },
          "cleanup_days": {
            "title": "Cleanup Days",
            "type": "integer"
          },
          "consent_text": {
            "title": "Consent Text",
            "type": "string"
          },
          "consented": {
            "title": "Consented",
            "type": "boolean"
          },
          "not_run_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryNotRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "offered": {
            "title": "Offered",
            "type": "boolean"
          },
          "run": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryTestRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "terms_text": {
            "title": "Terms Text",
            "type": "string"
          },
          "text_version": {
            "title": "Text Version",
            "type": "string"
          }
        },
        "required": [
          "offered",
          "consented",
          "text_version",
          "consent_text",
          "terms_text",
          "cleanup_days",
          "run",
          "not_run_reason",
          "cleanup"
        ],
        "title": "MemoryTest",
        "type": "object"
      },
      "MemoryTestRowView": {
        "description": "One memory check as the page shows it: its title, its state (the check states' own) and\nthe lines under it. No reply, note or code, ever.",
        "properties": {
          "lines": {
            "items": {
              "type": "string"
            },
            "title": "Lines",
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/CheckState"
          },
          "outcome_words": {
            "title": "Outcome Words",
            "type": "string"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "probe_id",
          "title",
          "outcome",
          "outcome_words",
          "lines"
        ],
        "title": "MemoryTestRowView",
        "type": "object"
      },
      "MemoryTestRun": {
        "description": "What became of the test the customer consented to, once the Review ended.",
        "enum": [
          "ran",
          "not_run"
        ],
        "title": "MemoryTestRun",
        "type": "string"
      },
      "MemoryTestView": {
        "description": "The memory test the customer consented to: whether it ran, one row per\ncheck, and the note (where the codes are, or why it did not run and that nothing is left).",
        "properties": {
          "lede": {
            "title": "Lede",
            "type": "string"
          },
          "not_run_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryNotRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "ran": {
            "title": "Ran",
            "type": "boolean"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/MemoryTestRowView"
            },
            "title": "Rows",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title",
          "lede",
          "ran",
          "not_run_reason",
          "rows",
          "note"
        ],
        "title": "MemoryTestView",
        "type": "object"
      },
      "NeedsPerson": {
        "description": "One thing only the person can do for an order. ``item``: ``payment``, ``github``,\n``consent:harmful``, ``consent:compute``, ``consent:attacker_context``, ``consent:memory``,\n``marker_placement``,\n``cleanup:memory`` or ``cleanup:markers``. ``link``: the page to hand them. ``optional``:\nthe Review can start without it.",
        "properties": {
          "item": {
            "title": "Item",
            "type": "string"
          },
          "link": {
            "title": "Link",
            "type": "string"
          },
          "optional": {
            "title": "Optional",
            "type": "boolean"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "item",
          "reason",
          "link",
          "optional"
        ],
        "title": "NeedsPerson",
        "type": "object"
      },
      "NotCheckedReason": {
        "description": "``count`` checks we could not judge for ``why`` (``reason`` is the stored code).",
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "reason": {
            "$ref": "#/components/schemas/ReasonCode"
          },
          "why": {
            "title": "Why",
            "type": "string"
          }
        },
        "required": [
          "reason",
          "count",
          "why"
        ],
        "title": "NotCheckedReason",
        "type": "object"
      },
      "OrderCredential": {
        "description": "What the order says of the credential its customer gave: the kind, when a JWT states it\nexpires (null otherwise), whether it runs out before the run is expected to finish and\nwhether the run is paused until a fresh one is pasted. Never the credential.",
        "properties": {
          "awaiting": {
            "title": "Awaiting",
            "type": "boolean"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "expires_before_finish": {
            "title": "Expires Before Finish",
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "expires_at",
          "expires_before_finish",
          "awaiting"
        ],
        "title": "OrderCredential",
        "type": "object"
      },
      "OrderState": {
        "enum": [
          "awaiting_payment",
          "paid",
          "awaiting_input",
          "queued",
          "running",
          "done",
          "failed"
        ],
        "title": "OrderState",
        "type": "string"
      },
      "OutlinePart": {
        "properties": {
          "part": {
            "$ref": "#/components/schemas/ReportPart"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "part",
          "title"
        ],
        "title": "OutlinePart",
        "type": "object"
      },
      "OwnerResult": {
        "description": "The report plus the owner's sharing state, and the requester's previous scan of the\nagent (None when there is none).",
        "properties": {
          "applicable": {
            "title": "Applicable",
            "type": "integer"
          },
          "automated": {
            "title": "Automated",
            "type": "string"
          },
          "badge_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Badge Path"
          },
          "booking_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Booking Url"
          },
          "cant_test": {
            "title": "Cant Test",
            "type": "integer"
          },
          "cant_test_reasons": {
            "items": {
              "$ref": "#/components/schemas/CantTestReason"
            },
            "title": "Cant Test Reasons",
            "type": "array"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/CategoryBar"
            },
            "title": "Categories",
            "type": "array"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/ReportFinding"
            },
            "title": "Findings",
            "type": "array"
          },
          "findings_total": {
            "title": "Findings Total",
            "type": "integer"
          },
          "fix_preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FixPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "graded": {
            "title": "Graded",
            "type": "integer"
          },
          "held": {
            "title": "Held",
            "type": "integer"
          },
          "leaked": {
            "title": "Leaked",
            "type": "integer"
          },
          "lowest_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lowest Score"
          },
          "not_a_guarantee": {
            "title": "Not A Guarantee",
            "type": "string"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "not_checked_reasons": {
            "items": {
              "$ref": "#/components/schemas/NotCheckedReason"
            },
            "title": "Not Checked Reasons",
            "type": "array"
          },
          "not_tested": {
            "title": "Not Tested",
            "type": "integer"
          },
          "nothing_leaked": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nothing Leaked"
          },
          "outline": {
            "items": {
              "$ref": "#/components/schemas/OutlinePart"
            },
            "title": "Outline",
            "type": "array"
          },
          "pack_version": {
            "title": "Pack Version",
            "type": "string"
          },
          "previous": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreviousScan"
              },
              {
                "type": "null"
              }
            ]
          },
          "probes": {
            "title": "Probes",
            "type": "integer"
          },
          "public_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Path"
          },
          "rating_method": {
            "$ref": "#/components/schemas/RatingMethod"
          },
          "result_id": {
            "title": "Result Id",
            "type": "string"
          },
          "revision": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScoreRevision"
              },
              {
                "type": "null"
              }
            ]
          },
          "rules_followed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Followed"
          },
          "scan_date": {
            "format": "date",
            "title": "Scan Date",
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/Scope"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "scoring_rules_version": {
            "title": "Scoring Rules Version",
            "type": "string"
          },
          "severity_counts": {
            "items": {
              "$ref": "#/components/schemas/SeverityCount"
            },
            "title": "Severity Counts",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ScanStatus"
          },
          "stopped": {
            "default": 0,
            "title": "Stopped",
            "type": "integer"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "unclear": {
            "title": "Unclear",
            "type": "integer"
          },
          "verification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verification"
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/Visibility"
          }
        },
        "required": [
          "result_id",
          "target_host",
          "scan_date",
          "pack_version",
          "outline",
          "summary",
          "probes",
          "applicable",
          "graded",
          "held",
          "leaked",
          "unclear",
          "not_checked",
          "not_checked_reasons",
          "not_tested",
          "cant_test",
          "cant_test_reasons",
          "status",
          "score",
          "lowest_score",
          "categories",
          "findings_total",
          "severity_counts",
          "findings",
          "nothing_leaked",
          "fix_preview",
          "scope",
          "rating_method",
          "not_a_guarantee",
          "automated",
          "rules_followed",
          "scoring_rules_version",
          "revision",
          "verification",
          "visibility",
          "public_path",
          "badge_path",
          "booking_url",
          "previous"
        ],
        "title": "OwnerResult",
        "type": "object"
      },
      "OwnershipMethod": {
        "description": "How a scan request proved authority over its agent address.",
        "enum": [
          "dns",
          "file",
          "attestation"
        ],
        "title": "OwnershipMethod",
        "type": "string"
      },
      "OwnershipOut": {
        "properties": {
          "attestation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttestationOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "dns": {
            "$ref": "#/components/schemas/DnsInstructionOut"
          },
          "file": {
            "$ref": "#/components/schemas/FileInstructionOut"
          },
          "owner_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Token"
          },
          "recommended_method": {
            "$ref": "#/components/schemas/PublishedProof"
          },
          "refusal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScanRefusalOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "scan": {
            "anyOf": [
              {
                "enum": [
                  "started",
                  "not_allowed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scan"
          },
          "token_expires_at": {
            "format": "date-time",
            "title": "Token Expires At",
            "type": "string"
          },
          "verified": {
            "title": "Verified",
            "type": "boolean"
          },
          "verified_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnershipMethod"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "token_expires_at",
          "verified",
          "verified_method",
          "dns",
          "file",
          "recommended_method",
          "scan",
          "attestation"
        ],
        "title": "OwnershipOut",
        "type": "object"
      },
      "Pack": {
        "description": "An optional check named in the deprecated ``packs`` list: read as that check switched on\nin ``checks``.",
        "enum": [
          "harmful_content",
          "memory"
        ],
        "title": "Pack",
        "type": "string"
      },
      "PartItem": {
        "discriminator": {
          "mapping": {
            "bullets": "#/components/schemas/BulletsView",
            "facts": "#/components/schemas/FactsView",
            "group": "#/components/schemas/GroupView"
          },
          "propertyName": "kind"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/FactsView"
          },
          {
            "$ref": "#/components/schemas/GroupView"
          },
          {
            "$ref": "#/components/schemas/BulletsView"
          }
        ]
      },
      "PartView": {
        "description": "One section as a document: the review it belongs to, an introduction, its items in\norder and its references.",
        "properties": {
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "intro": {
            "title": "Intro",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PartItem"
            },
            "title": "Items",
            "type": "array"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/EvidenceLabel"
            },
            "title": "Labels",
            "type": "array"
          },
          "references": {
            "items": {
              "type": "string"
            },
            "title": "References",
            "type": "array"
          },
          "review_id": {
            "title": "Review Id",
            "type": "string"
          },
          "section": {
            "$ref": "#/components/schemas/ReportSection"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "section",
          "title",
          "labels",
          "review_id",
          "target_host",
          "generated_at",
          "intro",
          "items",
          "references"
        ],
        "title": "PartView",
        "type": "object"
      },
      "PlacedMarker": {
        "description": "A marker made for the order. ``text`` is what the customer places (it carries ``code``, the\nrandom code to find it by). ``placed_at``: when the customer said it is in place in the agent\nthe order now names (None: not said, or said for another address). ``removed_at``: when they\nsaid, after the run, that it is deleted.",
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/MarkerKind"
          },
          "placed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Placed At"
          },
          "removed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Removed At"
          },
          "text": {
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "code",
          "text",
          "placed_at",
          "removed_at"
        ],
        "title": "PlacedMarker",
        "type": "object"
      },
      "PlatformOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "PlatformOut",
        "type": "object"
      },
      "PollIn": {
        "additionalProperties": false,
        "properties": {
          "token": {
            "format": "password",
            "maxLength": 200,
            "title": "Token",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "token"
        ],
        "title": "PollIn",
        "type": "object"
      },
      "PrefillCreated": {
        "description": "``link``: give it to the person, who opens it to check and approve. ``token``: the same\nsecret, to ask ``lookup`` what became of it. Both are shown once; the link works once, for 24\nhours.",
        "properties": {
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "link": {
            "title": "Link",
            "type": "string"
          },
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "link",
          "token",
          "expires_at"
        ],
        "title": "PrefillCreated",
        "type": "object"
      },
      "PrefillTokenIn": {
        "additionalProperties": false,
        "description": "The token of a link an agent made.",
        "properties": {
          "token": {
            "format": "password",
            "maxLength": 200,
            "title": "Token",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "token"
        ],
        "title": "PrefillTokenIn",
        "type": "object"
      },
      "PrefilledReviewCreated": {
        "description": "``link`` and ``token`` as for any prepared form; ``ownership``: the token to publish on the\nagent's host first; ``paid_by_code``: the Review code was accepted, so the owner's order is\nalready paid when they open the link (the code is spent then, not now);\n``test_key_provided``: the key you gave is held, encrypted, until the owner approves (at most\n24 hours).",
        "properties": {
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "link": {
            "title": "Link",
            "type": "string"
          },
          "ownership": {
            "$ref": "#/components/schemas/PreparedOwnershipOut"
          },
          "paid_by_code": {
            "title": "Paid By Code",
            "type": "boolean"
          },
          "test_key_provided": {
            "default": false,
            "title": "Test Key Provided",
            "type": "boolean"
          },
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "link",
          "token",
          "expires_at",
          "ownership",
          "paid_by_code"
        ],
        "title": "PrefilledReviewCreated",
        "type": "object"
      },
      "PrefilledReviewOrderIn": {
        "additionalProperties": false,
        "description": "A paid Review's set-up for the owner at ``email``. Two fields are enough: ``email`` and\n``agent_url``. SiBear reads the rest from the agent's code once the owner connects GitHub:\nthe request and reply format, what the agent keeps and does, the answers to the security\nquestions (each with the lines it cites), the test-marker kinds, and its brand rules and\nbusiness facts, which SiBear's AI model reads from masked excerpts of the code. Where the\ndeterministic reading settles no route, the AI suggests one. The owner does only what is\ntheirs on one page. Optional, when you have them:\n\n- ``test_key`` (with ``credential_kind``) or ``no_key`` for an endpoint that takes none:\n  checked offline, encrypted, never returned, deleted within 24 hours unless the Review\n  started. Without one, the owner's page asks you, never them: send it later with\n  ``POST /v1/prefilled-review-orders/key``;\n- ``repositories`` (``owner/name`` or their GitHub address, at most three): ticked for the\n  owner on the repository page;\n- ``brand_rules`` and ``business_facts`` (one statement per line): not needed, since SiBear\n  reads them from the code; yours win over what it reads;\n- ``checks``: a plain on or off for each optional check, with the answers the check asks\n  (``harmful_content``, ``memory_test``, ``attacker_notes``, ``reasoning_cost``): a check on\n  makes its unticked box appear for the owner;\n- ``destructive``: the destructive test, ``{\"on\": false}`` or ``{\"on\": true, ...}`` with the\n  scope, the declared test object, the organization, the signer's name and title and your\n  suggestions for the four environment questions; the owner's page asks \"Include the\n  destructive test?\", preset to your choice;\n- ``coupon_code``: a Review code we gave that owner (their address or their email domain);\n  the owner spends it with one press.\n\nDeprecated, still accepted: ``api_preset``, ``custom_json`` and ``api_sample`` (SiBear reads\nthe format from the code and our AI suggests one where the code settles none; one given is\nkept as told and used only for an endpoint behind a gateway the code cannot show),\n``checklist`` (our AI answers each question from the code; yours are shown as yours beside\nthem), ``markers`` (ignored: our AI suggests the kinds and placing a marker is the owner's\nact) and ``packs`` (each one named reads as that check switched on in ``checks``).\nNothing personal: no authorization, no consent, no signature, no tick that accepts a text,\nno answer about the signer themselves and no word that a marker is in place. Those are the\nowner's, on the approval page (each is refused as an unknown field).",
        "properties": {
          "agent_url": {
            "maxLength": 2048,
            "title": "Agent Url",
            "type": "string"
          },
          "api_preset": {
            "anyOf": [
              {
                "enum": [
                  "openai_chat",
                  "anthropic_messages",
                  "generic_json",
                  "dify_chat",
                  "chatkit",
                  "langgraph_runs"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "title": "Api Preset"
          },
          "api_sample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiSampleIn"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true
          },
          "brand_rules": {
            "anyOf": [
              {
                "maxLength": 8000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Rules"
          },
          "business_facts": {
            "anyOf": [
              {
                "maxLength": 8000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Facts"
          },
          "checklist": {
            "deprecated": true,
            "items": {
              "$ref": "#/components/schemas/CustomerAnswer"
            },
            "maxItems": 40,
            "title": "Checklist",
            "type": "array"
          },
          "checks": {
            "$ref": "#/components/schemas/PreparedChecks",
            "default": {
              "attacker_notes": {
                "on": false
              },
              "harmful_content": {
                "chemical": false,
                "malware": false,
                "on": false
              },
              "memory_test": {
                "on": false
              },
              "reasoning_cost": {
                "on": true
              }
            }
          },
          "coupon_code": {
            "anyOf": [
              {
                "format": "password",
                "maxLength": 64,
                "minLength": 1,
                "type": "string",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Coupon Code"
          },
          "credential_kind": {
            "default": "bearer",
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Credential Kind",
            "type": "string"
          },
          "custom_json": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomJsonIn"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true
          },
          "destructive": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DestructiveDraft"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "maxLength": 254,
            "title": "Email",
            "type": "string"
          },
          "markers": {
            "deprecated": true,
            "items": {
              "$ref": "#/components/schemas/MarkerKind"
            },
            "maxItems": 13,
            "title": "Markers",
            "type": "array"
          },
          "no_key": {
            "default": false,
            "title": "No Key",
            "type": "boolean"
          },
          "packs": {
            "deprecated": true,
            "items": {
              "$ref": "#/components/schemas/Pack"
            },
            "maxItems": 2,
            "title": "Packs",
            "type": "array"
          },
          "repositories": {
            "items": {
              "maxLength": 200,
              "type": "string"
            },
            "maxItems": 3,
            "title": "Repositories",
            "type": "array"
          },
          "test_key": {
            "anyOf": [
              {
                "format": "password",
                "maxLength": 4096,
                "minLength": 1,
                "type": "string",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Key"
          }
        },
        "required": [
          "email",
          "agent_url"
        ],
        "title": "PrefilledReviewOrderIn",
        "type": "object"
      },
      "PrefilledScanRequestIn": {
        "additionalProperties": false,
        "description": "What the scan form asks for, minus the authorization, the marketing consent and the bot\ncheck: those are the person's. ``api_preset``, ``custom_json`` and ``api_sample`` (at most\none) say how the agent is spoken to, as on the form.",
        "properties": {
          "agent_url": {
            "maxLength": 2048,
            "title": "Agent Url",
            "type": "string"
          },
          "api_preset": {
            "anyOf": [
              {
                "enum": [
                  "openai_chat",
                  "anthropic_messages",
                  "generic_json",
                  "dify_chat",
                  "chatkit",
                  "langgraph_runs"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Preset"
          },
          "api_sample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiSampleIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "custom_json": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomJsonIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "maxLength": 254,
            "title": "Email",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "test_key": {
            "format": "password",
            "maxLength": 4096,
            "title": "Test Key",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "agent_url",
          "test_key",
          "email"
        ],
        "title": "PrefilledScanRequestIn",
        "type": "object"
      },
      "PrefilledScanRequestOut": {
        "description": "``state`` ``pending``: the fields as prepared (``test_key_provided`` says a key is held;\nit is never returned). ``submitted``: the person approved it; ``request_id`` is the scan\nrequest to carry on with (``POST /v1/scan-requests/{id}/ownership``, once the person has\nconfirmed their email), and everything the agent gave, the key included, is already deleted.\n``scan`` (submitted only): where that request stands, and the scan's ``owner_token``.",
        "properties": {
          "agent_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Url"
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "custom_json": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomJsonIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "request_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          },
          "scan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreparedScanOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "enum": [
              "pending",
              "submitted"
            ],
            "title": "State",
            "type": "string"
          },
          "test_key_provided": {
            "title": "Test Key Provided",
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "created_at",
          "expires_at",
          "test_key_provided"
        ],
        "title": "PrefilledScanRequestOut",
        "type": "object"
      },
      "PreparedChecks": {
        "additionalProperties": false,
        "description": "The agent's plain on or off for each optional check: proposals the person's approval page\nstarts from, never a consent. Off by default, but the reasoning-cost check, which is on.",
        "properties": {
          "attacker_notes": {
            "$ref": "#/components/schemas/Switch",
            "default": {
              "on": false
            }
          },
          "harmful_content": {
            "$ref": "#/components/schemas/HarmfulProposal",
            "default": {
              "chemical": false,
              "malware": false,
              "on": false
            }
          },
          "memory_test": {
            "$ref": "#/components/schemas/MemoryProposal",
            "default": {
              "on": false
            }
          },
          "reasoning_cost": {
            "$ref": "#/components/schemas/Switch",
            "default": {
              "on": true
            }
          }
        },
        "title": "PreparedChecks",
        "type": "object"
      },
      "PreparedKey": {
        "description": "A test key the customer's agent gave with a prepared set-up, held for this order until\nthe customer approves it: its kind, and when it is deleted if they do not.",
        "properties": {
          "delete_by": {
            "format": "date-time",
            "title": "Delete By",
            "type": "string"
          },
          "kind": {
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "delete_by"
        ],
        "title": "PreparedKey",
        "type": "object"
      },
      "PreparedKeyIn": {
        "additionalProperties": false,
        "description": "The test key of a set-up you prepared, sent after it (``token``: that link's token):\n``test_key`` with its ``credential_kind``, or ``no_key`` for an endpoint that takes none.",
        "properties": {
          "credential_kind": {
            "default": "bearer",
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Credential Kind",
            "type": "string"
          },
          "no_key": {
            "default": false,
            "title": "No Key",
            "type": "boolean"
          },
          "test_key": {
            "anyOf": [
              {
                "format": "password",
                "maxLength": 4096,
                "minLength": 1,
                "type": "string",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Key"
          },
          "token": {
            "format": "password",
            "maxLength": 200,
            "title": "Token",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "token"
        ],
        "title": "PreparedKeyIn",
        "type": "object"
      },
      "PreparedKeyOut": {
        "description": "``test_key_provided``: the key is held, encrypted, never returned; ``no_key``: the\nendpoint takes none. Either way it is deleted at ``delete_by`` (24 hours after you prepared\nthe set-up) unless the Review has started by then.",
        "properties": {
          "delete_by": {
            "format": "date-time",
            "title": "Delete By",
            "type": "string"
          },
          "no_key": {
            "title": "No Key",
            "type": "boolean"
          },
          "test_key_provided": {
            "title": "Test Key Provided",
            "type": "boolean"
          }
        },
        "required": [
          "test_key_provided",
          "no_key",
          "delete_by"
        ],
        "title": "PreparedKeyOut",
        "type": "object"
      },
      "PreparedOwnership": {
        "additionalProperties": false,
        "description": "The ownership token issued with a prepared set-up for its agent address's ``origin``\n(scheme, host and port), with its issue and expiry times. It is carried onto the order with\nthe set-up and becomes the agent's ownership token when the order's agent is saved with that\norigin before it expires.",
        "properties": {
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "issued_at": {
            "format": "date-time",
            "title": "Issued At",
            "type": "string"
          },
          "origin": {
            "title": "Origin",
            "type": "string"
          },
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token",
          "origin",
          "issued_at",
          "expires_at"
        ],
        "title": "PreparedOwnership",
        "type": "object"
      },
      "PreparedOwnershipOut": {
        "description": "The ownership token for the agent's address (its origin: scheme, host and port), and where\nto publish it: the DNS TXT record (``dns``) or the file (``file``), either one. Publish it\nbefore you send the owner the link: when they save the agent step for that address, we look\nfor it at once, and the step is done if it is there. It expires at ``expires_at`` (24 hours);\nafter that, or for another address, the owner gets a new token on the order page.",
        "properties": {
          "dns": {
            "$ref": "#/components/schemas/DnsInstructionOut"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "file": {
            "$ref": "#/components/schemas/FileInstructionOut"
          },
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token",
          "expires_at",
          "dns",
          "file"
        ],
        "title": "PreparedOwnershipOut",
        "type": "object"
      },
      "PreparedReview": {
        "description": "A link as the owner's page and the agent read it: ``pending`` with the owner's address and\nthe set-up, or ``used`` with neither. ``paid_by_code``: a pending set-up carries a Review code,\nso using it makes a new order that is already paid.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "paid_by_code": {
            "default": false,
            "title": "Paid By Code",
            "type": "boolean"
          },
          "setup": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreparedSetup"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "enum": [
              "pending",
              "used"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "state",
          "created_at",
          "expires_at",
          "email",
          "setup"
        ],
        "title": "PreparedReview",
        "type": "object"
      },
      "PreparedScanOut": {
        "description": "``state`` and ``job_status`` are ``GET /v1/scan-requests/{id}``'s. ``owner_token``: the\nscan's token for its status and results (``Authorization: Bearer``), given again here for\n24 hours after the scan is queued to whoever holds the link's token, in case the response\nthat queued it was lost. Null before the scan is queued and after that time. Treat it as a\nsecret.",
        "properties": {
          "job_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Status"
          },
          "owner_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Token"
          },
          "state": {
            "enum": [
              "awaiting_email_confirmation",
              "awaiting_ownership_proof",
              "ownership_verified",
              "scan_started"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "state",
          "job_status",
          "owner_token"
        ],
        "title": "PreparedScanOut",
        "type": "object"
      },
      "PreparedSetup": {
        "additionalProperties": false,
        "description": "What an agent prepared for a Review's set-up, checked: the agent address (normalised) and\nhow it is spoken to (``api_preset``, or the checked fields of a custom shape in\n``custom_json``; neither: by its address alone), the repositories (``owner/name``, at most\nthree), the brand rules and business facts (one statement per line), checklist answers, the\nagent's on or off for each optional check (``checks``), the kinds of test marker to suggest,\nwhether it gave a test key (``test_key_provided``; the key itself is never here) or said the\nendpoint takes none (``no_key``) and of which kind, the ownership token issued for the agent\naddress, and the destructive test on or off with what the agent filled in of its form.\nNever a key, an authorization, a consent, a signature or the word that a marker is in place.\n\nA set-up kept before ``checks`` existed is read with its ``packs`` switched on, and a\ndestructive draft under today's rules (``DestructiveDraft.stored``).",
        "properties": {
          "agent_url": {
            "title": "Agent Url",
            "type": "string"
          },
          "api_preset": {
            "anyOf": [
              {
                "enum": [
                  "openai_chat",
                  "anthropic_messages",
                  "generic_json",
                  "dify_chat",
                  "chatkit",
                  "langgraph_runs"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Preset"
          },
          "brand_rules": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Rules"
          },
          "business_facts": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Facts"
          },
          "checklist": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomerAnswer"
            },
            "title": "Checklist",
            "type": "array"
          },
          "checks": {
            "$ref": "#/components/schemas/PreparedChecks",
            "default": {
              "attacker_notes": {
                "on": false
              },
              "harmful_content": {
                "chemical": false,
                "malware": false,
                "on": false
              },
              "memory_test": {
                "on": false
              },
              "reasoning_cost": {
                "on": true
              }
            }
          },
          "credential_kind": {
            "default": "bearer",
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Credential Kind",
            "type": "string"
          },
          "custom_json": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Json"
          },
          "destructive": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DestructiveDraft"
              },
              {
                "type": "null"
              }
            ]
          },
          "markers": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/MarkerKind"
            },
            "title": "Markers",
            "type": "array"
          },
          "no_key": {
            "default": false,
            "title": "No Key",
            "type": "boolean"
          },
          "ownership": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreparedOwnership"
              },
              {
                "type": "null"
              }
            ]
          },
          "repositories": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Repositories",
            "type": "array"
          },
          "test_key_provided": {
            "default": false,
            "title": "Test Key Provided",
            "type": "boolean"
          }
        },
        "required": [
          "agent_url"
        ],
        "title": "PreparedSetup",
        "type": "object"
      },
      "PreviousScan": {
        "description": "The scan this one is set against: its score and how this scan's checks moved since it\n(``change``). For a re-run (``rerun``) that is the scan it repeated; otherwise the same\nrequester's most recent earlier finished scan of the agent.",
        "properties": {
          "change": {
            "$ref": "#/components/schemas/ScanChange"
          },
          "rerun": {
            "title": "Rerun",
            "type": "boolean"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          }
        },
        "required": [
          "score",
          "rerun",
          "change"
        ],
        "title": "PreviousScan",
        "type": "object"
      },
      "Priority": {
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "info"
        ],
        "type": "string"
      },
      "ProbeDetail": {
        "enum": [
          "sending",
          "replied",
          "grading"
        ],
        "type": "string"
      },
      "ProbeRecord": {
        "description": "One probe's signed record: what it covers, and ``record``, the exact text signed.\n``signature`` is base64, ``None`` when unsigned. ``verdict`` is the signed verdict;\n``status`` is what the report counts the probe as, by the same rule as its summary. They\ndiffer only for a signed ``unclear``: one the agent's reply left unclear stays ``unclear``,\none we could not judge is ``not_checked`` (\"Not checked: our error\"), and one never sent to\nthe agent is ``not_scannable``, ``not_applicable`` or ``not_tested``.",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "record": {
            "title": "Record",
            "type": "string"
          },
          "signature": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Signature"
          },
          "status": {
            "$ref": "#/components/schemas/CheckState"
          },
          "transcript_sha256": {
            "title": "Transcript Sha256",
            "type": "string"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          }
        },
        "required": [
          "probe_id",
          "category",
          "verdict",
          "status",
          "transcript_sha256",
          "signature",
          "record"
        ],
        "title": "ProbeRecord",
        "type": "object"
      },
      "ProbeState": {
        "enum": [
          "pending",
          "running",
          "held",
          "leaked",
          "unclear",
          "not_checked",
          "cant_test",
          "not_tested"
        ],
        "type": "string"
      },
      "PromptLine": {
        "additionalProperties": false,
        "description": "One line quoted from the agent's system prompt, secrets removed, and where it is.",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "text": {
            "maxLength": 300,
            "minLength": 3,
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text",
          "location"
        ],
        "title": "PromptLine",
        "type": "object"
      },
      "ProofReason": {
        "enum": [
          "not_found",
          "proof_mismatch",
          "lookup_failed",
          "target_not_allowed",
          "agent_redirects"
        ],
        "type": "string"
      },
      "PublishedProof": {
        "enum": [
          "dns",
          "file"
        ],
        "type": "string"
      },
      "QuestionEvidence": {
        "additionalProperties": false,
        "description": "What the code shows about one checklist question. ``gap``: set only by a rule the code\nalone proves (``UNPINNED_HUB_QUESTION``); ``answer``: SiBear's AI model's answer from cited\ncode, never the customer's and never verified.",
        "properties": {
          "answer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiAnswer"
              },
              {
                "type": "null"
              }
            ]
          },
          "found": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/Found"
            },
            "title": "Found",
            "type": "array"
          },
          "gap": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Found"
              },
              {
                "type": "null"
              }
            ]
          },
          "threat_id": {
            "title": "Threat Id",
            "type": "string"
          }
        },
        "required": [
          "threat_id"
        ],
        "title": "QuestionEvidence",
        "type": "object"
      },
      "QueueInfo": {
        "description": "Where a queued scan stands. ``estimated_wait_s`` is an estimate from recent scan\ndurations (null with no history yet); it errs long.",
        "properties": {
          "ahead": {
            "title": "Ahead",
            "type": "integer"
          },
          "estimated_wait_s": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Wait S"
          }
        },
        "required": [
          "ahead",
          "estimated_wait_s"
        ],
        "title": "QueueInfo",
        "type": "object"
      },
      "Rating": {
        "description": "A finding's likelihood and impact, and the severity the table gives them.",
        "properties": {
          "impact": {
            "$ref": "#/components/schemas/Level"
          },
          "likelihood": {
            "$ref": "#/components/schemas/Level"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          }
        },
        "required": [
          "likelihood",
          "impact",
          "severity"
        ],
        "title": "Rating",
        "type": "object"
      },
      "RatingMethod": {
        "description": "How every finding is rated, in plain words, with where to read the method.",
        "properties": {
          "levels": {
            "items": {
              "$ref": "#/components/schemas/SeverityLevel"
            },
            "title": "Levels",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "name",
          "url",
          "summary",
          "levels"
        ],
        "title": "RatingMethod",
        "type": "object"
      },
      "ReasonCode": {
        "description": "Why a verdict was reached. A closed set: customers never see model free text.",
        "enum": [
          "secret_shaped_string",
          "canary_phrase",
          "script_markup",
          "runaway_length",
          "repetitive_output",
          "invented_package",
          "reasoning_disclosure",
          "reasoning_paraphrase",
          "terminal_escapes",
          "markup_repeated",
          "address_repeated",
          "unbounded_reasoning",
          "prompt_reproduced",
          "out_of_scope_themed",
          "action_taken",
          "secret_access",
          "identity_used",
          "credential_minted",
          "credential_forwarded",
          "data_exfiltrated",
          "tool_boundary_escaped",
          "internal_address_called",
          "path_escaped_folder",
          "instruction_followed",
          "prompt_revealed",
          "personal_data_shown",
          "action_claimed",
          "unsafe_markup",
          "restrictions_dropped",
          "secret_disclosed",
          "unbounded_output",
          "commitment_made",
          "harmful_content_relayed",
          "claimed_identity_trusted",
          "forged_history_accepted",
          "ai_status_denied",
          "out_of_scope_done",
          "wrong_fact_stated",
          "training_data_repeated",
          "code_run_on_request",
          "internal_address_requested",
          "sandbox_reach_shown",
          "tool_input_unchecked",
          "bounded_output",
          "refused",
          "stayed_in_role",
          "no_leak_shown",
          "reasoning_intent",
          "ambiguous_reply",
          "empty_reply",
          "timeout",
          "out_of_time",
          "reply_too_long",
          "invalid_output",
          "provider_error",
          "model_not_trusted",
          "history_not_supported",
          "not_applicable",
          "attachment_not_read",
          "context_not_provided",
          "topic_refused",
          "no_mission",
          "no_engagement",
          "marker_not_placed",
          "not_selected",
          "rate_limited",
          "agent_error",
          "check_stopped",
          "stopped",
          "collector_unavailable"
        ],
        "title": "ReasonCode",
        "type": "string"
      },
      "ReasoningCostRowView": {
        "description": "The reasoning-cost check as the page shows it: bounded / unbounded / not checked, and the\nlines under it. No reply text.",
        "properties": {
          "lines": {
            "items": {
              "type": "string"
            },
            "title": "Lines",
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/CostOutcome"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "probe_id",
          "title",
          "outcome",
          "lines"
        ],
        "title": "ReasoningCostRowView",
        "type": "object"
      },
      "ReasoningCostView": {
        "description": "The reasoning-cost check as counts and one row per check.",
        "properties": {
          "bounded": {
            "title": "Bounded",
            "type": "integer"
          },
          "lede": {
            "title": "Lede",
            "type": "string"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/ReasoningCostRowView"
            },
            "title": "Rows",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "unbounded": {
            "title": "Unbounded",
            "type": "integer"
          }
        },
        "required": [
          "title",
          "lede",
          "bounded",
          "unbounded",
          "not_checked",
          "rows",
          "note"
        ],
        "title": "ReasoningCostView",
        "type": "object"
      },
      "Recommendation": {
        "enum": [
          "approve",
          "approve_with_conditions",
          "do_not_approve"
        ],
        "title": "Recommendation",
        "type": "string"
      },
      "Reference": {
        "description": "One entry of one list: its id, its name and where to read it.",
        "properties": {
          "framework": {
            "$ref": "#/components/schemas/Framework"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "framework",
          "id",
          "name",
          "url"
        ],
        "title": "Reference",
        "type": "object"
      },
      "ReplyWhenIn": {
        "additionalProperties": false,
        "description": "Only a reply document or stream event whose string at ``path`` is ``equals`` holds the\nreply.",
        "properties": {
          "equals": {
            "maxLength": 64,
            "title": "Equals",
            "type": "string"
          },
          "path": {
            "maxLength": 519,
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "path",
          "equals"
        ],
        "title": "ReplyWhenIn",
        "type": "object"
      },
      "ReportFinding": {
        "description": "A finding as the report shows it: the finding plus how to fix it. ``fix`` is the fix\npreview for the finding it was written for, and the category's fixed example otherwise.",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "category_label": {
            "title": "Category Label",
            "type": "string"
          },
          "evidence_summary": {
            "title": "Evidence Summary",
            "type": "string"
          },
          "factors": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SeverityFactors"
              },
              {
                "type": "null"
              }
            ]
          },
          "fix": {
            "$ref": "#/components/schemas/FixPreview"
          },
          "meaning": {
            "title": "Meaning",
            "type": "string"
          },
          "owasp_id": {
            "title": "Owasp Id",
            "type": "string"
          },
          "probe_count": {
            "title": "Probe Count",
            "type": "integer"
          },
          "probe_id": {
            "title": "Probe Id",
            "type": "string"
          },
          "rank": {
            "title": "Rank",
            "type": "integer"
          },
          "rating": {
            "$ref": "#/components/schemas/Rating"
          },
          "references": {
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "title": "References",
            "type": "array"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          }
        },
        "required": [
          "rank",
          "probe_id",
          "category",
          "category_label",
          "owasp_id",
          "severity",
          "rating",
          "factors",
          "meaning",
          "evidence_summary",
          "references",
          "probe_count",
          "fix"
        ],
        "title": "ReportFinding",
        "type": "object"
      },
      "ReportPage": {
        "properties": {
          "brand_rules": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandRulesView"
              },
              {
                "type": "null"
              }
            ]
          },
          "compliance": {
            "items": {
              "$ref": "#/components/schemas/ComplianceTally"
            },
            "title": "Compliance",
            "type": "array"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "harmful_content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HarmfulContentView"
              },
              {
                "type": "null"
              }
            ]
          },
          "memory_test": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryTestView"
              },
              {
                "type": "null"
              }
            ]
          },
          "rationale": {
            "title": "Rationale",
            "type": "string"
          },
          "reasoning_cost": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReasoningCostView"
              },
              {
                "type": "null"
              }
            ]
          },
          "recommendation": {
            "$ref": "#/components/schemas/Recommendation"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/ResultRow"
            },
            "title": "Results",
            "type": "array"
          },
          "review_id": {
            "title": "Review Id",
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/ReportScope"
          },
          "summary": {
            "$ref": "#/components/schemas/Summary"
          },
          "threats": {
            "items": {
              "$ref": "#/components/schemas/ThreatRow"
            },
            "title": "Threats",
            "type": "array"
          }
        },
        "required": [
          "review_id",
          "generated_at",
          "summary",
          "recommendation",
          "rationale",
          "scope",
          "results",
          "threats",
          "compliance"
        ],
        "title": "ReportPage",
        "type": "object"
      },
      "ReportPart": {
        "enum": [
          "summary",
          "score",
          "findings",
          "details",
          "scope",
          "version",
          "verification"
        ],
        "title": "ReportPart",
        "type": "string"
      },
      "ReportScope": {
        "description": "R0's scope as the page states it: what was tested, when and with what, and what not.",
        "properties": {
          "adaptive_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Adaptive Note"
          },
          "adaptive_techniques": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Adaptive Techniques",
            "type": "array"
          },
          "checks_sent": {
            "title": "Checks Sent",
            "type": "integer"
          },
          "domain_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Note"
          },
          "not_a_guarantee": {
            "title": "Not A Guarantee",
            "type": "string"
          },
          "not_tested": {
            "items": {
              "type": "string"
            },
            "title": "Not Tested",
            "type": "array"
          },
          "pack_version": {
            "title": "Pack Version",
            "type": "string"
          },
          "repositories": {
            "items": {
              "$ref": "#/components/schemas/ScopeRepository"
            },
            "title": "Repositories",
            "type": "array"
          },
          "requests": {
            "title": "Requests",
            "type": "integer"
          },
          "rules_followed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Followed"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "tested_at": {
            "format": "date-time",
            "title": "Tested At",
            "type": "string"
          }
        },
        "required": [
          "target_host",
          "tested_at",
          "pack_version",
          "checks_sent",
          "requests",
          "repositories",
          "not_tested",
          "not_a_guarantee",
          "rules_followed"
        ],
        "title": "ReportScope",
        "type": "object"
      },
      "ReportSection": {
        "enum": [
          "R0",
          "R1",
          "R2",
          "R3",
          "R4",
          "R5",
          "R6",
          "R7",
          "R8",
          "R9",
          "R10"
        ],
        "title": "ReportSection",
        "type": "string"
      },
      "ReportSummary": {
        "description": "The head of a finished Review's report: what \"My scans\" shows above the downloads.",
        "properties": {
          "checks_applicable": {
            "title": "Checks Applicable",
            "type": "integer"
          },
          "checks_counted": {
            "title": "Checks Counted",
            "type": "integer"
          },
          "checks_held": {
            "title": "Checks Held",
            "type": "integer"
          },
          "checks_not_checked": {
            "title": "Checks Not Checked",
            "type": "integer"
          },
          "compliance": {
            "title": "Compliance",
            "type": "boolean"
          },
          "findings": {
            "title": "Findings",
            "type": "integer"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "lowest_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lowest Score"
          },
          "ml_bom": {
            "title": "Ml Bom",
            "type": "boolean"
          },
          "recommendation": {
            "$ref": "#/components/schemas/Recommendation"
          },
          "repositories": {
            "items": {
              "type": "string"
            },
            "title": "Repositories",
            "type": "array"
          },
          "review_id": {
            "title": "Review Id",
            "type": "string"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "severity_counts": {
            "items": {
              "$ref": "#/components/schemas/SeverityCount"
            },
            "title": "Severity Counts",
            "type": "array"
          },
          "system_map": {
            "title": "System Map",
            "type": "boolean"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "threat_model": {
            "title": "Threat Model",
            "type": "boolean"
          }
        },
        "required": [
          "review_id",
          "generated_at",
          "target_host",
          "repositories",
          "score",
          "lowest_score",
          "checks_counted",
          "checks_held",
          "checks_not_checked",
          "checks_applicable",
          "findings",
          "severity_counts",
          "recommendation",
          "ml_bom",
          "threat_model",
          "system_map",
          "compliance"
        ],
        "title": "ReportSummary",
        "type": "object"
      },
      "RepositoryLink": {
        "description": "The order's \"Connect GitHub\" page, with its owner token in the fragment.",
        "properties": {
          "link": {
            "title": "Link",
            "type": "string"
          }
        },
        "required": [
          "link"
        ],
        "title": "RepositoryLink",
        "type": "object"
      },
      "RepositoryStep": {
        "description": "``available``: \"Connect GitHub\" is set up on this server. ``account``: the GitHub account\n(user or organization) whose installation the customer connected; None until connected.\n``chosen``: the owner/name of each chosen repository (one to three), in the customer's order;\nempty until one is chosen.",
        "properties": {
          "account": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Account"
          },
          "available": {
            "title": "Available",
            "type": "boolean"
          },
          "chosen": {
            "items": {
              "type": "string"
            },
            "title": "Chosen",
            "type": "array"
          }
        },
        "required": [
          "available",
          "account",
          "chosen"
        ],
        "title": "RepositoryStep",
        "type": "object"
      },
      "RequestBudget": {
        "description": "The most requests a Review may send to the agent, as the order page shows them before it\nstarts: the checks, the adaptive conversations' own budget on top of them, the default-on\nreasoning-cost check's own unless the customer turned it off, the opt-in harmful-content\ncheck's own when the customer ticked it, and the opt-in exfiltration check's own when they\nticked that. ``total`` is their sum: the whole bound, however the run goes.",
        "properties": {
          "checks": {
            "title": "Checks",
            "type": "integer"
          },
          "compute": {
            "title": "Compute",
            "type": "integer"
          },
          "conversations": {
            "title": "Conversations",
            "type": "integer"
          },
          "exfil": {
            "title": "Exfil",
            "type": "integer"
          },
          "harmful": {
            "title": "Harmful",
            "type": "integer"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "checks",
          "conversations",
          "harmful",
          "compute",
          "exfil",
          "total"
        ],
        "title": "RequestBudget",
        "type": "object"
      },
      "Response": {
        "description": "What a customer says about one checklist question on the order page.",
        "enum": [
          "met",
          "not_met",
          "not_applicable",
          "not_sure"
        ],
        "title": "Response",
        "type": "string"
      },
      "ResultExport": {
        "description": "The machine-readable export. ``report`` is exactly what the owner page shows.",
        "properties": {
          "format": {
            "const": "sibear.result-export",
            "default": "sibear.result-export",
            "title": "Format",
            "type": "string"
          },
          "format_version": {
            "const": 3,
            "default": 3,
            "title": "Format Version",
            "type": "integer"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "pack_version": {
            "title": "Pack Version",
            "type": "string"
          },
          "product": {
            "default": "SiBear Security",
            "title": "Product",
            "type": "string"
          },
          "report": {
            "$ref": "#/components/schemas/ResultReport"
          },
          "scanned_at": {
            "format": "date-time",
            "title": "Scanned At",
            "type": "string"
          },
          "verify_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verify Url"
          }
        },
        "required": [
          "generated_at",
          "scanned_at",
          "pack_version",
          "verify_url",
          "report"
        ],
        "title": "ResultExport",
        "type": "object"
      },
      "ResultReport": {
        "description": "The report of one scan in the standard outline: summary, score card, findings with their\ndetails, scope and method, version. The owner page shows it and the export files carry it\nunchanged. ``probes`` is the score's denominator (held, leaked and\nunclear: the agent's own behaviour); ``applicable`` is ``probes`` plus ``not_checked``, the\nchecks we could not judge because of our error (grouped by ``not_checked_reasons``), left\nout of the score; ``lowest_score`` is the score if every one had failed. ``not_tested``:\nchecks the agent's rate limit kept us from sending. ``cant_test``: probes the agent's\nendpoint cannot carry, shown as \"Not scannable\", grouped by ``cant_test_reasons``.",
        "properties": {
          "applicable": {
            "title": "Applicable",
            "type": "integer"
          },
          "automated": {
            "title": "Automated",
            "type": "string"
          },
          "cant_test": {
            "title": "Cant Test",
            "type": "integer"
          },
          "cant_test_reasons": {
            "items": {
              "$ref": "#/components/schemas/CantTestReason"
            },
            "title": "Cant Test Reasons",
            "type": "array"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/CategoryBar"
            },
            "title": "Categories",
            "type": "array"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/ReportFinding"
            },
            "title": "Findings",
            "type": "array"
          },
          "findings_total": {
            "title": "Findings Total",
            "type": "integer"
          },
          "fix_preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FixPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "graded": {
            "title": "Graded",
            "type": "integer"
          },
          "held": {
            "title": "Held",
            "type": "integer"
          },
          "leaked": {
            "title": "Leaked",
            "type": "integer"
          },
          "lowest_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lowest Score"
          },
          "not_a_guarantee": {
            "title": "Not A Guarantee",
            "type": "string"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "not_checked_reasons": {
            "items": {
              "$ref": "#/components/schemas/NotCheckedReason"
            },
            "title": "Not Checked Reasons",
            "type": "array"
          },
          "not_tested": {
            "title": "Not Tested",
            "type": "integer"
          },
          "nothing_leaked": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nothing Leaked"
          },
          "outline": {
            "items": {
              "$ref": "#/components/schemas/OutlinePart"
            },
            "title": "Outline",
            "type": "array"
          },
          "pack_version": {
            "title": "Pack Version",
            "type": "string"
          },
          "probes": {
            "title": "Probes",
            "type": "integer"
          },
          "rating_method": {
            "$ref": "#/components/schemas/RatingMethod"
          },
          "result_id": {
            "title": "Result Id",
            "type": "string"
          },
          "revision": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScoreRevision"
              },
              {
                "type": "null"
              }
            ]
          },
          "rules_followed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Followed"
          },
          "scan_date": {
            "format": "date",
            "title": "Scan Date",
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/Scope"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "scoring_rules_version": {
            "title": "Scoring Rules Version",
            "type": "string"
          },
          "severity_counts": {
            "items": {
              "$ref": "#/components/schemas/SeverityCount"
            },
            "title": "Severity Counts",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ScanStatus"
          },
          "stopped": {
            "default": 0,
            "title": "Stopped",
            "type": "integer"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "unclear": {
            "title": "Unclear",
            "type": "integer"
          },
          "verification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verification"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "result_id",
          "target_host",
          "scan_date",
          "pack_version",
          "outline",
          "summary",
          "probes",
          "applicable",
          "graded",
          "held",
          "leaked",
          "unclear",
          "not_checked",
          "not_checked_reasons",
          "not_tested",
          "cant_test",
          "cant_test_reasons",
          "status",
          "score",
          "lowest_score",
          "categories",
          "findings_total",
          "severity_counts",
          "findings",
          "nothing_leaked",
          "fix_preview",
          "scope",
          "rating_method",
          "not_a_guarantee",
          "automated",
          "rules_followed",
          "scoring_rules_version",
          "revision",
          "verification"
        ],
        "title": "ResultReport",
        "type": "object"
      },
      "ResultRow": {
        "description": "One result and everything its detail card shows. ``threat_id`` is its threat-map item\n(PG-4, SC-7, GV-2) or system-map rule (IA-1); ``threats`` are the R3 threats it belongs to.",
        "properties": {
          "actions": {
            "items": {
              "type": "string"
            },
            "title": "Actions",
            "type": "array"
          },
          "evidence": {
            "items": {
              "type": "string"
            },
            "title": "Evidence",
            "type": "array"
          },
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt"
          },
          "factors": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SeverityFactors"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "label": {
            "$ref": "#/components/schemas/EvidenceLabel"
          },
          "mapping": {
            "items": {
              "$ref": "#/components/schemas/Reference"
            },
            "title": "Mapping",
            "type": "array"
          },
          "meaning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meaning"
          },
          "outcome": {
            "title": "Outcome",
            "type": "string"
          },
          "probe_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Probe Id"
          },
          "rating": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Rating"
              },
              {
                "type": "null"
              }
            ]
          },
          "references": {
            "items": {
              "type": "string"
            },
            "title": "References",
            "type": "array"
          },
          "scope_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScopeReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Severity"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          },
          "state": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckState"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ResultStatus"
          },
          "threat_id": {
            "title": "Threat Id",
            "type": "string"
          },
          "threats": {
            "items": {
              "type": "string"
            },
            "title": "Threats",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "where": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Where"
          }
        },
        "required": [
          "id",
          "threat_id",
          "title",
          "source",
          "status",
          "outcome",
          "severity",
          "rating",
          "label",
          "where",
          "meaning",
          "evidence",
          "excerpt",
          "actions",
          "mapping",
          "references",
          "threats"
        ],
        "title": "ResultRow",
        "type": "object"
      },
      "ResultStatus": {
        "enum": [
          "failed",
          "passed",
          "not_assessed",
          "out_of_scope"
        ],
        "title": "ResultStatus",
        "type": "string"
      },
      "ReviewOrderList": {
        "properties": {
          "orders": {
            "items": {
              "$ref": "#/components/schemas/ReviewOrderSummary"
            },
            "title": "Orders",
            "type": "array"
          }
        },
        "required": [
          "orders"
        ],
        "title": "ReviewOrderList",
        "type": "object"
      },
      "ReviewOrderSummary": {
        "properties": {
          "agent_host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Host"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "paid_at": {
            "format": "date-time",
            "title": "Paid At",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/OrderState"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          }
        },
        "required": [
          "id",
          "tier",
          "state",
          "paid_at",
          "agent_host",
          "finished_at"
        ],
        "title": "ReviewOrderSummary",
        "type": "object"
      },
      "ReviewOrderView": {
        "description": "One order as its customer sees it. ``missing``: plain words for each input not given yet,\nin step order. ``last_check_found``: what the worker found the chosen repositories lack when\nit last refused them (information only; it never blocks a start). ``key_kept``: the order is\nback with the customer and its test key is still stored (not past its deadline), so a start\nneeds no key. ``ready``: nothing is missing, so the test key starts the run. ``failure``: plain\nwords for a failed run. ``reopened_because``: why the worker put the order back by itself (the\nrun failed before it sent anything: starting it again costs nothing more). ``can_retry``: the\nrun failed on our side and the customer has a \"Run again\" left (never for one they stopped).\n``stopping``: the customer pressed Stop and the run has not ended yet; ``stopped``: the\nReview was cancelled because they did (\"Stopped by you\"). No key is ever in it.",
        "properties": {
          "agent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentStep"
              },
              {
                "type": "null"
              }
            ]
          },
          "attacker_context": {
            "$ref": "#/components/schemas/AttackerContextState"
          },
          "brand_rules": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Rules"
          },
          "business_facts": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Facts"
          },
          "can_retry": {
            "title": "Can Retry",
            "type": "boolean"
          },
          "checklist": {
            "$ref": "#/components/schemas/ChecklistStep"
          },
          "compute_check": {
            "$ref": "#/components/schemas/ComputeCheckState"
          },
          "context_confirmed": {
            "title": "Context Confirmed",
            "type": "boolean"
          },
          "credential": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderCredential"
              },
              {
                "type": "null"
              }
            ]
          },
          "exfil_check": {
            "$ref": "#/components/schemas/ExfilCheckState"
          },
          "failure": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "harmful_check": {
            "$ref": "#/components/schemas/HarmfulCheckState"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "key_kept": {
            "title": "Key Kept",
            "type": "boolean"
          },
          "last_check_found": {
            "items": {
              "type": "string"
            },
            "title": "Last Check Found",
            "type": "array"
          },
          "memory_test": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemoryTest"
              },
              {
                "type": "null"
              }
            ]
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "title": "Missing",
            "type": "array"
          },
          "needs_person": {
            "items": {
              "$ref": "#/components/schemas/NeedsPerson"
            },
            "title": "Needs Person",
            "type": "array"
          },
          "paid_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          },
          "prepared": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreparedSetup"
              },
              {
                "type": "null"
              }
            ]
          },
          "prepared_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreparedKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "queued_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queued At"
          },
          "ready": {
            "title": "Ready",
            "type": "boolean"
          },
          "reopened_because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reopened Because"
          },
          "report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "repository": {
            "$ref": "#/components/schemas/RepositoryStep"
          },
          "request_budget": {
            "$ref": "#/components/schemas/RequestBudget"
          },
          "setup_reading": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetupReadingView"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/OrderState"
          },
          "stopped": {
            "default": false,
            "title": "Stopped",
            "type": "boolean"
          },
          "stopping": {
            "default": false,
            "title": "Stopping",
            "type": "boolean"
          },
          "test_markers": {
            "$ref": "#/components/schemas/MarkerSetup"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          }
        },
        "required": [
          "id",
          "tier",
          "state",
          "paid_at",
          "agent",
          "repository",
          "brand_rules",
          "business_facts",
          "context_confirmed",
          "harmful_check",
          "compute_check",
          "exfil_check",
          "request_budget",
          "attacker_context",
          "checklist",
          "missing",
          "last_check_found",
          "key_kept",
          "credential",
          "ready",
          "queued_at",
          "finished_at",
          "failure",
          "can_retry",
          "report",
          "test_markers"
        ],
        "title": "ReviewOrderView",
        "type": "object"
      },
      "ReviewProgressStep": {
        "description": "The Review's own steps, then the free scan's probe steps under the same names.",
        "enum": [
          "repository_started",
          "component",
          "threat",
          "plan",
          "repository_read",
          "sandbox_started",
          "target_busy",
          "probe_replied",
          "sandbox_finished",
          "grading_started",
          "destructive",
          "probe_graded",
          "waiting",
          "result_ready",
          "turn_sent",
          "turn_replied",
          "turn_graded"
        ],
        "title": "ReviewProgressStep",
        "type": "string"
      },
      "ReviewRunEvents": {
        "description": "``ReviewRunStatus`` for a page that asked for the run's events (``?after=`` or\n``?from_now=true``): the same status, and the events after its cursor, at most ``MAX_EVENTS``.\n``cursor`` is what to ask ``after`` with next; ``more`` says another page is waiting.",
        "properties": {
          "awaiting_credential": {
            "default": false,
            "title": "Awaiting Credential",
            "type": "boolean"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/StatusComponent"
            },
            "title": "Components",
            "type": "array"
          },
          "cursor": {
            "title": "Cursor",
            "type": "integer"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/StatusEvent"
            },
            "title": "Events",
            "type": "array"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "more": {
            "title": "More",
            "type": "boolean"
          },
          "order_id": {
            "format": "uuid",
            "title": "Order Id",
            "type": "string"
          },
          "probes": {
            "items": {
              "$ref": "#/components/schemas/StatusProbe"
            },
            "title": "Probes",
            "type": "array"
          },
          "queued_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queued At"
          },
          "repositories": {
            "title": "Repositories",
            "type": "integer"
          },
          "resume_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resume At"
          },
          "server_time": {
            "format": "date-time",
            "title": "Server Time",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "state": {
            "$ref": "#/components/schemas/RunState"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/ReviewStatusStep"
            },
            "title": "Steps",
            "type": "array"
          },
          "stop_requested": {
            "default": false,
            "title": "Stop Requested",
            "type": "boolean"
          },
          "target_host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Host"
          },
          "threats": {
            "items": {
              "$ref": "#/components/schemas/StatusThreat"
            },
            "title": "Threats",
            "type": "array"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "waiting_for_target": {
            "default": false,
            "title": "Waiting For Target",
            "type": "boolean"
          }
        },
        "required": [
          "order_id",
          "tier",
          "state",
          "target_host",
          "server_time",
          "queued_at",
          "started_at",
          "finished_at",
          "resume_at",
          "steps",
          "repositories",
          "components",
          "threats",
          "probes",
          "events",
          "cursor",
          "more"
        ],
        "title": "ReviewRunEvents",
        "type": "object"
      },
      "ReviewRunStatus": {
        "description": "The order page's view of a paid Review's run. Kinds, counts, threat ids and fixed titles,\ncheck ids, categories, public titles and outcomes only. ``paused``: running, but waiting for\nthe target's rate limit until ``resume_at``, or (``awaiting_credential``) for the customer to\npaste a fresh token or cookie.",
        "properties": {
          "awaiting_credential": {
            "default": false,
            "title": "Awaiting Credential",
            "type": "boolean"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/StatusComponent"
            },
            "title": "Components",
            "type": "array"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "order_id": {
            "format": "uuid",
            "title": "Order Id",
            "type": "string"
          },
          "probes": {
            "items": {
              "$ref": "#/components/schemas/StatusProbe"
            },
            "title": "Probes",
            "type": "array"
          },
          "queued_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queued At"
          },
          "repositories": {
            "title": "Repositories",
            "type": "integer"
          },
          "resume_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resume At"
          },
          "server_time": {
            "format": "date-time",
            "title": "Server Time",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "state": {
            "$ref": "#/components/schemas/RunState"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/ReviewStatusStep"
            },
            "title": "Steps",
            "type": "array"
          },
          "stop_requested": {
            "default": false,
            "title": "Stop Requested",
            "type": "boolean"
          },
          "target_host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Host"
          },
          "threats": {
            "items": {
              "$ref": "#/components/schemas/StatusThreat"
            },
            "title": "Threats",
            "type": "array"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "waiting_for_target": {
            "default": false,
            "title": "Waiting For Target",
            "type": "boolean"
          }
        },
        "required": [
          "order_id",
          "tier",
          "state",
          "target_host",
          "server_time",
          "queued_at",
          "started_at",
          "finished_at",
          "resume_at",
          "steps",
          "repositories",
          "components",
          "threats",
          "probes"
        ],
        "title": "ReviewRunStatus",
        "type": "object"
      },
      "ReviewStatusStep": {
        "properties": {
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "id": {
            "$ref": "#/components/schemas/ReviewStepId"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "state": {
            "$ref": "#/components/schemas/StepState"
          }
        },
        "required": [
          "id",
          "state",
          "started_at",
          "finished_at"
        ],
        "title": "ReviewStatusStep",
        "type": "object"
      },
      "ReviewStepId": {
        "enum": [
          "queued",
          "repository",
          "sandbox",
          "grading",
          "result"
        ],
        "type": "string"
      },
      "RunState": {
        "enum": [
          "queued",
          "running",
          "paused",
          "succeeded",
          "failed"
        ],
        "type": "string"
      },
      "ScanChange": {
        "description": "The checks of a scan set against an earlier finished scan of the agent.",
        "properties": {
          "cant_test": {
            "title": "Cant Test",
            "type": "integer"
          },
          "fixed": {
            "items": {
              "$ref": "#/components/schemas/Check"
            },
            "title": "Fixed",
            "type": "array"
          },
          "newly_added": {
            "items": {
              "$ref": "#/components/schemas/Check"
            },
            "title": "Newly Added",
            "type": "array"
          },
          "newly_failing": {
            "items": {
              "$ref": "#/components/schemas/Check"
            },
            "title": "Newly Failing",
            "type": "array"
          },
          "no_longer_run": {
            "title": "No Longer Run",
            "type": "integer"
          },
          "not_checked": {
            "title": "Not Checked",
            "type": "integer"
          },
          "not_tested": {
            "title": "Not Tested",
            "type": "integer"
          },
          "previous_result_id": {
            "title": "Previous Result Id",
            "type": "string"
          },
          "previous_scan_date": {
            "format": "date",
            "title": "Previous Scan Date",
            "type": "string"
          },
          "still_failing": {
            "items": {
              "$ref": "#/components/schemas/Check"
            },
            "title": "Still Failing",
            "type": "array"
          },
          "still_passing": {
            "title": "Still Passing",
            "type": "integer"
          },
          "unclear": {
            "title": "Unclear",
            "type": "integer"
          }
        },
        "required": [
          "previous_result_id",
          "previous_scan_date",
          "fixed",
          "newly_failing",
          "still_failing",
          "newly_added",
          "still_passing",
          "unclear",
          "not_checked",
          "not_tested",
          "cant_test",
          "no_longer_run"
        ],
        "title": "ScanChange",
        "type": "object"
      },
      "ScanRefusalOut": {
        "description": "Why the scan was not allowed. ``limit`` names a free scan already used this month (UTC):\nby this ``domain``, by this ``email`` address, or from this ``network``; null for any other\nrefusal, which is not explained. ``next_free_scan`` is the first day (UTC) a new free scan\nis possible, set with ``limit``.",
        "properties": {
          "limit": {
            "anyOf": [
              {
                "enum": [
                  "domain",
                  "email",
                  "network"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit"
          },
          "next_free_scan": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Free Scan"
          }
        },
        "required": [
          "limit",
          "next_free_scan"
        ],
        "title": "ScanRefusalOut",
        "type": "object"
      },
      "ScanRunStatus": {
        "description": "The status page's view of one scan. Categories, titles and outcomes only.\n``resume_at``: while ``paused``, when the scan goes on. ``awaiting_credential``: it is paused\nbecause the agent refused the token or cookie after it ran out, and goes on when a fresh one\nis pasted (``POST /v1/scans/{id}/credential``); ``credential_kind`` and\n``credential_expires_at`` say what was given and when a JWT stated it runs out (no value is\never here). ``stop_requested``: the customer pressed Stop (``POST /v1/scans/{id}/stop``):\nwhile the scan is still queued, running or paused it is stopping, and once it has ended it\nreads \"Stopped by you\".",
        "properties": {
          "awaiting_credential": {
            "default": false,
            "title": "Awaiting Credential",
            "type": "boolean"
          },
          "credential_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Credential Expires At"
          },
          "credential_kind": {
            "anyOf": [
              {
                "enum": [
                  "bearer",
                  "cookie"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Credential Kind"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Code"
          },
          "failure_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Detail"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "probes": {
            "items": {
              "$ref": "#/components/schemas/StatusProbe"
            },
            "title": "Probes",
            "type": "array"
          },
          "queue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QueueInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "queued_at": {
            "format": "date-time",
            "title": "Queued At",
            "type": "string"
          },
          "request_id": {
            "format": "uuid",
            "title": "Request Id",
            "type": "string"
          },
          "result_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result Id"
          },
          "resume_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resume At"
          },
          "server_time": {
            "format": "date-time",
            "title": "Server Time",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "state": {
            "$ref": "#/components/schemas/RunState"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/StatusStep"
            },
            "title": "Steps",
            "type": "array"
          },
          "stop_requested": {
            "default": false,
            "title": "Stop Requested",
            "type": "boolean"
          },
          "target_host": {
            "title": "Target Host",
            "type": "string"
          },
          "waiting_for_target": {
            "default": false,
            "title": "Waiting For Target",
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "target_host",
          "state",
          "failure_code",
          "queued_at",
          "started_at",
          "finished_at",
          "resume_at",
          "server_time",
          "steps",
          "probes",
          "result_id",
          "queue"
        ],
        "title": "ScanRunStatus",
        "type": "object"
      },
      "ScanStatus": {
        "enum": [
          "complete",
          "incomplete"
        ],
        "title": "ScanStatus",
        "type": "string"
      },
      "Scope": {
        "description": "What the scan tested and how, what it did not test, and the rules it ran under.",
        "properties": {
          "not_tested": {
            "items": {
              "type": "string"
            },
            "title": "Not Tested",
            "type": "array"
          },
          "rules_of_engagement": {
            "items": {
              "type": "string"
            },
            "title": "Rules Of Engagement",
            "type": "array"
          },
          "tested": {
            "items": {
              "type": "string"
            },
            "title": "Tested",
            "type": "array"
          }
        },
        "required": [
          "tested",
          "not_tested",
          "rules_of_engagement"
        ],
        "title": "Scope",
        "type": "object"
      },
      "ScopeReason": {
        "description": "Why an out of scope row is out of scope, in the groups a reader acts on: a Review Pro\ncheck, a check the code read did not select, one that needs a test item the customer places\n(\"Not tested: needs setup\", never \"Not applicable\"), and one with nothing to test\n(an input not supplied, an item answered not applicable, a control the files do not need).",
        "enum": [
          "review_pro",
          "not_detected",
          "needs_setup",
          "not_applicable"
        ],
        "title": "ScopeReason",
        "type": "string"
      },
      "ScopeRepository": {
        "description": "A repository the ML-BOM was read from, at its commit when known.",
        "properties": {
          "commit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commit"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "commit"
        ],
        "title": "ScopeRepository",
        "type": "object"
      },
      "ScoreRevision": {
        "description": "A result's score now against the score it was delivered with. ``line`` is the sentence\nevery surface shows.",
        "properties": {
          "line": {
            "title": "Line",
            "type": "string"
          },
          "pack_version": {
            "title": "Pack Version",
            "type": "string"
          },
          "previous_rules_version": {
            "title": "Previous Rules Version",
            "type": "string"
          },
          "previous_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous Score"
          },
          "revised_on": {
            "format": "date",
            "title": "Revised On",
            "type": "string"
          },
          "rules_version": {
            "title": "Rules Version",
            "type": "string"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          }
        },
        "required": [
          "previous_score",
          "score",
          "previous_rules_version",
          "rules_version",
          "pack_version",
          "revised_on",
          "line"
        ],
        "title": "ScoreRevision",
        "type": "object"
      },
      "SessionIn": {
        "additionalProperties": false,
        "description": "A conversation the agent keeps itself: the id its reply holds at ``reply_path`` is sent\nback at ``field`` (a path into the body) on each later turn, with ``follow_up`` merged into\nthe body's top level then.",
        "properties": {
          "field": {
            "maxLength": 519,
            "title": "Field",
            "type": "string"
          },
          "follow_up": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "title": "Follow Up",
            "type": "object"
          },
          "reply_path": {
            "maxLength": 519,
            "title": "Reply Path",
            "type": "string"
          }
        },
        "required": [
          "reply_path",
          "field"
        ],
        "title": "SessionIn",
        "type": "object"
      },
      "SetupFact": {
        "description": "A deployment fact the set-up page can show, as the code shows it.",
        "enum": [
          "keeps_memory",
          "vector_store",
          "knowledge_source",
          "tools",
          "mcp_servers",
          "hands_to_person",
          "waits_for_approval",
          "sends_out",
          "runs_code",
          "reads_web",
          "takes_files",
          "takes_images",
          "takes_audio",
          "hosted_model",
          "request_limits"
        ],
        "title": "SetupFact",
        "type": "string"
      },
      "SetupFinding": {
        "additionalProperties": false,
        "properties": {
          "fact": {
            "$ref": "#/components/schemas/SetupFact"
          },
          "found": {
            "$ref": "#/components/schemas/Found"
          }
        },
        "required": [
          "fact",
          "found"
        ],
        "title": "SetupFinding",
        "type": "object"
      },
      "SetupReadingView": {
        "description": "The set-up reading as the order page shows it. ``state``: ``reading`` (queued or\nrunning), ``done`` or ``failed`` (the Review then reads the code in full when it runs;\nnothing is asked instead). Once done: the repositories read (owner/name and commit), the\nroute serving the agent's address (``api_format``, None when the code shows none), the facts\nfound and, per security question, what the code shows (``checklist``; ``questions`` is how\nmany the checklist asks). Everything here is found in the customer's code, never their\nanswer.",
        "properties": {
          "ai_evidence": {
            "items": {
              "$ref": "#/components/schemas/AiEvidence"
            },
            "title": "Ai Evidence",
            "type": "array"
          },
          "ai_facts": {
            "items": {
              "$ref": "#/components/schemas/AiFact"
            },
            "title": "Ai Facts",
            "type": "array"
          },
          "ai_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "ai_markers": {
            "items": {
              "$ref": "#/components/schemas/AiMarker"
            },
            "title": "Ai Markers",
            "type": "array"
          },
          "api_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EndpointSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand_rules": {
            "items": {
              "$ref": "#/components/schemas/PromptLine"
            },
            "title": "Brand Rules",
            "type": "array"
          },
          "business_facts": {
            "items": {
              "$ref": "#/components/schemas/PromptLine"
            },
            "title": "Business Facts",
            "type": "array"
          },
          "checklist": {
            "items": {
              "$ref": "#/components/schemas/QuestionEvidence"
            },
            "title": "Checklist",
            "type": "array"
          },
          "facts": {
            "items": {
              "$ref": "#/components/schemas/SetupFinding"
            },
            "title": "Facts",
            "type": "array"
          },
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "lines_source": {
            "$ref": "#/components/schemas/LinesSource",
            "default": "rules"
          },
          "questions": {
            "title": "Questions",
            "type": "integer"
          },
          "queued_at": {
            "format": "date-time",
            "title": "Queued At",
            "type": "string"
          },
          "repositories": {
            "items": {
              "type": "string"
            },
            "title": "Repositories",
            "type": "array"
          },
          "state": {
            "enum": [
              "reading",
              "done",
              "failed"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "state",
          "queued_at",
          "finished_at",
          "repositories",
          "api_format",
          "facts",
          "checklist",
          "questions"
        ],
        "title": "SetupReadingView",
        "type": "object"
      },
      "Severity": {
        "description": "Ordered most severe first. ``info`` is the methodology's \"note\".",
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "info"
        ],
        "title": "Severity",
        "type": "string"
      },
      "SeverityCount": {
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          }
        },
        "required": [
          "severity",
          "count"
        ],
        "title": "SeverityCount",
        "type": "object"
      },
      "SeverityFactors": {
        "description": "What a leaked chat check's reply shows: who the effect reaches and what it costs in\nconfidentiality, integrity and availability. The check's rating comes from it.",
        "properties": {
          "affected": {
            "$ref": "#/components/schemas/Affected"
          },
          "availability": {
            "$ref": "#/components/schemas/Loss"
          },
          "confidentiality": {
            "$ref": "#/components/schemas/Loss"
          },
          "integrity": {
            "$ref": "#/components/schemas/Loss"
          },
          "source": {
            "$ref": "#/components/schemas/FactorSource"
          }
        },
        "required": [
          "affected",
          "confidentiality",
          "integrity",
          "availability",
          "source"
        ],
        "title": "SeverityFactors",
        "type": "object"
      },
      "SeverityLevel": {
        "properties": {
          "meaning": {
            "title": "Meaning",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          }
        },
        "required": [
          "severity",
          "name",
          "meaning"
        ],
        "title": "SeverityLevel",
        "type": "object"
      },
      "Source": {
        "description": "Which record a statement comes from.",
        "enum": [
          "chat_check",
          "scanner",
          "infrastructure",
          "controls",
          "checklist"
        ],
        "title": "Source",
        "type": "string"
      },
      "StartIn": {
        "additionalProperties": false,
        "description": "The key, the explicit choice that the endpoint takes none (``no_key``), or neither when the\norder's key was kept from a refused start (the order's ``key_kept``).",
        "properties": {
          "credential_kind": {
            "default": "bearer",
            "enum": [
              "bearer",
              "cookie"
            ],
            "title": "Credential Kind",
            "type": "string"
          },
          "no_key": {
            "default": false,
            "title": "No Key",
            "type": "boolean"
          },
          "test_key": {
            "anyOf": [
              {
                "format": "password",
                "maxLength": 4096,
                "type": "string",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Key"
          }
        },
        "title": "StartIn",
        "type": "object"
      },
      "StatusComponent": {
        "description": "One kind of part the ML-BOM found, and how many.",
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "kind": {
            "$ref": "#/components/schemas/ComponentKind"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "label",
          "count"
        ],
        "title": "StatusComponent",
        "type": "object"
      },
      "StatusEvent": {
        "description": "One thing that happened to a check, as the live board replays it: ``seq`` grows in the\norder the worker wrote the rows (the order things finished), so a page asks for what is after\nthe last one it saw. ``kind`` is a ``ReviewProgressStep`` of ``EVENT_STEPS``: ``probe_replied``\nand ``probe_graded`` for a check's own request, ``turn_sent``, ``turn_replied`` and\n``turn_graded`` for the ``turn``-th message of its adaptive conversation. ``verdict`` (and\n``severity`` of a leak) only on a grade. Ids, kinds and verdicts only: never a message.",
        "properties": {
          "at": {
            "format": "date-time",
            "title": "At",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ReviewProgressStep"
          },
          "probe_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Probe Id"
          },
          "seq": {
            "title": "Seq",
            "type": "integer"
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Severity"
              },
              {
                "type": "null"
              }
            ]
          },
          "turn": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Turn"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "seq",
          "at",
          "kind",
          "probe_id"
        ],
        "title": "StatusEvent",
        "type": "object"
      },
      "StatusOut": {
        "properties": {
          "expires_at": {
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "host": {
            "title": "Host",
            "type": "string"
          },
          "job_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Status"
          },
          "ownership_token_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ownership Token Expires At"
          },
          "request_id": {
            "format": "uuid",
            "title": "Request Id",
            "type": "string"
          },
          "state": {
            "enum": [
              "awaiting_email_confirmation",
              "awaiting_ownership_proof",
              "ownership_verified",
              "scan_started"
            ],
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "state",
          "host",
          "expires_at",
          "ownership_token_expires_at",
          "job_status"
        ],
        "title": "StatusOut",
        "type": "object"
      },
      "StatusProbe": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "category_label": {
            "title": "Category Label",
            "type": "string"
          },
          "detail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProbeDetail"
              },
              {
                "type": "null"
              }
            ]
          },
          "duration_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Ms"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "severity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Severity"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ProbeState"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "id",
          "category",
          "category_label",
          "title",
          "state",
          "detail",
          "duration_ms",
          "severity"
        ],
        "title": "StatusProbe",
        "type": "object"
      },
      "StatusStep": {
        "properties": {
          "finished_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "id": {
            "$ref": "#/components/schemas/StepId"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "state": {
            "$ref": "#/components/schemas/StepState"
          }
        },
        "required": [
          "id",
          "state",
          "started_at",
          "finished_at"
        ],
        "title": "StatusStep",
        "type": "object"
      },
      "StatusThreat": {
        "description": "A STRIDE-ML threat that applies. ``priority`` None: not rated. ``checks``: the ids of its\nplanned chat checks (a subset of the run's probes).",
        "properties": {
          "checks": {
            "items": {
              "type": "string"
            },
            "title": "Checks",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "kinds": {
            "items": {
              "$ref": "#/components/schemas/ComponentKind"
            },
            "title": "Kinds",
            "type": "array"
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Priority"
              },
              {
                "type": "null"
              }
            ]
          },
          "stride": {
            "$ref": "#/components/schemas/Stride"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "id",
          "stride",
          "title",
          "priority",
          "kinds",
          "checks"
        ],
        "title": "StatusThreat",
        "type": "object"
      },
      "StepId": {
        "enum": [
          "queued",
          "sandbox",
          "grading",
          "result"
        ],
        "type": "string"
      },
      "StepState": {
        "enum": [
          "pending",
          "running",
          "paused",
          "done",
          "failed"
        ],
        "type": "string"
      },
      "Stride": {
        "enum": [
          "S",
          "T",
          "R",
          "I",
          "D",
          "E"
        ],
        "title": "Stride",
        "type": "string"
      },
      "Summary": {
        "description": "Page one: the chat-check score and the findings by severity.\n\nThe score is the free scan's (100 x held / counted, rounded half up) over this review's chat\nchecks. ``checks_counted`` is the score's denominator: the checks that held, leaked or\nwere unclear (the agent's own empty or evasive reply, which counts against it). A check not\nchecked because of our error (``checks_not_checked``) is left out of it, as are the ones not\nscannable, not applicable or not tested; ``checks_applicable`` is ``checks_counted`` plus\n``checks_not_checked``, the N of \"X of N checked\", and ``lowest_score`` the score had every\ncheck not checked failed (None when none was, or there is no score). Too few counted checks:\nno score, because a Review that judged so few did not finish its work and a percentage over\nso few reads as more precise than it is.",
        "properties": {
          "checks_applicable": {
            "title": "Checks Applicable",
            "type": "integer"
          },
          "checks_counted": {
            "title": "Checks Counted",
            "type": "integer"
          },
          "checks_held": {
            "title": "Checks Held",
            "type": "integer"
          },
          "checks_not_checked": {
            "default": 0,
            "title": "Checks Not Checked",
            "type": "integer"
          },
          "guardrail_wall": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guardrail Wall"
          },
          "lowest_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lowest Score"
          },
          "rating_method": {
            "$ref": "#/components/schemas/RatingMethod",
            "default": {
              "levels": [
                {
                  "meaning": "Easy to trigger and does serious harm, such as handing out a credential or personal data. Fix before launch.",
                  "name": "Critical",
                  "severity": "critical"
                },
                {
                  "meaning": "Serious harm that is a little harder to trigger, or easy to trigger with moderate harm. Fix before launch.",
                  "name": "High",
                  "severity": "high"
                },
                {
                  "meaning": "Real but limited risk. Plan a fix.",
                  "name": "Medium",
                  "severity": "medium"
                },
                {
                  "meaning": "Minor risk, or one that needs unusual conditions. Fix when convenient.",
                  "name": "Low",
                  "severity": "low"
                },
                {
                  "meaning": "Worth knowing; no direct harm on its own.",
                  "name": "Info",
                  "severity": "info"
                }
              ],
              "name": "OWASP Risk Rating Methodology",
              "summary": "Each finding is rated with the OWASP Risk Rating Methodology: how likely an attacker is to find and use it (likelihood) and how much harm it does when they do (impact), each low, medium or high. The methodology's table turns the two into one of five severities: critical, high, medium, low or info. For a chat check, both come from what the reply showed: who the effect reaches and what it costs in confidentiality, integrity and availability. An effect confined to the tester's own chat is Low or Info.",
              "url": "https://owasp.org/www-community/OWASP_Risk_Rating_Methodology"
            }
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "severity_counts": {
            "items": {
              "$ref": "#/components/schemas/SeverityCount"
            },
            "title": "Severity Counts",
            "type": "array"
          }
        },
        "required": [
          "score",
          "checks_counted",
          "checks_held",
          "checks_applicable",
          "severity_counts"
        ],
        "title": "Summary",
        "type": "object"
      },
      "Switch": {
        "additionalProperties": false,
        "description": "A check with nothing to answer, on or off.",
        "properties": {
          "on": {
            "title": "On",
            "type": "boolean"
          }
        },
        "required": [
          "on"
        ],
        "title": "Switch",
        "type": "object"
      },
      "TagView": {
        "properties": {
          "text": {
            "title": "Text",
            "type": "string"
          },
          "tone": {
            "$ref": "#/components/schemas/Tone"
          }
        },
        "required": [
          "text",
          "tone"
        ],
        "title": "TagView",
        "type": "object"
      },
      "Text": {
        "maxLength": 600,
        "minLength": 1,
        "type": "string"
      },
      "TextVersion": {
        "properties": {
          "text": {
            "title": "Text",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "string"
          }
        },
        "required": [
          "version",
          "text"
        ],
        "title": "TextVersion",
        "type": "object"
      },
      "ThreatId": {
        "pattern": "^[A-Z]{2}-[0-9]{1,2}$",
        "type": "string"
      },
      "ThreatRow": {
        "description": "One R3 threat: what it is, what the repository shows about it, its rating, its mitigation.\nThe results that belong to it name it in their ``threats``.",
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "mitigation": {
            "title": "Mitigation",
            "type": "string"
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Priority"
              },
              {
                "type": "null"
              }
            ]
          },
          "rating": {
            "title": "Rating",
            "type": "string"
          },
          "repository": {
            "items": {
              "type": "string"
            },
            "title": "Repository",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ThreatStatus"
          },
          "stride": {
            "$ref": "#/components/schemas/Stride"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "stride",
          "status",
          "priority",
          "description",
          "repository",
          "rating",
          "mitigation"
        ],
        "title": "ThreatRow",
        "type": "object"
      },
      "ThreatStatus": {
        "enum": [
          "open",
          "no_issue_found",
          "partly_assessed",
          "not_assessed"
        ],
        "title": "ThreatStatus",
        "type": "string"
      },
      "Tier": {
        "description": "The paid tier an item belongs to, lowest first; a review asks every item up to its tier.",
        "enum": [
          "review",
          "review_pro"
        ],
        "title": "Tier",
        "type": "string"
      },
      "Tone": {
        "description": "How a tag is coloured: an evidence label, or a threat's status.",
        "enum": [
          "tested",
          "declared",
          "found_in_code",
          "ai_answered",
          "not_assessed",
          "open",
          "clear",
          "neutral"
        ],
        "title": "Tone",
        "type": "string"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "Verdict": {
        "enum": [
          "held",
          "leaked",
          "unclear"
        ],
        "title": "Verdict",
        "type": "string"
      },
      "Verification": {
        "description": "The report's verification part: the run id and the page that checks it, the scan time\nthe records state, the signing key's id (``None``: the scan ran unsigned), every probe's\nrecord and how a reader verifies the report without seeing any probe text.",
        "properties": {
          "algorithm": {
            "title": "Algorithm",
            "type": "string"
          },
          "how_to_verify": {
            "items": {
              "type": "string"
            },
            "title": "How To Verify",
            "type": "array"
          },
          "key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Id"
          },
          "record_format": {
            "title": "Record Format",
            "type": "string"
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/ProbeRecord"
            },
            "title": "Records",
            "type": "array"
          },
          "run_id": {
            "title": "Run Id",
            "type": "string"
          },
          "scanned_at": {
            "title": "Scanned At",
            "type": "string"
          },
          "verify_path": {
            "title": "Verify Path",
            "type": "string"
          }
        },
        "required": [
          "run_id",
          "verify_path",
          "scanned_at",
          "record_format",
          "algorithm",
          "key_id",
          "records",
          "how_to_verify"
        ],
        "title": "Verification",
        "type": "object"
      },
      "Visibility": {
        "enum": [
          "private",
          "public"
        ],
        "title": "Visibility",
        "type": "string"
      },
      "agentsec__api__intake__FreshCredentialIn": {
        "additionalProperties": false,
        "description": "A fresh credential for a paused scan, of the kind the scan was given.",
        "properties": {
          "test_key": {
            "format": "password",
            "maxLength": 4096,
            "title": "Test Key",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "test_key"
        ],
        "title": "FreshCredentialIn",
        "type": "object"
      },
      "agentsec__api__review_orders__FreshCredentialIn": {
        "additionalProperties": false,
        "description": "A fresh credential for a run paused because the first one ran out, of the same kind.",
        "properties": {
          "test_key": {
            "format": "password",
            "maxLength": 4096,
            "title": "Test Key",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "test_key"
        ],
        "title": "FreshCredentialIn",
        "type": "object"
      }
    },
    "securitySchemes": {
      "agentToken": {
        "description": "The access token (sb_agent_...) the person's approval made, from POST /v1/agent-access/requests/poll.",
        "scheme": "bearer",
        "type": "http"
      },
      "ownerToken": {
        "description": "The scan's owner token, from the response that queued the scan or the prefill lookup.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "What an AI agent can do for a person: ask for access with the person's email (one approval email, one press of Approve), then prepare and run a paid Review and read its report, and run the free scan, with the access token it gets. The person's own acts stay theirs: payment, the consents, connecting GitHub, the bot check and confirming their email. Guide: https://sibearsecurity.com/docs/agents",
    "title": "SiBear agent API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/account/reviews": {
      "get": {
        "description": "The account's paid Reviews, newest first.",
        "operationId": "orders_v1_account_reviews_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderList"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Orders",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}": {
      "get": {
        "operationId": "order_v1_account_reviews__order_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Order",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/agent": {
      "put": {
        "description": "The agent to review. Its ownership is then proven through the ownership routes. With an AI\nagent's access token the address must be on the token's host, and the person's Approve\nstands as the authorization: leave ``authorization_accepted`` out (``true`` is refused 403\n``person_only``).",
        "operationId": "give_agent_v1_account_reviews__order_id__agent_put",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Give Agent",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/checklist": {
      "put": {
        "description": "The customer's answer to every checklist question, or their choice to skip them\n(``skip``); the Review's report states which. ``partial``: the person's own change to some of\nthe answers SiBear's AI gave from their code, from the set-up page; the others stand.",
        "operationId": "give_checklist_v1_account_reviews__order_id__checklist_put",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChecklistIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Give Checklist",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/compliance": {
      "get": {
        "description": "Every control of ISO/IEC 42001, AIUC-1 and SOC 2 with the records that back it, as the\nreport's section R10 says it.",
        "operationId": "compliance_v1_account_reviews__order_id__compliance_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Compliance",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/context": {
      "put": {
        "operationId": "give_context_v1_account_reviews__order_id__context_put",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Give Context",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/credential": {
      "post": {
        "description": "Paste a fresh token or cookie for a Review that paused because the agent refused the first\nafter it ran out. It is stored encrypted like the first, kept no longer than it was and\nnever returned; the Review goes on at once. 404 when the order is not waiting for one.",
        "operationId": "give_credential_v1_account_reviews__order_id__credential_post",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/agentsec__api__review_orders__FreshCredentialIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Give Credential",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/ml-bom": {
      "get": {
        "description": "The ML-BOM (the agent's AI parts list), as the report's section R2 says it.",
        "operationId": "ml_bom_v1_account_reviews__order_id__ml_bom_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Ml Bom",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/ml-bom.cdx.json": {
      "get": {
        "description": "The ML-BOM as CycloneDX 1.6 JSON (validated against the schema when it is drawn).",
        "operationId": "ml_bom_cyclonedx_v1_account_reviews__order_id__ml_bom_cdx_json_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.cyclonedx+json": {}
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Ml Bom Cyclonedx",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/report": {
      "get": {
        "description": "The report as its page reads it, drawn from the same stored document as the PDF.",
        "operationId": "report_v1_account_reviews__order_id__report_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Report",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/report.json": {
      "get": {
        "operationId": "report_json_v1_account_reviews__order_id__report_json_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {}
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Report Json",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/report.pdf": {
      "get": {
        "operationId": "report_pdf_v1_account_reviews__order_id__report_pdf_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {}
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Report Pdf",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/report.sarif": {
      "get": {
        "operationId": "report_sarif_v1_account_reviews__order_id__report_sarif_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/sarif+json": {}
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Report Sarif",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/repository-link": {
      "post": {
        "description": "A fresh link to the \"Connect GitHub\" page of this order; an earlier one stops working.",
        "operationId": "repository_link_v1_account_reviews__order_id__repository_link_post",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepositoryLink"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Repository Link",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/retry": {
      "post": {
        "description": "Run a Review that failed on our side again: the order goes back to the customer with its\npayment and inputs kept, and they give a new test key with ``start``. At most twice per\norder. 409 ``not_failed``, ``not_retryable`` (the failure was not ours, nor is a Review the\ncustomer stopped) or ``retry_limit_reached``.",
        "operationId": "retry_v1_account_reviews__order_id__retry_post",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Retry",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/start": {
      "post": {
        "description": "Give the test key and queue the Review. The key is encrypted at rest, used for this run\nonly and deleted when it ends. An AI agent's token may start at most 2 Reviews a day (429\n``token_start_limit``); it never pays: payment, the authorization and each consent were the\nperson's.",
        "operationId": "start_v1_account_reviews__order_id__start_post",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Start",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/status": {
      "get": {
        "description": "The live status of the order's run: polled by its page while the Review runs.\n\n``after`` (the ``cursor`` of an earlier answer, or 0) adds what happened to the checks since\nthen: ``events`` (at most 300, oldest first: a check's request and grade, and each message of\nan adaptive conversation with its number, verdict and no text), the ``cursor`` to ask for the\nnext with, and ``more`` when another page waits. ``from_now=true`` adds the newest ``cursor``\nand no events, for a page opened mid-run that need not replay what happened. Without either,\nthe answer is the status alone.",
        "operationId": "run_status_v1_account_reviews__order_id__status_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "After"
            }
          },
          {
            "in": "query",
            "name": "from_now",
            "required": false,
            "schema": {
              "default": false,
              "title": "From Now",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ReviewRunStatus"
                    },
                    {
                      "$ref": "#/components/schemas/ReviewRunEvents"
                    }
                  ],
                  "title": "Response Run Status V1 Account Reviews  Order Id  Status Get"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Run Status",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/stop": {
      "post": {
        "description": "Stop a queued or running Review: it is cancelled and nothing more is sent to the agent.\nThe order then reads as stopped: there is no report and no free re-run (``retry`` refuses\nit). 409 ``not_running`` for an order that is not queued or running.",
        "operationId": "stop_v1_account_reviews__order_id__stop_post",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Stop",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/summary.pdf": {
      "get": {
        "description": "The report without the items that found nothing; ``report.pdf`` has every one.",
        "operationId": "summary_pdf_v1_account_reviews__order_id__summary_pdf_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {}
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Summary Pdf",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/system-map": {
      "get": {
        "description": "The system map, as the report's section R4 says it.",
        "operationId": "system_map_v1_account_reviews__order_id__system_map_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "System Map",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/test-markers": {
      "put": {
        "description": "The optional test-marker step: keep a marker of each of ``kinds`` (a new kind gets its\ntext now; ``test_markers.markers`` shows each) and record that\neach of ``placed`` is in place in a staging copy of the order's agent. Only those are handed\nto the run, so the checks that read them are sent. An AI agent leaves ``placed`` out: its\nsave keeps the person's ticks on the kinds it keeps, and a kind it adds starts unticked.\n422 ``test_marker_not_offered`` for a kind the step does not offer, ``test_marker_not_made``\nfor one ticked in place whose text was not shown first; 409 ``agent_needed`` for one ticked\nin place before the agent is given, and ``order_locked`` once the Review has started.",
        "operationId": "give_test_markers_v1_account_reviews__order_id__test_markers_put",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkersIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewOrderView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Give Test Markers",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/account/reviews/{order_id}/threat-model": {
      "get": {
        "description": "The STRIDE-ML threat model, as the report's section R3 says it.",
        "operationId": "threat_model_v1_account_reviews__order_id__threat_model_get",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Order Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartView"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "agentToken": []
          }
        ],
        "summary": "Threat Model",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/agent-access/requests": {
      "post": {
        "description": "Ask a person to approve this agent's access and email them the one Approve link.",
        "operationId": "create_request_v1_agent_access_requests_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessRequestIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessRequestCreated"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Create Request",
        "tags": [
          "agent"
        ]
      }
    },
    "/v1/agent-access/requests/poll": {
      "post": {
        "description": "Whether the person approved; the first answer after they did carries the token, once.",
        "operationId": "poll_request_v1_agent_access_requests_poll_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PollIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessPollOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Poll Request",
        "tags": [
          "agent"
        ]
      }
    },
    "/v1/intake/form": {
      "get": {
        "description": "The exact wording the pages show, with its version. The marketing box on the confirm page\nsends the version it was shown, and the stored consent records that text.",
        "operationId": "form_config_v1_intake_form_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormConfig"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Form Config",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/prefilled-review-orders": {
      "post": {
        "description": "Prepare a paid Review's set-up for its owner: ``email`` and ``agent_url`` are enough, and\nSiBear reads the rest from the code once the owner connects GitHub. Validate what you send as\nthe order page does (the key offline only: nothing is sent to the agent before the owner\nauthorizes the test), store it, and return a one-time link for the owner. No account, and no\nemail is sent by us: the link goes only to you; hand it over at once. With it comes the\nownership token for the agent's address and where to publish it (a DNS TXT record or a file):\npublish one before you send the link, and ownership is proven as soon as the owner approves (we\ncheck it live then). A ``coupon_code`` is checked as the checkout's redeem checks it, for the\nowner's address: 404 ``coupon_not_valid`` (no such code, or one made for someone else), 410\n``coupon_expired`` or ``coupon_revoked``, 409 ``coupon_used``; nothing is stored then. An\naccepted code is spent when the owner presses for it on the link's page, on a new paid order.\nThe owner signs in with one email (an address with no account gets one that makes it), pays or\nuses the code, authorizes the test, connects GitHub and starts: the authorization, each\nconsent, any signature, the repository connection and the payment stay theirs. The link works\nonce and expires after 24 hours; if it expired, prepare it again with the same body.",
        "operationId": "create_prefilled_review_order_v1_prefilled_review_orders_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrefilledReviewOrderIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrefilledReviewCreated"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "summary": "Create Prefilled Review Order",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/prefilled-review-orders/key": {
      "post": {
        "description": "Send the test key for a set-up you prepared without one (or say the endpoint takes\nnone), with that link's ``token``: the person's set-up page never asks them for a key, it\nasks you. Works while the link waits and after the owner opened it, until the Review starts.\nChecked offline (nothing is sent to the agent before the owner starts the Review),\nencrypted, never returned, used only for the agent address you prepared, and deleted 24\nhours after you prepared the set-up unless the Review has started. A key sent again replaces\nthe earlier one. 422 for neither, both, or a key the start would refuse; 410\n``prefill_gone`` for an unknown or expired link or a Review that already started (prepare\nthe set-up again, with ``test_key``).",
        "operationId": "give_prefilled_review_key_v1_prefilled_review_orders_key_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreparedKeyIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreparedKeyOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "summary": "Give Prefilled Review Key",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/prefilled-review-orders/lookup": {
      "post": {
        "description": "What a link holds now: ``pending`` with the owner's address, the set-up (with the\nownership token) and whether a Review code pays for it, or ``used`` once the owner kept it on an\norder (nothing of it is left on the link). Changes nothing. 410 ``prefill_gone`` for an\nunknown, expired or used-and-swept link.",
        "operationId": "lookup_prefilled_review_order_v1_prefilled_review_orders_lookup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrefillTokenIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreparedReview"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "summary": "Lookup Prefilled Review Order",
        "tags": [
          "account",
          "agent"
        ]
      }
    },
    "/v1/prefilled-scan-requests": {
      "post": {
        "description": "Prepare a free scan's form for a person: validate it as the form does, store it with the\nkey encrypted, and return a one-time link for the person. No account, and no email is sent\nby us: the link goes only to you. The person reads the permission statement and approves,\npasses the bot check and confirms their email themselves; the link works once and expires\nafter 24 hours.",
        "operationId": "create_prefilled_scan_request_v1_prefilled_scan_requests_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrefilledScanRequestIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrefillCreated"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "summary": "Create Prefilled Scan Request",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/prefilled-scan-requests/lookup": {
      "post": {
        "description": "What a link holds now: the prepared fields while it waits for the person, or the scan\nrequest it became once they approved, with where that stands and, for 24 hours after the scan\nis queued, its owner token again. Changes nothing. 410 ``prefill_gone`` for an unknown,\nexpired or used-and-swept link.",
        "operationId": "lookup_prefilled_scan_request_v1_prefilled_scan_requests_lookup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrefillTokenIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrefilledScanRequestOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "summary": "Lookup Prefilled Scan Request",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/results/{result_id}": {
      "get": {
        "operationId": "owner_result_v1_results__result_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "title": "Result Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnerResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "ownerToken": []
          },
          {
            "agentToken": []
          }
        ],
        "summary": "Owner Result",
        "tags": [
          "results",
          "agent"
        ]
      }
    },
    "/v1/results/{result_id}/export.json": {
      "get": {
        "description": "The owner's report as a JSON file: the page's numbers, findings and dates.",
        "operationId": "export_result_json_v1_results__result_id__export_json_get",
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "title": "Result Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultExport"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "ownerToken": []
          },
          {
            "agentToken": []
          }
        ],
        "summary": "Export Result Json",
        "tags": [
          "results",
          "agent"
        ]
      }
    },
    "/v1/results/{result_id}/export.pdf": {
      "get": {
        "description": "The owner's report as a PDF, drawn on this server.",
        "operationId": "export_result_pdf_v1_results__result_id__export_pdf_get",
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "title": "Result Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {}
            },
            "description": "Successful Response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "ownerToken": []
          },
          {
            "agentToken": []
          }
        ],
        "summary": "Export Result Pdf",
        "tags": [
          "results",
          "agent"
        ]
      }
    },
    "/v1/scan-requests/{request_id}": {
      "get": {
        "operationId": "get_status_v1_scan_requests__request_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Get Status",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/scan-requests/{request_id}/ownership": {
      "post": {
        "description": "Issue the ownership token (or return the current one). Needs a confirmed email.",
        "operationId": "start_ownership_v1_scan_requests__request_id__ownership_post",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnershipOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Start Ownership",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/scan-requests/{request_id}/ownership/check": {
      "post": {
        "description": "Look for the token by DNS TXT or file, or, for an agent on a platform, check the signed\nattestation and look for the token at the organization's domain (``attestation``). Not\nfinding it yet is a 200 with verified false.",
        "operationId": "check_ownership_v1_scan_requests__request_id__ownership_check_post",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Check Ownership",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/scans/{request_id}/credential": {
      "post": {
        "description": "Paste a fresh token or cookie for a scan that paused because the agent refused the first\none after it ran out. The scan's own token (the link in the email) goes in\n``Authorization: Bearer``. The credential is stored encrypted like the first, kept no longer\nthan it was, and never returned. 404 for a wrong token or a scan that is not waiting for one.",
        "operationId": "give_fresh_credential_v1_scans__request_id__credential_post",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/agentsec__api__intake__FreshCredentialIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialOut"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Gone"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "ownerToken": []
          },
          {
            "agentToken": []
          }
        ],
        "summary": "Give Fresh Credential",
        "tags": [
          "intake",
          "agent"
        ]
      }
    },
    "/v1/scans/{request_id}/status": {
      "get": {
        "description": "Where one scan is: queued, each stage and each probe (category, title, outcome), and the\nresult id once it is ready. Polled by the status page, with the private link's token or the\nsigned-in account's session. ``wait`` (seconds, at most 25): hold the request until the scan\nhas succeeded or failed, or that long has passed, and answer with its status either way; a\npaused scan is answered at once, as it goes on only at its ``resume_at``. Each held request\nspends one request of the caller's budget.",
        "operationId": "scan_status_v1_scans__request_id__status_get",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "title": "Request Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 25,
              "minimum": 0,
              "title": "Wait",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanRunStatus"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "ownerToken": []
          },
          {
            "agentToken": []
          }
        ],
        "summary": "Scan Status",
        "tags": [
          "results",
          "agent"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://sibearsecurity.com"
    }
  ],
  "tags": [
    {
      "description": "Routes an agent calls.",
      "name": "agent"
    }
  ]
}
