@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.
- package/CHANGELOG.md +11 -0
- package/index.cjs +8 -4
- package/index.js +8 -4
- package/package.json +2 -2
- package/src/lib/mocks.d.ts +6 -6
- package/src/lib/schemas/app-ip-addresses.schema.d.ts +16 -44
- package/src/lib/schemas/apps-create.schema.d.ts +2 -11
- package/src/lib/schemas/apps-list.schema.d.ts +4 -58
- package/src/lib/schemas/build-response.schema.d.ts +1 -7
- package/src/lib/schemas/certificate.schema.d.ts +16 -290
- package/src/lib/schemas/certs-list-with-app.schema.d.ts +2 -18
- package/src/lib/schemas/certs-list.schema.d.ts +3 -23
- package/src/lib/schemas/config-show.schema.d.ts +5 -62
- package/src/lib/schemas/deploy.schema.d.ts +1 -9
- package/src/lib/schemas/ip-type.schema.d.ts +6 -1
- package/src/lib/schemas/ips-list.schema.d.ts +15 -35
- package/src/lib/schemas/machine.schema.d.ts +2 -24
- package/src/lib/schemas/postgres-list.d.ts +3 -42
- package/src/lib/schemas/postgres-users-list.d.ts +3 -15
- package/src/lib/schemas/secrets-list-with-app.schema.d.ts +2 -15
- package/src/lib/schemas/secrets-list.schema.d.ts +3 -18
- package/src/lib/schemas/status-extended.schema.d.ts +11 -309
- package/src/lib/schemas/status.schema.d.ts +20 -560
- package/src/lib/schemas/version.schema.d.ts +2 -29
|
@@ -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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
30
|
-
status: string;
|
|
31
|
-
hostname: string;
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
deployed: boolean;
|
|
35
|
-
organization: {
|
|
36
|
-
id: string;
|
|
37
|
-
slug: string;
|
|
38
|
-
};
|
|
39
|
-
version: number;
|
|
40
|
-
}, {
|
|
41
|
-
status: string;
|
|
42
|
-
hostname: string;
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
deployed: boolean;
|
|
46
|
-
organization: {
|
|
47
|
-
id: string;
|
|
48
|
-
slug: string;
|
|
49
|
-
};
|
|
50
|
-
version: number;
|
|
51
|
-
}>, {
|
|
52
|
-
status: string;
|
|
53
|
-
hostname: string;
|
|
54
|
-
id: 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.
|
|
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
|
|
13
|
-
},
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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.
|
|
20
|
+
export declare const SecretsListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
27
21
|
name: z.ZodString;
|
|
28
22
|
digest: z.ZodString;
|
|
29
|
-
},
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
43
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
193
|
-
|
|
194
|
-
}, {
|
|
195
|
-
name: string;
|
|
196
|
-
}>, "many">;
|
|
197
|
-
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
status: string;
|
|
199
|
-
hostname: string;
|
|
200
|
-
id: 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
|
-
status: string;
|
|
252
|
-
hostname: string;
|
|
253
|
-
id: 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
|
-
status: string;
|
|
305
|
-
hostname: string;
|
|
306
|
-
id: 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>;
|