Support /plu/ral webhook proxying

This commit is contained in:
Cadence Ember
2026-07-30 19:24:31 +12:00
parent 544c5206c7
commit a3ce911218
13 changed files with 337 additions and 72 deletions
+23
View File
@@ -36,6 +36,7 @@ export type AppServiceRegistrationConfig = {
web_password: string
time_zone?: string
receive_presences: boolean
plu_ral_api_key?: string
}
old_bridge?: {
as_token: string
@@ -124,6 +125,28 @@ export type PkMessage = {
sender: string
}
export type PluRalWebhookMessage = {
original_id: string | null
proxy_id: string
author_id: string
channel_id: string
member_id: string
reason: string
webhook_id: string
member: PluRalMember
}
export type PluRalMember = {
id: string
name: string
pronouns: string
bio: string
birthday: string
color: number | null
avatar_url: string
private: boolean
}
export namespace Event {
export type Outer<T> = {
type: string