azure-devops-extension-api 4.266.0 → 4.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdvancedSecurity.Reporting/Reporting.d.ts +216 -0
- package/AdvancedSecurity.Reporting/Reporting.js +99 -0
- package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
- package/AdvancedSecurity.Reporting/ReportingClient.d.ts +31 -0
- package/AdvancedSecurity.Reporting/ReportingClient.js +104 -0
- package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
- package/Alert/Alert.d.ts +4 -0
- package/Git/Git.d.ts +24 -2
- package/Git/GitClient.d.ts +6 -0
- package/Git/GitClient.js +17 -0
- package/Git/GitClient.min.js +1 -1
- package/Management/Management.d.ts +13 -0
- package/Management/ManagementClient.d.ts +11 -0
- package/Management/ManagementClient.js +33 -0
- package/Management/ManagementClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +6 -0
- package/ServiceEndpoint/ServiceEndpointClient.js +17 -0
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +6 -1
- package/TaskAgent/TaskAgent.js +4 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/Test/Test.d.ts +4 -0
- package/_manifest/spdx_2.2/ESRPClientLogs0219180805019.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -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 +2302 -2302
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0126185807986.json +0 -1
|
@@ -1,3 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an advanced filter configuration for the Reporting dashboard.
|
|
3
|
+
*/
|
|
4
|
+
export interface AdvancedFilter extends AdvancedFilterCreate {
|
|
5
|
+
/**
|
|
6
|
+
* Link references to related REST resources.
|
|
7
|
+
*/
|
|
8
|
+
_links: any;
|
|
9
|
+
/**
|
|
10
|
+
* The identity of the user who last changed the advanced filter.
|
|
11
|
+
*/
|
|
12
|
+
changedBy: string;
|
|
13
|
+
/**
|
|
14
|
+
* The date and time when the advanced filter was last changed.
|
|
15
|
+
*/
|
|
16
|
+
changedDate: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The identity of the user who created the advanced filter.
|
|
19
|
+
*/
|
|
20
|
+
createdBy: string;
|
|
21
|
+
/**
|
|
22
|
+
* The date and time when the advanced filter was created.
|
|
23
|
+
*/
|
|
24
|
+
createdDate: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the advanced filter.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether the advanced filter has been soft-deleted.
|
|
31
|
+
*/
|
|
32
|
+
isDeleted: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The URL of the advanced filter.
|
|
35
|
+
*/
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents the data required to create an advanced filter configuration for the Reporting dashboard. Also serves as the base class for AdvancedFilter.
|
|
40
|
+
*/
|
|
41
|
+
export interface AdvancedFilterCreate {
|
|
42
|
+
/**
|
|
43
|
+
* The filter criteria to be applied when this advanced filter is selected.
|
|
44
|
+
*/
|
|
45
|
+
filterCriteria: CombinedAlertFilterCriteria;
|
|
46
|
+
/**
|
|
47
|
+
* User-provided name for the advanced filter.
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Represents the data required to update an advanced filter configuration. Only the name can be updated.
|
|
53
|
+
*/
|
|
54
|
+
export interface AdvancedFilterUpdate {
|
|
55
|
+
/**
|
|
56
|
+
* The new name for the advanced filter.
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
1
60
|
/**
|
|
2
61
|
* Alert Summary by severity.
|
|
3
62
|
*/
|
|
@@ -81,14 +140,141 @@ export declare enum AlertValidityStatus {
|
|
|
81
140
|
Inactive = 3
|
|
82
141
|
}
|
|
83
142
|
export interface CombinedAlertFilterCriteria {
|
|
143
|
+
/**
|
|
144
|
+
* If provided, only return alerts of the specified alert type.
|
|
145
|
+
*/
|
|
146
|
+
alertType: AlertType;
|
|
147
|
+
/**
|
|
148
|
+
* If provided, only return alerts with the specified validity status.
|
|
149
|
+
*/
|
|
150
|
+
alertValidityStatus: AlertValidityStatus;
|
|
151
|
+
/**
|
|
152
|
+
* If provided, only return dependency alerts for the specified package name.
|
|
153
|
+
*/
|
|
154
|
+
componentName: string;
|
|
155
|
+
/**
|
|
156
|
+
* If provided, only return dependency alerts for the specified ecosystem (e.g., NuGet, Npm, Maven).
|
|
157
|
+
*/
|
|
158
|
+
componentType: ComponentType;
|
|
159
|
+
/**
|
|
160
|
+
* If provided, only return alerts with the specified dismissal type (closure reason). Applicable only when filtering for closed/dismissed alerts.
|
|
161
|
+
*/
|
|
162
|
+
dismissalTypes: DismissalType[];
|
|
163
|
+
/**
|
|
164
|
+
* If provided, only return alerts fixed on or before this date.
|
|
165
|
+
*/
|
|
166
|
+
fixedDateEnd: Date;
|
|
167
|
+
/**
|
|
168
|
+
* If provided, only return alerts fixed on or after this date.
|
|
169
|
+
*/
|
|
170
|
+
fixedDateStart: Date;
|
|
171
|
+
/**
|
|
172
|
+
* If provided, only return alerts introduced on or before this date.
|
|
173
|
+
*/
|
|
174
|
+
introducedDateEnd: Date;
|
|
175
|
+
/**
|
|
176
|
+
* If provided, only return alerts introduced on or after this date.
|
|
177
|
+
*/
|
|
178
|
+
introducedDateStart: Date;
|
|
84
179
|
/**
|
|
85
180
|
* If provided, only return alerts whose titles match this pattern.
|
|
86
181
|
*/
|
|
87
182
|
keywords: string;
|
|
183
|
+
/**
|
|
184
|
+
* If provided, only return alerts for projects whose names are in this list.
|
|
185
|
+
*/
|
|
186
|
+
projects: string[];
|
|
187
|
+
/**
|
|
188
|
+
* If provided, only return alerts for repositories whose names are in this list.
|
|
189
|
+
*/
|
|
190
|
+
repositories: string[];
|
|
191
|
+
/**
|
|
192
|
+
* If provided, only return code scanning alerts or secret alerts matching the specified rule name.
|
|
193
|
+
*/
|
|
194
|
+
ruleName: string;
|
|
195
|
+
/**
|
|
196
|
+
* If provided, only return secret alerts matching the specified secret type (rule friendly name or opaque ID).
|
|
197
|
+
*/
|
|
198
|
+
secretType: string;
|
|
199
|
+
/**
|
|
200
|
+
* If provided, only return alerts with the specified severities. Otherwise, return alerts at any severity.
|
|
201
|
+
*/
|
|
202
|
+
severities: Severity[];
|
|
88
203
|
/**
|
|
89
204
|
* If provided, return alerts that are active or inactive based on this value. \<br /\>Otherwise, return alerts in any state.
|
|
90
205
|
*/
|
|
91
206
|
state: DashboardAlertState;
|
|
207
|
+
/**
|
|
208
|
+
* If provided, only return code scanning alerts detected by the specified tool.
|
|
209
|
+
*/
|
|
210
|
+
toolName: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* This enum defines the dependency components.
|
|
214
|
+
*/
|
|
215
|
+
export declare enum ComponentType {
|
|
216
|
+
Unknown = 0,
|
|
217
|
+
NuGet = 1,
|
|
218
|
+
/**
|
|
219
|
+
* Indicates the component is an Npm package.
|
|
220
|
+
*/
|
|
221
|
+
Npm = 2,
|
|
222
|
+
/**
|
|
223
|
+
* Indicates the component is a Maven artifact.
|
|
224
|
+
*/
|
|
225
|
+
Maven = 3,
|
|
226
|
+
/**
|
|
227
|
+
* Indicates the component is a Git repository.
|
|
228
|
+
*/
|
|
229
|
+
Git = 4,
|
|
230
|
+
/**
|
|
231
|
+
* Indicates the component is not any of the supported component types by Governance.
|
|
232
|
+
*/
|
|
233
|
+
Other = 5,
|
|
234
|
+
/**
|
|
235
|
+
* Indicates the component is a Ruby gem.
|
|
236
|
+
*/
|
|
237
|
+
RubyGems = 6,
|
|
238
|
+
/**
|
|
239
|
+
* Indicates the component is a Cargo package.
|
|
240
|
+
*/
|
|
241
|
+
Cargo = 7,
|
|
242
|
+
/**
|
|
243
|
+
* Indicates the component is a Pip package.
|
|
244
|
+
*/
|
|
245
|
+
Pip = 8,
|
|
246
|
+
/**
|
|
247
|
+
* Indicates the component is a loose file. Not a package as understood by different package managers.
|
|
248
|
+
*/
|
|
249
|
+
File = 9,
|
|
250
|
+
/**
|
|
251
|
+
* Indicates the component is a Go package.
|
|
252
|
+
*/
|
|
253
|
+
Go = 10,
|
|
254
|
+
/**
|
|
255
|
+
* Indicates the component is a Docker Image
|
|
256
|
+
*/
|
|
257
|
+
DockerImage = 11,
|
|
258
|
+
/**
|
|
259
|
+
* Indicates the component is a CocoaPods pod.
|
|
260
|
+
*/
|
|
261
|
+
Pod = 12,
|
|
262
|
+
/**
|
|
263
|
+
* Indicates the component is found in a linux environment. A package understood by linux based package managers like apt and rpm.
|
|
264
|
+
*/
|
|
265
|
+
Linux = 13,
|
|
266
|
+
/**
|
|
267
|
+
* Indicates the component is a Conda package.
|
|
268
|
+
*/
|
|
269
|
+
Conda = 14,
|
|
270
|
+
/**
|
|
271
|
+
* Indicates the component is a Docker Reference.
|
|
272
|
+
*/
|
|
273
|
+
DockerReference = 15,
|
|
274
|
+
/**
|
|
275
|
+
* Indicates the component is a Vcpkg Package.
|
|
276
|
+
*/
|
|
277
|
+
Vcpkg = 16
|
|
92
278
|
}
|
|
93
279
|
/**
|
|
94
280
|
* An alert entity used in the dashboard for combined alerts.
|
|
@@ -163,6 +349,36 @@ export declare enum DashboardAlertState {
|
|
|
163
349
|
*/
|
|
164
350
|
Closed = 1
|
|
165
351
|
}
|
|
352
|
+
export declare enum DismissalType {
|
|
353
|
+
/**
|
|
354
|
+
* Dismissal type unknown
|
|
355
|
+
*/
|
|
356
|
+
Unknown = 0,
|
|
357
|
+
/**
|
|
358
|
+
* Dismissal indicating alert has been fixed
|
|
359
|
+
*/
|
|
360
|
+
Fixed = 1,
|
|
361
|
+
/**
|
|
362
|
+
* Dismissal indicating user is accepting a risk for the alert
|
|
363
|
+
*/
|
|
364
|
+
AcceptedRisk = 2,
|
|
365
|
+
/**
|
|
366
|
+
* Dismissal indicating alert is a false positive and will likely not be fixed.
|
|
367
|
+
*/
|
|
368
|
+
FalsePositive = 3,
|
|
369
|
+
/**
|
|
370
|
+
* Dismissal indicating user is agreeing to follow license guidance.
|
|
371
|
+
*/
|
|
372
|
+
AgreedToGuidance = 4,
|
|
373
|
+
/**
|
|
374
|
+
* Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
|
|
375
|
+
*/
|
|
376
|
+
ToolUpgrade = 5,
|
|
377
|
+
/**
|
|
378
|
+
* Dismissal indicating the affected dependencency is not distributed to end users.
|
|
379
|
+
*/
|
|
380
|
+
NotDistributed = 6
|
|
381
|
+
}
|
|
166
382
|
export interface EnablementFilterCriteria {
|
|
167
383
|
/**
|
|
168
384
|
* If provided, only return repos whose titles match this pattern.
|
|
@@ -48,6 +48,74 @@ define(["require", "exports"], function (require, exports) {
|
|
|
48
48
|
*/
|
|
49
49
|
AlertValidityStatus[AlertValidityStatus["Inactive"] = 3] = "Inactive";
|
|
50
50
|
})(AlertValidityStatus = exports.AlertValidityStatus || (exports.AlertValidityStatus = {}));
|
|
51
|
+
/**
|
|
52
|
+
* This enum defines the dependency components.
|
|
53
|
+
*/
|
|
54
|
+
var ComponentType;
|
|
55
|
+
(function (ComponentType) {
|
|
56
|
+
ComponentType[ComponentType["Unknown"] = 0] = "Unknown";
|
|
57
|
+
ComponentType[ComponentType["NuGet"] = 1] = "NuGet";
|
|
58
|
+
/**
|
|
59
|
+
* Indicates the component is an Npm package.
|
|
60
|
+
*/
|
|
61
|
+
ComponentType[ComponentType["Npm"] = 2] = "Npm";
|
|
62
|
+
/**
|
|
63
|
+
* Indicates the component is a Maven artifact.
|
|
64
|
+
*/
|
|
65
|
+
ComponentType[ComponentType["Maven"] = 3] = "Maven";
|
|
66
|
+
/**
|
|
67
|
+
* Indicates the component is a Git repository.
|
|
68
|
+
*/
|
|
69
|
+
ComponentType[ComponentType["Git"] = 4] = "Git";
|
|
70
|
+
/**
|
|
71
|
+
* Indicates the component is not any of the supported component types by Governance.
|
|
72
|
+
*/
|
|
73
|
+
ComponentType[ComponentType["Other"] = 5] = "Other";
|
|
74
|
+
/**
|
|
75
|
+
* Indicates the component is a Ruby gem.
|
|
76
|
+
*/
|
|
77
|
+
ComponentType[ComponentType["RubyGems"] = 6] = "RubyGems";
|
|
78
|
+
/**
|
|
79
|
+
* Indicates the component is a Cargo package.
|
|
80
|
+
*/
|
|
81
|
+
ComponentType[ComponentType["Cargo"] = 7] = "Cargo";
|
|
82
|
+
/**
|
|
83
|
+
* Indicates the component is a Pip package.
|
|
84
|
+
*/
|
|
85
|
+
ComponentType[ComponentType["Pip"] = 8] = "Pip";
|
|
86
|
+
/**
|
|
87
|
+
* Indicates the component is a loose file. Not a package as understood by different package managers.
|
|
88
|
+
*/
|
|
89
|
+
ComponentType[ComponentType["File"] = 9] = "File";
|
|
90
|
+
/**
|
|
91
|
+
* Indicates the component is a Go package.
|
|
92
|
+
*/
|
|
93
|
+
ComponentType[ComponentType["Go"] = 10] = "Go";
|
|
94
|
+
/**
|
|
95
|
+
* Indicates the component is a Docker Image
|
|
96
|
+
*/
|
|
97
|
+
ComponentType[ComponentType["DockerImage"] = 11] = "DockerImage";
|
|
98
|
+
/**
|
|
99
|
+
* Indicates the component is a CocoaPods pod.
|
|
100
|
+
*/
|
|
101
|
+
ComponentType[ComponentType["Pod"] = 12] = "Pod";
|
|
102
|
+
/**
|
|
103
|
+
* Indicates the component is found in a linux environment. A package understood by linux based package managers like apt and rpm.
|
|
104
|
+
*/
|
|
105
|
+
ComponentType[ComponentType["Linux"] = 13] = "Linux";
|
|
106
|
+
/**
|
|
107
|
+
* Indicates the component is a Conda package.
|
|
108
|
+
*/
|
|
109
|
+
ComponentType[ComponentType["Conda"] = 14] = "Conda";
|
|
110
|
+
/**
|
|
111
|
+
* Indicates the component is a Docker Reference.
|
|
112
|
+
*/
|
|
113
|
+
ComponentType[ComponentType["DockerReference"] = 15] = "DockerReference";
|
|
114
|
+
/**
|
|
115
|
+
* Indicates the component is a Vcpkg Package.
|
|
116
|
+
*/
|
|
117
|
+
ComponentType[ComponentType["Vcpkg"] = 16] = "Vcpkg";
|
|
118
|
+
})(ComponentType = exports.ComponentType || (exports.ComponentType = {}));
|
|
51
119
|
var DashboardAlertState;
|
|
52
120
|
(function (DashboardAlertState) {
|
|
53
121
|
/**
|
|
@@ -59,6 +127,37 @@ define(["require", "exports"], function (require, exports) {
|
|
|
59
127
|
*/
|
|
60
128
|
DashboardAlertState[DashboardAlertState["Closed"] = 1] = "Closed";
|
|
61
129
|
})(DashboardAlertState = exports.DashboardAlertState || (exports.DashboardAlertState = {}));
|
|
130
|
+
var DismissalType;
|
|
131
|
+
(function (DismissalType) {
|
|
132
|
+
/**
|
|
133
|
+
* Dismissal type unknown
|
|
134
|
+
*/
|
|
135
|
+
DismissalType[DismissalType["Unknown"] = 0] = "Unknown";
|
|
136
|
+
/**
|
|
137
|
+
* Dismissal indicating alert has been fixed
|
|
138
|
+
*/
|
|
139
|
+
DismissalType[DismissalType["Fixed"] = 1] = "Fixed";
|
|
140
|
+
/**
|
|
141
|
+
* Dismissal indicating user is accepting a risk for the alert
|
|
142
|
+
*/
|
|
143
|
+
DismissalType[DismissalType["AcceptedRisk"] = 2] = "AcceptedRisk";
|
|
144
|
+
/**
|
|
145
|
+
* Dismissal indicating alert is a false positive and will likely not be fixed.
|
|
146
|
+
*/
|
|
147
|
+
DismissalType[DismissalType["FalsePositive"] = 3] = "FalsePositive";
|
|
148
|
+
/**
|
|
149
|
+
* Dismissal indicating user is agreeing to follow license guidance.
|
|
150
|
+
*/
|
|
151
|
+
DismissalType[DismissalType["AgreedToGuidance"] = 4] = "AgreedToGuidance";
|
|
152
|
+
/**
|
|
153
|
+
* Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
|
|
154
|
+
*/
|
|
155
|
+
DismissalType[DismissalType["ToolUpgrade"] = 5] = "ToolUpgrade";
|
|
156
|
+
/**
|
|
157
|
+
* Dismissal indicating the affected dependencency is not distributed to end users.
|
|
158
|
+
*/
|
|
159
|
+
DismissalType[DismissalType["NotDistributed"] = 6] = "NotDistributed";
|
|
160
|
+
})(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
|
|
62
161
|
var Severity;
|
|
63
162
|
(function (Severity) {
|
|
64
163
|
Severity[Severity["Low"] = 0] = "Low";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!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"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(n.DashboardAlertState||(n.DashboardAlertState={}));!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"}(n.Severity||(n.Severity={}));!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"}(n.State||(n.State={}));!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"}(n.TimePeriod||(n.TimePeriod={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!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"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!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"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(n.DashboardAlertState||(n.DashboardAlertState={}));!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"}(n.DismissalType||(n.DismissalType={}));!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"}(n.Severity||(n.Severity={}));!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"}(n.State||(n.State={}));!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"}(n.TimePeriod||(n.TimePeriod={}))});
|
|
@@ -4,6 +4,37 @@ import * as Reporting from "../AdvancedSecurity.Reporting/Reporting";
|
|
|
4
4
|
import * as WebApi from "../WebApi/WebApi";
|
|
5
5
|
export declare class ReportingRestClient extends RestClientBase {
|
|
6
6
|
constructor(options: IVssRestClientOptions);
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new advanced filter for the organization.
|
|
9
|
+
*
|
|
10
|
+
* @param filter - The advanced filter to create.
|
|
11
|
+
*/
|
|
12
|
+
createAdvancedFilter(filter: Reporting.AdvancedFilterCreate): Promise<Reporting.AdvancedFilter>;
|
|
13
|
+
/**
|
|
14
|
+
* Deletes an advanced filter.
|
|
15
|
+
*
|
|
16
|
+
* @param filterId - The ID of the advanced filter to delete.
|
|
17
|
+
*/
|
|
18
|
+
deleteAdvancedFilter(filterId: string): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets a specific advanced filter by its ID.
|
|
21
|
+
*
|
|
22
|
+
* @param filterId - The ID of the advanced filter to retrieve.
|
|
23
|
+
*/
|
|
24
|
+
getAdvancedFilter(filterId: string): Promise<Reporting.AdvancedFilter>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets all advanced filters for the organization.
|
|
27
|
+
*
|
|
28
|
+
* @param includeDeleted - Whether to include soft-deleted filters.
|
|
29
|
+
*/
|
|
30
|
+
listAdvancedFilters(includeDeleted?: boolean): Promise<Reporting.AdvancedFilter[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates an advanced filter. Only the name can be updated.
|
|
33
|
+
*
|
|
34
|
+
* @param filter - The update data containing the new name.
|
|
35
|
+
* @param filterId - The ID of the advanced filter to update.
|
|
36
|
+
*/
|
|
37
|
+
updateAdvancedFilter(filter: Reporting.AdvancedFilterUpdate, filterId: string): Promise<void>;
|
|
7
38
|
/**
|
|
8
39
|
*/
|
|
9
40
|
getUXComputedFilters(): Promise<Reporting.ReportingUXComputedFilters>;
|
|
@@ -56,6 +56,110 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
56
56
|
function ReportingRestClient(options) {
|
|
57
57
|
return _super.call(this, options) || this;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates a new advanced filter for the organization.
|
|
61
|
+
*
|
|
62
|
+
* @param filter - The advanced filter to create.
|
|
63
|
+
*/
|
|
64
|
+
ReportingRestClient.prototype.createAdvancedFilter = function (filter) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
+
return __generator(this, function (_a) {
|
|
67
|
+
return [2 /*return*/, this.beginRequest({
|
|
68
|
+
apiVersion: "7.2-preview.1",
|
|
69
|
+
method: "POST",
|
|
70
|
+
routeTemplate: "_apis/Reporting/filtersSettings/{action}/{filterId}",
|
|
71
|
+
routeValues: {
|
|
72
|
+
action: "AlertsBatch"
|
|
73
|
+
},
|
|
74
|
+
body: filter
|
|
75
|
+
})];
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Deletes an advanced filter.
|
|
81
|
+
*
|
|
82
|
+
* @param filterId - The ID of the advanced filter to delete.
|
|
83
|
+
*/
|
|
84
|
+
ReportingRestClient.prototype.deleteAdvancedFilter = function (filterId) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
return __generator(this, function (_a) {
|
|
87
|
+
return [2 /*return*/, this.beginRequest({
|
|
88
|
+
apiVersion: "7.2-preview.1",
|
|
89
|
+
method: "DELETE",
|
|
90
|
+
routeTemplate: "_apis/Reporting/filtersSettings/{action}/{filterId}",
|
|
91
|
+
routeValues: {
|
|
92
|
+
filterId: filterId,
|
|
93
|
+
action: "AlertsBatch"
|
|
94
|
+
}
|
|
95
|
+
})];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Gets a specific advanced filter by its ID.
|
|
101
|
+
*
|
|
102
|
+
* @param filterId - The ID of the advanced filter to retrieve.
|
|
103
|
+
*/
|
|
104
|
+
ReportingRestClient.prototype.getAdvancedFilter = function (filterId) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
return [2 /*return*/, this.beginRequest({
|
|
108
|
+
apiVersion: "7.2-preview.1",
|
|
109
|
+
routeTemplate: "_apis/Reporting/filtersSettings/{action}/{filterId}",
|
|
110
|
+
routeValues: {
|
|
111
|
+
filterId: filterId,
|
|
112
|
+
action: "AlertsBatch"
|
|
113
|
+
}
|
|
114
|
+
})];
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Gets all advanced filters for the organization.
|
|
120
|
+
*
|
|
121
|
+
* @param includeDeleted - Whether to include soft-deleted filters.
|
|
122
|
+
*/
|
|
123
|
+
ReportingRestClient.prototype.listAdvancedFilters = function (includeDeleted) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
+
var queryValues;
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
queryValues = {
|
|
128
|
+
includeDeleted: includeDeleted
|
|
129
|
+
};
|
|
130
|
+
return [2 /*return*/, this.beginRequest({
|
|
131
|
+
apiVersion: "7.2-preview.1",
|
|
132
|
+
routeTemplate: "_apis/Reporting/filtersSettings/{action}/{filterId}",
|
|
133
|
+
routeValues: {
|
|
134
|
+
action: "AlertsBatch"
|
|
135
|
+
},
|
|
136
|
+
queryParams: queryValues
|
|
137
|
+
})];
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Updates an advanced filter. Only the name can be updated.
|
|
143
|
+
*
|
|
144
|
+
* @param filter - The update data containing the new name.
|
|
145
|
+
* @param filterId - The ID of the advanced filter to update.
|
|
146
|
+
*/
|
|
147
|
+
ReportingRestClient.prototype.updateAdvancedFilter = function (filter, filterId) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
149
|
+
return __generator(this, function (_a) {
|
|
150
|
+
return [2 /*return*/, this.beginRequest({
|
|
151
|
+
apiVersion: "7.2-preview.1",
|
|
152
|
+
method: "PATCH",
|
|
153
|
+
routeTemplate: "_apis/Reporting/filtersSettings/{action}/{filterId}",
|
|
154
|
+
routeValues: {
|
|
155
|
+
filterId: filterId,
|
|
156
|
+
action: "AlertsBatch"
|
|
157
|
+
},
|
|
158
|
+
body: filter
|
|
159
|
+
})];
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
};
|
|
59
163
|
/**
|
|
60
164
|
*/
|
|
61
165
|
ReportingRestClient.prototype.getUXComputedFilters = function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){t.done?i(t.value):new r(function(e){e(t.value)}).then(a,u)}s((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(t,e,r,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.createAdvancedFilter=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Reporting/filtersSettings/{action}/{filterId}",routeValues:{action:"AlertsBatch"},body:t})]})})},e.prototype.deleteAdvancedFilter=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/Reporting/filtersSettings/{action}/{filterId}",routeValues:{filterId:t,action:"AlertsBatch"}})]})})},e.prototype.getAdvancedFilter=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/filtersSettings/{action}/{filterId}",routeValues:{filterId:t,action:"AlertsBatch"}})]})})},e.prototype.listAdvancedFilters=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={includeDeleted:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/filtersSettings/{action}/{filterId}",routeValues:{action:"AlertsBatch"},queryParams:e})]})})},e.prototype.updateAdvancedFilter=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/Reporting/filtersSettings/{action}/{filterId}",routeValues:{filterId:e,action:"AlertsBatch"},body:t})]})})},e.prototype.getUXComputedFilters=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/filters/{action}",routeValues:{action:"Default"}})]})})},e.prototype.getAlertSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"},queryParams:e})]})})},e.prototype.getCombinedAlertsForOrg=function(t,e,r){return __awaiter(this,void 0,void 0,function(){var i,o=this;return __generator(this,function(a){return i={criteria:t,top:e,continuationToken:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"AlertsBatch"},queryParams:i,returnRawResponse:!0}).then(function(t){return __awaiter(o,void 0,void 0,function(){var e;return __generator(this,function(r){switch(r.label){case 0:return[4,t.text().then(n.deserializeVssJsonObject)];case 1:return e=r.sent(),e.continuationToken=t.headers.get("x-ms-continuationtoken"),[2,e]}})})})]})})},e.prototype.getEnablementSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Enablement"},queryParams:e})]})})},e}(r.RestClientBase);e.ReportingRestClient=i});
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -756,6 +756,10 @@ export interface PhysicalLocation {
|
|
|
756
756
|
* Path of the file where the issue was found
|
|
757
757
|
*/
|
|
758
758
|
filePath: string;
|
|
759
|
+
/**
|
|
760
|
+
* Indicates whether the path is a valid Git path that exists in the git repository associated with the alert.
|
|
761
|
+
*/
|
|
762
|
+
isValidGitPath: boolean;
|
|
759
763
|
/**
|
|
760
764
|
* Details about the location where the issue was found including a snippet
|
|
761
765
|
*/
|
package/Git/Git.d.ts
CHANGED
|
@@ -630,6 +630,28 @@ export interface FileDiffsCriteria {
|
|
|
630
630
|
*/
|
|
631
631
|
targetVersionCommit: string;
|
|
632
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Request to get accessible repositories based on permission.
|
|
635
|
+
*/
|
|
636
|
+
export interface GetAccessibleRepositoriesRequest {
|
|
637
|
+
/**
|
|
638
|
+
* Permission being requested, must be "viewAlert" "dismissAlert" "manage" "viewEnablement" "repoRead" or "repoContribute"
|
|
639
|
+
*/
|
|
640
|
+
permission: string;
|
|
641
|
+
/**
|
|
642
|
+
* List of repository IDs to check permissions for
|
|
643
|
+
*/
|
|
644
|
+
repositoryIds: string[];
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Response containing accessible repository IDs.
|
|
648
|
+
*/
|
|
649
|
+
export interface GetAccessibleRepositoriesResponse {
|
|
650
|
+
/**
|
|
651
|
+
* List of repository IDs where the user has the requested permission
|
|
652
|
+
*/
|
|
653
|
+
accessibleRepositoryIds: string[];
|
|
654
|
+
}
|
|
633
655
|
/**
|
|
634
656
|
* A Git annotated tag.
|
|
635
657
|
*/
|
|
@@ -1807,11 +1829,11 @@ export interface GitPullRequestCompletionOptions {
|
|
|
1807
1829
|
*/
|
|
1808
1830
|
mergeCommitMessage: string;
|
|
1809
1831
|
/**
|
|
1810
|
-
* Specify the strategy used to merge the pull request during completion. If MergeStrategy is not set to any value,
|
|
1832
|
+
* Specify the strategy used to merge the pull request during completion. If MergeStrategy is not set to any value, the service selects the first merge strategy not prohibited by the target branch’s policy. If the limit merge type policy is not configured, the default is noFastForward unless the deprecated SquashMerge is true, in which case the default is squash. If an explicit value is provided for MergeStrategy, the SquashMerge property will be ignored.
|
|
1811
1833
|
*/
|
|
1812
1834
|
mergeStrategy: GitPullRequestMergeStrategy;
|
|
1813
1835
|
/**
|
|
1814
|
-
* SquashMerge is deprecated. You should explicitly set the value of MergeStrategy.
|
|
1836
|
+
* SquashMerge is deprecated. You should explicitly set the value of MergeStrategy. This flag is only used when MergeStrategy is not specified and the target branch has no merge-strategy policy configured. In all other cases it is ignored.
|
|
1815
1837
|
*/
|
|
1816
1838
|
squashMerge: boolean;
|
|
1817
1839
|
/**
|
package/Git/GitClient.d.ts
CHANGED
|
@@ -72,6 +72,12 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
72
72
|
* @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" "manage" "viewEnablement" or "repoRead"
|
|
73
73
|
*/
|
|
74
74
|
getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* POST request to get accessible repositories based on permission (batch operation).
|
|
77
|
+
*
|
|
78
|
+
* @param request - Request containing permission and repository IDs to check
|
|
79
|
+
*/
|
|
80
|
+
getAccessibleRepositories(request: Git.GetAccessibleRepositoriesRequest): Promise<Git.GetAccessibleRepositoriesResponse>;
|
|
75
81
|
/**
|
|
76
82
|
* Create an annotated tag.
|
|
77
83
|
*
|
package/Git/GitClient.js
CHANGED
|
@@ -276,6 +276,23 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
276
276
|
});
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
|
+
/**
|
|
280
|
+
* POST request to get accessible repositories based on permission (batch operation).
|
|
281
|
+
*
|
|
282
|
+
* @param request - Request containing permission and repository IDs to check
|
|
283
|
+
*/
|
|
284
|
+
GitRestClient.prototype.getAccessibleRepositories = function (request) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
return [2 /*return*/, this.beginRequest({
|
|
288
|
+
apiVersion: "7.2-preview.1",
|
|
289
|
+
method: "POST",
|
|
290
|
+
routeTemplate: "_apis/git/advsecPermissions/RepositoriesBatch",
|
|
291
|
+
body: request
|
|
292
|
+
})];
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
};
|
|
279
296
|
/**
|
|
280
297
|
* Create an annotated tag.
|
|
281
298
|
*
|