@takashito/linode-mcp-server
Version:
MCP server for Linode API
1,624 lines • 53.8 kB
TypeScript
import { z } from 'zod';
export declare const ipAddressSchema: z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>;
export declare const ipAddressesResponseSchema: z.ZodObject<{
ipv4: z.ZodObject<{
public: z.ZodArray<z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>, "many">;
private: z.ZodArray<z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>, "many">;
shared: z.ZodArray<z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>, "many">;
}, "strip", z.ZodTypeAny, {
public: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
private: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
shared: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
}, {
public: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
private: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
shared: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
}>;
ipv6: z.ZodObject<{
slaac: z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>;
link_local: z.ZodObject<{
address: z.ZodString;
gateway: z.ZodNullable<z.ZodString>;
subnet_mask: z.ZodNullable<z.ZodString>;
prefix: z.ZodNullable<z.ZodNumber>;
type: z.ZodString;
public: z.ZodBoolean;
rdns: z.ZodNullable<z.ZodString>;
linode_id: z.ZodNullable<z.ZodNumber>;
region: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}, {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}>;
ranges: z.ZodArray<z.ZodObject<{
range: z.ZodString;
region: z.ZodString;
prefix: z.ZodNumber;
route_target: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}>, "many">;
}, "strip", z.ZodTypeAny, {
slaac: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
link_local: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
ranges: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
}, {
slaac: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
link_local: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
ranges: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
}>;
}, "strip", z.ZodTypeAny, {
ipv4: {
public: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
private: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
shared: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
};
ipv6: {
slaac: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
link_local: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
ranges: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
};
}, {
ipv4: {
public: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
private: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
shared: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
}[];
};
ipv6: {
slaac: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
link_local: {
public: boolean;
type: string;
region: string | null;
linode_id: number | null;
address: string;
rdns: string | null;
gateway: string | null;
subnet_mask: string | null;
prefix: number | null;
};
ranges: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
};
}>;
export declare const ipv6RangeSchema: z.ZodObject<{
range: z.ZodString;
prefix: z.ZodNumber;
region: z.ZodString;
route_target: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}>;
export declare const ipv6PoolSchema: z.ZodObject<{
range: z.ZodString;
prefix: z.ZodNumber;
region: z.ZodString;
}, "strip", z.ZodTypeAny, {
region: string;
prefix: number;
range: string;
}, {
region: string;
prefix: number;
range: string;
}>;
export declare const allocateIPSchema: z.ZodObject<{
type: z.ZodLiteral<"ipv4">;
public: z.ZodBoolean;
linode_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
public: boolean;
type: "ipv4";
linode_id: number;
}, {
public: boolean;
type: "ipv4";
linode_id: number;
}>;
export declare const updateIPSchema: z.ZodObject<{
address: z.ZodString;
rdns: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
address: string;
rdns: string | null;
}, {
address: string;
rdns: string | null;
}>;
export declare const shareIPsSchema: z.ZodObject<{
linode_id: z.ZodNumber;
ips: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
linode_id: number;
ips: string[];
}, {
linode_id: number;
ips: string[];
}>;
export declare const firewallRuleSchema: z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>;
export declare const firewallRulesSchema: z.ZodObject<{
inbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
outbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
outbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}>;
export declare const firewallSchema: z.ZodObject<{
id: z.ZodNumber;
label: z.ZodString;
created: z.ZodString;
updated: z.ZodString;
status: z.ZodString;
rules: z.ZodObject<{
inbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
outbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
outbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}>;
tags: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}, {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}>;
export declare const firewallDeviceSchema: z.ZodObject<{
id: z.ZodNumber;
entity_id: z.ZodNumber;
type: z.ZodEnum<["linode", "nodebalancer"]>;
label: z.ZodString;
url: z.ZodString;
created: z.ZodString;
updated: z.ZodString;
}, "strip", z.ZodTypeAny, {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}, {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}>;
export declare const vlanSchema: z.ZodObject<{
id: z.ZodString;
description: z.ZodString;
region: z.ZodString;
linodes: z.ZodArray<z.ZodNumber, "many">;
created: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}, {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}>;
export declare const firewallsResponseSchema: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
label: z.ZodString;
created: z.ZodString;
updated: z.ZodString;
status: z.ZodString;
rules: z.ZodObject<{
inbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
outbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
outbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}>;
tags: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}, {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}>, "many">;
page: z.ZodNumber;
pages: z.ZodNumber;
results: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
data: {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}[];
pages: number;
results: number;
}, {
page: number;
data: {
label: string;
status: string;
id: number;
created: string;
updated: string;
tags: string[];
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
}[];
pages: number;
results: number;
}>;
export declare const firewallDevicesResponseSchema: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
entity_id: z.ZodNumber;
type: z.ZodEnum<["linode", "nodebalancer"]>;
label: z.ZodString;
url: z.ZodString;
created: z.ZodString;
updated: z.ZodString;
}, "strip", z.ZodTypeAny, {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}, {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}>, "many">;
page: z.ZodNumber;
pages: z.ZodNumber;
results: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
data: {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}[];
pages: number;
results: number;
}, {
page: number;
data: {
label: string;
url: string;
type: "linode" | "nodebalancer";
id: number;
created: string;
updated: string;
entity_id: number;
}[];
pages: number;
results: number;
}>;
export declare const ipv6RangesResponseSchema: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
range: z.ZodString;
prefix: z.ZodNumber;
region: z.ZodString;
route_target: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}, {
region: string;
prefix: number;
range: string;
route_target: string | null;
}>, "many">;
page: z.ZodNumber;
pages: z.ZodNumber;
results: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
data: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
pages: number;
results: number;
}, {
page: number;
data: {
region: string;
prefix: number;
range: string;
route_target: string | null;
}[];
pages: number;
results: number;
}>;
export declare const ipv6PoolsResponseSchema: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
range: z.ZodString;
prefix: z.ZodNumber;
region: z.ZodString;
}, "strip", z.ZodTypeAny, {
region: string;
prefix: number;
range: string;
}, {
region: string;
prefix: number;
range: string;
}>, "many">;
page: z.ZodNumber;
pages: z.ZodNumber;
results: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
data: {
region: string;
prefix: number;
range: string;
}[];
pages: number;
results: number;
}, {
page: number;
data: {
region: string;
prefix: number;
range: string;
}[];
pages: number;
results: number;
}>;
export declare const vlansResponseSchema: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
id: z.ZodString;
description: z.ZodString;
region: z.ZodString;
linodes: z.ZodArray<z.ZodNumber, "many">;
created: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}, {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}>, "many">;
page: z.ZodNumber;
pages: z.ZodNumber;
results: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
page: number;
data: {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}[];
pages: number;
results: number;
}, {
page: number;
data: {
id: string;
region: string;
created: string;
description: string;
linodes: number[];
}[];
pages: number;
results: number;
}>;
export declare const getIPAddressesSchema: z.ZodObject<{
page: z.ZodOptional<z.ZodNumber>;
page_size: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page?: number | undefined;
page_size?: number | undefined;
}, {
page?: number | undefined;
page_size?: number | undefined;
}>;
export declare const getIPAddressSchema: z.ZodObject<{
address: z.ZodString;
}, "strip", z.ZodTypeAny, {
address: string;
}, {
address: string;
}>;
export declare const getIPv6RangesSchema: z.ZodObject<{
page: z.ZodOptional<z.ZodNumber>;
page_size: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page?: number | undefined;
page_size?: number | undefined;
}, {
page?: number | undefined;
page_size?: number | undefined;
}>;
export declare const getIPv6RangeSchema: z.ZodObject<{
range: z.ZodString;
}, "strip", z.ZodTypeAny, {
range: string;
}, {
range: string;
}>;
export declare const getIPv6PoolsSchema: z.ZodObject<{
page: z.ZodOptional<z.ZodNumber>;
page_size: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page?: number | undefined;
page_size?: number | undefined;
}, {
page?: number | undefined;
page_size?: number | undefined;
}>;
export declare const getVLANsSchema: z.ZodObject<{
page: z.ZodOptional<z.ZodNumber>;
page_size: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page?: number | undefined;
page_size?: number | undefined;
}, {
page?: number | undefined;
page_size?: number | undefined;
}>;
export declare const getVLANSchema: z.ZodObject<{
regionId: z.ZodString;
label: z.ZodString;
}, "strip", z.ZodTypeAny, {
label: string;
regionId: string;
}, {
label: string;
regionId: string;
}>;
export declare const getFirewallsSchema: z.ZodObject<{
page: z.ZodOptional<z.ZodNumber>;
page_size: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
page?: number | undefined;
page_size?: number | undefined;
}, {
page?: number | undefined;
page_size?: number | undefined;
}>;
export declare const getFirewallSchema: z.ZodObject<{
id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
id: number;
}, {
id: number;
}>;
export declare const createFirewallSchema: z.ZodObject<{
label: z.ZodString;
rules: z.ZodObject<{
inbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
outbound_policy: z.ZodEnum<["ACCEPT", "DROP"]>;
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
outbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}, {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}, {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
}>;
devices: z.ZodOptional<z.ZodObject<{
linodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
nodebalancers: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
}, "strip", z.ZodTypeAny, {
linodes?: number[] | undefined;
nodebalancers?: number[] | undefined;
}, {
linodes?: number[] | undefined;
nodebalancers?: number[] | undefined;
}>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
label: string;
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
devices?: {
linodes?: number[] | undefined;
nodebalancers?: number[] | undefined;
} | undefined;
tags?: string[] | undefined;
}, {
label: string;
rules: {
inbound_policy: "ACCEPT" | "DROP";
outbound_policy: "ACCEPT" | "DROP";
inbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
outbound?: {
ports: string;
protocol: "TCP" | "UDP" | "ICMP";
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
action: "ACCEPT" | "DROP";
}[] | undefined;
};
devices?: {
linodes?: number[] | undefined;
nodebalancers?: number[] | undefined;
} | undefined;
tags?: string[] | undefined;
}>;
export declare const updateFirewallSchema: z.ZodObject<{
id: z.ZodNumber;
label: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
status: z.ZodOptional<z.ZodEnum<["enabled", "disabled"]>>;
}, "strip", z.ZodTypeAny, {
id: number;
label?: string | undefined;
status?: "enabled" | "disabled" | undefined;
tags?: string[] | undefined;
}, {
id: number;
label?: string | undefined;
status?: "enabled" | "disabled" | undefined;
tags?: string[] | undefined;
}>;
export declare const deleteFirewallSchema: z.ZodObject<{
id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
id: number;
}, {
id: number;
}>;
export declare const getFirewallRulesSchema: z.ZodObject<{
firewallId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
firewallId: number;
}, {
firewallId: number;
}>;
export declare const updateFirewallRulesSchema: z.ZodObject<{
firewallId: z.ZodNumber;
inbound_policy: z.ZodOptional<z.ZodEnum<["ACCEPT", "DROP"]>>;
outbound_policy: z.ZodOptional<z.ZodEnum<["ACCEPT", "DROP"]>>;
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
ports: z.ZodString;
protocol: z.ZodEnum<["TCP", "UDP", "ICMP"]>;
addresses: z.ZodObject<{
ipv4: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ipv6: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}, {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
}>;
action: z.ZodEnum<["ACCEPT", "DROP"]>;
}, "strip", z.ZodTypeAny, {
ports: string;
prot