@resolution/jira-api-client 0.4.4 → 0.4.5

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 (326) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  5. package/lib/openapi/platform/models/common.d.ts +6 -0
  6. package/lib/openapi/platform/models/common.js +12 -1
  7. package/lib/openapi/platform/models/common.js.map +1 -1
  8. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  9. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  10. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  11. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  12. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  14. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  15. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  17. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  18. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  20. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  21. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  22. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  23. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  24. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  25. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  26. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  27. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  28. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  29. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  30. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  31. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  32. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  33. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  34. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  35. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  36. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  38. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  39. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  40. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  41. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  42. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  43. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  44. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  45. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  46. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  47. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  48. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  49. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  50. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  53. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  54. package/lib/openapi/platform/services/GroupsService.js +385 -382
  55. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  56. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  57. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  59. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  62. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  65. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  66. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  67. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  68. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  71. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  74. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  80. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  83. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  86. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  87. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  88. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  89. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  90. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  92. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  93. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  94. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  95. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  98. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  102. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  105. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  106. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  107. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  110. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  111. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  112. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  113. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  114. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  115. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  119. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  122. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  125. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  128. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  131. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  132. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  133. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  134. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  135. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  136. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  137. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  138. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  139. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  140. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  143. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  144. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  145. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  146. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  147. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  148. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  149. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  150. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  151. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  152. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  153. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  154. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  155. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  158. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  159. package/lib/openapi/platform/services/JqlService.js +635 -632
  160. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  161. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  162. package/lib/openapi/platform/services/LabelsService.js +41 -38
  163. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  164. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  165. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  166. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  167. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  168. package/lib/openapi/platform/services/MyselfService.js +321 -318
  169. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  170. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  171. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  172. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  173. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  174. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  175. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  176. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  177. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  178. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  179. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  180. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  182. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  183. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  185. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  188. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  189. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  190. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  191. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  192. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  193. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  194. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  195. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  197. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  200. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  203. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  204. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  206. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  209. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  210. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  211. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  212. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  213. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  214. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  215. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  216. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  217. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  218. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  219. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  220. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  221. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  222. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  223. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  224. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  227. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  228. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  229. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  230. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  231. package/lib/openapi/platform/services/ScreensService.js +281 -278
  232. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  233. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  235. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  236. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  237. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  238. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  239. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  240. package/lib/openapi/platform/services/StatusService.js +271 -268
  241. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  242. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  243. package/lib/openapi/platform/services/TasksService.js +93 -90
  244. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  245. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  246. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  247. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  248. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  249. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  251. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  252. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  253. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  254. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  255. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  256. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  257. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  258. package/lib/openapi/platform/services/UsersService.js +637 -634
  259. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  260. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  261. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  262. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  263. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  266. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  269. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  270. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  272. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  275. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  276. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  278. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  281. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  284. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  285. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  286. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  287. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  288. package/lib/openapi/software/services/BacklogService.js +81 -78
  289. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  290. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  291. package/lib/openapi/software/services/BoardService.js +2048 -2045
  292. package/lib/openapi/software/services/BoardService.js.map +1 -1
  293. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  294. package/lib/openapi/software/services/BuildsService.js +164 -161
  295. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  296. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  297. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  298. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  299. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  300. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  301. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  302. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  303. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  304. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  305. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  306. package/lib/openapi/software/services/EpicService.js +597 -594
  307. package/lib/openapi/software/services/EpicService.js.map +1 -1
  308. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  309. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  310. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  311. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  312. package/lib/openapi/software/services/IssueService.js +359 -356
  313. package/lib/openapi/software/services/IssueService.js.map +1 -1
  314. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  315. package/lib/openapi/software/services/OperationsService.js +301 -298
  316. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  317. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  318. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  319. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  320. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  321. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  322. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  323. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  324. package/lib/openapi/software/services/SprintService.js +594 -591
  325. package/lib/openapi/software/services/SprintService.js.map +1 -1
  326. package/package.json +4 -3
@@ -15,421 +15,418 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
15
15
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars
16
16
  */
17
17
  class AvatarsService extends CommonHttpService_1.CommonHttpService {
18
- /**
19
- * Deletes an avatar from a project or issue type.
20
- *
21
- * **[Permissions](#permissions) required:** *Administer Jira* [global
22
- * permission](https://confluence.atlassian.com/x/x4dKLg).
23
- *
24
- * @path {DELETE}
25
- * /rest/api/3/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}
26
- * @scopes-current manage:jira-configuration
27
- * @scopes-beta delete:avatar:jira
28
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-owningobjectid-avatar-id-delete
29
- */
30
- deleteAvatar({ type, owningObjectId, id, }) {
31
- return this.getClientInstance()
32
- .request({
33
- path: "/rest/api/3/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}",
34
- method: "DELETE",
35
- pathParams: {
36
- type,
37
- owningObjectId,
38
- id,
39
- },
40
- })
41
- .then(commonHttpClient.discardResult);
42
- }
43
- /**
44
- * Returns a list of system avatar details by owner type, where the owner types
45
- * are issue type, project, or user.
46
- *
47
- * This operation can be accessed anonymously.
48
- *
49
- * **[Permissions](#permissions) required:** None.
50
- *
51
- * @returns Returned if the request is successful.
52
- *
53
- * example: {
54
- * "system": [
55
- * {
56
- * "id": "1000",
57
- * "isDeletable": false,
58
- * "isSelected": false,
59
- * "isSystemAvatar": true,
60
- * "urls": {
61
- * "16x16":
62
- * "/secure/useravatar?size=xsmall&avatarId=10040&avatarType=project",
63
- * "24x24":
64
- * "/secure/useravatar?size=small&avatarId=10040&avatarType=project",
65
- * "32x32":
66
- * "/secure/useravatar?size=medium&avatarId=10040&avatarType=project",
67
- * "48x48": "/secure/useravatar?avatarId=10040&avatarType=project"
68
- * }
69
- * }
70
- * ]
71
- * }
72
- * @path {GET} /rest/api/3/avatar/{type}/system
73
- * @scopes-current manage:jira-configuration
74
- * @scopes-beta read:avatar:jira
75
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-avatar-type-system-get
76
- */
77
- getAllSystemAvatars({ type, }) {
78
- return this.getClientInstance()
79
- .request({
80
- path: "/rest/api/3/avatar/{type}/system",
81
- method: "GET",
82
- pathParams: {
83
- type,
84
- },
85
- })
86
- .then(this.getClientInstance().responseHandler({
87
- 200: {
88
- "application/json": "json",
89
- },
90
- }))
91
- .then(commonHttpClient.castResponse())
92
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAllSystemAvatars.response"))
93
- .then(commonHttpClient.getBody);
94
- }
95
- /**
96
- * Returns a project or issue type avatar image by ID.
97
- *
98
- * This operation can be accessed anonymously.
99
- *
100
- * **[Permissions](#permissions) required:**
101
- *
102
- * * For system avatars, none.
103
- * * For custom project avatars, *Browse projects* [project
104
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
105
- * avatar belongs to.
106
- * * For custom issue type avatars, *Browse projects* [project
107
- * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
108
- * the issue type is used in.
109
- *
110
- * @returns * status: 200, mediaType: * /*
111
- *
112
- * Returned if the request is successful.
113
- *
114
- * * status: 200, mediaType: application/json
115
- *
116
- * Returned if the request is successful.
117
- *
118
- * * status: 200, mediaType: image/png
119
- *
120
- * Returned if the request is successful.
121
- *
122
- * * status: 200, mediaType: image/svg+xml
123
- *
124
- * Returned if the request is successful.
125
- * @path {GET} /rest/api/3/universal_avatar/view/type/{type}/avatar/{id}
126
- * @scopes-current read:jira-work
127
- * @scopes-beta read:avatar:jira
128
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-avatar-id-get
129
- */
130
- getAvatarImageById({ type, id, size, format, }) {
131
- return this.getClientInstance()
132
- .request({
133
- path: "/rest/api/3/universal_avatar/view/type/{type}/avatar/{id}",
134
- method: "GET",
135
- pathParams: {
136
- type,
137
- id,
138
- },
139
- query: {
140
- size,
141
- format,
142
- },
143
- })
144
- .then(this.getClientInstance().responseHandler({
145
- 200: {
146
- "*/*": "blob",
147
- "application/json": "json",
148
- "image/png": "blob",
149
- "image/svg+xml": "blob",
150
- },
151
- }))
152
- .then(commonHttpClient.castResponse())
153
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByID.response"));
154
- }
155
- /**
156
- * Returns the avatar image for a project or issue type.
157
- *
158
- * This operation can be accessed anonymously.
159
- *
160
- * **[Permissions](#permissions) required:**
161
- *
162
- * * For system avatars, none.
163
- * * For custom project avatars, *Browse projects* [project
164
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
165
- * avatar belongs to.
166
- * * For custom issue type avatars, *Browse projects* [project
167
- * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
168
- * the issue type is used in.
169
- *
170
- * @returns * status: 200, mediaType: * /*
171
- *
172
- * Returned if the request is successful.
173
- *
174
- * * status: 200, mediaType: application/json
175
- *
176
- * Returned if the request is successful.
177
- *
178
- * * status: 200, mediaType: image/png
179
- *
180
- * Returned if the request is successful.
181
- *
182
- * * status: 200, mediaType: image/svg+xml
183
- *
184
- * Returned if the request is successful.
185
- * @path {GET} /rest/api/3/universal_avatar/view/type/{type}/owner/{entityId}
186
- * @scopes-current read:jira-work
187
- * @scopes-beta read:avatar:jira
188
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-owner-entityid-get
189
- */
190
- getAvatarImageByOwner({ type, entityId, size, format, }) {
191
- return this.getClientInstance()
192
- .request({
193
- path: "/rest/api/3/universal_avatar/view/type/{type}/owner/{entityId}",
194
- method: "GET",
195
- pathParams: {
196
- type,
197
- entityId,
198
- },
199
- query: {
200
- size,
201
- format,
202
- },
203
- })
204
- .then(this.getClientInstance().responseHandler({
205
- 200: {
206
- "*/*": "blob",
207
- "application/json": "json",
208
- "image/png": "blob",
209
- "image/svg+xml": "blob",
210
- },
211
- }))
212
- .then(commonHttpClient.castResponse())
213
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByOwner.response"));
214
- }
215
- /**
216
- * Returns the default project or issue type avatar image.
217
- *
218
- * This operation can be accessed anonymously.
219
- *
220
- * **[Permissions](#permissions) required:** None.
221
- *
222
- * @returns * status: 200, mediaType: * /*
223
- *
224
- * Returned if the request is successful.
225
- *
226
- * * status: 200, mediaType: application/json
227
- *
228
- * Returned if the request is successful.
229
- *
230
- * * status: 200, mediaType: image/png
231
- *
232
- * Returned if the request is successful.
233
- *
234
- * * status: 200, mediaType: image/svg+xml
235
- *
236
- * Returned if the request is successful.
237
- * @path {GET} /rest/api/3/universal_avatar/view/type/{type}
238
- * @scopes-current read:jira-work
239
- * @scopes-beta read:avatar:jira
240
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-get
241
- */
242
- getAvatarImageByType({ type, size, format, }) {
243
- return this.getClientInstance()
244
- .request({
245
- path: "/rest/api/3/universal_avatar/view/type/{type}",
246
- method: "GET",
247
- pathParams: {
248
- type,
249
- },
250
- query: {
251
- size,
252
- format,
253
- },
254
- })
255
- .then(this.getClientInstance().responseHandler({
256
- 200: {
257
- "*/*": "blob",
258
- "application/json": "json",
259
- "image/png": "blob",
260
- "image/svg+xml": "blob",
261
- },
262
- }))
263
- .then(commonHttpClient.castResponse())
264
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByType.response"));
265
- }
266
- /**
267
- * Returns the system and custom avatars for a project or issue type.
268
- *
269
- * This operation can be accessed anonymously.
270
- *
271
- * **[Permissions](#permissions) required:**
272
- *
273
- * * for custom project avatars, *Browse projects* [project
274
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
275
- * avatar belongs to.
276
- * * for custom issue type avatars, *Browse projects* [project
277
- * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
278
- * the issue type is used in.
279
- * * for system avatars, none.
280
- *
281
- * @returns Returned if the request is successful.
282
- *
283
- * example: {
284
- * "custom": [
285
- * {
286
- * "id": "1010",
287
- * "isDeletable": true,
288
- * "isSelected": false,
289
- * "isSystemAvatar": false,
290
- * "urls": {
291
- * "16x16":
292
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10080&avatarType=project",
293
- * "24x24":
294
- * "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10080&avatarType=project",
295
- * "32x32":
296
- * "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10080&avatarType=project",
297
- * "48x48":
298
- * "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10080&avatarType=project"
299
- * }
300
- * }
301
- * ],
302
- * "system": [
303
- * {
304
- * "id": "1000",
305
- * "isDeletable": false,
306
- * "isSelected": false,
307
- * "isSystemAvatar": true,
308
- * "urls": {
309
- * "16x16":
310
- * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10040&avatarType=project",
311
- * "24x24":
312
- * "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10040&avatarType=project",
313
- * "32x32":
314
- * "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10040&avatarType=project",
315
- * "48x48":
316
- * "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10040&avatarType=project"
317
- * }
318
- * }
319
- * ]
320
- * }
321
- * @path {GET} /rest/api/3/universal_avatar/type/{type}/owner/{entityId}
322
- * @scopes-current manage:jira-configuration
323
- * @scopes-beta read:avatar:jira
324
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-entityid-get
325
- */
326
- getAvatars({ type, entityId, }) {
327
- return this.getClientInstance()
328
- .request({
329
- path: "/rest/api/3/universal_avatar/type/{type}/owner/{entityId}",
330
- method: "GET",
331
- pathParams: {
332
- type,
333
- entityId,
334
- },
335
- })
336
- .then(this.getClientInstance().responseHandler({
337
- 200: {
338
- "application/json": "json",
339
- },
340
- }))
341
- .then(commonHttpClient.castResponse())
342
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatars.response"))
343
- .then(commonHttpClient.getBody);
344
- }
345
- /**
346
- * Loads a custom avatar for a project or issue type.
347
- *
348
- * Specify the avatar's local file location in the body of the request. Also,
349
- * include the following headers:
350
- *
351
- * * `X-Atlassian-Token: no-check` To prevent XSRF protection blocking the
352
- * request, for more information see [Special Headers](#special-request-headers).
353
- * * `Content-Type: image/image type` Valid image types are JPEG, GIF, or PNG.
354
- *
355
- * For example:
356
- * `curl --request POST `
357
- *
358
- * `--user email@example.com:<api_token> `
359
- *
360
- * `--header 'X-Atlassian-Token: no-check' `
361
- *
362
- * `--header 'Content-Type: image/< image_type>' `
363
- *
364
- * `--data-binary "<@/path/to/file/with/your/avatar>" `
365
- *
366
- * `--url
367
- * 'https://your-domain.atlassian.net/rest/api/3/universal_avatar/type/{type}/owner/{entityId}'`
368
- *
369
- * The avatar is cropped to a square. If no crop parameters are specified, the
370
- * square originates at the top left of the image. The length of the square's
371
- * sides is set to the smaller of the height or width of the image.
372
- *
373
- * The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and
374
- * 48x48 in size.
375
- *
376
- * After creating the avatar use:
377
- *
378
- * * [Update issue type](#api-rest-api-3-issuetype-id-put) to set it as the
379
- * issue type's displayed avatar.
380
- * * [Set project avatar](#api-rest-api-3-project-projectIdOrKey-avatar-put) to
381
- * set it as the project's displayed avatar.
382
- *
383
- * **[Permissions](#permissions) required:** *Administer Jira* [global
384
- * permission](https://confluence.atlassian.com/x/x4dKLg).
385
- *
386
- * @returns Returned if the request is successful.
387
- *
388
- * example: {
389
- * "id": "1000",
390
- * "isDeletable": false,
391
- * "isSelected": false,
392
- * "isSystemAvatar": true,
393
- * "urls": {
394
- * "16x16": "/secure/useravatar?size=xsmall&avatarId=10040&avatarType=project",
395
- * "24x24": "/secure/useravatar?size=small&avatarId=10040&avatarType=project",
396
- * "32x32": "/secure/useravatar?size=medium&avatarId=10040&avatarType=project",
397
- * "48x48": "/secure/useravatar?avatarId=10040&avatarType=project"
398
- * }
399
- * }
400
- * @path {POST} /rest/api/3/universal_avatar/type/{type}/owner/{entityId}
401
- * @scopes-current manage:jira-configuration
402
- * @scopes-beta write:avatar:jira, read:avatar:jira
403
- * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-entityid-post
404
- */
405
- storeAvatar({ type, entityId, x, y, size, mediaType, requestBody, }) {
406
- return this.getClientInstance()
407
- .request({
408
- path: "/rest/api/3/universal_avatar/type/{type}/owner/{entityId}",
409
- method: "POST",
410
- pathParams: {
411
- type,
412
- entityId,
413
- },
414
- query: {
415
- x,
416
- y,
417
- size,
418
- },
419
- headers: {
420
- "X-Atlassian-Token": "nocheck",
421
- "Content-Type": mediaType,
422
- },
423
- body: requestBody,
424
- })
425
- .then(this.getClientInstance().responseHandler({
426
- 201: {
427
- "application/json": "json",
428
- },
429
- }))
430
- .then(commonHttpClient.castResponse())
431
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.storeAvatar.response"))
432
- .then(commonHttpClient.getBody);
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * Deletes an avatar from a project or issue type.
22
+ *
23
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
24
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
25
+ *
26
+ * @path {DELETE}
27
+ * /rest/api/3/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}
28
+ * @scopes-current manage:jira-configuration
29
+ * @scopes-beta delete:avatar:jira
30
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-owningobjectid-avatar-id-delete
31
+ */
32
+ this.deleteAvatar = ({ type, owningObjectId, id, }) => {
33
+ return this.getClientInstance()
34
+ .request({
35
+ path: "/rest/api/3/universal_avatar/type/{type}/owner/{owningObjectId}/avatar/{id}",
36
+ method: "DELETE",
37
+ pathParams: {
38
+ type,
39
+ owningObjectId,
40
+ id,
41
+ },
42
+ })
43
+ .then(commonHttpClient.discardResult);
44
+ };
45
+ /**
46
+ * Returns a list of system avatar details by owner type, where the owner types
47
+ * are issue type, project, or user.
48
+ *
49
+ * This operation can be accessed anonymously.
50
+ *
51
+ * **[Permissions](#permissions) required:** None.
52
+ *
53
+ * @returns Returned if the request is successful.
54
+ *
55
+ * example: {
56
+ * "system": [
57
+ * {
58
+ * "id": "1000",
59
+ * "isDeletable": false,
60
+ * "isSelected": false,
61
+ * "isSystemAvatar": true,
62
+ * "urls": {
63
+ * "16x16":
64
+ * "/secure/useravatar?size=xsmall&avatarId=10040&avatarType=project",
65
+ * "24x24":
66
+ * "/secure/useravatar?size=small&avatarId=10040&avatarType=project",
67
+ * "32x32":
68
+ * "/secure/useravatar?size=medium&avatarId=10040&avatarType=project",
69
+ * "48x48": "/secure/useravatar?avatarId=10040&avatarType=project"
70
+ * }
71
+ * }
72
+ * ]
73
+ * }
74
+ * @path {GET} /rest/api/3/avatar/{type}/system
75
+ * @scopes-current manage:jira-configuration
76
+ * @scopes-beta read:avatar:jira
77
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-avatar-type-system-get
78
+ */
79
+ this.getAllSystemAvatars = ({ type, }) => {
80
+ return this.getClientInstance()
81
+ .request({
82
+ path: "/rest/api/3/avatar/{type}/system",
83
+ method: "GET",
84
+ pathParams: {
85
+ type,
86
+ },
87
+ })
88
+ .then(this.getClientInstance().responseHandler({
89
+ 200: {
90
+ "application/json": "json",
91
+ },
92
+ }))
93
+ .then(commonHttpClient.castResponse())
94
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAllSystemAvatars.response"))
95
+ .then(commonHttpClient.getBody);
96
+ };
97
+ /**
98
+ * Returns a project or issue type avatar image by ID.
99
+ *
100
+ * This operation can be accessed anonymously.
101
+ *
102
+ * **[Permissions](#permissions) required:**
103
+ *
104
+ * * For system avatars, none.
105
+ * * For custom project avatars, *Browse projects* [project
106
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
107
+ * avatar belongs to.
108
+ * * For custom issue type avatars, *Browse projects* [project
109
+ * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
110
+ * the issue type is used in.
111
+ *
112
+ * @returns * status: 200, mediaType: * /*
113
+ *
114
+ * Returned if the request is successful.
115
+ *
116
+ * * status: 200, mediaType: application/json
117
+ *
118
+ * Returned if the request is successful.
119
+ *
120
+ * * status: 200, mediaType: image/png
121
+ *
122
+ * Returned if the request is successful.
123
+ *
124
+ * * status: 200, mediaType: image/svg+xml
125
+ *
126
+ * Returned if the request is successful.
127
+ * @path {GET} /rest/api/3/universal_avatar/view/type/{type}/avatar/{id}
128
+ * @scopes-current read:jira-work
129
+ * @scopes-beta read:avatar:jira
130
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-avatar-id-get
131
+ */
132
+ this.getAvatarImageById = ({ type, id, size, format, }) => {
133
+ return this.getClientInstance()
134
+ .request({
135
+ path: "/rest/api/3/universal_avatar/view/type/{type}/avatar/{id}",
136
+ method: "GET",
137
+ pathParams: {
138
+ type,
139
+ id,
140
+ },
141
+ query: {
142
+ size,
143
+ format,
144
+ },
145
+ })
146
+ .then(this.getClientInstance().responseHandler({
147
+ 200: {
148
+ "*/*": "blob",
149
+ "application/json": "json",
150
+ "image/png": "blob",
151
+ "image/svg+xml": "blob",
152
+ },
153
+ }))
154
+ .then(commonHttpClient.castResponse())
155
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByID.response"));
156
+ };
157
+ /**
158
+ * Returns the avatar image for a project or issue type.
159
+ *
160
+ * This operation can be accessed anonymously.
161
+ *
162
+ * **[Permissions](#permissions) required:**
163
+ *
164
+ * * For system avatars, none.
165
+ * * For custom project avatars, *Browse projects* [project
166
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
167
+ * avatar belongs to.
168
+ * * For custom issue type avatars, *Browse projects* [project
169
+ * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
170
+ * the issue type is used in.
171
+ *
172
+ * @returns * status: 200, mediaType: * /*
173
+ *
174
+ * Returned if the request is successful.
175
+ *
176
+ * * status: 200, mediaType: application/json
177
+ *
178
+ * Returned if the request is successful.
179
+ *
180
+ * * status: 200, mediaType: image/png
181
+ *
182
+ * Returned if the request is successful.
183
+ *
184
+ * * status: 200, mediaType: image/svg+xml
185
+ *
186
+ * Returned if the request is successful.
187
+ * @path {GET} /rest/api/3/universal_avatar/view/type/{type}/owner/{entityId}
188
+ * @scopes-current read:jira-work
189
+ * @scopes-beta read:avatar:jira
190
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-owner-entityid-get
191
+ */
192
+ this.getAvatarImageByOwner = ({ type, entityId, size, format, }) => {
193
+ return this.getClientInstance()
194
+ .request({
195
+ path: "/rest/api/3/universal_avatar/view/type/{type}/owner/{entityId}",
196
+ method: "GET",
197
+ pathParams: {
198
+ type,
199
+ entityId,
200
+ },
201
+ query: {
202
+ size,
203
+ format,
204
+ },
205
+ })
206
+ .then(this.getClientInstance().responseHandler({
207
+ 200: {
208
+ "*/*": "blob",
209
+ "application/json": "json",
210
+ "image/png": "blob",
211
+ "image/svg+xml": "blob",
212
+ },
213
+ }))
214
+ .then(commonHttpClient.castResponse())
215
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByOwner.response"));
216
+ };
217
+ /**
218
+ * Returns the default project or issue type avatar image.
219
+ *
220
+ * This operation can be accessed anonymously.
221
+ *
222
+ * **[Permissions](#permissions) required:** None.
223
+ *
224
+ * @returns * status: 200, mediaType: * /*
225
+ *
226
+ * Returned if the request is successful.
227
+ *
228
+ * * status: 200, mediaType: application/json
229
+ *
230
+ * Returned if the request is successful.
231
+ *
232
+ * * status: 200, mediaType: image/png
233
+ *
234
+ * Returned if the request is successful.
235
+ *
236
+ * * status: 200, mediaType: image/svg+xml
237
+ *
238
+ * Returned if the request is successful.
239
+ * @path {GET} /rest/api/3/universal_avatar/view/type/{type}
240
+ * @scopes-current read:jira-work
241
+ * @scopes-beta read:avatar:jira
242
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-view-type-type-get
243
+ */
244
+ this.getAvatarImageByType = ({ type, size, format, }) => {
245
+ return this.getClientInstance()
246
+ .request({
247
+ path: "/rest/api/3/universal_avatar/view/type/{type}",
248
+ method: "GET",
249
+ pathParams: {
250
+ type,
251
+ },
252
+ query: {
253
+ size,
254
+ format,
255
+ },
256
+ })
257
+ .then(this.getClientInstance().responseHandler({
258
+ 200: {
259
+ "*/*": "blob",
260
+ "application/json": "json",
261
+ "image/png": "blob",
262
+ "image/svg+xml": "blob",
263
+ },
264
+ }))
265
+ .then(commonHttpClient.castResponse())
266
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatarImageByType.response"));
267
+ };
268
+ /**
269
+ * Returns the system and custom avatars for a project or issue type.
270
+ *
271
+ * This operation can be accessed anonymously.
272
+ *
273
+ * **[Permissions](#permissions) required:**
274
+ *
275
+ * * for custom project avatars, *Browse projects* [project
276
+ * permission](https://confluence.atlassian.com/x/yodKLg) for the project the
277
+ * avatar belongs to.
278
+ * * for custom issue type avatars, *Browse projects* [project
279
+ * permission](https://confluence.atlassian.com/x/yodKLg) for at least one project
280
+ * the issue type is used in.
281
+ * * for system avatars, none.
282
+ *
283
+ * @returns Returned if the request is successful.
284
+ *
285
+ * example: {
286
+ * "custom": [
287
+ * {
288
+ * "id": "1010",
289
+ * "isDeletable": true,
290
+ * "isSelected": false,
291
+ * "isSystemAvatar": false,
292
+ * "urls": {
293
+ * "16x16":
294
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10080&avatarType=project",
295
+ * "24x24":
296
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10080&avatarType=project",
297
+ * "32x32":
298
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10080&avatarType=project",
299
+ * "48x48":
300
+ * "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10080&avatarType=project"
301
+ * }
302
+ * }
303
+ * ],
304
+ * "system": [
305
+ * {
306
+ * "id": "1000",
307
+ * "isDeletable": false,
308
+ * "isSelected": false,
309
+ * "isSystemAvatar": true,
310
+ * "urls": {
311
+ * "16x16":
312
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10040&avatarType=project",
313
+ * "24x24":
314
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=small&avatarId=10040&avatarType=project",
315
+ * "32x32":
316
+ * "https://your-domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10040&avatarType=project",
317
+ * "48x48":
318
+ * "https://your-domain.atlassian.net/secure/viewavatar?avatarId=10040&avatarType=project"
319
+ * }
320
+ * }
321
+ * ]
322
+ * }
323
+ * @path {GET} /rest/api/3/universal_avatar/type/{type}/owner/{entityId}
324
+ * @scopes-current manage:jira-configuration
325
+ * @scopes-beta read:avatar:jira
326
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-entityid-get
327
+ */
328
+ this.getAvatars = ({ type, entityId, }) => {
329
+ return this.getClientInstance()
330
+ .request({
331
+ path: "/rest/api/3/universal_avatar/type/{type}/owner/{entityId}",
332
+ method: "GET",
333
+ pathParams: {
334
+ type,
335
+ entityId,
336
+ },
337
+ })
338
+ .then(this.getClientInstance().responseHandler({
339
+ 200: {
340
+ "application/json": "json",
341
+ },
342
+ }))
343
+ .then(commonHttpClient.castResponse())
344
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.getAvatars.response"))
345
+ .then(commonHttpClient.getBody);
346
+ };
347
+ /**
348
+ * Loads a custom avatar for a project or issue type.
349
+ *
350
+ * Specify the avatar's local file location in the body of the request. Also,
351
+ * include the following headers:
352
+ *
353
+ * * `X-Atlassian-Token: no-check` To prevent XSRF protection blocking the
354
+ * request, for more information see [Special Headers](#special-request-headers).
355
+ * * `Content-Type: image/image type` Valid image types are JPEG, GIF, or PNG.
356
+ *
357
+ * For example:
358
+ * `curl --request POST `
359
+ *
360
+ * `--user email@example.com:<api_token> `
361
+ *
362
+ * `--header 'X-Atlassian-Token: no-check' `
363
+ *
364
+ * `--header 'Content-Type: image/< image_type>' `
365
+ *
366
+ * `--data-binary "<@/path/to/file/with/your/avatar>" `
367
+ *
368
+ * `--url
369
+ * 'https://your-domain.atlassian.net/rest/api/3/universal_avatar/type/{type}/owner/{entityId}'`
370
+ *
371
+ * The avatar is cropped to a square. If no crop parameters are specified, the
372
+ * square originates at the top left of the image. The length of the square's
373
+ * sides is set to the smaller of the height or width of the image.
374
+ *
375
+ * The cropped image is then used to create avatars of 16x16, 24x24, 32x32, and
376
+ * 48x48 in size.
377
+ *
378
+ * After creating the avatar use:
379
+ *
380
+ * * [Update issue type](#api-rest-api-3-issuetype-id-put) to set it as the
381
+ * issue type's displayed avatar.
382
+ * * [Set project avatar](#api-rest-api-3-project-projectIdOrKey-avatar-put) to
383
+ * set it as the project's displayed avatar.
384
+ *
385
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
386
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
387
+ *
388
+ * @returns Returned if the request is successful.
389
+ *
390
+ * example: {
391
+ * "id": "1010",
392
+ * "isDeletable": true,
393
+ * "isSelected": false,
394
+ * "isSystemAvatar": false
395
+ * }
396
+ * @path {POST} /rest/api/3/universal_avatar/type/{type}/owner/{entityId}
397
+ * @scopes-current manage:jira-configuration
398
+ * @scopes-beta write:avatar:jira, read:avatar:jira
399
+ * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars#api-rest-api-3-universal-avatar-type-type-owner-entityid-post
400
+ */
401
+ this.storeAvatar = ({ type, entityId, x, y, size, mediaType, requestBody, }) => {
402
+ return this.getClientInstance()
403
+ .request({
404
+ path: "/rest/api/3/universal_avatar/type/{type}/owner/{entityId}",
405
+ method: "POST",
406
+ pathParams: {
407
+ type,
408
+ entityId,
409
+ },
410
+ query: {
411
+ x,
412
+ y,
413
+ size,
414
+ },
415
+ headers: {
416
+ "X-Atlassian-Token": "nocheck",
417
+ "Content-Type": mediaType,
418
+ },
419
+ body: requestBody,
420
+ })
421
+ .then(this.getClientInstance().responseHandler({
422
+ 201: {
423
+ "application/json": "json",
424
+ },
425
+ }))
426
+ .then(commonHttpClient.castResponse())
427
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AvatarsService.storeAvatar.response"))
428
+ .then(commonHttpClient.getBody);
429
+ };
433
430
  }
434
431
  static initialize() {
435
432
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AvatarsService.getAllSystemAvatars.response", zod_1.z