@resolution/jira-api-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (785) hide show
  1. package/.eslintrc.js +3 -0
  2. package/CHANGELOG.md +11 -0
  3. package/LICENSE.md +19 -0
  4. package/README.md +12 -0
  5. package/config/api-typescript-generator.config.ts +91 -0
  6. package/config/compare-schemas.ts +307 -0
  7. package/lib/index.d.ts +15 -0
  8. package/lib/index.js +25 -0
  9. package/lib/index.js.map +1 -0
  10. package/lib/openapi/platform/base-jira-platform-api-client.d.ts +868 -0
  11. package/lib/openapi/platform/base-jira-platform-api-client.js +808 -0
  12. package/lib/openapi/platform/base-jira-platform-api-client.js.map +1 -0
  13. package/lib/openapi/platform/core/common-http-client.d.ts +196 -0
  14. package/lib/openapi/platform/core/common-http-client.js +390 -0
  15. package/lib/openapi/platform/core/common-http-client.js.map +1 -0
  16. package/lib/openapi/platform/core/common-http-service.d.ts +7 -0
  17. package/lib/openapi/platform/core/common-http-service.js +20 -0
  18. package/lib/openapi/platform/core/common-http-service.js.map +1 -0
  19. package/lib/openapi/platform/core/common-validation-schema-storage.d.ts +35 -0
  20. package/lib/openapi/platform/core/common-validation-schema-storage.js +65 -0
  21. package/lib/openapi/platform/core/common-validation-schema-storage.js.map +1 -0
  22. package/lib/openapi/platform/models/announcement-banner.d.ts +27 -0
  23. package/lib/openapi/platform/models/announcement-banner.js +30 -0
  24. package/lib/openapi/platform/models/announcement-banner.js.map +1 -0
  25. package/lib/openapi/platform/models/app-data-policies.d.ts +31 -0
  26. package/lib/openapi/platform/models/app-data-policies.js +40 -0
  27. package/lib/openapi/platform/models/app-data-policies.js.map +1 -0
  28. package/lib/openapi/platform/models/app-migration.d.ts +86 -0
  29. package/lib/openapi/platform/models/app-migration.js +67 -0
  30. package/lib/openapi/platform/models/app-migration.js.map +1 -0
  31. package/lib/openapi/platform/models/app-properties.d.ts +15 -0
  32. package/lib/openapi/platform/models/app-properties.js +18 -0
  33. package/lib/openapi/platform/models/app-properties.js.map +1 -0
  34. package/lib/openapi/platform/models/audit-records.d.ts +70 -0
  35. package/lib/openapi/platform/models/audit-records.js +62 -0
  36. package/lib/openapi/platform/models/audit-records.js.map +1 -0
  37. package/lib/openapi/platform/models/avatars.d.ts +18 -0
  38. package/lib/openapi/platform/models/avatars.js +27 -0
  39. package/lib/openapi/platform/models/avatars.js.map +1 -0
  40. package/lib/openapi/platform/models/classification-levels.d.ts +25 -0
  41. package/lib/openapi/platform/models/classification-levels.js +31 -0
  42. package/lib/openapi/platform/models/classification-levels.js.map +1 -0
  43. package/lib/openapi/platform/models/common.d.ts +1490 -0
  44. package/lib/openapi/platform/models/common.js +937 -0
  45. package/lib/openapi/platform/models/common.js.map +1 -0
  46. package/lib/openapi/platform/models/dashboards.d.ts +414 -0
  47. package/lib/openapi/platform/models/dashboards.js +325 -0
  48. package/lib/openapi/platform/models/dashboards.js.map +1 -0
  49. package/lib/openapi/platform/models/dynamic-modules.d.ts +92 -0
  50. package/lib/openapi/platform/models/dynamic-modules.js +24 -0
  51. package/lib/openapi/platform/models/dynamic-modules.js.map +1 -0
  52. package/lib/openapi/platform/models/filter-sharing.d.ts +59 -0
  53. package/lib/openapi/platform/models/filter-sharing.js +36 -0
  54. package/lib/openapi/platform/models/filter-sharing.js.map +1 -0
  55. package/lib/openapi/platform/models/filters.d.ts +183 -0
  56. package/lib/openapi/platform/models/filters.js +115 -0
  57. package/lib/openapi/platform/models/filters.js.map +1 -0
  58. package/lib/openapi/platform/models/group-and-user-picker.d.ts +49 -0
  59. package/lib/openapi/platform/models/group-and-user-picker.js +31 -0
  60. package/lib/openapi/platform/models/group-and-user-picker.js.map +1 -0
  61. package/lib/openapi/platform/models/groups.d.ts +127 -0
  62. package/lib/openapi/platform/models/groups.js +98 -0
  63. package/lib/openapi/platform/models/groups.js.map +1 -0
  64. package/lib/openapi/platform/models/issue-attachments.d.ts +124 -0
  65. package/lib/openapi/platform/models/issue-attachments.js +129 -0
  66. package/lib/openapi/platform/models/issue-attachments.js.map +1 -0
  67. package/lib/openapi/platform/models/issue-comment-properties.d.ts +10 -0
  68. package/lib/openapi/platform/models/issue-comment-properties.js +18 -0
  69. package/lib/openapi/platform/models/issue-comment-properties.js.map +1 -0
  70. package/lib/openapi/platform/models/issue-comments.d.ts +36 -0
  71. package/lib/openapi/platform/models/issue-comments.js +49 -0
  72. package/lib/openapi/platform/models/issue-comments.js.map +1 -0
  73. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.d.ts +36 -0
  74. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js +53 -0
  75. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js.map +1 -0
  76. package/lib/openapi/platform/models/issue-custom-field-contexts.d.ts +417 -0
  77. package/lib/openapi/platform/models/issue-custom-field-contexts.js +458 -0
  78. package/lib/openapi/platform/models/issue-custom-field-contexts.js.map +1 -0
  79. package/lib/openapi/platform/models/issue-custom-field-options-apps.d.ts +119 -0
  80. package/lib/openapi/platform/models/issue-custom-field-options-apps.js +133 -0
  81. package/lib/openapi/platform/models/issue-custom-field-options-apps.js.map +1 -0
  82. package/lib/openapi/platform/models/issue-custom-field-options.d.ts +136 -0
  83. package/lib/openapi/platform/models/issue-custom-field-options.js +115 -0
  84. package/lib/openapi/platform/models/issue-custom-field-options.js.map +1 -0
  85. package/lib/openapi/platform/models/issue-custom-field-values-apps.d.ts +66 -0
  86. package/lib/openapi/platform/models/issue-custom-field-values-apps.js +42 -0
  87. package/lib/openapi/platform/models/issue-custom-field-values-apps.js.map +1 -0
  88. package/lib/openapi/platform/models/issue-field-configurations.d.ts +194 -0
  89. package/lib/openapi/platform/models/issue-field-configurations.js +182 -0
  90. package/lib/openapi/platform/models/issue-field-configurations.js.map +1 -0
  91. package/lib/openapi/platform/models/issue-fields.d.ts +227 -0
  92. package/lib/openapi/platform/models/issue-fields.js +119 -0
  93. package/lib/openapi/platform/models/issue-fields.js.map +1 -0
  94. package/lib/openapi/platform/models/issue-link-types.d.ts +9 -0
  95. package/lib/openapi/platform/models/issue-link-types.js +21 -0
  96. package/lib/openapi/platform/models/issue-link-types.js.map +1 -0
  97. package/lib/openapi/platform/models/issue-links.d.ts +90 -0
  98. package/lib/openapi/platform/models/issue-links.js +74 -0
  99. package/lib/openapi/platform/models/issue-links.js.map +1 -0
  100. package/lib/openapi/platform/models/issue-notification-schemes.d.ts +158 -0
  101. package/lib/openapi/platform/models/issue-notification-schemes.js +147 -0
  102. package/lib/openapi/platform/models/issue-notification-schemes.js.map +1 -0
  103. package/lib/openapi/platform/models/issue-priorities.d.ts +74 -0
  104. package/lib/openapi/platform/models/issue-priorities.js +89 -0
  105. package/lib/openapi/platform/models/issue-priorities.js.map +1 -0
  106. package/lib/openapi/platform/models/issue-properties.d.ts +80 -0
  107. package/lib/openapi/platform/models/issue-properties.js +158 -0
  108. package/lib/openapi/platform/models/issue-properties.js.map +1 -0
  109. package/lib/openapi/platform/models/issue-remote-links.d.ts +120 -0
  110. package/lib/openapi/platform/models/issue-remote-links.js +70 -0
  111. package/lib/openapi/platform/models/issue-remote-links.js.map +1 -0
  112. package/lib/openapi/platform/models/issue-resolutions.d.ts +81 -0
  113. package/lib/openapi/platform/models/issue-resolutions.js +79 -0
  114. package/lib/openapi/platform/models/issue-resolutions.js.map +1 -0
  115. package/lib/openapi/platform/models/issue-search.d.ts +196 -0
  116. package/lib/openapi/platform/models/issue-search.js +136 -0
  117. package/lib/openapi/platform/models/issue-search.js.map +1 -0
  118. package/lib/openapi/platform/models/issue-security-level.d.ts +36 -0
  119. package/lib/openapi/platform/models/issue-security-level.js +36 -0
  120. package/lib/openapi/platform/models/issue-security-level.js.map +1 -0
  121. package/lib/openapi/platform/models/issue-security-schemes.d.ts +214 -0
  122. package/lib/openapi/platform/models/issue-security-schemes.js +211 -0
  123. package/lib/openapi/platform/models/issue-security-schemes.js.map +1 -0
  124. package/lib/openapi/platform/models/issue-type-schemes.d.ts +146 -0
  125. package/lib/openapi/platform/models/issue-type-schemes.js +115 -0
  126. package/lib/openapi/platform/models/issue-type-schemes.js.map +1 -0
  127. package/lib/openapi/platform/models/issue-type-screen-schemes.d.ts +139 -0
  128. package/lib/openapi/platform/models/issue-type-screen-schemes.js +109 -0
  129. package/lib/openapi/platform/models/issue-type-screen-schemes.js.map +1 -0
  130. package/lib/openapi/platform/models/issue-types.d.ts +36 -0
  131. package/lib/openapi/platform/models/issue-types.js +28 -0
  132. package/lib/openapi/platform/models/issue-types.js.map +1 -0
  133. package/lib/openapi/platform/models/issue-votes.d.ts +18 -0
  134. package/lib/openapi/platform/models/issue-votes.js +22 -0
  135. package/lib/openapi/platform/models/issue-votes.js.map +1 -0
  136. package/lib/openapi/platform/models/issue-watchers.d.ts +27 -0
  137. package/lib/openapi/platform/models/issue-watchers.js +36 -0
  138. package/lib/openapi/platform/models/issue-watchers.js.map +1 -0
  139. package/lib/openapi/platform/models/issue-worklogs.d.ts +93 -0
  140. package/lib/openapi/platform/models/issue-worklogs.js +80 -0
  141. package/lib/openapi/platform/models/issue-worklogs.js.map +1 -0
  142. package/lib/openapi/platform/models/issues.d.ts +583 -0
  143. package/lib/openapi/platform/models/issues.js +545 -0
  144. package/lib/openapi/platform/models/issues.js.map +1 -0
  145. package/lib/openapi/platform/models/jira-expressions.d.ts +329 -0
  146. package/lib/openapi/platform/models/jira-expressions.js +180 -0
  147. package/lib/openapi/platform/models/jira-expressions.js.map +1 -0
  148. package/lib/openapi/platform/models/jira-settings.d.ts +62 -0
  149. package/lib/openapi/platform/models/jira-settings.js +49 -0
  150. package/lib/openapi/platform/models/jira-settings.js.map +1 -0
  151. package/lib/openapi/platform/models/jql-functions-apps.d.ts +61 -0
  152. package/lib/openapi/platform/models/jql-functions-apps.js +57 -0
  153. package/lib/openapi/platform/models/jql-functions-apps.js.map +1 -0
  154. package/lib/openapi/platform/models/jql.d.ts +348 -0
  155. package/lib/openapi/platform/models/jql.js +309 -0
  156. package/lib/openapi/platform/models/jql.js.map +1 -0
  157. package/lib/openapi/platform/models/labels.d.ts +20 -0
  158. package/lib/openapi/platform/models/labels.js +23 -0
  159. package/lib/openapi/platform/models/labels.js.map +1 -0
  160. package/lib/openapi/platform/models/license-metrics.d.ts +27 -0
  161. package/lib/openapi/platform/models/license-metrics.js +32 -0
  162. package/lib/openapi/platform/models/license-metrics.js.map +1 -0
  163. package/lib/openapi/platform/models/myself.d.ts +13 -0
  164. package/lib/openapi/platform/models/myself.js +17 -0
  165. package/lib/openapi/platform/models/myself.js.map +1 -0
  166. package/lib/openapi/platform/models/permission-schemes.d.ts +42 -0
  167. package/lib/openapi/platform/models/permission-schemes.js +39 -0
  168. package/lib/openapi/platform/models/permission-schemes.js.map +1 -0
  169. package/lib/openapi/platform/models/permissions.d.ts +97 -0
  170. package/lib/openapi/platform/models/permissions.js +176 -0
  171. package/lib/openapi/platform/models/permissions.js.map +1 -0
  172. package/lib/openapi/platform/models/priority-schemes.d.ts +233 -0
  173. package/lib/openapi/platform/models/priority-schemes.js +227 -0
  174. package/lib/openapi/platform/models/priority-schemes.js.map +1 -0
  175. package/lib/openapi/platform/models/project-avatars.d.ts +11 -0
  176. package/lib/openapi/platform/models/project-avatars.js +20 -0
  177. package/lib/openapi/platform/models/project-avatars.js.map +1 -0
  178. package/lib/openapi/platform/models/project-classification-levels.d.ts +8 -0
  179. package/lib/openapi/platform/models/project-classification-levels.js +17 -0
  180. package/lib/openapi/platform/models/project-classification-levels.js.map +1 -0
  181. package/lib/openapi/platform/models/project-components.d.ts +122 -0
  182. package/lib/openapi/platform/models/project-components.js +91 -0
  183. package/lib/openapi/platform/models/project-components.js.map +1 -0
  184. package/lib/openapi/platform/models/project-email.d.ts +10 -0
  185. package/lib/openapi/platform/models/project-email.js +18 -0
  186. package/lib/openapi/platform/models/project-email.js.map +1 -0
  187. package/lib/openapi/platform/models/project-features.d.ts +35 -0
  188. package/lib/openapi/platform/models/project-features.js +38 -0
  189. package/lib/openapi/platform/models/project-features.js.map +1 -0
  190. package/lib/openapi/platform/models/project-permission-schemes.d.ts +17 -0
  191. package/lib/openapi/platform/models/project-permission-schemes.js +25 -0
  192. package/lib/openapi/platform/models/project-permission-schemes.js.map +1 -0
  193. package/lib/openapi/platform/models/project-role-actors.d.ts +65 -0
  194. package/lib/openapi/platform/models/project-role-actors.js +37 -0
  195. package/lib/openapi/platform/models/project-role-actors.js.map +1 -0
  196. package/lib/openapi/platform/models/project-roles.d.ts +41 -0
  197. package/lib/openapi/platform/models/project-roles.js +34 -0
  198. package/lib/openapi/platform/models/project-roles.js.map +1 -0
  199. package/lib/openapi/platform/models/project-types.d.ts +16 -0
  200. package/lib/openapi/platform/models/project-types.js +21 -0
  201. package/lib/openapi/platform/models/project-types.js.map +1 -0
  202. package/lib/openapi/platform/models/project-versions.d.ts +110 -0
  203. package/lib/openapi/platform/models/project-versions.js +87 -0
  204. package/lib/openapi/platform/models/project-versions.js.map +1 -0
  205. package/lib/openapi/platform/models/projects.d.ts +216 -0
  206. package/lib/openapi/platform/models/projects.js +149 -0
  207. package/lib/openapi/platform/models/projects.js.map +1 -0
  208. package/lib/openapi/platform/models/screen-schemes.d.ts +94 -0
  209. package/lib/openapi/platform/models/screen-schemes.js +79 -0
  210. package/lib/openapi/platform/models/screen-schemes.js.map +1 -0
  211. package/lib/openapi/platform/models/screen-tab-fields.d.ts +19 -0
  212. package/lib/openapi/platform/models/screen-tab-fields.js +24 -0
  213. package/lib/openapi/platform/models/screen-tab-fields.js.map +1 -0
  214. package/lib/openapi/platform/models/screens.d.ts +82 -0
  215. package/lib/openapi/platform/models/screens.js +72 -0
  216. package/lib/openapi/platform/models/screens.js.map +1 -0
  217. package/lib/openapi/platform/models/server-info.d.ts +51 -0
  218. package/lib/openapi/platform/models/server-info.js +47 -0
  219. package/lib/openapi/platform/models/server-info.js.map +1 -0
  220. package/lib/openapi/platform/models/service-registry.d.ts +32 -0
  221. package/lib/openapi/platform/models/service-registry.js +34 -0
  222. package/lib/openapi/platform/models/service-registry.js.map +1 -0
  223. package/lib/openapi/platform/models/status.d.ts +95 -0
  224. package/lib/openapi/platform/models/status.js +107 -0
  225. package/lib/openapi/platform/models/status.js.map +1 -0
  226. package/lib/openapi/platform/models/time-tracking.d.ts +20 -0
  227. package/lib/openapi/platform/models/time-tracking.js +19 -0
  228. package/lib/openapi/platform/models/time-tracking.js.map +1 -0
  229. package/lib/openapi/platform/models/ui-modifications-apps.d.ts +127 -0
  230. package/lib/openapi/platform/models/ui-modifications-apps.js +85 -0
  231. package/lib/openapi/platform/models/ui-modifications-apps.js.map +1 -0
  232. package/lib/openapi/platform/models/user-search.d.ts +37 -0
  233. package/lib/openapi/platform/models/user-search.js +30 -0
  234. package/lib/openapi/platform/models/user-search.js.map +1 -0
  235. package/lib/openapi/platform/models/users.d.ts +60 -0
  236. package/lib/openapi/platform/models/users.js +53 -0
  237. package/lib/openapi/platform/models/users.js.map +1 -0
  238. package/lib/openapi/platform/models/webhooks.d.ts +147 -0
  239. package/lib/openapi/platform/models/webhooks.js +112 -0
  240. package/lib/openapi/platform/models/webhooks.js.map +1 -0
  241. package/lib/openapi/platform/models/workflow-scheme-drafts.d.ts +17 -0
  242. package/lib/openapi/platform/models/workflow-scheme-drafts.js +37 -0
  243. package/lib/openapi/platform/models/workflow-scheme-drafts.js.map +1 -0
  244. package/lib/openapi/platform/models/workflow-scheme-project-associations.d.ts +29 -0
  245. package/lib/openapi/platform/models/workflow-scheme-project-associations.js +33 -0
  246. package/lib/openapi/platform/models/workflow-scheme-project-associations.js.map +1 -0
  247. package/lib/openapi/platform/models/workflow-schemes.d.ts +217 -0
  248. package/lib/openapi/platform/models/workflow-schemes.js +261 -0
  249. package/lib/openapi/platform/models/workflow-schemes.js.map +1 -0
  250. package/lib/openapi/platform/models/workflow-transition-properties.d.ts +15 -0
  251. package/lib/openapi/platform/models/workflow-transition-properties.js +19 -0
  252. package/lib/openapi/platform/models/workflow-transition-properties.js.map +1 -0
  253. package/lib/openapi/platform/models/workflow-transition-rules.d.ts +106 -0
  254. package/lib/openapi/platform/models/workflow-transition-rules.js +117 -0
  255. package/lib/openapi/platform/models/workflow-transition-rules.js.map +1 -0
  256. package/lib/openapi/platform/models/workflows.d.ts +848 -0
  257. package/lib/openapi/platform/models/workflows.js +824 -0
  258. package/lib/openapi/platform/models/workflows.js.map +1 -0
  259. package/lib/openapi/platform/services/announcement-banner-service.d.ts +49 -0
  260. package/lib/openapi/platform/services/announcement-banner-service.js +99 -0
  261. package/lib/openapi/platform/services/announcement-banner-service.js.map +1 -0
  262. package/lib/openapi/platform/services/app-data-policies-service.d.ts +44 -0
  263. package/lib/openapi/platform/services/app-data-policies-service.js +101 -0
  264. package/lib/openapi/platform/services/app-data-policies-service.js.map +1 -0
  265. package/lib/openapi/platform/services/app-migration-service.d.ts +152 -0
  266. package/lib/openapi/platform/services/app-migration-service.js +178 -0
  267. package/lib/openapi/platform/services/app-migration-service.js.map +1 -0
  268. package/lib/openapi/platform/services/app-properties-service.d.ts +184 -0
  269. package/lib/openapi/platform/services/app-properties-service.js +325 -0
  270. package/lib/openapi/platform/services/app-properties-service.js.map +1 -0
  271. package/lib/openapi/platform/services/application-roles-service.d.ts +158 -0
  272. package/lib/openapi/platform/services/application-roles-service.js +209 -0
  273. package/lib/openapi/platform/services/application-roles-service.js.map +1 -0
  274. package/lib/openapi/platform/services/audit-records-service.d.ts +101 -0
  275. package/lib/openapi/platform/services/audit-records-service.js +125 -0
  276. package/lib/openapi/platform/services/audit-records-service.js.map +1 -0
  277. package/lib/openapi/platform/services/avatars-service.d.ts +363 -0
  278. package/lib/openapi/platform/services/avatars-service.js +523 -0
  279. package/lib/openapi/platform/services/avatars-service.js.map +1 -0
  280. package/lib/openapi/platform/services/classification-levels-service.d.ts +72 -0
  281. package/lib/openapi/platform/services/classification-levels-service.js +104 -0
  282. package/lib/openapi/platform/services/classification-levels-service.js.map +1 -0
  283. package/lib/openapi/platform/services/dashboards-service.d.ts +918 -0
  284. package/lib/openapi/platform/services/dashboards-service.js +1109 -0
  285. package/lib/openapi/platform/services/dashboards-service.js.map +1 -0
  286. package/lib/openapi/platform/services/dynamic-modules-service.d.ts +50 -0
  287. package/lib/openapi/platform/services/dynamic-modules-service.js +96 -0
  288. package/lib/openapi/platform/services/dynamic-modules-service.js.map +1 -0
  289. package/lib/openapi/platform/services/filter-sharing-service.d.ts +446 -0
  290. package/lib/openapi/platform/services/filter-sharing-service.js +565 -0
  291. package/lib/openapi/platform/services/filter-sharing-service.js.map +1 -0
  292. package/lib/openapi/platform/services/filters-service.d.ts +1320 -0
  293. package/lib/openapi/platform/services/filters-service.js +1351 -0
  294. package/lib/openapi/platform/services/filters-service.js.map +1 -0
  295. package/lib/openapi/platform/services/group-and-user-picker-service.d.ts +132 -0
  296. package/lib/openapi/platform/services/group-and-user-picker-service.js +140 -0
  297. package/lib/openapi/platform/services/group-and-user-picker-service.js.map +1 -0
  298. package/lib/openapi/platform/services/groups-service.d.ts +411 -0
  299. package/lib/openapi/platform/services/groups-service.js +448 -0
  300. package/lib/openapi/platform/services/groups-service.js.map +1 -0
  301. package/lib/openapi/platform/services/issue-attachments-service.d.ts +549 -0
  302. package/lib/openapi/platform/services/issue-attachments-service.js +724 -0
  303. package/lib/openapi/platform/services/issue-attachments-service.js.map +1 -0
  304. package/lib/openapi/platform/services/issue-comment-properties-service.d.ts +149 -0
  305. package/lib/openapi/platform/services/issue-comment-properties-service.js +239 -0
  306. package/lib/openapi/platform/services/issue-comment-properties-service.js.map +1 -0
  307. package/lib/openapi/platform/services/issue-comments-service.d.ts +528 -0
  308. package/lib/openapi/platform/services/issue-comments-service.js +563 -0
  309. package/lib/openapi/platform/services/issue-comments-service.js.map +1 -0
  310. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.d.ts +155 -0
  311. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js +163 -0
  312. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js.map +1 -0
  313. package/lib/openapi/platform/services/issue-custom-field-contexts-service.d.ts +659 -0
  314. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js +854 -0
  315. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js.map +1 -0
  316. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.d.ts +615 -0
  317. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js +605 -0
  318. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js.map +1 -0
  319. package/lib/openapi/platform/services/issue-custom-field-options-service.d.ts +339 -0
  320. package/lib/openapi/platform/services/issue-custom-field-options-service.js +420 -0
  321. package/lib/openapi/platform/services/issue-custom-field-options-service.js.map +1 -0
  322. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.d.ts +90 -0
  323. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js +117 -0
  324. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js.map +1 -0
  325. package/lib/openapi/platform/services/issue-field-configurations-service.d.ts +561 -0
  326. package/lib/openapi/platform/services/issue-field-configurations-service.js +801 -0
  327. package/lib/openapi/platform/services/issue-field-configurations-service.js.map +1 -0
  328. package/lib/openapi/platform/services/issue-fields-service.d.ts +420 -0
  329. package/lib/openapi/platform/services/issue-fields-service.js +555 -0
  330. package/lib/openapi/platform/services/issue-fields-service.js.map +1 -0
  331. package/lib/openapi/platform/services/issue-link-types-service.d.ts +165 -0
  332. package/lib/openapi/platform/services/issue-link-types-service.js +263 -0
  333. package/lib/openapi/platform/services/issue-link-types-service.js.map +1 -0
  334. package/lib/openapi/platform/services/issue-links-service.d.ts +237 -0
  335. package/lib/openapi/platform/services/issue-links-service.js +264 -0
  336. package/lib/openapi/platform/services/issue-links-service.js.map +1 -0
  337. package/lib/openapi/platform/services/issue-navigator-settings-service.d.ts +55 -0
  338. package/lib/openapi/platform/services/issue-navigator-settings-service.js +97 -0
  339. package/lib/openapi/platform/services/issue-navigator-settings-service.js.map +1 -0
  340. package/lib/openapi/platform/services/issue-notification-schemes-service.d.ts +809 -0
  341. package/lib/openapi/platform/services/issue-notification-schemes-service.js +917 -0
  342. package/lib/openapi/platform/services/issue-notification-schemes-service.js.map +1 -0
  343. package/lib/openapi/platform/services/issue-priorities-service.d.ts +238 -0
  344. package/lib/openapi/platform/services/issue-priorities-service.js +372 -0
  345. package/lib/openapi/platform/services/issue-priorities-service.js.map +1 -0
  346. package/lib/openapi/platform/services/issue-properties-service.d.ts +368 -0
  347. package/lib/openapi/platform/services/issue-properties-service.js +439 -0
  348. package/lib/openapi/platform/services/issue-properties-service.js.map +1 -0
  349. package/lib/openapi/platform/services/issue-remote-links-service.d.ts +351 -0
  350. package/lib/openapi/platform/services/issue-remote-links-service.js +429 -0
  351. package/lib/openapi/platform/services/issue-remote-links-service.js.map +1 -0
  352. package/lib/openapi/platform/services/issue-resolutions-service.d.ts +202 -0
  353. package/lib/openapi/platform/services/issue-resolutions-service.js +346 -0
  354. package/lib/openapi/platform/services/issue-resolutions-service.js.map +1 -0
  355. package/lib/openapi/platform/services/issue-search-service.d.ts +887 -0
  356. package/lib/openapi/platform/services/issue-search-service.js +878 -0
  357. package/lib/openapi/platform/services/issue-search-service.js.map +1 -0
  358. package/lib/openapi/platform/services/issue-security-level-service.d.ts +136 -0
  359. package/lib/openapi/platform/services/issue-security-level-service.js +174 -0
  360. package/lib/openapi/platform/services/issue-security-level-service.js.map +1 -0
  361. package/lib/openapi/platform/services/issue-security-schemes-service.d.ts +530 -0
  362. package/lib/openapi/platform/services/issue-security-schemes-service.js +721 -0
  363. package/lib/openapi/platform/services/issue-security-schemes-service.js.map +1 -0
  364. package/lib/openapi/platform/services/issue-type-properties-service.d.ts +150 -0
  365. package/lib/openapi/platform/services/issue-type-properties-service.js +227 -0
  366. package/lib/openapi/platform/services/issue-type-properties-service.js.map +1 -0
  367. package/lib/openapi/platform/services/issue-type-schemes-service.d.ts +460 -0
  368. package/lib/openapi/platform/services/issue-type-schemes-service.js +615 -0
  369. package/lib/openapi/platform/services/issue-type-schemes-service.js.map +1 -0
  370. package/lib/openapi/platform/services/issue-type-screen-schemes-service.d.ts +442 -0
  371. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js +606 -0
  372. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js.map +1 -0
  373. package/lib/openapi/platform/services/issue-types-service.d.ts +343 -0
  374. package/lib/openapi/platform/services/issue-types-service.js +495 -0
  375. package/lib/openapi/platform/services/issue-types-service.js.map +1 -0
  376. package/lib/openapi/platform/services/issue-votes-service.d.ts +117 -0
  377. package/lib/openapi/platform/services/issue-votes-service.js +179 -0
  378. package/lib/openapi/platform/services/issue-votes-service.js.map +1 -0
  379. package/lib/openapi/platform/services/issue-watchers-service.d.ts +168 -0
  380. package/lib/openapi/platform/services/issue-watchers-service.js +236 -0
  381. package/lib/openapi/platform/services/issue-watchers-service.js.map +1 -0
  382. package/lib/openapi/platform/services/issue-worklog-properties-service.d.ts +165 -0
  383. package/lib/openapi/platform/services/issue-worklog-properties-service.js +251 -0
  384. package/lib/openapi/platform/services/issue-worklog-properties-service.js.map +1 -0
  385. package/lib/openapi/platform/services/issue-worklogs-service.d.ts +694 -0
  386. package/lib/openapi/platform/services/issue-worklogs-service.js +701 -0
  387. package/lib/openapi/platform/services/issue-worklogs-service.js.map +1 -0
  388. package/lib/openapi/platform/services/issues-service.d.ts +2356 -0
  389. package/lib/openapi/platform/services/issues-service.js +2022 -0
  390. package/lib/openapi/platform/services/issues-service.js.map +1 -0
  391. package/lib/openapi/platform/services/jira-expressions-service.d.ts +298 -0
  392. package/lib/openapi/platform/services/jira-expressions-service.js +272 -0
  393. package/lib/openapi/platform/services/jira-expressions-service.js.map +1 -0
  394. package/lib/openapi/platform/services/jira-settings-service.d.ts +236 -0
  395. package/lib/openapi/platform/services/jira-settings-service.js +325 -0
  396. package/lib/openapi/platform/services/jira-settings-service.js.map +1 -0
  397. package/lib/openapi/platform/services/jql-functions-apps-service.d.ts +113 -0
  398. package/lib/openapi/platform/services/jql-functions-apps-service.js +142 -0
  399. package/lib/openapi/platform/services/jql-functions-apps-service.js.map +1 -0
  400. package/lib/openapi/platform/services/jql-service.d.ts +623 -0
  401. package/lib/openapi/platform/services/jql-service.js +697 -0
  402. package/lib/openapi/platform/services/jql-service.js.map +1 -0
  403. package/lib/openapi/platform/services/labels-service.d.ts +34 -0
  404. package/lib/openapi/platform/services/labels-service.js +67 -0
  405. package/lib/openapi/platform/services/labels-service.js.map +1 -0
  406. package/lib/openapi/platform/services/license-metrics-service.d.ts +82 -0
  407. package/lib/openapi/platform/services/license-metrics-service.js +160 -0
  408. package/lib/openapi/platform/services/license-metrics-service.js.map +1 -0
  409. package/lib/openapi/platform/services/myself-service.d.ts +254 -0
  410. package/lib/openapi/platform/services/myself-service.js +382 -0
  411. package/lib/openapi/platform/services/myself-service.js.map +1 -0
  412. package/lib/openapi/platform/services/permission-schemes-service.d.ts +554 -0
  413. package/lib/openapi/platform/services/permission-schemes-service.js +613 -0
  414. package/lib/openapi/platform/services/permission-schemes-service.js.map +1 -0
  415. package/lib/openapi/platform/services/permissions-service.d.ts +214 -0
  416. package/lib/openapi/platform/services/permissions-service.js +281 -0
  417. package/lib/openapi/platform/services/permissions-service.js.map +1 -0
  418. package/lib/openapi/platform/services/priority-schemes-service.d.ts +578 -0
  419. package/lib/openapi/platform/services/priority-schemes-service.js +655 -0
  420. package/lib/openapi/platform/services/priority-schemes-service.js.map +1 -0
  421. package/lib/openapi/platform/services/project-avatars-service.d.ts +170 -0
  422. package/lib/openapi/platform/services/project-avatars-service.js +254 -0
  423. package/lib/openapi/platform/services/project-avatars-service.js.map +1 -0
  424. package/lib/openapi/platform/services/project-categories-service.d.ts +128 -0
  425. package/lib/openapi/platform/services/project-categories-service.js +226 -0
  426. package/lib/openapi/platform/services/project-categories-service.js.map +1 -0
  427. package/lib/openapi/platform/services/project-classification-levels-service.d.ts +90 -0
  428. package/lib/openapi/platform/services/project-classification-levels-service.js +161 -0
  429. package/lib/openapi/platform/services/project-classification-levels-service.js.map +1 -0
  430. package/lib/openapi/platform/services/project-components-service.d.ts +955 -0
  431. package/lib/openapi/platform/services/project-components-service.js +1075 -0
  432. package/lib/openapi/platform/services/project-components-service.js.map +1 -0
  433. package/lib/openapi/platform/services/project-email-service.d.ts +60 -0
  434. package/lib/openapi/platform/services/project-email-service.js +113 -0
  435. package/lib/openapi/platform/services/project-email-service.js.map +1 -0
  436. package/lib/openapi/platform/services/project-features-service.d.ts +103 -0
  437. package/lib/openapi/platform/services/project-features-service.js +155 -0
  438. package/lib/openapi/platform/services/project-features-service.js.map +1 -0
  439. package/lib/openapi/platform/services/project-key-and-name-validation-service.d.ts +59 -0
  440. package/lib/openapi/platform/services/project-key-and-name-validation-service.js +135 -0
  441. package/lib/openapi/platform/services/project-key-and-name-validation-service.js.map +1 -0
  442. package/lib/openapi/platform/services/project-permission-schemes-service.d.ts +179 -0
  443. package/lib/openapi/platform/services/project-permission-schemes-service.js +255 -0
  444. package/lib/openapi/platform/services/project-permission-schemes-service.js.map +1 -0
  445. package/lib/openapi/platform/services/project-properties-service.d.ts +147 -0
  446. package/lib/openapi/platform/services/project-properties-service.js +224 -0
  447. package/lib/openapi/platform/services/project-properties-service.js.map +1 -0
  448. package/lib/openapi/platform/services/project-role-actors-service.d.ts +351 -0
  449. package/lib/openapi/platform/services/project-role-actors-service.js +413 -0
  450. package/lib/openapi/platform/services/project-role-actors-service.js.map +1 -0
  451. package/lib/openapi/platform/services/project-roles-service.d.ts +484 -0
  452. package/lib/openapi/platform/services/project-roles-service.js +647 -0
  453. package/lib/openapi/platform/services/project-roles-service.js.map +1 -0
  454. package/lib/openapi/platform/services/project-types-service.d.ts +121 -0
  455. package/lib/openapi/platform/services/project-types-service.js +220 -0
  456. package/lib/openapi/platform/services/project-types-service.js.map +1 -0
  457. package/lib/openapi/platform/services/project-versions-service.d.ts +632 -0
  458. package/lib/openapi/platform/services/project-versions-service.js +852 -0
  459. package/lib/openapi/platform/services/project-versions-service.js.map +1 -0
  460. package/lib/openapi/platform/services/projects-service.d.ts +1622 -0
  461. package/lib/openapi/platform/services/projects-service.js +1686 -0
  462. package/lib/openapi/platform/services/projects-service.js.map +1 -0
  463. package/lib/openapi/platform/services/screen-schemes-service.d.ts +166 -0
  464. package/lib/openapi/platform/services/screen-schemes-service.js +216 -0
  465. package/lib/openapi/platform/services/screen-schemes-service.js.map +1 -0
  466. package/lib/openapi/platform/services/screen-tab-fields-service.d.ts +103 -0
  467. package/lib/openapi/platform/services/screen-tab-fields-service.js +181 -0
  468. package/lib/openapi/platform/services/screen-tab-fields-service.js.map +1 -0
  469. package/lib/openapi/platform/services/screen-tabs-service.d.ts +164 -0
  470. package/lib/openapi/platform/services/screen-tabs-service.js +278 -0
  471. package/lib/openapi/platform/services/screen-tabs-service.js.map +1 -0
  472. package/lib/openapi/platform/services/screens-service.d.ts +226 -0
  473. package/lib/openapi/platform/services/screens-service.js +346 -0
  474. package/lib/openapi/platform/services/screens-service.js.map +1 -0
  475. package/lib/openapi/platform/services/server-info-service.d.ts +40 -0
  476. package/lib/openapi/platform/services/server-info-service.js +74 -0
  477. package/lib/openapi/platform/services/server-info-service.js.map +1 -0
  478. package/lib/openapi/platform/services/service-registry-service.d.ts +32 -0
  479. package/lib/openapi/platform/services/service-registry-service.js +60 -0
  480. package/lib/openapi/platform/services/service-registry-service.js.map +1 -0
  481. package/lib/openapi/platform/services/status-service.d.ts +268 -0
  482. package/lib/openapi/platform/services/status-service.js +321 -0
  483. package/lib/openapi/platform/services/status-service.js.map +1 -0
  484. package/lib/openapi/platform/services/tasks-service.d.ts +71 -0
  485. package/lib/openapi/platform/services/tasks-service.js +126 -0
  486. package/lib/openapi/platform/services/tasks-service.js.map +1 -0
  487. package/lib/openapi/platform/services/time-tracking-service.d.ts +140 -0
  488. package/lib/openapi/platform/services/time-tracking-service.js +260 -0
  489. package/lib/openapi/platform/services/time-tracking-service.js.map +1 -0
  490. package/lib/openapi/platform/services/ui-modifications-apps-service.d.ts +212 -0
  491. package/lib/openapi/platform/services/ui-modifications-apps-service.js +262 -0
  492. package/lib/openapi/platform/services/ui-modifications-apps-service.js.map +1 -0
  493. package/lib/openapi/platform/services/user-properties-service.d.ts +218 -0
  494. package/lib/openapi/platform/services/user-properties-service.js +254 -0
  495. package/lib/openapi/platform/services/user-properties-service.js.map +1 -0
  496. package/lib/openapi/platform/services/user-search-service.d.ts +782 -0
  497. package/lib/openapi/platform/services/user-search-service.js +784 -0
  498. package/lib/openapi/platform/services/user-search-service.js.map +1 -0
  499. package/lib/openapi/platform/services/users-service.d.ts +579 -0
  500. package/lib/openapi/platform/services/users-service.js +729 -0
  501. package/lib/openapi/platform/services/users-service.js.map +1 -0
  502. package/lib/openapi/platform/services/webhooks-service.d.ts +258 -0
  503. package/lib/openapi/platform/services/webhooks-service.js +307 -0
  504. package/lib/openapi/platform/services/webhooks-service.js.map +1 -0
  505. package/lib/openapi/platform/services/workflow-scheme-drafts-service.d.ts +744 -0
  506. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js +956 -0
  507. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js.map +1 -0
  508. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.d.ts +85 -0
  509. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js +134 -0
  510. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js.map +1 -0
  511. package/lib/openapi/platform/services/workflow-schemes-service.d.ts +843 -0
  512. package/lib/openapi/platform/services/workflow-schemes-service.js +1030 -0
  513. package/lib/openapi/platform/services/workflow-schemes-service.js.map +1 -0
  514. package/lib/openapi/platform/services/workflow-status-categories-service.d.ts +60 -0
  515. package/lib/openapi/platform/services/workflow-status-categories-service.js +115 -0
  516. package/lib/openapi/platform/services/workflow-status-categories-service.js.map +1 -0
  517. package/lib/openapi/platform/services/workflow-statuses-service.d.ts +87 -0
  518. package/lib/openapi/platform/services/workflow-statuses-service.js +142 -0
  519. package/lib/openapi/platform/services/workflow-statuses-service.js.map +1 -0
  520. package/lib/openapi/platform/services/workflow-transition-properties-service.d.ts +189 -0
  521. package/lib/openapi/platform/services/workflow-transition-properties-service.js +224 -0
  522. package/lib/openapi/platform/services/workflow-transition-properties-service.js.map +1 -0
  523. package/lib/openapi/platform/services/workflow-transition-rules-service.d.ts +319 -0
  524. package/lib/openapi/platform/services/workflow-transition-rules-service.js +326 -0
  525. package/lib/openapi/platform/services/workflow-transition-rules-service.js.map +1 -0
  526. package/lib/openapi/platform/services/workflows-service.d.ts +3032 -0
  527. package/lib/openapi/platform/services/workflows-service.js +2529 -0
  528. package/lib/openapi/platform/services/workflows-service.js.map +1 -0
  529. package/lib/openapi/platform/validation-schema-storage.d.ts +3 -0
  530. package/lib/openapi/platform/validation-schema-storage.js +144 -0
  531. package/lib/openapi/platform/validation-schema-storage.js.map +1 -0
  532. package/lib/openapi/software/base-jira-software-api-client.d.ts +426 -0
  533. package/lib/openapi/software/base-jira-software-api-client.js +444 -0
  534. package/lib/openapi/software/base-jira-software-api-client.js.map +1 -0
  535. package/lib/openapi/software/core/common-http-client.d.ts +196 -0
  536. package/lib/openapi/software/core/common-http-client.js +390 -0
  537. package/lib/openapi/software/core/common-http-client.js.map +1 -0
  538. package/lib/openapi/software/core/common-http-service.d.ts +7 -0
  539. package/lib/openapi/software/core/common-http-service.js +20 -0
  540. package/lib/openapi/software/core/common-http-service.js.map +1 -0
  541. package/lib/openapi/software/core/common-validation-schema-storage.d.ts +35 -0
  542. package/lib/openapi/software/core/common-validation-schema-storage.js +65 -0
  543. package/lib/openapi/software/core/common-validation-schema-storage.js.map +1 -0
  544. package/lib/openapi/software/models/board.d.ts +505 -0
  545. package/lib/openapi/software/models/board.js +389 -0
  546. package/lib/openapi/software/models/board.js.map +1 -0
  547. package/lib/openapi/software/services/backlog-service.d.ts +81 -0
  548. package/lib/openapi/software/services/backlog-service.js +113 -0
  549. package/lib/openapi/software/services/backlog-service.js.map +1 -0
  550. package/lib/openapi/software/services/board-service.d.ts +2254 -0
  551. package/lib/openapi/software/services/board-service.js +2653 -0
  552. package/lib/openapi/software/services/board-service.js.map +1 -0
  553. package/lib/openapi/software/services/builds-service.d.ts +368 -0
  554. package/lib/openapi/software/services/builds-service.js +230 -0
  555. package/lib/openapi/software/services/builds-service.js.map +1 -0
  556. package/lib/openapi/software/services/deployments-service.d.ts +217 -0
  557. package/lib/openapi/software/services/deployments-service.js +232 -0
  558. package/lib/openapi/software/services/deployments-service.js.map +1 -0
  559. package/lib/openapi/software/services/dev-ops-components-service.d.ts +246 -0
  560. package/lib/openapi/software/services/dev-ops-components-service.js +280 -0
  561. package/lib/openapi/software/services/dev-ops-components-service.js.map +1 -0
  562. package/lib/openapi/software/services/development-information-service.d.ts +1641 -0
  563. package/lib/openapi/software/services/development-information-service.js +474 -0
  564. package/lib/openapi/software/services/development-information-service.js.map +1 -0
  565. package/lib/openapi/software/services/epic-service.d.ts +596 -0
  566. package/lib/openapi/software/services/epic-service.js +633 -0
  567. package/lib/openapi/software/services/epic-service.js.map +1 -0
  568. package/lib/openapi/software/services/feature-flags-service.d.ts +170 -0
  569. package/lib/openapi/software/services/feature-flags-service.js +182 -0
  570. package/lib/openapi/software/services/feature-flags-service.js.map +1 -0
  571. package/lib/openapi/software/services/issue-service.d.ts +329 -0
  572. package/lib/openapi/software/services/issue-service.js +410 -0
  573. package/lib/openapi/software/services/issue-service.js.map +1 -0
  574. package/lib/openapi/software/services/operations-service.d.ts +456 -0
  575. package/lib/openapi/software/services/operations-service.js +444 -0
  576. package/lib/openapi/software/services/operations-service.js.map +1 -0
  577. package/lib/openapi/software/services/remote-links-service.d.ts +445 -0
  578. package/lib/openapi/software/services/remote-links-service.js +327 -0
  579. package/lib/openapi/software/services/remote-links-service.js.map +1 -0
  580. package/lib/openapi/software/services/security-information-service.d.ts +257 -0
  581. package/lib/openapi/software/services/security-information-service.js +310 -0
  582. package/lib/openapi/software/services/security-information-service.js.map +1 -0
  583. package/lib/openapi/software/services/sprint-service.d.ts +531 -0
  584. package/lib/openapi/software/services/sprint-service.js +665 -0
  585. package/lib/openapi/software/services/sprint-service.js.map +1 -0
  586. package/lib/openapi/software/validation-schema-storage.d.ts +3 -0
  587. package/lib/openapi/software/validation-schema-storage.js +144 -0
  588. package/lib/openapi/software/validation-schema-storage.js.map +1 -0
  589. package/package.json +37 -0
  590. package/src/index.ts +47 -0
  591. package/src/openapi/platform/base-jira-platform-api-client.ts +2298 -0
  592. package/src/openapi/platform/core/common-http-client.ts +723 -0
  593. package/src/openapi/platform/core/common-http-service.ts +22 -0
  594. package/src/openapi/platform/core/common-validation-schema-storage.ts +105 -0
  595. package/src/openapi/platform/models/announcement-banner.ts +59 -0
  596. package/src/openapi/platform/models/app-data-policies.ts +79 -0
  597. package/src/openapi/platform/models/app-migration.ts +172 -0
  598. package/src/openapi/platform/models/app-properties.ts +32 -0
  599. package/src/openapi/platform/models/audit-records.ts +140 -0
  600. package/src/openapi/platform/models/avatars.ts +48 -0
  601. package/src/openapi/platform/models/classification-levels.ts +58 -0
  602. package/src/openapi/platform/models/common.ts +2669 -0
  603. package/src/openapi/platform/models/dashboards.ts +849 -0
  604. package/src/openapi/platform/models/dynamic-modules.ts +121 -0
  605. package/src/openapi/platform/models/filter-sharing.ts +103 -0
  606. package/src/openapi/platform/models/filters.ts +319 -0
  607. package/src/openapi/platform/models/group-and-user-picker.ts +85 -0
  608. package/src/openapi/platform/models/groups.ts +247 -0
  609. package/src/openapi/platform/models/issue-attachments.ts +290 -0
  610. package/src/openapi/platform/models/issue-comment-properties.ts +27 -0
  611. package/src/openapi/platform/models/issue-comments.ts +91 -0
  612. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +96 -0
  613. package/src/openapi/platform/models/issue-custom-field-contexts.ts +1072 -0
  614. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +273 -0
  615. package/src/openapi/platform/models/issue-custom-field-options.ts +283 -0
  616. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +118 -0
  617. package/src/openapi/platform/models/issue-field-configurations.ts +435 -0
  618. package/src/openapi/platform/models/issue-fields.ts +392 -0
  619. package/src/openapi/platform/models/issue-link-types.ts +28 -0
  620. package/src/openapi/platform/models/issue-links.ts +185 -0
  621. package/src/openapi/platform/models/issue-notification-schemes.ts +370 -0
  622. package/src/openapi/platform/models/issue-priorities.ts +196 -0
  623. package/src/openapi/platform/models/issue-properties.ts +259 -0
  624. package/src/openapi/platform/models/issue-remote-links.ts +207 -0
  625. package/src/openapi/platform/models/issue-resolutions.ts +180 -0
  626. package/src/openapi/platform/models/issue-search.ts +367 -0
  627. package/src/openapi/platform/models/issue-security-level.ts +76 -0
  628. package/src/openapi/platform/models/issue-security-schemes.ts +496 -0
  629. package/src/openapi/platform/models/issue-type-schemes.ts +290 -0
  630. package/src/openapi/platform/models/issue-type-screen-schemes.ts +286 -0
  631. package/src/openapi/platform/models/issue-types.ts +66 -0
  632. package/src/openapi/platform/models/issue-votes.ts +38 -0
  633. package/src/openapi/platform/models/issue-watchers.ts +67 -0
  634. package/src/openapi/platform/models/issue-worklogs.ts +190 -0
  635. package/src/openapi/platform/models/issues.ts +1268 -0
  636. package/src/openapi/platform/models/jira-expressions.ts +578 -0
  637. package/src/openapi/platform/models/jira-settings.ts +118 -0
  638. package/src/openapi/platform/models/jql-functions-apps.ts +128 -0
  639. package/src/openapi/platform/models/jql.ts +783 -0
  640. package/src/openapi/platform/models/labels.ts +42 -0
  641. package/src/openapi/platform/models/license-metrics.ts +68 -0
  642. package/src/openapi/platform/models/myself.ts +29 -0
  643. package/src/openapi/platform/models/permission-schemes.ts +89 -0
  644. package/src/openapi/platform/models/permissions.ts +308 -0
  645. package/src/openapi/platform/models/priority-schemes.ts +527 -0
  646. package/src/openapi/platform/models/project-avatars.ts +29 -0
  647. package/src/openapi/platform/models/project-classification-levels.ts +24 -0
  648. package/src/openapi/platform/models/project-components.ts +231 -0
  649. package/src/openapi/platform/models/project-email.ts +27 -0
  650. package/src/openapi/platform/models/project-features.ts +78 -0
  651. package/src/openapi/platform/models/project-permission-schemes.ts +43 -0
  652. package/src/openapi/platform/models/project-role-actors.ts +107 -0
  653. package/src/openapi/platform/models/project-roles.ts +76 -0
  654. package/src/openapi/platform/models/project-types.ts +36 -0
  655. package/src/openapi/platform/models/project-versions.ts +216 -0
  656. package/src/openapi/platform/models/projects.ts +429 -0
  657. package/src/openapi/platform/models/screen-schemes.ts +192 -0
  658. package/src/openapi/platform/models/screen-tab-fields.ts +45 -0
  659. package/src/openapi/platform/models/screens.ts +171 -0
  660. package/src/openapi/platform/models/server-info.ts +100 -0
  661. package/src/openapi/platform/models/service-registry.ts +68 -0
  662. package/src/openapi/platform/models/status.ts +229 -0
  663. package/src/openapi/platform/models/time-tracking.ts +38 -0
  664. package/src/openapi/platform/models/ui-modifications-apps.ts +229 -0
  665. package/src/openapi/platform/models/user-search.ts +69 -0
  666. package/src/openapi/platform/models/users.ts +121 -0
  667. package/src/openapi/platform/models/webhooks.ts +307 -0
  668. package/src/openapi/platform/models/workflow-scheme-drafts.ts +58 -0
  669. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +68 -0
  670. package/src/openapi/platform/models/workflow-schemes.ts +545 -0
  671. package/src/openapi/platform/models/workflow-transition-properties.ts +33 -0
  672. package/src/openapi/platform/models/workflow-transition-rules.ts +261 -0
  673. package/src/openapi/platform/models/workflows.ts +1943 -0
  674. package/src/openapi/platform/services/announcement-banner-service.ts +142 -0
  675. package/src/openapi/platform/services/app-data-policies-service.ts +136 -0
  676. package/src/openapi/platform/services/app-migration-service.ts +289 -0
  677. package/src/openapi/platform/services/app-properties-service.ts +441 -0
  678. package/src/openapi/platform/services/application-roles-service.ts +247 -0
  679. package/src/openapi/platform/services/audit-records-service.ts +164 -0
  680. package/src/openapi/platform/services/avatars-service.ts +769 -0
  681. package/src/openapi/platform/services/classification-levels-service.ts +131 -0
  682. package/src/openapi/platform/services/dashboards-service.ts +1721 -0
  683. package/src/openapi/platform/services/dynamic-modules-service.ts +127 -0
  684. package/src/openapi/platform/services/filter-sharing-service.ts +687 -0
  685. package/src/openapi/platform/services/filters-service.ts +1901 -0
  686. package/src/openapi/platform/services/group-and-user-picker-service.ts +224 -0
  687. package/src/openapi/platform/services/groups-service.ts +751 -0
  688. package/src/openapi/platform/services/issue-attachments-service.ts +900 -0
  689. package/src/openapi/platform/services/issue-comment-properties-service.ts +324 -0
  690. package/src/openapi/platform/services/issue-comments-service.ts +812 -0
  691. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +277 -0
  692. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +1339 -0
  693. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +994 -0
  694. package/src/openapi/platform/services/issue-custom-field-options-service.ts +651 -0
  695. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +201 -0
  696. package/src/openapi/platform/services/issue-field-configurations-service.ts +1294 -0
  697. package/src/openapi/platform/services/issue-fields-service.ts +837 -0
  698. package/src/openapi/platform/services/issue-link-types-service.ts +360 -0
  699. package/src/openapi/platform/services/issue-links-service.ts +345 -0
  700. package/src/openapi/platform/services/issue-navigator-settings-service.ts +119 -0
  701. package/src/openapi/platform/services/issue-notification-schemes-service.ts +1209 -0
  702. package/src/openapi/platform/services/issue-priorities-service.ts +575 -0
  703. package/src/openapi/platform/services/issue-properties-service.ts +606 -0
  704. package/src/openapi/platform/services/issue-remote-links-service.ts +597 -0
  705. package/src/openapi/platform/services/issue-resolutions-service.ts +534 -0
  706. package/src/openapi/platform/services/issue-search-service.ts +1139 -0
  707. package/src/openapi/platform/services/issue-security-level-service.ts +250 -0
  708. package/src/openapi/platform/services/issue-security-schemes-service.ts +1240 -0
  709. package/src/openapi/platform/services/issue-type-properties-service.ts +325 -0
  710. package/src/openapi/platform/services/issue-type-schemes-service.ts +940 -0
  711. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +994 -0
  712. package/src/openapi/platform/services/issue-types-service.ts +679 -0
  713. package/src/openapi/platform/services/issue-votes-service.ts +221 -0
  714. package/src/openapi/platform/services/issue-watchers-service.ts +331 -0
  715. package/src/openapi/platform/services/issue-worklog-properties-service.ts +348 -0
  716. package/src/openapi/platform/services/issue-worklogs-service.ts +1089 -0
  717. package/src/openapi/platform/services/issues-service.ts +3346 -0
  718. package/src/openapi/platform/services/jira-expressions-service.ts +407 -0
  719. package/src/openapi/platform/services/jira-settings-service.ts +415 -0
  720. package/src/openapi/platform/services/jql-functions-apps-service.ts +219 -0
  721. package/src/openapi/platform/services/jql-service.ts +896 -0
  722. package/src/openapi/platform/services/labels-service.ts +89 -0
  723. package/src/openapi/platform/services/license-metrics-service.ts +216 -0
  724. package/src/openapi/platform/services/myself-service.ts +520 -0
  725. package/src/openapi/platform/services/permission-schemes-service.ts +926 -0
  726. package/src/openapi/platform/services/permissions-service.ts +407 -0
  727. package/src/openapi/platform/services/priority-schemes-service.ts +1001 -0
  728. package/src/openapi/platform/services/project-avatars-service.ts +341 -0
  729. package/src/openapi/platform/services/project-categories-service.ts +318 -0
  730. package/src/openapi/platform/services/project-classification-levels-service.ts +232 -0
  731. package/src/openapi/platform/services/project-components-service.ts +1332 -0
  732. package/src/openapi/platform/services/project-email-service.ts +161 -0
  733. package/src/openapi/platform/services/project-features-service.ts +207 -0
  734. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +200 -0
  735. package/src/openapi/platform/services/project-permission-schemes-service.ts +384 -0
  736. package/src/openapi/platform/services/project-properties-service.ts +320 -0
  737. package/src/openapi/platform/services/project-role-actors-service.ts +627 -0
  738. package/src/openapi/platform/services/project-roles-service.ts +867 -0
  739. package/src/openapi/platform/services/project-types-service.ts +297 -0
  740. package/src/openapi/platform/services/project-versions-service.ts +1287 -0
  741. package/src/openapi/platform/services/projects-service.ts +2196 -0
  742. package/src/openapi/platform/services/screen-schemes-service.ts +334 -0
  743. package/src/openapi/platform/services/screen-tab-fields-service.ts +276 -0
  744. package/src/openapi/platform/services/screen-tabs-service.ts +421 -0
  745. package/src/openapi/platform/services/screens-service.ts +528 -0
  746. package/src/openapi/platform/services/server-info-service.ts +88 -0
  747. package/src/openapi/platform/services/service-registry-service.ts +89 -0
  748. package/src/openapi/platform/services/status-service.ts +498 -0
  749. package/src/openapi/platform/services/tasks-service.ts +159 -0
  750. package/src/openapi/platform/services/time-tracking-service.ts +386 -0
  751. package/src/openapi/platform/services/ui-modifications-apps-service.ts +403 -0
  752. package/src/openapi/platform/services/user-properties-service.ts +413 -0
  753. package/src/openapi/platform/services/user-search-service.ts +1214 -0
  754. package/src/openapi/platform/services/users-service.ts +1108 -0
  755. package/src/openapi/platform/services/webhooks-service.ts +458 -0
  756. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +1313 -0
  757. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +189 -0
  758. package/src/openapi/platform/services/workflow-schemes-service.ts +1617 -0
  759. package/src/openapi/platform/services/workflow-status-categories-service.ts +151 -0
  760. package/src/openapi/platform/services/workflow-statuses-service.ts +176 -0
  761. package/src/openapi/platform/services/workflow-transition-properties-service.ts +388 -0
  762. package/src/openapi/platform/services/workflow-transition-rules-service.ts +485 -0
  763. package/src/openapi/platform/services/workflows-service.ts +3477 -0
  764. package/src/openapi/platform/validation-schema-storage.ts +186 -0
  765. package/src/openapi/software/base-jira-software-api-client.ts +447 -0
  766. package/src/openapi/software/core/common-http-client.ts +723 -0
  767. package/src/openapi/software/core/common-http-service.ts +22 -0
  768. package/src/openapi/software/core/common-validation-schema-storage.ts +105 -0
  769. package/src/openapi/software/models/board.ts +918 -0
  770. package/src/openapi/software/services/backlog-service.ts +160 -0
  771. package/src/openapi/software/services/board-service.ts +4189 -0
  772. package/src/openapi/software/services/builds-service.ts +571 -0
  773. package/src/openapi/software/services/deployments-service.ts +403 -0
  774. package/src/openapi/software/services/dev-ops-components-service.ts +371 -0
  775. package/src/openapi/software/services/development-information-service.ts +2357 -0
  776. package/src/openapi/software/services/epic-service.ts +854 -0
  777. package/src/openapi/software/services/feature-flags-service.ts +303 -0
  778. package/src/openapi/software/services/issue-service.ts +529 -0
  779. package/src/openapi/software/services/operations-service.ts +741 -0
  780. package/src/openapi/software/services/remote-links-service.ts +653 -0
  781. package/src/openapi/software/services/security-information-service.ts +495 -0
  782. package/src/openapi/software/services/sprint-service.ts +969 -0
  783. package/src/openapi/software/validation-schema-storage.ts +186 -0
  784. package/tsconfig.build.json +7 -0
  785. package/tsconfig.json +4 -0
@@ -0,0 +1,2357 @@
1
+ // DO NOT EDIT!
2
+ // This file is generated by "api-typescript-generator".
3
+ // To update this file run "yarn build:openapi".
4
+ import { z } from "zod";
5
+
6
+ import * as commonHttpClient from "../core/common-http-client";
7
+ import { CommonHttpService } from "../core/common-http-service";
8
+ import { validationSchemaStorage } from "../validation-schema-storage";
9
+ /**
10
+ * APIs related to integrating development information (commits, branches and pull
11
+ * requests) with Jira. These APIs are available to Atlassian Connect apps and
12
+ * on-premise integrations using OAuth. Connect apps using these APIs must have
13
+ * the Development Tool module in the app descriptor, see
14
+ * https://developer.atlassian.com/cloud/jira/software/modules/development-tool/.
15
+ * For more details on integrating Jira Software Cloud with on-premises tools
16
+ * using OAuth 2.0 credentials, see
17
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
18
+ */
19
+ export class DevelopmentInformationService extends CommonHttpService {
20
+ /**
21
+ * Deletes development information entities which have all the provided
22
+ * properties. Repositories which have properties that match ALL of the properties
23
+ * (i.e. treated as an AND), and all their related development information (such
24
+ * as commits, branches and pull requests), will be deleted. For example if
25
+ * request is `DELETE bulk?accountId=123&projectId=ABC` entities which have
26
+ * properties `accountId=123` and `projectId=ABC` will be deleted. Optional param
27
+ * `_updateSequenceId` is no longer supported. Deletion is performed
28
+ * asynchronously: specified entities will eventually be removed from Jira.
29
+ *
30
+ * @path {DELETE} /rest/devinfo/0.10/bulkByProperties
31
+ */
32
+ deleteByProperties({
33
+ updateSequenceId,
34
+ authorization,
35
+ }: {
36
+ /**
37
+ * An optional property to use to control deletion. Only stored data with an
38
+ * updateSequenceId less than or equal to that provided will be deleted. This can
39
+ * be used to help ensure submit/delete requests are applied correctly if they are
40
+ * issued close together.
41
+ */
42
+ updateSequenceId?: number;
43
+ /**
44
+ * All requests must be signed with either a Connect JWT token or OAuth token for
45
+ * an on-premise integration that corresponds to an app installed in Jira. If the
46
+ * JWT token corresponds to a Connect app that does not define the
47
+ * jiraDevelopmentTool module it will be rejected with a 403. See
48
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
49
+ * details about Connect JWT tokens. See
50
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
51
+ * for details about on-premise integrations.
52
+ */
53
+ authorization: string;
54
+ }): Promise<void> {
55
+ return this.getClientInstance()
56
+ .request({
57
+ path: "/rest/devinfo/0.10/bulkByProperties",
58
+ method: "DELETE",
59
+ query: {
60
+ _updateSequenceId: updateSequenceId,
61
+ },
62
+ headers: {
63
+ Authorization: authorization,
64
+ },
65
+ })
66
+ .then(commonHttpClient.discardResult);
67
+ }
68
+ /**
69
+ * Deletes particular development information entity. Deletion is performed
70
+ * asynchronously.
71
+ *
72
+ * @path {DELETE} /rest/devinfo/0.10/repository/{repositoryId}/{entityType}/{entityId}
73
+ */
74
+ deleteEntity({
75
+ repositoryId,
76
+ entityType,
77
+ entityId,
78
+ updateSequenceId,
79
+ authorization,
80
+ }: {
81
+ repositoryId: string;
82
+ entityType: "commit" | "branch" | "pull_request";
83
+ entityId: string;
84
+ /**
85
+ * An optional property to use to control deletion. Only stored data with an
86
+ * updateSequenceId less than or equal to that provided will be deleted. This can
87
+ * be used to help ensure submit/delete requests are applied correctly if they are
88
+ * issued close together.
89
+ */
90
+ updateSequenceId?: number;
91
+ /**
92
+ * All requests must be signed with either a Connect JWT token or OAuth token for
93
+ * an on-premise integration that corresponds to an app installed in Jira. If the
94
+ * JWT token corresponds to a Connect app that does not define the
95
+ * jiraDevelopmentTool module it will be rejected with a 403. See
96
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
97
+ * details about Connect JWT tokens. See
98
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
99
+ * for details about on-premise integrations.
100
+ */
101
+ authorization: string;
102
+ }): Promise<void> {
103
+ return this.getClientInstance()
104
+ .request({
105
+ path: "/rest/devinfo/0.10/repository/{repositoryId}/{entityType}/{entityId}",
106
+ method: "DELETE",
107
+ pathParams: {
108
+ repositoryId,
109
+ entityType,
110
+ entityId,
111
+ },
112
+ query: {
113
+ _updateSequenceId: updateSequenceId,
114
+ },
115
+ headers: {
116
+ Authorization: authorization,
117
+ },
118
+ })
119
+ .then(commonHttpClient.discardResult);
120
+ }
121
+ /**
122
+ * Deletes the repository data stored by the given ID and all related development
123
+ * information entities. Deletion is performed asynchronously.
124
+ *
125
+ * @path {DELETE} /rest/devinfo/0.10/repository/{repositoryId}
126
+ */
127
+ deleteRepository({
128
+ repositoryId,
129
+ updateSequenceId,
130
+ authorization,
131
+ }: {
132
+ /** The ID of repository to delete */
133
+ repositoryId: string;
134
+ /**
135
+ * An optional property to use to control deletion. Only stored data with an
136
+ * updateSequenceId less than or equal to that provided will be deleted. This can
137
+ * be used to help ensure submit/delete requests are applied correctly if they are
138
+ * issued close together.
139
+ */
140
+ updateSequenceId?: number;
141
+ /**
142
+ * All requests must be signed with either a Connect JWT token or OAuth token for
143
+ * an on-premise integration that corresponds to an app installed in Jira. If the
144
+ * JWT token corresponds to a Connect app that does not define the
145
+ * jiraDevelopmentTool module it will be rejected with a 403. See
146
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
147
+ * details about Connect JWT tokens. See
148
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
149
+ * for details about on-premise integrations.
150
+ */
151
+ authorization: string;
152
+ }): Promise<void> {
153
+ return this.getClientInstance()
154
+ .request({
155
+ path: "/rest/devinfo/0.10/repository/{repositoryId}",
156
+ method: "DELETE",
157
+ pathParams: {
158
+ repositoryId,
159
+ },
160
+ query: {
161
+ _updateSequenceId: updateSequenceId,
162
+ },
163
+ headers: {
164
+ Authorization: authorization,
165
+ },
166
+ })
167
+ .then(commonHttpClient.discardResult);
168
+ }
169
+ /**
170
+ * Checks if repositories which have all the provided properties exists. For
171
+ * example, if request is `GET existsByProperties?accountId=123&projectId=ABC`
172
+ * then result will be positive only if there is at least one repository with both
173
+ * properties `accountId=123` and `projectId=ABC`. Special property
174
+ * `_updateSequenceId` can be used to filter all entities with updateSequenceId
175
+ * less or equal than the value specified. In addition to the optional
176
+ * `_updateSequenceId`, one or more query params must be supplied to specify
177
+ * properties to search by.
178
+ *
179
+ * @returns Returns whether data exists for the specified properties.
180
+ * @path {GET} /rest/devinfo/0.10/existsByProperties
181
+ */
182
+ existsByProperties({
183
+ updateSequenceId,
184
+ authorization,
185
+ }: {
186
+ /**
187
+ * An optional property. Filters out entities and repositories which have
188
+ * updateSequenceId greater than specified.
189
+ */
190
+ updateSequenceId?: number;
191
+ /**
192
+ * All requests must be signed with either a Connect JWT token or OAuth token for
193
+ * an on-premise integration that corresponds to an app installed in Jira. If the
194
+ * JWT token corresponds to a Connect app that does not define the
195
+ * jiraDevelopmentTool module it will be rejected with a 403. See
196
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
197
+ * details about Connect JWT tokens. See
198
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
199
+ * for details about on-premise integrations.
200
+ */
201
+ authorization: string;
202
+ }): Promise<
203
+ {
204
+ /** Whether there is data matching the query */
205
+ hasDataMatchingProperties?: boolean;
206
+ } & {
207
+ [key: string]: unknown;
208
+ }
209
+ > {
210
+ return this.getClientInstance()
211
+ .request({
212
+ path: "/rest/devinfo/0.10/existsByProperties",
213
+ method: "GET",
214
+ query: {
215
+ _updateSequenceId: updateSequenceId,
216
+ },
217
+ headers: {
218
+ Authorization: authorization,
219
+ },
220
+ })
221
+ .then(
222
+ this.getClientInstance().responseHandler({
223
+ 200: {
224
+ "application/json": "json",
225
+ },
226
+ }),
227
+ )
228
+ .then(
229
+ commonHttpClient.castResponse<{
230
+ status: 200;
231
+ mediaType: "application/json";
232
+ body: {
233
+ hasDataMatchingProperties?: boolean;
234
+ } & {
235
+ [key: string]: unknown;
236
+ };
237
+ }>(),
238
+ )
239
+ .then(
240
+ validationSchemaStorage.validator(
241
+ "DevelopmentInformationService.existsByProperties.response",
242
+ ),
243
+ )
244
+ .then(commonHttpClient.getBody);
245
+ }
246
+ /**
247
+ * For the specified repository ID, retrieves the repository and the most recent
248
+ * 400 development information entities. The result will be what is currently
249
+ * stored, ignoring any pending updates or deletes.
250
+ *
251
+ * @returns The repository data currently stored for the given ID.
252
+ * @path {GET} /rest/devinfo/0.10/repository/{repositoryId}
253
+ */
254
+ getRepository({
255
+ repositoryId,
256
+ authorization,
257
+ }: {
258
+ /** The ID of repository to fetch */
259
+ repositoryId: string;
260
+ /**
261
+ * All requests must be signed with either a Connect JWT token or OAuth token for
262
+ * an on-premise integration that corresponds to an app installed in Jira. If the
263
+ * JWT token corresponds to a Connect app that does not define the
264
+ * jiraDevelopmentTool module it will be rejected with a 403. See
265
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
266
+ * details about Connect JWT tokens. See
267
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
268
+ * for details about on-premise integrations.
269
+ */
270
+ authorization: string;
271
+ }): Promise<
272
+ {
273
+ /**
274
+ * The name of this repository. Max length is 255 characters.
275
+ *
276
+ * @example atlassian-connect-jira-example
277
+ */
278
+ name: string;
279
+ /**
280
+ * Description of this repository. Max length is 1024 characters.
281
+ *
282
+ * @example The repository which stores code of the Atlassian Connect Add-on Devinfo
283
+ * application.
284
+ */
285
+ description?: string;
286
+ /**
287
+ * The ID of the repository this repository was forked from, if it's a fork. Max
288
+ * length is 1024 characters.
289
+ *
290
+ * @example 56c7c750-cee2-48e2-b920-d7706dfd11f7
291
+ */
292
+ forkOf?: string;
293
+ /**
294
+ * The URL of this repository. Max length is 2000 characters.
295
+ *
296
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example
297
+ */
298
+ url: string;
299
+ /**
300
+ * List of commits to update in this repository. Must not contain duplicate entity
301
+ * IDs. Maximum number of commits is 400
302
+ */
303
+ commits?: ({
304
+ /**
305
+ * The identifier or hash of the commit. Will be used for cross entity linking.
306
+ * Must be unique for all commits within a repository, i.e., only one commit can
307
+ * have ID 'X' in repository 'Y'. But adding, e.g., a branch with ID 'X' to
308
+ * repository 'Y' is acceptable. Only alphanumeric characters, and '~.-_', are
309
+ * allowed. Max length is 1024 characters
310
+ *
311
+ * @example a7727ee6350c33cdf90826dc21abaa26a5704370
312
+ */
313
+ id: string;
314
+ /**
315
+ * List of issues keys that this entity is associated with. They must be valid
316
+ * Jira issue keys.
317
+ *
318
+ * @example [
319
+ * "ISSUE-1",
320
+ * "TEST-2"
321
+ * ]
322
+ */
323
+ issueKeys: string[];
324
+ /**
325
+ * An ID used to apply an ordering to updates for this entity in the case of
326
+ * out-of-order receipt of update requests. This can be any monotonically
327
+ * increasing number. A suggested implementation is to use epoch millis from the
328
+ * provider system, but other alternatives are valid (e.g. a provider could store
329
+ * a counter against each entity and increment that on each update to Jira).
330
+ * Updates for an entity that are received with an updateSqeuenceId lower than
331
+ * what is currently stored will be ignored.
332
+ *
333
+ * @example 1523494301248
334
+ */
335
+ updateSequenceId: number;
336
+ /** Deprecated. Use the id field instead. */
337
+ hash?: string;
338
+ /**
339
+ * The set of flags for this commit
340
+ *
341
+ * @example [MERGE_COMMIT]
342
+ */
343
+ flags?: "MERGE_COMMIT"[];
344
+ /**
345
+ * The commit message. Max length is 1024 characters. If anything longer is
346
+ * supplied, it will be truncated down to 1024 characters.
347
+ *
348
+ * @example README.md edited online with Bitbucket
349
+ */
350
+ message: string;
351
+ /**
352
+ * Author
353
+ *
354
+ * Describes the author of a particular entity
355
+ */
356
+ author: {
357
+ /**
358
+ * Deprecated. The name of this user in a format suitable for display. Max length
359
+ * is 255 characters.
360
+ *
361
+ * @example Jane Doe
362
+ */
363
+ name?: string;
364
+ /**
365
+ * The email address of the user. Used to associate the user with a Jira user. Max
366
+ * length is 255 characters.
367
+ *
368
+ * @example jane_doe@atlassian.com
369
+ */
370
+ email?: string;
371
+ /**
372
+ * Deprecated. The username of the user. Used to associate the user with a Jira
373
+ * user if there are multiple users for a given email. Max length is 255
374
+ * characters.
375
+ *
376
+ * @example jdoe
377
+ */
378
+ username?: string;
379
+ /**
380
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
381
+ *
382
+ * @example https://atlassian.com/account/jane_doe
383
+ */
384
+ url?: string;
385
+ /**
386
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
387
+ *
388
+ * @example https://atlassian.com/account/jane_doe/avatar/32
389
+ */
390
+ avatar?: string;
391
+ } & {
392
+ [key: string]: unknown;
393
+ };
394
+ /**
395
+ * The total number of files added, removed, or modified by this commit
396
+ *
397
+ * @example 1
398
+ */
399
+ fileCount: number;
400
+ /**
401
+ * The URL of this commit. Max length is 2000 characters.
402
+ *
403
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370
404
+ */
405
+ url: string;
406
+ /**
407
+ * List of file changes. Max number of files is 10. Currently, only the first 5
408
+ * files are shown (sorted by path) in the UI. This UI behavior may change without
409
+ * notice.
410
+ */
411
+ files?: ({
412
+ /**
413
+ * The path of the file. Max length is 1024 characters.
414
+ *
415
+ * @example /home/user/src/atlassian-connect-jira-example/README.md
416
+ */
417
+ path: string;
418
+ /**
419
+ * The URL of this file. Max length is 2000 characters.
420
+ *
421
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md
422
+ */
423
+ url: string;
424
+ /**
425
+ * The operation performed on this file
426
+ *
427
+ * @example MODIFIED
428
+ */
429
+ changeType:
430
+ | "ADDED"
431
+ | "COPIED"
432
+ | "DELETED"
433
+ | "MODIFIED"
434
+ | "MOVED"
435
+ | "UNKNOWN";
436
+ /**
437
+ * Number of lines added to the file
438
+ *
439
+ * @example 0
440
+ */
441
+ linesAdded: number;
442
+ /**
443
+ * Number of lines removed from the file
444
+ *
445
+ * @example 1
446
+ */
447
+ linesRemoved: number;
448
+ } & {
449
+ [key: string]: unknown;
450
+ })[];
451
+ /**
452
+ * The author timestamp of this commit. Formatted as a UTC ISO 8601 date time
453
+ * format.
454
+ *
455
+ * @example 2016-10-31T23:27:25+00:00
456
+ */
457
+ authorTimestamp: string;
458
+ /**
459
+ * Shortened identifier for this commit, used for display. Max length is 255
460
+ * characters.
461
+ *
462
+ * @example a7727ee
463
+ */
464
+ displayId: string;
465
+ } & {
466
+ [key: string]: unknown;
467
+ })[];
468
+ /**
469
+ * List of branches to update in this repository. Must not contain duplicate
470
+ * entity IDs. Maximum number of branches is 400.
471
+ */
472
+ branches?: ({
473
+ /**
474
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
475
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
476
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
477
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
478
+ * is 1024 characters.
479
+ *
480
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
481
+ */
482
+ id: string;
483
+ /**
484
+ * List of issues keys that this entity is associated with. They must be valid
485
+ * Jira issue keys.
486
+ *
487
+ * @example [
488
+ * "ISSUE-1",
489
+ * "TEST-2"
490
+ * ]
491
+ */
492
+ issueKeys: string[];
493
+ /**
494
+ * An ID used to apply an ordering to updates for this entity in the case of
495
+ * out-of-order receipt of update requests. This can be any monotonically
496
+ * increasing number. A suggested implementation is to use epoch millis from the
497
+ * provider system, but other alternatives are valid (e.g. a provider could store
498
+ * a counter against each entity and increment that on each update to Jira).
499
+ * Updates for an entity that are received with an updateSqeuenceId lower than
500
+ * what is currently stored will be ignored.
501
+ *
502
+ * @example 1523494301248
503
+ */
504
+ updateSequenceId: number;
505
+ /**
506
+ * The name of the branch. Max length is 512 characters.
507
+ *
508
+ * @example master
509
+ */
510
+ name: string;
511
+ /**
512
+ * Commit
513
+ *
514
+ * Represents a commit in the version control system.
515
+ */
516
+ lastCommit: {
517
+ /**
518
+ * The identifier or hash of the commit. Will be used for cross entity linking.
519
+ * Must be unique for all commits within a repository, i.e., only one commit can
520
+ * have ID 'X' in repository 'Y'. But adding, e.g., a branch with ID 'X' to
521
+ * repository 'Y' is acceptable. Only alphanumeric characters, and '~.-_', are
522
+ * allowed. Max length is 1024 characters
523
+ *
524
+ * @example a7727ee6350c33cdf90826dc21abaa26a5704370
525
+ */
526
+ id: string;
527
+ /**
528
+ * List of issues keys that this entity is associated with. They must be valid
529
+ * Jira issue keys.
530
+ *
531
+ * @example [
532
+ * "ISSUE-1",
533
+ * "TEST-2"
534
+ * ]
535
+ */
536
+ issueKeys: string[];
537
+ /**
538
+ * An ID used to apply an ordering to updates for this entity in the case of
539
+ * out-of-order receipt of update requests. This can be any monotonically
540
+ * increasing number. A suggested implementation is to use epoch millis from the
541
+ * provider system, but other alternatives are valid (e.g. a provider could store
542
+ * a counter against each entity and increment that on each update to Jira).
543
+ * Updates for an entity that are received with an updateSqeuenceId lower than
544
+ * what is currently stored will be ignored.
545
+ *
546
+ * @example 1523494301248
547
+ */
548
+ updateSequenceId: number;
549
+ /** Deprecated. Use the id field instead. */
550
+ hash?: string;
551
+ /**
552
+ * The set of flags for this commit
553
+ *
554
+ * @example [MERGE_COMMIT]
555
+ */
556
+ flags?: "MERGE_COMMIT"[];
557
+ /**
558
+ * The commit message. Max length is 1024 characters. If anything longer is
559
+ * supplied, it will be truncated down to 1024 characters.
560
+ *
561
+ * @example README.md edited online with Bitbucket
562
+ */
563
+ message: string;
564
+ /**
565
+ * Author
566
+ *
567
+ * Describes the author of a particular entity
568
+ */
569
+ author: {
570
+ /**
571
+ * Deprecated. The name of this user in a format suitable for display. Max length
572
+ * is 255 characters.
573
+ *
574
+ * @example Jane Doe
575
+ */
576
+ name?: string;
577
+ /**
578
+ * The email address of the user. Used to associate the user with a Jira user. Max
579
+ * length is 255 characters.
580
+ *
581
+ * @example jane_doe@atlassian.com
582
+ */
583
+ email?: string;
584
+ /**
585
+ * Deprecated. The username of the user. Used to associate the user with a Jira
586
+ * user if there are multiple users for a given email. Max length is 255
587
+ * characters.
588
+ *
589
+ * @example jdoe
590
+ */
591
+ username?: string;
592
+ /**
593
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
594
+ *
595
+ * @example https://atlassian.com/account/jane_doe
596
+ */
597
+ url?: string;
598
+ /**
599
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
600
+ *
601
+ * @example https://atlassian.com/account/jane_doe/avatar/32
602
+ */
603
+ avatar?: string;
604
+ } & {
605
+ [key: string]: unknown;
606
+ };
607
+ /**
608
+ * The total number of files added, removed, or modified by this commit
609
+ *
610
+ * @example 1
611
+ */
612
+ fileCount: number;
613
+ /**
614
+ * The URL of this commit. Max length is 2000 characters.
615
+ *
616
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370
617
+ */
618
+ url: string;
619
+ /**
620
+ * List of file changes. Max number of files is 10. Currently, only the first 5
621
+ * files are shown (sorted by path) in the UI. This UI behavior may change without
622
+ * notice.
623
+ */
624
+ files?: ({
625
+ /**
626
+ * The path of the file. Max length is 1024 characters.
627
+ *
628
+ * @example /home/user/src/atlassian-connect-jira-example/README.md
629
+ */
630
+ path: string;
631
+ /**
632
+ * The URL of this file. Max length is 2000 characters.
633
+ *
634
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md
635
+ */
636
+ url: string;
637
+ /**
638
+ * The operation performed on this file
639
+ *
640
+ * @example MODIFIED
641
+ */
642
+ changeType:
643
+ | "ADDED"
644
+ | "COPIED"
645
+ | "DELETED"
646
+ | "MODIFIED"
647
+ | "MOVED"
648
+ | "UNKNOWN";
649
+ /**
650
+ * Number of lines added to the file
651
+ *
652
+ * @example 0
653
+ */
654
+ linesAdded: number;
655
+ /**
656
+ * Number of lines removed from the file
657
+ *
658
+ * @example 1
659
+ */
660
+ linesRemoved: number;
661
+ } & {
662
+ [key: string]: unknown;
663
+ })[];
664
+ /**
665
+ * The author timestamp of this commit. Formatted as a UTC ISO 8601 date time
666
+ * format.
667
+ *
668
+ * @example 2016-10-31T23:27:25+00:00
669
+ */
670
+ authorTimestamp: string;
671
+ /**
672
+ * Shortened identifier for this commit, used for display. Max length is 255
673
+ * characters.
674
+ *
675
+ * @example a7727ee
676
+ */
677
+ displayId: string;
678
+ } & {
679
+ [key: string]: unknown;
680
+ };
681
+ /**
682
+ * The URL of the page for creating a pull request from this branch. Max length is
683
+ * 2000 characters.
684
+ *
685
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/new
686
+ */
687
+ createPullRequestUrl?: string;
688
+ /**
689
+ * The URL of the branch. Max length is 2000 characters.
690
+ *
691
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/master
692
+ */
693
+ url: string;
694
+ } & {
695
+ [key: string]: unknown;
696
+ })[];
697
+ /**
698
+ * List of pull requests to update in this repository. Must not contain duplicate
699
+ * entity IDs. Maximum number of pull requests is 400
700
+ */
701
+ pullRequests?: ({
702
+ /**
703
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
704
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
705
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
706
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
707
+ * is 1024 characters
708
+ *
709
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
710
+ */
711
+ id: string;
712
+ /**
713
+ * List of issues keys that this entity is associated with. They must be valid
714
+ * Jira issue keys.
715
+ *
716
+ * @example [
717
+ * "ISSUE-1",
718
+ * "TEST-2"
719
+ * ]
720
+ */
721
+ issueKeys: string[];
722
+ /**
723
+ * An ID used to apply an ordering to updates for this entity in the case of
724
+ * out-of-order receipt of update requests. This can be any monotonically
725
+ * increasing number. A suggested implementation is to use epoch millis from the
726
+ * provider system, but other alternatives are valid (e.g. a provider could store
727
+ * a counter against each entity and increment that on each update to Jira).
728
+ * Updates for an entity that are received with an updateSqeuenceId lower than
729
+ * what is currently stored will be ignored.
730
+ *
731
+ * @example 1523494301248
732
+ */
733
+ updateSequenceId: number;
734
+ /**
735
+ * The status of the pull request. In the case of concurrent updates, priority is
736
+ * given in the order OPEN, MERGED, DECLINED, UNKNOWN
737
+ *
738
+ * @example OPEN
739
+ */
740
+ status: "OPEN" | "MERGED" | "DECLINED" | "UNKNOWN";
741
+ /**
742
+ * Title of the pull request. Max length is 1024 characters.
743
+ *
744
+ * @example Pull request 2, fixing all the issues caused by pull request #1
745
+ */
746
+ title: string;
747
+ /**
748
+ * Author
749
+ *
750
+ * Describes the author of a particular entity
751
+ */
752
+ author: {
753
+ /**
754
+ * Deprecated. The name of this user in a format suitable for display. Max length
755
+ * is 255 characters.
756
+ *
757
+ * @example Jane Doe
758
+ */
759
+ name?: string;
760
+ /**
761
+ * The email address of the user. Used to associate the user with a Jira user. Max
762
+ * length is 255 characters.
763
+ *
764
+ * @example jane_doe@atlassian.com
765
+ */
766
+ email?: string;
767
+ /**
768
+ * Deprecated. The username of the user. Used to associate the user with a Jira
769
+ * user if there are multiple users for a given email. Max length is 255
770
+ * characters.
771
+ *
772
+ * @example jdoe
773
+ */
774
+ username?: string;
775
+ /**
776
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
777
+ *
778
+ * @example https://atlassian.com/account/jane_doe
779
+ */
780
+ url?: string;
781
+ /**
782
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
783
+ *
784
+ * @example https://atlassian.com/account/jane_doe/avatar/32
785
+ */
786
+ avatar?: string;
787
+ } & {
788
+ [key: string]: unknown;
789
+ };
790
+ /**
791
+ * The number of comments on the pull request
792
+ *
793
+ * @example 42
794
+ */
795
+ commentCount: number;
796
+ /**
797
+ * The name of the source branch of this PR. Max length is 255 characters.
798
+ *
799
+ * @example ISSUE-1-feature-branch
800
+ */
801
+ sourceBranch: string;
802
+ /**
803
+ * The url of the source branch of this PR. This is used to match this PR against
804
+ * the branch. Max length is 2000 characters.
805
+ *
806
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/ISSUE-1-feature-branch
807
+ */
808
+ sourceBranchUrl?: string;
809
+ /**
810
+ * The most recent update to this PR. Formatted as a UTC ISO 8601 date time format.
811
+ *
812
+ * @example 2016-10-31T23:27:25+00:00
813
+ */
814
+ lastUpdate: string;
815
+ /**
816
+ * The name of destination branch of this PR. Max length is 255 characters.
817
+ *
818
+ * @example master
819
+ */
820
+ destinationBranch?: string;
821
+ /**
822
+ * The url of the destination branch of this PR. Max length is 2000 characters.
823
+ *
824
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/master
825
+ */
826
+ destinationBranchUrl?: string;
827
+ /** The list of reviewers of this pull request */
828
+ reviewers?: ({
829
+ /**
830
+ * Deprecated. The name of this reviewer. Max length is 255 characters.
831
+ *
832
+ * @example Jane Doe
833
+ */
834
+ name?: string;
835
+ /**
836
+ * The approval status of this reviewer, default is UNAPPROVED.
837
+ *
838
+ * @example APPROVED
839
+ */
840
+ approvalStatus?: "APPROVED" | "UNAPPROVED";
841
+ /**
842
+ * Deprecated. The URL of the profile for this reviewer. Max length is 2000
843
+ * characters.
844
+ *
845
+ * @example https://atlassian.com/account/jane_doe
846
+ */
847
+ url?: string;
848
+ /**
849
+ * Deprecated. The URL of the avatar for this reviewer. Max length is 2000
850
+ * characters.
851
+ *
852
+ * @example https://atlassian.com/account/jane_doe/avatar/32
853
+ */
854
+ avatar?: string;
855
+ /**
856
+ * The email address of this reviewer. Max length is 254 characters.
857
+ *
858
+ * @example jane_doe@example.com
859
+ */
860
+ email?: string;
861
+ /**
862
+ * The Atlassian Account ID (AAID) of this reviewer. Max length is 128 characters.
863
+ *
864
+ * @example 655363:e4ca5e2d-a901-40e3-877e-bf5d22c0f130
865
+ */
866
+ accountId?: string;
867
+ } & {
868
+ [key: string]: unknown;
869
+ })[];
870
+ /**
871
+ * The URL of this pull request. Max length is 2000 characters.
872
+ *
873
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/2
874
+ */
875
+ url: string;
876
+ /**
877
+ * Shortened identifier for this pull request, used for display. Max length is 255
878
+ * characters.
879
+ *
880
+ * @example Pull request 2
881
+ */
882
+ displayId: string;
883
+ } & {
884
+ [key: string]: unknown;
885
+ })[];
886
+ /**
887
+ * The URL of the avatar for this repository. Max length is 2000 characters.
888
+ *
889
+ * @example http://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/avatar/32
890
+ */
891
+ avatar?: string;
892
+ /**
893
+ * Description of the avatar for this repository. Max length is 1024 characters.
894
+ *
895
+ * @example Avatar description
896
+ */
897
+ avatarDescription?: string;
898
+ /**
899
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
900
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
901
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
902
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
903
+ * is 1024 characters.
904
+ *
905
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
906
+ */
907
+ id: string;
908
+ /**
909
+ * An ID used to apply an ordering to updates for this entity in the case of
910
+ * out-of-order receipt of update requests. This can be any monotonically
911
+ * increasing number. A suggested implementation is to use epoch millis from the
912
+ * provider system, but other alternatives are valid (e.g. a provider could store
913
+ * a counter against each entity and increment that on each update to Jira).
914
+ * Updates for an entity that are received with an updateSqeuenceId lower than
915
+ * what is currently stored will be ignored.
916
+ *
917
+ * @example 1523494301248
918
+ */
919
+ updateSequenceId: number;
920
+ } & {
921
+ [key: string]: unknown;
922
+ }
923
+ > {
924
+ return this.getClientInstance()
925
+ .request({
926
+ path: "/rest/devinfo/0.10/repository/{repositoryId}",
927
+ method: "GET",
928
+ pathParams: {
929
+ repositoryId,
930
+ },
931
+ headers: {
932
+ Authorization: authorization,
933
+ },
934
+ })
935
+ .then(
936
+ this.getClientInstance().responseHandler({
937
+ 200: {
938
+ "application/json": "json",
939
+ },
940
+ }),
941
+ )
942
+ .then(
943
+ commonHttpClient.castResponse<{
944
+ status: 200;
945
+ mediaType: "application/json";
946
+ body: {
947
+ name: string;
948
+ description?: string;
949
+ forkOf?: string;
950
+ url: string;
951
+ commits?: ({
952
+ id: string;
953
+ issueKeys: string[];
954
+ updateSequenceId: number;
955
+ hash?: string;
956
+ flags?: "MERGE_COMMIT"[];
957
+ message: string;
958
+ author: {
959
+ name?: string;
960
+ email?: string;
961
+ username?: string;
962
+ url?: string;
963
+ avatar?: string;
964
+ } & {
965
+ [key: string]: unknown;
966
+ };
967
+ fileCount: number;
968
+ url: string;
969
+ files?: ({
970
+ path: string;
971
+ url: string;
972
+ changeType:
973
+ | "ADDED"
974
+ | "COPIED"
975
+ | "DELETED"
976
+ | "MODIFIED"
977
+ | "MOVED"
978
+ | "UNKNOWN";
979
+ linesAdded: number;
980
+ linesRemoved: number;
981
+ } & {
982
+ [key: string]: unknown;
983
+ })[];
984
+ authorTimestamp: string;
985
+ displayId: string;
986
+ } & {
987
+ [key: string]: unknown;
988
+ })[];
989
+ branches?: ({
990
+ id: string;
991
+ issueKeys: string[];
992
+ updateSequenceId: number;
993
+ name: string;
994
+ lastCommit: {
995
+ id: string;
996
+ issueKeys: string[];
997
+ updateSequenceId: number;
998
+ hash?: string;
999
+ flags?: "MERGE_COMMIT"[];
1000
+ message: string;
1001
+ author: {
1002
+ name?: string;
1003
+ email?: string;
1004
+ username?: string;
1005
+ url?: string;
1006
+ avatar?: string;
1007
+ } & {
1008
+ [key: string]: unknown;
1009
+ };
1010
+ fileCount: number;
1011
+ url: string;
1012
+ files?: ({
1013
+ path: string;
1014
+ url: string;
1015
+ changeType:
1016
+ | "ADDED"
1017
+ | "COPIED"
1018
+ | "DELETED"
1019
+ | "MODIFIED"
1020
+ | "MOVED"
1021
+ | "UNKNOWN";
1022
+ linesAdded: number;
1023
+ linesRemoved: number;
1024
+ } & {
1025
+ [key: string]: unknown;
1026
+ })[];
1027
+ authorTimestamp: string;
1028
+ displayId: string;
1029
+ } & {
1030
+ [key: string]: unknown;
1031
+ };
1032
+ createPullRequestUrl?: string;
1033
+ url: string;
1034
+ } & {
1035
+ [key: string]: unknown;
1036
+ })[];
1037
+ pullRequests?: ({
1038
+ id: string;
1039
+ issueKeys: string[];
1040
+ updateSequenceId: number;
1041
+ status: "OPEN" | "MERGED" | "DECLINED" | "UNKNOWN";
1042
+ title: string;
1043
+ author: {
1044
+ name?: string;
1045
+ email?: string;
1046
+ username?: string;
1047
+ url?: string;
1048
+ avatar?: string;
1049
+ } & {
1050
+ [key: string]: unknown;
1051
+ };
1052
+ commentCount: number;
1053
+ sourceBranch: string;
1054
+ sourceBranchUrl?: string;
1055
+ lastUpdate: string;
1056
+ destinationBranch?: string;
1057
+ destinationBranchUrl?: string;
1058
+ reviewers?: ({
1059
+ name?: string;
1060
+ approvalStatus?: "APPROVED" | "UNAPPROVED";
1061
+ url?: string;
1062
+ avatar?: string;
1063
+ email?: string;
1064
+ accountId?: string;
1065
+ } & {
1066
+ [key: string]: unknown;
1067
+ })[];
1068
+ url: string;
1069
+ displayId: string;
1070
+ } & {
1071
+ [key: string]: unknown;
1072
+ })[];
1073
+ avatar?: string;
1074
+ avatarDescription?: string;
1075
+ id: string;
1076
+ updateSequenceId: number;
1077
+ } & {
1078
+ [key: string]: unknown;
1079
+ };
1080
+ }>(),
1081
+ )
1082
+ .then(
1083
+ validationSchemaStorage.validator(
1084
+ "DevelopmentInformationService.getRepository.response",
1085
+ ),
1086
+ )
1087
+ .then(commonHttpClient.getBody);
1088
+ }
1089
+ /**
1090
+ * Stores development information provided in the request to make it available
1091
+ * when viewing issues in Jira. Existing repository and entity data for the same
1092
+ * ID will be replaced if the updateSequenceId of existing data is less than the
1093
+ * incoming data. Submissions are performed asynchronously. Submitted data will
1094
+ * eventually be available in Jira; most updates are available within a short
1095
+ * period of time, but may take some time during peak load and/or maintenance
1096
+ * times.
1097
+ *
1098
+ * @returns Submission accepted. Each submitted repository and entity that is of a valid
1099
+ * format will be eventually available in Jira.
1100
+ * @path {POST} /rest/devinfo/0.10/bulk
1101
+ */
1102
+ storeDevelopmentInformation({
1103
+ authorization,
1104
+ requestBody,
1105
+ }: {
1106
+ /**
1107
+ * All requests must be signed with either a Connect JWT token or OAuth token for
1108
+ * an on-premise integration that corresponds to an app installed in Jira. If the
1109
+ * JWT token corresponds to a Connect app that does not define the
1110
+ * jiraDevelopmentTool module it will be rejected with a 403. See
1111
+ * https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more
1112
+ * details about Connect JWT tokens. See
1113
+ * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
1114
+ * for details about on-premise integrations.
1115
+ */
1116
+ authorization: string;
1117
+ /** Request object, which contains development information */
1118
+ requestBody: {
1119
+ /**
1120
+ * List of repositories containing development information. Must not contain
1121
+ * duplicates. Maximum number of entities across all repositories is 1000.
1122
+ */
1123
+ repositories: ({
1124
+ /**
1125
+ * The name of this repository. Max length is 255 characters.
1126
+ *
1127
+ * @example atlassian-connect-jira-example
1128
+ */
1129
+ name: string;
1130
+ /**
1131
+ * Description of this repository. Max length is 1024 characters.
1132
+ *
1133
+ * @example The repository which stores code of the Atlassian Connect Add-on Devinfo
1134
+ * application.
1135
+ */
1136
+ description?: string;
1137
+ /**
1138
+ * The ID of the repository this repository was forked from, if it's a fork. Max
1139
+ * length is 1024 characters.
1140
+ *
1141
+ * @example 56c7c750-cee2-48e2-b920-d7706dfd11f7
1142
+ */
1143
+ forkOf?: string;
1144
+ /**
1145
+ * The URL of this repository. Max length is 2000 characters.
1146
+ *
1147
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example
1148
+ */
1149
+ url: string;
1150
+ /**
1151
+ * List of commits to update in this repository. Must not contain duplicate entity
1152
+ * IDs. Maximum number of commits is 400
1153
+ */
1154
+ commits?: ({
1155
+ /**
1156
+ * The identifier or hash of the commit. Will be used for cross entity linking.
1157
+ * Must be unique for all commits within a repository, i.e., only one commit can
1158
+ * have ID 'X' in repository 'Y'. But adding, e.g., a branch with ID 'X' to
1159
+ * repository 'Y' is acceptable. Only alphanumeric characters, and '~.-_', are
1160
+ * allowed. Max length is 1024 characters
1161
+ *
1162
+ * @example a7727ee6350c33cdf90826dc21abaa26a5704370
1163
+ */
1164
+ id: string;
1165
+ /**
1166
+ * List of issues keys that this entity is associated with. They must be valid
1167
+ * Jira issue keys.
1168
+ *
1169
+ * @example [
1170
+ * "ISSUE-1",
1171
+ * "TEST-2"
1172
+ * ]
1173
+ */
1174
+ issueKeys: string[];
1175
+ /**
1176
+ * An ID used to apply an ordering to updates for this entity in the case of
1177
+ * out-of-order receipt of update requests. This can be any monotonically
1178
+ * increasing number. A suggested implementation is to use epoch millis from the
1179
+ * provider system, but other alternatives are valid (e.g. a provider could store
1180
+ * a counter against each entity and increment that on each update to Jira).
1181
+ * Updates for an entity that are received with an updateSqeuenceId lower than
1182
+ * what is currently stored will be ignored.
1183
+ *
1184
+ * @example 1523494301248
1185
+ */
1186
+ updateSequenceId: number;
1187
+ /** Deprecated. Use the id field instead. */
1188
+ hash?: string;
1189
+ /**
1190
+ * The set of flags for this commit
1191
+ *
1192
+ * @example [MERGE_COMMIT]
1193
+ */
1194
+ flags?: "MERGE_COMMIT"[];
1195
+ /**
1196
+ * The commit message. Max length is 1024 characters. If anything longer is
1197
+ * supplied, it will be truncated down to 1024 characters.
1198
+ *
1199
+ * @example README.md edited online with Bitbucket
1200
+ */
1201
+ message: string;
1202
+ /**
1203
+ * Author
1204
+ *
1205
+ * Describes the author of a particular entity
1206
+ */
1207
+ author: {
1208
+ /**
1209
+ * Deprecated. The name of this user in a format suitable for display. Max length
1210
+ * is 255 characters.
1211
+ *
1212
+ * @example Jane Doe
1213
+ */
1214
+ name?: string;
1215
+ /**
1216
+ * The email address of the user. Used to associate the user with a Jira user. Max
1217
+ * length is 255 characters.
1218
+ *
1219
+ * @example jane_doe@atlassian.com
1220
+ */
1221
+ email?: string;
1222
+ /**
1223
+ * Deprecated. The username of the user. Used to associate the user with a Jira
1224
+ * user if there are multiple users for a given email. Max length is 255
1225
+ * characters.
1226
+ *
1227
+ * @example jdoe
1228
+ */
1229
+ username?: string;
1230
+ /**
1231
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
1232
+ *
1233
+ * @example https://atlassian.com/account/jane_doe
1234
+ */
1235
+ url?: string;
1236
+ /**
1237
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
1238
+ *
1239
+ * @example https://atlassian.com/account/jane_doe/avatar/32
1240
+ */
1241
+ avatar?: string;
1242
+ } & {
1243
+ [key: string]: unknown;
1244
+ };
1245
+ /**
1246
+ * The total number of files added, removed, or modified by this commit
1247
+ *
1248
+ * @example 1
1249
+ */
1250
+ fileCount: number;
1251
+ /**
1252
+ * The URL of this commit. Max length is 2000 characters.
1253
+ *
1254
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370
1255
+ */
1256
+ url: string;
1257
+ /**
1258
+ * List of file changes. Max number of files is 10. Currently, only the first 5
1259
+ * files are shown (sorted by path) in the UI. This UI behavior may change without
1260
+ * notice.
1261
+ */
1262
+ files?: ({
1263
+ /**
1264
+ * The path of the file. Max length is 1024 characters.
1265
+ *
1266
+ * @example /home/user/src/atlassian-connect-jira-example/README.md
1267
+ */
1268
+ path: string;
1269
+ /**
1270
+ * The URL of this file. Max length is 2000 characters.
1271
+ *
1272
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md
1273
+ */
1274
+ url: string;
1275
+ /**
1276
+ * The operation performed on this file
1277
+ *
1278
+ * @example MODIFIED
1279
+ */
1280
+ changeType:
1281
+ | "ADDED"
1282
+ | "COPIED"
1283
+ | "DELETED"
1284
+ | "MODIFIED"
1285
+ | "MOVED"
1286
+ | "UNKNOWN";
1287
+ /**
1288
+ * Number of lines added to the file
1289
+ *
1290
+ * @example 0
1291
+ */
1292
+ linesAdded: number;
1293
+ /**
1294
+ * Number of lines removed from the file
1295
+ *
1296
+ * @example 1
1297
+ */
1298
+ linesRemoved: number;
1299
+ } & {
1300
+ [key: string]: unknown;
1301
+ })[];
1302
+ /**
1303
+ * The author timestamp of this commit. Formatted as a UTC ISO 8601 date time
1304
+ * format.
1305
+ *
1306
+ * @example 2016-10-31T23:27:25+00:00
1307
+ */
1308
+ authorTimestamp: string;
1309
+ /**
1310
+ * Shortened identifier for this commit, used for display. Max length is 255
1311
+ * characters.
1312
+ *
1313
+ * @example a7727ee
1314
+ */
1315
+ displayId: string;
1316
+ } & {
1317
+ [key: string]: unknown;
1318
+ })[];
1319
+ /**
1320
+ * List of branches to update in this repository. Must not contain duplicate
1321
+ * entity IDs. Maximum number of branches is 400.
1322
+ */
1323
+ branches?: ({
1324
+ /**
1325
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
1326
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
1327
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
1328
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
1329
+ * is 1024 characters.
1330
+ *
1331
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
1332
+ */
1333
+ id: string;
1334
+ /**
1335
+ * List of issues keys that this entity is associated with. They must be valid
1336
+ * Jira issue keys.
1337
+ *
1338
+ * @example [
1339
+ * "ISSUE-1",
1340
+ * "TEST-2"
1341
+ * ]
1342
+ */
1343
+ issueKeys: string[];
1344
+ /**
1345
+ * An ID used to apply an ordering to updates for this entity in the case of
1346
+ * out-of-order receipt of update requests. This can be any monotonically
1347
+ * increasing number. A suggested implementation is to use epoch millis from the
1348
+ * provider system, but other alternatives are valid (e.g. a provider could store
1349
+ * a counter against each entity and increment that on each update to Jira).
1350
+ * Updates for an entity that are received with an updateSqeuenceId lower than
1351
+ * what is currently stored will be ignored.
1352
+ *
1353
+ * @example 1523494301248
1354
+ */
1355
+ updateSequenceId: number;
1356
+ /**
1357
+ * The name of the branch. Max length is 512 characters.
1358
+ *
1359
+ * @example master
1360
+ */
1361
+ name: string;
1362
+ /**
1363
+ * Commit
1364
+ *
1365
+ * Represents a commit in the version control system.
1366
+ */
1367
+ lastCommit: {
1368
+ /**
1369
+ * The identifier or hash of the commit. Will be used for cross entity linking.
1370
+ * Must be unique for all commits within a repository, i.e., only one commit can
1371
+ * have ID 'X' in repository 'Y'. But adding, e.g., a branch with ID 'X' to
1372
+ * repository 'Y' is acceptable. Only alphanumeric characters, and '~.-_', are
1373
+ * allowed. Max length is 1024 characters
1374
+ *
1375
+ * @example a7727ee6350c33cdf90826dc21abaa26a5704370
1376
+ */
1377
+ id: string;
1378
+ /**
1379
+ * List of issues keys that this entity is associated with. They must be valid
1380
+ * Jira issue keys.
1381
+ *
1382
+ * @example [
1383
+ * "ISSUE-1",
1384
+ * "TEST-2"
1385
+ * ]
1386
+ */
1387
+ issueKeys: string[];
1388
+ /**
1389
+ * An ID used to apply an ordering to updates for this entity in the case of
1390
+ * out-of-order receipt of update requests. This can be any monotonically
1391
+ * increasing number. A suggested implementation is to use epoch millis from the
1392
+ * provider system, but other alternatives are valid (e.g. a provider could store
1393
+ * a counter against each entity and increment that on each update to Jira).
1394
+ * Updates for an entity that are received with an updateSqeuenceId lower than
1395
+ * what is currently stored will be ignored.
1396
+ *
1397
+ * @example 1523494301248
1398
+ */
1399
+ updateSequenceId: number;
1400
+ /** Deprecated. Use the id field instead. */
1401
+ hash?: string;
1402
+ /**
1403
+ * The set of flags for this commit
1404
+ *
1405
+ * @example [MERGE_COMMIT]
1406
+ */
1407
+ flags?: "MERGE_COMMIT"[];
1408
+ /**
1409
+ * The commit message. Max length is 1024 characters. If anything longer is
1410
+ * supplied, it will be truncated down to 1024 characters.
1411
+ *
1412
+ * @example README.md edited online with Bitbucket
1413
+ */
1414
+ message: string;
1415
+ /**
1416
+ * Author
1417
+ *
1418
+ * Describes the author of a particular entity
1419
+ */
1420
+ author: {
1421
+ /**
1422
+ * Deprecated. The name of this user in a format suitable for display. Max length
1423
+ * is 255 characters.
1424
+ *
1425
+ * @example Jane Doe
1426
+ */
1427
+ name?: string;
1428
+ /**
1429
+ * The email address of the user. Used to associate the user with a Jira user. Max
1430
+ * length is 255 characters.
1431
+ *
1432
+ * @example jane_doe@atlassian.com
1433
+ */
1434
+ email?: string;
1435
+ /**
1436
+ * Deprecated. The username of the user. Used to associate the user with a Jira
1437
+ * user if there are multiple users for a given email. Max length is 255
1438
+ * characters.
1439
+ *
1440
+ * @example jdoe
1441
+ */
1442
+ username?: string;
1443
+ /**
1444
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
1445
+ *
1446
+ * @example https://atlassian.com/account/jane_doe
1447
+ */
1448
+ url?: string;
1449
+ /**
1450
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
1451
+ *
1452
+ * @example https://atlassian.com/account/jane_doe/avatar/32
1453
+ */
1454
+ avatar?: string;
1455
+ } & {
1456
+ [key: string]: unknown;
1457
+ };
1458
+ /**
1459
+ * The total number of files added, removed, or modified by this commit
1460
+ *
1461
+ * @example 1
1462
+ */
1463
+ fileCount: number;
1464
+ /**
1465
+ * The URL of this commit. Max length is 2000 characters.
1466
+ *
1467
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370
1468
+ */
1469
+ url: string;
1470
+ /**
1471
+ * List of file changes. Max number of files is 10. Currently, only the first 5
1472
+ * files are shown (sorted by path) in the UI. This UI behavior may change without
1473
+ * notice.
1474
+ */
1475
+ files?: ({
1476
+ /**
1477
+ * The path of the file. Max length is 1024 characters.
1478
+ *
1479
+ * @example /home/user/src/atlassian-connect-jira-example/README.md
1480
+ */
1481
+ path: string;
1482
+ /**
1483
+ * The URL of this file. Max length is 2000 characters.
1484
+ *
1485
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md
1486
+ */
1487
+ url: string;
1488
+ /**
1489
+ * The operation performed on this file
1490
+ *
1491
+ * @example MODIFIED
1492
+ */
1493
+ changeType:
1494
+ | "ADDED"
1495
+ | "COPIED"
1496
+ | "DELETED"
1497
+ | "MODIFIED"
1498
+ | "MOVED"
1499
+ | "UNKNOWN";
1500
+ /**
1501
+ * Number of lines added to the file
1502
+ *
1503
+ * @example 0
1504
+ */
1505
+ linesAdded: number;
1506
+ /**
1507
+ * Number of lines removed from the file
1508
+ *
1509
+ * @example 1
1510
+ */
1511
+ linesRemoved: number;
1512
+ } & {
1513
+ [key: string]: unknown;
1514
+ })[];
1515
+ /**
1516
+ * The author timestamp of this commit. Formatted as a UTC ISO 8601 date time
1517
+ * format.
1518
+ *
1519
+ * @example 2016-10-31T23:27:25+00:00
1520
+ */
1521
+ authorTimestamp: string;
1522
+ /**
1523
+ * Shortened identifier for this commit, used for display. Max length is 255
1524
+ * characters.
1525
+ *
1526
+ * @example a7727ee
1527
+ */
1528
+ displayId: string;
1529
+ } & {
1530
+ [key: string]: unknown;
1531
+ };
1532
+ /**
1533
+ * The URL of the page for creating a pull request from this branch. Max length is
1534
+ * 2000 characters.
1535
+ *
1536
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/new
1537
+ */
1538
+ createPullRequestUrl?: string;
1539
+ /**
1540
+ * The URL of the branch. Max length is 2000 characters.
1541
+ *
1542
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/master
1543
+ */
1544
+ url: string;
1545
+ } & {
1546
+ [key: string]: unknown;
1547
+ })[];
1548
+ /**
1549
+ * List of pull requests to update in this repository. Must not contain duplicate
1550
+ * entity IDs. Maximum number of pull requests is 400
1551
+ */
1552
+ pullRequests?: ({
1553
+ /**
1554
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
1555
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
1556
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
1557
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
1558
+ * is 1024 characters
1559
+ *
1560
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
1561
+ */
1562
+ id: string;
1563
+ /**
1564
+ * List of issues keys that this entity is associated with. They must be valid
1565
+ * Jira issue keys.
1566
+ *
1567
+ * @example [
1568
+ * "ISSUE-1",
1569
+ * "TEST-2"
1570
+ * ]
1571
+ */
1572
+ issueKeys: string[];
1573
+ /**
1574
+ * An ID used to apply an ordering to updates for this entity in the case of
1575
+ * out-of-order receipt of update requests. This can be any monotonically
1576
+ * increasing number. A suggested implementation is to use epoch millis from the
1577
+ * provider system, but other alternatives are valid (e.g. a provider could store
1578
+ * a counter against each entity and increment that on each update to Jira).
1579
+ * Updates for an entity that are received with an updateSqeuenceId lower than
1580
+ * what is currently stored will be ignored.
1581
+ *
1582
+ * @example 1523494301248
1583
+ */
1584
+ updateSequenceId: number;
1585
+ /**
1586
+ * The status of the pull request. In the case of concurrent updates, priority is
1587
+ * given in the order OPEN, MERGED, DECLINED, UNKNOWN
1588
+ *
1589
+ * @example OPEN
1590
+ */
1591
+ status: "OPEN" | "MERGED" | "DECLINED" | "UNKNOWN";
1592
+ /**
1593
+ * Title of the pull request. Max length is 1024 characters.
1594
+ *
1595
+ * @example Pull request 2, fixing all the issues caused by pull request #1
1596
+ */
1597
+ title: string;
1598
+ /**
1599
+ * Author
1600
+ *
1601
+ * Describes the author of a particular entity
1602
+ */
1603
+ author: {
1604
+ /**
1605
+ * Deprecated. The name of this user in a format suitable for display. Max length
1606
+ * is 255 characters.
1607
+ *
1608
+ * @example Jane Doe
1609
+ */
1610
+ name?: string;
1611
+ /**
1612
+ * The email address of the user. Used to associate the user with a Jira user. Max
1613
+ * length is 255 characters.
1614
+ *
1615
+ * @example jane_doe@atlassian.com
1616
+ */
1617
+ email?: string;
1618
+ /**
1619
+ * Deprecated. The username of the user. Used to associate the user with a Jira
1620
+ * user if there are multiple users for a given email. Max length is 255
1621
+ * characters.
1622
+ *
1623
+ * @example jdoe
1624
+ */
1625
+ username?: string;
1626
+ /**
1627
+ * Deprecated. The URL of the profile for this user. Max length is 2000 characters.
1628
+ *
1629
+ * @example https://atlassian.com/account/jane_doe
1630
+ */
1631
+ url?: string;
1632
+ /**
1633
+ * Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
1634
+ *
1635
+ * @example https://atlassian.com/account/jane_doe/avatar/32
1636
+ */
1637
+ avatar?: string;
1638
+ } & {
1639
+ [key: string]: unknown;
1640
+ };
1641
+ /**
1642
+ * The number of comments on the pull request
1643
+ *
1644
+ * @example 42
1645
+ */
1646
+ commentCount: number;
1647
+ /**
1648
+ * The name of the source branch of this PR. Max length is 255 characters.
1649
+ *
1650
+ * @example ISSUE-1-feature-branch
1651
+ */
1652
+ sourceBranch: string;
1653
+ /**
1654
+ * The url of the source branch of this PR. This is used to match this PR against
1655
+ * the branch. Max length is 2000 characters.
1656
+ *
1657
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/ISSUE-1-feature-branch
1658
+ */
1659
+ sourceBranchUrl?: string;
1660
+ /**
1661
+ * The most recent update to this PR. Formatted as a UTC ISO 8601 date time format.
1662
+ *
1663
+ * @example 2016-10-31T23:27:25+00:00
1664
+ */
1665
+ lastUpdate: string;
1666
+ /**
1667
+ * The name of destination branch of this PR. Max length is 255 characters.
1668
+ *
1669
+ * @example master
1670
+ */
1671
+ destinationBranch?: string;
1672
+ /**
1673
+ * The url of the destination branch of this PR. Max length is 2000 characters.
1674
+ *
1675
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/master
1676
+ */
1677
+ destinationBranchUrl?: string;
1678
+ /** The list of reviewers of this pull request */
1679
+ reviewers?: ({
1680
+ /**
1681
+ * Deprecated. The name of this reviewer. Max length is 255 characters.
1682
+ *
1683
+ * @example Jane Doe
1684
+ */
1685
+ name?: string;
1686
+ /**
1687
+ * The approval status of this reviewer, default is UNAPPROVED.
1688
+ *
1689
+ * @example APPROVED
1690
+ */
1691
+ approvalStatus?: "APPROVED" | "UNAPPROVED";
1692
+ /**
1693
+ * Deprecated. The URL of the profile for this reviewer. Max length is 2000
1694
+ * characters.
1695
+ *
1696
+ * @example https://atlassian.com/account/jane_doe
1697
+ */
1698
+ url?: string;
1699
+ /**
1700
+ * Deprecated. The URL of the avatar for this reviewer. Max length is 2000
1701
+ * characters.
1702
+ *
1703
+ * @example https://atlassian.com/account/jane_doe/avatar/32
1704
+ */
1705
+ avatar?: string;
1706
+ /**
1707
+ * The email address of this reviewer. Max length is 254 characters.
1708
+ *
1709
+ * @example jane_doe@example.com
1710
+ */
1711
+ email?: string;
1712
+ /**
1713
+ * The Atlassian Account ID (AAID) of this reviewer. Max length is 128 characters.
1714
+ *
1715
+ * @example 655363:e4ca5e2d-a901-40e3-877e-bf5d22c0f130
1716
+ */
1717
+ accountId?: string;
1718
+ } & {
1719
+ [key: string]: unknown;
1720
+ })[];
1721
+ /**
1722
+ * The URL of this pull request. Max length is 2000 characters.
1723
+ *
1724
+ * @example https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/2
1725
+ */
1726
+ url: string;
1727
+ /**
1728
+ * Shortened identifier for this pull request, used for display. Max length is 255
1729
+ * characters.
1730
+ *
1731
+ * @example Pull request 2
1732
+ */
1733
+ displayId: string;
1734
+ } & {
1735
+ [key: string]: unknown;
1736
+ })[];
1737
+ /**
1738
+ * The URL of the avatar for this repository. Max length is 2000 characters.
1739
+ *
1740
+ * @example http://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/avatar/32
1741
+ */
1742
+ avatar?: string;
1743
+ /**
1744
+ * Description of the avatar for this repository. Max length is 1024 characters.
1745
+ *
1746
+ * @example Avatar description
1747
+ */
1748
+ avatarDescription?: string;
1749
+ /**
1750
+ * The ID of this entity. Will be used for cross entity linking. Must be unique by
1751
+ * entity type within a repository, i.e., only one commit can have ID 'X' in
1752
+ * repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
1753
+ * acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
1754
+ * is 1024 characters.
1755
+ *
1756
+ * @example c6c7c750-cee2-48e2-b920-d7706dfd11f9
1757
+ */
1758
+ id: string;
1759
+ /**
1760
+ * An ID used to apply an ordering to updates for this entity in the case of
1761
+ * out-of-order receipt of update requests. This can be any monotonically
1762
+ * increasing number. A suggested implementation is to use epoch millis from the
1763
+ * provider system, but other alternatives are valid (e.g. a provider could store
1764
+ * a counter against each entity and increment that on each update to Jira).
1765
+ * Updates for an entity that are received with an updateSqeuenceId lower than
1766
+ * what is currently stored will be ignored.
1767
+ *
1768
+ * @example 1523494301248
1769
+ */
1770
+ updateSequenceId: number;
1771
+ } & {
1772
+ [key: string]: unknown;
1773
+ })[];
1774
+ /**
1775
+ * Flag to prevent automatic issue transitions and smart commits being fired,
1776
+ * default is false.
1777
+ */
1778
+ preventTransitions?: boolean;
1779
+ /**
1780
+ * Indicates the operation being performed by the provider system when sending
1781
+ * this data. "NORMAL" - Data received during normal operation (e.g. a user
1782
+ * pushing a branch). "BACKFILL" - Data received while backfilling existing data
1783
+ * (e.g. indexing a newly connected account). Default is "NORMAL". Please note
1784
+ * that "BACKFILL" operations have a much higher rate-limiting threshold but are
1785
+ * also processed slower in comparison to "NORMAL" operations.
1786
+ *
1787
+ * @example NORMAL
1788
+ */
1789
+ operationType?: "NORMAL" | "BACKFILL";
1790
+ /**
1791
+ * Arbitrary properties to tag the submitted repositories with. These properties
1792
+ * can be used for delete operations to e.g. clean up all development information
1793
+ * associated with an account in the event that the account is removed from the
1794
+ * provider system. Note that these properties will never be returned with
1795
+ * repository or entity data. They are not intended for use as metadata to
1796
+ * associate with a repository. Maximum length of each key or value is 255
1797
+ * characters. Maximum allowed number of properties key/value pairs is 5.
1798
+ * Properties keys cannot start with '_' character. Properties keys cannot contain
1799
+ * ':' character.
1800
+ */
1801
+ properties?: {
1802
+ [key: string]: string;
1803
+ };
1804
+ /**
1805
+ * ProviderMetadata
1806
+ *
1807
+ * Information about the provider. This is useful for auditing, logging,
1808
+ * debugging, and other internal uses. It is not considered private information.
1809
+ * Hence, it may not contain personally identifiable information.
1810
+ */
1811
+ providerMetadata?: {
1812
+ /**
1813
+ * An optional name of the source of the development information data.
1814
+ *
1815
+ * @example Bitbucket Server 6.7.2
1816
+ */
1817
+ product?: string;
1818
+ } & {
1819
+ [key: string]: unknown;
1820
+ };
1821
+ } & {
1822
+ [key: string]: unknown;
1823
+ };
1824
+ }): Promise<
1825
+ {
1826
+ /**
1827
+ * The IDs of devinfo entities that have been accepted for submission grouped by
1828
+ * their repository IDs. Note that a devinfo entity that isn't updated due to it's
1829
+ * updateSequenceId being out of order is not considered a failed submission.
1830
+ */
1831
+ acceptedDevinfoEntities?: {
1832
+ /**
1833
+ * EntityIds
1834
+ *
1835
+ * IDs of entities grouped by entity type
1836
+ */
1837
+ [entityIds: string]: {
1838
+ /** Commits IDs */
1839
+ commits?: string[];
1840
+ /** Branch IDs */
1841
+ branches?: string[];
1842
+ /** Pull request IDs */
1843
+ pullRequests?: string[];
1844
+ } & {
1845
+ [key: string]: unknown;
1846
+ };
1847
+ };
1848
+ /**
1849
+ * IDs of devinfo entities that have not been accepted for submission and caused
1850
+ * error descriptions, usually due to a problem with the request data. The
1851
+ * entities (if present) will be grouped by their repository id and type. Entity
1852
+ * IDs are listed with errors associated with that devinfo entity that have
1853
+ * prevented it being submitted.
1854
+ */
1855
+ failedDevinfoEntities?: {
1856
+ /**
1857
+ * RepositoryErrors
1858
+ *
1859
+ * Represents errors related to a particular repository and its entities
1860
+ */
1861
+ [repositoryErrors: string]: {
1862
+ /** Repository errors */
1863
+ errorMessages?: ({
1864
+ /** A human-readable message describing the error. */
1865
+ message: string;
1866
+ /**
1867
+ * An optional trace ID that can be used by Jira developers to locate the source
1868
+ * of the error.
1869
+ */
1870
+ errorTraceId?: string;
1871
+ } & {
1872
+ [key: string]: unknown;
1873
+ })[];
1874
+ /** Commits errors */
1875
+ commits?: ({
1876
+ /** Entity id */
1877
+ id: string;
1878
+ /** Error message */
1879
+ errorMessages?: ({
1880
+ /** A human-readable message describing the error. */
1881
+ message: string;
1882
+ /**
1883
+ * An optional trace ID that can be used by Jira developers to locate the source
1884
+ * of the error.
1885
+ */
1886
+ errorTraceId?: string;
1887
+ } & {
1888
+ [key: string]: unknown;
1889
+ })[];
1890
+ } & {
1891
+ [key: string]: unknown;
1892
+ })[];
1893
+ /** Branches errors */
1894
+ branches?: ({
1895
+ /** Entity id */
1896
+ id: string;
1897
+ /** Error message */
1898
+ errorMessages?: ({
1899
+ /** A human-readable message describing the error. */
1900
+ message: string;
1901
+ /**
1902
+ * An optional trace ID that can be used by Jira developers to locate the source
1903
+ * of the error.
1904
+ */
1905
+ errorTraceId?: string;
1906
+ } & {
1907
+ [key: string]: unknown;
1908
+ })[];
1909
+ } & {
1910
+ [key: string]: unknown;
1911
+ })[];
1912
+ /** Pull requests errors */
1913
+ pullRequests?: ({
1914
+ /** Entity id */
1915
+ id: string;
1916
+ /** Error message */
1917
+ errorMessages?: ({
1918
+ /** A human-readable message describing the error. */
1919
+ message: string;
1920
+ /**
1921
+ * An optional trace ID that can be used by Jira developers to locate the source
1922
+ * of the error.
1923
+ */
1924
+ errorTraceId?: string;
1925
+ } & {
1926
+ [key: string]: unknown;
1927
+ })[];
1928
+ } & {
1929
+ [key: string]: unknown;
1930
+ })[];
1931
+ } & {
1932
+ [key: string]: unknown;
1933
+ };
1934
+ };
1935
+ /**
1936
+ * Issue keys that are not known on this Jira instance (if any). These may be
1937
+ * invalid keys (e.g. `UTF-8` is sometimes incorrectly identified as a Jira issue
1938
+ * key), or they may be for projects that no longer exist. If a devinfo entity has
1939
+ * been associated with issue keys other than those in this array it will still be
1940
+ * stored against those valid keys.
1941
+ */
1942
+ unknownIssueKeys?: string[];
1943
+ } & {
1944
+ [key: string]: unknown;
1945
+ }
1946
+ > {
1947
+ return this.getClientInstance()
1948
+ .request({
1949
+ path: "/rest/devinfo/0.10/bulk",
1950
+ method: "POST",
1951
+ headers: {
1952
+ Authorization: authorization,
1953
+ "Content-Type": "application/json",
1954
+ },
1955
+ body: requestBody,
1956
+ })
1957
+ .then(
1958
+ this.getClientInstance().responseHandler({
1959
+ 202: {
1960
+ "application/json": "json",
1961
+ },
1962
+ }),
1963
+ )
1964
+ .then(
1965
+ commonHttpClient.castResponse<{
1966
+ status: 202;
1967
+ mediaType: "application/json";
1968
+ body: {
1969
+ acceptedDevinfoEntities?: {
1970
+ [entityIds: string]: {
1971
+ commits?: string[];
1972
+ branches?: string[];
1973
+ pullRequests?: string[];
1974
+ } & {
1975
+ [key: string]: unknown;
1976
+ };
1977
+ };
1978
+ failedDevinfoEntities?: {
1979
+ [repositoryErrors: string]: {
1980
+ errorMessages?: ({
1981
+ message: string;
1982
+ errorTraceId?: string;
1983
+ } & {
1984
+ [key: string]: unknown;
1985
+ })[];
1986
+ commits?: ({
1987
+ id: string;
1988
+ errorMessages?: ({
1989
+ message: string;
1990
+ errorTraceId?: string;
1991
+ } & {
1992
+ [key: string]: unknown;
1993
+ })[];
1994
+ } & {
1995
+ [key: string]: unknown;
1996
+ })[];
1997
+ branches?: ({
1998
+ id: string;
1999
+ errorMessages?: ({
2000
+ message: string;
2001
+ errorTraceId?: string;
2002
+ } & {
2003
+ [key: string]: unknown;
2004
+ })[];
2005
+ } & {
2006
+ [key: string]: unknown;
2007
+ })[];
2008
+ pullRequests?: ({
2009
+ id: string;
2010
+ errorMessages?: ({
2011
+ message: string;
2012
+ errorTraceId?: string;
2013
+ } & {
2014
+ [key: string]: unknown;
2015
+ })[];
2016
+ } & {
2017
+ [key: string]: unknown;
2018
+ })[];
2019
+ } & {
2020
+ [key: string]: unknown;
2021
+ };
2022
+ };
2023
+ unknownIssueKeys?: string[];
2024
+ } & {
2025
+ [key: string]: unknown;
2026
+ };
2027
+ }>(),
2028
+ )
2029
+ .then(
2030
+ validationSchemaStorage.validator(
2031
+ "DevelopmentInformationService.storeDevelopmentInformation.response",
2032
+ ),
2033
+ )
2034
+ .then(commonHttpClient.getBody);
2035
+ }
2036
+ static initialize() {
2037
+ validationSchemaStorage.registerExtensible(
2038
+ "DevelopmentInformationService.storeDevelopmentInformation.response",
2039
+ z
2040
+ .object({
2041
+ status: z.literal(202),
2042
+ mediaType: z.literal("application/json"),
2043
+ body: z
2044
+ .object({
2045
+ acceptedDevinfoEntities: z
2046
+ .object({})
2047
+ .catchall(
2048
+ z
2049
+ .object({
2050
+ commits: z.array(z.string()).optional(),
2051
+ branches: z.array(z.string()).optional(),
2052
+ pullRequests: z.array(z.string()).optional(),
2053
+ })
2054
+ .catchall(z.unknown()),
2055
+ )
2056
+ .optional(),
2057
+ failedDevinfoEntities: z
2058
+ .object({})
2059
+ .catchall(
2060
+ z
2061
+ .object({
2062
+ errorMessages: z
2063
+ .array(
2064
+ z
2065
+ .object({
2066
+ message: z.string(),
2067
+ errorTraceId: z.string().optional(),
2068
+ })
2069
+ .catchall(z.unknown()),
2070
+ )
2071
+ .optional(),
2072
+ commits: z
2073
+ .array(
2074
+ z
2075
+ .object({
2076
+ id: z.string(),
2077
+ errorMessages: z
2078
+ .array(
2079
+ z
2080
+ .object({
2081
+ message: z.string(),
2082
+ errorTraceId: z.string().optional(),
2083
+ })
2084
+ .catchall(z.unknown()),
2085
+ )
2086
+ .optional(),
2087
+ })
2088
+ .catchall(z.unknown()),
2089
+ )
2090
+ .optional(),
2091
+ branches: z
2092
+ .array(
2093
+ z
2094
+ .object({
2095
+ id: z.string(),
2096
+ errorMessages: z
2097
+ .array(
2098
+ z
2099
+ .object({
2100
+ message: z.string(),
2101
+ errorTraceId: z.string().optional(),
2102
+ })
2103
+ .catchall(z.unknown()),
2104
+ )
2105
+ .optional(),
2106
+ })
2107
+ .catchall(z.unknown()),
2108
+ )
2109
+ .optional(),
2110
+ pullRequests: z
2111
+ .array(
2112
+ z
2113
+ .object({
2114
+ id: z.string(),
2115
+ errorMessages: z
2116
+ .array(
2117
+ z
2118
+ .object({
2119
+ message: z.string(),
2120
+ errorTraceId: z.string().optional(),
2121
+ })
2122
+ .catchall(z.unknown()),
2123
+ )
2124
+ .optional(),
2125
+ })
2126
+ .catchall(z.unknown()),
2127
+ )
2128
+ .optional(),
2129
+ })
2130
+ .catchall(z.unknown()),
2131
+ )
2132
+ .optional(),
2133
+ unknownIssueKeys: z.array(z.string()).optional(),
2134
+ })
2135
+ .catchall(z.unknown()),
2136
+ })
2137
+ .describe(
2138
+ "DevelopmentInformationService.storeDevelopmentInformation.response",
2139
+ ),
2140
+ );
2141
+ validationSchemaStorage.registerExtensible(
2142
+ "DevelopmentInformationService.existsByProperties.response",
2143
+ z
2144
+ .object({
2145
+ status: z.literal(200),
2146
+ mediaType: z.literal("application/json"),
2147
+ body: z
2148
+ .object({
2149
+ hasDataMatchingProperties: z.boolean().optional(),
2150
+ })
2151
+ .catchall(z.unknown()),
2152
+ })
2153
+ .describe("DevelopmentInformationService.existsByProperties.response"),
2154
+ );
2155
+ validationSchemaStorage.registerExtensible(
2156
+ "DevelopmentInformationService.getRepository.response",
2157
+ z
2158
+ .object({
2159
+ status: z.literal(200),
2160
+ mediaType: z.literal("application/json"),
2161
+ body: z
2162
+ .object({
2163
+ name: z.string().max(255),
2164
+ description: z.string().max(1024).optional(),
2165
+ forkOf: z.string().max(1024).optional(),
2166
+ url: z.string().max(2000),
2167
+ commits: z
2168
+ .array(
2169
+ z
2170
+ .object({
2171
+ id: z.string(),
2172
+ issueKeys: z.array(z.string()).min(1).max(500),
2173
+ updateSequenceId: z.number().int(),
2174
+ hash: z.string().max(255).optional(),
2175
+ flags: z
2176
+ .array(z.enum(["MERGE_COMMIT"]))
2177
+ .superRefine((items, ctx) => {
2178
+ if (new Set(items).size !== items.length) {
2179
+ ctx.addIssue({
2180
+ code: z.ZodIssueCode.custom,
2181
+ path: [],
2182
+ message: "Array items must be unique",
2183
+ });
2184
+ }
2185
+ })
2186
+ .optional(),
2187
+ message: z.string().max(1024),
2188
+ author: z
2189
+ .object({
2190
+ name: z.string().max(255).optional(),
2191
+ email: z.string().max(255).optional(),
2192
+ username: z.string().max(255).optional(),
2193
+ url: z.string().max(2000).optional(),
2194
+ avatar: z.string().max(2000).optional(),
2195
+ })
2196
+ .catchall(z.unknown()),
2197
+ fileCount: z.number().int().min(0),
2198
+ url: z.string().max(2000),
2199
+ files: z
2200
+ .array(
2201
+ z
2202
+ .object({
2203
+ path: z.string().max(1024),
2204
+ url: z.string().max(2000),
2205
+ changeType: z.enum([
2206
+ "ADDED",
2207
+ "COPIED",
2208
+ "DELETED",
2209
+ "MODIFIED",
2210
+ "MOVED",
2211
+ "UNKNOWN",
2212
+ ]),
2213
+ linesAdded: z.number().int().min(0),
2214
+ linesRemoved: z.number().int().min(0),
2215
+ })
2216
+ .catchall(z.unknown()),
2217
+ )
2218
+ .max(10)
2219
+ .optional(),
2220
+ authorTimestamp: z.string(),
2221
+ displayId: z.string().max(255),
2222
+ })
2223
+ .catchall(z.unknown()),
2224
+ )
2225
+ .min(0)
2226
+ .max(400)
2227
+ .optional(),
2228
+ branches: z
2229
+ .array(
2230
+ z
2231
+ .object({
2232
+ id: z.string().max(1024),
2233
+ issueKeys: z.array(z.string()).min(1).max(500),
2234
+ updateSequenceId: z.number().int(),
2235
+ name: z.string().max(512),
2236
+ lastCommit: z
2237
+ .object({
2238
+ id: z.string(),
2239
+ issueKeys: z.array(z.string()).min(1).max(500),
2240
+ updateSequenceId: z.number().int(),
2241
+ hash: z.string().max(255).optional(),
2242
+ flags: z
2243
+ .array(z.enum(["MERGE_COMMIT"]))
2244
+ .superRefine((items, ctx) => {
2245
+ if (new Set(items).size !== items.length) {
2246
+ ctx.addIssue({
2247
+ code: z.ZodIssueCode.custom,
2248
+ path: [],
2249
+ message: "Array items must be unique",
2250
+ });
2251
+ }
2252
+ })
2253
+ .optional(),
2254
+ message: z.string().max(1024),
2255
+ author: z
2256
+ .object({
2257
+ name: z.string().max(255).optional(),
2258
+ email: z.string().max(255).optional(),
2259
+ username: z.string().max(255).optional(),
2260
+ url: z.string().max(2000).optional(),
2261
+ avatar: z.string().max(2000).optional(),
2262
+ })
2263
+ .catchall(z.unknown()),
2264
+ fileCount: z.number().int().min(0),
2265
+ url: z.string().max(2000),
2266
+ files: z
2267
+ .array(
2268
+ z
2269
+ .object({
2270
+ path: z.string().max(1024),
2271
+ url: z.string().max(2000),
2272
+ changeType: z.enum([
2273
+ "ADDED",
2274
+ "COPIED",
2275
+ "DELETED",
2276
+ "MODIFIED",
2277
+ "MOVED",
2278
+ "UNKNOWN",
2279
+ ]),
2280
+ linesAdded: z.number().int().min(0),
2281
+ linesRemoved: z.number().int().min(0),
2282
+ })
2283
+ .catchall(z.unknown()),
2284
+ )
2285
+ .max(10)
2286
+ .optional(),
2287
+ authorTimestamp: z.string(),
2288
+ displayId: z.string().max(255),
2289
+ })
2290
+ .catchall(z.unknown()),
2291
+ createPullRequestUrl: z.string().max(2000).optional(),
2292
+ url: z.string().max(2000),
2293
+ })
2294
+ .catchall(z.unknown()),
2295
+ )
2296
+ .min(0)
2297
+ .max(400)
2298
+ .optional(),
2299
+ pullRequests: z
2300
+ .array(
2301
+ z
2302
+ .object({
2303
+ id: z.string(),
2304
+ issueKeys: z.array(z.string()).min(1).max(500),
2305
+ updateSequenceId: z.number().int(),
2306
+ status: z.enum(["OPEN", "MERGED", "DECLINED", "UNKNOWN"]),
2307
+ title: z.string().max(1024),
2308
+ author: z
2309
+ .object({
2310
+ name: z.string().max(255).optional(),
2311
+ email: z.string().max(255).optional(),
2312
+ username: z.string().max(255).optional(),
2313
+ url: z.string().max(2000).optional(),
2314
+ avatar: z.string().max(2000).optional(),
2315
+ })
2316
+ .catchall(z.unknown()),
2317
+ commentCount: z.number().int(),
2318
+ sourceBranch: z.string().max(255),
2319
+ sourceBranchUrl: z.string().max(2000).optional(),
2320
+ lastUpdate: z.string(),
2321
+ destinationBranch: z.string().max(255).optional(),
2322
+ destinationBranchUrl: z.string().max(2000).optional(),
2323
+ reviewers: z
2324
+ .array(
2325
+ z
2326
+ .object({
2327
+ name: z.string().max(255).optional(),
2328
+ approvalStatus: z
2329
+ .enum(["APPROVED", "UNAPPROVED"])
2330
+ .optional(),
2331
+ url: z.string().max(2000).optional(),
2332
+ avatar: z.string().max(2000).optional(),
2333
+ email: z.string().max(254).optional(),
2334
+ accountId: z.string().max(128).optional(),
2335
+ })
2336
+ .catchall(z.unknown()),
2337
+ )
2338
+ .optional(),
2339
+ url: z.string().max(2000),
2340
+ displayId: z.string().max(255),
2341
+ })
2342
+ .catchall(z.unknown()),
2343
+ )
2344
+ .min(0)
2345
+ .max(400)
2346
+ .optional(),
2347
+ avatar: z.string().max(2000).optional(),
2348
+ avatarDescription: z.string().max(1024).optional(),
2349
+ id: z.string().max(1024),
2350
+ updateSequenceId: z.number().int(),
2351
+ })
2352
+ .catchall(z.unknown()),
2353
+ })
2354
+ .describe("DevelopmentInformationService.getRepository.response"),
2355
+ );
2356
+ }
2357
+ }