{
"id": "world.ptah.character",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"name",
"creatorDID",
"worldReference",
"createdAt"
],
"properties": {
"name": {
"type": "string",
"maxLength": 640,
"description": "The name of the character",
"maxGraphemes": 64
},
"avatar": {
"type": "blob",
"accept": [
"image/png",
"image/jpeg",
"image/webp"
],
"maxSize": 1000000,
"description": "Avatar image for the character"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Timestamp when this character was created"
},
"creatorDID": {
"type": "string",
"format": "did",
"description": "The permanent identity of the character's creator"
},
"originType": {
"type": "string",
"description": "The intellectual property status of this character",
"knownValues": [
"originalIP",
"publicDomain",
"collaborativeCommons"
]
},
"controlType": {
"type": "string",
"description": "Who can act as this character — exclusive (creator only), open (anyone), or contested (multiple claimants)",
"knownValues": [
"exclusive",
"open",
"contested"
]
},
"description": {
"type": "string",
"maxLength": 10240,
"description": "Who this character is",
"maxGraphemes": 1024
},
"worldReference": {
"type": "string",
"format": "at-uri",
"description": "Reference to the world this character inhabits"
},
"canonicalStatus": {
"type": "string",
"description": "The canonical standing of this character",
"knownValues": [
"world.ptah.defs#canonicalStatusOfficial",
"world.ptah.defs#canonicalStatusCommunity",
"world.ptah.defs#canonicalStatusApocryphal"
]
},
"authorshipRecord": {
"type": "string",
"format": "did",
"description": "The DID of the original author if different from creator"
},
"templateReference": {
"type": "string",
"format": "at-uri",
"description": "Reference to the template this character embodies (if any)"
},
"characterProperties": {
"ref": "#characterProperties",
"type": "ref",
"description": "Additional structured properties for this character"
}
}
},
"description": "A person, creature, or entity inside a world. Characters take actions, participate in events, and accumulate history."
},
"characterProperties": {
"type": "object",
"properties": {
"age": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
},
"role": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
},
"species": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
},
"abilities": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
},
"affiliation": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
}
},
"description": "Structured metadata for characters"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}