atproto/lexicons/app/bsky/feed/postgate.json
Eric Bailey 87ed907a6b
Add setPostInteractionSettings and related prefs (#3494)
* Add setPostInteractionSettings and related prefs

* Fix test

* Align types and implementation

* Tighten up, clarifying descriptions

* Fix test

* Format
2025-02-05 17:43:27 -06:00

47 lines
1.5 KiB
JSON

{
"lexicon": 1,
"id": "app.bsky.feed.postgate",
"defs": {
"main": {
"type": "record",
"key": "tid",
"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.",
"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",
"maxLength": 50,
"items": {
"type": "string",
"format": "at-uri"
},
"description": "List of AT-URIs embedding this post that the author has detached from."
},
"embeddingRules": {
"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.",
"type": "array",
"maxLength": 5,
"items": {
"type": "union",
"refs": ["#disableRule"]
}
}
}
}
},
"disableRule": {
"type": "object",
"description": "Disables embedding of this post.",
"properties": {}
}
}
}