@cdwr/fly-node 0.2.3 → 0.3.1

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.
@@ -9,35 +9,13 @@ import { z } from 'zod';
9
9
  export declare const AppsCreateTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  name: z.ZodString;
12
- organization: z.ZodObject<{
13
- id: z.ZodString;
14
- name: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
16
- name: string;
17
- id: string;
18
- }, {
19
- name: string;
20
- id: string;
21
- }>;
22
12
  }, "strip", z.ZodTypeAny, {
23
- name: string;
24
13
  id: string;
25
- organization: {
26
- name: string;
27
- id: string;
28
- };
29
- }, {
30
14
  name: string;
15
+ }, {
31
16
  id: string;
32
- organization: {
33
- name: string;
34
- id: string;
35
- };
36
- }>, {
37
17
  name: string;
18
+ }>, {
38
19
  id: string;
39
- organization: {
40
- name: string;
41
- id: string;
42
- };
20
+ name: string;
43
21
  }, unknown>;
@@ -26,52 +26,52 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
26
26
  status: z.ZodString;
27
27
  createdAt: z.ZodString;
28
28
  }, "strip", z.ZodTypeAny, {
29
- status: string;
30
29
  createdAt: string;
31
- }, {
32
30
  status: string;
31
+ }, {
33
32
  createdAt: string;
33
+ status: string;
34
34
  }>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- name: string;
37
- status: string;
36
+ hostname: string;
38
37
  id: string;
38
+ status: string;
39
+ name: string;
40
+ deployed: boolean;
39
41
  organization: {
40
42
  name: string;
41
43
  slug: string;
42
44
  };
43
- deployed: boolean;
44
- hostname: string;
45
45
  currentRelease: {
46
- status: string;
47
46
  createdAt: string;
47
+ status: string;
48
48
  } | null;
49
49
  }, {
50
- name: string;
51
- status: string;
50
+ hostname: string;
52
51
  id: string;
52
+ status: string;
53
+ name: string;
54
+ deployed: boolean;
53
55
  organization: {
54
56
  name: string;
55
57
  slug: string;
56
58
  };
57
- deployed: boolean;
58
- hostname: string;
59
59
  currentRelease: {
60
- status: string;
61
60
  createdAt: string;
61
+ status: string;
62
62
  } | null;
63
63
  }>, {
64
- name: string;
65
- status: string;
64
+ hostname: string;
66
65
  id: string;
66
+ status: string;
67
+ name: string;
68
+ deployed: boolean;
67
69
  organization: {
68
70
  name: string;
69
71
  slug: string;
70
72
  };
71
- deployed: boolean;
72
- hostname: string;
73
73
  currentRelease: {
74
- status: string;
75
74
  createdAt: string;
75
+ status: string;
76
76
  } | null;
77
77
  }, unknown>, "many">;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const BuildResponseSchema: z.ZodObject<{
3
+ appName: z.ZodString;
4
+ imageRef: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ appName: string;
7
+ imageRef: string;
8
+ }, {
9
+ appName: string;
10
+ imageRef: string;
11
+ }>;
@@ -0,0 +1,392 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A certificate as the Fly GraphQL API returns it.
4
+ *
5
+ * Field names are Fly's own, verbatim — `isConfigured` rather than a friendlier
6
+ * `configured` — so anything read here can be cross-referenced against Fly's
7
+ * schema without a translation step. The CLI schemas in this package normalise
8
+ * CLI output instead; where the two overlap (`hostname`, `clientStatus`,
9
+ * `createdAt`) they agree.
10
+ *
11
+ * Strict about the fields a caller acts on and tolerant about the rest: Fly
12
+ * owns this schema, and a domains screen should not stop rendering because a
13
+ * peripheral field changed shape.
14
+ */
15
+ export declare const CertificateApiResponseSchema: z.ZodObject<{
16
+ hostname: z.ZodString;
17
+ /** Issued and serving. This is what decides whether a domain is usable */
18
+ isConfigured: z.ZodBoolean;
19
+ id: z.ZodOptional<z.ZodString>;
20
+ /** The apex or a subdomain — apex domains cannot use a CNAME */
21
+ isApex: z.ZodOptional<z.ZodBoolean>;
22
+ isWildcard: z.ZodOptional<z.ZodBoolean>;
23
+ /** Which ACME challenge has been satisfied, if any */
24
+ isAcmeDnsConfigured: z.ZodOptional<z.ZodBoolean>;
25
+ isAcmeAlpnConfigured: z.ZodOptional<z.ZodBoolean>;
26
+ isAcmeHttpConfigured: z.ZodOptional<z.ZodBoolean>;
27
+ certificateAuthority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ certificateRequestedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ /** Hostname the validation record must be created on */
33
+ dnsValidationHostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ /** Value that record must contain */
35
+ dnsValidationTarget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ /** Fly's own prose describing the records to create */
37
+ dnsValidationInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ /** Fly's summary of where issuance has got to */
39
+ clientStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ /**
41
+ * Set when Let's Encrypt has rate-limited further attempts for this domain.
42
+ *
43
+ * Worth surfacing rather than swallowing: it is the one failure a customer
44
+ * cannot fix by correcting DNS, and retrying only makes it worse.
45
+ */
46
+ rateLimitedUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ /**
49
+ * Fly's own prose for a failed issuance attempt — what the dashboard shows,
50
+ * unlike `HostnameCheck.errors`, which is SCREAMING_SNAKE_CASE codes
51
+ */
52
+ validationErrors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ message: z.ZodString;
54
+ timestamp: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ message: string;
57
+ timestamp: string;
58
+ }, {
59
+ message: string;
60
+ timestamp: string;
61
+ }>, "many">>>;
62
+ /**
63
+ * The certificates actually issued for this hostname, once any have been.
64
+ *
65
+ * A connection rather than a list because that is how Fly models it. Two
66
+ * nodes is the normal count — one RSA and one ECDSA — sharing an expiry,
67
+ * which is why a caller usually wants the expiry rather than the rows.
68
+ */
69
+ issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
70
+ nodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
71
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ /** Key type, e.g. `RSA` or `ECDSA` */
73
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ hostname?: string | null | undefined;
78
+ id?: string | null | undefined;
79
+ type?: string | null | undefined;
80
+ expiresAt?: string | null | undefined;
81
+ }, {
82
+ hostname?: string | null | undefined;
83
+ id?: string | null | undefined;
84
+ type?: string | null | undefined;
85
+ expiresAt?: string | null | undefined;
86
+ }>, "many">>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ nodes?: {
89
+ hostname?: string | null | undefined;
90
+ id?: string | null | undefined;
91
+ type?: string | null | undefined;
92
+ expiresAt?: string | null | undefined;
93
+ }[] | null | undefined;
94
+ }, {
95
+ nodes?: {
96
+ hostname?: string | null | undefined;
97
+ id?: string | null | undefined;
98
+ type?: string | null | undefined;
99
+ expiresAt?: string | null | undefined;
100
+ }[] | null | undefined;
101
+ }>>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ hostname: string;
104
+ isConfigured: boolean;
105
+ id?: string | undefined;
106
+ isApex?: boolean | undefined;
107
+ isWildcard?: boolean | undefined;
108
+ isAcmeDnsConfigured?: boolean | undefined;
109
+ isAcmeAlpnConfigured?: boolean | undefined;
110
+ isAcmeHttpConfigured?: boolean | undefined;
111
+ certificateAuthority?: string | null | undefined;
112
+ certificateRequestedAt?: string | null | undefined;
113
+ createdAt?: string | null | undefined;
114
+ domain?: string | null | undefined;
115
+ dnsProvider?: string | null | undefined;
116
+ dnsValidationHostname?: string | null | undefined;
117
+ dnsValidationTarget?: string | null | undefined;
118
+ dnsValidationInstructions?: string | null | undefined;
119
+ clientStatus?: string | null | undefined;
120
+ rateLimitedUntil?: string | null | undefined;
121
+ source?: string | null | undefined;
122
+ validationErrors?: {
123
+ message: string;
124
+ timestamp: string;
125
+ }[] | null | undefined;
126
+ issued?: {
127
+ nodes?: {
128
+ hostname?: string | null | undefined;
129
+ id?: string | null | undefined;
130
+ type?: string | null | undefined;
131
+ expiresAt?: string | null | undefined;
132
+ }[] | null | undefined;
133
+ } | null | undefined;
134
+ }, {
135
+ hostname: string;
136
+ isConfigured: boolean;
137
+ id?: string | undefined;
138
+ isApex?: boolean | undefined;
139
+ isWildcard?: boolean | undefined;
140
+ isAcmeDnsConfigured?: boolean | undefined;
141
+ isAcmeAlpnConfigured?: boolean | undefined;
142
+ isAcmeHttpConfigured?: boolean | undefined;
143
+ certificateAuthority?: string | null | undefined;
144
+ certificateRequestedAt?: string | null | undefined;
145
+ createdAt?: string | null | undefined;
146
+ domain?: string | null | undefined;
147
+ dnsProvider?: string | null | undefined;
148
+ dnsValidationHostname?: string | null | undefined;
149
+ dnsValidationTarget?: string | null | undefined;
150
+ dnsValidationInstructions?: string | null | undefined;
151
+ clientStatus?: string | null | undefined;
152
+ rateLimitedUntil?: string | null | undefined;
153
+ source?: string | null | undefined;
154
+ validationErrors?: {
155
+ message: string;
156
+ timestamp: string;
157
+ }[] | null | undefined;
158
+ issued?: {
159
+ nodes?: {
160
+ hostname?: string | null | undefined;
161
+ id?: string | null | undefined;
162
+ type?: string | null | undefined;
163
+ expiresAt?: string | null | undefined;
164
+ }[] | null | undefined;
165
+ } | null | undefined;
166
+ }>;
167
+ export type Certificate = z.infer<typeof CertificateApiResponseSchema>;
168
+ /**
169
+ * What Fly sees when it resolves the hostname right now.
170
+ *
171
+ * Returned alongside a newly requested certificate. This is live DNS
172
+ * resolution rather than stored state, which is what makes it the right thing
173
+ * to show someone who has just edited their records and wants to know whether
174
+ * it worked.
175
+ */
176
+ export declare const HostnameCheckApiResponseSchema: z.ZodObject<{
177
+ aRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
178
+ aaaaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
179
+ cnameRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
180
+ caaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
181
+ soa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ dnsVerificationRecord: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ dnsConfigured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
185
+ acmeDnsConfigured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
186
+ resolvedAddresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
187
+ isProxied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
188
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ dnsProvider?: string | null | undefined;
191
+ aRecords?: string[] | null | undefined;
192
+ aaaaRecords?: string[] | null | undefined;
193
+ cnameRecords?: string[] | null | undefined;
194
+ caaRecords?: string[] | null | undefined;
195
+ soa?: string | null | undefined;
196
+ dnsVerificationRecord?: string | null | undefined;
197
+ dnsConfigured?: boolean | null | undefined;
198
+ acmeDnsConfigured?: boolean | null | undefined;
199
+ resolvedAddresses?: string[] | null | undefined;
200
+ isProxied?: boolean | null | undefined;
201
+ errors?: string[] | null | undefined;
202
+ }, {
203
+ dnsProvider?: string | null | undefined;
204
+ aRecords?: string[] | null | undefined;
205
+ aaaaRecords?: string[] | null | undefined;
206
+ cnameRecords?: string[] | null | undefined;
207
+ caaRecords?: string[] | null | undefined;
208
+ soa?: string | null | undefined;
209
+ dnsVerificationRecord?: string | null | undefined;
210
+ dnsConfigured?: boolean | null | undefined;
211
+ acmeDnsConfigured?: boolean | null | undefined;
212
+ resolvedAddresses?: string[] | null | undefined;
213
+ isProxied?: boolean | null | undefined;
214
+ errors?: string[] | null | undefined;
215
+ }>;
216
+ export type HostnameCheck = z.infer<typeof HostnameCheckApiResponseSchema>;
217
+ /**
218
+ * The records a customer has to create, extracted from a certificate.
219
+ *
220
+ * `isApex` matters here: an apex domain cannot be pointed with a CNAME, so the
221
+ * instructions differ, and a UI needs to know which case it is showing.
222
+ */
223
+ export declare const DnsInstructionsSchema: z.ZodObject<{
224
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ isApex: z.ZodOptional<z.ZodBoolean>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ hostname?: string | null | undefined;
230
+ isApex?: boolean | undefined;
231
+ target?: string | null | undefined;
232
+ instructions?: string | null | undefined;
233
+ }, {
234
+ hostname?: string | null | undefined;
235
+ isApex?: boolean | undefined;
236
+ target?: string | null | undefined;
237
+ instructions?: string | null | undefined;
238
+ }>;
239
+ export type DnsInstructions = z.infer<typeof DnsInstructionsSchema>;
240
+ /** Certificates listed for an app */
241
+ export declare const CertificateListApiResponseSchema: z.ZodArray<z.ZodObject<{
242
+ hostname: z.ZodString;
243
+ /** Issued and serving. This is what decides whether a domain is usable */
244
+ isConfigured: z.ZodBoolean;
245
+ id: z.ZodOptional<z.ZodString>;
246
+ /** The apex or a subdomain — apex domains cannot use a CNAME */
247
+ isApex: z.ZodOptional<z.ZodBoolean>;
248
+ isWildcard: z.ZodOptional<z.ZodBoolean>;
249
+ /** Which ACME challenge has been satisfied, if any */
250
+ isAcmeDnsConfigured: z.ZodOptional<z.ZodBoolean>;
251
+ isAcmeAlpnConfigured: z.ZodOptional<z.ZodBoolean>;
252
+ isAcmeHttpConfigured: z.ZodOptional<z.ZodBoolean>;
253
+ certificateAuthority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ certificateRequestedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ /** Hostname the validation record must be created on */
259
+ dnsValidationHostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ /** Value that record must contain */
261
+ dnsValidationTarget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ /** Fly's own prose describing the records to create */
263
+ dnsValidationInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ /** Fly's summary of where issuance has got to */
265
+ clientStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ /**
267
+ * Set when Let's Encrypt has rate-limited further attempts for this domain.
268
+ *
269
+ * Worth surfacing rather than swallowing: it is the one failure a customer
270
+ * cannot fix by correcting DNS, and retrying only makes it worse.
271
+ */
272
+ rateLimitedUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ /**
275
+ * Fly's own prose for a failed issuance attempt — what the dashboard shows,
276
+ * unlike `HostnameCheck.errors`, which is SCREAMING_SNAKE_CASE codes
277
+ */
278
+ validationErrors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
279
+ message: z.ZodString;
280
+ timestamp: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ message: string;
283
+ timestamp: string;
284
+ }, {
285
+ message: string;
286
+ timestamp: string;
287
+ }>, "many">>>;
288
+ /**
289
+ * The certificates actually issued for this hostname, once any have been.
290
+ *
291
+ * A connection rather than a list because that is how Fly models it. Two
292
+ * nodes is the normal count — one RSA and one ECDSA — sharing an expiry,
293
+ * which is why a caller usually wants the expiry rather than the rows.
294
+ */
295
+ issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
+ nodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
297
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ /** Key type, e.g. `RSA` or `ECDSA` */
299
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ hostname?: string | null | undefined;
304
+ id?: string | null | undefined;
305
+ type?: string | null | undefined;
306
+ expiresAt?: string | null | undefined;
307
+ }, {
308
+ hostname?: string | null | undefined;
309
+ id?: string | null | undefined;
310
+ type?: string | null | undefined;
311
+ expiresAt?: string | null | undefined;
312
+ }>, "many">>>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ nodes?: {
315
+ hostname?: string | null | undefined;
316
+ id?: string | null | undefined;
317
+ type?: string | null | undefined;
318
+ expiresAt?: string | null | undefined;
319
+ }[] | null | undefined;
320
+ }, {
321
+ nodes?: {
322
+ hostname?: string | null | undefined;
323
+ id?: string | null | undefined;
324
+ type?: string | null | undefined;
325
+ expiresAt?: string | null | undefined;
326
+ }[] | null | undefined;
327
+ }>>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ hostname: string;
330
+ isConfigured: boolean;
331
+ id?: string | undefined;
332
+ isApex?: boolean | undefined;
333
+ isWildcard?: boolean | undefined;
334
+ isAcmeDnsConfigured?: boolean | undefined;
335
+ isAcmeAlpnConfigured?: boolean | undefined;
336
+ isAcmeHttpConfigured?: boolean | undefined;
337
+ certificateAuthority?: string | null | undefined;
338
+ certificateRequestedAt?: string | null | undefined;
339
+ createdAt?: string | null | undefined;
340
+ domain?: string | null | undefined;
341
+ dnsProvider?: string | null | undefined;
342
+ dnsValidationHostname?: string | null | undefined;
343
+ dnsValidationTarget?: string | null | undefined;
344
+ dnsValidationInstructions?: string | null | undefined;
345
+ clientStatus?: string | null | undefined;
346
+ rateLimitedUntil?: string | null | undefined;
347
+ source?: string | null | undefined;
348
+ validationErrors?: {
349
+ message: string;
350
+ timestamp: string;
351
+ }[] | null | undefined;
352
+ issued?: {
353
+ nodes?: {
354
+ hostname?: string | null | undefined;
355
+ id?: string | null | undefined;
356
+ type?: string | null | undefined;
357
+ expiresAt?: string | null | undefined;
358
+ }[] | null | undefined;
359
+ } | null | undefined;
360
+ }, {
361
+ hostname: string;
362
+ isConfigured: boolean;
363
+ id?: string | undefined;
364
+ isApex?: boolean | undefined;
365
+ isWildcard?: boolean | undefined;
366
+ isAcmeDnsConfigured?: boolean | undefined;
367
+ isAcmeAlpnConfigured?: boolean | undefined;
368
+ isAcmeHttpConfigured?: boolean | undefined;
369
+ certificateAuthority?: string | null | undefined;
370
+ certificateRequestedAt?: string | null | undefined;
371
+ createdAt?: string | null | undefined;
372
+ domain?: string | null | undefined;
373
+ dnsProvider?: string | null | undefined;
374
+ dnsValidationHostname?: string | null | undefined;
375
+ dnsValidationTarget?: string | null | undefined;
376
+ dnsValidationInstructions?: string | null | undefined;
377
+ clientStatus?: string | null | undefined;
378
+ rateLimitedUntil?: string | null | undefined;
379
+ source?: string | null | undefined;
380
+ validationErrors?: {
381
+ message: string;
382
+ timestamp: string;
383
+ }[] | null | undefined;
384
+ issued?: {
385
+ nodes?: {
386
+ hostname?: string | null | undefined;
387
+ id?: string | null | undefined;
388
+ type?: string | null | undefined;
389
+ expiresAt?: string | null | undefined;
390
+ }[] | null | undefined;
391
+ } | null | undefined;
392
+ }>, "many">;
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A machine as the Fly Machines API returns it.
4
+ *
5
+ * Field names are Fly's own, and only `id` is required — it is the one thing a
6
+ * caller acts on. Everything else is context for a log line or a panel, and a
7
+ * restart should not fail because Fly added a state nobody has seen yet.
8
+ */
9
+ export declare const MachineApiResponseSchema: z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ /** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
13
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: string;
17
+ name?: string | null | undefined;
18
+ state?: string | null | undefined;
19
+ region?: string | null | undefined;
20
+ }, {
21
+ id: string;
22
+ name?: string | null | undefined;
23
+ state?: string | null | undefined;
24
+ region?: string | null | undefined;
25
+ }>;
26
+ export type Machine = z.infer<typeof MachineApiResponseSchema>;
27
+ /** Machines listed for an app */
28
+ export declare const MachineListApiResponseSchema: z.ZodArray<z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ /** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
32
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ id: string;
36
+ name?: string | null | undefined;
37
+ state?: string | null | undefined;
38
+ region?: string | null | undefined;
39
+ }, {
40
+ id: string;
41
+ name?: string | null | undefined;
42
+ state?: string | null | undefined;
43
+ region?: string | null | undefined;
44
+ }>, "many">;
@@ -5,8 +5,11 @@ import { z } from 'zod';
5
5
  * ```ts
6
6
  * fly postgres list --json
7
7
  * ```
8
+ *
9
+ * Returns an array of Postgres instances, but when there are no instances,
10
+ * it returns a string e.g. "No postgres clusters found".
8
11
  */
9
- export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
12
+ export declare const PostgresListTransformedResponseSchema: z.ZodUnion<[z.ZodArray<z.ZodEffects<z.ZodObject<{
10
13
  deployed: z.ZodBoolean;
11
14
  hostname: z.ZodString;
12
15
  id: z.ZodString;
@@ -24,36 +27,36 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
24
27
  status: z.ZodString;
25
28
  version: z.ZodNumber;
26
29
  }, "strip", z.ZodTypeAny, {
27
- name: string;
28
- status: string;
30
+ hostname: string;
29
31
  id: string;
32
+ status: string;
33
+ name: string;
34
+ deployed: boolean;
30
35
  organization: {
31
36
  id: string;
32
37
  slug: string;
33
38
  };
34
- deployed: boolean;
35
- hostname: string;
36
39
  version: number;
37
40
  }, {
38
- name: string;
39
- status: string;
41
+ hostname: string;
40
42
  id: string;
43
+ status: string;
44
+ name: string;
45
+ deployed: boolean;
41
46
  organization: {
42
47
  id: string;
43
48
  slug: string;
44
49
  };
45
- deployed: boolean;
46
- hostname: string;
47
50
  version: number;
48
51
  }>, {
49
- name: string;
50
- status: string;
52
+ hostname: string;
51
53
  id: string;
54
+ status: string;
55
+ name: string;
56
+ deployed: boolean;
52
57
  organization: {
53
58
  id: string;
54
59
  slug: string;
55
60
  };
56
- deployed: boolean;
57
- hostname: string;
58
61
  version: number;
59
- }, unknown>, "many">;
62
+ }, unknown>, "many">, z.ZodString]>;
@@ -5,22 +5,18 @@ import { z } from 'zod';
5
5
  export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  digest: z.ZodString;
8
- createdAt: z.ZodString;
9
8
  } & {
10
9
  app: z.ZodString;
11
10
  }, "strip", z.ZodTypeAny, {
12
11
  name: string;
13
- createdAt: string;
14
12
  app: string;
15
13
  digest: string;
16
14
  }, {
17
15
  name: string;
18
- createdAt: string;
19
16
  app: string;
20
17
  digest: string;
21
18
  }>, {
22
19
  name: string;
23
- createdAt: string;
24
20
  app: string;
25
21
  digest: string;
26
22
  }, unknown>, "many">;
@@ -9,14 +9,11 @@ import { z } from 'zod';
9
9
  export declare const SecretsListFlyResponseElementSchema: z.ZodObject<{
10
10
  name: z.ZodString;
11
11
  digest: z.ZodString;
12
- createdAt: z.ZodString;
13
12
  }, "strip", z.ZodTypeAny, {
14
13
  name: string;
15
- createdAt: string;
16
14
  digest: string;
17
15
  }, {
18
16
  name: string;
19
- createdAt: string;
20
17
  digest: string;
21
18
  }>;
22
19
  /**
@@ -29,17 +26,13 @@ export declare const SecretsListFlyResponseElementSchema: z.ZodObject<{
29
26
  export declare const SecretsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
30
27
  name: z.ZodString;
31
28
  digest: z.ZodString;
32
- createdAt: z.ZodString;
33
29
  }, "strip", z.ZodTypeAny, {
34
30
  name: string;
35
- createdAt: string;
36
31
  digest: string;
37
32
  }, {
38
33
  name: string;
39
- createdAt: string;
40
34
  digest: string;
41
35
  }>, {
42
36
  name: string;
43
- createdAt: string;
44
37
  digest: string;
45
38
  }, unknown>, "many">;