azure-devops-extension-api 4.256.0 → 4.258.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Alert/Alert.d.ts CHANGED
@@ -205,6 +205,7 @@ export declare enum AlertValidationRequestStatus {
205
205
  * Validity data for an alert that will be part of Alerts APIs and UI.
206
206
  */
207
207
  export interface AlertValidityInfo {
208
+ isDynamicAnalysisSupported: boolean;
208
209
  validityLastCheckedDate: Date;
209
210
  validityStatus: AlertValidityStatus;
210
211
  }
@@ -532,7 +533,11 @@ export declare enum DismissalType {
532
533
  /**
533
534
  * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
534
535
  */
535
- ToolUpgrade = 5
536
+ ToolUpgrade = 5,
537
+ /**
538
+ * Dismissal indicating the affected dependencency is not distributed to end users.
539
+ */
540
+ NotDistributed = 6
536
541
  }
537
542
  export declare enum ExpandOption {
538
543
  /**
@@ -573,6 +578,10 @@ export interface License {
573
578
  * License state
574
579
  */
575
580
  state: LicenseState;
581
+ /**
582
+ * License type
583
+ */
584
+ type: LicenseType;
576
585
  /**
577
586
  * Url for license information
578
587
  */
@@ -592,6 +601,39 @@ export declare enum LicenseState {
592
601
  */
593
602
  Harvested = 2
594
603
  }
604
+ /**
605
+ * Enumerates types of licenses.
606
+ */
607
+ export declare enum LicenseType {
608
+ /**
609
+ * The license type is unknown or not specified.
610
+ */
611
+ Unknown = 0,
612
+ /**
613
+ * A permissive license allows software to be freely used, modified, and distributed with minimal restrictions. Examples: MIT, Apache 2.0.
614
+ */
615
+ Permissive = 1,
616
+ /**
617
+ * A weak copyleft license requires modifications to the software to be shared under the same license, but does not impose restrictions on larger works that include the software. Examples: LGPL.
618
+ */
619
+ WeakCopyleft = 2,
620
+ /**
621
+ * A strong copyleft license requires that any derivative works or larger works that include the software must also be distributed under the same license. Examples: GPL.
622
+ */
623
+ StrongCopyleft = 3,
624
+ /**
625
+ * A network copyleft license extends the copyleft requirement to software that is accessed over a network, requiring the source code to be made available. Examples: AGPL.
626
+ */
627
+ NetworkCopyleft = 4,
628
+ /**
629
+ * A license that does not fit into the standard categories or is custom-defined. In CG, it indicates a commercial license.
630
+ */
631
+ Other = 5,
632
+ /**
633
+ * No assertion is made about the license type, leaving it unspecified.
634
+ */
635
+ NoAssertion = 6
636
+ }
595
637
  export interface LogicalLocation {
596
638
  fullyQualifiedName: string;
597
639
  /**
@@ -1027,7 +1069,7 @@ export interface ValidationFingerprint {
1027
1069
  */
1028
1070
  validationFingerprintHash: string;
1029
1071
  /**
1030
- * The JSON representation of the secret.
1072
+ * The JSON representation of the secret. Be aware that this field may contain the secret in its unencrypted form. Please exercise caution when using this field.
1031
1073
  */
1032
1074
  validationFingerprintJson: string;
1033
1075
  /**
package/Alert/Alert.js CHANGED
@@ -214,6 +214,10 @@ define(["require", "exports"], function (require, exports) {
214
214
  * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
215
215
  */
216
216
  DismissalType[DismissalType["ToolUpgrade"] = 5] = "ToolUpgrade";
217
+ /**
218
+ * Dismissal indicating the affected dependencency is not distributed to end users.
219
+ */
220
+ DismissalType[DismissalType["NotDistributed"] = 6] = "NotDistributed";
217
221
  })(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
218
222
  var ExpandOption;
219
223
  (function (ExpandOption) {
@@ -241,6 +245,40 @@ define(["require", "exports"], function (require, exports) {
241
245
  */
242
246
  LicenseState[LicenseState["Harvested"] = 2] = "Harvested";
243
247
  })(LicenseState = exports.LicenseState || (exports.LicenseState = {}));
248
+ /**
249
+ * Enumerates types of licenses.
250
+ */
251
+ var LicenseType;
252
+ (function (LicenseType) {
253
+ /**
254
+ * The license type is unknown or not specified.
255
+ */
256
+ LicenseType[LicenseType["Unknown"] = 0] = "Unknown";
257
+ /**
258
+ * A permissive license allows software to be freely used, modified, and distributed with minimal restrictions. Examples: MIT, Apache 2.0.
259
+ */
260
+ LicenseType[LicenseType["Permissive"] = 1] = "Permissive";
261
+ /**
262
+ * A weak copyleft license requires modifications to the software to be shared under the same license, but does not impose restrictions on larger works that include the software. Examples: LGPL.
263
+ */
264
+ LicenseType[LicenseType["WeakCopyleft"] = 2] = "WeakCopyleft";
265
+ /**
266
+ * A strong copyleft license requires that any derivative works or larger works that include the software must also be distributed under the same license. Examples: GPL.
267
+ */
268
+ LicenseType[LicenseType["StrongCopyleft"] = 3] = "StrongCopyleft";
269
+ /**
270
+ * A network copyleft license extends the copyleft requirement to software that is accessed over a network, requiring the source code to be made available. Examples: AGPL.
271
+ */
272
+ LicenseType[LicenseType["NetworkCopyleft"] = 4] = "NetworkCopyleft";
273
+ /**
274
+ * A license that does not fit into the standard categories or is custom-defined. In CG, it indicates a commercial license.
275
+ */
276
+ LicenseType[LicenseType["Other"] = 5] = "Other";
277
+ /**
278
+ * No assertion is made about the license type, leaving it unspecified.
279
+ */
280
+ LicenseType[LicenseType["NoAssertion"] = 6] = "NoAssertion";
281
+ })(LicenseType = exports.LicenseType || (exports.LicenseType = {}));
244
282
  /**
245
283
  * The type of change that occurred to the metadata.
246
284
  */
@@ -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"}(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.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive"}(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"}(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"}(n.ValidationResult||(n.ValidationResult={}))});
@@ -11,7 +11,7 @@ export declare class AlertRestClient extends RestClientBase {
11
11
  * @param alertId - ID of alert to retrieve
12
12
  * @param repository - Name or id of a repository that alert is part of
13
13
  * @param ref -
14
- * @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
14
+ * @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
15
15
  */
16
16
  getAlert(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<Alert.Alert>;
17
17
  /**
@@ -33,7 +33,7 @@ export declare class AlertRestClient extends RestClientBase {
33
33
  * @param alertId - ID of alert to retrieve
34
34
  * @param repository - Name or id of a repository that alert is part of
35
35
  * @param ref -
36
- * @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
36
+ * @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
37
37
  */
38
38
  getAlertSarif(project: string, alertId: number, repository: string, ref?: string, expand?: Alert.ExpandOption): Promise<string>;
39
39
  /**
@@ -63,7 +63,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
63
63
  * @param alertId - ID of alert to retrieve
64
64
  * @param repository - Name or id of a repository that alert is part of
65
65
  * @param ref -
66
- * @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
66
+ * @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
67
67
  */
68
68
  AlertRestClient.prototype.getAlert = function (project, alertId, repository, ref, expand) {
69
69
  return __awaiter(this, void 0, void 0, function () {
@@ -140,7 +140,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
140
140
  * @param alertId - ID of alert to retrieve
141
141
  * @param repository - Name or id of a repository that alert is part of
142
142
  * @param ref -
143
- * @param expand - Expand alert attributes. Possible options are \{ValidationFingerprint, None\}
143
+ * @param expand - Expand attributes of a secret alert. Possible values are \`None\` and \`ValidationFingerprint\`. Defaults to \`None\`. Be aware that if \`expand\` is set to \`ValidationFingerprint\`, the response may contain the secret in its unencrypted form. Please exercise caution when using this data.
144
144
  */
145
145
  AlertRestClient.prototype.getAlertSarif = function (project, alertId, repository, ref, expand) {
146
146
  return __awaiter(this, void 0, void 0, function () {
@@ -1,4 +1,57 @@
1
1
  import * as WebApi from "../WebApi/WebApi";
2
+ export interface AdvSecEnablementFeatures {
3
+ /**
4
+ * Auto enablement of AdvSec for new projects or repos will be enabled when set to true and will be unchanged when set to false.
5
+ */
6
+ autoEnableNewProjectOrRepos: boolean;
7
+ /**
8
+ * CodeQL enablement status set to False when disabled and True when enabled; Null is never explicitly set.
9
+ */
10
+ codeQLEnabled: boolean;
11
+ /**
12
+ * 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.
13
+ */
14
+ dependabotEnabled: boolean;
15
+ /**
16
+ * 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.
17
+ */
18
+ dependencyScanningInjectionEnabled: boolean;
19
+ }
20
+ export interface AdvSecEnablementSettings {
21
+ /**
22
+ * Automatically enable Advanced Security on newly created repositories.
23
+ */
24
+ enableOnCreate: boolean;
25
+ reposEnablementStatus: AdvSecEnablementStatus[];
26
+ }
27
+ export interface AdvSecEnablementSettingsUpdate extends AdvSecEnablementStatusUpdate {
28
+ /**
29
+ * Automatically enable Advanced Security on newly created repositories.
30
+ */
31
+ enableOnCreate: boolean;
32
+ }
33
+ export interface AdvSecEnablementStatus extends AdvSecEnablementStatusUpdate {
34
+ /**
35
+ * The last time the status of Advanced Security for this repository was updated
36
+ */
37
+ advSecEnablementLastChangedDate: Date;
38
+ projectId: string;
39
+ repositoryId: string;
40
+ }
41
+ export interface AdvSecEnablementStatusUpdate {
42
+ /**
43
+ * Advanced Security enablement status set to False when disabled and True when enabled; Null is never explicitly set.
44
+ */
45
+ advSecEnabled: boolean;
46
+ /**
47
+ * Includes additional features that can be enabled alongside Advanced Security.
48
+ */
49
+ advSecEnablementFeatures: AdvSecEnablementFeatures;
50
+ /**
51
+ * When true, pushes containing secrets will be blocked. \<br /\>When false, pushes are scanned for secrets and are not blocked. \<br /\>If includeAllProperties in the request is false, this value will be null.
52
+ */
53
+ blockPushes: boolean;
54
+ }
2
55
  /**
3
56
  * Billable Committers Details for Advanced Security Services
4
57
  */
@@ -122,6 +175,52 @@ export interface EnablementOnCreateSettings {
122
175
  */
123
176
  enableSecretProtectionOnCreate: boolean;
124
177
  }
178
+ /**
179
+ * Information related to billing for Advanced Security services
180
+ */
181
+ export interface MeterUsage {
182
+ /**
183
+ * The Azure DevOps account
184
+ */
185
+ accountId: string;
186
+ azureSubscriptionId: string;
187
+ /**
188
+ * Deprecated - use BilledCommittersIdentities instead A list of Cuids for the commiters to the repositories that have Advanced Security features enabled
189
+ */
190
+ billedCommitters: string[];
191
+ /**
192
+ * A list of BilledCommitter objects that contain the identityRef of committers that have AdvSec enabled
193
+ */
194
+ billedUsers: BilledCommitter[];
195
+ /**
196
+ * The date this billing information pertains to
197
+ */
198
+ billingDate: Date;
199
+ /**
200
+ * A list of BilledCommitter objects that contain the identityRef of committers that have Code Security Plan enabled. This list is populated only for organizations that can enable or disable the Code Security Plan.
201
+ */
202
+ codeSecurityBilledUsers: BilledCommitter[];
203
+ /**
204
+ * True when a bill is generated for Advanced Security feature usage in this organziation
205
+ */
206
+ isAdvSecBillable: boolean;
207
+ /**
208
+ * True when Advanced Security features are enabled in this organization
209
+ */
210
+ isAdvSecEnabled: boolean;
211
+ /**
212
+ * A list of BilledCommitter objects that contain the identityRef of committers that have Secret Protection Plan enabled. This list is populated only for organizations that can enable or disable the Secret Protection Plan.
213
+ */
214
+ secretProtectionBilledUsers: BilledCommitter[];
215
+ /**
216
+ * The Azure subscription
217
+ */
218
+ tenantId: string;
219
+ /**
220
+ * The number of commiters to repositories that have Advanced Security features enabled
221
+ */
222
+ uniqueCommitterCount: number;
223
+ }
125
224
  /**
126
225
  * Information related to meter usage estimate for Code Security plan and/or Secret Protection plan
127
226
  */
@@ -170,6 +269,10 @@ export interface OrgEnablementSettings {
170
269
  * Auto enablement setting for newly created repositories.
171
270
  */
172
271
  enablementOnCreateSettings: EnablementOnCreateSettings;
272
+ /**
273
+ * Indicates whether the organization is part of the bundled SKU (old billing plan) or unbundled SKUs (new billing plan).
274
+ */
275
+ isBundledSKU: boolean;
173
276
  /**
174
277
  * A list of enablement statuses for repositories within the specified organization or project.
175
278
  */
@@ -206,6 +309,10 @@ export interface ProjectEnablementSettings {
206
309
  * Auto enablement setting for newly created repositories.
207
310
  */
208
311
  enablementOnCreateSettings: EnablementOnCreateSettings;
312
+ /**
313
+ * Indicates whether the organization is part of the bundled SKU (old billing plan) or unbundled SKUs (new billing plan).
314
+ */
315
+ isBundledSKU: boolean;
209
316
  /**
210
317
  * A list of enablement statuses for repositories within the specified organization or project.
211
318
  */
@@ -45,7 +45,7 @@ export declare class ManagementRestClient extends RestClientBase {
45
45
  *
46
46
  * @param plan - The plan to query.
47
47
  */
48
- getEstimatedBillablePushersDetailsForOrg3(plan: Management.Plan): Promise<Management.MeterUsageEstimate>;
48
+ getEstimatedBillablePushersDetailsForOrg3(plan?: Management.Plan): Promise<Management.MeterUsageEstimate>;
49
49
  /**
50
50
  * Get the current status of Advanced Security for a project
51
51
  *
@@ -78,10 +78,9 @@ export declare class ServiceEndpointRestClient extends RestClientBase {
78
78
  * @param project - Project ID or project name
79
79
  * @param endpointId - Id of the service endpoint.
80
80
  * @param actionFilter - Action filter for the service connection. It specifies the action which can be performed on the service connection.
81
- * @param loadConfidetantialData - Flag to include confidential details of service endpoint. This is for internal use only. [Obsolete] This parameter is obsolete and will be removed. Use loadConfidentialData instead.
82
81
  * @param loadConfidentialData - Flag to include confidential details of service endpoint. This is for internal use only.
83
82
  */
84
- getServiceEndpointDetails(project: string, endpointId: string, actionFilter?: ServiceEndpoint.ServiceEndpointActionFilter, loadConfidetantialData?: boolean, loadConfidentialData?: boolean): Promise<ServiceEndpoint.ServiceEndpoint>;
83
+ getServiceEndpointDetails(project: string, endpointId: string, actionFilter?: ServiceEndpoint.ServiceEndpointActionFilter, loadConfidentialData?: boolean): Promise<ServiceEndpoint.ServiceEndpoint>;
85
84
  /**
86
85
  * Get the service endpoints.
87
86
  *
@@ -269,16 +269,14 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
269
269
  * @param project - Project ID or project name
270
270
  * @param endpointId - Id of the service endpoint.
271
271
  * @param actionFilter - Action filter for the service connection. It specifies the action which can be performed on the service connection.
272
- * @param loadConfidetantialData - Flag to include confidential details of service endpoint. This is for internal use only. [Obsolete] This parameter is obsolete and will be removed. Use loadConfidentialData instead.
273
272
  * @param loadConfidentialData - Flag to include confidential details of service endpoint. This is for internal use only.
274
273
  */
275
- ServiceEndpointRestClient.prototype.getServiceEndpointDetails = function (project, endpointId, actionFilter, loadConfidetantialData, loadConfidentialData) {
274
+ ServiceEndpointRestClient.prototype.getServiceEndpointDetails = function (project, endpointId, actionFilter, loadConfidentialData) {
276
275
  return __awaiter(this, void 0, void 0, function () {
277
276
  var queryValues;
278
277
  return __generator(this, function (_a) {
279
278
  queryValues = {
280
279
  actionFilter: actionFilter,
281
- loadConfidetantialData: loadConfidetantialData,
282
280
  loadConfidentialData: loadConfidentialData
283
281
  };
284
282
  return [2 /*return*/, this.beginRequest({
@@ -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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function u(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(u){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(o=2&n[0]?r.return:n[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,n[1])).done)return o;switch(r=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,u])}}var i,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAzureManagementGroups=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/endpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/endpointproxy/azurermsubscriptions"})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={projectIds:t&&t.join(","),deep:n},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"DELETE",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointsByTypeAndOwner=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,owner:t},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",queryParams:n})]})})},t.prototype.shareServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},body:e})]})})},t.prototype.updateServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={operation:n},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},queryParams:i,body:e})]})})},t.prototype.updateServiceEndpoints=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.getServiceEndpointDetails=function(e,t,n,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={actionFilter:n,loadConfidetantialData:i,loadConfidentialData:r},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e,endpointId:t},queryParams:o})]})})},t.prototype.getServiceEndpoints=function(e,t,n,i,r,o,u,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(p){return s={type:t,authSchemes:n&&n.join(","),endpointIds:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u,actionFilter:a},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={endpointNames:t&&t.join(","),type:n,authSchemes:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsWithRefreshedAuthentication=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointIds:n&&n.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={top:n,continuationToken:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/serviceendpoint/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(i.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.createOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",body:e})]})})},t.prototype.deleteOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={endpointType:e,actionFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",queryParams:n})]})})},t.prototype.updateOAuthConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:t},body:e})]})})},t.prototype.querySharedProjects=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={project:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:n})]})})},t.prototype.shareEndpointWithProject=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={fromProject:t,withProject:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,scheme:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/types",queryParams:n})]})})},t.prototype.createAadOAuthRequest=function(e,t,n,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={tenantId:e,redirectUri:t,promptOption:n,completeCallbackPayload:i,completeCallbackByAuthCode:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",queryParams:o})]})})},t.prototype.getVstsAadTenantId=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7",t}(n.RestClientBase);t.ServiceEndpointRestClient=r});
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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function u(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(u){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(o=2&n[0]?r.return:n[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,n[1])).done)return o;switch(r=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,u])}}var i,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAzureManagementGroups=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/endpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/endpointproxy/azurermsubscriptions"})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={projectIds:t&&t.join(","),deep:n},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"DELETE",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointsByTypeAndOwner=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,owner:t},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",queryParams:n})]})})},t.prototype.shareServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},body:e})]})})},t.prototype.updateServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={operation:n},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},queryParams:i,body:e})]})})},t.prototype.updateServiceEndpoints=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.getServiceEndpointDetails=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={actionFilter:n,loadConfidentialData:i},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e,endpointId:t},queryParams:r})]})})},t.prototype.getServiceEndpoints=function(e,t,n,i,r,o,u,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(p){return s={type:t,authSchemes:n&&n.join(","),endpointIds:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u,actionFilter:a},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={endpointNames:t&&t.join(","),type:n,authSchemes:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"7.2-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsWithRefreshedAuthentication=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointIds:n&&n.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={top:n,continuationToken:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/serviceendpoint/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(i.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.createOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",body:e})]})})},t.prototype.deleteOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfiguration=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={endpointType:e,actionFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",queryParams:n})]})})},t.prototype.updateOAuthConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:t},body:e})]})})},t.prototype.querySharedProjects=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={project:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:n})]})})},t.prototype.shareEndpointWithProject=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={fromProject:t,withProject:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,scheme:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/types",queryParams:n})]})})},t.prototype.createAadOAuthRequest=function(e,t,n,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={tenantId:e,redirectUri:t,promptOption:n,completeCallbackPayload:i,completeCallbackByAuthCode:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",queryParams:o})]})})},t.prototype.getVstsAadTenantId=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7",t}(n.RestClientBase);t.ServiceEndpointRestClient=r});
@@ -593,6 +593,13 @@ export declare class TestResultsRestClient extends RestClientBase {
593
593
  * @param releaseEnvId - Release environment ID
594
594
  */
595
595
  getTestTagSummaryForRelease(project: string, releaseId: number, releaseEnvId: number): Promise<Test.TestTagSummary>;
596
+ /**
597
+ * Generates manual test plan from a work item using AI
598
+ *
599
+ * @param project - Project ID or project name
600
+ * @param workItemId -
601
+ */
602
+ generateTestPlanFromWorkItem(project: string, workItemId: number): Promise<boolean>;
596
603
  /**
597
604
  * Creates an attachment in the LogStore for the specified buildId.
598
605
  *
@@ -2037,6 +2037,27 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2037
2037
  });
2038
2038
  });
2039
2039
  };
2040
+ /**
2041
+ * Generates manual test plan from a work item using AI
2042
+ *
2043
+ * @param project - Project ID or project name
2044
+ * @param workItemId -
2045
+ */
2046
+ TestResultsRestClient.prototype.generateTestPlanFromWorkItem = function (project, workItemId) {
2047
+ return __awaiter(this, void 0, void 0, function () {
2048
+ return __generator(this, function (_a) {
2049
+ return [2 /*return*/, this.beginRequest({
2050
+ apiVersion: "7.2-preview.1",
2051
+ method: "POST",
2052
+ routeTemplate: "{project}/_apis/testresults/testai/generatetestplanfromworkitem/{workItemId}",
2053
+ routeValues: {
2054
+ project: project,
2055
+ workItemId: workItemId
2056
+ }
2057
+ })];
2058
+ });
2059
+ });
2060
+ };
2040
2061
  /**
2041
2062
  * Creates an attachment in the LogStore for the specified buildId.
2042
2063
  *