azure-devops-extension-api 4.265.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.
Files changed (40) hide show
  1. package/AdvancedSecurity.Reporting/Reporting.d.ts +372 -0
  2. package/AdvancedSecurity.Reporting/Reporting.js +152 -0
  3. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  4. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +44 -2
  5. package/AdvancedSecurity.Reporting/ReportingClient.js +149 -3
  6. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
  7. package/Alert/Alert.d.ts +21 -0
  8. package/Alert/AlertClient.d.ts +8 -0
  9. package/Alert/AlertClient.js +23 -0
  10. package/Alert/AlertClient.min.js +1 -1
  11. package/Git/Git.d.ts +24 -2
  12. package/Git/GitClient.d.ts +6 -0
  13. package/Git/GitClient.js +17 -0
  14. package/Git/GitClient.min.js +1 -1
  15. package/Management/Management.d.ts +15 -2
  16. package/Management/ManagementClient.d.ts +11 -0
  17. package/Management/ManagementClient.js +33 -0
  18. package/Management/ManagementClient.min.js +1 -1
  19. package/ServiceEndpoint/ServiceEndpointClient.d.ts +6 -0
  20. package/ServiceEndpoint/ServiceEndpointClient.js +17 -0
  21. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  22. package/TaskAgent/TaskAgent.d.ts +6 -1
  23. package/TaskAgent/TaskAgent.js +4 -0
  24. package/TaskAgent/TaskAgent.min.js +1 -1
  25. package/Test/Test.d.ts +131 -6
  26. package/Test/Test.js +56 -3
  27. package/Test/Test.min.js +1 -1
  28. package/TestPlan/TestPlan.d.ts +8 -0
  29. package/TestResults/TestResultsClient.d.ts +10 -0
  30. package/TestResults/TestResultsClient.js +38 -0
  31. package/TestResults/TestResultsClient.min.js +1 -1
  32. package/_manifest/spdx_2.2/ESRPClientLogs0219180805019.json +1 -0
  33. package/_manifest/spdx_2.2/bsi.cose +0 -0
  34. package/_manifest/spdx_2.2/bsi.json +1 -1
  35. package/_manifest/spdx_2.2/manifest.cat +0 -0
  36. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  37. package/_manifest/spdx_2.2/manifest.spdx.json +2240 -2240
  38. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
  39. package/package.json +1 -1
  40. package/_manifest/spdx_2.2/ESRPClientLogs1223223059101.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
  */
@@ -62,6 +121,264 @@ export declare enum AlertType {
62
121
  */
63
122
  License = 4
64
123
  }
124
+ export declare enum AlertValidityStatus {
125
+ /**
126
+ * When there are no validation fingerprints attached to the alert.
127
+ */
128
+ None = 0,
129
+ /**
130
+ * When the validations for validation fingerprints associated to the alert have not been conclusive.
131
+ */
132
+ Unknown = 1,
133
+ /**
134
+ * When at least one validation fingerprint associated to the alert is exploitable.
135
+ */
136
+ Active = 2,
137
+ /**
138
+ * When all validation fingerprints associated to the alert are not exploitable.
139
+ */
140
+ Inactive = 3
141
+ }
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;
179
+ /**
180
+ * If provided, only return alerts whose titles match this pattern.
181
+ */
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[];
203
+ /**
204
+ * If provided, return alerts that are active or inactive based on this value. \<br /\>Otherwise, return alerts in any state.
205
+ */
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
278
+ }
279
+ /**
280
+ * An alert entity used in the dashboard for combined alerts.
281
+ */
282
+ export interface DashboardAlert {
283
+ /**
284
+ * Identifier for the alert. It is unique within Azure DevOps organization.
285
+ */
286
+ alertId: number;
287
+ /**
288
+ * Type of the alert. E.g. secret, code, etc.
289
+ */
290
+ alertType: AlertType;
291
+ /**
292
+ * This value is computed and returned by the service. This value represents the first time the vulnerability was introduced.
293
+ */
294
+ introducedDate: Date;
295
+ /**
296
+ * This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a physical location is a file location.
297
+ */
298
+ locations: DashboardAlertPhysicalLocation[];
299
+ /**
300
+ * Name of the project where the alert was detected.
301
+ */
302
+ projectName: string;
303
+ /**
304
+ * Name of the repository where the alert was detected.
305
+ */
306
+ repositoryName: string;
307
+ /**
308
+ * Severity of the alert.
309
+ */
310
+ severity: Severity;
311
+ /**
312
+ * This value is computed and returned by the service. It is a value based on the results from all analysis configurations.
313
+ */
314
+ state: State;
315
+ /**
316
+ * Title will only be rendered as text and does not support markdown formatting. There is a maximum character limit of 256.
317
+ */
318
+ title: string;
319
+ /**
320
+ * A truncated/obfuscated version of the secret pertaining to the alert (if applicable).
321
+ */
322
+ truncatedSecret: string;
323
+ /**
324
+ * Validity status of an alert. Currently, this is only applicable to secret alerts. In case of secret alerts, the validity status is computed by looking at the liveness results for validation fingerprints associated to an alert.
325
+ */
326
+ validityStatus: AlertValidityStatus;
327
+ }
328
+ /**
329
+ * Location in the source control system where the issue was found
330
+ */
331
+ export interface DashboardAlertPhysicalLocation {
332
+ alertId: number;
333
+ /**
334
+ * Path of the file where the issue was found
335
+ */
336
+ filePath: string;
337
+ /**
338
+ * Details about the location where the issue was found including a snippet
339
+ */
340
+ region: Region;
341
+ }
342
+ export declare enum DashboardAlertState {
343
+ /**
344
+ * Alert has been detected in the code and corresponds to 'Active' state.
345
+ */
346
+ Open = 0,
347
+ /**
348
+ * Alert corresponds to 'Unknown', 'Dismissed', 'Fixed' or 'AutoDismissed' states.
349
+ */
350
+ Closed = 1
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
+ }
65
382
  export interface EnablementFilterCriteria {
66
383
  /**
67
384
  * If provided, only return repos whose titles match this pattern.
@@ -192,6 +509,24 @@ export interface ProjectEnablementSummary {
192
509
  */
193
510
  repos: RepoEnablementSummary[];
194
511
  }
512
+ export interface Region {
513
+ /**
514
+ * The column where the code snippet ends
515
+ */
516
+ columnEnd: number;
517
+ /**
518
+ * The column where the code snippet starts
519
+ */
520
+ columnStart: number;
521
+ /**
522
+ * The line number where the code snippet ends
523
+ */
524
+ lineEnd: number;
525
+ /**
526
+ * The line number where the code snippet starts
527
+ */
528
+ lineStart: number;
529
+ }
195
530
  /**
196
531
  * Repo Alert Summary.
197
532
  */
@@ -241,6 +576,12 @@ export interface RepoEnablementSummary {
241
576
  * Repo Name.
242
577
  */
243
578
  repoName: string;
579
+ /**
580
+ * Repo scan type metadata for different scan types.
581
+ */
582
+ scanTypeMetadata: {
583
+ [key: number]: ScanTypeSummaryMetadata;
584
+ };
244
585
  /**
245
586
  * Repo enablement summary for different scan types.
246
587
  */
@@ -258,6 +599,15 @@ export interface ReportingUXComputedFilters {
258
599
  */
259
600
  projects: Project[];
260
601
  }
602
+ /**
603
+ * Metadata for a scan type.
604
+ */
605
+ export interface ScanTypeSummaryMetadata {
606
+ /**
607
+ * The date and time of the last scan for the associated alert type/repo combination. Null if no scan has been performed.
608
+ */
609
+ lastScanDate: Date;
610
+ }
261
611
  export interface ScanTypeSummaryProperties {
262
612
  /**
263
613
  * True if alerts are enabled for the associated alert type/repo combination, false if disabled.
@@ -288,6 +638,28 @@ export declare enum Severity {
288
638
  Error = 6,
289
639
  Undefined = 7
290
640
  }
641
+ export declare enum State {
642
+ /**
643
+ * Alert is in an indeterminate state
644
+ */
645
+ Unknown = 0,
646
+ /**
647
+ * Alert has been detected in the code
648
+ */
649
+ Active = 1,
650
+ /**
651
+ * Alert was dismissed by a user
652
+ */
653
+ Dismissed = 2,
654
+ /**
655
+ * The issue is no longer detected in the code
656
+ */
657
+ Fixed = 4,
658
+ /**
659
+ * The tool has determined that the issue is no longer a risk
660
+ */
661
+ AutoDismissed = 8
662
+ }
291
663
  export declare enum TimePeriod {
292
664
  Undefined = 0,
293
665
  Last24Hours = 5,
@@ -29,6 +29,135 @@ define(["require", "exports"], function (require, exports) {
29
29
  */
30
30
  AlertType[AlertType["License"] = 4] = "License";
31
31
  })(AlertType = exports.AlertType || (exports.AlertType = {}));
32
+ var AlertValidityStatus;
33
+ (function (AlertValidityStatus) {
34
+ /**
35
+ * When there are no validation fingerprints attached to the alert.
36
+ */
37
+ AlertValidityStatus[AlertValidityStatus["None"] = 0] = "None";
38
+ /**
39
+ * When the validations for validation fingerprints associated to the alert have not been conclusive.
40
+ */
41
+ AlertValidityStatus[AlertValidityStatus["Unknown"] = 1] = "Unknown";
42
+ /**
43
+ * When at least one validation fingerprint associated to the alert is exploitable.
44
+ */
45
+ AlertValidityStatus[AlertValidityStatus["Active"] = 2] = "Active";
46
+ /**
47
+ * When all validation fingerprints associated to the alert are not exploitable.
48
+ */
49
+ AlertValidityStatus[AlertValidityStatus["Inactive"] = 3] = "Inactive";
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 = {}));
119
+ var DashboardAlertState;
120
+ (function (DashboardAlertState) {
121
+ /**
122
+ * Alert has been detected in the code and corresponds to 'Active' state.
123
+ */
124
+ DashboardAlertState[DashboardAlertState["Open"] = 0] = "Open";
125
+ /**
126
+ * Alert corresponds to 'Unknown', 'Dismissed', 'Fixed' or 'AutoDismissed' states.
127
+ */
128
+ DashboardAlertState[DashboardAlertState["Closed"] = 1] = "Closed";
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 = {}));
32
161
  var Severity;
33
162
  (function (Severity) {
34
163
  Severity[Severity["Low"] = 0] = "Low";
@@ -40,6 +169,29 @@ define(["require", "exports"], function (require, exports) {
40
169
  Severity[Severity["Error"] = 6] = "Error";
41
170
  Severity[Severity["Undefined"] = 7] = "Undefined";
42
171
  })(Severity = exports.Severity || (exports.Severity = {}));
172
+ var State;
173
+ (function (State) {
174
+ /**
175
+ * Alert is in an indeterminate state
176
+ */
177
+ State[State["Unknown"] = 0] = "Unknown";
178
+ /**
179
+ * Alert has been detected in the code
180
+ */
181
+ State[State["Active"] = 1] = "Active";
182
+ /**
183
+ * Alert was dismissed by a user
184
+ */
185
+ State[State["Dismissed"] = 2] = "Dismissed";
186
+ /**
187
+ * The issue is no longer detected in the code
188
+ */
189
+ State[State["Fixed"] = 4] = "Fixed";
190
+ /**
191
+ * The tool has determined that the issue is no longer a risk
192
+ */
193
+ State[State["AutoDismissed"] = 8] = "AutoDismissed";
194
+ })(State = exports.State || (exports.State = {}));
43
195
  var TimePeriod;
44
196
  (function (TimePeriod) {
45
197
  TimePeriod[TimePeriod["Undefined"] = 0] = "Undefined";
@@ -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.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.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={}))});
@@ -1,19 +1,61 @@
1
1
  import { IVssRestClientOptions } from "../Common/Context";
2
2
  import { RestClientBase } from "../Common/RestClientBase";
3
3
  import * as Reporting from "../AdvancedSecurity.Reporting/Reporting";
4
+ import * as WebApi from "../WebApi/WebApi";
4
5
  export declare class ReportingRestClient extends RestClientBase {
5
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>;
6
38
  /**
7
39
  */
8
40
  getUXComputedFilters(): Promise<Reporting.ReportingUXComputedFilters>;
9
41
  /**
10
42
  * Get Alert summary by severity for the org
11
43
  *
12
- * @param criteria -
44
+ * @param criteria - Options to limit the summaries returned
13
45
  */
14
46
  getAlertSummaryForOrg(criteria?: Reporting.FilterCriteria): Promise<Reporting.OrgAlertSummary>;
15
47
  /**
16
- * @param criteria -
48
+ * Get Combined Alerts for the org
49
+ *
50
+ * @param criteria - Options to filter the combined alerts returned
51
+ * @param top - The maximum number of alerts to return
52
+ * @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
53
+ */
54
+ getCombinedAlertsForOrg(criteria?: Reporting.CombinedAlertFilterCriteria, top?: number, continuationToken?: string): Promise<WebApi.PagedList<Reporting.DashboardAlert>>;
55
+ /**
56
+ * Get Enablement summary for the org
57
+ *
58
+ * @param criteria - Options to limit the summaries returned
17
59
  */
18
60
  getEnablementSummaryForOrg(criteria?: Reporting.EnablementFilterCriteria): Promise<Reporting.OrgEnablementSummary>;
19
61
  }