tech.transparencia.document.mxdof.note

Gazette-specific metadata for a single DOF nota. Strong-references the universal document.item record that carries title, retrieval, publisher, and dates. This sidecar only carries fields that wouldn't make sense outside the DOF context (SIDOF codes, matutina/vespertina edition, dependencia/organismo hierarchy, page/order within the diario PDF).

Details · record, key any
Kindrecord
Record keyany
Authoritymxdof.document.transparencia.tech
Indexed
cid bafyreibo6j463ns466d4darqxbc6haeejt2frfhuyjozmn5ten5f2da5la

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Gazette-specific metadata for a single DOF nota. Strong-references the universal document.item record that carries title, retrieval, publisher, and dates. This sidecar only carries fields that wouldn't make sense outside the DOF context (SIDOF codes, matutina/vespertina edition, dependencia/organismo hierarchy, page/order within the diario PDF).",
      "key": "any",
      "record": {
        "properties": {
          "authorityLevel": {
            "description": "Normalized authority tier derived from dependencia/organismo. Useful for analytics without replacing the raw text fields. Open set; pipelines should add new tiers as edge cases appear.",
            "knownValues": [
              "federal_executive",
              "federal_judicial",
              "federal_legislative",
              "autonomous_constitutional_body",
              "state_judicial",
              "state_executive",
              "state_legislative",
              "municipal",
              "state_owned_enterprise",
              "decentralized_body",
              "procurement_section",
              "judicial_notices_section",
              "other"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "codDiario": {
            "description": "SIDOF identifier for the parent diario (gazette edition). Groups all notas published together in the same daily edition (matutina, vespertina, or extraordinaria).",
            "minimum": 1,
            "type": "integer"
          },
          "codNota": {
            "description": "Primary DOF nota identifier from SIDOF. UNIQUE across all DOF notas. This is the key external identifier for deduplication and for constructing public DOF URLs.",
            "minimum": 1,
            "type": "integer"
          },
          "codSeccion": {
            "description": "Section code within the diario as published by SIDOF (e.g., 'PRIMERA', 'SEGUNDA', 'UNICA', 'AVISOS JUDICIALES', 'LICITACIONES'). Free-form; conventions vary by edition.",
            "maxGraphemes": 64,
            "maxLength": 128,
            "type": "string"
          },
          "contentTextAvailable": {
            "description": "Whether normalized plain text was successfully captured by the ingestion pipeline (separate from whether the source published HTML/PDF; reflects what we actually extracted).",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When this AT Protocol record was created.",
            "format": "datetime",
            "type": "string"
          },
          "dependencia": {
            "description": "Top-level authority label from SIDOF (nombreCodOrgaUno). Examples: 'PODER EJECUTIVO', 'ORGANISMOS AUTONOMOS', 'AVISOS JUDICIALES Y GENERALES', 'PROCURACIONES'. Kept verbatim from source for provenance; the document.item.issuingBodies array carries the structured form.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "type": "string"
          },
          "documentClass": {
            "description": "Broad publication family. Optional at the raw-record level because for many notas it can only be determined from content (and is then mirrored in tech.transparencia.document.mxdof.note.enrichment.documentClass).",
            "knownValues": [
              "normative",
              "judicial",
              "procurement",
              "intergovernmental",
              "planning",
              "administrative",
              "informational",
              "other"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "edition": {
            "description": "Edition label for the parent diario. Lowercased token form (the SIDOF API returns capitalized labels; pipelines should normalize on write).",
            "knownValues": [
              "matutina",
              "vespertina",
              "extraordinaria"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "hasDoc": {
            "description": "Whether SIDOF reports an attached document artifact beyond HTML/PDF (existeDoc = 'S').",
            "type": "boolean"
          },
          "hasHtml": {
            "description": "Whether SIDOF reports an HTML content page for this nota (existeHtml = 'S').",
            "type": "boolean"
          },
          "hasImage": {
            "description": "Whether SIDOF reports image attachments (existeImagen = 'S').",
            "type": "boolean"
          },
          "hasPdf": {
            "description": "Whether SIDOF reports PDF availability for the nota or its enclosing diario (existePdf = 'S').",
            "type": "boolean"
          },
          "issuingAuthority": {
            "description": "Normalized human-readable issuer name when the pipeline produces one (e.g., 'Secretaría de Salud' instead of raw 'SECRETARIA DE SALUD'). Optional — many notas only expose dependencia-level information.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "type": "string"
          },
          "item": {
            "description": "Strong reference to the tech.transparencia.document.item record that holds the universal document metadata (title, retrieval URLs, publisher, dates, jurisdiction).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "order": {
            "description": "Ordering value from the SIDOF feed used to preserve sequence inside the diario/section. Encoded as a decimal string because AT Protocol does not support floats.",
            "maxLength": 32,
            "type": "string"
          },
          "organismo": {
            "description": "More specific issuing body from SIDOF (codOrgaDos). Examples: 'SECRETARIA DE ENERGIA', 'INSTITUTO NACIONAL ELECTORAL', 'SUPREMA CORTE DE JUSTICIA DE LA NACION'.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "type": "string"
          },
          "page": {
            "description": "First printed page number within the parent diario PDF when available.",
            "minimum": 1,
            "type": "integer"
          },
          "pageUntil": {
            "description": "Last printed page number when the nota spans multiple pages.",
            "minimum": 1,
            "type": "integer"
          },
          "pdfStoragePath": {
            "description": "Internal storage path for the diario PDF when retained in object storage (e.g., 'YYYY/MM/DD/diario_{codDiario}.pdf'). Not a public URL — for analytics provenance only.",
            "maxGraphemes": 256,
            "maxLength": 1024,
            "type": "string"
          },
          "rawImportedAt": {
            "description": "When the raw SIDOF payload was first ingested by the pipeline.",
            "format": "datetime",
            "type": "string"
          },
          "tipoNota": {
            "description": "Raw tipo_nota from the SIDOF feed when available. Common examples include 'AVISO', but many high-signal normative records arrive with null tipo_nota (the actual document class is then derived by the enrichment layer's tipoActo field).",
            "maxGraphemes": 64,
            "maxLength": 128,
            "type": "string"
          },
          "updatedAt": {
            "description": "When this record was last materially updated.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "item",
          "codNota",
          "codDiario",
          "edition",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "DOF-specific sidecar for a Diario Oficial de la Federación (México) nota. Captures gazette-specific identifiers, edition, section, and authority hierarchy that don't fit the universal tech.transparencia.document.item record. Each nota in the DOF SIDOF feed maps to one record of this lexicon plus one underlying document.item record.",
  "id": "tech.transparencia.document.mxdof.note",
  "lexicon": 1
}