bktide 0.0.1
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/README.md +145 -0
- package/WORKFLOW_README.md +65 -0
- package/bin/alfred-entrypoint +54 -0
- package/dist/commands/BaseCommand.js +159 -0
- package/dist/commands/BaseCommand.js.map +1 -0
- package/dist/commands/BaseCommandHandler.js +80 -0
- package/dist/commands/BaseCommandHandler.js.map +1 -0
- package/dist/commands/BuildCommandHandler.js +28 -0
- package/dist/commands/BuildCommandHandler.js.map +1 -0
- package/dist/commands/HelloCommandHandler.js +6 -0
- package/dist/commands/HelloCommandHandler.js.map +1 -0
- package/dist/commands/ListAnnotations.js +60 -0
- package/dist/commands/ListAnnotations.js.map +1 -0
- package/dist/commands/ListBuilds.js +137 -0
- package/dist/commands/ListBuilds.js.map +1 -0
- package/dist/commands/ListOrganizations.js +27 -0
- package/dist/commands/ListOrganizations.js.map +1 -0
- package/dist/commands/ListPipelines.js +114 -0
- package/dist/commands/ListPipelines.js.map +1 -0
- package/dist/commands/ManageToken.js +180 -0
- package/dist/commands/ManageToken.js.map +1 -0
- package/dist/commands/OrganizationCommandHandler.js +53 -0
- package/dist/commands/OrganizationCommandHandler.js.map +1 -0
- package/dist/commands/PipelineCommandHandler.js +142 -0
- package/dist/commands/PipelineCommandHandler.js.map +1 -0
- package/dist/commands/ShowViewer.js +26 -0
- package/dist/commands/ShowViewer.js.map +1 -0
- package/dist/commands/UserBuildsCommandHandler.js +61 -0
- package/dist/commands/UserBuildsCommandHandler.js.map +1 -0
- package/dist/commands/ViewerBuildsCommandHandler.js +176 -0
- package/dist/commands/ViewerBuildsCommandHandler.js.map +1 -0
- package/dist/commands/ViewerCommandHandler.js +46 -0
- package/dist/commands/ViewerCommandHandler.js.map +1 -0
- package/dist/commands/index.js +8 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/formatters/BaseFormatter.js +14 -0
- package/dist/formatters/BaseFormatter.js.map +1 -0
- package/dist/formatters/FormatterFactory.js +48 -0
- package/dist/formatters/FormatterFactory.js.map +1 -0
- package/dist/formatters/annotations/Formatter.js +10 -0
- package/dist/formatters/annotations/Formatter.js.map +1 -0
- package/dist/formatters/annotations/JsonFormatter.js +20 -0
- package/dist/formatters/annotations/JsonFormatter.js.map +1 -0
- package/dist/formatters/annotations/PlainTextFormatter.js +35 -0
- package/dist/formatters/annotations/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/annotations/index.js +23 -0
- package/dist/formatters/annotations/index.js.map +1 -0
- package/dist/formatters/builds/AlfredFormatter.js +135 -0
- package/dist/formatters/builds/AlfredFormatter.js.map +1 -0
- package/dist/formatters/builds/Formatter.js +10 -0
- package/dist/formatters/builds/Formatter.js.map +1 -0
- package/dist/formatters/builds/JsonFormatter.js +44 -0
- package/dist/formatters/builds/JsonFormatter.js.map +1 -0
- package/dist/formatters/builds/PlainTextFormatter.js +113 -0
- package/dist/formatters/builds/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/builds/index.js +26 -0
- package/dist/formatters/builds/index.js.map +1 -0
- package/dist/formatters/errors/AlfredFormatter.js +110 -0
- package/dist/formatters/errors/AlfredFormatter.js.map +1 -0
- package/dist/formatters/errors/Formatter.js +98 -0
- package/dist/formatters/errors/Formatter.js.map +1 -0
- package/dist/formatters/errors/JsonFormatter.js +63 -0
- package/dist/formatters/errors/JsonFormatter.js.map +1 -0
- package/dist/formatters/errors/PlainTextFormatter.js +52 -0
- package/dist/formatters/errors/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/errors/index.js +26 -0
- package/dist/formatters/errors/index.js.map +1 -0
- package/dist/formatters/index.js +9 -0
- package/dist/formatters/index.js.map +1 -0
- package/dist/formatters/organizations/Formatter.js +10 -0
- package/dist/formatters/organizations/Formatter.js.map +1 -0
- package/dist/formatters/organizations/JsonFormatter.js +16 -0
- package/dist/formatters/organizations/JsonFormatter.js.map +1 -0
- package/dist/formatters/organizations/PlainTextFormatter.js +15 -0
- package/dist/formatters/organizations/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/organizations/index.js +21 -0
- package/dist/formatters/organizations/index.js.map +1 -0
- package/dist/formatters/pipelines/AlfredFormatter.js +42 -0
- package/dist/formatters/pipelines/AlfredFormatter.js.map +1 -0
- package/dist/formatters/pipelines/Formatter.js +10 -0
- package/dist/formatters/pipelines/Formatter.js.map +1 -0
- package/dist/formatters/pipelines/JsonFormatter.js +13 -0
- package/dist/formatters/pipelines/JsonFormatter.js.map +1 -0
- package/dist/formatters/pipelines/PlainTextFormatter.js +47 -0
- package/dist/formatters/pipelines/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/pipelines/index.js +28 -0
- package/dist/formatters/pipelines/index.js.map +1 -0
- package/dist/formatters/token/AlfredFormatter.js +191 -0
- package/dist/formatters/token/AlfredFormatter.js.map +1 -0
- package/dist/formatters/token/Formatter.js +13 -0
- package/dist/formatters/token/Formatter.js.map +1 -0
- package/dist/formatters/token/JsonFormatter.js +211 -0
- package/dist/formatters/token/JsonFormatter.js.map +1 -0
- package/dist/formatters/token/PlainTextFormatter.js +184 -0
- package/dist/formatters/token/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/token/index.js +26 -0
- package/dist/formatters/token/index.js.map +1 -0
- package/dist/formatters/viewer/Formatter.js +10 -0
- package/dist/formatters/viewer/Formatter.js.map +1 -0
- package/dist/formatters/viewer/JsonFormatter.js +20 -0
- package/dist/formatters/viewer/JsonFormatter.js.map +1 -0
- package/dist/formatters/viewer/PlainTextFormatter.js +20 -0
- package/dist/formatters/viewer/PlainTextFormatter.js.map +1 -0
- package/dist/formatters/viewer/index.js +21 -0
- package/dist/formatters/viewer/index.js.map +1 -0
- package/dist/graphql/generated/fragment-masking.js +17 -0
- package/dist/graphql/generated/fragment-masking.js.map +1 -0
- package/dist/graphql/generated/gql.js +13 -0
- package/dist/graphql/generated/gql.js.map +1 -0
- package/dist/graphql/generated/graphql.js +852 -0
- package/dist/graphql/generated/graphql.js.map +1 -0
- package/dist/graphql/generated/index.js +3 -0
- package/dist/graphql/generated/index.js.map +1 -0
- package/dist/graphql/generated/sdk.js +872 -0
- package/dist/graphql/generated/sdk.js.map +1 -0
- package/dist/graphql/queries.js +138 -0
- package/dist/graphql/queries.js.map +1 -0
- package/dist/index.js +271 -0
- package/dist/index.js.map +1 -0
- package/dist/services/BuildkiteClient.js +520 -0
- package/dist/services/BuildkiteClient.js.map +1 -0
- package/dist/services/BuildkiteRestClient.js +244 -0
- package/dist/services/BuildkiteRestClient.js.map +1 -0
- package/dist/services/CacheManager.js +221 -0
- package/dist/services/CacheManager.js.map +1 -0
- package/dist/services/CredentialManager.js +158 -0
- package/dist/services/CredentialManager.js.map +1 -0
- package/dist/services/EnhancedBuildkiteClient.js +297 -0
- package/dist/services/EnhancedBuildkiteClient.js.map +1 -0
- package/dist/services/logger.js +107 -0
- package/dist/services/logger.js.map +1 -0
- package/dist/types/buildkite.js +5 -0
- package/dist/types/buildkite.js.map +1 -0
- package/dist/types/credentials.js +2 -0
- package/dist/types/credentials.js.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/cli-error-handler.js +172 -0
- package/dist/utils/cli-error-handler.js.map +1 -0
- package/dist/utils/errorUtils.js +59 -0
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/parseBuildRef.js +31 -0
- package/dist/utils/parseBuildRef.js.map +1 -0
- package/dist/utils/textFormatter.js +53 -0
- package/dist/utils/textFormatter.js.map +1 -0
- package/dist/utils/xdgPaths.js +95 -0
- package/dist/utils/xdgPaths.js.map +1 -0
- package/env.example +66 -0
- package/icons/README.md +68 -0
- package/icons/blocked.png +0 -0
- package/icons/buildkite.png +0 -0
- package/icons/failed.png +0 -0
- package/icons/failing.png +0 -0
- package/icons/passed.png +0 -0
- package/icons/running.png +0 -0
- package/icons/scheduled.png +0 -0
- package/icons/skipped.png +0 -0
- package/icons/unknown.png +0 -0
- package/info.plist +734 -0
- package/package.json +87 -0
|
@@ -0,0 +1,872 @@
|
|
|
1
|
+
/** All possible scopes on a user's API Access Token */
|
|
2
|
+
export var ApiAccessTokenScopes;
|
|
3
|
+
(function (ApiAccessTokenScopes) {
|
|
4
|
+
ApiAccessTokenScopes["DeletePackages"] = "DELETE_PACKAGES";
|
|
5
|
+
ApiAccessTokenScopes["DeleteRegistries"] = "DELETE_REGISTRIES";
|
|
6
|
+
ApiAccessTokenScopes["Graphql"] = "GRAPHQL";
|
|
7
|
+
ApiAccessTokenScopes["ReadAgents"] = "READ_AGENTS";
|
|
8
|
+
ApiAccessTokenScopes["ReadArtifacts"] = "READ_ARTIFACTS";
|
|
9
|
+
ApiAccessTokenScopes["ReadBuilds"] = "READ_BUILDS";
|
|
10
|
+
ApiAccessTokenScopes["ReadBuildLogs"] = "READ_BUILD_LOGS";
|
|
11
|
+
ApiAccessTokenScopes["ReadClusters"] = "READ_CLUSTERS";
|
|
12
|
+
ApiAccessTokenScopes["ReadJobEnv"] = "READ_JOB_ENV";
|
|
13
|
+
ApiAccessTokenScopes["ReadOrganizations"] = "READ_ORGANIZATIONS";
|
|
14
|
+
ApiAccessTokenScopes["ReadPackages"] = "READ_PACKAGES";
|
|
15
|
+
ApiAccessTokenScopes["ReadPipelines"] = "READ_PIPELINES";
|
|
16
|
+
ApiAccessTokenScopes["ReadPipelineTemplates"] = "READ_PIPELINE_TEMPLATES";
|
|
17
|
+
ApiAccessTokenScopes["ReadPortals"] = "READ_PORTALS";
|
|
18
|
+
ApiAccessTokenScopes["ReadRegistries"] = "READ_REGISTRIES";
|
|
19
|
+
ApiAccessTokenScopes["ReadRules"] = "READ_RULES";
|
|
20
|
+
ApiAccessTokenScopes["ReadSuites"] = "READ_SUITES";
|
|
21
|
+
ApiAccessTokenScopes["ReadTeams"] = "READ_TEAMS";
|
|
22
|
+
ApiAccessTokenScopes["ReadTestPlan"] = "READ_TEST_PLAN";
|
|
23
|
+
ApiAccessTokenScopes["ReadUser"] = "READ_USER";
|
|
24
|
+
ApiAccessTokenScopes["WriteAgents"] = "WRITE_AGENTS";
|
|
25
|
+
ApiAccessTokenScopes["WriteArtifacts"] = "WRITE_ARTIFACTS";
|
|
26
|
+
ApiAccessTokenScopes["WriteBuilds"] = "WRITE_BUILDS";
|
|
27
|
+
ApiAccessTokenScopes["WriteBuildLogs"] = "WRITE_BUILD_LOGS";
|
|
28
|
+
ApiAccessTokenScopes["WriteClusters"] = "WRITE_CLUSTERS";
|
|
29
|
+
ApiAccessTokenScopes["WritePackages"] = "WRITE_PACKAGES";
|
|
30
|
+
ApiAccessTokenScopes["WritePipelines"] = "WRITE_PIPELINES";
|
|
31
|
+
ApiAccessTokenScopes["WritePipelineTemplates"] = "WRITE_PIPELINE_TEMPLATES";
|
|
32
|
+
ApiAccessTokenScopes["WritePortals"] = "WRITE_PORTALS";
|
|
33
|
+
ApiAccessTokenScopes["WriteRegistries"] = "WRITE_REGISTRIES";
|
|
34
|
+
ApiAccessTokenScopes["WriteRules"] = "WRITE_RULES";
|
|
35
|
+
ApiAccessTokenScopes["WriteSuites"] = "WRITE_SUITES";
|
|
36
|
+
ApiAccessTokenScopes["WriteTeams"] = "WRITE_TEAMS";
|
|
37
|
+
ApiAccessTokenScopes["WriteTestPlan"] = "WRITE_TEST_PLAN";
|
|
38
|
+
})(ApiAccessTokenScopes || (ApiAccessTokenScopes = {}));
|
|
39
|
+
/** The different orders you can sort annotations by */
|
|
40
|
+
export var AnnotationOrder;
|
|
41
|
+
(function (AnnotationOrder) {
|
|
42
|
+
/** Order by priority, then by the most recently created annotations first */
|
|
43
|
+
AnnotationOrder["PriorityRecentlyCreated"] = "PRIORITY_RECENTLY_CREATED";
|
|
44
|
+
/** Order by the most recently created annotations first */
|
|
45
|
+
AnnotationOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
46
|
+
})(AnnotationOrder || (AnnotationOrder = {}));
|
|
47
|
+
/** The visual style of the annotation */
|
|
48
|
+
export var AnnotationStyle;
|
|
49
|
+
(function (AnnotationStyle) {
|
|
50
|
+
/** The default styling of an annotation */
|
|
51
|
+
AnnotationStyle["Default"] = "DEFAULT";
|
|
52
|
+
/** The annotation has a red border with a cross next to it */
|
|
53
|
+
AnnotationStyle["Error"] = "ERROR";
|
|
54
|
+
/** The annotation has a blue border with an information icon next to it */
|
|
55
|
+
AnnotationStyle["Info"] = "INFO";
|
|
56
|
+
/** The annotation has a green border with a tick next to it */
|
|
57
|
+
AnnotationStyle["Success"] = "SUCCESS";
|
|
58
|
+
/** The annotation has an orange border with a warning icon next to it */
|
|
59
|
+
AnnotationStyle["Warning"] = "WARNING";
|
|
60
|
+
})(AnnotationStyle || (AnnotationStyle = {}));
|
|
61
|
+
/** All the possible types of actors in an Audit Event */
|
|
62
|
+
export var AuditActorType;
|
|
63
|
+
(function (AuditActorType) {
|
|
64
|
+
AuditActorType["Agent"] = "AGENT";
|
|
65
|
+
AuditActorType["User"] = "USER";
|
|
66
|
+
})(AuditActorType || (AuditActorType = {}));
|
|
67
|
+
/** All the possible types of an Audit Event */
|
|
68
|
+
export var AuditEventType;
|
|
69
|
+
(function (AuditEventType) {
|
|
70
|
+
AuditEventType["AgentTokenCreated"] = "AGENT_TOKEN_CREATED";
|
|
71
|
+
AuditEventType["AgentTokenRevoked"] = "AGENT_TOKEN_REVOKED";
|
|
72
|
+
AuditEventType["AgentTokenUpdated"] = "AGENT_TOKEN_UPDATED";
|
|
73
|
+
AuditEventType["ApiAccessTokenCreated"] = "API_ACCESS_TOKEN_CREATED";
|
|
74
|
+
AuditEventType["ApiAccessTokenDeleted"] = "API_ACCESS_TOKEN_DELETED";
|
|
75
|
+
AuditEventType["ApiAccessTokenOrganizationAccessRevoked"] = "API_ACCESS_TOKEN_ORGANIZATION_ACCESS_REVOKED";
|
|
76
|
+
AuditEventType["ApiAccessTokenUpdated"] = "API_ACCESS_TOKEN_UPDATED";
|
|
77
|
+
AuditEventType["AuthorizationCreated"] = "AUTHORIZATION_CREATED";
|
|
78
|
+
AuditEventType["AuthorizationDeleted"] = "AUTHORIZATION_DELETED";
|
|
79
|
+
AuditEventType["ClusterCreated"] = "CLUSTER_CREATED";
|
|
80
|
+
AuditEventType["ClusterDeleted"] = "CLUSTER_DELETED";
|
|
81
|
+
AuditEventType["ClusterPermissionCreated"] = "CLUSTER_PERMISSION_CREATED";
|
|
82
|
+
AuditEventType["ClusterPermissionDeleted"] = "CLUSTER_PERMISSION_DELETED";
|
|
83
|
+
AuditEventType["ClusterQueueCreated"] = "CLUSTER_QUEUE_CREATED";
|
|
84
|
+
AuditEventType["ClusterQueueDeleted"] = "CLUSTER_QUEUE_DELETED";
|
|
85
|
+
AuditEventType["ClusterQueueTokenCreated"] = "CLUSTER_QUEUE_TOKEN_CREATED";
|
|
86
|
+
AuditEventType["ClusterQueueTokenDeleted"] = "CLUSTER_QUEUE_TOKEN_DELETED";
|
|
87
|
+
AuditEventType["ClusterQueueTokenUpdated"] = "CLUSTER_QUEUE_TOKEN_UPDATED";
|
|
88
|
+
AuditEventType["ClusterQueueUpdated"] = "CLUSTER_QUEUE_UPDATED";
|
|
89
|
+
AuditEventType["ClusterTokenCreated"] = "CLUSTER_TOKEN_CREATED";
|
|
90
|
+
AuditEventType["ClusterTokenDeleted"] = "CLUSTER_TOKEN_DELETED";
|
|
91
|
+
AuditEventType["ClusterTokenUpdated"] = "CLUSTER_TOKEN_UPDATED";
|
|
92
|
+
AuditEventType["ClusterUpdated"] = "CLUSTER_UPDATED";
|
|
93
|
+
AuditEventType["CompositeRegistryUpstreamAdded"] = "COMPOSITE_REGISTRY_UPSTREAM_ADDED";
|
|
94
|
+
AuditEventType["CompositeRegistryUpstreamRemoved"] = "COMPOSITE_REGISTRY_UPSTREAM_REMOVED";
|
|
95
|
+
AuditEventType["JobTerminalSessionStarted"] = "JOB_TERMINAL_SESSION_STARTED";
|
|
96
|
+
AuditEventType["NotificationServiceBroken"] = "NOTIFICATION_SERVICE_BROKEN";
|
|
97
|
+
AuditEventType["NotificationServiceCreated"] = "NOTIFICATION_SERVICE_CREATED";
|
|
98
|
+
AuditEventType["NotificationServiceDeleted"] = "NOTIFICATION_SERVICE_DELETED";
|
|
99
|
+
AuditEventType["NotificationServiceDisabled"] = "NOTIFICATION_SERVICE_DISABLED";
|
|
100
|
+
AuditEventType["NotificationServiceEnabled"] = "NOTIFICATION_SERVICE_ENABLED";
|
|
101
|
+
AuditEventType["NotificationServiceUpdated"] = "NOTIFICATION_SERVICE_UPDATED";
|
|
102
|
+
AuditEventType["OrganizationBannerCreated"] = "ORGANIZATION_BANNER_CREATED";
|
|
103
|
+
AuditEventType["OrganizationBannerDeleted"] = "ORGANIZATION_BANNER_DELETED";
|
|
104
|
+
AuditEventType["OrganizationBannerUpdated"] = "ORGANIZATION_BANNER_UPDATED";
|
|
105
|
+
AuditEventType["OrganizationBuildExportUpdated"] = "ORGANIZATION_BUILD_EXPORT_UPDATED";
|
|
106
|
+
AuditEventType["OrganizationCreated"] = "ORGANIZATION_CREATED";
|
|
107
|
+
AuditEventType["OrganizationDeleted"] = "ORGANIZATION_DELETED";
|
|
108
|
+
AuditEventType["OrganizationImpersonationRequestApproved"] = "ORGANIZATION_IMPERSONATION_REQUEST_APPROVED";
|
|
109
|
+
AuditEventType["OrganizationImpersonationRequestRevoked"] = "ORGANIZATION_IMPERSONATION_REQUEST_REVOKED";
|
|
110
|
+
AuditEventType["OrganizationInvitationAccepted"] = "ORGANIZATION_INVITATION_ACCEPTED";
|
|
111
|
+
AuditEventType["OrganizationInvitationCreated"] = "ORGANIZATION_INVITATION_CREATED";
|
|
112
|
+
AuditEventType["OrganizationInvitationResent"] = "ORGANIZATION_INVITATION_RESENT";
|
|
113
|
+
AuditEventType["OrganizationInvitationRevoked"] = "ORGANIZATION_INVITATION_REVOKED";
|
|
114
|
+
AuditEventType["OrganizationMemberCreated"] = "ORGANIZATION_MEMBER_CREATED";
|
|
115
|
+
AuditEventType["OrganizationMemberDeleted"] = "ORGANIZATION_MEMBER_DELETED";
|
|
116
|
+
AuditEventType["OrganizationMemberUpdated"] = "ORGANIZATION_MEMBER_UPDATED";
|
|
117
|
+
AuditEventType["OrganizationTeamsDisabled"] = "ORGANIZATION_TEAMS_DISABLED";
|
|
118
|
+
AuditEventType["OrganizationTeamsEnabled"] = "ORGANIZATION_TEAMS_ENABLED";
|
|
119
|
+
AuditEventType["OrganizationUpdated"] = "ORGANIZATION_UPDATED";
|
|
120
|
+
AuditEventType["PipelineCreated"] = "PIPELINE_CREATED";
|
|
121
|
+
AuditEventType["PipelineDeleted"] = "PIPELINE_DELETED";
|
|
122
|
+
AuditEventType["PipelineScheduleCreated"] = "PIPELINE_SCHEDULE_CREATED";
|
|
123
|
+
AuditEventType["PipelineScheduleDeleted"] = "PIPELINE_SCHEDULE_DELETED";
|
|
124
|
+
AuditEventType["PipelineScheduleUpdated"] = "PIPELINE_SCHEDULE_UPDATED";
|
|
125
|
+
AuditEventType["PipelineTemplateCreated"] = "PIPELINE_TEMPLATE_CREATED";
|
|
126
|
+
AuditEventType["PipelineTemplateDeleted"] = "PIPELINE_TEMPLATE_DELETED";
|
|
127
|
+
AuditEventType["PipelineTemplateUpdated"] = "PIPELINE_TEMPLATE_UPDATED";
|
|
128
|
+
AuditEventType["PipelineUpdated"] = "PIPELINE_UPDATED";
|
|
129
|
+
AuditEventType["PipelineVisibilityChanged"] = "PIPELINE_VISIBILITY_CHANGED";
|
|
130
|
+
AuditEventType["PipelineWebhookUrlRotated"] = "PIPELINE_WEBHOOK_URL_ROTATED";
|
|
131
|
+
AuditEventType["PortalCreated"] = "PORTAL_CREATED";
|
|
132
|
+
AuditEventType["PortalDeleted"] = "PORTAL_DELETED";
|
|
133
|
+
AuditEventType["PortalSecretCreated"] = "PORTAL_SECRET_CREATED";
|
|
134
|
+
AuditEventType["PortalSecretDeleted"] = "PORTAL_SECRET_DELETED";
|
|
135
|
+
AuditEventType["PortalTokenCodeAuthorized"] = "PORTAL_TOKEN_CODE_AUTHORIZED";
|
|
136
|
+
AuditEventType["PortalTokenCreated"] = "PORTAL_TOKEN_CREATED";
|
|
137
|
+
AuditEventType["PortalTokenDeleted"] = "PORTAL_TOKEN_DELETED";
|
|
138
|
+
AuditEventType["PortalUpdated"] = "PORTAL_UPDATED";
|
|
139
|
+
AuditEventType["RegistryCreated"] = "REGISTRY_CREATED";
|
|
140
|
+
AuditEventType["RegistryDeleted"] = "REGISTRY_DELETED";
|
|
141
|
+
AuditEventType["RegistryTokenCreated"] = "REGISTRY_TOKEN_CREATED";
|
|
142
|
+
AuditEventType["RegistryTokenDeleted"] = "REGISTRY_TOKEN_DELETED";
|
|
143
|
+
AuditEventType["RegistryTokenUpdated"] = "REGISTRY_TOKEN_UPDATED";
|
|
144
|
+
AuditEventType["RegistryUpdated"] = "REGISTRY_UPDATED";
|
|
145
|
+
AuditEventType["RegistryVisibilityChanged"] = "REGISTRY_VISIBILITY_CHANGED";
|
|
146
|
+
AuditEventType["RuleCreated"] = "RULE_CREATED";
|
|
147
|
+
AuditEventType["RuleDeleted"] = "RULE_DELETED";
|
|
148
|
+
AuditEventType["RuleUpdated"] = "RULE_UPDATED";
|
|
149
|
+
AuditEventType["ScmPipelineSettingsCreated"] = "SCM_PIPELINE_SETTINGS_CREATED";
|
|
150
|
+
AuditEventType["ScmPipelineSettingsDeleted"] = "SCM_PIPELINE_SETTINGS_DELETED";
|
|
151
|
+
AuditEventType["ScmPipelineSettingsUpdated"] = "SCM_PIPELINE_SETTINGS_UPDATED";
|
|
152
|
+
AuditEventType["ScmRepositoryHostCreated"] = "SCM_REPOSITORY_HOST_CREATED";
|
|
153
|
+
AuditEventType["ScmRepositoryHostDestroyed"] = "SCM_REPOSITORY_HOST_DESTROYED";
|
|
154
|
+
AuditEventType["ScmRepositoryHostUpdated"] = "SCM_REPOSITORY_HOST_UPDATED";
|
|
155
|
+
AuditEventType["ScmServiceCreated"] = "SCM_SERVICE_CREATED";
|
|
156
|
+
AuditEventType["ScmServiceDeleted"] = "SCM_SERVICE_DELETED";
|
|
157
|
+
AuditEventType["ScmServiceUpdated"] = "SCM_SERVICE_UPDATED";
|
|
158
|
+
AuditEventType["SecretCreated"] = "SECRET_CREATED";
|
|
159
|
+
AuditEventType["SecretDeleted"] = "SECRET_DELETED";
|
|
160
|
+
AuditEventType["SecretQueried"] = "SECRET_QUERIED";
|
|
161
|
+
AuditEventType["SecretRead"] = "SECRET_READ";
|
|
162
|
+
AuditEventType["SecretUpdated"] = "SECRET_UPDATED";
|
|
163
|
+
AuditEventType["SsoProviderCreated"] = "SSO_PROVIDER_CREATED";
|
|
164
|
+
AuditEventType["SsoProviderDeleted"] = "SSO_PROVIDER_DELETED";
|
|
165
|
+
AuditEventType["SsoProviderDisabled"] = "SSO_PROVIDER_DISABLED";
|
|
166
|
+
AuditEventType["SsoProviderEnabled"] = "SSO_PROVIDER_ENABLED";
|
|
167
|
+
AuditEventType["SsoProviderUpdated"] = "SSO_PROVIDER_UPDATED";
|
|
168
|
+
AuditEventType["StorageCreated"] = "STORAGE_CREATED";
|
|
169
|
+
AuditEventType["SubscriptionActivated"] = "SUBSCRIPTION_ACTIVATED";
|
|
170
|
+
AuditEventType["SubscriptionCanceled"] = "SUBSCRIPTION_CANCELED";
|
|
171
|
+
AuditEventType["SubscriptionPlanAdded"] = "SUBSCRIPTION_PLAN_ADDED";
|
|
172
|
+
AuditEventType["SubscriptionPlanCancelationScheduled"] = "SUBSCRIPTION_PLAN_CANCELATION_SCHEDULED";
|
|
173
|
+
AuditEventType["SubscriptionPlanCanceled"] = "SUBSCRIPTION_PLAN_CANCELED";
|
|
174
|
+
AuditEventType["SubscriptionPlanChanged"] = "SUBSCRIPTION_PLAN_CHANGED";
|
|
175
|
+
AuditEventType["SubscriptionPlanChangeScheduled"] = "SUBSCRIPTION_PLAN_CHANGE_SCHEDULED";
|
|
176
|
+
AuditEventType["SubscriptionScheduledPlanChangeCanceled"] = "SUBSCRIPTION_SCHEDULED_PLAN_CHANGE_CANCELED";
|
|
177
|
+
AuditEventType["SubscriptionTrialExpired"] = "SUBSCRIPTION_TRIAL_EXPIRED";
|
|
178
|
+
AuditEventType["SuiteApiTokenRegenerated"] = "SUITE_API_TOKEN_REGENERATED";
|
|
179
|
+
AuditEventType["SuiteCreated"] = "SUITE_CREATED";
|
|
180
|
+
AuditEventType["SuiteDeleted"] = "SUITE_DELETED";
|
|
181
|
+
AuditEventType["SuiteMonitorCreated"] = "SUITE_MONITOR_CREATED";
|
|
182
|
+
AuditEventType["SuiteMonitorDeleted"] = "SUITE_MONITOR_DELETED";
|
|
183
|
+
AuditEventType["SuiteMonitorUpdated"] = "SUITE_MONITOR_UPDATED";
|
|
184
|
+
AuditEventType["SuiteUpdated"] = "SUITE_UPDATED";
|
|
185
|
+
AuditEventType["SuiteVisibilityChanged"] = "SUITE_VISIBILITY_CHANGED";
|
|
186
|
+
AuditEventType["TeamCreated"] = "TEAM_CREATED";
|
|
187
|
+
AuditEventType["TeamDeleted"] = "TEAM_DELETED";
|
|
188
|
+
AuditEventType["TeamMemberCreated"] = "TEAM_MEMBER_CREATED";
|
|
189
|
+
AuditEventType["TeamMemberDeleted"] = "TEAM_MEMBER_DELETED";
|
|
190
|
+
AuditEventType["TeamMemberUpdated"] = "TEAM_MEMBER_UPDATED";
|
|
191
|
+
AuditEventType["TeamPipelineCreated"] = "TEAM_PIPELINE_CREATED";
|
|
192
|
+
AuditEventType["TeamPipelineDeleted"] = "TEAM_PIPELINE_DELETED";
|
|
193
|
+
AuditEventType["TeamPipelineUpdated"] = "TEAM_PIPELINE_UPDATED";
|
|
194
|
+
AuditEventType["TeamRegistryCreated"] = "TEAM_REGISTRY_CREATED";
|
|
195
|
+
AuditEventType["TeamRegistryDeleted"] = "TEAM_REGISTRY_DELETED";
|
|
196
|
+
AuditEventType["TeamRegistryUpdated"] = "TEAM_REGISTRY_UPDATED";
|
|
197
|
+
AuditEventType["TeamSecretCreated"] = "TEAM_SECRET_CREATED";
|
|
198
|
+
AuditEventType["TeamSecretDeleted"] = "TEAM_SECRET_DELETED";
|
|
199
|
+
AuditEventType["TeamSecretUpdated"] = "TEAM_SECRET_UPDATED";
|
|
200
|
+
AuditEventType["TeamSuiteCreated"] = "TEAM_SUITE_CREATED";
|
|
201
|
+
AuditEventType["TeamSuiteDeleted"] = "TEAM_SUITE_DELETED";
|
|
202
|
+
AuditEventType["TeamSuiteUpdated"] = "TEAM_SUITE_UPDATED";
|
|
203
|
+
AuditEventType["TeamUpdated"] = "TEAM_UPDATED";
|
|
204
|
+
AuditEventType["UserApiAccessTokenOrganizationAccessAdded"] = "USER_API_ACCESS_TOKEN_ORGANIZATION_ACCESS_ADDED";
|
|
205
|
+
AuditEventType["UserApiAccessTokenOrganizationAccessRemoved"] = "USER_API_ACCESS_TOKEN_ORGANIZATION_ACCESS_REMOVED";
|
|
206
|
+
AuditEventType["UserEmailCreated"] = "USER_EMAIL_CREATED";
|
|
207
|
+
AuditEventType["UserEmailDeleted"] = "USER_EMAIL_DELETED";
|
|
208
|
+
AuditEventType["UserEmailMarkedPrimary"] = "USER_EMAIL_MARKED_PRIMARY";
|
|
209
|
+
AuditEventType["UserEmailVerified"] = "USER_EMAIL_VERIFIED";
|
|
210
|
+
AuditEventType["UserImpersonated"] = "USER_IMPERSONATED";
|
|
211
|
+
AuditEventType["UserPasswordReset"] = "USER_PASSWORD_RESET";
|
|
212
|
+
AuditEventType["UserPasswordResetRequested"] = "USER_PASSWORD_RESET_REQUESTED";
|
|
213
|
+
AuditEventType["UserTotpActivated"] = "USER_TOTP_ACTIVATED";
|
|
214
|
+
AuditEventType["UserTotpCreated"] = "USER_TOTP_CREATED";
|
|
215
|
+
AuditEventType["UserTotpDeleted"] = "USER_TOTP_DELETED";
|
|
216
|
+
AuditEventType["UserUpdated"] = "USER_UPDATED";
|
|
217
|
+
})(AuditEventType || (AuditEventType = {}));
|
|
218
|
+
/** All the possible types of subjects in an Audit Event */
|
|
219
|
+
export var AuditSubjectType;
|
|
220
|
+
(function (AuditSubjectType) {
|
|
221
|
+
AuditSubjectType["AgentToken"] = "AGENT_TOKEN";
|
|
222
|
+
AuditSubjectType["ApiAccessToken"] = "API_ACCESS_TOKEN";
|
|
223
|
+
AuditSubjectType["Authorization"] = "AUTHORIZATION";
|
|
224
|
+
AuditSubjectType["Cluster"] = "CLUSTER";
|
|
225
|
+
AuditSubjectType["ClusterPermission"] = "CLUSTER_PERMISSION";
|
|
226
|
+
AuditSubjectType["ClusterQueue"] = "CLUSTER_QUEUE";
|
|
227
|
+
AuditSubjectType["ClusterQueueToken"] = "CLUSTER_QUEUE_TOKEN";
|
|
228
|
+
AuditSubjectType["ClusterToken"] = "CLUSTER_TOKEN";
|
|
229
|
+
AuditSubjectType["CompositeRegistryUpstream"] = "COMPOSITE_REGISTRY_UPSTREAM";
|
|
230
|
+
AuditSubjectType["Job"] = "JOB";
|
|
231
|
+
AuditSubjectType["NotificationService"] = "NOTIFICATION_SERVICE";
|
|
232
|
+
AuditSubjectType["Organization"] = "ORGANIZATION";
|
|
233
|
+
AuditSubjectType["OrganizationBanner"] = "ORGANIZATION_BANNER";
|
|
234
|
+
AuditSubjectType["OrganizationImpersonationRequest"] = "ORGANIZATION_IMPERSONATION_REQUEST";
|
|
235
|
+
AuditSubjectType["OrganizationInvitation"] = "ORGANIZATION_INVITATION";
|
|
236
|
+
AuditSubjectType["OrganizationMember"] = "ORGANIZATION_MEMBER";
|
|
237
|
+
AuditSubjectType["Pipeline"] = "PIPELINE";
|
|
238
|
+
AuditSubjectType["PipelineSchedule"] = "PIPELINE_SCHEDULE";
|
|
239
|
+
AuditSubjectType["PipelineTemplate"] = "PIPELINE_TEMPLATE";
|
|
240
|
+
AuditSubjectType["Portal"] = "PORTAL";
|
|
241
|
+
AuditSubjectType["PortalSecret"] = "PORTAL_SECRET";
|
|
242
|
+
AuditSubjectType["PortalToken"] = "PORTAL_TOKEN";
|
|
243
|
+
AuditSubjectType["PortalTokenCode"] = "PORTAL_TOKEN_CODE";
|
|
244
|
+
AuditSubjectType["Registry"] = "REGISTRY";
|
|
245
|
+
AuditSubjectType["RegistryToken"] = "REGISTRY_TOKEN";
|
|
246
|
+
AuditSubjectType["Rule"] = "RULE";
|
|
247
|
+
AuditSubjectType["ScmPipelineSettings"] = "SCM_PIPELINE_SETTINGS";
|
|
248
|
+
AuditSubjectType["ScmRepositoryHost"] = "SCM_REPOSITORY_HOST";
|
|
249
|
+
AuditSubjectType["ScmService"] = "SCM_SERVICE";
|
|
250
|
+
AuditSubjectType["Secret"] = "SECRET";
|
|
251
|
+
AuditSubjectType["SsoProvider"] = "SSO_PROVIDER";
|
|
252
|
+
AuditSubjectType["Subscription"] = "SUBSCRIPTION";
|
|
253
|
+
AuditSubjectType["Suite"] = "SUITE";
|
|
254
|
+
AuditSubjectType["SuiteMonitor"] = "SUITE_MONITOR";
|
|
255
|
+
AuditSubjectType["Team"] = "TEAM";
|
|
256
|
+
AuditSubjectType["TeamMember"] = "TEAM_MEMBER";
|
|
257
|
+
AuditSubjectType["TeamPipeline"] = "TEAM_PIPELINE";
|
|
258
|
+
AuditSubjectType["TeamRegistry"] = "TEAM_REGISTRY";
|
|
259
|
+
AuditSubjectType["TeamSecret"] = "TEAM_SECRET";
|
|
260
|
+
AuditSubjectType["TeamSuite"] = "TEAM_SUITE";
|
|
261
|
+
AuditSubjectType["User"] = "USER";
|
|
262
|
+
AuditSubjectType["UserEmail"] = "USER_EMAIL";
|
|
263
|
+
AuditSubjectType["UserTotp"] = "USER_TOTP";
|
|
264
|
+
})(AuditSubjectType || (AuditSubjectType = {}));
|
|
265
|
+
/** The type of the authorization */
|
|
266
|
+
export var AuthorizationType;
|
|
267
|
+
(function (AuthorizationType) {
|
|
268
|
+
/** Bitbucket Authorization */
|
|
269
|
+
AuthorizationType["Bitbucket"] = "BITBUCKET";
|
|
270
|
+
/** GitHub Authorization */
|
|
271
|
+
AuthorizationType["Github"] = "GITHUB";
|
|
272
|
+
/** GitHub Enterprise Authorization */
|
|
273
|
+
AuthorizationType["GithubEnterprise"] = "GITHUB_ENTERPRISE";
|
|
274
|
+
})(AuthorizationType || (AuthorizationType = {}));
|
|
275
|
+
/** All the possible blocked states a build can be in */
|
|
276
|
+
export var BuildBlockedStates;
|
|
277
|
+
(function (BuildBlockedStates) {
|
|
278
|
+
/** The blocked build is failed */
|
|
279
|
+
BuildBlockedStates["Failed"] = "FAILED";
|
|
280
|
+
/** The blocked build is passed */
|
|
281
|
+
BuildBlockedStates["Passed"] = "PASSED";
|
|
282
|
+
/** The blocked build is running */
|
|
283
|
+
BuildBlockedStates["Running"] = "RUNNING";
|
|
284
|
+
})(BuildBlockedStates || (BuildBlockedStates = {}));
|
|
285
|
+
/** All the possible states a build can be in */
|
|
286
|
+
export var BuildStates;
|
|
287
|
+
(function (BuildStates) {
|
|
288
|
+
/** The build is blocked */
|
|
289
|
+
BuildStates["Blocked"] = "BLOCKED";
|
|
290
|
+
/** The build was canceled */
|
|
291
|
+
BuildStates["Canceled"] = "CANCELED";
|
|
292
|
+
/** The build is currently being canceled */
|
|
293
|
+
BuildStates["Canceling"] = "CANCELING";
|
|
294
|
+
/** The build is currently being created */
|
|
295
|
+
BuildStates["Creating"] = "CREATING";
|
|
296
|
+
/** The build failed */
|
|
297
|
+
BuildStates["Failed"] = "FAILED";
|
|
298
|
+
/** The build is failing */
|
|
299
|
+
BuildStates["Failing"] = "FAILING";
|
|
300
|
+
/** The build wasn't run */
|
|
301
|
+
BuildStates["NotRun"] = "NOT_RUN";
|
|
302
|
+
/** The build passed */
|
|
303
|
+
BuildStates["Passed"] = "PASSED";
|
|
304
|
+
/** The build is currently running jobs */
|
|
305
|
+
BuildStates["Running"] = "RUNNING";
|
|
306
|
+
/** The build has yet to start running jobs */
|
|
307
|
+
BuildStates["Scheduled"] = "SCHEDULED";
|
|
308
|
+
/** The build was skipped */
|
|
309
|
+
BuildStates["Skipped"] = "SKIPPED";
|
|
310
|
+
})(BuildStates || (BuildStates = {}));
|
|
311
|
+
/** The different orders you can sort clusters by */
|
|
312
|
+
export var ClusterOrder;
|
|
313
|
+
(function (ClusterOrder) {
|
|
314
|
+
/** Order by name alphabetically */
|
|
315
|
+
ClusterOrder["Name"] = "NAME";
|
|
316
|
+
/** Order by the most recently created clusters first */
|
|
317
|
+
ClusterOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
318
|
+
})(ClusterOrder || (ClusterOrder = {}));
|
|
319
|
+
/** The different orders you can sort cluster queues by */
|
|
320
|
+
export var ClusterQueueOrder;
|
|
321
|
+
(function (ClusterQueueOrder) {
|
|
322
|
+
/** Order by key alphabetically */
|
|
323
|
+
ClusterQueueOrder["Key"] = "KEY";
|
|
324
|
+
/** Order by the most recently created cluster queues first */
|
|
325
|
+
ClusterQueueOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
326
|
+
})(ClusterQueueOrder || (ClusterQueueOrder = {}));
|
|
327
|
+
/** Possible machine architectures for the hosted agent instance */
|
|
328
|
+
export var HostedAgentArchitecture;
|
|
329
|
+
(function (HostedAgentArchitecture) {
|
|
330
|
+
/** AMD64 */
|
|
331
|
+
HostedAgentArchitecture["Amd64"] = "AMD64";
|
|
332
|
+
/** ARM64 */
|
|
333
|
+
HostedAgentArchitecture["Arm64"] = "ARM64";
|
|
334
|
+
})(HostedAgentArchitecture || (HostedAgentArchitecture = {}));
|
|
335
|
+
/** Possible instance shapes for the hosted agent instance */
|
|
336
|
+
export var HostedAgentInstanceShapeName;
|
|
337
|
+
(function (HostedAgentInstanceShapeName) {
|
|
338
|
+
/** Linux 2 vCPU x 4 GB Memory */
|
|
339
|
+
HostedAgentInstanceShapeName["LinuxAmd64_2X4"] = "LINUX_AMD64_2X4";
|
|
340
|
+
/** Linux 4 vCPU x 16 GB Memory */
|
|
341
|
+
HostedAgentInstanceShapeName["LinuxAmd64_4X16"] = "LINUX_AMD64_4X16";
|
|
342
|
+
/** Linux 8 vCPU x 32 GB Memory */
|
|
343
|
+
HostedAgentInstanceShapeName["LinuxAmd64_8X32"] = "LINUX_AMD64_8X32";
|
|
344
|
+
/** Linux 16 vCPU x 64 GB Memory */
|
|
345
|
+
HostedAgentInstanceShapeName["LinuxAmd64_16X64"] = "LINUX_AMD64_16X64";
|
|
346
|
+
/** Linux 2 vCPU x 4 GB Memory */
|
|
347
|
+
HostedAgentInstanceShapeName["LinuxArm64_2X4"] = "LINUX_ARM64_2X4";
|
|
348
|
+
/** Linux 4 vCPU x 16 GB Memory */
|
|
349
|
+
HostedAgentInstanceShapeName["LinuxArm64_4X16"] = "LINUX_ARM64_4X16";
|
|
350
|
+
/** Linux 8 vCPU x 32 GB Memory */
|
|
351
|
+
HostedAgentInstanceShapeName["LinuxArm64_8X32"] = "LINUX_ARM64_8X32";
|
|
352
|
+
/** Linux 16 vCPU x 64 GB Memory */
|
|
353
|
+
HostedAgentInstanceShapeName["LinuxArm64_16X64"] = "LINUX_ARM64_16X64";
|
|
354
|
+
/** macOS 4 vCPU x 7 GB Memory */
|
|
355
|
+
HostedAgentInstanceShapeName["MacosM2_4X7"] = "MACOS_M2_4X7";
|
|
356
|
+
/** macOS 6 vCPU x 14 GB Memory */
|
|
357
|
+
HostedAgentInstanceShapeName["MacosM2_6X14"] = "MACOS_M2_6X14";
|
|
358
|
+
/** macOS 12 vCPU x 28 GB Memory */
|
|
359
|
+
HostedAgentInstanceShapeName["MacosM2_12X28"] = "MACOS_M2_12X28";
|
|
360
|
+
/** macOS 12 vCPU x 56 GB Memory */
|
|
361
|
+
HostedAgentInstanceShapeName["MacosM4_12X56"] = "MACOS_M4_12X56";
|
|
362
|
+
})(HostedAgentInstanceShapeName || (HostedAgentInstanceShapeName = {}));
|
|
363
|
+
/** Possible machine types for the hosted agent instance */
|
|
364
|
+
export var HostedAgentMachineType;
|
|
365
|
+
(function (HostedAgentMachineType) {
|
|
366
|
+
/** Linux */
|
|
367
|
+
HostedAgentMachineType["Linux"] = "LINUX";
|
|
368
|
+
/** macOS */
|
|
369
|
+
HostedAgentMachineType["Macos"] = "MACOS";
|
|
370
|
+
})(HostedAgentMachineType || (HostedAgentMachineType = {}));
|
|
371
|
+
/** Possible sizes for the hosted agent instance, specifying vCPU and memory allocations. */
|
|
372
|
+
export var HostedAgentSize;
|
|
373
|
+
(function (HostedAgentSize) {
|
|
374
|
+
/** Extra large capacity size: 12 vCPU, 28GB RAM (Linux); Not applicable for macOS. */
|
|
375
|
+
HostedAgentSize["ExtraLarge"] = "EXTRA_LARGE";
|
|
376
|
+
/** Large capacity size: 8 vCPU, 32GB RAM (Linux); 12 vCPU, 28GB RAM (macOS). */
|
|
377
|
+
HostedAgentSize["Large"] = "LARGE";
|
|
378
|
+
/** Medium capacity size: 4 vCPU, 16GB RAM (Linux); 6 vCPU, 14GB RAM (macOS). */
|
|
379
|
+
HostedAgentSize["Medium"] = "MEDIUM";
|
|
380
|
+
/** Small capacity size: 2 vCPU, 4GB RAM (Linux); 4 vCPU, 7GB RAM (macOS). */
|
|
381
|
+
HostedAgentSize["Small"] = "SMALL";
|
|
382
|
+
})(HostedAgentSize || (HostedAgentSize = {}));
|
|
383
|
+
/** All the actors that can have created a job event */
|
|
384
|
+
export var JobEventActorType;
|
|
385
|
+
(function (JobEventActorType) {
|
|
386
|
+
/** The actor was an agent */
|
|
387
|
+
JobEventActorType["Agent"] = "AGENT";
|
|
388
|
+
/** The actor was the dispatcher */
|
|
389
|
+
JobEventActorType["Dispatch"] = "DISPATCH";
|
|
390
|
+
/** The actor was the system */
|
|
391
|
+
JobEventActorType["System"] = "SYSTEM";
|
|
392
|
+
/** The actor was a user */
|
|
393
|
+
JobEventActorType["User"] = "USER";
|
|
394
|
+
})(JobEventActorType || (JobEventActorType = {}));
|
|
395
|
+
/** The reason why a signal was sent to the job's process, or why the process did not start */
|
|
396
|
+
export var JobEventSignalReason;
|
|
397
|
+
(function (JobEventSignalReason) {
|
|
398
|
+
/** The agent refused the job. Note that in this case, no signal was sent to the process, the job was not run at all. */
|
|
399
|
+
JobEventSignalReason["AgentRefused"] = "AGENT_REFUSED";
|
|
400
|
+
/** The agent sent the signal to the process because the agent was stopped */
|
|
401
|
+
JobEventSignalReason["AgentStop"] = "AGENT_STOP";
|
|
402
|
+
/** The agent sent the signal to the process because the job was canceled */
|
|
403
|
+
JobEventSignalReason["Cancel"] = "CANCEL";
|
|
404
|
+
/** The agent was unable to start the job process, often due to memory or resource constraints. Note that in this case, no signal was sent to the process, it simply never started. */
|
|
405
|
+
JobEventSignalReason["ProcessRunError"] = "PROCESS_RUN_ERROR";
|
|
406
|
+
/** The agent refused the job because the signature could not be verified. Note that in this case, no signal was sent to the process, the job was not run at all. */
|
|
407
|
+
JobEventSignalReason["SignatureRejected"] = "SIGNATURE_REJECTED";
|
|
408
|
+
})(JobEventSignalReason || (JobEventSignalReason = {}));
|
|
409
|
+
/** All the possible types of events that happen to a Job */
|
|
410
|
+
export var JobEventType;
|
|
411
|
+
(function (JobEventType) {
|
|
412
|
+
/** The Job was accepted by an agent */
|
|
413
|
+
JobEventType["Accepted"] = "ACCEPTED";
|
|
414
|
+
/** The agent took too long to start the job */
|
|
415
|
+
JobEventType["AcceptedExpired"] = "ACCEPTED_EXPIRED";
|
|
416
|
+
/** The agent disconnected while processing this job */
|
|
417
|
+
JobEventType["AgentDisconnected"] = "AGENT_DISCONNECTED";
|
|
418
|
+
/** The agent was lost while processing this job */
|
|
419
|
+
JobEventType["AgentLost"] = "AGENT_LOST";
|
|
420
|
+
/** The agent was stopped while processing this job */
|
|
421
|
+
JobEventType["AgentStopped"] = "AGENT_STOPPED";
|
|
422
|
+
/** The Job was assigned to an agent */
|
|
423
|
+
JobEventType["Assigned"] = "ASSIGNED";
|
|
424
|
+
/** The agent took too long to accept the job */
|
|
425
|
+
JobEventType["AssignedExpired"] = "ASSIGNED_EXPIRED";
|
|
426
|
+
/** The Job uploaded steps to the current build */
|
|
427
|
+
JobEventType["BuildStepUploadCreated"] = "BUILD_STEP_UPLOAD_CREATED";
|
|
428
|
+
/** The Job was marked for cancelation by a user */
|
|
429
|
+
JobEventType["Cancelation"] = "CANCELATION";
|
|
430
|
+
/** The Job was canceled */
|
|
431
|
+
JobEventType["Canceled"] = "CANCELED";
|
|
432
|
+
/** The Job was changed */
|
|
433
|
+
JobEventType["Changed"] = "CHANGED";
|
|
434
|
+
/** The Job expired before it was started on an agent */
|
|
435
|
+
JobEventType["Expired"] = "EXPIRED";
|
|
436
|
+
/** The Job was finished by an agent */
|
|
437
|
+
JobEventType["Finished"] = "FINISHED";
|
|
438
|
+
/** The Job is limited by a concurrency group */
|
|
439
|
+
JobEventType["Limited"] = "LIMITED";
|
|
440
|
+
/** The job log exceeded the limit */
|
|
441
|
+
JobEventType["LogSizeLimitExceeded"] = "LOG_SIZE_LIMIT_EXCEEDED";
|
|
442
|
+
/** The Job sent a notification */
|
|
443
|
+
JobEventType["Notification"] = "NOTIFICATION";
|
|
444
|
+
/** The Job was retried either automatically or by a user */
|
|
445
|
+
JobEventType["Retried"] = "RETRIED";
|
|
446
|
+
/** The Job was unable to be retried */
|
|
447
|
+
JobEventType["RetryFailed"] = "RETRY_FAILED";
|
|
448
|
+
/** The Job was scheduled */
|
|
449
|
+
JobEventType["Scheduled"] = "SCHEDULED";
|
|
450
|
+
/** The Job was started by an agent */
|
|
451
|
+
JobEventType["Started"] = "STARTED";
|
|
452
|
+
/** The Job was timed out */
|
|
453
|
+
JobEventType["TimedOut"] = "TIMED_OUT";
|
|
454
|
+
/** The Job was unblocked by a user */
|
|
455
|
+
JobEventType["Unblocked"] = "UNBLOCKED";
|
|
456
|
+
})(JobEventType || (JobEventType = {}));
|
|
457
|
+
/** The different orders you can sort jobs by */
|
|
458
|
+
export var JobOrder;
|
|
459
|
+
(function (JobOrder) {
|
|
460
|
+
/** Order by the most recently assigned jobs first */
|
|
461
|
+
JobOrder["RecentlyAssigned"] = "RECENTLY_ASSIGNED";
|
|
462
|
+
/** Order by the most recently created jobs first */
|
|
463
|
+
JobOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
464
|
+
})(JobOrder || (JobOrder = {}));
|
|
465
|
+
/** The retry types that can be made on a Job */
|
|
466
|
+
export var JobRetryTypes;
|
|
467
|
+
(function (JobRetryTypes) {
|
|
468
|
+
JobRetryTypes["Automatic"] = "AUTOMATIC";
|
|
469
|
+
JobRetryTypes["Manual"] = "MANUAL";
|
|
470
|
+
})(JobRetryTypes || (JobRetryTypes = {}));
|
|
471
|
+
/** All the possible states a job can be in */
|
|
472
|
+
export var JobStates;
|
|
473
|
+
(function (JobStates) {
|
|
474
|
+
/** The job was accepted by the agent, and now it's waiting to start running */
|
|
475
|
+
JobStates["Accepted"] = "ACCEPTED";
|
|
476
|
+
/** The job has been assigned to an agent, and it's waiting for it to accept */
|
|
477
|
+
JobStates["Assigned"] = "ASSIGNED";
|
|
478
|
+
/** The job is waiting on a `block` step to finish */
|
|
479
|
+
JobStates["Blocked"] = "BLOCKED";
|
|
480
|
+
/** The job was in a `BLOCKED` state when the build failed */
|
|
481
|
+
JobStates["BlockedFailed"] = "BLOCKED_FAILED";
|
|
482
|
+
/** The jobs configuration means that it can't be run */
|
|
483
|
+
JobStates["Broken"] = "BROKEN";
|
|
484
|
+
/** The job was canceled */
|
|
485
|
+
JobStates["Canceled"] = "CANCELED";
|
|
486
|
+
/** The job is currently canceling */
|
|
487
|
+
JobStates["Canceling"] = "CANCELING";
|
|
488
|
+
/** The job expired before it was started on an agent */
|
|
489
|
+
JobStates["Expired"] = "EXPIRED";
|
|
490
|
+
/** The job has finished */
|
|
491
|
+
JobStates["Finished"] = "FINISHED";
|
|
492
|
+
/** The job is waiting for jobs with the same concurrency group to finish */
|
|
493
|
+
JobStates["Limited"] = "LIMITED";
|
|
494
|
+
/** The job is waiting on a concurrency group check before becoming either `LIMITED` or `SCHEDULED` */
|
|
495
|
+
JobStates["Limiting"] = "LIMITING";
|
|
496
|
+
/** The job has just been created and doesn't have a state yet */
|
|
497
|
+
JobStates["Pending"] = "PENDING";
|
|
498
|
+
/** The job is running */
|
|
499
|
+
JobStates["Running"] = "RUNNING";
|
|
500
|
+
/** The job is scheduled and waiting for an agent */
|
|
501
|
+
JobStates["Scheduled"] = "SCHEDULED";
|
|
502
|
+
/** The job was skipped */
|
|
503
|
+
JobStates["Skipped"] = "SKIPPED";
|
|
504
|
+
/** The job timed out */
|
|
505
|
+
JobStates["TimedOut"] = "TIMED_OUT";
|
|
506
|
+
/** The job is timing out for taking too long */
|
|
507
|
+
JobStates["TimingOut"] = "TIMING_OUT";
|
|
508
|
+
/** This `block` job has been manually unblocked */
|
|
509
|
+
JobStates["Unblocked"] = "UNBLOCKED";
|
|
510
|
+
/** This `block` job was in an `UNBLOCKED` state when the build failed */
|
|
511
|
+
JobStates["UnblockedFailed"] = "UNBLOCKED_FAILED";
|
|
512
|
+
/** The job is waiting on a `wait` step to finish */
|
|
513
|
+
JobStates["Waiting"] = "WAITING";
|
|
514
|
+
/** The job was in a `WAITING` state when the build failed */
|
|
515
|
+
JobStates["WaitingFailed"] = "WAITING_FAILED";
|
|
516
|
+
})(JobStates || (JobStates = {}));
|
|
517
|
+
/** All the possible types of jobs that can exist */
|
|
518
|
+
export var JobTypes;
|
|
519
|
+
(function (JobTypes) {
|
|
520
|
+
/** A job that blocks a pipeline from progressing until it's manually unblocked */
|
|
521
|
+
JobTypes["Block"] = "BLOCK";
|
|
522
|
+
/** A job that runs a command on an agent */
|
|
523
|
+
JobTypes["Command"] = "COMMAND";
|
|
524
|
+
/** A job that triggers another build on a pipeline */
|
|
525
|
+
JobTypes["Trigger"] = "TRIGGER";
|
|
526
|
+
/** A job that waits for all previous jobs to finish */
|
|
527
|
+
JobTypes["Wait"] = "WAIT";
|
|
528
|
+
})(JobTypes || (JobTypes = {}));
|
|
529
|
+
/** All the possible namespaces for a notice */
|
|
530
|
+
export var NoticeNamespaces;
|
|
531
|
+
(function (NoticeNamespaces) {
|
|
532
|
+
/** A change to an existing feature */
|
|
533
|
+
NoticeNamespaces["Change"] = "CHANGE";
|
|
534
|
+
/** The user has had an email suggested to them */
|
|
535
|
+
NoticeNamespaces["EmailSuggestion"] = "EMAIL_SUGGESTION";
|
|
536
|
+
/** An event announcement */
|
|
537
|
+
NoticeNamespaces["Event"] = "EVENT";
|
|
538
|
+
/** A new feature was added */
|
|
539
|
+
NoticeNamespaces["Feature"] = "FEATURE";
|
|
540
|
+
})(NoticeNamespaces || (NoticeNamespaces = {}));
|
|
541
|
+
/** The different orders you can sort audit events by */
|
|
542
|
+
export var OrganizationAuditEventOrders;
|
|
543
|
+
(function (OrganizationAuditEventOrders) {
|
|
544
|
+
/** Order by the most recently occurring events first */
|
|
545
|
+
OrganizationAuditEventOrders["RecentlyOccurred"] = "RECENTLY_OCCURRED";
|
|
546
|
+
})(OrganizationAuditEventOrders || (OrganizationAuditEventOrders = {}));
|
|
547
|
+
/** The different orders you can sort organization invitations by */
|
|
548
|
+
export var OrganizationInvitationOrders;
|
|
549
|
+
(function (OrganizationInvitationOrders) {
|
|
550
|
+
/** Order by email address alphabetically */
|
|
551
|
+
OrganizationInvitationOrders["Email"] = "EMAIL";
|
|
552
|
+
/** Order by the most recently created invitations first */
|
|
553
|
+
OrganizationInvitationOrders["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
554
|
+
})(OrganizationInvitationOrders || (OrganizationInvitationOrders = {}));
|
|
555
|
+
/** All the possible states that an organization invitation can be */
|
|
556
|
+
export var OrganizationInvitationStates;
|
|
557
|
+
(function (OrganizationInvitationStates) {
|
|
558
|
+
/** The invitation was accepted by the person it was sent to */
|
|
559
|
+
OrganizationInvitationStates["Accepted"] = "ACCEPTED";
|
|
560
|
+
/** The invitation wasn't accepted and the link has expired */
|
|
561
|
+
OrganizationInvitationStates["Expired"] = "EXPIRED";
|
|
562
|
+
/** The invitation is waiting for a user to accept it */
|
|
563
|
+
OrganizationInvitationStates["Pending"] = "PENDING";
|
|
564
|
+
/** The invitation was revoked and can no longer be accepted */
|
|
565
|
+
OrganizationInvitationStates["Revoked"] = "REVOKED";
|
|
566
|
+
})(OrganizationInvitationStates || (OrganizationInvitationStates = {}));
|
|
567
|
+
/** The different orders you can sort members by */
|
|
568
|
+
export var OrganizationMemberOrder;
|
|
569
|
+
(function (OrganizationMemberOrder) {
|
|
570
|
+
/** Order by name alphabetically */
|
|
571
|
+
OrganizationMemberOrder["Name"] = "NAME";
|
|
572
|
+
/** Order by the most recently created members first */
|
|
573
|
+
OrganizationMemberOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
574
|
+
/** Order by relevance when searching for members */
|
|
575
|
+
OrganizationMemberOrder["Relevance"] = "RELEVANCE";
|
|
576
|
+
})(OrganizationMemberOrder || (OrganizationMemberOrder = {}));
|
|
577
|
+
/** The roles a user can be within an organization */
|
|
578
|
+
export var OrganizationMemberRole;
|
|
579
|
+
(function (OrganizationMemberRole) {
|
|
580
|
+
/** Has full access to the entire organization */
|
|
581
|
+
OrganizationMemberRole["Admin"] = "ADMIN";
|
|
582
|
+
/** The user is a regular member of the organization */
|
|
583
|
+
OrganizationMemberRole["Member"] = "MEMBER";
|
|
584
|
+
})(OrganizationMemberRole || (OrganizationMemberRole = {}));
|
|
585
|
+
/** The SSO authorization modes you can use on a member */
|
|
586
|
+
export var OrganizationMemberSsoModeEnum;
|
|
587
|
+
(function (OrganizationMemberSsoModeEnum) {
|
|
588
|
+
/** The member can either use SSO or their email & password */
|
|
589
|
+
OrganizationMemberSsoModeEnum["Optional"] = "OPTIONAL";
|
|
590
|
+
/** The member must use SSO to access your organization */
|
|
591
|
+
OrganizationMemberSsoModeEnum["Required"] = "REQUIRED";
|
|
592
|
+
})(OrganizationMemberSsoModeEnum || (OrganizationMemberSsoModeEnum = {}));
|
|
593
|
+
/** The access levels that can be assigned to a pipeline */
|
|
594
|
+
export var PipelineAccessLevels;
|
|
595
|
+
(function (PipelineAccessLevels) {
|
|
596
|
+
/** Allows builds and read only */
|
|
597
|
+
PipelineAccessLevels["BuildAndRead"] = "BUILD_AND_READ";
|
|
598
|
+
/** Allows edits, builds and reads */
|
|
599
|
+
PipelineAccessLevels["ManageBuildAndRead"] = "MANAGE_BUILD_AND_READ";
|
|
600
|
+
/** Read only - no builds or edits */
|
|
601
|
+
PipelineAccessLevels["ReadOnly"] = "READ_ONLY";
|
|
602
|
+
})(PipelineAccessLevels || (PipelineAccessLevels = {}));
|
|
603
|
+
/** The different orders you can sort pipelines by */
|
|
604
|
+
export var PipelineOrders;
|
|
605
|
+
(function (PipelineOrders) {
|
|
606
|
+
/** Order by name alphabetically */
|
|
607
|
+
PipelineOrders["Name"] = "NAME";
|
|
608
|
+
/** Order by favorites first alphabetically, then the rest of the pipelines alphabetically */
|
|
609
|
+
PipelineOrders["NameWithFavoritesFirst"] = "NAME_WITH_FAVORITES_FIRST";
|
|
610
|
+
/** Order by the most recently created pipelines first */
|
|
611
|
+
PipelineOrders["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
612
|
+
/** Order by relevance when searching for pipelines */
|
|
613
|
+
PipelineOrders["Relevance"] = "RELEVANCE";
|
|
614
|
+
})(PipelineOrders || (PipelineOrders = {}));
|
|
615
|
+
/** The different orders you can sort pipeline templates by */
|
|
616
|
+
export var PipelineTemplateOrder;
|
|
617
|
+
(function (PipelineTemplateOrder) {
|
|
618
|
+
/** Order by name alphabetically */
|
|
619
|
+
PipelineTemplateOrder["Name"] = "NAME";
|
|
620
|
+
/** Order by the most recently created pipeline templates first */
|
|
621
|
+
PipelineTemplateOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
622
|
+
})(PipelineTemplateOrder || (PipelineTemplateOrder = {}));
|
|
623
|
+
/** The visibility of the pipeline */
|
|
624
|
+
export var PipelineVisibility;
|
|
625
|
+
(function (PipelineVisibility) {
|
|
626
|
+
/** The pipeline is private */
|
|
627
|
+
PipelineVisibility["Private"] = "PRIVATE";
|
|
628
|
+
/** The pipeline is public */
|
|
629
|
+
PipelineVisibility["Public"] = "PUBLIC";
|
|
630
|
+
})(PipelineVisibility || (PipelineVisibility = {}));
|
|
631
|
+
/** The access levels that can be assigned to a registry */
|
|
632
|
+
export var RegistryAccessLevels;
|
|
633
|
+
(function (RegistryAccessLevels) {
|
|
634
|
+
/** Allow read and push */
|
|
635
|
+
RegistryAccessLevels["ReadAndWrite"] = "READ_AND_WRITE";
|
|
636
|
+
/** Read only */
|
|
637
|
+
RegistryAccessLevels["ReadOnly"] = "READ_ONLY";
|
|
638
|
+
/** Allow read, push, delete and management */
|
|
639
|
+
RegistryAccessLevels["ReadWriteAndAdmin"] = "READ_WRITE_AND_ADMIN";
|
|
640
|
+
})(RegistryAccessLevels || (RegistryAccessLevels = {}));
|
|
641
|
+
/** The different orders you can sort registries by */
|
|
642
|
+
export var RegistryOrders;
|
|
643
|
+
(function (RegistryOrders) {
|
|
644
|
+
/** Order by name alphabetically */
|
|
645
|
+
RegistryOrders["Name"] = "NAME";
|
|
646
|
+
/** Order by the most recently created registries first */
|
|
647
|
+
RegistryOrders["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
648
|
+
/** Order by relevance when searching for registries */
|
|
649
|
+
RegistryOrders["Relevance"] = "RELEVANCE";
|
|
650
|
+
})(RegistryOrders || (RegistryOrders = {}));
|
|
651
|
+
/** All types of billable resources */
|
|
652
|
+
export var ResourceUsageType;
|
|
653
|
+
(function (ResourceUsageType) {
|
|
654
|
+
/** These records represent a pipeline's job minutes usage for a single day */
|
|
655
|
+
ResourceUsageType["JobMinutes"] = "JOB_MINUTES";
|
|
656
|
+
/** These records represent a suite's test executions usage for a single day */
|
|
657
|
+
ResourceUsageType["TestExecutions"] = "TEST_EXECUTIONS";
|
|
658
|
+
})(ResourceUsageType || (ResourceUsageType = {}));
|
|
659
|
+
/** API tokens with access to this organization will be automatically revoked after this many days of inactivity. */
|
|
660
|
+
export var RevokeInactiveTokenPeriod;
|
|
661
|
+
(function (RevokeInactiveTokenPeriod) {
|
|
662
|
+
/** Revoke organization access from API tokens after 30 days of inactivity */
|
|
663
|
+
RevokeInactiveTokenPeriod["Days_30"] = "DAYS_30";
|
|
664
|
+
/** Revoke organization access from API tokens after 60 days of inactivity */
|
|
665
|
+
RevokeInactiveTokenPeriod["Days_60"] = "DAYS_60";
|
|
666
|
+
/** Revoke organization access from API tokens after 90 days of inactivity */
|
|
667
|
+
RevokeInactiveTokenPeriod["Days_90"] = "DAYS_90";
|
|
668
|
+
/** Revoke organization access from API tokens after 180 days of inactivity */
|
|
669
|
+
RevokeInactiveTokenPeriod["Days_180"] = "DAYS_180";
|
|
670
|
+
/** Revoke organization access from API tokens after 365 days of inactivity */
|
|
671
|
+
RevokeInactiveTokenPeriod["Days_365"] = "DAYS_365";
|
|
672
|
+
/** Never revoke organization access from inactive API tokens */
|
|
673
|
+
RevokeInactiveTokenPeriod["Never"] = "NEVER";
|
|
674
|
+
})(RevokeInactiveTokenPeriod || (RevokeInactiveTokenPeriod = {}));
|
|
675
|
+
/** The action a rule enforces */
|
|
676
|
+
export var RuleAction;
|
|
677
|
+
(function (RuleAction) {
|
|
678
|
+
/** Artifacts read */
|
|
679
|
+
RuleAction["ArtifactsRead"] = "ARTIFACTS_READ";
|
|
680
|
+
/** Trigger build */
|
|
681
|
+
RuleAction["TriggerBuild"] = "TRIGGER_BUILD";
|
|
682
|
+
})(RuleAction || (RuleAction = {}));
|
|
683
|
+
/** The effect a rule has */
|
|
684
|
+
export var RuleEffect;
|
|
685
|
+
(function (RuleEffect) {
|
|
686
|
+
/** Allow */
|
|
687
|
+
RuleEffect["Allow"] = "ALLOW";
|
|
688
|
+
})(RuleEffect || (RuleEffect = {}));
|
|
689
|
+
/** The different orders you can sort rules by */
|
|
690
|
+
export var RuleOrder;
|
|
691
|
+
(function (RuleOrder) {
|
|
692
|
+
/** Order by the most recently created rules first */
|
|
693
|
+
RuleOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
694
|
+
})(RuleOrder || (RuleOrder = {}));
|
|
695
|
+
/** The source type for a rule */
|
|
696
|
+
export var RuleSourceType;
|
|
697
|
+
(function (RuleSourceType) {
|
|
698
|
+
/** Pipeline */
|
|
699
|
+
RuleSourceType["Pipeline"] = "PIPELINE";
|
|
700
|
+
})(RuleSourceType || (RuleSourceType = {}));
|
|
701
|
+
/** The target type for a rule */
|
|
702
|
+
export var RuleTargetType;
|
|
703
|
+
(function (RuleTargetType) {
|
|
704
|
+
/** Pipeline */
|
|
705
|
+
RuleTargetType["Pipeline"] = "PIPELINE";
|
|
706
|
+
})(RuleTargetType || (RuleTargetType = {}));
|
|
707
|
+
/** All the possible states an SSO Authorization */
|
|
708
|
+
export var SsoAuthorizationState;
|
|
709
|
+
(function (SsoAuthorizationState) {
|
|
710
|
+
/** The authorization has been verified and is in use */
|
|
711
|
+
SsoAuthorizationState["Verified"] = "VERIFIED";
|
|
712
|
+
/** The authorization was verified but has since expired */
|
|
713
|
+
SsoAuthorizationState["VerifiedExpired"] = "VERIFIED_EXPIRED";
|
|
714
|
+
/** The authorization was verified but has since been manually revoked */
|
|
715
|
+
SsoAuthorizationState["VerifiedRevoked"] = "VERIFIED_REVOKED";
|
|
716
|
+
/** The authorization was verified but has since been destroyed as the user logged out of that session */
|
|
717
|
+
SsoAuthorizationState["VerifiedUserSessionDestroyed"] = "VERIFIED_USER_SESSION_DESTROYED";
|
|
718
|
+
})(SsoAuthorizationState || (SsoAuthorizationState = {}));
|
|
719
|
+
/** XML RSA security algorithms used in the SAML exchange */
|
|
720
|
+
export var SsoProviderSamlrsaxmlSecurity;
|
|
721
|
+
(function (SsoProviderSamlrsaxmlSecurity) {
|
|
722
|
+
/** http://www.w3.org/2000/09/xmldsig#rsa-sha1 */
|
|
723
|
+
SsoProviderSamlrsaxmlSecurity["RsaSha1"] = "RSA_SHA1";
|
|
724
|
+
/** http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 */
|
|
725
|
+
SsoProviderSamlrsaxmlSecurity["RsaSha256"] = "RSA_SHA256";
|
|
726
|
+
/** http://www.w3.org/2001/04/xmldsig-more#rsa-sha384 */
|
|
727
|
+
SsoProviderSamlrsaxmlSecurity["RsaSha384"] = "RSA_SHA384";
|
|
728
|
+
/** http://www.w3.org/2001/04/xmldsig-more#rsa-sha512 */
|
|
729
|
+
SsoProviderSamlrsaxmlSecurity["RsaSha512"] = "RSA_SHA512";
|
|
730
|
+
})(SsoProviderSamlrsaxmlSecurity || (SsoProviderSamlrsaxmlSecurity = {}));
|
|
731
|
+
/** XML security algorithms used in the SAML exchange */
|
|
732
|
+
export var SsoProviderSamlxmlSecurity;
|
|
733
|
+
(function (SsoProviderSamlxmlSecurity) {
|
|
734
|
+
/** http://www.w3.org/2000/09/xmldsig#sha1 */
|
|
735
|
+
SsoProviderSamlxmlSecurity["Sha1"] = "SHA1";
|
|
736
|
+
/** http://www.w3.org/2001/04/xmlenc#sha256 */
|
|
737
|
+
SsoProviderSamlxmlSecurity["Sha256"] = "SHA256";
|
|
738
|
+
/** http://www.w3.org/2001/04/xmldsig-more#sha384 */
|
|
739
|
+
SsoProviderSamlxmlSecurity["Sha384"] = "SHA384";
|
|
740
|
+
/** http://www.w3.org/2001/04/xmlenc#sha512 */
|
|
741
|
+
SsoProviderSamlxmlSecurity["Sha512"] = "SHA512";
|
|
742
|
+
})(SsoProviderSamlxmlSecurity || (SsoProviderSamlxmlSecurity = {}));
|
|
743
|
+
/** All the possible states an SSO Provider can be in */
|
|
744
|
+
export var SsoProviderStates;
|
|
745
|
+
(function (SsoProviderStates) {
|
|
746
|
+
/** The SSO Provider has been created, but has not been enabled for use yet */
|
|
747
|
+
SsoProviderStates["Created"] = "CREATED";
|
|
748
|
+
/** The SSO Provider has been disabled and can't be used directly */
|
|
749
|
+
SsoProviderStates["Disabled"] = "DISABLED";
|
|
750
|
+
/** The SSO Provider has been setup correctly and can be used by users */
|
|
751
|
+
SsoProviderStates["Enabled"] = "ENABLED";
|
|
752
|
+
})(SsoProviderStates || (SsoProviderStates = {}));
|
|
753
|
+
/** All the possible SSO Provider types */
|
|
754
|
+
export var SsoProviderTypes;
|
|
755
|
+
(function (SsoProviderTypes) {
|
|
756
|
+
/** A SSO Provider configured to use a GitHub App for authorization */
|
|
757
|
+
SsoProviderTypes["GithubApp"] = "GITHUB_APP";
|
|
758
|
+
/** A SSO Provider configured to use Google G Suite for authorization */
|
|
759
|
+
SsoProviderTypes["GoogleGsuite"] = "GOOGLE_GSUITE";
|
|
760
|
+
/** An SSO Provider configured to use SAML */
|
|
761
|
+
SsoProviderTypes["Saml"] = "SAML";
|
|
762
|
+
})(SsoProviderTypes || (SsoProviderTypes = {}));
|
|
763
|
+
/** The access levels that can be assigned to a suite */
|
|
764
|
+
export var SuiteAccessLevels;
|
|
765
|
+
(function (SuiteAccessLevels) {
|
|
766
|
+
/** Allows edits and reads */
|
|
767
|
+
SuiteAccessLevels["ManageAndRead"] = "MANAGE_AND_READ";
|
|
768
|
+
/** Read only */
|
|
769
|
+
SuiteAccessLevels["ReadOnly"] = "READ_ONLY";
|
|
770
|
+
})(SuiteAccessLevels || (SuiteAccessLevels = {}));
|
|
771
|
+
/** The different orders you can sort suites by */
|
|
772
|
+
export var SuiteOrders;
|
|
773
|
+
(function (SuiteOrders) {
|
|
774
|
+
/** Order by name alphabetically */
|
|
775
|
+
SuiteOrders["Name"] = "NAME";
|
|
776
|
+
/** Order by the most recently created suites first */
|
|
777
|
+
SuiteOrders["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
778
|
+
/** Order by relevance when searching for suites */
|
|
779
|
+
SuiteOrders["Relevance"] = "RELEVANCE";
|
|
780
|
+
})(SuiteOrders || (SuiteOrders = {}));
|
|
781
|
+
/** The different orders you can sort team members by */
|
|
782
|
+
export var TeamMemberOrder;
|
|
783
|
+
(function (TeamMemberOrder) {
|
|
784
|
+
/** Order by name alphabetically */
|
|
785
|
+
TeamMemberOrder["Name"] = "NAME";
|
|
786
|
+
/** Order by the most recently added members first */
|
|
787
|
+
TeamMemberOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
788
|
+
/** Order by most relevant results when doing a search */
|
|
789
|
+
TeamMemberOrder["Relevance"] = "RELEVANCE";
|
|
790
|
+
})(TeamMemberOrder || (TeamMemberOrder = {}));
|
|
791
|
+
/** The roles a user can be within a team */
|
|
792
|
+
export var TeamMemberRole;
|
|
793
|
+
(function (TeamMemberRole) {
|
|
794
|
+
/** The user can manage pipelines and users within the team */
|
|
795
|
+
TeamMemberRole["Maintainer"] = "MAINTAINER";
|
|
796
|
+
/** The user is a regular member of the team */
|
|
797
|
+
TeamMemberRole["Member"] = "MEMBER";
|
|
798
|
+
})(TeamMemberRole || (TeamMemberRole = {}));
|
|
799
|
+
/** The different orders you can sort teams by */
|
|
800
|
+
export var TeamOrder;
|
|
801
|
+
(function (TeamOrder) {
|
|
802
|
+
/** Order by name alphabetically */
|
|
803
|
+
TeamOrder["Name"] = "NAME";
|
|
804
|
+
/** Order by the most recently created teams first */
|
|
805
|
+
TeamOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
806
|
+
/** Order by relevance when searching for teams */
|
|
807
|
+
TeamOrder["Relevance"] = "RELEVANCE";
|
|
808
|
+
})(TeamOrder || (TeamOrder = {}));
|
|
809
|
+
/** The different orders you can sort pipelines by */
|
|
810
|
+
export var TeamPipelineOrder;
|
|
811
|
+
(function (TeamPipelineOrder) {
|
|
812
|
+
/** Order by name alphabetically */
|
|
813
|
+
TeamPipelineOrder["Name"] = "NAME";
|
|
814
|
+
/** Order by the most recently added pipelines first */
|
|
815
|
+
TeamPipelineOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
816
|
+
/** Order by most relevant results when doing a search */
|
|
817
|
+
TeamPipelineOrder["Relevance"] = "RELEVANCE";
|
|
818
|
+
})(TeamPipelineOrder || (TeamPipelineOrder = {}));
|
|
819
|
+
/** Whether a team is visible or secret within an organization */
|
|
820
|
+
export var TeamPrivacy;
|
|
821
|
+
(function (TeamPrivacy) {
|
|
822
|
+
/** Visible to organization administrators and members */
|
|
823
|
+
TeamPrivacy["Secret"] = "SECRET";
|
|
824
|
+
/** Visible to all members of the organization */
|
|
825
|
+
TeamPrivacy["Visible"] = "VISIBLE";
|
|
826
|
+
})(TeamPrivacy || (TeamPrivacy = {}));
|
|
827
|
+
/** The different orders you can sort team registries by */
|
|
828
|
+
export var TeamRegistryOrder;
|
|
829
|
+
(function (TeamRegistryOrder) {
|
|
830
|
+
/** Order by name alphabetically */
|
|
831
|
+
TeamRegistryOrder["Name"] = "NAME";
|
|
832
|
+
/** Order by the most recently added registries first */
|
|
833
|
+
TeamRegistryOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
834
|
+
/** Order by most relevant results when doing a search */
|
|
835
|
+
TeamRegistryOrder["Relevance"] = "RELEVANCE";
|
|
836
|
+
})(TeamRegistryOrder || (TeamRegistryOrder = {}));
|
|
837
|
+
/** The different orders you can sort suites by */
|
|
838
|
+
export var TeamSuiteOrder;
|
|
839
|
+
(function (TeamSuiteOrder) {
|
|
840
|
+
/** Order by name alphabetically */
|
|
841
|
+
TeamSuiteOrder["Name"] = "NAME";
|
|
842
|
+
/** Order by the most recently added suites first */
|
|
843
|
+
TeamSuiteOrder["RecentlyCreated"] = "RECENTLY_CREATED";
|
|
844
|
+
/** Order by most relevant results when doing a search */
|
|
845
|
+
TeamSuiteOrder["Relevance"] = "RELEVANCE";
|
|
846
|
+
})(TeamSuiteOrder || (TeamSuiteOrder = {}));
|
|
847
|
+
export const GetViewerDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetViewer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "viewer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "uuid" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }] } }] } }] } }] };
|
|
848
|
+
export const GetOrganizationsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetOrganizations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "viewer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "organizations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }] } }] } }] } }] } }] } }] };
|
|
849
|
+
export const GetPipelinesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetPipelines" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "organizationSlug" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "organization" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "slug" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "organizationSlug" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "pipelines" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "first" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "after" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "after" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "archived" }, "value": { "kind": "BooleanValue", "value": false } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "uuid" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "repository" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "url" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "hasNextPage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "endCursor" } }] } }] } }] } }] } }] };
|
|
850
|
+
export const GetBuildsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetBuilds" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "pipelineSlug" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "organizationSlug" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "organization" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "slug" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "organizationSlug" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "pipelines" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "first" }, "value": { "kind": "IntValue", "value": "1" } }, { "kind": "Argument", "name": { "kind": "Name", "value": "search" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "pipelineSlug" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "builds" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "first" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "number" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "commit" } }, { "kind": "Field", "name": { "kind": "Name", "value": "branch" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "startedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "finishedAt" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "hasNextPage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "endCursor" } }] } }] } }] } }] } }] } }] } }] } }] };
|
|
851
|
+
export const GetViewerBuildsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetViewerBuilds" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "viewer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "builds" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "first" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "first" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "edges" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "node" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "number" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "branch" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pipeline" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "organization" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "hasNextPage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "endCursor" } }] } }] } }] } }] } }] };
|
|
852
|
+
const defaultWrapper = (action, _operationName, _operationType, _variables) => action();
|
|
853
|
+
export function getSdk(client, withWrapper = defaultWrapper) {
|
|
854
|
+
return {
|
|
855
|
+
GetViewer(variables, requestHeaders) {
|
|
856
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetViewerDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'GetViewer', 'query', variables);
|
|
857
|
+
},
|
|
858
|
+
GetOrganizations(variables, requestHeaders) {
|
|
859
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetOrganizationsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'GetOrganizations', 'query', variables);
|
|
860
|
+
},
|
|
861
|
+
GetPipelines(variables, requestHeaders) {
|
|
862
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetPipelinesDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'GetPipelines', 'query', variables);
|
|
863
|
+
},
|
|
864
|
+
GetBuilds(variables, requestHeaders) {
|
|
865
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetBuildsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'GetBuilds', 'query', variables);
|
|
866
|
+
},
|
|
867
|
+
GetViewerBuilds(variables, requestHeaders) {
|
|
868
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetViewerBuildsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'GetViewerBuilds', 'query', variables);
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
//# sourceMappingURL=sdk.js.map
|