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