# ai.datalayer.library.publication

> Published by [datalayer.ai](https://lexicon.garden/identity/did:plc:5wcl7w4vyvswopgbn7qgku6c)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5wcl7w4vyvswopgbn7qgku6c/ai.datalayer.library.publication)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5wcl7w4vyvswopgbn7qgku6c/ai.datalayer.library.publication/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5wcl7w4vyvswopgbn7qgku6c/ai.datalayer.library.publication/examples)

## Definitions

### `ai.datalayer.library.publication`

**Type**: `record`

A result from a public Datalayer Library notebook, published by its author.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cellId` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `datasets` | `array` | No |  |
| `finding` | `string` | Yes |  |
| `image` | `blob` | Yes |  |
| `itemId` | `string` | Yes | The Library item's uid: stable when the URL is not. |
| `kind` | `string` | Yes |  |
| `libraryUri` | `string` (uri) | Yes |  |
| `outputIndex` | `integer` | Yes |  |
| `post` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `title` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A result from a public Datalayer Library notebook, published by its author.",
      "key": "tid",
      "record": {
        "properties": {
          "cellId": {
            "maxLength": 128,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "datasets": {
            "items": {
              "format": "uri",
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "finding": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/png",
              "image/jpeg"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "itemId": {
            "description": "The Library item's uid: stable when the URL is not.",
            "maxLength": 128,
            "type": "string"
          },
          "kind": {
            "knownValues": [
              "result"
            ],
            "type": "string"
          },
          "libraryUri": {
            "format": "uri",
            "type": "string"
          },
          "outputIndex": {
            "minimum": 0,
            "type": "integer"
          },
          "post": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "title": {
            "maxGraphemes": 120,
            "maxLength": 1200,
            "type": "string"
          }
        },
        "required": [
          "title",
          "finding",
          "kind",
          "itemId",
          "libraryUri",
          "cellId",
          "outputIndex",
          "image",
          "post",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.datalayer.library.publication",
  "lexicon": 1
}
```
