garden.lexicon.climbing-tanager-323194.reader
How to read one service's export files as records of a published panproto source schema. Readers are what make an archive convertible without service-specific code: a reader says which archive paths hold the data, and optionally a panproto expression that turns one file's JSON into source items. Lenses (dev.panproto.schema.lens) whose sourceSchema equals this reader's schema then apply to those items.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | climbing-tanager-323194.lexicon.garden |
| Commit rev | 3n2vudvrtr42j |
| Indexed |
Checks
Validlarge-stringdefs.main.record.properties.itemsmaxLength is over 20 KB. Use a blob for content that large.unlimited-stringdefs.main.record.properties.paths.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.textEncodingNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "How to read one service's export files as records of a published panproto source schema. Readers are what make an archive convertible without service-specific code: a reader says which archive paths hold the data, and optionally a panproto expression that turns one file's JSON into source items. Lenses (dev.panproto.schema.lens) whose sourceSchema equals this reader's schema then apply to those items.",
"key": "tid",
"record": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"description": {
"maxLength": 2000,
"type": "string"
},
"items": {
"description": "A panproto expression (panproto-expr surface syntax). __value__ is the file's parsed JSON; the result is the list of source items. Absent: a JSON array file is its items; any other JSON value is one item.",
"maxLength": 65536,
"type": "string"
},
"paths": {
"description": "Globs over export paths: '*' matches within one path segment, '**' across segments.",
"items": {
"type": "string"
},
"maxLength": 64,
"type": "array"
},
"platformName": {
"description": "Human name of the service, e.g. 'Instagram'.",
"maxLength": 128,
"type": "string"
},
"schema": {
"description": "The dev.panproto.schema.schema the items conform to.",
"format": "at-uri",
"type": "string"
},
"sensitive": {
"description": "Export paths that hold private or other people's data (messages, logins, contacts…). Atomizer leaves them out of preservation by default; the person can opt back in.",
"items": {
"ref": "#sensitivePath",
"type": "ref"
},
"maxLength": 128,
"type": "array"
},
"sourceDomain": {
"description": "The service whose exports this reads, as its archive Space key (e.g. 'instagram.com').",
"maxLength": 253,
"type": "string"
},
"textEncoding": {
"description": "How the export encodes text. 'utf-8-as-latin-1': UTF-8 bytes written as Latin-1 code points (Meta's exports), repaired before `items` runs. Default 'utf-8'.",
"knownValues": [
"utf-8",
"utf-8-as-latin-1"
],
"type": "string"
}
},
"required": [
"sourceDomain",
"schema",
"paths",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"sensitivePath": {
"properties": {
"path": {
"description": "Glob over export paths ('*' within a segment, '**' across).",
"maxLength": 512,
"type": "string"
},
"reason": {
"description": "What it holds, e.g. 'direct messages'.",
"maxLength": 256,
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}
},
"id": "garden.lexicon.climbing-tanager-323194.reader",
"lexicon": 1
}