@distilled.cloud/fly-io 1.0.0-rc.13 → 1.0.0-rc.15

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 (54) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +2 -2
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/protocol.d.ts +3 -3
  9. package/lib/protocol.d.ts.map +1 -1
  10. package/lib/protocol.js +37 -52
  11. package/lib/protocol.js.map +1 -1
  12. package/lib/protocol.test.js +5 -4
  13. package/lib/protocol.test.js.map +1 -1
  14. package/lib/retry.d.ts +1 -1
  15. package/lib/retry.d.ts.map +1 -1
  16. package/lib/retry.js +1 -1
  17. package/lib/retry.js.map +1 -1
  18. package/lib/services/addons.d.ts +58 -8
  19. package/lib/services/addons.d.ts.map +1 -1
  20. package/lib/services/addons.js +40 -85
  21. package/lib/services/addons.js.map +1 -1
  22. package/lib/services/machines.d.ts +14 -3
  23. package/lib/services/machines.d.ts.map +1 -1
  24. package/lib/services/machines.js +179 -679
  25. package/lib/services/machines.js.map +1 -1
  26. package/lib/services/mpg.d.ts +2 -2
  27. package/lib/services/mpg.d.ts.map +1 -1
  28. package/lib/services/mpg.js +37 -153
  29. package/lib/services/mpg.js.map +1 -1
  30. package/lib/services/sprites.d.ts +687 -144
  31. package/lib/services/sprites.d.ts.map +1 -1
  32. package/lib/services/sprites.js +667 -183
  33. package/lib/services/sprites.js.map +1 -1
  34. package/lib/sprites-mint.test.js +3 -4
  35. package/lib/sprites-mint.test.js.map +1 -1
  36. package/lib/traits.d.ts.map +1 -1
  37. package/lib/traits.js.map +1 -1
  38. package/package.json +13 -11
  39. package/src/credentials.ts +8 -12
  40. package/src/errors.ts +6 -10
  41. package/src/protocol.test.ts +12 -32
  42. package/src/protocol.ts +80 -125
  43. package/src/retry.ts +2 -8
  44. package/src/services/addons.ts +135 -154
  45. package/src/services/machines.ts +338 -1189
  46. package/src/services/mpg.ts +59 -217
  47. package/src/services/sprites.ts +1573 -354
  48. package/src/sprites-mint.test.ts +23 -65
  49. package/src/traits.ts +5 -12
  50. package/lib/response-validation.test.d.ts +0 -4
  51. package/lib/response-validation.test.d.ts.map +0 -1
  52. package/lib/response-validation.test.js +0 -32
  53. package/lib/response-validation.test.js.map +0 -1
  54. package/src/response-validation.test.ts +0 -46
@@ -1,12 +1,6 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
2
3
  import * as S from "@distilled.cloud/core/schema";
3
- import * as API from "@distilled.cloud/core/api";
4
- import * as T from "../traits.ts";
5
- import {
6
- FlyIoProtocol,
7
- type FlyIoOpError,
8
- type FlyIoOpContext,
9
- } from "../protocol.ts";
10
4
  import {
11
5
  BadRequest,
12
6
  Conflict,
@@ -15,7 +9,9 @@ import {
15
9
  NotFound,
16
10
  UnprocessableEntity,
17
11
  } from "../errors.ts";
12
+ import { FlyIoProtocol, type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
18
13
  import * as Retry from "../retry.ts";
14
+ import * as T from "../traits.ts";
19
15
 
20
16
  export type { FlyIoOpError, FlyIoOpContext };
21
17
 
@@ -24,29 +20,15 @@ export class MachineReplacing
24
20
  /*@__PURE__*/ S.TaggedError<MachineReplacing>()("MachineReplacing", {
25
21
  message: S.String,
26
22
  }),
27
- [
28
- {
29
- status: 412,
30
- message:
31
- "failed_precondition: machine getting replaced, refusing to start",
32
- },
33
- ],
23
+ [{ status: 412, message: "failed_precondition: machine getting replaced, refusing to start" }],
34
24
  ) {}
35
25
 
36
26
  export class MachineStartFromCreatedState
37
27
  extends /*@__PURE__*/ T.applyErrorMatchers(
38
- /*@__PURE__*/ S.TaggedError<MachineStartFromCreatedState>()(
39
- "MachineStartFromCreatedState",
40
- {
41
- message: S.String,
42
- },
43
- ),
44
- [
45
- {
46
- message:
47
- "failed_precondition: unable to start machine from current state: 'created'",
48
- },
49
- ],
28
+ /*@__PURE__*/ S.TaggedError<MachineStartFromCreatedState>()("MachineStartFromCreatedState", {
29
+ message: S.String,
30
+ }),
31
+ [{ message: "failed_precondition: unable to start machine from current state: 'created'" }],
50
32
  ) {}
51
33
 
52
34
  export class MachineWaitTimeout
@@ -77,14 +59,7 @@ export class VolumeAttached
77
59
  /*@__PURE__*/ S.TaggedError<VolumeAttached>()("VolumeAttached", {
78
60
  message: S.String,
79
61
  }),
80
- [
81
- {
82
- message: {
83
- includes:
84
- "failed_precondition: volume is currently bound to machine:",
85
- },
86
- },
87
- ],
62
+ [{ message: { includes: "failed_precondition: volume is currently bound to machine:" } }],
88
63
  ) {}
89
64
 
90
65
  export interface AuthenticateTokenRequest {
@@ -93,12 +68,8 @@ export interface AuthenticateTokenRequest {
93
68
  export const AuthenticateTokenRequest = /*@__PURE__*/ S.suspend(() =>
94
69
  S.Struct({
95
70
  header: S.optional(S.String),
96
- }).pipe(
97
- T.Http({ method: "POST", uri: "/v1/tokens/authenticate", code: 200 }),
98
- ),
99
- ).annotate({
100
- identifier: "AuthenticateTokenRequest",
101
- }) as any as S.Schema<AuthenticateTokenRequest>;
71
+ }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authenticate", code: 200 })),
72
+ ).annotate({ identifier: "AuthenticateTokenRequest" }) as any as S.Schema<AuthenticateTokenRequest>;
102
73
 
103
74
  export type MacaroonCaveatSetCaveatsList = Array<unknown>;
104
75
  export const MacaroonCaveatSetCaveatsList = /*@__PURE__*/ S.Array(
@@ -112,9 +83,7 @@ export const MacaroonCaveatSet = /*@__PURE__*/ S.suspend(() =>
112
83
  S.Struct({
113
84
  caveats: S.optional(MacaroonCaveatSetCaveatsList),
114
85
  }),
115
- ).annotate({
116
- identifier: "MacaroonCaveatSet",
117
- }) as any as S.Schema<MacaroonCaveatSet>;
86
+ ).annotate({ identifier: "MacaroonCaveatSet" }) as any as S.Schema<MacaroonCaveatSet>;
118
87
 
119
88
  export type MacaroonNonceKidList = Array<number>;
120
89
  export const MacaroonNonceKidList = /*@__PURE__*/ S.Array(
@@ -157,9 +126,7 @@ export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() =>
157
126
  nonce: S.optional(MacaroonNonce),
158
127
  permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
159
128
  }),
160
- ).annotate({
161
- identifier: "RootVerifiedToken",
162
- }) as any as S.Schema<RootVerifiedToken>;
129
+ ).annotate({ identifier: "RootVerifiedToken" }) as any as S.Schema<RootVerifiedToken>;
163
130
 
164
131
  export type AuthenticateTokenResponseBodyList = Array<RootVerifiedToken>;
165
132
  export const AuthenticateTokenResponseBodyList = /*@__PURE__*/ S.Array(
@@ -223,9 +190,7 @@ export const MainTokenAccess = /*@__PURE__*/ S.suspend(() =>
223
190
  storage_object: S.optional(S.String),
224
191
  volume_id: S.optional(S.String),
225
192
  }),
226
- ).annotate({
227
- identifier: "MainTokenAccess",
228
- }) as any as S.Schema<MainTokenAccess>;
193
+ ).annotate({ identifier: "MainTokenAccess" }) as any as S.Schema<MainTokenAccess>;
229
194
 
230
195
  export interface AuthorizeTokenRequest {
231
196
  access?: MainTokenAccess;
@@ -236,9 +201,7 @@ export const AuthorizeTokenRequest = /*@__PURE__*/ S.suspend(() =>
236
201
  access: S.optional(MainTokenAccess),
237
202
  header: S.optional(S.String),
238
203
  }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authorize", code: 200 })),
239
- ).annotate({
240
- identifier: "AuthorizeTokenRequest",
241
- }) as any as S.Schema<AuthorizeTokenRequest>;
204
+ ).annotate({ identifier: "AuthorizeTokenRequest" }) as any as S.Schema<AuthorizeTokenRequest>;
242
205
 
243
206
  export type FlyioAccessCommandList = Array<string>;
244
207
  export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(
@@ -291,9 +254,7 @@ export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() =>
291
254
  access: S.optional(FlyioAccess),
292
255
  verified_token: S.optional(RootVerifiedToken),
293
256
  }),
294
- ).annotate({
295
- identifier: "AuthorizeResponse",
296
- }) as any as S.Schema<AuthorizeResponse>;
257
+ ).annotate({ identifier: "AuthorizeResponse" }) as any as S.Schema<AuthorizeResponse>;
297
258
 
298
259
  export interface CheckAppCertificateRequest {
299
260
  /** Fly App Name */
@@ -306,11 +267,7 @@ export const CheckAppCertificateRequest = /*@__PURE__*/ S.suspend(() =>
306
267
  app_name: S.String.pipe(T.Label()),
307
268
  hostname: S.String.pipe(T.Label()),
308
269
  }).pipe(
309
- T.Http({
310
- method: "POST",
311
- uri: "/v1/apps/{app_name}/certificates/{hostname}/check",
312
- code: 200,
313
- }),
270
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/certificates/{hostname}/check", code: 200 }),
314
271
  ),
315
272
  ).annotate({
316
273
  identifier: "CheckAppCertificateRequest",
@@ -330,9 +287,7 @@ export const IssuedCertificate = /*@__PURE__*/ S.suspend(() =>
330
287
  expires_at: S.optional(S.String),
331
288
  type: S.optional(IssuedCertificateType),
332
289
  }),
333
- ).annotate({
334
- identifier: "IssuedCertificate",
335
- }) as any as S.Schema<IssuedCertificate>;
290
+ ).annotate({ identifier: "IssuedCertificate" }) as any as S.Schema<IssuedCertificate>;
336
291
 
337
292
  export type CertificateEntryIssuedList = Array<IssuedCertificate>;
338
293
  export const CertificateEntryIssuedList = /*@__PURE__*/ S.Array(
@@ -342,10 +297,7 @@ export const CertificateEntryIssuedList = /*@__PURE__*/ S.Array(
342
297
  export type CertificateEntrySource = "custom" | "fly";
343
298
  export const CertificateEntrySource = S.String;
344
299
 
345
- export type CertificateEntryStatus =
346
- | "active"
347
- | "pending_ownership"
348
- | "pending_validation";
300
+ export type CertificateEntryStatus = "active" | "pending_ownership" | "pending_validation";
349
301
  export const CertificateEntryStatus = S.String;
350
302
 
351
303
  export interface CertificateEntry {
@@ -365,9 +317,7 @@ export const CertificateEntry = /*@__PURE__*/ S.suspend(() =>
365
317
  source: S.optional(CertificateEntrySource),
366
318
  status: S.optional(CertificateEntryStatus),
367
319
  }),
368
- ).annotate({
369
- identifier: "CertificateEntry",
370
- }) as any as S.Schema<CertificateEntry>;
320
+ ).annotate({ identifier: "CertificateEntry" }) as any as S.Schema<CertificateEntry>;
371
321
 
372
322
  export type CertificateCheckResponseCertificatesList = Array<CertificateEntry>;
373
323
  export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(
@@ -375,9 +325,7 @@ export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(
375
325
  ) as any as S.Schema<CertificateCheckResponseCertificatesList>;
376
326
 
377
327
  export type DNSRecordsAList = Array<string>;
378
- export const DNSRecordsAList = /*@__PURE__*/ S.Array(
379
- S.String,
380
- ) as any as S.Schema<DNSRecordsAList>;
328
+ export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<DNSRecordsAList>;
381
329
 
382
330
  export type DNSRecordsAaaaList = Array<string>;
383
331
  export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(
@@ -447,9 +395,7 @@ export const OwnershipVerification = /*@__PURE__*/ S.suspend(() =>
447
395
  name: S.optional(S.String),
448
396
  org_value: S.optional(S.String),
449
397
  }),
450
- ).annotate({
451
- identifier: "OwnershipVerification",
452
- }) as any as S.Schema<OwnershipVerification>;
398
+ ).annotate({ identifier: "OwnershipVerification" }) as any as S.Schema<OwnershipVerification>;
453
399
 
454
400
  export interface DNSRequirements {
455
401
  a?: DNSRequirementsAList;
@@ -466,9 +412,7 @@ export const DNSRequirements = /*@__PURE__*/ S.suspend(() =>
466
412
  cname: S.optional(S.String),
467
413
  ownership: S.optional(OwnershipVerification),
468
414
  }),
469
- ).annotate({
470
- identifier: "DNSRequirements",
471
- }) as any as S.Schema<DNSRequirements>;
415
+ ).annotate({ identifier: "DNSRequirements" }) as any as S.Schema<DNSRequirements>;
472
416
 
473
417
  export interface CertificateValidation {
474
418
  alpn_configured?: boolean;
@@ -483,9 +427,7 @@ export const CertificateValidation = /*@__PURE__*/ S.suspend(() =>
483
427
  http_configured: S.optional(S.Boolean),
484
428
  ownership_txt_configured: S.optional(S.Boolean),
485
429
  }),
486
- ).annotate({
487
- identifier: "CertificateValidation",
488
- }) as any as S.Schema<CertificateValidation>;
430
+ ).annotate({ identifier: "CertificateValidation" }) as any as S.Schema<CertificateValidation>;
489
431
 
490
432
  export interface CertificateValidationError {
491
433
  code?: string;
@@ -504,12 +446,10 @@ export const CertificateValidationError = /*@__PURE__*/ S.suspend(() =>
504
446
  identifier: "CertificateValidationError",
505
447
  }) as any as S.Schema<CertificateValidationError>;
506
448
 
507
- export type CertificateCheckResponseValidationErrorsList =
508
- Array<CertificateValidationError>;
509
- export const CertificateCheckResponseValidationErrorsList =
510
- /*@__PURE__*/ S.Array(
511
- CertificateValidationError,
512
- ) as any as S.Schema<CertificateCheckResponseValidationErrorsList>;
449
+ export type CertificateCheckResponseValidationErrorsList = Array<CertificateValidationError>;
450
+ export const CertificateCheckResponseValidationErrorsList = /*@__PURE__*/ S.Array(
451
+ CertificateValidationError,
452
+ ) as any as S.Schema<CertificateCheckResponseValidationErrorsList>;
513
453
 
514
454
  export interface CertificateCheckResponse {
515
455
  acme_requested?: boolean;
@@ -538,9 +478,7 @@ export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() =>
538
478
  validation: S.optional(CertificateValidation),
539
479
  validation_errors: S.optional(CertificateCheckResponseValidationErrorsList),
540
480
  }),
541
- ).annotate({
542
- identifier: "CertificateCheckResponse",
543
- }) as any as S.Schema<CertificateCheckResponse>;
481
+ ).annotate({ identifier: "CertificateCheckResponse" }) as any as S.Schema<CertificateCheckResponse>;
544
482
 
545
483
  export interface CordonMachineRequest {
546
484
  /** Fly App Name */
@@ -555,20 +493,12 @@ export const CordonMachineRequest = /*@__PURE__*/ S.suspend(() =>
555
493
  machine_id: S.String.pipe(T.Label()),
556
494
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
557
495
  }).pipe(
558
- T.Http({
559
- method: "POST",
560
- uri: "/v1/apps/{app_name}/machines/{machine_id}/cordon",
561
- code: 200,
562
- }),
496
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/cordon", code: 200 }),
563
497
  ),
564
- ).annotate({
565
- identifier: "CordonMachineRequest",
566
- }) as any as S.Schema<CordonMachineRequest>;
498
+ ).annotate({ identifier: "CordonMachineRequest" }) as any as S.Schema<CordonMachineRequest>;
567
499
 
568
500
  export interface CordonMachineResponse {}
569
- export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() =>
570
- S.Struct({}),
571
- ).annotate({
501
+ export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
572
502
  identifier: "CordonMachineResponse",
573
503
  }) as any as S.Schema<CordonMachineResponse>;
574
504
 
@@ -588,9 +518,7 @@ export const CreateAppRequest = /*@__PURE__*/ S.suspend(() =>
588
518
  network: S.optional(S.String),
589
519
  org_slug: S.optional(S.String),
590
520
  }).pipe(T.Http({ method: "POST", uri: "/v1/apps", code: 200 })),
591
- ).annotate({
592
- identifier: "CreateAppRequest",
593
- }) as any as S.Schema<CreateAppRequest>;
521
+ ).annotate({ identifier: "CreateAppRequest" }) as any as S.Schema<CreateAppRequest>;
594
522
 
595
523
  export interface CreateAppResponse {
596
524
  created_at?: number;
@@ -601,9 +529,7 @@ export const CreateAppResponse = /*@__PURE__*/ S.suspend(() =>
601
529
  created_at: S.optional(S.Number),
602
530
  id: S.optional(S.String),
603
531
  }),
604
- ).annotate({
605
- identifier: "CreateAppResponse",
606
- }) as any as S.Schema<CreateAppResponse>;
532
+ ).annotate({ identifier: "CreateAppResponse" }) as any as S.Schema<CreateAppResponse>;
607
533
 
608
534
  export interface CreateAppAcmeCertificateRequest {
609
535
  /** Fly App Name */
@@ -614,13 +540,7 @@ export const CreateAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() =>
614
540
  S.Struct({
615
541
  app_name: S.String.pipe(T.Label()),
616
542
  hostname: S.optional(S.String),
617
- }).pipe(
618
- T.Http({
619
- method: "POST",
620
- uri: "/v1/apps/{app_name}/certificates/acme",
621
- code: 200,
622
- }),
623
- ),
543
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/certificates/acme", code: 200 })),
624
544
  ).annotate({
625
545
  identifier: "CreateAppAcmeCertificateRequest",
626
546
  }) as any as S.Schema<CreateAppAcmeCertificateRequest>;
@@ -630,8 +550,7 @@ export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(
630
550
  CertificateEntry,
631
551
  ) as any as S.Schema<CertificateDetailCertificatesList>;
632
552
 
633
- export type CertificateDetailValidationErrorsList =
634
- Array<CertificateValidationError>;
553
+ export type CertificateDetailValidationErrorsList = Array<CertificateValidationError>;
635
554
  export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(
636
555
  CertificateValidationError,
637
556
  ) as any as S.Schema<CertificateDetailValidationErrorsList>;
@@ -661,9 +580,7 @@ export const CertificateDetail = /*@__PURE__*/ S.suspend(() =>
661
580
  validation: S.optional(CertificateValidation),
662
581
  validation_errors: S.optional(CertificateDetailValidationErrorsList),
663
582
  }),
664
- ).annotate({
665
- identifier: "CertificateDetail",
666
- }) as any as S.Schema<CertificateDetail>;
583
+ ).annotate({ identifier: "CertificateDetail" }) as any as S.Schema<CertificateDetail>;
667
584
 
668
585
  export interface CreateAppCustomCertificateRequest {
669
586
  /** Fly App Name */
@@ -678,13 +595,7 @@ export const CreateAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() =>
678
595
  fullchain: S.optional(S.String),
679
596
  hostname: S.optional(S.String),
680
597
  private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
681
- }).pipe(
682
- T.Http({
683
- method: "POST",
684
- uri: "/v1/apps/{app_name}/certificates/custom",
685
- code: 200,
686
- }),
687
- ),
598
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/certificates/custom", code: 200 })),
688
599
  ).annotate({
689
600
  identifier: "CreateAppCustomCertificateRequest",
690
601
  }) as any as S.Schema<CreateAppCustomCertificateRequest>;
@@ -698,13 +609,7 @@ export const CreateAppDeployTokenRequest = /*@__PURE__*/ S.suspend(() =>
698
609
  S.Struct({
699
610
  app_name: S.String.pipe(T.Label()),
700
611
  expiry: S.optional(S.String),
701
- }).pipe(
702
- T.Http({
703
- method: "POST",
704
- uri: "/v1/apps/{app_name}/deploy_token",
705
- code: 200,
706
- }),
707
- ),
612
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/deploy_token", code: 200 })),
708
613
  ).annotate({
709
614
  identifier: "CreateAppDeployTokenRequest",
710
615
  }) as any as S.Schema<CreateAppDeployTokenRequest>;
@@ -748,13 +653,7 @@ export const CreateAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() =>
748
653
  region: S.optional(S.String),
749
654
  service_name: S.optional(S.String),
750
655
  type: S.optional(IPAssignmentType),
751
- }).pipe(
752
- T.Http({
753
- method: "POST",
754
- uri: "/v1/apps/{app_name}/ip_assignments",
755
- code: 200,
756
- }),
757
- ),
656
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/ip_assignments", code: 200 })),
758
657
  ).annotate({
759
658
  identifier: "CreateAppIPAssignmentRequest",
760
659
  }) as any as S.Schema<CreateAppIPAssignmentRequest>;
@@ -781,9 +680,7 @@ export const IPAssignmentNetwork = /*@__PURE__*/ S.suspend(() =>
781
680
  name: S.optional(S.String),
782
681
  org_slug: S.optional(S.String),
783
682
  }),
784
- ).annotate({
785
- identifier: "IPAssignmentNetwork",
786
- }) as any as S.Schema<IPAssignmentNetwork>;
683
+ ).annotate({ identifier: "IPAssignmentNetwork" }) as any as S.Schema<IPAssignmentNetwork>;
787
684
 
788
685
  export interface AssignIPResponse {
789
686
  created_at?: string;
@@ -807,9 +704,7 @@ export const AssignIPResponse = /*@__PURE__*/ S.suspend(() =>
807
704
  service_name: S.optional(S.String),
808
705
  shared: S.optional(S.Boolean),
809
706
  }),
810
- ).annotate({
811
- identifier: "AssignIPResponse",
812
- }) as any as S.Schema<AssignIPResponse>;
707
+ ).annotate({ identifier: "AssignIPResponse" }) as any as S.Schema<AssignIPResponse>;
813
708
 
814
709
  export interface FlyMachineCacheDrive {
815
710
  size_mb?: number;
@@ -818,9 +713,7 @@ export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() =>
818
713
  S.Struct({
819
714
  size_mb: S.optional(S.Number),
820
715
  }),
821
- ).annotate({
822
- identifier: "FlyMachineCacheDrive",
823
- }) as any as S.Schema<FlyMachineCacheDrive>;
716
+ ).annotate({ identifier: "FlyMachineCacheDrive" }) as any as S.Schema<FlyMachineCacheDrive>;
824
717
 
825
718
  /** The header value */
826
719
  export type FlyMachineHTTPHeaderValuesList = Array<string>;
@@ -840,9 +733,7 @@ export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() =>
840
733
  name: S.optional(S.String),
841
734
  values: S.optional(FlyMachineHTTPHeaderValuesList),
842
735
  }),
843
- ).annotate({
844
- identifier: "FlyMachineHTTPHeader",
845
- }) as any as S.Schema<FlyMachineHTTPHeader>;
736
+ ).annotate({ identifier: "FlyMachineHTTPHeader" }) as any as S.Schema<FlyMachineHTTPHeader>;
846
737
 
847
738
  export type FlyMachineCheckHeadersList = Array<FlyMachineHTTPHeader>;
848
739
  export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(
@@ -893,14 +784,10 @@ export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() =>
893
784
  tls_skip_verify: S.optional(S.Boolean),
894
785
  type: S.optional(S.String),
895
786
  }),
896
- ).annotate({
897
- identifier: "FlyMachineCheck",
898
- }) as any as S.Schema<FlyMachineCheck>;
787
+ ).annotate({ identifier: "FlyMachineCheck" }) as any as S.Schema<FlyMachineCheck>;
899
788
 
900
789
  /** An optional object that defines one or more named top-level checks. The key for each check is the check name. */
901
- export type FlyMachineConfigChecksMap = {
902
- [key: string]: FlyMachineCheck | undefined;
903
- };
790
+ export type FlyMachineConfigChecksMap = { [key: string]: FlyMachineCheck | undefined };
904
791
  export const FlyMachineConfigChecksMap = /*@__PURE__*/ S.Record(
905
792
  S.String,
906
793
  FlyMachineCheck,
@@ -912,10 +799,7 @@ export const FlyContainerConfigCmdList = /*@__PURE__*/ S.Array(
912
799
  S.String,
913
800
  ) as any as S.Schema<FlyContainerConfigCmdList>;
914
801
 
915
- export type FlyContainerDependencyCondition =
916
- | "exited_successfully"
917
- | "healthy"
918
- | "started";
802
+ export type FlyContainerDependencyCondition = "exited_successfully" | "healthy" | "started";
919
803
  export const FlyContainerDependencyCondition = S.String;
920
804
 
921
805
  export interface FlyContainerDependency {
@@ -927,9 +811,7 @@ export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() =>
927
811
  condition: S.optional(FlyContainerDependencyCondition),
928
812
  name: S.optional(S.String),
929
813
  }),
930
- ).annotate({
931
- identifier: "FlyContainerDependency",
932
- }) as any as S.Schema<FlyContainerDependency>;
814
+ ).annotate({ identifier: "FlyContainerDependency" }) as any as S.Schema<FlyContainerDependency>;
933
815
 
934
816
  /** DependsOn can be used to define dependencies between containers. The container will only be started after all of its dependent conditions have been satisfied. */
935
817
  export type FlyContainerConfigDependsOnList = Array<FlyContainerDependency>;
@@ -951,13 +833,7 @@ export const FlyContainerConfigEnvMap = /*@__PURE__*/ S.Record(
951
833
  ) as any as S.Schema<FlyContainerConfigEnvMap>;
952
834
 
953
835
  /** FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. */
954
- export type FlyEnvFromFieldRef =
955
- | "id"
956
- | "version"
957
- | "app_name"
958
- | "private_ip"
959
- | "region"
960
- | "image";
836
+ export type FlyEnvFromFieldRef = "id" | "version" | "app_name" | "private_ip" | "region" | "image";
961
837
  export const FlyEnvFromFieldRef = S.String;
962
838
 
963
839
  /** EnvVar defines an environment variable to be populated from a machine field, env_var */
@@ -1029,9 +905,7 @@ export const FlyExecHealthcheck = /*@__PURE__*/ S.suspend(() =>
1029
905
  S.Struct({
1030
906
  command: S.optional(FlyExecHealthcheckCommandList),
1031
907
  }),
1032
- ).annotate({
1033
- identifier: "FlyExecHealthcheck",
1034
- }) as any as S.Schema<FlyExecHealthcheck>;
908
+ ).annotate({ identifier: "FlyExecHealthcheck" }) as any as S.Schema<FlyExecHealthcheck>;
1035
909
 
1036
910
  /** Additional headers to send with the request */
1037
911
  export type FlyHTTPHealthcheckHeadersList = Array<FlyMachineHTTPHeader>;
@@ -1068,9 +942,7 @@ export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() =>
1068
942
  tls_server_name: S.optional(S.String),
1069
943
  tls_skip_verify: S.optional(S.Boolean),
1070
944
  }),
1071
- ).annotate({
1072
- identifier: "FlyHTTPHealthcheck",
1073
- }) as any as S.Schema<FlyHTTPHealthcheck>;
945
+ ).annotate({ identifier: "FlyHTTPHealthcheck" }) as any as S.Schema<FlyHTTPHealthcheck>;
1074
946
 
1075
947
  export type FlyContainerHealthcheckKind = "readiness" | "liveness";
1076
948
  export const FlyContainerHealthcheckKind = S.String;
@@ -1083,9 +955,7 @@ export const FlyTCPHealthcheck = /*@__PURE__*/ S.suspend(() =>
1083
955
  S.Struct({
1084
956
  port: S.optional(S.Number),
1085
957
  }),
1086
- ).annotate({
1087
- identifier: "FlyTCPHealthcheck",
1088
- }) as any as S.Schema<FlyTCPHealthcheck>;
958
+ ).annotate({ identifier: "FlyTCPHealthcheck" }) as any as S.Schema<FlyTCPHealthcheck>;
1089
959
 
1090
960
  export type FlyUnhealthyPolicy = "stop";
1091
961
  export const FlyUnhealthyPolicy = S.String;
@@ -1125,9 +995,7 @@ export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() =>
1125
995
  timeout: S.optional(S.Number),
1126
996
  unhealthy: S.optional(FlyUnhealthyPolicy),
1127
997
  }),
1128
- ).annotate({
1129
- identifier: "FlyContainerHealthcheck",
1130
- }) as any as S.Schema<FlyContainerHealthcheck>;
998
+ ).annotate({ identifier: "FlyContainerHealthcheck" }) as any as S.Schema<FlyContainerHealthcheck>;
1131
999
 
1132
1000
  /** Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command. */
1133
1001
  export type FlyContainerConfigHealthchecksList = Array<FlyContainerHealthcheck>;
@@ -1151,9 +1019,7 @@ export const FlyMachineRestart = /*@__PURE__*/ S.suspend(() =>
1151
1019
  max_retries: S.optional(S.Number),
1152
1020
  policy: S.optional(FlyMachineRestartPolicy),
1153
1021
  }),
1154
- ).annotate({
1155
- identifier: "FlyMachineRestart",
1156
- }) as any as S.Schema<FlyMachineRestart>;
1022
+ ).annotate({ identifier: "FlyMachineRestart" }) as any as S.Schema<FlyMachineRestart>;
1157
1023
 
1158
1024
  /** A Secret needing to be set in the environment of the Machine. env_var is required */
1159
1025
  export interface FlyMachineSecret {
@@ -1167,9 +1033,7 @@ export const FlyMachineSecret = /*@__PURE__*/ S.suspend(() =>
1167
1033
  env_var: S.optional(S.String),
1168
1034
  name: S.optional(S.String),
1169
1035
  }),
1170
- ).annotate({
1171
- identifier: "FlyMachineSecret",
1172
- }) as any as S.Schema<FlyMachineSecret>;
1036
+ ).annotate({ identifier: "FlyMachineSecret" }) as any as S.Schema<FlyMachineSecret>;
1173
1037
 
1174
1038
  /** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
1175
1039
  export type FlyContainerConfigSecretsList = Array<FlyMachineSecret>;
@@ -1245,9 +1109,7 @@ export const FlyContainerConfig = /*@__PURE__*/ S.suspend(() =>
1245
1109
  stop: S.optional(FlyStopConfig),
1246
1110
  user: S.optional(S.String),
1247
1111
  }),
1248
- ).annotate({
1249
- identifier: "FlyContainerConfig",
1250
- }) as any as S.Schema<FlyContainerConfig>;
1112
+ ).annotate({ identifier: "FlyContainerConfig" }) as any as S.Schema<FlyContainerConfig>;
1251
1113
 
1252
1114
  /** Containers are a list of containers that will run in the machine. Currently restricted to only specific organizations. */
1253
1115
  export type FlyMachineConfigContainersList = Array<FlyContainerConfig>;
@@ -1264,9 +1126,7 @@ export const FlyDnsForwardRule = /*@__PURE__*/ S.suspend(() =>
1264
1126
  addr: S.optional(S.String),
1265
1127
  basename: S.optional(S.String),
1266
1128
  }),
1267
- ).annotate({
1268
- identifier: "FlyDnsForwardRule",
1269
- }) as any as S.Schema<FlyDnsForwardRule>;
1129
+ ).annotate({ identifier: "FlyDnsForwardRule" }) as any as S.Schema<FlyDnsForwardRule>;
1270
1130
 
1271
1131
  export type FlyDNSConfigDnsForwardRulesList = Array<FlyDnsForwardRule>;
1272
1132
  export const FlyDNSConfigDnsForwardRulesList = /*@__PURE__*/ S.Array(
@@ -1372,9 +1232,7 @@ export const FlyMachineGuest = /*@__PURE__*/ S.suspend(() =>
1372
1232
  persist_rootfs: S.optional(FlyMachineGuestPersistRootfs),
1373
1233
  required_host_features: S.optional(FlyMachineGuestRequiredHostFeaturesList),
1374
1234
  }),
1375
- ).annotate({
1376
- identifier: "FlyMachineGuest",
1377
- }) as any as S.Schema<FlyMachineGuest>;
1235
+ ).annotate({ identifier: "FlyMachineGuest" }) as any as S.Schema<FlyMachineGuest>;
1378
1236
 
1379
1237
  export type FlyMachineInitCmdList = Array<string>;
1380
1238
  export const FlyMachineInitCmdList = /*@__PURE__*/ S.Array(
@@ -1432,9 +1290,7 @@ export const FlyMachineMetrics = /*@__PURE__*/ S.suspend(() =>
1432
1290
  path: S.optional(S.String),
1433
1291
  port: S.optional(S.Number),
1434
1292
  }),
1435
- ).annotate({
1436
- identifier: "FlyMachineMetrics",
1437
- }) as any as S.Schema<FlyMachineMetrics>;
1293
+ ).annotate({ identifier: "FlyMachineMetrics" }) as any as S.Schema<FlyMachineMetrics>;
1438
1294
 
1439
1295
  export interface FlyMachineMount {
1440
1296
  add_size_gb?: number;
@@ -1463,9 +1319,7 @@ export const FlyMachineMount = /*@__PURE__*/ S.suspend(() =>
1463
1319
  size_gb_limit: S.optional(S.Number),
1464
1320
  volume: S.optional(S.String),
1465
1321
  }),
1466
- ).annotate({
1467
- identifier: "FlyMachineMount",
1468
- }) as any as S.Schema<FlyMachineMount>;
1322
+ ).annotate({ identifier: "FlyMachineMount" }) as any as S.Schema<FlyMachineMount>;
1469
1323
 
1470
1324
  export type FlyMachineConfigMountsList = Array<FlyMachineMount>;
1471
1325
  export const FlyMachineConfigMountsList = /*@__PURE__*/ S.Array(
@@ -1529,9 +1383,7 @@ export const FlyMachineProcess = /*@__PURE__*/ S.suspend(() =>
1529
1383
  secrets: S.optional(FlyMachineProcessSecretsList),
1530
1384
  user: S.optional(S.String),
1531
1385
  }),
1532
- ).annotate({
1533
- identifier: "FlyMachineProcess",
1534
- }) as any as S.Schema<FlyMachineProcess>;
1386
+ ).annotate({ identifier: "FlyMachineProcess" }) as any as S.Schema<FlyMachineProcess>;
1535
1387
 
1536
1388
  export type FlyMachineConfigProcessesList = Array<FlyMachineProcess>;
1537
1389
  export const FlyMachineConfigProcessesList = /*@__PURE__*/ S.Array(
@@ -1550,21 +1402,18 @@ export const FlyMachineRootfs = /*@__PURE__*/ S.suspend(() =>
1550
1402
  persist: S.optional(FlyMachineRootfsPersist),
1551
1403
  size_gb: S.optional(S.Number),
1552
1404
  }),
1553
- ).annotate({
1554
- identifier: "FlyMachineRootfs",
1555
- }) as any as S.Schema<FlyMachineRootfs>;
1405
+ ).annotate({ identifier: "FlyMachineRootfs" }) as any as S.Schema<FlyMachineRootfs>;
1556
1406
 
1557
1407
  /** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
1558
1408
  export type FlyMachineServiceAutostopMode = "off" | "stop" | "suspend";
1559
1409
  export const FlyMachineServiceAutostopMode = S.String;
1560
1410
 
1561
1411
  /** Accepts off, stop, or suspend. For backward compatibility, responses encode off as false and stop as true. */
1562
- export type FlyMachineServiceAutostop =
1563
- | FlyMachineServiceAutostopMode
1564
- | (string & {})
1565
- | boolean;
1566
- export const FlyMachineServiceAutostop: S.Codec<FlyMachineServiceAutostop> =
1567
- /*@__PURE__*/ S.Union([FlyMachineServiceAutostopMode, S.Boolean]);
1412
+ export type FlyMachineServiceAutostop = FlyMachineServiceAutostopMode | (string & {}) | boolean;
1413
+ export const FlyMachineServiceAutostop: S.Codec<FlyMachineServiceAutostop> = /*@__PURE__*/ S.Union([
1414
+ FlyMachineServiceAutostopMode,
1415
+ S.Boolean,
1416
+ ]);
1568
1417
 
1569
1418
  export type FlyMachineServiceCheckHeadersList = Array<FlyMachineHTTPHeader>;
1570
1419
  export const FlyMachineServiceCheckHeadersList = /*@__PURE__*/ S.Array(
@@ -1608,9 +1457,7 @@ export const FlyMachineServiceCheck = /*@__PURE__*/ S.suspend(() =>
1608
1457
  tls_skip_verify: S.optional(S.Boolean),
1609
1458
  type: S.optional(S.String),
1610
1459
  }),
1611
- ).annotate({
1612
- identifier: "FlyMachineServiceCheck",
1613
- }) as any as S.Schema<FlyMachineServiceCheck>;
1460
+ ).annotate({ identifier: "FlyMachineServiceCheck" }) as any as S.Schema<FlyMachineServiceCheck>;
1614
1461
 
1615
1462
  /** An optional list of service checks */
1616
1463
  export type FlyMachineServiceChecksList = Array<FlyMachineServiceCheck>;
@@ -1666,9 +1513,7 @@ export const FlyHTTPOptionsReplayCacheList = /*@__PURE__*/ S.Array(
1666
1513
  FlyReplayCache,
1667
1514
  ) as any as S.Schema<FlyHTTPOptionsReplayCacheList>;
1668
1515
 
1669
- export type FlyHTTPResponseOptionsHeadersMap = {
1670
- [key: string]: unknown | undefined;
1671
- };
1516
+ export type FlyHTTPResponseOptionsHeadersMap = { [key: string]: unknown | undefined };
1672
1517
  export const FlyHTTPResponseOptionsHeadersMap = /*@__PURE__*/ S.Record(
1673
1518
  S.String,
1674
1519
  S.Unknown,
@@ -1683,9 +1528,7 @@ export const FlyHTTPResponseOptions = /*@__PURE__*/ S.suspend(() =>
1683
1528
  headers: S.optional(FlyHTTPResponseOptionsHeadersMap),
1684
1529
  pristine: S.optional(S.Boolean),
1685
1530
  }),
1686
- ).annotate({
1687
- identifier: "FlyHTTPResponseOptions",
1688
- }) as any as S.Schema<FlyHTTPResponseOptions>;
1531
+ ).annotate({ identifier: "FlyHTTPResponseOptions" }) as any as S.Schema<FlyHTTPResponseOptions>;
1689
1532
 
1690
1533
  export interface FlyHTTPOptions {
1691
1534
  compress?: boolean;
@@ -1713,9 +1556,7 @@ export const FlyProxyProtoOptions = /*@__PURE__*/ S.suspend(() =>
1713
1556
  S.Struct({
1714
1557
  version: S.optional(S.String),
1715
1558
  }),
1716
- ).annotate({
1717
- identifier: "FlyProxyProtoOptions",
1718
- }) as any as S.Schema<FlyProxyProtoOptions>;
1559
+ ).annotate({ identifier: "FlyProxyProtoOptions" }) as any as S.Schema<FlyProxyProtoOptions>;
1719
1560
 
1720
1561
  export type FlyTLSOptionsAlpnList = Array<string>;
1721
1562
  export const FlyTLSOptionsAlpnList = /*@__PURE__*/ S.Array(
@@ -1795,9 +1636,7 @@ export const FlyMachineService = /*@__PURE__*/ S.suspend(() =>
1795
1636
  ports: S.optional(FlyMachineServicePortsList),
1796
1637
  protocol: S.optional(S.String),
1797
1638
  }),
1798
- ).annotate({
1799
- identifier: "FlyMachineService",
1800
- }) as any as S.Schema<FlyMachineService>;
1639
+ ).annotate({ identifier: "FlyMachineService" }) as any as S.Schema<FlyMachineService>;
1801
1640
 
1802
1641
  export type FlyMachineConfigServicesList = Array<FlyMachineService>;
1803
1642
  export const FlyMachineConfigServicesList = /*@__PURE__*/ S.Array(
@@ -1901,9 +1740,7 @@ export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() =>
1901
1740
  statics: S.optional(FlyMachineConfigStaticsList),
1902
1741
  stop_config: S.optional(FlyStopConfig),
1903
1742
  }),
1904
- ).annotate({
1905
- identifier: "FlyMachineConfig",
1906
- }) as any as S.Schema<FlyMachineConfig>;
1743
+ ).annotate({ identifier: "FlyMachineConfig" }) as any as S.Schema<FlyMachineConfig>;
1907
1744
 
1908
1745
  export interface CreateMachineRequest {
1909
1746
  /** Fly App Name */
@@ -1931,12 +1768,8 @@ export const CreateMachineRequest = /*@__PURE__*/ S.suspend(() =>
1931
1768
  skip_launch: S.optional(S.Boolean),
1932
1769
  skip_secrets: S.optional(S.Boolean),
1933
1770
  skip_service_registration: S.optional(S.Boolean),
1934
- }).pipe(
1935
- T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines", code: 200 }),
1936
- ),
1937
- ).annotate({
1938
- identifier: "CreateMachineRequest",
1939
- }) as any as S.Schema<CreateMachineRequest>;
1771
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines", code: 200 })),
1772
+ ).annotate({ identifier: "CreateMachineRequest" }) as any as S.Schema<CreateMachineRequest>;
1940
1773
 
1941
1774
  export interface CheckStatus {
1942
1775
  name?: string;
@@ -2094,11 +1927,7 @@ export const CreateMachineLeaseRequest = /*@__PURE__*/ S.suspend(() =>
2094
1927
  ttl: S.optional(S.Number.pipe(T.Query())),
2095
1928
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
2096
1929
  }).pipe(
2097
- T.Http({
2098
- method: "POST",
2099
- uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
2100
- code: 200,
2101
- }),
1930
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }),
2102
1931
  ),
2103
1932
  ).annotate({
2104
1933
  identifier: "CreateMachineLeaseRequest",
@@ -2142,12 +1971,7 @@ export type CreatePostgresRequestPgMajorVersion = "16" | "17";
2142
1971
  export const CreatePostgresRequestPgMajorVersion = S.String;
2143
1972
 
2144
1973
  /** Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. */
2145
- export type CreatePostgresRequestPlan =
2146
- | "basic"
2147
- | "starter"
2148
- | "launch"
2149
- | "scale"
2150
- | "Performance";
1974
+ export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
2151
1975
  export const CreatePostgresRequestPlan = S.String;
2152
1976
 
2153
1977
  /** Connection pooler mode. */
@@ -2183,9 +2007,7 @@ export const CreatePostgresRequest = /*@__PURE__*/ S.suspend(() =>
2183
2007
  postgis_enabled: S.optional(S.Boolean),
2184
2008
  region: S.String,
2185
2009
  }).pipe(T.Http({ method: "POST", uri: "/v1/postgres", code: 200 })),
2186
- ).annotate({
2187
- identifier: "CreatePostgresRequest",
2188
- }) as any as S.Schema<CreatePostgresRequest>;
2010
+ ).annotate({ identifier: "CreatePostgresRequest" }) as any as S.Schema<CreatePostgresRequest>;
2189
2011
 
2190
2012
  export interface PostgresAttachedApp {
2191
2013
  /** Attached Fly app name. */
@@ -2195,9 +2017,7 @@ export const PostgresAttachedApp = /*@__PURE__*/ S.suspend(() =>
2195
2017
  S.Struct({
2196
2018
  name: S.optional(S.String),
2197
2019
  }),
2198
- ).annotate({
2199
- identifier: "PostgresAttachedApp",
2200
- }) as any as S.Schema<PostgresAttachedApp>;
2020
+ ).annotate({ identifier: "PostgresAttachedApp" }) as any as S.Schema<PostgresAttachedApp>;
2201
2021
 
2202
2022
  /** Apps attached to the cluster. */
2203
2023
  export type PostgresClusterAttachedAppsList = Array<PostgresAttachedApp>;
@@ -2220,9 +2040,7 @@ export const PostgresEndpoint = /*@__PURE__*/ S.suspend(() =>
2220
2040
  host: S.optional(S.String),
2221
2041
  port: S.optional(S.Number),
2222
2042
  }),
2223
- ).annotate({
2224
- identifier: "PostgresEndpoint",
2225
- }) as any as S.Schema<PostgresEndpoint>;
2043
+ ).annotate({ identifier: "PostgresEndpoint" }) as any as S.Schema<PostgresEndpoint>;
2226
2044
 
2227
2045
  export interface PostgresNodeEndpoints {
2228
2046
  /** Unpooled connection to the cluster node. */
@@ -2235,9 +2053,7 @@ export const PostgresNodeEndpoints = /*@__PURE__*/ S.suspend(() =>
2235
2053
  direct: S.optional(PostgresEndpoint),
2236
2054
  pooler: S.optional(PostgresEndpoint),
2237
2055
  }),
2238
- ).annotate({
2239
- identifier: "PostgresNodeEndpoints",
2240
- }) as any as S.Schema<PostgresNodeEndpoints>;
2056
+ ).annotate({ identifier: "PostgresNodeEndpoints" }) as any as S.Schema<PostgresNodeEndpoints>;
2241
2057
 
2242
2058
  export interface PostgresClusterEndpoints {
2243
2059
  /** Endpoints for connecting to the primary node. */
@@ -2247,9 +2063,7 @@ export const PostgresClusterEndpoints = /*@__PURE__*/ S.suspend(() =>
2247
2063
  S.Struct({
2248
2064
  primary: S.optional(PostgresNodeEndpoints),
2249
2065
  }),
2250
- ).annotate({
2251
- identifier: "PostgresClusterEndpoints",
2252
- }) as any as S.Schema<PostgresClusterEndpoints>;
2066
+ ).annotate({ identifier: "PostgresClusterEndpoints" }) as any as S.Schema<PostgresClusterEndpoints>;
2253
2067
 
2254
2068
  export interface OrganizationRef {
2255
2069
  /** Organization name. */
@@ -2262,21 +2076,14 @@ export const OrganizationRef = /*@__PURE__*/ S.suspend(() =>
2262
2076
  name: S.optional(S.String),
2263
2077
  slug: S.optional(S.String),
2264
2078
  }),
2265
- ).annotate({
2266
- identifier: "OrganizationRef",
2267
- }) as any as S.Schema<OrganizationRef>;
2079
+ ).annotate({ identifier: "OrganizationRef" }) as any as S.Schema<OrganizationRef>;
2268
2080
 
2269
2081
  /** Postgres major version. */
2270
2082
  export type PostgresClusterPgMajorVersion = "16" | "17";
2271
2083
  export const PostgresClusterPgMajorVersion = S.String;
2272
2084
 
2273
2085
  /** Plan slug. */
2274
- export type PostgresClusterPlan =
2275
- | "basic"
2276
- | "starter"
2277
- | "launch"
2278
- | "scale"
2279
- | "Performance";
2086
+ export type PostgresClusterPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
2280
2087
  export const PostgresClusterPlan = S.String;
2281
2088
 
2282
2089
  /** Current lifecycle status. */
@@ -2347,9 +2154,7 @@ export const PostgresCluster = /*@__PURE__*/ S.suspend(() =>
2347
2154
  storage_provisioned_bytes: S.optional(S.NullOr(S.Number)),
2348
2155
  storage_used_bytes: S.optional(S.NullOr(S.Number)),
2349
2156
  }),
2350
- ).annotate({
2351
- identifier: "PostgresCluster",
2352
- }) as any as S.Schema<PostgresCluster>;
2157
+ ).annotate({ identifier: "PostgresCluster" }) as any as S.Schema<PostgresCluster>;
2353
2158
 
2354
2159
  export interface ShowPostgresClusterResponse {
2355
2160
  data?: PostgresCluster;
@@ -2373,11 +2178,7 @@ export const CreatePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() =>
2373
2178
  postgres_cluster_id: S.String.pipe(T.Label()),
2374
2179
  app_name: S.String,
2375
2180
  }).pipe(
2376
- T.Http({
2377
- method: "POST",
2378
- uri: "/v1/postgres/{postgres_cluster_id}/attachments",
2379
- code: 200,
2380
- }),
2181
+ T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/attachments", code: 200 }),
2381
2182
  ),
2382
2183
  ).annotate({
2383
2184
  identifier: "CreatePostgresAttachmentRequest",
@@ -2397,9 +2198,7 @@ export const PostgresAttachment = /*@__PURE__*/ S.suspend(() =>
2397
2198
  attached_at: S.optional(S.String),
2398
2199
  postgres_cluster_id: S.optional(S.String),
2399
2200
  }),
2400
- ).annotate({
2401
- identifier: "PostgresAttachment",
2402
- }) as any as S.Schema<PostgresAttachment>;
2201
+ ).annotate({ identifier: "PostgresAttachment" }) as any as S.Schema<PostgresAttachment>;
2403
2202
 
2404
2203
  export interface CreatePostgresAttachmentResponse {
2405
2204
  data?: PostgresAttachment;
@@ -2426,21 +2225,13 @@ export const CreatePostgresBackupRequest = /*@__PURE__*/ S.suspend(() =>
2426
2225
  S.Struct({
2427
2226
  postgres_cluster_id: S.String.pipe(T.Label()),
2428
2227
  type: CreatePostgresBackupRequestType,
2429
- }).pipe(
2430
- T.Http({
2431
- method: "POST",
2432
- uri: "/v1/postgres/{postgres_cluster_id}/backups",
2433
- code: 200,
2434
- }),
2435
- ),
2228
+ }).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/backups", code: 200 })),
2436
2229
  ).annotate({
2437
2230
  identifier: "CreatePostgresBackupRequest",
2438
2231
  }) as any as S.Schema<CreatePostgresBackupRequest>;
2439
2232
 
2440
2233
  export interface CreatePostgresBackupResponse {}
2441
- export const CreatePostgresBackupResponse = /*@__PURE__*/ S.suspend(() =>
2442
- S.Struct({}),
2443
- ).annotate({
2234
+ export const CreatePostgresBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2444
2235
  identifier: "CreatePostgresBackupResponse",
2445
2236
  }) as any as S.Schema<CreatePostgresBackupResponse>;
2446
2237
 
@@ -2455,11 +2246,7 @@ export const CreatePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
2455
2246
  postgres_cluster_id: S.String.pipe(T.Label()),
2456
2247
  name: S.String,
2457
2248
  }).pipe(
2458
- T.Http({
2459
- method: "POST",
2460
- uri: "/v1/postgres/{postgres_cluster_id}/databases",
2461
- code: 200,
2462
- }),
2249
+ T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/databases", code: 200 }),
2463
2250
  ),
2464
2251
  ).annotate({
2465
2252
  identifier: "CreatePostgresDatabaseRequest",
@@ -2473,9 +2260,7 @@ export const PostgresDatabase = /*@__PURE__*/ S.suspend(() =>
2473
2260
  S.Struct({
2474
2261
  name: S.optional(S.String),
2475
2262
  }),
2476
- ).annotate({
2477
- identifier: "PostgresDatabase",
2478
- }) as any as S.Schema<PostgresDatabase>;
2263
+ ).annotate({ identifier: "PostgresDatabase" }) as any as S.Schema<PostgresDatabase>;
2479
2264
 
2480
2265
  export interface PostgresDatabaseResponse {
2481
2266
  data?: PostgresDatabase;
@@ -2484,15 +2269,10 @@ export const PostgresDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
2484
2269
  S.Struct({
2485
2270
  data: S.optional(PostgresDatabase),
2486
2271
  }),
2487
- ).annotate({
2488
- identifier: "PostgresDatabaseResponse",
2489
- }) as any as S.Schema<PostgresDatabaseResponse>;
2272
+ ).annotate({ identifier: "PostgresDatabaseResponse" }) as any as S.Schema<PostgresDatabaseResponse>;
2490
2273
 
2491
2274
  /** Role to grant the user. */
2492
- export type CreatePostgresUserRequestRole =
2493
- | "schema_admin"
2494
- | "writer"
2495
- | "reader";
2275
+ export type CreatePostgresUserRequestRole = "schema_admin" | "writer" | "reader";
2496
2276
  export const CreatePostgresUserRequestRole = S.String;
2497
2277
 
2498
2278
  export interface CreatePostgresUserRequest {
@@ -2508,13 +2288,7 @@ export const CreatePostgresUserRequest = /*@__PURE__*/ S.suspend(() =>
2508
2288
  postgres_cluster_id: S.String.pipe(T.Label()),
2509
2289
  role: CreatePostgresUserRequestRole,
2510
2290
  username: S.String,
2511
- }).pipe(
2512
- T.Http({
2513
- method: "POST",
2514
- uri: "/v1/postgres/{postgres_cluster_id}/users",
2515
- code: 200,
2516
- }),
2517
- ),
2291
+ }).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/users", code: 200 })),
2518
2292
  ).annotate({
2519
2293
  identifier: "CreatePostgresUserRequest",
2520
2294
  }) as any as S.Schema<CreatePostgresUserRequest>;
@@ -2559,16 +2333,8 @@ export const CreateSecretRequest = /*@__PURE__*/ S.suspend(() =>
2559
2333
  app_name: S.String.pipe(T.Label()),
2560
2334
  secret_name: S.String.pipe(T.Label()),
2561
2335
  value: S.optional(S.String),
2562
- }).pipe(
2563
- T.Http({
2564
- method: "POST",
2565
- uri: "/v1/apps/{app_name}/secrets/{secret_name}",
2566
- code: 200,
2567
- }),
2568
- ),
2569
- ).annotate({
2570
- identifier: "CreateSecretRequest",
2571
- }) as any as S.Schema<CreateSecretRequest>;
2336
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 })),
2337
+ ).annotate({ identifier: "CreateSecretRequest" }) as any as S.Schema<CreateSecretRequest>;
2572
2338
 
2573
2339
  export interface SetAppSecretResponse {
2574
2340
  /** DEPRECATED */
@@ -2590,9 +2356,7 @@ export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() =>
2590
2356
  value: S.optional(S.String),
2591
2357
  version: S.optional(S.Number),
2592
2358
  }),
2593
- ).annotate({
2594
- identifier: "SetAppSecretResponse",
2595
- }) as any as S.Schema<SetAppSecretResponse>;
2359
+ ).annotate({ identifier: "SetAppSecretResponse" }) as any as S.Schema<SetAppSecretResponse>;
2596
2360
 
2597
2361
  export interface CreateVolumeRequest {
2598
2362
  /** Fly App Name */
@@ -2630,12 +2394,8 @@ export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() =>
2630
2394
  snapshot_retention: S.optional(S.Number),
2631
2395
  source_volume_id: S.optional(S.String),
2632
2396
  unique_zone_app_wide: S.optional(S.Boolean),
2633
- }).pipe(
2634
- T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes", code: 200 }),
2635
- ),
2636
- ).annotate({
2637
- identifier: "CreateVolumeRequest",
2638
- }) as any as S.Schema<CreateVolumeRequest>;
2397
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes", code: 200 })),
2398
+ ).annotate({ identifier: "CreateVolumeRequest" }) as any as S.Schema<CreateVolumeRequest>;
2639
2399
 
2640
2400
  export type VolumeHostFeaturesList = Array<string>;
2641
2401
  export const VolumeHostFeaturesList = /*@__PURE__*/ S.Array(
@@ -2717,20 +2477,14 @@ export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
2717
2477
  app_name: S.String.pipe(T.Label()),
2718
2478
  volume_id: S.String.pipe(T.Label()),
2719
2479
  }).pipe(
2720
- T.Http({
2721
- method: "POST",
2722
- uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
2723
- code: 200,
2724
- }),
2480
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots", code: 200 }),
2725
2481
  ),
2726
2482
  ).annotate({
2727
2483
  identifier: "CreateVolumeSnapshotRequest",
2728
2484
  }) as any as S.Schema<CreateVolumeSnapshotRequest>;
2729
2485
 
2730
2486
  export interface CreateVolumeSnapshotResponse {}
2731
- export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() =>
2732
- S.Struct({}),
2733
- ).annotate({
2487
+ export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2734
2488
  identifier: "CreateVolumeSnapshotResponse",
2735
2489
  }) as any as S.Schema<CreateVolumeSnapshotResponse>;
2736
2490
 
@@ -2758,9 +2512,7 @@ export const DecryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
2758
2512
  code: 200,
2759
2513
  }),
2760
2514
  ),
2761
- ).annotate({
2762
- identifier: "DecryptSecretKeyRequest",
2763
- }) as any as S.Schema<DecryptSecretKeyRequest>;
2515
+ ).annotate({ identifier: "DecryptSecretKeyRequest" }) as any as S.Schema<DecryptSecretKeyRequest>;
2764
2516
 
2765
2517
  export interface DecryptSecretkeyResponse {
2766
2518
  plaintext?: string;
@@ -2769,9 +2521,7 @@ export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() =>
2769
2521
  S.Struct({
2770
2522
  plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
2771
2523
  }),
2772
- ).annotate({
2773
- identifier: "DecryptSecretkeyResponse",
2774
- }) as any as S.Schema<DecryptSecretkeyResponse>;
2524
+ ).annotate({ identifier: "DecryptSecretkeyResponse" }) as any as S.Schema<DecryptSecretkeyResponse>;
2775
2525
 
2776
2526
  export interface DeleteAppRequest {
2777
2527
  /** Fly App Name */
@@ -2781,14 +2531,10 @@ export const DeleteAppRequest = /*@__PURE__*/ S.suspend(() =>
2781
2531
  S.Struct({
2782
2532
  app_name: S.String.pipe(T.Label()),
2783
2533
  }).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}", code: 200 })),
2784
- ).annotate({
2785
- identifier: "DeleteAppRequest",
2786
- }) as any as S.Schema<DeleteAppRequest>;
2534
+ ).annotate({ identifier: "DeleteAppRequest" }) as any as S.Schema<DeleteAppRequest>;
2787
2535
 
2788
2536
  export interface DeleteAppResponse {}
2789
- export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() =>
2790
- S.Struct({}),
2791
- ).annotate({
2537
+ export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2792
2538
  identifier: "DeleteAppResponse",
2793
2539
  }) as any as S.Schema<DeleteAppResponse>;
2794
2540
 
@@ -2824,20 +2570,14 @@ export const DeleteAppCertificateRequest = /*@__PURE__*/ S.suspend(() =>
2824
2570
  app_name: S.String.pipe(T.Label()),
2825
2571
  hostname: S.String.pipe(T.Label()),
2826
2572
  }).pipe(
2827
- T.Http({
2828
- method: "DELETE",
2829
- uri: "/v1/apps/{app_name}/certificates/{hostname}",
2830
- code: 200,
2831
- }),
2573
+ T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/certificates/{hostname}", code: 200 }),
2832
2574
  ),
2833
2575
  ).annotate({
2834
2576
  identifier: "DeleteAppCertificateRequest",
2835
2577
  }) as any as S.Schema<DeleteAppCertificateRequest>;
2836
2578
 
2837
2579
  export interface DeleteAppCertificateResponse {}
2838
- export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() =>
2839
- S.Struct({}),
2840
- ).annotate({
2580
+ export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2841
2581
  identifier: "DeleteAppCertificateResponse",
2842
2582
  }) as any as S.Schema<DeleteAppCertificateResponse>;
2843
2583
 
@@ -2862,19 +2602,16 @@ export const DeleteAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() =>
2862
2602
  identifier: "DeleteAppCustomCertificateRequest",
2863
2603
  }) as any as S.Schema<DeleteAppCustomCertificateRequest>;
2864
2604
 
2865
- export type DestroyCustomCertificateResponseCertificatesList =
2866
- Array<CertificateEntry>;
2867
- export const DestroyCustomCertificateResponseCertificatesList =
2868
- /*@__PURE__*/ S.Array(
2869
- CertificateEntry,
2870
- ) as any as S.Schema<DestroyCustomCertificateResponseCertificatesList>;
2605
+ export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
2606
+ export const DestroyCustomCertificateResponseCertificatesList = /*@__PURE__*/ S.Array(
2607
+ CertificateEntry,
2608
+ ) as any as S.Schema<DestroyCustomCertificateResponseCertificatesList>;
2871
2609
 
2872
2610
  export type DestroyCustomCertificateResponseValidationErrorsList =
2873
2611
  Array<CertificateValidationError>;
2874
- export const DestroyCustomCertificateResponseValidationErrorsList =
2875
- /*@__PURE__*/ S.Array(
2876
- CertificateValidationError,
2877
- ) as any as S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
2612
+ export const DestroyCustomCertificateResponseValidationErrorsList = /*@__PURE__*/ S.Array(
2613
+ CertificateValidationError,
2614
+ ) as any as S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
2878
2615
 
2879
2616
  export interface DestroyCustomCertificateResponse {
2880
2617
  acme_requested?: boolean;
@@ -2900,9 +2637,7 @@ export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() =>
2900
2637
  rate_limited_until: S.optional(S.String),
2901
2638
  status: S.optional(S.String),
2902
2639
  validation: S.optional(CertificateValidation),
2903
- validation_errors: S.optional(
2904
- DestroyCustomCertificateResponseValidationErrorsList,
2905
- ),
2640
+ validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
2906
2641
  warning: S.optional(S.String),
2907
2642
  }),
2908
2643
  ).annotate({
@@ -2919,21 +2654,13 @@ export const DeleteAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() =>
2919
2654
  S.Struct({
2920
2655
  app_name: S.String.pipe(T.Label()),
2921
2656
  ip: S.String.pipe(T.Label()),
2922
- }).pipe(
2923
- T.Http({
2924
- method: "DELETE",
2925
- uri: "/v1/apps/{app_name}/ip_assignments/{ip}",
2926
- code: 200,
2927
- }),
2928
- ),
2657
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/ip_assignments/{ip}", code: 200 })),
2929
2658
  ).annotate({
2930
2659
  identifier: "DeleteAppIPAssignmentRequest",
2931
2660
  }) as any as S.Schema<DeleteAppIPAssignmentRequest>;
2932
2661
 
2933
2662
  export interface DeleteAppIPAssignmentResponse {}
2934
- export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() =>
2935
- S.Struct({}),
2936
- ).annotate({
2663
+ export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2937
2664
  identifier: "DeleteAppIPAssignmentResponse",
2938
2665
  }) as any as S.Schema<DeleteAppIPAssignmentResponse>;
2939
2666
 
@@ -2953,20 +2680,12 @@ export const DeleteMachineRequest = /*@__PURE__*/ S.suspend(() =>
2953
2680
  force: S.optional(S.Boolean.pipe(T.Query())),
2954
2681
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
2955
2682
  }).pipe(
2956
- T.Http({
2957
- method: "DELETE",
2958
- uri: "/v1/apps/{app_name}/machines/{machine_id}",
2959
- code: 200,
2960
- }),
2683
+ T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 }),
2961
2684
  ),
2962
- ).annotate({
2963
- identifier: "DeleteMachineRequest",
2964
- }) as any as S.Schema<DeleteMachineRequest>;
2685
+ ).annotate({ identifier: "DeleteMachineRequest" }) as any as S.Schema<DeleteMachineRequest>;
2965
2686
 
2966
2687
  export interface DeleteMachineResponse {}
2967
- export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() =>
2968
- S.Struct({}),
2969
- ).annotate({
2688
+ export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2970
2689
  identifier: "DeleteMachineResponse",
2971
2690
  }) as any as S.Schema<DeleteMachineResponse>;
2972
2691
 
@@ -2995,9 +2714,7 @@ export const DeleteMachineMetadataRequest = /*@__PURE__*/ S.suspend(() =>
2995
2714
  }) as any as S.Schema<DeleteMachineMetadataRequest>;
2996
2715
 
2997
2716
  export interface DeleteMachineMetadataResponse {}
2998
- export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() =>
2999
- S.Struct({}),
3000
- ).annotate({
2717
+ export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3001
2718
  identifier: "DeleteMachineMetadataResponse",
3002
2719
  }) as any as S.Schema<DeleteMachineMetadataResponse>;
3003
2720
 
@@ -3008,21 +2725,11 @@ export interface DeletePostgresRequest {
3008
2725
  export const DeletePostgresRequest = /*@__PURE__*/ S.suspend(() =>
3009
2726
  S.Struct({
3010
2727
  postgres_cluster_id: S.String.pipe(T.Label()),
3011
- }).pipe(
3012
- T.Http({
3013
- method: "DELETE",
3014
- uri: "/v1/postgres/{postgres_cluster_id}",
3015
- code: 200,
3016
- }),
3017
- ),
3018
- ).annotate({
3019
- identifier: "DeletePostgresRequest",
3020
- }) as any as S.Schema<DeletePostgresRequest>;
2728
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/postgres/{postgres_cluster_id}", code: 200 })),
2729
+ ).annotate({ identifier: "DeletePostgresRequest" }) as any as S.Schema<DeletePostgresRequest>;
3021
2730
 
3022
2731
  export interface DeletePostgresResponse {}
3023
- export const DeletePostgresResponse = /*@__PURE__*/ S.suspend(() =>
3024
- S.Struct({}),
3025
- ).annotate({
2732
+ export const DeletePostgresResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3026
2733
  identifier: "DeletePostgresResponse",
3027
2734
  }) as any as S.Schema<DeletePostgresResponse>;
3028
2735
 
@@ -3097,9 +2804,7 @@ export const DeletePostgresUserRequest = /*@__PURE__*/ S.suspend(() =>
3097
2804
  }) as any as S.Schema<DeletePostgresUserRequest>;
3098
2805
 
3099
2806
  export interface DeletePostgresUserResponse {}
3100
- export const DeletePostgresUserResponse = /*@__PURE__*/ S.suspend(() =>
3101
- S.Struct({}),
3102
- ).annotate({
2807
+ export const DeletePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3103
2808
  identifier: "DeletePostgresUserResponse",
3104
2809
  }) as any as S.Schema<DeletePostgresUserResponse>;
3105
2810
 
@@ -3114,15 +2819,9 @@ export const DeleteSecretRequest = /*@__PURE__*/ S.suspend(() =>
3114
2819
  app_name: S.String.pipe(T.Label()),
3115
2820
  secret_name: S.String.pipe(T.Label()),
3116
2821
  }).pipe(
3117
- T.Http({
3118
- method: "DELETE",
3119
- uri: "/v1/apps/{app_name}/secrets/{secret_name}",
3120
- code: 200,
3121
- }),
2822
+ T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 }),
3122
2823
  ),
3123
- ).annotate({
3124
- identifier: "DeleteSecretRequest",
3125
- }) as any as S.Schema<DeleteSecretRequest>;
2824
+ ).annotate({ identifier: "DeleteSecretRequest" }) as any as S.Schema<DeleteSecretRequest>;
3126
2825
 
3127
2826
  export interface DeleteAppSecretResponse {
3128
2827
  /** DEPRECATED */
@@ -3134,9 +2833,7 @@ export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() =>
3134
2833
  Version: S.optional(S.Number),
3135
2834
  version: S.optional(S.Number),
3136
2835
  }),
3137
- ).annotate({
3138
- identifier: "DeleteAppSecretResponse",
3139
- }) as any as S.Schema<DeleteAppSecretResponse>;
2836
+ ).annotate({ identifier: "DeleteAppSecretResponse" }) as any as S.Schema<DeleteAppSecretResponse>;
3140
2837
 
3141
2838
  export interface DeleteSecretKeyRequest {
3142
2839
  /** Fly App Name */
@@ -3149,15 +2846,9 @@ export const DeleteSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
3149
2846
  app_name: S.String.pipe(T.Label()),
3150
2847
  secret_name: S.String.pipe(T.Label()),
3151
2848
  }).pipe(
3152
- T.Http({
3153
- method: "DELETE",
3154
- uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
3155
- code: 200,
3156
- }),
2849
+ T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }),
3157
2850
  ),
3158
- ).annotate({
3159
- identifier: "DeleteSecretKeyRequest",
3160
- }) as any as S.Schema<DeleteSecretKeyRequest>;
2851
+ ).annotate({ identifier: "DeleteSecretKeyRequest" }) as any as S.Schema<DeleteSecretKeyRequest>;
3161
2852
 
3162
2853
  export interface DeleteSecretkeyResponse {
3163
2854
  /** DEPRECATED */
@@ -3169,9 +2860,7 @@ export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() =>
3169
2860
  Version: S.optional(S.Number),
3170
2861
  version: S.optional(S.Number),
3171
2862
  }),
3172
- ).annotate({
3173
- identifier: "DeleteSecretkeyResponse",
3174
- }) as any as S.Schema<DeleteSecretkeyResponse>;
2863
+ ).annotate({ identifier: "DeleteSecretkeyResponse" }) as any as S.Schema<DeleteSecretkeyResponse>;
3175
2864
 
3176
2865
  export interface DeleteVolumeRequest {
3177
2866
  /** Fly App Name */
@@ -3183,16 +2872,8 @@ export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() =>
3183
2872
  S.Struct({
3184
2873
  app_name: S.String.pipe(T.Label()),
3185
2874
  volume_id: S.String.pipe(T.Label()),
3186
- }).pipe(
3187
- T.Http({
3188
- method: "DELETE",
3189
- uri: "/v1/apps/{app_name}/volumes/{volume_id}",
3190
- code: 200,
3191
- }),
3192
- ),
3193
- ).annotate({
3194
- identifier: "DeleteVolumeRequest",
3195
- }) as any as S.Schema<DeleteVolumeRequest>;
2875
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 })),
2876
+ ).annotate({ identifier: "DeleteVolumeRequest" }) as any as S.Schema<DeleteVolumeRequest>;
3196
2877
 
3197
2878
  export interface DisablePostgresExtensionRequest {
3198
2879
  /** Managed Postgres Cluster ID */
@@ -3259,11 +2940,9 @@ export const EnablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() =>
3259
2940
  }) as any as S.Schema<EnablePostgresExtensionRequest>;
3260
2941
 
3261
2942
  export interface EnablePostgresExtensionResponse {}
3262
- export const EnablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() =>
3263
- S.Struct({}),
3264
- ).annotate({
3265
- identifier: "EnablePostgresExtensionResponse",
3266
- }) as any as S.Schema<EnablePostgresExtensionResponse>;
2943
+ export const EnablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
2944
+ { identifier: "EnablePostgresExtensionResponse" },
2945
+ ) as any as S.Schema<EnablePostgresExtensionResponse>;
3267
2946
 
3268
2947
  export interface EncryptSecretKeyRequest {
3269
2948
  /** Fly App Name */
@@ -3289,9 +2968,7 @@ export const EncryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
3289
2968
  code: 200,
3290
2969
  }),
3291
2970
  ),
3292
- ).annotate({
3293
- identifier: "EncryptSecretKeyRequest",
3294
- }) as any as S.Schema<EncryptSecretKeyRequest>;
2971
+ ).annotate({ identifier: "EncryptSecretKeyRequest" }) as any as S.Schema<EncryptSecretKeyRequest>;
3295
2972
 
3296
2973
  export interface EncryptSecretkeyResponse {
3297
2974
  ciphertext?: string;
@@ -3300,9 +2977,7 @@ export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() =>
3300
2977
  S.Struct({
3301
2978
  ciphertext: S.optional(S.String),
3302
2979
  }),
3303
- ).annotate({
3304
- identifier: "EncryptSecretkeyResponse",
3305
- }) as any as S.Schema<EncryptSecretkeyResponse>;
2980
+ ).annotate({ identifier: "EncryptSecretkeyResponse" }) as any as S.Schema<EncryptSecretkeyResponse>;
3306
2981
 
3307
2982
  export type ExecMachineRequestCommandList = Array<string>;
3308
2983
  export const ExecMachineRequestCommandList = /*@__PURE__*/ S.Array(
@@ -3334,15 +3009,9 @@ export const ExecMachineRequest = /*@__PURE__*/ S.suspend(() =>
3334
3009
  stdin: S.optional(S.String),
3335
3010
  timeout: S.optional(S.Number),
3336
3011
  }).pipe(
3337
- T.Http({
3338
- method: "POST",
3339
- uri: "/v1/apps/{app_name}/machines/{machine_id}/exec",
3340
- code: 200,
3341
- }),
3012
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/exec", code: 200 }),
3342
3013
  ),
3343
- ).annotate({
3344
- identifier: "ExecMachineRequest",
3345
- }) as any as S.Schema<ExecMachineRequest>;
3014
+ ).annotate({ identifier: "ExecMachineRequest" }) as any as S.Schema<ExecMachineRequest>;
3346
3015
 
3347
3016
  export interface Flydv1ExecResponse {
3348
3017
  exit_code?: number;
@@ -3357,9 +3026,7 @@ export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() =>
3357
3026
  stderr: S.optional(S.String),
3358
3027
  stdout: S.optional(S.String),
3359
3028
  }),
3360
- ).annotate({
3361
- identifier: "Flydv1ExecResponse",
3362
- }) as any as S.Schema<Flydv1ExecResponse>;
3029
+ ).annotate({ identifier: "Flydv1ExecResponse" }) as any as S.Schema<Flydv1ExecResponse>;
3363
3030
 
3364
3031
  export interface ExtendVolumeRequest {
3365
3032
  /** Fly App Name */
@@ -3374,15 +3041,9 @@ export const ExtendVolumeRequest = /*@__PURE__*/ S.suspend(() =>
3374
3041
  volume_id: S.String.pipe(T.Label()),
3375
3042
  size_gb: S.optional(S.Number),
3376
3043
  }).pipe(
3377
- T.Http({
3378
- method: "PUT",
3379
- uri: "/v1/apps/{app_name}/volumes/{volume_id}/extend",
3380
- code: 200,
3381
- }),
3044
+ T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/volumes/{volume_id}/extend", code: 200 }),
3382
3045
  ),
3383
- ).annotate({
3384
- identifier: "ExtendVolumeRequest",
3385
- }) as any as S.Schema<ExtendVolumeRequest>;
3046
+ ).annotate({ identifier: "ExtendVolumeRequest" }) as any as S.Schema<ExtendVolumeRequest>;
3386
3047
 
3387
3048
  export interface ExtendVolumeResponse {
3388
3049
  needs_restart?: boolean;
@@ -3393,9 +3054,7 @@ export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() =>
3393
3054
  needs_restart: S.optional(S.Boolean),
3394
3055
  volume: S.optional(Volume),
3395
3056
  }),
3396
- ).annotate({
3397
- identifier: "ExtendVolumeResponse",
3398
- }) as any as S.Schema<ExtendVolumeResponse>;
3057
+ ).annotate({ identifier: "ExtendVolumeResponse" }) as any as S.Schema<ExtendVolumeResponse>;
3399
3058
 
3400
3059
  export interface ForkPostgresRequest {
3401
3060
  /** Managed Postgres Cluster ID */
@@ -3407,16 +3066,8 @@ export const ForkPostgresRequest = /*@__PURE__*/ S.suspend(() =>
3407
3066
  S.Struct({
3408
3067
  postgres_cluster_id: S.String.pipe(T.Label()),
3409
3068
  name: S.optional(S.String),
3410
- }).pipe(
3411
- T.Http({
3412
- method: "POST",
3413
- uri: "/v1/postgres/{postgres_cluster_id}/fork",
3414
- code: 200,
3415
- }),
3416
- ),
3417
- ).annotate({
3418
- identifier: "ForkPostgresRequest",
3419
- }) as any as S.Schema<ForkPostgresRequest>;
3069
+ }).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/fork", code: 200 })),
3070
+ ).annotate({ identifier: "ForkPostgresRequest" }) as any as S.Schema<ForkPostgresRequest>;
3420
3071
 
3421
3072
  export type GenerateSecretKeyRequestValueList = Array<number>;
3422
3073
  export const GenerateSecretKeyRequestValueList = /*@__PURE__*/ S.Array(
@@ -3444,9 +3095,7 @@ export const GenerateSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
3444
3095
  code: 200,
3445
3096
  }),
3446
3097
  ),
3447
- ).annotate({
3448
- identifier: "GenerateSecretKeyRequest",
3449
- }) as any as S.Schema<GenerateSecretKeyRequest>;
3098
+ ).annotate({ identifier: "GenerateSecretKeyRequest" }) as any as S.Schema<GenerateSecretKeyRequest>;
3450
3099
 
3451
3100
  export interface SetSecretkeyResponse {
3452
3101
  /** DEPRECATED */
@@ -3468,9 +3117,7 @@ export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() =>
3468
3117
  updated_at: S.optional(S.String),
3469
3118
  version: S.optional(S.Number),
3470
3119
  }),
3471
- ).annotate({
3472
- identifier: "SetSecretkeyResponse",
3473
- }) as any as S.Schema<SetSecretkeyResponse>;
3120
+ ).annotate({ identifier: "SetSecretkeyResponse" }) as any as S.Schema<SetSecretkeyResponse>;
3474
3121
 
3475
3122
  export interface GetAppRequest {
3476
3123
  /** Fly App Name */
@@ -3493,9 +3140,7 @@ export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() =>
3493
3140
  name: S.optional(S.String),
3494
3141
  slug: S.optional(S.String),
3495
3142
  }),
3496
- ).annotate({
3497
- identifier: "AppOrganizationInfo",
3498
- }) as any as S.Schema<AppOrganizationInfo>;
3143
+ ).annotate({ identifier: "AppOrganizationInfo" }) as any as S.Schema<AppOrganizationInfo>;
3499
3144
 
3500
3145
  export interface App {
3501
3146
  id?: string;
@@ -3532,25 +3177,13 @@ export const GetAppCertificateRequest = /*@__PURE__*/ S.suspend(() =>
3532
3177
  S.Struct({
3533
3178
  app_name: S.String.pipe(T.Label()),
3534
3179
  hostname: S.String.pipe(T.Label()),
3535
- }).pipe(
3536
- T.Http({
3537
- method: "GET",
3538
- uri: "/v1/apps/{app_name}/certificates/{hostname}",
3539
- code: 200,
3540
- }),
3541
- ),
3542
- ).annotate({
3543
- identifier: "GetAppCertificateRequest",
3544
- }) as any as S.Schema<GetAppCertificateRequest>;
3180
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/certificates/{hostname}", code: 200 })),
3181
+ ).annotate({ identifier: "GetAppCertificateRequest" }) as any as S.Schema<GetAppCertificateRequest>;
3545
3182
 
3546
3183
  export interface GetCurrentTokenRequest {}
3547
3184
  export const GetCurrentTokenRequest = /*@__PURE__*/ S.suspend(() =>
3548
- S.Struct({}).pipe(
3549
- T.Http({ method: "GET", uri: "/v1/tokens/current", code: 200 }),
3550
- ),
3551
- ).annotate({
3552
- identifier: "GetCurrentTokenRequest",
3553
- }) as any as S.Schema<GetCurrentTokenRequest>;
3185
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/tokens/current", code: 200 })),
3186
+ ).annotate({ identifier: "GetCurrentTokenRequest" }) as any as S.Schema<GetCurrentTokenRequest>;
3554
3187
 
3555
3188
  export type MainTokenInfoAppsList = Array<string>;
3556
3189
  export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(
@@ -3593,9 +3226,7 @@ export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() =>
3593
3226
  S.Struct({
3594
3227
  tokens: S.optional(CurrentTokenResponseTokensList),
3595
3228
  }),
3596
- ).annotate({
3597
- identifier: "CurrentTokenResponse",
3598
- }) as any as S.Schema<CurrentTokenResponse>;
3229
+ ).annotate({ identifier: "CurrentTokenResponse" }) as any as S.Schema<CurrentTokenResponse>;
3599
3230
 
3600
3231
  export interface GetMachineRequest {
3601
3232
  /** Fly App Name */
@@ -3613,16 +3244,8 @@ export const GetMachineRequest = /*@__PURE__*/ S.suspend(() =>
3613
3244
  machine_id: S.String.pipe(T.Label()),
3614
3245
  version: S.optional(S.String.pipe(T.Query())),
3615
3246
  include_leases: S.optional(S.Boolean.pipe(T.Query())),
3616
- }).pipe(
3617
- T.Http({
3618
- method: "GET",
3619
- uri: "/v1/apps/{app_name}/machines/{machine_id}",
3620
- code: 200,
3621
- }),
3622
- ),
3623
- ).annotate({
3624
- identifier: "GetMachineRequest",
3625
- }) as any as S.Schema<GetMachineRequest>;
3247
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 })),
3248
+ ).annotate({ identifier: "GetMachineRequest" }) as any as S.Schema<GetMachineRequest>;
3626
3249
 
3627
3250
  export interface GetMachineLeaseRequest {
3628
3251
  /** Fly App Name */
@@ -3635,15 +3258,9 @@ export const GetMachineLeaseRequest = /*@__PURE__*/ S.suspend(() =>
3635
3258
  app_name: S.String.pipe(T.Label()),
3636
3259
  machine_id: S.String.pipe(T.Label()),
3637
3260
  }).pipe(
3638
- T.Http({
3639
- method: "GET",
3640
- uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
3641
- code: 200,
3642
- }),
3261
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }),
3643
3262
  ),
3644
- ).annotate({
3645
- identifier: "GetMachineLeaseRequest",
3646
- }) as any as S.Schema<GetMachineLeaseRequest>;
3263
+ ).annotate({ identifier: "GetMachineLeaseRequest" }) as any as S.Schema<GetMachineLeaseRequest>;
3647
3264
 
3648
3265
  export interface GetMachineMemoryRequest {
3649
3266
  /** Fly App Name */
@@ -3656,15 +3273,9 @@ export const GetMachineMemoryRequest = /*@__PURE__*/ S.suspend(() =>
3656
3273
  app_name: S.String.pipe(T.Label()),
3657
3274
  machine_id: S.String.pipe(T.Label()),
3658
3275
  }).pipe(
3659
- T.Http({
3660
- method: "GET",
3661
- uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
3662
- code: 200,
3663
- }),
3276
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/memory", code: 200 }),
3664
3277
  ),
3665
- ).annotate({
3666
- identifier: "GetMachineMemoryRequest",
3667
- }) as any as S.Schema<GetMachineMemoryRequest>;
3278
+ ).annotate({ identifier: "GetMachineMemoryRequest" }) as any as S.Schema<GetMachineMemoryRequest>;
3668
3279
 
3669
3280
  export interface MainMemoryResponse {
3670
3281
  available_mb?: number;
@@ -3675,9 +3286,7 @@ export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() =>
3675
3286
  available_mb: S.optional(S.Number),
3676
3287
  limit_mb: S.optional(S.Number),
3677
3288
  }),
3678
- ).annotate({
3679
- identifier: "MainMemoryResponse",
3680
- }) as any as S.Schema<MainMemoryResponse>;
3289
+ ).annotate({ identifier: "MainMemoryResponse" }) as any as S.Schema<MainMemoryResponse>;
3681
3290
 
3682
3291
  export interface GetMachineMetadataRequest {
3683
3292
  /** Fly App Name */
@@ -3690,19 +3299,13 @@ export const GetMachineMetadataRequest = /*@__PURE__*/ S.suspend(() =>
3690
3299
  app_name: S.String.pipe(T.Label()),
3691
3300
  machine_id: S.String.pipe(T.Label()),
3692
3301
  }).pipe(
3693
- T.Http({
3694
- method: "GET",
3695
- uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
3696
- code: 200,
3697
- }),
3302
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata", code: 200 }),
3698
3303
  ),
3699
3304
  ).annotate({
3700
3305
  identifier: "GetMachineMetadataRequest",
3701
3306
  }) as any as S.Schema<GetMachineMetadataRequest>;
3702
3307
 
3703
- export type GetMachineMetadataResponseBodyMap = {
3704
- [key: string]: string | undefined;
3705
- };
3308
+ export type GetMachineMetadataResponseBodyMap = { [key: string]: string | undefined };
3706
3309
  export const GetMachineMetadataResponseBodyMap = /*@__PURE__*/ S.Record(
3707
3310
  S.String,
3708
3311
  S.String,
@@ -3746,9 +3349,7 @@ export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() =>
3746
3349
  S.Struct({
3747
3350
  value: S.optional(S.String),
3748
3351
  }),
3749
- ).annotate({
3750
- identifier: "MetadataValueResponse",
3751
- }) as any as S.Schema<MetadataValueResponse>;
3352
+ ).annotate({ identifier: "MetadataValueResponse" }) as any as S.Schema<MetadataValueResponse>;
3752
3353
 
3753
3354
  export type PlacementWeights = { [key: string]: number | undefined };
3754
3355
  export const PlacementWeights = /*@__PURE__*/ S.Record(
@@ -3778,12 +3379,8 @@ export const GetPlacementsRequest = /*@__PURE__*/ S.suspend(() =>
3778
3379
  volume_name: S.optional(S.String),
3779
3380
  volume_size_bytes: S.optional(S.Number),
3780
3381
  weights: S.optional(PlacementWeights),
3781
- }).pipe(
3782
- T.Http({ method: "POST", uri: "/v1/platform/placements", code: 200 }),
3783
- ),
3784
- ).annotate({
3785
- identifier: "GetPlacementsRequest",
3786
- }) as any as S.Schema<GetPlacementsRequest>;
3382
+ }).pipe(T.Http({ method: "POST", uri: "/v1/platform/placements", code: 200 })),
3383
+ ).annotate({ identifier: "GetPlacementsRequest" }) as any as S.Schema<GetPlacementsRequest>;
3787
3384
 
3788
3385
  export interface PlacementRegionPlacement {
3789
3386
  concurrency?: number;
@@ -3796,12 +3393,9 @@ export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() =>
3796
3393
  count: S.optional(S.Number),
3797
3394
  region: S.optional(S.String),
3798
3395
  }),
3799
- ).annotate({
3800
- identifier: "PlacementRegionPlacement",
3801
- }) as any as S.Schema<PlacementRegionPlacement>;
3396
+ ).annotate({ identifier: "PlacementRegionPlacement" }) as any as S.Schema<PlacementRegionPlacement>;
3802
3397
 
3803
- export type MainGetPlacementsResponseRegionsList =
3804
- Array<PlacementRegionPlacement>;
3398
+ export type MainGetPlacementsResponseRegionsList = Array<PlacementRegionPlacement>;
3805
3399
  export const MainGetPlacementsResponseRegionsList = /*@__PURE__*/ S.Array(
3806
3400
  PlacementRegionPlacement,
3807
3401
  ) as any as S.Schema<MainGetPlacementsResponseRegionsList>;
@@ -3824,25 +3418,13 @@ export interface GetPostgresRequest {
3824
3418
  export const GetPostgresRequest = /*@__PURE__*/ S.suspend(() =>
3825
3419
  S.Struct({
3826
3420
  postgres_cluster_id: S.String.pipe(T.Label()),
3827
- }).pipe(
3828
- T.Http({
3829
- method: "GET",
3830
- uri: "/v1/postgres/{postgres_cluster_id}",
3831
- code: 200,
3832
- }),
3833
- ),
3834
- ).annotate({
3835
- identifier: "GetPostgresRequest",
3836
- }) as any as S.Schema<GetPostgresRequest>;
3421
+ }).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}", code: 200 })),
3422
+ ).annotate({ identifier: "GetPostgresRequest" }) as any as S.Schema<GetPostgresRequest>;
3837
3423
 
3838
3424
  export interface GetRegionsRequest {}
3839
3425
  export const GetRegionsRequest = /*@__PURE__*/ S.suspend(() =>
3840
- S.Struct({}).pipe(
3841
- T.Http({ method: "GET", uri: "/v1/platform/regions", code: 200 }),
3842
- ),
3843
- ).annotate({
3844
- identifier: "GetRegionsRequest",
3845
- }) as any as S.Schema<GetRegionsRequest>;
3426
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/platform/regions", code: 200 })),
3427
+ ).annotate({ identifier: "GetRegionsRequest" }) as any as S.Schema<GetRegionsRequest>;
3846
3428
 
3847
3429
  export interface MainRegionRow {
3848
3430
  code?: string;
@@ -3883,9 +3465,7 @@ export const MainRegionResponse = /*@__PURE__*/ S.suspend(() =>
3883
3465
  nearest: S.optional(S.String),
3884
3466
  regions: S.optional(MainRegionResponseRegionsList),
3885
3467
  }),
3886
- ).annotate({
3887
- identifier: "MainRegionResponse",
3888
- }) as any as S.Schema<MainRegionResponse>;
3468
+ ).annotate({ identifier: "MainRegionResponse" }) as any as S.Schema<MainRegionResponse>;
3889
3469
 
3890
3470
  export interface GetSecretRequest {
3891
3471
  /** Fly App Name */
@@ -3903,16 +3483,8 @@ export const GetSecretRequest = /*@__PURE__*/ S.suspend(() =>
3903
3483
  secret_name: S.String.pipe(T.Label()),
3904
3484
  min_version: S.optional(S.String.pipe(T.Query())),
3905
3485
  show_secrets: S.optional(S.Boolean.pipe(T.Query())),
3906
- }).pipe(
3907
- T.Http({
3908
- method: "GET",
3909
- uri: "/v1/apps/{app_name}/secrets/{secret_name}",
3910
- code: 200,
3911
- }),
3912
- ),
3913
- ).annotate({
3914
- identifier: "GetSecretRequest",
3915
- }) as any as S.Schema<GetSecretRequest>;
3486
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets/{secret_name}", code: 200 })),
3487
+ ).annotate({ identifier: "GetSecretRequest" }) as any as S.Schema<GetSecretRequest>;
3916
3488
 
3917
3489
  export interface AppSecret {
3918
3490
  created_at?: string;
@@ -3945,15 +3517,9 @@ export const GetSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
3945
3517
  secret_name: S.String.pipe(T.Label()),
3946
3518
  min_version: S.optional(S.String.pipe(T.Query())),
3947
3519
  }).pipe(
3948
- T.Http({
3949
- method: "GET",
3950
- uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
3951
- code: 200,
3952
- }),
3520
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }),
3953
3521
  ),
3954
- ).annotate({
3955
- identifier: "GetSecretKeyRequest",
3956
- }) as any as S.Schema<GetSecretKeyRequest>;
3522
+ ).annotate({ identifier: "GetSecretKeyRequest" }) as any as S.Schema<GetSecretKeyRequest>;
3957
3523
 
3958
3524
  export interface SecretKey {
3959
3525
  created_at?: string;
@@ -3982,16 +3548,8 @@ export const GetVolumeByIdRequest = /*@__PURE__*/ S.suspend(() =>
3982
3548
  S.Struct({
3983
3549
  app_name: S.String.pipe(T.Label()),
3984
3550
  volume_id: S.String.pipe(T.Label()),
3985
- }).pipe(
3986
- T.Http({
3987
- method: "GET",
3988
- uri: "/v1/apps/{app_name}/volumes/{volume_id}",
3989
- code: 200,
3990
- }),
3991
- ),
3992
- ).annotate({
3993
- identifier: "GetVolumeByIdRequest",
3994
- }) as any as S.Schema<GetVolumeByIdRequest>;
3551
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 })),
3552
+ ).annotate({ identifier: "GetVolumeByIdRequest" }) as any as S.Schema<GetVolumeByIdRequest>;
3995
3553
 
3996
3554
  export interface ListAppCertificatesRequest {
3997
3555
  /** Fly App Name */
@@ -4009,13 +3567,7 @@ export const ListAppCertificatesRequest = /*@__PURE__*/ S.suspend(() =>
4009
3567
  filter: S.optional(S.String.pipe(T.Query())),
4010
3568
  cursor: S.optional(S.String.pipe(T.Query())),
4011
3569
  limit: S.optional(S.Number.pipe(T.Query())),
4012
- }).pipe(
4013
- T.Http({
4014
- method: "GET",
4015
- uri: "/v1/apps/{app_name}/certificates",
4016
- code: 200,
4017
- }),
4018
- ),
3570
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/certificates", code: 200 })),
4019
3571
  ).annotate({
4020
3572
  identifier: "ListAppCertificatesRequest",
4021
3573
  }) as any as S.Schema<ListAppCertificatesRequest>;
@@ -4051,12 +3603,9 @@ export const CertificateSummary = /*@__PURE__*/ S.suspend(() =>
4051
3603
  status: S.optional(S.String),
4052
3604
  updated_at: S.optional(S.String),
4053
3605
  }),
4054
- ).annotate({
4055
- identifier: "CertificateSummary",
4056
- }) as any as S.Schema<CertificateSummary>;
3606
+ ).annotate({ identifier: "CertificateSummary" }) as any as S.Schema<CertificateSummary>;
4057
3607
 
4058
- export type ListCertificatesResponseCertificatesList =
4059
- Array<CertificateSummary>;
3608
+ export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
4060
3609
  export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(
4061
3610
  CertificateSummary,
4062
3611
  ) as any as S.Schema<ListCertificatesResponseCertificatesList>;
@@ -4072,9 +3621,7 @@ export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() =>
4072
3621
  next_cursor: S.optional(S.String),
4073
3622
  total_count: S.optional(S.Number),
4074
3623
  }),
4075
- ).annotate({
4076
- identifier: "ListCertificatesResponse",
4077
- }) as any as S.Schema<ListCertificatesResponse>;
3624
+ ).annotate({ identifier: "ListCertificatesResponse" }) as any as S.Schema<ListCertificatesResponse>;
4078
3625
 
4079
3626
  export interface ListAppIPAssignmentsRequest {
4080
3627
  /** Fly App Name */
@@ -4083,13 +3630,7 @@ export interface ListAppIPAssignmentsRequest {
4083
3630
  export const ListAppIPAssignmentsRequest = /*@__PURE__*/ S.suspend(() =>
4084
3631
  S.Struct({
4085
3632
  app_name: S.String.pipe(T.Label()),
4086
- }).pipe(
4087
- T.Http({
4088
- method: "GET",
4089
- uri: "/v1/apps/{app_name}/ip_assignments",
4090
- code: 200,
4091
- }),
4092
- ),
3633
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/ip_assignments", code: 200 })),
4093
3634
  ).annotate({
4094
3635
  identifier: "ListAppIPAssignmentsRequest",
4095
3636
  }) as any as S.Schema<ListAppIPAssignmentsRequest>;
@@ -4138,15 +3679,19 @@ export interface ListAppsRequest {
4138
3679
  org_slug: string;
4139
3680
  /** Filter apps by role */
4140
3681
  app_role?: string;
3682
+ /** The number of apps to fetch (must be between 1 and 5000). Providing a limit enables pagination. Without it, all apps are returned in one response. */
3683
+ limit?: number;
3684
+ /** Value of next_cursor from the previous page. Requires limit. Later pages only include apps that existed when the first page was requested. Apps created in the seconds before the first page was requested may be missing. Cursors expire 30 minutes after the first page was requested. */
3685
+ cursor?: string;
4141
3686
  }
4142
3687
  export const ListAppsRequest = /*@__PURE__*/ S.suspend(() =>
4143
3688
  S.Struct({
4144
3689
  org_slug: S.String.pipe(T.Query()),
4145
3690
  app_role: S.optional(S.String.pipe(T.Query())),
3691
+ limit: S.optional(S.Number.pipe(T.Query())),
3692
+ cursor: S.optional(S.String.pipe(T.Query())),
4146
3693
  }).pipe(T.Http({ method: "GET", uri: "/v1/apps", code: 200 })),
4147
- ).annotate({
4148
- identifier: "ListAppsRequest",
4149
- }) as any as S.Schema<ListAppsRequest>;
3694
+ ).annotate({ identifier: "ListAppsRequest" }) as any as S.Schema<ListAppsRequest>;
4150
3695
 
4151
3696
  export type ListAppsResponseAppsList = Array<App>;
4152
3697
  export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(
@@ -4155,16 +3700,18 @@ export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(
4155
3700
 
4156
3701
  export interface ListAppsResponse {
4157
3702
  apps?: ListAppsResponseAppsList;
3703
+ /** Pagination cursor for the next page. Absent when no more apps remain. Cursors expire 30 minutes after the first page was requested. */
3704
+ next_cursor?: string;
3705
+ /** The number of apps matching the request, across all pages. When paginating, it is counted once when the first page is requested and not updated afterwards, so it may differ slightly from the number of apps returned: it excludes apps created later and includes apps deleted while paginating. Apps created in the seconds before the first page may also be counted but missing from the pages. */
4158
3706
  total_apps?: number;
4159
3707
  }
4160
3708
  export const ListAppsResponse = /*@__PURE__*/ S.suspend(() =>
4161
3709
  S.Struct({
4162
3710
  apps: S.optional(ListAppsResponseAppsList),
3711
+ next_cursor: S.optional(S.String),
4163
3712
  total_apps: S.optional(S.Number),
4164
3713
  }),
4165
- ).annotate({
4166
- identifier: "ListAppsResponse",
4167
- }) as any as S.Schema<ListAppsResponse>;
3714
+ ).annotate({ identifier: "ListAppsResponse" }) as any as S.Schema<ListAppsResponse>;
4168
3715
 
4169
3716
  export interface ListMachineEventsRequest {
4170
3717
  /** Fly App Name */
@@ -4180,15 +3727,9 @@ export const ListMachineEventsRequest = /*@__PURE__*/ S.suspend(() =>
4180
3727
  machine_id: S.String.pipe(T.Label()),
4181
3728
  limit: S.optional(S.Number.pipe(T.Query())),
4182
3729
  }).pipe(
4183
- T.Http({
4184
- method: "GET",
4185
- uri: "/v1/apps/{app_name}/machines/{machine_id}/events",
4186
- code: 200,
4187
- }),
3730
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/events", code: 200 }),
4188
3731
  ),
4189
- ).annotate({
4190
- identifier: "ListMachineEventsRequest",
4191
- }) as any as S.Schema<ListMachineEventsRequest>;
3732
+ ).annotate({ identifier: "ListMachineEventsRequest" }) as any as S.Schema<ListMachineEventsRequest>;
4192
3733
 
4193
3734
  export type ListMachineEventsResponseBodyList = Array<MachineEvent>;
4194
3735
  export const ListMachineEventsResponseBodyList = /*@__PURE__*/ S.Array(
@@ -4219,11 +3760,7 @@ export const ListMachineProcessesRequest = /*@__PURE__*/ S.suspend(() =>
4219
3760
  sort_by: S.optional(S.String.pipe(T.Query())),
4220
3761
  order: S.optional(S.String.pipe(T.Query())),
4221
3762
  }).pipe(
4222
- T.Http({
4223
- method: "GET",
4224
- uri: "/v1/apps/{app_name}/machines/{machine_id}/ps",
4225
- code: 200,
4226
- }),
3763
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/ps", code: 200 }),
4227
3764
  ),
4228
3765
  ).annotate({
4229
3766
  identifier: "ListMachineProcessesRequest",
@@ -4311,12 +3848,8 @@ export const ListMachinesRequest = /*@__PURE__*/ S.suspend(() =>
4311
3848
  metadata__key_: S.optional(S.String.pipe(T.Query("metadata.{key}"))),
4312
3849
  cursor: S.optional(S.String.pipe(T.Query())),
4313
3850
  limit: S.optional(S.Number.pipe(T.Query())),
4314
- }).pipe(
4315
- T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines", code: 200 }),
4316
- ),
4317
- ).annotate({
4318
- identifier: "ListMachinesRequest",
4319
- }) as any as S.Schema<ListMachinesRequest>;
3851
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines", code: 200 })),
3852
+ ).annotate({ identifier: "ListMachinesRequest" }) as any as S.Schema<ListMachinesRequest>;
4320
3853
 
4321
3854
  export type ListMachinesResponseBodyList = Array<Machine>;
4322
3855
  export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(
@@ -4326,9 +3859,7 @@ export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(
4326
3859
  export type ListMachinesResponse = ListMachinesResponseBodyList;
4327
3860
  export const ListMachinesResponse = /*@__PURE__*/ S.suspend(() =>
4328
3861
  ListMachinesResponseBodyList.pipe(T.RawResponseRoot()),
4329
- ).annotate({
4330
- identifier: "ListMachinesResponse",
4331
- }) as any as S.Schema<ListMachinesResponse>;
3862
+ ).annotate({ identifier: "ListMachinesResponse" }) as any as S.Schema<ListMachinesResponse>;
4332
3863
 
4333
3864
  export interface ListMachinesOrgRequest {
4334
3865
  /** Fly Organization Slug */
@@ -4358,21 +3889,15 @@ export const ListMachinesOrgRequest = /*@__PURE__*/ S.suspend(() =>
4358
3889
  updated_after: S.optional(S.String.pipe(T.Query())),
4359
3890
  cursor: S.optional(S.String.pipe(T.Query())),
4360
3891
  limit: S.optional(S.Number.pipe(T.Query())),
4361
- }).pipe(
4362
- T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/machines", code: 200 }),
4363
- ),
4364
- ).annotate({
4365
- identifier: "ListMachinesOrgRequest",
4366
- }) as any as S.Schema<ListMachinesOrgRequest>;
3892
+ }).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/machines", code: 200 })),
3893
+ ).annotate({ identifier: "ListMachinesOrgRequest" }) as any as S.Schema<ListMachinesOrgRequest>;
4367
3894
 
4368
3895
  export type OrgMachinesResponseErrorRegionsList = Array<string>;
4369
3896
  export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(
4370
3897
  S.String,
4371
3898
  ) as any as S.Schema<OrgMachinesResponseErrorRegionsList>;
4372
3899
 
4373
- export type MachineOverviewConfigMetadataMap = {
4374
- [key: string]: string | undefined;
4375
- };
3900
+ export type MachineOverviewConfigMetadataMap = { [key: string]: string | undefined };
4376
3901
  export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(
4377
3902
  S.String,
4378
3903
  S.String,
@@ -4389,9 +3914,7 @@ export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() =>
4389
3914
  image: S.optional(S.String),
4390
3915
  metadata: S.optional(MachineOverviewConfigMetadataMap),
4391
3916
  }),
4392
- ).annotate({
4393
- identifier: "MachineOverviewConfig",
4394
- }) as any as S.Schema<MachineOverviewConfig>;
3917
+ ).annotate({ identifier: "MachineOverviewConfig" }) as any as S.Schema<MachineOverviewConfig>;
4395
3918
 
4396
3919
  export interface OrgMachine {
4397
3920
  app_name?: string;
@@ -4440,9 +3963,7 @@ export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() =>
4440
3963
  machines: S.optional(OrgMachinesResponseMachinesList),
4441
3964
  next_cursor: S.optional(S.String),
4442
3965
  }),
4443
- ).annotate({
4444
- identifier: "OrgMachinesResponse",
4445
- }) as any as S.Schema<OrgMachinesResponse>;
3966
+ ).annotate({ identifier: "OrgMachinesResponse" }) as any as S.Schema<OrgMachinesResponse>;
4446
3967
 
4447
3968
  export interface ListMachineVersionsRequest {
4448
3969
  /** Fly App Name */
@@ -4455,11 +3976,7 @@ export const ListMachineVersionsRequest = /*@__PURE__*/ S.suspend(() =>
4455
3976
  app_name: S.String.pipe(T.Label()),
4456
3977
  machine_id: S.String.pipe(T.Label()),
4457
3978
  }).pipe(
4458
- T.Http({
4459
- method: "GET",
4460
- uri: "/v1/apps/{app_name}/machines/{machine_id}/versions",
4461
- code: 200,
4462
- }),
3979
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/versions", code: 200 }),
4463
3980
  ),
4464
3981
  ).annotate({
4465
3982
  identifier: "ListMachineVersionsRequest",
@@ -4499,9 +4016,7 @@ export const ListPostgresRequest = /*@__PURE__*/ S.suspend(() =>
4499
4016
  org_slug: S.String.pipe(T.Query()),
4500
4017
  include_deleted: S.optional(S.Boolean.pipe(T.Query())),
4501
4018
  }).pipe(T.Http({ method: "GET", uri: "/v1/postgres", code: 200 })),
4502
- ).annotate({
4503
- identifier: "ListPostgresRequest",
4504
- }) as any as S.Schema<ListPostgresRequest>;
4019
+ ).annotate({ identifier: "ListPostgresRequest" }) as any as S.Schema<ListPostgresRequest>;
4505
4020
 
4506
4021
  /** Apps attached to the cluster. */
4507
4022
  export type PostgresClusterSummaryAttachedAppsList = Array<PostgresAttachedApp>;
@@ -4510,12 +4025,7 @@ export const PostgresClusterSummaryAttachedAppsList = /*@__PURE__*/ S.Array(
4510
4025
  ) as any as S.Schema<PostgresClusterSummaryAttachedAppsList>;
4511
4026
 
4512
4027
  /** Plan slug. */
4513
- export type PostgresClusterSummaryPlan =
4514
- | "basic"
4515
- | "starter"
4516
- | "launch"
4517
- | "scale"
4518
- | "Performance";
4028
+ export type PostgresClusterSummaryPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
4519
4029
  export const PostgresClusterSummaryPlan = S.String;
4520
4030
 
4521
4031
  /** Current lifecycle status. */
@@ -4557,12 +4067,9 @@ export const PostgresClusterSummary = /*@__PURE__*/ S.suspend(() =>
4557
4067
  region: S.optional(S.String),
4558
4068
  status: S.optional(PostgresClusterSummaryStatus),
4559
4069
  }),
4560
- ).annotate({
4561
- identifier: "PostgresClusterSummary",
4562
- }) as any as S.Schema<PostgresClusterSummary>;
4070
+ ).annotate({ identifier: "PostgresClusterSummary" }) as any as S.Schema<PostgresClusterSummary>;
4563
4071
 
4564
- export type ListPostgresClustersResponseDataList =
4565
- Array<PostgresClusterSummary>;
4072
+ export type ListPostgresClustersResponseDataList = Array<PostgresClusterSummary>;
4566
4073
  export const ListPostgresClustersResponseDataList = /*@__PURE__*/ S.Array(
4567
4074
  PostgresClusterSummary,
4568
4075
  ) as any as S.Schema<ListPostgresClustersResponseDataList>;
@@ -4585,13 +4092,7 @@ export interface ListPostgresBackupsRequest {
4585
4092
  export const ListPostgresBackupsRequest = /*@__PURE__*/ S.suspend(() =>
4586
4093
  S.Struct({
4587
4094
  postgres_cluster_id: S.String.pipe(T.Label()),
4588
- }).pipe(
4589
- T.Http({
4590
- method: "GET",
4591
- uri: "/v1/postgres/{postgres_cluster_id}/backups",
4592
- code: 200,
4593
- }),
4594
- ),
4095
+ }).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/backups", code: 200 })),
4595
4096
  ).annotate({
4596
4097
  identifier: "ListPostgresBackupsRequest",
4597
4098
  }) as any as S.Schema<ListPostgresBackupsRequest>;
@@ -4649,11 +4150,7 @@ export const ListPostgresDatabasesRequest = /*@__PURE__*/ S.suspend(() =>
4649
4150
  S.Struct({
4650
4151
  postgres_cluster_id: S.String.pipe(T.Label()),
4651
4152
  }).pipe(
4652
- T.Http({
4653
- method: "GET",
4654
- uri: "/v1/postgres/{postgres_cluster_id}/databases",
4655
- code: 200,
4656
- }),
4153
+ T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/databases", code: 200 }),
4657
4154
  ),
4658
4155
  ).annotate({
4659
4156
  identifier: "ListPostgresDatabasesRequest",
@@ -4732,9 +4229,7 @@ export const PostgresExtension = /*@__PURE__*/ S.suspend(() =>
4732
4229
  name: S.optional(S.String),
4733
4230
  system: S.optional(S.Boolean),
4734
4231
  }),
4735
- ).annotate({
4736
- identifier: "PostgresExtension",
4737
- }) as any as S.Schema<PostgresExtension>;
4232
+ ).annotate({ identifier: "PostgresExtension" }) as any as S.Schema<PostgresExtension>;
4738
4233
 
4739
4234
  export type ListPostgresExtensionsResponseDataList = Array<PostgresExtension>;
4740
4235
  export const ListPostgresExtensionsResponseDataList = /*@__PURE__*/ S.Array(
@@ -4759,16 +4254,8 @@ export interface ListPostgresUsersRequest {
4759
4254
  export const ListPostgresUsersRequest = /*@__PURE__*/ S.suspend(() =>
4760
4255
  S.Struct({
4761
4256
  postgres_cluster_id: S.String.pipe(T.Label()),
4762
- }).pipe(
4763
- T.Http({
4764
- method: "GET",
4765
- uri: "/v1/postgres/{postgres_cluster_id}/users",
4766
- code: 200,
4767
- }),
4768
- ),
4769
- ).annotate({
4770
- identifier: "ListPostgresUsersRequest",
4771
- }) as any as S.Schema<ListPostgresUsersRequest>;
4257
+ }).pipe(T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/users", code: 200 })),
4258
+ ).annotate({ identifier: "ListPostgresUsersRequest" }) as any as S.Schema<ListPostgresUsersRequest>;
4772
4259
 
4773
4260
  export type ListPostgresUsersResponseDataList = Array<PostgresUser>;
4774
4261
  export const ListPostgresUsersResponseDataList = /*@__PURE__*/ S.Array(
@@ -4799,12 +4286,8 @@ export const ListSecretKeysRequest = /*@__PURE__*/ S.suspend(() =>
4799
4286
  app_name: S.String.pipe(T.Label()),
4800
4287
  min_version: S.optional(S.String.pipe(T.Query())),
4801
4288
  types: S.optional(S.String.pipe(T.Query())),
4802
- }).pipe(
4803
- T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys", code: 200 }),
4804
- ),
4805
- ).annotate({
4806
- identifier: "ListSecretKeysRequest",
4807
- }) as any as S.Schema<ListSecretKeysRequest>;
4289
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys", code: 200 })),
4290
+ ).annotate({ identifier: "ListSecretKeysRequest" }) as any as S.Schema<ListSecretKeysRequest>;
4808
4291
 
4809
4292
  export type SecretKeysSecretKeysList = Array<SecretKey>;
4810
4293
  export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(
@@ -4833,12 +4316,8 @@ export const ListSecretsRequest = /*@__PURE__*/ S.suspend(() =>
4833
4316
  app_name: S.String.pipe(T.Label()),
4834
4317
  min_version: S.optional(S.String.pipe(T.Query())),
4835
4318
  show_secrets: S.optional(S.Boolean.pipe(T.Query())),
4836
- }).pipe(
4837
- T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets", code: 200 }),
4838
- ),
4839
- ).annotate({
4840
- identifier: "ListSecretsRequest",
4841
- }) as any as S.Schema<ListSecretsRequest>;
4319
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets", code: 200 })),
4320
+ ).annotate({ identifier: "ListSecretsRequest" }) as any as S.Schema<ListSecretsRequest>;
4842
4321
 
4843
4322
  export type AppSecretsSecretsList = Array<AppSecret>;
4844
4323
  export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(
@@ -4859,17 +4338,19 @@ export interface ListVolumesRequest {
4859
4338
  app_name: string;
4860
4339
  /** Only return summary info about volumes (omit blocks, block size, etc) */
4861
4340
  summary?: boolean;
4341
+ /** Value of the fly-next-cursor response header from the previous page. Requires limit. */
4342
+ cursor?: string;
4343
+ /** The number of volumes to fetch (must be between 1 and 1000). Providing a limit enables pagination. This limit is advisory; responses may be shorter, or even empty, even when more volumes remain. */
4344
+ limit?: number;
4862
4345
  }
4863
4346
  export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() =>
4864
4347
  S.Struct({
4865
4348
  app_name: S.String.pipe(T.Label()),
4866
4349
  summary: S.optional(S.Boolean.pipe(T.Query())),
4867
- }).pipe(
4868
- T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes", code: 200 }),
4869
- ),
4870
- ).annotate({
4871
- identifier: "ListVolumesRequest",
4872
- }) as any as S.Schema<ListVolumesRequest>;
4350
+ cursor: S.optional(S.String.pipe(T.Query())),
4351
+ limit: S.optional(S.Number.pipe(T.Query())),
4352
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes", code: 200 })),
4353
+ ).annotate({ identifier: "ListVolumesRequest" }) as any as S.Schema<ListVolumesRequest>;
4873
4354
 
4874
4355
  export type ListVolumesResponseBodyList = Array<Volume>;
4875
4356
  export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(
@@ -4879,9 +4360,7 @@ export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(
4879
4360
  export type ListVolumesResponse = ListVolumesResponseBodyList;
4880
4361
  export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() =>
4881
4362
  ListVolumesResponseBodyList.pipe(T.RawResponseRoot()),
4882
- ).annotate({
4883
- identifier: "ListVolumesResponse",
4884
- }) as any as S.Schema<ListVolumesResponse>;
4363
+ ).annotate({ identifier: "ListVolumesResponse" }) as any as S.Schema<ListVolumesResponse>;
4885
4364
 
4886
4365
  export interface ListVolumeSnapshotsRequest {
4887
4366
  /** Fly App Name */
@@ -4894,11 +4373,7 @@ export const ListVolumeSnapshotsRequest = /*@__PURE__*/ S.suspend(() =>
4894
4373
  app_name: S.String.pipe(T.Label()),
4895
4374
  volume_id: S.String.pipe(T.Label()),
4896
4375
  }).pipe(
4897
- T.Http({
4898
- method: "GET",
4899
- uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
4900
- code: 200,
4901
- }),
4376
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots", code: 200 }),
4902
4377
  ),
4903
4378
  ).annotate({
4904
4379
  identifier: "ListVolumeSnapshotsRequest",
@@ -4965,12 +4440,8 @@ export const ListVolumesOrgRequest = /*@__PURE__*/ S.suspend(() =>
4965
4440
  updated_after: S.optional(S.String.pipe(T.Query())),
4966
4441
  cursor: S.optional(S.String.pipe(T.Query())),
4967
4442
  limit: S.optional(S.Number.pipe(T.Query())),
4968
- }).pipe(
4969
- T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/volumes", code: 200 }),
4970
- ),
4971
- ).annotate({
4972
- identifier: "ListVolumesOrgRequest",
4973
- }) as any as S.Schema<ListVolumesOrgRequest>;
4443
+ }).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/volumes", code: 200 })),
4444
+ ).annotate({ identifier: "ListVolumesOrgRequest" }) as any as S.Schema<ListVolumesOrgRequest>;
4974
4445
 
4975
4446
  export type OrgVolumeHostFeaturesList = Array<string>;
4976
4447
  export const OrgVolumeHostFeaturesList = /*@__PURE__*/ S.Array(
@@ -5063,9 +4534,7 @@ export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() =>
5063
4534
  next_cursor: S.optional(S.String),
5064
4535
  volumes: S.optional(OrgVolumesResponseVolumesList),
5065
4536
  }),
5066
- ).annotate({
5067
- identifier: "OrgVolumesResponse",
5068
- }) as any as S.Schema<OrgVolumesResponse>;
4537
+ ).annotate({ identifier: "OrgVolumesResponse" }) as any as S.Schema<OrgVolumesResponse>;
5069
4538
 
5070
4539
  export interface MachinesReleaseLeaseRequest {
5071
4540
  /** Fly App Name */
@@ -5081,26 +4550,18 @@ export const MachinesReleaseLeaseRequest = /*@__PURE__*/ S.suspend(() =>
5081
4550
  machine_id: S.String.pipe(T.Label()),
5082
4551
  lease_nonce: S.String.pipe(T.Header("fly-machine-lease-nonce")),
5083
4552
  }).pipe(
5084
- T.Http({
5085
- method: "DELETE",
5086
- uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
5087
- code: 200,
5088
- }),
4553
+ T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}/machines/{machine_id}/lease", code: 200 }),
5089
4554
  ),
5090
4555
  ).annotate({
5091
4556
  identifier: "MachinesReleaseLeaseRequest",
5092
4557
  }) as any as S.Schema<MachinesReleaseLeaseRequest>;
5093
4558
 
5094
4559
  export interface MachinesReleaseLeaseResponse {}
5095
- export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() =>
5096
- S.Struct({}),
5097
- ).annotate({
4560
+ export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5098
4561
  identifier: "MachinesReleaseLeaseResponse",
5099
4562
  }) as any as S.Schema<MachinesReleaseLeaseResponse>;
5100
4563
 
5101
- export type PatchMachineMetadataRequestMetadataMap = {
5102
- [key: string]: string | undefined;
5103
- };
4564
+ export type PatchMachineMetadataRequestMetadataMap = { [key: string]: string | undefined };
5104
4565
  export const PatchMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(
5105
4566
  S.String,
5106
4567
  S.String,
@@ -5134,9 +4595,7 @@ export const PatchMachineMetadataRequest = /*@__PURE__*/ S.suspend(() =>
5134
4595
  }) as any as S.Schema<PatchMachineMetadataRequest>;
5135
4596
 
5136
4597
  export interface PatchMachineMetadataResponse {}
5137
- export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() =>
5138
- S.Struct({}),
5139
- ).annotate({
4598
+ export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5140
4599
  identifier: "PatchMachineMetadataResponse",
5141
4600
  }) as any as S.Schema<PatchMachineMetadataResponse>;
5142
4601
 
@@ -5151,11 +4610,7 @@ export const PostgresQueriesActiveRequest = /*@__PURE__*/ S.suspend(() =>
5151
4610
  postgres_cluster_id: S.String.pipe(T.Label()),
5152
4611
  database: S.String.pipe(T.Query()),
5153
4612
  }).pipe(
5154
- T.Http({
5155
- method: "GET",
5156
- uri: "/v1/postgres/{postgres_cluster_id}/queries/active",
5157
- code: 200,
5158
- }),
4613
+ T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/queries/active", code: 200 }),
5159
4614
  ),
5160
4615
  ).annotate({
5161
4616
  identifier: "PostgresQueriesActiveRequest",
@@ -5199,12 +4654,9 @@ export const PostgresActiveQuery = /*@__PURE__*/ S.suspend(() =>
5199
4654
  wait_event: S.optional(S.String),
5200
4655
  wait_event_type: S.optional(S.String),
5201
4656
  }),
5202
- ).annotate({
5203
- identifier: "PostgresActiveQuery",
5204
- }) as any as S.Schema<PostgresActiveQuery>;
4657
+ ).annotate({ identifier: "PostgresActiveQuery" }) as any as S.Schema<PostgresActiveQuery>;
5205
4658
 
5206
- export type ListPostgresActiveQueriesResponseDataList =
5207
- Array<PostgresActiveQuery>;
4659
+ export type ListPostgresActiveQueriesResponseDataList = Array<PostgresActiveQuery>;
5208
4660
  export const ListPostgresActiveQueriesResponseDataList = /*@__PURE__*/ S.Array(
5209
4661
  PostgresActiveQuery,
5210
4662
  ) as any as S.Schema<ListPostgresActiveQueriesResponseDataList>;
@@ -5231,11 +4683,7 @@ export const PostgresQueriesSlowRequest = /*@__PURE__*/ S.suspend(() =>
5231
4683
  postgres_cluster_id: S.String.pipe(T.Label()),
5232
4684
  range: S.optional(S.Number.pipe(T.Query())),
5233
4685
  }).pipe(
5234
- T.Http({
5235
- method: "GET",
5236
- uri: "/v1/postgres/{postgres_cluster_id}/queries/slow",
5237
- code: 200,
5238
- }),
4686
+ T.Http({ method: "GET", uri: "/v1/postgres/{postgres_cluster_id}/queries/slow", code: 200 }),
5239
4687
  ),
5240
4688
  ).annotate({
5241
4689
  identifier: "PostgresQueriesSlowRequest",
@@ -5270,9 +4718,7 @@ export const PostgresSlowQuery = /*@__PURE__*/ S.suspend(() =>
5270
4718
  total_exec_time_seconds: S.optional(S.Number),
5271
4719
  user: S.optional(S.String),
5272
4720
  }),
5273
- ).annotate({
5274
- identifier: "PostgresSlowQuery",
5275
- }) as any as S.Schema<PostgresSlowQuery>;
4721
+ ).annotate({ identifier: "PostgresSlowQuery" }) as any as S.Schema<PostgresSlowQuery>;
5276
4722
 
5277
4723
  export type ListPostgresSlowQueriesResponseDataList = Array<PostgresSlowQuery>;
5278
4724
  export const ListPostgresSlowQueriesResponseDataList = /*@__PURE__*/ S.Array(
@@ -5322,9 +4768,7 @@ export const PostgresUserCredentials = /*@__PURE__*/ S.suspend(() =>
5322
4768
  password: S.optional(S.String.pipe(T.SensitiveValue({}))),
5323
4769
  username: S.optional(S.String),
5324
4770
  }),
5325
- ).annotate({
5326
- identifier: "PostgresUserCredentials",
5327
- }) as any as S.Schema<PostgresUserCredentials>;
4771
+ ).annotate({ identifier: "PostgresUserCredentials" }) as any as S.Schema<PostgresUserCredentials>;
5328
4772
 
5329
4773
  export interface GetPostgresUserCredentialsResponse {
5330
4774
  data?: PostgresUserCredentials;
@@ -5373,17 +4817,11 @@ export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() =>
5373
4817
 
5374
4818
  export interface RequestKmsTokenRequest {}
5375
4819
  export const RequestKmsTokenRequest = /*@__PURE__*/ S.suspend(() =>
5376
- S.Struct({}).pipe(
5377
- T.Http({ method: "POST", uri: "/v1/tokens/kms", code: 200 }),
5378
- ),
5379
- ).annotate({
5380
- identifier: "RequestKmsTokenRequest",
5381
- }) as any as S.Schema<RequestKmsTokenRequest>;
4820
+ S.Struct({}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/kms", code: 200 })),
4821
+ ).annotate({ identifier: "RequestKmsTokenRequest" }) as any as S.Schema<RequestKmsTokenRequest>;
5382
4822
 
5383
4823
  export interface RequestKmsTokenResponse {}
5384
- export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() =>
5385
- S.Struct({}),
5386
- ).annotate({
4824
+ export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5387
4825
  identifier: "RequestKmsTokenResponse",
5388
4826
  }) as any as S.Schema<RequestKmsTokenResponse>;
5389
4827
 
@@ -5396,14 +4834,10 @@ export const RequestOidcTokenRequest = /*@__PURE__*/ S.suspend(() =>
5396
4834
  aud: S.optional(S.String),
5397
4835
  aws_principal_tags: S.optional(S.Boolean),
5398
4836
  }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/oidc", code: 200 })),
5399
- ).annotate({
5400
- identifier: "RequestOidcTokenRequest",
5401
- }) as any as S.Schema<RequestOidcTokenRequest>;
4837
+ ).annotate({ identifier: "RequestOidcTokenRequest" }) as any as S.Schema<RequestOidcTokenRequest>;
5402
4838
 
5403
4839
  export interface RequestOidcTokenResponse {}
5404
- export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() =>
5405
- S.Struct({}),
5406
- ).annotate({
4840
+ export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5407
4841
  identifier: "RequestOidcTokenResponse",
5408
4842
  }) as any as S.Schema<RequestOidcTokenResponse>;
5409
4843
 
@@ -5436,20 +4870,12 @@ export const RestartMachineRequest = /*@__PURE__*/ S.suspend(() =>
5436
4870
  signal: S.optional(RestartMachineRequestSignal.pipe(T.Query())),
5437
4871
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
5438
4872
  }).pipe(
5439
- T.Http({
5440
- method: "POST",
5441
- uri: "/v1/apps/{app_name}/machines/{machine_id}/restart",
5442
- code: 200,
5443
- }),
4873
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/restart", code: 200 }),
5444
4874
  ),
5445
- ).annotate({
5446
- identifier: "RestartMachineRequest",
5447
- }) as any as S.Schema<RestartMachineRequest>;
4875
+ ).annotate({ identifier: "RestartMachineRequest" }) as any as S.Schema<RestartMachineRequest>;
5448
4876
 
5449
4877
  export interface RestartMachineResponse {}
5450
- export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() =>
5451
- S.Struct({}),
5452
- ).annotate({
4878
+ export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5453
4879
  identifier: "RestartMachineResponse",
5454
4880
  }) as any as S.Schema<RestartMachineResponse>;
5455
4881
 
@@ -5469,16 +4895,8 @@ export const RestorePostgresRequest = /*@__PURE__*/ S.suspend(() =>
5469
4895
  backup_id: S.optional(S.String),
5470
4896
  name: S.optional(S.String),
5471
4897
  pitr_time: S.optional(S.String),
5472
- }).pipe(
5473
- T.Http({
5474
- method: "POST",
5475
- uri: "/v1/postgres/{postgres_cluster_id}/restore",
5476
- code: 200,
5477
- }),
5478
- ),
5479
- ).annotate({
5480
- identifier: "RestorePostgresRequest",
5481
- }) as any as S.Schema<RestorePostgresRequest>;
4898
+ }).pipe(T.Http({ method: "POST", uri: "/v1/postgres/{postgres_cluster_id}/restore", code: 200 })),
4899
+ ).annotate({ identifier: "RestorePostgresRequest" }) as any as S.Schema<RestorePostgresRequest>;
5482
4900
 
5483
4901
  export interface RotatePostgresUserPasswordRequest {
5484
4902
  /** Managed Postgres Cluster ID */
@@ -5528,11 +4946,7 @@ export const SetMachineMemoryLimitRequest = /*@__PURE__*/ S.suspend(() =>
5528
4946
  machine_id: S.String.pipe(T.Label()),
5529
4947
  limit_mb: S.optional(S.Number),
5530
4948
  }).pipe(
5531
- T.Http({
5532
- method: "PUT",
5533
- uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
5534
- code: 200,
5535
- }),
4949
+ T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/machines/{machine_id}/memory", code: 200 }),
5536
4950
  ),
5537
4951
  ).annotate({
5538
4952
  identifier: "SetMachineMemoryLimitRequest",
@@ -5558,15 +4972,9 @@ export const SetSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
5558
4972
  type: S.optional(S.String),
5559
4973
  value: S.optional(SetSecretKeyRequestValueList),
5560
4974
  }).pipe(
5561
- T.Http({
5562
- method: "POST",
5563
- uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
5564
- code: 200,
5565
- }),
4975
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}", code: 200 }),
5566
4976
  ),
5567
- ).annotate({
5568
- identifier: "SetSecretKeyRequest",
5569
- }) as any as S.Schema<SetSecretKeyRequest>;
4977
+ ).annotate({ identifier: "SetSecretKeyRequest" }) as any as S.Schema<SetSecretKeyRequest>;
5570
4978
 
5571
4979
  export type SignalMachineRequestSignal =
5572
4980
  | "SIGABRT"
@@ -5598,20 +5006,12 @@ export const SignalMachineRequest = /*@__PURE__*/ S.suspend(() =>
5598
5006
  machine_id: S.String.pipe(T.Label()),
5599
5007
  signal: S.optional(SignalMachineRequestSignal),
5600
5008
  }).pipe(
5601
- T.Http({
5602
- method: "POST",
5603
- uri: "/v1/apps/{app_name}/machines/{machine_id}/signal",
5604
- code: 200,
5605
- }),
5009
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/signal", code: 200 }),
5606
5010
  ),
5607
- ).annotate({
5608
- identifier: "SignalMachineRequest",
5609
- }) as any as S.Schema<SignalMachineRequest>;
5011
+ ).annotate({ identifier: "SignalMachineRequest" }) as any as S.Schema<SignalMachineRequest>;
5610
5012
 
5611
5013
  export interface SignalMachineResponse {}
5612
- export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() =>
5613
- S.Struct({}),
5614
- ).annotate({
5014
+ export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5615
5015
  identifier: "SignalMachineResponse",
5616
5016
  }) as any as S.Schema<SignalMachineResponse>;
5617
5017
 
@@ -5631,15 +5031,9 @@ export const SignSecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
5631
5031
  min_version: S.optional(S.String.pipe(T.Query())),
5632
5032
  plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
5633
5033
  }).pipe(
5634
- T.Http({
5635
- method: "POST",
5636
- uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/sign",
5637
- code: 200,
5638
- }),
5034
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/sign", code: 200 }),
5639
5035
  ),
5640
- ).annotate({
5641
- identifier: "SignSecretKeyRequest",
5642
- }) as any as S.Schema<SignSecretKeyRequest>;
5036
+ ).annotate({ identifier: "SignSecretKeyRequest" }) as any as S.Schema<SignSecretKeyRequest>;
5643
5037
 
5644
5038
  export interface SignSecretkeyResponse {
5645
5039
  signature?: string;
@@ -5648,9 +5042,7 @@ export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() =>
5648
5042
  S.Struct({
5649
5043
  signature: S.optional(S.String),
5650
5044
  }),
5651
- ).annotate({
5652
- identifier: "SignSecretkeyResponse",
5653
- }) as any as S.Schema<SignSecretkeyResponse>;
5045
+ ).annotate({ identifier: "SignSecretkeyResponse" }) as any as S.Schema<SignSecretkeyResponse>;
5654
5046
 
5655
5047
  export interface StartMachineRequest {
5656
5048
  /** Fly App Name */
@@ -5665,20 +5057,12 @@ export const StartMachineRequest = /*@__PURE__*/ S.suspend(() =>
5665
5057
  machine_id: S.String.pipe(T.Label()),
5666
5058
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
5667
5059
  }).pipe(
5668
- T.Http({
5669
- method: "POST",
5670
- uri: "/v1/apps/{app_name}/machines/{machine_id}/start",
5671
- code: 200,
5672
- }),
5060
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/start", code: 200 }),
5673
5061
  ),
5674
- ).annotate({
5675
- identifier: "StartMachineRequest",
5676
- }) as any as S.Schema<StartMachineRequest>;
5062
+ ).annotate({ identifier: "StartMachineRequest" }) as any as S.Schema<StartMachineRequest>;
5677
5063
 
5678
5064
  export interface StartMachineResponse {}
5679
- export const StartMachineResponse = /*@__PURE__*/ S.suspend(() =>
5680
- S.Struct({}),
5681
- ).annotate({
5065
+ export const StartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5682
5066
  identifier: "StartMachineResponse",
5683
5067
  }) as any as S.Schema<StartMachineResponse>;
5684
5068
 
@@ -5709,20 +5093,12 @@ export const StopMachineRequest = /*@__PURE__*/ S.suspend(() =>
5709
5093
  timeout: S.optional(S.String),
5710
5094
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
5711
5095
  }).pipe(
5712
- T.Http({
5713
- method: "POST",
5714
- uri: "/v1/apps/{app_name}/machines/{machine_id}/stop",
5715
- code: 200,
5716
- }),
5096
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/stop", code: 200 }),
5717
5097
  ),
5718
- ).annotate({
5719
- identifier: "StopMachineRequest",
5720
- }) as any as S.Schema<StopMachineRequest>;
5098
+ ).annotate({ identifier: "StopMachineRequest" }) as any as S.Schema<StopMachineRequest>;
5721
5099
 
5722
5100
  export interface StopMachineResponse {}
5723
- export const StopMachineResponse = /*@__PURE__*/ S.suspend(() =>
5724
- S.Struct({}),
5725
- ).annotate({
5101
+ export const StopMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5726
5102
  identifier: "StopMachineResponse",
5727
5103
  }) as any as S.Schema<StopMachineResponse>;
5728
5104
 
@@ -5739,20 +5115,12 @@ export const SuspendMachineRequest = /*@__PURE__*/ S.suspend(() =>
5739
5115
  machine_id: S.String.pipe(T.Label()),
5740
5116
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
5741
5117
  }).pipe(
5742
- T.Http({
5743
- method: "POST",
5744
- uri: "/v1/apps/{app_name}/machines/{machine_id}/suspend",
5745
- code: 200,
5746
- }),
5118
+ T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}/suspend", code: 200 }),
5747
5119
  ),
5748
- ).annotate({
5749
- identifier: "SuspendMachineRequest",
5750
- }) as any as S.Schema<SuspendMachineRequest>;
5120
+ ).annotate({ identifier: "SuspendMachineRequest" }) as any as S.Schema<SuspendMachineRequest>;
5751
5121
 
5752
5122
  export interface SuspendMachineResponse {}
5753
- export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() =>
5754
- S.Struct({}),
5755
- ).annotate({
5123
+ export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5756
5124
  identifier: "SuspendMachineResponse",
5757
5125
  }) as any as S.Schema<SuspendMachineResponse>;
5758
5126
 
@@ -5775,14 +5143,10 @@ export const UncordonMachineRequest = /*@__PURE__*/ S.suspend(() =>
5775
5143
  code: 200,
5776
5144
  }),
5777
5145
  ),
5778
- ).annotate({
5779
- identifier: "UncordonMachineRequest",
5780
- }) as any as S.Schema<UncordonMachineRequest>;
5146
+ ).annotate({ identifier: "UncordonMachineRequest" }) as any as S.Schema<UncordonMachineRequest>;
5781
5147
 
5782
5148
  export interface UncordonMachineResponse {}
5783
- export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() =>
5784
- S.Struct({}),
5785
- ).annotate({
5149
+ export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5786
5150
  identifier: "UncordonMachineResponse",
5787
5151
  }) as any as S.Schema<UncordonMachineResponse>;
5788
5152
 
@@ -5820,22 +5184,11 @@ export const UpdateMachineRequest = /*@__PURE__*/ S.suspend(() =>
5820
5184
  skip_secrets: S.optional(S.Boolean),
5821
5185
  skip_service_registration: S.optional(S.Boolean),
5822
5186
  lease_nonce: S.optional(S.String.pipe(T.Header("fly-machine-lease-nonce"))),
5823
- }).pipe(
5824
- T.Http({
5825
- method: "POST",
5826
- uri: "/v1/apps/{app_name}/machines/{machine_id}",
5827
- code: 200,
5828
- }),
5829
- ),
5830
- ).annotate({
5831
- identifier: "UpdateMachineRequest",
5832
- }) as any as S.Schema<UpdateMachineRequest>;
5187
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines/{machine_id}", code: 200 })),
5188
+ ).annotate({ identifier: "UpdateMachineRequest" }) as any as S.Schema<UpdateMachineRequest>;
5833
5189
 
5834
5190
  /** New role for the user. */
5835
- export type UpdatePostgresUserRoleRequestRole =
5836
- | "schema_admin"
5837
- | "writer"
5838
- | "reader";
5191
+ export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
5839
5192
  export const UpdatePostgresUserRoleRequestRole = S.String;
5840
5193
 
5841
5194
  export interface UpdatePostgresUserRoleRequest {
@@ -5863,15 +5216,11 @@ export const UpdatePostgresUserRoleRequest = /*@__PURE__*/ S.suspend(() =>
5863
5216
  }) as any as S.Schema<UpdatePostgresUserRoleRequest>;
5864
5217
 
5865
5218
  export interface UpdatePostgresUserRoleResponse {}
5866
- export const UpdatePostgresUserRoleResponse = /*@__PURE__*/ S.suspend(() =>
5867
- S.Struct({}),
5868
- ).annotate({
5219
+ export const UpdatePostgresUserRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5869
5220
  identifier: "UpdatePostgresUserRoleResponse",
5870
5221
  }) as any as S.Schema<UpdatePostgresUserRoleResponse>;
5871
5222
 
5872
- export type UpdateSecretsRequestValuesMap = {
5873
- [key: string]: string | undefined;
5874
- };
5223
+ export type UpdateSecretsRequestValuesMap = { [key: string]: string | undefined };
5875
5224
  export const UpdateSecretsRequestValuesMap = /*@__PURE__*/ S.Record(
5876
5225
  S.String,
5877
5226
  S.String,
@@ -5886,12 +5235,8 @@ export const UpdateSecretsRequest = /*@__PURE__*/ S.suspend(() =>
5886
5235
  S.Struct({
5887
5236
  app_name: S.String.pipe(T.Label()),
5888
5237
  values: S.optional(UpdateSecretsRequestValuesMap),
5889
- }).pipe(
5890
- T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets", code: 200 }),
5891
- ),
5892
- ).annotate({
5893
- identifier: "UpdateSecretsRequest",
5894
- }) as any as S.Schema<UpdateSecretsRequest>;
5238
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets", code: 200 })),
5239
+ ).annotate({ identifier: "UpdateSecretsRequest" }) as any as S.Schema<UpdateSecretsRequest>;
5895
5240
 
5896
5241
  export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
5897
5242
  export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(
@@ -5910,9 +5255,7 @@ export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() =>
5910
5255
  secrets: S.optional(AppSecretsUpdateRespSecretsList),
5911
5256
  version: S.optional(S.Number),
5912
5257
  }),
5913
- ).annotate({
5914
- identifier: "AppSecretsUpdateResp",
5915
- }) as any as S.Schema<AppSecretsUpdateResp>;
5258
+ ).annotate({ identifier: "AppSecretsUpdateResp" }) as any as S.Schema<AppSecretsUpdateResp>;
5916
5259
 
5917
5260
  export interface UpdateVolumeRequest {
5918
5261
  /** Fly App Name */
@@ -5928,16 +5271,8 @@ export const UpdateVolumeRequest = /*@__PURE__*/ S.suspend(() =>
5928
5271
  volume_id: S.String.pipe(T.Label()),
5929
5272
  auto_backup_enabled: S.optional(S.Boolean),
5930
5273
  snapshot_retention: S.optional(S.Number),
5931
- }).pipe(
5932
- T.Http({
5933
- method: "PUT",
5934
- uri: "/v1/apps/{app_name}/volumes/{volume_id}",
5935
- code: 200,
5936
- }),
5937
- ),
5938
- ).annotate({
5939
- identifier: "UpdateVolumeRequest",
5940
- }) as any as S.Schema<UpdateVolumeRequest>;
5274
+ }).pipe(T.Http({ method: "PUT", uri: "/v1/apps/{app_name}/volumes/{volume_id}", code: 200 })),
5275
+ ).annotate({ identifier: "UpdateVolumeRequest" }) as any as S.Schema<UpdateVolumeRequest>;
5941
5276
 
5942
5277
  export interface UpsertMachineMetadataRequest {
5943
5278
  /** Fly App Name */
@@ -5968,9 +5303,7 @@ export const UpsertMachineMetadataRequest = /*@__PURE__*/ S.suspend(() =>
5968
5303
  }) as any as S.Schema<UpsertMachineMetadataRequest>;
5969
5304
 
5970
5305
  export interface UpsertMachineMetadataResponse {}
5971
- export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() =>
5972
- S.Struct({}),
5973
- ).annotate({
5306
+ export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
5974
5307
  identifier: "UpsertMachineMetadataResponse",
5975
5308
  }) as any as S.Schema<UpsertMachineMetadataResponse>;
5976
5309
 
@@ -5998,14 +5331,10 @@ export const VerifySecretKeyRequest = /*@__PURE__*/ S.suspend(() =>
5998
5331
  code: 200,
5999
5332
  }),
6000
5333
  ),
6001
- ).annotate({
6002
- identifier: "VerifySecretKeyRequest",
6003
- }) as any as S.Schema<VerifySecretKeyRequest>;
5334
+ ).annotate({ identifier: "VerifySecretKeyRequest" }) as any as S.Schema<VerifySecretKeyRequest>;
6004
5335
 
6005
5336
  export interface VerifySecretKeyResponse {}
6006
- export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() =>
6007
- S.Struct({}),
6008
- ).annotate({
5337
+ export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
6009
5338
  identifier: "VerifySecretKeyResponse",
6010
5339
  }) as any as S.Schema<VerifySecretKeyResponse>;
6011
5340
 
@@ -6044,15 +5373,9 @@ export const WaitMachineRequest = /*@__PURE__*/ S.suspend(() =>
6044
5373
  timeout: S.optional(S.Number.pipe(T.Query())),
6045
5374
  state: S.optional(WaitMachineRequestState.pipe(T.Query())),
6046
5375
  }).pipe(
6047
- T.Http({
6048
- method: "GET",
6049
- uri: "/v1/apps/{app_name}/machines/{machine_id}/wait",
6050
- code: 200,
6051
- }),
5376
+ T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines/{machine_id}/wait", code: 200 }),
6052
5377
  ),
6053
- ).annotate({
6054
- identifier: "WaitMachineRequest",
6055
- }) as any as S.Schema<WaitMachineRequest>;
5378
+ ).annotate({ identifier: "WaitMachineRequest" }) as any as S.Schema<WaitMachineRequest>;
6056
5379
 
6057
5380
  export interface WaitMachineResponse {
6058
5381
  event_id?: string;
@@ -6067,9 +5390,7 @@ export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() =>
6067
5390
  state: S.optional(S.String),
6068
5391
  version: S.optional(S.String),
6069
5392
  }),
6070
- ).annotate({
6071
- identifier: "WaitMachineResponse",
6072
- }) as any as S.Schema<WaitMachineResponse>;
5393
+ ).annotate({ identifier: "WaitMachineResponse" }) as any as S.Schema<WaitMachineResponse>;
6073
5394
 
6074
5395
  export type AuthenticateTokenError = BadRequest | FlyIoOpError;
6075
5396
  /** Authenticate token header Verify a token header without checking resource access. */
@@ -6101,11 +5422,7 @@ export const authorizeToken: API.OperationMethod<
6101
5422
  retry: Retry.Retry,
6102
5423
  }));
6103
5424
 
6104
- export type CheckAppCertificateError =
6105
- | BadRequest
6106
- | Forbidden
6107
- | NotFound
6108
- | FlyIoOpError;
5425
+ export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6109
5426
  /** Check DNS and re-validate certificate */
6110
5427
  export const checkAppCertificate: API.OperationMethod<
6111
5428
  CheckAppCertificateRequest,
@@ -6120,12 +5437,7 @@ export const checkAppCertificate: API.OperationMethod<
6120
5437
  retry: Retry.Retry,
6121
5438
  }));
6122
5439
 
6123
- export type CordonMachineError =
6124
- | BadRequest
6125
- | Forbidden
6126
- | NotFound
6127
- | Conflict
6128
- | FlyIoOpError;
5440
+ export type CordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6129
5441
  /** 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. */
6130
5442
  export const cordonMachine: API.OperationMethod<
6131
5443
  CordonMachineRequest,
@@ -6203,11 +5515,7 @@ export const createAppCustomCertificate: API.OperationMethod<
6203
5515
  retry: Retry.Retry,
6204
5516
  }));
6205
5517
 
6206
- export type CreateAppDeployTokenError =
6207
- | BadRequest
6208
- | Forbidden
6209
- | NotFound
6210
- | FlyIoOpError;
5518
+ export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6211
5519
  /** Create App deploy token */
6212
5520
  export const createAppDeployToken: API.OperationMethod<
6213
5521
  CreateAppDeployTokenRequest,
@@ -6243,12 +5551,7 @@ export const createAppIPAssignment: API.OperationMethod<
6243
5551
  retry: Retry.Retry,
6244
5552
  }));
6245
5553
 
6246
- export type CreateMachineError =
6247
- | BadRequest
6248
- | Forbidden
6249
- | NotFound
6250
- | Conflict
6251
- | FlyIoOpError;
5554
+ export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6252
5555
  /** 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! */
6253
5556
  export const createMachine: API.OperationMethod<
6254
5557
  CreateMachineRequest,
@@ -6263,12 +5566,7 @@ export const createMachine: API.OperationMethod<
6263
5566
  retry: Retry.Retry,
6264
5567
  }));
6265
5568
 
6266
- export type CreateMachineLeaseError =
6267
- | BadRequest
6268
- | Forbidden
6269
- | NotFound
6270
- | Conflict
6271
- | FlyIoOpError;
5569
+ export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6272
5570
  /** 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. */
6273
5571
  export const createMachineLease: API.OperationMethod<
6274
5572
  CreateMachineLeaseRequest,
@@ -6283,11 +5581,7 @@ export const createMachineLease: API.OperationMethod<
6283
5581
  retry: Retry.Retry,
6284
5582
  }));
6285
5583
 
6286
- export type CreatePostgresError =
6287
- | BadRequest
6288
- | NotFound
6289
- | UnprocessableEntity
6290
- | FlyIoOpError;
5584
+ export type CreatePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
6291
5585
  /** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous: poll `GET /v1/postgres/{id}` until `status == ready` before calling database, user, extension, or credential endpoints. */
6292
5586
  export const createPostgres: API.OperationMethod<
6293
5587
  CreatePostgresRequest,
@@ -6371,12 +5665,7 @@ export const createPostgresUser: API.OperationMethod<
6371
5665
  retry: Retry.Retry,
6372
5666
  }));
6373
5667
 
6374
- export type CreateSecretError =
6375
- | BadRequest
6376
- | Forbidden
6377
- | NotFound
6378
- | Conflict
6379
- | FlyIoOpError;
5668
+ export type CreateSecretError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6380
5669
  /** Create or update Secret */
6381
5670
  export const createSecret: API.OperationMethod<
6382
5671
  CreateSecretRequest,
@@ -6391,12 +5680,7 @@ export const createSecret: API.OperationMethod<
6391
5680
  retry: Retry.Retry,
6392
5681
  }));
6393
5682
 
6394
- export type CreateVolumeError =
6395
- | BadRequest
6396
- | Forbidden
6397
- | NotFound
6398
- | Conflict
6399
- | FlyIoOpError;
5683
+ export type CreateVolumeError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6400
5684
  /** Create Volume Create a volume for a specific app using the details provided in the request body. */
6401
5685
  export const createVolume: API.OperationMethod<
6402
5686
  CreateVolumeRequest,
@@ -6411,12 +5695,7 @@ export const createVolume: API.OperationMethod<
6411
5695
  retry: Retry.Retry,
6412
5696
  }));
6413
5697
 
6414
- export type CreateVolumeSnapshotError =
6415
- | BadRequest
6416
- | Forbidden
6417
- | NotFound
6418
- | Conflict
6419
- | FlyIoOpError;
5698
+ export type CreateVolumeSnapshotError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6420
5699
  /** Create Snapshot Create a snapshot for a specific volume within an app. */
6421
5700
  export const createVolumeSnapshot: API.OperationMethod<
6422
5701
  CreateVolumeSnapshotRequest,
@@ -6431,11 +5710,7 @@ export const createVolumeSnapshot: API.OperationMethod<
6431
5710
  retry: Retry.Retry,
6432
5711
  }));
6433
5712
 
6434
- export type DecryptSecretKeyError =
6435
- | BadRequest
6436
- | Forbidden
6437
- | NotFound
6438
- | FlyIoOpError;
5713
+ export type DecryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6439
5714
  /** Decrypt with a secret key */
6440
5715
  export const decryptSecretKey: API.OperationMethod<
6441
5716
  DecryptSecretKeyRequest,
@@ -6495,10 +5770,7 @@ export const deleteAppCertificate: API.OperationMethod<
6495
5770
  retry: Retry.Retry,
6496
5771
  }));
6497
5772
 
6498
- export type DeleteAppCustomCertificateError =
6499
- | Forbidden
6500
- | NotFound
6501
- | FlyIoOpError;
5773
+ export type DeleteAppCustomCertificateError = Forbidden | NotFound | FlyIoOpError;
6502
5774
  /** Remove custom certificate */
6503
5775
  export const deleteAppCustomCertificate: API.OperationMethod<
6504
5776
  DeleteAppCustomCertificateRequest,
@@ -6648,12 +5920,7 @@ export const deleteSecretKey: API.OperationMethod<
6648
5920
  retry: Retry.Retry,
6649
5921
  }));
6650
5922
 
6651
- export type DeleteVolumeError =
6652
- | Forbidden
6653
- | NotFound
6654
- | Conflict
6655
- | VolumeAttached
6656
- | FlyIoOpError;
5923
+ export type DeleteVolumeError = Forbidden | NotFound | Conflict | VolumeAttached | FlyIoOpError;
6657
5924
  /** Destroy Volume Delete a specific volume within an app by volume ID. */
6658
5925
  export const deleteVolume: API.OperationMethod<
6659
5926
  DeleteVolumeRequest,
@@ -6707,11 +5974,7 @@ export const enablePostgresExtension: API.OperationMethod<
6707
5974
  retry: Retry.Retry,
6708
5975
  }));
6709
5976
 
6710
- export type EncryptSecretKeyError =
6711
- | BadRequest
6712
- | Forbidden
6713
- | NotFound
6714
- | FlyIoOpError;
5977
+ export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6715
5978
  /** Encrypt with a secret key */
6716
5979
  export const encryptSecretKey: API.OperationMethod<
6717
5980
  EncryptSecretKeyRequest,
@@ -6726,12 +5989,7 @@ export const encryptSecretKey: API.OperationMethod<
6726
5989
  retry: Retry.Retry,
6727
5990
  }));
6728
5991
 
6729
- export type ExecMachineError =
6730
- | BadRequest
6731
- | Forbidden
6732
- | NotFound
6733
- | Conflict
6734
- | FlyIoOpError;
5992
+ export type ExecMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6735
5993
  /** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
6736
5994
  export const execMachine: API.OperationMethod<
6737
5995
  ExecMachineRequest,
@@ -6746,11 +6004,7 @@ export const execMachine: API.OperationMethod<
6746
6004
  retry: Retry.Retry,
6747
6005
  }));
6748
6006
 
6749
- export type ExtendVolumeError =
6750
- | BadRequest
6751
- | Forbidden
6752
- | NotFound
6753
- | FlyIoOpError;
6007
+ export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6754
6008
  /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
6755
6009
  export const extendVolume: API.OperationMethod<
6756
6010
  ExtendVolumeRequest,
@@ -6785,12 +6039,7 @@ export const forkPostgres: API.OperationMethod<
6785
6039
  retry: Retry.Retry,
6786
6040
  }));
6787
6041
 
6788
- export type GenerateSecretKeyError =
6789
- | BadRequest
6790
- | Forbidden
6791
- | NotFound
6792
- | Conflict
6793
- | FlyIoOpError;
6042
+ export type GenerateSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
6794
6043
  /** Generate a random secret key */
6795
6044
  export const generateSecretKey: API.OperationMethod<
6796
6045
  GenerateSecretKeyRequest,
@@ -6807,18 +6056,14 @@ export const generateSecretKey: API.OperationMethod<
6807
6056
 
6808
6057
  export type GetAppError = Forbidden | NotFound | FlyIoOpError;
6809
6058
  /** Get App Retrieve details about a specific app by its name. */
6810
- export const getApp: API.OperationMethod<
6811
- GetAppRequest,
6812
- App,
6813
- GetAppError,
6814
- FlyIoOpContext
6815
- > = /*@__PURE__*/ API.make(() => ({
6816
- input: GetAppRequest,
6817
- output: App,
6818
- errors: [Forbidden, NotFound],
6819
- protocol: FlyIoProtocol,
6820
- retry: Retry.Retry,
6821
- }));
6059
+ export const getApp: API.OperationMethod<GetAppRequest, App, GetAppError, FlyIoOpContext> =
6060
+ /*@__PURE__*/ API.make(() => ({
6061
+ input: GetAppRequest,
6062
+ output: App,
6063
+ errors: [Forbidden, NotFound],
6064
+ protocol: FlyIoProtocol,
6065
+ retry: Retry.Retry,
6066
+ }));
6822
6067
 
6823
6068
  export type GetAppCertificateError = Forbidden | NotFound | FlyIoOpError;
6824
6069
  /** Get certificate details */
@@ -7075,11 +6320,7 @@ export const listMachineEvents: API.OperationMethod<
7075
6320
  retry: Retry.Retry,
7076
6321
  }));
7077
6322
 
7078
- export type ListMachineProcessesError =
7079
- | BadRequest
7080
- | Forbidden
7081
- | NotFound
7082
- | FlyIoOpError;
6323
+ export type ListMachineProcessesError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7083
6324
  /** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
7084
6325
  export const listMachineProcesses: API.OperationMethod<
7085
6326
  ListMachineProcessesRequest,
@@ -7139,11 +6380,7 @@ export const listMachineVersions: API.OperationMethod<
7139
6380
  retry: Retry.Retry,
7140
6381
  }));
7141
6382
 
7142
- export type ListPostgresError =
7143
- | BadRequest
7144
- | NotFound
7145
- | UnprocessableEntity
7146
- | FlyIoOpError;
6383
+ export type ListPostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
7147
6384
  /** List Postgres Clusters List Managed Postgres clusters for an organization. */
7148
6385
  export const listPostgres: API.OperationMethod<
7149
6386
  ListPostgresRequest,
@@ -7308,11 +6545,7 @@ export const machinesReleaseLease: API.OperationMethod<
7308
6545
  retry: Retry.Retry,
7309
6546
  }));
7310
6547
 
7311
- export type PatchMachineMetadataError =
7312
- | BadRequest
7313
- | Forbidden
7314
- | NotFound
7315
- | FlyIoOpError;
6548
+ export type PatchMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7316
6549
  /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Keys that are not in the request are left untouched. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
7317
6550
  export const patchMachineMetadata: API.OperationMethod<
7318
6551
  PatchMachineMetadataRequest,
@@ -7327,10 +6560,7 @@ export const patchMachineMetadata: API.OperationMethod<
7327
6560
  retry: Retry.Retry,
7328
6561
  }));
7329
6562
 
7330
- export type PostgresQueriesActiveError =
7331
- | NotFound
7332
- | UnprocessableEntity
7333
- | FlyIoOpError;
6563
+ export type PostgresQueriesActiveError = NotFound | UnprocessableEntity | FlyIoOpError;
7334
6564
  /** List Active Queries List active queries in the supplied database. The database query parameter is required and must not be empty or whitespace-only. Returns full query text and durations in seconds. */
7335
6565
  export const postgresQueriesActive: API.OperationMethod<
7336
6566
  PostgresQueriesActiveRequest,
@@ -7345,10 +6575,7 @@ export const postgresQueriesActive: API.OperationMethod<
7345
6575
  retry: Retry.Retry,
7346
6576
  }));
7347
6577
 
7348
- export type PostgresQueriesSlowError =
7349
- | NotFound
7350
- | UnprocessableEntity
7351
- | FlyIoOpError;
6578
+ export type PostgresQueriesSlowError = NotFound | UnprocessableEntity | FlyIoOpError;
7352
6579
  /** List Slow Queries List the top 20 queries by cumulative total execution time, excluding the postgres database. Uses the latest available metrics within the lookback range; statistics are cumulative PostgreSQL counters, not deltas over that range. Returns full query text and execution times in seconds. */
7353
6580
  export const postgresQueriesSlow: API.OperationMethod<
7354
6581
  PostgresQueriesSlowRequest,
@@ -7363,10 +6590,7 @@ export const postgresQueriesSlow: API.OperationMethod<
7363
6590
  retry: Retry.Retry,
7364
6591
  }));
7365
6592
 
7366
- export type PostgresUsersCredentialsError =
7367
- | BadRequest
7368
- | NotFound
7369
- | FlyIoOpError;
6593
+ export type PostgresUsersCredentialsError = BadRequest | NotFound | FlyIoOpError;
7370
6594
  /** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
7371
6595
  export const postgresUsersCredentials: API.OperationMethod<
7372
6596
  PostgresUsersCredentialsRequest,
@@ -7381,11 +6605,7 @@ export const postgresUsersCredentials: API.OperationMethod<
7381
6605
  retry: Retry.Retry,
7382
6606
  }));
7383
6607
 
7384
- export type ReclaimMachineMemoryError =
7385
- | BadRequest
7386
- | Forbidden
7387
- | NotFound
7388
- | FlyIoOpError;
6608
+ export type ReclaimMachineMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7389
6609
  /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
7390
6610
  export const reclaimMachineMemory: API.OperationMethod<
7391
6611
  ReclaimMachineMemoryRequest,
@@ -7400,12 +6620,8 @@ export const reclaimMachineMemory: API.OperationMethod<
7400
6620
  retry: Retry.Retry,
7401
6621
  }));
7402
6622
 
7403
- export type RequestKmsTokenError =
7404
- | BadRequest
7405
- | Forbidden
7406
- | NotFound
7407
- | FlyIoOpError;
7408
- /** 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. */
6623
+ export type RequestKmsTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
6624
+ /** Request a Petsem token for accessing KMS */
7409
6625
  export const requestKmsToken: API.OperationMethod<
7410
6626
  RequestKmsTokenRequest,
7411
6627
  RequestKmsTokenResponse,
@@ -7419,11 +6635,7 @@ export const requestKmsToken: API.OperationMethod<
7419
6635
  retry: Retry.Retry,
7420
6636
  }));
7421
6637
 
7422
- export type RequestOidcTokenError =
7423
- | BadRequest
7424
- | Forbidden
7425
- | NotFound
7426
- | FlyIoOpError;
6638
+ export type RequestOidcTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7427
6639
  /** 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. */
7428
6640
  export const requestOidcToken: API.OperationMethod<
7429
6641
  RequestOidcTokenRequest,
@@ -7438,12 +6650,7 @@ export const requestOidcToken: API.OperationMethod<
7438
6650
  retry: Retry.Retry,
7439
6651
  }));
7440
6652
 
7441
- export type RestartMachineError =
7442
- | BadRequest
7443
- | Forbidden
7444
- | NotFound
7445
- | Conflict
7446
- | FlyIoOpError;
6653
+ export type RestartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7447
6654
  /** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
7448
6655
  export const restartMachine: API.OperationMethod<
7449
6656
  RestartMachineRequest,
@@ -7458,11 +6665,7 @@ export const restartMachine: API.OperationMethod<
7458
6665
  retry: Retry.Retry,
7459
6666
  }));
7460
6667
 
7461
- export type RestorePostgresError =
7462
- | BadRequest
7463
- | NotFound
7464
- | UnprocessableEntity
7465
- | FlyIoOpError;
6668
+ export type RestorePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
7466
6669
  /** Restore Backup or Point in Time to New Cluster Restore a backup, or a point in time within the cluster's PITR recovery window, into a new Managed Postgres cluster. The source cluster is left unchanged, and a new cluster is provisioned asynchronously. */
7467
6670
  export const restorePostgres: API.OperationMethod<
7468
6671
  RestorePostgresRequest,
@@ -7496,11 +6699,7 @@ export const rotatePostgresUserPassword: API.OperationMethod<
7496
6699
  retry: Retry.Retry,
7497
6700
  }));
7498
6701
 
7499
- export type SetMachineMemoryLimitError =
7500
- | BadRequest
7501
- | Forbidden
7502
- | NotFound
7503
- | FlyIoOpError;
6702
+ export type SetMachineMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7504
6703
  /** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
7505
6704
  export const setMachineMemoryLimit: API.OperationMethod<
7506
6705
  SetMachineMemoryLimitRequest,
@@ -7515,12 +6714,7 @@ export const setMachineMemoryLimit: API.OperationMethod<
7515
6714
  retry: Retry.Retry,
7516
6715
  }));
7517
6716
 
7518
- export type SetSecretKeyError =
7519
- | BadRequest
7520
- | Forbidden
7521
- | NotFound
7522
- | Conflict
7523
- | FlyIoOpError;
6717
+ export type SetSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7524
6718
  /** Create or update a secret key */
7525
6719
  export const setSecretKey: API.OperationMethod<
7526
6720
  SetSecretKeyRequest,
@@ -7535,11 +6729,7 @@ export const setSecretKey: API.OperationMethod<
7535
6729
  retry: Retry.Retry,
7536
6730
  }));
7537
6731
 
7538
- export type SignalMachineError =
7539
- | BadRequest
7540
- | Forbidden
7541
- | NotFound
7542
- | FlyIoOpError;
6732
+ export type SignalMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7543
6733
  /** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
7544
6734
  export const signalMachine: API.OperationMethod<
7545
6735
  SignalMachineRequest,
@@ -7554,11 +6744,7 @@ export const signalMachine: API.OperationMethod<
7554
6744
  retry: Retry.Retry,
7555
6745
  }));
7556
6746
 
7557
- export type SignSecretKeyError =
7558
- | BadRequest
7559
- | Forbidden
7560
- | NotFound
7561
- | FlyIoOpError;
6747
+ export type SignSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7562
6748
  /** Sign with a secret key */
7563
6749
  export const signSecretKey: API.OperationMethod<
7564
6750
  SignSecretKeyRequest,
@@ -7602,12 +6788,7 @@ export const startMachine: API.OperationMethod<
7602
6788
  retry: Retry.Retry,
7603
6789
  }));
7604
6790
 
7605
- export type StopMachineError =
7606
- | BadRequest
7607
- | Forbidden
7608
- | NotFound
7609
- | Conflict
7610
- | FlyIoOpError;
6791
+ export type StopMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7611
6792
  /** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
7612
6793
  export const stopMachine: API.OperationMethod<
7613
6794
  StopMachineRequest,
@@ -7622,12 +6803,7 @@ export const stopMachine: API.OperationMethod<
7622
6803
  retry: Retry.Retry,
7623
6804
  }));
7624
6805
 
7625
- export type SuspendMachineError =
7626
- | BadRequest
7627
- | Forbidden
7628
- | NotFound
7629
- | Conflict
7630
- | FlyIoOpError;
6806
+ export type SuspendMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7631
6807
  /** 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. */
7632
6808
  export const suspendMachine: API.OperationMethod<
7633
6809
  SuspendMachineRequest,
@@ -7642,12 +6818,7 @@ export const suspendMachine: API.OperationMethod<
7642
6818
  retry: Retry.Retry,
7643
6819
  }));
7644
6820
 
7645
- export type UncordonMachineError =
7646
- | BadRequest
7647
- | Forbidden
7648
- | NotFound
7649
- | Conflict
7650
- | FlyIoOpError;
6821
+ export type UncordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7651
6822
  /** 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. */
7652
6823
  export const uncordonMachine: API.OperationMethod<
7653
6824
  UncordonMachineRequest,
@@ -7662,12 +6833,7 @@ export const uncordonMachine: API.OperationMethod<
7662
6833
  retry: Retry.Retry,
7663
6834
  }));
7664
6835
 
7665
- export type UpdateMachineError =
7666
- | BadRequest
7667
- | Forbidden
7668
- | NotFound
7669
- | Conflict
7670
- | FlyIoOpError;
6836
+ export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7671
6837
  /** Update Machine Update a Machine's configuration using the details provided in the request body. */
7672
6838
  export const updateMachine: API.OperationMethod<
7673
6839
  UpdateMachineRequest,
@@ -7701,12 +6867,7 @@ export const updatePostgresUserRole: API.OperationMethod<
7701
6867
  retry: Retry.Retry,
7702
6868
  }));
7703
6869
 
7704
- export type UpdateSecretsError =
7705
- | BadRequest
7706
- | Forbidden
7707
- | NotFound
7708
- | Conflict
7709
- | FlyIoOpError;
6870
+ export type UpdateSecretsError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
7710
6871
  /** Update app secrets belonging to an app */
7711
6872
  export const updateSecrets: API.OperationMethod<
7712
6873
  UpdateSecretsRequest,
@@ -7721,11 +6882,7 @@ export const updateSecrets: API.OperationMethod<
7721
6882
  retry: Retry.Retry,
7722
6883
  }));
7723
6884
 
7724
- export type UpdateVolumeError =
7725
- | BadRequest
7726
- | Forbidden
7727
- | NotFound
7728
- | FlyIoOpError;
6885
+ export type UpdateVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7729
6886
  /** Update Volume Update a volume's configuration using the details provided in the request body. */
7730
6887
  export const updateVolume: API.OperationMethod<
7731
6888
  UpdateVolumeRequest,
@@ -7740,11 +6897,7 @@ export const updateVolume: API.OperationMethod<
7740
6897
  retry: Retry.Retry,
7741
6898
  }));
7742
6899
 
7743
- export type UpsertMachineMetadataError =
7744
- | BadRequest
7745
- | Forbidden
7746
- | NotFound
7747
- | FlyIoOpError;
6900
+ export type UpsertMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7748
6901
  /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
7749
6902
  export const upsertMachineMetadata: API.OperationMethod<
7750
6903
  UpsertMachineMetadataRequest,
@@ -7759,11 +6912,7 @@ export const upsertMachineMetadata: API.OperationMethod<
7759
6912
  retry: Retry.Retry,
7760
6913
  }));
7761
6914
 
7762
- export type VerifySecretKeyError =
7763
- | BadRequest
7764
- | Forbidden
7765
- | NotFound
7766
- | FlyIoOpError;
6915
+ export type VerifySecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
7767
6916
  /** Verify with a secret key */
7768
6917
  export const verifySecretKey: API.OperationMethod<
7769
6918
  VerifySecretKeyRequest,