@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,163 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type BlueprintTemplateArray, type ContentTemplate, type ContentTemplateArray, type ContentTemplateCreate, type ContentTemplateUpdate } from "../models/template";
3
+ export declare class TemplateService extends CommonHttpService {
4
+ /**
5
+ * Creates a new content template. Note, blueprint templates cannot be created via
6
+ * the REST API.
7
+ *
8
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
9
+ * 'Admin' permission for the space to create a space template or 'Confluence
10
+ * Administrator'
11
+ * global permission to create a global template.
12
+ *
13
+ * @returns Returned if the template is created.
14
+ * @path {POST} /wiki/rest/api/template
15
+ * @scopes-current write:confluence-content
16
+ * @scopes-beta read:template:confluence, read:content-details:confluence,
17
+ * write:template:confluence
18
+ */
19
+ createContentTemplate({ contentTemplateCreate, }: {
20
+ /**
21
+ * The content template to be created.
22
+ * The content body must be in 'storage' format.
23
+ */
24
+ contentTemplateCreate: ContentTemplateCreate;
25
+ }): Promise<ContentTemplate>;
26
+ /**
27
+ * Returns all templates provided by blueprints. Use this method to retrieve
28
+ * all global blueprint templates or all blueprint templates in a space.
29
+ *
30
+ * Note, all global blueprints are inherited by each space. Space blueprints
31
+ * can be customised without affecting the global blueprints.
32
+ *
33
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
34
+ * 'View' permission for the space to view blueprints for the space and permission
35
+ * to access the Confluence site ('Can use' global permission) to view global
36
+ * blueprints.
37
+ *
38
+ * @returns Returned if the requested templates are returned.
39
+ * @path {GET} /wiki/rest/api/template/blueprint
40
+ * @scopes-current read:confluence-content.summary
41
+ * @scopes-beta read:template:confluence, read:content-details:confluence
42
+ */
43
+ getBlueprintTemplates({ spaceKey, start, limit, expand, }: {
44
+ /**
45
+ * The key of the space to be queried for templates. If the `spaceKey`
46
+ * is not specified, global blueprint templates will be returned.
47
+ */
48
+ spaceKey?: string;
49
+ /** The starting index of the returned templates. */
50
+ start?: number;
51
+ /**
52
+ * The maximum number of templates to return per page.
53
+ * Note, this may be restricted by fixed system limits.
54
+ */
55
+ limit?: number;
56
+ /**
57
+ * A multi-value parameter indicating which properties of the template
58
+ * to expand.
59
+ *
60
+ * - `body` returns the content of the template in storage format.
61
+ */
62
+ expand?: "body"[];
63
+ }): Promise<BlueprintTemplateArray>;
64
+ /**
65
+ * Returns a content template. This includes information about template,
66
+ * like the name, the space or blueprint that the template is in, the body
67
+ * of the template, and more.
68
+ *
69
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
70
+ * 'View' permission for the space to view space templates and permission to
71
+ * access the Confluence site ('Can use' global permission) to view global
72
+ * templates.
73
+ *
74
+ * @returns Returned if the requested template is returned.
75
+ * @path {GET} /wiki/rest/api/template/{contentTemplateId}
76
+ * @scopes-current read:confluence-content.summary
77
+ * @scopes-beta read:template:confluence, read:content-details:confluence
78
+ */
79
+ getContentTemplate({ contentTemplateId, }: {
80
+ /** The ID of the content template to be returned. */
81
+ contentTemplateId: string;
82
+ }): Promise<ContentTemplate>;
83
+ /**
84
+ * Returns all content templates. Use this method to retrieve all global
85
+ * content templates or all content templates in a space.
86
+ *
87
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
88
+ * 'View' permission for the space to view space templates and permission to
89
+ * access the Confluence site ('Can use' global permission) to view global
90
+ * templates.
91
+ *
92
+ * @returns Returned if the requested templates are returned.
93
+ * @path {GET} /wiki/rest/api/template/page
94
+ * @scopes-current read:confluence-content.summary
95
+ * @scopes-beta read:template:confluence, read:content-details:confluence
96
+ */
97
+ getContentTemplates({ spaceKey, start, limit, expand, }: {
98
+ /**
99
+ * The key of the space to be queried for templates. If the `spaceKey`
100
+ * is not specified, global templates will be returned.
101
+ */
102
+ spaceKey?: string;
103
+ /** The starting index of the returned templates. */
104
+ start?: number;
105
+ /**
106
+ * The maximum number of templates to return per page.
107
+ * Note, this may be restricted by fixed system limits.
108
+ */
109
+ limit?: number;
110
+ /**
111
+ * A multi-value parameter indicating which properties of the template
112
+ * to expand.
113
+ *
114
+ * - `body` returns the content of the template in storage format.
115
+ */
116
+ expand?: "body"[];
117
+ }): Promise<ContentTemplateArray>;
118
+ /**
119
+ * Deletes a template. This results in different actions depending on the
120
+ * type of template:
121
+ *
122
+ * - If the template is a content template, it is deleted.
123
+ * - If the template is a modified space-level blueprint template, it reverts
124
+ * to the template inherited from the global-level blueprint template.
125
+ * - If the template is a modified global-level blueprint template, it reverts
126
+ * to the default global-level blueprint template.
127
+ *
128
+ * Note, unmodified blueprint templates cannot be deleted.
129
+ *
130
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
131
+ * 'Admin' permission for the space to delete a space template or
132
+ * 'Confluence Administrator'
133
+ * global permission to delete a global template.
134
+ *
135
+ * @path {DELETE} /wiki/rest/api/template/{contentTemplateId}
136
+ * @scopes-current write:confluence-content
137
+ * @scopes-beta write:template:confluence
138
+ */
139
+ removeTemplate({ contentTemplateId, }: {
140
+ /** The ID of the template to be deleted. */
141
+ contentTemplateId: string;
142
+ }): Promise<void>;
143
+ /**
144
+ * Updates a content template. Note, blueprint templates cannot be updated
145
+ * via the REST API.
146
+ *
147
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
148
+ * 'Admin' permission for the space to update a space template or 'Confluence
149
+ * Administrator'
150
+ * global permission to update a global template.
151
+ *
152
+ * @returns Returned if the template is updated.
153
+ * @path {PUT} /wiki/rest/api/template
154
+ * @scopes-current write:confluence-content
155
+ * @scopes-beta read:template:confluence, read:content-details:confluence,
156
+ * write:template:confluence
157
+ */
158
+ updateContentTemplate({ contentTemplateUpdate, }: {
159
+ /** The updated content template. */
160
+ contentTemplateUpdate: ContentTemplateUpdate;
161
+ }): Promise<ContentTemplate>;
162
+ static initialize(): void;
163
+ }
@@ -0,0 +1,259 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateService = 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 template_1 = require("../models/template");
11
+ const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
+ class TemplateService extends CommonHttpService_1.CommonHttpService {
13
+ /**
14
+ * Creates a new content template. Note, blueprint templates cannot be created via
15
+ * the REST API.
16
+ *
17
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
+ * 'Admin' permission for the space to create a space template or 'Confluence
19
+ * Administrator'
20
+ * global permission to create a global template.
21
+ *
22
+ * @returns Returned if the template is created.
23
+ * @path {POST} /wiki/rest/api/template
24
+ * @scopes-current write:confluence-content
25
+ * @scopes-beta read:template:confluence, read:content-details:confluence,
26
+ * write:template:confluence
27
+ */
28
+ createContentTemplate({ contentTemplateCreate, }) {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/wiki/rest/api/template",
32
+ method: "POST",
33
+ headers: {
34
+ "Content-Type": "application/json",
35
+ },
36
+ body: contentTemplateCreate,
37
+ })
38
+ .then(this.getClientInstance().responseHandler({
39
+ 200: {
40
+ "application/json": "json",
41
+ },
42
+ }))
43
+ .then(commonHttpClient.castResponse())
44
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TemplateService.createContentTemplate.response"))
45
+ .then(commonHttpClient.getBody);
46
+ }
47
+ /**
48
+ * Returns all templates provided by blueprints. Use this method to retrieve
49
+ * all global blueprint templates or all blueprint templates in a space.
50
+ *
51
+ * Note, all global blueprints are inherited by each space. Space blueprints
52
+ * can be customised without affecting the global blueprints.
53
+ *
54
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
55
+ * 'View' permission for the space to view blueprints for the space and permission
56
+ * to access the Confluence site ('Can use' global permission) to view global
57
+ * blueprints.
58
+ *
59
+ * @returns Returned if the requested templates are returned.
60
+ * @path {GET} /wiki/rest/api/template/blueprint
61
+ * @scopes-current read:confluence-content.summary
62
+ * @scopes-beta read:template:confluence, read:content-details:confluence
63
+ */
64
+ getBlueprintTemplates({ spaceKey, start, limit, expand, }) {
65
+ return this.getClientInstance()
66
+ .request({
67
+ path: "/wiki/rest/api/template/blueprint",
68
+ method: "GET",
69
+ query: {
70
+ spaceKey,
71
+ start,
72
+ limit,
73
+ expand,
74
+ },
75
+ })
76
+ .then(this.getClientInstance().responseHandler({
77
+ 200: {
78
+ "application/json": "json",
79
+ },
80
+ }))
81
+ .then(commonHttpClient.castResponse())
82
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TemplateService.getBlueprintTemplates.response"))
83
+ .then(commonHttpClient.getBody);
84
+ }
85
+ /**
86
+ * Returns a content template. This includes information about template,
87
+ * like the name, the space or blueprint that the template is in, the body
88
+ * of the template, and more.
89
+ *
90
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
91
+ * 'View' permission for the space to view space templates and permission to
92
+ * access the Confluence site ('Can use' global permission) to view global
93
+ * templates.
94
+ *
95
+ * @returns Returned if the requested template is returned.
96
+ * @path {GET} /wiki/rest/api/template/{contentTemplateId}
97
+ * @scopes-current read:confluence-content.summary
98
+ * @scopes-beta read:template:confluence, read:content-details:confluence
99
+ */
100
+ getContentTemplate({ contentTemplateId, }) {
101
+ return this.getClientInstance()
102
+ .request({
103
+ path: "/wiki/rest/api/template/{contentTemplateId}",
104
+ method: "GET",
105
+ pathParams: {
106
+ contentTemplateId,
107
+ },
108
+ })
109
+ .then(this.getClientInstance().responseHandler({
110
+ 200: {
111
+ "application/json": "json",
112
+ },
113
+ }))
114
+ .then(commonHttpClient.castResponse())
115
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TemplateService.getContentTemplate.response"))
116
+ .then(commonHttpClient.getBody);
117
+ }
118
+ /**
119
+ * Returns all content templates. Use this method to retrieve all global
120
+ * content templates or all content templates in a space.
121
+ *
122
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
123
+ * 'View' permission for the space to view space templates and permission to
124
+ * access the Confluence site ('Can use' global permission) to view global
125
+ * templates.
126
+ *
127
+ * @returns Returned if the requested templates are returned.
128
+ * @path {GET} /wiki/rest/api/template/page
129
+ * @scopes-current read:confluence-content.summary
130
+ * @scopes-beta read:template:confluence, read:content-details:confluence
131
+ */
132
+ getContentTemplates({ spaceKey, start, limit, expand, }) {
133
+ return this.getClientInstance()
134
+ .request({
135
+ path: "/wiki/rest/api/template/page",
136
+ method: "GET",
137
+ query: {
138
+ spaceKey,
139
+ start,
140
+ limit,
141
+ expand,
142
+ },
143
+ })
144
+ .then(this.getClientInstance().responseHandler({
145
+ 200: {
146
+ "application/json": "json",
147
+ },
148
+ }))
149
+ .then(commonHttpClient.castResponse())
150
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TemplateService.getContentTemplates.response"))
151
+ .then(commonHttpClient.getBody);
152
+ }
153
+ /**
154
+ * Deletes a template. This results in different actions depending on the
155
+ * type of template:
156
+ *
157
+ * - If the template is a content template, it is deleted.
158
+ * - If the template is a modified space-level blueprint template, it reverts
159
+ * to the template inherited from the global-level blueprint template.
160
+ * - If the template is a modified global-level blueprint template, it reverts
161
+ * to the default global-level blueprint template.
162
+ *
163
+ * Note, unmodified blueprint templates cannot be deleted.
164
+ *
165
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
166
+ * 'Admin' permission for the space to delete a space template or
167
+ * 'Confluence Administrator'
168
+ * global permission to delete a global template.
169
+ *
170
+ * @path {DELETE} /wiki/rest/api/template/{contentTemplateId}
171
+ * @scopes-current write:confluence-content
172
+ * @scopes-beta write:template:confluence
173
+ */
174
+ removeTemplate({ contentTemplateId, }) {
175
+ return this.getClientInstance()
176
+ .request({
177
+ path: "/wiki/rest/api/template/{contentTemplateId}",
178
+ method: "DELETE",
179
+ pathParams: {
180
+ contentTemplateId,
181
+ },
182
+ })
183
+ .then(commonHttpClient.discardResult);
184
+ }
185
+ /**
186
+ * Updates a content template. Note, blueprint templates cannot be updated
187
+ * via the REST API.
188
+ *
189
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
190
+ * 'Admin' permission for the space to update a space template or 'Confluence
191
+ * Administrator'
192
+ * global permission to update a global template.
193
+ *
194
+ * @returns Returned if the template is updated.
195
+ * @path {PUT} /wiki/rest/api/template
196
+ * @scopes-current write:confluence-content
197
+ * @scopes-beta read:template:confluence, read:content-details:confluence,
198
+ * write:template:confluence
199
+ */
200
+ updateContentTemplate({ contentTemplateUpdate, }) {
201
+ return this.getClientInstance()
202
+ .request({
203
+ path: "/wiki/rest/api/template",
204
+ method: "PUT",
205
+ headers: {
206
+ "Content-Type": "application/json",
207
+ },
208
+ body: contentTemplateUpdate,
209
+ })
210
+ .then(this.getClientInstance().responseHandler({
211
+ 200: {
212
+ "application/json": "json",
213
+ },
214
+ }))
215
+ .then(commonHttpClient.castResponse())
216
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TemplateService.updateContentTemplate.response"))
217
+ .then(commonHttpClient.getBody);
218
+ }
219
+ static initialize() {
220
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TemplateService.updateContentTemplate.response", zod_1.z
221
+ .object({
222
+ status: zod_1.z.literal(200),
223
+ mediaType: zod_1.z.literal("application/json"),
224
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentTemplate"),
225
+ })
226
+ .describe("TemplateService.updateContentTemplate.response"));
227
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TemplateService.createContentTemplate.response", zod_1.z
228
+ .object({
229
+ status: zod_1.z.literal(200),
230
+ mediaType: zod_1.z.literal("application/json"),
231
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentTemplate"),
232
+ })
233
+ .describe("TemplateService.createContentTemplate.response"));
234
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TemplateService.getContentTemplate.response", zod_1.z
235
+ .object({
236
+ status: zod_1.z.literal(200),
237
+ mediaType: zod_1.z.literal("application/json"),
238
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentTemplate"),
239
+ })
240
+ .describe("TemplateService.getContentTemplate.response"));
241
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TemplateService.getBlueprintTemplates.response", zod_1.z
242
+ .object({
243
+ status: zod_1.z.literal(200),
244
+ mediaType: zod_1.z.literal("application/json"),
245
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("BlueprintTemplateArray"),
246
+ })
247
+ .describe("TemplateService.getBlueprintTemplates.response"));
248
+ validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TemplateService.getContentTemplates.response", zod_1.z
249
+ .object({
250
+ status: zod_1.z.literal(200),
251
+ mediaType: zod_1.z.literal("application/json"),
252
+ body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentTemplateArray"),
253
+ })
254
+ .describe("TemplateService.getContentTemplates.response"));
255
+ validationSchemaStorage_1.validationSchemaStorage.registerOnce([template_1.registerTemplateValidationSchemas]);
256
+ }
257
+ }
258
+ exports.TemplateService = TemplateService;
259
+ //# sourceMappingURL=TemplateService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/TemplateService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAO4B;AAC5B,wEAAqE;AACrE,MAAa,eAAgB,SAAQ,qCAAiB;IACpD;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,CAAC,EACpB,qBAAqB,GAOtB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,yBAAyB;YAC/B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,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CAAC,IAAI,CAAC,iBAAiB,CAAC;SACtD,CAAC;aACD,QAAQ,CAAC,6CAA6C,CAAC,CAC3D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,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,wBAAwB,CAAC;SAC7D,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,8CAA8C,EAC9C,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,sBAAsB,CAAC;SAC3D,CAAC;aACD,QAAQ,CAAC,8CAA8C,CAAC,CAC5D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,4CAAiC,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAzYD,0CAyYC"}
@@ -0,0 +1,101 @@
1
+ import { CommonHttpService } from "../core/CommonHttpService";
2
+ import { type Theme } from "../models/common";
3
+ import { type ThemeArray, type ThemeUpdate } from "../models/themes";
4
+ export declare class ThemesService extends CommonHttpService {
5
+ /**
6
+ * Returns the globally assigned theme.
7
+ *
8
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
9
+ *
10
+ * @returns Returned if the global theme is returned.
11
+ * @path {GET} /wiki/rest/api/settings/theme/selected
12
+ * @scopes-current manage:confluence-configuration
13
+ * @scopes-beta read:configuration:confluence
14
+ */
15
+ getGlobalTheme(): Promise<Theme>;
16
+ /**
17
+ * Returns the theme selected for a space, if one is set. If no space
18
+ * theme is set, this means that the space is inheriting the global look
19
+ * and feel settings.
20
+ *
21
+ * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’
22
+ * permission for the space.
23
+ *
24
+ * @returns Returned if the requested theme is returned.
25
+ * @path {GET} /wiki/rest/api/space/{spaceKey}/theme
26
+ * @scopes-current read:confluence-space.summary
27
+ * @scopes-beta read:space.setting:confluence
28
+ */
29
+ getSpaceTheme({ spaceKey, }: {
30
+ /** The key of the space to be queried for its theme. */
31
+ spaceKey: string;
32
+ }): Promise<Theme>;
33
+ /**
34
+ * Returns a theme. This includes information about the theme name,
35
+ * description, and icon.
36
+ *
37
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
38
+ *
39
+ * @returns Returned if the requested theme is returned.
40
+ * @path {GET} /wiki/rest/api/settings/theme/{themeKey}
41
+ * @scopes-current manage:confluence-configuration
42
+ * @scopes-beta read:configuration:confluence
43
+ */
44
+ getTheme({ themeKey, }: {
45
+ /** The key of the theme to be returned. */
46
+ themeKey: string;
47
+ }): Promise<Theme>;
48
+ /**
49
+ * Returns all themes, not including the default theme.
50
+ *
51
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
52
+ *
53
+ * @returns Returned if the requested themes are returned.
54
+ * @path {GET} /wiki/rest/api/settings/theme
55
+ * @scopes-current manage:confluence-configuration
56
+ * @scopes-beta read:configuration:confluence
57
+ */
58
+ getThemes({ start, limit, }: {
59
+ /** The starting index of the returned themes. */
60
+ start?: number;
61
+ /**
62
+ * The maximum number of themes to return per page.
63
+ * Note, this may be restricted by fixed system limits.
64
+ */
65
+ limit?: number;
66
+ }): Promise<ThemeArray>;
67
+ /**
68
+ * Resets the space theme. This means that the space will inherit the
69
+ * global look and feel settings
70
+ *
71
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
72
+ * 'Admin' permission for the space.
73
+ *
74
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/theme
75
+ * @scopes-current write:confluence-space
76
+ * @scopes-beta write:space.setting:confluence
77
+ */
78
+ resetSpaceTheme({ spaceKey, }: {
79
+ /** The key of the space to reset the theme for. */
80
+ spaceKey: string;
81
+ }): Promise<void>;
82
+ /**
83
+ * Sets the theme for a space. Note, if you want to reset the space theme to
84
+ * the default Confluence theme, use the 'Reset space theme' method instead
85
+ * of this method.
86
+ *
87
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
88
+ * 'Admin' permission for the space.
89
+ *
90
+ * @returns Returned if the theme was set for the space.
91
+ * @path {PUT} /wiki/rest/api/space/{spaceKey}/theme
92
+ * @scopes-current write:confluence-space
93
+ * @scopes-beta read:space.setting:confluence, write:space.setting:confluence
94
+ */
95
+ setSpaceTheme({ spaceKey, themeUpdate, }: {
96
+ /** The key of the space to set the theme for. */
97
+ spaceKey: string;
98
+ themeUpdate: ThemeUpdate;
99
+ }): Promise<Theme>;
100
+ static initialize(): void;
101
+ }