@distilled.cloud/fly-io 1.0.0-rc.12 → 1.0.0-rc.14

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 (50) hide show
  1. package/README.md +34 -0
  2. package/lib/credentials.d.ts +2 -2
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +2 -2
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +1 -1
  8. package/lib/errors.js.map +1 -1
  9. package/lib/protocol.d.ts +4 -4
  10. package/lib/protocol.d.ts.map +1 -1
  11. package/lib/protocol.js +58 -62
  12. package/lib/protocol.js.map +1 -1
  13. package/lib/protocol.test.js +38 -7
  14. package/lib/protocol.test.js.map +1 -1
  15. package/lib/retry.d.ts +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/retry.js +1 -1
  18. package/lib/retry.js.map +1 -1
  19. package/lib/services/addons.d.ts +58 -8
  20. package/lib/services/addons.d.ts.map +1 -1
  21. package/lib/services/addons.js +40 -85
  22. package/lib/services/addons.js.map +1 -1
  23. package/lib/services/machines.d.ts +209 -60
  24. package/lib/services/machines.d.ts.map +1 -1
  25. package/lib/services/machines.js +316 -692
  26. package/lib/services/machines.js.map +1 -1
  27. package/lib/services/mpg.d.ts +2 -2
  28. package/lib/services/mpg.d.ts.map +1 -1
  29. package/lib/services/mpg.js +37 -153
  30. package/lib/services/mpg.js.map +1 -1
  31. package/lib/services/sprites.d.ts +687 -144
  32. package/lib/services/sprites.d.ts.map +1 -1
  33. package/lib/services/sprites.js +667 -183
  34. package/lib/services/sprites.js.map +1 -1
  35. package/lib/sprites-mint.test.js +4 -5
  36. package/lib/sprites-mint.test.js.map +1 -1
  37. package/lib/traits.d.ts.map +1 -1
  38. package/lib/traits.js.map +1 -1
  39. package/package.json +14 -12
  40. package/src/credentials.ts +8 -12
  41. package/src/errors.ts +6 -10
  42. package/src/protocol.test.ts +83 -43
  43. package/src/protocol.ts +119 -135
  44. package/src/retry.ts +2 -8
  45. package/src/services/addons.ts +135 -154
  46. package/src/services/machines.ts +694 -1222
  47. package/src/services/mpg.ts +59 -217
  48. package/src/services/sprites.ts +1573 -354
  49. package/src/sprites-mint.test.ts +25 -67
  50. package/src/traits.ts +5 -12
@@ -1,20 +1,16 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (Fly GraphQL add-ons introspection → smithy). Do not edit.
2
3
  import * as S from "@distilled.cloud/core/schema";
3
4
  import type * as Redacted from "effect/Redacted";
4
- import * as API from "@distilled.cloud/core/api";
5
- import * as T from "../traits.ts";
6
- import {
7
- FlyGraphqlProtocol,
8
- type FlyIoOpError,
9
- type FlyIoOpContext,
10
- } from "../protocol.ts";
11
- import { paginateRelay } from "../pagination.ts";
12
5
  import {
13
6
  CreateExtensionTosAgreementNotAuthorized,
14
7
  FlyIoParseError,
15
8
  UnknownFlyIoError,
16
9
  } from "../errors.ts";
10
+ import { paginateRelay } from "../pagination.ts";
11
+ import { FlyGraphqlProtocol, type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
17
12
  import * as Retry from "../retry.ts";
13
+ import * as T from "../traits.ts";
18
14
 
19
15
  export type { FlyIoOpError, FlyIoOpContext };
20
16
 
@@ -62,9 +58,7 @@ export const AddOnResponseAddOnPlan = /*@__PURE__*/ S.suspend(() =>
62
58
  maxDataSize: S.NullOr(S.String),
63
59
  pricePerMonth: S.NullOr(S.Number),
64
60
  }),
65
- ).annotate({
66
- identifier: "AddOnResponseAddOnPlan",
67
- }) as any as S.Schema<AddOnResponseAddOnPlan>;
61
+ ).annotate({ identifier: "AddOnResponseAddOnPlan" }) as any as S.Schema<AddOnResponseAddOnPlan>;
68
62
 
69
63
  export interface AddOnResponseAddOnProvider {
70
64
  id: string;
@@ -109,8 +103,8 @@ export const AddOnResponseAddOnProvider = /*@__PURE__*/ S.suspend(() =>
109
103
 
110
104
  export interface AddOnResponseOrganization {
111
105
  id: string;
112
- name: string | null;
113
- slug: string | null;
106
+ name: string;
107
+ slug: string;
114
108
  rawSlug: string;
115
109
  paidPlan: boolean;
116
110
  billable: boolean;
@@ -119,8 +113,8 @@ export interface AddOnResponseOrganization {
119
113
  export const AddOnResponseOrganization = /*@__PURE__*/ S.suspend(() =>
120
114
  S.Struct({
121
115
  id: S.String,
122
- name: S.NullOr(S.String),
123
- slug: S.NullOr(S.String),
116
+ name: S.String,
117
+ slug: S.String,
124
118
  rawSlug: S.String,
125
119
  paidPlan: S.Boolean,
126
120
  billable: S.Boolean,
@@ -132,16 +126,14 @@ export const AddOnResponseOrganization = /*@__PURE__*/ S.suspend(() =>
132
126
 
133
127
  export interface AddOnResponseApp {
134
128
  id: string;
135
- name: string | null;
129
+ name: string;
136
130
  }
137
131
  export const AddOnResponseApp = /*@__PURE__*/ S.suspend(() =>
138
132
  S.Struct({
139
133
  id: S.String,
140
- name: S.NullOr(S.String),
134
+ name: S.String,
141
135
  }),
142
- ).annotate({
143
- identifier: "AddOnResponseApp",
144
- }) as any as S.Schema<AddOnResponseApp>;
136
+ ).annotate({ identifier: "AddOnResponseApp" }) as any as S.Schema<AddOnResponseApp>;
145
137
 
146
138
  /** Selection set for `addOn` (unwrapped from the GraphQL `data` envelope). */
147
139
  export interface AddOnResponse {
@@ -192,24 +184,28 @@ export const AddOnResponse = /*@__PURE__*/ S.suspend(() =>
192
184
  ).annotate({ identifier: "AddOnResponse" }) as any as S.Schema<AddOnResponse>;
193
185
 
194
186
  export type AddOnType =
195
- | "arcjet"
196
- | "enveloop"
197
- | "fly_mysql"
198
- | "kubernetes"
199
187
  | "redis"
188
+ | "upstash_redis"
189
+ | "upstash_kafka"
190
+ | "upstash_vector"
200
191
  | "sentry"
192
+ | "kubernetes"
201
193
  | "supabase"
202
194
  | "tigris"
203
- | "upstash_kafka"
204
- | "upstash_redis"
205
- | "upstash_vector"
206
- | "wafris";
195
+ | "enveloop"
196
+ | "wafris"
197
+ | "arcjet"
198
+ | "fly_mysql";
207
199
  export const AddOnType = S.String;
208
200
 
209
201
  export interface AddOnPlansRequest {
202
+ /** Returns the elements in the list that come after the specified cursor. */
210
203
  after?: string | null;
204
+ /** Returns the elements in the list that come before the specified cursor. */
211
205
  before?: string | null;
206
+ /** Returns the first _n_ elements from the list. */
212
207
  first?: number | null;
208
+ /** Returns the last _n_ elements from the list. */
213
209
  last?: number | null;
214
210
  type?: AddOnType | (string & {}) | null;
215
211
  }
@@ -230,9 +226,7 @@ export const AddOnPlansRequest = /*@__PURE__*/ S.suspend(() =>
230
226
  type: "query",
231
227
  }),
232
228
  ),
233
- ).annotate({
234
- identifier: "AddOnPlansRequest",
235
- }) as any as S.Schema<AddOnPlansRequest>;
229
+ ).annotate({ identifier: "AddOnPlansRequest" }) as any as S.Schema<AddOnPlansRequest>;
236
230
 
237
231
  export type AddOnPlansResponseEdgesItemNode = AddOnResponseAddOnPlan;
238
232
  export const AddOnPlansResponseEdgesItemNode = AddOnResponseAddOnPlan;
@@ -250,8 +244,7 @@ export const AddOnPlansResponseEdgesItem = /*@__PURE__*/ S.suspend(() =>
250
244
  identifier: "AddOnPlansResponseEdgesItem",
251
245
  }) as any as S.Schema<AddOnPlansResponseEdgesItem>;
252
246
 
253
- export type AddOnPlansResponseEdgesList =
254
- (AddOnPlansResponseEdgesItem | null)[];
247
+ export type AddOnPlansResponseEdgesList = (AddOnPlansResponseEdgesItem | null)[];
255
248
  export const AddOnPlansResponseEdgesList = /*@__PURE__*/ S.Array(
256
249
  S.NullOr(AddOnPlansResponseEdgesItem),
257
250
  ) as any as S.Schema<AddOnPlansResponseEdgesList>;
@@ -295,9 +288,7 @@ export const AddOnPlansResponse = /*@__PURE__*/ S.suspend(() =>
295
288
  pageInfo: AddOnPlansResponsePageInfo,
296
289
  totalCount: S.Number,
297
290
  }).pipe(T.ResponsePath("addOnPlans")),
298
- ).annotate({
299
- identifier: "AddOnPlansResponse",
300
- }) as any as S.Schema<AddOnPlansResponse>;
291
+ ).annotate({ identifier: "AddOnPlansResponse" }) as any as S.Schema<AddOnPlansResponse>;
301
292
 
302
293
  export interface AddOnProviderRequest {
303
294
  name: string;
@@ -315,9 +306,7 @@ export const AddOnProviderRequest = /*@__PURE__*/ S.suspend(() =>
315
306
  type: "query",
316
307
  }),
317
308
  ),
318
- ).annotate({
319
- identifier: "AddOnProviderRequest",
320
- }) as any as S.Schema<AddOnProviderRequest>;
309
+ ).annotate({ identifier: "AddOnProviderRequest" }) as any as S.Schema<AddOnProviderRequest>;
321
310
 
322
311
  /** Selection set for `addOnProvider` (unwrapped from the GraphQL `data` envelope). */
323
312
  export interface AddOnProviderResponse {
@@ -357,14 +346,16 @@ export const AddOnProviderResponse = /*@__PURE__*/ S.suspend(() =>
357
346
  nameSuffix: S.NullOr(S.String),
358
347
  provisioningInstructions: S.NullOr(S.String),
359
348
  }).pipe(T.ResponsePath("addOnProvider")),
360
- ).annotate({
361
- identifier: "AddOnProviderResponse",
362
- }) as any as S.Schema<AddOnProviderResponse>;
349
+ ).annotate({ identifier: "AddOnProviderResponse" }) as any as S.Schema<AddOnProviderResponse>;
363
350
 
364
351
  export interface AddOnsRequest {
352
+ /** Returns the elements in the list that come after the specified cursor. */
365
353
  after?: string | null;
354
+ /** Returns the elements in the list that come before the specified cursor. */
366
355
  before?: string | null;
356
+ /** Returns the first _n_ elements from the list. */
367
357
  first?: number | null;
358
+ /** Returns the last _n_ elements from the list. */
368
359
  last?: number | null;
369
360
  type?: AddOnType | (string & {}) | null;
370
361
  }
@@ -395,14 +386,11 @@ export const AddOnsResponseEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(
395
386
  export type AddOnsResponseEdgesItemNodeAddOnPlan = AddOnResponseAddOnPlan;
396
387
  export const AddOnsResponseEdgesItemNodeAddOnPlan = AddOnResponseAddOnPlan;
397
388
 
398
- export type AddOnsResponseEdgesItemNodeAddOnProvider =
399
- AddOnResponseAddOnProvider;
400
- export const AddOnsResponseEdgesItemNodeAddOnProvider =
401
- AddOnResponseAddOnProvider;
389
+ export type AddOnsResponseEdgesItemNodeAddOnProvider = AddOnResponseAddOnProvider;
390
+ export const AddOnsResponseEdgesItemNodeAddOnProvider = AddOnResponseAddOnProvider;
402
391
 
403
392
  export type AddOnsResponseEdgesItemNodeOrganization = AddOnResponseOrganization;
404
- export const AddOnsResponseEdgesItemNodeOrganization =
405
- AddOnResponseOrganization;
393
+ export const AddOnsResponseEdgesItemNodeOrganization = AddOnResponseOrganization;
406
394
 
407
395
  export type AddOnsResponseEdgesItemNodeApp = AddOnResponseApp;
408
396
  export const AddOnsResponseEdgesItemNodeApp = AddOnResponseApp;
@@ -465,9 +453,7 @@ export const AddOnsResponseEdgesItem = /*@__PURE__*/ S.suspend(() =>
465
453
  cursor: S.String,
466
454
  node: S.NullOr(AddOnsResponseEdgesItemNode),
467
455
  }),
468
- ).annotate({
469
- identifier: "AddOnsResponseEdgesItem",
470
- }) as any as S.Schema<AddOnsResponseEdgesItem>;
456
+ ).annotate({ identifier: "AddOnsResponseEdgesItem" }) as any as S.Schema<AddOnsResponseEdgesItem>;
471
457
 
472
458
  export type AddOnsResponseEdgesList = (AddOnsResponseEdgesItem | null)[];
473
459
  export const AddOnsResponseEdgesList = /*@__PURE__*/ S.Array(
@@ -516,9 +502,7 @@ export const AddOnsResponseNodesItem = /*@__PURE__*/ S.suspend(() =>
516
502
  updatedAt: S.String,
517
503
  addOnPlanName: S.NullOr(S.String),
518
504
  }),
519
- ).annotate({
520
- identifier: "AddOnsResponseNodesItem",
521
- }) as any as S.Schema<AddOnsResponseNodesItem>;
505
+ ).annotate({ identifier: "AddOnsResponseNodesItem" }) as any as S.Schema<AddOnsResponseNodesItem>;
522
506
 
523
507
  export type AddOnsResponseNodesList = (AddOnsResponseNodesItem | null)[];
524
508
  export const AddOnsResponseNodesList = /*@__PURE__*/ S.Array(
@@ -577,20 +561,29 @@ export const AgreedToProviderTosResponse = /*@__PURE__*/ S.suspend(() =>
577
561
  }) as any as S.Schema<AgreedToProviderTosResponse>;
578
562
 
579
563
  export type StringList = Array<string>;
580
- export const StringList = /*@__PURE__*/ S.Array(
581
- S.String,
582
- ) as any as S.Schema<StringList>;
564
+ export const StringList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<StringList>;
583
565
 
566
+ /** Autogenerated input type of CreateAddOn */
584
567
  export interface CreateAddOnInput {
568
+ /** The add-on type to provision */
585
569
  type: AddOnType | (string & {});
570
+ /** An optional name for the add-on */
586
571
  name?: string | null;
572
+ /** The organization which owns the add-on */
587
573
  organizationId?: string | null;
574
+ /** An optional application ID to attach the add-on to after provisioning */
588
575
  appId?: string | null;
576
+ /** The add-on plan ID */
589
577
  planId?: string | null;
578
+ /** Desired primary region for the add-on */
590
579
  primaryRegion?: string | null;
580
+ /** Desired regions to place replicas in */
591
581
  readRegions?: StringList | null;
582
+ /** Options specific to the add-on */
592
583
  options?: unknown | null;
584
+ /** A provider organization plan to set along with provisioning */
593
585
  organizationPlanId?: string | null;
586
+ /** A unique identifier for the client performing the mutation. */
594
587
  clientMutationId?: string | null;
595
588
  }
596
589
  export const CreateAddOnInput = /*@__PURE__*/ S.suspend(() =>
@@ -606,11 +599,10 @@ export const CreateAddOnInput = /*@__PURE__*/ S.suspend(() =>
606
599
  organizationPlanId: S.optional(S.NullOr(S.String)),
607
600
  clientMutationId: S.optional(S.NullOr(S.String)),
608
601
  }),
609
- ).annotate({
610
- identifier: "CreateAddOnInput",
611
- }) as any as S.Schema<CreateAddOnInput>;
602
+ ).annotate({ identifier: "CreateAddOnInput" }) as any as S.Schema<CreateAddOnInput>;
612
603
 
613
604
  export interface CreateAddOnRequest {
605
+ /** Parameters for CreateAddOn */
614
606
  input: CreateAddOnInput;
615
607
  }
616
608
  export const CreateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
@@ -626,9 +618,7 @@ export const CreateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
626
618
  type: "mutation",
627
619
  }),
628
620
  ),
629
- ).annotate({
630
- identifier: "CreateAddOnRequest",
631
- }) as any as S.Schema<CreateAddOnRequest>;
621
+ ).annotate({ identifier: "CreateAddOnRequest" }) as any as S.Schema<CreateAddOnRequest>;
632
622
 
633
623
  export type CreateAddOnResponseAddOnReadRegionsList = Array<string>;
634
624
  export const CreateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
@@ -672,9 +662,7 @@ export const CreateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() =>
672
662
  updatedAt: S.String,
673
663
  addOnPlanName: S.NullOr(S.String),
674
664
  }),
675
- ).annotate({
676
- identifier: "CreateAddOnResponseAddOn",
677
- }) as any as S.Schema<CreateAddOnResponseAddOn>;
665
+ ).annotate({ identifier: "CreateAddOnResponseAddOn" }) as any as S.Schema<CreateAddOnResponseAddOn>;
678
666
 
679
667
  /** Selection set for `createAddOn` (unwrapped from the GraphQL `data` envelope). */
680
668
  export interface CreateAddOnResponse {
@@ -686,13 +674,15 @@ export const CreateAddOnResponse = /*@__PURE__*/ S.suspend(() =>
686
674
  addOn: CreateAddOnResponseAddOn,
687
675
  clientMutationId: S.NullOr(S.String),
688
676
  }).pipe(T.ResponsePath("createAddOn")),
689
- ).annotate({
690
- identifier: "CreateAddOnResponse",
691
- }) as any as S.Schema<CreateAddOnResponse>;
677
+ ).annotate({ identifier: "CreateAddOnResponse" }) as any as S.Schema<CreateAddOnResponse>;
692
678
 
679
+ /** Autogenerated input type of CreateExtensionTosAgreement */
693
680
  export interface CreateExtensionTosAgreementInput {
681
+ /** The add-on provider name */
694
682
  addOnProviderName: string;
683
+ /** The organization that agrees to the ToS */
695
684
  organizationId?: string | null;
685
+ /** A unique identifier for the client performing the mutation. */
696
686
  clientMutationId?: string | null;
697
687
  }
698
688
  export const CreateExtensionTosAgreementInput = /*@__PURE__*/ S.suspend(() =>
@@ -706,6 +696,7 @@ export const CreateExtensionTosAgreementInput = /*@__PURE__*/ S.suspend(() =>
706
696
  }) as any as S.Schema<CreateExtensionTosAgreementInput>;
707
697
 
708
698
  export interface CreateExtensionTosAgreementRequest {
699
+ /** Parameters for CreateExtensionTosAgreement */
709
700
  input: CreateExtensionTosAgreementInput;
710
701
  }
711
702
  export const CreateExtensionTosAgreementRequest = /*@__PURE__*/ S.suspend(() =>
@@ -737,10 +728,15 @@ export const CreateExtensionTosAgreementResponse = /*@__PURE__*/ S.suspend(() =>
737
728
  identifier: "CreateExtensionTosAgreementResponse",
738
729
  }) as any as S.Schema<CreateExtensionTosAgreementResponse>;
739
730
 
731
+ /** Autogenerated input type of DeleteAddOn */
740
732
  export interface DeleteAddOnInput {
733
+ /** The ID of the add-on to delete */
741
734
  addOnId?: string | null;
735
+ /** The name of the add-on to delete */
742
736
  name?: string | null;
737
+ /** The add-on service provider type */
743
738
  provider?: string | null;
739
+ /** A unique identifier for the client performing the mutation. */
744
740
  clientMutationId?: string | null;
745
741
  }
746
742
  export const DeleteAddOnInput = /*@__PURE__*/ S.suspend(() =>
@@ -750,11 +746,10 @@ export const DeleteAddOnInput = /*@__PURE__*/ S.suspend(() =>
750
746
  provider: S.optional(S.NullOr(S.String)),
751
747
  clientMutationId: S.optional(S.NullOr(S.String)),
752
748
  }),
753
- ).annotate({
754
- identifier: "DeleteAddOnInput",
755
- }) as any as S.Schema<DeleteAddOnInput>;
749
+ ).annotate({ identifier: "DeleteAddOnInput" }) as any as S.Schema<DeleteAddOnInput>;
756
750
 
757
751
  export interface DeleteAddOnRequest {
752
+ /** Parameters for DeleteAddOn */
758
753
  input: DeleteAddOnInput;
759
754
  }
760
755
  export const DeleteAddOnRequest = /*@__PURE__*/ S.suspend(() =>
@@ -770,9 +765,7 @@ export const DeleteAddOnRequest = /*@__PURE__*/ S.suspend(() =>
770
765
  type: "mutation",
771
766
  }),
772
767
  ),
773
- ).annotate({
774
- identifier: "DeleteAddOnRequest",
775
- }) as any as S.Schema<DeleteAddOnRequest>;
768
+ ).annotate({ identifier: "DeleteAddOnRequest" }) as any as S.Schema<DeleteAddOnRequest>;
776
769
 
777
770
  /** Selection set for `deleteAddOn` (unwrapped from the GraphQL `data` envelope). */
778
771
  export interface DeleteAddOnResponse {
@@ -784,9 +777,7 @@ export const DeleteAddOnResponse = /*@__PURE__*/ S.suspend(() =>
784
777
  deletedAddOnName: S.NullOr(S.String),
785
778
  clientMutationId: S.NullOr(S.String),
786
779
  }).pipe(T.ResponsePath("deleteAddOn")),
787
- ).annotate({
788
- identifier: "DeleteAddOnResponse",
789
- }) as any as S.Schema<DeleteAddOnResponse>;
780
+ ).annotate({ identifier: "DeleteAddOnResponse" }) as any as S.Schema<DeleteAddOnResponse>;
790
781
 
791
782
  export interface OrganizationRequest {
792
783
  id?: string | null;
@@ -808,16 +799,12 @@ export const OrganizationRequest = /*@__PURE__*/ S.suspend(() =>
808
799
  type: "query",
809
800
  }),
810
801
  ),
811
- ).annotate({
812
- identifier: "OrganizationRequest",
813
- }) as any as S.Schema<OrganizationRequest>;
802
+ ).annotate({ identifier: "OrganizationRequest" }) as any as S.Schema<OrganizationRequest>;
814
803
 
815
- export type OrganizationResponseAddOnsEdgesItemNodeReadRegionsList =
816
- Array<string>;
817
- export const OrganizationResponseAddOnsEdgesItemNodeReadRegionsList =
818
- /*@__PURE__*/ S.Array(
819
- S.String,
820
- ) as any as S.Schema<OrganizationResponseAddOnsEdgesItemNodeReadRegionsList>;
804
+ export type OrganizationResponseAddOnsEdgesItemNodeReadRegionsList = Array<string>;
805
+ export const OrganizationResponseAddOnsEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(
806
+ S.String,
807
+ ) as any as S.Schema<OrganizationResponseAddOnsEdgesItemNodeReadRegionsList>;
821
808
 
822
809
  export interface OrganizationResponseAddOnsEdgesItemNode {
823
810
  id: string;
@@ -837,28 +824,25 @@ export interface OrganizationResponseAddOnsEdgesItemNode {
837
824
  updatedAt: string;
838
825
  addOnPlanName: string | null;
839
826
  }
840
- export const OrganizationResponseAddOnsEdgesItemNode = /*@__PURE__*/ S.suspend(
841
- () =>
842
- S.Struct({
843
- id: S.String,
844
- name: S.NullOr(S.String),
845
- primaryRegion: S.NullOr(S.String),
846
- readRegions: S.NullOr(
847
- OrganizationResponseAddOnsEdgesItemNodeReadRegionsList,
848
- ),
849
- status: S.NullOr(S.String),
850
- errorMessage: S.NullOr(S.String),
851
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
852
- privateIp: S.NullOr(S.String),
853
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
854
- ssoLink: S.NullOr(S.String),
855
- environment: S.NullOr(S.Unknown),
856
- options: S.NullOr(S.Unknown),
857
- metadata: S.NullOr(S.Unknown),
858
- createdAt: S.String,
859
- updatedAt: S.String,
860
- addOnPlanName: S.NullOr(S.String),
861
- }),
827
+ export const OrganizationResponseAddOnsEdgesItemNode = /*@__PURE__*/ S.suspend(() =>
828
+ S.Struct({
829
+ id: S.String,
830
+ name: S.NullOr(S.String),
831
+ primaryRegion: S.NullOr(S.String),
832
+ readRegions: S.NullOr(OrganizationResponseAddOnsEdgesItemNodeReadRegionsList),
833
+ status: S.NullOr(S.String),
834
+ errorMessage: S.NullOr(S.String),
835
+ publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
836
+ privateIp: S.NullOr(S.String),
837
+ password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
838
+ ssoLink: S.NullOr(S.String),
839
+ environment: S.NullOr(S.Unknown),
840
+ options: S.NullOr(S.Unknown),
841
+ metadata: S.NullOr(S.Unknown),
842
+ createdAt: S.String,
843
+ updatedAt: S.String,
844
+ addOnPlanName: S.NullOr(S.String),
845
+ }),
862
846
  ).annotate({
863
847
  identifier: "OrganizationResponseAddOnsEdgesItemNode",
864
848
  }) as any as S.Schema<OrganizationResponseAddOnsEdgesItemNode>;
@@ -876,8 +860,7 @@ export const OrganizationResponseAddOnsEdgesItem = /*@__PURE__*/ S.suspend(() =>
876
860
  identifier: "OrganizationResponseAddOnsEdgesItem",
877
861
  }) as any as S.Schema<OrganizationResponseAddOnsEdgesItem>;
878
862
 
879
- export type OrganizationResponseAddOnsEdgesList =
880
- (OrganizationResponseAddOnsEdgesItem | null)[];
863
+ export type OrganizationResponseAddOnsEdgesList = (OrganizationResponseAddOnsEdgesItem | null)[];
881
864
  export const OrganizationResponseAddOnsEdgesList = /*@__PURE__*/ S.Array(
882
865
  S.NullOr(OrganizationResponseAddOnsEdgesItem),
883
866
  ) as any as S.Schema<OrganizationResponseAddOnsEdgesList>;
@@ -903,8 +886,8 @@ export const OrganizationResponseAddOns = /*@__PURE__*/ S.suspend(() =>
903
886
  /** Selection set for `organization` (unwrapped from the GraphQL `data` envelope). */
904
887
  export interface OrganizationResponse {
905
888
  id: string;
906
- name: string | null;
907
- slug: string | null;
889
+ name: string;
890
+ slug: string;
908
891
  rawSlug: string;
909
892
  paidPlan: boolean;
910
893
  billable: boolean;
@@ -914,20 +897,21 @@ export interface OrganizationResponse {
914
897
  export const OrganizationResponse = /*@__PURE__*/ S.suspend(() =>
915
898
  S.Struct({
916
899
  id: S.String,
917
- name: S.NullOr(S.String),
918
- slug: S.NullOr(S.String),
900
+ name: S.String,
901
+ slug: S.String,
919
902
  rawSlug: S.String,
920
903
  paidPlan: S.Boolean,
921
904
  billable: S.Boolean,
922
905
  provisionsBetaExtensions: S.Boolean,
923
906
  addOns: OrganizationResponseAddOns,
924
907
  }).pipe(T.ResponsePath("organization")),
925
- ).annotate({
926
- identifier: "OrganizationResponse",
927
- }) as any as S.Schema<OrganizationResponse>;
908
+ ).annotate({ identifier: "OrganizationResponse" }) as any as S.Schema<OrganizationResponse>;
928
909
 
910
+ /** Autogenerated input type of ResetAddOnPassword */
929
911
  export interface ResetAddOnPasswordInput {
912
+ /** The ID of the add-on whose password should be reset */
930
913
  name: string;
914
+ /** A unique identifier for the client performing the mutation. */
931
915
  clientMutationId?: string | null;
932
916
  }
933
917
  export const ResetAddOnPasswordInput = /*@__PURE__*/ S.suspend(() =>
@@ -935,11 +919,10 @@ export const ResetAddOnPasswordInput = /*@__PURE__*/ S.suspend(() =>
935
919
  name: S.String,
936
920
  clientMutationId: S.optional(S.NullOr(S.String)),
937
921
  }),
938
- ).annotate({
939
- identifier: "ResetAddOnPasswordInput",
940
- }) as any as S.Schema<ResetAddOnPasswordInput>;
922
+ ).annotate({ identifier: "ResetAddOnPasswordInput" }) as any as S.Schema<ResetAddOnPasswordInput>;
941
923
 
942
924
  export interface ResetAddOnPasswordRequest {
925
+ /** Parameters for ResetAddOnPassword */
943
926
  input: ResetAddOnPasswordInput;
944
927
  }
945
928
  export const ResetAddOnPasswordRequest = /*@__PURE__*/ S.suspend(() =>
@@ -960,10 +943,9 @@ export const ResetAddOnPasswordRequest = /*@__PURE__*/ S.suspend(() =>
960
943
  }) as any as S.Schema<ResetAddOnPasswordRequest>;
961
944
 
962
945
  export type ResetAddOnPasswordResponseAddOnReadRegionsList = Array<string>;
963
- export const ResetAddOnPasswordResponseAddOnReadRegionsList =
964
- /*@__PURE__*/ S.Array(
965
- S.String,
966
- ) as any as S.Schema<ResetAddOnPasswordResponseAddOnReadRegionsList>;
946
+ export const ResetAddOnPasswordResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
947
+ S.String,
948
+ ) as any as S.Schema<ResetAddOnPasswordResponseAddOnReadRegionsList>;
967
949
 
968
950
  export interface ResetAddOnPasswordResponseAddOn {
969
951
  id: string;
@@ -1020,15 +1002,25 @@ export const ResetAddOnPasswordResponse = /*@__PURE__*/ S.suspend(() =>
1020
1002
  identifier: "ResetAddOnPasswordResponse",
1021
1003
  }) as any as S.Schema<ResetAddOnPasswordResponse>;
1022
1004
 
1005
+ /** Autogenerated input type of UpdateAddOn */
1023
1006
  export interface UpdateAddOnInput {
1007
+ /** The add-on ID to update */
1024
1008
  addOnId?: string | null;
1009
+ /** The add-on name to update */
1025
1010
  name?: string | null;
1011
+ /** The add-on service provider type */
1026
1012
  provider?: string | null;
1013
+ /** The add-on plan ID */
1027
1014
  planId?: string | null;
1015
+ /** Desired regions to place replicas in */
1028
1016
  readRegions?: StringList | null;
1017
+ /** Options specific to the add-on */
1029
1018
  options?: unknown | null;
1019
+ /** Metadata for the add-on */
1030
1020
  metadata?: unknown | null;
1021
+ /** Explicit ProdPack intent for Upstash Redis. Can be sent with or without a plan change; when absent, ProdPack is left untouched. */
1031
1022
  prodPack?: boolean | null;
1023
+ /** A unique identifier for the client performing the mutation. */
1032
1024
  clientMutationId?: string | null;
1033
1025
  }
1034
1026
  export const UpdateAddOnInput = /*@__PURE__*/ S.suspend(() =>
@@ -1043,11 +1035,10 @@ export const UpdateAddOnInput = /*@__PURE__*/ S.suspend(() =>
1043
1035
  prodPack: S.optional(S.NullOr(S.Boolean)),
1044
1036
  clientMutationId: S.optional(S.NullOr(S.String)),
1045
1037
  }),
1046
- ).annotate({
1047
- identifier: "UpdateAddOnInput",
1048
- }) as any as S.Schema<UpdateAddOnInput>;
1038
+ ).annotate({ identifier: "UpdateAddOnInput" }) as any as S.Schema<UpdateAddOnInput>;
1049
1039
 
1050
1040
  export interface UpdateAddOnRequest {
1041
+ /** Parameters for UpdateAddOn */
1051
1042
  input: UpdateAddOnInput;
1052
1043
  }
1053
1044
  export const UpdateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
@@ -1063,9 +1054,7 @@ export const UpdateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
1063
1054
  type: "mutation",
1064
1055
  }),
1065
1056
  ),
1066
- ).annotate({
1067
- identifier: "UpdateAddOnRequest",
1068
- }) as any as S.Schema<UpdateAddOnRequest>;
1057
+ ).annotate({ identifier: "UpdateAddOnRequest" }) as any as S.Schema<UpdateAddOnRequest>;
1069
1058
 
1070
1059
  export type UpdateAddOnResponseAddOnReadRegionsList = Array<string>;
1071
1060
  export const UpdateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
@@ -1109,9 +1098,7 @@ export const UpdateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() =>
1109
1098
  updatedAt: S.String,
1110
1099
  addOnPlanName: S.NullOr(S.String),
1111
1100
  }),
1112
- ).annotate({
1113
- identifier: "UpdateAddOnResponseAddOn",
1114
- }) as any as S.Schema<UpdateAddOnResponseAddOn>;
1101
+ ).annotate({ identifier: "UpdateAddOnResponseAddOn" }) as any as S.Schema<UpdateAddOnResponseAddOn>;
1115
1102
 
1116
1103
  /** Selection set for `updateAddOn` (unwrapped from the GraphQL `data` envelope). */
1117
1104
  export interface UpdateAddOnResponse {
@@ -1123,25 +1110,21 @@ export const UpdateAddOnResponse = /*@__PURE__*/ S.suspend(() =>
1123
1110
  addOn: UpdateAddOnResponseAddOn,
1124
1111
  clientMutationId: S.NullOr(S.String),
1125
1112
  }).pipe(T.ResponsePath("updateAddOn")),
1126
- ).annotate({
1127
- identifier: "UpdateAddOnResponse",
1128
- }) as any as S.Schema<UpdateAddOnResponse>;
1113
+ ).annotate({ identifier: "UpdateAddOnResponse" }) as any as S.Schema<UpdateAddOnResponse>;
1129
1114
 
1130
1115
  export type AddOnError = FlyIoOpError;
1131
- export const addOn: API.OperationMethod<
1132
- AddOnRequest,
1133
- AddOnResponse,
1134
- AddOnError,
1135
- FlyIoOpContext
1136
- > = /*@__PURE__*/ API.make(() => ({
1137
- input: AddOnRequest,
1138
- output: AddOnResponse,
1139
- errors: [UnknownFlyIoError, FlyIoParseError],
1140
- protocol: FlyGraphqlProtocol,
1141
- retry: Retry.Retry,
1142
- }));
1116
+ /** Find an add-on by ID or name */
1117
+ export const addOn: API.OperationMethod<AddOnRequest, AddOnResponse, AddOnError, FlyIoOpContext> =
1118
+ /*@__PURE__*/ API.make(() => ({
1119
+ input: AddOnRequest,
1120
+ output: AddOnResponse,
1121
+ errors: [UnknownFlyIoError, FlyIoParseError],
1122
+ protocol: FlyGraphqlProtocol,
1123
+ retry: Retry.Retry,
1124
+ }));
1143
1125
 
1144
1126
  export type AddOnPlansError = FlyIoOpError;
1127
+ /** List add-on service plans */
1145
1128
  export const addOnPlans: API.PaginatedOperationMethod<
1146
1129
  AddOnPlansRequest,
1147
1130
  AddOnPlansResponse,
@@ -1182,6 +1165,7 @@ export const addOnProvider: API.OperationMethod<
1182
1165
  }));
1183
1166
 
1184
1167
  export type AddOnsError = FlyIoOpError;
1168
+ /** List add-ons associated with an organization */
1185
1169
  export const addOns: API.PaginatedOperationMethod<
1186
1170
  AddOnsRequest,
1187
1171
  AddOnsResponse,
@@ -1247,11 +1231,7 @@ export const createExtensionTosAgreement: API.OperationMethod<
1247
1231
  > = /*@__PURE__*/ API.make(() => ({
1248
1232
  input: CreateExtensionTosAgreementRequest,
1249
1233
  output: CreateExtensionTosAgreementResponse,
1250
- errors: [
1251
- CreateExtensionTosAgreementNotAuthorized,
1252
- UnknownFlyIoError,
1253
- FlyIoParseError,
1254
- ],
1234
+ errors: [CreateExtensionTosAgreementNotAuthorized, UnknownFlyIoError, FlyIoParseError],
1255
1235
  protocol: FlyGraphqlProtocol,
1256
1236
  retry: Retry.Retry,
1257
1237
  }));
@@ -1271,6 +1251,7 @@ export const deleteAddOn: API.OperationMethod<
1271
1251
  }));
1272
1252
 
1273
1253
  export type OrganizationError = FlyIoOpError;
1254
+ /** Find an organization by ID */
1274
1255
  export const organization: API.OperationMethod<
1275
1256
  OrganizationRequest,
1276
1257
  OrganizationResponse,