UNPKG

ddnet

Version:

A typescript npm package for interacting with data from ddnet.org

211 lines (210 loc) 5.97 kB
import { z } from 'zod'; /** * The zod schema for servers info data. * * @internal */ export declare const _Schema_info_servers: z.ZodObject<{ name: z.ZodString; flagId: z.ZodNumber; servers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; servers: Record<string, string[]>; flagId: number; }, { name: string; servers: Record<string, string[]>; flagId: number; }>; /** * Servers Info data type, inferred from {@link _Schema_info_servers} * * @internal */ export type _Info_Servers = z.infer<typeof _Schema_info_servers>; /** * The zod schema for info data. * * @see * [info.py](https://github.com/ddnet/ddnet-scripts/blob/be9ac08514ebb183c835f501d7c4bc0b8e23c61c/servers/scripts/info.py) * * @internal */ export declare const _Schema_info: z.ZodObject<{ servers: z.ZodArray<z.ZodObject<{ name: z.ZodString; flagId: z.ZodNumber; servers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; servers: Record<string, string[]>; flagId: number; }, { name: string; servers: Record<string, string[]>; flagId: number; }>, "many">; 'servers-kog': z.ZodArray<z.ZodObject<{ name: z.ZodString; flagId: z.ZodNumber; servers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; servers: Record<string, string[]>; flagId: number; }, { name: string; servers: Record<string, string[]>; flagId: number; }>, "many">; communities: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; has_finishes: z.ZodBoolean; icon: z.ZodObject<{ sha256: z.ZodString; url: z.ZodString; servers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; flagId: z.ZodNumber; servers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; servers: Record<string, string[]>; flagId: number; }, { name: string; servers: Record<string, string[]>; flagId: number; }>, "many">>; }, "strip", z.ZodTypeAny, { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }, { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }>; contact_urls: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { name: string; id: string; icon: { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }; has_finishes: boolean; contact_urls: string[]; }, { name: string; id: string; icon: { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }; has_finishes: boolean; contact_urls: string[]; }>, "many">; 'community-icons-download-url': z.ZodString; news: z.ZodString; 'map-download-url': z.ZodString; location: z.ZodString; version: z.ZodString; 'stun-servers-ipv6': z.ZodArray<z.ZodString, "many">; 'stun-servers-ipv4': z.ZodArray<z.ZodString, "many">; 'warn-pnglite-incompatible-images': z.ZodBoolean; }, "strip", z.ZodTypeAny, { version: string; servers: { name: string; servers: Record<string, string[]>; flagId: number; }[]; location: string; 'servers-kog': { name: string; servers: Record<string, string[]>; flagId: number; }[]; communities: { name: string; id: string; icon: { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }; has_finishes: boolean; contact_urls: string[]; }[]; 'community-icons-download-url': string; news: string; 'map-download-url': string; 'stun-servers-ipv6': string[]; 'stun-servers-ipv4': string[]; 'warn-pnglite-incompatible-images': boolean; }, { version: string; servers: { name: string; servers: Record<string, string[]>; flagId: number; }[]; location: string; 'servers-kog': { name: string; servers: Record<string, string[]>; flagId: number; }[]; communities: { name: string; id: string; icon: { sha256: string; url: string; servers?: { name: string; servers: Record<string, string[]>; flagId: number; }[] | undefined; }; has_finishes: boolean; contact_urls: string[]; }[]; 'community-icons-download-url': string; news: string; 'map-download-url': string; 'stun-servers-ipv6': string[]; 'stun-servers-ipv4': string[]; 'warn-pnglite-incompatible-images': boolean; }>; /** * Info data type, inferred from {@link _Schema_info} * * @internal */ export type _Info = z.infer<typeof _Schema_info>;