feat(dashboard): refine activity telemetry and maps
This commit is contained in:
@@ -33,6 +33,16 @@ export const velocityAccessRequestSchema = z.object({
|
||||
|
||||
export type VelocityAccessRequest = z.infer<typeof velocityAccessRequestSchema>;
|
||||
|
||||
export const velocityConnectionRequestSchema = z.object({
|
||||
requestId: z.uuid(),
|
||||
serverId: z.string().min(1).max(100),
|
||||
minecraftUuid: minecraftUuidSchema,
|
||||
username: minecraftUsernameSchema,
|
||||
occurredAt: isoDateTimeSchema,
|
||||
});
|
||||
|
||||
export type VelocityConnectionRequest = z.infer<typeof velocityConnectionRequestSchema>;
|
||||
|
||||
export const velocityAccessResponseSchema = z.discriminatedUnion("allowed", [
|
||||
z.object({
|
||||
allowed: z.literal(true),
|
||||
|
||||
Reference in New Issue
Block a user