# social.colibri.beta.emoji.defs

- Kind: defs
- Authority: emoji.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.emoji.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.emoji.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.emoji.defs/analytics)

## #catalogView (`social.colibri.beta.emoji.defs#catalogView`)

Type: object

Every custom emoji and pack in one repo.

### Properties

- `emojis` (array, required): Every emoji in the repo.
  - `items` (ref)
    - Reference: `#emojiView`
- `owner` (string · did, required): The repo the catalog belongs to.
- `packs` (array, required): Every pack in the repo.
  - `items` (ref)
    - Reference: `#packView`

## #emojiImage (`social.colibri.beta.emoji.defs#emojiImage`)

Type: object

One stored rendition of an emoji.

### Properties

- `animated` (boolean, required): Whether the format is animated.
- `cid` (string · cid, required): The blob's CID in the owner's repo.
- `format` (string, required): The image format.
  - Constraints: knownValues: png | webp | gif | apng | lottie | other
- `mimeType` (string): The blob's MIME type.
- `pixels` (integer): The rendition's longest edge in pixels, when the provider fixes one.
  - Constraints: minimum: 1
- `size` (integer): The blob's size in bytes.
  - Constraints: minimum: 0

## #emojiOwner (`social.colibri.beta.emoji.defs#emojiOwner`)

Type: object

The user or community that holds an emoji or pack.

### Properties

- `avatar` (string · uri): The user's avatar or the community's icon.
- `did` (string · did, required): The owner.
- `displayName` (string): The user's display name or the community's name.
- `handle` (string · handle): The owner's handle.
- `kind` (string, required): Whether the owner is a user or a community.
  - Constraints: knownValues: user | community

## #emojiView (`social.colibri.beta.emoji.defs#emojiView`)

Type: object

A custom emoji, normalised from its provider's record.

### Properties

- `adultOnly` (boolean): Whether the owner marked the emoji as adult content.
- `alt` (string): Alt text for the image.
- `cid` (string · cid): The record's CID.
- `createdAt` (string · datetime, required): When the record was created.
- `fallback` (string): The text shown where the image cannot render.
- `images` (array, required): Every rendition the record carries.
  - `items` (ref)
    - Reference: `#emojiImage`
- `name` (string, required): The name without colons.
- `owner` (string · did, required): The repo that holds the record and its blobs.
- `provider` (string, required): The emoji provider whose lexicon the record uses.
  - Constraints: knownValues: blue.moji
- `uri` (string · at-uri, required): The emoji's record URI.

## #followView (`social.colibri.beta.emoji.defs#followView`)

Type: object

A pack or single emoji the user follows, resolved against the owner's current catalog.

### Properties

- `createdAt` (string · datetime, required): When the user started following.
- `emojis` (array, required): The pack's current emoji in pack order, or the single followed emoji. Empty unless state is available.
  - `items` (ref)
    - Reference: `#emojiView`
- `kind` (string, required): Whether the subject is a pack or a single emoji.
  - Constraints: knownValues: pack | emoji
- `owner` (ref, required): Who holds the subject.
  - Reference: `#emojiOwner`
- `pack` (ref): The pack, when kind is pack and state is available.
  - Reference: `#packView`
- `state` (string, required): available when the subject resolves. missing when the owner deleted it. unreachable when the owner's repo cannot be read, for example a deactivated or taken down account.
  - Constraints: knownValues: available | missing | unreachable
- `subject` (string · at-uri, required): The followed pack or emoji.
- `uri` (string · at-uri, required): The follow record.

## #libraryView (`social.colibri.beta.emoji.defs#libraryView`)

Type: object

A user's emoji library.

### Properties

- `follows` (array, required): Everything the user follows, oldest follow first.
  - `items` (ref)
    - Reference: `#followView`
- `own` (ref, required): The emoji and packs in the user's own repo.
  - Reference: `#catalogView`

## #packView (`social.colibri.beta.emoji.defs#packView`)

Type: object

A named group of custom emoji, normalised from its provider's records.

### Properties

- `createdAt` (string · datetime, required): When the record was created.
- `description` (string): The pack's description.
- `emojis` (array, required): The URIs of the emoji in the pack, in the order they were added. Only emoji present in the catalog are listed.
  - `items` (string · at-uri)
- `name` (string, required): The pack's name.
- `owner` (string · did, required): The repo that holds the pack.
- `provider` (string, required): The emoji provider whose lexicon the record uses.
  - Constraints: knownValues: blue.moji
- `uri` (string · at-uri, required): The pack's record URI.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "catalogView": {
      "description": "Every custom emoji and pack in one repo.",
      "properties": {
        "emojis": {
          "description": "Every emoji in the repo.",
          "items": {
            "ref": "#emojiView",
            "type": "ref"
          },
          "type": "array"
        },
        "owner": {
          "description": "The repo the catalog belongs to.",
          "format": "did",
          "type": "string"
        },
        "packs": {
          "description": "Every pack in the repo.",
          "items": {
            "ref": "#packView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "owner",
        "emojis",
        "packs"
      ],
      "type": "object"
    },
    "emojiImage": {
      "description": "One stored rendition of an emoji.",
      "properties": {
        "animated": {
          "description": "Whether the format is animated.",
          "type": "boolean"
        },
        "cid": {
          "description": "The blob's CID in the owner's repo.",
          "format": "cid",
          "type": "string"
        },
        "format": {
          "description": "The image format.",
          "knownValues": [
            "png",
            "webp",
            "gif",
            "apng",
            "lottie",
            "other"
          ],
          "type": "string"
        },
        "mimeType": {
          "description": "The blob's MIME type.",
          "type": "string"
        },
        "pixels": {
          "description": "The rendition's longest edge in pixels, when the provider fixes one.",
          "minimum": 1,
          "type": "integer"
        },
        "size": {
          "description": "The blob's size in bytes.",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "cid",
        "format",
        "animated"
      ],
      "type": "object"
    },
    "emojiOwner": {
      "description": "The user or community that holds an emoji or pack.",
      "properties": {
        "avatar": {
          "description": "The user's avatar or the community's icon.",
          "format": "uri",
          "type": "string"
        },
        "did": {
          "description": "The owner.",
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "description": "The user's display name or the community's name.",
          "type": "string"
        },
        "handle": {
          "description": "The owner's handle.",
          "format": "handle",
          "type": "string"
        },
        "kind": {
          "description": "Whether the owner is a user or a community.",
          "knownValues": [
            "user",
            "community"
          ],
          "type": "string"
        }
      },
      "required": [
        "did",
        "kind"
      ],
      "type": "object"
    },
    "emojiView": {
      "description": "A custom emoji, normalised from its provider's record.",
      "properties": {
        "adultOnly": {
          "description": "Whether the owner marked the emoji as adult content.",
          "type": "boolean"
        },
        "alt": {
          "description": "Alt text for the image.",
          "type": "string"
        },
        "cid": {
          "description": "The record's CID.",
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "description": "When the record was created.",
          "format": "datetime",
          "type": "string"
        },
        "fallback": {
          "description": "The text shown where the image cannot render.",
          "type": "string"
        },
        "images": {
          "description": "Every rendition the record carries.",
          "items": {
            "ref": "#emojiImage",
            "type": "ref"
          },
          "type": "array"
        },
        "name": {
          "description": "The name without colons.",
          "type": "string"
        },
        "owner": {
          "description": "The repo that holds the record and its blobs.",
          "format": "did",
          "type": "string"
        },
        "provider": {
          "description": "The emoji provider whose lexicon the record uses.",
          "knownValues": [
            "blue.moji"
          ],
          "type": "string"
        },
        "uri": {
          "description": "The emoji's record URI.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "provider",
        "owner",
        "name",
        "images",
        "createdAt"
      ],
      "type": "object"
    },
    "followView": {
      "description": "A pack or single emoji the user follows, resolved against the owner's current catalog.",
      "properties": {
        "createdAt": {
          "description": "When the user started following.",
          "format": "datetime",
          "type": "string"
        },
        "emojis": {
          "description": "The pack's current emoji in pack order, or the single followed emoji. Empty unless state is available.",
          "items": {
            "ref": "#emojiView",
            "type": "ref"
          },
          "type": "array"
        },
        "kind": {
          "description": "Whether the subject is a pack or a single emoji.",
          "knownValues": [
            "pack",
            "emoji"
          ],
          "type": "string"
        },
        "owner": {
          "description": "Who holds the subject.",
          "ref": "#emojiOwner",
          "type": "ref"
        },
        "pack": {
          "description": "The pack, when kind is pack and state is available.",
          "ref": "#packView",
          "type": "ref"
        },
        "state": {
          "description": "available when the subject resolves. missing when the owner deleted it. unreachable when the owner's repo cannot be read, for example a deactivated or taken down account.",
          "knownValues": [
            "available",
            "missing",
            "unreachable"
          ],
          "type": "string"
        },
        "subject": {
          "description": "The followed pack or emoji.",
          "format": "at-uri",
          "type": "string"
        },
        "uri": {
          "description": "The follow record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "subject",
        "kind",
        "state",
        "owner",
        "emojis",
        "createdAt"
      ],
      "type": "object"
    },
    "libraryView": {
      "description": "A user's emoji library.",
      "properties": {
        "follows": {
          "description": "Everything the user follows, oldest follow first.",
          "items": {
            "ref": "#followView",
            "type": "ref"
          },
          "type": "array"
        },
        "own": {
          "description": "The emoji and packs in the user's own repo.",
          "ref": "#catalogView",
          "type": "ref"
        }
      },
      "required": [
        "own",
        "follows"
      ],
      "type": "object"
    },
    "packView": {
      "description": "A named group of custom emoji, normalised from its provider's records.",
      "properties": {
        "createdAt": {
          "description": "When the record was created.",
          "format": "datetime",
          "type": "string"
        },
        "description": {
          "description": "The pack's description.",
          "type": "string"
        },
        "emojis": {
          "description": "The URIs of the emoji in the pack, in the order they were added. Only emoji present in the catalog are listed.",
          "items": {
            "format": "at-uri",
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "description": "The pack's name.",
          "type": "string"
        },
        "owner": {
          "description": "The repo that holds the pack.",
          "format": "did",
          "type": "string"
        },
        "provider": {
          "description": "The emoji provider whose lexicon the record uses.",
          "knownValues": [
            "blue.moji"
          ],
          "type": "string"
        },
        "uri": {
          "description": "The pack's record URI.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "provider",
        "owner",
        "name",
        "emojis",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "id": "social.colibri.beta.emoji.defs",
  "lexicon": 1
}
```
