import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DnsEDns } from "./dnsedns.js"; import { DnsResourceRecord } from "./dnsresourcerecord.js"; /** * A enumerated field indicating the result of the request. The most common values are defined in RFC 1035. */ export declare const RCode: { readonly Unknown: ""; readonly Success: "success"; readonly FormatError: "format_error"; readonly ServerFailure: "server_failure"; readonly NameError: "name_error"; readonly NotImplemented: "not_implemented"; readonly Refused: "refused"; readonly YxDomain: "yx_domain"; readonly YxRrset: "yx_rrset"; readonly NxRrset: "nx_rrset"; readonly NotAuth: "not_auth"; readonly NotZone: "not_zone"; readonly BadSig: "bad_sig"; readonly BadKey: "bad_key"; readonly BadTime: "bad_time"; readonly BadMode: "bad_mode"; readonly BadName: "bad_name"; readonly BadAlg: "bad_alg"; readonly BadTrunc: "bad_trunc"; readonly BadCookie: "bad_cookie"; }; /** * A enumerated field indicating the result of the request. The most common values are defined in RFC 1035. */ export type RCode = OpenEnum; /** * An enumerated value indicating the behavior of the server. An AUTHORITATIVE server fulfills requests for domain names it controls, which are not listed by the server. FORWARDING and RECURSIVE_RESOLVER servers fulfill requests indirectly for domain names they do not control. A RECURSIVE_RESOLVER will query ip.parrotdns.com itself, resulting in its own IP address being present in the dns.answers.response field. */ export declare const ServerType: { readonly Unknown: ""; readonly RecursiveResolver: "recursive_resolver"; readonly Authoritative: "authoritative"; readonly Forwarding: "forwarding"; readonly Redirecting: "redirecting"; }; /** * An enumerated value indicating the behavior of the server. An AUTHORITATIVE server fulfills requests for domain names it controls, which are not listed by the server. FORWARDING and RECURSIVE_RESOLVER servers fulfill requests indirectly for domain names they do not control. A RECURSIVE_RESOLVER will query ip.parrotdns.com itself, resulting in its own IP address being present in the dns.answers.response field. */ export type ServerType = OpenEnum; export type Dns = { /** * A list of resource records (RRs) contained in the ADDITIONAL section of the response. */ additionals?: Array | null | undefined; /** * A list of resource records (RRs) contained in the ANSWER section of the response. */ answers?: Array | null | undefined; /** * A list of resource records (RRs) contained in the AUTHORITIES section of the response. */ authorities?: Array | null | undefined; edns?: DnsEDns | undefined; /** * A list of resource records (RRs) contained in the QUESTION section of the response, which may echo the request that the server is responding to. */ questions?: Array | null | undefined; /** * A enumerated field indicating the result of the request. The most common values are defined in RFC 1035. */ rCode?: RCode | undefined; /** * Whether the server returns an IP address for ip.parrotdns.com that matches the authoritative server, which is controlled by Censys. */ resolvesCorrectly?: boolean | undefined; /** * An enumerated value indicating the behavior of the server. An AUTHORITATIVE server fulfills requests for domain names it controls, which are not listed by the server. FORWARDING and RECURSIVE_RESOLVER servers fulfill requests indirectly for domain names they do not control. A RECURSIVE_RESOLVER will query ip.parrotdns.com itself, resulting in its own IP address being present in the dns.answers.response field. */ serverType?: ServerType | undefined; version?: string | undefined; }; /** @internal */ export declare const RCode$inboundSchema: z.ZodType; /** @internal */ export declare const ServerType$inboundSchema: z.ZodType; /** @internal */ export declare const Dns$inboundSchema: z.ZodType; export declare function dnsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=dns.d.ts.map