-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.graphql
381 lines (325 loc) · 7.13 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
schema {
query: Query
mutation: Mutation
}
type AWSKMSNode {
accessKey: String!
description: String
id: UUID!
secretAccessKey: String!
title: String!
}
type ClusterSettingsNode {
id: ID!
port: Int!
}
type CreateOrganizationMemberInvitation {
ok: Boolean
}
type CreateProjectMember {
ok: Boolean
}
input CreateUpdateEnvironmentInput {
clientMutationId: String
deck: ID!
description: String
id: ID
namespace: String!
sopsCredentials: ID
title: String!
type: String!
valuesPath: String
valuesType: String
}
type CreateUpdateEnvironmentPayload {
clientMutationId: String
environment: EnvironmentNode
errors: [ErrorType]
}
type CreateUpdateHelmOverrides {
ok: Boolean
}
input CreateUpdateOrganizationInput {
avatarImage: String
clientMutationId: String
description: String
id: ID
onTrial: Boolean
title: String!
}
type CreateUpdateOrganizationPayload {
clientMutationId: String
errors: [ErrorType]
organization: OrganizationNode
}
type CreateUpdateProject {
project: ProjectNode
}
type CreateUpdateSOPS {
ok: Boolean
}
scalar DateTime
type DeckNode {
deployments(level: String, switchable: Boolean): [DeploymentNode]
description: String
dirPath: String!
environment(level: String): [EnvironmentNode]
fileInformation: [FileInformationNode]
hash: String!
id: UUID!
namespace: String!
project: ProjectNode!
title: String!
type: String!
}
type DeckNodePage {
limit: Int
offset: Int
resultCount: Int
results: [DeckNode]
totalCount: Int
}
type DeleteAvatar {
ok: Boolean
}
type DeleteEnvironment {
ok: Boolean
}
type DeleteOrganizationMember {
ok: Boolean
}
type DeleteProject {
ok: Boolean
}
type DeleteProjectMember {
ok: Boolean
}
type DeleteSOPS {
ok: Boolean
}
type DeploymentNode {
description: String
environment: EnvironmentNode!
id: UUID!
isSwitchable: Boolean!
ports: String!
title: String!
}
type EnvironmentNode {
deck: DeckNode!
deployments: [DeploymentNode!]!
description: String
helmOverrides: HelmOverridesNode
id: UUID!
namespace: String!
sopsCredentials: SOPSProviderNode
specsUrl: String
title: String!
type: EnvironmentType!
valueSchema: String
valuesPath: String!
valuesType: EnvironmentValuesType
}
enum EnvironmentType {
LOCAL
REMOTE
}
enum EnvironmentValuesType {
DIR
FILE
}
type ErrorType {
field: String!
messages: [String!]!
}
type FileInformationNode {
encrypted: Boolean
path: String
}
type HelmOverridesNode {
id: ID!
overrides: String!
}
scalar JSONString
type Mutation {
answerInvitation(accepted: Boolean, id: UUID): UpdateOrganizationMemberInvitation
createInvitation(email: String, id: UUID): CreateOrganizationMemberInvitation
createProjectMember(id: UUID, role: ProjectMemberRoleEnum, user: UUID): CreateProjectMember
createUpdateEnvironment(input: CreateUpdateEnvironmentInput!): CreateUpdateEnvironmentPayload
createUpdateHelmOverrides(environmentId: UUID, overrides: String): CreateUpdateHelmOverrides
createUpdateOrganization(input: CreateUpdateOrganizationInput!): CreateUpdateOrganizationPayload
createUpdateProject(input: ProjectInputType!): CreateUpdateProject
createUpdateSops(id: UUID, sopsData: SOPSInputType!): CreateUpdateSOPS
deleteAvatar(id: UUID): DeleteAvatar
deleteEnvironment(id: UUID): DeleteEnvironment
deleteProject(id: UUID): DeleteProject
deleteProjectMember(id: UUID, user: UUID): DeleteProjectMember
deleteSops(id: UUID): DeleteSOPS
removeOrganizationMember(id: UUID, user: UUID): DeleteOrganizationMember
revokeInvitation(id: UUID): RevokeOrganizationMemberInvitation
updateClusterSettings(input: UpdateClusterSettingsInput!): UpdateClusterSettingsPayload
updateOrganizationMember(id: UUID, role: OrganizationMemberRoleEnum, user: UUID): UpdateOrganizationMember
updateProjectRepository(id: UUID): UpdateProjectRepository
}
type OrganizationInvitationNode {
email: String!
id: UUID!
organization: OrganizationNode!
}
type OrganizationInvitationNodePage {
limit: Int
offset: Int
resultCount: Int
results: [OrganizationInvitationNode]
totalCount: Int
}
type OrganizationMember {
role: String
user: UserNode
}
enum OrganizationMemberRoleEnum {
admin
member
}
type OrganizationNode {
avatarImage: String
created: DateTime!
description: String
id: UUID!
members: [OrganizationMember]
title: String!
}
type OrganizationNodePage {
limit: Int
offset: Int
resultCount: Int
results: [OrganizationNode]
totalCount: Int
}
type PGPKeyNode {
description: String
id: UUID!
privateKey: String!
title: String!
}
input ProjectInputType {
accessToken: String
accessUsername: String
description: String
id: UUID
organization: UUID!
specRepository: String!
specRepositoryBranch: String!
specType: SpecicifactionTypeEnum!
title: String!
}
type ProjectMember {
role: String
user: UserNode
}
enum ProjectMemberRoleEnum {
admin
member
}
type ProjectNode {
accessToken: String
accessUsername: String!
clusterSettings: ClusterSettingsNode
created: DateTime!
currentCommit: String!
currentCommitDateTime: DateTime
decks: [DeckNode!]!
description: String
id: UUID!
keycloakData: JSONString!
members: [ProjectMember]
organization: OrganizationNode
repositoryStatus: ProjectRepositoryStatus!
sops: [SOPSProviderNode]
specRepository: String!
specRepositoryBranch: String
specType: ProjectSpecType!
title: String!
}
type ProjectNodePage {
limit: Int
offset: Int
resultCount: Int
results: [ProjectNode]
totalCount: Int
}
enum ProjectRepositoryStatus {
AUTH_FAILED
BRANCH_UNAVAILABLE
CLONING
CLONING_FAILED
CLONING_PENDING
CLONING_SUCCESSFUL
OK
PARSING_FAILED
UNKNOWN
}
enum ProjectSpecType {
HELM
}
type Query {
allDecks(limit: Int, offset: Int, organizationId: UUID, projectId: UUID): DeckNodePage
allOrganizationInvitations(id: UUID!, limit: Int, offset: Int): OrganizationInvitationNodePage
allOrganizations(limit: Int, offset: Int): OrganizationNodePage
allProjects(limit: Int, offset: Int, organizationId: UUID): ProjectNodePage
deck(id: UUID, slug: String): DeckNode
environment(id: UUID): EnvironmentNode
organization(id: UUID!): OrganizationNode
project(id: UUID, slug: String): ProjectNode
user(id: UUID): UserNode
userInvitations(limit: Int, offset: Int): OrganizationInvitationNodePage
}
type RevokeOrganizationMemberInvitation {
ok: Boolean
}
input SOPSInputType {
description: String
project: UUID!
secret1: String
secret2: String
secret3: String
sopsType: SOPSTypeEnum!
title: String!
}
union SOPSProviderNode = AWSKMSNode | PGPKeyNode
enum SOPSTypeEnum {
aws
pgp
}
enum SpecicifactionTypeEnum {
helm
}
scalar UUID
input UpdateClusterSettingsInput {
clientMutationId: String
id: ID
port: Int!
project: ID!
}
type UpdateClusterSettingsPayload {
clientMutationId: String
clusterSettings: ClusterSettingsNode
errors: [ErrorType]
}
type UpdateOrganizationMember {
ok: Boolean
}
type UpdateOrganizationMemberInvitation {
ok: Boolean
}
type UpdateProjectRepository {
ok: Boolean
}
type UserNode {
avatarImage: String
email: String
familyName: String
givenName: String
id: UUID!
name: String
}