@cdwr/fly-node 0.3.2 → 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.
@@ -9,36 +9,14 @@ import { z } from 'zod';
9
9
  export declare const MachineApiResponseSchema: z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- /** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
13
12
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
13
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, "strip", z.ZodTypeAny, {
16
- id: string;
17
- name?: string | null | undefined;
18
- state?: string | null | undefined;
19
- region?: string | null | undefined;
20
- }, {
21
- id: string;
22
- name?: string | null | undefined;
23
- state?: string | null | undefined;
24
- region?: string | null | undefined;
25
- }>;
14
+ }, z.core.$strip>;
26
15
  export type Machine = z.infer<typeof MachineApiResponseSchema>;
27
16
  /** Machines listed for an app */
28
17
  export declare const MachineListApiResponseSchema: z.ZodArray<z.ZodObject<{
29
18
  id: z.ZodString;
30
19
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- /** `started`, `stopped`, `suspended`, … — Fly owns this vocabulary */
32
20
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
21
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- }, "strip", z.ZodTypeAny, {
35
- id: string;
36
- name?: string | null | undefined;
37
- state?: string | null | undefined;
38
- region?: string | null | undefined;
39
- }, {
40
- id: string;
41
- name?: string | null | undefined;
42
- state?: string | null | undefined;
43
- region?: string | null | undefined;
44
- }>, "many">;
22
+ }, z.core.$strip>>;
@@ -9,7 +9,7 @@ import { z } from 'zod';
9
9
  * Returns an array of Postgres instances, but when there are no instances,
10
10
  * it returns a string e.g. "No postgres clusters found".
11
11
  */
12
- export declare const PostgresListTransformedResponseSchema: z.ZodUnion<[z.ZodArray<z.ZodEffects<z.ZodObject<{
12
+ export declare const PostgresListTransformedResponseSchema: z.ZodUnion<[z.ZodArray<z.ZodPreprocess<z.ZodObject<{
13
13
  deployed: z.ZodBoolean;
14
14
  hostname: z.ZodString;
15
15
  id: z.ZodString;
@@ -17,46 +17,7 @@ export declare const PostgresListTransformedResponseSchema: z.ZodUnion<[z.ZodArr
17
17
  organization: z.ZodObject<{
18
18
  id: z.ZodString;
19
19
  slug: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- id: string;
22
- slug: string;
23
- }, {
24
- id: string;
25
- slug: string;
26
- }>;
20
+ }, z.core.$strip>;
27
21
  status: z.ZodString;
28
22
  version: z.ZodNumber;
29
- }, "strip", z.ZodTypeAny, {
30
- hostname: string;
31
- id: string;
32
- status: string;
33
- name: string;
34
- deployed: boolean;
35
- organization: {
36
- id: string;
37
- slug: string;
38
- };
39
- version: number;
40
- }, {
41
- hostname: string;
42
- id: string;
43
- status: string;
44
- name: string;
45
- deployed: boolean;
46
- organization: {
47
- id: string;
48
- slug: string;
49
- };
50
- version: number;
51
- }>, {
52
- hostname: string;
53
- id: string;
54
- status: string;
55
- name: string;
56
- deployed: boolean;
57
- organization: {
58
- id: string;
59
- slug: string;
60
- };
61
- version: number;
62
- }, unknown>, "many">, z.ZodString]>;
23
+ }, z.core.$strip>, unknown>>, z.ZodString]>;
@@ -6,20 +6,8 @@ import { z } from 'zod';
6
6
  * fly postgres users list --app [name] --json
7
7
  * ```
8
8
  */
9
- export declare const PostgresUsersListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
9
+ export declare const PostgresUsersListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
10
10
  username: z.ZodString;
11
11
  superuser: z.ZodBoolean;
12
- databases: z.ZodArray<z.ZodString, "many">;
13
- }, "strip", z.ZodTypeAny, {
14
- username: string;
15
- superuser: boolean;
16
- databases: string[];
17
- }, {
18
- username: string;
19
- superuser: boolean;
20
- databases: string[];
21
- }>, {
22
- username: string;
23
- superuser: boolean;
24
- databases: string[];
25
- }, unknown>, "many">;
12
+ databases: z.ZodArray<z.ZodString>;
13
+ }, z.core.$strip>, unknown>>;
@@ -2,21 +2,8 @@ import { z } from 'zod';
2
2
  /**
3
3
  * secrets list response extended with application name
4
4
  */
5
- export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
5
+ export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  digest: z.ZodString;
8
- } & {
9
8
  app: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- name: string;
12
- app: string;
13
- digest: string;
14
- }, {
15
- name: string;
16
- app: string;
17
- digest: string;
18
- }>, {
19
- name: string;
20
- app: string;
21
- digest: string;
22
- }, unknown>, "many">;
9
+ }, z.core.$strip>, unknown>>;
@@ -9,13 +9,7 @@ import { z } from 'zod';
9
9
  export declare const SecretsListFlyResponseElementSchema: z.ZodObject<{
10
10
  name: z.ZodString;
11
11
  digest: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- name: string;
14
- digest: string;
15
- }, {
16
- name: string;
17
- digest: string;
18
- }>;
12
+ }, z.core.$strip>;
19
13
  /**
20
14
  * Transformed secrets list response schema
21
15
  *
@@ -23,16 +17,7 @@ export declare const SecretsListFlyResponseElementSchema: z.ZodObject<{
23
17
  * fly secrets list --app [name] --json
24
18
  * ```
25
19
  */
26
- export declare const SecretsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
20
+ export declare const SecretsListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
27
21
  name: z.ZodString;
28
22
  digest: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- name: string;
31
- digest: string;
32
- }, {
33
- name: string;
34
- digest: string;
35
- }>, {
36
- name: string;
37
- digest: string;
38
- }, unknown>, "many">;
23
+ }, z.core.$strip>, unknown>>;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * status response extended with domains and secrets
4
4
  */
5
- export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
5
+ export declare const StatusExtendedTransformedResponseSchema: z.ZodPreprocess<z.ZodObject<{
6
6
  deployed: z.ZodBoolean;
7
7
  hostname: z.ZodString;
8
8
  id: z.ZodString;
@@ -17,19 +17,7 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
17
17
  tag: z.ZodString;
18
18
  digest: z.ZodString;
19
19
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
- }, "strip", z.ZodTypeAny, {
21
- tag: string;
22
- digest: string;
23
- registry: string;
24
- repository: string;
25
- labels?: Record<string, string> | undefined;
26
- }, {
27
- tag: string;
28
- digest: string;
29
- registry: string;
30
- repository: string;
31
- labels?: Record<string, string> | undefined;
32
- }>;
20
+ }, z.core.$strip>;
33
21
  createdAt: z.ZodString;
34
22
  updatedAt: z.ZodString;
35
23
  config: z.ZodObject<{
@@ -39,318 +27,32 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
39
27
  cpu_kind: z.ZodOptional<z.ZodString>;
40
28
  cpus: z.ZodOptional<z.ZodNumber>;
41
29
  memory_mb: z.ZodOptional<z.ZodNumber>;
42
- }, "strip", z.ZodTypeAny, {
43
- cpu_kind?: string | undefined;
44
- cpus?: number | undefined;
45
- memory_mb?: number | undefined;
46
- }, {
47
- cpu_kind?: string | undefined;
48
- cpus?: number | undefined;
49
- memory_mb?: number | undefined;
50
- }>>;
51
- }, "strip", z.ZodTypeAny, {
52
- env: Record<string, string>;
53
- metadata: Record<string, string>;
54
- guest?: {
55
- cpu_kind?: string | undefined;
56
- cpus?: number | undefined;
57
- memory_mb?: number | undefined;
58
- } | undefined;
59
- }, {
60
- env: Record<string, string>;
61
- metadata: Record<string, string>;
62
- guest?: {
63
- cpu_kind?: string | undefined;
64
- cpus?: number | undefined;
65
- memory_mb?: number | undefined;
66
- } | undefined;
67
- }>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
68
32
  events: z.ZodArray<z.ZodObject<{
69
33
  type: z.ZodString;
70
34
  status: z.ZodString;
71
35
  timestamp: z.ZodNumber;
72
- }, "strip", z.ZodTypeAny, {
73
- type: string;
74
- status: string;
75
- timestamp: number;
76
- }, {
77
- type: string;
78
- status: string;
79
- timestamp: number;
80
- }>, "many">;
36
+ }, z.core.$strip>>;
81
37
  checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
38
  name: z.ZodString;
83
39
  status: z.ZodString;
84
40
  output: z.ZodString;
85
41
  updatedAt: z.ZodString;
86
- }, "strip", z.ZodTypeAny, {
87
- status: string;
88
- name: string;
89
- updatedAt: string;
90
- output: string;
91
- }, {
92
- status: string;
93
- name: string;
94
- updatedAt: string;
95
- output: string;
96
- }>, "many">>;
42
+ }, z.core.$strip>>>;
97
43
  hostStatus: z.ZodString;
98
- }, "strip", z.ZodTypeAny, {
99
- id: string;
100
- createdAt: string;
101
- name: string;
102
- state: string;
103
- region: string;
104
- imageRef: {
105
- tag: string;
106
- digest: string;
107
- registry: string;
108
- repository: string;
109
- labels?: Record<string, string> | undefined;
110
- };
111
- updatedAt: string;
112
- config: {
113
- env: Record<string, string>;
114
- metadata: Record<string, string>;
115
- guest?: {
116
- cpu_kind?: string | undefined;
117
- cpus?: number | undefined;
118
- memory_mb?: number | undefined;
119
- } | undefined;
120
- };
121
- events: {
122
- type: string;
123
- status: string;
124
- timestamp: number;
125
- }[];
126
- hostStatus: string;
127
- checks?: {
128
- status: string;
129
- name: string;
130
- updatedAt: string;
131
- output: string;
132
- }[] | undefined;
133
- }, {
134
- id: string;
135
- createdAt: string;
136
- name: string;
137
- state: string;
138
- region: string;
139
- imageRef: {
140
- tag: string;
141
- digest: string;
142
- registry: string;
143
- repository: string;
144
- labels?: Record<string, string> | undefined;
145
- };
146
- updatedAt: string;
147
- config: {
148
- env: Record<string, string>;
149
- metadata: Record<string, string>;
150
- guest?: {
151
- cpu_kind?: string | undefined;
152
- cpus?: number | undefined;
153
- memory_mb?: number | undefined;
154
- } | undefined;
155
- };
156
- events: {
157
- type: string;
158
- status: string;
159
- timestamp: number;
160
- }[];
161
- hostStatus: string;
162
- checks?: {
163
- status: string;
164
- name: string;
165
- updatedAt: string;
166
- output: string;
167
- }[] | undefined;
168
- }>, "many">;
44
+ }, z.core.$strip>>;
169
45
  name: z.ZodString;
170
46
  organization: z.ZodObject<{
171
47
  id: z.ZodString;
172
48
  slug: z.ZodString;
173
- }, "strip", z.ZodTypeAny, {
174
- id: string;
175
- slug: string;
176
- }, {
177
- id: string;
178
- slug: string;
179
- }>;
49
+ }, z.core.$strip>;
180
50
  status: z.ZodString;
181
51
  version: z.ZodNumber;
182
- } & {
183
52
  domains: z.ZodArray<z.ZodObject<{
184
53
  hostname: z.ZodString;
185
- }, "strip", z.ZodTypeAny, {
186
- hostname: string;
187
- }, {
188
- hostname: string;
189
- }>, "many">;
54
+ }, z.core.$strip>>;
190
55
  secrets: z.ZodArray<z.ZodObject<{
191
56
  name: z.ZodString;
192
- }, "strip", z.ZodTypeAny, {
193
- name: string;
194
- }, {
195
- name: string;
196
- }>, "many">;
197
- }, "strip", z.ZodTypeAny, {
198
- hostname: string;
199
- id: string;
200
- status: string;
201
- name: string;
202
- deployed: boolean;
203
- organization: {
204
- id: string;
205
- slug: string;
206
- };
207
- version: number;
208
- machines: {
209
- id: string;
210
- createdAt: string;
211
- name: string;
212
- state: string;
213
- region: string;
214
- imageRef: {
215
- tag: string;
216
- digest: string;
217
- registry: string;
218
- repository: string;
219
- labels?: Record<string, string> | undefined;
220
- };
221
- updatedAt: string;
222
- config: {
223
- env: Record<string, string>;
224
- metadata: Record<string, string>;
225
- guest?: {
226
- cpu_kind?: string | undefined;
227
- cpus?: number | undefined;
228
- memory_mb?: number | undefined;
229
- } | undefined;
230
- };
231
- events: {
232
- type: string;
233
- status: string;
234
- timestamp: number;
235
- }[];
236
- hostStatus: string;
237
- checks?: {
238
- status: string;
239
- name: string;
240
- updatedAt: string;
241
- output: string;
242
- }[] | undefined;
243
- }[];
244
- domains: {
245
- hostname: string;
246
- }[];
247
- secrets: {
248
- name: string;
249
- }[];
250
- }, {
251
- hostname: string;
252
- id: string;
253
- status: string;
254
- name: string;
255
- deployed: boolean;
256
- organization: {
257
- id: string;
258
- slug: string;
259
- };
260
- version: number;
261
- machines: {
262
- id: string;
263
- createdAt: string;
264
- name: string;
265
- state: string;
266
- region: string;
267
- imageRef: {
268
- tag: string;
269
- digest: string;
270
- registry: string;
271
- repository: string;
272
- labels?: Record<string, string> | undefined;
273
- };
274
- updatedAt: string;
275
- config: {
276
- env: Record<string, string>;
277
- metadata: Record<string, string>;
278
- guest?: {
279
- cpu_kind?: string | undefined;
280
- cpus?: number | undefined;
281
- memory_mb?: number | undefined;
282
- } | undefined;
283
- };
284
- events: {
285
- type: string;
286
- status: string;
287
- timestamp: number;
288
- }[];
289
- hostStatus: string;
290
- checks?: {
291
- status: string;
292
- name: string;
293
- updatedAt: string;
294
- output: string;
295
- }[] | undefined;
296
- }[];
297
- domains: {
298
- hostname: string;
299
- }[];
300
- secrets: {
301
- name: string;
302
- }[];
303
- }>, {
304
- hostname: string;
305
- id: string;
306
- status: string;
307
- name: string;
308
- deployed: boolean;
309
- organization: {
310
- id: string;
311
- slug: string;
312
- };
313
- version: number;
314
- machines: {
315
- id: string;
316
- createdAt: string;
317
- name: string;
318
- state: string;
319
- region: string;
320
- imageRef: {
321
- tag: string;
322
- digest: string;
323
- registry: string;
324
- repository: string;
325
- labels?: Record<string, string> | undefined;
326
- };
327
- updatedAt: string;
328
- config: {
329
- env: Record<string, string>;
330
- metadata: Record<string, string>;
331
- guest?: {
332
- cpu_kind?: string | undefined;
333
- cpus?: number | undefined;
334
- memory_mb?: number | undefined;
335
- } | undefined;
336
- };
337
- events: {
338
- type: string;
339
- status: string;
340
- timestamp: number;
341
- }[];
342
- hostStatus: string;
343
- checks?: {
344
- status: string;
345
- name: string;
346
- updatedAt: string;
347
- output: string;
348
- }[] | undefined;
349
- }[];
350
- domains: {
351
- hostname: string;
352
- }[];
353
- secrets: {
354
- name: string;
355
- }[];
356
- }, unknown>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>, unknown>;