@distilled.cloud/fly-io 1.0.0-rc.4 → 1.0.0-rc.6
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/lib/credentials.d.ts +17 -0
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +39 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +32 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +33 -0
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +27 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -2
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts +5 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +5 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -7
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +505 -28
- package/lib/protocol.js.map +1 -1
- package/lib/services/addons.d.ts +466 -0
- package/lib/services/addons.d.ts.map +1 -0
- package/lib/services/addons.js +613 -0
- package/lib/services/addons.js.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/machines.d.ts +1175 -1198
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +1297 -1310
- package/lib/services/machines.js.map +1 -1
- package/lib/services/mpg.d.ts +376 -0
- package/lib/services/mpg.d.ts.map +1 -0
- package/lib/services/mpg.js +570 -0
- package/lib/services/mpg.js.map +1 -0
- package/lib/services/sprites.d.ts +321 -0
- package/lib/services/sprites.d.ts.map +1 -0
- package/lib/services/sprites.js +407 -0
- package/lib/services/sprites.js.map +1 -0
- package/lib/traits.d.ts +18 -8
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +13 -3
- package/lib/traits.js.map +1 -1
- package/package.json +37 -13
- package/src/credentials.ts +53 -7
- package/src/errors.ts +39 -0
- package/src/index.ts +31 -1
- package/src/pagination.ts +12 -0
- package/src/protocol.ts +715 -32
- package/src/services/addons.ts +1313 -0
- package/src/services/index.ts +3 -0
- package/src/services/machines.ts +2998 -3049
- package/src/services/mpg.ts +1188 -0
- package/src/services/sprites.ts +917 -0
- package/src/traits.ts +37 -3
package/lib/services/machines.js
CHANGED
|
@@ -3,17 +3,96 @@ import * as S from "@distilled.cloud/core/schema";
|
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as T from "../traits.js";
|
|
5
5
|
import { FlyIoProtocol, } from "../protocol.js";
|
|
6
|
-
import { BadRequest, Forbidden, NotFound, UnprocessableEntity, } from "../errors.js";
|
|
6
|
+
import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity, } from "../errors.js";
|
|
7
7
|
import * as Retry from "../retry.js";
|
|
8
|
-
export const
|
|
8
|
+
export const AuthenticateTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
header: S.optional(S.String),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/authenticate", code: 200 }))).annotate({
|
|
11
|
+
identifier: "AuthenticateTokenRequest",
|
|
12
|
+
});
|
|
13
|
+
export const MacaroonCaveatSetCaveatsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
14
|
+
export const MacaroonCaveatSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
15
|
+
caveats: S.optional(MacaroonCaveatSetCaveatsList),
|
|
16
|
+
})).annotate({
|
|
17
|
+
identifier: "MacaroonCaveatSet",
|
|
18
|
+
});
|
|
19
|
+
export const MacaroonNonceKidList = /*@__PURE__*/ S.Array(S.Number);
|
|
20
|
+
export const MacaroonNonceRndList = /*@__PURE__*/ S.Array(S.Number);
|
|
21
|
+
export const MacaroonNonce = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
22
|
+
kid: S.optional(MacaroonNonceKidList),
|
|
23
|
+
proof: S.optional(S.Boolean),
|
|
24
|
+
rnd: S.optional(MacaroonNonceRndList),
|
|
25
|
+
})).annotate({ identifier: "MacaroonNonce" });
|
|
26
|
+
export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
|
|
27
|
+
export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
28
|
+
caveats: S.optional(MacaroonCaveatSet),
|
|
29
|
+
header: S.optional(S.String),
|
|
30
|
+
nonce: S.optional(MacaroonNonce),
|
|
31
|
+
permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
|
|
32
|
+
})).annotate({
|
|
33
|
+
identifier: "RootVerifiedToken",
|
|
34
|
+
});
|
|
35
|
+
export const AuthenticateTokenResponseBodyList = /*@__PURE__*/ S.Array(RootVerifiedToken);
|
|
36
|
+
export const AuthenticateTokenResponse = /*@__PURE__*/ S.suspend(() => AuthenticateTokenResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
37
|
+
identifier: "AuthenticateTokenResponse",
|
|
38
|
+
});
|
|
39
|
+
export const RessetAction = /*@__PURE__*/ S.Number;
|
|
40
|
+
export const MainTokenAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
41
|
+
export const MainTokenAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
+
action: S.optional(RessetAction),
|
|
43
|
+
app_feature: S.optional(S.String),
|
|
44
|
+
app_name: S.optional(S.String),
|
|
45
|
+
command: S.optional(MainTokenAccessCommandList),
|
|
46
|
+
machine_feature: S.optional(S.String),
|
|
47
|
+
machine_id: S.optional(S.String),
|
|
48
|
+
mutation: S.optional(S.String),
|
|
49
|
+
org_feature: S.optional(S.String),
|
|
50
|
+
org_slug: S.optional(S.String),
|
|
51
|
+
source_machine: S.optional(S.String),
|
|
52
|
+
storage_object: S.optional(S.String),
|
|
53
|
+
volume_id: S.optional(S.String),
|
|
54
|
+
})).annotate({
|
|
55
|
+
identifier: "MainTokenAccess",
|
|
56
|
+
});
|
|
57
|
+
export const AuthorizeTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
access: S.optional(MainTokenAccess),
|
|
59
|
+
header: S.optional(S.String),
|
|
60
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/authorize", code: 200 }))).annotate({
|
|
61
|
+
identifier: "AuthorizeTokenRequest",
|
|
62
|
+
});
|
|
63
|
+
export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
64
|
+
export const FlyioAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
+
action: S.optional(RessetAction),
|
|
66
|
+
app_feature: S.optional(S.String),
|
|
67
|
+
appid: S.optional(S.Number),
|
|
68
|
+
cluster: S.optional(S.String),
|
|
69
|
+
command: S.optional(FlyioAccessCommandList),
|
|
70
|
+
feature: S.optional(S.String),
|
|
71
|
+
machine: S.optional(S.String),
|
|
72
|
+
machine_feature: S.optional(S.String),
|
|
73
|
+
mutation: S.optional(S.String),
|
|
74
|
+
orgid: S.optional(S.Number),
|
|
75
|
+
sourceApp: S.optional(S.String),
|
|
76
|
+
sourceMachine: S.optional(S.String),
|
|
77
|
+
sourceOrganization: S.optional(S.String),
|
|
78
|
+
storage_object: S.optional(S.String),
|
|
79
|
+
volume: S.optional(S.String),
|
|
80
|
+
})).annotate({ identifier: "FlyioAccess" });
|
|
81
|
+
export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
+
access: S.optional(FlyioAccess),
|
|
83
|
+
verified_token: S.optional(RootVerifiedToken),
|
|
84
|
+
})).annotate({
|
|
85
|
+
identifier: "AuthorizeResponse",
|
|
86
|
+
});
|
|
87
|
+
export const CheckAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
88
|
app_name: S.String.pipe(T.Label()),
|
|
10
|
-
hostname: S.
|
|
89
|
+
hostname: S.String.pipe(T.Label()),
|
|
11
90
|
}).pipe(T.Http({
|
|
12
91
|
method: "POST",
|
|
13
|
-
uri: "/apps/{app_name}/certificates/
|
|
92
|
+
uri: "/apps/{app_name}/certificates/{hostname}/check",
|
|
14
93
|
code: 200,
|
|
15
94
|
}))).annotate({
|
|
16
|
-
identifier: "
|
|
95
|
+
identifier: "CheckAppCertificateRequest",
|
|
17
96
|
});
|
|
18
97
|
export const IssuedCertificateType = /*@__PURE__*/ S.String;
|
|
19
98
|
export const IssuedCertificate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -36,7 +115,20 @@ export const CertificateEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
36
115
|
})).annotate({
|
|
37
116
|
identifier: "CertificateEntry",
|
|
38
117
|
});
|
|
39
|
-
export const
|
|
118
|
+
export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
119
|
+
export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
|
|
120
|
+
export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
121
|
+
export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
|
|
122
|
+
export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
123
|
+
export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
a: S.optional(DNSRecordsAList),
|
|
125
|
+
aaaa: S.optional(DNSRecordsAaaaList),
|
|
126
|
+
acme_challenge_cname: S.optional(S.String),
|
|
127
|
+
cname: S.optional(DNSRecordsCnameList),
|
|
128
|
+
ownership_txt: S.optional(S.String),
|
|
129
|
+
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
130
|
+
soa: S.optional(S.String),
|
|
131
|
+
})).annotate({ identifier: "DNSRecords" });
|
|
40
132
|
export const DNSRequirementsAList = /*@__PURE__*/ S.Array(S.String);
|
|
41
133
|
export const DNSRequirementsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
42
134
|
export const AcmeChallenge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -75,55 +167,6 @@ export const CertificateValidationError = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
75
167
|
})).annotate({
|
|
76
168
|
identifier: "CertificateValidationError",
|
|
77
169
|
});
|
|
78
|
-
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
79
|
-
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
acme_requested: S.optional(S.Boolean),
|
|
81
|
-
certificates: S.optional(CertificateDetailCertificatesList),
|
|
82
|
-
configured: S.optional(S.Boolean),
|
|
83
|
-
dns_provider: S.optional(S.String),
|
|
84
|
-
dns_requirements: S.optional(DNSRequirements),
|
|
85
|
-
hostname: S.optional(S.String),
|
|
86
|
-
rate_limited_until: S.optional(S.String),
|
|
87
|
-
status: S.optional(S.String),
|
|
88
|
-
validation: S.optional(CertificateValidation),
|
|
89
|
-
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
90
|
-
})).annotate({
|
|
91
|
-
identifier: "CertificateDetail",
|
|
92
|
-
});
|
|
93
|
-
export const AppCertificatesAcmeDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
app_name: S.String.pipe(T.Label()),
|
|
95
|
-
hostname: S.String.pipe(T.Label()),
|
|
96
|
-
}).pipe(T.Http({
|
|
97
|
-
method: "DELETE",
|
|
98
|
-
uri: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
99
|
-
code: 200,
|
|
100
|
-
}))).annotate({
|
|
101
|
-
identifier: "AppCertificatesAcmeDeleteRequest",
|
|
102
|
-
});
|
|
103
|
-
export const AppCertificatesCheckRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
-
app_name: S.String.pipe(T.Label()),
|
|
105
|
-
hostname: S.String.pipe(T.Label()),
|
|
106
|
-
}).pipe(T.Http({
|
|
107
|
-
method: "POST",
|
|
108
|
-
uri: "/apps/{app_name}/certificates/{hostname}/check",
|
|
109
|
-
code: 200,
|
|
110
|
-
}))).annotate({
|
|
111
|
-
identifier: "AppCertificatesCheckRequest",
|
|
112
|
-
});
|
|
113
|
-
export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
114
|
-
export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
|
|
115
|
-
export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
116
|
-
export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
|
|
117
|
-
export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
118
|
-
export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
a: S.optional(DNSRecordsAList),
|
|
120
|
-
aaaa: S.optional(DNSRecordsAaaaList),
|
|
121
|
-
acme_challenge_cname: S.optional(S.String),
|
|
122
|
-
cname: S.optional(DNSRecordsCnameList),
|
|
123
|
-
ownership_txt: S.optional(S.String),
|
|
124
|
-
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
125
|
-
soa: S.optional(S.String),
|
|
126
|
-
})).annotate({ identifier: "DNSRecords" });
|
|
127
170
|
export const CertificateCheckResponseValidationErrorsList =
|
|
128
171
|
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
129
172
|
export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -141,35 +184,45 @@ export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
141
184
|
})).annotate({
|
|
142
185
|
identifier: "CertificateCheckResponse",
|
|
143
186
|
});
|
|
144
|
-
export const
|
|
187
|
+
export const CordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
188
|
app_name: S.String.pipe(T.Label()),
|
|
146
|
-
|
|
147
|
-
hostname: S.optional(S.String),
|
|
148
|
-
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
189
|
+
machine_id: S.String.pipe(T.Label()),
|
|
149
190
|
}).pipe(T.Http({
|
|
150
191
|
method: "POST",
|
|
151
|
-
uri: "/apps/{app_name}/
|
|
192
|
+
uri: "/apps/{app_name}/machines/{machine_id}/cordon",
|
|
152
193
|
code: 200,
|
|
153
194
|
}))).annotate({
|
|
154
|
-
identifier: "
|
|
195
|
+
identifier: "CordonMachineRequest",
|
|
196
|
+
});
|
|
197
|
+
export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
198
|
+
identifier: "CordonMachineResponse",
|
|
199
|
+
});
|
|
200
|
+
export const CreateAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
201
|
+
enable_subdomains: S.optional(S.Boolean),
|
|
202
|
+
name: S.optional(S.String),
|
|
203
|
+
network: S.optional(S.String),
|
|
204
|
+
org_slug: S.optional(S.String),
|
|
205
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps", code: 200 }))).annotate({
|
|
206
|
+
identifier: "CreateAppRequest",
|
|
207
|
+
});
|
|
208
|
+
export const CreateAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
209
|
+
identifier: "CreateAppResponse",
|
|
155
210
|
});
|
|
156
|
-
export const
|
|
211
|
+
export const CreateAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
157
212
|
app_name: S.String.pipe(T.Label()),
|
|
158
|
-
hostname: S.
|
|
213
|
+
hostname: S.optional(S.String),
|
|
159
214
|
}).pipe(T.Http({
|
|
160
|
-
method: "
|
|
161
|
-
uri: "/apps/{app_name}/certificates/
|
|
215
|
+
method: "POST",
|
|
216
|
+
uri: "/apps/{app_name}/certificates/acme",
|
|
162
217
|
code: 200,
|
|
163
218
|
}))).annotate({
|
|
164
|
-
identifier: "
|
|
219
|
+
identifier: "CreateAppAcmeCertificateRequest",
|
|
165
220
|
});
|
|
166
|
-
export const
|
|
167
|
-
/*@__PURE__*/ S.Array(
|
|
168
|
-
export const
|
|
169
|
-
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
170
|
-
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
221
|
+
export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
222
|
+
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
223
|
+
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
224
|
acme_requested: S.optional(S.Boolean),
|
|
172
|
-
certificates: S.optional(
|
|
225
|
+
certificates: S.optional(CertificateDetailCertificatesList),
|
|
173
226
|
configured: S.optional(S.Boolean),
|
|
174
227
|
dns_provider: S.optional(S.String),
|
|
175
228
|
dns_requirements: S.optional(DNSRequirements),
|
|
@@ -177,79 +230,34 @@ export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.
|
|
|
177
230
|
rate_limited_until: S.optional(S.String),
|
|
178
231
|
status: S.optional(S.String),
|
|
179
232
|
validation: S.optional(CertificateValidation),
|
|
180
|
-
validation_errors: S.optional(
|
|
181
|
-
warning: S.optional(S.String),
|
|
233
|
+
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
182
234
|
})).annotate({
|
|
183
|
-
identifier: "
|
|
184
|
-
});
|
|
185
|
-
export const AppCertificatesDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
-
app_name: S.String.pipe(T.Label()),
|
|
187
|
-
hostname: S.String.pipe(T.Label()),
|
|
188
|
-
}).pipe(T.Http({
|
|
189
|
-
method: "DELETE",
|
|
190
|
-
uri: "/apps/{app_name}/certificates/{hostname}",
|
|
191
|
-
code: 200,
|
|
192
|
-
}))).annotate({
|
|
193
|
-
identifier: "AppCertificatesDeleteRequest",
|
|
194
|
-
});
|
|
195
|
-
export const AppCertificatesDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
196
|
-
identifier: "AppCertificatesDeleteResponse",
|
|
235
|
+
identifier: "CertificateDetail",
|
|
197
236
|
});
|
|
198
|
-
export const
|
|
237
|
+
export const CreateAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
238
|
app_name: S.String.pipe(T.Label()),
|
|
200
|
-
|
|
201
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
202
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
203
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/certificates", code: 200 }))).annotate({
|
|
204
|
-
identifier: "AppCertificatesListRequest",
|
|
205
|
-
});
|
|
206
|
-
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
207
|
-
acme_alpn_configured: S.optional(S.Boolean),
|
|
208
|
-
acme_dns_configured: S.optional(S.Boolean),
|
|
209
|
-
acme_http_configured: S.optional(S.Boolean),
|
|
210
|
-
acme_requested: S.optional(S.Boolean),
|
|
211
|
-
configured: S.optional(S.Boolean),
|
|
212
|
-
created_at: S.optional(S.String),
|
|
213
|
-
dns_provider: S.optional(S.String),
|
|
214
|
-
has_custom_certificate: S.optional(S.Boolean),
|
|
215
|
-
has_fly_certificate: S.optional(S.Boolean),
|
|
239
|
+
fullchain: S.optional(S.String),
|
|
216
240
|
hostname: S.optional(S.String),
|
|
217
|
-
|
|
218
|
-
status: S.optional(S.String),
|
|
219
|
-
updated_at: S.optional(S.String),
|
|
220
|
-
})).annotate({
|
|
221
|
-
identifier: "CertificateSummary",
|
|
222
|
-
});
|
|
223
|
-
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
224
|
-
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
-
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
226
|
-
next_cursor: S.optional(S.String),
|
|
227
|
-
total_count: S.optional(S.Number),
|
|
228
|
-
})).annotate({
|
|
229
|
-
identifier: "ListCertificatesResponse",
|
|
230
|
-
});
|
|
231
|
-
export const AppCertificatesShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
app_name: S.String.pipe(T.Label()),
|
|
233
|
-
hostname: S.String.pipe(T.Label()),
|
|
241
|
+
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
234
242
|
}).pipe(T.Http({
|
|
235
|
-
method: "
|
|
236
|
-
uri: "/apps/{app_name}/certificates/
|
|
243
|
+
method: "POST",
|
|
244
|
+
uri: "/apps/{app_name}/certificates/custom",
|
|
237
245
|
code: 200,
|
|
238
246
|
}))).annotate({
|
|
239
|
-
identifier: "
|
|
247
|
+
identifier: "CreateAppCustomCertificateRequest",
|
|
240
248
|
});
|
|
241
|
-
export const
|
|
249
|
+
export const CreateAppDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
250
|
app_name: S.String.pipe(T.Label()),
|
|
243
251
|
expiry: S.optional(S.String),
|
|
244
252
|
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/deploy_token", code: 200 }))).annotate({
|
|
245
|
-
identifier: "
|
|
253
|
+
identifier: "CreateAppDeployTokenRequest",
|
|
246
254
|
});
|
|
247
|
-
export const
|
|
255
|
+
export const CreateAppDeployTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
256
|
token: S.optional(S.String),
|
|
249
257
|
})).annotate({
|
|
250
|
-
identifier: "
|
|
258
|
+
identifier: "CreateAppDeployTokenResponse",
|
|
251
259
|
});
|
|
252
|
-
export const
|
|
260
|
+
export const CreateAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
261
|
app_name: S.String.pipe(T.Label()),
|
|
254
262
|
network: S.optional(S.String),
|
|
255
263
|
org_slug: S.optional(S.String),
|
|
@@ -261,7 +269,7 @@ export const AppIPAssignmentsCreateRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
261
269
|
uri: "/apps/{app_name}/ip_assignments",
|
|
262
270
|
code: 200,
|
|
263
271
|
}))).annotate({
|
|
264
|
-
identifier: "
|
|
272
|
+
identifier: "CreateAppIPAssignmentRequest",
|
|
265
273
|
});
|
|
266
274
|
export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
275
|
created_at: S.optional(S.String),
|
|
@@ -269,145 +277,19 @@ export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
269
277
|
region: S.optional(S.String),
|
|
270
278
|
service_name: S.optional(S.String),
|
|
271
279
|
shared: S.optional(S.Boolean),
|
|
280
|
+
type: S.optional(S.String),
|
|
272
281
|
})).annotate({ identifier: "IPAssignment" });
|
|
273
|
-
export const
|
|
274
|
-
|
|
275
|
-
ip: S.String.pipe(T.Label()),
|
|
276
|
-
}).pipe(T.Http({
|
|
277
|
-
method: "DELETE",
|
|
278
|
-
uri: "/apps/{app_name}/ip_assignments/{ip}",
|
|
279
|
-
code: 200,
|
|
280
|
-
}))).annotate({
|
|
281
|
-
identifier: "AppIPAssignmentsDeleteRequest",
|
|
282
|
-
});
|
|
283
|
-
export const AppIPAssignmentsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
284
|
-
identifier: "AppIPAssignmentsDeleteResponse",
|
|
285
|
-
});
|
|
286
|
-
export const AppIPAssignmentsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
-
app_name: S.String.pipe(T.Label()),
|
|
288
|
-
}).pipe(T.Http({
|
|
289
|
-
method: "GET",
|
|
290
|
-
uri: "/apps/{app_name}/ip_assignments",
|
|
291
|
-
code: 200,
|
|
292
|
-
}))).annotate({
|
|
293
|
-
identifier: "AppIPAssignmentsListRequest",
|
|
294
|
-
});
|
|
295
|
-
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
296
|
-
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
-
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
282
|
+
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
|
+
size_mb: S.optional(S.Number),
|
|
298
284
|
})).annotate({
|
|
299
|
-
identifier: "
|
|
285
|
+
identifier: "FlyMachineCacheDrive",
|
|
300
286
|
});
|
|
301
|
-
export const
|
|
302
|
-
|
|
287
|
+
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
288
|
+
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
303
289
|
name: S.optional(S.String),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
identifier: "AppsCreateRequest",
|
|
308
|
-
});
|
|
309
|
-
export const AppsCreateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
310
|
-
identifier: "AppsCreateResponse",
|
|
311
|
-
});
|
|
312
|
-
export const AppsDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
-
app_name: S.String.pipe(T.Label()),
|
|
314
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
315
|
-
identifier: "AppsDeleteRequest",
|
|
316
|
-
});
|
|
317
|
-
export const AppsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
318
|
-
identifier: "AppsDeleteResponse",
|
|
319
|
-
});
|
|
320
|
-
export const AppsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
-
org_slug: S.String.pipe(T.Query()),
|
|
322
|
-
app_role: S.optional(S.String.pipe(T.Query())),
|
|
323
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps", code: 200 }))).annotate({
|
|
324
|
-
identifier: "AppsListRequest",
|
|
325
|
-
});
|
|
326
|
-
export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
internal_numeric_id: S.optional(S.Number),
|
|
328
|
-
name: S.optional(S.String),
|
|
329
|
-
slug: S.optional(S.String),
|
|
330
|
-
})).annotate({
|
|
331
|
-
identifier: "AppOrganizationInfo",
|
|
332
|
-
});
|
|
333
|
-
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
-
id: S.optional(S.String),
|
|
335
|
-
internal_numeric_id: S.optional(S.Number),
|
|
336
|
-
machine_count: S.optional(S.Number),
|
|
337
|
-
name: S.optional(S.String),
|
|
338
|
-
network: S.optional(S.String),
|
|
339
|
-
organization: S.optional(AppOrganizationInfo),
|
|
340
|
-
status: S.optional(S.String),
|
|
341
|
-
volume_count: S.optional(S.Number),
|
|
342
|
-
})).annotate({ identifier: "App" });
|
|
343
|
-
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
344
|
-
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
345
|
-
apps: S.optional(ListAppsResponseAppsList),
|
|
346
|
-
total_apps: S.optional(S.Number),
|
|
347
|
-
})).annotate({
|
|
348
|
-
identifier: "ListAppsResponse",
|
|
349
|
-
});
|
|
350
|
-
export const AppsShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
-
app_name: S.String.pipe(T.Label()),
|
|
352
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
353
|
-
identifier: "AppsShowRequest",
|
|
354
|
-
});
|
|
355
|
-
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
356
|
-
app_name: S.String.pipe(T.Label()),
|
|
357
|
-
volume_id: S.String.pipe(T.Label()),
|
|
358
|
-
}).pipe(T.Http({
|
|
359
|
-
method: "POST",
|
|
360
|
-
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
361
|
-
code: 200,
|
|
362
|
-
}))).annotate({
|
|
363
|
-
identifier: "CreateVolumeSnapshotRequest",
|
|
364
|
-
});
|
|
365
|
-
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
366
|
-
identifier: "CreateVolumeSnapshotResponse",
|
|
367
|
-
});
|
|
368
|
-
export const CurrentTokenShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/tokens/current", code: 200 }))).annotate({
|
|
369
|
-
identifier: "CurrentTokenShowRequest",
|
|
370
|
-
});
|
|
371
|
-
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
372
|
-
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
-
apps: S.optional(MainTokenInfoAppsList),
|
|
374
|
-
org_slug: S.optional(S.String),
|
|
375
|
-
organization: S.optional(S.String),
|
|
376
|
-
restricted_to_machine: S.optional(S.String),
|
|
377
|
-
source_machine_id: S.optional(S.String),
|
|
378
|
-
token_id: S.optional(S.String),
|
|
379
|
-
user: S.optional(S.String),
|
|
380
|
-
})).annotate({ identifier: "MainTokenInfo" });
|
|
381
|
-
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
382
|
-
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
-
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
384
|
-
})).annotate({
|
|
385
|
-
identifier: "CurrentTokenResponse",
|
|
386
|
-
});
|
|
387
|
-
export const MachinesCordonRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
-
app_name: S.String.pipe(T.Label()),
|
|
389
|
-
machine_id: S.String.pipe(T.Label()),
|
|
390
|
-
}).pipe(T.Http({
|
|
391
|
-
method: "POST",
|
|
392
|
-
uri: "/apps/{app_name}/machines/{machine_id}/cordon",
|
|
393
|
-
code: 200,
|
|
394
|
-
}))).annotate({
|
|
395
|
-
identifier: "MachinesCordonRequest",
|
|
396
|
-
});
|
|
397
|
-
export const MachinesCordonResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
398
|
-
identifier: "MachinesCordonResponse",
|
|
399
|
-
});
|
|
400
|
-
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
-
size_mb: S.optional(S.Number),
|
|
402
|
-
})).annotate({
|
|
403
|
-
identifier: "FlyMachineCacheDrive",
|
|
404
|
-
});
|
|
405
|
-
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
406
|
-
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
-
name: S.optional(S.String),
|
|
408
|
-
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
409
|
-
})).annotate({
|
|
410
|
-
identifier: "FlyMachineHTTPHeader",
|
|
290
|
+
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
291
|
+
})).annotate({
|
|
292
|
+
identifier: "FlyMachineHTTPHeader",
|
|
411
293
|
});
|
|
412
294
|
export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
413
295
|
export const FlyMachineCheckKind = /*@__PURE__*/ S.String;
|
|
@@ -761,7 +643,7 @@ export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
761
643
|
})).annotate({
|
|
762
644
|
identifier: "FlyMachineConfig",
|
|
763
645
|
});
|
|
764
|
-
export const
|
|
646
|
+
export const CreateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
647
|
app_name: S.String.pipe(T.Label()),
|
|
766
648
|
config: S.optional(FlyMachineConfig),
|
|
767
649
|
lease_ttl: S.optional(S.Number),
|
|
@@ -772,7 +654,7 @@ export const MachinesCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
772
654
|
skip_secrets: S.optional(S.Boolean),
|
|
773
655
|
skip_service_registration: S.optional(S.Boolean),
|
|
774
656
|
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
775
|
-
identifier: "
|
|
657
|
+
identifier: "CreateMachineRequest",
|
|
776
658
|
});
|
|
777
659
|
export const CheckStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
778
660
|
name: S.optional(S.String),
|
|
@@ -816,7 +698,7 @@ export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
816
698
|
state: S.optional(S.String),
|
|
817
699
|
updated_at: S.optional(S.String),
|
|
818
700
|
})).annotate({ identifier: "Machine" });
|
|
819
|
-
export const
|
|
701
|
+
export const CreateMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
702
|
app_name: S.String.pipe(T.Label()),
|
|
821
703
|
machine_id: S.String.pipe(T.Label()),
|
|
822
704
|
description: S.optional(S.String),
|
|
@@ -826,7 +708,7 @@ export const MachinesCreateLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
826
708
|
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
827
709
|
code: 200,
|
|
828
710
|
}))).annotate({
|
|
829
|
-
identifier: "
|
|
711
|
+
identifier: "CreateMachineLeaseRequest",
|
|
830
712
|
});
|
|
831
713
|
export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
714
|
description: S.optional(S.String),
|
|
@@ -835,465 +717,445 @@ export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
835
717
|
owner: S.optional(S.String),
|
|
836
718
|
version: S.optional(S.String),
|
|
837
719
|
})).annotate({ identifier: "Lease" });
|
|
838
|
-
export const
|
|
720
|
+
export const CreateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
839
721
|
app_name: S.String.pipe(T.Label()),
|
|
840
|
-
|
|
841
|
-
|
|
722
|
+
secret_name: S.String.pipe(T.Label()),
|
|
723
|
+
value: S.optional(S.String),
|
|
842
724
|
}).pipe(T.Http({
|
|
843
|
-
method: "
|
|
844
|
-
uri: "/apps/{app_name}/
|
|
725
|
+
method: "POST",
|
|
726
|
+
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
845
727
|
code: 200,
|
|
846
728
|
}))).annotate({
|
|
847
|
-
identifier: "
|
|
729
|
+
identifier: "CreateSecretRequest",
|
|
848
730
|
});
|
|
849
|
-
export const
|
|
850
|
-
|
|
731
|
+
export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
732
|
+
Version: S.optional(S.Number),
|
|
733
|
+
created_at: S.optional(S.String),
|
|
734
|
+
digest: S.optional(S.String),
|
|
735
|
+
name: S.optional(S.String),
|
|
736
|
+
updated_at: S.optional(S.String),
|
|
737
|
+
value: S.optional(S.String),
|
|
738
|
+
version: S.optional(S.Number),
|
|
739
|
+
})).annotate({
|
|
740
|
+
identifier: "SetAppSecretResponse",
|
|
851
741
|
});
|
|
852
|
-
export const
|
|
742
|
+
export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
853
743
|
app_name: S.String.pipe(T.Label()),
|
|
854
|
-
|
|
855
|
-
|
|
744
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
745
|
+
compute: S.optional(FlyMachineGuest),
|
|
746
|
+
compute_image: S.optional(S.String),
|
|
747
|
+
encrypted: S.optional(S.Boolean),
|
|
748
|
+
fstype: S.optional(S.String),
|
|
749
|
+
name: S.optional(S.String),
|
|
750
|
+
region: S.optional(S.String),
|
|
751
|
+
require_unique_zone: S.optional(S.Boolean),
|
|
752
|
+
size_gb: S.optional(S.Number),
|
|
753
|
+
snapshot_id: S.optional(S.String),
|
|
754
|
+
snapshot_retention: S.optional(S.Number),
|
|
755
|
+
source_volume_id: S.optional(S.String),
|
|
756
|
+
unique_zone_app_wide: S.optional(S.Boolean),
|
|
757
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
758
|
+
identifier: "CreateVolumeRequest",
|
|
759
|
+
});
|
|
760
|
+
export const VolumeHostStatus = /*@__PURE__*/ S.String;
|
|
761
|
+
export const VolumeType = /*@__PURE__*/ S.String;
|
|
762
|
+
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
763
|
+
attached_alloc_id: S.optional(S.String),
|
|
764
|
+
attached_machine_id: S.optional(S.String),
|
|
765
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
766
|
+
block_size: S.optional(S.Number),
|
|
767
|
+
blocks: S.optional(S.Number),
|
|
768
|
+
blocks_avail: S.optional(S.Number),
|
|
769
|
+
blocks_free: S.optional(S.Number),
|
|
770
|
+
bytes_total: S.optional(S.Number),
|
|
771
|
+
bytes_used: S.optional(S.Number),
|
|
772
|
+
created_at: S.optional(S.String),
|
|
773
|
+
encrypted: S.optional(S.Boolean),
|
|
774
|
+
fstype: S.optional(S.String),
|
|
775
|
+
host_status: S.optional(VolumeHostStatus),
|
|
776
|
+
id: S.optional(S.String),
|
|
777
|
+
name: S.optional(S.String),
|
|
778
|
+
region: S.optional(S.String),
|
|
779
|
+
size_gb: S.optional(S.Number),
|
|
780
|
+
snapshot_retention: S.optional(S.Number),
|
|
781
|
+
state: S.optional(S.String),
|
|
782
|
+
type: S.optional(VolumeType),
|
|
783
|
+
zone: S.optional(S.String),
|
|
784
|
+
})).annotate({ identifier: "Volume" });
|
|
785
|
+
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
786
|
+
app_name: S.String.pipe(T.Label()),
|
|
787
|
+
volume_id: S.String.pipe(T.Label()),
|
|
856
788
|
}).pipe(T.Http({
|
|
857
|
-
method: "
|
|
858
|
-
uri: "/apps/{app_name}/
|
|
789
|
+
method: "POST",
|
|
790
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
859
791
|
code: 200,
|
|
860
792
|
}))).annotate({
|
|
861
|
-
identifier: "
|
|
793
|
+
identifier: "CreateVolumeSnapshotRequest",
|
|
862
794
|
});
|
|
863
|
-
export const
|
|
864
|
-
identifier: "
|
|
795
|
+
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
796
|
+
identifier: "CreateVolumeSnapshotResponse",
|
|
865
797
|
});
|
|
866
|
-
export const
|
|
867
|
-
export const MachinesExecRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
798
|
+
export const DecryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
868
799
|
app_name: S.String.pipe(T.Label()),
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
stdin: S.optional(S.String),
|
|
874
|
-
timeout: S.optional(S.Number),
|
|
800
|
+
secret_name: S.String.pipe(T.Label()),
|
|
801
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
802
|
+
associated_data: S.optional(S.String),
|
|
803
|
+
ciphertext: S.optional(S.String),
|
|
875
804
|
}).pipe(T.Http({
|
|
876
805
|
method: "POST",
|
|
877
|
-
uri: "/apps/{app_name}/
|
|
806
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/decrypt",
|
|
878
807
|
code: 200,
|
|
879
808
|
}))).annotate({
|
|
880
|
-
identifier: "
|
|
809
|
+
identifier: "DecryptSecretKeyRequest",
|
|
881
810
|
});
|
|
882
|
-
export const
|
|
883
|
-
|
|
884
|
-
exit_signal: S.optional(S.Number),
|
|
885
|
-
stderr: S.optional(S.String),
|
|
886
|
-
stdout: S.optional(S.String),
|
|
811
|
+
export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
812
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
887
813
|
})).annotate({
|
|
888
|
-
identifier: "
|
|
814
|
+
identifier: "DecryptSecretkeyResponse",
|
|
889
815
|
});
|
|
890
|
-
export const
|
|
816
|
+
export const DeleteAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
891
817
|
app_name: S.String.pipe(T.Label()),
|
|
892
|
-
|
|
818
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
819
|
+
identifier: "DeleteAppRequest",
|
|
820
|
+
});
|
|
821
|
+
export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
822
|
+
identifier: "DeleteAppResponse",
|
|
823
|
+
});
|
|
824
|
+
export const DeleteAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
825
|
+
app_name: S.String.pipe(T.Label()),
|
|
826
|
+
hostname: S.String.pipe(T.Label()),
|
|
893
827
|
}).pipe(T.Http({
|
|
894
|
-
method: "
|
|
895
|
-
uri: "/apps/{app_name}/
|
|
828
|
+
method: "DELETE",
|
|
829
|
+
uri: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
896
830
|
code: 200,
|
|
897
831
|
}))).annotate({
|
|
898
|
-
identifier: "
|
|
899
|
-
});
|
|
900
|
-
export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
901
|
-
available_mb: S.optional(S.Number),
|
|
902
|
-
limit_mb: S.optional(S.Number),
|
|
903
|
-
})).annotate({
|
|
904
|
-
identifier: "MainMemoryResponse",
|
|
832
|
+
identifier: "DeleteAppAcmeCertificateRequest",
|
|
905
833
|
});
|
|
906
|
-
export const
|
|
834
|
+
export const DeleteAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
907
835
|
app_name: S.String.pipe(T.Label()),
|
|
908
|
-
|
|
909
|
-
key: S.String.pipe(T.Label()),
|
|
836
|
+
hostname: S.String.pipe(T.Label()),
|
|
910
837
|
}).pipe(T.Http({
|
|
911
|
-
method: "
|
|
912
|
-
uri: "/apps/{app_name}/
|
|
838
|
+
method: "DELETE",
|
|
839
|
+
uri: "/apps/{app_name}/certificates/{hostname}",
|
|
913
840
|
code: 200,
|
|
914
841
|
}))).annotate({
|
|
915
|
-
identifier: "
|
|
842
|
+
identifier: "DeleteAppCertificateRequest",
|
|
916
843
|
});
|
|
917
|
-
export const
|
|
918
|
-
|
|
919
|
-
})).annotate({
|
|
920
|
-
identifier: "MetadataValueResponse",
|
|
844
|
+
export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
845
|
+
identifier: "DeleteAppCertificateResponse",
|
|
921
846
|
});
|
|
922
|
-
export const
|
|
847
|
+
export const DeleteAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
923
848
|
app_name: S.String.pipe(T.Label()),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
849
|
+
hostname: S.String.pipe(T.Label()),
|
|
850
|
+
}).pipe(T.Http({
|
|
851
|
+
method: "DELETE",
|
|
852
|
+
uri: "/apps/{app_name}/certificates/{hostname}/custom",
|
|
853
|
+
code: 200,
|
|
854
|
+
}))).annotate({
|
|
855
|
+
identifier: "DeleteAppCustomCertificateRequest",
|
|
930
856
|
});
|
|
931
|
-
export const
|
|
932
|
-
|
|
933
|
-
|
|
857
|
+
export const DestroyCustomCertificateResponseCertificatesList =
|
|
858
|
+
/*@__PURE__*/ S.Array(CertificateEntry);
|
|
859
|
+
export const DestroyCustomCertificateResponseValidationErrorsList =
|
|
860
|
+
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
861
|
+
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
862
|
+
acme_requested: S.optional(S.Boolean),
|
|
863
|
+
certificates: S.optional(DestroyCustomCertificateResponseCertificatesList),
|
|
864
|
+
configured: S.optional(S.Boolean),
|
|
865
|
+
dns_provider: S.optional(S.String),
|
|
866
|
+
dns_requirements: S.optional(DNSRequirements),
|
|
867
|
+
hostname: S.optional(S.String),
|
|
868
|
+
rate_limited_until: S.optional(S.String),
|
|
869
|
+
status: S.optional(S.String),
|
|
870
|
+
validation: S.optional(CertificateValidation),
|
|
871
|
+
validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
|
|
872
|
+
warning: S.optional(S.String),
|
|
873
|
+
})).annotate({
|
|
874
|
+
identifier: "DestroyCustomCertificateResponse",
|
|
934
875
|
});
|
|
935
|
-
export const
|
|
876
|
+
export const DeleteAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
936
877
|
app_name: S.String.pipe(T.Label()),
|
|
937
|
-
|
|
938
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
878
|
+
ip: S.String.pipe(T.Label()),
|
|
939
879
|
}).pipe(T.Http({
|
|
940
|
-
method: "
|
|
941
|
-
uri: "/apps/{app_name}/
|
|
880
|
+
method: "DELETE",
|
|
881
|
+
uri: "/apps/{app_name}/ip_assignments/{ip}",
|
|
942
882
|
code: 200,
|
|
943
883
|
}))).annotate({
|
|
944
|
-
identifier: "
|
|
884
|
+
identifier: "DeleteAppIPAssignmentRequest",
|
|
945
885
|
});
|
|
946
|
-
export const
|
|
947
|
-
|
|
948
|
-
identifier: "MachinesListEventsResponse",
|
|
886
|
+
export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
887
|
+
identifier: "DeleteAppIPAssignmentResponse",
|
|
949
888
|
});
|
|
950
|
-
export const
|
|
889
|
+
export const DeleteMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
951
890
|
app_name: S.String.pipe(T.Label()),
|
|
952
891
|
machine_id: S.String.pipe(T.Label()),
|
|
953
|
-
|
|
954
|
-
order: S.optional(S.String.pipe(T.Query())),
|
|
892
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
955
893
|
}).pipe(T.Http({
|
|
956
|
-
method: "
|
|
957
|
-
uri: "/apps/{app_name}/machines/{machine_id}
|
|
894
|
+
method: "DELETE",
|
|
895
|
+
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
958
896
|
code: 200,
|
|
959
897
|
}))).annotate({
|
|
960
|
-
identifier: "
|
|
898
|
+
identifier: "DeleteMachineRequest",
|
|
961
899
|
});
|
|
962
|
-
export const
|
|
963
|
-
|
|
964
|
-
proto: S.optional(S.String),
|
|
965
|
-
})).annotate({ identifier: "ListenSocket" });
|
|
966
|
-
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
967
|
-
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
968
|
-
command: S.optional(S.String),
|
|
969
|
-
cpu: S.optional(S.Number),
|
|
970
|
-
directory: S.optional(S.String),
|
|
971
|
-
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
972
|
-
pid: S.optional(S.Number),
|
|
973
|
-
rss: S.optional(S.Number),
|
|
974
|
-
rtime: S.optional(S.Number),
|
|
975
|
-
stime: S.optional(S.Number),
|
|
976
|
-
})).annotate({ identifier: "ProcessStat" });
|
|
977
|
-
export const MachinesListProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
978
|
-
export const MachinesListProcessesResponse = /*@__PURE__*/ S.suspend(() => MachinesListProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
979
|
-
identifier: "MachinesListProcessesResponse",
|
|
900
|
+
export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
901
|
+
identifier: "DeleteMachineResponse",
|
|
980
902
|
});
|
|
981
|
-
export const
|
|
903
|
+
export const DeleteMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
904
|
app_name: S.String.pipe(T.Label()),
|
|
983
905
|
machine_id: S.String.pipe(T.Label()),
|
|
906
|
+
key: S.String.pipe(T.Label()),
|
|
984
907
|
}).pipe(T.Http({
|
|
985
|
-
method: "
|
|
986
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
908
|
+
method: "DELETE",
|
|
909
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
987
910
|
code: 200,
|
|
988
911
|
}))).annotate({
|
|
989
|
-
identifier: "
|
|
990
|
-
});
|
|
991
|
-
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
992
|
-
user_config: S.optional(FlyMachineConfig),
|
|
993
|
-
version: S.optional(S.String),
|
|
994
|
-
})).annotate({ identifier: "MachineVersion" });
|
|
995
|
-
export const MachinesListVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
996
|
-
export const MachinesListVersionsResponse = /*@__PURE__*/ S.suspend(() => MachinesListVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
997
|
-
identifier: "MachinesListVersionsResponse",
|
|
998
|
-
});
|
|
999
|
-
export const MachinesOrgListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1000
|
-
org_slug: S.String.pipe(T.Label()),
|
|
1001
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1002
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1003
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1004
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1005
|
-
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1006
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1007
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1008
|
-
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/machines", code: 200 }))).annotate({
|
|
1009
|
-
identifier: "MachinesOrgListRequest",
|
|
1010
|
-
});
|
|
1011
|
-
export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1012
|
-
export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1013
|
-
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1014
|
-
guest: S.optional(FlyMachineGuest),
|
|
1015
|
-
image: S.optional(S.String),
|
|
1016
|
-
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1017
|
-
})).annotate({
|
|
1018
|
-
identifier: "MachineOverviewConfig",
|
|
912
|
+
identifier: "DeleteMachineMetadataRequest",
|
|
1019
913
|
});
|
|
1020
|
-
export const
|
|
1021
|
-
|
|
1022
|
-
config: S.optional(MachineOverviewConfig),
|
|
1023
|
-
created_at: S.optional(S.String),
|
|
1024
|
-
id: S.optional(S.String),
|
|
1025
|
-
name: S.optional(S.String),
|
|
1026
|
-
private_ip: S.optional(S.String),
|
|
1027
|
-
region: S.optional(S.String),
|
|
1028
|
-
state: S.optional(S.String),
|
|
1029
|
-
updated_at: S.optional(S.String),
|
|
1030
|
-
version: S.optional(S.String),
|
|
1031
|
-
})).annotate({ identifier: "OrgMachine" });
|
|
1032
|
-
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1033
|
-
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1034
|
-
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1035
|
-
last_machine_id: S.optional(S.String),
|
|
1036
|
-
last_updated_at: S.optional(S.String),
|
|
1037
|
-
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1038
|
-
next_cursor: S.optional(S.String),
|
|
1039
|
-
})).annotate({
|
|
1040
|
-
identifier: "OrgMachinesResponse",
|
|
914
|
+
export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
915
|
+
identifier: "DeleteMachineMetadataResponse",
|
|
1041
916
|
});
|
|
1042
|
-
export const
|
|
917
|
+
export const DeleteSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1043
918
|
app_name: S.String.pipe(T.Label()),
|
|
1044
|
-
|
|
1045
|
-
amount_mb: S.optional(S.Number),
|
|
919
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1046
920
|
}).pipe(T.Http({
|
|
1047
|
-
method: "
|
|
1048
|
-
uri: "/apps/{app_name}/
|
|
921
|
+
method: "DELETE",
|
|
922
|
+
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1049
923
|
code: 200,
|
|
1050
924
|
}))).annotate({
|
|
1051
|
-
identifier: "
|
|
925
|
+
identifier: "DeleteSecretRequest",
|
|
1052
926
|
});
|
|
1053
|
-
export const
|
|
1054
|
-
|
|
927
|
+
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
928
|
+
Version: S.optional(S.Number),
|
|
929
|
+
version: S.optional(S.Number),
|
|
1055
930
|
})).annotate({
|
|
1056
|
-
identifier: "
|
|
931
|
+
identifier: "DeleteAppSecretResponse",
|
|
1057
932
|
});
|
|
1058
|
-
export const
|
|
933
|
+
export const DeleteSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1059
934
|
app_name: S.String.pipe(T.Label()),
|
|
1060
|
-
|
|
935
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1061
936
|
}).pipe(T.Http({
|
|
1062
937
|
method: "DELETE",
|
|
1063
|
-
uri: "/apps/{app_name}/
|
|
1064
|
-
code: 200,
|
|
1065
|
-
}))).annotate({
|
|
1066
|
-
identifier: "MachinesReleaseLeaseRequest",
|
|
1067
|
-
});
|
|
1068
|
-
export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1069
|
-
identifier: "MachinesReleaseLeaseResponse",
|
|
1070
|
-
});
|
|
1071
|
-
export const MachinesRestartRequestSignal = /*@__PURE__*/ S.String;
|
|
1072
|
-
export const MachinesRestartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1073
|
-
app_name: S.String.pipe(T.Label()),
|
|
1074
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1075
|
-
timeout: S.optional(S.String.pipe(T.Query())),
|
|
1076
|
-
signal: S.optional(MachinesRestartRequestSignal.pipe(T.Query())),
|
|
1077
|
-
}).pipe(T.Http({
|
|
1078
|
-
method: "POST",
|
|
1079
|
-
uri: "/apps/{app_name}/machines/{machine_id}/restart",
|
|
1080
|
-
code: 200,
|
|
1081
|
-
}))).annotate({
|
|
1082
|
-
identifier: "MachinesRestartRequest",
|
|
1083
|
-
});
|
|
1084
|
-
export const MachinesRestartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1085
|
-
identifier: "MachinesRestartResponse",
|
|
1086
|
-
});
|
|
1087
|
-
export const MachinesSetMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1088
|
-
app_name: S.String.pipe(T.Label()),
|
|
1089
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1090
|
-
limit_mb: S.optional(S.Number),
|
|
1091
|
-
}).pipe(T.Http({
|
|
1092
|
-
method: "PUT",
|
|
1093
|
-
uri: "/apps/{app_name}/machines/{machine_id}/memory",
|
|
938
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1094
939
|
code: 200,
|
|
1095
940
|
}))).annotate({
|
|
1096
|
-
identifier: "
|
|
941
|
+
identifier: "DeleteSecretKeyRequest",
|
|
1097
942
|
});
|
|
1098
|
-
export const
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}).
|
|
1102
|
-
|
|
1103
|
-
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
1104
|
-
code: 200,
|
|
1105
|
-
}))).annotate({
|
|
1106
|
-
identifier: "MachinesShowRequest",
|
|
943
|
+
export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
944
|
+
Version: S.optional(S.Number),
|
|
945
|
+
version: S.optional(S.Number),
|
|
946
|
+
})).annotate({
|
|
947
|
+
identifier: "DeleteSecretkeyResponse",
|
|
1107
948
|
});
|
|
1108
|
-
export const
|
|
949
|
+
export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1109
950
|
app_name: S.String.pipe(T.Label()),
|
|
1110
|
-
|
|
951
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1111
952
|
}).pipe(T.Http({
|
|
1112
|
-
method: "
|
|
1113
|
-
uri: "/apps/{app_name}/
|
|
953
|
+
method: "DELETE",
|
|
954
|
+
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1114
955
|
code: 200,
|
|
1115
956
|
}))).annotate({
|
|
1116
|
-
identifier: "
|
|
957
|
+
identifier: "DeleteVolumeRequest",
|
|
1117
958
|
});
|
|
1118
|
-
export const
|
|
959
|
+
export const EncryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1119
960
|
app_name: S.String.pipe(T.Label()),
|
|
1120
|
-
|
|
961
|
+
secret_name: S.String.pipe(T.Label()),
|
|
962
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
963
|
+
associated_data: S.optional(S.String),
|
|
964
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1121
965
|
}).pipe(T.Http({
|
|
1122
|
-
method: "
|
|
1123
|
-
uri: "/apps/{app_name}/
|
|
966
|
+
method: "POST",
|
|
967
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/encrypt",
|
|
1124
968
|
code: 200,
|
|
1125
969
|
}))).annotate({
|
|
1126
|
-
identifier: "
|
|
970
|
+
identifier: "EncryptSecretKeyRequest",
|
|
1127
971
|
});
|
|
1128
|
-
export const
|
|
1129
|
-
|
|
1130
|
-
|
|
972
|
+
export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
973
|
+
ciphertext: S.optional(S.String),
|
|
974
|
+
})).annotate({
|
|
975
|
+
identifier: "EncryptSecretkeyResponse",
|
|
1131
976
|
});
|
|
1132
|
-
export const
|
|
1133
|
-
export const
|
|
977
|
+
export const ExecMachineRequestCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
978
|
+
export const ExecMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1134
979
|
app_name: S.String.pipe(T.Label()),
|
|
1135
980
|
machine_id: S.String.pipe(T.Label()),
|
|
1136
|
-
|
|
981
|
+
cmd: S.optional(S.String),
|
|
982
|
+
command: S.optional(ExecMachineRequestCommandList),
|
|
983
|
+
container: S.optional(S.String),
|
|
984
|
+
stdin: S.optional(S.String),
|
|
985
|
+
timeout: S.optional(S.Number),
|
|
1137
986
|
}).pipe(T.Http({
|
|
1138
987
|
method: "POST",
|
|
1139
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
988
|
+
uri: "/apps/{app_name}/machines/{machine_id}/exec",
|
|
1140
989
|
code: 200,
|
|
1141
990
|
}))).annotate({
|
|
1142
|
-
identifier: "
|
|
991
|
+
identifier: "ExecMachineRequest",
|
|
1143
992
|
});
|
|
1144
|
-
export const
|
|
1145
|
-
|
|
993
|
+
export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
994
|
+
exit_code: S.optional(S.Number),
|
|
995
|
+
exit_signal: S.optional(S.Number),
|
|
996
|
+
stderr: S.optional(S.String),
|
|
997
|
+
stdout: S.optional(S.String),
|
|
998
|
+
})).annotate({
|
|
999
|
+
identifier: "Flydv1ExecResponse",
|
|
1146
1000
|
});
|
|
1147
|
-
export const
|
|
1001
|
+
export const ExtendVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1148
1002
|
app_name: S.String.pipe(T.Label()),
|
|
1149
|
-
|
|
1003
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1004
|
+
size_gb: S.optional(S.Number),
|
|
1150
1005
|
}).pipe(T.Http({
|
|
1151
|
-
method: "
|
|
1152
|
-
uri: "/apps/{app_name}/
|
|
1006
|
+
method: "PUT",
|
|
1007
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/extend",
|
|
1153
1008
|
code: 200,
|
|
1154
1009
|
}))).annotate({
|
|
1155
|
-
identifier: "
|
|
1010
|
+
identifier: "ExtendVolumeRequest",
|
|
1156
1011
|
});
|
|
1157
|
-
export const
|
|
1158
|
-
|
|
1012
|
+
export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1013
|
+
needs_restart: S.optional(S.Boolean),
|
|
1014
|
+
volume: S.optional(Volume),
|
|
1015
|
+
})).annotate({
|
|
1016
|
+
identifier: "ExtendVolumeResponse",
|
|
1159
1017
|
});
|
|
1160
|
-
export const
|
|
1161
|
-
export const
|
|
1018
|
+
export const GenerateSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1019
|
+
export const GenerateSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1162
1020
|
app_name: S.String.pipe(T.Label()),
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1021
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1022
|
+
type: S.optional(S.String),
|
|
1023
|
+
value: S.optional(GenerateSecretKeyRequestValueList),
|
|
1166
1024
|
}).pipe(T.Http({
|
|
1167
1025
|
method: "POST",
|
|
1168
|
-
uri: "/apps/{app_name}/
|
|
1026
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/generate",
|
|
1169
1027
|
code: 200,
|
|
1170
1028
|
}))).annotate({
|
|
1171
|
-
identifier: "
|
|
1029
|
+
identifier: "GenerateSecretKeyRequest",
|
|
1172
1030
|
});
|
|
1173
|
-
export const
|
|
1174
|
-
|
|
1031
|
+
export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
+
Version: S.optional(S.Number),
|
|
1033
|
+
created_at: S.optional(S.String),
|
|
1034
|
+
name: S.optional(S.String),
|
|
1035
|
+
public_key: S.optional(S.String),
|
|
1036
|
+
type: S.optional(S.String),
|
|
1037
|
+
updated_at: S.optional(S.String),
|
|
1038
|
+
version: S.optional(S.Number),
|
|
1039
|
+
})).annotate({
|
|
1040
|
+
identifier: "SetSecretkeyResponse",
|
|
1175
1041
|
});
|
|
1176
|
-
export const
|
|
1042
|
+
export const GetAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1177
1043
|
app_name: S.String.pipe(T.Label()),
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
}))
|
|
1184
|
-
identifier: "
|
|
1185
|
-
});
|
|
1186
|
-
export const MachinesSuspendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1187
|
-
identifier: "MachinesSuspendResponse",
|
|
1044
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}", code: 200 }))).annotate({ identifier: "GetAppRequest" });
|
|
1045
|
+
export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1046
|
+
internal_numeric_id: S.optional(S.Number),
|
|
1047
|
+
name: S.optional(S.String),
|
|
1048
|
+
slug: S.optional(S.String),
|
|
1049
|
+
})).annotate({
|
|
1050
|
+
identifier: "AppOrganizationInfo",
|
|
1188
1051
|
});
|
|
1189
|
-
export const
|
|
1052
|
+
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1053
|
+
id: S.optional(S.String),
|
|
1054
|
+
internal_numeric_id: S.optional(S.Number),
|
|
1055
|
+
machine_count: S.optional(S.Number),
|
|
1056
|
+
name: S.optional(S.String),
|
|
1057
|
+
network: S.optional(S.String),
|
|
1058
|
+
organization: S.optional(AppOrganizationInfo),
|
|
1059
|
+
status: S.optional(S.String),
|
|
1060
|
+
volume_count: S.optional(S.Number),
|
|
1061
|
+
})).annotate({ identifier: "App" });
|
|
1062
|
+
export const GetAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1190
1063
|
app_name: S.String.pipe(T.Label()),
|
|
1191
|
-
|
|
1064
|
+
hostname: S.String.pipe(T.Label()),
|
|
1192
1065
|
}).pipe(T.Http({
|
|
1193
|
-
method: "
|
|
1194
|
-
uri: "/apps/{app_name}/
|
|
1066
|
+
method: "GET",
|
|
1067
|
+
uri: "/apps/{app_name}/certificates/{hostname}",
|
|
1195
1068
|
code: 200,
|
|
1196
1069
|
}))).annotate({
|
|
1197
|
-
identifier: "
|
|
1070
|
+
identifier: "GetAppCertificateRequest",
|
|
1071
|
+
});
|
|
1072
|
+
export const GetCurrentTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/tokens/current", code: 200 }))).annotate({
|
|
1073
|
+
identifier: "GetCurrentTokenRequest",
|
|
1198
1074
|
});
|
|
1199
|
-
export const
|
|
1200
|
-
|
|
1075
|
+
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
1076
|
+
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1077
|
+
apps: S.optional(MainTokenInfoAppsList),
|
|
1078
|
+
org_slug: S.optional(S.String),
|
|
1079
|
+
organization: S.optional(S.String),
|
|
1080
|
+
restricted_to_machine: S.optional(S.String),
|
|
1081
|
+
source_machine_id: S.optional(S.String),
|
|
1082
|
+
token_id: S.optional(S.String),
|
|
1083
|
+
user: S.optional(S.String),
|
|
1084
|
+
})).annotate({ identifier: "MainTokenInfo" });
|
|
1085
|
+
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
1086
|
+
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1087
|
+
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
1088
|
+
})).annotate({
|
|
1089
|
+
identifier: "CurrentTokenResponse",
|
|
1201
1090
|
});
|
|
1202
|
-
export const
|
|
1091
|
+
export const GetMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1203
1092
|
app_name: S.String.pipe(T.Label()),
|
|
1204
1093
|
machine_id: S.String.pipe(T.Label()),
|
|
1205
|
-
config: S.optional(FlyMachineConfig),
|
|
1206
|
-
current_version: S.optional(S.String),
|
|
1207
|
-
lease_ttl: S.optional(S.Number),
|
|
1208
|
-
min_secrets_version: S.optional(S.Number),
|
|
1209
|
-
name: S.optional(S.String),
|
|
1210
|
-
region: S.optional(S.String),
|
|
1211
|
-
skip_launch: S.optional(S.Boolean),
|
|
1212
|
-
skip_secrets: S.optional(S.Boolean),
|
|
1213
|
-
skip_service_registration: S.optional(S.Boolean),
|
|
1214
1094
|
}).pipe(T.Http({
|
|
1215
|
-
method: "
|
|
1095
|
+
method: "GET",
|
|
1216
1096
|
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
1217
1097
|
code: 200,
|
|
1218
1098
|
}))).annotate({
|
|
1219
|
-
identifier: "
|
|
1099
|
+
identifier: "GetMachineRequest",
|
|
1220
1100
|
});
|
|
1221
|
-
export const
|
|
1222
|
-
export const MachinesUpdateMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1101
|
+
export const GetMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1223
1102
|
app_name: S.String.pipe(T.Label()),
|
|
1224
1103
|
machine_id: S.String.pipe(T.Label()),
|
|
1225
|
-
machine_version: S.optional(S.String),
|
|
1226
|
-
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap),
|
|
1227
|
-
updated_at: S.optional(S.String),
|
|
1228
1104
|
}).pipe(T.Http({
|
|
1229
|
-
method: "
|
|
1230
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1105
|
+
method: "GET",
|
|
1106
|
+
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
1231
1107
|
code: 200,
|
|
1232
1108
|
}))).annotate({
|
|
1233
|
-
identifier: "
|
|
1109
|
+
identifier: "GetMachineLeaseRequest",
|
|
1234
1110
|
});
|
|
1235
|
-
export const
|
|
1236
|
-
identifier: "MachinesUpdateMetadataResponse",
|
|
1237
|
-
});
|
|
1238
|
-
export const MachinesUpdateMetadataRequestMetadataMap2 = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1239
|
-
export const MachinesUpdateMetadataRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1111
|
+
export const GetMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1240
1112
|
app_name: S.String.pipe(T.Label()),
|
|
1241
1113
|
machine_id: S.String.pipe(T.Label()),
|
|
1242
|
-
machine_version: S.optional(S.String),
|
|
1243
|
-
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap2),
|
|
1244
|
-
updated_at: S.optional(S.String),
|
|
1245
1114
|
}).pipe(T.Http({
|
|
1246
|
-
method: "
|
|
1247
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1115
|
+
method: "GET",
|
|
1116
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory",
|
|
1248
1117
|
code: 200,
|
|
1249
1118
|
}))).annotate({
|
|
1250
|
-
identifier: "
|
|
1119
|
+
identifier: "GetMachineMemoryRequest",
|
|
1251
1120
|
});
|
|
1252
|
-
export const
|
|
1253
|
-
|
|
1121
|
+
export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1122
|
+
available_mb: S.optional(S.Number),
|
|
1123
|
+
limit_mb: S.optional(S.Number),
|
|
1124
|
+
})).annotate({
|
|
1125
|
+
identifier: "MainMemoryResponse",
|
|
1254
1126
|
});
|
|
1255
|
-
export const
|
|
1127
|
+
export const GetMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1256
1128
|
app_name: S.String.pipe(T.Label()),
|
|
1257
1129
|
machine_id: S.String.pipe(T.Label()),
|
|
1258
|
-
key: S.String.pipe(T.Label()),
|
|
1259
|
-
updated_at: S.optional(S.String),
|
|
1260
|
-
value: S.optional(S.String),
|
|
1261
1130
|
}).pipe(T.Http({
|
|
1262
|
-
method: "
|
|
1263
|
-
uri: "/apps/{app_name}/machines/{machine_id}/metadata
|
|
1131
|
+
method: "GET",
|
|
1132
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1264
1133
|
code: 200,
|
|
1265
1134
|
}))).annotate({
|
|
1266
|
-
identifier: "
|
|
1135
|
+
identifier: "GetMachineMetadataRequest",
|
|
1267
1136
|
});
|
|
1268
|
-
export const
|
|
1269
|
-
|
|
1137
|
+
export const GetMachineMetadataResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1138
|
+
export const GetMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => GetMachineMetadataResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
|
|
1139
|
+
identifier: "GetMachineMetadataResponse",
|
|
1270
1140
|
});
|
|
1271
|
-
export const
|
|
1272
|
-
export const MachinesWaitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1141
|
+
export const GetMachineMetadataKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1273
1142
|
app_name: S.String.pipe(T.Label()),
|
|
1274
1143
|
machine_id: S.String.pipe(T.Label()),
|
|
1275
|
-
|
|
1276
|
-
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
1277
|
-
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
1278
|
-
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
1279
|
-
state: S.optional(MachinesWaitRequestState.pipe(T.Query())),
|
|
1144
|
+
key: S.String.pipe(T.Label()),
|
|
1280
1145
|
}).pipe(T.Http({
|
|
1281
1146
|
method: "GET",
|
|
1282
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1147
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1283
1148
|
code: 200,
|
|
1284
1149
|
}))).annotate({
|
|
1285
|
-
identifier: "
|
|
1150
|
+
identifier: "GetMachineMetadataKeyRequest",
|
|
1286
1151
|
});
|
|
1287
|
-
export const
|
|
1288
|
-
|
|
1289
|
-
ok: S.optional(S.Boolean),
|
|
1290
|
-
state: S.optional(S.String),
|
|
1291
|
-
version: S.optional(S.String),
|
|
1152
|
+
export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1153
|
+
value: S.optional(S.String),
|
|
1292
1154
|
})).annotate({
|
|
1293
|
-
identifier: "
|
|
1155
|
+
identifier: "MetadataValueResponse",
|
|
1294
1156
|
});
|
|
1295
1157
|
export const PlacementWeights = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1296
|
-
export const
|
|
1158
|
+
export const GetPlacementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1297
1159
|
compute: S.optional(FlyMachineGuest),
|
|
1298
1160
|
count: S.optional(S.Number),
|
|
1299
1161
|
org_slug: S.String,
|
|
@@ -1302,7 +1164,7 @@ export const PlatformPlacementsPostRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1302
1164
|
volume_size_bytes: S.optional(S.Number),
|
|
1303
1165
|
weights: S.optional(PlacementWeights),
|
|
1304
1166
|
}).pipe(T.Http({ method: "POST", uri: "/platform/placements", code: 200 }))).annotate({
|
|
1305
|
-
identifier: "
|
|
1167
|
+
identifier: "GetPlacementsRequest",
|
|
1306
1168
|
});
|
|
1307
1169
|
export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1308
1170
|
concurrency: S.optional(S.Number),
|
|
@@ -1317,8 +1179,8 @@ export const MainGetPlacementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
1317
1179
|
})).annotate({
|
|
1318
1180
|
identifier: "MainGetPlacementsResponse",
|
|
1319
1181
|
});
|
|
1320
|
-
export const
|
|
1321
|
-
identifier: "
|
|
1182
|
+
export const GetRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/platform/regions", code: 200 }))).annotate({
|
|
1183
|
+
identifier: "GetRegionsRequest",
|
|
1322
1184
|
});
|
|
1323
1185
|
export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1324
1186
|
code: S.optional(S.String),
|
|
@@ -1337,644 +1199,745 @@ export const MainRegionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1337
1199
|
})).annotate({
|
|
1338
1200
|
identifier: "MainRegionResponse",
|
|
1339
1201
|
});
|
|
1340
|
-
export const
|
|
1202
|
+
export const GetSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1341
1203
|
app_name: S.String.pipe(T.Label()),
|
|
1342
1204
|
secret_name: S.String.pipe(T.Label()),
|
|
1343
|
-
|
|
1205
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1206
|
+
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1344
1207
|
}).pipe(T.Http({
|
|
1345
|
-
method: "
|
|
1208
|
+
method: "GET",
|
|
1346
1209
|
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1347
1210
|
code: 200,
|
|
1348
1211
|
}))).annotate({
|
|
1349
|
-
identifier: "
|
|
1212
|
+
identifier: "GetSecretRequest",
|
|
1350
1213
|
});
|
|
1351
|
-
export const
|
|
1352
|
-
Version: S.optional(S.Number),
|
|
1214
|
+
export const AppSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1353
1215
|
created_at: S.optional(S.String),
|
|
1354
1216
|
digest: S.optional(S.String),
|
|
1355
1217
|
name: S.optional(S.String),
|
|
1356
1218
|
updated_at: S.optional(S.String),
|
|
1357
1219
|
value: S.optional(S.String),
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
identifier: "SetAppSecretResponse",
|
|
1361
|
-
});
|
|
1362
|
-
export const SecretDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1220
|
+
})).annotate({ identifier: "AppSecret" });
|
|
1221
|
+
export const GetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1363
1222
|
app_name: S.String.pipe(T.Label()),
|
|
1364
1223
|
secret_name: S.String.pipe(T.Label()),
|
|
1224
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1365
1225
|
}).pipe(T.Http({
|
|
1366
|
-
method: "
|
|
1367
|
-
uri: "/apps/{app_name}/
|
|
1226
|
+
method: "GET",
|
|
1227
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1368
1228
|
code: 200,
|
|
1369
1229
|
}))).annotate({
|
|
1370
|
-
identifier: "
|
|
1371
|
-
});
|
|
1372
|
-
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
-
Version: S.optional(S.Number),
|
|
1374
|
-
version: S.optional(S.Number),
|
|
1375
|
-
})).annotate({
|
|
1376
|
-
identifier: "DeleteAppSecretResponse",
|
|
1230
|
+
identifier: "GetSecretKeyRequest",
|
|
1377
1231
|
});
|
|
1378
|
-
export const
|
|
1232
|
+
export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1233
|
+
created_at: S.optional(S.String),
|
|
1234
|
+
name: S.optional(S.String),
|
|
1235
|
+
public_key: S.optional(S.String),
|
|
1236
|
+
type: S.optional(S.String),
|
|
1237
|
+
updated_at: S.optional(S.String),
|
|
1238
|
+
})).annotate({ identifier: "SecretKey" });
|
|
1239
|
+
export const GetVolumeByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1379
1240
|
app_name: S.String.pipe(T.Label()),
|
|
1380
|
-
|
|
1381
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1382
|
-
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1241
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1383
1242
|
}).pipe(T.Http({
|
|
1384
1243
|
method: "GET",
|
|
1385
|
-
uri: "/apps/{app_name}/
|
|
1244
|
+
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1386
1245
|
code: 200,
|
|
1387
1246
|
}))).annotate({
|
|
1388
|
-
identifier: "
|
|
1247
|
+
identifier: "GetVolumeByIdRequest",
|
|
1389
1248
|
});
|
|
1390
|
-
export const
|
|
1249
|
+
export const ListAppCertificatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1250
|
+
app_name: S.String.pipe(T.Label()),
|
|
1251
|
+
filter: S.optional(S.String.pipe(T.Query())),
|
|
1252
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1253
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1254
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/certificates", code: 200 }))).annotate({
|
|
1255
|
+
identifier: "ListAppCertificatesRequest",
|
|
1256
|
+
});
|
|
1257
|
+
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1258
|
+
acme_alpn_configured: S.optional(S.Boolean),
|
|
1259
|
+
acme_dns_configured: S.optional(S.Boolean),
|
|
1260
|
+
acme_http_configured: S.optional(S.Boolean),
|
|
1261
|
+
acme_requested: S.optional(S.Boolean),
|
|
1262
|
+
configured: S.optional(S.Boolean),
|
|
1391
1263
|
created_at: S.optional(S.String),
|
|
1392
|
-
|
|
1393
|
-
|
|
1264
|
+
dns_provider: S.optional(S.String),
|
|
1265
|
+
has_custom_certificate: S.optional(S.Boolean),
|
|
1266
|
+
has_fly_certificate: S.optional(S.Boolean),
|
|
1267
|
+
hostname: S.optional(S.String),
|
|
1268
|
+
ownership_txt_configured: S.optional(S.Boolean),
|
|
1269
|
+
status: S.optional(S.String),
|
|
1394
1270
|
updated_at: S.optional(S.String),
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
export const
|
|
1399
|
-
export const
|
|
1271
|
+
})).annotate({
|
|
1272
|
+
identifier: "CertificateSummary",
|
|
1273
|
+
});
|
|
1274
|
+
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
1275
|
+
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1276
|
+
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
1277
|
+
next_cursor: S.optional(S.String),
|
|
1278
|
+
total_count: S.optional(S.Number),
|
|
1279
|
+
})).annotate({
|
|
1280
|
+
identifier: "ListCertificatesResponse",
|
|
1281
|
+
});
|
|
1282
|
+
export const ListAppIPAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1400
1283
|
app_name: S.String.pipe(T.Label()),
|
|
1401
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1402
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1403
|
-
associated_data: S.optional(SecretkeyDecryptRequestAssociatedDataList),
|
|
1404
|
-
ciphertext: S.optional(SecretkeyDecryptRequestCiphertextList),
|
|
1405
1284
|
}).pipe(T.Http({
|
|
1406
|
-
method: "
|
|
1407
|
-
uri: "/apps/{app_name}/
|
|
1285
|
+
method: "GET",
|
|
1286
|
+
uri: "/apps/{app_name}/ip_assignments",
|
|
1408
1287
|
code: 200,
|
|
1409
1288
|
}))).annotate({
|
|
1410
|
-
identifier: "
|
|
1289
|
+
identifier: "ListAppIPAssignmentsRequest",
|
|
1411
1290
|
});
|
|
1412
|
-
export const
|
|
1413
|
-
export const
|
|
1414
|
-
|
|
1291
|
+
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
1292
|
+
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1293
|
+
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
1415
1294
|
})).annotate({
|
|
1416
|
-
identifier: "
|
|
1295
|
+
identifier: "ListIPAssignmentsResponse",
|
|
1417
1296
|
});
|
|
1418
|
-
export const
|
|
1297
|
+
export const ListAppsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1298
|
+
org_slug: S.String.pipe(T.Query()),
|
|
1299
|
+
app_role: S.optional(S.String.pipe(T.Query())),
|
|
1300
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps", code: 200 }))).annotate({
|
|
1301
|
+
identifier: "ListAppsRequest",
|
|
1302
|
+
});
|
|
1303
|
+
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
1304
|
+
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1305
|
+
apps: S.optional(ListAppsResponseAppsList),
|
|
1306
|
+
total_apps: S.optional(S.Number),
|
|
1307
|
+
})).annotate({
|
|
1308
|
+
identifier: "ListAppsResponse",
|
|
1309
|
+
});
|
|
1310
|
+
export const ListMachineEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1419
1311
|
app_name: S.String.pipe(T.Label()),
|
|
1420
|
-
|
|
1312
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1313
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1421
1314
|
}).pipe(T.Http({
|
|
1422
|
-
method: "
|
|
1423
|
-
uri: "/apps/{app_name}/
|
|
1315
|
+
method: "GET",
|
|
1316
|
+
uri: "/apps/{app_name}/machines/{machine_id}/events",
|
|
1424
1317
|
code: 200,
|
|
1425
1318
|
}))).annotate({
|
|
1426
|
-
identifier: "
|
|
1319
|
+
identifier: "ListMachineEventsRequest",
|
|
1427
1320
|
});
|
|
1428
|
-
export const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
})).annotate({
|
|
1432
|
-
identifier: "DeleteSecretkeyResponse",
|
|
1321
|
+
export const ListMachineEventsResponseBodyList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
1322
|
+
export const ListMachineEventsResponse = /*@__PURE__*/ S.suspend(() => ListMachineEventsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1323
|
+
identifier: "ListMachineEventsResponse",
|
|
1433
1324
|
});
|
|
1434
|
-
export const
|
|
1435
|
-
export const SecretkeyEncryptRequestPlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1436
|
-
export const SecretkeyEncryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1325
|
+
export const ListMachineProcessesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1437
1326
|
app_name: S.String.pipe(T.Label()),
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
plaintext: S.optional(SecretkeyEncryptRequestPlaintextList),
|
|
1327
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1328
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1329
|
+
order: S.optional(S.String.pipe(T.Query())),
|
|
1442
1330
|
}).pipe(T.Http({
|
|
1443
|
-
method: "
|
|
1444
|
-
uri: "/apps/{app_name}/
|
|
1331
|
+
method: "GET",
|
|
1332
|
+
uri: "/apps/{app_name}/machines/{machine_id}/ps",
|
|
1445
1333
|
code: 200,
|
|
1446
1334
|
}))).annotate({
|
|
1447
|
-
identifier: "
|
|
1335
|
+
identifier: "ListMachineProcessesRequest",
|
|
1448
1336
|
});
|
|
1449
|
-
export const
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
})).annotate({
|
|
1453
|
-
|
|
1337
|
+
export const ListenSocket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1338
|
+
address: S.optional(S.String),
|
|
1339
|
+
proto: S.optional(S.String),
|
|
1340
|
+
})).annotate({ identifier: "ListenSocket" });
|
|
1341
|
+
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
1342
|
+
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1343
|
+
command: S.optional(S.String),
|
|
1344
|
+
cpu: S.optional(S.Number),
|
|
1345
|
+
directory: S.optional(S.String),
|
|
1346
|
+
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
1347
|
+
pid: S.optional(S.Number),
|
|
1348
|
+
rss: S.optional(S.Number),
|
|
1349
|
+
rtime: S.optional(S.Number),
|
|
1350
|
+
stime: S.optional(S.Number),
|
|
1351
|
+
})).annotate({ identifier: "ProcessStat" });
|
|
1352
|
+
export const ListMachineProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
1353
|
+
export const ListMachineProcessesResponse = /*@__PURE__*/ S.suspend(() => ListMachineProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1354
|
+
identifier: "ListMachineProcessesResponse",
|
|
1454
1355
|
});
|
|
1455
|
-
export const
|
|
1456
|
-
export const SecretkeyGenerateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1356
|
+
export const ListMachinesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1457
1357
|
app_name: S.String.pipe(T.Label()),
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1358
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1359
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1360
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1361
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1362
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
1363
|
+
identifier: "ListMachinesRequest",
|
|
1364
|
+
});
|
|
1365
|
+
export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(Machine);
|
|
1366
|
+
export const ListMachinesResponse = /*@__PURE__*/ S.suspend(() => ListMachinesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1367
|
+
identifier: "ListMachinesResponse",
|
|
1368
|
+
});
|
|
1369
|
+
export const ListMachineVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1370
|
+
app_name: S.String.pipe(T.Label()),
|
|
1371
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1461
1372
|
}).pipe(T.Http({
|
|
1462
|
-
method: "
|
|
1463
|
-
uri: "/apps/{app_name}/
|
|
1373
|
+
method: "GET",
|
|
1374
|
+
uri: "/apps/{app_name}/machines/{machine_id}/versions",
|
|
1464
1375
|
code: 200,
|
|
1465
1376
|
}))).annotate({
|
|
1466
|
-
identifier: "
|
|
1377
|
+
identifier: "ListMachineVersionsRequest",
|
|
1467
1378
|
});
|
|
1468
|
-
export const
|
|
1469
|
-
|
|
1470
|
-
|
|
1379
|
+
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1380
|
+
user_config: S.optional(FlyMachineConfig),
|
|
1381
|
+
version: S.optional(S.String),
|
|
1382
|
+
})).annotate({ identifier: "MachineVersion" });
|
|
1383
|
+
export const ListMachineVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
1384
|
+
export const ListMachineVersionsResponse = /*@__PURE__*/ S.suspend(() => ListMachineVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1385
|
+
identifier: "ListMachineVersionsResponse",
|
|
1386
|
+
});
|
|
1387
|
+
export const ListOrgMachinesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1388
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1389
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1390
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1391
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1392
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1393
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1394
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1395
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1396
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/machines", code: 200 }))).annotate({
|
|
1397
|
+
identifier: "ListOrgMachinesRequest",
|
|
1398
|
+
});
|
|
1399
|
+
export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1400
|
+
export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1401
|
+
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1402
|
+
guest: S.optional(FlyMachineGuest),
|
|
1403
|
+
image: S.optional(S.String),
|
|
1404
|
+
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1405
|
+
})).annotate({
|
|
1406
|
+
identifier: "MachineOverviewConfig",
|
|
1407
|
+
});
|
|
1408
|
+
export const OrgMachine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1409
|
+
app_name: S.optional(S.String),
|
|
1410
|
+
config: S.optional(MachineOverviewConfig),
|
|
1471
1411
|
created_at: S.optional(S.String),
|
|
1412
|
+
id: S.optional(S.String),
|
|
1472
1413
|
name: S.optional(S.String),
|
|
1473
|
-
|
|
1474
|
-
|
|
1414
|
+
private_ip: S.optional(S.String),
|
|
1415
|
+
region: S.optional(S.String),
|
|
1416
|
+
state: S.optional(S.String),
|
|
1475
1417
|
updated_at: S.optional(S.String),
|
|
1476
|
-
version: S.optional(S.
|
|
1418
|
+
version: S.optional(S.String),
|
|
1419
|
+
})).annotate({ identifier: "OrgMachine" });
|
|
1420
|
+
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1421
|
+
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1422
|
+
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1423
|
+
last_machine_id: S.optional(S.String),
|
|
1424
|
+
last_updated_at: S.optional(S.String),
|
|
1425
|
+
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1426
|
+
next_cursor: S.optional(S.String),
|
|
1477
1427
|
})).annotate({
|
|
1478
|
-
identifier: "
|
|
1428
|
+
identifier: "OrgMachinesResponse",
|
|
1429
|
+
});
|
|
1430
|
+
export const ListOrgVolumesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1431
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1432
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1433
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1434
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1435
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1436
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1437
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1438
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1439
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/volumes", code: 200 }))).annotate({
|
|
1440
|
+
identifier: "ListOrgVolumesRequest",
|
|
1441
|
+
});
|
|
1442
|
+
export const OrgVolumeHostStatus = /*@__PURE__*/ S.String;
|
|
1443
|
+
export const OrgVolumeType = /*@__PURE__*/ S.String;
|
|
1444
|
+
export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
|
+
app_name: S.optional(S.String),
|
|
1446
|
+
attached_alloc_id: S.optional(S.String),
|
|
1447
|
+
attached_machine_id: S.optional(S.String),
|
|
1448
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1449
|
+
block_size: S.optional(S.Number),
|
|
1450
|
+
blocks: S.optional(S.Number),
|
|
1451
|
+
blocks_avail: S.optional(S.Number),
|
|
1452
|
+
blocks_free: S.optional(S.Number),
|
|
1453
|
+
bytes_total: S.optional(S.Number),
|
|
1454
|
+
bytes_used: S.optional(S.Number),
|
|
1455
|
+
created_at: S.optional(S.String),
|
|
1456
|
+
encrypted: S.optional(S.Boolean),
|
|
1457
|
+
fstype: S.optional(S.String),
|
|
1458
|
+
host_status: S.optional(OrgVolumeHostStatus),
|
|
1459
|
+
id: S.optional(S.String),
|
|
1460
|
+
name: S.optional(S.String),
|
|
1461
|
+
region: S.optional(S.String),
|
|
1462
|
+
size_gb: S.optional(S.Number),
|
|
1463
|
+
snapshot_retention: S.optional(S.Number),
|
|
1464
|
+
state: S.optional(S.String),
|
|
1465
|
+
type: S.optional(OrgVolumeType),
|
|
1466
|
+
updated_at: S.optional(S.String),
|
|
1467
|
+
zone: S.optional(S.String),
|
|
1468
|
+
})).annotate({ identifier: "OrgVolume" });
|
|
1469
|
+
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1470
|
+
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1471
|
+
last_updated_at: S.optional(S.String),
|
|
1472
|
+
last_volume_id: S.optional(S.String),
|
|
1473
|
+
next_cursor: S.optional(S.String),
|
|
1474
|
+
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1475
|
+
})).annotate({
|
|
1476
|
+
identifier: "OrgVolumesResponse",
|
|
1479
1477
|
});
|
|
1480
|
-
export const
|
|
1478
|
+
export const ListSecretKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1479
|
+
app_name: S.String.pipe(T.Label()),
|
|
1480
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1481
|
+
types: S.optional(S.String.pipe(T.Query())),
|
|
1482
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secretkeys", code: 200 }))).annotate({
|
|
1483
|
+
identifier: "ListSecretKeysRequest",
|
|
1484
|
+
});
|
|
1485
|
+
export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(SecretKey);
|
|
1486
|
+
export const SecretKeys = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1487
|
+
secret_keys: S.optional(SecretKeysSecretKeysList),
|
|
1488
|
+
})).annotate({ identifier: "SecretKeys" });
|
|
1489
|
+
export const ListSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1481
1490
|
app_name: S.String.pipe(T.Label()),
|
|
1482
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1483
1491
|
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1492
|
+
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1493
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1494
|
+
identifier: "ListSecretsRequest",
|
|
1495
|
+
});
|
|
1496
|
+
export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1497
|
+
export const AppSecrets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1498
|
+
secrets: S.optional(AppSecretsSecretsList),
|
|
1499
|
+
})).annotate({ identifier: "AppSecrets" });
|
|
1500
|
+
export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
|
+
app_name: S.String.pipe(T.Label()),
|
|
1502
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1503
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
1504
|
+
identifier: "ListVolumesRequest",
|
|
1505
|
+
});
|
|
1506
|
+
export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(Volume);
|
|
1507
|
+
export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() => ListVolumesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1508
|
+
identifier: "ListVolumesResponse",
|
|
1509
|
+
});
|
|
1510
|
+
export const ListVolumeSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1511
|
+
app_name: S.String.pipe(T.Label()),
|
|
1512
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1484
1513
|
}).pipe(T.Http({
|
|
1485
1514
|
method: "GET",
|
|
1486
|
-
uri: "/apps/{app_name}/
|
|
1515
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
1487
1516
|
code: 200,
|
|
1488
1517
|
}))).annotate({
|
|
1489
|
-
identifier: "
|
|
1518
|
+
identifier: "ListVolumeSnapshotsRequest",
|
|
1490
1519
|
});
|
|
1491
|
-
export const
|
|
1492
|
-
export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1520
|
+
export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1493
1521
|
created_at: S.optional(S.String),
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1522
|
+
digest: S.optional(S.String),
|
|
1523
|
+
id: S.optional(S.String),
|
|
1524
|
+
retention_days: S.optional(S.Number),
|
|
1525
|
+
size: S.optional(S.Number),
|
|
1526
|
+
status: S.optional(S.String),
|
|
1527
|
+
volume_size: S.optional(S.Number),
|
|
1528
|
+
})).annotate({ identifier: "VolumeSnapshot" });
|
|
1529
|
+
export const ListVolumeSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
|
|
1530
|
+
export const ListVolumeSnapshotsResponse = /*@__PURE__*/ S.suspend(() => ListVolumeSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1531
|
+
identifier: "ListVolumeSnapshotsResponse",
|
|
1532
|
+
});
|
|
1533
|
+
export const PatchMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1534
|
+
export const PatchMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
1535
|
app_name: S.String.pipe(T.Label()),
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1536
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1537
|
+
machine_version: S.optional(S.String),
|
|
1538
|
+
metadata: S.optional(PatchMachineMetadataRequestMetadataMap),
|
|
1539
|
+
updated_at: S.optional(S.String),
|
|
1505
1540
|
}).pipe(T.Http({
|
|
1506
|
-
method: "
|
|
1507
|
-
uri: "/apps/{app_name}/
|
|
1541
|
+
method: "PATCH",
|
|
1542
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1508
1543
|
code: 200,
|
|
1509
1544
|
}))).annotate({
|
|
1510
|
-
identifier: "
|
|
1545
|
+
identifier: "PatchMachineMetadataRequest",
|
|
1546
|
+
});
|
|
1547
|
+
export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1548
|
+
identifier: "PatchMachineMetadataResponse",
|
|
1511
1549
|
});
|
|
1512
|
-
export const
|
|
1513
|
-
export const SecretkeySignRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1550
|
+
export const ReclaimMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
1551
|
app_name: S.String.pipe(T.Label()),
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
plaintext: S.optional(SecretkeySignRequestPlaintextList),
|
|
1552
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1553
|
+
amount_mb: S.optional(S.Number),
|
|
1518
1554
|
}).pipe(T.Http({
|
|
1519
1555
|
method: "POST",
|
|
1520
|
-
uri: "/apps/{app_name}/
|
|
1556
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory/reclaim",
|
|
1521
1557
|
code: 200,
|
|
1522
1558
|
}))).annotate({
|
|
1523
|
-
identifier: "
|
|
1559
|
+
identifier: "ReclaimMachineMemoryRequest",
|
|
1524
1560
|
});
|
|
1525
|
-
export const
|
|
1526
|
-
|
|
1527
|
-
signature: S.optional(SignSecretkeyResponseSignatureList),
|
|
1561
|
+
export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1562
|
+
actual_mb: S.optional(S.Number),
|
|
1528
1563
|
})).annotate({
|
|
1529
|
-
identifier: "
|
|
1564
|
+
identifier: "MainReclaimMemoryResponse",
|
|
1530
1565
|
});
|
|
1531
|
-
export const
|
|
1566
|
+
export const ReleaseMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1532
1567
|
app_name: S.String.pipe(T.Label()),
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1568
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1569
|
+
}).pipe(T.Http({
|
|
1570
|
+
method: "DELETE",
|
|
1571
|
+
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
1572
|
+
code: 200,
|
|
1573
|
+
}))).annotate({
|
|
1574
|
+
identifier: "ReleaseMachineLeaseRequest",
|
|
1537
1575
|
});
|
|
1538
|
-
export const
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
})
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
export const
|
|
1576
|
+
export const ReleaseMachineLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1577
|
+
identifier: "ReleaseMachineLeaseResponse",
|
|
1578
|
+
});
|
|
1579
|
+
export const RequestKmsTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/tokens/kms", code: 200 }))).annotate({
|
|
1580
|
+
identifier: "RequestKmsTokenRequest",
|
|
1581
|
+
});
|
|
1582
|
+
export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1583
|
+
identifier: "RequestKmsTokenResponse",
|
|
1584
|
+
});
|
|
1585
|
+
export const RequestOidcTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1586
|
+
aud: S.optional(S.String),
|
|
1587
|
+
aws_principal_tags: S.optional(S.Boolean),
|
|
1588
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/oidc", code: 200 }))).annotate({
|
|
1589
|
+
identifier: "RequestOidcTokenRequest",
|
|
1590
|
+
});
|
|
1591
|
+
export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1592
|
+
identifier: "RequestOidcTokenResponse",
|
|
1593
|
+
});
|
|
1594
|
+
export const RestartMachineRequestSignal = /*@__PURE__*/ S.String;
|
|
1595
|
+
export const RestartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1545
1596
|
app_name: S.String.pipe(T.Label()),
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
signature: S.optional(SecretkeyVerifyRequestSignatureList),
|
|
1597
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1598
|
+
timeout: S.optional(S.String.pipe(T.Query())),
|
|
1599
|
+
signal: S.optional(RestartMachineRequestSignal.pipe(T.Query())),
|
|
1550
1600
|
}).pipe(T.Http({
|
|
1551
1601
|
method: "POST",
|
|
1552
|
-
uri: "/apps/{app_name}/
|
|
1602
|
+
uri: "/apps/{app_name}/machines/{machine_id}/restart",
|
|
1553
1603
|
code: 200,
|
|
1554
1604
|
}))).annotate({
|
|
1555
|
-
identifier: "
|
|
1605
|
+
identifier: "RestartMachineRequest",
|
|
1556
1606
|
});
|
|
1557
|
-
export const
|
|
1558
|
-
identifier: "
|
|
1607
|
+
export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1608
|
+
identifier: "RestartMachineResponse",
|
|
1559
1609
|
});
|
|
1560
|
-
export const
|
|
1610
|
+
export const SetMachineMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1561
1611
|
app_name: S.String.pipe(T.Label()),
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
}).pipe(T.Http({
|
|
1565
|
-
|
|
1612
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1613
|
+
limit_mb: S.optional(S.Number),
|
|
1614
|
+
}).pipe(T.Http({
|
|
1615
|
+
method: "PUT",
|
|
1616
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory",
|
|
1617
|
+
code: 200,
|
|
1618
|
+
}))).annotate({
|
|
1619
|
+
identifier: "SetMachineMemoryLimitRequest",
|
|
1566
1620
|
});
|
|
1567
|
-
export const
|
|
1568
|
-
export const
|
|
1569
|
-
secrets: S.optional(AppSecretsSecretsList),
|
|
1570
|
-
})).annotate({ identifier: "AppSecrets" });
|
|
1571
|
-
export const SecretsUpdateRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1572
|
-
export const SecretsUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1621
|
+
export const SetSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1622
|
+
export const SetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1573
1623
|
app_name: S.String.pipe(T.Label()),
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
})
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
})).annotate({
|
|
1584
|
-
identifier: "AppSecretsUpdateResp",
|
|
1585
|
-
});
|
|
1586
|
-
export const TokensAuthenticateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1587
|
-
header: S.optional(S.String),
|
|
1588
|
-
}).pipe(T.Http({ method: "POST", uri: "/tokens/authenticate", code: 200 }))).annotate({
|
|
1589
|
-
identifier: "TokensAuthenticateRequest",
|
|
1624
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1625
|
+
type: S.optional(S.String),
|
|
1626
|
+
value: S.optional(SetSecretKeyRequestValueList),
|
|
1627
|
+
}).pipe(T.Http({
|
|
1628
|
+
method: "POST",
|
|
1629
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1630
|
+
code: 200,
|
|
1631
|
+
}))).annotate({
|
|
1632
|
+
identifier: "SetSecretKeyRequest",
|
|
1590
1633
|
});
|
|
1591
|
-
export const
|
|
1592
|
-
export const
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1634
|
+
export const SignalMachineRequestSignal = /*@__PURE__*/ S.String;
|
|
1635
|
+
export const SignalMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1636
|
+
app_name: S.String.pipe(T.Label()),
|
|
1637
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1638
|
+
signal: S.optional(SignalMachineRequestSignal),
|
|
1639
|
+
}).pipe(T.Http({
|
|
1640
|
+
method: "POST",
|
|
1641
|
+
uri: "/apps/{app_name}/machines/{machine_id}/signal",
|
|
1642
|
+
code: 200,
|
|
1643
|
+
}))).annotate({
|
|
1644
|
+
identifier: "SignalMachineRequest",
|
|
1596
1645
|
});
|
|
1597
|
-
export const
|
|
1598
|
-
|
|
1599
|
-
export const MacaroonNonce = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1600
|
-
kid: S.optional(MacaroonNonceKidList),
|
|
1601
|
-
proof: S.optional(S.Boolean),
|
|
1602
|
-
rnd: S.optional(MacaroonNonceRndList),
|
|
1603
|
-
})).annotate({ identifier: "MacaroonNonce" });
|
|
1604
|
-
export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
|
|
1605
|
-
export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1606
|
-
caveats: S.optional(MacaroonCaveatSet),
|
|
1607
|
-
header: S.optional(S.String),
|
|
1608
|
-
nonce: S.optional(MacaroonNonce),
|
|
1609
|
-
permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
|
|
1610
|
-
})).annotate({
|
|
1611
|
-
identifier: "RootVerifiedToken",
|
|
1646
|
+
export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1647
|
+
identifier: "SignalMachineResponse",
|
|
1612
1648
|
});
|
|
1613
|
-
export const
|
|
1614
|
-
|
|
1615
|
-
|
|
1649
|
+
export const SignSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1650
|
+
app_name: S.String.pipe(T.Label()),
|
|
1651
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1652
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1653
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1654
|
+
}).pipe(T.Http({
|
|
1655
|
+
method: "POST",
|
|
1656
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/sign",
|
|
1657
|
+
code: 200,
|
|
1658
|
+
}))).annotate({
|
|
1659
|
+
identifier: "SignSecretKeyRequest",
|
|
1616
1660
|
});
|
|
1617
|
-
export const
|
|
1618
|
-
|
|
1619
|
-
export const MainTokenAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1620
|
-
action: S.optional(RessetAction),
|
|
1621
|
-
app_feature: S.optional(S.String),
|
|
1622
|
-
app_name: S.optional(S.String),
|
|
1623
|
-
command: S.optional(MainTokenAccessCommandList),
|
|
1624
|
-
machine_feature: S.optional(S.String),
|
|
1625
|
-
machine_id: S.optional(S.String),
|
|
1626
|
-
mutation: S.optional(S.String),
|
|
1627
|
-
org_feature: S.optional(S.String),
|
|
1628
|
-
org_slug: S.optional(S.String),
|
|
1629
|
-
source_machine: S.optional(S.String),
|
|
1630
|
-
storage_object: S.optional(S.String),
|
|
1631
|
-
volume_id: S.optional(S.String),
|
|
1661
|
+
export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1662
|
+
signature: S.optional(S.String),
|
|
1632
1663
|
})).annotate({
|
|
1633
|
-
identifier: "
|
|
1664
|
+
identifier: "SignSecretkeyResponse",
|
|
1634
1665
|
});
|
|
1635
|
-
export const
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
}).pipe(T.Http({
|
|
1639
|
-
|
|
1666
|
+
export const StartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1667
|
+
app_name: S.String.pipe(T.Label()),
|
|
1668
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1669
|
+
}).pipe(T.Http({
|
|
1670
|
+
method: "POST",
|
|
1671
|
+
uri: "/apps/{app_name}/machines/{machine_id}/start",
|
|
1672
|
+
code: 200,
|
|
1673
|
+
}))).annotate({
|
|
1674
|
+
identifier: "StartMachineRequest",
|
|
1640
1675
|
});
|
|
1641
|
-
export const
|
|
1642
|
-
|
|
1643
|
-
action: S.optional(RessetAction),
|
|
1644
|
-
app_feature: S.optional(S.String),
|
|
1645
|
-
appid: S.optional(S.Number),
|
|
1646
|
-
cluster: S.optional(S.String),
|
|
1647
|
-
command: S.optional(FlyioAccessCommandList),
|
|
1648
|
-
feature: S.optional(S.String),
|
|
1649
|
-
machine: S.optional(S.String),
|
|
1650
|
-
machine_feature: S.optional(S.String),
|
|
1651
|
-
mutation: S.optional(S.String),
|
|
1652
|
-
orgid: S.optional(S.Number),
|
|
1653
|
-
sourceApp: S.optional(S.String),
|
|
1654
|
-
sourceMachine: S.optional(S.String),
|
|
1655
|
-
sourceOrganization: S.optional(S.String),
|
|
1656
|
-
storage_object: S.optional(S.String),
|
|
1657
|
-
volume: S.optional(S.String),
|
|
1658
|
-
})).annotate({ identifier: "FlyioAccess" });
|
|
1659
|
-
export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1660
|
-
access: S.optional(FlyioAccess),
|
|
1661
|
-
verified_token: S.optional(RootVerifiedToken),
|
|
1662
|
-
})).annotate({
|
|
1663
|
-
identifier: "AuthorizeResponse",
|
|
1676
|
+
export const StartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1677
|
+
identifier: "StartMachineResponse",
|
|
1664
1678
|
});
|
|
1665
|
-
export const
|
|
1666
|
-
|
|
1679
|
+
export const StopMachineRequestSignal = /*@__PURE__*/ S.String;
|
|
1680
|
+
export const StopMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1681
|
+
app_name: S.String.pipe(T.Label()),
|
|
1682
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1683
|
+
signal: S.optional(StopMachineRequestSignal),
|
|
1684
|
+
timeout: S.optional(S.String),
|
|
1685
|
+
}).pipe(T.Http({
|
|
1686
|
+
method: "POST",
|
|
1687
|
+
uri: "/apps/{app_name}/machines/{machine_id}/stop",
|
|
1688
|
+
code: 200,
|
|
1689
|
+
}))).annotate({
|
|
1690
|
+
identifier: "StopMachineRequest",
|
|
1667
1691
|
});
|
|
1668
|
-
export const
|
|
1669
|
-
identifier: "
|
|
1692
|
+
export const StopMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1693
|
+
identifier: "StopMachineResponse",
|
|
1670
1694
|
});
|
|
1671
|
-
export const
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
}).pipe(T.Http({
|
|
1675
|
-
|
|
1695
|
+
export const SuspendMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1696
|
+
app_name: S.String.pipe(T.Label()),
|
|
1697
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1698
|
+
}).pipe(T.Http({
|
|
1699
|
+
method: "POST",
|
|
1700
|
+
uri: "/apps/{app_name}/machines/{machine_id}/suspend",
|
|
1701
|
+
code: 200,
|
|
1702
|
+
}))).annotate({
|
|
1703
|
+
identifier: "SuspendMachineRequest",
|
|
1676
1704
|
});
|
|
1677
|
-
export const
|
|
1678
|
-
identifier: "
|
|
1705
|
+
export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1706
|
+
identifier: "SuspendMachineResponse",
|
|
1679
1707
|
});
|
|
1680
|
-
export const
|
|
1708
|
+
export const UncordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1681
1709
|
app_name: S.String.pipe(T.Label()),
|
|
1682
|
-
|
|
1710
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1683
1711
|
}).pipe(T.Http({
|
|
1684
|
-
method: "
|
|
1685
|
-
uri: "/apps/{app_name}/
|
|
1712
|
+
method: "POST",
|
|
1713
|
+
uri: "/apps/{app_name}/machines/{machine_id}/uncordon",
|
|
1686
1714
|
code: 200,
|
|
1687
1715
|
}))).annotate({
|
|
1688
|
-
identifier: "
|
|
1716
|
+
identifier: "UncordonMachineRequest",
|
|
1689
1717
|
});
|
|
1690
|
-
export const
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
attached_machine_id: S.optional(S.String),
|
|
1695
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
1696
|
-
block_size: S.optional(S.Number),
|
|
1697
|
-
blocks: S.optional(S.Number),
|
|
1698
|
-
blocks_avail: S.optional(S.Number),
|
|
1699
|
-
blocks_free: S.optional(S.Number),
|
|
1700
|
-
bytes_total: S.optional(S.Number),
|
|
1701
|
-
bytes_used: S.optional(S.Number),
|
|
1702
|
-
created_at: S.optional(S.String),
|
|
1703
|
-
encrypted: S.optional(S.Boolean),
|
|
1704
|
-
fstype: S.optional(S.String),
|
|
1705
|
-
host_status: S.optional(VolumeHostStatus),
|
|
1706
|
-
id: S.optional(S.String),
|
|
1707
|
-
name: S.optional(S.String),
|
|
1708
|
-
region: S.optional(S.String),
|
|
1709
|
-
size_gb: S.optional(S.Number),
|
|
1710
|
-
snapshot_retention: S.optional(S.Number),
|
|
1711
|
-
state: S.optional(S.String),
|
|
1712
|
-
type: S.optional(VolumeType),
|
|
1713
|
-
zone: S.optional(S.String),
|
|
1714
|
-
})).annotate({ identifier: "Volume" });
|
|
1715
|
-
export const VolumesCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1718
|
+
export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1719
|
+
identifier: "UncordonMachineResponse",
|
|
1720
|
+
});
|
|
1721
|
+
export const UpdateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1716
1722
|
app_name: S.String.pipe(T.Label()),
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1723
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1724
|
+
config: S.optional(FlyMachineConfig),
|
|
1725
|
+
current_version: S.optional(S.String),
|
|
1726
|
+
lease_ttl: S.optional(S.Number),
|
|
1727
|
+
min_secrets_version: S.optional(S.Number),
|
|
1722
1728
|
name: S.optional(S.String),
|
|
1723
1729
|
region: S.optional(S.String),
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1730
|
+
skip_launch: S.optional(S.Boolean),
|
|
1731
|
+
skip_secrets: S.optional(S.Boolean),
|
|
1732
|
+
skip_service_registration: S.optional(S.Boolean),
|
|
1733
|
+
}).pipe(T.Http({
|
|
1734
|
+
method: "POST",
|
|
1735
|
+
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
1736
|
+
code: 200,
|
|
1737
|
+
}))).annotate({
|
|
1738
|
+
identifier: "UpdateMachineRequest",
|
|
1732
1739
|
});
|
|
1733
|
-
export const
|
|
1740
|
+
export const UpdateMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1741
|
+
export const UpdateMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1734
1742
|
app_name: S.String.pipe(T.Label()),
|
|
1735
|
-
|
|
1736
|
-
|
|
1743
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1744
|
+
machine_version: S.optional(S.String),
|
|
1745
|
+
metadata: S.optional(UpdateMachineMetadataRequestMetadataMap),
|
|
1746
|
+
updated_at: S.optional(S.String),
|
|
1737
1747
|
}).pipe(T.Http({
|
|
1738
1748
|
method: "PUT",
|
|
1739
|
-
uri: "/apps/{app_name}/
|
|
1749
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1740
1750
|
code: 200,
|
|
1741
1751
|
}))).annotate({
|
|
1742
|
-
identifier: "
|
|
1752
|
+
identifier: "UpdateMachineMetadataRequest",
|
|
1743
1753
|
});
|
|
1744
|
-
export const
|
|
1745
|
-
|
|
1746
|
-
|
|
1754
|
+
export const UpdateMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1755
|
+
identifier: "UpdateMachineMetadataResponse",
|
|
1756
|
+
});
|
|
1757
|
+
export const UpdateSecretsRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1758
|
+
export const UpdateSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1759
|
+
app_name: S.String.pipe(T.Label()),
|
|
1760
|
+
values: S.optional(UpdateSecretsRequestValuesMap),
|
|
1761
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1762
|
+
identifier: "UpdateSecretsRequest",
|
|
1763
|
+
});
|
|
1764
|
+
export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1765
|
+
export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1766
|
+
Version: S.optional(S.Number),
|
|
1767
|
+
secrets: S.optional(AppSecretsUpdateRespSecretsList),
|
|
1768
|
+
version: S.optional(S.Number),
|
|
1747
1769
|
})).annotate({
|
|
1748
|
-
identifier: "
|
|
1770
|
+
identifier: "AppSecretsUpdateResp",
|
|
1749
1771
|
});
|
|
1750
|
-
export const
|
|
1772
|
+
export const UpdateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1751
1773
|
app_name: S.String.pipe(T.Label()),
|
|
1752
1774
|
volume_id: S.String.pipe(T.Label()),
|
|
1775
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1776
|
+
snapshot_retention: S.optional(S.Number),
|
|
1753
1777
|
}).pipe(T.Http({
|
|
1754
|
-
method: "
|
|
1778
|
+
method: "PUT",
|
|
1755
1779
|
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1756
1780
|
code: 200,
|
|
1757
1781
|
}))).annotate({
|
|
1758
|
-
identifier: "
|
|
1782
|
+
identifier: "UpdateVolumeRequest",
|
|
1759
1783
|
});
|
|
1760
|
-
export const
|
|
1784
|
+
export const UpsertMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1761
1785
|
app_name: S.String.pipe(T.Label()),
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1786
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1787
|
+
key: S.String.pipe(T.Label()),
|
|
1788
|
+
updated_at: S.optional(S.String),
|
|
1789
|
+
value: S.optional(S.String),
|
|
1790
|
+
}).pipe(T.Http({
|
|
1791
|
+
method: "POST",
|
|
1792
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1793
|
+
code: 200,
|
|
1794
|
+
}))).annotate({
|
|
1795
|
+
identifier: "UpsertMachineMetadataRequest",
|
|
1765
1796
|
});
|
|
1766
|
-
export const
|
|
1767
|
-
|
|
1768
|
-
identifier: "VolumesListResponse",
|
|
1797
|
+
export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1798
|
+
identifier: "UpsertMachineMetadataResponse",
|
|
1769
1799
|
});
|
|
1770
|
-
export const
|
|
1800
|
+
export const VerifySecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1771
1801
|
app_name: S.String.pipe(T.Label()),
|
|
1772
|
-
|
|
1802
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1803
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1804
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1805
|
+
signature: S.optional(S.String),
|
|
1773
1806
|
}).pipe(T.Http({
|
|
1774
|
-
method: "
|
|
1775
|
-
uri: "/apps/{app_name}/
|
|
1807
|
+
method: "POST",
|
|
1808
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
1776
1809
|
code: 200,
|
|
1777
1810
|
}))).annotate({
|
|
1778
|
-
identifier: "
|
|
1779
|
-
});
|
|
1780
|
-
export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1781
|
-
created_at: S.optional(S.String),
|
|
1782
|
-
digest: S.optional(S.String),
|
|
1783
|
-
id: S.optional(S.String),
|
|
1784
|
-
retention_days: S.optional(S.Number),
|
|
1785
|
-
size: S.optional(S.Number),
|
|
1786
|
-
status: S.optional(S.String),
|
|
1787
|
-
volume_size: S.optional(S.Number),
|
|
1788
|
-
})).annotate({ identifier: "VolumeSnapshot" });
|
|
1789
|
-
export const VolumesListSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
|
|
1790
|
-
export const VolumesListSnapshotsResponse = /*@__PURE__*/ S.suspend(() => VolumesListSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1791
|
-
identifier: "VolumesListSnapshotsResponse",
|
|
1792
|
-
});
|
|
1793
|
-
export const VolumesOrgListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1794
|
-
org_slug: S.String.pipe(T.Label()),
|
|
1795
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1796
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1797
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1798
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1799
|
-
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1800
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1801
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1802
|
-
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/volumes", code: 200 }))).annotate({
|
|
1803
|
-
identifier: "VolumesOrgListRequest",
|
|
1811
|
+
identifier: "VerifySecretKeyRequest",
|
|
1804
1812
|
});
|
|
1805
|
-
export const
|
|
1806
|
-
|
|
1807
|
-
export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1808
|
-
app_name: S.optional(S.String),
|
|
1809
|
-
attached_alloc_id: S.optional(S.String),
|
|
1810
|
-
attached_machine_id: S.optional(S.String),
|
|
1811
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
1812
|
-
block_size: S.optional(S.Number),
|
|
1813
|
-
blocks: S.optional(S.Number),
|
|
1814
|
-
blocks_avail: S.optional(S.Number),
|
|
1815
|
-
blocks_free: S.optional(S.Number),
|
|
1816
|
-
bytes_total: S.optional(S.Number),
|
|
1817
|
-
bytes_used: S.optional(S.Number),
|
|
1818
|
-
created_at: S.optional(S.String),
|
|
1819
|
-
encrypted: S.optional(S.Boolean),
|
|
1820
|
-
fstype: S.optional(S.String),
|
|
1821
|
-
host_status: S.optional(OrgVolumeHostStatus),
|
|
1822
|
-
id: S.optional(S.String),
|
|
1823
|
-
name: S.optional(S.String),
|
|
1824
|
-
region: S.optional(S.String),
|
|
1825
|
-
size_gb: S.optional(S.Number),
|
|
1826
|
-
snapshot_retention: S.optional(S.Number),
|
|
1827
|
-
state: S.optional(S.String),
|
|
1828
|
-
type: S.optional(OrgVolumeType),
|
|
1829
|
-
updated_at: S.optional(S.String),
|
|
1830
|
-
zone: S.optional(S.String),
|
|
1831
|
-
})).annotate({ identifier: "OrgVolume" });
|
|
1832
|
-
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1833
|
-
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1834
|
-
last_updated_at: S.optional(S.String),
|
|
1835
|
-
last_volume_id: S.optional(S.String),
|
|
1836
|
-
next_cursor: S.optional(S.String),
|
|
1837
|
-
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1838
|
-
})).annotate({
|
|
1839
|
-
identifier: "OrgVolumesResponse",
|
|
1813
|
+
export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1814
|
+
identifier: "VerifySecretKeyResponse",
|
|
1840
1815
|
});
|
|
1841
|
-
export const
|
|
1816
|
+
export const WaitMachineRequestState = /*@__PURE__*/ S.String;
|
|
1817
|
+
export const WaitMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1842
1818
|
app_name: S.String.pipe(T.Label()),
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1819
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1820
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
1821
|
+
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
1822
|
+
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
1823
|
+
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
1824
|
+
state: S.optional(WaitMachineRequestState.pipe(T.Query())),
|
|
1846
1825
|
}).pipe(T.Http({
|
|
1847
|
-
method: "
|
|
1848
|
-
uri: "/apps/{app_name}/
|
|
1826
|
+
method: "GET",
|
|
1827
|
+
uri: "/apps/{app_name}/machines/{machine_id}/wait",
|
|
1849
1828
|
code: 200,
|
|
1850
1829
|
}))).annotate({
|
|
1851
|
-
identifier: "
|
|
1830
|
+
identifier: "WaitMachineRequest",
|
|
1852
1831
|
});
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1832
|
+
export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1833
|
+
event_id: S.optional(S.String),
|
|
1834
|
+
ok: S.optional(S.Boolean),
|
|
1835
|
+
state: S.optional(S.String),
|
|
1836
|
+
version: S.optional(S.String),
|
|
1837
|
+
})).annotate({
|
|
1838
|
+
identifier: "WaitMachineResponse",
|
|
1839
|
+
});
|
|
1840
|
+
/** Authenticate token header Verify a token header without checking resource access. */
|
|
1841
|
+
export const authenticateToken = /*@__PURE__*/ API.make(() => ({
|
|
1842
|
+
input: AuthenticateTokenRequest,
|
|
1843
|
+
output: AuthenticateTokenResponse,
|
|
1844
|
+
errors: [BadRequest],
|
|
1858
1845
|
protocol: FlyIoProtocol,
|
|
1859
1846
|
retry: Retry.Retry,
|
|
1860
1847
|
}));
|
|
1861
|
-
/**
|
|
1862
|
-
export const
|
|
1863
|
-
input:
|
|
1864
|
-
output:
|
|
1865
|
-
errors: [
|
|
1848
|
+
/** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
|
|
1849
|
+
export const authorizeToken = /*@__PURE__*/ API.make(() => ({
|
|
1850
|
+
input: AuthorizeTokenRequest,
|
|
1851
|
+
output: AuthorizeResponse,
|
|
1852
|
+
errors: [BadRequest],
|
|
1866
1853
|
protocol: FlyIoProtocol,
|
|
1867
1854
|
retry: Retry.Retry,
|
|
1868
1855
|
}));
|
|
1869
1856
|
/** Check DNS and re-validate certificate */
|
|
1870
|
-
export const
|
|
1871
|
-
input:
|
|
1857
|
+
export const checkAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1858
|
+
input: CheckAppCertificateRequest,
|
|
1872
1859
|
output: CertificateCheckResponse,
|
|
1873
1860
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1874
1861
|
protocol: FlyIoProtocol,
|
|
1875
1862
|
retry: Retry.Retry,
|
|
1876
1863
|
}));
|
|
1877
|
-
/**
|
|
1878
|
-
export const
|
|
1879
|
-
input:
|
|
1880
|
-
output:
|
|
1881
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
1882
|
-
protocol: FlyIoProtocol,
|
|
1883
|
-
retry: Retry.Retry,
|
|
1884
|
-
}));
|
|
1885
|
-
/** Remove custom certificate */
|
|
1886
|
-
export const appCertificatesCustomDelete = /*@__PURE__*/ API.make(() => ({
|
|
1887
|
-
input: AppCertificatesCustomDeleteRequest,
|
|
1888
|
-
output: DestroyCustomCertificateResponse,
|
|
1889
|
-
errors: [Forbidden, NotFound],
|
|
1864
|
+
/** Cordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
1865
|
+
export const cordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
1866
|
+
input: CordonMachineRequest,
|
|
1867
|
+
output: CordonMachineResponse,
|
|
1868
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1890
1869
|
protocol: FlyIoProtocol,
|
|
1891
1870
|
retry: Retry.Retry,
|
|
1892
1871
|
}));
|
|
1893
|
-
/**
|
|
1894
|
-
export const
|
|
1895
|
-
input:
|
|
1896
|
-
output:
|
|
1897
|
-
errors: [Forbidden, NotFound],
|
|
1872
|
+
/** Create App Create an app with the specified details in the request body. */
|
|
1873
|
+
export const createApp = /*@__PURE__*/ API.make(() => ({
|
|
1874
|
+
input: CreateAppRequest,
|
|
1875
|
+
output: CreateAppResponse,
|
|
1876
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1898
1877
|
protocol: FlyIoProtocol,
|
|
1899
1878
|
retry: Retry.Retry,
|
|
1900
1879
|
}));
|
|
1901
|
-
/**
|
|
1902
|
-
export const
|
|
1903
|
-
input:
|
|
1904
|
-
output:
|
|
1905
|
-
errors: [Forbidden, NotFound],
|
|
1880
|
+
/** Request ACME certificate */
|
|
1881
|
+
export const createAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1882
|
+
input: CreateAppAcmeCertificateRequest,
|
|
1883
|
+
output: CertificateDetail,
|
|
1884
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1906
1885
|
protocol: FlyIoProtocol,
|
|
1907
1886
|
retry: Retry.Retry,
|
|
1908
1887
|
}));
|
|
1909
|
-
/**
|
|
1910
|
-
export const
|
|
1911
|
-
input:
|
|
1888
|
+
/** Upload custom certificate */
|
|
1889
|
+
export const createAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1890
|
+
input: CreateAppCustomCertificateRequest,
|
|
1912
1891
|
output: CertificateDetail,
|
|
1913
|
-
errors: [Forbidden, NotFound],
|
|
1892
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1914
1893
|
protocol: FlyIoProtocol,
|
|
1915
1894
|
retry: Retry.Retry,
|
|
1916
1895
|
}));
|
|
1917
1896
|
/** Create App deploy token */
|
|
1918
|
-
export const
|
|
1919
|
-
input:
|
|
1920
|
-
output:
|
|
1897
|
+
export const createAppDeployToken = /*@__PURE__*/ API.make(() => ({
|
|
1898
|
+
input: CreateAppDeployTokenRequest,
|
|
1899
|
+
output: CreateAppDeployTokenResponse,
|
|
1921
1900
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1922
1901
|
protocol: FlyIoProtocol,
|
|
1923
1902
|
retry: Retry.Retry,
|
|
1924
1903
|
}));
|
|
1925
1904
|
/** Assign new IP address to app */
|
|
1926
|
-
export const
|
|
1927
|
-
input:
|
|
1905
|
+
export const createAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
1906
|
+
input: CreateAppIPAssignmentRequest,
|
|
1928
1907
|
output: IPAssignment,
|
|
1929
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
1908
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1930
1909
|
protocol: FlyIoProtocol,
|
|
1931
1910
|
retry: Retry.Retry,
|
|
1932
1911
|
}));
|
|
1933
|
-
/**
|
|
1934
|
-
export const
|
|
1935
|
-
input:
|
|
1936
|
-
output:
|
|
1937
|
-
errors: [Forbidden, NotFound],
|
|
1938
|
-
protocol: FlyIoProtocol,
|
|
1939
|
-
retry: Retry.Retry,
|
|
1940
|
-
}));
|
|
1941
|
-
/** List IP assignments for app */
|
|
1942
|
-
export const appIPAssignmentsList = /*@__PURE__*/ API.make(() => ({
|
|
1943
|
-
input: AppIPAssignmentsListRequest,
|
|
1944
|
-
output: ListIPAssignmentsResponse,
|
|
1945
|
-
errors: [Forbidden, NotFound],
|
|
1912
|
+
/** Create Machine Create a Machine within a specific app using the details provided in the request body. **Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration! */
|
|
1913
|
+
export const createMachine = /*@__PURE__*/ API.make(() => ({
|
|
1914
|
+
input: CreateMachineRequest,
|
|
1915
|
+
output: Machine,
|
|
1916
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1946
1917
|
protocol: FlyIoProtocol,
|
|
1947
1918
|
retry: Retry.Retry,
|
|
1948
1919
|
}));
|
|
1949
|
-
/** Create
|
|
1950
|
-
export const
|
|
1951
|
-
input:
|
|
1952
|
-
output:
|
|
1920
|
+
/** Create Lease Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
1921
|
+
export const createMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
1922
|
+
input: CreateMachineLeaseRequest,
|
|
1923
|
+
output: Lease,
|
|
1953
1924
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1954
1925
|
protocol: FlyIoProtocol,
|
|
1955
1926
|
retry: Retry.Retry,
|
|
1956
1927
|
}));
|
|
1957
|
-
/**
|
|
1958
|
-
export const
|
|
1959
|
-
input:
|
|
1960
|
-
output:
|
|
1961
|
-
errors: [Forbidden, NotFound],
|
|
1962
|
-
protocol: FlyIoProtocol,
|
|
1963
|
-
retry: Retry.Retry,
|
|
1964
|
-
}));
|
|
1965
|
-
/** List Apps List all apps with the ability to filter by organization slug. */
|
|
1966
|
-
export const appsList = /*@__PURE__*/ API.make(() => ({
|
|
1967
|
-
input: AppsListRequest,
|
|
1968
|
-
output: ListAppsResponse,
|
|
1969
|
-
errors: [Forbidden],
|
|
1928
|
+
/** Create or update Secret */
|
|
1929
|
+
export const createSecret = /*@__PURE__*/ API.make(() => ({
|
|
1930
|
+
input: CreateSecretRequest,
|
|
1931
|
+
output: SetAppSecretResponse,
|
|
1932
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1970
1933
|
protocol: FlyIoProtocol,
|
|
1971
1934
|
retry: Retry.Retry,
|
|
1972
1935
|
}));
|
|
1973
|
-
/**
|
|
1974
|
-
export const
|
|
1975
|
-
input:
|
|
1976
|
-
output:
|
|
1977
|
-
errors: [Forbidden, NotFound],
|
|
1936
|
+
/** Create Volume Create a volume for a specific app using the details provided in the request body. */
|
|
1937
|
+
export const createVolume = /*@__PURE__*/ API.make(() => ({
|
|
1938
|
+
input: CreateVolumeRequest,
|
|
1939
|
+
output: Volume,
|
|
1940
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1978
1941
|
protocol: FlyIoProtocol,
|
|
1979
1942
|
retry: Retry.Retry,
|
|
1980
1943
|
}));
|
|
@@ -1982,480 +1945,504 @@ export const appsShow = /*@__PURE__*/ API.make(() => ({
|
|
|
1982
1945
|
export const createVolumeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
1983
1946
|
input: CreateVolumeSnapshotRequest,
|
|
1984
1947
|
output: CreateVolumeSnapshotResponse,
|
|
1985
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
1948
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1986
1949
|
protocol: FlyIoProtocol,
|
|
1987
1950
|
retry: Retry.Retry,
|
|
1988
1951
|
}));
|
|
1989
|
-
/**
|
|
1990
|
-
export const
|
|
1991
|
-
input:
|
|
1992
|
-
output:
|
|
1993
|
-
errors: [],
|
|
1952
|
+
/** Decrypt with a secret key */
|
|
1953
|
+
export const decryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
1954
|
+
input: DecryptSecretKeyRequest,
|
|
1955
|
+
output: DecryptSecretkeyResponse,
|
|
1956
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1994
1957
|
protocol: FlyIoProtocol,
|
|
1995
1958
|
retry: Retry.Retry,
|
|
1996
1959
|
}));
|
|
1997
|
-
/**
|
|
1998
|
-
export const
|
|
1999
|
-
input:
|
|
2000
|
-
output:
|
|
2001
|
-
errors: [
|
|
1960
|
+
/** Destroy App Delete an app by its name. */
|
|
1961
|
+
export const deleteApp = /*@__PURE__*/ API.make(() => ({
|
|
1962
|
+
input: DeleteAppRequest,
|
|
1963
|
+
output: DeleteAppResponse,
|
|
1964
|
+
errors: [Forbidden, NotFound],
|
|
2002
1965
|
protocol: FlyIoProtocol,
|
|
2003
1966
|
retry: Retry.Retry,
|
|
2004
1967
|
}));
|
|
2005
|
-
/**
|
|
2006
|
-
export const
|
|
2007
|
-
input:
|
|
2008
|
-
output:
|
|
2009
|
-
errors: [
|
|
1968
|
+
/** Remove ACME certificates */
|
|
1969
|
+
export const deleteAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1970
|
+
input: DeleteAppAcmeCertificateRequest,
|
|
1971
|
+
output: CertificateDetail,
|
|
1972
|
+
errors: [Forbidden, NotFound],
|
|
2010
1973
|
protocol: FlyIoProtocol,
|
|
2011
1974
|
retry: Retry.Retry,
|
|
2012
1975
|
}));
|
|
2013
|
-
/**
|
|
2014
|
-
export const
|
|
2015
|
-
input:
|
|
2016
|
-
output:
|
|
2017
|
-
errors: [
|
|
1976
|
+
/** Remove certificate */
|
|
1977
|
+
export const deleteAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1978
|
+
input: DeleteAppCertificateRequest,
|
|
1979
|
+
output: DeleteAppCertificateResponse,
|
|
1980
|
+
errors: [Forbidden, NotFound],
|
|
2018
1981
|
protocol: FlyIoProtocol,
|
|
2019
1982
|
retry: Retry.Retry,
|
|
2020
1983
|
}));
|
|
2021
|
-
/**
|
|
2022
|
-
export const
|
|
2023
|
-
input:
|
|
2024
|
-
output:
|
|
1984
|
+
/** Remove custom certificate */
|
|
1985
|
+
export const deleteAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1986
|
+
input: DeleteAppCustomCertificateRequest,
|
|
1987
|
+
output: DestroyCustomCertificateResponse,
|
|
2025
1988
|
errors: [Forbidden, NotFound],
|
|
2026
1989
|
protocol: FlyIoProtocol,
|
|
2027
1990
|
retry: Retry.Retry,
|
|
2028
1991
|
}));
|
|
2029
|
-
/**
|
|
2030
|
-
export const
|
|
2031
|
-
input:
|
|
2032
|
-
output:
|
|
1992
|
+
/** Remove IP assignment from app */
|
|
1993
|
+
export const deleteAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
1994
|
+
input: DeleteAppIPAssignmentRequest,
|
|
1995
|
+
output: DeleteAppIPAssignmentResponse,
|
|
2033
1996
|
errors: [Forbidden, NotFound],
|
|
2034
1997
|
protocol: FlyIoProtocol,
|
|
2035
1998
|
retry: Retry.Retry,
|
|
2036
1999
|
}));
|
|
2037
|
-
/**
|
|
2038
|
-
export const
|
|
2039
|
-
input:
|
|
2040
|
-
output:
|
|
2041
|
-
errors: [
|
|
2000
|
+
/** Destroy Machine Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running. */
|
|
2001
|
+
export const deleteMachine = /*@__PURE__*/ API.make(() => ({
|
|
2002
|
+
input: DeleteMachineRequest,
|
|
2003
|
+
output: DeleteMachineResponse,
|
|
2004
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
2042
2005
|
protocol: FlyIoProtocol,
|
|
2043
2006
|
retry: Retry.Retry,
|
|
2044
2007
|
}));
|
|
2045
|
-
/**
|
|
2046
|
-
export const
|
|
2047
|
-
input:
|
|
2048
|
-
output:
|
|
2008
|
+
/** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
|
|
2009
|
+
export const deleteMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2010
|
+
input: DeleteMachineMetadataRequest,
|
|
2011
|
+
output: DeleteMachineMetadataResponse,
|
|
2049
2012
|
errors: [Forbidden, NotFound],
|
|
2050
2013
|
protocol: FlyIoProtocol,
|
|
2051
2014
|
retry: Retry.Retry,
|
|
2052
2015
|
}));
|
|
2053
|
-
/**
|
|
2054
|
-
export const
|
|
2055
|
-
input:
|
|
2056
|
-
output:
|
|
2057
|
-
errors: [NotFound],
|
|
2016
|
+
/** Delete an app secret */
|
|
2017
|
+
export const deleteSecret = /*@__PURE__*/ API.make(() => ({
|
|
2018
|
+
input: DeleteSecretRequest,
|
|
2019
|
+
output: DeleteAppSecretResponse,
|
|
2020
|
+
errors: [Forbidden, NotFound],
|
|
2058
2021
|
protocol: FlyIoProtocol,
|
|
2059
2022
|
retry: Retry.Retry,
|
|
2060
2023
|
}));
|
|
2061
|
-
/**
|
|
2062
|
-
export const
|
|
2063
|
-
input:
|
|
2064
|
-
output:
|
|
2024
|
+
/** Delete an app's secret key */
|
|
2025
|
+
export const deleteSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2026
|
+
input: DeleteSecretKeyRequest,
|
|
2027
|
+
output: DeleteSecretkeyResponse,
|
|
2065
2028
|
errors: [Forbidden, NotFound],
|
|
2066
2029
|
protocol: FlyIoProtocol,
|
|
2067
2030
|
retry: Retry.Retry,
|
|
2068
2031
|
}));
|
|
2069
|
-
/**
|
|
2070
|
-
export const
|
|
2071
|
-
input:
|
|
2072
|
-
output:
|
|
2073
|
-
errors: [Forbidden, NotFound],
|
|
2032
|
+
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2033
|
+
export const deleteVolume = /*@__PURE__*/ API.make(() => ({
|
|
2034
|
+
input: DeleteVolumeRequest,
|
|
2035
|
+
output: Volume,
|
|
2036
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
2074
2037
|
protocol: FlyIoProtocol,
|
|
2075
2038
|
retry: Retry.Retry,
|
|
2076
2039
|
}));
|
|
2077
|
-
/**
|
|
2078
|
-
export const
|
|
2079
|
-
input:
|
|
2080
|
-
output:
|
|
2040
|
+
/** Encrypt with a secret key */
|
|
2041
|
+
export const encryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2042
|
+
input: EncryptSecretKeyRequest,
|
|
2043
|
+
output: EncryptSecretkeyResponse,
|
|
2081
2044
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2082
2045
|
protocol: FlyIoProtocol,
|
|
2083
2046
|
retry: Retry.Retry,
|
|
2084
2047
|
}));
|
|
2085
|
-
/**
|
|
2086
|
-
export const
|
|
2087
|
-
input:
|
|
2088
|
-
output:
|
|
2089
|
-
errors: [Forbidden, NotFound],
|
|
2048
|
+
/** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
|
|
2049
|
+
export const execMachine = /*@__PURE__*/ API.make(() => ({
|
|
2050
|
+
input: ExecMachineRequest,
|
|
2051
|
+
output: Flydv1ExecResponse,
|
|
2052
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2090
2053
|
protocol: FlyIoProtocol,
|
|
2091
2054
|
retry: Retry.Retry,
|
|
2092
2055
|
}));
|
|
2093
|
-
/**
|
|
2094
|
-
export const
|
|
2095
|
-
input:
|
|
2096
|
-
output:
|
|
2097
|
-
errors: [Forbidden, NotFound],
|
|
2056
|
+
/** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
|
|
2057
|
+
export const extendVolume = /*@__PURE__*/ API.make(() => ({
|
|
2058
|
+
input: ExtendVolumeRequest,
|
|
2059
|
+
output: ExtendVolumeResponse,
|
|
2060
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2098
2061
|
protocol: FlyIoProtocol,
|
|
2099
2062
|
retry: Retry.Retry,
|
|
2100
2063
|
}));
|
|
2101
|
-
/**
|
|
2102
|
-
export const
|
|
2103
|
-
input:
|
|
2104
|
-
output:
|
|
2105
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2064
|
+
/** Generate a random secret key */
|
|
2065
|
+
export const generateSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2066
|
+
input: GenerateSecretKeyRequest,
|
|
2067
|
+
output: SetSecretkeyResponse,
|
|
2068
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2106
2069
|
protocol: FlyIoProtocol,
|
|
2107
2070
|
retry: Retry.Retry,
|
|
2108
2071
|
}));
|
|
2109
|
-
/**
|
|
2110
|
-
export const
|
|
2111
|
-
input:
|
|
2112
|
-
output:
|
|
2072
|
+
/** Get App Retrieve details about a specific app by its name. */
|
|
2073
|
+
export const getApp = /*@__PURE__*/ API.make(() => ({
|
|
2074
|
+
input: GetAppRequest,
|
|
2075
|
+
output: App,
|
|
2113
2076
|
errors: [Forbidden, NotFound],
|
|
2114
2077
|
protocol: FlyIoProtocol,
|
|
2115
2078
|
retry: Retry.Retry,
|
|
2116
2079
|
}));
|
|
2117
|
-
/**
|
|
2118
|
-
export const
|
|
2119
|
-
input:
|
|
2120
|
-
output:
|
|
2121
|
-
errors: [
|
|
2080
|
+
/** Get certificate details */
|
|
2081
|
+
export const getAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2082
|
+
input: GetAppCertificateRequest,
|
|
2083
|
+
output: CertificateDetail,
|
|
2084
|
+
errors: [Forbidden, NotFound],
|
|
2122
2085
|
protocol: FlyIoProtocol,
|
|
2123
2086
|
retry: Retry.Retry,
|
|
2124
2087
|
}));
|
|
2125
|
-
/**
|
|
2126
|
-
export const
|
|
2127
|
-
input:
|
|
2128
|
-
output:
|
|
2129
|
-
errors: [
|
|
2088
|
+
/** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
|
|
2089
|
+
export const getCurrentToken = /*@__PURE__*/ API.make(() => ({
|
|
2090
|
+
input: GetCurrentTokenRequest,
|
|
2091
|
+
output: CurrentTokenResponse,
|
|
2092
|
+
errors: [],
|
|
2130
2093
|
protocol: FlyIoProtocol,
|
|
2131
2094
|
retry: Retry.Retry,
|
|
2132
2095
|
}));
|
|
2133
2096
|
/** Get Machine Get details of a specific Machine within an app by the Machine ID. */
|
|
2134
|
-
export const
|
|
2135
|
-
input:
|
|
2097
|
+
export const getMachine = /*@__PURE__*/ API.make(() => ({
|
|
2098
|
+
input: GetMachineRequest,
|
|
2136
2099
|
output: Machine,
|
|
2137
2100
|
errors: [Forbidden, NotFound],
|
|
2138
2101
|
protocol: FlyIoProtocol,
|
|
2139
2102
|
retry: Retry.Retry,
|
|
2140
2103
|
}));
|
|
2141
2104
|
/** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2142
|
-
export const
|
|
2143
|
-
input:
|
|
2105
|
+
export const getMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2106
|
+
input: GetMachineLeaseRequest,
|
|
2144
2107
|
output: Lease,
|
|
2145
2108
|
errors: [Forbidden, NotFound],
|
|
2146
2109
|
protocol: FlyIoProtocol,
|
|
2147
2110
|
retry: Retry.Retry,
|
|
2148
2111
|
}));
|
|
2149
|
-
/** Get
|
|
2150
|
-
export const
|
|
2151
|
-
input:
|
|
2152
|
-
output:
|
|
2112
|
+
/** Get Machine Memory Get current memory limit and available capacity for a machine */
|
|
2113
|
+
export const getMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2114
|
+
input: GetMachineMemoryRequest,
|
|
2115
|
+
output: MainMemoryResponse,
|
|
2153
2116
|
errors: [Forbidden, NotFound],
|
|
2154
2117
|
protocol: FlyIoProtocol,
|
|
2155
2118
|
retry: Retry.Retry,
|
|
2156
2119
|
}));
|
|
2157
|
-
/**
|
|
2158
|
-
export const
|
|
2159
|
-
input:
|
|
2160
|
-
output:
|
|
2161
|
-
errors: [
|
|
2120
|
+
/** Get Metadata Retrieve metadata for a specific Machine within an app. */
|
|
2121
|
+
export const getMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2122
|
+
input: GetMachineMetadataRequest,
|
|
2123
|
+
output: GetMachineMetadataResponse,
|
|
2124
|
+
errors: [Forbidden, NotFound],
|
|
2162
2125
|
protocol: FlyIoProtocol,
|
|
2163
2126
|
retry: Retry.Retry,
|
|
2164
2127
|
}));
|
|
2165
|
-
/**
|
|
2166
|
-
export const
|
|
2167
|
-
input:
|
|
2168
|
-
output:
|
|
2169
|
-
errors: [
|
|
2128
|
+
/** Get Metadata Value Get the value of a specific metadata key */
|
|
2129
|
+
export const getMachineMetadataKey = /*@__PURE__*/ API.make(() => ({
|
|
2130
|
+
input: GetMachineMetadataKeyRequest,
|
|
2131
|
+
output: MetadataValueResponse,
|
|
2132
|
+
errors: [NotFound],
|
|
2170
2133
|
protocol: FlyIoProtocol,
|
|
2171
2134
|
retry: Retry.Retry,
|
|
2172
2135
|
}));
|
|
2173
|
-
/**
|
|
2174
|
-
export const
|
|
2175
|
-
input:
|
|
2176
|
-
output:
|
|
2177
|
-
errors: [BadRequest, Forbidden
|
|
2136
|
+
/** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
|
|
2137
|
+
export const getPlacements = /*@__PURE__*/ API.make(() => ({
|
|
2138
|
+
input: GetPlacementsRequest,
|
|
2139
|
+
output: MainGetPlacementsResponse,
|
|
2140
|
+
errors: [BadRequest, Forbidden],
|
|
2178
2141
|
protocol: FlyIoProtocol,
|
|
2179
2142
|
retry: Retry.Retry,
|
|
2180
2143
|
}));
|
|
2181
|
-
/**
|
|
2182
|
-
export const
|
|
2183
|
-
input:
|
|
2184
|
-
output:
|
|
2185
|
-
errors: [
|
|
2144
|
+
/** Get Regions List all regions on the platform with their details. */
|
|
2145
|
+
export const getRegions = /*@__PURE__*/ API.make(() => ({
|
|
2146
|
+
input: GetRegionsRequest,
|
|
2147
|
+
output: MainRegionResponse,
|
|
2148
|
+
errors: [Forbidden],
|
|
2186
2149
|
protocol: FlyIoProtocol,
|
|
2187
2150
|
retry: Retry.Retry,
|
|
2188
2151
|
}));
|
|
2189
|
-
/**
|
|
2190
|
-
export const
|
|
2191
|
-
input:
|
|
2192
|
-
output:
|
|
2193
|
-
errors: [
|
|
2152
|
+
/** Get an app secret */
|
|
2153
|
+
export const getSecret = /*@__PURE__*/ API.make(() => ({
|
|
2154
|
+
input: GetSecretRequest,
|
|
2155
|
+
output: AppSecret,
|
|
2156
|
+
errors: [Forbidden, NotFound],
|
|
2194
2157
|
protocol: FlyIoProtocol,
|
|
2195
2158
|
retry: Retry.Retry,
|
|
2196
2159
|
}));
|
|
2197
|
-
/**
|
|
2198
|
-
export const
|
|
2199
|
-
input:
|
|
2200
|
-
output:
|
|
2201
|
-
errors: [
|
|
2160
|
+
/** Get an app's secret key */
|
|
2161
|
+
export const getSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2162
|
+
input: GetSecretKeyRequest,
|
|
2163
|
+
output: SecretKey,
|
|
2164
|
+
errors: [Forbidden, NotFound],
|
|
2202
2165
|
protocol: FlyIoProtocol,
|
|
2203
2166
|
retry: Retry.Retry,
|
|
2204
2167
|
}));
|
|
2205
|
-
/**
|
|
2206
|
-
export const
|
|
2207
|
-
input:
|
|
2208
|
-
output:
|
|
2209
|
-
errors: [
|
|
2168
|
+
/** Get Volume Retrieve details about a specific volume by its ID within an app. */
|
|
2169
|
+
export const getVolumeById = /*@__PURE__*/ API.make(() => ({
|
|
2170
|
+
input: GetVolumeByIdRequest,
|
|
2171
|
+
output: Volume,
|
|
2172
|
+
errors: [Forbidden, NotFound],
|
|
2210
2173
|
protocol: FlyIoProtocol,
|
|
2211
2174
|
retry: Retry.Retry,
|
|
2212
2175
|
}));
|
|
2213
|
-
/**
|
|
2214
|
-
export const
|
|
2215
|
-
input:
|
|
2216
|
-
output:
|
|
2217
|
-
errors: [
|
|
2176
|
+
/** List certificates for app */
|
|
2177
|
+
export const listAppCertificates = /*@__PURE__*/ API.make(() => ({
|
|
2178
|
+
input: ListAppCertificatesRequest,
|
|
2179
|
+
output: ListCertificatesResponse,
|
|
2180
|
+
errors: [Forbidden, NotFound],
|
|
2218
2181
|
protocol: FlyIoProtocol,
|
|
2219
2182
|
retry: Retry.Retry,
|
|
2220
2183
|
}));
|
|
2221
|
-
/**
|
|
2222
|
-
export const
|
|
2223
|
-
input:
|
|
2224
|
-
output:
|
|
2225
|
-
errors: [
|
|
2184
|
+
/** List IP assignments for app */
|
|
2185
|
+
export const listAppIPAssignments = /*@__PURE__*/ API.make(() => ({
|
|
2186
|
+
input: ListAppIPAssignmentsRequest,
|
|
2187
|
+
output: ListIPAssignmentsResponse,
|
|
2188
|
+
errors: [Forbidden, NotFound],
|
|
2226
2189
|
protocol: FlyIoProtocol,
|
|
2227
2190
|
retry: Retry.Retry,
|
|
2228
2191
|
}));
|
|
2229
|
-
/**
|
|
2230
|
-
export const
|
|
2231
|
-
input:
|
|
2232
|
-
output:
|
|
2233
|
-
errors: [
|
|
2192
|
+
/** List Apps List all apps with the ability to filter by organization slug. */
|
|
2193
|
+
export const listApps = /*@__PURE__*/ API.make(() => ({
|
|
2194
|
+
input: ListAppsRequest,
|
|
2195
|
+
output: ListAppsResponse,
|
|
2196
|
+
errors: [Forbidden],
|
|
2234
2197
|
protocol: FlyIoProtocol,
|
|
2235
2198
|
retry: Retry.Retry,
|
|
2236
2199
|
}));
|
|
2237
|
-
/**
|
|
2238
|
-
export const
|
|
2239
|
-
input:
|
|
2240
|
-
output:
|
|
2241
|
-
errors: [
|
|
2200
|
+
/** List Events List all events associated with a specific Machine within an app. */
|
|
2201
|
+
export const listMachineEvents = /*@__PURE__*/ API.make(() => ({
|
|
2202
|
+
input: ListMachineEventsRequest,
|
|
2203
|
+
output: ListMachineEventsResponse,
|
|
2204
|
+
errors: [Forbidden, NotFound],
|
|
2242
2205
|
protocol: FlyIoProtocol,
|
|
2243
2206
|
retry: Retry.Retry,
|
|
2244
2207
|
}));
|
|
2245
|
-
/**
|
|
2246
|
-
export const
|
|
2247
|
-
input:
|
|
2248
|
-
output:
|
|
2249
|
-
errors: [Forbidden],
|
|
2208
|
+
/** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
|
|
2209
|
+
export const listMachineProcesses = /*@__PURE__*/ API.make(() => ({
|
|
2210
|
+
input: ListMachineProcessesRequest,
|
|
2211
|
+
output: ListMachineProcessesResponse,
|
|
2212
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2250
2213
|
protocol: FlyIoProtocol,
|
|
2251
2214
|
retry: Retry.Retry,
|
|
2252
2215
|
}));
|
|
2253
|
-
/**
|
|
2254
|
-
export const
|
|
2255
|
-
input:
|
|
2256
|
-
output:
|
|
2257
|
-
errors: [
|
|
2216
|
+
/** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
|
|
2217
|
+
export const listMachines = /*@__PURE__*/ API.make(() => ({
|
|
2218
|
+
input: ListMachinesRequest,
|
|
2219
|
+
output: ListMachinesResponse,
|
|
2220
|
+
errors: [Forbidden, NotFound],
|
|
2258
2221
|
protocol: FlyIoProtocol,
|
|
2259
2222
|
retry: Retry.Retry,
|
|
2260
2223
|
}));
|
|
2261
|
-
/**
|
|
2262
|
-
export const
|
|
2263
|
-
input:
|
|
2264
|
-
output:
|
|
2224
|
+
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2225
|
+
export const listMachineVersions = /*@__PURE__*/ API.make(() => ({
|
|
2226
|
+
input: ListMachineVersionsRequest,
|
|
2227
|
+
output: ListMachineVersionsResponse,
|
|
2265
2228
|
errors: [Forbidden, NotFound],
|
|
2266
2229
|
protocol: FlyIoProtocol,
|
|
2267
2230
|
retry: Retry.Retry,
|
|
2268
2231
|
}));
|
|
2269
|
-
/**
|
|
2270
|
-
export const
|
|
2271
|
-
input:
|
|
2272
|
-
output:
|
|
2232
|
+
/** List All Machines List all Machines associated with a specific organization. Machines are sorted by their `updated_at` timestamps, oldest to newest. This API call represents "a point in time". Recent machine changes, including creations and destructions, may take time to propagate. When polling with `updated_after`, offset your timestamps to catch late-arriving events. */
|
|
2233
|
+
export const listOrgMachines = /*@__PURE__*/ API.make(() => ({
|
|
2234
|
+
input: ListOrgMachinesRequest,
|
|
2235
|
+
output: OrgMachinesResponse,
|
|
2273
2236
|
errors: [Forbidden, NotFound],
|
|
2274
2237
|
protocol: FlyIoProtocol,
|
|
2275
2238
|
retry: Retry.Retry,
|
|
2276
2239
|
}));
|
|
2277
|
-
/**
|
|
2278
|
-
export const
|
|
2279
|
-
input:
|
|
2280
|
-
output:
|
|
2281
|
-
errors: [
|
|
2240
|
+
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2241
|
+
export const listOrgVolumes = /*@__PURE__*/ API.make(() => ({
|
|
2242
|
+
input: ListOrgVolumesRequest,
|
|
2243
|
+
output: OrgVolumesResponse,
|
|
2244
|
+
errors: [],
|
|
2282
2245
|
protocol: FlyIoProtocol,
|
|
2283
2246
|
retry: Retry.Retry,
|
|
2284
2247
|
}));
|
|
2285
|
-
/**
|
|
2286
|
-
export const
|
|
2287
|
-
input:
|
|
2288
|
-
output:
|
|
2248
|
+
/** List secret keys belonging to an app */
|
|
2249
|
+
export const listSecretKeys = /*@__PURE__*/ API.make(() => ({
|
|
2250
|
+
input: ListSecretKeysRequest,
|
|
2251
|
+
output: SecretKeys,
|
|
2289
2252
|
errors: [Forbidden, NotFound],
|
|
2290
2253
|
protocol: FlyIoProtocol,
|
|
2291
2254
|
retry: Retry.Retry,
|
|
2292
2255
|
}));
|
|
2293
|
-
/**
|
|
2294
|
-
export const
|
|
2295
|
-
input:
|
|
2296
|
-
output:
|
|
2297
|
-
errors: [
|
|
2256
|
+
/** List app secrets belonging to an app */
|
|
2257
|
+
export const listSecrets = /*@__PURE__*/ API.make(() => ({
|
|
2258
|
+
input: ListSecretsRequest,
|
|
2259
|
+
output: AppSecrets,
|
|
2260
|
+
errors: [Forbidden, NotFound],
|
|
2298
2261
|
protocol: FlyIoProtocol,
|
|
2299
2262
|
retry: Retry.Retry,
|
|
2300
2263
|
}));
|
|
2301
|
-
/**
|
|
2302
|
-
export const
|
|
2303
|
-
input:
|
|
2304
|
-
output:
|
|
2305
|
-
errors: [
|
|
2264
|
+
/** List Volumes List all volumes associated with a specific app. */
|
|
2265
|
+
export const listVolumes = /*@__PURE__*/ API.make(() => ({
|
|
2266
|
+
input: ListVolumesRequest,
|
|
2267
|
+
output: ListVolumesResponse,
|
|
2268
|
+
errors: [Forbidden, NotFound],
|
|
2306
2269
|
protocol: FlyIoProtocol,
|
|
2307
2270
|
retry: Retry.Retry,
|
|
2308
2271
|
}));
|
|
2309
|
-
/**
|
|
2310
|
-
export const
|
|
2311
|
-
input:
|
|
2312
|
-
output:
|
|
2272
|
+
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2273
|
+
export const listVolumeSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2274
|
+
input: ListVolumeSnapshotsRequest,
|
|
2275
|
+
output: ListVolumeSnapshotsResponse,
|
|
2313
2276
|
errors: [Forbidden, NotFound],
|
|
2314
2277
|
protocol: FlyIoProtocol,
|
|
2315
2278
|
retry: Retry.Retry,
|
|
2316
2279
|
}));
|
|
2317
|
-
/**
|
|
2318
|
-
export const
|
|
2319
|
-
input:
|
|
2320
|
-
output:
|
|
2321
|
-
errors: [BadRequest
|
|
2280
|
+
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2281
|
+
export const patchMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2282
|
+
input: PatchMachineMetadataRequest,
|
|
2283
|
+
output: PatchMachineMetadataResponse,
|
|
2284
|
+
errors: [BadRequest],
|
|
2322
2285
|
protocol: FlyIoProtocol,
|
|
2323
2286
|
retry: Retry.Retry,
|
|
2324
2287
|
}));
|
|
2325
|
-
/**
|
|
2326
|
-
export const
|
|
2327
|
-
input:
|
|
2328
|
-
output:
|
|
2288
|
+
/** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
|
|
2289
|
+
export const reclaimMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2290
|
+
input: ReclaimMachineMemoryRequest,
|
|
2291
|
+
output: MainReclaimMemoryResponse,
|
|
2329
2292
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2330
2293
|
protocol: FlyIoProtocol,
|
|
2331
2294
|
retry: Retry.Retry,
|
|
2332
2295
|
}));
|
|
2333
|
-
/**
|
|
2334
|
-
export const
|
|
2335
|
-
input:
|
|
2336
|
-
output:
|
|
2296
|
+
/** Release Lease Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2297
|
+
export const releaseMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2298
|
+
input: ReleaseMachineLeaseRequest,
|
|
2299
|
+
output: ReleaseMachineLeaseResponse,
|
|
2337
2300
|
errors: [Forbidden, NotFound],
|
|
2338
2301
|
protocol: FlyIoProtocol,
|
|
2339
2302
|
retry: Retry.Retry,
|
|
2340
2303
|
}));
|
|
2341
|
-
/**
|
|
2342
|
-
export const
|
|
2343
|
-
input:
|
|
2344
|
-
output:
|
|
2304
|
+
/** Request a Petsem token for accessing KMS 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. */
|
|
2305
|
+
export const requestKmsToken = /*@__PURE__*/ API.make(() => ({
|
|
2306
|
+
input: RequestKmsTokenRequest,
|
|
2307
|
+
output: RequestKmsTokenResponse,
|
|
2345
2308
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2346
2309
|
protocol: FlyIoProtocol,
|
|
2347
2310
|
retry: Retry.Retry,
|
|
2348
2311
|
}));
|
|
2349
|
-
/**
|
|
2350
|
-
export const
|
|
2351
|
-
input:
|
|
2352
|
-
output:
|
|
2353
|
-
errors: [Forbidden, NotFound],
|
|
2312
|
+
/** Request an OIDC token 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. */
|
|
2313
|
+
export const requestOidcToken = /*@__PURE__*/ API.make(() => ({
|
|
2314
|
+
input: RequestOidcTokenRequest,
|
|
2315
|
+
output: RequestOidcTokenResponse,
|
|
2316
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2354
2317
|
protocol: FlyIoProtocol,
|
|
2355
2318
|
retry: Retry.Retry,
|
|
2356
2319
|
}));
|
|
2357
|
-
/**
|
|
2358
|
-
export const
|
|
2359
|
-
input:
|
|
2360
|
-
output:
|
|
2320
|
+
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2321
|
+
export const restartMachine = /*@__PURE__*/ API.make(() => ({
|
|
2322
|
+
input: RestartMachineRequest,
|
|
2323
|
+
output: RestartMachineResponse,
|
|
2361
2324
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2362
2325
|
protocol: FlyIoProtocol,
|
|
2363
2326
|
retry: Retry.Retry,
|
|
2364
2327
|
}));
|
|
2365
|
-
/**
|
|
2366
|
-
export const
|
|
2367
|
-
input:
|
|
2368
|
-
output:
|
|
2369
|
-
errors: [BadRequest],
|
|
2328
|
+
/** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
|
|
2329
|
+
export const setMachineMemoryLimit = /*@__PURE__*/ API.make(() => ({
|
|
2330
|
+
input: SetMachineMemoryLimitRequest,
|
|
2331
|
+
output: MainMemoryResponse,
|
|
2332
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2370
2333
|
protocol: FlyIoProtocol,
|
|
2371
2334
|
retry: Retry.Retry,
|
|
2372
2335
|
}));
|
|
2373
|
-
/**
|
|
2374
|
-
export const
|
|
2375
|
-
input:
|
|
2376
|
-
output:
|
|
2377
|
-
errors: [BadRequest],
|
|
2336
|
+
/** Create or update a secret key */
|
|
2337
|
+
export const setSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2338
|
+
input: SetSecretKeyRequest,
|
|
2339
|
+
output: SetSecretkeyResponse,
|
|
2340
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2378
2341
|
protocol: FlyIoProtocol,
|
|
2379
2342
|
retry: Retry.Retry,
|
|
2380
2343
|
}));
|
|
2381
|
-
/**
|
|
2382
|
-
export const
|
|
2383
|
-
input:
|
|
2384
|
-
output:
|
|
2344
|
+
/** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
|
|
2345
|
+
export const signalMachine = /*@__PURE__*/ API.make(() => ({
|
|
2346
|
+
input: SignalMachineRequest,
|
|
2347
|
+
output: SignalMachineResponse,
|
|
2385
2348
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2386
2349
|
protocol: FlyIoProtocol,
|
|
2387
2350
|
retry: Retry.Retry,
|
|
2388
2351
|
}));
|
|
2389
|
-
/**
|
|
2390
|
-
export const
|
|
2391
|
-
input:
|
|
2392
|
-
output:
|
|
2352
|
+
/** Sign with a secret key */
|
|
2353
|
+
export const signSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2354
|
+
input: SignSecretKeyRequest,
|
|
2355
|
+
output: SignSecretkeyResponse,
|
|
2393
2356
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2394
2357
|
protocol: FlyIoProtocol,
|
|
2395
2358
|
retry: Retry.Retry,
|
|
2396
2359
|
}));
|
|
2397
|
-
/**
|
|
2398
|
-
export const
|
|
2399
|
-
input:
|
|
2400
|
-
output:
|
|
2401
|
-
errors: [Forbidden, NotFound],
|
|
2360
|
+
/** Start Machine Start a specific Machine within an app. */
|
|
2361
|
+
export const startMachine = /*@__PURE__*/ API.make(() => ({
|
|
2362
|
+
input: StartMachineRequest,
|
|
2363
|
+
output: StartMachineResponse,
|
|
2364
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2402
2365
|
protocol: FlyIoProtocol,
|
|
2403
2366
|
retry: Retry.Retry,
|
|
2404
2367
|
}));
|
|
2405
|
-
/**
|
|
2406
|
-
export const
|
|
2407
|
-
input:
|
|
2408
|
-
output:
|
|
2368
|
+
/** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
|
|
2369
|
+
export const stopMachine = /*@__PURE__*/ API.make(() => ({
|
|
2370
|
+
input: StopMachineRequest,
|
|
2371
|
+
output: StopMachineResponse,
|
|
2409
2372
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2410
2373
|
protocol: FlyIoProtocol,
|
|
2411
2374
|
retry: Retry.Retry,
|
|
2412
2375
|
}));
|
|
2413
|
-
/**
|
|
2414
|
-
export const
|
|
2415
|
-
input:
|
|
2416
|
-
output:
|
|
2376
|
+
/** Suspend Machine Suspend a specific Machine within an app. The next start operation will attempt (but is not guaranteed) to resume the Machine from a snapshot taken at suspension time, rather than performing a cold boot. */
|
|
2377
|
+
export const suspendMachine = /*@__PURE__*/ API.make(() => ({
|
|
2378
|
+
input: SuspendMachineRequest,
|
|
2379
|
+
output: SuspendMachineResponse,
|
|
2417
2380
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2418
2381
|
protocol: FlyIoProtocol,
|
|
2419
2382
|
retry: Retry.Retry,
|
|
2420
2383
|
}));
|
|
2421
|
-
/**
|
|
2422
|
-
export const
|
|
2423
|
-
input:
|
|
2424
|
-
output:
|
|
2425
|
-
errors: [Forbidden, NotFound],
|
|
2384
|
+
/** Uncordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
2385
|
+
export const uncordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
2386
|
+
input: UncordonMachineRequest,
|
|
2387
|
+
output: UncordonMachineResponse,
|
|
2388
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2426
2389
|
protocol: FlyIoProtocol,
|
|
2427
2390
|
retry: Retry.Retry,
|
|
2428
2391
|
}));
|
|
2429
|
-
/**
|
|
2430
|
-
export const
|
|
2431
|
-
input:
|
|
2432
|
-
output:
|
|
2433
|
-
errors: [Forbidden, NotFound],
|
|
2392
|
+
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|
|
2393
|
+
export const updateMachine = /*@__PURE__*/ API.make(() => ({
|
|
2394
|
+
input: UpdateMachineRequest,
|
|
2395
|
+
output: Machine,
|
|
2396
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2434
2397
|
protocol: FlyIoProtocol,
|
|
2435
2398
|
retry: Retry.Retry,
|
|
2436
2399
|
}));
|
|
2437
|
-
/**
|
|
2438
|
-
export const
|
|
2439
|
-
input:
|
|
2440
|
-
output:
|
|
2441
|
-
errors: [Forbidden, NotFound],
|
|
2400
|
+
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2401
|
+
export const updateMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2402
|
+
input: UpdateMachineMetadataRequest,
|
|
2403
|
+
output: UpdateMachineMetadataResponse,
|
|
2404
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2442
2405
|
protocol: FlyIoProtocol,
|
|
2443
2406
|
retry: Retry.Retry,
|
|
2444
2407
|
}));
|
|
2445
|
-
/**
|
|
2446
|
-
export const
|
|
2447
|
-
input:
|
|
2448
|
-
output:
|
|
2449
|
-
errors: [],
|
|
2408
|
+
/** Update app secrets belonging to an app */
|
|
2409
|
+
export const updateSecrets = /*@__PURE__*/ API.make(() => ({
|
|
2410
|
+
input: UpdateSecretsRequest,
|
|
2411
|
+
output: AppSecretsUpdateResp,
|
|
2412
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2450
2413
|
protocol: FlyIoProtocol,
|
|
2451
2414
|
retry: Retry.Retry,
|
|
2452
2415
|
}));
|
|
2453
2416
|
/** Update Volume Update a volume's configuration using the details provided in the request body. */
|
|
2454
|
-
export const
|
|
2455
|
-
input:
|
|
2417
|
+
export const updateVolume = /*@__PURE__*/ API.make(() => ({
|
|
2418
|
+
input: UpdateVolumeRequest,
|
|
2456
2419
|
output: Volume,
|
|
2457
2420
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2458
2421
|
protocol: FlyIoProtocol,
|
|
2459
2422
|
retry: Retry.Retry,
|
|
2460
2423
|
}));
|
|
2424
|
+
/** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
|
|
2425
|
+
export const upsertMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2426
|
+
input: UpsertMachineMetadataRequest,
|
|
2427
|
+
output: UpsertMachineMetadataResponse,
|
|
2428
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2429
|
+
protocol: FlyIoProtocol,
|
|
2430
|
+
retry: Retry.Retry,
|
|
2431
|
+
}));
|
|
2432
|
+
/** Verify with a secret key */
|
|
2433
|
+
export const verifySecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2434
|
+
input: VerifySecretKeyRequest,
|
|
2435
|
+
output: VerifySecretKeyResponse,
|
|
2436
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2437
|
+
protocol: FlyIoProtocol,
|
|
2438
|
+
retry: Retry.Retry,
|
|
2439
|
+
}));
|
|
2440
|
+
/** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
|
|
2441
|
+
export const waitMachine = /*@__PURE__*/ API.make(() => ({
|
|
2442
|
+
input: WaitMachineRequest,
|
|
2443
|
+
output: WaitMachineResponse,
|
|
2444
|
+
errors: [BadRequest, Forbidden, NotFound, GatewayTimeout],
|
|
2445
|
+
protocol: FlyIoProtocol,
|
|
2446
|
+
retry: Retry.Retry,
|
|
2447
|
+
}));
|
|
2461
2448
|
//# sourceMappingURL=machines.js.map
|