Core document metadata for official and institutional documents. Stores identity, provenance, and public context, but not full text, sections, chunks, AI analysis, or ingestion pipeline state.
tid
Timestamp-based ID
Properties
country
string
Optional
Primary country connected to the document, as an ISO 3166-1 alpha-2 code (e.g., 'MX', 'BR', 'US'). Omit for international documents.
maxLength: 2 bytescreatedAt
string
datetime
Required
When this AT Protocol record was created.
description
string
Optional
Short source-provided description or human-readable abstract. AI summaries should be stored in enrichment records.
maxLength: 10000 bytesmaxGraphemes: 2000 graphemesdocumentType
string
Required
Machine-readable document category. Open set; known values cover common official and institutional documents.
maxLength: 128 bytesofficial-publication, official-gazette-issue, official-gazette-entry, law, decree, agreement, notice, regulation, standard, report, audit-report, budget-document, contract, procurement-document, court-ruling, legislative-bill, legislative-opinion, treaty, submission, technical-paper, environmental-impact-document, education-policy-document, dataset-documentation, meeting-minutes, resolution, otherdomains
array
of
string
Optional
Broad public-interest domains covered by the document. Open set; consumers should tolerate unknown values.
maxLength: 20 itemseffectiveAt
string
datetime
Optional
When the document's legal or administrative effects begin, if applicable and explicitly known.
identifiers
array
of
ref
#identifier
Optional
External identifiers such as DOF IDs, UNFCCC symbols, file numbers, docket numbers, ISBNs, or local archival IDs. For content hashes use retrieval.sha256; for URLs use retrieval.url.
maxLength: 50 itemsissuedAt
string
datetime
Optional
When the issuing authority signed, issued, adopted, or approved the document, if different from publication time.
issuingBodies
array
of
ref
tech.transparencia.defs#organization
Optional
Organizations, public bodies, institutions, or authorities responsible for issuing, publishing, filing, or adopting the document. Uses the shared tech.transparencia.defs#organization type. Conventional role values include 'publisher', 'issuer', 'author', 'adopter', 'filer', 'regulator', 'court', 'legislature', 'repository'.
maxLength: 20 itemsjurisdiction
string
Optional
Legal or administrative jurisdiction covered by the document (e.g., 'federal', 'state', 'municipal', 'international').
maxLength: 256 bytesmaxGraphemes: 64 graphemeslocal, municipal, state, federal, national, regional, international, supranational, unknownlanguage
string
language
Optional
Primary language of the document content (BCP-47, e.g., 'es-MX', 'en', 'pt-BR').
publishedAt
string
datetime
Required
When the document was published by the source. Use midnight UTC when only a calendar date is available.
retrieval
ref
#retrieval
Required
Per-document retrieval metadata: canonical URLs, MIME type, checksums, file size, and access status of the specific retrieved representation.
source
ref
com.atproto.repo.strongRef
Required
Strong reference to the tech.transparencia.document.source record for the publisher or repository (e.g., DOF, UNFCCC). Identifies which source this document came from.
subtitle
string
Optional
Optional subtitle, section heading, or secondary title.
maxLength: 4096 bytesmaxGraphemes: 1024 graphemestitle
string
Required
Official or source-provided title of the document.
maxLength: 4096 bytesmaxGraphemes: 1024 graphemestopics
array
of
string
Optional
Free-form topics, tags, or source categories attached to the document.
maxLength: 30 itemsupdatedAt
string
datetime
Optional
When this record was last materially updated.
View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"title",
"documentType",
"source",
"retrieval",
"publishedAt",
"createdAt"
],
"properties": {
"title": {
"type": "string",
"maxLength": 4096,
"description": "Official or source-provided title of the document.",
"maxGraphemes": 1024
},
"source": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "Strong reference to the tech.transparencia.document.source record for the publisher or repository (e.g., DOF, UNFCCC). Identifies which source this document came from."
},
"topics": {
"type": "array",
"items": {
"type": "string",
"maxLength": 512,
"maxGraphemes": 128
},
"maxLength": 30,
"description": "Free-form topics, tags, or source categories attached to the document."
},
"country": {
"type": "string",
"maxLength": 2,
"description": "Primary country connected to the document, as an ISO 3166-1 alpha-2 code (e.g., 'MX', 'BR', 'US'). Omit for international documents."
},
"domains": {
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"knownValues": [
"government",
"politics",
"law",
"justice",
"environment",
"climate",
"education",
"health",
"budget",
"procurement",
"economy",
"finance",
"labor",
"energy",
"infrastructure",
"security",
"science-technology",
"society",
"human-rights",
"other"
],
"maxGraphemes": 64
},
"maxLength": 20,
"description": "Broad public-interest domains covered by the document. Open set; consumers should tolerate unknown values."
},
"issuedAt": {
"type": "string",
"format": "datetime",
"description": "When the issuing authority signed, issued, adopted, or approved the document, if different from publication time."
},
"language": {
"type": "string",
"format": "language",
"description": "Primary language of the document content (BCP-47, e.g., 'es-MX', 'en', 'pt-BR')."
},
"subtitle": {
"type": "string",
"maxLength": 4096,
"description": "Optional subtitle, section heading, or secondary title.",
"maxGraphemes": 1024
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When this AT Protocol record was created."
},
"retrieval": {
"ref": "#retrieval",
"type": "ref",
"description": "Per-document retrieval metadata: canonical URLs, MIME type, checksums, file size, and access status of the specific retrieved representation."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "When this record was last materially updated."
},
"description": {
"type": "string",
"maxLength": 10000,
"description": "Short source-provided description or human-readable abstract. AI summaries should be stored in enrichment records.",
"maxGraphemes": 2000
},
"effectiveAt": {
"type": "string",
"format": "datetime",
"description": "When the document's legal or administrative effects begin, if applicable and explicitly known."
},
"identifiers": {
"type": "array",
"items": {
"ref": "#identifier",
"type": "ref"
},
"maxLength": 50,
"description": "External identifiers such as DOF IDs, UNFCCC symbols, file numbers, docket numbers, ISBNs, or local archival IDs. For content hashes use retrieval.sha256; for URLs use retrieval.url."
},
"publishedAt": {
"type": "string",
"format": "datetime",
"description": "When the document was published by the source. Use midnight UTC when only a calendar date is available."
},
"documentType": {
"type": "string",
"maxLength": 128,
"description": "Machine-readable document category. Open set; known values cover common official and institutional documents.",
"knownValues": [
"official-publication",
"official-gazette-issue",
"official-gazette-entry",
"law",
"decree",
"agreement",
"notice",
"regulation",
"standard",
"report",
"audit-report",
"budget-document",
"contract",
"procurement-document",
"court-ruling",
"legislative-bill",
"legislative-opinion",
"treaty",
"submission",
"technical-paper",
"environmental-impact-document",
"education-policy-document",
"dataset-documentation",
"meeting-minutes",
"resolution",
"other"
]
},
"jurisdiction": {
"type": "string",
"maxLength": 256,
"description": "Legal or administrative jurisdiction covered by the document (e.g., 'federal', 'state', 'municipal', 'international').",
"knownValues": [
"local",
"municipal",
"state",
"federal",
"national",
"regional",
"international",
"supranational",
"unknown"
],
"maxGraphemes": 64
},
"issuingBodies": {
"type": "array",
"items": {
"ref": "tech.transparencia.defs#organization",
"type": "ref"
},
"maxLength": 20,
"description": "Organizations, public bodies, institutions, or authorities responsible for issuing, publishing, filing, or adopting the document. Uses the shared tech.transparencia.defs#organization type. Conventional role values include 'publisher', 'issuer', 'author', 'adopter', 'filer', 'regulator', 'court', 'legislature', 'repository'."
}
}
},
"description": "Core document metadata for official and institutional documents. Stores identity, provenance, and public context, but not full text, sections, chunks, AI analysis, or ingestion pipeline state."
}