@cdwr/fly-node 0.1.0 → 0.2.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.
- package/CHANGELOG.md +18 -0
- package/README.md +8 -1
- package/index.cjs +227 -139
- package/index.js +227 -137
- package/package.json +1 -1
- package/src/lib/fly.class.d.ts +6 -0
- package/src/lib/schemas/apps-create.schema.d.ts +8 -8
- package/src/lib/schemas/apps-list.schema.d.ts +6 -6
- package/src/lib/schemas/postgres-list.d.ts +6 -6
- package/src/lib/schemas/status-extended.schema.d.ts +18 -18
- package/src/lib/schemas/status.schema.d.ts +32 -32
- package/src/lib/types.d.ts +6 -0
|
@@ -42,20 +42,20 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
42
42
|
output: z.ZodString;
|
|
43
43
|
updatedAt: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
name: string;
|
|
46
45
|
status: string;
|
|
46
|
+
name: string;
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
output: string;
|
|
49
49
|
}, {
|
|
50
|
-
name: string;
|
|
51
50
|
status: string;
|
|
51
|
+
name: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
output: string;
|
|
54
54
|
}>, "many">>;
|
|
55
55
|
hostStatus: z.ZodString;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
name: string;
|
|
58
57
|
id: string;
|
|
58
|
+
name: string;
|
|
59
59
|
createdAt: string;
|
|
60
60
|
state: string;
|
|
61
61
|
region: string;
|
|
@@ -71,14 +71,14 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
71
71
|
}[];
|
|
72
72
|
hostStatus: string;
|
|
73
73
|
checks?: {
|
|
74
|
-
name: string;
|
|
75
74
|
status: string;
|
|
75
|
+
name: string;
|
|
76
76
|
updatedAt: string;
|
|
77
77
|
output: string;
|
|
78
78
|
}[] | undefined;
|
|
79
79
|
}, {
|
|
80
|
-
name: string;
|
|
81
80
|
id: string;
|
|
81
|
+
name: string;
|
|
82
82
|
createdAt: string;
|
|
83
83
|
state: string;
|
|
84
84
|
region: string;
|
|
@@ -94,8 +94,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
94
94
|
}[];
|
|
95
95
|
hostStatus: string;
|
|
96
96
|
checks?: {
|
|
97
|
-
name: string;
|
|
98
97
|
status: string;
|
|
98
|
+
name: string;
|
|
99
99
|
updatedAt: string;
|
|
100
100
|
output: string;
|
|
101
101
|
}[] | undefined;
|
|
@@ -129,9 +129,9 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
129
129
|
name: string;
|
|
130
130
|
}>, "many">;
|
|
131
131
|
}>, "strip", z.ZodTypeAny, {
|
|
132
|
-
name: string;
|
|
133
|
-
status: string;
|
|
134
132
|
id: string;
|
|
133
|
+
status: string;
|
|
134
|
+
name: string;
|
|
135
135
|
organization: {
|
|
136
136
|
id: string;
|
|
137
137
|
slug: string;
|
|
@@ -140,8 +140,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
140
140
|
hostname: string;
|
|
141
141
|
version: number;
|
|
142
142
|
machines: {
|
|
143
|
-
name: string;
|
|
144
143
|
id: string;
|
|
144
|
+
name: string;
|
|
145
145
|
createdAt: string;
|
|
146
146
|
state: string;
|
|
147
147
|
region: string;
|
|
@@ -157,8 +157,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
157
157
|
}[];
|
|
158
158
|
hostStatus: string;
|
|
159
159
|
checks?: {
|
|
160
|
-
name: string;
|
|
161
160
|
status: string;
|
|
161
|
+
name: string;
|
|
162
162
|
updatedAt: string;
|
|
163
163
|
output: string;
|
|
164
164
|
}[] | undefined;
|
|
@@ -170,9 +170,9 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
170
170
|
name: string;
|
|
171
171
|
}[];
|
|
172
172
|
}, {
|
|
173
|
-
name: string;
|
|
174
|
-
status: string;
|
|
175
173
|
id: string;
|
|
174
|
+
status: string;
|
|
175
|
+
name: string;
|
|
176
176
|
organization: {
|
|
177
177
|
id: string;
|
|
178
178
|
slug: string;
|
|
@@ -181,8 +181,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
181
181
|
hostname: string;
|
|
182
182
|
version: number;
|
|
183
183
|
machines: {
|
|
184
|
-
name: string;
|
|
185
184
|
id: string;
|
|
185
|
+
name: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
state: string;
|
|
188
188
|
region: string;
|
|
@@ -198,8 +198,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
198
198
|
}[];
|
|
199
199
|
hostStatus: string;
|
|
200
200
|
checks?: {
|
|
201
|
-
name: string;
|
|
202
201
|
status: string;
|
|
202
|
+
name: string;
|
|
203
203
|
updatedAt: string;
|
|
204
204
|
output: string;
|
|
205
205
|
}[] | undefined;
|
|
@@ -211,9 +211,9 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
211
211
|
name: string;
|
|
212
212
|
}[];
|
|
213
213
|
}>, {
|
|
214
|
-
name: string;
|
|
215
|
-
status: string;
|
|
216
214
|
id: string;
|
|
215
|
+
status: string;
|
|
216
|
+
name: string;
|
|
217
217
|
organization: {
|
|
218
218
|
id: string;
|
|
219
219
|
slug: string;
|
|
@@ -222,8 +222,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
222
222
|
hostname: string;
|
|
223
223
|
version: number;
|
|
224
224
|
machines: {
|
|
225
|
-
name: string;
|
|
226
225
|
id: string;
|
|
226
|
+
name: string;
|
|
227
227
|
createdAt: string;
|
|
228
228
|
state: string;
|
|
229
229
|
region: string;
|
|
@@ -239,8 +239,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
239
239
|
}[];
|
|
240
240
|
hostStatus: string;
|
|
241
241
|
checks?: {
|
|
242
|
-
name: string;
|
|
243
242
|
status: string;
|
|
243
|
+
name: string;
|
|
244
244
|
updatedAt: string;
|
|
245
245
|
output: string;
|
|
246
246
|
}[] | undefined;
|
|
@@ -46,20 +46,20 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
46
46
|
output: z.ZodString;
|
|
47
47
|
updatedAt: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
name: string;
|
|
50
49
|
status: string;
|
|
50
|
+
name: string;
|
|
51
51
|
updatedAt: string;
|
|
52
52
|
output: string;
|
|
53
53
|
}, {
|
|
54
|
-
name: string;
|
|
55
54
|
status: string;
|
|
55
|
+
name: string;
|
|
56
56
|
updatedAt: string;
|
|
57
57
|
output: string;
|
|
58
58
|
}>, "many">>;
|
|
59
59
|
hostStatus: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
name: string;
|
|
62
61
|
id: string;
|
|
62
|
+
name: string;
|
|
63
63
|
createdAt: string;
|
|
64
64
|
state: string;
|
|
65
65
|
region: string;
|
|
@@ -75,14 +75,14 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
75
75
|
}[];
|
|
76
76
|
hostStatus: string;
|
|
77
77
|
checks?: {
|
|
78
|
-
name: string;
|
|
79
78
|
status: string;
|
|
79
|
+
name: string;
|
|
80
80
|
updatedAt: string;
|
|
81
81
|
output: string;
|
|
82
82
|
}[] | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
name: string;
|
|
85
84
|
id: string;
|
|
85
|
+
name: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
state: string;
|
|
88
88
|
region: string;
|
|
@@ -98,8 +98,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
98
98
|
}[];
|
|
99
99
|
hostStatus: string;
|
|
100
100
|
checks?: {
|
|
101
|
-
name: string;
|
|
102
101
|
status: string;
|
|
102
|
+
name: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
output: string;
|
|
105
105
|
}[] | undefined;
|
|
@@ -118,9 +118,9 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
118
118
|
status: z.ZodString;
|
|
119
119
|
version: z.ZodNumber;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
name: string;
|
|
122
|
-
status: string;
|
|
123
121
|
id: string;
|
|
122
|
+
status: string;
|
|
123
|
+
name: string;
|
|
124
124
|
organization: {
|
|
125
125
|
id: string;
|
|
126
126
|
slug: string;
|
|
@@ -129,8 +129,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
129
129
|
hostname: string;
|
|
130
130
|
version: number;
|
|
131
131
|
machines: {
|
|
132
|
-
name: string;
|
|
133
132
|
id: string;
|
|
133
|
+
name: string;
|
|
134
134
|
createdAt: string;
|
|
135
135
|
state: string;
|
|
136
136
|
region: string;
|
|
@@ -146,16 +146,16 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
146
146
|
}[];
|
|
147
147
|
hostStatus: string;
|
|
148
148
|
checks?: {
|
|
149
|
-
name: string;
|
|
150
149
|
status: string;
|
|
150
|
+
name: string;
|
|
151
151
|
updatedAt: string;
|
|
152
152
|
output: string;
|
|
153
153
|
}[] | undefined;
|
|
154
154
|
}[];
|
|
155
155
|
}, {
|
|
156
|
-
name: string;
|
|
157
|
-
status: string;
|
|
158
156
|
id: string;
|
|
157
|
+
status: string;
|
|
158
|
+
name: string;
|
|
159
159
|
organization: {
|
|
160
160
|
id: string;
|
|
161
161
|
slug: string;
|
|
@@ -164,8 +164,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
164
164
|
hostname: string;
|
|
165
165
|
version: number;
|
|
166
166
|
machines: {
|
|
167
|
-
name: string;
|
|
168
167
|
id: string;
|
|
168
|
+
name: string;
|
|
169
169
|
createdAt: string;
|
|
170
170
|
state: string;
|
|
171
171
|
region: string;
|
|
@@ -181,8 +181,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
|
|
|
181
181
|
}[];
|
|
182
182
|
hostStatus: string;
|
|
183
183
|
checks?: {
|
|
184
|
-
name: string;
|
|
185
184
|
status: string;
|
|
185
|
+
name: string;
|
|
186
186
|
updatedAt: string;
|
|
187
187
|
output: string;
|
|
188
188
|
}[] | undefined;
|
|
@@ -235,20 +235,20 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
235
235
|
output: z.ZodString;
|
|
236
236
|
updatedAt: z.ZodString;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
name: string;
|
|
239
238
|
status: string;
|
|
239
|
+
name: string;
|
|
240
240
|
updatedAt: string;
|
|
241
241
|
output: string;
|
|
242
242
|
}, {
|
|
243
|
-
name: string;
|
|
244
243
|
status: string;
|
|
244
|
+
name: string;
|
|
245
245
|
updatedAt: string;
|
|
246
246
|
output: string;
|
|
247
247
|
}>, "many">>;
|
|
248
248
|
hostStatus: z.ZodString;
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
name: string;
|
|
251
250
|
id: string;
|
|
251
|
+
name: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
state: string;
|
|
254
254
|
region: string;
|
|
@@ -264,14 +264,14 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
264
264
|
}[];
|
|
265
265
|
hostStatus: string;
|
|
266
266
|
checks?: {
|
|
267
|
-
name: string;
|
|
268
267
|
status: string;
|
|
268
|
+
name: string;
|
|
269
269
|
updatedAt: string;
|
|
270
270
|
output: string;
|
|
271
271
|
}[] | undefined;
|
|
272
272
|
}, {
|
|
273
|
-
name: string;
|
|
274
273
|
id: string;
|
|
274
|
+
name: string;
|
|
275
275
|
createdAt: string;
|
|
276
276
|
state: string;
|
|
277
277
|
region: string;
|
|
@@ -287,8 +287,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
287
287
|
}[];
|
|
288
288
|
hostStatus: string;
|
|
289
289
|
checks?: {
|
|
290
|
-
name: string;
|
|
291
290
|
status: string;
|
|
291
|
+
name: string;
|
|
292
292
|
updatedAt: string;
|
|
293
293
|
output: string;
|
|
294
294
|
}[] | undefined;
|
|
@@ -307,9 +307,9 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
307
307
|
status: z.ZodString;
|
|
308
308
|
version: z.ZodNumber;
|
|
309
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
name: string;
|
|
311
|
-
status: string;
|
|
312
310
|
id: string;
|
|
311
|
+
status: string;
|
|
312
|
+
name: string;
|
|
313
313
|
organization: {
|
|
314
314
|
id: string;
|
|
315
315
|
slug: string;
|
|
@@ -318,8 +318,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
318
318
|
hostname: string;
|
|
319
319
|
version: number;
|
|
320
320
|
machines: {
|
|
321
|
-
name: string;
|
|
322
321
|
id: string;
|
|
322
|
+
name: string;
|
|
323
323
|
createdAt: string;
|
|
324
324
|
state: string;
|
|
325
325
|
region: string;
|
|
@@ -335,16 +335,16 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
335
335
|
}[];
|
|
336
336
|
hostStatus: string;
|
|
337
337
|
checks?: {
|
|
338
|
-
name: string;
|
|
339
338
|
status: string;
|
|
339
|
+
name: string;
|
|
340
340
|
updatedAt: string;
|
|
341
341
|
output: string;
|
|
342
342
|
}[] | undefined;
|
|
343
343
|
}[];
|
|
344
344
|
}, {
|
|
345
|
-
name: string;
|
|
346
|
-
status: string;
|
|
347
345
|
id: string;
|
|
346
|
+
status: string;
|
|
347
|
+
name: string;
|
|
348
348
|
organization: {
|
|
349
349
|
id: string;
|
|
350
350
|
slug: string;
|
|
@@ -353,8 +353,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
353
353
|
hostname: string;
|
|
354
354
|
version: number;
|
|
355
355
|
machines: {
|
|
356
|
-
name: string;
|
|
357
356
|
id: string;
|
|
357
|
+
name: string;
|
|
358
358
|
createdAt: string;
|
|
359
359
|
state: string;
|
|
360
360
|
region: string;
|
|
@@ -370,16 +370,16 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
370
370
|
}[];
|
|
371
371
|
hostStatus: string;
|
|
372
372
|
checks?: {
|
|
373
|
-
name: string;
|
|
374
373
|
status: string;
|
|
374
|
+
name: string;
|
|
375
375
|
updatedAt: string;
|
|
376
376
|
output: string;
|
|
377
377
|
}[] | undefined;
|
|
378
378
|
}[];
|
|
379
379
|
}>, {
|
|
380
|
-
name: string;
|
|
381
|
-
status: string;
|
|
382
380
|
id: string;
|
|
381
|
+
status: string;
|
|
382
|
+
name: string;
|
|
383
383
|
organization: {
|
|
384
384
|
id: string;
|
|
385
385
|
slug: string;
|
|
@@ -388,8 +388,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
388
388
|
hostname: string;
|
|
389
389
|
version: number;
|
|
390
390
|
machines: {
|
|
391
|
-
name: string;
|
|
392
391
|
id: string;
|
|
392
|
+
name: string;
|
|
393
393
|
createdAt: string;
|
|
394
394
|
state: string;
|
|
395
395
|
region: string;
|
|
@@ -405,8 +405,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
405
405
|
}[];
|
|
406
406
|
hostStatus: string;
|
|
407
407
|
checks?: {
|
|
408
|
-
name: string;
|
|
409
408
|
status: string;
|
|
409
|
+
name: string;
|
|
410
410
|
updatedAt: string;
|
|
411
411
|
output: string;
|
|
412
412
|
}[] | undefined;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -173,6 +173,12 @@ export type DeployAppOptions = {
|
|
|
173
173
|
* Spaces are supported in values.
|
|
174
174
|
*/
|
|
175
175
|
secrets?: Record<string, string>;
|
|
176
|
+
/**
|
|
177
|
+
* Whether to opt out of the Depot Builder.
|
|
178
|
+
*
|
|
179
|
+
* Defaults to `false`.
|
|
180
|
+
*/
|
|
181
|
+
optOutDepotBuilder?: boolean;
|
|
176
182
|
};
|
|
177
183
|
/**
|
|
178
184
|
* Options for destroying an application
|