@cdwr/fly-node
Version:
The flyctl node wrapper for programmatic deployments to fly.io.
255 lines (254 loc) • 6.23 kB
TypeScript
import { z } from 'zod';
/**
* status response extended with domains and secrets
*/
export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
deployed: z.ZodBoolean;
hostname: z.ZodString;
id: z.ZodString;
machines: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
state: z.ZodString;
region: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
config: z.ZodObject<{
env: z.ZodRecord<z.ZodString, z.ZodString>;
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
}, "strip", z.ZodTypeAny, {
env: Record<string, string>;
metadata: Record<string, string>;
}, {
env: Record<string, string>;
metadata: Record<string, string>;
}>;
events: z.ZodArray<z.ZodObject<{
type: z.ZodString;
status: z.ZodString;
timestamp: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: string;
status: string;
timestamp: number;
}, {
type: string;
status: string;
timestamp: number;
}>, "many">;
checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
status: z.ZodString;
output: z.ZodString;
updatedAt: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
status: string;
updatedAt: string;
output: string;
}, {
name: string;
status: string;
updatedAt: string;
output: string;
}>, "many">>;
hostStatus: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
createdAt: string;
state: string;
region: string;
updatedAt: string;
config: {
env: Record<string, string>;
metadata: Record<string, string>;
};
events: {
type: string;
status: string;
timestamp: number;
}[];
hostStatus: string;
checks?: {
name: string;
status: string;
updatedAt: string;
output: string;
}[] | undefined;
}, {
name: string;
id: string;
createdAt: string;
state: string;
region: string;
updatedAt: string;
config: {
env: Record<string, string>;
metadata: Record<string, string>;
};
events: {
type: string;
status: string;
timestamp: number;
}[];
hostStatus: string;
checks?: {
name: string;
status: string;
updatedAt: string;
output: string;
}[] | undefined;
}>, "many">;
name: z.ZodString;
organization: z.ZodObject<{
id: z.ZodString;
slug: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
slug: string;
}, {
id: string;
slug: string;
}>;
status: z.ZodString;
version: z.ZodNumber;
} & {
domains: z.ZodArray<z.ZodObject<{
hostname: z.ZodString;
}, "strip", z.ZodTypeAny, {
hostname: string;
}, {
hostname: string;
}>, "many">;
secrets: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
status: string;
id: string;
deployed: boolean;
hostname: string;
organization: {
id: string;
slug: string;
};
version: number;
machines: {
name: string;
id: string;
createdAt: string;
state: string;
region: string;
updatedAt: string;
config: {
env: Record<string, string>;
metadata: Record<string, string>;
};
events: {
type: string;
status: string;
timestamp: number;
}[];
hostStatus: string;
checks?: {
name: string;
status: string;
updatedAt: string;
output: string;
}[] | undefined;
}[];
domains: {
hostname: string;
}[];
secrets: {
name: string;
}[];
}, {
name: string;
status: string;
id: string;
deployed: boolean;
hostname: string;
organization: {
id: string;
slug: string;
};
version: number;
machines: {
name: string;
id: string;
createdAt: string;
state: string;
region: string;
updatedAt: string;
config: {
env: Record<string, string>;
metadata: Record<string, string>;
};
events: {
type: string;
status: string;
timestamp: number;
}[];
hostStatus: string;
checks?: {
name: string;
status: string;
updatedAt: string;
output: string;
}[] | undefined;
}[];
domains: {
hostname: string;
}[];
secrets: {
name: string;
}[];
}>, {
name: string;
status: string;
id: string;
deployed: boolean;
hostname: string;
organization: {
id: string;
slug: string;
};
version: number;
machines: {
name: string;
id: string;
createdAt: string;
state: string;
region: string;
updatedAt: string;
config: {
env: Record<string, string>;
metadata: Record<string, string>;
};
events: {
type: string;
status: string;
timestamp: number;
}[];
hostStatus: string;
checks?: {
name: string;
status: string;
updatedAt: string;
output: string;
}[] | undefined;
}[];
domains: {
hostname: string;
}[];
secrets: {
name: string;
}[];
}, unknown>;