azure-devops-extension-api 4.261.0 → 4.262.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.
@@ -67,6 +67,44 @@ export interface EnablementFilterCriteria {
67
67
  * If provided, only return repos whose titles match this pattern.
68
68
  */
69
69
  keywords: string;
70
+ /**
71
+ * If provided, only return summary data for these projects. Otherwise, return summary data for all projects.
72
+ */
73
+ projects: string[];
74
+ /**
75
+ * If provided, only return summary data for these enablement states. Otherwise, return summary data at any state.
76
+ */
77
+ states: EnablementStateTypes;
78
+ }
79
+ export interface EnablementStateTypes {
80
+ /**
81
+ * True if any tool is enabled for the repository, false if any tool is disabled.
82
+ */
83
+ anyTool: boolean;
84
+ /**
85
+ * True if code scanning alerts are enabled for the repository, false if disabled.
86
+ */
87
+ codeAlerts: boolean;
88
+ /**
89
+ * True if code scanning pull request alerts are enabled for the repository, false if disabled.
90
+ */
91
+ codePRAlerts: boolean;
92
+ /**
93
+ * True if dependency alerts are enabled for the repository, false if disabled.
94
+ */
95
+ dependencyAlerts: boolean;
96
+ /**
97
+ * True if dependency pull request alerts are enabled for the repository, false if disabled.
98
+ */
99
+ dependencyPRAlerts: boolean;
100
+ /**
101
+ * True if pushes containing secrets will be blocked, false if they will not.
102
+ */
103
+ pushProtection: boolean;
104
+ /**
105
+ * True if secret scanning is enabled for the repository, false if disabled.
106
+ */
107
+ secretAlerts: boolean;
70
108
  }
71
109
  export interface FilterCriteria {
72
110
  /**
@@ -214,9 +252,9 @@ export interface RepoEnablementSummary {
214
252
  */
215
253
  secretProtectionEnabled: boolean;
216
254
  }
217
- export interface RiskUXComputedFilters {
255
+ export interface ReportingUXComputedFilters {
218
256
  /**
219
- * Display alerts for specified projects. Show alerts for all projects if none are specified.
257
+ * Display reporting for specified projects. Show reporting for all projects if none are specified.
220
258
  */
221
259
  projects: Project[];
222
260
  }
@@ -5,7 +5,7 @@ export declare class ReportingRestClient extends RestClientBase {
5
5
  constructor(options: IVssRestClientOptions);
6
6
  /**
7
7
  */
8
- getRiskUXComputedFilters(): Promise<Reporting.RiskUXComputedFilters>;
8
+ getUXComputedFilters(): Promise<Reporting.ReportingUXComputedFilters>;
9
9
  /**
10
10
  * Get Alert summary by severity for the org
11
11
  *
@@ -58,14 +58,14 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
58
58
  }
59
59
  /**
60
60
  */
61
- ReportingRestClient.prototype.getRiskUXComputedFilters = function () {
61
+ ReportingRestClient.prototype.getUXComputedFilters = function () {
62
62
  return __awaiter(this, void 0, void 0, function () {
63
63
  return __generator(this, function (_a) {
64
64
  return [2 /*return*/, this.beginRequest({
65
65
  apiVersion: "7.2-preview.1",
66
66
  routeTemplate: "_apis/Reporting/filters/{action}",
67
67
  routeValues: {
68
- action: "Alerts"
68
+ action: "Default"
69
69
  }
70
70
  })];
71
71
  });
@@ -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 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(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){t.done?o(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,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[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"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getRiskUXComputedFilters=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:"Alerts"}})]})})},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.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=n});
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(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){t.done?o(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,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[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"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,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.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=n});
package/Alert/Alert.d.ts CHANGED
@@ -132,7 +132,11 @@ export declare enum AlertListExpandOption {
132
132
  /**
133
133
  * Return a minimal representation of an alert.
134
134
  */
135
- Minimal = 1
135
+ Minimal = 1,
136
+ /**
137
+ * Only Return AlertId of an alert.
138
+ */
139
+ IdOnly = 2
136
140
  }
137
141
  /**
138
142
  * Alert metadata.
@@ -227,7 +231,7 @@ export declare enum AlertValidityStatus {
227
231
  */
228
232
  Unknown = 1,
229
233
  /**
230
- * When atleast one validation fingerprint associated to the alert is exploitable.
234
+ * When at least one validation fingerprint associated to the alert is exploitable.
231
235
  */
232
236
  Active = 2,
233
237
  /**
package/Alert/Alert.js CHANGED
@@ -16,6 +16,10 @@ define(["require", "exports"], function (require, exports) {
16
16
  * Return a minimal representation of an alert.
17
17
  */
18
18
  AlertListExpandOption[AlertListExpandOption["Minimal"] = 1] = "Minimal";
19
+ /**
20
+ * Only Return AlertId of an alert.
21
+ */
22
+ AlertListExpandOption[AlertListExpandOption["IdOnly"] = 2] = "IdOnly";
19
23
  })(AlertListExpandOption = exports.AlertListExpandOption || (exports.AlertListExpandOption = {}));
20
24
  var AlertType;
21
25
  (function (AlertType) {
@@ -74,7 +78,7 @@ define(["require", "exports"], function (require, exports) {
74
78
  */
75
79
  AlertValidityStatus[AlertValidityStatus["Unknown"] = 1] = "Unknown";
76
80
  /**
77
- * When atleast one validation fingerprint associated to the alert is exploitable.
81
+ * When at least one validation fingerprint associated to the alert is exploitable.
78
82
  */
79
83
  AlertValidityStatus[AlertValidityStatus["Active"] = 2] = "Active";
80
84
  /**
@@ -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.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!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.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",e[e.NotDistributed=6]="NotDistributed"}(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.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!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.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported"}(n.ValidationResult||(n.ValidationResult={}))});
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",e[e.IdOnly=2]="IdOnly"}(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.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!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.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",e[e.NotDistributed=6]="NotDistributed"}(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.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!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.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported"}(n.ValidationResult||(n.ValidationResult={}))});
@@ -110,6 +110,12 @@ export declare class AlertRestClient extends RestClientBase {
110
110
  * @param sarifId - Sarif ID returned when the Sarif was uploaded
111
111
  */
112
112
  getSarif(sarifId: number): Promise<Alert.SarifUploadStatus>;
113
+ /**
114
+ * Upload a Sarif file at the organization level
115
+ *
116
+ * @param content - Content to upload
117
+ */
118
+ uploadOrgSarif(content: string): Promise<number>;
113
119
  /**
114
120
  * Get the validity details for an alert.
115
121
  *
@@ -394,6 +394,26 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
394
394
  });
395
395
  });
396
396
  };
397
+ /**
398
+ * Upload a Sarif file at the organization level
399
+ *
400
+ * @param content - Content to upload
401
+ */
402
+ AlertRestClient.prototype.uploadOrgSarif = function (content) {
403
+ return __awaiter(this, void 0, void 0, function () {
404
+ return __generator(this, function (_a) {
405
+ return [2 /*return*/, this.beginRequest({
406
+ apiVersion: "7.2-preview.2",
407
+ method: "POST",
408
+ routeTemplate: "_apis/Alert/Sarifs/{sarifId}",
409
+ customHeaders: {
410
+ "Content-Type": "application/octet-stream",
411
+ },
412
+ body: content
413
+ })];
414
+ });
415
+ });
416
+ };
397
417
  /**
398
418
  * Get the validity details for an alert.
399
419
  *
@@ -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.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.getOrgLevelAlertsByIds=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={alertIds:e&&e.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})]})})},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});
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.getOrgLevelAlertsByIds=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={alertIds:e&&e.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})]})})},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.uploadOrgSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body: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});
@@ -190,6 +190,10 @@ export interface IdentitySnapshot {
190
190
  scopeId: string;
191
191
  scopes: IdentityScope[];
192
192
  }
193
+ export interface IdentityTranslation {
194
+ localId: string;
195
+ masterId: string;
196
+ }
193
197
  export interface IdentityUpdateData {
194
198
  id: string;
195
199
  index: number;
@@ -157,11 +157,11 @@ export interface CodeSecurityFeatures {
157
157
  */
158
158
  codeSecurityEnablementLastChangedDate: Date;
159
159
  /**
160
- * Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
160
+ * Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies.
161
161
  */
162
162
  dependabotEnabled: boolean;
163
163
  /**
164
- * Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
164
+ * Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect.
165
165
  */
166
166
  dependencyScanningInjectionEnabled: boolean;
167
167
  }
@@ -9,64 +9,64 @@ export declare class ManagementRestClient extends RestClientBase {
9
9
  * @param meterUsage -
10
10
  * @param plan -
11
11
  */
12
- createBillingSnapshot3(meterUsage: Management.MeterUsageForPlan, plan: Management.Plan): Promise<void>;
12
+ createBillingSnapshot2(meterUsage: Management.MeterUsageForPlan, plan: Management.Plan): Promise<void>;
13
13
  /**
14
14
  * Get all billable committers details, including those not matched with a VSID.
15
15
  *
16
16
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
17
17
  * @param billingDate - The date to query, or if not provided, today
18
18
  */
19
- getBillableCommitterDetails3(plan: Management.Plan, billingDate?: Date): Promise<Management.BillableCommitterDetails[]>;
19
+ getBillableCommitterDetails2(plan: Management.Plan, billingDate?: Date): Promise<Management.BillableCommitterDetails[]>;
20
20
  /**
21
21
  * @param plan -
22
22
  */
23
- getLastMeterUsage3(plan: Management.Plan): Promise<Management.MeterUsageForPlan>;
23
+ getLastMeterUsage2(plan: Management.Plan): Promise<Management.MeterUsageForPlan>;
24
24
  /**
25
25
  * Get commiters used when calculating billing information.
26
26
  *
27
27
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
28
28
  * @param billingDate - The date to query, or if not provided, today
29
29
  */
30
- getMeterUsage3(plan: Management.Plan, billingDate?: Date): Promise<Management.MeterUsageForPlan>;
30
+ getMeterUsage2(plan: Management.Plan, billingDate?: Date): Promise<Management.MeterUsageForPlan>;
31
31
  /**
32
32
  * Get the current status of Advanced Security for the organization
33
33
  *
34
34
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
35
35
  */
36
- getOrgEnablementStatus3(includeAllProperties?: boolean): Promise<Management.OrgEnablementSettings>;
36
+ getOrgEnablementStatus2(includeAllProperties?: boolean): Promise<Management.OrgEnablementSettings>;
37
37
  /**
38
38
  * Update the status of Advanced Security for the organization
39
39
  *
40
40
  * @param orgEnablementSettings - The new status
41
41
  */
42
- updateOrgEnablementStatus3(orgEnablementSettings: Management.OrgEnablementSettings): Promise<void>;
42
+ updateOrgEnablementStatus2(orgEnablementSettings: Management.OrgEnablementSettings): Promise<void>;
43
43
  /**
44
44
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
45
45
  *
46
46
  * @param plan - The plan to query.
47
47
  */
48
- getEstimatedBillablePushersDetailsForOrg3(plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
48
+ getEstimatedBillablePushersDetailsForOrg2(plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
49
49
  /**
50
50
  * Get the current status of Advanced Security for a project
51
51
  *
52
52
  * @param project - Project ID or project name
53
53
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
54
54
  */
55
- getProjectEnablementStatus3(project: string, includeAllProperties?: boolean): Promise<Management.ProjectEnablementSettings>;
55
+ getProjectEnablementStatus2(project: string, includeAllProperties?: boolean): Promise<Management.ProjectEnablementSettings>;
56
56
  /**
57
57
  * Update the status of Advanced Security for the project
58
58
  *
59
59
  * @param projectEnablementSettings - The new status
60
60
  * @param project - Project ID or project name
61
61
  */
62
- updateProjectEnablementStatus3(projectEnablementSettings: Management.ProjectEnablementSettings, project: string): Promise<void>;
62
+ updateProjectEnablementStatus2(projectEnablementSettings: Management.ProjectEnablementSettings, project: string): Promise<void>;
63
63
  /**
64
64
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
65
65
  *
66
66
  * @param project - Project ID or project name
67
67
  * @param plan -
68
68
  */
69
- getEstimatedBillablePushersDetailsForProject3(project: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
69
+ getEstimatedBillablePushersDetailsForProject2(project: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
70
70
  /**
71
71
  * Determines if Code Security, Secret Protection, and their features are enabled for the repository.
72
72
  *
@@ -74,7 +74,7 @@ export declare class ManagementRestClient extends RestClientBase {
74
74
  * @param repository - The name or ID of the repository
75
75
  * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
76
76
  */
77
- getRepoEnablementStatus3(project: string, repository: string, includeAllProperties?: boolean): Promise<Management.RepoEnablementSettings>;
77
+ getRepoEnablementStatus2(project: string, repository: string, includeAllProperties?: boolean): Promise<Management.RepoEnablementSettings>;
78
78
  /**
79
79
  * Update the enablement status of Code Security and Secret Protection, along with their respective features, for a given repository.
80
80
  *
@@ -82,7 +82,7 @@ export declare class ManagementRestClient extends RestClientBase {
82
82
  * @param project - Project ID or project name
83
83
  * @param repository - Name or ID of the repository
84
84
  */
85
- updateRepoAdvSecEnablementStatus3(savedAdvSecEnablementStatus: Management.RepoEnablementSettings, project: string, repository: string): Promise<void>;
85
+ updateRepoAdvSecEnablementStatus2(savedAdvSecEnablementStatus: Management.RepoEnablementSettings, project: string, repository: string): Promise<void>;
86
86
  /**
87
87
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
88
88
  *
@@ -90,5 +90,5 @@ export declare class ManagementRestClient extends RestClientBase {
90
90
  * @param repository - The name or ID of the repository
91
91
  * @param plan - The plan to query.
92
92
  */
93
- getEstimatedBillableCommittersDetailsForRepo3(project: string, repository: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
93
+ getEstimatedBillableCommittersDetailsForRepo2(project: string, repository: string, plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
94
94
  }
@@ -62,7 +62,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
62
62
  * @param meterUsage -
63
63
  * @param plan -
64
64
  */
65
- ManagementRestClient.prototype.createBillingSnapshot3 = function (meterUsage, plan) {
65
+ ManagementRestClient.prototype.createBillingSnapshot2 = function (meterUsage, plan) {
66
66
  return __awaiter(this, void 0, void 0, function () {
67
67
  var queryValues;
68
68
  return __generator(this, function (_a) {
@@ -88,7 +88,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
88
88
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
89
89
  * @param billingDate - The date to query, or if not provided, today
90
90
  */
91
- ManagementRestClient.prototype.getBillableCommitterDetails3 = function (plan, billingDate) {
91
+ ManagementRestClient.prototype.getBillableCommitterDetails2 = function (plan, billingDate) {
92
92
  return __awaiter(this, void 0, void 0, function () {
93
93
  var queryValues;
94
94
  return __generator(this, function (_a) {
@@ -110,7 +110,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
110
110
  /**
111
111
  * @param plan -
112
112
  */
113
- ManagementRestClient.prototype.getLastMeterUsage3 = function (plan) {
113
+ ManagementRestClient.prototype.getLastMeterUsage2 = function (plan) {
114
114
  return __awaiter(this, void 0, void 0, function () {
115
115
  var queryValues;
116
116
  return __generator(this, function (_a) {
@@ -134,7 +134,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
134
134
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
135
135
  * @param billingDate - The date to query, or if not provided, today
136
136
  */
137
- ManagementRestClient.prototype.getMeterUsage3 = function (plan, billingDate) {
137
+ ManagementRestClient.prototype.getMeterUsage2 = function (plan, billingDate) {
138
138
  return __awaiter(this, void 0, void 0, function () {
139
139
  var queryValues;
140
140
  return __generator(this, function (_a) {
@@ -158,7 +158,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
158
158
  *
159
159
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
160
160
  */
161
- ManagementRestClient.prototype.getOrgEnablementStatus3 = function (includeAllProperties) {
161
+ ManagementRestClient.prototype.getOrgEnablementStatus2 = function (includeAllProperties) {
162
162
  return __awaiter(this, void 0, void 0, function () {
163
163
  var queryValues;
164
164
  return __generator(this, function (_a) {
@@ -178,7 +178,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
178
178
  *
179
179
  * @param orgEnablementSettings - The new status
180
180
  */
181
- ManagementRestClient.prototype.updateOrgEnablementStatus3 = function (orgEnablementSettings) {
181
+ ManagementRestClient.prototype.updateOrgEnablementStatus2 = function (orgEnablementSettings) {
182
182
  return __awaiter(this, void 0, void 0, function () {
183
183
  return __generator(this, function (_a) {
184
184
  return [2 /*return*/, this.beginRequest({
@@ -195,7 +195,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
195
195
  *
196
196
  * @param plan - The plan to query.
197
197
  */
198
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg3 = function (plan) {
198
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg2 = function (plan) {
199
199
  return __awaiter(this, void 0, void 0, function () {
200
200
  var queryValues;
201
201
  return __generator(this, function (_a) {
@@ -219,7 +219,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
219
219
  * @param project - Project ID or project name
220
220
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
221
221
  */
222
- ManagementRestClient.prototype.getProjectEnablementStatus3 = function (project, includeAllProperties) {
222
+ ManagementRestClient.prototype.getProjectEnablementStatus2 = function (project, includeAllProperties) {
223
223
  return __awaiter(this, void 0, void 0, function () {
224
224
  var queryValues;
225
225
  return __generator(this, function (_a) {
@@ -243,7 +243,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
243
243
  * @param projectEnablementSettings - The new status
244
244
  * @param project - Project ID or project name
245
245
  */
246
- ManagementRestClient.prototype.updateProjectEnablementStatus3 = function (projectEnablementSettings, project) {
246
+ ManagementRestClient.prototype.updateProjectEnablementStatus2 = function (projectEnablementSettings, project) {
247
247
  return __awaiter(this, void 0, void 0, function () {
248
248
  return __generator(this, function (_a) {
249
249
  return [2 /*return*/, this.beginRequest({
@@ -264,7 +264,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
264
264
  * @param project - Project ID or project name
265
265
  * @param plan -
266
266
  */
267
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject3 = function (project, plan) {
267
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject2 = function (project, plan) {
268
268
  return __awaiter(this, void 0, void 0, function () {
269
269
  var queryValues;
270
270
  return __generator(this, function (_a) {
@@ -290,7 +290,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
290
290
  * @param repository - The name or ID of the repository
291
291
  * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
292
292
  */
293
- ManagementRestClient.prototype.getRepoEnablementStatus3 = function (project, repository, includeAllProperties) {
293
+ ManagementRestClient.prototype.getRepoEnablementStatus2 = function (project, repository, includeAllProperties) {
294
294
  return __awaiter(this, void 0, void 0, function () {
295
295
  var queryValues;
296
296
  return __generator(this, function (_a) {
@@ -316,7 +316,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
316
316
  * @param project - Project ID or project name
317
317
  * @param repository - Name or ID of the repository
318
318
  */
319
- ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus3 = function (savedAdvSecEnablementStatus, project, repository) {
319
+ ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus2 = function (savedAdvSecEnablementStatus, project, repository) {
320
320
  return __awaiter(this, void 0, void 0, function () {
321
321
  return __generator(this, function (_a) {
322
322
  return [2 /*return*/, this.beginRequest({
@@ -339,7 +339,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
339
339
  * @param repository - The name or ID of the repository
340
340
  * @param plan - The plan to query.
341
341
  */
342
- ManagementRestClient.prototype.getEstimatedBillableCommittersDetailsForRepo3 = function (project, repository, plan) {
342
+ ManagementRestClient.prototype.getEstimatedBillableCommittersDetailsForRepo2 = function (project, repository, plan) {
343
343
  return __awaiter(this, void 0, void 0, function () {
344
344
  var queryValues;
345
345
  return __generator(this, function (_a) {
@@ -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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){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=t.call(e,u)}catch(e){r=[6,e],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"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createBillingSnapshot3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r,body:e})]})})},t.prototype.getBillableCommitterDetails3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:r})]})})},t.prototype.getLastMeterUsage3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"},queryParams:t})]})})},t.prototype.getMeterUsage3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r})]})})},t.prototype.getOrgEnablementStatus3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus3=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/meterUsageEstimate/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getProjectEnablementStatus3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus3=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Default"},queryParams:r})]})})},t.prototype.getRepoEnablementStatus3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getEstimatedBillableCommittersDetailsForRepo3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={plan:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:n})]})})},t}(r.RestClientBase);t.ManagementRestClient=n});
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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){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=t.call(e,u)}catch(e){r=[6,e],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"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createBillingSnapshot2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r,body:e})]})})},t.prototype.getBillableCommitterDetails2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:r})]})})},t.prototype.getLastMeterUsage2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"},queryParams:t})]})})},t.prototype.getMeterUsage2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r})]})})},t.prototype.getOrgEnablementStatus2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus2=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/meterUsageEstimate/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getProjectEnablementStatus2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus2=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Default"},queryParams:r})]})})},t.prototype.getRepoEnablementStatus2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getEstimatedBillableCommittersDetailsForRepo2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={plan:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:n})]})})},t}(r.RestClientBase);t.ManagementRestClient=n});
@@ -986,14 +986,12 @@ export interface EnvironmentReference {
986
986
  id: number;
987
987
  name: string;
988
988
  }
989
- export interface EnvironmentResource {
989
+ export interface EnvironmentResource extends EnvironmentReference {
990
990
  createdBy: WebApi.IdentityRef;
991
991
  createdOn: Date;
992
992
  environmentReference: EnvironmentReference;
993
- id: number;
994
993
  lastModifiedBy: WebApi.IdentityRef;
995
994
  lastModifiedOn: Date;
996
- name: string;
997
995
  /**
998
996
  * Tags of the Environment Resource.
999
997
  */
@@ -3730,6 +3728,9 @@ export interface VirtualMachineResource extends EnvironmentResource {
3730
3728
  export interface VirtualMachineResourceCreateParameters {
3731
3729
  virtualMachineResource: VirtualMachineResource;
3732
3730
  }
3731
+ export interface VirtualMachineResourceMinReference extends EnvironmentReference {
3732
+ agent: TaskAgentReference;
3733
+ }
3733
3734
  export interface WorkloadIdentityFederationDetailsData {
3734
3735
  federationIssuer: string;
3735
3736
  federationSubject: string;
package/Test/Test.d.ts CHANGED
@@ -2819,6 +2819,35 @@ export interface TestCaseFileInfo {
2819
2819
  name: string;
2820
2820
  testCaseId: number;
2821
2821
  }
2822
+ /**
2823
+ * Represents a Test Case Flakiness Branch Information.
2824
+ */
2825
+ export interface TestCaseFlakinessBranchInfo {
2826
+ /**
2827
+ * AutomatedTestName of test result.
2828
+ */
2829
+ automatedTestName: string;
2830
+ /**
2831
+ * AutomatedTestStorage of test result.
2832
+ */
2833
+ automatedTestStorage: string;
2834
+ /**
2835
+ * List of Branches where Test Case Reference Id has flaked.
2836
+ */
2837
+ flakyBranches: string[];
2838
+ /**
2839
+ * Time when the test was last run.
2840
+ */
2841
+ lastRefTestRunDate: Date;
2842
+ /**
2843
+ * ID of TestCaseReference.
2844
+ */
2845
+ testCaseReferenceId: number;
2846
+ /**
2847
+ * TestCaseTitle of test result.
2848
+ */
2849
+ testCaseTitle: string;
2850
+ }
2822
2851
  export interface TestCaseMetadata2 {
2823
2852
  container: string;
2824
2853
  name: string;
@@ -231,6 +231,13 @@ export declare class TestResultsRestClient extends RestClientBase {
231
231
  * @param runId -
232
232
  */
233
233
  getFlakyTestResultsByTestRun(project: string, runId: number): Promise<Test.TestCaseResult[]>;
234
+ /**
235
+ * Get list of branches where a test case reference id has flaked
236
+ *
237
+ * @param project - Project ID or project name
238
+ * @param testCaseReferenceId - Reference ID of test used by test result
239
+ */
240
+ getBranchesByFlakyTestCaseRefId(project: string, testCaseReferenceId: number): Promise<Test.TestCaseFlakinessBranchInfo>;
234
241
  /**
235
242
  * @param filter -
236
243
  * @param project - Project ID or project name