@townco/fly 0.1.29 → 0.1.32

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 (59) hide show
  1. package/dist/api/client/client.gen.d.ts +2 -2
  2. package/dist/api/client/client.gen.js +46 -45
  3. package/dist/api/client/index.d.ts +8 -8
  4. package/dist/api/client/index.js +5 -5
  5. package/dist/api/client/types.gen.d.ts +18 -18
  6. package/dist/api/client/utils.gen.d.ts +7 -7
  7. package/dist/api/client/utils.gen.js +34 -33
  8. package/dist/api/client.gen.d.ts +2 -2
  9. package/dist/api/client.gen.js +3 -3
  10. package/dist/api/core/auth.gen.d.ts +3 -3
  11. package/dist/api/core/auth.gen.js +3 -3
  12. package/dist/api/core/bodySerializer.gen.d.ts +3 -3
  13. package/dist/api/core/bodySerializer.gen.js +3 -3
  14. package/dist/api/core/params.gen.d.ts +4 -4
  15. package/dist/api/core/params.gen.js +9 -9
  16. package/dist/api/core/pathSerializer.gen.d.ts +8 -8
  17. package/dist/api/core/pathSerializer.gen.js +36 -36
  18. package/dist/api/core/queryKeySerializer.gen.js +11 -11
  19. package/dist/api/core/serverSentEvents.gen.d.ts +4 -4
  20. package/dist/api/core/serverSentEvents.gen.js +18 -18
  21. package/dist/api/core/types.gen.d.ts +4 -4
  22. package/dist/api/core/utils.gen.d.ts +4 -4
  23. package/dist/api/core/utils.gen.js +17 -17
  24. package/dist/api/index.d.ts +2 -2
  25. package/dist/api/index.js +1 -1
  26. package/dist/api/sdk.gen.d.ts +5 -5
  27. package/dist/api/sdk.gen.js +130 -160
  28. package/dist/api/types.gen.d.ts +84 -84
  29. package/package.json +7 -7
  30. package/dist/client/client.gen.d.ts +0 -2
  31. package/dist/client/client.gen.js +0 -228
  32. package/dist/client/index.d.ts +0 -8
  33. package/dist/client/index.js +0 -6
  34. package/dist/client/types.gen.d.ts +0 -117
  35. package/dist/client/types.gen.js +0 -2
  36. package/dist/client/utils.gen.d.ts +0 -33
  37. package/dist/client/utils.gen.js +0 -231
  38. package/dist/client.gen.d.ts +0 -12
  39. package/dist/client.gen.js +0 -3
  40. package/dist/core/auth.gen.d.ts +0 -18
  41. package/dist/core/auth.gen.js +0 -14
  42. package/dist/core/bodySerializer.gen.d.ts +0 -25
  43. package/dist/core/bodySerializer.gen.js +0 -57
  44. package/dist/core/params.gen.d.ts +0 -43
  45. package/dist/core/params.gen.js +0 -100
  46. package/dist/core/pathSerializer.gen.d.ts +0 -33
  47. package/dist/core/pathSerializer.gen.js +0 -114
  48. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  49. package/dist/core/queryKeySerializer.gen.js +0 -99
  50. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  51. package/dist/core/serverSentEvents.gen.js +0 -135
  52. package/dist/core/types.gen.d.ts +0 -78
  53. package/dist/core/types.gen.js +0 -2
  54. package/dist/core/utils.gen.d.ts +0 -19
  55. package/dist/core/utils.gen.js +0 -87
  56. package/dist/sdk.gen.d.ts +0 -379
  57. package/dist/sdk.gen.js +0 -557
  58. package/dist/types.gen.d.ts +0 -2592
  59. package/dist/types.gen.js +0 -2
@@ -1,15 +1,12 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { client } from "./client.gen";
2
+ import { client } from './client.gen';
3
3
  /**
4
4
  * List Apps
5
5
  *
6
6
  * List all apps with the ability to filter by organization slug.
7
7
  *
8
8
  */
9
- export const appsList = (options) => (options.client ?? client).get({
10
- url: "/apps",
11
- ...options,
12
- });
9
+ export const appsList = (options) => (options.client ?? client).get({ url: '/apps', ...options });
13
10
  /**
14
11
  * Create App
15
12
  *
@@ -17,12 +14,12 @@ export const appsList = (options) => (options.client ?? client).get({
17
14
  *
18
15
  */
19
16
  export const appsCreate = (options) => (options.client ?? client).post({
20
- url: "/apps",
17
+ url: '/apps',
21
18
  ...options,
22
19
  headers: {
23
- "Content-Type": "application/json",
24
- ...options.headers,
25
- },
20
+ 'Content-Type': 'application/json',
21
+ ...options.headers
22
+ }
26
23
  });
27
24
  /**
28
25
  * Destroy App
@@ -30,57 +27,51 @@ export const appsCreate = (options) => (options.client ?? client).post({
30
27
  * Delete an app by its name.
31
28
  *
32
29
  */
33
- export const appsDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}", ...options });
30
+ export const appsDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}', ...options });
34
31
  /**
35
32
  * Get App
36
33
  *
37
34
  * Retrieve details about a specific app by its name.
38
35
  *
39
36
  */
40
- export const appsShow = (options) => (options.client ?? client).get({
41
- url: "/apps/{app_name}",
42
- ...options,
43
- });
37
+ export const appsShow = (options) => (options.client ?? client).get({ url: '/apps/{app_name}', ...options });
44
38
  /**
45
39
  * Create App deploy token
46
40
  */
47
41
  export const appCreateDeployToken = (options) => (options.client ?? client).post({
48
- url: "/apps/{app_name}/deploy_token",
42
+ url: '/apps/{app_name}/deploy_token',
49
43
  ...options,
50
44
  headers: {
51
- "Content-Type": "application/json",
52
- ...options.headers,
53
- },
45
+ 'Content-Type': 'application/json',
46
+ ...options.headers
47
+ }
54
48
  });
55
49
  /**
56
50
  * List IP assignments for app
57
51
  */
58
- export const appIpAssignmentsList = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/ip_assignments", ...options });
52
+ export const appIpAssignmentsList = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/ip_assignments', ...options });
59
53
  /**
60
54
  * Assign new IP address to app
61
55
  */
62
56
  export const appIpAssignmentsCreate = (options) => (options.client ?? client).post({
63
- url: "/apps/{app_name}/ip_assignments",
57
+ url: '/apps/{app_name}/ip_assignments',
64
58
  ...options,
65
59
  headers: {
66
- "Content-Type": "application/json",
67
- ...options.headers,
68
- },
60
+ 'Content-Type': 'application/json',
61
+ ...options.headers
62
+ }
69
63
  });
70
64
  /**
71
65
  * Remove IP assignment from app
72
66
  */
73
- export const appIpAssignmentsDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/ip_assignments/{ip}", ...options });
67
+ export const appIpAssignmentsDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/ip_assignments/{ip}', ...options });
74
68
  /**
75
69
  * List Machines
76
70
  *
77
71
  * List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region.
78
72
  *
79
73
  */
80
- export const machinesList = (options) => (options.client ?? client).get({
81
- url: "/apps/{app_name}/machines",
82
- ...options,
83
- });
74
+ export const machinesList = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines', ...options });
84
75
  /**
85
76
  * Create Machine
86
77
  *
@@ -90,12 +81,12 @@ export const machinesList = (options) => (options.client ?? client).get({
90
81
  *
91
82
  */
92
83
  export const machinesCreate = (options) => (options.client ?? client).post({
93
- url: "/apps/{app_name}/machines",
84
+ url: '/apps/{app_name}/machines',
94
85
  ...options,
95
86
  headers: {
96
- "Content-Type": "application/json",
97
- ...options.headers,
98
- },
87
+ 'Content-Type': 'application/json',
88
+ ...options.headers
89
+ }
99
90
  });
100
91
  /**
101
92
  * Destroy Machine
@@ -103,17 +94,14 @@ export const machinesCreate = (options) => (options.client ?? client).post({
103
94
  * Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running.
104
95
  *
105
96
  */
106
- export const machinesDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/machines/{machine_id}", ...options });
97
+ export const machinesDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/machines/{machine_id}', ...options });
107
98
  /**
108
99
  * Get Machine
109
100
  *
110
101
  * Get details of a specific Machine within an app by the Machine ID.
111
102
  *
112
103
  */
113
- export const machinesShow = (options) => (options.client ?? client).get({
114
- url: "/apps/{app_name}/machines/{machine_id}",
115
- ...options,
116
- });
104
+ export const machinesShow = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}', ...options });
117
105
  /**
118
106
  * Update Machine
119
107
  *
@@ -121,12 +109,12 @@ export const machinesShow = (options) => (options.client ?? client).get({
121
109
  *
122
110
  */
123
111
  export const machinesUpdate = (options) => (options.client ?? client).post({
124
- url: "/apps/{app_name}/machines/{machine_id}",
112
+ url: '/apps/{app_name}/machines/{machine_id}',
125
113
  ...options,
126
114
  headers: {
127
- "Content-Type": "application/json",
128
- ...options.headers,
129
- },
115
+ 'Content-Type': 'application/json',
116
+ ...options.headers
117
+ }
130
118
  });
131
119
  /**
132
120
  * Cordon Machine
@@ -134,14 +122,14 @@ export const machinesUpdate = (options) => (options.client ?? client).post({
134
122
  * “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.
135
123
  *
136
124
  */
137
- export const machinesCordon = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/cordon", ...options });
125
+ export const machinesCordon = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/cordon', ...options });
138
126
  /**
139
127
  * List Events
140
128
  *
141
129
  * List all events associated with a specific Machine within an app.
142
130
  *
143
131
  */
144
- export const machinesListEvents = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/events", ...options });
132
+ export const machinesListEvents = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/events', ...options });
145
133
  /**
146
134
  * Execute Command
147
135
  *
@@ -149,12 +137,12 @@ export const machinesListEvents = (options) => (options.client ?? client).get({
149
137
  *
150
138
  */
151
139
  export const machinesExec = (options) => (options.client ?? client).post({
152
- url: "/apps/{app_name}/machines/{machine_id}/exec",
140
+ url: '/apps/{app_name}/machines/{machine_id}/exec',
153
141
  ...options,
154
142
  headers: {
155
- "Content-Type": "application/json",
156
- ...options.headers,
157
- },
143
+ 'Content-Type': 'application/json',
144
+ ...options.headers
145
+ }
158
146
  });
159
147
  /**
160
148
  * Release Lease
@@ -162,14 +150,14 @@ export const machinesExec = (options) => (options.client ?? client).post({
162
150
  * Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
163
151
  *
164
152
  */
165
- export const machinesReleaseLease = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/machines/{machine_id}/lease", ...options });
153
+ export const machinesReleaseLease = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/machines/{machine_id}/lease', ...options });
166
154
  /**
167
155
  * Get Lease
168
156
  *
169
157
  * 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.
170
158
  *
171
159
  */
172
- export const machinesShowLease = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/lease", ...options });
160
+ export const machinesShowLease = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/lease', ...options });
173
161
  /**
174
162
  * Create Lease
175
163
  *
@@ -177,12 +165,12 @@ export const machinesShowLease = (options) => (options.client ?? client).get({ u
177
165
  *
178
166
  */
179
167
  export const machinesCreateLease = (options) => (options.client ?? client).post({
180
- url: "/apps/{app_name}/machines/{machine_id}/lease",
168
+ url: '/apps/{app_name}/machines/{machine_id}/lease',
181
169
  ...options,
182
170
  headers: {
183
- "Content-Type": "application/json",
184
- ...options.headers,
185
- },
171
+ 'Content-Type': 'application/json',
172
+ ...options.headers
173
+ }
186
174
  });
187
175
  /**
188
176
  * Reclaim Machine Memory
@@ -190,12 +178,12 @@ export const machinesCreateLease = (options) => (options.client ?? client).post(
190
178
  * Trigger the balloon device to reclaim memory from a machine
191
179
  */
192
180
  export const machinesReclaimMemory = (options) => (options.client ?? client).post({
193
- url: "/apps/{app_name}/machines/{machine_id}/memory/reclaim",
181
+ url: '/apps/{app_name}/machines/{machine_id}/memory/reclaim',
194
182
  ...options,
195
183
  headers: {
196
- "Content-Type": "application/json",
197
- ...options.headers,
198
- },
184
+ 'Content-Type': 'application/json',
185
+ ...options.headers
186
+ }
199
187
  });
200
188
  /**
201
189
  * Get Metadata
@@ -203,47 +191,41 @@ export const machinesReclaimMemory = (options) => (options.client ?? client).pos
203
191
  * Retrieve metadata for a specific Machine within an app.
204
192
  *
205
193
  */
206
- export const machinesShowMetadata = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/metadata", ...options });
194
+ export const machinesShowMetadata = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/metadata', ...options });
207
195
  /**
208
196
  * Patch Metadata (set/remove multiple keys)
209
197
  *
210
198
  * Update multiple metadata keys at once. Null values and empty strings remove keys.
211
199
  */
212
- export const machinesPatchMetadata = (options) => (options.client ?? client).patch({ url: "/apps/{app_name}/machines/{machine_id}/metadata", ...options });
200
+ export const machinesPatchMetadata = (options) => (options.client ?? client).patch({ url: '/apps/{app_name}/machines/{machine_id}/metadata', ...options });
213
201
  /**
214
202
  * Delete Metadata
215
203
  *
216
204
  * Delete metadata for a specific Machine within an app by providing a metadata key.
217
205
  *
218
206
  */
219
- export const machinesDeleteMetadata = (options) => (options.client ?? client).delete({
220
- url: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
221
- ...options,
222
- });
207
+ export const machinesDeleteMetadata = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/machines/{machine_id}/metadata/{key}', ...options });
223
208
  /**
224
209
  * Update Metadata
225
210
  *
226
211
  * Update metadata for a specific machine within an app by providing a metadata key.
227
212
  *
228
213
  */
229
- export const machinesUpdateMetadata = (options) => (options.client ?? client).post({
230
- url: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
231
- ...options,
232
- });
214
+ export const machinesUpdateMetadata = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/metadata/{key}', ...options });
233
215
  /**
234
216
  * List Processes
235
217
  *
236
218
  * List all processes running on a specific Machine within an app, with optional sorting parameters.
237
219
  *
238
220
  */
239
- export const machinesListProcesses = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/ps", ...options });
221
+ export const machinesListProcesses = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/ps', ...options });
240
222
  /**
241
223
  * Restart Machine
242
224
  *
243
225
  * Restart a specific Machine within an app, with an optional timeout parameter.
244
226
  *
245
227
  */
246
- export const machinesRestart = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/restart", ...options });
228
+ export const machinesRestart = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/restart', ...options });
247
229
  /**
248
230
  * Signal Machine
249
231
  *
@@ -251,12 +233,12 @@ export const machinesRestart = (options) => (options.client ?? client).post({ ur
251
233
  *
252
234
  */
253
235
  export const machinesSignal = (options) => (options.client ?? client).post({
254
- url: "/apps/{app_name}/machines/{machine_id}/signal",
236
+ url: '/apps/{app_name}/machines/{machine_id}/signal',
255
237
  ...options,
256
238
  headers: {
257
- "Content-Type": "application/json",
258
- ...options.headers,
259
- },
239
+ 'Content-Type': 'application/json',
240
+ ...options.headers
241
+ }
260
242
  });
261
243
  /**
262
244
  * Start Machine
@@ -264,7 +246,7 @@ export const machinesSignal = (options) => (options.client ?? client).post({
264
246
  * Start a specific Machine within an app.
265
247
  *
266
248
  */
267
- export const machinesStart = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/start", ...options });
249
+ export const machinesStart = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/start', ...options });
268
250
  /**
269
251
  * Stop Machine
270
252
  *
@@ -272,12 +254,12 @@ export const machinesStart = (options) => (options.client ?? client).post({ url:
272
254
  *
273
255
  */
274
256
  export const machinesStop = (options) => (options.client ?? client).post({
275
- url: "/apps/{app_name}/machines/{machine_id}/stop",
257
+ url: '/apps/{app_name}/machines/{machine_id}/stop',
276
258
  ...options,
277
259
  headers: {
278
- "Content-Type": "application/json",
279
- ...options.headers,
280
- },
260
+ 'Content-Type': 'application/json',
261
+ ...options.headers
262
+ }
281
263
  });
282
264
  /**
283
265
  * Suspend Machine
@@ -285,21 +267,21 @@ export const machinesStop = (options) => (options.client ?? client).post({
285
267
  * 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.
286
268
  *
287
269
  */
288
- export const machinesSuspend = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/suspend", ...options });
270
+ export const machinesSuspend = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/suspend', ...options });
289
271
  /**
290
272
  * Uncordon Machine
291
273
  *
292
274
  * “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.
293
275
  *
294
276
  */
295
- export const machinesUncordon = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/uncordon", ...options });
277
+ export const machinesUncordon = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/machines/{machine_id}/uncordon', ...options });
296
278
  /**
297
279
  * List Versions
298
280
  *
299
281
  * List all versions of the configuration for a specific Machine within an app.
300
282
  *
301
283
  */
302
- export const machinesListVersions = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/versions", ...options });
284
+ export const machinesListVersions = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/versions', ...options });
303
285
  /**
304
286
  * Wait for State
305
287
  *
@@ -308,127 +290,118 @@ export const machinesListVersions = (options) => (options.client ?? client).get(
308
290
  * This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter.
309
291
  *
310
292
  */
311
- export const machinesWait = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/wait", ...options });
293
+ export const machinesWait = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/machines/{machine_id}/wait', ...options });
312
294
  /**
313
295
  * List secret keys belonging to an app
314
296
  */
315
- export const secretkeysList = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/secretkeys", ...options });
297
+ export const secretkeysList = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/secretkeys', ...options });
316
298
  /**
317
299
  * Delete an app's secret key
318
300
  */
319
- export const secretkeyDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/secretkeys/{secret_name}", ...options });
301
+ export const secretkeyDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/secretkeys/{secret_name}', ...options });
320
302
  /**
321
303
  * Get an app's secret key
322
304
  */
323
- export const secretkeyGet = (options) => (options.client ?? client).get({
324
- url: "/apps/{app_name}/secretkeys/{secret_name}",
325
- ...options,
326
- });
305
+ export const secretkeyGet = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/secretkeys/{secret_name}', ...options });
327
306
  /**
328
307
  * Create or update a secret key
329
308
  */
330
309
  export const secretkeySet = (options) => (options.client ?? client).post({
331
- url: "/apps/{app_name}/secretkeys/{secret_name}",
310
+ url: '/apps/{app_name}/secretkeys/{secret_name}',
332
311
  ...options,
333
312
  headers: {
334
- "Content-Type": "application/json",
335
- ...options.headers,
336
- },
313
+ 'Content-Type': 'application/json',
314
+ ...options.headers
315
+ }
337
316
  });
338
317
  /**
339
318
  * Decrypt with a secret key
340
319
  */
341
320
  export const secretkeyDecrypt = (options) => (options.client ?? client).post({
342
- url: "/apps/{app_name}/secretkeys/{secret_name}/decrypt",
321
+ url: '/apps/{app_name}/secretkeys/{secret_name}/decrypt',
343
322
  ...options,
344
323
  headers: {
345
- "Content-Type": "application/json",
346
- ...options.headers,
347
- },
324
+ 'Content-Type': 'application/json',
325
+ ...options.headers
326
+ }
348
327
  });
349
328
  /**
350
329
  * Encrypt with a secret key
351
330
  */
352
331
  export const secretkeyEncrypt = (options) => (options.client ?? client).post({
353
- url: "/apps/{app_name}/secretkeys/{secret_name}/encrypt",
332
+ url: '/apps/{app_name}/secretkeys/{secret_name}/encrypt',
354
333
  ...options,
355
334
  headers: {
356
- "Content-Type": "application/json",
357
- ...options.headers,
358
- },
335
+ 'Content-Type': 'application/json',
336
+ ...options.headers
337
+ }
359
338
  });
360
339
  /**
361
340
  * Generate a random secret key
362
341
  */
363
342
  export const secretkeyGenerate = (options) => (options.client ?? client).post({
364
- url: "/apps/{app_name}/secretkeys/{secret_name}/generate",
343
+ url: '/apps/{app_name}/secretkeys/{secret_name}/generate',
365
344
  ...options,
366
345
  headers: {
367
- "Content-Type": "application/json",
368
- ...options.headers,
369
- },
346
+ 'Content-Type': 'application/json',
347
+ ...options.headers
348
+ }
370
349
  });
371
350
  /**
372
351
  * Sign with a secret key
373
352
  */
374
353
  export const secretkeySign = (options) => (options.client ?? client).post({
375
- url: "/apps/{app_name}/secretkeys/{secret_name}/sign",
354
+ url: '/apps/{app_name}/secretkeys/{secret_name}/sign',
376
355
  ...options,
377
356
  headers: {
378
- "Content-Type": "application/json",
379
- ...options.headers,
380
- },
357
+ 'Content-Type': 'application/json',
358
+ ...options.headers
359
+ }
381
360
  });
382
361
  /**
383
362
  * Verify with a secret key
384
363
  */
385
364
  export const secretkeyVerify = (options) => (options.client ?? client).post({
386
- url: "/apps/{app_name}/secretkeys/{secret_name}/verify",
365
+ url: '/apps/{app_name}/secretkeys/{secret_name}/verify',
387
366
  ...options,
388
367
  headers: {
389
- "Content-Type": "application/json",
390
- ...options.headers,
391
- },
368
+ 'Content-Type': 'application/json',
369
+ ...options.headers
370
+ }
392
371
  });
393
372
  /**
394
373
  * List app secrets belonging to an app
395
374
  */
396
- export const secretsList = (options) => (options.client ?? client).get({
397
- url: "/apps/{app_name}/secrets",
398
- ...options,
399
- });
375
+ export const secretsList = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/secrets', ...options });
400
376
  /**
401
377
  * Update app secrets belonging to an app
402
378
  */
403
379
  export const secretsUpdate = (options) => (options.client ?? client).post({
404
- url: "/apps/{app_name}/secrets",
380
+ url: '/apps/{app_name}/secrets',
405
381
  ...options,
406
382
  headers: {
407
- "Content-Type": "application/json",
408
- ...options.headers,
409
- },
383
+ 'Content-Type': 'application/json',
384
+ ...options.headers
385
+ }
410
386
  });
411
387
  /**
412
388
  * Delete an app secret
413
389
  */
414
- export const secretDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/secrets/{secret_name}", ...options });
390
+ export const secretDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/secrets/{secret_name}', ...options });
415
391
  /**
416
392
  * Get an app secret
417
393
  */
418
- export const secretGet = (options) => (options.client ?? client).get({
419
- url: "/apps/{app_name}/secrets/{secret_name}",
420
- ...options,
421
- });
394
+ export const secretGet = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/secrets/{secret_name}', ...options });
422
395
  /**
423
396
  * Create or update Secret
424
397
  */
425
398
  export const secretCreate = (options) => (options.client ?? client).post({
426
- url: "/apps/{app_name}/secrets/{secret_name}",
399
+ url: '/apps/{app_name}/secrets/{secret_name}',
427
400
  ...options,
428
401
  headers: {
429
- "Content-Type": "application/json",
430
- ...options.headers,
431
- },
402
+ 'Content-Type': 'application/json',
403
+ ...options.headers
404
+ }
432
405
  });
433
406
  /**
434
407
  * List Volumes
@@ -436,10 +409,7 @@ export const secretCreate = (options) => (options.client ?? client).post({
436
409
  * List all volumes associated with a specific app.
437
410
  *
438
411
  */
439
- export const volumesList = (options) => (options.client ?? client).get({
440
- url: "/apps/{app_name}/volumes",
441
- ...options,
442
- });
412
+ export const volumesList = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/volumes', ...options });
443
413
  /**
444
414
  * Create Volume
445
415
  *
@@ -447,12 +417,12 @@ export const volumesList = (options) => (options.client ?? client).get({
447
417
  *
448
418
  */
449
419
  export const volumesCreate = (options) => (options.client ?? client).post({
450
- url: "/apps/{app_name}/volumes",
420
+ url: '/apps/{app_name}/volumes',
451
421
  ...options,
452
422
  headers: {
453
- "Content-Type": "application/json",
454
- ...options.headers,
455
- },
423
+ 'Content-Type': 'application/json',
424
+ ...options.headers
425
+ }
456
426
  });
457
427
  /**
458
428
  * Destroy Volume
@@ -460,14 +430,14 @@ export const volumesCreate = (options) => (options.client ?? client).post({
460
430
  * Delete a specific volume within an app by volume ID.
461
431
  *
462
432
  */
463
- export const volumeDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/volumes/{volume_id}", ...options });
433
+ export const volumeDelete = (options) => (options.client ?? client).delete({ url: '/apps/{app_name}/volumes/{volume_id}', ...options });
464
434
  /**
465
435
  * Get Volume
466
436
  *
467
437
  * Retrieve details about a specific volume by its ID within an app.
468
438
  *
469
439
  */
470
- export const volumesGetById = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/volumes/{volume_id}", ...options });
440
+ export const volumesGetById = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/volumes/{volume_id}', ...options });
471
441
  /**
472
442
  * Update Volume
473
443
  *
@@ -475,12 +445,12 @@ export const volumesGetById = (options) => (options.client ?? client).get({ url:
475
445
  *
476
446
  */
477
447
  export const volumesUpdate = (options) => (options.client ?? client).put({
478
- url: "/apps/{app_name}/volumes/{volume_id}",
448
+ url: '/apps/{app_name}/volumes/{volume_id}',
479
449
  ...options,
480
450
  headers: {
481
- "Content-Type": "application/json",
482
- ...options.headers,
483
- },
451
+ 'Content-Type': 'application/json',
452
+ ...options.headers
453
+ }
484
454
  });
485
455
  /**
486
456
  * Extend Volume
@@ -489,12 +459,12 @@ export const volumesUpdate = (options) => (options.client ?? client).put({
489
459
  *
490
460
  */
491
461
  export const volumesExtend = (options) => (options.client ?? client).put({
492
- url: "/apps/{app_name}/volumes/{volume_id}/extend",
462
+ url: '/apps/{app_name}/volumes/{volume_id}/extend',
493
463
  ...options,
494
464
  headers: {
495
- "Content-Type": "application/json",
496
- ...options.headers,
497
- },
465
+ 'Content-Type': 'application/json',
466
+ ...options.headers
467
+ }
498
468
  });
499
469
  /**
500
470
  * List Snapshots
@@ -502,39 +472,39 @@ export const volumesExtend = (options) => (options.client ?? client).put({
502
472
  * List all snapshots for a specific volume within an app.
503
473
  *
504
474
  */
505
- export const volumesListSnapshots = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/volumes/{volume_id}/snapshots", ...options });
475
+ export const volumesListSnapshots = (options) => (options.client ?? client).get({ url: '/apps/{app_name}/volumes/{volume_id}/snapshots', ...options });
506
476
  /**
507
477
  * Create Snapshot
508
478
  *
509
479
  * Create a snapshot for a specific volume within an app.
510
480
  *
511
481
  */
512
- export const createVolumeSnapshot = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/volumes/{volume_id}/snapshots", ...options });
482
+ export const createVolumeSnapshot = (options) => (options.client ?? client).post({ url: '/apps/{app_name}/volumes/{volume_id}/snapshots', ...options });
513
483
  /**
514
484
  * Get Placements
515
485
  *
516
486
  * Simulates placing the specified number of machines into regions, depending on available capacity and limits.
517
487
  */
518
488
  export const platformPlacementsPost = (options) => (options.client ?? client).post({
519
- url: "/platform/placements",
489
+ url: '/platform/placements',
520
490
  ...options,
521
491
  headers: {
522
- "Content-Type": "application/json",
523
- ...options.headers,
524
- },
492
+ 'Content-Type': 'application/json',
493
+ ...options.headers
494
+ }
525
495
  });
526
496
  /**
527
497
  * Get Regions
528
498
  *
529
499
  * List all regions on the platform with their current Machine capacity.
530
500
  */
531
- export const platformRegionsGet = (options) => (options?.client ?? client).get({ url: "/platform/regions", ...options });
501
+ export const platformRegionsGet = (options) => (options?.client ?? client).get({ url: '/platform/regions', ...options });
532
502
  /**
533
503
  * Request a Petsem token for accessing KMS
534
504
  *
535
505
  * 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.
536
506
  */
537
- export const tokensRequestKms = (options) => (options?.client ?? client).post({ url: "/tokens/kms", ...options });
507
+ export const tokensRequestKms = (options) => (options?.client ?? client).post({ url: '/tokens/kms', ...options });
538
508
  /**
539
509
  * Request an OIDC token
540
510
  *
@@ -542,16 +512,16 @@ export const tokensRequestKms = (options) => (options?.client ?? client).post({
542
512
  *
543
513
  */
544
514
  export const tokensRequestOidc = (options) => (options.client ?? client).post({
545
- url: "/tokens/oidc",
515
+ url: '/tokens/oidc',
546
516
  ...options,
547
517
  headers: {
548
- "Content-Type": "application/json",
549
- ...options.headers,
550
- },
518
+ 'Content-Type': 'application/json',
519
+ ...options.headers
520
+ }
551
521
  });
552
522
  /**
553
523
  * Get Current Token Information
554
524
  *
555
525
  * Get information about the current macaroon token(s), including organizations, apps, and whether each token is from a user or machine
556
526
  */
557
- export const currentTokenShow = (options) => (options?.client ?? client).get({ url: "/v1/tokens/current", ...options });
527
+ export const currentTokenShow = (options) => (options?.client ?? client).get({ url: '/v1/tokens/current', ...options });