import { z } from "zod"; /** * Define the priority level options. * @type {z.ZodEnum} */ export declare const RenewalPrioritySchema: z.ZodEnum<["normal", "high"]>; /** * Define the trigger expected in the Automate payload. * @type {z.ZodEnum} */ export declare const RenewalPayloadContentSchema: z.ZodUnion<[z.ZodEnum<["renew"]>, z.ZodString]>; /** * Define a validation schema for environment variables. * @type {z.ZodObject} */ export declare const EnvSchema: z.ZodObject<{ IP_RENEWAL_SECRET: z.ZodString; IP_RENEWAL_EMAIL: z.ZodString; IP_RENEWAL_PRIORITY: z.ZodDefault>; IP_RENEWAL_PAYLOAD_CONTENT: z.ZodDefault, z.ZodString]>>; IP_RENEWAL_MAX_ATTEMPTS: z.ZodDefault; IP_RENEWAL_DELAY: z.ZodDefault; POLL_ATTEMPTS: z.ZodDefault; POLL_TIMEOUT: z.ZodDefault; TOGGLE_DELAY: z.ZodDefault; IPDATA_API_KEY: z.ZodDefault; }, "strip", z.ZodTypeAny, { IP_RENEWAL_SECRET: string; IP_RENEWAL_EMAIL: string; IP_RENEWAL_PRIORITY: "normal" | "high"; IP_RENEWAL_PAYLOAD_CONTENT: string; IP_RENEWAL_MAX_ATTEMPTS: number; IP_RENEWAL_DELAY: number; POLL_ATTEMPTS: number; POLL_TIMEOUT: number; TOGGLE_DELAY: number; IPDATA_API_KEY: string; }, { IP_RENEWAL_PRIORITY?: "normal" | "high" | undefined; IP_RENEWAL_PAYLOAD_CONTENT?: string | undefined; IP_RENEWAL_MAX_ATTEMPTS?: number | undefined; IP_RENEWAL_DELAY?: number | undefined; POLL_ATTEMPTS?: number | undefined; POLL_TIMEOUT?: number | undefined; TOGGLE_DELAY?: number | undefined; IPDATA_API_KEY?: string | undefined; IP_RENEWAL_SECRET: string; IP_RENEWAL_EMAIL: string; }>; /** * Exports a typed env file. * @type {RouterEnv} */ export declare const env: z.infer; /** * Define a validation schema for the request sent to the Automate endpoint. * @type {z.ZodObject} */ export declare const AutomatePayloadSchema: z.ZodObject<{ secret: z.ZodDefault; to: z.ZodDefault; priority: z.ZodDefault>; device: z.ZodOptional; payload: z.ZodDefault, z.ZodString]>>; }, "strip", z.ZodTypeAny, { device?: string | undefined; secret: string; to: string; priority: "normal" | "high"; payload: string; }, { secret?: string | undefined; to?: string | undefined; priority?: "normal" | "high" | undefined; device?: string | undefined; payload?: string | undefined; }>; /** * Define the possible values for IPData field selection. * @type {z.ZodArray} */ export declare const IpDataFieldsSchema: z.ZodArray, "many">; /** * Define validation schema for IPData vendor config. * @type {z.ZodObject} */ export declare const IpDataConfigSchema: z.ZodObject<{ key: z.ZodDefault; fields: z.ZodDefault, "many">>; }, "strip", z.ZodTypeAny, { key: string; fields: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[]; }, { key?: string | undefined; fields?: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[] | undefined; }>; /** * Define a validation schema for top level router config which extends the Automate schema. * @type {z.ZodObject} */ export declare const RouterConfigSchema: z.ZodObject; to: z.ZodDefault; priority: z.ZodDefault>; device: z.ZodOptional; payload: z.ZodDefault, z.ZodString]>>; }, { maxAttempts: z.ZodDefault; delay: z.ZodDefault; ipdata: z.ZodDefault; fields: z.ZodDefault, "many">>; }, "strip", z.ZodTypeAny, { key: string; fields: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[]; }, { key?: string | undefined; fields?: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[] | undefined; }>>; }>, "strip", z.ZodTypeAny, { device?: string | undefined; secret: string; to: string; priority: "normal" | "high"; payload: string; maxAttempts: number; delay: number; ipdata: { key: string; fields: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[]; }; }, { secret?: string | undefined; to?: string | undefined; priority?: "normal" | "high" | undefined; device?: string | undefined; payload?: string | undefined; maxAttempts?: number | undefined; delay?: number | undefined; ipdata?: { key?: string | undefined; fields?: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[] | undefined; } | undefined; }>; /** * Define a partial of the base router config to allow passing incomplete configs. * @type {z.ZodObject} */ export declare const PartialRouterConfigSchema: z.ZodObject<{ secret: z.ZodOptional>; to: z.ZodOptional>; priority: z.ZodOptional>>; device: z.ZodOptional>; payload: z.ZodOptional, z.ZodString]>>>; maxAttempts: z.ZodOptional>; delay: z.ZodOptional>; ipdata: z.ZodOptional; fields: z.ZodDefault, "many">>; }, "strip", z.ZodTypeAny, { key: string; fields: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[]; }, { key?: string | undefined; fields?: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[] | undefined; }>>>; }, "strip", z.ZodTypeAny, { secret?: string | undefined; to?: string | undefined; priority?: "normal" | "high" | undefined; device?: string | undefined; payload?: string | undefined; maxAttempts?: number | undefined; delay?: number | undefined; ipdata?: { key: string; fields: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[]; } | undefined; }, { secret?: string | undefined; to?: string | undefined; priority?: "normal" | "high" | undefined; device?: string | undefined; payload?: string | undefined; maxAttempts?: number | undefined; delay?: number | undefined; ipdata?: { key?: string | undefined; fields?: ("ip" | "city" | "region" | "region_code" | "postal" | "country_name" | "country_code" | "asn" | "carrier" | "time_zone" | "threat")[] | undefined; } | undefined; }>; /** * Define the schema for an expected response from the IPData vendor service. * @type {z.ZodObject} */ export declare const IpDataResponseSchema: z.ZodObject<{ ip: z.ZodString; city: z.ZodOptional; region: z.ZodOptional; region_code: z.ZodOptional; country_name: z.ZodOptional; country_code: z.ZodOptional; postal: z.ZodOptional; time_zone: z.ZodOptional>; threat: z.ZodOptional>; statusCode: z.ZodOptional; statusMessage: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; region?: string | undefined; region_code?: string | undefined; postal?: string | undefined; country_name?: string | undefined; country_code?: string | undefined; time_zone?: { name: string; abbr: string; offset: string; is_dst: boolean; current_time: string; } | undefined; threat?: { is_tor: boolean; is_proxy: boolean; is_anonymous: boolean; is_known_attacker: boolean; is_known_abuser: boolean; is_threat: boolean; is_bogon: boolean; } | undefined; statusCode?: number | undefined; statusMessage?: string | undefined; ip: string; }, { city?: string | undefined; region?: string | undefined; region_code?: string | undefined; postal?: string | undefined; country_name?: string | undefined; country_code?: string | undefined; time_zone?: { name: string; abbr: string; offset: string; is_dst: boolean; current_time: string; } | undefined; threat?: { is_tor: boolean; is_proxy: boolean; is_anonymous: boolean; is_known_attacker: boolean; is_known_abuser: boolean; is_threat: boolean; is_bogon: boolean; } | undefined; statusCode?: number | undefined; statusMessage?: string | undefined; ip: string; }>; /** * Define the shape of IP history records. * @type {z.ZodObject} */ export declare const IpHistorySchema: z.ZodObject; region: z.ZodOptional; region_code: z.ZodOptional; country_name: z.ZodOptional; country_code: z.ZodOptional; postal: z.ZodOptional; time_zone: z.ZodOptional>; threat: z.ZodOptional>; statusCode: z.ZodOptional; statusMessage: z.ZodOptional; }, { ip: z.ZodString; timestamp: z.ZodNumber; }>, "strip", z.ZodTypeAny, { city?: string | undefined; region?: string | undefined; region_code?: string | undefined; postal?: string | undefined; country_name?: string | undefined; country_code?: string | undefined; time_zone?: { name: string; abbr: string; offset: string; is_dst: boolean; current_time: string; } | undefined; threat?: { is_tor: boolean; is_proxy: boolean; is_anonymous: boolean; is_known_attacker: boolean; is_known_abuser: boolean; is_threat: boolean; is_bogon: boolean; } | undefined; statusCode?: number | undefined; statusMessage?: string | undefined; ip: string; timestamp: number; }, { city?: string | undefined; region?: string | undefined; region_code?: string | undefined; postal?: string | undefined; country_name?: string | undefined; country_code?: string | undefined; time_zone?: { name: string; abbr: string; offset: string; is_dst: boolean; current_time: string; } | undefined; threat?: { is_tor: boolean; is_proxy: boolean; is_anonymous: boolean; is_known_attacker: boolean; is_known_abuser: boolean; is_threat: boolean; is_bogon: boolean; } | undefined; statusCode?: number | undefined; statusMessage?: string | undefined; ip: string; timestamp: number; }>; //# sourceMappingURL=schemas.d.ts.map