Include system data on PK profiles

This commit is contained in:
Cadence Ember 2024-01-22 22:30:31 +13:00
commit a71c9515ec
4 changed files with 49 additions and 25 deletions

18
types.d.ts vendored
View file

@ -34,6 +34,19 @@ export type WebhookCreds = {
token: string
}
export type PkSystem = {
id: string
uuid: string
name: string | null
description: string | null
tag: string | null
pronouns: string | null
avatar_url: string | null
banner: string | null
color: string | null
created: string | null
}
export type PkMember = {
id: string
uuid: string
@ -54,6 +67,11 @@ export type PkMember = {
last_message_timestamp: string
}
export type PkMessage = {
system: PkSystem
member: PkMember
}
export namespace Event {
export type Outer<T> = {
type: string