azure-devops-extension-api 4.269.1 → 5.271.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (694) hide show
  1. package/Accounts/Accounts.d.ts +126 -126
  2. package/Accounts/Accounts.js +61 -62
  3. package/Accounts/Accounts.min.js +1 -1
  4. package/Accounts/AccountsClient.d.ts +24 -24
  5. package/Accounts/AccountsClient.js +78 -124
  6. package/Accounts/AccountsClient.min.js +1 -1
  7. package/Accounts/index.d.ts +2 -2
  8. package/Accounts/index.js +18 -9
  9. package/Accounts/index.min.js +1 -1
  10. package/AdvancedSecurity.Reporting/Reporting.d.ts +717 -712
  11. package/AdvancedSecurity.Reporting/Reporting.js +203 -204
  12. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  13. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +83 -83
  14. package/AdvancedSecurity.Reporting/ReportingClient.js +267 -343
  15. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
  16. package/Alert/Alert.d.ts +1265 -1245
  17. package/Alert/Alert.js +425 -426
  18. package/Alert/Alert.min.js +1 -1
  19. package/Alert/AlertClient.d.ts +184 -159
  20. package/Alert/AlertClient.js +512 -533
  21. package/Alert/AlertClient.min.js +1 -1
  22. package/Build/Build.d.ts +3318 -3292
  23. package/Build/Build.js +613 -607
  24. package/Build/Build.min.js +1 -1
  25. package/Build/BuildClient.d.ts +842 -820
  26. package/Build/BuildClient.js +2319 -2568
  27. package/Build/BuildClient.min.js +1 -1
  28. package/Build/BuildServices.d.ts +32 -32
  29. package/Build/BuildServices.js +13 -14
  30. package/Build/BuildServices.min.js +1 -1
  31. package/Build/index.d.ts +3 -3
  32. package/Build/index.js +19 -10
  33. package/Build/index.min.js +1 -1
  34. package/Comments/Comments.d.ts +309 -309
  35. package/Comments/Comments.js +93 -94
  36. package/Comments/Comments.min.js +1 -1
  37. package/Comments/index.d.ts +1 -1
  38. package/Comments/index.js +17 -8
  39. package/Comments/index.min.js +1 -1
  40. package/Common/Client.d.ts +9 -9
  41. package/Common/Client.js +25 -26
  42. package/Common/Client.min.js +1 -1
  43. package/Common/CommonServices.d.ts +774 -735
  44. package/Common/CommonServices.js +71 -72
  45. package/Common/CommonServices.min.js +1 -1
  46. package/Common/Context.js +2 -0
  47. package/Common/Fetch.d.ts +95 -95
  48. package/Common/Fetch.js +131 -169
  49. package/Common/Fetch.min.js +1 -1
  50. package/Common/RestClientBase.d.ts +96 -96
  51. package/Common/RestClientBase.js +109 -139
  52. package/Common/RestClientBase.min.js +1 -1
  53. package/Common/System.d.ts +30 -30
  54. package/Common/System.js +39 -40
  55. package/Common/System.min.js +1 -1
  56. package/Common/SystemData.d.ts +129 -129
  57. package/Common/SystemData.js +138 -139
  58. package/Common/SystemData.min.js +1 -1
  59. package/Common/Util/Serialization.d.ts +15 -15
  60. package/Common/Util/Serialization.js +51 -53
  61. package/Common/Util/Serialization.min.js +1 -1
  62. package/Common/Util/Url.d.ts +238 -236
  63. package/Common/Util/Url.js +605 -626
  64. package/Common/Util/Url.min.js +1 -1
  65. package/Common/index.d.ts +3 -3
  66. package/Common/index.js +19 -9
  67. package/Common/index.min.js +1 -1
  68. package/Contributions/Contributions.d.ts +694 -694
  69. package/Contributions/Contributions.js +185 -186
  70. package/Contributions/Contributions.min.js +1 -1
  71. package/Contributions/ContributionsClient.d.ts +31 -31
  72. package/Contributions/ContributionsClient.js +99 -147
  73. package/Contributions/ContributionsClient.min.js +1 -1
  74. package/Contributions/index.d.ts +2 -2
  75. package/Contributions/index.js +18 -9
  76. package/Contributions/index.min.js +1 -1
  77. package/Core/Core.d.ts +546 -546
  78. package/Core/Core.js +79 -80
  79. package/Core/Core.min.js +1 -1
  80. package/Core/CoreClient.d.ts +224 -224
  81. package/Core/CoreClient.js +652 -777
  82. package/Core/CoreClient.min.js +1 -1
  83. package/Core/index.d.ts +2 -2
  84. package/Core/index.js +18 -9
  85. package/Core/index.min.js +1 -1
  86. package/Dashboard/Dashboard.d.ts +393 -393
  87. package/Dashboard/Dashboard.js +56 -57
  88. package/Dashboard/Dashboard.min.js +1 -1
  89. package/Dashboard/DashboardClient.d.ts +106 -106
  90. package/Dashboard/DashboardClient.js +317 -393
  91. package/Dashboard/DashboardClient.min.js +1 -1
  92. package/Dashboard/WidgetConfigHelpers.d.ts +34 -34
  93. package/Dashboard/WidgetConfigHelpers.js +41 -45
  94. package/Dashboard/WidgetConfigHelpers.min.js +1 -1
  95. package/Dashboard/WidgetContracts.d.ts +213 -213
  96. package/Dashboard/WidgetContracts.js +24 -25
  97. package/Dashboard/WidgetContracts.min.js +1 -1
  98. package/Dashboard/WidgetHelpers.d.ts +89 -89
  99. package/Dashboard/WidgetHelpers.js +135 -146
  100. package/Dashboard/WidgetHelpers.min.js +1 -1
  101. package/Dashboard/index.d.ts +5 -5
  102. package/Dashboard/index.js +21 -12
  103. package/Dashboard/index.min.js +1 -1
  104. package/DistributedTaskCommon/DistributedTaskCommon.d.ts +103 -103
  105. package/DistributedTaskCommon/DistributedTaskCommon.js +7 -9
  106. package/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -1
  107. package/DistributedTaskCommon/index.d.ts +1 -1
  108. package/DistributedTaskCommon/index.js +17 -4
  109. package/DistributedTaskCommon/index.min.js +1 -1
  110. package/ExtensionManagement/ExtensionManagement.d.ts +1163 -1163
  111. package/ExtensionManagement/ExtensionManagement.js +284 -285
  112. package/ExtensionManagement/ExtensionManagement.min.js +1 -1
  113. package/ExtensionManagement/ExtensionManagementClient.d.ts +191 -191
  114. package/ExtensionManagement/ExtensionManagementClient.js +551 -648
  115. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  116. package/ExtensionManagement/index.d.ts +2 -2
  117. package/ExtensionManagement/index.js +18 -9
  118. package/ExtensionManagement/index.min.js +1 -1
  119. package/Favorite/Favorite.d.ts +124 -124
  120. package/Favorite/Favorite.js +7 -9
  121. package/Favorite/Favorite.min.js +1 -1
  122. package/Favorite/FavoriteClient.d.ts +78 -78
  123. package/Favorite/FavoriteClient.js +247 -314
  124. package/Favorite/FavoriteClient.min.js +1 -1
  125. package/FeatureAvailability/FeatureAvailability.d.ts +13 -13
  126. package/FeatureAvailability/FeatureAvailability.js +7 -9
  127. package/FeatureAvailability/FeatureAvailability.min.js +1 -1
  128. package/FeatureAvailability/FeatureAvailabilityClient.d.ts +45 -45
  129. package/FeatureAvailability/FeatureAvailabilityClient.js +136 -189
  130. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  131. package/FeatureAvailability/index.d.ts +2 -2
  132. package/FeatureAvailability/index.js +18 -8
  133. package/FeatureAvailability/index.min.js +1 -1
  134. package/FeatureManagement/FeatureManagement.d.ts +161 -161
  135. package/FeatureManagement/FeatureManagement.js +26 -27
  136. package/FeatureManagement/FeatureManagement.min.js +1 -1
  137. package/FeatureManagement/FeatureManagementClient.d.ts +78 -78
  138. package/FeatureManagement/FeatureManagementClient.js +214 -273
  139. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  140. package/FeatureManagement/index.d.ts +2 -2
  141. package/FeatureManagement/index.js +18 -9
  142. package/FeatureManagement/index.min.js +1 -1
  143. package/FileContainer/FileContainer.d.ts +193 -193
  144. package/FileContainer/FileContainer.js +58 -59
  145. package/FileContainer/FileContainer.min.js +1 -1
  146. package/FileContainer/FileContainerClient.d.ts +47 -47
  147. package/FileContainer/FileContainerClient.js +132 -182
  148. package/FileContainer/FileContainerClient.min.js +1 -1
  149. package/FileContainer/index.d.ts +2 -2
  150. package/FileContainer/index.js +18 -9
  151. package/FileContainer/index.min.js +1 -1
  152. package/FormInput/FormInput.d.ts +278 -278
  153. package/FormInput/FormInput.js +77 -78
  154. package/FormInput/FormInput.min.js +1 -1
  155. package/FormInput/index.d.ts +1 -1
  156. package/FormInput/index.js +17 -8
  157. package/FormInput/index.min.js +1 -1
  158. package/Gallery/Gallery.d.ts +1911 -1911
  159. package/Gallery/Gallery.js +788 -789
  160. package/Gallery/Gallery.min.js +1 -1
  161. package/Gallery/GalleryClient.d.ts +613 -603
  162. package/Gallery/GalleryClient.js +1884 -2100
  163. package/Gallery/GalleryClient.min.js +1 -1
  164. package/Gallery/index.d.ts +2 -2
  165. package/Gallery/index.js +18 -9
  166. package/Gallery/index.min.js +1 -1
  167. package/Git/CodeEditorTypes.d.ts +305 -305
  168. package/Git/CodeEditorTypes.js +27 -28
  169. package/Git/CodeEditorTypes.min.js +1 -1
  170. package/Git/Git.d.ts +3976 -3888
  171. package/Git/Git.js +830 -817
  172. package/Git/Git.min.js +1 -1
  173. package/Git/GitClient.d.ts +1468 -1454
  174. package/Git/GitClient.js +3892 -4313
  175. package/Git/GitClient.min.js +1 -1
  176. package/Git/GitServices.d.ts +16 -16
  177. package/Git/GitServices.js +10 -11
  178. package/Git/GitServices.min.js +1 -1
  179. package/Git/index.d.ts +4 -4
  180. package/Git/index.js +20 -11
  181. package/Git/index.min.js +1 -1
  182. package/Graph/Graph.d.ts +518 -518
  183. package/Graph/Graph.js +14 -15
  184. package/Graph/Graph.min.js +1 -1
  185. package/Graph/GraphClient.d.ts +261 -261
  186. package/Graph/GraphClient.js +737 -867
  187. package/Graph/GraphClient.min.js +1 -1
  188. package/Graph/index.d.ts +2 -2
  189. package/Graph/index.js +18 -9
  190. package/Graph/index.min.js +1 -1
  191. package/Identities/Identities.d.ts +242 -241
  192. package/Identities/Identities.js +49 -50
  193. package/Identities/Identities.min.js +1 -1
  194. package/Identities/IdentityProvider.d.ts +40 -40
  195. package/Identities/IdentityProvider.js +47 -49
  196. package/Identities/IdentityProvider.min.js +1 -1
  197. package/Identities/IdentityService.d.ts +72 -72
  198. package/Identities/IdentityService.js +13 -14
  199. package/Identities/IdentityService.min.js +1 -1
  200. package/Identities/index.d.ts +3 -3
  201. package/Identities/index.js +19 -10
  202. package/Identities/index.min.js +1 -1
  203. package/Locations/Locations.d.ts +150 -150
  204. package/Locations/Locations.js +28 -29
  205. package/Locations/Locations.min.js +1 -1
  206. package/Locations/LocationsClient.d.ts +65 -65
  207. package/Locations/LocationsClient.js +211 -276
  208. package/Locations/LocationsClient.min.js +1 -1
  209. package/Locations/index.d.ts +2 -2
  210. package/Locations/index.js +18 -9
  211. package/Locations/index.min.js +1 -1
  212. package/Management/Management.d.ts +424 -407
  213. package/Management/Management.js +27 -28
  214. package/Management/Management.min.js +1 -1
  215. package/Management/ManagementClient.d.ts +116 -105
  216. package/Management/ManagementClient.js +349 -398
  217. package/Management/ManagementClient.min.js +1 -1
  218. package/Notification/Notification.d.ts +1387 -1387
  219. package/Notification/Notification.js +385 -386
  220. package/Notification/Notification.min.js +1 -1
  221. package/Notification/NotificationClient.d.ts +149 -149
  222. package/Notification/NotificationClient.js +420 -511
  223. package/Notification/NotificationClient.min.js +1 -1
  224. package/Notification/index.d.ts +2 -2
  225. package/Notification/index.js +18 -9
  226. package/Notification/index.min.js +1 -1
  227. package/Operations/Operations.d.ts +77 -77
  228. package/Operations/Operations.js +38 -39
  229. package/Operations/Operations.min.js +1 -1
  230. package/Operations/OperationsClient.d.ts +13 -13
  231. package/Operations/OperationsClient.js +45 -86
  232. package/Operations/OperationsClient.min.js +1 -1
  233. package/Operations/index.d.ts +2 -2
  234. package/Operations/index.js +18 -9
  235. package/Operations/index.min.js +1 -1
  236. package/Pipelines/Pipelines.d.ts +341 -341
  237. package/Pipelines/Pipelines.js +82 -83
  238. package/Pipelines/Pipelines.min.js +1 -1
  239. package/Pipelines/PipelinesClient.d.ts +92 -92
  240. package/Pipelines/PipelinesClient.js +260 -325
  241. package/Pipelines/PipelinesClient.min.js +1 -1
  242. package/Policy/Policy.d.ts +160 -160
  243. package/Policy/Policy.js +38 -39
  244. package/Policy/Policy.min.js +1 -1
  245. package/Policy/PolicyClient.d.ts +99 -99
  246. package/Policy/PolicyClient.js +274 -346
  247. package/Policy/PolicyClient.min.js +1 -1
  248. package/Policy/index.d.ts +2 -2
  249. package/Policy/index.js +18 -9
  250. package/Policy/index.min.js +1 -1
  251. package/Profile/Profile.d.ts +175 -175
  252. package/Profile/Profile.js +35 -36
  253. package/Profile/Profile.min.js +1 -1
  254. package/Profile/ProfileClient.d.ts +86 -86
  255. package/Profile/ProfileClient.js +277 -347
  256. package/Profile/ProfileClient.min.js +1 -1
  257. package/Profile/index.d.ts +2 -2
  258. package/Profile/index.js +18 -9
  259. package/Profile/index.min.js +1 -1
  260. package/ProjectAnalysis/ProjectAnalysis.d.ts +59 -59
  261. package/ProjectAnalysis/ProjectAnalysis.js +18 -19
  262. package/ProjectAnalysis/ProjectAnalysis.min.js +1 -1
  263. package/ProjectAnalysis/ProjectAnalysisClient.d.ts +34 -34
  264. package/ProjectAnalysis/ProjectAnalysisClient.js +110 -159
  265. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  266. package/ProjectAnalysis/index.d.ts +2 -2
  267. package/ProjectAnalysis/index.js +18 -9
  268. package/ProjectAnalysis/index.min.js +1 -1
  269. package/README.md +57 -1
  270. package/Release/Release.d.ts +4068 -4068
  271. package/Release/Release.js +876 -877
  272. package/Release/Release.min.js +1 -1
  273. package/Release/ReleaseClient.d.ts +720 -720
  274. package/Release/ReleaseClient.js +2003 -2273
  275. package/Release/ReleaseClient.min.js +1 -1
  276. package/Release/index.d.ts +2 -2
  277. package/Release/index.js +18 -9
  278. package/Release/index.min.js +1 -1
  279. package/ResourceUsage/ResourceUsage.d.ts +13 -13
  280. package/ResourceUsage/ResourceUsage.js +7 -9
  281. package/ResourceUsage/ResourceUsage.min.js +1 -1
  282. package/ResourceUsage/ResourceUsageClient.d.ts +20 -20
  283. package/ResourceUsage/ResourceUsageClient.js +51 -93
  284. package/ResourceUsage/ResourceUsageClient.min.js +1 -1
  285. package/ServiceEndpoint/ServiceEndpoint.d.ts +894 -894
  286. package/ServiceEndpoint/ServiceEndpoint.js +84 -85
  287. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  288. package/ServiceEndpoint/ServiceEndpointClient.d.ts +190 -190
  289. package/ServiceEndpoint/ServiceEndpointClient.js +556 -669
  290. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  291. package/ServiceEndpoint/index.d.ts +2 -2
  292. package/ServiceEndpoint/index.js +18 -9
  293. package/ServiceEndpoint/index.min.js +1 -1
  294. package/ServiceHooks/ServiceHooks.d.ts +758 -758
  295. package/ServiceHooks/ServiceHooks.js +114 -115
  296. package/ServiceHooks/ServiceHooks.min.js +1 -1
  297. package/ServiceHooks/ServiceHooksClient.d.ts +156 -156
  298. package/ServiceHooks/ServiceHooksClient.js +434 -526
  299. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  300. package/ServiceHooks/index.d.ts +2 -2
  301. package/ServiceHooks/index.js +18 -9
  302. package/ServiceHooks/index.min.js +1 -1
  303. package/TaskAgent/TaskAgent.d.ts +3777 -3764
  304. package/TaskAgent/TaskAgent.js +594 -594
  305. package/TaskAgent/TaskAgent.min.js +1 -1
  306. package/TaskAgent/TaskAgentClient.d.ts +1085 -1073
  307. package/TaskAgent/TaskAgentClient.js +3273 -3731
  308. package/TaskAgent/TaskAgentClient.min.js +1 -1
  309. package/TaskAgent/index.d.ts +2 -2
  310. package/TaskAgent/index.js +18 -9
  311. package/TaskAgent/index.min.js +1 -1
  312. package/Test/Test.d.ts +5918 -5874
  313. package/Test/Test.js +1068 -1069
  314. package/Test/Test.min.js +1 -1
  315. package/Test/TestClient.d.ts +635 -635
  316. package/Test/TestClient.js +1822 -2088
  317. package/Test/TestClient.min.js +1 -1
  318. package/Test/index.d.ts +2 -2
  319. package/Test/index.js +18 -9
  320. package/Test/index.min.js +1 -1
  321. package/TestPlan/TestPlan.d.ts +1616 -1616
  322. package/TestPlan/TestPlan.js +270 -271
  323. package/TestPlan/TestPlan.min.js +1 -1
  324. package/TestPlan/TestPlanClient.d.ts +408 -408
  325. package/TestPlan/TestPlanClient.js +1160 -1387
  326. package/TestPlan/TestPlanClient.min.js +1 -1
  327. package/TestPlan/index.d.ts +2 -2
  328. package/TestPlan/index.js +18 -9
  329. package/TestPlan/index.min.js +1 -1
  330. package/TestResults/TestResults.d.ts +5 -5
  331. package/TestResults/TestResults.js +7 -9
  332. package/TestResults/TestResults.min.js +1 -1
  333. package/TestResults/TestResultsClient.d.ts +1060 -1039
  334. package/TestResults/TestResultsClient.js +3099 -3491
  335. package/TestResults/TestResultsClient.min.js +1 -1
  336. package/TestResults/index.d.ts +2 -2
  337. package/TestResults/index.js +18 -8
  338. package/TestResults/index.min.js +1 -1
  339. package/Tfvc/Tfvc.d.ts +730 -730
  340. package/Tfvc/Tfvc.js +106 -107
  341. package/Tfvc/Tfvc.min.js +1 -1
  342. package/Tfvc/TfvcClient.d.ts +227 -227
  343. package/Tfvc/TfvcClient.js +620 -732
  344. package/Tfvc/TfvcClient.min.js +1 -1
  345. package/Tfvc/index.d.ts +2 -2
  346. package/Tfvc/index.js +18 -9
  347. package/Tfvc/index.min.js +1 -1
  348. package/WebApi/WebApi.d.ts +408 -408
  349. package/WebApi/WebApi.js +55 -56
  350. package/WebApi/WebApi.min.js +1 -1
  351. package/WebApi/index.d.ts +1 -1
  352. package/WebApi/index.js +17 -8
  353. package/WebApi/index.min.js +1 -1
  354. package/Wiki/Wiki.d.ts +328 -328
  355. package/Wiki/Wiki.js +22 -23
  356. package/Wiki/Wiki.min.js +1 -1
  357. package/Wiki/WikiClient.d.ts +218 -218
  358. package/Wiki/WikiClient.js +585 -684
  359. package/Wiki/WikiClient.min.js +1 -1
  360. package/Wiki/index.d.ts +2 -2
  361. package/Wiki/index.js +18 -9
  362. package/Wiki/index.min.js +1 -1
  363. package/Work/Work.d.ts +1298 -1298
  364. package/Work/Work.js +187 -188
  365. package/Work/Work.min.js +1 -1
  366. package/Work/WorkClient.d.ts +421 -421
  367. package/Work/WorkClient.js +1255 -1455
  368. package/Work/WorkClient.min.js +1 -1
  369. package/Work/index.d.ts +2 -2
  370. package/Work/index.js +18 -9
  371. package/Work/index.min.js +1 -1
  372. package/WorkItemTracking/WorkItemTracking.d.ts +2158 -2124
  373. package/WorkItemTracking/WorkItemTracking.js +431 -432
  374. package/WorkItemTracking/WorkItemTracking.min.js +1 -1
  375. package/WorkItemTracking/WorkItemTrackingClient.d.ts +624 -624
  376. package/WorkItemTracking/WorkItemTrackingClient.js +1688 -1918
  377. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  378. package/WorkItemTracking/WorkItemTrackingServices.d.ts +320 -320
  379. package/WorkItemTracking/WorkItemTrackingServices.js +18 -19
  380. package/WorkItemTracking/WorkItemTrackingServices.min.js +1 -1
  381. package/WorkItemTracking/index.d.ts +3 -3
  382. package/WorkItemTracking/index.js +19 -10
  383. package/WorkItemTracking/index.min.js +1 -1
  384. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +1238 -1238
  385. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +299 -300
  386. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  387. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +462 -462
  388. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1224 -1386
  389. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  390. package/WorkItemTrackingProcess/index.d.ts +2 -2
  391. package/WorkItemTrackingProcess/index.js +18 -9
  392. package/WorkItemTrackingProcess/index.min.js +1 -1
  393. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +575 -575
  394. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +96 -97
  395. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -1
  396. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +376 -376
  397. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +991 -1126
  398. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  399. package/WorkItemTrackingProcessDefinitions/index.d.ts +2 -2
  400. package/WorkItemTrackingProcessDefinitions/index.js +18 -9
  401. package/WorkItemTrackingProcessDefinitions/index.min.js +1 -1
  402. package/_manifest/Spdx2xVs3xComparisonToolOutput.json +33 -0
  403. package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +1 -0
  404. package/_manifest/spdx_2.2/bsi.cose +0 -0
  405. package/_manifest/spdx_2.2/bsi.json +1 -1
  406. package/_manifest/spdx_2.2/manifest.cat +0 -0
  407. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  408. package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
  409. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
  410. package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
  411. package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
  412. package/esm/Accounts/Accounts.js +58 -0
  413. package/esm/Accounts/Accounts.min.js +1 -0
  414. package/esm/Accounts/AccountsClient.js +59 -0
  415. package/esm/Accounts/AccountsClient.min.js +1 -0
  416. package/esm/Accounts/index.js +2 -0
  417. package/esm/Accounts/index.min.js +1 -0
  418. package/esm/AdvancedSecurity.Reporting/Reporting.js +200 -0
  419. package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  420. package/esm/AdvancedSecurity.Reporting/ReportingClient.js +228 -0
  421. package/esm/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  422. package/esm/Alert/Alert.js +422 -0
  423. package/esm/Alert/Alert.min.js +1 -0
  424. package/esm/Alert/AlertClient.js +457 -0
  425. package/esm/Alert/AlertClient.min.js +1 -0
  426. package/esm/Build/Build.js +610 -0
  427. package/esm/Build/Build.min.js +1 -0
  428. package/esm/Build/BuildClient.js +2108 -0
  429. package/esm/Build/BuildClient.min.js +1 -0
  430. package/esm/Build/BuildServices.js +10 -0
  431. package/esm/Build/BuildServices.min.js +1 -0
  432. package/esm/Build/index.js +3 -0
  433. package/esm/Build/index.min.js +1 -0
  434. package/esm/Comments/Comments.js +90 -0
  435. package/esm/Comments/Comments.min.js +1 -0
  436. package/esm/Comments/index.js +1 -0
  437. package/esm/Comments/index.min.js +1 -0
  438. package/esm/Common/Client.js +22 -0
  439. package/esm/Common/Client.min.js +1 -0
  440. package/esm/Common/CommonServices.js +68 -0
  441. package/esm/Common/CommonServices.min.js +1 -0
  442. package/esm/Common/Context.js +1 -0
  443. package/esm/Common/Fetch.js +117 -0
  444. package/esm/Common/Fetch.min.js +1 -0
  445. package/esm/Common/RestClientBase.js +92 -0
  446. package/esm/Common/RestClientBase.min.js +1 -0
  447. package/esm/Common/System.js +36 -0
  448. package/esm/Common/System.min.js +1 -0
  449. package/esm/Common/SystemData.js +135 -0
  450. package/esm/Common/SystemData.min.js +1 -0
  451. package/esm/Common/Util/Serialization.js +48 -0
  452. package/esm/Common/Util/Serialization.min.js +1 -0
  453. package/esm/Common/Util/Url.js +595 -0
  454. package/esm/Common/Util/Url.min.js +1 -0
  455. package/esm/Common/index.js +3 -0
  456. package/esm/Common/index.min.js +1 -0
  457. package/esm/Contributions/Contributions.js +182 -0
  458. package/esm/Contributions/Contributions.min.js +1 -0
  459. package/esm/Contributions/ContributionsClient.js +78 -0
  460. package/esm/Contributions/ContributionsClient.min.js +1 -0
  461. package/esm/Contributions/index.js +2 -0
  462. package/esm/Contributions/index.min.js +1 -0
  463. package/esm/Core/Core.js +76 -0
  464. package/esm/Core/Core.min.js +1 -0
  465. package/esm/Core/CoreClient.js +573 -0
  466. package/esm/Core/CoreClient.min.js +1 -0
  467. package/esm/Core/index.js +2 -0
  468. package/esm/Core/index.min.js +1 -0
  469. package/esm/Dashboard/Dashboard.js +53 -0
  470. package/esm/Dashboard/Dashboard.min.js +1 -0
  471. package/esm/Dashboard/DashboardClient.js +278 -0
  472. package/esm/Dashboard/DashboardClient.min.js +1 -0
  473. package/esm/Dashboard/WidgetConfigHelpers.js +37 -0
  474. package/esm/Dashboard/WidgetConfigHelpers.min.js +1 -0
  475. package/esm/Dashboard/WidgetContracts.js +21 -0
  476. package/esm/Dashboard/WidgetContracts.min.js +1 -0
  477. package/esm/Dashboard/WidgetHelpers.js +129 -0
  478. package/esm/Dashboard/WidgetHelpers.min.js +1 -0
  479. package/esm/Dashboard/index.js +5 -0
  480. package/esm/Dashboard/index.min.js +1 -0
  481. package/esm/DistributedTaskCommon/DistributedTaskCommon.js +6 -0
  482. package/esm/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -0
  483. package/esm/DistributedTaskCommon/index.js +1 -0
  484. package/esm/DistributedTaskCommon/index.min.js +1 -0
  485. package/esm/ExtensionManagement/ExtensionManagement.js +281 -0
  486. package/esm/ExtensionManagement/ExtensionManagement.min.js +1 -0
  487. package/esm/ExtensionManagement/ExtensionManagementClient.js +486 -0
  488. package/esm/ExtensionManagement/ExtensionManagementClient.min.js +1 -0
  489. package/esm/ExtensionManagement/index.js +2 -0
  490. package/esm/ExtensionManagement/index.min.js +1 -0
  491. package/esm/Favorite/Favorite.js +6 -0
  492. package/esm/Favorite/Favorite.min.js +1 -0
  493. package/esm/Favorite/FavoriteClient.js +214 -0
  494. package/esm/Favorite/FavoriteClient.min.js +1 -0
  495. package/esm/FeatureAvailability/FeatureAvailability.js +6 -0
  496. package/esm/FeatureAvailability/FeatureAvailability.min.js +1 -0
  497. package/esm/FeatureAvailability/FeatureAvailabilityClient.js +113 -0
  498. package/esm/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -0
  499. package/esm/FeatureAvailability/index.js +2 -0
  500. package/esm/FeatureAvailability/index.min.js +1 -0
  501. package/esm/FeatureManagement/FeatureManagement.js +23 -0
  502. package/esm/FeatureManagement/FeatureManagement.min.js +1 -0
  503. package/esm/FeatureManagement/FeatureManagementClient.js +183 -0
  504. package/esm/FeatureManagement/FeatureManagementClient.min.js +1 -0
  505. package/esm/FeatureManagement/index.js +2 -0
  506. package/esm/FeatureManagement/index.min.js +1 -0
  507. package/esm/FileContainer/FileContainer.js +55 -0
  508. package/esm/FileContainer/FileContainer.min.js +1 -0
  509. package/esm/FileContainer/FileContainerClient.js +111 -0
  510. package/esm/FileContainer/FileContainerClient.min.js +1 -0
  511. package/esm/FileContainer/index.js +2 -0
  512. package/esm/FileContainer/index.min.js +1 -0
  513. package/esm/FormInput/FormInput.js +74 -0
  514. package/esm/FormInput/FormInput.min.js +1 -0
  515. package/esm/FormInput/index.js +1 -0
  516. package/esm/FormInput/index.min.js +1 -0
  517. package/esm/Gallery/Gallery.js +785 -0
  518. package/esm/Gallery/Gallery.min.js +1 -0
  519. package/esm/Gallery/GalleryClient.js +1701 -0
  520. package/esm/Gallery/GalleryClient.min.js +1 -0
  521. package/esm/Gallery/index.js +2 -0
  522. package/esm/Gallery/index.min.js +1 -0
  523. package/esm/Git/CodeEditorTypes.js +24 -0
  524. package/esm/Git/CodeEditorTypes.min.js +1 -0
  525. package/esm/Git/Git.js +827 -0
  526. package/esm/Git/Git.min.js +1 -0
  527. package/esm/Git/GitClient.js +3571 -0
  528. package/esm/Git/GitClient.min.js +1 -0
  529. package/esm/Git/GitServices.js +7 -0
  530. package/esm/Git/GitServices.min.js +1 -0
  531. package/esm/Git/index.js +4 -0
  532. package/esm/Git/index.min.js +1 -0
  533. package/esm/Graph/Graph.js +11 -0
  534. package/esm/Graph/Graph.min.js +1 -0
  535. package/esm/Graph/GraphClient.js +644 -0
  536. package/esm/Graph/GraphClient.min.js +1 -0
  537. package/esm/Graph/index.js +2 -0
  538. package/esm/Graph/index.min.js +1 -0
  539. package/esm/Identities/Identities.js +46 -0
  540. package/esm/Identities/Identities.min.js +1 -0
  541. package/esm/Identities/IdentityProvider.js +43 -0
  542. package/esm/Identities/IdentityProvider.min.js +1 -0
  543. package/esm/Identities/IdentityService.js +10 -0
  544. package/esm/Identities/IdentityService.min.js +1 -0
  545. package/esm/Identities/index.js +3 -0
  546. package/esm/Identities/index.min.js +1 -0
  547. package/esm/Locations/Locations.js +25 -0
  548. package/esm/Locations/Locations.min.js +1 -0
  549. package/esm/Locations/LocationsClient.js +178 -0
  550. package/esm/Locations/LocationsClient.min.js +1 -0
  551. package/esm/Locations/index.js +2 -0
  552. package/esm/Locations/index.min.js +1 -0
  553. package/esm/Management/Management.js +24 -0
  554. package/esm/Management/Management.min.js +1 -0
  555. package/esm/Management/ManagementClient.js +302 -0
  556. package/esm/Management/ManagementClient.min.js +1 -0
  557. package/esm/Notification/Notification.js +382 -0
  558. package/esm/Notification/Notification.min.js +1 -0
  559. package/esm/Notification/NotificationClient.js +359 -0
  560. package/esm/Notification/NotificationClient.min.js +1 -0
  561. package/esm/Notification/index.js +2 -0
  562. package/esm/Notification/index.min.js +1 -0
  563. package/esm/Operations/Operations.js +35 -0
  564. package/esm/Operations/Operations.min.js +1 -0
  565. package/esm/Operations/OperationsClient.js +30 -0
  566. package/esm/Operations/OperationsClient.min.js +1 -0
  567. package/esm/Operations/index.js +2 -0
  568. package/esm/Operations/index.min.js +1 -0
  569. package/esm/Pipelines/Pipelines.js +79 -0
  570. package/esm/Pipelines/Pipelines.min.js +1 -0
  571. package/esm/Pipelines/PipelinesClient.js +227 -0
  572. package/esm/Pipelines/PipelinesClient.min.js +1 -0
  573. package/esm/Policy/Policy.js +35 -0
  574. package/esm/Policy/Policy.min.js +1 -0
  575. package/esm/Policy/PolicyClient.js +237 -0
  576. package/esm/Policy/PolicyClient.min.js +1 -0
  577. package/esm/Policy/index.js +2 -0
  578. package/esm/Policy/index.min.js +1 -0
  579. package/esm/Profile/Profile.js +32 -0
  580. package/esm/Profile/Profile.min.js +1 -0
  581. package/esm/Profile/ProfileClient.js +240 -0
  582. package/esm/Profile/ProfileClient.min.js +1 -0
  583. package/esm/Profile/index.js +2 -0
  584. package/esm/Profile/index.min.js +1 -0
  585. package/esm/ProjectAnalysis/ProjectAnalysis.js +15 -0
  586. package/esm/ProjectAnalysis/ProjectAnalysis.min.js +1 -0
  587. package/esm/ProjectAnalysis/ProjectAnalysisClient.js +89 -0
  588. package/esm/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -0
  589. package/esm/ProjectAnalysis/index.js +2 -0
  590. package/esm/ProjectAnalysis/index.min.js +1 -0
  591. package/esm/Release/Release.js +873 -0
  592. package/esm/Release/Release.min.js +1 -0
  593. package/esm/Release/ReleaseClient.js +1816 -0
  594. package/esm/Release/ReleaseClient.min.js +1 -0
  595. package/esm/Release/index.js +2 -0
  596. package/esm/Release/index.min.js +1 -0
  597. package/esm/ResourceUsage/ResourceUsage.js +6 -0
  598. package/esm/ResourceUsage/ResourceUsage.min.js +1 -0
  599. package/esm/ResourceUsage/ResourceUsageClient.js +34 -0
  600. package/esm/ResourceUsage/ResourceUsageClient.min.js +1 -0
  601. package/esm/ServiceEndpoint/ServiceEndpoint.js +81 -0
  602. package/esm/ServiceEndpoint/ServiceEndpoint.min.js +1 -0
  603. package/esm/ServiceEndpoint/ServiceEndpointClient.js +489 -0
  604. package/esm/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  605. package/esm/ServiceEndpoint/index.js +2 -0
  606. package/esm/ServiceEndpoint/index.min.js +1 -0
  607. package/esm/ServiceHooks/ServiceHooks.js +111 -0
  608. package/esm/ServiceHooks/ServiceHooks.min.js +1 -0
  609. package/esm/ServiceHooks/ServiceHooksClient.js +375 -0
  610. package/esm/ServiceHooks/ServiceHooksClient.min.js +1 -0
  611. package/esm/ServiceHooks/index.js +2 -0
  612. package/esm/ServiceHooks/index.min.js +1 -0
  613. package/esm/TaskAgent/TaskAgent.js +590 -0
  614. package/esm/TaskAgent/TaskAgent.min.js +1 -0
  615. package/esm/TaskAgent/TaskAgentClient.js +2946 -0
  616. package/esm/TaskAgent/TaskAgentClient.min.js +1 -0
  617. package/esm/TaskAgent/index.js +2 -0
  618. package/esm/TaskAgent/index.min.js +1 -0
  619. package/esm/Test/Test.js +1065 -0
  620. package/esm/Test/Test.min.js +1 -0
  621. package/esm/Test/TestClient.js +1655 -0
  622. package/esm/Test/TestClient.min.js +1 -0
  623. package/esm/Test/index.js +2 -0
  624. package/esm/Test/index.min.js +1 -0
  625. package/esm/TestPlan/TestPlan.js +267 -0
  626. package/esm/TestPlan/TestPlan.min.js +1 -0
  627. package/esm/TestPlan/TestPlanClient.js +1051 -0
  628. package/esm/TestPlan/TestPlanClient.min.js +1 -0
  629. package/esm/TestPlan/index.js +2 -0
  630. package/esm/TestPlan/index.min.js +1 -0
  631. package/esm/TestResults/TestResults.js +6 -0
  632. package/esm/TestResults/TestResults.min.js +1 -0
  633. package/esm/TestResults/TestResultsClient.js +2822 -0
  634. package/esm/TestResults/TestResultsClient.min.js +1 -0
  635. package/esm/TestResults/index.js +2 -0
  636. package/esm/TestResults/index.min.js +1 -0
  637. package/esm/Tfvc/Tfvc.js +103 -0
  638. package/esm/Tfvc/Tfvc.min.js +1 -0
  639. package/esm/Tfvc/TfvcClient.js +559 -0
  640. package/esm/Tfvc/TfvcClient.min.js +1 -0
  641. package/esm/Tfvc/index.js +2 -0
  642. package/esm/Tfvc/index.min.js +1 -0
  643. package/esm/WebApi/WebApi.js +52 -0
  644. package/esm/WebApi/WebApi.min.js +1 -0
  645. package/esm/WebApi/index.js +1 -0
  646. package/esm/WebApi/index.min.js +1 -0
  647. package/esm/Wiki/Wiki.js +19 -0
  648. package/esm/Wiki/Wiki.min.js +1 -0
  649. package/esm/Wiki/WikiClient.js +528 -0
  650. package/esm/Wiki/WikiClient.min.js +1 -0
  651. package/esm/Wiki/index.js +2 -0
  652. package/esm/Wiki/index.min.js +1 -0
  653. package/esm/Work/Work.js +184 -0
  654. package/esm/Work/Work.min.js +1 -0
  655. package/esm/Work/WorkClient.js +1128 -0
  656. package/esm/Work/WorkClient.min.js +1 -0
  657. package/esm/Work/index.js +2 -0
  658. package/esm/Work/index.min.js +1 -0
  659. package/esm/WorkItemTracking/WorkItemTracking.js +428 -0
  660. package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -0
  661. package/esm/WorkItemTracking/WorkItemTrackingClient.js +1525 -0
  662. package/esm/WorkItemTracking/WorkItemTrackingClient.min.js +1 -0
  663. package/esm/WorkItemTracking/WorkItemTrackingServices.js +15 -0
  664. package/esm/WorkItemTracking/WorkItemTrackingServices.min.js +1 -0
  665. package/esm/WorkItemTracking/index.js +3 -0
  666. package/esm/WorkItemTracking/index.min.js +1 -0
  667. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.js +296 -0
  668. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -0
  669. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1097 -0
  670. package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -0
  671. package/esm/WorkItemTrackingProcess/index.js +2 -0
  672. package/esm/WorkItemTrackingProcess/index.min.js +1 -0
  673. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +93 -0
  674. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -0
  675. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +886 -0
  676. package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -0
  677. package/esm/WorkItemTrackingProcessDefinitions/index.js +2 -0
  678. package/esm/WorkItemTrackingProcessDefinitions/index.min.js +1 -0
  679. package/esm/index.js +1 -0
  680. package/esm/index.min.js +1 -0
  681. package/index.d.ts +1 -1
  682. package/index.js +17 -8
  683. package/index.min.js +1 -1
  684. package/package.json +232 -37
  685. package/Boards/Boards.d.ts +0 -631
  686. package/Boards/Boards.js +0 -26
  687. package/Boards/Boards.min.js +0 -1
  688. package/Boards/BoardsClient.d.ts +0 -187
  689. package/Boards/BoardsClient.js +0 -589
  690. package/Boards/BoardsClient.min.js +0 -1
  691. package/Boards/index.d.ts +0 -2
  692. package/Boards/index.js +0 -9
  693. package/Boards/index.min.js +0 -1
  694. package/_manifest/spdx_2.2/ESRPClientLogs0305214508957.json +0 -1
package/Alert/Alert.d.ts CHANGED
@@ -1,1245 +1,1265 @@
1
- import * as WebApi from "../WebApi/WebApi";
2
- export interface Alert {
3
- /**
4
- * Additional properties of this alert.
5
- */
6
- additionalProperties: {
7
- [key: string]: any;
8
- };
9
- /**
10
- * Identifier for the alert. It is unique within Azure DevOps organization.
11
- */
12
- alertId: number;
13
- /**
14
- * Type of the alert. E.g. secret, code, etc.
15
- */
16
- alertType: AlertType;
17
- /**
18
- * Confidence level of the alert.
19
- */
20
- confidence: Confidence;
21
- /**
22
- * Contains information for the dismissal of the alert if the alert has been dismissed.
23
- */
24
- dismissal: Dismissal;
25
- /**
26
- * This value is computed and returned by the service. This value represents the first time the service has seen this issue reported in an analysis instance.
27
- */
28
- firstSeenDate: Date;
29
- /**
30
- * This value is computed and returned by the service. If the issue is fixed, this value represents the time the service has seen this issue fixed in an analysis instance.
31
- */
32
- fixedDate: Date;
33
- /**
34
- * Reference to a git object, e.g. branch ref.
35
- */
36
- gitRef: string;
37
- /**
38
- * Value indicates whether the alert comes from a SARIF uploaded by a trusted source.
39
- */
40
- hasTrustedSourceOrigin: boolean;
41
- /**
42
- * This value is computed and returned by the service. This value represents the first time the vulnerability was introduced.
43
- */
44
- introducedDate: Date;
45
- /**
46
- * This value is computed and returned by the service. This value represents the last time the service has seen this issue reported in an analysis instance.
47
- */
48
- lastSeenDate: Date;
49
- /**
50
- * Logical locations for the alert. This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a logical location is a component.
51
- */
52
- logicalLocations: LogicalLocation[];
53
- /**
54
- * This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a physical location is a file location.
55
- */
56
- physicalLocations: PhysicalLocation[];
57
- /**
58
- * Identifier of the project where the alert was detected.
59
- */
60
- projectId: string;
61
- /**
62
- * Relations between alerts and other artifacts.
63
- */
64
- relations: RelationMetadata[];
65
- /**
66
- * Identifier of the repository where the alert was detected.
67
- */
68
- repositoryId: string;
69
- /**
70
- * Repository URL where the alert was detected.
71
- */
72
- repositoryUrl: string;
73
- /**
74
- * Severity of the alert.
75
- */
76
- severity: Severity;
77
- /**
78
- * This value is computed and returned by the service. It is a value based on the results from all analysis configurations.
79
- */
80
- state: State;
81
- /**
82
- * Title will only be rendered as text and does not support markdown formatting. There is a maximum character limit of 256.
83
- */
84
- title: string;
85
- /**
86
- * Tools that have detected this issue.
87
- */
88
- tools: Tool[];
89
- /**
90
- * A truncated/obfuscated version of the secret pertaining to the alert (if applicable).
91
- */
92
- truncatedSecret: string;
93
- /**
94
- * ValidationFingerprints for the secret liveness check. Only returned on demand in Get API with Expand parameter set to be ValidationFingerprint (not returned in List API)
95
- */
96
- validationFingerprints: ValidationFingerprint[];
97
- /**
98
- * Validity details of an alert. Currently, this is only applicable to secret alerts. In case of secret alerts, the validity status and time is computed by looking at the liveness results for validation fingerprints associated to an alert.
99
- */
100
- validityDetails: AlertValidityInfo;
101
- }
102
- /**
103
- * Summary of the state of the alert for a given analysis configuration.
104
- */
105
- export interface AlertAnalysisInstance {
106
- /**
107
- * Analysis configuration.
108
- */
109
- analysisConfiguration: AnalysisConfiguration;
110
- /**
111
- * Analysis instance where the issue was first detected for a given analysis configuration.
112
- */
113
- firstSeen: AnalysisInstance;
114
- /**
115
- * Analysis instance where the issue was fixed for a given analysis configuration.
116
- */
117
- fixedIn: AnalysisInstance;
118
- /**
119
- * Analysis instance where the issue was last detected for a given analysis configuration.
120
- */
121
- lastSeen: AnalysisInstance;
122
- /**
123
- * The most recent instatnce of the analysis.
124
- */
125
- recentAnalysisInstance: AnalysisInstance;
126
- /**
127
- * Result state for a given analysis configuration.
128
- */
129
- state: State;
130
- }
131
- /**
132
- * Request model for getting alerts by IDs with optional alert type filter.
133
- */
134
- export interface AlertBatchRequest {
135
- /**
136
- * List of alert IDs to retrieve.
137
- */
138
- alertIds: number[];
139
- /**
140
- * Alert type of the alert IDs.
141
- */
142
- alertType: AlertType;
143
- }
144
- export declare enum AlertListExpandOption {
145
- /**
146
- * No Expands.
147
- */
148
- None = 0,
149
- /**
150
- * Return a minimal representation of an alert.
151
- */
152
- Minimal = 1
153
- }
154
- /**
155
- * Alert metadata.
156
- */
157
- export interface AlertMetadata {
158
- /**
159
- * The ID of the alert.
160
- */
161
- alertId: number;
162
- /**
163
- * A list of metadata to be associated with the alert.
164
- */
165
- metadata: Metadata[];
166
- }
167
- /**
168
- * Alert metadata.
169
- */
170
- export interface AlertMetadataBatchRequest {
171
- /**
172
- * List of alert IDs.
173
- */
174
- alertIds: number[];
175
- /**
176
- * The flag to control error policy in a bulk get work items request. Possible options are \{Fail, Omit\}.
177
- */
178
- errorPolicy: AlertMetadataErrorPolicy;
179
- }
180
- /**
181
- * Used to represent an update in a relationship between an alert and an artifact.
182
- */
183
- export interface AlertMetadataChange {
184
- /**
185
- * The ID of the alert.
186
- */
187
- alertId: number;
188
- /**
189
- * The change that occurred to the metadata.
190
- */
191
- metadataChange: MetadataChange;
192
- }
193
- /**
194
- * Enum to control error policy in a bulk get alert metadata items request.
195
- */
196
- export declare enum AlertMetadataErrorPolicy {
197
- /**
198
- * Fail error policy: if an alert id is not found, the whole request fails.
199
- */
200
- Fail = 1,
201
- /**
202
- * Omit error policy: if an alert id is not found, it will be omitted from the results.
203
- */
204
- Omit = 2
205
- }
206
- export interface AlertStateUpdate {
207
- dismissedComment: string;
208
- dismissedReason: DismissalType;
209
- state: State;
210
- }
211
- export declare enum AlertType {
212
- /**
213
- * The code has an unspecified vulnerability type
214
- */
215
- Unknown = 0,
216
- /**
217
- * The code uses a dependency with a known vulnerability.
218
- */
219
- Dependency = 1,
220
- /**
221
- * The code contains a secret that has now been compromised and must be revoked.
222
- */
223
- Secret = 2,
224
- /**
225
- * The code contains a weakness determined by static analysis.
226
- */
227
- Code = 3,
228
- /**
229
- * The code uses a dependency with potential license incompliance.
230
- */
231
- License = 4
232
- }
233
- export declare enum AlertValidationRequestStatus {
234
- /**
235
- * Default, when the request status is not set/applicable.
236
- */
237
- None = 0,
238
- /**
239
- * First validation request for the alert's validation fingerprints, created when the sarif is submitted for processing.
240
- */
241
- Created = 1,
242
- /**
243
- * The secret validation jobs for the alert's validation fingerprints have been manually queued and at least one is still in progress.
244
- */
245
- InProgress = 2,
246
- /**
247
- * All the secret validation jobs for the alert's validation fingerprints have returned Completed or Failed.
248
- */
249
- Completed = 3,
250
- /**
251
- * This status is set only when there is an exception in the ValidationService.
252
- */
253
- Failed = 4
254
- }
255
- /**
256
- * Validity data for an alert that will be part of Alerts APIs and UI.
257
- */
258
- export interface AlertValidityInfo {
259
- isDynamicAnalysisSupported: boolean;
260
- validityLastCheckedDate: Date;
261
- validityStatus: AlertValidityStatus;
262
- }
263
- export declare enum AlertValidityStatus {
264
- /**
265
- * When there are no validation fingerprints attached to the alert.
266
- */
267
- None = 0,
268
- /**
269
- * When the validations for validation fingerprints associated to the alert have not been conclusive.
270
- */
271
- Unknown = 1,
272
- /**
273
- * When at least one validation fingerprint associated to the alert is exploitable.
274
- */
275
- Active = 2,
276
- /**
277
- * When all validation fingerprints associated to the alert are not exploitable.
278
- */
279
- Inactive = 3
280
- }
281
- /**
282
- * AnalysisConfiguration class models a build definition.
283
- */
284
- export interface AnalysisConfiguration {
285
- /**
286
- * The type of alert this configuration is setup to detect.
287
- */
288
- alertType: AlertType;
289
- /**
290
- * Details for the configuration. Populated values depend on the type of configuration.
291
- */
292
- analysisConfigurationDetails: AnalysisConfigurationDetails;
293
- /**
294
- * Identifier for the analysis configuration.
295
- */
296
- analysisConfigurationId: number;
297
- /**
298
- * Type of the configuration.
299
- */
300
- analysisConfigurationType: AnalysisConfigurationType;
301
- /**
302
- * Name of the tool that ran on this configuration.
303
- */
304
- toolName: string;
305
- /**
306
- * The latest version of the tool that ran on this configuration.
307
- */
308
- toolVersion: string;
309
- }
310
- export interface AnalysisConfigurationDetails {
311
- /**
312
- * Properties of the pipeline.
313
- */
314
- additionalProperties: {
315
- [key: string]: any;
316
- };
317
- /**
318
- * Reference to a git object, e.g. branch ref.
319
- */
320
- gitRef: string;
321
- /**
322
- * Is this the default branch?
323
- */
324
- isDefaultBranch: boolean;
325
- /**
326
- * Phase ID of the pipeline.
327
- */
328
- phaseId: string;
329
- /**
330
- * Phase name.
331
- */
332
- phaseName: string;
333
- /**
334
- * AzureDevOps pipeline id.
335
- */
336
- pipelineId: number;
337
- /**
338
- * Name of the pipeline.
339
- */
340
- pipelineName: string;
341
- }
342
- export declare enum AnalysisConfigurationType {
343
- /**
344
- * Default analysis configuration that is not attached to any other configuration data
345
- */
346
- Default = 0,
347
- /**
348
- * Ado Pipeline, contains branch, pipeline, phase, and ADOPipelineId
349
- */
350
- AdoPipeline = 1
351
- }
352
- /**
353
- * AnalysisInstance class models a build.
354
- */
355
- export interface AnalysisInstance {
356
- /**
357
- * CommitId is a commit id for that instance
358
- */
359
- commitId: string;
360
- /**
361
- * Analysis configuration.
362
- */
363
- configuration: AnalysisConfiguration;
364
- /**
365
- * Date when the analysis was created.
366
- */
367
- createdDate: Date;
368
- /**
369
- * InstanceIdentifier is a key that uniquely establishes this instance
370
- */
371
- instanceIdentifier: string;
372
- /**
373
- * Results that were reported by the analysis.
374
- */
375
- results: AnalysisResult[];
376
- /**
377
- * Url is the permalink to the build.
378
- */
379
- url: string;
380
- }
381
- export interface AnalysisResult {
382
- analysisResultId: number;
383
- firstIntroducedInstanceId: number;
384
- fixedInstanceId: number;
385
- introducedInstanceId: number;
386
- lastSeenInstanceId: number;
387
- result: Result;
388
- state: State;
389
- }
390
- export interface Branch {
391
- branchId: number;
392
- deletedDate: Date;
393
- name: string;
394
- }
395
- /**
396
- * This enum defines the dependency components.
397
- */
398
- export declare enum ComponentType {
399
- Unknown = 0,
400
- NuGet = 1,
401
- /**
402
- * Indicates the component is an Npm package.
403
- */
404
- Npm = 2,
405
- /**
406
- * Indicates the component is a Maven artifact.
407
- */
408
- Maven = 3,
409
- /**
410
- * Indicates the component is a Git repository.
411
- */
412
- Git = 4,
413
- /**
414
- * Indicates the component is not any of the supported component types by Governance.
415
- */
416
- Other = 5,
417
- /**
418
- * Indicates the component is a Ruby gem.
419
- */
420
- RubyGems = 6,
421
- /**
422
- * Indicates the component is a Cargo package.
423
- */
424
- Cargo = 7,
425
- /**
426
- * Indicates the component is a Pip package.
427
- */
428
- Pip = 8,
429
- /**
430
- * Indicates the component is a loose file. Not a package as understood by different package managers.
431
- */
432
- File = 9,
433
- /**
434
- * Indicates the component is a Go package.
435
- */
436
- Go = 10,
437
- /**
438
- * Indicates the component is a Docker Image
439
- */
440
- DockerImage = 11,
441
- /**
442
- * Indicates the component is a CocoaPods pod.
443
- */
444
- Pod = 12,
445
- /**
446
- * Indicates the component is found in a linux environment. A package understood by linux based package managers like apt and rpm.
447
- */
448
- Linux = 13,
449
- /**
450
- * Indicates the component is a Conda package.
451
- */
452
- Conda = 14,
453
- /**
454
- * Indicates the component is a Docker Reference.
455
- */
456
- DockerReference = 15,
457
- /**
458
- * Indicates the component is a Vcpkg Package.
459
- */
460
- Vcpkg = 16
461
- }
462
- export declare enum Confidence {
463
- /**
464
- * High confidence level for alert
465
- */
466
- High = 0,
467
- /**
468
- * Other confidence level for alert
469
- */
470
- Other = 1
471
- }
472
- /**
473
- * Information about a vulnerable dependency
474
- */
475
- export interface Dependency {
476
- /**
477
- * Dependency name
478
- */
479
- componentName: string;
480
- /**
481
- * Source of the dependency
482
- */
483
- componentType: ComponentType;
484
- /**
485
- * Version information
486
- */
487
- componentVersion: string;
488
- /**
489
- * Unique ID for the dependency
490
- */
491
- dependencyId: number;
492
- /**
493
- * License information of the Component
494
- */
495
- license: License;
496
- }
497
- export declare enum DependencyKind {
498
- Unknown = 0,
499
- /**
500
- * The root dependency introduced the component being alerted.
501
- */
502
- RootDependency = 1,
503
- /**
504
- * The component being alerted.
505
- */
506
- Component = 2,
507
- /**
508
- * Vulnerable Dependency. Deprecating this value. Use Component instead.
509
- */
510
- VulnerableDependency = 3
511
- }
512
- /**
513
- * An instance of a vulnerable dependency that was detected
514
- */
515
- export interface DependencyResult {
516
- /**
517
- * Information about the vulnerable dependency that was found
518
- */
519
- dependency: Dependency;
520
- /**
521
- * Unique ID for this dependency
522
- */
523
- dependencyResultId: number;
524
- /**
525
- * ID for the Result that this instance belongs to
526
- */
527
- resultId: number;
528
- /**
529
- * Heirarchal information when multiple instances are found
530
- */
531
- rootDependencyId: number;
532
- /**
533
- * Information about where the dependency was found
534
- */
535
- versionControlFilePath: VersionControlFilePath;
536
- }
537
- /**
538
- * Information about an alert dismissal
539
- */
540
- export interface Dismissal {
541
- /**
542
- * Unique ID for this dismissal
543
- */
544
- dismissalId: number;
545
- /**
546
- * Reason for the dismissal
547
- */
548
- dismissalType: DismissalType;
549
- /**
550
- * Informational message attached to the dismissal
551
- */
552
- message: string;
553
- requestedOn: Date;
554
- /**
555
- * Identity that dismissed the alert
556
- */
557
- stateChangedBy: string;
558
- /**
559
- * Identity that dismissed the alert
560
- */
561
- stateChangedByIdentity: WebApi.IdentityRef;
562
- }
563
- export declare enum DismissalType {
564
- /**
565
- * Dismissal type unknown
566
- */
567
- Unknown = 0,
568
- /**
569
- * Dismissal indicating alert has been fixed
570
- */
571
- Fixed = 1,
572
- /**
573
- * Dismissal indicating user is accepting a risk for the alert
574
- */
575
- AcceptedRisk = 2,
576
- /**
577
- * Dismissal indicating alert is a false positive and will likely not be fixed.
578
- */
579
- FalsePositive = 3,
580
- /**
581
- * Dismissal indicating user is agreeing to follow license guidance.
582
- */
583
- AgreedToGuidance = 4,
584
- /**
585
- * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
586
- */
587
- ToolUpgrade = 5,
588
- /**
589
- * Dismissal indicating the affected dependencency is not distributed to end users.
590
- */
591
- NotDistributed = 6
592
- }
593
- export declare enum ExpandOption {
594
- /**
595
- * No Expands.
596
- */
597
- None = 0,
598
- /**
599
- * Return validationFingerprints in Alert.
600
- */
601
- ValidationFingerprint = 1
602
- }
603
- /**
604
- * Details for a legal review for a given component
605
- */
606
- export interface LegalReview {
607
- /**
608
- * The review id. This indicates the associated work item id for dev it's witness-dev and for prod it's ossmsft.
609
- */
610
- id: number;
611
- /**
612
- * The review state.
613
- */
614
- state: string;
615
- /**
616
- * The review web url.
617
- */
618
- webUrl: string;
619
- }
620
- /**
621
- * License information for dependencies
622
- */
623
- export interface License {
624
- /**
625
- * License name
626
- */
627
- name: string;
628
- /**
629
- * License state
630
- */
631
- state: LicenseState;
632
- /**
633
- * License type
634
- */
635
- type: LicenseType;
636
- /**
637
- * Url for license information
638
- */
639
- url: string;
640
- }
641
- export declare enum LicenseState {
642
- /**
643
- * Information of the license has not been harvested by ClearlyDefined
644
- */
645
- Unknown = 0,
646
- /**
647
- * Information of the license has not been harvested by ClearlyDefined
648
- */
649
- NotHarvested = 1,
650
- /**
651
- * Information of the license has been harvested by ClearlyDefined
652
- */
653
- Harvested = 2
654
- }
655
- /**
656
- * Enumerates types of licenses.
657
- */
658
- export declare enum LicenseType {
659
- /**
660
- * The license type is unknown or not specified.
661
- */
662
- Unknown = 0,
663
- /**
664
- * A permissive license allows software to be freely used, modified, and distributed with minimal restrictions. Examples: MIT, Apache 2.0.
665
- */
666
- Permissive = 1,
667
- /**
668
- * 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.
669
- */
670
- WeakCopyleft = 2,
671
- /**
672
- * 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.
673
- */
674
- StrongCopyleft = 3,
675
- /**
676
- * 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.
677
- */
678
- NetworkCopyleft = 4,
679
- /**
680
- * A license that does not fit into the standard categories or is custom-defined. In CG, it indicates a commercial license.
681
- */
682
- Other = 5,
683
- /**
684
- * No assertion is made about the license type, leaving it unspecified.
685
- */
686
- NoAssertion = 6
687
- }
688
- export interface LogicalLocation {
689
- fullyQualifiedName: string;
690
- /**
691
- * Dependency kind of this logical location.
692
- */
693
- kind: DependencyKind;
694
- /**
695
- * License information for Dependency Only applicable when Kind is "Component" and the alertType of the alert with this location is License
696
- */
697
- license: License;
698
- }
699
- /**
700
- * The metadata operation to be performed on the alert.
701
- */
702
- export interface Metadata {
703
- /**
704
- * The type of operation to be performed.
705
- */
706
- op: MetadataOperation;
707
- /**
708
- * The metadata value
709
- */
710
- value: RelationMetadata;
711
- }
712
- /**
713
- * The change that has been made to the metadata.
714
- */
715
- export interface MetadataChange {
716
- /**
717
- * The type of change on the metadata.
718
- */
719
- changeType: MetadataChangeType;
720
- /**
721
- * Represents a metadata association to an alert.
722
- */
723
- value: RelationMetadata;
724
- }
725
- /**
726
- * The type of change that occurred to the metadata.
727
- */
728
- export declare enum MetadataChangeType {
729
- None = 0,
730
- Created = 1,
731
- Updated = 2,
732
- Deleted = 3
733
- }
734
- /**
735
- * The operation to be performed on the metadata.
736
- */
737
- export declare enum MetadataOperation {
738
- /**
739
- * Represents the defualt value if the operation is not specified or not supported.
740
- */
741
- None = 0,
742
- /**
743
- * Represents the addition of the metadata.
744
- */
745
- Add = 1,
746
- /**
747
- * Represents the removal of the metadata.
748
- */
749
- Remove = 2
750
- }
751
- /**
752
- * Location in the source control system where the issue was found
753
- */
754
- export interface PhysicalLocation {
755
- /**
756
- * Path of the file where the issue was found
757
- */
758
- filePath: string;
759
- /**
760
- * Indicates whether the path is a valid Git path that exists in the git repository associated with the alert.
761
- */
762
- isValidGitPath: boolean;
763
- /**
764
- * Details about the location where the issue was found including a snippet
765
- */
766
- region: Region;
767
- /**
768
- * Source control system-specific information about the location
769
- */
770
- versionControl: VersionControlDetails;
771
- }
772
- export interface Pipeline {
773
- adoPipelineId: number;
774
- name: string;
775
- phase: string;
776
- phaseId: string;
777
- properties: {
778
- [key: string]: any;
779
- };
780
- }
781
- export interface Region {
782
- /**
783
- * The column where the code snippet ends
784
- */
785
- columnEnd: number;
786
- /**
787
- * The column where the code snippet starts
788
- */
789
- columnStart: number;
790
- /**
791
- * The line number where the code snippet ends
792
- */
793
- lineEnd: number;
794
- /**
795
- * The line number where the code snippet starts
796
- */
797
- lineStart: number;
798
- }
799
- /**
800
- * The metadata to be associated with the alert.
801
- */
802
- export interface RelationMetadata {
803
- /**
804
- * Any additional attributes of the metadata.
805
- */
806
- attributes: {
807
- [key: string]: any;
808
- };
809
- /**
810
- * The type of the metadata.
811
- */
812
- rel: string;
813
- /**
814
- * The URL of the metadata.
815
- */
816
- url: string;
817
- }
818
- export interface Result {
819
- /**
820
- * Additional information about the alert. Valid when ResultType is Dependency
821
- */
822
- dependencyResult: DependencyResult;
823
- /**
824
- * Full fingerprint of the Result. This is used to detect duplicate instances of the same alert
825
- */
826
- fingerprint: string;
827
- /**
828
- * Unique ID of the fingerprint of the Result
829
- */
830
- fingerprintId: number;
831
- /**
832
- * Unique ID of the Result
833
- */
834
- resultId: number;
835
- /**
836
- * This is the index into the SARIF Results array. If we have to do any tool specific insertions, we'll use this key to index back into the SARIF Results array.
837
- */
838
- resultIndex: number;
839
- /**
840
- * Detailed description of the rule that triggered the alert
841
- */
842
- resultMessage: string;
843
- /**
844
- * The type of rule that triggered the alert
845
- */
846
- resultType: ResultType;
847
- /**
848
- * ID of the rule that the triggered the alert
849
- */
850
- ruleId: number;
851
- /**
852
- * Short description of the rule that triggered the alert
853
- */
854
- ruleShortDescription: string;
855
- /**
856
- * The severity of the alert
857
- */
858
- severity: Severity;
859
- /**
860
- * Additional information about the alert. Valid when ResultType is VersionControl
861
- */
862
- versionControlResult: VersionControlResult;
863
- }
864
- /**
865
- * This enum defines the different result types.
866
- */
867
- export declare enum ResultType {
868
- /**
869
- * The result was found from an unspecified analysis type
870
- */
871
- Unknown = 0,
872
- /**
873
- * The result was found from dependency analysis
874
- */
875
- Dependency = 1,
876
- /**
877
- * The result was found from static code analysis
878
- */
879
- VersionControl = 2
880
- }
881
- /**
882
- * The analysis rule that caused the alert.
883
- */
884
- export interface Rule {
885
- /**
886
- * Additional properties of this rule dependent on the rule type. For example, dependency rules may include the CVE ID if it is available.
887
- */
888
- additionalProperties: {
889
- [key: string]: any;
890
- };
891
- /**
892
- * Description of what this rule detects
893
- */
894
- description: string;
895
- /**
896
- * Plain-text rule identifier
897
- */
898
- friendlyName: string;
899
- /**
900
- * Additional information about this rule
901
- */
902
- helpMessage: string;
903
- /**
904
- * Tool-specific rule identifier
905
- */
906
- opaqueId: string;
907
- /**
908
- * Markdown-formatted list of resources to learn more about the Rule. In some cases, RuleInfo.AdditionalProperties.advisoryUrls is used instead.
909
- */
910
- resources: string;
911
- /**
912
- * Classification tags for this rule
913
- */
914
- tags: string[];
915
- }
916
- export declare enum SarifJobStatus {
917
- /**
918
- * The job type when it is new
919
- */
920
- New = 0,
921
- /**
922
- * The job type when it is queued
923
- */
924
- Queued = 1,
925
- /**
926
- * The job type when it is completed
927
- */
928
- Completed = 2,
929
- /**
930
- * The job type when it fails
931
- */
932
- Failed = 3,
933
- /**
934
- * The job type when it is queued on exception
935
- */
936
- Requeued = 4
937
- }
938
- export interface SarifUploadStatus {
939
- errors: SarifValidationError[];
940
- processingStatus: SarifJobStatus;
941
- }
942
- export interface SarifValidationError {
943
- nodePointer: string;
944
- ruleId: string;
945
- validationError: string;
946
- }
947
- export interface SearchCriteria {
948
- /**
949
- * If provided, only return alerts with the ids specified. \<br /\>Otherwise, return any alert.
950
- */
951
- alertIds: number[];
952
- /**
953
- * If provided, only return alerts of this type. Otherwise, return alerts of all types.
954
- */
955
- alertType: AlertType;
956
- /**
957
- * If provided, only return alerts at these confidence levels. \<br /\>Both High and Other need to be specified to fetch alerts of all confidence levels. \<br /\>Otherwise, return alerts with high confidence level. \<br /\>Only applicable for secret alerts.
958
- */
959
- confidenceLevels: Confidence[];
960
- /**
961
- * 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. \<br /\>Not applicable for secret alerts.
962
- */
963
- dependencyName: string;
964
- /**
965
- * If provided, only return alerts last seen after this date. \<br /\>Otherwise return all alerts.
966
- */
967
- fromDate: Date;
968
- /**
969
- * If provided, filters alerts based on whether they have linked work items. \<br /\>Set to "true" to return only alerts with linked work items. \<br /\>Set to "false" to return only alerts without linked work items. \<br /\>If not provided, returns all alerts regardless of linked work items. \<br /\>Not applicable for secret and dependency scanning alerts.
970
- */
971
- hasLinkedWorkItems: boolean;
972
- /**
973
- * If provided, only return alerts whose titles match this pattern.
974
- */
975
- keywords: string;
976
- /**
977
- * 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. \<br /\>Not applicable for secret alerts.
978
- */
979
- licenseName: string;
980
- /**
981
- * If provided, only return alerts that were modified since this date. \<br /\>Otherwise return all alerts.
982
- */
983
- modifiedSince: Date;
984
- /**
985
- * If true or not set, only return alerts found on the default branch of the repository. \<br /\>If there have been no runs completed on the default branch, the last run is used instead regardless of the branch used for that run. If false, return alerts from all branches. \<br /\>This option is ignored if ref is provided. \<br /\>Not applicable for secret alerts.
986
- */
987
- onlyDefaultBranch: boolean;
988
- /**
989
- * If provided with pipelineName, only return alerts detected in this pipeline phase \<br /\>Otherwise, return alerts detected in all phases. \<br /\>Not applicable for secret alerts.
990
- */
991
- phaseId: string;
992
- /**
993
- * If provided with pipelineName, only return alerts detected in this pipeline phase \<br /\>Otherwise, return alerts detected in all phases. \<br /\>Not applicable for secret alerts.
994
- */
995
- phaseName: string;
996
- /**
997
- * If provided, only return alerts detected in this pipeline. \<br /\>Otherwise, return alerts detected in all pipelines. \<br /\>Not applicable for secret alerts.
998
- */
999
- pipelineName: string;
1000
- /**
1001
- * If provided, only include alerts for this ref. \<br /\>If not provided and OnlyDefaultBranch is true, only include alerts found on the default branch or last run branch if there is no analysis configuration for the default branch. \<br /\>Otherwise, include alerts from all branches. \<br /\>Not applicable for secret alerts.
1002
- */
1003
- ref: string;
1004
- /**
1005
- * If provided, only return alerts for this rule. \<br /\>Otherwise, return alerts of all rules.
1006
- */
1007
- ruleId: string;
1008
- /**
1009
- * If provided, only return alerts for this rule. \<br /\>Otherwise, return alerts for all rules.
1010
- */
1011
- ruleName: string;
1012
- /**
1013
- * If provided, only return alerts at these severities. \<br /\>Otherwise, return alerts at any severity.
1014
- */
1015
- severities: Severity[];
1016
- /**
1017
- * If provided, only return alerts in these states. \<br /\>Otherwise, return alerts in any state.
1018
- */
1019
- states: State[];
1020
- /**
1021
- * If provided, only return alerts last seen before this date. \<br /\>Otherwise return all alerts.
1022
- */
1023
- toDate: Date;
1024
- /**
1025
- * If provided with toolName, only return alerts detected by this tool. \<br /\>Otherwise, return alerts detected by all tools.
1026
- */
1027
- toolName: string;
1028
- /**
1029
- * If provided, only return alerts with the validity specified here. If the validity status is Unknown, fetch alerts of all validity results. \<br /\>Only applicable for secret alerts. \<br /\>Filtering by validity status may cause less alerts to be returned than requested with TOP parameter. \<br /\>Due to this behavior, the ContinuationToken(\<![CDATA[\<header name\>]]\>) in the response header should be relied on to decide if another batch needs to be fetched.
1030
- */
1031
- validity: AlertValidityStatus[];
1032
- }
1033
- export declare enum Severity {
1034
- Low = 0,
1035
- Medium = 1,
1036
- High = 2,
1037
- Critical = 3,
1038
- Note = 4,
1039
- Warning = 5,
1040
- Error = 6,
1041
- Undefined = 7
1042
- }
1043
- export declare enum State {
1044
- /**
1045
- * Alert is in an indeterminate state
1046
- */
1047
- Unknown = 0,
1048
- /**
1049
- * Alert has been detected in the code
1050
- */
1051
- Active = 1,
1052
- /**
1053
- * Alert was dismissed by a user
1054
- */
1055
- Dismissed = 2,
1056
- /**
1057
- * The issue is no longer detected in the code
1058
- */
1059
- Fixed = 4,
1060
- /**
1061
- * The tool has determined that the issue is no longer a risk
1062
- */
1063
- AutoDismissed = 8
1064
- }
1065
- /**
1066
- * An Analysis tool that can generate security alerts
1067
- */
1068
- export interface Tool {
1069
- /**
1070
- * Name of the tool
1071
- */
1072
- name: string;
1073
- /**
1074
- * The rules that the tool defines
1075
- */
1076
- rules: Rule[];
1077
- }
1078
- export interface UxFilters {
1079
- /**
1080
- * Display alerts for specified branches. Show alerts for all branches if none are specified.
1081
- */
1082
- branches: Branch[];
1083
- /**
1084
- * Display alerts for specified confidence levels. Show alerts for all confidence levels. if none are specified.
1085
- */
1086
- confidenceLevels: Confidence[];
1087
- /**
1088
- * Display alerts for specified licenses. Show alerts for all licenses if none are specified.
1089
- */
1090
- licenses: License[];
1091
- /**
1092
- * Display alerts for specified packages. Show alerts for all packages if none are specified.
1093
- */
1094
- packages: Dependency[];
1095
- /**
1096
- * Display alerts for specified pipelines. Show alerts for all pipelines if none are specified.
1097
- */
1098
- pipelines: Pipeline[];
1099
- progressPercentage: number;
1100
- /**
1101
- * Display alerts for specified rules. Show alerts for all rules if none are specified.
1102
- */
1103
- rules: Rule[];
1104
- /**
1105
- * Display alerts for specified secret types. Show alerts for all secret types if none are specified.
1106
- */
1107
- secretTypes: string[];
1108
- /**
1109
- * Display alerts for specified severities. Show alerts for all severities if none are specified.
1110
- */
1111
- severities: Severity[];
1112
- /**
1113
- * Display alerts for specified states. Show alerts for all states if none are specified.
1114
- */
1115
- states: State[];
1116
- /**
1117
- * Display alerts for specified tools. Show alerts for all tools if none are specified.
1118
- */
1119
- tools: Tool[];
1120
- /**
1121
- * Display alerts for specified validity. Show alerts for all validities if none are specified.
1122
- */
1123
- validity: AlertValidityStatus[];
1124
- }
1125
- export interface ValidationFingerprint {
1126
- /**
1127
- * The key value representation of the asset fingerprint.
1128
- */
1129
- assetFingerprint: {
1130
- [key: string]: string;
1131
- };
1132
- /**
1133
- * Represents the CrossCompanyCorrelatingId for the secret in the ValidationFingerprintJson.
1134
- */
1135
- c3Id: string;
1136
- /**
1137
- * The hash associated to the secret.
1138
- */
1139
- validationFingerprintHash: string;
1140
- /**
1141
- * 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.
1142
- */
1143
- validationFingerprintJson: string;
1144
- /**
1145
- * The date when the validity was last updated.
1146
- */
1147
- validityLastUpdatedDate: Date;
1148
- /**
1149
- * The result of the validation.
1150
- */
1151
- validityResult: ValidationResult;
1152
- }
1153
- /**
1154
- * Data associated to a validation request for an alert. Along with the request status, this includes the validity data that is part of Get Alert(s) response.
1155
- */
1156
- export interface ValidationRequestInfo extends AlertValidityInfo {
1157
- alertValidationRequestStatus: AlertValidationRequestStatus;
1158
- }
1159
- export declare enum ValidationResult {
1160
- /**
1161
- * Default value, no information about the secret can be inferred from this.
1162
- */
1163
- None = 0,
1164
- /**
1165
- * Represents a secret that can be used to connect to a resource.
1166
- */
1167
- Exploitable = 1,
1168
- /**
1169
- * Represents a secret that can't be used to connect to a resource.
1170
- */
1171
- NotExploitable = 2,
1172
- /**
1173
- * Represents a secret where no determination can be made about its exploitability.
1174
- */
1175
- Inconclusive = 3,
1176
- /**
1177
- * Represents a secret where we are unable to validate, e.g. dynamic validator missing.
1178
- */
1179
- ValidationNotSupported = 4,
1180
- /**
1181
- * Represents a secret where the validation process failed due to a transient error, e.g. network issue. This result indicates that the validation process should be retried.
1182
- */
1183
- TransientError = 5
1184
- }
1185
- /**
1186
- * Information for locating files in a source control system
1187
- */
1188
- export interface VersionControlDetails {
1189
- commitHash: string;
1190
- itemUrl: string;
1191
- }
1192
- export interface VersionControlFilePath {
1193
- /**
1194
- * Path of the file in the version control system
1195
- */
1196
- filePath: string;
1197
- /**
1198
- * Hash of the file in the version control system
1199
- */
1200
- filePathHash: number[];
1201
- /**
1202
- * Unique ID for the file in the version control system
1203
- */
1204
- versionControlFilePathId: number;
1205
- }
1206
- export interface VersionControlResult {
1207
- /**
1208
- * The ID to associate this structure with the cooresponding Result
1209
- */
1210
- resultId: number;
1211
- /**
1212
- * Information about the snippet where the Result was found
1213
- */
1214
- versionControlSnippet: VersionControlSnippet;
1215
- }
1216
- export interface VersionControlSnippet {
1217
- /**
1218
- * column in the code file where the snippet ends
1219
- */
1220
- endColumn: number;
1221
- /**
1222
- * line in the code file where the snippet ends
1223
- */
1224
- endLine: number;
1225
- /**
1226
- * column in the code file where the snippet starts
1227
- */
1228
- startColumn: number;
1229
- /**
1230
- * line in the code file where the snippet starts
1231
- */
1232
- startLine: number;
1233
- /**
1234
- * path of the code file in the version control system
1235
- */
1236
- versionControlFilePath: VersionControlFilePath;
1237
- /**
1238
- * Unique Id number for the file path
1239
- */
1240
- versionControlFilePathId: number;
1241
- /**
1242
- * Unique Id number for this snippet
1243
- */
1244
- versionControlSnippetId: number;
1245
- }
1
+ import * as WebApi from "../WebApi/WebApi";
2
+ export interface Alert {
3
+ /**
4
+ * Additional properties of this alert.
5
+ */
6
+ additionalProperties: {
7
+ [key: string]: any;
8
+ };
9
+ /**
10
+ * Identifier for the alert. It is unique within Azure DevOps organization.
11
+ */
12
+ alertId: number;
13
+ /**
14
+ * Type of the alert. E.g. secret, code, etc.
15
+ */
16
+ alertType: AlertType;
17
+ /**
18
+ * Confidence level of the alert.
19
+ */
20
+ confidence: Confidence;
21
+ /**
22
+ * Contains information for the dismissal of the alert if the alert has been dismissed.
23
+ */
24
+ dismissal: Dismissal;
25
+ /**
26
+ * This value is computed and returned by the service. This value represents the first time the service has seen this issue reported in an analysis instance.
27
+ */
28
+ firstSeenDate: Date;
29
+ /**
30
+ * This value is computed and returned by the service. If the issue is fixed, this value represents the time the service has seen this issue fixed in an analysis instance.
31
+ */
32
+ fixedDate: Date;
33
+ /**
34
+ * Reference to a git object, e.g. branch ref.
35
+ */
36
+ gitRef: string;
37
+ /**
38
+ * Value indicates whether the alert comes from a SARIF uploaded by a trusted source.
39
+ */
40
+ hasTrustedSourceOrigin: boolean;
41
+ /**
42
+ * This value is computed and returned by the service. This value represents the first time the vulnerability was introduced.
43
+ */
44
+ introducedDate: Date;
45
+ /**
46
+ * This value is computed and returned by the service. This value represents the last time the service has seen this issue reported in an analysis instance.
47
+ */
48
+ lastSeenDate: Date;
49
+ /**
50
+ * Logical locations for the alert. This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a logical location is a component.
51
+ */
52
+ logicalLocations: LogicalLocation[];
53
+ /**
54
+ * This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a physical location is a file location.
55
+ */
56
+ physicalLocations: PhysicalLocation[];
57
+ /**
58
+ * Identifier of the project where the alert was detected.
59
+ */
60
+ projectId: string;
61
+ /**
62
+ * Relations between alerts and other artifacts.
63
+ */
64
+ relations: RelationMetadata[];
65
+ /**
66
+ * Identifier of the repository where the alert was detected.
67
+ */
68
+ repositoryId: string;
69
+ /**
70
+ * Repository URL where the alert was detected.
71
+ */
72
+ repositoryUrl: string;
73
+ /**
74
+ * Severity of the alert.
75
+ */
76
+ severity: Severity;
77
+ /**
78
+ * This value is computed and returned by the service. It is a value based on the results from all analysis configurations.
79
+ */
80
+ state: State;
81
+ /**
82
+ * Title will only be rendered as text and does not support markdown formatting. There is a maximum character limit of 256.
83
+ */
84
+ title: string;
85
+ /**
86
+ * Tools that have detected this issue.
87
+ */
88
+ tools: Tool[];
89
+ /**
90
+ * A truncated/obfuscated version of the secret pertaining to the alert (if applicable).
91
+ */
92
+ truncatedSecret: string;
93
+ /**
94
+ * ValidationFingerprints for the secret liveness check. Only returned on demand in Get API with Expand parameter set to be ValidationFingerprint (not returned in List API)
95
+ */
96
+ validationFingerprints: ValidationFingerprint[];
97
+ /**
98
+ * Validity details of an alert. Currently, this is only applicable to secret alerts. In case of secret alerts, the validity status and time is computed by looking at the liveness results for validation fingerprints associated to an alert.
99
+ */
100
+ validityDetails: AlertValidityInfo;
101
+ }
102
+ /**
103
+ * Summary of the state of the alert for a given analysis configuration.
104
+ */
105
+ export interface AlertAnalysisInstance {
106
+ /**
107
+ * Analysis configuration.
108
+ */
109
+ analysisConfiguration: AnalysisConfiguration;
110
+ /**
111
+ * Analysis instance where the issue was first detected for a given analysis configuration.
112
+ */
113
+ firstSeen: AnalysisInstance;
114
+ /**
115
+ * Analysis instance where the issue was fixed for a given analysis configuration.
116
+ */
117
+ fixedIn: AnalysisInstance;
118
+ /**
119
+ * Analysis instance where the issue was last detected for a given analysis configuration.
120
+ */
121
+ lastSeen: AnalysisInstance;
122
+ /**
123
+ * The most recent instatnce of the analysis.
124
+ */
125
+ recentAnalysisInstance: AnalysisInstance;
126
+ /**
127
+ * Result state for a given analysis configuration.
128
+ */
129
+ state: State;
130
+ }
131
+ /**
132
+ * Request model for getting alerts by IDs with optional alert type filter.
133
+ */
134
+ export interface AlertBatchRequest {
135
+ /**
136
+ * List of alert IDs to retrieve.
137
+ */
138
+ alertIds: number[];
139
+ /**
140
+ * Alert type of the alert IDs.
141
+ */
142
+ alertType: AlertType;
143
+ }
144
+ export declare enum AlertListExpandOption {
145
+ /**
146
+ * No Expands.
147
+ */
148
+ None = 0,
149
+ /**
150
+ * Return a minimal representation of an alert.
151
+ */
152
+ Minimal = 1
153
+ }
154
+ /**
155
+ * Alert metadata.
156
+ */
157
+ export interface AlertMetadata {
158
+ /**
159
+ * The ID of the alert.
160
+ */
161
+ alertId: number;
162
+ /**
163
+ * A list of metadata to be associated with the alert.
164
+ */
165
+ metadata: Metadata[];
166
+ }
167
+ /**
168
+ * Alert metadata.
169
+ */
170
+ export interface AlertMetadataBatchRequest {
171
+ /**
172
+ * List of alert IDs.
173
+ */
174
+ alertIds: number[];
175
+ /**
176
+ * The flag to control error policy in a bulk get work items request. Possible options are \{Fail, Omit\}.
177
+ */
178
+ errorPolicy: AlertMetadataErrorPolicy;
179
+ }
180
+ /**
181
+ * Used to represent an update in a relationship between an alert and an artifact.
182
+ */
183
+ export interface AlertMetadataChange {
184
+ /**
185
+ * The ID of the alert.
186
+ */
187
+ alertId: number;
188
+ /**
189
+ * The change that occurred to the metadata.
190
+ */
191
+ metadataChange: MetadataChange;
192
+ }
193
+ /**
194
+ * Enum to control error policy in a bulk get alert metadata items request.
195
+ */
196
+ export declare enum AlertMetadataErrorPolicy {
197
+ /**
198
+ * Fail error policy: if an alert id is not found, the whole request fails.
199
+ */
200
+ Fail = 1,
201
+ /**
202
+ * Omit error policy: if an alert id is not found, it will be omitted from the results.
203
+ */
204
+ Omit = 2
205
+ }
206
+ export interface AlertStateUpdate {
207
+ dismissedComment: string;
208
+ dismissedReason: DismissalType;
209
+ state: State;
210
+ }
211
+ export declare enum AlertType {
212
+ /**
213
+ * The code has an unspecified vulnerability type
214
+ */
215
+ Unknown = 0,
216
+ /**
217
+ * The code uses a dependency with a known vulnerability.
218
+ */
219
+ Dependency = 1,
220
+ /**
221
+ * The code contains a secret that has now been compromised and must be revoked.
222
+ */
223
+ Secret = 2,
224
+ /**
225
+ * The code contains a weakness determined by static analysis.
226
+ */
227
+ Code = 3,
228
+ /**
229
+ * The code uses a dependency with potential license incompliance.
230
+ */
231
+ License = 4
232
+ }
233
+ export declare enum AlertValidationRequestStatus {
234
+ /**
235
+ * Default, when the request status is not set/applicable.
236
+ */
237
+ None = 0,
238
+ /**
239
+ * First validation request for the alert's validation fingerprints, created when the sarif is submitted for processing.
240
+ */
241
+ Created = 1,
242
+ /**
243
+ * The secret validation jobs for the alert's validation fingerprints have been manually queued and at least one is still in progress.
244
+ */
245
+ InProgress = 2,
246
+ /**
247
+ * All the secret validation jobs for the alert's validation fingerprints have returned Completed or Failed.
248
+ */
249
+ Completed = 3,
250
+ /**
251
+ * This status is set only when there is an exception in the ValidationService.
252
+ */
253
+ Failed = 4
254
+ }
255
+ /**
256
+ * Validity data for an alert that will be part of Alerts APIs and UI.
257
+ */
258
+ export interface AlertValidityInfo {
259
+ isDynamicAnalysisSupported: boolean;
260
+ validityLastCheckedDate: Date;
261
+ validityStatus: AlertValidityStatus;
262
+ }
263
+ export declare enum AlertValidityStatus {
264
+ /**
265
+ * When there are no validation fingerprints attached to the alert.
266
+ */
267
+ None = 0,
268
+ /**
269
+ * When the validations for validation fingerprints associated to the alert have not been conclusive.
270
+ */
271
+ Unknown = 1,
272
+ /**
273
+ * When at least one validation fingerprint associated to the alert is exploitable.
274
+ */
275
+ Active = 2,
276
+ /**
277
+ * When all validation fingerprints associated to the alert are not exploitable.
278
+ */
279
+ Inactive = 3
280
+ }
281
+ /**
282
+ * AnalysisConfiguration class models a build definition.
283
+ */
284
+ export interface AnalysisConfiguration {
285
+ /**
286
+ * The type of alert this configuration is setup to detect.
287
+ */
288
+ alertType: AlertType;
289
+ /**
290
+ * Details for the configuration. Populated values depend on the type of configuration.
291
+ */
292
+ analysisConfigurationDetails: AnalysisConfigurationDetails;
293
+ /**
294
+ * Identifier for the analysis configuration.
295
+ */
296
+ analysisConfigurationId: number;
297
+ /**
298
+ * Type of the configuration.
299
+ */
300
+ analysisConfigurationType: AnalysisConfigurationType;
301
+ /**
302
+ * Name of the tool that ran on this configuration.
303
+ */
304
+ toolName: string;
305
+ /**
306
+ * The latest version of the tool that ran on this configuration.
307
+ */
308
+ toolVersion: string;
309
+ }
310
+ export interface AnalysisConfigurationDetails {
311
+ /**
312
+ * Properties of the pipeline.
313
+ */
314
+ additionalProperties: {
315
+ [key: string]: any;
316
+ };
317
+ /**
318
+ * Reference to a git object, e.g. branch ref.
319
+ */
320
+ gitRef: string;
321
+ /**
322
+ * Is this the default branch?
323
+ */
324
+ isDefaultBranch: boolean;
325
+ /**
326
+ * Phase ID of the pipeline.
327
+ */
328
+ phaseId: string;
329
+ /**
330
+ * Phase name.
331
+ */
332
+ phaseName: string;
333
+ /**
334
+ * AzureDevOps pipeline id.
335
+ */
336
+ pipelineId: number;
337
+ /**
338
+ * Name of the pipeline.
339
+ */
340
+ pipelineName: string;
341
+ }
342
+ export declare enum AnalysisConfigurationType {
343
+ /**
344
+ * Default analysis configuration that is not attached to any other configuration data
345
+ */
346
+ Default = 0,
347
+ /**
348
+ * Ado Pipeline, contains branch, pipeline, phase, and ADOPipelineId
349
+ */
350
+ AdoPipeline = 1
351
+ }
352
+ /**
353
+ * AnalysisInstance class models a build.
354
+ */
355
+ export interface AnalysisInstance {
356
+ /**
357
+ * CommitId is a commit id for that instance
358
+ */
359
+ commitId: string;
360
+ /**
361
+ * Analysis configuration.
362
+ */
363
+ configuration: AnalysisConfiguration;
364
+ /**
365
+ * Date when the analysis was created.
366
+ */
367
+ createdDate: Date;
368
+ /**
369
+ * InstanceIdentifier is a key that uniquely establishes this instance
370
+ */
371
+ instanceIdentifier: string;
372
+ /**
373
+ * Results that were reported by the analysis.
374
+ */
375
+ results: AnalysisResult[];
376
+ /**
377
+ * Url is the permalink to the build.
378
+ */
379
+ url: string;
380
+ }
381
+ export interface AnalysisResult {
382
+ analysisResultId: number;
383
+ firstIntroducedInstanceId: number;
384
+ fixedInstanceId: number;
385
+ introducedInstanceId: number;
386
+ lastSeenInstanceId: number;
387
+ result: Result;
388
+ state: State;
389
+ }
390
+ export interface Branch {
391
+ branchId: number;
392
+ deletedDate: Date;
393
+ name: string;
394
+ }
395
+ /**
396
+ * This enum defines the dependency components.
397
+ */
398
+ export declare enum ComponentType {
399
+ Unknown = 0,
400
+ NuGet = 1,
401
+ /**
402
+ * Indicates the component is an Npm package.
403
+ */
404
+ Npm = 2,
405
+ /**
406
+ * Indicates the component is a Maven artifact.
407
+ */
408
+ Maven = 3,
409
+ /**
410
+ * Indicates the component is a Git repository.
411
+ */
412
+ Git = 4,
413
+ /**
414
+ * Indicates the component is not any of the supported component types by Governance.
415
+ */
416
+ Other = 5,
417
+ /**
418
+ * Indicates the component is a Ruby gem.
419
+ */
420
+ RubyGems = 6,
421
+ /**
422
+ * Indicates the component is a Cargo package.
423
+ */
424
+ Cargo = 7,
425
+ /**
426
+ * Indicates the component is a Pip package.
427
+ */
428
+ Pip = 8,
429
+ /**
430
+ * Indicates the component is a loose file. Not a package as understood by different package managers.
431
+ */
432
+ File = 9,
433
+ /**
434
+ * Indicates the component is a Go package.
435
+ */
436
+ Go = 10,
437
+ /**
438
+ * Indicates the component is a Docker Image
439
+ */
440
+ DockerImage = 11,
441
+ /**
442
+ * Indicates the component is a CocoaPods pod.
443
+ */
444
+ Pod = 12,
445
+ /**
446
+ * Indicates the component is found in a linux environment. A package understood by linux based package managers like apt and rpm.
447
+ */
448
+ Linux = 13,
449
+ /**
450
+ * Indicates the component is a Conda package.
451
+ */
452
+ Conda = 14,
453
+ /**
454
+ * Indicates the component is a Docker Reference.
455
+ */
456
+ DockerReference = 15,
457
+ /**
458
+ * Indicates the component is a Vcpkg Package.
459
+ */
460
+ Vcpkg = 16
461
+ }
462
+ export declare enum Confidence {
463
+ /**
464
+ * High confidence level for alert
465
+ */
466
+ High = 0,
467
+ /**
468
+ * Other confidence level for alert
469
+ */
470
+ Other = 1
471
+ }
472
+ /**
473
+ * Information about a vulnerable dependency
474
+ */
475
+ export interface Dependency {
476
+ /**
477
+ * Dependency name
478
+ */
479
+ componentName: string;
480
+ /**
481
+ * Source of the dependency
482
+ */
483
+ componentType: ComponentType;
484
+ /**
485
+ * Version information
486
+ */
487
+ componentVersion: string;
488
+ /**
489
+ * Unique ID for the dependency
490
+ */
491
+ dependencyId: number;
492
+ /**
493
+ * License information of the Component
494
+ */
495
+ license: License;
496
+ }
497
+ export declare enum DependencyKind {
498
+ Unknown = 0,
499
+ /**
500
+ * The root dependency introduced the component being alerted.
501
+ */
502
+ RootDependency = 1,
503
+ /**
504
+ * The component being alerted.
505
+ */
506
+ Component = 2,
507
+ /**
508
+ * Vulnerable Dependency. Deprecating this value. Use Component instead.
509
+ */
510
+ VulnerableDependency = 3
511
+ }
512
+ /**
513
+ * An instance of a vulnerable dependency that was detected
514
+ */
515
+ export interface DependencyResult {
516
+ /**
517
+ * Information about the vulnerable dependency that was found
518
+ */
519
+ dependency: Dependency;
520
+ /**
521
+ * Unique ID for this dependency
522
+ */
523
+ dependencyResultId: number;
524
+ /**
525
+ * ID for the Result that this instance belongs to
526
+ */
527
+ resultId: number;
528
+ /**
529
+ * Heirarchal information when multiple instances are found
530
+ */
531
+ rootDependencyId: number;
532
+ /**
533
+ * Information about where the dependency was found
534
+ */
535
+ versionControlFilePath: VersionControlFilePath;
536
+ }
537
+ /**
538
+ * Information about an alert dismissal
539
+ */
540
+ export interface Dismissal {
541
+ /**
542
+ * Unique ID for this dismissal
543
+ */
544
+ dismissalId: number;
545
+ /**
546
+ * Reason for the dismissal
547
+ */
548
+ dismissalType: DismissalType;
549
+ /**
550
+ * Informational message attached to the dismissal
551
+ */
552
+ message: string;
553
+ requestedOn: Date;
554
+ /**
555
+ * Identity that dismissed the alert
556
+ */
557
+ stateChangedBy: string;
558
+ /**
559
+ * Identity that dismissed the alert
560
+ */
561
+ stateChangedByIdentity: WebApi.IdentityRef;
562
+ }
563
+ export declare enum DismissalType {
564
+ /**
565
+ * Dismissal type unknown
566
+ */
567
+ Unknown = 0,
568
+ /**
569
+ * Dismissal indicating alert has been fixed
570
+ */
571
+ Fixed = 1,
572
+ /**
573
+ * Dismissal indicating user is accepting a risk for the alert
574
+ */
575
+ AcceptedRisk = 2,
576
+ /**
577
+ * Dismissal indicating alert is a false positive and will likely not be fixed.
578
+ */
579
+ FalsePositive = 3,
580
+ /**
581
+ * Dismissal indicating user is agreeing to follow license guidance.
582
+ */
583
+ AgreedToGuidance = 4,
584
+ /**
585
+ * Dismissal indicating backend detection tool was upgraded and the alert is not detected by the new version of tool.
586
+ */
587
+ ToolUpgrade = 5,
588
+ /**
589
+ * Dismissal indicating the affected dependencency is not distributed to end users.
590
+ */
591
+ NotDistributed = 6
592
+ }
593
+ export declare enum ExpandOption {
594
+ /**
595
+ * No Expands.
596
+ */
597
+ None = 0,
598
+ /**
599
+ * Return validationFingerprints in Alert.
600
+ */
601
+ ValidationFingerprint = 1
602
+ }
603
+ /**
604
+ * Details for a legal review for a given component
605
+ */
606
+ export interface LegalReview {
607
+ /**
608
+ * The review id. This indicates the associated work item id for dev it's witness-dev and for prod it's ossmsft.
609
+ */
610
+ id: number;
611
+ /**
612
+ * The review state.
613
+ */
614
+ state: string;
615
+ /**
616
+ * The review web url.
617
+ */
618
+ webUrl: string;
619
+ }
620
+ /**
621
+ * License information for dependencies
622
+ */
623
+ export interface License {
624
+ /**
625
+ * License name
626
+ */
627
+ name: string;
628
+ /**
629
+ * License state
630
+ */
631
+ state: LicenseState;
632
+ /**
633
+ * License type
634
+ */
635
+ type: LicenseType;
636
+ /**
637
+ * Url for license information
638
+ */
639
+ url: string;
640
+ }
641
+ export declare enum LicenseState {
642
+ /**
643
+ * Information of the license has not been harvested by ClearlyDefined
644
+ */
645
+ Unknown = 0,
646
+ /**
647
+ * Information of the license has not been harvested by ClearlyDefined
648
+ */
649
+ NotHarvested = 1,
650
+ /**
651
+ * Information of the license has been harvested by ClearlyDefined
652
+ */
653
+ Harvested = 2
654
+ }
655
+ /**
656
+ * Enumerates types of licenses.
657
+ */
658
+ export declare enum LicenseType {
659
+ /**
660
+ * The license type is unknown or not specified.
661
+ */
662
+ Unknown = 0,
663
+ /**
664
+ * A permissive license allows software to be freely used, modified, and distributed with minimal restrictions. Examples: MIT, Apache 2.0.
665
+ */
666
+ Permissive = 1,
667
+ /**
668
+ * 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.
669
+ */
670
+ WeakCopyleft = 2,
671
+ /**
672
+ * 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.
673
+ */
674
+ StrongCopyleft = 3,
675
+ /**
676
+ * 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.
677
+ */
678
+ NetworkCopyleft = 4,
679
+ /**
680
+ * A license that does not fit into the standard categories or is custom-defined. In CG, it indicates a commercial license.
681
+ */
682
+ Other = 5,
683
+ /**
684
+ * No assertion is made about the license type, leaving it unspecified.
685
+ */
686
+ NoAssertion = 6
687
+ }
688
+ export interface LogicalLocation {
689
+ fullyQualifiedName: string;
690
+ /**
691
+ * Dependency kind of this logical location.
692
+ */
693
+ kind: DependencyKind;
694
+ /**
695
+ * License information for Dependency Only applicable when Kind is "Component" and the alertType of the alert with this location is License
696
+ */
697
+ license: License;
698
+ }
699
+ /**
700
+ * The metadata operation to be performed on the alert.
701
+ */
702
+ export interface Metadata {
703
+ /**
704
+ * The type of operation to be performed.
705
+ */
706
+ op: MetadataOperation;
707
+ /**
708
+ * The metadata value
709
+ */
710
+ value: RelationMetadata;
711
+ }
712
+ /**
713
+ * The change that has been made to the metadata.
714
+ */
715
+ export interface MetadataChange {
716
+ /**
717
+ * The type of change on the metadata.
718
+ */
719
+ changeType: MetadataChangeType;
720
+ /**
721
+ * Represents a metadata association to an alert.
722
+ */
723
+ value: RelationMetadata;
724
+ }
725
+ /**
726
+ * The type of change that occurred to the metadata.
727
+ */
728
+ export declare enum MetadataChangeType {
729
+ None = 0,
730
+ Created = 1,
731
+ Updated = 2,
732
+ Deleted = 3
733
+ }
734
+ /**
735
+ * The operation to be performed on the metadata.
736
+ */
737
+ export declare enum MetadataOperation {
738
+ /**
739
+ * Represents the defualt value if the operation is not specified or not supported.
740
+ */
741
+ None = 0,
742
+ /**
743
+ * Represents the addition of the metadata.
744
+ */
745
+ Add = 1,
746
+ /**
747
+ * Represents the removal of the metadata.
748
+ */
749
+ Remove = 2
750
+ }
751
+ /**
752
+ * Location in the source control system where the issue was found
753
+ */
754
+ export interface PhysicalLocation {
755
+ /**
756
+ * Additional properties for where the issue was found
757
+ */
758
+ additionalProperties: {
759
+ [key: string]: any;
760
+ };
761
+ /**
762
+ * Path of the file where the issue was found
763
+ */
764
+ filePath: string;
765
+ /**
766
+ * Indicates whether the path is a valid Git path that exists in the git repository associated with the alert.
767
+ */
768
+ isValidGitPath: boolean;
769
+ /**
770
+ * Details about the location where the issue was found including a snippet
771
+ */
772
+ region: Region;
773
+ /**
774
+ * Source control system-specific information about the location
775
+ */
776
+ versionControl: VersionControlDetails;
777
+ }
778
+ export interface Pipeline {
779
+ adoPipelineId: number;
780
+ name: string;
781
+ phase: string;
782
+ phaseId: string;
783
+ properties: {
784
+ [key: string]: any;
785
+ };
786
+ }
787
+ export interface Region {
788
+ /**
789
+ * The column where the code snippet ends
790
+ */
791
+ columnEnd: number;
792
+ /**
793
+ * The column where the code snippet starts
794
+ */
795
+ columnStart: number;
796
+ /**
797
+ * The line number where the code snippet ends
798
+ */
799
+ lineEnd: number;
800
+ /**
801
+ * The line number where the code snippet starts
802
+ */
803
+ lineStart: number;
804
+ }
805
+ /**
806
+ * The metadata to be associated with the alert.
807
+ */
808
+ export interface RelationMetadata {
809
+ /**
810
+ * Any additional attributes of the metadata.
811
+ */
812
+ attributes: {
813
+ [key: string]: any;
814
+ };
815
+ /**
816
+ * The properties of the metadata.
817
+ */
818
+ properties: {
819
+ [key: string]: any;
820
+ };
821
+ /**
822
+ * The type of the metadata.
823
+ */
824
+ rel: string;
825
+ /**
826
+ * The URL of the metadata.
827
+ */
828
+ url: string;
829
+ }
830
+ export interface Result {
831
+ /**
832
+ * Additional information about the alert. Valid when ResultType is Dependency
833
+ */
834
+ dependencyResult: DependencyResult;
835
+ /**
836
+ * Full fingerprint of the Result. This is used to detect duplicate instances of the same alert
837
+ */
838
+ fingerprint: string;
839
+ /**
840
+ * Unique ID of the fingerprint of the Result
841
+ */
842
+ fingerprintId: number;
843
+ /**
844
+ * Unique ID of the Result
845
+ */
846
+ resultId: number;
847
+ /**
848
+ * This is the index into the SARIF Results array. If we have to do any tool specific insertions, we'll use this key to index back into the SARIF Results array.
849
+ */
850
+ resultIndex: number;
851
+ /**
852
+ * Detailed description of the rule that triggered the alert
853
+ */
854
+ resultMessage: string;
855
+ /**
856
+ * The type of rule that triggered the alert
857
+ */
858
+ resultType: ResultType;
859
+ /**
860
+ * ID of the rule that the triggered the alert
861
+ */
862
+ ruleId: number;
863
+ /**
864
+ * Short description of the rule that triggered the alert
865
+ */
866
+ ruleShortDescription: string;
867
+ /**
868
+ * The severity of the alert
869
+ */
870
+ severity: Severity;
871
+ /**
872
+ * Additional information about the alert. Valid when ResultType is VersionControl
873
+ */
874
+ versionControlResult: VersionControlResult;
875
+ }
876
+ /**
877
+ * This enum defines the different result types.
878
+ */
879
+ export declare enum ResultType {
880
+ /**
881
+ * The result was found from an unspecified analysis type
882
+ */
883
+ Unknown = 0,
884
+ /**
885
+ * The result was found from dependency analysis
886
+ */
887
+ Dependency = 1,
888
+ /**
889
+ * The result was found from static code analysis
890
+ */
891
+ VersionControl = 2
892
+ }
893
+ /**
894
+ * The analysis rule that caused the alert.
895
+ */
896
+ export interface Rule {
897
+ /**
898
+ * Additional properties of this rule dependent on the rule type. For example, dependency rules may include the CVE ID if it is available.
899
+ */
900
+ additionalProperties: {
901
+ [key: string]: any;
902
+ };
903
+ /**
904
+ * Description of what this rule detects
905
+ */
906
+ description: string;
907
+ /**
908
+ * Plain-text rule identifier
909
+ */
910
+ friendlyName: string;
911
+ /**
912
+ * Additional information about this rule
913
+ */
914
+ helpMessage: string;
915
+ /**
916
+ * Tool-specific rule identifier
917
+ */
918
+ opaqueId: string;
919
+ /**
920
+ * Markdown-formatted list of resources to learn more about the Rule. In some cases, RuleInfo.AdditionalProperties.advisoryUrls is used instead.
921
+ */
922
+ resources: string;
923
+ /**
924
+ * Classification tags for this rule
925
+ */
926
+ tags: string[];
927
+ }
928
+ export declare enum SarifJobStatus {
929
+ /**
930
+ * The job type when it is new
931
+ */
932
+ New = 0,
933
+ /**
934
+ * The job type when it is queued
935
+ */
936
+ Queued = 1,
937
+ /**
938
+ * The job type when it is completed
939
+ */
940
+ Completed = 2,
941
+ /**
942
+ * The job type when it fails
943
+ */
944
+ Failed = 3,
945
+ /**
946
+ * The job type when it is queued on exception
947
+ */
948
+ Requeued = 4
949
+ }
950
+ export interface SarifUploadStatus {
951
+ errors: SarifValidationError[];
952
+ processingStatus: SarifJobStatus;
953
+ }
954
+ export interface SarifValidationError {
955
+ nodePointer: string;
956
+ ruleId: string;
957
+ validationError: string;
958
+ }
959
+ export interface SearchCriteria {
960
+ /**
961
+ * If provided, only return alerts with the ids specified. \<br /\>Otherwise, return any alert.
962
+ */
963
+ alertIds: number[];
964
+ /**
965
+ * If provided, only return alerts of this type. Otherwise, return alerts of all types.
966
+ */
967
+ alertType: AlertType;
968
+ /**
969
+ * If provided, only return alerts at these confidence levels. \<br /\>Both High and Other need to be specified to fetch alerts of all confidence levels. \<br /\>Otherwise, return alerts with high confidence level. \<br /\>Only applicable for secret alerts.
970
+ */
971
+ confidenceLevels: Confidence[];
972
+ /**
973
+ * 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. \<br /\>Not applicable for secret alerts.
974
+ */
975
+ dependencyName: string;
976
+ /**
977
+ * If provided, only return alerts last seen after this date. \<br /\>Otherwise return all alerts.
978
+ */
979
+ fromDate: Date;
980
+ /**
981
+ * If provided, filters alerts based on whether they have linked work items. \<br /\>Set to "true" to return only alerts with linked work items. \<br /\>Set to "false" to return only alerts without linked work items. \<br /\>If not provided, returns all alerts regardless of linked work items. \<br /\>Not applicable for secret and dependency scanning alerts.
982
+ */
983
+ hasLinkedWorkItems: boolean;
984
+ /**
985
+ * If provided with isTriaged, only return alerts that have been triaged. \<br /\>Otherwise, return alerts regardless of triage status.
986
+ */
987
+ isTriaged: boolean;
988
+ /**
989
+ * If provided, only return alerts whose titles match this pattern.
990
+ */
991
+ keywords: string;
992
+ /**
993
+ * 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. \<br /\>Not applicable for secret alerts.
994
+ */
995
+ licenseName: string;
996
+ /**
997
+ * If provided, only return alerts that were modified since this date. \<br /\>Otherwise return all alerts.
998
+ */
999
+ modifiedSince: Date;
1000
+ /**
1001
+ * If true or not set, only return alerts found on the default branch of the repository. \<br /\>If there have been no runs completed on the default branch, the last run is used instead regardless of the branch used for that run. If false, return alerts from all branches. \<br /\>This option is ignored if ref is provided. \<br /\>Not applicable for secret alerts.
1002
+ */
1003
+ onlyDefaultBranch: boolean;
1004
+ /**
1005
+ * If provided with pipelineName, only return alerts detected in this pipeline phase \<br /\>Otherwise, return alerts detected in all phases. \<br /\>Not applicable for secret alerts.
1006
+ */
1007
+ phaseId: string;
1008
+ /**
1009
+ * If provided with pipelineName, only return alerts detected in this pipeline phase \<br /\>Otherwise, return alerts detected in all phases. \<br /\>Not applicable for secret alerts.
1010
+ */
1011
+ phaseName: string;
1012
+ /**
1013
+ * If provided with pipelineId, only return alerts detected in this pipeline \<br /\>Otherwise, return alerts detected in all pipelines.
1014
+ */
1015
+ pipelineId: number;
1016
+ /**
1017
+ * If provided, only return alerts detected in this pipeline. \<br /\>Otherwise, return alerts detected in all pipelines. \<br /\>Not applicable for secret alerts.
1018
+ */
1019
+ pipelineName: string;
1020
+ /**
1021
+ * If provided, only include alerts for this ref. \<br /\>If not provided and OnlyDefaultBranch is true, only include alerts found on the default branch or last run branch if there is no analysis configuration for the default branch. \<br /\>Otherwise, include alerts from all branches. \<br /\>Not applicable for secret alerts.
1022
+ */
1023
+ ref: string;
1024
+ /**
1025
+ * If provided, only return alerts for this rule. \<br /\>Otherwise, return alerts of all rules.
1026
+ */
1027
+ ruleId: string;
1028
+ /**
1029
+ * If provided, only return alerts for this rule. \<br /\>Otherwise, return alerts for all rules.
1030
+ */
1031
+ ruleName: string;
1032
+ /**
1033
+ * If provided, only return alerts at these severities. \<br /\>Otherwise, return alerts at any severity.
1034
+ */
1035
+ severities: Severity[];
1036
+ /**
1037
+ * If provided, only return alerts in these states. \<br /\>Otherwise, return alerts in any state.
1038
+ */
1039
+ states: State[];
1040
+ /**
1041
+ * If provided, only return alerts last seen before this date. \<br /\>Otherwise return all alerts.
1042
+ */
1043
+ toDate: Date;
1044
+ /**
1045
+ * If provided with toolName, only return alerts detected by this tool. \<br /\>Otherwise, return alerts detected by all tools.
1046
+ */
1047
+ toolName: string;
1048
+ /**
1049
+ * If provided, only return alerts with the validity specified here. If the validity status is Unknown, fetch alerts of all validity results. \<br /\>Only applicable for secret alerts. \<br /\>Filtering by validity status may cause less alerts to be returned than requested with TOP parameter. \<br /\>Due to this behavior, the ContinuationToken(\<![CDATA[\<header name\>]]\>) in the response header should be relied on to decide if another batch needs to be fetched.
1050
+ */
1051
+ validity: AlertValidityStatus[];
1052
+ }
1053
+ export declare enum Severity {
1054
+ Low = 0,
1055
+ Medium = 1,
1056
+ High = 2,
1057
+ Critical = 3,
1058
+ Note = 4,
1059
+ Warning = 5,
1060
+ Error = 6,
1061
+ Undefined = 7
1062
+ }
1063
+ export declare enum State {
1064
+ /**
1065
+ * Alert is in an indeterminate state
1066
+ */
1067
+ Unknown = 0,
1068
+ /**
1069
+ * Alert has been detected in the code
1070
+ */
1071
+ Active = 1,
1072
+ /**
1073
+ * Alert was dismissed by a user
1074
+ */
1075
+ Dismissed = 2,
1076
+ /**
1077
+ * The issue is no longer detected in the code
1078
+ */
1079
+ Fixed = 4,
1080
+ /**
1081
+ * The tool has determined that the issue is no longer a risk
1082
+ */
1083
+ AutoDismissed = 8
1084
+ }
1085
+ /**
1086
+ * An Analysis tool that can generate security alerts
1087
+ */
1088
+ export interface Tool {
1089
+ /**
1090
+ * Name of the tool
1091
+ */
1092
+ name: string;
1093
+ /**
1094
+ * The rules that the tool defines
1095
+ */
1096
+ rules: Rule[];
1097
+ }
1098
+ export interface UxFilters {
1099
+ /**
1100
+ * Display alerts for specified branches. Show alerts for all branches if none are specified.
1101
+ */
1102
+ branches: Branch[];
1103
+ /**
1104
+ * Display alerts for specified confidence levels. Show alerts for all confidence levels. if none are specified.
1105
+ */
1106
+ confidenceLevels: Confidence[];
1107
+ /**
1108
+ * Display alerts for specified licenses. Show alerts for all licenses if none are specified.
1109
+ */
1110
+ licenses: License[];
1111
+ /**
1112
+ * Display alerts for specified packages. Show alerts for all packages if none are specified.
1113
+ */
1114
+ packages: Dependency[];
1115
+ /**
1116
+ * Display alerts for specified pipelines. Show alerts for all pipelines if none are specified.
1117
+ */
1118
+ pipelines: Pipeline[];
1119
+ progressPercentage: number;
1120
+ /**
1121
+ * Display alerts for specified rules. Show alerts for all rules if none are specified.
1122
+ */
1123
+ rules: Rule[];
1124
+ /**
1125
+ * Display alerts for specified secret types. Show alerts for all secret types if none are specified.
1126
+ */
1127
+ secretTypes: string[];
1128
+ /**
1129
+ * Display alerts for specified severities. Show alerts for all severities if none are specified.
1130
+ */
1131
+ severities: Severity[];
1132
+ /**
1133
+ * Display alerts for specified states. Show alerts for all states if none are specified.
1134
+ */
1135
+ states: State[];
1136
+ /**
1137
+ * Display alerts for specified tools. Show alerts for all tools if none are specified.
1138
+ */
1139
+ tools: Tool[];
1140
+ /**
1141
+ * Display alerts for specified validity. Show alerts for all validities if none are specified.
1142
+ */
1143
+ validity: AlertValidityStatus[];
1144
+ }
1145
+ export interface ValidationFingerprint {
1146
+ /**
1147
+ * The key value representation of the asset fingerprint.
1148
+ */
1149
+ assetFingerprint: {
1150
+ [key: string]: string;
1151
+ };
1152
+ /**
1153
+ * Represents the CrossCompanyCorrelatingId for the secret in the ValidationFingerprintJson.
1154
+ */
1155
+ c3Id: string;
1156
+ /**
1157
+ * The hash associated to the secret.
1158
+ */
1159
+ validationFingerprintHash: string;
1160
+ /**
1161
+ * 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.
1162
+ */
1163
+ validationFingerprintJson: string;
1164
+ /**
1165
+ * The date when the validity was last updated.
1166
+ */
1167
+ validityLastUpdatedDate: Date;
1168
+ /**
1169
+ * The result of the validation.
1170
+ */
1171
+ validityResult: ValidationResult;
1172
+ }
1173
+ /**
1174
+ * Data associated to a validation request for an alert. Along with the request status, this includes the validity data that is part of Get Alert(s) response.
1175
+ */
1176
+ export interface ValidationRequestInfo extends AlertValidityInfo {
1177
+ alertValidationRequestStatus: AlertValidationRequestStatus;
1178
+ }
1179
+ export declare enum ValidationResult {
1180
+ /**
1181
+ * Default value, no information about the secret can be inferred from this.
1182
+ */
1183
+ None = 0,
1184
+ /**
1185
+ * Represents a secret that can be used to connect to a resource.
1186
+ */
1187
+ Exploitable = 1,
1188
+ /**
1189
+ * Represents a secret that can't be used to connect to a resource.
1190
+ */
1191
+ NotExploitable = 2,
1192
+ /**
1193
+ * Represents a secret where no determination can be made about its exploitability.
1194
+ */
1195
+ Inconclusive = 3,
1196
+ /**
1197
+ * Represents a secret where we are unable to validate, e.g. dynamic validator missing.
1198
+ */
1199
+ ValidationNotSupported = 4,
1200
+ /**
1201
+ * Represents a secret where the validation process failed due to a transient error, e.g. network issue. This result indicates that the validation process should be retried.
1202
+ */
1203
+ TransientError = 5
1204
+ }
1205
+ /**
1206
+ * Information for locating files in a source control system
1207
+ */
1208
+ export interface VersionControlDetails {
1209
+ commitHash: string;
1210
+ itemUrl: string;
1211
+ }
1212
+ export interface VersionControlFilePath {
1213
+ /**
1214
+ * Path of the file in the version control system
1215
+ */
1216
+ filePath: string;
1217
+ /**
1218
+ * Hash of the file in the version control system
1219
+ */
1220
+ filePathHash: number[];
1221
+ /**
1222
+ * Unique ID for the file in the version control system
1223
+ */
1224
+ versionControlFilePathId: number;
1225
+ }
1226
+ export interface VersionControlResult {
1227
+ /**
1228
+ * The ID to associate this structure with the cooresponding Result
1229
+ */
1230
+ resultId: number;
1231
+ /**
1232
+ * Information about the snippet where the Result was found
1233
+ */
1234
+ versionControlSnippet: VersionControlSnippet;
1235
+ }
1236
+ export interface VersionControlSnippet {
1237
+ /**
1238
+ * column in the code file where the snippet ends
1239
+ */
1240
+ endColumn: number;
1241
+ /**
1242
+ * line in the code file where the snippet ends
1243
+ */
1244
+ endLine: number;
1245
+ /**
1246
+ * column in the code file where the snippet starts
1247
+ */
1248
+ startColumn: number;
1249
+ /**
1250
+ * line in the code file where the snippet starts
1251
+ */
1252
+ startLine: number;
1253
+ /**
1254
+ * path of the code file in the version control system
1255
+ */
1256
+ versionControlFilePath: VersionControlFilePath;
1257
+ /**
1258
+ * Unique Id number for the file path
1259
+ */
1260
+ versionControlFilePathId: number;
1261
+ /**
1262
+ * Unique Id number for this snippet
1263
+ */
1264
+ versionControlSnippetId: number;
1265
+ }