schemas.d.ts•2.98 kB
import { z } from 'zod';
export declare const DnsRecordTypeSchema: z.ZodEnum<["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"]>;
export declare const DnsLookupSchema: z.ZodObject<{
domain: z.ZodString;
recordType: z.ZodDefault<z.ZodEnum<["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"]>>;
useCustomServer: z.ZodOptional<z.ZodBoolean>;
timeout: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
domain: string;
recordType: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA";
useCustomServer?: boolean | undefined;
timeout?: number | undefined;
}, {
domain: string;
recordType?: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | undefined;
useCustomServer?: boolean | undefined;
timeout?: number | undefined;
}>;
export declare const ReverseDnsSchema: z.ZodObject<{
ipAddress: z.ZodString;
timeout: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
ipAddress: string;
timeout?: number | undefined;
}, {
ipAddress: string;
timeout?: number | undefined;
}>;
export declare const BatchDnsSchema: z.ZodObject<{
queries: z.ZodArray<z.ZodObject<{
domain: z.ZodString;
recordTypes: z.ZodArray<z.ZodEnum<["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"]>, "many">;
}, "strip", z.ZodTypeAny, {
domain: string;
recordTypes: ("A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA")[];
}, {
domain: string;
recordTypes: ("A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA")[];
}>, "many">;
parallel: z.ZodDefault<z.ZodBoolean>;
timeout: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
queries: {
domain: string;
recordTypes: ("A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA")[];
}[];
parallel: boolean;
timeout?: number | undefined;
}, {
queries: {
domain: string;
recordTypes: ("A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA")[];
}[];
timeout?: number | undefined;
parallel?: boolean | undefined;
}>;
export declare const DnsTraceSchema: z.ZodObject<{
domain: z.ZodString;
recordType: z.ZodDefault<z.ZodEnum<["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"]>>;
}, "strip", z.ZodTypeAny, {
domain: string;
recordType: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA";
}, {
domain: string;
recordType?: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "PTR" | "SRV" | "CAA" | undefined;
}>;
export type DnsLookupInput = z.infer<typeof DnsLookupSchema>;
export type ReverseDnsInput = z.infer<typeof ReverseDnsSchema>;
export type BatchDnsInput = z.infer<typeof BatchDnsSchema>;
export type DnsTraceInput = z.infer<typeof DnsTraceSchema>;
//# sourceMappingURL=schemas.d.ts.map