# world.ptah.log

> The world's history book. Accumulated narrative traced back to its sources. Rhetoric made attributable and permanent.

- Kind: record
- Record key: tid
- Authority: ptah.world
- Lexicon: 1
- Published by [ptah.world](https://lexicon.garden/identity/did:plc:l45z35sxxjuobp5q65a5vu22), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.log)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.log/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.log/analytics)

## Record (`world.ptah.log`)

Type: record · key tid

### Properties

- `canonicalStatus` (string): The canonical standing of this log
  - Constraints: knownValues: world.ptah.defs#canonicalStatusOfficial | world.ptah.defs#canonicalStatusCommunity | world.ptah.defs#canonicalStatusApocryphal
- `characters` (array): References to characters mentioned or involved in this log
  - `items` (string · at-uri)
- `content` (string): The narrative content of the log
  - Constraints: maxLength: 102400, maxGraphemes: 10000
- `coverImage` (blob): Cover image for this log entry
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg, image/webp
- `createdAt` (string · datetime, required): Timestamp when this log was created
- `creatorDID` (string · did, required): The permanent identity of the log entry's creator
- `humanAuthored` (boolean): Declaration by the author that this work was written by a human, not generated by AI
- `locationReference` (string · at-uri): Reference to the primary location of this log's narrative
- `logType` (string): The type of log entry
  - Constraints: knownValues: history | chronicle | essay | chapter | article | entry
- `media` (array): Media attachments for this log entry
  - `items` (ref)
    - Reference: `#mediaItem`
- `sourceReferences` (array): References to actions, events, or other logs that this log derives from
  - `items` (string · at-uri)
- `summary` (string): A brief summary of the log content
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `title` (string, required): The title of this log entry
  - Constraints: maxLength: 640, maxGraphemes: 64
- `worldReference` (string · at-uri, required): Reference to the world this log belongs to

## #mediaItem (`world.ptah.log#mediaItem`)

Type: object

A media attachment on a log entry

### Properties

- `alt` (string): Alt text for accessibility
  - Constraints: maxLength: 1000
- `blob` (blob, required)
  - Constraints: maxSize: 50000000, accept: image/png, image/jpeg, image/webp, audio/mpeg, audio/wav, video/mp4
- `caption` (string): Caption for the media
  - Constraints: maxLength: 500
- `duration` (integer): Duration in seconds for audio/video
- `mimeType` (string): The MIME type of the media
  - Constraints: maxLength: 128

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The world's history book. Accumulated narrative traced back to its sources. Rhetoric made attributable and permanent.",
      "key": "tid",
      "record": {
        "properties": {
          "canonicalStatus": {
            "description": "The canonical standing of this log",
            "knownValues": [
              "world.ptah.defs#canonicalStatusOfficial",
              "world.ptah.defs#canonicalStatusCommunity",
              "world.ptah.defs#canonicalStatusApocryphal"
            ],
            "type": "string"
          },
          "characters": {
            "description": "References to characters mentioned or involved in this log",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "content": {
            "description": "The narrative content of the log",
            "maxGraphemes": 10000,
            "maxLength": 102400,
            "type": "string"
          },
          "coverImage": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "Cover image for this log entry",
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "description": "Timestamp when this log was created",
            "format": "datetime",
            "type": "string"
          },
          "creatorDID": {
            "description": "The permanent identity of the log entry's creator",
            "format": "did",
            "type": "string"
          },
          "humanAuthored": {
            "description": "Declaration by the author that this work was written by a human, not generated by AI",
            "type": "boolean"
          },
          "locationReference": {
            "description": "Reference to the primary location of this log's narrative",
            "format": "at-uri",
            "type": "string"
          },
          "logType": {
            "description": "The type of log entry",
            "knownValues": [
              "history",
              "chronicle",
              "essay",
              "chapter",
              "article",
              "entry"
            ],
            "type": "string"
          },
          "media": {
            "description": "Media attachments for this log entry",
            "items": {
              "ref": "#mediaItem",
              "type": "ref"
            },
            "type": "array"
          },
          "sourceReferences": {
            "description": "References to actions, events, or other logs that this log derives from",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "summary": {
            "description": "A brief summary of the log content",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "title": {
            "description": "The title of this log entry",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "worldReference": {
            "description": "Reference to the world this log belongs to",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "title",
          "creatorDID",
          "worldReference",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mediaItem": {
      "description": "A media attachment on a log entry",
      "properties": {
        "alt": {
          "description": "Alt text for accessibility",
          "maxLength": 1000,
          "type": "string"
        },
        "blob": {
          "accept": [
            "image/png",
            "image/jpeg",
            "image/webp",
            "audio/mpeg",
            "audio/wav",
            "video/mp4"
          ],
          "maxSize": 50000000,
          "type": "blob"
        },
        "caption": {
          "description": "Caption for the media",
          "maxLength": 500,
          "type": "string"
        },
        "duration": {
          "description": "Duration in seconds for audio/video",
          "type": "integer"
        },
        "mimeType": {
          "description": "The MIME type of the media",
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    }
  },
  "id": "world.ptah.log",
  "lexicon": 1
}
```
