@cdwr/fly-node 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,19 +21,7 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
21
21
  tag: z.ZodString;
22
22
  digest: z.ZodString;
23
23
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24
- }, "strip", z.ZodTypeAny, {
25
- tag: string;
26
- digest: string;
27
- registry: string;
28
- repository: string;
29
- labels?: Record<string, string> | undefined;
30
- }, {
31
- tag: string;
32
- digest: string;
33
- registry: string;
34
- repository: string;
35
- labels?: Record<string, string> | undefined;
36
- }>;
24
+ }, z.core.$strip>;
37
25
  createdAt: z.ZodString;
38
26
  updatedAt: z.ZodString;
39
27
  config: z.ZodObject<{
@@ -43,241 +31,29 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
43
31
  cpu_kind: z.ZodOptional<z.ZodString>;
44
32
  cpus: z.ZodOptional<z.ZodNumber>;
45
33
  memory_mb: z.ZodOptional<z.ZodNumber>;
46
- }, "strip", z.ZodTypeAny, {
47
- cpu_kind?: string | undefined;
48
- cpus?: number | undefined;
49
- memory_mb?: number | undefined;
50
- }, {
51
- cpu_kind?: string | undefined;
52
- cpus?: number | undefined;
53
- memory_mb?: number | undefined;
54
- }>>;
55
- }, "strip", z.ZodTypeAny, {
56
- env: Record<string, string>;
57
- metadata: Record<string, string>;
58
- guest?: {
59
- cpu_kind?: string | undefined;
60
- cpus?: number | undefined;
61
- memory_mb?: number | undefined;
62
- } | undefined;
63
- }, {
64
- env: Record<string, string>;
65
- metadata: Record<string, string>;
66
- guest?: {
67
- cpu_kind?: string | undefined;
68
- cpus?: number | undefined;
69
- memory_mb?: number | undefined;
70
- } | undefined;
71
- }>;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>;
72
36
  events: z.ZodArray<z.ZodObject<{
73
37
  type: z.ZodString;
74
38
  status: z.ZodString;
75
39
  timestamp: z.ZodNumber;
76
- }, "strip", z.ZodTypeAny, {
77
- type: string;
78
- status: string;
79
- timestamp: number;
80
- }, {
81
- type: string;
82
- status: string;
83
- timestamp: number;
84
- }>, "many">;
40
+ }, z.core.$strip>>;
85
41
  checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
42
  name: z.ZodString;
87
43
  status: z.ZodString;
88
44
  output: z.ZodString;
89
45
  updatedAt: z.ZodString;
90
- }, "strip", z.ZodTypeAny, {
91
- status: string;
92
- name: string;
93
- updatedAt: string;
94
- output: string;
95
- }, {
96
- status: string;
97
- name: string;
98
- updatedAt: string;
99
- output: string;
100
- }>, "many">>;
46
+ }, z.core.$strip>>>;
101
47
  hostStatus: z.ZodString;
102
- }, "strip", z.ZodTypeAny, {
103
- id: string;
104
- createdAt: string;
105
- name: string;
106
- state: string;
107
- region: string;
108
- imageRef: {
109
- tag: string;
110
- digest: string;
111
- registry: string;
112
- repository: string;
113
- labels?: Record<string, string> | undefined;
114
- };
115
- updatedAt: string;
116
- config: {
117
- env: Record<string, string>;
118
- metadata: Record<string, string>;
119
- guest?: {
120
- cpu_kind?: string | undefined;
121
- cpus?: number | undefined;
122
- memory_mb?: number | undefined;
123
- } | undefined;
124
- };
125
- events: {
126
- type: string;
127
- status: string;
128
- timestamp: number;
129
- }[];
130
- hostStatus: string;
131
- checks?: {
132
- status: string;
133
- name: string;
134
- updatedAt: string;
135
- output: string;
136
- }[] | undefined;
137
- }, {
138
- id: string;
139
- createdAt: string;
140
- name: string;
141
- state: string;
142
- region: string;
143
- imageRef: {
144
- tag: string;
145
- digest: string;
146
- registry: string;
147
- repository: string;
148
- labels?: Record<string, string> | undefined;
149
- };
150
- updatedAt: string;
151
- config: {
152
- env: Record<string, string>;
153
- metadata: Record<string, string>;
154
- guest?: {
155
- cpu_kind?: string | undefined;
156
- cpus?: number | undefined;
157
- memory_mb?: number | undefined;
158
- } | undefined;
159
- };
160
- events: {
161
- type: string;
162
- status: string;
163
- timestamp: number;
164
- }[];
165
- hostStatus: string;
166
- checks?: {
167
- status: string;
168
- name: string;
169
- updatedAt: string;
170
- output: string;
171
- }[] | undefined;
172
- }>, "many">;
48
+ }, z.core.$strip>>;
173
49
  name: z.ZodString;
174
50
  organization: z.ZodObject<{
175
51
  id: z.ZodString;
176
52
  slug: z.ZodString;
177
- }, "strip", z.ZodTypeAny, {
178
- id: string;
179
- slug: string;
180
- }, {
181
- id: string;
182
- slug: string;
183
- }>;
53
+ }, z.core.$strip>;
184
54
  status: z.ZodString;
185
55
  version: z.ZodNumber;
186
- }, "strip", z.ZodTypeAny, {
187
- status: string;
188
- hostname: string;
189
- id: string;
190
- name: string;
191
- deployed: boolean;
192
- organization: {
193
- id: string;
194
- slug: string;
195
- };
196
- version: number;
197
- machines: {
198
- id: string;
199
- createdAt: string;
200
- name: string;
201
- state: string;
202
- region: string;
203
- imageRef: {
204
- tag: string;
205
- digest: string;
206
- registry: string;
207
- repository: string;
208
- labels?: Record<string, string> | undefined;
209
- };
210
- updatedAt: string;
211
- config: {
212
- env: Record<string, string>;
213
- metadata: Record<string, string>;
214
- guest?: {
215
- cpu_kind?: string | undefined;
216
- cpus?: number | undefined;
217
- memory_mb?: number | undefined;
218
- } | undefined;
219
- };
220
- events: {
221
- type: string;
222
- status: string;
223
- timestamp: number;
224
- }[];
225
- hostStatus: string;
226
- checks?: {
227
- status: string;
228
- name: string;
229
- updatedAt: string;
230
- output: string;
231
- }[] | undefined;
232
- }[];
233
- }, {
234
- status: string;
235
- hostname: string;
236
- id: string;
237
- name: string;
238
- deployed: boolean;
239
- organization: {
240
- id: string;
241
- slug: string;
242
- };
243
- version: number;
244
- machines: {
245
- id: string;
246
- createdAt: string;
247
- name: string;
248
- state: string;
249
- region: string;
250
- imageRef: {
251
- tag: string;
252
- digest: string;
253
- registry: string;
254
- repository: string;
255
- labels?: Record<string, string> | undefined;
256
- };
257
- updatedAt: string;
258
- config: {
259
- env: Record<string, string>;
260
- metadata: Record<string, string>;
261
- guest?: {
262
- cpu_kind?: string | undefined;
263
- cpus?: number | undefined;
264
- memory_mb?: number | undefined;
265
- } | undefined;
266
- };
267
- events: {
268
- type: string;
269
- status: string;
270
- timestamp: number;
271
- }[];
272
- hostStatus: string;
273
- checks?: {
274
- status: string;
275
- name: string;
276
- updatedAt: string;
277
- output: string;
278
- }[] | undefined;
279
- }[];
280
- }>;
56
+ }, z.core.$strip>;
281
57
  /**
282
58
  * Transformed status response schema
283
59
  *
@@ -285,7 +61,7 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
285
61
  * fly status --app [name] --json
286
62
  * ```
287
63
  */
288
- export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
64
+ export declare const StatusTransformedResponseSchema: z.ZodPreprocess<z.ZodObject<{
289
65
  deployed: z.ZodBoolean;
290
66
  hostname: z.ZodString;
291
67
  id: z.ZodString;
@@ -300,19 +76,7 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
300
76
  tag: z.ZodString;
301
77
  digest: z.ZodString;
302
78
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
303
- }, "strip", z.ZodTypeAny, {
304
- tag: string;
305
- digest: string;
306
- registry: string;
307
- repository: string;
308
- labels?: Record<string, string> | undefined;
309
- }, {
310
- tag: string;
311
- digest: string;
312
- registry: string;
313
- repository: string;
314
- labels?: Record<string, string> | undefined;
315
- }>;
79
+ }, z.core.$strip>;
316
80
  createdAt: z.ZodString;
317
81
  updatedAt: z.ZodString;
318
82
  config: z.ZodObject<{
@@ -322,288 +86,29 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
322
86
  cpu_kind: z.ZodOptional<z.ZodString>;
323
87
  cpus: z.ZodOptional<z.ZodNumber>;
324
88
  memory_mb: z.ZodOptional<z.ZodNumber>;
325
- }, "strip", z.ZodTypeAny, {
326
- cpu_kind?: string | undefined;
327
- cpus?: number | undefined;
328
- memory_mb?: number | undefined;
329
- }, {
330
- cpu_kind?: string | undefined;
331
- cpus?: number | undefined;
332
- memory_mb?: number | undefined;
333
- }>>;
334
- }, "strip", z.ZodTypeAny, {
335
- env: Record<string, string>;
336
- metadata: Record<string, string>;
337
- guest?: {
338
- cpu_kind?: string | undefined;
339
- cpus?: number | undefined;
340
- memory_mb?: number | undefined;
341
- } | undefined;
342
- }, {
343
- env: Record<string, string>;
344
- metadata: Record<string, string>;
345
- guest?: {
346
- cpu_kind?: string | undefined;
347
- cpus?: number | undefined;
348
- memory_mb?: number | undefined;
349
- } | undefined;
350
- }>;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>;
351
91
  events: z.ZodArray<z.ZodObject<{
352
92
  type: z.ZodString;
353
93
  status: z.ZodString;
354
94
  timestamp: z.ZodNumber;
355
- }, "strip", z.ZodTypeAny, {
356
- type: string;
357
- status: string;
358
- timestamp: number;
359
- }, {
360
- type: string;
361
- status: string;
362
- timestamp: number;
363
- }>, "many">;
95
+ }, z.core.$strip>>;
364
96
  checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
97
  name: z.ZodString;
366
98
  status: z.ZodString;
367
99
  output: z.ZodString;
368
100
  updatedAt: z.ZodString;
369
- }, "strip", z.ZodTypeAny, {
370
- status: string;
371
- name: string;
372
- updatedAt: string;
373
- output: string;
374
- }, {
375
- status: string;
376
- name: string;
377
- updatedAt: string;
378
- output: string;
379
- }>, "many">>;
101
+ }, z.core.$strip>>>;
380
102
  hostStatus: z.ZodString;
381
- }, "strip", z.ZodTypeAny, {
382
- id: string;
383
- createdAt: string;
384
- name: string;
385
- state: string;
386
- region: string;
387
- imageRef: {
388
- tag: string;
389
- digest: string;
390
- registry: string;
391
- repository: string;
392
- labels?: Record<string, string> | undefined;
393
- };
394
- updatedAt: string;
395
- config: {
396
- env: Record<string, string>;
397
- metadata: Record<string, string>;
398
- guest?: {
399
- cpu_kind?: string | undefined;
400
- cpus?: number | undefined;
401
- memory_mb?: number | undefined;
402
- } | undefined;
403
- };
404
- events: {
405
- type: string;
406
- status: string;
407
- timestamp: number;
408
- }[];
409
- hostStatus: string;
410
- checks?: {
411
- status: string;
412
- name: string;
413
- updatedAt: string;
414
- output: string;
415
- }[] | undefined;
416
- }, {
417
- id: string;
418
- createdAt: string;
419
- name: string;
420
- state: string;
421
- region: string;
422
- imageRef: {
423
- tag: string;
424
- digest: string;
425
- registry: string;
426
- repository: string;
427
- labels?: Record<string, string> | undefined;
428
- };
429
- updatedAt: string;
430
- config: {
431
- env: Record<string, string>;
432
- metadata: Record<string, string>;
433
- guest?: {
434
- cpu_kind?: string | undefined;
435
- cpus?: number | undefined;
436
- memory_mb?: number | undefined;
437
- } | undefined;
438
- };
439
- events: {
440
- type: string;
441
- status: string;
442
- timestamp: number;
443
- }[];
444
- hostStatus: string;
445
- checks?: {
446
- status: string;
447
- name: string;
448
- updatedAt: string;
449
- output: string;
450
- }[] | undefined;
451
- }>, "many">;
103
+ }, z.core.$strip>>;
452
104
  name: z.ZodString;
453
105
  organization: z.ZodObject<{
454
106
  id: z.ZodString;
455
107
  slug: z.ZodString;
456
- }, "strip", z.ZodTypeAny, {
457
- id: string;
458
- slug: string;
459
- }, {
460
- id: string;
461
- slug: string;
462
- }>;
108
+ }, z.core.$strip>;
463
109
  status: z.ZodString;
464
110
  version: z.ZodNumber;
465
- }, "strip", z.ZodTypeAny, {
466
- status: string;
467
- hostname: string;
468
- id: string;
469
- name: string;
470
- deployed: boolean;
471
- organization: {
472
- id: string;
473
- slug: string;
474
- };
475
- version: number;
476
- machines: {
477
- id: string;
478
- createdAt: string;
479
- name: string;
480
- state: string;
481
- region: string;
482
- imageRef: {
483
- tag: string;
484
- digest: string;
485
- registry: string;
486
- repository: string;
487
- labels?: Record<string, string> | undefined;
488
- };
489
- updatedAt: string;
490
- config: {
491
- env: Record<string, string>;
492
- metadata: Record<string, string>;
493
- guest?: {
494
- cpu_kind?: string | undefined;
495
- cpus?: number | undefined;
496
- memory_mb?: number | undefined;
497
- } | undefined;
498
- };
499
- events: {
500
- type: string;
501
- status: string;
502
- timestamp: number;
503
- }[];
504
- hostStatus: string;
505
- checks?: {
506
- status: string;
507
- name: string;
508
- updatedAt: string;
509
- output: string;
510
- }[] | undefined;
511
- }[];
512
- }, {
513
- status: string;
514
- hostname: string;
515
- id: string;
516
- name: string;
517
- deployed: boolean;
518
- organization: {
519
- id: string;
520
- slug: string;
521
- };
522
- version: number;
523
- machines: {
524
- id: string;
525
- createdAt: string;
526
- name: string;
527
- state: string;
528
- region: string;
529
- imageRef: {
530
- tag: string;
531
- digest: string;
532
- registry: string;
533
- repository: string;
534
- labels?: Record<string, string> | undefined;
535
- };
536
- updatedAt: string;
537
- config: {
538
- env: Record<string, string>;
539
- metadata: Record<string, string>;
540
- guest?: {
541
- cpu_kind?: string | undefined;
542
- cpus?: number | undefined;
543
- memory_mb?: number | undefined;
544
- } | undefined;
545
- };
546
- events: {
547
- type: string;
548
- status: string;
549
- timestamp: number;
550
- }[];
551
- hostStatus: string;
552
- checks?: {
553
- status: string;
554
- name: string;
555
- updatedAt: string;
556
- output: string;
557
- }[] | undefined;
558
- }[];
559
- }>, {
560
- status: string;
561
- hostname: string;
562
- id: string;
563
- name: string;
564
- deployed: boolean;
565
- organization: {
566
- id: string;
567
- slug: string;
568
- };
569
- version: number;
570
- machines: {
571
- id: string;
572
- createdAt: string;
573
- name: string;
574
- state: string;
575
- region: string;
576
- imageRef: {
577
- tag: string;
578
- digest: string;
579
- registry: string;
580
- repository: string;
581
- labels?: Record<string, string> | undefined;
582
- };
583
- updatedAt: string;
584
- config: {
585
- env: Record<string, string>;
586
- metadata: Record<string, string>;
587
- guest?: {
588
- cpu_kind?: string | undefined;
589
- cpus?: number | undefined;
590
- memory_mb?: number | undefined;
591
- } | undefined;
592
- };
593
- events: {
594
- type: string;
595
- status: string;
596
- timestamp: number;
597
- }[];
598
- hostStatus: string;
599
- checks?: {
600
- status: string;
601
- name: string;
602
- updatedAt: string;
603
- output: string;
604
- }[] | undefined;
605
- }[];
606
- }, unknown>;
111
+ }, z.core.$strip>, unknown>;
607
112
  /**
608
113
  * Lenient status response schema for internal lookups
609
114
  *
@@ -613,57 +118,12 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
613
118
  *
614
119
  * Internal, not part of the public API.
615
120
  */
616
- export declare const statusLookupSchema: z.ZodEffects<z.ZodObject<{
121
+ export declare const statusLookupSchema: z.ZodPreprocess<z.ZodObject<{
617
122
  name: z.ZodString;
618
123
  hostname: z.ZodString;
619
124
  machines: z.ZodArray<z.ZodObject<{
620
125
  id: z.ZodString;
621
126
  state: z.ZodString;
622
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
623
- id: z.ZodString;
624
- state: z.ZodString;
625
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
626
- id: z.ZodString;
627
- state: z.ZodString;
628
- }, z.ZodTypeAny, "passthrough">>, "many">;
629
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
630
- name: z.ZodString;
631
- hostname: z.ZodString;
632
- machines: z.ZodArray<z.ZodObject<{
633
- id: z.ZodString;
634
- state: z.ZodString;
635
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
636
- id: z.ZodString;
637
- state: z.ZodString;
638
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
639
- id: z.ZodString;
640
- state: z.ZodString;
641
- }, z.ZodTypeAny, "passthrough">>, "many">;
642
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
643
- name: z.ZodString;
644
- hostname: z.ZodString;
645
- machines: z.ZodArray<z.ZodObject<{
646
- id: z.ZodString;
647
- state: z.ZodString;
648
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
649
- id: z.ZodString;
650
- state: z.ZodString;
651
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
652
- id: z.ZodString;
653
- state: z.ZodString;
654
- }, z.ZodTypeAny, "passthrough">>, "many">;
655
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
656
- name: z.ZodString;
657
- hostname: z.ZodString;
658
- machines: z.ZodArray<z.ZodObject<{
659
- id: z.ZodString;
660
- state: z.ZodString;
661
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
662
- id: z.ZodString;
663
- state: z.ZodString;
664
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
665
- id: z.ZodString;
666
- state: z.ZodString;
667
- }, z.ZodTypeAny, "passthrough">>, "many">;
668
- }, z.ZodTypeAny, "passthrough">, unknown>;
127
+ }, z.core.$loose>>;
128
+ }, z.core.$loose>, unknown>;
669
129
  export type StatusLookup = z.infer<typeof statusLookupSchema>;
@@ -6,7 +6,7 @@ import { z } from 'zod';
6
6
  * fly version --json
7
7
  * ```
8
8
  */
9
- export declare const VersionTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
9
+ export declare const VersionTransformedResponseSchema: z.ZodPreprocess<z.ZodObject<{
10
10
  name: z.ZodString;
11
11
  version: z.ZodString;
12
12
  commit: z.ZodString;
@@ -15,31 +15,4 @@ export declare const VersionTransformedResponseSchema: z.ZodEffects<z.ZodObject<
15
15
  os: z.ZodString;
16
16
  architecture: z.ZodString;
17
17
  environment: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- name: string;
20
- version: string;
21
- commit: string;
22
- branchName: string;
23
- buildDate: string;
24
- os: string;
25
- architecture: string;
26
- environment: string;
27
- }, {
28
- name: string;
29
- version: string;
30
- commit: string;
31
- branchName: string;
32
- buildDate: string;
33
- os: string;
34
- architecture: string;
35
- environment: string;
36
- }>, {
37
- name: string;
38
- version: string;
39
- commit: string;
40
- branchName: string;
41
- buildDate: string;
42
- os: string;
43
- architecture: string;
44
- environment: string;
45
- }, unknown>;
18
+ }, z.core.$strip>, unknown>;