fly_io 0.1.0

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 (47) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +15 -0
  3. data/CONTRIBUTING.md +14 -0
  4. data/LICENSE +21 -0
  5. data/README.md +239 -0
  6. data/Rakefile +30 -0
  7. data/contracts/additional_rest/network_policies.json +94 -0
  8. data/contracts/additional_rest/prometheus.json +103 -0
  9. data/contracts/graphql/fly_go_operations.json +948 -0
  10. data/contracts/graphql/flyctl_named_operations.graphql +316 -0
  11. data/contracts/graphql/flyctl_operations.json +336 -0
  12. data/contracts/graphql/official_examples.json +75 -0
  13. data/contracts/graphql/schema.graphql +10995 -0
  14. data/contracts/graphql/source.json +29 -0
  15. data/contracts/machines/openapi.headers +9 -0
  16. data/contracts/machines/openapi.json +1 -0
  17. data/contracts/machines/source.json +20 -0
  18. data/contracts/public_surface_inventory.json +164 -0
  19. data/contracts/research_metadata.json +17 -0
  20. data/contracts/sources/metrics.html.md +474 -0
  21. data/contracts/sources/network-policies.html.markerb +142 -0
  22. data/docs/API.md +149 -0
  23. data/docs/SURFACES.md +60 -0
  24. data/lib/fly_io/client.rb +52 -0
  25. data/lib/fly_io/configuration.rb +115 -0
  26. data/lib/fly_io/errors.rb +45 -0
  27. data/lib/fly_io/generated/additional_operations.json +123 -0
  28. data/lib/fly_io/generated/graphql_operations.json +1658 -0
  29. data/lib/fly_io/generated/operations.json +6130 -0
  30. data/lib/fly_io/generated/prometheus_operations.json +503 -0
  31. data/lib/fly_io/generated/schemas.json +4237 -0
  32. data/lib/fly_io/graphql_client.rb +103 -0
  33. data/lib/fly_io/model.rb +65 -0
  34. data/lib/fly_io/operation_registry.rb +79 -0
  35. data/lib/fly_io/redactor.rb +34 -0
  36. data/lib/fly_io/resources/base.rb +68 -0
  37. data/lib/fly_io/resources.rb +30 -0
  38. data/lib/fly_io/response.rb +45 -0
  39. data/lib/fly_io/schema_registry.rb +89 -0
  40. data/lib/fly_io/schema_validator.rb +56 -0
  41. data/lib/fly_io/transport.rb +282 -0
  42. data/lib/fly_io/version.rb +5 -0
  43. data/lib/fly_io.rb +23 -0
  44. data/script/check_api_coverage +60 -0
  45. data/script/fetch_openapi +18 -0
  46. data/script/generate_api +302 -0
  47. metadata +197 -0
@@ -0,0 +1,316 @@
1
+ fragment AddOnData on AddOn {
2
+ id
3
+ name
4
+ primaryRegion
5
+ status
6
+ errorMessage
7
+ metadata
8
+ options
9
+ }
10
+
11
+ query GetAddOn($name: String, $provider: String) {
12
+ addOn(name: $name, provider: $provider) {
13
+ ...AddOnData
14
+ publicUrl
15
+ privateIp
16
+ password
17
+ status
18
+ primaryRegion
19
+ readRegions
20
+ options
21
+ metadata
22
+ ssoLink
23
+ organization {
24
+ slug
25
+ paidPlan
26
+ }
27
+ addOnProvider {
28
+ ...ExtensionProviderData
29
+ }
30
+ app {
31
+ ...AppData
32
+ }
33
+ addOnPlan {
34
+ id
35
+ name
36
+ displayName
37
+ description
38
+ }
39
+ }
40
+ }
41
+
42
+ mutation CreateAddOn($input: CreateAddOnInput!) {
43
+ createAddOn(input: $input) {
44
+ addOn {
45
+ name
46
+ publicUrl
47
+ ssoLink
48
+ environment
49
+ primaryRegion
50
+ }
51
+ }
52
+ }
53
+
54
+ fragment ExtensionData on AddOn {
55
+ name
56
+ ssoLink
57
+ environment
58
+ primaryRegion
59
+ }
60
+
61
+
62
+ mutation CreateExtension($input: CreateAddOnInput!) {
63
+ createAddOn(input: $input) {
64
+ addOn {
65
+ ...ExtensionData
66
+ }
67
+ }
68
+ }
69
+
70
+ mutation CreateApp($input: CreateAppInput!) {
71
+ createApp(input: $input) {
72
+ app {
73
+ ...AppData
74
+ config {
75
+ definition
76
+ }
77
+ regions {
78
+ name
79
+ code
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ mutation CreateTosAgreement($providerName: String!) {
86
+ createExtensionTosAgreement(input: {addOnProviderName: $providerName}) {
87
+ clientMutationId
88
+ }
89
+ }
90
+
91
+ query AgreedToProviderTos($addOnProviderName: String!) {
92
+ viewer {
93
+ ... on User {
94
+ agreedToProviderTos(providerName: $addOnProviderName)
95
+ }
96
+ }
97
+ }
98
+
99
+ query GetOrganization($slug: String!) {
100
+ organization(slug: $slug) {
101
+ ...OrganizationData
102
+ }
103
+ }
104
+
105
+ query GetApp($name: String!) {
106
+ app(name: $name) {
107
+ ...AppData
108
+ }
109
+ }
110
+
111
+ query GetAppWithAddons($name: String!, $addOnType: AddOnType!) {
112
+ app(name: $name) {
113
+ ...AppData
114
+ addOns(type: $addOnType) {
115
+ nodes {
116
+ ...AddOnData
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ query GetAppsByRole($role: String!, $organizationId: ID!) {
123
+ apps(role: $role, organizationId: $organizationId) {
124
+ nodes {
125
+ ...AppData
126
+ }
127
+ }
128
+ }
129
+
130
+ query GetExtensionSsoLink($orgSlug: String!, $provider: String!) {
131
+ organization(slug: $orgSlug) {
132
+ extensionSsoLink(provider: $provider)
133
+ }
134
+ }
135
+
136
+ fragment OrganizationData on Organization {
137
+ id
138
+ slug
139
+ rawSlug
140
+ paidPlan
141
+ addOnSsoLink
142
+ provisionsBetaExtensions
143
+ name
144
+ billable
145
+ billingStatus
146
+ }
147
+
148
+ fragment AppData on App {
149
+ id
150
+ name
151
+ deployed
152
+ platformVersion
153
+ cnameTarget
154
+ secrets {
155
+ name
156
+ }
157
+ organization {
158
+ ...OrganizationData
159
+ }
160
+ }
161
+
162
+ mutation SetSecrets($input: SetSecretsInput!) {
163
+ setSecrets(input: $input) {
164
+ release {
165
+ id
166
+ version
167
+ reason
168
+ description
169
+ user {
170
+ id
171
+ email
172
+ name
173
+ }
174
+ evaluationId
175
+ createdAt
176
+ }
177
+ }
178
+ }
179
+
180
+ query GetNearestRegion{
181
+ nearestRegion {
182
+ code
183
+ name
184
+ gatewayAvailable
185
+ deprecated
186
+ }
187
+ }
188
+
189
+ mutation CreateLimitedAccessToken($name: String!, $organizationId: ID!, $profile: String!, $profileParams: JSON, $expiry: String!) {
190
+ createLimitedAccessToken(input: {name: $name, organizationId: $organizationId, profile: $profile, profileParams: $profileParams, expiry: $expiry}) {
191
+ limitedAccessToken {
192
+ tokenHeader
193
+ }
194
+ }
195
+ }
196
+
197
+ mutation LogOut {
198
+ logOut(input: {}) {
199
+ ok
200
+ }
201
+ }
202
+
203
+ mutation SetNomadVMCount($input: SetVMCountInput!) {
204
+ setVmCount(input: $input) {
205
+ taskGroupCounts {
206
+ name
207
+ count
208
+ }
209
+ warnings
210
+ }
211
+ }
212
+
213
+ mutation DeleteAddOn($name: String, $provider: String) {
214
+ deleteAddOn(input: {name: $name, provider: $provider}) {
215
+ deletedAddOnName
216
+ }
217
+ }
218
+
219
+ fragment ExtensionProviderData on AddOnProvider {
220
+ id
221
+ name
222
+ displayName
223
+ tosUrl
224
+ asyncProvisioning
225
+ autoProvision
226
+ selectName
227
+ selectRegion
228
+ selectReplicaRegions
229
+ detectPlatform
230
+ resourceName
231
+ nameSuffix
232
+ beta
233
+ tosAgreement
234
+ internal
235
+ provisioningInstructions
236
+ excludedRegions {
237
+ code
238
+ }
239
+ }
240
+ query GetAddOnProvider($name: String!) {
241
+ addOnProvider(name: $name) {
242
+ ...ExtensionProviderData
243
+ }
244
+ }
245
+
246
+ query ListAddOns($addOnType: AddOnType) {
247
+ addOns(type: $addOnType) {
248
+ nodes {
249
+ id
250
+ name
251
+ addOnPlan {
252
+ displayName
253
+ description
254
+ }
255
+ privateIp
256
+ primaryRegion
257
+ readRegions
258
+ options
259
+ metadata
260
+ organization {
261
+ id
262
+ slug
263
+ }
264
+ }
265
+ }
266
+ }
267
+
268
+ query ListOrganizationAddOns($orgSlug: String!, $addOnType: AddOnType) {
269
+ organization(slug: $orgSlug) {
270
+ addOns(type: $addOnType) {
271
+ nodes {
272
+ id
273
+ name
274
+ addOnPlan {
275
+ displayName
276
+ description
277
+ }
278
+ privateIp
279
+ primaryRegion
280
+ readRegions
281
+ options
282
+ metadata
283
+ }
284
+ }
285
+ }
286
+ }
287
+
288
+ mutation UpdateAddOn($addOnId: ID!, $planId: ID!, $readRegions: [String!]!, $options: JSON!, $metadata: JSON!) {
289
+ updateAddOn(input: {addOnId: $addOnId, planId: $planId, readRegions: $readRegions, options: $options, metadata: $metadata}) {
290
+ addOn {
291
+ id
292
+ }
293
+ }
294
+ }
295
+
296
+ mutation UpdateRedisAddOn($addOnId: ID!, $planId: ID!, $readRegions: [String!]!, $options: JSON!, $metadata: JSON!,
297
+ # @genqlient(pointer: true)
298
+ $prodPack: Boolean) {
299
+ updateAddOn(input: {addOnId: $addOnId, planId: $planId, readRegions: $readRegions, options: $options, metadata: $metadata, prodPack: $prodPack}) {
300
+ addOn {
301
+ id
302
+ }
303
+ }
304
+ }
305
+
306
+ query ListAddOnPlans($addOnType: AddOnType!) {
307
+ addOnPlans(type: $addOnType) {
308
+ nodes {
309
+ id
310
+ description
311
+ displayName
312
+ maxDataSize
313
+ pricePerMonth
314
+ }
315
+ }
316
+ }
@@ -0,0 +1,336 @@
1
+ {
2
+ "retrieved_at": "2026-08-26",
3
+ "repository": "https://github.com/superfly/flyctl",
4
+ "revision": "1f906765dee8e973f6d1dd8fff65b58212e7b425",
5
+ "schema": {
6
+ "source_path": "gql/schema.graphql",
7
+ "sha256": "2f1a1d0f2f8940277e5e14002c78cb4f6404b3ea1ce9d0999d4d3b65c52f9480",
8
+ "bytes": 190611,
9
+ "lines": 10995
10
+ },
11
+ "named_operation_count": 27,
12
+ "ad_hoc_operation_count": 2,
13
+ "named_operations": [
14
+ {
15
+ "operation_type": "query",
16
+ "operation_name": "AgentGetInstances",
17
+ "root_fields": [
18
+ "app"
19
+ ],
20
+ "name": "AgentGetInstances",
21
+ "document": "query AgentGetInstances ($appName: String!) {\n\tapp(name: $appName) {\n\t\torganization {\n\t\t\tslug\n\t\t}\n\t\tid\n\t\tname\n\t\tallocations(showCompleted: false) {\n\t\t\tid\n\t\t\tregion\n\t\t\tprivateIP\n\t\t}\n\t\tmachines {\n\t\t\tnodes {\n\t\t\t\tstate\n\t\t\t\tid\n\t\t\t\tregion\n\t\t\t\tips {\n\t\t\t\t\tnodes {\n\t\t\t\t\t\tkind\n\t\t\t\t\t\tfamily\n\t\t\t\t\t\tip\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
22
+ "source_path": "agent/client.go",
23
+ "source_line": 585
24
+ },
25
+ {
26
+ "operation_type": "query",
27
+ "operation_name": "AgreedToProviderTos",
28
+ "root_fields": [
29
+ "viewer"
30
+ ],
31
+ "name": "AgreedToProviderTos",
32
+ "document": "query AgreedToProviderTos ($addOnProviderName: String!) {\n\tviewer {\n\t\t__typename\n\t\t... on User {\n\t\t\tagreedToProviderTos(providerName: $addOnProviderName)\n\t\t}\n\t}\n}",
33
+ "source_path": "gql/genqclient.graphql",
34
+ "source_line": 90
35
+ },
36
+ {
37
+ "operation_type": "query",
38
+ "operation_name": "AllApps",
39
+ "root_fields": [
40
+ "organization"
41
+ ],
42
+ "name": "AllApps",
43
+ "document": "query AllApps ($orgSlug: String!) {\n\torganization(slug: $orgSlug) {\n\t\tapps {\n\t\t\tnodes {\n\t\t\t\tid\n\t\t\t\tcreatedAt\n\t\t\t}\n\t\t}\n\t}\n}",
44
+ "source_path": "scripts/clean-up-preflight-apps/main.go",
45
+ "source_line": 37
46
+ },
47
+ {
48
+ "operation_type": "mutation",
49
+ "operation_name": "CreateAddOn",
50
+ "root_fields": [
51
+ "createAddOn"
52
+ ],
53
+ "name": "CreateAddOn",
54
+ "document": "mutation CreateAddOn ($input: CreateAddOnInput!) {\n\tcreateAddOn(input: $input) {\n\t\taddOn {\n\t\t\tname\n\t\t\tpublicUrl\n\t\t\tssoLink\n\t\t\tenvironment\n\t\t\tprimaryRegion\n\t\t}\n\t}\n}",
55
+ "source_path": "gql/genqclient.graphql",
56
+ "source_line": 41
57
+ },
58
+ {
59
+ "operation_type": "mutation",
60
+ "operation_name": "CreateApp",
61
+ "root_fields": [
62
+ "createApp"
63
+ ],
64
+ "name": "CreateApp",
65
+ "document": "mutation CreateApp ($input: CreateAppInput!) {\n\tcreateApp(input: $input) {\n\t\tapp {\n\t\t\t... AppData\n\t\t\tconfig {\n\t\t\t\tdefinition\n\t\t\t}\n\t\t\tregions {\n\t\t\t\tname\n\t\t\t\tcode\n\t\t\t}\n\t\t}\n\t}\n}\nfragment AppData on App {\n\tid\n\tname\n\tdeployed\n\tplatformVersion\n\tcnameTarget\n\tsecrets {\n\t\tname\n\t}\n\torganization {\n\t\t... OrganizationData\n\t}\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
66
+ "source_path": "gql/genqclient.graphql",
67
+ "source_line": 69
68
+ },
69
+ {
70
+ "operation_type": "mutation",
71
+ "operation_name": "CreateExtension",
72
+ "root_fields": [
73
+ "createAddOn"
74
+ ],
75
+ "name": "CreateExtension",
76
+ "document": "mutation CreateExtension ($input: CreateAddOnInput!) {\n\tcreateAddOn(input: $input) {\n\t\taddOn {\n\t\t\t... ExtensionData\n\t\t}\n\t}\n}\nfragment ExtensionData on AddOn {\n\tname\n\tssoLink\n\tenvironment\n\tprimaryRegion\n}",
77
+ "source_path": "gql/genqclient.graphql",
78
+ "source_line": 60
79
+ },
80
+ {
81
+ "operation_type": "mutation",
82
+ "operation_name": "CreateLimitedAccessToken",
83
+ "root_fields": [
84
+ "createLimitedAccessToken"
85
+ ],
86
+ "name": "CreateLimitedAccessToken",
87
+ "document": "mutation CreateLimitedAccessToken ($name: String!, $organizationId: ID!, $profile: String!, $profileParams: JSON, $expiry: String!) {\n\tcreateLimitedAccessToken(input: {name:$name,organizationId:$organizationId,profile:$profile,profileParams:$profileParams,expiry:$expiry}) {\n\t\tlimitedAccessToken {\n\t\t\ttokenHeader\n\t\t}\n\t}\n}",
88
+ "source_path": "gql/genqclient.graphql",
89
+ "source_line": 188
90
+ },
91
+ {
92
+ "operation_type": "mutation",
93
+ "operation_name": "CreateTosAgreement",
94
+ "root_fields": [
95
+ "createExtensionTosAgreement"
96
+ ],
97
+ "name": "CreateTosAgreement",
98
+ "document": "mutation CreateTosAgreement ($providerName: String!) {\n\tcreateExtensionTosAgreement(input: {addOnProviderName:$providerName}) {\n\t\tclientMutationId\n\t}\n}",
99
+ "source_path": "gql/genqclient.graphql",
100
+ "source_line": 84
101
+ },
102
+ {
103
+ "operation_type": "mutation",
104
+ "operation_name": "DeleteAddOn",
105
+ "root_fields": [
106
+ "deleteAddOn"
107
+ ],
108
+ "name": "DeleteAddOn",
109
+ "document": "mutation DeleteAddOn ($name: String, $provider: String) {\n\tdeleteAddOn(input: {name:$name,provider:$provider}) {\n\t\tdeletedAddOnName\n\t}\n}",
110
+ "source_path": "gql/genqclient.graphql",
111
+ "source_line": 212
112
+ },
113
+ {
114
+ "operation_type": "query",
115
+ "operation_name": "FlyctlConfigCurrentRelease",
116
+ "root_fields": [
117
+ "app"
118
+ ],
119
+ "name": "FlyctlConfigCurrentRelease",
120
+ "document": "query FlyctlConfigCurrentRelease ($appName: String!) {\n\tapp(name: $appName) {\n\t\tcurrentReleaseUnprocessed {\n\t\t\tconfigDefinition\n\t\t}\n\t}\n}",
121
+ "source_path": "internal/appconfig/remote.go",
122
+ "source_line": 54
123
+ },
124
+ {
125
+ "operation_type": "query",
126
+ "operation_name": "GetAddOn",
127
+ "root_fields": [
128
+ "addOn"
129
+ ],
130
+ "name": "GetAddOn",
131
+ "document": "query GetAddOn ($name: String, $provider: String) {\n\taddOn(name: $name, provider: $provider) {\n\t\t... AddOnData\n\t\tpublicUrl\n\t\tprivateIp\n\t\tpassword\n\t\tstatus\n\t\tprimaryRegion\n\t\treadRegions\n\t\toptions\n\t\tmetadata\n\t\tssoLink\n\t\torganization {\n\t\t\tslug\n\t\t\tpaidPlan\n\t\t}\n\t\taddOnProvider {\n\t\t\t... ExtensionProviderData\n\t\t}\n\t\tapp {\n\t\t\t... AppData\n\t\t}\n\t\taddOnPlan {\n\t\t\tid\n\t\t\tname\n\t\t\tdisplayName\n\t\t\tdescription\n\t\t}\n\t}\n}\nfragment AddOnData on AddOn {\n\tid\n\tname\n\tprimaryRegion\n\tstatus\n\terrorMessage\n\tmetadata\n\toptions\n}\nfragment ExtensionProviderData on AddOnProvider {\n\tid\n\tname\n\tdisplayName\n\ttosUrl\n\tasyncProvisioning\n\tautoProvision\n\tselectName\n\tselectRegion\n\tselectReplicaRegions\n\tdetectPlatform\n\tresourceName\n\tnameSuffix\n\tbeta\n\ttosAgreement\n\tinternal\n\tprovisioningInstructions\n\texcludedRegions {\n\t\tcode\n\t}\n}\nfragment AppData on App {\n\tid\n\tname\n\tdeployed\n\tplatformVersion\n\tcnameTarget\n\tsecrets {\n\t\tname\n\t}\n\torganization {\n\t\t... OrganizationData\n\t}\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
132
+ "source_path": "gql/genqclient.graphql",
133
+ "source_line": 10
134
+ },
135
+ {
136
+ "operation_type": "query",
137
+ "operation_name": "GetAddOnProvider",
138
+ "root_fields": [
139
+ "addOnProvider"
140
+ ],
141
+ "name": "GetAddOnProvider",
142
+ "document": "query GetAddOnProvider ($name: String!) {\n\taddOnProvider(name: $name) {\n\t\t... ExtensionProviderData\n\t}\n}\nfragment ExtensionProviderData on AddOnProvider {\n\tid\n\tname\n\tdisplayName\n\ttosUrl\n\tasyncProvisioning\n\tautoProvision\n\tselectName\n\tselectRegion\n\tselectReplicaRegions\n\tdetectPlatform\n\tresourceName\n\tnameSuffix\n\tbeta\n\ttosAgreement\n\tinternal\n\tprovisioningInstructions\n\texcludedRegions {\n\t\tcode\n\t}\n}",
143
+ "source_path": "gql/genqclient.graphql",
144
+ "source_line": 240
145
+ },
146
+ {
147
+ "operation_type": "query",
148
+ "operation_name": "GetApp",
149
+ "root_fields": [
150
+ "app"
151
+ ],
152
+ "name": "GetApp",
153
+ "document": "query GetApp ($name: String!) {\n\tapp(name: $name) {\n\t\t... AppData\n\t}\n}\nfragment AppData on App {\n\tid\n\tname\n\tdeployed\n\tplatformVersion\n\tcnameTarget\n\tsecrets {\n\t\tname\n\t}\n\torganization {\n\t\t... OrganizationData\n\t}\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
154
+ "source_path": "gql/genqclient.graphql",
155
+ "source_line": 104
156
+ },
157
+ {
158
+ "operation_type": "query",
159
+ "operation_name": "GetAppWithAddons",
160
+ "root_fields": [
161
+ "app"
162
+ ],
163
+ "name": "GetAppWithAddons",
164
+ "document": "query GetAppWithAddons ($name: String!, $addOnType: AddOnType!) {\n\tapp(name: $name) {\n\t\t... AppData\n\t\taddOns(type: $addOnType) {\n\t\t\tnodes {\n\t\t\t\t... AddOnData\n\t\t\t}\n\t\t}\n\t}\n}\nfragment AppData on App {\n\tid\n\tname\n\tdeployed\n\tplatformVersion\n\tcnameTarget\n\tsecrets {\n\t\tname\n\t}\n\torganization {\n\t\t... OrganizationData\n\t}\n}\nfragment AddOnData on AddOn {\n\tid\n\tname\n\tprimaryRegion\n\tstatus\n\terrorMessage\n\tmetadata\n\toptions\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
165
+ "source_path": "gql/genqclient.graphql",
166
+ "source_line": 110
167
+ },
168
+ {
169
+ "operation_type": "query",
170
+ "operation_name": "GetAppsByRole",
171
+ "root_fields": [
172
+ "apps"
173
+ ],
174
+ "name": "GetAppsByRole",
175
+ "document": "query GetAppsByRole ($role: String!, $organizationId: ID!) {\n\tapps(role: $role, organizationId: $organizationId) {\n\t\tnodes {\n\t\t\t... AppData\n\t\t}\n\t}\n}\nfragment AppData on App {\n\tid\n\tname\n\tdeployed\n\tplatformVersion\n\tcnameTarget\n\tsecrets {\n\t\tname\n\t}\n\torganization {\n\t\t... OrganizationData\n\t}\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
176
+ "source_path": "gql/genqclient.graphql",
177
+ "source_line": 121
178
+ },
179
+ {
180
+ "operation_type": "query",
181
+ "operation_name": "GetExtensionSsoLink",
182
+ "root_fields": [
183
+ "organization"
184
+ ],
185
+ "name": "GetExtensionSsoLink",
186
+ "document": "query GetExtensionSsoLink ($orgSlug: String!, $provider: String!) {\n\torganization(slug: $orgSlug) {\n\t\textensionSsoLink(provider: $provider)\n\t}\n}",
187
+ "source_path": "gql/genqclient.graphql",
188
+ "source_line": 129
189
+ },
190
+ {
191
+ "operation_type": "query",
192
+ "operation_name": "GetNearestRegion",
193
+ "root_fields": [
194
+ "nearestRegion"
195
+ ],
196
+ "name": "GetNearestRegion",
197
+ "document": "query GetNearestRegion {\n\tnearestRegion {\n\t\tcode\n\t\tname\n\t\tgatewayAvailable\n\t\tdeprecated\n\t}\n}",
198
+ "source_path": "gql/genqclient.graphql",
199
+ "source_line": 179
200
+ },
201
+ {
202
+ "operation_type": "query",
203
+ "operation_name": "GetOrganization",
204
+ "root_fields": [
205
+ "organization"
206
+ ],
207
+ "name": "GetOrganization",
208
+ "document": "query GetOrganization ($slug: String!) {\n\torganization(slug: $slug) {\n\t\t... OrganizationData\n\t}\n}\nfragment OrganizationData on Organization {\n\tid\n\tslug\n\trawSlug\n\tpaidPlan\n\taddOnSsoLink\n\tprovisionsBetaExtensions\n\tname\n\tbillable\n\tbillingStatus\n}",
209
+ "source_path": "gql/genqclient.graphql",
210
+ "source_line": 98
211
+ },
212
+ {
213
+ "operation_type": "query",
214
+ "operation_name": "ListAddOnPlans",
215
+ "root_fields": [
216
+ "addOnPlans"
217
+ ],
218
+ "name": "ListAddOnPlans",
219
+ "document": "query ListAddOnPlans ($addOnType: AddOnType!) {\n\taddOnPlans(type: $addOnType) {\n\t\tnodes {\n\t\t\tid\n\t\t\tdescription\n\t\t\tdisplayName\n\t\t\tmaxDataSize\n\t\t\tpricePerMonth\n\t\t}\n\t}\n}",
220
+ "source_path": "gql/genqclient.graphql",
221
+ "source_line": 305
222
+ },
223
+ {
224
+ "operation_type": "query",
225
+ "operation_name": "ListAddOns",
226
+ "root_fields": [
227
+ "addOns"
228
+ ],
229
+ "name": "ListAddOns",
230
+ "document": "query ListAddOns ($addOnType: AddOnType) {\n\taddOns(type: $addOnType) {\n\t\tnodes {\n\t\t\tid\n\t\t\tname\n\t\t\taddOnPlan {\n\t\t\t\tdisplayName\n\t\t\t\tdescription\n\t\t\t}\n\t\t\tprivateIp\n\t\t\tprimaryRegion\n\t\t\treadRegions\n\t\t\toptions\n\t\t\tmetadata\n\t\t\torganization {\n\t\t\t\tid\n\t\t\t\tslug\n\t\t\t}\n\t\t}\n\t}\n}",
231
+ "source_path": "gql/genqclient.graphql",
232
+ "source_line": 245
233
+ },
234
+ {
235
+ "operation_type": "query",
236
+ "operation_name": "ListOrganizationAddOns",
237
+ "root_fields": [
238
+ "organization"
239
+ ],
240
+ "name": "ListOrganizationAddOns",
241
+ "document": "query ListOrganizationAddOns ($orgSlug: String!, $addOnType: AddOnType) {\n\torganization(slug: $orgSlug) {\n\t\taddOns(type: $addOnType) {\n\t\t\tnodes {\n\t\t\t\tid\n\t\t\t\tname\n\t\t\t\taddOnPlan {\n\t\t\t\t\tdisplayName\n\t\t\t\t\tdescription\n\t\t\t\t}\n\t\t\t\tprivateIp\n\t\t\t\tprimaryRegion\n\t\t\t\treadRegions\n\t\t\t\toptions\n\t\t\t\tmetadata\n\t\t\t}\n\t\t}\n\t}\n}",
242
+ "source_path": "gql/genqclient.graphql",
243
+ "source_line": 267
244
+ },
245
+ {
246
+ "operation_type": "mutation",
247
+ "operation_name": "LogOut",
248
+ "root_fields": [
249
+ "logOut"
250
+ ],
251
+ "name": "LogOut",
252
+ "document": "mutation LogOut {\n\tlogOut(input: {}) {\n\t\tok\n\t}\n}",
253
+ "source_path": "gql/genqclient.graphql",
254
+ "source_line": 196
255
+ },
256
+ {
257
+ "operation_type": "mutation",
258
+ "operation_name": "ResetAddOnPassword",
259
+ "root_fields": [
260
+ "resetAddOnPassword"
261
+ ],
262
+ "name": "ResetAddOnPassword",
263
+ "document": "mutation ResetAddOnPassword ($name: String!) {\n\tresetAddOnPassword(input: {name:$name}) {\n\t\taddOn {\n\t\t\tpublicUrl\n\t\t}\n\t}\n}",
264
+ "source_path": "internal/command/redis/reset_password.go",
265
+ "source_line": 43
266
+ },
267
+ {
268
+ "operation_type": "mutation",
269
+ "operation_name": "SetNomadVMCount",
270
+ "root_fields": [
271
+ "setVmCount"
272
+ ],
273
+ "name": "SetNomadVMCount",
274
+ "document": "mutation SetNomadVMCount ($input: SetVMCountInput!) {\n\tsetVmCount(input: $input) {\n\t\ttaskGroupCounts {\n\t\t\tname\n\t\t\tcount\n\t\t}\n\t\twarnings\n\t}\n}",
275
+ "source_path": "gql/genqclient.graphql",
276
+ "source_line": 202
277
+ },
278
+ {
279
+ "operation_type": "mutation",
280
+ "operation_name": "SetSecrets",
281
+ "root_fields": [
282
+ "setSecrets"
283
+ ],
284
+ "name": "SetSecrets",
285
+ "document": "mutation SetSecrets ($input: SetSecretsInput!) {\n\tsetSecrets(input: $input) {\n\t\trelease {\n\t\t\tid\n\t\t\tversion\n\t\t\treason\n\t\t\tdescription\n\t\t\tuser {\n\t\t\t\tid\n\t\t\t\temail\n\t\t\t\tname\n\t\t\t}\n\t\t\tevaluationId\n\t\t\tcreatedAt\n\t\t}\n\t}\n}",
286
+ "source_path": "gql/genqclient.graphql",
287
+ "source_line": 161
288
+ },
289
+ {
290
+ "operation_type": "mutation",
291
+ "operation_name": "UpdateAddOn",
292
+ "root_fields": [
293
+ "updateAddOn"
294
+ ],
295
+ "name": "UpdateAddOn",
296
+ "document": "mutation UpdateAddOn ($addOnId: ID!, $planId: ID!, $readRegions: [String!]!, $options: JSON!, $metadata: JSON!) {\n\tupdateAddOn(input: {addOnId:$addOnId,planId:$planId,readRegions:$readRegions,options:$options,metadata:$metadata}) {\n\t\taddOn {\n\t\t\tid\n\t\t}\n\t}\n}",
297
+ "source_path": "gql/genqclient.graphql",
298
+ "source_line": 287
299
+ },
300
+ {
301
+ "operation_type": "mutation",
302
+ "operation_name": "UpdateRedisAddOn",
303
+ "root_fields": [
304
+ "updateAddOn"
305
+ ],
306
+ "name": "UpdateRedisAddOn",
307
+ "document": "mutation UpdateRedisAddOn ($addOnId: ID!, $planId: ID!, $readRegions: [String!]!, $options: JSON!, $metadata: JSON!, $prodPack: Boolean) {\n\tupdateAddOn(input: {addOnId:$addOnId,planId:$planId,readRegions:$readRegions,options:$options,metadata:$metadata,prodPack:$prodPack}) {\n\t\taddOn {\n\t\t\tid\n\t\t}\n\t}\n}",
308
+ "source_path": "gql/genqclient.graphql",
309
+ "source_line": 295
310
+ }
311
+ ],
312
+ "ad_hoc_operations": [
313
+ {
314
+ "operation_type": "query",
315
+ "operation_name": null,
316
+ "root_fields": [
317
+ "apps"
318
+ ],
319
+ "adapter": "apps_list_with_network",
320
+ "document": "query($org: ID, $after: String) {\n\t\t\tapps(type: \"container\", first: 200, after: $after, organizationId: $org) {\n\t\t\t\tpageInfo {\n\t\t\t\t\thasNextPage\n\t\t\t\t\tendCursor\n\t\t\t\t}\n\t\t\t\tnodes {\n\t\t\t\t\tid\n\t\t\t\t\tname\n\t\t\t\t\tdeployed\n\t\t\t\t\thostname\n\t\t\t\t\tplatformVersion\n\t\t\t\t\tnetwork\n\t\t\t\t\torganization {\n\t\t\t\t\t\tslug\n\t\t\t\t\t\tname\n\t\t\t\t\t}\n\t\t\t\t\tcurrentRelease {\n\t\t\t\t\t\tcreatedAt\n\t\t\t\t\t\tstatus\n\t\t\t\t\t}\n\t\t\t\t\tstatus\n\t\t\t\t}\n\t\t\t}\n\t\t}",
321
+ "source_path": "internal/command/apps/list.go",
322
+ "source_line": 137
323
+ },
324
+ {
325
+ "operation_type": "query",
326
+ "operation_name": null,
327
+ "root_fields": [
328
+ "app"
329
+ ],
330
+ "adapter": "status_current_release_version",
331
+ "document": "query ($appName: String!) {\n\t\t\tapp(name:$appName) {\n\t\t\t\tcurrentRelease:currentReleaseUnprocessed {\n\t\t\t\t\tversion\n\t\t\t\t}\n\t\t\t}\n\t\t}",
332
+ "source_path": "internal/command/status/machines.go",
333
+ "source_line": 239
334
+ }
335
+ ]
336
+ }