@cdwr/fly-node
Version:
The flyctl node wrapper for programmatic deployments to fly.io.
415 lines (414 loc) • 10.4 kB
TypeScript
import { z } from 'zod';
/**
* Fly status response schema
*
* ```ts
* fly status --app [name] --json
* ```
*/
export declare const statusFlyResponseSchema: 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;
}, "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;
}[];
}, {
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;
}[];
}>;
/**
* Transformed status response schema
*
* ```ts
* fly status --app [name] --json
* ```
*/
export declare const StatusTransformedResponseSchema: 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;
}, "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;
}[];
}, {
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;
}[];
}>, {
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;
}[];
}, unknown>;