azure-devops-extension-api 5.276.0 → 5.279.1

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 (60) hide show
  1. package/AdvancedSecurity.Reporting/Reporting.d.ts +81 -2
  2. package/AdvancedSecurity.Reporting/Reporting.js +4 -0
  3. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  4. package/Alert/Alert.d.ts +161 -9
  5. package/Alert/Alert.js +73 -1
  6. package/Alert/Alert.min.js +1 -1
  7. package/Alert/AlertClient.d.ts +68 -12
  8. package/Alert/AlertClient.js +185 -23
  9. package/Alert/AlertClient.min.js +1 -1
  10. package/Build/Build.d.ts +29 -0
  11. package/Build/Build.js +19 -1
  12. package/Build/Build.min.js +1 -1
  13. package/Gallery/Gallery.d.ts +46 -0
  14. package/Gallery/Gallery.js +11 -1
  15. package/Gallery/Gallery.min.js +1 -1
  16. package/Gallery/GalleryClient.d.ts +14 -0
  17. package/Gallery/GalleryClient.js +48 -0
  18. package/Gallery/GalleryClient.min.js +1 -1
  19. package/Git/Git.d.ts +2 -22
  20. package/Management/Management.d.ts +25 -1
  21. package/Management/Management.js +4 -0
  22. package/Management/Management.min.js +1 -1
  23. package/ServiceHooks/ServiceHooks.d.ts +1 -1
  24. package/Test/Test.d.ts +76 -56
  25. package/TestResults/TestResultsClient.d.ts +51 -22
  26. package/TestResults/TestResultsClient.js +131 -57
  27. package/TestResults/TestResultsClient.min.js +1 -1
  28. package/Tfvc/Tfvc.d.ts +54 -0
  29. package/Tfvc/Tfvc.js +57 -1
  30. package/Tfvc/Tfvc.min.js +1 -1
  31. package/Wiki/Wiki.d.ts +17 -0
  32. package/Wiki/WikiClient.d.ts +8 -0
  33. package/Wiki/WikiClient.js +23 -0
  34. package/Wiki/WikiClient.min.js +1 -1
  35. package/WorkItemTracking/WorkItemTracking.d.ts +48 -0
  36. package/WorkItemTracking/WorkItemTracking.js +11 -1
  37. package/WorkItemTracking/WorkItemTracking.min.js +1 -1
  38. package/esm/AdvancedSecurity.Reporting/Reporting.js +4 -0
  39. package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
  40. package/esm/Alert/Alert.js +72 -0
  41. package/esm/Alert/Alert.min.js +1 -1
  42. package/esm/Alert/AlertClient.js +172 -22
  43. package/esm/Alert/AlertClient.min.js +1 -1
  44. package/esm/Build/Build.js +18 -0
  45. package/esm/Build/Build.min.js +1 -1
  46. package/esm/Gallery/Gallery.js +10 -0
  47. package/esm/Gallery/Gallery.min.js +1 -1
  48. package/esm/Gallery/GalleryClient.js +42 -0
  49. package/esm/Gallery/GalleryClient.min.js +1 -1
  50. package/esm/Management/Management.js +4 -0
  51. package/esm/Management/Management.min.js +1 -1
  52. package/esm/TestResults/TestResultsClient.js +121 -51
  53. package/esm/TestResults/TestResultsClient.min.js +1 -1
  54. package/esm/Tfvc/Tfvc.js +56 -0
  55. package/esm/Tfvc/Tfvc.min.js +1 -1
  56. package/esm/Wiki/WikiClient.js +21 -0
  57. package/esm/Wiki/WikiClient.min.js +1 -1
  58. package/esm/WorkItemTracking/WorkItemTracking.js +10 -0
  59. package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -1
  60. package/package.json +1 -1
@@ -286,6 +286,20 @@ export declare class GalleryRestClient extends RestClientBase {
286
286
  * @param azureRestApiRequestModel - All the parameters are sent in the request body
287
287
  */
288
288
  extensionValidator(azureRestApiRequestModel: Gallery.AzureRestApiRequestModel): Promise<void>;
289
+ /**
290
+ * @param publisherName -
291
+ * @param policyId -
292
+ */
293
+ deletePolicy(publisherName: string, policyId: number): Promise<void>;
294
+ /**
295
+ * @param policy -
296
+ * @param publisherName -
297
+ */
298
+ addPolicy(policy: Gallery.FederatedCredentialPolicy, publisherName: string): Promise<Gallery.FederatedCredentialPolicy>;
299
+ /**
300
+ * @param publisherName -
301
+ */
302
+ listPolicies(publisherName: string): Promise<Gallery.FederatedCredentialPolicy[]>;
289
303
  /**
290
304
  * Send Notification
291
305
  *
@@ -952,6 +952,54 @@ class GalleryRestClient extends RestClientBase_1.RestClientBase {
952
952
  });
953
953
  });
954
954
  }
955
+ /**
956
+ * @param publisherName -
957
+ * @param policyId -
958
+ */
959
+ deletePolicy(publisherName, policyId) {
960
+ return __awaiter(this, void 0, void 0, function* () {
961
+ return this.beginRequest({
962
+ apiVersion: "7.2-preview.1",
963
+ method: "DELETE",
964
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/federatedcredentials/{policyId}",
965
+ routeValues: {
966
+ publisherName: publisherName,
967
+ policyId: policyId
968
+ }
969
+ });
970
+ });
971
+ }
972
+ /**
973
+ * @param policy -
974
+ * @param publisherName -
975
+ */
976
+ addPolicy(policy, publisherName) {
977
+ return __awaiter(this, void 0, void 0, function* () {
978
+ return this.beginRequest({
979
+ apiVersion: "7.2-preview.1",
980
+ method: "POST",
981
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/federatedcredentials",
982
+ routeValues: {
983
+ publisherName: publisherName
984
+ },
985
+ body: policy
986
+ });
987
+ });
988
+ }
989
+ /**
990
+ * @param publisherName -
991
+ */
992
+ listPolicies(publisherName) {
993
+ return __awaiter(this, void 0, void 0, function* () {
994
+ return this.beginRequest({
995
+ apiVersion: "7.2-preview.1",
996
+ routeTemplate: "_apis/gallery/publishers/{publisherName}/federatedcredentials",
997
+ routeValues: {
998
+ publisherName: publisherName
999
+ }
1000
+ });
1001
+ });
1002
+ }
955
1003
  /**
956
1004
  * Send Notification
957
1005
  *
@@ -1 +1 @@
1
- "use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))(function(r,a){function n(e){try{u(s.next(e))}catch(e){a(e)}}function o(e){try{u(s.throw(e))}catch(e){a(e)}}function u(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(n,o)}u((s=s.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GalleryRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class GalleryRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}shareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}unshareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}shareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}unshareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}getAcquisitionOptions(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={installationTarget:t,testCommerce:i,isFreeOrTrialInstall:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/acquisitionoptions/{itemId}",routeValues:{itemId:e},queryParams:r})})}requestAcquisition(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/acquisitionrequests",body:e})})}getAssetByName(e,t,i,s,r,a,n){return __awaiter(this,void 0,void 0,function*(){const o={accountToken:r,acceptDefault:a};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":n},queryParams:o})})}getAsset(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",routeValues:{extensionId:e,version:t,assetType:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetAuthenticated(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}associateAzurePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={azurePublisherId:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e},queryParams:i})})}queryAssociatedAzurePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e}})})}getCategories(e){return __awaiter(this,void 0,void 0,function*(){const t={languages:e};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories",queryParams:t})})}getCategoryDetails(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={languages:t,product:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories/{categoryName}",routeValues:{categoryName:e},queryParams:s})})}getCategoryTree(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={lcid:i,source:s,productVersion:r,skus:a,subSkus:n,productArchitecture:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/{categoryId}",routeValues:{product:e,categoryId:t},queryParams:u})})}getRootCategories(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={lcid:t,source:i,productVersion:s,skus:r,subSkus:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/root",routeValues:{product:e},queryParams:n})})}getCertificate(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",routeValues:{publisherName:e,extensionName:t,version:i}})})}createSupportRequest(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/support",body:e})})}createDraftForEditExtension(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:e,extensionName:t}})})}performEditExtensionDraftOperation(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},body:e})})}updatePayloadInDraftForEditExtension(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":r},body:e,isRawData:!0})})}addAssetForEditExtensionDraft(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,extensionName:i,draftId:s,assetType:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}createDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileProduct":i,"X-Market-UploadFileName":s},body:e,isRawData:!0})})}performNewExtensionDraftOperation(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},body:e})})}updatePayloadInDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},body:e,isRawData:!0})})}addAssetForNewExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,draftId:i,assetType:s},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}getAssetFromEditExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionName:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i},queryParams:r})})}getAssetFromNewExtensionDraft(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i}})})}getExtensionEvents(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,afterDate:s,include:r,includeProperty:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}publishExtensionEvents(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/events",body:e})})}queryExtensions(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={accountToken:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/extensionquery",customHeaders:{"X-Market-AccountToken":i},queryParams:s,body:e})})}createExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={extensionType:t,reCaptchaToken:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}",customHeaders:{"Content-Type":"application/octet-stream"},queryParams:s,body:e,isRawData:!0})})}deleteExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={version:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}getExtensionById(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:t,flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:s})})}updateExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={reCaptchaToken:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}createExtensionWithPublisher(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionType:i,reCaptchaToken:s};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:r,body:e,isRawData:!0})})}deleteExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}getExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={version:i,flags:s,accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}updateExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})})}updateExtensionProperties(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}shareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}unshareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}extensionValidator(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensionValidator",body:e})})}sendNotifications(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/notifications",body:e})})}getPackage(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",routeValues:{publisherName:e,extensionName:t,version:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetWithToken(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={accountToken:a,acceptDefault:n};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s,assetToken:r},customHeaders:{"X-Market-AccountToken":o},queryParams:u})})}deletePublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}getPublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}updatePublisherAsset(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={assetType:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},queryParams:r,body:e,isRawData:!0})})}fetchDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}verifyDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}queryPublishers(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publisherquery",body:e})})}createPublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",body:e})})}deletePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e}})})}getPublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={flags:t};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e},queryParams:i})})}updatePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},body:e})})}updatePublisherMembers(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={limitToCallerIdentityDomain:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},queryParams:s,body:e})})}publishExtensionWithPublisherSignature(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"multipart/related"},queryParams:n,body:e,isRawData:!0})})}getPublisherWithoutToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publisherWithoutToken/{publisherName}",routeValues:{publisherName:e}})})}getQuestions(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={count:i,page:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}reportQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",routeValues:{pubName:t,extName:i,questionId:s},body:e})})}createQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i},body:e})})}deleteQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:e,extensionName:t,questionId:i}})})}updateQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}createResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}deleteResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:e,extensionName:t,questionId:i,responseId:s}})})}updateResponse(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s,responseId:r},body:e})})}getExtensionReports(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,count:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getReviews(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,filterOptions:s,beforeDate:r,afterDate:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}getReviewsSummary(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={beforeDate:i,afterDate:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",routeValues:{pubName:e,extName:t},queryParams:r})})}createReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i},body:e})})}deleteReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:e,extName:t,reviewId:i}})})}updateReview(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i,reviewId:s},body:e})})}createCategory(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/categories",body:e})})}getGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:e,key:t}})})}setGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:t},body:e})})}generateKey(e,t){return __awaiter(this,void 0,void 0,function*(){const i={expireCurrentSeconds:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e},queryParams:i})})}getSigningKey(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e}})})}updateExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",routeValues:{publisherName:t,extensionName:i},body:e})})}getExtensionDailyStats(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,aggregate:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getExtensionDailyStatsAnonymous(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i}})})}incrementExtensionDailyStat(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={statType:s,targetPlatform:r};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:a})})}getVerificationLog(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={targetPlatform:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:r})})}getVSCodeExtensionLatestVersion(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vscode/{publisherName}/{extensionName}/latest",routeValues:{publisherName:e,extensionName:t}})})}updateVSCodeWebExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",routeValues:{itemName:e,version:t,statType:i}})})}queryExtensionByVsixId(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={arch:t,versionRange:i,sku:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vs/extensions/vsixId/{vsixId}",routeValues:{vsixId:e},queryParams:r})})}}exports.GalleryRestClient=GalleryRestClient,GalleryRestClient.RESOURCE_AREA_ID="69d21c00-f135-441b-b5ce-3626378e0819";
1
+ "use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))(function(r,a){function n(e){try{u(s.next(e))}catch(e){a(e)}}function o(e){try{u(s.throw(e))}catch(e){a(e)}}function u(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(n,o)}u((s=s.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GalleryRestClient=void 0;const RestClientBase_1=require("../Common/RestClientBase");class GalleryRestClient extends RestClientBase_1.RestClientBase{constructor(e){super(e)}shareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}unshareExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}/accounts/{accountName}",routeValues:{extensionId:e,accountName:t}})})}shareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}unshareExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",routeValues:{publisherName:e,extensionName:t,accountName:i}})})}getAcquisitionOptions(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={installationTarget:t,testCommerce:i,isFreeOrTrialInstall:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/acquisitionoptions/{itemId}",routeValues:{itemId:e},queryParams:r})})}requestAcquisition(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/acquisitionrequests",body:e})})}getAssetByName(e,t,i,s,r,a,n){return __awaiter(this,void 0,void 0,function*(){const o={accountToken:r,acceptDefault:a};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":n},queryParams:o})})}getAsset(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",routeValues:{extensionId:e,version:t,assetType:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetAuthenticated(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}associateAzurePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={azurePublisherId:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e},queryParams:i})})}queryAssociatedAzurePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/azurepublisher",routeValues:{publisherName:e}})})}getCategories(e){return __awaiter(this,void 0,void 0,function*(){const t={languages:e};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories",queryParams:t})})}getCategoryDetails(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={languages:t,product:i};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/categories/{categoryName}",routeValues:{categoryName:e},queryParams:s})})}getCategoryTree(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={lcid:i,source:s,productVersion:r,skus:a,subSkus:n,productArchitecture:o};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/{categoryId}",routeValues:{product:e,categoryId:t},queryParams:u})})}getRootCategories(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={lcid:t,source:i,productVersion:s,skus:r,subSkus:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/{product}/categories/root",routeValues:{product:e},queryParams:n})})}getCertificate(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",routeValues:{publisherName:e,extensionName:t,version:i}})})}createSupportRequest(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/support",body:e})})}createDraftForEditExtension(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:e,extensionName:t}})})}performEditExtensionDraftOperation(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},body:e})})}updatePayloadInDraftForEditExtension(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",routeValues:{publisherName:t,extensionName:i,draftId:s},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":r},body:e,isRawData:!0})})}addAssetForEditExtensionDraft(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,extensionName:i,draftId:s,assetType:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}createDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileProduct":i,"X-Market-UploadFileName":s},body:e,isRawData:!0})})}performNewExtensionDraftOperation(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},body:e})})}updatePayloadInDraftForNewExtension(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}",routeValues:{publisherName:t,draftId:i},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},body:e,isRawData:!0})})}addAssetForNewExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:t,draftId:i,assetType:s},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})})}getAssetFromEditExtensionDraft(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionName:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i},queryParams:r})})}getAssetFromNewExtensionDraft(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",routeValues:{publisherName:e,draftId:t,assetType:i}})})}getExtensionEvents(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,afterDate:s,include:r,includeProperty:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}publishExtensionEvents(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/events",body:e})})}queryExtensions(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={accountToken:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/extensionquery",customHeaders:{"X-Market-AccountToken":i},queryParams:s,body:e})})}createExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={extensionType:t,reCaptchaToken:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/extensions/{extensionId}",customHeaders:{"Content-Type":"application/octet-stream"},queryParams:s,body:e,isRawData:!0})})}deleteExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={version:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}getExtensionById(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:t,flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:s})})}updateExtensionById(e,t){return __awaiter(this,void 0,void 0,function*(){const i={reCaptchaToken:t};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/extensions/{extensionId}",routeValues:{extensionId:e},queryParams:i})})}createExtensionWithPublisher(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={extensionType:i,reCaptchaToken:s};return this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:r,body:e,isRawData:!0})})}deleteExtension(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={version:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}getExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={version:i,flags:s,accountToken:r};return this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}updateExtension(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})})}updateExtensionProperties(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={flags:i};return this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",routeValues:{publisherName:e,extensionName:t},queryParams:s})})}shareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}unshareExtensionWithHost(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",routeValues:{publisherName:e,extensionName:t,hostType:i,hostName:s}})})}extensionValidator(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/extensionValidator",body:e})})}deletePolicy(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/federatedcredentials/{policyId}",routeValues:{publisherName:e,policyId:t}})})}addPolicy(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/federatedcredentials",routeValues:{publisherName:t},body:e})})}listPolicies(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/federatedcredentials",routeValues:{publisherName:e}})})}sendNotifications(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/notifications",body:e})})}getPackage(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={accountToken:s,acceptDefault:r};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",routeValues:{publisherName:e,extensionName:t,version:i},customHeaders:{"X-Market-AccountToken":a},queryParams:n})})}getAssetWithToken(e,t,i,s,r,a,n,o){return __awaiter(this,void 0,void 0,function*(){const u={accountToken:a,acceptDefault:n};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",routeValues:{publisherName:e,extensionName:t,version:i,assetType:s,assetToken:r},customHeaders:{"X-Market-AccountToken":o},queryParams:u})})}deletePublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}getPublisherAsset(e,t){return __awaiter(this,void 0,void 0,function*(){const i={assetType:t};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:e},queryParams:i})})}updatePublisherAsset(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={assetType:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publisherasset",routeValues:{publisherName:t},customHeaders:{"Content-Type":"application/octet-stream","X-Market-UploadFileName":s},queryParams:r,body:e,isRawData:!0})})}fetchDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}verifyDomainToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/verify/token",routeValues:{publisherName:e}})})}queryPublishers(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publisherquery",body:e})})}createPublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",body:e})})}deletePublisher(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e}})})}getPublisher(e,t){return __awaiter(this,void 0,void 0,function*(){const i={flags:t};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:e},queryParams:i})})}updatePublisher(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},body:e})})}updatePublisherMembers(e,t,i){return __awaiter(this,void 0,void 0,function*(){const s={limitToCallerIdentityDomain:i};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}",routeValues:{publisherName:t},queryParams:s,body:e})})}publishExtensionWithPublisherSignature(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={extensionType:s,reCaptchaToken:r,bypassScopeCheck:a};return this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",routeValues:{publisherName:t,extensionName:i},customHeaders:{"Content-Type":"multipart/related"},queryParams:n,body:e,isRawData:!0})})}getPublisherWithoutToken(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publisherWithoutToken/{publisherName}",routeValues:{publisherName:e}})})}getQuestions(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={count:i,page:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}reportQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",routeValues:{pubName:t,extName:i,questionId:s},body:e})})}createQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i},body:e})})}deleteQuestion(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:e,extensionName:t,questionId:i}})})}updateQuestion(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}createResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s},body:e})})}deleteResponse(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:e,extensionName:t,questionId:i,responseId:s}})})}updateResponse(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",routeValues:{publisherName:t,extensionName:i,questionId:s,responseId:r},body:e})})}getExtensionReports(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,count:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getReviews(e,t,i,s,r,a){return __awaiter(this,void 0,void 0,function*(){const n={count:i,filterOptions:s,beforeDate:r,afterDate:a};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",routeValues:{publisherName:e,extensionName:t},queryParams:n})})}getReviewsSummary(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={beforeDate:i,afterDate:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",routeValues:{pubName:e,extName:t},queryParams:r})})}createReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i},body:e})})}deleteReview(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:e,extName:t,reviewId:i}})})}updateReview(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",routeValues:{pubName:t,extName:i,reviewId:s},body:e})})}createCategory(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/categories",body:e})})}getGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:e,key:t}})})}setGalleryUserSettings(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/settings/{userScope}/{*key}",routeValues:{userScope:t},body:e})})}generateKey(e,t){return __awaiter(this,void 0,void 0,function*(){const i={expireCurrentSeconds:t};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e},queryParams:i})})}getSigningKey(e){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/signingkey/{keyType}",routeValues:{keyType:e}})})}updateExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",routeValues:{publisherName:t,extensionName:i},body:e})})}getExtensionDailyStats(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={days:i,aggregate:s,afterDate:r};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",routeValues:{publisherName:e,extensionName:t},queryParams:a})})}getExtensionDailyStatsAnonymous(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i}})})}incrementExtensionDailyStat(e,t,i,s,r){return __awaiter(this,void 0,void 0,function*(){const a={statType:s,targetPlatform:r};return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:a})})}getVerificationLog(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={targetPlatform:s};return this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",routeValues:{publisherName:e,extensionName:t,version:i},queryParams:r})})}getVSCodeExtensionLatestVersion(e,t){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vscode/{publisherName}/{extensionName}/latest",routeValues:{publisherName:e,extensionName:t}})})}updateVSCodeWebExtensionStatistics(e,t,i){return __awaiter(this,void 0,void 0,function*(){return this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",routeValues:{itemName:e,version:t,statType:i}})})}queryExtensionByVsixId(e,t,i,s){return __awaiter(this,void 0,void 0,function*(){const r={arch:t,versionRange:i,sku:s};return this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/public/gallery/vs/extensions/vsixId/{vsixId}",routeValues:{vsixId:e},queryParams:r})})}}exports.GalleryRestClient=GalleryRestClient,GalleryRestClient.RESOURCE_AREA_ID="69d21c00-f135-441b-b5ce-3626378e0819";
package/Git/Git.d.ts CHANGED
@@ -593,10 +593,6 @@ export interface CreateMigrationRequest {
593
593
  * The UTC date/time representing when the cutover is to occur.
594
594
  */
595
595
  scheduledCutoverDate: Date;
596
- /**
597
- * Optional. ID of a GitHub Enterprise Server-typed service connection whose PAT has ELM API access on the target GHES instance.
598
- */
599
- serviceEndpointId: string;
600
596
  /**
601
597
  * Optional. The set of pre-migration validation policies to skip.
602
598
  */
@@ -1802,18 +1798,6 @@ export interface GitPullRequest {
1802
1798
  * If set, auto-complete is enabled for this pull request and this is the identity that enabled it.
1803
1799
  */
1804
1800
  autoCompleteSetBy: WebApi.IdentityRef;
1805
- /**
1806
- * The commit of the base branch at the time it was recorded. Used for merge base override and movement detection.
1807
- */
1808
- baseBranchCommit: GitCommitRef;
1809
- /**
1810
- * The name of the base branch for stacked pull requests. The diff is computed as base..source.
1811
- */
1812
- baseBranchName: string;
1813
- /**
1814
- * The ID of the base pull request in a stack. When set, this PR is stacked on top of the specified PR.
1815
- */
1816
- basePullRequestId: number;
1817
1801
  /**
1818
1802
  * The user who closed the pull request.
1819
1803
  */
@@ -3096,7 +3080,7 @@ export interface IdentityRefWithVote extends WebApi.IdentityRef {
3096
3080
  */
3097
3081
  reviewerUrl: string;
3098
3082
  /**
3099
- * Vote on a pull request:\<br /\> 10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected
3083
+ * Vote on a pull request:\<br /\> 10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected 15 - bypassed / not applicable; satisfies required reviewer requirements without counting as a generic approval
3100
3084
  */
3101
3085
  vote: number;
3102
3086
  /**
@@ -3300,10 +3284,6 @@ export interface Migration {
3300
3284
  * The UTC date/time representing when the cutover is to occur.
3301
3285
  */
3302
3286
  scheduledCutoverDate: Date;
3303
- /**
3304
- * The ID of the GitHub Enterprise Server service connection that holds the PAT used to authenticate against the target GitHub Enterprise Server.
3305
- */
3306
- serviceEndpointId: string;
3307
3287
  /**
3308
3288
  * The pre-migration validation policies that are being skipped.
3309
3289
  */
@@ -3841,7 +3821,7 @@ export interface SubmitPipelinesRequest {
3841
3821
  */
3842
3822
  repositoryMappings: RepositoryMapping[];
3843
3823
  /**
3844
- * The ID of the GitHub service connection to use for the rewired pipelines. This must be a project-scoped service connection with access to the target GitHub org. This is separate from the migration-level ServiceEndpointId.
3824
+ * The ID of the GitHub service connection to use for the rewired pipelines. This must be a project-scoped service connection with access to the target GitHub org.
3845
3825
  */
3846
3826
  serviceConnectionId: string;
3847
3827
  }
@@ -20,6 +20,10 @@ export interface AdvSecEnablementFeatures {
20
20
  * Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
21
21
  */
22
22
  dependencyScanningInjectionEnabled: boolean;
23
+ /**
24
+ * Malware alerts enablement status set to False when disabled and True when enabled; Null is never explicitly set.
25
+ */
26
+ malwareAlertsEnabled: boolean;
23
27
  }
24
28
  export interface AdvSecEnablementSettings {
25
29
  /**
@@ -42,6 +46,10 @@ export interface AdvSecEnablementSettings {
42
46
  * Automatically enable Dependency Scanning Injection. If EnableOnCreate is not enabled this feature cannot be enabled.
43
47
  */
44
48
  enableDependencyScanningInjectionOnCreate: boolean;
49
+ /**
50
+ * Automatically enable malware alerts. If EnableOnCreate is not enabled this feature cannot be enabled.
51
+ */
52
+ enableMalwareAlertsOnCreate: boolean;
45
53
  /**
46
54
  * Automatically enable Advanced Security on newly created repositories.
47
55
  */
@@ -69,6 +77,10 @@ export interface AdvSecEnablementSettingsUpdate extends AdvSecEnablementStatusUp
69
77
  * Automatically enable Dependency Scanning Injection. If EnableOnCreate is not enabled this feature cannot be enabled.
70
78
  */
71
79
  enableDependencyScanningInjectionOnCreate: boolean;
80
+ /**
81
+ * Automatically enable malware alerts. If EnableOnCreate is not enabled this feature cannot be enabled.
82
+ */
83
+ enableMalwareAlertsOnCreate: boolean;
72
84
  /**
73
85
  * Automatically enable Advanced Security on newly created repositories.
74
86
  */
@@ -133,7 +145,11 @@ export declare enum AlertType {
133
145
  /**
134
146
  * The code contains a weakness determined by AI-powered analysis.
135
147
  */
136
- AICode = 5
148
+ AICode = 5,
149
+ /**
150
+ * The code uses a dependency flagged as malware by the GitHub Advisory Database.
151
+ */
152
+ Malware = 6
137
153
  }
138
154
  /**
139
155
  * Billable Committers Details for Advanced Security Services
@@ -290,6 +306,10 @@ export interface CodeSecurityFeatures {
290
306
  * Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect.
291
307
  */
292
308
  dependencyScanningInjectionEnabled: boolean;
309
+ /**
310
+ * Malware alerts enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, alerts are generated for malware vulnerabilities that affect your dependencies.
311
+ */
312
+ malwareAlertsEnabled: boolean;
293
313
  }
294
314
  export interface EnablementOnCreateSettings {
295
315
  /**
@@ -316,6 +336,10 @@ export interface EnablementOnCreateSettings {
316
336
  * Automatically enable Dependency Scanning Injection when Code Security is auto-enabled. If EnableCodeSecurityOnCreate is not true this flag is ignored.
317
337
  */
318
338
  enableDependencyScanningInjectionOnCreate: boolean;
339
+ /**
340
+ * Automatically enable Malware alerts when Code Security is auto-enabled. If EnableCodeSecurityOnCreate is not true this flag is ignored.
341
+ */
342
+ enableMalwareAlertsOnCreate: boolean;
319
343
  /**
320
344
  * Automatically enable Secret Protection on newly created repositories.
321
345
  */
@@ -32,6 +32,10 @@ var AlertType;
32
32
  * The code contains a weakness determined by AI-powered analysis.
33
33
  */
34
34
  AlertType[AlertType["AICode"] = 5] = "AICode";
35
+ /**
36
+ * The code uses a dependency flagged as malware by the GitHub Advisory Database.
37
+ */
38
+ AlertType[AlertType["Malware"] = 6] = "Malware";
35
39
  })(AlertType || (exports.AlertType = AlertType = {}));
36
40
  var Plan;
37
41
  (function (Plan) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plan=exports.AlertType=void 0;var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode"}(AlertType||(exports.AlertType=AlertType={}));var Plan;!function(e){e[e.None=0]="None",e[e.CodeSecurity=1]="CodeSecurity",e[e.SecretProtection=2]="SecretProtection",e[e.All=3]="All"}(Plan||(exports.Plan=Plan={}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plan=exports.AlertType=void 0;var AlertType;!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License",e[e.AICode=5]="AICode",e[e.Malware=6]="Malware"}(AlertType||(exports.AlertType=AlertType={}));var Plan;!function(e){e[e.None=0]="None",e[e.CodeSecurity=1]="CodeSecurity",e[e.SecretProtection=2]="SecretProtection",e[e.All=3]="All"}(Plan||(exports.Plan=Plan={}));
@@ -396,7 +396,7 @@ export interface NotificationsQuery {
396
396
  */
397
397
  associatedSubscriptions: Subscription[];
398
398
  /**
399
- * If true, we will return all notification history for the query provided; otherwise, the summary is returned.
399
+ * If true or omitted, returns notification history for the query; if false, returns only the summary.
400
400
  */
401
401
  includeDetails: boolean;
402
402
  /**
package/Test/Test.d.ts CHANGED
@@ -253,6 +253,19 @@ export interface BatchResponse {
253
253
  responses: Response[];
254
254
  status: string;
255
255
  }
256
+ /**
257
+ * A TestAttachment enriched with the dedup storage coordinates needed to download the content directly from BlobStore. Returned only by the internal BlobStore attachment-metadata query; the coordinates live on this derived type so the base TestAttachment contract is unchanged.
258
+ */
259
+ export interface BlobStoreTestAttachment extends TestAttachment {
260
+ /**
261
+ * VsoHash dedup id (BlobIdentifier.ValueString) of the stored content.
262
+ */
263
+ dedupId: string;
264
+ /**
265
+ * Dedup domain (ShardSet / ContainerSet) id the content was published to.
266
+ */
267
+ domainId: string;
268
+ }
256
269
  export interface BranchCoverageStatistics {
257
270
  /**
258
271
  * number of covered branches
@@ -1546,62 +1559,6 @@ export interface PhaseReference {
1546
1559
  */
1547
1560
  phaseName: string;
1548
1561
  }
1549
- /**
1550
- * Lightweight output for pipeline debugger AI analysis.
1551
- */
1552
- export interface PipelineDebuggerAnalysisOutput {
1553
- /**
1554
- * Failure category (e.g., "Infrastructure", "Code", "Configuration").
1555
- */
1556
- category: string;
1557
- /**
1558
- * Prevention strategies suggested by AI.
1559
- */
1560
- prevention: string;
1561
- /**
1562
- * Recommended fix provided by AI.
1563
- */
1564
- recommendedFix: string;
1565
- /**
1566
- * Root cause identified by AI.
1567
- */
1568
- rootCause: string;
1569
- }
1570
- export interface PipelineDebuggerJobState {
1571
- /**
1572
- * Error message. Populated when state is "Failed".
1573
- */
1574
- error: string;
1575
- /**
1576
- * The analysis result. Populated when state is "Completed".
1577
- */
1578
- result: PipelineDebuggerAnalysisOutput;
1579
- /**
1580
- * Job state: Queued, Completed, or Failed.
1581
- */
1582
- state: string;
1583
- }
1584
- /**
1585
- * Response DTO returned by the pipeline debugger POST endpoint.
1586
- */
1587
- export interface PipelineDebuggerResponse {
1588
- /**
1589
- * When the analysis has already completed for this build, contains the cached result so the caller does not need a separate GET request. Null when the job is newly queued or still in progress.
1590
- */
1591
- analysisResult: PipelineDebuggerAnalysisOutput;
1592
- /**
1593
- * GitHub OAuth authorization URL. Present only when NeedsAuth is true.
1594
- */
1595
- authUrl: string;
1596
- /**
1597
- * Human-readable status message (e.g. "queued successfully", "already running", or "Analysis already completed").
1598
- */
1599
- message: string;
1600
- /**
1601
- * True when the user needs to authorize the GitHub Copilot app before analysis can proceed. The client should open a popup to AuthUrl and retry after authorization completes.
1602
- */
1603
- needsAuth: boolean;
1604
- }
1605
1562
  /**
1606
1563
  * Pipeline reference
1607
1564
  */
@@ -3059,6 +3016,23 @@ export interface TestAttachmentRequestModel {
3059
3016
  */
3060
3017
  stream: string;
3061
3018
  }
3019
+ /**
3020
+ * Response of the pre-flight endpoint the agent calls before publishing an attachment directly to BlobStore dedup storage: it confirms the caller is authorized and returns where to publish.
3021
+ */
3022
+ export interface TestAttachmentUploadDetails {
3023
+ /**
3024
+ * Dedup domain (ShardSet) id to publish the content to. Populated only when enabled.
3025
+ */
3026
+ domainId: string;
3027
+ /**
3028
+ * Whether direct-to-BlobStore upload is enabled for this run; if false, use the classic (SAS) path.
3029
+ */
3030
+ isBlobStoreUploadEnabled: boolean;
3031
+ /**
3032
+ * The test run these details apply to.
3033
+ */
3034
+ testRunId: number;
3035
+ }
3062
3036
  export interface TestAuthoringDetails {
3063
3037
  configurationId: number;
3064
3038
  isAutomated: boolean;
@@ -3104,6 +3078,52 @@ export interface TestCaseFlakinessBranchInfo {
3104
3078
  */
3105
3079
  testCaseTitle: string;
3106
3080
  }
3081
+ /**
3082
+ * The latest execution result for a single TestCaseId, returned by the batch "latest result per test case" API (POST testresults/results/latestresults). One instance is returned per requested TestCaseId that has at least one result in a non-deleted run; test cases that were never executed are omitted from the response.
3083
+ */
3084
+ export interface TestCaseLatestResult {
3085
+ /**
3086
+ * Configuration that ran most recently for this test case.
3087
+ */
3088
+ configurationId: number;
3089
+ /**
3090
+ * When the result completed. Null for in-progress results.
3091
+ */
3092
+ dateCompleted: Date;
3093
+ /**
3094
+ * When the result started. May be null.
3095
+ */
3096
+ dateStarted: Date;
3097
+ /**
3098
+ * The factual last execution outcome (e.g. "Passed", "Failed", "NotExecuted", "Blocked"). This is the stored result outcome and is not subject to ResetToActive suppression.
3099
+ */
3100
+ outcome: string;
3101
+ /**
3102
+ * Id of the latest result within the run.
3103
+ */
3104
+ resultId: number;
3105
+ /**
3106
+ * Id of the run that contains the latest result.
3107
+ */
3108
+ runId: number;
3109
+ /**
3110
+ * The requested TestCaseId (work item id) this result belongs to.
3111
+ */
3112
+ testCaseId: number;
3113
+ /**
3114
+ * Test point via which the latest result ran.
3115
+ */
3116
+ testPointId: number;
3117
+ }
3118
+ /**
3119
+ * Request body for the batch "latest result per test case" API (POST testresults/results/latestresults). Carries the set of TestCaseIds (work item ids) for which the most recent execution outcome is required.
3120
+ */
3121
+ export interface TestCaseLatestResultsQuery {
3122
+ /**
3123
+ * The TestCaseIds (work item ids) to fetch the latest result for. Must contain at least one id and at most the server-configured batch ceiling; requests outside this range are rejected with HTTP 400.
3124
+ */
3125
+ testCaseIds: number[];
3126
+ }
3107
3127
  export interface TestCaseMetadata2 {
3108
3128
  container: string;
3109
3129
  name: string;
@@ -165,6 +165,31 @@ export declare class TestResultsRestClient extends RestClientBase {
165
165
  * @param testSubResultId -
166
166
  */
167
167
  createTestSubResultAttachmentMetadata(attachmentMetadataRequestModel: Test.TestAttachmentMetadataRequestModel, project: string, runId: number, testCaseResultId: number, testSubResultId: number): Promise<Test.TestAttachmentReference>;
168
+ /**
169
+ * Returns metadata for the result-level BlobStore-backed test attachments whose file name starts with fileNamePrefix, or the single attachment identified by attachmentId when it is supplied.
170
+ *
171
+ * @param project - Project ID or project name
172
+ * @param runId -
173
+ * @param testCaseResultId -
174
+ * @param attachmentType -
175
+ * @param fileNamePrefix -
176
+ * @param attachmentId -
177
+ * @param fetchMetaData -
178
+ */
179
+ queryTestResultAttachmentsMetadata(project: string, runId: number, testCaseResultId: number, attachmentType?: string, fileNamePrefix?: string, attachmentId?: number, fetchMetaData?: boolean): Promise<Test.BlobStoreTestAttachment[]>;
180
+ /**
181
+ * Returns metadata for the sub-result-level BlobStore-backed test attachments whose file name starts with fileNamePrefix, or the single attachment identified by attachmentId when it is supplied.
182
+ *
183
+ * @param project - Project ID or project name
184
+ * @param runId -
185
+ * @param testCaseResultId -
186
+ * @param testSubResultId -
187
+ * @param attachmentType -
188
+ * @param fileNamePrefix -
189
+ * @param attachmentId -
190
+ * @param fetchMetaData -
191
+ */
192
+ queryTestSubResultAttachmentsMetadata(project: string, runId: number, testCaseResultId: number, testSubResultId: number, attachmentType?: string, fileNamePrefix?: string, attachmentId?: number, fetchMetaData?: boolean): Promise<Test.BlobStoreTestAttachment[]>;
168
193
  /**
169
194
  * Registers metadata for a run-level test attachment whose content has already been uploaded to dedup storage by the caller. The request carries only the attachment metadata (dedup id, size, file name, type etc) and no file bytes.
170
195
  *
@@ -173,6 +198,24 @@ export declare class TestResultsRestClient extends RestClientBase {
173
198
  * @param runId -
174
199
  */
175
200
  createTestRunAttachmentMetadata(attachmentMetadataRequestModel: Test.TestAttachmentMetadataRequestModel, project: string, runId: number): Promise<Test.TestAttachmentReference>;
201
+ /**
202
+ * Returns metadata for the run-level BlobStore-backed test attachments whose file name starts with fileNamePrefix, or the single attachment identified by attachmentId when it is supplied. The agent uses this to enumerate BlobStore (dedup) test logs, which are not present in the classic LogStore SAS container and so cannot be listed by the agent directly.
203
+ *
204
+ * @param project - Project ID or project name
205
+ * @param runId -
206
+ * @param attachmentType -
207
+ * @param fileNamePrefix -
208
+ * @param attachmentId -
209
+ * @param fetchMetaData -
210
+ */
211
+ queryTestRunAttachmentsMetadata(project: string, runId: number, attachmentType?: string, fileNamePrefix?: string, attachmentId?: number, fetchMetaData?: boolean): Promise<Test.BlobStoreTestAttachment[]>;
212
+ /**
213
+ * Pre-flight for a direct-to-BlobStore run attachment upload: enforces publish permission and returns the dedup domain to publish to. The agent calls this before uploading any bytes.
214
+ *
215
+ * @param project - Project ID or project name
216
+ * @param runId -
217
+ */
218
+ getTestRunAttachmentUploadDetails(project: string, runId: number): Promise<Test.TestAttachmentUploadDetails>;
176
219
  /**
177
220
  * @param project - Project ID or project name
178
221
  * @param runId -
@@ -284,6 +327,13 @@ export declare class TestResultsRestClient extends RestClientBase {
284
327
  * @param project - Project ID or project name
285
328
  */
286
329
  queryTestResultHistory(filter: Test.ResultsFilter, project: string): Promise<Test.TestResultHistory>;
330
+ /**
331
+ * Get the latest result for each requested TestCaseId. Test cases that were never executed (no result in a non-deleted run) are omitted from the response - the caller treats their absence as "never run".
332
+ *
333
+ * @param query - TestCaseLatestResultsQuery carrying the TestCaseIds to look up.
334
+ * @param project - Project ID or project name
335
+ */
336
+ getLatestTestResultsByTestCaseIds(query: Test.TestCaseLatestResultsQuery, project: string): Promise<Test.TestCaseLatestResult[]>;
287
337
  /**
288
338
  * Get test run message logs
289
339
  *
@@ -303,27 +353,6 @@ export declare class TestResultsRestClient extends RestClientBase {
303
353
  * @param groupByNode - Group summary for each node of the pipleine heirarchy
304
354
  */
305
355
  getTestPipelineMetrics(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, metricNames?: Test.Metrics[], groupByNode?: boolean): Promise<Test.PipelineTestMetrics>;
306
- /**
307
- * Callback endpoint invoked by ADOTestAgent when pipeline debug analysis completes. Writes the result to blob storage and fires a SignalR notification to the UI.
308
- *
309
- * @param request -
310
- * @param project - Project ID or project name
311
- */
312
- completeAnalysisJob(request: Test.TestAgentCallbackRequest, project: string): Promise<boolean>;
313
- /**
314
- * Retrieves the AI analysis result for a given build. Downloads the analysis JSON from the TCM Log Store (Azure Blob Storage) where it was uploaded by PipelineDebuggerJob upon completion.
315
- *
316
- * @param project - Project ID or project name
317
- * @param buildId - Build ID that was analyzed
318
- */
319
- getAnalysisResult(project: string, buildId: number): Promise<Test.PipelineDebuggerResponse>;
320
- /**
321
- * Queues a pipeline analysis job to analyze failed pipeline jobs using AI.
322
- *
323
- * @param project - Project ID or project name
324
- * @param buildId - Build ID to analyze
325
- */
326
- queueAnalysisJob(project: string, buildId: number): Promise<Test.PipelineDebuggerResponse>;
327
356
  /**
328
357
  * Get a summary of test results for a build. To fetch the full TestCaseResult, call Results - Get.
329
358
  *
@@ -675,7 +704,7 @@ export declare class TestResultsRestClient extends RestClientBase {
675
704
  */
676
705
  callbackTestAgent(request: Test.TestAgentCallbackRequest, project: string): Promise<boolean>;
677
706
  /**
678
- * Browser-clickable entry point for the "Enhance diff coverage" link rendered in PR coverage comments. Dispatches a coverage_test_generation task to ADOTestAgent for the given pull request and redirects the user back to the pull request page.
707
+ * Browser-clickable entry point for the "Enhance diff coverage" link rendered in PR coverage comments. Dispatches a coverage_test_generation task to ADOAgenticService for the given pull request and redirects the user back to the pull request page.
679
708
  *
680
709
  * @param project - Project ID or project name
681
710
  * @param repository -