refactor(geoip): reconcile geoip system (#31)

This commit is contained in:
hampus-fluxer
2026-01-05 23:19:05 +01:00
committed by GitHub
parent 5d047b2856
commit 2e007b5076
86 changed files with 982 additions and 2648 deletions

View File

@@ -68,6 +68,10 @@ export const RpcRequest = z.discriminatedUnion('type', [
type: z.literal('get_badge_counts'),
user_ids: z.array(Int64Type),
}),
z.object({
type: z.literal('geoip_lookup'),
ip: createStringType(1, 45),
}),
z.object({
type: z.literal('delete_push_subscriptions'),
subscriptions: z.array(
@@ -290,6 +294,10 @@ export const RpcResponse = z.discriminatedUnion('type', [
type: z.literal('validate_custom_status'),
data: RpcResponseValidateCustomStatus,
}),
z.object({
type: z.literal('geoip_lookup'),
data: z.object({country_code: z.string()}),
}),
z.object({
type: z.literal('get_dm_channel'),
data: z.object({