diff --git a/src/types.ts b/src/types.ts index d5cdaa0cf..144c7a13e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -484,7 +484,7 @@ export type MessageResponse< silent?: boolean; status?: string; thread_participants?: UserResponse[]; - type?: string; + type?: MessageLabel; updated_at?: string; }; @@ -1676,6 +1676,14 @@ export type MessageBase< user_id?: string; }; +export type MessageLabel = + | 'deleted' + | 'ephemeral' + | 'error' + | 'regular' + | 'reply' + | 'system'; + export type Mute = { created_at: string; target: UserResponse;