@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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.3.4 (2026-11-15)
|
|
2
|
+
|
|
3
|
+
### 🐞 Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **fly-node:** give the status schema records a key schema for zod 4 ([6cbff255](https://github.com/codeware-sthlm/cdwr/commit/6cbff255))
|
|
6
|
+
- **deps:** require zod 4.6.7 or later for the array length advisory ([f5d15049](https://github.com/codeware-sthlm/cdwr/commit/f5d15049))
|
|
7
|
+
|
|
8
|
+
### ⚙️ Miscellaneous Chores
|
|
9
|
+
|
|
10
|
+
- **deps:** update dependency zod to v4 [security] ([1d5324c4](https://github.com/codeware-sthlm/cdwr/commit/1d5324c4))
|
|
11
|
+
|
|
1
12
|
## 0.3.3 (2026-11-04)
|
|
2
13
|
|
|
3
14
|
### ✨ Features
|
package/index.cjs
CHANGED
|
@@ -698,7 +698,11 @@ var import_zod6 = require("zod");
|
|
|
698
698
|
var import_zod7 = require("zod");
|
|
699
699
|
var LiteralSchema = import_zod7.z.union([import_zod7.z.string(), import_zod7.z.number(), import_zod7.z.boolean(), import_zod7.z.null()]);
|
|
700
700
|
var JsonSchema = import_zod7.z.lazy(
|
|
701
|
-
() => import_zod7.z.union([
|
|
701
|
+
() => import_zod7.z.union([
|
|
702
|
+
LiteralSchema,
|
|
703
|
+
import_zod7.z.array(JsonSchema),
|
|
704
|
+
import_zod7.z.record(import_zod7.z.string(), JsonSchema)
|
|
705
|
+
])
|
|
702
706
|
);
|
|
703
707
|
|
|
704
708
|
// libs/shared/util/zod/src/lib/with-camel-case.preprocess.ts
|
|
@@ -952,13 +956,13 @@ var statusFlyResponseSchema = import_zod35.z.object({
|
|
|
952
956
|
repository: import_zod35.z.string(),
|
|
953
957
|
tag: import_zod35.z.string(),
|
|
954
958
|
digest: import_zod35.z.string(),
|
|
955
|
-
labels: import_zod35.z.record(import_zod35.z.string()).optional()
|
|
959
|
+
labels: import_zod35.z.record(import_zod35.z.string(), import_zod35.z.string()).optional()
|
|
956
960
|
}),
|
|
957
961
|
createdAt: import_zod35.z.string().datetime(),
|
|
958
962
|
updatedAt: import_zod35.z.string().datetime(),
|
|
959
963
|
config: import_zod35.z.object({
|
|
960
|
-
env: import_zod35.z.record(import_zod35.z.string()),
|
|
961
|
-
metadata: import_zod35.z.record(import_zod35.z.string()),
|
|
964
|
+
env: import_zod35.z.record(import_zod35.z.string(), import_zod35.z.string()),
|
|
965
|
+
metadata: import_zod35.z.record(import_zod35.z.string(), import_zod35.z.string()),
|
|
962
966
|
guest: import_zod35.z.object({
|
|
963
967
|
cpu_kind: import_zod35.z.string().optional(),
|
|
964
968
|
cpus: import_zod35.z.number().optional(),
|
package/index.js
CHANGED
|
@@ -654,7 +654,11 @@ import { z as z6 } from "zod";
|
|
|
654
654
|
import { z as z7 } from "zod";
|
|
655
655
|
var LiteralSchema = z7.union([z7.string(), z7.number(), z7.boolean(), z7.null()]);
|
|
656
656
|
var JsonSchema = z7.lazy(
|
|
657
|
-
() => z7.union([
|
|
657
|
+
() => z7.union([
|
|
658
|
+
LiteralSchema,
|
|
659
|
+
z7.array(JsonSchema),
|
|
660
|
+
z7.record(z7.string(), JsonSchema)
|
|
661
|
+
])
|
|
658
662
|
);
|
|
659
663
|
|
|
660
664
|
// libs/shared/util/zod/src/lib/with-camel-case.preprocess.ts
|
|
@@ -908,13 +912,13 @@ var statusFlyResponseSchema = z24.object({
|
|
|
908
912
|
repository: z24.string(),
|
|
909
913
|
tag: z24.string(),
|
|
910
914
|
digest: z24.string(),
|
|
911
|
-
labels: z24.record(z24.string()).optional()
|
|
915
|
+
labels: z24.record(z24.string(), z24.string()).optional()
|
|
912
916
|
}),
|
|
913
917
|
createdAt: z24.string().datetime(),
|
|
914
918
|
updatedAt: z24.string().datetime(),
|
|
915
919
|
config: z24.object({
|
|
916
|
-
env: z24.record(z24.string()),
|
|
917
|
-
metadata: z24.record(z24.string()),
|
|
920
|
+
env: z24.record(z24.string(), z24.string()),
|
|
921
|
+
metadata: z24.record(z24.string(), z24.string()),
|
|
918
922
|
guest: z24.object({
|
|
919
923
|
cpu_kind: z24.string().optional(),
|
|
920
924
|
cpus: z24.number().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdwr/fly-node",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "The flyctl node wrapper for programmatic deployments to fly.io.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"zod": "^
|
|
28
|
+
"zod": "^4.6.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"dotenv": "^16.4.7",
|
package/src/lib/mocks.d.ts
CHANGED
|
@@ -105,17 +105,17 @@ export declare const mockPartialStatusResponse: (app?: string) => {
|
|
|
105
105
|
name: string;
|
|
106
106
|
machines: ({
|
|
107
107
|
id: string;
|
|
108
|
-
createdAt: string;
|
|
109
108
|
name: string;
|
|
110
109
|
state: string;
|
|
111
110
|
region: string;
|
|
112
111
|
imageRef: {
|
|
113
|
-
tag: string;
|
|
114
|
-
digest: string;
|
|
115
112
|
registry: string;
|
|
116
113
|
repository: string;
|
|
114
|
+
tag: string;
|
|
115
|
+
digest: string;
|
|
117
116
|
labels?: Record<string, string> | undefined;
|
|
118
117
|
};
|
|
118
|
+
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
120
|
config: {
|
|
121
121
|
env: Record<string, string>;
|
|
@@ -133,10 +133,10 @@ export declare const mockPartialStatusResponse: (app?: string) => {
|
|
|
133
133
|
}[];
|
|
134
134
|
hostStatus: string;
|
|
135
135
|
checks?: {
|
|
136
|
-
status: string;
|
|
137
136
|
name: string;
|
|
138
|
-
|
|
137
|
+
status: string;
|
|
139
138
|
output: string;
|
|
139
|
+
updatedAt: string;
|
|
140
140
|
}[] | undefined;
|
|
141
141
|
} | {
|
|
142
142
|
id: string;
|
|
@@ -147,12 +147,12 @@ export declare const mockPartialStatusResponse: (app?: string) => {
|
|
|
147
147
|
updatedAt: string;
|
|
148
148
|
hostStatus: string;
|
|
149
149
|
})[];
|
|
150
|
-
status: string;
|
|
151
150
|
deployed: boolean;
|
|
152
151
|
organization: {
|
|
153
152
|
id: string;
|
|
154
153
|
slug: string;
|
|
155
154
|
};
|
|
155
|
+
status: string;
|
|
156
156
|
version: number;
|
|
157
157
|
};
|
|
158
158
|
/**
|
|
@@ -7,14 +7,13 @@ import { z } from 'zod';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const AppIpAddressSchema: z.ZodObject<{
|
|
9
9
|
address: z.ZodString;
|
|
10
|
-
type: z.ZodUnion<[z.ZodEnum<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}>;
|
|
10
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
11
|
+
v4: "v4";
|
|
12
|
+
v6: "v6";
|
|
13
|
+
shared_v4: "shared_v4";
|
|
14
|
+
private_v6: "private_v6";
|
|
15
|
+
}>, z.ZodString]>;
|
|
16
|
+
}, z.core.$strip>;
|
|
18
17
|
export type AppIpAddress = z.infer<typeof AppIpAddressSchema>;
|
|
19
18
|
/**
|
|
20
19
|
* An app's addresses as the Fly GraphQL API returns them.
|
|
@@ -28,39 +27,12 @@ export declare const AppIpAddressesApiResponseSchema: z.ZodObject<{
|
|
|
28
27
|
ipAddresses: z.ZodObject<{
|
|
29
28
|
nodes: z.ZodArray<z.ZodObject<{
|
|
30
29
|
address: z.ZodString;
|
|
31
|
-
type: z.ZodUnion<[z.ZodEnum<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
nodes: {
|
|
41
|
-
type: string;
|
|
42
|
-
address: string;
|
|
43
|
-
}[];
|
|
44
|
-
}, {
|
|
45
|
-
nodes: {
|
|
46
|
-
type: string;
|
|
47
|
-
address: string;
|
|
48
|
-
}[];
|
|
49
|
-
}>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
ipAddresses: {
|
|
52
|
-
nodes: {
|
|
53
|
-
type: string;
|
|
54
|
-
address: string;
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
sharedIpAddress?: string | null | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
ipAddresses: {
|
|
60
|
-
nodes: {
|
|
61
|
-
type: string;
|
|
62
|
-
address: string;
|
|
63
|
-
}[];
|
|
64
|
-
};
|
|
65
|
-
sharedIpAddress?: string | null | undefined;
|
|
66
|
-
}>;
|
|
30
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
31
|
+
v4: "v4";
|
|
32
|
+
v6: "v6";
|
|
33
|
+
shared_v4: "shared_v4";
|
|
34
|
+
private_v6: "private_v6";
|
|
35
|
+
}>, z.ZodString]>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>;
|
|
@@ -6,16 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* fly apps create --app [name] --json
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
|
-
export declare const AppsCreateTransformedResponseSchema: z.
|
|
9
|
+
export declare const AppsCreateTransformedResponseSchema: z.ZodPreprocess<z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
name: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}, {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
}>, {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
}, unknown>;
|
|
12
|
+
}, z.core.$strip>, unknown>;
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* fly apps list --json
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
|
-
export declare const AppsListTransformedResponseSchema: z.ZodArray<z.
|
|
9
|
+
export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
name: z.ZodString;
|
|
12
12
|
status: z.ZodString;
|
|
@@ -15,63 +15,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
|
|
|
15
15
|
organization: z.ZodObject<{
|
|
16
16
|
name: z.ZodString;
|
|
17
17
|
slug: z.ZodString;
|
|
18
|
-
},
|
|
19
|
-
name: string;
|
|
20
|
-
slug: string;
|
|
21
|
-
}, {
|
|
22
|
-
name: string;
|
|
23
|
-
slug: string;
|
|
24
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
25
19
|
currentRelease: z.ZodNullable<z.ZodObject<{
|
|
26
20
|
status: z.ZodString;
|
|
27
21
|
createdAt: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
createdAt: string;
|
|
31
|
-
}, {
|
|
32
|
-
status: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
}>>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
status: string;
|
|
37
|
-
hostname: string;
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
deployed: boolean;
|
|
41
|
-
organization: {
|
|
42
|
-
name: string;
|
|
43
|
-
slug: string;
|
|
44
|
-
};
|
|
45
|
-
currentRelease: {
|
|
46
|
-
status: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
} | null;
|
|
49
|
-
}, {
|
|
50
|
-
status: string;
|
|
51
|
-
hostname: string;
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
deployed: boolean;
|
|
55
|
-
organization: {
|
|
56
|
-
name: string;
|
|
57
|
-
slug: string;
|
|
58
|
-
};
|
|
59
|
-
currentRelease: {
|
|
60
|
-
status: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
} | null;
|
|
63
|
-
}>, {
|
|
64
|
-
status: string;
|
|
65
|
-
hostname: string;
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
deployed: boolean;
|
|
69
|
-
organization: {
|
|
70
|
-
name: string;
|
|
71
|
-
slug: string;
|
|
72
|
-
};
|
|
73
|
-
currentRelease: {
|
|
74
|
-
status: string;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
} | null;
|
|
77
|
-
}, unknown>, "many">;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>, unknown>>;
|
|
@@ -2,10 +2,4 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const BuildResponseSchema: z.ZodObject<{
|
|
3
3
|
appName: z.ZodString;
|
|
4
4
|
imageRef: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
appName: string;
|
|
7
|
-
imageRef: string;
|
|
8
|
-
}, {
|
|
9
|
-
appName: string;
|
|
10
|
-
imageRef: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|