# 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.

- Kind: record
- Record key: tid
- Authority: climbing-tanager-323194.lexicon.garden
- Lexicon: 1
- Published by [tynanpurdy.com](https://lexicon.garden/identity/did:plc:6ayddqghxhciedbaofoxkcbs), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.climbing-tanager-323194.reader)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.climbing-tanager-323194.reader/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:6ayddqghxhciedbaofoxkcbs/garden.lexicon.climbing-tanager-323194.reader/analytics)

## Record (`garden.lexicon.climbing-tanager-323194.reader`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `description` (string)
  - Constraints: maxLength: 2000
- `items` (string): 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.
  - Constraints: maxLength: 65536
- `paths` (array, required): Globs over export paths: '*' matches within one path segment, '**' across segments.
  - Constraints: maxLength: 64
  - `items` (string)
- `platformName` (string): Human name of the service, e.g. 'Instagram'.
  - Constraints: maxLength: 128
- `schema` (string · at-uri, required): The dev.panproto.schema.schema the items conform to.
- `sensitive` (array): 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.
  - Constraints: maxLength: 128
  - `items` (ref)
    - Reference: `#sensitivePath`
- `sourceDomain` (string, required): The service whose exports this reads, as its archive Space key (e.g. 'instagram.com').
  - Constraints: maxLength: 253
- `textEncoding` (string): 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'.
  - Constraints: knownValues: utf-8 | utf-8-as-latin-1

## #sensitivePath (`garden.lexicon.climbing-tanager-323194.reader#sensitivePath`)

Type: object

### Properties

- `path` (string, required): Glob over export paths ('*' within a segment, '**' across).
  - Constraints: maxLength: 512
- `reason` (string): What it holds, e.g. 'direct messages'.
  - Constraints: maxLength: 256

## Schema

```json
{
  "$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
}
```
