@resolution/confluence-api-client 0.7.12 → 0.11.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 (356) hide show
  1. package/CHANGELOG.md +208 -213
  2. package/README.md +4 -4
  3. package/lib/openapi/core/CommonHttpClient.d.ts +46 -17
  4. package/lib/openapi/core/CommonHttpClient.js +175 -232
  5. package/lib/openapi/core/CommonHttpClient.js.map +1 -1
  6. package/lib/openapi/core/CommonHttpService.d.ts +1 -1
  7. package/lib/openapi/core/CommonHttpService.js.map +1 -1
  8. package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +4 -4
  9. package/lib/openapi/core/CommonValidationSchemaStorage.js +2 -4
  10. package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -1
  11. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +4 -4
  12. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +38 -0
  13. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  14. package/lib/openapi/v1/models/audit.d.ts +2 -2
  15. package/lib/openapi/v1/models/audit.js +31 -90
  16. package/lib/openapi/v1/models/audit.js.map +1 -1
  17. package/lib/openapi/v1/models/common.d.ts +2 -4
  18. package/lib/openapi/v1/models/common.js +188 -464
  19. package/lib/openapi/v1/models/common.js.map +1 -1
  20. package/lib/openapi/v1/models/content.d.ts +2 -2
  21. package/lib/openapi/v1/models/content.js +205 -491
  22. package/lib/openapi/v1/models/content.js.map +1 -1
  23. package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
  24. package/lib/openapi/v1/models/contentAttachments.js +8 -19
  25. package/lib/openapi/v1/models/contentAttachments.js.map +1 -1
  26. package/lib/openapi/v1/models/contentBody.d.ts +2 -2
  27. package/lib/openapi/v1/models/contentBody.js +20 -59
  28. package/lib/openapi/v1/models/contentBody.js.map +1 -1
  29. package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +4 -2
  30. package/lib/openapi/v1/models/contentChildrenAndDescendants.js +17 -40
  31. package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
  32. package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
  33. package/lib/openapi/v1/models/contentLabels.js +2 -7
  34. package/lib/openapi/v1/models/contentLabels.js.map +1 -1
  35. package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
  36. package/lib/openapi/v1/models/contentMacroBody.js +4 -10
  37. package/lib/openapi/v1/models/contentMacroBody.js.map +1 -1
  38. package/lib/openapi/v1/models/contentPermissions.d.ts +2 -2
  39. package/lib/openapi/v1/models/contentPermissions.js +10 -22
  40. package/lib/openapi/v1/models/contentPermissions.js.map +1 -1
  41. package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
  42. package/lib/openapi/v1/models/contentProperties.js +25 -71
  43. package/lib/openapi/v1/models/contentProperties.js.map +1 -1
  44. package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
  45. package/lib/openapi/v1/models/contentRestrictions.js +17 -57
  46. package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
  47. package/lib/openapi/v1/models/contentStates.d.ts +1 -20
  48. package/lib/openapi/v1/models/contentStates.js +15 -55
  49. package/lib/openapi/v1/models/contentStates.js.map +1 -1
  50. package/lib/openapi/v1/models/contentVersions.d.ts +2 -2
  51. package/lib/openapi/v1/models/contentVersions.js +9 -20
  52. package/lib/openapi/v1/models/contentVersions.js.map +1 -1
  53. package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
  54. package/lib/openapi/v1/models/contentWatches.js +21 -46
  55. package/lib/openapi/v1/models/contentWatches.js.map +1 -1
  56. package/lib/openapi/v1/models/dynamicModules.d.ts +33 -27
  57. package/lib/openapi/v1/models/dynamicModules.js +6 -15
  58. package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
  59. package/lib/openapi/v1/models/group.d.ts +1 -1
  60. package/lib/openapi/v1/models/group.js +6 -15
  61. package/lib/openapi/v1/models/group.js.map +1 -1
  62. package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
  63. package/lib/openapi/v1/models/inlineTasks.js +10 -22
  64. package/lib/openapi/v1/models/inlineTasks.js.map +1 -1
  65. package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
  66. package/lib/openapi/v1/models/labelInfo.js +11 -27
  67. package/lib/openapi/v1/models/labelInfo.js.map +1 -1
  68. package/lib/openapi/v1/models/longRunningTask.d.ts +2 -2
  69. package/lib/openapi/v1/models/longRunningTask.js +20 -42
  70. package/lib/openapi/v1/models/longRunningTask.js.map +1 -1
  71. package/lib/openapi/v1/models/relation.d.ts +2 -2
  72. package/lib/openapi/v1/models/relation.js +16 -45
  73. package/lib/openapi/v1/models/relation.js.map +1 -1
  74. package/lib/openapi/v1/models/search.d.ts +2 -2
  75. package/lib/openapi/v1/models/search.js +15 -34
  76. package/lib/openapi/v1/models/search.js.map +1 -1
  77. package/lib/openapi/v1/models/settings.d.ts +2 -2
  78. package/lib/openapi/v1/models/settings.js +13 -29
  79. package/lib/openapi/v1/models/settings.js.map +1 -1
  80. package/lib/openapi/v1/models/space.d.ts +2 -2
  81. package/lib/openapi/v1/models/space.js +31 -69
  82. package/lib/openapi/v1/models/space.js.map +1 -1
  83. package/lib/openapi/v1/models/spacePermissions.d.ts +1 -1
  84. package/lib/openapi/v1/models/spacePermissions.js +23 -86
  85. package/lib/openapi/v1/models/spacePermissions.js.map +1 -1
  86. package/lib/openapi/v1/models/spaceProperties.d.ts +2 -2
  87. package/lib/openapi/v1/models/spaceProperties.js +26 -71
  88. package/lib/openapi/v1/models/spaceProperties.js.map +1 -1
  89. package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
  90. package/lib/openapi/v1/models/spaceSettings.js +3 -9
  91. package/lib/openapi/v1/models/spaceSettings.js.map +1 -1
  92. package/lib/openapi/v1/models/template.d.ts +2 -2
  93. package/lib/openapi/v1/models/template.js +45 -103
  94. package/lib/openapi/v1/models/template.js.map +1 -1
  95. package/lib/openapi/v1/models/themes.d.ts +1 -1
  96. package/lib/openapi/v1/models/themes.js +10 -22
  97. package/lib/openapi/v1/models/themes.js.map +1 -1
  98. package/lib/openapi/v1/models/userProperties.d.ts +1 -1
  99. package/lib/openapi/v1/models/userProperties.js +16 -33
  100. package/lib/openapi/v1/models/userProperties.js.map +1 -1
  101. package/lib/openapi/v1/models/users.d.ts +2 -2
  102. package/lib/openapi/v1/models/users.js +25 -57
  103. package/lib/openapi/v1/models/users.js.map +1 -1
  104. package/lib/openapi/v1/services/AnalyticsService.d.ts +2 -2
  105. package/lib/openapi/v1/services/AnalyticsService.js +29 -47
  106. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  107. package/lib/openapi/v1/services/AuditService.d.ts +6 -6
  108. package/lib/openapi/v1/services/AuditService.js +67 -109
  109. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  110. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -7
  111. package/lib/openapi/v1/services/ContentAttachmentsService.js +72 -109
  112. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  113. package/lib/openapi/v1/services/ContentBodyService.d.ts +7 -7
  114. package/lib/openapi/v1/services/ContentBodyService.js +67 -105
  115. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  116. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +15 -15
  117. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +110 -160
  118. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  119. package/lib/openapi/v1/services/ContentCommentsService.d.ts +4 -4
  120. package/lib/openapi/v1/services/ContentCommentsService.js +19 -26
  121. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  122. package/lib/openapi/v1/services/ContentLabelsService.d.ts +4 -4
  123. package/lib/openapi/v1/services/ContentLabelsService.js +36 -54
  124. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  125. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -4
  126. package/lib/openapi/v1/services/ContentMacroBodyService.js +43 -67
  127. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  128. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +1 -1
  129. package/lib/openapi/v1/services/ContentPermissionsService.js +14 -23
  130. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  131. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +7 -7
  132. package/lib/openapi/v1/services/ContentPropertiesService.js +73 -112
  133. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  134. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +13 -13
  135. package/lib/openapi/v1/services/ContentRestrictionsService.js +127 -184
  136. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  137. package/lib/openapi/v1/services/ContentService.d.ts +18 -18
  138. package/lib/openapi/v1/services/ContentService.js +143 -211
  139. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  140. package/lib/openapi/v1/services/ContentStatesService.d.ts +13 -56
  141. package/lib/openapi/v1/services/ContentStatesService.js +99 -246
  142. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  143. package/lib/openapi/v1/services/ContentVersionsService.d.ts +4 -4
  144. package/lib/openapi/v1/services/ContentVersionsService.js +53 -79
  145. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  146. package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -13
  147. package/lib/openapi/v1/services/ContentWatchesService.js +113 -169
  148. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  149. package/lib/openapi/v1/services/DynamicModulesService.d.ts +2 -2
  150. package/lib/openapi/v1/services/DynamicModulesService.js +24 -37
  151. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  152. package/lib/openapi/v1/services/ExperimentalService.d.ts +5 -5
  153. package/lib/openapi/v1/services/ExperimentalService.js +42 -65
  154. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  155. package/lib/openapi/v1/services/GroupService.d.ts +10 -10
  156. package/lib/openapi/v1/services/GroupService.js +76 -117
  157. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  158. package/lib/openapi/v1/services/InlineTasksService.d.ts +4 -4
  159. package/lib/openapi/v1/services/InlineTasksService.js +36 -59
  160. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  161. package/lib/openapi/v1/services/LabelInfoService.d.ts +1 -1
  162. package/lib/openapi/v1/services/LabelInfoService.js +12 -19
  163. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  164. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +2 -2
  165. package/lib/openapi/v1/services/LongRunningTaskService.js +24 -40
  166. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  167. package/lib/openapi/v1/services/RelationService.d.ts +38 -18
  168. package/lib/openapi/v1/services/RelationService.js +64 -94
  169. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  170. package/lib/openapi/v1/services/SearchService.d.ts +5 -5
  171. package/lib/openapi/v1/services/SearchService.js +32 -46
  172. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  173. package/lib/openapi/v1/services/SettingsService.d.ts +6 -6
  174. package/lib/openapi/v1/services/SettingsService.js +61 -98
  175. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  176. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -4
  177. package/lib/openapi/v1/services/SpacePermissionsService.js +25 -38
  178. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  179. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +7 -7
  180. package/lib/openapi/v1/services/SpacePropertiesService.js +73 -112
  181. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  182. package/lib/openapi/v1/services/SpaceService.d.ts +15 -15
  183. package/lib/openapi/v1/services/SpaceService.js +114 -175
  184. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  185. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +2 -2
  186. package/lib/openapi/v1/services/SpaceSettingsService.js +24 -38
  187. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  188. package/lib/openapi/v1/services/TemplateService.d.ts +7 -7
  189. package/lib/openapi/v1/services/TemplateService.js +67 -104
  190. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  191. package/lib/openapi/v1/services/ThemesService.d.ts +5 -5
  192. package/lib/openapi/v1/services/ThemesService.js +61 -101
  193. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  194. package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -6
  195. package/lib/openapi/v1/services/UserPropertiesService.js +42 -64
  196. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  197. package/lib/openapi/v1/services/UsersService.d.ts +9 -9
  198. package/lib/openapi/v1/services/UsersService.js +94 -146
  199. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  200. package/lib/openapi/v1/validationSchemaStorage.d.ts +2 -2
  201. package/lib/openapi/v1/validationSchemaStorage.js +12 -22
  202. package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
  203. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +1 -1
  204. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +3 -1
  205. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  206. package/lib/openapi/v2/models/ancestors.d.ts +1 -1
  207. package/lib/openapi/v2/models/ancestors.js +4 -12
  208. package/lib/openapi/v2/models/ancestors.js.map +1 -1
  209. package/lib/openapi/v2/models/attachment.d.ts +2 -2
  210. package/lib/openapi/v2/models/attachment.js +26 -71
  211. package/lib/openapi/v2/models/attachment.js.map +1 -1
  212. package/lib/openapi/v2/models/blogPost.d.ts +2 -2
  213. package/lib/openapi/v2/models/blogPost.js +37 -102
  214. package/lib/openapi/v2/models/blogPost.js.map +1 -1
  215. package/lib/openapi/v2/models/children.d.ts +1 -1
  216. package/lib/openapi/v2/models/children.js +9 -24
  217. package/lib/openapi/v2/models/children.js.map +1 -1
  218. package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
  219. package/lib/openapi/v2/models/classificationLevel.js +6 -32
  220. package/lib/openapi/v2/models/classificationLevel.js.map +1 -1
  221. package/lib/openapi/v2/models/comment.d.ts +2 -2
  222. package/lib/openapi/v2/models/comment.js +107 -272
  223. package/lib/openapi/v2/models/comment.js.map +1 -1
  224. package/lib/openapi/v2/models/common.d.ts +1 -1
  225. package/lib/openapi/v2/models/common.js +84 -214
  226. package/lib/openapi/v2/models/common.js.map +1 -1
  227. package/lib/openapi/v2/models/content.d.ts +1 -1
  228. package/lib/openapi/v2/models/content.js +3 -21
  229. package/lib/openapi/v2/models/content.js.map +1 -1
  230. package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
  231. package/lib/openapi/v2/models/contentProperties.js +8 -20
  232. package/lib/openapi/v2/models/contentProperties.js.map +1 -1
  233. package/lib/openapi/v2/models/customContent.d.ts +2 -2
  234. package/lib/openapi/v2/models/customContent.js +43 -121
  235. package/lib/openapi/v2/models/customContent.js.map +1 -1
  236. package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
  237. package/lib/openapi/v2/models/dataPolicies.js +11 -25
  238. package/lib/openapi/v2/models/dataPolicies.js.map +1 -1
  239. package/lib/openapi/v2/models/database.d.ts +1 -1
  240. package/lib/openapi/v2/models/database.js +8 -19
  241. package/lib/openapi/v2/models/database.js.map +1 -1
  242. package/lib/openapi/v2/models/eap.d.ts +1 -1
  243. package/lib/openapi/v2/models/eap.js +0 -3
  244. package/lib/openapi/v2/models/eap.js.map +1 -1
  245. package/lib/openapi/v2/models/folder.d.ts +1 -1
  246. package/lib/openapi/v2/models/folder.js +8 -19
  247. package/lib/openapi/v2/models/folder.js.map +1 -1
  248. package/lib/openapi/v2/models/operation.d.ts +1 -1
  249. package/lib/openapi/v2/models/operation.js +4 -12
  250. package/lib/openapi/v2/models/operation.js.map +1 -1
  251. package/lib/openapi/v2/models/page.d.ts +2 -2
  252. package/lib/openapi/v2/models/page.js +36 -101
  253. package/lib/openapi/v2/models/page.js.map +1 -1
  254. package/lib/openapi/v2/models/smartLink.d.ts +1 -1
  255. package/lib/openapi/v2/models/smartLink.js +8 -19
  256. package/lib/openapi/v2/models/smartLink.js.map +1 -1
  257. package/lib/openapi/v2/models/space.d.ts +2 -2
  258. package/lib/openapi/v2/models/space.js +21 -57
  259. package/lib/openapi/v2/models/space.js.map +1 -1
  260. package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
  261. package/lib/openapi/v2/models/spaceProperties.js +8 -20
  262. package/lib/openapi/v2/models/spaceProperties.js.map +1 -1
  263. package/lib/openapi/v2/models/task.d.ts +1 -1
  264. package/lib/openapi/v2/models/task.js +7 -16
  265. package/lib/openapi/v2/models/task.js.map +1 -1
  266. package/lib/openapi/v2/models/user.d.ts +1 -1
  267. package/lib/openapi/v2/models/user.js +7 -20
  268. package/lib/openapi/v2/models/user.js.map +1 -1
  269. package/lib/openapi/v2/models/version.d.ts +1 -1
  270. package/lib/openapi/v2/models/version.js +22 -46
  271. package/lib/openapi/v2/models/version.js.map +1 -1
  272. package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
  273. package/lib/openapi/v2/models/whiteboard.js +8 -19
  274. package/lib/openapi/v2/models/whiteboard.js.map +1 -1
  275. package/lib/openapi/v2/services/AncestorsService.d.ts +5 -5
  276. package/lib/openapi/v2/services/AncestorsService.js +73 -133
  277. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  278. package/lib/openapi/v2/services/AttachmentService.d.ts +8 -8
  279. package/lib/openapi/v2/services/AttachmentService.js +98 -180
  280. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  281. package/lib/openapi/v2/services/BlogPostService.d.ts +9 -9
  282. package/lib/openapi/v2/services/BlogPostService.js +100 -180
  283. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  284. package/lib/openapi/v2/services/ChildrenService.d.ts +2 -2
  285. package/lib/openapi/v2/services/ChildrenService.js +32 -61
  286. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  287. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +15 -15
  288. package/lib/openapi/v2/services/ClassificationLevelService.js +127 -191
  289. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  290. package/lib/openapi/v2/services/CommentService.d.ts +20 -20
  291. package/lib/openapi/v2/services/CommentService.js +250 -454
  292. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  293. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +46 -46
  294. package/lib/openapi/v2/services/ContentPropertiesService.js +496 -820
  295. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  296. package/lib/openapi/v2/services/ContentService.d.ts +1 -1
  297. package/lib/openapi/v2/services/ContentService.js +12 -19
  298. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  299. package/lib/openapi/v2/services/CustomContentService.d.ts +14 -11
  300. package/lib/openapi/v2/services/CustomContentService.js +114 -207
  301. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  302. package/lib/openapi/v2/services/DataPoliciesService.d.ts +2 -2
  303. package/lib/openapi/v2/services/DataPoliciesService.js +25 -48
  304. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  305. package/lib/openapi/v2/services/DatabaseService.d.ts +3 -3
  306. package/lib/openapi/v2/services/DatabaseService.js +37 -63
  307. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  308. package/lib/openapi/v2/services/EapService.d.ts +7 -7
  309. package/lib/openapi/v2/services/EapService.js +89 -165
  310. package/lib/openapi/v2/services/EapService.js.map +1 -1
  311. package/lib/openapi/v2/services/FolderService.d.ts +3 -3
  312. package/lib/openapi/v2/services/FolderService.js +36 -62
  313. package/lib/openapi/v2/services/FolderService.js.map +1 -1
  314. package/lib/openapi/v2/services/LabelService.d.ts +7 -7
  315. package/lib/openapi/v2/services/LabelService.js +105 -196
  316. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  317. package/lib/openapi/v2/services/LikeService.d.ts +8 -8
  318. package/lib/openapi/v2/services/LikeService.js +109 -189
  319. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  320. package/lib/openapi/v2/services/OperationService.d.ts +11 -11
  321. package/lib/openapi/v2/services/OperationService.js +122 -199
  322. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  323. package/lib/openapi/v2/services/PageService.d.ts +9 -9
  324. package/lib/openapi/v2/services/PageService.js +100 -180
  325. package/lib/openapi/v2/services/PageService.js.map +1 -1
  326. package/lib/openapi/v2/services/SmartLinkService.d.ts +3 -3
  327. package/lib/openapi/v2/services/SmartLinkService.js +36 -62
  328. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  329. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -3
  330. package/lib/openapi/v2/services/SpacePermissionsService.js +30 -56
  331. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  332. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -6
  333. package/lib/openapi/v2/services/SpacePropertiesService.js +56 -92
  334. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  335. package/lib/openapi/v2/services/SpaceRolesService.d.ts +5 -5
  336. package/lib/openapi/v2/services/SpaceRolesService.js +60 -111
  337. package/lib/openapi/v2/services/SpaceRolesService.js.map +1 -1
  338. package/lib/openapi/v2/services/SpaceService.d.ts +4 -4
  339. package/lib/openapi/v2/services/SpaceService.js +47 -87
  340. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  341. package/lib/openapi/v2/services/TaskService.d.ts +4 -4
  342. package/lib/openapi/v2/services/TaskService.js +40 -68
  343. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  344. package/lib/openapi/v2/services/UserService.d.ts +3 -3
  345. package/lib/openapi/v2/services/UserService.js +33 -58
  346. package/lib/openapi/v2/services/UserService.js.map +1 -1
  347. package/lib/openapi/v2/services/VersionService.d.ts +14 -14
  348. package/lib/openapi/v2/services/VersionService.js +158 -281
  349. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  350. package/lib/openapi/v2/services/WhiteboardService.d.ts +3 -3
  351. package/lib/openapi/v2/services/WhiteboardService.js +37 -63
  352. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  353. package/lib/openapi/v2/validationSchemaStorage.d.ts +2 -2
  354. package/lib/openapi/v2/validationSchemaStorage.js +12 -22
  355. package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
  356. package/package.json +5 -4
@@ -4,12 +4,12 @@ exports.CommentService = void 0;
4
4
  // DO NOT EDIT!
5
5
  // This file is generated by "api-typescript-generator".
6
6
  // To update this file run "yarn build:openapi".
7
- const zod_1 = require("zod");
8
7
  const commonHttpClient = require("../../core/CommonHttpClient");
9
8
  const CommonHttpService_1 = require("../../core/CommonHttpService");
10
9
  const comment_1 = require("../models/comment");
11
10
  const common_1 = require("../models/common");
12
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ const zod_1 = require("zod");
13
13
  /**
14
14
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment
15
15
  * @category Services
@@ -38,24 +38,19 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
38
38
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-post
39
39
  * @param params
40
40
  */
41
- this.createFooterComment = ({ createFooterCommentModel, }) => {
42
- return this.getClientInstance()
43
- .request({
41
+ this.createFooterComment = ({ createFooterCommentModel }) => {
42
+ return this.getClientInstance().request({
44
43
  path: "/footer-comments",
45
44
  method: "POST",
46
45
  headers: {
47
- "Content-Type": "application/json",
46
+ "Content-Type": "application/json"
48
47
  },
49
- body: createFooterCommentModel,
50
- })
51
- .then(this.getClientInstance().responseHandler({
48
+ body: createFooterCommentModel
49
+ }).then(this.getClientInstance().responseHandler({
52
50
  201: {
53
- "application/json": "json",
54
- },
55
- }))
56
- .then(commonHttpClient.castResponse())
57
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createFooterComment.response")))
58
- .then(commonHttpClient.getBody);
51
+ "application/json": "json"
52
+ }
53
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createFooterComment.response"))).then(commonHttpClient.getBody);
59
54
  };
60
55
  /**
61
56
  * Create an inline comment. This can be at the top level (specifying pageId or
@@ -76,24 +71,19 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
76
71
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-post
77
72
  * @param params
78
73
  */
79
- this.createInlineComment = ({ createInlineCommentModel, }) => {
80
- return this.getClientInstance()
81
- .request({
74
+ this.createInlineComment = ({ createInlineCommentModel }) => {
75
+ return this.getClientInstance().request({
82
76
  path: "/inline-comments",
83
77
  method: "POST",
84
78
  headers: {
85
- "Content-Type": "application/json",
79
+ "Content-Type": "application/json"
86
80
  },
87
- body: createInlineCommentModel,
88
- })
89
- .then(this.getClientInstance().responseHandler({
81
+ body: createInlineCommentModel
82
+ }).then(this.getClientInstance().responseHandler({
90
83
  201: {
91
- "application/json": "json",
92
- },
93
- }))
94
- .then(commonHttpClient.castResponse())
95
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createInlineComment.response")))
96
- .then(commonHttpClient.getBody);
84
+ "application/json": "json"
85
+ }
86
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createInlineComment.response"))).then(commonHttpClient.getBody);
97
87
  };
98
88
  /**
99
89
  * Deletes a footer comment. This is a permanent deletion and cannot be reverted.
@@ -107,16 +97,14 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
107
97
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-delete
108
98
  * @param params
109
99
  */
110
- this.deleteFooterComment = ({ commentId, }) => {
111
- return this.getClientInstance()
112
- .request({
100
+ this.deleteFooterComment = ({ commentId }) => {
101
+ return this.getClientInstance().request({
113
102
  path: "/footer-comments/{comment-id}",
114
103
  method: "DELETE",
115
104
  pathParams: {
116
- "comment-id": commentId,
117
- },
118
- })
119
- .then(commonHttpClient.discardResult);
105
+ "comment-id": commentId
106
+ }
107
+ }).then(commonHttpClient.discardResult);
120
108
  };
121
109
  /**
122
110
  * Deletes an inline comment. This is a permanent deletion and cannot be reverted.
@@ -130,16 +118,14 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
130
118
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-delete
131
119
  * @param params
132
120
  */
133
- this.deleteInlineComment = ({ commentId, }) => {
134
- return this.getClientInstance()
135
- .request({
121
+ this.deleteInlineComment = ({ commentId }) => {
122
+ return this.getClientInstance().request({
136
123
  path: "/inline-comments/{comment-id}",
137
124
  method: "DELETE",
138
125
  pathParams: {
139
- "comment-id": commentId,
140
- },
141
- })
142
- .then(commonHttpClient.discardResult);
126
+ "comment-id": commentId
127
+ }
128
+ }).then(commonHttpClient.discardResult);
143
129
  };
144
130
  /**
145
131
  * Returns the comments of the specific attachment.
@@ -156,30 +142,25 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
156
142
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-attachments-id-footer-comments-get
157
143
  * @param params
158
144
  */
159
- this.getAttachmentComments = ({ id, bodyFormat, cursor, limit, sort, version, }) => {
160
- return this.getClientInstance()
161
- .request({
145
+ this.getAttachmentComments = ({ id, bodyFormat, cursor, limit, sort, version }) => {
146
+ return this.getClientInstance().request({
162
147
  path: "/attachments/{id}/footer-comments",
163
148
  method: "GET",
164
149
  pathParams: {
165
- id,
150
+ id
166
151
  },
167
152
  query: {
168
153
  "body-format": bodyFormat,
169
154
  cursor,
170
155
  limit,
171
156
  sort,
172
- version,
173
- },
174
- })
175
- .then(this.getClientInstance().responseHandler({
157
+ version
158
+ }
159
+ }).then(this.getClientInstance().responseHandler({
176
160
  200: {
177
- "application/json": "json",
178
- },
179
- }))
180
- .then(commonHttpClient.castResponse())
181
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getAttachmentComments.response")))
182
- .then(commonHttpClient.getBody);
161
+ "application/json": "json"
162
+ }
163
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getAttachmentComments.response"))).then(commonHttpClient.getBody);
183
164
  };
184
165
  /**
185
166
  * Returns the root footer comments of specific blog post. The number of results
@@ -195,30 +176,25 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
195
176
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-footer-comments-get
196
177
  * @param params
197
178
  */
198
- this.getBlogPostFooterComments = ({ id, bodyFormat, status, sort, cursor, limit, }) => {
199
- return this.getClientInstance()
200
- .request({
179
+ this.getBlogPostFooterComments = ({ id, bodyFormat, status, sort, cursor, limit }) => {
180
+ return this.getClientInstance().request({
201
181
  path: "/blogposts/{id}/footer-comments",
202
182
  method: "GET",
203
183
  pathParams: {
204
- id,
184
+ id
205
185
  },
206
186
  query: {
207
187
  "body-format": bodyFormat,
208
188
  status,
209
189
  sort,
210
190
  cursor,
211
- limit,
212
- },
213
- })
214
- .then(this.getClientInstance().responseHandler({
191
+ limit
192
+ }
193
+ }).then(this.getClientInstance().responseHandler({
215
194
  200: {
216
- "application/json": "json",
217
- },
218
- }))
219
- .then(commonHttpClient.castResponse())
220
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostFooterComments.response")))
221
- .then(commonHttpClient.getBody);
195
+ "application/json": "json"
196
+ }
197
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostFooterComments.response"))).then(commonHttpClient.getBody);
222
198
  };
223
199
  /**
224
200
  * Returns the root inline comments of specific blog post. The number of results
@@ -234,13 +210,12 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
234
210
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-inline-comments-get
235
211
  * @param params
236
212
  */
237
- this.getBlogPostInlineComments = ({ id, bodyFormat, status, resolutionStatus, sort, cursor, limit, }) => {
238
- return this.getClientInstance()
239
- .request({
213
+ this.getBlogPostInlineComments = ({ id, bodyFormat, status, resolutionStatus, sort, cursor, limit }) => {
214
+ return this.getClientInstance().request({
240
215
  path: "/blogposts/{id}/inline-comments",
241
216
  method: "GET",
242
217
  pathParams: {
243
- id,
218
+ id
244
219
  },
245
220
  query: {
246
221
  "body-format": bodyFormat,
@@ -248,17 +223,13 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
248
223
  "resolution-status": resolutionStatus,
249
224
  sort,
250
225
  cursor,
251
- limit,
252
- },
253
- })
254
- .then(this.getClientInstance().responseHandler({
226
+ limit
227
+ }
228
+ }).then(this.getClientInstance().responseHandler({
255
229
  200: {
256
- "application/json": "json",
257
- },
258
- }))
259
- .then(commonHttpClient.castResponse())
260
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostInlineComments.response")))
261
- .then(commonHttpClient.getBody);
230
+ "application/json": "json"
231
+ }
232
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostInlineComments.response"))).then(commonHttpClient.getBody);
262
233
  };
263
234
  /**
264
235
  * Returns the comments of the specific custom content.
@@ -275,29 +246,24 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
275
246
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-custom-content-id-footer-comments-get
276
247
  * @param params
277
248
  */
278
- this.getCustomContentComments = ({ id, bodyFormat, cursor, limit, sort, }) => {
279
- return this.getClientInstance()
280
- .request({
249
+ this.getCustomContentComments = ({ id, bodyFormat, cursor, limit, sort }) => {
250
+ return this.getClientInstance().request({
281
251
  path: "/custom-content/{id}/footer-comments",
282
252
  method: "GET",
283
253
  pathParams: {
284
- id,
254
+ id
285
255
  },
286
256
  query: {
287
257
  "body-format": bodyFormat,
288
258
  cursor,
289
259
  limit,
290
- sort,
291
- },
292
- })
293
- .then(this.getClientInstance().responseHandler({
260
+ sort
261
+ }
262
+ }).then(this.getClientInstance().responseHandler({
294
263
  200: {
295
- "application/json": "json",
296
- },
297
- }))
298
- .then(commonHttpClient.castResponse())
299
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getCustomContentComments.response")))
300
- .then(commonHttpClient.getBody);
264
+ "application/json": "json"
265
+ }
266
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getCustomContentComments.response"))).then(commonHttpClient.getBody);
301
267
  };
302
268
  /**
303
269
  * Retrieves a footer comment by id
@@ -311,13 +277,12 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
311
277
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-get
312
278
  * @param params
313
279
  */
314
- this.getFooterCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }) => {
315
- return this.getClientInstance()
316
- .request({
280
+ this.getFooterCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion }) => {
281
+ return this.getClientInstance().request({
317
282
  path: "/footer-comments/{comment-id}",
318
283
  method: "GET",
319
284
  pathParams: {
320
- "comment-id": commentId,
285
+ "comment-id": commentId
321
286
  },
322
287
  query: {
323
288
  "body-format": bodyFormat,
@@ -326,17 +291,13 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
326
291
  "include-operations": includeOperations,
327
292
  "include-likes": includeLikes,
328
293
  "include-versions": includeVersions,
329
- "include-version": includeVersion,
330
- },
331
- })
332
- .then(this.getClientInstance().responseHandler({
294
+ "include-version": includeVersion
295
+ }
296
+ }).then(this.getClientInstance().responseHandler({
333
297
  200: {
334
- "application/json": "json",
335
- },
336
- }))
337
- .then(commonHttpClient.castResponse())
338
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentById.response")))
339
- .then(commonHttpClient.getBody);
298
+ "application/json": "json"
299
+ }
300
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentById.response"))).then(commonHttpClient.getBody);
340
301
  };
341
302
  /**
342
303
  * Returns the children footer comments of specific comment. The number of results
@@ -352,29 +313,24 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
352
313
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-id-children-get
353
314
  * @param params
354
315
  */
355
- this.getFooterCommentChildren = ({ id, bodyFormat, sort, cursor, limit, }) => {
356
- return this.getClientInstance()
357
- .request({
316
+ this.getFooterCommentChildren = ({ id, bodyFormat, sort, cursor, limit }) => {
317
+ return this.getClientInstance().request({
358
318
  path: "/footer-comments/{id}/children",
359
319
  method: "GET",
360
320
  pathParams: {
361
- id,
321
+ id
362
322
  },
363
323
  query: {
364
324
  "body-format": bodyFormat,
365
325
  sort,
366
326
  cursor,
367
- limit,
368
- },
369
- })
370
- .then(this.getClientInstance().responseHandler({
327
+ limit
328
+ }
329
+ }).then(this.getClientInstance().responseHandler({
371
330
  200: {
372
- "application/json": "json",
373
- },
374
- }))
375
- .then(commonHttpClient.castResponse())
376
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentChildren.response")))
377
- .then(commonHttpClient.getBody);
331
+ "application/json": "json"
332
+ }
333
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentChildren.response"))).then(commonHttpClient.getBody);
378
334
  };
379
335
  /**
380
336
  * Returns all footer comments. The number of results is limited by the `limit`
@@ -390,26 +346,21 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
390
346
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-get
391
347
  * @param params
392
348
  */
393
- this.getFooterComments = ({ bodyFormat, sort, cursor, limit, } = {}) => {
394
- return this.getClientInstance()
395
- .request({
349
+ this.getFooterComments = ({ bodyFormat, sort, cursor, limit } = {}) => {
350
+ return this.getClientInstance().request({
396
351
  path: "/footer-comments",
397
352
  method: "GET",
398
353
  query: {
399
354
  "body-format": bodyFormat,
400
355
  sort,
401
356
  cursor,
402
- limit,
403
- },
404
- })
405
- .then(this.getClientInstance().responseHandler({
357
+ limit
358
+ }
359
+ }).then(this.getClientInstance().responseHandler({
406
360
  200: {
407
- "application/json": "json",
408
- },
409
- }))
410
- .then(commonHttpClient.castResponse())
411
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterComments.response")))
412
- .then(commonHttpClient.getBody);
361
+ "application/json": "json"
362
+ }
363
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterComments.response"))).then(commonHttpClient.getBody);
413
364
  };
414
365
  /**
415
366
  * Retrieves an inline comment by id
@@ -424,13 +375,12 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
424
375
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-get
425
376
  * @param params
426
377
  */
427
- this.getInlineCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }) => {
428
- return this.getClientInstance()
429
- .request({
378
+ this.getInlineCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion }) => {
379
+ return this.getClientInstance().request({
430
380
  path: "/inline-comments/{comment-id}",
431
381
  method: "GET",
432
382
  pathParams: {
433
- "comment-id": commentId,
383
+ "comment-id": commentId
434
384
  },
435
385
  query: {
436
386
  "body-format": bodyFormat,
@@ -439,17 +389,13 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
439
389
  "include-operations": includeOperations,
440
390
  "include-likes": includeLikes,
441
391
  "include-versions": includeVersions,
442
- "include-version": includeVersion,
443
- },
444
- })
445
- .then(this.getClientInstance().responseHandler({
392
+ "include-version": includeVersion
393
+ }
394
+ }).then(this.getClientInstance().responseHandler({
446
395
  200: {
447
- "application/json": "json",
448
- },
449
- }))
450
- .then(commonHttpClient.castResponse())
451
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentById.response")))
452
- .then(commonHttpClient.getBody);
396
+ "application/json": "json"
397
+ }
398
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentById.response"))).then(commonHttpClient.getBody);
453
399
  };
454
400
  /**
455
401
  * Returns the children inline comments of specific comment. The number of results
@@ -465,29 +411,24 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
465
411
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-id-children-get
466
412
  * @param params
467
413
  */
468
- this.getInlineCommentChildren = ({ id, bodyFormat, sort, cursor, limit, }) => {
469
- return this.getClientInstance()
470
- .request({
414
+ this.getInlineCommentChildren = ({ id, bodyFormat, sort, cursor, limit }) => {
415
+ return this.getClientInstance().request({
471
416
  path: "/inline-comments/{id}/children",
472
417
  method: "GET",
473
418
  pathParams: {
474
- id,
419
+ id
475
420
  },
476
421
  query: {
477
422
  "body-format": bodyFormat,
478
423
  sort,
479
424
  cursor,
480
- limit,
481
- },
482
- })
483
- .then(this.getClientInstance().responseHandler({
425
+ limit
426
+ }
427
+ }).then(this.getClientInstance().responseHandler({
484
428
  200: {
485
- "application/json": "json",
486
- },
487
- }))
488
- .then(commonHttpClient.castResponse())
489
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentChildren.response")))
490
- .then(commonHttpClient.getBody);
429
+ "application/json": "json"
430
+ }
431
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentChildren.response"))).then(commonHttpClient.getBody);
491
432
  };
492
433
  /**
493
434
  * Returns all inline comments. The number of results is limited by the `limit`
@@ -503,26 +444,21 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
503
444
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-get
504
445
  * @param params
505
446
  */
506
- this.getInlineComments = ({ bodyFormat, sort, cursor, limit, } = {}) => {
507
- return this.getClientInstance()
508
- .request({
447
+ this.getInlineComments = ({ bodyFormat, sort, cursor, limit } = {}) => {
448
+ return this.getClientInstance().request({
509
449
  path: "/inline-comments",
510
450
  method: "GET",
511
451
  query: {
512
452
  "body-format": bodyFormat,
513
453
  sort,
514
454
  cursor,
515
- limit,
516
- },
517
- })
518
- .then(this.getClientInstance().responseHandler({
455
+ limit
456
+ }
457
+ }).then(this.getClientInstance().responseHandler({
519
458
  200: {
520
- "application/json": "json",
521
- },
522
- }))
523
- .then(commonHttpClient.castResponse())
524
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineComments.response")))
525
- .then(commonHttpClient.getBody);
459
+ "application/json": "json"
460
+ }
461
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineComments.response"))).then(commonHttpClient.getBody);
526
462
  };
527
463
  /**
528
464
  * Returns the root footer comments of specific page. The number of results is
@@ -538,30 +474,25 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
538
474
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-footer-comments-get
539
475
  * @param params
540
476
  */
541
- this.getPageFooterComments = ({ id, bodyFormat, status, sort, cursor, limit, }) => {
542
- return this.getClientInstance()
543
- .request({
477
+ this.getPageFooterComments = ({ id, bodyFormat, status, sort, cursor, limit }) => {
478
+ return this.getClientInstance().request({
544
479
  path: "/pages/{id}/footer-comments",
545
480
  method: "GET",
546
481
  pathParams: {
547
- id,
482
+ id
548
483
  },
549
484
  query: {
550
485
  "body-format": bodyFormat,
551
486
  status,
552
487
  sort,
553
488
  cursor,
554
- limit,
555
- },
556
- })
557
- .then(this.getClientInstance().responseHandler({
489
+ limit
490
+ }
491
+ }).then(this.getClientInstance().responseHandler({
558
492
  200: {
559
- "application/json": "json",
560
- },
561
- }))
562
- .then(commonHttpClient.castResponse())
563
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageFooterComments.response")))
564
- .then(commonHttpClient.getBody);
493
+ "application/json": "json"
494
+ }
495
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageFooterComments.response"))).then(commonHttpClient.getBody);
565
496
  };
566
497
  /**
567
498
  * Returns the root inline comments of specific page. The number of results is
@@ -577,13 +508,12 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
577
508
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-inline-comments-get
578
509
  * @param params
579
510
  */
580
- this.getPageInlineComments = ({ id, bodyFormat, status, resolutionStatus, sort, cursor, limit, }) => {
581
- return this.getClientInstance()
582
- .request({
511
+ this.getPageInlineComments = ({ id, bodyFormat, status, resolutionStatus, sort, cursor, limit }) => {
512
+ return this.getClientInstance().request({
583
513
  path: "/pages/{id}/inline-comments",
584
514
  method: "GET",
585
515
  pathParams: {
586
- id,
516
+ id
587
517
  },
588
518
  query: {
589
519
  "body-format": bodyFormat,
@@ -591,17 +521,13 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
591
521
  "resolution-status": resolutionStatus,
592
522
  sort,
593
523
  cursor,
594
- limit,
595
- },
596
- })
597
- .then(this.getClientInstance().responseHandler({
524
+ limit
525
+ }
526
+ }).then(this.getClientInstance().responseHandler({
598
527
  200: {
599
- "application/json": "json",
600
- },
601
- }))
602
- .then(commonHttpClient.castResponse())
603
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageInlineComments.response")))
604
- .then(commonHttpClient.getBody);
528
+ "application/json": "json"
529
+ }
530
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageInlineComments.response"))).then(commonHttpClient.getBody);
605
531
  };
606
532
  /**
607
533
  * Update a footer comment. This can be used to update the body text of a comment.
@@ -616,27 +542,22 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
616
542
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-put
617
543
  * @param params
618
544
  */
619
- this.updateFooterComment = ({ commentId, requestBody, }) => {
620
- return this.getClientInstance()
621
- .request({
545
+ this.updateFooterComment = ({ commentId, requestBody }) => {
546
+ return this.getClientInstance().request({
622
547
  path: "/footer-comments/{comment-id}",
623
548
  method: "PUT",
624
549
  pathParams: {
625
- "comment-id": commentId,
550
+ "comment-id": commentId
626
551
  },
627
552
  headers: {
628
- "Content-Type": "application/json",
553
+ "Content-Type": "application/json"
629
554
  },
630
- body: requestBody,
631
- })
632
- .then(this.getClientInstance().responseHandler({
555
+ body: requestBody
556
+ }).then(this.getClientInstance().responseHandler({
633
557
  200: {
634
- "application/json": "json",
635
- },
636
- }))
637
- .then(commonHttpClient.castResponse())
638
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateFooterComment.response")))
639
- .then(commonHttpClient.getBody);
558
+ "application/json": "json"
559
+ }
560
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateFooterComment.response"))).then(commonHttpClient.getBody);
640
561
  };
641
562
  /**
642
563
  * Update an inline comment. This can be used to update the body text of a comment
@@ -652,281 +573,156 @@ class CommentService extends CommonHttpService_1.CommonHttpService {
652
573
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-put
653
574
  * @param params
654
575
  */
655
- this.updateInlineComment = ({ commentId, updateInlineCommentModel, }) => {
656
- return this.getClientInstance()
657
- .request({
576
+ this.updateInlineComment = ({ commentId, updateInlineCommentModel }) => {
577
+ return this.getClientInstance().request({
658
578
  path: "/inline-comments/{comment-id}",
659
579
  method: "PUT",
660
580
  pathParams: {
661
- "comment-id": commentId,
581
+ "comment-id": commentId
662
582
  },
663
583
  headers: {
664
- "Content-Type": "application/json",
584
+ "Content-Type": "application/json"
665
585
  },
666
- body: updateInlineCommentModel,
667
- })
668
- .then(this.getClientInstance().responseHandler({
586
+ body: updateInlineCommentModel
587
+ }).then(this.getClientInstance().responseHandler({
669
588
  200: {
670
- "application/json": "json",
671
- },
672
- }))
673
- .then(commonHttpClient.castResponse())
674
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateInlineComment.response")))
675
- .then(commonHttpClient.getBody);
589
+ "application/json": "json"
590
+ }
591
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateInlineComment.response"))).then(commonHttpClient.getBody);
676
592
  };
677
593
  }
678
594
  static initialize() {
679
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getAttachmentComments.response", zod_1.z
680
- .object({
595
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getAttachmentComments.response", zod_1.z.object({
681
596
  status: zod_1.z.literal(200),
682
597
  mediaType: zod_1.z.literal("application/json"),
683
- body: zod_1.z
684
- .object({
685
- results: zod_1.z
686
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentCommentModel"))
687
- .optional(),
688
- _links: validationSchemaStorage_1.validationSchemaStorage
689
- .lazy("MultiEntityLinks")
690
- .optional(),
691
- })
692
- .catchall(zod_1.z.unknown()),
693
- })
694
- .describe("CommentService.getAttachmentComments.response"));
695
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getBlogPostFooterComments.response", zod_1.z
696
- .object({
598
+ body: zod_1.z.object({
599
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentCommentModel")).optional(),
600
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
601
+ }).catchall(zod_1.z.unknown())
602
+ }).describe("CommentService.getAttachmentComments.response"));
603
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getBlogPostFooterComments.response", zod_1.z.object({
697
604
  status: zod_1.z.literal(200),
698
605
  mediaType: zod_1.z.literal("application/json"),
699
- body: zod_1.z
700
- .object({
701
- results: zod_1.z
702
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostCommentModel"))
703
- .optional(),
704
- _links: validationSchemaStorage_1.validationSchemaStorage
705
- .lazy("MultiEntityLinks")
706
- .optional(),
707
- })
708
- .catchall(zod_1.z.unknown()),
709
- })
710
- .describe("CommentService.getBlogPostFooterComments.response"));
711
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getBlogPostInlineComments.response", zod_1.z
712
- .object({
606
+ body: zod_1.z.object({
607
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostCommentModel")).optional(),
608
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
609
+ }).catchall(zod_1.z.unknown())
610
+ }).describe("CommentService.getBlogPostFooterComments.response"));
611
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getBlogPostInlineComments.response", zod_1.z.object({
713
612
  status: zod_1.z.literal(200),
714
613
  mediaType: zod_1.z.literal("application/json"),
715
- body: zod_1.z
716
- .object({
717
- results: zod_1.z
718
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostInlineCommentModel"))
719
- .optional(),
720
- _links: validationSchemaStorage_1.validationSchemaStorage
721
- .lazy("MultiEntityLinks")
722
- .optional(),
723
- })
724
- .catchall(zod_1.z.unknown()),
725
- })
726
- .describe("CommentService.getBlogPostInlineComments.response"));
727
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getCustomContentComments.response", zod_1.z
728
- .object({
614
+ body: zod_1.z.object({
615
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostInlineCommentModel")).optional(),
616
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
617
+ }).catchall(zod_1.z.unknown())
618
+ }).describe("CommentService.getBlogPostInlineComments.response"));
619
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getCustomContentComments.response", zod_1.z.object({
729
620
  status: zod_1.z.literal(200),
730
621
  mediaType: zod_1.z.literal("application/json"),
731
- body: zod_1.z
732
- .object({
733
- results: zod_1.z
734
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentCommentModel"))
735
- .optional(),
736
- _links: validationSchemaStorage_1.validationSchemaStorage
737
- .lazy("MultiEntityLinks")
738
- .optional(),
739
- })
740
- .catchall(zod_1.z.unknown()),
741
- })
742
- .describe("CommentService.getCustomContentComments.response"));
743
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterComments.response", zod_1.z
744
- .object({
622
+ body: zod_1.z.object({
623
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentCommentModel")).optional(),
624
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
625
+ }).catchall(zod_1.z.unknown())
626
+ }).describe("CommentService.getCustomContentComments.response"));
627
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterComments.response", zod_1.z.object({
745
628
  status: zod_1.z.literal(200),
746
629
  mediaType: zod_1.z.literal("application/json"),
747
- body: zod_1.z
748
- .object({
749
- results: zod_1.z
750
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"))
751
- .optional(),
752
- _links: validationSchemaStorage_1.validationSchemaStorage
753
- .lazy("MultiEntityLinks")
754
- .optional(),
755
- })
756
- .catchall(zod_1.z.unknown()),
757
- })
758
- .describe("CommentService.getFooterComments.response"));
759
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.createFooterComment.response", zod_1.z
760
- .object({
630
+ body: zod_1.z.object({
631
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel")).optional(),
632
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
633
+ }).catchall(zod_1.z.unknown())
634
+ }).describe("CommentService.getFooterComments.response"));
635
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.createFooterComment.response", zod_1.z.object({
761
636
  status: zod_1.z.literal(201),
762
637
  mediaType: zod_1.z.literal("application/json"),
763
- body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"), zod_1.z
764
- .object({
765
- _links: zod_1.z
766
- .object({
767
- base: zod_1.z.string().optional(),
768
- })
769
- .catchall(zod_1.z.unknown())
770
- .optional(),
771
- })
772
- .catchall(zod_1.z.unknown())),
773
- })
774
- .describe("CommentService.createFooterComment.response"));
775
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterCommentById.response", zod_1.z
776
- .object({
638
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"), zod_1.z.object({
639
+ _links: zod_1.z.object({
640
+ base: zod_1.z.string().optional()
641
+ }).catchall(zod_1.z.unknown()).optional()
642
+ }).catchall(zod_1.z.unknown()))
643
+ }).describe("CommentService.createFooterComment.response"));
644
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterCommentById.response", zod_1.z.object({
777
645
  status: zod_1.z.literal(200),
778
646
  mediaType: zod_1.z.literal("application/json"),
779
- body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"), zod_1.z
780
- .object({
781
- _links: zod_1.z
782
- .object({
783
- base: zod_1.z.string().optional(),
784
- })
785
- .catchall(zod_1.z.unknown())
786
- .optional(),
787
- })
788
- .catchall(zod_1.z.unknown())),
789
- })
790
- .describe("CommentService.getFooterCommentById.response"));
791
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.updateFooterComment.response", zod_1.z
792
- .object({
647
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"), zod_1.z.object({
648
+ _links: zod_1.z.object({
649
+ base: zod_1.z.string().optional()
650
+ }).catchall(zod_1.z.unknown()).optional()
651
+ }).catchall(zod_1.z.unknown()))
652
+ }).describe("CommentService.getFooterCommentById.response"));
653
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.updateFooterComment.response", zod_1.z.object({
793
654
  status: zod_1.z.literal(200),
794
655
  mediaType: zod_1.z.literal("application/json"),
795
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel"),
796
- })
797
- .describe("CommentService.updateFooterComment.response"));
798
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterCommentChildren.response", zod_1.z
799
- .object({
656
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("FooterCommentModel")
657
+ }).describe("CommentService.updateFooterComment.response"));
658
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getFooterCommentChildren.response", zod_1.z.object({
800
659
  status: zod_1.z.literal(200),
801
660
  mediaType: zod_1.z.literal("application/json"),
802
- body: zod_1.z
803
- .object({
804
- results: zod_1.z
805
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("ChildrenCommentModel"))
806
- .optional(),
807
- _links: validationSchemaStorage_1.validationSchemaStorage
808
- .lazy("MultiEntityLinks")
809
- .optional(),
810
- })
811
- .catchall(zod_1.z.unknown()),
812
- })
813
- .describe("CommentService.getFooterCommentChildren.response"));
814
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineComments.response", zod_1.z
815
- .object({
661
+ body: zod_1.z.object({
662
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ChildrenCommentModel")).optional(),
663
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
664
+ }).catchall(zod_1.z.unknown())
665
+ }).describe("CommentService.getFooterCommentChildren.response"));
666
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineComments.response", zod_1.z.object({
816
667
  status: zod_1.z.literal(200),
817
668
  mediaType: zod_1.z.literal("application/json"),
818
- body: zod_1.z
819
- .object({
820
- results: zod_1.z
821
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"))
822
- .optional(),
823
- _links: validationSchemaStorage_1.validationSchemaStorage
824
- .lazy("MultiEntityLinks")
825
- .optional(),
826
- })
827
- .catchall(zod_1.z.unknown()),
828
- })
829
- .describe("CommentService.getInlineComments.response"));
830
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.createInlineComment.response", zod_1.z
831
- .object({
669
+ body: zod_1.z.object({
670
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel")).optional(),
671
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
672
+ }).catchall(zod_1.z.unknown())
673
+ }).describe("CommentService.getInlineComments.response"));
674
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.createInlineComment.response", zod_1.z.object({
832
675
  status: zod_1.z.literal(201),
833
676
  mediaType: zod_1.z.literal("application/json"),
834
- body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z
835
- .object({
836
- _links: zod_1.z
837
- .object({
838
- base: zod_1.z.string().optional(),
839
- })
840
- .catchall(zod_1.z.unknown())
841
- .optional(),
842
- })
843
- .catchall(zod_1.z.unknown())),
844
- })
845
- .describe("CommentService.createInlineComment.response"));
846
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineCommentById.response", zod_1.z
847
- .object({
677
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z.object({
678
+ _links: zod_1.z.object({
679
+ base: zod_1.z.string().optional()
680
+ }).catchall(zod_1.z.unknown()).optional()
681
+ }).catchall(zod_1.z.unknown()))
682
+ }).describe("CommentService.createInlineComment.response"));
683
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineCommentById.response", zod_1.z.object({
848
684
  status: zod_1.z.literal(200),
849
685
  mediaType: zod_1.z.literal("application/json"),
850
- body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z
851
- .object({
852
- _links: zod_1.z
853
- .object({
854
- base: zod_1.z.string().optional(),
855
- })
856
- .catchall(zod_1.z.unknown())
857
- .optional(),
858
- })
859
- .catchall(zod_1.z.unknown())),
860
- })
861
- .describe("CommentService.getInlineCommentById.response"));
862
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.updateInlineComment.response", zod_1.z
863
- .object({
686
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z.object({
687
+ _links: zod_1.z.object({
688
+ base: zod_1.z.string().optional()
689
+ }).catchall(zod_1.z.unknown()).optional()
690
+ }).catchall(zod_1.z.unknown()))
691
+ }).describe("CommentService.getInlineCommentById.response"));
692
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.updateInlineComment.response", zod_1.z.object({
864
693
  status: zod_1.z.literal(200),
865
694
  mediaType: zod_1.z.literal("application/json"),
866
- body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z
867
- .object({
868
- _links: zod_1.z
869
- .object({
870
- base: zod_1.z.string().optional(),
871
- })
872
- .catchall(zod_1.z.unknown())
873
- .optional(),
874
- })
875
- .catchall(zod_1.z.unknown())),
876
- })
877
- .describe("CommentService.updateInlineComment.response"));
878
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineCommentChildren.response", zod_1.z
879
- .object({
695
+ body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentModel"), zod_1.z.object({
696
+ _links: zod_1.z.object({
697
+ base: zod_1.z.string().optional()
698
+ }).catchall(zod_1.z.unknown()).optional()
699
+ }).catchall(zod_1.z.unknown()))
700
+ }).describe("CommentService.updateInlineComment.response"));
701
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getInlineCommentChildren.response", zod_1.z.object({
880
702
  status: zod_1.z.literal(200),
881
703
  mediaType: zod_1.z.literal("application/json"),
882
- body: zod_1.z
883
- .object({
884
- results: zod_1.z
885
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentChildrenModel"))
886
- .optional(),
887
- _links: validationSchemaStorage_1.validationSchemaStorage
888
- .lazy("MultiEntityLinks")
889
- .optional(),
890
- })
891
- .catchall(zod_1.z.unknown()),
892
- })
893
- .describe("CommentService.getInlineCommentChildren.response"));
894
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getPageFooterComments.response", zod_1.z
895
- .object({
704
+ body: zod_1.z.object({
705
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("InlineCommentChildrenModel")).optional(),
706
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
707
+ }).catchall(zod_1.z.unknown())
708
+ }).describe("CommentService.getInlineCommentChildren.response"));
709
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getPageFooterComments.response", zod_1.z.object({
896
710
  status: zod_1.z.literal(200),
897
711
  mediaType: zod_1.z.literal("application/json"),
898
- body: zod_1.z
899
- .object({
900
- results: zod_1.z
901
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageCommentModel"))
902
- .optional(),
903
- _links: validationSchemaStorage_1.validationSchemaStorage
904
- .lazy("MultiEntityLinks")
905
- .optional(),
906
- })
907
- .catchall(zod_1.z.unknown()),
908
- })
909
- .describe("CommentService.getPageFooterComments.response"));
910
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getPageInlineComments.response", zod_1.z
911
- .object({
712
+ body: zod_1.z.object({
713
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageCommentModel")).optional(),
714
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
715
+ }).catchall(zod_1.z.unknown())
716
+ }).describe("CommentService.getPageFooterComments.response"));
717
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getPageInlineComments.response", zod_1.z.object({
912
718
  status: zod_1.z.literal(200),
913
719
  mediaType: zod_1.z.literal("application/json"),
914
- body: zod_1.z
915
- .object({
916
- results: zod_1.z
917
- .array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageInlineCommentModel"))
918
- .optional(),
919
- _links: validationSchemaStorage_1.validationSchemaStorage
920
- .lazy("MultiEntityLinks")
921
- .optional(),
922
- })
923
- .catchall(zod_1.z.unknown()),
924
- })
925
- .describe("CommentService.getPageInlineComments.response"));
926
- validationSchemaStorage_1.validationSchemaStorage.registerOnce([
927
- comment_1.registerCommentValidationSchemas,
928
- common_1.registerCommonValidationSchemas,
929
- ]);
720
+ body: zod_1.z.object({
721
+ results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageInlineCommentModel")).optional(),
722
+ _links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
723
+ }).catchall(zod_1.z.unknown())
724
+ }).describe("CommentService.getPageInlineComments.response"));
725
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([comment_1.registerCommentValidationSchemas, common_1.registerCommonValidationSchemas]);
930
726
  }
931
727
  }
932
728
  exports.CommentService = CommentService;