@distilled.cloud/fly-io 1.0.0-rc.15 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -65
- package/lib/errors.d.ts +39 -24
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -62
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -33
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -5
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -541
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -33
- package/lib/services/addons.d.ts +0 -65
- package/lib/services/addons.d.ts.map +1 -1
- package/lib/services/addons.js +22 -567
- package/lib/services/addons.js.map +1 -1
- package/lib/services/builders.d.ts +31 -0
- package/lib/services/builders.d.ts.map +1 -0
- package/lib/services/builders.js +2 -0
- package/lib/services/builders.js.map +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -2
- package/lib/services/machines.d.ts +25 -444
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +137 -2736
- package/lib/services/machines.js.map +1 -1
- package/lib/services/mpg.d.ts +1 -67
- package/lib/services/mpg.d.ts.map +1 -1
- package/lib/services/mpg.js +31 -453
- package/lib/services/mpg.js.map +1 -1
- package/lib/services/sprites.d.ts +1 -125
- package/lib/services/sprites.d.ts.map +1 -1
- package/lib/services/sprites.js +62 -890
- package/lib/services/sprites.js.map +1 -1
- package/lib/services.lazy/addons.js +3 -0
- package/lib/services.lazy/builders.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/machines.js +4 -0
- package/lib/services.lazy/mpg.js +3 -0
- package/lib/services.lazy/sprites.js +3 -0
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -21
- package/package.json +20 -7
- package/src/credentials.ts +18 -15
- package/src/errors.ts +40 -28
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +67 -36
- package/src/retry.ts +6 -4
- package/src/services/addons.ts +593 -692
- package/src/services/builders.ts +93 -0
- package/src/services/index.ts +1 -0
- package/src/services/machines.ts +3332 -3364
- package/src/services/mpg.ts +582 -519
- package/src/services/sprites.ts +1008 -948
- package/src/traits.ts +8 -4
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -126
- package/lib/protocol.test.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/sprites-mint.test.d.ts +0 -2
- package/lib/sprites-mint.test.d.ts.map +0 -1
- package/lib/sprites-mint.test.js +0 -169
- package/lib/sprites-mint.test.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -214
- package/src/sprites-mint.test.ts +0 -228
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/lib/services/machines.js
CHANGED
|
@@ -1,2737 +1,138 @@
|
|
|
1
|
-
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
cname: S.optional(DNSRecordsCnameList),
|
|
139
|
-
ownership_txt: S.optional(S.String),
|
|
140
|
-
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
141
|
-
soa: S.optional(S.String),
|
|
142
|
-
})).annotate({ identifier: "DNSRecords" });
|
|
143
|
-
export const DNSRequirementsAList = /*@__PURE__*/ S.Array(S.String);
|
|
144
|
-
export const DNSRequirementsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
145
|
-
export const AcmeChallenge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
146
|
-
name: S.optional(S.String),
|
|
147
|
-
target: S.optional(S.String),
|
|
148
|
-
})).annotate({ identifier: "AcmeChallenge" });
|
|
149
|
-
export const OwnershipVerification = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
app_value: S.optional(S.String),
|
|
151
|
-
name: S.optional(S.String),
|
|
152
|
-
org_value: S.optional(S.String),
|
|
153
|
-
})).annotate({ identifier: "OwnershipVerification" });
|
|
154
|
-
export const DNSRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
-
a: S.optional(DNSRequirementsAList),
|
|
156
|
-
aaaa: S.optional(DNSRequirementsAaaaList),
|
|
157
|
-
acme_challenge: S.optional(AcmeChallenge),
|
|
158
|
-
cname: S.optional(S.String),
|
|
159
|
-
ownership: S.optional(OwnershipVerification),
|
|
160
|
-
})).annotate({ identifier: "DNSRequirements" });
|
|
161
|
-
export const CertificateValidation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
alpn_configured: S.optional(S.Boolean),
|
|
163
|
-
dns_configured: S.optional(S.Boolean),
|
|
164
|
-
http_configured: S.optional(S.Boolean),
|
|
165
|
-
ownership_txt_configured: S.optional(S.Boolean),
|
|
166
|
-
})).annotate({ identifier: "CertificateValidation" });
|
|
167
|
-
export const CertificateValidationError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
code: S.optional(S.String),
|
|
169
|
-
message: S.optional(S.String),
|
|
170
|
-
remediation: S.optional(S.String),
|
|
171
|
-
timestamp: S.optional(S.String),
|
|
172
|
-
})).annotate({
|
|
173
|
-
identifier: "CertificateValidationError",
|
|
174
|
-
});
|
|
175
|
-
export const CertificateCheckResponseValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
176
|
-
export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
-
acme_requested: S.optional(S.Boolean),
|
|
178
|
-
certificates: S.optional(CertificateCheckResponseCertificatesList),
|
|
179
|
-
configured: S.optional(S.Boolean),
|
|
180
|
-
dns_provider: S.optional(S.String),
|
|
181
|
-
dns_records: S.optional(DNSRecords),
|
|
182
|
-
dns_requirements: S.optional(DNSRequirements),
|
|
183
|
-
hostname: S.optional(S.String),
|
|
184
|
-
rate_limited_until: S.optional(S.String),
|
|
185
|
-
status: S.optional(S.String),
|
|
186
|
-
validation: S.optional(CertificateValidation),
|
|
187
|
-
validation_errors: S.optional(CertificateCheckResponseValidationErrorsList),
|
|
188
|
-
})).annotate({ identifier: "CertificateCheckResponse" });
|
|
189
|
-
export const CordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
190
|
-
app_name: S.String.pipe(T.Label()),
|
|
191
|
-
machine_id: S.String.pipe(T.Label()),
|
|
192
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
193
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/cordon", code: 200 }))).annotate({ identifier: "CordonMachineRequest" });
|
|
194
|
-
export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
195
|
-
identifier: "CordonMachineResponse",
|
|
196
|
-
});
|
|
197
|
-
export const CreateAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
-
enable_subdomains: S.optional(S.Boolean),
|
|
199
|
-
idempotency_key: S.optional(S.String),
|
|
200
|
-
name: S.optional(S.String),
|
|
201
|
-
network: S.optional(S.String),
|
|
202
|
-
org_slug: S.optional(S.String),
|
|
203
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps", code: 200 }))).annotate({ identifier: "CreateAppRequest" });
|
|
204
|
-
export const CreateAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
205
|
-
created_at: S.optional(S.Number),
|
|
206
|
-
id: S.optional(S.String),
|
|
207
|
-
})).annotate({ identifier: "CreateAppResponse" });
|
|
208
|
-
export const CreateAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
209
|
-
app_name: S.String.pipe(T.Label()),
|
|
210
|
-
hostname: S.optional(S.String),
|
|
211
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/certificates/acme", code: 200 }))).annotate({
|
|
212
|
-
identifier: "CreateAppAcmeCertificateRequest",
|
|
213
|
-
});
|
|
214
|
-
export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
215
|
-
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
216
|
-
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
-
acme_requested: S.optional(S.Boolean),
|
|
218
|
-
certificates: S.optional(CertificateDetailCertificatesList),
|
|
219
|
-
configured: S.optional(S.Boolean),
|
|
220
|
-
dns_provider: S.optional(S.String),
|
|
221
|
-
dns_requirements: S.optional(DNSRequirements),
|
|
222
|
-
hostname: S.optional(S.String),
|
|
223
|
-
rate_limited_until: S.optional(S.String),
|
|
224
|
-
status: S.optional(S.String),
|
|
225
|
-
validation: S.optional(CertificateValidation),
|
|
226
|
-
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
227
|
-
})).annotate({ identifier: "CertificateDetail" });
|
|
228
|
-
export const CreateAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
229
|
-
app_name: S.String.pipe(T.Label()),
|
|
230
|
-
fullchain: S.optional(S.String),
|
|
231
|
-
hostname: S.optional(S.String),
|
|
232
|
-
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
233
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/certificates/custom", code: 200 }))).annotate({
|
|
234
|
-
identifier: "CreateAppCustomCertificateRequest",
|
|
235
|
-
});
|
|
236
|
-
export const CreateAppDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
-
app_name: S.String.pipe(T.Label()),
|
|
238
|
-
expiry: S.optional(S.String),
|
|
239
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/deploy_token", code: 200 }))).annotate({
|
|
240
|
-
identifier: "CreateAppDeployTokenRequest",
|
|
241
|
-
});
|
|
242
|
-
export const CreateAppDeployTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
-
token: S.optional(S.String),
|
|
244
|
-
})).annotate({
|
|
245
|
-
identifier: "CreateAppDeployTokenResponse",
|
|
246
|
-
});
|
|
247
|
-
export const IPAssignmentType = S.String;
|
|
248
|
-
export const CreateAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
app_name: S.String.pipe(T.Label()),
|
|
250
|
-
network: S.optional(S.String),
|
|
251
|
-
org_slug: S.optional(S.String),
|
|
252
|
-
region: S.optional(S.String),
|
|
253
|
-
service_name: S.optional(S.String),
|
|
254
|
-
type: S.optional(IPAssignmentType),
|
|
255
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/ip_assignments", code: 200 }))).annotate({
|
|
256
|
-
identifier: "CreateAppIPAssignmentRequest",
|
|
257
|
-
});
|
|
258
|
-
export const IPPair = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
259
|
-
v4: S.optional(S.String),
|
|
260
|
-
v6: S.optional(S.String),
|
|
261
|
-
})).annotate({ identifier: "IPPair" });
|
|
262
|
-
export const IPAssignmentNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
-
name: S.optional(S.String),
|
|
264
|
-
org_slug: S.optional(S.String),
|
|
265
|
-
})).annotate({ identifier: "IPAssignmentNetwork" });
|
|
266
|
-
export const AssignIPResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
|
-
created_at: S.optional(S.String),
|
|
268
|
-
egress: S.optional(S.Boolean),
|
|
269
|
-
ip: S.optional(S.String),
|
|
270
|
-
ip_pair: S.optional(IPPair),
|
|
271
|
-
network: S.optional(S.NullOr(IPAssignmentNetwork)),
|
|
272
|
-
region: S.optional(S.String),
|
|
273
|
-
service_name: S.optional(S.String),
|
|
274
|
-
shared: S.optional(S.Boolean),
|
|
275
|
-
})).annotate({ identifier: "AssignIPResponse" });
|
|
276
|
-
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
277
|
-
size_mb: S.optional(S.Number),
|
|
278
|
-
})).annotate({ identifier: "FlyMachineCacheDrive" });
|
|
279
|
-
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
280
|
-
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
281
|
-
name: S.optional(S.String),
|
|
282
|
-
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
283
|
-
})).annotate({ identifier: "FlyMachineHTTPHeader" });
|
|
284
|
-
export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
285
|
-
export const FlyMachineCheckKind = S.String;
|
|
286
|
-
export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
-
grace_period: S.optional(S.String),
|
|
288
|
-
headers: S.optional(FlyMachineCheckHeadersList),
|
|
289
|
-
interval: S.optional(S.String),
|
|
290
|
-
kind: S.optional(FlyMachineCheckKind),
|
|
291
|
-
method: S.optional(S.String),
|
|
292
|
-
path: S.optional(S.String),
|
|
293
|
-
port: S.optional(S.Number),
|
|
294
|
-
protocol: S.optional(S.String),
|
|
295
|
-
timeout: S.optional(S.String),
|
|
296
|
-
tls_server_name: S.optional(S.String),
|
|
297
|
-
tls_skip_verify: S.optional(S.Boolean),
|
|
298
|
-
type: S.optional(S.String),
|
|
299
|
-
})).annotate({ identifier: "FlyMachineCheck" });
|
|
300
|
-
export const FlyMachineConfigChecksMap = /*@__PURE__*/ S.Record(S.String, FlyMachineCheck);
|
|
301
|
-
export const FlyContainerConfigCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
302
|
-
export const FlyContainerDependencyCondition = S.String;
|
|
303
|
-
export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
-
condition: S.optional(FlyContainerDependencyCondition),
|
|
305
|
-
name: S.optional(S.String),
|
|
306
|
-
})).annotate({ identifier: "FlyContainerDependency" });
|
|
307
|
-
export const FlyContainerConfigDependsOnList = /*@__PURE__*/ S.Array(FlyContainerDependency);
|
|
308
|
-
export const FlyContainerConfigEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
309
|
-
export const FlyContainerConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
310
|
-
export const FlyEnvFromFieldRef = S.String;
|
|
311
|
-
export const FlyEnvFrom = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
312
|
-
env_var: S.optional(S.String),
|
|
313
|
-
field_ref: S.optional(FlyEnvFromFieldRef),
|
|
314
|
-
})).annotate({ identifier: "FlyEnvFrom" });
|
|
315
|
-
export const FlyContainerConfigEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
|
|
316
|
-
export const FlyContainerConfigExecList = /*@__PURE__*/ S.Array(S.String);
|
|
317
|
-
export const FlyFile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
-
guest_path: S.optional(S.String),
|
|
319
|
-
image_config: S.optional(S.String),
|
|
320
|
-
mode: S.optional(S.Number),
|
|
321
|
-
raw_value: S.optional(S.String),
|
|
322
|
-
secret_name: S.optional(S.String),
|
|
323
|
-
})).annotate({ identifier: "FlyFile" });
|
|
324
|
-
export const FlyContainerConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
|
|
325
|
-
export const FlyExecHealthcheckCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
326
|
-
export const FlyExecHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
-
command: S.optional(FlyExecHealthcheckCommandList),
|
|
328
|
-
})).annotate({ identifier: "FlyExecHealthcheck" });
|
|
329
|
-
export const FlyHTTPHealthcheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
330
|
-
export const FlyContainerHealthcheckScheme = S.String;
|
|
331
|
-
export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
332
|
-
headers: S.optional(FlyHTTPHealthcheckHeadersList),
|
|
333
|
-
method: S.optional(S.String),
|
|
334
|
-
path: S.optional(S.String),
|
|
335
|
-
port: S.optional(S.Number),
|
|
336
|
-
scheme: S.optional(FlyContainerHealthcheckScheme),
|
|
337
|
-
tls_server_name: S.optional(S.String),
|
|
338
|
-
tls_skip_verify: S.optional(S.Boolean),
|
|
339
|
-
})).annotate({ identifier: "FlyHTTPHealthcheck" });
|
|
340
|
-
export const FlyContainerHealthcheckKind = S.String;
|
|
341
|
-
export const FlyTCPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
342
|
-
port: S.optional(S.Number),
|
|
343
|
-
})).annotate({ identifier: "FlyTCPHealthcheck" });
|
|
344
|
-
export const FlyUnhealthyPolicy = S.String;
|
|
345
|
-
export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
346
|
-
exec: S.optional(FlyExecHealthcheck),
|
|
347
|
-
failure_threshold: S.optional(S.Number),
|
|
348
|
-
grace_period: S.optional(S.Number),
|
|
349
|
-
http: S.optional(FlyHTTPHealthcheck),
|
|
350
|
-
interval: S.optional(S.Number),
|
|
351
|
-
kind: S.optional(FlyContainerHealthcheckKind),
|
|
352
|
-
name: S.optional(S.String),
|
|
353
|
-
success_threshold: S.optional(S.Number),
|
|
354
|
-
tcp: S.optional(FlyTCPHealthcheck),
|
|
355
|
-
timeout: S.optional(S.Number),
|
|
356
|
-
unhealthy: S.optional(FlyUnhealthyPolicy),
|
|
357
|
-
})).annotate({ identifier: "FlyContainerHealthcheck" });
|
|
358
|
-
export const FlyContainerConfigHealthchecksList = /*@__PURE__*/ S.Array(FlyContainerHealthcheck);
|
|
359
|
-
export const FlyMachineRestartPolicy = S.String;
|
|
360
|
-
export const FlyMachineRestart = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
361
|
-
max_retries: S.optional(S.Number),
|
|
362
|
-
policy: S.optional(FlyMachineRestartPolicy),
|
|
363
|
-
})).annotate({ identifier: "FlyMachineRestart" });
|
|
364
|
-
export const FlyMachineSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
365
|
-
env_var: S.optional(S.String),
|
|
366
|
-
name: S.optional(S.String),
|
|
367
|
-
})).annotate({ identifier: "FlyMachineSecret" });
|
|
368
|
-
export const FlyContainerConfigSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
|
|
369
|
-
export const FlyStopConfigSignal = S.String;
|
|
370
|
-
export const FlyStopConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
-
signal: S.optional(FlyStopConfigSignal),
|
|
372
|
-
timeout: S.optional(S.String),
|
|
373
|
-
})).annotate({ identifier: "FlyStopConfig" });
|
|
374
|
-
export const FlyContainerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
375
|
-
cmd: S.optional(FlyContainerConfigCmdList),
|
|
376
|
-
depends_on: S.optional(FlyContainerConfigDependsOnList),
|
|
377
|
-
entrypoint: S.optional(FlyContainerConfigEntrypointList),
|
|
378
|
-
env: S.optional(FlyContainerConfigEnvMap),
|
|
379
|
-
env_from: S.optional(FlyContainerConfigEnvFromList),
|
|
380
|
-
exec: S.optional(FlyContainerConfigExecList),
|
|
381
|
-
files: S.optional(FlyContainerConfigFilesList),
|
|
382
|
-
healthchecks: S.optional(FlyContainerConfigHealthchecksList),
|
|
383
|
-
image: S.optional(S.String),
|
|
384
|
-
name: S.optional(S.String),
|
|
385
|
-
restart: S.optional(FlyMachineRestart),
|
|
386
|
-
secrets: S.optional(FlyContainerConfigSecretsList),
|
|
387
|
-
stop: S.optional(FlyStopConfig),
|
|
388
|
-
user: S.optional(S.String),
|
|
389
|
-
})).annotate({ identifier: "FlyContainerConfig" });
|
|
390
|
-
export const FlyMachineConfigContainersList = /*@__PURE__*/ S.Array(FlyContainerConfig);
|
|
391
|
-
export const FlyDnsForwardRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
392
|
-
addr: S.optional(S.String),
|
|
393
|
-
basename: S.optional(S.String),
|
|
394
|
-
})).annotate({ identifier: "FlyDnsForwardRule" });
|
|
395
|
-
export const FlyDNSConfigDnsForwardRulesList = /*@__PURE__*/ S.Array(FlyDnsForwardRule);
|
|
396
|
-
export const FlyDNSConfigNameserversList = /*@__PURE__*/ S.Array(S.String);
|
|
397
|
-
export const FlyDnsOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
398
|
-
name: S.optional(S.String),
|
|
399
|
-
value: S.optional(S.String),
|
|
400
|
-
})).annotate({ identifier: "FlyDnsOption" });
|
|
401
|
-
export const FlyDNSConfigOptionsList = /*@__PURE__*/ S.Array(FlyDnsOption);
|
|
402
|
-
export const FlyDNSConfigSearchesList = /*@__PURE__*/ S.Array(S.String);
|
|
403
|
-
export const FlyDNSConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
404
|
-
dns_forward_rules: S.optional(FlyDNSConfigDnsForwardRulesList),
|
|
405
|
-
hostname: S.optional(S.String),
|
|
406
|
-
hostname_fqdn: S.optional(S.String),
|
|
407
|
-
nameservers: S.optional(FlyDNSConfigNameserversList),
|
|
408
|
-
options: S.optional(FlyDNSConfigOptionsList),
|
|
409
|
-
searches: S.optional(FlyDNSConfigSearchesList),
|
|
410
|
-
skip_registration: S.optional(S.Boolean),
|
|
411
|
-
})).annotate({ identifier: "FlyDNSConfig" });
|
|
412
|
-
export const FlyMachineConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
413
|
-
export const FlyMachineConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
|
|
414
|
-
export const FlyMachineGuestKernelArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
415
|
-
export const FlyMachineGuestPersistRootfs = S.String;
|
|
416
|
-
export const FlyMachineGuestRequiredHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
417
|
-
export const FlyMachineGuest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
418
|
-
cpu_kind: S.optional(S.String),
|
|
419
|
-
cpus: S.optional(S.Number),
|
|
420
|
-
gpu_kind: S.optional(S.String),
|
|
421
|
-
gpus: S.optional(S.Number),
|
|
422
|
-
host_dedication_id: S.optional(S.String),
|
|
423
|
-
kernel_args: S.optional(FlyMachineGuestKernelArgsList),
|
|
424
|
-
max_memory_mb: S.optional(S.Number),
|
|
425
|
-
memory_mb: S.optional(S.Number),
|
|
426
|
-
persist_rootfs: S.optional(FlyMachineGuestPersistRootfs),
|
|
427
|
-
required_host_features: S.optional(FlyMachineGuestRequiredHostFeaturesList),
|
|
428
|
-
})).annotate({ identifier: "FlyMachineGuest" });
|
|
429
|
-
export const FlyMachineInitCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
430
|
-
export const FlyMachineInitEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
431
|
-
export const FlyMachineInitExecList = /*@__PURE__*/ S.Array(S.String);
|
|
432
|
-
export const FlyMachineInitKernelArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
433
|
-
export const FlyMachineInit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
-
cmd: S.optional(FlyMachineInitCmdList),
|
|
435
|
-
entrypoint: S.optional(FlyMachineInitEntrypointList),
|
|
436
|
-
exec: S.optional(FlyMachineInitExecList),
|
|
437
|
-
kernel_args: S.optional(FlyMachineInitKernelArgsList),
|
|
438
|
-
swap_size_mb: S.optional(S.Number),
|
|
439
|
-
tty: S.optional(S.Boolean),
|
|
440
|
-
})).annotate({ identifier: "FlyMachineInit" });
|
|
441
|
-
export const FlyMachineConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
442
|
-
export const FlyMachineMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
443
|
-
https: S.optional(S.Boolean),
|
|
444
|
-
path: S.optional(S.String),
|
|
445
|
-
port: S.optional(S.Number),
|
|
446
|
-
})).annotate({ identifier: "FlyMachineMetrics" });
|
|
447
|
-
export const FlyMachineMount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
448
|
-
add_size_gb: S.optional(S.Number),
|
|
449
|
-
add_size_percent: S.optional(S.Number),
|
|
450
|
-
encrypted: S.optional(S.Boolean),
|
|
451
|
-
extend_threshold_percent: S.optional(S.Number),
|
|
452
|
-
min_add_size_gb: S.optional(S.Number),
|
|
453
|
-
name: S.optional(S.String),
|
|
454
|
-
path: S.optional(S.String),
|
|
455
|
-
size_gb: S.optional(S.Number),
|
|
456
|
-
size_gb_limit: S.optional(S.Number),
|
|
457
|
-
volume: S.optional(S.String),
|
|
458
|
-
})).annotate({ identifier: "FlyMachineMount" });
|
|
459
|
-
export const FlyMachineConfigMountsList = /*@__PURE__*/ S.Array(FlyMachineMount);
|
|
460
|
-
export const FlyMachineProcessCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
461
|
-
export const FlyMachineProcessEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
462
|
-
export const FlyMachineProcessEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
463
|
-
export const FlyMachineProcessEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
|
|
464
|
-
export const FlyMachineProcessExecList = /*@__PURE__*/ S.Array(S.String);
|
|
465
|
-
export const FlyMachineProcessSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
|
|
466
|
-
export const FlyMachineProcess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
467
|
-
cmd: S.optional(FlyMachineProcessCmdList),
|
|
468
|
-
entrypoint: S.optional(FlyMachineProcessEntrypointList),
|
|
469
|
-
env: S.optional(FlyMachineProcessEnvMap),
|
|
470
|
-
env_from: S.optional(FlyMachineProcessEnvFromList),
|
|
471
|
-
exec: S.optional(FlyMachineProcessExecList),
|
|
472
|
-
ignore_app_secrets: S.optional(S.Boolean),
|
|
473
|
-
secrets: S.optional(FlyMachineProcessSecretsList),
|
|
474
|
-
user: S.optional(S.String),
|
|
475
|
-
})).annotate({ identifier: "FlyMachineProcess" });
|
|
476
|
-
export const FlyMachineConfigProcessesList = /*@__PURE__*/ S.Array(FlyMachineProcess);
|
|
477
|
-
export const FlyMachineRootfsPersist = S.String;
|
|
478
|
-
export const FlyMachineRootfs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
|
-
persist: S.optional(FlyMachineRootfsPersist),
|
|
480
|
-
size_gb: S.optional(S.Number),
|
|
481
|
-
})).annotate({ identifier: "FlyMachineRootfs" });
|
|
482
|
-
export const FlyMachineServiceAutostopMode = S.String;
|
|
483
|
-
export const FlyMachineServiceAutostop = /*@__PURE__*/ S.Union([
|
|
484
|
-
FlyMachineServiceAutostopMode,
|
|
485
|
-
S.Boolean,
|
|
486
|
-
]);
|
|
487
|
-
export const FlyMachineServiceCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
488
|
-
export const FlyMachineServiceCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
-
grace_period: S.optional(S.String),
|
|
490
|
-
headers: S.optional(FlyMachineServiceCheckHeadersList),
|
|
491
|
-
interval: S.optional(S.String),
|
|
492
|
-
method: S.optional(S.String),
|
|
493
|
-
path: S.optional(S.String),
|
|
494
|
-
port: S.optional(S.Number),
|
|
495
|
-
protocol: S.optional(S.String),
|
|
496
|
-
timeout: S.optional(S.String),
|
|
497
|
-
tls_server_name: S.optional(S.String),
|
|
498
|
-
tls_skip_verify: S.optional(S.Boolean),
|
|
499
|
-
type: S.optional(S.String),
|
|
500
|
-
})).annotate({ identifier: "FlyMachineServiceCheck" });
|
|
501
|
-
export const FlyMachineServiceChecksList = /*@__PURE__*/ S.Array(FlyMachineServiceCheck);
|
|
502
|
-
export const FlyMachineServiceConcurrency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
503
|
-
hard_limit: S.optional(S.Number),
|
|
504
|
-
soft_limit: S.optional(S.Number),
|
|
505
|
-
type: S.optional(S.String),
|
|
506
|
-
})).annotate({
|
|
507
|
-
identifier: "FlyMachineServiceConcurrency",
|
|
508
|
-
});
|
|
509
|
-
export const FlyMachinePortHandlersList = /*@__PURE__*/ S.Array(S.String);
|
|
510
|
-
export const FlyReplayCacheType = S.String;
|
|
511
|
-
export const FlyReplayCache = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
512
|
-
allow_bypass: S.optional(S.Boolean),
|
|
513
|
-
name: S.optional(S.String),
|
|
514
|
-
path_prefix: S.optional(S.String),
|
|
515
|
-
ttl_seconds: S.optional(S.Number),
|
|
516
|
-
type: S.optional(FlyReplayCacheType),
|
|
517
|
-
})).annotate({ identifier: "FlyReplayCache" });
|
|
518
|
-
export const FlyHTTPOptionsReplayCacheList = /*@__PURE__*/ S.Array(FlyReplayCache);
|
|
519
|
-
export const FlyHTTPResponseOptionsHeadersMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
520
|
-
export const FlyHTTPResponseOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
521
|
-
headers: S.optional(FlyHTTPResponseOptionsHeadersMap),
|
|
522
|
-
pristine: S.optional(S.Boolean),
|
|
523
|
-
})).annotate({ identifier: "FlyHTTPResponseOptions" });
|
|
524
|
-
export const FlyHTTPOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
525
|
-
compress: S.optional(S.Boolean),
|
|
526
|
-
h2_backend: S.optional(S.Boolean),
|
|
527
|
-
headers_read_timeout: S.optional(S.Number),
|
|
528
|
-
idle_timeout: S.optional(S.Number),
|
|
529
|
-
replay_cache: S.optional(FlyHTTPOptionsReplayCacheList),
|
|
530
|
-
response: S.optional(FlyHTTPResponseOptions),
|
|
531
|
-
})).annotate({ identifier: "FlyHTTPOptions" });
|
|
532
|
-
export const FlyProxyProtoOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
533
|
-
version: S.optional(S.String),
|
|
534
|
-
})).annotate({ identifier: "FlyProxyProtoOptions" });
|
|
535
|
-
export const FlyTLSOptionsAlpnList = /*@__PURE__*/ S.Array(S.String);
|
|
536
|
-
export const FlyTLSOptionsVersionsList = /*@__PURE__*/ S.Array(S.String);
|
|
537
|
-
export const FlyTLSOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
538
|
-
alpn: S.optional(FlyTLSOptionsAlpnList),
|
|
539
|
-
default_self_signed: S.optional(S.Boolean),
|
|
540
|
-
versions: S.optional(FlyTLSOptionsVersionsList),
|
|
541
|
-
})).annotate({ identifier: "FlyTLSOptions" });
|
|
542
|
-
export const FlyMachinePort = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
543
|
-
end_port: S.optional(S.Number),
|
|
544
|
-
force_https: S.optional(S.Boolean),
|
|
545
|
-
handlers: S.optional(FlyMachinePortHandlersList),
|
|
546
|
-
http_options: S.optional(FlyHTTPOptions),
|
|
547
|
-
port: S.optional(S.Number),
|
|
548
|
-
proxy_proto_options: S.optional(FlyProxyProtoOptions),
|
|
549
|
-
start_port: S.optional(S.Number),
|
|
550
|
-
tls_options: S.optional(FlyTLSOptions),
|
|
551
|
-
})).annotate({ identifier: "FlyMachinePort" });
|
|
552
|
-
export const FlyMachineServicePortsList = /*@__PURE__*/ S.Array(FlyMachinePort);
|
|
553
|
-
export const FlyMachineService = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
554
|
-
autostart: S.optional(S.Boolean),
|
|
555
|
-
autostop: S.optional(FlyMachineServiceAutostop),
|
|
556
|
-
checks: S.optional(FlyMachineServiceChecksList),
|
|
557
|
-
concurrency: S.optional(FlyMachineServiceConcurrency),
|
|
558
|
-
force_instance_description: S.optional(S.String),
|
|
559
|
-
force_instance_key: S.optional(S.String),
|
|
560
|
-
internal_port: S.optional(S.Number),
|
|
561
|
-
min_machines_running: S.optional(S.Number),
|
|
562
|
-
ports: S.optional(FlyMachineServicePortsList),
|
|
563
|
-
protocol: S.optional(S.String),
|
|
564
|
-
})).annotate({ identifier: "FlyMachineService" });
|
|
565
|
-
export const FlyMachineConfigServicesList = /*@__PURE__*/ S.Array(FlyMachineService);
|
|
566
|
-
export const FlyMachineSpot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
567
|
-
max_price_fraction: S.optional(S.Number),
|
|
568
|
-
})).annotate({ identifier: "FlyMachineSpot" });
|
|
569
|
-
export const FlyMachineConfigStandbysList = /*@__PURE__*/ S.Array(S.String);
|
|
570
|
-
export const FlyStatic = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
571
|
-
guest_path: S.String,
|
|
572
|
-
index_document: S.optional(S.String),
|
|
573
|
-
tigris_bucket: S.optional(S.String),
|
|
574
|
-
url_prefix: S.String,
|
|
575
|
-
})).annotate({ identifier: "FlyStatic" });
|
|
576
|
-
export const FlyMachineConfigStaticsList = /*@__PURE__*/ S.Array(FlyStatic);
|
|
577
|
-
export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
578
|
-
auto_destroy: S.optional(S.Boolean),
|
|
579
|
-
cache_drive: S.optional(FlyMachineCacheDrive),
|
|
580
|
-
checks: S.optional(FlyMachineConfigChecksMap),
|
|
581
|
-
containers: S.optional(FlyMachineConfigContainersList),
|
|
582
|
-
disable_machine_autostart: S.optional(S.Boolean),
|
|
583
|
-
dns: S.optional(FlyDNSConfig),
|
|
584
|
-
env: S.optional(FlyMachineConfigEnvMap),
|
|
585
|
-
files: S.optional(FlyMachineConfigFilesList),
|
|
586
|
-
guest: S.optional(FlyMachineGuest),
|
|
587
|
-
image: S.optional(S.String),
|
|
588
|
-
init: S.optional(FlyMachineInit),
|
|
589
|
-
metadata: S.optional(FlyMachineConfigMetadataMap),
|
|
590
|
-
metrics: S.optional(FlyMachineMetrics),
|
|
591
|
-
mounts: S.optional(FlyMachineConfigMountsList),
|
|
592
|
-
processes: S.optional(FlyMachineConfigProcessesList),
|
|
593
|
-
restart: S.optional(FlyMachineRestart),
|
|
594
|
-
rootfs: S.optional(FlyMachineRootfs),
|
|
595
|
-
schedule: S.optional(S.String),
|
|
596
|
-
services: S.optional(FlyMachineConfigServicesList),
|
|
597
|
-
size: S.optional(S.String),
|
|
598
|
-
spot: S.optional(FlyMachineSpot),
|
|
599
|
-
standbys: S.optional(FlyMachineConfigStandbysList),
|
|
600
|
-
statics: S.optional(FlyMachineConfigStaticsList),
|
|
601
|
-
stop_config: S.optional(FlyStopConfig),
|
|
602
|
-
})).annotate({ identifier: "FlyMachineConfig" });
|
|
603
|
-
export const CreateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
604
|
-
app_name: S.String.pipe(T.Label()),
|
|
605
|
-
config: S.optional(FlyMachineConfig),
|
|
606
|
-
lease_ttl: S.optional(S.Number),
|
|
607
|
-
min_secrets_version: S.optional(S.Number),
|
|
608
|
-
name: S.optional(S.String),
|
|
609
|
-
region: S.optional(S.String),
|
|
610
|
-
skip_launch: S.optional(S.Boolean),
|
|
611
|
-
skip_secrets: S.optional(S.Boolean),
|
|
612
|
-
skip_service_registration: S.optional(S.Boolean),
|
|
613
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({ identifier: "CreateMachineRequest" });
|
|
614
|
-
export const CheckStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
-
name: S.optional(S.String),
|
|
616
|
-
output: S.optional(S.String),
|
|
617
|
-
status: S.optional(S.String),
|
|
618
|
-
updated_at: S.optional(S.String),
|
|
619
|
-
})).annotate({ identifier: "CheckStatus" });
|
|
620
|
-
export const MachineChecksList = /*@__PURE__*/ S.Array(CheckStatus);
|
|
621
|
-
export const MachineEvent = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
622
|
-
id: S.optional(S.String),
|
|
623
|
-
request: S.optional(S.Unknown),
|
|
624
|
-
source: S.optional(S.String),
|
|
625
|
-
status: S.optional(S.String),
|
|
626
|
-
timestamp: S.optional(S.Number),
|
|
627
|
-
type: S.optional(S.String),
|
|
628
|
-
})).annotate({ identifier: "MachineEvent" });
|
|
629
|
-
export const MachineEventsList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
630
|
-
export const MachineHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
631
|
-
export const MachineHostStatus = S.String;
|
|
632
|
-
export const ImageRefLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
633
|
-
export const ImageRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
634
|
-
digest: S.optional(S.String),
|
|
635
|
-
labels: S.optional(ImageRefLabelsMap),
|
|
636
|
-
registry: S.optional(S.String),
|
|
637
|
-
repository: S.optional(S.String),
|
|
638
|
-
tag: S.optional(S.String),
|
|
639
|
-
})).annotate({ identifier: "ImageRef" });
|
|
640
|
-
export const StrippedLease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
641
|
-
description: S.optional(S.String),
|
|
642
|
-
expires_at: S.optional(S.Number),
|
|
643
|
-
owner: S.optional(S.String),
|
|
644
|
-
})).annotate({ identifier: "StrippedLease" });
|
|
645
|
-
export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
646
|
-
checks: S.optional(MachineChecksList),
|
|
647
|
-
config: S.optional(FlyMachineConfig),
|
|
648
|
-
cordoned: S.optional(S.Boolean),
|
|
649
|
-
created_at: S.optional(S.String),
|
|
650
|
-
events: S.optional(MachineEventsList),
|
|
651
|
-
host_features: S.optional(MachineHostFeaturesList),
|
|
652
|
-
host_status: S.optional(MachineHostStatus),
|
|
653
|
-
id: S.optional(S.String),
|
|
654
|
-
image_ref: S.optional(ImageRef),
|
|
655
|
-
incomplete_config: S.optional(FlyMachineConfig),
|
|
656
|
-
instance_id: S.optional(S.String),
|
|
657
|
-
lease: S.optional(StrippedLease),
|
|
658
|
-
name: S.optional(S.String),
|
|
659
|
-
nonce: S.optional(S.String),
|
|
660
|
-
private_ip: S.optional(S.String),
|
|
661
|
-
region: S.optional(S.String),
|
|
662
|
-
state: S.optional(S.String),
|
|
663
|
-
updated_at: S.optional(S.String),
|
|
664
|
-
version: S.optional(S.String),
|
|
665
|
-
})).annotate({ identifier: "Machine" });
|
|
666
|
-
export const CreateMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
667
|
-
app_name: S.String.pipe(T.Label()),
|
|
668
|
-
machine_id: S.String.pipe(T.Label()),
|
|
669
|
-
description: S.optional(S.String),
|
|
670
|
-
ttl: S.optional(S.Number.pipe(T.Query())),
|
|
671
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
672
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }))).annotate({
|
|
673
|
-
identifier: "CreateMachineLeaseRequest",
|
|
674
|
-
});
|
|
675
|
-
export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
676
|
-
description: S.optional(S.String),
|
|
677
|
-
expires_at: S.optional(S.Number),
|
|
678
|
-
nonce: S.optional(S.String),
|
|
679
|
-
owner: S.optional(S.String),
|
|
680
|
-
version: S.optional(S.String),
|
|
681
|
-
})).annotate({ identifier: "Lease" });
|
|
682
|
-
export const MachineLease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
683
|
-
status: S.optional(S.String),
|
|
684
|
-
data: S.optional(Lease),
|
|
685
|
-
})).annotate({ identifier: "MachineLease" });
|
|
686
|
-
export const CreatePostgresRequestPgMajorVersion = S.String;
|
|
687
|
-
export const CreatePostgresRequestPlan = S.String;
|
|
688
|
-
export const CreatePostgresRequestPoolMode = S.String;
|
|
689
|
-
export const CreatePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
690
|
-
disk_size_gb: S.optional(S.Number),
|
|
691
|
-
name: S.optional(S.String),
|
|
692
|
-
org_slug: S.String,
|
|
693
|
-
pg_major_version: S.optional(CreatePostgresRequestPgMajorVersion),
|
|
694
|
-
plan: CreatePostgresRequestPlan,
|
|
695
|
-
pool_mode: S.optional(CreatePostgresRequestPoolMode),
|
|
696
|
-
postgis_enabled: S.optional(S.Boolean),
|
|
697
|
-
region: S.String,
|
|
698
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres", code: 200 }))).annotate({ identifier: "CreatePostgresRequest" });
|
|
699
|
-
export const PostgresAttachedApp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
700
|
-
name: S.optional(S.String),
|
|
701
|
-
})).annotate({ identifier: "PostgresAttachedApp" });
|
|
702
|
-
export const PostgresClusterAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
|
|
703
|
-
export const PostgresClusterCpuKind = S.String;
|
|
704
|
-
export const PostgresEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
705
|
-
host: S.optional(S.String),
|
|
706
|
-
port: S.optional(S.Number),
|
|
707
|
-
})).annotate({ identifier: "PostgresEndpoint" });
|
|
708
|
-
export const PostgresNodeEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
709
|
-
direct: S.optional(PostgresEndpoint),
|
|
710
|
-
pooler: S.optional(PostgresEndpoint),
|
|
711
|
-
})).annotate({ identifier: "PostgresNodeEndpoints" });
|
|
712
|
-
export const PostgresClusterEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
713
|
-
primary: S.optional(PostgresNodeEndpoints),
|
|
714
|
-
})).annotate({ identifier: "PostgresClusterEndpoints" });
|
|
715
|
-
export const OrganizationRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
716
|
-
name: S.optional(S.String),
|
|
717
|
-
slug: S.optional(S.String),
|
|
718
|
-
})).annotate({ identifier: "OrganizationRef" });
|
|
719
|
-
export const PostgresClusterPgMajorVersion = S.String;
|
|
720
|
-
export const PostgresClusterPlan = S.String;
|
|
721
|
-
export const PostgresClusterStatus = S.String;
|
|
722
|
-
export const PostgresCluster = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
723
|
-
attached_apps: S.optional(PostgresClusterAttachedAppsList),
|
|
724
|
-
cpu_kind: S.optional(PostgresClusterCpuKind),
|
|
725
|
-
cpus: S.optional(S.Number),
|
|
726
|
-
created_at: S.optional(S.String),
|
|
727
|
-
disk_size_gb: S.optional(S.Number),
|
|
728
|
-
endpoints: S.optional(PostgresClusterEndpoints),
|
|
729
|
-
id: S.optional(S.String),
|
|
730
|
-
memory_mb: S.optional(S.Number),
|
|
731
|
-
name: S.optional(S.String),
|
|
732
|
-
organization: S.optional(OrganizationRef),
|
|
733
|
-
pg_major_version: S.optional(PostgresClusterPgMajorVersion),
|
|
734
|
-
plan: S.optional(PostgresClusterPlan),
|
|
735
|
-
postgis_enabled: S.optional(S.Boolean),
|
|
736
|
-
region: S.optional(S.String),
|
|
737
|
-
replicas: S.optional(S.Number),
|
|
738
|
-
status: S.optional(PostgresClusterStatus),
|
|
739
|
-
storage_provisioned_bytes: S.optional(S.NullOr(S.Number)),
|
|
740
|
-
storage_used_bytes: S.optional(S.NullOr(S.Number)),
|
|
741
|
-
})).annotate({ identifier: "PostgresCluster" });
|
|
742
|
-
export const ShowPostgresClusterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
743
|
-
data: S.optional(PostgresCluster),
|
|
744
|
-
})).annotate({
|
|
745
|
-
identifier: "ShowPostgresClusterResponse",
|
|
746
|
-
});
|
|
747
|
-
export const CreatePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
748
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
749
|
-
app_name: S.String,
|
|
750
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/attachments", code: 200 }))).annotate({
|
|
751
|
-
identifier: "CreatePostgresAttachmentRequest",
|
|
752
|
-
});
|
|
753
|
-
export const PostgresAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
754
|
-
app_name: S.optional(S.String),
|
|
755
|
-
attached_at: S.optional(S.String),
|
|
756
|
-
postgres_cluster_id: S.optional(S.String),
|
|
757
|
-
})).annotate({ identifier: "PostgresAttachment" });
|
|
758
|
-
export const CreatePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
759
|
-
data: S.optional(PostgresAttachment),
|
|
760
|
-
})).annotate({
|
|
761
|
-
identifier: "CreatePostgresAttachmentResponse",
|
|
762
|
-
});
|
|
763
|
-
export const CreatePostgresBackupRequestType = S.String;
|
|
764
|
-
export const CreatePostgresBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
766
|
-
type: CreatePostgresBackupRequestType,
|
|
767
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/backups", code: 200 }))).annotate({
|
|
768
|
-
identifier: "CreatePostgresBackupRequest",
|
|
769
|
-
});
|
|
770
|
-
export const CreatePostgresBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
771
|
-
identifier: "CreatePostgresBackupResponse",
|
|
772
|
-
});
|
|
773
|
-
export const CreatePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
774
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
775
|
-
name: S.String,
|
|
776
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/databases", code: 200 }))).annotate({
|
|
777
|
-
identifier: "CreatePostgresDatabaseRequest",
|
|
778
|
-
});
|
|
779
|
-
export const PostgresDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
780
|
-
name: S.optional(S.String),
|
|
781
|
-
})).annotate({ identifier: "PostgresDatabase" });
|
|
782
|
-
export const PostgresDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
783
|
-
data: S.optional(PostgresDatabase),
|
|
784
|
-
})).annotate({ identifier: "PostgresDatabaseResponse" });
|
|
785
|
-
export const CreatePostgresUserRequestRole = S.String;
|
|
786
|
-
export const CreatePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
787
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
788
|
-
role: CreatePostgresUserRequestRole,
|
|
789
|
-
username: S.String,
|
|
790
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/users", code: 200 }))).annotate({
|
|
791
|
-
identifier: "CreatePostgresUserRequest",
|
|
792
|
-
});
|
|
793
|
-
export const PostgresUserRole = S.String;
|
|
794
|
-
export const PostgresUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
795
|
-
role: S.optional(PostgresUserRole),
|
|
796
|
-
username: S.optional(S.String),
|
|
797
|
-
})).annotate({ identifier: "PostgresUser" });
|
|
798
|
-
export const CreatePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
799
|
-
data: S.optional(PostgresUser),
|
|
800
|
-
})).annotate({
|
|
801
|
-
identifier: "CreatePostgresUserResponse",
|
|
802
|
-
});
|
|
803
|
-
export const CreateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
804
|
-
app_name: S.String.pipe(T.Label()),
|
|
805
|
-
secret_name: S.String.pipe(T.Label()),
|
|
806
|
-
value: S.optional(S.String),
|
|
807
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 }))).annotate({ identifier: "CreateSecretRequest" });
|
|
808
|
-
export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
809
|
-
Version: S.optional(S.Number),
|
|
810
|
-
created_at: S.optional(S.String),
|
|
811
|
-
digest: S.optional(S.String),
|
|
812
|
-
name: S.optional(S.String),
|
|
813
|
-
updated_at: S.optional(S.String),
|
|
814
|
-
value: S.optional(S.String),
|
|
815
|
-
version: S.optional(S.Number),
|
|
816
|
-
})).annotate({ identifier: "SetAppSecretResponse" });
|
|
817
|
-
export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
818
|
-
app_name: S.String.pipe(T.Label()),
|
|
819
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
820
|
-
compute: S.optional(FlyMachineGuest),
|
|
821
|
-
compute_image: S.optional(S.String),
|
|
822
|
-
encrypted: S.optional(S.Boolean),
|
|
823
|
-
fstype: S.optional(S.String),
|
|
824
|
-
name: S.optional(S.String),
|
|
825
|
-
region: S.optional(S.String),
|
|
826
|
-
require_unique_zone: S.optional(S.Boolean),
|
|
827
|
-
size_gb: S.optional(S.Number),
|
|
828
|
-
snapshot_id: S.optional(S.String),
|
|
829
|
-
snapshot_retention: S.optional(S.Number),
|
|
830
|
-
source_volume_id: S.optional(S.String),
|
|
831
|
-
unique_zone_app_wide: S.optional(S.Boolean),
|
|
832
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({ identifier: "CreateVolumeRequest" });
|
|
833
|
-
export const VolumeHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
834
|
-
export const VolumeHostStatus = S.String;
|
|
835
|
-
export const VolumeRequiredHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
836
|
-
export const VolumeType = S.String;
|
|
837
|
-
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
838
|
-
attached_alloc_id: S.optional(S.String),
|
|
839
|
-
attached_machine_id: S.optional(S.String),
|
|
840
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
841
|
-
block_size: S.optional(S.Number),
|
|
842
|
-
blocks: S.optional(S.Number),
|
|
843
|
-
blocks_avail: S.optional(S.Number),
|
|
844
|
-
blocks_free: S.optional(S.Number),
|
|
845
|
-
bytes_total: S.optional(S.Number),
|
|
846
|
-
bytes_used: S.optional(S.Number),
|
|
847
|
-
created_at: S.optional(S.String),
|
|
848
|
-
encrypted: S.optional(S.Boolean),
|
|
849
|
-
fstype: S.optional(S.String),
|
|
850
|
-
host_features: S.optional(VolumeHostFeaturesList),
|
|
851
|
-
host_status: S.optional(VolumeHostStatus),
|
|
852
|
-
id: S.optional(S.String),
|
|
853
|
-
name: S.optional(S.String),
|
|
854
|
-
region: S.optional(S.String),
|
|
855
|
-
required_host_features: S.optional(VolumeRequiredHostFeaturesList),
|
|
856
|
-
size_gb: S.optional(S.Number),
|
|
857
|
-
snapshot_retention: S.optional(S.Number),
|
|
858
|
-
state: S.optional(S.String),
|
|
859
|
-
type: S.optional(VolumeType),
|
|
860
|
-
zone: S.optional(S.String),
|
|
861
|
-
})).annotate({ identifier: "Volume" });
|
|
862
|
-
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
863
|
-
app_name: S.String.pipe(T.Label()),
|
|
864
|
-
volume_id: S.String.pipe(T.Label()),
|
|
865
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots", code: 200 }))).annotate({
|
|
866
|
-
identifier: "CreateVolumeSnapshotRequest",
|
|
867
|
-
});
|
|
868
|
-
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
869
|
-
identifier: "CreateVolumeSnapshotResponse",
|
|
870
|
-
});
|
|
871
|
-
export const DecryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
872
|
-
app_name: S.String.pipe(T.Label()),
|
|
873
|
-
secret_name: S.String.pipe(T.Label()),
|
|
874
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
875
|
-
associated_data: S.optional(S.String),
|
|
876
|
-
ciphertext: S.optional(S.String),
|
|
877
|
-
}).pipe(T.Http({
|
|
878
|
-
method: "POST",
|
|
879
|
-
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/decrypt",
|
|
880
|
-
code: 200,
|
|
881
|
-
}))).annotate({ identifier: "DecryptSecretKeyRequest" });
|
|
882
|
-
export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
883
|
-
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
884
|
-
})).annotate({ identifier: "DecryptSecretkeyResponse" });
|
|
885
|
-
export const DeleteAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
886
|
-
app_name: S.String.pipe(T.Label()),
|
|
887
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({ identifier: "DeleteAppRequest" });
|
|
888
|
-
export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
889
|
-
identifier: "DeleteAppResponse",
|
|
890
|
-
});
|
|
891
|
-
export const DeleteAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
892
|
-
app_name: S.String.pipe(T.Label()),
|
|
893
|
-
hostname: S.String.pipe(T.Label()),
|
|
894
|
-
}).pipe(T.Http({
|
|
895
|
-
method: "DELETE",
|
|
896
|
-
uri: "/v1/apps/{app_name}/certificates/{hostname}/acme",
|
|
897
|
-
code: 200,
|
|
898
|
-
}))).annotate({
|
|
899
|
-
identifier: "DeleteAppAcmeCertificateRequest",
|
|
900
|
-
});
|
|
901
|
-
export const DeleteAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
902
|
-
app_name: S.String.pipe(T.Label()),
|
|
903
|
-
hostname: S.String.pipe(T.Label()),
|
|
904
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/certificates/{hostname}", code: 200 }))).annotate({
|
|
905
|
-
identifier: "DeleteAppCertificateRequest",
|
|
906
|
-
});
|
|
907
|
-
export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
908
|
-
identifier: "DeleteAppCertificateResponse",
|
|
909
|
-
});
|
|
910
|
-
export const DeleteAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
911
|
-
app_name: S.String.pipe(T.Label()),
|
|
912
|
-
hostname: S.String.pipe(T.Label()),
|
|
913
|
-
}).pipe(T.Http({
|
|
914
|
-
method: "DELETE",
|
|
915
|
-
uri: "/v1/apps/{app_name}/certificates/{hostname}/custom",
|
|
916
|
-
code: 200,
|
|
917
|
-
}))).annotate({
|
|
918
|
-
identifier: "DeleteAppCustomCertificateRequest",
|
|
919
|
-
});
|
|
920
|
-
export const DestroyCustomCertificateResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
921
|
-
export const DestroyCustomCertificateResponseValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
922
|
-
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
923
|
-
acme_requested: S.optional(S.Boolean),
|
|
924
|
-
certificates: S.optional(DestroyCustomCertificateResponseCertificatesList),
|
|
925
|
-
configured: S.optional(S.Boolean),
|
|
926
|
-
dns_provider: S.optional(S.String),
|
|
927
|
-
dns_requirements: S.optional(DNSRequirements),
|
|
928
|
-
hostname: S.optional(S.String),
|
|
929
|
-
rate_limited_until: S.optional(S.String),
|
|
930
|
-
status: S.optional(S.String),
|
|
931
|
-
validation: S.optional(CertificateValidation),
|
|
932
|
-
validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
|
|
933
|
-
warning: S.optional(S.String),
|
|
934
|
-
})).annotate({
|
|
935
|
-
identifier: "DestroyCustomCertificateResponse",
|
|
936
|
-
});
|
|
937
|
-
export const DeleteAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
938
|
-
app_name: S.String.pipe(T.Label()),
|
|
939
|
-
ip: S.String.pipe(T.Label()),
|
|
940
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/ip_assignments/{ip}", code: 200 }))).annotate({
|
|
941
|
-
identifier: "DeleteAppIPAssignmentRequest",
|
|
942
|
-
});
|
|
943
|
-
export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
944
|
-
identifier: "DeleteAppIPAssignmentResponse",
|
|
945
|
-
});
|
|
946
|
-
export const DeleteMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
947
|
-
app_name: S.String.pipe(T.Label()),
|
|
948
|
-
machine_id: S.String.pipe(T.Label()),
|
|
949
|
-
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
950
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
951
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 }))).annotate({ identifier: "DeleteMachineRequest" });
|
|
952
|
-
export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
953
|
-
identifier: "DeleteMachineResponse",
|
|
954
|
-
});
|
|
955
|
-
export const DeleteMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
956
|
-
app_name: S.String.pipe(T.Label()),
|
|
957
|
-
machine_id: S.String.pipe(T.Label()),
|
|
958
|
-
key: S.String.pipe(T.Label()),
|
|
959
|
-
}).pipe(T.Http({
|
|
960
|
-
method: "DELETE",
|
|
961
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
962
|
-
code: 200,
|
|
963
|
-
}))).annotate({
|
|
964
|
-
identifier: "DeleteMachineMetadataRequest",
|
|
965
|
-
});
|
|
966
|
-
export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
967
|
-
identifier: "DeleteMachineMetadataResponse",
|
|
968
|
-
});
|
|
969
|
-
export const DeletePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
970
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
971
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/postgres/{postgres_cluster_id}", code: 200 }))).annotate({ identifier: "DeletePostgresRequest" });
|
|
972
|
-
export const DeletePostgresResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
973
|
-
identifier: "DeletePostgresResponse",
|
|
974
|
-
});
|
|
975
|
-
export const DeletePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
976
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
977
|
-
app_name: S.String.pipe(T.Label()),
|
|
978
|
-
}).pipe(T.Http({
|
|
979
|
-
method: "DELETE",
|
|
980
|
-
uri: "/v1/postgres/{postgres_cluster_id}/attachments/{app_name}",
|
|
981
|
-
code: 200,
|
|
982
|
-
}))).annotate({
|
|
983
|
-
identifier: "DeletePostgresAttachmentRequest",
|
|
984
|
-
});
|
|
985
|
-
export const DeletePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
986
|
-
identifier: "DeletePostgresAttachmentResponse",
|
|
987
|
-
});
|
|
988
|
-
export const DeletePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
989
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
990
|
-
database_name: S.String.pipe(T.Label()),
|
|
991
|
-
}).pipe(T.Http({
|
|
992
|
-
method: "DELETE",
|
|
993
|
-
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}",
|
|
994
|
-
code: 200,
|
|
995
|
-
}))).annotate({
|
|
996
|
-
identifier: "DeletePostgresDatabaseRequest",
|
|
997
|
-
});
|
|
998
|
-
export const DeletePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
999
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1000
|
-
username: S.String.pipe(T.Label()),
|
|
1001
|
-
}).pipe(T.Http({
|
|
1002
|
-
method: "DELETE",
|
|
1003
|
-
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
|
|
1004
|
-
code: 200,
|
|
1005
|
-
}))).annotate({
|
|
1006
|
-
identifier: "DeletePostgresUserRequest",
|
|
1007
|
-
});
|
|
1008
|
-
export const DeletePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1009
|
-
identifier: "DeletePostgresUserResponse",
|
|
1010
|
-
});
|
|
1011
|
-
export const DeleteSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1012
|
-
app_name: S.String.pipe(T.Label()),
|
|
1013
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1014
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 }))).annotate({ identifier: "DeleteSecretRequest" });
|
|
1015
|
-
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1016
|
-
Version: S.optional(S.Number),
|
|
1017
|
-
version: S.optional(S.Number),
|
|
1018
|
-
})).annotate({ identifier: "DeleteAppSecretResponse" });
|
|
1019
|
-
export const DeleteSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1020
|
-
app_name: S.String.pipe(T.Label()),
|
|
1021
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1022
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }))).annotate({ identifier: "DeleteSecretKeyRequest" });
|
|
1023
|
-
export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1024
|
-
Version: S.optional(S.Number),
|
|
1025
|
-
version: S.optional(S.Number),
|
|
1026
|
-
})).annotate({ identifier: "DeleteSecretkeyResponse" });
|
|
1027
|
-
export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1028
|
-
app_name: S.String.pipe(T.Label()),
|
|
1029
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1030
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 }))).annotate({ identifier: "DeleteVolumeRequest" });
|
|
1031
|
-
export const DisablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1033
|
-
database_name: S.String.pipe(T.Label()),
|
|
1034
|
-
extension_name: S.String.pipe(T.Label()),
|
|
1035
|
-
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
1036
|
-
}).pipe(T.Http({
|
|
1037
|
-
method: "DELETE",
|
|
1038
|
-
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}",
|
|
1039
|
-
code: 200,
|
|
1040
|
-
}))).annotate({
|
|
1041
|
-
identifier: "DisablePostgresExtensionRequest",
|
|
1042
|
-
});
|
|
1043
|
-
export const DisablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1044
|
-
identifier: "DisablePostgresExtensionResponse",
|
|
1045
|
-
});
|
|
1046
|
-
export const EnablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1047
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1048
|
-
database_name: S.String.pipe(T.Label()),
|
|
1049
|
-
create_schema: S.optional(S.Boolean),
|
|
1050
|
-
name: S.String,
|
|
1051
|
-
schema: S.optional(S.String),
|
|
1052
|
-
}).pipe(T.Http({
|
|
1053
|
-
method: "POST",
|
|
1054
|
-
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
|
|
1055
|
-
code: 200,
|
|
1056
|
-
}))).annotate({
|
|
1057
|
-
identifier: "EnablePostgresExtensionRequest",
|
|
1058
|
-
});
|
|
1059
|
-
export const EnablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "EnablePostgresExtensionResponse" });
|
|
1060
|
-
export const EncryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1061
|
-
app_name: S.String.pipe(T.Label()),
|
|
1062
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1063
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1064
|
-
associated_data: S.optional(S.String),
|
|
1065
|
-
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1066
|
-
}).pipe(T.Http({
|
|
1067
|
-
method: "POST",
|
|
1068
|
-
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/encrypt",
|
|
1069
|
-
code: 200,
|
|
1070
|
-
}))).annotate({ identifier: "EncryptSecretKeyRequest" });
|
|
1071
|
-
export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1072
|
-
ciphertext: S.optional(S.String),
|
|
1073
|
-
})).annotate({ identifier: "EncryptSecretkeyResponse" });
|
|
1074
|
-
export const ExecMachineRequestCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
1075
|
-
export const ExecMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1076
|
-
app_name: S.String.pipe(T.Label()),
|
|
1077
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1078
|
-
cmd: S.optional(S.String),
|
|
1079
|
-
command: S.optional(ExecMachineRequestCommandList),
|
|
1080
|
-
container: S.optional(S.String),
|
|
1081
|
-
machine: S.optional(S.Boolean),
|
|
1082
|
-
stdin: S.optional(S.String),
|
|
1083
|
-
timeout: S.optional(S.Number),
|
|
1084
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/exec", code: 200 }))).annotate({ identifier: "ExecMachineRequest" });
|
|
1085
|
-
export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1086
|
-
exit_code: S.optional(S.Number),
|
|
1087
|
-
exit_signal: S.optional(S.Number),
|
|
1088
|
-
stderr: S.optional(S.String),
|
|
1089
|
-
stdout: S.optional(S.String),
|
|
1090
|
-
})).annotate({ identifier: "Flydv1ExecResponse" });
|
|
1091
|
-
export const ExtendVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1092
|
-
app_name: S.String.pipe(T.Label()),
|
|
1093
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1094
|
-
size_gb: S.optional(S.Number),
|
|
1095
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/volumes/{volume_id}/extend", code: 200 }))).annotate({ identifier: "ExtendVolumeRequest" });
|
|
1096
|
-
export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1097
|
-
needs_restart: S.optional(S.Boolean),
|
|
1098
|
-
volume: S.optional(Volume),
|
|
1099
|
-
})).annotate({ identifier: "ExtendVolumeResponse" });
|
|
1100
|
-
export const ForkPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1101
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1102
|
-
name: S.optional(S.String),
|
|
1103
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/fork", code: 200 }))).annotate({ identifier: "ForkPostgresRequest" });
|
|
1104
|
-
export const GenerateSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1105
|
-
export const GenerateSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1106
|
-
app_name: S.String.pipe(T.Label()),
|
|
1107
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1108
|
-
type: S.optional(S.String),
|
|
1109
|
-
value: S.optional(GenerateSecretKeyRequestValueList),
|
|
1110
|
-
}).pipe(T.Http({
|
|
1111
|
-
method: "POST",
|
|
1112
|
-
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/generate",
|
|
1113
|
-
code: 200,
|
|
1114
|
-
}))).annotate({ identifier: "GenerateSecretKeyRequest" });
|
|
1115
|
-
export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1116
|
-
Version: S.optional(S.Number),
|
|
1117
|
-
created_at: S.optional(S.String),
|
|
1118
|
-
name: S.optional(S.String),
|
|
1119
|
-
public_key: S.optional(S.String),
|
|
1120
|
-
type: S.optional(S.String),
|
|
1121
|
-
updated_at: S.optional(S.String),
|
|
1122
|
-
version: S.optional(S.Number),
|
|
1123
|
-
})).annotate({ identifier: "SetSecretkeyResponse" });
|
|
1124
|
-
export const GetAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1125
|
-
app_name: S.String.pipe(T.Label()),
|
|
1126
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({ identifier: "GetAppRequest" });
|
|
1127
|
-
export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1128
|
-
internal_numeric_id: S.optional(S.Number),
|
|
1129
|
-
name: S.optional(S.String),
|
|
1130
|
-
slug: S.optional(S.String),
|
|
1131
|
-
})).annotate({ identifier: "AppOrganizationInfo" });
|
|
1132
|
-
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1133
|
-
id: S.optional(S.String),
|
|
1134
|
-
internal_numeric_id: S.optional(S.Number),
|
|
1135
|
-
machine_count: S.optional(S.Number),
|
|
1136
|
-
name: S.optional(S.String),
|
|
1137
|
-
network: S.optional(S.String),
|
|
1138
|
-
network_cidr: S.optional(S.String),
|
|
1139
|
-
organization: S.optional(AppOrganizationInfo),
|
|
1140
|
-
status: S.optional(S.String),
|
|
1141
|
-
volume_count: S.optional(S.Number),
|
|
1142
|
-
})).annotate({ identifier: "App" });
|
|
1143
|
-
export const GetAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1144
|
-
app_name: S.String.pipe(T.Label()),
|
|
1145
|
-
hostname: S.String.pipe(T.Label()),
|
|
1146
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/certificates/{hostname}", code: 200 }))).annotate({ identifier: "GetAppCertificateRequest" });
|
|
1147
|
-
export const GetCurrentTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/tokens/current", code: 200 }))).annotate({ identifier: "GetCurrentTokenRequest" });
|
|
1148
|
-
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
1149
|
-
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1150
|
-
apps: S.optional(MainTokenInfoAppsList),
|
|
1151
|
-
org_slug: S.optional(S.String),
|
|
1152
|
-
organization: S.optional(S.String),
|
|
1153
|
-
restricted_to_machine: S.optional(S.String),
|
|
1154
|
-
source_machine_id: S.optional(S.String),
|
|
1155
|
-
token_id: S.optional(S.String),
|
|
1156
|
-
user: S.optional(S.String),
|
|
1157
|
-
})).annotate({ identifier: "MainTokenInfo" });
|
|
1158
|
-
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
1159
|
-
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1160
|
-
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
1161
|
-
})).annotate({ identifier: "CurrentTokenResponse" });
|
|
1162
|
-
export const GetMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1163
|
-
app_name: S.String.pipe(T.Label()),
|
|
1164
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1165
|
-
version: S.optional(S.String.pipe(T.Query())),
|
|
1166
|
-
include_leases: S.optional(S.Boolean.pipe(T.Query())),
|
|
1167
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 }))).annotate({ identifier: "GetMachineRequest" });
|
|
1168
|
-
export const GetMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
|
-
app_name: S.String.pipe(T.Label()),
|
|
1170
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1171
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }))).annotate({ identifier: "GetMachineLeaseRequest" });
|
|
1172
|
-
export const GetMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1173
|
-
app_name: S.String.pipe(T.Label()),
|
|
1174
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1175
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/memory", code: 200 }))).annotate({ identifier: "GetMachineMemoryRequest" });
|
|
1176
|
-
export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1177
|
-
available_mb: S.optional(S.Number),
|
|
1178
|
-
limit_mb: S.optional(S.Number),
|
|
1179
|
-
})).annotate({ identifier: "MainMemoryResponse" });
|
|
1180
|
-
export const GetMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1181
|
-
app_name: S.String.pipe(T.Label()),
|
|
1182
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1183
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata", code: 200 }))).annotate({
|
|
1184
|
-
identifier: "GetMachineMetadataRequest",
|
|
1185
|
-
});
|
|
1186
|
-
export const GetMachineMetadataResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1187
|
-
export const GetMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => GetMachineMetadataResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
|
|
1188
|
-
identifier: "GetMachineMetadataResponse",
|
|
1189
|
-
});
|
|
1190
|
-
export const GetMachineMetadataKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1191
|
-
app_name: S.String.pipe(T.Label()),
|
|
1192
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1193
|
-
key: S.String.pipe(T.Label()),
|
|
1194
|
-
}).pipe(T.Http({
|
|
1195
|
-
method: "GET",
|
|
1196
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1197
|
-
code: 200,
|
|
1198
|
-
}))).annotate({
|
|
1199
|
-
identifier: "GetMachineMetadataKeyRequest",
|
|
1200
|
-
});
|
|
1201
|
-
export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1202
|
-
value: S.optional(S.String),
|
|
1203
|
-
})).annotate({ identifier: "MetadataValueResponse" });
|
|
1204
|
-
export const PlacementWeights = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1205
|
-
export const GetPlacementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1206
|
-
compute: S.optional(FlyMachineGuest),
|
|
1207
|
-
count: S.optional(S.Number),
|
|
1208
|
-
org_slug: S.String,
|
|
1209
|
-
region: S.optional(S.String),
|
|
1210
|
-
volume_name: S.optional(S.String),
|
|
1211
|
-
volume_size_bytes: S.optional(S.Number),
|
|
1212
|
-
weights: S.optional(PlacementWeights),
|
|
1213
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/platform/placements", code: 200 }))).annotate({ identifier: "GetPlacementsRequest" });
|
|
1214
|
-
export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1215
|
-
concurrency: S.optional(S.Number),
|
|
1216
|
-
count: S.optional(S.Number),
|
|
1217
|
-
region: S.optional(S.String),
|
|
1218
|
-
})).annotate({ identifier: "PlacementRegionPlacement" });
|
|
1219
|
-
export const MainGetPlacementsResponseRegionsList = /*@__PURE__*/ S.Array(PlacementRegionPlacement);
|
|
1220
|
-
export const MainGetPlacementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1221
|
-
regions: S.optional(MainGetPlacementsResponseRegionsList),
|
|
1222
|
-
})).annotate({
|
|
1223
|
-
identifier: "MainGetPlacementsResponse",
|
|
1224
|
-
});
|
|
1225
|
-
export const GetPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1226
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1227
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}", code: 200 }))).annotate({ identifier: "GetPostgresRequest" });
|
|
1228
|
-
export const GetRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/platform/regions", code: 200 }))).annotate({ identifier: "GetRegionsRequest" });
|
|
1229
|
-
export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1230
|
-
code: S.optional(S.String),
|
|
1231
|
-
deprecated: S.optional(S.Boolean),
|
|
1232
|
-
gateway_available: S.optional(S.Boolean),
|
|
1233
|
-
geo_region: S.optional(S.String),
|
|
1234
|
-
latitude: S.optional(S.Number),
|
|
1235
|
-
longitude: S.optional(S.Number),
|
|
1236
|
-
mpg_available: S.optional(S.Boolean),
|
|
1237
|
-
name: S.optional(S.String),
|
|
1238
|
-
requires_paid_plan: S.optional(S.Boolean),
|
|
1239
|
-
})).annotate({ identifier: "MainRegionRow" });
|
|
1240
|
-
export const MainRegionResponseRegionsList = /*@__PURE__*/ S.Array(MainRegionRow);
|
|
1241
|
-
export const MainRegionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1242
|
-
nearest: S.optional(S.String),
|
|
1243
|
-
regions: S.optional(MainRegionResponseRegionsList),
|
|
1244
|
-
})).annotate({ identifier: "MainRegionResponse" });
|
|
1245
|
-
export const GetSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1246
|
-
app_name: S.String.pipe(T.Label()),
|
|
1247
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1248
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1249
|
-
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1250
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 }))).annotate({ identifier: "GetSecretRequest" });
|
|
1251
|
-
export const AppSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1252
|
-
created_at: S.optional(S.String),
|
|
1253
|
-
digest: S.optional(S.String),
|
|
1254
|
-
name: S.optional(S.String),
|
|
1255
|
-
updated_at: S.optional(S.String),
|
|
1256
|
-
value: S.optional(S.String),
|
|
1257
|
-
})).annotate({ identifier: "AppSecret" });
|
|
1258
|
-
export const GetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1259
|
-
app_name: S.String.pipe(T.Label()),
|
|
1260
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1261
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1262
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }))).annotate({ identifier: "GetSecretKeyRequest" });
|
|
1263
|
-
export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1264
|
-
created_at: S.optional(S.String),
|
|
1265
|
-
name: S.optional(S.String),
|
|
1266
|
-
public_key: S.optional(S.String),
|
|
1267
|
-
type: S.optional(S.String),
|
|
1268
|
-
updated_at: S.optional(S.String),
|
|
1269
|
-
})).annotate({ identifier: "SecretKey" });
|
|
1270
|
-
export const GetVolumeByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1271
|
-
app_name: S.String.pipe(T.Label()),
|
|
1272
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1273
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 }))).annotate({ identifier: "GetVolumeByIdRequest" });
|
|
1274
|
-
export const ListAppCertificatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1275
|
-
app_name: S.String.pipe(T.Label()),
|
|
1276
|
-
filter: S.optional(S.String.pipe(T.Query())),
|
|
1277
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1278
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1279
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/certificates", code: 200 }))).annotate({
|
|
1280
|
-
identifier: "ListAppCertificatesRequest",
|
|
1281
|
-
});
|
|
1282
|
-
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1283
|
-
acme_alpn_configured: S.optional(S.Boolean),
|
|
1284
|
-
acme_dns_configured: S.optional(S.Boolean),
|
|
1285
|
-
acme_http_configured: S.optional(S.Boolean),
|
|
1286
|
-
acme_requested: S.optional(S.Boolean),
|
|
1287
|
-
configured: S.optional(S.Boolean),
|
|
1288
|
-
created_at: S.optional(S.String),
|
|
1289
|
-
dns_provider: S.optional(S.String),
|
|
1290
|
-
has_custom_certificate: S.optional(S.Boolean),
|
|
1291
|
-
has_fly_certificate: S.optional(S.Boolean),
|
|
1292
|
-
hostname: S.optional(S.String),
|
|
1293
|
-
ownership_txt_configured: S.optional(S.Boolean),
|
|
1294
|
-
status: S.optional(S.String),
|
|
1295
|
-
updated_at: S.optional(S.String),
|
|
1296
|
-
})).annotate({ identifier: "CertificateSummary" });
|
|
1297
|
-
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
1298
|
-
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1299
|
-
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
1300
|
-
next_cursor: S.optional(S.String),
|
|
1301
|
-
total_count: S.optional(S.Number),
|
|
1302
|
-
})).annotate({ identifier: "ListCertificatesResponse" });
|
|
1303
|
-
export const ListAppIPAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1304
|
-
app_name: S.String.pipe(T.Label()),
|
|
1305
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/ip_assignments", code: 200 }))).annotate({
|
|
1306
|
-
identifier: "ListAppIPAssignmentsRequest",
|
|
1307
|
-
});
|
|
1308
|
-
export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1309
|
-
created_at: S.optional(S.String),
|
|
1310
|
-
egress: S.optional(S.Boolean),
|
|
1311
|
-
ip: S.optional(S.String),
|
|
1312
|
-
network: S.optional(S.NullOr(IPAssignmentNetwork)),
|
|
1313
|
-
region: S.optional(S.String),
|
|
1314
|
-
service_name: S.optional(S.String),
|
|
1315
|
-
shared: S.optional(S.Boolean),
|
|
1316
|
-
type: S.optional(S.String),
|
|
1317
|
-
})).annotate({ identifier: "IPAssignment" });
|
|
1318
|
-
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
1319
|
-
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1320
|
-
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
1321
|
-
})).annotate({
|
|
1322
|
-
identifier: "ListIPAssignmentsResponse",
|
|
1323
|
-
});
|
|
1324
|
-
export const ListAppsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1325
|
-
org_slug: S.String.pipe(T.Query()),
|
|
1326
|
-
app_role: S.optional(S.String.pipe(T.Query())),
|
|
1327
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1328
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1329
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps", code: 200 }))).annotate({ identifier: "ListAppsRequest" });
|
|
1330
|
-
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
1331
|
-
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1332
|
-
apps: S.optional(ListAppsResponseAppsList),
|
|
1333
|
-
next_cursor: S.optional(S.String),
|
|
1334
|
-
total_apps: S.optional(S.Number),
|
|
1335
|
-
})).annotate({ identifier: "ListAppsResponse" });
|
|
1336
|
-
export const ListMachineEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1337
|
-
app_name: S.String.pipe(T.Label()),
|
|
1338
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1339
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1340
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/events", code: 200 }))).annotate({ identifier: "ListMachineEventsRequest" });
|
|
1341
|
-
export const ListMachineEventsResponseBodyList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
1342
|
-
export const ListMachineEventsResponse = /*@__PURE__*/ S.suspend(() => ListMachineEventsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1343
|
-
identifier: "ListMachineEventsResponse",
|
|
1344
|
-
});
|
|
1345
|
-
export const ListMachineProcessesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1346
|
-
app_name: S.String.pipe(T.Label()),
|
|
1347
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1348
|
-
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1349
|
-
order: S.optional(S.String.pipe(T.Query())),
|
|
1350
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/ps", code: 200 }))).annotate({
|
|
1351
|
-
identifier: "ListMachineProcessesRequest",
|
|
1352
|
-
});
|
|
1353
|
-
export const ListenSocket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1354
|
-
address: S.optional(S.String),
|
|
1355
|
-
proto: S.optional(S.String),
|
|
1356
|
-
})).annotate({ identifier: "ListenSocket" });
|
|
1357
|
-
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
1358
|
-
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1359
|
-
command: S.optional(S.String),
|
|
1360
|
-
cpu: S.optional(S.Number),
|
|
1361
|
-
directory: S.optional(S.String),
|
|
1362
|
-
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
1363
|
-
pid: S.optional(S.Number),
|
|
1364
|
-
rss: S.optional(S.Number),
|
|
1365
|
-
rtime: S.optional(S.Number),
|
|
1366
|
-
stime: S.optional(S.Number),
|
|
1367
|
-
})).annotate({ identifier: "ProcessStat" });
|
|
1368
|
-
export const ListMachineProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
1369
|
-
export const ListMachineProcessesResponse = /*@__PURE__*/ S.suspend(() => ListMachineProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1370
|
-
identifier: "ListMachineProcessesResponse",
|
|
1371
|
-
});
|
|
1372
|
-
export const ListMachinesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
-
app_name: S.String.pipe(T.Label()),
|
|
1374
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1375
|
-
include_leases: S.optional(S.Boolean.pipe(T.Query())),
|
|
1376
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1377
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1378
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1379
|
-
metadata__key_: S.optional(S.String.pipe(T.Query("metadata.{key}"))),
|
|
1380
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1381
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1382
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({ identifier: "ListMachinesRequest" });
|
|
1383
|
-
export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(Machine);
|
|
1384
|
-
export const ListMachinesResponse = /*@__PURE__*/ S.suspend(() => ListMachinesResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "ListMachinesResponse" });
|
|
1385
|
-
export const ListMachinesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1386
|
-
org_slug: S.String.pipe(T.Label()),
|
|
1387
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1388
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1389
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1390
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1391
|
-
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1392
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1393
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1394
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/machines", code: 200 }))).annotate({ identifier: "ListMachinesOrgRequest" });
|
|
1395
|
-
export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1396
|
-
export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1397
|
-
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1398
|
-
guest: S.optional(FlyMachineGuest),
|
|
1399
|
-
image: S.optional(S.String),
|
|
1400
|
-
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1401
|
-
})).annotate({ identifier: "MachineOverviewConfig" });
|
|
1402
|
-
export const OrgMachine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1403
|
-
app_name: S.optional(S.String),
|
|
1404
|
-
config: S.optional(MachineOverviewConfig),
|
|
1405
|
-
created_at: S.optional(S.String),
|
|
1406
|
-
id: S.optional(S.String),
|
|
1407
|
-
name: S.optional(S.String),
|
|
1408
|
-
private_ip: S.optional(S.String),
|
|
1409
|
-
region: S.optional(S.String),
|
|
1410
|
-
state: S.optional(S.String),
|
|
1411
|
-
updated_at: S.optional(S.String),
|
|
1412
|
-
version: S.optional(S.String),
|
|
1413
|
-
})).annotate({ identifier: "OrgMachine" });
|
|
1414
|
-
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1415
|
-
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1416
|
-
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1417
|
-
last_machine_id: S.optional(S.String),
|
|
1418
|
-
last_updated_at: S.optional(S.String),
|
|
1419
|
-
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1420
|
-
next_cursor: S.optional(S.String),
|
|
1421
|
-
})).annotate({ identifier: "OrgMachinesResponse" });
|
|
1422
|
-
export const ListMachineVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1423
|
-
app_name: S.String.pipe(T.Label()),
|
|
1424
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1425
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/versions", code: 200 }))).annotate({
|
|
1426
|
-
identifier: "ListMachineVersionsRequest",
|
|
1427
|
-
});
|
|
1428
|
-
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1429
|
-
user_config: S.optional(FlyMachineConfig),
|
|
1430
|
-
version: S.optional(S.String),
|
|
1431
|
-
})).annotate({ identifier: "MachineVersion" });
|
|
1432
|
-
export const ListMachineVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
1433
|
-
export const ListMachineVersionsResponse = /*@__PURE__*/ S.suspend(() => ListMachineVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1434
|
-
identifier: "ListMachineVersionsResponse",
|
|
1435
|
-
});
|
|
1436
|
-
export const ListPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1437
|
-
org_slug: S.String.pipe(T.Query()),
|
|
1438
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1439
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres", code: 200 }))).annotate({ identifier: "ListPostgresRequest" });
|
|
1440
|
-
export const PostgresClusterSummaryAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
|
|
1441
|
-
export const PostgresClusterSummaryPlan = S.String;
|
|
1442
|
-
export const PostgresClusterSummaryStatus = S.String;
|
|
1443
|
-
export const PostgresClusterSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1444
|
-
attached_apps: S.optional(PostgresClusterSummaryAttachedAppsList),
|
|
1445
|
-
created_at: S.optional(S.String),
|
|
1446
|
-
deleted_at: S.optional(S.String),
|
|
1447
|
-
id: S.optional(S.String),
|
|
1448
|
-
name: S.optional(S.String),
|
|
1449
|
-
plan: S.optional(PostgresClusterSummaryPlan),
|
|
1450
|
-
region: S.optional(S.String),
|
|
1451
|
-
status: S.optional(PostgresClusterSummaryStatus),
|
|
1452
|
-
})).annotate({ identifier: "PostgresClusterSummary" });
|
|
1453
|
-
export const ListPostgresClustersResponseDataList = /*@__PURE__*/ S.Array(PostgresClusterSummary);
|
|
1454
|
-
export const ListPostgresClustersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1455
|
-
data: S.optional(ListPostgresClustersResponseDataList),
|
|
1456
|
-
})).annotate({
|
|
1457
|
-
identifier: "ListPostgresClustersResponse",
|
|
1458
|
-
});
|
|
1459
|
-
export const ListPostgresBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1460
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1461
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/backups", code: 200 }))).annotate({
|
|
1462
|
-
identifier: "ListPostgresBackupsRequest",
|
|
1463
|
-
});
|
|
1464
|
-
export const PostgresBackupType = S.String;
|
|
1465
|
-
export const PostgresBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1466
|
-
finished_at: S.optional(S.String),
|
|
1467
|
-
id: S.optional(S.String),
|
|
1468
|
-
size_bytes: S.optional(S.Number),
|
|
1469
|
-
started_at: S.optional(S.String),
|
|
1470
|
-
status: S.optional(S.String),
|
|
1471
|
-
type: S.optional(PostgresBackupType),
|
|
1472
|
-
})).annotate({ identifier: "PostgresBackup" });
|
|
1473
|
-
export const ListPostgresBackupsResponseDataList = /*@__PURE__*/ S.Array(PostgresBackup);
|
|
1474
|
-
export const ListPostgresBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1475
|
-
data: S.optional(ListPostgresBackupsResponseDataList),
|
|
1476
|
-
})).annotate({
|
|
1477
|
-
identifier: "ListPostgresBackupsResponse",
|
|
1478
|
-
});
|
|
1479
|
-
export const ListPostgresDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1480
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1481
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/databases", code: 200 }))).annotate({
|
|
1482
|
-
identifier: "ListPostgresDatabasesRequest",
|
|
1483
|
-
});
|
|
1484
|
-
export const ListPostgresDatabasesResponseDataList = /*@__PURE__*/ S.Array(PostgresDatabase);
|
|
1485
|
-
export const ListPostgresDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1486
|
-
data: S.optional(ListPostgresDatabasesResponseDataList),
|
|
1487
|
-
})).annotate({
|
|
1488
|
-
identifier: "ListPostgresDatabasesResponse",
|
|
1489
|
-
});
|
|
1490
|
-
export const ListPostgresExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1491
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1492
|
-
database_name: S.String.pipe(T.Label()),
|
|
1493
|
-
}).pipe(T.Http({
|
|
1494
|
-
method: "GET",
|
|
1495
|
-
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
|
|
1496
|
-
code: 200,
|
|
1497
|
-
}))).annotate({
|
|
1498
|
-
identifier: "ListPostgresExtensionsRequest",
|
|
1499
|
-
});
|
|
1500
|
-
export const PostgresExtensionInstalled = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
|
-
schema: S.optional(S.String),
|
|
1502
|
-
version: S.optional(S.String),
|
|
1503
|
-
})).annotate({
|
|
1504
|
-
identifier: "PostgresExtensionInstalled",
|
|
1505
|
-
});
|
|
1506
|
-
export const PostgresExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1507
|
-
default_version: S.optional(S.String),
|
|
1508
|
-
description: S.optional(S.String),
|
|
1509
|
-
installed: S.optional(S.NullOr(PostgresExtensionInstalled)),
|
|
1510
|
-
name: S.optional(S.String),
|
|
1511
|
-
system: S.optional(S.Boolean),
|
|
1512
|
-
})).annotate({ identifier: "PostgresExtension" });
|
|
1513
|
-
export const ListPostgresExtensionsResponseDataList = /*@__PURE__*/ S.Array(PostgresExtension);
|
|
1514
|
-
export const ListPostgresExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1515
|
-
data: S.optional(ListPostgresExtensionsResponseDataList),
|
|
1516
|
-
})).annotate({
|
|
1517
|
-
identifier: "ListPostgresExtensionsResponse",
|
|
1518
|
-
});
|
|
1519
|
-
export const ListPostgresUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1520
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1521
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/users", code: 200 }))).annotate({ identifier: "ListPostgresUsersRequest" });
|
|
1522
|
-
export const ListPostgresUsersResponseDataList = /*@__PURE__*/ S.Array(PostgresUser);
|
|
1523
|
-
export const ListPostgresUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1524
|
-
data: S.optional(ListPostgresUsersResponseDataList),
|
|
1525
|
-
})).annotate({
|
|
1526
|
-
identifier: "ListPostgresUsersResponse",
|
|
1527
|
-
});
|
|
1528
|
-
export const ListSecretKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1529
|
-
app_name: S.String.pipe(T.Label()),
|
|
1530
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1531
|
-
types: S.optional(S.String.pipe(T.Query())),
|
|
1532
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys", code: 200 }))).annotate({ identifier: "ListSecretKeysRequest" });
|
|
1533
|
-
export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(SecretKey);
|
|
1534
|
-
export const SecretKeys = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1535
|
-
secret_keys: S.optional(SecretKeysSecretKeysList),
|
|
1536
|
-
})).annotate({ identifier: "SecretKeys" });
|
|
1537
|
-
export const ListSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1538
|
-
app_name: S.String.pipe(T.Label()),
|
|
1539
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1540
|
-
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1541
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({ identifier: "ListSecretsRequest" });
|
|
1542
|
-
export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1543
|
-
export const AppSecrets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1544
|
-
secrets: S.optional(AppSecretsSecretsList),
|
|
1545
|
-
})).annotate({ identifier: "AppSecrets" });
|
|
1546
|
-
export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1547
|
-
app_name: S.String.pipe(T.Label()),
|
|
1548
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1549
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1550
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1551
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({ identifier: "ListVolumesRequest" });
|
|
1552
|
-
export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(Volume);
|
|
1553
|
-
export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() => ListVolumesResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "ListVolumesResponse" });
|
|
1554
|
-
export const ListVolumeSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1555
|
-
app_name: S.String.pipe(T.Label()),
|
|
1556
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1557
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots", code: 200 }))).annotate({
|
|
1558
|
-
identifier: "ListVolumeSnapshotsRequest",
|
|
1559
|
-
});
|
|
1560
|
-
export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1561
|
-
created_at: S.optional(S.String),
|
|
1562
|
-
digest: S.optional(S.String),
|
|
1563
|
-
id: S.optional(S.String),
|
|
1564
|
-
retention_days: S.optional(S.Number),
|
|
1565
|
-
size: S.optional(S.Number),
|
|
1566
|
-
status: S.optional(S.String),
|
|
1567
|
-
volume_size: S.optional(S.Number),
|
|
1568
|
-
})).annotate({ identifier: "VolumeSnapshot" });
|
|
1569
|
-
export const ListVolumeSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
|
|
1570
|
-
export const ListVolumeSnapshotsResponse = /*@__PURE__*/ S.suspend(() => ListVolumeSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1571
|
-
identifier: "ListVolumeSnapshotsResponse",
|
|
1572
|
-
});
|
|
1573
|
-
export const ListVolumesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1574
|
-
org_slug: S.String.pipe(T.Label()),
|
|
1575
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1576
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1577
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1578
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1579
|
-
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1580
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1581
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1582
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/volumes", code: 200 }))).annotate({ identifier: "ListVolumesOrgRequest" });
|
|
1583
|
-
export const OrgVolumeHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
1584
|
-
export const OrgVolumeHostStatus = S.String;
|
|
1585
|
-
export const OrgVolumeRequiredHostFeaturesList = /*@__PURE__*/ S.Array(S.String);
|
|
1586
|
-
export const OrgVolumeType = S.String;
|
|
1587
|
-
export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1588
|
-
app_name: S.optional(S.String),
|
|
1589
|
-
attached_alloc_id: S.optional(S.String),
|
|
1590
|
-
attached_machine_id: S.optional(S.String),
|
|
1591
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
1592
|
-
block_size: S.optional(S.Number),
|
|
1593
|
-
blocks: S.optional(S.Number),
|
|
1594
|
-
blocks_avail: S.optional(S.Number),
|
|
1595
|
-
blocks_free: S.optional(S.Number),
|
|
1596
|
-
bytes_total: S.optional(S.Number),
|
|
1597
|
-
bytes_used: S.optional(S.Number),
|
|
1598
|
-
created_at: S.optional(S.String),
|
|
1599
|
-
encrypted: S.optional(S.Boolean),
|
|
1600
|
-
fstype: S.optional(S.String),
|
|
1601
|
-
host_features: S.optional(OrgVolumeHostFeaturesList),
|
|
1602
|
-
host_status: S.optional(OrgVolumeHostStatus),
|
|
1603
|
-
id: S.optional(S.String),
|
|
1604
|
-
name: S.optional(S.String),
|
|
1605
|
-
region: S.optional(S.String),
|
|
1606
|
-
required_host_features: S.optional(OrgVolumeRequiredHostFeaturesList),
|
|
1607
|
-
size_gb: S.optional(S.Number),
|
|
1608
|
-
snapshot_retention: S.optional(S.Number),
|
|
1609
|
-
state: S.optional(S.String),
|
|
1610
|
-
type: S.optional(OrgVolumeType),
|
|
1611
|
-
updated_at: S.optional(S.String),
|
|
1612
|
-
zone: S.optional(S.String),
|
|
1613
|
-
})).annotate({ identifier: "OrgVolume" });
|
|
1614
|
-
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1615
|
-
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1616
|
-
last_updated_at: S.optional(S.String),
|
|
1617
|
-
last_volume_id: S.optional(S.String),
|
|
1618
|
-
next_cursor: S.optional(S.String),
|
|
1619
|
-
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1620
|
-
})).annotate({ identifier: "OrgVolumesResponse" });
|
|
1621
|
-
export const MachinesReleaseLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1622
|
-
app_name: S.String.pipe(T.Label()),
|
|
1623
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1624
|
-
lease_nonce: S.String.pipe(T.Header("fly-machine-lease-nonce")),
|
|
1625
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }))).annotate({
|
|
1626
|
-
identifier: "MachinesReleaseLeaseRequest",
|
|
1627
|
-
});
|
|
1628
|
-
export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1629
|
-
identifier: "MachinesReleaseLeaseResponse",
|
|
1630
|
-
});
|
|
1631
|
-
export const PatchMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1632
|
-
export const PatchMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1633
|
-
app_name: S.String.pipe(T.Label()),
|
|
1634
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1635
|
-
machine_version: S.optional(S.String),
|
|
1636
|
-
metadata: S.optional(PatchMachineMetadataRequestMetadataMap),
|
|
1637
|
-
updated_at: S.optional(S.String),
|
|
1638
|
-
}).pipe(T.Http({
|
|
1639
|
-
method: "PATCH",
|
|
1640
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1641
|
-
code: 200,
|
|
1642
|
-
}))).annotate({
|
|
1643
|
-
identifier: "PatchMachineMetadataRequest",
|
|
1644
|
-
});
|
|
1645
|
-
export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1646
|
-
identifier: "PatchMachineMetadataResponse",
|
|
1647
|
-
});
|
|
1648
|
-
export const PostgresQueriesActiveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1649
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1650
|
-
database: S.String.pipe(T.Query()),
|
|
1651
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/queries/active", code: 200 }))).annotate({
|
|
1652
|
-
identifier: "PostgresQueriesActiveRequest",
|
|
1653
|
-
});
|
|
1654
|
-
export const PostgresActiveQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1655
|
-
application_name: S.optional(S.String),
|
|
1656
|
-
client: S.optional(S.String),
|
|
1657
|
-
database: S.optional(S.String),
|
|
1658
|
-
duration_seconds: S.optional(S.Number),
|
|
1659
|
-
pid: S.optional(S.Number),
|
|
1660
|
-
query: S.optional(S.String),
|
|
1661
|
-
state: S.optional(S.String),
|
|
1662
|
-
state_duration_seconds: S.optional(S.Number),
|
|
1663
|
-
user: S.optional(S.String),
|
|
1664
|
-
wait_event: S.optional(S.String),
|
|
1665
|
-
wait_event_type: S.optional(S.String),
|
|
1666
|
-
})).annotate({ identifier: "PostgresActiveQuery" });
|
|
1667
|
-
export const ListPostgresActiveQueriesResponseDataList = /*@__PURE__*/ S.Array(PostgresActiveQuery);
|
|
1668
|
-
export const ListPostgresActiveQueriesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1669
|
-
data: S.optional(ListPostgresActiveQueriesResponseDataList),
|
|
1670
|
-
})).annotate({
|
|
1671
|
-
identifier: "ListPostgresActiveQueriesResponse",
|
|
1672
|
-
});
|
|
1673
|
-
export const PostgresQueriesSlowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1674
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1675
|
-
range: S.optional(S.Number.pipe(T.Query())),
|
|
1676
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/queries/slow", code: 200 }))).annotate({
|
|
1677
|
-
identifier: "PostgresQueriesSlowRequest",
|
|
1678
|
-
});
|
|
1679
|
-
export const PostgresSlowQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1680
|
-
calls: S.optional(S.Number),
|
|
1681
|
-
database: S.optional(S.String),
|
|
1682
|
-
max_exec_time_seconds: S.optional(S.Number),
|
|
1683
|
-
mean_exec_time_seconds: S.optional(S.Number),
|
|
1684
|
-
query: S.optional(S.String),
|
|
1685
|
-
query_id: S.optional(S.String),
|
|
1686
|
-
total_exec_time_seconds: S.optional(S.Number),
|
|
1687
|
-
user: S.optional(S.String),
|
|
1688
|
-
})).annotate({ identifier: "PostgresSlowQuery" });
|
|
1689
|
-
export const ListPostgresSlowQueriesResponseDataList = /*@__PURE__*/ S.Array(PostgresSlowQuery);
|
|
1690
|
-
export const ListPostgresSlowQueriesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1691
|
-
data: S.optional(ListPostgresSlowQueriesResponseDataList),
|
|
1692
|
-
})).annotate({
|
|
1693
|
-
identifier: "ListPostgresSlowQueriesResponse",
|
|
1694
|
-
});
|
|
1695
|
-
export const PostgresUsersCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1696
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1697
|
-
username: S.String.pipe(T.Label()),
|
|
1698
|
-
}).pipe(T.Http({
|
|
1699
|
-
method: "GET",
|
|
1700
|
-
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/credentials",
|
|
1701
|
-
code: 200,
|
|
1702
|
-
}))).annotate({
|
|
1703
|
-
identifier: "PostgresUsersCredentialsRequest",
|
|
1704
|
-
});
|
|
1705
|
-
export const PostgresUserCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1706
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1707
|
-
username: S.optional(S.String),
|
|
1708
|
-
})).annotate({ identifier: "PostgresUserCredentials" });
|
|
1709
|
-
export const GetPostgresUserCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1710
|
-
data: S.optional(PostgresUserCredentials),
|
|
1711
|
-
})).annotate({
|
|
1712
|
-
identifier: "GetPostgresUserCredentialsResponse",
|
|
1713
|
-
});
|
|
1714
|
-
export const ReclaimMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1715
|
-
app_name: S.String.pipe(T.Label()),
|
|
1716
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1717
|
-
amount_mb: S.optional(S.Number),
|
|
1718
|
-
}).pipe(T.Http({
|
|
1719
|
-
method: "POST",
|
|
1720
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/memory/reclaim",
|
|
1721
|
-
code: 200,
|
|
1722
|
-
}))).annotate({
|
|
1723
|
-
identifier: "ReclaimMachineMemoryRequest",
|
|
1724
|
-
});
|
|
1725
|
-
export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1726
|
-
actual_mb: S.optional(S.Number),
|
|
1727
|
-
})).annotate({
|
|
1728
|
-
identifier: "MainReclaimMemoryResponse",
|
|
1729
|
-
});
|
|
1730
|
-
export const RequestKmsTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/kms", code: 200 }))).annotate({ identifier: "RequestKmsTokenRequest" });
|
|
1731
|
-
export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1732
|
-
identifier: "RequestKmsTokenResponse",
|
|
1733
|
-
});
|
|
1734
|
-
export const RequestOidcTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1735
|
-
aud: S.optional(S.String),
|
|
1736
|
-
aws_principal_tags: S.optional(S.Boolean),
|
|
1737
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/oidc", code: 200 }))).annotate({ identifier: "RequestOidcTokenRequest" });
|
|
1738
|
-
export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1739
|
-
identifier: "RequestOidcTokenResponse",
|
|
1740
|
-
});
|
|
1741
|
-
export const RestartMachineRequestSignal = S.String;
|
|
1742
|
-
export const RestartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1743
|
-
app_name: S.String.pipe(T.Label()),
|
|
1744
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1745
|
-
timeout: S.optional(S.String.pipe(T.Query())),
|
|
1746
|
-
signal: S.optional(RestartMachineRequestSignal.pipe(T.Query())),
|
|
1747
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1748
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/restart", code: 200 }))).annotate({ identifier: "RestartMachineRequest" });
|
|
1749
|
-
export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1750
|
-
identifier: "RestartMachineResponse",
|
|
1751
|
-
});
|
|
1752
|
-
export const RestorePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1753
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1754
|
-
backup_id: S.optional(S.String),
|
|
1755
|
-
name: S.optional(S.String),
|
|
1756
|
-
pitr_time: S.optional(S.String),
|
|
1757
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/restore", code: 200 }))).annotate({ identifier: "RestorePostgresRequest" });
|
|
1758
|
-
export const RotatePostgresUserPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1759
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1760
|
-
username: S.String.pipe(T.Label()),
|
|
1761
|
-
kill_sessions: S.optional(S.Boolean),
|
|
1762
|
-
}).pipe(T.Http({
|
|
1763
|
-
method: "POST",
|
|
1764
|
-
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/rotate_password",
|
|
1765
|
-
code: 200,
|
|
1766
|
-
}))).annotate({
|
|
1767
|
-
identifier: "RotatePostgresUserPasswordRequest",
|
|
1768
|
-
});
|
|
1769
|
-
export const RotatePostgresPasswordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1770
|
-
data: S.optional(PostgresUserCredentials),
|
|
1771
|
-
})).annotate({
|
|
1772
|
-
identifier: "RotatePostgresPasswordResponse",
|
|
1773
|
-
});
|
|
1774
|
-
export const SetMachineMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1775
|
-
app_name: S.String.pipe(T.Label()),
|
|
1776
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1777
|
-
limit_mb: S.optional(S.Number),
|
|
1778
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/machines/{machine_id}/memory", code: 200 }))).annotate({
|
|
1779
|
-
identifier: "SetMachineMemoryLimitRequest",
|
|
1780
|
-
});
|
|
1781
|
-
export const SetSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1782
|
-
export const SetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1783
|
-
app_name: S.String.pipe(T.Label()),
|
|
1784
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1785
|
-
type: S.optional(S.String),
|
|
1786
|
-
value: S.optional(SetSecretKeyRequestValueList),
|
|
1787
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }))).annotate({ identifier: "SetSecretKeyRequest" });
|
|
1788
|
-
export const SignalMachineRequestSignal = S.String;
|
|
1789
|
-
export const SignalMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1790
|
-
app_name: S.String.pipe(T.Label()),
|
|
1791
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1792
|
-
signal: S.optional(SignalMachineRequestSignal),
|
|
1793
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/signal", code: 200 }))).annotate({ identifier: "SignalMachineRequest" });
|
|
1794
|
-
export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1795
|
-
identifier: "SignalMachineResponse",
|
|
1796
|
-
});
|
|
1797
|
-
export const SignSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1798
|
-
app_name: S.String.pipe(T.Label()),
|
|
1799
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1800
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1801
|
-
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1802
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/sign", code: 200 }))).annotate({ identifier: "SignSecretKeyRequest" });
|
|
1803
|
-
export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1804
|
-
signature: S.optional(S.String),
|
|
1805
|
-
})).annotate({ identifier: "SignSecretkeyResponse" });
|
|
1806
|
-
export const StartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1807
|
-
app_name: S.String.pipe(T.Label()),
|
|
1808
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1809
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1810
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/start", code: 200 }))).annotate({ identifier: "StartMachineRequest" });
|
|
1811
|
-
export const StartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1812
|
-
identifier: "StartMachineResponse",
|
|
1813
|
-
});
|
|
1814
|
-
export const StopMachineRequestSignal = S.String;
|
|
1815
|
-
export const StopMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1816
|
-
app_name: S.String.pipe(T.Label()),
|
|
1817
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1818
|
-
signal: S.optional(StopMachineRequestSignal),
|
|
1819
|
-
timeout: S.optional(S.String),
|
|
1820
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1821
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/stop", code: 200 }))).annotate({ identifier: "StopMachineRequest" });
|
|
1822
|
-
export const StopMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1823
|
-
identifier: "StopMachineResponse",
|
|
1824
|
-
});
|
|
1825
|
-
export const SuspendMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1826
|
-
app_name: S.String.pipe(T.Label()),
|
|
1827
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1828
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1829
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/suspend", code: 200 }))).annotate({ identifier: "SuspendMachineRequest" });
|
|
1830
|
-
export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1831
|
-
identifier: "SuspendMachineResponse",
|
|
1832
|
-
});
|
|
1833
|
-
export const UncordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1834
|
-
app_name: S.String.pipe(T.Label()),
|
|
1835
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1836
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1837
|
-
}).pipe(T.Http({
|
|
1838
|
-
method: "POST",
|
|
1839
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/uncordon",
|
|
1840
|
-
code: 200,
|
|
1841
|
-
}))).annotate({ identifier: "UncordonMachineRequest" });
|
|
1842
|
-
export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1843
|
-
identifier: "UncordonMachineResponse",
|
|
1844
|
-
});
|
|
1845
|
-
export const UpdateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1846
|
-
app_name: S.String.pipe(T.Label()),
|
|
1847
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1848
|
-
config: S.optional(FlyMachineConfig),
|
|
1849
|
-
current_version: S.optional(S.String),
|
|
1850
|
-
lease_ttl: S.optional(S.Number),
|
|
1851
|
-
min_secrets_version: S.optional(S.Number),
|
|
1852
|
-
name: S.optional(S.String),
|
|
1853
|
-
region: S.optional(S.String),
|
|
1854
|
-
skip_launch: S.optional(S.Boolean),
|
|
1855
|
-
skip_secrets: S.optional(S.Boolean),
|
|
1856
|
-
skip_service_registration: S.optional(S.Boolean),
|
|
1857
|
-
lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
|
|
1858
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 }))).annotate({ identifier: "UpdateMachineRequest" });
|
|
1859
|
-
export const UpdatePostgresUserRoleRequestRole = S.String;
|
|
1860
|
-
export const UpdatePostgresUserRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1861
|
-
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1862
|
-
username: S.String.pipe(T.Label()),
|
|
1863
|
-
role: UpdatePostgresUserRoleRequestRole,
|
|
1864
|
-
}).pipe(T.Http({
|
|
1865
|
-
method: "PATCH",
|
|
1866
|
-
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
|
|
1867
|
-
code: 200,
|
|
1868
|
-
}))).annotate({
|
|
1869
|
-
identifier: "UpdatePostgresUserRoleRequest",
|
|
1870
|
-
});
|
|
1871
|
-
export const UpdatePostgresUserRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1872
|
-
identifier: "UpdatePostgresUserRoleResponse",
|
|
1873
|
-
});
|
|
1874
|
-
export const UpdateSecretsRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1875
|
-
export const UpdateSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1876
|
-
app_name: S.String.pipe(T.Label()),
|
|
1877
|
-
values: S.optional(UpdateSecretsRequestValuesMap),
|
|
1878
|
-
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({ identifier: "UpdateSecretsRequest" });
|
|
1879
|
-
export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1880
|
-
export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1881
|
-
Version: S.optional(S.Number),
|
|
1882
|
-
secrets: S.optional(AppSecretsUpdateRespSecretsList),
|
|
1883
|
-
version: S.optional(S.Number),
|
|
1884
|
-
})).annotate({ identifier: "AppSecretsUpdateResp" });
|
|
1885
|
-
export const UpdateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1886
|
-
app_name: S.String.pipe(T.Label()),
|
|
1887
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1888
|
-
auto_backup_enabled: S.optional(S.Boolean),
|
|
1889
|
-
snapshot_retention: S.optional(S.Number),
|
|
1890
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 }))).annotate({ identifier: "UpdateVolumeRequest" });
|
|
1891
|
-
export const UpsertMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1892
|
-
app_name: S.String.pipe(T.Label()),
|
|
1893
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1894
|
-
key: S.String.pipe(T.Label()),
|
|
1895
|
-
updated_at: S.optional(S.String),
|
|
1896
|
-
value: S.optional(S.String),
|
|
1897
|
-
}).pipe(T.Http({
|
|
1898
|
-
method: "POST",
|
|
1899
|
-
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1900
|
-
code: 200,
|
|
1901
|
-
}))).annotate({
|
|
1902
|
-
identifier: "UpsertMachineMetadataRequest",
|
|
1903
|
-
});
|
|
1904
|
-
export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1905
|
-
identifier: "UpsertMachineMetadataResponse",
|
|
1906
|
-
});
|
|
1907
|
-
export const VerifySecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1908
|
-
app_name: S.String.pipe(T.Label()),
|
|
1909
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1910
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1911
|
-
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1912
|
-
signature: S.optional(S.String),
|
|
1913
|
-
}).pipe(T.Http({
|
|
1914
|
-
method: "POST",
|
|
1915
|
-
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
1916
|
-
code: 200,
|
|
1917
|
-
}))).annotate({ identifier: "VerifySecretKeyRequest" });
|
|
1918
|
-
export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1919
|
-
identifier: "VerifySecretKeyResponse",
|
|
1920
|
-
});
|
|
1921
|
-
export const WaitMachineRequestState = S.String;
|
|
1922
|
-
export const WaitMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1923
|
-
app_name: S.String.pipe(T.Label()),
|
|
1924
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1925
|
-
version: S.optional(S.String.pipe(T.Query())),
|
|
1926
|
-
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
1927
|
-
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
1928
|
-
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
1929
|
-
state: S.optional(WaitMachineRequestState.pipe(T.Query())),
|
|
1930
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/wait", code: 200 }))).annotate({ identifier: "WaitMachineRequest" });
|
|
1931
|
-
export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1932
|
-
event_id: S.optional(S.String),
|
|
1933
|
-
ok: S.optional(S.Boolean),
|
|
1934
|
-
state: S.optional(S.String),
|
|
1935
|
-
version: S.optional(S.String),
|
|
1936
|
-
})).annotate({ identifier: "WaitMachineResponse" });
|
|
1937
|
-
/** Authenticate token header Verify a token header without checking resource access. */
|
|
1938
|
-
export const authenticateToken = /*@__PURE__*/ API.make(() => ({
|
|
1939
|
-
input: AuthenticateTokenRequest,
|
|
1940
|
-
output: AuthenticateTokenResponse,
|
|
1941
|
-
errors: [BadRequest],
|
|
1942
|
-
protocol: FlyIoProtocol,
|
|
1943
|
-
retry: Retry.Retry,
|
|
1944
|
-
}));
|
|
1945
|
-
/** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
|
|
1946
|
-
export const authorizeToken = /*@__PURE__*/ API.make(() => ({
|
|
1947
|
-
input: AuthorizeTokenRequest,
|
|
1948
|
-
output: AuthorizeResponse,
|
|
1949
|
-
errors: [BadRequest],
|
|
1950
|
-
protocol: FlyIoProtocol,
|
|
1951
|
-
retry: Retry.Retry,
|
|
1952
|
-
}));
|
|
1953
|
-
/** Check DNS and re-validate certificate */
|
|
1954
|
-
export const checkAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1955
|
-
input: CheckAppCertificateRequest,
|
|
1956
|
-
output: CertificateCheckResponse,
|
|
1957
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
1958
|
-
protocol: FlyIoProtocol,
|
|
1959
|
-
retry: Retry.Retry,
|
|
1960
|
-
}));
|
|
1961
|
-
/** 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. */
|
|
1962
|
-
export const cordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
1963
|
-
input: CordonMachineRequest,
|
|
1964
|
-
output: CordonMachineResponse,
|
|
1965
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1966
|
-
protocol: FlyIoProtocol,
|
|
1967
|
-
retry: Retry.Retry,
|
|
1968
|
-
}));
|
|
1969
|
-
/** Create App Create an app with the specified details in the request body. */
|
|
1970
|
-
export const createApp = /*@__PURE__*/ API.make(() => ({
|
|
1971
|
-
input: CreateAppRequest,
|
|
1972
|
-
output: CreateAppResponse,
|
|
1973
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1974
|
-
protocol: FlyIoProtocol,
|
|
1975
|
-
retry: Retry.Retry,
|
|
1976
|
-
}));
|
|
1977
|
-
/** Request ACME certificate */
|
|
1978
|
-
export const createAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1979
|
-
input: CreateAppAcmeCertificateRequest,
|
|
1980
|
-
output: CertificateDetail,
|
|
1981
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1982
|
-
protocol: FlyIoProtocol,
|
|
1983
|
-
retry: Retry.Retry,
|
|
1984
|
-
}));
|
|
1985
|
-
/** Upload custom certificate */
|
|
1986
|
-
export const createAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
1987
|
-
input: CreateAppCustomCertificateRequest,
|
|
1988
|
-
output: CertificateDetail,
|
|
1989
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1990
|
-
protocol: FlyIoProtocol,
|
|
1991
|
-
retry: Retry.Retry,
|
|
1992
|
-
}));
|
|
1993
|
-
/** Create App deploy token */
|
|
1994
|
-
export const createAppDeployToken = /*@__PURE__*/ API.make(() => ({
|
|
1995
|
-
input: CreateAppDeployTokenRequest,
|
|
1996
|
-
output: CreateAppDeployTokenResponse,
|
|
1997
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
1998
|
-
protocol: FlyIoProtocol,
|
|
1999
|
-
retry: Retry.Retry,
|
|
2000
|
-
}));
|
|
2001
|
-
/** Assign new IP address to app */
|
|
2002
|
-
export const createAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
2003
|
-
input: CreateAppIPAssignmentRequest,
|
|
2004
|
-
output: AssignIPResponse,
|
|
2005
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict, NetworkNotFound],
|
|
2006
|
-
protocol: FlyIoProtocol,
|
|
2007
|
-
retry: Retry.Retry,
|
|
2008
|
-
}));
|
|
2009
|
-
/** 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! */
|
|
2010
|
-
export const createMachine = /*@__PURE__*/ API.make(() => ({
|
|
2011
|
-
input: CreateMachineRequest,
|
|
2012
|
-
output: Machine,
|
|
2013
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2014
|
-
protocol: FlyIoProtocol,
|
|
2015
|
-
retry: Retry.Retry,
|
|
2016
|
-
}));
|
|
2017
|
-
/** 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. */
|
|
2018
|
-
export const createMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2019
|
-
input: CreateMachineLeaseRequest,
|
|
2020
|
-
output: MachineLease,
|
|
2021
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2022
|
-
protocol: FlyIoProtocol,
|
|
2023
|
-
retry: Retry.Retry,
|
|
2024
|
-
}));
|
|
2025
|
-
/** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous: poll `GET /v1/postgres/{id}` until `status == ready` before calling database, user, extension, or credential endpoints. */
|
|
2026
|
-
export const createPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2027
|
-
input: CreatePostgresRequest,
|
|
2028
|
-
output: ShowPostgresClusterResponse,
|
|
2029
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2030
|
-
protocol: FlyIoProtocol,
|
|
2031
|
-
retry: Retry.Retry,
|
|
2032
|
-
}));
|
|
2033
|
-
/** Attach Cluster to App Record an attachment between a cluster and a Fly app. This endpoint records the relationship but does not set DATABASE_URL or other app secrets; configure the connection string separately. The attachment is created if it does not already exist. */
|
|
2034
|
-
export const createPostgresAttachment = /*@__PURE__*/ API.make(() => ({
|
|
2035
|
-
input: CreatePostgresAttachmentRequest,
|
|
2036
|
-
output: CreatePostgresAttachmentResponse,
|
|
2037
|
-
errors: [NotFound],
|
|
2038
|
-
protocol: FlyIoProtocol,
|
|
2039
|
-
retry: Retry.Retry,
|
|
2040
|
-
}));
|
|
2041
|
-
/** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
|
|
2042
|
-
export const createPostgresBackup = /*@__PURE__*/ API.make(() => ({
|
|
2043
|
-
input: CreatePostgresBackupRequest,
|
|
2044
|
-
output: CreatePostgresBackupResponse,
|
|
2045
|
-
errors: [NotFound, Conflict],
|
|
2046
|
-
protocol: FlyIoProtocol,
|
|
2047
|
-
retry: Retry.Retry,
|
|
2048
|
-
}));
|
|
2049
|
-
/** Create Database Create a database within a specific cluster. */
|
|
2050
|
-
export const createPostgresDatabase = /*@__PURE__*/ API.make(() => ({
|
|
2051
|
-
input: CreatePostgresDatabaseRequest,
|
|
2052
|
-
output: PostgresDatabaseResponse,
|
|
2053
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2054
|
-
protocol: FlyIoProtocol,
|
|
2055
|
-
retry: Retry.Retry,
|
|
2056
|
-
}));
|
|
2057
|
-
/** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
|
|
2058
|
-
export const createPostgresUser = /*@__PURE__*/ API.make(() => ({
|
|
2059
|
-
input: CreatePostgresUserRequest,
|
|
2060
|
-
output: CreatePostgresUserResponse,
|
|
2061
|
-
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
2062
|
-
protocol: FlyIoProtocol,
|
|
2063
|
-
retry: Retry.Retry,
|
|
2064
|
-
}));
|
|
2065
|
-
/** Create or update Secret */
|
|
2066
|
-
export const createSecret = /*@__PURE__*/ API.make(() => ({
|
|
2067
|
-
input: CreateSecretRequest,
|
|
2068
|
-
output: SetAppSecretResponse,
|
|
2069
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2070
|
-
protocol: FlyIoProtocol,
|
|
2071
|
-
retry: Retry.Retry,
|
|
2072
|
-
}));
|
|
2073
|
-
/** Create Volume Create a volume for a specific app using the details provided in the request body. */
|
|
2074
|
-
export const createVolume = /*@__PURE__*/ API.make(() => ({
|
|
2075
|
-
input: CreateVolumeRequest,
|
|
2076
|
-
output: Volume,
|
|
2077
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2078
|
-
protocol: FlyIoProtocol,
|
|
2079
|
-
retry: Retry.Retry,
|
|
2080
|
-
}));
|
|
2081
|
-
/** Create Snapshot Create a snapshot for a specific volume within an app. */
|
|
2082
|
-
export const createVolumeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2083
|
-
input: CreateVolumeSnapshotRequest,
|
|
2084
|
-
output: CreateVolumeSnapshotResponse,
|
|
2085
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2086
|
-
protocol: FlyIoProtocol,
|
|
2087
|
-
retry: Retry.Retry,
|
|
2088
|
-
}));
|
|
2089
|
-
/** Decrypt with a secret key */
|
|
2090
|
-
export const decryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2091
|
-
input: DecryptSecretKeyRequest,
|
|
2092
|
-
output: DecryptSecretkeyResponse,
|
|
2093
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2094
|
-
protocol: FlyIoProtocol,
|
|
2095
|
-
retry: Retry.Retry,
|
|
2096
|
-
}));
|
|
2097
|
-
/** Destroy App Delete an app by its name. */
|
|
2098
|
-
export const deleteApp = /*@__PURE__*/ API.make(() => ({
|
|
2099
|
-
input: DeleteAppRequest,
|
|
2100
|
-
output: DeleteAppResponse,
|
|
2101
|
-
errors: [Forbidden, NotFound],
|
|
2102
|
-
protocol: FlyIoProtocol,
|
|
2103
|
-
retry: Retry.Retry,
|
|
2104
|
-
}));
|
|
2105
|
-
/** Remove ACME certificates */
|
|
2106
|
-
export const deleteAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2107
|
-
input: DeleteAppAcmeCertificateRequest,
|
|
2108
|
-
output: CertificateDetail,
|
|
2109
|
-
errors: [Forbidden, NotFound],
|
|
2110
|
-
protocol: FlyIoProtocol,
|
|
2111
|
-
retry: Retry.Retry,
|
|
2112
|
-
}));
|
|
2113
|
-
/** Remove certificate */
|
|
2114
|
-
export const deleteAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2115
|
-
input: DeleteAppCertificateRequest,
|
|
2116
|
-
output: DeleteAppCertificateResponse,
|
|
2117
|
-
errors: [Forbidden, NotFound],
|
|
2118
|
-
protocol: FlyIoProtocol,
|
|
2119
|
-
retry: Retry.Retry,
|
|
2120
|
-
}));
|
|
2121
|
-
/** Remove custom certificate */
|
|
2122
|
-
export const deleteAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2123
|
-
input: DeleteAppCustomCertificateRequest,
|
|
2124
|
-
output: DestroyCustomCertificateResponse,
|
|
2125
|
-
errors: [Forbidden, NotFound],
|
|
2126
|
-
protocol: FlyIoProtocol,
|
|
2127
|
-
retry: Retry.Retry,
|
|
2128
|
-
}));
|
|
2129
|
-
/** Remove IP assignment from app */
|
|
2130
|
-
export const deleteAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
2131
|
-
input: DeleteAppIPAssignmentRequest,
|
|
2132
|
-
output: DeleteAppIPAssignmentResponse,
|
|
2133
|
-
errors: [Forbidden, NotFound],
|
|
2134
|
-
protocol: FlyIoProtocol,
|
|
2135
|
-
retry: Retry.Retry,
|
|
2136
|
-
}));
|
|
2137
|
-
/** 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. */
|
|
2138
|
-
export const deleteMachine = /*@__PURE__*/ API.make(() => ({
|
|
2139
|
-
input: DeleteMachineRequest,
|
|
2140
|
-
output: DeleteMachineResponse,
|
|
2141
|
-
errors: [Forbidden, NotFound, Conflict],
|
|
2142
|
-
protocol: FlyIoProtocol,
|
|
2143
|
-
retry: Retry.Retry,
|
|
2144
|
-
}));
|
|
2145
|
-
/** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
|
|
2146
|
-
export const deleteMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2147
|
-
input: DeleteMachineMetadataRequest,
|
|
2148
|
-
output: DeleteMachineMetadataResponse,
|
|
2149
|
-
errors: [Forbidden, NotFound],
|
|
2150
|
-
protocol: FlyIoProtocol,
|
|
2151
|
-
retry: Retry.Retry,
|
|
2152
|
-
}));
|
|
2153
|
-
/** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
|
|
2154
|
-
export const deletePostgres = /*@__PURE__*/ API.make(() => ({
|
|
2155
|
-
input: DeletePostgresRequest,
|
|
2156
|
-
output: DeletePostgresResponse,
|
|
2157
|
-
errors: [NotFound],
|
|
2158
|
-
protocol: FlyIoProtocol,
|
|
2159
|
-
retry: Retry.Retry,
|
|
2160
|
-
}));
|
|
2161
|
-
/** Detach Cluster from App Detach a specific cluster from a Fly app. */
|
|
2162
|
-
export const deletePostgresAttachment = /*@__PURE__*/ API.make(() => ({
|
|
2163
|
-
input: DeletePostgresAttachmentRequest,
|
|
2164
|
-
output: DeletePostgresAttachmentResponse,
|
|
2165
|
-
errors: [NotFound],
|
|
2166
|
-
protocol: FlyIoProtocol,
|
|
2167
|
-
retry: Retry.Retry,
|
|
2168
|
-
}));
|
|
2169
|
-
/** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
|
|
2170
|
-
export const deletePostgresDatabase = /*@__PURE__*/ API.make(() => ({
|
|
2171
|
-
input: DeletePostgresDatabaseRequest,
|
|
2172
|
-
output: PostgresDatabaseResponse,
|
|
2173
|
-
errors: [BadRequest, NotFound],
|
|
2174
|
-
protocol: FlyIoProtocol,
|
|
2175
|
-
retry: Retry.Retry,
|
|
2176
|
-
}));
|
|
2177
|
-
/** Delete User Delete a specific Postgres user within a cluster. */
|
|
2178
|
-
export const deletePostgresUser = /*@__PURE__*/ API.make(() => ({
|
|
2179
|
-
input: DeletePostgresUserRequest,
|
|
2180
|
-
output: DeletePostgresUserResponse,
|
|
2181
|
-
errors: [BadRequest, NotFound],
|
|
2182
|
-
protocol: FlyIoProtocol,
|
|
2183
|
-
retry: Retry.Retry,
|
|
2184
|
-
}));
|
|
2185
|
-
/** Delete an app secret */
|
|
2186
|
-
export const deleteSecret = /*@__PURE__*/ API.make(() => ({
|
|
2187
|
-
input: DeleteSecretRequest,
|
|
2188
|
-
output: DeleteAppSecretResponse,
|
|
2189
|
-
errors: [Forbidden, NotFound],
|
|
2190
|
-
protocol: FlyIoProtocol,
|
|
2191
|
-
retry: Retry.Retry,
|
|
2192
|
-
}));
|
|
2193
|
-
/** Delete an app's secret key */
|
|
2194
|
-
export const deleteSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2195
|
-
input: DeleteSecretKeyRequest,
|
|
2196
|
-
output: DeleteSecretkeyResponse,
|
|
2197
|
-
errors: [Forbidden, NotFound],
|
|
2198
|
-
protocol: FlyIoProtocol,
|
|
2199
|
-
retry: Retry.Retry,
|
|
2200
|
-
}));
|
|
2201
|
-
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2202
|
-
export const deleteVolume = /*@__PURE__*/ API.make(() => ({
|
|
2203
|
-
input: DeleteVolumeRequest,
|
|
2204
|
-
output: Volume,
|
|
2205
|
-
errors: [Forbidden, NotFound, Conflict, VolumeAttached],
|
|
2206
|
-
protocol: FlyIoProtocol,
|
|
2207
|
-
retry: Retry.Retry,
|
|
2208
|
-
}));
|
|
2209
|
-
/** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
|
|
2210
|
-
export const disablePostgresExtension = /*@__PURE__*/ API.make(() => ({
|
|
2211
|
-
input: DisablePostgresExtensionRequest,
|
|
2212
|
-
output: DisablePostgresExtensionResponse,
|
|
2213
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2214
|
-
protocol: FlyIoProtocol,
|
|
2215
|
-
retry: Retry.Retry,
|
|
2216
|
-
}));
|
|
2217
|
-
/** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
|
|
2218
|
-
export const enablePostgresExtension = /*@__PURE__*/ API.make(() => ({
|
|
2219
|
-
input: EnablePostgresExtensionRequest,
|
|
2220
|
-
output: EnablePostgresExtensionResponse,
|
|
2221
|
-
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
2222
|
-
protocol: FlyIoProtocol,
|
|
2223
|
-
retry: Retry.Retry,
|
|
2224
|
-
}));
|
|
2225
|
-
/** Encrypt with a secret key */
|
|
2226
|
-
export const encryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2227
|
-
input: EncryptSecretKeyRequest,
|
|
2228
|
-
output: EncryptSecretkeyResponse,
|
|
2229
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2230
|
-
protocol: FlyIoProtocol,
|
|
2231
|
-
retry: Retry.Retry,
|
|
2232
|
-
}));
|
|
2233
|
-
/** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
|
|
2234
|
-
export const execMachine = /*@__PURE__*/ API.make(() => ({
|
|
2235
|
-
input: ExecMachineRequest,
|
|
2236
|
-
output: Flydv1ExecResponse,
|
|
2237
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2238
|
-
protocol: FlyIoProtocol,
|
|
2239
|
-
retry: Retry.Retry,
|
|
2240
|
-
}));
|
|
2241
|
-
/** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
|
|
2242
|
-
export const extendVolume = /*@__PURE__*/ API.make(() => ({
|
|
2243
|
-
input: ExtendVolumeRequest,
|
|
2244
|
-
output: ExtendVolumeResponse,
|
|
2245
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2246
|
-
protocol: FlyIoProtocol,
|
|
2247
|
-
retry: Retry.Retry,
|
|
2248
|
-
}));
|
|
2249
|
-
/** Fork Cluster to New Cluster Fork a ready Managed Postgres cluster into a new cluster that inherits the source's settings. The source cluster is left unchanged, and the fork is provisioned asynchronously. */
|
|
2250
|
-
export const forkPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2251
|
-
input: ForkPostgresRequest,
|
|
2252
|
-
output: ShowPostgresClusterResponse,
|
|
2253
|
-
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
2254
|
-
protocol: FlyIoProtocol,
|
|
2255
|
-
retry: Retry.Retry,
|
|
2256
|
-
}));
|
|
2257
|
-
/** Generate a random secret key */
|
|
2258
|
-
export const generateSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2259
|
-
input: GenerateSecretKeyRequest,
|
|
2260
|
-
output: SetSecretkeyResponse,
|
|
2261
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2262
|
-
protocol: FlyIoProtocol,
|
|
2263
|
-
retry: Retry.Retry,
|
|
2264
|
-
}));
|
|
2265
|
-
/** Get App Retrieve details about a specific app by its name. */
|
|
2266
|
-
export const getApp =
|
|
2267
|
-
/*@__PURE__*/ API.make(() => ({
|
|
2268
|
-
input: GetAppRequest,
|
|
2269
|
-
output: App,
|
|
2270
|
-
errors: [Forbidden, NotFound],
|
|
2271
|
-
protocol: FlyIoProtocol,
|
|
2272
|
-
retry: Retry.Retry,
|
|
2273
|
-
}));
|
|
2274
|
-
/** Get certificate details */
|
|
2275
|
-
export const getAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2276
|
-
input: GetAppCertificateRequest,
|
|
2277
|
-
output: CertificateDetail,
|
|
2278
|
-
errors: [Forbidden, NotFound],
|
|
2279
|
-
protocol: FlyIoProtocol,
|
|
2280
|
-
retry: Retry.Retry,
|
|
2281
|
-
}));
|
|
2282
|
-
/** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
|
|
2283
|
-
export const getCurrentToken = /*@__PURE__*/ API.make(() => ({
|
|
2284
|
-
input: GetCurrentTokenRequest,
|
|
2285
|
-
output: CurrentTokenResponse,
|
|
2286
|
-
errors: [Forbidden],
|
|
2287
|
-
protocol: FlyIoProtocol,
|
|
2288
|
-
retry: Retry.Retry,
|
|
2289
|
-
}));
|
|
2290
|
-
/** Get Machine Get details of a specific Machine within an app by the Machine ID. */
|
|
2291
|
-
export const getMachine = /*@__PURE__*/ API.make(() => ({
|
|
2292
|
-
input: GetMachineRequest,
|
|
2293
|
-
output: Machine,
|
|
2294
|
-
errors: [Forbidden, NotFound],
|
|
2295
|
-
protocol: FlyIoProtocol,
|
|
2296
|
-
retry: Retry.Retry,
|
|
2297
|
-
}));
|
|
2298
|
-
/** 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. */
|
|
2299
|
-
export const getMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2300
|
-
input: GetMachineLeaseRequest,
|
|
2301
|
-
output: MachineLease,
|
|
2302
|
-
errors: [Forbidden, NotFound],
|
|
2303
|
-
protocol: FlyIoProtocol,
|
|
2304
|
-
retry: Retry.Retry,
|
|
2305
|
-
}));
|
|
2306
|
-
/** Get Machine Memory Get current memory limit and available capacity for a machine */
|
|
2307
|
-
export const getMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2308
|
-
input: GetMachineMemoryRequest,
|
|
2309
|
-
output: MainMemoryResponse,
|
|
2310
|
-
errors: [Forbidden, NotFound],
|
|
2311
|
-
protocol: FlyIoProtocol,
|
|
2312
|
-
retry: Retry.Retry,
|
|
2313
|
-
}));
|
|
2314
|
-
/** Get Metadata Retrieve metadata for a specific Machine within an app. */
|
|
2315
|
-
export const getMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2316
|
-
input: GetMachineMetadataRequest,
|
|
2317
|
-
output: GetMachineMetadataResponse,
|
|
2318
|
-
errors: [Forbidden, NotFound],
|
|
2319
|
-
protocol: FlyIoProtocol,
|
|
2320
|
-
retry: Retry.Retry,
|
|
2321
|
-
}));
|
|
2322
|
-
/** Get Metadata Value Get the value of a specific metadata key */
|
|
2323
|
-
export const getMachineMetadataKey = /*@__PURE__*/ API.make(() => ({
|
|
2324
|
-
input: GetMachineMetadataKeyRequest,
|
|
2325
|
-
output: MetadataValueResponse,
|
|
2326
|
-
errors: [NotFound],
|
|
2327
|
-
protocol: FlyIoProtocol,
|
|
2328
|
-
retry: Retry.Retry,
|
|
2329
|
-
}));
|
|
2330
|
-
/** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
|
|
2331
|
-
export const getPlacements = /*@__PURE__*/ API.make(() => ({
|
|
2332
|
-
input: GetPlacementsRequest,
|
|
2333
|
-
output: MainGetPlacementsResponse,
|
|
2334
|
-
errors: [BadRequest, Forbidden],
|
|
2335
|
-
protocol: FlyIoProtocol,
|
|
2336
|
-
retry: Retry.Retry,
|
|
2337
|
-
}));
|
|
2338
|
-
/** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
|
|
2339
|
-
export const getPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2340
|
-
input: GetPostgresRequest,
|
|
2341
|
-
output: ShowPostgresClusterResponse,
|
|
2342
|
-
errors: [NotFound],
|
|
2343
|
-
protocol: FlyIoProtocol,
|
|
2344
|
-
retry: Retry.Retry,
|
|
2345
|
-
}));
|
|
2346
|
-
/** Get Regions List all regions on the platform with their details. */
|
|
2347
|
-
export const getRegions = /*@__PURE__*/ API.make(() => ({
|
|
2348
|
-
input: GetRegionsRequest,
|
|
2349
|
-
output: MainRegionResponse,
|
|
2350
|
-
errors: [Forbidden],
|
|
2351
|
-
protocol: FlyIoProtocol,
|
|
2352
|
-
retry: Retry.Retry,
|
|
2353
|
-
}));
|
|
2354
|
-
/** Get an app secret */
|
|
2355
|
-
export const getSecret = /*@__PURE__*/ API.make(() => ({
|
|
2356
|
-
input: GetSecretRequest,
|
|
2357
|
-
output: AppSecret,
|
|
2358
|
-
errors: [Forbidden, NotFound],
|
|
2359
|
-
protocol: FlyIoProtocol,
|
|
2360
|
-
retry: Retry.Retry,
|
|
2361
|
-
}));
|
|
2362
|
-
/** Get an app's secret key */
|
|
2363
|
-
export const getSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2364
|
-
input: GetSecretKeyRequest,
|
|
2365
|
-
output: SecretKey,
|
|
2366
|
-
errors: [Forbidden, NotFound],
|
|
2367
|
-
protocol: FlyIoProtocol,
|
|
2368
|
-
retry: Retry.Retry,
|
|
2369
|
-
}));
|
|
2370
|
-
/** Get Volume Retrieve details about a specific volume by its ID within an app. */
|
|
2371
|
-
export const getVolumeById = /*@__PURE__*/ API.make(() => ({
|
|
2372
|
-
input: GetVolumeByIdRequest,
|
|
2373
|
-
output: Volume,
|
|
2374
|
-
errors: [Forbidden, NotFound],
|
|
2375
|
-
protocol: FlyIoProtocol,
|
|
2376
|
-
retry: Retry.Retry,
|
|
2377
|
-
}));
|
|
2378
|
-
/** List certificates for app */
|
|
2379
|
-
export const listAppCertificates = /*@__PURE__*/ API.make(() => ({
|
|
2380
|
-
input: ListAppCertificatesRequest,
|
|
2381
|
-
output: ListCertificatesResponse,
|
|
2382
|
-
errors: [Forbidden, NotFound],
|
|
2383
|
-
protocol: FlyIoProtocol,
|
|
2384
|
-
retry: Retry.Retry,
|
|
2385
|
-
}));
|
|
2386
|
-
/** List IP assignments for app */
|
|
2387
|
-
export const listAppIPAssignments = /*@__PURE__*/ API.make(() => ({
|
|
2388
|
-
input: ListAppIPAssignmentsRequest,
|
|
2389
|
-
output: ListIPAssignmentsResponse,
|
|
2390
|
-
errors: [Forbidden, NotFound],
|
|
2391
|
-
protocol: FlyIoProtocol,
|
|
2392
|
-
retry: Retry.Retry,
|
|
2393
|
-
}));
|
|
2394
|
-
/** List Apps List all apps with the ability to filter by organization slug. */
|
|
2395
|
-
export const listApps = /*@__PURE__*/ API.make(() => ({
|
|
2396
|
-
input: ListAppsRequest,
|
|
2397
|
-
output: ListAppsResponse,
|
|
2398
|
-
errors: [Forbidden],
|
|
2399
|
-
protocol: FlyIoProtocol,
|
|
2400
|
-
retry: Retry.Retry,
|
|
2401
|
-
}));
|
|
2402
|
-
/** List Events List all events associated with a specific Machine within an app. */
|
|
2403
|
-
export const listMachineEvents = /*@__PURE__*/ API.make(() => ({
|
|
2404
|
-
input: ListMachineEventsRequest,
|
|
2405
|
-
output: ListMachineEventsResponse,
|
|
2406
|
-
errors: [Forbidden, NotFound],
|
|
2407
|
-
protocol: FlyIoProtocol,
|
|
2408
|
-
retry: Retry.Retry,
|
|
2409
|
-
}));
|
|
2410
|
-
/** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
|
|
2411
|
-
export const listMachineProcesses = /*@__PURE__*/ API.make(() => ({
|
|
2412
|
-
input: ListMachineProcessesRequest,
|
|
2413
|
-
output: ListMachineProcessesResponse,
|
|
2414
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2415
|
-
protocol: FlyIoProtocol,
|
|
2416
|
-
retry: Retry.Retry,
|
|
2417
|
-
}));
|
|
2418
|
-
/** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
|
|
2419
|
-
export const listMachines = /*@__PURE__*/ API.make(() => ({
|
|
2420
|
-
input: ListMachinesRequest,
|
|
2421
|
-
output: ListMachinesResponse,
|
|
2422
|
-
errors: [Forbidden, NotFound],
|
|
2423
|
-
protocol: FlyIoProtocol,
|
|
2424
|
-
retry: Retry.Retry,
|
|
2425
|
-
}));
|
|
2426
|
-
/** 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. */
|
|
2427
|
-
export const listMachinesOrg = /*@__PURE__*/ API.make(() => ({
|
|
2428
|
-
input: ListMachinesOrgRequest,
|
|
2429
|
-
output: OrgMachinesResponse,
|
|
2430
|
-
errors: [Forbidden, NotFound],
|
|
2431
|
-
protocol: FlyIoProtocol,
|
|
2432
|
-
retry: Retry.Retry,
|
|
2433
|
-
}));
|
|
2434
|
-
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2435
|
-
export const listMachineVersions = /*@__PURE__*/ API.make(() => ({
|
|
2436
|
-
input: ListMachineVersionsRequest,
|
|
2437
|
-
output: ListMachineVersionsResponse,
|
|
2438
|
-
errors: [Forbidden, NotFound],
|
|
2439
|
-
protocol: FlyIoProtocol,
|
|
2440
|
-
retry: Retry.Retry,
|
|
2441
|
-
}));
|
|
2442
|
-
/** List Postgres Clusters List Managed Postgres clusters for an organization. */
|
|
2443
|
-
export const listPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2444
|
-
input: ListPostgresRequest,
|
|
2445
|
-
output: ListPostgresClustersResponse,
|
|
2446
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2447
|
-
protocol: FlyIoProtocol,
|
|
2448
|
-
retry: Retry.Retry,
|
|
2449
|
-
}));
|
|
2450
|
-
/** List Backups List all backups associated with a specific cluster. */
|
|
2451
|
-
export const listPostgresBackups = /*@__PURE__*/ API.make(() => ({
|
|
2452
|
-
input: ListPostgresBackupsRequest,
|
|
2453
|
-
output: ListPostgresBackupsResponse,
|
|
2454
|
-
errors: [NotFound],
|
|
2455
|
-
protocol: FlyIoProtocol,
|
|
2456
|
-
retry: Retry.Retry,
|
|
2457
|
-
}));
|
|
2458
|
-
/** List Databases List all databases within a specific cluster. */
|
|
2459
|
-
export const listPostgresDatabases = /*@__PURE__*/ API.make(() => ({
|
|
2460
|
-
input: ListPostgresDatabasesRequest,
|
|
2461
|
-
output: ListPostgresDatabasesResponse,
|
|
2462
|
-
errors: [NotFound],
|
|
2463
|
-
protocol: FlyIoProtocol,
|
|
2464
|
-
retry: Retry.Retry,
|
|
2465
|
-
}));
|
|
2466
|
-
/** List Extensions List all extensions available within a specific database, indicating which are installed. */
|
|
2467
|
-
export const listPostgresExtensions = /*@__PURE__*/ API.make(() => ({
|
|
2468
|
-
input: ListPostgresExtensionsRequest,
|
|
2469
|
-
output: ListPostgresExtensionsResponse,
|
|
2470
|
-
errors: [BadRequest, NotFound],
|
|
2471
|
-
protocol: FlyIoProtocol,
|
|
2472
|
-
retry: Retry.Retry,
|
|
2473
|
-
}));
|
|
2474
|
-
/** List Users List all Postgres users within a specific cluster. */
|
|
2475
|
-
export const listPostgresUsers = /*@__PURE__*/ API.make(() => ({
|
|
2476
|
-
input: ListPostgresUsersRequest,
|
|
2477
|
-
output: ListPostgresUsersResponse,
|
|
2478
|
-
errors: [NotFound],
|
|
2479
|
-
protocol: FlyIoProtocol,
|
|
2480
|
-
retry: Retry.Retry,
|
|
2481
|
-
}));
|
|
2482
|
-
/** List secret keys belonging to an app */
|
|
2483
|
-
export const listSecretKeys = /*@__PURE__*/ API.make(() => ({
|
|
2484
|
-
input: ListSecretKeysRequest,
|
|
2485
|
-
output: SecretKeys,
|
|
2486
|
-
errors: [Forbidden, NotFound],
|
|
2487
|
-
protocol: FlyIoProtocol,
|
|
2488
|
-
retry: Retry.Retry,
|
|
2489
|
-
}));
|
|
2490
|
-
/** List app secrets belonging to an app */
|
|
2491
|
-
export const listSecrets = /*@__PURE__*/ API.make(() => ({
|
|
2492
|
-
input: ListSecretsRequest,
|
|
2493
|
-
output: AppSecrets,
|
|
2494
|
-
errors: [Forbidden, NotFound],
|
|
2495
|
-
protocol: FlyIoProtocol,
|
|
2496
|
-
retry: Retry.Retry,
|
|
2497
|
-
}));
|
|
2498
|
-
/** List Volumes List all volumes associated with a specific app. */
|
|
2499
|
-
export const listVolumes = /*@__PURE__*/ API.make(() => ({
|
|
2500
|
-
input: ListVolumesRequest,
|
|
2501
|
-
output: ListVolumesResponse,
|
|
2502
|
-
errors: [Forbidden, NotFound],
|
|
2503
|
-
protocol: FlyIoProtocol,
|
|
2504
|
-
retry: Retry.Retry,
|
|
2505
|
-
}));
|
|
2506
|
-
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2507
|
-
export const listVolumeSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2508
|
-
input: ListVolumeSnapshotsRequest,
|
|
2509
|
-
output: ListVolumeSnapshotsResponse,
|
|
2510
|
-
errors: [Forbidden, NotFound],
|
|
2511
|
-
protocol: FlyIoProtocol,
|
|
2512
|
-
retry: Retry.Retry,
|
|
2513
|
-
}));
|
|
2514
|
-
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2515
|
-
export const listVolumesOrg = /*@__PURE__*/ API.make(() => ({
|
|
2516
|
-
input: ListVolumesOrgRequest,
|
|
2517
|
-
output: OrgVolumesResponse,
|
|
2518
|
-
errors: [],
|
|
2519
|
-
protocol: FlyIoProtocol,
|
|
2520
|
-
retry: Retry.Retry,
|
|
2521
|
-
}));
|
|
2522
|
-
/** 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. */
|
|
2523
|
-
export const machinesReleaseLease = /*@__PURE__*/ API.make(() => ({
|
|
2524
|
-
input: MachinesReleaseLeaseRequest,
|
|
2525
|
-
output: MachinesReleaseLeaseResponse,
|
|
2526
|
-
errors: [Forbidden, NotFound],
|
|
2527
|
-
protocol: FlyIoProtocol,
|
|
2528
|
-
retry: Retry.Retry,
|
|
2529
|
-
}));
|
|
2530
|
-
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Keys that are not in the request are left untouched. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2531
|
-
export const patchMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2532
|
-
input: PatchMachineMetadataRequest,
|
|
2533
|
-
output: PatchMachineMetadataResponse,
|
|
2534
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2535
|
-
protocol: FlyIoProtocol,
|
|
2536
|
-
retry: Retry.Retry,
|
|
2537
|
-
}));
|
|
2538
|
-
/** List Active Queries List active queries in the supplied database. The database query parameter is required and must not be empty or whitespace-only. Returns full query text and durations in seconds. */
|
|
2539
|
-
export const postgresQueriesActive = /*@__PURE__*/ API.make(() => ({
|
|
2540
|
-
input: PostgresQueriesActiveRequest,
|
|
2541
|
-
output: ListPostgresActiveQueriesResponse,
|
|
2542
|
-
errors: [NotFound, UnprocessableEntity],
|
|
2543
|
-
protocol: FlyIoProtocol,
|
|
2544
|
-
retry: Retry.Retry,
|
|
2545
|
-
}));
|
|
2546
|
-
/** List Slow Queries List the top 20 queries by cumulative total execution time, excluding the postgres database. Uses the latest available metrics within the lookback range; statistics are cumulative PostgreSQL counters, not deltas over that range. Returns full query text and execution times in seconds. */
|
|
2547
|
-
export const postgresQueriesSlow = /*@__PURE__*/ API.make(() => ({
|
|
2548
|
-
input: PostgresQueriesSlowRequest,
|
|
2549
|
-
output: ListPostgresSlowQueriesResponse,
|
|
2550
|
-
errors: [NotFound, UnprocessableEntity],
|
|
2551
|
-
protocol: FlyIoProtocol,
|
|
2552
|
-
retry: Retry.Retry,
|
|
2553
|
-
}));
|
|
2554
|
-
/** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
|
|
2555
|
-
export const postgresUsersCredentials = /*@__PURE__*/ API.make(() => ({
|
|
2556
|
-
input: PostgresUsersCredentialsRequest,
|
|
2557
|
-
output: GetPostgresUserCredentialsResponse,
|
|
2558
|
-
errors: [BadRequest, NotFound],
|
|
2559
|
-
protocol: FlyIoProtocol,
|
|
2560
|
-
retry: Retry.Retry,
|
|
2561
|
-
}));
|
|
2562
|
-
/** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
|
|
2563
|
-
export const reclaimMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2564
|
-
input: ReclaimMachineMemoryRequest,
|
|
2565
|
-
output: MainReclaimMemoryResponse,
|
|
2566
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2567
|
-
protocol: FlyIoProtocol,
|
|
2568
|
-
retry: Retry.Retry,
|
|
2569
|
-
}));
|
|
2570
|
-
/** Request a Petsem token for accessing KMS */
|
|
2571
|
-
export const requestKmsToken = /*@__PURE__*/ API.make(() => ({
|
|
2572
|
-
input: RequestKmsTokenRequest,
|
|
2573
|
-
output: RequestKmsTokenResponse,
|
|
2574
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2575
|
-
protocol: FlyIoProtocol,
|
|
2576
|
-
retry: Retry.Retry,
|
|
2577
|
-
}));
|
|
2578
|
-
/** 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. */
|
|
2579
|
-
export const requestOidcToken = /*@__PURE__*/ API.make(() => ({
|
|
2580
|
-
input: RequestOidcTokenRequest,
|
|
2581
|
-
output: RequestOidcTokenResponse,
|
|
2582
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2583
|
-
protocol: FlyIoProtocol,
|
|
2584
|
-
retry: Retry.Retry,
|
|
2585
|
-
}));
|
|
2586
|
-
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2587
|
-
export const restartMachine = /*@__PURE__*/ API.make(() => ({
|
|
2588
|
-
input: RestartMachineRequest,
|
|
2589
|
-
output: RestartMachineResponse,
|
|
2590
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2591
|
-
protocol: FlyIoProtocol,
|
|
2592
|
-
retry: Retry.Retry,
|
|
2593
|
-
}));
|
|
2594
|
-
/** Restore Backup or Point in Time to New Cluster Restore a backup, or a point in time within the cluster's PITR recovery window, into a new Managed Postgres cluster. The source cluster is left unchanged, and a new cluster is provisioned asynchronously. */
|
|
2595
|
-
export const restorePostgres = /*@__PURE__*/ API.make(() => ({
|
|
2596
|
-
input: RestorePostgresRequest,
|
|
2597
|
-
output: ShowPostgresClusterResponse,
|
|
2598
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2599
|
-
protocol: FlyIoProtocol,
|
|
2600
|
-
retry: Retry.Retry,
|
|
2601
|
-
}));
|
|
2602
|
-
/** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
|
|
2603
|
-
export const rotatePostgresUserPassword = /*@__PURE__*/ API.make(() => ({
|
|
2604
|
-
input: RotatePostgresUserPasswordRequest,
|
|
2605
|
-
output: RotatePostgresPasswordResponse,
|
|
2606
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2607
|
-
protocol: FlyIoProtocol,
|
|
2608
|
-
retry: Retry.Retry,
|
|
2609
|
-
}));
|
|
2610
|
-
/** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
|
|
2611
|
-
export const setMachineMemoryLimit = /*@__PURE__*/ API.make(() => ({
|
|
2612
|
-
input: SetMachineMemoryLimitRequest,
|
|
2613
|
-
output: MainMemoryResponse,
|
|
2614
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2615
|
-
protocol: FlyIoProtocol,
|
|
2616
|
-
retry: Retry.Retry,
|
|
2617
|
-
}));
|
|
2618
|
-
/** Create or update a secret key */
|
|
2619
|
-
export const setSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2620
|
-
input: SetSecretKeyRequest,
|
|
2621
|
-
output: SetSecretkeyResponse,
|
|
2622
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2623
|
-
protocol: FlyIoProtocol,
|
|
2624
|
-
retry: Retry.Retry,
|
|
2625
|
-
}));
|
|
2626
|
-
/** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
|
|
2627
|
-
export const signalMachine = /*@__PURE__*/ API.make(() => ({
|
|
2628
|
-
input: SignalMachineRequest,
|
|
2629
|
-
output: SignalMachineResponse,
|
|
2630
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2631
|
-
protocol: FlyIoProtocol,
|
|
2632
|
-
retry: Retry.Retry,
|
|
2633
|
-
}));
|
|
2634
|
-
/** Sign with a secret key */
|
|
2635
|
-
export const signSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2636
|
-
input: SignSecretKeyRequest,
|
|
2637
|
-
output: SignSecretkeyResponse,
|
|
2638
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2639
|
-
protocol: FlyIoProtocol,
|
|
2640
|
-
retry: Retry.Retry,
|
|
2641
|
-
}));
|
|
2642
|
-
/** Start Machine Start a specific Machine within an app. */
|
|
2643
|
-
export const startMachine = /*@__PURE__*/ API.make(() => ({
|
|
2644
|
-
input: StartMachineRequest,
|
|
2645
|
-
output: StartMachineResponse,
|
|
2646
|
-
errors: [
|
|
2647
|
-
BadRequest,
|
|
2648
|
-
Forbidden,
|
|
2649
|
-
NotFound,
|
|
2650
|
-
Conflict,
|
|
2651
|
-
MachineStartFromCreatedState,
|
|
2652
|
-
MachineReplacing,
|
|
2653
|
-
],
|
|
2654
|
-
protocol: FlyIoProtocol,
|
|
2655
|
-
retry: Retry.Retry,
|
|
2656
|
-
}));
|
|
2657
|
-
/** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
|
|
2658
|
-
export const stopMachine = /*@__PURE__*/ API.make(() => ({
|
|
2659
|
-
input: StopMachineRequest,
|
|
2660
|
-
output: StopMachineResponse,
|
|
2661
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2662
|
-
protocol: FlyIoProtocol,
|
|
2663
|
-
retry: Retry.Retry,
|
|
2664
|
-
}));
|
|
2665
|
-
/** 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. */
|
|
2666
|
-
export const suspendMachine = /*@__PURE__*/ API.make(() => ({
|
|
2667
|
-
input: SuspendMachineRequest,
|
|
2668
|
-
output: SuspendMachineResponse,
|
|
2669
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2670
|
-
protocol: FlyIoProtocol,
|
|
2671
|
-
retry: Retry.Retry,
|
|
2672
|
-
}));
|
|
2673
|
-
/** 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. */
|
|
2674
|
-
export const uncordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
2675
|
-
input: UncordonMachineRequest,
|
|
2676
|
-
output: UncordonMachineResponse,
|
|
2677
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2678
|
-
protocol: FlyIoProtocol,
|
|
2679
|
-
retry: Retry.Retry,
|
|
2680
|
-
}));
|
|
2681
|
-
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|
|
2682
|
-
export const updateMachine = /*@__PURE__*/ API.make(() => ({
|
|
2683
|
-
input: UpdateMachineRequest,
|
|
2684
|
-
output: Machine,
|
|
2685
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2686
|
-
protocol: FlyIoProtocol,
|
|
2687
|
-
retry: Retry.Retry,
|
|
2688
|
-
}));
|
|
2689
|
-
/** Update User Role Update a specific Postgres user's role within a cluster. */
|
|
2690
|
-
export const updatePostgresUserRole = /*@__PURE__*/ API.make(() => ({
|
|
2691
|
-
input: UpdatePostgresUserRoleRequest,
|
|
2692
|
-
output: UpdatePostgresUserRoleResponse,
|
|
2693
|
-
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2694
|
-
protocol: FlyIoProtocol,
|
|
2695
|
-
retry: Retry.Retry,
|
|
2696
|
-
}));
|
|
2697
|
-
/** Update app secrets belonging to an app */
|
|
2698
|
-
export const updateSecrets = /*@__PURE__*/ API.make(() => ({
|
|
2699
|
-
input: UpdateSecretsRequest,
|
|
2700
|
-
output: AppSecretsUpdateResp,
|
|
2701
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2702
|
-
protocol: FlyIoProtocol,
|
|
2703
|
-
retry: Retry.Retry,
|
|
2704
|
-
}));
|
|
2705
|
-
/** Update Volume Update a volume's configuration using the details provided in the request body. */
|
|
2706
|
-
export const updateVolume = /*@__PURE__*/ API.make(() => ({
|
|
2707
|
-
input: UpdateVolumeRequest,
|
|
2708
|
-
output: Volume,
|
|
2709
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2710
|
-
protocol: FlyIoProtocol,
|
|
2711
|
-
retry: Retry.Retry,
|
|
2712
|
-
}));
|
|
2713
|
-
/** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
|
|
2714
|
-
export const upsertMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2715
|
-
input: UpsertMachineMetadataRequest,
|
|
2716
|
-
output: UpsertMachineMetadataResponse,
|
|
2717
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2718
|
-
protocol: FlyIoProtocol,
|
|
2719
|
-
retry: Retry.Retry,
|
|
2720
|
-
}));
|
|
2721
|
-
/** Verify with a secret key */
|
|
2722
|
-
export const verifySecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2723
|
-
input: VerifySecretKeyRequest,
|
|
2724
|
-
output: VerifySecretKeyResponse,
|
|
2725
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2726
|
-
protocol: FlyIoProtocol,
|
|
2727
|
-
retry: Retry.Retry,
|
|
2728
|
-
}));
|
|
2729
|
-
/** 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. */
|
|
2730
|
-
export const waitMachine = /*@__PURE__*/ API.make(() => ({
|
|
2731
|
-
input: WaitMachineRequest,
|
|
2732
|
-
output: WaitMachineResponse,
|
|
2733
|
-
errors: [BadRequest, Forbidden, NotFound, GatewayTimeout, MachineWaitTimeout],
|
|
2734
|
-
protocol: FlyIoProtocol,
|
|
2735
|
-
retry: Retry.Retry,
|
|
2736
|
-
}));
|
|
1
|
+
import{_ as e,a as t,c as n,d as r,errors$BadRequest as i,errors$Conflict as a,errors$Forbidden as o,errors$GatewayTimeout as ee,errors$NotFound as s,errors$UnprocessableEntity as c,f as l,g as u,h as d,i as f,l as te,m as p,n as m,o as h,p as g,protocol$FlyIoProtocol as _,r as v,retry$Retry as y,s as b,t as x,traits$Header as S,traits$Http as C,traits$Label as w,traits$Query as T,traits$RawResponseRoot as E,traits$SensitiveValue as D,traits$applyErrorMatchers as O,u as k,v as A,y as j}from"../_bundle/sdk.js";const M=/*@__PURE__*/ u(function MachineReplacing(e){return A(e,new.target,[`$3($2()("MachineReplacing",{message:$1}),[{status:412,message:"failed_precondition: machine getting replaced, refusing to start"}])`,[r,h,n,O]])});const N=/*@__PURE__*/ u(function MachineStartFromCreatedState(e){return A(e,new.target,[`$3($2()("MachineStartFromCreatedState",{message:$1}),[{message:"failed_precondition: unable to start machine from current state: 'created'"}])`,[r,h,n,O]])});const P=/*@__PURE__*/ u(function MachineWaitTimeout(e){return A(e,new.target,[`$3($2()("MachineWaitTimeout",{message:$1}),[{message:{matches:"^deadline_exceeded: machine failed to reach desired state, [a-z_]+, currently [a-z_]+$"}}])`,[r,h,n,O]])});const F=/*@__PURE__*/ u(function NetworkNotFound(e){return A(e,new.target,[`$3($2()("NetworkNotFound",{message:$1}),[{status:400,message:{includes:"network not found"}}])`,[r,h,n,O]])});const I=/*@__PURE__*/ u(function VolumeAttached(e){return A(e,new.target,[`$3($2()("VolumeAttached",{message:$1}),[{message:{includes:"failed_precondition: volume is currently bound to machine:"}}])`,[r,h,n,O]])});const L=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"AuthenticateTokenRequest";$7(#6:3);$5(>5)@"AuthenticateTokenResponse";$4({header:$3($2)}).pipe($1({method:"POST",uri:"/v1/tokens/authenticate",code:200}));#2.pipe($8())`,[r,C,h,l,b,g,__d17,x,E,i,_,y]]:d(L,e));const R=/*@__PURE__*/ j(e=>e===p?[`{input:#2,output:#4,errors:[$9],protocol:$10,retry:$11};$6(>5)@"MainTokenAccess";$6(>6)@"AuthorizeTokenRequest";$6(>7)@"FlyioAccess";$6(>8)@"AuthorizeResponse";$5({action:$2($1),app_feature:$2($3),app_name:$2($3),command:$2(#4:0),machine_feature:$2($3),machine_id:$2($3),mutation:$2($3),org_feature:$2($3),org_slug:$2($3),source_machine:$2($3),storage_object:$2($3),volume_id:$2($3)});$5({access:$2(#1),header:$2($3)}).pipe($7({method:"POST",uri:"/v1/tokens/authorize",code:200}));$5({action:$2($1),app_feature:$2($3),appid:$2($1),cluster:$2($3),command:$2(#4:0),feature:$2($3),machine:$2($3),machine_feature:$2($3),mutation:$2($3),orgid:$2($1),sourceApp:$2($3),sourceMachine:$2($3),sourceOrganization:$2($3),storage_object:$2($3),volume:$2($3)});$5({access:$2(#3),verified_token:$2(#8:3)})`,[r,f,l,h,__d22,b,g,C,__d17,i,_,y]]:d(R,e));const z=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>4)@"CheckAppCertificateRequest";$5(>5)@"DNSRecords";$5(>6)@"CertificateCheckResponse";$4({app_name:$3.pipe($2()),hostname:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/certificates/{hostname}/check",code:200}));$4({a:$7(#6:0),aaaa:$7(#6:0),acme_challenge_cname:$7($3),cname:$7(#6:0),ownership_txt:$7($3),resolved_addresses:$7(#6:0),soa:$7($3)});$4({acme_requested:$7($8),certificates:$7(#9:3),configured:$7($8),dns_provider:$7($3),dns_records:$7(#2),dns_requirements:$7(#9:6),hostname:$7($3),rate_limited_until:$7($3),status:$7($3),validation:$7(#9:7),validation_errors:$7(#9:9)})`,[r,C,w,h,b,g,__d22,l,m,__d23,i,o,s,_,y]]:d(z,e));const B=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CordonMachineRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),lease_nonce:$5($3.pipe($4("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/cordon",code:200}))`,[r,C,w,h,S,l,b,g,__d25,i,o,s,a,_,y]]:d(B,e));const V=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>3)@"CreateAppRequest";$6(>4)@"CreateAppResponse";$5({enable_subdomains:$3($2),idempotency_key:$3($4),name:$3($4),network:$3($4),org_slug:$3($4)}).pipe($1({method:"POST",uri:"/v1/apps",code:200}));$5({created_at:$3($7),id:$3($4)})`,[r,C,m,l,h,b,g,f,i,o,s,a,c,_,y]]:d(V,e));const H=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>2)@"CreateAppAcmeCertificateRequest";$5({app_name:$3.pipe($2()),hostname:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/certificates/acme",code:200}))`,[r,C,w,h,l,b,g,__d0,i,o,s,a,c,_,y]]:d(H,e));const U=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12,$13],protocol:$14,retry:$15};$7(>2)@"CreateAppCustomCertificateRequest";$6({app_name:$3.pipe($2()),fullchain:$4($3),hostname:$4($3),private_key:$4($3.pipe($5({})))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/certificates/custom",code:200}))`,[r,C,w,h,l,D,b,g,__d0,i,o,s,a,c,_,y]]:d(U,e));const W=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>3)@"CreateAppDeployTokenRequest";$6(>4)@"CreateAppDeployTokenResponse";$5({app_name:$3.pipe($2()),expiry:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/deploy_token",code:200}));$5({token:$4($3.pipe($7({})))})`,[r,C,w,h,l,b,g,D,i,o,s,_,y]]:d(W,e));const G=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$6(>4)@"CreateAppIPAssignmentRequest";$6(>5)@"IPPair";$6(>6)@"AssignIPResponse";$5({app_name:$3.pipe($2()),network:$4($3),org_slug:$4($3),region:$4($3),service_name:$4($3),type:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/ip_assignments",code:200}));$5({v4:$4($3),v6:$4($3)});$5({created_at:$4($3),egress:$4($7),ip:$4($3),ip_pair:$4(#2),network:$4($9(#8:0)),region:$4($3),service_name:$4($3),shared:$4($7)})`,[r,C,w,h,l,b,g,m,__d1,v,i,o,s,a,F,_,y]]:d(G,e));const K=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#10:4,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"CreateMachineRequest";$8({app_name:$3.pipe($2()),config:$5(#4:52),lease_ttl:$5($6),min_secrets_version:$5($6),name:$5($3),region:$5($3),skip_launch:$5($7),skip_secrets:$5($7),skip_service_registration:$5($7)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines",code:200}))`,[r,C,w,h,__d5,l,f,m,b,g,__d6,i,o,s,a,_,y]]:d(K,e));const q=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#10:1,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"CreateMachineLeaseRequest";$8({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),description:$4($3),ttl:$4($6.pipe($5())),lease_nonce:$4($3.pipe($7("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/lease",code:200}))`,[r,C,w,h,l,T,f,S,b,g,__d7,i,o,s,a,_,y]]:d(q,e));const J=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:5,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreatePostgresRequest";$6({disk_size_gb:$3($2),name:$3($4),org_slug:$4,pg_major_version:$3($4),plan:$4,pool_mode:$3($4),postgis_enabled:$3($5),region:$4}).pipe($1({method:"POST",uri:"/v1/postgres",code:200}))`,[r,C,f,l,h,m,b,g,__d10,i,s,c,_,y]]:d(J,e));const Y=/*@__PURE__*/ j(t=>t===p?e(`PostgresAttachment`,`{input:#1,output:#3,errors:[$7],protocol:$8,retry:$9};$5(>4)@"Create%Request";$5(>5)@"%";$5(>6)@"Create%Response";$4({postgres_cluster_id:$3.pipe($2()),app_name:$3}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/attachments",code:200}));$4({app_name:$6($3),attached_at:$6($3),postgres_cluster_id:$6($3)});$4({data:$6(#2)})`,[r,C,w,h,b,g,l,s,_,y]):d(Y,t));const X=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"CreatePostgresBackupRequest";$4({postgres_cluster_id:$3.pipe($2()),type:$3}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/backups",code:200}))`,[r,C,w,h,b,g,__d25,s,a,_,y]]:d(X,e));const Z=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CreatePostgresDatabaseRequest";$4({postgres_cluster_id:$3.pipe($2()),name:$3}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/databases",code:200}))`,[r,C,w,h,b,g,__d11,i,s,c,_,y]]:d(Z,e));const Q=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>3)@"CreatePostgresUserRequest";$5(>4)@"CreatePostgresUserResponse";$4({postgres_cluster_id:$3.pipe($2()),role:$3,username:$3}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/users",code:200}));$4({data:$7(#6:0)})`,[r,C,w,h,b,g,__d12,l,i,s,a,c,_,y]]:d(Q,e));const ne=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>3)@"CreateSecretRequest";$6(>4)@"SetAppSecretResponse";$5({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),value:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secrets/{secret_name}",code:200}));$5({Version:$4($7),created_at:$4($3),digest:$4($3),name:$4($3),updated_at:$4($3),value:$4($3),version:$4($7)})`,[r,C,w,h,l,b,g,f,i,o,s,a,_,y]]:d(ne,e));const re=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#10:0,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$9(>2)@"CreateVolumeRequest";$8({app_name:$3.pipe($2()),auto_backup_enabled:$5($4),compute:$5(#6:0),compute_image:$5($3),encrypted:$5($4),fstype:$5($3),name:$5($3),region:$5($3),require_unique_zone:$5($4),size_gb:$5($7),snapshot_id:$5($3),snapshot_retention:$5($7),source_volume_id:$5($3),unique_zone_app_wide:$5($4)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/volumes",code:200}))`,[r,C,w,h,m,l,__d2,f,b,g,__d13,i,o,s,a,_,y]]:d(re,e));const ie=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"CreateVolumeSnapshotRequest";$4({app_name:$3.pipe($2()),volume_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/volumes/{volume_id}/snapshots",code:200}))`,[r,C,w,h,b,g,__d25,i,o,s,a,_,y]]:d(ie,e));const ae=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>3)@"DecryptSecretKeyRequest";$7(>4)@"DecryptSecretkeyResponse";$6({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4())),associated_data:$5($3),ciphertext:$5($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}/decrypt",code:200}));$6({plaintext:$5($3.pipe($8({})))})`,[r,C,w,h,T,l,b,g,D,i,o,s,_,y]]:d(ae,e));const oe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAppRequest";$4({app_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}",code:200}))`,[r,C,w,h,b,g,__d25,o,s,_,y]]:d(oe,e));const se=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAppAcmeCertificateRequest";$4({app_name:$3.pipe($2()),hostname:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/certificates/{hostname}/acme",code:200}))`,[r,C,w,h,b,g,__d0,o,s,_,y]]:d(se,e));const ce=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAppCertificateRequest";$4({app_name:$3.pipe($2()),hostname:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/certificates/{hostname}",code:200}))`,[r,C,w,h,b,g,__d25,o,s,_,y]]:d(ce,e));const le=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$5(>3)@"DeleteAppCustomCertificateRequest";$5(>4)@"DestroyCustomCertificateResponse";$4({app_name:$3.pipe($2()),hostname:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/certificates/{hostname}/custom",code:200}));$4({acme_requested:$7($6),certificates:$7(#8:3),configured:$7($6),dns_provider:$7($3),dns_requirements:$7(#8:6),hostname:$7($3),rate_limited_until:$7($3),status:$7($3),validation:$7(#8:7),validation_errors:$7(#8:9),warning:$7($3)})`,[r,C,w,h,b,g,m,l,__d23,o,s,_,y]]:d(le,e));const ue=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAppIPAssignmentRequest";$4({app_name:$3.pipe($2()),ip:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/ip_assignments/{ip}",code:200}))`,[r,C,w,h,b,g,__d25,o,s,_,y]]:d(ue,e));const de=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#10:0,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"DeleteMachineRequest";$8({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),force:$6($5.pipe($4())),lease_nonce:$6($3.pipe($7("fly-machine-lease-nonce")))}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/machines/{machine_id}",code:200}))`,[r,C,w,h,T,m,l,S,b,g,__d25,o,s,a,_,y]]:d(de,e));const fe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteMachineMetadataRequest";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),key:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",code:200}))`,[r,C,w,h,b,g,__d25,o,s,_,y]]:d(fe,e));const pe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeletePostgresRequest";$4({postgres_cluster_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/postgres/{postgres_cluster_id}",code:200}))`,[r,C,w,h,b,g,__d25,s,_,y]]:d(pe,e));const me=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"DeletePostgresAttachmentRequest";$4({postgres_cluster_id:$3.pipe($2()),app_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/postgres/{postgres_cluster_id}/attachments/{app_name}",code:200}))`,[r,C,w,h,b,g,__d25,s,_,y]]:d(me,e));const he=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeletePostgresDatabaseRequest";$4({postgres_cluster_id:$3.pipe($2()),database_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/postgres/{postgres_cluster_id}/databases/{database_name}",code:200}))`,[r,C,w,h,b,g,__d11,i,s,_,y]]:d(he,e));const ge=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeletePostgresUserRequest";$4({postgres_cluster_id:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/postgres/{postgres_cluster_id}/users/{username}",code:200}))`,[r,C,w,h,b,g,__d25,i,s,_,y]]:d(ge,e));const _e=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteSecretRequest";$4({app_name:$3.pipe($2()),secret_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/secrets/{secret_name}",code:200}))`,[r,C,w,h,b,g,__d14,o,s,_,y]]:d(_e,e));const ve=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteSecretKeyRequest";$4({app_name:$3.pipe($2()),secret_name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}",code:200}))`,[r,C,w,h,b,g,__d14,o,s,_,y]]:d(ve,e));const ye=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteVolumeRequest";$4({app_name:$3.pipe($2()),volume_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/volumes/{volume_id}",code:200}))`,[r,C,w,h,b,g,__d13,o,s,a,I,_,y]]:d(ye,e));const be=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"DisablePostgresExtensionRequest";$7({postgres_cluster_id:$3.pipe($2()),database_name:$3.pipe($2()),extension_name:$3.pipe($2()),force:$6($5.pipe($4()))}).pipe($1({method:"DELETE",uri:"/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}",code:200}))`,[r,C,w,h,T,m,l,b,g,__d25,i,s,c,_,y]]:d(be,e));const xe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"EnablePostgresExtensionRequest";$6({postgres_cluster_id:$3.pipe($2()),database_name:$3.pipe($2()),create_schema:$5($4),name:$3,schema:$5($3)}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",code:200}))`,[r,C,w,h,m,l,b,g,__d25,i,s,a,c,_,y]]:d(xe,e));const Se=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>3)@"EncryptSecretKeyRequest";$8(>4)@"EncryptSecretkeyResponse";$7({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4())),associated_data:$5($3),plaintext:$5($3.pipe($6({})))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}/encrypt",code:200}));$7({ciphertext:$5($3)})`,[r,C,w,h,T,l,D,b,g,i,o,s,_,y]]:d(Se,e));const Ce=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$9(>3)@"ExecMachineRequest";$9(>4)@"Flydv1ExecResponse";$8({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),cmd:$4($3),command:$4(#5:0),container:$4($3),machine:$4($6),stdin:$4($3),timeout:$4($7)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/exec",code:200}));$8({exit_code:$4($7),exit_signal:$4($7),stderr:$4($3),stdout:$4($3)})`,[r,C,w,h,l,__d22,m,f,b,g,i,o,s,a,_,y]]:d(Ce,e));const we=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>3)@"ExtendVolumeRequest";$7(>4)@"ExtendVolumeResponse";$6({app_name:$3.pipe($2()),volume_id:$3.pipe($2()),size_gb:$5($4)}).pipe($1({method:"PUT",uri:"/v1/apps/{app_name}/volumes/{volume_id}/extend",code:200}));$6({needs_restart:$5($8),volume:$5(#9:0)})`,[r,C,w,h,f,l,b,g,m,__d13,i,o,s,_,y]]:d(we,e));const Te=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:5,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"ForkPostgresRequest";$5({postgres_cluster_id:$3.pipe($2()),name:$4($3)}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/fork",code:200}))`,[r,C,w,h,l,b,g,__d10,i,s,a,c,_,y]]:d(Te,e));const Ee=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"GenerateSecretKeyRequest";$6({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),type:$4($3),value:$4(#5:0)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}/generate",code:200}))`,[r,C,w,h,l,__d18,b,g,__d15,i,o,s,a,_,y]]:d(Ee,e));const De=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetAppRequest";$4({app_name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}",code:200}))`,[r,C,w,h,b,g,__d16,o,s,_,y]]:d(De,e));const Oe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetAppCertificateRequest";$4({app_name:$3.pipe($2()),hostname:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/certificates/{hostname}",code:200}))`,[r,C,w,h,b,g,__d0,o,s,_,y]]:d(Oe,e));const ke=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$8],protocol:$9,retry:$10};$3(>5)@"GetCurrentTokenRequest";$3(>6)@"MainTokenInfo";$7(#2);$3(>7)@"CurrentTokenResponse";$2({}).pipe($1({method:"GET",uri:"/v1/tokens/current",code:200}));$2({apps:$5(#4:0),org_slug:$5($6),organization:$5($6),restricted_to_machine:$5($6),source_machine_id:$5($6),token_id:$5($6),user:$5($6)});$2({tokens:$5(#3)})`,[r,C,b,g,__d22,l,h,x,o,_,y]]:d(ke,e));const Ae=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:4,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"GetMachineRequest";$7({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),version:$5($3.pipe($4())),include_leases:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}",code:200}))`,[r,C,w,h,T,l,m,b,g,__d6,o,s,_,y]]:d(Ae,e));const je=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetMachineLeaseRequest";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/lease",code:200}))`,[r,C,w,h,b,g,__d7,o,s,_,y]]:d(je,e));const Me=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetMachineMemoryRequest";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/memory",code:200}))`,[r,C,w,h,b,g,__d19,o,s,_,y]]:d(Me,e));const Ne=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"GetMachineMetadataRequest";$5(>4)@"GetMachineMetadataResponse";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/metadata",code:200}));#7:0.pipe($6())`,[r,C,w,h,b,g,E,__d3,o,s,_,y]]:d(Ne,e));const Pe=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$7],protocol:$8,retry:$9};$5(>3)@"GetMachineMetadataKeyRequest";$5(>4)@"MetadataValueResponse";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),key:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",code:200}));$4({value:$6($3)})`,[r,C,w,h,b,g,l,s,_,y]]:d(Pe,e));const Fe=/*@__PURE__*/ j(e=>e===p?[`{input:#2,output:#5,errors:[$10,$11],protocol:$12,retry:$13};$3($1,$2);$8(>6)@"GetPlacementsRequest";$8(>7)@"PlacementRegionPlacement";$9(#3);$8(>8)@"MainGetPlacementsResponse";$7({compute:$6(#5:0),count:$6($2),org_slug:$1,region:$6($1),volume_name:$6($1),volume_size_bytes:$6($2),weights:$6(#1)}).pipe($4({method:"POST",uri:"/v1/platform/placements",code:200}));$7({concurrency:$6($2),count:$6($2),region:$6($1)});$7({regions:$6(#4)})`,[r,h,f,t,C,__d2,l,b,g,x,i,o,_,y]]:d(Fe,e));const Ie=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:5,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetPostgresRequest";$4({postgres_cluster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}",code:200}))`,[r,C,w,h,b,g,__d10,s,_,y]]:d(Ie,e));const Le=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$9],protocol:$10,retry:$11};$3(>5)@"GetRegionsRequest";$3(>6)@"MainRegionRow";$8(#2);$3(>7)@"MainRegionResponse";$2({}).pipe($1({method:"GET",uri:"/v1/platform/regions",code:200}));$2({code:$5($4),deprecated:$5($6),gateway_available:$5($6),geo_region:$5($4),latitude:$5($7),longitude:$5($7),mpg_available:$5($6),name:$5($4),requires_paid_plan:$5($6)});$2({nearest:$5($4),regions:$5(#3)})`,[r,C,b,g,h,l,m,f,x,o,_,y]]:d(Le,e));const Re=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13};$8(>2)@"GetSecretRequest";$7({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4())),show_secrets:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/secrets/{secret_name}",code:200}))`,[r,C,w,h,T,l,m,b,g,__d20,o,s,_,y]]:d(Re,e));const ze=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"GetSecretKeyRequest";$6({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}",code:200}))`,[r,C,w,h,T,l,b,g,__d21,o,s,_,y]]:d(ze,e));const Be=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetVolumeByIdRequest";$4({app_name:$3.pipe($2()),volume_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/volumes/{volume_id}",code:200}))`,[r,C,w,h,b,g,__d13,o,s,_,y]]:d(Be,e));const Ve=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14};$8(>5)@"ListAppCertificatesRequest";$8(>6)@"CertificateSummary";$10(#2);$8(>7)@"ListCertificatesResponse";$7({app_name:$3.pipe($2()),filter:$5($3.pipe($4())),cursor:$5($3.pipe($4())),limit:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/certificates",code:200}));$7({acme_alpn_configured:$5($9),acme_dns_configured:$5($9),acme_http_configured:$5($9),acme_requested:$5($9),configured:$5($9),created_at:$5($3),dns_provider:$5($3),has_custom_certificate:$5($9),has_fly_certificate:$5($9),hostname:$5($3),ownership_txt_configured:$5($9),status:$5($3),updated_at:$5($3)});$7({certificates:$5(#3),next_cursor:$5($3),total_count:$5($6)})`,[r,C,w,h,T,l,f,b,g,m,x,o,s,_,y]]:d(Ve,e));const He=/*@__PURE__*/ j(t=>t===p?e(`IPAssignment`,`{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14};$5(>5)@"ListApp%sRequest";$5(>6)@"%";$10(#2);$5(>7)@"List%sResponse";$4({app_name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/ip_assignments",code:200}));$4({created_at:$6($3),egress:$6($7),ip:$6($3),network:$6($9(#8:0)),region:$6($3),service_name:$6($3),shared:$6($7),type:$6($3)});$4({ips:$6(#3)})`,[r,C,w,h,b,g,l,m,__d1,v,x,o,s,_,y]):d(He,t));const Ue=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$10],protocol:$11,retry:$12};$7(>4)@"ListAppsRequest";$9(#8:1);$7(>5)@"ListAppsResponse";$6({org_slug:$3.pipe($2()),app_role:$4($3.pipe($2())),limit:$4($5.pipe($2())),cursor:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/v1/apps",code:200}));$6({apps:$4(#2),next_cursor:$4($3),total_apps:$4($5)})`,[r,C,T,h,l,f,b,g,__d16,x,o,_,y]]:d(Ue,e));const We=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$8(>3)@"ListMachineEventsRequest";$8(>4)@"ListMachineEventsResponse";$7({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),limit:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/events",code:200}));#10:1.pipe($9())`,[r,C,w,h,T,f,l,b,g,E,__d4,o,s,_,y]]:d(We,e));const Ge=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6,errors:[$11,$12,$13],protocol:$14,retry:$15};$7(>7)@"ListMachineProcessesRequest";$7(>8)@"ListenSocket";$8(#2);$7(>9)@"ProcessStat";$8(#4);$7(>10)@"ListMachineProcessesResponse";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),sort_by:$5($3.pipe($4())),order:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/ps",code:200}));$6({address:$5($3),proto:$5($3)});$6({command:$5($3),cpu:$5($9),directory:$5($3),listen_sockets:$5(#3),pid:$5($9),rss:$5($9),rtime:$5($9),stime:$5($9)});#5.pipe($10())`,[r,C,w,h,T,l,b,g,x,f,E,i,o,s,_,y]]:d(Ge,e));const Ke=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$13,$14],protocol:$15,retry:$16};$9(>4)@"ListMachinesRequest";$11(#10:4);$9(>5)@"ListMachinesResponse";$8({app_name:$3.pipe($2()),include_deleted:$6($5.pipe($4())),include_leases:$6($5.pipe($4())),region:$6($3.pipe($4())),state:$6($3.pipe($4())),summary:$6($5.pipe($4())),metadata__key_:$6($3.pipe($4("metadata.{key}"))),cursor:$6($3.pipe($4())),limit:$6($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines",code:200}));#2.pipe($12())`,[r,C,w,h,T,m,l,f,b,g,__d6,x,E,o,s,_,y]]:d(Ke,e));const qe=/*@__PURE__*/ j(t=>t===p?e(`OrgMachine`,`{input:#1,output:#5,errors:[$14,$15],protocol:$16,retry:$17};$9(>6)@"ListMachinesOrgRequest";$9(>7)@"MachineOverviewConfig";$9(>8)@"%";$12(#3);$9(>9)@"%sResponse";$8({org_slug:$3.pipe($2()),include_deleted:$6($5.pipe($4())),region:$6($3.pipe($4())),state:$6($3.pipe($4())),summary:$6($5.pipe($4())),updated_after:$6($3.pipe($4())),cursor:$6($3.pipe($4())),limit:$6($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/orgs/{org_slug}/machines",code:200}));$8({guest:$6(#10:0),image:$6($3),metadata:$6(#11:0)});$8({app_name:$6($3),config:$6(#2),created_at:$6($3),id:$6($3),name:$6($3),private_ip:$6($3),region:$6($3),state:$6($3),updated_at:$6($3),version:$6($3)});$8({error_regions:$6(#13:0),last_machine_id:$6($3),last_updated_at:$6($3),machines:$6(#4),next_cursor:$6($3)})`,[r,C,w,h,T,m,l,f,b,g,__d2,__d3,x,__d22,o,s,_,y]):d(qe,t));const Je=/*@__PURE__*/ j(t=>t===p?e(`MachineVersion`,`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({app_name:$3.pipe($2()),machine_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/versions",code:200}));$4({user_config:$7(#6:52),version:$7($3)});#3.pipe($9())`,[r,C,w,h,b,g,__d5,l,x,E,o,s,_,y]):d(Je,t));const Ye=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>5)@"ListPostgresRequest";$7(>6)@"PostgresClusterSummary";$9(#2);$7(>7)@"ListPostgresClustersResponse";$6({org_slug:$3.pipe($2()),include_deleted:$5($4.pipe($2()))}).pipe($1({method:"GET",uri:"/v1/postgres",code:200}));$6({attached_apps:$5(#8:0),created_at:$5($3),deleted_at:$5($3),id:$5($3),name:$5($3),plan:$5($3),region:$5($3),status:$5($3)});$6({data:$5(#3)})`,[r,C,T,h,m,l,b,g,__d9,x,i,s,c,_,y]]:d(Ye,e));const Xe=/*@__PURE__*/ j(t=>t===p?e(`PostgresBackup`,`{input:#1,output:#4,errors:[$9],protocol:$10,retry:$11};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({postgres_cluster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/backups",code:200}));$4({finished_at:$6($3),id:$6($3),size_bytes:$6($7),started_at:$6($3),status:$6($3),type:$6($3)});$4({data:$6(#3)})`,[r,C,w,h,b,g,l,f,x,s,_,y]):d(Xe,t));const Ze=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$5(>3)@"ListPostgresDatabasesRequest";$5(>4)@"ListPostgresDatabasesResponse";$4({postgres_cluster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/databases",code:200}));$4({data:$7(#6:0)})`,[r,C,w,h,b,g,__d9,l,s,_,y]]:d(Ze,e));const Qe=/*@__PURE__*/ j(t=>t===p?e(`PostgresExtension`,`{input:#1,output:#5,errors:[$10,$11],protocol:$12,retry:$13};$5(>6)@"List%sRequest";$5(>7)@"%Installed";$5(>8)@"%";$9(#3);$5(>9)@"List%sResponse";$4({postgres_cluster_id:$3.pipe($2()),database_name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",code:200}));$4({schema:$6($3),version:$6($3)});$4({default_version:$6($3),description:$6($3),installed:$6($7(#2)),name:$6($3),system:$6($8)});$4({data:$6(#4)})`,[r,C,w,h,b,g,l,v,m,x,i,s,_,y]):d(Qe,t));const $e=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"ListPostgresUsersRequest";$7(#6:0);$5(>5)@"ListPostgresUsersResponse";$4({postgres_cluster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/users",code:200}));$4({data:$8(#2)})`,[r,C,w,h,b,g,__d12,x,l,s,_,y]]:d($e,e));const et=/*@__PURE__*/ j(t=>t===p?e(`SecretKeys`,`{input:#1,output:#3,errors:[$10,$11],protocol:$12,retry:$13};$7(>4)@"List%Request";$9(#8:0);$7(>5)@"%";$6({app_name:$3.pipe($2()),min_version:$5($3.pipe($4())),types:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/secretkeys",code:200}));$6({secret_keys:$5(#2)})`,[r,C,w,h,T,l,b,g,__d21,x,o,s,_,y]):d(et,t));const tt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13};$8(>3)@"ListSecretsRequest";$8(>4)@"AppSecrets";$7({app_name:$3.pipe($2()),min_version:$5($3.pipe($4())),show_secrets:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/secrets",code:200}));$7({secrets:$5(#9:0)})`,[r,C,w,h,T,l,m,b,g,__d24,o,s,_,y]]:d(tt,e));const nt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#3,errors:[$13,$14],protocol:$15,retry:$16};$9(>4)@"ListVolumesRequest";$11(#10:0);$9(>5)@"ListVolumesResponse";$8({app_name:$3.pipe($2()),summary:$6($5.pipe($4())),cursor:$6($3.pipe($4())),limit:$6($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/volumes",code:200}));#2.pipe($12())`,[r,C,w,h,T,m,l,f,b,g,__d13,x,E,o,s,_,y]]:d(nt,e));const rt=/*@__PURE__*/ j(t=>t===p?e(`VolumeSnapshot`,`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({app_name:$3.pipe($2()),volume_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/volumes/{volume_id}/snapshots",code:200}));$4({created_at:$6($3),digest:$6($3),id:$6($3),retention_days:$6($7),size:$6($7),status:$6($3),volume_size:$6($7)});#3.pipe($9())`,[r,C,w,h,b,g,l,f,x,E,o,s,_,y]):d(rt,t));const it=/*@__PURE__*/ j(t=>t===p?e(`OrgVolume`,`{input:#1,output:#4,errors:[],protocol:$12,retry:$13};$9(>5)@"ListVolumesOrgRequest";$9(>6)@"%";$11(#2);$9(>7)@"%sResponse";$8({org_slug:$3.pipe($2()),include_deleted:$6($5.pipe($4())),region:$6($3.pipe($4())),state:$6($3.pipe($4())),summary:$6($5.pipe($4())),updated_after:$6($3.pipe($4())),cursor:$6($3.pipe($4())),limit:$6($7.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/orgs/{org_slug}/volumes",code:200}));$8({app_name:$6($3),attached_alloc_id:$6($3),attached_machine_id:$6($3),auto_backup_enabled:$6($5),block_size:$6($7),blocks:$6($7),blocks_avail:$6($7),blocks_free:$6($7),bytes_total:$6($7),bytes_used:$6($7),created_at:$6($3),encrypted:$6($5),fstype:$6($3),host_features:$6(#10:0),host_status:$6($3),id:$6($3),name:$6($3),region:$6($3),required_host_features:$6(#10:0),size_gb:$6($7),snapshot_retention:$6($7),state:$6($3),type:$6($3),updated_at:$6($3),zone:$6($3)});$8({last_updated_at:$6($3),last_volume_id:$6($3),next_cursor:$6($3),volumes:$6(#3)})`,[r,C,w,h,T,m,l,f,b,g,__d22,x,_,y]):d(it,t));const at=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"MachinesReleaseLeaseRequest";$5({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),lease_nonce:$3.pipe($4("fly-machine-lease-nonce"))}).pipe($1({method:"DELETE",uri:"/v1/apps/{app_name}/machines/{machine_id}/lease",code:200}))`,[r,C,w,h,S,b,g,__d25,o,s,_,y]]:d(at,e));const ot=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"PatchMachineMetadataRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),machine_version:$4($3),metadata:$4(#5:0),updated_at:$4($3)}).pipe($1({method:"PATCH",uri:"/v1/apps/{app_name}/machines/{machine_id}/metadata",code:200}))`,[r,C,w,h,l,__d3,b,g,__d25,i,o,s,_,y]]:d(ot,e));const st=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$6(>5)@"PostgresQueriesActiveRequest";$6(>6)@"PostgresActiveQuery";$9(#2);$6(>7)@"ListPostgresActiveQueriesResponse";$5({postgres_cluster_id:$3.pipe($2()),database:$3.pipe($4())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/queries/active",code:200}));$5({application_name:$7($3),client:$7($3),database:$7($3),duration_seconds:$7($8),pid:$7($8),query:$7($3),state:$7($3),state_duration_seconds:$7($8),user:$7($3),wait_event:$7($3),wait_event_type:$7($3)});$5({data:$7(#3)})`,[r,C,w,h,T,b,g,l,f,x,s,c,_,y]]:d(st,e));const ct=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$8(>5)@"PostgresQueriesSlowRequest";$8(>6)@"PostgresSlowQuery";$9(#2);$8(>7)@"ListPostgresSlowQueriesResponse";$7({postgres_cluster_id:$3.pipe($2()),range:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/queries/slow",code:200}));$7({calls:$6($5),database:$6($3),max_exec_time_seconds:$6($5),mean_exec_time_seconds:$6($5),query:$6($3),query_id:$6($3),total_exec_time_seconds:$6($5),user:$6($3)});$7({data:$6(#3)})`,[r,C,w,h,T,f,l,b,g,x,s,c,_,y]]:d(ct,e));const lt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"PostgresUsersCredentialsRequest";$4({postgres_cluster_id:$3.pipe($2()),username:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/postgres/{postgres_cluster_id}/users/{username}/credentials",code:200}))`,[r,C,w,h,b,g,__d26,i,s,_,y]]:d(lt,e));const ut=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>3)@"ReclaimMachineMemoryRequest";$7(>4)@"MainReclaimMemoryResponse";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),amount_mb:$5($4)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/memory/reclaim",code:200}));$6({actual_mb:$5($4)})`,[r,C,w,h,f,l,b,g,i,o,s,_,y]]:d(ut,e));const dt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#4:0,errors:[$5,$6,$7],protocol:$8,retry:$9};$3(>2)@"RequestKmsTokenRequest";$2({}).pipe($1({method:"POST",uri:"/v1/tokens/kms",code:200}))`,[r,C,b,g,__d25,i,o,s,_,y]]:d(dt,e));const ft=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"RequestOidcTokenRequest";$5({aud:$3($2),aws_principal_tags:$3($4)}).pipe($1({method:"POST",uri:"/v1/tokens/oidc",code:200}))`,[r,C,h,l,m,b,g,__d25,i,o,s,_,y]]:d(ft,e));const pt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"RestartMachineRequest";$7({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),timeout:$5($3.pipe($4())),signal:$5($3.pipe($4())),lease_nonce:$5($3.pipe($6("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/restart",code:200}))`,[r,C,w,h,T,l,S,b,g,__d25,i,o,s,a,_,y]]:d(pt,e));const mt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:5,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"RestorePostgresRequest";$5({postgres_cluster_id:$3.pipe($2()),backup_id:$4($3),name:$4($3),pitr_time:$4($3)}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/restore",code:200}))`,[r,C,w,h,l,b,g,__d10,i,s,c,_,y]]:d(mt,e));const ht=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"RotatePostgresUserPasswordRequest";$6({postgres_cluster_id:$3.pipe($2()),username:$3.pipe($2()),kill_sessions:$5($4)}).pipe($1({method:"POST",uri:"/v1/postgres/{postgres_cluster_id}/users/{username}/rotate_password",code:200}))`,[r,C,w,h,m,l,b,g,__d26,i,s,c,_,y]]:d(ht,e));const gt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"SetMachineMemoryLimitRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),limit_mb:$5($4)}).pipe($1({method:"PUT",uri:"/v1/apps/{app_name}/machines/{machine_id}/memory",code:200}))`,[r,C,w,h,f,l,b,g,__d19,i,o,s,_,y]]:d(gt,e));const _t=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"SetSecretKeyRequest";$6({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),type:$4($3),value:$4(#5:0)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}",code:200}))`,[r,C,w,h,l,__d18,b,g,__d15,i,o,s,a,_,y]]:d(_t,e));const vt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"SignalMachineRequest";$5({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),signal:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/signal",code:200}))`,[r,C,w,h,l,b,g,__d25,i,o,s,_,y]]:d(vt,e));const yt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>3)@"SignSecretKeyRequest";$8(>4)@"SignSecretkeyResponse";$7({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4())),plaintext:$5($3.pipe($6({})))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}/sign",code:200}));$7({signature:$5($3)})`,[r,C,w,h,T,l,D,b,g,i,o,s,_,y]]:d(yt,e));const $=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16};$7(>2)@"StartMachineRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),lease_nonce:$5($3.pipe($4("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/start",code:200}))`,[r,C,w,h,S,l,b,g,__d25,i,o,s,a,N,M,_,y]]:d($,e));const bt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"StopMachineRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),signal:$4($3),timeout:$4($3),lease_nonce:$4($3.pipe($5("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/stop",code:200}))`,[r,C,w,h,l,S,b,g,__d25,i,o,s,a,_,y]]:d(bt,e));const xt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"SuspendMachineRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),lease_nonce:$5($3.pipe($4("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/suspend",code:200}))`,[r,C,w,h,S,l,b,g,__d25,i,o,s,a,_,y]]:d(xt,e));const St=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"UncordonMachineRequest";$6({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),lease_nonce:$5($3.pipe($4("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/uncordon",code:200}))`,[r,C,w,h,S,l,b,g,__d25,i,o,s,a,_,y]]:d(St,e));const Ct=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#11:4,errors:[$12,$13,$14,$15],protocol:$16,retry:$17};$10(>2)@"UpdateMachineRequest";$9({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),config:$5(#4:52),current_version:$5($3),lease_ttl:$5($6),min_secrets_version:$5($6),name:$5($3),region:$5($3),skip_launch:$5($7),skip_secrets:$5($7),skip_service_registration:$5($7),lease_nonce:$5($3.pipe($8("fly-machine-lease-nonce")))}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}",code:200}))`,[r,C,w,h,__d5,l,f,m,S,b,g,__d6,i,o,s,a,_,y]]:d(Ct,e));const wt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"UpdatePostgresUserRoleRequest";$4({postgres_cluster_id:$3.pipe($2()),username:$3.pipe($2()),role:$3}).pipe($1({method:"PATCH",uri:"/v1/postgres/{postgres_cluster_id}/users/{username}",code:200}))`,[r,C,w,h,b,g,__d25,i,s,c,_,y]]:d(wt,e));const Tt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$7(>3)@"UpdateSecretsRequest";$7(>4)@"AppSecretsUpdateResp";$6({app_name:$3.pipe($2()),values:$5(#4:0)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secrets",code:200}));$6({Version:$5($8),secrets:$5(#9:0),version:$5($8)})`,[r,C,w,h,__d3,l,b,g,f,__d24,i,o,s,a,_,y]]:d(Tt,e));const Et=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateVolumeRequest";$7({app_name:$3.pipe($2()),volume_id:$3.pipe($2()),auto_backup_enabled:$5($4),snapshot_retention:$5($6)}).pipe($1({method:"PUT",uri:"/v1/apps/{app_name}/volumes/{volume_id}",code:200}))`,[r,C,w,h,m,l,f,b,g,__d13,i,o,s,_,y]]:d(Et,e));const Dt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"UpsertMachineMetadataRequest";$5({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),key:$3.pipe($2()),updated_at:$4($3),value:$4($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",code:200}))`,[r,C,w,h,l,b,g,__d25,i,o,s,_,y]]:d(Dt,e));const Ot=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"VerifySecretKeyRequest";$7({app_name:$3.pipe($2()),secret_name:$3.pipe($2()),min_version:$5($3.pipe($4())),plaintext:$5($3.pipe($6({}))),signature:$5($3)}).pipe($1({method:"POST",uri:"/v1/apps/{app_name}/secretkeys/{secret_name}/verify",code:200}))`,[r,C,w,h,T,l,D,b,g,__d25,i,o,s,_,y]]:d(Ot,e));const kt=/*@__PURE__*/ j(e=>e===p?[`{input:#1,output:#2,errors:[$10,$11,$12,$13,$14],protocol:$15,retry:$16};$8(>3)@"WaitMachineRequest";$8(>4)@"WaitMachineResponse";$7({app_name:$3.pipe($2()),machine_id:$3.pipe($2()),version:$5($3.pipe($4())),instance_id:$5($3.pipe($4())),from_event_id:$5($3.pipe($4())),timeout:$5($6.pipe($4())),state:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/apps/{app_name}/machines/{machine_id}/wait",code:200}));$7({event_id:$5($3),ok:$5($9),state:$5($3),version:$5($3)})`,[r,C,w,h,T,l,f,b,g,m,i,o,s,ee,P,_,y]]:d(kt,e));function __d0(){return[`$6(>1)@"CertificateDetail";$5({acme_requested:$2($1),certificates:$2(#3:3),configured:$2($1),dns_provider:$2($4),dns_requirements:$2(#3:6),hostname:$2($4),rate_limited_until:$2($4),status:$2($4),validation:$2(#3:7),validation_errors:$2(#3:9)})`,[r,m,l,__d23,h,b,g]]}function __d1(){return[`$4(>1)@"IPAssignmentNetwork";$3({name:$2($1),org_slug:$2($1)})`,[r,h,l,b,g]]}function __d2(){return[`$6(>1)@"FlyMachineGuest";$5({cpu_kind:$2($1),cpus:$2($3),gpu_kind:$2($1),gpus:$2($3),host_dedication_id:$2($1),kernel_args:$2(#4:0),max_memory_mb:$2($3),memory_mb:$2($3),persist_rootfs:$2($1),required_host_features:$2(#4:0)})`,[r,h,l,f,__d22,b,g]]}function __d3(){return[`$2($1,$1)`,[r,h,t]]}function __d4(){return[`$6(>2)@"MachineEvent";$7(#0);$5({id:$2($1),request:$2($3),source:$2($1),status:$2($1),timestamp:$2($4),type:$2($1)})`,[r,h,l,k,f,b,g,x]]}function __d5(){return[`$4(>53)@"FlyMachineCacheDrive";$4(>54)@"FlyMachineHTTPHeader";$7(#1);$4(>55)@"FlyMachineCheck";$9($5,#3);$4(>56)@"FlyContainerDependency";$7(#5);$4(>57)@"FlyEnvFrom";$7(#7);$4(>58)@"FlyFile";$7(#9);$4(>59)@"FlyExecHealthcheck";$4(>60)@"FlyHTTPHealthcheck";$4(>61)@"FlyTCPHealthcheck";$4(>62)@"FlyContainerHealthcheck";$7(#14);$4(>63)@"FlyMachineRestart";$4(>64)@"FlyMachineSecret";$7(#17);$4(>65)@"FlyStopConfig";$4(>66)@"FlyContainerConfig";$7(#20);$4(>67)@"FlyDnsForwardRule";$7(#22);$4(>68)@"FlyDnsOption";$7(#24);$4(>69)@"FlyDNSConfig";$4(>70)@"FlyMachineInit";$4(>71)@"FlyMachineMetrics";$4(>72)@"FlyMachineMount";$7(#29);$4(>73)@"FlyMachineProcess";$7(#31);$4(>74)@"FlyMachineRootfs";$11([$5,$8]);$4(>75)@"FlyMachineServiceCheck";$7(#35);$4(>76)@"FlyMachineServiceConcurrency";$4(>77)@"FlyReplayCache";$7(#38);$9($5,$12);$4(>78)@"FlyHTTPResponseOptions";$4(>79)@"FlyHTTPOptions";$4(>80)@"FlyProxyProtoOptions";$4(>81)@"FlyTLSOptions";$4(>82)@"FlyMachinePort";$7(#45);$4(>83)@"FlyMachineService";$7(#47);$4(>84)@"FlyMachineSpot";$4(>85)@"FlyStatic";$7(#50);$4(>86)@"FlyMachineConfig";$3({size_mb:$2($1)});$3({name:$2($5),values:$2(#6:0)});$3({grace_period:$2($5),headers:$2(#2),interval:$2($5),kind:$2($5),method:$2($5),path:$2($5),port:$2($1),protocol:$2($5),timeout:$2($5),tls_server_name:$2($5),tls_skip_verify:$2($8),type:$2($5)});$3({condition:$2($5),name:$2($5)});$3({env_var:$2($5),field_ref:$2($5)});$3({guest_path:$2($5),image_config:$2($5),mode:$2($1),raw_value:$2($5),secret_name:$2($5)});$3({command:$2(#6:0)});$3({headers:$2(#2),method:$2($5),path:$2($5),port:$2($1),scheme:$2($5),tls_server_name:$2($5),tls_skip_verify:$2($8)});$3({port:$2($1)});$3({exec:$2(#11),failure_threshold:$2($1),grace_period:$2($1),http:$2(#12),interval:$2($1),kind:$2($5),name:$2($5),success_threshold:$2($1),tcp:$2(#13),timeout:$2($1),unhealthy:$2($5)});$3({max_retries:$2($1),policy:$2($5)});$3({env_var:$2($5),name:$2($5)});$3({signal:$2($5),timeout:$2($5)});$3({cmd:$2(#6:0),depends_on:$2(#6),entrypoint:$2(#6:0),env:$2(#10:0),env_from:$2(#8),exec:$2(#6:0),files:$2(#10),healthchecks:$2(#15),image:$2($5),name:$2($5),restart:$2(#16),secrets:$2(#18),stop:$2(#19),user:$2($5)});$3({addr:$2($5),basename:$2($5)});$3({name:$2($5),value:$2($5)});$3({dns_forward_rules:$2(#23),hostname:$2($5),hostname_fqdn:$2($5),nameservers:$2(#6:0),options:$2(#25),searches:$2(#6:0),skip_registration:$2($8)});$3({cmd:$2(#6:0),entrypoint:$2(#6:0),exec:$2(#6:0),kernel_args:$2(#6:0),swap_size_mb:$2($1),tty:$2($8)});$3({https:$2($8),path:$2($5),port:$2($1)});$3({add_size_gb:$2($1),add_size_percent:$2($1),encrypted:$2($8),extend_threshold_percent:$2($1),min_add_size_gb:$2($1),name:$2($5),path:$2($5),size_gb:$2($1),size_gb_limit:$2($1),volume:$2($5)});$3({cmd:$2(#6:0),entrypoint:$2(#6:0),env:$2(#10:0),env_from:$2(#8),exec:$2(#6:0),ignore_app_secrets:$2($8),secrets:$2(#18),user:$2($5)});$3({persist:$2($5),size_gb:$2($1)});$3({grace_period:$2($5),headers:$2(#2),interval:$2($5),method:$2($5),path:$2($5),port:$2($1),protocol:$2($5),timeout:$2($5),tls_server_name:$2($5),tls_skip_verify:$2($8),type:$2($5)});$3({hard_limit:$2($1),soft_limit:$2($1),type:$2($5)});$3({allow_bypass:$2($8),name:$2($5),path_prefix:$2($5),ttl_seconds:$2($1),type:$2($5)});$3({headers:$2(#40),pristine:$2($8)});$3({compress:$2($8),h2_backend:$2($8),headers_read_timeout:$2($1),idle_timeout:$2($1),replay_cache:$2(#39),response:$2(#41)});$3({version:$2($5)});$3({alpn:$2(#6:0),default_self_signed:$2($8),versions:$2(#6:0)});$3({end_port:$2($1),force_https:$2($8),handlers:$2(#6:0),http_options:$2(#42),port:$2($1),proxy_proto_options:$2(#43),start_port:$2($1),tls_options:$2(#44)});$3({autostart:$2($8),autostop:$2(#34),checks:$2(#36),concurrency:$2(#37),force_instance_description:$2($5),force_instance_key:$2($5),internal_port:$2($1),min_machines_running:$2($1),ports:$2(#46),protocol:$2($5)});$3({max_price_fraction:$2($1)});$3({guest_path:$5,index_document:$2($5),tigris_bucket:$2($5),url_prefix:$5});$3({auto_destroy:$2($8),cache_drive:$2(#0),checks:$2(#4),containers:$2(#21),disable_machine_autostart:$2($8),dns:$2(#26),env:$2(#10:0),files:$2(#10),guest:$2(#13:0),image:$2($5),init:$2(#27),metadata:$2(#10:0),metrics:$2(#28),mounts:$2(#30),processes:$2(#32),restart:$2(#16),rootfs:$2(#33),schedule:$2($5),services:$2(#48),size:$2($5),spot:$2(#49),standbys:$2(#6:0),statics:$2(#51),stop_config:$2(#19)})`,[r,f,l,b,g,h,__d22,x,m,t,__d3,te,k,__d2]]}function __d6(){return[`$4(>5)@"CheckStatus";$5(#0);$4(>6)@"ImageRef";$4(>7)@"StrippedLease";$4(>8)@"Machine";$3({name:$2($1),output:$2($1),status:$2($1),updated_at:$2($1)});$3({digest:$2($1),labels:$2(#6:0),registry:$2($1),repository:$2($1),tag:$2($1)});$3({description:$2($1),expires_at:$2($7),owner:$2($1)});$3({checks:$2(#1),config:$2(#8:52),cordoned:$2($9),created_at:$2($1),events:$2(#10:1),host_features:$2(#11:0),host_status:$2($1),id:$2($1),image_ref:$2(#2),incomplete_config:$2(#8:52),instance_id:$2($1),lease:$2(#3),name:$2($1),nonce:$2($1),private_ip:$2($1),region:$2($1),state:$2($1),updated_at:$2($1),version:$2($1)})`,[r,h,l,b,g,x,__d3,f,__d5,m,__d4,__d22]]}function __d7(){return[`$5(>2)@"Lease";$5(>3)@"MachineLease";$4({description:$2($1),expires_at:$2($3),nonce:$2($1),owner:$2($1),version:$2($1)});$4({status:$2($1),data:$2(#0)})`,[r,h,l,f,b,g]]}function __d8(){return[`$4(>1)@"PostgresAttachedApp";$3({name:$2($1)})`,[r,h,l,b,g]]}function __d9(){return[`$2(#1:0)`,[r,__d8,x]]}function __d10(){return[`$5(>6)@"PostgresEndpoint";$5(>7)@"PostgresNodeEndpoints";$5(>8)@"PostgresClusterEndpoints";$5(>9)@"OrganizationRef";$5(>10)@"PostgresCluster";$5(>11)@"ShowPostgresClusterResponse";$4({host:$2($1),port:$2($3)});$4({direct:$2(#0),pooler:$2(#0)});$4({primary:$2(#1)});$4({name:$2($1),slug:$2($1)});$4({attached_apps:$2(#6:0),cpu_kind:$2($1),cpus:$2($3),created_at:$2($1),disk_size_gb:$2($3),endpoints:$2(#2),id:$2($1),memory_mb:$2($3),name:$2($1),organization:$2(#3),pg_major_version:$2($1),plan:$2($1),postgis_enabled:$2($7),region:$2($1),replicas:$2($3),status:$2($1),storage_provisioned_bytes:$2($8($3)),storage_used_bytes:$2($8($3))});$4({data:$2(#4)})`,[r,h,l,f,b,g,__d9,m,v]]}function __d11(){return[`$4(>1)@"PostgresDatabaseResponse";$3({data:$2(#1:0)})`,[r,__d8,l,b,g]]}function __d12(){return[`$4(>1)@"PostgresUser";$3({role:$2($1),username:$2($1)})`,[r,h,l,b,g]]}function __d13(){return[`$7(>1)@"Volume";$6({attached_alloc_id:$2($1),attached_machine_id:$2($1),auto_backup_enabled:$2($3),block_size:$2($4),blocks:$2($4),blocks_avail:$2($4),blocks_free:$2($4),bytes_total:$2($4),bytes_used:$2($4),created_at:$2($1),encrypted:$2($3),fstype:$2($1),host_features:$2(#5:0),host_status:$2($1),id:$2($1),name:$2($1),region:$2($1),required_host_features:$2(#5:0),size_gb:$2($4),snapshot_retention:$2($4),state:$2($1),type:$2($1),zone:$2($1)})`,[r,h,l,m,f,__d22,b,g]]}function __d14(){return[`$4(>1)@"DeleteAppSecretResponse";$3({Version:$2($1),version:$2($1)})`,[r,f,l,b,g]]}function __d15(){return[`$5(>1)@"SetSecretkeyResponse";$4({Version:$2($1),created_at:$2($3),name:$2($3),public_key:$2($3),type:$2($3),updated_at:$2($3),version:$2($1)})`,[r,f,l,h,b,g]]}function __d16(){return[`$5(>2)@"AppOrganizationInfo";$5(>3)@"App";$4({internal_numeric_id:$2($1),name:$2($3),slug:$2($3)});$4({id:$2($3),internal_numeric_id:$2($1),machine_count:$2($1),name:$2($3),network:$2($3),network_cidr:$2($3),organization:$2(#0),status:$2($3),volume_count:$2($1)})`,[r,f,l,h,b,g]]}function __d17(){return[`$2($1);$5(>4)@"MacaroonCaveatSet";$5(>5)@"MacaroonNonce";$5(>6)@"RootVerifiedToken";$4({caveats:$3(#0)});$4({kid:$3(#6:0),proof:$3($7),rnd:$3(#6:0)});$4({caveats:$3(#1),header:$3($8),nonce:$3(#2),permission_token:$3(#6:0)})`,[r,k,x,l,b,g,__d18,m,h]]}function __d18(){return[`$2($1)`,[r,f,x]]}function __d19(){return[`$4(>1)@"MainMemoryResponse";$3({available_mb:$2($1),limit_mb:$2($1)})`,[r,f,l,b,g]]}function __d20(){return[`$4(>1)@"AppSecret";$3({created_at:$2($1),digest:$2($1),name:$2($1),updated_at:$2($1),value:$2($1)})`,[r,h,l,b,g]]}function __d21(){return[`$4(>1)@"SecretKey";$3({created_at:$2($1),name:$2($1),public_key:$2($1),type:$2($1),updated_at:$2($1)})`,[r,h,l,b,g]]}function __d22(){return[`$2($1)`,[r,h,x]]}function __d23(){return[`$4(>10)@"IssuedCertificate";$5(#0);$4(>11)@"CertificateEntry";$5(#2);$4(>12)@"AcmeChallenge";$4(>13)@"OwnershipVerification";$4(>14)@"DNSRequirements";$4(>15)@"CertificateValidation";$4(>16)@"CertificateValidationError";$5(#8);$3({certificate_authority:$2($1),expires_at:$2($1),type:$2($1)});$3({created_at:$2($1),expires_at:$2($1),issued:$2(#1),issuer:$2($1),source:$2($1),status:$2($1)});$3({name:$2($1),target:$2($1)});$3({app_value:$2($1),name:$2($1),org_value:$2($1)});$3({a:$2(#6:0),aaaa:$2(#6:0),acme_challenge:$2(#4),cname:$2($1),ownership:$2(#5)});$3({alpn_configured:$2($7),dns_configured:$2($7),http_configured:$2($7),ownership_txt_configured:$2($7)});$3({code:$2($1),message:$2($1),remediation:$2($1),timestamp:$2($1)})`,[r,h,l,b,g,x,__d22,m]]}function __d24(){return[`$2(#1:0)`,[r,__d20,x]]}function __d25(){return[`$2(>1)@"CordonMachineResponse";$1({})`,[r,b,g]]}function __d26(){return[`$5(>2)@"PostgresUserCredentials";$5(>3)@"GetPostgresUserCredentialsResponse";$4({password:$3($2.pipe($1({}))),username:$3($2)});$4({data:$3(#0)})`,[r,D,h,l,b,g]]}export{M as MachineReplacing,N as MachineStartFromCreatedState,P as MachineWaitTimeout,F as NetworkNotFound,I as VolumeAttached,L as authenticateToken,R as authorizeToken,z as checkAppCertificate,B as cordonMachine,V as createApp,H as createAppAcmeCertificate,U as createAppCustomCertificate,W as createAppDeployToken,G as createAppIPAssignment,K as createMachine,q as createMachineLease,J as createPostgres,Y as createPostgresAttachment,X as createPostgresBackup,Z as createPostgresDatabase,Q as createPostgresUser,ne as createSecret,re as createVolume,ie as createVolumeSnapshot,ae as decryptSecretKey,oe as deleteApp,se as deleteAppAcmeCertificate,ce as deleteAppCertificate,le as deleteAppCustomCertificate,ue as deleteAppIPAssignment,de as deleteMachine,fe as deleteMachineMetadata,pe as deletePostgres,me as deletePostgresAttachment,he as deletePostgresDatabase,ge as deletePostgresUser,_e as deleteSecret,ve as deleteSecretKey,ye as deleteVolume,be as disablePostgresExtension,xe as enablePostgresExtension,Se as encryptSecretKey,Ce as execMachine,we as extendVolume,Te as forkPostgres,Ee as generateSecretKey,De as getApp,Oe as getAppCertificate,ke as getCurrentToken,Ae as getMachine,je as getMachineLease,Me as getMachineMemory,Ne as getMachineMetadata,Pe as getMachineMetadataKey,Fe as getPlacements,Ie as getPostgres,Le as getRegions,Re as getSecret,ze as getSecretKey,Be as getVolumeById,Ve as listAppCertificates,He as listAppIPAssignments,Ue as listApps,We as listMachineEvents,Ge as listMachineProcesses,Je as listMachineVersions,Ke as listMachines,qe as listMachinesOrg,Ye as listPostgres,Xe as listPostgresBackups,Ze as listPostgresDatabases,Qe as listPostgresExtensions,$e as listPostgresUsers,et as listSecretKeys,tt as listSecrets,rt as listVolumeSnapshots,nt as listVolumes,it as listVolumesOrg,at as machinesReleaseLease,ot as patchMachineMetadata,st as postgresQueriesActive,ct as postgresQueriesSlow,lt as postgresUsersCredentials,ut as reclaimMachineMemory,dt as requestKmsToken,ft as requestOidcToken,pt as restartMachine,mt as restorePostgres,ht as rotatePostgresUserPassword,gt as setMachineMemoryLimit,_t as setSecretKey,yt as signSecretKey,vt as signalMachine,$ as startMachine,bt as stopMachine,xt as suspendMachine,St as uncordonMachine,Ct as updateMachine,wt as updatePostgresUserRole,Tt as updateSecrets,Et as updateVolume,Dt as upsertMachineMetadata,Ot as verifySecretKey,kt as waitMachine};
|
|
2
|
+
/*
|
|
3
|
+
34 131
|
|
4
|
+
e:0:_ t:0:a n:0:c r:0:d i:0:errors$BadRequest a:0:errors$Conflict o:0:errors$Forbidden ee:0:errors$GatewayTimeout s:0:errors$NotFound c:0:errors$UnprocessableEntity l:0:f u:0:g d:0:h f:0:i te:0:l p:0:m m:0:n h:0:o g:0:p _:0:protocol$FlyIoProtocol v:0:r y:0:retry$Retry b:0:s x:0:t S:0:traits$Header C:0:traits$Http w:0:traits$Label T:0:traits$Query E:0:traits$RawResponseRoot D:0:traits$SensitiveValue O:0:traits$applyErrorMatchers k:0:u A:0:v j:0:y
|
|
5
|
+
000000001b0002n000450005m000720008j000a2000be000d0000em000g7000hm000ja000kj000lu000n9000oo000qb000rp000t4000ue000vo000wy000yc000zm001160012g0013o0014w001660017g0018q001a0001bf001cx001ef001fu001he001iw001kc001lv001n5001of001pp001r5001sf001tp001v1001w8001xo001yw002070021n002310024b0025s0027m00290002ai002c1002dn002fn002hh002iz002ko002ly002nu002p6002qw002sc002ty002vr002xg002ys003090031o003330034d0035q0036y0038c0039w003ba003cq003e6003fp003h3003ii003k5003ln003n5003on003qc003ro003t9003ur003w5003xn003z9003zz0040p0041f004280043200446004550046900474004890049v004bg004cl004do004eo004g1004h6004ia004jl004kp004lv004n1004oe004pe004qi004rm004sq004tq004v1004w2004x2004y8
|
|
6
|
+
2 1a3 1hx L|=;1ae 1gu;3,p,h,a,m,i,4b,n,s,4,j,l
|
|
7
|
+
2 1in 263 R|=;1iy 24w;3,d,a,h,4g,m,i,p,4b,4,j,l
|
|
8
|
+
2 26t 2r0 z|=;274 2pn;3,p,q,h,m,i,4g,a,g,4h,4,6,8,j,l
|
|
9
|
+
2 2rq 31k B|=;2s1 30b;3,p,q,h,o,a,m,i,4j,4,6,8,5,j,l
|
|
10
|
+
2 32a 3c6 V|=;32l 3b1;3,p,g,a,h,m,i,d,4,6,8,5,9,j,l
|
|
11
|
+
2 3cw 3l0 H|=;3d7 3js;3,p,q,h,a,m,i,3u,4,6,8,5,9,j,l
|
|
12
|
+
2 3lq 3ve U|=;3m1 3u4;3,p,q,h,a,t,m,i,3u,4,6,8,5,9,j,l
|
|
13
|
+
2 3w4 45e W|=;3wf 44d;3,p,q,h,a,m,i,t,4,6,8,j,l
|
|
14
|
+
2 464 4lf G|=;46f 4k3;3,p,q,h,a,m,i,g,3v,k,4,6,8,5,3s,j,l
|
|
15
|
+
2 4m5 4xu K|=;4mg 4wf;3,p,q,h,3z,a,d,g,m,i,40,4,6,8,5,j,l
|
|
16
|
+
2 4yk 59s q|=;4yv 58g;3,p,q,h,a,r,d,o,m,i,41,4,6,8,5,j,l
|
|
17
|
+
2 5ai 5ju J|=;5at 5in;3,p,d,a,h,g,m,i,44,4,8,9,j,l
|
|
18
|
+
2 5kk 5vr Y|=PostgresAttachment;5lh 5uw;3,p,q,h,m,i,a,8,j,l
|
|
19
|
+
2 5wh 645 X|=;5ws 634;3,p,q,h,m,i,4j,8,5,j,l
|
|
20
|
+
2 64v 6ct Z|=;656 6bq;3,p,q,h,m,i,45,4,8,9,j,l
|
|
21
|
+
2 6dj 6nc Q|=;6du 6m5;3,p,q,h,m,i,46,a,4,8,5,9,j,l
|
|
22
|
+
2 6o3 709 ne|=;6oe 6z5;3,p,q,h,a,m,i,d,4,6,8,5,j,l
|
|
23
|
+
2 710 7fj re|=;71b 7e2;3,p,q,h,g,a,3w,d,m,i,47,4,6,8,5,j,l
|
|
24
|
+
2 7ga 7on ie|=;7gl 7nh;3,p,q,h,m,i,4j,4,6,8,5,j,l
|
|
25
|
+
2 7pe 81j ae|=;7pp 80f;3,p,q,h,r,a,m,i,t,4,6,8,j,l
|
|
26
|
+
2 82a 88k oe|=;82l 87i;3,p,q,h,m,i,4j,6,8,j,l
|
|
27
|
+
2 89b 8hf se|=;89m 8ge;3,p,q,h,m,i,3u,6,8,j,l
|
|
28
|
+
2 8i6 8q2 ce|=;8ih 8p0;3,p,q,h,m,i,4j,6,8,j,l
|
|
29
|
+
2 8qt 96s le|=;8r4 95m;3,p,q,h,m,i,g,a,4h,6,8,j,l
|
|
30
|
+
2 97j 9f6 ue|=;97u 9e4;3,p,q,h,m,i,4j,6,8,j,l
|
|
31
|
+
2 9fx 9qb de|=;9g8 9oz;3,p,q,h,r,g,a,o,m,i,4j,6,8,5,j,l
|
|
32
|
+
2 9r2 9zw fe|=;9rd 9yu;3,p,q,h,m,i,4j,6,8,j,l
|
|
33
|
+
2 a0n a7m pe|=;a0y a6m;3,p,q,h,m,i,4j,8,j,l
|
|
34
|
+
2 a8d agw me|=;a8o afw;3,p,q,h,m,i,4j,8,j,l
|
|
35
|
+
2 ahn aqi he|=;ahy apg;3,p,q,h,m,i,45,4,8,j,l
|
|
36
|
+
2 ar9 azm ge|=;ark ayk;3,p,q,h,m,i,4j,4,8,j,l
|
|
37
|
+
2 b0d b82 _e|=;b0o b70;3,p,q,h,m,i,48,6,8,j,l
|
|
38
|
+
2 b8t bgo ve|=;b94 bfm;3,p,q,h,m,i,48,6,8,j,l
|
|
39
|
+
2 bhf bpc ye|=;bhq bo6;3,p,q,h,m,i,47,6,8,5,3t,j,l
|
|
40
|
+
2 bq3 c1o be|=;bqe c0e;3,p,q,h,r,g,a,m,i,4j,4,8,9,j,l
|
|
41
|
+
2 c2f cd9 xe|=;c2q cbz;3,p,q,h,g,a,m,i,4j,4,8,5,9,j,l
|
|
42
|
+
2 ce0 cq5 Se|=;ceb cp1;3,p,q,h,r,a,t,m,i,4,6,8,j,l
|
|
43
|
+
2 cqw d4b Ce|=;cr7 d2z;3,p,q,h,a,4g,g,d,m,i,4,6,8,5,j,l
|
|
44
|
+
2 d52 dfk we|=;d5d dea;3,p,q,h,d,a,m,i,g,47,4,6,8,j,l
|
|
45
|
+
2 dgb do8 Te|=;dgm dn0;3,p,q,h,a,m,i,44,4,8,5,9,j,l
|
|
46
|
+
2 doz dyg Ee|=;dpa dx2;3,p,q,h,a,4c,m,i,49,4,6,8,5,j,l
|
|
47
|
+
2 dz7 e5b De|=;dzi e49;3,p,q,h,m,i,4a,6,8,j,l
|
|
48
|
+
2 e62 edr Oe|=;e6d ecq;3,p,q,h,m,i,3u,6,8,j,l
|
|
49
|
+
2 eei eq5 ke|=;eet ep3;3,p,m,i,4g,a,h,n,6,j,l
|
|
50
|
+
2 eqw f0a Ae|=;er7 ez3;3,p,q,h,r,a,g,m,i,40,6,8,j,l
|
|
51
|
+
2 f11 f8u je|=;f1c f7t;3,p,q,h,m,i,41,6,8,j,l
|
|
52
|
+
2 f9l fhh Me|=;f9w fgf;3,p,q,h,m,i,4d,6,8,j,l
|
|
53
|
+
2 fi8 fro Ne|=;fij fql;3,p,q,h,m,i,s,3x,6,8,j,l
|
|
54
|
+
2 fsf g28 Pe|=;fsq g1c;3,p,q,h,m,i,a,8,j,l
|
|
55
|
+
2 g2z ggk Fe|=;g3a gfd;3,h,d,1,p,3w,a,m,i,n,4,6,j,l
|
|
56
|
+
2 ghb go4 Ie|=;ghm gn4;3,p,q,h,m,i,44,8,j,l
|
|
57
|
+
2 gov h1p Le|=;gp6 h0p;3,p,m,i,h,a,g,d,n,6,j,l
|
|
58
|
+
2 h2g hbx Re|=;h2r hap;3,p,q,h,r,a,g,m,i,4e,6,8,j,l
|
|
59
|
+
2 hco hld ze|=;hcz hk7;3,p,q,h,r,a,m,i,4f,6,8,j,l
|
|
60
|
+
2 hm4 htn Be|=;hmf hsl;3,p,q,h,m,i,47,6,8,j,l
|
|
61
|
+
2 hue ifl Ve|=;hup ief;3,p,q,h,r,a,d,m,i,g,n,6,8,j,l
|
|
62
|
+
2 igc isv He|=IPAssignment;ih3 irm;3,p,q,h,m,i,a,g,3v,k,n,6,8,j,l
|
|
63
|
+
2 itm j44 Ue|=;itx j2y;3,p,r,h,a,d,m,i,4a,n,6,j,l
|
|
64
|
+
2 j4v jf4 We|=;j56 jdv;3,p,q,h,r,d,a,m,i,s,3y,6,8,j,l
|
|
65
|
+
2 jfv jws Ge|=;jg6 jvk;3,p,q,h,r,a,m,i,n,d,s,4,6,8,j,l
|
|
66
|
+
2 jxj kcm Ke|=;jxu kb9;3,p,q,h,r,g,a,d,m,i,40,n,s,6,8,j,l
|
|
67
|
+
2 kdd l11 qe|=OrgMachine;ke2 kzf;3,p,q,h,r,g,a,d,m,i,3w,3x,n,4g,6,8,j,l
|
|
68
|
+
2 l1s lcv Je|=MachineVersion;l2l lbo;3,p,q,h,m,i,3z,a,n,s,6,8,j,l
|
|
69
|
+
2 ldm lr5 Ye|=;ldx lpw;3,p,r,h,g,a,m,i,43,n,4,8,9,j,l
|
|
70
|
+
2 lrw m3n Xe|=PostgresBackup;lsp m2n;3,p,q,h,m,i,a,d,n,8,j,l
|
|
71
|
+
2 m4e mde Ze|=;m4p mcd;3,p,q,h,m,i,43,a,8,j,l
|
|
72
|
+
2 me5 mta Qe|=PostgresExtension;mf1 ms6;3,p,q,h,m,i,a,k,g,n,4,8,j,l
|
|
73
|
+
2 mu1 n30 $e|=;muc n1w;3,p,q,h,m,i,46,n,a,8,j,l
|
|
74
|
+
2 n3r ndh et|=SecretKeys;n4g nc9;3,p,q,h,r,a,m,i,4f,n,6,8,j,l
|
|
75
|
+
2 ne8 nns tt|=;nej nmk;3,p,q,h,r,a,g,m,i,4i,6,8,j,l
|
|
76
|
+
2 noj nyz nt|=;nou nxl;3,p,q,h,r,g,a,d,m,i,47,n,s,6,8,j,l
|
|
77
|
+
2 nzq oco rt|=VolumeSnapshot;o0j obk;3,p,q,h,m,i,a,d,n,s,6,8,j,l
|
|
78
|
+
2 odf p60 it|=OrgVolume;oe3 p4s;3,p,q,h,r,g,a,d,m,i,4g,n,j,l
|
|
79
|
+
2 p6r pgb at|=;p72 pf7;3,p,q,h,o,m,i,4j,6,8,j,l
|
|
80
|
+
2 ph2 pr8 ot|=;phd ppx;3,p,q,h,a,3x,m,i,4j,4,6,8,j,l
|
|
81
|
+
2 prz q8q st|=;psa q7m;3,p,q,h,r,m,i,a,d,n,8,9,j,l
|
|
82
|
+
2 q9h qoz ct|=;q9s qnv;3,p,q,h,r,d,a,m,i,n,8,9,j,l
|
|
83
|
+
2 qpq qyi lt|=;qq1 qxg;3,p,q,h,m,i,4k,4,8,j,l
|
|
84
|
+
2 qz9 r9o ut|=;qzk r8m;3,p,q,h,d,a,m,i,4,6,8,j,l
|
|
85
|
+
2 raf rg2 dt|=;raq rf2;3,p,m,i,4j,4,6,8,j,l
|
|
86
|
+
2 rgt rnr ft|=;rh4 rml;3,p,h,a,g,m,i,4j,4,6,8,j,l
|
|
87
|
+
2 roi rzx pt|=;rot ryl;3,p,q,h,r,a,o,m,i,4j,4,6,8,5,j,l
|
|
88
|
+
2 s0o s9j mt|=;s0z s8d;3,p,q,h,a,m,i,44,4,8,9,j,l
|
|
89
|
+
2 saa sk6 ht|=;sal siy;3,p,q,h,g,a,m,i,4k,4,8,9,j,l
|
|
90
|
+
2 skx stq gt|=;sl8 ssi;3,p,q,h,d,a,m,i,4d,4,6,8,j,l
|
|
91
|
+
2 suh t3k _t|=;sus t26;3,p,q,h,a,4c,m,i,49,4,6,8,5,j,l
|
|
92
|
+
2 t4b tcs vt|=;t4m tbm;3,p,q,h,a,m,i,4j,4,6,8,j,l
|
|
93
|
+
2 tdj tor yt|=;tdu tnn;3,p,q,h,r,a,t,m,i,4,6,8,j,l
|
|
94
|
+
2 tph tzl $|=;tps ty8;3,p,q,h,o,a,m,i,4j,4,6,8,5,3q,3p,j,l
|
|
95
|
+
2 u0c uaw bt|=;u0n u9m;3,p,q,h,a,o,m,i,4j,4,6,8,5,j,l
|
|
96
|
+
2 ubn ulk xt|=;uby uka;3,p,q,h,o,a,m,i,4j,4,6,8,5,j,l
|
|
97
|
+
2 umb uwa St|=;umm uv0;3,p,q,h,o,a,m,i,4j,4,6,8,5,j,l
|
|
98
|
+
2 ux1 vc2 Ct|=;uxc vak;3,p,q,h,3z,a,d,g,o,m,i,40,4,6,8,5,j,l
|
|
99
|
+
2 vct vln wt|=;vd4 vkj;3,p,q,h,m,i,4j,4,8,9,j,l
|
|
100
|
+
2 vme vwb Tt|=;vmp vuw;3,p,q,h,3x,a,m,i,d,4i,4,6,8,5,j,l
|
|
101
|
+
2 vx2 w6g Et|=;vxd w56;3,p,q,h,g,a,d,m,i,47,4,6,8,j,l
|
|
102
|
+
2 w77 wh3 Dt|=;w7i wfx;3,p,q,h,a,m,i,4j,4,6,8,j,l
|
|
103
|
+
2 whu wse Ot|=;wi5 wr4;3,p,q,h,r,a,t,m,i,4j,4,6,8,j,l
|
|
104
|
+
2 wt5 x7r kt|=;wtg x6g;3,p,q,h,r,a,d,m,i,g,4,6,8,7,3r,j,l
|
|
105
|
+
3 ez kh M|=;gg k3;3,h,2,u
|
|
106
|
+
3 l7 rc N|=;n0 qy;3,h,2,u
|
|
107
|
+
3 s2 y9 P|=;tl xv;3,h,2,u
|
|
108
|
+
3 yz 13f F|=;10f 131;3,h,2,u
|
|
109
|
+
3 145 19d I|=;15k 18z;3,h,2,u
|
|
110
|
+
1 x7t xfv __d0|=;x8h xf8;3,g,a,4h,h,m,i
|
|
111
|
+
1 xfv xio __d1|=;xgj xi9;3,h,a,m,i
|
|
112
|
+
1 xio xq8 __d2|=;xjc xpl;3,h,a,d,4g,m,i
|
|
113
|
+
1 xq8 xrg __d3|=;xqw xr5;3,h,1
|
|
114
|
+
1 xrg xvx __d4|=;xs4 xvc;3,h,a,v,d,m,i,n
|
|
115
|
+
1 xvx 11b3 __d5|=;xwl 119v;3,d,a,m,i,h,4g,n,g,1,3x,e,v,3w
|
|
116
|
+
1 11b3 11ts __d6|=;11br 11sm;3,h,a,m,i,n,3x,d,3z,g,3y,4g
|
|
117
|
+
1 11ts 11z5 __d7|=;11ug 11yo;3,h,a,d,m,i
|
|
118
|
+
1 11z5 121i __d8|=;11zt 1213;3,h,a,m,i
|
|
119
|
+
1 121i 122s __d9|=;1226 122e;3,42,n
|
|
120
|
+
1 122s 12mc __d10|=;123h 12lm;3,h,a,d,m,i,43,g,k
|
|
121
|
+
1 12mc 12p0 __d11|=;12n1 12oi;3,42,a,m,i
|
|
122
|
+
1 12p0 12rn __d12|=;12pp 12r8;3,h,a,m,i
|
|
123
|
+
1 12rn 135e __d13|=;12sc 134p;3,h,a,g,d,4g,m,i
|
|
124
|
+
1 135e 138e __d14|=;1363 137z;3,d,a,m,i
|
|
125
|
+
1 138e 13dj __d15|=;1393 13d2;3,d,a,h,m,i
|
|
126
|
+
1 13dj 13m0 __d16|=;13e8 13lj;3,d,a,h,m,i
|
|
127
|
+
1 13m0 13tn __d17|=;13mp 13sw;3,v,n,a,m,i,4c,g,h
|
|
128
|
+
1 13tn 13ut __d18|=;13uc 13ui;3,d,n
|
|
129
|
+
1 13ut 13xu __d19|=;13vi 13xf;3,d,a,m,i
|
|
130
|
+
1 13xu 141p __d20|=;13yj 141a;3,h,a,m,i
|
|
131
|
+
1 141p 145n __d21|=;142e 1458;3,h,a,m,i
|
|
132
|
+
1 145n 146t __d22|=;146c 146i;3,h,n
|
|
133
|
+
1 146t 14si __d23|=;147i 14rt;3,h,a,m,i,n,4g,g
|
|
134
|
+
1 14si 14tu __d24|=;14t7 14tf;3,4e,n
|
|
135
|
+
1 14tu 14vv __d25|=;14uj 14vk;3,m,i
|
|
136
|
+
1 14vv 1512 __d26|=;14wk 150l;3,t,h,a,m,i
|
|
137
|
+
*/
|
|
2737
138
|
//# sourceMappingURL=machines.js.map
|