fix(push): stop pushes for read, silent and muted messages (#3033)

This commit is contained in:
Hampus
2026-09-29 15:58:46 +02:00
committed by GitHub
parent 9908518f5b
commit b30ea361d3
45 changed files with 3393 additions and 268 deletions
@@ -205,6 +205,11 @@ export const RpcRequest = z.discriminatedUnion('type', [
channel_id: SnowflakeType.describe('ID of the DM channel'),
user_id: SnowflakeType.describe('ID of the user requesting the channel'),
}),
z.object({
type: z.literal('get_read_state').describe('Request type for fetching the read state of one channel'),
user_id: SnowflakeType.describe('ID of the user who owns the read state'),
channel_id: SnowflakeType.describe('ID of the channel'),
}),
z.object({
type: z.literal('validate_custom_status').describe('Request type for validating a custom status'),
user_id: SnowflakeType.describe('ID of the user'),
@@ -515,6 +520,14 @@ export const RpcResponse = z.discriminatedUnion('type', [
})
.describe('DM channel result'),
}),
z.object({
type: z.literal('get_read_state').describe('Response type for a channel read state'),
data: z
.object({
last_message_id: SnowflakeStringType.nullable().describe('ID of the last read message, or null if none'),
})
.describe('Channel read state result'),
}),
z.object({
type: z.literal('get_gateway_rollout_config').describe('Response type for gateway rollout configuration'),
data: z