@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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.1 (2025-02-07)
2
+
3
+ ### 🐞 Bug Fixes
4
+
5
+ - **web:** remove dependency to payload and related packages ([0a7a63e](https://github.com/codeware-sthlm/codeware/commit/0a7a63e))
6
+
1
7
  ## 0.2.0 (2025-01-30)
2
8
 
3
9
  ### ✨ Features
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 import_zod30 = require("zod");
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 import_zod2 = require("zod");
146
- var LiteralSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number(), import_zod2.z.boolean(), import_zod2.z.null()]);
147
- var JsonSchema = import_zod2.z.lazy(
148
- () => import_zod2.z.union([LiteralSchema, import_zod2.z.array(JsonSchema), import_zod2.z.record(JsonSchema)])
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 import_zod3 = require("zod");
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 import_zod3.z.preprocess(
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 import_zod5 = require("zod");
208
+ var import_zod3 = require("zod");
215
209
 
216
210
  // packages/fly-node/src/lib/schemas/apps-create.schema.ts
217
- var import_zod7 = require("zod");
211
+ var import_zod5 = require("zod");
218
212
  var AppsCreateTransformedResponseSchema = withCamelCase(
219
- import_zod7.z.object({
220
- id: import_zod7.z.string(),
221
- name: import_zod7.z.string(),
222
- organization: import_zod7.z.object({
223
- id: import_zod7.z.string(),
224
- name: import_zod7.z.string()
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 import_zod9 = require("zod");
231
- var AppsListTransformedResponseSchema = import_zod9.z.array(
224
+ var import_zod7 = require("zod");
225
+ var AppsListTransformedResponseSchema = import_zod7.z.array(
232
226
  withCamelCase(
233
- import_zod9.z.object({
234
- id: import_zod9.z.string(),
235
- name: import_zod9.z.string(),
236
- status: import_zod9.z.string(),
237
- deployed: import_zod9.z.boolean(),
238
- hostname: import_zod9.z.string(),
239
- organization: import_zod9.z.object({
240
- name: import_zod9.z.string(),
241
- slug: import_zod9.z.string()
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: import_zod9.z.nullable(
244
- import_zod9.z.object({
245
- status: import_zod9.z.string(),
246
- createdAt: import_zod9.z.string().datetime()
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 import_zod13 = require("zod");
248
+ var import_zod11 = require("zod");
255
249
 
256
250
  // packages/fly-node/src/lib/schemas/certs-list.schema.ts
257
- var import_zod11 = require("zod");
258
- var CertsListFlyResponseElementSchema = import_zod11.z.object({
259
- createdAt: import_zod11.z.string().datetime(),
260
- hostname: import_zod11.z.string(),
261
- clientStatus: import_zod11.z.string()
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 = import_zod11.z.array(
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 = import_zod13.z.array(
262
+ var CertsListWithAppTransformedResponseSchema = import_zod11.z.array(
269
263
  withCamelCase(
270
264
  CertsListFlyResponseElementSchema.extend({
271
- app: import_zod13.z.string()
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 import_zod15 = require("zod");
271
+ var import_zod13 = require("zod");
278
272
  var ConfigShowResponseSchema = withCamelCase(
279
- import_zod15.z.object({
280
- app: import_zod15.z.string(),
281
- primaryRegion: import_zod15.z.string().optional(),
282
- build: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any()).optional().or(
283
- import_zod15.z.object({
284
- args: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.string()).optional(),
285
- dockerfile: import_zod15.z.string().optional(),
286
- image: import_zod15.z.string().optional()
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: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any()).optional().or(import_zod15.z.object({ strategy: import_zod15.z.string().optional() })),
290
- env: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.string()).optional(),
291
- httpService: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any()).optional(),
292
- mounts: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any()).optional(),
293
- services: import_zod15.z.array(import_zod15.z.record(import_zod15.z.string(), import_zod15.z.any())).optional()
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 import_zod16 = require("zod");
302
- var DeployResponseSchema = import_zod16.z.object({
303
- app: import_zod16.z.string(),
304
- hostname: import_zod16.z.string(),
305
- url: import_zod16.z.string().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 import_zod17 = require("zod");
310
- var AllowEmptyUrlSchema = import_zod17.z.string().url().or(import_zod17.z.literal(""));
311
- var NameSchema = import_zod17.z.string({ message: "App name must be a valid slug" }).regex(/^[a-z0-9-]+$/);
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 import_zod19 = require("zod");
315
- var PostgresListTransformedResponseSchema = import_zod19.z.array(
308
+ var import_zod17 = require("zod");
309
+ var PostgresListTransformedResponseSchema = import_zod17.z.array(
316
310
  withCamelCase(
317
- import_zod19.z.object({
318
- deployed: import_zod19.z.boolean(),
319
- hostname: import_zod19.z.string(),
320
- id: import_zod19.z.string(),
321
- name: import_zod19.z.string(),
322
- organization: import_zod19.z.object({ id: import_zod19.z.string(), slug: import_zod19.z.string() }),
323
- status: import_zod19.z.string(),
324
- version: import_zod19.z.number()
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 import_zod21 = require("zod");
331
- var PostgresUsersListTransformedResponseSchema = import_zod21.z.array(
324
+ var import_zod19 = require("zod");
325
+ var PostgresUsersListTransformedResponseSchema = import_zod19.z.array(
332
326
  withCamelCase(
333
- import_zod21.z.object({
334
- username: import_zod21.z.string(),
335
- superuser: import_zod21.z.boolean(),
336
- databases: import_zod21.z.array(import_zod21.z.string())
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 import_zod25 = require("zod");
336
+ var import_zod23 = require("zod");
343
337
 
344
338
  // packages/fly-node/src/lib/schemas/secrets-list.schema.ts
345
- var import_zod23 = require("zod");
346
- var SecretsListFlyResponseElementSchema = import_zod23.z.object({
347
- name: import_zod23.z.string(),
348
- digest: import_zod23.z.string(),
349
- createdAt: import_zod23.z.string().datetime()
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 = import_zod23.z.array(
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 = import_zod25.z.array(
350
+ var SecretsListWithAppTransformedResponseSchema = import_zod23.z.array(
357
351
  withCamelCase(
358
352
  SecretsListFlyResponseElementSchema.extend({
359
- app: import_zod25.z.string()
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 import_zod29 = require("zod");
359
+ var import_zod27 = require("zod");
366
360
 
367
361
  // packages/fly-node/src/lib/schemas/status.schema.ts
368
- var import_zod27 = require("zod");
369
- var statusFlyResponseSchema = import_zod27.z.object({
370
- deployed: import_zod27.z.boolean(),
371
- hostname: import_zod27.z.string(),
372
- id: import_zod27.z.string(),
373
- machines: import_zod27.z.array(
374
- import_zod27.z.object({
375
- id: import_zod27.z.string(),
376
- name: import_zod27.z.string(),
377
- state: import_zod27.z.string(),
378
- region: import_zod27.z.string(),
379
- createdAt: import_zod27.z.string().datetime(),
380
- updatedAt: import_zod27.z.string().datetime(),
381
- config: import_zod27.z.object({
382
- env: import_zod27.z.record(import_zod27.z.string()),
383
- metadata: import_zod27.z.record(import_zod27.z.string())
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: import_zod27.z.array(
386
- import_zod27.z.object({
387
- type: import_zod27.z.string(),
388
- status: import_zod27.z.string(),
389
- timestamp: import_zod27.z.number()
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: import_zod27.z.array(
393
- import_zod27.z.object({
394
- name: import_zod27.z.string(),
395
- status: import_zod27.z.string(),
396
- output: import_zod27.z.string(),
397
- updatedAt: import_zod27.z.string().datetime()
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: import_zod27.z.string()
394
+ hostStatus: import_zod25.z.string()
401
395
  })
402
396
  ),
403
- name: import_zod27.z.string(),
404
- organization: import_zod27.z.object({
405
- id: import_zod27.z.string(),
406
- slug: import_zod27.z.string()
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: import_zod27.z.string(),
409
- version: import_zod27.z.number()
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: import_zod29.z.array(import_zod29.z.object({ hostname: import_zod29.z.string() })),
423
- secrets: import_zod29.z.array(import_zod29.z.object({ name: import_zod29.z.string() }))
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 import_zod30.ZodError) {
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 as z2 } from "zod";
112
- var LiteralSchema = z2.union([z2.string(), z2.number(), z2.boolean(), z2.null()]);
113
- var JsonSchema = z2.lazy(
114
- () => z2.union([LiteralSchema, z2.array(JsonSchema), z2.record(JsonSchema)])
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 z3 } from "zod";
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 z3.preprocess(
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 z5 } from "zod";
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 z6 } from "zod";
177
+ import { z as z4 } from "zod";
184
178
  var AppsCreateTransformedResponseSchema = withCamelCase(
185
- z6.object({
186
- id: z6.string(),
187
- name: z6.string(),
188
- organization: z6.object({
189
- id: z6.string(),
190
- name: z6.string()
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 z7 } from "zod";
197
- var AppsListTransformedResponseSchema = z7.array(
190
+ import { z as z5 } from "zod";
191
+ var AppsListTransformedResponseSchema = z5.array(
198
192
  withCamelCase(
199
- z7.object({
200
- id: z7.string(),
201
- name: z7.string(),
202
- status: z7.string(),
203
- deployed: z7.boolean(),
204
- hostname: z7.string(),
205
- organization: z7.object({
206
- name: z7.string(),
207
- slug: z7.string()
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: z7.nullable(
210
- z7.object({
211
- status: z7.string(),
212
- createdAt: z7.string().datetime()
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 z9 } from "zod";
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 z8 } from "zod";
224
- var CertsListFlyResponseElementSchema = z8.object({
225
- createdAt: z8.string().datetime(),
226
- hostname: z8.string(),
227
- clientStatus: z8.string()
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 = z8.array(
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 = z9.array(
228
+ var CertsListWithAppTransformedResponseSchema = z7.array(
235
229
  withCamelCase(
236
230
  CertsListFlyResponseElementSchema.extend({
237
- app: z9.string()
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 z10 } from "zod";
237
+ import { z as z8 } from "zod";
244
238
  var ConfigShowResponseSchema = withCamelCase(
245
- z10.object({
246
- app: z10.string(),
247
- primaryRegion: z10.string().optional(),
248
- build: z10.record(z10.string(), z10.any()).optional().or(
249
- z10.object({
250
- args: z10.record(z10.string(), z10.string()).optional(),
251
- dockerfile: z10.string().optional(),
252
- image: z10.string().optional()
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: z10.record(z10.string(), z10.any()).optional().or(z10.object({ strategy: z10.string().optional() })),
256
- env: z10.record(z10.string(), z10.string()).optional(),
257
- httpService: z10.record(z10.string(), z10.any()).optional(),
258
- mounts: z10.record(z10.string(), z10.any()).optional(),
259
- services: z10.array(z10.record(z10.string(), z10.any())).optional()
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 z11 } from "zod";
268
- var DeployResponseSchema = z11.object({
269
- app: z11.string(),
270
- hostname: z11.string(),
271
- url: z11.string().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 z12 } from "zod";
276
- var AllowEmptyUrlSchema = z12.string().url().or(z12.literal(""));
277
- var NameSchema = z12.string({ message: "App name must be a valid slug" }).regex(/^[a-z0-9-]+$/);
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 z13 } from "zod";
281
- var PostgresListTransformedResponseSchema = z13.array(
274
+ import { z as z11 } from "zod";
275
+ var PostgresListTransformedResponseSchema = z11.array(
282
276
  withCamelCase(
283
- z13.object({
284
- deployed: z13.boolean(),
285
- hostname: z13.string(),
286
- id: z13.string(),
287
- name: z13.string(),
288
- organization: z13.object({ id: z13.string(), slug: z13.string() }),
289
- status: z13.string(),
290
- version: z13.number()
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 z14 } from "zod";
297
- var PostgresUsersListTransformedResponseSchema = z14.array(
290
+ import { z as z12 } from "zod";
291
+ var PostgresUsersListTransformedResponseSchema = z12.array(
298
292
  withCamelCase(
299
- z14.object({
300
- username: z14.string(),
301
- superuser: z14.boolean(),
302
- databases: z14.array(z14.string())
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 z16 } from "zod";
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 z15 } from "zod";
312
- var SecretsListFlyResponseElementSchema = z15.object({
313
- name: z15.string(),
314
- digest: z15.string(),
315
- createdAt: z15.string().datetime()
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 = z15.array(
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 = z16.array(
316
+ var SecretsListWithAppTransformedResponseSchema = z14.array(
323
317
  withCamelCase(
324
318
  SecretsListFlyResponseElementSchema.extend({
325
- app: z16.string()
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 z18 } from "zod";
325
+ import { z as z16 } from "zod";
332
326
 
333
327
  // packages/fly-node/src/lib/schemas/status.schema.ts
334
- import { z as z17 } from "zod";
335
- var statusFlyResponseSchema = z17.object({
336
- deployed: z17.boolean(),
337
- hostname: z17.string(),
338
- id: z17.string(),
339
- machines: z17.array(
340
- z17.object({
341
- id: z17.string(),
342
- name: z17.string(),
343
- state: z17.string(),
344
- region: z17.string(),
345
- createdAt: z17.string().datetime(),
346
- updatedAt: z17.string().datetime(),
347
- config: z17.object({
348
- env: z17.record(z17.string()),
349
- metadata: z17.record(z17.string())
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: z17.array(
352
- z17.object({
353
- type: z17.string(),
354
- status: z17.string(),
355
- timestamp: z17.number()
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: z17.array(
359
- z17.object({
360
- name: z17.string(),
361
- status: z17.string(),
362
- output: z17.string(),
363
- updatedAt: z17.string().datetime()
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: z17.string()
360
+ hostStatus: z15.string()
367
361
  })
368
362
  ),
369
- name: z17.string(),
370
- organization: z17.object({
371
- id: z17.string(),
372
- slug: z17.string()
363
+ name: z15.string(),
364
+ organization: z15.object({
365
+ id: z15.string(),
366
+ slug: z15.string()
373
367
  }),
374
- status: z17.string(),
375
- version: z17.number()
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: z18.array(z18.object({ hostname: z18.string() })),
389
- secrets: z18.array(z18.object({ name: z18.string() }))
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdwr/fly-node",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The flyctl node wrapper for programmatic deployments to fly.io.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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;