-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathschema.graphql
More file actions
11737 lines (11052 loc) · 208 KB
/
schema.graphql
File metadata and controls
11737 lines (11052 loc) · 208 KB
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
Directs the executor to defer this fragment when the `if` argument is true or undefined.
"""
directive @defer(
"""
Deferred when true or undefined.
"""
if: Boolean
"""
Unique name
"""
label: String
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
"""
Marks an element of a GraphQL schema as no longer supported.
"""
directive @deprecated(
"""
Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).
"""
reason: String
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
"""
Directs the executor to include this field or fragment only when the `if` argument is true.
"""
directive @include(
"""
Included when true.
"""
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"""
Indicates exactly one field must be supplied and this field must not be `null`.
"""
directive @oneOf on INPUT_OBJECT
"""
Directs the executor to skip this field or fragment when the `if` argument is true.
"""
directive @skip(
"""
Skipped when true.
"""
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"""
Exposes a URL that specifies the behavior of this scalar.
"""
directive @specifiedBy(
"""
The URL that specifies the behavior of this scalar.
"""
url: String!
) on SCALAR
enum ActivityLogActivityType {
"""
Filter for credential creation events.
"""
CREDENTIALS_CREATE
"""
An application was deleted.
"""
APPLICATION_DELETED
"""
An application was restarted.
"""
APPLICATION_RESTARTED
"""
An application was scaled.
"""
APPLICATION_SCALED
"""
All activity log entries related to direct cluster changes.
"""
CLUSTER_AUDIT
"""
Config was created.
"""
CONFIG_CREATED
"""
Config was updated.
"""
CONFIG_UPDATED
"""
Config was deleted.
"""
CONFIG_DELETED
"""
Activity log entry for deployment activity.
"""
DEPLOYMENT
"""
Activity log entry for team deploy key updates.
"""
TEAM_DEPLOY_KEY_UPDATED
"""
Activity log entries related to job deletion.
"""
JOB_DELETED
"""
Activity log entries related to job run deletion.
"""
JOB_RUN_DELETED
"""
Activity log entries related to job triggering.
"""
JOB_TRIGGERED
"""
OpenSearch was created.
"""
OPENSEARCH_CREATED
"""
OpenSearch was updated.
"""
OPENSEARCH_UPDATED
"""
OpenSearch was deleted.
"""
OPENSEARCH_DELETED
"""
Started service maintenance on OpenSearch instance.
"""
OPENSEARCH_MAINTENANCE_STARTED
"""
A user was granted access to a Postgres cluster
"""
POSTGRES_GRANT_ACCESS
"""
Reconciler enabled activity log entry.
"""
RECONCILER_ENABLED
"""
Reconciler disabled activity log entry.
"""
RECONCILER_DISABLED
"""
Reconciler configured activity log entry.
"""
RECONCILER_CONFIGURED
"""
Repository was added to a team.
"""
REPOSITORY_ADDED
"""
Repository was removed from a team.
"""
REPOSITORY_REMOVED
"""
Secret was created.
"""
SECRET_CREATED
"""
Secret value was added.
"""
SECRET_VALUE_ADDED
"""
Secret value was updated.
"""
SECRET_VALUE_UPDATED
"""
Secret value was removed.
"""
SECRET_VALUE_REMOVED
"""
Secret was deleted.
"""
SECRET_DELETED
"""
Secret values were viewed.
"""
SECRET_VALUES_VIEWED
"""
Service account was created.
"""
SERVICE_ACCOUNT_CREATED
"""
Service account was updated.
"""
SERVICE_ACCOUNT_UPDATED
"""
Service account was deleted.
"""
SERVICE_ACCOUNT_DELETED
"""
Role was assigned to a service account.
"""
SERVICE_ACCOUNT_ROLE_ASSIGNED
"""
Role was revoked from a service account.
"""
SERVICE_ACCOUNT_ROLE_REVOKED
"""
Service account token was created.
"""
SERVICE_ACCOUNT_TOKEN_CREATED
"""
Service account token was updated.
"""
SERVICE_ACCOUNT_TOKEN_UPDATED
"""
Service account token was deleted.
"""
SERVICE_ACCOUNT_TOKEN_DELETED
"""
Team was created.
"""
TEAM_CREATED
"""
Team was updated.
"""
TEAM_UPDATED
"""
Team delete key was created.
"""
TEAM_CREATE_DELETE_KEY
"""
Team delete key was confirmed.
"""
TEAM_CONFIRM_DELETE_KEY
"""
Team member was added.
"""
TEAM_MEMBER_ADDED
"""
Team member was removed.
"""
TEAM_MEMBER_REMOVED
"""
Team member role was set.
"""
TEAM_MEMBER_SET_ROLE
"""
Team environment was updated.
"""
TEAM_ENVIRONMENT_UPDATED
"""
Unleash instance was created.
"""
UNLEASH_INSTANCE_CREATED
"""
Unleash instance was updated.
"""
UNLEASH_INSTANCE_UPDATED
"""
Unleash instance was deleted.
"""
UNLEASH_INSTANCE_DELETED
"""
Valkey was created.
"""
VALKEY_CREATED
"""
Valkey was updated.
"""
VALKEY_UPDATED
"""
Valkey was deleted.
"""
VALKEY_DELETED
"""
Started service maintenance on Valkey instance.
"""
VALKEY_MAINTENANCE_STARTED
"""
Activity log entry for when a vulnerability is updated.
"""
VULNERABILITY_UPDATED
}
"""
Interface for activity log entries.
"""
interface ActivityLogEntry {
"""
Interface for activity log entries.
"""
id: ID!
"""
Interface for activity log entries.
"""
actor: String!
"""
Interface for activity log entries.
"""
createdAt: Time!
"""
Interface for activity log entries.
"""
message: String!
"""
Interface for activity log entries.
"""
resourceType: ActivityLogEntryResourceType!
"""
Interface for activity log entries.
"""
resourceName: String!
"""
Interface for activity log entries.
"""
teamSlug: Slug
"""
Interface for activity log entries.
"""
environmentName: String
}
"""
Activity log connection.
"""
type ActivityLogEntryConnection {
"""
Pagination information.
"""
pageInfo: PageInfo!
"""
List of nodes.
"""
nodes: [ActivityLogEntry!]!
"""
List of edges.
"""
edges: [ActivityLogEntryEdge!]!
}
"""
Activity log edge.
"""
type ActivityLogEntryEdge {
"""
Cursor for this edge that can be used for pagination.
"""
cursor: Cursor!
"""
The log entry.
"""
node: ActivityLogEntry!
}
"""
The type of the resource that was affected by the activity.
"""
enum ActivityLogEntryResourceType {
"""
Unknown type.
"""
UNKNOWN
"""
All activity log entries related to credential creation will use this resource type.
"""
CREDENTIALS
"""
All activity log entries related to applications will use this resource type.
"""
APP
"""
All activity log entries related to direct cluster changes.
"""
CLUSTER_AUDIT
"""
All activity log entries related to configs will use this resource type.
"""
CONFIG
"""
All activity log entries related to deploy keys will use this resource type.
"""
DEPLOY_KEY
"""
All activity log entries related to jobs will use this resource type.
"""
JOB
"""
All activity log entries related to OpenSearches will use this resource type.
"""
OPENSEARCH
"""
All activity log entries related to Postgres clusters will use this resource type.
"""
POSTGRES
"""
All activity log entries related to reconcilers will use this resource type.
"""
RECONCILER
"""
All activity log entries related to repositories will use this resource type.
"""
REPOSITORY
"""
All activity log entries related to secrets will use this resource type.
"""
SECRET
SERVICE_ACCOUNT
"""
All activity log entries related to teams will use this resource type.
"""
TEAM
"""
All activity log entries related to unleash will use this resource type.
"""
UNLEASH
"""
All activity log entries related to Valkeys will use this resource type.
"""
VALKEY
"""
All activity log entries related to vulnerabilities will use this resource type.
"""
VULNERABILITY
}
input ActivityLogFilter {
activityTypes: [ActivityLogActivityType!]
}
interface ActivityLogger {
activityLog(
first: Int
after: Cursor
last: Int
before: Cursor
filter: ActivityLogFilter
): ActivityLogEntryConnection!
}
input AddConfigValueInput {
name: String!
environmentName: String!
teamSlug: Slug!
value: ConfigValueInput!
}
type AddConfigValuePayload {
"""
The updated config.
"""
config: Config
}
input AddRepositoryToTeamInput {
teamSlug: Slug!
repositoryName: String!
}
type AddRepositoryToTeamPayload {
"""
Repository that was added to the team.
"""
repository: Repository
}
input AddSecretValueInput {
name: String!
environment: String!
team: Slug!
value: SecretValueInput!
}
type AddSecretValuePayload {
"""
The updated secret.
"""
secret: Secret
}
input AddTeamMemberInput {
teamSlug: Slug!
userEmail: String!
role: TeamMemberRole!
}
type AddTeamMemberPayload {
"""
The added team member.
"""
member: TeamMember
}
"""
Alert interface.
"""
interface Alert {
"""
Alert interface.
"""
id: ID!
"""
Alert interface.
"""
name: String!
"""
Alert interface.
"""
team: Team!
"""
Alert interface.
"""
teamEnvironment: TeamEnvironment!
"""
Alert interface.
"""
state: AlertState!
"""
Alert interface.
"""
query: String!
"""
Alert interface.
"""
duration: Float!
}
"""
AlertConnection connection.
"""
type AlertConnection {
"""
Pagination information.
"""
pageInfo: PageInfo!
"""
List of nodes.
"""
nodes: [Alert!]!
"""
List of edges.
"""
edges: [AlertEdge!]!
}
"""
Alert edge.
"""
type AlertEdge {
"""
Cursor for this edge that can be used for pagination.
"""
cursor: Cursor!
"""
The Alert.
"""
node: Alert!
}
"""
Ordering options when fetching alerts.
"""
input AlertOrder {
"""
Ordering options when fetching alerts.
"""
field: AlertOrderField!
"""
Ordering options when fetching alerts.
"""
direction: OrderDirection!
}
"""
Fields to order alerts in an environment by.
"""
enum AlertOrderField {
"""
Order by name.
"""
NAME
"""
Order by state.
"""
STATE
"""
ENVIRONMENT
"""
ENVIRONMENT
}
enum AlertState {
"""
Only return alerts that are firing.
"""
FIRING
"""
Only return alerts that are inactive.
"""
INACTIVE
"""
Only return alerts that are pending.
"""
PENDING
}
input AllowTeamAccessToUnleashInput {
teamSlug: Slug!
allowedTeamSlug: Slug!
}
type AllowTeamAccessToUnleashPayload {
unleash: UnleashInstance
}
"""
An application lets you run one or more instances of a container image on the [Nais platform](https://nais.io/).
Learn more about how to create and configure your applications in the [Nais documentation](https://docs.nais.io/workloads/application/).
"""
type Application implements Node & Workload & ActivityLogger{
"""
The globally unique ID of the application.
"""
id: ID!
"""
The name of the application.
"""
name: String!
"""
The team that owns the application.
"""
team: Team!
"""
The environment the application is deployed in.
"""
environment: TeamEnvironment! @deprecated(reason: "Use the `teamEnvironment` field instead.")
"""
The team environment for the application.
"""
teamEnvironment: TeamEnvironment!
"""
The container image of the application.
"""
image: ContainerImage!
"""
Resources for the application.
"""
resources: ApplicationResources!
"""
List of ingresses for the application.
"""
ingresses: [Ingress!]!
"""
List of authentication and authorization for the application.
"""
authIntegrations: [ApplicationAuthIntegrations!]!
"""
The application manifest.
"""
manifest: ApplicationManifest!
"""
The application instances.
"""
instances(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
): ApplicationInstanceConnection!
"""
If set, when the application was marked for deletion.
"""
deletionStartedAt: Time
"""
Activity log associated with the application.
"""
activityLog(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
"""
Filter items.
"""
filter: ActivityLogFilter
): ActivityLogEntryConnection!
"""
The application state.
"""
state: ApplicationState!
"""
Issues that affect the application.
"""
issues(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
"""
Ordering options for items returned from the connection.
"""
orderBy: IssueOrder
"""
Filtering options for items returned from the connection.
"""
filter: ResourceIssueFilter
): IssueConnection!
"""
BigQuery datasets referenced by the application. This does not currently support pagination, but will return all available datasets.
"""
bigQueryDatasets(
"""
Ordering options for items returned from the connection.
"""
orderBy: BigQueryDatasetOrder
): BigQueryDatasetConnection!
"""
Google Cloud Storage referenced by the application. This does not currently support pagination, but will return all available buckets.
"""
buckets(
"""
Ordering options for items returned from the connection.
"""
orderBy: BucketOrder
): BucketConnection!
"""
Configs used by the application.
"""
configs(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
): ConfigConnection!
"""
The cost for the application.
"""
cost: WorkloadCost!
"""
List of deployments for the application.
"""
deployments(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
): DeploymentConnection!
"""
Kafka topics the application has access to. This does not currently support pagination, but will return all available Kafka topics.
"""
kafkaTopicAcls(
"""
Ordering options for items returned from the connection.
"""
orderBy: KafkaTopicAclOrder
): KafkaTopicAclConnection!
"""
List of log destinations for the application.
"""
logDestinations: [LogDestination!]!
"""
Network policies for the application.
"""
networkPolicy: NetworkPolicy!
"""
OpenSearch instance referenced by the workload.
"""
openSearch: OpenSearch
"""
Postgres instances referenced by the application. This does not currently support pagination, but will return all available Postgres instances.
"""
postgresInstances(
"""
Ordering options for items returned from the connection.
"""
orderBy: PostgresInstanceOrder
): PostgresInstanceConnection!
"""
Secrets used by the application.
"""
secrets(
"""
Get the first n items in the connection. This can be used in combination with the after parameter.
"""
first: Int
"""
Get items after this cursor.
"""
after: Cursor
"""
Get the last n items in the connection. This can be used in combination with the before parameter.
"""
last: Int
"""
Get items before this cursor.
"""
before: Cursor
): SecretConnection!
"""
SQL instances referenced by the application. This does not currently support pagination, but will return all available SQL instances.
"""
sqlInstances(
"""
Ordering options for items returned from the connection.
"""
orderBy: SqlInstanceOrder
): SqlInstanceConnection!
utilization: WorkloadUtilization!
"""
Valkey instances referenced by the application. This does not currently support pagination, but will return all available Valkey instances.
"""
valkeys(
"""
Ordering options for items returned from the connection.
"""
orderBy: ValkeyOrder
): ValkeyConnection!
"""
Get the vulnerability summary history for application.
"""
imageVulnerabilityHistory(
"""
Get vulnerability summary from given date until today.
"""
from: Date!
): ImageVulnerabilityHistory!
"""
Get the mean time to fix history for an application.
"""
vulnerabilityFixHistory(
from: Date!
): VulnerabilityFixHistory!
}
"""
Authentication integrations for the application.
"""
union ApplicationAuthIntegrations =EntraIDAuthIntegration | IDPortenAuthIntegration | MaskinportenAuthIntegration | TokenXAuthIntegration
"""
Application connection.
"""
type ApplicationConnection {
"""
Pagination information.
"""
pageInfo: PageInfo!
"""
List of nodes.
"""
nodes: [Application!]!
"""
List of edges.
"""
edges: [ApplicationEdge!]!
}
type ApplicationDeletedActivityLogEntry implements ActivityLogEntry & Node{
"""
ID of the entry.
"""
id: ID!
"""
The identity of the actor who performed the action. The value is either the name of a service account, or the email address of a user.
"""
actor: String!
"""
Creation time of the entry.
"""
createdAt: Time!
"""
Message that summarizes the entry.
"""
message: String!
"""
Type of the resource that was affected by the action.
"""
resourceType: ActivityLogEntryResourceType!
"""
Name of the resource that was affected by the action.
"""
resourceName: String!
"""
The team slug that the entry belongs to.
"""
teamSlug: Slug!
"""
The environment name that the entry belongs to.
"""
environmentName: String
}
"""
Application edge.
"""
type ApplicationEdge {
"""
Cursor for this edge that can be used for pagination.
"""
cursor: Cursor!
"""
The application.
"""
node: Application!
}
type ApplicationInstance implements Node{
id: ID!
name: String!
image: ContainerImage!
restarts: Int!
created: Time!
status: ApplicationInstanceStatus!
instanceUtilization(
resourceType: UtilizationResourceType!
): ApplicationInstanceUtilization!
}
type ApplicationInstanceConnection {
"""
Pagination information.
"""
pageInfo: PageInfo!
"""
List of nodes.
"""
nodes: [ApplicationInstance!]!
"""
List of edges.
"""
edges: [ApplicationInstanceEdge!]!
}
type ApplicationInstanceEdge {
"""
Cursor for this edge that can be used for pagination.
"""
cursor: Cursor!
"""
The instance.
"""
node: ApplicationInstance!
}
enum ApplicationInstanceState {
RUNNING
STARTING
FAILING
UNKNOWN
}