azure-devops-extension-api 5.275.0 → 5.279.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/AdvancedSecurity.Reporting/Reporting.d.ts +81 -2
- package/AdvancedSecurity.Reporting/Reporting.js +4 -0
- package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
- package/Alert/Alert.d.ts +244 -9
- package/Alert/Alert.js +124 -1
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +76 -12
- package/Alert/AlertClient.js +205 -23
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +29 -0
- package/Build/Build.js +19 -1
- package/Build/Build.min.js +1 -1
- package/Gallery/Gallery.d.ts +46 -0
- package/Gallery/Gallery.js +11 -1
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +14 -0
- package/Gallery/GalleryClient.js +48 -0
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +2 -22
- package/Git/GitClient.d.ts +10 -3
- package/Git/GitClient.js +23 -3
- package/Git/GitClient.min.js +1 -1
- package/Management/Management.d.ts +38 -2
- package/Management/Management.js +4 -0
- package/Management/Management.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +1 -1
- package/TaskAgent/TaskAgent.d.ts +2 -0
- package/Test/Test.d.ts +106 -56
- package/TestResults/TestResultsClient.d.ts +86 -20
- package/TestResults/TestResultsClient.js +226 -55
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +54 -0
- package/Tfvc/Tfvc.js +57 -1
- package/Tfvc/Tfvc.min.js +1 -1
- package/Wiki/Wiki.d.ts +17 -0
- package/Wiki/WikiClient.d.ts +8 -0
- package/Wiki/WikiClient.js +23 -0
- package/Wiki/WikiClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +48 -0
- package/WorkItemTracking/WorkItemTracking.js +11 -1
- package/WorkItemTracking/WorkItemTracking.min.js +1 -1
- package/esm/AdvancedSecurity.Reporting/Reporting.js +4 -0
- package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
- package/esm/Alert/Alert.js +123 -0
- package/esm/Alert/Alert.min.js +1 -1
- package/esm/Alert/AlertClient.js +190 -22
- package/esm/Alert/AlertClient.min.js +1 -1
- package/esm/Build/Build.js +18 -0
- package/esm/Build/Build.min.js +1 -1
- package/esm/Gallery/Gallery.js +10 -0
- package/esm/Gallery/Gallery.min.js +1 -1
- package/esm/Gallery/GalleryClient.js +42 -0
- package/esm/Gallery/GalleryClient.min.js +1 -1
- package/esm/Git/GitClient.js +21 -3
- package/esm/Git/GitClient.min.js +1 -1
- package/esm/Management/Management.js +4 -0
- package/esm/Management/Management.min.js +1 -1
- package/esm/TestResults/TestResultsClient.js +208 -49
- package/esm/TestResults/TestResultsClient.min.js +1 -1
- package/esm/Tfvc/Tfvc.js +56 -0
- package/esm/Tfvc/Tfvc.min.js +1 -1
- package/esm/Wiki/WikiClient.js +21 -0
- package/esm/Wiki/WikiClient.min.js +1 -1
- package/esm/WorkItemTracking/WorkItemTracking.js +10 -0
- package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -1
- package/package.json +1 -1
- package/_manifest/comparison-result.json +0 -40
- package/_manifest/spdx_2.2/ESRPClientLogs0716164721553.json +0 -1
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +0 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +0 -1
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +0 -1
- package/_manifest/spdx_3.0/manifest.spdx.json +0 -1
- package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +0 -1
|
@@ -29,6 +29,10 @@ export var AlertType;
|
|
|
29
29
|
* The code contains a weakness determined by AI-powered analysis.
|
|
30
30
|
*/
|
|
31
31
|
AlertType[AlertType["AICode"] = 5] = "AICode";
|
|
32
|
+
/**
|
|
33
|
+
* The code uses a dependency flagged as malware by the GitHub Advisory Database.
|
|
34
|
+
*/
|
|
35
|
+
AlertType[AlertType["Malware"] = 6] = "Malware";
|
|
32
36
|
})(AlertType || (AlertType = {}));
|
|
33
37
|
export var AlertValidityStatus;
|
|
34
38
|
(function (AlertValidityStatus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode"}(AlertType||(AlertType={}));export var AlertValidityStatus;!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(AlertValidityStatus||(AlertValidityStatus={}));export var ComponentType;!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(ComponentType||(ComponentType={}));export var DashboardAlertState;!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(DashboardAlertState||(DashboardAlertState={}));export var DismissalType;!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(DismissalType||(DismissalType={}));export var Severity;!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(Severity||(Severity={}));export var State;!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed",e[e.Draft=16]="Draft"}(State||(State={}));export var TimePeriod;!function(e){e[e.Undefined=0]="Undefined",e[e.Last24Hours=5]="Last24Hours",e[e.Last7Days=6]="Last7Days",e[e.Last14Days=7]="Last14Days",e[e.Last30Days=8]="Last30Days",e[e.Last90Days=9]="Last90Days"}(TimePeriod||(TimePeriod={}));
|
|
1
|
+
export var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode",e[e.Malware=6]="Malware"}(AlertType||(AlertType={}));export var AlertValidityStatus;!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(AlertValidityStatus||(AlertValidityStatus={}));export var ComponentType;!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(ComponentType||(ComponentType={}));export var DashboardAlertState;!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(DashboardAlertState||(DashboardAlertState={}));export var DismissalType;!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(DismissalType||(DismissalType={}));export var Severity;!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(Severity||(Severity={}));export var State;!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed",e[e.Draft=16]="Draft"}(State||(State={}));export var TimePeriod;!function(e){e[e.Undefined=0]="Undefined",e[e.Last24Hours=5]="Last24Hours",e[e.Last7Days=6]="Last7Days",e[e.Last14Days=7]="Last14Days",e[e.Last30Days=8]="Last30Days",e[e.Last90Days=9]="Last90Days"}(TimePeriod||(TimePeriod={}));
|
package/esm/Alert/Alert.js
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* ---------------------------------------------------------
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Identifies the supported artifact types produced by an alert job.
|
|
8
|
+
*/
|
|
9
|
+
export var AlertJobArtifactType;
|
|
10
|
+
(function (AlertJobArtifactType) {
|
|
11
|
+
/**
|
|
12
|
+
* An artifact type not recognized by this client version.
|
|
13
|
+
*/
|
|
14
|
+
AlertJobArtifactType[AlertJobArtifactType["Unknown"] = 0] = "Unknown";
|
|
15
|
+
/**
|
|
16
|
+
* An Azure Repos pull request.
|
|
17
|
+
*/
|
|
18
|
+
AlertJobArtifactType[AlertJobArtifactType["PullRequest"] = 1] = "PullRequest";
|
|
19
|
+
})(AlertJobArtifactType || (AlertJobArtifactType = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Identifies the supported alert job workflows.
|
|
22
|
+
*/
|
|
23
|
+
export var AlertJobType;
|
|
24
|
+
(function (AlertJobType) {
|
|
25
|
+
/**
|
|
26
|
+
* An alert job type not recognized by this client version.
|
|
27
|
+
*/
|
|
28
|
+
AlertJobType[AlertJobType["Unknown"] = 0] = "Unknown";
|
|
29
|
+
/**
|
|
30
|
+
* A WIM workflow that creates a pull request.
|
|
31
|
+
*/
|
|
32
|
+
AlertJobType[AlertJobType["WIMAutoPR"] = 1] = "WIMAutoPR";
|
|
33
|
+
/**
|
|
34
|
+
* An AI alert consolidation workflow.
|
|
35
|
+
*/
|
|
36
|
+
AlertJobType[AlertJobType["AIAlertConsolidation"] = 2] = "AIAlertConsolidation";
|
|
37
|
+
})(AlertJobType || (AlertJobType = {}));
|
|
6
38
|
export var AlertListExpandOption;
|
|
7
39
|
(function (AlertListExpandOption) {
|
|
8
40
|
/**
|
|
@@ -17,6 +49,10 @@ export var AlertListExpandOption;
|
|
|
17
49
|
* Return only the count of active alerts grouped by alert type.
|
|
18
50
|
*/
|
|
19
51
|
AlertListExpandOption[AlertListExpandOption["Count"] = 2] = "Count";
|
|
52
|
+
/**
|
|
53
|
+
* Return the AI metadata blob reference in AI code alerts.
|
|
54
|
+
*/
|
|
55
|
+
AlertListExpandOption[AlertListExpandOption["AIMetadataBlobReference"] = 3] = "AIMetadataBlobReference";
|
|
20
56
|
})(AlertListExpandOption || (AlertListExpandOption = {}));
|
|
21
57
|
/**
|
|
22
58
|
* Enum to control error policy in a bulk get alert metadata items request.
|
|
@@ -58,6 +94,10 @@ export var AlertType;
|
|
|
58
94
|
* The code contains a weakness determined by AI-powered analysis.
|
|
59
95
|
*/
|
|
60
96
|
AlertType[AlertType["AICode"] = 5] = "AICode";
|
|
97
|
+
/**
|
|
98
|
+
* The code uses a dependency flagged as malware by the GitHub Advisory Database.
|
|
99
|
+
*/
|
|
100
|
+
AlertType[AlertType["Malware"] = 6] = "Malware";
|
|
61
101
|
})(AlertType || (AlertType = {}));
|
|
62
102
|
export var AlertValidationRequestStatus;
|
|
63
103
|
(function (AlertValidationRequestStatus) {
|
|
@@ -122,7 +162,73 @@ export var AutofixCallbackStatus;
|
|
|
122
162
|
* The pipeline or post-processing failed.
|
|
123
163
|
*/
|
|
124
164
|
AutofixCallbackStatus[AutofixCallbackStatus["Failed"] = 1] = "Failed";
|
|
165
|
+
/**
|
|
166
|
+
* The pipeline completed successfully but the autofix binary produced no changes, so no pull request was created.
|
|
167
|
+
*/
|
|
168
|
+
AutofixCallbackStatus[AutofixCallbackStatus["NoChangesProduced"] = 2] = "NoChangesProduced";
|
|
169
|
+
/**
|
|
170
|
+
* The pipeline completed successfully and determined that the alert is a false positive, so no pull request was created.
|
|
171
|
+
*/
|
|
172
|
+
AutofixCallbackStatus[AutofixCallbackStatus["FalsePositive"] = 3] = "FalsePositive";
|
|
173
|
+
/**
|
|
174
|
+
* The target file referenced by the analysis could not be found.
|
|
175
|
+
*/
|
|
176
|
+
AutofixCallbackStatus[AutofixCallbackStatus["TargetFileNotFound"] = 4] = "TargetFileNotFound";
|
|
177
|
+
/**
|
|
178
|
+
* The push was rejected by the commit author email validation policy.
|
|
179
|
+
*/
|
|
180
|
+
AutofixCallbackStatus[AutofixCallbackStatus["CommitAuthorEmailValidationFailed"] = 5] = "CommitAuthorEmailValidationFailed";
|
|
125
181
|
})(AutofixCallbackStatus || (AutofixCallbackStatus = {}));
|
|
182
|
+
/**
|
|
183
|
+
* Indicates the reason an autofix request failed. Maps to TINYINT (nullable) in the database.
|
|
184
|
+
*/
|
|
185
|
+
export var AutofixRequestFailedReason;
|
|
186
|
+
(function (AutofixRequestFailedReason) {
|
|
187
|
+
/**
|
|
188
|
+
* Default sentinel value; not a valid failure reason.
|
|
189
|
+
*/
|
|
190
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["None"] = 0] = "None";
|
|
191
|
+
/**
|
|
192
|
+
* The autofix pipeline run completed with a failure status.
|
|
193
|
+
*/
|
|
194
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["PipelineFailed"] = 1] = "PipelineFailed";
|
|
195
|
+
/**
|
|
196
|
+
* The autofix pipeline did not complete within the allowed time window.
|
|
197
|
+
*/
|
|
198
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["PipelineTimedOut"] = 2] = "PipelineTimedOut";
|
|
199
|
+
/**
|
|
200
|
+
* The expected callback from the pipeline was never received.
|
|
201
|
+
*/
|
|
202
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["CallbackNotReceived"] = 3] = "CallbackNotReceived";
|
|
203
|
+
/**
|
|
204
|
+
* The processor job encountered an error.
|
|
205
|
+
*/
|
|
206
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["ProcessorJobFailed"] = 4] = "ProcessorJobFailed";
|
|
207
|
+
/**
|
|
208
|
+
* The pipeline completed successfully but produced no changes, so no pull request was created. A valid terminal outcome surfaced as a failure with this distinct reason.
|
|
209
|
+
*/
|
|
210
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["NoChanges"] = 5] = "NoChanges";
|
|
211
|
+
/**
|
|
212
|
+
* The target project's agent pool could not be found or has not been authorized for use, so the validation pipeline could not be queued. This is a user/configuration error.
|
|
213
|
+
*/
|
|
214
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["AgentPoolUnavailable"] = 6] = "AgentPoolUnavailable";
|
|
215
|
+
/**
|
|
216
|
+
* The alert ref cannot be resolved to an existing branch because the pull request or merge ref, source branch, or normal branch no longer exists.
|
|
217
|
+
*/
|
|
218
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["BranchNotResolvable"] = 7] = "BranchNotResolvable";
|
|
219
|
+
/**
|
|
220
|
+
* The pipeline completed successfully and determined that the alert is a false positive, so no pull request was created. This is a terminal non-PR result, not an operational pipeline failure.
|
|
221
|
+
*/
|
|
222
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["FalsePositive"] = 8] = "FalsePositive";
|
|
223
|
+
/**
|
|
224
|
+
* The target file referenced by the analysis could not be found.
|
|
225
|
+
*/
|
|
226
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["TargetFileNotFound"] = 9] = "TargetFileNotFound";
|
|
227
|
+
/**
|
|
228
|
+
* The push was rejected by the commit author email validation policy.
|
|
229
|
+
*/
|
|
230
|
+
AutofixRequestFailedReason[AutofixRequestFailedReason["CommitAuthorEmailValidationFailed"] = 10] = "CommitAuthorEmailValidationFailed";
|
|
231
|
+
})(AutofixRequestFailedReason || (AutofixRequestFailedReason = {}));
|
|
126
232
|
/**
|
|
127
233
|
* Indicates the lifecycle status of an autofix request. Maps to TINYINT in the database.
|
|
128
234
|
*/
|
|
@@ -244,6 +350,11 @@ export var DependencyKind;
|
|
|
244
350
|
*/
|
|
245
351
|
DependencyKind[DependencyKind["VulnerableDependency"] = 3] = "VulnerableDependency";
|
|
246
352
|
})(DependencyKind || (DependencyKind = {}));
|
|
353
|
+
export var DependencyScope;
|
|
354
|
+
(function (DependencyScope) {
|
|
355
|
+
DependencyScope[DependencyScope["Runtime"] = 0] = "Runtime";
|
|
356
|
+
DependencyScope[DependencyScope["Development"] = 1] = "Development";
|
|
357
|
+
})(DependencyScope || (DependencyScope = {}));
|
|
247
358
|
export var DismissalType;
|
|
248
359
|
(function (DismissalType) {
|
|
249
360
|
/**
|
|
@@ -285,6 +396,10 @@ export var ExpandOption;
|
|
|
285
396
|
* Return validationFingerprints in Alert.
|
|
286
397
|
*/
|
|
287
398
|
ExpandOption[ExpandOption["ValidationFingerprint"] = 1] = "ValidationFingerprint";
|
|
399
|
+
/**
|
|
400
|
+
* Return the AI metadata blob reference in Alert.
|
|
401
|
+
*/
|
|
402
|
+
ExpandOption[ExpandOption["AIMetadataBlobReference"] = 2] = "AIMetadataBlobReference";
|
|
288
403
|
})(ExpandOption || (ExpandOption = {}));
|
|
289
404
|
export var LicenseState;
|
|
290
405
|
(function (LicenseState) {
|
|
@@ -407,6 +522,14 @@ export var SarifJobStatus;
|
|
|
407
522
|
* The job is currently being processed in the concurrent processing workflow exclusive for no autofix flows
|
|
408
523
|
*/
|
|
409
524
|
SarifJobStatus[SarifJobStatus["ConcurrentProcessing"] = 5] = "ConcurrentProcessing";
|
|
525
|
+
/**
|
|
526
|
+
* The original AI SARIF has been superseded by a consolidated SARIF (AI alert consolidation experiment). Terminal status: the original is never processed for alerts and is never re-consolidated.
|
|
527
|
+
*/
|
|
528
|
+
SarifJobStatus[SarifJobStatus["Consolidated"] = 6] = "Consolidated";
|
|
529
|
+
/**
|
|
530
|
+
* An original AI SARIF awaiting consolidation (AI alert consolidation experiment). Excluded from normal alert processing; selected by the consolidation job, which moves it to Consolidated once it has launched the consolidation pipeline.
|
|
531
|
+
*/
|
|
532
|
+
SarifJobStatus[SarifJobStatus["WaitingConsolidation"] = 7] = "WaitingConsolidation";
|
|
410
533
|
})(SarifJobStatus || (SarifJobStatus = {}));
|
|
411
534
|
export var Severity;
|
|
412
535
|
(function (Severity) {
|
package/esm/Alert/Alert.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var AlertListExpandOption;!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal",e[e.Count=2]="Count"}(AlertListExpandOption||(AlertListExpandOption={}));export var AlertMetadataErrorPolicy;!function(e){e[e.Fail=1]="Fail",e[e.Omit=2]="Omit"}(AlertMetadataErrorPolicy||(AlertMetadataErrorPolicy={}));export var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode"}(AlertType||(AlertType={}));export var AlertValidationRequestStatus;!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(AlertValidationRequestStatus||(AlertValidationRequestStatus={}));export var AlertValidityStatus;!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(AlertValidityStatus||(AlertValidityStatus={}));export var AnalysisConfigurationType;!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(AnalysisConfigurationType||(AnalysisConfigurationType={}));export var AutofixCallbackStatus;!function(e){e[e.Done=0]="Done",e[e.Failed=1]="Failed"}(AutofixCallbackStatus||(AutofixCallbackStatus={}));export var AutofixRequestStatus;!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.PipelineRunning=2]="PipelineRunning",e[e.Done=3]="Done",e[e.Failed=4]="Failed"}(AutofixRequestStatus||(AutofixRequestStatus={}));export var ComponentType;!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(ComponentType||(ComponentType={}));export var Confidence;!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(Confidence||(Confidence={}));export var DependencyKind;!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(DependencyKind||(DependencyKind={}));export var DismissalType;!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(DismissalType||(DismissalType={}));export var ExpandOption;!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(ExpandOption||(ExpandOption={}));export var LicenseState;!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(LicenseState||(LicenseState={}));export var LicenseType;!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(LicenseType||(LicenseType={}));export var MetadataChangeType;!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(MetadataChangeType||(MetadataChangeType={}));export var MetadataOperation;!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(MetadataOperation||(MetadataOperation={}));export var ResultType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(ResultType||(ResultType={}));export var SarifJobStatus;!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued",e[e.ConcurrentProcessing=5]="ConcurrentProcessing"}(SarifJobStatus||(SarifJobStatus={}));export var Severity;!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(Severity||(Severity={}));export var State;!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed",e[e.Draft=16]="Draft"}(State||(State={}));export var ValidationResult;!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported",e[e.TransientError=5]="TransientError"}(ValidationResult||(ValidationResult={}));
|
|
1
|
+
export var AlertJobArtifactType;!function(e){e[e.Unknown=0]="Unknown",e[e.PullRequest=1]="PullRequest"}(AlertJobArtifactType||(AlertJobArtifactType={}));export var AlertJobType;!function(e){e[e.Unknown=0]="Unknown",e[e.WIMAutoPR=1]="WIMAutoPR",e[e.AIAlertConsolidation=2]="AIAlertConsolidation"}(AlertJobType||(AlertJobType={}));export var AlertListExpandOption;!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal",e[e.Count=2]="Count",e[e.AIMetadataBlobReference=3]="AIMetadataBlobReference"}(AlertListExpandOption||(AlertListExpandOption={}));export var AlertMetadataErrorPolicy;!function(e){e[e.Fail=1]="Fail",e[e.Omit=2]="Omit"}(AlertMetadataErrorPolicy||(AlertMetadataErrorPolicy={}));export var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode",e[e.Malware=6]="Malware"}(AlertType||(AlertType={}));export var AlertValidationRequestStatus;!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(AlertValidationRequestStatus||(AlertValidationRequestStatus={}));export var AlertValidityStatus;!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(AlertValidityStatus||(AlertValidityStatus={}));export var AnalysisConfigurationType;!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(AnalysisConfigurationType||(AnalysisConfigurationType={}));export var AutofixCallbackStatus;!function(e){e[e.Done=0]="Done",e[e.Failed=1]="Failed",e[e.NoChangesProduced=2]="NoChangesProduced",e[e.FalsePositive=3]="FalsePositive",e[e.TargetFileNotFound=4]="TargetFileNotFound",e[e.CommitAuthorEmailValidationFailed=5]="CommitAuthorEmailValidationFailed"}(AutofixCallbackStatus||(AutofixCallbackStatus={}));export var AutofixRequestFailedReason;!function(e){e[e.None=0]="None",e[e.PipelineFailed=1]="PipelineFailed",e[e.PipelineTimedOut=2]="PipelineTimedOut",e[e.CallbackNotReceived=3]="CallbackNotReceived",e[e.ProcessorJobFailed=4]="ProcessorJobFailed",e[e.NoChanges=5]="NoChanges",e[e.AgentPoolUnavailable=6]="AgentPoolUnavailable",e[e.BranchNotResolvable=7]="BranchNotResolvable",e[e.FalsePositive=8]="FalsePositive",e[e.TargetFileNotFound=9]="TargetFileNotFound",e[e.CommitAuthorEmailValidationFailed=10]="CommitAuthorEmailValidationFailed"}(AutofixRequestFailedReason||(AutofixRequestFailedReason={}));export var AutofixRequestStatus;!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.PipelineRunning=2]="PipelineRunning",e[e.Done=3]="Done",e[e.Failed=4]="Failed"}(AutofixRequestStatus||(AutofixRequestStatus={}));export var ComponentType;!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(ComponentType||(ComponentType={}));export var Confidence;!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(Confidence||(Confidence={}));export var DependencyKind;!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(DependencyKind||(DependencyKind={}));export var DependencyScope;!function(e){e[e.Runtime=0]="Runtime",e[e.Development=1]="Development"}(DependencyScope||(DependencyScope={}));export var DismissalType;!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(DismissalType||(DismissalType={}));export var ExpandOption;!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint",e[e.AIMetadataBlobReference=2]="AIMetadataBlobReference"}(ExpandOption||(ExpandOption={}));export var LicenseState;!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(LicenseState||(LicenseState={}));export var LicenseType;!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(LicenseType||(LicenseType={}));export var MetadataChangeType;!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(MetadataChangeType||(MetadataChangeType={}));export var MetadataOperation;!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(MetadataOperation||(MetadataOperation={}));export var ResultType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(ResultType||(ResultType={}));export var SarifJobStatus;!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued",e[e.ConcurrentProcessing=5]="ConcurrentProcessing",e[e.Consolidated=6]="Consolidated",e[e.WaitingConsolidation=7]="WaitingConsolidation"}(SarifJobStatus||(SarifJobStatus={}));export var Severity;!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(Severity||(Severity={}));export var State;!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed",e[e.Draft=16]="Draft"}(State||(State={}));export var ValidationResult;!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported",e[e.TransientError=5]="TransientError"}(ValidationResult||(ValidationResult={}));
|
package/esm/Alert/AlertClient.js
CHANGED
|
@@ -9,6 +9,24 @@ export class AlertRestClient extends RestClientBase {
|
|
|
9
9
|
constructor(options) {
|
|
10
10
|
super(options);
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Download the full AI metadata blob for an AI code alert.
|
|
14
|
+
*
|
|
15
|
+
* @param project - Project ID or project name
|
|
16
|
+
* @param alertId - ID of the alert whose AI metadata blob should be downloaded.
|
|
17
|
+
* @param repository - Name or id of the repository that the alert is part of.
|
|
18
|
+
*/
|
|
19
|
+
async getAiMetadataContent(project, alertId, repository) {
|
|
20
|
+
return this.beginRequest({
|
|
21
|
+
apiVersion: "7.2-preview.1",
|
|
22
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/aimetadata",
|
|
23
|
+
routeValues: {
|
|
24
|
+
project: project,
|
|
25
|
+
alertId: alertId,
|
|
26
|
+
repository: repository
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
12
30
|
/**
|
|
13
31
|
* @param submissionId -
|
|
14
32
|
*/
|
|
@@ -21,6 +39,36 @@ export class AlertRestClient extends RestClientBase {
|
|
|
21
39
|
}
|
|
22
40
|
});
|
|
23
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the alert jobs associated with an alert.
|
|
44
|
+
*
|
|
45
|
+
* @param project - Project ID or project name
|
|
46
|
+
* @param repository - The name or ID of the repository
|
|
47
|
+
* @param alertId - The ID of the alert
|
|
48
|
+
* @param top - The maximum number of jobs to return
|
|
49
|
+
* @param continuationToken - If there are more jobs than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of jobs
|
|
50
|
+
*/
|
|
51
|
+
async getJobsForAlert(project, repository, alertId, top, continuationToken) {
|
|
52
|
+
const queryValues = {
|
|
53
|
+
top: top,
|
|
54
|
+
continuationToken: continuationToken
|
|
55
|
+
};
|
|
56
|
+
return this.beginRequest({
|
|
57
|
+
apiVersion: "7.2-preview.1",
|
|
58
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/jobs",
|
|
59
|
+
routeValues: {
|
|
60
|
+
project: project,
|
|
61
|
+
repository: repository,
|
|
62
|
+
alertId: alertId
|
|
63
|
+
},
|
|
64
|
+
queryParams: queryValues,
|
|
65
|
+
returnRawResponse: true
|
|
66
|
+
}).then(async (response) => {
|
|
67
|
+
const body = await response.text().then(deserializeVssJsonObject);
|
|
68
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
69
|
+
return body;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
24
72
|
/**
|
|
25
73
|
* Get an alert.
|
|
26
74
|
*
|
|
@@ -169,6 +217,41 @@ export class AlertRestClient extends RestClientBase {
|
|
|
169
217
|
body: request
|
|
170
218
|
});
|
|
171
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Query alerts for a repository by metadata type linkage.
|
|
222
|
+
*
|
|
223
|
+
* @param criteria - Metadata type filters to limit the alerts returned
|
|
224
|
+
* @param project - Project ID or project name
|
|
225
|
+
* @param repository - The name or ID of the repository
|
|
226
|
+
* @param top - The maximum number of alerts to return
|
|
227
|
+
* @param orderBy - Must be "id" "firstSeen" "lastSeen" "fixedOn" or "severity" Defaults to "id"
|
|
228
|
+
* @param expand - Options to expand the response, e.g. returning alert counts instead of alerts
|
|
229
|
+
* @param continuationToken - If there are more alerts than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of alerts
|
|
230
|
+
*/
|
|
231
|
+
async queryAlerts(criteria, project, repository, top, orderBy, expand, continuationToken) {
|
|
232
|
+
const queryValues = {
|
|
233
|
+
top: top,
|
|
234
|
+
orderBy: orderBy,
|
|
235
|
+
expand: expand,
|
|
236
|
+
continuationToken: continuationToken
|
|
237
|
+
};
|
|
238
|
+
return this.beginRequest({
|
|
239
|
+
apiVersion: "7.2-preview.1",
|
|
240
|
+
method: "POST",
|
|
241
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alertsquery",
|
|
242
|
+
routeValues: {
|
|
243
|
+
project: project,
|
|
244
|
+
repository: repository
|
|
245
|
+
},
|
|
246
|
+
queryParams: queryValues,
|
|
247
|
+
body: criteria,
|
|
248
|
+
returnRawResponse: true
|
|
249
|
+
}).then(async (response) => {
|
|
250
|
+
const body = await response.text().then(deserializeVssJsonObject);
|
|
251
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
252
|
+
return body;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
172
255
|
/**
|
|
173
256
|
* Returns the branches for which analysis results were submitted.
|
|
174
257
|
*
|
|
@@ -220,42 +303,44 @@ export class AlertRestClient extends RestClientBase {
|
|
|
220
303
|
});
|
|
221
304
|
}
|
|
222
305
|
/**
|
|
223
|
-
*
|
|
306
|
+
* Create an autofix request for the specified alert.
|
|
224
307
|
*
|
|
225
|
-
* @param callbackRequest - The callback payload containing requestId, status, and optional pullRequestId.
|
|
226
308
|
* @param project - Project ID or project name
|
|
227
|
-
* @param repository - The name or ID of the repository.
|
|
228
309
|
* @param alertId - The ID of the alert to create an autofix for.
|
|
310
|
+
* @param repository - The name or ID of the repository.
|
|
311
|
+
* @param ref - The Git ref (e.g. refs/heads/feature/x) the autofix should target.
|
|
229
312
|
*/
|
|
230
|
-
async
|
|
313
|
+
async createAutofixRequest(project, alertId, repository, ref) {
|
|
314
|
+
const queryValues = {
|
|
315
|
+
ref: ref
|
|
316
|
+
};
|
|
231
317
|
return this.beginRequest({
|
|
232
318
|
apiVersion: "7.2-preview.1",
|
|
233
319
|
method: "POST",
|
|
234
320
|
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix/{action}",
|
|
235
321
|
routeValues: {
|
|
236
322
|
project: project,
|
|
237
|
-
repository: repository,
|
|
238
323
|
alertId: alertId,
|
|
239
|
-
|
|
324
|
+
repository: repository,
|
|
325
|
+
action: "Default"
|
|
240
326
|
},
|
|
241
|
-
|
|
327
|
+
queryParams: queryValues
|
|
242
328
|
});
|
|
243
329
|
}
|
|
244
330
|
/**
|
|
245
|
-
*
|
|
331
|
+
* Get all autofix requests for the specified alert.
|
|
246
332
|
*
|
|
247
333
|
* @param project - Project ID or project name
|
|
248
|
-
* @param alertId - The ID of the alert
|
|
334
|
+
* @param alertId - The ID of the alert.
|
|
249
335
|
* @param repository - The name or ID of the repository.
|
|
250
|
-
* @param ref -
|
|
336
|
+
* @param ref - The Git ref (e.g. refs/heads/feature/x) the autofix should target.
|
|
251
337
|
*/
|
|
252
|
-
async
|
|
338
|
+
async getAutofixRequestsByAlertId(project, alertId, repository, ref) {
|
|
253
339
|
const queryValues = {
|
|
254
340
|
ref: ref
|
|
255
341
|
};
|
|
256
342
|
return this.beginRequest({
|
|
257
343
|
apiVersion: "7.2-preview.1",
|
|
258
|
-
method: "POST",
|
|
259
344
|
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix/{action}",
|
|
260
345
|
routeValues: {
|
|
261
346
|
project: project,
|
|
@@ -267,27 +352,52 @@ export class AlertRestClient extends RestClientBase {
|
|
|
267
352
|
});
|
|
268
353
|
}
|
|
269
354
|
/**
|
|
270
|
-
*
|
|
355
|
+
* Receives a callback from the autofix pipeline with the outcome of the run. Idempotent: repeated calls for a request already in a terminal state return 200 without changes.
|
|
271
356
|
*
|
|
357
|
+
* @param callbackRequest - The callback payload containing requestId, status, and optional pullRequestId.
|
|
272
358
|
* @param project - Project ID or project name
|
|
273
|
-
* @param alertId - The ID of the alert.
|
|
274
359
|
* @param repository - The name or ID of the repository.
|
|
275
|
-
* @param ref - Optional Git ref (e.g. refs/heads/feature/x) the autofix should target. When omitted, the repository's default branch is used.
|
|
276
360
|
*/
|
|
277
|
-
async
|
|
361
|
+
async autofixCallback(callbackRequest, project, repository) {
|
|
362
|
+
return this.beginRequest({
|
|
363
|
+
apiVersion: "7.2-preview.1",
|
|
364
|
+
method: "POST",
|
|
365
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/autofix/callback",
|
|
366
|
+
routeValues: {
|
|
367
|
+
project: project,
|
|
368
|
+
repository: repository
|
|
369
|
+
},
|
|
370
|
+
body: callbackRequest
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Get Draft alerts for a repository.
|
|
375
|
+
*
|
|
376
|
+
* @param project - Project ID or project name
|
|
377
|
+
* @param repository - The name or ID of the repository
|
|
378
|
+
* @param top - The maximum number of alerts to return
|
|
379
|
+
* @param orderBy - Must be "id", "firstSeen", "lastSeen", "fixedOn", or "severity". Defaults to "id"
|
|
380
|
+
* @param continuationToken - If there are more alerts than can be returned, a continuation token is placed in the "x-ms-continuationtoken" header. Use that token here to get the next page of alerts
|
|
381
|
+
*/
|
|
382
|
+
async getDraftAlerts(project, repository, top, orderBy, continuationToken) {
|
|
278
383
|
const queryValues = {
|
|
279
|
-
|
|
384
|
+
top: top,
|
|
385
|
+
orderBy: orderBy,
|
|
386
|
+
continuationToken: continuationToken
|
|
280
387
|
};
|
|
281
388
|
return this.beginRequest({
|
|
282
389
|
apiVersion: "7.2-preview.1",
|
|
283
|
-
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/
|
|
390
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/draftAlerts",
|
|
284
391
|
routeValues: {
|
|
285
392
|
project: project,
|
|
286
|
-
|
|
287
|
-
repository: repository,
|
|
288
|
-
action: "Default"
|
|
393
|
+
repository: repository
|
|
289
394
|
},
|
|
290
|
-
queryParams: queryValues
|
|
395
|
+
queryParams: queryValues,
|
|
396
|
+
returnRawResponse: true
|
|
397
|
+
}).then(async (response) => {
|
|
398
|
+
const body = await response.text().then(deserializeVssJsonObject);
|
|
399
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
400
|
+
return body;
|
|
291
401
|
});
|
|
292
402
|
}
|
|
293
403
|
/**
|
|
@@ -339,6 +449,64 @@ export class AlertRestClient extends RestClientBase {
|
|
|
339
449
|
queryParams: queryValues
|
|
340
450
|
});
|
|
341
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Create an alert job.
|
|
454
|
+
*
|
|
455
|
+
* @param body -
|
|
456
|
+
* @param project - Project ID or project name
|
|
457
|
+
* @param repository - The name or ID of the repository
|
|
458
|
+
*/
|
|
459
|
+
async createJob(body, project, repository) {
|
|
460
|
+
return this.beginRequest({
|
|
461
|
+
apiVersion: "7.2-preview.1",
|
|
462
|
+
method: "POST",
|
|
463
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",
|
|
464
|
+
routeValues: {
|
|
465
|
+
project: project,
|
|
466
|
+
repository: repository
|
|
467
|
+
},
|
|
468
|
+
body: body
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Get an alert job by ID.
|
|
473
|
+
*
|
|
474
|
+
* @param project - Project ID or project name
|
|
475
|
+
* @param repository - The name or ID of the repository
|
|
476
|
+
* @param jobId - The provider-assigned job identifier
|
|
477
|
+
*/
|
|
478
|
+
async getJob(project, repository, jobId) {
|
|
479
|
+
return this.beginRequest({
|
|
480
|
+
apiVersion: "7.2-preview.1",
|
|
481
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",
|
|
482
|
+
routeValues: {
|
|
483
|
+
project: project,
|
|
484
|
+
repository: repository,
|
|
485
|
+
jobId: jobId
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Update an alert job.
|
|
491
|
+
*
|
|
492
|
+
* @param patch - The patch describing the fields to update
|
|
493
|
+
* @param project - Project ID or project name
|
|
494
|
+
* @param repository - The name or ID of the repository
|
|
495
|
+
* @param jobId - The provider-assigned job identifier
|
|
496
|
+
*/
|
|
497
|
+
async updateJob(patch, project, repository, jobId) {
|
|
498
|
+
return this.beginRequest({
|
|
499
|
+
apiVersion: "7.2-preview.1",
|
|
500
|
+
method: "PATCH",
|
|
501
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",
|
|
502
|
+
routeValues: {
|
|
503
|
+
project: project,
|
|
504
|
+
repository: repository,
|
|
505
|
+
jobId: jobId
|
|
506
|
+
},
|
|
507
|
+
body: patch
|
|
508
|
+
});
|
|
509
|
+
}
|
|
342
510
|
/**
|
|
343
511
|
* Create legal review. This creates the legal review associated with the alert. It include the review work item url.
|
|
344
512
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RestClientBase}from"../Common/RestClientBase";import{deserializeVssJsonObject}from"../Common/Util/Serialization";export class AlertRestClient extends RestClientBase{constructor(e){super(e)}async getSarifContent(e){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/sarifs/download/{submissionId}",routeValues:{submissionId:e}})}async
|
|
1
|
+
import{RestClientBase}from"../Common/RestClientBase";import{deserializeVssJsonObject}from"../Common/Util/Serialization";export class AlertRestClient extends RestClientBase{constructor(e){super(e)}async getAiMetadataContent(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/aimetadata",routeValues:{project:e,alertId:t,repository:r}})}async getSarifContent(e){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/sarifs/download/{submissionId}",routeValues:{submissionId:e}})}async getJobsForAlert(e,t,r,o,s){const i={top:o,continuationToken:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/jobs",routeValues:{project:e,repository:t,alertId:r},queryParams:i,returnRawResponse:!0}).then(async e=>{const t=await e.text().then(deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t})}async getAlert(e,t,r,o,s){const i={ref:o,expand:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:i})}async getAlerts(e,t,r,o,s,i,a){const p={top:r,orderBy:o,criteria:s,expand:i,continuationToken:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:p,returnRawResponse:!0}).then(async e=>{const t=await e.text().then(deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t})}async getAlertSarif(e,t,r,o,s){const i={ref:o,expand:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:i})}async updateAlert(e,t,r,o){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:o},body:e})}async getAlertsByIds(e,t,r,o){const s={includeSensitiveInformation:o};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/AlertsBatch",routeValues:{project:t,repository:r},queryParams:s,body:e})}async updateAlertsBatch(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/AlertsBatch",routeValues:{project:t,repository:r},body:e})}async queryAlerts(e,t,r,o,s,i,a){const p={top:o,orderBy:s,expand:i,continuationToken:a};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alertsquery",routeValues:{project:t,repository:r},queryParams:p,body:e,returnRawResponse:!0}).then(async e=>{const t=await e.text().then(deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t})}async getBranches(e,t,r,o,s,i,a){const p={alertType:r,continuationToken:o,branchNameContains:s,top:i,includePullRequestBranches:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:p})}async getUxFilters(e,t,r){const o={alertType:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})}async createAutofixRequest(e,t,r,o){const s={ref:o};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix/{action}",routeValues:{project:e,alertId:t,repository:r,action:"Default"},queryParams:s})}async getAutofixRequestsByAlertId(e,t,r,o){const s={ref:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Autofix/{action}",routeValues:{project:e,alertId:t,repository:r,action:"Default"},queryParams:s})}async autofixCallback(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/autofix/callback",routeValues:{project:t,repository:r},body:e})}async getDraftAlerts(e,t,r,o,s){const i={top:r,orderBy:o,continuationToken:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/draftAlerts",routeValues:{project:e,repository:t},queryParams:i,returnRawResponse:!0}).then(async e=>{const t=await e.text().then(deserializeVssJsonObject);return t.continuationToken=e.headers.get("x-ms-continuationtoken"),t})}async uploadSarifToGitHub(e,t,r,o,s){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/github/{hostname}/{owner}/{repo}/sarifs",routeValues:{project:t,hostname:r,owner:o,repo:s},customHeaders:{"Content-Type":"application/octet-stream"},body:e})}async getAlertInstances(e,t,r,o){const s={ref:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:s})}async createJob(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",routeValues:{project:t,repository:r},body:e})}async getJob(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",routeValues:{project:e,repository:t,jobId:r}})}async updateJob(e,t,r,o){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/jobs/{jobId}",routeValues:{project:t,repository:r,jobId:o},body:e})}async createLegalReview(e,t,r,o){const s={alertId:r,ref:o};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:s})}async updateAlertsMetadata(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})}async getAlertMetadata(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/metadata",routeValues:{project:e,alertId:t,repository:r}})}async getAlertMetadataBatch(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/MetadataBatch",routeValues:{project:t,repository:r},body:e})}async getOrgLevelAlertsByIds(e){const t={alertIds:e&&e.join(",")};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})}async deleteAllPipelineAnalyses(e,t){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalyses",routeValues:{project:e,repository:t}})}async deletePipelineAnalysis(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/pipelineAnalysis/{adoPipelineId}",routeValues:{project:e,repository:t,adoPipelineId:r}})}async exportSarif(e,t,r,o){const s={alertIds:r,branchName:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:e,repository:t},queryParams:s})}async uploadSarif(e,t,r,o){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:t,repository:r},customHeaders:{"Content-Type":"application/octet-stream","X-AdvSec-NotificationSarif":o},body:e})}async getSarif(e){return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})}async uploadOrgSarif(e){return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body:e})}async getValidityData(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})}async initiateValidation(e,t,r){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})}};
|
package/esm/Build/Build.js
CHANGED
|
@@ -38,6 +38,24 @@ export var BuildAuthorizationScope;
|
|
|
38
38
|
*/
|
|
39
39
|
BuildAuthorizationScope[BuildAuthorizationScope["Project"] = 2] = "Project";
|
|
40
40
|
})(BuildAuthorizationScope || (BuildAuthorizationScope = {}));
|
|
41
|
+
/**
|
|
42
|
+
* Priority tiers for a build definition. Sent as a raw Int16 so unknown tiers stay readable.
|
|
43
|
+
*/
|
|
44
|
+
export var BuildDefinitionPriority;
|
|
45
|
+
(function (BuildDefinitionPriority) {
|
|
46
|
+
/**
|
|
47
|
+
* Low priority. The runs of this pipeline provide no performance guarantees.
|
|
48
|
+
*/
|
|
49
|
+
BuildDefinitionPriority[BuildDefinitionPriority["Low"] = -64] = "Low";
|
|
50
|
+
/**
|
|
51
|
+
* Normal (default) priority.
|
|
52
|
+
*/
|
|
53
|
+
BuildDefinitionPriority[BuildDefinitionPriority["Normal"] = 0] = "Normal";
|
|
54
|
+
/**
|
|
55
|
+
* High priority. The runs of this pipeline will be favored for running.
|
|
56
|
+
*/
|
|
57
|
+
BuildDefinitionPriority[BuildDefinitionPriority["High"] = 64] = "High";
|
|
58
|
+
})(BuildDefinitionPriority || (BuildDefinitionPriority = {}));
|
|
41
59
|
export var BuildOptionInputType;
|
|
42
60
|
(function (BuildOptionInputType) {
|
|
43
61
|
BuildOptionInputType[BuildOptionInputType["String"] = 0] = "String";
|
package/esm/Build/Build.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var AgentStatus;!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(AgentStatus||(AgentStatus={}));export var AuditAction;!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(AuditAction||(AuditAction={}));export var BuildAuthorizationScope;!function(e){e[e.ProjectCollection=1]="ProjectCollection",e[e.Project=2]="Project"}(BuildAuthorizationScope||(BuildAuthorizationScope={}));export var BuildOptionInputType;!function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.StringList=2]="StringList",e[e.Radio=3]="Radio",e[e.PickList=4]="PickList",e[e.MultiLine=5]="MultiLine",e[e.BranchFilter=6]="BranchFilter"}(BuildOptionInputType||(BuildOptionInputType={}));export var BuildPhaseStatus;!function(e){e[e.Unknown=0]="Unknown",e[e.Failed=1]="Failed",e[e.Succeeded=2]="Succeeded"}(BuildPhaseStatus||(BuildPhaseStatus={}));export var BuildQueryOrder;!function(e){e[e.FinishTimeAscending=2]="FinishTimeAscending",e[e.FinishTimeDescending=3]="FinishTimeDescending",e[e.QueueTimeDescending=4]="QueueTimeDescending",e[e.QueueTimeAscending=5]="QueueTimeAscending",e[e.StartTimeDescending=6]="StartTimeDescending",e[e.StartTimeAscending=7]="StartTimeAscending"}(BuildQueryOrder||(BuildQueryOrder={}));export var BuildReason;!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.IndividualCI=2]="IndividualCI",e[e.BatchedCI=4]="BatchedCI",e[e.Schedule=8]="Schedule",e[e.ScheduleForced=16]="ScheduleForced",e[e.UserCreated=32]="UserCreated",e[e.ValidateShelveset=64]="ValidateShelveset",e[e.CheckInShelveset=128]="CheckInShelveset",e[e.PullRequest=256]="PullRequest",e[e.BuildCompletion=512]="BuildCompletion",e[e.ResourceTrigger=1024]="ResourceTrigger",e[e.Triggered=1967]="Triggered",e[e.All=2031]="All"}(BuildReason||(BuildReason={}));export var BuildResult;!function(e){e[e.None=0]="None",e[e.Succeeded=2]="Succeeded",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Failed=8]="Failed",e[e.Canceled=32]="Canceled"}(BuildResult||(BuildResult={}));export var BuildStatus;!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Postponed=8]="Postponed",e[e.Abandoned=16]="Abandoned",e[e.NotStarted=32]="NotStarted",e[e.All=63]="All"}(BuildStatus||(BuildStatus={}));export var CommentTriggerOption;!function(e){e[e.None=0]="None",e[e.NonTeamMembersNonContributor=1]="NonTeamMembersNonContributor",e[e.NonTeamMembers=2]="NonTeamMembers",e[e.All=3]="All"}(CommentTriggerOption||(CommentTriggerOption={}));export var ControllerStatus;!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(ControllerStatus||(ControllerStatus={}));export var DefinitionQuality;!function(e){e[e.Definition=1]="Definition",e[e.Draft=2]="Draft"}(DefinitionQuality||(DefinitionQuality={}));export var DefinitionQueryOrder;!function(e){e[e.None=0]="None",e[e.LastModifiedAscending=1]="LastModifiedAscending",e[e.LastModifiedDescending=2]="LastModifiedDescending",e[e.DefinitionNameAscending=3]="DefinitionNameAscending",e[e.DefinitionNameDescending=4]="DefinitionNameDescending"}(DefinitionQueryOrder||(DefinitionQueryOrder={}));export var DefinitionQueueStatus;!function(e){e[e.Enabled=0]="Enabled",e[e.Paused=1]="Paused",e[e.Disabled=2]="Disabled"}(DefinitionQueueStatus||(DefinitionQueueStatus={}));export var DefinitionTriggerType;!function(e){e[e.None=1]="None",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.BatchedContinuousIntegration=4]="BatchedContinuousIntegration",e[e.Schedule=8]="Schedule",e[e.GatedCheckIn=16]="GatedCheckIn",e[e.BatchedGatedCheckIn=32]="BatchedGatedCheckIn",e[e.PullRequest=64]="PullRequest",e[e.BuildCompletion=128]="BuildCompletion",e[e.All=255]="All"}(DefinitionTriggerType||(DefinitionTriggerType={}));export var DefinitionType;!function(e){e[e.Xaml=1]="Xaml",e[e.Build=2]="Build"}(DefinitionType||(DefinitionType={}));export var DeleteOptions;!function(e){e[e.None=0]="None",e[e.DropLocation=1]="DropLocation",e[e.TestResults=2]="TestResults",e[e.Label=4]="Label",e[e.Details=8]="Details",e[e.Symbols=16]="Symbols",e[e.All=31]="All"}(DeleteOptions||(DeleteOptions={}));export var FolderQueryOrder;!function(e){e[e.None=0]="None",e[e.FolderAscending=1]="FolderAscending",e[e.FolderDescending=2]="FolderDescending"}(FolderQueryOrder||(FolderQueryOrder={}));export var GetOption;!function(e){e[e.LatestOnQueue=0]="LatestOnQueue",e[e.LatestOnBuild=1]="LatestOnBuild",e[e.Custom=2]="Custom"}(GetOption||(GetOption={}));export var IssueType;!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(IssueType||(IssueType={}));export var ProcessTemplateType;!function(e){e[e.Custom=0]="Custom",e[e.Default=1]="Default",e[e.Upgrade=2]="Upgrade"}(ProcessTemplateType||(ProcessTemplateType={}));export var QueryDeletedOption;!function(e){e[e.ExcludeDeleted=0]="ExcludeDeleted",e[e.IncludeDeleted=1]="IncludeDeleted",e[e.OnlyDeleted=2]="OnlyDeleted"}(QueryDeletedOption||(QueryDeletedOption={}));export var QueueOptions;!function(e){e[e.None=0]="None",e[e.DoNotRun=1]="DoNotRun"}(QueueOptions||(QueueOptions={}));export var QueuePriority;!function(e){e[e.Low=5]="Low",e[e.BelowNormal=4]="BelowNormal",e[e.Normal=3]="Normal",e[e.AboveNormal=2]="AboveNormal",e[e.High=1]="High"}(QueuePriority||(QueuePriority={}));export var RepositoryCleanOptions;!function(e){e[e.Source=0]="Source",e[e.SourceAndOutputDir=1]="SourceAndOutputDir",e[e.SourceDir=2]="SourceDir",e[e.AllBuildDir=3]="AllBuildDir"}(RepositoryCleanOptions||(RepositoryCleanOptions={}));export var ResultSet;!function(e){e[e.All=0]="All",e[e.Top=1]="Top"}(ResultSet||(ResultSet={}));export var ScheduleDays;!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(ScheduleDays||(ScheduleDays={}));export var ServiceHostStatus;!function(e){e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(ServiceHostStatus||(ServiceHostStatus={}));export var SourceProviderAvailability;!function(e){e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises",e[e.All=3]="All"}(SourceProviderAvailability||(SourceProviderAvailability={}));export var StageUpdateType;!function(e){e[e.Cancel=0]="Cancel",e[e.Retry=1]="Retry",e[e.Run=2]="Run"}(StageUpdateType||(StageUpdateType={}));export var SupportLevel;!function(e){e[e.Unsupported=0]="Unsupported",e[e.Supported=1]="Supported",e[e.Required=2]="Required"}(SupportLevel||(SupportLevel={}));export var TaskResult;!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(TaskResult||(TaskResult={}));export var TimelineRecordState;!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(TimelineRecordState||(TimelineRecordState={}));export var ValidationResult;!function(e){e[e.OK=0]="OK",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(ValidationResult||(ValidationResult={}));export var WorkspaceMappingType;!function(e){e[e.Map=0]="Map",e[e.Cloak=1]="Cloak"}(WorkspaceMappingType||(WorkspaceMappingType={}));
|
|
1
|
+
export var AgentStatus;!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(AgentStatus||(AgentStatus={}));export var AuditAction;!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(AuditAction||(AuditAction={}));export var BuildAuthorizationScope;!function(e){e[e.ProjectCollection=1]="ProjectCollection",e[e.Project=2]="Project"}(BuildAuthorizationScope||(BuildAuthorizationScope={}));export var BuildDefinitionPriority;!function(e){e[e.Low=-64]="Low",e[e.Normal=0]="Normal",e[e.High=64]="High"}(BuildDefinitionPriority||(BuildDefinitionPriority={}));export var BuildOptionInputType;!function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.StringList=2]="StringList",e[e.Radio=3]="Radio",e[e.PickList=4]="PickList",e[e.MultiLine=5]="MultiLine",e[e.BranchFilter=6]="BranchFilter"}(BuildOptionInputType||(BuildOptionInputType={}));export var BuildPhaseStatus;!function(e){e[e.Unknown=0]="Unknown",e[e.Failed=1]="Failed",e[e.Succeeded=2]="Succeeded"}(BuildPhaseStatus||(BuildPhaseStatus={}));export var BuildQueryOrder;!function(e){e[e.FinishTimeAscending=2]="FinishTimeAscending",e[e.FinishTimeDescending=3]="FinishTimeDescending",e[e.QueueTimeDescending=4]="QueueTimeDescending",e[e.QueueTimeAscending=5]="QueueTimeAscending",e[e.StartTimeDescending=6]="StartTimeDescending",e[e.StartTimeAscending=7]="StartTimeAscending"}(BuildQueryOrder||(BuildQueryOrder={}));export var BuildReason;!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.IndividualCI=2]="IndividualCI",e[e.BatchedCI=4]="BatchedCI",e[e.Schedule=8]="Schedule",e[e.ScheduleForced=16]="ScheduleForced",e[e.UserCreated=32]="UserCreated",e[e.ValidateShelveset=64]="ValidateShelveset",e[e.CheckInShelveset=128]="CheckInShelveset",e[e.PullRequest=256]="PullRequest",e[e.BuildCompletion=512]="BuildCompletion",e[e.ResourceTrigger=1024]="ResourceTrigger",e[e.Triggered=1967]="Triggered",e[e.All=2031]="All"}(BuildReason||(BuildReason={}));export var BuildResult;!function(e){e[e.None=0]="None",e[e.Succeeded=2]="Succeeded",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Failed=8]="Failed",e[e.Canceled=32]="Canceled"}(BuildResult||(BuildResult={}));export var BuildStatus;!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Postponed=8]="Postponed",e[e.Abandoned=16]="Abandoned",e[e.NotStarted=32]="NotStarted",e[e.All=63]="All"}(BuildStatus||(BuildStatus={}));export var CommentTriggerOption;!function(e){e[e.None=0]="None",e[e.NonTeamMembersNonContributor=1]="NonTeamMembersNonContributor",e[e.NonTeamMembers=2]="NonTeamMembers",e[e.All=3]="All"}(CommentTriggerOption||(CommentTriggerOption={}));export var ControllerStatus;!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(ControllerStatus||(ControllerStatus={}));export var DefinitionQuality;!function(e){e[e.Definition=1]="Definition",e[e.Draft=2]="Draft"}(DefinitionQuality||(DefinitionQuality={}));export var DefinitionQueryOrder;!function(e){e[e.None=0]="None",e[e.LastModifiedAscending=1]="LastModifiedAscending",e[e.LastModifiedDescending=2]="LastModifiedDescending",e[e.DefinitionNameAscending=3]="DefinitionNameAscending",e[e.DefinitionNameDescending=4]="DefinitionNameDescending"}(DefinitionQueryOrder||(DefinitionQueryOrder={}));export var DefinitionQueueStatus;!function(e){e[e.Enabled=0]="Enabled",e[e.Paused=1]="Paused",e[e.Disabled=2]="Disabled"}(DefinitionQueueStatus||(DefinitionQueueStatus={}));export var DefinitionTriggerType;!function(e){e[e.None=1]="None",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.BatchedContinuousIntegration=4]="BatchedContinuousIntegration",e[e.Schedule=8]="Schedule",e[e.GatedCheckIn=16]="GatedCheckIn",e[e.BatchedGatedCheckIn=32]="BatchedGatedCheckIn",e[e.PullRequest=64]="PullRequest",e[e.BuildCompletion=128]="BuildCompletion",e[e.All=255]="All"}(DefinitionTriggerType||(DefinitionTriggerType={}));export var DefinitionType;!function(e){e[e.Xaml=1]="Xaml",e[e.Build=2]="Build"}(DefinitionType||(DefinitionType={}));export var DeleteOptions;!function(e){e[e.None=0]="None",e[e.DropLocation=1]="DropLocation",e[e.TestResults=2]="TestResults",e[e.Label=4]="Label",e[e.Details=8]="Details",e[e.Symbols=16]="Symbols",e[e.All=31]="All"}(DeleteOptions||(DeleteOptions={}));export var FolderQueryOrder;!function(e){e[e.None=0]="None",e[e.FolderAscending=1]="FolderAscending",e[e.FolderDescending=2]="FolderDescending"}(FolderQueryOrder||(FolderQueryOrder={}));export var GetOption;!function(e){e[e.LatestOnQueue=0]="LatestOnQueue",e[e.LatestOnBuild=1]="LatestOnBuild",e[e.Custom=2]="Custom"}(GetOption||(GetOption={}));export var IssueType;!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(IssueType||(IssueType={}));export var ProcessTemplateType;!function(e){e[e.Custom=0]="Custom",e[e.Default=1]="Default",e[e.Upgrade=2]="Upgrade"}(ProcessTemplateType||(ProcessTemplateType={}));export var QueryDeletedOption;!function(e){e[e.ExcludeDeleted=0]="ExcludeDeleted",e[e.IncludeDeleted=1]="IncludeDeleted",e[e.OnlyDeleted=2]="OnlyDeleted"}(QueryDeletedOption||(QueryDeletedOption={}));export var QueueOptions;!function(e){e[e.None=0]="None",e[e.DoNotRun=1]="DoNotRun"}(QueueOptions||(QueueOptions={}));export var QueuePriority;!function(e){e[e.Low=5]="Low",e[e.BelowNormal=4]="BelowNormal",e[e.Normal=3]="Normal",e[e.AboveNormal=2]="AboveNormal",e[e.High=1]="High"}(QueuePriority||(QueuePriority={}));export var RepositoryCleanOptions;!function(e){e[e.Source=0]="Source",e[e.SourceAndOutputDir=1]="SourceAndOutputDir",e[e.SourceDir=2]="SourceDir",e[e.AllBuildDir=3]="AllBuildDir"}(RepositoryCleanOptions||(RepositoryCleanOptions={}));export var ResultSet;!function(e){e[e.All=0]="All",e[e.Top=1]="Top"}(ResultSet||(ResultSet={}));export var ScheduleDays;!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(ScheduleDays||(ScheduleDays={}));export var ServiceHostStatus;!function(e){e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(ServiceHostStatus||(ServiceHostStatus={}));export var SourceProviderAvailability;!function(e){e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises",e[e.All=3]="All"}(SourceProviderAvailability||(SourceProviderAvailability={}));export var StageUpdateType;!function(e){e[e.Cancel=0]="Cancel",e[e.Retry=1]="Retry",e[e.Run=2]="Run"}(StageUpdateType||(StageUpdateType={}));export var SupportLevel;!function(e){e[e.Unsupported=0]="Unsupported",e[e.Supported=1]="Supported",e[e.Required=2]="Required"}(SupportLevel||(SupportLevel={}));export var TaskResult;!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(TaskResult||(TaskResult={}));export var TimelineRecordState;!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(TimelineRecordState||(TimelineRecordState={}));export var ValidationResult;!function(e){e[e.OK=0]="OK",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(ValidationResult||(ValidationResult={}));export var WorkspaceMappingType;!function(e){e[e.Map=0]="Map",e[e.Cloak=1]="Cloak"}(WorkspaceMappingType||(WorkspaceMappingType={}));
|