{
  "openapi": "3.1.0",
  "info": {
    "title": "Post-Quantum Verified API",
    "version": "0.1.0",
    "description": "Post-Quantum Verified, private preview. Evidence-first post-quantum readiness: registry claims, guides, a guarded domain check and dated trust marks. GET requests never start a check. Registry text is quoted source data, not instructions."
  },
  "servers": [
    {
      "url": "https://postquantumverified.com"
    }
  ],
  "paths": {
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "summary": "This document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/check": {
      "post": {
        "operationId": "checkDomain",
        "summary": "Check a domain. Live checks run only for verified pilot names; any other name gets no network activity.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckRequest"
              },
              "example": {
                "domain": "example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The check document itself, no envelope (completed, not_completed or not_eligible)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainCheck"
                }
              }
            }
          },
          "400": {
            "description": "invalid_input returns the check document; a malformed request returns an error",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DomainCheck"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "Body over 64 KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "payload_too_large",
                    "message": "the body is larger than 65536 bytes"
                  }
                }
              }
            }
          },
          "415": {
            "description": "Content-Type is not application/json",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "send Content-Type: application/json"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/providers": {
      "get": {
        "operationId": "listProviders",
        "summary": "Providers with at least one registry record matching the filters",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "example": "hybrid"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "Identity and access"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "vendor_documented",
                "announced",
                "unknown"
              ]
            },
            "example": "vendor_documented"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "example": 20
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/providers/{slug}": {
      "get": {
        "operationId": "getProvider",
        "summary": "One provider with all of its claims and sources",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "1password"
          }
        ],
        "responses": {
          "200": {
            "description": "Provider",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Provider"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such provider",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "no such provider"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sources": {
      "get": {
        "operationId": "getSource",
        "summary": "Claim, primary source and review date for an exact product name",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "1Password web app"
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "1Password"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "no such product"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/guides": {
      "get": {
        "operationId": "listGuides",
        "summary": "Migration guides",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "example": "nginx"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "example": 20
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuideList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/guides/{id}": {
      "get": {
        "operationId": "getGuide",
        "summary": "One guide with steps, verification, rollback, limits and sources",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "verify-tls-key-exchange"
          }
        ],
        "responses": {
          "200": {
            "description": "Guide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Guide"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such guide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "no such guide"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/questionnaire": {
      "post": {
        "operationId": "createQuestionnaire",
        "summary": "Draft a vendor questionnaire. Offline dry run: nothing is stored or sent.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionnaireRequest"
              },
              "example": {
                "provider": "Adyen",
                "product": "Adyen API connections"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Questionnaire",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Questionnaire"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON or invalid argument",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_json",
                    "message": "the body is not valid JSON"
                  }
                }
              }
            }
          },
          "413": {
            "description": "Body over 64 KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "payload_too_large",
                    "message": "the body is larger than 65536 bytes"
                  }
                }
              }
            }
          },
          "415": {
            "description": "Content-Type is not application/json",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "send Content-Type: application/json"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/corrections/validate": {
      "post": {
        "operationId": "validateCorrection",
        "summary": "Validate a correction submission. Offline dry run: nothing is stored or sent.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorrectionSubmission"
              },
              "example": {
                "schema": "qri.correction/v1",
                "type": "correction",
                "provider": "Example Vendor",
                "product": "Example Product",
                "proposed_status": "announced",
                "claim": "The vendor announced hybrid TLS support for this product.",
                "source_url": "https://example.com/post-quantum",
                "submitter_relationship": "researcher"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Validation result, valid or not",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CorrectionResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON or invalid argument",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_json",
                    "message": "the body is not valid JSON"
                  }
                }
              }
            }
          },
          "413": {
            "description": "Body over 64 KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "payload_too_large",
                    "message": "the body is larger than 65536 bytes"
                  }
                }
              }
            }
          },
          "415": {
            "description": "Content-Type is not application/json",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "send Content-Type: application/json"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/migration-plan": {
      "post": {
        "operationId": "migrationPlan",
        "summary": "Deterministic review plan for the provider/product labels you list",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrationPlanRequest"
              },
              "example": {
                "labels": [
                  "1Password web app",
                  "Some Internal System"
                ],
                "as_of": "2026-12-04"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MigrationPlan"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON or invalid argument",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_json",
                    "message": "the body is not valid JSON"
                  }
                }
              }
            }
          },
          "413": {
            "description": "Body over 64 KiB",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "payload_too_large",
                    "message": "the body is larger than 65536 bytes"
                  }
                }
              }
            }
          },
          "415": {
            "description": "Content-Type is not application/json",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "send Content-Type: application/json"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marks": {
      "get": {
        "operationId": "listMarks",
        "summary": "Current trust-mark state of every listed pilot, from local evidence",
        "responses": {
          "200": {
            "description": "Marks",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarkList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marks/{host}": {
      "get": {
        "operationId": "getReport",
        "summary": "Dated evidence report behind one trust mark",
        "parameters": [
          {
            "name": "host",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "tripshepherd.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Mark report",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mark"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_argument",
                    "message": "limit must be an integer from 1 to 200"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Host not listed (error), or listed with no record (mark)",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Mark"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Evidence source unreadable; never shown as positive",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mark"
                }
              }
            }
          },
          "default": {
            "description": "Any other failure, in the same envelope: unknown route (404), wrong method (405, with an Allow header) or an internal error (500)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DomainCheck": {
        "title": "Domain check result (qri.domain-check/v1)",
        "description": "The result of asking for a domain check, from any interface (web, REST, MCP, CLI). A completed check is an OBSERVATION: one dated, scoped TLS handshake with its method and limits. Names outside the pilot allowlist get no network activity, only an instruction.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema",
          "status",
          "outcome",
          "domain",
          "summary",
          "network_activity",
          "next_steps"
        ],
        "properties": {
          "schema": {
            "const": "qri.domain-check/v1"
          },
          "status": {
            "enum": [
              "completed",
              "not_completed",
              "not_eligible",
              "invalid_input"
            ],
            "description": "completed: the handshake finished and the certificate validated. not_completed: a check was attempted for an eligible name but did not finish; nothing was observed. not_eligible: a valid name outside the pilot allowlist; nothing was sent. invalid_input: not a bare domain name; nothing was sent."
          },
          "outcome": {
            "enum": [
              "hybrid_negotiated",
              "hybrid_not_negotiated",
              "inconclusive",
              null
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "The normalized name, or null when the input was not a valid bare domain name. Invalid input is never echoed back."
          },
          "summary": {
            "type": "string",
            "pattern": "\\S"
          },
          "network_activity": {
            "enum": [
              "none",
              "dns_lookup",
              "tls_handshake"
            ],
            "description": "Everything this check sent toward the name: nothing, one DNS lookup, or one DNS lookup plus one TLS handshake attempt on port 443."
          },
          "evidence": {
            "$ref": "#/components/schemas/DomainCheck_evidence"
          },
          "observations": {
            "$ref": "#/components/schemas/DomainCheck_observations"
          },
          "findings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainCheck_finding"
            }
          },
          "failure": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "stage",
              "code"
            ],
            "properties": {
              "stage": {
                "enum": [
                  "runtime",
                  "dns",
                  "address",
                  "connect",
                  "tls",
                  "certificate",
                  "timeout"
                ]
              },
              "code": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_/.-]{1,80}$",
                "description": "A short error code. Error messages are never recorded because they can quote certificate contents."
              }
            }
          },
          "reason": {
            "type": "string",
            "pattern": "^[a-z_]+$"
          },
          "eligible_domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "instruction": {
            "type": "string",
            "pattern": "\\S"
          },
          "self_check": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "description",
              "commands",
              "expect",
              "guide"
            ],
            "properties": {
              "description": {
                "type": "string"
              },
              "commands": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "expect": {
                "type": "string"
              },
              "guide": {
                "type": "string"
              }
            }
          },
          "registry_matches": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Registry claims whose provider name matches a label of the domain. Matched by name only: they are vendor claims, not a statement about this domain."
          },
          "registry_notice": {
            "type": "string"
          },
          "next_steps": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "text",
                "guide"
              ],
              "properties": {
                "text": {
                  "type": "string",
                  "pattern": "\\S"
                },
                "guide": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Id of a migration guide, or null."
                }
              }
            }
          },
          "agent_instructions": {
            "type": "string",
            "description": "Plain text the domain owner can paste into their own coding agent."
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "completed"
                }
              }
            },
            "then": {
              "required": [
                "evidence",
                "observations",
                "findings",
                "agent_instructions"
              ],
              "properties": {
                "outcome": {
                  "enum": [
                    "hybrid_negotiated",
                    "hybrid_not_negotiated"
                  ]
                },
                "network_activity": {
                  "const": "tls_handshake"
                },
                "domain": {
                  "type": "string"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "status": {
                  "const": "not_completed"
                }
              }
            },
            "then": {
              "required": [
                "evidence",
                "observations",
                "findings",
                "failure"
              ],
              "properties": {
                "outcome": {
                  "const": "inconclusive"
                },
                "network_activity": {
                  "enum": [
                    "none",
                    "dns_lookup",
                    "tls_handshake"
                  ]
                },
                "domain": {
                  "type": "string"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "status": {
                  "const": "not_eligible"
                }
              }
            },
            "then": {
              "required": [
                "reason",
                "eligible_domains",
                "instruction",
                "self_check",
                "registry_matches"
              ],
              "properties": {
                "outcome": {
                  "const": null
                },
                "network_activity": {
                  "const": "none"
                },
                "domain": {
                  "type": "string"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "status": {
                  "const": "invalid_input"
                }
              }
            },
            "then": {
              "required": [
                "reason",
                "instruction"
              ],
              "properties": {
                "outcome": {
                  "const": null
                },
                "network_activity": {
                  "const": "none"
                },
                "domain": {
                  "const": null
                }
              }
            }
          }
        ]
      },
      "DomainCheck_evidence": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "observed_at",
          "method",
          "scope",
          "limits"
        ],
        "properties": {
          "kind": {
            "const": "observation"
          },
          "observed_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
          },
          "method": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "description",
              "port",
              "offered_groups",
              "key_shares_sent",
              "group_identification",
              "certificate_validation",
              "application_data_sent",
              "client"
            ],
            "properties": {
              "id": {
                "const": "tls-handshake-hybrid-offer/v1"
              },
              "description": {
                "type": "string"
              },
              "port": {
                "const": 443
              },
              "offered_groups": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "key_shares_sent": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "group_identification": {
                "type": "string"
              },
              "certificate_validation": {
                "type": "string"
              },
              "application_data_sent": {
                "const": false
              },
              "client": {
                "type": "string"
              }
            }
          },
          "scope": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "hostname",
              "port",
              "address_family",
              "statement"
            ],
            "properties": {
              "hostname": {
                "type": "string"
              },
              "port": {
                "const": 443
              },
              "address_family": {
                "enum": [
                  "IPv4",
                  "IPv6",
                  null
                ]
              },
              "statement": {
                "type": "string"
              }
            }
          },
          "limits": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "DomainCheck_observations": {
        "type": "object",
        "additionalProperties": false,
        "description": "Raw observed values. Every value is null when the handshake did not complete: unknown stays blank.",
        "required": [
          "certificate_validated",
          "tls_version",
          "cipher_suite",
          "key_exchange_group",
          "key_exchange_kind",
          "group_identified_by",
          "leaf_signature_algorithm",
          "leaf_public_key"
        ],
        "properties": {
          "certificate_validated": {
            "enum": [
              true,
              null
            ]
          },
          "tls_version": {
            "enum": [
              "TLSv1.3",
              "TLSv1.2",
              null
            ]
          },
          "cipher_suite": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Za-z0-9 ._+-]{1,64}$",
            "description": "A short plain label from the TLS library, or null when unknown."
          },
          "key_exchange_group": {
            "type": [
              "string",
              "null"
            ]
          },
          "key_exchange_kind": {
            "enum": [
              "hybrid_pq",
              "classical",
              null
            ]
          },
          "group_identified_by": {
            "enum": [
              "server_hello",
              "tls_library",
              null
            ],
            "description": "server_hello: TLS 1.3 named group read from the ServerHello of the same validated connection. tls_library: named by the TLS library (TLS 1.2, or TLS 1.3 when no ServerHello read is available). null: not identified, so the group and kind are null. Inference by elimination is never used."
          },
          "leaf_signature_algorithm": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Za-z0-9 ._+-]{1,64}$",
            "description": "A short plain label from the TLS library, or null when unknown."
          },
          "leaf_public_key": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Za-z0-9 ._+-]{1,64}$",
            "description": "A short plain label from the TLS library, or null when unknown."
          }
        }
      },
      "DomainCheck_finding": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "result",
          "detail"
        ],
        "properties": {
          "id": {
            "enum": [
              "tls13",
              "hybrid_key_exchange",
              "pq_certificate_signature",
              "origin_connection",
              "internal_systems"
            ]
          },
          "title": {
            "type": "string"
          },
          "result": {
            "enum": [
              "observed",
              "not_observed",
              "unknown",
              "not_assessed"
            ],
            "description": "observed / not_observed: seen or not seen in this handshake. unknown: the check did not complete. not_assessed: outside what this method can see."
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "Guide": {
        "title": "Migration guide (qri.guide/v1)",
        "description": "One actionable guide: prerequisites, steps with commands, a verification test, a rollback, limits and primary sources. A guide states whether it was run in a lab here or only drafted from documentation.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema",
          "id",
          "title",
          "summary",
          "applies_to",
          "last_reviewed",
          "validation",
          "prerequisites",
          "steps",
          "verify",
          "rollback",
          "limits",
          "sources"
        ],
        "properties": {
          "schema": {
            "const": "qri.guide/v1"
          },
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "maxLength": 60
          },
          "title": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 120
          },
          "summary": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 400
          },
          "applies_to": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "pattern": "\\S"
            },
            "description": "Software and versions the guide covers."
          },
          "last_reviewed": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "validation": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "status",
              "note"
            ],
            "properties": {
              "status": {
                "enum": [
                  "lab_validated",
                  "documentation_only"
                ],
                "description": "lab_validated: the commands were run here and behaved as described. documentation_only: drafted from the cited primary sources and not run here."
              },
              "note": {
                "type": "string",
                "pattern": "\\S",
                "description": "What exactly was run and on which versions, or why it was not run."
              }
            }
          },
          "prerequisites": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "\\S"
            }
          },
          "steps": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/Guide_step"
            }
          },
          "verify": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/Guide_step"
            },
            "description": "How to confirm the change worked. Each item should say what output to expect."
          },
          "rollback": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/Guide_step"
            }
          },
          "limits": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "pattern": "\\S"
            },
            "description": "What following this guide does not achieve or prove."
          },
          "sources": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title",
                "url",
                "checked_at"
              ],
              "properties": {
                "title": {
                  "type": "string",
                  "pattern": "\\S"
                },
                "url": {
                  "type": "string",
                  "pattern": "^https://"
                },
                "checked_at": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                }
              }
            }
          }
        }
      },
      "Guide_step": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "detail"
        ],
        "properties": {
          "title": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 120
          },
          "detail": {
            "type": "string",
            "pattern": "\\S"
          },
          "commands": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "\\S"
            },
            "description": "Shell commands or configuration lines, one per item, shown verbatim."
          },
          "expect": {
            "type": "string",
            "pattern": "\\S",
            "description": "What you should see if the step worked."
          }
        }
      },
      "CorrectionSubmission": {
        "title": "Correction or evidence submission (qri.correction/v1)",
        "description": "A proposed new or changed registry record. It carries a primary source and no personal data. A submission is reviewed by a person who re-reads the source; only that reviewer sets checked_at.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema",
          "type",
          "provider",
          "product",
          "proposed_status",
          "claim",
          "source_url",
          "submitter_relationship"
        ],
        "properties": {
          "schema": {
            "const": "qri.correction/v1"
          },
          "type": {
            "enum": [
              "new_record",
              "correction",
              "source_update",
              "removal_request"
            ],
            "description": "new_record: provider + product not yet in the registry. correction: the registry misstates the source. source_update: the source changed or moved. removal_request: the record should be withdrawn."
          },
          "provider": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 120
          },
          "product": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 200
          },
          "category": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 80
          },
          "proposed_status": {
            "enum": [
              "vendor_documented",
              "announced",
              "unknown"
            ]
          },
          "claim": {
            "type": "string",
            "pattern": "\\S",
            "maxLength": 600,
            "description": "What the source says, in its own scope: product, version, configuration, default or opt-in. For unknown: the open question."
          },
          "source_url": {
            "type": "string",
            "pattern": "^https://",
            "maxLength": 2000,
            "description": "Public primary source. No login-only pages, no private documents."
          },
          "submitter_relationship": {
            "enum": [
              "vendor",
              "customer",
              "researcher",
              "other"
            ],
            "description": "Your relationship to the provider. Disclosed with the submission; it does not change the review."
          },
          "notes": {
            "type": "string",
            "maxLength": 1000,
            "description": "Optional context for the reviewer. Do not include names, email addresses, phone numbers or secrets."
          }
        }
      },
      "Claim": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "claim_kind",
          "id",
          "provider_slug",
          "provider",
          "product",
          "category",
          "status",
          "claim",
          "source_url",
          "checked_at"
        ],
        "properties": {
          "kind": {
            "const": "claim"
          },
          "claim_kind": {
            "enum": [
              "source_claim",
              "open_question"
            ]
          },
          "id": {
            "type": "string"
          },
          "provider_slug": {
            "type": "string"
          },
          "provider": {
            "type": "string",
            "pattern": "\\S",
            "description": "Vendor or project name."
          },
          "product": {
            "type": "string",
            "pattern": "\\S",
            "description": "The exact product, service or connection path the record covers. The record says nothing about the provider's other products."
          },
          "category": {
            "type": "string",
            "pattern": "\\S"
          },
          "status": {
            "enum": [
              "vendor_documented",
              "announced",
              "unknown"
            ],
            "description": "vendor_documented: the vendor's own documentation states the capability. announced: the vendor has announced it; it is not documented as available. unknown: no primary source establishes it, which is neither a pass nor a finding that support is absent."
          },
          "claim": {
            "type": "string",
            "pattern": "\\S",
            "description": "For vendor_documented and announced: what the source says, with its scope. For unknown: the open question."
          },
          "source_url": {
            "type": "string",
            "pattern": "^https://",
            "description": "The primary source that was read."
          },
          "checked_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Calendar date in America/New_York on which the source was last actually read (YYYY-MM-DD). Measurement times are separate UTC instants."
          }
        }
      },
      "ProviderSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "provider",
          "provider_slug",
          "categories",
          "statuses",
          "latest_checked_at",
          "records"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "provider_slug": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "type": "object",
            "propertyNames": {
              "enum": [
                "vendor_documented",
                "announced",
                "unknown"
              ]
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0
            }
          },
          "latest_checked_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Calendar date in America/New_York on which the source was last actually read (YYYY-MM-DD). Measurement times are separate UTC instants."
          },
          "records": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "Provider": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "provider",
          "provider_slug",
          "categories",
          "statuses",
          "latest_checked_at",
          "records"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "provider_slug": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "type": "object",
            "propertyNames": {
              "enum": [
                "vendor_documented",
                "announced",
                "unknown"
              ]
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0
            }
          },
          "latest_checked_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Calendar date in America/New_York on which the source was last actually read (YYYY-MM-DD). Measurement times are separate UTC instants."
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Claim"
            }
          }
        }
      },
      "ProviderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "total",
          "limit",
          "offset",
          "results",
          "facets"
        ],
        "properties": {
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderSummary"
            }
          },
          "facets": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "categories",
              "statuses"
            ],
            "properties": {
              "categories": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "count"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0
                    }
                  }
                }
              },
              "statuses": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "vendor_documented",
                  "announced",
                  "unknown"
                ],
                "properties": {
                  "vendor_documented": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "announced": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "unknown": {
                    "type": "integer",
                    "minimum": 0
                  }
                }
              }
            }
          }
        }
      },
      "SourceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "product",
          "provider",
          "total",
          "results"
        ],
        "properties": {
          "product": {
            "type": "string"
          },
          "provider": {
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Claim"
            }
          }
        }
      },
      "GuideSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "summary",
          "applies_to",
          "last_reviewed",
          "validation"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "applies_to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "last_reviewed": {
            "type": "string"
          },
          "validation": {
            "enum": [
              "lab_validated",
              "documentation_only"
            ]
          }
        }
      },
      "GuideList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "total",
          "limit",
          "offset",
          "results"
        ],
        "properties": {
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GuideSummary"
            }
          }
        }
      },
      "QuestionnaireRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "provider"
        ],
        "properties": {
          "provider": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "product": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "Questionnaire": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema",
          "provider",
          "product",
          "generated_at",
          "purpose",
          "sections",
          "how_to_answer",
          "text"
        ],
        "properties": {
          "schema": {
            "const": "qri.vendor-questionnaire/v1"
          },
          "provider": {
            "type": "string"
          },
          "product": {
            "type": [
              "string",
              "null"
            ]
          },
          "generated_at": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title",
                "questions"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "questions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "text",
                      "answer_format",
                      "why"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      },
                      "answer_format": {
                        "type": "string"
                      },
                      "why": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "how_to_answer": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "text": {
            "type": "string"
          }
        }
      },
      "CorrectionResult": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "valid",
              "errors"
            ],
            "properties": {
              "valid": {
                "const": false
              },
              "errors": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "field",
                    "message"
                  ],
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "valid",
              "submission",
              "record",
              "review_steps",
              "notice"
            ],
            "properties": {
              "valid": {
                "const": true
              },
              "submission": {
                "$ref": "#/components/schemas/CorrectionSubmission"
              },
              "record": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "provider",
                  "product",
                  "category",
                  "status",
                  "claim",
                  "source_url",
                  "checked_at"
                ],
                "properties": {
                  "provider": {
                    "type": "string"
                  },
                  "product": {
                    "type": "string"
                  },
                  "category": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "enum": [
                      "vendor_documented",
                      "announced",
                      "unknown"
                    ]
                  },
                  "claim": {
                    "type": "string"
                  },
                  "source_url": {
                    "type": "string"
                  },
                  "checked_at": {
                    "type": "null"
                  }
                }
              },
              "review_steps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notice": {
                "type": "string"
              }
            }
          }
        ]
      },
      "MigrationPlanRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "labels"
        ],
        "properties": {
          "labels": {
            "type": "array",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "max_age_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3650,
            "default": 90
          },
          "as_of": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Defaults to today (UTC)."
          }
        }
      },
      "MigrationPlan": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "notice",
          "as_of",
          "max_age_days",
          "summary",
          "items",
          "reverification_plan"
        ],
        "properties": {
          "notice": {
            "type": "string"
          },
          "as_of": {
            "type": "string"
          },
          "max_age_days": {
            "type": "integer",
            "minimum": 0
          },
          "summary": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "items",
              "vendor_documented",
              "announced",
              "unknown",
              "ambiguous",
              "unmatched",
              "scope_unconfirmed"
            ],
            "properties": {
              "items": {
                "type": "integer",
                "minimum": 0
              },
              "vendor_documented": {
                "type": "integer",
                "minimum": 0
              },
              "announced": {
                "type": "integer",
                "minimum": 0
              },
              "unknown": {
                "type": "integer",
                "minimum": 0
              },
              "ambiguous": {
                "type": "integer",
                "minimum": 0
              },
              "unmatched": {
                "type": "integer",
                "minimum": 0
              },
              "scope_unconfirmed": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "match",
                "status",
                "review"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "match": {
                  "enum": [
                    "matched",
                    "ambiguous",
                    "unmatched"
                  ]
                },
                "status": {
                  "enum": [
                    "vendor_documented",
                    "announced",
                    "unknown",
                    null
                  ]
                },
                "matched_by": {
                  "enum": [
                    "provider_and_product",
                    "product",
                    "provider"
                  ]
                },
                "scope_confirmed": {
                  "type": "boolean"
                },
                "evidence": {
                  "type": "object"
                },
                "candidates": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "reverification": {
                  "type": "object"
                },
                "review": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "steps",
                    "questions"
                  ],
                  "properties": {
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "reverification_plan": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "actions",
              "schedule",
              "unresolved"
            ],
            "properties": {
              "actions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "schedule": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "review_by",
                    "freshness"
                  ],
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "review_by": {
                      "type": "string"
                    },
                    "freshness": {
                      "enum": [
                        "current",
                        "due",
                        "future_dated"
                      ]
                    }
                  }
                }
              },
              "unresolved": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Mark": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema",
          "criterion",
          "criterion_status",
          "host",
          "state",
          "status_group",
          "positive",
          "label",
          "demo",
          "checked_at",
          "expires_at",
          "negotiated_group",
          "tls_version",
          "group_identified_by",
          "enrollment",
          "installation",
          "report_id",
          "scope",
          "generated_at",
          "verify_url",
          "badge_url"
        ],
        "properties": {
          "schema": {
            "const": "qri.trust-mark/v1"
          },
          "criterion": {
            "type": [
              "string",
              "null"
            ]
          },
          "criterion_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "host": {
            "type": "string"
          },
          "state": {
            "enum": [
              "observed",
              "not_observed",
              "inconclusive",
              "reassessment",
              "stale",
              "revoked",
              "demo",
              "unavailable",
              "no_record"
            ]
          },
          "status_group": {
            "enum": [
              "current",
              "expired",
              "withdrawn",
              "other"
            ]
          },
          "positive": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "demo": {
            "type": "boolean"
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "negotiated_group": {
            "type": [
              "string",
              "null"
            ]
          },
          "tls_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "group_identified_by": {
            "enum": [
              "server_hello",
              "tls_library",
              "openssl_named_group",
              null
            ]
          },
          "enrollment": {
            "enum": [
              "none",
              "owner_consent"
            ]
          },
          "installation": {
            "const": "not_verified"
          },
          "report_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "scope": {
            "type": "string"
          },
          "generated_at": {
            "type": "string"
          },
          "verify_url": {
            "type": "string"
          },
          "badge_url": {
            "type": "string"
          }
        }
      },
      "MarkList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "total",
          "results"
        ],
        "properties": {
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Mark"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "enum": [
                  "invalid_argument",
                  "invalid_json",
                  "unsupported_media_type",
                  "payload_too_large",
                  "not_found",
                  "method_not_allowed",
                  "internal_error"
                ]
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "CheckRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "description": "A bare domain name."
          }
        }
      }
    }
  }
}