@distilled.cloud/fly-io 0.4.0 → 0.5.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/README.md +1 -0
- package/lib/operations/AppCertificatesAcmeCreate.d.ts +57 -0
- package/lib/operations/AppCertificatesAcmeCreate.d.ts.map +1 -0
- package/lib/operations/AppCertificatesAcmeCreate.js +69 -0
- package/lib/operations/AppCertificatesAcmeCreate.js.map +1 -0
- package/lib/operations/AppCertificatesAcmeDelete.d.ts +55 -0
- package/lib/operations/AppCertificatesAcmeDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesAcmeDelete.js +70 -0
- package/lib/operations/AppCertificatesAcmeDelete.js.map +1 -0
- package/lib/operations/AppCertificatesCheck.d.ts +64 -0
- package/lib/operations/AppCertificatesCheck.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCheck.js +79 -0
- package/lib/operations/AppCertificatesCheck.js.map +1 -0
- package/lib/operations/AppCertificatesCustomCreate.d.ts +59 -0
- package/lib/operations/AppCertificatesCustomCreate.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCustomCreate.js +72 -0
- package/lib/operations/AppCertificatesCustomCreate.js.map +1 -0
- package/lib/operations/AppCertificatesCustomDelete.d.ts +56 -0
- package/lib/operations/AppCertificatesCustomDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCustomDelete.js +71 -0
- package/lib/operations/AppCertificatesCustomDelete.js.map +1 -0
- package/lib/operations/AppCertificatesDelete.d.ts +10 -0
- package/lib/operations/AppCertificatesDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesDelete.js +21 -0
- package/lib/operations/AppCertificatesDelete.js.map +1 -0
- package/lib/operations/AppCertificatesList.d.ts +36 -0
- package/lib/operations/AppCertificatesList.d.ts.map +1 -0
- package/lib/operations/AppCertificatesList.js +44 -0
- package/lib/operations/AppCertificatesList.js.map +1 -0
- package/lib/operations/AppCertificatesShow.d.ts +55 -0
- package/lib/operations/AppCertificatesShow.d.ts.map +1 -0
- package/lib/operations/AppCertificatesShow.js +67 -0
- package/lib/operations/AppCertificatesShow.js.map +1 -0
- package/lib/operations/AppIPAssignmentsCreate.d.ts +22 -0
- package/lib/operations/AppIPAssignmentsCreate.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsCreate.js +30 -0
- package/lib/operations/AppIPAssignmentsCreate.js.map +1 -0
- package/lib/operations/AppIPAssignmentsDelete.d.ts +10 -0
- package/lib/operations/AppIPAssignmentsDelete.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsDelete.js +18 -0
- package/lib/operations/AppIPAssignmentsDelete.js.map +1 -0
- package/lib/operations/AppIPAssignmentsList.d.ts +18 -0
- package/lib/operations/AppIPAssignmentsList.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsList.js +26 -0
- package/lib/operations/AppIPAssignmentsList.js.map +1 -0
- package/lib/operations/MachinesGetMetadataKey.d.ts +22 -0
- package/lib/operations/MachinesGetMetadataKey.d.ts.map +1 -0
- package/lib/operations/MachinesGetMetadataKey.js +33 -0
- package/lib/operations/MachinesGetMetadataKey.js.map +1 -0
- package/lib/operations/MachinesUpsertMetadata.d.ts +22 -0
- package/lib/operations/MachinesUpsertMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesUpsertMetadata.js +33 -0
- package/lib/operations/MachinesUpsertMetadata.js.map +1 -0
- package/lib/operations/TokensRequestKms.d.ts +12 -0
- package/lib/operations/TokensRequestKms.d.ts.map +1 -0
- package/lib/operations/TokensRequestKms.js +18 -0
- package/lib/operations/TokensRequestKms.js.map +1 -0
- package/lib/operations/TokensRequestOIDC.d.ts +15 -0
- package/lib/operations/TokensRequestOIDC.d.ts.map +1 -0
- package/lib/operations/TokensRequestOIDC.js +22 -0
- package/lib/operations/TokensRequestOIDC.js.map +1 -0
- package/lib/operations/index.d.ts +13 -13
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +13 -13
- package/lib/operations/index.js.map +1 -1
- package/package.json +4 -4
- package/src/operations/AppCertificatesAcmeCreate.ts +101 -0
- package/src/operations/AppCertificatesAcmeDelete.ts +102 -0
- package/src/operations/AppCertificatesCheck.ts +111 -0
- package/src/operations/AppCertificatesCustomCreate.ts +104 -0
- package/src/operations/AppCertificatesCustomDelete.ts +103 -0
- package/src/operations/AppCertificatesDelete.ts +30 -0
- package/src/operations/AppCertificatesList.ts +52 -0
- package/src/operations/AppCertificatesShow.ts +95 -0
- package/src/operations/AppIPAssignmentsCreate.ts +38 -0
- package/src/operations/AppIPAssignmentsDelete.ts +28 -0
- package/src/operations/AppIPAssignmentsList.ts +38 -0
- package/src/operations/MachinesGetMetadataKey.ts +43 -0
- package/src/operations/MachinesUpsertMetadata.ts +43 -0
- package/src/operations/TokensRequestKms.ts +24 -0
- package/src/operations/TokensRequestOIDC.ts +28 -0
- package/src/operations/index.ts +13 -13
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const AppCertificatesCustomCreateInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
fullchain: Schema.optional(Schema.String),
|
|
10
|
+
hostname: Schema.optional(Schema.String),
|
|
11
|
+
private_key: Schema.optional(SensitiveString),
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "POST", path: "/apps/{app_name}/certificates/custom" }),
|
|
14
|
+
);
|
|
15
|
+
export type AppCertificatesCustomCreateInput =
|
|
16
|
+
typeof AppCertificatesCustomCreateInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const AppCertificatesCustomCreateOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
22
|
+
certificates: Schema.optional(
|
|
23
|
+
Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
created_at: Schema.optional(Schema.String),
|
|
26
|
+
expires_at: Schema.optional(Schema.String),
|
|
27
|
+
issued: Schema.optional(
|
|
28
|
+
Schema.Array(
|
|
29
|
+
Schema.Struct({
|
|
30
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
31
|
+
expires_at: Schema.optional(Schema.String),
|
|
32
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
33
|
+
}),
|
|
34
|
+
),
|
|
35
|
+
),
|
|
36
|
+
issuer: Schema.optional(Schema.String),
|
|
37
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
38
|
+
status: Schema.optional(
|
|
39
|
+
Schema.Literals([
|
|
40
|
+
"active",
|
|
41
|
+
"pending_ownership",
|
|
42
|
+
"pending_validation",
|
|
43
|
+
]),
|
|
44
|
+
),
|
|
45
|
+
}),
|
|
46
|
+
),
|
|
47
|
+
),
|
|
48
|
+
configured: Schema.optional(Schema.Boolean),
|
|
49
|
+
dns_provider: Schema.optional(Schema.String),
|
|
50
|
+
dns_requirements: Schema.optional(
|
|
51
|
+
Schema.Struct({
|
|
52
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
53
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
54
|
+
acme_challenge: Schema.optional(
|
|
55
|
+
Schema.Struct({
|
|
56
|
+
name: Schema.optional(Schema.String),
|
|
57
|
+
target: Schema.optional(Schema.String),
|
|
58
|
+
}),
|
|
59
|
+
),
|
|
60
|
+
cname: Schema.optional(Schema.String),
|
|
61
|
+
ownership: Schema.optional(
|
|
62
|
+
Schema.Struct({
|
|
63
|
+
app_value: Schema.optional(Schema.String),
|
|
64
|
+
name: Schema.optional(Schema.String),
|
|
65
|
+
org_value: Schema.optional(Schema.String),
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
}),
|
|
69
|
+
),
|
|
70
|
+
hostname: Schema.optional(Schema.String),
|
|
71
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
72
|
+
status: Schema.optional(Schema.String),
|
|
73
|
+
validation: Schema.optional(
|
|
74
|
+
Schema.Struct({
|
|
75
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
76
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
77
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
78
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
79
|
+
}),
|
|
80
|
+
),
|
|
81
|
+
validation_errors: Schema.optional(
|
|
82
|
+
Schema.Array(
|
|
83
|
+
Schema.Struct({
|
|
84
|
+
code: Schema.optional(Schema.String),
|
|
85
|
+
message: Schema.optional(Schema.String),
|
|
86
|
+
remediation: Schema.optional(Schema.String),
|
|
87
|
+
timestamp: Schema.optional(Schema.String),
|
|
88
|
+
}),
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
});
|
|
92
|
+
export type AppCertificatesCustomCreateOutput =
|
|
93
|
+
typeof AppCertificatesCustomCreateOutput.Type;
|
|
94
|
+
|
|
95
|
+
// The operation
|
|
96
|
+
/**
|
|
97
|
+
* Upload custom certificate
|
|
98
|
+
*/
|
|
99
|
+
export const AppCertificatesCustomCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
100
|
+
() => ({
|
|
101
|
+
inputSchema: AppCertificatesCustomCreateInput,
|
|
102
|
+
outputSchema: AppCertificatesCustomCreateOutput,
|
|
103
|
+
}),
|
|
104
|
+
);
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesCustomDeleteInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/apps/{app_name}/certificates/{hostname}/custom",
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
13
|
+
export type AppCertificatesCustomDeleteInput =
|
|
14
|
+
typeof AppCertificatesCustomDeleteInput.Type;
|
|
15
|
+
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const AppCertificatesCustomDeleteOutput =
|
|
18
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
20
|
+
certificates: Schema.optional(
|
|
21
|
+
Schema.Array(
|
|
22
|
+
Schema.Struct({
|
|
23
|
+
created_at: Schema.optional(Schema.String),
|
|
24
|
+
expires_at: Schema.optional(Schema.String),
|
|
25
|
+
issued: Schema.optional(
|
|
26
|
+
Schema.Array(
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
29
|
+
expires_at: Schema.optional(Schema.String),
|
|
30
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
issuer: Schema.optional(Schema.String),
|
|
35
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
36
|
+
status: Schema.optional(
|
|
37
|
+
Schema.Literals([
|
|
38
|
+
"active",
|
|
39
|
+
"pending_ownership",
|
|
40
|
+
"pending_validation",
|
|
41
|
+
]),
|
|
42
|
+
),
|
|
43
|
+
}),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
46
|
+
configured: Schema.optional(Schema.Boolean),
|
|
47
|
+
dns_provider: Schema.optional(Schema.String),
|
|
48
|
+
dns_requirements: Schema.optional(
|
|
49
|
+
Schema.Struct({
|
|
50
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
51
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
52
|
+
acme_challenge: Schema.optional(
|
|
53
|
+
Schema.Struct({
|
|
54
|
+
name: Schema.optional(Schema.String),
|
|
55
|
+
target: Schema.optional(Schema.String),
|
|
56
|
+
}),
|
|
57
|
+
),
|
|
58
|
+
cname: Schema.optional(Schema.String),
|
|
59
|
+
ownership: Schema.optional(
|
|
60
|
+
Schema.Struct({
|
|
61
|
+
app_value: Schema.optional(Schema.String),
|
|
62
|
+
name: Schema.optional(Schema.String),
|
|
63
|
+
org_value: Schema.optional(Schema.String),
|
|
64
|
+
}),
|
|
65
|
+
),
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
hostname: Schema.optional(Schema.String),
|
|
69
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
70
|
+
status: Schema.optional(Schema.String),
|
|
71
|
+
validation: Schema.optional(
|
|
72
|
+
Schema.Struct({
|
|
73
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
74
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
75
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
76
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
77
|
+
}),
|
|
78
|
+
),
|
|
79
|
+
validation_errors: Schema.optional(
|
|
80
|
+
Schema.Array(
|
|
81
|
+
Schema.Struct({
|
|
82
|
+
code: Schema.optional(Schema.String),
|
|
83
|
+
message: Schema.optional(Schema.String),
|
|
84
|
+
remediation: Schema.optional(Schema.String),
|
|
85
|
+
timestamp: Schema.optional(Schema.String),
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
warning: Schema.optional(Schema.String),
|
|
90
|
+
});
|
|
91
|
+
export type AppCertificatesCustomDeleteOutput =
|
|
92
|
+
typeof AppCertificatesCustomDeleteOutput.Type;
|
|
93
|
+
|
|
94
|
+
// The operation
|
|
95
|
+
/**
|
|
96
|
+
* Remove custom certificate
|
|
97
|
+
*/
|
|
98
|
+
export const AppCertificatesCustomDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
99
|
+
() => ({
|
|
100
|
+
inputSchema: AppCertificatesCustomDeleteInput,
|
|
101
|
+
outputSchema: AppCertificatesCustomDeleteOutput,
|
|
102
|
+
}),
|
|
103
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesDeleteInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/apps/{app_name}/certificates/{hostname}",
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
13
|
+
export type AppCertificatesDeleteInput = typeof AppCertificatesDeleteInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const AppCertificatesDeleteOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
18
|
+
export type AppCertificatesDeleteOutput =
|
|
19
|
+
typeof AppCertificatesDeleteOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Remove certificate
|
|
24
|
+
*/
|
|
25
|
+
export const AppCertificatesDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
26
|
+
() => ({
|
|
27
|
+
inputSchema: AppCertificatesDeleteInput,
|
|
28
|
+
outputSchema: AppCertificatesDeleteOutput,
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesListInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
filter: Schema.optional(Schema.String),
|
|
9
|
+
cursor: Schema.optional(Schema.String),
|
|
10
|
+
limit: Schema.optional(Schema.Number),
|
|
11
|
+
}).pipe(T.Http({ method: "GET", path: "/apps/{app_name}/certificates" }));
|
|
12
|
+
export type AppCertificatesListInput = typeof AppCertificatesListInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const AppCertificatesListOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
certificates: Schema.optional(
|
|
18
|
+
Schema.Array(
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
acme_alpn_configured: Schema.optional(Schema.Boolean),
|
|
21
|
+
acme_dns_configured: Schema.optional(Schema.Boolean),
|
|
22
|
+
acme_http_configured: Schema.optional(Schema.Boolean),
|
|
23
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
24
|
+
configured: Schema.optional(Schema.Boolean),
|
|
25
|
+
created_at: Schema.optional(Schema.String),
|
|
26
|
+
dns_provider: Schema.optional(Schema.String),
|
|
27
|
+
has_custom_certificate: Schema.optional(Schema.Boolean),
|
|
28
|
+
has_fly_certificate: Schema.optional(Schema.Boolean),
|
|
29
|
+
hostname: Schema.optional(Schema.String),
|
|
30
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
31
|
+
status: Schema.optional(Schema.String),
|
|
32
|
+
updated_at: Schema.optional(Schema.String),
|
|
33
|
+
}),
|
|
34
|
+
),
|
|
35
|
+
),
|
|
36
|
+
next_cursor: Schema.optional(Schema.String),
|
|
37
|
+
total_count: Schema.optional(Schema.Number),
|
|
38
|
+
});
|
|
39
|
+
export type AppCertificatesListOutput = typeof AppCertificatesListOutput.Type;
|
|
40
|
+
|
|
41
|
+
// The operation
|
|
42
|
+
/**
|
|
43
|
+
* List certificates for app
|
|
44
|
+
*
|
|
45
|
+
* @param filter - Hostname filter (substring match)
|
|
46
|
+
* @param cursor - Pagination cursor from previous response
|
|
47
|
+
* @param limit - Number of results per page (default 25, max 500)
|
|
48
|
+
*/
|
|
49
|
+
export const AppCertificatesList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
50
|
+
inputSchema: AppCertificatesListInput,
|
|
51
|
+
outputSchema: AppCertificatesListOutput,
|
|
52
|
+
}));
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesShowInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/apps/{app_name}/certificates/{hostname}" }),
|
|
9
|
+
);
|
|
10
|
+
export type AppCertificatesShowInput = typeof AppCertificatesShowInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const AppCertificatesShowOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
16
|
+
certificates: Schema.optional(
|
|
17
|
+
Schema.Array(
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
created_at: Schema.optional(Schema.String),
|
|
20
|
+
expires_at: Schema.optional(Schema.String),
|
|
21
|
+
issued: Schema.optional(
|
|
22
|
+
Schema.Array(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
25
|
+
expires_at: Schema.optional(Schema.String),
|
|
26
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
27
|
+
}),
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
issuer: Schema.optional(Schema.String),
|
|
31
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
32
|
+
status: Schema.optional(
|
|
33
|
+
Schema.Literals([
|
|
34
|
+
"active",
|
|
35
|
+
"pending_ownership",
|
|
36
|
+
"pending_validation",
|
|
37
|
+
]),
|
|
38
|
+
),
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
configured: Schema.optional(Schema.Boolean),
|
|
43
|
+
dns_provider: Schema.optional(Schema.String),
|
|
44
|
+
dns_requirements: Schema.optional(
|
|
45
|
+
Schema.Struct({
|
|
46
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
47
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
48
|
+
acme_challenge: Schema.optional(
|
|
49
|
+
Schema.Struct({
|
|
50
|
+
name: Schema.optional(Schema.String),
|
|
51
|
+
target: Schema.optional(Schema.String),
|
|
52
|
+
}),
|
|
53
|
+
),
|
|
54
|
+
cname: Schema.optional(Schema.String),
|
|
55
|
+
ownership: Schema.optional(
|
|
56
|
+
Schema.Struct({
|
|
57
|
+
app_value: Schema.optional(Schema.String),
|
|
58
|
+
name: Schema.optional(Schema.String),
|
|
59
|
+
org_value: Schema.optional(Schema.String),
|
|
60
|
+
}),
|
|
61
|
+
),
|
|
62
|
+
}),
|
|
63
|
+
),
|
|
64
|
+
hostname: Schema.optional(Schema.String),
|
|
65
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
66
|
+
status: Schema.optional(Schema.String),
|
|
67
|
+
validation: Schema.optional(
|
|
68
|
+
Schema.Struct({
|
|
69
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
70
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
71
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
72
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
73
|
+
}),
|
|
74
|
+
),
|
|
75
|
+
validation_errors: Schema.optional(
|
|
76
|
+
Schema.Array(
|
|
77
|
+
Schema.Struct({
|
|
78
|
+
code: Schema.optional(Schema.String),
|
|
79
|
+
message: Schema.optional(Schema.String),
|
|
80
|
+
remediation: Schema.optional(Schema.String),
|
|
81
|
+
timestamp: Schema.optional(Schema.String),
|
|
82
|
+
}),
|
|
83
|
+
),
|
|
84
|
+
),
|
|
85
|
+
});
|
|
86
|
+
export type AppCertificatesShowOutput = typeof AppCertificatesShowOutput.Type;
|
|
87
|
+
|
|
88
|
+
// The operation
|
|
89
|
+
/**
|
|
90
|
+
* Get certificate details
|
|
91
|
+
*/
|
|
92
|
+
export const AppCertificatesShow = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
93
|
+
inputSchema: AppCertificatesShowInput,
|
|
94
|
+
outputSchema: AppCertificatesShowOutput,
|
|
95
|
+
}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppIPAssignmentsCreateInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
network: Schema.optional(Schema.String),
|
|
9
|
+
org_slug: Schema.optional(Schema.String),
|
|
10
|
+
region: Schema.optional(Schema.String),
|
|
11
|
+
service_name: Schema.optional(Schema.String),
|
|
12
|
+
type: Schema.optional(Schema.String),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", path: "/apps/{app_name}/ip_assignments" }));
|
|
14
|
+
export type AppIPAssignmentsCreateInput =
|
|
15
|
+
typeof AppIPAssignmentsCreateInput.Type;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const AppIPAssignmentsCreateOutput =
|
|
19
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
|
+
created_at: Schema.optional(Schema.String),
|
|
21
|
+
ip: Schema.optional(Schema.String),
|
|
22
|
+
region: Schema.optional(Schema.String),
|
|
23
|
+
service_name: Schema.optional(Schema.String),
|
|
24
|
+
shared: Schema.optional(Schema.Boolean),
|
|
25
|
+
});
|
|
26
|
+
export type AppIPAssignmentsCreateOutput =
|
|
27
|
+
typeof AppIPAssignmentsCreateOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* Assign new IP address to app
|
|
32
|
+
*/
|
|
33
|
+
export const AppIPAssignmentsCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
34
|
+
() => ({
|
|
35
|
+
inputSchema: AppIPAssignmentsCreateInput,
|
|
36
|
+
outputSchema: AppIPAssignmentsCreateOutput,
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppIPAssignmentsDeleteInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "DELETE", path: "/apps/{app_name}/ip_assignments/{ip}" }),
|
|
9
|
+
);
|
|
10
|
+
export type AppIPAssignmentsDeleteInput =
|
|
11
|
+
typeof AppIPAssignmentsDeleteInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const AppIPAssignmentsDeleteOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
export type AppIPAssignmentsDeleteOutput =
|
|
17
|
+
typeof AppIPAssignmentsDeleteOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Remove IP assignment from app
|
|
22
|
+
*/
|
|
23
|
+
export const AppIPAssignmentsDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
24
|
+
() => ({
|
|
25
|
+
inputSchema: AppIPAssignmentsDeleteInput,
|
|
26
|
+
outputSchema: AppIPAssignmentsDeleteOutput,
|
|
27
|
+
}),
|
|
28
|
+
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppIPAssignmentsListInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/apps/{app_name}/ip_assignments" }),
|
|
9
|
+
);
|
|
10
|
+
export type AppIPAssignmentsListInput = typeof AppIPAssignmentsListInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const AppIPAssignmentsListOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
ips: Schema.optional(
|
|
16
|
+
Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
created_at: Schema.optional(Schema.String),
|
|
19
|
+
ip: Schema.optional(Schema.String),
|
|
20
|
+
region: Schema.optional(Schema.String),
|
|
21
|
+
service_name: Schema.optional(Schema.String),
|
|
22
|
+
shared: Schema.optional(Schema.Boolean),
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
});
|
|
27
|
+
export type AppIPAssignmentsListOutput = typeof AppIPAssignmentsListOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* List IP assignments for app
|
|
32
|
+
*/
|
|
33
|
+
export const AppIPAssignmentsList = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
34
|
+
() => ({
|
|
35
|
+
inputSchema: AppIPAssignmentsListInput,
|
|
36
|
+
outputSchema: AppIPAssignmentsListOutput,
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const MachinesGetMetadataKeyInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
machine_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
key: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "GET",
|
|
14
|
+
path: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type MachinesGetMetadataKeyInput =
|
|
18
|
+
typeof MachinesGetMetadataKeyInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const MachinesGetMetadataKeyOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
value: Schema.optional(Schema.String),
|
|
24
|
+
});
|
|
25
|
+
export type MachinesGetMetadataKeyOutput =
|
|
26
|
+
typeof MachinesGetMetadataKeyOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Get Metadata Value
|
|
31
|
+
*
|
|
32
|
+
* Get the value of a specific metadata key
|
|
33
|
+
*
|
|
34
|
+
* @param app_name - Fly App Name
|
|
35
|
+
* @param machine_id - Machine ID
|
|
36
|
+
* @param key - Metadata Key
|
|
37
|
+
*/
|
|
38
|
+
export const MachinesGetMetadataKey = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
39
|
+
() => ({
|
|
40
|
+
inputSchema: MachinesGetMetadataKeyInput,
|
|
41
|
+
outputSchema: MachinesGetMetadataKeyOutput,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const MachinesUpsertMetadataInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
machine_id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
key: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
updated_at: Schema.optional(Schema.String),
|
|
12
|
+
value: Schema.optional(Schema.String),
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({
|
|
15
|
+
method: "POST",
|
|
16
|
+
path: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
17
|
+
}),
|
|
18
|
+
);
|
|
19
|
+
export type MachinesUpsertMetadataInput =
|
|
20
|
+
typeof MachinesUpsertMetadataInput.Type;
|
|
21
|
+
|
|
22
|
+
// Output Schema
|
|
23
|
+
export const MachinesUpsertMetadataOutput =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
25
|
+
export type MachinesUpsertMetadataOutput =
|
|
26
|
+
typeof MachinesUpsertMetadataOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Upsert Metadata Key
|
|
31
|
+
*
|
|
32
|
+
* Update metadata for a specific machine within an app by providing a metadata key.
|
|
33
|
+
*
|
|
34
|
+
* @param app_name - Fly App Name
|
|
35
|
+
* @param machine_id - Machine ID
|
|
36
|
+
* @param key - Metadata Key
|
|
37
|
+
*/
|
|
38
|
+
export const MachinesUpsertMetadata = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
39
|
+
() => ({
|
|
40
|
+
inputSchema: MachinesUpsertMetadataInput,
|
|
41
|
+
outputSchema: MachinesUpsertMetadataOutput,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const TokensRequestKmsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "POST", path: "/tokens/kms" }));
|
|
9
|
+
export type TokensRequestKmsInput = typeof TokensRequestKmsInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const TokensRequestKmsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
13
|
+
export type TokensRequestKmsOutput = typeof TokensRequestKmsOutput.Type;
|
|
14
|
+
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Request a Petsem token for accessing KMS
|
|
18
|
+
*
|
|
19
|
+
* This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource.
|
|
20
|
+
*/
|
|
21
|
+
export const TokensRequestKms = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: TokensRequestKmsInput,
|
|
23
|
+
outputSchema: TokensRequestKmsOutput,
|
|
24
|
+
}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const TokensRequestOIDCInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{
|
|
8
|
+
aud: Schema.optional(Schema.String),
|
|
9
|
+
aws_principal_tags: Schema.optional(Schema.Boolean),
|
|
10
|
+
},
|
|
11
|
+
).pipe(T.Http({ method: "POST", path: "/tokens/oidc" }));
|
|
12
|
+
export type TokensRequestOIDCInput = typeof TokensRequestOIDCInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const TokensRequestOIDCOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
17
|
+
export type TokensRequestOIDCOutput = typeof TokensRequestOIDCOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Request an OIDC token
|
|
22
|
+
*
|
|
23
|
+
* Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io.
|
|
24
|
+
*/
|
|
25
|
+
export const TokensRequestOIDC = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: TokensRequestOIDCInput,
|
|
27
|
+
outputSchema: TokensRequestOIDCOutput,
|
|
28
|
+
}));
|
package/src/operations/index.ts
CHANGED
|
@@ -2,18 +2,18 @@ export * from "./AppsList";
|
|
|
2
2
|
export * from "./AppsCreate";
|
|
3
3
|
export * from "./AppsShow";
|
|
4
4
|
export * from "./AppsDelete";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
5
|
+
export * from "./AppCertificatesList";
|
|
6
|
+
export * from "./AppCertificatesAcmeCreate";
|
|
7
|
+
export * from "./AppCertificatesCustomCreate";
|
|
8
|
+
export * from "./AppCertificatesShow";
|
|
9
|
+
export * from "./AppCertificatesDelete";
|
|
10
|
+
export * from "./AppCertificatesAcmeDelete";
|
|
11
|
+
export * from "./AppCertificatesCheck";
|
|
12
|
+
export * from "./AppCertificatesCustomDelete";
|
|
13
13
|
export * from "./AppCreateDeployToken";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
14
|
+
export * from "./AppIPAssignmentsList";
|
|
15
|
+
export * from "./AppIPAssignmentsCreate";
|
|
16
|
+
export * from "./AppIPAssignmentsDelete";
|
|
17
17
|
export * from "./MachinesList";
|
|
18
18
|
export * from "./MachinesCreate";
|
|
19
19
|
export * from "./MachinesShow";
|
|
@@ -66,6 +66,6 @@ export * from "./createVolumeSnapshot";
|
|
|
66
66
|
export * from "./MachinesOrgList";
|
|
67
67
|
export * from "./PlatformPlacementsPost";
|
|
68
68
|
export * from "./PlatformRegionsGet";
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
69
|
+
export * from "./TokensRequestKms";
|
|
70
|
+
export * from "./TokensRequestOIDC";
|
|
71
71
|
export * from "./CurrentTokenShow";
|