# space.ziran.doc

> Published by [lexicons.pds.ziran.space](https://lexicon.garden/identity/did:plc:axdexdy7p7yvuunn2mvuvy32)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.doc)
- [Documentation](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.doc/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.doc/examples)

## Definitions

### `space.ziran.doc`

**Type**: `record`

A live document in a workspace, written by the document's creator: the partial manifest linking a Ziran tile to its online identity. Document discovery in a space is the union of these records across member repos. The record's author is the sole authority for the document's role assignments; roles are enforced by tiles, not by the protocol.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Human-readable document name. |
| `model` | `string` (nsid) | Yes | Identifier of the tile model this document instantiates. |
| `roles` | `unknown` | No | Per-document role assignments in the tile's own vocabulary: a map from DID (or the key 'default') to a role name. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "space.ziran.doc",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "model",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 2000,
            "description": "Human-readable document name.",
            "maxGraphemes": 200
          },
          "model": {
            "type": "string",
            "format": "nsid",
            "description": "Identifier of the tile model this document instantiates."
          },
          "roles": {
            "type": "unknown",
            "description": "Per-document role assignments in the tile's own vocabulary: a map from DID (or the key 'default') to a role name."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A live document in a workspace, written by the document's creator: the partial manifest linking a Ziran tile to its online identity. Document discovery in a space is the union of these records across member repos. The record's author is the sole authority for the document's role assignments; roles are enforced by tiles, not by the protocol."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
