@cdwr/fly-node 0.2.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 +6 -0
- package/index.cjs +124 -130
- package/index.js +122 -128
- package/package.json +1 -1
- 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/CHANGELOG.md
CHANGED
package/index.cjs
CHANGED
|
@@ -136,20 +136,17 @@ Output: ${output}`)
|
|
|
136
136
|
var import_npm_whoami = __toESM(require("npm-whoami"), 1);
|
|
137
137
|
|
|
138
138
|
// packages/fly-node/src/lib/fly.class.ts
|
|
139
|
-
var
|
|
140
|
-
|
|
141
|
-
// packages/core/src/lib/zod/create-lowercase-schema.ts
|
|
142
|
-
var import_zod = require("zod");
|
|
139
|
+
var import_zod28 = require("zod");
|
|
143
140
|
|
|
144
141
|
// packages/core/src/lib/zod/json.schema.ts
|
|
145
|
-
var
|
|
146
|
-
var LiteralSchema =
|
|
147
|
-
var JsonSchema =
|
|
148
|
-
() =>
|
|
142
|
+
var import_zod = require("zod");
|
|
143
|
+
var LiteralSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean(), import_zod.z.null()]);
|
|
144
|
+
var JsonSchema = import_zod.z.lazy(
|
|
145
|
+
() => import_zod.z.union([LiteralSchema, import_zod.z.array(JsonSchema), import_zod.z.record(JsonSchema)])
|
|
149
146
|
);
|
|
150
147
|
|
|
151
148
|
// packages/core/src/lib/zod/with-camel-case.preprocess.ts
|
|
152
|
-
var
|
|
149
|
+
var import_zod2 = require("zod");
|
|
153
150
|
var toCamelCase = (str, specialCases = {}) => {
|
|
154
151
|
if (specialCases[str]) {
|
|
155
152
|
return specialCases[str];
|
|
@@ -196,7 +193,7 @@ var transformKeys = (options) => {
|
|
|
196
193
|
};
|
|
197
194
|
var withCamelCase = (schema, options = {}) => {
|
|
198
195
|
const { preserve = [], specialCases = {} } = options;
|
|
199
|
-
return
|
|
196
|
+
return import_zod2.z.preprocess(
|
|
200
197
|
(data) => transformKeys({
|
|
201
198
|
currentPath: [],
|
|
202
199
|
data,
|
|
@@ -207,43 +204,40 @@ var withCamelCase = (schema, options = {}) => {
|
|
|
207
204
|
);
|
|
208
205
|
};
|
|
209
206
|
|
|
210
|
-
// packages/core/src/lib/zod/with-env-vars.preprocess.ts
|
|
211
|
-
var import_zod4 = require("zod");
|
|
212
|
-
|
|
213
207
|
// packages/core/src/lib/zod/with-replace-all.preprocess.ts
|
|
214
|
-
var
|
|
208
|
+
var import_zod3 = require("zod");
|
|
215
209
|
|
|
216
210
|
// packages/fly-node/src/lib/schemas/apps-create.schema.ts
|
|
217
|
-
var
|
|
211
|
+
var import_zod5 = require("zod");
|
|
218
212
|
var AppsCreateTransformedResponseSchema = withCamelCase(
|
|
219
|
-
|
|
220
|
-
id:
|
|
221
|
-
name:
|
|
222
|
-
organization:
|
|
223
|
-
id:
|
|
224
|
-
name:
|
|
213
|
+
import_zod5.z.object({
|
|
214
|
+
id: import_zod5.z.string(),
|
|
215
|
+
name: import_zod5.z.string(),
|
|
216
|
+
organization: import_zod5.z.object({
|
|
217
|
+
id: import_zod5.z.string(),
|
|
218
|
+
name: import_zod5.z.string()
|
|
225
219
|
})
|
|
226
220
|
})
|
|
227
221
|
);
|
|
228
222
|
|
|
229
223
|
// packages/fly-node/src/lib/schemas/apps-list.schema.ts
|
|
230
|
-
var
|
|
231
|
-
var AppsListTransformedResponseSchema =
|
|
224
|
+
var import_zod7 = require("zod");
|
|
225
|
+
var AppsListTransformedResponseSchema = import_zod7.z.array(
|
|
232
226
|
withCamelCase(
|
|
233
|
-
|
|
234
|
-
id:
|
|
235
|
-
name:
|
|
236
|
-
status:
|
|
237
|
-
deployed:
|
|
238
|
-
hostname:
|
|
239
|
-
organization:
|
|
240
|
-
name:
|
|
241
|
-
slug:
|
|
227
|
+
import_zod7.z.object({
|
|
228
|
+
id: import_zod7.z.string(),
|
|
229
|
+
name: import_zod7.z.string(),
|
|
230
|
+
status: import_zod7.z.string(),
|
|
231
|
+
deployed: import_zod7.z.boolean(),
|
|
232
|
+
hostname: import_zod7.z.string(),
|
|
233
|
+
organization: import_zod7.z.object({
|
|
234
|
+
name: import_zod7.z.string(),
|
|
235
|
+
slug: import_zod7.z.string()
|
|
242
236
|
}),
|
|
243
|
-
currentRelease:
|
|
244
|
-
|
|
245
|
-
status:
|
|
246
|
-
createdAt:
|
|
237
|
+
currentRelease: import_zod7.z.nullable(
|
|
238
|
+
import_zod7.z.object({
|
|
239
|
+
status: import_zod7.z.string(),
|
|
240
|
+
createdAt: import_zod7.z.string().datetime()
|
|
247
241
|
})
|
|
248
242
|
)
|
|
249
243
|
})
|
|
@@ -251,46 +245,46 @@ var AppsListTransformedResponseSchema = import_zod9.z.array(
|
|
|
251
245
|
);
|
|
252
246
|
|
|
253
247
|
// packages/fly-node/src/lib/schemas/certs-list-with-app.schema.ts
|
|
254
|
-
var
|
|
248
|
+
var import_zod11 = require("zod");
|
|
255
249
|
|
|
256
250
|
// packages/fly-node/src/lib/schemas/certs-list.schema.ts
|
|
257
|
-
var
|
|
258
|
-
var CertsListFlyResponseElementSchema =
|
|
259
|
-
createdAt:
|
|
260
|
-
hostname:
|
|
261
|
-
clientStatus:
|
|
251
|
+
var import_zod9 = require("zod");
|
|
252
|
+
var CertsListFlyResponseElementSchema = import_zod9.z.object({
|
|
253
|
+
createdAt: import_zod9.z.string().datetime(),
|
|
254
|
+
hostname: import_zod9.z.string(),
|
|
255
|
+
clientStatus: import_zod9.z.string()
|
|
262
256
|
});
|
|
263
|
-
var CertsListTransformedResponseSchema =
|
|
257
|
+
var CertsListTransformedResponseSchema = import_zod9.z.array(
|
|
264
258
|
withCamelCase(CertsListFlyResponseElementSchema)
|
|
265
259
|
);
|
|
266
260
|
|
|
267
261
|
// packages/fly-node/src/lib/schemas/certs-list-with-app.schema.ts
|
|
268
|
-
var CertsListWithAppTransformedResponseSchema =
|
|
262
|
+
var CertsListWithAppTransformedResponseSchema = import_zod11.z.array(
|
|
269
263
|
withCamelCase(
|
|
270
264
|
CertsListFlyResponseElementSchema.extend({
|
|
271
|
-
app:
|
|
265
|
+
app: import_zod11.z.string()
|
|
272
266
|
})
|
|
273
267
|
)
|
|
274
268
|
);
|
|
275
269
|
|
|
276
270
|
// packages/fly-node/src/lib/schemas/config-show.schema.ts
|
|
277
|
-
var
|
|
271
|
+
var import_zod13 = require("zod");
|
|
278
272
|
var ConfigShowResponseSchema = withCamelCase(
|
|
279
|
-
|
|
280
|
-
app:
|
|
281
|
-
primaryRegion:
|
|
282
|
-
build:
|
|
283
|
-
|
|
284
|
-
args:
|
|
285
|
-
dockerfile:
|
|
286
|
-
image:
|
|
273
|
+
import_zod13.z.object({
|
|
274
|
+
app: import_zod13.z.string(),
|
|
275
|
+
primaryRegion: import_zod13.z.string().optional(),
|
|
276
|
+
build: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.any()).optional().or(
|
|
277
|
+
import_zod13.z.object({
|
|
278
|
+
args: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.string()).optional(),
|
|
279
|
+
dockerfile: import_zod13.z.string().optional(),
|
|
280
|
+
image: import_zod13.z.string().optional()
|
|
287
281
|
})
|
|
288
282
|
),
|
|
289
|
-
deploy:
|
|
290
|
-
env:
|
|
291
|
-
httpService:
|
|
292
|
-
mounts:
|
|
293
|
-
services:
|
|
283
|
+
deploy: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.any()).optional().or(import_zod13.z.object({ strategy: import_zod13.z.string().optional() })),
|
|
284
|
+
env: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.string()).optional(),
|
|
285
|
+
httpService: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.any()).optional(),
|
|
286
|
+
mounts: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.any()).optional(),
|
|
287
|
+
services: import_zod13.z.array(import_zod13.z.record(import_zod13.z.string(), import_zod13.z.any())).optional()
|
|
294
288
|
}),
|
|
295
289
|
{
|
|
296
290
|
preserve: ["build.args", "env"]
|
|
@@ -298,115 +292,115 @@ var ConfigShowResponseSchema = withCamelCase(
|
|
|
298
292
|
);
|
|
299
293
|
|
|
300
294
|
// packages/fly-node/src/lib/schemas/deploy.schema.ts
|
|
301
|
-
var
|
|
302
|
-
var DeployResponseSchema =
|
|
303
|
-
app:
|
|
304
|
-
hostname:
|
|
305
|
-
url:
|
|
295
|
+
var import_zod14 = require("zod");
|
|
296
|
+
var DeployResponseSchema = import_zod14.z.object({
|
|
297
|
+
app: import_zod14.z.string(),
|
|
298
|
+
hostname: import_zod14.z.string(),
|
|
299
|
+
url: import_zod14.z.string().url()
|
|
306
300
|
});
|
|
307
301
|
|
|
308
302
|
// packages/fly-node/src/lib/schemas/helper-schemas.ts
|
|
309
|
-
var
|
|
310
|
-
var AllowEmptyUrlSchema =
|
|
311
|
-
var NameSchema =
|
|
303
|
+
var import_zod15 = require("zod");
|
|
304
|
+
var AllowEmptyUrlSchema = import_zod15.z.string().url().or(import_zod15.z.literal(""));
|
|
305
|
+
var NameSchema = import_zod15.z.string({ message: "App name must be a valid slug" }).regex(/^[a-z0-9-]+$/);
|
|
312
306
|
|
|
313
307
|
// packages/fly-node/src/lib/schemas/postgres-list.ts
|
|
314
|
-
var
|
|
315
|
-
var PostgresListTransformedResponseSchema =
|
|
308
|
+
var import_zod17 = require("zod");
|
|
309
|
+
var PostgresListTransformedResponseSchema = import_zod17.z.array(
|
|
316
310
|
withCamelCase(
|
|
317
|
-
|
|
318
|
-
deployed:
|
|
319
|
-
hostname:
|
|
320
|
-
id:
|
|
321
|
-
name:
|
|
322
|
-
organization:
|
|
323
|
-
status:
|
|
324
|
-
version:
|
|
311
|
+
import_zod17.z.object({
|
|
312
|
+
deployed: import_zod17.z.boolean(),
|
|
313
|
+
hostname: import_zod17.z.string(),
|
|
314
|
+
id: import_zod17.z.string(),
|
|
315
|
+
name: import_zod17.z.string(),
|
|
316
|
+
organization: import_zod17.z.object({ id: import_zod17.z.string(), slug: import_zod17.z.string() }),
|
|
317
|
+
status: import_zod17.z.string(),
|
|
318
|
+
version: import_zod17.z.number()
|
|
325
319
|
})
|
|
326
320
|
)
|
|
327
321
|
);
|
|
328
322
|
|
|
329
323
|
// packages/fly-node/src/lib/schemas/postgres-users-list.ts
|
|
330
|
-
var
|
|
331
|
-
var PostgresUsersListTransformedResponseSchema =
|
|
324
|
+
var import_zod19 = require("zod");
|
|
325
|
+
var PostgresUsersListTransformedResponseSchema = import_zod19.z.array(
|
|
332
326
|
withCamelCase(
|
|
333
|
-
|
|
334
|
-
username:
|
|
335
|
-
superuser:
|
|
336
|
-
databases:
|
|
327
|
+
import_zod19.z.object({
|
|
328
|
+
username: import_zod19.z.string(),
|
|
329
|
+
superuser: import_zod19.z.boolean(),
|
|
330
|
+
databases: import_zod19.z.array(import_zod19.z.string())
|
|
337
331
|
})
|
|
338
332
|
)
|
|
339
333
|
);
|
|
340
334
|
|
|
341
335
|
// packages/fly-node/src/lib/schemas/secrets-list-with-app.schema.ts
|
|
342
|
-
var
|
|
336
|
+
var import_zod23 = require("zod");
|
|
343
337
|
|
|
344
338
|
// packages/fly-node/src/lib/schemas/secrets-list.schema.ts
|
|
345
|
-
var
|
|
346
|
-
var SecretsListFlyResponseElementSchema =
|
|
347
|
-
name:
|
|
348
|
-
digest:
|
|
349
|
-
createdAt:
|
|
339
|
+
var import_zod21 = require("zod");
|
|
340
|
+
var SecretsListFlyResponseElementSchema = import_zod21.z.object({
|
|
341
|
+
name: import_zod21.z.string(),
|
|
342
|
+
digest: import_zod21.z.string(),
|
|
343
|
+
createdAt: import_zod21.z.string().datetime()
|
|
350
344
|
});
|
|
351
|
-
var SecretsListTransformedResponseSchema =
|
|
345
|
+
var SecretsListTransformedResponseSchema = import_zod21.z.array(
|
|
352
346
|
withCamelCase(SecretsListFlyResponseElementSchema)
|
|
353
347
|
);
|
|
354
348
|
|
|
355
349
|
// packages/fly-node/src/lib/schemas/secrets-list-with-app.schema.ts
|
|
356
|
-
var SecretsListWithAppTransformedResponseSchema =
|
|
350
|
+
var SecretsListWithAppTransformedResponseSchema = import_zod23.z.array(
|
|
357
351
|
withCamelCase(
|
|
358
352
|
SecretsListFlyResponseElementSchema.extend({
|
|
359
|
-
app:
|
|
353
|
+
app: import_zod23.z.string()
|
|
360
354
|
})
|
|
361
355
|
)
|
|
362
356
|
);
|
|
363
357
|
|
|
364
358
|
// packages/fly-node/src/lib/schemas/status-extended.schema.ts
|
|
365
|
-
var
|
|
359
|
+
var import_zod27 = require("zod");
|
|
366
360
|
|
|
367
361
|
// packages/fly-node/src/lib/schemas/status.schema.ts
|
|
368
|
-
var
|
|
369
|
-
var statusFlyResponseSchema =
|
|
370
|
-
deployed:
|
|
371
|
-
hostname:
|
|
372
|
-
id:
|
|
373
|
-
machines:
|
|
374
|
-
|
|
375
|
-
id:
|
|
376
|
-
name:
|
|
377
|
-
state:
|
|
378
|
-
region:
|
|
379
|
-
createdAt:
|
|
380
|
-
updatedAt:
|
|
381
|
-
config:
|
|
382
|
-
env:
|
|
383
|
-
metadata:
|
|
362
|
+
var import_zod25 = require("zod");
|
|
363
|
+
var statusFlyResponseSchema = import_zod25.z.object({
|
|
364
|
+
deployed: import_zod25.z.boolean(),
|
|
365
|
+
hostname: import_zod25.z.string(),
|
|
366
|
+
id: import_zod25.z.string(),
|
|
367
|
+
machines: import_zod25.z.array(
|
|
368
|
+
import_zod25.z.object({
|
|
369
|
+
id: import_zod25.z.string(),
|
|
370
|
+
name: import_zod25.z.string(),
|
|
371
|
+
state: import_zod25.z.string(),
|
|
372
|
+
region: import_zod25.z.string(),
|
|
373
|
+
createdAt: import_zod25.z.string().datetime(),
|
|
374
|
+
updatedAt: import_zod25.z.string().datetime(),
|
|
375
|
+
config: import_zod25.z.object({
|
|
376
|
+
env: import_zod25.z.record(import_zod25.z.string()),
|
|
377
|
+
metadata: import_zod25.z.record(import_zod25.z.string())
|
|
384
378
|
}),
|
|
385
|
-
events:
|
|
386
|
-
|
|
387
|
-
type:
|
|
388
|
-
status:
|
|
389
|
-
timestamp:
|
|
379
|
+
events: import_zod25.z.array(
|
|
380
|
+
import_zod25.z.object({
|
|
381
|
+
type: import_zod25.z.string(),
|
|
382
|
+
status: import_zod25.z.string(),
|
|
383
|
+
timestamp: import_zod25.z.number()
|
|
390
384
|
})
|
|
391
385
|
),
|
|
392
|
-
checks:
|
|
393
|
-
|
|
394
|
-
name:
|
|
395
|
-
status:
|
|
396
|
-
output:
|
|
397
|
-
updatedAt:
|
|
386
|
+
checks: import_zod25.z.array(
|
|
387
|
+
import_zod25.z.object({
|
|
388
|
+
name: import_zod25.z.string(),
|
|
389
|
+
status: import_zod25.z.string(),
|
|
390
|
+
output: import_zod25.z.string(),
|
|
391
|
+
updatedAt: import_zod25.z.string().datetime()
|
|
398
392
|
})
|
|
399
393
|
).optional(),
|
|
400
|
-
hostStatus:
|
|
394
|
+
hostStatus: import_zod25.z.string()
|
|
401
395
|
})
|
|
402
396
|
),
|
|
403
|
-
name:
|
|
404
|
-
organization:
|
|
405
|
-
id:
|
|
406
|
-
slug:
|
|
397
|
+
name: import_zod25.z.string(),
|
|
398
|
+
organization: import_zod25.z.object({
|
|
399
|
+
id: import_zod25.z.string(),
|
|
400
|
+
slug: import_zod25.z.string()
|
|
407
401
|
}),
|
|
408
|
-
status:
|
|
409
|
-
version:
|
|
402
|
+
status: import_zod25.z.string(),
|
|
403
|
+
version: import_zod25.z.number()
|
|
410
404
|
});
|
|
411
405
|
var StatusTransformedResponseSchema = withCamelCase(
|
|
412
406
|
statusFlyResponseSchema,
|
|
@@ -419,8 +413,8 @@ var StatusTransformedResponseSchema = withCamelCase(
|
|
|
419
413
|
// packages/fly-node/src/lib/schemas/status-extended.schema.ts
|
|
420
414
|
var StatusExtendedTransformedResponseSchema = withCamelCase(
|
|
421
415
|
statusFlyResponseSchema.extend({
|
|
422
|
-
domains:
|
|
423
|
-
secrets:
|
|
416
|
+
domains: import_zod27.z.array(import_zod27.z.object({ hostname: import_zod27.z.string() })),
|
|
417
|
+
secrets: import_zod27.z.array(import_zod27.z.object({ name: import_zod27.z.string() }))
|
|
424
418
|
}),
|
|
425
419
|
{
|
|
426
420
|
preserve: ["machines.config.env", "machines.config.metadata"]
|
|
@@ -1116,7 +1110,7 @@ ${error}`);
|
|
|
1116
1110
|
if (onError === "throwOnError") {
|
|
1117
1111
|
throw error;
|
|
1118
1112
|
}
|
|
1119
|
-
if (error instanceof
|
|
1113
|
+
if (error instanceof import_zod28.ZodError) {
|
|
1120
1114
|
this.logger.info(`Failed to parse response:
|
|
1121
1115
|
${error.message}`);
|
|
1122
1116
|
this.logger.info(`Raw response:
|
package/index.js
CHANGED
|
@@ -104,18 +104,15 @@ import npmWhoami from "npm-whoami";
|
|
|
104
104
|
// packages/fly-node/src/lib/fly.class.ts
|
|
105
105
|
import { ZodError } from "zod";
|
|
106
106
|
|
|
107
|
-
// packages/core/src/lib/zod/create-lowercase-schema.ts
|
|
108
|
-
import { z } from "zod";
|
|
109
|
-
|
|
110
107
|
// packages/core/src/lib/zod/json.schema.ts
|
|
111
|
-
import { z
|
|
112
|
-
var LiteralSchema =
|
|
113
|
-
var JsonSchema =
|
|
114
|
-
() =>
|
|
108
|
+
import { z } from "zod";
|
|
109
|
+
var LiteralSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
110
|
+
var JsonSchema = z.lazy(
|
|
111
|
+
() => z.union([LiteralSchema, z.array(JsonSchema), z.record(JsonSchema)])
|
|
115
112
|
);
|
|
116
113
|
|
|
117
114
|
// packages/core/src/lib/zod/with-camel-case.preprocess.ts
|
|
118
|
-
import { z as
|
|
115
|
+
import { z as z2 } from "zod";
|
|
119
116
|
var toCamelCase = (str, specialCases = {}) => {
|
|
120
117
|
if (specialCases[str]) {
|
|
121
118
|
return specialCases[str];
|
|
@@ -162,7 +159,7 @@ var transformKeys = (options) => {
|
|
|
162
159
|
};
|
|
163
160
|
var withCamelCase = (schema, options = {}) => {
|
|
164
161
|
const { preserve = [], specialCases = {} } = options;
|
|
165
|
-
return
|
|
162
|
+
return z2.preprocess(
|
|
166
163
|
(data) => transformKeys({
|
|
167
164
|
currentPath: [],
|
|
168
165
|
data,
|
|
@@ -173,43 +170,40 @@ var withCamelCase = (schema, options = {}) => {
|
|
|
173
170
|
);
|
|
174
171
|
};
|
|
175
172
|
|
|
176
|
-
// packages/core/src/lib/zod/with-env-vars.preprocess.ts
|
|
177
|
-
import { z as z4 } from "zod";
|
|
178
|
-
|
|
179
173
|
// packages/core/src/lib/zod/with-replace-all.preprocess.ts
|
|
180
|
-
import { z as
|
|
174
|
+
import { z as z3 } from "zod";
|
|
181
175
|
|
|
182
176
|
// packages/fly-node/src/lib/schemas/apps-create.schema.ts
|
|
183
|
-
import { z as
|
|
177
|
+
import { z as z4 } from "zod";
|
|
184
178
|
var AppsCreateTransformedResponseSchema = withCamelCase(
|
|
185
|
-
|
|
186
|
-
id:
|
|
187
|
-
name:
|
|
188
|
-
organization:
|
|
189
|
-
id:
|
|
190
|
-
name:
|
|
179
|
+
z4.object({
|
|
180
|
+
id: z4.string(),
|
|
181
|
+
name: z4.string(),
|
|
182
|
+
organization: z4.object({
|
|
183
|
+
id: z4.string(),
|
|
184
|
+
name: z4.string()
|
|
191
185
|
})
|
|
192
186
|
})
|
|
193
187
|
);
|
|
194
188
|
|
|
195
189
|
// packages/fly-node/src/lib/schemas/apps-list.schema.ts
|
|
196
|
-
import { z as
|
|
197
|
-
var AppsListTransformedResponseSchema =
|
|
190
|
+
import { z as z5 } from "zod";
|
|
191
|
+
var AppsListTransformedResponseSchema = z5.array(
|
|
198
192
|
withCamelCase(
|
|
199
|
-
|
|
200
|
-
id:
|
|
201
|
-
name:
|
|
202
|
-
status:
|
|
203
|
-
deployed:
|
|
204
|
-
hostname:
|
|
205
|
-
organization:
|
|
206
|
-
name:
|
|
207
|
-
slug:
|
|
193
|
+
z5.object({
|
|
194
|
+
id: z5.string(),
|
|
195
|
+
name: z5.string(),
|
|
196
|
+
status: z5.string(),
|
|
197
|
+
deployed: z5.boolean(),
|
|
198
|
+
hostname: z5.string(),
|
|
199
|
+
organization: z5.object({
|
|
200
|
+
name: z5.string(),
|
|
201
|
+
slug: z5.string()
|
|
208
202
|
}),
|
|
209
|
-
currentRelease:
|
|
210
|
-
|
|
211
|
-
status:
|
|
212
|
-
createdAt:
|
|
203
|
+
currentRelease: z5.nullable(
|
|
204
|
+
z5.object({
|
|
205
|
+
status: z5.string(),
|
|
206
|
+
createdAt: z5.string().datetime()
|
|
213
207
|
})
|
|
214
208
|
)
|
|
215
209
|
})
|
|
@@ -217,46 +211,46 @@ var AppsListTransformedResponseSchema = z7.array(
|
|
|
217
211
|
);
|
|
218
212
|
|
|
219
213
|
// packages/fly-node/src/lib/schemas/certs-list-with-app.schema.ts
|
|
220
|
-
import { z as
|
|
214
|
+
import { z as z7 } from "zod";
|
|
221
215
|
|
|
222
216
|
// packages/fly-node/src/lib/schemas/certs-list.schema.ts
|
|
223
|
-
import { z as
|
|
224
|
-
var CertsListFlyResponseElementSchema =
|
|
225
|
-
createdAt:
|
|
226
|
-
hostname:
|
|
227
|
-
clientStatus:
|
|
217
|
+
import { z as z6 } from "zod";
|
|
218
|
+
var CertsListFlyResponseElementSchema = z6.object({
|
|
219
|
+
createdAt: z6.string().datetime(),
|
|
220
|
+
hostname: z6.string(),
|
|
221
|
+
clientStatus: z6.string()
|
|
228
222
|
});
|
|
229
|
-
var CertsListTransformedResponseSchema =
|
|
223
|
+
var CertsListTransformedResponseSchema = z6.array(
|
|
230
224
|
withCamelCase(CertsListFlyResponseElementSchema)
|
|
231
225
|
);
|
|
232
226
|
|
|
233
227
|
// packages/fly-node/src/lib/schemas/certs-list-with-app.schema.ts
|
|
234
|
-
var CertsListWithAppTransformedResponseSchema =
|
|
228
|
+
var CertsListWithAppTransformedResponseSchema = z7.array(
|
|
235
229
|
withCamelCase(
|
|
236
230
|
CertsListFlyResponseElementSchema.extend({
|
|
237
|
-
app:
|
|
231
|
+
app: z7.string()
|
|
238
232
|
})
|
|
239
233
|
)
|
|
240
234
|
);
|
|
241
235
|
|
|
242
236
|
// packages/fly-node/src/lib/schemas/config-show.schema.ts
|
|
243
|
-
import { z as
|
|
237
|
+
import { z as z8 } from "zod";
|
|
244
238
|
var ConfigShowResponseSchema = withCamelCase(
|
|
245
|
-
|
|
246
|
-
app:
|
|
247
|
-
primaryRegion:
|
|
248
|
-
build:
|
|
249
|
-
|
|
250
|
-
args:
|
|
251
|
-
dockerfile:
|
|
252
|
-
image:
|
|
239
|
+
z8.object({
|
|
240
|
+
app: z8.string(),
|
|
241
|
+
primaryRegion: z8.string().optional(),
|
|
242
|
+
build: z8.record(z8.string(), z8.any()).optional().or(
|
|
243
|
+
z8.object({
|
|
244
|
+
args: z8.record(z8.string(), z8.string()).optional(),
|
|
245
|
+
dockerfile: z8.string().optional(),
|
|
246
|
+
image: z8.string().optional()
|
|
253
247
|
})
|
|
254
248
|
),
|
|
255
|
-
deploy:
|
|
256
|
-
env:
|
|
257
|
-
httpService:
|
|
258
|
-
mounts:
|
|
259
|
-
services:
|
|
249
|
+
deploy: z8.record(z8.string(), z8.any()).optional().or(z8.object({ strategy: z8.string().optional() })),
|
|
250
|
+
env: z8.record(z8.string(), z8.string()).optional(),
|
|
251
|
+
httpService: z8.record(z8.string(), z8.any()).optional(),
|
|
252
|
+
mounts: z8.record(z8.string(), z8.any()).optional(),
|
|
253
|
+
services: z8.array(z8.record(z8.string(), z8.any())).optional()
|
|
260
254
|
}),
|
|
261
255
|
{
|
|
262
256
|
preserve: ["build.args", "env"]
|
|
@@ -264,115 +258,115 @@ var ConfigShowResponseSchema = withCamelCase(
|
|
|
264
258
|
);
|
|
265
259
|
|
|
266
260
|
// packages/fly-node/src/lib/schemas/deploy.schema.ts
|
|
267
|
-
import { z as
|
|
268
|
-
var DeployResponseSchema =
|
|
269
|
-
app:
|
|
270
|
-
hostname:
|
|
271
|
-
url:
|
|
261
|
+
import { z as z9 } from "zod";
|
|
262
|
+
var DeployResponseSchema = z9.object({
|
|
263
|
+
app: z9.string(),
|
|
264
|
+
hostname: z9.string(),
|
|
265
|
+
url: z9.string().url()
|
|
272
266
|
});
|
|
273
267
|
|
|
274
268
|
// packages/fly-node/src/lib/schemas/helper-schemas.ts
|
|
275
|
-
import { z as
|
|
276
|
-
var AllowEmptyUrlSchema =
|
|
277
|
-
var NameSchema =
|
|
269
|
+
import { z as z10 } from "zod";
|
|
270
|
+
var AllowEmptyUrlSchema = z10.string().url().or(z10.literal(""));
|
|
271
|
+
var NameSchema = z10.string({ message: "App name must be a valid slug" }).regex(/^[a-z0-9-]+$/);
|
|
278
272
|
|
|
279
273
|
// packages/fly-node/src/lib/schemas/postgres-list.ts
|
|
280
|
-
import { z as
|
|
281
|
-
var PostgresListTransformedResponseSchema =
|
|
274
|
+
import { z as z11 } from "zod";
|
|
275
|
+
var PostgresListTransformedResponseSchema = z11.array(
|
|
282
276
|
withCamelCase(
|
|
283
|
-
|
|
284
|
-
deployed:
|
|
285
|
-
hostname:
|
|
286
|
-
id:
|
|
287
|
-
name:
|
|
288
|
-
organization:
|
|
289
|
-
status:
|
|
290
|
-
version:
|
|
277
|
+
z11.object({
|
|
278
|
+
deployed: z11.boolean(),
|
|
279
|
+
hostname: z11.string(),
|
|
280
|
+
id: z11.string(),
|
|
281
|
+
name: z11.string(),
|
|
282
|
+
organization: z11.object({ id: z11.string(), slug: z11.string() }),
|
|
283
|
+
status: z11.string(),
|
|
284
|
+
version: z11.number()
|
|
291
285
|
})
|
|
292
286
|
)
|
|
293
287
|
);
|
|
294
288
|
|
|
295
289
|
// packages/fly-node/src/lib/schemas/postgres-users-list.ts
|
|
296
|
-
import { z as
|
|
297
|
-
var PostgresUsersListTransformedResponseSchema =
|
|
290
|
+
import { z as z12 } from "zod";
|
|
291
|
+
var PostgresUsersListTransformedResponseSchema = z12.array(
|
|
298
292
|
withCamelCase(
|
|
299
|
-
|
|
300
|
-
username:
|
|
301
|
-
superuser:
|
|
302
|
-
databases:
|
|
293
|
+
z12.object({
|
|
294
|
+
username: z12.string(),
|
|
295
|
+
superuser: z12.boolean(),
|
|
296
|
+
databases: z12.array(z12.string())
|
|
303
297
|
})
|
|
304
298
|
)
|
|
305
299
|
);
|
|
306
300
|
|
|
307
301
|
// packages/fly-node/src/lib/schemas/secrets-list-with-app.schema.ts
|
|
308
|
-
import { z as
|
|
302
|
+
import { z as z14 } from "zod";
|
|
309
303
|
|
|
310
304
|
// packages/fly-node/src/lib/schemas/secrets-list.schema.ts
|
|
311
|
-
import { z as
|
|
312
|
-
var SecretsListFlyResponseElementSchema =
|
|
313
|
-
name:
|
|
314
|
-
digest:
|
|
315
|
-
createdAt:
|
|
305
|
+
import { z as z13 } from "zod";
|
|
306
|
+
var SecretsListFlyResponseElementSchema = z13.object({
|
|
307
|
+
name: z13.string(),
|
|
308
|
+
digest: z13.string(),
|
|
309
|
+
createdAt: z13.string().datetime()
|
|
316
310
|
});
|
|
317
|
-
var SecretsListTransformedResponseSchema =
|
|
311
|
+
var SecretsListTransformedResponseSchema = z13.array(
|
|
318
312
|
withCamelCase(SecretsListFlyResponseElementSchema)
|
|
319
313
|
);
|
|
320
314
|
|
|
321
315
|
// packages/fly-node/src/lib/schemas/secrets-list-with-app.schema.ts
|
|
322
|
-
var SecretsListWithAppTransformedResponseSchema =
|
|
316
|
+
var SecretsListWithAppTransformedResponseSchema = z14.array(
|
|
323
317
|
withCamelCase(
|
|
324
318
|
SecretsListFlyResponseElementSchema.extend({
|
|
325
|
-
app:
|
|
319
|
+
app: z14.string()
|
|
326
320
|
})
|
|
327
321
|
)
|
|
328
322
|
);
|
|
329
323
|
|
|
330
324
|
// packages/fly-node/src/lib/schemas/status-extended.schema.ts
|
|
331
|
-
import { z as
|
|
325
|
+
import { z as z16 } from "zod";
|
|
332
326
|
|
|
333
327
|
// packages/fly-node/src/lib/schemas/status.schema.ts
|
|
334
|
-
import { z as
|
|
335
|
-
var statusFlyResponseSchema =
|
|
336
|
-
deployed:
|
|
337
|
-
hostname:
|
|
338
|
-
id:
|
|
339
|
-
machines:
|
|
340
|
-
|
|
341
|
-
id:
|
|
342
|
-
name:
|
|
343
|
-
state:
|
|
344
|
-
region:
|
|
345
|
-
createdAt:
|
|
346
|
-
updatedAt:
|
|
347
|
-
config:
|
|
348
|
-
env:
|
|
349
|
-
metadata:
|
|
328
|
+
import { z as z15 } from "zod";
|
|
329
|
+
var statusFlyResponseSchema = z15.object({
|
|
330
|
+
deployed: z15.boolean(),
|
|
331
|
+
hostname: z15.string(),
|
|
332
|
+
id: z15.string(),
|
|
333
|
+
machines: z15.array(
|
|
334
|
+
z15.object({
|
|
335
|
+
id: z15.string(),
|
|
336
|
+
name: z15.string(),
|
|
337
|
+
state: z15.string(),
|
|
338
|
+
region: z15.string(),
|
|
339
|
+
createdAt: z15.string().datetime(),
|
|
340
|
+
updatedAt: z15.string().datetime(),
|
|
341
|
+
config: z15.object({
|
|
342
|
+
env: z15.record(z15.string()),
|
|
343
|
+
metadata: z15.record(z15.string())
|
|
350
344
|
}),
|
|
351
|
-
events:
|
|
352
|
-
|
|
353
|
-
type:
|
|
354
|
-
status:
|
|
355
|
-
timestamp:
|
|
345
|
+
events: z15.array(
|
|
346
|
+
z15.object({
|
|
347
|
+
type: z15.string(),
|
|
348
|
+
status: z15.string(),
|
|
349
|
+
timestamp: z15.number()
|
|
356
350
|
})
|
|
357
351
|
),
|
|
358
|
-
checks:
|
|
359
|
-
|
|
360
|
-
name:
|
|
361
|
-
status:
|
|
362
|
-
output:
|
|
363
|
-
updatedAt:
|
|
352
|
+
checks: z15.array(
|
|
353
|
+
z15.object({
|
|
354
|
+
name: z15.string(),
|
|
355
|
+
status: z15.string(),
|
|
356
|
+
output: z15.string(),
|
|
357
|
+
updatedAt: z15.string().datetime()
|
|
364
358
|
})
|
|
365
359
|
).optional(),
|
|
366
|
-
hostStatus:
|
|
360
|
+
hostStatus: z15.string()
|
|
367
361
|
})
|
|
368
362
|
),
|
|
369
|
-
name:
|
|
370
|
-
organization:
|
|
371
|
-
id:
|
|
372
|
-
slug:
|
|
363
|
+
name: z15.string(),
|
|
364
|
+
organization: z15.object({
|
|
365
|
+
id: z15.string(),
|
|
366
|
+
slug: z15.string()
|
|
373
367
|
}),
|
|
374
|
-
status:
|
|
375
|
-
version:
|
|
368
|
+
status: z15.string(),
|
|
369
|
+
version: z15.number()
|
|
376
370
|
});
|
|
377
371
|
var StatusTransformedResponseSchema = withCamelCase(
|
|
378
372
|
statusFlyResponseSchema,
|
|
@@ -385,8 +379,8 @@ var StatusTransformedResponseSchema = withCamelCase(
|
|
|
385
379
|
// packages/fly-node/src/lib/schemas/status-extended.schema.ts
|
|
386
380
|
var StatusExtendedTransformedResponseSchema = withCamelCase(
|
|
387
381
|
statusFlyResponseSchema.extend({
|
|
388
|
-
domains:
|
|
389
|
-
secrets:
|
|
382
|
+
domains: z16.array(z16.object({ hostname: z16.string() })),
|
|
383
|
+
secrets: z16.array(z16.object({ name: z16.string() }))
|
|
390
384
|
}),
|
|
391
385
|
{
|
|
392
386
|
preserve: ["machines.config.env", "machines.config.metadata"]
|
package/package.json
CHANGED
|
@@ -13,31 +13,31 @@ export declare const AppsCreateTransformedResponseSchema: z.ZodEffects<z.ZodObje
|
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name: string;
|
|
17
16
|
id: string;
|
|
18
|
-
}, {
|
|
19
17
|
name: string;
|
|
18
|
+
}, {
|
|
20
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
name: string;
|
|
24
23
|
id: string;
|
|
24
|
+
name: string;
|
|
25
25
|
organization: {
|
|
26
|
-
name: string;
|
|
27
26
|
id: string;
|
|
27
|
+
name: string;
|
|
28
28
|
};
|
|
29
29
|
}, {
|
|
30
|
-
name: string;
|
|
31
30
|
id: string;
|
|
31
|
+
name: string;
|
|
32
32
|
organization: {
|
|
33
|
-
name: string;
|
|
34
33
|
id: string;
|
|
34
|
+
name: string;
|
|
35
35
|
};
|
|
36
36
|
}>, {
|
|
37
|
-
name: string;
|
|
38
37
|
id: string;
|
|
38
|
+
name: string;
|
|
39
39
|
organization: {
|
|
40
|
-
name: string;
|
|
41
40
|
id: string;
|
|
41
|
+
name: string;
|
|
42
42
|
};
|
|
43
43
|
}, unknown>;
|
|
@@ -33,9 +33,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
|
|
|
33
33
|
createdAt: string;
|
|
34
34
|
}>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
name: string;
|
|
37
|
-
status: string;
|
|
38
36
|
id: string;
|
|
37
|
+
status: string;
|
|
38
|
+
name: string;
|
|
39
39
|
organization: {
|
|
40
40
|
name: string;
|
|
41
41
|
slug: string;
|
|
@@ -47,9 +47,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
} | null;
|
|
49
49
|
}, {
|
|
50
|
-
name: string;
|
|
51
|
-
status: string;
|
|
52
50
|
id: string;
|
|
51
|
+
status: string;
|
|
52
|
+
name: string;
|
|
53
53
|
organization: {
|
|
54
54
|
name: string;
|
|
55
55
|
slug: string;
|
|
@@ -61,9 +61,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
} | null;
|
|
63
63
|
}>, {
|
|
64
|
-
name: string;
|
|
65
|
-
status: string;
|
|
66
64
|
id: string;
|
|
65
|
+
status: string;
|
|
66
|
+
name: string;
|
|
67
67
|
organization: {
|
|
68
68
|
name: string;
|
|
69
69
|
slug: string;
|
|
@@ -24,9 +24,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
|
|
|
24
24
|
status: z.ZodString;
|
|
25
25
|
version: z.ZodNumber;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
name: string;
|
|
28
|
-
status: string;
|
|
29
27
|
id: string;
|
|
28
|
+
status: string;
|
|
29
|
+
name: string;
|
|
30
30
|
organization: {
|
|
31
31
|
id: string;
|
|
32
32
|
slug: string;
|
|
@@ -35,9 +35,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
|
|
|
35
35
|
hostname: string;
|
|
36
36
|
version: number;
|
|
37
37
|
}, {
|
|
38
|
-
name: string;
|
|
39
|
-
status: string;
|
|
40
38
|
id: string;
|
|
39
|
+
status: string;
|
|
40
|
+
name: string;
|
|
41
41
|
organization: {
|
|
42
42
|
id: string;
|
|
43
43
|
slug: string;
|
|
@@ -46,9 +46,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
|
|
|
46
46
|
hostname: string;
|
|
47
47
|
version: number;
|
|
48
48
|
}>, {
|
|
49
|
-
name: string;
|
|
50
|
-
status: string;
|
|
51
49
|
id: string;
|
|
50
|
+
status: string;
|
|
51
|
+
name: string;
|
|
52
52
|
organization: {
|
|
53
53
|
id: string;
|
|
54
54
|
slug: string;
|
|
@@ -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;
|