@cdwr/fly-node 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,81 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Fly config show response schema
4
+ *
5
+ * ```ts
6
+ * fly config show --app [name] --config [path]
7
+ * ```
8
+ */
9
+ export declare const ConfigShowResponseSchema: z.ZodEffects<z.ZodObject<{
10
+ app: z.ZodString;
11
+ primaryRegion: z.ZodOptional<z.ZodString>;
12
+ build: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodObject<{
13
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14
+ dockerfile: z.ZodOptional<z.ZodString>;
15
+ image: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ dockerfile?: string | undefined;
18
+ args?: Record<string, string> | undefined;
19
+ image?: string | undefined;
20
+ }, {
21
+ dockerfile?: string | undefined;
22
+ args?: Record<string, string> | undefined;
23
+ image?: string | undefined;
24
+ }>]>;
25
+ deploy: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodObject<{
26
+ strategy: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ strategy?: string | undefined;
29
+ }, {
30
+ strategy?: string | undefined;
31
+ }>]>;
32
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
+ httpService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
34
+ mounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
35
+ services: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ app: string;
38
+ env?: Record<string, string> | undefined;
39
+ primaryRegion?: string | undefined;
40
+ build?: Record<string, any> | {
41
+ dockerfile?: string | undefined;
42
+ args?: Record<string, string> | undefined;
43
+ image?: string | undefined;
44
+ } | undefined;
45
+ deploy?: Record<string, any> | {
46
+ strategy?: string | undefined;
47
+ } | undefined;
48
+ httpService?: Record<string, any> | undefined;
49
+ mounts?: Record<string, any> | undefined;
50
+ services?: Record<string, any>[] | undefined;
51
+ }, {
52
+ app: string;
53
+ env?: Record<string, string> | undefined;
54
+ primaryRegion?: string | undefined;
55
+ build?: Record<string, any> | {
56
+ dockerfile?: string | undefined;
57
+ args?: Record<string, string> | undefined;
58
+ image?: string | undefined;
59
+ } | undefined;
60
+ deploy?: Record<string, any> | {
61
+ strategy?: string | undefined;
62
+ } | undefined;
63
+ httpService?: Record<string, any> | undefined;
64
+ mounts?: Record<string, any> | undefined;
65
+ services?: Record<string, any>[] | undefined;
66
+ }>, {
67
+ app: string;
68
+ env?: Record<string, string> | undefined;
69
+ primaryRegion?: string | undefined;
70
+ build?: Record<string, any> | {
71
+ dockerfile?: string | undefined;
72
+ args?: Record<string, string> | undefined;
73
+ image?: string | undefined;
74
+ } | undefined;
75
+ deploy?: Record<string, any> | {
76
+ strategy?: string | undefined;
77
+ } | undefined;
78
+ httpService?: Record<string, any> | undefined;
79
+ mounts?: Record<string, any> | undefined;
80
+ services?: Record<string, any>[] | undefined;
81
+ }, unknown>;
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Deploy application response
4
+ */
5
+ export declare const DeployResponseSchema: z.ZodObject<{
6
+ app: z.ZodString;
7
+ hostname: z.ZodString;
8
+ url: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ hostname: string;
11
+ app: string;
12
+ url: string;
13
+ }, {
14
+ hostname: string;
15
+ app: string;
16
+ url: string;
17
+ }>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A url that can be empty
4
+ */
5
+ export declare const AllowEmptyUrlSchema: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
6
+ /**
7
+ * A valid Fly app name
8
+ */
9
+ export declare const NameSchema: z.ZodString;
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Transformed postgres list response schema
4
+ *
5
+ * ```ts
6
+ * fly postgres list --json
7
+ * ```
8
+ */
9
+ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
10
+ deployed: z.ZodBoolean;
11
+ hostname: z.ZodString;
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ organization: z.ZodObject<{
15
+ id: z.ZodString;
16
+ slug: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ slug: string;
20
+ }, {
21
+ id: string;
22
+ slug: string;
23
+ }>;
24
+ status: z.ZodString;
25
+ version: z.ZodNumber;
26
+ }, "strip", z.ZodTypeAny, {
27
+ name: string;
28
+ status: string;
29
+ id: string;
30
+ organization: {
31
+ id: string;
32
+ slug: string;
33
+ };
34
+ deployed: boolean;
35
+ hostname: string;
36
+ version: number;
37
+ }, {
38
+ name: string;
39
+ status: string;
40
+ id: string;
41
+ organization: {
42
+ id: string;
43
+ slug: string;
44
+ };
45
+ deployed: boolean;
46
+ hostname: string;
47
+ version: number;
48
+ }>, {
49
+ name: string;
50
+ status: string;
51
+ id: string;
52
+ organization: {
53
+ id: string;
54
+ slug: string;
55
+ };
56
+ deployed: boolean;
57
+ hostname: string;
58
+ version: number;
59
+ }, unknown>, "many">;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Transformed postgres users list response schema
4
+ *
5
+ * ```ts
6
+ * fly postgres users list --app [name] --json
7
+ * ```
8
+ */
9
+ export declare const PostgresUsersListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
10
+ username: z.ZodString;
11
+ superuser: z.ZodBoolean;
12
+ databases: z.ZodArray<z.ZodString, "many">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ username: string;
15
+ superuser: boolean;
16
+ databases: string[];
17
+ }, {
18
+ username: string;
19
+ superuser: boolean;
20
+ databases: string[];
21
+ }>, {
22
+ username: string;
23
+ superuser: boolean;
24
+ databases: string[];
25
+ }, unknown>, "many">;
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * secrets list response extended with application name
4
+ */
5
+ export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
6
+ name: z.ZodString;
7
+ digest: z.ZodString;
8
+ createdAt: z.ZodString;
9
+ }, {
10
+ app: z.ZodString;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ createdAt: string;
14
+ app: string;
15
+ digest: string;
16
+ }, {
17
+ name: string;
18
+ createdAt: string;
19
+ app: string;
20
+ digest: string;
21
+ }>, {
22
+ name: string;
23
+ createdAt: string;
24
+ app: string;
25
+ digest: string;
26
+ }, unknown>, "many">;
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Fly secrets list response element schema
4
+ *
5
+ * ```ts
6
+ * fly secrets list --app [name] --json
7
+ * ```
8
+ */
9
+ export declare const SecretsListFlyResponseElementSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ digest: z.ZodString;
12
+ createdAt: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ createdAt: string;
16
+ digest: string;
17
+ }, {
18
+ name: string;
19
+ createdAt: string;
20
+ digest: string;
21
+ }>;
22
+ /**
23
+ * Transformed secrets list response schema
24
+ *
25
+ * ```ts
26
+ * fly secrets list --app [name] --json
27
+ * ```
28
+ */
29
+ export declare const SecretsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
30
+ name: z.ZodString;
31
+ digest: z.ZodString;
32
+ createdAt: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ name: string;
35
+ createdAt: string;
36
+ digest: string;
37
+ }, {
38
+ name: string;
39
+ createdAt: string;
40
+ digest: string;
41
+ }>, {
42
+ name: string;
43
+ createdAt: string;
44
+ digest: string;
45
+ }, unknown>, "many">;
@@ -0,0 +1,254 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * status response extended with domains and secrets
4
+ */
5
+ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
6
+ deployed: z.ZodBoolean;
7
+ hostname: z.ZodString;
8
+ id: z.ZodString;
9
+ machines: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodString;
12
+ state: z.ZodString;
13
+ region: z.ZodString;
14
+ createdAt: z.ZodString;
15
+ updatedAt: z.ZodString;
16
+ config: z.ZodObject<{
17
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ env: Record<string, string>;
21
+ metadata: Record<string, string>;
22
+ }, {
23
+ env: Record<string, string>;
24
+ metadata: Record<string, string>;
25
+ }>;
26
+ events: z.ZodArray<z.ZodObject<{
27
+ type: z.ZodString;
28
+ status: z.ZodString;
29
+ timestamp: z.ZodNumber;
30
+ }, "strip", z.ZodTypeAny, {
31
+ type: string;
32
+ status: string;
33
+ timestamp: number;
34
+ }, {
35
+ type: string;
36
+ status: string;
37
+ timestamp: number;
38
+ }>, "many">;
39
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
+ name: z.ZodString;
41
+ status: z.ZodString;
42
+ output: z.ZodString;
43
+ updatedAt: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ name: string;
46
+ status: string;
47
+ updatedAt: string;
48
+ output: string;
49
+ }, {
50
+ name: string;
51
+ status: string;
52
+ updatedAt: string;
53
+ output: string;
54
+ }>, "many">>;
55
+ hostStatus: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ name: string;
58
+ id: string;
59
+ createdAt: string;
60
+ state: string;
61
+ region: string;
62
+ updatedAt: string;
63
+ config: {
64
+ env: Record<string, string>;
65
+ metadata: Record<string, string>;
66
+ };
67
+ events: {
68
+ type: string;
69
+ status: string;
70
+ timestamp: number;
71
+ }[];
72
+ hostStatus: string;
73
+ checks?: {
74
+ name: string;
75
+ status: string;
76
+ updatedAt: string;
77
+ output: string;
78
+ }[] | undefined;
79
+ }, {
80
+ name: string;
81
+ id: string;
82
+ createdAt: string;
83
+ state: string;
84
+ region: string;
85
+ updatedAt: string;
86
+ config: {
87
+ env: Record<string, string>;
88
+ metadata: Record<string, string>;
89
+ };
90
+ events: {
91
+ type: string;
92
+ status: string;
93
+ timestamp: number;
94
+ }[];
95
+ hostStatus: string;
96
+ checks?: {
97
+ name: string;
98
+ status: string;
99
+ updatedAt: string;
100
+ output: string;
101
+ }[] | undefined;
102
+ }>, "many">;
103
+ name: z.ZodString;
104
+ organization: z.ZodObject<{
105
+ id: z.ZodString;
106
+ slug: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ id: string;
109
+ slug: string;
110
+ }, {
111
+ id: string;
112
+ slug: string;
113
+ }>;
114
+ status: z.ZodString;
115
+ version: z.ZodNumber;
116
+ }, {
117
+ domains: z.ZodArray<z.ZodObject<{
118
+ hostname: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ hostname: string;
121
+ }, {
122
+ hostname: string;
123
+ }>, "many">;
124
+ secrets: z.ZodArray<z.ZodObject<{
125
+ name: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ name: string;
128
+ }, {
129
+ name: string;
130
+ }>, "many">;
131
+ }>, "strip", z.ZodTypeAny, {
132
+ name: string;
133
+ status: string;
134
+ id: string;
135
+ organization: {
136
+ id: string;
137
+ slug: string;
138
+ };
139
+ deployed: boolean;
140
+ hostname: string;
141
+ version: number;
142
+ machines: {
143
+ name: string;
144
+ id: string;
145
+ createdAt: string;
146
+ state: string;
147
+ region: string;
148
+ updatedAt: string;
149
+ config: {
150
+ env: Record<string, string>;
151
+ metadata: Record<string, string>;
152
+ };
153
+ events: {
154
+ type: string;
155
+ status: string;
156
+ timestamp: number;
157
+ }[];
158
+ hostStatus: string;
159
+ checks?: {
160
+ name: string;
161
+ status: string;
162
+ updatedAt: string;
163
+ output: string;
164
+ }[] | undefined;
165
+ }[];
166
+ domains: {
167
+ hostname: string;
168
+ }[];
169
+ secrets: {
170
+ name: string;
171
+ }[];
172
+ }, {
173
+ name: string;
174
+ status: string;
175
+ id: string;
176
+ organization: {
177
+ id: string;
178
+ slug: string;
179
+ };
180
+ deployed: boolean;
181
+ hostname: string;
182
+ version: number;
183
+ machines: {
184
+ name: string;
185
+ id: string;
186
+ createdAt: string;
187
+ state: string;
188
+ region: string;
189
+ updatedAt: string;
190
+ config: {
191
+ env: Record<string, string>;
192
+ metadata: Record<string, string>;
193
+ };
194
+ events: {
195
+ type: string;
196
+ status: string;
197
+ timestamp: number;
198
+ }[];
199
+ hostStatus: string;
200
+ checks?: {
201
+ name: string;
202
+ status: string;
203
+ updatedAt: string;
204
+ output: string;
205
+ }[] | undefined;
206
+ }[];
207
+ domains: {
208
+ hostname: string;
209
+ }[];
210
+ secrets: {
211
+ name: string;
212
+ }[];
213
+ }>, {
214
+ name: string;
215
+ status: string;
216
+ id: string;
217
+ organization: {
218
+ id: string;
219
+ slug: string;
220
+ };
221
+ deployed: boolean;
222
+ hostname: string;
223
+ version: number;
224
+ machines: {
225
+ name: string;
226
+ id: string;
227
+ createdAt: string;
228
+ state: string;
229
+ region: string;
230
+ updatedAt: string;
231
+ config: {
232
+ env: Record<string, string>;
233
+ metadata: Record<string, string>;
234
+ };
235
+ events: {
236
+ type: string;
237
+ status: string;
238
+ timestamp: number;
239
+ }[];
240
+ hostStatus: string;
241
+ checks?: {
242
+ name: string;
243
+ status: string;
244
+ updatedAt: string;
245
+ output: string;
246
+ }[] | undefined;
247
+ }[];
248
+ domains: {
249
+ hostname: string;
250
+ }[];
251
+ secrets: {
252
+ name: string;
253
+ }[];
254
+ }, unknown>;