# world.ptah.action

> Published by [ptah.world](https://lexicon.garden/identity/did:plc:l45z35sxxjuobp5q65a5vu22)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.action)
- [Documentation](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.action/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.action/examples)

## Definitions

### `world.ptah.action`

**Type**: `record`

The heartbeat of a world. Something happened. Attributed to a character, timestamped, permanent.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `string` | No | The content of the action — what happened |
| `actorDID` | `string` (did) | Yes | The permanent identity of the person who took this action |
| `createdAt` | `string` (datetime) | Yes | Timestamp when this action was taken |
| `actionType` | `string` | No | The type of action |
| `visibility` | `string` | No | The visibility tier of this action |
| `parentAction` | `string` (at-uri) | No | Reference to the action this is responding to (for threading) |
| `eventReference` | `string` (at-uri) | No | Reference to the event this action is part of |
| `worldReference` | `string` (at-uri) | Yes | Reference to the world this action occurred in |
| `narrativeWeight` | `integer` | No | Optional importance scoring hook (null default, non-breaking) |
| `locationReference` | `string` (at-uri) | No | Reference to the location where this action occurred |
| `characterReference` | `string` (at-uri) | No | Reference to the character who took this action |

## Raw Schema

```json
{
  "id": "world.ptah.action",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "actorDID",
          "worldReference",
          "createdAt"
        ],
        "properties": {
          "content": {
            "type": "string",
            "maxLength": 30720,
            "description": "The content of the action — what happened",
            "maxGraphemes": 3000
          },
          "actorDID": {
            "type": "string",
            "format": "did",
            "description": "The permanent identity of the person who took this action"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this action was taken"
          },
          "actionType": {
            "type": "string",
            "description": "The type of action",
            "knownValues": [
              "narrative",
              "dialogue",
              "witness",
              "competitive",
              "administrative"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "The visibility tier of this action",
            "knownValues": [
              "canon",
              "community",
              "experimental"
            ]
          },
          "parentAction": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the action this is responding to (for threading)"
          },
          "eventReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the event this action is part of"
          },
          "worldReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the world this action occurred in"
          },
          "narrativeWeight": {
            "type": "integer",
            "description": "Optional importance scoring hook (null default, non-breaking)"
          },
          "locationReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the location where this action occurred"
          },
          "characterReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the character who took this action"
          }
        }
      },
      "description": "The heartbeat of a world. Something happened. Attributed to a character, timestamped, permanent."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
