@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
@@ -22,613 +22,616 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
22
22
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes
23
23
  */
24
24
  class IssueSecuritySchemesService extends CommonHttpService_1.CommonHttpService {
25
- /**
26
- * Adds levels and levels' members to the issue security scheme. You can add up to
27
- * 100 levels per request.
28
- *
29
- * **[Permissions](#permissions) required:** *Administer Jira* [global
30
- * permission](https://confluence.atlassian.com/x/x4dKLg).
31
- *
32
- * @returns Returned if the request is successful.
33
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level
34
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-put
35
- */
36
- addSecurityLevel({ schemeId, addSecuritySchemeLevelsRequestBean, }) {
37
- return this.getClientInstance()
38
- .request({
39
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level",
40
- method: "PUT",
41
- pathParams: {
42
- schemeId,
43
- },
44
- headers: {
45
- "Content-Type": "application/json",
46
- },
47
- body: addSecuritySchemeLevelsRequestBean,
48
- })
49
- .then(this.getClientInstance().responseHandler({
50
- 204: {
51
- "application/json": "json",
52
- },
53
- }))
54
- .then(commonHttpClient.castResponse())
55
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.addSecurityLevel.response"))
56
- .then(commonHttpClient.getBody);
57
- }
58
- /**
59
- * Adds members to the issue security level. You can add up to 100 members per
60
- * request.
61
- *
62
- * **[Permissions](#permissions) required:** *Administer Jira* [global
63
- * permission](https://confluence.atlassian.com/x/x4dKLg).
64
- *
65
- * @returns Returned if the request is successful.
66
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member
67
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-member-put
68
- */
69
- addSecurityLevelMembers({ schemeId, levelId, securitySchemeMembersRequest, }) {
70
- return this.getClientInstance()
71
- .request({
72
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member",
73
- method: "PUT",
74
- pathParams: {
75
- schemeId,
76
- levelId,
77
- },
78
- headers: {
79
- "Content-Type": "application/json",
80
- },
81
- body: securitySchemeMembersRequest,
82
- })
83
- .then(this.getClientInstance().responseHandler({
84
- 204: {
85
- "application/json": "json",
86
- },
87
- }))
88
- .then(commonHttpClient.castResponse())
89
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.addSecurityLevelMembers.response"))
90
- .then(commonHttpClient.getBody);
91
- }
92
- /**
93
- * Associates an issue security scheme with a project and remaps security levels
94
- * of issues to the new levels, if provided.
95
- *
96
- * This operation is [asynchronous](#async). Follow the `location` link in the
97
- * response to determine the status of the task and use [Get
98
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
99
- *
100
- * **[Permissions](#permissions) required:** *Administer Jira* [global
101
- * permission](https://confluence.atlassian.com/x/x4dKLg).
102
- *
103
- * @path {PUT} /rest/api/3/issuesecurityschemes/project
104
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-project-put
105
- */
106
- associateSchemesToProjects({ associateSecuritySchemeWithProjectDetails, }) {
107
- return this.getClientInstance()
108
- .request({
109
- path: "/rest/api/3/issuesecurityschemes/project",
110
- method: "PUT",
111
- headers: {
112
- "Content-Type": "application/json",
113
- },
114
- body: associateSecuritySchemeWithProjectDetails,
115
- })
116
- .then(commonHttpClient.discardResult);
117
- }
118
- /**
119
- * Creates a security scheme with security scheme levels and levels' members. You
120
- * can create up to 100 security scheme levels and security scheme levels' members
121
- * per request.
122
- *
123
- * **[Permissions](#permissions) required:** *Administer Jira* [global
124
- * permission](https://confluence.atlassian.com/x/x4dKLg).
125
- *
126
- * @returns Returned if the request is successful.
127
- *
128
- * example: {
129
- * "id": "10001"
130
- * }
131
- * @path {POST} /rest/api/3/issuesecurityschemes
132
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-post
133
- */
134
- createIssueSecurityScheme({ createIssueSecuritySchemeDetails, }) {
135
- return this.getClientInstance()
136
- .request({
137
- path: "/rest/api/3/issuesecurityschemes",
138
- method: "POST",
139
- headers: {
140
- "Content-Type": "application/json",
141
- },
142
- body: createIssueSecuritySchemeDetails,
143
- })
144
- .then(this.getClientInstance().responseHandler({
145
- 201: {
146
- "application/json": "json",
147
- },
148
- }))
149
- .then(commonHttpClient.castResponse())
150
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.createIssueSecurityScheme.response"))
151
- .then(commonHttpClient.getBody);
152
- }
153
- /**
154
- * Deletes an issue security scheme.
155
- *
156
- * **[Permissions](#permissions) required:** *Administer Jira* [global
157
- * permission](https://confluence.atlassian.com/x/x4dKLg).
158
- *
159
- * @returns Returned if the request is successful.
160
- * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}
161
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-delete
162
- */
163
- deleteSecurityScheme({ schemeId, }) {
164
- return this.getClientInstance()
165
- .request({
166
- path: "/rest/api/3/issuesecurityschemes/{schemeId}",
167
- method: "DELETE",
168
- pathParams: {
169
- schemeId,
170
- },
171
- })
172
- .then(this.getClientInstance().responseHandler({
173
- 204: {
174
- "application/json": "json",
175
- },
176
- }))
177
- .then(commonHttpClient.castResponse())
178
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.deleteSecurityScheme.response"))
179
- .then(commonHttpClient.getBody);
180
- }
181
- /**
182
- * Returns an issue security scheme along with its security levels.
183
- *
184
- * **[Permissions](#permissions) required:**
185
- *
186
- * * *Administer Jira* [global
187
- * permission](https://confluence.atlassian.com/x/x4dKLg).
188
- * * *Administer Projects* [project
189
- * permission](https://confluence.atlassian.com/x/yodKLg) for a project that uses
190
- * the requested issue security scheme.
191
- *
192
- * @returns Returned if the request is successful.
193
- *
194
- * example: {
195
- * "defaultSecurityLevelId": 10021,
196
- * "description": "Description for the default issue security scheme",
197
- * "id": 10000,
198
- * "levels": [
199
- * {
200
- * "description": "Only the reporter and internal staff can see this issue.",
201
- * "id": "10021",
202
- * "name": "Reporter Only",
203
- * "self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/10021"
204
- * }
205
- * ],
206
- * "name": "Default Issue Security Scheme",
207
- * "self":
208
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
209
- * }
210
- * @path {GET} /rest/api/3/issuesecurityschemes/{id}
211
- * @scopes-current manage:jira-project
212
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
213
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-id-get
214
- */
215
- getIssueSecurityScheme({ id, }) {
216
- return this.getClientInstance()
217
- .request({
218
- path: "/rest/api/3/issuesecurityschemes/{id}",
219
- method: "GET",
220
- pathParams: {
221
- id,
222
- },
223
- })
224
- .then(this.getClientInstance().responseHandler({
225
- 200: {
226
- "application/json": "json",
227
- },
228
- }))
229
- .then(commonHttpClient.castResponse())
230
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getIssueSecurityScheme.response"))
231
- .then(commonHttpClient.getBody);
232
- }
233
- /**
234
- * Returns all [issue security schemes](https://confluence.atlassian.com/x/J4lKLg).
235
- *
236
- * **[Permissions](#permissions) required:** *Administer Jira* [global
237
- * permission](https://confluence.atlassian.com/x/x4dKLg).
238
- *
239
- * @returns Returned if the request is successful.
240
- *
241
- * example: {
242
- * "issueSecuritySchemes": [
243
- * {
244
- * "defaultSecurityLevelId": 10021,
245
- * "description": "Description for the default issue security scheme",
246
- * "id": 10000,
247
- * "name": "Default Issue Security Scheme",
248
- * "self":
249
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
250
- * }
251
- * ]
252
- * }
253
- * @path {GET} /rest/api/3/issuesecurityschemes
254
- * @scopes-current manage:jira-project
255
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
256
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-get
257
- */
258
- getIssueSecuritySchemes() {
259
- return this.getClientInstance()
260
- .request({
261
- path: "/rest/api/3/issuesecurityschemes",
262
- method: "GET",
263
- })
264
- .then(this.getClientInstance().responseHandler({
265
- 200: {
266
- "application/json": "json",
267
- },
268
- }))
269
- .then(commonHttpClient.castResponse())
270
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getIssueSecuritySchemes.response"))
271
- .then(commonHttpClient.getBody);
272
- }
273
- /**
274
- * Returns a [paginated](#pagination) list of issue security level members.
275
- *
276
- * Only issue security level members in the context of classic projects are
277
- * returned.
278
- *
279
- * Filtering using parameters is inclusive: if you specify both security scheme
280
- * IDs and level IDs, the result will include all issue security level members
281
- * from the specified schemes and levels.
282
- *
283
- * **[Permissions](#permissions) required:** *Administer Jira* [global
284
- * permission](https://confluence.atlassian.com/x/x4dKLg).
285
- *
286
- * @returns Returned if the request is successful.
287
- *
288
- * example: {
289
- * "isLast": true,
290
- * "maxResults": 100,
291
- * "startAt": 0,
292
- * "total": 3,
293
- * "values": [
294
- * {
295
- * "id": "10000",
296
- * "issueSecurityLevelId": "20010",
297
- * "issueSecuritySchemeId": "10010",
298
- * "holder": {
299
- * "expand": "group",
300
- * "type": "group"
301
- * }
302
- * }
303
- * ]
304
- * }
305
- * @path {GET} /rest/api/3/issuesecurityschemes/level/member
306
- * @scopes-current manage:jira-configuration
307
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
308
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-member-get
309
- */
310
- getSecurityLevelMembers({ startAt, maxResults, id, schemeId, levelId, expand, } = {}) {
311
- return this.getClientInstance()
312
- .request({
313
- path: "/rest/api/3/issuesecurityschemes/level/member",
314
- method: "GET",
315
- query: {
316
- startAt,
317
- maxResults,
318
- id,
319
- schemeId,
320
- levelId,
321
- expand,
322
- },
323
- })
324
- .then(this.getClientInstance().responseHandler({
325
- 200: {
326
- "application/json": "json",
327
- },
328
- }))
329
- .then(commonHttpClient.castResponse())
330
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getSecurityLevelMembers.response"))
331
- .then(commonHttpClient.getBody);
332
- }
333
- /**
334
- * Returns a [paginated](#pagination) list of issue security levels.
335
- *
336
- * Only issue security levels in the context of classic projects are returned.
337
- *
338
- * Filtering using IDs is inclusive: if you specify both security scheme IDs and
339
- * level IDs, the result will include both specified issue security levels and all
340
- * issue security levels from the specified schemes.
341
- *
342
- * **[Permissions](#permissions) required:** *Administer Jira* [global
343
- * permission](https://confluence.atlassian.com/x/x4dKLg).
344
- *
345
- * @returns Returned if the request is successful.
346
- *
347
- * example: {
348
- * "isLast": true,
349
- * "maxResults": 50,
350
- * "startAt": 0,
351
- * "total": 1,
352
- * "values": [
353
- * {
354
- * "description": "Only the reporter and internal staff can see this issue.",
355
- * "id": "10021",
356
- * "isDefault": true,
357
- * "issueSecuritySchemeId": "10001",
358
- * "name": "Reporter Only",
359
- * "self":
360
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/level?id=10021"
361
- * }
362
- * ]
363
- * }
364
- * @path {GET} /rest/api/3/issuesecurityschemes/level
365
- * @scopes-current manage:jira-configuration
366
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
367
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-get
368
- */
369
- getSecurityLevels({ startAt, maxResults, id, schemeId, onlyDefault, } = {}) {
370
- return this.getClientInstance()
371
- .request({
372
- path: "/rest/api/3/issuesecurityschemes/level",
373
- method: "GET",
374
- query: {
375
- startAt,
376
- maxResults,
377
- id,
378
- schemeId,
379
- onlyDefault,
380
- },
381
- })
382
- .then(this.getClientInstance().responseHandler({
383
- 200: {
384
- "application/json": "json",
385
- },
386
- }))
387
- .then(commonHttpClient.castResponse())
388
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getSecurityLevels.response"))
389
- .then(commonHttpClient.getBody);
390
- }
391
- /**
392
- * Deletes an issue security level.
393
- *
394
- * This operation is [asynchronous](#async). Follow the `location` link in the
395
- * response to determine the status of the task and use [Get
396
- * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
397
- *
398
- * **[Permissions](#permissions) required:** *Administer Jira* [global
399
- * permission](https://confluence.atlassian.com/x/x4dKLg).
400
- *
401
- * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
402
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-delete
403
- */
404
- removeLevel({ schemeId, levelId, replaceWith, }) {
405
- return this.getClientInstance()
406
- .request({
407
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
408
- method: "DELETE",
409
- pathParams: {
410
- schemeId,
411
- levelId,
412
- },
413
- query: {
414
- replaceWith,
415
- },
416
- })
417
- .then(commonHttpClient.discardResult);
418
- }
419
- /**
420
- * Removes an issue security level member from an issue security scheme.
421
- *
422
- * **[Permissions](#permissions) required:** *Administer Jira* [global
423
- * permission](https://confluence.atlassian.com/x/x4dKLg).
424
- *
425
- * @returns Returned if the request is successful.
426
- * @path {DELETE}
427
- * /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}
428
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-member-memberid-delete
429
- */
430
- removeMemberFromSecurityLevel({ schemeId, levelId, memberId, }) {
431
- return this.getClientInstance()
432
- .request({
433
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}",
434
- method: "DELETE",
435
- pathParams: {
436
- schemeId,
437
- levelId,
438
- memberId,
439
- },
440
- })
441
- .then(this.getClientInstance().responseHandler({
442
- 204: {
443
- "application/json": "json",
444
- },
445
- }))
446
- .then(commonHttpClient.castResponse())
447
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.removeMemberFromSecurityLevel.response"))
448
- .then(commonHttpClient.getBody);
449
- }
450
- /**
451
- * Returns a [paginated](#pagination) mapping of projects that are using security
452
- * schemes. You can provide either one or multiple security scheme IDs or project
453
- * IDs to filter by. If you don't provide any, this will return a list of all
454
- * mappings. Only issue security schemes in the context of classic projects are
455
- * supported. **[Permissions](#permissions) required:** *Administer Jira* [global
456
- * permission](https://confluence.atlassian.com/x/x4dKLg).
457
- *
458
- * @returns Returned if the request is successful.
459
- *
460
- * example: {
461
- * "issueSecuritySchemeId": "10000",
462
- * "projectId": "10000"
463
- * }
464
- * @path {GET} /rest/api/3/issuesecurityschemes/project
465
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-project-get
466
- */
467
- searchProjectsUsingSecuritySchemes({ startAt, maxResults, issueSecuritySchemeId, projectId, } = {}) {
468
- return this.getClientInstance()
469
- .request({
470
- path: "/rest/api/3/issuesecurityschemes/project",
471
- method: "GET",
472
- query: {
473
- startAt,
474
- maxResults,
475
- issueSecuritySchemeId,
476
- projectId,
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("IssueSecuritySchemesService.searchProjectsUsingSecuritySchemes.response"))
486
- .then(commonHttpClient.getBody);
487
- }
488
- /**
489
- * Returns a [paginated](#pagination) list of issue security schemes.
490
- * If you specify the project ID parameter, the result will contain issue security
491
- * schemes and related project IDs you filter by. Use \{@link
492
- * IssueSecuritySchemeResource\#searchProjectsUsingSecuritySchemes(String, String,
493
- * Set, Set)\} to obtain all projects related to scheme.
494
- *
495
- * Only issue security schemes in the context of classic projects are returned.
496
- *
497
- * **[Permissions](#permissions) required:** *Administer Jira* [global
498
- * permission](https://confluence.atlassian.com/x/x4dKLg).
499
- *
500
- * @returns Returned if the request is successful.
501
- *
502
- * example: {
503
- * "id": 10000,
504
- * "self":
505
- * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/10000",
506
- * "name": "Default scheme",
507
- * "description": "Default scheme description",
508
- * "defaultLevel": 10001,
509
- * "projectIds": [
510
- * 10002
511
- * ]
512
- * }
513
- * @path {GET} /rest/api/3/issuesecurityschemes/search
514
- * @scopes-current manage:jira-configuration
515
- * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
516
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-search-get
517
- */
518
- searchSecuritySchemes({ startAt, maxResults, id, projectId, } = {}) {
519
- return this.getClientInstance()
520
- .request({
521
- path: "/rest/api/3/issuesecurityschemes/search",
522
- method: "GET",
523
- query: {
524
- startAt,
525
- maxResults,
526
- id,
527
- projectId,
528
- },
529
- })
530
- .then(this.getClientInstance().responseHandler({
531
- 200: {
532
- "application/json": "json",
533
- },
534
- }))
535
- .then(commonHttpClient.castResponse())
536
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.searchSecuritySchemes.response"))
537
- .then(commonHttpClient.getBody);
538
- }
539
- /**
540
- * Sets default issue security levels for schemes.
541
- *
542
- * **[Permissions](#permissions) required:** *Administer Jira* [global
543
- * permission](https://confluence.atlassian.com/x/x4dKLg).
544
- *
545
- * @returns Returned if the request is successful.
546
- * @path {PUT} /rest/api/3/issuesecurityschemes/level/default
547
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-default-put
548
- */
549
- setDefaultLevels({ setDefaultLevelsRequest, }) {
550
- return this.getClientInstance()
551
- .request({
552
- path: "/rest/api/3/issuesecurityschemes/level/default",
553
- method: "PUT",
554
- headers: {
555
- "Content-Type": "application/json",
556
- },
557
- body: setDefaultLevelsRequest,
558
- })
559
- .then(this.getClientInstance().responseHandler({
560
- 204: {
561
- "application/json": "json",
562
- },
563
- }))
564
- .then(commonHttpClient.castResponse())
565
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.setDefaultLevels.response"))
566
- .then(commonHttpClient.getBody);
567
- }
568
- /**
569
- * Updates the issue security scheme.
570
- *
571
- * **[Permissions](#permissions) required:** *Administer Jira* [global
572
- * permission](https://confluence.atlassian.com/x/x4dKLg).
573
- *
574
- * @returns Returned if the request is successful.
575
- * @path {PUT} /rest/api/3/issuesecurityschemes/{id}
576
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-id-put
577
- */
578
- updateIssueSecurityScheme({ id, updateIssueSecuritySchemeRequestBean, }) {
579
- return this.getClientInstance()
580
- .request({
581
- path: "/rest/api/3/issuesecurityschemes/{id}",
582
- method: "PUT",
583
- pathParams: {
584
- id,
585
- },
586
- headers: {
587
- "Content-Type": "application/json",
588
- },
589
- body: updateIssueSecuritySchemeRequestBean,
590
- })
591
- .then(this.getClientInstance().responseHandler({
592
- 204: {
593
- "application/json": "json",
594
- },
595
- }))
596
- .then(commonHttpClient.castResponse())
597
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.updateIssueSecurityScheme.response"))
598
- .then(commonHttpClient.getBody);
599
- }
600
- /**
601
- * Updates the issue security level.
602
- *
603
- * **[Permissions](#permissions) required:** *Administer Jira* [global
604
- * permission](https://confluence.atlassian.com/x/x4dKLg).
605
- *
606
- * @returns Returned if the request is successful.
607
- * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
608
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-put
609
- */
610
- updateSecurityLevel({ schemeId, levelId, updateIssueSecurityLevelDetails, }) {
611
- return this.getClientInstance()
612
- .request({
613
- path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
614
- method: "PUT",
615
- pathParams: {
616
- schemeId,
617
- levelId,
618
- },
619
- headers: {
620
- "Content-Type": "application/json",
621
- },
622
- body: updateIssueSecurityLevelDetails,
623
- })
624
- .then(this.getClientInstance().responseHandler({
625
- 204: {
626
- "application/json": "json",
627
- },
628
- }))
629
- .then(commonHttpClient.castResponse())
630
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.updateSecurityLevel.response"))
631
- .then(commonHttpClient.getBody);
25
+ constructor() {
26
+ super(...arguments);
27
+ /**
28
+ * Adds levels and levels' members to the issue security scheme. You can add up to
29
+ * 100 levels per request.
30
+ *
31
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
32
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
33
+ *
34
+ * @returns Returned if the request is successful.
35
+ * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level
36
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-put
37
+ */
38
+ this.addSecurityLevel = ({ schemeId, addSecuritySchemeLevelsRequestBean, }) => {
39
+ return this.getClientInstance()
40
+ .request({
41
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}/level",
42
+ method: "PUT",
43
+ pathParams: {
44
+ schemeId,
45
+ },
46
+ headers: {
47
+ "Content-Type": "application/json",
48
+ },
49
+ body: addSecuritySchemeLevelsRequestBean,
50
+ })
51
+ .then(this.getClientInstance().responseHandler({
52
+ 204: {
53
+ "application/json": "json",
54
+ },
55
+ }))
56
+ .then(commonHttpClient.castResponse())
57
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.addSecurityLevel.response"))
58
+ .then(commonHttpClient.getBody);
59
+ };
60
+ /**
61
+ * Adds members to the issue security level. You can add up to 100 members per
62
+ * request.
63
+ *
64
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
65
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
66
+ *
67
+ * @returns Returned if the request is successful.
68
+ * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member
69
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-member-put
70
+ */
71
+ this.addSecurityLevelMembers = ({ schemeId, levelId, securitySchemeMembersRequest, }) => {
72
+ return this.getClientInstance()
73
+ .request({
74
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member",
75
+ method: "PUT",
76
+ pathParams: {
77
+ schemeId,
78
+ levelId,
79
+ },
80
+ headers: {
81
+ "Content-Type": "application/json",
82
+ },
83
+ body: securitySchemeMembersRequest,
84
+ })
85
+ .then(this.getClientInstance().responseHandler({
86
+ 204: {
87
+ "application/json": "json",
88
+ },
89
+ }))
90
+ .then(commonHttpClient.castResponse())
91
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.addSecurityLevelMembers.response"))
92
+ .then(commonHttpClient.getBody);
93
+ };
94
+ /**
95
+ * Associates an issue security scheme with a project and remaps security levels
96
+ * of issues to the new levels, if provided.
97
+ *
98
+ * This operation is [asynchronous](#async). Follow the `location` link in the
99
+ * response to determine the status of the task and use [Get
100
+ * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
101
+ *
102
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
103
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
104
+ *
105
+ * @path {PUT} /rest/api/3/issuesecurityschemes/project
106
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-project-put
107
+ */
108
+ this.associateSchemesToProjects = ({ associateSecuritySchemeWithProjectDetails, }) => {
109
+ return this.getClientInstance()
110
+ .request({
111
+ path: "/rest/api/3/issuesecurityschemes/project",
112
+ method: "PUT",
113
+ headers: {
114
+ "Content-Type": "application/json",
115
+ },
116
+ body: associateSecuritySchemeWithProjectDetails,
117
+ })
118
+ .then(commonHttpClient.discardResult);
119
+ };
120
+ /**
121
+ * Creates a security scheme with security scheme levels and levels' members. You
122
+ * can create up to 100 security scheme levels and security scheme levels' members
123
+ * per request.
124
+ *
125
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
126
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
127
+ *
128
+ * @returns Returned if the request is successful.
129
+ *
130
+ * example: {
131
+ * "id": "10001"
132
+ * }
133
+ * @path {POST} /rest/api/3/issuesecurityschemes
134
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-post
135
+ */
136
+ this.createIssueSecurityScheme = ({ createIssueSecuritySchemeDetails, }) => {
137
+ return this.getClientInstance()
138
+ .request({
139
+ path: "/rest/api/3/issuesecurityschemes",
140
+ method: "POST",
141
+ headers: {
142
+ "Content-Type": "application/json",
143
+ },
144
+ body: createIssueSecuritySchemeDetails,
145
+ })
146
+ .then(this.getClientInstance().responseHandler({
147
+ 201: {
148
+ "application/json": "json",
149
+ },
150
+ }))
151
+ .then(commonHttpClient.castResponse())
152
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.createIssueSecurityScheme.response"))
153
+ .then(commonHttpClient.getBody);
154
+ };
155
+ /**
156
+ * Deletes an issue security scheme.
157
+ *
158
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
159
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
160
+ *
161
+ * @returns Returned if the request is successful.
162
+ * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}
163
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-delete
164
+ */
165
+ this.deleteSecurityScheme = ({ schemeId, }) => {
166
+ return this.getClientInstance()
167
+ .request({
168
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}",
169
+ method: "DELETE",
170
+ pathParams: {
171
+ schemeId,
172
+ },
173
+ })
174
+ .then(this.getClientInstance().responseHandler({
175
+ 204: {
176
+ "application/json": "json",
177
+ },
178
+ }))
179
+ .then(commonHttpClient.castResponse())
180
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.deleteSecurityScheme.response"))
181
+ .then(commonHttpClient.getBody);
182
+ };
183
+ /**
184
+ * Returns an issue security scheme along with its security levels.
185
+ *
186
+ * **[Permissions](#permissions) required:**
187
+ *
188
+ * * *Administer Jira* [global
189
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
190
+ * * *Administer Projects* [project
191
+ * permission](https://confluence.atlassian.com/x/yodKLg) for a project that uses
192
+ * the requested issue security scheme.
193
+ *
194
+ * @returns Returned if the request is successful.
195
+ *
196
+ * example: {
197
+ * "defaultSecurityLevelId": 10021,
198
+ * "description": "Description for the default issue security scheme",
199
+ * "id": 10000,
200
+ * "levels": [
201
+ * {
202
+ * "description": "Only the reporter and internal staff can see this issue.",
203
+ * "id": "10021",
204
+ * "name": "Reporter Only",
205
+ * "self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/10021"
206
+ * }
207
+ * ],
208
+ * "name": "Default Issue Security Scheme",
209
+ * "self":
210
+ * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
211
+ * }
212
+ * @path {GET} /rest/api/3/issuesecurityschemes/{id}
213
+ * @scopes-current manage:jira-project
214
+ * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
215
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-id-get
216
+ */
217
+ this.getIssueSecurityScheme = ({ id, }) => {
218
+ return this.getClientInstance()
219
+ .request({
220
+ path: "/rest/api/3/issuesecurityschemes/{id}",
221
+ method: "GET",
222
+ pathParams: {
223
+ id,
224
+ },
225
+ })
226
+ .then(this.getClientInstance().responseHandler({
227
+ 200: {
228
+ "application/json": "json",
229
+ },
230
+ }))
231
+ .then(commonHttpClient.castResponse())
232
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getIssueSecurityScheme.response"))
233
+ .then(commonHttpClient.getBody);
234
+ };
235
+ /**
236
+ * Returns all [issue security schemes](https://confluence.atlassian.com/x/J4lKLg).
237
+ *
238
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
239
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
240
+ *
241
+ * @returns Returned if the request is successful.
242
+ *
243
+ * example: {
244
+ * "issueSecuritySchemes": [
245
+ * {
246
+ * "defaultSecurityLevelId": 10021,
247
+ * "description": "Description for the default issue security scheme",
248
+ * "id": 10000,
249
+ * "name": "Default Issue Security Scheme",
250
+ * "self":
251
+ * "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
252
+ * }
253
+ * ]
254
+ * }
255
+ * @path {GET} /rest/api/3/issuesecurityschemes
256
+ * @scopes-current manage:jira-project
257
+ * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
258
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-get
259
+ */
260
+ this.getIssueSecuritySchemes = () => {
261
+ return this.getClientInstance()
262
+ .request({
263
+ path: "/rest/api/3/issuesecurityschemes",
264
+ method: "GET",
265
+ })
266
+ .then(this.getClientInstance().responseHandler({
267
+ 200: {
268
+ "application/json": "json",
269
+ },
270
+ }))
271
+ .then(commonHttpClient.castResponse())
272
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getIssueSecuritySchemes.response"))
273
+ .then(commonHttpClient.getBody);
274
+ };
275
+ /**
276
+ * Returns a [paginated](#pagination) list of issue security level members.
277
+ *
278
+ * Only issue security level members in the context of classic projects are
279
+ * returned.
280
+ *
281
+ * Filtering using parameters is inclusive: if you specify both security scheme
282
+ * IDs and level IDs, the result will include all issue security level members
283
+ * from the specified schemes and levels.
284
+ *
285
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
286
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
287
+ *
288
+ * @returns Returned if the request is successful.
289
+ *
290
+ * example: {
291
+ * "isLast": true,
292
+ * "maxResults": 100,
293
+ * "startAt": 0,
294
+ * "total": 3,
295
+ * "values": [
296
+ * {
297
+ * "id": "10000",
298
+ * "issueSecurityLevelId": "20010",
299
+ * "issueSecuritySchemeId": "10010",
300
+ * "holder": {
301
+ * "expand": "group",
302
+ * "type": "group"
303
+ * }
304
+ * }
305
+ * ]
306
+ * }
307
+ * @path {GET} /rest/api/3/issuesecurityschemes/level/member
308
+ * @scopes-current manage:jira-configuration
309
+ * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
310
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-member-get
311
+ */
312
+ this.getSecurityLevelMembers = ({ startAt, maxResults, id, schemeId, levelId, expand, } = {}) => {
313
+ return this.getClientInstance()
314
+ .request({
315
+ path: "/rest/api/3/issuesecurityschemes/level/member",
316
+ method: "GET",
317
+ query: {
318
+ startAt,
319
+ maxResults,
320
+ id,
321
+ schemeId,
322
+ levelId,
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("IssueSecuritySchemesService.getSecurityLevelMembers.response"))
333
+ .then(commonHttpClient.getBody);
334
+ };
335
+ /**
336
+ * Returns a [paginated](#pagination) list of issue security levels.
337
+ *
338
+ * Only issue security levels in the context of classic projects are returned.
339
+ *
340
+ * Filtering using IDs is inclusive: if you specify both security scheme IDs and
341
+ * level IDs, the result will include both specified issue security levels and all
342
+ * issue security levels from the specified schemes.
343
+ *
344
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
345
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
346
+ *
347
+ * @returns Returned if the request is successful.
348
+ *
349
+ * example: {
350
+ * "isLast": true,
351
+ * "maxResults": 50,
352
+ * "startAt": 0,
353
+ * "total": 1,
354
+ * "values": [
355
+ * {
356
+ * "description": "Only the reporter and internal staff can see this issue.",
357
+ * "id": "10021",
358
+ * "isDefault": true,
359
+ * "issueSecuritySchemeId": "10001",
360
+ * "name": "Reporter Only",
361
+ * "self":
362
+ * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/level?id=10021"
363
+ * }
364
+ * ]
365
+ * }
366
+ * @path {GET} /rest/api/3/issuesecurityschemes/level
367
+ * @scopes-current manage:jira-configuration
368
+ * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
369
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-get
370
+ */
371
+ this.getSecurityLevels = ({ startAt, maxResults, id, schemeId, onlyDefault, } = {}) => {
372
+ return this.getClientInstance()
373
+ .request({
374
+ path: "/rest/api/3/issuesecurityschemes/level",
375
+ method: "GET",
376
+ query: {
377
+ startAt,
378
+ maxResults,
379
+ id,
380
+ schemeId,
381
+ onlyDefault,
382
+ },
383
+ })
384
+ .then(this.getClientInstance().responseHandler({
385
+ 200: {
386
+ "application/json": "json",
387
+ },
388
+ }))
389
+ .then(commonHttpClient.castResponse())
390
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.getSecurityLevels.response"))
391
+ .then(commonHttpClient.getBody);
392
+ };
393
+ /**
394
+ * Deletes an issue security level.
395
+ *
396
+ * This operation is [asynchronous](#async). Follow the `location` link in the
397
+ * response to determine the status of the task and use [Get
398
+ * task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
399
+ *
400
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
401
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
402
+ *
403
+ * @path {DELETE} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
404
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-delete
405
+ */
406
+ this.removeLevel = ({ schemeId, levelId, replaceWith, }) => {
407
+ return this.getClientInstance()
408
+ .request({
409
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
410
+ method: "DELETE",
411
+ pathParams: {
412
+ schemeId,
413
+ levelId,
414
+ },
415
+ query: {
416
+ replaceWith,
417
+ },
418
+ })
419
+ .then(commonHttpClient.discardResult);
420
+ };
421
+ /**
422
+ * Removes an issue security level member from an issue security scheme.
423
+ *
424
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
425
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
426
+ *
427
+ * @returns Returned if the request is successful.
428
+ * @path {DELETE}
429
+ * /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}
430
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-member-memberid-delete
431
+ */
432
+ this.removeMemberFromSecurityLevel = ({ schemeId, levelId, memberId, }) => {
433
+ return this.getClientInstance()
434
+ .request({
435
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}/member/{memberId}",
436
+ method: "DELETE",
437
+ pathParams: {
438
+ schemeId,
439
+ levelId,
440
+ memberId,
441
+ },
442
+ })
443
+ .then(this.getClientInstance().responseHandler({
444
+ 204: {
445
+ "application/json": "json",
446
+ },
447
+ }))
448
+ .then(commonHttpClient.castResponse())
449
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.removeMemberFromSecurityLevel.response"))
450
+ .then(commonHttpClient.getBody);
451
+ };
452
+ /**
453
+ * Returns a [paginated](#pagination) mapping of projects that are using security
454
+ * schemes. You can provide either one or multiple security scheme IDs or project
455
+ * IDs to filter by. If you don't provide any, this will return a list of all
456
+ * mappings. Only issue security schemes in the context of classic projects are
457
+ * supported. **[Permissions](#permissions) required:** *Administer Jira* [global
458
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
459
+ *
460
+ * @returns Returned if the request is successful.
461
+ *
462
+ * example: {
463
+ * "issueSecuritySchemeId": "10000",
464
+ * "projectId": "10000"
465
+ * }
466
+ * @path {GET} /rest/api/3/issuesecurityschemes/project
467
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-project-get
468
+ */
469
+ this.searchProjectsUsingSecuritySchemes = ({ startAt, maxResults, issueSecuritySchemeId, projectId, } = {}) => {
470
+ return this.getClientInstance()
471
+ .request({
472
+ path: "/rest/api/3/issuesecurityschemes/project",
473
+ method: "GET",
474
+ query: {
475
+ startAt,
476
+ maxResults,
477
+ issueSecuritySchemeId,
478
+ projectId,
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("IssueSecuritySchemesService.searchProjectsUsingSecuritySchemes.response"))
488
+ .then(commonHttpClient.getBody);
489
+ };
490
+ /**
491
+ * Returns a [paginated](#pagination) list of issue security schemes.
492
+ * If you specify the project ID parameter, the result will contain issue security
493
+ * schemes and related project IDs you filter by. Use \{@link
494
+ * IssueSecuritySchemeResource\#searchProjectsUsingSecuritySchemes(String, String,
495
+ * Set, Set)\} to obtain all projects related to scheme.
496
+ *
497
+ * Only issue security schemes in the context of classic projects are returned.
498
+ *
499
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
500
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
501
+ *
502
+ * @returns Returned if the request is successful.
503
+ *
504
+ * example: {
505
+ * "id": 10000,
506
+ * "self":
507
+ * "https://your-domain.atlassian.net/rest/api/3/issuesecurityscheme/10000",
508
+ * "name": "Default scheme",
509
+ * "description": "Default scheme description",
510
+ * "defaultLevel": 10001,
511
+ * "projectIds": [
512
+ * 10002
513
+ * ]
514
+ * }
515
+ * @path {GET} /rest/api/3/issuesecurityschemes/search
516
+ * @scopes-current manage:jira-configuration
517
+ * @scopes-beta read:issue-security-level:jira, read:issue-security-scheme:jira
518
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-search-get
519
+ */
520
+ this.searchSecuritySchemes = ({ startAt, maxResults, id, projectId, } = {}) => {
521
+ return this.getClientInstance()
522
+ .request({
523
+ path: "/rest/api/3/issuesecurityschemes/search",
524
+ method: "GET",
525
+ query: {
526
+ startAt,
527
+ maxResults,
528
+ id,
529
+ projectId,
530
+ },
531
+ })
532
+ .then(this.getClientInstance().responseHandler({
533
+ 200: {
534
+ "application/json": "json",
535
+ },
536
+ }))
537
+ .then(commonHttpClient.castResponse())
538
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.searchSecuritySchemes.response"))
539
+ .then(commonHttpClient.getBody);
540
+ };
541
+ /**
542
+ * Sets default issue security levels for schemes.
543
+ *
544
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
545
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
546
+ *
547
+ * @returns Returned if the request is successful.
548
+ * @path {PUT} /rest/api/3/issuesecurityschemes/level/default
549
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-level-default-put
550
+ */
551
+ this.setDefaultLevels = ({ setDefaultLevelsRequest, }) => {
552
+ return this.getClientInstance()
553
+ .request({
554
+ path: "/rest/api/3/issuesecurityschemes/level/default",
555
+ method: "PUT",
556
+ headers: {
557
+ "Content-Type": "application/json",
558
+ },
559
+ body: setDefaultLevelsRequest,
560
+ })
561
+ .then(this.getClientInstance().responseHandler({
562
+ 204: {
563
+ "application/json": "json",
564
+ },
565
+ }))
566
+ .then(commonHttpClient.castResponse())
567
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.setDefaultLevels.response"))
568
+ .then(commonHttpClient.getBody);
569
+ };
570
+ /**
571
+ * Updates the issue security scheme.
572
+ *
573
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
574
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
575
+ *
576
+ * @returns Returned if the request is successful.
577
+ * @path {PUT} /rest/api/3/issuesecurityschemes/{id}
578
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-id-put
579
+ */
580
+ this.updateIssueSecurityScheme = ({ id, updateIssueSecuritySchemeRequestBean, }) => {
581
+ return this.getClientInstance()
582
+ .request({
583
+ path: "/rest/api/3/issuesecurityschemes/{id}",
584
+ method: "PUT",
585
+ pathParams: {
586
+ id,
587
+ },
588
+ headers: {
589
+ "Content-Type": "application/json",
590
+ },
591
+ body: updateIssueSecuritySchemeRequestBean,
592
+ })
593
+ .then(this.getClientInstance().responseHandler({
594
+ 204: {
595
+ "application/json": "json",
596
+ },
597
+ }))
598
+ .then(commonHttpClient.castResponse())
599
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.updateIssueSecurityScheme.response"))
600
+ .then(commonHttpClient.getBody);
601
+ };
602
+ /**
603
+ * Updates the issue security level.
604
+ *
605
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
606
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
607
+ *
608
+ * @returns Returned if the request is successful.
609
+ * @path {PUT} /rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}
610
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes#api-rest-api-3-issuesecurityschemes-schemeid-level-levelid-put
611
+ */
612
+ this.updateSecurityLevel = ({ schemeId, levelId, updateIssueSecurityLevelDetails, }) => {
613
+ return this.getClientInstance()
614
+ .request({
615
+ path: "/rest/api/3/issuesecurityschemes/{schemeId}/level/{levelId}",
616
+ method: "PUT",
617
+ pathParams: {
618
+ schemeId,
619
+ levelId,
620
+ },
621
+ headers: {
622
+ "Content-Type": "application/json",
623
+ },
624
+ body: updateIssueSecurityLevelDetails,
625
+ })
626
+ .then(this.getClientInstance().responseHandler({
627
+ 204: {
628
+ "application/json": "json",
629
+ },
630
+ }))
631
+ .then(commonHttpClient.castResponse())
632
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("IssueSecuritySchemesService.updateSecurityLevel.response"))
633
+ .then(commonHttpClient.getBody);
634
+ };
632
635
  }
633
636
  static initialize() {
634
637
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("IssueSecuritySchemesService.getIssueSecuritySchemes.response", zod_1.z