appBskyFeedPostgate top-level constant

Map<String, dynamic> const appBskyFeedPostgate

app.bsky.feed.postgate

Implementation

const appBskyFeedPostgate = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.feed.postgate",
  "defs": {
    "main": {
      "type": "record",
      "description":
          "Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["post", "createdAt"],
        "properties": {
          "createdAt": {"type": "string", "format": "datetime"},
          "post": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference (AT-URI) to the post record."
          },
          "detachedEmbeddingUris": {
            "type": "array",
            "description":
                "List of AT-URIs embedding this post that the author has detached from.",
            "items": {"type": "string", "format": "at-uri"},
            "maxLength": 50
          },
          "embeddingRules": {
            "type": "array",
            "description":
                "List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",
            "items": {
              "type": "union",
              "refs": ["#disableRule"]
            },
            "maxLength": 5
          }
        }
      }
    },
    "disableRule": {
      "type": "object",
      "description": "Disables embedding of this post.",
      "properties": {}
    }
  }
};