refactor(geoip): reconcile geoip system (#31)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user