{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tickertrac-com/json-schema/tickertrac-com-record-entry-out-schema.json",
  "title": "RecordEntryOut",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tickertrac-com-openapi.json#/components/schemas/RecordEntryOut",
  "properties": {
    "moderation": {
      "anyOf": [
        {
          "$ref": "#/$defs/RecordModerationOut"
        },
        {
          "type": "null"
        }
      ]
    },
    "publicly_visible": {
      "type": "boolean",
      "title": "Publicly Visible",
      "default": false
    },
    "publication_status": {
      "type": "string",
      "enum": [
        "sealed",
        "withheld",
        "published"
      ],
      "title": "Publication Status",
      "default": "withheld"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "sequence_number": {
      "type": "integer",
      "title": "Sequence Number"
    },
    "kind": {
      "type": "string",
      "enum": [
        "thesis_version",
        "theme_version",
        "evidence_trail",
        "replay",
        "revision",
        "correction",
        "retraction",
        "review",
        "tracked_thesis"
      ],
      "title": "Kind"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "sealed",
        "open"
      ],
      "title": "Visibility"
    },
    "ticker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ticker"
    },
    "version_number": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version Number"
    },
    "payload_sha256": {
      "type": "string",
      "title": "Payload Sha256"
    },
    "entry_sha256": {
      "type": "string",
      "title": "Entry Sha256"
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time",
      "title": "Recorded At"
    },
    "opened_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Opened At"
    },
    "public_url": {
      "type": "string",
      "title": "Public Url"
    },
    "subject_entry_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subject Entry Id"
    },
    "as_of": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "As Of"
    },
    "subject_type": {
      "type": "string",
      "enum": [
        "company",
        "theme"
      ],
      "title": "Subject Type",
      "default": "company"
    },
    "shared_thesis_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shared Thesis Id"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "verdict": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "stands",
            "weakening",
            "superseded"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Verdict"
    },
    "watchlist_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Watchlist Id"
    },
    "tracked_disputes": {
      "items": {
        "$ref": "#/$defs/TrackedDisputeStatusOut"
      },
      "type": "array",
      "title": "Tracked Disputes"
    },
    "anchored": {
      "anyOf": [
        {
          "$ref": "#/$defs/RecordAnchorRefOut"
        },
        {
          "type": "null"
        }
      ]
    },
    "previous_entry_sha256": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Entry Sha256"
    },
    "signature": {
      "type": "string",
      "title": "Signature"
    },
    "signing_key_id": {
      "type": "string",
      "title": "Signing Key Id"
    },
    "canonical_payload": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Canonical Payload"
    }
  },
  "type": "object",
  "required": [
    "id",
    "sequence_number",
    "kind",
    "visibility",
    "ticker",
    "version_number",
    "payload_sha256",
    "entry_sha256",
    "recorded_at",
    "opened_at",
    "public_url",
    "previous_entry_sha256",
    "signature",
    "signing_key_id",
    "canonical_payload"
  ],
  "$defs": {
    "RecordAnchorRefOut": {
      "properties": {
        "anchor_id": {
          "type": "integer",
          "title": "Anchor Id"
        },
        "token_time": {
          "type": "string",
          "format": "date-time",
          "title": "Token Time"
        },
        "tsa_url": {
          "type": "string",
          "title": "Tsa Url"
        },
        "anchor_url": {
          "type": "string",
          "title": "Anchor Url"
        }
      },
      "type": "object",
      "required": [
        "anchor_id",
        "token_time",
        "tsa_url",
        "anchor_url"
      ],
      "title": "RecordAnchorRefOut"
    },
    "RecordModerationOut": {
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "approved",
            "rejected",
            "needs_review"
          ],
          "title": "Status"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "content_sha256": {
          "type": "string",
          "title": "Content Sha256"
        },
        "can_appeal": {
          "type": "boolean",
          "title": "Can Appeal",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "status",
        "reason",
        "content_sha256"
      ],
      "title": "RecordModerationOut"
    },
    "TrackedDisputeStatusOut": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "disputed",
            "resolved"
          ],
          "title": "Status"
        },
        "target_entry_id": {
          "type": "string",
          "format": "uuid",
          "title": "Target Entry Id"
        },
        "target_entry_sha256": {
          "type": "string",
          "title": "Target Entry Sha256"
        },
        "writer_verified": {
          "type": "boolean",
          "title": "Writer Verified"
        },
        "accepted_at": {
          "type": "string",
          "format": "date-time",
          "title": "Accepted At"
        },
        "resolved_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolved At"
        },
        "resolution_entry_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolution Entry Id"
        }
      },
      "type": "object",
      "required": [
        "status",
        "target_entry_id",
        "target_entry_sha256",
        "writer_verified",
        "accepted_at"
      ],
      "title": "TrackedDisputeStatusOut"
    }
  }
}