@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,1012 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type Content, type ContentArray, type LongTask } from "../models/common";
3
+ import { type ContentBlueprintDraft, type ContentCreate, type ContentHistory, type ContentUpdate } from "../models/content";
4
+ export declare class ContentService extends CommonHttpService {
5
+ /**
6
+ * Archives a list of pages. The pages to be archived are specified as a list of
7
+ * content IDs.
8
+ * This API accepts the archival request and returns a task ID.
9
+ * The archival process happens asynchronously.
10
+ * Use the /longtask/<taskId> REST API to get the copy task status.
11
+ *
12
+ * Each content ID needs to resolve to page objects that are not already in an
13
+ * archived state.
14
+ * The content IDs need not belong to the same space.
15
+ *
16
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
17
+ * 'Archive' permission for each of the pages in the corresponding space it
18
+ * belongs to.
19
+ *
20
+ * @returns Returned if the archive request has been submitted.
21
+ * @path {POST} /wiki/rest/api/content/archive
22
+ * @scopes-current write:confluence-content
23
+ * @scopes-beta read:content.metadata:confluence, write:page:confluence
24
+ */
25
+ archivePages({ requestBody, }: {
26
+ /** The pages to be archived. */
27
+ requestBody: {
28
+ pages?: ({
29
+ /** The `id` of the page to be archived. */
30
+ id: number;
31
+ } & {
32
+ [key: string]: unknown;
33
+ })[];
34
+ } & {
35
+ [key: string]: unknown;
36
+ };
37
+ }): Promise<LongTask>;
38
+ /**
39
+ * Deprecated, use [Confluence's v2
40
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
41
+ *
42
+ * Creates a new piece of content or publishes an existing draft.
43
+ *
44
+ * To publish a draft, add the `id` and `status` properties to the body of the
45
+ * request.
46
+ * Set the `id` to the ID of the draft and set the `status` to 'current'. When the
47
+ * request is sent, a new piece of content will be created and the metadata from
48
+ * the
49
+ * draft will be transferred into it.
50
+ *
51
+ * By default, the following objects are expanded: `space`, `history`, `version`.
52
+ *
53
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Add'
54
+ * permission for the
55
+ * space that the content will be created in, and permission to view the draft if
56
+ * publishing a draft.
57
+ *
58
+ * @deprecated
59
+ * @returns Returned if the content is created.
60
+ * @path {POST} /wiki/rest/api/content
61
+ * @scopes-current write:confluence-content
62
+ * @scopes-beta read:content-details:confluence, write:content:confluence
63
+ */
64
+ createContent({ status, expand, contentCreate, }: {
65
+ /** Filter the returned content by status. */
66
+ status?: string;
67
+ /**
68
+ * A multi-value parameter indicating which properties of the content to expand.
69
+ * Maximum sub-expansions allowed is `8`.
70
+ *
71
+ * - `childTypes.all` returns whether the content has attachments, comments, or
72
+ * child pages/whiteboards.
73
+ * Use this if you only need to check whether the content has children of a
74
+ * particular type.
75
+ * - `childTypes.attachment` returns whether the content has attachments.
76
+ * - `childTypes.comment` returns whether the content has comments.
77
+ * - `childTypes.page` returns whether the content has child pages.
78
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
79
+ * - `childTypes.database` returns whether the content has child databases.
80
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
81
+ * - `childTypes.folder` returns whether the content has child folder.
82
+ * - `container` returns the space that the content is in. This is the same as the
83
+ * information
84
+ * returned by [Get space](#api-space-spaceKey-get).
85
+ * - `metadata.currentuser` returns information about the current user in relation
86
+ * to the content,
87
+ * including when they last viewed it, modified it, contributed to it, or added it
88
+ * as a favorite.
89
+ * - `metadata.properties` returns content properties that have been set via the
90
+ * Confluence REST API.
91
+ * - `metadata.labels` returns the labels that have been added to the content.
92
+ * - `metadata.frontend` this property is only used by Atlassian.
93
+ * - `operations` returns the operations for the content, which are used when
94
+ * setting permissions.
95
+ * - `children.page` returns pages that are descendants at the level immediately
96
+ * below the content.
97
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
98
+ * immediately below the content.
99
+ * - `children.database` returns databases that are descendants at the level
100
+ * immediately below the content.
101
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
102
+ * level immediately below the content.
103
+ * - `children.folder` returns folders that are descendants at the level
104
+ * immediately below the content.
105
+ * - `children.attachment` returns all attachments for the content.
106
+ * - `children.comment` returns all comments on the content.
107
+ * - `restrictions.read.restrictions.user` returns the users that have permission
108
+ * to read the content.
109
+ * - `restrictions.read.restrictions.group` returns the groups that have
110
+ * permission to read the content. Note that
111
+ * this may return deleted groups, because deleting a group doesn't remove
112
+ * associated restrictions.
113
+ * - `restrictions.update.restrictions.user` returns the users that have
114
+ * permission to update the content.
115
+ * - `restrictions.update.restrictions.group` returns the groups that have
116
+ * permission to update the content. Note that
117
+ * this may return deleted groups because deleting a group doesn't remove
118
+ * associated restrictions.
119
+ * - `history` returns the history of the content, including the date it was
120
+ * created.
121
+ * - `history.lastUpdated` returns information about the most recent update of the
122
+ * content, including
123
+ * who updated it and when it was updated.
124
+ * - `history.previousVersion` returns information about the update prior to the
125
+ * current content update.
126
+ * - `history.contributors` returns all of the users who have contributed to the
127
+ * content.
128
+ * - `history.nextVersion` returns information about the update after to the
129
+ * current content update.
130
+ * - `ancestors` returns the parent content, if the content is a page or
131
+ * whiteboard.
132
+ * - `body` returns the body of the content in different formats, including the
133
+ * editor format,
134
+ * view format, and export format.
135
+ * - `body.storage` returns the body of content in storage format.
136
+ * - `body.view` returns the body of content in view format.
137
+ * - `version` returns information about the most recent update of the content,
138
+ * including who updated it
139
+ * and when it was updated.
140
+ * - `descendants.page` returns pages that are descendants at any level below the
141
+ * content.
142
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
143
+ * level below the content.
144
+ * - `descendants.database` returns databases that are descendants at any level
145
+ * below the content.
146
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
147
+ * level below the content.
148
+ * - `descendants.folder` returns folders that are descendants at any level below
149
+ * the content.
150
+ * - `descendants.attachment` returns all attachments for the content, same as
151
+ * `children.attachment`.
152
+ * - `descendants.comment` returns all comments on the content, same as
153
+ * `children.comment`.
154
+ * - `space` returns the space that the content is in. This is the same as the
155
+ * information returned by
156
+ * [Get space](#api-space-spaceKey-get).
157
+ *
158
+ * In addition, the following comment-specific expansions can be used:
159
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
160
+ * - `extensions.resolution` returns the resolution status of each comment.
161
+ */
162
+ expand?: string[];
163
+ /**
164
+ * The new content to be created. Set the `representation` to the name of the body
165
+ * format type. For example, if you use `storage` for the body format, set
166
+ * '`representation`=`storage`'. See
167
+ * [Confluence storage format](https://confluence.atlassian.com/x/AJkiLw).
168
+ *
169
+ * If you are not sure how to generate the different formats, you can create a
170
+ * page in the
171
+ * Confluence application, retrieve the content using [Get
172
+ * content](#api-content-get),
173
+ * and expand the desired content format, e.g. `expand=body.storage`.
174
+ */
175
+ contentCreate: ContentCreate | null;
176
+ }): Promise<Content | null>;
177
+ /**
178
+ * Deprecated, use [Confluence's v2
179
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
180
+ *
181
+ * Moves a piece of content to the space's trash or purges it from the trash,
182
+ * depending on the content's type and status:
183
+ *
184
+ * - If the content's type is `page`,`blogpost`, or `attachment` and its status is
185
+ * `current`,
186
+ * it will be trashed.
187
+ * - If the content's type is `page`,`blogpost`, or `attachment` and its status is
188
+ * `trashed`,
189
+ * the content will be purged from the trash and deleted permanently. Note,
190
+ * you must also set the `status` query parameter to `trashed` in your request.
191
+ * - If the content's type is `comment`, it will be deleted
192
+ * permanently without being trashed.
193
+ *
194
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
195
+ * 'Delete' permission for the space that the content is in.
196
+ *
197
+ * @deprecated
198
+ * @path {DELETE} /wiki/rest/api/content/{id}
199
+ * @scopes-current write:confluence-content
200
+ * @scopes-beta delete:content:confluence
201
+ */
202
+ deleteContent({ id, status, }: {
203
+ /** The ID of the content to be deleted. */
204
+ id: string;
205
+ /**
206
+ * Set this to `trashed`, if the content's status is `trashed` and you want to
207
+ * purge it.
208
+ */
209
+ status?: string;
210
+ }): Promise<void>;
211
+ /**
212
+ * Deprecated, use [Confluence's v2
213
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
214
+ *
215
+ * Returns all content in a Confluence instance.
216
+ *
217
+ * By default, the following objects are expanded: `space`, `history`, `version`.
218
+ *
219
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
220
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
221
+ * parameter will be restricted to a maximum value of 25.
222
+ *
223
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
224
+ * Permission to access the Confluence site ('Can use' global permission).
225
+ * Only content that the user has permission to view will be returned.
226
+ *
227
+ * @deprecated
228
+ * @returns Returned if the requested list of content is returned.
229
+ * @path {GET} /wiki/rest/api/content
230
+ * @scopes-current read:confluence-content.summary
231
+ * @scopes-beta read:content-details:confluence
232
+ */
233
+ getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }: {
234
+ /**
235
+ * The type of content to return. For example:
236
+ * - page
237
+ * - blogpost
238
+ */
239
+ type?: string;
240
+ /** The key of the space to be queried for its content. */
241
+ spaceKey?: string;
242
+ /** The title of the page to be returned. Required for <code>page</code> type. */
243
+ title?: string;
244
+ /**
245
+ * Filter the results to a set of content based on their status. If set to `any`,
246
+ * content with any status is returned. Note, the `historical` status is currently
247
+ * not supported.
248
+ */
249
+ status?: "current" | "trashed" | "deleted" | "historical" | "draft" | "any";
250
+ /**
251
+ * The posting date of the blog post to be returned. Required for
252
+ * <code>blogpost</code> type. Format: <code>yyyy-mm-dd</code>.
253
+ */
254
+ postingDay?: string;
255
+ /**
256
+ * A multi-value parameter indicating which properties of the content to expand.
257
+ * Maximum sub-expansions allowed is `8`.
258
+ *
259
+ * - `childTypes.all` returns whether the content has attachments, comments, or
260
+ * child pages/whiteboards.
261
+ * Use this if you only need to check whether the content has children of a
262
+ * particular type.
263
+ * - `childTypes.attachment` returns whether the content has attachments.
264
+ * - `childTypes.comment` returns whether the content has comments.
265
+ * - `childTypes.page` returns whether the content has child pages.
266
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
267
+ * - `childTypes.database` returns whether the content has child databases.
268
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
269
+ * - `childTypes.folder` returns whether the content has child folder.
270
+ * - `container` returns the space that the content is in. This is the same as the
271
+ * information
272
+ * returned by [Get space](#api-space-spaceKey-get).
273
+ * - `metadata.currentuser` returns information about the current user in relation
274
+ * to the content,
275
+ * including when they last viewed it, modified it, contributed to it, or added it
276
+ * as a favorite.
277
+ * - `metadata.properties` returns content properties that have been set via the
278
+ * Confluence REST API.
279
+ * - `metadata.labels` returns the labels that have been added to the content.
280
+ * - `metadata.frontend` this property is only used by Atlassian.
281
+ * - `operations` returns the operations for the content, which are used when
282
+ * setting permissions.
283
+ * - `children.page` returns pages that are descendants at the level immediately
284
+ * below the content.
285
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
286
+ * immediately below the content.
287
+ * - `children.database` returns databases that are descendants at the level
288
+ * immediately below the content.
289
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
290
+ * level immediately below the content.
291
+ * - `children.folder` returns folders that are descendants at the level
292
+ * immediately below the content.
293
+ * - `children.attachment` returns all attachments for the content.
294
+ * - `children.comment` returns all comments on the content.
295
+ * - `restrictions.read.restrictions.user` returns the users that have permission
296
+ * to read the content.
297
+ * - `restrictions.read.restrictions.group` returns the groups that have
298
+ * permission to read the content. Note that
299
+ * this may return deleted groups, because deleting a group doesn't remove
300
+ * associated restrictions.
301
+ * - `restrictions.update.restrictions.user` returns the users that have
302
+ * permission to update the content.
303
+ * - `restrictions.update.restrictions.group` returns the groups that have
304
+ * permission to update the content. Note that
305
+ * this may return deleted groups because deleting a group doesn't remove
306
+ * associated restrictions.
307
+ * - `history` returns the history of the content, including the date it was
308
+ * created.
309
+ * - `history.lastUpdated` returns information about the most recent update of the
310
+ * content, including
311
+ * who updated it and when it was updated.
312
+ * - `history.previousVersion` returns information about the update prior to the
313
+ * current content update.
314
+ * - `history.contributors` returns all of the users who have contributed to the
315
+ * content.
316
+ * - `history.nextVersion` returns information about the update after to the
317
+ * current content update.
318
+ * - `ancestors` returns the parent content, if the content is a page or
319
+ * whiteboard.
320
+ * - `body` returns the body of the content in different formats, including the
321
+ * editor format,
322
+ * view format, and export format.
323
+ * - `body.storage` returns the body of content in storage format.
324
+ * - `body.view` returns the body of content in view format.
325
+ * - `version` returns information about the most recent update of the content,
326
+ * including who updated it
327
+ * and when it was updated.
328
+ * - `descendants.page` returns pages that are descendants at any level below the
329
+ * content.
330
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
331
+ * level below the content.
332
+ * - `descendants.database` returns databases that are descendants at any level
333
+ * below the content.
334
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
335
+ * level below the content.
336
+ * - `descendants.folder` returns folders that are descendants at any level below
337
+ * the content.
338
+ * - `descendants.attachment` returns all attachments for the content, same as
339
+ * `children.attachment`.
340
+ * - `descendants.comment` returns all comments on the content, same as
341
+ * `children.comment`.
342
+ * - `space` returns the space that the content is in. This is the same as the
343
+ * information returned by
344
+ * [Get space](#api-space-spaceKey-get).
345
+ *
346
+ * In addition, the following comment-specific expansions can be used:
347
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
348
+ * - `extensions.resolution` returns the resolution status of each comment.
349
+ */
350
+ expand?: string[];
351
+ /**
352
+ * If set to `viewed`, the request will trigger a 'viewed' event for the content.
353
+ * When this event is triggered, the page/blogpost will appear on the 'Recently
354
+ * visited'
355
+ * tab of the user's Confluence dashboard.
356
+ */
357
+ trigger?: "viewed";
358
+ /**
359
+ * Orders the content by a particular field. Specify the field and sort direction
360
+ * for
361
+ * this parameter, as follows: 'fieldpath asc/desc'. For example,
362
+ * 'history.createdDate desc'.
363
+ */
364
+ orderby?: string;
365
+ /** The starting index of the returned content. */
366
+ start?: number;
367
+ /**
368
+ * The maximum number of content objects to return per page.
369
+ * Note, this may be restricted by fixed system limits.
370
+ */
371
+ limit?: number;
372
+ }): Promise<ContentArray>;
373
+ /**
374
+ * Deprecated, use [Confluence's v2
375
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
376
+ *
377
+ * Returns a single piece of content, like a page or a blog post.
378
+ *
379
+ * By default, the following objects are expanded: `space`, `history`, `version`.
380
+ *
381
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
382
+ * Permission to view the content. If the content is a blog post, 'View' permission
383
+ * for the space is required.
384
+ *
385
+ * @deprecated
386
+ * @returns Returned if the requested content is returned.
387
+ * @path {GET} /wiki/rest/api/content/{id}
388
+ * @scopes-current read:confluence-content.summary
389
+ * @scopes-beta read:content-details:confluence
390
+ */
391
+ getContentById({ id, status, version, embeddedContentRender, expand, trigger, }: {
392
+ /**
393
+ * The ID of the content to be returned. If you don't know the content ID,
394
+ * use [Get content](#api-content-get) and filter the results.
395
+ */
396
+ id: string;
397
+ /**
398
+ * Filter the results to a set of content based on their status.
399
+ * If set to `any`, content with any status is returned. Note, the
400
+ * `historical` status is currently not supported.
401
+ */
402
+ status?: "current" | "trashed" | "deleted" | "historical" | "draft" | "any";
403
+ /** The version number of the content to be returned. */
404
+ version?: number;
405
+ /**
406
+ * The version of embedded content (e.g. attachments) to render.
407
+ *
408
+ * - <code>current</code> renders the latest version of the embedded content.
409
+ * - <code>version-at-save</code> renders the version of the embedded content
410
+ * at the time of save.
411
+ */
412
+ embeddedContentRender?: "current" | "version-at-save";
413
+ /**
414
+ * A multi-value parameter indicating which properties of the content to expand.
415
+ * Maximum sub-expansions allowed is `8`.
416
+ *
417
+ * - `childTypes.all` returns whether the content has attachments, comments, or
418
+ * child pages/whiteboards.
419
+ * Use this if you only need to check whether the content has children of a
420
+ * particular type.
421
+ * - `childTypes.attachment` returns whether the content has attachments.
422
+ * - `childTypes.comment` returns whether the content has comments.
423
+ * - `childTypes.page` returns whether the content has child pages.
424
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
425
+ * - `childTypes.database` returns whether the content has child databases.
426
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
427
+ * - `childTypes.folder` returns whether the content has child folder.
428
+ * - `container` returns the space that the content is in. This is the same as the
429
+ * information
430
+ * returned by [Get space](#api-space-spaceKey-get).
431
+ * - `metadata.currentuser` returns information about the current user in relation
432
+ * to the content,
433
+ * including when they last viewed it, modified it, contributed to it, or added it
434
+ * as a favorite.
435
+ * - `metadata.properties` returns content properties that have been set via the
436
+ * Confluence REST API.
437
+ * - `metadata.labels` returns the labels that have been added to the content.
438
+ * - `metadata.frontend` this property is only used by Atlassian.
439
+ * - `operations` returns the operations for the content, which are used when
440
+ * setting permissions.
441
+ * - `children.page` returns pages that are descendants at the level immediately
442
+ * below the content.
443
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
444
+ * immediately below the content.
445
+ * - `children.database` returns databases that are descendants at the level
446
+ * immediately below the content.
447
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
448
+ * level immediately below the content.
449
+ * - `children.folder` returns folders that are descendants at the level
450
+ * immediately below the content.
451
+ * - `children.attachment` returns all attachments for the content.
452
+ * - `children.comment` returns all comments on the content.
453
+ * - `restrictions.read.restrictions.user` returns the users that have permission
454
+ * to read the content.
455
+ * - `restrictions.read.restrictions.group` returns the groups that have
456
+ * permission to read the content. Note that
457
+ * this may return deleted groups, because deleting a group doesn't remove
458
+ * associated restrictions.
459
+ * - `restrictions.update.restrictions.user` returns the users that have
460
+ * permission to update the content.
461
+ * - `restrictions.update.restrictions.group` returns the groups that have
462
+ * permission to update the content. Note that
463
+ * this may return deleted groups because deleting a group doesn't remove
464
+ * associated restrictions.
465
+ * - `history` returns the history of the content, including the date it was
466
+ * created.
467
+ * - `history.lastUpdated` returns information about the most recent update of the
468
+ * content, including
469
+ * who updated it and when it was updated.
470
+ * - `history.previousVersion` returns information about the update prior to the
471
+ * current content update.
472
+ * - `history.contributors` returns all of the users who have contributed to the
473
+ * content.
474
+ * - `history.nextVersion` returns information about the update after to the
475
+ * current content update.
476
+ * - `ancestors` returns the parent content, if the content is a page or
477
+ * whiteboard.
478
+ * - `body` returns the body of the content in different formats, including the
479
+ * editor format,
480
+ * view format, and export format.
481
+ * - `body.storage` returns the body of content in storage format.
482
+ * - `body.view` returns the body of content in view format.
483
+ * - `version` returns information about the most recent update of the content,
484
+ * including who updated it
485
+ * and when it was updated.
486
+ * - `descendants.page` returns pages that are descendants at any level below the
487
+ * content.
488
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
489
+ * level below the content.
490
+ * - `descendants.database` returns databases that are descendants at any level
491
+ * below the content.
492
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
493
+ * level below the content.
494
+ * - `descendants.folder` returns folders that are descendants at any level below
495
+ * the content.
496
+ * - `descendants.attachment` returns all attachments for the content, same as
497
+ * `children.attachment`.
498
+ * - `descendants.comment` returns all comments on the content, same as
499
+ * `children.comment`.
500
+ * - `space` returns the space that the content is in. This is the same as the
501
+ * information returned by
502
+ * [Get space](#api-space-spaceKey-get).
503
+ *
504
+ * In addition, the following comment-specific expansions can be used:
505
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
506
+ * - `extensions.resolution` returns the resolution status of each comment.
507
+ */
508
+ expand?: string[];
509
+ /**
510
+ * If set to `viewed`, the request will trigger a 'viewed' event for the content.
511
+ * When this event is triggered, the page/blogpost will appear on the 'Recently
512
+ * visited'
513
+ * tab of the user's Confluence dashboard.
514
+ */
515
+ trigger?: "viewed";
516
+ }): Promise<Content | null>;
517
+ /**
518
+ * Deprecated, use [Confluence's v2
519
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
520
+ *
521
+ * Returns the most recent update for a piece of content.
522
+ *
523
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
524
+ * Permission to view the content.
525
+ *
526
+ * @deprecated
527
+ * @returns Returned if the requested content history is returned.
528
+ * @path {GET} /wiki/rest/api/content/{id}/history
529
+ * @scopes-current read:confluence-content.summary
530
+ * @scopes-beta read:content.metadata:confluence, read:user:confluence
531
+ */
532
+ getHistoryForContent({ id, expand, }: {
533
+ /** The ID of the content to be queried for its history. */
534
+ id: string;
535
+ /**
536
+ * A multi-value parameter indicating which properties of the content history to
537
+ * expand.
538
+ * Maximum sub-expansions allowed is `8`.
539
+ *
540
+ * - `lastUpdated` returns information about the most recent update of the content,
541
+ * including who updated it and when it was updated.
542
+ * - `previousVersion` returns information about the update prior to the current
543
+ * content
544
+ * update. For this method, it contains the same information as `lastUpdated`.
545
+ * - `contributors` returns all of the users who have contributed to the content.
546
+ * - `nextVersion` This parameter is not used for this method.
547
+ */
548
+ expand?: ("lastUpdated" | "previousVersion" | "contributors" | "nextVersion")[];
549
+ }): Promise<ContentHistory | null>;
550
+ /**
551
+ * Publishes a legacy draft of a page created from a blueprint. Legacy drafts
552
+ * will eventually be removed in favor of shared drafts. For now, this method
553
+ * works the same as [Publish shared
554
+ * draft](#api-content-blueprint-instance-draftId-put).
555
+ *
556
+ * By default, the following objects are expanded: `body.storage`, `history`,
557
+ * `space`, `version`, `ancestors`.
558
+ *
559
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
560
+ * Permission to view the draft and 'Add' permission for the space that
561
+ * the content will be created in.
562
+ *
563
+ * @returns Returned if the draft was successfully published.
564
+ * @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
565
+ * @scopes-current write:confluence-content
566
+ * @scopes-beta read:content-details:confluence, write:content:confluence
567
+ */
568
+ publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }: {
569
+ /**
570
+ * The ID of the draft page that was created from a blueprint.
571
+ * You can find the `draftId` in the Confluence application by
572
+ * opening the draft page and checking the page URL.
573
+ */
574
+ draftId: string;
575
+ /**
576
+ * The status of the content to be updated, i.e. the draft. This is set
577
+ * to 'draft' by default, so you shouldn't need to specify it.
578
+ */
579
+ status?: string;
580
+ /**
581
+ * A multi-value parameter indicating which properties of the content to expand.
582
+ *
583
+ * - `childTypes.all` returns whether the content has attachments, comments, or
584
+ * child pages/whiteboards.
585
+ * Use this if you only need to check whether the content has children of a
586
+ * particular type.
587
+ * - `childTypes.attachment` returns whether the content has attachments.
588
+ * - `childTypes.comment` returns whether the content has comments.
589
+ * - `childTypes.page` returns whether the content has child pages.
590
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
591
+ * - `childTypes.database` returns whether the content has child databases.
592
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
593
+ * - `childTypes.folder` returns whether the content has child folders.
594
+ * - `container` returns the space that the content is in. This is the same as the
595
+ * information
596
+ * returned by [Get space](#api-space-spaceKey-get).
597
+ * - `metadata.currentuser` returns information about the current user in relation
598
+ * to the content,
599
+ * including when they last viewed it, modified it, contributed to it, or added it
600
+ * as a favorite.
601
+ * - `metadata.properties` returns content properties that have been set via the
602
+ * Confluence REST API.
603
+ * - `metadata.labels` returns the labels that have been added to the content.
604
+ * - `metadata.frontend` this property is only used by Atlassian.
605
+ * - `operations` returns the operations for the content, which are used when
606
+ * setting permissions.
607
+ * - `children.page` returns pages that are descendants at the level immediately
608
+ * below the content.
609
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
610
+ * immediately below the content.
611
+ * - `children.database` returns databases that are descendants at the level
612
+ * immediately below the content.
613
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
614
+ * level immediately below the content.
615
+ * - `children.folder` returns folders that are descendants at the level
616
+ * immediately below the content.
617
+ * - `children.attachment` returns all attachments for the content.
618
+ * - `children.comment` returns all comments on the content.
619
+ * - `restrictions.read.restrictions.user` returns the users that have permission
620
+ * to read the content.
621
+ * - `restrictions.read.restrictions.group` returns the groups that have
622
+ * permission to read the content. Note that
623
+ * this may return deleted groups, because deleting a group doesn't remove
624
+ * associated restrictions.
625
+ * - `restrictions.update.restrictions.user` returns the users that have
626
+ * permission to update the content.
627
+ * - `restrictions.update.restrictions.group` returns the groups that have
628
+ * permission to update the content. Note that
629
+ * this may return deleted groups because deleting a group doesn't remove
630
+ * associated restrictions.
631
+ * - `history` returns the history of the content, including the date it was
632
+ * created.
633
+ * - `history.lastUpdated` returns information about the most recent update of the
634
+ * content, including
635
+ * who updated it and when it was updated.
636
+ * - `history.previousVersion` returns information about the update prior to the
637
+ * current content update.
638
+ * - `history.contributors` returns all of the users who have contributed to the
639
+ * content.
640
+ * - `history.nextVersion` returns information about the update after to the
641
+ * current content update.
642
+ * - `ancestors` returns the parent content, if the content is a page or
643
+ * whiteboard.
644
+ * - `body` returns the body of the content in different formats, including the
645
+ * editor format,
646
+ * view format, and export format.
647
+ * - `body.storage` returns the body of content in storage format.
648
+ * - `body.view` returns the body of content in view format.
649
+ * - `version` returns information about the most recent update of the content,
650
+ * including who updated it
651
+ * and when it was updated.
652
+ * - `descendants.page` returns pages that are descendants at any level below the
653
+ * content.
654
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
655
+ * level below the content.
656
+ * - `descendants.database` returns databases that are descendants at any level
657
+ * below the content.
658
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
659
+ * level below the content.
660
+ * - `descendants.folder` returns folders that are descendants at any level below
661
+ * the content.
662
+ * - `descendants.attachment` returns all attachments for the content, same as
663
+ * `children.attachment`.
664
+ * - `descendants.comment` returns all comments on the content, same as
665
+ * `children.comment`.
666
+ * - `space` returns the space that the content is in. This is the same as the
667
+ * information returned by
668
+ * [Get space](#api-space-spaceKey-get).
669
+ *
670
+ * In addition, the following comment-specific expansions can be used:
671
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
672
+ * - `extensions.resolution` returns the resolution status of each comment.
673
+ */
674
+ expand?: string[];
675
+ contentBlueprintDraft: ContentBlueprintDraft;
676
+ }): Promise<Content | null>;
677
+ /**
678
+ * Publishes a shared draft of a page created from a blueprint.
679
+ *
680
+ * By default, the following objects are expanded: `body.storage`, `history`,
681
+ * `space`, `version`, `ancestors`.
682
+ *
683
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
684
+ * Permission to view the draft and 'Add' permission for the space that
685
+ * the content will be created in.
686
+ *
687
+ * @returns Returned if the draft was successfully published.
688
+ * @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
689
+ * @scopes-current write:confluence-content
690
+ * @scopes-beta read:content-details:confluence, write:content:confluence
691
+ */
692
+ publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }: {
693
+ /**
694
+ * The ID of the draft page that was created from a blueprint.
695
+ * You can find the `draftId` in the Confluence application by
696
+ * opening the draft page and checking the page URL.
697
+ */
698
+ draftId: string;
699
+ /**
700
+ * The status of the content to be updated, i.e. the draft. This is set
701
+ * to 'draft' by default, so you shouldn't need to specify it.
702
+ */
703
+ status?: string;
704
+ /**
705
+ * A multi-value parameter indicating which properties of the content to expand.
706
+ *
707
+ * - `childTypes.all` returns whether the content has attachments, comments, or
708
+ * child pages/whiteboards.
709
+ * Use this if you only need to check whether the content has children of a
710
+ * particular type.
711
+ * - `childTypes.attachment` returns whether the content has attachments.
712
+ * - `childTypes.comment` returns whether the content has comments.
713
+ * - `childTypes.page` returns whether the content has child pages.
714
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
715
+ * - `childTypes.database` returns whether the content has child databases.
716
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
717
+ * - `childTypes.folder` returns whether the content has child folders.
718
+ * - `container` returns the space that the content is in. This is the same as the
719
+ * information
720
+ * returned by [Get space](#api-space-spaceKey-get).
721
+ * - `metadata.currentuser` returns information about the current user in relation
722
+ * to the content,
723
+ * including when they last viewed it, modified it, contributed to it, or added it
724
+ * as a favorite.
725
+ * - `metadata.properties` returns content properties that have been set via the
726
+ * Confluence REST API.
727
+ * - `metadata.labels` returns the labels that have been added to the content.
728
+ * - `metadata.frontend` this property is only used by Atlassian.
729
+ * - `operations` returns the operations for the content, which are used when
730
+ * setting permissions.
731
+ * - `children.page` returns pages that are descendants at the level immediately
732
+ * below the content.
733
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
734
+ * immediately below the content.
735
+ * - `children.database` returns databases that are descendants at the level
736
+ * immediately below the content.
737
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
738
+ * level immediately below the content.
739
+ * - `children.folder` returns folders that are descendants at the level
740
+ * immediately below the content.
741
+ * - `children.attachment` returns all attachments for the content.
742
+ * - `children.comment` returns all comments on the content.
743
+ * - `restrictions.read.restrictions.user` returns the users that have permission
744
+ * to read the content.
745
+ * - `restrictions.read.restrictions.group` returns the groups that have
746
+ * permission to read the content. Note that
747
+ * this may return deleted groups, because deleting a group doesn't remove
748
+ * associated restrictions.
749
+ * - `restrictions.update.restrictions.user` returns the users that have
750
+ * permission to update the content.
751
+ * - `restrictions.update.restrictions.group` returns the groups that have
752
+ * permission to update the content. Note that
753
+ * this may return deleted groups because deleting a group doesn't remove
754
+ * associated restrictions.
755
+ * - `history` returns the history of the content, including the date it was
756
+ * created.
757
+ * - `history.lastUpdated` returns information about the most recent update of the
758
+ * content, including
759
+ * who updated it and when it was updated.
760
+ * - `history.previousVersion` returns information about the update prior to the
761
+ * current content update.
762
+ * - `history.contributors` returns all of the users who have contributed to the
763
+ * content.
764
+ * - `history.nextVersion` returns information about the update after to the
765
+ * current content update.
766
+ * - `ancestors` returns the parent content, if the content is a page or
767
+ * whiteboard.
768
+ * - `body` returns the body of the content in different formats, including the
769
+ * editor format,
770
+ * view format, and export format.
771
+ * - `body.storage` returns the body of content in storage format.
772
+ * - `body.view` returns the body of content in view format.
773
+ * - `version` returns information about the most recent update of the content,
774
+ * including who updated it
775
+ * and when it was updated.
776
+ * - `descendants.page` returns pages that are descendants at any level below the
777
+ * content.
778
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
779
+ * level below the content.
780
+ * - `descendants.database` returns databases that are descendants at any level
781
+ * below the content.
782
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
783
+ * level below the content.
784
+ * - `descendants.folder` returns folders that are descendants at any level below
785
+ * the content.
786
+ * - `descendants.attachment` returns all attachments for the content, same as
787
+ * `children.attachment`.
788
+ * - `descendants.comment` returns all comments on the content, same as
789
+ * `children.comment`.
790
+ * - `space` returns the space that the content is in. This is the same as the
791
+ * information returned by
792
+ * [Get space](#api-space-spaceKey-get).
793
+ *
794
+ * In addition, the following comment-specific expansions can be used:
795
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
796
+ * - `extensions.resolution` returns the resolution status of each comment.
797
+ */
798
+ expand?: string[];
799
+ contentBlueprintDraft: ContentBlueprintDraft;
800
+ }): Promise<Content | null>;
801
+ /**
802
+ * Returns the list of content that matches a Confluence Query Language
803
+ * (CQL) query. For information on CQL, see:
804
+ * [Advanced searching using
805
+ * CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
806
+ *
807
+ * Example initial call:
808
+ * ```
809
+ * /wiki/rest/api/content/search?cql=type=page&limit=25
810
+ * ```
811
+ *
812
+ * Example response:
813
+ * ```
814
+ * {
815
+ * "results": [
816
+ * { ... },
817
+ * { ... },
818
+ * ...
819
+ * { ... }
820
+ * ],
821
+ * "limit": 25,
822
+ * "size": 25,
823
+ * ...
824
+ * "_links": {
825
+ * "base": "<url>",
826
+ * "context": "<url>",
827
+ * "next":
828
+ * "/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg",
829
+ * "self": "<url>"
830
+ * }
831
+ * }
832
+ * ```
833
+ *
834
+ * When additional results are available, returns `next` and `prev` URLs to
835
+ * retrieve them in subsequent calls. The URLs each contain a cursor that points
836
+ * to the appropriate set of results. Use `limit` to specify the number of results
837
+ * returned in each call.
838
+ * Example subsequent call (taken from example response):
839
+ * ```
840
+ * /wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
841
+ * ```
842
+ * The response to this will have a `prev` URL similar to the `next` in the
843
+ * example response.
844
+ *
845
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
846
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
847
+ * parameter will be restricted to a maximum value of 25.
848
+ *
849
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
850
+ * Permission to access the Confluence site ('Can use' global permission).
851
+ * Only content that the user has permission to view will be returned.
852
+ *
853
+ * @returns Returned if the requested list of content is returned.
854
+ * @path {GET} /wiki/rest/api/content/search
855
+ * @scopes-current search:confluence
856
+ * @scopes-beta read:content-details:confluence
857
+ */
858
+ searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }: {
859
+ /** The CQL string that is used to find the requested content. */
860
+ cql: string;
861
+ /**
862
+ * The space, content, and content status to execute the search against.
863
+ * Specify this as an object with the following properties:
864
+ *
865
+ * - `spaceKey` Key of the space to search against. Optional.
866
+ * - `contentId` ID of the content to search against. Optional. Must
867
+ * be in the space spacified by `spaceKey`.
868
+ * - `contentStatuses` Content statuses to search against. Optional.
869
+ */
870
+ cqlcontext?: string;
871
+ /**
872
+ * A multi-value parameter indicating which properties of the content to expand.
873
+ *
874
+ * - `childTypes.all` returns whether the content has attachments, comments, or
875
+ * child pages/whiteboards.
876
+ * Use this if you only need to check whether the content has children of a
877
+ * particular type.
878
+ * - `childTypes.attachment` returns whether the content has attachments.
879
+ * - `childTypes.comment` returns whether the content has comments.
880
+ * - `childTypes.page` returns whether the content has child pages.
881
+ * - `childTypes.whiteboard` returns whether the content has child whiteboards.
882
+ * - `childTypes.database` returns whether the content has child databases.
883
+ * - `childTypes.embed` returns whether the content has child embeds (smartlinks).
884
+ * - `childTypes.folder` returns whether the content has child folders.
885
+ * - `container` returns the space that the content is in. This is the same as the
886
+ * information
887
+ * returned by [Get space](#api-space-spaceKey-get).
888
+ * - `metadata.currentuser` returns information about the current user in relation
889
+ * to the content,
890
+ * including when they last viewed it, modified it, contributed to it, or added it
891
+ * as a favorite.
892
+ * - `metadata.properties` returns content properties that have been set via the
893
+ * Confluence REST API.
894
+ * - `metadata.labels` returns the labels that have been added to the content.
895
+ * - `metadata.frontend` this property is only used by Atlassian.
896
+ * - `operations` returns the operations for the content, which are used when
897
+ * setting permissions.
898
+ * - `children.page` returns pages that are descendants at the level immediately
899
+ * below the content.
900
+ * - `children.whiteboard` returns whiteboards that are descendants at the level
901
+ * immediately below the content.
902
+ * - `children.database` returns databases that are descendants at the level
903
+ * immediately below the content.
904
+ * - `children.embed` returns embeds (smartlinks) that are descendants at the
905
+ * level immediately below the content.
906
+ * - `children.folder` returns folders that are descendants at the level
907
+ * immediately below the content.
908
+ * - `children.attachment` returns all attachments for the content.
909
+ * - `children.comment` returns all comments on the content.
910
+ * - `restrictions.read.restrictions.user` returns the users that have permission
911
+ * to read the content.
912
+ * - `restrictions.read.restrictions.group` returns the groups that have
913
+ * permission to read the content. Note that
914
+ * this may return deleted groups, because deleting a group doesn't remove
915
+ * associated restrictions.
916
+ * - `restrictions.update.restrictions.user` returns the users that have
917
+ * permission to update the content.
918
+ * - `restrictions.update.restrictions.group` returns the groups that have
919
+ * permission to update the content. Note that
920
+ * this may return deleted groups because deleting a group doesn't remove
921
+ * associated restrictions.
922
+ * - `history` returns the history of the content, including the date it was
923
+ * created.
924
+ * - `history.lastUpdated` returns information about the most recent update of the
925
+ * content, including
926
+ * who updated it and when it was updated.
927
+ * - `history.previousVersion` returns information about the update prior to the
928
+ * current content update.
929
+ * - `history.contributors` returns all of the users who have contributed to the
930
+ * content.
931
+ * - `history.nextVersion` returns information about the update after to the
932
+ * current content update.
933
+ * - `ancestors` returns the parent content, if the content is a page or
934
+ * whiteboard.
935
+ * - `body` returns the body of the content in different formats, including the
936
+ * editor format,
937
+ * view format, and export format.
938
+ * - `body.storage` returns the body of content in storage format.
939
+ * - `body.view` returns the body of content in view format.
940
+ * - `version` returns information about the most recent update of the content,
941
+ * including who updated it
942
+ * and when it was updated.
943
+ * - `descendants.page` returns pages that are descendants at any level below the
944
+ * content.
945
+ * - `descendants.whiteboard` returns whiteboards that are descendants at any
946
+ * level below the content.
947
+ * - `descendants.database` returns databases that are descendants at any level
948
+ * below the content.
949
+ * - `descendants.embed` returns embeds (smartlinks) that are descendants at any
950
+ * level below the content.
951
+ * - `descendants.folder` returns folders that are descendants at any level below
952
+ * the content.
953
+ * - `descendants.attachment` returns all attachments for the content, same as
954
+ * `children.attachment`.
955
+ * - `descendants.comment` returns all comments on the content, same as
956
+ * `children.comment`.
957
+ * - `space` returns the space that the content is in. This is the same as the
958
+ * information returned by
959
+ * [Get space](#api-space-spaceKey-get).
960
+ *
961
+ * In addition, the following comment-specific expansions can be used:
962
+ * - `extensions.inlineProperties` returns inline comment-specific properties.
963
+ * - `extensions.resolution` returns the resolution status of each comment.
964
+ */
965
+ expand?: string[];
966
+ /**
967
+ * Pointer to a set of search results, returned as part of the `next` or `prev`
968
+ * URL from the previous search call.
969
+ */
970
+ cursor?: string;
971
+ /**
972
+ * The maximum number of content objects to return per page.
973
+ * Note, this may be restricted by fixed system limits.
974
+ */
975
+ limit?: number;
976
+ }): Promise<ContentArray>;
977
+ /**
978
+ * Deprecated, use [Confluence's v2
979
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
980
+ *
981
+ * Updates a piece of content. Use this method to update the title or body
982
+ * of a piece of content, change the status, change the parent page, and more.
983
+ *
984
+ * Note, updating draft content is currently not supported.
985
+ *
986
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
987
+ * Permission to update the content.
988
+ *
989
+ * @deprecated
990
+ * @returns Returned if the content is updated.
991
+ * @path {PUT} /wiki/rest/api/content/{id}
992
+ * @scopes-current write:confluence-content
993
+ * @scopes-beta read:content-details:confluence, write:content:confluence
994
+ */
995
+ updateContent({ id, status, conflictPolicy, contentUpdate, }: {
996
+ /** The ID of the content to be updated. */
997
+ id: string;
998
+ /**
999
+ * The updated status of the content. Use this parameter to change the
1000
+ * status of a piece of content without passing the entire request body.
1001
+ */
1002
+ status?: "current" | "trashed" | "deleted" | "historical" | "draft";
1003
+ /**
1004
+ * The action that should be taken when conflicts are discovered.
1005
+ * Only used when publishing a draft page.
1006
+ */
1007
+ conflictPolicy?: "abort";
1008
+ /** The updated content. */
1009
+ contentUpdate: ContentUpdate;
1010
+ }): Promise<Content | null>;
1011
+ static initialize(): void;
1012
+ }