@distilled.cloud/fly-io 1.0.0-rc.1 → 1.0.0-rc.11

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.
Files changed (57) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +24 -1
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +46 -8
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts +32 -0
  7. package/lib/errors.d.ts.map +1 -1
  8. package/lib/errors.js +35 -2
  9. package/lib/errors.js.map +1 -1
  10. package/lib/index.d.ts +27 -2
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +27 -2
  13. package/lib/index.js.map +1 -1
  14. package/lib/pagination.d.ts +5 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +5 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +49 -7
  19. package/lib/protocol.d.ts.map +1 -1
  20. package/lib/protocol.js +529 -29
  21. package/lib/protocol.js.map +1 -1
  22. package/lib/services/addons.d.ts +466 -0
  23. package/lib/services/addons.d.ts.map +1 -0
  24. package/lib/services/addons.js +613 -0
  25. package/lib/services/addons.js.map +1 -0
  26. package/lib/services/index.d.ts +3 -0
  27. package/lib/services/index.d.ts.map +1 -1
  28. package/lib/services/index.js +3 -0
  29. package/lib/services/index.js.map +1 -1
  30. package/lib/services/machines.d.ts +1689 -1162
  31. package/lib/services/machines.d.ts.map +1 -1
  32. package/lib/services/machines.js +1932 -1306
  33. package/lib/services/machines.js.map +1 -1
  34. package/lib/services/mpg.d.ts +376 -0
  35. package/lib/services/mpg.d.ts.map +1 -0
  36. package/lib/services/mpg.js +570 -0
  37. package/lib/services/mpg.js.map +1 -0
  38. package/lib/services/sprites.d.ts +321 -0
  39. package/lib/services/sprites.d.ts.map +1 -0
  40. package/lib/services/sprites.js +407 -0
  41. package/lib/services/sprites.js.map +1 -0
  42. package/lib/traits.d.ts +18 -8
  43. package/lib/traits.d.ts.map +1 -1
  44. package/lib/traits.js +13 -3
  45. package/lib/traits.js.map +1 -1
  46. package/package.json +39 -13
  47. package/src/credentials.ts +60 -8
  48. package/src/errors.ts +41 -2
  49. package/src/index.ts +32 -1
  50. package/src/pagination.ts +12 -0
  51. package/src/protocol.ts +747 -34
  52. package/src/services/addons.ts +1313 -0
  53. package/src/services/index.ts +3 -0
  54. package/src/services/machines.ts +4756 -3280
  55. package/src/services/mpg.ts +1188 -0
  56. package/src/services/sprites.ts +917 -0
  57. package/src/traits.ts +37 -3
@@ -1,14 +1,110 @@
1
1
  import * as S from "@distilled.cloud/core/schema";
2
2
  import * as API from "@distilled.cloud/core/api";
3
3
  import { type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
4
- import { BadRequest, Forbidden, NotFound, UnprocessableEntity } from "../errors.ts";
4
+ import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity } from "../errors.ts";
5
5
  export type { FlyIoOpError, FlyIoOpContext };
6
- export interface AppCertificatesAcmeCreateRequest {
6
+ export interface AuthenticateTokenRequest {
7
+ header?: string;
8
+ }
9
+ export declare const AuthenticateTokenRequest: S.Schema<AuthenticateTokenRequest>;
10
+ export type MacaroonCaveatSetCaveatsList = Array<unknown>;
11
+ export declare const MacaroonCaveatSetCaveatsList: S.Schema<MacaroonCaveatSetCaveatsList>;
12
+ export interface MacaroonCaveatSet {
13
+ caveats?: MacaroonCaveatSetCaveatsList;
14
+ }
15
+ export declare const MacaroonCaveatSet: S.Schema<MacaroonCaveatSet>;
16
+ export type MacaroonNonceKidList = Array<number>;
17
+ export declare const MacaroonNonceKidList: S.Schema<MacaroonNonceKidList>;
18
+ export type MacaroonNonceRndList = Array<number>;
19
+ export declare const MacaroonNonceRndList: S.Schema<MacaroonNonceRndList>;
20
+ export interface MacaroonNonce {
21
+ kid?: MacaroonNonceKidList;
22
+ proof?: boolean;
23
+ rnd?: MacaroonNonceRndList;
24
+ }
25
+ export declare const MacaroonNonce: S.Schema<MacaroonNonce>;
26
+ export type RootVerifiedTokenPermissionTokenList = Array<number>;
27
+ export declare const RootVerifiedTokenPermissionTokenList: S.Schema<RootVerifiedTokenPermissionTokenList>;
28
+ export interface RootVerifiedToken {
29
+ caveats?: MacaroonCaveatSet;
30
+ header?: string;
31
+ nonce?: MacaroonNonce;
32
+ permission_token?: RootVerifiedTokenPermissionTokenList;
33
+ }
34
+ export declare const RootVerifiedToken: S.Schema<RootVerifiedToken>;
35
+ export type AuthenticateTokenResponseBodyList = Array<RootVerifiedToken>;
36
+ export declare const AuthenticateTokenResponseBodyList: S.Schema<AuthenticateTokenResponseBodyList>;
37
+ export type AuthenticateTokenResponse = AuthenticateTokenResponseBodyList;
38
+ export declare const AuthenticateTokenResponse: S.Schema<AuthenticateTokenResponse>;
39
+ export type RessetAction = 1 | 2 | 4 | 8 | 16 | 31 | 0;
40
+ export declare const RessetAction: any;
41
+ /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
42
+ export type MainTokenAccessCommandList = Array<string>;
43
+ export declare const MainTokenAccessCommandList: S.Schema<MainTokenAccessCommandList>;
44
+ export interface MainTokenAccess {
45
+ /** 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 */
46
+ action?: RessetAction | (number & {});
47
+ /** AppFeature is a named set of functionality associated with the app. If this is specified, the AppName field must be set. - images: images in the fly.io registry */
48
+ app_feature?: string;
49
+ /** AppName is the name of the app being accessed. */
50
+ app_name?: string;
51
+ /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
52
+ command?: MainTokenAccessCommandList;
53
+ /** MachineFeature is a named set of functionality associated with the machine. If this is specified, the Machine field must be set. - metadata: machine metadata service - oidc: OIDC tokens - kmstoken: Petsem tokens for KMS access */
54
+ machine_feature?: string;
55
+ /** MachineID is the ID of the machine being accessed (e.g. 7811701f564258). */
56
+ machine_id?: string;
57
+ /** Mutation is the GraphQL mutation being performed. */
58
+ mutation?: string;
59
+ /** OrgFeature is a named set of functionality associated with the organization. If this is specified, the OrgSlug field must be set. - wg: WireGuard peers - builder: remote builders - addon: addons - membership: organization membership - billing: billing - litefs-cloud: LiteFS Cloud - authentication: authentication settings */
60
+ org_feature?: string;
61
+ /** OrgSlug is the slug of the organization being accessed. */
62
+ org_slug?: string;
63
+ /** SourceMachine is the machine ID of the actor attempting access. */
64
+ source_machine?: string;
65
+ /** StorageObject is the storage object being accessed. If this is specified, the OrgSlug must be set. */
66
+ storage_object?: string;
67
+ /** VolumeID is the encoded ID of the volume being accessed (e.g. vol_r1p6pln1k9m9j7zr). */
68
+ volume_id?: string;
69
+ }
70
+ export declare const MainTokenAccess: S.Schema<MainTokenAccess>;
71
+ export interface AuthorizeTokenRequest {
72
+ access?: MainTokenAccess;
73
+ header?: string;
74
+ }
75
+ export declare const AuthorizeTokenRequest: S.Schema<AuthorizeTokenRequest>;
76
+ export type FlyioAccessCommandList = Array<string>;
77
+ export declare const FlyioAccessCommandList: S.Schema<FlyioAccessCommandList>;
78
+ export interface FlyioAccess {
79
+ action?: RessetAction;
80
+ app_feature?: string;
81
+ appid?: number;
82
+ cluster?: string;
83
+ command?: FlyioAccessCommandList;
84
+ feature?: string;
85
+ machine?: string;
86
+ machine_feature?: string;
87
+ mutation?: string;
88
+ orgid?: number;
89
+ sourceApp?: string;
90
+ sourceMachine?: string;
91
+ sourceOrganization?: string;
92
+ storage_object?: string;
93
+ volume?: string;
94
+ }
95
+ export declare const FlyioAccess: S.Schema<FlyioAccess>;
96
+ export interface AuthorizeResponse {
97
+ access?: FlyioAccess;
98
+ verified_token?: RootVerifiedToken;
99
+ }
100
+ export declare const AuthorizeResponse: S.Schema<AuthorizeResponse>;
101
+ export interface CheckAppCertificateRequest {
7
102
  /** Fly App Name */
8
103
  app_name: string;
9
- hostname?: string;
104
+ /** Certificate Hostname */
105
+ hostname: string;
10
106
  }
11
- export declare const AppCertificatesAcmeCreateRequest: S.Schema<AppCertificatesAcmeCreateRequest>;
107
+ export declare const CheckAppCertificateRequest: S.Schema<CheckAppCertificateRequest>;
12
108
  export type IssuedCertificateType = "rsa" | "ecdsa";
13
109
  export declare const IssuedCertificateType: any;
14
110
  export interface IssuedCertificate {
@@ -32,8 +128,26 @@ export interface CertificateEntry {
32
128
  status?: CertificateEntryStatus;
33
129
  }
34
130
  export declare const CertificateEntry: S.Schema<CertificateEntry>;
35
- export type CertificateDetailCertificatesList = Array<CertificateEntry>;
36
- export declare const CertificateDetailCertificatesList: S.Schema<CertificateDetailCertificatesList>;
131
+ export type CertificateCheckResponseCertificatesList = Array<CertificateEntry>;
132
+ export declare const CertificateCheckResponseCertificatesList: S.Schema<CertificateCheckResponseCertificatesList>;
133
+ export type DNSRecordsAList = Array<string>;
134
+ export declare const DNSRecordsAList: S.Schema<DNSRecordsAList>;
135
+ export type DNSRecordsAaaaList = Array<string>;
136
+ export declare const DNSRecordsAaaaList: S.Schema<DNSRecordsAaaaList>;
137
+ export type DNSRecordsCnameList = Array<string>;
138
+ export declare const DNSRecordsCnameList: S.Schema<DNSRecordsCnameList>;
139
+ export type DNSRecordsResolvedAddressesList = Array<string>;
140
+ export declare const DNSRecordsResolvedAddressesList: S.Schema<DNSRecordsResolvedAddressesList>;
141
+ export interface DNSRecords {
142
+ a?: DNSRecordsAList;
143
+ aaaa?: DNSRecordsAaaaList;
144
+ acme_challenge_cname?: string;
145
+ cname?: DNSRecordsCnameList;
146
+ ownership_txt?: string;
147
+ resolved_addresses?: DNSRecordsResolvedAddressesList;
148
+ soa?: string;
149
+ }
150
+ export declare const DNSRecords: S.Schema<DNSRecords>;
37
151
  export type DNSRequirementsAList = Array<string>;
38
152
  export declare const DNSRequirementsAList: S.Schema<DNSRequirementsAList>;
39
153
  export type DNSRequirementsAaaaList = Array<string>;
@@ -71,55 +185,6 @@ export interface CertificateValidationError {
71
185
  timestamp?: string;
72
186
  }
73
187
  export declare const CertificateValidationError: S.Schema<CertificateValidationError>;
74
- export type CertificateDetailValidationErrorsList = Array<CertificateValidationError>;
75
- export declare const CertificateDetailValidationErrorsList: S.Schema<CertificateDetailValidationErrorsList>;
76
- export interface CertificateDetail {
77
- acme_requested?: boolean;
78
- certificates?: CertificateDetailCertificatesList;
79
- configured?: boolean;
80
- dns_provider?: string;
81
- dns_requirements?: DNSRequirements;
82
- hostname?: string;
83
- rate_limited_until?: string;
84
- status?: string;
85
- validation?: CertificateValidation;
86
- validation_errors?: CertificateDetailValidationErrorsList;
87
- }
88
- export declare const CertificateDetail: S.Schema<CertificateDetail>;
89
- export interface AppCertificatesAcmeDeleteRequest {
90
- /** Fly App Name */
91
- app_name: string;
92
- /** Certificate Hostname */
93
- hostname: string;
94
- }
95
- export declare const AppCertificatesAcmeDeleteRequest: S.Schema<AppCertificatesAcmeDeleteRequest>;
96
- export interface AppCertificatesCheckRequest {
97
- /** Fly App Name */
98
- app_name: string;
99
- /** Certificate Hostname */
100
- hostname: string;
101
- }
102
- export declare const AppCertificatesCheckRequest: S.Schema<AppCertificatesCheckRequest>;
103
- export type CertificateCheckResponseCertificatesList = Array<CertificateEntry>;
104
- export declare const CertificateCheckResponseCertificatesList: S.Schema<CertificateCheckResponseCertificatesList>;
105
- export type DNSRecordsAList = Array<string>;
106
- export declare const DNSRecordsAList: S.Schema<DNSRecordsAList>;
107
- export type DNSRecordsAaaaList = Array<string>;
108
- export declare const DNSRecordsAaaaList: S.Schema<DNSRecordsAaaaList>;
109
- export type DNSRecordsCnameList = Array<string>;
110
- export declare const DNSRecordsCnameList: S.Schema<DNSRecordsCnameList>;
111
- export type DNSRecordsResolvedAddressesList = Array<string>;
112
- export declare const DNSRecordsResolvedAddressesList: S.Schema<DNSRecordsResolvedAddressesList>;
113
- export interface DNSRecords {
114
- a?: DNSRecordsAList;
115
- aaaa?: DNSRecordsAaaaList;
116
- acme_challenge_cname?: string;
117
- cname?: DNSRecordsCnameList;
118
- ownership_txt?: string;
119
- resolved_addresses?: DNSRecordsResolvedAddressesList;
120
- soa?: string;
121
- }
122
- export declare const DNSRecords: S.Schema<DNSRecords>;
123
188
  export type CertificateCheckResponseValidationErrorsList = Array<CertificateValidationError>;
124
189
  export declare const CertificateCheckResponseValidationErrorsList: S.Schema<CertificateCheckResponseValidationErrorsList>;
125
190
  export interface CertificateCheckResponse {
@@ -136,28 +201,39 @@ export interface CertificateCheckResponse {
136
201
  validation_errors?: CertificateCheckResponseValidationErrorsList;
137
202
  }
138
203
  export declare const CertificateCheckResponse: S.Schema<CertificateCheckResponse>;
139
- export interface AppCertificatesCustomCreateRequest {
204
+ export interface CordonMachineRequest {
140
205
  /** Fly App Name */
141
206
  app_name: string;
142
- fullchain?: string;
143
- hostname?: string;
144
- private_key?: string;
207
+ /** Machine ID */
208
+ machine_id: string;
209
+ }
210
+ export declare const CordonMachineRequest: S.Schema<CordonMachineRequest>;
211
+ export interface CordonMachineResponse {
212
+ }
213
+ export declare const CordonMachineResponse: S.Schema<CordonMachineResponse>;
214
+ export interface CreateAppRequest {
215
+ enable_subdomains?: boolean;
216
+ name?: string;
217
+ network?: string;
218
+ org_slug?: string;
145
219
  }
146
- export declare const AppCertificatesCustomCreateRequest: S.Schema<AppCertificatesCustomCreateRequest>;
147
- export interface AppCertificatesCustomDeleteRequest {
220
+ export declare const CreateAppRequest: S.Schema<CreateAppRequest>;
221
+ export interface CreateAppResponse {
222
+ }
223
+ export declare const CreateAppResponse: S.Schema<CreateAppResponse>;
224
+ export interface CreateAppAcmeCertificateRequest {
148
225
  /** Fly App Name */
149
226
  app_name: string;
150
- /** Certificate Hostname */
151
- hostname: string;
227
+ hostname?: string;
152
228
  }
153
- export declare const AppCertificatesCustomDeleteRequest: S.Schema<AppCertificatesCustomDeleteRequest>;
154
- export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
155
- export declare const DestroyCustomCertificateResponseCertificatesList: S.Schema<DestroyCustomCertificateResponseCertificatesList>;
156
- export type DestroyCustomCertificateResponseValidationErrorsList = Array<CertificateValidationError>;
157
- export declare const DestroyCustomCertificateResponseValidationErrorsList: S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
158
- export interface DestroyCustomCertificateResponse {
229
+ export declare const CreateAppAcmeCertificateRequest: S.Schema<CreateAppAcmeCertificateRequest>;
230
+ export type CertificateDetailCertificatesList = Array<CertificateEntry>;
231
+ export declare const CertificateDetailCertificatesList: S.Schema<CertificateDetailCertificatesList>;
232
+ export type CertificateDetailValidationErrorsList = Array<CertificateValidationError>;
233
+ export declare const CertificateDetailValidationErrorsList: S.Schema<CertificateDetailValidationErrorsList>;
234
+ export interface CertificateDetail {
159
235
  acme_requested?: boolean;
160
- certificates?: DestroyCustomCertificateResponseCertificatesList;
236
+ certificates?: CertificateDetailCertificatesList;
161
237
  configured?: boolean;
162
238
  dns_provider?: string;
163
239
  dns_requirements?: DNSRequirements;
@@ -165,222 +241,69 @@ export interface DestroyCustomCertificateResponse {
165
241
  rate_limited_until?: string;
166
242
  status?: string;
167
243
  validation?: CertificateValidation;
168
- validation_errors?: DestroyCustomCertificateResponseValidationErrorsList;
169
- warning?: string;
170
- }
171
- export declare const DestroyCustomCertificateResponse: S.Schema<DestroyCustomCertificateResponse>;
172
- export interface AppCertificatesDeleteRequest {
173
- /** Fly App Name */
174
- app_name: string;
175
- /** Certificate Hostname */
176
- hostname: string;
177
- }
178
- export declare const AppCertificatesDeleteRequest: S.Schema<AppCertificatesDeleteRequest>;
179
- export interface AppCertificatesDeleteResponse {
244
+ validation_errors?: CertificateDetailValidationErrorsList;
180
245
  }
181
- export declare const AppCertificatesDeleteResponse: S.Schema<AppCertificatesDeleteResponse>;
182
- export interface AppCertificatesListRequest {
246
+ export declare const CertificateDetail: S.Schema<CertificateDetail>;
247
+ export interface CreateAppCustomCertificateRequest {
183
248
  /** Fly App Name */
184
249
  app_name: string;
185
- /** Hostname filter (substring match) */
186
- filter?: string;
187
- /** Pagination cursor from previous response */
188
- cursor?: string;
189
- /** Number of results per page (default 25, max 500) */
190
- limit?: number;
191
- }
192
- export declare const AppCertificatesListRequest: S.Schema<AppCertificatesListRequest>;
193
- export interface CertificateSummary {
194
- acme_alpn_configured?: boolean;
195
- acme_dns_configured?: boolean;
196
- acme_http_configured?: boolean;
197
- acme_requested?: boolean;
198
- configured?: boolean;
199
- created_at?: string;
200
- dns_provider?: string;
201
- has_custom_certificate?: boolean;
202
- has_fly_certificate?: boolean;
250
+ fullchain?: string;
203
251
  hostname?: string;
204
- ownership_txt_configured?: boolean;
205
- status?: string;
206
- updated_at?: string;
207
- }
208
- export declare const CertificateSummary: S.Schema<CertificateSummary>;
209
- export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
210
- export declare const ListCertificatesResponseCertificatesList: S.Schema<ListCertificatesResponseCertificatesList>;
211
- export interface ListCertificatesResponse {
212
- certificates?: ListCertificatesResponseCertificatesList;
213
- next_cursor?: string;
214
- total_count?: number;
215
- }
216
- export declare const ListCertificatesResponse: S.Schema<ListCertificatesResponse>;
217
- export interface AppCertificatesShowRequest {
218
- /** Fly App Name */
219
- app_name: string;
220
- /** Certificate Hostname */
221
- hostname: string;
252
+ private_key?: string;
222
253
  }
223
- export declare const AppCertificatesShowRequest: S.Schema<AppCertificatesShowRequest>;
224
- export interface AppCreateDeployTokenRequest {
254
+ export declare const CreateAppCustomCertificateRequest: S.Schema<CreateAppCustomCertificateRequest>;
255
+ export interface CreateAppDeployTokenRequest {
225
256
  /** Fly App Name */
226
257
  app_name: string;
227
258
  expiry?: string;
228
259
  }
229
- export declare const AppCreateDeployTokenRequest: S.Schema<AppCreateDeployTokenRequest>;
230
- export interface CreateAppResponse {
260
+ export declare const CreateAppDeployTokenRequest: S.Schema<CreateAppDeployTokenRequest>;
261
+ export interface CreateAppDeployTokenResponse {
231
262
  token?: string;
232
263
  }
233
- export declare const CreateAppResponse: S.Schema<CreateAppResponse>;
234
- export interface AppIPAssignmentsCreateRequest {
264
+ export declare const CreateAppDeployTokenResponse: S.Schema<CreateAppDeployTokenResponse>;
265
+ /** Type of IP address to allocate. "egress-pair" allocates both v4 and v6 egress IP addresses (recommended when using egress IPs). */
266
+ export type IPAssignmentType = "v4" | "v6" | "shared_v4" | "private_v6" | "egress_v4" | "egress_v6" | "egress_pair";
267
+ export declare const IPAssignmentType: any;
268
+ export interface CreateAppIPAssignmentRequest {
235
269
  /** Fly App Name */
236
270
  app_name: string;
237
271
  network?: string;
238
272
  org_slug?: string;
239
273
  region?: string;
240
274
  service_name?: string;
241
- type?: string;
275
+ type?: IPAssignmentType | (string & {});
242
276
  }
243
- export declare const AppIPAssignmentsCreateRequest: S.Schema<AppIPAssignmentsCreateRequest>;
244
- export interface IPAssignment {
277
+ export declare const CreateAppIPAssignmentRequest: S.Schema<CreateAppIPAssignmentRequest>;
278
+ export interface IPPair {
279
+ v4?: string;
280
+ v6?: string;
281
+ }
282
+ export declare const IPPair: S.Schema<IPPair>;
283
+ export interface AssignIPResponse {
245
284
  created_at?: string;
285
+ egress?: boolean;
246
286
  ip?: string;
287
+ /** ip_pair is returned when "egress-pair" IP type is requested; in this case, ip is null. */
288
+ ip_pair?: IPPair;
247
289
  region?: string;
248
290
  service_name?: string;
249
291
  shared?: boolean;
250
292
  }
251
- export declare const IPAssignment: S.Schema<IPAssignment>;
252
- export interface AppIPAssignmentsDeleteRequest {
253
- /** Fly App Name */
254
- app_name: string;
255
- /** IP address */
256
- ip: string;
293
+ export declare const AssignIPResponse: S.Schema<AssignIPResponse>;
294
+ export interface FlyMachineCacheDrive {
295
+ size_mb?: number;
257
296
  }
258
- export declare const AppIPAssignmentsDeleteRequest: S.Schema<AppIPAssignmentsDeleteRequest>;
259
- export interface AppIPAssignmentsDeleteResponse {
260
- }
261
- export declare const AppIPAssignmentsDeleteResponse: S.Schema<AppIPAssignmentsDeleteResponse>;
262
- export interface AppIPAssignmentsListRequest {
263
- /** Fly App Name */
264
- app_name: string;
265
- }
266
- export declare const AppIPAssignmentsListRequest: S.Schema<AppIPAssignmentsListRequest>;
267
- export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
268
- export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
269
- export interface ListIPAssignmentsResponse {
270
- ips?: ListIPAssignmentsResponseIpsList;
271
- }
272
- export declare const ListIPAssignmentsResponse: S.Schema<ListIPAssignmentsResponse>;
273
- export interface AppsCreateRequest {
274
- enable_subdomains?: boolean;
275
- name?: string;
276
- network?: string;
277
- org_slug?: string;
278
- }
279
- export declare const AppsCreateRequest: S.Schema<AppsCreateRequest>;
280
- export interface AppsCreateResponse {
281
- }
282
- export declare const AppsCreateResponse: S.Schema<AppsCreateResponse>;
283
- export interface AppsDeleteRequest {
284
- /** Fly App Name */
285
- app_name: string;
286
- }
287
- export declare const AppsDeleteRequest: S.Schema<AppsDeleteRequest>;
288
- export interface AppsDeleteResponse {
289
- }
290
- export declare const AppsDeleteResponse: S.Schema<AppsDeleteResponse>;
291
- export interface AppsListRequest {
292
- /** The org slug, or 'personal', to filter apps */
293
- org_slug: string;
294
- /** Filter apps by role */
295
- app_role?: string;
296
- }
297
- export declare const AppsListRequest: S.Schema<AppsListRequest>;
298
- export interface AppOrganizationInfo {
299
- internal_numeric_id?: number;
300
- name?: string;
301
- slug?: string;
302
- }
303
- export declare const AppOrganizationInfo: S.Schema<AppOrganizationInfo>;
304
- export interface App {
305
- id?: string;
306
- internal_numeric_id?: number;
307
- machine_count?: number;
308
- name?: string;
309
- network?: string;
310
- organization?: AppOrganizationInfo;
311
- status?: string;
312
- volume_count?: number;
313
- }
314
- export declare const App: S.Schema<App>;
315
- export type ListAppsResponseAppsList = Array<App>;
316
- export declare const ListAppsResponseAppsList: S.Schema<ListAppsResponseAppsList>;
317
- export interface ListAppsResponse {
318
- apps?: ListAppsResponseAppsList;
319
- total_apps?: number;
320
- }
321
- export declare const ListAppsResponse: S.Schema<ListAppsResponse>;
322
- export interface AppsShowRequest {
323
- /** Fly App Name */
324
- app_name: string;
325
- }
326
- export declare const AppsShowRequest: S.Schema<AppsShowRequest>;
327
- export interface CreateVolumeSnapshotRequest {
328
- /** Fly App Name */
329
- app_name: string;
330
- /** Volume ID */
331
- volume_id: string;
332
- }
333
- export declare const CreateVolumeSnapshotRequest: S.Schema<CreateVolumeSnapshotRequest>;
334
- export interface CreateVolumeSnapshotResponse {
335
- }
336
- export declare const CreateVolumeSnapshotResponse: S.Schema<CreateVolumeSnapshotResponse>;
337
- export interface CurrentTokenShowRequest {
338
- }
339
- export declare const CurrentTokenShowRequest: S.Schema<CurrentTokenShowRequest>;
340
- export type MainTokenInfoAppsList = Array<string>;
341
- export declare const MainTokenInfoAppsList: S.Schema<MainTokenInfoAppsList>;
342
- export interface MainTokenInfo {
343
- apps?: MainTokenInfoAppsList;
344
- org_slug?: string;
345
- organization?: string;
346
- /** Machine the token is restricted to (FromMachine caveat) */
347
- restricted_to_machine?: string;
348
- /** Machine making the request */
349
- source_machine_id?: string;
350
- token_id?: string;
351
- /** User identifier if token is for a user */
352
- user?: string;
353
- }
354
- export declare const MainTokenInfo: S.Schema<MainTokenInfo>;
355
- export type CurrentTokenResponseTokensList = Array<MainTokenInfo>;
356
- export declare const CurrentTokenResponseTokensList: S.Schema<CurrentTokenResponseTokensList>;
357
- export interface CurrentTokenResponse {
358
- tokens?: CurrentTokenResponseTokensList;
359
- }
360
- export declare const CurrentTokenResponse: S.Schema<CurrentTokenResponse>;
361
- export interface MachinesCordonRequest {
362
- /** Fly App Name */
363
- app_name: string;
364
- /** Machine ID */
365
- machine_id: string;
366
- }
367
- export declare const MachinesCordonRequest: S.Schema<MachinesCordonRequest>;
368
- export interface MachinesCordonResponse {
369
- }
370
- export declare const MachinesCordonResponse: S.Schema<MachinesCordonResponse>;
371
- export interface FlyMachineCacheDrive {
372
- size_mb?: number;
373
- }
374
- export declare const FlyMachineCacheDrive: S.Schema<FlyMachineCacheDrive>;
375
- /** The header value */
376
- export type FlyMachineHTTPHeaderValuesList = Array<string>;
377
- export declare const FlyMachineHTTPHeaderValuesList: S.Schema<FlyMachineHTTPHeaderValuesList>;
378
- /** 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. */
379
- export interface FlyMachineHTTPHeader {
380
- /** The header name */
381
- name?: string;
382
- /** The header value */
383
- values?: FlyMachineHTTPHeaderValuesList;
297
+ export declare const FlyMachineCacheDrive: S.Schema<FlyMachineCacheDrive>;
298
+ /** The header value */
299
+ export type FlyMachineHTTPHeaderValuesList = Array<string>;
300
+ export declare const FlyMachineHTTPHeaderValuesList: S.Schema<FlyMachineHTTPHeaderValuesList>;
301
+ /** 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. */
302
+ export interface FlyMachineHTTPHeader {
303
+ /** The header name */
304
+ name?: string;
305
+ /** The header value */
306
+ values?: FlyMachineHTTPHeaderValuesList;
384
307
  }
385
308
  export declare const FlyMachineHTTPHeader: S.Schema<FlyMachineHTTPHeader>;
386
309
  export type FlyMachineCheckHeadersList = Array<FlyMachineHTTPHeader>;
@@ -904,7 +827,7 @@ export interface FlyMachineConfig {
904
827
  stop_config?: FlyStopConfig;
905
828
  }
906
829
  export declare const FlyMachineConfig: S.Schema<FlyMachineConfig>;
907
- export interface MachinesCreateRequest {
830
+ export interface CreateMachineRequest {
908
831
  /** Fly App Name */
909
832
  app_name: string;
910
833
  /** An object defining the Machine configuration */
@@ -919,7 +842,7 @@ export interface MachinesCreateRequest {
919
842
  skip_secrets?: boolean;
920
843
  skip_service_registration?: boolean;
921
844
  }
922
- export declare const MachinesCreateRequest: S.Schema<MachinesCreateRequest>;
845
+ export declare const CreateMachineRequest: S.Schema<CreateMachineRequest>;
923
846
  export interface CheckStatus {
924
847
  name?: string;
925
848
  output?: string;
@@ -954,9 +877,16 @@ export interface ImageRef {
954
877
  tag?: string;
955
878
  }
956
879
  export declare const ImageRef: S.Schema<ImageRef>;
880
+ export interface StrippedLease {
881
+ description?: string;
882
+ expires_at?: number;
883
+ owner?: string;
884
+ }
885
+ export declare const StrippedLease: S.Schema<StrippedLease>;
957
886
  export interface Machine {
958
887
  checks?: MachineChecksList;
959
888
  config?: FlyMachineConfig;
889
+ cordoned?: boolean;
960
890
  created_at?: string;
961
891
  events?: MachineEventsList;
962
892
  host_status?: MachineHostStatus;
@@ -965,6 +895,7 @@ export interface Machine {
965
895
  incomplete_config?: FlyMachineConfig;
966
896
  /** InstanceID is unique for each version of the machine */
967
897
  instance_id?: string;
898
+ lease?: StrippedLease;
968
899
  name?: string;
969
900
  /** Nonce is only every returned on machine creation if a lease_duration was provided. */
970
901
  nonce?: string;
@@ -975,7 +906,7 @@ export interface Machine {
975
906
  updated_at?: string;
976
907
  }
977
908
  export declare const Machine: S.Schema<Machine>;
978
- export interface MachinesCreateLeaseRequest {
909
+ export interface CreateMachineLeaseRequest {
979
910
  /** Fly App Name */
980
911
  app_name: string;
981
912
  /** Machine ID */
@@ -984,7 +915,7 @@ export interface MachinesCreateLeaseRequest {
984
915
  /** seconds lease will be valid */
985
916
  ttl?: number;
986
917
  }
987
- export declare const MachinesCreateLeaseRequest: S.Schema<MachinesCreateLeaseRequest>;
918
+ export declare const CreateMachineLeaseRequest: S.Schema<CreateMachineLeaseRequest>;
988
919
  export interface Lease {
989
920
  /** Description or reason for the Lease. */
990
921
  description?: string;
@@ -998,438 +929,662 @@ export interface Lease {
998
929
  version?: string;
999
930
  }
1000
931
  export declare const Lease: S.Schema<Lease>;
1001
- export interface MachinesDeleteRequest {
1002
- /** Fly App Name */
932
+ /** Postgres major version. */
933
+ export type CreatePostgresRequestPgMajorVersion = "16" | "17";
934
+ export declare const CreatePostgresRequestPgMajorVersion: any;
935
+ /** Plan slug selecting CPU, memory, and disk sizing. */
936
+ export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
937
+ export declare const CreatePostgresRequestPlan: any;
938
+ /** Connection pooler mode. */
939
+ export type CreatePostgresRequestPoolMode = "session" | "transaction";
940
+ export declare const CreatePostgresRequestPoolMode: any;
941
+ export interface CreatePostgresRequest {
942
+ /** Disk size in gigabytes. */
943
+ disk_size_gb?: number;
944
+ /** Name for the cluster. A name is generated when omitted. */
945
+ name?: string;
946
+ /** Slug of the organization that will own the cluster. */
947
+ org_slug: string;
948
+ /** Postgres major version. */
949
+ pg_major_version?: CreatePostgresRequestPgMajorVersion | (string & {});
950
+ /** Plan slug selecting CPU, memory, and disk sizing. */
951
+ plan: CreatePostgresRequestPlan | (string & {});
952
+ /** Connection pooler mode. */
953
+ pool_mode?: CreatePostgresRequestPoolMode | (string & {});
954
+ /** Enable PostGIS support, required to later enable PostGIS extensions. */
955
+ postgis_enabled?: boolean;
956
+ /** Fly region code where the cluster's primary runs. */
957
+ region: string;
958
+ }
959
+ export declare const CreatePostgresRequest: S.Schema<CreatePostgresRequest>;
960
+ export interface PostgresAttachedApp {
961
+ /** Attached Fly app name. */
962
+ name?: string;
963
+ }
964
+ export declare const PostgresAttachedApp: S.Schema<PostgresAttachedApp>;
965
+ /** Apps attached to the cluster. */
966
+ export type PostgresClusterAttachedAppsList = Array<PostgresAttachedApp>;
967
+ export declare const PostgresClusterAttachedAppsList: S.Schema<PostgresClusterAttachedAppsList>;
968
+ /** CPU class. */
969
+ export type PostgresClusterCpuKind = "shared" | "performance";
970
+ export declare const PostgresClusterCpuKind: any;
971
+ export interface PostgresEndpoint {
972
+ /** Hostname to connect to. */
973
+ host?: string;
974
+ /** TCP port. */
975
+ port?: number;
976
+ }
977
+ export declare const PostgresEndpoint: S.Schema<PostgresEndpoint>;
978
+ export interface PostgresNodeEndpoints {
979
+ /** Unpooled connection to the cluster node. */
980
+ direct?: PostgresEndpoint;
981
+ /** Pooled connection to the cluster node (through PgBouncer). */
982
+ pooler?: PostgresEndpoint;
983
+ }
984
+ export declare const PostgresNodeEndpoints: S.Schema<PostgresNodeEndpoints>;
985
+ export interface PostgresClusterEndpoints {
986
+ /** Endpoints for connecting to the primary node. */
987
+ primary?: PostgresNodeEndpoints;
988
+ }
989
+ export declare const PostgresClusterEndpoints: S.Schema<PostgresClusterEndpoints>;
990
+ export interface OrganizationRef {
991
+ /** Organization name. */
992
+ name?: string;
993
+ /** Organization slug. */
994
+ slug?: string;
995
+ }
996
+ export declare const OrganizationRef: S.Schema<OrganizationRef>;
997
+ /** Postgres major version. */
998
+ export type PostgresClusterPgMajorVersion = "16" | "17";
999
+ export declare const PostgresClusterPgMajorVersion: any;
1000
+ /** Plan slug. */
1001
+ export type PostgresClusterPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
1002
+ export declare const PostgresClusterPlan: any;
1003
+ /** Current lifecycle status. */
1004
+ export type PostgresClusterStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
1005
+ export declare const PostgresClusterStatus: any;
1006
+ export interface PostgresCluster {
1007
+ /** Apps attached to the cluster. */
1008
+ attached_apps?: PostgresClusterAttachedAppsList;
1009
+ /** CPU class. */
1010
+ cpu_kind?: PostgresClusterCpuKind;
1011
+ /** vCPUs per node. */
1012
+ cpus?: number;
1013
+ /** RFC 3339 creation timestamp. */
1014
+ created_at?: string;
1015
+ /** Disk size in gigabytes. */
1016
+ disk_size_gb?: number;
1017
+ /** Connection endpoints. Populated once the cluster is ready. */
1018
+ endpoints?: PostgresClusterEndpoints;
1019
+ /** Cluster ID. */
1020
+ id?: string;
1021
+ /** Memory per node in megabytes. */
1022
+ memory_mb?: number;
1023
+ /** Cluster name. */
1024
+ name?: string;
1025
+ organization?: OrganizationRef;
1026
+ /** Postgres major version. */
1027
+ pg_major_version?: PostgresClusterPgMajorVersion;
1028
+ /** Plan slug. */
1029
+ plan?: PostgresClusterPlan;
1030
+ /** Whether PostGIS support is enabled. */
1031
+ postgis_enabled?: boolean;
1032
+ /** Fly region code. */
1033
+ region?: string;
1034
+ /** Number of replicas. */
1035
+ replicas?: number;
1036
+ /** Current lifecycle status. */
1037
+ status?: PostgresClusterStatus;
1038
+ }
1039
+ export declare const PostgresCluster: S.Schema<PostgresCluster>;
1040
+ export interface ShowPostgresClusterResponse {
1041
+ data?: PostgresCluster;
1042
+ }
1043
+ export declare const ShowPostgresClusterResponse: S.Schema<ShowPostgresClusterResponse>;
1044
+ export interface CreatePostgresAttachmentRequest {
1045
+ /** Managed Postgres Cluster ID */
1046
+ postgres_cluster_id: string;
1047
+ /** Name of the Fly app to attach. */
1003
1048
  app_name: string;
1004
- /** Machine ID */
1005
- machine_id: string;
1006
- /** Force kill the machine if it's running */
1007
- force?: boolean;
1008
1049
  }
1009
- export declare const MachinesDeleteRequest: S.Schema<MachinesDeleteRequest>;
1010
- export interface MachinesDeleteResponse {
1050
+ export declare const CreatePostgresAttachmentRequest: S.Schema<CreatePostgresAttachmentRequest>;
1051
+ export interface PostgresAttachment {
1052
+ /** Attached Fly app name. */
1053
+ app_name?: string;
1054
+ /** RFC 3339 timestamp when the attachment was created. */
1055
+ attached_at?: string;
1056
+ /** Cluster ID the app is attached to. */
1057
+ postgres_cluster_id?: string;
1058
+ }
1059
+ export declare const PostgresAttachment: S.Schema<PostgresAttachment>;
1060
+ export interface CreatePostgresAttachmentResponse {
1061
+ data?: PostgresAttachment;
1062
+ }
1063
+ export declare const CreatePostgresAttachmentResponse: S.Schema<CreatePostgresAttachmentResponse>;
1064
+ /** Backup type. */
1065
+ export type CreatePostgresBackupRequestType = "full" | "incr" | "diff";
1066
+ export declare const CreatePostgresBackupRequestType: any;
1067
+ export interface CreatePostgresBackupRequest {
1068
+ /** Managed Postgres Cluster ID */
1069
+ postgres_cluster_id: string;
1070
+ /** Backup type. */
1071
+ type: CreatePostgresBackupRequestType | (string & {});
1072
+ }
1073
+ export declare const CreatePostgresBackupRequest: S.Schema<CreatePostgresBackupRequest>;
1074
+ export interface CreatePostgresBackupResponse {
1075
+ }
1076
+ export declare const CreatePostgresBackupResponse: S.Schema<CreatePostgresBackupResponse>;
1077
+ export interface CreatePostgresDatabaseRequest {
1078
+ /** Managed Postgres Cluster ID */
1079
+ postgres_cluster_id: string;
1080
+ /** Name of the database to create. */
1081
+ name: string;
1082
+ }
1083
+ export declare const CreatePostgresDatabaseRequest: S.Schema<CreatePostgresDatabaseRequest>;
1084
+ export interface PostgresDatabase {
1085
+ /** Database name. */
1086
+ name?: string;
1011
1087
  }
1012
- export declare const MachinesDeleteResponse: S.Schema<MachinesDeleteResponse>;
1013
- export interface MachinesDeleteMetadataRequest {
1088
+ export declare const PostgresDatabase: S.Schema<PostgresDatabase>;
1089
+ export interface PostgresDatabaseResponse {
1090
+ data?: PostgresDatabase;
1091
+ }
1092
+ export declare const PostgresDatabaseResponse: S.Schema<PostgresDatabaseResponse>;
1093
+ /** Role to grant the user. */
1094
+ export type CreatePostgresUserRequestRole = "schema_admin" | "writer" | "reader";
1095
+ export declare const CreatePostgresUserRequestRole: any;
1096
+ export interface CreatePostgresUserRequest {
1097
+ /** Managed Postgres Cluster ID */
1098
+ postgres_cluster_id: string;
1099
+ /** Role to grant the user. */
1100
+ role: CreatePostgresUserRequestRole | (string & {});
1101
+ /** Name for the new user. */
1102
+ username: string;
1103
+ }
1104
+ export declare const CreatePostgresUserRequest: S.Schema<CreatePostgresUserRequest>;
1105
+ /** User role. */
1106
+ export type PostgresUserRole = "schema_admin" | "writer" | "reader";
1107
+ export declare const PostgresUserRole: any;
1108
+ export interface PostgresUser {
1109
+ /** User role. */
1110
+ role?: PostgresUserRole;
1111
+ /** User name. */
1112
+ username?: string;
1113
+ }
1114
+ export declare const PostgresUser: S.Schema<PostgresUser>;
1115
+ export interface CreatePostgresUserResponse {
1116
+ data?: PostgresUser;
1117
+ }
1118
+ export declare const CreatePostgresUserResponse: S.Schema<CreatePostgresUserResponse>;
1119
+ export interface CreateSecretRequest {
1014
1120
  /** Fly App Name */
1015
1121
  app_name: string;
1016
- /** Machine ID */
1017
- machine_id: string;
1018
- /** Metadata Key */
1019
- key: string;
1122
+ /** App secret name */
1123
+ secret_name: string;
1124
+ value?: string;
1020
1125
  }
1021
- export declare const MachinesDeleteMetadataRequest: S.Schema<MachinesDeleteMetadataRequest>;
1022
- export interface MachinesDeleteMetadataResponse {
1126
+ export declare const CreateSecretRequest: S.Schema<CreateSecretRequest>;
1127
+ export interface SetAppSecretResponse {
1128
+ /** DEPRECATED */
1129
+ Version?: number;
1130
+ created_at?: string;
1131
+ digest?: string;
1132
+ name?: string;
1133
+ updated_at?: string;
1134
+ value?: string;
1135
+ version?: number;
1023
1136
  }
1024
- export declare const MachinesDeleteMetadataResponse: S.Schema<MachinesDeleteMetadataResponse>;
1025
- export type MachinesExecRequestCommandList = Array<string>;
1026
- export declare const MachinesExecRequestCommandList: S.Schema<MachinesExecRequestCommandList>;
1027
- export interface MachinesExecRequest {
1137
+ export declare const SetAppSecretResponse: S.Schema<SetAppSecretResponse>;
1138
+ export interface CreateVolumeRequest {
1028
1139
  /** Fly App Name */
1029
1140
  app_name: string;
1030
- /** Machine ID */
1031
- machine_id: string;
1032
- /** Deprecated: use Command instead */
1033
- cmd?: string;
1034
- command?: MachinesExecRequestCommandList;
1035
- container?: string;
1036
- stdin?: string;
1037
- timeout?: number;
1141
+ /** enable scheduled automatic snapshots. Defaults to `true` */
1142
+ auto_backup_enabled?: boolean;
1143
+ compute?: FlyMachineGuest;
1144
+ compute_image?: string;
1145
+ encrypted?: boolean;
1146
+ fstype?: string;
1147
+ name?: string;
1148
+ region?: string;
1149
+ require_unique_zone?: boolean;
1150
+ size_gb?: number;
1151
+ /** restore from snapshot */
1152
+ snapshot_id?: string;
1153
+ snapshot_retention?: number;
1154
+ /** fork from remote volume */
1155
+ source_volume_id?: string;
1156
+ unique_zone_app_wide?: boolean;
1038
1157
  }
1039
- export declare const MachinesExecRequest: S.Schema<MachinesExecRequest>;
1040
- export interface Flydv1ExecResponse {
1041
- exit_code?: number;
1042
- exit_signal?: number;
1043
- stderr?: string;
1044
- stdout?: string;
1158
+ export declare const CreateVolumeRequest: S.Schema<CreateVolumeRequest>;
1159
+ export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
1160
+ export declare const VolumeHostStatus: any;
1161
+ export type VolumeType = "local" | "cache";
1162
+ export declare const VolumeType: any;
1163
+ export interface Volume {
1164
+ attached_alloc_id?: string;
1165
+ attached_machine_id?: string;
1166
+ auto_backup_enabled?: boolean;
1167
+ block_size?: number;
1168
+ blocks?: number;
1169
+ blocks_avail?: number;
1170
+ blocks_free?: number;
1171
+ bytes_total?: number;
1172
+ bytes_used?: number;
1173
+ created_at?: string;
1174
+ encrypted?: boolean;
1175
+ fstype?: string;
1176
+ host_status?: VolumeHostStatus;
1177
+ id?: string;
1178
+ name?: string;
1179
+ region?: string;
1180
+ size_gb?: number;
1181
+ snapshot_retention?: number;
1182
+ state?: string;
1183
+ type?: VolumeType;
1184
+ zone?: string;
1045
1185
  }
1046
- export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
1047
- export interface MachinesGetMemoryRequest {
1186
+ export declare const Volume: S.Schema<Volume>;
1187
+ export interface CreateVolumeSnapshotRequest {
1048
1188
  /** Fly App Name */
1049
1189
  app_name: string;
1050
- /** Machine ID */
1051
- machine_id: string;
1190
+ /** Volume ID */
1191
+ volume_id: string;
1052
1192
  }
1053
- export declare const MachinesGetMemoryRequest: S.Schema<MachinesGetMemoryRequest>;
1054
- export interface MainMemoryResponse {
1055
- available_mb?: number;
1056
- limit_mb?: number;
1193
+ export declare const CreateVolumeSnapshotRequest: S.Schema<CreateVolumeSnapshotRequest>;
1194
+ export interface CreateVolumeSnapshotResponse {
1057
1195
  }
1058
- export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
1059
- export interface MachinesGetMetadataKeyRequest {
1196
+ export declare const CreateVolumeSnapshotResponse: S.Schema<CreateVolumeSnapshotResponse>;
1197
+ export interface DecryptSecretKeyRequest {
1060
1198
  /** Fly App Name */
1061
1199
  app_name: string;
1062
- /** Machine ID */
1063
- machine_id: string;
1064
- /** Metadata Key */
1065
- key: string;
1200
+ /** Secret key name */
1201
+ secret_name: string;
1202
+ /** Minimum secrets version to return. Returned when setting a new secret */
1203
+ min_version?: string;
1204
+ associated_data?: string;
1205
+ ciphertext?: string;
1066
1206
  }
1067
- export declare const MachinesGetMetadataKeyRequest: S.Schema<MachinesGetMetadataKeyRequest>;
1068
- export interface MetadataValueResponse {
1069
- value?: string;
1207
+ export declare const DecryptSecretKeyRequest: S.Schema<DecryptSecretKeyRequest>;
1208
+ export interface DecryptSecretkeyResponse {
1209
+ plaintext?: string;
1070
1210
  }
1071
- export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
1072
- export interface MachinesListRequest {
1211
+ export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
1212
+ export interface DeleteAppRequest {
1073
1213
  /** Fly App Name */
1074
1214
  app_name: string;
1075
- /** Include deleted machines */
1076
- include_deleted?: boolean;
1077
- /** Region filter */
1078
- region?: string;
1079
- /** comma separated list of states to filter (created, started, stopped, suspended) */
1080
- state?: string;
1081
- /** Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.) */
1082
- summary?: boolean;
1083
1215
  }
1084
- export declare const MachinesListRequest: S.Schema<MachinesListRequest>;
1085
- export type MachinesListResponseBodyList = Array<Machine>;
1086
- export declare const MachinesListResponseBodyList: S.Schema<MachinesListResponseBodyList>;
1087
- export type MachinesListResponse = MachinesListResponseBodyList;
1088
- export declare const MachinesListResponse: S.Schema<MachinesListResponse>;
1089
- export interface MachinesListEventsRequest {
1216
+ export declare const DeleteAppRequest: S.Schema<DeleteAppRequest>;
1217
+ export interface DeleteAppResponse {
1218
+ }
1219
+ export declare const DeleteAppResponse: S.Schema<DeleteAppResponse>;
1220
+ export interface DeleteAppAcmeCertificateRequest {
1090
1221
  /** Fly App Name */
1091
1222
  app_name: string;
1092
- /** Machine ID */
1093
- machine_id: string;
1094
- /** The number of events to fetch (max of 50). If omitted, this is set to 20 by default. */
1095
- limit?: number;
1223
+ /** Certificate Hostname */
1224
+ hostname: string;
1096
1225
  }
1097
- export declare const MachinesListEventsRequest: S.Schema<MachinesListEventsRequest>;
1098
- export type MachinesListEventsResponseBodyList = Array<MachineEvent>;
1099
- export declare const MachinesListEventsResponseBodyList: S.Schema<MachinesListEventsResponseBodyList>;
1100
- export type MachinesListEventsResponse = MachinesListEventsResponseBodyList;
1101
- export declare const MachinesListEventsResponse: S.Schema<MachinesListEventsResponse>;
1102
- export interface MachinesListProcessesRequest {
1226
+ export declare const DeleteAppAcmeCertificateRequest: S.Schema<DeleteAppAcmeCertificateRequest>;
1227
+ export interface DeleteAppCertificateRequest {
1103
1228
  /** Fly App Name */
1104
1229
  app_name: string;
1105
- /** Machine ID */
1106
- machine_id: string;
1107
- /** Sort by */
1108
- sort_by?: string;
1109
- /** Order */
1110
- order?: string;
1230
+ /** Certificate Hostname */
1231
+ hostname: string;
1111
1232
  }
1112
- export declare const MachinesListProcessesRequest: S.Schema<MachinesListProcessesRequest>;
1113
- export interface ListenSocket {
1114
- address?: string;
1115
- proto?: string;
1233
+ export declare const DeleteAppCertificateRequest: S.Schema<DeleteAppCertificateRequest>;
1234
+ export interface DeleteAppCertificateResponse {
1116
1235
  }
1117
- export declare const ListenSocket: S.Schema<ListenSocket>;
1118
- export type ProcessStatListenSocketsList = Array<ListenSocket>;
1119
- export declare const ProcessStatListenSocketsList: S.Schema<ProcessStatListenSocketsList>;
1120
- export interface ProcessStat {
1121
- command?: string;
1122
- cpu?: number;
1123
- directory?: string;
1124
- listen_sockets?: ProcessStatListenSocketsList;
1125
- pid?: number;
1126
- rss?: number;
1127
- rtime?: number;
1128
- stime?: number;
1236
+ export declare const DeleteAppCertificateResponse: S.Schema<DeleteAppCertificateResponse>;
1237
+ export interface DeleteAppCustomCertificateRequest {
1238
+ /** Fly App Name */
1239
+ app_name: string;
1240
+ /** Certificate Hostname */
1241
+ hostname: string;
1129
1242
  }
1130
- export declare const ProcessStat: S.Schema<ProcessStat>;
1131
- export type MachinesListProcessesResponseBodyList = Array<ProcessStat>;
1132
- export declare const MachinesListProcessesResponseBodyList: S.Schema<MachinesListProcessesResponseBodyList>;
1133
- export type MachinesListProcessesResponse = MachinesListProcessesResponseBodyList;
1134
- export declare const MachinesListProcessesResponse: S.Schema<MachinesListProcessesResponse>;
1135
- export interface MachinesListVersionsRequest {
1243
+ export declare const DeleteAppCustomCertificateRequest: S.Schema<DeleteAppCustomCertificateRequest>;
1244
+ export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
1245
+ export declare const DestroyCustomCertificateResponseCertificatesList: S.Schema<DestroyCustomCertificateResponseCertificatesList>;
1246
+ export type DestroyCustomCertificateResponseValidationErrorsList = Array<CertificateValidationError>;
1247
+ export declare const DestroyCustomCertificateResponseValidationErrorsList: S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
1248
+ export interface DestroyCustomCertificateResponse {
1249
+ acme_requested?: boolean;
1250
+ certificates?: DestroyCustomCertificateResponseCertificatesList;
1251
+ configured?: boolean;
1252
+ dns_provider?: string;
1253
+ dns_requirements?: DNSRequirements;
1254
+ hostname?: string;
1255
+ rate_limited_until?: string;
1256
+ status?: string;
1257
+ validation?: CertificateValidation;
1258
+ validation_errors?: DestroyCustomCertificateResponseValidationErrorsList;
1259
+ warning?: string;
1260
+ }
1261
+ export declare const DestroyCustomCertificateResponse: S.Schema<DestroyCustomCertificateResponse>;
1262
+ export interface DeleteAppIPAssignmentRequest {
1263
+ /** Fly App Name */
1264
+ app_name: string;
1265
+ /** IP address */
1266
+ ip: string;
1267
+ }
1268
+ export declare const DeleteAppIPAssignmentRequest: S.Schema<DeleteAppIPAssignmentRequest>;
1269
+ export interface DeleteAppIPAssignmentResponse {
1270
+ }
1271
+ export declare const DeleteAppIPAssignmentResponse: S.Schema<DeleteAppIPAssignmentResponse>;
1272
+ export interface DeleteMachineRequest {
1136
1273
  /** Fly App Name */
1137
1274
  app_name: string;
1138
1275
  /** Machine ID */
1139
1276
  machine_id: string;
1277
+ /** Force kill the machine if it's running */
1278
+ force?: boolean;
1140
1279
  }
1141
- export declare const MachinesListVersionsRequest: S.Schema<MachinesListVersionsRequest>;
1142
- export interface MachineVersion {
1143
- user_config?: FlyMachineConfig;
1144
- version?: string;
1280
+ export declare const DeleteMachineRequest: S.Schema<DeleteMachineRequest>;
1281
+ export interface DeleteMachineResponse {
1145
1282
  }
1146
- export declare const MachineVersion: S.Schema<MachineVersion>;
1147
- export type MachinesListVersionsResponseBodyList = Array<MachineVersion>;
1148
- export declare const MachinesListVersionsResponseBodyList: S.Schema<MachinesListVersionsResponseBodyList>;
1149
- export type MachinesListVersionsResponse = MachinesListVersionsResponseBodyList;
1150
- export declare const MachinesListVersionsResponse: S.Schema<MachinesListVersionsResponse>;
1151
- export interface MachinesOrgListRequest {
1152
- /** Fly Organization Slug */
1153
- org_slug: string;
1154
- /** Include deleted machines */
1155
- include_deleted?: boolean;
1156
- /** Region filter */
1157
- region?: string;
1158
- /** Comma separated list of states to filter (created, started, stopped, suspended) */
1159
- state?: string;
1160
- /** Omit config from responses */
1161
- summary?: boolean;
1162
- /** Only return machines updated after this time. Timestamp must be in the RFC 3339 format */
1163
- updated_after?: string;
1164
- /** Pagination cursor from previous response (takes precedence over updated_after). Note that there is no guarantee that all machines returned by this endpoint are sorted by their updated_at fields. Pagination may reveal machines older than the last updated_at. */
1165
- cursor?: string;
1166
- /** 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 */
1167
- limit?: number;
1283
+ export declare const DeleteMachineResponse: S.Schema<DeleteMachineResponse>;
1284
+ export interface DeleteMachineMetadataRequest {
1285
+ /** Fly App Name */
1286
+ app_name: string;
1287
+ /** Machine ID */
1288
+ machine_id: string;
1289
+ /** Metadata Key */
1290
+ key: string;
1168
1291
  }
1169
- export declare const MachinesOrgListRequest: S.Schema<MachinesOrgListRequest>;
1170
- export type OrgMachinesResponseErrorRegionsList = Array<string>;
1171
- export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
1172
- export type MachineOverviewConfigMetadataMap = {
1173
- [key: string]: string | undefined;
1174
- };
1175
- export declare const MachineOverviewConfigMetadataMap: S.Schema<MachineOverviewConfigMetadataMap>;
1176
- export interface MachineOverviewConfig {
1177
- guest?: FlyMachineGuest;
1178
- image?: string;
1179
- metadata?: MachineOverviewConfigMetadataMap;
1292
+ export declare const DeleteMachineMetadataRequest: S.Schema<DeleteMachineMetadataRequest>;
1293
+ export interface DeleteMachineMetadataResponse {
1180
1294
  }
1181
- export declare const MachineOverviewConfig: S.Schema<MachineOverviewConfig>;
1182
- export interface OrgMachine {
1183
- app_name?: string;
1184
- config?: MachineOverviewConfig;
1185
- created_at?: string;
1186
- id?: string;
1187
- name?: string;
1188
- private_ip?: string;
1189
- region?: string;
1190
- state?: string;
1191
- updated_at?: string;
1192
- version?: string;
1295
+ export declare const DeleteMachineMetadataResponse: S.Schema<DeleteMachineMetadataResponse>;
1296
+ export interface DeletePostgresRequest {
1297
+ /** Managed Postgres Cluster ID */
1298
+ postgres_cluster_id: string;
1193
1299
  }
1194
- export declare const OrgMachine: S.Schema<OrgMachine>;
1195
- export type OrgMachinesResponseMachinesList = Array<OrgMachine>;
1196
- export declare const OrgMachinesResponseMachinesList: S.Schema<OrgMachinesResponseMachinesList>;
1197
- export interface OrgMachinesResponse {
1198
- error_regions?: OrgMachinesResponseErrorRegionsList;
1199
- last_machine_id?: string;
1200
- last_updated_at?: string;
1201
- machines?: OrgMachinesResponseMachinesList;
1202
- next_cursor?: string;
1300
+ export declare const DeletePostgresRequest: S.Schema<DeletePostgresRequest>;
1301
+ export interface DeletePostgresResponse {
1203
1302
  }
1204
- export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
1205
- export interface MachinesReclaimMemoryRequest {
1303
+ export declare const DeletePostgresResponse: S.Schema<DeletePostgresResponse>;
1304
+ export interface DeletePostgresAttachmentRequest {
1305
+ /** Managed Postgres Cluster ID */
1306
+ postgres_cluster_id: string;
1206
1307
  /** Fly App Name */
1207
1308
  app_name: string;
1208
- /** Machine ID */
1209
- machine_id: string;
1210
- amount_mb?: number;
1211
1309
  }
1212
- export declare const MachinesReclaimMemoryRequest: S.Schema<MachinesReclaimMemoryRequest>;
1213
- export interface MainReclaimMemoryResponse {
1214
- actual_mb?: number;
1310
+ export declare const DeletePostgresAttachmentRequest: S.Schema<DeletePostgresAttachmentRequest>;
1311
+ export interface DeletePostgresAttachmentResponse {
1215
1312
  }
1216
- export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
1217
- export interface MachinesReleaseLeaseRequest {
1313
+ export declare const DeletePostgresAttachmentResponse: S.Schema<DeletePostgresAttachmentResponse>;
1314
+ export interface DeletePostgresDatabaseRequest {
1315
+ /** Managed Postgres Cluster ID */
1316
+ postgres_cluster_id: string;
1317
+ /** Database Name */
1318
+ database_name: string;
1319
+ }
1320
+ export declare const DeletePostgresDatabaseRequest: S.Schema<DeletePostgresDatabaseRequest>;
1321
+ export interface DeletePostgresUserRequest {
1322
+ /** Managed Postgres Cluster ID */
1323
+ postgres_cluster_id: string;
1324
+ /** Postgres User Name */
1325
+ username: string;
1326
+ }
1327
+ export declare const DeletePostgresUserRequest: S.Schema<DeletePostgresUserRequest>;
1328
+ export interface DeletePostgresUserResponse {
1329
+ }
1330
+ export declare const DeletePostgresUserResponse: S.Schema<DeletePostgresUserResponse>;
1331
+ export interface DeleteSecretRequest {
1218
1332
  /** Fly App Name */
1219
1333
  app_name: string;
1220
- /** Machine ID */
1221
- machine_id: string;
1334
+ /** App secret name */
1335
+ secret_name: string;
1222
1336
  }
1223
- export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
1224
- export interface MachinesReleaseLeaseResponse {
1337
+ export declare const DeleteSecretRequest: S.Schema<DeleteSecretRequest>;
1338
+ export interface DeleteAppSecretResponse {
1339
+ /** DEPRECATED */
1340
+ Version?: number;
1341
+ version?: number;
1225
1342
  }
1226
- export declare const MachinesReleaseLeaseResponse: S.Schema<MachinesReleaseLeaseResponse>;
1227
- export type MachinesRestartRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
1228
- export declare const MachinesRestartRequestSignal: any;
1229
- export interface MachinesRestartRequest {
1343
+ export declare const DeleteAppSecretResponse: S.Schema<DeleteAppSecretResponse>;
1344
+ export interface DeleteSecretKeyRequest {
1230
1345
  /** Fly App Name */
1231
1346
  app_name: string;
1232
- /** Machine ID */
1233
- machine_id: string;
1234
- /** Restart timeout as a Go duration string or number of seconds */
1235
- timeout?: string;
1236
- /** Unix signal name */
1237
- signal?: MachinesRestartRequestSignal | (string & {});
1347
+ /** Secret key name */
1348
+ secret_name: string;
1238
1349
  }
1239
- export declare const MachinesRestartRequest: S.Schema<MachinesRestartRequest>;
1240
- export interface MachinesRestartResponse {
1350
+ export declare const DeleteSecretKeyRequest: S.Schema<DeleteSecretKeyRequest>;
1351
+ export interface DeleteSecretkeyResponse {
1352
+ /** DEPRECATED */
1353
+ Version?: number;
1354
+ version?: number;
1241
1355
  }
1242
- export declare const MachinesRestartResponse: S.Schema<MachinesRestartResponse>;
1243
- export interface MachinesSetMemoryLimitRequest {
1356
+ export declare const DeleteSecretkeyResponse: S.Schema<DeleteSecretkeyResponse>;
1357
+ export interface DeleteVolumeRequest {
1244
1358
  /** Fly App Name */
1245
1359
  app_name: string;
1246
- /** Machine ID */
1247
- machine_id: string;
1248
- limit_mb?: number;
1360
+ /** Volume ID */
1361
+ volume_id: string;
1362
+ }
1363
+ export declare const DeleteVolumeRequest: S.Schema<DeleteVolumeRequest>;
1364
+ export interface DisablePostgresExtensionRequest {
1365
+ /** Managed Postgres Cluster ID */
1366
+ postgres_cluster_id: string;
1367
+ /** Database Name */
1368
+ database_name: string;
1369
+ /** Extension Name */
1370
+ extension_name: string;
1371
+ /** Also drop objects that depend on the extension */
1372
+ force?: boolean;
1249
1373
  }
1250
- export declare const MachinesSetMemoryLimitRequest: S.Schema<MachinesSetMemoryLimitRequest>;
1251
- export interface MachinesShowRequest {
1374
+ export declare const DisablePostgresExtensionRequest: S.Schema<DisablePostgresExtensionRequest>;
1375
+ export interface DisablePostgresExtensionResponse {
1376
+ }
1377
+ export declare const DisablePostgresExtensionResponse: S.Schema<DisablePostgresExtensionResponse>;
1378
+ export interface EnablePostgresExtensionRequest {
1379
+ /** Managed Postgres Cluster ID */
1380
+ postgres_cluster_id: string;
1381
+ /** Database Name */
1382
+ database_name: string;
1383
+ /** Create the schema first if it does not exist. */
1384
+ create_schema?: boolean;
1385
+ /** Extension to enable. */
1386
+ name: string;
1387
+ /** Schema to install the extension into. Defaults to the database's default schema. */
1388
+ schema?: string;
1389
+ }
1390
+ export declare const EnablePostgresExtensionRequest: S.Schema<EnablePostgresExtensionRequest>;
1391
+ export interface EnablePostgresExtensionResponse {
1392
+ }
1393
+ export declare const EnablePostgresExtensionResponse: S.Schema<EnablePostgresExtensionResponse>;
1394
+ export interface EncryptSecretKeyRequest {
1252
1395
  /** Fly App Name */
1253
1396
  app_name: string;
1254
- /** Machine ID */
1255
- machine_id: string;
1397
+ /** Secret key name */
1398
+ secret_name: string;
1399
+ /** Minimum secrets version to return. Returned when setting a new secret */
1400
+ min_version?: string;
1401
+ associated_data?: string;
1402
+ plaintext?: string;
1403
+ }
1404
+ export declare const EncryptSecretKeyRequest: S.Schema<EncryptSecretKeyRequest>;
1405
+ export interface EncryptSecretkeyResponse {
1406
+ ciphertext?: string;
1256
1407
  }
1257
- export declare const MachinesShowRequest: S.Schema<MachinesShowRequest>;
1258
- export interface MachinesShowLeaseRequest {
1408
+ export declare const EncryptSecretkeyResponse: S.Schema<EncryptSecretkeyResponse>;
1409
+ export type ExecMachineRequestCommandList = Array<string>;
1410
+ export declare const ExecMachineRequestCommandList: S.Schema<ExecMachineRequestCommandList>;
1411
+ export interface ExecMachineRequest {
1259
1412
  /** Fly App Name */
1260
1413
  app_name: string;
1261
1414
  /** Machine ID */
1262
1415
  machine_id: string;
1416
+ /** Deprecated: use Command instead */
1417
+ cmd?: string;
1418
+ command?: ExecMachineRequestCommandList;
1419
+ container?: string;
1420
+ /** Machine runs the command in the machine's own namespace instead of in a container. It is mutually exclusive with Container. */
1421
+ machine?: boolean;
1422
+ stdin?: string;
1423
+ timeout?: number;
1424
+ }
1425
+ export declare const ExecMachineRequest: S.Schema<ExecMachineRequest>;
1426
+ export interface Flydv1ExecResponse {
1427
+ exit_code?: number;
1428
+ exit_signal?: number;
1429
+ stderr?: string;
1430
+ stdout?: string;
1263
1431
  }
1264
- export declare const MachinesShowLeaseRequest: S.Schema<MachinesShowLeaseRequest>;
1265
- export interface MachinesShowMetadataRequest {
1432
+ export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
1433
+ export interface ExtendVolumeRequest {
1266
1434
  /** Fly App Name */
1267
1435
  app_name: string;
1268
- /** Machine ID */
1269
- machine_id: string;
1436
+ /** Volume ID */
1437
+ volume_id: string;
1438
+ size_gb?: number;
1270
1439
  }
1271
- export declare const MachinesShowMetadataRequest: S.Schema<MachinesShowMetadataRequest>;
1272
- export type MachinesShowMetadataResponseBodyMap = {
1273
- [key: string]: string | undefined;
1274
- };
1275
- export declare const MachinesShowMetadataResponseBodyMap: S.Schema<MachinesShowMetadataResponseBodyMap>;
1276
- export type MachinesShowMetadataResponse = MachinesShowMetadataResponseBodyMap;
1277
- export declare const MachinesShowMetadataResponse: S.Schema<MachinesShowMetadataResponse>;
1278
- export type MachinesSignalRequestSignal = "SIGABRT" | "SIGALRM" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGKILL" | "SIGPIPE" | "SIGQUIT" | "SIGSEGV" | "SIGTERM" | "SIGTRAP" | "SIGUSR1" | "SIGUSR2";
1279
- export declare const MachinesSignalRequestSignal: any;
1280
- export interface MachinesSignalRequest {
1440
+ export declare const ExtendVolumeRequest: S.Schema<ExtendVolumeRequest>;
1441
+ export interface ExtendVolumeResponse {
1442
+ needs_restart?: boolean;
1443
+ volume?: Volume;
1444
+ }
1445
+ export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
1446
+ export interface ForkPostgresRequest {
1447
+ /** Managed Postgres Cluster ID */
1448
+ postgres_cluster_id: string;
1449
+ /** Name for the forked cluster. Defaults to the source name with a -fork suffix. */
1450
+ name?: string;
1451
+ }
1452
+ export declare const ForkPostgresRequest: S.Schema<ForkPostgresRequest>;
1453
+ export type GenerateSecretKeyRequestValueList = Array<number>;
1454
+ export declare const GenerateSecretKeyRequestValueList: S.Schema<GenerateSecretKeyRequestValueList>;
1455
+ export interface GenerateSecretKeyRequest {
1281
1456
  /** Fly App Name */
1282
1457
  app_name: string;
1283
- /** Machine ID */
1284
- machine_id: string;
1285
- signal?: MachinesSignalRequestSignal | (string & {});
1458
+ /** Secret key name */
1459
+ secret_name: string;
1460
+ type?: string;
1461
+ value?: GenerateSecretKeyRequestValueList;
1462
+ }
1463
+ export declare const GenerateSecretKeyRequest: S.Schema<GenerateSecretKeyRequest>;
1464
+ export interface SetSecretkeyResponse {
1465
+ /** DEPRECATED */
1466
+ Version?: number;
1467
+ created_at?: string;
1468
+ name?: string;
1469
+ public_key?: string;
1470
+ type?: string;
1471
+ updated_at?: string;
1472
+ version?: number;
1286
1473
  }
1287
- export declare const MachinesSignalRequest: S.Schema<MachinesSignalRequest>;
1288
- export interface MachinesSignalResponse {
1474
+ export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
1475
+ export interface GetAppRequest {
1476
+ /** Fly App Name */
1477
+ app_name: string;
1478
+ }
1479
+ export declare const GetAppRequest: S.Schema<GetAppRequest>;
1480
+ export interface AppOrganizationInfo {
1481
+ internal_numeric_id?: number;
1482
+ name?: string;
1483
+ slug?: string;
1484
+ }
1485
+ export declare const AppOrganizationInfo: S.Schema<AppOrganizationInfo>;
1486
+ export interface App {
1487
+ id?: string;
1488
+ internal_numeric_id?: number;
1489
+ machine_count?: number;
1490
+ name?: string;
1491
+ network?: string;
1492
+ network_cidr?: string;
1493
+ organization?: AppOrganizationInfo;
1494
+ status?: string;
1495
+ volume_count?: number;
1289
1496
  }
1290
- export declare const MachinesSignalResponse: S.Schema<MachinesSignalResponse>;
1291
- export interface MachinesStartRequest {
1497
+ export declare const App: S.Schema<App>;
1498
+ export interface GetAppCertificateRequest {
1292
1499
  /** Fly App Name */
1293
1500
  app_name: string;
1294
- /** Machine ID */
1295
- machine_id: string;
1501
+ /** Certificate Hostname */
1502
+ hostname: string;
1503
+ }
1504
+ export declare const GetAppCertificateRequest: S.Schema<GetAppCertificateRequest>;
1505
+ export interface GetCurrentTokenRequest {
1506
+ }
1507
+ export declare const GetCurrentTokenRequest: S.Schema<GetCurrentTokenRequest>;
1508
+ export type MainTokenInfoAppsList = Array<string>;
1509
+ export declare const MainTokenInfoAppsList: S.Schema<MainTokenInfoAppsList>;
1510
+ export interface MainTokenInfo {
1511
+ apps?: MainTokenInfoAppsList;
1512
+ org_slug?: string;
1513
+ organization?: string;
1514
+ /** Machine the token is restricted to (FromMachine caveat) */
1515
+ restricted_to_machine?: string;
1516
+ /** Machine making the request */
1517
+ source_machine_id?: string;
1518
+ token_id?: string;
1519
+ /** User identifier if token is for a user */
1520
+ user?: string;
1296
1521
  }
1297
- export declare const MachinesStartRequest: S.Schema<MachinesStartRequest>;
1298
- export interface MachinesStartResponse {
1522
+ export declare const MainTokenInfo: S.Schema<MainTokenInfo>;
1523
+ export type CurrentTokenResponseTokensList = Array<MainTokenInfo>;
1524
+ export declare const CurrentTokenResponseTokensList: S.Schema<CurrentTokenResponseTokensList>;
1525
+ export interface CurrentTokenResponse {
1526
+ tokens?: CurrentTokenResponseTokensList;
1299
1527
  }
1300
- export declare const MachinesStartResponse: S.Schema<MachinesStartResponse>;
1301
- export type MachinesStopRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
1302
- export declare const MachinesStopRequestSignal: any;
1303
- export interface MachinesStopRequest {
1528
+ export declare const CurrentTokenResponse: S.Schema<CurrentTokenResponse>;
1529
+ export interface GetMachineRequest {
1304
1530
  /** Fly App Name */
1305
1531
  app_name: string;
1306
1532
  /** Machine ID */
1307
1533
  machine_id: string;
1308
- signal?: MachinesStopRequestSignal | (string & {});
1309
- timeout?: string;
1534
+ /** Include machine lease */
1535
+ include_leases?: boolean;
1310
1536
  }
1311
- export declare const MachinesStopRequest: S.Schema<MachinesStopRequest>;
1312
- export interface MachinesStopResponse {
1313
- }
1314
- export declare const MachinesStopResponse: S.Schema<MachinesStopResponse>;
1315
- export interface MachinesSuspendRequest {
1537
+ export declare const GetMachineRequest: S.Schema<GetMachineRequest>;
1538
+ export interface GetMachineLeaseRequest {
1316
1539
  /** Fly App Name */
1317
1540
  app_name: string;
1318
1541
  /** Machine ID */
1319
1542
  machine_id: string;
1320
1543
  }
1321
- export declare const MachinesSuspendRequest: S.Schema<MachinesSuspendRequest>;
1322
- export interface MachinesSuspendResponse {
1323
- }
1324
- export declare const MachinesSuspendResponse: S.Schema<MachinesSuspendResponse>;
1325
- export interface MachinesUncordonRequest {
1544
+ export declare const GetMachineLeaseRequest: S.Schema<GetMachineLeaseRequest>;
1545
+ export interface GetMachineMemoryRequest {
1326
1546
  /** Fly App Name */
1327
1547
  app_name: string;
1328
1548
  /** Machine ID */
1329
1549
  machine_id: string;
1330
1550
  }
1331
- export declare const MachinesUncordonRequest: S.Schema<MachinesUncordonRequest>;
1332
- export interface MachinesUncordonResponse {
1551
+ export declare const GetMachineMemoryRequest: S.Schema<GetMachineMemoryRequest>;
1552
+ export interface MainMemoryResponse {
1553
+ available_mb?: number;
1554
+ limit_mb?: number;
1333
1555
  }
1334
- export declare const MachinesUncordonResponse: S.Schema<MachinesUncordonResponse>;
1335
- export interface MachinesUpdateRequest {
1556
+ export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
1557
+ export interface GetMachineMetadataRequest {
1336
1558
  /** Fly App Name */
1337
1559
  app_name: string;
1338
1560
  /** Machine ID */
1339
1561
  machine_id: string;
1340
- /** An object defining the Machine configuration */
1341
- config?: FlyMachineConfig;
1342
- current_version?: string;
1343
- lease_ttl?: number;
1344
- min_secrets_version?: number;
1345
- /** Unique name for this Machine. If omitted, one is generated for you */
1346
- name?: string;
1347
- /** The target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you). */
1348
- region?: string;
1349
- skip_launch?: boolean;
1350
- skip_secrets?: boolean;
1351
- skip_service_registration?: boolean;
1352
1562
  }
1353
- export declare const MachinesUpdateRequest: S.Schema<MachinesUpdateRequest>;
1354
- export type MachinesUpdateMetadataRequestMetadataMap = {
1563
+ export declare const GetMachineMetadataRequest: S.Schema<GetMachineMetadataRequest>;
1564
+ export type GetMachineMetadataResponseBodyMap = {
1355
1565
  [key: string]: string | undefined;
1356
1566
  };
1357
- export declare const MachinesUpdateMetadataRequestMetadataMap: S.Schema<MachinesUpdateMetadataRequestMetadataMap>;
1358
- export interface MachinesUpdateMetadataRequest {
1359
- /** Fly App Name */
1360
- app_name: string;
1361
- /** Machine ID */
1362
- machine_id: string;
1363
- machine_version?: string;
1364
- metadata?: MachinesUpdateMetadataRequestMetadataMap;
1365
- updated_at?: string;
1366
- }
1367
- export declare const MachinesUpdateMetadataRequest: S.Schema<MachinesUpdateMetadataRequest>;
1368
- export interface MachinesUpdateMetadataResponse {
1369
- }
1370
- export declare const MachinesUpdateMetadataResponse: S.Schema<MachinesUpdateMetadataResponse>;
1371
- export type MachinesUpdateMetadataRequestMetadataMap2 = {
1372
- [key: string]: string | undefined;
1373
- };
1374
- export declare const MachinesUpdateMetadataRequestMetadataMap2: S.Schema<MachinesUpdateMetadataRequestMetadataMap2>;
1375
- export interface MachinesUpdateMetadataRequest2 {
1376
- /** Fly App Name */
1377
- app_name: string;
1378
- /** Machine ID */
1379
- machine_id: string;
1380
- machine_version?: string;
1381
- metadata?: MachinesUpdateMetadataRequestMetadataMap2;
1382
- updated_at?: string;
1383
- }
1384
- export declare const MachinesUpdateMetadataRequest2: S.Schema<MachinesUpdateMetadataRequest2>;
1385
- export interface MachinesUpdateMetadata2Response {
1386
- }
1387
- export declare const MachinesUpdateMetadata2Response: S.Schema<MachinesUpdateMetadata2Response>;
1388
- export interface MachinesUpsertMetadataRequest {
1567
+ export declare const GetMachineMetadataResponseBodyMap: S.Schema<GetMachineMetadataResponseBodyMap>;
1568
+ export type GetMachineMetadataResponse = GetMachineMetadataResponseBodyMap;
1569
+ export declare const GetMachineMetadataResponse: S.Schema<GetMachineMetadataResponse>;
1570
+ export interface GetMachineMetadataKeyRequest {
1389
1571
  /** Fly App Name */
1390
1572
  app_name: string;
1391
1573
  /** Machine ID */
1392
1574
  machine_id: string;
1393
1575
  /** Metadata Key */
1394
1576
  key: string;
1395
- updated_at?: string;
1396
- value?: string;
1397
- }
1398
- export declare const MachinesUpsertMetadataRequest: S.Schema<MachinesUpsertMetadataRequest>;
1399
- export interface MachinesUpsertMetadataResponse {
1400
- }
1401
- export declare const MachinesUpsertMetadataResponse: S.Schema<MachinesUpsertMetadataResponse>;
1402
- export type MachinesWaitRequestState = "started" | "stopped" | "suspended" | "destroyed" | "failed" | "settled";
1403
- export declare const MachinesWaitRequestState: any;
1404
- export interface MachinesWaitRequest {
1405
- /** Fly App Name */
1406
- app_name: string;
1407
- /** Machine ID */
1408
- machine_id: string;
1409
- /** 26-character Machine version ID */
1410
- version?: string;
1411
- /** 26-character Machine version ID (deprecated; use version) */
1412
- instance_id?: string;
1413
- /** 26-character Machine event ID to start waiting after */
1414
- from_event_id?: string;
1415
- /** wait timeout. default 60s */
1416
- timeout?: number;
1417
- /** desired state(s), supports repeated or comma-separated values */
1418
- state?: MachinesWaitRequestState | (string & {});
1419
1577
  }
1420
- export declare const MachinesWaitRequest: S.Schema<MachinesWaitRequest>;
1421
- export interface WaitMachineResponse {
1422
- event_id?: string;
1423
- ok?: boolean;
1424
- state?: string;
1425
- version?: string;
1578
+ export declare const GetMachineMetadataKeyRequest: S.Schema<GetMachineMetadataKeyRequest>;
1579
+ export interface MetadataValueResponse {
1580
+ value?: string;
1426
1581
  }
1427
- export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
1582
+ export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
1428
1583
  export type PlacementWeights = {
1429
1584
  [key: string]: number | undefined;
1430
1585
  };
1431
1586
  export declare const PlacementWeights: S.Schema<PlacementWeights>;
1432
- export interface PlatformPlacementsPostRequest {
1587
+ export interface GetPlacementsRequest {
1433
1588
  /** Resource requirements for the Machine to simulate. Defaults to a performance-1x machine */
1434
1589
  compute?: FlyMachineGuest;
1435
1590
  /** Number of machines to simulate placement. Defaults to 0, which returns the org-specific limit for each region. */
@@ -1442,7 +1597,7 @@ export interface PlatformPlacementsPostRequest {
1442
1597
  /** Optional weights to override default placement preferences. */
1443
1598
  weights?: PlacementWeights;
1444
1599
  }
1445
- export declare const PlatformPlacementsPostRequest: S.Schema<PlatformPlacementsPostRequest>;
1600
+ export declare const GetPlacementsRequest: S.Schema<GetPlacementsRequest>;
1446
1601
  export interface PlacementRegionPlacement {
1447
1602
  concurrency?: number;
1448
1603
  count?: number;
@@ -1455,9 +1610,14 @@ export interface MainGetPlacementsResponse {
1455
1610
  regions?: MainGetPlacementsResponseRegionsList;
1456
1611
  }
1457
1612
  export declare const MainGetPlacementsResponse: S.Schema<MainGetPlacementsResponse>;
1458
- export interface PlatformRegionsGetRequest {
1613
+ export interface GetPostgresRequest {
1614
+ /** Managed Postgres Cluster ID */
1615
+ postgres_cluster_id: string;
1459
1616
  }
1460
- export declare const PlatformRegionsGetRequest: S.Schema<PlatformRegionsGetRequest>;
1617
+ export declare const GetPostgresRequest: S.Schema<GetPostgresRequest>;
1618
+ export interface GetRegionsRequest {
1619
+ }
1620
+ export declare const GetRegionsRequest: S.Schema<GetRegionsRequest>;
1461
1621
  export interface MainRegionRow {
1462
1622
  code?: string;
1463
1623
  deprecated?: boolean;
@@ -1465,6 +1625,7 @@ export interface MainRegionRow {
1465
1625
  geo_region?: string;
1466
1626
  latitude?: number;
1467
1627
  longitude?: number;
1628
+ mpg_available?: boolean;
1468
1629
  name?: string;
1469
1630
  requires_paid_plan?: boolean;
1470
1631
  }
@@ -1476,39 +1637,7 @@ export interface MainRegionResponse {
1476
1637
  regions?: MainRegionResponseRegionsList;
1477
1638
  }
1478
1639
  export declare const MainRegionResponse: S.Schema<MainRegionResponse>;
1479
- export interface SecretCreateRequest {
1480
- /** Fly App Name */
1481
- app_name: string;
1482
- /** App secret name */
1483
- secret_name: string;
1484
- value?: string;
1485
- }
1486
- export declare const SecretCreateRequest: S.Schema<SecretCreateRequest>;
1487
- export interface SetAppSecretResponse {
1488
- /** DEPRECATED */
1489
- Version?: number;
1490
- created_at?: string;
1491
- digest?: string;
1492
- name?: string;
1493
- updated_at?: string;
1494
- value?: string;
1495
- version?: number;
1496
- }
1497
- export declare const SetAppSecretResponse: S.Schema<SetAppSecretResponse>;
1498
- export interface SecretDeleteRequest {
1499
- /** Fly App Name */
1500
- app_name: string;
1501
- /** App secret name */
1502
- secret_name: string;
1503
- }
1504
- export declare const SecretDeleteRequest: S.Schema<SecretDeleteRequest>;
1505
- export interface DeleteAppSecretResponse {
1506
- /** DEPRECATED */
1507
- Version?: number;
1508
- version?: number;
1509
- }
1510
- export declare const DeleteAppSecretResponse: S.Schema<DeleteAppSecretResponse>;
1511
- export interface SecretGetRequest {
1640
+ export interface GetSecretRequest {
1512
1641
  /** Fly App Name */
1513
1642
  app_name: string;
1514
1643
  /** App secret name */
@@ -1518,7 +1647,7 @@ export interface SecretGetRequest {
1518
1647
  /** Show the secret value. */
1519
1648
  show_secrets?: boolean;
1520
1649
  }
1521
- export declare const SecretGetRequest: S.Schema<SecretGetRequest>;
1650
+ export declare const GetSecretRequest: S.Schema<GetSecretRequest>;
1522
1651
  export interface AppSecret {
1523
1652
  created_at?: string;
1524
1653
  digest?: string;
@@ -1527,403 +1656,410 @@ export interface AppSecret {
1527
1656
  value?: string;
1528
1657
  }
1529
1658
  export declare const AppSecret: S.Schema<AppSecret>;
1530
- export type SecretkeyDecryptRequestAssociatedDataList = Array<number>;
1531
- export declare const SecretkeyDecryptRequestAssociatedDataList: S.Schema<SecretkeyDecryptRequestAssociatedDataList>;
1532
- export type SecretkeyDecryptRequestCiphertextList = Array<number>;
1533
- export declare const SecretkeyDecryptRequestCiphertextList: S.Schema<SecretkeyDecryptRequestCiphertextList>;
1534
- export interface SecretkeyDecryptRequest {
1659
+ export interface GetSecretKeyRequest {
1535
1660
  /** Fly App Name */
1536
1661
  app_name: string;
1537
1662
  /** Secret key name */
1538
1663
  secret_name: string;
1539
1664
  /** Minimum secrets version to return. Returned when setting a new secret */
1540
1665
  min_version?: string;
1541
- associated_data?: SecretkeyDecryptRequestAssociatedDataList;
1542
- ciphertext?: SecretkeyDecryptRequestCiphertextList;
1543
- }
1544
- export declare const SecretkeyDecryptRequest: S.Schema<SecretkeyDecryptRequest>;
1545
- export type DecryptSecretkeyResponsePlaintextList = Array<number>;
1546
- export declare const DecryptSecretkeyResponsePlaintextList: S.Schema<DecryptSecretkeyResponsePlaintextList>;
1547
- export interface DecryptSecretkeyResponse {
1548
- plaintext?: DecryptSecretkeyResponsePlaintextList;
1549
- }
1550
- export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
1551
- export interface SecretkeyDeleteRequest {
1552
- /** Fly App Name */
1553
- app_name: string;
1554
- /** Secret key name */
1555
- secret_name: string;
1556
1666
  }
1557
- export declare const SecretkeyDeleteRequest: S.Schema<SecretkeyDeleteRequest>;
1558
- export interface DeleteSecretkeyResponse {
1559
- /** DEPRECATED */
1560
- Version?: number;
1561
- version?: number;
1667
+ export declare const GetSecretKeyRequest: S.Schema<GetSecretKeyRequest>;
1668
+ export interface SecretKey {
1669
+ created_at?: string;
1670
+ name?: string;
1671
+ public_key?: string;
1672
+ type?: string;
1673
+ updated_at?: string;
1562
1674
  }
1563
- export declare const DeleteSecretkeyResponse: S.Schema<DeleteSecretkeyResponse>;
1564
- export type SecretkeyEncryptRequestAssociatedDataList = Array<number>;
1565
- export declare const SecretkeyEncryptRequestAssociatedDataList: S.Schema<SecretkeyEncryptRequestAssociatedDataList>;
1566
- export type SecretkeyEncryptRequestPlaintextList = Array<number>;
1567
- export declare const SecretkeyEncryptRequestPlaintextList: S.Schema<SecretkeyEncryptRequestPlaintextList>;
1568
- export interface SecretkeyEncryptRequest {
1675
+ export declare const SecretKey: S.Schema<SecretKey>;
1676
+ export interface GetVolumeByIdRequest {
1569
1677
  /** Fly App Name */
1570
1678
  app_name: string;
1571
- /** Secret key name */
1572
- secret_name: string;
1573
- /** Minimum secrets version to return. Returned when setting a new secret */
1574
- min_version?: string;
1575
- associated_data?: SecretkeyEncryptRequestAssociatedDataList;
1576
- plaintext?: SecretkeyEncryptRequestPlaintextList;
1577
- }
1578
- export declare const SecretkeyEncryptRequest: S.Schema<SecretkeyEncryptRequest>;
1579
- export type EncryptSecretkeyResponseCiphertextList = Array<number>;
1580
- export declare const EncryptSecretkeyResponseCiphertextList: S.Schema<EncryptSecretkeyResponseCiphertextList>;
1581
- export interface EncryptSecretkeyResponse {
1582
- ciphertext?: EncryptSecretkeyResponseCiphertextList;
1679
+ /** Volume ID */
1680
+ volume_id: string;
1583
1681
  }
1584
- export declare const EncryptSecretkeyResponse: S.Schema<EncryptSecretkeyResponse>;
1585
- export type SecretkeyGenerateRequestValueList = Array<number>;
1586
- export declare const SecretkeyGenerateRequestValueList: S.Schema<SecretkeyGenerateRequestValueList>;
1587
- export interface SecretkeyGenerateRequest {
1682
+ export declare const GetVolumeByIdRequest: S.Schema<GetVolumeByIdRequest>;
1683
+ export interface ListAppCertificatesRequest {
1588
1684
  /** Fly App Name */
1589
1685
  app_name: string;
1590
- /** Secret key name */
1591
- secret_name: string;
1592
- type?: string;
1593
- value?: SecretkeyGenerateRequestValueList;
1686
+ /** Hostname filter (substring match) */
1687
+ filter?: string;
1688
+ /** Pagination cursor from previous response */
1689
+ cursor?: string;
1690
+ /** Number of results per page (default 25, max 500) */
1691
+ limit?: number;
1594
1692
  }
1595
- export declare const SecretkeyGenerateRequest: S.Schema<SecretkeyGenerateRequest>;
1596
- export type SetSecretkeyResponsePublicKeyList = Array<number>;
1597
- export declare const SetSecretkeyResponsePublicKeyList: S.Schema<SetSecretkeyResponsePublicKeyList>;
1598
- export interface SetSecretkeyResponse {
1599
- /** DEPRECATED */
1600
- Version?: number;
1693
+ export declare const ListAppCertificatesRequest: S.Schema<ListAppCertificatesRequest>;
1694
+ export interface CertificateSummary {
1695
+ acme_alpn_configured?: boolean;
1696
+ acme_dns_configured?: boolean;
1697
+ acme_http_configured?: boolean;
1698
+ acme_requested?: boolean;
1699
+ configured?: boolean;
1601
1700
  created_at?: string;
1602
- name?: string;
1603
- public_key?: SetSecretkeyResponsePublicKeyList;
1604
- type?: string;
1701
+ dns_provider?: string;
1702
+ has_custom_certificate?: boolean;
1703
+ has_fly_certificate?: boolean;
1704
+ hostname?: string;
1705
+ ownership_txt_configured?: boolean;
1706
+ status?: string;
1605
1707
  updated_at?: string;
1606
- version?: number;
1607
1708
  }
1608
- export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
1609
- export interface SecretkeyGetRequest {
1709
+ export declare const CertificateSummary: S.Schema<CertificateSummary>;
1710
+ export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
1711
+ export declare const ListCertificatesResponseCertificatesList: S.Schema<ListCertificatesResponseCertificatesList>;
1712
+ export interface ListCertificatesResponse {
1713
+ certificates?: ListCertificatesResponseCertificatesList;
1714
+ next_cursor?: string;
1715
+ total_count?: number;
1716
+ }
1717
+ export declare const ListCertificatesResponse: S.Schema<ListCertificatesResponse>;
1718
+ export interface ListAppIPAssignmentsRequest {
1610
1719
  /** Fly App Name */
1611
1720
  app_name: string;
1612
- /** Secret key name */
1613
- secret_name: string;
1614
- /** Minimum secrets version to return. Returned when setting a new secret */
1615
- min_version?: string;
1616
1721
  }
1617
- export declare const SecretkeyGetRequest: S.Schema<SecretkeyGetRequest>;
1618
- export type SecretKeyPublicKeyList = Array<number>;
1619
- export declare const SecretKeyPublicKeyList: S.Schema<SecretKeyPublicKeyList>;
1620
- export interface SecretKey {
1722
+ export declare const ListAppIPAssignmentsRequest: S.Schema<ListAppIPAssignmentsRequest>;
1723
+ export interface IPAssignment {
1621
1724
  created_at?: string;
1622
- name?: string;
1623
- public_key?: SecretKeyPublicKeyList;
1725
+ egress?: boolean;
1726
+ ip?: string;
1727
+ region?: string;
1728
+ service_name?: string;
1729
+ shared?: boolean;
1624
1730
  type?: string;
1625
- updated_at?: string;
1626
1731
  }
1627
- export declare const SecretKey: S.Schema<SecretKey>;
1628
- export type SecretkeySetRequestValueList = Array<number>;
1629
- export declare const SecretkeySetRequestValueList: S.Schema<SecretkeySetRequestValueList>;
1630
- export interface SecretkeySetRequest {
1631
- /** Fly App Name */
1632
- app_name: string;
1633
- /** Secret key name */
1634
- secret_name: string;
1635
- type?: string;
1636
- value?: SecretkeySetRequestValueList;
1732
+ export declare const IPAssignment: S.Schema<IPAssignment>;
1733
+ export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
1734
+ export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
1735
+ export interface ListIPAssignmentsResponse {
1736
+ ips?: ListIPAssignmentsResponseIpsList;
1637
1737
  }
1638
- export declare const SecretkeySetRequest: S.Schema<SecretkeySetRequest>;
1639
- export type SecretkeySignRequestPlaintextList = Array<number>;
1640
- export declare const SecretkeySignRequestPlaintextList: S.Schema<SecretkeySignRequestPlaintextList>;
1641
- export interface SecretkeySignRequest {
1642
- /** Fly App Name */
1643
- app_name: string;
1644
- /** Secret key name */
1645
- secret_name: string;
1646
- /** Minimum secrets version to return. Returned when setting a new secret */
1647
- min_version?: string;
1648
- plaintext?: SecretkeySignRequestPlaintextList;
1738
+ export declare const ListIPAssignmentsResponse: S.Schema<ListIPAssignmentsResponse>;
1739
+ export interface ListAppsRequest {
1740
+ /** The org slug, or 'personal', to filter apps */
1741
+ org_slug: string;
1742
+ /** Filter apps by role */
1743
+ app_role?: string;
1649
1744
  }
1650
- export declare const SecretkeySignRequest: S.Schema<SecretkeySignRequest>;
1651
- export type SignSecretkeyResponseSignatureList = Array<number>;
1652
- export declare const SignSecretkeyResponseSignatureList: S.Schema<SignSecretkeyResponseSignatureList>;
1653
- export interface SignSecretkeyResponse {
1654
- signature?: SignSecretkeyResponseSignatureList;
1745
+ export declare const ListAppsRequest: S.Schema<ListAppsRequest>;
1746
+ export type ListAppsResponseAppsList = Array<App>;
1747
+ export declare const ListAppsResponseAppsList: S.Schema<ListAppsResponseAppsList>;
1748
+ export interface ListAppsResponse {
1749
+ apps?: ListAppsResponseAppsList;
1750
+ total_apps?: number;
1655
1751
  }
1656
- export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
1657
- export interface SecretkeysListRequest {
1752
+ export declare const ListAppsResponse: S.Schema<ListAppsResponse>;
1753
+ export interface ListMachineEventsRequest {
1658
1754
  /** Fly App Name */
1659
1755
  app_name: string;
1660
- /** Minimum secrets version to return. Returned when setting a new secret */
1661
- min_version?: string;
1662
- /** Comma-seperated list of secret keys to list */
1663
- types?: string;
1664
- }
1665
- export declare const SecretkeysListRequest: S.Schema<SecretkeysListRequest>;
1666
- export type SecretKeysSecretKeysList = Array<SecretKey>;
1667
- export declare const SecretKeysSecretKeysList: S.Schema<SecretKeysSecretKeysList>;
1668
- export interface SecretKeys {
1669
- secret_keys?: SecretKeysSecretKeysList;
1756
+ /** Machine ID */
1757
+ machine_id: string;
1758
+ /** The number of events to fetch (max of 50). If omitted, this is set to 20 by default. */
1759
+ limit?: number;
1670
1760
  }
1671
- export declare const SecretKeys: S.Schema<SecretKeys>;
1672
- export type SecretkeyVerifyRequestPlaintextList = Array<number>;
1673
- export declare const SecretkeyVerifyRequestPlaintextList: S.Schema<SecretkeyVerifyRequestPlaintextList>;
1674
- export type SecretkeyVerifyRequestSignatureList = Array<number>;
1675
- export declare const SecretkeyVerifyRequestSignatureList: S.Schema<SecretkeyVerifyRequestSignatureList>;
1676
- export interface SecretkeyVerifyRequest {
1761
+ export declare const ListMachineEventsRequest: S.Schema<ListMachineEventsRequest>;
1762
+ export type ListMachineEventsResponseBodyList = Array<MachineEvent>;
1763
+ export declare const ListMachineEventsResponseBodyList: S.Schema<ListMachineEventsResponseBodyList>;
1764
+ export type ListMachineEventsResponse = ListMachineEventsResponseBodyList;
1765
+ export declare const ListMachineEventsResponse: S.Schema<ListMachineEventsResponse>;
1766
+ export interface ListMachineProcessesRequest {
1677
1767
  /** Fly App Name */
1678
1768
  app_name: string;
1679
- /** Secret key name */
1680
- secret_name: string;
1681
- /** Minimum secrets version to return. Returned when setting a new secret */
1682
- min_version?: string;
1683
- plaintext?: SecretkeyVerifyRequestPlaintextList;
1684
- signature?: SecretkeyVerifyRequestSignatureList;
1685
- }
1686
- export declare const SecretkeyVerifyRequest: S.Schema<SecretkeyVerifyRequest>;
1687
- export interface SecretkeyVerifyResponse {
1769
+ /** Machine ID */
1770
+ machine_id: string;
1771
+ /** Sort by */
1772
+ sort_by?: string;
1773
+ /** Order */
1774
+ order?: string;
1688
1775
  }
1689
- export declare const SecretkeyVerifyResponse: S.Schema<SecretkeyVerifyResponse>;
1690
- export interface SecretsListRequest {
1691
- /** Fly App Name */
1692
- app_name: string;
1693
- /** Minimum secrets version to return. Returned when setting a new secret */
1694
- min_version?: string;
1695
- /** Show the secret values. */
1696
- show_secrets?: boolean;
1776
+ export declare const ListMachineProcessesRequest: S.Schema<ListMachineProcessesRequest>;
1777
+ export interface ListenSocket {
1778
+ address?: string;
1779
+ proto?: string;
1697
1780
  }
1698
- export declare const SecretsListRequest: S.Schema<SecretsListRequest>;
1699
- export type AppSecretsSecretsList = Array<AppSecret>;
1700
- export declare const AppSecretsSecretsList: S.Schema<AppSecretsSecretsList>;
1701
- export interface AppSecrets {
1702
- secrets?: AppSecretsSecretsList;
1781
+ export declare const ListenSocket: S.Schema<ListenSocket>;
1782
+ export type ProcessStatListenSocketsList = Array<ListenSocket>;
1783
+ export declare const ProcessStatListenSocketsList: S.Schema<ProcessStatListenSocketsList>;
1784
+ export interface ProcessStat {
1785
+ command?: string;
1786
+ cpu?: number;
1787
+ directory?: string;
1788
+ listen_sockets?: ProcessStatListenSocketsList;
1789
+ pid?: number;
1790
+ rss?: number;
1791
+ rtime?: number;
1792
+ stime?: number;
1703
1793
  }
1704
- export declare const AppSecrets: S.Schema<AppSecrets>;
1705
- export type SecretsUpdateRequestValuesMap = {
1706
- [key: string]: string | undefined;
1707
- };
1708
- export declare const SecretsUpdateRequestValuesMap: S.Schema<SecretsUpdateRequestValuesMap>;
1709
- export interface SecretsUpdateRequest {
1794
+ export declare const ProcessStat: S.Schema<ProcessStat>;
1795
+ export type ListMachineProcessesResponseBodyList = Array<ProcessStat>;
1796
+ export declare const ListMachineProcessesResponseBodyList: S.Schema<ListMachineProcessesResponseBodyList>;
1797
+ export type ListMachineProcessesResponse = ListMachineProcessesResponseBodyList;
1798
+ export declare const ListMachineProcessesResponse: S.Schema<ListMachineProcessesResponse>;
1799
+ export interface ListMachinesRequest {
1710
1800
  /** Fly App Name */
1711
1801
  app_name: string;
1712
- values?: SecretsUpdateRequestValuesMap;
1713
- }
1714
- export declare const SecretsUpdateRequest: S.Schema<SecretsUpdateRequest>;
1715
- export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
1716
- export declare const AppSecretsUpdateRespSecretsList: S.Schema<AppSecretsUpdateRespSecretsList>;
1717
- export interface AppSecretsUpdateResp {
1718
- /** DEPRECATED */
1719
- Version?: number;
1720
- secrets?: AppSecretsUpdateRespSecretsList;
1721
- version?: number;
1722
- }
1723
- export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
1724
- export interface TokensAuthenticateRequest {
1725
- header?: string;
1726
- }
1727
- export declare const TokensAuthenticateRequest: S.Schema<TokensAuthenticateRequest>;
1728
- export type MacaroonCaveatSetCaveatsList = Array<unknown>;
1729
- export declare const MacaroonCaveatSetCaveatsList: S.Schema<MacaroonCaveatSetCaveatsList>;
1730
- export interface MacaroonCaveatSet {
1731
- caveats?: MacaroonCaveatSetCaveatsList;
1732
- }
1733
- export declare const MacaroonCaveatSet: S.Schema<MacaroonCaveatSet>;
1734
- export type MacaroonNonceKidList = Array<number>;
1735
- export declare const MacaroonNonceKidList: S.Schema<MacaroonNonceKidList>;
1736
- export type MacaroonNonceRndList = Array<number>;
1737
- export declare const MacaroonNonceRndList: S.Schema<MacaroonNonceRndList>;
1738
- export interface MacaroonNonce {
1739
- kid?: MacaroonNonceKidList;
1740
- proof?: boolean;
1741
- rnd?: MacaroonNonceRndList;
1802
+ /** Include deleted machines */
1803
+ include_deleted?: boolean;
1804
+ /** Include machine leases */
1805
+ include_leases?: boolean;
1806
+ /** Region filter */
1807
+ region?: string;
1808
+ /** comma separated list of states to filter (created, started, stopped, suspended) */
1809
+ state?: string;
1810
+ /** Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.) */
1811
+ summary?: boolean;
1812
+ /** Filter by a machine metadata key and exact value. Replace {key} with the metadata key, for example metadata.foo=bar. Specify multiple metadata filters to require all matches. */
1813
+ metadata__key_?: string;
1814
+ }
1815
+ export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
1816
+ export type ListMachinesResponseBodyList = Array<Machine>;
1817
+ export declare const ListMachinesResponseBodyList: S.Schema<ListMachinesResponseBodyList>;
1818
+ export type ListMachinesResponse = ListMachinesResponseBodyList;
1819
+ export declare const ListMachinesResponse: S.Schema<ListMachinesResponse>;
1820
+ export interface ListMachinesOrgRequest {
1821
+ /** Fly Organization Slug */
1822
+ org_slug: string;
1823
+ /** Include deleted machines */
1824
+ include_deleted?: boolean;
1825
+ /** Region filter */
1826
+ region?: string;
1827
+ /** Comma separated list of states to filter (created, started, stopped, suspended) */
1828
+ state?: string;
1829
+ /** Omit config from responses */
1830
+ summary?: boolean;
1831
+ /** Only return machines updated after this time. Timestamp must be in the RFC 3339 format */
1832
+ updated_after?: string;
1833
+ /** Pagination cursor from previous response (takes precedence over updated_after). Note that there is no guarantee that all machines returned by this endpoint are sorted by their updated_at fields. Pagination may reveal machines older than the last updated_at. */
1834
+ cursor?: string;
1835
+ /** 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 */
1836
+ limit?: number;
1742
1837
  }
1743
- export declare const MacaroonNonce: S.Schema<MacaroonNonce>;
1744
- export type RootVerifiedTokenPermissionTokenList = Array<number>;
1745
- export declare const RootVerifiedTokenPermissionTokenList: S.Schema<RootVerifiedTokenPermissionTokenList>;
1746
- export interface RootVerifiedToken {
1747
- caveats?: MacaroonCaveatSet;
1748
- header?: string;
1749
- nonce?: MacaroonNonce;
1750
- permission_token?: RootVerifiedTokenPermissionTokenList;
1838
+ export declare const ListMachinesOrgRequest: S.Schema<ListMachinesOrgRequest>;
1839
+ export type OrgMachinesResponseErrorRegionsList = Array<string>;
1840
+ export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
1841
+ export type MachineOverviewConfigMetadataMap = {
1842
+ [key: string]: string | undefined;
1843
+ };
1844
+ export declare const MachineOverviewConfigMetadataMap: S.Schema<MachineOverviewConfigMetadataMap>;
1845
+ export interface MachineOverviewConfig {
1846
+ guest?: FlyMachineGuest;
1847
+ image?: string;
1848
+ metadata?: MachineOverviewConfigMetadataMap;
1751
1849
  }
1752
- export declare const RootVerifiedToken: S.Schema<RootVerifiedToken>;
1753
- export type TokensAuthenticateResponseBodyList = Array<RootVerifiedToken>;
1754
- export declare const TokensAuthenticateResponseBodyList: S.Schema<TokensAuthenticateResponseBodyList>;
1755
- export type TokensAuthenticateResponse = TokensAuthenticateResponseBodyList;
1756
- export declare const TokensAuthenticateResponse: S.Schema<TokensAuthenticateResponse>;
1757
- export type RessetAction = 1 | 2 | 4 | 8 | 16 | 31 | 0;
1758
- export declare const RessetAction: any;
1759
- /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
1760
- export type MainTokenAccessCommandList = Array<string>;
1761
- export declare const MainTokenAccessCommandList: S.Schema<MainTokenAccessCommandList>;
1762
- export interface MainTokenAccess {
1763
- /** 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 */
1764
- action?: RessetAction | (number & {});
1765
- /** AppFeature is a named set of functionality associated with the app. If this is specified, the AppName field must be set. - images: images in the fly.io registry */
1766
- app_feature?: string;
1767
- /** AppName is the name of the app being accessed. */
1850
+ export declare const MachineOverviewConfig: S.Schema<MachineOverviewConfig>;
1851
+ export interface OrgMachine {
1768
1852
  app_name?: string;
1769
- /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
1770
- command?: MainTokenAccessCommandList;
1771
- /** MachineFeature is a named set of functionality associated with the machine. If this is specified, the Machine field must be set. - metadata: machine metadata service - oidc: OIDC tokens - kmstoken: Petsem tokens for KMS access */
1772
- machine_feature?: string;
1773
- /** MachineID is the ID of the machine being accessed (e.g. 7811701f564258). */
1774
- machine_id?: string;
1775
- /** Mutation is the GraphQL mutation being performed. */
1776
- mutation?: string;
1777
- /** OrgFeature is a named set of functionality associated with the organization. If this is specified, the OrgSlug field must be set. - wg: WireGuard peers - builder: remote builders - addon: addons - membership: organization membership - billing: billing - litefs-cloud: LiteFS Cloud - authentication: authentication settings */
1778
- org_feature?: string;
1779
- /** OrgSlug is the slug of the organization being accessed. */
1780
- org_slug?: string;
1781
- /** SourceMachine is the machine ID of the actor attempting access. */
1782
- source_machine?: string;
1783
- /** StorageObject is the storage object being accessed. If this is specified, the OrgSlug must be set. */
1784
- storage_object?: string;
1785
- /** VolumeID is the encoded ID of the volume being accessed (e.g. vol_r1p6pln1k9m9j7zr). */
1786
- volume_id?: string;
1787
- }
1788
- export declare const MainTokenAccess: S.Schema<MainTokenAccess>;
1789
- export interface TokensAuthorizeRequest {
1790
- access?: MainTokenAccess;
1791
- header?: string;
1792
- }
1793
- export declare const TokensAuthorizeRequest: S.Schema<TokensAuthorizeRequest>;
1794
- export type FlyioAccessCommandList = Array<string>;
1795
- export declare const FlyioAccessCommandList: S.Schema<FlyioAccessCommandList>;
1796
- export interface FlyioAccess {
1797
- action?: RessetAction;
1798
- app_feature?: string;
1799
- appid?: number;
1800
- cluster?: string;
1801
- command?: FlyioAccessCommandList;
1802
- feature?: string;
1803
- machine?: string;
1804
- machine_feature?: string;
1805
- mutation?: string;
1806
- orgid?: number;
1807
- sourceApp?: string;
1808
- sourceMachine?: string;
1809
- sourceOrganization?: string;
1810
- storage_object?: string;
1811
- volume?: string;
1812
- }
1813
- export declare const FlyioAccess: S.Schema<FlyioAccess>;
1814
- export interface AuthorizeResponse {
1815
- access?: FlyioAccess;
1816
- verified_token?: RootVerifiedToken;
1817
- }
1818
- export declare const AuthorizeResponse: S.Schema<AuthorizeResponse>;
1819
- export interface TokensRequestKmsRequest {
1820
- }
1821
- export declare const TokensRequestKmsRequest: S.Schema<TokensRequestKmsRequest>;
1822
- export interface TokensRequestKmsResponse {
1823
- }
1824
- export declare const TokensRequestKmsResponse: S.Schema<TokensRequestKmsResponse>;
1825
- export interface TokensRequestOIDCRequest {
1826
- aud?: string;
1827
- aws_principal_tags?: boolean;
1853
+ config?: MachineOverviewConfig;
1854
+ created_at?: string;
1855
+ id?: string;
1856
+ name?: string;
1857
+ private_ip?: string;
1858
+ region?: string;
1859
+ state?: string;
1860
+ updated_at?: string;
1861
+ version?: string;
1828
1862
  }
1829
- export declare const TokensRequestOIDCRequest: S.Schema<TokensRequestOIDCRequest>;
1830
- export interface TokensRequestOIDCResponse {
1863
+ export declare const OrgMachine: S.Schema<OrgMachine>;
1864
+ export type OrgMachinesResponseMachinesList = Array<OrgMachine>;
1865
+ export declare const OrgMachinesResponseMachinesList: S.Schema<OrgMachinesResponseMachinesList>;
1866
+ export interface OrgMachinesResponse {
1867
+ error_regions?: OrgMachinesResponseErrorRegionsList;
1868
+ last_machine_id?: string;
1869
+ last_updated_at?: string;
1870
+ machines?: OrgMachinesResponseMachinesList;
1871
+ next_cursor?: string;
1831
1872
  }
1832
- export declare const TokensRequestOIDCResponse: S.Schema<TokensRequestOIDCResponse>;
1833
- export interface VolumeDeleteRequest {
1873
+ export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
1874
+ export interface ListMachineVersionsRequest {
1834
1875
  /** Fly App Name */
1835
1876
  app_name: string;
1836
- /** Volume ID */
1837
- volume_id: string;
1877
+ /** Machine ID */
1878
+ machine_id: string;
1838
1879
  }
1839
- export declare const VolumeDeleteRequest: S.Schema<VolumeDeleteRequest>;
1840
- export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
1841
- export declare const VolumeHostStatus: any;
1842
- export type VolumeType = "local" | "cache";
1843
- export declare const VolumeType: any;
1844
- export interface Volume {
1845
- attached_alloc_id?: string;
1846
- attached_machine_id?: string;
1847
- auto_backup_enabled?: boolean;
1848
- block_size?: number;
1849
- blocks?: number;
1850
- blocks_avail?: number;
1851
- blocks_free?: number;
1852
- bytes_total?: number;
1853
- bytes_used?: number;
1880
+ export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
1881
+ export interface MachineVersion {
1882
+ user_config?: FlyMachineConfig;
1883
+ version?: string;
1884
+ }
1885
+ export declare const MachineVersion: S.Schema<MachineVersion>;
1886
+ export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
1887
+ export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
1888
+ export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
1889
+ export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
1890
+ export interface ListPostgresRequest {
1891
+ /** Fly Organization Slug */
1892
+ org_slug: string;
1893
+ /** Include deleted clusters */
1894
+ include_deleted?: boolean;
1895
+ }
1896
+ export declare const ListPostgresRequest: S.Schema<ListPostgresRequest>;
1897
+ /** Apps attached to the cluster. */
1898
+ export type PostgresClusterSummaryAttachedAppsList = Array<PostgresAttachedApp>;
1899
+ export declare const PostgresClusterSummaryAttachedAppsList: S.Schema<PostgresClusterSummaryAttachedAppsList>;
1900
+ /** Plan slug. */
1901
+ export type PostgresClusterSummaryPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
1902
+ export declare const PostgresClusterSummaryPlan: any;
1903
+ /** Current lifecycle status. */
1904
+ export type PostgresClusterSummaryStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
1905
+ export declare const PostgresClusterSummaryStatus: any;
1906
+ export interface PostgresClusterSummary {
1907
+ /** Apps attached to the cluster. */
1908
+ attached_apps?: PostgresClusterSummaryAttachedAppsList;
1909
+ /** RFC 3339 creation timestamp. */
1854
1910
  created_at?: string;
1855
- encrypted?: boolean;
1856
- fstype?: string;
1857
- host_status?: VolumeHostStatus;
1911
+ /** RFC 3339 deletion timestamp; present for deleted clusters. */
1912
+ deleted_at?: string;
1913
+ /** Cluster ID. */
1858
1914
  id?: string;
1915
+ /** Cluster name. */
1859
1916
  name?: string;
1917
+ /** Plan slug. */
1918
+ plan?: PostgresClusterSummaryPlan;
1919
+ /** Fly region code. */
1860
1920
  region?: string;
1861
- size_gb?: number;
1862
- snapshot_retention?: number;
1863
- state?: string;
1864
- type?: VolumeType;
1865
- zone?: string;
1921
+ /** Current lifecycle status. */
1922
+ status?: PostgresClusterSummaryStatus;
1923
+ }
1924
+ export declare const PostgresClusterSummary: S.Schema<PostgresClusterSummary>;
1925
+ export type ListPostgresClustersResponseDataList = Array<PostgresClusterSummary>;
1926
+ export declare const ListPostgresClustersResponseDataList: S.Schema<ListPostgresClustersResponseDataList>;
1927
+ export interface ListPostgresClustersResponse {
1928
+ data?: ListPostgresClustersResponseDataList;
1929
+ }
1930
+ export declare const ListPostgresClustersResponse: S.Schema<ListPostgresClustersResponse>;
1931
+ export interface ListPostgresBackupsRequest {
1932
+ /** Managed Postgres Cluster ID */
1933
+ postgres_cluster_id: string;
1934
+ }
1935
+ export declare const ListPostgresBackupsRequest: S.Schema<ListPostgresBackupsRequest>;
1936
+ /** Backup type. */
1937
+ export type PostgresBackupType = "full" | "incr" | "diff";
1938
+ export declare const PostgresBackupType: any;
1939
+ export interface PostgresBackup {
1940
+ /** RFC 3339 stop timestamp. */
1941
+ finished_at?: string;
1942
+ /** Backup ID. */
1943
+ id?: string;
1944
+ /** Backup size in bytes. */
1945
+ size_bytes?: number;
1946
+ /** RFC 3339 start timestamp. */
1947
+ started_at?: string;
1948
+ /** Backup status. */
1949
+ status?: string;
1950
+ /** Backup type. */
1951
+ type?: PostgresBackupType;
1952
+ }
1953
+ export declare const PostgresBackup: S.Schema<PostgresBackup>;
1954
+ export type ListPostgresBackupsResponseDataList = Array<PostgresBackup>;
1955
+ export declare const ListPostgresBackupsResponseDataList: S.Schema<ListPostgresBackupsResponseDataList>;
1956
+ export interface ListPostgresBackupsResponse {
1957
+ data?: ListPostgresBackupsResponseDataList;
1958
+ }
1959
+ export declare const ListPostgresBackupsResponse: S.Schema<ListPostgresBackupsResponse>;
1960
+ export interface ListPostgresDatabasesRequest {
1961
+ /** Managed Postgres Cluster ID */
1962
+ postgres_cluster_id: string;
1963
+ }
1964
+ export declare const ListPostgresDatabasesRequest: S.Schema<ListPostgresDatabasesRequest>;
1965
+ export type ListPostgresDatabasesResponseDataList = Array<PostgresDatabase>;
1966
+ export declare const ListPostgresDatabasesResponseDataList: S.Schema<ListPostgresDatabasesResponseDataList>;
1967
+ export interface ListPostgresDatabasesResponse {
1968
+ data?: ListPostgresDatabasesResponseDataList;
1969
+ }
1970
+ export declare const ListPostgresDatabasesResponse: S.Schema<ListPostgresDatabasesResponse>;
1971
+ export interface ListPostgresExtensionsRequest {
1972
+ /** Managed Postgres Cluster ID */
1973
+ postgres_cluster_id: string;
1974
+ /** Database Name */
1975
+ database_name: string;
1976
+ }
1977
+ export declare const ListPostgresExtensionsRequest: S.Schema<ListPostgresExtensionsRequest>;
1978
+ export interface PostgresInstalledExtension {
1979
+ /** Schema the extension is installed into. */
1980
+ schema?: string;
1981
+ /** Installed version. */
1982
+ version?: string;
1866
1983
  }
1867
- export declare const Volume: S.Schema<Volume>;
1868
- export interface VolumesCreateRequest {
1869
- /** Fly App Name */
1870
- app_name: string;
1871
- /** enable scheduled automatic snapshots. Defaults to `true` */
1872
- auto_backup_enabled?: boolean;
1873
- compute?: FlyMachineGuest;
1874
- compute_image?: string;
1875
- encrypted?: boolean;
1876
- fstype?: string;
1984
+ export declare const PostgresInstalledExtension: S.Schema<PostgresInstalledExtension>;
1985
+ export interface PostgresExtension {
1986
+ /** Default version installed when enabled. */
1987
+ default_version?: string;
1988
+ /** Human-readable description. */
1989
+ description?: string;
1990
+ /** Installation details, or null when the extension is not installed. */
1991
+ installed?: PostgresInstalledExtension;
1992
+ /** Extension name. */
1877
1993
  name?: string;
1878
- region?: string;
1879
- require_unique_zone?: boolean;
1880
- size_gb?: number;
1881
- /** restore from snapshot */
1882
- snapshot_id?: string;
1883
- snapshot_retention?: number;
1884
- /** fork from remote volume */
1885
- source_volume_id?: string;
1886
- unique_zone_app_wide?: boolean;
1994
+ /** Whether this is a system extension that cannot be disabled. */
1995
+ system?: boolean;
1996
+ }
1997
+ export declare const PostgresExtension: S.Schema<PostgresExtension>;
1998
+ export type ListPostgresExtensionsResponseDataList = Array<PostgresExtension>;
1999
+ export declare const ListPostgresExtensionsResponseDataList: S.Schema<ListPostgresExtensionsResponseDataList>;
2000
+ export interface ListPostgresExtensionsResponse {
2001
+ data?: ListPostgresExtensionsResponseDataList;
1887
2002
  }
1888
- export declare const VolumesCreateRequest: S.Schema<VolumesCreateRequest>;
1889
- export interface VolumesExtendRequest {
2003
+ export declare const ListPostgresExtensionsResponse: S.Schema<ListPostgresExtensionsResponse>;
2004
+ export interface ListPostgresUsersRequest {
2005
+ /** Managed Postgres Cluster ID */
2006
+ postgres_cluster_id: string;
2007
+ }
2008
+ export declare const ListPostgresUsersRequest: S.Schema<ListPostgresUsersRequest>;
2009
+ export type ListPostgresUsersResponseDataList = Array<PostgresUser>;
2010
+ export declare const ListPostgresUsersResponseDataList: S.Schema<ListPostgresUsersResponseDataList>;
2011
+ export interface ListPostgresUsersResponse {
2012
+ data?: ListPostgresUsersResponseDataList;
2013
+ }
2014
+ export declare const ListPostgresUsersResponse: S.Schema<ListPostgresUsersResponse>;
2015
+ export interface ListSecretKeysRequest {
1890
2016
  /** Fly App Name */
1891
2017
  app_name: string;
1892
- /** Volume ID */
1893
- volume_id: string;
1894
- size_gb?: number;
2018
+ /** Minimum secrets version to return. Returned when setting a new secret */
2019
+ min_version?: string;
2020
+ /** Comma-seperated list of secret keys to list */
2021
+ types?: string;
1895
2022
  }
1896
- export declare const VolumesExtendRequest: S.Schema<VolumesExtendRequest>;
1897
- export interface ExtendVolumeResponse {
1898
- needs_restart?: boolean;
1899
- volume?: Volume;
2023
+ export declare const ListSecretKeysRequest: S.Schema<ListSecretKeysRequest>;
2024
+ export type SecretKeysSecretKeysList = Array<SecretKey>;
2025
+ export declare const SecretKeysSecretKeysList: S.Schema<SecretKeysSecretKeysList>;
2026
+ export interface SecretKeys {
2027
+ secret_keys?: SecretKeysSecretKeysList;
1900
2028
  }
1901
- export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
1902
- export interface VolumesGetByIdRequest {
2029
+ export declare const SecretKeys: S.Schema<SecretKeys>;
2030
+ export interface ListSecretsRequest {
1903
2031
  /** Fly App Name */
1904
2032
  app_name: string;
1905
- /** Volume ID */
1906
- volume_id: string;
2033
+ /** Minimum secrets version to return. Returned when setting a new secret */
2034
+ min_version?: string;
2035
+ /** Show the secret values. */
2036
+ show_secrets?: boolean;
1907
2037
  }
1908
- export declare const VolumesGetByIdRequest: S.Schema<VolumesGetByIdRequest>;
1909
- export interface VolumesListRequest {
2038
+ export declare const ListSecretsRequest: S.Schema<ListSecretsRequest>;
2039
+ export type AppSecretsSecretsList = Array<AppSecret>;
2040
+ export declare const AppSecretsSecretsList: S.Schema<AppSecretsSecretsList>;
2041
+ export interface AppSecrets {
2042
+ secrets?: AppSecretsSecretsList;
2043
+ }
2044
+ export declare const AppSecrets: S.Schema<AppSecrets>;
2045
+ export interface ListVolumesRequest {
1910
2046
  /** Fly App Name */
1911
2047
  app_name: string;
1912
2048
  /** Only return summary info about volumes (omit blocks, block size, etc) */
1913
2049
  summary?: boolean;
1914
2050
  }
1915
- export declare const VolumesListRequest: S.Schema<VolumesListRequest>;
1916
- export type VolumesListResponseBodyList = Array<Volume>;
1917
- export declare const VolumesListResponseBodyList: S.Schema<VolumesListResponseBodyList>;
1918
- export type VolumesListResponse = VolumesListResponseBodyList;
1919
- export declare const VolumesListResponse: S.Schema<VolumesListResponse>;
1920
- export interface VolumesListSnapshotsRequest {
2051
+ export declare const ListVolumesRequest: S.Schema<ListVolumesRequest>;
2052
+ export type ListVolumesResponseBodyList = Array<Volume>;
2053
+ export declare const ListVolumesResponseBodyList: S.Schema<ListVolumesResponseBodyList>;
2054
+ export type ListVolumesResponse = ListVolumesResponseBodyList;
2055
+ export declare const ListVolumesResponse: S.Schema<ListVolumesResponse>;
2056
+ export interface ListVolumeSnapshotsRequest {
1921
2057
  /** Fly App Name */
1922
2058
  app_name: string;
1923
2059
  /** Volume ID */
1924
2060
  volume_id: string;
1925
2061
  }
1926
- export declare const VolumesListSnapshotsRequest: S.Schema<VolumesListSnapshotsRequest>;
2062
+ export declare const ListVolumeSnapshotsRequest: S.Schema<ListVolumeSnapshotsRequest>;
1927
2063
  export interface VolumeSnapshot {
1928
2064
  created_at?: string;
1929
2065
  digest?: string;
@@ -1934,11 +2070,11 @@ export interface VolumeSnapshot {
1934
2070
  volume_size?: number;
1935
2071
  }
1936
2072
  export declare const VolumeSnapshot: S.Schema<VolumeSnapshot>;
1937
- export type VolumesListSnapshotsResponseBodyList = Array<VolumeSnapshot>;
1938
- export declare const VolumesListSnapshotsResponseBodyList: S.Schema<VolumesListSnapshotsResponseBodyList>;
1939
- export type VolumesListSnapshotsResponse = VolumesListSnapshotsResponseBodyList;
1940
- export declare const VolumesListSnapshotsResponse: S.Schema<VolumesListSnapshotsResponse>;
1941
- export interface VolumesOrgListRequest {
2073
+ export type ListVolumeSnapshotsResponseBodyList = Array<VolumeSnapshot>;
2074
+ export declare const ListVolumeSnapshotsResponseBodyList: S.Schema<ListVolumeSnapshotsResponseBodyList>;
2075
+ export type ListVolumeSnapshotsResponse = ListVolumeSnapshotsResponseBodyList;
2076
+ export declare const ListVolumeSnapshotsResponse: S.Schema<ListVolumeSnapshotsResponse>;
2077
+ export interface ListVolumesOrgRequest {
1942
2078
  /** Fly Organization Slug */
1943
2079
  org_slug: string;
1944
2080
  /** Include deleted volumes */
@@ -1956,7 +2092,7 @@ export interface VolumesOrgListRequest {
1956
2092
  /** 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 */
1957
2093
  limit?: number;
1958
2094
  }
1959
- export declare const VolumesOrgListRequest: S.Schema<VolumesOrgListRequest>;
2095
+ export declare const ListVolumesOrgRequest: S.Schema<ListVolumesOrgRequest>;
1960
2096
  export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
1961
2097
  export declare const OrgVolumeHostStatus: any;
1962
2098
  export type OrgVolumeType = "local" | "cache";
@@ -1996,7 +2132,278 @@ export interface OrgVolumesResponse {
1996
2132
  volumes?: OrgVolumesResponseVolumesList;
1997
2133
  }
1998
2134
  export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
1999
- export interface VolumesUpdateRequest {
2135
+ export interface MachinesReleaseLeaseRequest {
2136
+ /** Fly App Name */
2137
+ app_name: string;
2138
+ /** Machine ID */
2139
+ machine_id: string;
2140
+ }
2141
+ export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
2142
+ export interface MachinesReleaseLeaseResponse {
2143
+ }
2144
+ export declare const MachinesReleaseLeaseResponse: S.Schema<MachinesReleaseLeaseResponse>;
2145
+ export type PatchMachineMetadataRequestMetadataMap = {
2146
+ [key: string]: string | undefined;
2147
+ };
2148
+ export declare const PatchMachineMetadataRequestMetadataMap: S.Schema<PatchMachineMetadataRequestMetadataMap>;
2149
+ export interface PatchMachineMetadataRequest {
2150
+ /** Fly App Name */
2151
+ app_name: string;
2152
+ /** Machine ID */
2153
+ machine_id: string;
2154
+ machine_version?: string;
2155
+ metadata?: PatchMachineMetadataRequestMetadataMap;
2156
+ updated_at?: string;
2157
+ }
2158
+ export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataRequest>;
2159
+ export interface PatchMachineMetadataResponse {
2160
+ }
2161
+ export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
2162
+ export interface PostgresUsersCredentialsRequest {
2163
+ /** Managed Postgres Cluster ID */
2164
+ postgres_cluster_id: string;
2165
+ /** Postgres User Name */
2166
+ username: string;
2167
+ }
2168
+ export declare const PostgresUsersCredentialsRequest: S.Schema<PostgresUsersCredentialsRequest>;
2169
+ export interface PostgresUserCredentials {
2170
+ /** User password. */
2171
+ password?: string;
2172
+ /** User name. */
2173
+ username?: string;
2174
+ }
2175
+ export declare const PostgresUserCredentials: S.Schema<PostgresUserCredentials>;
2176
+ export interface GetPostgresUserCredentialsResponse {
2177
+ data?: PostgresUserCredentials;
2178
+ }
2179
+ export declare const GetPostgresUserCredentialsResponse: S.Schema<GetPostgresUserCredentialsResponse>;
2180
+ export interface ReclaimMachineMemoryRequest {
2181
+ /** Fly App Name */
2182
+ app_name: string;
2183
+ /** Machine ID */
2184
+ machine_id: string;
2185
+ amount_mb?: number;
2186
+ }
2187
+ export declare const ReclaimMachineMemoryRequest: S.Schema<ReclaimMachineMemoryRequest>;
2188
+ export interface MainReclaimMemoryResponse {
2189
+ actual_mb?: number;
2190
+ }
2191
+ export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
2192
+ export interface RequestKmsTokenRequest {
2193
+ }
2194
+ export declare const RequestKmsTokenRequest: S.Schema<RequestKmsTokenRequest>;
2195
+ export interface RequestKmsTokenResponse {
2196
+ }
2197
+ export declare const RequestKmsTokenResponse: S.Schema<RequestKmsTokenResponse>;
2198
+ export interface RequestOidcTokenRequest {
2199
+ aud?: string;
2200
+ aws_principal_tags?: boolean;
2201
+ }
2202
+ export declare const RequestOidcTokenRequest: S.Schema<RequestOidcTokenRequest>;
2203
+ export interface RequestOidcTokenResponse {
2204
+ }
2205
+ export declare const RequestOidcTokenResponse: S.Schema<RequestOidcTokenResponse>;
2206
+ export type RestartMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
2207
+ export declare const RestartMachineRequestSignal: any;
2208
+ export interface RestartMachineRequest {
2209
+ /** Fly App Name */
2210
+ app_name: string;
2211
+ /** Machine ID */
2212
+ machine_id: string;
2213
+ /** Restart timeout as a Go duration string or number of seconds */
2214
+ timeout?: string;
2215
+ /** Unix signal name */
2216
+ signal?: RestartMachineRequestSignal | (string & {});
2217
+ }
2218
+ export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
2219
+ export interface RestartMachineResponse {
2220
+ }
2221
+ export declare const RestartMachineResponse: S.Schema<RestartMachineResponse>;
2222
+ export interface RestorePostgresRequest {
2223
+ /** Managed Postgres Cluster ID */
2224
+ postgres_cluster_id: string;
2225
+ /** Backup label to restore from, as returned by the backups list. Mutually exclusive with pitr_time. */
2226
+ backup_id?: string;
2227
+ /** Name for the restored cluster. Defaults to a generated name derived from the source cluster and backup/point in time when omitted or blank. */
2228
+ name?: string;
2229
+ /** 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. */
2230
+ pitr_time?: string;
2231
+ }
2232
+ export declare const RestorePostgresRequest: S.Schema<RestorePostgresRequest>;
2233
+ export interface RotatePostgresUserPasswordRequest {
2234
+ /** Managed Postgres Cluster ID */
2235
+ postgres_cluster_id: string;
2236
+ /** Postgres User Name */
2237
+ username: string;
2238
+ /** Terminate the user's existing sessions after rotating. */
2239
+ kill_sessions?: boolean;
2240
+ }
2241
+ export declare const RotatePostgresUserPasswordRequest: S.Schema<RotatePostgresUserPasswordRequest>;
2242
+ export interface RotatePostgresPasswordResponse {
2243
+ data?: PostgresUserCredentials;
2244
+ }
2245
+ export declare const RotatePostgresPasswordResponse: S.Schema<RotatePostgresPasswordResponse>;
2246
+ export interface SetMachineMemoryLimitRequest {
2247
+ /** Fly App Name */
2248
+ app_name: string;
2249
+ /** Machine ID */
2250
+ machine_id: string;
2251
+ limit_mb?: number;
2252
+ }
2253
+ export declare const SetMachineMemoryLimitRequest: S.Schema<SetMachineMemoryLimitRequest>;
2254
+ export type SetSecretKeyRequestValueList = Array<number>;
2255
+ export declare const SetSecretKeyRequestValueList: S.Schema<SetSecretKeyRequestValueList>;
2256
+ export interface SetSecretKeyRequest {
2257
+ /** Fly App Name */
2258
+ app_name: string;
2259
+ /** Secret key name */
2260
+ secret_name: string;
2261
+ type?: string;
2262
+ value?: SetSecretKeyRequestValueList;
2263
+ }
2264
+ export declare const SetSecretKeyRequest: S.Schema<SetSecretKeyRequest>;
2265
+ export type SignalMachineRequestSignal = "SIGABRT" | "SIGALRM" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGKILL" | "SIGPIPE" | "SIGQUIT" | "SIGSEGV" | "SIGTERM" | "SIGTRAP" | "SIGUSR1" | "SIGUSR2";
2266
+ export declare const SignalMachineRequestSignal: any;
2267
+ export interface SignalMachineRequest {
2268
+ /** Fly App Name */
2269
+ app_name: string;
2270
+ /** Machine ID */
2271
+ machine_id: string;
2272
+ signal?: SignalMachineRequestSignal | (string & {});
2273
+ }
2274
+ export declare const SignalMachineRequest: S.Schema<SignalMachineRequest>;
2275
+ export interface SignalMachineResponse {
2276
+ }
2277
+ export declare const SignalMachineResponse: S.Schema<SignalMachineResponse>;
2278
+ export interface SignSecretKeyRequest {
2279
+ /** Fly App Name */
2280
+ app_name: string;
2281
+ /** Secret key name */
2282
+ secret_name: string;
2283
+ /** Minimum secrets version to return. Returned when setting a new secret */
2284
+ min_version?: string;
2285
+ plaintext?: string;
2286
+ }
2287
+ export declare const SignSecretKeyRequest: S.Schema<SignSecretKeyRequest>;
2288
+ export interface SignSecretkeyResponse {
2289
+ signature?: string;
2290
+ }
2291
+ export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
2292
+ export interface StartMachineRequest {
2293
+ /** Fly App Name */
2294
+ app_name: string;
2295
+ /** Machine ID */
2296
+ machine_id: string;
2297
+ }
2298
+ export declare const StartMachineRequest: S.Schema<StartMachineRequest>;
2299
+ export interface StartMachineResponse {
2300
+ }
2301
+ export declare const StartMachineResponse: S.Schema<StartMachineResponse>;
2302
+ export type StopMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
2303
+ export declare const StopMachineRequestSignal: any;
2304
+ export interface StopMachineRequest {
2305
+ /** Fly App Name */
2306
+ app_name: string;
2307
+ /** Machine ID */
2308
+ machine_id: string;
2309
+ signal?: StopMachineRequestSignal | (string & {});
2310
+ timeout?: string;
2311
+ }
2312
+ export declare const StopMachineRequest: S.Schema<StopMachineRequest>;
2313
+ export interface StopMachineResponse {
2314
+ }
2315
+ export declare const StopMachineResponse: S.Schema<StopMachineResponse>;
2316
+ export interface SuspendMachineRequest {
2317
+ /** Fly App Name */
2318
+ app_name: string;
2319
+ /** Machine ID */
2320
+ machine_id: string;
2321
+ }
2322
+ export declare const SuspendMachineRequest: S.Schema<SuspendMachineRequest>;
2323
+ export interface SuspendMachineResponse {
2324
+ }
2325
+ export declare const SuspendMachineResponse: S.Schema<SuspendMachineResponse>;
2326
+ export interface UncordonMachineRequest {
2327
+ /** Fly App Name */
2328
+ app_name: string;
2329
+ /** Machine ID */
2330
+ machine_id: string;
2331
+ }
2332
+ export declare const UncordonMachineRequest: S.Schema<UncordonMachineRequest>;
2333
+ export interface UncordonMachineResponse {
2334
+ }
2335
+ export declare const UncordonMachineResponse: S.Schema<UncordonMachineResponse>;
2336
+ export interface UpdateMachineRequest {
2337
+ /** Fly App Name */
2338
+ app_name: string;
2339
+ /** Machine ID */
2340
+ machine_id: string;
2341
+ /** An object defining the Machine configuration */
2342
+ config?: FlyMachineConfig;
2343
+ current_version?: string;
2344
+ lease_ttl?: number;
2345
+ min_secrets_version?: number;
2346
+ /** Unique name for this Machine. If omitted, one is generated for you */
2347
+ name?: string;
2348
+ /** The target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you). */
2349
+ region?: string;
2350
+ skip_launch?: boolean;
2351
+ skip_secrets?: boolean;
2352
+ skip_service_registration?: boolean;
2353
+ }
2354
+ export declare const UpdateMachineRequest: S.Schema<UpdateMachineRequest>;
2355
+ export type UpdateMachineMetadataRequestMetadataMap = {
2356
+ [key: string]: string | undefined;
2357
+ };
2358
+ export declare const UpdateMachineMetadataRequestMetadataMap: S.Schema<UpdateMachineMetadataRequestMetadataMap>;
2359
+ export interface UpdateMachineMetadataRequest {
2360
+ /** Fly App Name */
2361
+ app_name: string;
2362
+ /** Machine ID */
2363
+ machine_id: string;
2364
+ machine_version?: string;
2365
+ metadata?: UpdateMachineMetadataRequestMetadataMap;
2366
+ updated_at?: string;
2367
+ }
2368
+ export declare const UpdateMachineMetadataRequest: S.Schema<UpdateMachineMetadataRequest>;
2369
+ export interface UpdateMachineMetadataResponse {
2370
+ }
2371
+ export declare const UpdateMachineMetadataResponse: S.Schema<UpdateMachineMetadataResponse>;
2372
+ /** New role for the user. */
2373
+ export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
2374
+ export declare const UpdatePostgresUserRoleRequestRole: any;
2375
+ export interface UpdatePostgresUserRoleRequest {
2376
+ /** Managed Postgres Cluster ID */
2377
+ postgres_cluster_id: string;
2378
+ /** Postgres User Name */
2379
+ username: string;
2380
+ /** New role for the user. */
2381
+ role: UpdatePostgresUserRoleRequestRole | (string & {});
2382
+ }
2383
+ export declare const UpdatePostgresUserRoleRequest: S.Schema<UpdatePostgresUserRoleRequest>;
2384
+ export interface UpdatePostgresUserRoleResponse {
2385
+ }
2386
+ export declare const UpdatePostgresUserRoleResponse: S.Schema<UpdatePostgresUserRoleResponse>;
2387
+ export type UpdateSecretsRequestValuesMap = {
2388
+ [key: string]: string | undefined;
2389
+ };
2390
+ export declare const UpdateSecretsRequestValuesMap: S.Schema<UpdateSecretsRequestValuesMap>;
2391
+ export interface UpdateSecretsRequest {
2392
+ /** Fly App Name */
2393
+ app_name: string;
2394
+ values?: UpdateSecretsRequestValuesMap;
2395
+ }
2396
+ export declare const UpdateSecretsRequest: S.Schema<UpdateSecretsRequest>;
2397
+ export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
2398
+ export declare const AppSecretsUpdateRespSecretsList: S.Schema<AppSecretsUpdateRespSecretsList>;
2399
+ export interface AppSecretsUpdateResp {
2400
+ /** DEPRECATED */
2401
+ Version?: number;
2402
+ secrets?: AppSecretsUpdateRespSecretsList;
2403
+ version?: number;
2404
+ }
2405
+ export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
2406
+ export interface UpdateVolumeRequest {
2000
2407
  /** Fly App Name */
2001
2408
  app_name: string;
2002
2409
  /** Volume ID */
@@ -2004,233 +2411,353 @@ export interface VolumesUpdateRequest {
2004
2411
  auto_backup_enabled?: boolean;
2005
2412
  snapshot_retention?: number;
2006
2413
  }
2007
- export declare const VolumesUpdateRequest: S.Schema<VolumesUpdateRequest>;
2008
- export type AppCertificatesAcmeCreateError = BadRequest | Forbidden | NotFound | UnprocessableEntity | FlyIoOpError;
2009
- /** Request ACME certificate */
2010
- export declare const appCertificatesAcmeCreate: API.OperationMethod<AppCertificatesAcmeCreateRequest, CertificateDetail, AppCertificatesAcmeCreateError, FlyIoOpContext>;
2011
- export type AppCertificatesAcmeDeleteError = Forbidden | NotFound | FlyIoOpError;
2012
- /** Remove ACME certificates */
2013
- export declare const appCertificatesAcmeDelete: API.OperationMethod<AppCertificatesAcmeDeleteRequest, CertificateDetail, AppCertificatesAcmeDeleteError, FlyIoOpContext>;
2014
- export type AppCertificatesCheckError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2414
+ export declare const UpdateVolumeRequest: S.Schema<UpdateVolumeRequest>;
2415
+ export interface UpsertMachineMetadataRequest {
2416
+ /** Fly App Name */
2417
+ app_name: string;
2418
+ /** Machine ID */
2419
+ machine_id: string;
2420
+ /** Metadata Key */
2421
+ key: string;
2422
+ updated_at?: string;
2423
+ value?: string;
2424
+ }
2425
+ export declare const UpsertMachineMetadataRequest: S.Schema<UpsertMachineMetadataRequest>;
2426
+ export interface UpsertMachineMetadataResponse {
2427
+ }
2428
+ export declare const UpsertMachineMetadataResponse: S.Schema<UpsertMachineMetadataResponse>;
2429
+ export interface VerifySecretKeyRequest {
2430
+ /** Fly App Name */
2431
+ app_name: string;
2432
+ /** Secret key name */
2433
+ secret_name: string;
2434
+ /** Minimum secrets version to return. Returned when setting a new secret */
2435
+ min_version?: string;
2436
+ plaintext?: string;
2437
+ signature?: string;
2438
+ }
2439
+ export declare const VerifySecretKeyRequest: S.Schema<VerifySecretKeyRequest>;
2440
+ export interface VerifySecretKeyResponse {
2441
+ }
2442
+ export declare const VerifySecretKeyResponse: S.Schema<VerifySecretKeyResponse>;
2443
+ export type WaitMachineRequestState = "started" | "stopped" | "suspended" | "destroyed" | "failed" | "settled";
2444
+ export declare const WaitMachineRequestState: any;
2445
+ export interface WaitMachineRequest {
2446
+ /** Fly App Name */
2447
+ app_name: string;
2448
+ /** Machine ID */
2449
+ machine_id: string;
2450
+ /** 26-character Machine version ID */
2451
+ version?: string;
2452
+ /** 26-character Machine version ID (deprecated; use version) */
2453
+ instance_id?: string;
2454
+ /** 26-character Machine event ID to start waiting after */
2455
+ from_event_id?: string;
2456
+ /** wait timeout. default 60s */
2457
+ timeout?: number;
2458
+ /** desired state(s), supports repeated or comma-separated values */
2459
+ state?: WaitMachineRequestState | (string & {});
2460
+ }
2461
+ export declare const WaitMachineRequest: S.Schema<WaitMachineRequest>;
2462
+ export interface WaitMachineResponse {
2463
+ event_id?: string;
2464
+ ok?: boolean;
2465
+ state?: string;
2466
+ version?: string;
2467
+ }
2468
+ export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
2469
+ export type AuthenticateTokenError = BadRequest | FlyIoOpError;
2470
+ /** Authenticate token header Verify a token header without checking resource access. */
2471
+ export declare const authenticateToken: API.OperationMethod<AuthenticateTokenRequest, AuthenticateTokenResponse, AuthenticateTokenError, FlyIoOpContext>;
2472
+ export type AuthorizeTokenError = BadRequest | FlyIoOpError;
2473
+ /** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
2474
+ export declare const authorizeToken: API.OperationMethod<AuthorizeTokenRequest, AuthorizeResponse, AuthorizeTokenError, FlyIoOpContext>;
2475
+ export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2015
2476
  /** Check DNS and re-validate certificate */
2016
- export declare const appCertificatesCheck: API.OperationMethod<AppCertificatesCheckRequest, CertificateCheckResponse, AppCertificatesCheckError, FlyIoOpContext>;
2017
- export type AppCertificatesCustomCreateError = BadRequest | Forbidden | NotFound | UnprocessableEntity | FlyIoOpError;
2477
+ export declare const checkAppCertificate: API.OperationMethod<CheckAppCertificateRequest, CertificateCheckResponse, CheckAppCertificateError, FlyIoOpContext>;
2478
+ export type CordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2479
+ /** 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. */
2480
+ export declare const cordonMachine: API.OperationMethod<CordonMachineRequest, CordonMachineResponse, CordonMachineError, FlyIoOpContext>;
2481
+ export type CreateAppError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2482
+ /** Create App Create an app with the specified details in the request body. */
2483
+ export declare const createApp: API.OperationMethod<CreateAppRequest, CreateAppResponse, CreateAppError, FlyIoOpContext>;
2484
+ export type CreateAppAcmeCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2485
+ /** Request ACME certificate */
2486
+ export declare const createAppAcmeCertificate: API.OperationMethod<CreateAppAcmeCertificateRequest, CertificateDetail, CreateAppAcmeCertificateError, FlyIoOpContext>;
2487
+ export type CreateAppCustomCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2018
2488
  /** Upload custom certificate */
2019
- export declare const appCertificatesCustomCreate: API.OperationMethod<AppCertificatesCustomCreateRequest, CertificateDetail, AppCertificatesCustomCreateError, FlyIoOpContext>;
2020
- export type AppCertificatesCustomDeleteError = Forbidden | NotFound | FlyIoOpError;
2021
- /** Remove custom certificate */
2022
- export declare const appCertificatesCustomDelete: API.OperationMethod<AppCertificatesCustomDeleteRequest, DestroyCustomCertificateResponse, AppCertificatesCustomDeleteError, FlyIoOpContext>;
2023
- export type AppCertificatesDeleteError = Forbidden | NotFound | FlyIoOpError;
2024
- /** Remove certificate */
2025
- export declare const appCertificatesDelete: API.OperationMethod<AppCertificatesDeleteRequest, AppCertificatesDeleteResponse, AppCertificatesDeleteError, FlyIoOpContext>;
2026
- export type AppCertificatesListError = Forbidden | NotFound | FlyIoOpError;
2027
- /** List certificates for app */
2028
- export declare const appCertificatesList: API.OperationMethod<AppCertificatesListRequest, ListCertificatesResponse, AppCertificatesListError, FlyIoOpContext>;
2029
- export type AppCertificatesShowError = Forbidden | NotFound | FlyIoOpError;
2030
- /** Get certificate details */
2031
- export declare const appCertificatesShow: API.OperationMethod<AppCertificatesShowRequest, CertificateDetail, AppCertificatesShowError, FlyIoOpContext>;
2032
- export type AppCreateDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2489
+ export declare const createAppCustomCertificate: API.OperationMethod<CreateAppCustomCertificateRequest, CertificateDetail, CreateAppCustomCertificateError, FlyIoOpContext>;
2490
+ export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2033
2491
  /** Create App deploy token */
2034
- export declare const appCreateDeployToken: API.OperationMethod<AppCreateDeployTokenRequest, CreateAppResponse, AppCreateDeployTokenError, FlyIoOpContext>;
2035
- export type AppIPAssignmentsCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2492
+ export declare const createAppDeployToken: API.OperationMethod<CreateAppDeployTokenRequest, CreateAppDeployTokenResponse, CreateAppDeployTokenError, FlyIoOpContext>;
2493
+ export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2036
2494
  /** Assign new IP address to app */
2037
- export declare const appIPAssignmentsCreate: API.OperationMethod<AppIPAssignmentsCreateRequest, IPAssignment, AppIPAssignmentsCreateError, FlyIoOpContext>;
2038
- export type AppIPAssignmentsDeleteError = Forbidden | NotFound | FlyIoOpError;
2039
- /** Remove IP assignment from app */
2040
- export declare const appIPAssignmentsDelete: API.OperationMethod<AppIPAssignmentsDeleteRequest, AppIPAssignmentsDeleteResponse, AppIPAssignmentsDeleteError, FlyIoOpContext>;
2041
- export type AppIPAssignmentsListError = Forbidden | NotFound | FlyIoOpError;
2042
- /** List IP assignments for app */
2043
- export declare const appIPAssignmentsList: API.OperationMethod<AppIPAssignmentsListRequest, ListIPAssignmentsResponse, AppIPAssignmentsListError, FlyIoOpContext>;
2044
- export type AppsCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2045
- /** Create App Create an app with the specified details in the request body. */
2046
- export declare const appsCreate: API.OperationMethod<AppsCreateRequest, AppsCreateResponse, AppsCreateError, FlyIoOpContext>;
2047
- export type AppsDeleteError = Forbidden | NotFound | FlyIoOpError;
2048
- /** Destroy App Delete an app by its name. */
2049
- export declare const appsDelete: API.OperationMethod<AppsDeleteRequest, AppsDeleteResponse, AppsDeleteError, FlyIoOpContext>;
2050
- export type AppsListError = Forbidden | FlyIoOpError;
2051
- /** List Apps List all apps with the ability to filter by organization slug. */
2052
- export declare const appsList: API.OperationMethod<AppsListRequest, ListAppsResponse, AppsListError, FlyIoOpContext>;
2053
- export type AppsShowError = Forbidden | NotFound | FlyIoOpError;
2054
- /** Get App Retrieve details about a specific app by its name. */
2055
- export declare const appsShow: API.OperationMethod<AppsShowRequest, App, AppsShowError, FlyIoOpContext>;
2056
- export type CreateVolumeSnapshotError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2057
- /** Create Snapshot Create a snapshot for a specific volume within an app. */
2058
- export declare const createVolumeSnapshot: API.OperationMethod<CreateVolumeSnapshotRequest, CreateVolumeSnapshotResponse, CreateVolumeSnapshotError, FlyIoOpContext>;
2059
- export type CurrentTokenShowError = FlyIoOpError;
2060
- /** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
2061
- export declare const currentTokenShow: API.OperationMethod<CurrentTokenShowRequest, CurrentTokenResponse, CurrentTokenShowError, FlyIoOpContext>;
2062
- export type MachinesCordonError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2063
- /** 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. */
2064
- export declare const machinesCordon: API.OperationMethod<MachinesCordonRequest, MachinesCordonResponse, MachinesCordonError, FlyIoOpContext>;
2065
- export type MachinesCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2495
+ export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, AssignIPResponse, CreateAppIPAssignmentError, FlyIoOpContext>;
2496
+ export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2066
2497
  /** 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! */
2067
- export declare const machinesCreate: API.OperationMethod<MachinesCreateRequest, Machine, MachinesCreateError, FlyIoOpContext>;
2068
- export type MachinesCreateLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2498
+ export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
2499
+ export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2069
2500
  /** 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. */
2070
- export declare const machinesCreateLease: API.OperationMethod<MachinesCreateLeaseRequest, Lease, MachinesCreateLeaseError, FlyIoOpContext>;
2071
- export type MachinesDeleteError = Forbidden | NotFound | FlyIoOpError;
2501
+ export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest, Lease, CreateMachineLeaseError, FlyIoOpContext>;
2502
+ export type CreatePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2503
+ /** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous, and a name is generated when one is not supplied. */
2504
+ export declare const createPostgres: API.OperationMethod<CreatePostgresRequest, ShowPostgresClusterResponse, CreatePostgresError, FlyIoOpContext>;
2505
+ export type CreatePostgresAttachmentError = NotFound | FlyIoOpError;
2506
+ /** Attach Cluster to App Attach a specific cluster to a Fly app. The attachment is created if it does not already exist. */
2507
+ export declare const createPostgresAttachment: API.OperationMethod<CreatePostgresAttachmentRequest, CreatePostgresAttachmentResponse, CreatePostgresAttachmentError, FlyIoOpContext>;
2508
+ export type CreatePostgresBackupError = NotFound | Conflict | FlyIoOpError;
2509
+ /** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
2510
+ export declare const createPostgresBackup: API.OperationMethod<CreatePostgresBackupRequest, CreatePostgresBackupResponse, CreatePostgresBackupError, FlyIoOpContext>;
2511
+ export type CreatePostgresDatabaseError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2512
+ /** Create Database Create a database within a specific cluster. */
2513
+ export declare const createPostgresDatabase: API.OperationMethod<CreatePostgresDatabaseRequest, PostgresDatabaseResponse, CreatePostgresDatabaseError, FlyIoOpContext>;
2514
+ export type CreatePostgresUserError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2515
+ /** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
2516
+ export declare const createPostgresUser: API.OperationMethod<CreatePostgresUserRequest, CreatePostgresUserResponse, CreatePostgresUserError, FlyIoOpContext>;
2517
+ export type CreateSecretError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2518
+ /** Create or update Secret */
2519
+ export declare const createSecret: API.OperationMethod<CreateSecretRequest, SetAppSecretResponse, CreateSecretError, FlyIoOpContext>;
2520
+ export type CreateVolumeError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2521
+ /** Create Volume Create a volume for a specific app using the details provided in the request body. */
2522
+ export declare const createVolume: API.OperationMethod<CreateVolumeRequest, Volume, CreateVolumeError, FlyIoOpContext>;
2523
+ export type CreateVolumeSnapshotError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2524
+ /** Create Snapshot Create a snapshot for a specific volume within an app. */
2525
+ export declare const createVolumeSnapshot: API.OperationMethod<CreateVolumeSnapshotRequest, CreateVolumeSnapshotResponse, CreateVolumeSnapshotError, FlyIoOpContext>;
2526
+ export type DecryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2527
+ /** Decrypt with a secret key */
2528
+ export declare const decryptSecretKey: API.OperationMethod<DecryptSecretKeyRequest, DecryptSecretkeyResponse, DecryptSecretKeyError, FlyIoOpContext>;
2529
+ export type DeleteAppError = Forbidden | NotFound | FlyIoOpError;
2530
+ /** Destroy App Delete an app by its name. */
2531
+ export declare const deleteApp: API.OperationMethod<DeleteAppRequest, DeleteAppResponse, DeleteAppError, FlyIoOpContext>;
2532
+ export type DeleteAppAcmeCertificateError = Forbidden | NotFound | FlyIoOpError;
2533
+ /** Remove ACME certificates */
2534
+ export declare const deleteAppAcmeCertificate: API.OperationMethod<DeleteAppAcmeCertificateRequest, CertificateDetail, DeleteAppAcmeCertificateError, FlyIoOpContext>;
2535
+ export type DeleteAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2536
+ /** Remove certificate */
2537
+ export declare const deleteAppCertificate: API.OperationMethod<DeleteAppCertificateRequest, DeleteAppCertificateResponse, DeleteAppCertificateError, FlyIoOpContext>;
2538
+ export type DeleteAppCustomCertificateError = Forbidden | NotFound | FlyIoOpError;
2539
+ /** Remove custom certificate */
2540
+ export declare const deleteAppCustomCertificate: API.OperationMethod<DeleteAppCustomCertificateRequest, DestroyCustomCertificateResponse, DeleteAppCustomCertificateError, FlyIoOpContext>;
2541
+ export type DeleteAppIPAssignmentError = Forbidden | NotFound | FlyIoOpError;
2542
+ /** Remove IP assignment from app */
2543
+ export declare const deleteAppIPAssignment: API.OperationMethod<DeleteAppIPAssignmentRequest, DeleteAppIPAssignmentResponse, DeleteAppIPAssignmentError, FlyIoOpContext>;
2544
+ export type DeleteMachineError = Forbidden | NotFound | Conflict | FlyIoOpError;
2072
2545
  /** Destroy Machine Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running. */
2073
- export declare const machinesDelete: API.OperationMethod<MachinesDeleteRequest, MachinesDeleteResponse, MachinesDeleteError, FlyIoOpContext>;
2074
- export type MachinesDeleteMetadataError = Forbidden | NotFound | FlyIoOpError;
2546
+ export declare const deleteMachine: API.OperationMethod<DeleteMachineRequest, DeleteMachineResponse, DeleteMachineError, FlyIoOpContext>;
2547
+ export type DeleteMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2075
2548
  /** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
2076
- export declare const machinesDeleteMetadata: API.OperationMethod<MachinesDeleteMetadataRequest, MachinesDeleteMetadataResponse, MachinesDeleteMetadataError, FlyIoOpContext>;
2077
- export type MachinesExecError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2549
+ export declare const deleteMachineMetadata: API.OperationMethod<DeleteMachineMetadataRequest, DeleteMachineMetadataResponse, DeleteMachineMetadataError, FlyIoOpContext>;
2550
+ export type DeletePostgresError = NotFound | FlyIoOpError;
2551
+ /** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
2552
+ export declare const deletePostgres: API.OperationMethod<DeletePostgresRequest, DeletePostgresResponse, DeletePostgresError, FlyIoOpContext>;
2553
+ export type DeletePostgresAttachmentError = NotFound | FlyIoOpError;
2554
+ /** Detach Cluster from App Detach a specific cluster from a Fly app. */
2555
+ export declare const deletePostgresAttachment: API.OperationMethod<DeletePostgresAttachmentRequest, DeletePostgresAttachmentResponse, DeletePostgresAttachmentError, FlyIoOpContext>;
2556
+ export type DeletePostgresDatabaseError = BadRequest | NotFound | FlyIoOpError;
2557
+ /** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
2558
+ export declare const deletePostgresDatabase: API.OperationMethod<DeletePostgresDatabaseRequest, PostgresDatabaseResponse, DeletePostgresDatabaseError, FlyIoOpContext>;
2559
+ export type DeletePostgresUserError = BadRequest | NotFound | FlyIoOpError;
2560
+ /** Delete User Delete a specific Postgres user within a cluster. */
2561
+ export declare const deletePostgresUser: API.OperationMethod<DeletePostgresUserRequest, DeletePostgresUserResponse, DeletePostgresUserError, FlyIoOpContext>;
2562
+ export type DeleteSecretError = Forbidden | NotFound | FlyIoOpError;
2563
+ /** Delete an app secret */
2564
+ export declare const deleteSecret: API.OperationMethod<DeleteSecretRequest, DeleteAppSecretResponse, DeleteSecretError, FlyIoOpContext>;
2565
+ export type DeleteSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2566
+ /** Delete an app's secret key */
2567
+ export declare const deleteSecretKey: API.OperationMethod<DeleteSecretKeyRequest, DeleteSecretkeyResponse, DeleteSecretKeyError, FlyIoOpContext>;
2568
+ export type DeleteVolumeError = Forbidden | NotFound | Conflict | FlyIoOpError;
2569
+ /** Destroy Volume Delete a specific volume within an app by volume ID. */
2570
+ export declare const deleteVolume: API.OperationMethod<DeleteVolumeRequest, Volume, DeleteVolumeError, FlyIoOpContext>;
2571
+ export type DisablePostgresExtensionError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2572
+ /** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
2573
+ export declare const disablePostgresExtension: API.OperationMethod<DisablePostgresExtensionRequest, DisablePostgresExtensionResponse, DisablePostgresExtensionError, FlyIoOpContext>;
2574
+ export type EnablePostgresExtensionError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2575
+ /** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
2576
+ export declare const enablePostgresExtension: API.OperationMethod<EnablePostgresExtensionRequest, EnablePostgresExtensionResponse, EnablePostgresExtensionError, FlyIoOpContext>;
2577
+ export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2578
+ /** Encrypt with a secret key */
2579
+ export declare const encryptSecretKey: API.OperationMethod<EncryptSecretKeyRequest, EncryptSecretkeyResponse, EncryptSecretKeyError, FlyIoOpContext>;
2580
+ export type ExecMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2078
2581
  /** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
2079
- export declare const machinesExec: API.OperationMethod<MachinesExecRequest, Flydv1ExecResponse, MachinesExecError, FlyIoOpContext>;
2080
- export type MachinesGetMemoryError = Forbidden | NotFound | FlyIoOpError;
2582
+ export declare const execMachine: API.OperationMethod<ExecMachineRequest, Flydv1ExecResponse, ExecMachineError, FlyIoOpContext>;
2583
+ export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2584
+ /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
2585
+ export declare const extendVolume: API.OperationMethod<ExtendVolumeRequest, ExtendVolumeResponse, ExtendVolumeError, FlyIoOpContext>;
2586
+ export type ForkPostgresError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2587
+ /** Fork Cluster to New Cluster Fork a ready Managed Postgres cluster into a new cluster that inherits the source's settings. The source cluster is left unchanged, and the fork is provisioned asynchronously. */
2588
+ export declare const forkPostgres: API.OperationMethod<ForkPostgresRequest, ShowPostgresClusterResponse, ForkPostgresError, FlyIoOpContext>;
2589
+ export type GenerateSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2590
+ /** Generate a random secret key */
2591
+ export declare const generateSecretKey: API.OperationMethod<GenerateSecretKeyRequest, SetSecretkeyResponse, GenerateSecretKeyError, FlyIoOpContext>;
2592
+ export type GetAppError = Forbidden | NotFound | FlyIoOpError;
2593
+ /** Get App Retrieve details about a specific app by its name. */
2594
+ export declare const getApp: API.OperationMethod<GetAppRequest, App, GetAppError, FlyIoOpContext>;
2595
+ export type GetAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2596
+ /** Get certificate details */
2597
+ export declare const getAppCertificate: API.OperationMethod<GetAppCertificateRequest, CertificateDetail, GetAppCertificateError, FlyIoOpContext>;
2598
+ export type GetCurrentTokenError = Forbidden | FlyIoOpError;
2599
+ /** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
2600
+ export declare const getCurrentToken: API.OperationMethod<GetCurrentTokenRequest, CurrentTokenResponse, GetCurrentTokenError, FlyIoOpContext>;
2601
+ export type GetMachineError = Forbidden | NotFound | FlyIoOpError;
2602
+ /** Get Machine Get details of a specific Machine within an app by the Machine ID. */
2603
+ export declare const getMachine: API.OperationMethod<GetMachineRequest, Machine, GetMachineError, FlyIoOpContext>;
2604
+ export type GetMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
2605
+ /** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2606
+ export declare const getMachineLease: API.OperationMethod<GetMachineLeaseRequest, Lease, GetMachineLeaseError, FlyIoOpContext>;
2607
+ export type GetMachineMemoryError = Forbidden | NotFound | FlyIoOpError;
2081
2608
  /** Get Machine Memory Get current memory limit and available capacity for a machine */
2082
- export declare const machinesGetMemory: API.OperationMethod<MachinesGetMemoryRequest, MainMemoryResponse, MachinesGetMemoryError, FlyIoOpContext>;
2083
- export type MachinesGetMetadataKeyError = NotFound | FlyIoOpError;
2609
+ export declare const getMachineMemory: API.OperationMethod<GetMachineMemoryRequest, MainMemoryResponse, GetMachineMemoryError, FlyIoOpContext>;
2610
+ export type GetMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2611
+ /** Get Metadata Retrieve metadata for a specific Machine within an app. */
2612
+ export declare const getMachineMetadata: API.OperationMethod<GetMachineMetadataRequest, GetMachineMetadataResponse, GetMachineMetadataError, FlyIoOpContext>;
2613
+ export type GetMachineMetadataKeyError = NotFound | FlyIoOpError;
2084
2614
  /** Get Metadata Value Get the value of a specific metadata key */
2085
- export declare const machinesGetMetadataKey: API.OperationMethod<MachinesGetMetadataKeyRequest, MetadataValueResponse, MachinesGetMetadataKeyError, FlyIoOpContext>;
2086
- export type MachinesListError = Forbidden | NotFound | FlyIoOpError;
2087
- /** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
2088
- export declare const machinesList: API.OperationMethod<MachinesListRequest, MachinesListResponse, MachinesListError, FlyIoOpContext>;
2089
- export type MachinesListEventsError = Forbidden | NotFound | FlyIoOpError;
2615
+ export declare const getMachineMetadataKey: API.OperationMethod<GetMachineMetadataKeyRequest, MetadataValueResponse, GetMachineMetadataKeyError, FlyIoOpContext>;
2616
+ export type GetPlacementsError = BadRequest | Forbidden | FlyIoOpError;
2617
+ /** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
2618
+ export declare const getPlacements: API.OperationMethod<GetPlacementsRequest, MainGetPlacementsResponse, GetPlacementsError, FlyIoOpContext>;
2619
+ export type GetPostgresError = NotFound | FlyIoOpError;
2620
+ /** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
2621
+ export declare const getPostgres: API.OperationMethod<GetPostgresRequest, ShowPostgresClusterResponse, GetPostgresError, FlyIoOpContext>;
2622
+ export type GetRegionsError = Forbidden | FlyIoOpError;
2623
+ /** Get Regions List all regions on the platform with their details. */
2624
+ export declare const getRegions: API.OperationMethod<GetRegionsRequest, MainRegionResponse, GetRegionsError, FlyIoOpContext>;
2625
+ export type GetSecretError = Forbidden | NotFound | FlyIoOpError;
2626
+ /** Get an app secret */
2627
+ export declare const getSecret: API.OperationMethod<GetSecretRequest, AppSecret, GetSecretError, FlyIoOpContext>;
2628
+ export type GetSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2629
+ /** Get an app's secret key */
2630
+ export declare const getSecretKey: API.OperationMethod<GetSecretKeyRequest, SecretKey, GetSecretKeyError, FlyIoOpContext>;
2631
+ export type GetVolumeByIdError = Forbidden | NotFound | FlyIoOpError;
2632
+ /** Get Volume Retrieve details about a specific volume by its ID within an app. */
2633
+ export declare const getVolumeById: API.OperationMethod<GetVolumeByIdRequest, Volume, GetVolumeByIdError, FlyIoOpContext>;
2634
+ export type ListAppCertificatesError = Forbidden | NotFound | FlyIoOpError;
2635
+ /** List certificates for app */
2636
+ export declare const listAppCertificates: API.OperationMethod<ListAppCertificatesRequest, ListCertificatesResponse, ListAppCertificatesError, FlyIoOpContext>;
2637
+ export type ListAppIPAssignmentsError = Forbidden | NotFound | FlyIoOpError;
2638
+ /** List IP assignments for app */
2639
+ export declare const listAppIPAssignments: API.OperationMethod<ListAppIPAssignmentsRequest, ListIPAssignmentsResponse, ListAppIPAssignmentsError, FlyIoOpContext>;
2640
+ export type ListAppsError = Forbidden | FlyIoOpError;
2641
+ /** List Apps List all apps with the ability to filter by organization slug. */
2642
+ export declare const listApps: API.OperationMethod<ListAppsRequest, ListAppsResponse, ListAppsError, FlyIoOpContext>;
2643
+ export type ListMachineEventsError = Forbidden | NotFound | FlyIoOpError;
2090
2644
  /** List Events List all events associated with a specific Machine within an app. */
2091
- export declare const machinesListEvents: API.OperationMethod<MachinesListEventsRequest, MachinesListEventsResponse, MachinesListEventsError, FlyIoOpContext>;
2092
- export type MachinesListProcessesError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2645
+ export declare const listMachineEvents: API.OperationMethod<ListMachineEventsRequest, ListMachineEventsResponse, ListMachineEventsError, FlyIoOpContext>;
2646
+ export type ListMachineProcessesError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2093
2647
  /** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
2094
- export declare const machinesListProcesses: API.OperationMethod<MachinesListProcessesRequest, MachinesListProcessesResponse, MachinesListProcessesError, FlyIoOpContext>;
2095
- export type MachinesListVersionsError = Forbidden | NotFound | FlyIoOpError;
2096
- /** List Versions List all versions of the configuration for a specific Machine within an app. */
2097
- export declare const machinesListVersions: API.OperationMethod<MachinesListVersionsRequest, MachinesListVersionsResponse, MachinesListVersionsError, FlyIoOpContext>;
2098
- export type MachinesOrgListError = Forbidden | NotFound | FlyIoOpError;
2648
+ export declare const listMachineProcesses: API.OperationMethod<ListMachineProcessesRequest, ListMachineProcessesResponse, ListMachineProcessesError, FlyIoOpContext>;
2649
+ export type ListMachinesError = Forbidden | NotFound | FlyIoOpError;
2650
+ /** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
2651
+ export declare const listMachines: API.OperationMethod<ListMachinesRequest, ListMachinesResponse, ListMachinesError, FlyIoOpContext>;
2652
+ export type ListMachinesOrgError = Forbidden | NotFound | FlyIoOpError;
2099
2653
  /** List All Machines List all Machines associated with a specific organization. Machines are sorted by their `updated_at` timestamps, oldest to newest. This API call represents "a point in time". Recent machine changes, including creations and destructions, may take time to propagate. When polling with `updated_after`, offset your timestamps to catch late-arriving events. */
2100
- export declare const machinesOrgList: API.OperationMethod<MachinesOrgListRequest, OrgMachinesResponse, MachinesOrgListError, FlyIoOpContext>;
2101
- export type MachinesReclaimMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2102
- /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
2103
- export declare const machinesReclaimMemory: API.OperationMethod<MachinesReclaimMemoryRequest, MainReclaimMemoryResponse, MachinesReclaimMemoryError, FlyIoOpContext>;
2654
+ export declare const listMachinesOrg: API.OperationMethod<ListMachinesOrgRequest, OrgMachinesResponse, ListMachinesOrgError, FlyIoOpContext>;
2655
+ export type ListMachineVersionsError = Forbidden | NotFound | FlyIoOpError;
2656
+ /** List Versions List all versions of the configuration for a specific Machine within an app. */
2657
+ export declare const listMachineVersions: API.OperationMethod<ListMachineVersionsRequest, ListMachineVersionsResponse, ListMachineVersionsError, FlyIoOpContext>;
2658
+ export type ListPostgresError = NotFound | UnprocessableEntity | FlyIoOpError;
2659
+ /** List Postgres Clusters List Managed Postgres clusters for an organization. */
2660
+ export declare const listPostgres: API.OperationMethod<ListPostgresRequest, ListPostgresClustersResponse, ListPostgresError, FlyIoOpContext>;
2661
+ export type ListPostgresBackupsError = NotFound | FlyIoOpError;
2662
+ /** List Backups List all backups associated with a specific cluster. */
2663
+ export declare const listPostgresBackups: API.OperationMethod<ListPostgresBackupsRequest, ListPostgresBackupsResponse, ListPostgresBackupsError, FlyIoOpContext>;
2664
+ export type ListPostgresDatabasesError = NotFound | FlyIoOpError;
2665
+ /** List Databases List all databases within a specific cluster. */
2666
+ export declare const listPostgresDatabases: API.OperationMethod<ListPostgresDatabasesRequest, ListPostgresDatabasesResponse, ListPostgresDatabasesError, FlyIoOpContext>;
2667
+ export type ListPostgresExtensionsError = BadRequest | NotFound | FlyIoOpError;
2668
+ /** List Extensions List all extensions available within a specific database, indicating which are installed. */
2669
+ export declare const listPostgresExtensions: API.OperationMethod<ListPostgresExtensionsRequest, ListPostgresExtensionsResponse, ListPostgresExtensionsError, FlyIoOpContext>;
2670
+ export type ListPostgresUsersError = NotFound | FlyIoOpError;
2671
+ /** List Users List all Postgres users within a specific cluster. */
2672
+ export declare const listPostgresUsers: API.OperationMethod<ListPostgresUsersRequest, ListPostgresUsersResponse, ListPostgresUsersError, FlyIoOpContext>;
2673
+ export type ListSecretKeysError = Forbidden | NotFound | FlyIoOpError;
2674
+ /** List secret keys belonging to an app */
2675
+ export declare const listSecretKeys: API.OperationMethod<ListSecretKeysRequest, SecretKeys, ListSecretKeysError, FlyIoOpContext>;
2676
+ export type ListSecretsError = Forbidden | NotFound | FlyIoOpError;
2677
+ /** List app secrets belonging to an app */
2678
+ export declare const listSecrets: API.OperationMethod<ListSecretsRequest, AppSecrets, ListSecretsError, FlyIoOpContext>;
2679
+ export type ListVolumesError = Forbidden | NotFound | FlyIoOpError;
2680
+ /** List Volumes List all volumes associated with a specific app. */
2681
+ export declare const listVolumes: API.OperationMethod<ListVolumesRequest, ListVolumesResponse, ListVolumesError, FlyIoOpContext>;
2682
+ export type ListVolumeSnapshotsError = Forbidden | NotFound | FlyIoOpError;
2683
+ /** List Snapshots List all snapshots for a specific volume within an app. */
2684
+ export declare const listVolumeSnapshots: API.OperationMethod<ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsError, FlyIoOpContext>;
2685
+ export type ListVolumesOrgError = FlyIoOpError;
2686
+ /** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
2687
+ export declare const listVolumesOrg: API.OperationMethod<ListVolumesOrgRequest, OrgVolumesResponse, ListVolumesOrgError, FlyIoOpContext>;
2104
2688
  export type MachinesReleaseLeaseError = Forbidden | NotFound | FlyIoOpError;
2105
2689
  /** Release Lease Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2106
2690
  export declare const machinesReleaseLease: API.OperationMethod<MachinesReleaseLeaseRequest, MachinesReleaseLeaseResponse, MachinesReleaseLeaseError, FlyIoOpContext>;
2107
- export type MachinesRestartError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2691
+ export type PatchMachineMetadataError = BadRequest | FlyIoOpError;
2692
+ /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
2693
+ export declare const patchMachineMetadata: API.OperationMethod<PatchMachineMetadataRequest, PatchMachineMetadataResponse, PatchMachineMetadataError, FlyIoOpContext>;
2694
+ export type PostgresUsersCredentialsError = BadRequest | NotFound | FlyIoOpError;
2695
+ /** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
2696
+ export declare const postgresUsersCredentials: API.OperationMethod<PostgresUsersCredentialsRequest, GetPostgresUserCredentialsResponse, PostgresUsersCredentialsError, FlyIoOpContext>;
2697
+ export type ReclaimMachineMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2698
+ /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
2699
+ export declare const reclaimMachineMemory: API.OperationMethod<ReclaimMachineMemoryRequest, MainReclaimMemoryResponse, ReclaimMachineMemoryError, FlyIoOpContext>;
2700
+ export type RequestKmsTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2701
+ /** Request a Petsem token for accessing KMS This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource. */
2702
+ export declare const requestKmsToken: API.OperationMethod<RequestKmsTokenRequest, RequestKmsTokenResponse, RequestKmsTokenError, FlyIoOpContext>;
2703
+ export type RequestOidcTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2704
+ /** Request an OIDC token Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io. */
2705
+ export declare const requestOidcToken: API.OperationMethod<RequestOidcTokenRequest, RequestOidcTokenResponse, RequestOidcTokenError, FlyIoOpContext>;
2706
+ export type RestartMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2108
2707
  /** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
2109
- export declare const machinesRestart: API.OperationMethod<MachinesRestartRequest, MachinesRestartResponse, MachinesRestartError, FlyIoOpContext>;
2110
- export type MachinesSetMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2708
+ export declare const restartMachine: API.OperationMethod<RestartMachineRequest, RestartMachineResponse, RestartMachineError, FlyIoOpContext>;
2709
+ export type RestorePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2710
+ /** Restore Backup or Point in Time to New Cluster Restore a backup, or a point in time within the cluster's PITR recovery window, into a new Managed Postgres cluster. The source cluster is left unchanged, and a new cluster is provisioned asynchronously. */
2711
+ export declare const restorePostgres: API.OperationMethod<RestorePostgresRequest, ShowPostgresClusterResponse, RestorePostgresError, FlyIoOpContext>;
2712
+ export type RotatePostgresUserPasswordError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2713
+ /** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
2714
+ export declare const rotatePostgresUserPassword: API.OperationMethod<RotatePostgresUserPasswordRequest, RotatePostgresPasswordResponse, RotatePostgresUserPasswordError, FlyIoOpContext>;
2715
+ export type SetMachineMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2111
2716
  /** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
2112
- export declare const machinesSetMemoryLimit: API.OperationMethod<MachinesSetMemoryLimitRequest, MainMemoryResponse, MachinesSetMemoryLimitError, FlyIoOpContext>;
2113
- export type MachinesShowError = Forbidden | NotFound | FlyIoOpError;
2114
- /** Get Machine Get details of a specific Machine within an app by the Machine ID. */
2115
- export declare const machinesShow: API.OperationMethod<MachinesShowRequest, Machine, MachinesShowError, FlyIoOpContext>;
2116
- export type MachinesShowLeaseError = Forbidden | NotFound | FlyIoOpError;
2117
- /** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2118
- export declare const machinesShowLease: API.OperationMethod<MachinesShowLeaseRequest, Lease, MachinesShowLeaseError, FlyIoOpContext>;
2119
- export type MachinesShowMetadataError = Forbidden | NotFound | FlyIoOpError;
2120
- /** Get Metadata Retrieve metadata for a specific Machine within an app. */
2121
- export declare const machinesShowMetadata: API.OperationMethod<MachinesShowMetadataRequest, MachinesShowMetadataResponse, MachinesShowMetadataError, FlyIoOpContext>;
2122
- export type MachinesSignalError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2717
+ export declare const setMachineMemoryLimit: API.OperationMethod<SetMachineMemoryLimitRequest, MainMemoryResponse, SetMachineMemoryLimitError, FlyIoOpContext>;
2718
+ export type SetSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2719
+ /** Create or update a secret key */
2720
+ export declare const setSecretKey: API.OperationMethod<SetSecretKeyRequest, SetSecretkeyResponse, SetSecretKeyError, FlyIoOpContext>;
2721
+ export type SignalMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2123
2722
  /** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
2124
- export declare const machinesSignal: API.OperationMethod<MachinesSignalRequest, MachinesSignalResponse, MachinesSignalError, FlyIoOpContext>;
2125
- export type MachinesStartError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2723
+ export declare const signalMachine: API.OperationMethod<SignalMachineRequest, SignalMachineResponse, SignalMachineError, FlyIoOpContext>;
2724
+ export type SignSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2725
+ /** Sign with a secret key */
2726
+ export declare const signSecretKey: API.OperationMethod<SignSecretKeyRequest, SignSecretkeyResponse, SignSecretKeyError, FlyIoOpContext>;
2727
+ export type StartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2126
2728
  /** Start Machine Start a specific Machine within an app. */
2127
- export declare const machinesStart: API.OperationMethod<MachinesStartRequest, MachinesStartResponse, MachinesStartError, FlyIoOpContext>;
2128
- export type MachinesStopError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2729
+ export declare const startMachine: API.OperationMethod<StartMachineRequest, StartMachineResponse, StartMachineError, FlyIoOpContext>;
2730
+ export type StopMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2129
2731
  /** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
2130
- export declare const machinesStop: API.OperationMethod<MachinesStopRequest, MachinesStopResponse, MachinesStopError, FlyIoOpContext>;
2131
- export type MachinesSuspendError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2732
+ export declare const stopMachine: API.OperationMethod<StopMachineRequest, StopMachineResponse, StopMachineError, FlyIoOpContext>;
2733
+ export type SuspendMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2132
2734
  /** 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. */
2133
- export declare const machinesSuspend: API.OperationMethod<MachinesSuspendRequest, MachinesSuspendResponse, MachinesSuspendError, FlyIoOpContext>;
2134
- export type MachinesUncordonError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2735
+ export declare const suspendMachine: API.OperationMethod<SuspendMachineRequest, SuspendMachineResponse, SuspendMachineError, FlyIoOpContext>;
2736
+ export type UncordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2135
2737
  /** 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. */
2136
- export declare const machinesUncordon: API.OperationMethod<MachinesUncordonRequest, MachinesUncordonResponse, MachinesUncordonError, FlyIoOpContext>;
2137
- export type MachinesUpdateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2738
+ export declare const uncordonMachine: API.OperationMethod<UncordonMachineRequest, UncordonMachineResponse, UncordonMachineError, FlyIoOpContext>;
2739
+ export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2138
2740
  /** Update Machine Update a Machine's configuration using the details provided in the request body. */
2139
- export declare const machinesUpdate: API.OperationMethod<MachinesUpdateRequest, Machine, MachinesUpdateError, FlyIoOpContext>;
2140
- export type MachinesUpdateMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2141
- /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
2142
- export declare const machinesUpdateMetadata: API.OperationMethod<MachinesUpdateMetadataRequest, MachinesUpdateMetadataResponse, MachinesUpdateMetadataError, FlyIoOpContext>;
2143
- export type MachinesUpdateMetadata2Error = BadRequest | FlyIoOpError;
2741
+ export declare const updateMachine: API.OperationMethod<UpdateMachineRequest, Machine, UpdateMachineError, FlyIoOpContext>;
2742
+ export type UpdateMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2144
2743
  /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
2145
- export declare const machinesUpdateMetadata2: API.OperationMethod<MachinesUpdateMetadataRequest2, MachinesUpdateMetadata2Response, MachinesUpdateMetadata2Error, FlyIoOpContext>;
2146
- export type MachinesUpsertMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2147
- /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
2148
- export declare const machinesUpsertMetadata: API.OperationMethod<MachinesUpsertMetadataRequest, MachinesUpsertMetadataResponse, MachinesUpsertMetadataError, FlyIoOpContext>;
2149
- export type MachinesWaitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2150
- /** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
2151
- export declare const machinesWait: API.OperationMethod<MachinesWaitRequest, WaitMachineResponse, MachinesWaitError, FlyIoOpContext>;
2152
- export type PlatformPlacementsPostError = BadRequest | Forbidden | FlyIoOpError;
2153
- /** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
2154
- export declare const platformPlacementsPost: API.OperationMethod<PlatformPlacementsPostRequest, MainGetPlacementsResponse, PlatformPlacementsPostError, FlyIoOpContext>;
2155
- export type PlatformRegionsGetError = Forbidden | FlyIoOpError;
2156
- /** Get Regions List all regions on the platform with their details. */
2157
- export declare const platformRegionsGet: API.OperationMethod<PlatformRegionsGetRequest, MainRegionResponse, PlatformRegionsGetError, FlyIoOpContext>;
2158
- export type SecretCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2159
- /** Create or update Secret */
2160
- export declare const secretCreate: API.OperationMethod<SecretCreateRequest, SetAppSecretResponse, SecretCreateError, FlyIoOpContext>;
2161
- export type SecretDeleteError = Forbidden | NotFound | FlyIoOpError;
2162
- /** Delete an app secret */
2163
- export declare const secretDelete: API.OperationMethod<SecretDeleteRequest, DeleteAppSecretResponse, SecretDeleteError, FlyIoOpContext>;
2164
- export type SecretGetError = Forbidden | NotFound | FlyIoOpError;
2165
- /** Get an app secret */
2166
- export declare const secretGet: API.OperationMethod<SecretGetRequest, AppSecret, SecretGetError, FlyIoOpContext>;
2167
- export type SecretkeyDecryptError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2168
- /** Decrypt with a secret key */
2169
- export declare const secretkeyDecrypt: API.OperationMethod<SecretkeyDecryptRequest, DecryptSecretkeyResponse, SecretkeyDecryptError, FlyIoOpContext>;
2170
- export type SecretkeyDeleteError = Forbidden | NotFound | FlyIoOpError;
2171
- /** Delete an app's secret key */
2172
- export declare const secretkeyDelete: API.OperationMethod<SecretkeyDeleteRequest, DeleteSecretkeyResponse, SecretkeyDeleteError, FlyIoOpContext>;
2173
- export type SecretkeyEncryptError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2174
- /** Encrypt with a secret key */
2175
- export declare const secretkeyEncrypt: API.OperationMethod<SecretkeyEncryptRequest, EncryptSecretkeyResponse, SecretkeyEncryptError, FlyIoOpContext>;
2176
- export type SecretkeyGenerateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2177
- /** Generate a random secret key */
2178
- export declare const secretkeyGenerate: API.OperationMethod<SecretkeyGenerateRequest, SetSecretkeyResponse, SecretkeyGenerateError, FlyIoOpContext>;
2179
- export type SecretkeyGetError = Forbidden | NotFound | FlyIoOpError;
2180
- /** Get an app's secret key */
2181
- export declare const secretkeyGet: API.OperationMethod<SecretkeyGetRequest, SecretKey, SecretkeyGetError, FlyIoOpContext>;
2182
- export type SecretkeySetError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2183
- /** Create or update a secret key */
2184
- export declare const secretkeySet: API.OperationMethod<SecretkeySetRequest, SetSecretkeyResponse, SecretkeySetError, FlyIoOpContext>;
2185
- export type SecretkeySignError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2186
- /** Sign with a secret key */
2187
- export declare const secretkeySign: API.OperationMethod<SecretkeySignRequest, SignSecretkeyResponse, SecretkeySignError, FlyIoOpContext>;
2188
- export type SecretkeysListError = Forbidden | NotFound | FlyIoOpError;
2189
- /** List secret keys belonging to an app */
2190
- export declare const secretkeysList: API.OperationMethod<SecretkeysListRequest, SecretKeys, SecretkeysListError, FlyIoOpContext>;
2191
- export type SecretkeyVerifyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2192
- /** Verify with a secret key */
2193
- export declare const secretkeyVerify: API.OperationMethod<SecretkeyVerifyRequest, SecretkeyVerifyResponse, SecretkeyVerifyError, FlyIoOpContext>;
2194
- export type SecretsListError = Forbidden | NotFound | FlyIoOpError;
2195
- /** List app secrets belonging to an app */
2196
- export declare const secretsList: API.OperationMethod<SecretsListRequest, AppSecrets, SecretsListError, FlyIoOpContext>;
2197
- export type SecretsUpdateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2744
+ export declare const updateMachineMetadata: API.OperationMethod<UpdateMachineMetadataRequest, UpdateMachineMetadataResponse, UpdateMachineMetadataError, FlyIoOpContext>;
2745
+ export type UpdatePostgresUserRoleError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2746
+ /** Update User Role Update a specific Postgres user's role within a cluster. */
2747
+ export declare const updatePostgresUserRole: API.OperationMethod<UpdatePostgresUserRoleRequest, UpdatePostgresUserRoleResponse, UpdatePostgresUserRoleError, FlyIoOpContext>;
2748
+ export type UpdateSecretsError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2198
2749
  /** Update app secrets belonging to an app */
2199
- export declare const secretsUpdate: API.OperationMethod<SecretsUpdateRequest, AppSecretsUpdateResp, SecretsUpdateError, FlyIoOpContext>;
2200
- export type TokensAuthenticateError = BadRequest | FlyIoOpError;
2201
- /** Authenticate token header Verify a token header without checking resource access. */
2202
- export declare const tokensAuthenticate: API.OperationMethod<TokensAuthenticateRequest, TokensAuthenticateResponse, TokensAuthenticateError, FlyIoOpContext>;
2203
- export type TokensAuthorizeError = BadRequest | FlyIoOpError;
2204
- /** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
2205
- export declare const tokensAuthorize: API.OperationMethod<TokensAuthorizeRequest, AuthorizeResponse, TokensAuthorizeError, FlyIoOpContext>;
2206
- export type TokensRequestKmsError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2207
- /** Request a Petsem token for accessing KMS This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource. */
2208
- export declare const tokensRequestKms: API.OperationMethod<TokensRequestKmsRequest, TokensRequestKmsResponse, TokensRequestKmsError, FlyIoOpContext>;
2209
- export type TokensRequestOIDCError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2210
- /** Request an OIDC token Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io. */
2211
- export declare const tokensRequestOIDC: API.OperationMethod<TokensRequestOIDCRequest, TokensRequestOIDCResponse, TokensRequestOIDCError, FlyIoOpContext>;
2212
- export type VolumeDeleteError = Forbidden | NotFound | FlyIoOpError;
2213
- /** Destroy Volume Delete a specific volume within an app by volume ID. */
2214
- export declare const volumeDelete: API.OperationMethod<VolumeDeleteRequest, Volume, VolumeDeleteError, FlyIoOpContext>;
2215
- export type VolumesCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2216
- /** Create Volume Create a volume for a specific app using the details provided in the request body. */
2217
- export declare const volumesCreate: API.OperationMethod<VolumesCreateRequest, Volume, VolumesCreateError, FlyIoOpContext>;
2218
- export type VolumesExtendError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2219
- /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
2220
- export declare const volumesExtend: API.OperationMethod<VolumesExtendRequest, ExtendVolumeResponse, VolumesExtendError, FlyIoOpContext>;
2221
- export type VolumesGetByIdError = Forbidden | NotFound | FlyIoOpError;
2222
- /** Get Volume Retrieve details about a specific volume by its ID within an app. */
2223
- export declare const volumesGetById: API.OperationMethod<VolumesGetByIdRequest, Volume, VolumesGetByIdError, FlyIoOpContext>;
2224
- export type VolumesListError = Forbidden | NotFound | FlyIoOpError;
2225
- /** List Volumes List all volumes associated with a specific app. */
2226
- export declare const volumesList: API.OperationMethod<VolumesListRequest, VolumesListResponse, VolumesListError, FlyIoOpContext>;
2227
- export type VolumesListSnapshotsError = Forbidden | NotFound | FlyIoOpError;
2228
- /** List Snapshots List all snapshots for a specific volume within an app. */
2229
- export declare const volumesListSnapshots: API.OperationMethod<VolumesListSnapshotsRequest, VolumesListSnapshotsResponse, VolumesListSnapshotsError, FlyIoOpContext>;
2230
- export type VolumesOrgListError = FlyIoOpError;
2231
- /** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
2232
- export declare const volumesOrgList: API.OperationMethod<VolumesOrgListRequest, OrgVolumesResponse, VolumesOrgListError, FlyIoOpContext>;
2233
- export type VolumesUpdateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2750
+ export declare const updateSecrets: API.OperationMethod<UpdateSecretsRequest, AppSecretsUpdateResp, UpdateSecretsError, FlyIoOpContext>;
2751
+ export type UpdateVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2234
2752
  /** Update Volume Update a volume's configuration using the details provided in the request body. */
2235
- export declare const volumesUpdate: API.OperationMethod<VolumesUpdateRequest, Volume, VolumesUpdateError, FlyIoOpContext>;
2753
+ export declare const updateVolume: API.OperationMethod<UpdateVolumeRequest, Volume, UpdateVolumeError, FlyIoOpContext>;
2754
+ export type UpsertMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2755
+ /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
2756
+ export declare const upsertMachineMetadata: API.OperationMethod<UpsertMachineMetadataRequest, UpsertMachineMetadataResponse, UpsertMachineMetadataError, FlyIoOpContext>;
2757
+ export type VerifySecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2758
+ /** Verify with a secret key */
2759
+ export declare const verifySecretKey: API.OperationMethod<VerifySecretKeyRequest, VerifySecretKeyResponse, VerifySecretKeyError, FlyIoOpContext>;
2760
+ export type WaitMachineError = BadRequest | Forbidden | NotFound | GatewayTimeout | FlyIoOpError;
2761
+ /** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
2762
+ export declare const waitMachine: API.OperationMethod<WaitMachineRequest, WaitMachineResponse, WaitMachineError, FlyIoOpContext>;
2236
2763
  //# sourceMappingURL=machines.d.ts.map