@distilled.cloud/fly-io 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +43 -38
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -24
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +37 -37
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +31 -31
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +3 -3
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +89 -66
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +26 -25
- package/lib/retry.js.map +1 -1
- package/lib/services/addons.d.ts +0 -65
- package/lib/services/addons.d.ts.map +1 -1
- package/lib/services/addons.js +54 -561
- package/lib/services/machines.d.ts +25 -444
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +317 -2726
- package/lib/services/mpg.d.ts +1 -67
- package/lib/services/mpg.d.ts.map +1 -1
- package/lib/services/mpg.js +75 -448
- package/lib/services/sprites.d.ts +1 -125
- package/lib/services/sprites.d.ts.map +1 -1
- package/lib/services/sprites.js +146 -884
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +14 -14
- package/lib/traits.js.map +1 -1
- package/package.json +13 -9
- package/src/credentials.ts +18 -15
- package/src/errors.ts +26 -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/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/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/services/addons.js.map +0 -1
- package/lib/services/machines.js.map +0 -1
- package/lib/services/mpg.js.map +0 -1
- package/lib/services/sprites.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/src/protocol.test.ts +0 -214
- package/src/sprites-mint.test.ts +0 -228
|
@@ -1,71 +1,60 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
3
4
|
import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity } from "../errors.ts";
|
|
4
5
|
import { type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
|
|
5
6
|
export type { FlyIoOpError, FlyIoOpContext };
|
|
6
|
-
declare const MachineReplacing_base: S.
|
|
7
|
+
declare const MachineReplacing_base: S.TaggedErrorClass<"MachineReplacing", {
|
|
7
8
|
readonly message: any;
|
|
8
|
-
}
|
|
9
|
+
}>;
|
|
9
10
|
export declare class MachineReplacing extends /*@__PURE__*/ MachineReplacing_base {
|
|
10
11
|
}
|
|
11
|
-
declare const MachineStartFromCreatedState_base: S.
|
|
12
|
+
declare const MachineStartFromCreatedState_base: S.TaggedErrorClass<"MachineStartFromCreatedState", {
|
|
12
13
|
readonly message: any;
|
|
13
|
-
}
|
|
14
|
+
}>;
|
|
14
15
|
export declare class MachineStartFromCreatedState extends /*@__PURE__*/ MachineStartFromCreatedState_base {
|
|
15
16
|
}
|
|
16
|
-
declare const MachineWaitTimeout_base: S.
|
|
17
|
+
declare const MachineWaitTimeout_base: S.TaggedErrorClass<"MachineWaitTimeout", {
|
|
17
18
|
readonly message: any;
|
|
18
|
-
}
|
|
19
|
+
}>;
|
|
19
20
|
export declare class MachineWaitTimeout extends /*@__PURE__*/ MachineWaitTimeout_base {
|
|
20
21
|
}
|
|
21
|
-
declare const NetworkNotFound_base: S.
|
|
22
|
+
declare const NetworkNotFound_base: S.TaggedErrorClass<"NetworkNotFound", {
|
|
22
23
|
readonly message: any;
|
|
23
|
-
}
|
|
24
|
+
}>;
|
|
24
25
|
export declare class NetworkNotFound extends /*@__PURE__*/ NetworkNotFound_base {
|
|
25
26
|
}
|
|
26
|
-
declare const VolumeAttached_base: S.
|
|
27
|
+
declare const VolumeAttached_base: S.TaggedErrorClass<"VolumeAttached", {
|
|
27
28
|
readonly message: any;
|
|
28
|
-
}
|
|
29
|
+
}>;
|
|
29
30
|
export declare class VolumeAttached extends /*@__PURE__*/ VolumeAttached_base {
|
|
30
31
|
}
|
|
31
32
|
export interface AuthenticateTokenRequest {
|
|
32
33
|
header?: string;
|
|
33
34
|
}
|
|
34
|
-
export declare const AuthenticateTokenRequest: S.Schema<AuthenticateTokenRequest>;
|
|
35
35
|
export type MacaroonCaveatSetCaveatsList = Array<unknown>;
|
|
36
|
-
export declare const MacaroonCaveatSetCaveatsList: S.Schema<MacaroonCaveatSetCaveatsList>;
|
|
37
36
|
export interface MacaroonCaveatSet {
|
|
38
37
|
caveats?: MacaroonCaveatSetCaveatsList;
|
|
39
38
|
}
|
|
40
|
-
export declare const MacaroonCaveatSet: S.Schema<MacaroonCaveatSet>;
|
|
41
39
|
export type MacaroonNonceKidList = Array<number>;
|
|
42
|
-
export declare const MacaroonNonceKidList: S.Schema<MacaroonNonceKidList>;
|
|
43
40
|
export type MacaroonNonceRndList = Array<number>;
|
|
44
|
-
export declare const MacaroonNonceRndList: S.Schema<MacaroonNonceRndList>;
|
|
45
41
|
export interface MacaroonNonce {
|
|
46
42
|
kid?: MacaroonNonceKidList;
|
|
47
43
|
proof?: boolean;
|
|
48
44
|
rnd?: MacaroonNonceRndList;
|
|
49
45
|
}
|
|
50
|
-
export declare const MacaroonNonce: S.Schema<MacaroonNonce>;
|
|
51
46
|
export type RootVerifiedTokenPermissionTokenList = Array<number>;
|
|
52
|
-
export declare const RootVerifiedTokenPermissionTokenList: S.Schema<RootVerifiedTokenPermissionTokenList>;
|
|
53
47
|
export interface RootVerifiedToken {
|
|
54
48
|
caveats?: MacaroonCaveatSet;
|
|
55
49
|
header?: string;
|
|
56
50
|
nonce?: MacaroonNonce;
|
|
57
51
|
permission_token?: RootVerifiedTokenPermissionTokenList;
|
|
58
52
|
}
|
|
59
|
-
export declare const RootVerifiedToken: S.Schema<RootVerifiedToken>;
|
|
60
53
|
export type AuthenticateTokenResponseBodyList = Array<RootVerifiedToken>;
|
|
61
|
-
export declare const AuthenticateTokenResponseBodyList: S.Schema<AuthenticateTokenResponseBodyList>;
|
|
62
54
|
export type AuthenticateTokenResponse = AuthenticateTokenResponseBodyList;
|
|
63
|
-
export declare const AuthenticateTokenResponse: S.Schema<AuthenticateTokenResponse>;
|
|
64
55
|
export type RessetAction = 1 | 2 | 4 | 8 | 16 | 31 | 0;
|
|
65
|
-
export declare const RessetAction: any;
|
|
66
56
|
/** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
|
|
67
57
|
export type MainTokenAccessCommandList = Array<string>;
|
|
68
|
-
export declare const MainTokenAccessCommandList: S.Schema<MainTokenAccessCommandList>;
|
|
69
58
|
export interface MainTokenAccess {
|
|
70
59
|
/** Action is the action being taken on the specified resource. This is the combination of individual action characters (e.g "rw") - r: read - w: write - c: create - d: delete - C: control */
|
|
71
60
|
action?: RessetAction | (number & {});
|
|
@@ -92,14 +81,11 @@ export interface MainTokenAccess {
|
|
|
92
81
|
/** VolumeID is the encoded ID of the volume being accessed (e.g. vol_r1p6pln1k9m9j7zr). */
|
|
93
82
|
volume_id?: string;
|
|
94
83
|
}
|
|
95
|
-
export declare const MainTokenAccess: S.Schema<MainTokenAccess>;
|
|
96
84
|
export interface AuthorizeTokenRequest {
|
|
97
85
|
access?: MainTokenAccess;
|
|
98
86
|
header?: string;
|
|
99
87
|
}
|
|
100
|
-
export declare const AuthorizeTokenRequest: S.Schema<AuthorizeTokenRequest>;
|
|
101
88
|
export type FlyioAccessCommandList = Array<string>;
|
|
102
|
-
export declare const FlyioAccessCommandList: S.Schema<FlyioAccessCommandList>;
|
|
103
89
|
export interface FlyioAccess {
|
|
104
90
|
action?: RessetAction;
|
|
105
91
|
app_feature?: string;
|
|
@@ -117,33 +103,25 @@ export interface FlyioAccess {
|
|
|
117
103
|
storage_object?: string;
|
|
118
104
|
volume?: string;
|
|
119
105
|
}
|
|
120
|
-
export declare const FlyioAccess: S.Schema<FlyioAccess>;
|
|
121
106
|
export interface AuthorizeResponse {
|
|
122
107
|
access?: FlyioAccess;
|
|
123
108
|
verified_token?: RootVerifiedToken;
|
|
124
109
|
}
|
|
125
|
-
export declare const AuthorizeResponse: S.Schema<AuthorizeResponse>;
|
|
126
110
|
export interface CheckAppCertificateRequest {
|
|
127
111
|
/** Fly App Name */
|
|
128
112
|
app_name: string;
|
|
129
113
|
/** Certificate Hostname */
|
|
130
114
|
hostname: string;
|
|
131
115
|
}
|
|
132
|
-
export declare const CheckAppCertificateRequest: S.Schema<CheckAppCertificateRequest>;
|
|
133
116
|
export type IssuedCertificateType = "rsa" | "ecdsa";
|
|
134
|
-
export declare const IssuedCertificateType: any;
|
|
135
117
|
export interface IssuedCertificate {
|
|
136
118
|
certificate_authority?: string;
|
|
137
119
|
expires_at?: string;
|
|
138
120
|
type?: IssuedCertificateType;
|
|
139
121
|
}
|
|
140
|
-
export declare const IssuedCertificate: S.Schema<IssuedCertificate>;
|
|
141
122
|
export type CertificateEntryIssuedList = Array<IssuedCertificate>;
|
|
142
|
-
export declare const CertificateEntryIssuedList: S.Schema<CertificateEntryIssuedList>;
|
|
143
123
|
export type CertificateEntrySource = "custom" | "fly";
|
|
144
|
-
export declare const CertificateEntrySource: any;
|
|
145
124
|
export type CertificateEntryStatus = "active" | "pending_ownership" | "pending_validation";
|
|
146
|
-
export declare const CertificateEntryStatus: any;
|
|
147
125
|
export interface CertificateEntry {
|
|
148
126
|
created_at?: string;
|
|
149
127
|
expires_at?: string;
|
|
@@ -152,17 +130,11 @@ export interface CertificateEntry {
|
|
|
152
130
|
source?: CertificateEntrySource;
|
|
153
131
|
status?: CertificateEntryStatus;
|
|
154
132
|
}
|
|
155
|
-
export declare const CertificateEntry: S.Schema<CertificateEntry>;
|
|
156
133
|
export type CertificateCheckResponseCertificatesList = Array<CertificateEntry>;
|
|
157
|
-
export declare const CertificateCheckResponseCertificatesList: S.Schema<CertificateCheckResponseCertificatesList>;
|
|
158
134
|
export type DNSRecordsAList = Array<string>;
|
|
159
|
-
export declare const DNSRecordsAList: S.Schema<DNSRecordsAList>;
|
|
160
135
|
export type DNSRecordsAaaaList = Array<string>;
|
|
161
|
-
export declare const DNSRecordsAaaaList: S.Schema<DNSRecordsAaaaList>;
|
|
162
136
|
export type DNSRecordsCnameList = Array<string>;
|
|
163
|
-
export declare const DNSRecordsCnameList: S.Schema<DNSRecordsCnameList>;
|
|
164
137
|
export type DNSRecordsResolvedAddressesList = Array<string>;
|
|
165
|
-
export declare const DNSRecordsResolvedAddressesList: S.Schema<DNSRecordsResolvedAddressesList>;
|
|
166
138
|
export interface DNSRecords {
|
|
167
139
|
a?: DNSRecordsAList;
|
|
168
140
|
aaaa?: DNSRecordsAaaaList;
|
|
@@ -172,22 +144,17 @@ export interface DNSRecords {
|
|
|
172
144
|
resolved_addresses?: DNSRecordsResolvedAddressesList;
|
|
173
145
|
soa?: string;
|
|
174
146
|
}
|
|
175
|
-
export declare const DNSRecords: S.Schema<DNSRecords>;
|
|
176
147
|
export type DNSRequirementsAList = Array<string>;
|
|
177
|
-
export declare const DNSRequirementsAList: S.Schema<DNSRequirementsAList>;
|
|
178
148
|
export type DNSRequirementsAaaaList = Array<string>;
|
|
179
|
-
export declare const DNSRequirementsAaaaList: S.Schema<DNSRequirementsAaaaList>;
|
|
180
149
|
export interface AcmeChallenge {
|
|
181
150
|
name?: string;
|
|
182
151
|
target?: string;
|
|
183
152
|
}
|
|
184
|
-
export declare const AcmeChallenge: S.Schema<AcmeChallenge>;
|
|
185
153
|
export interface OwnershipVerification {
|
|
186
154
|
app_value?: string;
|
|
187
155
|
name?: string;
|
|
188
156
|
org_value?: string;
|
|
189
157
|
}
|
|
190
|
-
export declare const OwnershipVerification: S.Schema<OwnershipVerification>;
|
|
191
158
|
export interface DNSRequirements {
|
|
192
159
|
a?: DNSRequirementsAList;
|
|
193
160
|
aaaa?: DNSRequirementsAaaaList;
|
|
@@ -195,23 +162,19 @@ export interface DNSRequirements {
|
|
|
195
162
|
cname?: string;
|
|
196
163
|
ownership?: OwnershipVerification;
|
|
197
164
|
}
|
|
198
|
-
export declare const DNSRequirements: S.Schema<DNSRequirements>;
|
|
199
165
|
export interface CertificateValidation {
|
|
200
166
|
alpn_configured?: boolean;
|
|
201
167
|
dns_configured?: boolean;
|
|
202
168
|
http_configured?: boolean;
|
|
203
169
|
ownership_txt_configured?: boolean;
|
|
204
170
|
}
|
|
205
|
-
export declare const CertificateValidation: S.Schema<CertificateValidation>;
|
|
206
171
|
export interface CertificateValidationError {
|
|
207
172
|
code?: string;
|
|
208
173
|
message?: string;
|
|
209
174
|
remediation?: string;
|
|
210
175
|
timestamp?: string;
|
|
211
176
|
}
|
|
212
|
-
export declare const CertificateValidationError: S.Schema<CertificateValidationError>;
|
|
213
177
|
export type CertificateCheckResponseValidationErrorsList = Array<CertificateValidationError>;
|
|
214
|
-
export declare const CertificateCheckResponseValidationErrorsList: S.Schema<CertificateCheckResponseValidationErrorsList>;
|
|
215
178
|
export interface CertificateCheckResponse {
|
|
216
179
|
acme_requested?: boolean;
|
|
217
180
|
certificates?: CertificateCheckResponseCertificatesList;
|
|
@@ -225,7 +188,6 @@ export interface CertificateCheckResponse {
|
|
|
225
188
|
validation?: CertificateValidation;
|
|
226
189
|
validation_errors?: CertificateCheckResponseValidationErrorsList;
|
|
227
190
|
}
|
|
228
|
-
export declare const CertificateCheckResponse: S.Schema<CertificateCheckResponse>;
|
|
229
191
|
export interface CordonMachineRequest {
|
|
230
192
|
/** Fly App Name */
|
|
231
193
|
app_name: string;
|
|
@@ -233,10 +195,8 @@ export interface CordonMachineRequest {
|
|
|
233
195
|
machine_id: string;
|
|
234
196
|
lease_nonce?: string;
|
|
235
197
|
}
|
|
236
|
-
export declare const CordonMachineRequest: S.Schema<CordonMachineRequest>;
|
|
237
198
|
export interface CordonMachineResponse {
|
|
238
199
|
}
|
|
239
|
-
export declare const CordonMachineResponse: S.Schema<CordonMachineResponse>;
|
|
240
200
|
export interface CreateAppRequest {
|
|
241
201
|
enable_subdomains?: boolean;
|
|
242
202
|
/** When set, makes a retry of this exact request safe: a second create with the same key and the same name (or no name) returns the app the first request created, instead of erroring on a false name conflict or creating a duplicate. A second create with the same key but a *different* name is rejected outright; it won't silently hand back the first app. */
|
|
@@ -245,22 +205,17 @@ export interface CreateAppRequest {
|
|
|
245
205
|
network?: string;
|
|
246
206
|
org_slug?: string;
|
|
247
207
|
}
|
|
248
|
-
export declare const CreateAppRequest: S.Schema<CreateAppRequest>;
|
|
249
208
|
export interface CreateAppResponse {
|
|
250
209
|
created_at?: number;
|
|
251
210
|
id?: string;
|
|
252
211
|
}
|
|
253
|
-
export declare const CreateAppResponse: S.Schema<CreateAppResponse>;
|
|
254
212
|
export interface CreateAppAcmeCertificateRequest {
|
|
255
213
|
/** Fly App Name */
|
|
256
214
|
app_name: string;
|
|
257
215
|
hostname?: string;
|
|
258
216
|
}
|
|
259
|
-
export declare const CreateAppAcmeCertificateRequest: S.Schema<CreateAppAcmeCertificateRequest>;
|
|
260
217
|
export type CertificateDetailCertificatesList = Array<CertificateEntry>;
|
|
261
|
-
export declare const CertificateDetailCertificatesList: S.Schema<CertificateDetailCertificatesList>;
|
|
262
218
|
export type CertificateDetailValidationErrorsList = Array<CertificateValidationError>;
|
|
263
|
-
export declare const CertificateDetailValidationErrorsList: S.Schema<CertificateDetailValidationErrorsList>;
|
|
264
219
|
export interface CertificateDetail {
|
|
265
220
|
acme_requested?: boolean;
|
|
266
221
|
certificates?: CertificateDetailCertificatesList;
|
|
@@ -273,28 +228,23 @@ export interface CertificateDetail {
|
|
|
273
228
|
validation?: CertificateValidation;
|
|
274
229
|
validation_errors?: CertificateDetailValidationErrorsList;
|
|
275
230
|
}
|
|
276
|
-
export declare const CertificateDetail: S.Schema<CertificateDetail>;
|
|
277
231
|
export interface CreateAppCustomCertificateRequest {
|
|
278
232
|
/** Fly App Name */
|
|
279
233
|
app_name: string;
|
|
280
234
|
fullchain?: string;
|
|
281
235
|
hostname?: string;
|
|
282
|
-
private_key?: string
|
|
236
|
+
private_key?: string | Redacted.Redacted<string>;
|
|
283
237
|
}
|
|
284
|
-
export declare const CreateAppCustomCertificateRequest: S.Schema<CreateAppCustomCertificateRequest>;
|
|
285
238
|
export interface CreateAppDeployTokenRequest {
|
|
286
239
|
/** Fly App Name */
|
|
287
240
|
app_name: string;
|
|
288
241
|
expiry?: string;
|
|
289
242
|
}
|
|
290
|
-
export declare const CreateAppDeployTokenRequest: S.Schema<CreateAppDeployTokenRequest>;
|
|
291
243
|
export interface CreateAppDeployTokenResponse {
|
|
292
|
-
token?: string
|
|
244
|
+
token?: string | Redacted.Redacted<string>;
|
|
293
245
|
}
|
|
294
|
-
export declare const CreateAppDeployTokenResponse: S.Schema<CreateAppDeployTokenResponse>;
|
|
295
246
|
/** Type of IP address to allocate. "egress-pair" allocates both v4 and v6 egress IP addresses (recommended when using egress IPs). */
|
|
296
247
|
export type IPAssignmentType = "v4" | "v6" | "shared_v4" | "private_v6" | "egress_v4" | "egress_v6" | "egress_pair";
|
|
297
|
-
export declare const IPAssignmentType: any;
|
|
298
248
|
export interface CreateAppIPAssignmentRequest {
|
|
299
249
|
/** Fly App Name */
|
|
300
250
|
app_name: string;
|
|
@@ -304,19 +254,16 @@ export interface CreateAppIPAssignmentRequest {
|
|
|
304
254
|
service_name?: string;
|
|
305
255
|
type?: IPAssignmentType | (string & {});
|
|
306
256
|
}
|
|
307
|
-
export declare const CreateAppIPAssignmentRequest: S.Schema<CreateAppIPAssignmentRequest>;
|
|
308
257
|
export interface IPPair {
|
|
309
258
|
v4?: string;
|
|
310
259
|
v6?: string;
|
|
311
260
|
}
|
|
312
|
-
export declare const IPPair: S.Schema<IPPair>;
|
|
313
261
|
/** The 6PN network a Flycast (private_v6) address belongs to. Null for all other IP types. */
|
|
314
262
|
export interface IPAssignmentNetwork {
|
|
315
263
|
/** Network name; empty for the organization's default network. */
|
|
316
264
|
name?: string;
|
|
317
265
|
org_slug?: string;
|
|
318
266
|
}
|
|
319
|
-
export declare const IPAssignmentNetwork: S.Schema<IPAssignmentNetwork>;
|
|
320
267
|
export interface AssignIPResponse {
|
|
321
268
|
created_at?: string;
|
|
322
269
|
egress?: boolean;
|
|
@@ -328,14 +275,11 @@ export interface AssignIPResponse {
|
|
|
328
275
|
service_name?: string;
|
|
329
276
|
shared?: boolean;
|
|
330
277
|
}
|
|
331
|
-
export declare const AssignIPResponse: S.Schema<AssignIPResponse>;
|
|
332
278
|
export interface FlyMachineCacheDrive {
|
|
333
279
|
size_mb?: number;
|
|
334
280
|
}
|
|
335
|
-
export declare const FlyMachineCacheDrive: S.Schema<FlyMachineCacheDrive>;
|
|
336
281
|
/** The header value */
|
|
337
282
|
export type FlyMachineHTTPHeaderValuesList = Array<string>;
|
|
338
|
-
export declare const FlyMachineHTTPHeaderValuesList: S.Schema<FlyMachineHTTPHeaderValuesList>;
|
|
339
283
|
/** For http checks, an array of objects with string field Name and array of strings field Values. The key/value pairs specify header and header values that will get passed with the check call. */
|
|
340
284
|
export interface FlyMachineHTTPHeader {
|
|
341
285
|
/** The header name */
|
|
@@ -343,12 +287,9 @@ export interface FlyMachineHTTPHeader {
|
|
|
343
287
|
/** The header value */
|
|
344
288
|
values?: FlyMachineHTTPHeaderValuesList;
|
|
345
289
|
}
|
|
346
|
-
export declare const FlyMachineHTTPHeader: S.Schema<FlyMachineHTTPHeader>;
|
|
347
290
|
export type FlyMachineCheckHeadersList = Array<FlyMachineHTTPHeader>;
|
|
348
|
-
export declare const FlyMachineCheckHeadersList: S.Schema<FlyMachineCheckHeadersList>;
|
|
349
291
|
/** Kind of the check (informational, readiness) */
|
|
350
292
|
export type FlyMachineCheckKind = "informational" | "readiness";
|
|
351
|
-
export declare const FlyMachineCheckKind: any;
|
|
352
293
|
export interface FlyMachineCheck {
|
|
353
294
|
/** The time to wait after a VM starts before checking its health */
|
|
354
295
|
grace_period?: string;
|
|
@@ -374,36 +315,27 @@ export interface FlyMachineCheck {
|
|
|
374
315
|
/** tcp or http */
|
|
375
316
|
type?: string;
|
|
376
317
|
}
|
|
377
|
-
export declare const FlyMachineCheck: S.Schema<FlyMachineCheck>;
|
|
378
318
|
/** An optional object that defines one or more named top-level checks. The key for each check is the check name. */
|
|
379
319
|
export type FlyMachineConfigChecksMap = {
|
|
380
320
|
[key: string]: FlyMachineCheck | undefined;
|
|
381
321
|
};
|
|
382
|
-
export declare const FlyMachineConfigChecksMap: S.Schema<FlyMachineConfigChecksMap>;
|
|
383
322
|
/** CmdOverride is used to override the default command of the image. */
|
|
384
323
|
export type FlyContainerConfigCmdList = Array<string>;
|
|
385
|
-
export declare const FlyContainerConfigCmdList: S.Schema<FlyContainerConfigCmdList>;
|
|
386
324
|
export type FlyContainerDependencyCondition = "exited_successfully" | "healthy" | "started";
|
|
387
|
-
export declare const FlyContainerDependencyCondition: any;
|
|
388
325
|
export interface FlyContainerDependency {
|
|
389
326
|
condition?: FlyContainerDependencyCondition | (string & {});
|
|
390
327
|
name?: string;
|
|
391
328
|
}
|
|
392
|
-
export declare const FlyContainerDependency: S.Schema<FlyContainerDependency>;
|
|
393
329
|
/** DependsOn can be used to define dependencies between containers. The container will only be started after all of its dependent conditions have been satisfied. */
|
|
394
330
|
export type FlyContainerConfigDependsOnList = Array<FlyContainerDependency>;
|
|
395
|
-
export declare const FlyContainerConfigDependsOnList: S.Schema<FlyContainerConfigDependsOnList>;
|
|
396
331
|
/** EntrypointOverride is used to override the default entrypoint of the image. */
|
|
397
332
|
export type FlyContainerConfigEntrypointList = Array<string>;
|
|
398
|
-
export declare const FlyContainerConfigEntrypointList: S.Schema<FlyContainerConfigEntrypointList>;
|
|
399
333
|
/** ExtraEnv is used to add additional environment variables to the container. */
|
|
400
334
|
export type FlyContainerConfigEnvMap = {
|
|
401
335
|
[key: string]: string | undefined;
|
|
402
336
|
};
|
|
403
|
-
export declare const FlyContainerConfigEnvMap: S.Schema<FlyContainerConfigEnvMap>;
|
|
404
337
|
/** FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. */
|
|
405
338
|
export type FlyEnvFromFieldRef = "id" | "version" | "app_name" | "private_ip" | "region" | "image";
|
|
406
|
-
export declare const FlyEnvFromFieldRef: any;
|
|
407
339
|
/** EnvVar defines an environment variable to be populated from a machine field, env_var */
|
|
408
340
|
export interface FlyEnvFrom {
|
|
409
341
|
/** EnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name. */
|
|
@@ -411,13 +343,10 @@ export interface FlyEnvFrom {
|
|
|
411
343
|
/** FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. */
|
|
412
344
|
field_ref?: FlyEnvFromFieldRef | (string & {});
|
|
413
345
|
}
|
|
414
|
-
export declare const FlyEnvFrom: S.Schema<FlyEnvFrom>;
|
|
415
346
|
/** EnvFrom can be provided to set environment variables from machine fields. */
|
|
416
347
|
export type FlyContainerConfigEnvFromList = Array<FlyEnvFrom>;
|
|
417
|
-
export declare const FlyContainerConfigEnvFromList: S.Schema<FlyContainerConfigEnvFromList>;
|
|
418
348
|
/** Image Config overrides - these fields are used to override the image configuration. If not provided, the image configuration will be used. ExecOverride is used to override the default command of the image. */
|
|
419
349
|
export type FlyContainerConfigExecList = Array<string>;
|
|
420
|
-
export declare const FlyContainerConfigExecList: S.Schema<FlyContainerConfigExecList>;
|
|
421
350
|
/** A file that will be written to the Machine. One of RawValue or SecretName must be set. */
|
|
422
351
|
export interface FlyFile {
|
|
423
352
|
/** GuestPath is the path on the machine where the file will be written and must be an absolute path. For example: /full/path/to/file.json */
|
|
@@ -431,23 +360,17 @@ export interface FlyFile {
|
|
|
431
360
|
/** The name of the secret that contains the base64 encoded file contents. */
|
|
432
361
|
secret_name?: string;
|
|
433
362
|
}
|
|
434
|
-
export declare const FlyFile: S.Schema<FlyFile>;
|
|
435
363
|
/** Files are files that will be written to the container file system. */
|
|
436
364
|
export type FlyContainerConfigFilesList = Array<FlyFile>;
|
|
437
|
-
export declare const FlyContainerConfigFilesList: S.Schema<FlyContainerConfigFilesList>;
|
|
438
365
|
/** The command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"]) */
|
|
439
366
|
export type FlyExecHealthcheckCommandList = Array<string>;
|
|
440
|
-
export declare const FlyExecHealthcheckCommandList: S.Schema<FlyExecHealthcheckCommandList>;
|
|
441
367
|
export interface FlyExecHealthcheck {
|
|
442
368
|
/** The command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"]) */
|
|
443
369
|
command?: FlyExecHealthcheckCommandList;
|
|
444
370
|
}
|
|
445
|
-
export declare const FlyExecHealthcheck: S.Schema<FlyExecHealthcheck>;
|
|
446
371
|
/** Additional headers to send with the request */
|
|
447
372
|
export type FlyHTTPHealthcheckHeadersList = Array<FlyMachineHTTPHeader>;
|
|
448
|
-
export declare const FlyHTTPHealthcheckHeadersList: S.Schema<FlyHTTPHealthcheckHeadersList>;
|
|
449
373
|
export type FlyContainerHealthcheckScheme = "http" | "https";
|
|
450
|
-
export declare const FlyContainerHealthcheckScheme: any;
|
|
451
374
|
export interface FlyHTTPHealthcheck {
|
|
452
375
|
/** Additional headers to send with the request */
|
|
453
376
|
headers?: FlyHTTPHealthcheckHeadersList;
|
|
@@ -464,16 +387,12 @@ export interface FlyHTTPHealthcheck {
|
|
|
464
387
|
/** If the protocol is https, whether or not to verify the TLS certificate */
|
|
465
388
|
tls_skip_verify?: boolean;
|
|
466
389
|
}
|
|
467
|
-
export declare const FlyHTTPHealthcheck: S.Schema<FlyHTTPHealthcheck>;
|
|
468
390
|
export type FlyContainerHealthcheckKind = "readiness" | "liveness";
|
|
469
|
-
export declare const FlyContainerHealthcheckKind: any;
|
|
470
391
|
export interface FlyTCPHealthcheck {
|
|
471
392
|
/** The port to connect to, often the same as internal_port */
|
|
472
393
|
port?: number;
|
|
473
394
|
}
|
|
474
|
-
export declare const FlyTCPHealthcheck: S.Schema<FlyTCPHealthcheck>;
|
|
475
395
|
export type FlyUnhealthyPolicy = "stop";
|
|
476
|
-
export declare const FlyUnhealthyPolicy: any;
|
|
477
396
|
export interface FlyContainerHealthcheck {
|
|
478
397
|
exec?: FlyExecHealthcheck;
|
|
479
398
|
/** The number of times the check must fail before considering the container unhealthy. */
|
|
@@ -495,21 +414,17 @@ export interface FlyContainerHealthcheck {
|
|
|
495
414
|
/** Unhealthy policy that determines what action to take if a container is deemed unhealthy */
|
|
496
415
|
unhealthy?: FlyUnhealthyPolicy | (string & {});
|
|
497
416
|
}
|
|
498
|
-
export declare const FlyContainerHealthcheck: S.Schema<FlyContainerHealthcheck>;
|
|
499
417
|
/** Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command. */
|
|
500
418
|
export type FlyContainerConfigHealthchecksList = Array<FlyContainerHealthcheck>;
|
|
501
|
-
|
|
502
|
-
/** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
|
|
419
|
+
/** * no - Never try to restart a Machine automatically when its main process exits, whether that's on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
|
|
503
420
|
export type FlyMachineRestartPolicy = "no" | "always" | "on-failure";
|
|
504
|
-
export declare const FlyMachineRestartPolicy: any;
|
|
505
421
|
/** The Machine restart policy defines whether and how flyd restarts a Machine after its main process exits. See https://fly.io/docs/machines/guides-examples/machine-restart-policy/. */
|
|
506
422
|
export interface FlyMachineRestart {
|
|
507
423
|
/** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
|
|
508
424
|
max_retries?: number;
|
|
509
|
-
/** * no - Never try to restart a Machine automatically when its main process exits, whether that
|
|
425
|
+
/** * no - Never try to restart a Machine automatically when its main process exits, whether that's on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
|
|
510
426
|
policy?: FlyMachineRestartPolicy | (string & {});
|
|
511
427
|
}
|
|
512
|
-
export declare const FlyMachineRestart: S.Schema<FlyMachineRestart>;
|
|
513
428
|
/** A Secret needing to be set in the environment of the Machine. env_var is required */
|
|
514
429
|
export interface FlyMachineSecret {
|
|
515
430
|
/** EnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name. */
|
|
@@ -517,17 +432,13 @@ export interface FlyMachineSecret {
|
|
|
517
432
|
/** Name is optional and when provided is used to reference a secret name where the EnvVar is different from what was set as the secret name. */
|
|
518
433
|
name?: string;
|
|
519
434
|
}
|
|
520
|
-
export declare const FlyMachineSecret: S.Schema<FlyMachineSecret>;
|
|
521
435
|
/** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
|
|
522
436
|
export type FlyContainerConfigSecretsList = Array<FlyMachineSecret>;
|
|
523
|
-
export declare const FlyContainerConfigSecretsList: S.Schema<FlyContainerConfigSecretsList>;
|
|
524
437
|
export type FlyStopConfigSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
|
|
525
|
-
export declare const FlyStopConfigSignal: any;
|
|
526
438
|
export interface FlyStopConfig {
|
|
527
439
|
signal?: FlyStopConfigSignal | (string & {});
|
|
528
440
|
timeout?: string;
|
|
529
441
|
}
|
|
530
|
-
export declare const FlyStopConfig: S.Schema<FlyStopConfig>;
|
|
531
442
|
export interface FlyContainerConfig {
|
|
532
443
|
/** CmdOverride is used to override the default command of the image. */
|
|
533
444
|
cmd?: FlyContainerConfigCmdList;
|
|
@@ -558,28 +469,20 @@ export interface FlyContainerConfig {
|
|
|
558
469
|
/** UserOverride is used to override the default user of the image. */
|
|
559
470
|
user?: string;
|
|
560
471
|
}
|
|
561
|
-
export declare const FlyContainerConfig: S.Schema<FlyContainerConfig>;
|
|
562
472
|
/** Containers are a list of containers that will run in the machine. Currently restricted to only specific organizations. */
|
|
563
473
|
export type FlyMachineConfigContainersList = Array<FlyContainerConfig>;
|
|
564
|
-
export declare const FlyMachineConfigContainersList: S.Schema<FlyMachineConfigContainersList>;
|
|
565
474
|
export interface FlyDnsForwardRule {
|
|
566
475
|
addr?: string;
|
|
567
476
|
basename?: string;
|
|
568
477
|
}
|
|
569
|
-
export declare const FlyDnsForwardRule: S.Schema<FlyDnsForwardRule>;
|
|
570
478
|
export type FlyDNSConfigDnsForwardRulesList = Array<FlyDnsForwardRule>;
|
|
571
|
-
export declare const FlyDNSConfigDnsForwardRulesList: S.Schema<FlyDNSConfigDnsForwardRulesList>;
|
|
572
479
|
export type FlyDNSConfigNameserversList = Array<string>;
|
|
573
|
-
export declare const FlyDNSConfigNameserversList: S.Schema<FlyDNSConfigNameserversList>;
|
|
574
480
|
export interface FlyDnsOption {
|
|
575
481
|
name?: string;
|
|
576
482
|
value?: string;
|
|
577
483
|
}
|
|
578
|
-
export declare const FlyDnsOption: S.Schema<FlyDnsOption>;
|
|
579
484
|
export type FlyDNSConfigOptionsList = Array<FlyDnsOption>;
|
|
580
|
-
export declare const FlyDNSConfigOptionsList: S.Schema<FlyDNSConfigOptionsList>;
|
|
581
485
|
export type FlyDNSConfigSearchesList = Array<string>;
|
|
582
|
-
export declare const FlyDNSConfigSearchesList: S.Schema<FlyDNSConfigSearchesList>;
|
|
583
486
|
export interface FlyDNSConfig {
|
|
584
487
|
dns_forward_rules?: FlyDNSConfigDnsForwardRulesList;
|
|
585
488
|
hostname?: string;
|
|
@@ -589,21 +492,15 @@ export interface FlyDNSConfig {
|
|
|
589
492
|
searches?: FlyDNSConfigSearchesList;
|
|
590
493
|
skip_registration?: boolean;
|
|
591
494
|
}
|
|
592
|
-
export declare const FlyDNSConfig: S.Schema<FlyDNSConfig>;
|
|
593
495
|
/** An object filled with key/value pairs to be set as environment variables */
|
|
594
496
|
export type FlyMachineConfigEnvMap = {
|
|
595
497
|
[key: string]: string | undefined;
|
|
596
498
|
};
|
|
597
|
-
export declare const FlyMachineConfigEnvMap: S.Schema<FlyMachineConfigEnvMap>;
|
|
598
499
|
export type FlyMachineConfigFilesList = Array<FlyFile>;
|
|
599
|
-
export declare const FlyMachineConfigFilesList: S.Schema<FlyMachineConfigFilesList>;
|
|
600
500
|
export type FlyMachineGuestKernelArgsList = Array<string>;
|
|
601
|
-
export declare const FlyMachineGuestKernelArgsList: S.Schema<FlyMachineGuestKernelArgsList>;
|
|
602
501
|
/** Deprecated: use MachineConfig.Rootfs instead */
|
|
603
502
|
export type FlyMachineGuestPersistRootfs = "never" | "always" | "restart";
|
|
604
|
-
export declare const FlyMachineGuestPersistRootfs: any;
|
|
605
503
|
export type FlyMachineGuestRequiredHostFeaturesList = Array<string>;
|
|
606
|
-
export declare const FlyMachineGuestRequiredHostFeaturesList: S.Schema<FlyMachineGuestRequiredHostFeaturesList>;
|
|
607
504
|
export interface FlyMachineGuest {
|
|
608
505
|
cpu_kind?: string;
|
|
609
506
|
cpus?: number;
|
|
@@ -617,15 +514,10 @@ export interface FlyMachineGuest {
|
|
|
617
514
|
persist_rootfs?: FlyMachineGuestPersistRootfs | (string & {});
|
|
618
515
|
required_host_features?: FlyMachineGuestRequiredHostFeaturesList;
|
|
619
516
|
}
|
|
620
|
-
export declare const FlyMachineGuest: S.Schema<FlyMachineGuest>;
|
|
621
517
|
export type FlyMachineInitCmdList = Array<string>;
|
|
622
|
-
export declare const FlyMachineInitCmdList: S.Schema<FlyMachineInitCmdList>;
|
|
623
518
|
export type FlyMachineInitEntrypointList = Array<string>;
|
|
624
|
-
export declare const FlyMachineInitEntrypointList: S.Schema<FlyMachineInitEntrypointList>;
|
|
625
519
|
export type FlyMachineInitExecList = Array<string>;
|
|
626
|
-
export declare const FlyMachineInitExecList: S.Schema<FlyMachineInitExecList>;
|
|
627
520
|
export type FlyMachineInitKernelArgsList = Array<string>;
|
|
628
|
-
export declare const FlyMachineInitKernelArgsList: S.Schema<FlyMachineInitKernelArgsList>;
|
|
629
521
|
export interface FlyMachineInit {
|
|
630
522
|
cmd?: FlyMachineInitCmdList;
|
|
631
523
|
entrypoint?: FlyMachineInitEntrypointList;
|
|
@@ -634,17 +526,14 @@ export interface FlyMachineInit {
|
|
|
634
526
|
swap_size_mb?: number;
|
|
635
527
|
tty?: boolean;
|
|
636
528
|
}
|
|
637
|
-
export declare const FlyMachineInit: S.Schema<FlyMachineInit>;
|
|
638
529
|
export type FlyMachineConfigMetadataMap = {
|
|
639
530
|
[key: string]: string | undefined;
|
|
640
531
|
};
|
|
641
|
-
export declare const FlyMachineConfigMetadataMap: S.Schema<FlyMachineConfigMetadataMap>;
|
|
642
532
|
export interface FlyMachineMetrics {
|
|
643
533
|
https?: boolean;
|
|
644
534
|
path?: string;
|
|
645
535
|
port?: number;
|
|
646
536
|
}
|
|
647
|
-
export declare const FlyMachineMetrics: S.Schema<FlyMachineMetrics>;
|
|
648
537
|
export interface FlyMachineMount {
|
|
649
538
|
add_size_gb?: number;
|
|
650
539
|
/** AddSizePercent grows by a percentage of the current size, rounded up to GiB. It is mutually exclusive with AddSizeGb. */
|
|
@@ -659,25 +548,17 @@ export interface FlyMachineMount {
|
|
|
659
548
|
size_gb_limit?: number;
|
|
660
549
|
volume?: string;
|
|
661
550
|
}
|
|
662
|
-
export declare const FlyMachineMount: S.Schema<FlyMachineMount>;
|
|
663
551
|
export type FlyMachineConfigMountsList = Array<FlyMachineMount>;
|
|
664
|
-
export declare const FlyMachineConfigMountsList: S.Schema<FlyMachineConfigMountsList>;
|
|
665
552
|
export type FlyMachineProcessCmdList = Array<string>;
|
|
666
|
-
export declare const FlyMachineProcessCmdList: S.Schema<FlyMachineProcessCmdList>;
|
|
667
553
|
export type FlyMachineProcessEntrypointList = Array<string>;
|
|
668
|
-
export declare const FlyMachineProcessEntrypointList: S.Schema<FlyMachineProcessEntrypointList>;
|
|
669
554
|
export type FlyMachineProcessEnvMap = {
|
|
670
555
|
[key: string]: string | undefined;
|
|
671
556
|
};
|
|
672
|
-
export declare const FlyMachineProcessEnvMap: S.Schema<FlyMachineProcessEnvMap>;
|
|
673
557
|
/** EnvFrom can be provided to set environment variables from machine fields. */
|
|
674
558
|
export type FlyMachineProcessEnvFromList = Array<FlyEnvFrom>;
|
|
675
|
-
export declare const FlyMachineProcessEnvFromList: S.Schema<FlyMachineProcessEnvFromList>;
|
|
676
559
|
export type FlyMachineProcessExecList = Array<string>;
|
|
677
|
-
export declare const FlyMachineProcessExecList: S.Schema<FlyMachineProcessExecList>;
|
|
678
560
|
/** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
|
|
679
561
|
export type FlyMachineProcessSecretsList = Array<FlyMachineSecret>;
|
|
680
|
-
export declare const FlyMachineProcessSecretsList: S.Schema<FlyMachineProcessSecretsList>;
|
|
681
562
|
export interface FlyMachineProcess {
|
|
682
563
|
cmd?: FlyMachineProcessCmdList;
|
|
683
564
|
entrypoint?: FlyMachineProcessEntrypointList;
|
|
@@ -691,24 +572,17 @@ export interface FlyMachineProcess {
|
|
|
691
572
|
secrets?: FlyMachineProcessSecretsList;
|
|
692
573
|
user?: string;
|
|
693
574
|
}
|
|
694
|
-
export declare const FlyMachineProcess: S.Schema<FlyMachineProcess>;
|
|
695
575
|
export type FlyMachineConfigProcessesList = Array<FlyMachineProcess>;
|
|
696
|
-
export declare const FlyMachineConfigProcessesList: S.Schema<FlyMachineConfigProcessesList>;
|
|
697
576
|
export type FlyMachineRootfsPersist = "never" | "always" | "restart";
|
|
698
|
-
export declare const FlyMachineRootfsPersist: any;
|
|
699
577
|
export interface FlyMachineRootfs {
|
|
700
578
|
persist?: FlyMachineRootfsPersist | (string & {});
|
|
701
579
|
size_gb?: number;
|
|
702
580
|
}
|
|
703
|
-
export declare const FlyMachineRootfs: S.Schema<FlyMachineRootfs>;
|
|
704
581
|
/** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
|
|
705
582
|
export type FlyMachineServiceAutostopMode = "off" | "stop" | "suspend";
|
|
706
|
-
export declare const FlyMachineServiceAutostopMode: any;
|
|
707
583
|
/** Accepts off, stop, or suspend. For backward compatibility, responses encode off as false and stop as true. */
|
|
708
584
|
export type FlyMachineServiceAutostop = FlyMachineServiceAutostopMode | (string & {}) | boolean;
|
|
709
|
-
export declare const FlyMachineServiceAutostop: S.Codec<FlyMachineServiceAutostop>;
|
|
710
585
|
export type FlyMachineServiceCheckHeadersList = Array<FlyMachineHTTPHeader>;
|
|
711
|
-
export declare const FlyMachineServiceCheckHeadersList: S.Schema<FlyMachineServiceCheckHeadersList>;
|
|
712
586
|
export interface FlyMachineServiceCheck {
|
|
713
587
|
/** The time to wait after a VM starts before checking its health */
|
|
714
588
|
grace_period?: string;
|
|
@@ -732,21 +606,16 @@ export interface FlyMachineServiceCheck {
|
|
|
732
606
|
/** tcp or http */
|
|
733
607
|
type?: string;
|
|
734
608
|
}
|
|
735
|
-
export declare const FlyMachineServiceCheck: S.Schema<FlyMachineServiceCheck>;
|
|
736
609
|
/** An optional list of service checks */
|
|
737
610
|
export type FlyMachineServiceChecksList = Array<FlyMachineServiceCheck>;
|
|
738
|
-
export declare const FlyMachineServiceChecksList: S.Schema<FlyMachineServiceChecksList>;
|
|
739
611
|
export interface FlyMachineServiceConcurrency {
|
|
740
612
|
hard_limit?: number;
|
|
741
613
|
soft_limit?: number;
|
|
742
614
|
type?: string;
|
|
743
615
|
}
|
|
744
|
-
export declare const FlyMachineServiceConcurrency: S.Schema<FlyMachineServiceConcurrency>;
|
|
745
616
|
export type FlyMachinePortHandlersList = Array<string>;
|
|
746
|
-
export declare const FlyMachinePortHandlersList: S.Schema<FlyMachinePortHandlersList>;
|
|
747
617
|
/** Currently either "cookie" or "header" */
|
|
748
618
|
export type FlyReplayCacheType = "cookie" | "header";
|
|
749
|
-
export declare const FlyReplayCacheType: any;
|
|
750
619
|
export interface FlyReplayCache {
|
|
751
620
|
allow_bypass?: boolean;
|
|
752
621
|
/** Name of the cookie or header to key the cache on */
|
|
@@ -756,18 +625,14 @@ export interface FlyReplayCache {
|
|
|
756
625
|
/** Currently either "cookie" or "header" */
|
|
757
626
|
type?: FlyReplayCacheType | (string & {});
|
|
758
627
|
}
|
|
759
|
-
export declare const FlyReplayCache: S.Schema<FlyReplayCache>;
|
|
760
628
|
export type FlyHTTPOptionsReplayCacheList = Array<FlyReplayCache>;
|
|
761
|
-
export declare const FlyHTTPOptionsReplayCacheList: S.Schema<FlyHTTPOptionsReplayCacheList>;
|
|
762
629
|
export type FlyHTTPResponseOptionsHeadersMap = {
|
|
763
630
|
[key: string]: unknown | undefined;
|
|
764
631
|
};
|
|
765
|
-
export declare const FlyHTTPResponseOptionsHeadersMap: S.Schema<FlyHTTPResponseOptionsHeadersMap>;
|
|
766
632
|
export interface FlyHTTPResponseOptions {
|
|
767
633
|
headers?: FlyHTTPResponseOptionsHeadersMap;
|
|
768
634
|
pristine?: boolean;
|
|
769
635
|
}
|
|
770
|
-
export declare const FlyHTTPResponseOptions: S.Schema<FlyHTTPResponseOptions>;
|
|
771
636
|
export interface FlyHTTPOptions {
|
|
772
637
|
compress?: boolean;
|
|
773
638
|
h2_backend?: boolean;
|
|
@@ -776,21 +641,16 @@ export interface FlyHTTPOptions {
|
|
|
776
641
|
replay_cache?: FlyHTTPOptionsReplayCacheList;
|
|
777
642
|
response?: FlyHTTPResponseOptions;
|
|
778
643
|
}
|
|
779
|
-
export declare const FlyHTTPOptions: S.Schema<FlyHTTPOptions>;
|
|
780
644
|
export interface FlyProxyProtoOptions {
|
|
781
645
|
version?: string;
|
|
782
646
|
}
|
|
783
|
-
export declare const FlyProxyProtoOptions: S.Schema<FlyProxyProtoOptions>;
|
|
784
647
|
export type FlyTLSOptionsAlpnList = Array<string>;
|
|
785
|
-
export declare const FlyTLSOptionsAlpnList: S.Schema<FlyTLSOptionsAlpnList>;
|
|
786
648
|
export type FlyTLSOptionsVersionsList = Array<string>;
|
|
787
|
-
export declare const FlyTLSOptionsVersionsList: S.Schema<FlyTLSOptionsVersionsList>;
|
|
788
649
|
export interface FlyTLSOptions {
|
|
789
650
|
alpn?: FlyTLSOptionsAlpnList;
|
|
790
651
|
default_self_signed?: boolean;
|
|
791
652
|
versions?: FlyTLSOptionsVersionsList;
|
|
792
653
|
}
|
|
793
|
-
export declare const FlyTLSOptions: S.Schema<FlyTLSOptions>;
|
|
794
654
|
export interface FlyMachinePort {
|
|
795
655
|
end_port?: number;
|
|
796
656
|
force_https?: boolean;
|
|
@@ -801,9 +661,7 @@ export interface FlyMachinePort {
|
|
|
801
661
|
start_port?: number;
|
|
802
662
|
tls_options?: FlyTLSOptions;
|
|
803
663
|
}
|
|
804
|
-
export declare const FlyMachinePort: S.Schema<FlyMachinePort>;
|
|
805
664
|
export type FlyMachineServicePortsList = Array<FlyMachinePort>;
|
|
806
|
-
export declare const FlyMachineServicePortsList: S.Schema<FlyMachineServicePortsList>;
|
|
807
665
|
export interface FlyMachineService {
|
|
808
666
|
autostart?: boolean;
|
|
809
667
|
/** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
|
|
@@ -818,28 +676,22 @@ export interface FlyMachineService {
|
|
|
818
676
|
ports?: FlyMachineServicePortsList;
|
|
819
677
|
protocol?: string;
|
|
820
678
|
}
|
|
821
|
-
export declare const FlyMachineService: S.Schema<FlyMachineService>;
|
|
822
679
|
export type FlyMachineConfigServicesList = Array<FlyMachineService>;
|
|
823
|
-
export declare const FlyMachineConfigServicesList: S.Schema<FlyMachineConfigServicesList>;
|
|
824
680
|
export interface FlyMachineSpot {
|
|
825
681
|
/** MaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0] */
|
|
826
682
|
max_price_fraction?: number;
|
|
827
683
|
}
|
|
828
|
-
export declare const FlyMachineSpot: S.Schema<FlyMachineSpot>;
|
|
829
684
|
/** Standbys enable a machine to be a standby for another. In the event of a hardware failure, the standby machine will be started. */
|
|
830
685
|
export type FlyMachineConfigStandbysList = Array<string>;
|
|
831
|
-
export declare const FlyMachineConfigStandbysList: S.Schema<FlyMachineConfigStandbysList>;
|
|
832
686
|
export interface FlyStatic {
|
|
833
687
|
guest_path: string;
|
|
834
688
|
index_document?: string;
|
|
835
689
|
tigris_bucket?: string;
|
|
836
690
|
url_prefix: string;
|
|
837
691
|
}
|
|
838
|
-
export declare const FlyStatic: S.Schema<FlyStatic>;
|
|
839
692
|
export type FlyMachineConfigStaticsList = Array<FlyStatic>;
|
|
840
|
-
export declare const FlyMachineConfigStaticsList: S.Schema<FlyMachineConfigStaticsList>;
|
|
841
693
|
export interface FlyMachineConfig {
|
|
842
|
-
/** Optional boolean telling the Machine to destroy itself once it
|
|
694
|
+
/** Optional boolean telling the Machine to destroy itself once it's complete (default false) */
|
|
843
695
|
auto_destroy?: boolean;
|
|
844
696
|
cache_drive?: FlyMachineCacheDrive;
|
|
845
697
|
/** An optional object that defines one or more named top-level checks. The key for each check is the check name. */
|
|
@@ -872,7 +724,6 @@ export interface FlyMachineConfig {
|
|
|
872
724
|
statics?: FlyMachineConfigStaticsList;
|
|
873
725
|
stop_config?: FlyStopConfig;
|
|
874
726
|
}
|
|
875
|
-
export declare const FlyMachineConfig: S.Schema<FlyMachineConfig>;
|
|
876
727
|
export interface CreateMachineRequest {
|
|
877
728
|
/** Fly App Name */
|
|
878
729
|
app_name: string;
|
|
@@ -888,16 +739,13 @@ export interface CreateMachineRequest {
|
|
|
888
739
|
skip_secrets?: boolean;
|
|
889
740
|
skip_service_registration?: boolean;
|
|
890
741
|
}
|
|
891
|
-
export declare const CreateMachineRequest: S.Schema<CreateMachineRequest>;
|
|
892
742
|
export interface CheckStatus {
|
|
893
743
|
name?: string;
|
|
894
744
|
output?: string;
|
|
895
745
|
status?: string;
|
|
896
746
|
updated_at?: string;
|
|
897
747
|
}
|
|
898
|
-
export declare const CheckStatus: S.Schema<CheckStatus>;
|
|
899
748
|
export type MachineChecksList = Array<CheckStatus>;
|
|
900
|
-
export declare const MachineChecksList: S.Schema<MachineChecksList>;
|
|
901
749
|
export interface MachineEvent {
|
|
902
750
|
id?: string;
|
|
903
751
|
request?: unknown;
|
|
@@ -906,17 +754,12 @@ export interface MachineEvent {
|
|
|
906
754
|
timestamp?: number;
|
|
907
755
|
type?: string;
|
|
908
756
|
}
|
|
909
|
-
export declare const MachineEvent: S.Schema<MachineEvent>;
|
|
910
757
|
export type MachineEventsList = Array<MachineEvent>;
|
|
911
|
-
export declare const MachineEventsList: S.Schema<MachineEventsList>;
|
|
912
758
|
export type MachineHostFeaturesList = Array<string>;
|
|
913
|
-
export declare const MachineHostFeaturesList: S.Schema<MachineHostFeaturesList>;
|
|
914
759
|
export type MachineHostStatus = "ok" | "unknown" | "unreachable";
|
|
915
|
-
export declare const MachineHostStatus: any;
|
|
916
760
|
export type ImageRefLabelsMap = {
|
|
917
761
|
[key: string]: string | undefined;
|
|
918
762
|
};
|
|
919
|
-
export declare const ImageRefLabelsMap: S.Schema<ImageRefLabelsMap>;
|
|
920
763
|
export interface ImageRef {
|
|
921
764
|
digest?: string;
|
|
922
765
|
labels?: ImageRefLabelsMap;
|
|
@@ -924,13 +767,11 @@ export interface ImageRef {
|
|
|
924
767
|
repository?: string;
|
|
925
768
|
tag?: string;
|
|
926
769
|
}
|
|
927
|
-
export declare const ImageRef: S.Schema<ImageRef>;
|
|
928
770
|
export interface StrippedLease {
|
|
929
771
|
description?: string;
|
|
930
772
|
expires_at?: number;
|
|
931
773
|
owner?: string;
|
|
932
774
|
}
|
|
933
|
-
export declare const StrippedLease: S.Schema<StrippedLease>;
|
|
934
775
|
export interface Machine {
|
|
935
776
|
checks?: MachineChecksList;
|
|
936
777
|
config?: FlyMachineConfig;
|
|
@@ -956,7 +797,6 @@ export interface Machine {
|
|
|
956
797
|
/** Version is unique for each version of the machine. Pass it as `current_version` when updating the Machine to reject the update if the Machine has changed since this version. */
|
|
957
798
|
version?: string;
|
|
958
799
|
}
|
|
959
|
-
export declare const Machine: S.Schema<Machine>;
|
|
960
800
|
export interface CreateMachineLeaseRequest {
|
|
961
801
|
/** Fly App Name */
|
|
962
802
|
app_name: string;
|
|
@@ -968,7 +808,6 @@ export interface CreateMachineLeaseRequest {
|
|
|
968
808
|
/** Existing lease nonce when refreshing; omit to acquire a new lease. Keep the nonce private. */
|
|
969
809
|
lease_nonce?: string;
|
|
970
810
|
}
|
|
971
|
-
export declare const CreateMachineLeaseRequest: S.Schema<CreateMachineLeaseRequest>;
|
|
972
811
|
export interface Lease {
|
|
973
812
|
/** Description or reason for the Lease. */
|
|
974
813
|
description?: string;
|
|
@@ -981,21 +820,16 @@ export interface Lease {
|
|
|
981
820
|
/** Machine version */
|
|
982
821
|
version?: string;
|
|
983
822
|
}
|
|
984
|
-
export declare const Lease: S.Schema<Lease>;
|
|
985
823
|
export interface MachineLease {
|
|
986
824
|
status?: string;
|
|
987
825
|
data?: Lease;
|
|
988
826
|
}
|
|
989
|
-
export declare const MachineLease: S.Schema<MachineLease>;
|
|
990
827
|
/** Postgres major version. */
|
|
991
828
|
export type CreatePostgresRequestPgMajorVersion = "16" | "17";
|
|
992
|
-
export declare const CreatePostgresRequestPgMajorVersion: any;
|
|
993
829
|
/** Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. */
|
|
994
830
|
export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
995
|
-
export declare const CreatePostgresRequestPlan: any;
|
|
996
831
|
/** Connection pooler mode. */
|
|
997
832
|
export type CreatePostgresRequestPoolMode = "session" | "transaction";
|
|
998
|
-
export declare const CreatePostgresRequestPoolMode: any;
|
|
999
833
|
export interface CreatePostgresRequest {
|
|
1000
834
|
/** Disk size in gigabytes. */
|
|
1001
835
|
disk_size_gb?: number;
|
|
@@ -1014,53 +848,42 @@ export interface CreatePostgresRequest {
|
|
|
1014
848
|
/** Fly region code where the cluster's primary runs. */
|
|
1015
849
|
region: string;
|
|
1016
850
|
}
|
|
1017
|
-
export declare const CreatePostgresRequest: S.Schema<CreatePostgresRequest>;
|
|
1018
851
|
export interface PostgresAttachedApp {
|
|
1019
852
|
/** Attached Fly app name. */
|
|
1020
853
|
name?: string;
|
|
1021
854
|
}
|
|
1022
|
-
export declare const PostgresAttachedApp: S.Schema<PostgresAttachedApp>;
|
|
1023
855
|
/** Apps attached to the cluster. */
|
|
1024
856
|
export type PostgresClusterAttachedAppsList = Array<PostgresAttachedApp>;
|
|
1025
|
-
export declare const PostgresClusterAttachedAppsList: S.Schema<PostgresClusterAttachedAppsList>;
|
|
1026
857
|
/** CPU class. */
|
|
1027
858
|
export type PostgresClusterCpuKind = "shared" | "performance";
|
|
1028
|
-
export declare const PostgresClusterCpuKind: any;
|
|
1029
859
|
export interface PostgresEndpoint {
|
|
1030
860
|
/** Hostname to connect to. */
|
|
1031
861
|
host?: string;
|
|
1032
862
|
/** TCP port. */
|
|
1033
863
|
port?: number;
|
|
1034
864
|
}
|
|
1035
|
-
export declare const PostgresEndpoint: S.Schema<PostgresEndpoint>;
|
|
1036
865
|
export interface PostgresNodeEndpoints {
|
|
1037
866
|
/** Unpooled connection to the cluster node. */
|
|
1038
867
|
direct?: PostgresEndpoint;
|
|
1039
868
|
/** Pooled connection to the cluster node (through PgBouncer). */
|
|
1040
869
|
pooler?: PostgresEndpoint;
|
|
1041
870
|
}
|
|
1042
|
-
export declare const PostgresNodeEndpoints: S.Schema<PostgresNodeEndpoints>;
|
|
1043
871
|
export interface PostgresClusterEndpoints {
|
|
1044
872
|
/** Endpoints for connecting to the primary node. */
|
|
1045
873
|
primary?: PostgresNodeEndpoints;
|
|
1046
874
|
}
|
|
1047
|
-
export declare const PostgresClusterEndpoints: S.Schema<PostgresClusterEndpoints>;
|
|
1048
875
|
export interface OrganizationRef {
|
|
1049
876
|
/** Organization name. */
|
|
1050
877
|
name?: string;
|
|
1051
878
|
/** Organization slug. */
|
|
1052
879
|
slug?: string;
|
|
1053
880
|
}
|
|
1054
|
-
export declare const OrganizationRef: S.Schema<OrganizationRef>;
|
|
1055
881
|
/** Postgres major version. */
|
|
1056
882
|
export type PostgresClusterPgMajorVersion = "16" | "17";
|
|
1057
|
-
export declare const PostgresClusterPgMajorVersion: any;
|
|
1058
883
|
/** Plan slug. */
|
|
1059
884
|
export type PostgresClusterPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
1060
|
-
export declare const PostgresClusterPlan: any;
|
|
1061
885
|
/** Current lifecycle status. */
|
|
1062
886
|
export type PostgresClusterStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
|
|
1063
|
-
export declare const PostgresClusterStatus: any;
|
|
1064
887
|
export interface PostgresCluster {
|
|
1065
888
|
/** Apps attached to the cluster. */
|
|
1066
889
|
attached_apps?: PostgresClusterAttachedAppsList;
|
|
@@ -1098,18 +921,15 @@ export interface PostgresCluster {
|
|
|
1098
921
|
/** Storage used, summed across the cluster's volumes and measured hourly. Null until first measured. */
|
|
1099
922
|
storage_used_bytes?: number | null;
|
|
1100
923
|
}
|
|
1101
|
-
export declare const PostgresCluster: S.Schema<PostgresCluster>;
|
|
1102
924
|
export interface ShowPostgresClusterResponse {
|
|
1103
925
|
data?: PostgresCluster;
|
|
1104
926
|
}
|
|
1105
|
-
export declare const ShowPostgresClusterResponse: S.Schema<ShowPostgresClusterResponse>;
|
|
1106
927
|
export interface CreatePostgresAttachmentRequest {
|
|
1107
928
|
/** Managed Postgres Cluster ID */
|
|
1108
929
|
postgres_cluster_id: string;
|
|
1109
930
|
/** Name of the Fly app to attach. */
|
|
1110
931
|
app_name: string;
|
|
1111
932
|
}
|
|
1112
|
-
export declare const CreatePostgresAttachmentRequest: S.Schema<CreatePostgresAttachmentRequest>;
|
|
1113
933
|
export interface PostgresAttachment {
|
|
1114
934
|
/** Attached Fly app name. */
|
|
1115
935
|
app_name?: string;
|
|
@@ -1118,43 +938,34 @@ export interface PostgresAttachment {
|
|
|
1118
938
|
/** Cluster ID the app is attached to. */
|
|
1119
939
|
postgres_cluster_id?: string;
|
|
1120
940
|
}
|
|
1121
|
-
export declare const PostgresAttachment: S.Schema<PostgresAttachment>;
|
|
1122
941
|
export interface CreatePostgresAttachmentResponse {
|
|
1123
942
|
data?: PostgresAttachment;
|
|
1124
943
|
}
|
|
1125
|
-
export declare const CreatePostgresAttachmentResponse: S.Schema<CreatePostgresAttachmentResponse>;
|
|
1126
944
|
/** Backup type. */
|
|
1127
945
|
export type CreatePostgresBackupRequestType = "full" | "incr" | "diff";
|
|
1128
|
-
export declare const CreatePostgresBackupRequestType: any;
|
|
1129
946
|
export interface CreatePostgresBackupRequest {
|
|
1130
947
|
/** Managed Postgres Cluster ID */
|
|
1131
948
|
postgres_cluster_id: string;
|
|
1132
949
|
/** Backup type. */
|
|
1133
950
|
type: CreatePostgresBackupRequestType | (string & {});
|
|
1134
951
|
}
|
|
1135
|
-
export declare const CreatePostgresBackupRequest: S.Schema<CreatePostgresBackupRequest>;
|
|
1136
952
|
export interface CreatePostgresBackupResponse {
|
|
1137
953
|
}
|
|
1138
|
-
export declare const CreatePostgresBackupResponse: S.Schema<CreatePostgresBackupResponse>;
|
|
1139
954
|
export interface CreatePostgresDatabaseRequest {
|
|
1140
955
|
/** Managed Postgres Cluster ID */
|
|
1141
956
|
postgres_cluster_id: string;
|
|
1142
957
|
/** Name of the database to create. Must start and end with an alphanumeric character and may contain hyphens and underscores, up to 63 characters. */
|
|
1143
958
|
name: string;
|
|
1144
959
|
}
|
|
1145
|
-
export declare const CreatePostgresDatabaseRequest: S.Schema<CreatePostgresDatabaseRequest>;
|
|
1146
960
|
export interface PostgresDatabase {
|
|
1147
961
|
/** Database name. */
|
|
1148
962
|
name?: string;
|
|
1149
963
|
}
|
|
1150
|
-
export declare const PostgresDatabase: S.Schema<PostgresDatabase>;
|
|
1151
964
|
export interface PostgresDatabaseResponse {
|
|
1152
965
|
data?: PostgresDatabase;
|
|
1153
966
|
}
|
|
1154
|
-
export declare const PostgresDatabaseResponse: S.Schema<PostgresDatabaseResponse>;
|
|
1155
967
|
/** Role to grant the user. */
|
|
1156
968
|
export type CreatePostgresUserRequestRole = "schema_admin" | "writer" | "reader";
|
|
1157
|
-
export declare const CreatePostgresUserRequestRole: any;
|
|
1158
969
|
export interface CreatePostgresUserRequest {
|
|
1159
970
|
/** Managed Postgres Cluster ID */
|
|
1160
971
|
postgres_cluster_id: string;
|
|
@@ -1163,21 +974,17 @@ export interface CreatePostgresUserRequest {
|
|
|
1163
974
|
/** Name for the new user. Must start and end with a lowercase alphanumeric character and may contain hyphens and underscores, up to 63 characters. */
|
|
1164
975
|
username: string;
|
|
1165
976
|
}
|
|
1166
|
-
export declare const CreatePostgresUserRequest: S.Schema<CreatePostgresUserRequest>;
|
|
1167
977
|
/** User role. */
|
|
1168
978
|
export type PostgresUserRole = "schema_admin" | "writer" | "reader";
|
|
1169
|
-
export declare const PostgresUserRole: any;
|
|
1170
979
|
export interface PostgresUser {
|
|
1171
980
|
/** User role. */
|
|
1172
981
|
role?: PostgresUserRole;
|
|
1173
982
|
/** User name. */
|
|
1174
983
|
username?: string;
|
|
1175
984
|
}
|
|
1176
|
-
export declare const PostgresUser: S.Schema<PostgresUser>;
|
|
1177
985
|
export interface CreatePostgresUserResponse {
|
|
1178
986
|
data?: PostgresUser;
|
|
1179
987
|
}
|
|
1180
|
-
export declare const CreatePostgresUserResponse: S.Schema<CreatePostgresUserResponse>;
|
|
1181
988
|
export interface CreateSecretRequest {
|
|
1182
989
|
/** Fly App Name */
|
|
1183
990
|
app_name: string;
|
|
@@ -1185,7 +992,6 @@ export interface CreateSecretRequest {
|
|
|
1185
992
|
secret_name: string;
|
|
1186
993
|
value?: string;
|
|
1187
994
|
}
|
|
1188
|
-
export declare const CreateSecretRequest: S.Schema<CreateSecretRequest>;
|
|
1189
995
|
export interface SetAppSecretResponse {
|
|
1190
996
|
/** DEPRECATED */
|
|
1191
997
|
Version?: number;
|
|
@@ -1196,7 +1002,6 @@ export interface SetAppSecretResponse {
|
|
|
1196
1002
|
value?: string;
|
|
1197
1003
|
version?: number;
|
|
1198
1004
|
}
|
|
1199
|
-
export declare const SetAppSecretResponse: S.Schema<SetAppSecretResponse>;
|
|
1200
1005
|
export interface CreateVolumeRequest {
|
|
1201
1006
|
/** Fly App Name */
|
|
1202
1007
|
app_name: string;
|
|
@@ -1217,15 +1022,10 @@ export interface CreateVolumeRequest {
|
|
|
1217
1022
|
source_volume_id?: string;
|
|
1218
1023
|
unique_zone_app_wide?: boolean;
|
|
1219
1024
|
}
|
|
1220
|
-
export declare const CreateVolumeRequest: S.Schema<CreateVolumeRequest>;
|
|
1221
1025
|
export type VolumeHostFeaturesList = Array<string>;
|
|
1222
|
-
export declare const VolumeHostFeaturesList: S.Schema<VolumeHostFeaturesList>;
|
|
1223
1026
|
export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
|
|
1224
|
-
export declare const VolumeHostStatus: any;
|
|
1225
1027
|
export type VolumeRequiredHostFeaturesList = Array<string>;
|
|
1226
|
-
export declare const VolumeRequiredHostFeaturesList: S.Schema<VolumeRequiredHostFeaturesList>;
|
|
1227
1028
|
export type VolumeType = "local" | "cache";
|
|
1228
|
-
export declare const VolumeType: any;
|
|
1229
1029
|
export interface Volume {
|
|
1230
1030
|
attached_alloc_id?: string;
|
|
1231
1031
|
attached_machine_id?: string;
|
|
@@ -1251,17 +1051,14 @@ export interface Volume {
|
|
|
1251
1051
|
type?: VolumeType;
|
|
1252
1052
|
zone?: string;
|
|
1253
1053
|
}
|
|
1254
|
-
export declare const Volume: S.Schema<Volume>;
|
|
1255
1054
|
export interface CreateVolumeSnapshotRequest {
|
|
1256
1055
|
/** Fly App Name */
|
|
1257
1056
|
app_name: string;
|
|
1258
1057
|
/** Volume ID */
|
|
1259
1058
|
volume_id: string;
|
|
1260
1059
|
}
|
|
1261
|
-
export declare const CreateVolumeSnapshotRequest: S.Schema<CreateVolumeSnapshotRequest>;
|
|
1262
1060
|
export interface CreateVolumeSnapshotResponse {
|
|
1263
1061
|
}
|
|
1264
|
-
export declare const CreateVolumeSnapshotResponse: S.Schema<CreateVolumeSnapshotResponse>;
|
|
1265
1062
|
export interface DecryptSecretKeyRequest {
|
|
1266
1063
|
/** Fly App Name */
|
|
1267
1064
|
app_name: string;
|
|
@@ -1272,47 +1069,37 @@ export interface DecryptSecretKeyRequest {
|
|
|
1272
1069
|
associated_data?: string;
|
|
1273
1070
|
ciphertext?: string;
|
|
1274
1071
|
}
|
|
1275
|
-
export declare const DecryptSecretKeyRequest: S.Schema<DecryptSecretKeyRequest>;
|
|
1276
1072
|
export interface DecryptSecretkeyResponse {
|
|
1277
|
-
plaintext?: string
|
|
1073
|
+
plaintext?: string | Redacted.Redacted<string>;
|
|
1278
1074
|
}
|
|
1279
|
-
export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
|
|
1280
1075
|
export interface DeleteAppRequest {
|
|
1281
1076
|
/** Fly App Name */
|
|
1282
1077
|
app_name: string;
|
|
1283
1078
|
}
|
|
1284
|
-
export declare const DeleteAppRequest: S.Schema<DeleteAppRequest>;
|
|
1285
1079
|
export interface DeleteAppResponse {
|
|
1286
1080
|
}
|
|
1287
|
-
export declare const DeleteAppResponse: S.Schema<DeleteAppResponse>;
|
|
1288
1081
|
export interface DeleteAppAcmeCertificateRequest {
|
|
1289
1082
|
/** Fly App Name */
|
|
1290
1083
|
app_name: string;
|
|
1291
1084
|
/** Certificate Hostname */
|
|
1292
1085
|
hostname: string;
|
|
1293
1086
|
}
|
|
1294
|
-
export declare const DeleteAppAcmeCertificateRequest: S.Schema<DeleteAppAcmeCertificateRequest>;
|
|
1295
1087
|
export interface DeleteAppCertificateRequest {
|
|
1296
1088
|
/** Fly App Name */
|
|
1297
1089
|
app_name: string;
|
|
1298
1090
|
/** Certificate Hostname */
|
|
1299
1091
|
hostname: string;
|
|
1300
1092
|
}
|
|
1301
|
-
export declare const DeleteAppCertificateRequest: S.Schema<DeleteAppCertificateRequest>;
|
|
1302
1093
|
export interface DeleteAppCertificateResponse {
|
|
1303
1094
|
}
|
|
1304
|
-
export declare const DeleteAppCertificateResponse: S.Schema<DeleteAppCertificateResponse>;
|
|
1305
1095
|
export interface DeleteAppCustomCertificateRequest {
|
|
1306
1096
|
/** Fly App Name */
|
|
1307
1097
|
app_name: string;
|
|
1308
1098
|
/** Certificate Hostname */
|
|
1309
1099
|
hostname: string;
|
|
1310
1100
|
}
|
|
1311
|
-
export declare const DeleteAppCustomCertificateRequest: S.Schema<DeleteAppCustomCertificateRequest>;
|
|
1312
1101
|
export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
|
|
1313
|
-
export declare const DestroyCustomCertificateResponseCertificatesList: S.Schema<DestroyCustomCertificateResponseCertificatesList>;
|
|
1314
1102
|
export type DestroyCustomCertificateResponseValidationErrorsList = Array<CertificateValidationError>;
|
|
1315
|
-
export declare const DestroyCustomCertificateResponseValidationErrorsList: S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
|
|
1316
1103
|
export interface DestroyCustomCertificateResponse {
|
|
1317
1104
|
acme_requested?: boolean;
|
|
1318
1105
|
certificates?: DestroyCustomCertificateResponseCertificatesList;
|
|
@@ -1326,17 +1113,14 @@ export interface DestroyCustomCertificateResponse {
|
|
|
1326
1113
|
validation_errors?: DestroyCustomCertificateResponseValidationErrorsList;
|
|
1327
1114
|
warning?: string;
|
|
1328
1115
|
}
|
|
1329
|
-
export declare const DestroyCustomCertificateResponse: S.Schema<DestroyCustomCertificateResponse>;
|
|
1330
1116
|
export interface DeleteAppIPAssignmentRequest {
|
|
1331
1117
|
/** Fly App Name */
|
|
1332
1118
|
app_name: string;
|
|
1333
1119
|
/** IP address */
|
|
1334
1120
|
ip: string;
|
|
1335
1121
|
}
|
|
1336
|
-
export declare const DeleteAppIPAssignmentRequest: S.Schema<DeleteAppIPAssignmentRequest>;
|
|
1337
1122
|
export interface DeleteAppIPAssignmentResponse {
|
|
1338
1123
|
}
|
|
1339
|
-
export declare const DeleteAppIPAssignmentResponse: S.Schema<DeleteAppIPAssignmentResponse>;
|
|
1340
1124
|
export interface DeleteMachineRequest {
|
|
1341
1125
|
/** Fly App Name */
|
|
1342
1126
|
app_name: string;
|
|
@@ -1346,10 +1130,8 @@ export interface DeleteMachineRequest {
|
|
|
1346
1130
|
force?: boolean;
|
|
1347
1131
|
lease_nonce?: string;
|
|
1348
1132
|
}
|
|
1349
|
-
export declare const DeleteMachineRequest: S.Schema<DeleteMachineRequest>;
|
|
1350
1133
|
export interface DeleteMachineResponse {
|
|
1351
1134
|
}
|
|
1352
|
-
export declare const DeleteMachineResponse: S.Schema<DeleteMachineResponse>;
|
|
1353
1135
|
export interface DeleteMachineMetadataRequest {
|
|
1354
1136
|
/** Fly App Name */
|
|
1355
1137
|
app_name: string;
|
|
@@ -1358,78 +1140,64 @@ export interface DeleteMachineMetadataRequest {
|
|
|
1358
1140
|
/** Metadata Key */
|
|
1359
1141
|
key: string;
|
|
1360
1142
|
}
|
|
1361
|
-
export declare const DeleteMachineMetadataRequest: S.Schema<DeleteMachineMetadataRequest>;
|
|
1362
1143
|
export interface DeleteMachineMetadataResponse {
|
|
1363
1144
|
}
|
|
1364
|
-
export declare const DeleteMachineMetadataResponse: S.Schema<DeleteMachineMetadataResponse>;
|
|
1365
1145
|
export interface DeletePostgresRequest {
|
|
1366
1146
|
/** Managed Postgres Cluster ID */
|
|
1367
1147
|
postgres_cluster_id: string;
|
|
1368
1148
|
}
|
|
1369
|
-
export declare const DeletePostgresRequest: S.Schema<DeletePostgresRequest>;
|
|
1370
1149
|
export interface DeletePostgresResponse {
|
|
1371
1150
|
}
|
|
1372
|
-
export declare const DeletePostgresResponse: S.Schema<DeletePostgresResponse>;
|
|
1373
1151
|
export interface DeletePostgresAttachmentRequest {
|
|
1374
1152
|
/** Managed Postgres Cluster ID */
|
|
1375
1153
|
postgres_cluster_id: string;
|
|
1376
1154
|
/** Fly App Name */
|
|
1377
1155
|
app_name: string;
|
|
1378
1156
|
}
|
|
1379
|
-
export declare const DeletePostgresAttachmentRequest: S.Schema<DeletePostgresAttachmentRequest>;
|
|
1380
1157
|
export interface DeletePostgresAttachmentResponse {
|
|
1381
1158
|
}
|
|
1382
|
-
export declare const DeletePostgresAttachmentResponse: S.Schema<DeletePostgresAttachmentResponse>;
|
|
1383
1159
|
export interface DeletePostgresDatabaseRequest {
|
|
1384
1160
|
/** Managed Postgres Cluster ID */
|
|
1385
1161
|
postgres_cluster_id: string;
|
|
1386
1162
|
/** Database Name */
|
|
1387
1163
|
database_name: string;
|
|
1388
1164
|
}
|
|
1389
|
-
export declare const DeletePostgresDatabaseRequest: S.Schema<DeletePostgresDatabaseRequest>;
|
|
1390
1165
|
export interface DeletePostgresUserRequest {
|
|
1391
1166
|
/** Managed Postgres Cluster ID */
|
|
1392
1167
|
postgres_cluster_id: string;
|
|
1393
1168
|
/** Postgres User Name */
|
|
1394
1169
|
username: string;
|
|
1395
1170
|
}
|
|
1396
|
-
export declare const DeletePostgresUserRequest: S.Schema<DeletePostgresUserRequest>;
|
|
1397
1171
|
export interface DeletePostgresUserResponse {
|
|
1398
1172
|
}
|
|
1399
|
-
export declare const DeletePostgresUserResponse: S.Schema<DeletePostgresUserResponse>;
|
|
1400
1173
|
export interface DeleteSecretRequest {
|
|
1401
1174
|
/** Fly App Name */
|
|
1402
1175
|
app_name: string;
|
|
1403
1176
|
/** App secret name */
|
|
1404
1177
|
secret_name: string;
|
|
1405
1178
|
}
|
|
1406
|
-
export declare const DeleteSecretRequest: S.Schema<DeleteSecretRequest>;
|
|
1407
1179
|
export interface DeleteAppSecretResponse {
|
|
1408
1180
|
/** DEPRECATED */
|
|
1409
1181
|
Version?: number;
|
|
1410
1182
|
version?: number;
|
|
1411
1183
|
}
|
|
1412
|
-
export declare const DeleteAppSecretResponse: S.Schema<DeleteAppSecretResponse>;
|
|
1413
1184
|
export interface DeleteSecretKeyRequest {
|
|
1414
1185
|
/** Fly App Name */
|
|
1415
1186
|
app_name: string;
|
|
1416
1187
|
/** Secret key name */
|
|
1417
1188
|
secret_name: string;
|
|
1418
1189
|
}
|
|
1419
|
-
export declare const DeleteSecretKeyRequest: S.Schema<DeleteSecretKeyRequest>;
|
|
1420
1190
|
export interface DeleteSecretkeyResponse {
|
|
1421
1191
|
/** DEPRECATED */
|
|
1422
1192
|
Version?: number;
|
|
1423
1193
|
version?: number;
|
|
1424
1194
|
}
|
|
1425
|
-
export declare const DeleteSecretkeyResponse: S.Schema<DeleteSecretkeyResponse>;
|
|
1426
1195
|
export interface DeleteVolumeRequest {
|
|
1427
1196
|
/** Fly App Name */
|
|
1428
1197
|
app_name: string;
|
|
1429
1198
|
/** Volume ID */
|
|
1430
1199
|
volume_id: string;
|
|
1431
1200
|
}
|
|
1432
|
-
export declare const DeleteVolumeRequest: S.Schema<DeleteVolumeRequest>;
|
|
1433
1201
|
export interface DisablePostgresExtensionRequest {
|
|
1434
1202
|
/** Managed Postgres Cluster ID */
|
|
1435
1203
|
postgres_cluster_id: string;
|
|
@@ -1440,10 +1208,8 @@ export interface DisablePostgresExtensionRequest {
|
|
|
1440
1208
|
/** Also drop objects that depend on the extension */
|
|
1441
1209
|
force?: boolean;
|
|
1442
1210
|
}
|
|
1443
|
-
export declare const DisablePostgresExtensionRequest: S.Schema<DisablePostgresExtensionRequest>;
|
|
1444
1211
|
export interface DisablePostgresExtensionResponse {
|
|
1445
1212
|
}
|
|
1446
|
-
export declare const DisablePostgresExtensionResponse: S.Schema<DisablePostgresExtensionResponse>;
|
|
1447
1213
|
export interface EnablePostgresExtensionRequest {
|
|
1448
1214
|
/** Managed Postgres Cluster ID */
|
|
1449
1215
|
postgres_cluster_id: string;
|
|
@@ -1456,10 +1222,8 @@ export interface EnablePostgresExtensionRequest {
|
|
|
1456
1222
|
/** Schema to install the extension into. Defaults to the database's default schema. */
|
|
1457
1223
|
schema?: string;
|
|
1458
1224
|
}
|
|
1459
|
-
export declare const EnablePostgresExtensionRequest: S.Schema<EnablePostgresExtensionRequest>;
|
|
1460
1225
|
export interface EnablePostgresExtensionResponse {
|
|
1461
1226
|
}
|
|
1462
|
-
export declare const EnablePostgresExtensionResponse: S.Schema<EnablePostgresExtensionResponse>;
|
|
1463
1227
|
export interface EncryptSecretKeyRequest {
|
|
1464
1228
|
/** Fly App Name */
|
|
1465
1229
|
app_name: string;
|
|
@@ -1468,15 +1232,12 @@ export interface EncryptSecretKeyRequest {
|
|
|
1468
1232
|
/** Minimum secrets version to return. Returned when setting a new secret */
|
|
1469
1233
|
min_version?: string;
|
|
1470
1234
|
associated_data?: string;
|
|
1471
|
-
plaintext?: string
|
|
1235
|
+
plaintext?: string | Redacted.Redacted<string>;
|
|
1472
1236
|
}
|
|
1473
|
-
export declare const EncryptSecretKeyRequest: S.Schema<EncryptSecretKeyRequest>;
|
|
1474
1237
|
export interface EncryptSecretkeyResponse {
|
|
1475
1238
|
ciphertext?: string;
|
|
1476
1239
|
}
|
|
1477
|
-
export declare const EncryptSecretkeyResponse: S.Schema<EncryptSecretkeyResponse>;
|
|
1478
1240
|
export type ExecMachineRequestCommandList = Array<string>;
|
|
1479
|
-
export declare const ExecMachineRequestCommandList: S.Schema<ExecMachineRequestCommandList>;
|
|
1480
1241
|
export interface ExecMachineRequest {
|
|
1481
1242
|
/** Fly App Name */
|
|
1482
1243
|
app_name: string;
|
|
@@ -1491,14 +1252,12 @@ export interface ExecMachineRequest {
|
|
|
1491
1252
|
stdin?: string;
|
|
1492
1253
|
timeout?: number;
|
|
1493
1254
|
}
|
|
1494
|
-
export declare const ExecMachineRequest: S.Schema<ExecMachineRequest>;
|
|
1495
1255
|
export interface Flydv1ExecResponse {
|
|
1496
1256
|
exit_code?: number;
|
|
1497
1257
|
exit_signal?: number;
|
|
1498
1258
|
stderr?: string;
|
|
1499
1259
|
stdout?: string;
|
|
1500
1260
|
}
|
|
1501
|
-
export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
|
|
1502
1261
|
export interface ExtendVolumeRequest {
|
|
1503
1262
|
/** Fly App Name */
|
|
1504
1263
|
app_name: string;
|
|
@@ -1506,21 +1265,17 @@ export interface ExtendVolumeRequest {
|
|
|
1506
1265
|
volume_id: string;
|
|
1507
1266
|
size_gb?: number;
|
|
1508
1267
|
}
|
|
1509
|
-
export declare const ExtendVolumeRequest: S.Schema<ExtendVolumeRequest>;
|
|
1510
1268
|
export interface ExtendVolumeResponse {
|
|
1511
1269
|
needs_restart?: boolean;
|
|
1512
1270
|
volume?: Volume;
|
|
1513
1271
|
}
|
|
1514
|
-
export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
|
|
1515
1272
|
export interface ForkPostgresRequest {
|
|
1516
1273
|
/** Managed Postgres Cluster ID */
|
|
1517
1274
|
postgres_cluster_id: string;
|
|
1518
1275
|
/** Name for the forked cluster. Defaults to the source name with a -fork suffix. */
|
|
1519
1276
|
name?: string;
|
|
1520
1277
|
}
|
|
1521
|
-
export declare const ForkPostgresRequest: S.Schema<ForkPostgresRequest>;
|
|
1522
1278
|
export type GenerateSecretKeyRequestValueList = Array<number>;
|
|
1523
|
-
export declare const GenerateSecretKeyRequestValueList: S.Schema<GenerateSecretKeyRequestValueList>;
|
|
1524
1279
|
export interface GenerateSecretKeyRequest {
|
|
1525
1280
|
/** Fly App Name */
|
|
1526
1281
|
app_name: string;
|
|
@@ -1529,7 +1284,6 @@ export interface GenerateSecretKeyRequest {
|
|
|
1529
1284
|
type?: string;
|
|
1530
1285
|
value?: GenerateSecretKeyRequestValueList;
|
|
1531
1286
|
}
|
|
1532
|
-
export declare const GenerateSecretKeyRequest: S.Schema<GenerateSecretKeyRequest>;
|
|
1533
1287
|
export interface SetSecretkeyResponse {
|
|
1534
1288
|
/** DEPRECATED */
|
|
1535
1289
|
Version?: number;
|
|
@@ -1540,18 +1294,15 @@ export interface SetSecretkeyResponse {
|
|
|
1540
1294
|
updated_at?: string;
|
|
1541
1295
|
version?: number;
|
|
1542
1296
|
}
|
|
1543
|
-
export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
|
|
1544
1297
|
export interface GetAppRequest {
|
|
1545
1298
|
/** Fly App Name */
|
|
1546
1299
|
app_name: string;
|
|
1547
1300
|
}
|
|
1548
|
-
export declare const GetAppRequest: S.Schema<GetAppRequest>;
|
|
1549
1301
|
export interface AppOrganizationInfo {
|
|
1550
1302
|
internal_numeric_id?: number;
|
|
1551
1303
|
name?: string;
|
|
1552
1304
|
slug?: string;
|
|
1553
1305
|
}
|
|
1554
|
-
export declare const AppOrganizationInfo: S.Schema<AppOrganizationInfo>;
|
|
1555
1306
|
export interface App {
|
|
1556
1307
|
id?: string;
|
|
1557
1308
|
internal_numeric_id?: number;
|
|
@@ -1563,19 +1314,15 @@ export interface App {
|
|
|
1563
1314
|
status?: string;
|
|
1564
1315
|
volume_count?: number;
|
|
1565
1316
|
}
|
|
1566
|
-
export declare const App: S.Schema<App>;
|
|
1567
1317
|
export interface GetAppCertificateRequest {
|
|
1568
1318
|
/** Fly App Name */
|
|
1569
1319
|
app_name: string;
|
|
1570
1320
|
/** Certificate Hostname */
|
|
1571
1321
|
hostname: string;
|
|
1572
1322
|
}
|
|
1573
|
-
export declare const GetAppCertificateRequest: S.Schema<GetAppCertificateRequest>;
|
|
1574
1323
|
export interface GetCurrentTokenRequest {
|
|
1575
1324
|
}
|
|
1576
|
-
export declare const GetCurrentTokenRequest: S.Schema<GetCurrentTokenRequest>;
|
|
1577
1325
|
export type MainTokenInfoAppsList = Array<string>;
|
|
1578
|
-
export declare const MainTokenInfoAppsList: S.Schema<MainTokenInfoAppsList>;
|
|
1579
1326
|
export interface MainTokenInfo {
|
|
1580
1327
|
apps?: MainTokenInfoAppsList;
|
|
1581
1328
|
org_slug?: string;
|
|
@@ -1588,13 +1335,10 @@ export interface MainTokenInfo {
|
|
|
1588
1335
|
/** User identifier if token is for a user */
|
|
1589
1336
|
user?: string;
|
|
1590
1337
|
}
|
|
1591
|
-
export declare const MainTokenInfo: S.Schema<MainTokenInfo>;
|
|
1592
1338
|
export type CurrentTokenResponseTokensList = Array<MainTokenInfo>;
|
|
1593
|
-
export declare const CurrentTokenResponseTokensList: S.Schema<CurrentTokenResponseTokensList>;
|
|
1594
1339
|
export interface CurrentTokenResponse {
|
|
1595
1340
|
tokens?: CurrentTokenResponseTokensList;
|
|
1596
1341
|
}
|
|
1597
|
-
export declare const CurrentTokenResponse: S.Schema<CurrentTokenResponse>;
|
|
1598
1342
|
export interface GetMachineRequest {
|
|
1599
1343
|
/** Fly App Name */
|
|
1600
1344
|
app_name: string;
|
|
@@ -1605,39 +1349,32 @@ export interface GetMachineRequest {
|
|
|
1605
1349
|
/** Include machine lease */
|
|
1606
1350
|
include_leases?: boolean;
|
|
1607
1351
|
}
|
|
1608
|
-
export declare const GetMachineRequest: S.Schema<GetMachineRequest>;
|
|
1609
1352
|
export interface GetMachineLeaseRequest {
|
|
1610
1353
|
/** Fly App Name */
|
|
1611
1354
|
app_name: string;
|
|
1612
1355
|
/** Machine ID */
|
|
1613
1356
|
machine_id: string;
|
|
1614
1357
|
}
|
|
1615
|
-
export declare const GetMachineLeaseRequest: S.Schema<GetMachineLeaseRequest>;
|
|
1616
1358
|
export interface GetMachineMemoryRequest {
|
|
1617
1359
|
/** Fly App Name */
|
|
1618
1360
|
app_name: string;
|
|
1619
1361
|
/** Machine ID */
|
|
1620
1362
|
machine_id: string;
|
|
1621
1363
|
}
|
|
1622
|
-
export declare const GetMachineMemoryRequest: S.Schema<GetMachineMemoryRequest>;
|
|
1623
1364
|
export interface MainMemoryResponse {
|
|
1624
1365
|
available_mb?: number;
|
|
1625
1366
|
limit_mb?: number;
|
|
1626
1367
|
}
|
|
1627
|
-
export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
|
|
1628
1368
|
export interface GetMachineMetadataRequest {
|
|
1629
1369
|
/** Fly App Name */
|
|
1630
1370
|
app_name: string;
|
|
1631
1371
|
/** Machine ID */
|
|
1632
1372
|
machine_id: string;
|
|
1633
1373
|
}
|
|
1634
|
-
export declare const GetMachineMetadataRequest: S.Schema<GetMachineMetadataRequest>;
|
|
1635
1374
|
export type GetMachineMetadataResponseBodyMap = {
|
|
1636
1375
|
[key: string]: string | undefined;
|
|
1637
1376
|
};
|
|
1638
|
-
export declare const GetMachineMetadataResponseBodyMap: S.Schema<GetMachineMetadataResponseBodyMap>;
|
|
1639
1377
|
export type GetMachineMetadataResponse = GetMachineMetadataResponseBodyMap;
|
|
1640
|
-
export declare const GetMachineMetadataResponse: S.Schema<GetMachineMetadataResponse>;
|
|
1641
1378
|
export interface GetMachineMetadataKeyRequest {
|
|
1642
1379
|
/** Fly App Name */
|
|
1643
1380
|
app_name: string;
|
|
@@ -1646,15 +1383,12 @@ export interface GetMachineMetadataKeyRequest {
|
|
|
1646
1383
|
/** Metadata Key */
|
|
1647
1384
|
key: string;
|
|
1648
1385
|
}
|
|
1649
|
-
export declare const GetMachineMetadataKeyRequest: S.Schema<GetMachineMetadataKeyRequest>;
|
|
1650
1386
|
export interface MetadataValueResponse {
|
|
1651
1387
|
value?: string;
|
|
1652
1388
|
}
|
|
1653
|
-
export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
|
|
1654
1389
|
export type PlacementWeights = {
|
|
1655
1390
|
[key: string]: number | undefined;
|
|
1656
1391
|
};
|
|
1657
|
-
export declare const PlacementWeights: S.Schema<PlacementWeights>;
|
|
1658
1392
|
export interface GetPlacementsRequest {
|
|
1659
1393
|
/** Resource requirements for the Machine to simulate. Defaults to a performance-1x machine */
|
|
1660
1394
|
compute?: FlyMachineGuest;
|
|
@@ -1668,27 +1402,21 @@ export interface GetPlacementsRequest {
|
|
|
1668
1402
|
/** Optional weights to override default placement preferences. */
|
|
1669
1403
|
weights?: PlacementWeights;
|
|
1670
1404
|
}
|
|
1671
|
-
export declare const GetPlacementsRequest: S.Schema<GetPlacementsRequest>;
|
|
1672
1405
|
export interface PlacementRegionPlacement {
|
|
1673
1406
|
concurrency?: number;
|
|
1674
1407
|
count?: number;
|
|
1675
1408
|
region?: string;
|
|
1676
1409
|
}
|
|
1677
|
-
export declare const PlacementRegionPlacement: S.Schema<PlacementRegionPlacement>;
|
|
1678
1410
|
export type MainGetPlacementsResponseRegionsList = Array<PlacementRegionPlacement>;
|
|
1679
|
-
export declare const MainGetPlacementsResponseRegionsList: S.Schema<MainGetPlacementsResponseRegionsList>;
|
|
1680
1411
|
export interface MainGetPlacementsResponse {
|
|
1681
1412
|
regions?: MainGetPlacementsResponseRegionsList;
|
|
1682
1413
|
}
|
|
1683
|
-
export declare const MainGetPlacementsResponse: S.Schema<MainGetPlacementsResponse>;
|
|
1684
1414
|
export interface GetPostgresRequest {
|
|
1685
1415
|
/** Managed Postgres Cluster ID */
|
|
1686
1416
|
postgres_cluster_id: string;
|
|
1687
1417
|
}
|
|
1688
|
-
export declare const GetPostgresRequest: S.Schema<GetPostgresRequest>;
|
|
1689
1418
|
export interface GetRegionsRequest {
|
|
1690
1419
|
}
|
|
1691
|
-
export declare const GetRegionsRequest: S.Schema<GetRegionsRequest>;
|
|
1692
1420
|
export interface MainRegionRow {
|
|
1693
1421
|
code?: string;
|
|
1694
1422
|
deprecated?: boolean;
|
|
@@ -1700,14 +1428,11 @@ export interface MainRegionRow {
|
|
|
1700
1428
|
name?: string;
|
|
1701
1429
|
requires_paid_plan?: boolean;
|
|
1702
1430
|
}
|
|
1703
|
-
export declare const MainRegionRow: S.Schema<MainRegionRow>;
|
|
1704
1431
|
export type MainRegionResponseRegionsList = Array<MainRegionRow>;
|
|
1705
|
-
export declare const MainRegionResponseRegionsList: S.Schema<MainRegionResponseRegionsList>;
|
|
1706
1432
|
export interface MainRegionResponse {
|
|
1707
1433
|
nearest?: string;
|
|
1708
1434
|
regions?: MainRegionResponseRegionsList;
|
|
1709
1435
|
}
|
|
1710
|
-
export declare const MainRegionResponse: S.Schema<MainRegionResponse>;
|
|
1711
1436
|
export interface GetSecretRequest {
|
|
1712
1437
|
/** Fly App Name */
|
|
1713
1438
|
app_name: string;
|
|
@@ -1718,7 +1443,6 @@ export interface GetSecretRequest {
|
|
|
1718
1443
|
/** Show the secret value. */
|
|
1719
1444
|
show_secrets?: boolean;
|
|
1720
1445
|
}
|
|
1721
|
-
export declare const GetSecretRequest: S.Schema<GetSecretRequest>;
|
|
1722
1446
|
export interface AppSecret {
|
|
1723
1447
|
created_at?: string;
|
|
1724
1448
|
digest?: string;
|
|
@@ -1726,7 +1450,6 @@ export interface AppSecret {
|
|
|
1726
1450
|
updated_at?: string;
|
|
1727
1451
|
value?: string;
|
|
1728
1452
|
}
|
|
1729
|
-
export declare const AppSecret: S.Schema<AppSecret>;
|
|
1730
1453
|
export interface GetSecretKeyRequest {
|
|
1731
1454
|
/** Fly App Name */
|
|
1732
1455
|
app_name: string;
|
|
@@ -1735,7 +1458,6 @@ export interface GetSecretKeyRequest {
|
|
|
1735
1458
|
/** Minimum secrets version to return. Returned when setting a new secret */
|
|
1736
1459
|
min_version?: string;
|
|
1737
1460
|
}
|
|
1738
|
-
export declare const GetSecretKeyRequest: S.Schema<GetSecretKeyRequest>;
|
|
1739
1461
|
export interface SecretKey {
|
|
1740
1462
|
created_at?: string;
|
|
1741
1463
|
name?: string;
|
|
@@ -1743,14 +1465,12 @@ export interface SecretKey {
|
|
|
1743
1465
|
type?: string;
|
|
1744
1466
|
updated_at?: string;
|
|
1745
1467
|
}
|
|
1746
|
-
export declare const SecretKey: S.Schema<SecretKey>;
|
|
1747
1468
|
export interface GetVolumeByIdRequest {
|
|
1748
1469
|
/** Fly App Name */
|
|
1749
1470
|
app_name: string;
|
|
1750
1471
|
/** Volume ID */
|
|
1751
1472
|
volume_id: string;
|
|
1752
1473
|
}
|
|
1753
|
-
export declare const GetVolumeByIdRequest: S.Schema<GetVolumeByIdRequest>;
|
|
1754
1474
|
export interface ListAppCertificatesRequest {
|
|
1755
1475
|
/** Fly App Name */
|
|
1756
1476
|
app_name: string;
|
|
@@ -1761,7 +1481,6 @@ export interface ListAppCertificatesRequest {
|
|
|
1761
1481
|
/** Number of results per page (default 25, max 500) */
|
|
1762
1482
|
limit?: number;
|
|
1763
1483
|
}
|
|
1764
|
-
export declare const ListAppCertificatesRequest: S.Schema<ListAppCertificatesRequest>;
|
|
1765
1484
|
export interface CertificateSummary {
|
|
1766
1485
|
acme_alpn_configured?: boolean;
|
|
1767
1486
|
acme_dns_configured?: boolean;
|
|
@@ -1777,20 +1496,16 @@ export interface CertificateSummary {
|
|
|
1777
1496
|
status?: string;
|
|
1778
1497
|
updated_at?: string;
|
|
1779
1498
|
}
|
|
1780
|
-
export declare const CertificateSummary: S.Schema<CertificateSummary>;
|
|
1781
1499
|
export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
|
|
1782
|
-
export declare const ListCertificatesResponseCertificatesList: S.Schema<ListCertificatesResponseCertificatesList>;
|
|
1783
1500
|
export interface ListCertificatesResponse {
|
|
1784
1501
|
certificates?: ListCertificatesResponseCertificatesList;
|
|
1785
1502
|
next_cursor?: string;
|
|
1786
1503
|
total_count?: number;
|
|
1787
1504
|
}
|
|
1788
|
-
export declare const ListCertificatesResponse: S.Schema<ListCertificatesResponse>;
|
|
1789
1505
|
export interface ListAppIPAssignmentsRequest {
|
|
1790
1506
|
/** Fly App Name */
|
|
1791
1507
|
app_name: string;
|
|
1792
1508
|
}
|
|
1793
|
-
export declare const ListAppIPAssignmentsRequest: S.Schema<ListAppIPAssignmentsRequest>;
|
|
1794
1509
|
export interface IPAssignment {
|
|
1795
1510
|
created_at?: string;
|
|
1796
1511
|
egress?: boolean;
|
|
@@ -1801,13 +1516,10 @@ export interface IPAssignment {
|
|
|
1801
1516
|
shared?: boolean;
|
|
1802
1517
|
type?: string;
|
|
1803
1518
|
}
|
|
1804
|
-
export declare const IPAssignment: S.Schema<IPAssignment>;
|
|
1805
1519
|
export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
|
|
1806
|
-
export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
|
|
1807
1520
|
export interface ListIPAssignmentsResponse {
|
|
1808
1521
|
ips?: ListIPAssignmentsResponseIpsList;
|
|
1809
1522
|
}
|
|
1810
|
-
export declare const ListIPAssignmentsResponse: S.Schema<ListIPAssignmentsResponse>;
|
|
1811
1523
|
export interface ListAppsRequest {
|
|
1812
1524
|
/** The org slug, or 'personal', to filter apps */
|
|
1813
1525
|
org_slug: string;
|
|
@@ -1818,9 +1530,7 @@ export interface ListAppsRequest {
|
|
|
1818
1530
|
/** Value of next_cursor from the previous page. Requires limit. Later pages only include apps that existed when the first page was requested. Apps created in the seconds before the first page was requested may be missing. Cursors expire 30 minutes after the first page was requested. */
|
|
1819
1531
|
cursor?: string;
|
|
1820
1532
|
}
|
|
1821
|
-
export declare const ListAppsRequest: S.Schema<ListAppsRequest>;
|
|
1822
1533
|
export type ListAppsResponseAppsList = Array<App>;
|
|
1823
|
-
export declare const ListAppsResponseAppsList: S.Schema<ListAppsResponseAppsList>;
|
|
1824
1534
|
export interface ListAppsResponse {
|
|
1825
1535
|
apps?: ListAppsResponseAppsList;
|
|
1826
1536
|
/** Pagination cursor for the next page. Absent when no more apps remain. Cursors expire 30 minutes after the first page was requested. */
|
|
@@ -1828,7 +1538,6 @@ export interface ListAppsResponse {
|
|
|
1828
1538
|
/** The number of apps matching the request, across all pages. When paginating, it is counted once when the first page is requested and not updated afterwards, so it may differ slightly from the number of apps returned: it excludes apps created later and includes apps deleted while paginating. Apps created in the seconds before the first page may also be counted but missing from the pages. */
|
|
1829
1539
|
total_apps?: number;
|
|
1830
1540
|
}
|
|
1831
|
-
export declare const ListAppsResponse: S.Schema<ListAppsResponse>;
|
|
1832
1541
|
export interface ListMachineEventsRequest {
|
|
1833
1542
|
/** Fly App Name */
|
|
1834
1543
|
app_name: string;
|
|
@@ -1837,11 +1546,8 @@ export interface ListMachineEventsRequest {
|
|
|
1837
1546
|
/** The number of events to fetch (max of 50). If omitted, this is set to 20 by default. */
|
|
1838
1547
|
limit?: number;
|
|
1839
1548
|
}
|
|
1840
|
-
export declare const ListMachineEventsRequest: S.Schema<ListMachineEventsRequest>;
|
|
1841
1549
|
export type ListMachineEventsResponseBodyList = Array<MachineEvent>;
|
|
1842
|
-
export declare const ListMachineEventsResponseBodyList: S.Schema<ListMachineEventsResponseBodyList>;
|
|
1843
1550
|
export type ListMachineEventsResponse = ListMachineEventsResponseBodyList;
|
|
1844
|
-
export declare const ListMachineEventsResponse: S.Schema<ListMachineEventsResponse>;
|
|
1845
1551
|
export interface ListMachineProcessesRequest {
|
|
1846
1552
|
/** Fly App Name */
|
|
1847
1553
|
app_name: string;
|
|
@@ -1852,14 +1558,11 @@ export interface ListMachineProcessesRequest {
|
|
|
1852
1558
|
/** Order */
|
|
1853
1559
|
order?: string;
|
|
1854
1560
|
}
|
|
1855
|
-
export declare const ListMachineProcessesRequest: S.Schema<ListMachineProcessesRequest>;
|
|
1856
1561
|
export interface ListenSocket {
|
|
1857
1562
|
address?: string;
|
|
1858
1563
|
proto?: string;
|
|
1859
1564
|
}
|
|
1860
|
-
export declare const ListenSocket: S.Schema<ListenSocket>;
|
|
1861
1565
|
export type ProcessStatListenSocketsList = Array<ListenSocket>;
|
|
1862
|
-
export declare const ProcessStatListenSocketsList: S.Schema<ProcessStatListenSocketsList>;
|
|
1863
1566
|
export interface ProcessStat {
|
|
1864
1567
|
command?: string;
|
|
1865
1568
|
cpu?: number;
|
|
@@ -1870,11 +1573,8 @@ export interface ProcessStat {
|
|
|
1870
1573
|
rtime?: number;
|
|
1871
1574
|
stime?: number;
|
|
1872
1575
|
}
|
|
1873
|
-
export declare const ProcessStat: S.Schema<ProcessStat>;
|
|
1874
1576
|
export type ListMachineProcessesResponseBodyList = Array<ProcessStat>;
|
|
1875
|
-
export declare const ListMachineProcessesResponseBodyList: S.Schema<ListMachineProcessesResponseBodyList>;
|
|
1876
1577
|
export type ListMachineProcessesResponse = ListMachineProcessesResponseBodyList;
|
|
1877
|
-
export declare const ListMachineProcessesResponse: S.Schema<ListMachineProcessesResponse>;
|
|
1878
1578
|
export interface ListMachinesRequest {
|
|
1879
1579
|
/** Fly App Name */
|
|
1880
1580
|
app_name: string;
|
|
@@ -1895,11 +1595,8 @@ export interface ListMachinesRequest {
|
|
|
1895
1595
|
/** The number of machines to fetch (must be between 1 and 1000). Providing a limit enables pagination. This limit is advisory; responses may be shorter, or even empty, even when more machines remain. */
|
|
1896
1596
|
limit?: number;
|
|
1897
1597
|
}
|
|
1898
|
-
export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
|
|
1899
1598
|
export type ListMachinesResponseBodyList = Array<Machine>;
|
|
1900
|
-
export declare const ListMachinesResponseBodyList: S.Schema<ListMachinesResponseBodyList>;
|
|
1901
1599
|
export type ListMachinesResponse = ListMachinesResponseBodyList;
|
|
1902
|
-
export declare const ListMachinesResponse: S.Schema<ListMachinesResponse>;
|
|
1903
1600
|
export interface ListMachinesOrgRequest {
|
|
1904
1601
|
/** Fly Organization Slug */
|
|
1905
1602
|
org_slug: string;
|
|
@@ -1918,19 +1615,15 @@ export interface ListMachinesOrgRequest {
|
|
|
1918
1615
|
/** The number of machines to fetch (max of 1000). This limit is advisory. Responses may be shorter, or even empty, even when more machines remain. If omitted, the maximum is used */
|
|
1919
1616
|
limit?: number;
|
|
1920
1617
|
}
|
|
1921
|
-
export declare const ListMachinesOrgRequest: S.Schema<ListMachinesOrgRequest>;
|
|
1922
1618
|
export type OrgMachinesResponseErrorRegionsList = Array<string>;
|
|
1923
|
-
export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
|
|
1924
1619
|
export type MachineOverviewConfigMetadataMap = {
|
|
1925
1620
|
[key: string]: string | undefined;
|
|
1926
1621
|
};
|
|
1927
|
-
export declare const MachineOverviewConfigMetadataMap: S.Schema<MachineOverviewConfigMetadataMap>;
|
|
1928
1622
|
export interface MachineOverviewConfig {
|
|
1929
1623
|
guest?: FlyMachineGuest;
|
|
1930
1624
|
image?: string;
|
|
1931
1625
|
metadata?: MachineOverviewConfigMetadataMap;
|
|
1932
1626
|
}
|
|
1933
|
-
export declare const MachineOverviewConfig: S.Schema<MachineOverviewConfig>;
|
|
1934
1627
|
export interface OrgMachine {
|
|
1935
1628
|
app_name?: string;
|
|
1936
1629
|
config?: MachineOverviewConfig;
|
|
@@ -1943,9 +1636,7 @@ export interface OrgMachine {
|
|
|
1943
1636
|
updated_at?: string;
|
|
1944
1637
|
version?: string;
|
|
1945
1638
|
}
|
|
1946
|
-
export declare const OrgMachine: S.Schema<OrgMachine>;
|
|
1947
1639
|
export type OrgMachinesResponseMachinesList = Array<OrgMachine>;
|
|
1948
|
-
export declare const OrgMachinesResponseMachinesList: S.Schema<OrgMachinesResponseMachinesList>;
|
|
1949
1640
|
export interface OrgMachinesResponse {
|
|
1950
1641
|
error_regions?: OrgMachinesResponseErrorRegionsList;
|
|
1951
1642
|
last_machine_id?: string;
|
|
@@ -1953,39 +1644,30 @@ export interface OrgMachinesResponse {
|
|
|
1953
1644
|
machines?: OrgMachinesResponseMachinesList;
|
|
1954
1645
|
next_cursor?: string;
|
|
1955
1646
|
}
|
|
1956
|
-
export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
|
|
1957
1647
|
export interface ListMachineVersionsRequest {
|
|
1958
1648
|
/** Fly App Name */
|
|
1959
1649
|
app_name: string;
|
|
1960
1650
|
/** Machine ID */
|
|
1961
1651
|
machine_id: string;
|
|
1962
1652
|
}
|
|
1963
|
-
export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
|
|
1964
1653
|
export interface MachineVersion {
|
|
1965
1654
|
user_config?: FlyMachineConfig;
|
|
1966
1655
|
version?: string;
|
|
1967
1656
|
}
|
|
1968
|
-
export declare const MachineVersion: S.Schema<MachineVersion>;
|
|
1969
1657
|
export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
|
|
1970
|
-
export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
|
|
1971
1658
|
export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
|
|
1972
|
-
export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
|
|
1973
1659
|
export interface ListPostgresRequest {
|
|
1974
1660
|
/** Fly Organization Slug, or 'personal' for the caller's personal organization */
|
|
1975
1661
|
org_slug: string;
|
|
1976
1662
|
/** Include deleted clusters */
|
|
1977
1663
|
include_deleted?: boolean;
|
|
1978
1664
|
}
|
|
1979
|
-
export declare const ListPostgresRequest: S.Schema<ListPostgresRequest>;
|
|
1980
1665
|
/** Apps attached to the cluster. */
|
|
1981
1666
|
export type PostgresClusterSummaryAttachedAppsList = Array<PostgresAttachedApp>;
|
|
1982
|
-
export declare const PostgresClusterSummaryAttachedAppsList: S.Schema<PostgresClusterSummaryAttachedAppsList>;
|
|
1983
1667
|
/** Plan slug. */
|
|
1984
1668
|
export type PostgresClusterSummaryPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
1985
|
-
export declare const PostgresClusterSummaryPlan: any;
|
|
1986
1669
|
/** Current lifecycle status. */
|
|
1987
1670
|
export type PostgresClusterSummaryStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
|
|
1988
|
-
export declare const PostgresClusterSummaryStatus: any;
|
|
1989
1671
|
export interface PostgresClusterSummary {
|
|
1990
1672
|
/** Apps attached to the cluster. */
|
|
1991
1673
|
attached_apps?: PostgresClusterSummaryAttachedAppsList;
|
|
@@ -2004,21 +1686,16 @@ export interface PostgresClusterSummary {
|
|
|
2004
1686
|
/** Current lifecycle status. */
|
|
2005
1687
|
status?: PostgresClusterSummaryStatus;
|
|
2006
1688
|
}
|
|
2007
|
-
export declare const PostgresClusterSummary: S.Schema<PostgresClusterSummary>;
|
|
2008
1689
|
export type ListPostgresClustersResponseDataList = Array<PostgresClusterSummary>;
|
|
2009
|
-
export declare const ListPostgresClustersResponseDataList: S.Schema<ListPostgresClustersResponseDataList>;
|
|
2010
1690
|
export interface ListPostgresClustersResponse {
|
|
2011
1691
|
data?: ListPostgresClustersResponseDataList;
|
|
2012
1692
|
}
|
|
2013
|
-
export declare const ListPostgresClustersResponse: S.Schema<ListPostgresClustersResponse>;
|
|
2014
1693
|
export interface ListPostgresBackupsRequest {
|
|
2015
1694
|
/** Managed Postgres Cluster ID */
|
|
2016
1695
|
postgres_cluster_id: string;
|
|
2017
1696
|
}
|
|
2018
|
-
export declare const ListPostgresBackupsRequest: S.Schema<ListPostgresBackupsRequest>;
|
|
2019
1697
|
/** Backup type. */
|
|
2020
1698
|
export type PostgresBackupType = "full" | "incr" | "diff";
|
|
2021
|
-
export declare const PostgresBackupType: any;
|
|
2022
1699
|
export interface PostgresBackup {
|
|
2023
1700
|
/** RFC 3339 stop timestamp. */
|
|
2024
1701
|
finished_at?: string;
|
|
@@ -2033,31 +1710,24 @@ export interface PostgresBackup {
|
|
|
2033
1710
|
/** Backup type. */
|
|
2034
1711
|
type?: PostgresBackupType;
|
|
2035
1712
|
}
|
|
2036
|
-
export declare const PostgresBackup: S.Schema<PostgresBackup>;
|
|
2037
1713
|
export type ListPostgresBackupsResponseDataList = Array<PostgresBackup>;
|
|
2038
|
-
export declare const ListPostgresBackupsResponseDataList: S.Schema<ListPostgresBackupsResponseDataList>;
|
|
2039
1714
|
export interface ListPostgresBackupsResponse {
|
|
2040
1715
|
data?: ListPostgresBackupsResponseDataList;
|
|
2041
1716
|
}
|
|
2042
|
-
export declare const ListPostgresBackupsResponse: S.Schema<ListPostgresBackupsResponse>;
|
|
2043
1717
|
export interface ListPostgresDatabasesRequest {
|
|
2044
1718
|
/** Managed Postgres Cluster ID */
|
|
2045
1719
|
postgres_cluster_id: string;
|
|
2046
1720
|
}
|
|
2047
|
-
export declare const ListPostgresDatabasesRequest: S.Schema<ListPostgresDatabasesRequest>;
|
|
2048
1721
|
export type ListPostgresDatabasesResponseDataList = Array<PostgresDatabase>;
|
|
2049
|
-
export declare const ListPostgresDatabasesResponseDataList: S.Schema<ListPostgresDatabasesResponseDataList>;
|
|
2050
1722
|
export interface ListPostgresDatabasesResponse {
|
|
2051
1723
|
data?: ListPostgresDatabasesResponseDataList;
|
|
2052
1724
|
}
|
|
2053
|
-
export declare const ListPostgresDatabasesResponse: S.Schema<ListPostgresDatabasesResponse>;
|
|
2054
1725
|
export interface ListPostgresExtensionsRequest {
|
|
2055
1726
|
/** Managed Postgres Cluster ID */
|
|
2056
1727
|
postgres_cluster_id: string;
|
|
2057
1728
|
/** Database Name */
|
|
2058
1729
|
database_name: string;
|
|
2059
1730
|
}
|
|
2060
|
-
export declare const ListPostgresExtensionsRequest: S.Schema<ListPostgresExtensionsRequest>;
|
|
2061
1731
|
/** Installation details, or null when the extension is not installed. */
|
|
2062
1732
|
export interface PostgresExtensionInstalled {
|
|
2063
1733
|
/** Schema the extension is installed into. */
|
|
@@ -2065,7 +1735,6 @@ export interface PostgresExtensionInstalled {
|
|
|
2065
1735
|
/** Installed version. */
|
|
2066
1736
|
version?: string;
|
|
2067
1737
|
}
|
|
2068
|
-
export declare const PostgresExtensionInstalled: S.Schema<PostgresExtensionInstalled>;
|
|
2069
1738
|
export interface PostgresExtension {
|
|
2070
1739
|
/** Default version installed when enabled. */
|
|
2071
1740
|
default_version?: string;
|
|
@@ -2078,24 +1747,18 @@ export interface PostgresExtension {
|
|
|
2078
1747
|
/** Whether this is a system extension that cannot be disabled. */
|
|
2079
1748
|
system?: boolean;
|
|
2080
1749
|
}
|
|
2081
|
-
export declare const PostgresExtension: S.Schema<PostgresExtension>;
|
|
2082
1750
|
export type ListPostgresExtensionsResponseDataList = Array<PostgresExtension>;
|
|
2083
|
-
export declare const ListPostgresExtensionsResponseDataList: S.Schema<ListPostgresExtensionsResponseDataList>;
|
|
2084
1751
|
export interface ListPostgresExtensionsResponse {
|
|
2085
1752
|
data?: ListPostgresExtensionsResponseDataList;
|
|
2086
1753
|
}
|
|
2087
|
-
export declare const ListPostgresExtensionsResponse: S.Schema<ListPostgresExtensionsResponse>;
|
|
2088
1754
|
export interface ListPostgresUsersRequest {
|
|
2089
1755
|
/** Managed Postgres Cluster ID */
|
|
2090
1756
|
postgres_cluster_id: string;
|
|
2091
1757
|
}
|
|
2092
|
-
export declare const ListPostgresUsersRequest: S.Schema<ListPostgresUsersRequest>;
|
|
2093
1758
|
export type ListPostgresUsersResponseDataList = Array<PostgresUser>;
|
|
2094
|
-
export declare const ListPostgresUsersResponseDataList: S.Schema<ListPostgresUsersResponseDataList>;
|
|
2095
1759
|
export interface ListPostgresUsersResponse {
|
|
2096
1760
|
data?: ListPostgresUsersResponseDataList;
|
|
2097
1761
|
}
|
|
2098
|
-
export declare const ListPostgresUsersResponse: S.Schema<ListPostgresUsersResponse>;
|
|
2099
1762
|
export interface ListSecretKeysRequest {
|
|
2100
1763
|
/** Fly App Name */
|
|
2101
1764
|
app_name: string;
|
|
@@ -2104,13 +1767,10 @@ export interface ListSecretKeysRequest {
|
|
|
2104
1767
|
/** Comma-seperated list of secret keys to list */
|
|
2105
1768
|
types?: string;
|
|
2106
1769
|
}
|
|
2107
|
-
export declare const ListSecretKeysRequest: S.Schema<ListSecretKeysRequest>;
|
|
2108
1770
|
export type SecretKeysSecretKeysList = Array<SecretKey>;
|
|
2109
|
-
export declare const SecretKeysSecretKeysList: S.Schema<SecretKeysSecretKeysList>;
|
|
2110
1771
|
export interface SecretKeys {
|
|
2111
1772
|
secret_keys?: SecretKeysSecretKeysList;
|
|
2112
1773
|
}
|
|
2113
|
-
export declare const SecretKeys: S.Schema<SecretKeys>;
|
|
2114
1774
|
export interface ListSecretsRequest {
|
|
2115
1775
|
/** Fly App Name */
|
|
2116
1776
|
app_name: string;
|
|
@@ -2119,13 +1779,10 @@ export interface ListSecretsRequest {
|
|
|
2119
1779
|
/** Show the secret values. */
|
|
2120
1780
|
show_secrets?: boolean;
|
|
2121
1781
|
}
|
|
2122
|
-
export declare const ListSecretsRequest: S.Schema<ListSecretsRequest>;
|
|
2123
1782
|
export type AppSecretsSecretsList = Array<AppSecret>;
|
|
2124
|
-
export declare const AppSecretsSecretsList: S.Schema<AppSecretsSecretsList>;
|
|
2125
1783
|
export interface AppSecrets {
|
|
2126
1784
|
secrets?: AppSecretsSecretsList;
|
|
2127
1785
|
}
|
|
2128
|
-
export declare const AppSecrets: S.Schema<AppSecrets>;
|
|
2129
1786
|
export interface ListVolumesRequest {
|
|
2130
1787
|
/** Fly App Name */
|
|
2131
1788
|
app_name: string;
|
|
@@ -2136,18 +1793,14 @@ export interface ListVolumesRequest {
|
|
|
2136
1793
|
/** The number of volumes to fetch (must be between 1 and 1000). Providing a limit enables pagination. This limit is advisory; responses may be shorter, or even empty, even when more volumes remain. */
|
|
2137
1794
|
limit?: number;
|
|
2138
1795
|
}
|
|
2139
|
-
export declare const ListVolumesRequest: S.Schema<ListVolumesRequest>;
|
|
2140
1796
|
export type ListVolumesResponseBodyList = Array<Volume>;
|
|
2141
|
-
export declare const ListVolumesResponseBodyList: S.Schema<ListVolumesResponseBodyList>;
|
|
2142
1797
|
export type ListVolumesResponse = ListVolumesResponseBodyList;
|
|
2143
|
-
export declare const ListVolumesResponse: S.Schema<ListVolumesResponse>;
|
|
2144
1798
|
export interface ListVolumeSnapshotsRequest {
|
|
2145
1799
|
/** Fly App Name */
|
|
2146
1800
|
app_name: string;
|
|
2147
1801
|
/** Volume ID */
|
|
2148
1802
|
volume_id: string;
|
|
2149
1803
|
}
|
|
2150
|
-
export declare const ListVolumeSnapshotsRequest: S.Schema<ListVolumeSnapshotsRequest>;
|
|
2151
1804
|
export interface VolumeSnapshot {
|
|
2152
1805
|
created_at?: string;
|
|
2153
1806
|
digest?: string;
|
|
@@ -2157,11 +1810,8 @@ export interface VolumeSnapshot {
|
|
|
2157
1810
|
status?: string;
|
|
2158
1811
|
volume_size?: number;
|
|
2159
1812
|
}
|
|
2160
|
-
export declare const VolumeSnapshot: S.Schema<VolumeSnapshot>;
|
|
2161
1813
|
export type ListVolumeSnapshotsResponseBodyList = Array<VolumeSnapshot>;
|
|
2162
|
-
export declare const ListVolumeSnapshotsResponseBodyList: S.Schema<ListVolumeSnapshotsResponseBodyList>;
|
|
2163
1814
|
export type ListVolumeSnapshotsResponse = ListVolumeSnapshotsResponseBodyList;
|
|
2164
|
-
export declare const ListVolumeSnapshotsResponse: S.Schema<ListVolumeSnapshotsResponse>;
|
|
2165
1815
|
export interface ListVolumesOrgRequest {
|
|
2166
1816
|
/** Fly Organization Slug */
|
|
2167
1817
|
org_slug: string;
|
|
@@ -2180,15 +1830,10 @@ export interface ListVolumesOrgRequest {
|
|
|
2180
1830
|
/** The number of volumes to fetch (max of 1000). This limit is advisory. Responses may be shorter, even when more volumes remain. If omitted, the maximum is used */
|
|
2181
1831
|
limit?: number;
|
|
2182
1832
|
}
|
|
2183
|
-
export declare const ListVolumesOrgRequest: S.Schema<ListVolumesOrgRequest>;
|
|
2184
1833
|
export type OrgVolumeHostFeaturesList = Array<string>;
|
|
2185
|
-
export declare const OrgVolumeHostFeaturesList: S.Schema<OrgVolumeHostFeaturesList>;
|
|
2186
1834
|
export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
|
|
2187
|
-
export declare const OrgVolumeHostStatus: any;
|
|
2188
1835
|
export type OrgVolumeRequiredHostFeaturesList = Array<string>;
|
|
2189
|
-
export declare const OrgVolumeRequiredHostFeaturesList: S.Schema<OrgVolumeRequiredHostFeaturesList>;
|
|
2190
1836
|
export type OrgVolumeType = "local" | "cache";
|
|
2191
|
-
export declare const OrgVolumeType: any;
|
|
2192
1837
|
export interface OrgVolume {
|
|
2193
1838
|
app_name?: string;
|
|
2194
1839
|
attached_alloc_id?: string;
|
|
@@ -2216,16 +1861,13 @@ export interface OrgVolume {
|
|
|
2216
1861
|
updated_at?: string;
|
|
2217
1862
|
zone?: string;
|
|
2218
1863
|
}
|
|
2219
|
-
export declare const OrgVolume: S.Schema<OrgVolume>;
|
|
2220
1864
|
export type OrgVolumesResponseVolumesList = Array<OrgVolume>;
|
|
2221
|
-
export declare const OrgVolumesResponseVolumesList: S.Schema<OrgVolumesResponseVolumesList>;
|
|
2222
1865
|
export interface OrgVolumesResponse {
|
|
2223
1866
|
last_updated_at?: string;
|
|
2224
1867
|
last_volume_id?: string;
|
|
2225
1868
|
next_cursor?: string;
|
|
2226
1869
|
volumes?: OrgVolumesResponseVolumesList;
|
|
2227
1870
|
}
|
|
2228
|
-
export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
|
|
2229
1871
|
export interface MachinesReleaseLeaseRequest {
|
|
2230
1872
|
/** Fly App Name */
|
|
2231
1873
|
app_name: string;
|
|
@@ -2234,14 +1876,11 @@ export interface MachinesReleaseLeaseRequest {
|
|
|
2234
1876
|
/** Nonce of the lease to release. Keep the nonce private. */
|
|
2235
1877
|
lease_nonce: string;
|
|
2236
1878
|
}
|
|
2237
|
-
export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
|
|
2238
1879
|
export interface MachinesReleaseLeaseResponse {
|
|
2239
1880
|
}
|
|
2240
|
-
export declare const MachinesReleaseLeaseResponse: S.Schema<MachinesReleaseLeaseResponse>;
|
|
2241
1881
|
export type PatchMachineMetadataRequestMetadataMap = {
|
|
2242
1882
|
[key: string]: string | undefined;
|
|
2243
1883
|
};
|
|
2244
|
-
export declare const PatchMachineMetadataRequestMetadataMap: S.Schema<PatchMachineMetadataRequestMetadataMap>;
|
|
2245
1884
|
export interface PatchMachineMetadataRequest {
|
|
2246
1885
|
/** Fly App Name */
|
|
2247
1886
|
app_name: string;
|
|
@@ -2251,17 +1890,14 @@ export interface PatchMachineMetadataRequest {
|
|
|
2251
1890
|
metadata?: PatchMachineMetadataRequestMetadataMap;
|
|
2252
1891
|
updated_at?: string;
|
|
2253
1892
|
}
|
|
2254
|
-
export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataRequest>;
|
|
2255
1893
|
export interface PatchMachineMetadataResponse {
|
|
2256
1894
|
}
|
|
2257
|
-
export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
|
|
2258
1895
|
export interface PostgresQueriesActiveRequest {
|
|
2259
1896
|
/** Managed Postgres Cluster ID */
|
|
2260
1897
|
postgres_cluster_id: string;
|
|
2261
1898
|
/** Database to inspect (must not be empty or whitespace-only) */
|
|
2262
1899
|
database: string;
|
|
2263
1900
|
}
|
|
2264
|
-
export declare const PostgresQueriesActiveRequest: S.Schema<PostgresQueriesActiveRequest>;
|
|
2265
1901
|
export interface PostgresActiveQuery {
|
|
2266
1902
|
/** Application connected to the backend. */
|
|
2267
1903
|
application_name?: string;
|
|
@@ -2286,20 +1922,16 @@ export interface PostgresActiveQuery {
|
|
|
2286
1922
|
/** Type of event the backend is waiting for. */
|
|
2287
1923
|
wait_event_type?: string;
|
|
2288
1924
|
}
|
|
2289
|
-
export declare const PostgresActiveQuery: S.Schema<PostgresActiveQuery>;
|
|
2290
1925
|
export type ListPostgresActiveQueriesResponseDataList = Array<PostgresActiveQuery>;
|
|
2291
|
-
export declare const ListPostgresActiveQueriesResponseDataList: S.Schema<ListPostgresActiveQueriesResponseDataList>;
|
|
2292
1926
|
export interface ListPostgresActiveQueriesResponse {
|
|
2293
1927
|
data?: ListPostgresActiveQueriesResponseDataList;
|
|
2294
1928
|
}
|
|
2295
|
-
export declare const ListPostgresActiveQueriesResponse: S.Schema<ListPostgresActiveQueriesResponse>;
|
|
2296
1929
|
export interface PostgresQueriesSlowRequest {
|
|
2297
1930
|
/** Managed Postgres Cluster ID */
|
|
2298
1931
|
postgres_cluster_id: string;
|
|
2299
1932
|
/** Metrics lookback in seconds */
|
|
2300
1933
|
range?: number;
|
|
2301
1934
|
}
|
|
2302
|
-
export declare const PostgresQueriesSlowRequest: S.Schema<PostgresQueriesSlowRequest>;
|
|
2303
1935
|
export interface PostgresSlowQuery {
|
|
2304
1936
|
/** Cumulative number of executions. */
|
|
2305
1937
|
calls?: number;
|
|
@@ -2318,31 +1950,25 @@ export interface PostgresSlowQuery {
|
|
|
2318
1950
|
/** User running the query. */
|
|
2319
1951
|
user?: string;
|
|
2320
1952
|
}
|
|
2321
|
-
export declare const PostgresSlowQuery: S.Schema<PostgresSlowQuery>;
|
|
2322
1953
|
export type ListPostgresSlowQueriesResponseDataList = Array<PostgresSlowQuery>;
|
|
2323
|
-
export declare const ListPostgresSlowQueriesResponseDataList: S.Schema<ListPostgresSlowQueriesResponseDataList>;
|
|
2324
1954
|
export interface ListPostgresSlowQueriesResponse {
|
|
2325
1955
|
data?: ListPostgresSlowQueriesResponseDataList;
|
|
2326
1956
|
}
|
|
2327
|
-
export declare const ListPostgresSlowQueriesResponse: S.Schema<ListPostgresSlowQueriesResponse>;
|
|
2328
1957
|
export interface PostgresUsersCredentialsRequest {
|
|
2329
1958
|
/** Managed Postgres Cluster ID */
|
|
2330
1959
|
postgres_cluster_id: string;
|
|
2331
1960
|
/** Postgres User Name */
|
|
2332
1961
|
username: string;
|
|
2333
1962
|
}
|
|
2334
|
-
export declare const PostgresUsersCredentialsRequest: S.Schema<PostgresUsersCredentialsRequest>;
|
|
2335
1963
|
export interface PostgresUserCredentials {
|
|
2336
1964
|
/** User password. */
|
|
2337
|
-
password?: string
|
|
1965
|
+
password?: string | Redacted.Redacted<string>;
|
|
2338
1966
|
/** User name. */
|
|
2339
1967
|
username?: string;
|
|
2340
1968
|
}
|
|
2341
|
-
export declare const PostgresUserCredentials: S.Schema<PostgresUserCredentials>;
|
|
2342
1969
|
export interface GetPostgresUserCredentialsResponse {
|
|
2343
1970
|
data?: PostgresUserCredentials;
|
|
2344
1971
|
}
|
|
2345
|
-
export declare const GetPostgresUserCredentialsResponse: S.Schema<GetPostgresUserCredentialsResponse>;
|
|
2346
1972
|
export interface ReclaimMachineMemoryRequest {
|
|
2347
1973
|
/** Fly App Name */
|
|
2348
1974
|
app_name: string;
|
|
@@ -2350,27 +1976,20 @@ export interface ReclaimMachineMemoryRequest {
|
|
|
2350
1976
|
machine_id: string;
|
|
2351
1977
|
amount_mb?: number;
|
|
2352
1978
|
}
|
|
2353
|
-
export declare const ReclaimMachineMemoryRequest: S.Schema<ReclaimMachineMemoryRequest>;
|
|
2354
1979
|
export interface MainReclaimMemoryResponse {
|
|
2355
1980
|
actual_mb?: number;
|
|
2356
1981
|
}
|
|
2357
|
-
export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
|
|
2358
1982
|
export interface RequestKmsTokenRequest {
|
|
2359
1983
|
}
|
|
2360
|
-
export declare const RequestKmsTokenRequest: S.Schema<RequestKmsTokenRequest>;
|
|
2361
1984
|
export interface RequestKmsTokenResponse {
|
|
2362
1985
|
}
|
|
2363
|
-
export declare const RequestKmsTokenResponse: S.Schema<RequestKmsTokenResponse>;
|
|
2364
1986
|
export interface RequestOidcTokenRequest {
|
|
2365
1987
|
aud?: string;
|
|
2366
1988
|
aws_principal_tags?: boolean;
|
|
2367
1989
|
}
|
|
2368
|
-
export declare const RequestOidcTokenRequest: S.Schema<RequestOidcTokenRequest>;
|
|
2369
1990
|
export interface RequestOidcTokenResponse {
|
|
2370
1991
|
}
|
|
2371
|
-
export declare const RequestOidcTokenResponse: S.Schema<RequestOidcTokenResponse>;
|
|
2372
1992
|
export type RestartMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
|
|
2373
|
-
export declare const RestartMachineRequestSignal: any;
|
|
2374
1993
|
export interface RestartMachineRequest {
|
|
2375
1994
|
/** Fly App Name */
|
|
2376
1995
|
app_name: string;
|
|
@@ -2382,10 +2001,8 @@ export interface RestartMachineRequest {
|
|
|
2382
2001
|
signal?: RestartMachineRequestSignal | (string & {});
|
|
2383
2002
|
lease_nonce?: string;
|
|
2384
2003
|
}
|
|
2385
|
-
export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
|
|
2386
2004
|
export interface RestartMachineResponse {
|
|
2387
2005
|
}
|
|
2388
|
-
export declare const RestartMachineResponse: S.Schema<RestartMachineResponse>;
|
|
2389
2006
|
export interface RestorePostgresRequest {
|
|
2390
2007
|
/** Managed Postgres Cluster ID */
|
|
2391
2008
|
postgres_cluster_id: string;
|
|
@@ -2396,7 +2013,6 @@ export interface RestorePostgresRequest {
|
|
|
2396
2013
|
/** Point in time to restore to, as an RFC3339 timestamp with an explicit offset from UTC (e.g. Z or +02:00). Normalized to UTC and must fall within the cluster's PITR recovery window. Mutually exclusive with backup_id. */
|
|
2397
2014
|
pitr_time?: string;
|
|
2398
2015
|
}
|
|
2399
|
-
export declare const RestorePostgresRequest: S.Schema<RestorePostgresRequest>;
|
|
2400
2016
|
export interface RotatePostgresUserPasswordRequest {
|
|
2401
2017
|
/** Managed Postgres Cluster ID */
|
|
2402
2018
|
postgres_cluster_id: string;
|
|
@@ -2405,11 +2021,9 @@ export interface RotatePostgresUserPasswordRequest {
|
|
|
2405
2021
|
/** Terminate the user's existing sessions after rotating. */
|
|
2406
2022
|
kill_sessions?: boolean;
|
|
2407
2023
|
}
|
|
2408
|
-
export declare const RotatePostgresUserPasswordRequest: S.Schema<RotatePostgresUserPasswordRequest>;
|
|
2409
2024
|
export interface RotatePostgresPasswordResponse {
|
|
2410
2025
|
data?: PostgresUserCredentials;
|
|
2411
2026
|
}
|
|
2412
|
-
export declare const RotatePostgresPasswordResponse: S.Schema<RotatePostgresPasswordResponse>;
|
|
2413
2027
|
export interface SetMachineMemoryLimitRequest {
|
|
2414
2028
|
/** Fly App Name */
|
|
2415
2029
|
app_name: string;
|
|
@@ -2417,9 +2031,7 @@ export interface SetMachineMemoryLimitRequest {
|
|
|
2417
2031
|
machine_id: string;
|
|
2418
2032
|
limit_mb?: number;
|
|
2419
2033
|
}
|
|
2420
|
-
export declare const SetMachineMemoryLimitRequest: S.Schema<SetMachineMemoryLimitRequest>;
|
|
2421
2034
|
export type SetSecretKeyRequestValueList = Array<number>;
|
|
2422
|
-
export declare const SetSecretKeyRequestValueList: S.Schema<SetSecretKeyRequestValueList>;
|
|
2423
2035
|
export interface SetSecretKeyRequest {
|
|
2424
2036
|
/** Fly App Name */
|
|
2425
2037
|
app_name: string;
|
|
@@ -2428,9 +2040,7 @@ export interface SetSecretKeyRequest {
|
|
|
2428
2040
|
type?: string;
|
|
2429
2041
|
value?: SetSecretKeyRequestValueList;
|
|
2430
2042
|
}
|
|
2431
|
-
export declare const SetSecretKeyRequest: S.Schema<SetSecretKeyRequest>;
|
|
2432
2043
|
export type SignalMachineRequestSignal = "SIGABRT" | "SIGALRM" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGKILL" | "SIGPIPE" | "SIGQUIT" | "SIGSEGV" | "SIGTERM" | "SIGTRAP" | "SIGUSR1" | "SIGUSR2";
|
|
2433
|
-
export declare const SignalMachineRequestSignal: any;
|
|
2434
2044
|
export interface SignalMachineRequest {
|
|
2435
2045
|
/** Fly App Name */
|
|
2436
2046
|
app_name: string;
|
|
@@ -2438,10 +2048,8 @@ export interface SignalMachineRequest {
|
|
|
2438
2048
|
machine_id: string;
|
|
2439
2049
|
signal?: SignalMachineRequestSignal | (string & {});
|
|
2440
2050
|
}
|
|
2441
|
-
export declare const SignalMachineRequest: S.Schema<SignalMachineRequest>;
|
|
2442
2051
|
export interface SignalMachineResponse {
|
|
2443
2052
|
}
|
|
2444
|
-
export declare const SignalMachineResponse: S.Schema<SignalMachineResponse>;
|
|
2445
2053
|
export interface SignSecretKeyRequest {
|
|
2446
2054
|
/** Fly App Name */
|
|
2447
2055
|
app_name: string;
|
|
@@ -2449,13 +2057,11 @@ export interface SignSecretKeyRequest {
|
|
|
2449
2057
|
secret_name: string;
|
|
2450
2058
|
/** Minimum secrets version to return. Returned when setting a new secret */
|
|
2451
2059
|
min_version?: string;
|
|
2452
|
-
plaintext?: string
|
|
2060
|
+
plaintext?: string | Redacted.Redacted<string>;
|
|
2453
2061
|
}
|
|
2454
|
-
export declare const SignSecretKeyRequest: S.Schema<SignSecretKeyRequest>;
|
|
2455
2062
|
export interface SignSecretkeyResponse {
|
|
2456
2063
|
signature?: string;
|
|
2457
2064
|
}
|
|
2458
|
-
export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
|
|
2459
2065
|
export interface StartMachineRequest {
|
|
2460
2066
|
/** Fly App Name */
|
|
2461
2067
|
app_name: string;
|
|
@@ -2463,12 +2069,9 @@ export interface StartMachineRequest {
|
|
|
2463
2069
|
machine_id: string;
|
|
2464
2070
|
lease_nonce?: string;
|
|
2465
2071
|
}
|
|
2466
|
-
export declare const StartMachineRequest: S.Schema<StartMachineRequest>;
|
|
2467
2072
|
export interface StartMachineResponse {
|
|
2468
2073
|
}
|
|
2469
|
-
export declare const StartMachineResponse: S.Schema<StartMachineResponse>;
|
|
2470
2074
|
export type StopMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
|
|
2471
|
-
export declare const StopMachineRequestSignal: any;
|
|
2472
2075
|
export interface StopMachineRequest {
|
|
2473
2076
|
/** Fly App Name */
|
|
2474
2077
|
app_name: string;
|
|
@@ -2478,10 +2081,8 @@ export interface StopMachineRequest {
|
|
|
2478
2081
|
timeout?: string;
|
|
2479
2082
|
lease_nonce?: string;
|
|
2480
2083
|
}
|
|
2481
|
-
export declare const StopMachineRequest: S.Schema<StopMachineRequest>;
|
|
2482
2084
|
export interface StopMachineResponse {
|
|
2483
2085
|
}
|
|
2484
|
-
export declare const StopMachineResponse: S.Schema<StopMachineResponse>;
|
|
2485
2086
|
export interface SuspendMachineRequest {
|
|
2486
2087
|
/** Fly App Name */
|
|
2487
2088
|
app_name: string;
|
|
@@ -2489,10 +2090,8 @@ export interface SuspendMachineRequest {
|
|
|
2489
2090
|
machine_id: string;
|
|
2490
2091
|
lease_nonce?: string;
|
|
2491
2092
|
}
|
|
2492
|
-
export declare const SuspendMachineRequest: S.Schema<SuspendMachineRequest>;
|
|
2493
2093
|
export interface SuspendMachineResponse {
|
|
2494
2094
|
}
|
|
2495
|
-
export declare const SuspendMachineResponse: S.Schema<SuspendMachineResponse>;
|
|
2496
2095
|
export interface UncordonMachineRequest {
|
|
2497
2096
|
/** Fly App Name */
|
|
2498
2097
|
app_name: string;
|
|
@@ -2500,10 +2099,8 @@ export interface UncordonMachineRequest {
|
|
|
2500
2099
|
machine_id: string;
|
|
2501
2100
|
lease_nonce?: string;
|
|
2502
2101
|
}
|
|
2503
|
-
export declare const UncordonMachineRequest: S.Schema<UncordonMachineRequest>;
|
|
2504
2102
|
export interface UncordonMachineResponse {
|
|
2505
2103
|
}
|
|
2506
|
-
export declare const UncordonMachineResponse: S.Schema<UncordonMachineResponse>;
|
|
2507
2104
|
export interface UpdateMachineRequest {
|
|
2508
2105
|
/** Fly App Name */
|
|
2509
2106
|
app_name: string;
|
|
@@ -2524,10 +2121,8 @@ export interface UpdateMachineRequest {
|
|
|
2524
2121
|
skip_service_registration?: boolean;
|
|
2525
2122
|
lease_nonce?: string;
|
|
2526
2123
|
}
|
|
2527
|
-
export declare const UpdateMachineRequest: S.Schema<UpdateMachineRequest>;
|
|
2528
2124
|
/** New role for the user. */
|
|
2529
2125
|
export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
|
|
2530
|
-
export declare const UpdatePostgresUserRoleRequestRole: any;
|
|
2531
2126
|
export interface UpdatePostgresUserRoleRequest {
|
|
2532
2127
|
/** Managed Postgres Cluster ID */
|
|
2533
2128
|
postgres_cluster_id: string;
|
|
@@ -2536,29 +2131,23 @@ export interface UpdatePostgresUserRoleRequest {
|
|
|
2536
2131
|
/** New role for the user. */
|
|
2537
2132
|
role: UpdatePostgresUserRoleRequestRole | (string & {});
|
|
2538
2133
|
}
|
|
2539
|
-
export declare const UpdatePostgresUserRoleRequest: S.Schema<UpdatePostgresUserRoleRequest>;
|
|
2540
2134
|
export interface UpdatePostgresUserRoleResponse {
|
|
2541
2135
|
}
|
|
2542
|
-
export declare const UpdatePostgresUserRoleResponse: S.Schema<UpdatePostgresUserRoleResponse>;
|
|
2543
2136
|
export type UpdateSecretsRequestValuesMap = {
|
|
2544
2137
|
[key: string]: string | undefined;
|
|
2545
2138
|
};
|
|
2546
|
-
export declare const UpdateSecretsRequestValuesMap: S.Schema<UpdateSecretsRequestValuesMap>;
|
|
2547
2139
|
export interface UpdateSecretsRequest {
|
|
2548
2140
|
/** Fly App Name */
|
|
2549
2141
|
app_name: string;
|
|
2550
2142
|
values?: UpdateSecretsRequestValuesMap;
|
|
2551
2143
|
}
|
|
2552
|
-
export declare const UpdateSecretsRequest: S.Schema<UpdateSecretsRequest>;
|
|
2553
2144
|
export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
|
|
2554
|
-
export declare const AppSecretsUpdateRespSecretsList: S.Schema<AppSecretsUpdateRespSecretsList>;
|
|
2555
2145
|
export interface AppSecretsUpdateResp {
|
|
2556
2146
|
/** DEPRECATED */
|
|
2557
2147
|
Version?: number;
|
|
2558
2148
|
secrets?: AppSecretsUpdateRespSecretsList;
|
|
2559
2149
|
version?: number;
|
|
2560
2150
|
}
|
|
2561
|
-
export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
|
|
2562
2151
|
export interface UpdateVolumeRequest {
|
|
2563
2152
|
/** Fly App Name */
|
|
2564
2153
|
app_name: string;
|
|
@@ -2567,7 +2156,6 @@ export interface UpdateVolumeRequest {
|
|
|
2567
2156
|
auto_backup_enabled?: boolean;
|
|
2568
2157
|
snapshot_retention?: number;
|
|
2569
2158
|
}
|
|
2570
|
-
export declare const UpdateVolumeRequest: S.Schema<UpdateVolumeRequest>;
|
|
2571
2159
|
export interface UpsertMachineMetadataRequest {
|
|
2572
2160
|
/** Fly App Name */
|
|
2573
2161
|
app_name: string;
|
|
@@ -2578,10 +2166,8 @@ export interface UpsertMachineMetadataRequest {
|
|
|
2578
2166
|
updated_at?: string;
|
|
2579
2167
|
value?: string;
|
|
2580
2168
|
}
|
|
2581
|
-
export declare const UpsertMachineMetadataRequest: S.Schema<UpsertMachineMetadataRequest>;
|
|
2582
2169
|
export interface UpsertMachineMetadataResponse {
|
|
2583
2170
|
}
|
|
2584
|
-
export declare const UpsertMachineMetadataResponse: S.Schema<UpsertMachineMetadataResponse>;
|
|
2585
2171
|
export interface VerifySecretKeyRequest {
|
|
2586
2172
|
/** Fly App Name */
|
|
2587
2173
|
app_name: string;
|
|
@@ -2589,15 +2175,12 @@ export interface VerifySecretKeyRequest {
|
|
|
2589
2175
|
secret_name: string;
|
|
2590
2176
|
/** Minimum secrets version to return. Returned when setting a new secret */
|
|
2591
2177
|
min_version?: string;
|
|
2592
|
-
plaintext?: string
|
|
2178
|
+
plaintext?: string | Redacted.Redacted<string>;
|
|
2593
2179
|
signature?: string;
|
|
2594
2180
|
}
|
|
2595
|
-
export declare const VerifySecretKeyRequest: S.Schema<VerifySecretKeyRequest>;
|
|
2596
2181
|
export interface VerifySecretKeyResponse {
|
|
2597
2182
|
}
|
|
2598
|
-
export declare const VerifySecretKeyResponse: S.Schema<VerifySecretKeyResponse>;
|
|
2599
2183
|
export type WaitMachineRequestState = "started" | "stopped" | "suspended" | "destroyed" | "failed" | "settled";
|
|
2600
|
-
export declare const WaitMachineRequestState: any;
|
|
2601
2184
|
export interface WaitMachineRequest {
|
|
2602
2185
|
/** Fly App Name */
|
|
2603
2186
|
app_name: string;
|
|
@@ -2614,14 +2197,12 @@ export interface WaitMachineRequest {
|
|
|
2614
2197
|
/** desired state(s), supports repeated or comma-separated values */
|
|
2615
2198
|
state?: WaitMachineRequestState | (string & {});
|
|
2616
2199
|
}
|
|
2617
|
-
export declare const WaitMachineRequest: S.Schema<WaitMachineRequest>;
|
|
2618
2200
|
export interface WaitMachineResponse {
|
|
2619
2201
|
event_id?: string;
|
|
2620
2202
|
ok?: boolean;
|
|
2621
2203
|
state?: string;
|
|
2622
2204
|
version?: string;
|
|
2623
2205
|
}
|
|
2624
|
-
export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
|
|
2625
2206
|
export type AuthenticateTokenError = BadRequest | FlyIoOpError;
|
|
2626
2207
|
/** Authenticate token header Verify a token header without checking resource access. */
|
|
2627
2208
|
export declare const authenticateToken: API.OperationMethod<AuthenticateTokenRequest, AuthenticateTokenResponse, AuthenticateTokenError, FlyIoOpContext>;
|
|
@@ -2632,7 +2213,7 @@ export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIo
|
|
|
2632
2213
|
/** Check DNS and re-validate certificate */
|
|
2633
2214
|
export declare const checkAppCertificate: API.OperationMethod<CheckAppCertificateRequest, CertificateCheckResponse, CheckAppCertificateError, FlyIoOpContext>;
|
|
2634
2215
|
export type CordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2635
|
-
/** Cordon Machine
|
|
2216
|
+
/** 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. */
|
|
2636
2217
|
export declare const cordonMachine: API.OperationMethod<CordonMachineRequest, CordonMachineResponse, CordonMachineError, FlyIoOpContext>;
|
|
2637
2218
|
export type CreateAppError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
|
|
2638
2219
|
/** Create App Create an app with the specified details in the request body. */
|
|
@@ -2650,7 +2231,7 @@ export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Con
|
|
|
2650
2231
|
/** Assign new IP address to app */
|
|
2651
2232
|
export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, AssignIPResponse, CreateAppIPAssignmentError, FlyIoOpContext>;
|
|
2652
2233
|
export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2653
|
-
/** Create Machine Create a Machine within a specific app using the details provided in the request body. **Important**: This request can fail, and you
|
|
2234
|
+
/** 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! */
|
|
2654
2235
|
export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
|
|
2655
2236
|
export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2656
2237
|
/** 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. */
|
|
@@ -2896,7 +2477,7 @@ export type SuspendMachineError = BadRequest | Forbidden | NotFound | Conflict |
|
|
|
2896
2477
|
/** 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. */
|
|
2897
2478
|
export declare const suspendMachine: API.OperationMethod<SuspendMachineRequest, SuspendMachineResponse, SuspendMachineError, FlyIoOpContext>;
|
|
2898
2479
|
export type UncordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2899
|
-
/** Uncordon Machine
|
|
2480
|
+
/** 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. */
|
|
2900
2481
|
export declare const uncordonMachine: API.OperationMethod<UncordonMachineRequest, UncordonMachineResponse, UncordonMachineError, FlyIoOpContext>;
|
|
2901
2482
|
export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2902
2483
|
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|