# world.ptah.usage

> 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.usage)
- [Documentation](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.usage/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.usage/examples)

## Definitions

### `world.ptah.usage`

**Type**: `record`

Terms and permissions for a work. What's allowed, where, for how long, and under what conditions.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `terms` | `string` | No | Human-readable terms description |
| `createdAt` | `string` (datetime) | Yes | Timestamp when this usage record was created |
| `creatorDID` | `string` (did) | Yes | The permanent identity of the usage record's creator |
| `validUntil` | `string` (datetime) | No | When these terms expire (empty = perpetual) |
| `licenseType` | `string` | No | The type of license |
| `territories` | `array` | No | Geographic territories where these terms apply (empty = worldwide) |
| `workReference` | `string` (at-uri) | Yes | Reference to the work these terms apply to |
| `worldReference` | `string` (at-uri) | Yes | Reference to the world this usage record belongs to |
| `allowCommercial` | `boolean` | No | Whether commercial use is permitted |
| `allowDerivatives` | `boolean` | No | Whether derivative works are permitted |
| `allowPerformance` | `boolean` | No | Whether public performance is permitted |
| `requireAttribution` | `boolean` | No | Whether attribution is required |

## Raw Schema

```json
{
  "id": "world.ptah.usage",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "creatorDID",
          "worldReference",
          "createdAt",
          "workReference"
        ],
        "properties": {
          "terms": {
            "type": "string",
            "maxLength": 10240,
            "description": "Human-readable terms description",
            "maxGraphemes": 1024
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this usage record was created"
          },
          "creatorDID": {
            "type": "string",
            "format": "did",
            "description": "The permanent identity of the usage record's creator"
          },
          "validUntil": {
            "type": "string",
            "format": "datetime",
            "description": "When these terms expire (empty = perpetual)"
          },
          "licenseType": {
            "type": "string",
            "description": "The type of license",
            "knownValues": [
              "allRightsReserved",
              "creativeCommons",
              "publicDomain",
              "custom"
            ]
          },
          "territories": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "description": "Geographic territories where these terms apply (empty = worldwide)"
          },
          "workReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the work these terms apply to"
          },
          "worldReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the world this usage record belongs to"
          },
          "allowCommercial": {
            "type": "boolean",
            "description": "Whether commercial use is permitted"
          },
          "allowDerivatives": {
            "type": "boolean",
            "description": "Whether derivative works are permitted"
          },
          "allowPerformance": {
            "type": "boolean",
            "description": "Whether public performance is permitted"
          },
          "requireAttribution": {
            "type": "boolean",
            "description": "Whether attribution is required"
          }
        }
      },
      "description": "Terms and permissions for a work. What's allowed, where, for how long, and under what conditions."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
