@resolution/jira-api-client 0.4.4 → 0.4.6

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 (336) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +60 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +118 -95
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1073 -869
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/platform/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/platform/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/platform/models/common.d.ts +6 -0
  10. package/lib/openapi/platform/models/common.js +12 -1
  11. package/lib/openapi/platform/models/common.js.map +1 -1
  12. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  13. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  14. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  15. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  16. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  17. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  18. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  19. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  20. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  22. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  23. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  25. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  26. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  27. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  28. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  29. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  30. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  31. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  32. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  33. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  34. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  35. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  36. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  37. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  38. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  39. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  40. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  41. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  43. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  44. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  45. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  46. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  47. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  48. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  49. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  50. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  51. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  52. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  53. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  55. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  56. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  57. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  58. package/lib/openapi/platform/services/GroupsService.js +385 -382
  59. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  61. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  62. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  63. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  64. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  65. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  66. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  67. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  68. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  70. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  71. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  73. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  74. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  76. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  77. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  83. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  85. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  86. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  88. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  89. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  91. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  92. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  94. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  95. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  97. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  98. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  100. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  101. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  103. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  104. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  106. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  107. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  109. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  110. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  112. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  113. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  115. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  116. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  118. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  119. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  121. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  122. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  124. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  125. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  127. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  128. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  130. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  131. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  133. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  134. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  136. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  137. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  139. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  140. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  142. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  143. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  145. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  146. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  148. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  149. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  150. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  151. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  152. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  154. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  155. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  157. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  158. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  160. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  161. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  162. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  163. package/lib/openapi/platform/services/JqlService.js +635 -632
  164. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  165. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LabelsService.js +41 -38
  167. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  168. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  169. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  170. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  171. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  172. package/lib/openapi/platform/services/MyselfService.js +321 -318
  173. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  175. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  176. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  177. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  178. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  179. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  180. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  181. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  182. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  184. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  185. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  187. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  188. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  190. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  191. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  193. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  194. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  197. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  199. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  200. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  202. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  203. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  205. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  206. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  208. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  209. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  211. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  212. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  214. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  215. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  217. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  218. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  220. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  221. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  223. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  224. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  226. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  227. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  229. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  230. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  232. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  233. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  234. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  235. package/lib/openapi/platform/services/ScreensService.js +281 -278
  236. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  238. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  239. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  240. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  241. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  242. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  243. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  244. package/lib/openapi/platform/services/StatusService.js +271 -268
  245. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  246. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  247. package/lib/openapi/platform/services/TasksService.js +93 -90
  248. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  249. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  250. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  251. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  252. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  253. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  254. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  256. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  257. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  258. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  259. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  260. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  261. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  262. package/lib/openapi/platform/services/UsersService.js +637 -634
  263. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  264. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  265. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  266. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  268. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  269. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  271. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  272. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  274. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  275. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  278. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  280. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  281. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  283. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  284. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  286. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  287. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  288. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  289. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  290. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  291. package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +13 -14
  292. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +454 -429
  293. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  294. package/lib/openapi/software/core/CommonHttpService.d.ts +2 -0
  295. package/lib/openapi/software/core/CommonHttpService.js +9 -0
  296. package/lib/openapi/software/core/CommonHttpService.js.map +1 -1
  297. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  298. package/lib/openapi/software/services/BacklogService.js +81 -78
  299. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  300. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  301. package/lib/openapi/software/services/BoardService.js +2048 -2045
  302. package/lib/openapi/software/services/BoardService.js.map +1 -1
  303. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  304. package/lib/openapi/software/services/BuildsService.js +164 -161
  305. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  306. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  307. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  308. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  309. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  310. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  311. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  312. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  313. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  314. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  315. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  316. package/lib/openapi/software/services/EpicService.js +597 -594
  317. package/lib/openapi/software/services/EpicService.js.map +1 -1
  318. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  319. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  320. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  321. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  322. package/lib/openapi/software/services/IssueService.js +359 -356
  323. package/lib/openapi/software/services/IssueService.js.map +1 -1
  324. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  325. package/lib/openapi/software/services/OperationsService.js +301 -298
  326. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  327. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  328. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  329. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  330. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  331. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  332. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  333. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  334. package/lib/openapi/software/services/SprintService.js +594 -591
  335. package/lib/openapi/software/services/SprintService.js.map +1 -1
  336. package/package.json +4 -3
@@ -18,551 +18,554 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
18
18
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes
19
19
  */
20
20
  class PermissionSchemesService extends CommonHttpService_1.CommonHttpService {
21
- /**
22
- * Creates a permission grant in a permission scheme.
23
- *
24
- * **[Permissions](#permissions) required:** *Administer Jira* [global
25
- * permission](https://confluence.atlassian.com/x/x4dKLg).
26
- *
27
- * @returns Returned if the scheme permission is created.
28
- *
29
- * example: {
30
- * "holder": {
31
- * "expand": "group",
32
- * "parameter": "jira-core-users",
33
- * "type": "group",
34
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
35
- * },
36
- * "id": 10000,
37
- * "permission": "ADMINISTER_PROJECTS",
38
- * "self":
39
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
40
- * }
41
- * @path {POST} /rest/api/3/permissionscheme/{schemeId}/permission
42
- * @scopes-current manage:jira-configuration
43
- * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
44
- * read:permission:jira, read:project-role:jira, read:user:jira,
45
- * write:permission:jira
46
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-post
47
- */
48
- createPermissionGrant({ schemeId, expand, permissionGrant, }) {
49
- return this.getClientInstance()
50
- .request({
51
- path: "/rest/api/3/permissionscheme/{schemeId}/permission",
52
- method: "POST",
53
- pathParams: {
54
- schemeId,
55
- },
56
- query: {
57
- expand,
58
- },
59
- headers: {
60
- "Content-Type": "application/json",
61
- },
62
- body: permissionGrant,
63
- })
64
- .then(this.getClientInstance().responseHandler({
65
- 201: {
66
- "application/json": "json",
67
- },
68
- }))
69
- .then(commonHttpClient.castResponse())
70
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.createPermissionGrant.response"))
71
- .then(commonHttpClient.getBody);
72
- }
73
- /**
74
- * Creates a new permission scheme. You can create a permission scheme with or
75
- * without defining a set of permission grants.
76
- *
77
- * **[Permissions](#permissions) required:** *Administer Jira* [global
78
- * permission](https://confluence.atlassian.com/x/x4dKLg).
79
- *
80
- * @returns Returned if the permission scheme is created.
81
- *
82
- * example: {
83
- * "description": "description",
84
- * "id": 10000,
85
- * "name": "Example permission scheme",
86
- * "permissions": [
87
- * {
88
- * "holder": {
89
- * "expand": "group",
90
- * "parameter": "jira-core-users",
91
- * "type": "group",
92
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
93
- * },
94
- * "id": 10000,
95
- * "permission": "ADMINISTER_PROJECTS",
96
- * "self":
97
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
98
- * }
99
- * ],
100
- * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
101
- * }
102
- * @path {POST} /rest/api/3/permissionscheme
103
- * @scopes-current manage:jira-configuration
104
- * @scopes-beta write:permission-scheme:jira, read:application-role:jira, read:field:jira,
105
- * read:group:jira, read:permission-scheme:jira, read:permission:jira,
106
- * read:project-role:jira, read:user:jira, read:avatar:jira,
107
- * read:project-category:jira, read:project:jira
108
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-post
109
- */
110
- createPermissionScheme({ expand, permissionScheme, }) {
111
- return this.getClientInstance()
112
- .request({
113
- path: "/rest/api/3/permissionscheme",
114
- method: "POST",
115
- query: {
116
- expand,
117
- },
118
- headers: {
119
- "Content-Type": "application/json",
120
- },
121
- body: permissionScheme,
122
- })
123
- .then(this.getClientInstance().responseHandler({
124
- 201: {
125
- "application/json": "json",
126
- },
127
- }))
128
- .then(commonHttpClient.castResponse())
129
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.createPermissionScheme.response"))
130
- .then(commonHttpClient.getBody);
131
- }
132
- /**
133
- * Deletes a permission scheme.
134
- *
135
- * **[Permissions](#permissions) required:** *Administer Jira* [global
136
- * permission](https://confluence.atlassian.com/x/x4dKLg).
137
- *
138
- * @path {DELETE} /rest/api/3/permissionscheme/{schemeId}
139
- * @scopes-current manage:jira-configuration
140
- * @scopes-beta delete:permission-scheme:jira
141
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-delete
142
- */
143
- deletePermissionScheme({ schemeId, }) {
144
- return this.getClientInstance()
145
- .request({
146
- path: "/rest/api/3/permissionscheme/{schemeId}",
147
- method: "DELETE",
148
- pathParams: {
149
- schemeId,
150
- },
151
- })
152
- .then(commonHttpClient.discardResult);
153
- }
154
- /**
155
- * Deletes a permission grant from a permission scheme. See [About permission
156
- * schemes and
157
- * grants](../api-group-permission-schemes/#about-permission-schemes-and-grants)
158
- * for more details.
159
- *
160
- * **[Permissions](#permissions) required:** *Administer Jira* [global
161
- * permission](https://confluence.atlassian.com/x/x4dKLg).
162
- *
163
- * @path {DELETE} /rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}
164
- * @scopes-current manage:jira-configuration
165
- * @scopes-beta delete:permission:jira
166
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-permissionid-delete
167
- */
168
- deletePermissionSchemeEntity({ schemeId, permissionId, }) {
169
- return this.getClientInstance()
170
- .request({
171
- path: "/rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}",
172
- method: "DELETE",
173
- pathParams: {
174
- schemeId,
175
- permissionId,
176
- },
177
- })
178
- .then(commonHttpClient.discardResult);
179
- }
180
- /**
181
- * Returns all permission schemes.
182
- *
183
- * ### About permission schemes and grants ###
184
- *
185
- * A permission scheme is a collection of permission grants. A permission grant
186
- * consists of a `holder` and a `permission`.
187
- *
188
- * #### Holder object ####
189
- *
190
- * The `holder` object contains information about the user or group being granted
191
- * the permission. For example, the *Administer projects* permission is granted to
192
- * a group named *Teams in space administrators*. In this case, the type is
193
- * `"type": "group"`, and the parameter is the group name, `"parameter": "Teams in
194
- * space administrators"` and the value is group ID, `"value":
195
- * "ca85fac0-d974-40ca-a615-7af99c48d24f"`.
196
- *
197
- * The `holder` object is defined by the following properties:
198
- *
199
- * * `type` Identifies the user or group (see the list of types below).
200
- * * `parameter` As a group's name can change, use of `value` is recommended.
201
- * The value of this property depends on the `type`. For example, if the `type` is
202
- * a group, then you need to specify the group name.
203
- * * `value` The value of this property depends on the `type`. If the `type` is
204
- * a group, then you need to specify the group ID. For other `type` it has the
205
- * same value as `parameter`
206
- *
207
- * The following `types` are available. The expected values for `parameter` and
208
- * `value` are given in parentheses (some types may not have a `parameter` or
209
- * `value`):
210
- *
211
- * * `anyone` Grant for anonymous users.
212
- * * `applicationRole` Grant for users with access to the specified application
213
- * (application name, application name). See [Update product access
214
- * settings](https://confluence.atlassian.com/x/3YxjL) for more information.
215
- * * `assignee` Grant for the user currently assigned to an issue.
216
- * * `group` Grant for the specified group (`parameter` : group name, `value` :
217
- * group ID).
218
- * * `groupCustomField` Grant for a user in the group selected in the specified
219
- * custom field (`parameter` : custom field ID, `value` : custom field ID).
220
- * * `projectLead` Grant for a project lead.
221
- * * `projectRole` Grant for the specified project role (`parameter` :project
222
- * role ID, `value` : project role ID).
223
- * * `reporter` Grant for the user who reported the issue.
224
- * * `sd.customer.portal.only` Jira Service Desk only. Grants customers
225
- * permission to access the customer portal but not Jira. See [Customizing Jira
226
- * Service Desk permissions](https://confluence.atlassian.com/x/24dKLg) for more
227
- * information.
228
- * * `user` Grant for the specified user (`parameter` : user ID - historically
229
- * this was the userkey but that is deprecated and the account ID should be used,
230
- * `value` : user ID).
231
- * * `userCustomField` Grant for a user selected in the specified custom field
232
- * (`parameter` : custom field ID, `value` : custom field ID).
233
- *
234
- * #### Built-in permissions ####
235
- *
236
- * The [built-in Jira permissions](https://confluence.atlassian.com/x/yodKLg) are
237
- * listed below. Apps can also define custom permissions. See the [project
238
- * permission](https://developer.atlassian.com/cloud/jira/platform/modules/project-permission/)
239
- * and [global
240
- * permission](https://developer.atlassian.com/cloud/jira/platform/modules/global-permission/)
241
- * module documentation for more information.
242
- *
243
- * **Project permissions**
244
- *
245
- * * `ADMINISTER_PROJECTS`
246
- * * `BROWSE_PROJECTS`
247
- * * `MANAGE_SPRINTS_PERMISSION` (Jira Software only)
248
- * * `SERVICEDESK_AGENT` (Jira Service Desk only)
249
- * * `VIEW_DEV_TOOLS` (Jira Software only)
250
- * * `VIEW_READONLY_WORKFLOW`
251
- *
252
- * **Issue permissions**
253
- *
254
- * * `ASSIGNABLE_USER`
255
- * * `ASSIGN_ISSUES`
256
- * * `CLOSE_ISSUES`
257
- * * `CREATE_ISSUES`
258
- * * `DELETE_ISSUES`
259
- * * `EDIT_ISSUES`
260
- * * `LINK_ISSUES`
261
- * * `MODIFY_REPORTER`
262
- * * `MOVE_ISSUES`
263
- * * `RESOLVE_ISSUES`
264
- * * `SCHEDULE_ISSUES`
265
- * * `SET_ISSUE_SECURITY`
266
- * * `TRANSITION_ISSUES`
267
- *
268
- * **Voters and watchers permissions**
269
- *
270
- * * `MANAGE_WATCHERS`
271
- * * `VIEW_VOTERS_AND_WATCHERS`
272
- *
273
- * **Comments permissions**
274
- *
275
- * * `ADD_COMMENTS`
276
- * * `DELETE_ALL_COMMENTS`
277
- * * `DELETE_OWN_COMMENTS`
278
- * * `EDIT_ALL_COMMENTS`
279
- * * `EDIT_OWN_COMMENTS`
280
- *
281
- * **Attachments permissions**
282
- *
283
- * * `CREATE_ATTACHMENTS`
284
- * * `DELETE_ALL_ATTACHMENTS`
285
- * * `DELETE_OWN_ATTACHMENTS`
286
- *
287
- * **Time tracking permissions**
288
- *
289
- * * `DELETE_ALL_WORKLOGS`
290
- * * `DELETE_OWN_WORKLOGS`
291
- * * `EDIT_ALL_WORKLOGS`
292
- * * `EDIT_OWN_WORKLOGS`
293
- * * `WORK_ON_ISSUES`
294
- *
295
- * **[Permissions](#permissions) required:** Permission to access Jira.
296
- *
297
- * @returns Returned if the request is successful.
298
- *
299
- * example: {
300
- * "permissionSchemes": [
301
- * {
302
- * "description": "description",
303
- * "id": 10000,
304
- * "name": "Example permission scheme",
305
- * "self":
306
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
307
- * }
308
- * ]
309
- * }
310
- * @path {GET} /rest/api/3/permissionscheme
311
- * @scopes-current read:jira-work
312
- * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
313
- * read:permission-scheme:jira, read:permission:jira, read:project-role:jira,
314
- * read:user:jira, read:avatar:jira, read:project-category:jira, read:project:jira
315
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-get
316
- */
317
- getAllPermissionSchemes({ expand, } = {}) {
318
- return this.getClientInstance()
319
- .request({
320
- path: "/rest/api/3/permissionscheme",
321
- method: "GET",
322
- query: {
323
- expand,
324
- },
325
- })
326
- .then(this.getClientInstance().responseHandler({
327
- 200: {
328
- "application/json": "json",
329
- },
330
- }))
331
- .then(commonHttpClient.castResponse())
332
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getAllPermissionSchemes.response"))
333
- .then(commonHttpClient.getBody);
334
- }
335
- /**
336
- * Returns a permission scheme.
337
- *
338
- * **[Permissions](#permissions) required:** Permission to access Jira.
339
- *
340
- * @returns Returned if the request is successful.
341
- *
342
- * example: {
343
- * "description": "description",
344
- * "id": 10000,
345
- * "name": "Example permission scheme",
346
- * "permissions": [
347
- * {
348
- * "holder": {
349
- * "expand": "group",
350
- * "parameter": "jira-core-users",
351
- * "type": "group",
352
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
353
- * },
354
- * "id": 10000,
355
- * "permission": "ADMINISTER_PROJECTS",
356
- * "self":
357
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
358
- * }
359
- * ],
360
- * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
361
- * }
362
- * @path {GET} /rest/api/3/permissionscheme/{schemeId}
363
- * @scopes-current read:jira-work
364
- * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
365
- * read:permission-scheme:jira, read:permission:jira, read:project-role:jira,
366
- * read:user:jira, read:avatar:jira, read:project-category:jira, read:project:jira
367
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-get
368
- */
369
- getPermissionScheme({ schemeId, expand, }) {
370
- return this.getClientInstance()
371
- .request({
372
- path: "/rest/api/3/permissionscheme/{schemeId}",
373
- method: "GET",
374
- pathParams: {
375
- schemeId,
376
- },
377
- query: {
378
- expand,
379
- },
380
- })
381
- .then(this.getClientInstance().responseHandler({
382
- 200: {
383
- "application/json": "json",
384
- },
385
- }))
386
- .then(commonHttpClient.castResponse())
387
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionScheme.response"))
388
- .then(commonHttpClient.getBody);
389
- }
390
- /**
391
- * Returns a permission grant.
392
- *
393
- * **[Permissions](#permissions) required:** Permission to access Jira.
394
- *
395
- * @returns Returned if the request is successful.
396
- *
397
- * example: {
398
- * "holder": {
399
- * "expand": "group",
400
- * "parameter": "jira-core-users",
401
- * "type": "group",
402
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
403
- * },
404
- * "id": 10000,
405
- * "permission": "ADMINISTER_PROJECTS",
406
- * "self":
407
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
408
- * }
409
- * @path {GET} /rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}
410
- * @scopes-current read:jira-work
411
- * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
412
- * read:permission:jira, read:project-role:jira, read:user:jira
413
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-permissionid-get
414
- */
415
- getPermissionSchemeGrant({ schemeId, permissionId, expand, }) {
416
- return this.getClientInstance()
417
- .request({
418
- path: "/rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}",
419
- method: "GET",
420
- pathParams: {
421
- schemeId,
422
- permissionId,
423
- },
424
- query: {
425
- expand,
426
- },
427
- })
428
- .then(this.getClientInstance().responseHandler({
429
- 200: {
430
- "application/json": "json",
431
- },
432
- }))
433
- .then(commonHttpClient.castResponse())
434
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionSchemeGrant.response"))
435
- .then(commonHttpClient.getBody);
436
- }
437
- /**
438
- * Returns all permission grants for a permission scheme.
439
- *
440
- * **[Permissions](#permissions) required:** Permission to access Jira.
441
- *
442
- * @returns Returned if the request is successful.
443
- *
444
- * example: {
445
- * "expand": "user,group,projectRole,field,all",
446
- * "permissions": [
447
- * {
448
- * "holder": {
449
- * "expand": "group",
450
- * "parameter": "jira-core-users",
451
- * "type": "group",
452
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
453
- * },
454
- * "id": 10000,
455
- * "permission": "ADMINISTER_PROJECTS",
456
- * "self":
457
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
458
- * }
459
- * ]
460
- * }
461
- * @path {GET} /rest/api/3/permissionscheme/{schemeId}/permission
462
- * @scopes-current read:jira-work
463
- * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
464
- * read:permission:jira, read:project-role:jira, read:user:jira
465
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-get
466
- */
467
- getPermissionSchemeGrants({ schemeId, expand, }) {
468
- return this.getClientInstance()
469
- .request({
470
- path: "/rest/api/3/permissionscheme/{schemeId}/permission",
471
- method: "GET",
472
- pathParams: {
473
- schemeId,
474
- },
475
- query: {
476
- expand,
477
- },
478
- })
479
- .then(this.getClientInstance().responseHandler({
480
- 200: {
481
- "application/json": "json",
482
- },
483
- }))
484
- .then(commonHttpClient.castResponse())
485
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionSchemeGrants.response"))
486
- .then(commonHttpClient.getBody);
487
- }
488
- /**
489
- * Updates a permission scheme. Below are some important things to note when using
490
- * this resource:
491
- *
492
- * * If a permissions list is present in the request, then it is set in the
493
- * permission scheme, overwriting *all existing* grants.
494
- * * If you want to update only the name and description, then do not send a
495
- * permissions list in the request.
496
- * * Sending an empty list will remove all permission grants from the permission
497
- * scheme.
498
- *
499
- * If you want to add or delete a permission grant instead of updating the whole
500
- * list, see [Create permission
501
- * grant](#api-rest-api-3-permissionscheme-schemeId-permission-post) or [Delete
502
- * permission scheme
503
- * entity](#api-rest-api-3-permissionscheme-schemeId-permission-permissionId-delete).
504
- *
505
- * See [About permission schemes and
506
- * grants](../api-group-permission-schemes/#about-permission-schemes-and-grants)
507
- * for more details.
508
- *
509
- * **[Permissions](#permissions) required:** *Administer Jira* [global
510
- * permission](https://confluence.atlassian.com/x/x4dKLg).
511
- *
512
- * @returns Returned if the scheme is updated.
513
- *
514
- * example: {
515
- * "description": "description",
516
- * "id": 10000,
517
- * "name": "Example permission scheme",
518
- * "permissions": [
519
- * {
520
- * "holder": {
521
- * "expand": "group",
522
- * "parameter": "jira-core-users",
523
- * "type": "group",
524
- * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
525
- * },
526
- * "id": 10000,
527
- * "permission": "ADMINISTER_PROJECTS",
528
- * "self":
529
- * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
530
- * }
531
- * ],
532
- * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
533
- * }
534
- * @path {PUT} /rest/api/3/permissionscheme/{schemeId}
535
- * @scopes-current manage:jira-configuration
536
- * @scopes-beta write:permission-scheme:jira, read:application-role:jira, read:field:jira,
537
- * read:group:jira, read:permission-scheme:jira, read:permission:jira,
538
- * read:project-role:jira, read:user:jira, read:avatar:jira,
539
- * read:project-category:jira, read:project:jira
540
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-put
541
- */
542
- updatePermissionScheme({ schemeId, expand, permissionScheme, }) {
543
- return this.getClientInstance()
544
- .request({
545
- path: "/rest/api/3/permissionscheme/{schemeId}",
546
- method: "PUT",
547
- pathParams: {
548
- schemeId,
549
- },
550
- query: {
551
- expand,
552
- },
553
- headers: {
554
- "Content-Type": "application/json",
555
- },
556
- body: permissionScheme,
557
- })
558
- .then(this.getClientInstance().responseHandler({
559
- 200: {
560
- "application/json": "json",
561
- },
562
- }))
563
- .then(commonHttpClient.castResponse())
564
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.updatePermissionScheme.response"))
565
- .then(commonHttpClient.getBody);
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * Creates a permission grant in a permission scheme.
25
+ *
26
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
27
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
28
+ *
29
+ * @returns Returned if the scheme permission is created.
30
+ *
31
+ * example: {
32
+ * "holder": {
33
+ * "expand": "group",
34
+ * "parameter": "jira-core-users",
35
+ * "type": "group",
36
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
37
+ * },
38
+ * "id": 10000,
39
+ * "permission": "ADMINISTER_PROJECTS",
40
+ * "self":
41
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
42
+ * }
43
+ * @path {POST} /rest/api/3/permissionscheme/{schemeId}/permission
44
+ * @scopes-current manage:jira-configuration
45
+ * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
46
+ * read:permission:jira, read:project-role:jira, read:user:jira,
47
+ * write:permission:jira
48
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-post
49
+ */
50
+ this.createPermissionGrant = ({ schemeId, expand, permissionGrant, }) => {
51
+ return this.getClientInstance()
52
+ .request({
53
+ path: "/rest/api/3/permissionscheme/{schemeId}/permission",
54
+ method: "POST",
55
+ pathParams: {
56
+ schemeId,
57
+ },
58
+ query: {
59
+ expand,
60
+ },
61
+ headers: {
62
+ "Content-Type": "application/json",
63
+ },
64
+ body: permissionGrant,
65
+ })
66
+ .then(this.getClientInstance().responseHandler({
67
+ 201: {
68
+ "application/json": "json",
69
+ },
70
+ }))
71
+ .then(commonHttpClient.castResponse())
72
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.createPermissionGrant.response"))
73
+ .then(commonHttpClient.getBody);
74
+ };
75
+ /**
76
+ * Creates a new permission scheme. You can create a permission scheme with or
77
+ * without defining a set of permission grants.
78
+ *
79
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
80
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
81
+ *
82
+ * @returns Returned if the permission scheme is created.
83
+ *
84
+ * example: {
85
+ * "description": "description",
86
+ * "id": 10000,
87
+ * "name": "Example permission scheme",
88
+ * "permissions": [
89
+ * {
90
+ * "holder": {
91
+ * "expand": "group",
92
+ * "parameter": "jira-core-users",
93
+ * "type": "group",
94
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
95
+ * },
96
+ * "id": 10000,
97
+ * "permission": "ADMINISTER_PROJECTS",
98
+ * "self":
99
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
100
+ * }
101
+ * ],
102
+ * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
103
+ * }
104
+ * @path {POST} /rest/api/3/permissionscheme
105
+ * @scopes-current manage:jira-configuration
106
+ * @scopes-beta write:permission-scheme:jira, read:application-role:jira, read:field:jira,
107
+ * read:group:jira, read:permission-scheme:jira, read:permission:jira,
108
+ * read:project-role:jira, read:user:jira, read:avatar:jira,
109
+ * read:project-category:jira, read:project:jira
110
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-post
111
+ */
112
+ this.createPermissionScheme = ({ expand, permissionScheme, }) => {
113
+ return this.getClientInstance()
114
+ .request({
115
+ path: "/rest/api/3/permissionscheme",
116
+ method: "POST",
117
+ query: {
118
+ expand,
119
+ },
120
+ headers: {
121
+ "Content-Type": "application/json",
122
+ },
123
+ body: permissionScheme,
124
+ })
125
+ .then(this.getClientInstance().responseHandler({
126
+ 201: {
127
+ "application/json": "json",
128
+ },
129
+ }))
130
+ .then(commonHttpClient.castResponse())
131
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.createPermissionScheme.response"))
132
+ .then(commonHttpClient.getBody);
133
+ };
134
+ /**
135
+ * Deletes a permission scheme.
136
+ *
137
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
138
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
139
+ *
140
+ * @path {DELETE} /rest/api/3/permissionscheme/{schemeId}
141
+ * @scopes-current manage:jira-configuration
142
+ * @scopes-beta delete:permission-scheme:jira
143
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-delete
144
+ */
145
+ this.deletePermissionScheme = ({ schemeId, }) => {
146
+ return this.getClientInstance()
147
+ .request({
148
+ path: "/rest/api/3/permissionscheme/{schemeId}",
149
+ method: "DELETE",
150
+ pathParams: {
151
+ schemeId,
152
+ },
153
+ })
154
+ .then(commonHttpClient.discardResult);
155
+ };
156
+ /**
157
+ * Deletes a permission grant from a permission scheme. See [About permission
158
+ * schemes and
159
+ * grants](../api-group-permission-schemes/#about-permission-schemes-and-grants)
160
+ * for more details.
161
+ *
162
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
163
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
164
+ *
165
+ * @path {DELETE} /rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}
166
+ * @scopes-current manage:jira-configuration
167
+ * @scopes-beta delete:permission:jira
168
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-permissionid-delete
169
+ */
170
+ this.deletePermissionSchemeEntity = ({ schemeId, permissionId, }) => {
171
+ return this.getClientInstance()
172
+ .request({
173
+ path: "/rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}",
174
+ method: "DELETE",
175
+ pathParams: {
176
+ schemeId,
177
+ permissionId,
178
+ },
179
+ })
180
+ .then(commonHttpClient.discardResult);
181
+ };
182
+ /**
183
+ * Returns all permission schemes.
184
+ *
185
+ * ### About permission schemes and grants ###
186
+ *
187
+ * A permission scheme is a collection of permission grants. A permission grant
188
+ * consists of a `holder` and a `permission`.
189
+ *
190
+ * #### Holder object ####
191
+ *
192
+ * The `holder` object contains information about the user or group being granted
193
+ * the permission. For example, the *Administer projects* permission is granted to
194
+ * a group named *Teams in space administrators*. In this case, the type is
195
+ * `"type": "group"`, and the parameter is the group name, `"parameter": "Teams in
196
+ * space administrators"` and the value is group ID, `"value":
197
+ * "ca85fac0-d974-40ca-a615-7af99c48d24f"`.
198
+ *
199
+ * The `holder` object is defined by the following properties:
200
+ *
201
+ * * `type` Identifies the user or group (see the list of types below).
202
+ * * `parameter` As a group's name can change, use of `value` is recommended.
203
+ * The value of this property depends on the `type`. For example, if the `type` is
204
+ * a group, then you need to specify the group name.
205
+ * * `value` The value of this property depends on the `type`. If the `type` is
206
+ * a group, then you need to specify the group ID. For other `type` it has the
207
+ * same value as `parameter`
208
+ *
209
+ * The following `types` are available. The expected values for `parameter` and
210
+ * `value` are given in parentheses (some types may not have a `parameter` or
211
+ * `value`):
212
+ *
213
+ * * `anyone` Grant for anonymous users.
214
+ * * `applicationRole` Grant for users with access to the specified application
215
+ * (application name, application name). See [Update product access
216
+ * settings](https://confluence.atlassian.com/x/3YxjL) for more information.
217
+ * * `assignee` Grant for the user currently assigned to an issue.
218
+ * * `group` Grant for the specified group (`parameter` : group name, `value` :
219
+ * group ID).
220
+ * * `groupCustomField` Grant for a user in the group selected in the specified
221
+ * custom field (`parameter` : custom field ID, `value` : custom field ID).
222
+ * * `projectLead` Grant for a project lead.
223
+ * * `projectRole` Grant for the specified project role (`parameter` :project
224
+ * role ID, `value` : project role ID).
225
+ * * `reporter` Grant for the user who reported the issue.
226
+ * * `sd.customer.portal.only` Jira Service Desk only. Grants customers
227
+ * permission to access the customer portal but not Jira. See [Customizing Jira
228
+ * Service Desk permissions](https://confluence.atlassian.com/x/24dKLg) for more
229
+ * information.
230
+ * * `user` Grant for the specified user (`parameter` : user ID - historically
231
+ * this was the userkey but that is deprecated and the account ID should be used,
232
+ * `value` : user ID).
233
+ * * `userCustomField` Grant for a user selected in the specified custom field
234
+ * (`parameter` : custom field ID, `value` : custom field ID).
235
+ *
236
+ * #### Built-in permissions ####
237
+ *
238
+ * The [built-in Jira permissions](https://confluence.atlassian.com/x/yodKLg) are
239
+ * listed below. Apps can also define custom permissions. See the [project
240
+ * permission](https://developer.atlassian.com/cloud/jira/platform/modules/project-permission/)
241
+ * and [global
242
+ * permission](https://developer.atlassian.com/cloud/jira/platform/modules/global-permission/)
243
+ * module documentation for more information.
244
+ *
245
+ * **Project permissions**
246
+ *
247
+ * * `ADMINISTER_PROJECTS`
248
+ * * `BROWSE_PROJECTS`
249
+ * * `MANAGE_SPRINTS_PERMISSION` (Jira Software only)
250
+ * * `SERVICEDESK_AGENT` (Jira Service Desk only)
251
+ * * `VIEW_DEV_TOOLS` (Jira Software only)
252
+ * * `VIEW_READONLY_WORKFLOW`
253
+ *
254
+ * **Issue permissions**
255
+ *
256
+ * * `ASSIGNABLE_USER`
257
+ * * `ASSIGN_ISSUES`
258
+ * * `CLOSE_ISSUES`
259
+ * * `CREATE_ISSUES`
260
+ * * `DELETE_ISSUES`
261
+ * * `EDIT_ISSUES`
262
+ * * `LINK_ISSUES`
263
+ * * `MODIFY_REPORTER`
264
+ * * `MOVE_ISSUES`
265
+ * * `RESOLVE_ISSUES`
266
+ * * `SCHEDULE_ISSUES`
267
+ * * `SET_ISSUE_SECURITY`
268
+ * * `TRANSITION_ISSUES`
269
+ *
270
+ * **Voters and watchers permissions**
271
+ *
272
+ * * `MANAGE_WATCHERS`
273
+ * * `VIEW_VOTERS_AND_WATCHERS`
274
+ *
275
+ * **Comments permissions**
276
+ *
277
+ * * `ADD_COMMENTS`
278
+ * * `DELETE_ALL_COMMENTS`
279
+ * * `DELETE_OWN_COMMENTS`
280
+ * * `EDIT_ALL_COMMENTS`
281
+ * * `EDIT_OWN_COMMENTS`
282
+ *
283
+ * **Attachments permissions**
284
+ *
285
+ * * `CREATE_ATTACHMENTS`
286
+ * * `DELETE_ALL_ATTACHMENTS`
287
+ * * `DELETE_OWN_ATTACHMENTS`
288
+ *
289
+ * **Time tracking permissions**
290
+ *
291
+ * * `DELETE_ALL_WORKLOGS`
292
+ * * `DELETE_OWN_WORKLOGS`
293
+ * * `EDIT_ALL_WORKLOGS`
294
+ * * `EDIT_OWN_WORKLOGS`
295
+ * * `WORK_ON_ISSUES`
296
+ *
297
+ * **[Permissions](#permissions) required:** Permission to access Jira.
298
+ *
299
+ * @returns Returned if the request is successful.
300
+ *
301
+ * example: {
302
+ * "permissionSchemes": [
303
+ * {
304
+ * "description": "description",
305
+ * "id": 10000,
306
+ * "name": "Example permission scheme",
307
+ * "self":
308
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
309
+ * }
310
+ * ]
311
+ * }
312
+ * @path {GET} /rest/api/3/permissionscheme
313
+ * @scopes-current read:jira-work
314
+ * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
315
+ * read:permission-scheme:jira, read:permission:jira, read:project-role:jira,
316
+ * read:user:jira, read:avatar:jira, read:project-category:jira, read:project:jira
317
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-get
318
+ */
319
+ this.getAllPermissionSchemes = ({ expand, } = {}) => {
320
+ return this.getClientInstance()
321
+ .request({
322
+ path: "/rest/api/3/permissionscheme",
323
+ method: "GET",
324
+ query: {
325
+ expand,
326
+ },
327
+ })
328
+ .then(this.getClientInstance().responseHandler({
329
+ 200: {
330
+ "application/json": "json",
331
+ },
332
+ }))
333
+ .then(commonHttpClient.castResponse())
334
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getAllPermissionSchemes.response"))
335
+ .then(commonHttpClient.getBody);
336
+ };
337
+ /**
338
+ * Returns a permission scheme.
339
+ *
340
+ * **[Permissions](#permissions) required:** Permission to access Jira.
341
+ *
342
+ * @returns Returned if the request is successful.
343
+ *
344
+ * example: {
345
+ * "description": "description",
346
+ * "id": 10000,
347
+ * "name": "Example permission scheme",
348
+ * "permissions": [
349
+ * {
350
+ * "holder": {
351
+ * "expand": "group",
352
+ * "parameter": "jira-core-users",
353
+ * "type": "group",
354
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
355
+ * },
356
+ * "id": 10000,
357
+ * "permission": "ADMINISTER_PROJECTS",
358
+ * "self":
359
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
360
+ * }
361
+ * ],
362
+ * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
363
+ * }
364
+ * @path {GET} /rest/api/3/permissionscheme/{schemeId}
365
+ * @scopes-current read:jira-work
366
+ * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
367
+ * read:permission-scheme:jira, read:permission:jira, read:project-role:jira,
368
+ * read:user:jira, read:avatar:jira, read:project-category:jira, read:project:jira
369
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-get
370
+ */
371
+ this.getPermissionScheme = ({ schemeId, expand, }) => {
372
+ return this.getClientInstance()
373
+ .request({
374
+ path: "/rest/api/3/permissionscheme/{schemeId}",
375
+ method: "GET",
376
+ pathParams: {
377
+ schemeId,
378
+ },
379
+ query: {
380
+ expand,
381
+ },
382
+ })
383
+ .then(this.getClientInstance().responseHandler({
384
+ 200: {
385
+ "application/json": "json",
386
+ },
387
+ }))
388
+ .then(commonHttpClient.castResponse())
389
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionScheme.response"))
390
+ .then(commonHttpClient.getBody);
391
+ };
392
+ /**
393
+ * Returns a permission grant.
394
+ *
395
+ * **[Permissions](#permissions) required:** Permission to access Jira.
396
+ *
397
+ * @returns Returned if the request is successful.
398
+ *
399
+ * example: {
400
+ * "holder": {
401
+ * "expand": "group",
402
+ * "parameter": "jira-core-users",
403
+ * "type": "group",
404
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
405
+ * },
406
+ * "id": 10000,
407
+ * "permission": "ADMINISTER_PROJECTS",
408
+ * "self":
409
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
410
+ * }
411
+ * @path {GET} /rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}
412
+ * @scopes-current read:jira-work
413
+ * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
414
+ * read:permission:jira, read:project-role:jira, read:user:jira
415
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-permissionid-get
416
+ */
417
+ this.getPermissionSchemeGrant = ({ schemeId, permissionId, expand, }) => {
418
+ return this.getClientInstance()
419
+ .request({
420
+ path: "/rest/api/3/permissionscheme/{schemeId}/permission/{permissionId}",
421
+ method: "GET",
422
+ pathParams: {
423
+ schemeId,
424
+ permissionId,
425
+ },
426
+ query: {
427
+ expand,
428
+ },
429
+ })
430
+ .then(this.getClientInstance().responseHandler({
431
+ 200: {
432
+ "application/json": "json",
433
+ },
434
+ }))
435
+ .then(commonHttpClient.castResponse())
436
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionSchemeGrant.response"))
437
+ .then(commonHttpClient.getBody);
438
+ };
439
+ /**
440
+ * Returns all permission grants for a permission scheme.
441
+ *
442
+ * **[Permissions](#permissions) required:** Permission to access Jira.
443
+ *
444
+ * @returns Returned if the request is successful.
445
+ *
446
+ * example: {
447
+ * "expand": "user,group,projectRole,field,all",
448
+ * "permissions": [
449
+ * {
450
+ * "holder": {
451
+ * "expand": "group",
452
+ * "parameter": "jira-core-users",
453
+ * "type": "group",
454
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
455
+ * },
456
+ * "id": 10000,
457
+ * "permission": "ADMINISTER_PROJECTS",
458
+ * "self":
459
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
460
+ * }
461
+ * ]
462
+ * }
463
+ * @path {GET} /rest/api/3/permissionscheme/{schemeId}/permission
464
+ * @scopes-current read:jira-work
465
+ * @scopes-beta read:application-role:jira, read:field:jira, read:group:jira,
466
+ * read:permission:jira, read:project-role:jira, read:user:jira
467
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-permission-get
468
+ */
469
+ this.getPermissionSchemeGrants = ({ schemeId, expand, }) => {
470
+ return this.getClientInstance()
471
+ .request({
472
+ path: "/rest/api/3/permissionscheme/{schemeId}/permission",
473
+ method: "GET",
474
+ pathParams: {
475
+ schemeId,
476
+ },
477
+ query: {
478
+ expand,
479
+ },
480
+ })
481
+ .then(this.getClientInstance().responseHandler({
482
+ 200: {
483
+ "application/json": "json",
484
+ },
485
+ }))
486
+ .then(commonHttpClient.castResponse())
487
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.getPermissionSchemeGrants.response"))
488
+ .then(commonHttpClient.getBody);
489
+ };
490
+ /**
491
+ * Updates a permission scheme. Below are some important things to note when using
492
+ * this resource:
493
+ *
494
+ * * If a permissions list is present in the request, then it is set in the
495
+ * permission scheme, overwriting *all existing* grants.
496
+ * * If you want to update only the name and description, then do not send a
497
+ * permissions list in the request.
498
+ * * Sending an empty list will remove all permission grants from the permission
499
+ * scheme.
500
+ *
501
+ * If you want to add or delete a permission grant instead of updating the whole
502
+ * list, see [Create permission
503
+ * grant](#api-rest-api-3-permissionscheme-schemeId-permission-post) or [Delete
504
+ * permission scheme
505
+ * entity](#api-rest-api-3-permissionscheme-schemeId-permission-permissionId-delete).
506
+ *
507
+ * See [About permission schemes and
508
+ * grants](../api-group-permission-schemes/#about-permission-schemes-and-grants)
509
+ * for more details.
510
+ *
511
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
512
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
513
+ *
514
+ * @returns Returned if the scheme is updated.
515
+ *
516
+ * example: {
517
+ * "description": "description",
518
+ * "id": 10000,
519
+ * "name": "Example permission scheme",
520
+ * "permissions": [
521
+ * {
522
+ * "holder": {
523
+ * "expand": "group",
524
+ * "parameter": "jira-core-users",
525
+ * "type": "group",
526
+ * "value": "ca85fac0-d974-40ca-a615-7af99c48d24f"
527
+ * },
528
+ * "id": 10000,
529
+ * "permission": "ADMINISTER_PROJECTS",
530
+ * "self":
531
+ * "https://your-domain.atlassian.net/rest/api/3/permissionscheme/permission/10000"
532
+ * }
533
+ * ],
534
+ * "self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
535
+ * }
536
+ * @path {PUT} /rest/api/3/permissionscheme/{schemeId}
537
+ * @scopes-current manage:jira-configuration
538
+ * @scopes-beta write:permission-scheme:jira, read:application-role:jira, read:field:jira,
539
+ * read:group:jira, read:permission-scheme:jira, read:permission:jira,
540
+ * read:project-role:jira, read:user:jira, read:avatar:jira,
541
+ * read:project-category:jira, read:project:jira
542
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes#api-rest-api-3-permissionscheme-schemeid-put
543
+ */
544
+ this.updatePermissionScheme = ({ schemeId, expand, permissionScheme, }) => {
545
+ return this.getClientInstance()
546
+ .request({
547
+ path: "/rest/api/3/permissionscheme/{schemeId}",
548
+ method: "PUT",
549
+ pathParams: {
550
+ schemeId,
551
+ },
552
+ query: {
553
+ expand,
554
+ },
555
+ headers: {
556
+ "Content-Type": "application/json",
557
+ },
558
+ body: permissionScheme,
559
+ })
560
+ .then(this.getClientInstance().responseHandler({
561
+ 200: {
562
+ "application/json": "json",
563
+ },
564
+ }))
565
+ .then(commonHttpClient.castResponse())
566
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("PermissionSchemesService.updatePermissionScheme.response"))
567
+ .then(commonHttpClient.getBody);
568
+ };
566
569
  }
567
570
  static initialize() {
568
571
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PermissionSchemesService.getAllPermissionSchemes.response", zod_1.z