Skip to content

Commit

Permalink
Update lexicons from atproto
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange authored and github-actions[bot] committed Feb 7, 2025
1 parent 2c06cad commit 5a80b8a
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 21 deletions.
155 changes: 139 additions & 16 deletions bluesky/api/bluesky.api

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lexicons/schemas/app/bsky/actor/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@
"type": "union",
"refs": [
"app.bsky.feed.threadgate#mentionRule",
"app.bsky.feed.threadgate#followerRule",
"app.bsky.feed.threadgate#followingRule",
"app.bsky.feed.threadgate#listRule"
]
Expand Down
12 changes: 11 additions & 1 deletion lexicons/schemas/app/bsky/feed/threadgate.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
"maxLength": 5,
"items": {
"type": "union",
"refs": ["#mentionRule", "#followingRule", "#listRule"]
"refs": [
"#mentionRule",
"#followerRule",
"#followingRule",
"#listRule"
]
}
},
"createdAt": { "type": "string", "format": "datetime" },
Expand All @@ -42,6 +47,11 @@
"description": "Allow replies from actors mentioned in your post.",
"properties": {}
},
"followerRule": {
"type": "object",
"description": "Allow replies from actors who follow you.",
"properties": {}
},
"followingRule": {
"type": "object",
"description": "Allow replies from actors you follow.",
Expand Down
27 changes: 25 additions & 2 deletions lexicons/schemas/tools/ozone/moderation/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"#modEventTag",
"#accountEvent",
"#identityEvent",
"#recordEvent"
"#recordEvent",
"#modEventPriorityScore"
]
},
"subject": {
Expand Down Expand Up @@ -84,7 +85,8 @@
"#modEventTag",
"#accountEvent",
"#identityEvent",
"#recordEvent"
"#recordEvent",
"#modEventPriorityScore"
]
},
"subject": {
Expand Down Expand Up @@ -143,6 +145,12 @@
"type": "string",
"description": "Sticky comment on the subject."
},
"priorityScore": {
"type": "integer",
"description": "Numeric value representing the level of priority. Higher score means higher priority.",
"minimum": 0,
"maximum": 100
},
"muteUntil": {
"type": "string",
"format": "datetime"
Expand Down Expand Up @@ -381,6 +389,21 @@
}
}
},
"modEventPriorityScore": {
"type": "object",
"description": "Set priority score of the subject. Higher score means higher priority.",
"required": ["score"],
"properties": {
"comment": {
"type": "string"
},
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
}
},
"modEventAcknowledge": {
"type": "object",
"properties": {
Expand Down
3 changes: 2 additions & 1 deletion lexicons/schemas/tools/ozone/moderation/emitEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"tools.ozone.moderation.defs#modEventTag",
"tools.ozone.moderation.defs#accountEvent",
"tools.ozone.moderation.defs#identityEvent",
"tools.ozone.moderation.defs#recordEvent"
"tools.ozone.moderation.defs#recordEvent",
"tools.ozone.moderation.defs#modEventPriorityScore"
]
},
"subject": {
Expand Down
9 changes: 8 additions & 1 deletion lexicons/schemas/tools/ozone/moderation/queryStatuses.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
"lastReviewedAt",
"lastReportedAt",
"reportedRecordsCount",
"takendownRecordsCount"
"takendownRecordsCount",
"priorityScore"
]
},
"sortDirection": {
Expand Down Expand Up @@ -175,6 +176,12 @@
"minTakendownRecordsCount": {
"type": "integer",
"description": "If specified, only subjects that belong to an account that has at least this many taken down records will be returned."
},
"minPriorityScore": {
"minimum": 0,
"maximum": 100,
"type": "integer",
"description": "If specified, only subjects that have priority score value above the given value will be returned."
}
}
},
Expand Down

0 comments on commit 5a80b8a

Please sign in to comment.