{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qorpiq-com/json-schema/qorpiq-com-freshness-response-schema.json",
  "title": "FreshnessResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qorpiq-com-openapi.yml#/components/schemas/FreshnessResponse",
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string"
    },
    "check": {
      "type": "string"
    },
    "cin": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "on_record": {
      "type": "boolean"
    },
    "sections": {
      "type": "object",
      "properties": {
        "register": {
          "type": "object",
          "properties": {
            "fetched_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "refresh": {
              "type": "string"
            }
          }
        },
        "financial_statements": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "annual_return": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "allotments": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "director_changes": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "charge_history": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "disclosures": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "filings": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "integer"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          },
          "description": "Rows held and when they were last written. Each section also carries its newest date.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "pipeline": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "never_read",
            "queued",
            "sent",
            "done",
            "failed"
          ]
        },
        "attempts": {
          "type": "integer"
        },
        "last_read_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "forms_on_record": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "recently_requested": {
      "type": "object",
      "properties": {
        "facts": {
          "type": "boolean"
        },
        "history": {
          "type": "boolean"
        },
        "diligence": {
          "type": "boolean"
        }
      },
      "description": "A read of this kind was requested in the last day (history: the last month); asking again before then does not start another."
    },
    "timestamp": {
      "type": "integer"
    }
  }
}