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