@cdwr/fly-node 0.2.3 → 0.3.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 +59 -0
- package/LICENSE +21 -0
- package/README.md +197 -40
- package/api.cjs +517 -0
- package/api.js +483 -0
- package/index.cjs +1140 -225
- package/index.js +1131 -224
- package/package.json +12 -2
- package/src/api.d.ts +15 -0
- package/src/index.d.ts +2 -1
- package/src/lib/fly-api.class.d.ts +193 -0
- package/src/lib/fly.class.d.ts +214 -23
- package/src/lib/mocks.d.ts +22 -7
- package/src/lib/schemas/apps-create.schema.d.ts +3 -25
- package/src/lib/schemas/apps-list.schema.d.ts +17 -17
- package/src/lib/schemas/build-response.schema.d.ts +11 -0
- package/src/lib/schemas/certificate.schema.d.ts +392 -0
- package/src/lib/schemas/machine.schema.d.ts +44 -0
- package/src/lib/schemas/postgres-list.d.ts +17 -14
- package/src/lib/schemas/secrets-list-with-app.schema.d.ts +0 -4
- package/src/lib/schemas/secrets-list.schema.d.ts +0 -7
- package/src/lib/schemas/status-extended.schema.d.ts +126 -24
- package/src/lib/schemas/status.schema.d.ts +234 -42
- package/src/lib/schemas/version.schema.d.ts +45 -0
- package/src/lib/types.d.ts +158 -20
|
@@ -11,17 +11,59 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
11
11
|
name: z.ZodString;
|
|
12
12
|
state: z.ZodString;
|
|
13
13
|
region: z.ZodString;
|
|
14
|
+
imageRef: z.ZodObject<{
|
|
15
|
+
registry: z.ZodString;
|
|
16
|
+
repository: z.ZodString;
|
|
17
|
+
tag: z.ZodString;
|
|
18
|
+
digest: z.ZodString;
|
|
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
|
+
}>;
|
|
14
33
|
createdAt: z.ZodString;
|
|
15
34
|
updatedAt: z.ZodString;
|
|
16
35
|
config: z.ZodObject<{
|
|
17
36
|
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
18
37
|
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
38
|
+
guest: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
cpu_kind: z.ZodOptional<z.ZodString>;
|
|
40
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
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
|
+
}>>;
|
|
19
51
|
}, "strip", z.ZodTypeAny, {
|
|
20
52
|
env: Record<string, string>;
|
|
21
53
|
metadata: Record<string, string>;
|
|
54
|
+
guest?: {
|
|
55
|
+
cpu_kind?: string | undefined;
|
|
56
|
+
cpus?: number | undefined;
|
|
57
|
+
memory_mb?: number | undefined;
|
|
58
|
+
} | undefined;
|
|
22
59
|
}, {
|
|
23
60
|
env: Record<string, string>;
|
|
24
61
|
metadata: Record<string, string>;
|
|
62
|
+
guest?: {
|
|
63
|
+
cpu_kind?: string | undefined;
|
|
64
|
+
cpus?: number | undefined;
|
|
65
|
+
memory_mb?: number | undefined;
|
|
66
|
+
} | undefined;
|
|
25
67
|
}>;
|
|
26
68
|
events: z.ZodArray<z.ZodObject<{
|
|
27
69
|
type: z.ZodString;
|
|
@@ -42,27 +84,39 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
42
84
|
output: z.ZodString;
|
|
43
85
|
updatedAt: z.ZodString;
|
|
44
86
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
name: string;
|
|
46
87
|
status: string;
|
|
88
|
+
name: string;
|
|
47
89
|
updatedAt: string;
|
|
48
90
|
output: string;
|
|
49
91
|
}, {
|
|
50
|
-
name: string;
|
|
51
92
|
status: string;
|
|
93
|
+
name: string;
|
|
52
94
|
updatedAt: string;
|
|
53
95
|
output: string;
|
|
54
96
|
}>, "many">>;
|
|
55
97
|
hostStatus: z.ZodString;
|
|
56
98
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
name: string;
|
|
58
99
|
id: string;
|
|
59
100
|
createdAt: string;
|
|
101
|
+
name: string;
|
|
60
102
|
state: string;
|
|
61
103
|
region: string;
|
|
104
|
+
imageRef: {
|
|
105
|
+
tag: string;
|
|
106
|
+
digest: string;
|
|
107
|
+
registry: string;
|
|
108
|
+
repository: string;
|
|
109
|
+
labels?: Record<string, string> | undefined;
|
|
110
|
+
};
|
|
62
111
|
updatedAt: string;
|
|
63
112
|
config: {
|
|
64
113
|
env: Record<string, string>;
|
|
65
114
|
metadata: Record<string, string>;
|
|
115
|
+
guest?: {
|
|
116
|
+
cpu_kind?: string | undefined;
|
|
117
|
+
cpus?: number | undefined;
|
|
118
|
+
memory_mb?: number | undefined;
|
|
119
|
+
} | undefined;
|
|
66
120
|
};
|
|
67
121
|
events: {
|
|
68
122
|
type: string;
|
|
@@ -71,21 +125,33 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
71
125
|
}[];
|
|
72
126
|
hostStatus: string;
|
|
73
127
|
checks?: {
|
|
74
|
-
name: string;
|
|
75
128
|
status: string;
|
|
129
|
+
name: string;
|
|
76
130
|
updatedAt: string;
|
|
77
131
|
output: string;
|
|
78
132
|
}[] | undefined;
|
|
79
133
|
}, {
|
|
80
|
-
name: string;
|
|
81
134
|
id: string;
|
|
82
135
|
createdAt: string;
|
|
136
|
+
name: string;
|
|
83
137
|
state: string;
|
|
84
138
|
region: string;
|
|
139
|
+
imageRef: {
|
|
140
|
+
tag: string;
|
|
141
|
+
digest: string;
|
|
142
|
+
registry: string;
|
|
143
|
+
repository: string;
|
|
144
|
+
labels?: Record<string, string> | undefined;
|
|
145
|
+
};
|
|
85
146
|
updatedAt: string;
|
|
86
147
|
config: {
|
|
87
148
|
env: Record<string, string>;
|
|
88
149
|
metadata: Record<string, string>;
|
|
150
|
+
guest?: {
|
|
151
|
+
cpu_kind?: string | undefined;
|
|
152
|
+
cpus?: number | undefined;
|
|
153
|
+
memory_mb?: number | undefined;
|
|
154
|
+
} | undefined;
|
|
89
155
|
};
|
|
90
156
|
events: {
|
|
91
157
|
type: string;
|
|
@@ -94,8 +160,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
94
160
|
}[];
|
|
95
161
|
hostStatus: string;
|
|
96
162
|
checks?: {
|
|
97
|
-
name: string;
|
|
98
163
|
status: string;
|
|
164
|
+
name: string;
|
|
99
165
|
updatedAt: string;
|
|
100
166
|
output: string;
|
|
101
167
|
}[] | undefined;
|
|
@@ -129,26 +195,38 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
129
195
|
name: string;
|
|
130
196
|
}>, "many">;
|
|
131
197
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
|
|
133
|
-
status: string;
|
|
198
|
+
hostname: string;
|
|
134
199
|
id: string;
|
|
200
|
+
status: string;
|
|
201
|
+
name: string;
|
|
202
|
+
deployed: boolean;
|
|
135
203
|
organization: {
|
|
136
204
|
id: string;
|
|
137
205
|
slug: string;
|
|
138
206
|
};
|
|
139
|
-
deployed: boolean;
|
|
140
|
-
hostname: string;
|
|
141
207
|
version: number;
|
|
142
208
|
machines: {
|
|
143
|
-
name: string;
|
|
144
209
|
id: string;
|
|
145
210
|
createdAt: string;
|
|
211
|
+
name: string;
|
|
146
212
|
state: string;
|
|
147
213
|
region: string;
|
|
214
|
+
imageRef: {
|
|
215
|
+
tag: string;
|
|
216
|
+
digest: string;
|
|
217
|
+
registry: string;
|
|
218
|
+
repository: string;
|
|
219
|
+
labels?: Record<string, string> | undefined;
|
|
220
|
+
};
|
|
148
221
|
updatedAt: string;
|
|
149
222
|
config: {
|
|
150
223
|
env: Record<string, string>;
|
|
151
224
|
metadata: Record<string, string>;
|
|
225
|
+
guest?: {
|
|
226
|
+
cpu_kind?: string | undefined;
|
|
227
|
+
cpus?: number | undefined;
|
|
228
|
+
memory_mb?: number | undefined;
|
|
229
|
+
} | undefined;
|
|
152
230
|
};
|
|
153
231
|
events: {
|
|
154
232
|
type: string;
|
|
@@ -157,8 +235,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
157
235
|
}[];
|
|
158
236
|
hostStatus: string;
|
|
159
237
|
checks?: {
|
|
160
|
-
name: string;
|
|
161
238
|
status: string;
|
|
239
|
+
name: string;
|
|
162
240
|
updatedAt: string;
|
|
163
241
|
output: string;
|
|
164
242
|
}[] | undefined;
|
|
@@ -170,26 +248,38 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
170
248
|
name: string;
|
|
171
249
|
}[];
|
|
172
250
|
}, {
|
|
173
|
-
|
|
174
|
-
status: string;
|
|
251
|
+
hostname: string;
|
|
175
252
|
id: string;
|
|
253
|
+
status: string;
|
|
254
|
+
name: string;
|
|
255
|
+
deployed: boolean;
|
|
176
256
|
organization: {
|
|
177
257
|
id: string;
|
|
178
258
|
slug: string;
|
|
179
259
|
};
|
|
180
|
-
deployed: boolean;
|
|
181
|
-
hostname: string;
|
|
182
260
|
version: number;
|
|
183
261
|
machines: {
|
|
184
|
-
name: string;
|
|
185
262
|
id: string;
|
|
186
263
|
createdAt: string;
|
|
264
|
+
name: string;
|
|
187
265
|
state: string;
|
|
188
266
|
region: string;
|
|
267
|
+
imageRef: {
|
|
268
|
+
tag: string;
|
|
269
|
+
digest: string;
|
|
270
|
+
registry: string;
|
|
271
|
+
repository: string;
|
|
272
|
+
labels?: Record<string, string> | undefined;
|
|
273
|
+
};
|
|
189
274
|
updatedAt: string;
|
|
190
275
|
config: {
|
|
191
276
|
env: Record<string, string>;
|
|
192
277
|
metadata: Record<string, string>;
|
|
278
|
+
guest?: {
|
|
279
|
+
cpu_kind?: string | undefined;
|
|
280
|
+
cpus?: number | undefined;
|
|
281
|
+
memory_mb?: number | undefined;
|
|
282
|
+
} | undefined;
|
|
193
283
|
};
|
|
194
284
|
events: {
|
|
195
285
|
type: string;
|
|
@@ -198,8 +288,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
198
288
|
}[];
|
|
199
289
|
hostStatus: string;
|
|
200
290
|
checks?: {
|
|
201
|
-
name: string;
|
|
202
291
|
status: string;
|
|
292
|
+
name: string;
|
|
203
293
|
updatedAt: string;
|
|
204
294
|
output: string;
|
|
205
295
|
}[] | undefined;
|
|
@@ -211,26 +301,38 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
211
301
|
name: string;
|
|
212
302
|
}[];
|
|
213
303
|
}>, {
|
|
214
|
-
|
|
215
|
-
status: string;
|
|
304
|
+
hostname: string;
|
|
216
305
|
id: string;
|
|
306
|
+
status: string;
|
|
307
|
+
name: string;
|
|
308
|
+
deployed: boolean;
|
|
217
309
|
organization: {
|
|
218
310
|
id: string;
|
|
219
311
|
slug: string;
|
|
220
312
|
};
|
|
221
|
-
deployed: boolean;
|
|
222
|
-
hostname: string;
|
|
223
313
|
version: number;
|
|
224
314
|
machines: {
|
|
225
|
-
name: string;
|
|
226
315
|
id: string;
|
|
227
316
|
createdAt: string;
|
|
317
|
+
name: string;
|
|
228
318
|
state: string;
|
|
229
319
|
region: string;
|
|
320
|
+
imageRef: {
|
|
321
|
+
tag: string;
|
|
322
|
+
digest: string;
|
|
323
|
+
registry: string;
|
|
324
|
+
repository: string;
|
|
325
|
+
labels?: Record<string, string> | undefined;
|
|
326
|
+
};
|
|
230
327
|
updatedAt: string;
|
|
231
328
|
config: {
|
|
232
329
|
env: Record<string, string>;
|
|
233
330
|
metadata: Record<string, string>;
|
|
331
|
+
guest?: {
|
|
332
|
+
cpu_kind?: string | undefined;
|
|
333
|
+
cpus?: number | undefined;
|
|
334
|
+
memory_mb?: number | undefined;
|
|
335
|
+
} | undefined;
|
|
234
336
|
};
|
|
235
337
|
events: {
|
|
236
338
|
type: string;
|
|
@@ -239,8 +341,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
|
|
|
239
341
|
}[];
|
|
240
342
|
hostStatus: string;
|
|
241
343
|
checks?: {
|
|
242
|
-
name: string;
|
|
243
344
|
status: string;
|
|
345
|
+
name: string;
|
|
244
346
|
updatedAt: string;
|
|
245
347
|
output: string;
|
|
246
348
|
}[] | undefined;
|