@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,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentCommentsService = 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
+ /** @deprecated */
13
+ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
14
+ /**
15
+ * Deprecated, use [Confluence's v2
16
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
17
+ *
18
+ * Returns the comments on a piece of content.
19
+ *
20
+ * Starting on Dec 10, 2024, if the expand query parameter is used with the
21
+ * `body.export_view` and/or `body.styled_view` properties, then the query limit
22
+ * parameter will be restricted to a maximum value of 25.
23
+ *
24
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
25
+ * permission for the space,
26
+ * and permission to view the content if it is a page.
27
+ *
28
+ * @deprecated
29
+ * @returns Returned if the requested comments are returned.
30
+ * @path {GET} /wiki/rest/api/content/{id}/child/comment
31
+ * @scopes-current read:confluence-content.summary
32
+ * @scopes-beta read:content-details:confluence
33
+ */
34
+ getContentComments({ id, expand, parentVersion, start, limit, location, depth, }) {
35
+ return this.getClientInstance()
36
+ .request({
37
+ path: "/wiki/rest/api/content/{id}/child/comment",
38
+ method: "GET",
39
+ pathParams: {
40
+ id,
41
+ },
42
+ query: {
43
+ expand,
44
+ parentVersion,
45
+ start,
46
+ limit,
47
+ location,
48
+ depth,
49
+ },
50
+ })
51
+ .then(this.getClientInstance().responseHandler({
52
+ 200: {
53
+ "application/json": "json",
54
+ },
55
+ }))
56
+ .then(commonHttpClient.castResponse())
57
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentCommentsService.getContentComments.response"))
58
+ .then(commonHttpClient.getBody);
59
+ }
60
+ static initialize() {
61
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentCommentsService.getContentComments.response", zod_1.z
62
+ .object({
63
+ status: zod_1.z.literal(200),
64
+ mediaType: zod_1.z.literal("application/json"),
65
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray"),
66
+ })
67
+ .describe("ContentCommentsService.getContentComments.response"));
68
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
69
+ }
70
+ }
71
+ exports.ContentCommentsService = ContentCommentsService;
72
+ //# sourceMappingURL=ContentCommentsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,wEAAqE;AACrE,kBAAkB;AAClB,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,CAAC,EACjB,EAAE,EACF,MAAM,EACN,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,GAyHN;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,2CAA2C;YACjD,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,MAAM;gBACN,aAAa;gBACb,KAAK;gBACL,KAAK;gBACL,QAAQ;gBACR,KAAK;aACN;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,oDAAoD,CACrD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,oDAAoD,EACpD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC;SACnD,CAAC;aACD,QAAQ,CAAC,oDAAoD,CAAC,CAClE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAxMD,wDAwMC"}
@@ -0,0 +1,122 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type LabelArray, type LabelCreate } from "../models/common";
3
+ import type { LabelCreateArray } from "../models/contentLabels";
4
+ export declare class ContentLabelsService extends CommonHttpService {
5
+ /**
6
+ * Adds labels to a piece of content. Does not modify the existing labels.
7
+ *
8
+ * Notes:
9
+ *
10
+ * - Labels can also be added when creating content ([Create
11
+ * content](#api-content-post)).
12
+ * - Labels can be updated when updating content ([Update
13
+ * content](#api-content-id-put)).
14
+ * This will delete the existing labels and replace them with the labels in
15
+ * the request.
16
+ *
17
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
+ * Permission to update the content.
19
+ *
20
+ * @returns Returned if the labels are added to the content.
21
+ * @path {POST} /wiki/rest/api/content/{id}/label
22
+ * @scopes-current write:confluence-content
23
+ * @scopes-beta read:label:confluence, write:label:confluence
24
+ */
25
+ addLabelsToContent({ id, requestBody, }: {
26
+ /** The ID of the content that will have labels added to it. */
27
+ id: string;
28
+ /** The labels to add to the content. */
29
+ requestBody: LabelCreateArray | LabelCreate;
30
+ }): Promise<LabelArray>;
31
+ /**
32
+ * Deprecated, use [Confluence's v2
33
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
34
+ *
35
+ * Returns the labels on a piece of content.
36
+ *
37
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
38
+ * 'View' permission for the space and permission to view the content if it is a
39
+ * page.
40
+ *
41
+ * @deprecated
42
+ * @returns Returned if the requested labels are returned.
43
+ * @path {GET} /wiki/rest/api/content/{id}/label
44
+ * @scopes-current read:confluence-content.summary
45
+ * @scopes-beta read:label:confluence
46
+ */
47
+ getLabelsForContent({ id, prefix, start, limit, }: {
48
+ /** The ID of the content to be queried for its labels. */
49
+ id: string;
50
+ /**
51
+ * Filters the results to labels with the specified prefix. If this parameter
52
+ * is not specified, then labels with any prefix will be returned.
53
+ *
54
+ * - `global` prefix is used by default when a user adds a label
55
+ * via the UI.
56
+ * - `my` prefix can be explicitly added by a user when adding a label
57
+ * via the UI, e.g. 'my:example-label'. Also, when a page is selected as
58
+ * a favourite, the 'my:favourite' label is automatically added.
59
+ * - `team` can used when adding labels via [Add labels to
60
+ * content](#api-content-id-label-post)
61
+ * but is not used in the UI.
62
+ */
63
+ prefix?: "global" | "my" | "team";
64
+ /** The starting index of the returned labels. */
65
+ start?: number;
66
+ /**
67
+ * The maximum number of labels to return per page. Note,
68
+ * this may be restricted by fixed system limits.
69
+ */
70
+ limit?: number;
71
+ }): Promise<LabelArray>;
72
+ /**
73
+ * Removes a label from a piece of content. Labels can't be deleted from archived
74
+ * content.
75
+ * This is similar to [Remove label from content using query
76
+ * parameter](#api-content-id-label-delete)
77
+ * except that the label name is specified via a path parameter.
78
+ *
79
+ * Use this method if the label name does not have "/" characters, as the path
80
+ * parameter does not accept "/" characters for security reasons. Otherwise,
81
+ * use [Remove label from content using query
82
+ * parameter](#api-content-id-label-delete).
83
+ *
84
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
85
+ * Permission to update the content.
86
+ *
87
+ * @path {DELETE} /wiki/rest/api/content/{id}/label/{label}
88
+ * @scopes-current write:confluence-content
89
+ * @scopes-beta write:label:confluence
90
+ */
91
+ removeLabelFromContent({ id, label, }: {
92
+ /** The ID of the content that the label will be removed from. */
93
+ id: string;
94
+ /** The name of the label to be removed. */
95
+ label: string;
96
+ }): Promise<void>;
97
+ /**
98
+ * Removes a label from a piece of content. Labels can't be deleted from archived
99
+ * content.
100
+ * This is similar to [Remove label from
101
+ * content](#api-content-id-label-label-delete)
102
+ * except that the label name is specified via a query parameter.
103
+ *
104
+ * Use this method if the label name has "/" characters, as
105
+ * [Remove label from content using query parameter](#api-content-id-label-delete)
106
+ * does not accept "/" characters for the label name.
107
+ *
108
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
109
+ * Permission to update the content.
110
+ *
111
+ * @path {DELETE} /wiki/rest/api/content/{id}/label
112
+ * @scopes-current write:confluence-content
113
+ * @scopes-beta write:label:confluence
114
+ */
115
+ removeLabelFromContentUsingQueryParameter({ id, name, }: {
116
+ /** The ID of the content that the label will be removed from. */
117
+ id: string;
118
+ /** The name of the label to be removed. */
119
+ name: string;
120
+ }): Promise<void>;
121
+ static initialize(): void;
122
+ }
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentLabelsService = 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 ContentLabelsService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Adds labels to a piece of content. Does not modify the existing labels.
15
+ *
16
+ * Notes:
17
+ *
18
+ * - Labels can also be added when creating content ([Create
19
+ * content](#api-content-post)).
20
+ * - Labels can be updated when updating content ([Update
21
+ * content](#api-content-id-put)).
22
+ * This will delete the existing labels and replace them with the labels in
23
+ * the request.
24
+ *
25
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
26
+ * Permission to update the content.
27
+ *
28
+ * @returns Returned if the labels are added to the content.
29
+ * @path {POST} /wiki/rest/api/content/{id}/label
30
+ * @scopes-current write:confluence-content
31
+ * @scopes-beta read:label:confluence, write:label:confluence
32
+ */
33
+ addLabelsToContent({ id, requestBody, }) {
34
+ return this.getClientInstance()
35
+ .request({
36
+ path: "/wiki/rest/api/content/{id}/label",
37
+ method: "POST",
38
+ pathParams: {
39
+ id,
40
+ },
41
+ headers: {
42
+ "Content-Type": "application/json",
43
+ },
44
+ body: requestBody,
45
+ })
46
+ .then(this.getClientInstance().responseHandler({
47
+ 200: {
48
+ "application/json": "json",
49
+ },
50
+ }))
51
+ .then(commonHttpClient.castResponse())
52
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.addLabelsToContent.response"))
53
+ .then(commonHttpClient.getBody);
54
+ }
55
+ /**
56
+ * Deprecated, use [Confluence's v2
57
+ * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
58
+ *
59
+ * Returns the labels on a piece of content.
60
+ *
61
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
62
+ * 'View' permission for the space and permission to view the content if it is a
63
+ * page.
64
+ *
65
+ * @deprecated
66
+ * @returns Returned if the requested labels are returned.
67
+ * @path {GET} /wiki/rest/api/content/{id}/label
68
+ * @scopes-current read:confluence-content.summary
69
+ * @scopes-beta read:label:confluence
70
+ */
71
+ getLabelsForContent({ id, prefix, start, limit, }) {
72
+ return this.getClientInstance()
73
+ .request({
74
+ path: "/wiki/rest/api/content/{id}/label",
75
+ method: "GET",
76
+ pathParams: {
77
+ id,
78
+ },
79
+ query: {
80
+ prefix,
81
+ start,
82
+ limit,
83
+ },
84
+ })
85
+ .then(this.getClientInstance().responseHandler({
86
+ 200: {
87
+ "application/json": "json",
88
+ },
89
+ }))
90
+ .then(commonHttpClient.castResponse())
91
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.getLabelsForContent.response"))
92
+ .then(commonHttpClient.getBody);
93
+ }
94
+ /**
95
+ * Removes a label from a piece of content. Labels can't be deleted from archived
96
+ * content.
97
+ * This is similar to [Remove label from content using query
98
+ * parameter](#api-content-id-label-delete)
99
+ * except that the label name is specified via a path parameter.
100
+ *
101
+ * Use this method if the label name does not have "/" characters, as the path
102
+ * parameter does not accept "/" characters for security reasons. Otherwise,
103
+ * use [Remove label from content using query
104
+ * parameter](#api-content-id-label-delete).
105
+ *
106
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
107
+ * Permission to update the content.
108
+ *
109
+ * @path {DELETE} /wiki/rest/api/content/{id}/label/{label}
110
+ * @scopes-current write:confluence-content
111
+ * @scopes-beta write:label:confluence
112
+ */
113
+ removeLabelFromContent({ id, label, }) {
114
+ return this.getClientInstance()
115
+ .request({
116
+ path: "/wiki/rest/api/content/{id}/label/{label}",
117
+ method: "DELETE",
118
+ pathParams: {
119
+ id,
120
+ label,
121
+ },
122
+ })
123
+ .then(commonHttpClient.discardResult);
124
+ }
125
+ /**
126
+ * Removes a label from a piece of content. Labels can't be deleted from archived
127
+ * content.
128
+ * This is similar to [Remove label from
129
+ * content](#api-content-id-label-label-delete)
130
+ * except that the label name is specified via a query parameter.
131
+ *
132
+ * Use this method if the label name has "/" characters, as
133
+ * [Remove label from content using query parameter](#api-content-id-label-delete)
134
+ * does not accept "/" characters for the label name.
135
+ *
136
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
137
+ * Permission to update the content.
138
+ *
139
+ * @path {DELETE} /wiki/rest/api/content/{id}/label
140
+ * @scopes-current write:confluence-content
141
+ * @scopes-beta write:label:confluence
142
+ */
143
+ removeLabelFromContentUsingQueryParameter({ id, name, }) {
144
+ return this.getClientInstance()
145
+ .request({
146
+ path: "/wiki/rest/api/content/{id}/label",
147
+ method: "DELETE",
148
+ pathParams: {
149
+ id,
150
+ },
151
+ query: {
152
+ name,
153
+ },
154
+ })
155
+ .then(commonHttpClient.discardResult);
156
+ }
157
+ static initialize() {
158
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.getLabelsForContent.response", zod_1.z
159
+ .object({
160
+ status: zod_1.z.literal(200),
161
+ mediaType: zod_1.z.literal("application/json"),
162
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
163
+ })
164
+ .describe("ContentLabelsService.getLabelsForContent.response"));
165
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.addLabelsToContent.response", zod_1.z
166
+ .object({
167
+ status: zod_1.z.literal(200),
168
+ mediaType: zod_1.z.literal("application/json"),
169
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("LabelArray"),
170
+ })
171
+ .describe("ContentLabelsService.addLabelsToContent.response"));
172
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
173
+ }
174
+ }
175
+ exports.ContentLabelsService = ContentLabelsService;
176
+ //# sourceMappingURL=ContentLabelsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentLabelsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentLabelsService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,268 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type AsyncId, type ContentBody } from "../models/common";
3
+ import { type MacroInstance } from "../models/contentMacroBody";
4
+ export declare class ContentMacroBodyService extends CommonHttpService {
5
+ /**
6
+ * Returns Async Id of the conversion task which will convert the macro into a
7
+ * content body of the desired format.
8
+ * The result will be available for 5 minutes after completion of the conversion.
9
+ *
10
+ * About the macro ID: When a macro is created in a new version of content,
11
+ * Confluence will generate a random ID for it, unless an ID is specified
12
+ * (by an app). The macro ID will look similar to this:
13
+ * '884bd9-0cb8-41d5-98be-f80943c14f96'.
14
+ * The ID is then persisted as new versions of content are created, and is
15
+ * only modified by Confluence if there are conflicting IDs.
16
+ *
17
+ * Note, to preserve backwards compatibility this resource will also match on
18
+ * the hash of the macro body, even if a macro ID is found. This check will
19
+ * eventually become redundant, as macro IDs are generated for pages and
20
+ * transparently propagate out to all instances.
21
+ *
22
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
23
+ * Permission to view the content that the macro is in.
24
+ *
25
+ * @returns Returned if the requested macro conversion request is created.
26
+ * @path {GET}
27
+ * /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/async/{to}
28
+ * @scopes-current read:confluence-content.all
29
+ * @scopes-beta read:content.metadata:confluence
30
+ */
31
+ getAndAsyncConvertMacroBodyByMacroId({ id, version, macroId, to, expand, allowCache, spaceKeyContext, embeddedContentRender, }: {
32
+ /** The ID for the content that contains the macro. */
33
+ id: string;
34
+ /**
35
+ * The version of the content that contains the macro. Specifying `0` as the
36
+ * `version` will return
37
+ * the macro body for the latest content version.
38
+ */
39
+ version: number;
40
+ /**
41
+ * The ID of the macro. For apps, this is passed to the macro by the Connect/Forge
42
+ * framework.
43
+ * Otherwise, find the macro ID by querying the desired
44
+ * content and version, then expanding the body in storage format.
45
+ * For example, '/content/196611/version/7?expand=content.body.storage'.
46
+ */
47
+ macroId: string;
48
+ /**
49
+ * The content representation to return the macro in.
50
+ * Currently, the following conversions are allowed:
51
+ *
52
+ * - `export_view`
53
+ * - `styled_view`
54
+ * - `view`
55
+ */
56
+ to: "export_view" | "view" | "styled_view";
57
+ /**
58
+ * A multi-value parameter indicating which properties of the content to expand
59
+ * and populate. Expands are dependent on the
60
+ * `to` conversion format and may be irrelevant for certain conversions (e.g.
61
+ * `macroRenderedOutput` is redundant when
62
+ * converting to `view` format).
63
+ *
64
+ * If rendering to `view` format, and the body content being converted includes
65
+ * arbitrary nested content (such as macros); then it is
66
+ * necessary to include webresource expands in the request. Webresources for
67
+ * content body are the batched JS and CSS dependencies for
68
+ * any nested dynamic content (i.e. macros).
69
+ *
70
+ * - `embeddedContent` returns metadata for nested content (e.g. page included
71
+ * using page include macro)
72
+ * - `mediaToken` returns JWT token for retrieving attachment data from Media API
73
+ * - `macroRenderedOutput` additionally converts body to view format
74
+ * - `webresource.superbatch.uris.js` returns all common JS dependencies as static
75
+ * URLs
76
+ * - `webresource.superbatch.uris.css` returns all common CSS dependencies as
77
+ * static URLs
78
+ * - `webresource.superbatch.uris.all` returns all common dependencies as static
79
+ * URLs
80
+ * - `webresource.superbatch.tags.all` returns all common JS dependencies as html
81
+ * `<script>` tags
82
+ * - `webresource.superbatch.tags.css` returns all common CSS dependencies as html
83
+ * `<style>` tags
84
+ * - `webresource.superbatch.tags.js` returns all common dependencies as html
85
+ * `<script>` and `<style>` tags
86
+ * - `webresource.uris.js` returns JS dependencies specific to conversion
87
+ * - `webresource.uris.css` returns CSS dependencies specific to conversion
88
+ * - `webresource.uris.all` returns all dependencies specific to conversion
89
+ * - `webresource.tags.all` returns common JS dependencies as html `<script>` tags
90
+ * - `webresource.tags.css` returns common CSS dependencies as html `<style>` tags
91
+ * - `webresource.tags.js` returns common dependencies as html `<script>` and
92
+ * `<style>` tags
93
+ */
94
+ expand?: string[];
95
+ /**
96
+ * If this field is false, the cache will erase its current value and begin a
97
+ * conversion.
98
+ * If this field is true, the cache will not erase its current value, and will set
99
+ * the status of the
100
+ * result in cache to RERUNNING. Once the data is updated, the status will change
101
+ * to COMPLETED.
102
+ * Large macros that take long to convert, and who want to show intermediate, but
103
+ * potentially stale data, immediately should set this field to true.
104
+ * Cache values are stored per macro per user per content and expansions.
105
+ */
106
+ allowCache?: boolean;
107
+ /**
108
+ * The space key used for resolving embedded content (page includes,
109
+ * files, and links) in the content body. For example, if the source content
110
+ * contains the link `<ac:link><ri:page ri:content-title="Example page"
111
+ * /><ac:link>`
112
+ * and the `spaceKeyContext=TEST` parameter is provided, then the link
113
+ * will be converted to a link to the "Example page" page in the "TEST" space.
114
+ */
115
+ spaceKeyContext?: string;
116
+ /**
117
+ * Mode used for rendering embedded content, like attachments.
118
+ *
119
+ * - `current` renders the embedded content using the latest version.
120
+ * - `version-at-save` renders the embedded content using the version at
121
+ * the time of save.
122
+ */
123
+ embeddedContentRender?: "current" | "version-at-save";
124
+ }): Promise<AsyncId>;
125
+ /**
126
+ * Returns the body of a macro in format specified in path, for the given macro ID.
127
+ * This includes information like the name of the macro, the body of the macro,
128
+ * and any macro parameters.
129
+ *
130
+ * About the macro ID: When a macro is created in a new version of content,
131
+ * Confluence will generate a random ID for it, unless an ID is specified
132
+ * (by an app). The macro ID will look similar to this:
133
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'.
134
+ * The ID is then persisted as new versions of content are created, and is
135
+ * only modified by Confluence if there are conflicting IDs.
136
+ *
137
+ * Note, to preserve backwards compatibility this resource will also match on
138
+ * the hash of the macro body, even if a macro ID is found. This check will
139
+ * eventually become redundant, as macro IDs are generated for pages and
140
+ * transparently propagate out to all instances.
141
+ *
142
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
143
+ * Permission to view the content that the macro is in.
144
+ *
145
+ * @returns Returned if the requested content body is returned.
146
+ * @path {GET}
147
+ * /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}/convert/{to}
148
+ * @scopes-current read:confluence-content.all
149
+ * @scopes-beta read:content.metadata:confluence
150
+ */
151
+ getAndConvertMacroBodyByMacroId({ id, version, macroId, to, expand, spaceKeyContext, embeddedContentRender, }: {
152
+ /** The ID for the content that contains the macro. */
153
+ id: string;
154
+ /**
155
+ * The version of the content that contains the macro. Specifying `0` as the
156
+ * `version` will return
157
+ * the macro body for the latest content version.
158
+ */
159
+ version: number;
160
+ /**
161
+ * The ID of the macro. This is usually passed by the app that the
162
+ * macro is in. Otherwise, find the macro ID by querying the desired
163
+ * content and version, then expanding the body in storage format.
164
+ * For example, '/content/196611/version/7?expand=content.body.storage'.
165
+ */
166
+ macroId: string;
167
+ /** The content representation to return the macro in. */
168
+ to: string;
169
+ /**
170
+ * A multi-value parameter indicating which properties of the content to expand
171
+ * and populate. Expands are dependent on the
172
+ * `to` conversion format and may be irrelevant for certain conversions (e.g.
173
+ * `macroRenderedOutput` is redundant when
174
+ * converting to `view` format).
175
+ *
176
+ * If rendering to `view` format, and the body content being converted includes
177
+ * arbitrary nested content (such as macros); then it is
178
+ * necessary to include webresource expands in the request. Webresources for
179
+ * content body are the batched JS and CSS dependencies for
180
+ * any nested dynamic content (i.e. macros).
181
+ *
182
+ * - `embeddedContent` returns metadata for nested content (e.g. page included
183
+ * using page include macro)
184
+ * - `mediaToken` returns JWT token for retrieving attachment data from Media API
185
+ * - `macroRenderedOutput` additionally converts body to view format
186
+ * - `webresource.superbatch.uris.js` returns all common JS dependencies as static
187
+ * URLs
188
+ * - `webresource.superbatch.uris.css` returns all common CSS dependencies as
189
+ * static URLs
190
+ * - `webresource.superbatch.uris.all` returns all common dependencies as static
191
+ * URLs
192
+ * - `webresource.superbatch.tags.all` returns all common JS dependencies as html
193
+ * `<script>` tags
194
+ * - `webresource.superbatch.tags.css` returns all common CSS dependencies as html
195
+ * `<style>` tags
196
+ * - `webresource.superbatch.tags.js` returns all common dependencies as html
197
+ * `<script>` and `<style>` tags
198
+ * - `webresource.uris.js` returns JS dependencies specific to conversion
199
+ * - `webresource.uris.css` returns CSS dependencies specific to conversion
200
+ * - `webresource.uris.all` returns all dependencies specific to conversion
201
+ * - `webresource.tags.all` returns common JS dependencies as html `<script>` tags
202
+ * - `webresource.tags.css` returns common CSS dependencies as html `<style>` tags
203
+ * - `webresource.tags.js` returns common dependencies as html `<script>` and
204
+ * `<style>` tags
205
+ */
206
+ expand?: string[];
207
+ /**
208
+ * The space key used for resolving embedded content (page includes,
209
+ * files, and links) in the content body. For example, if the source content
210
+ * contains the link `<ac:link><ri:page ri:content-title="Example page"
211
+ * /><ac:link>`
212
+ * and the `spaceKeyContext=TEST` parameter is provided, then the link
213
+ * will be converted to a link to the "Example page" page in the "TEST" space.
214
+ */
215
+ spaceKeyContext?: string;
216
+ /**
217
+ * Mode used for rendering embedded content, like attachments.
218
+ *
219
+ * - `current` renders the embedded content using the latest version.
220
+ * - `version-at-save` renders the embedded content using the version at
221
+ * the time of save.
222
+ */
223
+ embeddedContentRender?: "current" | "version-at-save";
224
+ }): Promise<ContentBody>;
225
+ /**
226
+ * Returns the body of a macro in storage format, for the given macro ID.
227
+ * This includes information like the name of the macro, the body of the macro,
228
+ * and any macro parameters. This method is mainly used by Cloud apps.
229
+ *
230
+ * About the macro ID: When a macro is created in a new version of content,
231
+ * Confluence will generate a random ID for it, unless an ID is specified
232
+ * (by an app). The macro ID will look similar to this:
233
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'.
234
+ * The ID is then persisted as new versions of content are created, and is
235
+ * only modified by Confluence if there are conflicting IDs.
236
+ *
237
+ * Note, to preserve backwards compatibility this resource will also match on
238
+ * the hash of the macro body, even if a macro ID is found. This check will
239
+ * eventually become redundant, as macro IDs are generated for pages and
240
+ * transparently propagate out to all instances.
241
+ *
242
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
243
+ * Permission to view the content that the macro is in.
244
+ *
245
+ * @returns Returned if the requested macro body is returned.
246
+ * @path {GET} /wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}
247
+ * @scopes-current read:confluence-content.all
248
+ * @scopes-beta read:content.metadata:confluence
249
+ */
250
+ getMacroBodyByMacroId({ id, version, macroId, }: {
251
+ /** The ID for the content that contains the macro. */
252
+ id: string;
253
+ /**
254
+ * The version of the content that contains the macro. Specifying `0` as the
255
+ * `version` will return
256
+ * the macro body for the latest content version.
257
+ */
258
+ version: number;
259
+ /**
260
+ * The ID of the macro. This is usually passed by the app that the
261
+ * macro is in. Otherwise, find the macro ID by querying the desired
262
+ * content and version, then expanding the body in storage format.
263
+ * For example, '/content/196611/version/7?expand=content.body.storage'.
264
+ */
265
+ macroId: string;
266
+ }): Promise<MacroInstance>;
267
+ static initialize(): void;
268
+ }