appBskyBookmarkDefs top-level constant

Map<String, dynamic> const appBskyBookmarkDefs

app.bsky.bookmark.defs

Implementation

const appBskyBookmarkDefs = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.bookmark.defs",
  "defs": {
    "bookmark": {
      "type": "object",
      "description": "Object used to store bookmark data in stash.",
      "required": ["subject"],
      "properties": {
        "subject": {
          "type": "ref",
          "description":
              "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.",
          "ref": "com.atproto.repo.strongRef",
        },
      },
    },
    "bookmarkView": {
      "type": "object",
      "required": ["subject", "item"],
      "properties": {
        "subject": {
          "type": "ref",
          "description": "A strong ref to the bookmarked record.",
          "ref": "com.atproto.repo.strongRef",
        },
        "createdAt": {"type": "string", "format": "datetime"},
        "item": {
          "type": "union",
          "refs": [
            "app.bsky.feed.defs#blockedPost",
            "app.bsky.feed.defs#notFoundPost",
            "app.bsky.feed.defs#postView",
          ],
        },
      },
    },
  },
};