@distilled.cloud/fly-io 1.0.0-rc.4 → 1.0.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/lib/credentials.d.ts +17 -0
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -7
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +32 -0
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +33 -0
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +27 -2
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +27 -2
  12. package/lib/index.js.map +1 -1
  13. package/lib/pagination.d.ts +5 -0
  14. package/lib/pagination.d.ts.map +1 -0
  15. package/lib/pagination.js +5 -0
  16. package/lib/pagination.js.map +1 -0
  17. package/lib/protocol.d.ts +18 -7
  18. package/lib/protocol.d.ts.map +1 -1
  19. package/lib/protocol.js +505 -28
  20. package/lib/protocol.js.map +1 -1
  21. package/lib/services/addons.d.ts +466 -0
  22. package/lib/services/addons.d.ts.map +1 -0
  23. package/lib/services/addons.js +613 -0
  24. package/lib/services/addons.js.map +1 -0
  25. package/lib/services/index.d.ts +3 -0
  26. package/lib/services/index.d.ts.map +1 -1
  27. package/lib/services/index.js +3 -0
  28. package/lib/services/index.js.map +1 -1
  29. package/lib/services/machines.d.ts +1175 -1198
  30. package/lib/services/machines.d.ts.map +1 -1
  31. package/lib/services/machines.js +1297 -1310
  32. package/lib/services/machines.js.map +1 -1
  33. package/lib/services/mpg.d.ts +376 -0
  34. package/lib/services/mpg.d.ts.map +1 -0
  35. package/lib/services/mpg.js +570 -0
  36. package/lib/services/mpg.js.map +1 -0
  37. package/lib/services/sprites.d.ts +321 -0
  38. package/lib/services/sprites.d.ts.map +1 -0
  39. package/lib/services/sprites.js +407 -0
  40. package/lib/services/sprites.js.map +1 -0
  41. package/lib/traits.d.ts +18 -8
  42. package/lib/traits.d.ts.map +1 -1
  43. package/lib/traits.js +13 -3
  44. package/lib/traits.js.map +1 -1
  45. package/package.json +37 -13
  46. package/src/credentials.ts +53 -7
  47. package/src/errors.ts +39 -0
  48. package/src/index.ts +31 -1
  49. package/src/pagination.ts +12 -0
  50. package/src/protocol.ts +715 -32
  51. package/src/services/addons.ts +1313 -0
  52. package/src/services/index.ts +3 -0
  53. package/src/services/machines.ts +2998 -3049
  54. package/src/services/mpg.ts +1188 -0
  55. package/src/services/sprites.ts +917 -0
  56. 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,73 +241,28 @@ 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
+ export interface CreateAppIPAssignmentRequest {
235
266
  /** Fly App Name */
236
267
  app_name: string;
237
268
  network?: string;
@@ -240,147 +271,29 @@ export interface AppIPAssignmentsCreateRequest {
240
271
  service_name?: string;
241
272
  type?: string;
242
273
  }
243
- export declare const AppIPAssignmentsCreateRequest: S.Schema<AppIPAssignmentsCreateRequest>;
274
+ export declare const CreateAppIPAssignmentRequest: S.Schema<CreateAppIPAssignmentRequest>;
244
275
  export interface IPAssignment {
245
276
  created_at?: string;
246
277
  ip?: string;
247
278
  region?: string;
248
279
  service_name?: string;
249
280
  shared?: boolean;
281
+ type?: string;
250
282
  }
251
283
  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;
257
- }
258
- export declare const AppIPAssignmentsDeleteRequest: S.Schema<AppIPAssignmentsDeleteRequest>;
259
- export interface AppIPAssignmentsDeleteResponse {
284
+ export interface FlyMachineCacheDrive {
285
+ size_mb?: number;
260
286
  }
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;
287
+ export declare const FlyMachineCacheDrive: S.Schema<FlyMachineCacheDrive>;
288
+ /** The header value */
289
+ export type FlyMachineHTTPHeaderValuesList = Array<string>;
290
+ export declare const FlyMachineHTTPHeaderValuesList: S.Schema<FlyMachineHTTPHeaderValuesList>;
291
+ /** 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. */
292
+ export interface FlyMachineHTTPHeader {
293
+ /** The header name */
294
+ name?: string;
295
+ /** The header value */
296
+ values?: FlyMachineHTTPHeaderValuesList;
384
297
  }
385
298
  export declare const FlyMachineHTTPHeader: S.Schema<FlyMachineHTTPHeader>;
386
299
  export type FlyMachineCheckHeadersList = Array<FlyMachineHTTPHeader>;
@@ -904,7 +817,7 @@ export interface FlyMachineConfig {
904
817
  stop_config?: FlyStopConfig;
905
818
  }
906
819
  export declare const FlyMachineConfig: S.Schema<FlyMachineConfig>;
907
- export interface MachinesCreateRequest {
820
+ export interface CreateMachineRequest {
908
821
  /** Fly App Name */
909
822
  app_name: string;
910
823
  /** An object defining the Machine configuration */
@@ -919,7 +832,7 @@ export interface MachinesCreateRequest {
919
832
  skip_secrets?: boolean;
920
833
  skip_service_registration?: boolean;
921
834
  }
922
- export declare const MachinesCreateRequest: S.Schema<MachinesCreateRequest>;
835
+ export declare const CreateMachineRequest: S.Schema<CreateMachineRequest>;
923
836
  export interface CheckStatus {
924
837
  name?: string;
925
838
  output?: string;
@@ -975,7 +888,7 @@ export interface Machine {
975
888
  updated_at?: string;
976
889
  }
977
890
  export declare const Machine: S.Schema<Machine>;
978
- export interface MachinesCreateLeaseRequest {
891
+ export interface CreateMachineLeaseRequest {
979
892
  /** Fly App Name */
980
893
  app_name: string;
981
894
  /** Machine ID */
@@ -984,7 +897,7 @@ export interface MachinesCreateLeaseRequest {
984
897
  /** seconds lease will be valid */
985
898
  ttl?: number;
986
899
  }
987
- export declare const MachinesCreateLeaseRequest: S.Schema<MachinesCreateLeaseRequest>;
900
+ export declare const CreateMachineLeaseRequest: S.Schema<CreateMachineLeaseRequest>;
988
901
  export interface Lease {
989
902
  /** Description or reason for the Lease. */
990
903
  description?: string;
@@ -998,438 +911,398 @@ export interface Lease {
998
911
  version?: string;
999
912
  }
1000
913
  export declare const Lease: S.Schema<Lease>;
1001
- export interface MachinesDeleteRequest {
914
+ export interface CreateSecretRequest {
1002
915
  /** Fly App Name */
1003
916
  app_name: string;
1004
- /** Machine ID */
1005
- machine_id: string;
1006
- /** Force kill the machine if it's running */
1007
- force?: boolean;
917
+ /** App secret name */
918
+ secret_name: string;
919
+ value?: string;
1008
920
  }
1009
- export declare const MachinesDeleteRequest: S.Schema<MachinesDeleteRequest>;
1010
- export interface MachinesDeleteResponse {
921
+ export declare const CreateSecretRequest: S.Schema<CreateSecretRequest>;
922
+ export interface SetAppSecretResponse {
923
+ /** DEPRECATED */
924
+ Version?: number;
925
+ created_at?: string;
926
+ digest?: string;
927
+ name?: string;
928
+ updated_at?: string;
929
+ value?: string;
930
+ version?: number;
1011
931
  }
1012
- export declare const MachinesDeleteResponse: S.Schema<MachinesDeleteResponse>;
1013
- export interface MachinesDeleteMetadataRequest {
932
+ export declare const SetAppSecretResponse: S.Schema<SetAppSecretResponse>;
933
+ export interface CreateVolumeRequest {
1014
934
  /** Fly App Name */
1015
935
  app_name: string;
1016
- /** Machine ID */
1017
- machine_id: string;
1018
- /** Metadata Key */
1019
- key: string;
936
+ /** enable scheduled automatic snapshots. Defaults to `true` */
937
+ auto_backup_enabled?: boolean;
938
+ compute?: FlyMachineGuest;
939
+ compute_image?: string;
940
+ encrypted?: boolean;
941
+ fstype?: string;
942
+ name?: string;
943
+ region?: string;
944
+ require_unique_zone?: boolean;
945
+ size_gb?: number;
946
+ /** restore from snapshot */
947
+ snapshot_id?: string;
948
+ snapshot_retention?: number;
949
+ /** fork from remote volume */
950
+ source_volume_id?: string;
951
+ unique_zone_app_wide?: boolean;
1020
952
  }
1021
- export declare const MachinesDeleteMetadataRequest: S.Schema<MachinesDeleteMetadataRequest>;
1022
- export interface MachinesDeleteMetadataResponse {
953
+ export declare const CreateVolumeRequest: S.Schema<CreateVolumeRequest>;
954
+ export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
955
+ export declare const VolumeHostStatus: any;
956
+ export type VolumeType = "local" | "cache";
957
+ export declare const VolumeType: any;
958
+ export interface Volume {
959
+ attached_alloc_id?: string;
960
+ attached_machine_id?: string;
961
+ auto_backup_enabled?: boolean;
962
+ block_size?: number;
963
+ blocks?: number;
964
+ blocks_avail?: number;
965
+ blocks_free?: number;
966
+ bytes_total?: number;
967
+ bytes_used?: number;
968
+ created_at?: string;
969
+ encrypted?: boolean;
970
+ fstype?: string;
971
+ host_status?: VolumeHostStatus;
972
+ id?: string;
973
+ name?: string;
974
+ region?: string;
975
+ size_gb?: number;
976
+ snapshot_retention?: number;
977
+ state?: string;
978
+ type?: VolumeType;
979
+ zone?: string;
1023
980
  }
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 {
981
+ export declare const Volume: S.Schema<Volume>;
982
+ export interface CreateVolumeSnapshotRequest {
1028
983
  /** Fly App Name */
1029
984
  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;
985
+ /** Volume ID */
986
+ volume_id: string;
1038
987
  }
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;
988
+ export declare const CreateVolumeSnapshotRequest: S.Schema<CreateVolumeSnapshotRequest>;
989
+ export interface CreateVolumeSnapshotResponse {
1045
990
  }
1046
- export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
1047
- export interface MachinesGetMemoryRequest {
991
+ export declare const CreateVolumeSnapshotResponse: S.Schema<CreateVolumeSnapshotResponse>;
992
+ export interface DecryptSecretKeyRequest {
1048
993
  /** Fly App Name */
1049
994
  app_name: string;
1050
- /** Machine ID */
1051
- machine_id: string;
995
+ /** Secret key name */
996
+ secret_name: string;
997
+ /** Minimum secrets version to return. Returned when setting a new secret */
998
+ min_version?: string;
999
+ associated_data?: string;
1000
+ ciphertext?: string;
1052
1001
  }
1053
- export declare const MachinesGetMemoryRequest: S.Schema<MachinesGetMemoryRequest>;
1054
- export interface MainMemoryResponse {
1055
- available_mb?: number;
1056
- limit_mb?: number;
1002
+ export declare const DecryptSecretKeyRequest: S.Schema<DecryptSecretKeyRequest>;
1003
+ export interface DecryptSecretkeyResponse {
1004
+ plaintext?: string;
1057
1005
  }
1058
- export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
1059
- export interface MachinesGetMetadataKeyRequest {
1006
+ export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
1007
+ export interface DeleteAppRequest {
1060
1008
  /** Fly App Name */
1061
1009
  app_name: string;
1062
- /** Machine ID */
1063
- machine_id: string;
1064
- /** Metadata Key */
1065
- key: string;
1066
1010
  }
1067
- export declare const MachinesGetMetadataKeyRequest: S.Schema<MachinesGetMetadataKeyRequest>;
1068
- export interface MetadataValueResponse {
1069
- value?: string;
1011
+ export declare const DeleteAppRequest: S.Schema<DeleteAppRequest>;
1012
+ export interface DeleteAppResponse {
1070
1013
  }
1071
- export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
1072
- export interface MachinesListRequest {
1014
+ export declare const DeleteAppResponse: S.Schema<DeleteAppResponse>;
1015
+ export interface DeleteAppAcmeCertificateRequest {
1073
1016
  /** Fly App Name */
1074
1017
  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;
1018
+ /** Certificate Hostname */
1019
+ hostname: string;
1083
1020
  }
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 {
1021
+ export declare const DeleteAppAcmeCertificateRequest: S.Schema<DeleteAppAcmeCertificateRequest>;
1022
+ export interface DeleteAppCertificateRequest {
1090
1023
  /** Fly App Name */
1091
1024
  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;
1025
+ /** Certificate Hostname */
1026
+ hostname: string;
1027
+ }
1028
+ export declare const DeleteAppCertificateRequest: S.Schema<DeleteAppCertificateRequest>;
1029
+ export interface DeleteAppCertificateResponse {
1030
+ }
1031
+ export declare const DeleteAppCertificateResponse: S.Schema<DeleteAppCertificateResponse>;
1032
+ export interface DeleteAppCustomCertificateRequest {
1033
+ /** Fly App Name */
1034
+ app_name: string;
1035
+ /** Certificate Hostname */
1036
+ hostname: string;
1037
+ }
1038
+ export declare const DeleteAppCustomCertificateRequest: S.Schema<DeleteAppCustomCertificateRequest>;
1039
+ export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
1040
+ export declare const DestroyCustomCertificateResponseCertificatesList: S.Schema<DestroyCustomCertificateResponseCertificatesList>;
1041
+ export type DestroyCustomCertificateResponseValidationErrorsList = Array<CertificateValidationError>;
1042
+ export declare const DestroyCustomCertificateResponseValidationErrorsList: S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
1043
+ export interface DestroyCustomCertificateResponse {
1044
+ acme_requested?: boolean;
1045
+ certificates?: DestroyCustomCertificateResponseCertificatesList;
1046
+ configured?: boolean;
1047
+ dns_provider?: string;
1048
+ dns_requirements?: DNSRequirements;
1049
+ hostname?: string;
1050
+ rate_limited_until?: string;
1051
+ status?: string;
1052
+ validation?: CertificateValidation;
1053
+ validation_errors?: DestroyCustomCertificateResponseValidationErrorsList;
1054
+ warning?: string;
1096
1055
  }
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 {
1056
+ export declare const DestroyCustomCertificateResponse: S.Schema<DestroyCustomCertificateResponse>;
1057
+ export interface DeleteAppIPAssignmentRequest {
1058
+ /** Fly App Name */
1059
+ app_name: string;
1060
+ /** IP address */
1061
+ ip: string;
1062
+ }
1063
+ export declare const DeleteAppIPAssignmentRequest: S.Schema<DeleteAppIPAssignmentRequest>;
1064
+ export interface DeleteAppIPAssignmentResponse {
1065
+ }
1066
+ export declare const DeleteAppIPAssignmentResponse: S.Schema<DeleteAppIPAssignmentResponse>;
1067
+ export interface DeleteMachineRequest {
1103
1068
  /** Fly App Name */
1104
1069
  app_name: string;
1105
1070
  /** Machine ID */
1106
1071
  machine_id: string;
1107
- /** Sort by */
1108
- sort_by?: string;
1109
- /** Order */
1110
- order?: string;
1072
+ /** Force kill the machine if it's running */
1073
+ force?: boolean;
1111
1074
  }
1112
- export declare const MachinesListProcessesRequest: S.Schema<MachinesListProcessesRequest>;
1113
- export interface ListenSocket {
1114
- address?: string;
1115
- proto?: string;
1075
+ export declare const DeleteMachineRequest: S.Schema<DeleteMachineRequest>;
1076
+ export interface DeleteMachineResponse {
1116
1077
  }
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;
1129
- }
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 {
1078
+ export declare const DeleteMachineResponse: S.Schema<DeleteMachineResponse>;
1079
+ export interface DeleteMachineMetadataRequest {
1136
1080
  /** Fly App Name */
1137
1081
  app_name: string;
1138
1082
  /** Machine ID */
1139
1083
  machine_id: string;
1084
+ /** Metadata Key */
1085
+ key: string;
1140
1086
  }
1141
- export declare const MachinesListVersionsRequest: S.Schema<MachinesListVersionsRequest>;
1142
- export interface MachineVersion {
1143
- user_config?: FlyMachineConfig;
1144
- version?: string;
1145
- }
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;
1168
- }
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;
1180
- }
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;
1193
- }
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;
1087
+ export declare const DeleteMachineMetadataRequest: S.Schema<DeleteMachineMetadataRequest>;
1088
+ export interface DeleteMachineMetadataResponse {
1203
1089
  }
1204
- export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
1205
- export interface MachinesReclaimMemoryRequest {
1090
+ export declare const DeleteMachineMetadataResponse: S.Schema<DeleteMachineMetadataResponse>;
1091
+ export interface DeleteSecretRequest {
1206
1092
  /** Fly App Name */
1207
1093
  app_name: string;
1208
- /** Machine ID */
1209
- machine_id: string;
1210
- amount_mb?: number;
1094
+ /** App secret name */
1095
+ secret_name: string;
1211
1096
  }
1212
- export declare const MachinesReclaimMemoryRequest: S.Schema<MachinesReclaimMemoryRequest>;
1213
- export interface MainReclaimMemoryResponse {
1214
- actual_mb?: number;
1097
+ export declare const DeleteSecretRequest: S.Schema<DeleteSecretRequest>;
1098
+ export interface DeleteAppSecretResponse {
1099
+ /** DEPRECATED */
1100
+ Version?: number;
1101
+ version?: number;
1215
1102
  }
1216
- export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
1217
- export interface MachinesReleaseLeaseRequest {
1103
+ export declare const DeleteAppSecretResponse: S.Schema<DeleteAppSecretResponse>;
1104
+ export interface DeleteSecretKeyRequest {
1218
1105
  /** Fly App Name */
1219
1106
  app_name: string;
1220
- /** Machine ID */
1221
- machine_id: string;
1107
+ /** Secret key name */
1108
+ secret_name: string;
1222
1109
  }
1223
- export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
1224
- export interface MachinesReleaseLeaseResponse {
1110
+ export declare const DeleteSecretKeyRequest: S.Schema<DeleteSecretKeyRequest>;
1111
+ export interface DeleteSecretkeyResponse {
1112
+ /** DEPRECATED */
1113
+ Version?: number;
1114
+ version?: number;
1225
1115
  }
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 {
1116
+ export declare const DeleteSecretkeyResponse: S.Schema<DeleteSecretkeyResponse>;
1117
+ export interface DeleteVolumeRequest {
1230
1118
  /** Fly App Name */
1231
1119
  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 & {});
1238
- }
1239
- export declare const MachinesRestartRequest: S.Schema<MachinesRestartRequest>;
1240
- export interface MachinesRestartResponse {
1120
+ /** Volume ID */
1121
+ volume_id: string;
1241
1122
  }
1242
- export declare const MachinesRestartResponse: S.Schema<MachinesRestartResponse>;
1243
- export interface MachinesSetMemoryLimitRequest {
1123
+ export declare const DeleteVolumeRequest: S.Schema<DeleteVolumeRequest>;
1124
+ export interface EncryptSecretKeyRequest {
1244
1125
  /** Fly App Name */
1245
1126
  app_name: string;
1246
- /** Machine ID */
1247
- machine_id: string;
1248
- limit_mb?: number;
1127
+ /** Secret key name */
1128
+ secret_name: string;
1129
+ /** Minimum secrets version to return. Returned when setting a new secret */
1130
+ min_version?: string;
1131
+ associated_data?: string;
1132
+ plaintext?: string;
1249
1133
  }
1250
- export declare const MachinesSetMemoryLimitRequest: S.Schema<MachinesSetMemoryLimitRequest>;
1251
- export interface MachinesShowRequest {
1252
- /** Fly App Name */
1253
- app_name: string;
1254
- /** Machine ID */
1255
- machine_id: string;
1134
+ export declare const EncryptSecretKeyRequest: S.Schema<EncryptSecretKeyRequest>;
1135
+ export interface EncryptSecretkeyResponse {
1136
+ ciphertext?: string;
1256
1137
  }
1257
- export declare const MachinesShowRequest: S.Schema<MachinesShowRequest>;
1258
- export interface MachinesShowLeaseRequest {
1138
+ export declare const EncryptSecretkeyResponse: S.Schema<EncryptSecretkeyResponse>;
1139
+ export type ExecMachineRequestCommandList = Array<string>;
1140
+ export declare const ExecMachineRequestCommandList: S.Schema<ExecMachineRequestCommandList>;
1141
+ export interface ExecMachineRequest {
1259
1142
  /** Fly App Name */
1260
1143
  app_name: string;
1261
1144
  /** Machine ID */
1262
1145
  machine_id: string;
1146
+ /** Deprecated: use Command instead */
1147
+ cmd?: string;
1148
+ command?: ExecMachineRequestCommandList;
1149
+ container?: string;
1150
+ stdin?: string;
1151
+ timeout?: number;
1263
1152
  }
1264
- export declare const MachinesShowLeaseRequest: S.Schema<MachinesShowLeaseRequest>;
1265
- export interface MachinesShowMetadataRequest {
1266
- /** Fly App Name */
1267
- app_name: string;
1268
- /** Machine ID */
1269
- machine_id: string;
1153
+ export declare const ExecMachineRequest: S.Schema<ExecMachineRequest>;
1154
+ export interface Flydv1ExecResponse {
1155
+ exit_code?: number;
1156
+ exit_signal?: number;
1157
+ stderr?: string;
1158
+ stdout?: string;
1270
1159
  }
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 {
1160
+ export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
1161
+ export interface ExtendVolumeRequest {
1281
1162
  /** Fly App Name */
1282
1163
  app_name: string;
1283
- /** Machine ID */
1284
- machine_id: string;
1285
- signal?: MachinesSignalRequestSignal | (string & {});
1164
+ /** Volume ID */
1165
+ volume_id: string;
1166
+ size_gb?: number;
1286
1167
  }
1287
- export declare const MachinesSignalRequest: S.Schema<MachinesSignalRequest>;
1288
- export interface MachinesSignalResponse {
1168
+ export declare const ExtendVolumeRequest: S.Schema<ExtendVolumeRequest>;
1169
+ export interface ExtendVolumeResponse {
1170
+ needs_restart?: boolean;
1171
+ volume?: Volume;
1289
1172
  }
1290
- export declare const MachinesSignalResponse: S.Schema<MachinesSignalResponse>;
1291
- export interface MachinesStartRequest {
1173
+ export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
1174
+ export type GenerateSecretKeyRequestValueList = Array<number>;
1175
+ export declare const GenerateSecretKeyRequestValueList: S.Schema<GenerateSecretKeyRequestValueList>;
1176
+ export interface GenerateSecretKeyRequest {
1292
1177
  /** Fly App Name */
1293
1178
  app_name: string;
1294
- /** Machine ID */
1295
- machine_id: string;
1179
+ /** Secret key name */
1180
+ secret_name: string;
1181
+ type?: string;
1182
+ value?: GenerateSecretKeyRequestValueList;
1296
1183
  }
1297
- export declare const MachinesStartRequest: S.Schema<MachinesStartRequest>;
1298
- export interface MachinesStartResponse {
1184
+ export declare const GenerateSecretKeyRequest: S.Schema<GenerateSecretKeyRequest>;
1185
+ export interface SetSecretkeyResponse {
1186
+ /** DEPRECATED */
1187
+ Version?: number;
1188
+ created_at?: string;
1189
+ name?: string;
1190
+ public_key?: string;
1191
+ type?: string;
1192
+ updated_at?: string;
1193
+ version?: number;
1299
1194
  }
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 {
1195
+ export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
1196
+ export interface GetAppRequest {
1304
1197
  /** Fly App Name */
1305
1198
  app_name: string;
1306
- /** Machine ID */
1307
- machine_id: string;
1308
- signal?: MachinesStopRequestSignal | (string & {});
1309
- timeout?: string;
1310
1199
  }
1311
- export declare const MachinesStopRequest: S.Schema<MachinesStopRequest>;
1312
- export interface MachinesStopResponse {
1200
+ export declare const GetAppRequest: S.Schema<GetAppRequest>;
1201
+ export interface AppOrganizationInfo {
1202
+ internal_numeric_id?: number;
1203
+ name?: string;
1204
+ slug?: string;
1205
+ }
1206
+ export declare const AppOrganizationInfo: S.Schema<AppOrganizationInfo>;
1207
+ export interface App {
1208
+ id?: string;
1209
+ internal_numeric_id?: number;
1210
+ machine_count?: number;
1211
+ name?: string;
1212
+ network?: string;
1213
+ organization?: AppOrganizationInfo;
1214
+ status?: string;
1215
+ volume_count?: number;
1313
1216
  }
1314
- export declare const MachinesStopResponse: S.Schema<MachinesStopResponse>;
1315
- export interface MachinesSuspendRequest {
1217
+ export declare const App: S.Schema<App>;
1218
+ export interface GetAppCertificateRequest {
1316
1219
  /** Fly App Name */
1317
1220
  app_name: string;
1318
- /** Machine ID */
1319
- machine_id: string;
1221
+ /** Certificate Hostname */
1222
+ hostname: string;
1320
1223
  }
1321
- export declare const MachinesSuspendRequest: S.Schema<MachinesSuspendRequest>;
1322
- export interface MachinesSuspendResponse {
1224
+ export declare const GetAppCertificateRequest: S.Schema<GetAppCertificateRequest>;
1225
+ export interface GetCurrentTokenRequest {
1323
1226
  }
1324
- export declare const MachinesSuspendResponse: S.Schema<MachinesSuspendResponse>;
1325
- export interface MachinesUncordonRequest {
1326
- /** Fly App Name */
1327
- app_name: string;
1328
- /** Machine ID */
1329
- machine_id: string;
1227
+ export declare const GetCurrentTokenRequest: S.Schema<GetCurrentTokenRequest>;
1228
+ export type MainTokenInfoAppsList = Array<string>;
1229
+ export declare const MainTokenInfoAppsList: S.Schema<MainTokenInfoAppsList>;
1230
+ export interface MainTokenInfo {
1231
+ apps?: MainTokenInfoAppsList;
1232
+ org_slug?: string;
1233
+ organization?: string;
1234
+ /** Machine the token is restricted to (FromMachine caveat) */
1235
+ restricted_to_machine?: string;
1236
+ /** Machine making the request */
1237
+ source_machine_id?: string;
1238
+ token_id?: string;
1239
+ /** User identifier if token is for a user */
1240
+ user?: string;
1330
1241
  }
1331
- export declare const MachinesUncordonRequest: S.Schema<MachinesUncordonRequest>;
1332
- export interface MachinesUncordonResponse {
1242
+ export declare const MainTokenInfo: S.Schema<MainTokenInfo>;
1243
+ export type CurrentTokenResponseTokensList = Array<MainTokenInfo>;
1244
+ export declare const CurrentTokenResponseTokensList: S.Schema<CurrentTokenResponseTokensList>;
1245
+ export interface CurrentTokenResponse {
1246
+ tokens?: CurrentTokenResponseTokensList;
1333
1247
  }
1334
- export declare const MachinesUncordonResponse: S.Schema<MachinesUncordonResponse>;
1335
- export interface MachinesUpdateRequest {
1248
+ export declare const CurrentTokenResponse: S.Schema<CurrentTokenResponse>;
1249
+ export interface GetMachineRequest {
1336
1250
  /** Fly App Name */
1337
1251
  app_name: string;
1338
1252
  /** Machine ID */
1339
1253
  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
1254
  }
1353
- export declare const MachinesUpdateRequest: S.Schema<MachinesUpdateRequest>;
1354
- export type MachinesUpdateMetadataRequestMetadataMap = {
1355
- [key: string]: string | undefined;
1356
- };
1357
- export declare const MachinesUpdateMetadataRequestMetadataMap: S.Schema<MachinesUpdateMetadataRequestMetadataMap>;
1358
- export interface MachinesUpdateMetadataRequest {
1255
+ export declare const GetMachineRequest: S.Schema<GetMachineRequest>;
1256
+ export interface GetMachineLeaseRequest {
1359
1257
  /** Fly App Name */
1360
1258
  app_name: string;
1361
1259
  /** Machine ID */
1362
1260
  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
1261
  }
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 {
1262
+ export declare const GetMachineLeaseRequest: S.Schema<GetMachineLeaseRequest>;
1263
+ export interface GetMachineMemoryRequest {
1376
1264
  /** Fly App Name */
1377
1265
  app_name: string;
1378
1266
  /** Machine ID */
1379
1267
  machine_id: string;
1380
- machine_version?: string;
1381
- metadata?: MachinesUpdateMetadataRequestMetadataMap2;
1382
- updated_at?: string;
1383
1268
  }
1384
- export declare const MachinesUpdateMetadataRequest2: S.Schema<MachinesUpdateMetadataRequest2>;
1385
- export interface MachinesUpdateMetadata2Response {
1269
+ export declare const GetMachineMemoryRequest: S.Schema<GetMachineMemoryRequest>;
1270
+ export interface MainMemoryResponse {
1271
+ available_mb?: number;
1272
+ limit_mb?: number;
1386
1273
  }
1387
- export declare const MachinesUpdateMetadata2Response: S.Schema<MachinesUpdateMetadata2Response>;
1388
- export interface MachinesUpsertMetadataRequest {
1274
+ export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
1275
+ export interface GetMachineMetadataRequest {
1389
1276
  /** Fly App Name */
1390
1277
  app_name: string;
1391
1278
  /** Machine ID */
1392
1279
  machine_id: string;
1393
- /** Metadata Key */
1394
- key: string;
1395
- updated_at?: string;
1396
- value?: string;
1397
1280
  }
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 {
1281
+ export declare const GetMachineMetadataRequest: S.Schema<GetMachineMetadataRequest>;
1282
+ export type GetMachineMetadataResponseBodyMap = {
1283
+ [key: string]: string | undefined;
1284
+ };
1285
+ export declare const GetMachineMetadataResponseBodyMap: S.Schema<GetMachineMetadataResponseBodyMap>;
1286
+ export type GetMachineMetadataResponse = GetMachineMetadataResponseBodyMap;
1287
+ export declare const GetMachineMetadataResponse: S.Schema<GetMachineMetadataResponse>;
1288
+ export interface GetMachineMetadataKeyRequest {
1405
1289
  /** Fly App Name */
1406
1290
  app_name: string;
1407
1291
  /** Machine ID */
1408
1292
  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 & {});
1293
+ /** Metadata Key */
1294
+ key: string;
1419
1295
  }
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;
1296
+ export declare const GetMachineMetadataKeyRequest: S.Schema<GetMachineMetadataKeyRequest>;
1297
+ export interface MetadataValueResponse {
1298
+ value?: string;
1426
1299
  }
1427
- export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
1300
+ export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
1428
1301
  export type PlacementWeights = {
1429
1302
  [key: string]: number | undefined;
1430
1303
  };
1431
1304
  export declare const PlacementWeights: S.Schema<PlacementWeights>;
1432
- export interface PlatformPlacementsPostRequest {
1305
+ export interface GetPlacementsRequest {
1433
1306
  /** Resource requirements for the Machine to simulate. Defaults to a performance-1x machine */
1434
1307
  compute?: FlyMachineGuest;
1435
1308
  /** Number of machines to simulate placement. Defaults to 0, which returns the org-specific limit for each region. */
@@ -1442,7 +1315,7 @@ export interface PlatformPlacementsPostRequest {
1442
1315
  /** Optional weights to override default placement preferences. */
1443
1316
  weights?: PlacementWeights;
1444
1317
  }
1445
- export declare const PlatformPlacementsPostRequest: S.Schema<PlatformPlacementsPostRequest>;
1318
+ export declare const GetPlacementsRequest: S.Schema<GetPlacementsRequest>;
1446
1319
  export interface PlacementRegionPlacement {
1447
1320
  concurrency?: number;
1448
1321
  count?: number;
@@ -1455,9 +1328,9 @@ export interface MainGetPlacementsResponse {
1455
1328
  regions?: MainGetPlacementsResponseRegionsList;
1456
1329
  }
1457
1330
  export declare const MainGetPlacementsResponse: S.Schema<MainGetPlacementsResponse>;
1458
- export interface PlatformRegionsGetRequest {
1331
+ export interface GetRegionsRequest {
1459
1332
  }
1460
- export declare const PlatformRegionsGetRequest: S.Schema<PlatformRegionsGetRequest>;
1333
+ export declare const GetRegionsRequest: S.Schema<GetRegionsRequest>;
1461
1334
  export interface MainRegionRow {
1462
1335
  code?: string;
1463
1336
  deprecated?: boolean;
@@ -1476,39 +1349,7 @@ export interface MainRegionResponse {
1476
1349
  regions?: MainRegionResponseRegionsList;
1477
1350
  }
1478
1351
  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 {
1352
+ export interface GetSecretRequest {
1512
1353
  /** Fly App Name */
1513
1354
  app_name: string;
1514
1355
  /** App secret name */
@@ -1518,7 +1359,7 @@ export interface SecretGetRequest {
1518
1359
  /** Show the secret value. */
1519
1360
  show_secrets?: boolean;
1520
1361
  }
1521
- export declare const SecretGetRequest: S.Schema<SecretGetRequest>;
1362
+ export declare const GetSecretRequest: S.Schema<GetSecretRequest>;
1522
1363
  export interface AppSecret {
1523
1364
  created_at?: string;
1524
1365
  digest?: string;
@@ -1527,134 +1368,282 @@ export interface AppSecret {
1527
1368
  value?: string;
1528
1369
  }
1529
1370
  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 {
1371
+ export interface GetSecretKeyRequest {
1535
1372
  /** Fly App Name */
1536
1373
  app_name: string;
1537
1374
  /** Secret key name */
1538
1375
  secret_name: string;
1539
1376
  /** Minimum secrets version to return. Returned when setting a new secret */
1540
1377
  min_version?: string;
1541
- associated_data?: SecretkeyDecryptRequestAssociatedDataList;
1542
- ciphertext?: SecretkeyDecryptRequestCiphertextList;
1543
1378
  }
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;
1379
+ export declare const GetSecretKeyRequest: S.Schema<GetSecretKeyRequest>;
1380
+ export interface SecretKey {
1381
+ created_at?: string;
1382
+ name?: string;
1383
+ public_key?: string;
1384
+ type?: string;
1385
+ updated_at?: string;
1549
1386
  }
1550
- export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
1551
- export interface SecretkeyDeleteRequest {
1387
+ export declare const SecretKey: S.Schema<SecretKey>;
1388
+ export interface GetVolumeByIdRequest {
1552
1389
  /** Fly App Name */
1553
1390
  app_name: string;
1554
- /** Secret key name */
1555
- secret_name: string;
1556
- }
1557
- export declare const SecretkeyDeleteRequest: S.Schema<SecretkeyDeleteRequest>;
1558
- export interface DeleteSecretkeyResponse {
1559
- /** DEPRECATED */
1560
- Version?: number;
1561
- version?: number;
1391
+ /** Volume ID */
1392
+ volume_id: string;
1562
1393
  }
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 {
1394
+ export declare const GetVolumeByIdRequest: S.Schema<GetVolumeByIdRequest>;
1395
+ export interface ListAppCertificatesRequest {
1569
1396
  /** Fly App Name */
1570
1397
  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;
1398
+ /** Hostname filter (substring match) */
1399
+ filter?: string;
1400
+ /** Pagination cursor from previous response */
1401
+ cursor?: string;
1402
+ /** Number of results per page (default 25, max 500) */
1403
+ limit?: number;
1577
1404
  }
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;
1405
+ export declare const ListAppCertificatesRequest: S.Schema<ListAppCertificatesRequest>;
1406
+ export interface CertificateSummary {
1407
+ acme_alpn_configured?: boolean;
1408
+ acme_dns_configured?: boolean;
1409
+ acme_http_configured?: boolean;
1410
+ acme_requested?: boolean;
1411
+ configured?: boolean;
1412
+ created_at?: string;
1413
+ dns_provider?: string;
1414
+ has_custom_certificate?: boolean;
1415
+ has_fly_certificate?: boolean;
1416
+ hostname?: string;
1417
+ ownership_txt_configured?: boolean;
1418
+ status?: string;
1419
+ updated_at?: string;
1583
1420
  }
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 {
1421
+ export declare const CertificateSummary: S.Schema<CertificateSummary>;
1422
+ export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
1423
+ export declare const ListCertificatesResponseCertificatesList: S.Schema<ListCertificatesResponseCertificatesList>;
1424
+ export interface ListCertificatesResponse {
1425
+ certificates?: ListCertificatesResponseCertificatesList;
1426
+ next_cursor?: string;
1427
+ total_count?: number;
1428
+ }
1429
+ export declare const ListCertificatesResponse: S.Schema<ListCertificatesResponse>;
1430
+ export interface ListAppIPAssignmentsRequest {
1588
1431
  /** Fly App Name */
1589
1432
  app_name: string;
1590
- /** Secret key name */
1591
- secret_name: string;
1592
- type?: string;
1593
- value?: SecretkeyGenerateRequestValueList;
1594
1433
  }
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;
1601
- created_at?: string;
1602
- name?: string;
1603
- public_key?: SetSecretkeyResponsePublicKeyList;
1604
- type?: string;
1605
- updated_at?: string;
1606
- version?: number;
1434
+ export declare const ListAppIPAssignmentsRequest: S.Schema<ListAppIPAssignmentsRequest>;
1435
+ export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
1436
+ export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
1437
+ export interface ListIPAssignmentsResponse {
1438
+ ips?: ListIPAssignmentsResponseIpsList;
1607
1439
  }
1608
- export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
1609
- export interface SecretkeyGetRequest {
1440
+ export declare const ListIPAssignmentsResponse: S.Schema<ListIPAssignmentsResponse>;
1441
+ export interface ListAppsRequest {
1442
+ /** The org slug, or 'personal', to filter apps */
1443
+ org_slug: string;
1444
+ /** Filter apps by role */
1445
+ app_role?: string;
1446
+ }
1447
+ export declare const ListAppsRequest: S.Schema<ListAppsRequest>;
1448
+ export type ListAppsResponseAppsList = Array<App>;
1449
+ export declare const ListAppsResponseAppsList: S.Schema<ListAppsResponseAppsList>;
1450
+ export interface ListAppsResponse {
1451
+ apps?: ListAppsResponseAppsList;
1452
+ total_apps?: number;
1453
+ }
1454
+ export declare const ListAppsResponse: S.Schema<ListAppsResponse>;
1455
+ export interface ListMachineEventsRequest {
1610
1456
  /** Fly App Name */
1611
1457
  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;
1458
+ /** Machine ID */
1459
+ machine_id: string;
1460
+ /** The number of events to fetch (max of 50). If omitted, this is set to 20 by default. */
1461
+ limit?: number;
1616
1462
  }
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 {
1621
- created_at?: string;
1622
- name?: string;
1623
- public_key?: SecretKeyPublicKeyList;
1624
- type?: string;
1625
- updated_at?: string;
1463
+ export declare const ListMachineEventsRequest: S.Schema<ListMachineEventsRequest>;
1464
+ export type ListMachineEventsResponseBodyList = Array<MachineEvent>;
1465
+ export declare const ListMachineEventsResponseBodyList: S.Schema<ListMachineEventsResponseBodyList>;
1466
+ export type ListMachineEventsResponse = ListMachineEventsResponseBodyList;
1467
+ export declare const ListMachineEventsResponse: S.Schema<ListMachineEventsResponse>;
1468
+ export interface ListMachineProcessesRequest {
1469
+ /** Fly App Name */
1470
+ app_name: string;
1471
+ /** Machine ID */
1472
+ machine_id: string;
1473
+ /** Sort by */
1474
+ sort_by?: string;
1475
+ /** Order */
1476
+ order?: string;
1626
1477
  }
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 {
1478
+ export declare const ListMachineProcessesRequest: S.Schema<ListMachineProcessesRequest>;
1479
+ export interface ListenSocket {
1480
+ address?: string;
1481
+ proto?: string;
1482
+ }
1483
+ export declare const ListenSocket: S.Schema<ListenSocket>;
1484
+ export type ProcessStatListenSocketsList = Array<ListenSocket>;
1485
+ export declare const ProcessStatListenSocketsList: S.Schema<ProcessStatListenSocketsList>;
1486
+ export interface ProcessStat {
1487
+ command?: string;
1488
+ cpu?: number;
1489
+ directory?: string;
1490
+ listen_sockets?: ProcessStatListenSocketsList;
1491
+ pid?: number;
1492
+ rss?: number;
1493
+ rtime?: number;
1494
+ stime?: number;
1495
+ }
1496
+ export declare const ProcessStat: S.Schema<ProcessStat>;
1497
+ export type ListMachineProcessesResponseBodyList = Array<ProcessStat>;
1498
+ export declare const ListMachineProcessesResponseBodyList: S.Schema<ListMachineProcessesResponseBodyList>;
1499
+ export type ListMachineProcessesResponse = ListMachineProcessesResponseBodyList;
1500
+ export declare const ListMachineProcessesResponse: S.Schema<ListMachineProcessesResponse>;
1501
+ export interface ListMachinesRequest {
1631
1502
  /** Fly App Name */
1632
1503
  app_name: string;
1633
- /** Secret key name */
1634
- secret_name: string;
1635
- type?: string;
1636
- value?: SecretkeySetRequestValueList;
1504
+ /** Include deleted machines */
1505
+ include_deleted?: boolean;
1506
+ /** Region filter */
1507
+ region?: string;
1508
+ /** comma separated list of states to filter (created, started, stopped, suspended) */
1509
+ state?: string;
1510
+ /** Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.) */
1511
+ summary?: boolean;
1637
1512
  }
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 {
1513
+ export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
1514
+ export type ListMachinesResponseBodyList = Array<Machine>;
1515
+ export declare const ListMachinesResponseBodyList: S.Schema<ListMachinesResponseBodyList>;
1516
+ export type ListMachinesResponse = ListMachinesResponseBodyList;
1517
+ export declare const ListMachinesResponse: S.Schema<ListMachinesResponse>;
1518
+ export interface ListMachineVersionsRequest {
1642
1519
  /** Fly App Name */
1643
1520
  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;
1521
+ /** Machine ID */
1522
+ machine_id: string;
1649
1523
  }
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;
1524
+ export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
1525
+ export interface MachineVersion {
1526
+ user_config?: FlyMachineConfig;
1527
+ version?: string;
1655
1528
  }
1656
- export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
1657
- export interface SecretkeysListRequest {
1529
+ export declare const MachineVersion: S.Schema<MachineVersion>;
1530
+ export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
1531
+ export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
1532
+ export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
1533
+ export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
1534
+ export interface ListOrgMachinesRequest {
1535
+ /** Fly Organization Slug */
1536
+ org_slug: string;
1537
+ /** Include deleted machines */
1538
+ include_deleted?: boolean;
1539
+ /** Region filter */
1540
+ region?: string;
1541
+ /** Comma separated list of states to filter (created, started, stopped, suspended) */
1542
+ state?: string;
1543
+ /** Omit config from responses */
1544
+ summary?: boolean;
1545
+ /** Only return machines updated after this time. Timestamp must be in the RFC 3339 format */
1546
+ updated_after?: string;
1547
+ /** 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. */
1548
+ cursor?: string;
1549
+ /** 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 */
1550
+ limit?: number;
1551
+ }
1552
+ export declare const ListOrgMachinesRequest: S.Schema<ListOrgMachinesRequest>;
1553
+ export type OrgMachinesResponseErrorRegionsList = Array<string>;
1554
+ export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
1555
+ export type MachineOverviewConfigMetadataMap = {
1556
+ [key: string]: string | undefined;
1557
+ };
1558
+ export declare const MachineOverviewConfigMetadataMap: S.Schema<MachineOverviewConfigMetadataMap>;
1559
+ export interface MachineOverviewConfig {
1560
+ guest?: FlyMachineGuest;
1561
+ image?: string;
1562
+ metadata?: MachineOverviewConfigMetadataMap;
1563
+ }
1564
+ export declare const MachineOverviewConfig: S.Schema<MachineOverviewConfig>;
1565
+ export interface OrgMachine {
1566
+ app_name?: string;
1567
+ config?: MachineOverviewConfig;
1568
+ created_at?: string;
1569
+ id?: string;
1570
+ name?: string;
1571
+ private_ip?: string;
1572
+ region?: string;
1573
+ state?: string;
1574
+ updated_at?: string;
1575
+ version?: string;
1576
+ }
1577
+ export declare const OrgMachine: S.Schema<OrgMachine>;
1578
+ export type OrgMachinesResponseMachinesList = Array<OrgMachine>;
1579
+ export declare const OrgMachinesResponseMachinesList: S.Schema<OrgMachinesResponseMachinesList>;
1580
+ export interface OrgMachinesResponse {
1581
+ error_regions?: OrgMachinesResponseErrorRegionsList;
1582
+ last_machine_id?: string;
1583
+ last_updated_at?: string;
1584
+ machines?: OrgMachinesResponseMachinesList;
1585
+ next_cursor?: string;
1586
+ }
1587
+ export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
1588
+ export interface ListOrgVolumesRequest {
1589
+ /** Fly Organization Slug */
1590
+ org_slug: string;
1591
+ /** Include deleted volumes */
1592
+ include_deleted?: boolean;
1593
+ /** Region filter */
1594
+ region?: string;
1595
+ /** Comma separated list of volume states to filter */
1596
+ state?: string;
1597
+ /** Only return summary info about volumes (omit blocks, block size, etc) */
1598
+ summary?: boolean;
1599
+ /** Only return volumes updated after this time. Timestamp must be in the RFC 3339 format */
1600
+ updated_after?: string;
1601
+ /** Pagination cursor from previous response (takes precedence over updated_after) */
1602
+ cursor?: string;
1603
+ /** 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 */
1604
+ limit?: number;
1605
+ }
1606
+ export declare const ListOrgVolumesRequest: S.Schema<ListOrgVolumesRequest>;
1607
+ export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
1608
+ export declare const OrgVolumeHostStatus: any;
1609
+ export type OrgVolumeType = "local" | "cache";
1610
+ export declare const OrgVolumeType: any;
1611
+ export interface OrgVolume {
1612
+ app_name?: string;
1613
+ attached_alloc_id?: string;
1614
+ attached_machine_id?: string;
1615
+ auto_backup_enabled?: boolean;
1616
+ block_size?: number;
1617
+ blocks?: number;
1618
+ blocks_avail?: number;
1619
+ blocks_free?: number;
1620
+ bytes_total?: number;
1621
+ bytes_used?: number;
1622
+ created_at?: string;
1623
+ encrypted?: boolean;
1624
+ fstype?: string;
1625
+ host_status?: OrgVolumeHostStatus;
1626
+ id?: string;
1627
+ name?: string;
1628
+ region?: string;
1629
+ size_gb?: number;
1630
+ snapshot_retention?: number;
1631
+ state?: string;
1632
+ type?: OrgVolumeType;
1633
+ updated_at?: string;
1634
+ zone?: string;
1635
+ }
1636
+ export declare const OrgVolume: S.Schema<OrgVolume>;
1637
+ export type OrgVolumesResponseVolumesList = Array<OrgVolume>;
1638
+ export declare const OrgVolumesResponseVolumesList: S.Schema<OrgVolumesResponseVolumesList>;
1639
+ export interface OrgVolumesResponse {
1640
+ last_updated_at?: string;
1641
+ last_volume_id?: string;
1642
+ next_cursor?: string;
1643
+ volumes?: OrgVolumesResponseVolumesList;
1644
+ }
1645
+ export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
1646
+ export interface ListSecretKeysRequest {
1658
1647
  /** Fly App Name */
1659
1648
  app_name: string;
1660
1649
  /** Minimum secrets version to return. Returned when setting a new secret */
@@ -1662,32 +1651,14 @@ export interface SecretkeysListRequest {
1662
1651
  /** Comma-seperated list of secret keys to list */
1663
1652
  types?: string;
1664
1653
  }
1665
- export declare const SecretkeysListRequest: S.Schema<SecretkeysListRequest>;
1654
+ export declare const ListSecretKeysRequest: S.Schema<ListSecretKeysRequest>;
1666
1655
  export type SecretKeysSecretKeysList = Array<SecretKey>;
1667
1656
  export declare const SecretKeysSecretKeysList: S.Schema<SecretKeysSecretKeysList>;
1668
1657
  export interface SecretKeys {
1669
1658
  secret_keys?: SecretKeysSecretKeysList;
1670
1659
  }
1671
1660
  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 {
1677
- /** Fly App Name */
1678
- 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 {
1688
- }
1689
- export declare const SecretkeyVerifyResponse: S.Schema<SecretkeyVerifyResponse>;
1690
- export interface SecretsListRequest {
1661
+ export interface ListSecretsRequest {
1691
1662
  /** Fly App Name */
1692
1663
  app_name: string;
1693
1664
  /** Minimum secrets version to return. Returned when setting a new secret */
@@ -1695,542 +1666,548 @@ export interface SecretsListRequest {
1695
1666
  /** Show the secret values. */
1696
1667
  show_secrets?: boolean;
1697
1668
  }
1698
- export declare const SecretsListRequest: S.Schema<SecretsListRequest>;
1669
+ export declare const ListSecretsRequest: S.Schema<ListSecretsRequest>;
1699
1670
  export type AppSecretsSecretsList = Array<AppSecret>;
1700
1671
  export declare const AppSecretsSecretsList: S.Schema<AppSecretsSecretsList>;
1701
1672
  export interface AppSecrets {
1702
1673
  secrets?: AppSecretsSecretsList;
1703
1674
  }
1704
1675
  export declare const AppSecrets: S.Schema<AppSecrets>;
1705
- export type SecretsUpdateRequestValuesMap = {
1676
+ export interface ListVolumesRequest {
1677
+ /** Fly App Name */
1678
+ app_name: string;
1679
+ /** Only return summary info about volumes (omit blocks, block size, etc) */
1680
+ summary?: boolean;
1681
+ }
1682
+ export declare const ListVolumesRequest: S.Schema<ListVolumesRequest>;
1683
+ export type ListVolumesResponseBodyList = Array<Volume>;
1684
+ export declare const ListVolumesResponseBodyList: S.Schema<ListVolumesResponseBodyList>;
1685
+ export type ListVolumesResponse = ListVolumesResponseBodyList;
1686
+ export declare const ListVolumesResponse: S.Schema<ListVolumesResponse>;
1687
+ export interface ListVolumeSnapshotsRequest {
1688
+ /** Fly App Name */
1689
+ app_name: string;
1690
+ /** Volume ID */
1691
+ volume_id: string;
1692
+ }
1693
+ export declare const ListVolumeSnapshotsRequest: S.Schema<ListVolumeSnapshotsRequest>;
1694
+ export interface VolumeSnapshot {
1695
+ created_at?: string;
1696
+ digest?: string;
1697
+ id?: string;
1698
+ retention_days?: number;
1699
+ size?: number;
1700
+ status?: string;
1701
+ volume_size?: number;
1702
+ }
1703
+ export declare const VolumeSnapshot: S.Schema<VolumeSnapshot>;
1704
+ export type ListVolumeSnapshotsResponseBodyList = Array<VolumeSnapshot>;
1705
+ export declare const ListVolumeSnapshotsResponseBodyList: S.Schema<ListVolumeSnapshotsResponseBodyList>;
1706
+ export type ListVolumeSnapshotsResponse = ListVolumeSnapshotsResponseBodyList;
1707
+ export declare const ListVolumeSnapshotsResponse: S.Schema<ListVolumeSnapshotsResponse>;
1708
+ export type PatchMachineMetadataRequestMetadataMap = {
1706
1709
  [key: string]: string | undefined;
1707
1710
  };
1708
- export declare const SecretsUpdateRequestValuesMap: S.Schema<SecretsUpdateRequestValuesMap>;
1709
- export interface SecretsUpdateRequest {
1711
+ export declare const PatchMachineMetadataRequestMetadataMap: S.Schema<PatchMachineMetadataRequestMetadataMap>;
1712
+ export interface PatchMachineMetadataRequest {
1710
1713
  /** Fly App Name */
1711
1714
  app_name: string;
1712
- values?: SecretsUpdateRequestValuesMap;
1715
+ /** Machine ID */
1716
+ machine_id: string;
1717
+ machine_version?: string;
1718
+ metadata?: PatchMachineMetadataRequestMetadataMap;
1719
+ updated_at?: string;
1713
1720
  }
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;
1721
+ export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataRequest>;
1722
+ export interface PatchMachineMetadataResponse {
1722
1723
  }
1723
- export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
1724
- export interface TokensAuthenticateRequest {
1725
- header?: string;
1724
+ export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
1725
+ export interface ReclaimMachineMemoryRequest {
1726
+ /** Fly App Name */
1727
+ app_name: string;
1728
+ /** Machine ID */
1729
+ machine_id: string;
1730
+ amount_mb?: number;
1726
1731
  }
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
+ export declare const ReclaimMachineMemoryRequest: S.Schema<ReclaimMachineMemoryRequest>;
1733
+ export interface MainReclaimMemoryResponse {
1734
+ actual_mb?: number;
1732
1735
  }
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;
1736
+ export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
1737
+ export interface ReleaseMachineLeaseRequest {
1738
+ /** Fly App Name */
1739
+ app_name: string;
1740
+ /** Machine ID */
1741
+ machine_id: string;
1742
1742
  }
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;
1743
+ export declare const ReleaseMachineLeaseRequest: S.Schema<ReleaseMachineLeaseRequest>;
1744
+ export interface ReleaseMachineLeaseResponse {
1751
1745
  }
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. */
1768
- 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;
1746
+ export declare const ReleaseMachineLeaseResponse: S.Schema<ReleaseMachineLeaseResponse>;
1747
+ export interface RequestKmsTokenRequest {
1787
1748
  }
1788
- export declare const MainTokenAccess: S.Schema<MainTokenAccess>;
1789
- export interface TokensAuthorizeRequest {
1790
- access?: MainTokenAccess;
1791
- header?: string;
1749
+ export declare const RequestKmsTokenRequest: S.Schema<RequestKmsTokenRequest>;
1750
+ export interface RequestKmsTokenResponse {
1792
1751
  }
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;
1752
+ export declare const RequestKmsTokenResponse: S.Schema<RequestKmsTokenResponse>;
1753
+ export interface RequestOidcTokenRequest {
1754
+ aud?: string;
1755
+ aws_principal_tags?: boolean;
1812
1756
  }
1813
- export declare const FlyioAccess: S.Schema<FlyioAccess>;
1814
- export interface AuthorizeResponse {
1815
- access?: FlyioAccess;
1816
- verified_token?: RootVerifiedToken;
1757
+ export declare const RequestOidcTokenRequest: S.Schema<RequestOidcTokenRequest>;
1758
+ export interface RequestOidcTokenResponse {
1817
1759
  }
1818
- export declare const AuthorizeResponse: S.Schema<AuthorizeResponse>;
1819
- export interface TokensRequestKmsRequest {
1760
+ export declare const RequestOidcTokenResponse: S.Schema<RequestOidcTokenResponse>;
1761
+ export type RestartMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
1762
+ export declare const RestartMachineRequestSignal: any;
1763
+ export interface RestartMachineRequest {
1764
+ /** Fly App Name */
1765
+ app_name: string;
1766
+ /** Machine ID */
1767
+ machine_id: string;
1768
+ /** Restart timeout as a Go duration string or number of seconds */
1769
+ timeout?: string;
1770
+ /** Unix signal name */
1771
+ signal?: RestartMachineRequestSignal | (string & {});
1820
1772
  }
1821
- export declare const TokensRequestKmsRequest: S.Schema<TokensRequestKmsRequest>;
1822
- export interface TokensRequestKmsResponse {
1773
+ export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
1774
+ export interface RestartMachineResponse {
1823
1775
  }
1824
- export declare const TokensRequestKmsResponse: S.Schema<TokensRequestKmsResponse>;
1825
- export interface TokensRequestOIDCRequest {
1826
- aud?: string;
1827
- aws_principal_tags?: boolean;
1776
+ export declare const RestartMachineResponse: S.Schema<RestartMachineResponse>;
1777
+ export interface SetMachineMemoryLimitRequest {
1778
+ /** Fly App Name */
1779
+ app_name: string;
1780
+ /** Machine ID */
1781
+ machine_id: string;
1782
+ limit_mb?: number;
1828
1783
  }
1829
- export declare const TokensRequestOIDCRequest: S.Schema<TokensRequestOIDCRequest>;
1830
- export interface TokensRequestOIDCResponse {
1784
+ export declare const SetMachineMemoryLimitRequest: S.Schema<SetMachineMemoryLimitRequest>;
1785
+ export type SetSecretKeyRequestValueList = Array<number>;
1786
+ export declare const SetSecretKeyRequestValueList: S.Schema<SetSecretKeyRequestValueList>;
1787
+ export interface SetSecretKeyRequest {
1788
+ /** Fly App Name */
1789
+ app_name: string;
1790
+ /** Secret key name */
1791
+ secret_name: string;
1792
+ type?: string;
1793
+ value?: SetSecretKeyRequestValueList;
1831
1794
  }
1832
- export declare const TokensRequestOIDCResponse: S.Schema<TokensRequestOIDCResponse>;
1833
- export interface VolumeDeleteRequest {
1795
+ export declare const SetSecretKeyRequest: S.Schema<SetSecretKeyRequest>;
1796
+ export type SignalMachineRequestSignal = "SIGABRT" | "SIGALRM" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGKILL" | "SIGPIPE" | "SIGQUIT" | "SIGSEGV" | "SIGTERM" | "SIGTRAP" | "SIGUSR1" | "SIGUSR2";
1797
+ export declare const SignalMachineRequestSignal: any;
1798
+ export interface SignalMachineRequest {
1834
1799
  /** Fly App Name */
1835
1800
  app_name: string;
1836
- /** Volume ID */
1837
- volume_id: string;
1801
+ /** Machine ID */
1802
+ machine_id: string;
1803
+ signal?: SignalMachineRequestSignal | (string & {});
1838
1804
  }
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;
1854
- created_at?: string;
1855
- encrypted?: boolean;
1856
- fstype?: string;
1857
- host_status?: VolumeHostStatus;
1858
- id?: string;
1859
- name?: string;
1860
- region?: string;
1861
- size_gb?: number;
1862
- snapshot_retention?: number;
1863
- state?: string;
1864
- type?: VolumeType;
1865
- zone?: string;
1805
+ export declare const SignalMachineRequest: S.Schema<SignalMachineRequest>;
1806
+ export interface SignalMachineResponse {
1807
+ }
1808
+ export declare const SignalMachineResponse: S.Schema<SignalMachineResponse>;
1809
+ export interface SignSecretKeyRequest {
1810
+ /** Fly App Name */
1811
+ app_name: string;
1812
+ /** Secret key name */
1813
+ secret_name: string;
1814
+ /** Minimum secrets version to return. Returned when setting a new secret */
1815
+ min_version?: string;
1816
+ plaintext?: string;
1817
+ }
1818
+ export declare const SignSecretKeyRequest: S.Schema<SignSecretKeyRequest>;
1819
+ export interface SignSecretkeyResponse {
1820
+ signature?: string;
1821
+ }
1822
+ export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
1823
+ export interface StartMachineRequest {
1824
+ /** Fly App Name */
1825
+ app_name: string;
1826
+ /** Machine ID */
1827
+ machine_id: string;
1828
+ }
1829
+ export declare const StartMachineRequest: S.Schema<StartMachineRequest>;
1830
+ export interface StartMachineResponse {
1831
+ }
1832
+ export declare const StartMachineResponse: S.Schema<StartMachineResponse>;
1833
+ export type StopMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
1834
+ export declare const StopMachineRequestSignal: any;
1835
+ export interface StopMachineRequest {
1836
+ /** Fly App Name */
1837
+ app_name: string;
1838
+ /** Machine ID */
1839
+ machine_id: string;
1840
+ signal?: StopMachineRequestSignal | (string & {});
1841
+ timeout?: string;
1842
+ }
1843
+ export declare const StopMachineRequest: S.Schema<StopMachineRequest>;
1844
+ export interface StopMachineResponse {
1845
+ }
1846
+ export declare const StopMachineResponse: S.Schema<StopMachineResponse>;
1847
+ export interface SuspendMachineRequest {
1848
+ /** Fly App Name */
1849
+ app_name: string;
1850
+ /** Machine ID */
1851
+ machine_id: string;
1852
+ }
1853
+ export declare const SuspendMachineRequest: S.Schema<SuspendMachineRequest>;
1854
+ export interface SuspendMachineResponse {
1855
+ }
1856
+ export declare const SuspendMachineResponse: S.Schema<SuspendMachineResponse>;
1857
+ export interface UncordonMachineRequest {
1858
+ /** Fly App Name */
1859
+ app_name: string;
1860
+ /** Machine ID */
1861
+ machine_id: string;
1866
1862
  }
1867
- export declare const Volume: S.Schema<Volume>;
1868
- export interface VolumesCreateRequest {
1863
+ export declare const UncordonMachineRequest: S.Schema<UncordonMachineRequest>;
1864
+ export interface UncordonMachineResponse {
1865
+ }
1866
+ export declare const UncordonMachineResponse: S.Schema<UncordonMachineResponse>;
1867
+ export interface UpdateMachineRequest {
1869
1868
  /** Fly App Name */
1870
1869
  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;
1870
+ /** Machine ID */
1871
+ machine_id: string;
1872
+ /** An object defining the Machine configuration */
1873
+ config?: FlyMachineConfig;
1874
+ current_version?: string;
1875
+ lease_ttl?: number;
1876
+ min_secrets_version?: number;
1877
+ /** Unique name for this Machine. If omitted, one is generated for you */
1877
1878
  name?: string;
1879
+ /** The target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you). */
1878
1880
  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;
1881
+ skip_launch?: boolean;
1882
+ skip_secrets?: boolean;
1883
+ skip_service_registration?: boolean;
1887
1884
  }
1888
- export declare const VolumesCreateRequest: S.Schema<VolumesCreateRequest>;
1889
- export interface VolumesExtendRequest {
1885
+ export declare const UpdateMachineRequest: S.Schema<UpdateMachineRequest>;
1886
+ export type UpdateMachineMetadataRequestMetadataMap = {
1887
+ [key: string]: string | undefined;
1888
+ };
1889
+ export declare const UpdateMachineMetadataRequestMetadataMap: S.Schema<UpdateMachineMetadataRequestMetadataMap>;
1890
+ export interface UpdateMachineMetadataRequest {
1890
1891
  /** Fly App Name */
1891
1892
  app_name: string;
1892
- /** Volume ID */
1893
- volume_id: string;
1894
- size_gb?: number;
1893
+ /** Machine ID */
1894
+ machine_id: string;
1895
+ machine_version?: string;
1896
+ metadata?: UpdateMachineMetadataRequestMetadataMap;
1897
+ updated_at?: string;
1895
1898
  }
1896
- export declare const VolumesExtendRequest: S.Schema<VolumesExtendRequest>;
1897
- export interface ExtendVolumeResponse {
1898
- needs_restart?: boolean;
1899
- volume?: Volume;
1899
+ export declare const UpdateMachineMetadataRequest: S.Schema<UpdateMachineMetadataRequest>;
1900
+ export interface UpdateMachineMetadataResponse {
1900
1901
  }
1901
- export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
1902
- export interface VolumesGetByIdRequest {
1902
+ export declare const UpdateMachineMetadataResponse: S.Schema<UpdateMachineMetadataResponse>;
1903
+ export type UpdateSecretsRequestValuesMap = {
1904
+ [key: string]: string | undefined;
1905
+ };
1906
+ export declare const UpdateSecretsRequestValuesMap: S.Schema<UpdateSecretsRequestValuesMap>;
1907
+ export interface UpdateSecretsRequest {
1903
1908
  /** Fly App Name */
1904
1909
  app_name: string;
1905
- /** Volume ID */
1906
- volume_id: string;
1910
+ values?: UpdateSecretsRequestValuesMap;
1907
1911
  }
1908
- export declare const VolumesGetByIdRequest: S.Schema<VolumesGetByIdRequest>;
1909
- export interface VolumesListRequest {
1910
- /** Fly App Name */
1911
- app_name: string;
1912
- /** Only return summary info about volumes (omit blocks, block size, etc) */
1913
- summary?: boolean;
1912
+ export declare const UpdateSecretsRequest: S.Schema<UpdateSecretsRequest>;
1913
+ export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
1914
+ export declare const AppSecretsUpdateRespSecretsList: S.Schema<AppSecretsUpdateRespSecretsList>;
1915
+ export interface AppSecretsUpdateResp {
1916
+ /** DEPRECATED */
1917
+ Version?: number;
1918
+ secrets?: AppSecretsUpdateRespSecretsList;
1919
+ version?: number;
1914
1920
  }
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 {
1921
+ export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
1922
+ export interface UpdateVolumeRequest {
1921
1923
  /** Fly App Name */
1922
1924
  app_name: string;
1923
1925
  /** Volume ID */
1924
1926
  volume_id: string;
1925
- }
1926
- export declare const VolumesListSnapshotsRequest: S.Schema<VolumesListSnapshotsRequest>;
1927
- export interface VolumeSnapshot {
1928
- created_at?: string;
1929
- digest?: string;
1930
- id?: string;
1931
- retention_days?: number;
1932
- size?: number;
1933
- status?: string;
1934
- volume_size?: number;
1935
- }
1936
- 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 {
1942
- /** Fly Organization Slug */
1943
- org_slug: string;
1944
- /** Include deleted volumes */
1945
- include_deleted?: boolean;
1946
- /** Region filter */
1947
- region?: string;
1948
- /** Comma separated list of volume states to filter */
1949
- state?: string;
1950
- /** Only return summary info about volumes (omit blocks, block size, etc) */
1951
- summary?: boolean;
1952
- /** Only return volumes updated after this time. Timestamp must be in the RFC 3339 format */
1953
- updated_after?: string;
1954
- /** Pagination cursor from previous response (takes precedence over updated_after) */
1955
- cursor?: string;
1956
- /** 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
- limit?: number;
1958
- }
1959
- export declare const VolumesOrgListRequest: S.Schema<VolumesOrgListRequest>;
1960
- export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
1961
- export declare const OrgVolumeHostStatus: any;
1962
- export type OrgVolumeType = "local" | "cache";
1963
- export declare const OrgVolumeType: any;
1964
- export interface OrgVolume {
1965
- app_name?: string;
1966
- attached_alloc_id?: string;
1967
- attached_machine_id?: string;
1968
1927
  auto_backup_enabled?: boolean;
1969
- block_size?: number;
1970
- blocks?: number;
1971
- blocks_avail?: number;
1972
- blocks_free?: number;
1973
- bytes_total?: number;
1974
- bytes_used?: number;
1975
- created_at?: string;
1976
- encrypted?: boolean;
1977
- fstype?: string;
1978
- host_status?: OrgVolumeHostStatus;
1979
- id?: string;
1980
- name?: string;
1981
- region?: string;
1982
- size_gb?: number;
1983
1928
  snapshot_retention?: number;
1984
- state?: string;
1985
- type?: OrgVolumeType;
1929
+ }
1930
+ export declare const UpdateVolumeRequest: S.Schema<UpdateVolumeRequest>;
1931
+ export interface UpsertMachineMetadataRequest {
1932
+ /** Fly App Name */
1933
+ app_name: string;
1934
+ /** Machine ID */
1935
+ machine_id: string;
1936
+ /** Metadata Key */
1937
+ key: string;
1986
1938
  updated_at?: string;
1987
- zone?: string;
1939
+ value?: string;
1988
1940
  }
1989
- export declare const OrgVolume: S.Schema<OrgVolume>;
1990
- export type OrgVolumesResponseVolumesList = Array<OrgVolume>;
1991
- export declare const OrgVolumesResponseVolumesList: S.Schema<OrgVolumesResponseVolumesList>;
1992
- export interface OrgVolumesResponse {
1993
- last_updated_at?: string;
1994
- last_volume_id?: string;
1995
- next_cursor?: string;
1996
- volumes?: OrgVolumesResponseVolumesList;
1941
+ export declare const UpsertMachineMetadataRequest: S.Schema<UpsertMachineMetadataRequest>;
1942
+ export interface UpsertMachineMetadataResponse {
1997
1943
  }
1998
- export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
1999
- export interface VolumesUpdateRequest {
1944
+ export declare const UpsertMachineMetadataResponse: S.Schema<UpsertMachineMetadataResponse>;
1945
+ export interface VerifySecretKeyRequest {
2000
1946
  /** Fly App Name */
2001
1947
  app_name: string;
2002
- /** Volume ID */
2003
- volume_id: string;
2004
- auto_backup_enabled?: boolean;
2005
- snapshot_retention?: number;
1948
+ /** Secret key name */
1949
+ secret_name: string;
1950
+ /** Minimum secrets version to return. Returned when setting a new secret */
1951
+ min_version?: string;
1952
+ plaintext?: string;
1953
+ signature?: string;
2006
1954
  }
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;
1955
+ export declare const VerifySecretKeyRequest: S.Schema<VerifySecretKeyRequest>;
1956
+ export interface VerifySecretKeyResponse {
1957
+ }
1958
+ export declare const VerifySecretKeyResponse: S.Schema<VerifySecretKeyResponse>;
1959
+ export type WaitMachineRequestState = "started" | "stopped" | "suspended" | "destroyed" | "failed" | "settled";
1960
+ export declare const WaitMachineRequestState: any;
1961
+ export interface WaitMachineRequest {
1962
+ /** Fly App Name */
1963
+ app_name: string;
1964
+ /** Machine ID */
1965
+ machine_id: string;
1966
+ /** 26-character Machine version ID */
1967
+ version?: string;
1968
+ /** 26-character Machine version ID (deprecated; use version) */
1969
+ instance_id?: string;
1970
+ /** 26-character Machine event ID to start waiting after */
1971
+ from_event_id?: string;
1972
+ /** wait timeout. default 60s */
1973
+ timeout?: number;
1974
+ /** desired state(s), supports repeated or comma-separated values */
1975
+ state?: WaitMachineRequestState | (string & {});
1976
+ }
1977
+ export declare const WaitMachineRequest: S.Schema<WaitMachineRequest>;
1978
+ export interface WaitMachineResponse {
1979
+ event_id?: string;
1980
+ ok?: boolean;
1981
+ state?: string;
1982
+ version?: string;
1983
+ }
1984
+ export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
1985
+ export type AuthenticateTokenError = BadRequest | FlyIoOpError;
1986
+ /** Authenticate token header Verify a token header without checking resource access. */
1987
+ export declare const authenticateToken: API.OperationMethod<AuthenticateTokenRequest, AuthenticateTokenResponse, AuthenticateTokenError, FlyIoOpContext>;
1988
+ export type AuthorizeTokenError = BadRequest | FlyIoOpError;
1989
+ /** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
1990
+ export declare const authorizeToken: API.OperationMethod<AuthorizeTokenRequest, AuthorizeResponse, AuthorizeTokenError, FlyIoOpContext>;
1991
+ export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2015
1992
  /** 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;
1993
+ export declare const checkAppCertificate: API.OperationMethod<CheckAppCertificateRequest, CertificateCheckResponse, CheckAppCertificateError, FlyIoOpContext>;
1994
+ export type CordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
1995
+ /** 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. */
1996
+ export declare const cordonMachine: API.OperationMethod<CordonMachineRequest, CordonMachineResponse, CordonMachineError, FlyIoOpContext>;
1997
+ export type CreateAppError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
1998
+ /** Create App Create an app with the specified details in the request body. */
1999
+ export declare const createApp: API.OperationMethod<CreateAppRequest, CreateAppResponse, CreateAppError, FlyIoOpContext>;
2000
+ export type CreateAppAcmeCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2001
+ /** Request ACME certificate */
2002
+ export declare const createAppAcmeCertificate: API.OperationMethod<CreateAppAcmeCertificateRequest, CertificateDetail, CreateAppAcmeCertificateError, FlyIoOpContext>;
2003
+ export type CreateAppCustomCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2018
2004
  /** 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;
2005
+ export declare const createAppCustomCertificate: API.OperationMethod<CreateAppCustomCertificateRequest, CertificateDetail, CreateAppCustomCertificateError, FlyIoOpContext>;
2006
+ export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2033
2007
  /** Create App deploy token */
2034
- export declare const appCreateDeployToken: API.OperationMethod<AppCreateDeployTokenRequest, CreateAppResponse, AppCreateDeployTokenError, FlyIoOpContext>;
2035
- export type AppIPAssignmentsCreateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2008
+ export declare const createAppDeployToken: API.OperationMethod<CreateAppDeployTokenRequest, CreateAppDeployTokenResponse, CreateAppDeployTokenError, FlyIoOpContext>;
2009
+ export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2036
2010
  /** 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;
2011
+ export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, IPAssignment, CreateAppIPAssignmentError, FlyIoOpContext>;
2012
+ export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2066
2013
  /** 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;
2014
+ export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
2015
+ export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2069
2016
  /** 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;
2017
+ export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest, Lease, CreateMachineLeaseError, FlyIoOpContext>;
2018
+ export type CreateSecretError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2019
+ /** Create or update Secret */
2020
+ export declare const createSecret: API.OperationMethod<CreateSecretRequest, SetAppSecretResponse, CreateSecretError, FlyIoOpContext>;
2021
+ export type CreateVolumeError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2022
+ /** Create Volume Create a volume for a specific app using the details provided in the request body. */
2023
+ export declare const createVolume: API.OperationMethod<CreateVolumeRequest, Volume, CreateVolumeError, FlyIoOpContext>;
2024
+ export type CreateVolumeSnapshotError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2025
+ /** Create Snapshot Create a snapshot for a specific volume within an app. */
2026
+ export declare const createVolumeSnapshot: API.OperationMethod<CreateVolumeSnapshotRequest, CreateVolumeSnapshotResponse, CreateVolumeSnapshotError, FlyIoOpContext>;
2027
+ export type DecryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2028
+ /** Decrypt with a secret key */
2029
+ export declare const decryptSecretKey: API.OperationMethod<DecryptSecretKeyRequest, DecryptSecretkeyResponse, DecryptSecretKeyError, FlyIoOpContext>;
2030
+ export type DeleteAppError = Forbidden | NotFound | FlyIoOpError;
2031
+ /** Destroy App Delete an app by its name. */
2032
+ export declare const deleteApp: API.OperationMethod<DeleteAppRequest, DeleteAppResponse, DeleteAppError, FlyIoOpContext>;
2033
+ export type DeleteAppAcmeCertificateError = Forbidden | NotFound | FlyIoOpError;
2034
+ /** Remove ACME certificates */
2035
+ export declare const deleteAppAcmeCertificate: API.OperationMethod<DeleteAppAcmeCertificateRequest, CertificateDetail, DeleteAppAcmeCertificateError, FlyIoOpContext>;
2036
+ export type DeleteAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2037
+ /** Remove certificate */
2038
+ export declare const deleteAppCertificate: API.OperationMethod<DeleteAppCertificateRequest, DeleteAppCertificateResponse, DeleteAppCertificateError, FlyIoOpContext>;
2039
+ export type DeleteAppCustomCertificateError = Forbidden | NotFound | FlyIoOpError;
2040
+ /** Remove custom certificate */
2041
+ export declare const deleteAppCustomCertificate: API.OperationMethod<DeleteAppCustomCertificateRequest, DestroyCustomCertificateResponse, DeleteAppCustomCertificateError, FlyIoOpContext>;
2042
+ export type DeleteAppIPAssignmentError = Forbidden | NotFound | FlyIoOpError;
2043
+ /** Remove IP assignment from app */
2044
+ export declare const deleteAppIPAssignment: API.OperationMethod<DeleteAppIPAssignmentRequest, DeleteAppIPAssignmentResponse, DeleteAppIPAssignmentError, FlyIoOpContext>;
2045
+ export type DeleteMachineError = Forbidden | NotFound | Conflict | FlyIoOpError;
2072
2046
  /** 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;
2047
+ export declare const deleteMachine: API.OperationMethod<DeleteMachineRequest, DeleteMachineResponse, DeleteMachineError, FlyIoOpContext>;
2048
+ export type DeleteMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2075
2049
  /** 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;
2050
+ export declare const deleteMachineMetadata: API.OperationMethod<DeleteMachineMetadataRequest, DeleteMachineMetadataResponse, DeleteMachineMetadataError, FlyIoOpContext>;
2051
+ export type DeleteSecretError = Forbidden | NotFound | FlyIoOpError;
2052
+ /** Delete an app secret */
2053
+ export declare const deleteSecret: API.OperationMethod<DeleteSecretRequest, DeleteAppSecretResponse, DeleteSecretError, FlyIoOpContext>;
2054
+ export type DeleteSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2055
+ /** Delete an app's secret key */
2056
+ export declare const deleteSecretKey: API.OperationMethod<DeleteSecretKeyRequest, DeleteSecretkeyResponse, DeleteSecretKeyError, FlyIoOpContext>;
2057
+ export type DeleteVolumeError = Forbidden | NotFound | Conflict | FlyIoOpError;
2058
+ /** Destroy Volume Delete a specific volume within an app by volume ID. */
2059
+ export declare const deleteVolume: API.OperationMethod<DeleteVolumeRequest, Volume, DeleteVolumeError, FlyIoOpContext>;
2060
+ export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2061
+ /** Encrypt with a secret key */
2062
+ export declare const encryptSecretKey: API.OperationMethod<EncryptSecretKeyRequest, EncryptSecretkeyResponse, EncryptSecretKeyError, FlyIoOpContext>;
2063
+ export type ExecMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2078
2064
  /** 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;
2065
+ export declare const execMachine: API.OperationMethod<ExecMachineRequest, Flydv1ExecResponse, ExecMachineError, FlyIoOpContext>;
2066
+ export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2067
+ /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
2068
+ export declare const extendVolume: API.OperationMethod<ExtendVolumeRequest, ExtendVolumeResponse, ExtendVolumeError, FlyIoOpContext>;
2069
+ export type GenerateSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2070
+ /** Generate a random secret key */
2071
+ export declare const generateSecretKey: API.OperationMethod<GenerateSecretKeyRequest, SetSecretkeyResponse, GenerateSecretKeyError, FlyIoOpContext>;
2072
+ export type GetAppError = Forbidden | NotFound | FlyIoOpError;
2073
+ /** Get App Retrieve details about a specific app by its name. */
2074
+ export declare const getApp: API.OperationMethod<GetAppRequest, App, GetAppError, FlyIoOpContext>;
2075
+ export type GetAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2076
+ /** Get certificate details */
2077
+ export declare const getAppCertificate: API.OperationMethod<GetAppCertificateRequest, CertificateDetail, GetAppCertificateError, FlyIoOpContext>;
2078
+ export type GetCurrentTokenError = FlyIoOpError;
2079
+ /** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
2080
+ export declare const getCurrentToken: API.OperationMethod<GetCurrentTokenRequest, CurrentTokenResponse, GetCurrentTokenError, FlyIoOpContext>;
2081
+ export type GetMachineError = Forbidden | NotFound | FlyIoOpError;
2082
+ /** Get Machine Get details of a specific Machine within an app by the Machine ID. */
2083
+ export declare const getMachine: API.OperationMethod<GetMachineRequest, Machine, GetMachineError, FlyIoOpContext>;
2084
+ export type GetMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
2085
+ /** 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. */
2086
+ export declare const getMachineLease: API.OperationMethod<GetMachineLeaseRequest, Lease, GetMachineLeaseError, FlyIoOpContext>;
2087
+ export type GetMachineMemoryError = Forbidden | NotFound | FlyIoOpError;
2081
2088
  /** 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;
2089
+ export declare const getMachineMemory: API.OperationMethod<GetMachineMemoryRequest, MainMemoryResponse, GetMachineMemoryError, FlyIoOpContext>;
2090
+ export type GetMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2091
+ /** Get Metadata Retrieve metadata for a specific Machine within an app. */
2092
+ export declare const getMachineMetadata: API.OperationMethod<GetMachineMetadataRequest, GetMachineMetadataResponse, GetMachineMetadataError, FlyIoOpContext>;
2093
+ export type GetMachineMetadataKeyError = NotFound | FlyIoOpError;
2084
2094
  /** 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;
2095
+ export declare const getMachineMetadataKey: API.OperationMethod<GetMachineMetadataKeyRequest, MetadataValueResponse, GetMachineMetadataKeyError, FlyIoOpContext>;
2096
+ export type GetPlacementsError = BadRequest | Forbidden | FlyIoOpError;
2097
+ /** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
2098
+ export declare const getPlacements: API.OperationMethod<GetPlacementsRequest, MainGetPlacementsResponse, GetPlacementsError, FlyIoOpContext>;
2099
+ export type GetRegionsError = Forbidden | FlyIoOpError;
2100
+ /** Get Regions List all regions on the platform with their details. */
2101
+ export declare const getRegions: API.OperationMethod<GetRegionsRequest, MainRegionResponse, GetRegionsError, FlyIoOpContext>;
2102
+ export type GetSecretError = Forbidden | NotFound | FlyIoOpError;
2103
+ /** Get an app secret */
2104
+ export declare const getSecret: API.OperationMethod<GetSecretRequest, AppSecret, GetSecretError, FlyIoOpContext>;
2105
+ export type GetSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2106
+ /** Get an app's secret key */
2107
+ export declare const getSecretKey: API.OperationMethod<GetSecretKeyRequest, SecretKey, GetSecretKeyError, FlyIoOpContext>;
2108
+ export type GetVolumeByIdError = Forbidden | NotFound | FlyIoOpError;
2109
+ /** Get Volume Retrieve details about a specific volume by its ID within an app. */
2110
+ export declare const getVolumeById: API.OperationMethod<GetVolumeByIdRequest, Volume, GetVolumeByIdError, FlyIoOpContext>;
2111
+ export type ListAppCertificatesError = Forbidden | NotFound | FlyIoOpError;
2112
+ /** List certificates for app */
2113
+ export declare const listAppCertificates: API.OperationMethod<ListAppCertificatesRequest, ListCertificatesResponse, ListAppCertificatesError, FlyIoOpContext>;
2114
+ export type ListAppIPAssignmentsError = Forbidden | NotFound | FlyIoOpError;
2115
+ /** List IP assignments for app */
2116
+ export declare const listAppIPAssignments: API.OperationMethod<ListAppIPAssignmentsRequest, ListIPAssignmentsResponse, ListAppIPAssignmentsError, FlyIoOpContext>;
2117
+ export type ListAppsError = Forbidden | FlyIoOpError;
2118
+ /** List Apps List all apps with the ability to filter by organization slug. */
2119
+ export declare const listApps: API.OperationMethod<ListAppsRequest, ListAppsResponse, ListAppsError, FlyIoOpContext>;
2120
+ export type ListMachineEventsError = Forbidden | NotFound | FlyIoOpError;
2090
2121
  /** 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;
2122
+ export declare const listMachineEvents: API.OperationMethod<ListMachineEventsRequest, ListMachineEventsResponse, ListMachineEventsError, FlyIoOpContext>;
2123
+ export type ListMachineProcessesError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2093
2124
  /** 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;
2125
+ export declare const listMachineProcesses: API.OperationMethod<ListMachineProcessesRequest, ListMachineProcessesResponse, ListMachineProcessesError, FlyIoOpContext>;
2126
+ export type ListMachinesError = Forbidden | NotFound | FlyIoOpError;
2127
+ /** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
2128
+ export declare const listMachines: API.OperationMethod<ListMachinesRequest, ListMachinesResponse, ListMachinesError, FlyIoOpContext>;
2129
+ export type ListMachineVersionsError = Forbidden | NotFound | FlyIoOpError;
2096
2130
  /** 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;
2131
+ export declare const listMachineVersions: API.OperationMethod<ListMachineVersionsRequest, ListMachineVersionsResponse, ListMachineVersionsError, FlyIoOpContext>;
2132
+ export type ListOrgMachinesError = Forbidden | NotFound | FlyIoOpError;
2099
2133
  /** 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;
2134
+ export declare const listOrgMachines: API.OperationMethod<ListOrgMachinesRequest, OrgMachinesResponse, ListOrgMachinesError, FlyIoOpContext>;
2135
+ export type ListOrgVolumesError = FlyIoOpError;
2136
+ /** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
2137
+ export declare const listOrgVolumes: API.OperationMethod<ListOrgVolumesRequest, OrgVolumesResponse, ListOrgVolumesError, FlyIoOpContext>;
2138
+ export type ListSecretKeysError = Forbidden | NotFound | FlyIoOpError;
2139
+ /** List secret keys belonging to an app */
2140
+ export declare const listSecretKeys: API.OperationMethod<ListSecretKeysRequest, SecretKeys, ListSecretKeysError, FlyIoOpContext>;
2141
+ export type ListSecretsError = Forbidden | NotFound | FlyIoOpError;
2142
+ /** List app secrets belonging to an app */
2143
+ export declare const listSecrets: API.OperationMethod<ListSecretsRequest, AppSecrets, ListSecretsError, FlyIoOpContext>;
2144
+ export type ListVolumesError = Forbidden | NotFound | FlyIoOpError;
2145
+ /** List Volumes List all volumes associated with a specific app. */
2146
+ export declare const listVolumes: API.OperationMethod<ListVolumesRequest, ListVolumesResponse, ListVolumesError, FlyIoOpContext>;
2147
+ export type ListVolumeSnapshotsError = Forbidden | NotFound | FlyIoOpError;
2148
+ /** List Snapshots List all snapshots for a specific volume within an app. */
2149
+ export declare const listVolumeSnapshots: API.OperationMethod<ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsError, FlyIoOpContext>;
2150
+ export type PatchMachineMetadataError = BadRequest | FlyIoOpError;
2151
+ /** 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. */
2152
+ export declare const patchMachineMetadata: API.OperationMethod<PatchMachineMetadataRequest, PatchMachineMetadataResponse, PatchMachineMetadataError, FlyIoOpContext>;
2153
+ export type ReclaimMachineMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2102
2154
  /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
2103
- export declare const machinesReclaimMemory: API.OperationMethod<MachinesReclaimMemoryRequest, MainReclaimMemoryResponse, MachinesReclaimMemoryError, FlyIoOpContext>;
2104
- export type MachinesReleaseLeaseError = Forbidden | NotFound | FlyIoOpError;
2155
+ export declare const reclaimMachineMemory: API.OperationMethod<ReclaimMachineMemoryRequest, MainReclaimMemoryResponse, ReclaimMachineMemoryError, FlyIoOpContext>;
2156
+ export type ReleaseMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
2105
2157
  /** 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
- export declare const machinesReleaseLease: API.OperationMethod<MachinesReleaseLeaseRequest, MachinesReleaseLeaseResponse, MachinesReleaseLeaseError, FlyIoOpContext>;
2107
- export type MachinesRestartError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2158
+ export declare const releaseMachineLease: API.OperationMethod<ReleaseMachineLeaseRequest, ReleaseMachineLeaseResponse, ReleaseMachineLeaseError, FlyIoOpContext>;
2159
+ export type RequestKmsTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2160
+ /** 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. */
2161
+ export declare const requestKmsToken: API.OperationMethod<RequestKmsTokenRequest, RequestKmsTokenResponse, RequestKmsTokenError, FlyIoOpContext>;
2162
+ export type RequestOidcTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2163
+ /** 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. */
2164
+ export declare const requestOidcToken: API.OperationMethod<RequestOidcTokenRequest, RequestOidcTokenResponse, RequestOidcTokenError, FlyIoOpContext>;
2165
+ export type RestartMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2108
2166
  /** 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;
2167
+ export declare const restartMachine: API.OperationMethod<RestartMachineRequest, RestartMachineResponse, RestartMachineError, FlyIoOpContext>;
2168
+ export type SetMachineMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2111
2169
  /** 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;
2170
+ export declare const setMachineMemoryLimit: API.OperationMethod<SetMachineMemoryLimitRequest, MainMemoryResponse, SetMachineMemoryLimitError, FlyIoOpContext>;
2171
+ export type SetSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2172
+ /** Create or update a secret key */
2173
+ export declare const setSecretKey: API.OperationMethod<SetSecretKeyRequest, SetSecretkeyResponse, SetSecretKeyError, FlyIoOpContext>;
2174
+ export type SignalMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2123
2175
  /** 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;
2176
+ export declare const signalMachine: API.OperationMethod<SignalMachineRequest, SignalMachineResponse, SignalMachineError, FlyIoOpContext>;
2177
+ export type SignSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2178
+ /** Sign with a secret key */
2179
+ export declare const signSecretKey: API.OperationMethod<SignSecretKeyRequest, SignSecretkeyResponse, SignSecretKeyError, FlyIoOpContext>;
2180
+ export type StartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2126
2181
  /** 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;
2182
+ export declare const startMachine: API.OperationMethod<StartMachineRequest, StartMachineResponse, StartMachineError, FlyIoOpContext>;
2183
+ export type StopMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2129
2184
  /** 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;
2185
+ export declare const stopMachine: API.OperationMethod<StopMachineRequest, StopMachineResponse, StopMachineError, FlyIoOpContext>;
2186
+ export type SuspendMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2132
2187
  /** 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;
2188
+ export declare const suspendMachine: API.OperationMethod<SuspendMachineRequest, SuspendMachineResponse, SuspendMachineError, FlyIoOpContext>;
2189
+ export type UncordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2135
2190
  /** 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;
2191
+ export declare const uncordonMachine: API.OperationMethod<UncordonMachineRequest, UncordonMachineResponse, UncordonMachineError, FlyIoOpContext>;
2192
+ export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2138
2193
  /** 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;
2194
+ export declare const updateMachine: API.OperationMethod<UpdateMachineRequest, Machine, UpdateMachineError, FlyIoOpContext>;
2195
+ export type UpdateMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2141
2196
  /** 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;
2144
- /** 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;
2197
+ export declare const updateMachineMetadata: API.OperationMethod<UpdateMachineMetadataRequest, UpdateMachineMetadataResponse, UpdateMachineMetadataError, FlyIoOpContext>;
2198
+ export type UpdateSecretsError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2198
2199
  /** 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;
2200
+ export declare const updateSecrets: API.OperationMethod<UpdateSecretsRequest, AppSecretsUpdateResp, UpdateSecretsError, FlyIoOpContext>;
2201
+ export type UpdateVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2234
2202
  /** 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>;
2203
+ export declare const updateVolume: API.OperationMethod<UpdateVolumeRequest, Volume, UpdateVolumeError, FlyIoOpContext>;
2204
+ export type UpsertMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2205
+ /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
2206
+ export declare const upsertMachineMetadata: API.OperationMethod<UpsertMachineMetadataRequest, UpsertMachineMetadataResponse, UpsertMachineMetadataError, FlyIoOpContext>;
2207
+ export type VerifySecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2208
+ /** Verify with a secret key */
2209
+ export declare const verifySecretKey: API.OperationMethod<VerifySecretKeyRequest, VerifySecretKeyResponse, VerifySecretKeyError, FlyIoOpContext>;
2210
+ export type WaitMachineError = BadRequest | Forbidden | NotFound | GatewayTimeout | FlyIoOpError;
2211
+ /** 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. */
2212
+ export declare const waitMachine: API.OperationMethod<WaitMachineRequest, WaitMachineResponse, WaitMachineError, FlyIoOpContext>;
2236
2213
  //# sourceMappingURL=machines.d.ts.map