@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,1943 @@
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, type ZodTypeAny } from "zod";
5
+
6
+ import type { CommonValidationSchemaStorage } from "../core/common-validation-schema-storage";
7
+ import {
8
+ type DocumentVersion,
9
+ type ProjectDetails,
10
+ type ProjectIssueTypes,
11
+ registerCommonValidationSchemas,
12
+ type Scope,
13
+ type WorkflowScope,
14
+ } from "./common";
15
+ /** The Connect provided ecosystem rules available. */
16
+ export interface AvailableWorkflowConnectRule {
17
+ /** The add-on providing the rule. */
18
+ addonKey?: string;
19
+ /** The URL creation path segment defined in the Connect module. */
20
+ createUrl?: string;
21
+ /** The rule description. */
22
+ description?: string;
23
+ /** The URL edit path segment defined in the Connect module. */
24
+ editUrl?: string;
25
+ /** The module providing the rule. */
26
+ moduleKey?: string;
27
+ /** The rule name. */
28
+ name?: string;
29
+ /** The rule key. */
30
+ ruleKey?: string;
31
+ /** The rule type. */
32
+ ruleType?: "Condition" | "Validator" | "Function" | "Screen";
33
+ /** The URL view path segment defined in the Connect module. */
34
+ viewUrl?: string;
35
+ }
36
+ /** The Forge provided ecosystem rules available. */
37
+ export interface AvailableWorkflowForgeRule {
38
+ /** The rule description. */
39
+ description?: string;
40
+ /** The unique ARI of the forge rule type. */
41
+ id?: string;
42
+ /** The rule name. */
43
+ name?: string;
44
+ /** The rule key. */
45
+ ruleKey?: string;
46
+ /** The rule type. */
47
+ ruleType?: "Condition" | "Validator" | "Function" | "Screen";
48
+ }
49
+ /** The Atlassian provided system rules available. */
50
+ export interface AvailableWorkflowSystemRule {
51
+ /** The rule description. */
52
+ description: string;
53
+ /** List of rules that conflict with this one. */
54
+ incompatibleRuleKeys: string[];
55
+ /** Whether the rule can be added added to an initial transition. */
56
+ isAvailableForInitialTransition: boolean;
57
+ /** Whether the rule is visible. */
58
+ isVisible: boolean;
59
+ /** The rule name. */
60
+ name: string;
61
+ /** The rule key. */
62
+ ruleKey: string;
63
+ /** The rule type. */
64
+ ruleType: "Condition" | "Validator" | "Function" | "Screen";
65
+ }
66
+ /** The trigger rules available. */
67
+ export interface AvailableWorkflowTriggers {
68
+ /** The list of available trigger types. */
69
+ availableTypes: AvailableWorkflowTriggerTypes[];
70
+ /** The rule key of the rule. */
71
+ ruleKey: string;
72
+ }
73
+ /** The list of available trigger types. */
74
+ export interface AvailableWorkflowTriggerTypes {
75
+ /** The description of the trigger rule. */
76
+ description?: string;
77
+ /** The name of the trigger rule. */
78
+ name?: string;
79
+ /** The type identifier of trigger rule. */
80
+ type?: string;
81
+ }
82
+ /** The conditions group associated with the transition. */
83
+ export interface ConditionGroupConfiguration {
84
+ /** The nested conditions of the condition group. */
85
+ conditionGroups?: (ConditionGroupConfiguration | null)[];
86
+ /** The rules for this condition. */
87
+ conditions?: (WorkflowRuleConfiguration | null)[];
88
+ /**
89
+ * Determines how the conditions in the group are evaluated. Accepts either `ANY`
90
+ * or `ALL`. If `ANY` is used, at least one condition in the group must be true
91
+ * for the group to evaluate to true. If `ALL` is used, all conditions in the
92
+ * group must be true for the group to evaluate to true.
93
+ */
94
+ operation?: "ANY" | "ALL";
95
+ }
96
+ /** The conditions group associated with the transition. */
97
+ export interface ConditionGroupUpdate {
98
+ /** The nested conditions of the condition group. */
99
+ conditionGroups?: (ConditionGroupUpdate | null)[];
100
+ /** The rules for this condition. */
101
+ conditions?: (WorkflowRuleConfiguration | null)[];
102
+ /**
103
+ * Determines how the conditions in the group are evaluated. Accepts either `ANY`
104
+ * or `ALL`. If `ANY` is used, at least one condition in the group must be true
105
+ * for the group to evaluate to true. If `ALL` is used, all conditions in the
106
+ * group must be true for the group to evaluate to true.
107
+ */
108
+ operation: "ANY" | "ALL";
109
+ }
110
+ /** A workflow transition condition. */
111
+ export interface CreateWorkflowCondition {
112
+ /** The list of workflow conditions. */
113
+ conditions?: CreateWorkflowCondition[];
114
+ /** EXPERIMENTAL. The configuration of the transition rule. */
115
+ configuration?: {
116
+ /** EXPERIMENTAL. The configuration of the transition rule. */
117
+ [key: string]: unknown;
118
+ };
119
+ /** The compound condition operator. */
120
+ operator?: "AND" | "OR";
121
+ /** The type of the transition rule. */
122
+ type?: string;
123
+ }
124
+ /** The details of a workflow. */
125
+ export interface CreateWorkflowDetails {
126
+ /** The description of the workflow. The maximum length is 1000 characters. */
127
+ description?: string;
128
+ /**
129
+ * The name of the workflow. The name must be unique. The maximum length is 255
130
+ * characters. Characters can be separated by a whitespace but the name cannot
131
+ * start or end with a whitespace.
132
+ */
133
+ name: string;
134
+ /**
135
+ * The statuses of the workflow. Any status that does not include a transition is
136
+ * added to the workflow without a transition.
137
+ */
138
+ statuses: CreateWorkflowStatusDetails[];
139
+ /**
140
+ * The transitions of the workflow. For the request to be valid, these transitions
141
+ * must:
142
+ *
143
+ * * include one *initial* transition.
144
+ * * not use the same name for a *global* and *directed* transition.
145
+ * * have a unique name for each *global* transition.
146
+ * * have a unique 'to' status for each *global* transition.
147
+ * * have unique names for each transition from a status.
148
+ * * not have a 'from' status on *initial* and *global* transitions.
149
+ * * have a 'from' status on *directed* transitions.
150
+ *
151
+ * All the transition statuses must be included in `statuses`.
152
+ */
153
+ transitions: CreateWorkflowTransitionDetails[];
154
+ }
155
+ /** The details of a transition status. */
156
+ export interface CreateWorkflowStatusDetails {
157
+ /** The ID of the status. */
158
+ id: string;
159
+ /** The properties of the status. */
160
+ properties?: {
161
+ [key: string]: string;
162
+ };
163
+ }
164
+ /** The details of a workflow transition. */
165
+ export interface CreateWorkflowTransitionDetails {
166
+ /** The description of the transition. The maximum length is 1000 characters. */
167
+ description?: string;
168
+ /** The statuses the transition can start from. */
169
+ from?: string[];
170
+ /** The name of the transition. The maximum length is 60 characters. */
171
+ name: string;
172
+ /** The properties of the transition. */
173
+ properties?: {
174
+ [key: string]: string;
175
+ };
176
+ /** The rules of the transition. */
177
+ rules?: CreateWorkflowTransitionRulesDetails;
178
+ /** The screen of the transition. */
179
+ screen?: CreateWorkflowTransitionScreenDetails;
180
+ /** The status the transition goes to. */
181
+ to: string;
182
+ /** The type of the transition. */
183
+ type: "global" | "initial" | "directed";
184
+ }
185
+ /** A workflow transition rule. */
186
+ export interface CreateWorkflowTransitionRule {
187
+ /** EXPERIMENTAL. The configuration of the transition rule. */
188
+ configuration?: {
189
+ /** EXPERIMENTAL. The configuration of the transition rule. */
190
+ [key: string]: unknown;
191
+ };
192
+ /** The type of the transition rule. */
193
+ type: string;
194
+ }
195
+ /** The details of a workflow transition rules. */
196
+ export interface CreateWorkflowTransitionRulesDetails {
197
+ /** The workflow conditions. */
198
+ conditions?: CreateWorkflowCondition;
199
+ /**
200
+ * The workflow post functions.
201
+ *
202
+ * **Note:** The default post functions are always added to the *initial*
203
+ * transition, as in:
204
+ *
205
+ * "postFunctions": [
206
+ * {
207
+ * "type": "IssueCreateFunction"
208
+ * },
209
+ * {
210
+ * "type": "IssueReindexFunction"
211
+ * },
212
+ * {
213
+ * "type": "FireIssueEventFunction",
214
+ * "configuration": {
215
+ * "event": {
216
+ * "id": "1",
217
+ * "name": "issue_created"
218
+ * }
219
+ * }
220
+ * }
221
+ * ]
222
+ *
223
+ * **Note:** The default post functions are always added to the *global* and
224
+ * *directed* transitions, as in:
225
+ *
226
+ * "postFunctions": [
227
+ * {
228
+ * "type": "UpdateIssueStatusFunction"
229
+ * },
230
+ * {
231
+ * "type": "CreateCommentFunction"
232
+ * },
233
+ * {
234
+ * "type": "GenerateChangeHistoryFunction"
235
+ * },
236
+ * {
237
+ * "type": "IssueReindexFunction"
238
+ * },
239
+ * {
240
+ * "type": "FireIssueEventFunction",
241
+ * "configuration": {
242
+ * "event": {
243
+ * "id": "13",
244
+ * "name": "issue_generic"
245
+ * }
246
+ * }
247
+ * }
248
+ * ]
249
+ */
250
+ postFunctions?: CreateWorkflowTransitionRule[];
251
+ /**
252
+ * The workflow validators.
253
+ *
254
+ * **Note:** The default permission validator is always added to the *initial*
255
+ * transition, as in:
256
+ *
257
+ * "validators": [
258
+ * {
259
+ * "type": "PermissionValidator",
260
+ * "configuration": {
261
+ * "permissionKey": "CREATE_ISSUES"
262
+ * }
263
+ * }
264
+ * ]
265
+ */
266
+ validators?: CreateWorkflowTransitionRule[];
267
+ }
268
+ /** The details of a transition screen. */
269
+ export interface CreateWorkflowTransitionScreenDetails {
270
+ /** The ID of the screen. */
271
+ id: string;
272
+ }
273
+ /** Details about a workflow. */
274
+ export interface DeprecatedWorkflow {
275
+ default?: boolean;
276
+ /** The description of the workflow. */
277
+ description?: string;
278
+ /** The datetime the workflow was last modified. */
279
+ lastModifiedDate?: string;
280
+ /**
281
+ * This property is no longer available and will be removed from the documentation
282
+ * soon. See the [deprecation
283
+ * notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
284
+ * for details.
285
+ */
286
+ lastModifiedUser?: string;
287
+ /** The account ID of the user that last modified the workflow. */
288
+ lastModifiedUserAccountId?: string;
289
+ /** The name of the workflow. */
290
+ name?: string;
291
+ /** The scope where this workflow applies */
292
+ scope?: Scope;
293
+ /** The number of steps included in the workflow. */
294
+ steps?: number;
295
+ }
296
+ /** Details of a workflow. */
297
+ export interface JiraWorkflow {
298
+ /** The description of the workflow. */
299
+ description?: string;
300
+ /** The ID of the workflow. */
301
+ id?: string;
302
+ /** Indicates if the workflow can be edited. */
303
+ isEditable?: boolean;
304
+ /** The name of the workflow. */
305
+ name?: string;
306
+ /** The scope of the workflow. */
307
+ scope?: WorkflowScope;
308
+ /** The starting point for the statuses in the workflow. */
309
+ startPointLayout?: WorkflowLayout | null;
310
+ /** The statuses referenced in this workflow. */
311
+ statuses?: WorkflowReferenceStatus[];
312
+ /**
313
+ * If there is a current [asynchronous task](#async-operations) operation for this
314
+ * workflow.
315
+ */
316
+ taskId?: string | null;
317
+ /** The transitions of the workflow. */
318
+ transitions?: WorkflowTransitions[];
319
+ /**
320
+ * Use the optional `workflows.usages` expand to get additional information about
321
+ * the projects and issue types associated with the requested workflows.
322
+ */
323
+ usages?: ProjectIssueTypes[];
324
+ /** The current version details of this workflow scheme. */
325
+ version?: DocumentVersion;
326
+ }
327
+ /** Details of a status. */
328
+ export interface JiraWorkflowStatus {
329
+ /** The description of the status. */
330
+ description?: string;
331
+ /** The ID of the status. */
332
+ id?: string;
333
+ /** The name of the status. */
334
+ name?: string;
335
+ /** The scope of the workflow. */
336
+ scope?: WorkflowScope;
337
+ /** The category of the status. */
338
+ statusCategory?: "TODO" | "IN_PROGRESS" | "DONE";
339
+ /** The reference of the status. */
340
+ statusReference?: string;
341
+ /**
342
+ * The `statuses.usages` expand is an optional parameter that can be used when
343
+ * reading and updating statuses in Jira. It provides additional information about
344
+ * the projects and issue types associated with the requested statuses.
345
+ */
346
+ usages?: ProjectIssueTypes[];
347
+ }
348
+ /** A page of items. */
349
+ export interface PageBeanWorkflow {
350
+ /** Whether this is the last page. */
351
+ isLast?: boolean;
352
+ /** The maximum number of items that could be returned. */
353
+ maxResults?: number;
354
+ /** If there is another page of results, the URL of the next page. */
355
+ nextPage?: string;
356
+ /** The URL of the page. */
357
+ self?: string;
358
+ /** The index of the first item returned. */
359
+ startAt?: number;
360
+ /** The number of items returned. */
361
+ total?: number;
362
+ /** The list of items. */
363
+ values?: Workflow[];
364
+ }
365
+ /** A project and issueType ID pair that identifies a status mapping. */
366
+ export interface ProjectAndIssueTypePair {
367
+ /** The ID of the issue type. */
368
+ issueTypeId: string;
369
+ /** The ID of the project. */
370
+ projectId: string;
371
+ }
372
+ /** Properties that identify a published workflow. */
373
+ export interface PublishedWorkflowId {
374
+ /** The entity ID of the workflow. */
375
+ entityId?: string;
376
+ /** The name of the workflow. */
377
+ name: string;
378
+ }
379
+ /** The statuses associated with this workflow. */
380
+ export interface StatusLayoutUpdate extends Record<string, unknown> {
381
+ /** The starting point for the statuses in the workflow. */
382
+ layout?: WorkflowLayout | null;
383
+ /** The properties for this status layout. */
384
+ properties: {
385
+ /** The properties for this status layout. */
386
+ [key: string]: string;
387
+ };
388
+ /** A unique ID which the status will use to refer to this layout configuration. */
389
+ statusReference: string;
390
+ }
391
+ /** The mapping of old to new status ID for a specific project and issue type. */
392
+ export interface StatusMappingDto extends Record<string, unknown> {
393
+ /** The issue type for the status mapping. */
394
+ issueTypeId: string;
395
+ /** The project for the status mapping. */
396
+ projectId: string;
397
+ /**
398
+ * The list of old and new status ID mappings for the specified project and issue
399
+ * type.
400
+ */
401
+ statusMigrations: StatusMigration[];
402
+ }
403
+ /** The mapping of old to new status ID. */
404
+ export interface StatusMigration extends Record<string, unknown> {
405
+ /** The new status ID. */
406
+ newStatusReference: string;
407
+ /** The old status ID. */
408
+ oldStatusReference: string;
409
+ }
410
+ /** The status reference and port that a transition is connected to. */
411
+ export interface StatusReferenceAndPort {
412
+ /** The port this transition uses to connect to this status. */
413
+ port?: number;
414
+ /** The reference of this status. */
415
+ statusReference: string;
416
+ }
417
+ /** Details of a workflow transition. */
418
+ export interface Transition {
419
+ /** The description of the transition. */
420
+ description: string;
421
+ /** The statuses the transition can start from. */
422
+ from: string[];
423
+ /** The ID of the transition. */
424
+ id: string;
425
+ /** The name of the transition. */
426
+ name: string;
427
+ /** The properties of the transition. */
428
+ properties?: {
429
+ /** The properties of the transition. */
430
+ [key: string]: unknown;
431
+ };
432
+ /** A collection of transition rules. */
433
+ rules?: WorkflowRules;
434
+ /** The details of a transition screen. */
435
+ screen?: TransitionScreenDetails;
436
+ /** The status the transition goes to. */
437
+ to: string;
438
+ /** The type of the transition. */
439
+ type: "global" | "initial" | "directed";
440
+ }
441
+ /** The details of a transition screen. */
442
+ export interface TransitionScreenDetails {
443
+ /** The ID of the screen. */
444
+ id: string;
445
+ /** The name of the screen. */
446
+ name?: string;
447
+ }
448
+ /** The transitions of this workflow. */
449
+ export interface TransitionUpdateDto extends Record<string, unknown> {
450
+ /** The post-functions of the transition. */
451
+ actions?: (WorkflowRuleConfiguration | null)[];
452
+ /** The conditions group associated with the transition. */
453
+ conditions?: ConditionGroupUpdate | null;
454
+ /** The custom event ID of the transition. */
455
+ customIssueEventId?: string;
456
+ /** The description of the transition. */
457
+ description?: string;
458
+ /** The statuses the transition can start from. */
459
+ from?: (StatusReferenceAndPort | null)[];
460
+ /** The ID of the transition. */
461
+ id: string;
462
+ /** The name of the transition. */
463
+ name: string;
464
+ /** The properties of the transition. */
465
+ properties?: {
466
+ /** The properties of the transition. */
467
+ [key: string]: string;
468
+ };
469
+ /** The status reference and port that a transition is connected to. */
470
+ to?: StatusReferenceAndPort | null;
471
+ /** The configuration of the rule. */
472
+ transitionScreen?: WorkflowRuleConfiguration | null;
473
+ /** The triggers of the transition. */
474
+ triggers?: WorkflowTrigger[];
475
+ /** The transition type. */
476
+ type: "INITIAL" | "GLOBAL" | "DIRECTED";
477
+ /** The validators of the transition. */
478
+ validators?: (WorkflowRuleConfiguration | null)[];
479
+ }
480
+ /**
481
+ * The level of validation to return from the API. If no values are provided, the
482
+ * default would return `WARNING` and `ERROR` level validation results.
483
+ */
484
+ export interface ValidationOptionsForCreate {
485
+ levels?: ("WARNING" | "ERROR")[];
486
+ }
487
+ /**
488
+ * The level of validation to return from the API. If no values are provided, the
489
+ * default would return `WARNING` and `ERROR` level validation results.
490
+ */
491
+ export interface ValidationOptionsForUpdate {
492
+ levels?: ("WARNING" | "ERROR")[];
493
+ }
494
+ /** Details about a workflow. */
495
+ export interface Workflow {
496
+ /** The creation date of the workflow. */
497
+ created?: string;
498
+ /** The description of the workflow. */
499
+ description: string;
500
+ /** Whether the workflow has a draft version. */
501
+ hasDraftWorkflow?: boolean;
502
+ /** Properties that identify a published workflow. */
503
+ id: PublishedWorkflowId;
504
+ /** Whether this is the default workflow. */
505
+ isDefault?: boolean;
506
+ /** Operations allowed on a workflow */
507
+ operations?: WorkflowOperations;
508
+ /** The projects the workflow is assigned to, through workflow schemes. */
509
+ projects?: ProjectDetails[];
510
+ /** The workflow schemes the workflow is assigned to. */
511
+ schemes?: WorkflowSchemeIdName[];
512
+ /** The statuses of the workflow. */
513
+ statuses?: WorkflowStatus[];
514
+ /** The transitions of the workflow. */
515
+ transitions?: Transition[];
516
+ /** The last edited date of the workflow. */
517
+ updated?: string;
518
+ }
519
+ export interface WorkflowCapabilities {
520
+ /** The Connect provided ecosystem rules available. */
521
+ connectRules?: AvailableWorkflowConnectRule[];
522
+ /**
523
+ * The scope of the workflow capabilities. `GLOBAL` for company-managed projects
524
+ * and `PROJECT` for team-managed projects.
525
+ */
526
+ editorScope?: "PROJECT" | "GLOBAL";
527
+ /** The Forge provided ecosystem rules available. */
528
+ forgeRules?: AvailableWorkflowForgeRule[];
529
+ /** The types of projects that this capability set is available for. */
530
+ projectTypes?: (
531
+ | "software"
532
+ | "service_desk"
533
+ | "product_discovery"
534
+ | "business"
535
+ | "unknown"
536
+ )[];
537
+ /** The Atlassian provided system rules available. */
538
+ systemRules?: AvailableWorkflowSystemRule[];
539
+ /** The trigger rules available. */
540
+ triggerRules?: AvailableWorkflowTriggers[];
541
+ }
542
+ /**
543
+ * A compound workflow transition rule condition. This object returns `nodeType`
544
+ * as `compound`.
545
+ */
546
+ export interface WorkflowCompoundCondition {
547
+ /** The list of workflow conditions. */
548
+ conditions: WorkflowCondition[];
549
+ nodeType: string;
550
+ /** The compound condition operator. */
551
+ operator: "AND" | "OR";
552
+ }
553
+ /** The workflow transition rule conditions tree. */
554
+ export type WorkflowCondition =
555
+ | WorkflowSimpleCondition
556
+ | WorkflowCompoundCondition;
557
+ /** The details of the workflows to create. */
558
+ export interface WorkflowCreate {
559
+ /** The description of the workflow to create. */
560
+ description?: string;
561
+ /** The name of the workflow to create. */
562
+ name: string;
563
+ /** The starting point for the statuses in the workflow. */
564
+ startPointLayout?: WorkflowLayout | null;
565
+ /** The statuses associated with this workflow. */
566
+ statuses: StatusLayoutUpdate[];
567
+ /** The transitions of this workflow. */
568
+ transitions: TransitionUpdateDto[];
569
+ }
570
+ /** The create workflows payload. */
571
+ export interface WorkflowCreateRequest {
572
+ /** The scope of the workflow. */
573
+ scope: WorkflowScope;
574
+ /** The statuses to associate with the workflows. */
575
+ statuses: WorkflowStatusUpdate[];
576
+ /** The details of the workflows to create. */
577
+ workflows: WorkflowCreate[];
578
+ }
579
+ /** Details of the created workflows and statuses. */
580
+ export interface WorkflowCreateResponse {
581
+ /** List of created statuses. */
582
+ statuses?: JiraWorkflowStatus[];
583
+ /** List of created workflows. */
584
+ workflows?: JiraWorkflow[];
585
+ }
586
+ export interface WorkflowCreateValidateRequest {
587
+ /** The create workflows payload. */
588
+ payload: WorkflowCreateRequest;
589
+ /**
590
+ * The level of validation to return from the API. If no values are provided, the
591
+ * default would return `WARNING` and `ERROR` level validation results.
592
+ */
593
+ validationOptions?: ValidationOptionsForCreate;
594
+ }
595
+ /**
596
+ * A reference to the location of the error. This will be null if the error does
597
+ * not refer to a specific element.
598
+ */
599
+ export interface WorkflowElementReference {
600
+ /** A property key. */
601
+ propertyKey?: string;
602
+ /** A rule ID. */
603
+ ruleId?: string;
604
+ /** A project and issueType ID pair that identifies a status mapping. */
605
+ statusMappingReference?: ProjectAndIssueTypePair;
606
+ /** A status reference. */
607
+ statusReference?: string;
608
+ /** A transition ID. */
609
+ transitionId?: string;
610
+ }
611
+ /** The classic workflow identifiers. */
612
+ export interface WorkflowIds {
613
+ /** The entity ID of the workflow. */
614
+ entityId?: string;
615
+ /** The name of the workflow. */
616
+ name: string;
617
+ }
618
+ /** The starting point for the statuses in the workflow. */
619
+ export interface WorkflowLayout {
620
+ /** The x axis location. */
621
+ x?: number;
622
+ /** The y axis location. */
623
+ y?: number;
624
+ }
625
+ /** Operations allowed on a workflow */
626
+ export interface WorkflowOperations {
627
+ /** Whether the workflow can be deleted. */
628
+ canDelete: boolean;
629
+ /** Whether the workflow can be updated. */
630
+ canEdit: boolean;
631
+ }
632
+ export interface WorkflowReadRequest {
633
+ /** The list of projects and issue types to query. */
634
+ projectAndIssueTypes?: ProjectAndIssueTypePair[];
635
+ /** The list of workflow IDs to query. */
636
+ workflowIds?: string[];
637
+ /** The list of workflow names to query. */
638
+ workflowNames?: string[];
639
+ }
640
+ /** Details of workflows and related statuses. */
641
+ export interface WorkflowReadResponse {
642
+ /** List of statuses. */
643
+ statuses?: JiraWorkflowStatus[];
644
+ /** List of workflows. */
645
+ workflows?: JiraWorkflow[];
646
+ }
647
+ /** The statuses referenced in the workflow. */
648
+ export interface WorkflowReferenceStatus {
649
+ /** Indicates if the status is deprecated. */
650
+ deprecated?: boolean;
651
+ /** The x and y location of the status in the workflow. */
652
+ layout?: WorkflowStatusLayout | null;
653
+ /** The properties associated with the status. */
654
+ properties?: {
655
+ /** The properties associated with the status. */
656
+ [key: string]: string;
657
+ };
658
+ /** The reference of the status. */
659
+ statusReference?: string;
660
+ }
661
+ /** The configuration of the rule. */
662
+ export interface WorkflowRuleConfiguration {
663
+ /** The ID of the rule. */
664
+ id?: string | null;
665
+ /** The parameters related to the rule. */
666
+ parameters?: {
667
+ /** The parameters related to the rule. */
668
+ [key: string]: string;
669
+ };
670
+ /** The rule key of the rule. */
671
+ ruleKey: string;
672
+ }
673
+ /** A collection of transition rules. */
674
+ export interface WorkflowRules {
675
+ /** The workflow transition rule conditions tree. */
676
+ conditionsTree?: WorkflowCondition;
677
+ /** The workflow post functions. */
678
+ postFunctions?: WorkflowTransitionRule[];
679
+ /** The workflow validators. */
680
+ validators?: WorkflowTransitionRule[];
681
+ }
682
+ /** The ID and the name of the workflow scheme. */
683
+ export interface WorkflowSchemeIdName {
684
+ /** The ID of the workflow scheme. */
685
+ id: string;
686
+ /** The name of the workflow scheme. */
687
+ name: string;
688
+ }
689
+ /**
690
+ * A workflow transition rule condition. This object returns `nodeType` as
691
+ * `simple`.
692
+ */
693
+ export interface WorkflowSimpleCondition {
694
+ /** EXPERIMENTAL. The configuration of the transition rule. */
695
+ configuration?: {
696
+ [key: string]: unknown;
697
+ };
698
+ nodeType: string;
699
+ /** The type of the transition rule. */
700
+ type: string;
701
+ }
702
+ /** Details of a workflow status. */
703
+ export interface WorkflowStatus {
704
+ /** The ID of the issue status. */
705
+ id: string;
706
+ /** The name of the status in the workflow. */
707
+ name: string;
708
+ /**
709
+ * Additional properties that modify the behavior of issues in this status.
710
+ * Supports the properties `jira.issue.editable` and `issueEditable` (deprecated)
711
+ * that indicate whether issues are editable.
712
+ */
713
+ properties?: {
714
+ /**
715
+ * Additional properties that modify the behavior of issues in this status.
716
+ * Supports the properties <code>jira.issue.editable</code> and
717
+ * <code>issueEditable</code> (deprecated) that indicate whether issues are
718
+ * editable.
719
+ */
720
+ [key: string]: unknown;
721
+ };
722
+ }
723
+ /** The status reference and port that a transition is connected to. */
724
+ export interface WorkflowStatusAndPort {
725
+ /** The port the transition is connected to this status. */
726
+ port?: number | null;
727
+ /** The reference of this status. */
728
+ statusReference?: string;
729
+ }
730
+ /** The x and y location of the status in the workflow. */
731
+ export interface WorkflowStatusLayout {
732
+ /** The x axis location. */
733
+ x?: number | null;
734
+ /** The y axis location. */
735
+ y?: number | null;
736
+ }
737
+ /** Details of the status being updated. */
738
+ export interface WorkflowStatusUpdate extends Record<string, unknown> {
739
+ /** The description of the status. */
740
+ description?: string;
741
+ /** The ID of the status. */
742
+ id?: string;
743
+ /** The name of the status. */
744
+ name: string;
745
+ /** The category of the status. */
746
+ statusCategory: "TODO" | "IN_PROGRESS" | "DONE";
747
+ /** The reference of the status. */
748
+ statusReference: string;
749
+ }
750
+ /** A workflow transition rule. */
751
+ export interface WorkflowTransitionRule {
752
+ /** EXPERIMENTAL. The configuration of the transition rule. */
753
+ configuration?: unknown;
754
+ /** The type of the transition rule. */
755
+ type: string;
756
+ }
757
+ /** The transitions of the workflow. */
758
+ export interface WorkflowTransitions {
759
+ /** The post-functions of the transition. */
760
+ actions?: (WorkflowRuleConfiguration | null)[];
761
+ /** The conditions group associated with the transition. */
762
+ conditions?: ConditionGroupConfiguration | null;
763
+ /** The custom event ID of the transition. */
764
+ customIssueEventId?: string | null;
765
+ /** The description of the transition. */
766
+ description?: string;
767
+ /** The statuses the transition can start from. */
768
+ from?: (WorkflowStatusAndPort | null)[];
769
+ /** The ID of the transition. */
770
+ id?: string;
771
+ /** The name of the transition. */
772
+ name?: string;
773
+ /** The properties of the transition. */
774
+ properties?: {
775
+ /** The properties of the transition. */
776
+ [key: string]: string;
777
+ };
778
+ /** The status reference and port that a transition is connected to. */
779
+ to?: WorkflowStatusAndPort | null;
780
+ /** The configuration of the rule. */
781
+ transitionScreen?: WorkflowRuleConfiguration | null;
782
+ /** The triggers of the transition. */
783
+ triggers?: WorkflowTrigger[];
784
+ /** The transition type. */
785
+ type?: "INITIAL" | "GLOBAL" | "DIRECTED";
786
+ /** The validators of the transition. */
787
+ validators?: (WorkflowRuleConfiguration | null)[];
788
+ }
789
+ /** The trigger configuration associated with a workflow. */
790
+ export interface WorkflowTrigger {
791
+ /** The ID of the trigger. */
792
+ id?: string;
793
+ /** The parameters of the trigger. */
794
+ parameters: {
795
+ /** The parameters of the trigger. */
796
+ [key: string]: string;
797
+ };
798
+ /** The rule key of the trigger. */
799
+ ruleKey: string;
800
+ }
801
+ /** The details of the workflows to update. */
802
+ export interface WorkflowUpdate extends Record<string, unknown> {
803
+ /** The mapping of old to new status ID. */
804
+ defaultStatusMappings?: StatusMigration[];
805
+ /** The new description for this workflow. */
806
+ description?: string;
807
+ /** The ID of this workflow. */
808
+ id: string;
809
+ /** The starting point for the statuses in the workflow. */
810
+ startPointLayout?: WorkflowLayout | null;
811
+ /** The mapping of old to new status ID for a specific project and issue type. */
812
+ statusMappings?: StatusMappingDto[];
813
+ /** The statuses associated with this workflow. */
814
+ statuses: StatusLayoutUpdate[];
815
+ /** The transitions of this workflow. */
816
+ transitions: TransitionUpdateDto[];
817
+ /** The current version details of this workflow scheme. */
818
+ version: DocumentVersion;
819
+ }
820
+ /** The update workflows payload. */
821
+ export interface WorkflowUpdateRequest {
822
+ /** The statuses to associate with the workflows. */
823
+ statuses: WorkflowStatusUpdate[];
824
+ /** The details of the workflows to update. */
825
+ workflows: WorkflowUpdate[];
826
+ }
827
+ export interface WorkflowUpdateResponse {
828
+ /** List of updated statuses. */
829
+ statuses?: JiraWorkflowStatus[];
830
+ /**
831
+ * If there is a [asynchronous task](#async-operations) operation, as a result of
832
+ * this update.
833
+ */
834
+ taskId?: string | null;
835
+ /** List of updated workflows. */
836
+ workflows?: JiraWorkflow[];
837
+ }
838
+ export interface WorkflowUpdateValidateRequestBean {
839
+ /** The update workflows payload. */
840
+ payload: WorkflowUpdateRequest;
841
+ /**
842
+ * The level of validation to return from the API. If no values are provided, the
843
+ * default would return `WARNING` and `ERROR` level validation results.
844
+ */
845
+ validationOptions?: ValidationOptionsForUpdate;
846
+ }
847
+ /** The details about a workflow validation error. */
848
+ export interface WorkflowValidationError {
849
+ /** An error code. */
850
+ code?: string;
851
+ /**
852
+ * A reference to the location of the error. This will be null if the error does
853
+ * not refer to a specific element.
854
+ */
855
+ elementReference?: WorkflowElementReference;
856
+ /** The validation error level. */
857
+ level?: "WARNING" | "ERROR";
858
+ /** An error message. */
859
+ message?: string;
860
+ /** The type of element the error or warning references. */
861
+ type?:
862
+ | "RULE"
863
+ | "STATUS"
864
+ | "STATUS_LAYOUT"
865
+ | "STATUS_PROPERTY"
866
+ | "WORKFLOW"
867
+ | "TRANSITION"
868
+ | "TRANSITION_PROPERTY"
869
+ | "SCOPE"
870
+ | "STATUS_MAPPING"
871
+ | "TRIGGER";
872
+ }
873
+ export interface WorkflowValidationErrorList {
874
+ /** The list of validation errors. */
875
+ errors?: WorkflowValidationError[];
876
+ }
877
+ export function registerWorkflowsValidationSchemas(
878
+ validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>,
879
+ ) {
880
+ validationSchemaStorage.register(
881
+ "AvailableWorkflowConnectRule",
882
+ z
883
+ .object({
884
+ addonKey: z.string().optional(),
885
+ createUrl: z.string().optional(),
886
+ description: z.string().optional(),
887
+ editUrl: z.string().optional(),
888
+ moduleKey: z.string().optional(),
889
+ name: z.string().optional(),
890
+ ruleKey: z.string().optional(),
891
+ ruleType: z
892
+ .enum(["Condition", "Validator", "Function", "Screen"])
893
+ .optional(),
894
+ viewUrl: z.string().optional(),
895
+ })
896
+ .strict()
897
+ .describe("AvailableWorkflowConnectRule"),
898
+ );
899
+ validationSchemaStorage.register(
900
+ "AvailableWorkflowForgeRule",
901
+ z
902
+ .object({
903
+ description: z.string().optional(),
904
+ id: z.string().optional(),
905
+ name: z.string().optional(),
906
+ ruleKey: z.string().optional(),
907
+ ruleType: z
908
+ .enum(["Condition", "Validator", "Function", "Screen"])
909
+ .optional(),
910
+ })
911
+ .strict()
912
+ .describe("AvailableWorkflowForgeRule"),
913
+ );
914
+ validationSchemaStorage.register(
915
+ "AvailableWorkflowSystemRule",
916
+ z
917
+ .object({
918
+ description: z.string(),
919
+ incompatibleRuleKeys: z.array(z.string()),
920
+ isAvailableForInitialTransition: z.boolean(),
921
+ isVisible: z.boolean(),
922
+ name: z.string(),
923
+ ruleKey: z.string(),
924
+ ruleType: z.enum(["Condition", "Validator", "Function", "Screen"]),
925
+ })
926
+ .strict()
927
+ .describe("AvailableWorkflowSystemRule"),
928
+ );
929
+ validationSchemaStorage.register(
930
+ "AvailableWorkflowTriggers",
931
+ z
932
+ .object({
933
+ availableTypes: z.array(
934
+ validationSchemaStorage.lazy("AvailableWorkflowTriggerTypes"),
935
+ ),
936
+ ruleKey: z.string(),
937
+ })
938
+ .strict()
939
+ .describe("AvailableWorkflowTriggers"),
940
+ );
941
+ validationSchemaStorage.register(
942
+ "AvailableWorkflowTriggerTypes",
943
+ z
944
+ .object({
945
+ description: z.string().optional(),
946
+ name: z.string().optional(),
947
+ type: z.string().optional(),
948
+ })
949
+ .strict()
950
+ .describe("AvailableWorkflowTriggerTypes"),
951
+ );
952
+ validationSchemaStorage.register(
953
+ "ConditionGroupConfiguration",
954
+ z
955
+ .object({
956
+ conditionGroups: z
957
+ .array(
958
+ z.nullable(
959
+ validationSchemaStorage.lazy("ConditionGroupConfiguration"),
960
+ ),
961
+ )
962
+ .optional(),
963
+ conditions: z
964
+ .array(
965
+ z.nullable(
966
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
967
+ ),
968
+ )
969
+ .optional(),
970
+ operation: z.enum(["ANY", "ALL"]).optional(),
971
+ })
972
+ .strict()
973
+ .describe("ConditionGroupConfiguration"),
974
+ );
975
+ validationSchemaStorage.register(
976
+ "ConditionGroupUpdate",
977
+ z
978
+ .object({
979
+ conditionGroups: z
980
+ .array(
981
+ z.nullable(validationSchemaStorage.lazy("ConditionGroupUpdate")),
982
+ )
983
+ .optional(),
984
+ conditions: z
985
+ .array(
986
+ z.nullable(
987
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
988
+ ),
989
+ )
990
+ .optional(),
991
+ operation: z.enum(["ANY", "ALL"]),
992
+ })
993
+ .strict()
994
+ .describe("ConditionGroupUpdate"),
995
+ );
996
+ validationSchemaStorage.register(
997
+ "CreateWorkflowCondition",
998
+ z
999
+ .object({
1000
+ conditions: z
1001
+ .array(validationSchemaStorage.lazy("CreateWorkflowCondition"))
1002
+ .optional(),
1003
+ configuration: z.object({}).catchall(z.unknown()).optional(),
1004
+ operator: z.enum(["AND", "OR"]).optional(),
1005
+ type: z.string().optional(),
1006
+ })
1007
+ .strict()
1008
+ .describe("CreateWorkflowCondition"),
1009
+ );
1010
+ validationSchemaStorage.register(
1011
+ "CreateWorkflowDetails",
1012
+ z
1013
+ .object({
1014
+ description: z.string().optional(),
1015
+ name: z.string(),
1016
+ statuses: z
1017
+ .array(validationSchemaStorage.lazy("CreateWorkflowStatusDetails"))
1018
+ .superRefine((items, ctx) => {
1019
+ if (
1020
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1021
+ items.length
1022
+ ) {
1023
+ ctx.addIssue({
1024
+ code: z.ZodIssueCode.custom,
1025
+ path: [],
1026
+ message: "Array items must be unique",
1027
+ });
1028
+ }
1029
+ }),
1030
+ transitions: z.array(
1031
+ validationSchemaStorage.lazy("CreateWorkflowTransitionDetails"),
1032
+ ),
1033
+ })
1034
+ .strict()
1035
+ .describe("CreateWorkflowDetails"),
1036
+ );
1037
+ validationSchemaStorage.register(
1038
+ "CreateWorkflowStatusDetails",
1039
+ z
1040
+ .object({
1041
+ id: z.string(),
1042
+ properties: z.object({}).catchall(z.string()).optional(),
1043
+ })
1044
+ .strict()
1045
+ .describe("CreateWorkflowStatusDetails"),
1046
+ );
1047
+ validationSchemaStorage.register(
1048
+ "CreateWorkflowTransitionDetails",
1049
+ z
1050
+ .object({
1051
+ description: z.string().optional(),
1052
+ from: z.array(z.string()).optional(),
1053
+ name: z.string(),
1054
+ properties: z.object({}).catchall(z.string()).optional(),
1055
+ rules: validationSchemaStorage
1056
+ .lazy("CreateWorkflowTransitionRulesDetails")
1057
+ .optional(),
1058
+ screen: validationSchemaStorage
1059
+ .lazy("CreateWorkflowTransitionScreenDetails")
1060
+ .optional(),
1061
+ to: z.string(),
1062
+ type: z.enum(["global", "initial", "directed"]),
1063
+ })
1064
+ .strict()
1065
+ .describe("CreateWorkflowTransitionDetails"),
1066
+ );
1067
+ validationSchemaStorage.register(
1068
+ "CreateWorkflowTransitionRule",
1069
+ z
1070
+ .object({
1071
+ configuration: z.object({}).catchall(z.unknown()).optional(),
1072
+ type: z.string(),
1073
+ })
1074
+ .strict()
1075
+ .describe("CreateWorkflowTransitionRule"),
1076
+ );
1077
+ validationSchemaStorage.register(
1078
+ "CreateWorkflowTransitionRulesDetails",
1079
+ z
1080
+ .object({
1081
+ conditions: validationSchemaStorage
1082
+ .lazy("CreateWorkflowCondition")
1083
+ .optional(),
1084
+ postFunctions: z
1085
+ .array(validationSchemaStorage.lazy("CreateWorkflowTransitionRule"))
1086
+ .optional(),
1087
+ validators: z
1088
+ .array(validationSchemaStorage.lazy("CreateWorkflowTransitionRule"))
1089
+ .optional(),
1090
+ })
1091
+ .strict()
1092
+ .describe("CreateWorkflowTransitionRulesDetails"),
1093
+ );
1094
+ validationSchemaStorage.register(
1095
+ "CreateWorkflowTransitionScreenDetails",
1096
+ z
1097
+ .object({
1098
+ id: z.string(),
1099
+ })
1100
+ .strict()
1101
+ .describe("CreateWorkflowTransitionScreenDetails"),
1102
+ );
1103
+ validationSchemaStorage.register(
1104
+ "DeprecatedWorkflow",
1105
+ z
1106
+ .object({
1107
+ default: z.boolean().optional(),
1108
+ description: z.string().optional(),
1109
+ lastModifiedDate: z.string().optional(),
1110
+ lastModifiedUser: z.string().optional(),
1111
+ lastModifiedUserAccountId: z.string().optional(),
1112
+ name: z.string().optional(),
1113
+ scope: validationSchemaStorage.lazy("Scope").optional(),
1114
+ steps: z.number().int().optional(),
1115
+ })
1116
+ .strict()
1117
+ .describe("DeprecatedWorkflow"),
1118
+ );
1119
+ validationSchemaStorage.register(
1120
+ "JiraWorkflow",
1121
+ z
1122
+ .object({
1123
+ description: z.string().optional(),
1124
+ id: z.string().optional(),
1125
+ isEditable: z.boolean().optional(),
1126
+ name: z.string().optional(),
1127
+ scope: validationSchemaStorage.lazy("WorkflowScope").optional(),
1128
+ startPointLayout: z
1129
+ .nullable(validationSchemaStorage.lazy("WorkflowLayout"))
1130
+ .optional(),
1131
+ statuses: z
1132
+ .array(validationSchemaStorage.lazy("WorkflowReferenceStatus"))
1133
+ .superRefine((items, ctx) => {
1134
+ if (
1135
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1136
+ items.length
1137
+ ) {
1138
+ ctx.addIssue({
1139
+ code: z.ZodIssueCode.custom,
1140
+ path: [],
1141
+ message: "Array items must be unique",
1142
+ });
1143
+ }
1144
+ })
1145
+ .optional(),
1146
+ taskId: z.nullable(z.string()).optional(),
1147
+ transitions: z
1148
+ .array(validationSchemaStorage.lazy("WorkflowTransitions"))
1149
+ .superRefine((items, ctx) => {
1150
+ if (
1151
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1152
+ items.length
1153
+ ) {
1154
+ ctx.addIssue({
1155
+ code: z.ZodIssueCode.custom,
1156
+ path: [],
1157
+ message: "Array items must be unique",
1158
+ });
1159
+ }
1160
+ })
1161
+ .optional(),
1162
+ usages: z
1163
+ .array(validationSchemaStorage.lazy("ProjectIssueTypes"))
1164
+ .superRefine((items, ctx) => {
1165
+ if (
1166
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1167
+ items.length
1168
+ ) {
1169
+ ctx.addIssue({
1170
+ code: z.ZodIssueCode.custom,
1171
+ path: [],
1172
+ message: "Array items must be unique",
1173
+ });
1174
+ }
1175
+ })
1176
+ .optional(),
1177
+ version: validationSchemaStorage.lazy("DocumentVersion").optional(),
1178
+ })
1179
+ .strict()
1180
+ .describe("JiraWorkflow"),
1181
+ );
1182
+ validationSchemaStorage.register(
1183
+ "JiraWorkflowStatus",
1184
+ z
1185
+ .object({
1186
+ description: z.string().optional(),
1187
+ id: z.string().optional(),
1188
+ name: z.string().optional(),
1189
+ scope: validationSchemaStorage.lazy("WorkflowScope").optional(),
1190
+ statusCategory: z.enum(["TODO", "IN_PROGRESS", "DONE"]).optional(),
1191
+ statusReference: z.string().optional(),
1192
+ usages: z
1193
+ .array(validationSchemaStorage.lazy("ProjectIssueTypes"))
1194
+ .superRefine((items, ctx) => {
1195
+ if (
1196
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1197
+ items.length
1198
+ ) {
1199
+ ctx.addIssue({
1200
+ code: z.ZodIssueCode.custom,
1201
+ path: [],
1202
+ message: "Array items must be unique",
1203
+ });
1204
+ }
1205
+ })
1206
+ .optional(),
1207
+ })
1208
+ .strict()
1209
+ .describe("JiraWorkflowStatus"),
1210
+ );
1211
+ validationSchemaStorage.register(
1212
+ "PageBeanWorkflow",
1213
+ z
1214
+ .object({
1215
+ isLast: z.boolean().optional(),
1216
+ maxResults: z.number().int().optional(),
1217
+ nextPage: z.string().optional(),
1218
+ self: z.string().optional(),
1219
+ startAt: z.number().int().optional(),
1220
+ total: z.number().int().optional(),
1221
+ values: z.array(validationSchemaStorage.lazy("Workflow")).optional(),
1222
+ })
1223
+ .strict()
1224
+ .describe("PageBeanWorkflow"),
1225
+ );
1226
+ validationSchemaStorage.register(
1227
+ "ProjectAndIssueTypePair",
1228
+ z
1229
+ .object({
1230
+ issueTypeId: z.string(),
1231
+ projectId: z.string(),
1232
+ })
1233
+ .strict()
1234
+ .describe("ProjectAndIssueTypePair"),
1235
+ );
1236
+ validationSchemaStorage.register(
1237
+ "PublishedWorkflowId",
1238
+ z
1239
+ .object({
1240
+ entityId: z.string().optional(),
1241
+ name: z.string(),
1242
+ })
1243
+ .strict()
1244
+ .describe("PublishedWorkflowId"),
1245
+ );
1246
+ validationSchemaStorage.register(
1247
+ "StatusLayoutUpdate",
1248
+ z
1249
+ .object({
1250
+ layout: z
1251
+ .nullable(validationSchemaStorage.lazy("WorkflowLayout"))
1252
+ .optional(),
1253
+ properties: z.object({}).catchall(z.string()),
1254
+ statusReference: z.string(),
1255
+ })
1256
+ .catchall(z.unknown())
1257
+ .describe("StatusLayoutUpdate"),
1258
+ );
1259
+ validationSchemaStorage.register(
1260
+ "StatusMappingDto",
1261
+ z
1262
+ .object({
1263
+ issueTypeId: z.string(),
1264
+ projectId: z.string(),
1265
+ statusMigrations: z.array(
1266
+ validationSchemaStorage.lazy("StatusMigration"),
1267
+ ),
1268
+ })
1269
+ .catchall(z.unknown())
1270
+ .describe("StatusMappingDto"),
1271
+ );
1272
+ validationSchemaStorage.register(
1273
+ "StatusMigration",
1274
+ z
1275
+ .object({
1276
+ newStatusReference: z.string(),
1277
+ oldStatusReference: z.string(),
1278
+ })
1279
+ .catchall(z.unknown())
1280
+ .describe("StatusMigration"),
1281
+ );
1282
+ validationSchemaStorage.register(
1283
+ "StatusReferenceAndPort",
1284
+ z
1285
+ .object({
1286
+ port: z.number().int().optional(),
1287
+ statusReference: z.string(),
1288
+ })
1289
+ .strict()
1290
+ .describe("StatusReferenceAndPort"),
1291
+ );
1292
+ validationSchemaStorage.register(
1293
+ "Transition",
1294
+ z
1295
+ .object({
1296
+ description: z.string(),
1297
+ from: z.array(z.string()),
1298
+ id: z.string(),
1299
+ name: z.string(),
1300
+ properties: z.object({}).catchall(z.unknown()).optional(),
1301
+ rules: validationSchemaStorage.lazy("WorkflowRules").optional(),
1302
+ screen: validationSchemaStorage
1303
+ .lazy("TransitionScreenDetails")
1304
+ .optional(),
1305
+ to: z.string(),
1306
+ type: z.enum(["global", "initial", "directed"]),
1307
+ })
1308
+ .strict()
1309
+ .describe("Transition"),
1310
+ );
1311
+ validationSchemaStorage.register(
1312
+ "TransitionScreenDetails",
1313
+ z
1314
+ .object({
1315
+ id: z.string(),
1316
+ name: z.string().optional(),
1317
+ })
1318
+ .strict()
1319
+ .describe("TransitionScreenDetails"),
1320
+ );
1321
+ validationSchemaStorage.register(
1322
+ "TransitionUpdateDto",
1323
+ z
1324
+ .object({
1325
+ actions: z
1326
+ .array(
1327
+ z.nullable(
1328
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
1329
+ ),
1330
+ )
1331
+ .optional(),
1332
+ conditions: z
1333
+ .nullable(validationSchemaStorage.lazy("ConditionGroupUpdate"))
1334
+ .optional(),
1335
+ customIssueEventId: z.string().optional(),
1336
+ description: z.string().optional(),
1337
+ from: z
1338
+ .array(
1339
+ z.nullable(validationSchemaStorage.lazy("StatusReferenceAndPort")),
1340
+ )
1341
+ .optional(),
1342
+ id: z.string(),
1343
+ name: z.string(),
1344
+ properties: z.object({}).catchall(z.string()).optional(),
1345
+ to: z
1346
+ .nullable(validationSchemaStorage.lazy("StatusReferenceAndPort"))
1347
+ .optional(),
1348
+ transitionScreen: z
1349
+ .nullable(validationSchemaStorage.lazy("WorkflowRuleConfiguration"))
1350
+ .optional(),
1351
+ triggers: z
1352
+ .array(validationSchemaStorage.lazy("WorkflowTrigger"))
1353
+ .optional(),
1354
+ type: z.enum(["INITIAL", "GLOBAL", "DIRECTED"]),
1355
+ validators: z
1356
+ .array(
1357
+ z.nullable(
1358
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
1359
+ ),
1360
+ )
1361
+ .optional(),
1362
+ })
1363
+ .catchall(z.unknown())
1364
+ .describe("TransitionUpdateDto"),
1365
+ );
1366
+ validationSchemaStorage.register(
1367
+ "ValidationOptionsForCreate",
1368
+ z
1369
+ .object({
1370
+ levels: z
1371
+ .array(z.enum(["WARNING", "ERROR"]))
1372
+ .max(2)
1373
+ .optional(),
1374
+ })
1375
+ .strict()
1376
+ .describe("ValidationOptionsForCreate"),
1377
+ );
1378
+ validationSchemaStorage.register(
1379
+ "ValidationOptionsForUpdate",
1380
+ z
1381
+ .object({
1382
+ levels: z
1383
+ .array(z.enum(["WARNING", "ERROR"]))
1384
+ .max(2)
1385
+ .optional(),
1386
+ })
1387
+ .strict()
1388
+ .describe("ValidationOptionsForUpdate"),
1389
+ );
1390
+ validationSchemaStorage.register(
1391
+ "Workflow",
1392
+ z
1393
+ .object({
1394
+ created: z.string().optional(),
1395
+ description: z.string(),
1396
+ hasDraftWorkflow: z.boolean().optional(),
1397
+ id: validationSchemaStorage.lazy("PublishedWorkflowId"),
1398
+ isDefault: z.boolean().optional(),
1399
+ operations: validationSchemaStorage
1400
+ .lazy("WorkflowOperations")
1401
+ .optional(),
1402
+ projects: z
1403
+ .array(validationSchemaStorage.lazy("ProjectDetails"))
1404
+ .optional(),
1405
+ schemes: z
1406
+ .array(validationSchemaStorage.lazy("WorkflowSchemeIdName"))
1407
+ .optional(),
1408
+ statuses: z
1409
+ .array(validationSchemaStorage.lazy("WorkflowStatus"))
1410
+ .optional(),
1411
+ transitions: z
1412
+ .array(validationSchemaStorage.lazy("Transition"))
1413
+ .optional(),
1414
+ updated: z.string().optional(),
1415
+ })
1416
+ .strict()
1417
+ .describe("Workflow"),
1418
+ );
1419
+ validationSchemaStorage.register(
1420
+ "WorkflowCapabilities",
1421
+ z
1422
+ .object({
1423
+ connectRules: z
1424
+ .array(validationSchemaStorage.lazy("AvailableWorkflowConnectRule"))
1425
+ .optional(),
1426
+ editorScope: z.enum(["PROJECT", "GLOBAL"]).optional(),
1427
+ forgeRules: z
1428
+ .array(validationSchemaStorage.lazy("AvailableWorkflowForgeRule"))
1429
+ .optional(),
1430
+ projectTypes: z
1431
+ .array(
1432
+ z.enum([
1433
+ "software",
1434
+ "service_desk",
1435
+ "product_discovery",
1436
+ "business",
1437
+ "unknown",
1438
+ ]),
1439
+ )
1440
+ .optional(),
1441
+ systemRules: z
1442
+ .array(validationSchemaStorage.lazy("AvailableWorkflowSystemRule"))
1443
+ .optional(),
1444
+ triggerRules: z
1445
+ .array(validationSchemaStorage.lazy("AvailableWorkflowTriggers"))
1446
+ .optional(),
1447
+ })
1448
+ .strict()
1449
+ .describe("WorkflowCapabilities"),
1450
+ );
1451
+ validationSchemaStorage.register(
1452
+ "WorkflowCompoundCondition",
1453
+ z
1454
+ .object({
1455
+ conditions: z.array(validationSchemaStorage.lazy("WorkflowCondition")),
1456
+ nodeType: z.string(),
1457
+ operator: z.enum(["AND", "OR"]),
1458
+ })
1459
+ .strict()
1460
+ .describe("WorkflowCompoundCondition"),
1461
+ );
1462
+ validationSchemaStorage.register(
1463
+ "WorkflowCondition",
1464
+ z
1465
+ .union([
1466
+ validationSchemaStorage.lazy("WorkflowSimpleCondition"),
1467
+ validationSchemaStorage.lazy("WorkflowCompoundCondition"),
1468
+ ])
1469
+ .describe("WorkflowCondition"),
1470
+ );
1471
+ validationSchemaStorage.register(
1472
+ "WorkflowCreate",
1473
+ z
1474
+ .object({
1475
+ description: z.string().optional(),
1476
+ name: z.string(),
1477
+ startPointLayout: z
1478
+ .nullable(validationSchemaStorage.lazy("WorkflowLayout"))
1479
+ .optional(),
1480
+ statuses: z.array(validationSchemaStorage.lazy("StatusLayoutUpdate")),
1481
+ transitions: z.array(
1482
+ validationSchemaStorage.lazy("TransitionUpdateDto"),
1483
+ ),
1484
+ })
1485
+ .strict()
1486
+ .describe("WorkflowCreate"),
1487
+ );
1488
+ validationSchemaStorage.register(
1489
+ "WorkflowCreateRequest",
1490
+ z
1491
+ .object({
1492
+ scope: validationSchemaStorage.lazy("WorkflowScope"),
1493
+ statuses: z.array(validationSchemaStorage.lazy("WorkflowStatusUpdate")),
1494
+ workflows: z.array(validationSchemaStorage.lazy("WorkflowCreate")),
1495
+ })
1496
+ .strict()
1497
+ .describe("WorkflowCreateRequest"),
1498
+ );
1499
+ validationSchemaStorage.register(
1500
+ "WorkflowCreateResponse",
1501
+ z
1502
+ .object({
1503
+ statuses: z
1504
+ .array(validationSchemaStorage.lazy("JiraWorkflowStatus"))
1505
+ .superRefine((items, ctx) => {
1506
+ if (
1507
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1508
+ items.length
1509
+ ) {
1510
+ ctx.addIssue({
1511
+ code: z.ZodIssueCode.custom,
1512
+ path: [],
1513
+ message: "Array items must be unique",
1514
+ });
1515
+ }
1516
+ })
1517
+ .optional(),
1518
+ workflows: z
1519
+ .array(validationSchemaStorage.lazy("JiraWorkflow"))
1520
+ .superRefine((items, ctx) => {
1521
+ if (
1522
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1523
+ items.length
1524
+ ) {
1525
+ ctx.addIssue({
1526
+ code: z.ZodIssueCode.custom,
1527
+ path: [],
1528
+ message: "Array items must be unique",
1529
+ });
1530
+ }
1531
+ })
1532
+ .optional(),
1533
+ })
1534
+ .strict()
1535
+ .describe("WorkflowCreateResponse"),
1536
+ );
1537
+ validationSchemaStorage.register(
1538
+ "WorkflowCreateValidateRequest",
1539
+ z
1540
+ .object({
1541
+ payload: validationSchemaStorage.lazy("WorkflowCreateRequest"),
1542
+ validationOptions: validationSchemaStorage
1543
+ .lazy("ValidationOptionsForCreate")
1544
+ .optional(),
1545
+ })
1546
+ .strict()
1547
+ .describe("WorkflowCreateValidateRequest"),
1548
+ );
1549
+ validationSchemaStorage.register(
1550
+ "WorkflowElementReference",
1551
+ z
1552
+ .object({
1553
+ propertyKey: z.string().optional(),
1554
+ ruleId: z.string().optional(),
1555
+ statusMappingReference: validationSchemaStorage
1556
+ .lazy("ProjectAndIssueTypePair")
1557
+ .optional(),
1558
+ statusReference: z.string().optional(),
1559
+ transitionId: z.string().optional(),
1560
+ })
1561
+ .strict()
1562
+ .describe("WorkflowElementReference"),
1563
+ );
1564
+ validationSchemaStorage.register(
1565
+ "WorkflowIds",
1566
+ z
1567
+ .object({
1568
+ entityId: z.string().optional(),
1569
+ name: z.string(),
1570
+ })
1571
+ .strict()
1572
+ .describe("WorkflowIds"),
1573
+ );
1574
+ validationSchemaStorage.register(
1575
+ "WorkflowLayout",
1576
+ z
1577
+ .object({
1578
+ x: z.number().optional(),
1579
+ y: z.number().optional(),
1580
+ })
1581
+ .strict()
1582
+ .describe("WorkflowLayout"),
1583
+ );
1584
+ validationSchemaStorage.register(
1585
+ "WorkflowOperations",
1586
+ z
1587
+ .object({
1588
+ canDelete: z.boolean(),
1589
+ canEdit: z.boolean(),
1590
+ })
1591
+ .strict()
1592
+ .describe("WorkflowOperations"),
1593
+ );
1594
+ validationSchemaStorage.register(
1595
+ "WorkflowReadRequest",
1596
+ z
1597
+ .object({
1598
+ projectAndIssueTypes: z
1599
+ .array(validationSchemaStorage.lazy("ProjectAndIssueTypePair"))
1600
+ .optional(),
1601
+ workflowIds: z.array(z.string()).optional(),
1602
+ workflowNames: z.array(z.string()).optional(),
1603
+ })
1604
+ .strict()
1605
+ .describe("WorkflowReadRequest"),
1606
+ );
1607
+ validationSchemaStorage.register(
1608
+ "WorkflowReadResponse",
1609
+ z
1610
+ .object({
1611
+ statuses: z
1612
+ .array(validationSchemaStorage.lazy("JiraWorkflowStatus"))
1613
+ .superRefine((items, ctx) => {
1614
+ if (
1615
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1616
+ items.length
1617
+ ) {
1618
+ ctx.addIssue({
1619
+ code: z.ZodIssueCode.custom,
1620
+ path: [],
1621
+ message: "Array items must be unique",
1622
+ });
1623
+ }
1624
+ })
1625
+ .optional(),
1626
+ workflows: z
1627
+ .array(validationSchemaStorage.lazy("JiraWorkflow"))
1628
+ .superRefine((items, ctx) => {
1629
+ if (
1630
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1631
+ items.length
1632
+ ) {
1633
+ ctx.addIssue({
1634
+ code: z.ZodIssueCode.custom,
1635
+ path: [],
1636
+ message: "Array items must be unique",
1637
+ });
1638
+ }
1639
+ })
1640
+ .optional(),
1641
+ })
1642
+ .strict()
1643
+ .describe("WorkflowReadResponse"),
1644
+ );
1645
+ validationSchemaStorage.register(
1646
+ "WorkflowReferenceStatus",
1647
+ z
1648
+ .object({
1649
+ deprecated: z.boolean().optional(),
1650
+ layout: z
1651
+ .nullable(validationSchemaStorage.lazy("WorkflowStatusLayout"))
1652
+ .optional(),
1653
+ properties: z.object({}).catchall(z.string()).optional(),
1654
+ statusReference: z.string().optional(),
1655
+ })
1656
+ .strict()
1657
+ .describe("WorkflowReferenceStatus"),
1658
+ );
1659
+ validationSchemaStorage.register(
1660
+ "WorkflowRuleConfiguration",
1661
+ z
1662
+ .object({
1663
+ id: z.nullable(z.string()).optional(),
1664
+ parameters: z.object({}).catchall(z.string()).optional(),
1665
+ ruleKey: z.string(),
1666
+ })
1667
+ .strict()
1668
+ .describe("WorkflowRuleConfiguration"),
1669
+ );
1670
+ validationSchemaStorage.register(
1671
+ "WorkflowRules",
1672
+ z
1673
+ .object({
1674
+ conditionsTree: validationSchemaStorage
1675
+ .lazy("WorkflowCondition")
1676
+ .optional(),
1677
+ postFunctions: z
1678
+ .array(validationSchemaStorage.lazy("WorkflowTransitionRule"))
1679
+ .optional(),
1680
+ validators: z
1681
+ .array(validationSchemaStorage.lazy("WorkflowTransitionRule"))
1682
+ .optional(),
1683
+ })
1684
+ .strict()
1685
+ .describe("WorkflowRules"),
1686
+ );
1687
+ validationSchemaStorage.register(
1688
+ "WorkflowSchemeIdName",
1689
+ z
1690
+ .object({
1691
+ id: z.string(),
1692
+ name: z.string(),
1693
+ })
1694
+ .strict()
1695
+ .describe("WorkflowSchemeIdName"),
1696
+ );
1697
+ validationSchemaStorage.register(
1698
+ "WorkflowSimpleCondition",
1699
+ z
1700
+ .object({
1701
+ configuration: z.object({}).catchall(z.unknown()).optional(),
1702
+ nodeType: z.string(),
1703
+ type: z.string(),
1704
+ })
1705
+ .strict()
1706
+ .describe("WorkflowSimpleCondition"),
1707
+ );
1708
+ validationSchemaStorage.register(
1709
+ "WorkflowStatus",
1710
+ z
1711
+ .object({
1712
+ id: z.string(),
1713
+ name: z.string(),
1714
+ properties: z.object({}).catchall(z.unknown()).optional(),
1715
+ })
1716
+ .strict()
1717
+ .describe("WorkflowStatus"),
1718
+ );
1719
+ validationSchemaStorage.register(
1720
+ "WorkflowStatusAndPort",
1721
+ z
1722
+ .object({
1723
+ port: z.nullable(z.number().int()).optional(),
1724
+ statusReference: z.string().optional(),
1725
+ })
1726
+ .strict()
1727
+ .describe("WorkflowStatusAndPort"),
1728
+ );
1729
+ validationSchemaStorage.register(
1730
+ "WorkflowStatusLayout",
1731
+ z
1732
+ .object({
1733
+ x: z.nullable(z.number()).optional(),
1734
+ y: z.nullable(z.number()).optional(),
1735
+ })
1736
+ .strict()
1737
+ .describe("WorkflowStatusLayout"),
1738
+ );
1739
+ validationSchemaStorage.register(
1740
+ "WorkflowStatusUpdate",
1741
+ z
1742
+ .object({
1743
+ description: z.string().optional(),
1744
+ id: z.string().optional(),
1745
+ name: z.string(),
1746
+ statusCategory: z.enum(["TODO", "IN_PROGRESS", "DONE"]),
1747
+ statusReference: z.string(),
1748
+ })
1749
+ .catchall(z.unknown())
1750
+ .describe("WorkflowStatusUpdate"),
1751
+ );
1752
+ validationSchemaStorage.register(
1753
+ "WorkflowTransitionRule",
1754
+ z
1755
+ .object({
1756
+ configuration: z.unknown().optional(),
1757
+ type: z.string(),
1758
+ })
1759
+ .strict()
1760
+ .describe("WorkflowTransitionRule"),
1761
+ );
1762
+ validationSchemaStorage.register(
1763
+ "WorkflowTransitions",
1764
+ z
1765
+ .object({
1766
+ actions: z
1767
+ .array(
1768
+ z.nullable(
1769
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
1770
+ ),
1771
+ )
1772
+ .optional(),
1773
+ conditions: z
1774
+ .nullable(validationSchemaStorage.lazy("ConditionGroupConfiguration"))
1775
+ .optional(),
1776
+ customIssueEventId: z.nullable(z.string()).optional(),
1777
+ description: z.string().optional(),
1778
+ from: z
1779
+ .array(
1780
+ z.nullable(validationSchemaStorage.lazy("WorkflowStatusAndPort")),
1781
+ )
1782
+ .optional(),
1783
+ id: z.string().optional(),
1784
+ name: z.string().optional(),
1785
+ properties: z.object({}).catchall(z.string()).optional(),
1786
+ to: z
1787
+ .nullable(validationSchemaStorage.lazy("WorkflowStatusAndPort"))
1788
+ .optional(),
1789
+ transitionScreen: z
1790
+ .nullable(validationSchemaStorage.lazy("WorkflowRuleConfiguration"))
1791
+ .optional(),
1792
+ triggers: z
1793
+ .array(validationSchemaStorage.lazy("WorkflowTrigger"))
1794
+ .optional(),
1795
+ type: z.enum(["INITIAL", "GLOBAL", "DIRECTED"]).optional(),
1796
+ validators: z
1797
+ .array(
1798
+ z.nullable(
1799
+ validationSchemaStorage.lazy("WorkflowRuleConfiguration"),
1800
+ ),
1801
+ )
1802
+ .optional(),
1803
+ })
1804
+ .strict()
1805
+ .describe("WorkflowTransitions"),
1806
+ );
1807
+ validationSchemaStorage.register(
1808
+ "WorkflowTrigger",
1809
+ z
1810
+ .object({
1811
+ id: z.string().optional(),
1812
+ parameters: z.object({}).catchall(z.string()),
1813
+ ruleKey: z.string(),
1814
+ })
1815
+ .strict()
1816
+ .describe("WorkflowTrigger"),
1817
+ );
1818
+ validationSchemaStorage.register(
1819
+ "WorkflowUpdate",
1820
+ z
1821
+ .object({
1822
+ defaultStatusMappings: z
1823
+ .array(validationSchemaStorage.lazy("StatusMigration"))
1824
+ .optional(),
1825
+ description: z.string().optional(),
1826
+ id: z.string(),
1827
+ startPointLayout: z
1828
+ .nullable(validationSchemaStorage.lazy("WorkflowLayout"))
1829
+ .optional(),
1830
+ statusMappings: z
1831
+ .array(validationSchemaStorage.lazy("StatusMappingDto"))
1832
+ .optional(),
1833
+ statuses: z.array(validationSchemaStorage.lazy("StatusLayoutUpdate")),
1834
+ transitions: z.array(
1835
+ validationSchemaStorage.lazy("TransitionUpdateDto"),
1836
+ ),
1837
+ version: validationSchemaStorage.lazy("DocumentVersion"),
1838
+ })
1839
+ .catchall(z.unknown())
1840
+ .describe("WorkflowUpdate"),
1841
+ );
1842
+ validationSchemaStorage.register(
1843
+ "WorkflowUpdateRequest",
1844
+ z
1845
+ .object({
1846
+ statuses: z.array(validationSchemaStorage.lazy("WorkflowStatusUpdate")),
1847
+ workflows: z.array(validationSchemaStorage.lazy("WorkflowUpdate")),
1848
+ })
1849
+ .strict()
1850
+ .describe("WorkflowUpdateRequest"),
1851
+ );
1852
+ validationSchemaStorage.register(
1853
+ "WorkflowUpdateResponse",
1854
+ z
1855
+ .object({
1856
+ statuses: z
1857
+ .array(validationSchemaStorage.lazy("JiraWorkflowStatus"))
1858
+ .superRefine((items, ctx) => {
1859
+ if (
1860
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1861
+ items.length
1862
+ ) {
1863
+ ctx.addIssue({
1864
+ code: z.ZodIssueCode.custom,
1865
+ path: [],
1866
+ message: "Array items must be unique",
1867
+ });
1868
+ }
1869
+ })
1870
+ .optional(),
1871
+ taskId: z.nullable(z.string()).optional(),
1872
+ workflows: z
1873
+ .array(validationSchemaStorage.lazy("JiraWorkflow"))
1874
+ .superRefine((items, ctx) => {
1875
+ if (
1876
+ new Set(items.map((item) => JSON.stringify(item))).size !==
1877
+ items.length
1878
+ ) {
1879
+ ctx.addIssue({
1880
+ code: z.ZodIssueCode.custom,
1881
+ path: [],
1882
+ message: "Array items must be unique",
1883
+ });
1884
+ }
1885
+ })
1886
+ .optional(),
1887
+ })
1888
+ .strict()
1889
+ .describe("WorkflowUpdateResponse"),
1890
+ );
1891
+ validationSchemaStorage.register(
1892
+ "WorkflowUpdateValidateRequestBean",
1893
+ z
1894
+ .object({
1895
+ payload: validationSchemaStorage.lazy("WorkflowUpdateRequest"),
1896
+ validationOptions: validationSchemaStorage
1897
+ .lazy("ValidationOptionsForUpdate")
1898
+ .optional(),
1899
+ })
1900
+ .strict()
1901
+ .describe("WorkflowUpdateValidateRequestBean"),
1902
+ );
1903
+ validationSchemaStorage.register(
1904
+ "WorkflowValidationError",
1905
+ z
1906
+ .object({
1907
+ code: z.string().optional(),
1908
+ elementReference: validationSchemaStorage
1909
+ .lazy("WorkflowElementReference")
1910
+ .optional(),
1911
+ level: z.enum(["WARNING", "ERROR"]).optional(),
1912
+ message: z.string().optional(),
1913
+ type: z
1914
+ .enum([
1915
+ "RULE",
1916
+ "STATUS",
1917
+ "STATUS_LAYOUT",
1918
+ "STATUS_PROPERTY",
1919
+ "WORKFLOW",
1920
+ "TRANSITION",
1921
+ "TRANSITION_PROPERTY",
1922
+ "SCOPE",
1923
+ "STATUS_MAPPING",
1924
+ "TRIGGER",
1925
+ ])
1926
+ .optional(),
1927
+ })
1928
+ .strict()
1929
+ .describe("WorkflowValidationError"),
1930
+ );
1931
+ validationSchemaStorage.register(
1932
+ "WorkflowValidationErrorList",
1933
+ z
1934
+ .object({
1935
+ errors: z
1936
+ .array(validationSchemaStorage.lazy("WorkflowValidationError"))
1937
+ .optional(),
1938
+ })
1939
+ .strict()
1940
+ .describe("WorkflowValidationErrorList"),
1941
+ );
1942
+ validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
1943
+ }