azure-devops-extension-api 4.239.0 → 4.240.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
@@ -375,6 +375,21 @@ export interface Dependency {
375
375
  */
376
376
  license: License;
377
377
  }
378
+ export declare enum DependencyKind {
379
+ Unknown = 0,
380
+ /**
381
+ * The root dependency introduced the component being alerted.
382
+ */
383
+ RootDependency = 1,
384
+ /**
385
+ * The component being alerted.
386
+ */
387
+ Component = 2,
388
+ /**
389
+ * Vulnerable Dependency. Deprecating this value. Use Component instead.
390
+ */
391
+ VulnerableDependency = 3
392
+ }
378
393
  /**
379
394
  * An instance of a vulnerable dependency that was detected
380
395
  */
@@ -442,7 +457,11 @@ export declare enum DismissalType {
442
457
  /**
443
458
  * Dismissal indicating alert is a false positive and will likely not be fixed.
444
459
  */
445
- FalsePositive = 3
460
+ FalsePositive = 3,
461
+ /**
462
+ * Dismissal indicating user is agreeing to follow license guidance.
463
+ */
464
+ AgreedToGuidance = 4
446
465
  }
447
466
  export declare enum ExpandOption {
448
467
  /**
@@ -458,10 +477,6 @@ export declare enum ExpandOption {
458
477
  * License information for dependencies
459
478
  */
460
479
  export interface License {
461
- /**
462
- * Unique ID for the license
463
- */
464
- id: number;
465
480
  /**
466
481
  * License name
467
482
  */
@@ -492,9 +507,13 @@ export declare enum LicenseState {
492
507
  export interface LogicalLocation {
493
508
  fullyQualifiedName: string;
494
509
  /**
495
- * Possible values: "unknown" "rootDependency" and "vulnerableDependency"
510
+ * Dependency kind of this logical location.
511
+ */
512
+ kind: DependencyKind;
513
+ /**
514
+ * License information for Dependency Only applicable when Kind is "Component" and the alertType of the alert with this location is License
496
515
  */
497
- kind: string;
516
+ license: License;
498
517
  }
499
518
  /**
500
519
  * The metadata operation to be performed on the alert.
@@ -753,7 +772,7 @@ export interface SearchCriteria {
753
772
  */
754
773
  confidenceLevels: Confidence[];
755
774
  /**
756
- * If provided, only alerts for this dependency are returned. \<br /\>Otherwise, return alerts for all dependencies. \<br /\>In a sarif submission, a dependency (or a vulnerable component) is specified in result.RelatedLocations[].logicalLocation.
775
+ * If provided, only alerts for this dependency are returned. \<br /\>Otherwise, return alerts for all dependencies. \<br /\>In a sarif submission, a dependency (or a component) is specified in result.RelatedLocations[].logicalLocation.
757
776
  */
758
777
  dependencyName: string;
759
778
  /**
@@ -764,6 +783,10 @@ export interface SearchCriteria {
764
783
  * If provided, only return alerts whose titles match this pattern.
765
784
  */
766
785
  keywords: string;
786
+ /**
787
+ * If provided, only alerts created for dependency with this license are returned. \<br /\>Otherwise, return alerts for all licenses. \<br /\>In a sarif submission, license for a dependency (or a component) is specified in result.RelatedLocations[].logicalLocation.properties.license.
788
+ */
789
+ licenseName: string;
767
790
  /**
768
791
  * If provided, only return alerts that were modified since this date. \<br /\>Otherwise return all alerts.
769
792
  */
@@ -860,29 +883,45 @@ export interface Tool {
860
883
  }
861
884
  export interface UxFilters {
862
885
  /**
863
- * Branches to display alerts for. If empty, show alerts from all branches
886
+ * Display alerts for specified branches. Show alerts for all branches if none are specified.
864
887
  */
865
888
  branches: Branch[];
866
889
  /**
867
- * Confidence levels to show, only valid when AlertType is Secret.
890
+ * Display alerts for specified confidence levels. Show alerts for all confidence levels. if none are specified.
868
891
  */
869
892
  confidenceLevels: Confidence[];
893
+ /**
894
+ * Display alerts for specified licenses. Show alerts for all licenses if none are specified.
895
+ */
896
+ licenses: License[];
897
+ /**
898
+ * Display alerts for specified packages. Show alerts for all packages if none are specified.
899
+ */
870
900
  packages: Dependency[];
871
901
  /**
872
- * Pipelines to show alerts for. If empty, show alerts for all pipelines
902
+ * Display alerts for specified pipelines. Show alerts for all pipelines if none are specified.
873
903
  */
874
904
  pipelines: Pipeline[];
875
905
  progressPercentage: number;
906
+ /**
907
+ * Display alerts for specified rules. Show alerts for all rules if none are specified.
908
+ */
876
909
  rules: Rule[];
910
+ /**
911
+ * Display alerts for specified secret types. Show alerts for all secret types if none are specified.
912
+ */
877
913
  secretTypes: string[];
878
914
  /**
879
- * Alert severities to show. If empty show all alert servities
915
+ * Display alerts for specified severities. Show alerts for all severities if none are specified.
880
916
  */
881
917
  severities: Severity[];
882
918
  /**
883
- * Alert states to show. If empty show all alert states
919
+ * Display alerts for specified states. Show alerts for all states if none are specified.
884
920
  */
885
921
  states: State[];
922
+ /**
923
+ * Display alerts for specified tools. Show alerts for all tools if none are specified.
924
+ */
886
925
  tools: Tool[];
887
926
  }
888
927
  export interface ValidationFingerprint {
package/Alert/Alert.js CHANGED
@@ -119,6 +119,22 @@ define(["require", "exports"], function (require, exports) {
119
119
  */
120
120
  Confidence[Confidence["Other"] = 1] = "Other";
121
121
  })(Confidence = exports.Confidence || (exports.Confidence = {}));
122
+ var DependencyKind;
123
+ (function (DependencyKind) {
124
+ DependencyKind[DependencyKind["Unknown"] = 0] = "Unknown";
125
+ /**
126
+ * The root dependency introduced the component being alerted.
127
+ */
128
+ DependencyKind[DependencyKind["RootDependency"] = 1] = "RootDependency";
129
+ /**
130
+ * The component being alerted.
131
+ */
132
+ DependencyKind[DependencyKind["Component"] = 2] = "Component";
133
+ /**
134
+ * Vulnerable Dependency. Deprecating this value. Use Component instead.
135
+ */
136
+ DependencyKind[DependencyKind["VulnerableDependency"] = 3] = "VulnerableDependency";
137
+ })(DependencyKind = exports.DependencyKind || (exports.DependencyKind = {}));
122
138
  var DismissalType;
123
139
  (function (DismissalType) {
124
140
  /**
@@ -137,6 +153,10 @@ define(["require", "exports"], function (require, exports) {
137
153
  * Dismissal indicating alert is a false positive and will likely not be fixed.
138
154
  */
139
155
  DismissalType[DismissalType["FalsePositive"] = 3] = "FalsePositive";
156
+ /**
157
+ * Dismissal indicating user is agreeing to follow license guidance.
158
+ */
159
+ DismissalType[DismissalType["AgreedToGuidance"] = 4] = "AgreedToGuidance";
140
160
  })(DismissalType = exports.DismissalType || (exports.DismissalType = {}));
141
161
  var ExpandOption;
142
162
  (function (ExpandOption) {
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.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.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(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={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
package/Build/Build.d.ts CHANGED
@@ -2692,7 +2692,8 @@ export interface SourceRepositoryItem {
2692
2692
  }
2693
2693
  export declare enum StageUpdateType {
2694
2694
  Cancel = 0,
2695
- Retry = 1
2695
+ Retry = 1,
2696
+ Run = 2
2696
2697
  }
2697
2698
  export interface SupportedTrigger {
2698
2699
  /**
@@ -2845,7 +2846,9 @@ export declare enum TaskResult {
2845
2846
  Failed = 2,
2846
2847
  Canceled = 3,
2847
2848
  Skipped = 4,
2848
- Abandoned = 5
2849
+ Abandoned = 5,
2850
+ ManuallyQueued = 6,
2851
+ DependentOnManualQueue = 7
2849
2852
  }
2850
2853
  /**
2851
2854
  * Represents the timeline of a build.
package/Build/Build.js CHANGED
@@ -549,6 +549,7 @@ define(["require", "exports"], function (require, exports) {
549
549
  (function (StageUpdateType) {
550
550
  StageUpdateType[StageUpdateType["Cancel"] = 0] = "Cancel";
551
551
  StageUpdateType[StageUpdateType["Retry"] = 1] = "Retry";
552
+ StageUpdateType[StageUpdateType["Run"] = 2] = "Run";
552
553
  })(StageUpdateType = exports.StageUpdateType || (exports.StageUpdateType = {}));
553
554
  var SupportLevel;
554
555
  (function (SupportLevel) {
@@ -573,6 +574,8 @@ define(["require", "exports"], function (require, exports) {
573
574
  TaskResult[TaskResult["Canceled"] = 3] = "Canceled";
574
575
  TaskResult[TaskResult["Skipped"] = 4] = "Skipped";
575
576
  TaskResult[TaskResult["Abandoned"] = 5] = "Abandoned";
577
+ TaskResult[TaskResult["ManuallyQueued"] = 6] = "ManuallyQueued";
578
+ TaskResult[TaskResult["DependentOnManualQueue"] = 7] = "DependentOnManualQueue";
576
579
  })(TaskResult = exports.TaskResult || (exports.TaskResult = {}));
577
580
  var TimelineRecordState;
578
581
  (function (TimelineRecordState) {
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(n.AgentStatus||(n.AgentStatus={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.ProjectCollection=1]="ProjectCollection",e[e.Project=2]="Project"}(n.BuildAuthorizationScope||(n.BuildAuthorizationScope={}));!function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.StringList=2]="StringList",e[e.Radio=3]="Radio",e[e.PickList=4]="PickList",e[e.MultiLine=5]="MultiLine",e[e.BranchFilter=6]="BranchFilter"}(n.BuildOptionInputType||(n.BuildOptionInputType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Failed=1]="Failed",e[e.Succeeded=2]="Succeeded"}(n.BuildPhaseStatus||(n.BuildPhaseStatus={}));!function(e){e[e.FinishTimeAscending=2]="FinishTimeAscending",e[e.FinishTimeDescending=3]="FinishTimeDescending",e[e.QueueTimeDescending=4]="QueueTimeDescending",e[e.QueueTimeAscending=5]="QueueTimeAscending",e[e.StartTimeDescending=6]="StartTimeDescending",e[e.StartTimeAscending=7]="StartTimeAscending"}(n.BuildQueryOrder||(n.BuildQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.IndividualCI=2]="IndividualCI",e[e.BatchedCI=4]="BatchedCI",e[e.Schedule=8]="Schedule",e[e.ScheduleForced=16]="ScheduleForced",e[e.UserCreated=32]="UserCreated",e[e.ValidateShelveset=64]="ValidateShelveset",e[e.CheckInShelveset=128]="CheckInShelveset",e[e.PullRequest=256]="PullRequest",e[e.BuildCompletion=512]="BuildCompletion",e[e.ResourceTrigger=1024]="ResourceTrigger",e[e.Triggered=1967]="Triggered",e[e.All=2031]="All"}(n.BuildReason||(n.BuildReason={}));!function(e){e[e.None=0]="None",e[e.Succeeded=2]="Succeeded",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Failed=8]="Failed",e[e.Canceled=32]="Canceled"}(n.BuildResult||(n.BuildResult={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Postponed=8]="Postponed",e[e.NotStarted=32]="NotStarted",e[e.All=47]="All"}(n.BuildStatus||(n.BuildStatus={}));!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(n.ControllerStatus||(n.ControllerStatus={}));!function(e){e[e.Definition=1]="Definition",e[e.Draft=2]="Draft"}(n.DefinitionQuality||(n.DefinitionQuality={}));!function(e){e[e.None=0]="None",e[e.LastModifiedAscending=1]="LastModifiedAscending",e[e.LastModifiedDescending=2]="LastModifiedDescending",e[e.DefinitionNameAscending=3]="DefinitionNameAscending",e[e.DefinitionNameDescending=4]="DefinitionNameDescending"}(n.DefinitionQueryOrder||(n.DefinitionQueryOrder={}));!function(e){e[e.Enabled=0]="Enabled",e[e.Paused=1]="Paused",e[e.Disabled=2]="Disabled"}(n.DefinitionQueueStatus||(n.DefinitionQueueStatus={}));!function(e){e[e.None=1]="None",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.BatchedContinuousIntegration=4]="BatchedContinuousIntegration",e[e.Schedule=8]="Schedule",e[e.GatedCheckIn=16]="GatedCheckIn",e[e.BatchedGatedCheckIn=32]="BatchedGatedCheckIn",e[e.PullRequest=64]="PullRequest",e[e.BuildCompletion=128]="BuildCompletion",e[e.All=255]="All"}(n.DefinitionTriggerType||(n.DefinitionTriggerType={}));!function(e){e[e.Xaml=1]="Xaml",e[e.Build=2]="Build"}(n.DefinitionType||(n.DefinitionType={}));!function(e){e[e.None=0]="None",e[e.DropLocation=1]="DropLocation",e[e.TestResults=2]="TestResults",e[e.Label=4]="Label",e[e.Details=8]="Details",e[e.Symbols=16]="Symbols",e[e.All=31]="All"}(n.DeleteOptions||(n.DeleteOptions={}));!function(e){e[e.None=0]="None",e[e.FolderAscending=1]="FolderAscending",e[e.FolderDescending=2]="FolderDescending"}(n.FolderQueryOrder||(n.FolderQueryOrder={}));!function(e){e[e.LatestOnQueue=0]="LatestOnQueue",e[e.LatestOnBuild=1]="LatestOnBuild",e[e.Custom=2]="Custom"}(n.GetOption||(n.GetOption={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Custom=0]="Custom",e[e.Default=1]="Default",e[e.Upgrade=2]="Upgrade"}(n.ProcessTemplateType||(n.ProcessTemplateType={}));!function(e){e[e.ExcludeDeleted=0]="ExcludeDeleted",e[e.IncludeDeleted=1]="IncludeDeleted",e[e.OnlyDeleted=2]="OnlyDeleted"}(n.QueryDeletedOption||(n.QueryDeletedOption={}));!function(e){e[e.None=0]="None",e[e.DoNotRun=1]="DoNotRun"}(n.QueueOptions||(n.QueueOptions={}));!function(e){e[e.Low=5]="Low",e[e.BelowNormal=4]="BelowNormal",e[e.Normal=3]="Normal",e[e.AboveNormal=2]="AboveNormal",e[e.High=1]="High"}(n.QueuePriority||(n.QueuePriority={}));!function(e){e[e.Source=0]="Source",e[e.SourceAndOutputDir=1]="SourceAndOutputDir",e[e.SourceDir=2]="SourceDir",e[e.AllBuildDir=3]="AllBuildDir"}(n.RepositoryCleanOptions||(n.RepositoryCleanOptions={}));!function(e){e[e.All=0]="All",e[e.Top=1]="Top"}(n.ResultSet||(n.ResultSet={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(n.ServiceHostStatus||(n.ServiceHostStatus={}));!function(e){e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises",e[e.All=3]="All"}(n.SourceProviderAvailability||(n.SourceProviderAvailability={}));!function(e){e[e.Cancel=0]="Cancel",e[e.Retry=1]="Retry"}(n.StageUpdateType||(n.StageUpdateType={}));!function(e){e[e.Unsupported=0]="Unsupported",e[e.Supported=1]="Supported",e[e.Required=2]="Required"}(n.SupportLevel||(n.SupportLevel={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.OK=0]="OK",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(n.ValidationResult||(n.ValidationResult={}));!function(e){e[e.Map=0]="Map",e[e.Cloak=1]="Cloak"}(n.WorkspaceMappingType||(n.WorkspaceMappingType={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(n.AgentStatus||(n.AgentStatus={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.ProjectCollection=1]="ProjectCollection",e[e.Project=2]="Project"}(n.BuildAuthorizationScope||(n.BuildAuthorizationScope={}));!function(e){e[e.String=0]="String",e[e.Boolean=1]="Boolean",e[e.StringList=2]="StringList",e[e.Radio=3]="Radio",e[e.PickList=4]="PickList",e[e.MultiLine=5]="MultiLine",e[e.BranchFilter=6]="BranchFilter"}(n.BuildOptionInputType||(n.BuildOptionInputType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Failed=1]="Failed",e[e.Succeeded=2]="Succeeded"}(n.BuildPhaseStatus||(n.BuildPhaseStatus={}));!function(e){e[e.FinishTimeAscending=2]="FinishTimeAscending",e[e.FinishTimeDescending=3]="FinishTimeDescending",e[e.QueueTimeDescending=4]="QueueTimeDescending",e[e.QueueTimeAscending=5]="QueueTimeAscending",e[e.StartTimeDescending=6]="StartTimeDescending",e[e.StartTimeAscending=7]="StartTimeAscending"}(n.BuildQueryOrder||(n.BuildQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.IndividualCI=2]="IndividualCI",e[e.BatchedCI=4]="BatchedCI",e[e.Schedule=8]="Schedule",e[e.ScheduleForced=16]="ScheduleForced",e[e.UserCreated=32]="UserCreated",e[e.ValidateShelveset=64]="ValidateShelveset",e[e.CheckInShelveset=128]="CheckInShelveset",e[e.PullRequest=256]="PullRequest",e[e.BuildCompletion=512]="BuildCompletion",e[e.ResourceTrigger=1024]="ResourceTrigger",e[e.Triggered=1967]="Triggered",e[e.All=2031]="All"}(n.BuildReason||(n.BuildReason={}));!function(e){e[e.None=0]="None",e[e.Succeeded=2]="Succeeded",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Failed=8]="Failed",e[e.Canceled=32]="Canceled"}(n.BuildResult||(n.BuildResult={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Postponed=8]="Postponed",e[e.NotStarted=32]="NotStarted",e[e.All=47]="All"}(n.BuildStatus||(n.BuildStatus={}));!function(e){e[e.Unavailable=0]="Unavailable",e[e.Available=1]="Available",e[e.Offline=2]="Offline"}(n.ControllerStatus||(n.ControllerStatus={}));!function(e){e[e.Definition=1]="Definition",e[e.Draft=2]="Draft"}(n.DefinitionQuality||(n.DefinitionQuality={}));!function(e){e[e.None=0]="None",e[e.LastModifiedAscending=1]="LastModifiedAscending",e[e.LastModifiedDescending=2]="LastModifiedDescending",e[e.DefinitionNameAscending=3]="DefinitionNameAscending",e[e.DefinitionNameDescending=4]="DefinitionNameDescending"}(n.DefinitionQueryOrder||(n.DefinitionQueryOrder={}));!function(e){e[e.Enabled=0]="Enabled",e[e.Paused=1]="Paused",e[e.Disabled=2]="Disabled"}(n.DefinitionQueueStatus||(n.DefinitionQueueStatus={}));!function(e){e[e.None=1]="None",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.BatchedContinuousIntegration=4]="BatchedContinuousIntegration",e[e.Schedule=8]="Schedule",e[e.GatedCheckIn=16]="GatedCheckIn",e[e.BatchedGatedCheckIn=32]="BatchedGatedCheckIn",e[e.PullRequest=64]="PullRequest",e[e.BuildCompletion=128]="BuildCompletion",e[e.All=255]="All"}(n.DefinitionTriggerType||(n.DefinitionTriggerType={}));!function(e){e[e.Xaml=1]="Xaml",e[e.Build=2]="Build"}(n.DefinitionType||(n.DefinitionType={}));!function(e){e[e.None=0]="None",e[e.DropLocation=1]="DropLocation",e[e.TestResults=2]="TestResults",e[e.Label=4]="Label",e[e.Details=8]="Details",e[e.Symbols=16]="Symbols",e[e.All=31]="All"}(n.DeleteOptions||(n.DeleteOptions={}));!function(e){e[e.None=0]="None",e[e.FolderAscending=1]="FolderAscending",e[e.FolderDescending=2]="FolderDescending"}(n.FolderQueryOrder||(n.FolderQueryOrder={}));!function(e){e[e.LatestOnQueue=0]="LatestOnQueue",e[e.LatestOnBuild=1]="LatestOnBuild",e[e.Custom=2]="Custom"}(n.GetOption||(n.GetOption={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Custom=0]="Custom",e[e.Default=1]="Default",e[e.Upgrade=2]="Upgrade"}(n.ProcessTemplateType||(n.ProcessTemplateType={}));!function(e){e[e.ExcludeDeleted=0]="ExcludeDeleted",e[e.IncludeDeleted=1]="IncludeDeleted",e[e.OnlyDeleted=2]="OnlyDeleted"}(n.QueryDeletedOption||(n.QueryDeletedOption={}));!function(e){e[e.None=0]="None",e[e.DoNotRun=1]="DoNotRun"}(n.QueueOptions||(n.QueueOptions={}));!function(e){e[e.Low=5]="Low",e[e.BelowNormal=4]="BelowNormal",e[e.Normal=3]="Normal",e[e.AboveNormal=2]="AboveNormal",e[e.High=1]="High"}(n.QueuePriority||(n.QueuePriority={}));!function(e){e[e.Source=0]="Source",e[e.SourceAndOutputDir=1]="SourceAndOutputDir",e[e.SourceDir=2]="SourceDir",e[e.AllBuildDir=3]="AllBuildDir"}(n.RepositoryCleanOptions||(n.RepositoryCleanOptions={}));!function(e){e[e.All=0]="All",e[e.Top=1]="Top"}(n.ResultSet||(n.ResultSet={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(n.ServiceHostStatus||(n.ServiceHostStatus={}));!function(e){e[e.Hosted=1]="Hosted",e[e.OnPremises=2]="OnPremises",e[e.All=3]="All"}(n.SourceProviderAvailability||(n.SourceProviderAvailability={}));!function(e){e[e.Cancel=0]="Cancel",e[e.Retry=1]="Retry",e[e.Run=2]="Run"}(n.StageUpdateType||(n.StageUpdateType={}));!function(e){e[e.Unsupported=0]="Unsupported",e[e.Supported=1]="Supported",e[e.Required=2]="Required"}(n.SupportLevel||(n.SupportLevel={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.OK=0]="OK",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(n.ValidationResult||(n.ValidationResult={}));!function(e){e[e.Map=0]="Map",e[e.Cloak=1]="Cloak"}(n.WorkspaceMappingType||(n.WorkspaceMappingType={}))});
@@ -1317,6 +1317,18 @@ export declare class GitRestClient extends RestClientBase {
1317
1317
  * @param project - Project ID or project name
1318
1318
  */
1319
1319
  updateRepository(newRepositoryInfo: Git.GitRepository, repositoryId: string, project?: string): Promise<Git.GitRepository>;
1320
+ /**
1321
+ * Retrieve git repositories with filter by name and pagination.
1322
+ *
1323
+ * @param projectId - ID or name of the team project.
1324
+ * @param includeLinks - [optional] True to include reference links. The default value is false.
1325
+ * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
1326
+ * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
1327
+ * @param filterContains - [optional] A filter to apply to the refs (contains).
1328
+ * @param top - [optional] Maximum number of repositories to return. It cannot be bigger than 500. If it is not provided but continuationToken is, top will default to 100.
1329
+ * @param continuationToken - The continuation token used for pagination.
1330
+ */
1331
+ getRepositoriesPaged(projectId: string, includeLinks?: boolean, includeAllUrls?: boolean, includeHidden?: boolean, filterContains?: string, top?: number, continuationToken?: string): Promise<WebApi.PagedList<Git.GitRepository>>;
1320
1332
  /**
1321
1333
  * Retrieve one conflict for a revert by ID
1322
1334
  *
package/Git/GitClient.js CHANGED
@@ -3896,6 +3896,53 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
3896
3896
  });
3897
3897
  });
3898
3898
  };
3899
+ /**
3900
+ * Retrieve git repositories with filter by name and pagination.
3901
+ *
3902
+ * @param projectId - ID or name of the team project.
3903
+ * @param includeLinks - [optional] True to include reference links. The default value is false.
3904
+ * @param includeAllUrls - [optional] True to include all remote URLs. The default value is false.
3905
+ * @param includeHidden - [optional] True to include hidden repositories. The default value is false.
3906
+ * @param filterContains - [optional] A filter to apply to the refs (contains).
3907
+ * @param top - [optional] Maximum number of repositories to return. It cannot be bigger than 500. If it is not provided but continuationToken is, top will default to 100.
3908
+ * @param continuationToken - The continuation token used for pagination.
3909
+ */
3910
+ GitRestClient.prototype.getRepositoriesPaged = function (projectId, includeLinks, includeAllUrls, includeHidden, filterContains, top, continuationToken) {
3911
+ return __awaiter(this, void 0, void 0, function () {
3912
+ var queryValues;
3913
+ var _this = this;
3914
+ return __generator(this, function (_a) {
3915
+ queryValues = {
3916
+ includeLinks: includeLinks,
3917
+ includeAllUrls: includeAllUrls,
3918
+ includeHidden: includeHidden,
3919
+ filterContains: filterContains,
3920
+ '$top': top,
3921
+ continuationToken: continuationToken
3922
+ };
3923
+ return [2 /*return*/, this.beginRequest({
3924
+ apiVersion: "7.2-preview.1",
3925
+ routeTemplate: "_apis/git/{projectId}/repositoriesPaged",
3926
+ routeValues: {
3927
+ projectId: projectId
3928
+ },
3929
+ queryParams: queryValues,
3930
+ returnRawResponse: true
3931
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
3932
+ var body;
3933
+ return __generator(this, function (_a) {
3934
+ switch (_a.label) {
3935
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
3936
+ case 1:
3937
+ body = _a.sent();
3938
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
3939
+ return [2 /*return*/, body];
3940
+ }
3941
+ });
3942
+ }); })];
3943
+ });
3944
+ });
3945
+ };
3899
3946
  /**
3900
3947
  * Retrieve one conflict for a revert by ID
3901
3948
  *