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

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 (61) hide show
  1. package/lib/credentials.d.ts +3 -3
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +43 -38
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +24 -24
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +37 -37
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +31 -31
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +3 -3
  13. package/lib/protocol.d.ts +2 -2
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +89 -66
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +26 -25
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/addons.d.ts +0 -65
  22. package/lib/services/addons.d.ts.map +1 -1
  23. package/lib/services/addons.js +54 -561
  24. package/lib/services/machines.d.ts +25 -444
  25. package/lib/services/machines.d.ts.map +1 -1
  26. package/lib/services/machines.js +317 -2726
  27. package/lib/services/mpg.d.ts +1 -67
  28. package/lib/services/mpg.d.ts.map +1 -1
  29. package/lib/services/mpg.js +75 -448
  30. package/lib/services/sprites.d.ts +1 -125
  31. package/lib/services/sprites.d.ts.map +1 -1
  32. package/lib/services/sprites.js +146 -884
  33. package/lib/traits.d.ts.map +1 -1
  34. package/lib/traits.js +14 -14
  35. package/lib/traits.js.map +1 -1
  36. package/package.json +13 -9
  37. package/src/credentials.ts +18 -15
  38. package/src/errors.ts +26 -28
  39. package/src/index.ts +2 -2
  40. package/src/pagination.ts +1 -1
  41. package/src/protocol.ts +67 -36
  42. package/src/retry.ts +6 -4
  43. package/src/services/addons.ts +593 -692
  44. package/src/services/machines.ts +3332 -3364
  45. package/src/services/mpg.ts +582 -519
  46. package/src/services/sprites.ts +1008 -948
  47. package/src/traits.ts +8 -4
  48. package/lib/protocol.test.d.ts +0 -2
  49. package/lib/protocol.test.d.ts.map +0 -1
  50. package/lib/protocol.test.js +0 -126
  51. package/lib/protocol.test.js.map +0 -1
  52. package/lib/services/addons.js.map +0 -1
  53. package/lib/services/machines.js.map +0 -1
  54. package/lib/services/mpg.js.map +0 -1
  55. package/lib/services/sprites.js.map +0 -1
  56. package/lib/sprites-mint.test.d.ts +0 -2
  57. package/lib/sprites-mint.test.d.ts.map +0 -1
  58. package/lib/sprites-mint.test.js +0 -169
  59. package/lib/sprites-mint.test.js.map +0 -1
  60. package/src/protocol.test.ts +0 -214
  61. package/src/sprites-mint.test.ts +0 -228
@@ -1,6 +1,7 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (Fly GraphQL add-ons introspection → smithy). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (Fly GraphQL add-ons introspection -> smithy). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import type * as Redacted from "effect/Redacted";
5
6
  import {
6
7
  CreateExtensionTosAgreementNotAuthorized,
@@ -11,6 +12,8 @@ import { paginateRelay } from "../pagination.ts";
11
12
  import { FlyGraphqlProtocol, type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
12
13
  import * as Retry from "../retry.ts";
13
14
  import * as T from "../traits.ts";
15
+ // Schema table, filled on first reach (see __S at the end).
16
+ const __s: any[] = [];
14
17
 
15
18
  export type { FlyIoOpError, FlyIoOpContext };
16
19
 
@@ -19,28 +22,7 @@ export interface AddOnRequest {
19
22
  name?: string | null;
20
23
  provider?: string | null;
21
24
  }
22
- export const AddOnRequest = /*@__PURE__*/ S.suspend(() =>
23
- S.Struct({
24
- id: S.optional(S.NullOr(S.String)),
25
- name: S.optional(S.NullOr(S.String)),
26
- provider: S.optional(S.NullOr(S.String)),
27
- })
28
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
29
- .pipe(
30
- T.GraphQLOp({
31
- query:
32
- "query addOn($id: ID, $name: String, $provider: String) {\n addOn(id: $id, name: $name, provider: $provider) {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlan {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n addOnPlanName\n addOnProvider {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n organization {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n }\n app {\n id\n name\n }\n }\n}",
33
- operationName: "addOn",
34
- type: "query",
35
- }),
36
- ),
37
- ).annotate({ identifier: "AddOnRequest" }) as any as S.Schema<AddOnRequest>;
38
-
39
25
  export type AddOnResponseReadRegionsList = Array<string>;
40
- export const AddOnResponseReadRegionsList = /*@__PURE__*/ S.Array(
41
- S.String,
42
- ) as any as S.Schema<AddOnResponseReadRegionsList>;
43
-
44
26
  export interface AddOnResponseAddOnPlan {
45
27
  id: string;
46
28
  name: string | null;
@@ -49,17 +31,6 @@ export interface AddOnResponseAddOnPlan {
49
31
  maxDataSize: string | null;
50
32
  pricePerMonth: number | null;
51
33
  }
52
- export const AddOnResponseAddOnPlan = /*@__PURE__*/ S.suspend(() =>
53
- S.Struct({
54
- id: S.String,
55
- name: S.NullOr(S.String),
56
- displayName: S.NullOr(S.String),
57
- description: S.NullOr(S.String),
58
- maxDataSize: S.NullOr(S.String),
59
- pricePerMonth: S.NullOr(S.Number),
60
- }),
61
- ).annotate({ identifier: "AddOnResponseAddOnPlan" }) as any as S.Schema<AddOnResponseAddOnPlan>;
62
-
63
34
  export interface AddOnResponseAddOnProvider {
64
35
  id: string;
65
36
  name: string | null;
@@ -78,29 +49,6 @@ export interface AddOnResponseAddOnProvider {
78
49
  nameSuffix: string | null;
79
50
  provisioningInstructions: string | null;
80
51
  }
81
- export const AddOnResponseAddOnProvider = /*@__PURE__*/ S.suspend(() =>
82
- S.Struct({
83
- id: S.String,
84
- name: S.NullOr(S.String),
85
- displayName: S.NullOr(S.String),
86
- tosUrl: S.NullOr(S.String),
87
- tosAgreement: S.NullOr(S.String),
88
- asyncProvisioning: S.Boolean,
89
- autoProvision: S.Boolean,
90
- beta: S.Boolean,
91
- internal: S.Boolean,
92
- selectName: S.Boolean,
93
- selectRegion: S.Boolean,
94
- selectReplicaRegions: S.Boolean,
95
- detectPlatform: S.Boolean,
96
- resourceName: S.String,
97
- nameSuffix: S.NullOr(S.String),
98
- provisioningInstructions: S.NullOr(S.String),
99
- }),
100
- ).annotate({
101
- identifier: "AddOnResponseAddOnProvider",
102
- }) as any as S.Schema<AddOnResponseAddOnProvider>;
103
-
104
52
  export interface AddOnResponseOrganization {
105
53
  id: string;
106
54
  name: string;
@@ -110,31 +58,10 @@ export interface AddOnResponseOrganization {
110
58
  billable: boolean;
111
59
  provisionsBetaExtensions: boolean;
112
60
  }
113
- export const AddOnResponseOrganization = /*@__PURE__*/ S.suspend(() =>
114
- S.Struct({
115
- id: S.String,
116
- name: S.String,
117
- slug: S.String,
118
- rawSlug: S.String,
119
- paidPlan: S.Boolean,
120
- billable: S.Boolean,
121
- provisionsBetaExtensions: S.Boolean,
122
- }),
123
- ).annotate({
124
- identifier: "AddOnResponseOrganization",
125
- }) as any as S.Schema<AddOnResponseOrganization>;
126
-
127
61
  export interface AddOnResponseApp {
128
62
  id: string;
129
63
  name: string;
130
64
  }
131
- export const AddOnResponseApp = /*@__PURE__*/ S.suspend(() =>
132
- S.Struct({
133
- id: S.String,
134
- name: S.String,
135
- }),
136
- ).annotate({ identifier: "AddOnResponseApp" }) as any as S.Schema<AddOnResponseApp>;
137
-
138
65
  /** Selection set for `addOn` (unwrapped from the GraphQL `data` envelope). */
139
66
  export interface AddOnResponse {
140
67
  id: string;
@@ -158,31 +85,6 @@ export interface AddOnResponse {
158
85
  organization: AddOnResponseOrganization;
159
86
  app: AddOnResponseApp | null;
160
87
  }
161
- export const AddOnResponse = /*@__PURE__*/ S.suspend(() =>
162
- S.Struct({
163
- id: S.String,
164
- name: S.NullOr(S.String),
165
- primaryRegion: S.NullOr(S.String),
166
- readRegions: S.NullOr(AddOnResponseReadRegionsList),
167
- status: S.NullOr(S.String),
168
- errorMessage: S.NullOr(S.String),
169
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
170
- privateIp: S.NullOr(S.String),
171
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
172
- ssoLink: S.NullOr(S.String),
173
- environment: S.NullOr(S.Unknown),
174
- options: S.NullOr(S.Unknown),
175
- metadata: S.NullOr(S.Unknown),
176
- createdAt: S.String,
177
- updatedAt: S.String,
178
- addOnPlan: S.NullOr(AddOnResponseAddOnPlan),
179
- addOnPlanName: S.NullOr(S.String),
180
- addOnProvider: S.NullOr(AddOnResponseAddOnProvider),
181
- organization: AddOnResponseOrganization,
182
- app: S.NullOr(AddOnResponseApp),
183
- }).pipe(T.ResponsePath("addOn")),
184
- ).annotate({ identifier: "AddOnResponse" }) as any as S.Schema<AddOnResponse>;
185
-
186
88
  export type AddOnType =
187
89
  | "redis"
188
90
  | "upstash_redis"
@@ -196,8 +98,6 @@ export type AddOnType =
196
98
  | "wafris"
197
99
  | "arcjet"
198
100
  | "fly_mysql";
199
- export const AddOnType = S.String;
200
-
201
101
  export interface AddOnPlansRequest {
202
102
  /** Returns the elements in the list that come after the specified cursor. */
203
103
  after?: string | null;
@@ -209,71 +109,20 @@ export interface AddOnPlansRequest {
209
109
  last?: number | null;
210
110
  type?: AddOnType | (string & {}) | null;
211
111
  }
212
- export const AddOnPlansRequest = /*@__PURE__*/ S.suspend(() =>
213
- S.Struct({
214
- after: S.optional(S.NullOr(S.String)),
215
- before: S.optional(S.NullOr(S.String)),
216
- first: S.optional(S.NullOr(S.Number)),
217
- last: S.optional(S.NullOr(S.Number)),
218
- type: S.optional(S.NullOr(AddOnType)),
219
- })
220
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
221
- .pipe(
222
- T.GraphQLOp({
223
- query:
224
- "query addOnPlans($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOnPlans(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n }\n nodes {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
225
- operationName: "addOnPlans",
226
- type: "query",
227
- }),
228
- ),
229
- ).annotate({ identifier: "AddOnPlansRequest" }) as any as S.Schema<AddOnPlansRequest>;
230
-
231
112
  export type AddOnPlansResponseEdgesItemNode = AddOnResponseAddOnPlan;
232
- export const AddOnPlansResponseEdgesItemNode = AddOnResponseAddOnPlan;
233
-
234
113
  export interface AddOnPlansResponseEdgesItem {
235
114
  cursor: string;
236
115
  node: AddOnResponseAddOnPlan | null;
237
116
  }
238
- export const AddOnPlansResponseEdgesItem = /*@__PURE__*/ S.suspend(() =>
239
- S.Struct({
240
- cursor: S.String,
241
- node: S.NullOr(AddOnResponseAddOnPlan),
242
- }),
243
- ).annotate({
244
- identifier: "AddOnPlansResponseEdgesItem",
245
- }) as any as S.Schema<AddOnPlansResponseEdgesItem>;
246
-
247
117
  export type AddOnPlansResponseEdgesList = (AddOnPlansResponseEdgesItem | null)[];
248
- export const AddOnPlansResponseEdgesList = /*@__PURE__*/ S.Array(
249
- S.NullOr(AddOnPlansResponseEdgesItem),
250
- ) as any as S.Schema<AddOnPlansResponseEdgesList>;
251
-
252
118
  export type AddOnPlansResponseNodesItem = AddOnResponseAddOnPlan;
253
- export const AddOnPlansResponseNodesItem = AddOnResponseAddOnPlan;
254
-
255
119
  export type AddOnPlansResponseNodesList = (AddOnResponseAddOnPlan | null)[];
256
- export const AddOnPlansResponseNodesList = /*@__PURE__*/ S.Array(
257
- S.NullOr(AddOnResponseAddOnPlan),
258
- ) as any as S.Schema<AddOnPlansResponseNodesList>;
259
-
260
120
  export interface AddOnPlansResponsePageInfo {
261
121
  hasNextPage: boolean;
262
122
  hasPreviousPage: boolean;
263
123
  startCursor: string | null;
264
124
  endCursor: string | null;
265
125
  }
266
- export const AddOnPlansResponsePageInfo = /*@__PURE__*/ S.suspend(() =>
267
- S.Struct({
268
- hasNextPage: S.Boolean,
269
- hasPreviousPage: S.Boolean,
270
- startCursor: S.NullOr(S.String),
271
- endCursor: S.NullOr(S.String),
272
- }),
273
- ).annotate({
274
- identifier: "AddOnPlansResponsePageInfo",
275
- }) as any as S.Schema<AddOnPlansResponsePageInfo>;
276
-
277
126
  /** Selection set for `addOnPlans` (unwrapped from the GraphQL `data` envelope). */
278
127
  export interface AddOnPlansResponse {
279
128
  edges: AddOnPlansResponseEdgesList | null;
@@ -281,33 +130,9 @@ export interface AddOnPlansResponse {
281
130
  pageInfo: AddOnPlansResponsePageInfo;
282
131
  totalCount: number;
283
132
  }
284
- export const AddOnPlansResponse = /*@__PURE__*/ S.suspend(() =>
285
- S.Struct({
286
- edges: S.NullOr(AddOnPlansResponseEdgesList),
287
- nodes: S.NullOr(AddOnPlansResponseNodesList),
288
- pageInfo: AddOnPlansResponsePageInfo,
289
- totalCount: S.Number,
290
- }).pipe(T.ResponsePath("addOnPlans")),
291
- ).annotate({ identifier: "AddOnPlansResponse" }) as any as S.Schema<AddOnPlansResponse>;
292
-
293
133
  export interface AddOnProviderRequest {
294
134
  name: string;
295
135
  }
296
- export const AddOnProviderRequest = /*@__PURE__*/ S.suspend(() =>
297
- S.Struct({
298
- name: S.String,
299
- })
300
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
301
- .pipe(
302
- T.GraphQLOp({
303
- query:
304
- "query addOnProvider($name: String!) {\n addOnProvider(name: $name) {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n}",
305
- operationName: "addOnProvider",
306
- type: "query",
307
- }),
308
- ),
309
- ).annotate({ identifier: "AddOnProviderRequest" }) as any as S.Schema<AddOnProviderRequest>;
310
-
311
136
  /** Selection set for `addOnProvider` (unwrapped from the GraphQL `data` envelope). */
312
137
  export interface AddOnProviderResponse {
313
138
  id: string;
@@ -327,27 +152,6 @@ export interface AddOnProviderResponse {
327
152
  nameSuffix: string | null;
328
153
  provisioningInstructions: string | null;
329
154
  }
330
- export const AddOnProviderResponse = /*@__PURE__*/ S.suspend(() =>
331
- S.Struct({
332
- id: S.String,
333
- name: S.NullOr(S.String),
334
- displayName: S.NullOr(S.String),
335
- tosUrl: S.NullOr(S.String),
336
- tosAgreement: S.NullOr(S.String),
337
- asyncProvisioning: S.Boolean,
338
- autoProvision: S.Boolean,
339
- beta: S.Boolean,
340
- internal: S.Boolean,
341
- selectName: S.Boolean,
342
- selectRegion: S.Boolean,
343
- selectReplicaRegions: S.Boolean,
344
- detectPlatform: S.Boolean,
345
- resourceName: S.String,
346
- nameSuffix: S.NullOr(S.String),
347
- provisioningInstructions: S.NullOr(S.String),
348
- }).pipe(T.ResponsePath("addOnProvider")),
349
- ).annotate({ identifier: "AddOnProviderResponse" }) as any as S.Schema<AddOnProviderResponse>;
350
-
351
155
  export interface AddOnsRequest {
352
156
  /** Returns the elements in the list that come after the specified cursor. */
353
157
  after?: string | null;
@@ -359,42 +163,11 @@ export interface AddOnsRequest {
359
163
  last?: number | null;
360
164
  type?: AddOnType | (string & {}) | null;
361
165
  }
362
- export const AddOnsRequest = /*@__PURE__*/ S.suspend(() =>
363
- S.Struct({
364
- after: S.optional(S.NullOr(S.String)),
365
- before: S.optional(S.NullOr(S.String)),
366
- first: S.optional(S.NullOr(S.Number)),
367
- last: S.optional(S.NullOr(S.Number)),
368
- type: S.optional(S.NullOr(AddOnType)),
369
- })
370
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
371
- .pipe(
372
- T.GraphQLOp({
373
- query:
374
- "query addOns($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOns(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlan {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n addOnPlanName\n addOnProvider {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n organization {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n }\n app {\n id\n name\n }\n }\n }\n nodes {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
375
- operationName: "addOns",
376
- type: "query",
377
- }),
378
- ),
379
- ).annotate({ identifier: "AddOnsRequest" }) as any as S.Schema<AddOnsRequest>;
380
-
381
166
  export type AddOnsResponseEdgesItemNodeReadRegionsList = Array<string>;
382
- export const AddOnsResponseEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(
383
- S.String,
384
- ) as any as S.Schema<AddOnsResponseEdgesItemNodeReadRegionsList>;
385
-
386
167
  export type AddOnsResponseEdgesItemNodeAddOnPlan = AddOnResponseAddOnPlan;
387
- export const AddOnsResponseEdgesItemNodeAddOnPlan = AddOnResponseAddOnPlan;
388
-
389
168
  export type AddOnsResponseEdgesItemNodeAddOnProvider = AddOnResponseAddOnProvider;
390
- export const AddOnsResponseEdgesItemNodeAddOnProvider = AddOnResponseAddOnProvider;
391
-
392
169
  export type AddOnsResponseEdgesItemNodeOrganization = AddOnResponseOrganization;
393
- export const AddOnsResponseEdgesItemNodeOrganization = AddOnResponseOrganization;
394
-
395
170
  export type AddOnsResponseEdgesItemNodeApp = AddOnResponseApp;
396
- export const AddOnsResponseEdgesItemNodeApp = AddOnResponseApp;
397
-
398
171
  export interface AddOnsResponseEdgesItemNode {
399
172
  id: string;
400
173
  name: string | null;
@@ -417,54 +190,12 @@ export interface AddOnsResponseEdgesItemNode {
417
190
  organization: AddOnResponseOrganization;
418
191
  app: AddOnResponseApp | null;
419
192
  }
420
- export const AddOnsResponseEdgesItemNode = /*@__PURE__*/ S.suspend(() =>
421
- S.Struct({
422
- id: S.String,
423
- name: S.NullOr(S.String),
424
- primaryRegion: S.NullOr(S.String),
425
- readRegions: S.NullOr(AddOnsResponseEdgesItemNodeReadRegionsList),
426
- status: S.NullOr(S.String),
427
- errorMessage: S.NullOr(S.String),
428
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
429
- privateIp: S.NullOr(S.String),
430
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
431
- ssoLink: S.NullOr(S.String),
432
- environment: S.NullOr(S.Unknown),
433
- options: S.NullOr(S.Unknown),
434
- metadata: S.NullOr(S.Unknown),
435
- createdAt: S.String,
436
- updatedAt: S.String,
437
- addOnPlan: S.NullOr(AddOnResponseAddOnPlan),
438
- addOnPlanName: S.NullOr(S.String),
439
- addOnProvider: S.NullOr(AddOnResponseAddOnProvider),
440
- organization: AddOnResponseOrganization,
441
- app: S.NullOr(AddOnResponseApp),
442
- }),
443
- ).annotate({
444
- identifier: "AddOnsResponseEdgesItemNode",
445
- }) as any as S.Schema<AddOnsResponseEdgesItemNode>;
446
-
447
193
  export interface AddOnsResponseEdgesItem {
448
194
  cursor: string;
449
195
  node: AddOnsResponseEdgesItemNode | null;
450
196
  }
451
- export const AddOnsResponseEdgesItem = /*@__PURE__*/ S.suspend(() =>
452
- S.Struct({
453
- cursor: S.String,
454
- node: S.NullOr(AddOnsResponseEdgesItemNode),
455
- }),
456
- ).annotate({ identifier: "AddOnsResponseEdgesItem" }) as any as S.Schema<AddOnsResponseEdgesItem>;
457
-
458
197
  export type AddOnsResponseEdgesList = (AddOnsResponseEdgesItem | null)[];
459
- export const AddOnsResponseEdgesList = /*@__PURE__*/ S.Array(
460
- S.NullOr(AddOnsResponseEdgesItem),
461
- ) as any as S.Schema<AddOnsResponseEdgesList>;
462
-
463
198
  export type AddOnsResponseNodesItemReadRegionsList = Array<string>;
464
- export const AddOnsResponseNodesItemReadRegionsList = /*@__PURE__*/ S.Array(
465
- S.String,
466
- ) as any as S.Schema<AddOnsResponseNodesItemReadRegionsList>;
467
-
468
199
  export interface AddOnsResponseNodesItem {
469
200
  id: string;
470
201
  name: string | null;
@@ -483,35 +214,8 @@ export interface AddOnsResponseNodesItem {
483
214
  updatedAt: string;
484
215
  addOnPlanName: string | null;
485
216
  }
486
- export const AddOnsResponseNodesItem = /*@__PURE__*/ S.suspend(() =>
487
- S.Struct({
488
- id: S.String,
489
- name: S.NullOr(S.String),
490
- primaryRegion: S.NullOr(S.String),
491
- readRegions: S.NullOr(AddOnsResponseNodesItemReadRegionsList),
492
- status: S.NullOr(S.String),
493
- errorMessage: S.NullOr(S.String),
494
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
495
- privateIp: S.NullOr(S.String),
496
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
497
- ssoLink: S.NullOr(S.String),
498
- environment: S.NullOr(S.Unknown),
499
- options: S.NullOr(S.Unknown),
500
- metadata: S.NullOr(S.Unknown),
501
- createdAt: S.String,
502
- updatedAt: S.String,
503
- addOnPlanName: S.NullOr(S.String),
504
- }),
505
- ).annotate({ identifier: "AddOnsResponseNodesItem" }) as any as S.Schema<AddOnsResponseNodesItem>;
506
-
507
217
  export type AddOnsResponseNodesList = (AddOnsResponseNodesItem | null)[];
508
- export const AddOnsResponseNodesList = /*@__PURE__*/ S.Array(
509
- S.NullOr(AddOnsResponseNodesItem),
510
- ) as any as S.Schema<AddOnsResponseNodesList>;
511
-
512
218
  export type AddOnsResponsePageInfo = AddOnPlansResponsePageInfo;
513
- export const AddOnsResponsePageInfo = AddOnPlansResponsePageInfo;
514
-
515
219
  /** Selection set for `addOns` (unwrapped from the GraphQL `data` envelope). */
516
220
  export interface AddOnsResponse {
517
221
  edges: AddOnsResponseEdgesList | null;
@@ -519,50 +223,12 @@ export interface AddOnsResponse {
519
223
  pageInfo: AddOnPlansResponsePageInfo;
520
224
  totalCount: number;
521
225
  }
522
- export const AddOnsResponse = /*@__PURE__*/ S.suspend(() =>
523
- S.Struct({
524
- edges: S.NullOr(AddOnsResponseEdgesList),
525
- nodes: S.NullOr(AddOnsResponseNodesList),
526
- pageInfo: AddOnPlansResponsePageInfo,
527
- totalCount: S.Number,
528
- }).pipe(T.ResponsePath("addOns")),
529
- ).annotate({ identifier: "AddOnsResponse" }) as any as S.Schema<AddOnsResponse>;
530
-
531
226
  export interface AgreedToProviderTosRequest {
532
227
  slug: string;
533
228
  providerName: string;
534
229
  }
535
- export const AgreedToProviderTosRequest = /*@__PURE__*/ S.suspend(() =>
536
- S.Struct({
537
- slug: S.String,
538
- providerName: S.String,
539
- })
540
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
541
- .pipe(
542
- T.GraphQLOp({
543
- query:
544
- "query agreedToProviderTos($slug: String!, $providerName: String!) {\n organization(slug: $slug) {\n agreedToProviderTos(providerName: $providerName)\n }\n}",
545
- operationName: "agreedToProviderTos",
546
- type: "query",
547
- }),
548
- ),
549
- ).annotate({
550
- identifier: "AgreedToProviderTosRequest",
551
- }) as any as S.Schema<AgreedToProviderTosRequest>;
552
-
553
230
  export type AgreedToProviderTosResponse = boolean | null;
554
- export const AgreedToProviderTosResponse = /*@__PURE__*/ S.suspend(() =>
555
- S.NullOr(S.Boolean).pipe(
556
- T.GraphQLPayloadRoot(),
557
- T.ResponsePath("organization.agreedToProviderTos"),
558
- ),
559
- ).annotate({
560
- identifier: "AgreedToProviderTosResponse",
561
- }) as any as S.Schema<AgreedToProviderTosResponse>;
562
-
563
231
  export type StringList = Array<string>;
564
- export const StringList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<StringList>;
565
-
566
232
  /** Autogenerated input type of CreateAddOn */
567
233
  export interface CreateAddOnInput {
568
234
  /** The add-on type to provision */
@@ -586,45 +252,11 @@ export interface CreateAddOnInput {
586
252
  /** A unique identifier for the client performing the mutation. */
587
253
  clientMutationId?: string | null;
588
254
  }
589
- export const CreateAddOnInput = /*@__PURE__*/ S.suspend(() =>
590
- S.Struct({
591
- type: AddOnType,
592
- name: S.optional(S.NullOr(S.String)),
593
- organizationId: S.optional(S.NullOr(S.String)),
594
- appId: S.optional(S.NullOr(S.String)),
595
- planId: S.optional(S.NullOr(S.String)),
596
- primaryRegion: S.optional(S.NullOr(S.String)),
597
- readRegions: S.optional(S.NullOr(StringList)),
598
- options: S.optional(S.NullOr(S.Unknown)),
599
- organizationPlanId: S.optional(S.NullOr(S.String)),
600
- clientMutationId: S.optional(S.NullOr(S.String)),
601
- }),
602
- ).annotate({ identifier: "CreateAddOnInput" }) as any as S.Schema<CreateAddOnInput>;
603
-
604
255
  export interface CreateAddOnRequest {
605
256
  /** Parameters for CreateAddOn */
606
257
  input: CreateAddOnInput;
607
258
  }
608
- export const CreateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
609
- S.Struct({
610
- input: CreateAddOnInput,
611
- })
612
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
613
- .pipe(
614
- T.GraphQLOp({
615
- query:
616
- "mutation createAddOn($input: CreateAddOnInput!) {\n createAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
617
- operationName: "createAddOn",
618
- type: "mutation",
619
- }),
620
- ),
621
- ).annotate({ identifier: "CreateAddOnRequest" }) as any as S.Schema<CreateAddOnRequest>;
622
-
623
259
  export type CreateAddOnResponseAddOnReadRegionsList = Array<string>;
624
- export const CreateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
625
- S.String,
626
- ) as any as S.Schema<CreateAddOnResponseAddOnReadRegionsList>;
627
-
628
260
  export interface CreateAddOnResponseAddOn {
629
261
  id: string;
630
262
  name: string | null;
@@ -643,39 +275,11 @@ export interface CreateAddOnResponseAddOn {
643
275
  updatedAt: string;
644
276
  addOnPlanName: string | null;
645
277
  }
646
- export const CreateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() =>
647
- S.Struct({
648
- id: S.String,
649
- name: S.NullOr(S.String),
650
- primaryRegion: S.NullOr(S.String),
651
- readRegions: S.NullOr(CreateAddOnResponseAddOnReadRegionsList),
652
- status: S.NullOr(S.String),
653
- errorMessage: S.NullOr(S.String),
654
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
655
- privateIp: S.NullOr(S.String),
656
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
657
- ssoLink: S.NullOr(S.String),
658
- environment: S.NullOr(S.Unknown),
659
- options: S.NullOr(S.Unknown),
660
- metadata: S.NullOr(S.Unknown),
661
- createdAt: S.String,
662
- updatedAt: S.String,
663
- addOnPlanName: S.NullOr(S.String),
664
- }),
665
- ).annotate({ identifier: "CreateAddOnResponseAddOn" }) as any as S.Schema<CreateAddOnResponseAddOn>;
666
-
667
278
  /** Selection set for `createAddOn` (unwrapped from the GraphQL `data` envelope). */
668
279
  export interface CreateAddOnResponse {
669
280
  addOn: CreateAddOnResponseAddOn;
670
281
  clientMutationId: string | null;
671
282
  }
672
- export const CreateAddOnResponse = /*@__PURE__*/ S.suspend(() =>
673
- S.Struct({
674
- addOn: CreateAddOnResponseAddOn,
675
- clientMutationId: S.NullOr(S.String),
676
- }).pipe(T.ResponsePath("createAddOn")),
677
- ).annotate({ identifier: "CreateAddOnResponse" }) as any as S.Schema<CreateAddOnResponse>;
678
-
679
283
  /** Autogenerated input type of CreateExtensionTosAgreement */
680
284
  export interface CreateExtensionTosAgreementInput {
681
285
  /** The add-on provider name */
@@ -685,49 +289,14 @@ export interface CreateExtensionTosAgreementInput {
685
289
  /** A unique identifier for the client performing the mutation. */
686
290
  clientMutationId?: string | null;
687
291
  }
688
- export const CreateExtensionTosAgreementInput = /*@__PURE__*/ S.suspend(() =>
689
- S.Struct({
690
- addOnProviderName: S.String,
691
- organizationId: S.optional(S.NullOr(S.String)),
692
- clientMutationId: S.optional(S.NullOr(S.String)),
693
- }),
694
- ).annotate({
695
- identifier: "CreateExtensionTosAgreementInput",
696
- }) as any as S.Schema<CreateExtensionTosAgreementInput>;
697
-
698
292
  export interface CreateExtensionTosAgreementRequest {
699
293
  /** Parameters for CreateExtensionTosAgreement */
700
294
  input: CreateExtensionTosAgreementInput;
701
295
  }
702
- export const CreateExtensionTosAgreementRequest = /*@__PURE__*/ S.suspend(() =>
703
- S.Struct({
704
- input: CreateExtensionTosAgreementInput,
705
- })
706
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
707
- .pipe(
708
- T.GraphQLOp({
709
- query:
710
- "mutation createExtensionTosAgreement($input: CreateExtensionTosAgreementInput!) {\n createExtensionTosAgreement(input: $input) {\n clientMutationId\n }\n}",
711
- operationName: "createExtensionTosAgreement",
712
- type: "mutation",
713
- }),
714
- ),
715
- ).annotate({
716
- identifier: "CreateExtensionTosAgreementRequest",
717
- }) as any as S.Schema<CreateExtensionTosAgreementRequest>;
718
-
719
296
  /** Selection set for `createExtensionTosAgreement` (unwrapped from the GraphQL `data` envelope). */
720
297
  export interface CreateExtensionTosAgreementResponse {
721
298
  clientMutationId: string | null;
722
299
  }
723
- export const CreateExtensionTosAgreementResponse = /*@__PURE__*/ S.suspend(() =>
724
- S.Struct({
725
- clientMutationId: S.NullOr(S.String),
726
- }).pipe(T.ResponsePath("createExtensionTosAgreement")),
727
- ).annotate({
728
- identifier: "CreateExtensionTosAgreementResponse",
729
- }) as any as S.Schema<CreateExtensionTosAgreementResponse>;
730
-
731
300
  /** Autogenerated input type of DeleteAddOn */
732
301
  export interface DeleteAddOnInput {
733
302
  /** The ID of the add-on to delete */
@@ -739,73 +308,21 @@ export interface DeleteAddOnInput {
739
308
  /** A unique identifier for the client performing the mutation. */
740
309
  clientMutationId?: string | null;
741
310
  }
742
- export const DeleteAddOnInput = /*@__PURE__*/ S.suspend(() =>
743
- S.Struct({
744
- addOnId: S.optional(S.NullOr(S.String)),
745
- name: S.optional(S.NullOr(S.String)),
746
- provider: S.optional(S.NullOr(S.String)),
747
- clientMutationId: S.optional(S.NullOr(S.String)),
748
- }),
749
- ).annotate({ identifier: "DeleteAddOnInput" }) as any as S.Schema<DeleteAddOnInput>;
750
-
751
311
  export interface DeleteAddOnRequest {
752
312
  /** Parameters for DeleteAddOn */
753
313
  input: DeleteAddOnInput;
754
314
  }
755
- export const DeleteAddOnRequest = /*@__PURE__*/ S.suspend(() =>
756
- S.Struct({
757
- input: DeleteAddOnInput,
758
- })
759
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
760
- .pipe(
761
- T.GraphQLOp({
762
- query:
763
- "mutation deleteAddOn($input: DeleteAddOnInput!) {\n deleteAddOn(input: $input) {\n deletedAddOnName\n clientMutationId\n }\n}",
764
- operationName: "deleteAddOn",
765
- type: "mutation",
766
- }),
767
- ),
768
- ).annotate({ identifier: "DeleteAddOnRequest" }) as any as S.Schema<DeleteAddOnRequest>;
769
-
770
315
  /** Selection set for `deleteAddOn` (unwrapped from the GraphQL `data` envelope). */
771
316
  export interface DeleteAddOnResponse {
772
317
  deletedAddOnName: string | null;
773
318
  clientMutationId: string | null;
774
319
  }
775
- export const DeleteAddOnResponse = /*@__PURE__*/ S.suspend(() =>
776
- S.Struct({
777
- deletedAddOnName: S.NullOr(S.String),
778
- clientMutationId: S.NullOr(S.String),
779
- }).pipe(T.ResponsePath("deleteAddOn")),
780
- ).annotate({ identifier: "DeleteAddOnResponse" }) as any as S.Schema<DeleteAddOnResponse>;
781
-
782
320
  export interface OrganizationRequest {
783
321
  id?: string | null;
784
322
  name?: string | null;
785
323
  slug?: string | null;
786
324
  }
787
- export const OrganizationRequest = /*@__PURE__*/ S.suspend(() =>
788
- S.Struct({
789
- id: S.optional(S.NullOr(S.String)),
790
- name: S.optional(S.NullOr(S.String)),
791
- slug: S.optional(S.NullOr(S.String)),
792
- })
793
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
794
- .pipe(
795
- T.GraphQLOp({
796
- query:
797
- "query organization($id: ID, $name: String, $slug: String) {\n organization(id: $id, name: $name, slug: $slug) {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n addOns {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n }\n}",
798
- operationName: "organization",
799
- type: "query",
800
- }),
801
- ),
802
- ).annotate({ identifier: "OrganizationRequest" }) as any as S.Schema<OrganizationRequest>;
803
-
804
325
  export type OrganizationResponseAddOnsEdgesItemNodeReadRegionsList = Array<string>;
805
- export const OrganizationResponseAddOnsEdgesItemNodeReadRegionsList = /*@__PURE__*/ S.Array(
806
- S.String,
807
- ) as any as S.Schema<OrganizationResponseAddOnsEdgesItemNodeReadRegionsList>;
808
-
809
326
  export interface OrganizationResponseAddOnsEdgesItemNode {
810
327
  id: string;
811
328
  name: string | null;
@@ -824,65 +341,17 @@ export interface OrganizationResponseAddOnsEdgesItemNode {
824
341
  updatedAt: string;
825
342
  addOnPlanName: string | null;
826
343
  }
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
- }),
846
- ).annotate({
847
- identifier: "OrganizationResponseAddOnsEdgesItemNode",
848
- }) as any as S.Schema<OrganizationResponseAddOnsEdgesItemNode>;
849
-
850
344
  export interface OrganizationResponseAddOnsEdgesItem {
851
345
  cursor: string;
852
346
  node: OrganizationResponseAddOnsEdgesItemNode | null;
853
347
  }
854
- export const OrganizationResponseAddOnsEdgesItem = /*@__PURE__*/ S.suspend(() =>
855
- S.Struct({
856
- cursor: S.String,
857
- node: S.NullOr(OrganizationResponseAddOnsEdgesItemNode),
858
- }),
859
- ).annotate({
860
- identifier: "OrganizationResponseAddOnsEdgesItem",
861
- }) as any as S.Schema<OrganizationResponseAddOnsEdgesItem>;
862
-
863
348
  export type OrganizationResponseAddOnsEdgesList = (OrganizationResponseAddOnsEdgesItem | null)[];
864
- export const OrganizationResponseAddOnsEdgesList = /*@__PURE__*/ S.Array(
865
- S.NullOr(OrganizationResponseAddOnsEdgesItem),
866
- ) as any as S.Schema<OrganizationResponseAddOnsEdgesList>;
867
-
868
349
  export type OrganizationResponseAddOnsPageInfo = AddOnPlansResponsePageInfo;
869
- export const OrganizationResponseAddOnsPageInfo = AddOnPlansResponsePageInfo;
870
-
871
350
  export interface OrganizationResponseAddOns {
872
351
  edges: OrganizationResponseAddOnsEdgesList | null;
873
352
  pageInfo: AddOnPlansResponsePageInfo;
874
353
  totalCount: number;
875
354
  }
876
- export const OrganizationResponseAddOns = /*@__PURE__*/ S.suspend(() =>
877
- S.Struct({
878
- edges: S.NullOr(OrganizationResponseAddOnsEdgesList),
879
- pageInfo: AddOnPlansResponsePageInfo,
880
- totalCount: S.Number,
881
- }),
882
- ).annotate({
883
- identifier: "OrganizationResponseAddOns",
884
- }) as any as S.Schema<OrganizationResponseAddOns>;
885
-
886
355
  /** Selection set for `organization` (unwrapped from the GraphQL `data` envelope). */
887
356
  export interface OrganizationResponse {
888
357
  id: string;
@@ -894,19 +363,6 @@ export interface OrganizationResponse {
894
363
  provisionsBetaExtensions: boolean;
895
364
  addOns: OrganizationResponseAddOns;
896
365
  }
897
- export const OrganizationResponse = /*@__PURE__*/ S.suspend(() =>
898
- S.Struct({
899
- id: S.String,
900
- name: S.String,
901
- slug: S.String,
902
- rawSlug: S.String,
903
- paidPlan: S.Boolean,
904
- billable: S.Boolean,
905
- provisionsBetaExtensions: S.Boolean,
906
- addOns: OrganizationResponseAddOns,
907
- }).pipe(T.ResponsePath("organization")),
908
- ).annotate({ identifier: "OrganizationResponse" }) as any as S.Schema<OrganizationResponse>;
909
-
910
366
  /** Autogenerated input type of ResetAddOnPassword */
911
367
  export interface ResetAddOnPasswordInput {
912
368
  /** The ID of the add-on whose password should be reset */
@@ -914,39 +370,11 @@ export interface ResetAddOnPasswordInput {
914
370
  /** A unique identifier for the client performing the mutation. */
915
371
  clientMutationId?: string | null;
916
372
  }
917
- export const ResetAddOnPasswordInput = /*@__PURE__*/ S.suspend(() =>
918
- S.Struct({
919
- name: S.String,
920
- clientMutationId: S.optional(S.NullOr(S.String)),
921
- }),
922
- ).annotate({ identifier: "ResetAddOnPasswordInput" }) as any as S.Schema<ResetAddOnPasswordInput>;
923
-
924
373
  export interface ResetAddOnPasswordRequest {
925
374
  /** Parameters for ResetAddOnPassword */
926
375
  input: ResetAddOnPasswordInput;
927
376
  }
928
- export const ResetAddOnPasswordRequest = /*@__PURE__*/ S.suspend(() =>
929
- S.Struct({
930
- input: ResetAddOnPasswordInput,
931
- })
932
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
933
- .pipe(
934
- T.GraphQLOp({
935
- query:
936
- "mutation resetAddOnPassword($input: ResetAddOnPasswordInput!) {\n resetAddOnPassword(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
937
- operationName: "resetAddOnPassword",
938
- type: "mutation",
939
- }),
940
- ),
941
- ).annotate({
942
- identifier: "ResetAddOnPasswordRequest",
943
- }) as any as S.Schema<ResetAddOnPasswordRequest>;
944
-
945
377
  export type ResetAddOnPasswordResponseAddOnReadRegionsList = Array<string>;
946
- export const ResetAddOnPasswordResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
947
- S.String,
948
- ) as any as S.Schema<ResetAddOnPasswordResponseAddOnReadRegionsList>;
949
-
950
378
  export interface ResetAddOnPasswordResponseAddOn {
951
379
  id: string;
952
380
  name: string | null;
@@ -965,43 +393,11 @@ export interface ResetAddOnPasswordResponseAddOn {
965
393
  updatedAt: string;
966
394
  addOnPlanName: string | null;
967
395
  }
968
- export const ResetAddOnPasswordResponseAddOn = /*@__PURE__*/ S.suspend(() =>
969
- S.Struct({
970
- id: S.String,
971
- name: S.NullOr(S.String),
972
- primaryRegion: S.NullOr(S.String),
973
- readRegions: S.NullOr(ResetAddOnPasswordResponseAddOnReadRegionsList),
974
- status: S.NullOr(S.String),
975
- errorMessage: S.NullOr(S.String),
976
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
977
- privateIp: S.NullOr(S.String),
978
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
979
- ssoLink: S.NullOr(S.String),
980
- environment: S.NullOr(S.Unknown),
981
- options: S.NullOr(S.Unknown),
982
- metadata: S.NullOr(S.Unknown),
983
- createdAt: S.String,
984
- updatedAt: S.String,
985
- addOnPlanName: S.NullOr(S.String),
986
- }),
987
- ).annotate({
988
- identifier: "ResetAddOnPasswordResponseAddOn",
989
- }) as any as S.Schema<ResetAddOnPasswordResponseAddOn>;
990
-
991
396
  /** Selection set for `resetAddOnPassword` (unwrapped from the GraphQL `data` envelope). */
992
397
  export interface ResetAddOnPasswordResponse {
993
398
  addOn: ResetAddOnPasswordResponseAddOn;
994
399
  clientMutationId: string | null;
995
400
  }
996
- export const ResetAddOnPasswordResponse = /*@__PURE__*/ S.suspend(() =>
997
- S.Struct({
998
- addOn: ResetAddOnPasswordResponseAddOn,
999
- clientMutationId: S.NullOr(S.String),
1000
- }).pipe(T.ResponsePath("resetAddOnPassword")),
1001
- ).annotate({
1002
- identifier: "ResetAddOnPasswordResponse",
1003
- }) as any as S.Schema<ResetAddOnPasswordResponse>;
1004
-
1005
401
  /** Autogenerated input type of UpdateAddOn */
1006
402
  export interface UpdateAddOnInput {
1007
403
  /** The add-on ID to update */
@@ -1023,44 +419,11 @@ export interface UpdateAddOnInput {
1023
419
  /** A unique identifier for the client performing the mutation. */
1024
420
  clientMutationId?: string | null;
1025
421
  }
1026
- export const UpdateAddOnInput = /*@__PURE__*/ S.suspend(() =>
1027
- S.Struct({
1028
- addOnId: S.optional(S.NullOr(S.String)),
1029
- name: S.optional(S.NullOr(S.String)),
1030
- provider: S.optional(S.NullOr(S.String)),
1031
- planId: S.optional(S.NullOr(S.String)),
1032
- readRegions: S.optional(S.NullOr(StringList)),
1033
- options: S.optional(S.NullOr(S.Unknown)),
1034
- metadata: S.optional(S.NullOr(S.Unknown)),
1035
- prodPack: S.optional(S.NullOr(S.Boolean)),
1036
- clientMutationId: S.optional(S.NullOr(S.String)),
1037
- }),
1038
- ).annotate({ identifier: "UpdateAddOnInput" }) as any as S.Schema<UpdateAddOnInput>;
1039
-
1040
422
  export interface UpdateAddOnRequest {
1041
423
  /** Parameters for UpdateAddOn */
1042
424
  input: UpdateAddOnInput;
1043
425
  }
1044
- export const UpdateAddOnRequest = /*@__PURE__*/ S.suspend(() =>
1045
- S.Struct({
1046
- input: UpdateAddOnInput,
1047
- })
1048
- .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1049
- .pipe(
1050
- T.GraphQLOp({
1051
- query:
1052
- "mutation updateAddOn($input: UpdateAddOnInput!) {\n updateAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
1053
- operationName: "updateAddOn",
1054
- type: "mutation",
1055
- }),
1056
- ),
1057
- ).annotate({ identifier: "UpdateAddOnRequest" }) as any as S.Schema<UpdateAddOnRequest>;
1058
-
1059
426
  export type UpdateAddOnResponseAddOnReadRegionsList = Array<string>;
1060
- export const UpdateAddOnResponseAddOnReadRegionsList = /*@__PURE__*/ S.Array(
1061
- S.String,
1062
- ) as any as S.Schema<UpdateAddOnResponseAddOnReadRegionsList>;
1063
-
1064
427
  export interface UpdateAddOnResponseAddOn {
1065
428
  id: string;
1066
429
  name: string | null;
@@ -1079,45 +442,17 @@ export interface UpdateAddOnResponseAddOn {
1079
442
  updatedAt: string;
1080
443
  addOnPlanName: string | null;
1081
444
  }
1082
- export const UpdateAddOnResponseAddOn = /*@__PURE__*/ S.suspend(() =>
1083
- S.Struct({
1084
- id: S.String,
1085
- name: S.NullOr(S.String),
1086
- primaryRegion: S.NullOr(S.String),
1087
- readRegions: S.NullOr(UpdateAddOnResponseAddOnReadRegionsList),
1088
- status: S.NullOr(S.String),
1089
- errorMessage: S.NullOr(S.String),
1090
- publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
1091
- privateIp: S.NullOr(S.String),
1092
- password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
1093
- ssoLink: S.NullOr(S.String),
1094
- environment: S.NullOr(S.Unknown),
1095
- options: S.NullOr(S.Unknown),
1096
- metadata: S.NullOr(S.Unknown),
1097
- createdAt: S.String,
1098
- updatedAt: S.String,
1099
- addOnPlanName: S.NullOr(S.String),
1100
- }),
1101
- ).annotate({ identifier: "UpdateAddOnResponseAddOn" }) as any as S.Schema<UpdateAddOnResponseAddOn>;
1102
-
1103
445
  /** Selection set for `updateAddOn` (unwrapped from the GraphQL `data` envelope). */
1104
446
  export interface UpdateAddOnResponse {
1105
447
  addOn: UpdateAddOnResponseAddOn;
1106
448
  clientMutationId: string | null;
1107
449
  }
1108
- export const UpdateAddOnResponse = /*@__PURE__*/ S.suspend(() =>
1109
- S.Struct({
1110
- addOn: UpdateAddOnResponseAddOn,
1111
- clientMutationId: S.NullOr(S.String),
1112
- }).pipe(T.ResponsePath("updateAddOn")),
1113
- ).annotate({ identifier: "UpdateAddOnResponse" }) as any as S.Schema<UpdateAddOnResponse>;
1114
-
1115
450
  export type AddOnError = FlyIoOpError;
1116
451
  /** Find an add-on by ID or name */
1117
452
  export const addOn: API.OperationMethod<AddOnRequest, AddOnResponse, AddOnError, FlyIoOpContext> =
1118
453
  /*@__PURE__*/ API.make(() => ({
1119
- input: AddOnRequest,
1120
- output: AddOnResponse,
454
+ input: __S(0, __c0, 0) as any as S.Schema<AddOnRequest>,
455
+ output: __S(1, __c0, 1) as any as S.Schema<AddOnResponse>,
1121
456
  errors: [UnknownFlyIoError, FlyIoParseError],
1122
457
  protocol: FlyGraphqlProtocol,
1123
458
  retry: Retry.Retry,
@@ -1133,8 +468,8 @@ export const addOnPlans: API.PaginatedOperationMethod<
1133
468
  AddOnResponseAddOnPlan
1134
469
  > = /*@__PURE__*/ API.makePaginated(
1135
470
  () => ({
1136
- input: AddOnPlansRequest,
1137
- output: AddOnPlansResponse,
471
+ input: __S(32, __c4, 0) as any as S.Schema<AddOnPlansRequest>,
472
+ output: __S(36, __c4, 4) as any as S.Schema<AddOnPlansResponse>,
1138
473
  errors: [UnknownFlyIoError, FlyIoParseError],
1139
474
  protocol: FlyGraphqlProtocol,
1140
475
  retry: Retry.Retry,
@@ -1157,8 +492,8 @@ export const addOnProvider: API.OperationMethod<
1157
492
  AddOnProviderError,
1158
493
  FlyIoOpContext
1159
494
  > = /*@__PURE__*/ API.make(() => ({
1160
- input: AddOnProviderRequest,
1161
- output: AddOnProviderResponse,
495
+ input: __S(56, __c7, 0) as any as S.Schema<AddOnProviderRequest>,
496
+ output: __S(57, __c7, 1) as any as S.Schema<AddOnProviderResponse>,
1162
497
  errors: [UnknownFlyIoError, FlyIoParseError],
1163
498
  protocol: FlyGraphqlProtocol,
1164
499
  retry: Retry.Retry,
@@ -1174,8 +509,8 @@ export const addOns: API.PaginatedOperationMethod<
1174
509
  AddOnsResponseEdgesItemNode
1175
510
  > = /*@__PURE__*/ API.makePaginated(
1176
511
  () => ({
1177
- input: AddOnsRequest,
1178
- output: AddOnsResponse,
512
+ input: __S(64, __c8, 0) as any as S.Schema<AddOnsRequest>,
513
+ output: __S(69, __c8, 5) as any as S.Schema<AddOnsResponse>,
1179
514
  errors: [UnknownFlyIoError, FlyIoParseError],
1180
515
  protocol: FlyGraphqlProtocol,
1181
516
  retry: Retry.Retry,
@@ -1199,8 +534,8 @@ export const agreedToProviderTos: API.OperationMethod<
1199
534
  AgreedToProviderTosError,
1200
535
  FlyIoOpContext
1201
536
  > = /*@__PURE__*/ API.make(() => ({
1202
- input: AgreedToProviderTosRequest,
1203
- output: AgreedToProviderTosResponse,
537
+ input: __S(80, __c10, 0) as any as S.Schema<AgreedToProviderTosRequest>,
538
+ output: __S(81, __c10, 1) as any as S.Schema<AgreedToProviderTosResponse>,
1204
539
  errors: [UnknownFlyIoError, FlyIoParseError],
1205
540
  protocol: FlyGraphqlProtocol,
1206
541
  retry: Retry.Retry,
@@ -1213,8 +548,8 @@ export const createAddOn: API.OperationMethod<
1213
548
  CreateAddOnError,
1214
549
  FlyIoOpContext
1215
550
  > = /*@__PURE__*/ API.make(() => ({
1216
- input: CreateAddOnRequest,
1217
- output: CreateAddOnResponse,
551
+ input: __S(89, __c11, 1) as any as S.Schema<CreateAddOnRequest>,
552
+ output: __S(90, __c11, 2) as any as S.Schema<CreateAddOnResponse>,
1218
553
  errors: [UnknownFlyIoError, FlyIoParseError],
1219
554
  protocol: FlyGraphqlProtocol,
1220
555
  retry: Retry.Retry,
@@ -1229,8 +564,8 @@ export const createExtensionTosAgreement: API.OperationMethod<
1229
564
  CreateExtensionTosAgreementError,
1230
565
  FlyIoOpContext
1231
566
  > = /*@__PURE__*/ API.make(() => ({
1232
- input: CreateExtensionTosAgreementRequest,
1233
- output: CreateExtensionTosAgreementResponse,
567
+ input: __S(97, __c12, 1) as any as S.Schema<CreateExtensionTosAgreementRequest>,
568
+ output: __S(98, __c12, 2) as any as S.Schema<CreateExtensionTosAgreementResponse>,
1234
569
  errors: [CreateExtensionTosAgreementNotAuthorized, UnknownFlyIoError, FlyIoParseError],
1235
570
  protocol: FlyGraphqlProtocol,
1236
571
  retry: Retry.Retry,
@@ -1243,8 +578,8 @@ export const deleteAddOn: API.OperationMethod<
1243
578
  DeleteAddOnError,
1244
579
  FlyIoOpContext
1245
580
  > = /*@__PURE__*/ API.make(() => ({
1246
- input: DeleteAddOnRequest,
1247
- output: DeleteAddOnResponse,
581
+ input: __S(105, __c13, 1) as any as S.Schema<DeleteAddOnRequest>,
582
+ output: __S(106, __c13, 2) as any as S.Schema<DeleteAddOnResponse>,
1248
583
  errors: [UnknownFlyIoError, FlyIoParseError],
1249
584
  protocol: FlyGraphqlProtocol,
1250
585
  retry: Retry.Retry,
@@ -1258,8 +593,8 @@ export const organization: API.OperationMethod<
1258
593
  OrganizationError,
1259
594
  FlyIoOpContext
1260
595
  > = /*@__PURE__*/ API.make(() => ({
1261
- input: OrganizationRequest,
1262
- output: OrganizationResponse,
596
+ input: __S(112, __c14, 0) as any as S.Schema<OrganizationRequest>,
597
+ output: __S(116, __c14, 4) as any as S.Schema<OrganizationResponse>,
1263
598
  errors: [UnknownFlyIoError, FlyIoParseError],
1264
599
  protocol: FlyGraphqlProtocol,
1265
600
  retry: Retry.Retry,
@@ -1272,8 +607,8 @@ export const resetAddOnPassword: API.OperationMethod<
1272
607
  ResetAddOnPasswordError,
1273
608
  FlyIoOpContext
1274
609
  > = /*@__PURE__*/ API.make(() => ({
1275
- input: ResetAddOnPasswordRequest,
1276
- output: ResetAddOnPasswordResponse,
610
+ input: __S(121, __c15, 1) as any as S.Schema<ResetAddOnPasswordRequest>,
611
+ output: __S(122, __c15, 2) as any as S.Schema<ResetAddOnPasswordResponse>,
1277
612
  errors: [UnknownFlyIoError, FlyIoParseError],
1278
613
  protocol: FlyGraphqlProtocol,
1279
614
  retry: Retry.Retry,
@@ -1286,9 +621,575 @@ export const updateAddOn: API.OperationMethod<
1286
621
  UpdateAddOnError,
1287
622
  FlyIoOpContext
1288
623
  > = /*@__PURE__*/ API.make(() => ({
1289
- input: UpdateAddOnRequest,
1290
- output: UpdateAddOnResponse,
624
+ input: __S(49, __c6, 1) as any as S.Schema<UpdateAddOnRequest>,
625
+ output: __S(50, __c6, 2) as any as S.Schema<UpdateAddOnResponse>,
1291
626
  errors: [UnknownFlyIoError, FlyIoParseError],
1292
627
  protocol: FlyGraphqlProtocol,
1293
628
  retry: Retry.Retry,
1294
629
  }));
630
+
631
+ // Schema builders: each runs one schema initializer, on that schema's first use.
632
+ function __c0(j: number): any {
633
+ switch (j) {
634
+ case 0:
635
+ return S.suspend(() =>
636
+ S.Struct({
637
+ id: S.optional(S.NullOr(S.String)),
638
+ name: S.optional(S.NullOr(S.String)),
639
+ provider: S.optional(S.NullOr(S.String)),
640
+ })
641
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
642
+ .pipe(
643
+ T.GraphQLOp({
644
+ query:
645
+ "query addOn($id: ID, $name: String, $provider: String) {\n addOn(id: $id, name: $name, provider: $provider) {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlan {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n addOnPlanName\n addOnProvider {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n organization {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n }\n app {\n id\n name\n }\n }\n}",
646
+ operationName: "addOn",
647
+ type: "query",
648
+ }),
649
+ ),
650
+ ).annotate({ identifier: "AddOnRequest" });
651
+ case 1:
652
+ return S.suspend(() =>
653
+ S.Struct({
654
+ id: S.String,
655
+ name: S.NullOr(S.String),
656
+ primaryRegion: S.NullOr(S.String),
657
+ readRegions: S.NullOr(__S(24, __c3, 0)),
658
+ status: S.NullOr(S.String),
659
+ errorMessage: S.NullOr(S.String),
660
+ publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
661
+ privateIp: S.NullOr(S.String),
662
+ password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
663
+ ssoLink: S.NullOr(S.String),
664
+ environment: S.NullOr(S.Unknown),
665
+ options: S.NullOr(S.Unknown),
666
+ metadata: S.NullOr(S.Unknown),
667
+ createdAt: S.String,
668
+ updatedAt: S.String,
669
+ addOnPlan: S.NullOr(__S(8, __c1, 0)),
670
+ addOnPlanName: S.NullOr(S.String),
671
+ addOnProvider: S.NullOr(__S(16, __c2, 0)),
672
+ organization: __S(17, __c2, 1),
673
+ app: S.NullOr(__S(18, __c2, 2)),
674
+ }).pipe(T.ResponsePath("addOn")),
675
+ ).annotate({ identifier: "AddOnResponse" });
676
+ }
677
+ }
678
+ function __c1(j: number): any {
679
+ switch (j) {
680
+ case 0:
681
+ return S.suspend(() =>
682
+ S.Struct({
683
+ id: S.String,
684
+ name: S.NullOr(S.String),
685
+ displayName: S.NullOr(S.String),
686
+ description: S.NullOr(S.String),
687
+ maxDataSize: S.NullOr(S.String),
688
+ pricePerMonth: S.NullOr(S.Number),
689
+ }),
690
+ ).annotate({ identifier: "AddOnResponseAddOnPlan" });
691
+ }
692
+ }
693
+ function __c2(j: number): any {
694
+ switch (j) {
695
+ case 0:
696
+ return S.suspend(() =>
697
+ S.Struct({
698
+ id: S.String,
699
+ name: S.NullOr(S.String),
700
+ displayName: S.NullOr(S.String),
701
+ tosUrl: S.NullOr(S.String),
702
+ tosAgreement: S.NullOr(S.String),
703
+ asyncProvisioning: S.Boolean,
704
+ autoProvision: S.Boolean,
705
+ beta: S.Boolean,
706
+ internal: S.Boolean,
707
+ selectName: S.Boolean,
708
+ selectRegion: S.Boolean,
709
+ selectReplicaRegions: S.Boolean,
710
+ detectPlatform: S.Boolean,
711
+ resourceName: S.String,
712
+ nameSuffix: S.NullOr(S.String),
713
+ provisioningInstructions: S.NullOr(S.String),
714
+ }),
715
+ ).annotate({ identifier: "AddOnResponseAddOnProvider" });
716
+ case 1:
717
+ return S.suspend(() =>
718
+ S.Struct({
719
+ id: S.String,
720
+ name: S.String,
721
+ slug: S.String,
722
+ rawSlug: S.String,
723
+ paidPlan: S.Boolean,
724
+ billable: S.Boolean,
725
+ provisionsBetaExtensions: S.Boolean,
726
+ }),
727
+ ).annotate({ identifier: "AddOnResponseOrganization" });
728
+ case 2:
729
+ return S.suspend(() =>
730
+ S.Struct({
731
+ id: S.String,
732
+ name: S.String,
733
+ }),
734
+ ).annotate({ identifier: "AddOnResponseApp" });
735
+ }
736
+ }
737
+ function __c3(j: number): any {
738
+ switch (j) {
739
+ case 0:
740
+ return S.Array(S.String);
741
+ }
742
+ }
743
+ function __c4(j: number): any {
744
+ switch (j) {
745
+ case 0:
746
+ return S.suspend(() =>
747
+ S.Struct({
748
+ after: S.optional(S.NullOr(S.String)),
749
+ before: S.optional(S.NullOr(S.String)),
750
+ first: S.optional(S.NullOr(S.Number)),
751
+ last: S.optional(S.NullOr(S.Number)),
752
+ type: S.optional(S.NullOr(S.String)),
753
+ })
754
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
755
+ .pipe(
756
+ T.GraphQLOp({
757
+ query:
758
+ "query addOnPlans($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOnPlans(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n }\n nodes {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
759
+ operationName: "addOnPlans",
760
+ type: "query",
761
+ }),
762
+ ),
763
+ ).annotate({ identifier: "AddOnPlansRequest" });
764
+ case 1:
765
+ return S.suspend(() =>
766
+ S.Struct({
767
+ cursor: S.String,
768
+ node: S.NullOr(__S(8, __c1, 0)),
769
+ }),
770
+ ).annotate({ identifier: "AddOnPlansResponseEdgesItem" });
771
+ case 2:
772
+ return S.Array(/*@__PURE__*/ S.NullOr(__S(33, __c4, 1)));
773
+ case 3:
774
+ return S.Array(/*@__PURE__*/ S.NullOr(__S(8, __c1, 0)));
775
+ case 4:
776
+ return S.suspend(() =>
777
+ S.Struct({
778
+ edges: S.NullOr(__S(34, __c4, 2)),
779
+ nodes: S.NullOr(__S(35, __c4, 3)),
780
+ pageInfo: __S(40, __c5, 0),
781
+ totalCount: S.Number,
782
+ }).pipe(T.ResponsePath("addOnPlans")),
783
+ ).annotate({ identifier: "AddOnPlansResponse" });
784
+ }
785
+ }
786
+ function __c5(j: number): any {
787
+ switch (j) {
788
+ case 0:
789
+ return S.suspend(() =>
790
+ S.Struct({
791
+ hasNextPage: S.Boolean,
792
+ hasPreviousPage: S.Boolean,
793
+ startCursor: S.NullOr(S.String),
794
+ endCursor: S.NullOr(S.String),
795
+ }),
796
+ ).annotate({ identifier: "AddOnPlansResponsePageInfo" });
797
+ }
798
+ }
799
+ function __c6(j: number): any {
800
+ switch (j) {
801
+ case 0:
802
+ return S.suspend(() =>
803
+ S.Struct({
804
+ addOnId: S.optional(S.NullOr(S.String)),
805
+ name: S.optional(S.NullOr(S.String)),
806
+ provider: S.optional(S.NullOr(S.String)),
807
+ planId: S.optional(S.NullOr(S.String)),
808
+ readRegions: S.optional(S.NullOr(__S(24, __c3, 0))),
809
+ options: S.optional(S.NullOr(S.Unknown)),
810
+ metadata: S.optional(S.NullOr(S.Unknown)),
811
+ prodPack: S.optional(S.NullOr(S.Boolean)),
812
+ clientMutationId: S.optional(S.NullOr(S.String)),
813
+ }),
814
+ ).annotate({ identifier: "UpdateAddOnInput" });
815
+ case 1:
816
+ return S.suspend(() =>
817
+ S.Struct({
818
+ input: __S(48, __c6, 0),
819
+ })
820
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
821
+ .pipe(
822
+ T.GraphQLOp({
823
+ query:
824
+ "mutation updateAddOn($input: UpdateAddOnInput!) {\n updateAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
825
+ operationName: "updateAddOn",
826
+ type: "mutation",
827
+ }),
828
+ ),
829
+ ).annotate({ identifier: "UpdateAddOnRequest" });
830
+ case 2:
831
+ return S.suspend(() =>
832
+ S.Struct({
833
+ addOn: __S(72, __c9, 0),
834
+ clientMutationId: S.NullOr(S.String),
835
+ }).pipe(T.ResponsePath("updateAddOn")),
836
+ ).annotate({ identifier: "UpdateAddOnResponse" });
837
+ }
838
+ }
839
+ function __c7(j: number): any {
840
+ switch (j) {
841
+ case 0:
842
+ return S.suspend(() =>
843
+ S.Struct({
844
+ name: S.String,
845
+ })
846
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
847
+ .pipe(
848
+ T.GraphQLOp({
849
+ query:
850
+ "query addOnProvider($name: String!) {\n addOnProvider(name: $name) {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n}",
851
+ operationName: "addOnProvider",
852
+ type: "query",
853
+ }),
854
+ ),
855
+ ).annotate({ identifier: "AddOnProviderRequest" });
856
+ case 1:
857
+ return S.suspend(() =>
858
+ S.Struct({
859
+ id: S.String,
860
+ name: S.NullOr(S.String),
861
+ displayName: S.NullOr(S.String),
862
+ tosUrl: S.NullOr(S.String),
863
+ tosAgreement: S.NullOr(S.String),
864
+ asyncProvisioning: S.Boolean,
865
+ autoProvision: S.Boolean,
866
+ beta: S.Boolean,
867
+ internal: S.Boolean,
868
+ selectName: S.Boolean,
869
+ selectRegion: S.Boolean,
870
+ selectReplicaRegions: S.Boolean,
871
+ detectPlatform: S.Boolean,
872
+ resourceName: S.String,
873
+ nameSuffix: S.NullOr(S.String),
874
+ provisioningInstructions: S.NullOr(S.String),
875
+ }).pipe(T.ResponsePath("addOnProvider")),
876
+ ).annotate({ identifier: "AddOnProviderResponse" });
877
+ }
878
+ }
879
+ function __c8(j: number): any {
880
+ switch (j) {
881
+ case 0:
882
+ return S.suspend(() =>
883
+ S.Struct({
884
+ after: S.optional(S.NullOr(S.String)),
885
+ before: S.optional(S.NullOr(S.String)),
886
+ first: S.optional(S.NullOr(S.Number)),
887
+ last: S.optional(S.NullOr(S.Number)),
888
+ type: S.optional(S.NullOr(S.String)),
889
+ })
890
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
891
+ .pipe(
892
+ T.GraphQLOp({
893
+ query:
894
+ "query addOns($after: String, $before: String, $first: Int, $last: Int, $type: AddOnType) {\n addOns(after: $after, before: $before, first: $first, last: $last, type: $type) {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlan {\n id\n name\n displayName\n description\n maxDataSize\n pricePerMonth\n }\n addOnPlanName\n addOnProvider {\n id\n name\n displayName\n tosUrl\n tosAgreement\n asyncProvisioning\n autoProvision\n beta\n internal\n selectName\n selectRegion\n selectReplicaRegions\n detectPlatform\n resourceName\n nameSuffix\n provisioningInstructions\n }\n organization {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n }\n app {\n id\n name\n }\n }\n }\n nodes {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}",
895
+ operationName: "addOns",
896
+ type: "query",
897
+ }),
898
+ ),
899
+ ).annotate({ identifier: "AddOnsRequest" });
900
+ case 1:
901
+ return S.suspend(() =>
902
+ S.Struct({
903
+ id: S.String,
904
+ name: S.NullOr(S.String),
905
+ primaryRegion: S.NullOr(S.String),
906
+ readRegions: S.NullOr(__S(24, __c3, 0)),
907
+ status: S.NullOr(S.String),
908
+ errorMessage: S.NullOr(S.String),
909
+ publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
910
+ privateIp: S.NullOr(S.String),
911
+ password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
912
+ ssoLink: S.NullOr(S.String),
913
+ environment: S.NullOr(S.Unknown),
914
+ options: S.NullOr(S.Unknown),
915
+ metadata: S.NullOr(S.Unknown),
916
+ createdAt: S.String,
917
+ updatedAt: S.String,
918
+ addOnPlan: S.NullOr(__S(8, __c1, 0)),
919
+ addOnPlanName: S.NullOr(S.String),
920
+ addOnProvider: S.NullOr(__S(16, __c2, 0)),
921
+ organization: __S(17, __c2, 1),
922
+ app: S.NullOr(__S(18, __c2, 2)),
923
+ }),
924
+ ).annotate({ identifier: "AddOnsResponseEdgesItemNode" });
925
+ case 2:
926
+ return S.suspend(() =>
927
+ S.Struct({
928
+ cursor: S.String,
929
+ node: S.NullOr(__S(65, __c8, 1)),
930
+ }),
931
+ ).annotate({ identifier: "AddOnsResponseEdgesItem" });
932
+ case 3:
933
+ return S.Array(/*@__PURE__*/ S.NullOr(__S(66, __c8, 2)));
934
+ case 4:
935
+ return S.Array(/*@__PURE__*/ S.NullOr(__S(72, __c9, 0)));
936
+ case 5:
937
+ return S.suspend(() =>
938
+ S.Struct({
939
+ edges: S.NullOr(__S(67, __c8, 3)),
940
+ nodes: S.NullOr(__S(68, __c8, 4)),
941
+ pageInfo: __S(40, __c5, 0),
942
+ totalCount: S.Number,
943
+ }).pipe(T.ResponsePath("addOns")),
944
+ ).annotate({ identifier: "AddOnsResponse" });
945
+ }
946
+ }
947
+ function __c9(j: number): any {
948
+ switch (j) {
949
+ case 0:
950
+ return S.suspend(() =>
951
+ S.Struct({
952
+ id: S.String,
953
+ name: S.NullOr(S.String),
954
+ primaryRegion: S.NullOr(S.String),
955
+ readRegions: S.NullOr(__S(24, __c3, 0)),
956
+ status: S.NullOr(S.String),
957
+ errorMessage: S.NullOr(S.String),
958
+ publicUrl: S.NullOr(S.String).pipe(T.SensitiveValue({})),
959
+ privateIp: S.NullOr(S.String),
960
+ password: S.NullOr(S.String).pipe(T.SensitiveValue({})),
961
+ ssoLink: S.NullOr(S.String),
962
+ environment: S.NullOr(S.Unknown),
963
+ options: S.NullOr(S.Unknown),
964
+ metadata: S.NullOr(S.Unknown),
965
+ createdAt: S.String,
966
+ updatedAt: S.String,
967
+ addOnPlanName: S.NullOr(S.String),
968
+ }),
969
+ ).annotate({ identifier: "AddOnsResponseNodesItem" });
970
+ }
971
+ }
972
+ function __c10(j: number): any {
973
+ switch (j) {
974
+ case 0:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ slug: S.String,
978
+ providerName: S.String,
979
+ })
980
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
981
+ .pipe(
982
+ T.GraphQLOp({
983
+ query:
984
+ "query agreedToProviderTos($slug: String!, $providerName: String!) {\n organization(slug: $slug) {\n agreedToProviderTos(providerName: $providerName)\n }\n}",
985
+ operationName: "agreedToProviderTos",
986
+ type: "query",
987
+ }),
988
+ ),
989
+ ).annotate({ identifier: "AgreedToProviderTosRequest" });
990
+ case 1:
991
+ return S.suspend(() =>
992
+ S.NullOr(S.Boolean).pipe(
993
+ T.GraphQLPayloadRoot(),
994
+ T.ResponsePath("organization.agreedToProviderTos"),
995
+ ),
996
+ ).annotate({ identifier: "AgreedToProviderTosResponse" });
997
+ }
998
+ }
999
+ function __c11(j: number): any {
1000
+ switch (j) {
1001
+ case 0:
1002
+ return S.suspend(() =>
1003
+ S.Struct({
1004
+ type: S.String,
1005
+ name: S.optional(S.NullOr(S.String)),
1006
+ organizationId: S.optional(S.NullOr(S.String)),
1007
+ appId: S.optional(S.NullOr(S.String)),
1008
+ planId: S.optional(S.NullOr(S.String)),
1009
+ primaryRegion: S.optional(S.NullOr(S.String)),
1010
+ readRegions: S.optional(S.NullOr(__S(24, __c3, 0))),
1011
+ options: S.optional(S.NullOr(S.Unknown)),
1012
+ organizationPlanId: S.optional(S.NullOr(S.String)),
1013
+ clientMutationId: S.optional(S.NullOr(S.String)),
1014
+ }),
1015
+ ).annotate({ identifier: "CreateAddOnInput" });
1016
+ case 1:
1017
+ return S.suspend(() =>
1018
+ S.Struct({
1019
+ input: __S(88, __c11, 0),
1020
+ })
1021
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1022
+ .pipe(
1023
+ T.GraphQLOp({
1024
+ query:
1025
+ "mutation createAddOn($input: CreateAddOnInput!) {\n createAddOn(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
1026
+ operationName: "createAddOn",
1027
+ type: "mutation",
1028
+ }),
1029
+ ),
1030
+ ).annotate({ identifier: "CreateAddOnRequest" });
1031
+ case 2:
1032
+ return S.suspend(() =>
1033
+ S.Struct({
1034
+ addOn: __S(72, __c9, 0),
1035
+ clientMutationId: S.NullOr(S.String),
1036
+ }).pipe(T.ResponsePath("createAddOn")),
1037
+ ).annotate({ identifier: "CreateAddOnResponse" });
1038
+ }
1039
+ }
1040
+ function __c12(j: number): any {
1041
+ switch (j) {
1042
+ case 0:
1043
+ return S.suspend(() =>
1044
+ S.Struct({
1045
+ addOnProviderName: S.String,
1046
+ organizationId: S.optional(S.NullOr(S.String)),
1047
+ clientMutationId: S.optional(S.NullOr(S.String)),
1048
+ }),
1049
+ ).annotate({ identifier: "CreateExtensionTosAgreementInput" });
1050
+ case 1:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ input: __S(96, __c12, 0),
1054
+ })
1055
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1056
+ .pipe(
1057
+ T.GraphQLOp({
1058
+ query:
1059
+ "mutation createExtensionTosAgreement($input: CreateExtensionTosAgreementInput!) {\n createExtensionTosAgreement(input: $input) {\n clientMutationId\n }\n}",
1060
+ operationName: "createExtensionTosAgreement",
1061
+ type: "mutation",
1062
+ }),
1063
+ ),
1064
+ ).annotate({ identifier: "CreateExtensionTosAgreementRequest" });
1065
+ case 2:
1066
+ return S.suspend(() =>
1067
+ S.Struct({
1068
+ clientMutationId: S.NullOr(S.String),
1069
+ }).pipe(T.ResponsePath("createExtensionTosAgreement")),
1070
+ ).annotate({ identifier: "CreateExtensionTosAgreementResponse" });
1071
+ }
1072
+ }
1073
+ function __c13(j: number): any {
1074
+ switch (j) {
1075
+ case 0:
1076
+ return S.suspend(() =>
1077
+ S.Struct({
1078
+ addOnId: S.optional(S.NullOr(S.String)),
1079
+ name: S.optional(S.NullOr(S.String)),
1080
+ provider: S.optional(S.NullOr(S.String)),
1081
+ clientMutationId: S.optional(S.NullOr(S.String)),
1082
+ }),
1083
+ ).annotate({ identifier: "DeleteAddOnInput" });
1084
+ case 1:
1085
+ return S.suspend(() =>
1086
+ S.Struct({
1087
+ input: __S(104, __c13, 0),
1088
+ })
1089
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1090
+ .pipe(
1091
+ T.GraphQLOp({
1092
+ query:
1093
+ "mutation deleteAddOn($input: DeleteAddOnInput!) {\n deleteAddOn(input: $input) {\n deletedAddOnName\n clientMutationId\n }\n}",
1094
+ operationName: "deleteAddOn",
1095
+ type: "mutation",
1096
+ }),
1097
+ ),
1098
+ ).annotate({ identifier: "DeleteAddOnRequest" });
1099
+ case 2:
1100
+ return S.suspend(() =>
1101
+ S.Struct({
1102
+ deletedAddOnName: S.NullOr(S.String),
1103
+ clientMutationId: S.NullOr(S.String),
1104
+ }).pipe(T.ResponsePath("deleteAddOn")),
1105
+ ).annotate({ identifier: "DeleteAddOnResponse" });
1106
+ }
1107
+ }
1108
+ function __c14(j: number): any {
1109
+ switch (j) {
1110
+ case 0:
1111
+ return S.suspend(() =>
1112
+ S.Struct({
1113
+ id: S.optional(S.NullOr(S.String)),
1114
+ name: S.optional(S.NullOr(S.String)),
1115
+ slug: S.optional(S.NullOr(S.String)),
1116
+ })
1117
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1118
+ .pipe(
1119
+ T.GraphQLOp({
1120
+ query:
1121
+ "query organization($id: ID, $name: String, $slug: String) {\n organization(id: $id, name: $name, slug: $slug) {\n id\n name\n slug\n rawSlug\n paidPlan\n billable\n provisionsBetaExtensions\n addOns {\n edges {\n cursor\n node {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n }\n}",
1122
+ operationName: "organization",
1123
+ type: "query",
1124
+ }),
1125
+ ),
1126
+ ).annotate({ identifier: "OrganizationRequest" });
1127
+ case 1:
1128
+ return S.suspend(() =>
1129
+ S.Struct({
1130
+ cursor: S.String,
1131
+ node: S.NullOr(__S(72, __c9, 0)),
1132
+ }),
1133
+ ).annotate({ identifier: "OrganizationResponseAddOnsEdgesItem" });
1134
+ case 2:
1135
+ return S.Array(/*@__PURE__*/ S.NullOr(__S(113, __c14, 1)));
1136
+ case 3:
1137
+ return S.suspend(() =>
1138
+ S.Struct({
1139
+ edges: S.NullOr(__S(114, __c14, 2)),
1140
+ pageInfo: __S(40, __c5, 0),
1141
+ totalCount: S.Number,
1142
+ }),
1143
+ ).annotate({ identifier: "OrganizationResponseAddOns" });
1144
+ case 4:
1145
+ return S.suspend(() =>
1146
+ S.Struct({
1147
+ id: S.String,
1148
+ name: S.String,
1149
+ slug: S.String,
1150
+ rawSlug: S.String,
1151
+ paidPlan: S.Boolean,
1152
+ billable: S.Boolean,
1153
+ provisionsBetaExtensions: S.Boolean,
1154
+ addOns: __S(115, __c14, 3),
1155
+ }).pipe(T.ResponsePath("organization")),
1156
+ ).annotate({ identifier: "OrganizationResponse" });
1157
+ }
1158
+ }
1159
+ function __c15(j: number): any {
1160
+ switch (j) {
1161
+ case 0:
1162
+ return S.suspend(() =>
1163
+ S.Struct({
1164
+ name: S.String,
1165
+ clientMutationId: S.optional(S.NullOr(S.String)),
1166
+ }),
1167
+ ).annotate({ identifier: "ResetAddOnPasswordInput" });
1168
+ case 1:
1169
+ return S.suspend(() =>
1170
+ S.Struct({
1171
+ input: __S(120, __c15, 0),
1172
+ })
1173
+ .pipe(T.Http({ method: "POST", uri: "/graphql", code: 200 }))
1174
+ .pipe(
1175
+ T.GraphQLOp({
1176
+ query:
1177
+ "mutation resetAddOnPassword($input: ResetAddOnPasswordInput!) {\n resetAddOnPassword(input: $input) {\n addOn {\n id\n name\n primaryRegion\n readRegions\n status\n errorMessage\n publicUrl\n privateIp\n password\n ssoLink\n environment\n options\n metadata\n createdAt\n updatedAt\n addOnPlanName\n }\n clientMutationId\n }\n}",
1178
+ operationName: "resetAddOnPassword",
1179
+ type: "mutation",
1180
+ }),
1181
+ ),
1182
+ ).annotate({ identifier: "ResetAddOnPasswordRequest" });
1183
+ case 2:
1184
+ return S.suspend(() =>
1185
+ S.Struct({
1186
+ addOn: __S(72, __c9, 0),
1187
+ clientMutationId: S.NullOr(S.String),
1188
+ }).pipe(T.ResponsePath("resetAddOnPassword")),
1189
+ ).annotate({ identifier: "ResetAddOnPasswordResponse" });
1190
+ }
1191
+ }
1192
+ // Schema table: entry i is schema j of builder f, made on first reach.
1193
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1194
+ return (__s[i] ??= __L.at(f, j));
1195
+ }