route moderation reports through the appview client with per-call proxying

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-03 21:31:17 +03:00
parent 09ca1307bc
commit abf8ba0993
7 changed files with 127 additions and 87 deletions
+12 -4
View File
@@ -263,14 +263,22 @@ export const BLUESKY_PROXY_HEADER = {
*/
export const CHAT_PROXY_SERVICE: Service = `${CHAT_PROXY_DID}#bsky_chat`
/**
* Bluesky's own moderation service, in the `did#service_id` form a lex client's
* per-call `service` option takes. Passing it emits `atproto-proxy: <this
* value>` on that one request, routing a `com.atproto.moderation.*` call to
* Bluesky's labeler.
*
* Reports and appeals aimed at a DIFFERENT labeler build their own value from
* that labeler's creator did instead, so this is a per-call option rather than a
* client-level one like {@link CHAT_PROXY_SERVICE}.
*/
export const MOD_PROXY_SERVICE: Service = `${BSKY_LABELER_DID}#atproto_labeler`
export const DM_SERVICE_HEADERS = {
'atproto-proxy': `${CHAT_PROXY_DID}#bsky_chat`,
}
export const BLUESKY_MOD_SERVICE_HEADERS = {
'atproto-proxy': `${BSKY_LABELER_DID}#atproto_labeler`,
}
export const BLUESKY_NOTIF_SERVICE_HEADERS = {
'atproto-proxy': `${BLUESKY_PROXY_DID}#bsky_notif`,
}