@cdwr/fly-node 0.3.3 → 0.3.4
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.
- package/CHANGELOG.md +11 -0
- package/index.cjs +8 -4
- package/index.js +8 -4
- package/package.json +2 -2
- package/src/lib/mocks.d.ts +6 -6
- package/src/lib/schemas/app-ip-addresses.schema.d.ts +16 -44
- package/src/lib/schemas/apps-create.schema.d.ts +2 -11
- package/src/lib/schemas/apps-list.schema.d.ts +4 -58
- package/src/lib/schemas/build-response.schema.d.ts +1 -7
- package/src/lib/schemas/certificate.schema.d.ts +16 -290
- package/src/lib/schemas/certs-list-with-app.schema.d.ts +2 -18
- package/src/lib/schemas/certs-list.schema.d.ts +3 -23
- package/src/lib/schemas/config-show.schema.d.ts +5 -62
- package/src/lib/schemas/deploy.schema.d.ts +1 -9
- package/src/lib/schemas/ip-type.schema.d.ts +6 -1
- package/src/lib/schemas/ips-list.schema.d.ts +15 -35
- package/src/lib/schemas/machine.schema.d.ts +2 -24
- package/src/lib/schemas/postgres-list.d.ts +3 -42
- package/src/lib/schemas/postgres-users-list.d.ts +3 -15
- package/src/lib/schemas/secrets-list-with-app.schema.d.ts +2 -15
- package/src/lib/schemas/secrets-list.schema.d.ts +3 -18
- package/src/lib/schemas/status-extended.schema.d.ts +11 -309
- package/src/lib/schemas/status.schema.d.ts +20 -560
- package/src/lib/schemas/version.schema.d.ts +2 -29
|
@@ -14,13 +14,10 @@ import { z } from 'zod';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const CertificateApiResponseSchema: z.ZodObject<{
|
|
16
16
|
hostname: z.ZodString;
|
|
17
|
-
/** Issued and serving. This is what decides whether a domain is usable */
|
|
18
17
|
isConfigured: z.ZodBoolean;
|
|
19
18
|
id: z.ZodOptional<z.ZodString>;
|
|
20
|
-
/** The apex or a subdomain — apex domains cannot use a CNAME */
|
|
21
19
|
isApex: z.ZodOptional<z.ZodBoolean>;
|
|
22
20
|
isWildcard: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
/** Which ACME challenge has been satisfied, if any */
|
|
24
21
|
isAcmeDnsConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
25
22
|
isAcmeAlpnConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
26
23
|
isAcmeHttpConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29,141 +26,25 @@ export declare const CertificateApiResponseSchema: z.ZodObject<{
|
|
|
29
26
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
27
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
28
|
dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
/** Hostname the validation record must be created on */
|
|
33
29
|
dnsValidationHostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
/** Value that record must contain */
|
|
35
30
|
dnsValidationTarget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
/** Fly's own prose describing the records to create */
|
|
37
31
|
dnsValidationInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
-
/** Fly's summary of where issuance has got to */
|
|
39
32
|
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
33
|
rateLimitedUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
34
|
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
35
|
validationErrors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
53
36
|
message: z.ZodString;
|
|
54
37
|
timestamp: z.ZodString;
|
|
55
|
-
},
|
|
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
|
-
*/
|
|
38
|
+
}, z.core.$strip>>>>;
|
|
69
39
|
issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
70
40
|
nodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
71
41
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
/** Key type, e.g. `RSA` or `ECDSA` */
|
|
73
42
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
43
|
hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
44
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
id?: string | null | undefined;
|
|
80
|
-
expiresAt?: string | null | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
type?: string | null | undefined;
|
|
83
|
-
hostname?: string | null | undefined;
|
|
84
|
-
id?: string | null | undefined;
|
|
85
|
-
expiresAt?: string | null | undefined;
|
|
86
|
-
}>, "many">>>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
nodes?: {
|
|
89
|
-
type?: string | null | undefined;
|
|
90
|
-
hostname?: string | null | undefined;
|
|
91
|
-
id?: string | null | undefined;
|
|
92
|
-
expiresAt?: string | null | undefined;
|
|
93
|
-
}[] | null | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
nodes?: {
|
|
96
|
-
type?: string | null | undefined;
|
|
97
|
-
hostname?: string | null | undefined;
|
|
98
|
-
id?: 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
|
-
type?: string | null | undefined;
|
|
129
|
-
hostname?: string | null | undefined;
|
|
130
|
-
id?: 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
|
-
type?: string | null | undefined;
|
|
161
|
-
hostname?: string | null | undefined;
|
|
162
|
-
id?: string | null | undefined;
|
|
163
|
-
expiresAt?: string | null | undefined;
|
|
164
|
-
}[] | null | undefined;
|
|
165
|
-
} | null | undefined;
|
|
166
|
-
}>;
|
|
45
|
+
}, z.core.$strip>>>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
167
48
|
export type Certificate = z.infer<typeof CertificateApiResponseSchema>;
|
|
168
49
|
/**
|
|
169
50
|
* What Fly sees when it resolves the hostname right now.
|
|
@@ -174,45 +55,19 @@ export type Certificate = z.infer<typeof CertificateApiResponseSchema>;
|
|
|
174
55
|
* it worked.
|
|
175
56
|
*/
|
|
176
57
|
export declare const HostnameCheckApiResponseSchema: z.ZodObject<{
|
|
177
|
-
aRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
178
|
-
aaaaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
179
|
-
cnameRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
180
|
-
caaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
58
|
+
aRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
59
|
+
aaaaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
60
|
+
cnameRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
61
|
+
caaRecords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
181
62
|
soa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
63
|
dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
64
|
dnsVerificationRecord: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
65
|
dnsConfigured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
185
66
|
acmeDnsConfigured: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
186
|
-
resolvedAddresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
67
|
+
resolvedAddresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
187
68
|
isProxied: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
188
|
-
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
189
|
-
},
|
|
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
|
-
}>;
|
|
69
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
216
71
|
export type HostnameCheck = z.infer<typeof HostnameCheckApiResponseSchema>;
|
|
217
72
|
/**
|
|
218
73
|
* The records a customer has to create, extracted from a certificate.
|
|
@@ -225,28 +80,15 @@ export declare const DnsInstructionsSchema: z.ZodObject<{
|
|
|
225
80
|
target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
81
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
82
|
isApex: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
},
|
|
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
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
239
84
|
export type DnsInstructions = z.infer<typeof DnsInstructionsSchema>;
|
|
240
85
|
/** Certificates listed for an app */
|
|
241
86
|
export declare const CertificateListApiResponseSchema: z.ZodArray<z.ZodObject<{
|
|
242
87
|
hostname: z.ZodString;
|
|
243
|
-
/** Issued and serving. This is what decides whether a domain is usable */
|
|
244
88
|
isConfigured: z.ZodBoolean;
|
|
245
89
|
id: z.ZodOptional<z.ZodString>;
|
|
246
|
-
/** The apex or a subdomain — apex domains cannot use a CNAME */
|
|
247
90
|
isApex: z.ZodOptional<z.ZodBoolean>;
|
|
248
91
|
isWildcard: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
-
/** Which ACME challenge has been satisfied, if any */
|
|
250
92
|
isAcmeDnsConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
251
93
|
isAcmeAlpnConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
252
94
|
isAcmeHttpConfigured: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -255,138 +97,22 @@ export declare const CertificateListApiResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
255
97
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
98
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
99
|
dnsProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
-
/** Hostname the validation record must be created on */
|
|
259
100
|
dnsValidationHostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
-
/** Value that record must contain */
|
|
261
101
|
dnsValidationTarget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
-
/** Fly's own prose describing the records to create */
|
|
263
102
|
dnsValidationInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
|
-
/** Fly's summary of where issuance has got to */
|
|
265
103
|
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
104
|
rateLimitedUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
105
|
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
106
|
validationErrors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
279
107
|
message: z.ZodString;
|
|
280
108
|
timestamp: z.ZodString;
|
|
281
|
-
},
|
|
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
|
-
*/
|
|
109
|
+
}, z.core.$strip>>>>;
|
|
295
110
|
issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
296
111
|
nodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
297
112
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
/** Key type, e.g. `RSA` or `ECDSA` */
|
|
299
113
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
114
|
hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
115
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
id?: string | null | undefined;
|
|
306
|
-
expiresAt?: string | null | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
type?: string | null | undefined;
|
|
309
|
-
hostname?: string | null | undefined;
|
|
310
|
-
id?: string | null | undefined;
|
|
311
|
-
expiresAt?: string | null | undefined;
|
|
312
|
-
}>, "many">>>;
|
|
313
|
-
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
nodes?: {
|
|
315
|
-
type?: string | null | undefined;
|
|
316
|
-
hostname?: string | null | undefined;
|
|
317
|
-
id?: string | null | undefined;
|
|
318
|
-
expiresAt?: string | null | undefined;
|
|
319
|
-
}[] | null | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
nodes?: {
|
|
322
|
-
type?: string | null | undefined;
|
|
323
|
-
hostname?: string | null | undefined;
|
|
324
|
-
id?: 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
|
-
type?: string | null | undefined;
|
|
355
|
-
hostname?: string | null | undefined;
|
|
356
|
-
id?: 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
|
-
type?: string | null | undefined;
|
|
387
|
-
hostname?: string | null | undefined;
|
|
388
|
-
id?: string | null | undefined;
|
|
389
|
-
expiresAt?: string | null | undefined;
|
|
390
|
-
}[] | null | undefined;
|
|
391
|
-
} | null | undefined;
|
|
392
|
-
}>, "many">;
|
|
116
|
+
}, z.core.$strip>>>>;
|
|
117
|
+
}, z.core.$strip>>>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
@@ -2,25 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* certs list response extended with application name
|
|
4
4
|
*/
|
|
5
|
-
export declare const CertsListWithAppTransformedResponseSchema: z.ZodArray<z.
|
|
5
|
+
export declare const CertsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
6
6
|
createdAt: z.ZodString;
|
|
7
7
|
hostname: z.ZodString;
|
|
8
8
|
clientStatus: z.ZodString;
|
|
9
|
-
} & {
|
|
10
9
|
app: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
hostname: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
clientStatus: string;
|
|
15
|
-
app: string;
|
|
16
|
-
}, {
|
|
17
|
-
hostname: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
clientStatus: string;
|
|
20
|
-
app: string;
|
|
21
|
-
}>, {
|
|
22
|
-
hostname: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
clientStatus: string;
|
|
25
|
-
app: string;
|
|
26
|
-
}, unknown>, "many">;
|
|
10
|
+
}, z.core.$strip>, unknown>>;
|
|
@@ -10,15 +10,7 @@ export declare const CertsListFlyResponseElementSchema: z.ZodObject<{
|
|
|
10
10
|
createdAt: z.ZodString;
|
|
11
11
|
hostname: z.ZodString;
|
|
12
12
|
clientStatus: z.ZodString;
|
|
13
|
-
},
|
|
14
|
-
hostname: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
clientStatus: string;
|
|
17
|
-
}, {
|
|
18
|
-
hostname: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
clientStatus: string;
|
|
21
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
22
14
|
/**
|
|
23
15
|
* Transformed certs list response schema
|
|
24
16
|
*
|
|
@@ -26,20 +18,8 @@ export declare const CertsListFlyResponseElementSchema: z.ZodObject<{
|
|
|
26
18
|
* fly certs list --app [name] --json
|
|
27
19
|
* ```
|
|
28
20
|
*/
|
|
29
|
-
export declare const CertsListTransformedResponseSchema: z.ZodArray<z.
|
|
21
|
+
export declare const CertsListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
30
22
|
createdAt: z.ZodString;
|
|
31
23
|
hostname: z.ZodString;
|
|
32
24
|
clientStatus: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
hostname: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
clientStatus: string;
|
|
37
|
-
}, {
|
|
38
|
-
hostname: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
clientStatus: string;
|
|
41
|
-
}>, {
|
|
42
|
-
hostname: string;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
clientStatus: string;
|
|
45
|
-
}, unknown>, "many">;
|
|
25
|
+
}, z.core.$strip>, unknown>>;
|
|
@@ -6,76 +6,19 @@ import { z } from 'zod';
|
|
|
6
6
|
* fly config show --app [name] --config [path]
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
|
-
export declare const ConfigShowResponseSchema: z.
|
|
9
|
+
export declare const ConfigShowResponseSchema: z.ZodPreprocess<z.ZodObject<{
|
|
10
10
|
app: z.ZodString;
|
|
11
11
|
primaryRegion: z.ZodOptional<z.ZodString>;
|
|
12
12
|
build: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodObject<{
|
|
13
13
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
14
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
15
15
|
image: z.ZodOptional<z.ZodString>;
|
|
16
|
-
},
|
|
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
|
-
}>]>;
|
|
16
|
+
}, z.core.$strip>]>;
|
|
25
17
|
deploy: z.ZodUnion<[z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodObject<{
|
|
26
18
|
strategy: z.ZodOptional<z.ZodString>;
|
|
27
|
-
},
|
|
28
|
-
strategy?: string | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
strategy?: string | undefined;
|
|
31
|
-
}>]>;
|
|
19
|
+
}, z.core.$strip>]>;
|
|
32
20
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
21
|
httpService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
34
22
|
mounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
35
|
-
services: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny
|
|
36
|
-
},
|
|
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>;
|
|
23
|
+
services: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
24
|
+
}, z.core.$strip>, unknown>;
|
|
@@ -6,12 +6,4 @@ export declare const DeployResponseSchema: z.ZodObject<{
|
|
|
6
6
|
app: z.ZodString;
|
|
7
7
|
hostname: z.ZodString;
|
|
8
8
|
url: z.ZodString;
|
|
9
|
-
},
|
|
10
|
-
hostname: string;
|
|
11
|
-
app: string;
|
|
12
|
-
url: string;
|
|
13
|
-
}, {
|
|
14
|
-
hostname: string;
|
|
15
|
-
app: string;
|
|
16
|
-
url: string;
|
|
17
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
@@ -11,4 +11,9 @@ import { z } from 'zod';
|
|
|
11
11
|
* Its own module, free of the CLI's case transforms, so the API entry point
|
|
12
12
|
* can share it without pulling them in.
|
|
13
13
|
*/
|
|
14
|
-
export declare const IpTypeSchema: z.ZodUnion<[z.ZodEnum<
|
|
14
|
+
export declare const IpTypeSchema: z.ZodUnion<[z.ZodEnum<{
|
|
15
|
+
v4: "v4";
|
|
16
|
+
v6: "v6";
|
|
17
|
+
shared_v4: "shared_v4";
|
|
18
|
+
private_v6: "private_v6";
|
|
19
|
+
}>, z.ZodString]>;
|
|
@@ -15,22 +15,15 @@ import { z } from 'zod';
|
|
|
15
15
|
export declare const IpsListFlyResponseElementSchema: z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
address: z.ZodString;
|
|
18
|
-
type: z.ZodUnion<[z.ZodEnum<
|
|
18
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
19
|
+
v4: "v4";
|
|
20
|
+
v6: "v6";
|
|
21
|
+
shared_v4: "shared_v4";
|
|
22
|
+
private_v6: "private_v6";
|
|
23
|
+
}>, z.ZodString]>;
|
|
19
24
|
region: z.ZodString;
|
|
20
25
|
createdAt: z.ZodString;
|
|
21
|
-
},
|
|
22
|
-
type: string;
|
|
23
|
-
address: string;
|
|
24
|
-
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
region: string;
|
|
27
|
-
}, {
|
|
28
|
-
type: string;
|
|
29
|
-
address: string;
|
|
30
|
-
id: string;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
region: string;
|
|
33
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
34
27
|
/**
|
|
35
28
|
* Transformed ips list response schema
|
|
36
29
|
*
|
|
@@ -38,28 +31,15 @@ export declare const IpsListFlyResponseElementSchema: z.ZodObject<{
|
|
|
38
31
|
* fly ips list --app [name] --json
|
|
39
32
|
* ```
|
|
40
33
|
*/
|
|
41
|
-
export declare const IpsListTransformedResponseSchema: z.ZodArray<z.
|
|
34
|
+
export declare const IpsListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
42
35
|
id: z.ZodString;
|
|
43
36
|
address: z.ZodString;
|
|
44
|
-
type: z.ZodUnion<[z.ZodEnum<
|
|
37
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
38
|
+
v4: "v4";
|
|
39
|
+
v6: "v6";
|
|
40
|
+
shared_v4: "shared_v4";
|
|
41
|
+
private_v6: "private_v6";
|
|
42
|
+
}>, z.ZodString]>;
|
|
45
43
|
region: z.ZodString;
|
|
46
44
|
createdAt: z.ZodString;
|
|
47
|
-
},
|
|
48
|
-
type: string;
|
|
49
|
-
address: string;
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
region: string;
|
|
53
|
-
}, {
|
|
54
|
-
type: string;
|
|
55
|
-
address: string;
|
|
56
|
-
id: string;
|
|
57
|
-
createdAt: string;
|
|
58
|
-
region: string;
|
|
59
|
-
}>, {
|
|
60
|
-
type: string;
|
|
61
|
-
address: string;
|
|
62
|
-
id: string;
|
|
63
|
-
createdAt: string;
|
|
64
|
-
region: string;
|
|
65
|
-
}, unknown>, "many">;
|
|
45
|
+
}, z.core.$strip>, unknown>>;
|
|
@@ -9,36 +9,14 @@ import { z } from 'zod';
|
|
|
9
9
|
export declare const MachineApiResponseSchema: z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
/** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
|
|
13
12
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
13
|
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
},
|
|
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
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
26
15
|
export type Machine = z.infer<typeof MachineApiResponseSchema>;
|
|
27
16
|
/** Machines listed for an app */
|
|
28
17
|
export declare const MachineListApiResponseSchema: z.ZodArray<z.ZodObject<{
|
|
29
18
|
id: z.ZodString;
|
|
30
19
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
/** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
|
|
32
20
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
21
|
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
},
|
|
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">;
|
|
22
|
+
}, z.core.$strip>>;
|