@resolution/confluence-api-client 0.2.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 (352) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE.md +19 -0
  3. package/README.md +12 -0
  4. package/lib/index.d.ts +36 -0
  5. package/lib/index.js +64 -0
  6. package/lib/index.js.map +1 -0
  7. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +133 -0
  8. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +122 -0
  9. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -0
  10. package/lib/openapi/v1/core/CommonHttpClient.d.ts +196 -0
  11. package/lib/openapi/v1/core/CommonHttpClient.js +390 -0
  12. package/lib/openapi/v1/core/CommonHttpClient.js.map +1 -0
  13. package/lib/openapi/v1/core/CommonHttpService.d.ts +7 -0
  14. package/lib/openapi/v1/core/CommonHttpService.js +20 -0
  15. package/lib/openapi/v1/core/CommonHttpService.js.map +1 -0
  16. package/lib/openapi/v1/core/CommonValidationSchemaStorage.d.ts +35 -0
  17. package/lib/openapi/v1/core/CommonValidationSchemaStorage.js +65 -0
  18. package/lib/openapi/v1/core/CommonValidationSchemaStorage.js.map +1 -0
  19. package/lib/openapi/v1/models/audit.d.ts +151 -0
  20. package/lib/openapi/v1/models/audit.js +133 -0
  21. package/lib/openapi/v1/models/audit.js.map +1 -0
  22. package/lib/openapi/v1/models/common.d.ts +645 -0
  23. package/lib/openapi/v1/models/common.js +654 -0
  24. package/lib/openapi/v1/models/common.js.map +1 -0
  25. package/lib/openapi/v1/models/content.d.ts +554 -0
  26. package/lib/openapi/v1/models/content.js +613 -0
  27. package/lib/openapi/v1/models/content.js.map +1 -0
  28. package/lib/openapi/v1/models/contentAttachments.d.ts +26 -0
  29. package/lib/openapi/v1/models/contentAttachments.js +33 -0
  30. package/lib/openapi/v1/models/contentAttachments.js.map +1 -0
  31. package/lib/openapi/v1/models/contentBody.d.ts +36 -0
  32. package/lib/openapi/v1/models/contentBody.js +63 -0
  33. package/lib/openapi/v1/models/contentBody.js.map +1 -0
  34. package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +75 -0
  35. package/lib/openapi/v1/models/contentChildrenAndDescendants.js +66 -0
  36. package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -0
  37. package/lib/openapi/v1/models/contentLabels.d.ts +5 -0
  38. package/lib/openapi/v1/models/contentLabels.js +16 -0
  39. package/lib/openapi/v1/models/contentLabels.js.map +1 -0
  40. package/lib/openapi/v1/models/contentMacroBody.d.ts +12 -0
  41. package/lib/openapi/v1/models/contentMacroBody.js +22 -0
  42. package/lib/openapi/v1/models/contentMacroBody.js.map +1 -0
  43. package/lib/openapi/v1/models/contentPermissions.d.ts +41 -0
  44. package/lib/openapi/v1/models/contentPermissions.js +35 -0
  45. package/lib/openapi/v1/models/contentPermissions.js.map +1 -0
  46. package/lib/openapi/v1/models/contentProperties.d.ts +73 -0
  47. package/lib/openapi/v1/models/contentProperties.js +94 -0
  48. package/lib/openapi/v1/models/contentProperties.js.map +1 -0
  49. package/lib/openapi/v1/models/contentRestrictions.d.ts +65 -0
  50. package/lib/openapi/v1/models/contentRestrictions.js +78 -0
  51. package/lib/openapi/v1/models/contentRestrictions.js.map +1 -0
  52. package/lib/openapi/v1/models/contentStates.d.ts +75 -0
  53. package/lib/openapi/v1/models/contentStates.js +72 -0
  54. package/lib/openapi/v1/models/contentStates.js.map +1 -0
  55. package/lib/openapi/v1/models/contentVersions.d.ts +28 -0
  56. package/lib/openapi/v1/models/contentVersions.js +36 -0
  57. package/lib/openapi/v1/models/contentVersions.js.map +1 -0
  58. package/lib/openapi/v1/models/contentWatches.d.ts +89 -0
  59. package/lib/openapi/v1/models/contentWatches.js +81 -0
  60. package/lib/openapi/v1/models/contentWatches.js.map +1 -0
  61. package/lib/openapi/v1/models/dynamicModules.d.ts +62 -0
  62. package/lib/openapi/v1/models/dynamicModules.js +24 -0
  63. package/lib/openapi/v1/models/dynamicModules.js.map +1 -0
  64. package/lib/openapi/v1/models/group.d.ts +9 -0
  65. package/lib/openapi/v1/models/group.js +23 -0
  66. package/lib/openapi/v1/models/group.js.map +1 -0
  67. package/lib/openapi/v1/models/inlineTasks.d.ts +30 -0
  68. package/lib/openapi/v1/models/inlineTasks.js +48 -0
  69. package/lib/openapi/v1/models/inlineTasks.js.map +1 -0
  70. package/lib/openapi/v1/models/labelInfo.d.ts +21 -0
  71. package/lib/openapi/v1/models/labelInfo.js +42 -0
  72. package/lib/openapi/v1/models/labelInfo.js.map +1 -0
  73. package/lib/openapi/v1/models/longRunningTask.d.ts +116 -0
  74. package/lib/openapi/v1/models/longRunningTask.js +82 -0
  75. package/lib/openapi/v1/models/longRunningTask.js.map +1 -0
  76. package/lib/openapi/v1/models/relation.d.ts +30 -0
  77. package/lib/openapi/v1/models/relation.js +61 -0
  78. package/lib/openapi/v1/models/relation.js.map +1 -0
  79. package/lib/openapi/v1/models/search.d.ts +41 -0
  80. package/lib/openapi/v1/models/search.js +65 -0
  81. package/lib/openapi/v1/models/search.js.map +1 -0
  82. package/lib/openapi/v1/models/settings.d.ts +36 -0
  83. package/lib/openapi/v1/models/settings.js +50 -0
  84. package/lib/openapi/v1/models/settings.js.map +1 -0
  85. package/lib/openapi/v1/models/space.d.ts +118 -0
  86. package/lib/openapi/v1/models/space.js +94 -0
  87. package/lib/openapi/v1/models/space.js.map +1 -0
  88. package/lib/openapi/v1/models/spacePermissions.d.ts +128 -0
  89. package/lib/openapi/v1/models/spacePermissions.js +102 -0
  90. package/lib/openapi/v1/models/spacePermissions.js.map +1 -0
  91. package/lib/openapi/v1/models/spaceProperties.d.ts +96 -0
  92. package/lib/openapi/v1/models/spaceProperties.js +93 -0
  93. package/lib/openapi/v1/models/spaceProperties.js.map +1 -0
  94. package/lib/openapi/v1/models/spaceSettings.d.ts +14 -0
  95. package/lib/openapi/v1/models/spaceSettings.js +17 -0
  96. package/lib/openapi/v1/models/spaceSettings.js.map +1 -0
  97. package/lib/openapi/v1/models/template.d.ts +201 -0
  98. package/lib/openapi/v1/models/template.js +163 -0
  99. package/lib/openapi/v1/models/template.js.map +1 -0
  100. package/lib/openapi/v1/models/themes.d.ts +26 -0
  101. package/lib/openapi/v1/models/themes.js +38 -0
  102. package/lib/openapi/v1/models/themes.js.map +1 -0
  103. package/lib/openapi/v1/models/userProperties.d.ts +41 -0
  104. package/lib/openapi/v1/models/userProperties.js +50 -0
  105. package/lib/openapi/v1/models/userProperties.js.map +1 -0
  106. package/lib/openapi/v1/models/users.d.ts +98 -0
  107. package/lib/openapi/v1/models/users.js +87 -0
  108. package/lib/openapi/v1/models/users.js.map +1 -0
  109. package/lib/openapi/v1/services/AnalyticsService.d.ts +54 -0
  110. package/lib/openapi/v1/services/AnalyticsService.js +98 -0
  111. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -0
  112. package/lib/openapi/v1/services/AuditService.d.ts +163 -0
  113. package/lib/openapi/v1/services/AuditService.js +269 -0
  114. package/lib/openapi/v1/services/AuditService.js.map +1 -0
  115. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +332 -0
  116. package/lib/openapi/v1/services/ContentAttachmentsService.js +362 -0
  117. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -0
  118. package/lib/openapi/v1/services/ContentBodyService.d.ts +227 -0
  119. package/lib/openapi/v1/services/ContentBodyService.js +178 -0
  120. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -0
  121. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +621 -0
  122. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +453 -0
  123. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -0
  124. package/lib/openapi/v1/services/ContentCommentsService.d.ts +147 -0
  125. package/lib/openapi/v1/services/ContentCommentsService.js +72 -0
  126. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -0
  127. package/lib/openapi/v1/services/ContentLabelsService.d.ts +122 -0
  128. package/lib/openapi/v1/services/ContentLabelsService.js +176 -0
  129. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -0
  130. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +268 -0
  131. package/lib/openapi/v1/services/ContentMacroBodyService.js +193 -0
  132. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -0
  133. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +34 -0
  134. package/lib/openapi/v1/services/ContentPermissionsService.js +72 -0
  135. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -0
  136. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +187 -0
  137. package/lib/openapi/v1/services/ContentPropertiesService.js +285 -0
  138. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -0
  139. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +503 -0
  140. package/lib/openapi/v1/services/ContentRestrictionsService.js +552 -0
  141. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -0
  142. package/lib/openapi/v1/services/ContentService.d.ts +1012 -0
  143. package/lib/openapi/v1/services/ContentService.js +548 -0
  144. package/lib/openapi/v1/services/ContentService.js.map +1 -0
  145. package/lib/openapi/v1/services/ContentStatesService.d.ts +220 -0
  146. package/lib/openapi/v1/services/ContentStatesService.js +439 -0
  147. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -0
  148. package/lib/openapi/v1/services/ContentVersionsService.d.ts +121 -0
  149. package/lib/openapi/v1/services/ContentVersionsService.js +181 -0
  150. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -0
  151. package/lib/openapi/v1/services/ContentWatchesService.d.ts +550 -0
  152. package/lib/openapi/v1/services/ContentWatchesService.js +502 -0
  153. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -0
  154. package/lib/openapi/v1/services/DynamicModulesService.d.ts +47 -0
  155. package/lib/openapi/v1/services/DynamicModulesService.js +92 -0
  156. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -0
  157. package/lib/openapi/v1/services/ExperimentalService.d.ts +113 -0
  158. package/lib/openapi/v1/services/ExperimentalService.js +185 -0
  159. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -0
  160. package/lib/openapi/v1/services/GroupService.d.ts +379 -0
  161. package/lib/openapi/v1/services/GroupService.js +515 -0
  162. package/lib/openapi/v1/services/GroupService.js.map +1 -0
  163. package/lib/openapi/v1/services/InlineTasksService.d.ts +91 -0
  164. package/lib/openapi/v1/services/InlineTasksService.js +155 -0
  165. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -0
  166. package/lib/openapi/v1/services/LabelInfoService.d.ts +28 -0
  167. package/lib/openapi/v1/services/LabelInfoService.js +59 -0
  168. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -0
  169. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +43 -0
  170. package/lib/openapi/v1/services/LongRunningTaskService.js +96 -0
  171. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -0
  172. package/lib/openapi/v1/services/RelationService.d.ts +404 -0
  173. package/lib/openapi/v1/services/RelationService.js +270 -0
  174. package/lib/openapi/v1/services/RelationService.js.map +1 -0
  175. package/lib/openapi/v1/services/SearchService.d.ts +175 -0
  176. package/lib/openapi/v1/services/SearchService.js +164 -0
  177. package/lib/openapi/v1/services/SearchService.js.map +1 -0
  178. package/lib/openapi/v1/services/SettingsService.d.ts +143 -0
  179. package/lib/openapi/v1/services/SettingsService.js +249 -0
  180. package/lib/openapi/v1/services/SettingsService.js.map +1 -0
  181. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +68 -0
  182. package/lib/openapi/v1/services/SpacePermissionsService.js +121 -0
  183. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -0
  184. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +161 -0
  185. package/lib/openapi/v1/services/SpacePropertiesService.js +275 -0
  186. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -0
  187. package/lib/openapi/v1/services/SpaceService.d.ts +479 -0
  188. package/lib/openapi/v1/services/SpaceService.js +394 -0
  189. package/lib/openapi/v1/services/SpaceService.js.map +1 -0
  190. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +40 -0
  191. package/lib/openapi/v1/services/SpaceSettingsService.js +96 -0
  192. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -0
  193. package/lib/openapi/v1/services/TemplateService.d.ts +163 -0
  194. package/lib/openapi/v1/services/TemplateService.js +259 -0
  195. package/lib/openapi/v1/services/TemplateService.js.map +1 -0
  196. package/lib/openapi/v1/services/ThemesService.d.ts +101 -0
  197. package/lib/openapi/v1/services/ThemesService.js +228 -0
  198. package/lib/openapi/v1/services/ThemesService.js.map +1 -0
  199. package/lib/openapi/v1/services/UserPropertiesService.d.ts +129 -0
  200. package/lib/openapi/v1/services/UserPropertiesService.js +192 -0
  201. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -0
  202. package/lib/openapi/v1/services/UsersService.d.ts +181 -0
  203. package/lib/openapi/v1/services/UsersService.js +291 -0
  204. package/lib/openapi/v1/services/UsersService.js.map +1 -0
  205. package/lib/openapi/v1/validationSchemaStorage.d.ts +3 -0
  206. package/lib/openapi/v1/validationSchemaStorage.js +144 -0
  207. package/lib/openapi/v1/validationSchemaStorage.js.map +1 -0
  208. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +88 -0
  209. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +87 -0
  210. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -0
  211. package/lib/openapi/v2/core/CommonHttpClient.d.ts +196 -0
  212. package/lib/openapi/v2/core/CommonHttpClient.js +390 -0
  213. package/lib/openapi/v2/core/CommonHttpClient.js.map +1 -0
  214. package/lib/openapi/v2/core/CommonHttpService.d.ts +7 -0
  215. package/lib/openapi/v2/core/CommonHttpService.js +20 -0
  216. package/lib/openapi/v2/core/CommonHttpService.js.map +1 -0
  217. package/lib/openapi/v2/core/CommonValidationSchemaStorage.d.ts +35 -0
  218. package/lib/openapi/v2/core/CommonValidationSchemaStorage.js +65 -0
  219. package/lib/openapi/v2/core/CommonValidationSchemaStorage.js.map +1 -0
  220. package/lib/openapi/v2/models/ancestors.d.ts +11 -0
  221. package/lib/openapi/v2/models/ancestors.js +21 -0
  222. package/lib/openapi/v2/models/ancestors.js.map +1 -0
  223. package/lib/openapi/v2/models/attachment.d.ts +148 -0
  224. package/lib/openapi/v2/models/attachment.js +116 -0
  225. package/lib/openapi/v2/models/attachment.js.map +1 -0
  226. package/lib/openapi/v2/models/blogPost.d.ts +106 -0
  227. package/lib/openapi/v2/models/blogPost.js +134 -0
  228. package/lib/openapi/v2/models/blogPost.js.map +1 -0
  229. package/lib/openapi/v2/models/children.d.ts +29 -0
  230. package/lib/openapi/v2/models/children.js +38 -0
  231. package/lib/openapi/v2/models/children.js.map +1 -0
  232. package/lib/openapi/v2/models/classificationLevel.d.ts +28 -0
  233. package/lib/openapi/v2/models/classificationLevel.js +45 -0
  234. package/lib/openapi/v2/models/classificationLevel.js.map +1 -0
  235. package/lib/openapi/v2/models/comment.d.ts +396 -0
  236. package/lib/openapi/v2/models/comment.js +378 -0
  237. package/lib/openapi/v2/models/comment.js.map +1 -0
  238. package/lib/openapi/v2/models/common.d.ts +200 -0
  239. package/lib/openapi/v2/models/common.js +225 -0
  240. package/lib/openapi/v2/models/common.js.map +1 -0
  241. package/lib/openapi/v2/models/content.d.ts +16 -0
  242. package/lib/openapi/v2/models/content.js +29 -0
  243. package/lib/openapi/v2/models/content.js.map +1 -0
  244. package/lib/openapi/v2/models/contentProperties.d.ts +33 -0
  245. package/lib/openapi/v2/models/contentProperties.js +33 -0
  246. package/lib/openapi/v2/models/contentProperties.js.map +1 -0
  247. package/lib/openapi/v2/models/customContent.d.ts +174 -0
  248. package/lib/openapi/v2/models/customContent.js +163 -0
  249. package/lib/openapi/v2/models/customContent.js.map +1 -0
  250. package/lib/openapi/v2/models/dataPolicies.d.ts +34 -0
  251. package/lib/openapi/v2/models/dataPolicies.js +38 -0
  252. package/lib/openapi/v2/models/dataPolicies.js.map +1 -0
  253. package/lib/openapi/v2/models/database.d.ts +35 -0
  254. package/lib/openapi/v2/models/database.js +38 -0
  255. package/lib/openapi/v2/models/database.js.map +1 -0
  256. package/lib/openapi/v2/models/operation.d.ts +8 -0
  257. package/lib/openapi/v2/models/operation.js +21 -0
  258. package/lib/openapi/v2/models/operation.js.map +1 -0
  259. package/lib/openapi/v2/models/page.d.ts +124 -0
  260. package/lib/openapi/v2/models/page.js +143 -0
  261. package/lib/openapi/v2/models/page.js.map +1 -0
  262. package/lib/openapi/v2/models/smartLink.d.ts +38 -0
  263. package/lib/openapi/v2/models/smartLink.js +38 -0
  264. package/lib/openapi/v2/models/smartLink.js.map +1 -0
  265. package/lib/openapi/v2/models/space.d.ts +87 -0
  266. package/lib/openapi/v2/models/space.js +100 -0
  267. package/lib/openapi/v2/models/space.js.map +1 -0
  268. package/lib/openapi/v2/models/spaceProperties.d.ts +27 -0
  269. package/lib/openapi/v2/models/spaceProperties.js +32 -0
  270. package/lib/openapi/v2/models/spaceProperties.js.map +1 -0
  271. package/lib/openapi/v2/models/task.d.ts +39 -0
  272. package/lib/openapi/v2/models/task.js +39 -0
  273. package/lib/openapi/v2/models/task.js.map +1 -0
  274. package/lib/openapi/v2/models/version.d.ts +139 -0
  275. package/lib/openapi/v2/models/version.js +91 -0
  276. package/lib/openapi/v2/models/version.js.map +1 -0
  277. package/lib/openapi/v2/models/whiteboard.d.ts +37 -0
  278. package/lib/openapi/v2/models/whiteboard.js +39 -0
  279. package/lib/openapi/v2/models/whiteboard.js.map +1 -0
  280. package/lib/openapi/v2/services/AncestorsService.d.ts +143 -0
  281. package/lib/openapi/v2/services/AncestorsService.js +245 -0
  282. package/lib/openapi/v2/services/AncestorsService.js.map +1 -0
  283. package/lib/openapi/v2/services/AttachmentService.d.ts +307 -0
  284. package/lib/openapi/v2/services/AttachmentService.js +370 -0
  285. package/lib/openapi/v2/services/AttachmentService.js.map +1 -0
  286. package/lib/openapi/v2/services/BlogPostService.d.ts +386 -0
  287. package/lib/openapi/v2/services/BlogPostService.js +379 -0
  288. package/lib/openapi/v2/services/BlogPostService.js.map +1 -0
  289. package/lib/openapi/v2/services/ChildrenService.d.ts +85 -0
  290. package/lib/openapi/v2/services/ChildrenService.js +127 -0
  291. package/lib/openapi/v2/services/ChildrenService.js.map +1 -0
  292. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +213 -0
  293. package/lib/openapi/v2/services/ClassificationLevelService.js +340 -0
  294. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -0
  295. package/lib/openapi/v2/services/CommentService.d.ts +713 -0
  296. package/lib/openapi/v2/services/CommentService.js +884 -0
  297. package/lib/openapi/v2/services/CommentService.js.map +1 -0
  298. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +844 -0
  299. package/lib/openapi/v2/services/ContentPropertiesService.js +1514 -0
  300. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -0
  301. package/lib/openapi/v2/services/ContentService.d.ts +31 -0
  302. package/lib/openapi/v2/services/ContentService.js +62 -0
  303. package/lib/openapi/v2/services/ContentService.js.map +1 -0
  304. package/lib/openapi/v2/services/CustomContentService.d.ts +427 -0
  305. package/lib/openapi/v2/services/CustomContentService.js +423 -0
  306. package/lib/openapi/v2/services/CustomContentService.js.map +1 -0
  307. package/lib/openapi/v2/services/DataPoliciesService.d.ts +64 -0
  308. package/lib/openapi/v2/services/DataPoliciesService.js +108 -0
  309. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -0
  310. package/lib/openapi/v2/services/DatabaseService.d.ts +82 -0
  311. package/lib/openapi/v2/services/DatabaseService.js +135 -0
  312. package/lib/openapi/v2/services/DatabaseService.js.map +1 -0
  313. package/lib/openapi/v2/services/LabelService.d.ts +271 -0
  314. package/lib/openapi/v2/services/LabelService.js +384 -0
  315. package/lib/openapi/v2/services/LabelService.js.map +1 -0
  316. package/lib/openapi/v2/services/LikeService.d.ts +205 -0
  317. package/lib/openapi/v2/services/LikeService.js +358 -0
  318. package/lib/openapi/v2/services/LikeService.js.map +1 -0
  319. package/lib/openapi/v2/services/OperationService.d.ts +154 -0
  320. package/lib/openapi/v2/services/OperationService.js +374 -0
  321. package/lib/openapi/v2/services/OperationService.js.map +1 -0
  322. package/lib/openapi/v2/services/PageService.d.ts +408 -0
  323. package/lib/openapi/v2/services/PageService.js +381 -0
  324. package/lib/openapi/v2/services/PageService.js.map +1 -0
  325. package/lib/openapi/v2/services/SmartLinkService.d.ts +84 -0
  326. package/lib/openapi/v2/services/SmartLinkService.js +137 -0
  327. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -0
  328. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +36 -0
  329. package/lib/openapi/v2/services/SpacePermissionsService.js +66 -0
  330. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -0
  331. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +118 -0
  332. package/lib/openapi/v2/services/SpacePropertiesService.js +213 -0
  333. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -0
  334. package/lib/openapi/v2/services/SpaceService.d.ts +141 -0
  335. package/lib/openapi/v2/services/SpaceService.js +133 -0
  336. package/lib/openapi/v2/services/SpaceService.js.map +1 -0
  337. package/lib/openapi/v2/services/TaskService.d.ts +184 -0
  338. package/lib/openapi/v2/services/TaskService.js +165 -0
  339. package/lib/openapi/v2/services/TaskService.js.map +1 -0
  340. package/lib/openapi/v2/services/UserService.d.ts +51 -0
  341. package/lib/openapi/v2/services/UserService.js +83 -0
  342. package/lib/openapi/v2/services/UserService.js.map +1 -0
  343. package/lib/openapi/v2/services/VersionService.d.ts +350 -0
  344. package/lib/openapi/v2/services/VersionService.js +541 -0
  345. package/lib/openapi/v2/services/VersionService.js.map +1 -0
  346. package/lib/openapi/v2/services/WhiteboardService.d.ts +82 -0
  347. package/lib/openapi/v2/services/WhiteboardService.js +135 -0
  348. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -0
  349. package/lib/openapi/v2/validationSchemaStorage.d.ts +3 -0
  350. package/lib/openapi/v2/validationSchemaStorage.js +144 -0
  351. package/lib/openapi/v2/validationSchemaStorage.js.map +1 -0
  352. package/package.json +44 -0
@@ -0,0 +1,453 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentChildrenAndDescendantsService = void 0;
4
+ // DO NOT EDIT!
5
+ // This file is generated by "api-typescript-generator".
6
+ // To update this file run "yarn build:openapi".
7
+ const zod_1 = require("zod");
8
+ const commonHttpClient = require("../core/CommonHttpClient");
9
+ const CommonHttpService_1 = require("../core/CommonHttpService");
10
+ const common_1 = require("../models/common");
11
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Copies a single page and its associated properties, permissions, attachments,
15
+ * and custom contents.
16
+ * The `id` path parameter refers to the content ID of the page to copy. The
17
+ * target of the page to be copied
18
+ * is defined using the `destination` in the request body and can be one of the
19
+ * following types.
20
+ *
21
+ * - `space`: page will be copied to the specified space as a root page on the
22
+ * space
23
+ * - `parent_page`: page will be copied as a child of the specified parent page
24
+ * - `existing_page`: page will be copied and replace the specified page
25
+ *
26
+ * By default, the following objects are expanded: `space`, `history`, `version`.
27
+ *
28
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Add'
29
+ * permission for the space that the content will be copied in and permission to
30
+ * update the content if copying to an `existing_page`.
31
+ *
32
+ * @returns Returned if the content is copied.
33
+ * @path {POST} /wiki/rest/api/content/{id}/copy
34
+ * @scopes-current write:confluence-content
35
+ * @scopes-beta read:content-details:confluence, write:page:confluence
36
+ */
37
+ copyPage({ id, expand, copyPageRequest, }) {
38
+ return this.getClientInstance()
39
+ .request({
40
+ path: "/wiki/rest/api/content/{id}/copy",
41
+ method: "POST",
42
+ pathParams: {
43
+ id,
44
+ },
45
+ query: {
46
+ expand,
47
+ },
48
+ headers: {
49
+ "Content-Type": "application/json",
50
+ },
51
+ body: copyPageRequest,
52
+ })
53
+ .then(this.getClientInstance().responseHandler({
54
+ 200: {
55
+ "application/json;charset=UTF-8": "json",
56
+ },
57
+ }))
58
+ .then(commonHttpClient.castResponse())
59
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPage.response"))
60
+ .then(commonHttpClient.getBody);
61
+ }
62
+ /**
63
+ * Copy page hierarchy allows the copying of an entire hierarchy of pages and
64
+ * their associated properties, permissions and attachments.
65
+ * The id path parameter refers to the content id of the page to copy, and the
66
+ * new parent of this copied page is defined using the destinationPageId in the
67
+ * request body.
68
+ * The titleOptions object defines the rules of renaming page titles during the
69
+ * copy;
70
+ * for example, search and replace can be used in conjunction to rewrite the
71
+ * copied page titles.
72
+ *
73
+ * Response example:
74
+ * <pre><code>
75
+ * {
76
+ * "id" : "1180606",
77
+ * "links" : {
78
+ * "status" : "/rest/api/longtask/1180606"
79
+ * }
80
+ * }
81
+ * </code></pre>
82
+ * Use the /longtask/<taskId> REST API to get the copy task status.
83
+ *
84
+ * @returns Returns a full JSON representation of a long running task
85
+ * @path {POST} /wiki/rest/api/content/{id}/pagehierarchy/copy
86
+ * @scopes-current write:confluence-content
87
+ * @scopes-beta read:content.metadata:confluence, write:page:confluence
88
+ */
89
+ copyPageHierarchy({ id, copyPageHierarchyRequest, }) {
90
+ return this.getClientInstance()
91
+ .request({
92
+ path: "/wiki/rest/api/content/{id}/pagehierarchy/copy",
93
+ method: "POST",
94
+ pathParams: {
95
+ id,
96
+ },
97
+ headers: {
98
+ "Content-Type": "application/json",
99
+ },
100
+ body: copyPageHierarchyRequest,
101
+ })
102
+ .then(this.getClientInstance().responseHandler({
103
+ 202: {
104
+ "application/json": "json",
105
+ },
106
+ }))
107
+ .then(commonHttpClient.castResponse())
108
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPageHierarchy.response"))
109
+ .then(commonHttpClient.getBody);
110
+ }
111
+ /**
112
+ * Deprecated, use [Confluence's v2
113
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
114
+ *
115
+ * Returns a map of the direct children of a piece of content. A piece of content
116
+ * has different types of child content, depending on its type. These are
117
+ * the default parent-child content type relationships:
118
+ *
119
+ * - `page`: child content is `page`, `whiteboard`, `database`, `embed`, `folder`,
120
+ * `comment`, `attachment`
121
+ * - `whiteboard`: child content is `page`, `whiteboard`, `database`, `embed`,
122
+ * `folder`, `comment`, `attachment`
123
+ * - `database`: child content is `page`, `whiteboard`, `database`, `embed`,
124
+ * `folder`, `comment`, `attachment`
125
+ * - `embed`: child content is `page`, `whiteboard`, `database`, `embed`,
126
+ * `folder`, `comment`, `attachment`
127
+ * - `folder`: child content is `page`, `whiteboard`, `database`, `embed`,
128
+ * `folder`, `comment`, `attachment`
129
+ * - `blogpost`: child content is `comment`, `attachment`
130
+ * - `attachment`: child content is `comment`
131
+ * - `comment`: child content is `attachment`
132
+ *
133
+ * Apps can override these default relationships. Apps can also introduce
134
+ * new content types that create new parent-child content relationships.
135
+ *
136
+ * Note, the map will always include all child content types that are valid
137
+ * for the content. However, if the content has no instances of a child content
138
+ * type, the map will contain an empty array for that child content type.
139
+ *
140
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
141
+ * permission for the space,
142
+ * and permission to view the content if it is a page.
143
+ *
144
+ * @deprecated
145
+ * @returns Returned if the requested content children are returned.
146
+ * @path {GET} /wiki/rest/api/content/{id}/child
147
+ * @scopes-current read:confluence-content.summary
148
+ * @scopes-beta read:content-details:confluence
149
+ */
150
+ getContentChildren({ id, expand, parentVersion, }) {
151
+ return this.getClientInstance()
152
+ .request({
153
+ path: "/wiki/rest/api/content/{id}/child",
154
+ method: "GET",
155
+ pathParams: {
156
+ id,
157
+ },
158
+ query: {
159
+ expand,
160
+ parentVersion,
161
+ },
162
+ })
163
+ .then(this.getClientInstance().responseHandler({
164
+ 200: {
165
+ "application/json": "json",
166
+ },
167
+ }))
168
+ .then(commonHttpClient.castResponse())
169
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildren.response"))
170
+ .then(commonHttpClient.getBody);
171
+ }
172
+ /**
173
+ * Deprecated, use [Confluence's v2
174
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
175
+ *
176
+ * Returns all children of a given type, for a piece of content.
177
+ * A piece of content has different types of child content, depending on its type:
178
+ *
179
+ * - `page`: child content is `page`, `whiteboard`, `database`, `embed`, `folder`,
180
+ * `comment`, `attachment`
181
+ * - `whiteboard`: child content is `page`, `whiteboard`, `database`, `embed`,
182
+ * `folder`, `comment`, `attachment`
183
+ * - `database`: child content is `page`, `whiteboard`, `database`, `embed`,
184
+ * `folder`, `comment`, `attachment`
185
+ * - `embed`: child content is `page`, `whiteboard`, `database`, `embed`,
186
+ * `folder`, `comment`, `attachment`
187
+ * - `folder`: child content is `page`, `whiteboard`, `database`, `embed`,
188
+ * `folder`, `comment`, `attachment`
189
+ * - `blogpost`: child content is `comment`, `attachment`
190
+ * - `attachment`: child content is `comment`
191
+ * - `comment`: child content is `attachment`
192
+ *
193
+ * Custom content types that are provided by apps can also be returned.
194
+ *
195
+ * Note, this method only returns direct children. To return children at all
196
+ * levels, use [Get descendants by type](#api-content-id-descendant-type-get).
197
+ *
198
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
199
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
200
+ * parameter will be restricted to a maximum value of 25.
201
+ *
202
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
203
+ * permission for the space,
204
+ * and permission to view the content if it is a page.
205
+ *
206
+ * @deprecated
207
+ * @returns Returned if the requested content is returned.
208
+ * @path {GET} /wiki/rest/api/content/{id}/child/{type}
209
+ * @scopes-current read:confluence-content.summary
210
+ * @scopes-beta read:content-details:confluence
211
+ */
212
+ getContentChildrenByType({ id, type, expand, parentVersion, start, limit, }) {
213
+ return this.getClientInstance()
214
+ .request({
215
+ path: "/wiki/rest/api/content/{id}/child/{type}",
216
+ method: "GET",
217
+ pathParams: {
218
+ id,
219
+ type,
220
+ },
221
+ query: {
222
+ expand,
223
+ parentVersion,
224
+ start,
225
+ limit,
226
+ },
227
+ })
228
+ .then(this.getClientInstance().responseHandler({
229
+ 200: {
230
+ "application/json": "json",
231
+ },
232
+ }))
233
+ .then(commonHttpClient.castResponse())
234
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildrenByType.response"))
235
+ .then(commonHttpClient.getBody);
236
+ }
237
+ /**
238
+ * Returns a map of the descendants of a piece of content. This is similar
239
+ * to [Get content children](#api-content-id-child-get), except that this
240
+ * method returns child pages at all levels, rather than just the direct
241
+ * child pages.
242
+ *
243
+ * A piece of content has different types of descendants, depending on its type:
244
+ *
245
+ * - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
246
+ * `comment`, `attachment`
247
+ * - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`,
248
+ * `folder`, `comment`, `attachment`
249
+ * - `database`: descendant is `page`, `whiteboard`, `database`, `embed`,
250
+ * `folder`, `comment`, `attachment`
251
+ * - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
252
+ * `comment`, `attachment`
253
+ * - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
254
+ * `comment`, `attachment`
255
+ * - `blogpost`: descendant is `comment`, `attachment`
256
+ * - `attachment`: descendant is `comment`
257
+ * - `comment`: descendant is `attachment`
258
+ *
259
+ * The map will always include all descendant types that are valid for the content.
260
+ * However, if the content has no instances of a descendant type, the map will
261
+ * contain an empty array for that descendant type.
262
+ *
263
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
264
+ * 'View' permission for the space, and permission to view the content if it
265
+ * is a page.
266
+ *
267
+ * @returns Returned if the requested descendants are returned.
268
+ * @path {GET} /wiki/rest/api/content/{id}/descendant
269
+ * @scopes-current read:confluence-content.summary
270
+ * @scopes-beta read:content-details:confluence
271
+ */
272
+ getContentDescendants({ id, expand, }) {
273
+ return this.getClientInstance()
274
+ .request({
275
+ path: "/wiki/rest/api/content/{id}/descendant",
276
+ method: "GET",
277
+ pathParams: {
278
+ id,
279
+ },
280
+ query: {
281
+ expand,
282
+ },
283
+ })
284
+ .then(this.getClientInstance().responseHandler({
285
+ 200: {
286
+ "application/json": "json",
287
+ },
288
+ }))
289
+ .then(commonHttpClient.castResponse())
290
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentDescendants.response"))
291
+ .then(commonHttpClient.getBody);
292
+ }
293
+ /**
294
+ * Returns all descendants of a given type, for a piece of content. This is
295
+ * similar to [Get content children by type](#api-content-id-child-type-get),
296
+ * except that this method returns child pages at all levels, rather than just
297
+ * the direct child pages.
298
+ *
299
+ * A piece of content has different types of descendants, depending on its type:
300
+ *
301
+ * - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
302
+ * `comment`, `attachment`
303
+ * - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`,
304
+ * `folder`, `comment`, `attachment`
305
+ * - `database`: descendant is `page`, `whiteboard`, `database`, `embed`,
306
+ * `folder`, `comment`, `attachment`
307
+ * - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
308
+ * `comment`, `attachment`
309
+ * - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`,
310
+ * `comment`, `attachment`
311
+ * - `blogpost`: descendant is `comment`, `attachment`
312
+ * - `attachment`: descendant is `comment`
313
+ * - `comment`: descendant is `attachment`
314
+ *
315
+ * Custom content types that are provided by apps can also be returned.
316
+ *
317
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
318
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
319
+ * parameter will be restricted to a maximum value of 25.
320
+ *
321
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
322
+ * 'View' permission for the space, and permission to view the content if it
323
+ * is a page.
324
+ *
325
+ * @returns Returned if the requested content is returned.
326
+ * @path {GET} /wiki/rest/api/content/{id}/descendant/{type}
327
+ * @scopes-current read:confluence-content.summary
328
+ * @scopes-beta read:content-details:confluence
329
+ */
330
+ getDescendantsOfType({ id, type, depth, expand, start, limit, }) {
331
+ return this.getClientInstance()
332
+ .request({
333
+ path: "/wiki/rest/api/content/{id}/descendant/{type}",
334
+ method: "GET",
335
+ pathParams: {
336
+ id,
337
+ type,
338
+ },
339
+ query: {
340
+ depth,
341
+ expand,
342
+ start,
343
+ limit,
344
+ },
345
+ })
346
+ .then(this.getClientInstance().responseHandler({
347
+ 200: {
348
+ "application/json": "json",
349
+ },
350
+ }))
351
+ .then(commonHttpClient.castResponse())
352
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getDescendantsOfType.response"))
353
+ .then(commonHttpClient.getBody);
354
+ }
355
+ /**
356
+ * Move a page to a new location relative to a target page:
357
+ *
358
+ * * `before` - move the page under the same parent as the target, before the
359
+ * target in the list of children
360
+ * * `after` - move the page under the same parent as the target, after the target
361
+ * in the list of children
362
+ * * `append` - move the page to be a child of the target
363
+ *
364
+ * Caution: This API can move pages to the top level of a space. Top-level pages
365
+ * are difficult to find in the UI
366
+ * because they do not show up in the page tree display. To avoid this, never use
367
+ * `before` or `after` positions
368
+ * when the `targetId` is a top-level page.
369
+ *
370
+ * @returns Page was successfully moved
371
+ * @path {PUT} /wiki/rest/api/content/{pageId}/move/{position}/{targetId}
372
+ * @scopes-current write:confluence-content
373
+ * @scopes-beta write:page:confluence
374
+ */
375
+ movePage({ pageId, position, targetId, }) {
376
+ return this.getClientInstance()
377
+ .request({
378
+ path: "/wiki/rest/api/content/{pageId}/move/{position}/{targetId}",
379
+ method: "PUT",
380
+ pathParams: {
381
+ pageId,
382
+ position,
383
+ targetId,
384
+ },
385
+ })
386
+ .then(this.getClientInstance().responseHandler({
387
+ 200: {
388
+ "application/json": "json",
389
+ },
390
+ }))
391
+ .then(commonHttpClient.castResponse())
392
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.movePage.response"))
393
+ .then(commonHttpClient.getBody);
394
+ }
395
+ static initialize() {
396
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildren.response", zod_1.z
397
+ .object({
398
+ status: zod_1.z.literal(200),
399
+ mediaType: zod_1.z.literal("application/json"),
400
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren"),
401
+ })
402
+ .describe("ContentChildrenAndDescendantsService.getContentChildren.response"));
403
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildrenByType.response", zod_1.z
404
+ .object({
405
+ status: zod_1.z.literal(200),
406
+ mediaType: zod_1.z.literal("application/json"),
407
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
408
+ })
409
+ .describe("ContentChildrenAndDescendantsService.getContentChildrenByType.response"));
410
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPage.response", zod_1.z
411
+ .object({
412
+ status: zod_1.z.literal(200),
413
+ mediaType: zod_1.z.literal("application/json;charset=UTF-8"),
414
+ body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content")),
415
+ })
416
+ .describe("ContentChildrenAndDescendantsService.copyPage.response"));
417
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentDescendants.response", zod_1.z
418
+ .object({
419
+ status: zod_1.z.literal(200),
420
+ mediaType: zod_1.z.literal("application/json"),
421
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren"),
422
+ })
423
+ .describe("ContentChildrenAndDescendantsService.getContentDescendants.response"));
424
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getDescendantsOfType.response", zod_1.z
425
+ .object({
426
+ status: zod_1.z.literal(200),
427
+ mediaType: zod_1.z.literal("application/json"),
428
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
429
+ })
430
+ .describe("ContentChildrenAndDescendantsService.getDescendantsOfType.response"));
431
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPageHierarchy.response", zod_1.z
432
+ .object({
433
+ status: zod_1.z.literal(202),
434
+ mediaType: zod_1.z.literal("application/json"),
435
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask"),
436
+ })
437
+ .describe("ContentChildrenAndDescendantsService.copyPageHierarchy.response"));
438
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.movePage.response", zod_1.z
439
+ .object({
440
+ status: zod_1.z.literal(200),
441
+ mediaType: zod_1.z.literal("application/json"),
442
+ body: zod_1.z
443
+ .object({
444
+ pageId: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentId").optional(),
445
+ })
446
+ .catchall(zod_1.z.unknown()),
447
+ })
448
+ .describe("ContentChildrenAndDescendantsService.movePage.response"));
449
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
450
+ }
451
+ }
452
+ exports.ContentChildrenAndDescendantsService = ContentChildrenAndDescendantsService;
453
+ //# sourceMappingURL=ContentChildrenAndDescendantsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAO0B;AAK1B,wEAAqE;AACrE,MAAa,oCAAqC,SAAQ,qCAAiB;IACzE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,CAAC,EACP,EAAE,EACF,MAAM,EACN,eAAe,GAqGhB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAA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;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;aAC7D,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,wDAAwD,CAAC,CACtE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAr9BD,oFAq9BC"}
@@ -0,0 +1,147 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type ContentArray } from "../models/common";
3
+ /** @deprecated */
4
+ export declare class ContentCommentsService extends CommonHttpService {
5
+ /**
6
+ * Deprecated, use [Confluence's v2
7
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
8
+ *
9
+ * Returns the comments on a piece of content.
10
+ *
11
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
12
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
13
+ * parameter will be restricted to a maximum value of 25.
14
+ *
15
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
16
+ * permission for the space,
17
+ * and permission to view the content if it is a page.
18
+ *
19
+ * @deprecated
20
+ * @returns Returned if the requested comments are returned.
21
+ * @path {GET} /wiki/rest/api/content/{id}/child/comment
22
+ * @scopes-current read:confluence-content.summary
23
+ * @scopes-beta read:content-details:confluence
24
+ */
25
+ getContentComments({ id, expand, parentVersion, start, limit, location, depth, }: {
26
+ /** The ID of the content to be queried for its comments. */
27
+ id: string;
28
+ /**
29
+ * A multi-value parameter indicating which properties of the content to expand.
30
+ *
31
+ * - `childTypes.all` returns whether the content has attachments, comments, or
32
+ * child pages/whiteboards.
33
+ * Use this if you only need to check whether the content has children of a
34
+ * particular type.
35
+ * - `childTypes.attachment` returns whether the content has attachments.
36
+ * - `childTypes.comment` returns whether the content has comments.
37
+ * - `childTypes.page` returns whether the content has child pages.
38
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
39
+ * - `childTypes.database` returns whether the content has child databases.
40
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
41
+ * - `childTypes.folder` returns whether the content has child folders.
42
+ * - `container` returns the space that the content is in. This is the same as the
43
+ * information
44
+ * returned by [Get space](#api-space-spaceKey-get).
45
+ * - `metadata.currentuser` returns information about the current user in relation
46
+ * to the content,
47
+ * including when they last viewed it, modified it, contributed to it, or added it
48
+ * as a favorite.
49
+ * - `metadata.properties` returns content properties that have been set via the
50
+ * Confluence REST API.
51
+ * - `metadata.labels` returns the labels that have been added to the content.
52
+ * - `metadata.frontend` this property is only used by Atlassian.
53
+ * - `operations` returns the operations for the content, which are used when
54
+ * setting permissions.
55
+ * - `children.page` returns pages that are descendants at the level immediately
56
+ * below the content.
57
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
58
+ * immediately below the content.
59
+ * - `children.database` returns databases that are descendants at the level
60
+ * immediately below the content.
61
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
62
+ * level immediately below the content.
63
+ * - `children.folder` returns folders that are descendants at the level
64
+ * immediately below the content.
65
+ * - `children.attachment` returns all attachments for the content.
66
+ * - `children.comment` returns all comments on the content.
67
+ * - `restrictions.read.restrictions.user` returns the users that have permission
68
+ * to read the content.
69
+ * - `restrictions.read.restrictions.group` returns the groups that have
70
+ * permission to read the content. Note that
71
+ * this may return deleted groups, because deleting a group doesn't remove
72
+ * associated restrictions.
73
+ * - `restrictions.update.restrictions.user` returns the users that have
74
+ * permission to update the content.
75
+ * - `restrictions.update.restrictions.group` returns the groups that have
76
+ * permission to update the content. Note that
77
+ * this may return deleted groups because deleting a group doesn't remove
78
+ * associated restrictions.
79
+ * - `history` returns the history of the content, including the date it was
80
+ * created.
81
+ * - `history.lastUpdated` returns information about the most recent update of the
82
+ * content, including
83
+ * who updated it and when it was updated.
84
+ * - `history.previousVersion` returns information about the update prior to the
85
+ * current content update.
86
+ * - `history.contributors` returns all of the users who have contributed to the
87
+ * content.
88
+ * - `history.nextVersion` returns information about the update after to the
89
+ * current content update.
90
+ * - `ancestors` returns the parent content, if the content is a page or
91
+ * whiteboard.
92
+ * - `body` returns the body of the content in different formats, including the
93
+ * editor format,
94
+ * view format, and export format.
95
+ * - `body.storage` returns the body of content in storage format.
96
+ * - `body.view` returns the body of content in view format.
97
+ * - `version` returns information about the most recent update of the content,
98
+ * including who updated it
99
+ * and when it was updated.
100
+ * - `descendants.page` returns pages that are descendants at any level below the
101
+ * content.
102
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
103
+ * level below the content.
104
+ * - `descendants.database` returns databases that are descendants at any level
105
+ * below the content.
106
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
107
+ * level below the content.
108
+ * - `descendants.folder` returns folders that are descendants at any level below
109
+ * the content.
110
+ * - `descendants.attachment` returns all attachments for the content, same as
111
+ * `children.attachment`.
112
+ * - `descendants.comment` returns all comments on the content, same as
113
+ * `children.comment`.
114
+ * - `space` returns the space that the content is in. This is the same as the
115
+ * information returned by
116
+ * [Get space](#api-space-spaceKey-get).
117
+ *
118
+ * In addition, the following comment-specific expansions can be used:
119
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
120
+ * - `extensions.resolution` returns the resolution status of each comment.
121
+ */
122
+ expand?: string[];
123
+ /**
124
+ * The version of the parent content to retrieve children for.
125
+ * Currently, this only works for the latest version.
126
+ */
127
+ parentVersion?: number;
128
+ /** The starting index of the returned comments. */
129
+ start?: number;
130
+ /**
131
+ * The maximum number of comments to return per page. Note,
132
+ * this may be restricted by fixed system limits.
133
+ */
134
+ limit?: number;
135
+ /**
136
+ * The location of the comments in the page. Multiple locations can be specified.
137
+ * If no location is specified, comments from all locations are returned.
138
+ */
139
+ location?: "inline" | "footer" | "resolved";
140
+ /**
141
+ * Currently, this parameter is not used.
142
+ * Comments are returned at the root level only.
143
+ */
144
+ depth?: string;
145
+ }): Promise<ContentArray>;
146
+ static initialize(): void;
147
+ }