@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
@@ -28,7 +28,7 @@ export declare class ContentLabelsService extends CommonHttpService {
28
28
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-post
29
29
  * @param params
30
30
  */
31
- addLabelsToContent: ({ id, requestBody, }: {
31
+ addLabelsToContent: ({ id, requestBody }: {
32
32
  /** The ID of the content that will have labels added to it. */
33
33
  id: string;
34
34
  /** The labels to add to the content. */
@@ -52,7 +52,7 @@ export declare class ContentLabelsService extends CommonHttpService {
52
52
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-get
53
53
  * @param params
54
54
  */
55
- getLabelsForContent: ({ id, prefix, start, limit, }: {
55
+ getLabelsForContent: ({ id, prefix, start, limit }: {
56
56
  /** The ID of the content to be queried for its labels. */
57
57
  id: string;
58
58
  /**
@@ -98,7 +98,7 @@ export declare class ContentLabelsService extends CommonHttpService {
98
98
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-label-delete
99
99
  * @param params
100
100
  */
101
- removeLabelFromContent: ({ id, label, }: {
101
+ removeLabelFromContent: ({ id, label }: {
102
102
  /** The ID of the content that the label will be removed from. */
103
103
  id: string;
104
104
  /** The name of the label to be removed. */
@@ -124,7 +124,7 @@ export declare class ContentLabelsService extends CommonHttpService {
124
124
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-delete
125
125
  * @param params
126
126
  */
127
- removeLabelFromContentUsingQueryParameter: ({ id, name, }: {
127
+ removeLabelFromContentUsingQueryParameter: ({ id, name }: {
128
128
  /** The ID of the content that the label will be removed from. */
129
129
  id: string;
130
130
  /** The name of the label to be removed. */
@@ -4,11 +4,11 @@ exports.ContentLabelsService = 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 common_1 = require("../models/common");
11
10
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
11
+ const zod_1 = require("zod");
12
12
  /**
13
13
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels
14
14
  * @category Services
@@ -38,27 +38,22 @@ class ContentLabelsService extends CommonHttpService_1.CommonHttpService {
38
38
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-post
39
39
  * @param params
40
40
  */
41
- this.addLabelsToContent = ({ id, requestBody, }) => {
42
- return this.getClientInstance()
43
- .request({
41
+ this.addLabelsToContent = ({ id, requestBody }) => {
42
+ return this.getClientInstance().request({
44
43
  path: "/wiki/rest/api/content/{id}/label",
45
44
  method: "POST",
46
45
  pathParams: {
47
- id,
46
+ id
48
47
  },
49
48
  headers: {
50
- "Content-Type": "application/json",
49
+ "Content-Type": "application/json"
51
50
  },
52
- body: requestBody,
53
- })
54
- .then(this.getClientInstance().responseHandler({
51
+ body: requestBody
52
+ }).then(this.getClientInstance().responseHandler({
55
53
  200: {
56
- "application/json": "json",
57
- },
58
- }))
59
- .then(commonHttpClient.castResponse())
60
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.addLabelsToContent.response")))
61
- .then(commonHttpClient.getBody);
54
+ "application/json": "json"
55
+ }
56
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.addLabelsToContent.response"))).then(commonHttpClient.getBody);
62
57
  };
63
58
  /**
64
59
  * Deprecated, use [Confluence's v2
@@ -78,28 +73,23 @@ class ContentLabelsService extends CommonHttpService_1.CommonHttpService {
78
73
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-get
79
74
  * @param params
80
75
  */
81
- this.getLabelsForContent = ({ id, prefix, start, limit, }) => {
82
- return this.getClientInstance()
83
- .request({
76
+ this.getLabelsForContent = ({ id, prefix, start, limit }) => {
77
+ return this.getClientInstance().request({
84
78
  path: "/wiki/rest/api/content/{id}/label",
85
79
  method: "GET",
86
80
  pathParams: {
87
- id,
81
+ id
88
82
  },
89
83
  query: {
90
84
  prefix,
91
85
  start,
92
- limit,
93
- },
94
- })
95
- .then(this.getClientInstance().responseHandler({
86
+ limit
87
+ }
88
+ }).then(this.getClientInstance().responseHandler({
96
89
  200: {
97
- "application/json": "json",
98
- },
99
- }))
100
- .then(commonHttpClient.castResponse())
101
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.getLabelsForContent.response")))
102
- .then(commonHttpClient.getBody);
90
+ "application/json": "json"
91
+ }
92
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.getLabelsForContent.response"))).then(commonHttpClient.getBody);
103
93
  };
104
94
  /**
105
95
  * Removes a label from a piece of content. Labels can't be deleted from archived
@@ -122,17 +112,15 @@ class ContentLabelsService extends CommonHttpService_1.CommonHttpService {
122
112
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-label-delete
123
113
  * @param params
124
114
  */
125
- this.removeLabelFromContent = ({ id, label, }) => {
126
- return this.getClientInstance()
127
- .request({
115
+ this.removeLabelFromContent = ({ id, label }) => {
116
+ return this.getClientInstance().request({
128
117
  path: "/wiki/rest/api/content/{id}/label/{label}",
129
118
  method: "DELETE",
130
119
  pathParams: {
131
120
  id,
132
- label,
133
- },
134
- })
135
- .then(commonHttpClient.discardResult);
121
+ label
122
+ }
123
+ }).then(commonHttpClient.discardResult);
136
124
  };
137
125
  /**
138
126
  * Removes a label from a piece of content. Labels can't be deleted from archived
@@ -154,36 +142,30 @@ class ContentLabelsService extends CommonHttpService_1.CommonHttpService {
154
142
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-delete
155
143
  * @param params
156
144
  */
157
- this.removeLabelFromContentUsingQueryParameter = ({ id, name, }) => {
158
- return this.getClientInstance()
159
- .request({
145
+ this.removeLabelFromContentUsingQueryParameter = ({ id, name }) => {
146
+ return this.getClientInstance().request({
160
147
  path: "/wiki/rest/api/content/{id}/label",
161
148
  method: "DELETE",
162
149
  pathParams: {
163
- id,
150
+ id
164
151
  },
165
152
  query: {
166
- name,
167
- },
168
- })
169
- .then(commonHttpClient.discardResult);
153
+ name
154
+ }
155
+ }).then(commonHttpClient.discardResult);
170
156
  };
171
157
  }
172
158
  static initialize() {
173
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.getLabelsForContent.response", zod_1.z
174
- .object({
159
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.getLabelsForContent.response", zod_1.z.object({
175
160
  status: zod_1.z.literal(200),
176
161
  mediaType: zod_1.z.literal("application/json"),
177
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
178
- })
179
- .describe("ContentLabelsService.getLabelsForContent.response"));
180
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.addLabelsToContent.response", zod_1.z
181
- .object({
162
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray")
163
+ }).describe("ContentLabelsService.getLabelsForContent.response"));
164
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.addLabelsToContent.response", zod_1.z.object({
182
165
  status: zod_1.z.literal(200),
183
166
  mediaType: zod_1.z.literal("application/json"),
184
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
185
- })
186
- .describe("ContentLabelsService.addLabelsToContent.response"));
167
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray")
168
+ }).describe("ContentLabelsService.addLabelsToContent.response"));
187
169
  validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
188
170
  }
189
171
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLabelsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentLabelsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAI0B;AAE1B,wEAAqE;AACrE;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,qCAAiB;IAA3D;;QACE;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,uBAAkB,GAAG,CAAC,EACpB,EAAE,EACF,WAAW,GAMZ,EAAuB,EAAE;YACxB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,mCAAmC;gBACzC,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,WAAW;aAClB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CACjC,iDAAuB,CAAC,SAAS,CAC/B,kDAAkD,CACnD,CACF,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,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AAmC;gBACzC,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,IAAI;iBACL;aACF,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;IAwBJ,CAAC;IAvBW,MAAM,CAAC,UAAU;QACzB,iDAAuB,CAAC,kBAAkB,CACxC,mDAAmD,EACnD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,YAAY,CAAC;SACjD,CAAC;aACD,QAAQ,CAAC,mDAAmD,CAAC,CACjE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,kDAAkD,EAClD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,YAAY,CAAC;SACjD,CAAC;aACD,QAAQ,CAAC,kDAAkD,CAAC,CAChE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAjQD,oDAiQC"}
1
+ {"version":3,"file":"ContentLabelsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentLabelsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAsG;AAEtG,wEAAqE;AACrE,6BAAwB;AACxB;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,qCAAiB;IAA3D;;QACE;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,uBAAkB,GA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,CAAC,MAAM,CAAC;YACtG,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,YAAY,CAAC;SACjD,CAAC,CAAC,QAAQ,CAAC,kDAAkD,CAAC,CAAC,CAAC;QACjE,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AArND,oDAqNC"}
@@ -1,5 +1,5 @@
1
1
  import { CommonHttpService } from "../../core/CommonHttpService";
2
- import { type AsyncId, type ContentBody } from "../models/common";
2
+ import { type ContentBody, type AsyncId } from "../models/common";
3
3
  import { type MacroInstance } from "../models/contentMacroBody";
4
4
  /**
5
5
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body
@@ -33,7 +33,7 @@ export declare class ContentMacroBodyService extends CommonHttpService {
33
33
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-convert-async-to-get
34
34
  * @param params
35
35
  */
36
- getAndAsyncConvertMacroBodyByMacroId: ({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender, }: {
36
+ getAndAsyncConvertMacroBodyByMacroId: ({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender }: {
37
37
  /** The ID for the content that contains the macro. */
38
38
  id: string;
39
39
  /**
@@ -154,7 +154,7 @@ export declare class ContentMacroBodyService extends CommonHttpService {
154
154
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-convert-to-get
155
155
  * @param params
156
156
  */
157
- getAndConvertMacroBodyByMacroId: ({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender, }: {
157
+ getAndConvertMacroBodyByMacroId: ({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender }: {
158
158
  /** The ID for the content that contains the macro. */
159
159
  id: string;
160
160
  /**
@@ -255,7 +255,7 @@ export declare class ContentMacroBodyService extends CommonHttpService {
255
255
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-get
256
256
  * @param params
257
257
  */
258
- getMacroBodyByMacroId: ({ id, version, macroId, }: {
258
+ getMacroBodyByMacroId: ({ id, version, macroId }: {
259
259
  /** The ID for the content that contains the macro. */
260
260
  id: string;
261
261
  /**
@@ -4,12 +4,12 @@ exports.ContentMacroBodyService = 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 common_1 = require("../models/common");
11
10
  const contentMacroBody_1 = require("../models/contentMacroBody");
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/v1/api-group-content-macro-body
15
15
  * @category Services
@@ -44,39 +44,34 @@ class ContentMacroBodyService extends CommonHttpService_1.CommonHttpService {
44
44
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-convert-async-to-get
45
45
  * @param params
46
46
  */
47
- this.getAndAsyncConvertMacroBodyByMacroId = ({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender, }) => {
48
- return this.getClientInstance()
49
- .request({
47
+ this.getAndAsyncConvertMacroBodyByMacroId = ({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender }) => {
48
+ return this.getClientInstance().request({
50
49
  path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/async/{to}",
51
50
  method: "GET",
52
51
  pathParams: {
53
52
  id,
54
53
  version,
55
54
  macroId,
56
- to,
55
+ to
57
56
  },
58
57
  query: {
59
58
  expand,
60
59
  allowCache,
61
60
  spaceKeyContext,
62
- embeddedContentRender,
61
+ embeddedContentRender
63
62
  },
64
63
  parameters: {
65
64
  query: {
66
65
  expand: {
67
- explode: false,
68
- },
69
- },
70
- },
71
- })
72
- .then(this.getClientInstance().responseHandler({
66
+ explode: false
67
+ }
68
+ }
69
+ }
70
+ }).then(this.getClientInstance().responseHandler({
73
71
  200: {
74
- "application/json": "json",
75
- },
76
- }))
77
- .then(commonHttpClient.castResponse())
78
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response")))
79
- .then(commonHttpClient.getBody);
72
+ "application/json": "json"
73
+ }
74
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response"))).then(commonHttpClient.getBody);
80
75
  };
81
76
  /**
82
77
  * Returns the body of a macro in format specified in path, for the given macro ID.
@@ -105,38 +100,33 @@ class ContentMacroBodyService extends CommonHttpService_1.CommonHttpService {
105
100
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-convert-to-get
106
101
  * @param params
107
102
  */
108
- this.getAndConvertMacroBodyByMacroId = ({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender, }) => {
109
- return this.getClientInstance()
110
- .request({
103
+ this.getAndConvertMacroBodyByMacroId = ({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender }) => {
104
+ return this.getClientInstance().request({
111
105
  path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/{to}",
112
106
  method: "GET",
113
107
  pathParams: {
114
108
  id,
115
109
  version,
116
110
  macroId,
117
- to,
111
+ to
118
112
  },
119
113
  query: {
120
114
  expand,
121
115
  spaceKeyContext,
122
- embeddedContentRender,
116
+ embeddedContentRender
123
117
  },
124
118
  parameters: {
125
119
  query: {
126
120
  expand: {
127
- explode: false,
128
- },
129
- },
130
- },
131
- })
132
- .then(this.getClientInstance().responseHandler({
121
+ explode: false
122
+ }
123
+ }
124
+ }
125
+ }).then(this.getClientInstance().responseHandler({
133
126
  200: {
134
- "application/json": "json",
135
- },
136
- }))
137
- .then(commonHttpClient.castResponse())
138
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response")))
139
- .then(commonHttpClient.getBody);
127
+ "application/json": "json"
128
+ }
129
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response"))).then(commonHttpClient.getBody);
140
130
  };
141
131
  /**
142
132
  * Returns the body of a macro in storage format, for the given macro ID.
@@ -165,53 +155,39 @@ class ContentMacroBodyService extends CommonHttpService_1.CommonHttpService {
165
155
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body#api-wiki-rest-api-content-id-history-version-macro-id-macroid-get
166
156
  * @param params
167
157
  */
168
- this.getMacroBodyByMacroId = ({ id, version, macroId, }) => {
169
- return this.getClientInstance()
170
- .request({
158
+ this.getMacroBodyByMacroId = ({ id, version, macroId }) => {
159
+ return this.getClientInstance().request({
171
160
  path: "/wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}",
172
161
  method: "GET",
173
162
  pathParams: {
174
163
  id,
175
164
  version,
176
- macroId,
177
- },
178
- })
179
- .then(this.getClientInstance().responseHandler({
165
+ macroId
166
+ }
167
+ }).then(this.getClientInstance().responseHandler({
180
168
  200: {
181
- "application/json": "json",
182
- },
183
- }))
184
- .then(commonHttpClient.castResponse())
185
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getMacroBodyByMacroId.response")))
186
- .then(commonHttpClient.getBody);
169
+ "application/json": "json"
170
+ }
171
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentMacroBodyService.getMacroBodyByMacroId.response"))).then(commonHttpClient.getBody);
187
172
  };
188
173
  }
189
174
  static initialize() {
190
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getMacroBodyByMacroId.response", zod_1.z
191
- .object({
175
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getMacroBodyByMacroId.response", zod_1.z.object({
192
176
  status: zod_1.z.literal(200),
193
177
  mediaType: zod_1.z.literal("application/json"),
194
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("MacroInstance"),
195
- })
196
- .describe("ContentMacroBodyService.getMacroBodyByMacroId.response"));
197
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response", zod_1.z
198
- .object({
178
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("MacroInstance")
179
+ }).describe("ContentMacroBodyService.getMacroBodyByMacroId.response"));
180
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response", zod_1.z.object({
199
181
  status: zod_1.z.literal(200),
200
182
  mediaType: zod_1.z.literal("application/json"),
201
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentBody"),
202
- })
203
- .describe("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response"));
204
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response", zod_1.z
205
- .object({
183
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentBody")
184
+ }).describe("ContentMacroBodyService.getAndConvertMacroBodyByMacroId.response"));
185
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response", zod_1.z.object({
206
186
  status: zod_1.z.literal(200),
207
187
  mediaType: zod_1.z.literal("application/json"),
208
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("AsyncId"),
209
- })
210
- .describe("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response"));
211
- validationSchemaStorage_1.validationSchemaStorage.registerOnce([
212
- contentMacroBody_1.registerContentMacroBodyValidationSchemas,
213
- common_1.registerCommonValidationSchemas,
214
- ]);
188
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("AsyncId")
189
+ }).describe("ContentMacroBodyService.getAndAsyncConvertMacroBodyByMacroId.response"));
190
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([contentMacroBody_1.registerContentMacroBodyValidationSchemas, common_1.registerCommonValidationSchemas]);
215
191
  }
216
192
  }
217
193
  exports.ContentMacroBodyService = ContentMacroBodyService;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentMacroBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentMacroBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAI0B;AAC1B,iEAGoC;AACpC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,qCAAiB;IAA9D;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;QACH,yCAAoC,GAAG,CAAC,EACtC,EAAE,EACF,OAAO,EACP,OAAO,EACP,EAAE,EACF,MAAM,EACN,UAAU,EACV,eAAe,EACf,qBAAqB,GA8FtB,EAAoB,EAAE;YACrB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,qFAAqF;gBAC3F,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;oBACF,OAAO;oBACP,OAAO;oBACP,EAAE;iBACH;gBACD,KAAK,EAAE;o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;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,aAAa,CAAC;SAClD,CAAC;aACD,QAAQ,CACP,kEAAkE,CACnE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,uEAAuE,EACvE,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC;SAC9C,CAAC;aACD,QAAQ,CACP,uEAAuE,CACxE,CACJ,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4DAAyC;YACzC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAtcD,0DAscC"}
1
+ {"version":3,"file":"ContentMacroBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentMacroBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAmG;AACnG,iEAA2G;AAC3G,wEAAqE;AACrE,6BAAwB;AACxB;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,qCAAiB;IAA9D;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;;WA0BG;QACH,yCAAoC,GAAG,CAAC,EACtC,EAAE,EACF,OAAO,EACP,OAAO,EACP,EAAE,EACF,MAAM,EACN,UAAU,EACV,eAAe,EACf,qBAAqB,EA8FtB,EAAoB,EAAE;YACrB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,qFAAqF;gBAC3F,MAAM,EAAE,KAAK;gBACb,UAAU,E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pD,CAAC,CAAC,QAAQ,CAAC,wDAAwD,CAAC,CAAC,CAAC;QACvE,iDAAuB,CAAC,kBAAkB,CAAC,kEAAkE,EAAE,OAAC,CAAC,MAAM,CAAC;YACtH,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,aAAa,CAAC;SAClD,CAAC,CAAC,QAAQ,CAAC,kEAAkE,CAAC,CAAC,CAAC;QACjF,iDAAuB,CAAC,kBAAkB,CAAC,uEAAuE,EAAE,OAAC,CAAC,MAAM,CAAC;YAC3H,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC;SAC9C,CAAC,CAAC,QAAQ,CAAC,uEAAuE,CAAC,CAAC,CAAC;QACtF,iDAAuB,CAAC,YAAY,CAAC,CAAC,4DAAyC,EAAE,wCAA+B,CAAC,CAAC,CAAC;IACrH,CAAC;CACF;AAnYD,0DAmYC"}
@@ -30,7 +30,7 @@ export declare class ContentPermissionsService extends CommonHttpService {
30
30
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions#api-wiki-rest-api-content-id-permission-check-post
31
31
  * @param params
32
32
  */
33
- checkContentPermission: ({ id, contentPermissionRequest, }: {
33
+ checkContentPermission: ({ id, contentPermissionRequest }: {
34
34
  /** The ID of the content to check permissions against. */
35
35
  id: string;
36
36
  /** The content permission request. */
@@ -4,11 +4,11 @@ exports.ContentPermissionsService = 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 contentPermissions_1 = require("../models/contentPermissions");
11
10
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
11
+ const zod_1 = require("zod");
12
12
  /**
13
13
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions
14
14
  * @category Services
@@ -41,40 +41,31 @@ class ContentPermissionsService extends CommonHttpService_1.CommonHttpService {
41
41
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions#api-wiki-rest-api-content-id-permission-check-post
42
42
  * @param params
43
43
  */
44
- this.checkContentPermission = ({ id, contentPermissionRequest, }) => {
45
- return this.getClientInstance()
46
- .request({
44
+ this.checkContentPermission = ({ id, contentPermissionRequest }) => {
45
+ return this.getClientInstance().request({
47
46
  path: "/wiki/rest/api/content/{id}/permission/check",
48
47
  method: "POST",
49
48
  pathParams: {
50
- id,
49
+ id
51
50
  },
52
51
  headers: {
53
- "Content-Type": "application/json",
52
+ "Content-Type": "application/json"
54
53
  },
55
- body: contentPermissionRequest,
56
- })
57
- .then(this.getClientInstance().responseHandler({
54
+ body: contentPermissionRequest
55
+ }).then(this.getClientInstance().responseHandler({
58
56
  200: {
59
- "application/json": "json",
60
- },
61
- }))
62
- .then(commonHttpClient.castResponse())
63
- .then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPermissionsService.checkContentPermission.response")))
64
- .then(commonHttpClient.getBody);
57
+ "application/json": "json"
58
+ }
59
+ })).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPermissionsService.checkContentPermission.response"))).then(commonHttpClient.getBody);
65
60
  };
66
61
  }
67
62
  static initialize() {
68
- validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPermissionsService.checkContentPermission.response", zod_1.z
69
- .object({
63
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPermissionsService.checkContentPermission.response", zod_1.z.object({
70
64
  status: zod_1.z.literal(200),
71
65
  mediaType: zod_1.z.literal("application/json"),
72
- body: validationSchemaStorage_1.validationSchemaStorage.lazy("PermissionCheckResponse"),
73
- })
74
- .describe("ContentPermissionsService.checkContentPermission.response"));
75
- validationSchemaStorage_1.validationSchemaStorage.registerOnce([
76
- contentPermissions_1.registerContentPermissionsValidationSchemas,
77
- ]);
66
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("PermissionCheckResponse")
67
+ }).describe("ContentPermissionsService.checkContentPermission.response"));
68
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([contentPermissions_1.registerContentPermissionsValidationSchemas]);
78
69
  }
79
70
  }
80
71
  exports.ContentPermissionsService = ContentPermissionsService;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,qEAIsC;AACtC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,qCAAiB;IAAhE;;QACE;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,2BAAsB,GAAG,CAAC,EACxB,EAAE,EACF,wBAAwB,GAMzB,EAAoC,EAAE;YACrC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,8CAA8C;gBACpD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,wBAAwB;aAC/B,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CACjC,iDAAuB,CAAC,SAAS,CAC/B,2DAA2D,CAC5D,CACF,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;IAgBJ,CAAC;IAfW,MAAM,CAAC,UAAU;QACzB,iDAAuB,CAAC,kBAAkB,CACxC,2DAA2D,EAC3D,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,yBAAyB,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,2DAA2D,CAAC,CACzE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,gEAA2C;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AArFD,8DAqFC"}
1
+ {"version":3,"file":"ContentPermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,qEAAwJ;AACxJ,wEAAqE;AACrE,6BAAwB;AACxB;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,qCAAiB;IAAhE;;QACE;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,2BAAsB,GAAG,CAAC,EACxB,EAAE,EACF,wBAAwB,EAMzB,EAAoC,EAAE;YACrC,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,8CAA8C;gBACpD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,wBAAwB;aAC/B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAIlC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,iDAAuB,CAAC,SAAS,CAAC,2DAA2D,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACjL,CAAC,CAAC;IASJ,CAAC;IARW,MAAM,CAAC,UAAU;QACzB,iDAAuB,CAAC,kBAAkB,CAAC,2DAA2D,EAAE,OAAC,CAAC,MAAM,CAAC;YAC/G,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,yBAAyB,CAAC;SAC9D,CAAC,CAAC,QAAQ,CAAC,2DAA2D,CAAC,CAAC,CAAC;QAC1E,iDAAuB,CAAC,YAAY,CAAC,CAAC,gEAA2C,CAAC,CAAC,CAAC;IACtF,CAAC;CACF;AA/DD,8DA+DC"}
@@ -1,5 +1,5 @@
1
1
  import { CommonHttpService } from "../../core/CommonHttpService";
2
- import { type ContentPropertyArray, type ContentPropertyCreate, type ContentPropertyCreateNoKey, type ContentPropertyUpdate, type ContentPropertyV1 } from "../models/contentProperties";
2
+ import { type ContentPropertyArray, type ContentPropertyCreate, type ContentPropertyV1, type ContentPropertyUpdate, type ContentPropertyCreateNoKey } from "../models/contentProperties";
3
3
  /**
4
4
  * @deprecated
5
5
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
@@ -30,7 +30,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
30
30
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
31
31
  * @param params
32
32
  */
33
- createContentProperty: ({ id, contentPropertyCreate, }: {
33
+ createContentProperty: ({ id, contentPropertyCreate }: {
34
34
  /** The ID of the content to add the property to. */
35
35
  id: string;
36
36
  /** The content property to be created. */
@@ -59,7 +59,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
59
59
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
60
60
  * @param params
61
61
  */
62
- createContentPropertyForKey: ({ id, key, contentPropertyCreateNoKey, }: {
62
+ createContentPropertyForKey: ({ id, key, contentPropertyCreateNoKey }: {
63
63
  /** The ID of the content to add the property to. */
64
64
  id: string;
65
65
  /** The key of the content property. Required. */
@@ -82,7 +82,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
82
82
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
83
83
  * @param params
84
84
  */
85
- deleteContentProperty: ({ id, key, }: {
85
+ deleteContentProperty: ({ id, key }: {
86
86
  /** The ID of the content that the property belongs to. */
87
87
  id: string;
88
88
  /** The key of the property. */
@@ -105,7 +105,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
105
105
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
106
106
  * @param params
107
107
  */
108
- getContentProperties: ({ id, key, expand, start, limit, }: {
108
+ getContentProperties: ({ id, key, expand, start, limit }: {
109
109
  /** The ID of the content to be queried for its properties. */
110
110
  id: string;
111
111
  /** The key of the content property. */
@@ -144,7 +144,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
144
144
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
145
145
  * @param params
146
146
  */
147
- getContentProperty: ({ id, key, expand, status, }: {
147
+ getContentProperty: ({ id, key, expand, status }: {
148
148
  /** The ID of the content to be queried for the property. */
149
149
  id: string;
150
150
  /** The key of the content property. */
@@ -191,7 +191,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
191
191
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
192
192
  * @param params
193
193
  */
194
- updateContentProperty: ({ id, key, contentPropertyUpdate, }: {
194
+ updateContentProperty: ({ id, key, contentPropertyUpdate }: {
195
195
  /** The ID of the content that the property belongs to. */
196
196
  id: string;
197
197
  /** The key of the property. */