placeStreamChatPinnedRecord top-level constant

Map<String, dynamic> const placeStreamChatPinnedRecord

place.stream.chat.pinnedRecord

Implementation

const placeStreamChatPinnedRecord = <String, dynamic>{
  "lexicon": 1,
  "id": "place.stream.chat.pinnedRecord",
  "defs": {
    "main": {
      "type": "record",
      "description": "Record pinning a chat message for prominent display.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["pinnedMessage", "createdAt"],
        "properties": {
          "pinnedBy": {
            "type": "string",
            "format": "did",
            "description": "DID of the user who pinned the message.",
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this pin was created.",
          },
          "expiresAt": {
            "type": "string",
            "format": "datetime",
            "description":
                "Optional expiration time. If set, the pin is considered inactive after this time.",
          },
          "pinnedMessage": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the pinned chat message.",
          },
        },
      },
    },
  },
};