azure-devops-extension-api 4.251.0 → 4.253.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.
@@ -18,6 +18,27 @@ export interface AlertSummaryBySeverity {
18
18
  * Total Medium severity alerts.
19
19
  */
20
20
  medium: number;
21
+ /**
22
+ * Total Note severity alerts.
23
+ */
24
+ note: number;
25
+ }
26
+ /**
27
+ * Alert Summary by state.
28
+ */
29
+ export interface AlertSummaryByState {
30
+ /**
31
+ * Total Dismissed state alerts.
32
+ */
33
+ dismissed: number;
34
+ /**
35
+ * Total Fixed state alerts.
36
+ */
37
+ fixed: number;
38
+ /**
39
+ * Total New state alerts.
40
+ */
41
+ new: number;
21
42
  }
22
43
  export declare enum AlertType {
23
44
  /**
@@ -41,6 +62,24 @@ export declare enum AlertType {
41
62
  */
42
63
  License = 4
43
64
  }
65
+ export interface FilterCriteria {
66
+ /**
67
+ * If provided, only return alerts of this type. Otherwise, return alerts of all types.
68
+ */
69
+ alertTypes: AlertType[];
70
+ /**
71
+ * If provided, only return repos whose titles match this pattern.
72
+ */
73
+ keywords: string;
74
+ /**
75
+ * If provided, only return alerts from this time period. Otherwise, return all alerts.
76
+ */
77
+ period: TimePeriod;
78
+ /**
79
+ * If provided, only return alerts at these severities. \<br /\>Otherwise, return alerts at any severity.
80
+ */
81
+ severities: Severity[];
82
+ }
44
83
  /**
45
84
  * Org Alert Summary.
46
85
  */
@@ -109,6 +148,14 @@ export interface RepoAlertSummary {
109
148
  * Total alerts by severity.
110
149
  */
111
150
  alertsBySeverity: AlertSummaryBySeverity;
151
+ /**
152
+ * Total alerts by state.
153
+ */
154
+ alertsByState: AlertSummaryByState;
155
+ /**
156
+ * Total active alerts in the repo.
157
+ */
158
+ openAlerts: number;
112
159
  /**
113
160
  * RepoId.
114
161
  */
@@ -165,3 +212,21 @@ export interface ScanTypeSummaryPropertiesData {
165
212
  */
166
213
  enabled: boolean;
167
214
  }
215
+ export declare enum Severity {
216
+ Low = 0,
217
+ Medium = 1,
218
+ High = 2,
219
+ Critical = 3,
220
+ Note = 4,
221
+ Warning = 5,
222
+ Error = 6,
223
+ Undefined = 7
224
+ }
225
+ export declare enum TimePeriod {
226
+ Undefined = 0,
227
+ Last24Hours = 5,
228
+ Last7Days = 6,
229
+ Last14Days = 7,
230
+ Last30Days = 8,
231
+ Last90Days = 9
232
+ }
@@ -29,4 +29,24 @@ define(["require", "exports"], function (require, exports) {
29
29
  */
30
30
  AlertType[AlertType["License"] = 4] = "License";
31
31
  })(AlertType = exports.AlertType || (exports.AlertType = {}));
32
+ var Severity;
33
+ (function (Severity) {
34
+ Severity[Severity["Low"] = 0] = "Low";
35
+ Severity[Severity["Medium"] = 1] = "Medium";
36
+ Severity[Severity["High"] = 2] = "High";
37
+ Severity[Severity["Critical"] = 3] = "Critical";
38
+ Severity[Severity["Note"] = 4] = "Note";
39
+ Severity[Severity["Warning"] = 5] = "Warning";
40
+ Severity[Severity["Error"] = 6] = "Error";
41
+ Severity[Severity["Undefined"] = 7] = "Undefined";
42
+ })(Severity = exports.Severity || (exports.Severity = {}));
43
+ var TimePeriod;
44
+ (function (TimePeriod) {
45
+ TimePeriod[TimePeriod["Undefined"] = 0] = "Undefined";
46
+ TimePeriod[TimePeriod["Last24Hours"] = 5] = "Last24Hours";
47
+ TimePeriod[TimePeriod["Last7Days"] = 6] = "Last7Days";
48
+ TimePeriod[TimePeriod["Last14Days"] = 7] = "Last14Days";
49
+ TimePeriod[TimePeriod["Last30Days"] = 8] = "Last30Days";
50
+ TimePeriod[TimePeriod["Last90Days"] = 9] = "Last90Days";
51
+ })(TimePeriod = exports.TimePeriod || (exports.TimePeriod = {}));
32
52
  });
@@ -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={}))});
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={}))});
@@ -6,8 +6,9 @@ export declare class ReportingRestClient extends RestClientBase {
6
6
  /**
7
7
  * Get Alert summary by severity for the org
8
8
  *
9
+ * @param criteria -
9
10
  */
10
- getAlertSummaryForOrg(): Promise<Reporting.OrgAlertSummary>;
11
+ getAlertSummaryForOrg(criteria?: Reporting.FilterCriteria): Promise<Reporting.OrgAlertSummary>;
11
12
  /**
12
13
  */
13
14
  getEnablementSummaryForOrg(): Promise<Reporting.OrgEnablementSummary>;
@@ -59,16 +59,22 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
59
59
  /**
60
60
  * Get Alert summary by severity for the org
61
61
  *
62
+ * @param criteria -
62
63
  */
63
- ReportingRestClient.prototype.getAlertSummaryForOrg = function () {
64
+ ReportingRestClient.prototype.getAlertSummaryForOrg = function (criteria) {
64
65
  return __awaiter(this, void 0, void 0, function () {
66
+ var queryValues;
65
67
  return __generator(this, function (_a) {
68
+ queryValues = {
69
+ criteria: criteria
70
+ };
66
71
  return [2 /*return*/, this.beginRequest({
67
72
  apiVersion: "7.2-preview.1",
68
73
  routeTemplate: "_apis/Reporting/summary/{action}",
69
74
  routeValues: {
70
75
  action: "Alerts"
71
- }
76
+ },
77
+ queryParams: queryValues
72
78
  })];
73
79
  });
74
80
  });
@@ -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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getAlertSummaryForOrg=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/summary/{action}",routeValues:{action:"Alerts"}})]})})},e.prototype.getEnablementSummaryForOrg=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/summary/{action}",routeValues:{action:"Enablement"}})]})})},e}(n.RestClientBase);e.ReportingRestClient=r});
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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getAlertSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(n){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"},queryParams:e})]})})},e.prototype.getEnablementSummaryForOrg=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/summary/{action}",routeValues:{action:"Enablement"}})]})})},e}(n.RestClientBase);e.ReportingRestClient=r});
package/Alert/Alert.d.ts CHANGED
@@ -493,7 +493,11 @@ export declare enum DismissalType {
493
493
  /**
494
494
  * Dismissal indicating user is agreeing to follow license guidance.
495
495
  */
496
- AgreedToGuidance = 4
496
+ AgreedToGuidance = 4,
497
+ /**
498
+ * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
499
+ */
500
+ ToolUpgrade = 5
497
501
  }
498
502
  export declare enum ExpandOption {
499
503
  /**
@@ -505,6 +509,23 @@ export declare enum ExpandOption {
505
509
  */
506
510
  ValidationFingerprint = 1
507
511
  }
512
+ /**
513
+ * Details for a legal review for a given component
514
+ */
515
+ export interface LegalReview {
516
+ /**
517
+ * The review id. This indicates the associated work item id for dev it's witness-dev and for prod it's ossmsft.
518
+ */
519
+ id: number;
520
+ /**
521
+ * The review state.
522
+ */
523
+ state: string;
524
+ /**
525
+ * The review web url.
526
+ */
527
+ webUrl: string;
528
+ }
508
529
  /**
509
530
  * License information for dependencies
510
531
  */
@@ -984,10 +1005,26 @@ export interface ValidationFingerprint {
984
1005
  validityResult: string;
985
1006
  }
986
1007
  export declare enum ValidationStatus {
1008
+ /**
1009
+ * Default value, no information about the status of validation can be inferred for the secret.
1010
+ */
987
1011
  None = 0,
1012
+ /**
1013
+ * The secret validation job(s) for the alert have been manually queued and is in progress.
1014
+ */
988
1015
  InProgress = 1,
1016
+ /**
1017
+ * The secret validation job(s) for the alert have completed.
1018
+ */
989
1019
  Completed = 2,
990
- Failed = 3
1020
+ /**
1021
+ * The secret validation job(s) for the alert have failed.
1022
+ */
1023
+ Failed = 3,
1024
+ /**
1025
+ * The secret validations job(s) for the alert have been automatically initiated upon sarif submission.
1026
+ */
1027
+ Initiated = 4
991
1028
  }
992
1029
  /**
993
1030
  * Information for locating files in a source control system
package/Alert/Alert.js CHANGED
@@ -174,6 +174,10 @@ define(["require", "exports"], function (require, exports) {
174
174
  * Dismissal indicating user is agreeing to follow license guidance.
175
175
  */
176
176
  DismissalType[DismissalType["AgreedToGuidance"] = 4] = "AgreedToGuidance";
177
+ /**
178
+ * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
179
+ */
180
+ DismissalType[DismissalType["ToolUpgrade"] = 5] = "ToolUpgrade";
177
181
  })(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
178
182
  var ExpandOption;
179
183
  (function (ExpandOption) {
@@ -306,9 +310,25 @@ define(["require", "exports"], function (require, exports) {
306
310
  })(State = exports.State || (exports.State = {}));
307
311
  var ValidationStatus;
308
312
  (function (ValidationStatus) {
313
+ /**
314
+ * Default value, no information about the status of validation can be inferred for the secret.
315
+ */
309
316
  ValidationStatus[ValidationStatus["None"] = 0] = "None";
317
+ /**
318
+ * The secret validation job(s) for the alert have been manually queued and is in progress.
319
+ */
310
320
  ValidationStatus[ValidationStatus["InProgress"] = 1] = "InProgress";
321
+ /**
322
+ * The secret validation job(s) for the alert have completed.
323
+ */
311
324
  ValidationStatus[ValidationStatus["Completed"] = 2] = "Completed";
325
+ /**
326
+ * The secret validation job(s) for the alert have failed.
327
+ */
312
328
  ValidationStatus[ValidationStatus["Failed"] = 3] = "Failed";
329
+ /**
330
+ * The secret validations job(s) for the alert have been automatically initiated upon sarif submission.
331
+ */
332
+ ValidationStatus[ValidationStatus["Initiated"] = 4] = "Initiated";
313
333
  })(ValidationStatus = exports.ValidationStatus || (exports.ValidationStatus = {}));
314
334
  });
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!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.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!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.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!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"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!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"}(n.SarifJobStatus||(n.SarifJobStatus={}));!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.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.ValidationStatus||(n.ValidationStatus={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!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.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!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.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!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"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!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"}(n.SarifJobStatus||(n.SarifJobStatus={}));!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.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Initiated=4]="Initiated"}(n.ValidationStatus||(n.ValidationStatus={}))});
@@ -72,6 +72,15 @@ export declare class AlertRestClient extends RestClientBase {
72
72
  * @param ref -
73
73
  */
74
74
  getAlertInstances(project: string, alertId: number, repository: string, ref?: string): Promise<Alert.AlertAnalysisInstance[]>;
75
+ /**
76
+ * Create legal review. This creates the legal review associated with the alert. It include the review work item url.
77
+ *
78
+ * @param project - Project ID or project name
79
+ * @param repository - Name or id of a repository for the legal alert
80
+ * @param alertId - Advance Security alert id of the legal alert to get the legal review
81
+ * @param ref -
82
+ */
83
+ createLegalReview(project: string, repository: string, alertId: number, ref?: string): Promise<Alert.LegalReview>;
75
84
  /**
76
85
  * Update alert metadata associations.
77
86
  *
@@ -95,6 +104,14 @@ export declare class AlertRestClient extends RestClientBase {
95
104
  * @param sarifId - Sarif ID returned when the Sarif was uploaded
96
105
  */
97
106
  getSarif(sarifId: number): Promise<Alert.SarifUploadStatus>;
107
+ /**
108
+ * Get the validity details for an alert.
109
+ *
110
+ * @param project - Project ID or project name
111
+ * @param repository - The name or ID of a repository
112
+ * @param alertId - The ID of the alert
113
+ */
114
+ getValidityData(project: string, repository: string, alertId: number): Promise<Alert.AlertValidityInfo>;
98
115
  /**
99
116
  * Initiate the validation process for a given alert
100
117
  *
@@ -276,6 +276,35 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
276
276
  });
277
277
  });
278
278
  };
279
+ /**
280
+ * Create legal review. This creates the legal review associated with the alert. It include the review work item url.
281
+ *
282
+ * @param project - Project ID or project name
283
+ * @param repository - Name or id of a repository for the legal alert
284
+ * @param alertId - Advance Security alert id of the legal alert to get the legal review
285
+ * @param ref -
286
+ */
287
+ AlertRestClient.prototype.createLegalReview = function (project, repository, alertId, ref) {
288
+ return __awaiter(this, void 0, void 0, function () {
289
+ var queryValues;
290
+ return __generator(this, function (_a) {
291
+ queryValues = {
292
+ alertId: alertId,
293
+ ref: ref
294
+ };
295
+ return [2 /*return*/, this.beginRequest({
296
+ apiVersion: "7.2-preview.1",
297
+ method: "POST",
298
+ routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",
299
+ routeValues: {
300
+ project: project,
301
+ repository: repository
302
+ },
303
+ queryParams: queryValues
304
+ })];
305
+ });
306
+ });
307
+ };
279
308
  /**
280
309
  * Update alert metadata associations.
281
310
  *
@@ -345,6 +374,28 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
345
374
  });
346
375
  });
347
376
  };
377
+ /**
378
+ * Get the validity details for an alert.
379
+ *
380
+ * @param project - Project ID or project name
381
+ * @param repository - The name or ID of a repository
382
+ * @param alertId - The ID of the alert
383
+ */
384
+ AlertRestClient.prototype.getValidityData = function (project, repository, alertId) {
385
+ return __awaiter(this, void 0, void 0, function () {
386
+ return __generator(this, function (_a) {
387
+ return [2 /*return*/, this.beginRequest({
388
+ apiVersion: "7.2-preview.1",
389
+ routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",
390
+ routeValues: {
391
+ project: project,
392
+ repository: repository,
393
+ alertId: alertId
394
+ }
395
+ })];
396
+ });
397
+ });
398
+ };
348
399
  /**
349
400
  * Initiate the validation process for a given alert
350
401
  *
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.getAlerts=function(e,t,r,i,n,a,s){return __awaiter(this,void 0,void 0,function(){var u,p=this;return __generator(this,function(c){return u={top:r,orderBy:i,criteria:n,expand:a,continuationToken:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.updateAlert=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,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})]})})},t.prototype.getBranches=function(e,t,r,o,i,n,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={alertType:r,continuationToken:o,branchNameContains:i,top:n,includePullRequestBranches:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:s})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.updateAlertsMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.uploadSarif=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,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})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t.prototype.initiateValidation=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,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}})]})})},t}(r.RestClientBase);t.AlertRestClient=i});
1
+ var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.getAlerts=function(e,t,r,i,n,a,s){return __awaiter(this,void 0,void 0,function(){var u,p=this;return __generator(this,function(c){return u={top:r,orderBy:i,criteria:n,expand:a,continuationToken:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/Alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.updateAlert=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,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})]})})},t.prototype.getBranches=function(e,t,r,o,i,n,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={alertType:r,continuationToken:o,branchNameContains:i,top:n,includePullRequestBranches:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:s})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.createLegalReview=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={alertId:r,ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateAlertsMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.uploadSarif=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,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})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t.prototype.getValidityData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t.prototype.initiateValidation=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,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}})]})})},t}(r.RestClientBase);t.AlertRestClient=i});
package/Build/Build.d.ts CHANGED
@@ -290,7 +290,7 @@ export interface Build {
290
290
  [key: string]: string;
291
291
  };
292
292
  /**
293
- * The build that triggered this build via a Build completion trigger.
293
+ * The build that triggered this build via a Build completion trigger. Do not set it when queuing a new pipeline run.
294
294
  */
295
295
  triggeredByBuild: Build;
296
296
  /**
@@ -807,6 +807,10 @@ export declare enum ExtensionQueryFlags {
807
807
  * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
808
808
  */
809
809
  IncludeNameConflictInfo = 32768,
810
+ /**
811
+ * When retrieving versions from a query, return the details with both latest prelease and stable version of the extensions that matched, if not prelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
812
+ */
813
+ IncludeLatestPrereleaseAndStableVersionOnly = 65536,
810
814
  /**
811
815
  * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
812
816
  */
@@ -875,9 +879,13 @@ export declare enum ExtensionVersionFlags {
875
879
  */
876
880
  None = 0,
877
881
  /**
878
- * The Validated flag for a version means the extension version has passed validation and can be used..
882
+ * The Validated flag for a version means the extension version has passed validation and can be used.
883
+ */
884
+ Validated = 1,
885
+ /**
886
+ * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only. We need backfill this flag to database in the future, here is a tracking task: https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2234733
879
887
  */
880
- Validated = 1
888
+ Prerelease = 2
881
889
  }
882
890
  /**
883
891
  * One condition in a QueryFilter.
@@ -316,6 +316,10 @@ define(["require", "exports"], function (require, exports) {
316
316
  * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
317
317
  */
318
318
  ExtensionQueryFlags[ExtensionQueryFlags["IncludeNameConflictInfo"] = 32768] = "IncludeNameConflictInfo";
319
+ /**
320
+ * When retrieving versions from a query, return the details with both latest prelease and stable version of the extensions that matched, if not prelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
321
+ */
322
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeLatestPrereleaseAndStableVersionOnly"] = 65536] = "IncludeLatestPrereleaseAndStableVersionOnly";
319
323
  /**
320
324
  * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
321
325
  */
@@ -346,9 +350,13 @@ define(["require", "exports"], function (require, exports) {
346
350
  */
347
351
  ExtensionVersionFlags[ExtensionVersionFlags["None"] = 0] = "None";
348
352
  /**
349
- * The Validated flag for a version means the extension version has passed validation and can be used..
353
+ * The Validated flag for a version means the extension version has passed validation and can be used.
350
354
  */
351
355
  ExtensionVersionFlags[ExtensionVersionFlags["Validated"] = 1] = "Validated";
356
+ /**
357
+ * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only. We need backfill this flag to database in the future, here is a tracking task: https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2234733
358
+ */
359
+ ExtensionVersionFlags[ExtensionVersionFlags["Prerelease"] = 2] = "Prerelease";
352
360
  })(ExtensionVersionFlags = exports.ExtensionVersionFlags || (exports.ExtensionVersionFlags = {}));
353
361
  /**
354
362
  * Type of event
@@ -1 +1 @@
1
- define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.AllAttributes=16863]="AllAttributes"}(i.ExtensionQueryFlags||(i.ExtensionQueryFlags={}));!function(e){e[e.None=0]="None",e[e.Set=1]="Set",e[e.Increment=2]="Increment",e[e.Decrement=3]="Decrement",e[e.Delete=4]="Delete"}(i.ExtensionStatisticOperation||(i.ExtensionStatisticOperation={}));!function(e){e[e.Daily=1]="Daily"}(i.ExtensionStatsAggregateType||(i.ExtensionStatsAggregateType={}));!function(e){e[e.None=0]="None",e[e.Validated=1]="Validated"}(i.ExtensionVersionFlags||(i.ExtensionVersionFlags={}));!function(e){e[e.ReviewNotification=1]="ReviewNotification",e[e.QnaNotification=2]="QnaNotification",e[e.CustomerContactNotification=3]="CustomerContactNotification",e[e.PublisherMemberUpdateNotification=4]="PublisherMemberUpdateNotification"}(i.NotificationTemplateType||(i.NotificationTemplateType={}));!function(e){e[e.Backward=1]="Backward",e[e.Forward=2]="Forward"}(i.PagingDirection||(i.PagingDirection={}));!function(e){e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.BuiltIn=2]="BuiltIn",e[e.Validated=4]="Validated",e[e.Trusted=8]="Trusted",e[e.Paid=16]="Paid",e[e.Public=256]="Public",e[e.MultiVersion=512]="MultiVersion",e[e.System=1024]="System",e[e.Preview=2048]="Preview",e[e.Unpublished=4096]="Unpublished",e[e.Trial=8192]="Trial",e[e.Locked=16384]="Locked",e[e.Hidden=32768]="Hidden"}(i.PublishedExtensionFlags||(i.PublishedExtensionFlags={}));!function(e){e[e.UnChanged=1073741824]="UnChanged",e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.Verified=2]="Verified",e[e.Certified=4]="Certified",e[e.ServiceFlags=7]="ServiceFlags"}(i.PublisherFlags||(i.PublisherFlags={}));!function(e){e[e.Read=1]="Read",e[e.UpdateExtension=2]="UpdateExtension",e[e.CreatePublisher=4]="CreatePublisher",e[e.PublishExtension=8]="PublishExtension",e[e.Admin=16]="Admin",e[e.TrustedPartner=32]="TrustedPartner",e[e.PrivateRead=64]="PrivateRead",e[e.DeleteExtension=128]="DeleteExtension",e[e.EditSettings=256]="EditSettings",e[e.ViewPermissions=512]="ViewPermissions",e[e.ManagePermissions=1024]="ManagePermissions",e[e.DeletePublisher=2048]="DeletePublisher"}(i.PublisherPermissions||(i.PublisherPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeExtensions=1]="IncludeExtensions",e[e.IncludeEmailAddress=2]="IncludeEmailAddress"}(i.PublisherQueryFlags||(i.PublisherQueryFlags={}));!function(e){e[e.Assigned=1]="Assigned",e[e.Inherited=2]="Inherited"}(i.PublisherRoleAccess||(i.PublisherRoleAccess={}));!function(e){e[e.None=0]="None",e[e.VerificationPending=1]="VerificationPending",e[e.CertificationPending=2]="CertificationPending",e[e.CertificationRejected=4]="CertificationRejected",e[e.CertificationRevoked=8]="CertificationRevoked"}(i.PublisherState||(i.PublisherState={}));!function(e){e[e.None=0]="None",e[e.UserEditable=1]="UserEditable",e[e.PublisherCreated=2]="PublisherCreated"}(i.QnAItemStatus||(i.QnAItemStatus={}));!function(e){e[e.Completed=0]="Completed",e[e.Failed=1]="Failed",e[e.Inprogress=2]="Inprogress",e[e.Skipped=3]="Skipped"}(i.RestApiResponseStatus||(i.RestApiResponseStatus={}));!function(e){e[e.Create=1]="Create",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(i.ReviewEventOperation||(i.ReviewEventOperation={}));!function(e){e[e.None=0]="None",e[e.FilterEmptyReviews=1]="FilterEmptyReviews",e[e.FilterEmptyUserNames=2]="FilterEmptyUserNames"}(i.ReviewFilterOptions||(i.ReviewFilterOptions={}));!function(e){e[e.FlagReview=1]="FlagReview",e[e.UpdateReview=2]="UpdateReview",e[e.ReplyToReview=3]="ReplyToReview",e[e.AdminResponseForReview=4]="AdminResponseForReview",e[e.DeleteAdminReply=5]="DeleteAdminReply",e[e.DeletePublisherReply=6]="DeletePublisherReply"}(i.ReviewPatchOperation||(i.ReviewPatchOperation={}));!function(e){e[e.Review=1]="Review",e[e.PublisherReply=2]="PublisherReply",e[e.AdminReply=3]="AdminReply"}(i.ReviewResourceType||(i.ReviewResourceType={}));!function(e){e[e.Relevance=0]="Relevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.Publisher=3]="Publisher",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.TrendingDaily=7]="TrendingDaily",e[e.TrendingWeekly=8]="TrendingWeekly",e[e.TrendingMonthly=9]="TrendingMonthly",e[e.ReleaseDate=10]="ReleaseDate",e[e.Author=11]="Author",e[e.WeightedRating=12]="WeightedRating"}(i.SortByType||(i.SortByType={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(i.SortOrderType||(i.SortOrderType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update",e[e.Uninstall=3]="Uninstall"}(i.VSCodeWebExtensionStatisicsType||(i.VSCodeWebExtensionStatisicsType={}))});
1
+ define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.IncludeLatestPrereleaseAndStableVersionOnly=65536]="IncludeLatestPrereleaseAndStableVersionOnly",e[e.AllAttributes=16863]="AllAttributes"}(i.ExtensionQueryFlags||(i.ExtensionQueryFlags={}));!function(e){e[e.None=0]="None",e[e.Set=1]="Set",e[e.Increment=2]="Increment",e[e.Decrement=3]="Decrement",e[e.Delete=4]="Delete"}(i.ExtensionStatisticOperation||(i.ExtensionStatisticOperation={}));!function(e){e[e.Daily=1]="Daily"}(i.ExtensionStatsAggregateType||(i.ExtensionStatsAggregateType={}));!function(e){e[e.None=0]="None",e[e.Validated=1]="Validated",e[e.Prerelease=2]="Prerelease"}(i.ExtensionVersionFlags||(i.ExtensionVersionFlags={}));!function(e){e[e.ReviewNotification=1]="ReviewNotification",e[e.QnaNotification=2]="QnaNotification",e[e.CustomerContactNotification=3]="CustomerContactNotification",e[e.PublisherMemberUpdateNotification=4]="PublisherMemberUpdateNotification"}(i.NotificationTemplateType||(i.NotificationTemplateType={}));!function(e){e[e.Backward=1]="Backward",e[e.Forward=2]="Forward"}(i.PagingDirection||(i.PagingDirection={}));!function(e){e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.BuiltIn=2]="BuiltIn",e[e.Validated=4]="Validated",e[e.Trusted=8]="Trusted",e[e.Paid=16]="Paid",e[e.Public=256]="Public",e[e.MultiVersion=512]="MultiVersion",e[e.System=1024]="System",e[e.Preview=2048]="Preview",e[e.Unpublished=4096]="Unpublished",e[e.Trial=8192]="Trial",e[e.Locked=16384]="Locked",e[e.Hidden=32768]="Hidden"}(i.PublishedExtensionFlags||(i.PublishedExtensionFlags={}));!function(e){e[e.UnChanged=1073741824]="UnChanged",e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.Verified=2]="Verified",e[e.Certified=4]="Certified",e[e.ServiceFlags=7]="ServiceFlags"}(i.PublisherFlags||(i.PublisherFlags={}));!function(e){e[e.Read=1]="Read",e[e.UpdateExtension=2]="UpdateExtension",e[e.CreatePublisher=4]="CreatePublisher",e[e.PublishExtension=8]="PublishExtension",e[e.Admin=16]="Admin",e[e.TrustedPartner=32]="TrustedPartner",e[e.PrivateRead=64]="PrivateRead",e[e.DeleteExtension=128]="DeleteExtension",e[e.EditSettings=256]="EditSettings",e[e.ViewPermissions=512]="ViewPermissions",e[e.ManagePermissions=1024]="ManagePermissions",e[e.DeletePublisher=2048]="DeletePublisher"}(i.PublisherPermissions||(i.PublisherPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeExtensions=1]="IncludeExtensions",e[e.IncludeEmailAddress=2]="IncludeEmailAddress"}(i.PublisherQueryFlags||(i.PublisherQueryFlags={}));!function(e){e[e.Assigned=1]="Assigned",e[e.Inherited=2]="Inherited"}(i.PublisherRoleAccess||(i.PublisherRoleAccess={}));!function(e){e[e.None=0]="None",e[e.VerificationPending=1]="VerificationPending",e[e.CertificationPending=2]="CertificationPending",e[e.CertificationRejected=4]="CertificationRejected",e[e.CertificationRevoked=8]="CertificationRevoked"}(i.PublisherState||(i.PublisherState={}));!function(e){e[e.None=0]="None",e[e.UserEditable=1]="UserEditable",e[e.PublisherCreated=2]="PublisherCreated"}(i.QnAItemStatus||(i.QnAItemStatus={}));!function(e){e[e.Completed=0]="Completed",e[e.Failed=1]="Failed",e[e.Inprogress=2]="Inprogress",e[e.Skipped=3]="Skipped"}(i.RestApiResponseStatus||(i.RestApiResponseStatus={}));!function(e){e[e.Create=1]="Create",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(i.ReviewEventOperation||(i.ReviewEventOperation={}));!function(e){e[e.None=0]="None",e[e.FilterEmptyReviews=1]="FilterEmptyReviews",e[e.FilterEmptyUserNames=2]="FilterEmptyUserNames"}(i.ReviewFilterOptions||(i.ReviewFilterOptions={}));!function(e){e[e.FlagReview=1]="FlagReview",e[e.UpdateReview=2]="UpdateReview",e[e.ReplyToReview=3]="ReplyToReview",e[e.AdminResponseForReview=4]="AdminResponseForReview",e[e.DeleteAdminReply=5]="DeleteAdminReply",e[e.DeletePublisherReply=6]="DeletePublisherReply"}(i.ReviewPatchOperation||(i.ReviewPatchOperation={}));!function(e){e[e.Review=1]="Review",e[e.PublisherReply=2]="PublisherReply",e[e.AdminReply=3]="AdminReply"}(i.ReviewResourceType||(i.ReviewResourceType={}));!function(e){e[e.Relevance=0]="Relevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.Publisher=3]="Publisher",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.TrendingDaily=7]="TrendingDaily",e[e.TrendingWeekly=8]="TrendingWeekly",e[e.TrendingMonthly=9]="TrendingMonthly",e[e.ReleaseDate=10]="ReleaseDate",e[e.Author=11]="Author",e[e.WeightedRating=12]="WeightedRating"}(i.SortByType||(i.SortByType={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(i.SortOrderType||(i.SortOrderType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update",e[e.Uninstall=3]="Uninstall"}(i.VSCodeWebExtensionStatisicsType||(i.VSCodeWebExtensionStatisicsType={}))});